Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (241) Code (12) Doc (41) Help (13) Quark (173) Plugin (2) SCDoc ↗ Forum ↗ Google ↗
  1. Moon Quark

    ... = 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 ...

  2. TimeUtils Quark

    ... 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) ...

  3. SpatialRender_initSpatDifLogger Quark

    ... 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 = " ...

  4. Date Help

    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 ...

  5. DataCollector Quark

    ... 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. ...

  6. servers Quark

    ... 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 ...

  7. Sun Quark

    ... 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 ...

  8. 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 ...

  9. MSCDebouncer Doc

    ... 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 ...

  10. DataCollector Doc

    ... 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 ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow