Skip to content

Instantly share code, notes, and snippets.

@madskjeldgaard
Created June 21, 2019 16:57
Show Gist options
  • Select an option

  • Save madskjeldgaard/ecf8e9f3bba5fb3bba483cdd04a9bf2d to your computer and use it in GitHub Desktop.

Select an option

Save madskjeldgaard/ecf8e9f3bba5fb3bba483cdd04a9bf2d to your computer and use it in GitHub Desktop.
Livecoding time stretch
// Try live coding this, Balint! Change some parameters and then reevalute
(
Ndef(\balintthedragon, {
arg buffer, // If you don't set the buffer argument, it will automatically take whatever buffer you have loaded in your server
grainsize=0.5,
rate=0.001,
freqScale=0.25,
volume=1,
rand=0.1;
Warp1.ar(
1, // Number of channels in the buffer
buffer,
pointer: LFSaw.kr(rate),
freqScale: freqScale,
windowSize: grainsize,
envbufnum: -1,
overlaps: 8,
windowRandRatio: rand,
interp: 4,
mul: volume
)
}).play;
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment