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 --- solo_tool.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'solo_tool.py') diff --git a/solo_tool.py b/solo_tool.py index c32d3e8..d2147bf 100644 --- a/solo_tool.py +++ b/solo_tool.py @@ -6,8 +6,8 @@ from session_manager import SessionManager from player_vlc import Player class SoloTool: - def __init__(self, player=None): - self._player = Player() if player is None else player + def __init__(self, playerOverride=None): + self._player = Player() if playerOverride is None else playerOverride self._playlist = Playlist(self._playlistCallback) self._abController = ABController(enabled=False, callback=self._abControllerCallback) self._sessionManager = SessionManager(self._playlist, self._abController) @@ -30,6 +30,12 @@ class SoloTool: def setSong(self, index): self._playlist.setCurrentSong(index) + def nextSong(self): + self._playlist.nextSong() + + def previousSong(self): + self._playlist.previousSong() + def getSongs(self): return self._playlist.getSongs() -- cgit v1.2.3