Update of /cvsroot/pure-data/pd/doc/3.audio.examples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29870/pd/doc/3.audio.examples
Modified Files: C08.analog.sequencer.pd Log Message: improve error reporting for lists to inlets, and replace __BYTE_ORDER by BYTE_ORDER to fix compile failure on Mac.
Index: C08.analog.sequencer.pd =================================================================== RCS file: /cvsroot/pure-data/pd/doc/3.audio.examples/C08.analog.sequencer.pd,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** C08.analog.sequencer.pd 9 May 2003 16:03:50 -0000 1.1.1.1 --- C08.analog.sequencer.pd 20 Jan 2007 04:06:06 -0000 1.2 *************** *** 1,28 **** ! #N canvas 46 22 825 554 12; ! #N canvas 0 0 450 300 graph1 0; ! #X array 29-sequence 9 float 1; ! #A 0 55 550 385 495 165 385 495 275 615; ! #X coords 0 500 8 0 200 100 1; #X restore 621 42 graph; #X obj 27 426 *~; #X obj 27 454 hip~ 5; ! #N canvas 0 0 450 300 graph1 0; #X array 29-envelope 103 float 1; ! #A 0 -0.1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 1.01111 1 0.988889 0.977778 ! 0.966667 0.955556 0.944444 0.933333 0.922222 0.911111 0.9 0.888889 ! 0.797778 0.737777 0.677777 0.647777 0.617777 0.557777 0.487777 0.467777 ! 0.447776 0.417776 0.397776 0.387776 0.377776 0.367776 0.347776 0.327776 ! 0.317776 0.297776 0.277776 0.267776 0.257776 0.257776 0.277776 0.297776 ! 0.327776 0.357776 0.377776 0.397776 0.407776 0.427776 0.437776 0.387776 ! 0.367776 0.347776 0.337776 0.287776 0.277776 0.277776 0.277776 0.267776 ! 0.267776 0.267776 0.297776 0.317776 0.347776 0.367776 0.367776 0.357776 ! 0.347776 0.337776 0.307776 0.287776 0.257776 0.227776 0.197776 0.167776 ! 0.167776 0.167776 0.167776 0.167776 0.157776 0.157776 0.157776 0.157776 ! 0.147776 0.147776 0.147776 0.137776 0.137776 0.111111 0.1 0.0888889 ! 0.0777778 0.0666667 0.0555556 0.0444444 0.0333333 0.0222222 0.0111111 ! 0 -0.0111111; #X coords 0 1 102 0 200 100 1; #X restore 622 146 graph; ! #N canvas 0 0 450 300 graph1 0; #X array 29-sample 259 float 1; #A 0 0.989177 1 0.989177 0.95694 0.903989 0.83147 0.740952 0.634394 --- 1,28 ---- ! #N canvas 57 74 829 559 12; ! #N canvas 0 0 450 300 (subpatch) 0; ! #X array 29-sequence 9 float 3; ! #A 0 110 550 385 495 165 385 495 275 615; ! #X coords 0 500 9 0 200 100 1; #X restore 621 42 graph; #X obj 27 426 *~; #X obj 27 454 hip~ 5; ! #N canvas 0 0 450 300 (subpatch) 0; #X array 29-envelope 103 float 1; ! #A 0 -0.0199988 1.0673e-06 0.0500008 0.13 0.16 0.28 0.5 0.6 0.7 0.8 ! 1.01111 1 0.988889 0.977778 0.966667 0.955556 0.944444 0.933333 0.922222 ! 0.911111 0.9 0.888889 0.797778 0.737777 0.677777 0.647777 0.617777 ! 0.557777 0.487777 0.467777 0.447776 0.417776 0.397776 0.387776 0.377776 ! 0.367776 0.347776 0.327776 0.317776 0.297776 0.277776 0.267776 0.257776 ! 0.257776 0.277776 0.297776 0.327776 0.357776 0.377776 0.397776 0.407776 ! 0.427776 0.437776 0.387776 0.367776 0.347776 0.337776 0.287776 0.277776 ! 0.277776 0.277776 0.267776 0.267776 0.267776 0.297776 0.317776 0.347776 ! 0.367776 0.367776 0.357776 0.347776 0.337776 0.307776 0.287776 0.257776 ! 0.227776 0.197776 0.167776 0.167776 0.167776 0.167776 0.167776 0.157776 ! 0.157776 0.157776 0.157776 0.147776 0.147776 0.147776 0.137776 0.137776 ! 0.111111 0.1 0.0888889 0.0777778 0.0666667 0.0555556 0.0444444 0.0333333 ! 0.0222222 0.0111111 0 -0.0111111; #X coords 0 1 102 0 200 100 1; #X restore 622 146 graph; ! #N canvas 0 0 450 300 (subpatch) 0; #X array 29-sample 259 float 1; #A 0 0.989177 1 0.989177 0.95694 0.903989 0.83147 0.740952 0.634394 *************** *** 118,129 **** #X text 46 1 ANALOG-SYNTH-STYLE SEQUENCER; #X obj 26 170 phasor~ 0.6; - #X text 27 27 Some control operations can be carried out entirely by - tilde objects passing audio signals around. Here is an imitation of - an analog sequencer and envelope generator. A phasor~ loops through - the "sequence" table at 0.6 Hz , generating 9 frequencies. Simultaneously - , by multiplying by 9 and wrapping , we create a sawtooth at 9*0.6=5.4 - Hz , which reads a second table for an envelope shape. This becomes - the grain size for a samplerbased on the 18.sampler.looped example - earlier.; #X text 97 194 main loop: sawtooth of amplitude 9; #X text 218 219 read frequency sequence; --- 118,121 ---- *************** *** 135,138 **** --- 127,138 ---- #X text 62 428 multiply by raised-cosine smoothing function; #X text 478 401 how to make the tables:; + #X text 27 27 Some control operations can be carried out entirely by + tilde objects passing audio signals around. Here is an imitation of + an analog sequencer and envelope generator. A phasor~ loops through + the "sequence" table at 0.6 Hz , generating 9 frequencies. Simultaneously + , by multiplying by 9 and wrapping , we create a sawtooth at 9*0.6=5.4 + Hz , which reads a second table for an envelope shape. This becomes + the grain size for a sampler based on the 18.sampler.looped example + earlier.; #X connect 1 0 2 0; #X connect 2 0 14 0;