comparison examples/08-PureData/basicAnalogOut/_main.pd @ 531:ddb86944e138 prerelease

cleaned up all pd examples (and removed some). added polysynth and vangelisiser to instruments examples
author chnrx <chris.heinrichs@gmail.com>
date Thu, 23 Jun 2016 20:40:05 +0100
parents 8fcfbfb32aa0
children
comparison
equal deleted inserted replaced
525:1ca196e35105 531:ddb86944e138
1 #N canvas 275 504 679 362 10; 1 #N canvas 1905 153 656 668 10;
2 #X text 148 124 << Use first two analog in's;
3 #X text 431 57 ------------;
4 #X text 44 51 Basic analog out; 2 #X text 44 51 Basic analog out;
5 #X text 44 61 ================; 3 #X text 44 61 ================;
6 #X text 431 95 DAC 3: Analog Out 0; 4 #X text 45 548 DAC 3: Analog Out 0;
7 #X text 431 105 DAC 4: Analog Out 1; 5 #X text 45 558 DAC 4: Analog Out 1;
8 #X text 431 115 DAC 5: Analog Out 2; 6 #X text 45 568 DAC 5: Analog Out 2;
9 #X text 431 125 DAC 6: Analog Out 3; 7 #X text 45 578 DAC 6: Analog Out 3;
10 #X text 431 145 DAC 8: Analog Out 5; 8 #X text 45 598 DAC 8: Analog Out 5;
11 #X text 431 135 DAC 7: Analog Out 4; 9 #X text 45 588 DAC 7: Analog Out 4;
12 #X text 431 155 DAC 9: Analog Out 6; 10 #X text 45 608 DAC 9: Analog Out 6;
13 #X text 431 165 DAC 10: Analog Out 7; 11 #X text 45 618 DAC 10: Analog Out 7;
14 #X text 431 85 DAC 2: Audio Out R; 12 #X text 45 538 DAC 2: Audio Out R;
15 #X text 431 75 DAC 1: Audio Out L; 13 #X text 45 528 DAC 1: Audio Out L;
16 #X obj 92 201 *~; 14 #X obj 82 351 *~;
17 #X obj 92 159 *~ 10; 15 #X obj 82 309 *~ 10;
18 #X obj 92 180 osc~ 1; 16 #X obj 82 330 osc~ 1;
19 #X obj 35 242 dac~ 1 2 3; 17 #X text 133 431 << Output to first analog out;
20 #X text 143 241 << Output to first analog out; 18 #X obj 82 275 adc~ 3 4;
21 #X text 431 49 DAC routing:; 19 #X text 45 84 Just like the BasicAnalogIn example \, the first two
22 #X text 432 289 ---------------------------------; 20 ;
23 #X text 432 279 @krighxz / BELA / heavy / 12/2015; 21 #X text 45 98 analog inputs are used to control the frequency and;
24 #X text 456 298 beaglert.cc / enzienaudio.com; 22 #X text 45 111 amplitude of an oscillator \, this time outputting;
25 #X obj 92 125 adc~ 3 4; 23 #X text 45 125 a lower range of frequencies (<10Hz).;
26 #X connect 14 0 17 2; 24 #X text 45 139 Instead of sending this to Bela's stereo output we;
27 #X connect 15 0 16 0; 25 #X text 45 153 are sending this to the first analog output.;
28 #X connect 16 0 14 0; 26 #X text 138 274 << Use first two analog ins;
29 #X connect 23 0 15 0; 27 #X text 138 310 << Analog In 0 controls frequency;
30 #X connect 23 1 14 1; 28 #X text 138 349 << Analog In 1 controls amplitude;
29 #X obj 82 380 *~ 0.5;
30 #X obj 82 402 +~ 0.5;
31 #X text 138 389 << Rescale output to range 0-1;
32 #X text 45 167 Note that analog inputs and outputs have a range between
33 ;
34 #X text 45 181 0 and 1 \, unlike regular audio signals (which have
35 a;
36 #X text 45 195 range between -1 and 1). Hence we rescale the output
37 ;
38 #X text 45 209 of the oscillator in order to preserve the full range
39 ;
40 #X text 45 223 of the sinusoidal signal.;
41 #X obj 82 432 dac~ 3;
42 #X text 44 490 ------------;
43 #X text 44 482 DAC routing:;
44 #X text 45 502 DAC channels 3-10 are used to address the analog inputs:
45 ;
46 #X text 435 42 ............................;
47 #X text 435 52 . ____ ._____ _ .......___ .;
48 #X text 435 62 .| __ )| ____| |....../ _ |.;
49 #X text 435 82 .| |_) | |___| |___ / ___ |.;
50 #X text 435 92 .|____/|_____|_____/_/..._|.io;
51 #X text 435 102 ............................;
52 #X text 435 72 .| __ || __|.| |...../ _| |.;
53 #X connect 12 0 26 0;
54 #X connect 13 0 14 0;
55 #X connect 14 0 12 0;
56 #X connect 16 0 13 0;
57 #X connect 16 1 12 1;
58 #X connect 26 0 27 0;
59 #X connect 27 0 34 0;