SinOsc.ar * 1 is audio rate, SinOsc.ar * 0 is scalar rate?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SinOsc.ar * 1 is audio rate, SinOsc.ar * 0 is scalar rate?

Nathan Ho
a small inconsistency i found -- when multiplying a ugen by a scalar, the
rate is different when you multiply by 0. example of a side effect:

// ok
SynthDef(\, { Out.ar(1, LPF.ar(SinOsc.ar * 1, 8000)) }).add

// ERROR: LPF first input is not audio rate:  0 scalar
SynthDef(\, { Out.ar(0, LPF.ar(SinOsc.ar * 0, 8000)) }).add

not a serious problem at all, but i'm curious if this was intended.


nathan



--
Sent from: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/SuperCollider-Developers-New-Use-this-f2681767.html

_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/