timing
This commit is contained in:
parent
09f845431d
commit
c42fcc5bcd
1 changed files with 11 additions and 0 deletions
11
ephemera.sc
11
ephemera.sc
|
@ -19,6 +19,17 @@ s.boot;
|
|||
|
||||
"...".postln;
|
||||
|
||||
// time of day - see AppClock for scheduling
|
||||
|
||||
~now=Date.gmtime;
|
||||
// dont trust the clock if it's n 1970 (not ntp synced)
|
||||
if ( ~now.year == 1970,
|
||||
{"previously".postln;},
|
||||
{"post 1970".postln;}
|
||||
)
|
||||
~now.hour.postln;
|
||||
|
||||
|
||||
~prefix = Platform.userHomeDir ++ "/snd/";
|
||||
|
||||
~background = {
|
||||
|
|
Loading…
Reference in a new issue