diff options
author | Vee9ahd1 <> | 2021-05-11 15:29:40 -0400 |
---|---|---|
committer | Vee9ahd1 <> | 2021-05-11 15:29:40 -0400 |
commit | 194676e190b827c6b12318213261d4e47ec7e6aa (patch) | |
tree | 37802291ed88fcc79f5e0946d7a283ca345afb12 /loquelic_ss_cv.dsp |
initial commit
Diffstat (limited to 'loquelic_ss_cv.dsp')
-rw-r--r-- | loquelic_ss_cv.dsp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/loquelic_ss_cv.dsp b/loquelic_ss_cv.dsp new file mode 100644 index 0000000..772b321 --- /dev/null +++ b/loquelic_ss_cv.dsp @@ -0,0 +1,29 @@ +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(pitchA, pitchB, morphA, morphB, foldgain, mod, damp) = + (oscA - a*oscC)/(1.0 + a^2 - 2*a*oscB) : *(UIFoldGain + foldgain) : fold +with { + a = UIDamp; + sinemorph(morph) = knee(morph) : sin(_*2.0*ma.PI); + + tA = pitchA : phase + oscB*(UIMod + mod) : fmod(_, 1.0); + tB = pitchB : phase + 0.25 : fmod(_, 1.0); + tC = tB - tA : fmod(_, 1.0); + + oscA = tA : sinemorph(morphA + UIMorphA); + oscB = tB : sinemorph(morphB + UIMorphB); + oscC = tA - tB : sin(_*2.0+ma.PI); +}; |