Skip to content

Commit

Permalink
midi input adjust, no longer working?
Browse files Browse the repository at this point in the history
  • Loading branch information
cleary committed May 24, 2024
1 parent 510f6ff commit 519d44b
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions global/midi_input.scd
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// load("/path/to/source/livecode/global/midi_input.scd");
(
var mutes, solos, muteAll, unmuteAll, unsoloAll, hush;
var playbackControl;
var playbackControl, on, off, cc;
var osc;

/* -- MIDI Controller Mapping ---------------------------- */
Expand Down Expand Up @@ -61,7 +61,19 @@ solos = Dictionary[
osc = NetAddr.new("127.0.0.1", 6010);

MIDIClient.init;
MIDIIn.connectAll;
// MIDIIn.connectAll;

on = MIDIFunc.noteOn({ |val, num, chan, src|
osc.sendMsg("/ctrl", num.asString, val/127);
});

off = MIDIFunc.noteOff({ |val, num, chan, src|
osc.sendMsg("/ctrl", num.asString, 0);
});

cc = MIDIFunc.cc({ |val, num, chan, src|
osc.sendMsg("/ctrl", num.asString, val/127);
});

playbackControl = MIDIFunc.cc({ |val, num, chan, src|
var patID;
Expand Down

0 comments on commit 519d44b

Please sign in to comment.