Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (266) Code (16) Doc (79) Quark (171) SCDoc ↗ Forum ↗ Google ↗
  1. SuperCollider sending data to Processing by luigi-tamagnini (Luigi Tamagnini) Code

    ... a is then polled back to de client and dispatched to Processing via NetAddr and OSCFunc classes in Processing i receive the incoming messages and simple trig a draw function with the callback oscEvent (use oscP5 and netP5 libs // Tracking ...

  2. Algorithmic melancholy by ttsesmetzis (ttsesmetzis) Code

    ... s.index; freq = Bus.control( s, n ); freqIndex = freq.index; responder = OSCFunc({ | id | freq.setAt( id[2] , scale.choose * 1.rrand( 3 ) ); },'/tr', s.addr); CmdPeriod.doOnce { [ bus, freq, responder ].free; }; n.do {|i| ...

  3. pitch tracker utility by 0-4w (defaultxr) Code

    ... chTrackSynth = nil; "Pitch tracker stopped.".postln; }); }; ~pitchTrackOSCFunc = { OSCFunc({ | msg | ("Pitch:"+msg[3].round.asString.padLeft(5)+msg[4].round.asString.padLeft(3)).postln; }, '/pitchTrackUtil'); }; ~pitc ...

  4. loopr by lfsaw (LFSaw) Code

    ... order, [\inBus, Ndef(\sound).bus.index, \recBuf, q.recBuf], 0, \addToTail); OSCFunc({ arg msg, time; q.recLength = msg[3]; q.recLengthSamples = (q.recLength * s.sampleRate).trunc; q.playbackBuf[q.recTo] = Buffer.alloc(s, q.recL ...

  5. Scanned Synthesis Visualisation by matthew-kane (Matthew Kane) Code

    ... pdateSelector.free}); if ( ~updateSprings != nil, {~updateSprings.free}); o = OSCFunc({|msg, time, addr, recvPort| ~sel = msg[3..]; }, '/sel'); n = OSCFunc({|msg, time, addr, recvPort| // ~springs = msg[3..]; msg[3..].do { |item, ...

  6. Visual gain reduction meter by jpdrecourt (jpdrecourt) Code

    ... layout; window.onClose_({oscFn.free;}); // Level indicator update oscFn = OSCFunc({arg msg; { indicator.value = (1-msg[3]).ampdb.linlin(maxReduc, 0, 0, 1); }.defer; }, '/level', s.addr); }.fork(AppClock); ) // Try ...

  7. f0 sound detector by redfrik (redFrik) Code

    ... {Buffer.alloc(s, s.sampleRate*l)}.dup(z); //mono buffer s.sync; responder= OSCFunc({|m| var index= m[3].asInteger; if(x.not, { //if not muted if(index>=1, { ("recording"+index).postln; recorderSynths[index-1].s ...

  8. spinning doughnut by fredrik-olofsson (Fredrik Olofsson) Code

    ... , amp, sin(t/9)*sin(t/86)) ]; }); //--sound input s.waitForBoot{ OSCFunc({|m| amp= m[3].explin(0.01, 1, 0.667, 1)}, \tr, s.addr); {SendTrig.kr(Impulse.kr(60), 0, Amplitude.kr(SoundIn.ar, 0.1, 0.4)); DC.ar(0)}.play; }; ...

  9. Radial loudness meter by snappizz (snappizz) Code

    ... wedge.(0.6, long[i], long[(i+1)%longSize], Color.red); }; }; }; recv = OSCFunc({ arg msg; if (msg[1] == synth.nodeID) { if (msg[2] == 0) { short = msg[3].clip(0, 1); { canv.refresh }.defer; }; if (msg[2] == 1) { ...

  10. Squiggle squiggle by 56228375 (56228375) Code

    ... o update the display Out.ar(out, (0.3*sig)!2); }).add; s.sync; o=OSCFunc({|msg| ~allPoints[0] = (Point(msg[3] /* x */,msg[4] /* y */)); ~allPoints = ~allPoints.shift(1, Point(0,0)); }, '/viz'); w = Window(bounds: ...

1 2 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow