-
... = this.getDataForRelToNow(1); // decimal daytime of the current day var phase = Date.gmtime.rawSeconds % 86400 / 86400; // interpolate between the two closest data points ^(prev + ((next-prev)* phase)); } getDataForRelToNow { |days = 0| var ...
-
... LeapYear } *daysInYear {|year| ^(this.isLeapYear(year)).if(366, 365) } *toJulianDate {|year = 2022, month =1, day = 1| var b; // [year, month, day].postln; if (month <= 2, { year = year - 1; month = month + 12; } ); b = 2 - trunc(year/100) ...
-
... ere the desired spatdif meta info var fileName; var extensions; var author,host,date,session,location,annotation; fileName = "TimeFileLog" ++ "_" ++ Date.localtime.stamp ++ ".txt"; extensions = ["jack","distance-cues"]; // author = host = " ...
-
Date an object describing a point in time Class Methods *new(year, month, day, hour, minute, second, dayOfWeek, rawSeconds, bootSeconds) Create a new date with the given properties (all numerical values). These arguments are also the names ...
-
... folder which will be used for backups. *makeList create a SortedList sorted by date Accessing Instance and Class Variables addData(data,date,overwrite) Add data to the collection data The data to be added. date The time stamp of the data. ...
-
... lay ) OSCdef(\captureIP) // example usage: // on machine running the server u = Date.seed; r = ("server_" ++ Date.seed.asString).asSymbol a = Server(r, NetAddr("127.0.0.1", port: 57166)) a.options.bindAddress = "0.0.0.0"; // allow connectio ...
-
... data[1..].collect{|row| [ row[0].asFloat, // ordinate row[1].asFloat,// Julian date row[2].asFloat, // distance (row[3].asFloat / 360) * 2pi, // alt (row[4].asFloat / 360) * 2pi, // az // sin((row[3].asFloat / 360) * 2pi), // sin(az) // si ...
-
simple function throttling ( time gate, time limiter, whatever you want to call it ) by hems (hems) Code
... create it with 1000 seconds ago time if( ~last_time.isNil ) { ~last_time = Date.getDate.bootSeconds; ~last_time = ~last_time - 1000; }; // if needed interval has passed, execute the funkie if( ( Date.getDate.bootSeconds - ~l ...
-
... function execution, often more). ( var deb = MSCDebouncer(0.5); var last_loop = Date.getDate.rawSeconds; var last_debounce = Date.getDate.rawSeconds; x = fork { loop { var now, elapsed; 1.0.rand.wait; now = Date.getDate.rawSeconds; elapsed ...
-
... eturns: a String . makeList Convenience method to create a SortedList sorted by date Returns: a SortedList Inherited class methods Instance Methods . addData Add data to the collection. Arguments: data The data to be added. date The time st ...