X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/1059e1cc0c2ecfa237406949aa26155b6a5b9154..66f23d4fabf89ad09adbd4dfc15ac6b5b2b7da83:/interpreter/preprocessor/faust-0.9.47mr3/tools/faust2pd/examples/faust/mixer.dsp diff --git a/interpreter/preprocessor/faust-0.9.47mr3/tools/faust2pd/examples/faust/mixer.dsp b/interpreter/preprocessor/faust-0.9.47mr3/tools/faust2pd/examples/faust/mixer.dsp new file mode 100644 index 0000000..ccfbcba --- /dev/null +++ b/interpreter/preprocessor/faust-0.9.47mr3/tools/faust2pd/examples/faust/mixer.dsp @@ -0,0 +1,21 @@ +declare name "mixer"; +declare version "1.0"; +declare author "Grame"; +declare license "BSD"; +declare copyright "(c)GRAME 2006"; + +//------------------------------------------------- +// Simple 8x2 mixer +//------------------------------------------------- + +vol = component("volume.dsp"); +pan = component("panpot.dsp"); +vumeter = component("vumeter.dsp").vmeter; +mute = *(1 - checkbox("mute")); + +voice(v) = vgroup("voice %v", mute : hgroup("", vol : vumeter) : pan); +stereo = hgroup("stereo out", vol, vol); + +process = hgroup("mixer", par(i, 8, voice(i)) :> stereo); + +