diff --git a/live/classes/set.py b/live/classes/set.py index 0df7b70..fc2f8fb 100644 --- a/live/classes/set.py +++ b/live/classes/set.py @@ -631,6 +631,9 @@ def start_playing(self) -> None: def continue_playing(self) -> None: self.live.cmd("/live/song/continue_playing") + def play_selection(self) -> None: + self.live.cmd("/live/song/play_selection") + def stop_playing(self) -> None: self.live.cmd("/live/song/stop_playing") diff --git a/tests/test_set.py b/tests/test_set.py index 6ed513f..b61a19f 100644 --- a/tests/test_set.py +++ b/tests/test_set.py @@ -53,6 +53,12 @@ def test_set_play(set: Set): set.stop_playing() assert set.current_song_time > 0.0 + # Repeat for play_selection + set.play_selection() + time.sleep(0.1) + set.stop_playing() + assert set.current_song_time > 0.0 + #------------------------------------------------------------------------ # Play without reset #------------------------------------------------------------------------