xLightsSequencer / xLights

xLights is a sequencer for Lights. xLights has usb and E1.31 drivers. You can create sequences in this object oriented program. You can create playlists, schedule them, test your hardware, convert between different sequencers.
GNU General Public License v3.0
543 stars 201 forks source link

Enhancement: Better keybindings for media control #4704

Open DoctorWiz opened 1 month ago

DoctorWiz commented 1 month ago

Is your feature request related to a problem? Please describe. I have some USB foot pedals for transcription. When used with transcription or editing software, pressing the big middle pedal with your foot plays, and letting it up pauses. The smaller pedals on the right and left can be configured to fast forward or rewind, or jump fwd/back to a previous marked spot, or change speed. I use these in Audacity and in DaVince Resolve and they make work soooo much easier! I think they would be even more useful in xLights when you are constantly starting and stopping and replaying little segments over and over.

I will send a FREE! set of pedals, with shipping (U.S.) to the dev who will add the needed key bindings.

Describe the solution you'd like Keybindings to:

  1. Play from where-ever it was last paused or stopped. But if already playing, is ignored.
  2. Pause if playing, ignore if already paused/stopped.
  3. Jump back to previous mark/chapter. If already at a mark, jump to the prior one. (See Keith’s answer to issue 2639)
  4. Jump to the next mark/chapter. If already at a mark, jump to the following one.
  5. Decrease the playback speed (as opposed to setting to a particular speed) (Like the Audio_S_1_4_speed, S_1_2, etc. but goes in steps)
  6. Increase the playback speed.
  7. Fast-Forward (Audio_F_3_Speed or F_4 already works good for this)
  8. Rewind with audio so you can tell where you're at (optional, this might be tricky to implement).
  9. Resume previous playback from fast-forward or rewind. (Audio_Full_Speed works for this, but would be better if it could go back to previously set speed which might be ½, ¼...)

1 and #2 would be assigned to the big middle pedal, down and release. #3 and #4 would be assigned to the small left/right pedals in one mode, #5 & #6 in another mode, and #7 & #8 to the left and right pedal down in a 3rd mode with #9 to left/right pedal up.

Describe alternatives you've considered Also note that the PLAY keybinding starts from where-ever last clicked in the waveform, not where it left off, so that does not apply well to the foot pedals. The PAUSE keybinding won’t restart the audio after doing anything that causes the waveform portion of the window to lose focus, which is almost anything. The TOGGLE_PLAY keybinding also suffers when the waveform looses focus, and also tends to go back to where-ever was last selected in the waveform, similar to PLAY. Also, a toggle can end up getting out-of-sync with the pedal down and up keys [if down and up both send the same keystroke].

Additional context And for people who don’t have foot pedals-- would be helpful to support the play, pause, stop, rewind, ffwd, next, and previous keys on many standard multimedia keyboards (Scan codes 0xe8 thru 0xf3). Those keys do not currently appear in the Keybindings editor.

See also: Issue 2639

cybercop23 commented 1 month ago

Chapters... numeric key pad/right doesn't work.. idk why.. may look at that.. but top one does... ctrl 0 if you have a 0 chapter in Win

DoctorWiz commented 1 month ago

Chapters... numeric key pad/right doesn't work.. idk why.. may look at that.. but top one does... ctrl 0 if you have a 0 chapter in Win

Got it working after noticing Ron Howard using it in one of his videos. (I assumed I could SET a mark with a keystroke, di'nt know I had to right-click to set. Keys work fine to jump once set.)

computergeek1507 commented 1 month ago

They are calling Timing Tags in the manual

DoctorWiz commented 1 month ago

They are calling Timing Tags in the manual

"Chapters" seems to me like a better term, less likely to be confused with the regular timing marks. But that's beside the point, I would just love to get my foot pedals working with xLights. I'm currently working on some lyric tracks and aligning all the phonemes. The pedals (or even a macro pad or game controller) would make it so much easier. They're great in audio and video editor software. Surely some dev would like a FREE! set of pedals...