another newbie Q. 
how from within sclang can I get it to interpret an sc script file?
(or even the equivalent of an āincludeā file statement would do)
the best Ive come up with so far is:
(
g = File("~/Documents/SuperCollider/test.sc".standardizePath,"r");
g.readAllString.interpret;
g.close;
)
but Id prefer to interpret the stream, so as not to load the entire file into memory (as it could be large)
other things Ive tried:
treat as a stream
(
g = File("~/Documents/SuperCollider/test.sc".standardizePath,"r");
g.do(
{
arg v;
v.asString.interpret;
}
);
g.close;
)
It does not like this, as interpret is actually needing a full SC command⦠rather than just adding to a buffer till its ācompleteā⦠so this indicates to me, any kind of parsing into interpret will fail, since things like brackets and scoping come into playā¦
thoughts?
background:
ok, so what Im trying to do , is make it so the user only has to provide one file⦠and it to be run.
to do this, I have another file āmother.scdā which sets up various system things, boots the server, and then I want to do something like
s.waitForBoot { (
s.initTree;
include("main.scd");
)};
where main.scd is the users āpatchā file.
now i dont want to put everything in startup.scd, for a couple of (perhaps dubious) reasons
most importantly, I want the āmother.scdā file to be overridable, to allow different behaviour , and startup.scd is āglobalā afaik
I guess the main issue Iām facing is⦠that I dont want users to have put the waitForBoot in their script, as this is pretty ugly.
I suppose one other option, is for me to start scsynth directly, and then wait a second or two, before starting sclang, but that seems a bit hacky.
p.s.though Im an experience C++ programmer, Iām trying to keep it simple at the moment, as Im not that experience with SC⦠(so avoiding SC classes) and dont want to get side-tracked too much, as Id like to deliver at least the skeleton quickly⦠then I can improve it with custom class/ugens later 
Bonus Question:
anyone know of a (lightweight, think rPI!) ) web based editor for SC? (linux)
If not Iām thinking of a simple ACE based editor running on cherrypi, but this will only provide basic functionality, and I dont want to reinvent the wheel 