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
|
declare version "2.77.2";
declare compile_options "-single -scal ../../build/bin/faust -I dsp -e dsp/dbmeter.dsp -o reference/dbmeter.box";
declare library_path0 "/Users/letz/Developpements/faust/tests/impulse-tests/dsp/music.lib";
declare library_path1 "/Users/letz/Developpements/faust/tests/impulse-tests/dsp/math.lib";
declare author "Grame";
declare copyright "(c)GRAME 2006";
declare filename "dbmeter.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 "dbmeter";
declare version "1.0";
ID_0 = \(x1).(x1,(x1 : abs : (10,-3.5f : pow),_ : max : \(x2).(20,(x2 : log10) : *) : 10,_ : min : max~(_,(8e+01f,(1.92e+05f,(1.0f,fconstant(int fSamplingFreq, <math.h>) : max) : min) : /) : -) : vbargraph("[unit:dB]", -7e+01f, 1e+01f)) : attach) : \(x3).(0,x3 : attach);
ID_1 = vgroup("0", ID_0);
ID_2 = vgroup("1", ID_0);
ID_3 = vgroup("2", ID_0);
ID_4 = vgroup("3", ID_0);
ID_5 = vgroup("4", ID_0);
ID_6 = vgroup("5", ID_0);
ID_7 = vgroup("6", ID_0);
ID_8 = vgroup("7", ID_0);
ID_9 = ID_7, ID_8;
ID_10 = ID_6, ID_9;
ID_11 = ID_5, ID_10;
ID_12 = ID_4, ID_11;
ID_13 = ID_3, ID_12;
ID_14 = ID_2, ID_13;
ID_15 = ID_1, ID_14;
ID_16 = hgroup("8 channels dB meter", ID_15);
process = ID_16;
|