Created
October 5, 2011 00:05
-
-
Save edeleflie/1263213 to your computer and use it in GitHub Desktop.
auditory_s_s updated
This file contains hidden or 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
( | |
SynthDef("auditory_s_s", { arg in, out, // input sound, output sound | |
room = 0.1, damp = 0.5, // reverb params (all between 0 and 1) | |
hp_cutoff_freq = 10, // hi pass params (anything) | |
lp_cutoff_freq = 40000, // low pass params (anything) | |
pan = 0, // pan left or right (-1 to 1) | |
stereoWidthVol = 0, // 0 - 1 (try 0.7) | |
stereoWidthAmount = 0.0, // 0.0001 - 0.1 (try 0.002) (time delay between 2 channels) | |
vol = 0.5, | |
source_vol = 1.0; | |
var reverbed, panned_reverb, lo_passed, hi_passed, panned1, panned2; | |
hi_passed = HPF.ar(In.ar(in), hp_cutoff_freq); // this line applies the Hi pass | |
lo_passed = RLPF.ar(hi_passed, lp_cutoff_freq, 0.2); // this line applies the low pass | |
reverbed = FreeVerb.ar( // rhis block creates the reverb | |
lo_passed, // mono src | |
1, // mix 0-1 | |
room, // room 0-1 | |
damp // damp 0-1 duh | |
) * vol; | |
panned1 = Pan2.ar(lo_passed * source_vol, pan); | |
panned2 = DelayL.ar( Pan2.ar(lo_passed * source_vol, pan * -1), 0.5, stereoWidthAmount, stereoWidthVol); // creates stereo width | |
Out.ar( out, reverbed + panned1 + panned2); // this line sends the audio out | |
}).store(); | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment