repo.or.cz
/
chuck-blob.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
*** empty log message ***
[chuck-blob.git]
/
exile
/
v1
/
examples
/
sndbuf.ck
blob
320943f43b09ece7b975d03f8405cfaa2c30fb8f
1
// the patch
2
sndbuf buf => dac;
3
// load the file
4
"data/snare.wav" => buf.read;
5
// set the playback rate (1.0 is default)
6
1.0 => buf.play;
7
8
// time loop
9
while( true )
10
{
11
0 => buf.pos;
12
std.rand2f(.2,.9) => buf.gain;
13
100::ms => now;
14
}