[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Global Variables and Ppar
Am 23.12.2016 um 16:52 schrieb "Kuivila, Ronald" <rkuivila@xxxxxxxxxxxx>:
> Hmm, it "should" work.
>
> But ~mel is shorthand for currentEnvironment[\mel].
> So perhaps something in your code is changing currentEnvironment
Right, e.g. ProxySpace.push could be a cause for this.
> As a simple work around, try
>
> Ppar([topEnvironment[\bd], topEnvironment[\mel] ]).play
>
> (Look in the Environment help page for more details.)
>
If ProxySpace.push has been evaluated,
the workaround assumes that the assignments
~bd =
~mel =
have been done before that.
Following from Ron's explanation, it is also important to be aware that
environmental variables are *non-globals*, but relative to the Environment.
However environmental variables in topEnvironment act like globals,
as the can be referenced by topEnvironment[...] from anywhere.
Greetings
Daniel
-----------------------------
www.daniel-mayer.at
-----------------------------
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/