lea nicholson
2014-10-10 17:16:18 UTC
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
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