Debian Codegraph @

src/test/02-UGens/LiSa-playPos.ck

raw
1 // testing LiSa.playPos
2 // 1.5.5.1 | created by Nick & Ge
3
4 // lisa
5 LiSa l => blackhole;
6 // 4 sample duration
7 4::samp => l.duration;
8 // no record
9 false => l.record;
10 // play only
11 true => l.play;
12
13 // loop
14 true => l.loop0;
15 for (int i; i < 10; i++) {
16 <<< l.playPos() >>>;
17 samp => now;
18 }
19
20 // set bi-directional to true
21 true => l.bi;
22 for (int i; i < 10; i++) {
23 <<< l.playPos() >>>;
24 samp => now;
25 }
26
27 // no loop
28 false => l.loop0;
29 for (int i; i < 10; i++) {
30 <<< l.playPos() >>>;
31 samp => now;
32 }
33