Skip to content

Instantly share code, notes, and snippets.

@sleexyz
Created July 28, 2015 01:50
Show Gist options
  • Save sleexyz/cf27c282629e032afff5 to your computer and use it in GitHub Desktop.
Save sleexyz/cf27c282629e032afff5 to your computer and use it in GitHub Desktop.
tuned feedback shenanigans
(
// osteophagia redux....
// 2015.03.31 ---> 2015.07.27
///
SynthDef(\rt, { |out=0|
var in, grainSize, mix, arr, pitchRatio, timeDispersion, pitchDispersion;
timeDispersion = MouseX.kr(0.0001, 10000, 1);
pitchRatio = MouseY.kr(0, 1);
pitchDispersion = 0;
in = SoundIn.ar(0);
grainSize = 0.1;
arr = 2**([-1,0,1] * pitchRatio);
mix = in;
5.do({
mix = (0.5*mix) + (0.5*Mix.new(arr.collect({|pitchRatio|
PitchShift.ar(mix, grainSize, pitchRatio, pitchDispersion, timeDispersion, 0.5);
})));
});
Out.ar(out, Pan2.ar(Normalizer.ar(Mix.new(mix), 0.5), LFNoise1.ar(0.2, 0.4), 4));
}).add;
)
(
Synth(\rt)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment