[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Index.ar vs BufRd.ar



Yes, I think BufRd offers interpolation, looping, and multichannel output.

They should be the same under the correct settings.

S.

> On 22 Dec 2017, at 17:29, <spluta@xxxxxxxxx> <spluta@xxxxxxxxx> wrote:
> 
> Hey PA,
> 
> It seems to me that Index just doesn’t have some features that BufRd has. It does not interpolate between values (which is maybe why you were getting different results) and it doesn’t loop the buffer. It is designed for just reading values out of a buffer, but not “playing” the buffer as audio. BufRd, on the other hand, seems to be designed for audio, with interpolation and looping.
> 
> Sam
> 
> (
> {
>    SinOsc.ar(
>            Index.kr(
>                LocalBuf.newFrom([ 200, 300, 400, 500, 600, 800 ]),
> 			                MouseX.kr(0,6)
>            ),
>            0,
>            0.5
>        )
> }.play;
> )
> 
> (
> {
>    SinOsc.ar(
>            BufRd.kr(1,
>                LocalBuf.newFrom([ 200, 300, 400, 500, 600, 800 ]),
> 			MouseX.kr(0, 6), 1, 1
>            ).poll,
>            0,
>            0.5
>        )
> }.play;
> )
> 
> 
>> On Dec 22, 2017, at 9:55 AM, tremblap@xxxxxxxxx wrote:
>> 
>> Dear all
>> 
>> A dumb question I’m certain, but I cannot find anywhere in the doc any difference between why I should get something different between:
>> 
>> Index.ar(buf1,reading_index,0.1)
>> 
>> and
>> 
>> BufRd.ar(1,buf1,reading_index,0,1) * 0.1]
>> 
>> I will read the source, but I’m curious why both exist and both yield radically different values.
>> 
>> Any pointers in the doc welcome.
>> 
>> pa
>> _______________________________________________
>> 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/
> 
> 
> _______________________________________________
> 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/


_______________________________________________
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/