Skip to content

Instantly share code, notes, and snippets.

@sletz
Created October 4, 2018 18:26
Show Gist options
  • Save sletz/793a3f316735c96780eb8ef799d1bba4 to your computer and use it in GitHub Desktop.
Save sletz/793a3f316735c96780eb8ef799d1bba4 to your computer and use it in GitHub Desktop.
import("stdfaust.lib");
panSlider = hslider("Pan", 0, -1, 1, 0.01);
pan = (panSlider + 1) / 2;
gainL = cos(pan * ma.PI / 2);
gainR = sin(pan * ma.PI / 2);
panMono(input) = input <:(input * gainL, input * gainR);
process = _:panMono;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment