Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    /* Date.test UnitTest.gui */ TestDate : UnitTest { test_creation { var d = Date.new; var e = Date.localtime; this.assertFloatEquals(d.rawSeconds, e.rawSeconds, "new with no args == localtime", 0.5); e = Date(rawSeconds: d.rawSeconds); // cr ...

  2. extFile-tgzSC Quark

    ... e { *tgzSC { // make tgz archive of currently running version of sc, with build date for backup var cwd, date; this.deprecated( thisMethod ); cwd = File.getcwd; date = File.getBuildDate; // only for wesleyan build date = date.replace(".", " ...

  3. DayTimer Quark

    ... l of daytime-bound tasks, this is simplest. // when one wants to turn groups of date/tasks on and off, // it is easiest to put them in separate named daytimers. DayTimer .top; // many class methods are redirected as instance methods to DayT ...

  4. DayTimer Quark

    DayTimer { classvar <all, <top; var <dates, <skip, <name; *new { |name, id, test, func| var res = this.at(name); if (id.notNil) { res.putDate(id, [test, func]) }; ^res; } *at { |name| ^all[name] ?? { ^super.new.init(name) }; } init { |innam ...

  5. DataCollector Quark

    ... stname) }; initialized = true; } *makeList { ^SortedList[].function_({ |a,b| a[\date] > b[\date] }); } *new { |name,collection| ^super.new.init(name,collection); } init{ |name,collection| if ( initialized.not ){ this.class.makeBackupFolder; ...

  6. __details_and_attribution Quark

    ... e: "A#001.aif" Url: http://freesound.iua.upf.edu/samplesViewSingle.php?id=23645 Date of upload: 2006-10-12 13:58:58 Designer / Creator / Uploader: Name: "loofa" Url: http://freesound.iua.upf.edu/usersViewSingle.php?id=149377 Description: Ta ...

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

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

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

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

1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow