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. |
| nextSong (host, port) | Advance to the next song in the playlist. |
| getHelp (_host, _port) | Retrieve the static help text. |
Fields
| send_message | Send an arbitrary FluidSynth command. |
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.
Sends “player_start” after pushing a “clear” control message.
Parameters:
- host
- port
- nextSong (host, port)
-
Advance to the next song in the playlist.
Sends “player_next” after pushing a “clear” control message.
Parameters:
- host
- port
- getHelp (_host, _port)
-
Retrieve the static help text.
Parameters:
- _host
- _port