Hi all,

I have a stereo signal, to which I want to apply a stereo in/stereo out effect. I want separate controls for the dry and the signal, not a combined dry/wet knob.

At first I had trouble wrapping my head around how to set up the routing in faust, but this is what I came up with, which works well:

import("stdfaust.lib");

out_mixer(fx, dry, wet, in_l, in_r) =
    fx(in_l, in_r) : *(wet), *(wet) :  +(in_l * dry), +(in_r * dry);

process = out_mixer(
    dm.greyhole_demo,
    hslider("Dry [unit:dB]", 0, -90, 10, 0.1) : ba.db2linear,
    hslider("Wet [unit:dB]", -12, -90, 10, 0.1) : ba.db2linear
);


But I wonder, is there a better way to write this? I.e. better readable, more idiomatic, or more concise?


Chris


_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to