So I’m having multiple files with SynthDefs, now I want a script that loads those files and invokes writeDefFile on each SynthDef. I have something like this:
"./src/supercollider/synthdefs/FMRhodes1.scd".load;
"./src/supercollider/synthdefs/rissetBell.scd".load;
"./src/supercollider/synthdefs/xylophone.scd".load;
// ( this doesn't work ):
SynthDef(\FMRhodes1).writeDefFile(".");
SynthDef(\rissetBell).writeDefFile(".");
SynthDef(\xylophone).writeDefFile(".");
0.exit;
Is there a way to achieve this? The below approach works ofcourse but I don’t like doing it this way since it doesn’t allow me to separate build script from synth definition:
SynthDef(\FMRhodes1, { ... }).writeDefFile(".");