I’ve typically been using explicitly defined SynthDefs in my code, but recently I’m more and more inclined to build SynthDefs on the fly from ugen graph “blocks” (functions). This has led me to sometimes use the Function.play
“shortcut” method as opposed to writing a full SynthDef
and then a Synth
, mostly because I don’t want to deal with specifying synthdef names. However, I’ve found myself needing to look up Synth argument names and it turns out that with “vanilla” SC (*) that’s not possible for “temp” synths created by {}.play
. For regular SynthDef
s I can look into SynthDescLib
.
- What do you think about changing
{}.play
so that it adds the temp synthdef toSynthDescLib
? - Is using
{}.play
in production code a bad idea?
Thanks for any input you might have on this!
Marcin
EDIT:
(*) The autogui
quark provides a solution to this, but it overwrites the SynthDef
-build
method and I don’t feel I’d like to depend on such implementation.