-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathexample.scd
42 lines (37 loc) · 1006 Bytes
/
example.scd
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
// Supercollider DX7 Clone v1.0
// Implemented by Aziz Ege Gonul for more info go to www.egegonul.com
// Under GNU GPL 3 as per SuperCollider license
//Example
( // init
// Server.killAll
s.boot;
~mainCaller = ("./DX7.scd").loadRelative.wrapAt(-1);
)
( // Note On 80 message with velocity value 100 and preset value 10000
~mainCaller.value(80, 100, 10000);
)
( // Note Off message
~mainCaller.value(80, 0);
)
/*
//Some fun example below. Uncomment this area and run the below parenthesis for random preset and pitch for each note. Check CPU!!
(
~number = 15000.rand; //preset start number, dont go further than 16383
~ra = Routine {
303.do({ arg a;
~sun = 99.rand + 10;
~mainCaller.value(~sun, 127.rand, ~number);
((50.rand)/100).wait; // Waits for at most half second between each node
~mainCaller.value(~sun, 0, ~number);
~number = ~number +1;
});
// Wait half second before saying we're done
0.5.wait;
"done".postln;
}.play;
)
(//stop
~ra.stop;
~mainCaller.value(~sun, 0, ~number);
)
*/