GameOfLife / Unit-Lib

The Unit Library is a system that provides high level abstractions on top of the SuperCollider language.
25 stars 6 forks source link

Unit load SynthDef on prepare #1

Closed miguel-negrao closed 12 years ago

miguel-negrao commented 12 years ago

Not working:

x = Udef(\aNiceUdef, { UOut.ar(0, SinOsc.ar(\freq.kr(400) ) ) }) ; y = U(x, [\freq,400]); y.loadDef = true; y.prepareAndStart(s)

*\ ERROR: SynthDef u_aNiceUdef not found FAILURE IN SERVER /s_new SynthDef not found

woutersnoei commented 12 years ago

loadDef is a classvar. Not settable per U:

x = Udef(\aNiceUdef2, { UOut.ar(0, SinOsc.ar(\freq.kr(400) ) ) }) ; y = U(x, [\freq,400]); U.loadDef = true; y.prepareAndStart(s)

works