nikarh / reaper-remote-bandui

Web UI for Reaper remote interface used to simplify channel mixing for live shows
MIT License
10 stars 1 forks source link

Go to next region and pause #21

Open imlukedewitt opened 1 week ago

imlukedewitt commented 1 week ago

👋 Loving this app, thanks so much for sharing. We're going to try this out, but I do have a setup question

My band's setlists have two kinds of songs:

Is it possible to automatically stop at the end, AND queue up the next song? The goal is to have the next song displayed, and need just need to hit Play.

What Ive tried: using Reaper action markers gets me close, but not quite there. I can put a marker "!1008" to pause playback, but I'd prefer to switch songs before pausing

nikarh commented 5 days ago

Hi! Glad to know you found this project helpful!

Not entirely sure how to make that possible. This project is just a UI that provides controls, it doesn't really affect the playback flow. Even though it technically is possible to poll current state from the UI and stop playback from the frontend, this would be extremely flimsy, e.g. if the frontend disconnects, the playback won't stop and won't jump to the next track. Same if your browser freezes the tab (e.g. if you're on the mobile and you navigate to a different tab, or different app, or just lock the screen).

I think the best solution for that is actually using markers. You can combine multiple commands in a marker, so if you want to stop playback and jump 2 markers forward, you can name your marker like that !1016 40173 40173 40173 (no idea why you need 40173 3 times though). There are also commands to jump to markers 1-10 (See https://stash.reaper.fm/oldsb/50478/REAPER_Main-Window_command-identifiers.txt, starting from 40160), but as far as I can tell no commands for arbitrary markers.