NdefGui specs fix without fuss?

Hi there.

I’m baffled by the way NdefGui “guesses” and “changes” the parameter specs

(
Ndef(\test, { FreeVerb.ar(Dust.ar(10),
  \verbWet.ar(0.8, spec: ControlSpec(0.01, 1.0, \exp)), 0.9, 0.7) }).gui
)

This simply ignores the control spec. I’m reading NdefGui (EnvirGui) ignores local specs from NamedControls · Issue #5515 · supercollider/supercollider · GitHub and scratching my head.

Is there a way to make NdefGui respect the specs without resorting to installing extensions? I’m having a hard time already working with vanilla SC in class, I would very much appreciate a way to use NdefGui without installing quarks/git on students’ various computers. Thanks!

(Maybe there are some additional ways to register the spec; or I can add a local extension patch only)

Ok, I think it works with Spec.add when you make sure the Ndef had been forgotten:

(
Ndef(\test).clear;
Spec.add(\verbWet, ControlSpec(0.01, 1.0, \exp));
Ndef(\test, { FreeVerb.ar(Dust.ar(10),
   \verbWet.ar(0.8), 0.9, 0.7) }).gui
)
1 Like

slightly OT, once (if) we have AbstractObject in the common class library, we can make this work a little more easily (as it would work with JITLibExtensions).