Discussion:
preventing looping with BufRd (OSX 10.8.4 with SC 3.6.5)
lea nicholson
2014-10-10 17:16:18 UTC
Permalink
Am I doing something really stupid here?

taken directly from the help file, I load a buffer
(
// read a whole sound into memory
s = Server.local;
// note: not *that* columbia, the first one
b = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav");
)

Now using a phasor index into the buffer it loops as I would expect

{BufRd.ar(1, b, Phasor.ar(0, BufRateScale.kr(b), BufFrames.kr(b))) }.play;

However, I would expect the following to play the file just once, but it
continues to loop? How do I get it to play without looping?

{BufRd.ar(
1,
b,
Phasor.ar(0, BufRateScale.kr(b), BufFrames.kr(b)),
loop: 0
) }.play


Thanks
Dan Zink
2014-10-10 17:26:20 UTC
Permalink
Hi Lea

The BufRd does not loop, but the Phasor does. Consider using something like
Line.ar instead.
Post by lea nicholson
Am I doing something really stupid here?
taken directly from the help file, I load a buffer
(
// read a whole sound into memory
s = Server.local;
// note: not *that* columbia, the first one
b = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav");
)
Now using a phasor index into the buffer it loops as I would expect
{BufRd.ar(1, b, Phasor.ar(0, BufRateScale.kr(b), BufFrames.kr(b))) }.play;
However, I would expect the following to play the file just once, but it
continues to loop? How do I get it to play without looping?
{BufRd.ar(
1,
b,
Phasor.ar(0, BufRateScale.kr(b), BufFrames.kr(b)),
loop: 0
) }.play
Thanks
Loading...