Defines |
#define | FLUID_REVERB_DEFAULT_ROOMSIZE 0.2f |
#define | FLUID_REVERB_DEFAULT_DAMP 0.0f |
#define | FLUID_REVERB_DEFAULT_WIDTH 0.5f |
#define | FLUID_REVERB_DEFAULT_LEVEL 0.9f |
#define | FLUID_CHORUS_DEFAULT_N 3 |
#define | FLUID_CHORUS_DEFAULT_LEVEL 2.0f |
#define | FLUID_CHORUS_DEFAULT_SPEED 0.3f |
#define | FLUID_CHORUS_DEFAULT_DEPTH 8.0f |
#define | FLUID_CHORUS_DEFAULT_TYPE FLUID_CHORUS_MOD_SINE |
Typedefs |
typedef int(* | fluid_audio_callback_t )(fluid_synth_t *synth, int len, void *out1, int loff, int lincr, void *out2, int roff, int rincr) |
Enumerations |
enum | fluid_chorus_mod { FLUID_CHORUS_MOD_SINE = 0,
FLUID_CHORUS_MOD_TRIANGLE = 1
} |
enum | fluid_interp {
FLUID_INTERP_NONE = 0,
FLUID_INTERP_LINEAR = 1,
FLUID_INTERP_DEFAULT = 4,
FLUID_INTERP_4THORDER = 4,
FLUID_INTERP_7THORDER = 7,
FLUID_INTERP_HIGHEST = 7
} |
Functions |
FLUIDSYNTH_API fluid_synth_t * | new_fluid_synth (fluid_settings_t *settings) |
| Creates a new synthesizer object. More...
|
FLUIDSYNTH_API int | delete_fluid_synth (fluid_synth_t *synth) |
| Deletes the synthesizer previously created with new_fluid_synth. More...
|
FLUIDSYNTH_API fluid_settings_t * | fluid_synth_get_settings (fluid_synth_t *synth) |
| Get a reference to the settings of the synthesizer. More...
|
FLUIDSYNTH_API int | fluid_synth_noteon (fluid_synth_t *synth, int chan, int key, int vel) |
| Send a noteon message. More...
|
FLUIDSYNTH_API int | fluid_synth_noteoff (fluid_synth_t *synth, int chan, int key) |
| Send a noteoff message. More...
|
FLUIDSYNTH_API int | fluid_synth_cc (fluid_synth_t *synth, int chan, int ctrl, int val) |
| Send a control change message. More...
|
FLUIDSYNTH_API int | fluid_synth_get_cc (fluid_synth_t *synth, int chan, int ctrl, int *pval) |
| Get a control value. More...
|
FLUIDSYNTH_API int | fluid_synth_pitch_bend (fluid_synth_t *synth, int chan, int val) |
| Send a pitch bend message. More...
|
FLUIDSYNTH_API int | fluid_synth_get_pitch_bend (fluid_synth_t *synth, int chan, int *ppitch_bend) |
| Get the pitch bend value. More...
|
FLUIDSYNTH_API int | fluid_synth_pitch_wheel_sens (fluid_synth_t *synth, int chan, int val) |
| Set the pitch wheel sensitivity. More...
|
FLUIDSYNTH_API int | fluid_synth_program_change (fluid_synth_t *synth, int chan, int program) |
| Send a program change message. More...
|
FLUIDSYNTH_API int | fluid_synth_bank_select (fluid_synth_t *synth, int chan, unsigned int bank) |
| Select a bank. More...
|
FLUIDSYNTH_API int | fluid_synth_sfont_select (fluid_synth_t *synth, int chan, unsigned int sfont_id) |
| Select a sfont. More...
|
FLUIDSYNTH_API int | fluid_synth_program_select (fluid_synth_t *synth, int chan, unsigned int sfont_id, unsigned int bank_num, unsigned int preset_num) |
| Select a preset for a channel. More...
|
FLUIDSYNTH_API int | fluid_synth_get_program (fluid_synth_t *synth, int chan, unsigned int *sfont_id, unsigned int *bank_num, unsigned int *preset_num) |
| Returns the program, bank, and SoundFont number of the preset on a given channel. More...
|
FLUIDSYNTH_API int | fluid_synth_program_reset (fluid_synth_t *synth) |
| Send a bank select and a program change to every channel to reinitialize the preset of the channel. More...
|
FLUIDSYNTH_API int | fluid_synth_system_reset (fluid_synth_t *synth) |
| Send a reset. More...
|
FLUIDSYNTH_API int | fluid_synth_sfload (fluid_synth_t *synth, const char *filename, int reset_presets) |
| Load a SoundFont. More...
|
FLUIDSYNTH_API int | fluid_synth_sfreload (fluid_synth_t *synth, unsigned int id) |
| Reload a SoundFont. More...
|
FLUIDSYNTH_API int | fluid_synth_sfunload (fluid_synth_t *synth, unsigned int id, int reset_presets) |
| Remove a SoundFont from the stack. More...
|
FLUIDSYNTH_API int | fluid_synth_add_sfont (fluid_synth_t *synth, fluid_sfont_t *sfont) |
| Add a SoundFont. More...
|
FLUIDSYNTH_API int | fluid_synth_sfcount (fluid_synth_t *synth) |
| Count the number of loaded SoundFonts. More...
|
FLUIDSYNTH_API fluid_sfont_t * | fluid_synth_get_sfont (fluid_synth_t *synth, unsigned int num) |
| Get a SoundFont. More...
|
FLUIDSYNTH_API fluid_sfont_t * | fluid_synth_get_sfont_by_id (fluid_synth_t *synth, unsigned int id) |
| Get a SoundFont. More...
|
FLUIDSYNTH_API fluid_preset_t * | fluid_synth_get_channel_preset (fluid_synth_t *synth, int chan) |
| Get the preset of a channel. More...
|
FLUIDSYNTH_API void | fluid_synth_set_reverb (fluid_synth_t *synth, double roomsize, double damping, double width, double level) |
| Set the parameters for the built-in reverb unit. More...
|
FLUIDSYNTH_API void | fluid_synth_set_reverb_on (fluid_synth_t *synth, int on) |
| Turn on (1) / off (0) the built-in reverb unit. More...
|
FLUIDSYNTH_API double | fluid_synth_get_reverb_roomsize (fluid_synth_t *synth) |
| Query the current state of the reverb. More...
|
FLUIDSYNTH_API double | fluid_synth_get_reverb_damp (fluid_synth_t *synth) |
FLUIDSYNTH_API double | fluid_synth_get_reverb_level (fluid_synth_t *synth) |
FLUIDSYNTH_API double | fluid_synth_get_reverb_width (fluid_synth_t *synth) |
FLUIDSYNTH_API void | fluid_synth_set_chorus (fluid_synth_t *synth, int nr, double level, double speed, double depth_ms, int type) |
| Set up the chorus. More...
|
FLUIDSYNTH_API void | fluid_synth_set_chorus_on (fluid_synth_t *synth, int on) |
| Turn on (1) / off (0) the built-in chorus unit. More...
|
FLUIDSYNTH_API int | fluid_synth_get_chorus_nr (fluid_synth_t *synth) |
| Query the current state of the chorus. More...
|
FLUIDSYNTH_API double | fluid_synth_get_chorus_level (fluid_synth_t *synth) |
FLUIDSYNTH_API double | fluid_synth_get_chorus_speed_Hz (fluid_synth_t *synth) |
FLUIDSYNTH_API double | fluid_synth_get_chorus_depth_ms (fluid_synth_t *synth) |
FLUIDSYNTH_API int | fluid_synth_get_chorus_type (fluid_synth_t *synth) |
FLUIDSYNTH_API int | fluid_synth_count_midi_channels (fluid_synth_t *synth) |
| Returns the number of MIDI channels that the synthesizer uses internally. More...
|
FLUIDSYNTH_API int | fluid_synth_count_audio_channels (fluid_synth_t *synth) |
| Returns the number of audio channels that the synthesizer uses internally. More...
|
FLUIDSYNTH_API int | fluid_synth_count_audio_groups (fluid_synth_t *synth) |
| Returns the number of audio groups that the synthesizer uses internally. More...
|
FLUIDSYNTH_API int | fluid_synth_count_effects_channels (fluid_synth_t *synth) |
| Returns the number of effects channels that the synthesizer uses internally. More...
|
FLUIDSYNTH_API void | fluid_synth_set_gain (fluid_synth_t *synth, float gain) |
| Set the master gain. More...
|
FLUIDSYNTH_API float | fluid_synth_get_gain (fluid_synth_t *synth) |
| Get the master gain. More...
|
FLUIDSYNTH_API int | fluid_synth_get_internal_bufsize (fluid_synth_t *synth) |
| Get the internal buffer size. More...
|
FLUIDSYNTH_API int | fluid_synth_set_interp_method (fluid_synth_t *synth, int chan, int interp_method) |
| Set the interpolation method for one channel or all channels (chan = -1). More...
|
FLUIDSYNTH_API int | fluid_synth_set_gen (fluid_synth_t *synth, int chan, int param, float value) |
| Change the value of a generator. More...
|
FLUIDSYNTH_API float | fluid_synth_get_gen (fluid_synth_t *synth, int chan, int param) |
| Retreive the value of a generator. More...
|
FLUIDSYNTH_API int | fluid_synth_create_key_tuning (fluid_synth_t *synth, int tuning_bank, int tuning_prog, char *name, double *pitch) |
| Create a new key-based tuning with given name, number, and pitches. More...
|
FLUIDSYNTH_API int | fluid_synth_create_octave_tuning (fluid_synth_t *synth, int tuning_bank, int tuning_prog, char *name, double *pitch) |
| Create a new octave-based tuning with given name, number, and pitches. More...
|
FLUIDSYNTH_API int | fluid_synth_tune_notes (fluid_synth_t *synth, int tuning_bank, int tuning_prog, int len, int *keys, double *pitch, int apply) |
| Request a note tuning changes. More...
|
FLUIDSYNTH_API int | fluid_synth_select_tuning (fluid_synth_t *synth, int chan, int tuning_bank, int tuning_prog) |
| Select a tuning for a channel. More...
|
FLUIDSYNTH_API int | fluid_synth_reset_tuning (fluid_synth_t *synth, int chan) |
| Set the tuning to the default well-tempered tuning on a channel. More...
|
FLUIDSYNTH_API void | fluid_synth_tuning_iteration_start (fluid_synth_t *synth) |
| Start the iteration throught the list of available tunings. More...
|
FLUIDSYNTH_API int | fluid_synth_tuning_iteration_next (fluid_synth_t *synth, int *bank, int *prog) |
| Get the next tuning in the iteration. More...
|
FLUIDSYNTH_API int | fluid_synth_tuning_dump (fluid_synth_t *synth, int bank, int prog, char *name, int len, double *pitch) |
| Dump the data of a tuning. More...
|
FLUIDSYNTH_API double | fluid_synth_get_cpu_load (fluid_synth_t *synth) |
| Get an estimation of the CPU load due to the audio synthesis. More...
|
FLUIDSYNTH_API char * | fluid_synth_error (fluid_synth_t *synth) |
| Get a textual representation of the last error. More...
|
FLUIDSYNTH_API int | fluid_synth_write_s16 (fluid_synth_t *synth, int len, void *lout, int loff, int lincr, void *rout, int roff, int rincr) |
| Generate a number of samples. More...
|
FLUIDSYNTH_API int | fluid_synth_write_float (fluid_synth_t *synth, int len, void *lout, int loff, int lincr, void *rout, int roff, int rincr) |
| Generate a number of samples. More...
|
FLUIDSYNTH_API int | fluid_synth_nwrite_float (fluid_synth_t *synth, int len, float **left, float **right, float **fx_left, float **fx_right) |
FLUIDSYNTH_API int | fluid_synth_process (fluid_synth_t *synth, int len, int nin, float **in, int nout, float **out) |
| Generate a number of samples. More...
|
FLUIDSYNTH_API void | fluid_synth_add_sfloader (fluid_synth_t *synth, fluid_sfloader_t *loader) |
| Add a SoundFont loader to the synthesizer. More...
|
FLUIDSYNTH_API fluid_voice_t * | fluid_synth_alloc_voice (fluid_synth_t *synth, fluid_sample_t *sample, int channum, int key, int vel) |
| Allocate a synthesis voice. More...
|
FLUIDSYNTH_API void | fluid_synth_start_voice (fluid_synth_t *synth, fluid_voice_t *voice) |
| Start a synthesis voice. More...
|
FLUIDSYNTH_API void | fluid_synth_get_voicelist (fluid_synth_t *synth, fluid_voice_t *buf[], int bufsize, int ID) |
| Write a list of all voices matching ID into buf, but not more than bufsize voices. More...
|
FLUIDSYNTH_API int | fluid_synth_handle_midi_event (void *data, fluid_midi_event_t *event) |
| Callback function for the MIDI router. More...
|
FLUIDSYNTH_API void | fluid_synth_set_midi_router (fluid_synth_t *synth, fluid_midi_router_t *router) |
| This is a hack to get command handlers working. More...
|