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

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



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
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

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