Mercurial > hg > beaglert
comparison projects/heavy/pd/envelopeTrigger/_main.pd @ 164:40badaff5729 heavy-updated
- added more pd/heavy examples
- removed heavy-specific flags from Makefile
- added air-harp cpp example project
author | chnrx <chris.heinrichs@gmail.com> |
---|---|
date | Thu, 03 Dec 2015 16:19:33 +0000 |
parents | c3e8226a5651 |
children |
comparison
equal
deleted
inserted
replaced
163:20b52283c7b4 | 164:40badaff5729 |
---|---|
1 #N canvas 146 218 359 287 10; | 1 #N canvas 646 209 359 287 10; |
2 #X obj 28 207 dac~; | 2 #X obj 28 207 dac~; |
3 #N canvas 324 380 556 621 env 0; | 3 #N canvas 324 380 556 621 env 0; |
4 #N canvas 886 1001 131 207 >~ 0; | 4 #N canvas 886 1001 131 207 >~ 0; |
5 #X obj 19 -37 -~; | 5 #X obj 19 -37 -~; |
6 #X obj 19 -58 min~; | 6 #X obj 19 -58 min~; |
45 #X connect 5 0 0 0; | 45 #X connect 5 0 0 0; |
46 #X connect 6 0 2 0; | 46 #X connect 6 0 2 0; |
47 #X connect 8 0 7 0; | 47 #X connect 8 0 7 0; |
48 #X restore 199 192 pd <~; | 48 #X restore 199 192 pd <~; |
49 #X text 237 193 (x != x); | 49 #X text 237 193 (x != x); |
50 #X obj 23 447 *~; | 50 #X obj 23 467 *~; |
51 #X obj 199 150 *~ -1; | 51 #X obj 199 150 *~ -1; |
52 #X obj 23 331 *~ 512; | 52 #X obj 23 331 *~ 512; |
53 #X obj 23 229 clip~ 0 1; | 53 #X obj 23 229 clip~ 0 1; |
54 #X obj 23 390 tabread4~ env1; | 54 #X obj 23 352 tabread4~ env1; |
55 #X obj 23 310 *~; | 55 #X obj 23 310 *~; |
56 #X obj 199 64 abs~; | 56 #X obj 199 64 abs~; |
57 #X obj 199 43 hip~ 1; | 57 #X obj 199 43 hip~ 1; |
58 #X obj 199 22 inlet~ excitationSignal; | 58 #X obj 199 22 inlet~ excitationSignal; |
59 #X obj 218 269 sig~ 1; | 59 #X obj 218 269 sig~ 1; |
60 #X obj 218 292 /~; | 60 #X obj 218 292 /~; |
61 #X obj 226 86 inlet~ threshold; | 61 #X obj 226 86 inlet~ threshold; |
62 #X obj 262 229 inlet~ envDuration; | 62 #X obj 262 229 inlet~ envDuration; |
63 #X obj 178 430 osc~ 220; | 63 #X obj 38 445 osc~ 220; |
64 #X obj 178 348 tabread4~ env1; | 64 #X obj 38 425 +~ 50; |
65 #X obj 178 410 +~ 50; | 65 #X obj 38 385 *~; |
66 #X obj 178 370 *~; | 66 #X obj 38 405 *~ 1000; |
67 #X obj 178 390 *~ 1000; | |
68 #X obj 262 269 clip~ 1e-05 100000; | 67 #X obj 262 269 clip~ 1e-05 100000; |
69 #X obj 23 467 outlet~; | 68 #X obj 23 487 outlet~; |
70 #N canvas 0 22 450 278 (subpatch) 0; | 69 #N canvas 0 22 450 278 (subpatch) 0; |
71 #X array env1 512 float 3; | 70 #X array env1 512 float 3; |
72 #A 0 0 0.0625 0.0883883 0.108253 0.125 0.139754 0.153093 0.165359 0.176777 | 71 #A 0 0 0.0625 0.0883883 0.108253 0.125 0.139754 0.153093 0.165359 0.176777 |
73 0.1875 0.197642 0.207289 0.216506 0.225347 0.233854 0.242061 0.25 0.257694 | 72 0.1875 0.197642 0.207289 0.216506 0.225347 0.233854 0.242061 0.25 0.257694 |
74 0.265165 0.272431 0.279509 0.286411 0.293151 0.299739 0.306186 0.3125 | 73 0.265165 0.272431 0.279509 0.286411 0.293151 0.299739 0.306186 0.3125 |
133 0.00961169 0.00885813 0.00813533 0.00744329 0.00678201 0.00615148 0.00555171 | 132 0.00961169 0.00885813 0.00813533 0.00744329 0.00678201 0.00615148 0.00555171 |
134 0.0049827 0.00444444 0.00393695 0.00346021 0.00301423 0.002599 0.00221453 | 133 0.0049827 0.00444444 0.00393695 0.00346021 0.00301423 0.002599 0.00221453 |
135 0.00186082 0.00153787 0.00124567 0.000984237 0.000753556 0.000553633 | 134 0.00186082 0.00153787 0.00124567 0.000984237 0.000753556 0.000553633 |
136 0.000384467 0.000246059 0.000138408 6.15148e-05 1.53787e-05 0; | 135 0.000384467 0.000246059 0.000138408 6.15148e-05 1.53787e-05 0; |
137 #X coords 0 1 512 0 512 64 1 0 0; | 136 #X coords 0 1 512 0 512 64 1 0 0; |
138 #X restore 24 516 graph; | 137 #X restore 24 536 graph; |
139 #X text 244 55 centre signal around zero and take abs value; | 138 #X text 244 55 centre signal around zero and take abs value; |
140 #X text 243 107 if greater than threshold output 1; | 139 #X text 243 107 if greater than threshold output 1; |
141 #X text 313 129 differentiator; | 140 #X text 313 129 differentiator; |
142 #X text 238 150 (generates impulse on positive trigger (0->1); | 141 #X text 238 150 (generates impulse on positive trigger (0->1); |
143 #X text 67 210 signal-rate counter; | 142 #X text 67 210 signal-rate counter; |
144 #X text 296 193 -> resets counter by briefly setting; | 143 #X text 296 193 -> resets counter by briefly setting; |
145 #X text 314 204 rpole~ coeff to 0; | 144 #X text 314 204 rpole~ coeff to 0; |
146 #X text 246 391 kickdrum 101 :P; | 145 #X text 96 416 kickdrum 101 :P; |
147 #X text 400 494 pre-generated envelope; | 146 #X text 400 514 pre-generated envelope; |
148 #X obj 262 249 *~; | 147 #X obj 262 249 *~; |
148 #X text 127 352 << use envelope value for volume and frequency; | |
149 #X connect 0 0 4 0; | 149 #X connect 0 0 4 0; |
150 #X connect 1 0 5 0; | 150 #X connect 1 0 5 0; |
151 #X connect 2 0 1 1; | 151 #X connect 2 0 1 1; |
152 #X connect 3 0 2 0; | 152 #X connect 3 0 2 0; |
153 #X connect 4 0 11 0; | 153 #X connect 4 0 11 0; |
154 #X connect 5 0 13 0; | 154 #X connect 5 0 13 0; |
155 #X connect 6 0 1 0; | 155 #X connect 6 0 1 0; |
156 #X connect 7 0 8 1; | 156 #X connect 7 0 8 1; |
157 #X connect 8 0 5 1; | 157 #X connect 8 0 5 1; |
158 #X connect 10 0 29 0; | 158 #X connect 10 0 28 0; |
159 #X connect 11 0 8 0; | 159 #X connect 11 0 8 0; |
160 #X connect 12 0 14 0; | 160 #X connect 12 0 14 0; |
161 #X connect 12 0 24 0; | |
162 #X connect 13 0 15 0; | 161 #X connect 13 0 15 0; |
163 #X connect 14 0 10 0; | 162 #X connect 14 0 10 0; |
163 #X connect 14 0 25 0; | |
164 #X connect 14 0 25 1; | |
164 #X connect 15 0 12 0; | 165 #X connect 15 0 12 0; |
165 #X connect 16 0 0 0; | 166 #X connect 16 0 0 0; |
166 #X connect 17 0 16 0; | 167 #X connect 17 0 16 0; |
167 #X connect 18 0 17 0; | 168 #X connect 18 0 17 0; |
168 #X connect 19 0 20 0; | 169 #X connect 19 0 20 0; |
169 #X connect 20 0 15 1; | 170 #X connect 20 0 15 1; |
170 #X connect 21 0 0 1; | 171 #X connect 21 0 0 1; |
171 #X connect 22 0 40 0; | 172 #X connect 22 0 39 0; |
172 #X connect 22 0 40 1; | 173 #X connect 22 0 39 1; |
173 #X connect 23 0 10 1; | 174 #X connect 23 0 10 1; |
174 #X connect 24 0 26 0; | 175 #X connect 24 0 23 0; |
175 #X connect 24 0 26 1; | 176 #X connect 25 0 26 0; |
176 #X connect 25 0 23 0; | 177 #X connect 26 0 24 0; |
177 #X connect 26 0 27 0; | 178 #X connect 27 0 20 1; |
178 #X connect 27 0 25 0; | 179 #X connect 39 0 27 0; |
179 #X connect 28 0 20 1; | |
180 #X connect 40 0 28 0; | |
181 #X restore 28 174 pd env; | 180 #X restore 28 174 pd env; |
182 #X obj 79 110 adc~ 9; | 181 #X obj 79 110 adc~ 9; |
183 #X obj 129 130 adc~ 10; | 182 #X obj 129 130 adc~ 10; |
184 #X obj 28 90 adc~ 8; | |
185 #X text 72 90 piezo input for excitation; | 183 #X text 72 90 piezo input for excitation; |
186 #X text 123 110 fader 1 sets threshold; | 184 #X text 123 110 fader 1 sets threshold; |
187 #X text 183 130 fader 2 sets duration; | 185 #X text 183 130 fader 2 sets duration; |
188 #X text 29 17 SAMPLE-ACCURATE ENVELOPE TRIGGER; | 186 #X text 29 17 SAMPLE-ACCURATE ENVELOPE TRIGGER; |
189 #X text 29 27 ================================; | 187 #X text 29 27 ================================; |
190 #X text 142 259 @krighxz / BELA / heavy / 11/2015; | 188 #X obj 28 90 adc~ 8; |
189 #X text 141 236 ---------------------------------; | |
190 #X text 141 226 @krighxz / BELA / heavy / 12/2015; | |
191 #X text 165 245 beaglert.cc / enzienaudio.com; | |
191 #X connect 1 0 0 0; | 192 #X connect 1 0 0 0; |
192 #X connect 1 0 0 1; | 193 #X connect 1 0 0 1; |
193 #X connect 2 0 1 1; | 194 #X connect 2 0 1 1; |
194 #X connect 3 0 1 2; | 195 #X connect 3 0 1 2; |
195 #X connect 4 0 1 0; | 196 #X connect 9 0 1 0; |