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

Re: [sc-users] weird... NamedControl bug?




Wiadomość napisana w dniu 2009-05-03, o godz. 02:36, przez nescivi:

Hiho,

I just came across this:

~input2 = { Pan2.ar( SoundIn.ar(0), \pos.kr(0,0.5) ).postln;};
vs.
~input2 = { Pan2.ar( SoundIn.ar(0), 0 ).postln;};

Where does the twice encapsulated in an Array come from?

I think it's form NamedControl definition (in GraphBuilder.sc), which always returns an array.
(in *new method:
	values = (values ? [0.0]).asArray;

and this is init method:
	control = control.asArray.reshapeLike(values);
)

BTW:
~input2 = { |pos| pos.postln };
// vs.
~input2 = { \pos.kr.postln };
// vs.
~input2 = { \pos.kr(0,0.2).postln }; //with lag

hmm?
ak
_______________________________________________
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/