28 Feb
2020
28 Feb
'20
6:05 a.m.
Hi, I was told that in order to smoothen my slow-rated sample playback i should use .interp. In the script i added it but I don't hear any difference. Help! me.sourceDir() + "sound.wav" => string filename; if( me.args() ) me.arg(0) => filename; SndBuf buf => dac; filename => buf.read; 2 => buf.interp; .2 => buf.rate; buf.length() => now; // play him 1::ms => now; // wait a bit 1 => buf.loop; // loop homer now buf.length() => now; // for 2 seconds .1 => buf.rate;