Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (77) Code (26) Doc (35) Quark (16) SCDoc ↗ Forum ↗ Google ↗
  1. Using a MIDI keyboard - simple example by bruno (Bruno Ruviaro) Code

    ... oteArray = Array.newClear(128); // array has one slot per possible MIDI note MIDIdef.noteOn(\myKeyDown, {arg vel, note; noteArray[note] = Synth("quick2", [\freq, note.midicps, \amp, vel.linlin(0, 127, 0, 1)]); ["NOTE ON", note].postl ...

  2. msc-midi Quark

    ... MIDIIn.connectAll(); // this calls MIDIClient.init; input device is filtered in MIDIdef nk_last_seen = Dictionary[]; nk_sources = MIDIClient.sources.select {|e| e.device.containsi("nanoKontrol") }; if (nk_sources.size > 0 && nk_source.isNil ...

  3. Additive Synthesis Demo with QuNeo - Patch 3 (Risset Bell) by bruno (Bruno Ruviaro) Code

    ... 64); var duration = 4; var quneoChannel = 11; // MIDIIn.connectAll; MIDIdef.freeAll; MIDIdef.noteOn( key: \noteOn, func: {arg vel, note; var index = note - 36; // start from 0 padsArray[index] = Synth("risset" ...

  4. MidiNoteFunc Quark

    ... { if(noteNum.notNil, { //Register On Function onFunc = {}; if(noteNum.notNil, { MIDIdef.noteOn(name ++ \On, {|val, num, chan, src| if (chan == channel, { onFunc.value(val, num, chan, src, name, displayDebugInfo); //velocity and midi note ar ...

  5. MIDI_keyboard Quark

    ... lient.init; MIDIIn.connectAll; // Definición de la acción al recibir notas MIDI MIDIdef.noteOn(\midiNoteOn, { |veloc, note, chan, src| // Crea y toca un evento sonoro [veloc, note, chan, src].postln; if (chan==0) { ( type: \note, // Tipo de ...

  6. Pushing air by coreyker (coreyker) Code

    ... .add; ) ~t = TempoClock.new; ~t.tempo = 3; Tdef(\morse).play(~t); ( MIDIdef.cc(\attackTime, {|val, num, chan, src| var attackTime; attackTime = val.linlin(0,127,0,2); ~ctlbus1.set(attackTime); ("attackTime: " ++ at ...

  7. Sampling Demo with QuNeo - Patch 1 by bruno (Bruno Ruviaro) Code

    ... env * amp; Out.ar(0, snd); }).add; }.play; // MIDI from QuNeo MIDIdef.cc( key: \xpads, func: {arg vel, ccNum; var index, rate, previous, winner; index = (24, 27 .. 69).indexOf(ccNum); index = index + ba ...

  8. nanoKONTROL2 Quark

    ... rds_action = nil, <>stop_action = nil, <>play_action = nil, <>rec_action = nil, mididef_key, <outport = nil, <midiOut = nil; // change this only if you are writing a class for // nanoKONTROL3 with 9 knobs and faders var <nk2num = 8, <knobs_ ...

  9. exhaustive MIDI debugger by soundlake (soundlake) Code

    ... p.uid -> mep.device.catArgs(", ", mep.name)); }); // Register the debugger MIDIdef.freeAll; ~types.do({ |type| var key, func, msgType; key = (type + "Func").asSymbol; msgType = type.asSymbol; // Define the debugger funcito ...

  10. ProgramChangeResponder Doc

    ... ond to MIDI program change events Source: MIDIResponder.sc See also: MIDIFunc , MIDIdef , MIDIResponder , CCResponder Description NOTE: SC 3.5 added the MIDIFunc and MIDIdef classes. These are faster, and aim to have a more convenient, logi ...

prev 1 2 3 4 5 6 7 8 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow