Get list of all synthdef [RESOLVED]

I dont know why, but

SynthDescLib.global.browse

does not give the synthdefs that I have compiled

You have to explicitly call SynthDescLib:read to read the SynthDesc information from disk. If you do SynthDescLib.global.read and then browse, you’ll see your SynthDefs.
This feels somewhat wrong? I would expect it would read automatically on startup.

Apparently
SynthDescLib.global.read(SynthDef.synthDefDir).browse
does not work for me ? (paths are correct)

SynthDescLib:read is not documented, but looking at the source shows that the “path” argument specifies synthdef file name (or names using wildcards), not a directory. But the default is to read all synthdefs in synthdefDir, so either of the following works:

SynthDescLib.global.read().browse;
SynthDescLib.global.read(SynthDef.synthDefDir ++ "*.scsyndef").browse;
1 Like

oh great !
To close definitly the post,

I just came out with
PathName(SynthDef.synthDefDir).files.collect( _.fileNameWithoutExtension)
too.
Except for the SynthDescLib is there other solutions to my problem ?