Skip to content

Commit

Permalink
clean up auxiliary Faust scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mzuther committed Jul 13, 2020
1 parent 23acb74 commit 832d7d1
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
80 changes: 40 additions & 40 deletions src/faust/gui.dsp
Original file line number Diff line number Diff line change
Expand Up @@ -31,56 +31,56 @@ main_group(x) = vgroup("ProtoFaust", x);

button_group(x) = main_group(hgroup("[2] Buttons", x));

button_1 = button_group(vslider("1 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
button_2 = button_group(vslider("2 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
button_3 = button_group(vslider("3 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
button_4 = button_group(vslider("4 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
button_5 = button_group(vslider("5 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
button_6 = button_group(vslider("6 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
button_7 = button_group(vslider("7 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
button_8 = button_group(vslider("8 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
button_1 = button_group(vslider("1 [style:knob]" , 0.5 , 0 , 1 , 1e-3));
button_2 = button_group(vslider("2 [style:knob]" , 0.5 , 0 , 1 , 1e-3));
button_3 = button_group(vslider("3 [style:knob]" , 0.5 , 0 , 1 , 1e-3));
button_4 = button_group(vslider("4 [style:knob]" , 0.5 , 0 , 1 , 1e-3));
button_5 = button_group(vslider("5 [style:knob]" , 0.5 , 0 , 1 , 1e-3));
button_6 = button_group(vslider("6 [style:knob]" , 0.5 , 0 , 1 , 1e-3));
button_7 = button_group(vslider("7 [style:knob]" , 0.5 , 0 , 1 , 1e-3));
button_8 = button_group(vslider("8 [style:knob]" , 0.5 , 0 , 1 , 1e-3));

knob_group(x) = main_group(hgroup("[1] Knobs", x));

knob_1 = knob_group(vslider("1 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
knob_2 = knob_group(vslider("2 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
knob_3 = knob_group(vslider("3 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
knob_4 = knob_group(vslider("4 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
knob_5 = knob_group(vslider("5 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
knob_6 = knob_group(vslider("6 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
knob_7 = knob_group(vslider("7 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
knob_8 = knob_group(vslider("8 [style:knob]" , 0.5 , 0 , 1 , 1e-3)) : _;
knob_1 = knob_group(vslider("1 [style:knob]" , 0.5 , 0 , 1 , 1e-3));
knob_2 = knob_group(vslider("2 [style:knob]" , 0.5 , 0 , 1 , 1e-3));
knob_3 = knob_group(vslider("3 [style:knob]" , 0.5 , 0 , 1 , 1e-3));
knob_4 = knob_group(vslider("4 [style:knob]" , 0.5 , 0 , 1 , 1e-3));
knob_5 = knob_group(vslider("5 [style:knob]" , 0.5 , 0 , 1 , 1e-3));
knob_6 = knob_group(vslider("6 [style:knob]" , 0.5 , 0 , 1 , 1e-3));
knob_7 = knob_group(vslider("7 [style:knob]" , 0.5 , 0 , 1 , 1e-3));
knob_8 = knob_group(vslider("8 [style:knob]" , 0.5 , 0 , 1 , 1e-3));

led_group(x) = main_group(hgroup("[3] Lights", x));

led_1_r = led_group(vbargraph("1 Red [style:led]" , 0 , 1)) : _;
led_1_g = led_group(vbargraph("1 Green [style:led]" , 0 , 1)) : _;
led_1_b = led_group(vbargraph("1 Blue [style:led]" , 0 , 1)) : _;
led_1_r = led_group(vbargraph("1 Red [style:led]" , 0 , 1));
led_1_g = led_group(vbargraph("1 Green [style:led]" , 0 , 1));
led_1_b = led_group(vbargraph("1 Blue [style:led]" , 0 , 1));

led_2_r = led_group(vbargraph("2 Red [style:led]" , 0 , 1)) : _;
led_2_g = led_group(vbargraph("2 Green [style:led]" , 0 , 1)) : _;
led_2_b = led_group(vbargraph("2 Blue [style:led]" , 0 , 1)) : _;
led_2_r = led_group(vbargraph("2 Red [style:led]" , 0 , 1));
led_2_g = led_group(vbargraph("2 Green [style:led]" , 0 , 1));
led_2_b = led_group(vbargraph("2 Blue [style:led]" , 0 , 1));

led_3_r = led_group(vbargraph("3 Red [style:led]" , 0 , 1)) : _;
led_3_g = led_group(vbargraph("3 Green [style:led]" , 0 , 1)) : _;
led_3_b = led_group(vbargraph("3 Blue [style:led]" , 0 , 1)) : _;
led_3_r = led_group(vbargraph("3 Red [style:led]" , 0 , 1));
led_3_g = led_group(vbargraph("3 Green [style:led]" , 0 , 1));
led_3_b = led_group(vbargraph("3 Blue [style:led]" , 0 , 1));

led_4_r = led_group(vbargraph("4 Red [style:led]" , 0 , 1)) : _;
led_4_g = led_group(vbargraph("4 Green [style:led]" , 0 , 1)) : _;
led_4_b = led_group(vbargraph("4 Blue [style:led]" , 0 , 1)) : _;
led_4_r = led_group(vbargraph("4 Red [style:led]" , 0 , 1));
led_4_g = led_group(vbargraph("4 Green [style:led]" , 0 , 1));
led_4_b = led_group(vbargraph("4 Blue [style:led]" , 0 , 1));

led_5_r = led_group(vbargraph("5 Red [style:led]" , 0 , 1)) : _;
led_5_g = led_group(vbargraph("5 Green [style:led]" , 0 , 1)) : _;
led_5_b = led_group(vbargraph("5 Blue [style:led]" , 0 , 1)) : _;
led_5_r = led_group(vbargraph("5 Red [style:led]" , 0 , 1));
led_5_g = led_group(vbargraph("5 Green [style:led]" , 0 , 1));
led_5_b = led_group(vbargraph("5 Blue [style:led]" , 0 , 1));

led_6_r = led_group(vbargraph("6 Red [style:led]" , 0 , 1)) : _;
led_6_g = led_group(vbargraph("6 Green [style:led]" , 0 , 1)) : _;
led_6_b = led_group(vbargraph("6 Blue [style:led]" , 0 , 1)) : _;
led_6_r = led_group(vbargraph("6 Red [style:led]" , 0 , 1));
led_6_g = led_group(vbargraph("6 Green [style:led]" , 0 , 1));
led_6_b = led_group(vbargraph("6 Blue [style:led]" , 0 , 1));

led_7_r = led_group(vbargraph("7 Red [style:led]" , 0 , 1)) : _;
led_7_g = led_group(vbargraph("7 Green [style:led]" , 0 , 1)) : _;
led_7_b = led_group(vbargraph("7 Blue [style:led]" , 0 , 1)) : _;
led_7_r = led_group(vbargraph("7 Red [style:led]" , 0 , 1));
led_7_g = led_group(vbargraph("7 Green [style:led]" , 0 , 1));
led_7_b = led_group(vbargraph("7 Blue [style:led]" , 0 , 1));

led_8_r = led_group(vbargraph("8 Red [style:led]" , 0 , 1)) : _;
led_8_g = led_group(vbargraph("8 Green [style:led]" , 0 , 1)) : _;
led_8_b = led_group(vbargraph("8 Blue [style:led]" , 0 , 1)) : _;
led_8_r = led_group(vbargraph("8 Red [style:led]" , 0 , 1));
led_8_g = led_group(vbargraph("8 Green [style:led]" , 0 , 1));
led_8_b = led_group(vbargraph("8 Blue [style:led]" , 0 , 1));
4 changes: 2 additions & 2 deletions src/faust/rack.dsp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ freq2cv_pitch(freq) = ma.log2(freq / 440) + 0.75;


// Converts 200 mV/oct to frequency in Hertz.
i_cv_pitch2freq(i_cv_pitch) = i_cv_pitch : internal2cv_pitch : cv_pitch2freq : _;
i_cv_pitch2freq(i_cv_pitch) = i_cv_pitch : internal2cv_pitch : cv_pitch2freq;


// Converts frequency in Hertz to 200 mV/oct.
freq2i_cv_pitch(freq) = freq : freq2cv_pitch : cv_pitch2internal : _;
freq2i_cv_pitch(freq) = freq : freq2cv_pitch : cv_pitch2internal;


// Converts Eurorack's 1 V/oct to internal 200 mv/oct.
Expand Down

0 comments on commit 832d7d1

Please sign in to comment.