[chuck-users] SndBuf use of .loop and .interp

herman verbaeten hverb54 at hotmail.com
Wed Feb 26 08:31:13 EST 2020


Hi,

In my attempt to loop-play 1 portion of the soundbuffer for a certain periode time(2000 milliseconds in my example) i get a kind of clicking when the geginning of the sample pos is different from the ending..
Maybe .loop and .interp of SndBuf is a solution here. Anyone who knows how to use them?
Kind regards,
Herman

me.sourceDir() + "aeiou.wav" => string filename;
if( me.args() ) me.arg(0) => filename;
SndBuf buf => dac;
filename => buf.read;

fun void looper()
{
while(true)
{
1500::samp => now;
50000 => buf.pos;
}}
spork ~ looper();

2000::ms => now;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20200226/c2928f34/attachment.html>


More information about the chuck-users mailing list