Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions live/classes/set.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
6 changes: 6 additions & 0 deletions tests/test_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#------------------------------------------------------------------------
Expand Down