From 430466b0e3a4dd762d8c4a44403437691d9d6118 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sun, 2 Jan 2022 09:34:37 +0100 Subject: Added basic LED support for launchpad, removed old MIDI code --- midi_wrapper_mido.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'midi_wrapper_mido.py') 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) -- cgit v1.2.3