-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCueFrogPlaylist.pd
138 lines (138 loc) · 3.79 KB
/
CueFrogPlaylist.pd
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#N canvas 250 54 1010 707 10;
#X obj 64 47 openpanel;
#X obj 138 103 bng 15 250 50 0 __\$0OpenOut empty open 17 7 0 10 -262144
-1 -1;
#X obj 272 396 textfile;
#X obj 103 103 bng 30 250 50 0 cfPlaylist\$1SetNext empty next 3 14
0 10 -13381 -262144 -262144;
#X obj 373 29 loadbang;
#X obj 373 50 \$1;
#X obj 291 279 r cfPlaylist\$1SetNext;
#X symbolatom 103 136 20 0 0 0 - - -;
#X text 259 101 Playlist syntax is a space-separated list of tokens:
full path to file (s) \, shortname (symbol) \, level in dB (f) \, On
switch 0/1 (f) \, Loop 0/1 (f) \, Speed (f) \, Playhead position (f)
\, Pre-fader metering 0/1 (f);
#X obj 266 460 unpack s s f f f f f f;
#X obj 266 726 s cfPlayer\$1SetFile;
#X obj 287 705 s cfPlayer\$1SetShortname;
#X obj 309 684 s cfPlayer\$1SetLevel;
#X obj 330 663 s cfPlayer\$1SetOn;
#X obj 352 642 s cfPlayer\$1SetLoop;
#X obj 373 621 s cfPlayer\$1SetSpeed;
#X obj 395 600 s cfPlayer\$1SetPos;
#X obj 417 579 s cfPlayer\$1SetPre;
#X obj 17 381 f;
#X obj 69 377 + 1;
#X obj 17 406 s cfPlaylist\$1ItemNo;
#X obj 362 527 f;
#X obj 388 551 f;
#X obj 12 -84 symbol;
#X obj 310 -58 r cfPlayer\$1Play;
#X obj 298 -79 r cfPlayer\$1Pause;
#X obj 458 -79 r cfPlayer\$1Stop;
#X text 286 261 Advance playlist only when stopped:;
#X obj 443 -123 loadbang;
#X obj 12 16 spigot;
#X obj 64 -84 r __\$0OpenOut;
#X text 23 -102 Accept new playlist only when stopped:;
#X obj 325 420 s cfPlaylist\$1Wraparound;
#X obj 209 164 list trim;
#X obj 453 7 s __\$0IsStopped;
#X obj 64 16 spigot;
#X obj 103 -48 r __\$0IsStopped;
#X msg 281 -30 0;
#X msg 453 -30 1;
#X obj 291 324 spigot;
#X obj 330 302 r __\$0IsStopped;
#X obj 301 348 print Playlist \$1 advancing;
#X obj 209 187 print Playlist \$1 loading;
#X obj 174 235 r cfPlaylist\$1Wraparound;
#X msg 17 357 1;
#X obj 159 610 print textfile;
#X msg 174 259 rewind \, bang;
#X symbolatom 187 119 8 0 0 0 - - x;
#X msg 218 7 set rolling;
#X msg 315 3 set stopped;
#X obj 589 492 spigot;
#X obj 628 472 r cfPlayer\$1Ready;
#X msg 589 427 bang;
#X msg 643 424 stop;
#X obj 12 -124 inlet Set_playlist.;
#X text 529 396 Spin until player reports ready before attempting to
set speed \, position \, and shortname.;
#X obj 277 646 symbol;
#X obj 589 450 metro 100;
#X obj 445 -99 delay 500;
#X msg 17 180 read \$1 cr \, rewind \, bang;
#X msg 373 71 set ID\$1;
#X symbolatom 208 102 5 0 0 0 - - x;
#X symbolatom 161 119 3 0 0 0 Trk - x;
#X obj 149 23 r cfPlaylist\$1ItemNo;
#X msg 149 57 set #\$1;
#X connect 0 0 7 0;
#X connect 0 0 59 0;
#X connect 2 0 9 0;
#X connect 2 0 45 0;
#X connect 2 1 32 0;
#X connect 4 0 5 0;
#X connect 5 0 60 0;
#X connect 6 0 39 0;
#X connect 7 0 33 0;
#X connect 9 0 10 0;
#X connect 9 0 52 0;
#X connect 9 1 56 1;
#X connect 9 2 12 0;
#X connect 9 3 13 0;
#X connect 9 4 14 0;
#X connect 9 5 21 1;
#X connect 9 6 22 1;
#X connect 9 7 17 0;
#X connect 18 0 19 0;
#X connect 18 0 20 0;
#X connect 19 0 18 1;
#X connect 21 0 15 0;
#X connect 22 0 16 0;
#X connect 23 0 29 0;
#X connect 24 0 37 0;
#X connect 25 0 37 0;
#X connect 26 0 38 0;
#X connect 28 0 58 0;
#X connect 29 0 7 0;
#X connect 29 0 59 0;
#X connect 30 0 35 0;
#X connect 33 0 42 0;
#X connect 35 0 0 0;
#X connect 36 0 35 1;
#X connect 36 0 29 1;
#X connect 37 0 34 0;
#X connect 37 0 48 0;
#X connect 38 0 34 0;
#X connect 38 0 49 0;
#X connect 39 0 41 0;
#X connect 39 0 18 0;
#X connect 39 0 2 0;
#X connect 40 0 39 1;
#X connect 43 0 46 0;
#X connect 43 0 44 0;
#X connect 44 0 18 0;
#X connect 46 0 2 0;
#X connect 48 0 47 0;
#X connect 49 0 47 0;
#X connect 50 0 53 0;
#X connect 50 0 22 0;
#X connect 50 0 21 0;
#X connect 50 0 56 0;
#X connect 51 0 50 1;
#X connect 52 0 57 0;
#X connect 53 0 57 0;
#X connect 54 0 23 0;
#X connect 56 0 11 0;
#X connect 57 0 50 0;
#X connect 58 0 38 0;
#X connect 59 0 2 0;
#X connect 59 0 44 0;
#X connect 60 0 61 0;
#X connect 63 0 64 0;
#X connect 64 0 62 0;
#X coords 0 -1 1 1 147 53 2 100 100;