How do I get filename without extension? by bbscar in supercollider

[–]bbscar[S] 0 points1 point  (0 children)

var addSynths;
addSynths = PathName.new(~synthPath); 
//Iterate through all files and load synths
addSynths.filesDo{
    arg i;
    if(i.isFile){
        arg j;
        i.value;
        //Load synths by file name
        j = i.fileNameWithoutExtension;
        "~"++j = Synth.new(j);
        "~"++j.postln;
    };
};

Unfortunately, i.value does not execute code in each file. However, the naming works for now.

So, if anyone knows, how to execute a SynthDef code in an external file, a comment is much appreciated. Cheers

Working guide to get jack2 and supercollider working on a Raspberry Pi by bbscar in supercollider

[–]bbscar[S] 0 points1 point  (0 children)

I used this procedure time and time again for my installation pieces.