[SCCode] CallingFile.sc

Revision for “[SCCode] CallingFile.sc” created on February 19, 2014 @ 15:43:55

Title
[SCCode] CallingFile.sc
Content
This is a Supercollider Class file that can call a .scd file from the same directory as the current file. I call several files at the beginning and everytime I need to write the same code, so that I wrote a little class file to make it easier. Here is the code: <pre>CallingFile : Process { *new{ arg name=""; var file=""; if (file=="", {file=thisProcess.nowExecutingPath.dirname},{}); ^(file ++ "/" ++ name).loadPaths; } } //example : //CallingFile("fileName.scd");</pre> Save the code as "CallingFile.sc" and put it into the extensions folder.
Excerpt


OldNewDate CreatedAuthorActions
February 19, 2014 @ 15:43:55 JyKang
February 19, 2014 @ 15:41:01 JyKang
February 19, 2014 @ 15:39:30 [Autosave] JyKang
February 19, 2014 @ 14:11:47 JyKang