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

Re: [sc-users] instance vars as array ?



Incredible, there's always a way to do anything in supercollider !

thanks
Miguel

Josh Parmenter escreveu:
Or both?

a = Score.new;


a.getSlots

Josh

On Mar 7, 2009, at 3:19 PM, James Harkins wrote:

I think Miguel wants the variable values, not names.

b = a.instVarSize.collect({arg i; a.instVarAt(i)})

hjh


On Mar 7, 2009, at 6:09 PM, Josh Parmenter wrote:

Here is one way to do it (using Score as an example):

a = Score.new;

b = a.slotSize.collect({arg i; a.slotKey(i)})

Hope that helps.

Josh


: H. James Harkins
: jamshark70@xxxxxxxxxxxxxxxxx
: http://www.dewdrop-world.net
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman


******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono
*/




--
Miguel Negrão // ZLB
http://www.friendlyvirus.org/artists/zlb/

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