4

Is there a way in a Supercollider source code file to include another source code file from disk, like the "include"-statement does in C++?

I assume there must be a way to do it, but I haven't managed to find any example by googling.

  • Welcome to our site Elias. I'm not sure this is on topic here. While we do allow music software questions it typically isn't this low level. – Dom Jan 17 '17 at 1:05
4

Supercollider appears to be able to execute code from external files, though whether this is an include-into-the-current-namespace or something-run-in-a-new-environment I don't know:

http://doc.sccode.org/Classes/String.html#-load

A recursive grep for "loadPath" should turn up examples:

http://supercolliderbook.net/code/code.zip

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.