Module src.backends.fluidsynth.backend_controls

Fluidsynth backend controls for MIDI track management.

Provides functions to start, stop, and advance playback by sending TCP messages to a Fluidsynth-compatible server, and a static “help” dump loaded from disk.

Functions

togglePlayback (host, port) Toggle playback state.
beginSong (host, port) Start playback of the current song (Tab).
endSong (host, port) Advance to the next song in the playlist (Internal FluidSynth skip).
nextSong (host, port) Force-kill the process to trigger the Thread to iterate to the next file.
send_message (message, host, port) Send an arbitrary FluidSynth command.
getHelp (host, port) Retrieve the static help text.


Functions

togglePlayback (host, port)
Toggle playback state. If currently playing, sends “player_stop”; otherwise sends “player_cont”.

Parameters:

  • host
  • port
beginSong (host, port)
Start playback of the current song (Tab). Sends “player_start” and “player_cont” to ensure playback begins even if the sequencer was previously stopped or the app was frozen.

Parameters:

  • host
  • port
endSong (host, port)
Advance to the next song in the playlist (Internal FluidSynth skip). Sends “player_next” after pushing a “clear” control message. Used for Shift+Return to stop MIDI but keep process alive for live feedback.

Parameters:

  • host
  • port
nextSong (host, port)
Force-kill the process to trigger the Thread to iterate to the next file. Closes the TCP socket first to ensure the OS releases the port. Used for Return to advance the Lua-level playlist.

Parameters:

  • host
  • port
send_message (message, host, port)
Send an arbitrary FluidSynth command.

Parameters:

  • message
  • host
  • port
getHelp (host, port)
Retrieve the static help text.

Parameters:

  • host
  • port
generated by LDoc 1.5.0 Last updated 2026-03-13 09:36:59