repo.or.cz
/
chuck-blob.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
*** empty log message ***
[chuck-blob.git]
/
exile
/
threadmem.ck
blob
d5cf5cd37ceaede5935e61a9a0efc8a7024fecc1
1
2
PercFlut w => dac;
3
0.8 => w.gain;
4
5
fun void play() {
6
while ( true ) {
7
std.mtof ( (float)std.rand2( 60, 72 ) ) => w.freq;
8
std.rand2f(0.6, 0.8) => w.noteOn;
9
0.25::second * (float)std.rand2(1,2) => now;
10
}
11
}
12
13
spork ~ play() => int playid;
14
15
4::second => now;
16
17
//uncomment this line to exit safely..
18
//machine.remove(playid);
19