Skip to content
Permalink
29e84706d0
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 186 lines (186 sloc) 5.27 KB
#N canvas 85 125 1355 667 12;
#X obj 5 56 inlet;
#X obj 57 58 inlet;
#X obj 8 452 outlet~;
#X obj 67 452 outlet~;
#X obj 334 131 receive zhaox10_tempo;
#X obj 834 67 receive zhaox10_control;
#X obj 19 200 % 6;
#X floatatom 19 175 5 0 0 0 - - -;
#X floatatom 19 229 5 0 0 0 - - -;
#X floatatom 19 289 5 0 0 0 - - -;
#X obj 19 319 mtof;
#X floatatom 19 350 5 0 0 0 - - -;
#X obj 19 373 osc~ 440;
#X obj 19 417 *~;
#X msg 184 347 0 50;
#X obj 135 386 line~;
#X obj 242 49 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#N canvas 0 22 450 278 (subpatch) 0;
#X array array1_zhaox10 6 float 3;
#A 0 65 65 66 61 65 67;
#X coords 0 128 6 0 200 140 1 0 0;
#X restore 515 22 graph;
#X obj 19 104 random 250;
#X obj 19 145 + 25;
#X obj 142 301 loadbang;
#X text 214 300 ROB - need to initialize your volume \; use loadbang
to send a bang at the start of the patch (when it is loaded);
#X obj 138 452 throw~ zhaox10_audio_1;
#X obj 19 257 tabread array1_zhaox10;
#X msg 516 172 \; array1_zhaox10 0 65 65 66 65 61 67;
#X floatatom 83 227 5 0 0 0 - - -;
#X obj 83 203 random 6;
#X msg 138 347 1 50;
#X obj 834 101 list prepend set;
#X obj 834 125 list trim;
#X msg 834 154 zhaox10 key 1 q 113;
#X obj 798 205 list trim;
#X obj 798 229 route zhaox10;
#X obj 798 253 route key;
#X obj 797 277 unpack f s f;
#X floatatom 881 347 5 0 0 0 - - -;
#X obj 881 370 mtof;
#X floatatom 881 394 5 0 0 0 - - -;
#X obj 881 417 osc~;
#X obj 772 318 bng 15 250 50 0 empty empty empty 0 -6 0 8 -241291 -1
-1;
#X obj 760 405 mtof;
#X obj 932 510 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 933 535 metro 100;
#X obj 933 576 tabwrite~ square;
#X obj 760 429 phasor~;
#X obj 760 456 expr~ $v1 > 0.5;
#X obj 760 502 *~ 2;
#X obj 760 524 -~ 1;
#X obj 826 501 *~ 1.96;
#X obj 826 523 -~ 0.98;
#X obj 753 585 output~;
#X obj 960 212 list trim;
#X obj 960 236 route zhaox10;
#X obj 960 260 route key;
#X obj 964 298 unpack f s f;
#X obj 881 312 / 1.65;
#X text 355 483 turn on the volume at 30-40 \, and then kick a d e
i w then click a d e i a \, that's the basic beat.;
#X obj 513 583 throw~ zhaox10_audio_1;
#N canvas 305 23 927 717 bells 0;
#X obj 47 459 catch~ sum;
#X obj 359 284 s frequency;
#X obj 473 284 s duration;
#X floatatom 473 234 0 0 0 0 - - -;
#X obj 473 259 * 100;
#X obj 359 259 mtof;
#X floatatom 359 234 0 0 0 0 - - -;
#X text 92 17 ADDITIVE SYNTHESIS;
#X text 511 224 duration in tenths;
#X text 513 240 of a second;
#X text 397 233 pitch;
#X text 443 528 updated for Pd version 0.37;
#X text 36 93 Partial takes as arguments an amplitude \, a relative
frequency \, a detuning frequency \, and a relative duration. You set
absolute duration and pitch using the controls below. Hit the trigger
to make sound.;
#X obj 46 174 partial 1 1 0.56 0;
#X text 37 41 This patch demonstrates using an abstraction \, "partial"
\, to make a simple additive synthesis instrument originally from Jean-Claude
Risset.;
#X obj 359 179 loadbang;
#X msg 359 202 72;
#X msg 473 204 40;
#X obj 362 332 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 395 334 <-- click to play a note;
#X obj 362 368 s trigger;
#X obj 46 199 partial 0.67 0.9 0.56 1;
#X obj 46 224 partial 1 0.65 0.92 0;
#X obj 46 249 partial 1.8 0.55 0.92 1.7;
#X obj 46 274 partial 2.67 0.325 1.19 0;
#X obj 46 299 partial 1.67 0.35 1.7 0;
#X obj 46 324 partial 1.46 0.25 2 0;
#X obj 46 349 partial 1.33 0.2 2.74 0;
#X obj 46 374 partial 1.33 0.15 3 0;
#X obj 46 399 partial 1 0.1 3.76 0;
#X obj 46 424 partial 1.33 0.075 4.07 0;
#X obj 456 138 inlet;
#X obj 529 140 inlet;
#X obj 308 309 inlet;
#X text 445 118 Midi Pitch;
#X text 525 105 duration in tenths;
#X text 527 121 of a second;
#X obj 47 498 output~;
#X obj 148 516 throw~ zhaox10_audio_1;
#X connect 0 0 37 0;
#X connect 0 0 37 1;
#X connect 0 0 38 0;
#X connect 3 0 4 0;
#X connect 4 0 2 0;
#X connect 5 0 1 0;
#X connect 6 0 5 0;
#X connect 15 0 16 0;
#X connect 15 0 17 0;
#X connect 16 0 6 0;
#X connect 17 0 3 0;
#X connect 18 0 20 0;
#X connect 31 0 6 0;
#X connect 32 0 3 0;
#X connect 33 0 18 0;
#X restore 968 353 pd bells;
#X text 975 7 ROB - yes \, I'm removing this though to use the global
new version;
#X obj 833 8 keycontrol_ zhaox10;
#X text 28 14 Xudong Zhao;
#X floatatom 1077 285 5 0 0 0 - - -;
#X floatatom 1077 308 5 0 0 0 - - -;
#X floatatom 945 333 5 0 0 0 - - -;
#X connect 5 0 28 0;
#X connect 5 0 31 0;
#X connect 5 0 51 0;
#X connect 6 0 8 0;
#X connect 7 0 6 0;
#X connect 8 0 23 0;
#X connect 9 0 10 0;
#X connect 10 0 11 0;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 13 0 2 0;
#X connect 13 0 22 0;
#X connect 14 0 15 0;
#X connect 15 0 13 1;
#X connect 18 0 19 0;
#X connect 19 0 7 0;
#X connect 20 0 27 0;
#X connect 23 0 9 0;
#X connect 26 0 25 0;
#X connect 27 0 15 0;
#X connect 28 0 29 0;
#X connect 29 0 30 0;
#X connect 31 0 32 0;
#X connect 32 0 33 0;
#X connect 33 0 34 0;
#X connect 34 1 39 0;
#X connect 34 2 55 0;
#X connect 35 0 36 0;
#X connect 35 0 40 0;
#X connect 36 0 37 0;
#X connect 37 0 38 0;
#X connect 40 0 44 0;
#X connect 41 0 42 0;
#X connect 42 0 43 0;
#X connect 44 0 45 0;
#X connect 45 0 46 0;
#X connect 45 0 48 0;
#X connect 46 0 47 0;
#X connect 47 0 57 0;
#X connect 48 0 49 0;
#X connect 49 0 43 0;
#X connect 51 0 52 0;
#X connect 52 0 53 0;
#X connect 53 0 54 0;
#X connect 53 0 62 0;
#X connect 54 0 58 0;
#X connect 54 0 64 0;
#X connect 55 0 35 0;
#X connect 62 0 63 0;