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

Re: [sc-users] Maximum variables



you may also want to consider Environments to keep track of your variables:
e = Environment.new;
e.use {
~window = SCWindow.new.front;
~timeSpec = [0.01, 5.0, \exp].asSpec;
~sustainSpecL1 = [0.1, 5.0, \lin].asSpec;
}

e[\timeSpec].postln

That may help you break your code into more manageable chunks.

~luke

On Tue, Mar 3, 2009 at 11:48 AM, KHofstadter <tedor2@xxxxxxxxxxxxxx> 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
>
>
> --
> View this message in context: http://www.nabble.com/Maximum-variables-tp22316401p22316401.html
> Sent from the Supercollider - User mailing list archive at Nabble.com.
>
>
> _______________________________________________
> 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/
>

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