[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] BufRd Looping?
> On 2 Jan 2019, at 23:50, sdiy-mz01@xxxxxxxxxxxxx wrote:
>
>
>> On 2 Jan 2019, at 18:23, daniel-mayer@xxxxxxxx wrote:
>>
>> // wrapping, so no pause with index values above numFrames, looping because of LFSaw
>
> Hi Daniel, thanks, this makes it clear now!
> So a proper approach to a single shot behaviour would be something like
>
> { p = Line.ar(0, BufFrames.kr(b.bufnum), BufDur.ir(b)); FreeSelfWhenDone.kr(p); BufRd.ar(1, b.bufnum, p) }.play;
just found Done.freeSelf :
{ BufRd.ar(1, b.bufnum, Line.ar(0, BufFrames.kr(b.bufnum), BufDur.ir(b), doneAction:Done.freeSelf)) }.play;
it’s shorter ;)
_______________________________________________
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/