[chuck-users] SndBuf .interp has no effect on smoothness

herman verbaeten hverb54 at hotmail.com
Fri Feb 28 06:05:11 EST 2020


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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20200228/907e5b60/attachment.html>


More information about the chuck-users mailing list