[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] trying to understand multichannel expansion
I think the ugen dump implies otherwise?
...
[ 147_*, audio, [ 146_tanh, 0.05 ] ]
[ 148_SinOsc, audio, [ 489.29419875145, 0 ] ]
[ 149_*, audio, [ 148_SinOsc, 83_MulAdd ] ]
[ 150_tanh, audio, [ 149_* ] ]
[ 151_*, audio, [ 150_tanh, 0.05 ] ]
[ 152_SinOsc, audio, [ 421.76702737808, 0 ] ]
[ 153_*, audio, [ 152_SinOsc, 83_MulAdd ] ]
[ 154_tanh, audio, [ 153_* ] ]
[ 155_*, audio, [ 154_tanh, 0.05 ] ]
[ 156_SinOsc, audio, [ 275.60228347778, 0 ] ]
[ 157_*, audio, [ 156_SinOsc, 83_MulAdd ] ]
[ 158_tanh, audio, [ 157_* ] ]
[ 159_*, audio, [ 158_tanh, 0.05 ] ]
[ 160_SinOsc, audio, [ 75.957810878754, 0 ] ]
[ 161_*, audio, [ 160_SinOsc, 83_MulAdd ] ]
[ 162_tanh, audio, [ 161_* ] ]
[ 163_*, audio, [ 162_tanh, 0.05 ] ]
For each oscillator there's one "*" ugen... Also the MulAdd ugen is the
result of LFNoise1.ar(0.1,20,21), so it's a separate ugen and not an
input to the lfnoise1 ugen.
Hjalte Møller wrote:
I'm not entirely sure, but I think it's because op the optimized
muladd arguments.
As I remember
SinOsc.ar(440,0,0.1) is the same as writing
SinOsc.ar(440) * 0.1
The multiplier is put inside the mul argument because it is cheaper.
Best, Hjalte
2009/12/25, Jonatan Liljedahl <lijon@xxxxxxxxxxxx>:
First, it seems that an array inside a toplevel array does not expand
but is mixed instead, but I can't find any note about this in the docs
about multichannel expansion. example:
{SinOsc.ar([[100,120],[105,125]],0,0.2)}.play
The left channel is the sum of two sines with 100 and 120 hz, the right
105 and 125...
But, I have a question regarding this:
f={({SinOsc.ar({rrand(30.0,800)}!20,0,LFNoise1.ar(0.1,20,21)).tanh}!2)*0.05}
SynthDef(\test,f).dumpUGens
why is the *0.05 duplicated for each of the 40 oscillators? I was
expecting one for each of the two output channels.
/Jonatan
_______________________________________________
sc-users mailing list
info (subscription, etc.):
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
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.beast.bham.ac.uk/research/sc_mailing_lists.shtml
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.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/