Commit 212c617e authored by Hanspeter Portner's avatar Hanspeter Portner

dsp: update presets.

parent eb7f33fe
Pipeline #109698230 passed with stages
in 3 minutes and 44 seconds
import("stdfaust.lib");
gain = hslider("parameter/gain[0]", 0, 0, 1, 0.01);
gain_l = hslider("gain left[0]", 0, 0, 1, 0.01);
gain_r = hslider("gain right[1]", 0, 0, 1, 0.01);
process = _, _;
process = _ * gain_l, _ * gain_r;
// vim: set syntax=faust:
......@@ -2,13 +2,17 @@ declare options "[nvoices:48][midi:on]";
import("stdfaust.lib");
freq = hslider("synth/freq", 20, 20, 20000, 1);
gain = hslider("synth/gain", 0, 0, 1, 0.01);
gate = button("synth/gate");
freq = hslider("freq", 20, 20, 20000, 1);
gain = hslider("gain", 0, 0, 1, 0.01);
gate = button("gate");
lfo_f = hslider("LFO frequency[0]", 0, 0, 1000, 1);
lfo_a = hslider("LFO amplitude[1]", 0, 0, 1, 0.01);
env = en.adsr(0.01, 1.0, 0.8, 0.1, gate) * gain;
lfo = 1 + os.lf_triangle(lfo_f) * lfo_a;
inst = os.triangle(freq) * env;
inst = os.triangle(freq * lfo) * env / 4;
process = inst, inst;
......
......@@ -2,12 +2,12 @@ declare options "[time:on]";
import("stdfaust.lib");
barBeat = hslider("time/barBeat[time:barBeat]", 0, 0, 32, 1);
beatsPerBar = hslider("time/beatsPerBar[time:beatsPerBar]", 1, 1, 32, 1);
gate = button("time/speed[time:speed]");
barBeat = hslider("bar beat[time:barBeat]", 0, 0, 32, 1);
beatsPerBar = hslider("beats per bar[time:beatsPerBar]", 1, 1, 32, 1);
gate = button("speed[time:speed]");
mul = hslider("parameter/mul[0]", 0, 0, 1000, 1);
add = hslider("parameter/add[1]", 0, 0, 1000, 1);
mul = hslider("mul[0]", 0, 0, 1000, 1);
add = hslider("add[1]", 0, 0, 1000, 1);
freq = sin(barBeat / beatsPerBar * ma.PI) * mul + add;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment