diff options
author | Eddy Pedroni <eddy@0xf7.com> | 2022-01-01 15:49:06 +0100 |
---|---|---|
committer | Eddy Pedroni <eddy@0xf7.com> | 2022-01-01 15:49:06 +0100 |
commit | 328d9ae201cabe8e4189736cd806ecea7b675200 (patch) | |
tree | 97f198c5f4b3f3ceff0b39690f703b73d2f69de1 /solo_tool.py | |
parent | 71f6a49110b6696ca6ac7956baa4edaa1aaa9527 (diff) |
Added previous/next song buttons to MIDI interface, updated known issues
Diffstat (limited to 'solo_tool.py')
-rw-r--r-- | solo_tool.py | 10 |
1 files changed, 8 insertions, 2 deletions
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() |