Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (77) Code (26) Doc (35) Quark (16) SCDoc ↗ Forum ↗ Google ↗
  1. map-vol-to-midi Quark

    >> vol 1 midicc_(19) == radpost == MIDIdef.cc('hid1', {arg ...args; {|val| ("Ndef('track1').set('volume', " ++ val ++ ")").radpostcont.interpret; }.({|val| val.round(0.1)}.([-90.0, 6.0, 'db'].asSpec.map(args[0].linlin(0, 127, 0, 1.0))) )},1 ...

  2. roli Quark

    ... (0/12))); q.makeNote(1, 60, 96); q.setBend(1, 8192 * (1 + (3/12))); */ // four MIDIdefs to listen to midi in // for on, off, bend, touch messages MIDIdef.noteOn(\roliOn, { |vel, noteNum, chan| "noteOn: % % %\n".postf(noteNum, vel, chan); q ...

  3. HIDMap Quark

    ... ll { } *getHIDType {arg type; var funcData; case {type == \midicc} {funcData = "MIDIdef.cc"} {type == \midion} {funcData = "MIDIdef.noteOn"} {type == \midioff} {funcData = "MIDIdef.noteOff"} {type == \midiptouch} {funcData = "MIDIdef.polyto ...

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

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

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

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

  8. SCLOrkQuNeo Quark

    ... t; window.background = Color.black; window.onClose = { "Closed GUI, freeing all MIDIdefs".postln; MIDIdef.freeAll; // add code to turn off all LEDs }; makeSliderLabel = { | parent, ccNum | var slider = sliderArray[ccNum]; var composite = Co ...

  9. ChordtrisEngine Quark

    ... dule; // boolean indicating whether the game is paused var isPaused = false; // MIDIdef to respond to MIDI input var midiDef; *new { |chordtris, numRows, numColumns, squareSize| ^super.new.init(chordtris, numRows, numColumns, squareSize) } ...

  10. extMIDIdef Quark

    ... um + ccInterval].flatten, chan, \control, srcID, argTemplate, dispatcher); } } +MIDIdef { *cc14 { arg key, func, ccNum, chan, srcID, argTemplate, dispatcher, ccInterval=32, lsbFirst=false; var wrapFunc, accumulatedValue; ^this.new(key, this ...

1 2 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow