forked from rggtrn/RGGTRNero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbajo.sc
45 lines (34 loc) · 734 Bytes
/
bajo.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
Bajo {
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, nota = Pseq((#[62, 65, 69]),inf), dur = Pdefn (\x, Pseq(#[1, 0.5, 0.5], inf)), rel = Pdefn(\x), 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;
^super.newCopyArgs(db, atk, rel, nota, dur);
}
* fade {arg fadeTime = 0;
Pbindef (\bajo).fadeTime = fadeTime;
^super.newCopyArgs(fadeTime);
}
*detener {
Pbindef(\bajo).stop;
}
}