unpunch-help.pd 21.1 KB
Newer Older
Roman Haefeli's avatar
Roman Haefeli committed
1
2
3
4
#N canvas 3 101 705 445 10;
#X obj 539 132 s pd-My_Happy_Sequencer;
#X msg 539 104 vis \$1;
#X obj 539 77 tgl 20 0 empty empty empty 17 7 0 10 -204800 -1 -1 1
5
1;
Roman Haefeli's avatar
Roman Haefeli committed
6
#X text 570 77 show GUI;
Roman Haefeli's avatar
Roman Haefeli committed
7
#X text 378 240 <- Container for the sequencer GUI;
Roman Haefeli's avatar
Roman Haefeli committed
8
#X obj 19 366 spigot;
9
#X obj 65 365 tgl 20 0 empty empty empty 17 7 0 10 -204800 -1 -1 1
10
1;
Roman Haefeli's avatar
Roman Haefeli committed
11
#X text 86 366 print editor messages;
Roman Haefeli's avatar
Roman Haefeli committed
12
#X obj 539 51 loadbang;
Roman Haefeli's avatar
Roman Haefeli committed
13
#N canvas 0 99 454 259 counter 0;
14
15
16
#X obj 21 25 inlet;
#X obj 21 81 f;
#X obj 21 129 t a a;
Roman Haefeli's avatar
Roman Haefeli committed
17
#X obj 105 102 + 1;
18
19
20
#X obj 119 26 inlet;
#X msg 119 49 0;
#X obj 21 160 outlet;
Roman Haefeli's avatar
Roman Haefeli committed
21
#X obj 21 58 metro 150;
Roman Haefeli's avatar
Roman Haefeli committed
22
23
24
25
26
#X obj 21 104 mod 128;
#X obj 201 101 cnv 12 90 12 empty empty empty 20 12 0 14 -261682 -66577
0;
#X text 201 99 loop-length=;
#X obj 275 100 nbx 3 14 1 999 0 0 empty empty empty 0 -8 0 10 -261682
Roman Haefeli's avatar
Roman Haefeli committed
27
-1 -1 64 256;
Roman Haefeli's avatar
Roman Haefeli committed
28
29
#X obj 275 28 loadbang;
#X msg 275 51 64;
30
31
#X connect 0 0 7 0;
#X connect 1 0 8 0;
Roman Haefeli's avatar
Roman Haefeli committed
32
33
34
35
36
#X connect 2 0 6 0;
#X connect 2 1 3 0;
#X connect 3 0 1 1;
#X connect 4 0 5 0;
#X connect 5 0 1 1;
37
38
#X connect 7 0 1 0;
#X connect 8 0 2 0;
Roman Haefeli's avatar
Roman Haefeli committed
39
40
41
42
#X connect 11 0 8 1;
#X connect 12 0 13 0;
#X connect 13 0 11 0;
#X coords 0 -1 1 1 111 14 2 200 100;
Roman Haefeli's avatar
Roman Haefeli committed
43
44
45
46
#X restore 191 184 pd counter;
#X obj 191 209 nbx 3 18 0 9999 0 0 empty empty empty 0 -8 0 10 -204786
-1 -1 0 256;
#X obj 191 147 tgl 20 0 empty empty empty 17 7 0 10 -261682 -1 -1 0
47
1;
Roman Haefeli's avatar
Roman Haefeli committed
48
#X text 216 148 turn on/off clock;
Roman Haefeli's avatar
Roman Haefeli committed
49
50
51
52
53
54
#X obj 19 395 print EDITOR;
#X obj 221 395 print NOTES;
#X obj 221 366 spigot;
#X obj 267 365 tgl 20 0 empty empty empty 17 7 0 10 -204800 -1 -1 0
1;
#X text 290 366 print notes;
Roman Haefeli's avatar
Roman Haefeli committed
55
#N canvas 318 287 538 414 synth 0;
Roman Haefeli's avatar
Roman Haefeli committed
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
#N canvas 0 99 482 490 voice 0;
#X obj 41 288 osc~ 440;
#X obj 41 428 expr~ tanh($v1);
#X obj 40 402 *~;
#X obj 158 378 dbtorms~;
#X obj 158 353 vline~;
#X obj 157 176 pack f f;
#X obj 158 201 route 1 0;
#X obj 158 232 t a a;
#X obj 203 255 - 10;
#X obj 158 280 pack f f;
#X msg 158 308 \$1 5 0 \, \$2 30 10;
#X obj 52 311 osc~ 880.5;
#X obj 52 334 *~ 0.5;
#X obj 288 264 - 30;
#X msg 288 317 \$1 10 0 \, 0 2000 50;
#X obj 41 191 mtof;
#X obj 41 214 t a a;
#X obj 68 236 * 2;
#X obj 68 259 + 0.5;
#X obj 389 187 t a a;
#X obj 389 210 *;
#X obj 389 164 / 100;
#X obj 389 233 t a a;
#X obj 389 256 *;
#X obj 389 279 rmstodb;
#X obj 41 31 inlet;
#X obj 41 60 unpack f f;
#X obj 157 96 moses 1;
#X obj 196 122 t b a;
#X msg 196 145 1;
#X msg 157 126 0;
#X obj 41 451 outlet~;
#X connect 0 0 2 0;
#X connect 1 0 31 0;
#X connect 2 0 1 0;
#X connect 3 0 2 1;
#X connect 4 0 3 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 6 1 13 0;
#X connect 7 0 9 0;
#X connect 7 1 8 0;
#X connect 8 0 9 1;
#X connect 9 0 10 0;
#X connect 10 0 4 0;
#X connect 11 0 12 0;
#X connect 12 0 2 0;
#X connect 13 0 14 0;
#X connect 14 0 4 0;
#X connect 15 0 16 0;
#X connect 16 0 0 0;
#X connect 16 1 17 0;
#X connect 17 0 18 0;
#X connect 18 0 11 0;
#X connect 19 0 20 0;
#X connect 19 1 20 1;
#X connect 20 0 22 0;
#X connect 21 0 19 0;
#X connect 22 0 23 0;
#X connect 22 1 23 1;
#X connect 23 0 24 0;
#X connect 24 0 5 1;
#X connect 25 0 26 0;
#X connect 26 0 15 0;
#X connect 26 1 27 0;
#X connect 27 0 30 0;
#X connect 27 1 28 0;
#X connect 28 0 29 0;
#X connect 28 1 21 0;
#X connect 29 0 5 0;
#X connect 30 0 5 0;
#X restore 13 120 pd voice;
#X obj 13 18 inlet;
#X obj 13 66 pack f f f;
#X obj 13 169 +~;
132
#X obj 33 220 hsl 100 15 0 1 0 0 \$0.bli \$0.bla empty -2 -8 0 10 -261682
133
-1 -1 0 1;
Roman Haefeli's avatar
Roman Haefeli committed
134
135
136
137
138
#X obj 58 248 t a a;
#X msg 58 294 \$1 50;
#X obj 58 317 line~;
#X obj 8 346 *~;
#X obj 7 387 dac~ 1 2;
Roman Haefeli's avatar
Roman Haefeli committed
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
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
#N canvas 0 99 482 490 voice 0;
#X obj 41 288 osc~ 440;
#X obj 41 428 expr~ tanh($v1);
#X obj 40 402 *~;
#X obj 158 378 dbtorms~;
#X obj 158 353 vline~;
#X obj 157 176 pack f f;
#X obj 158 201 route 1 0;
#X obj 158 232 t a a;
#X obj 203 255 - 10;
#X obj 158 280 pack f f;
#X msg 158 308 \$1 5 0 \, \$2 30 10;
#X obj 52 311 osc~ 880.5;
#X obj 52 334 *~ 0.5;
#X obj 288 264 - 30;
#X msg 288 317 \$1 10 0 \, 0 2000 50;
#X obj 41 191 mtof;
#X obj 41 214 t a a;
#X obj 68 236 * 2;
#X obj 68 259 + 0.5;
#X obj 389 187 t a a;
#X obj 389 210 *;
#X obj 389 164 / 100;
#X obj 389 233 t a a;
#X obj 389 256 *;
#X obj 389 279 rmstodb;
#X obj 41 31 inlet;
#X obj 41 60 unpack f f;
#X obj 157 96 moses 1;
#X obj 196 122 t b a;
#X msg 196 145 1;
#X msg 157 126 0;
#X obj 41 451 outlet~;
#X connect 0 0 2 0;
#X connect 1 0 31 0;
#X connect 2 0 1 0;
#X connect 3 0 2 1;
#X connect 4 0 3 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 6 1 13 0;
#X connect 7 0 9 0;
#X connect 7 1 8 0;
#X connect 8 0 9 1;
#X connect 9 0 10 0;
#X connect 10 0 4 0;
#X connect 11 0 12 0;
#X connect 12 0 2 0;
#X connect 13 0 14 0;
#X connect 14 0 4 0;
#X connect 15 0 16 0;
#X connect 16 0 0 0;
#X connect 16 1 17 0;
#X connect 17 0 18 0;
#X connect 18 0 11 0;
#X connect 19 0 20 0;
#X connect 19 1 20 1;
#X connect 20 0 22 0;
#X connect 21 0 19 0;
#X connect 22 0 23 0;
#X connect 22 1 23 1;
#X connect 23 0 24 0;
#X connect 24 0 5 1;
#X connect 25 0 26 0;
#X connect 26 0 15 0;
#X connect 26 1 27 0;
#X connect 27 0 30 0;
#X connect 27 1 28 0;
#X connect 28 0 29 0;
#X connect 28 1 21 0;
#X connect 29 0 5 0;
#X connect 30 0 5 0;
#X restore 73 120 pd voice;
#N canvas 0 99 482 490 voice 0;
#X obj 41 288 osc~ 440;
#X obj 41 428 expr~ tanh($v1);
#X obj 40 402 *~;
#X obj 158 378 dbtorms~;
#X obj 158 353 vline~;
#X obj 157 176 pack f f;
#X obj 158 201 route 1 0;
#X obj 158 232 t a a;
#X obj 203 255 - 10;
#X obj 158 280 pack f f;
#X msg 158 308 \$1 5 0 \, \$2 30 10;
#X obj 52 311 osc~ 880.5;
#X obj 52 334 *~ 0.5;
#X obj 288 264 - 30;
#X msg 288 317 \$1 10 0 \, 0 2000 50;
#X obj 41 191 mtof;
#X obj 41 214 t a a;
#X obj 68 236 * 2;
#X obj 68 259 + 0.5;
#X obj 389 187 t a a;
#X obj 389 210 *;
#X obj 389 164 / 100;
#X obj 389 233 t a a;
#X obj 389 256 *;
#X obj 389 279 rmstodb;
#X obj 41 31 inlet;
#X obj 41 60 unpack f f;
#X obj 157 96 moses 1;
#X obj 196 122 t b a;
#X msg 196 145 1;
#X msg 157 126 0;
#X obj 41 451 outlet~;
#X connect 0 0 2 0;
#X connect 1 0 31 0;
#X connect 2 0 1 0;
#X connect 3 0 2 1;
#X connect 4 0 3 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 6 1 13 0;
#X connect 7 0 9 0;
#X connect 7 1 8 0;
#X connect 8 0 9 1;
#X connect 9 0 10 0;
#X connect 10 0 4 0;
#X connect 11 0 12 0;
#X connect 12 0 2 0;
#X connect 13 0 14 0;
#X connect 14 0 4 0;
#X connect 15 0 16 0;
#X connect 16 0 0 0;
#X connect 16 1 17 0;
#X connect 17 0 18 0;
#X connect 18 0 11 0;
#X connect 19 0 20 0;
#X connect 19 1 20 1;
#X connect 20 0 22 0;
#X connect 21 0 19 0;
#X connect 22 0 23 0;
#X connect 22 1 23 1;
#X connect 23 0 24 0;
#X connect 24 0 5 1;
#X connect 25 0 26 0;
#X connect 26 0 15 0;
#X connect 26 1 27 0;
#X connect 27 0 30 0;
#X connect 27 1 28 0;
#X connect 28 0 29 0;
#X connect 28 1 21 0;
#X connect 29 0 5 0;
#X connect 30 0 5 0;
#X restore 133 120 pd voice;
#N canvas 0 99 482 490 voice 0;
#X obj 41 288 osc~ 440;
#X obj 41 428 expr~ tanh($v1);
#X obj 40 402 *~;
#X obj 158 378 dbtorms~;
#X obj 158 353 vline~;
#X obj 157 176 pack f f;
#X obj 158 201 route 1 0;
#X obj 158 232 t a a;
#X obj 203 255 - 10;
#X obj 158 280 pack f f;
#X msg 158 308 \$1 5 0 \, \$2 30 10;
#X obj 52 311 osc~ 880.5;
#X obj 52 334 *~ 0.5;
#X obj 288 264 - 30;
#X msg 288 317 \$1 10 0 \, 0 2000 50;
#X obj 41 191 mtof;
#X obj 41 214 t a a;
#X obj 68 236 * 2;
#X obj 68 259 + 0.5;
#X obj 389 187 t a a;
#X obj 389 210 *;
#X obj 389 164 / 100;
#X obj 389 233 t a a;
#X obj 389 256 *;
#X obj 389 279 rmstodb;
#X obj 41 31 inlet;
#X obj 41 60 unpack f f;
#X obj 157 96 moses 1;
#X obj 196 122 t b a;
#X msg 196 145 1;
#X msg 157 126 0;
#X obj 41 451 outlet~;
#X connect 0 0 2 0;
#X connect 1 0 31 0;
#X connect 2 0 1 0;
#X connect 3 0 2 1;
#X connect 4 0 3 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 6 1 13 0;
#X connect 7 0 9 0;
#X connect 7 1 8 0;
#X connect 8 0 9 1;
#X connect 9 0 10 0;
#X connect 10 0 4 0;
#X connect 11 0 12 0;
#X connect 12 0 2 0;
#X connect 13 0 14 0;
#X connect 14 0 4 0;
#X connect 15 0 16 0;
#X connect 16 0 0 0;
#X connect 16 1 17 0;
#X connect 17 0 18 0;
#X connect 18 0 11 0;
#X connect 19 0 20 0;
#X connect 19 1 20 1;
#X connect 20 0 22 0;
#X connect 21 0 19 0;
#X connect 22 0 23 0;
#X connect 22 1 23 1;
#X connect 23 0 24 0;
#X connect 24 0 5 1;
#X connect 25 0 26 0;
#X connect 26 0 15 0;
#X connect 26 1 27 0;
#X connect 27 0 30 0;
#X connect 27 1 28 0;
#X connect 28 0 29 0;
#X connect 28 1 21 0;
#X connect 29 0 5 0;
#X connect 30 0 5 0;
#X restore 193 120 pd voice;
#N canvas 0 99 482 490 voice 0;
#X obj 41 288 osc~ 440;
#X obj 41 428 expr~ tanh($v1);
#X obj 40 402 *~;
#X obj 158 378 dbtorms~;
#X obj 158 353 vline~;
#X obj 157 176 pack f f;
#X obj 158 201 route 1 0;
#X obj 158 232 t a a;
#X obj 203 255 - 10;
#X obj 158 280 pack f f;
#X msg 158 308 \$1 5 0 \, \$2 30 10;
#X obj 52 311 osc~ 880.5;
#X obj 52 334 *~ 0.5;
#X obj 288 264 - 30;
#X msg 288 317 \$1 10 0 \, 0 2000 50;
#X obj 41 191 mtof;
#X obj 41 214 t a a;
#X obj 68 236 * 2;
#X obj 68 259 + 0.5;
#X obj 389 187 t a a;
#X obj 389 210 *;
#X obj 389 164 / 100;
#X obj 389 233 t a a;
#X obj 389 256 *;
#X obj 389 279 rmstodb;
#X obj 41 31 inlet;
#X obj 41 60 unpack f f;
#X obj 157 96 moses 1;
#X obj 196 122 t b a;
#X msg 196 145 1;
#X msg 157 126 0;
#X obj 41 451 outlet~;
#X connect 0 0 2 0;
#X connect 1 0 31 0;
#X connect 2 0 1 0;
#X connect 3 0 2 1;
#X connect 4 0 3 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 6 1 13 0;
#X connect 7 0 9 0;
#X connect 7 1 8 0;
#X connect 8 0 9 1;
#X connect 9 0 10 0;
#X connect 10 0 4 0;
#X connect 11 0 12 0;
#X connect 12 0 2 0;
#X connect 13 0 14 0;
#X connect 14 0 4 0;
#X connect 15 0 16 0;
#X connect 16 0 0 0;
#X connect 16 1 17 0;
#X connect 17 0 18 0;
#X connect 18 0 11 0;
#X connect 19 0 20 0;
#X connect 19 1 20 1;
#X connect 20 0 22 0;
#X connect 21 0 19 0;
#X connect 22 0 23 0;
#X connect 22 1 23 1;
#X connect 23 0 24 0;
#X connect 24 0 5 1;
#X connect 25 0 26 0;
#X connect 26 0 15 0;
#X connect 26 1 27 0;
#X connect 27 0 30 0;
#X connect 27 1 28 0;
#X connect 28 0 29 0;
#X connect 28 1 21 0;
#X connect 29 0 5 0;
#X connect 30 0 5 0;
#X restore 253 120 pd voice;
#N canvas 0 99 482 490 voice 0;
#X obj 41 288 osc~ 440;
#X obj 41 428 expr~ tanh($v1);
#X obj 40 402 *~;
#X obj 158 378 dbtorms~;
#X obj 158 353 vline~;
#X obj 157 176 pack f f;
#X obj 158 201 route 1 0;
#X obj 158 232 t a a;
#X obj 203 255 - 10;
#X obj 158 280 pack f f;
#X msg 158 308 \$1 5 0 \, \$2 30 10;
#X obj 52 311 osc~ 880.5;
#X obj 52 334 *~ 0.5;
#X obj 288 264 - 30;
#X msg 288 317 \$1 10 0 \, 0 2000 50;
#X obj 41 191 mtof;
#X obj 41 214 t a a;
#X obj 68 236 * 2;
#X obj 68 259 + 0.5;
#X obj 389 187 t a a;
#X obj 389 210 *;
#X obj 389 164 / 100;
#X obj 389 233 t a a;
#X obj 389 256 *;
#X obj 389 279 rmstodb;
#X obj 41 31 inlet;
#X obj 41 60 unpack f f;
#X obj 157 96 moses 1;
#X obj 196 122 t b a;
#X msg 196 145 1;
#X msg 157 126 0;
#X obj 41 451 outlet~;
#X connect 0 0 2 0;
#X connect 1 0 31 0;
#X connect 2 0 1 0;
#X connect 3 0 2 1;
#X connect 4 0 3 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 6 1 13 0;
#X connect 7 0 9 0;
#X connect 7 1 8 0;
#X connect 8 0 9 1;
#X connect 9 0 10 0;
#X connect 10 0 4 0;
#X connect 11 0 12 0;
#X connect 12 0 2 0;
#X connect 13 0 14 0;
#X connect 14 0 4 0;
#X connect 15 0 16 0;
#X connect 16 0 0 0;
#X connect 16 1 17 0;
#X connect 17 0 18 0;
#X connect 18 0 11 0;
#X connect 19 0 20 0;
#X connect 19 1 20 1;
#X connect 20 0 22 0;
#X connect 21 0 19 0;
#X connect 22 0 23 0;
#X connect 22 1 23 1;
#X connect 23 0 24 0;
#X connect 24 0 5 1;
#X connect 25 0 26 0;
#X connect 26 0 15 0;
#X connect 26 1 27 0;
#X connect 27 0 30 0;
#X connect 27 1 28 0;
#X connect 28 0 29 0;
#X connect 28 1 21 0;
#X connect 29 0 5 0;
#X connect 30 0 5 0;
#X restore 313 120 pd voice;
Roman Haefeli's avatar
Roman Haefeli committed
504
#X obj 58 271 *;
Roman Haefeli's avatar
Roman Haefeli committed
505
506
#X obj 13 89 route 1 2 3 4 5 6, f 61;
#X obj 13 43 poly 6 1, f 10;
507
#X obj 135 220 tgl 15 0 \$0.bli \$0.bla empty 17 7 0 10 -261682 -1
Roman Haefeli's avatar
Roman Haefeli committed
508
-1 0 1;
Roman Haefeli's avatar
Roman Haefeli committed
509
510
#X msg 147 261 dsp \$1;
#X obj 147 284 s pd;
Roman Haefeli's avatar
Roman Haefeli committed
511
#X obj 52 348 *~;
Roman Haefeli's avatar
Roman Haefeli committed
512
#X connect 0 0 3 0;
Roman Haefeli's avatar
Roman Haefeli committed
513
514
#X connect 1 0 17 0;
#X connect 2 0 16 0;
Roman Haefeli's avatar
Roman Haefeli committed
515
#X connect 3 0 8 0;
Roman Haefeli's avatar
Roman Haefeli committed
516
#X connect 3 0 21 0;
Roman Haefeli's avatar
Roman Haefeli committed
517
518
519
520
521
#X connect 4 0 5 0;
#X connect 5 0 15 0;
#X connect 5 1 15 1;
#X connect 6 0 7 0;
#X connect 7 0 8 1;
Roman Haefeli's avatar
Roman Haefeli committed
522
#X connect 7 0 21 1;
Roman Haefeli's avatar
Roman Haefeli committed
523
524
525
526
527
528
529
#X connect 8 0 9 0;
#X connect 10 0 3 0;
#X connect 11 0 3 0;
#X connect 12 0 3 1;
#X connect 13 0 3 1;
#X connect 14 0 3 1;
#X connect 15 0 6 0;
Roman Haefeli's avatar
Roman Haefeli committed
530
531
532
533
534
535
536
537
538
539
540
541
#X connect 16 0 0 0;
#X connect 16 1 10 0;
#X connect 16 2 11 0;
#X connect 16 3 12 0;
#X connect 16 4 13 0;
#X connect 16 5 14 0;
#X connect 17 0 2 0;
#X connect 17 1 2 1;
#X connect 17 2 2 2;
#X connect 18 0 19 0;
#X connect 19 0 20 0;
#X connect 21 0 9 1;
Roman Haefeli's avatar
Roman Haefeli committed
542
#X coords 0 -1 1 1 120 35 1 30 200;
Roman Haefeli's avatar
Roman Haefeli committed
543
544
#X restore 248 298 pd synth;
#X obj 20 288 s \$0.from;
545
#X obj 19 339 r \$0.from;
Roman Haefeli's avatar
Roman Haefeli committed
546
547
548
#X obj 20 201 r \$0.to;
#X obj 71 201 r \$0.from;
#N canvas 170 116 645 392 note.manipulation 0;
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
#X obj 18 190 s \$0.to;
#X msg 78 38 note create 4 65 80 12 0;
#X text 77 14 NOTE MANIPULATION;
#X msg 78 68 note change duration 4 65 16;
#X msg 78 98 note change velocity 4 65 120;
#X msg 78 128 note change gid 4 65 1;
#X text 279 38 create a note with [step \, pitch \, velocity \, duration
\, gid];
#X text 279 68 change a note's duration [step \, pitch \, duration]
;
#X text 279 98 chage a note's velocity [step \, pitch \, velocity]
;
#X text 279 128 change a note's group [step \, pitch \, gid];
#X text 279 158 delete a note [step \, pitch];
#X msg 78 158 note delete 4 65;
Roman Haefeli's avatar
Roman Haefeli committed
564
#X text 82 228 step: denotes the temporal position of the note (0 -
Roman Haefeli's avatar
Roman Haefeli committed
565
inf);
Roman Haefeli's avatar
Roman Haefeli committed
566
567
#X text 82 248 pitch: refers to the MIDI pitch (0 - 127);
#X text 82 268 duration: period between note-on and note-off (1 - inf)
Roman Haefeli's avatar
Roman Haefeli committed
568
;
Roman Haefeli's avatar
Roman Haefeli committed
569
570
#X text 82 288 velocity: (1 -127) for note-on \, 0 for note-off;
#X text 82 308 gid: group id relevant for editing (0 -5);
571
572
573
574
575
#X connect 1 0 0 0;
#X connect 3 0 0 0;
#X connect 4 0 0 0;
#X connect 5 0 0 0;
#X connect 11 0 0 0;
Roman Haefeli's avatar
Roman Haefeli committed
576
#X restore 20 129 pd note.manipulation;
Roman Haefeli's avatar
Roman Haefeli committed
577
#N canvas 141 99 404 505 manual 0;
Roman Haefeli's avatar
Roman Haefeli committed
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
#X text 15 11 Display;
#X text 15 21 -------;
#X text 15 121 Clock;
#X text 15 131 -----;
#X text 15 251 Editing;
#X text 15 261 -------;
#X text 14 150 For most flexible use \, [unpunch] doesn't have an internal
clock \, but is driven by an external clock sent to its right inlet.
The most simple clock is a counter counting upwards in regular intervals.
Loops are played by inserting a modulo into the counter. Note that
all active notes are muted when a jump in the clock occurs in order
to avoid hanging notes.;
#X text 15 40 [unpunch] draws its graphical interface to a canvas whose
name is specified as first argument to [unpunch] and which can be an
another patch \, abstraction \, or subpatch. In any case \, the canvas
should be empty as it will be cleared during redraws.;
#X text 14 280 Notes are created by clicking on the grid and are deleted
by double-clicking them. The values in the top section define the default
properties for newly created notes and include duration \, velocity
and gid (group id). The duration of notes is changed by dragging the
right end of a note horizontally. The grey switch on the right selects
which property is displayed numerically on each note. Changig the numbers
is an alternative way to edit notes. The grey bar above each default
value can be toggled between red and grey. If red \, the default value
is applied immediately when clicking a note.;
Roman Haefeli's avatar
Roman Haefeli committed
603
#X text 14 430 NOTE: In order to allow real-time state synchronisation
Roman Haefeli's avatar
Roman Haefeli committed
604
\, manual edits only generate messages to the left outlet \, but do
Roman Haefeli's avatar
Roman Haefeli committed
605
606
not actually perform the actions. For the messages to have an effect
\, loop back left outlet to left inlet.;
Roman Haefeli's avatar
Roman Haefeli committed
607
#X restore 20 69 pd manual;
Roman Haefeli's avatar
Roman Haefeli committed
608
609
610
611
612
#X text 404 274 arg1: name of canvas to draw interface;
#X text 391 304 inlet0: editor commands and configuration;
#X text 391 324 inlet1: sequencer input (clock);
#X text 386 354 outlet0: generated edit commands (mouse actions);
#X text 386 374 outlet1: notes ([pitch \, velocity] tuples);
Roman Haefeli's avatar
Roman Haefeli committed
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
#N canvas 170 115 628 440 interface.configuration 0;
#X msg 78 229 redraw;
#X obj 18 300 s \$0.to;
#X text 229 79 set step height (pixel;
#X text 229 49 set step width (pixel);
#X text 229 109 set the number of steps displayed in a single page
;
#X text 229 139 set the vertical number of steps;
#X text 229 229 redraw display after having changed configuration;
#X text 229 169 set the nuumber of subdivision that fit into a division
;
#X text 229 199 set the number of steps that fit into a subdivision
;
#X text 229 259 switch display to page with given number (starting
at 0) [implies a redraw of display];
#X msg 78 259 page 3;
#X msg 78 109 set stepsperpage 64;
#X msg 78 139 set pitchrange 48;
#X msg 78 49 set stepviswidth 15;
#X msg 78 79 set stepvisheight 14;
#X text 78 21 INTERFACE CONFIGURATION;
634
635
#X msg 78 169 set griddivision 4;
#X msg 78 199 set gridsubdivision 4;
Roman Haefeli's avatar
Roman Haefeli committed
636
637
638
639
640
641
642
#X connect 0 0 1 0;
#X connect 10 0 1 0;
#X connect 11 0 1 0;
#X connect 12 0 1 0;
#X connect 13 0 1 0;
#X connect 14 0 1 0;
#X connect 16 0 1 0;
643
#X connect 17 0 1 0;
Roman Haefeli's avatar
Roman Haefeli committed
644
645
646
#X restore 20 99 pd interface.configuration;
#X obj 2 2 cnv 15 700 24 empty empty empty 20 12 0 14 -233017 -66577
0;
Roman Haefeli's avatar
Roman Haefeli committed
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
#X obj 17 238 cnv 15 360 24 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 20 241 unpunch pd-My_Happy_Sequencer;
#N canvas 709 99 1006 749 My_Happy_Sequencer 1;
#X restore 242 241 pd My_Happy_Sequencer;
#N canvas 170 116 568 256 misc 0;
#X obj 18 130 s \$0.to;
#X text 77 14 MISC METHODS;
#X msg 78 38 clear \, redraw;
#X text 179 38 clear all notes ('clear' alone only deletes all notes
internally without updating visual representation);
#X msg 78 78 dump;
#X text 179 78 dump complete state as a set of messages. If the set
of messages is later sent back to [unpunch] in the same order \, the
complete state can be restored;
#X connect 2 0 0 0;
#X connect 4 0 0 0;
#X restore 20 159 pd misc;
Roman Haefeli's avatar
Roman Haefeli committed
665
#N canvas 0 99 467 139 example.song 0;
Roman Haefeli's avatar
Roman Haefeli committed
666
667
668
669
#X obj 19 79 s \$0.to;
#N canvas 0 99 420 479 song-data-in-a-messagebox 0;
#X obj 16 22 inlet;
#X msg 16 52 clear \, set stepviswidth 15 \, set stepvisheight 14 \,
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
set stepsperpage 64 \, set pitchrange 48 \, set gridsubdivision 4 \,
set griddivision 4 \, page 1 \, note create 0 46 64 2 0 \, note create
3 53 64 1 0 \, note create 4 53 64 2 0 \, note create 7 46 64 1 0 \,
note create 8 47 64 2 0 \, note create 11 54 64 1 0 \, note create
12 54 64 2 0 \, note create 15 47 64 1 0 \, note create 16 44 64 2
0 \, note create 19 51 65 1 0 \, note create 20 51 64 2 0 \, note create
23 44 64 1 0 \, note create 24 49 64 2 0 \, note create 27 56 64 1
0 \, note create 28 56 64 2 0 \, note create 31 49 64 1 0 \, note create
0 68 64 1 0 \, note create 2 68 64 1 0 \, note create 5 68 64 1 0 \,
note create 7 70 64 1 0 \, note create 9 70 64 1 0 \, note create 11
70 64 2 0 \, note create 14 70 64 1 0 \, note create 16 70 64 1 0 \,
note create 18 70 64 1 0 \, note create 21 70 64 1 0 \, note create
23 68 64 1 0 \, note create 25 68 61 1 0 \, note create 27 68 64 2
0 \, note create 30 68 64 1 0 \, note create 0 61 64 1 0 \, note create
2 61 64 1 0 \, note create 5 61 64 1 0 \, note create 7 63 64 1 0 \,
note create 9 63 64 1 0 \, note create 11 63 64 2 0 \, note create
14 63 64 1 0 \, note create 16 63 64 1 0 \, note create 18 63 64 1
0 \, note create 21 63 64 1 0 \, note create 23 63 64 1 0 \, note create
25 63 64 1 0 \, note create 27 63 64 2 0 \, note create 18 66 64 1
0 \, note create 0 65 64 1 0 \, note create 2 65 64 1 0 \, note create
5 65 64 1 0 \, note create 9 66 64 1 0 \, note create 7 66 64 1 0 \,
note create 11 66 64 2 0 \, note create 14 66 64 1 0 \, note create
16 66 64 1 0 \, note create 21 66 64 1 0 \, note create 23 65 64 1
0 \, note create 25 65 64 1 0 \, note create 27 65 64 2 0 \, note create
30 65 64 1 0 \, note create 30 63 64 1 0 \,;
Roman Haefeli's avatar
Roman Haefeli committed
695
#X obj 16 426 outlet;
696
#X msg 150 442 clear;
Roman Haefeli's avatar
Roman Haefeli committed
697
698
#X connect 0 0 1 0;
#X connect 1 0 2 0;
699
#X connect 3 0 2 0;
Roman Haefeli's avatar
Roman Haefeli committed
700
701
702
703
#X restore 19 42 pd song-data-in-a-messagebox;
#X obj 19 14 bng 20 250 50 0 empty empty empty 17 7 0 10 -204786 -1
-1;
#X text 42 15 load song;
704
#X connect 1 0 0 0;
Roman Haefeli's avatar
Roman Haefeli committed
705
#X connect 2 0 1 0;
Roman Haefeli's avatar
Roman Haefeli committed
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
#X restore 222 56 pd example.song;
#N canvas 169 115 431 426 about 0;
#X text 17 15 unpunch - a configurable matrix sequencer;
#X text 17 31 -----------------------------------------;
#X text 18 224 The way it uses Pd's data structures comes with a few
quirks and not all graphic scalars are protected from accidental movement.
However \, the correct view can be restored at any time.;
#X text 18 288 The sequencer doesn't run its own clock \, but is meant
to be driven by an external clock in order to integrate it more easily
in already existing systems with their own master clock. This help
contains an example for a very simple clock.;
#X text 18 364 Report any bugs and feature request to the respective
github project.;
#X text 17 55 [unpunch] is a sequencer that allows to graphically edit
MIDI-like scores on a timeline \, a.k.a piano roll sequencer. Notes
can be created and deletec \, velocity and duration can be changed
with mouse actions. Additionally \, notes can be organized in groups
and operations like cloning \, pitch- or time-shifting can be applied
to groups. [unpunch] has a configurable interface to make it suitable
for various time signatures and display resolutions. The complete state
can be dumped for later restoration and it integrates well in existing
state saving systems. It is designed for real-time synchronisation
(if needed) and can also be used in systems like netpd.;
#X restore 20 39 pd about;
Roman Haefeli's avatar
Roman Haefeli committed
730
#X text 12 5 unpunch - a configurable matrix sequencer;
731
#X text 550 411 2019 \, Roman Haefeli;
Roman Haefeli's avatar
Roman Haefeli committed
732
733
#X connect 1 0 0 0;
#X connect 2 0 1 0;
734
#X connect 5 0 13 0;
Roman Haefeli's avatar
Roman Haefeli committed
735
736
#X connect 6 0 5 1;
#X connect 8 0 2 0;
737
738
739
740
741
742
743
744
745
746
747
#X connect 9 0 10 0;
#X connect 10 0 33 1;
#X connect 11 0 9 0;
#X connect 15 0 14 0;
#X connect 16 0 15 1;
#X connect 20 0 5 0;
#X connect 21 0 33 0;
#X connect 22 0 33 0;
#X connect 33 0 19 0;
#X connect 33 1 15 0;
#X connect 33 1 18 0;