Ndef - gui2

I am running into a minor issue with “ignoreParams” for gui2. In the example code below, “freq” is still included in the gui. Am I missing something really obvious?

(
Ndef(\a, {SinOsc.ar(\freq.kr(440, spec:[20,10000]), 0.0, \amp.kr(0.1))})
)


~gui = Ndef(\a).gui2
~gui.ignoreParams = ["freq"];

hey, in NodeProxyGui2 you have the option to use “vary” or “randomize” from the dropdown menu for either randomizing your param values or adding a gaussian distribution to them.
Using .ingnoreParams will ignore these params from beeing varied or randomized, which for example makes sense for something like “amp”.

So what you want to do, if you dont want that specific params end up in the gui, is to use .excludeParams instead:

(
Ndef(\a, {
	var sig = SinOsc.ar(\freq.kr(440, spec: ControlSpec(20, 10000)));
	sig * \amp.kr(-15, spec: ControlSpec(-5, -3)).dbamp;
});
)

(
NodeProxyGui2(Ndef(\a))
.excludeParams_([\freq])
.ignoreParams_([\amp]);
)
1 Like

Even more obvious than I thought! That’s the solution. Thank you!