-
Notifications
You must be signed in to change notification settings - Fork 0
/
dsp-panic~.pd
executable file
·121 lines (121 loc) · 3.49 KB
/
dsp-panic~.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
#N canvas 275 25 823 585 10;
#X obj 332 55 receive pd;
#X obj 332 78 route dsp;
#X msg 136 348 10;
#X msg 166 348 76;
#X obj 103 103 cnv 15 80 46 nada_panic_canvas dsp_panic_canvas empty
27 14 0 16 -233017 -33289 0;
#X obj 156 106 tgl 22 0 \$0-dsp_panic_ON_OFF_send \$0-dsp_panic_ON_OFF_r
dsp 3 11 0 9 -233017 -33289 -33289 0 1;
#X obj 107 132 bng 14 250 50 0 \$0-dsp_panic_panic_send \$0-dsp_panic_panic_r
panic(ESC) 17 8 0 9 -233017 -33289 -33289;
#X msg 33 230 \; pd dsp \$1;
#X msg 262 280 13;
#X obj 136 280 sel 0 1;
#X obj 188 280 delay 2000;
#X obj 43 75 key;
#X obj 43 97 sel 27;
#X msg 294 281 0;
#X obj 233 255 t b b b;
#X obj 359 177 !=;
#X obj 332 199 spigot;
#X obj 332 105 t f f;
#X obj 190 325 spigot;
#X obj 33 150 t f f f b;
#X msg 223 304 0;
#X msg 252 304 1;
#X text 371 502 Edu Meneses (2015);
#X text 360 530 Released under GNU GPL;
#X text 371 516 www.edumeneses.com;
#X text 284 544 Based on Hans-Christoph Steiner's dsp.pd (2005).;
#X obj 109 106 hsl 45 22 0 1 0 0 \$0-dsp_panic_volume_send \$0-dsp_panic_volume_r
volume 5 11 0 9 -262144 -1 -1 4400 1;
#X obj 611 40 inlet~;
#X obj 531 40 inlet~;
#X obj 611 74 hip~ 5;
#X obj 531 74 hip~ 5;
#X obj 611 252 *~;
#X obj 531 252 *~;
#X obj 566 282 dac~;
#X obj 570 191 line~;
#X obj 570 167 \$1 20;
#X obj 442 382 cnv 15 250 90 empty empty patch_mapping_DSP 20 12 0
14 -232576 -66577 0;
#N canvas 301 228 450 300 instructions 0;
#X text 156 231 Edu Meneses (2015);
#X text 145 259 Released under GNU GPL;
#X text 156 245 www.edumeneses.com;
#X text 37 89 volume: controls DSP volume (values from 0 to 1).;
#X text 37 109 state: Turns DSP on and off (0 or 1).;
#X text 37 129 panic: control panix button (bang and ESC key).;
#X text 37 15 To use this subpatch with external controllers send the
command messages to mapping_commands:;
#X text 25 70 dsp_panic:;
#X restore 582 450 pd instructions;
#X text 408 558 v1.0;
#N canvas 68 287 420 295 patch_mapping_DSP 0;
#X obj 46 64 inlet;
#X obj 46 130 route state volume panic;
#X obj 140 205 s \$0-dsp_panic_panic_r;
#X obj 93 185 s \$0-dsp_panic_volume_r;
#X obj 46 165 s \$0-dsp_panic_ON_OFF_r;
#X obj 46 92 route dsp_panic;
#X obj 133 64 inlet;
#X obj 183 37 loadbang;
#X obj 183 88 s \$0-dsp_panic_patch_mapping_default;
#X msg 183 61 set dsp_panic;
#X connect 0 0 5 0;
#X connect 1 0 4 0;
#X connect 1 1 3 0;
#X connect 1 2 2 0;
#X connect 5 0 1 0;
#X connect 6 0 5 1;
#X connect 7 0 9 0;
#X connect 9 0 8 0;
#X restore 453 450 pd patch_mapping_DSP;
#X obj 453 427 r mapping_commands;
#X obj 334 298 s \$0-dsp_panic_ON_OFF_r;
#X symbolatom 570 428 15 0 0 2 address #0-dsp_panic_patch_mapping_default
-;
#X msg 156 374 \; dsp_panic_canvas color \$1 12 12;
#X connect 0 0 1 0;
#X connect 1 0 17 0;
#X connect 2 0 43 0;
#X connect 3 0 43 0;
#X connect 5 0 19 0;
#X connect 6 0 14 0;
#X connect 8 0 43 0;
#X connect 9 0 2 0;
#X connect 9 1 3 0;
#X connect 10 0 18 0;
#X connect 11 0 12 0;
#X connect 12 0 6 0;
#X connect 13 0 41 0;
#X connect 14 0 10 0;
#X connect 14 1 8 0;
#X connect 14 1 21 0;
#X connect 14 2 13 0;
#X connect 15 0 16 1;
#X connect 16 0 41 0;
#X connect 17 0 16 0;
#X connect 17 1 15 0;
#X connect 18 0 2 0;
#X connect 19 0 7 0;
#X connect 19 1 9 0;
#X connect 19 2 15 1;
#X connect 19 3 20 0;
#X connect 20 0 18 1;
#X connect 21 0 18 1;
#X connect 26 0 35 0;
#X connect 27 0 29 0;
#X connect 28 0 30 0;
#X connect 29 0 31 0;
#X connect 30 0 32 0;
#X connect 31 0 33 1;
#X connect 32 0 33 0;
#X connect 34 0 32 1;
#X connect 34 0 31 1;
#X connect 35 0 34 0;
#X connect 40 0 39 0;
#X connect 42 0 39 1;
#X coords 0 -1 1 1 86 52 2 100 100;