aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2020-01-15 19:29:47 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2020-01-15 19:29:47 +0100
commit212c617eaa846be7f3f5cf5deb0e3716996bba2e (patch)
tree23e61d3e4a8f20871899b560496793029fc7214f
parenteb7f33fe48c653ee46334735799d9a351361e573 (diff)
downloadmephisto.lv2-212c617eaa846be7f3f5cf5deb0e3716996bba2e.tar.xz
dsp: update presets.
-rw-r--r--VERSION2
-rw-r--r--bank-filter_gain.dsp5
-rw-r--r--bank-instrument_osc.dsp12
-rw-r--r--bank-time_lfo.dsp10
4 files changed, 17 insertions, 12 deletions
diff --git a/VERSION b/VERSION
index cd98256..c62d732 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.5.95
+0.5.97
diff --git a/bank-filter_gain.dsp b/bank-filter_gain.dsp
index ad027f1..311d0c0 100644
--- a/bank-filter_gain.dsp
+++ b/bank-filter_gain.dsp
@@ -1,7 +1,8 @@
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:
diff --git a/bank-instrument_osc.dsp b/bank-instrument_osc.dsp
index 47fb704..66a7467 100644
--- a/bank-instrument_osc.dsp
+++ b/bank-instrument_osc.dsp
@@ -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;
diff --git a/bank-time_lfo.dsp b/bank-time_lfo.dsp
index cd57e15..5961119 100644
--- a/bank-time_lfo.dsp
+++ b/bank-time_lfo.dsp
@@ -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;