Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (154) Code (34) Doc (29) Help (5) Quark (86) SCDoc ↗ Forum ↗ Google ↗
  1. BasicMIDIControl Quark

    ... { init { destination = destination.asChannelIndex; } set { |val, divisor, num| MIDIIn.doControlAction(destination.port, destination.channel, num, val) } active { ^(destination.respondsTo(\port) and: { destination.respondsTo(\channel) }) } ...

  2. midi_cc Quark

    ... UMapDef( \midi_cc, { |unit, midifunc| var func; if(MIDIClient.initialized.not,{ MIDIIn.connectAll }); midifunc.free; func = { |value, fromRange| var toRange, curve; toRange = unit.mapGet( \toRange ); curve = unit.get( \curve ); if (abs(curv ...

  3. Vocal Clouds (work in progress) by emergent (emergent) Code

    ... tializing global variable for pitch bend wheel ~mod = 0; // global variable MIDIIn.connectAll; ~notes = Array.fill(128, {nil}); MIDIdef.noteOn(\on, { arg val, num, chan, src; ~notes[num] = Synth.new(\voxgrains, [ \baserate, ...

  4. 3_serversidemethods Quark

    ... mapping on the server: MKtl.find; k = MKtl( 'lpd80' ); k.gui; s.boot; k.reset; MIDIIn.noteOnZeroAsNoteOff_( false ); // we use Ndef in this example, to allow for a flexible redefining of the sound on the server Ndef( \testSynth, { arg freq ...

  5. 4_Buttons Quark

    ... state when they are pressed (on). k = MKtl( 'lpd80' ); k.gui; s.boot; k.reset; MIDIIn.noteOnZeroAsNoteOff_( false ); // ---------------- on - off -------------- // the simplest version is just on-off Ndef( \testSynth, { |on=0| SinOsc.ar( 4 ...

  6. CuePlayer Doc

    ... w; a.gui; // Connect all midi devices & set up a midi-trigger for the CuePlayer MIDIIn.connectAll; a.midiTriggerNoteOn(note: 60, channel: 15); // Ready to trigger cues from an external midi-device hooked up on channel 15 upon sending note 6 ...

  7. midi_note_gate Quark

    ... \midi_note_gate, { |unit, midifuncs| var func; if(MIDIClient.initialized.not,{ MIDIIn.connectAll }); midifuncs.do(_.free); func = { |value, fromRange| var toRange, curve; toRange = unit.mapGet( \toRange ); curve = unit.get( \curve ); if (a ...

  8. Verber by till-bovermann (LFSaw) Code

    ... 0.0), lowx(1.0), mdepth(5.0), mfreq(2.0), midx(1.0), size(1.0), t60(1.0) | MIDIIn.connectAll /* MIDIdef.cc(\test, {arg ... args; args.postln}); MIDIdef.cc(\test).free; */ ( MIDIdef.cc(\t60, {|val, num| Ndef(\reverb).set(\ ...

  9. SNanoKontrol Quark

    ... ble= false; } ); index= MIDIClient.sources.detectIndex{|x| x.uid==device.id}; //MIDIIn.disconnect(index, MIDIClient.sources[index]); //TODO disconnect needed? MIDIIn.connect(index, MIDIClient.sources[index]); ccResponders.do{|x| x.free}; se ...

  10. sync looper by ovo (ovo) Code

    ... asBoolean)}; // rand stop/play itens ~loop.bufs[0].plot ( MIDIClient.init; MIDIIn.connectAll; MIDIdef.program(\sstep, {|k,f,c| var x; // k.postln; x = case { k==5 }{ Fdef(\loopTrig).value } { k==4 }{ Tdef(\loopStopPlay).play ...

prev 11 12 13 14 15 16 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow