diff options
author | Eddy Pedroni <eddy@0xf7.com> | 2022-01-02 09:34:37 +0100 |
---|---|---|
committer | Eddy Pedroni <eddy@0xf7.com> | 2022-01-02 14:39:24 +0100 |
commit | 430466b0e3a4dd762d8c4a44403437691d9d6118 (patch) | |
tree | 6666fa004d6cc48f9fa52af10c4fdd30744e59ba /midi_wrapper_mido.py | |
parent | ab49963447a3f6ba16fe0a13b3b4761b54b556f4 (diff) |
Added basic LED support for launchpad, removed old MIDI code
Diffstat (limited to 'midi_wrapper_mido.py')
-rw-r--r-- | midi_wrapper_mido.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/midi_wrapper_mido.py b/midi_wrapper_mido.py index ee0d6d5..bf3aa85 100644 --- a/midi_wrapper_mido.py +++ b/midi_wrapper_mido.py @@ -13,9 +13,9 @@ class MidiWrapper: self._inPort = mido.open_input(deviceName) self._inPort.callback = self._callback self._outPort = mido.open_output(deviceName) - - def sendMessage(note, velocity=127, channel=0): + + def sendMessage(self, note, velocity, channel): if self._outPort is not None: msg = mido.Message('note_on', channel=channel, velocity=velocity, note=note) - self.outPort.send(msg) + self._outPort.send(msg) |