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

[sc-users] NamedControl



hi,

i am trying out NamedControl the first time instead of ControlName. i think the return values are highly obscure:

(
a = {
	var x, y;
	x = NamedControl.kr(\freq, 440 );
	y = NamedControl.kr(\freq, 440, 1);
	x.postln;
	y.postln;
	SinOsc.ar([x, y] * [2, 1.2]) * 0.1
}.play;
)

in both cases you get an array even though the arguments are not arrays. this is counter-intuitive regarding usual multichannel expansion. accordingly, i get really strange results when putting this into GVerb.ar.

in the second case, it's even more strange as the result is a nested array.

i will do .asArray.flatten.at( 0 ) for the moment, but i guess this is not as it was meant to be ?


ciao, -sciss-

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