You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
388B

  1. // Simplest possible script using all variables
  2. import("stdfaust.lib");
  3. // Switch button, highlight in red
  4. switch(i) = button("switch%i [switch:%i]") : hbargraph("[switchlight_red:%i]", 0, 1);
  5. // Gain slider, highlight in red
  6. gain(i) = hslider("gain%i [knob:%i]", 0.1, 0, 1, 0.01) : hbargraph("[light_red:%i]", 0, 1);
  7. process = si.bus(6) : par(i, 6, *(gain(i+1)) * (1-switch(i+1)));