2021-10-31 00:54:36 +11:00
|
|
|
SndBuf buf => dac;
|
2021-11-03 19:08:40 +11:00
|
|
|
"/home/tth/Essais/Chuck/sample.wav" => buf.read;
|
2021-10-31 00:54:36 +11:00
|
|
|
|
|
|
|
float srate, duration;
|
|
|
|
1 => buf.gain;
|
|
|
|
|
2021-11-03 19:08:40 +11:00
|
|
|
for ( 0.7=>srate; srate<1.9; 1.1 *=> srate) {
|
|
|
|
4000 / srate => duration;
|
2021-10-31 00:54:36 +11:00
|
|
|
<<< "loop...", srate, duration >>>;
|
|
|
|
0 => buf.pos;
|
|
|
|
srate => buf.rate;
|
|
|
|
(duration)::ms => now;
|
|
|
|
}
|
|
|
|
|