[chuck-users] Looped sample playback rate
Ollie Glass
ollieglaskovik at gmail.com
Sun Feb 3 20:48:05 EST 2008
Hi Gasten,
I've discovered that there's no sound if the .freq call is made
before a sample is read. If you read and call .freq afterwards it's
fine. So my problem's solved, though I'd like to request that ChucK
prints error or warning messages in situations like this.
Best wishes,
Ollie
SndBuf buffer => dac;
buffer.loop(1);
"FunkDmin_1.wav" => buffer.read; // comment this and uncomment the
other line to see this happen
buffer.freq(0.4);
//"FunkDmin_1.wav" => buffer.read;
0 => buffer.pos;
<<< " ok " >>>;
while(true) {
0.5::second => now;
}
On 26 Jan 2008, at 17:00, chuck-users-request at lists.cs.princeton.edu
wrote:
>
> fre 2008-01-25 klockan 16:15 +0000 skrev Ollie Glass:
>> Hello ChucKers,
>>
>> I'm using SndBuf to loop samples. I read a sample and call .loop(1)
>> to do this, but if I call .freq(x) nothing plays, where 0.25 < x < 4.
>>
>> Is this an issue with SndBuf or am I missing something?
>>
>> Thanks,
>>
>> Ollie
>
> Could you please send the chuck-file (or if it's really big or so,
> send
> a shorter demo of what's happening). Relevant output would also be
> nice.
> And which version you are using.
>
> But the chuck-file is most important.
>
> Gasten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20080204/412054d3/attachment.htm
More information about the chuck-users
mailing list