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

Re: [sc-users] Maximum variables



There's always a hint in case of large amount of variables:

Use an array to collect the items you need. The index is the way you can access to each  item.

Best

-a-


On 3 Mar 2009, at 20:48, KHofstadter wrote:


Hello

I wonder whether someone could give me a tip:

I am having about 250 variables and about 2 dozen global variables (I know
it is too much).

My problem is whenever I want to add one more "var" the whole patch will not
be read in; it looks like this:

• ERROR: Variable 'window' not defined.
   in file 'selected text'
   line 5 char 75:
  var window = SCWindow.new("0610279_EEG16",Rect(165, 830, 1205,
830)).front;•

-----------------------------------
• ERROR: Variable 'timeSpec' not defined.
   in file 'selected text'
   line 93 char 36:
  timeSpec = [0.01, 5.0, \exp].asSpec;• //
  sustainSpecL1 = [0.1, 5.0, \lin].asSpec;

.... and so on...

Is there a maximum number of "var"s I can use in a patch?

Thank you 
Krisztian


-- 
Sent from the Supercollider - User mailing list archive at Nabble.com.


_______________________________________________
sc-users mailing list


--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--------------------------------------------------

"The objectives of SuperCollider have been taken a stage further with the development of SAOL, the fruits of a research project based at MIT, launched in 1998" 
(P. Manning, Electronic and Computer Music, revised and expanded edition, 2004)