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;
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users