SynthDefs must be loaded from one file
Opened this issue · 0 comments
woolgathering commented
Likely an SC bug: SynthDefs do not compile correctly when they are loaded via separate files.
This works:
File.include(parent.thisDir++"/sc/synths/synths.scd", parent);
when all SynthDefs are in synths.scd.
This does not work:
// load all the synthdefs in the /sc/synths/ directory
(parent.thisDir++"/sc/synths/*.scd").pathMatch.do{|path|
File.include(path, parent); // evaluate the file; no need for return
"Now loading %\n".postf(path.basename);
0.2.wait;
};
when the SynthDefs are dispersed throughout different files in synths/. Test further...