forked from rggtrn/RGGTRNero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbajo2.sc
66 lines (45 loc) · 952 Bytes
/
bajo2.sc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Bajo2 {
classvar <version;
classvar <s;
classvar <r;
classvar <y;
classvar <a;
classvar <x;
classvar <v;
*initClass {
super.initClass;
version = "Mayo 4 2017";
("Bajo : version 1.0").postln;
}
*toca {arg inst = \bajo, db = -25, atk = 0.025, rel = Pseq (#[1, 0.5, 0.5], inf), nota = Pseq((#[62, 65, 69]),inf), dur = Pseq(#[1, 0.5, 0.5], inf), pan = 0;
Pbindef(\bajo,
\instrument, inst,
\db, db,
\atk, atk,
\rel, rel,
\midinote, nota-12,
\dur, dur,
\pan, pan,
).play(quant:4);
Pbindef(\bajo).quant = 4;
Pbindef(\bajo2,
\instrument, inst,
\db, db,
\atk, atk,
\rel, rel,
\midinote, nota-12,
\dur, dur,
\pan, pan,
).play(quant:4);
Pbindef(\bajo).quant = 4;
^super.newCopyArgs(db, atk, rel, nota, dur);
}
* fade {arg fadeTime = 0;
Pbindef (\bajo).fadeTime = fadeTime;
^super.newCopyArgs(fadeTime);
}
*detener {
Pbindef(\bajo).stop;
Pbindef(\bajo2).stop;
}
}