[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] Re: [sc-users] Binary Release [test] of ScGraph
Hey,
sorry, should've pointed you there the day before yesterday…
Short answer: No.
Long answer:
No, there is the variable Server:isLocal, but it is set automatically.
Perhaps it would be a nice addon to just add another flag to the
(G)Server which means something like
thisServerIsAbsolutlyInTheHandOfTheUser-HeIsInControlOfRebootingETC
:-)
To be Sirius:
In order to do this, we have to separate
boot { arg startAliveThread=true;
var resp;
if (serverRunning, { "server already running".inform; ^this });
if (serverBooting, { "server already booting".inform; ^this });
serverBooting = true;
if(startAliveThread, { this.startAliveThread });
this.newAllocators;
bootNotifyFirst = true;
this.doWhenBooted({
if(notified, {
this.notify;
"notification is on".inform;
}, {
"notification is off".inform;
});
serverBooting = false;
this.initTree;
(volume.volume != 0.0).if({
volume.play;
});
});
///////////////////////////////////
// from this:
///////////////////////////////////
if (isLocal.not, {
"You will have to manually boot remote server.".inform;
},{
this.bootServerApp;
});
}
((( btw. shouldn't it be
"You will have to manually boot the remote server.".inform;
? )))
Perhaps by splitting it up into two methods, where the first part of
the now-actual boot method can be evaluated separatly…
Or, we may simply change isLocal to have a setter method.
2c
Till
On 12.12.2008, at 16:36, Florian Schmidt wrote:
BTW: Is there a way to tell OS X SuperCollider to _assume_ that the
server is remote (i.e. the user needs to boot it manually)? I found
that with the above command SC on OS X still tries to boot the
server. If you use your public IP address or hostname instead of
"localhost" it assumes it's remote as desired..
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/