From 328d9ae201cabe8e4189736cd806ecea7b675200 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Sat, 1 Jan 2022 15:49:06 +0100 Subject: Added previous/next song buttons to MIDI interface, updated known issues --- midi_controller_launchpad_mini.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'midi_controller_launchpad_mini.py') diff --git a/midi_controller_launchpad_mini.py b/midi_controller_launchpad_mini.py index 16c819c..55c0ec0 100644 --- a/midi_controller_launchpad_mini.py +++ b/midi_controller_launchpad_mini.py @@ -12,8 +12,10 @@ class MidiController: self._handlers = { 112 : self._playPause, - 96 : self._stop, - 101 : self._jumpToA + 96 : self._soloTool.stop, + 101 : self._soloTool.jumpToA, + 118 : self._soloTool.previousSong, + 119 : self._soloTool.nextSong } def connect(self): @@ -33,8 +35,3 @@ class MidiController: else: self._soloTool.play() - def _stop(self): - self._soloTool.stop() - - def _jumpToA(self): - self._soloTool.jumpToA() -- cgit v1.2.3