Skip to content

Instantly share code, notes, and snippets.

@iani
Created August 2, 2014 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save iani/d41e3d1acd2cb36743bb to your computer and use it in GitHub Desktop.
Save iani/d41e3d1acd2cb36743bb to your computer and use it in GitHub Desktop.
Routines in SuperCollider - from Tsepelovo seminar - needs buffers loaded ...
q = { PlayBuf.ar(1, b, -1, 0, 0, 1) * 5 }.play;
q.free;
//
(
f = {
q = { PlayBuf.ar(1, b, -1, 0, 0, 1) * 5 }.play;
q.free;
};
)
//
(
f = {
var mySound;
mySound = { PlayBuf.ar(1, b, -1, 0, 0, 1) * 5 }.play;
1.wait;
mySound.free;
};
)
//
f;
//
f.fork;
//
(
{
20 do: {
f.fork;
0.1.wait;
}
}.fork
)
// Customization
(
w = { | times = 10, wait = 0.1 |
{
times do: {
f.fork;
wait.wait;
}
}.fork
};
)
//
w.value;
//
w.value(3);
//
w.value(3, 0.5);
//
w.value(8, 0.5);
//
r = w.value(10, 1);
//
r.stop;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment