I was wondering if there is an possibility to include a directory with all my UDOs as single files to my csound-instrument.
Till now i use a big file which contains all my UDOs and do the ‚#include „/my/file.txt“' method. But i don't like it, because i find it uncomfortable to look up my UDOs in this file.
Is there a other approach to do this?
You just need to set the directory for ex. “/Music/Csound/Udos” & perhaps something like “.udo” instead of ".txt depending on what extension you use for the udos.
Thanks, Joachim! This is a great idea which i will try out.
Scott, to be able to use my UDOs i have to load a file which contains all my UDOs. This has nothing to do with printing the file names or something like this. The #include statement works in the background just to be able to work with the UDOs like with normal opcodes.
Sorry, as you had written “because i find it uncomfortable to look up my UDOs in this file” I thought perhaps you wanted a simpler way to look up which udos were in a directory.
As joachim wrote, something like#include “udos.txt” works fine, but from my experience the #include statements inside that file must be seperated by a blank line of text, for ex: #include “reverb.udo”
#include “shimmerverb.udo”
For me it will not work if there isn’t a blank line between them, an error is reported:
error: syntax error, unexpected ‘#’, expecting NEWLINE etc…
Perhaps that’s just the particular version of Csound I’m using.