Created
October 4, 2018 18:26
-
-
Save sletz/793a3f316735c96780eb8ef799d1bba4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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