From 194676e190b827c6b12318213261d4e47ec7e6aa Mon Sep 17 00:00:00 2001 From: Vee9ahd1 <> Date: Tue, 11 May 2021 15:29:40 -0400 Subject: initial commit --- loquelic_ss.dsp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 loquelic_ss.dsp (limited to 'loquelic_ss.dsp') diff --git a/loquelic_ss.dsp b/loquelic_ss.dsp new file mode 100644 index 0000000..5e13b4e --- /dev/null +++ b/loquelic_ss.dsp @@ -0,0 +1,28 @@ +import("stdfaust.lib"); +import("src/util.dsp"); + +UIGroupOscA(x) = vgroup("Oscillator A", x); +UIFreqA = UIGroupOscA(hslider("Frequency", 440.0, 20.0, 10000.0, 1)); +UIMorphA = UIGroupOscA(hslider("Morph", 0.5, 0.0, 1.0, 0.001)); + +UIGroupOscB(x) = vgroup("Oscillator B", x); +UIFreqB = UIGroupOscB(hslider("Frequency", 440.0, 20.0, 10000.0, 1)); +UIMorphB = UIGroupOscB(hslider("Morph", 0.5, 0.0, 1.0, 0.001)); + +UIFoldGain = hslider("Fold", 1.0, 0.0, 5.0, 0.01); +UIMod = hslider("Modulation", 0.0, 0.0, 1.0, 0.001); +UIDamp = hslider("Damp", 0.0, 0.0, 1.0, 0.001); + +process = (oscA - a*oscC)/(1.0 + a^2 - 2*a*oscB) : *(UIFoldGain) : fold +with { + a = UIDamp; + sinemorph(morph) = knee(morph) : sin(_*2.0*ma.PI); + + tA = UIFreqA : phase + oscB*UIMod : fmod(_, 1.0); + tB = UIFreqB : phase + 0.25 : fmod(_, 1.0); + tC = tB - tA : fmod(_, 1.0); + + oscA = tA : sinemorph(UIMorphA); + oscB = tB : sinemorph(UIMorphB); + oscC = tA - tB : sin(_*2.0+ma.PI); +}; -- cgit v1.2.1