Skip to content

Commit

Permalink
wizard 1
Browse files Browse the repository at this point in the history
  • Loading branch information
dxinteractive committed Jan 29, 2024
1 parent 5327ad2 commit 180c9f1
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions dev/src/dsp-definitions/36-wizard-delay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ import("stdfaust.lib");
delay_max = ma.SR * 5;
wet_param = 0.5;
dry_param = 1.0;
fb_param = 0.5;
time_param = 0.5;
wet_param = 0.4;
dry_param = 0.0;
fb_param = 0.3;
time_param = 1.0;
mod_speed_param = 3.0;
mod_depth_param = 0.0001;
mod_depth_param = 0.0003;
mod = 1.0 - ((os.osc(mod_speed_param) * 0.5 + 0.5) * mod_depth_param);
// modx = mod * (os.lf_sawpos(time_param * 2) + 0.01);
modx = mod * (os.lf_sawpos(time_param * (1 / 3)) + 0.001);
delay(time, fb, x) = x + fb : de.fdelay(delay_max, time * mod) : fi.highpass(2, 200.0) : fi.lowpass(2, 4000.0);
delay(time, fb, x) = x + fb : de.fdelay(delay_max, time * modx) : fi.highpass(2, 200.0) : fi.lowpass(2, 20000.0);
fb = *(fb_param);
echo(time) = delay(time) ~ fb;
wet_l = echo(time_param * ma.SR * 0.8);
wet_l = echo(time_param * ma.SR); // * 0.8
wet_r = echo(time_param * ma.SR);
wet = _ <: wet_l,wet_r : *(wet_param),*(wet_param);
dry = *(dry_param);
Expand All @@ -40,3 +40,13 @@ const dspDefinition: DspDefinition = {
};

export default dspDefinition;

// ideas
// time, offset, l vs r time, feedback, width, eq, overlay, sample rate
// layers?

// A: time
// B: feedback
// C: EQ
// D: overlay
// E:

0 comments on commit 180c9f1

Please sign in to comment.