Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (167) Code (30) Doc (36) Help (9) Quark (92) SCDoc ↗ Forum ↗ Google ↗
  1. Command-line SC utility for MIDI clock out by 0-cM (jamshark70) Code

    ... 't collide with main SC process (dammit) Archive.archiveDir = PathName.tmp; MIDIClient.init; // synchronous devices = MIDIClient.destinations.collect { |ep| ep.device + " : " ++ ep.name }; if(thisProcess.argv.size >= 1) { device ...

  2. One chord requiem by 56228375 (56228375) Code

    ... .doOnce{ 127.do({ |note| midiout.noteOff(1, note); }); }; if (MIDIClient.initialized.not) { MIDIClient.init; }; midiout = MIDIOut.new(0); no_of_bins = 24; table = { | period, phase, rangemin, rangemax | 127.col ...

  3. MIDI displayer/debugger by peterk (peterk) Code

    ... ote on, off, and continuous control messages // initialize the midi client MIDIClient.init; // connect all the possible inputs MIDIIn.connectAll; // if we receive a midi on message, display some data about it including velocity, ...

  4. Using a MIDI keyboard - simple example by bruno (Bruno Ruviaro) Code

    ... example - how to use a MIDI keyboard with a simple synth MIDIIn.connectAll; // MIDIClient.init; ( // A SynthDef with ADSR envelope SynthDef("quick2", {arg freq = 440, amp = 0.1, gate = 1; var snd, env; env = Env.adsr(0.01, 0.1, ...

  5. OSC to MIDI converter (GUI) by rukano (rukano) Code

    ... "-- init midi first --"]); gui_midiinit.action_({ |but| if(but.value == 1) { MIDIClient.init } { but.value_(1) }; gui_mididevices.items_(MIDIClient.destinations.collect{ |dest| dest.name }) }); gui_mididevices.action_({ |m| midi = MI ...

  6. MIDIFile player with CC capability by lfsaw (LFSaw) Code

    ... ndOfTrack; // may not be really needed, but nice if you want to do m.plot ) MIDIClient.init; ( ~events = m.midiEvents; ~midiout = MIDIOut(0); ~routine = { var lastTime = 0; ~events.do({ |evt| (evt[1] - lastTime).wai ...

  7. Step Sequencer with Midi/Scales/Tuning capabilities by rukano (rukano) Code

    ... th"]) .action_({ |menu| sendType = menu.value; if(menu.value != 0){ MIDIClient.init; popMidiDevice.items_( MIDIClient.destinations.collect{ |aDevice| aDevice.name.asString } ); midiDevice = MIDIOut(0) ...

  8. glitchySampler by tigges-p (tigges-p) Code

    ... eo soundfile; I used recordings of a tuba, a western guitar and a panflute*/); MIDIClient.init; MIDIIn.connect(0, MIDIClient.sources[/*index of your device*/]); ( var activenotes = nil!128; var sustain = 0; var sustained = fal ...

  9. Controlling DSI tetra with Supercollider--some examples by jamescaf (jamescaf) Code

    s.boot; MIDIClient.init; // check the array of midi destinations for the device you are using, and then create a MIDIOut // at the index of the destination you plan on using // in the case that the midi destination you are using is ...

  10. Re: midified arpeggiator/auto-accompaniment using patterns by 0-eQ (elgiano) Code

    ... ot({ var right, left; MIDIdef.freeAll; if (~midi_initilized.isNil) { MIDIClient.init; MIDIIn.connectAll; ~midi_initialized = 1; }; ~n = ( table: Order(), noteOn: {|n,note| n.table[note] = 1}, noteOff: {|n,not ...

prev 1 2 3 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow