Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (266) Code (16) Doc (79) Quark (171) SCDoc ↗ Forum ↗ Google ↗
  1. osc_set Quark

    ... e part of the Unit lib default UMapDefs set */ ValueUMapDef( \osc_set, { |unit, oscfunc| var message, spec; oscfunc.free; spec = unit.getSpec( \value ); message = unit.get( \message ); if( message.size == 0 ) { message = unit.unitArgName; u ...

  2. osc_set Quark

    ... e part of the Unit lib default UMapDefs set */ ValueUMapDef( \osc_set, { |unit, oscfunc| var message, spec; oscfunc.free; spec = unit.getSpec( \value ); message = unit.get( \message ); if( message.size == 0 ) { message = unit.unitArgName; u ...

  3. CytonWifi Quark

    ... Addr("OpenBCI_WifiShieldOSC.local", 13999)}; CmdPeriod.add(this); responders= [ OSCFunc({|msg, time, addr, port| "% shield ready (%)".format(this.class.name, addr.ip).postln; initAction.value(this, addr); accel= #[0.0, 0.0, 0.0]; }, \ready, ...

  4. NMLAuthenticate Quark

    ... cator { classvar <>timeOut = 5; var challenge, oscPath, challInds, challResponseOSCFunc; *new {|challenge, oscPath = '/challengeAuth'| ^super.newCopyArgs(challenge, oscPath).init; } init { // OSC sends Strings as Symbols, which is a minor p ...

  5. PushPullOSC Quark

    ... l; "newMax(%) = %".format(i, val).inform; }; }; } pr_makeResponders { capResp = OSCFunc( {|msg| var arr = msg[1].collect(_.asAscii).join; try({ capRawVals = arr.split($ ).asInteger; trace[\cap].if{ "caps:\t%".format(capRawVals).inform; }; c ...

  6. log-osc Quark

    /* out of order, needs fixing */ ( thisProcess.removeOSCRecvFunc(~oscFunc); ~oscFile !? { ~oscFile.close }; ~oscFile = File("~/osc-log.txt".standardizePath, "w"); ~oscFunc = { |x, time| if(x[0] == '/play2') { ~oscFile <<<* ([time] ++ x[1..] ...

  7. SyncCenter Quark

    ... erCounts, <master; classvar <>recSynths; classvar <>masterCountTime; classvar <>oscFunc; classvar <>global; classvar <>ready; classvar <>inBus = 0, <>outBus = 14; classvar <>latency = 0.2; classvar <>current; classvar <>checkForServerQuit = ...

  8. MantaOSC Quark

    ... ing) // Pad this.padMappingTable_(mappingTable ?? {(0..47)}); padVelResponder = OSCFunc({|msg, time| var idx = msg[1]; var val = msg[2]; padVelAction.value(padMappingTable[idx], val, time, this); }, "/manta/velocity/pad", srcID: mantaAddr). ...

  9. NetworkDescriptionAdditions Quark

    ... Node { setSink { |key, o| ^o.collect{ |v| this.setIO(key,v) }.reactimate } } + OSCFunc { *asENInput { |path, srcID, recvPort, argTemplate, dispatcher| var es = EventSource(); var addHandler = IO{ var f = { |msg| es.fire(msg) }; var osc = O ...

  10. extBuffer-uSendCollection Quark

    ... nnels); var pos, collstream, collsize, bundsize; if( UEvent.nrtMode != true ) { OSCFunc({ |msg, time, addr| { buffer.sendCollection( collection, 0, wait, action ); }.fork; }, '/done', server.addr, argTemplate: [ '/b_alloc', buffer.bufnum ]) ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow