home/ atoms/ jitlib-proxyspace

ProxySpace turns the SuperCollider environment into a namespace of live-redefinable audio proxies

ProxySpace is an environment that returns a NodeProxy for every unknown variable access instead of raising an error. After pushing a ProxySpace, writing ~bass = { SinOsc.ar(60) } creates and starts a NodeProxy named \bass without needing to write Ndef explicitly. This makes the session feel more like patching a modular system. ProxySpace can be combined with other environments (see jitlib_basic_concepts_02). It is the access scheme many beginners encounter first, while Ndef is preferred in portable scripts because it is explicit.

Examples

p = ProxySpace.push(s) ~kick = { Impulse.ar(2) } ~kick.play ~kick = { LFPulse.ar(4) } // redefine live

Assessment

Push a ProxySpace and define two proxies. Feed one as the frequency input to the other. Then redefine the modulator and describe the result.

“Another way, for server side NodeProxies, is an environment that returns placeholders on demand”
corpus · supercollider-jitlib-overview-live-coding-with-nodeproxy-nde · chunk 2