[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sc-devel] SynthDesc.read doesn't protect

there's a protect around this:

*read { arg path, keepDefs=false, dict;

dict = dict ?? { IdentityDictionary.new };

path.pathMatch.do { |filename|

var file, result;

file = File(filename, "r");

protect {

dict = this.readFile(file, keepDefs, dict);







but it didn't work.  I had redXMplayer.synthdef in my synthdefs folder, but the UGen and file are missing right now.

I fixed SynthDesc so that it throws an error

ERROR: No UGen class found for  RedPhasor  which was specified in synth def:  redXMplayer

but I don't get why the protect didn't work.