Examples' Makefiles are completed and tested.
[Faustine.git] / interpretor / preprocessor / faust-0.9.47mr3 / tools / faust2pd / examples / faust / faustdemo.pd
1 #N canvas 206 113 724 712 10;
2 #X obj 21 76 karplus;
3 #X obj 96 466 panpot;
4 #X obj 96 258 dbmeter;
5 #X obj 136 659 dac~;
6 #X msg 21 12 play 1;
7 #X obj 21 530 freeverb;
8 #X text 194 475 Another Faust unit which allows you to change the panning
9 of the mono input \, giving you stereo output.;
10 #X text 25 679 Send the final output into Pd's dac~ object.;
11 #X msg 344 635 \; pd dsp 1;
12 #X obj 344 596 loadbang;
13 #X text 365 616 Turn on audio output when this patch is loaded.;
14 #X msg 77 6 attenuation 0.01;
15 #X text 279 537 This is the Faust implementation of the popular Freeverb
16 effect. It takes stereo input and produces stereo output.;
17 #X msg 87 27 panpot 4;
18 #X msg 99 50 Wet 0.5;
19 #X text 288 12 (Open each subpatch to see what's going on inside.)
20 ;
21 #X text 278 51 This unit is the Faust version of the Karplus-Strong
22 synthesizer. All faust2pd-generated patches have a number of signal
23 inlets and outlets corresponding to the number of audio inputs and
24 outputs of the DSP. In this case there is no audio input and just one
25 audio output. The generated patch also has a number of GUI elements
26 for operating the controls of the Faust unit \, including the two special
27 buttons in the upper-right corner for reverting all controls to their
28 defaults and turning the unit on and off.;
29 #X text 277 184 The leftmost inlet is for control messages which allow
30 you to change the control values of the unit. E.g. \, passing a "play
31 1" message will operate the "play" button of this unit \, and passing
32 "attenuation 0.01" will set the attenuation control. This allows you
33 to apply presets or automate the operation of the unit. All units also
34 pass through control messages from the leftmost inlet to the leftmost
35 outlet so that control can flow along with the audio signal through
36 an entire chain of Faust modules. This allows the "panpot" and "Wet"
37 messages at the top of this patch to be routed through "karplus" and
38 "dbmeter" to the "panpot" and "freeverb" units below.;
39 #X text 195 358 Here we pass the audio output of the karplus unit to
40 a dB meter written in Faust \, which simply passes through the audio
41 signal to its signal outlet. This unit has only one "passive" control
42 which just shows a value computed by the unit. Values of passive controls
43 are updated every 40 ms by default. You can change this by sending
44 a value to the global "faust-timer" receiver.;
45 #X msg 495 440 \; faust-timer 10;
46 #X connect 0 0 2 0;
47 #X connect 0 1 2 1;
48 #X connect 1 0 5 0;
49 #X connect 1 1 5 1;
50 #X connect 1 2 5 2;
51 #X connect 2 0 1 0;
52 #X connect 2 1 1 1;
53 #X connect 4 0 0 0;
54 #X connect 5 1 3 0;
55 #X connect 5 2 3 1;
56 #X connect 9 0 8 0;
57 #X connect 11 0 0 0;
58 #X connect 13 0 0 0;
59 #X connect 14 0 0 0;