-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCueFrogPlayer6~.pd
314 lines (314 loc) · 9.29 KB
/
CueFrogPlayer6~.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
#N canvas 0 54 1280 710 10;
#X obj 101 101 cnv 50 145 536 empty empty empty 20 12 0 14 -253696
-66577 0;
#X obj 287 910 env~;
#X obj 332 910 env~;
#X obj 287 930 - 100;
#X obj 332 930 - 100;
#X obj -54 779 *~;
#X obj 3 779 *~;
#X obj 44 18 openpanel;
#X obj 103 103 bng 15 250 50 0 empty empty Load_file 17 7 0 10 -258113
-4032 -1;
#X msg 289 252 play;
#X msg 304 392 pause;
#X obj 367 593 route ready samplerate length cache float bang;
#X msg 269 154 speed \$1;
#X obj -54 1107 outlet~;
#X obj 4 1107 outlet~;
#X obj 148 299 bng 30 250 50 0 empty empty Stop 3 15 0 10 -258113 -1
-1;
#X obj 110 336 bng 30 250 50 0 empty empty Pause 1 15 0 10 -260097
-1 -1;
#X obj 110 299 bng 30 250 50 0 empty empty Play 3 15 0 10 -4034 -1
-1;
#X obj 386 508 loadbang;
#X obj 148 336 tgl 30 0 empty empty Loop 4 14 0 10 -203904 -1 -1 1
1;
#X msg 311 441 loop \$1;
#X obj 136 599 tgl 15 0 empty empty Pre 0 7 0 8 -203904 -1 -1 0 1;
#X obj 287 871 *~;
#X obj 347 871 *~;
#X obj 319 871 *~;
#X obj 259 871 *~;
#X obj 361 792 == 0;
#X symbolatom 103 120 20 0 0 0 - - -;
#X msg 259 105 open \$1;
#X obj 367 719 s cfPlayer\$1Ready;
#X obj 420 699 s cfPlayer\$1Srate;
#X obj 473 678 s cfPlayer\$1Len;
#X obj 526 657 s cfPlayer\$1CacheFill;
#X obj 632 614 s cfPlayer\$1Done;
#X obj -54 82 r cfPlayer\$1SetFile;
#X msg 278 203 time_seek \$1;
#X obj 579 635 s cfPlayer\$1SetPos;
#X obj -205 203 r cfPlayer\$1SetFader;
#X obj -53 386 r cfPlayer\$1SetLoop;
#X obj -54 600 r cfPlayer\$1SetPre;
#X obj 259 498 r cfPlayer\$1Cmds;
#X obj -54 126 s cfPlayer\$1File;
#X obj -53 407 s cfPlayer\$1Loop;
#X obj -54 622 s cfPlayer\$1Pre;
#X obj -204 224 s cfPlayer\$1Fader;
#X obj -53 224 s cfPlayer\$1On;
#X obj -53 203 r cfPlayer\$1SetOn;
#X text 135 417 +2;
#X text 135 393 +6;
#X text 133 369 +12;
#X text 135 466 -2;
#X text 135 490 -6;
#X text 131 514 -12;
#X text 130 537 -20;
#X text 130 562 -30;
#X text 130 586 -50;
#X msg 297 302 stop;
#X msg 311 323 0;
#X obj 311 343 s cfPlayer\$1SetPos;
#X obj -54 325 r cfPlayer\$1SetStop;
#X obj -204 325 r cfPlayer\$1SetPlay;
#X obj -204 386 r cfPlayer\$1SetPause;
#X obj -356 203 r cfPlayer\$1SetLevel;
#X obj -356 224 s cfPlayer\$1Level;
#X obj 259 471 s cfPlayer\$1Cmds;
#X obj -204 346 s cfPlayer\$1Play;
#X obj -54 346 s cfPlayer\$1Stop;
#X obj -204 407 s cfPlayer\$1Pause;
#X obj 269 134 r cfPlayer\$1Speed;
#X obj 278 182 r cfPlayer\$1Pos;
#X obj 275 525 print \$1;
#X obj 259 85 r cfPlayer\$1File;
#X obj 332 1046 s cfPlayer\$1MeterR;
#X obj 287 1069 s cfPlayer\$1MeterL;
#X obj -204 441 r cfPlayer\$1MeterL;
#X obj -54 441 r cfPlayer\$1MeterR;
#X obj -54 152 r cfPlayer\$1SetSpeed;
#X obj -54 174 s cfPlayer\$1Speed;
#X obj 112 377 vu 8 240 empty empty -1 -8 0 10 -33289 -1 0 0;
#X obj 102 377 vu 8 240 empty empty -1 -8 0 10 -33289 -1 0 0;
#X text 132 442 0dB;
#X obj 188 299 CueFrogPlayerFader \$1;
#X obj -53 250 r cfPlayer\$1SetPos;
#X obj -53 275 s cfPlayer\$1Pos;
#X text 130 610 -oo;
#X obj 422 746 r cfPlayer\$1Pre;
#X obj 297 282 r cfPlayer\$1Stop;
#X obj 311 420 r cfPlayer\$1Loop;
#X obj 304 372 r cfPlayer\$1Pause;
#X obj 289 232 r cfPlayer\$1Play;
#X obj 738 701 s cfPlayer\$1Stop;
#X obj 738 666 r cfPlayer\$1Done;
#X obj -244 82 r cfPlayer\$1SetShortname;
#X obj 44 42 s cfPlayer\$1SetFile;
#X obj 393 553 s cfPlayer\$1Tick;
#X text 417 110 CueFrog tries to emulate some of the encapsulation
of object-oriented programming. That requires some care \, because
all send and receive ports are global in Pd.;
#X text 416 155 All public ports include the unique ID \$1 specified
at creation time. Only ports with "Set" in them are meant to be modified
from the outside \; those without are read-only \, meant to be monitored
by anyone interested in the current state.;
#X text 356 322 Stop resets the playhead to zero.;
#X text 584 730 At the end of the file \, go into stop state. Since
this includes rewinding \, it can be a bit confusing when dragging
the playhead widget all the way to the end while playing. Remove this
connection to change the default behaviour.;
#X text 384 465 It may not be wise to export this port. Maybe it's
useful for quick hacks \, but it should not be used \, I think.;
#X text -477 109 The shortname is a convenience hack to produce meaningful
information in the player widget. It overwrites the file name field
without affecting the actual file. Used by the CueFrogPlaylist.pd playlist
manager.;
#X text -367 504 Sorry about this mess of wires. The idea is to make
the public ports easily discoverable without forcing you to open every
single widget's properties dialog.;
#X text 416 226 Some abstractions use private ports as well. They always
start with a double underscore and are made unique by using the system-level
ID \$0. Private ports are not meant to be tinkered with - if you need
access from the outside \, create a proper pair of public ports. Open
the CueFrogSpeed.pd widget to see private ports in use.;
#X obj -109 669 s~ cfPlayer\$1GainCoeff;
#X obj -109 692 r~ cfPlayer\$1GainCoeff;
#X obj 103 210 __CueFrogPlayerSpeed;
#X obj 103 264 __CueFrogPlayerSeek \$1;
#X obj 422 770 float 0;
#X obj 351 746 loadbang;
#X obj 259 560 readanysf~ 6;
#X obj 61 779 *~;
#X obj 118 779 *~;
#X obj 61 1107 outlet~;
#X obj 119 1107 outlet~;
#X obj 177 778 *~;
#X obj 234 778 *~;
#X obj 177 1106 outlet~;
#X obj 235 1106 outlet~;
#X obj 168 377 vu 8 240 empty empty -1 -8 0 10 -33289 -1 0 0;
#X obj 158 377 vu 8 240 empty empty -1 -8 0 10 -33289 -1 0 0;
#X obj 178 377 vu 8 240 empty empty -1 -8 0 10 -33289 -1 0 0;
#X obj -204 464 r cfPlayer\$1MeterC;
#X obj -54 464 r cfPlayer\$1MeterLFE;
#X obj -204 487 r cfPlayer\$1MeterLs;
#X obj -54 487 r cfPlayer\$1MeterRs;
#X obj 407 910 env~;
#X obj 452 910 env~;
#X obj 407 930 - 100;
#X obj 452 930 - 100;
#X obj 407 871 *~;
#X obj 467 871 *~;
#X obj 439 871 *~;
#X obj 379 871 *~;
#X obj 527 910 env~;
#X obj 572 910 env~;
#X obj 527 930 - 100;
#X obj 572 930 - 100;
#X obj 527 871 *~;
#X obj 587 871 *~;
#X obj 559 871 *~;
#X obj 499 871 *~;
#X obj 407 1022 s cfPlayer\$1MeterC;
#X obj 452 999 s cfPlayer\$1MeterLFE;
#X obj 527 977 s cfPlayer\$1MeterLs;
#X obj 572 954 s cfPlayer\$1MeterRs;
#X obj 122 377 vu 8 240 empty empty -1 -8 0 10 -33289 -1 0 0;
#X obj -474 6 loadbang;
#X obj -474 27 \$1;
#X msg -474 55 set ID\$1;
#X obj -474 77 s __\$0ID;
#X obj -386 55 print New CueFrogPlayer6~ instance;
#X symbolatom 208 102 5 0 0 0 - __#0ID x;
#X obj 103 137 __CueFrogPlayerStatus \$1;
#X msg 386 530 tick 100;
#X connect 1 0 3 0;
#X connect 2 0 4 0;
#X connect 3 0 73 0;
#X connect 4 0 72 0;
#X connect 5 0 13 0;
#X connect 5 0 25 1;
#X connect 6 0 14 0;
#X connect 6 0 22 1;
#X connect 7 0 93 0;
#X connect 8 0 7 0;
#X connect 9 0 64 0;
#X connect 10 0 64 0;
#X connect 11 0 29 0;
#X connect 11 1 30 0;
#X connect 11 2 31 0;
#X connect 11 3 32 0;
#X connect 11 4 36 0;
#X connect 11 5 33 0;
#X connect 12 0 64 0;
#X connect 15 0 66 0;
#X connect 16 0 67 0;
#X connect 17 0 65 0;
#X connect 18 0 153 0;
#X connect 19 0 42 0;
#X connect 20 0 64 0;
#X connect 21 0 43 0;
#X connect 22 0 2 0;
#X connect 23 0 2 0;
#X connect 24 0 1 0;
#X connect 25 0 1 0;
#X connect 26 0 25 0;
#X connect 26 0 22 0;
#X connect 26 0 132 0;
#X connect 26 0 129 0;
#X connect 26 0 140 0;
#X connect 26 0 137 0;
#X connect 28 0 64 0;
#X connect 34 0 27 0;
#X connect 34 0 41 0;
#X connect 35 0 64 0;
#X connect 37 0 81 1;
#X connect 38 0 19 0;
#X connect 39 0 21 0;
#X connect 40 0 70 0;
#X connect 40 0 109 0;
#X connect 46 0 81 2;
#X connect 56 0 64 0;
#X connect 56 0 57 0;
#X connect 57 0 58 0;
#X connect 59 0 15 0;
#X connect 60 0 17 0;
#X connect 61 0 16 0;
#X connect 62 0 81 0;
#X connect 68 0 12 0;
#X connect 69 0 35 0;
#X connect 71 0 28 0;
#X connect 74 0 79 0;
#X connect 75 0 78 0;
#X connect 76 0 105 0;
#X connect 81 0 63 0;
#X connect 81 1 44 0;
#X connect 81 2 45 0;
#X connect 81 3 103 0;
#X connect 82 0 106 0;
#X connect 85 0 107 0;
#X connect 86 0 56 0;
#X connect 87 0 20 0;
#X connect 88 0 10 0;
#X connect 89 0 9 0;
#X connect 91 0 90 0;
#X connect 92 0 27 0;
#X connect 104 0 5 0;
#X connect 104 0 6 0;
#X connect 104 0 110 0;
#X connect 104 0 111 0;
#X connect 104 0 114 0;
#X connect 104 0 115 0;
#X connect 105 0 77 0;
#X connect 106 0 83 0;
#X connect 107 0 26 0;
#X connect 107 0 24 0;
#X connect 107 0 23 0;
#X connect 107 0 131 0;
#X connect 107 0 130 0;
#X connect 107 0 139 0;
#X connect 107 0 138 0;
#X connect 108 0 107 0;
#X connect 109 0 5 1;
#X connect 109 0 24 1;
#X connect 109 1 6 1;
#X connect 109 1 23 1;
#X connect 109 2 110 1;
#X connect 109 2 131 1;
#X connect 109 3 111 1;
#X connect 109 3 130 1;
#X connect 109 4 114 1;
#X connect 109 4 139 1;
#X connect 109 5 115 1;
#X connect 109 5 138 1;
#X connect 109 6 11 0;
#X connect 110 0 112 0;
#X connect 110 0 132 1;
#X connect 111 0 113 0;
#X connect 111 0 129 1;
#X connect 114 0 116 0;
#X connect 114 0 140 1;
#X connect 115 0 117 0;
#X connect 115 0 137 1;
#X connect 121 0 145 1;
#X connect 122 0 119 1;
#X connect 123 0 118 1;
#X connect 124 0 120 1;
#X connect 125 0 127 0;
#X connect 126 0 128 0;
#X connect 127 0 141 0;
#X connect 128 0 142 0;
#X connect 129 0 126 0;
#X connect 130 0 126 0;
#X connect 131 0 125 0;
#X connect 132 0 125 0;
#X connect 133 0 135 0;
#X connect 134 0 136 0;
#X connect 135 0 143 0;
#X connect 136 0 144 0;
#X connect 137 0 134 0;
#X connect 138 0 134 0;
#X connect 139 0 133 0;
#X connect 140 0 133 0;
#X connect 146 0 147 0;
#X connect 147 0 148 0;
#X connect 147 0 150 0;
#X connect 148 0 149 0;
#X connect 153 0 94 0;
#X connect 153 0 109 0;
#X coords 0 0 1 1 147 540 2 100 100;