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]
/
examples
/
demo2.ck
blob
dc64d69fc37c02264f9c2732324cbb82dab30302
1
// set the global gain
2
.1 => dac.gain;
3
4
// connect
5
sinosc a => dac;
6
110.0 => a.freq;
7
1::second => now;
8
sinosc b => dac;
9
220.0 => b.freq;
10
1::second => now;
11
sinosc c => dac;
12
440.0 => c.freq;
13
1::second => now;
14
sinosc d => dac;
15
880.0 => d.freq;
16
1::second => now;
17
sinosc e => dac;
18
1760.0 => e.freq;
19
1::second => now;
20
21
// disconnect
22
a =< dac;
23
1::second => now;
24
b =< dac;
25
1::second => now;
26
c =< dac;
27
1::second => now;
28
d =< dac;
29
1::second => now;
30
e =< dac;
31
1::second => now;
32