[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Aw: Re: [sc-users] BufRd Looping?
> Gesendet: Mittwoch, 02. Januar 2019 um 15:21 Uhr
> Von: richard@xxxxxxxxxxxxxxxxx
> An: sc-users@xxxxxxxxxxxxxxxx
> Betreff: Re: [sc-users] BufRd Looping?
>
> Hello,
>
> looping is controlled by the fourth argument in BufRd.ar
>
> > BufRd.ar(1, b, LFSaw.ar(BufDur.ir(b).reciprocal, 1)
>
> which is set to 1 = true
>
> therefore looping is enabled
That's not the reason.
It's a common misunderstanding:
Looping is done by the phase argument,
the loop argument enables wrapping of buffer indices.
This is badly explained in the helpfile,
actually the argname is also misleading.
(
s = Server.local;
b = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav");
)
b.numFrames
-> 188893
// no wrapping, so pause with index values above numFrames, but still looping because of LFSaw
{ BufRd.ar(1, b, LFSaw.ar(BufDur.ir(b).reciprocal / 2, 1).range(0, BufFrames.ir(b) * 2).poll, 0) }.play;
// wrapping, so no pause with index values above numFrames, looping because of LFSaw
{ BufRd.ar(1, b, LFSaw.ar(BufDur.ir(b).reciprocal / 2, 1).range(0, BufFrames.ir(b) * 2).poll, 1) }.play;
Greetings
Daniel
-------------------------
http://daniel-mayer.at
-------------------------
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/