1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
declare version "2.77.2";
declare compile_options "-single -scal ../../build/bin/faust -I dsp -e dsp/mixer.dsp -o reference/mixer.box";
declare library_path0 "/Users/letz/Developpements/faust/tests/impulse-tests/dsp/volume.dsp";
declare library_path1 "/Users/letz/Developpements/faust/tests/impulse-tests/dsp/music.lib";
declare library_path2 "/Users/letz/Developpements/faust/tests/impulse-tests/dsp/math.lib";
declare library_path3 "/Users/letz/Developpements/faust/tests/impulse-tests/dsp/vumeter.dsp";
declare library_path4 "/Users/letz/Developpements/faust/tests/impulse-tests/dsp/panpot.dsp";
declare author "Grame";
declare copyright "(c)GRAME 2006";
declare filename "mixer.dsp";
declare license "BSD";
declare math_lib_author "GRAME";
declare math_lib_copyright "GRAME";
declare math_lib_deprecated "This library is deprecated and is not maintained anymore. It will be removed in August 2017.";
declare math_lib_license "LGPL with exception";
declare math_lib_name "Math Library";
declare math_lib_version "1.0";
declare music_lib_author "GRAME";
declare music_lib_copyright "GRAME";
declare music_lib_license "LGPL with exception";
declare music_lib_name "Music Library";
declare music_lib_version "1.0";
declare name "mixer";
declare panpot_dsp_author "Grame";
declare panpot_dsp_copyright "(c)GRAME 2006";
declare panpot_dsp_license "BSD";
declare panpot_dsp_name "panpot";
declare panpot_dsp_version "1.0";
declare version "1.0";
declare volume_dsp_author "Grame";
declare volume_dsp_copyright "(c)GRAME 2006";
declare volume_dsp_license "BSD";
declare volume_dsp_name "volume";
declare volume_dsp_version "1.0";
declare vumeter_dsp_author "Grame";
declare vumeter_dsp_copyright "(c)GRAME 2006";
declare vumeter_dsp_license "BSD";
declare vumeter_dsp_name "vumeter";
declare vumeter_dsp_version "1.0";
ID_0 = checkbox("mute");
ID_1 = 1, ID_0;
ID_2 = (ID_1 : -);
ID_3 = _, ID_2;
ID_4 = ID_3 : *;
ID_5 = vslider("[1]", 0.0f, -7e+01f, 4.0f, 0.1f);
ID_6 = _, 0.001f;
ID_7 = ID_6 : *;
ID_8 = _, 0.999f;
ID_9 = (ID_8 : *);
ID_10 = + ~ ID_9;
ID_11 = ID_7 : ID_10;
ID_12 = \(x1).(10,(x1,2e+01f : /) : pow) : ID_11;
ID_13 = (ID_5 : ID_12);
ID_14 = _, ID_13;
ID_15 = ID_14 : *;
ID_16 = ID_15 : \(x2).(x2,(x2 : abs : max~(_,(1.0f,(1.92e+05f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /) : -) : (10,-3.5f : pow),_ : max : \(x3).(20,(x3 : log10) : *) : vbargraph("[2][unit:dB]", -7e+01f, 5.0f)) : attach);
ID_17 = hgroup("[2]", ID_16);
ID_18 = ID_17 : \(x4).((((nentry("[1]pan[style:knob]", 0.0f, -9e+01f, 9e+01f, 1.0f),9e+01f : -),-1.8e+02f : / : sqrt),x4 : *),((1,((nentry("[1]pan[style:knob]", 0.0f, -9e+01f, 9e+01f, 1.0f),9e+01f : -),-1.8e+02f : /) : - : sqrt),x4 : *));
ID_19 = ID_4 : ID_18;
ID_20 = vgroup("Ch 0", ID_19);
ID_21 = vgroup("Ch 1", ID_19);
ID_22 = vgroup("Ch 2", ID_19);
ID_23 = vgroup("Ch 3", ID_19);
ID_24 = vgroup("Ch 4", ID_19);
ID_25 = vgroup("Ch 5", ID_19);
ID_26 = vgroup("Ch 6", ID_19);
ID_27 = vgroup("Ch 7", ID_19);
ID_28 = ID_26, ID_27;
ID_29 = ID_25, ID_28;
ID_30 = ID_24, ID_29;
ID_31 = ID_23, ID_30;
ID_32 = ID_22, ID_31;
ID_33 = ID_21, ID_32;
ID_34 = ID_20, ID_33;
ID_35 = ID_15, ID_15;
ID_36 = vgroup("L", \(x2).(x2,(x2 : abs : max~(_,(1.0f,(1.92e+05f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /) : -) : (10,-3.5f : pow),_ : max : \(x3).(20,(x3 : log10) : *) : vbargraph("[2][unit:dB]", -7e+01f, 5.0f)) : attach));
ID_37 = vgroup("R", \(x2).(x2,(x2 : abs : max~(_,(1.0f,(1.92e+05f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /) : -) : (10,-3.5f : pow),_ : max : \(x3).(20,(x3 : log10) : *) : vbargraph("[2][unit:dB]", -7e+01f, 5.0f)) : attach));
ID_38 = ID_36, ID_37;
ID_39 = ID_35 : ID_38;
ID_40 = hgroup("stereo out", ID_39);
ID_41 = ID_34 :> ID_40;
ID_42 = hgroup("mixer", ID_41);
process = ID_42;
|