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.

16 lines
354B

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