aboutsummaryrefslogtreecommitdiffstats
path: root/midi_wrapper_mido.py
diff options
context:
space:
mode:
Diffstat (limited to 'midi_wrapper_mido.py')
-rw-r--r--midi_wrapper_mido.py6
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)