Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (167) Code (30) Doc (36) Help (9) Quark (92) SCDoc ↗ Forum ↗ Google ↗
  1. 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, ...

  2. CCResponder Doc

    ... src, chan, num, value. src The src number may be the system UID (obtained from MIDIClient.sources[index].uid ) or the index of the source in the MIDIClient.sources array. nil matches all. chan An Integer between 0 and 15 that selects which ...

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

  4. midi_bend Quark

    ... fault UMapDefs set */ ValueUMapDef( \midi_bend, { |unit, midifunc| var func; if(MIDIClient.initialized.not,{ MIDIIn.connectAll }); midifunc.free; func = { |value, fromRange| var toRange, curve; toRange = unit.mapGet( \toRange ); curve = uni ...

  5. midi_touch Quark

    ... ault UMapDefs set */ ValueUMapDef( \midi_touch, { |unit, midifunc| var func; if(MIDIClient.initialized.not,{ MIDIIn.connectAll }); midifunc.free; func = { |value, fromRange| var toRange, curve; toRange = unit.mapGet( \toRange ); curve = uni ...

  6. MIDI_port_selection_test Quark

    MKtl.find; MIDIClient.sources MKtl('bltn0'); // [ "Ableton Push", "Ableton Push MIDI 1" ] MKtl('bltn1'); // [ "Ableton Push", "Ableton Push MIDI 2" ] ( ~desc = ( // idInfo: "Ableton Push", idInfo: ( name: "Ableton Push", sourcePortIndex: 1, ...

  7. midi_noteOn Quark

    ... ult UMapDefs set */ ValueUMapDef( \midi_noteOn, { |unit, midifunc| var func; if(MIDIClient.initialized.not,{ MIDIIn.connectAll }); midifunc.remove; func = { |value, fromRange| var toRange, curve; toRange = unit.mapGet( \toRange ); curve = u ...

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

  9. midi_noteOn_freq Quark

    ... MapDefs set */ ValueUMapDef( \midi_noteOn_freq, { |unit, midifunc| var func; if(MIDIClient.initialized.not,{ MIDIIn.connectAll }); midifunc.remove; func = { |value, range| var outSpec; outSpec = unit.getSpec( \value ); value = value - 69; i ...

  10. midi_cc Quark

    ... default UMapDefs set */ ValueUMapDef( \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 = uni ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow