Skip to content

Command Interface

Control and configuration interface.

The command interface allows you to send textual commands to the synthesizer, to parse a command file, or to read commands from the stdin or other input streams (like a TCP socket).

For a full list of available commands, type help in the Command Shell or send the same command via a command handler. Further documentation can be found at https://www.fluidsynth.org/wiki/UserManual#shell-commands

Subgroups

Functions

fluid_get_stdin()

fluid_istream_t fluid_get_stdin(void)

Get standard in stream handle.

Returns: Standard in stream.

fluid_get_stdout()

fluid_ostream_t fluid_get_stdout(void)

Get standard output stream handle.

Returns: Standard out stream.

fluid_get_sysconf()

char * fluid_get_sysconf(char *buf, int len)

Get the system FluidSynth command file name.

Parameters:

Name Description
buf Caller supplied string buffer to store file name to.
len Length of buf

Returns: Returns buf pointer or NULL if no system command file for this system type.

MACOS does not have a system-wide config file currently. Since fluidsynth 2.2.9, the config on Windows is "%PROGRAMDATA%\fluidsynth\fluidsynth.cfg". For anything else it returns "/etc/fluidsynth.conf".

fluid_get_userconf()

char * fluid_get_userconf(char *buf, int len)

Get the user specific FluidSynth command file name.

Parameters:

Name Description
buf Caller supplied string buffer to store file name to.
len Length of buf

Returns: Returns buf pointer or NULL if no user command file for this system type.

On Windows this is currently "%USERPROFILE%\fluidsynth.cfg". For anything else (except MACOS9) "$HOME/.fluidsynth".