[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Maximum variables
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-users] Maximum variables
- From: Luke Selden <lselden@xxxxxxxxx>
- Date: Tue, 3 Mar 2009 14:02:19 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=9l0i0SltX6u5Hu4zS5xonGd9zpKOr2OXM+QdEAIcMGE=; b=xSrVH7IN2cSSOeZm4MyrkaJTdoil6m2uAGcYu7zblnScrFU1h3+ET2M7dPXVukGnvQ KmG/VeFgrNPynJcJB3OWaiCVjDELRMfdqSEgskUlImqyN5m0R8kmem0V62sJac9TBW7I 63w2tfH2+YBYawW/mkBj3PV5e8QyxgwUXLVEc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=oA4hGj64iMKbK9GZxwiyOgRQhqSuWZ3TH+q/tXIWY6v9kOiRfDg3wAhUyfj5Vg1Bng 9Sqzxf7vX4Hc3fBs5wQpVLbBX9UkZsyNK3B/uFkY4iJ2O9IFfMLSbEFnczLKtCa2XV+C BOwuBluiA/wsT1aONwui1j6yhgM1GhRoLv704=
- In-reply-to: <22316401.post@xxxxxxxxxxxxxxx>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- References: <22316401.post@xxxxxxxxxxxxxxx>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
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/