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
|
declare version "2.77.2";
declare compile_options "-single -scal ../../build/bin/faust -I dsp -e dsp/osc.dsp -o reference/osc.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 2009";
declare filename "osc.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 "osc";
declare version "1.0";
ID_0 = _, 1;
ID_1 = (ID_0 : +);
ID_2 = ID_1 ~ _;
ID_3 = ID_2, 1;
ID_4 = ID_3 : -;
ID_5 = (ID_4 : float);
ID_6 = ID_5, 6.2831855f;
ID_7 = (ID_6 : *);
ID_8 = (65536 : float);
ID_9 = ID_7, ID_8;
ID_10 = ID_9 : /;
ID_11 = (ID_10 : sin);
ID_12 = hslider("freq [unit:Hz]", 1e+03f, 2e+01f, 2.4e+04f, 1.0f);
ID_13 = fconstant(int fSamplingFreq, <math.h>);
ID_14 = 1.0f, ID_13;
ID_15 = (ID_14 : max);
ID_16 = 1.92e+05f, ID_15;
ID_17 = ID_16 : min;
ID_18 = (ID_17 : float);
ID_19 = ID_12, ID_18;
ID_20 = ID_19 : /;
ID_21 = (+ : \(x1).(x1,(x1 : floor) : -));
ID_22 = ID_21 ~ _;
ID_23 = _, ID_8;
ID_24 = ID_23 : *;
ID_25 = ID_22 : ID_24;
ID_26 = ID_20 : ID_25;
ID_27 = (ID_26 : int);
ID_28 = ID_11, ID_27;
ID_29 = 65536, ID_28;
ID_30 = (ID_29 : rdtable);
ID_31 = hslider("volume [unit:dB]", 0.0f, -96.0f, 0.0f, 0.1f);
ID_32 = _, 0.001f;
ID_33 = ID_32 : *;
ID_34 = _, 0.999f;
ID_35 = (ID_34 : *);
ID_36 = + ~ ID_35;
ID_37 = ID_33 : ID_36;
ID_38 = \(x2).(10,(x2,2e+01f : /) : pow) : ID_37;
ID_39 = (ID_31 : ID_38);
ID_40 = ID_30, ID_39;
ID_41 = ID_40 : *;
ID_42 = vgroup("Oscillator", ID_41);
process = ID_42;
|