Functions for audio driver output.
More...
|
typedef int(* | fluid_audio_func_t) (void *data, int len, int nfx, float *fx[], int nout, float *out[]) |
| Callback function type used with new_fluid_audio_driver2() to allow for custom user audio processing before the audio is sent to the driver. More...
|
|
Functions for audio driver output.
◆ fluid_audio_func_t
typedef int(* fluid_audio_func_t) (void *data, int len, int nfx, float *fx[], int nout, float *out[]) |
Callback function type used with new_fluid_audio_driver2() to allow for custom user audio processing before the audio is sent to the driver.
This function is responsible for rendering audio to the buffers. The buffers passed to this function are allocated and owned by the respective audio driver and are only valid during that specific call (do not cache them). For further details please refer to fluid_synth_process().
- Note
- Whereas fluid_synth_process() allows aliasing buffers, there is the guarentee that
out
and fx
buffers provided by fluidsynth's audio drivers never alias. This prevents downstream applications from e.g. applying a custom effect accidentially to the same buffer multiple times.
- Parameters
-
data | The user data parameter as passed to new_fluid_audio_driver2(). |
len | Count of audio frames to synthesize. |
nfx | Count of arrays in fx . |
fx | Array of buffers to store effects audio to. Buffers may alias with buffers of out . |
nout | Count of arrays in out . |
out | Array of buffers to store (dry) audio to. Buffers may alias with buffers of fx . |
- Returns
- Should return FLUID_OK on success, FLUID_FAILED if an error occurred.
◆ new_fluid_audio_driver()
Create a new audio driver.
- Parameters
-
settings | Configuration settings used to select and create the audio driver. |
synth | Synthesizer instance for which the audio driver is created for. |
- Returns
- The new audio driver instance or NULL on error
Creates a new audio driver for a given synth
instance with a defined set of configuration settings
. The settings
instance must be the same that you have passed to new_fluid_synth() when creating the synth
instance. Otherwise the behaviour is undefined.
- Note
- As soon as an audio driver is created, the
synth
starts rendering audio. This means that all necessary sound-setup should be completed after this point, thus of all object types in use (synth, midi player, sequencer, etc.) the audio driver should always be the last one to be created and the first one to be deleted! Also refer to the order of object creation in the code examples.
- Examples
- example.c, fluidsynth_arpeggio.c, fluidsynth_metronome.c, fluidsynth_register_adriver.c, and fluidsynth_simple.c.
◆ new_fluid_audio_driver2()
Create a new audio driver.
- Parameters
-
settings | Configuration settings used to select and create the audio driver. |
func | Function called to fill audio buffers for audio playback |
data | User defined data pointer to pass to func |
- Returns
- The new audio driver instance or NULL on error
Like new_fluid_audio_driver() but allows for custom audio processing before audio is sent to audio driver. It is the responsibility of the callback func
to render the audio into the buffers. If func
uses a fluid_synth_t synth
, the settings
instance must be the same that you have passed to new_fluid_synth() when creating the synth
instance. Otherwise the behaviour is undefined.
- Note
- Not as efficient as new_fluid_audio_driver().
-
As soon as an audio driver is created, a new thread is spawned starting to make callbacks to
func
. This means that all necessary sound-setup should be completed after this point, thus of all object types in use (synth, midi player, sequencer, etc.) the audio driver should always be the last one to be created and the first one to be deleted! Also refer to the order of object creation in the code examples.
- Examples
- fluidsynth_fx.c.
References FLUID_DBG.
◆ delete_fluid_audio_driver()
◆ new_fluid_file_renderer()
Create a new file renderer and open the file.
- Parameters
-
synth | The synth that creates audio data. |
- Returns
- the new object, or NULL on failure
- Since
- 1.1.0
NOTE: Available file types and formats depends on if libfluidsynth was built with libsndfile support or not. If not then only RAW 16 bit output is supported.
Uses the following settings from the synth object:
- audio.file.name: Output filename
- audio.file.type: File type, "auto" tries to determine type from filename extension with fallback to "wav".
- audio.file.format: Audio format
- audio.file.endian: Endian byte order, "auto" for file type's default byte order
- audio.period-size: Size of audio blocks to process
- synth.sample-rate: Sample rate to use
References delete_fluid_file_renderer(), FLUID_ERR, fluid_settings_dupstr(), fluid_settings_getint(), and fluid_settings_getnum().
◆ fluid_file_renderer_process_block()
◆ delete_fluid_file_renderer()
◆ fluid_file_set_encoding_quality()
Set vbr encoding quality (only available with libsndfile support)
- Parameters
-
dev | File renderer object. |
q | The encoding quality, see libsndfile documentation of SFC_SET_VBR_ENCODING_QUALITY |
- Returns
- FLUID_OK if the quality has been successfully set, FLUID_FAILED otherwise
- Since
- 1.1.7
References FLUID_FAILED, and FLUID_OK.
◆ fluid_audio_driver_register()
FLUIDSYNTH_API int fluid_audio_driver_register |
( |
const char ** |
adrivers | ) |
|
Registers audio drivers to use.
When creating a settings instance with new_fluid_settings(), all audio drivers are initialized once. In the past this has caused segfaults and application crashes due to buggy soundcard drivers.
This function enables the user to only initialize specific audio drivers when settings instances are created. Therefore pass a NULL-terminated array of C-strings containing the names
of audio drivers to register for the usage with fluidsynth. The names
are the same as being used for the audio.driver
setting.
By default all audio drivers fluidsynth has been compiled with are registered, so calling this function is optional.
- Warning
- This function may only be called if no thread is residing in fluidsynth's API and no instances of any kind are alive (e.g. as it would be the case right after fluidsynth's initial creation). Else the behaviour is undefined. Furtermore any attempt of using audio drivers that have not been registered is undefined behaviour!
- Parameters
-
adrivers | NULL-terminated array of audio drivers to register. Pass NULL to register all available drivers. |
- Returns
- FLUID_OK if all the audio drivers requested by the user are supported by fluidsynth and have been successfully registered. Otherwise FLUID_FAILED is returned and this function has no effect.
- Note
- This function is not thread safe and will never be!
- Since
- 1.1.9
- Examples
- fluidsynth_register_adriver.c.
References FLUID_FAILED, and FLUID_OK.
FLUIDSYNTH_API int fluid_synth_activate_key_tuning(fluid_synth_t *synth, int bank, int prog, const char *name, const double *pitch, int apply)
Set the tuning of the entire MIDI note scale.
Definition: fluid_synth.c:5988
FLUIDSYNTH_API void delete_fluid_cmd_handler(fluid_cmd_handler_t *handler)
Delete a command handler.
Definition: fluid_cmd.c:4195
FLUIDSYNTH_API int fluid_synth_get_active_voice_count(fluid_synth_t *synth)
Get current number of active voices.
Definition: fluid_synth.c:3378
FLUIDSYNTH_API int fluid_log(int level, const char *fmt,...)
Print a message to the log.
Definition: fluid_sys.c:179
FLUIDSYNTH_API fluid_sequencer_t * new_fluid_sequencer2(int use_system_timer)
Create a new sequencer object.
Definition: fluid_seq.c:109
FLUIDSYNTH_API void fluid_midi_router_rule_set_chan(fluid_midi_router_rule_t *rule, int min, int max, float mul, int add)
Set the channel portion of a rule.
Definition: fluid_midi_router.c:431
FLUIDSYNTH_API int fluid_synth_all_notes_off(fluid_synth_t *synth, int chan)
Turn off all voices that are playing on the given MIDI channel, by putting them into release phase.
Definition: fluid_synth.c:2305
FLUIDSYNTH_API fluid_midi_event_t * new_fluid_midi_event(void)
Create a MIDI event structure.
Definition: fluid_midi.c:1055
@ GEN_STARTLOOPADDROFS
Sample loop start address offset (-32767-32767)
Definition: gen.h:40
FLUIDSYNTH_API void delete_fluid_midi_router_rule(fluid_midi_router_rule_t *rule)
Free a MIDI router rule.
Definition: fluid_midi_router.c:406
@ GEN_MODENVSUSTAIN
Modulation envelope sustain.
Definition: gen.h:67
@ GEN_CUSTOM_FILTERQ
Custom filter Q.
Definition: gen.h:118
FLUIDSYNTH_API void fluid_sequencer_set_time_scale(fluid_sequencer_t *seq, double scale)
Set the time scale of a sequencer.
Definition: fluid_seq.c:516
FLUIDSYNTH_API void fluid_midi_router_rule_set_param2(fluid_midi_router_rule_t *rule, int min, int max, float mul, int add)
Set the second parameter portion of a rule.
Definition: fluid_midi_router.c:504
@ GEN_VIBLFOFREQ
Vibrato LFO frequency.
Definition: gen.h:62
FLUIDSYNTH_API int fluid_player_add_mem(fluid_player_t *player, const void *buffer, size_t len)
Add a MIDI file to a player queue, from a buffer in memory.
Definition: fluid_midi.c:1861
FLUIDSYNTH_API double fluid_synth_get_reverb_roomsize(fluid_synth_t *synth)
Get reverb room size.
Definition: fluid_synth.c:5394
FLUIDSYNTH_API void delete_fluid_synth(fluid_synth_t *synth)
Delete a FluidSynth instance.
Definition: fluid_synth.c:1003
FLUIDSYNTH_API int fluid_preset_get_num(fluid_preset_t *preset)
Retrieves the presets (instrument) number by executing the get_num function provided on its creation.
Definition: fluid_sfont.c:451
FLUIDSYNTH_API void delete_fluid_server(fluid_server_t *server)
Delete a TCP/IP shell server.
Definition: fluid_cmd.c:4459
FLUIDSYNTH_API int fluid_sample_set_sound_data(fluid_sample_t *sample, short *data, char *data24, unsigned int nbframes, unsigned int sample_rate, short copy_data)
Assign sample data to a SoundFont sample.
Definition: fluid_sfont.c:566
FLUIDSYNTH_API int fluid_settings_get_hints(fluid_settings_t *settings, const char *name, int *val)
Get the hints for the named setting as an integer bitmap.
Definition: fluid_settings.c:866
FLUIDSYNTH_API void delete_fluid_midi_driver(fluid_midi_driver_t *driver)
Delete a MIDI driver instance.
Definition: fluid_mdriver.c:189
@ FLUID_SEQ_CONTROLCHANGE
MIDI control change event.
Definition: event.h:52
FLUIDSYNTH_API int fluid_voice_is_sostenuto(const fluid_voice_t *voice)
Check if a voice keeps playing after it has received a noteoff due to being held by sostenuto.
Definition: fluid_voice.c:1614
FLUIDSYNTH_API fluid_ostream_t fluid_get_stdout(void)
Get standard output stream handle.
Definition: fluid_sys.c:1232
FLUIDSYNTH_API unsigned int fluid_event_get_sfont_id(fluid_event_t *evt)
Get the SoundFont ID field from a sequencer event structure.
Definition: fluid_event.c:731
struct _fluid_cmd_handler_t fluid_cmd_handler_t
Shell Command Handler.
Definition: types.h:58
FLUIDSYNTH_API int fluid_synth_noteon(fluid_synth_t *synth, int chan, int key, int vel)
Send a note-on event to a FluidSynth object.
Definition: fluid_synth.c:1233
FLUIDSYNTH_API int fluid_midi_event_set_pitch(fluid_midi_event_t *evt, int val)
Set the pitch field of a MIDI event structure.
Definition: fluid_midi.c:1288
@ GEN_SCALETUNE
Scale tuning.
Definition: gen.h:94
@ GEN_KEYTOVOLENVDECAY
Key to volume envelope decay.
Definition: gen.h:78
FLUIDSYNTH_API int fluid_synth_get_bank_offset(fluid_synth_t *synth, int sfont_id)
Get bank offset of a loaded SoundFont.
Definition: fluid_synth.c:6628
FLUIDSYNTH_API int fluid_synth_count_audio_groups(fluid_synth_t *synth)
Get the total number of allocated audio channels.
Definition: fluid_synth.c:5790
FLUIDSYNTH_API void delete_fluid_sample(fluid_sample_t *sample)
Destroy a sample instance previously created with new_fluid_sample().
Definition: fluid_sfont.c:508
FLUIDSYNTH_API fluid_seq_id_t fluid_event_get_dest(fluid_event_t *evt)
Get the dest sequencer client from a sequencer event structure.
Definition: fluid_event.c:598
FLUIDSYNTH_API void fluid_event_system_reset(fluid_event_t *evt)
Set a sequencer event to be a midi system reset event.
Definition: fluid_event.c:551
@ FLUID_CHANNEL_BREATH_MONO
when channel is mono, this flag indicates that the default velocity to initial attenuation modulator ...
Definition: synth.h:332
FLUIDSYNTH_API int fluid_sfloader_set_callbacks(fluid_sfloader_t *loader, fluid_sfloader_callback_open_t open, fluid_sfloader_callback_read_t read, fluid_sfloader_callback_seek_t seek, fluid_sfloader_callback_tell_t tell, fluid_sfloader_callback_close_t close)
Set custom callbacks to be used upon soundfont loading.
Definition: fluid_sfont.c:169
FLUIDSYNTH_API int fluid_synth_count_effects_groups(fluid_synth_t *synth)
Get the total number of allocated effects units.
Definition: fluid_synth.c:5822
struct _fluid_ramsfont_t fluid_ramsfont_t
RAM SoundFont.
Definition: types.h:56
FLUIDSYNTH_API int fluid_midi_event_set_value(fluid_midi_event_t *evt, int val)
Set the value field of a MIDI event structure.
Definition: fluid_midi.c:1240
FLUIDSYNTH_API fluid_shell_t * new_fluid_shell(fluid_settings_t *settings, fluid_cmd_handler_t *handler, fluid_istream_t in, fluid_ostream_t out, int thread)
Create a new FluidSynth command shell.
Definition: fluid_cmd.c:430
FLUIDSYNTH_API int fluid_sample_set_name(fluid_sample_t *sample, const char *name)
Set the name of a SoundFont sample.
Definition: fluid_sfont.c:543
FLUIDSYNTH_API void fluid_voice_gen_set(fluid_voice_t *voice, int gen, float val)
Set the value of a generator.
Definition: fluid_voice.c:396
FLUIDSYNTH_API void fluid_settings_foreach_option(fluid_settings_t *settings, const char *name, void *data, fluid_settings_foreach_option_t func)
Iterate the available options for a named string setting, calling the provided callback function for ...
Definition: fluid_settings.c:1690
FLUIDSYNTH_API int fluid_is_midifile(const char *filename)
Check if a file is a MIDI file.
Definition: fluid_midi.c:88
FLUIDSYNTH_API void fluid_event_pan(fluid_event_t *evt, int channel, short val)
Set a sequencer event to be a stereo pan event.
Definition: fluid_event.c:376
FLUIDSYNTH_API int fluid_synth_get_program(fluid_synth_t *synth, int chan, int *sfont_id, int *bank_num, int *preset_num)
Get current SoundFont ID, bank number and program number for a MIDI channel.
Definition: fluid_synth.c:3008
FLUIDSYNTH_API int fluid_voice_optimize_sample(fluid_sample_t *s)
Calculate the peak volume of a sample for voice off optimization.
Definition: fluid_voice.c:1842
FLUIDSYNTH_API fluid_midi_router_t * new_fluid_midi_router(fluid_settings_t *settings, handle_midi_event_func_t handler, void *event_handler_data)
Create a new midi router.
Definition: fluid_midi_router.c:83
FLUIDSYNTH_API int fluid_player_set_bpm(fluid_player_t *player, int bpm)
Set the tempo of a MIDI player in beats per minute.
Definition: fluid_midi.c:2257
@ FLUID_PLAYER_DONE
Player is finished playing.
Definition: midi.h:131
FLUIDSYNTH_API float fluid_voice_gen_get(fluid_voice_t *voice, int gen)
Get the value of a generator.
Definition: fluid_voice.c:427
FLUID_DEPRECATED FLUIDSYNTH_API void fluid_event_any_control_change(fluid_event_t *evt, int channel)
Set a sequencer event to be an any control change event (for internal use).
Definition: fluid_event.c:258
FLUIDSYNTH_API int fluid_command(fluid_cmd_handler_t *handler, const char *cmd, fluid_ostream_t out)
Process a string command.
Definition: fluid_cmd.c:397
void(* fluid_settings_foreach_option_t)(void *data, const char *name, const char *option)
Callback function type used with fluid_settings_foreach_option()
Definition: settings.h:160
@ GEN_SAMPLEID
Sample ID (shouldn't be set by user)
Definition: gen.h:91
@ FLUID_MOD_SWITCH
Switch (on/off) mapping function.
Definition: mod.h:50
@ FLUID_SEQ_TIMER
Timer event (useful for giving a callback at a certain time)
Definition: event.h:57
FLUIDSYNTH_API int fluid_synth_program_select_by_sfont_name(fluid_synth_t *synth, int chan, const char *sfont_name, int bank_num, int preset_num)
Select an instrument on a MIDI channel by SoundFont name, bank and program numbers.
Definition: fluid_synth.c:3090
FLUIDSYNTH_API int fluid_midi_event_get_control(fluid_midi_event_t *evt)
Get the control number of a MIDI event structure.
Definition: fluid_midi.c:1204
@ FLUID_PLAYER_READY
Player is ready.
Definition: midi.h:129
FLUIDSYNTH_API double fluid_synth_get_chorus_level(fluid_synth_t *synth)
Get chorus level.
Definition: fluid_synth.c:5608
@ FLUID_INT_TYPE
Integer.
Definition: settings.h:95
FLUIDSYNTH_API void fluid_event_pitch_bend(fluid_event_t *evt, int channel, int val)
Set a sequencer event to be a pitch bend event.
Definition: fluid_event.c:271
FLUIDSYNTH_API void fluid_event_program_change(fluid_event_t *evt, int channel, short preset_num)
Set a sequencer event to be a program change event.
Definition: fluid_event.c:225
int(* fluid_preset_get_num_t)(fluid_preset_t *preset)
Method to get a virtual SoundFont preset MIDI program number.
Definition: sfont.h:246
@ FLUID_MOD_CHANNELPRESSURE
MIDI channel pressure.
Definition: mod.h:67
int(* fluid_sfloader_callback_seek_t)(void *handle, long offset, int origin)
Same purpose and behaviour as fseek.
Definition: sfont.h:136
FLUIDSYNTH_API int fluid_midi_event_set_text(fluid_midi_event_t *evt, void *data, int size, int dynamic)
Assign text data to a MIDI event structure.
Definition: fluid_midi.c:1323
FLUIDSYNTH_API int fluid_settings_copystr(fluid_settings_t *settings, const char *name, char *str, int len)
Copy the value of a string setting into the provided buffer (thread safe)
Definition: fluid_settings.c:1033
@ FLUID_MOD_NONE
No source controller.
Definition: mod.h:63
FLUIDSYNTH_API int fluid_voice_get_velocity(const fluid_voice_t *voice)
If the voice is playing, gets the midi velocity from the noteon event, by which the voice was initial...
Definition: fluid_voice.c:1693
FLUIDSYNTH_API short fluid_event_get_key(fluid_event_t *evt)
Get the MIDI note field from a sequencer event structure.
Definition: fluid_event.c:618
fluid_channel_legato_mode
Interface to mono legato mode.
Definition: synth.h:360
@ GEN_FILTERQ
Filter Q.
Definition: gen.h:47
FLUIDSYNTH_API float fluid_synth_get_gen(fluid_synth_t *synth, int chan, int param)
Retrieve the generator NRPN offset assigned to a MIDI channel.
Definition: fluid_synth.c:6428
FLUIDSYNTH_API unsigned int fluid_voice_get_id(const fluid_voice_t *voice)
Get the unique ID of the noteon-event.
Definition: fluid_voice.c:1568
@ FLUID_INTERP_7THORDER
Seventh-order interpolation.
Definition: synth.h:198
FLUIDSYNTH_API int fluid_midi_router_set_default_rules(fluid_midi_router_t *router)
Set a MIDI router to use default "unity" rules.
Definition: fluid_midi_router.c:161
FLUIDSYNTH_API int fluid_settings_option_count(fluid_settings_t *settings, const char *name)
Count option string values for a string setting.
Definition: fluid_settings.c:1741
FLUIDSYNTH_API void fluid_mod_set_dest(fluid_mod_t *mod, int dst)
Set the destination effect of a modulator.
Definition: fluid_mod.c:78
int(* fluid_sfloader_callback_close_t)(void *handle)
Closes the handle returned by fluid_sfloader_callback_open_t and frees used resources.
Definition: sfont.h:143
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)
Synthesize a block of floating point audio samples to audio buffers.
Definition: fluid_synth.c:3965
FLUIDSYNTH_API short fluid_event_get_velocity(fluid_event_t *evt)
Get the MIDI velocity field from a sequencer event structure.
Definition: fluid_event.c:628
FLUIDSYNTH_API void fluid_event_all_sounds_off(fluid_event_t *evt, int channel)
Set a sequencer event to be an all sounds off event.
Definition: fluid_event.c:186
FLUIDSYNTH_API int fluid_midi_router_clear_rules(fluid_midi_router_t *router)
Clear all rules in a MIDI router.
Definition: fluid_midi_router.c:254
FLUIDSYNTH_API fluid_log_function_t fluid_set_log_function(int level, fluid_log_function_t fun, void *data)
Installs a new log function for a specified log level.
Definition: fluid_sys.c:110
@ FLUID_DBG
Debugging messages.
Definition: log.h:61
FLUIDSYNTH_API fluid_preset_t * fluid_synth_get_channel_preset(fluid_synth_t *synth, int chan)
Get active preset on a MIDI channel.
Definition: fluid_synth.c:5179
FLUIDSYNTH_API void fluid_usershell(fluid_settings_t *settings, fluid_cmd_handler_t *handler)
A convenience function to create a shell interfacing to standard input/output console streams.
Definition: fluid_cmd.c:557
FLUIDSYNTH_API fluid_sfont_t * fluid_preset_get_sfont(fluid_preset_t *preset)
Retrieves the presets parent SoundFont instance.
Definition: fluid_sfont.c:462
FLUIDSYNTH_API int fluid_synth_remove_default_mod(fluid_synth_t *synth, const fluid_mod_t *mod)
Removes the specified modulator mod from the synth's default modulator list.
Definition: fluid_synth.c:1506
FLUID_DEPRECATED FLUIDSYNTH_API int fluid_synth_nwrite_float(fluid_synth_t *synth, int len, float **left, float **right, float **fx_left, float **fx_right)
Synthesize a block of floating point audio to separate audio buffers (multichannel rendering).
Definition: fluid_synth.c:3477
FLUIDSYNTH_API int fluid_settings_setnum(fluid_settings_t *settings, const char *name, double val)
Set a numeric value for a named setting.
Definition: fluid_settings.c:1339
FLUIDSYNTH_API void fluid_sequencer_remove_events(fluid_sequencer_t *seq, fluid_seq_id_t source, fluid_seq_id_t dest, int type)
Remove events from the event queue.
Definition: fluid_seq.c:473
FLUIDSYNTH_API int fluid_settings_setint(fluid_settings_t *settings, const char *name, int val)
Set an integer value for a setting.
Definition: fluid_settings.c:1524
FLUIDSYNTH_API int fluid_synth_count_audio_channels(fluid_synth_t *synth)
Get the total count of audio channels.
Definition: fluid_synth.c:5772
FLUIDSYNTH_API int fluid_synth_set_legato_mode(fluid_synth_t *synth, int chan, int legatomode)
API legato mode.
Definition: fluid_synth.c:6852
FLUIDSYNTH_API int fluid_midi_event_get_key(fluid_midi_event_t *evt)
Get the key field of a MIDI event structure.
Definition: fluid_midi.c:1156
FLUIDSYNTH_API int fluid_event_get_type(fluid_event_t *evt)
Get the event type (fluid_seq_event_type) field from a sequencer event structure.
Definition: fluid_event.c:567
FLUIDSYNTH_API int fluid_ladspa_effect_can_mix(fluid_ladspa_fx_t *fx, const char *name)
Check if the effect plugin supports the run_adding and set_run_adding_gain interfaces necessary for o...
Definition: fluid_ladspa.c:582
FLUIDSYNTH_API int fluid_synth_set_reverb_damp(fluid_synth_t *synth, double damping)
Set reverb damping.
Definition: fluid_synth.c:5304
@ GEN_VIBLFOTOPITCH
Vibrato LFO to pitch.
Definition: gen.h:44
FLUIDSYNTH_API int fluid_player_join(fluid_player_t *player)
Wait for a MIDI player until the playback has been stopped.
Definition: fluid_midi.c:2268
@ FLUID_IIR_Q_LINEAR
The Soundfont spec requires the filter Q to be interpreted in dB.
Definition: synth.h:303
FLUIDSYNTH_API int fluid_midi_event_set_type(fluid_midi_event_t *evt, int type)
Set the event type field of a MIDI event structure.
Definition: fluid_midi.c:1120
@ FLUID_SYNTH_ADD
Sum up modulator amounts.
Definition: synth.h:247
FLUIDSYNTH_API int fluid_ladspa_effect_link(fluid_ladspa_fx_t *fx, const char *effect_name, const char *port_name, const char *name)
Connect an effect port to a host port or buffer.
Definition: fluid_ladspa.c:934
#define FLUID_HINT_BOUNDED_BELOW
Hint FLUID_HINT_BOUNDED_BELOW indicates that the LowerBound field of the FLUID_PortRangeHint should b...
Definition: settings.h:62
FLUIDSYNTH_API void delete_fluid_audio_driver(fluid_audio_driver_t *driver)
Deletes an audio driver instance.
Definition: fluid_adriver.c:386
struct _fluid_audio_driver_t fluid_audio_driver_t
Audio driver instance.
Definition: types.h:44
@ FLUID_INFO
Verbose informational messages.
Definition: log.h:60
FLUIDSYNTH_API int fluid_voice_get_key(const fluid_voice_t *voice)
If the voice is playing, gets the midi key from the noteon event, by which the voice was initially tu...
Definition: fluid_voice.c:1659
@ FLUID_SAMPLETYPE_ROM
Flag that indicates ROM samples, causing the sample to be ignored.
Definition: sfont.h:86
fluid_voice_add_mod
Enum used with fluid_voice_add_mod() to specify how to handle duplicate modulators.
Definition: voice.h:43
FLUIDSYNTH_API void fluid_synth_set_reverb_on(fluid_synth_t *synth, int on)
Enable or disable reverb effect.
Definition: fluid_synth.c:5237
FLUIDSYNTH_API void fluid_midi_router_rule_set_param1(fluid_midi_router_rule_t *rule, int min, int max, float mul, int add)
Set the first parameter portion of a rule.
Definition: fluid_midi_router.c:469
@ FLUID_VOICE_ADD
Add (sum) modulator amounts.
Definition: voice.h:45
@ GEN_MODENVTOPITCH
Modulation envelope to pitch.
Definition: gen.h:45
FLUIDSYNTH_API char * fluid_settings_option_concat(fluid_settings_t *settings, const char *name, const char *separator)
Concatenate options for a string setting together with a separator between.
Definition: fluid_settings.c:1773
FLUIDSYNTH_API int fluid_settings_getstr_default(fluid_settings_t *settings, const char *name, char **def)
Get the default value of a string setting.
Definition: fluid_settings.c:1210
FLUIDSYNTH_API void delete_fluid_preset(fluid_preset_t *preset)
Destroys a SoundFont preset instance created with new_fluid_preset().
Definition: fluid_sfont.c:474
#define FLUIDSYNTH_VERSION
String constant of libfluidsynth version.
Definition: version.h:34
FLUIDSYNTH_API int fluid_synth_reset_basic_channel(fluid_synth_t *synth, int chan)
Disables and unassigns all channels from a basic channel group.
Definition: fluid_synth.c:7029
@ GEN_RESERVED2
Reserved.
Definition: gen.h:87
@ FLUID_NO_TYPE
Undefined type.
Definition: settings.h:93
@ FLUID_SYNTH_OVERWRITE
Overwrite any existing matching modulator.
Definition: synth.h:246
FLUIDSYNTH_API int fluid_ladspa_effect_port_exists(fluid_ladspa_fx_t *fx, const char *effect_name, const char *port_name)
Check if the named port exists on an effect.
Definition: fluid_ladspa.c:755
FLUIDSYNTH_API int fluid_synth_set_reverb_roomsize(fluid_synth_t *synth, double roomsize)
Set reverb roomsize.
Definition: fluid_synth.c:5295
@ GEN_KEYTOVOLENVHOLD
Key to volume envelope hold.
Definition: gen.h:77
FLUIDSYNTH_API int fluid_midi_event_set_program(fluid_midi_event_t *evt, int val)
Set the program field of a MIDI event structure.
Definition: fluid_midi.c:1264
FLUIDSYNTH_API int fluid_player_seek(fluid_player_t *player, int ticks)
Seek in the currently playing file.
Definition: fluid_midi.c:2183
@ FLUID_MIDI_ROUTER_RULE_CC
MIDI controller rule.
Definition: midi.h:70
FLUIDSYNTH_API int fluid_synth_set_reverb_level(fluid_synth_t *synth, double level)
Set reverb level.
Definition: fluid_synth.c:5322
void(* fluid_preset_free_t)(fluid_preset_t *preset)
Method to free a virtual SoundFont preset.
Definition: sfont.h:279
FLUIDSYNTH_API void delete_fluid_sfloader(fluid_sfloader_t *loader)
Frees a SoundFont loader created with new_fluid_sfloader().
Definition: fluid_sfont.c:121
FLUID_DEPRECATED FLUIDSYNTH_API fluid_sequencer_t * new_fluid_sequencer(void)
Create a new sequencer object which uses the system timer.
Definition: fluid_seq.c:94
@ GEN_MODENVHOLD
Modulation envelope hold.
Definition: gen.h:65
FLUIDSYNTH_API int fluid_synth_pitch_wheel_sens(fluid_synth_t *synth, int chan, int val)
Set MIDI pitch wheel sensitivity on a MIDI channel.
Definition: fluid_synth.c:2677
FLUIDSYNTH_API int fluid_synth_noteoff(fluid_synth_t *synth, int chan, int key)
Sends a note-off event to a FluidSynth object.
Definition: fluid_synth.c:1317
FLUIDSYNTH_API void fluid_voice_gen_incr(fluid_voice_t *voice, int gen, float val)
Offset the value of a generator.
Definition: fluid_voice.c:414
@ FLUID_MIDI_ROUTER_RULE_PROG_CHANGE
MIDI program change rule.
Definition: midi.h:71
@ GEN_EXCLUSIVECLASS
Exclusive class number.
Definition: gen.h:95
@ GEN_ENDADDRCOARSEOFS
Sample end address coarse offset (X 32768)
Definition: gen.h:50
FLUIDSYNTH_API int fluid_sample_set_pitch(fluid_sample_t *sample, int root_key, int fine_tune)
Set the pitch of a sample.
Definition: fluid_sfont.c:685
FLUIDSYNTH_API void delete_fluid_midi_event(fluid_midi_event_t *event)
Delete MIDI event structure.
Definition: fluid_midi.c:1081
FLUIDSYNTH_API int fluid_synth_all_sounds_off(fluid_synth_t *synth, int chan)
Immediately stop all voices on the given MIDI channel (skips release phase).
Definition: fluid_synth.c:2355
FLUIDSYNTH_API int fluid_settings_str_equal(fluid_settings_t *settings, const char *name, const char *value)
Test a string setting for some value.
Definition: fluid_settings.c:1161
FLUIDSYNTH_API int fluid_synth_set_chorus_nr(fluid_synth_t *synth, int nr)
Set the chorus voice count.
Definition: fluid_synth.c:5492
int(* handle_midi_event_func_t)(void *data, fluid_midi_event_t *event)
Generic callback function for MIDI events.
Definition: midi.h:92
FLUIDSYNTH_API int fluid_synth_count_effects_channels(fluid_synth_t *synth)
Get the total number of allocated effects channels.
Definition: fluid_synth.c:5806
@ FLUID_IIR_Q_ZERO_OFF
If this flag the filter is switched off if Q == 0 (prior to any transformation)
Definition: synth.h:304
@ FLUID_CHORUS_MOD_SINE
Sine wave chorus modulation.
Definition: synth.h:148
FLUIDSYNTH_API fluid_mod_t * new_fluid_mod(void)
Create a new uninitialized modulator structure.
Definition: fluid_mod.c:472
@ GEN_MODLFODELAY
Modulation LFO delay.
Definition: gen.h:59
FLUID_DEPRECATED FLUIDSYNTH_API const char * fluid_synth_error(fluid_synth_t *synth)
Get a textual representation of the last error.
Definition: fluid_synth.c:1215
@ FLUID_WARN
Warning.
Definition: log.h:59
@ FLUID_PLAYER_PLAYING
Player is currently playing.
Definition: midi.h:130
@ GEN_VOLENVDECAY
Volume envelope decay.
Definition: gen.h:74
FLUIDSYNTH_API int fluid_midi_dump_postrouter(void *data, fluid_midi_event_t *event)
MIDI event callback function to display event information to stdout.
Definition: fluid_midi_router.c:875
void(* fluid_sfloader_free_t)(fluid_sfloader_t *loader)
The free method should free the memory allocated for a fluid_sfloader_t instance in addition to any p...
Definition: sfont.h:106
FLUIDSYNTH_API fluid_sfloader_t * new_fluid_sfloader(fluid_sfloader_load_t load, fluid_sfloader_free_t free)
Creates a new SoundFont loader.
Definition: fluid_sfont.c:87
FLUIDSYNTH_API int fluid_synth_set_interp_method(fluid_synth_t *synth, int chan, int interp_method)
Set synthesis interpolation method on one or all MIDI channels.
Definition: fluid_synth.c:5721
FLUIDSYNTH_API void delete_fluid_shell(fluid_shell_t *shell)
Delete a FluidSynth command shell.
Definition: fluid_cmd.c:480
@ FLUID_SEQ_SYSTEMRESET
System reset event.
Definition: event.h:61
FLUIDSYNTH_API int fluid_player_set_midi_tempo(fluid_player_t *player, int tempo)
Set the tempo of a MIDI player.
Definition: fluid_midi.c:2236
FLUIDSYNTH_API int fluid_synth_set_reverb(fluid_synth_t *synth, double roomsize, double damping, double width, double level)
Set reverb parameters.
Definition: fluid_synth.c:5284
FLUIDSYNTH_API int fluid_ladspa_is_active(fluid_ladspa_fx_t *fx)
Check if the LADSPA engine is currently used to render audio.
Definition: fluid_ladspa.c:368
FLUIDSYNTH_API size_t fluid_sample_sizeof(void)
Returns the size of the fluid_sample_t structure.
Definition: fluid_sfont.c:532
@ FLUID_MOD_LINEAR
Linear mapping function.
Definition: mod.h:47
struct _fluid_sequencer_t fluid_sequencer_t
Sequencer instance.
Definition: types.h:55
@ FLUID_MOD_POSITIVE
Mapping function is positive.
Definition: mod.h:43
FLUIDSYNTH_API int fluid_server_join(fluid_server_t *server)
Join a shell server thread (wait until it quits).
Definition: fluid_cmd.c:4475
FLUIDSYNTH_API int fluid_synth_get_chorus_nr(fluid_synth_t *synth)
Get chorus voice number (delay line count) value.
Definition: fluid_synth.c:5592
@ FLUID_SEQ_SUSTAIN
Sustain controller event.
Definition: event.h:51
struct _fluid_player_t fluid_player_t
MIDI player instance.
Definition: types.h:46
@ GEN_ENDLOOPADDRCOARSEOFS
Sample end loop address coarse offset (X 32768)
Definition: gen.h:88
FLUIDSYNTH_API fluid_ladspa_fx_t * fluid_synth_get_ladspa_fx(fluid_synth_t *synth)
Return the LADSPA effects instance used by FluidSynth.
Definition: fluid_synth.c:6713
FLUIDSYNTH_API int fluid_synth_get_internal_bufsize(fluid_synth_t *synth)
Get the internal synthesis buffer size value.
Definition: fluid_synth.c:3396
FLUIDSYNTH_API int fluid_synth_stop(fluid_synth_t *synth, unsigned int id)
Stop notes for a given note event voice ID.
Definition: fluid_synth.c:6555
fluid_channel_mode_flags
Interface to poly/mono mode variables.
Definition: synth.h:323
FLUIDSYNTH_API void fluid_event_reverb_send(fluid_event_t *evt, int channel, short val)
Set a sequencer event to be a reverb send event.
Definition: fluid_event.c:426
@ FLUID_IIR_DISABLED
Custom IIR filter is not operating.
Definition: synth.h:292
FLUIDSYNTH_API void delete_fluid_mod(fluid_mod_t *mod)
Free a modulator structure.
Definition: fluid_mod.c:490
FLUIDSYNTH_API int fluid_synth_sfont_select(fluid_synth_t *synth, int chan, int sfont_id)
Set SoundFont ID on a MIDI channel.
Definition: fluid_synth.c:2966
FLUIDSYNTH_API int fluid_synth_set_portamento_mode(fluid_synth_t *synth, int chan, int portamentomode)
API portamento mode.
Definition: fluid_synth.c:6904
@ GEN_OVERRIDEROOTKEY
Sample root note override.
Definition: gen.h:96
@ FLUID_CHANNEL_MODE_OMNION_POLY
corresponds to MIDI mode 0
Definition: synth.h:340
@ FLUID_SEQ_MODULATION
Modulation controller event.
Definition: event.h:50
@ FLUID_INTERP_HIGHEST
Highest interpolation method.
Definition: synth.h:201
@ FLUID_IIR_NO_GAIN_AMP
The Soundfont spec requires to correct the gain of the filter depending on the filter's Q.
Definition: synth.h:305
FLUIDSYNTH_API fluid_event_t * new_fluid_event(void)
Create a new sequencer event structure.
Definition: fluid_event.c:57
int(* fluid_sfloader_callback_read_t)(void *buf, int count, void *handle)
Reads count bytes to the specified buffer buf.
Definition: sfont.h:127
FLUIDSYNTH_API int fluid_midi_event_set_velocity(fluid_midi_event_t *evt, int vel)
Set the velocity field of a MIDI event structure.
Definition: fluid_midi.c:1192
struct _fluid_file_callbacks_t fluid_file_callbacks_t
Callback struct to perform custom file loading of soundfonts.
Definition: types.h:60
FLUIDSYNTH_API int fluid_voice_is_sustained(const fluid_voice_t *voice)
Check if a voice keeps playing after it has received a noteoff due to being held by sustain.
Definition: fluid_voice.c:1603
@ FLUID_MOD_PITCHWHEELSENS
Pitch wheel sensitivity.
Definition: mod.h:69
FLUIDSYNTH_API int fluid_midi_router_handle_midi_event(void *data, fluid_midi_event_t *event)
Handle a MIDI event through a MIDI router instance.
Definition: fluid_midi_router.c:540
FLUIDSYNTH_API void fluid_sequencer_unregister_client(fluid_sequencer_t *seq, fluid_seq_id_t id)
Unregister a previously registered client.
Definition: fluid_seq.c:243
FLUIDSYNTH_API int fluid_settings_getnum(fluid_settings_t *settings, const char *name, double *val)
Get the numeric value of a named setting.
Definition: fluid_settings.c:1397
FLUIDSYNTH_API void fluid_event_noteoff(fluid_event_t *evt, int channel, short key)
Set a sequencer event to be a note off event.
Definition: fluid_event.c:155
fluid_seq_event_type
Sequencer event type enumeration.
Definition: event.h:39
@ GEN_MODENVRELEASE
Modulation envelope release.
Definition: gen.h:68
FLUIDSYNTH_API int fluid_synth_get_basic_channel(fluid_synth_t *synth, int chan, int *basic_chan_out, int *mode_chan_out, int *basic_val_out)
Returns poly mono mode information of any MIDI channel.
Definition: fluid_synth.c:7258
fluid_basic_channel_modes
Indicates the mode a basic channel is set to.
Definition: synth.h:338
fluid_midi_channel_type
The midi channel type used by fluid_synth_set_channel_type()
Definition: synth.h:91
@ GEN_KEYTOMODENVHOLD
Key to modulation envelope hold.
Definition: gen.h:69
FLUIDSYNTH_API int fluid_ladspa_deactivate(fluid_ladspa_fx_t *fx)
Deactivate a LADSPA fx instance and all configured effects.
Definition: fluid_ladspa.c:432
@ FLUID_SEQ_PITCHBEND
Pitch bend message.
Definition: event.h:48
@ FLUID_MOD_NEGATIVE
Mapping function is negative.
Definition: mod.h:44
@ FLUID_IIR_HIGHPASS
Custom IIR filter is operating as high-pass filter.
Definition: synth.h:294
@ GEN_UNUSED4
Unused.
Definition: gen.h:58
FLUIDSYNTH_API short fluid_event_get_control(fluid_event_t *evt)
Get the MIDI control number field from a sequencer event structure.
Definition: fluid_event.c:639
FLUIDSYNTH_API int fluid_ladspa_check(fluid_ladspa_fx_t *fx, char *err, int err_size)
Do a sanity check for problems in the LADSPA setup.
Definition: fluid_ladspa.c:1020
@ FLUID_CHANNEL_POLY_OFF
if flag is set, the basic channel is in mono on state, if not set poly is on
Definition: synth.h:324
FLUIDSYNTH_API void fluid_version(int *major, int *minor, int *micro)
Get FluidSynth runtime version.
Definition: fluid_synth.c:253
FLUIDSYNTH_API int fluid_settings_dupstr(fluid_settings_t *settings, const char *name, char **str)
Duplicate the value of a string setting.
Definition: fluid_settings.c:1092
FLUIDSYNTH_API int fluid_midi_router_add_rule(fluid_midi_router_t *router, fluid_midi_router_rule_t *rule, int type)
Add a rule to a MIDI router.
Definition: fluid_midi_router.c:325
FLUIDSYNTH_API void fluid_mod_set_amount(fluid_mod_t *mod, double amount)
Set the scale amount of a modulator.
Definition: fluid_mod.c:89
FLUIDSYNTH_API int fluid_synth_handle_midi_event(void *data, fluid_midi_event_t *event)
Handle MIDI event from MIDI router, used as a callback function.
Definition: fluid_synth.c:6445
FLUIDSYNTH_API void fluid_mod_set_source2(fluid_mod_t *mod, int src, int flags)
Set a modulator's secondary source controller and flags.
Definition: fluid_mod.c:66
FLUIDSYNTH_API int fluid_ladspa_add_effect(fluid_ladspa_fx_t *fx, const char *effect_name, const char *lib_name, const char *plugin_name)
Create an effect, i.e.
Definition: fluid_ladspa.c:873
FLUIDSYNTH_API int fluid_midi_event_get_type(fluid_midi_event_t *evt)
Get the event type field of a MIDI event structure.
Definition: fluid_midi.c:1108
FLUIDSYNTH_API int fluid_synth_program_reset(fluid_synth_t *synth)
Resend a bank select and a program change for every channel and assign corresponding instruments.
Definition: fluid_synth.c:3410
@ FLUID_CHANNEL_MODE_OMNION_MONO
corresponds to MIDI mode 1
Definition: synth.h:341
@ GEN_VELRANGE
MIDI velocity range.
Definition: gen.h:82
FLUIDSYNTH_API fluid_server_t * new_fluid_server(fluid_settings_t *settings, fluid_synth_t *synth, fluid_midi_router_t *router)
Create a new TCP/IP command shell server.
Definition: fluid_cmd.c:4413
#define FLUIDSYNTH_VERSION_MINOR
libfluidsynth minor version integer constant.
Definition: version.h:36
@ GEN_STARTADDRCOARSEOFS
Sample start address coarse offset (X 32768)
Definition: gen.h:42
FLUIDSYNTH_API void * fluid_sfloader_get_data(fluid_sfloader_t *loader)
Obtain private data previously set with fluid_sfloader_set_data().
Definition: fluid_sfont.c:149
FLUIDSYNTH_API void delete_fluid_sequencer(fluid_sequencer_t *seq)
Free a sequencer object.
Definition: fluid_seq.c:150
@ GEN_KEYRANGE
MIDI note range.
Definition: gen.h:81
@ FLUID_MOD_KEY
MIDI note-on note number.
Definition: mod.h:65
@ FLUID_IIR_LOWPASS
Custom IIR filter is operating as low-pass filter.
Definition: synth.h:293
FLUIDSYNTH_API int fluid_voice_get_channel(const fluid_voice_t *voice)
If the voice is playing, gets the midi channel the voice is playing on.
Definition: fluid_voice.c:1625
@ GEN_KEYNUM
Fixed MIDI note number.
Definition: gen.h:84
FLUIDSYNTH_API void fluid_synth_get_voicelist(fluid_synth_t *synth, fluid_voice_t *buf[], int bufsize, int ID)
Get list of currently playing voices.
Definition: fluid_synth.c:5203
@ FLUID_INTERP_LINEAR
Straight-line interpolation: A bit slower, reasonable audio quality.
Definition: synth.h:196
FLUIDSYNTH_API int fluid_mod_get_flags1(const fluid_mod_t *mod)
Get primary source flags from a modulator.
Definition: fluid_mod.c:111
FLUIDSYNTH_API int fluid_synth_unset_program(fluid_synth_t *synth, int chan)
Set the preset of a MIDI channel to an unassigned state.
Definition: fluid_synth.c:2992
@ GEN_ENDLOOPADDROFS
Sample loop end address offset (-32767-32767)
Definition: gen.h:41
@ FLUID_MOD_KEYPRESSURE
MIDI key pressure.
Definition: mod.h:66
FLUIDSYNTH_API void fluid_event_bank_select(fluid_event_t *evt, int channel, short bank_num)
Set a sequencer event to be a bank select event.
Definition: fluid_event.c:211
FLUIDSYNTH_API fluid_seq_id_t fluid_sequencer_register_client(fluid_sequencer_t *seq, const char *name, fluid_event_callback_t callback, void *data)
Register a sequencer client.
Definition: fluid_seq.c:198
FLUIDSYNTH_API fluid_settings_t * new_fluid_settings(void)
Create a new settings object.
Definition: fluid_settings.c:261
FLUIDSYNTH_API int fluid_synth_get_cc(fluid_synth_t *synth, int chan, int ctrl, int *pval)
Get current MIDI controller value on a MIDI channel.
Definition: fluid_synth.c:1912
FLUIDSYNTH_API int fluid_player_get_current_tick(fluid_player_t *player)
Get the number of tempo ticks passed.
Definition: fluid_midi.c:2283
long(* fluid_sfloader_callback_tell_t)(void *handle)
Definition: sfont.h:146
@ FLUID_CHANNEL_MODE_OMNIOFF_POLY
corresponds to MIDI mode 2
Definition: synth.h:342
@ FLUID_MIDI_ROUTER_RULE_KEY_PRESSURE
MIDI key pressure rule.
Definition: midi.h:74
FLUIDSYNTH_API char * fluid_get_userconf(char *buf, int len)
Get the user specific FluidSynth command file name.
Definition: fluid_cmd.c:610
@ FLUID_NUM_TYPE
Numeric (double)
Definition: settings.h:94
struct _fluid_sfont_t fluid_sfont_t
SoundFont.
Definition: types.h:40
FLUIDSYNTH_API int fluid_preset_get_banknum(fluid_preset_t *preset)
Retrieves the presets bank number by executing the get_bank function provided on its creation.
Definition: fluid_sfont.c:439
FLUIDSYNTH_API void fluid_event_channel_pressure(fluid_event_t *evt, int channel, short val)
Set a sequencer event to be a channel-wide aftertouch event.
Definition: fluid_event.c:489
FLUIDSYNTH_API int fluid_settings_getint_range(fluid_settings_t *settings, const char *name, int *min, int *max)
Get the range of values of an integer setting.
Definition: fluid_settings.c:1616
FLUIDSYNTH_API int fluid_mod_has_dest(const fluid_mod_t *mod, int gen)
Check if the modulator has the given destination.
Definition: fluid_mod.c:727
@ GEN_SAMPLEMODE
Sample mode flags.
Definition: gen.h:92
FLUIDSYNTH_API double fluid_synth_get_chorus_speed(fluid_synth_t *synth)
Get chorus speed in Hz.
Definition: fluid_synth.c:5624
FLUIDSYNTH_API int fluid_synth_activate_tuning(fluid_synth_t *synth, int chan, int bank, int prog, int apply)
Activate a tuning scale on a MIDI channel.
Definition: fluid_synth.c:6154
FLUIDSYNTH_API void fluid_synth_set_gain(fluid_synth_t *synth, float gain)
Set synth output gain value.
Definition: fluid_synth.c:3209
struct _fluid_synth_t fluid_synth_t
Synthesizer instance.
Definition: types.h:37
FLUIDSYNTH_API int fluid_synth_tune_notes(fluid_synth_t *synth, int bank, int prog, int len, const int *keys, const double *pitch, int apply)
Set tuning values for one or more MIDI notes for an existing tuning.
Definition: fluid_synth.c:6091
@ GEN_VOLENVSUSTAIN
Volume envelope sustain.
Definition: gen.h:75
FLUIDSYNTH_API int fluid_mod_test_identity(const fluid_mod_t *mod1, const fluid_mod_t *mod2)
Checks if two modulators are identical in sources, flags and destination.
Definition: fluid_mod.c:687
FLUIDSYNTH_API void fluid_mod_set_source1(fluid_mod_t *mod, int src, int flags)
Set a modulator's primary source controller and flags.
Definition: fluid_mod.c:51
@ GEN_UNUSED2
Unused.
Definition: gen.h:56
FLUIDSYNTH_API int fluid_sfont_get_id(fluid_sfont_t *sfont)
Retrieve the unique ID of a SoundFont instance.
Definition: fluid_sfont.c:271
#define FLUID_HINT_BOUNDED_ABOVE
Hint FLUID_HINT_BOUNDED_ABOVE indicates that the UpperBound field of the FLUID_PortRangeHint should b...
Definition: settings.h:70
FLUIDSYNTH_API void fluid_event_set_source(fluid_event_t *evt, fluid_seq_id_t src)
Set source of a sequencer event.
Definition: fluid_event.c:104
FLUIDSYNTH_API int fluid_ladspa_buffer_exists(fluid_ladspa_fx_t *fx, const char *name)
Check if a named user buffer exists.
Definition: fluid_ladspa.c:724
FLUIDSYNTH_API int fluid_synth_get_portamento_mode(fluid_synth_t *synth, int chan, int *portamentomode)
Gets the portamento mode of a channel.
Definition: fluid_synth.c:6930
FLUIDSYNTH_API const char * fluid_sfont_get_name(fluid_sfont_t *sfont)
Retrieve the name of a SoundFont instance.
Definition: fluid_sfont.c:282
FLUIDSYNTH_API int fluid_synth_pitch_bend(fluid_synth_t *synth, int chan, int val)
Set the MIDI pitch bend controller value on a MIDI channel.
Definition: fluid_synth.c:2618
FLUIDSYNTH_API int fluid_synth_get_pitch_wheel_sens(fluid_synth_t *synth, int chan, int *pval)
Get MIDI pitch wheel sensitivity on a MIDI channel.
Definition: fluid_synth.c:2713
@ FLUID_SEQ_BANKSELECT
Bank select message.
Definition: event.h:45
@ FLUID_INTERP_4THORDER
Fourth-order interpolation, good quality, the default.
Definition: synth.h:197
FLUIDSYNTH_API fluid_sfont_t * new_fluid_sfont(fluid_sfont_get_name_t get_name, fluid_sfont_get_preset_t get_preset, fluid_sfont_iteration_start_t iter_start, fluid_sfont_iteration_next_t iter_next, fluid_sfont_free_t free)
Creates a new virtual SoundFont instance structure.
Definition: fluid_sfont.c:206
struct _fluid_file_renderer_t fluid_file_renderer_t
Audio file renderer instance.
Definition: types.h:45
FLUIDSYNTH_API fluid_sfont_t * fluid_synth_get_sfont_by_id(fluid_synth_t *synth, int id)
Get SoundFont by ID.
Definition: fluid_synth.c:5115
@ FLUID_SEQ_UNREGISTERING
Called when a sequencer client is being unregistered.
Definition: event.h:62
FLUIDSYNTH_API const char * fluid_preset_get_name(fluid_preset_t *preset)
Retrieves the presets name by executing the get_name function provided on its creation.
Definition: fluid_sfont.c:427
struct _fluid_event_t fluid_event_t
Sequencer event.
Definition: types.h:54
@ GEN_CUSTOM_BALANCE
Balance.
Definition: gen.h:115
FLUIDSYNTH_API int fluid_sequencer_get_use_system_timer(fluid_sequencer_t *seq)
Check if a sequencer is using the system timer or not.
Definition: fluid_seq.c:174
FLUIDSYNTH_API double fluid_synth_get_chorus_depth(fluid_synth_t *synth)
Get chorus depth.
Definition: fluid_synth.c:5640
@ GEN_PITCH
Initial Pitch.
Definition: gen.h:113
FLUIDSYNTH_API int fluid_midi_dump_prerouter(void *data, fluid_midi_event_t *event)
MIDI event callback function to display event information to stdout.
Definition: fluid_midi_router.c:822
FLUIDSYNTH_API int fluid_synth_sysex(fluid_synth_t *synth, const char *data, int len, char *response, int *response_len, int *handled, int dryrun)
Process a MIDI SYSEX (system exclusive) message.
Definition: fluid_synth.c:1962
FLUIDSYNTH_API int fluid_synth_deactivate_tuning(fluid_synth_t *synth, int chan, int apply)
Clear tuning scale on a MIDI channel (use default equal tempered scale).
Definition: fluid_synth.c:6236
@ FLUID_VOICE_DEFAULT
For default modulators only, no need to check for duplicates.
Definition: voice.h:46
@ FLUID_SAMPLETYPE_MONO
Value used for mono samples.
Definition: sfont.h:81
FLUIDSYNTH_API void fluid_free(void *ptr)
Convenience wrapper for free() that satisfies at least C90 requirements.
Definition: fluid_sys.c:230
int fluid_istream_t
Input stream descriptor.
Definition: types.h:62
FLUIDSYNTH_API void fluid_synth_start_voice(fluid_synth_t *synth, fluid_voice_t *voice)
Activate a voice previously allocated with fluid_synth_alloc_voice().
Definition: fluid_synth.c:4710
@ GEN_VOLENVHOLD
Volume envelope hold.
Definition: gen.h:73
@ FLUID_CHANNEL_PORTAMENTO_MODE_EACH_NOTE
Mode 0 - Portamento on each note (staccato or legato)
Definition: synth.h:375
@ FLUID_SEQ_NOTEOFF
Note off event.
Definition: event.h:42
@ FLUID_SEQ_PROGRAMCHANGE
Program change message.
Definition: event.h:46
const char *(* fluid_preset_get_name_t)(fluid_preset_t *preset)
Method to get a virtual SoundFont preset name.
Definition: sfont.h:232
FLUIDSYNTH_API void fluid_synth_tuning_iteration_start(fluid_synth_t *synth)
Start tuning iteration.
Definition: fluid_synth.c:6252
@ FLUID_PRESET_SELECTED
Preset selected notify.
Definition: sfont.h:69
FLUIDSYNTH_API int fluid_synth_get_chorus_type(fluid_synth_t *synth)
Get chorus waveform type.
Definition: fluid_synth.c:5656
@ CHANNEL_TYPE_MELODIC
Melodic midi channel.
Definition: synth.h:92
FLUIDSYNTH_API int fluid_synth_program_change(fluid_synth_t *synth, int chan, int program)
Send a program change event on a MIDI channel.
Definition: fluid_synth.c:2839
FLUIDSYNTH_API int fluid_sequencer_send_at(fluid_sequencer_t *seq, fluid_event_t *evt, unsigned int time, int absolute)
Schedule an event for sending at a later time.
Definition: fluid_seq.c:444
fluid_log_level
FluidSynth log levels.
Definition: log.h:56
FLUIDSYNTH_API int fluid_synth_sfreload(fluid_synth_t *synth, int id)
Reload a SoundFont.
Definition: fluid_synth.c:4926
FLUIDSYNTH_API int fluid_synth_sfload(fluid_synth_t *synth, const char *filename, int reset_presets)
Load a SoundFont file (filename is interpreted by SoundFont loaders).
Definition: fluid_synth.c:4770
FLUIDSYNTH_API fluid_audio_driver_t * new_fluid_audio_driver(fluid_settings_t *settings, fluid_synth_t *synth)
Create a new audio driver.
Definition: fluid_adriver.c:308
@ GEN_MODENVDECAY
Modulation envelope decay.
Definition: gen.h:66
FLUIDSYNTH_API void fluid_event_sustain(fluid_event_t *evt, int channel, short val)
Set a sequencer event to be a MIDI sustain event.
Definition: fluid_event.c:335
FLUIDSYNTH_API int fluid_player_get_status(fluid_player_t *player)
Get MIDI player status.
Definition: fluid_midi.c:2164
@ GEN_VOLENVRELEASE
Volume envelope release.
Definition: gen.h:76
short fluid_seq_id_t
Unique client IDs used by the sequencer and fluid_event_t, obtained by fluid_sequencer_register_clien...
Definition: types.h:65
@ FLUID_CHANNEL_OMNI_OFF
if flag is set, the basic channel is in omni off state, if not set omni is on
Definition: synth.h:325
FLUIDSYNTH_API void fluid_event_control_change(fluid_event_t *evt, int channel, short control, short val)
Set a sequencer event to be a MIDI control change event.
Definition: fluid_event.c:361
FLUIDSYNTH_API int fluid_player_get_bpm(fluid_player_t *player)
Get the tempo of a MIDI player in beats per minute.
Definition: fluid_midi.c:2321
#define FLUIDSYNTH_VERSION_MAJOR
libfluidsynth major version integer constant.
Definition: version.h:35
FLUIDSYNTH_API int fluid_file_set_encoding_quality(fluid_file_renderer_t *dev, double q)
Set vbr encoding quality (only available with libsndfile support)
Definition: fluid_filerenderer.c:329
FLUIDSYNTH_API int fluid_synth_set_chorus_level(fluid_synth_t *synth, double level)
Set the chorus level.
Definition: fluid_synth.c:5501
FLUIDSYNTH_API void delete_fluid_event(fluid_event_t *evt)
Delete a sequencer event structure.
Definition: fluid_event.c:79
@ GEN_UNUSED1
Unused.
Definition: gen.h:52
fluid_mod_flags
Flags defining the polarity, mapping function and type of a modulator source.
Definition: mod.h:42
@ FLUID_CHORUS_MOD_TRIANGLE
Triangle wave chorus modulation.
Definition: synth.h:149
@ GEN_INSTRUMENT
Instrument ID (shouldn't be set by user)
Definition: gen.h:79
@ GEN_VELOCITY
Fixed MIDI velocity value.
Definition: gen.h:85
FLUIDSYNTH_API fluid_sfloader_t * new_fluid_defsfloader(fluid_settings_t *settings)
Creates a default soundfont2 loader that can be used with fluid_synth_add_sfloader().
Definition: fluid_defsfont.c:59
@ FLUID_CHANNEL_PORTAMENTO_MODE_LEGATO_ONLY
Mode 1 - Portamento only on legato note.
Definition: synth.h:376
FLUIDSYNTH_API int fluid_midi_event_get_velocity(fluid_midi_event_t *evt)
Get the velocity field of a MIDI event structure.
Definition: fluid_midi.c:1180
FLUIDSYNTH_API float fluid_synth_get_gain(fluid_synth_t *synth)
Get synth output gain value.
Definition: fluid_synth.c:3248
int(* fluid_sfont_free_t)(fluid_sfont_t *sfont)
Method to free a virtual SoundFont bank.
Definition: sfont.h:205
FLUIDSYNTH_API int fluid_is_soundfont(const char *filename)
Check if a file is a SoundFont file.
Definition: fluid_sffile.c:341
@ FLUID_MOD_CONCAVE
Concave mapping function.
Definition: mod.h:48
@ FLUID_CHANNEL_BREATH_POLY
when channel is poly, this flag indicates that the default velocity to initial attenuation modulator ...
Definition: synth.h:331
FLUIDSYNTH_API int fluid_ladspa_activate(fluid_ladspa_fx_t *fx)
Activate the LADSPA fx instance and each configured effect.
Definition: fluid_ladspa.c:387
FLUIDSYNTH_API int fluid_synth_set_chorus(fluid_synth_t *synth, int nr, double level, double speed, double depth_ms, int type)
Set chorus parameters.
Definition: fluid_synth.c:5481
FLUID_DEPRECATED FLUIDSYNTH_API void fluid_synth_set_sample_rate(fluid_synth_t *synth, float sample_rate)
Set up an event to change the sample-rate of the synth during the next rendering call.
Definition: fluid_synth.c:3174
@ FLUID_MOD_VELOCITY
MIDI note-on velocity.
Definition: mod.h:64
FLUIDSYNTH_API double fluid_synth_get_reverb_damp(fluid_synth_t *synth)
Get reverb damping.
Definition: fluid_synth.c:5409
@ FLUID_SEQ_PAN
Stereo pan set event.
Definition: event.h:53
FLUIDSYNTH_API int fluid_midi_event_get_channel(fluid_midi_event_t *evt)
Get the channel field of a MIDI event structure.
Definition: fluid_midi.c:1132
FLUIDSYNTH_API fluid_cmd_handler_t * new_fluid_cmd_handler(fluid_synth_t *synth, fluid_midi_router_t *router)
Create a new command handler.
Definition: fluid_cmd.c:4147
FLUIDSYNTH_API int fluid_midi_event_get_pitch(fluid_midi_event_t *evt)
Get the pitch field of a MIDI event structure.
Definition: fluid_midi.c:1276
@ FLUID_STR_TYPE
String.
Definition: settings.h:96
FLUIDSYNTH_API void delete_fluid_midi_router(fluid_midi_router_t *handler)
Delete a MIDI router instance.
Definition: fluid_midi_router.c:132
fluid_sfont_t *(* fluid_sfloader_load_t)(fluid_sfloader_t *loader, const char *filename)
Method to load an instrument file (does not actually need to be a real file name, could be another ty...
Definition: sfont.h:97
FLUIDSYNTH_API fluid_sfont_t * fluid_synth_get_sfont_by_name(fluid_synth_t *synth, const char *name)
Get SoundFont by name.
Definition: fluid_synth.c:5147
FLUIDSYNTH_API unsigned int fluid_event_get_duration(fluid_event_t *evt)
Get the duration field from a sequencer event structure.
Definition: fluid_event.c:679
@ FLUID_SEQ_ALLSOUNDSOFF
All sounds off event.
Definition: event.h:43
FLUIDSYNTH_API int fluid_source(fluid_cmd_handler_t *handler, const char *filename)
Execute shell commands in a file.
Definition: fluid_cmd.c:571
FLUIDSYNTH_API fluid_audio_driver_t * new_fluid_audio_driver2(fluid_settings_t *settings, fluid_audio_func_t func, void *data)
Create a new audio driver.
Definition: fluid_adriver.c:351
FLUIDSYNTH_API int fluid_synth_set_breath_mode(fluid_synth_t *synth, int chan, int breathmode)
API breath mode.
Definition: fluid_synth.c:6957
FLUIDSYNTH_API int fluid_sfont_set_data(fluid_sfont_t *sfont, void *data)
Set private data to use with a SoundFont instance.
Definition: fluid_sfont.c:244
FLUIDSYNTH_API int fluid_settings_get_type(fluid_settings_t *settings, const char *name)
Get the type of the setting with the given name.
Definition: fluid_settings.c:836
FLUIDSYNTH_API void fluid_synth_add_sfloader(fluid_synth_t *synth, fluid_sfloader_t *loader)
Add a SoundFont loader to the synth.
Definition: fluid_synth.c:4743
@ GEN_VOLENVATTACK
Volume envelope attack.
Definition: gen.h:72
FLUIDSYNTH_API int fluid_player_play(fluid_player_t *player)
Activates play mode for a MIDI player if not already playing.
Definition: fluid_midi.c:2125
FLUIDSYNTH_API void fluid_mod_clone(fluid_mod_t *mod, const fluid_mod_t *src)
Clone the modulators destination, sources, flags and amount.
Definition: fluid_mod.c:32
struct _fluid_server_t fluid_server_t
TCP/IP shell server instance.
Definition: types.h:53
@ GEN_STARTADDROFS
Sample start address offset (0-32767)
Definition: gen.h:38
struct _fluid_midi_driver_t fluid_midi_driver_t
MIDI driver instance.
Definition: types.h:48
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.
Definition: fluid_synth.c:4556
FLUIDSYNTH_API fluid_file_renderer_t * new_fluid_file_renderer(fluid_synth_t *synth)
Create a new file renderer and open the file.
Definition: fluid_filerenderer.c:192
struct _fluid_midi_event_t fluid_midi_event_t
MIDI event.
Definition: types.h:47
FLUIDSYNTH_API int fluid_midi_event_get_program(fluid_midi_event_t *evt)
Get the program field of a MIDI event structure.
Definition: fluid_midi.c:1252
FLUIDSYNTH_API int fluid_midi_event_set_key(fluid_midi_event_t *evt, int key)
Set the key field of a MIDI event structure.
Definition: fluid_midi.c:1168
FLUIDSYNTH_API int fluid_mod_get_flags2(const fluid_mod_t *mod)
Get secondary source flags from a modulator.
Definition: fluid_mod.c:133
#define FLUID_HINT_TOGGLED
Hint FLUID_HINT_TOGGLED indicates that the data item should be considered a Boolean toggle.
Definition: settings.h:79
@ GEN_VOLENVDELAY
Volume envelope delay.
Definition: gen.h:71
FLUIDSYNTH_API int fluid_mod_get_dest(const fluid_mod_t *mod)
Get destination effect from a modulator.
Definition: fluid_mod.c:144
fluid_interp
Synthesis interpolation method.
Definition: synth.h:194
@ FLUID_MOD_BIPOLAR
Mapping function is bipolar.
Definition: mod.h:46
FLUIDSYNTH_API short fluid_event_get_value(fluid_event_t *evt)
Get the value field from a sequencer event structure.
Definition: fluid_event.c:655
FLUIDSYNTH_API int fluid_settings_getnum_range(fluid_settings_t *settings, const char *name, double *min, double *max)
Get the range of values of a numeric setting.
Definition: fluid_settings.c:1453
FLUIDSYNTH_API int fluid_synth_sfcount(fluid_synth_t *synth)
Count number of loaded SoundFont files.
Definition: fluid_synth.c:5068
FLUIDSYNTH_API int fluid_synth_set_custom_filter(fluid_synth_t *, int type, int flags)
Configure a general-purpose IIR biquad filter.
Definition: fluid_synth.c:6732
@ FLUID_SEQ_REVERBSEND
Reverb send set event.
Definition: event.h:55
const char *(* fluid_sfont_get_name_t)(fluid_sfont_t *sfont)
Method to return the name of a virtual SoundFont.
Definition: sfont.h:166
fluid_iir_filter_type
Specifies the type of filter to use for the custom IIR filter.
Definition: synth.h:291
FLUIDSYNTH_API fluid_seq_id_t fluid_event_get_source(fluid_event_t *evt)
Get the source sequencer client from a sequencer event structure.
Definition: fluid_event.c:588
FLUIDSYNTH_API int fluid_preset_set_data(fluid_preset_t *preset, void *data)
Set private data to use with a SoundFont preset instance.
Definition: fluid_sfont.c:399
struct _fluid_hashtable_t fluid_settings_t
Configuration settings instance.
Definition: types.h:36
void(* fluid_log_function_t)(int level, const char *message, void *data)
Log function handler callback type used by fluid_set_log_function().
Definition: log.h:73
FLUIDSYNTH_API void * fluid_sfont_get_data(fluid_sfont_t *sfont)
Retrieve the private data of a SoundFont instance.
Definition: fluid_sfont.c:258
struct _fluid_ladspa_fx_t fluid_ladspa_fx_t
LADSPA effects instance.
Definition: types.h:59
FLUIDSYNTH_API int fluid_synth_tuning_iteration_next(fluid_synth_t *synth, int *bank, int *prog)
Advance to next tuning.
Definition: fluid_synth.c:6268
FLUIDSYNTH_API short fluid_event_get_bank(fluid_event_t *evt)
Get the MIDI bank field from a sequencer event structure.
Definition: fluid_event.c:692
@ GEN_MODENVDELAY
Modulation envelope delay.
Definition: gen.h:63
FLUIDSYNTH_API int fluid_synth_activate_octave_tuning(fluid_synth_t *synth, int bank, int prog, const char *name, const double *pitch, int apply)
Activate an octave tuning on every octave in the MIDI note scale.
Definition: fluid_synth.c:6040
FLUIDSYNTH_API int fluid_synth_add_sfont(fluid_synth_t *synth, fluid_sfont_t *sfont)
Add a SoundFont.
Definition: fluid_synth.c:4998
@ FLUID_CHANNEL_MODE_MASK
Mask Poly and Omni bits of fluid_channel_mode_flags, usually only used internally.
Definition: synth.h:339
FLUIDSYNTH_API fluid_preset_t * fluid_sfont_get_preset(fluid_sfont_t *sfont, int bank, int prenum)
Retrieve the preset assigned the a SoundFont instance for the given bank and preset number.
Definition: fluid_sfont.c:295
FLUIDSYNTH_API int fluid_sequencer_count_clients(fluid_sequencer_t *seq)
Count a sequencers registered clients.
Definition: fluid_seq.c:294
fluid_synth_add_mod
Enum used with fluid_synth_add_default_mod() to specify how to handle duplicate modulators.
Definition: synth.h:245
FLUIDSYNTH_API void fluid_sequencer_send_now(fluid_sequencer_t *seq, fluid_event_t *evt)
Send an event immediately.
Definition: fluid_seq.c:397
FLUIDSYNTH_API void * fluid_preset_get_data(fluid_preset_t *preset)
Retrieve the private data of a SoundFont preset instance.
Definition: fluid_sfont.c:413
FLUIDSYNTH_API int fluid_ladspa_reset(fluid_ladspa_fx_t *fx)
Reset the LADSPA effects engine: Deactivate LADSPA if currently active, remove all effects,...
Definition: fluid_ladspa.c:477
FLUIDSYNTH_API void fluid_event_unregistering(fluid_event_t *evt)
Set a sequencer event to be an unregistering event.
Definition: fluid_event.c:476
FLUIDSYNTH_API int fluid_synth_add_default_mod(fluid_synth_t *synth, const fluid_mod_t *mod, int mode)
Adds the specified modulator mod as default modulator to the synth.
Definition: fluid_synth.c:1432
int(* fluid_preset_get_banknum_t)(fluid_preset_t *preset)
Method to get a virtual SoundFont preset MIDI bank number.
Definition: sfont.h:239
@ GEN_MODLFOTOVOL
Modulation LFO to volume.
Definition: gen.h:51
FLUIDSYNTH_API fluid_midi_driver_t * new_fluid_midi_driver(fluid_settings_t *settings, handle_midi_event_func_t handler, void *event_handler_data)
Create a new MIDI driver instance.
Definition: fluid_mdriver.c:144
FLUIDSYNTH_API int fluid_mod_get_source2(const fluid_mod_t *mod)
Get the secondary source value from a modulator.
Definition: fluid_mod.c:122
struct _fluid_preset_t fluid_preset_t
SoundFont preset.
Definition: types.h:41
@ GEN_MODLFOTOFILTERFC
Modulation LFO to filter cutoff.
Definition: gen.h:48
@ GEN_FINETUNE
Fine tuning.
Definition: gen.h:90
FLUIDSYNTH_API void fluid_settings_foreach(fluid_settings_t *settings, void *data, fluid_settings_foreach_t func)
Iterate the existing settings defined in a settings object, calling the provided callback function fo...
Definition: fluid_settings.c:1915
FLUIDSYNTH_API double fluid_sequencer_get_time_scale(fluid_sequencer_t *seq)
Get a sequencer's time scale.
Definition: fluid_seq.c:578
@ FLUID_MIDI_ROUTER_RULE_CHANNEL_PRESSURE
MIDI channel pressure rule.
Definition: midi.h:73
FLUIDSYNTH_API int fluid_audio_driver_register(const char **adrivers)
Registers audio drivers to use.
Definition: fluid_adriver.c:417
FLUIDSYNTH_API void fluid_event_modulation(fluid_event_t *evt, int channel, short val)
Set a sequencer event to be a modulation event.
Definition: fluid_event.c:310
FLUIDSYNTH_API fluid_istream_t fluid_get_stdin(void)
Get standard in stream handle.
Definition: fluid_sys.c:1222
FLUIDSYNTH_API int fluid_ladspa_effect_set_mix(fluid_ladspa_fx_t *fx, const char *name, int mix, float gain)
Set if the effect should replace everything in the output buffers (mix = 0, default) or add to the bu...
Definition: fluid_ladspa.c:615
@ GEN_RESERVED1
Reserved.
Definition: gen.h:80
@ FLUID_CHANNEL_BREATH_SYNC
when channel is mono, this flag indicates that the breath controller(MSB)triggers noteon/noteoff on t...
Definition: synth.h:333
@ FLUID_PRESET_UNSELECTED
Preset unselected notify.
Definition: sfont.h:70
FLUIDSYNTH_API char * fluid_get_sysconf(char *buf, int len)
Get the system FluidSynth command file name.
Definition: fluid_cmd.c:645
FLUIDSYNTH_API int fluid_synth_program_select(fluid_synth_t *synth, int chan, int sfont_id, int bank_num, int preset_num)
Select an instrument on a MIDI channel by SoundFont ID, bank and program numbers.
Definition: fluid_synth.c:3046
FLUIDSYNTH_API void fluid_event_set_dest(fluid_event_t *evt, fluid_seq_id_t dest)
Set destination of this sequencer event, i.e.
Definition: fluid_event.c:115
FLUIDSYNTH_API int fluid_midi_event_get_text(fluid_midi_event_t *evt, void **data, int *size)
Get the text of a MIDI event structure.
Definition: fluid_midi.c:1339
@ FLUID_SEQ_VOLUME
Volume set event.
Definition: event.h:54
@ FLUID_MOD_CC
MIDI CC controller (source will be a MIDI CC number)
Definition: mod.h:52
FLUIDSYNTH_API int fluid_mod_get_source1(const fluid_mod_t *mod)
Get the primary source value from a modulator.
Definition: fluid_mod.c:100
FLUIDSYNTH_API int fluid_synth_set_chorus_speed(fluid_synth_t *synth, double speed)
Set the chorus speed.
Definition: fluid_synth.c:5510
FLUIDSYNTH_API int fluid_synth_get_legato_mode(fluid_synth_t *synth, int chan, int *legatomode)
Gets the legato mode of a channel.
Definition: fluid_synth.c:6878
@ FLUID_SAMPLE_DONE
Sample no longer needed notify.
Definition: sfont.h:71
@ FLUID_MOD_SIN
Custom non-standard sinus mapping function.
Definition: mod.h:54
@ FLUID_SEQ_PROGRAMSELECT
Program select message.
Definition: event.h:47
@ GEN_FILTERFC
Filter cutoff.
Definition: gen.h:46
FLUIDSYNTH_API fluid_preset_t * fluid_sfont_iteration_next(fluid_sfont_t *sfont)
Virtual SoundFont preset iteration function.
Definition: fluid_sfont.c:321
FLUIDSYNTH_API fluid_preset_t * new_fluid_preset(fluid_sfont_t *parent_sfont, fluid_preset_get_name_t get_name, fluid_preset_get_banknum_t get_bank, fluid_preset_get_num_t get_num, fluid_preset_noteon_t noteon, fluid_preset_free_t free)
Create a virtual SoundFont preset instance.
Definition: fluid_sfont.c:356
@ FLUID_MOD_CONVEX
Convex mapping function.
Definition: mod.h:49
FLUIDSYNTH_API int fluid_synth_remove_sfont(fluid_synth_t *synth, fluid_sfont_t *sfont)
Remove a SoundFont from the SoundFont stack without deleting it.
Definition: fluid_synth.c:5033
FLUIDSYNTH_API unsigned int fluid_sequencer_get_tick(fluid_sequencer_t *seq)
Get the current tick of a sequencer.
Definition: fluid_seq.c:492
struct _fluid_shell_t fluid_shell_t
Command shell.
Definition: types.h:52
FLUIDSYNTH_API int fluid_synth_set_basic_channel(fluid_synth_t *synth, int chan, int mode, int val)
Sets a new basic channel group only.
Definition: fluid_synth.c:7150
fluid_channel_breath_flags
Indicates the breath mode a channel is set to.
Definition: synth.h:330
FLUIDSYNTH_API void fluid_default_log_function(int level, const char *message, void *data)
Default log function which prints to the stderr.
Definition: fluid_sys.c:131
struct _fluid_rampreset_t fluid_rampreset_t
RAM SoundFont preset.
Definition: types.h:57
struct _fluid_sfloader_t fluid_sfloader_t
SoundFont loader plugin.
Definition: types.h:39
FLUIDSYNTH_API int fluid_voice_is_playing(const fluid_voice_t *voice)
Check if a voice is producing sound.
Definition: fluid_voice.c:1578
@ FLUID_ERR
Serious error occurred.
Definition: log.h:58
FLUIDSYNTH_API int fluid_file_renderer_process_block(fluid_file_renderer_t *dev)
Write period_size samples to file.
Definition: fluid_filerenderer.c:385
FLUIDSYNTH_API void fluid_event_all_notes_off(fluid_event_t *evt, int channel)
Set a sequencer event to be a all notes off event.
Definition: fluid_event.c:198
FLUIDSYNTH_API int fluid_synth_set_reverb_width(fluid_synth_t *synth, double width)
Set reverb width.
Definition: fluid_synth.c:5313
FLUIDSYNTH_API void fluid_event_volume(fluid_event_t *evt, int channel, short val)
Set a sequencer event to be a volume event.
Definition: fluid_event.c:401
@ GEN_ENDADDROFS
Sample end address offset (-32767-0)
Definition: gen.h:39
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)
Synthesize a block of 16 bit audio samples to audio buffers.
Definition: fluid_synth.c:4140
FLUIDSYNTH_API int fluid_synth_set_channel_type(fluid_synth_t *synth, int chan, int type)
Set midi channel type.
Definition: fluid_synth.c:6697
#define FLUID_OK
Value that indicates success, used by most libfluidsynth functions.
Definition: misc.h:52
FLUIDSYNTH_API int fluid_synth_count_midi_channels(fluid_synth_t *synth)
Get the total count of MIDI channels.
Definition: fluid_synth.c:5756
FLUIDSYNTH_API fluid_seq_id_t fluid_sequencer_register_fluidsynth(fluid_sequencer_t *seq, fluid_synth_t *synth)
Registers a synthesizer as a destination client of the given sequencer.
Definition: fluid_seqbind.c:106
FLUIDSYNTH_API void fluid_event_noteon(fluid_event_t *evt, int channel, short key, short vel)
Set a sequencer event to be a note on event.
Definition: fluid_event.c:140
@ FLUID_CHANNEL_LEGATO_MODE_RETRIGGER
Mode 0 - Release previous note, start a new note.
Definition: synth.h:361
@ GEN_UNUSED3
Unused.
Definition: gen.h:57
struct _fluid_mod_t fluid_mod_t
SoundFont modulator.
Definition: types.h:43
FLUIDSYNTH_API char * fluid_version_str(void)
Get FluidSynth runtime version as a string.
Definition: fluid_synth.c:266
FLUIDSYNTH_API int fluid_midi_event_set_sysex(fluid_midi_event_t *evt, void *data, int size, int dynamic)
Assign sysex data to a MIDI event structure.
Definition: fluid_midi.c:1305
@ FLUID_SET_TYPE
Set of values.
Definition: settings.h:97
@ FLUID_SEQ_NOTEON
Note on event.
Definition: event.h:41
#define FLUID_FAILED
Value that indicates failure, used by most libfluidsynth functions.
Definition: misc.h:60
int fluid_ostream_t
Output stream descriptor.
Definition: types.h:63
#define FLUID_HINT_OPTIONLIST
Setting is a list of string options.
Definition: settings.h:81
@ FLUID_SAMPLETYPE_LINKED
Value used for linked sample, which is currently not supported.
Definition: sfont.h:84
FLUIDSYNTH_API int fluid_synth_set_gen(fluid_synth_t *synth, int chan, int param, float value)
Apply an offset to a SoundFont generator on a MIDI channel.
Definition: fluid_synth.c:6388
int(* fluid_audio_func_t)(void *data, int len, int nfx, float *fx[], int nout, float *out[])
Callback function type used with new_fluid_audio_driver2() to allow for custom user audio processing ...
Definition: audio.h:60
fluid_preset_t *(* fluid_sfont_get_preset_t)(fluid_sfont_t *sfont, int bank, int prenum)
Get a virtual SoundFont preset by bank and program numbers.
Definition: sfont.h:176
FLUIDSYNTH_API void fluid_event_chorus_send(fluid_event_t *evt, int channel, short val)
Set a sequencer event to be a chorus send event.
Definition: fluid_event.c:451
@ FLUID_SAMPLETYPE_RIGHT
Value used for right samples of a stereo pair.
Definition: sfont.h:82
@ FLUID_CHANNEL_LEGATO_MODE_MULTI_RETRIGGER
Mode 1 - On contiguous notes retrigger in attack section using current value, shape attack using curr...
Definition: synth.h:362
FLUIDSYNTH_API int fluid_settings_getint(fluid_settings_t *settings, const char *name, int *val)
Get an integer value setting.
Definition: fluid_settings.c:1582
FLUIDSYNTH_API int fluid_midi_event_get_value(fluid_midi_event_t *evt)
Get the value field from a MIDI event structure.
Definition: fluid_midi.c:1228
struct _fluid_midi_router_rule_t fluid_midi_router_rule_t
MIDI router rule.
Definition: types.h:50
FLUIDSYNTH_API int fluid_midi_event_get_lyrics(fluid_midi_event_t *evt, void **data, int *size)
Get the lyric of a MIDI event structure.
Definition: fluid_midi.c:1376
void(* fluid_event_callback_t)(unsigned int time, fluid_event_t *event, fluid_sequencer_t *seq, void *data)
Event callback prototype for destination clients.
Definition: seq.h:40
FLUIDSYNTH_API int fluid_synth_channel_pressure(fluid_synth_t *synth, int chan, int val)
Set the MIDI channel pressure controller value.
Definition: fluid_synth.c:2524
int(* fluid_preset_noteon_t)(fluid_preset_t *preset, fluid_synth_t *synth, int chan, int key, int vel)
Method to handle a noteon event (synthesize the instrument).
Definition: sfont.h:270
FLUIDSYNTH_API int fluid_synth_set_chorus_depth(fluid_synth_t *synth, double depth_ms)
Set the chorus depth.
Definition: fluid_synth.c:5519
FLUIDSYNTH_API double fluid_synth_get_cpu_load(fluid_synth_t *synth)
Get the synth CPU load value.
Definition: fluid_synth.c:5838
@ FLUID_INTERP_DEFAULT
Default interpolation method.
Definition: synth.h:200
@ FLUID_SEQ_ALLNOTESOFF
All notes off event.
Definition: event.h:44
FLUIDSYNTH_API int fluid_sfloader_set_data(fluid_sfloader_t *loader, void *data)
Specify private data to be used by fluid_sfloader_load_t.
Definition: fluid_sfont.c:135
@ FLUID_CHANNEL_PORTAMENTO_MODE_STACCATO_ONLY
Mode 2 - Portamento only on staccato note.
Definition: synth.h:377
FLUIDSYNTH_API int fluid_sequencer_add_midi_event_to_buffer(void *data, fluid_midi_event_t *event)
Transforms an incoming midi event (from a midi driver or midi router) to a sequencer event and adds i...
Definition: fluid_seqbind.c:316
FLUIDSYNTH_API int fluid_midi_event_set_control(fluid_midi_event_t *evt, int ctrl)
Set the control field of a MIDI event structure.
Definition: fluid_midi.c:1216
FLUIDSYNTH_API void fluid_voice_update_param(fluid_voice_t *voice, int gen)
Update all the synthesis parameters, which depend on generator gen.
Definition: fluid_voice.c:749
@ GEN_MODENVTOFILTERFC
Modulation envelope to filter cutoff.
Definition: gen.h:49
@ GEN_PAN
Stereo panning.
Definition: gen.h:55
fluid_iir_filter_flags
Specifies optional settings to use for the custom IIR filter.
Definition: synth.h:302
FLUIDSYNTH_API int fluid_sequencer_client_is_dest(fluid_sequencer_t *seq, fluid_seq_id_t id)
Check if a client is a destination client.
Definition: fluid_seq.c:368
@ GEN_CUSTOM_FILTERFC
Custom filter cutoff frequency.
Definition: gen.h:117
@ FLUID_MIDI_ROUTER_RULE_NOTE
MIDI note rule.
Definition: midi.h:69
@ GEN_MODLFOFREQ
Modulation LFO frequency.
Definition: gen.h:60
struct _fluid_hashtable_t fluid_cmd_hash_t
Command handler hash table.
Definition: types.h:51
FLUIDSYNTH_API void fluid_synth_set_chorus_on(fluid_synth_t *synth, int on)
Enable or disable chorus effect.
Definition: fluid_synth.c:5457
FLUIDSYNTH_API int fluid_synth_get_breath_mode(fluid_synth_t *synth, int chan, int *breathmode)
Gets the breath mode of a channel.
Definition: fluid_synth.c:6981
FLUIDSYNTH_API double fluid_synth_get_reverb_width(fluid_synth_t *synth)
Get reverb width.
Definition: fluid_synth.c:5441
FLUIDSYNTH_API void fluid_event_program_select(fluid_event_t *evt, int channel, unsigned int sfont_id, short bank_num, short preset_num)
Set a sequencer event to be a program select event.
Definition: fluid_event.c:241
#define FLUIDSYNTH_VERSION_MICRO
libfluidsynth micro version integer constant.
Definition: version.h:37
FLUIDSYNTH_API int fluid_sample_set_loop(fluid_sample_t *sample, unsigned int loop_start, unsigned int loop_end)
Set the loop of a sample.
Definition: fluid_sfont.c:667
@ FLUID_CHANNEL_MODE_OMNIOFF_MONO
corresponds to MIDI mode 3
Definition: synth.h:343
FLUIDSYNTH_API void delete_fluid_settings(fluid_settings_t *settings)
Delete the provided settings object.
Definition: fluid_settings.c:284
FLUIDSYNTH_API void delete_fluid_player(fluid_player_t *player)
Delete a MIDI player instance.
Definition: fluid_midi.c:1713
FLUIDSYNTH_API fluid_midi_router_rule_t * new_fluid_midi_router_rule(void)
Create a new MIDI router rule.
Definition: fluid_midi_router.c:367
@ GEN_KEYTOMODENVDECAY
Key to modulation envelope decay.
Definition: gen.h:70
FLUIDSYNTH_API int fluid_player_set_loop(fluid_player_t *player, int loop)
Enable looping of a MIDI player.
Definition: fluid_midi.c:2223
FLUIDSYNTH_API int fluid_synth_get_pitch_bend(fluid_synth_t *synth, int chan, int *ppitch_bend)
Get the MIDI pitch bend controller value on a MIDI channel.
Definition: fluid_synth.c:2654
FLUIDSYNTH_API void fluid_sfont_iteration_start(fluid_sfont_t *sfont)
Starts / re-starts virtual preset iteration in a SoundFont.
Definition: fluid_sfont.c:305
@ FLUID_VOICE_OVERWRITE
Overwrite any existing matching modulator.
Definition: voice.h:44
FLUIDSYNTH_API int fluid_synth_get_polyphony(fluid_synth_t *synth)
Get current synthesizer polyphony (max number of voices).
Definition: fluid_synth.c:3349
FLUIDSYNTH_API fluid_player_t * new_fluid_player(fluid_synth_t *synth)
Create a new MIDI player.
Definition: fluid_midi.c:1637
FLUIDSYNTH_API int fluid_voice_get_actual_key(const fluid_voice_t *voice)
If the voice is playing, gets the midi key the voice is actually playing at.
Definition: fluid_voice.c:1638
@ FLUID_MIDI_ROUTER_RULE_PITCH_BEND
MIDI pitch bend rule.
Definition: midi.h:72
FLUIDSYNTH_API int fluid_player_add(fluid_player_t *player, const char *midifile)
Add a MIDI file to a player queue.
Definition: fluid_midi.c:1831
FLUIDSYNTH_API int fluid_synth_set_polyphony(fluid_synth_t *synth, int polyphony)
Set synthesizer polyphony (max number of voices).
Definition: fluid_synth.c:3276
FLUIDSYNTH_API char * fluid_sequencer_get_client_name(fluid_sequencer_t *seq, fluid_seq_id_t id)
Get the name of a registered client.
Definition: fluid_seq.c:338
FLUIDSYNTH_API int fluid_midi_event_set_channel(fluid_midi_event_t *evt, int chan)
Set the channel field of a MIDI event structure.
Definition: fluid_midi.c:1144
FLUIDSYNTH_API int fluid_ladspa_add_buffer(fluid_ladspa_fx_t *fx, const char *name)
Create and add a new audio buffer.
Definition: fluid_ladspa.c:786
@ FLUID_SEQ_KEYPRESSURE
Polyphonic aftertouch event.
Definition: event.h:60
@ FLUID_SEQ_NOTE
Note event with duration.
Definition: event.h:40
FLUIDSYNTH_API double fluid_mod_get_amount(const fluid_mod_t *mod)
Get the scale amount from a modulator.
Definition: fluid_mod.c:155
FLUIDSYNTH_API fluid_sample_t * new_fluid_sample(void)
Create a new sample instance.
Definition: fluid_sfont.c:486
FLUIDSYNTH_API void fluid_sequencer_process(fluid_sequencer_t *seq, unsigned int msec)
Advance a sequencer.
Definition: fluid_seq.c:861
@ FLUID_SEQ_CHANNELPRESSURE
Channel aftertouch event.
Definition: event.h:59
FLUIDSYNTH_API int fluid_synth_tuning_dump(fluid_synth_t *synth, int bank, int prog, char *name, int len, double *pitch)
Get the entire note tuning for a given MIDI bank and program.
Definition: fluid_synth.c:6334
FLUIDSYNTH_API int fluid_synth_process(fluid_synth_t *synth, int len, int nfx, float *fx[], int nout, float *out[])
Synthesize floating point audio to stereo audio channels (implements the default interface fluid_audi...
Definition: fluid_synth.c:3765
FLUIDSYNTH_API short fluid_event_get_program(fluid_event_t *evt)
Get the MIDI program field from a sequencer event structure.
Definition: fluid_event.c:718
fluid_mod_src
General controller (if FLUID_MOD_GC in flags).
Definition: mod.h:62
FLUIDSYNTH_API int fluid_ladspa_host_port_exists(fluid_ladspa_fx_t *fx, const char *name)
Check if a named host port exists.
Definition: fluid_ladspa.c:693
@ FLUID_MOD_GC
General controller source type (fluid_mod_src)
Definition: mod.h:51
FLUIDSYNTH_API int fluid_settings_getint_default(fluid_settings_t *settings, const char *name, int *val)
Get the default value of an integer setting.
Definition: fluid_settings.c:1652
@ GEN_MODENVATTACK
Modulation envelope attack.
Definition: gen.h:64
@ GEN_VIBLFODELAY
Vibrato LFO delay.
Definition: gen.h:61
@ GEN_RESERVED3
Reserved.
Definition: gen.h:93
@ GEN_REVERBSEND
Reverb send amount.
Definition: gen.h:54
fluid_channel_portamento_mode
Interface to portamento mode.
Definition: synth.h:374
FLUIDSYNTH_API void fluid_event_pitch_wheelsens(fluid_event_t *evt, int channel, short val)
Set a sequencer event to be a pitch wheel sensitivity event.
Definition: fluid_event.c:296
@ GEN_MODLFOTOPITCH
Modulation LFO to pitch.
Definition: gen.h:43
FLUIDSYNTH_API int fluid_midi_event_set_lyrics(fluid_midi_event_t *evt, void *data, int size, int dynamic)
Assign lyric data to a MIDI event structure.
Definition: fluid_midi.c:1360
fluid_player_status
MIDI player status enum.
Definition: midi.h:128
@ FLUID_SAMPLETYPE_OGG_VORBIS
Flag used for Ogg Vorbis compressed samples (non-standard compliant extension) as found in the progra...
Definition: sfont.h:85
FLUIDSYNTH_API int fluid_player_get_midi_tempo(fluid_player_t *player)
Get the tempo of a MIDI player.
Definition: fluid_midi.c:2332
FLUIDSYNTH_API fluid_sfont_t * fluid_synth_get_sfont(fluid_synth_t *synth, unsigned int num)
Get SoundFont by index.
Definition: fluid_synth.c:5088
FLUIDSYNTH_API int fluid_settings_getnum_default(fluid_settings_t *settings, const char *name, double *val)
Get the default value of a named numeric (double) setting.
Definition: fluid_settings.c:1490
FLUIDSYNTH_API int fluid_event_get_pitch(fluid_event_t *evt)
Get the pitch field from a sequencer event structure.
Definition: fluid_event.c:704
FLUIDSYNTH_API int fluid_player_get_total_ticks(fluid_player_t *player)
Looks through all available MIDI tracks and gets the absolute tick of the very last event to play.
Definition: fluid_midi.c:2294
FLUIDSYNTH_API fluid_seq_id_t fluid_sequencer_get_client_id(fluid_sequencer_t *seq, int index)
Get a client ID from its index (order in which it was registered).
Definition: fluid_seq.c:310
FLUIDSYNTH_API int fluid_ladspa_effect_set_control(fluid_ladspa_fx_t *fx, const char *effect_name, const char *port_name, float val)
Set the value of an effect control port.
Definition: fluid_ladspa.c:820
FLUIDSYNTH_API int fluid_settings_setstr(fluid_settings_t *settings, const char *name, const char *str)
Set a string value for a named setting.
Definition: fluid_settings.c:960
void(* fluid_settings_foreach_t)(void *data, const char *name, int type)
Callback function type used with fluid_settings_foreach()
Definition: settings.h:178
FLUIDSYNTH_API void fluid_event_note(fluid_event_t *evt, int channel, short key, short vel, unsigned int duration)
Set a sequencer event to be a note duration event.
Definition: fluid_event.c:171
FLUIDSYNTH_API int fluid_synth_system_reset(fluid_synth_t *synth)
Send MIDI system reset command (big red 'panic' button), turns off notes, resets controllers and rest...
Definition: fluid_synth.c:2432
FLUIDSYNTH_API int fluid_player_stop(fluid_player_t *player)
Pauses the MIDI playback.
Definition: fluid_midi.c:2150
FLUIDSYNTH_API int fluid_synth_bank_select(fluid_synth_t *synth, int chan, int bank)
Set instrument bank number on a MIDI channel.
Definition: fluid_synth.c:2938
FLUIDSYNTH_API int fluid_synth_set_bank_offset(fluid_synth_t *synth, int sfont_id, int offset)
Offset the bank numbers of a loaded SoundFont, i.e. subtract offset from any bank number when assigni...
Definition: fluid_synth.c:6593
FLUIDSYNTH_API fluid_settings_t * fluid_synth_get_settings(fluid_synth_t *synth)
Get settings assigned to a synth.
Definition: fluid_synth.c:6367
fluid_gen_type
Generator (effect) numbers (Soundfont 2.01 specifications section 8.1.3)
Definition: gen.h:37
FLUIDSYNTH_API fluid_synth_t * new_fluid_synth(fluid_settings_t *settings)
Create new FluidSynth instance.
Definition: fluid_synth.c:611
@ FLUID_INTERP_NONE
No interpolation: Fastest, but questionable audio quality.
Definition: synth.h:195
@ GEN_STARTLOOPADDRCOARSEOFS
Sample start loop address coarse offset (X 32768)
Definition: gen.h:83
@ FLUID_MOD_PITCHWHEEL
Pitch wheel.
Definition: mod.h:68
@ FLUID_SEQ_CHORUSSEND
Chorus send set event.
Definition: event.h:56
FLUIDSYNTH_API int fluid_settings_is_realtime(fluid_settings_t *settings, const char *name)
Ask whether the setting is changeable in real-time.
Definition: fluid_settings.c:916
FLUIDSYNTH_API int fluid_voice_get_actual_velocity(const fluid_voice_t *voice)
If the voice is playing, gets the midi velocity the voice is actually playing at.
Definition: fluid_voice.c:1672
void(* fluid_sfont_iteration_start_t)(fluid_sfont_t *sfont)
Start virtual SoundFont preset iteration method.
Definition: sfont.h:184
FLUIDSYNTH_API int fluid_voice_is_on(const fluid_voice_t *voice)
Check if a voice is ON.
Definition: fluid_voice.c:1592
FLUIDSYNTH_API int fluid_event_get_channel(fluid_event_t *evt)
Get the MIDI channel field from a sequencer event structure.
Definition: fluid_event.c:608
@ FLUID_SAMPLETYPE_LEFT
Value used for left samples of a stereo pair.
Definition: sfont.h:83
Functions for manipulating the ladspa effects unit.
FLUIDSYNTH_API int fluid_player_set_playback_callback(fluid_player_t *player, handle_midi_event_func_t handler, void *handler_data)
Change the MIDI callback function.
Definition: fluid_midi.c:1816
FLUIDSYNTH_API void * fluid_event_get_data(fluid_event_t *evt)
Get the data field from a sequencer event structure.
Definition: fluid_event.c:667
@ FLUID_MOD_UNIPOLAR
Mapping function is unipolar.
Definition: mod.h:45
struct _fluid_voice_t fluid_voice_t
Synthesis voice instance.
Definition: types.h:38
@ FLUID_PANIC
The synth can't function correctly any more.
Definition: log.h:57
@ GEN_CHORUSSEND
Chorus send amount.
Definition: gen.h:53
FLUIDSYNTH_API int fluid_synth_sfunload(fluid_synth_t *synth, int id, int reset_presets)
Schedule a SoundFont for unloading.
Definition: fluid_synth.c:4837
@ GEN_ATTENUATION
Initial volume attenuation.
Definition: gen.h:86
FLUIDSYNTH_API int fluid_synth_start(fluid_synth_t *synth, unsigned int id, fluid_preset_t *preset, int audio_chan, int midi_chan, int key, int vel)
Create and start voices using an arbitrary preset and a MIDI note on event.
Definition: fluid_synth.c:6512
@ CHANNEL_TYPE_DRUM
Drum midi channel.
Definition: synth.h:93
fluid_midi_router_rule_type
MIDI router rule type.
Definition: midi.h:68
FLUIDSYNTH_API void fluid_event_key_pressure(fluid_event_t *evt, int channel, short key, short val)
Set a sequencer event to be a polyphonic aftertouch event.
Definition: fluid_event.c:516
FLUIDSYNTH_API int fluid_synth_key_pressure(fluid_synth_t *synth, int chan, int key, int val)
Set the MIDI polyphonic key pressure controller value.
Definition: fluid_synth.c:2562
struct _fluid_sample_t fluid_sample_t
SoundFont sample.
Definition: types.h:42
FLUIDSYNTH_API double fluid_synth_get_reverb_level(fluid_synth_t *synth)
Get reverb level.
Definition: fluid_synth.c:5425
fluid_preset_t *(* fluid_sfont_iteration_next_t)(fluid_sfont_t *sfont)
Virtual SoundFont preset iteration function.
Definition: sfont.h:194
fluid_chorus_mod
Chorus modulation waveform type.
Definition: synth.h:147
@ FLUID_SEQ_ANYCONTROLCHANGE
Any control change message (only internally used for remove_events)
Definition: event.h:58
fluid_sample_type
Indicates the type of a sample used by the _fluid_sample_t::sampletype field.
Definition: sfont.h:80
@ GEN_COARSETUNE
Coarse tuning.
Definition: gen.h:89
FLUIDSYNTH_API size_t fluid_mod_sizeof(void)
Returns the size of the fluid_mod_t structure.
Definition: fluid_mod.c:502
FLUIDSYNTH_API int fluid_synth_cc(fluid_synth_t *synth, int chan, int ctrl, int val)
Send a MIDI controller event on a MIDI channel.
Definition: fluid_synth.c:1560
struct _fluid_midi_router_t fluid_midi_router_t
MIDI router instance.
Definition: types.h:49
@ FLUID_SEQ_PITCHWHEELSENS
Pitch wheel sensitivity set message.
Definition: event.h:49
FLUIDSYNTH_API int fluid_synth_set_chorus_type(fluid_synth_t *synth, int type)
Set the chorus type.
Definition: fluid_synth.c:5528
FLUIDSYNTH_API int fluid_mod_has_source(const fluid_mod_t *mod, int cc, int ctrl)
Check if the modulator has the given source.
Definition: fluid_mod.c:705
FLUIDSYNTH_API void fluid_event_timer(fluid_event_t *evt, void *data)
Set a sequencer event to be a timer event.
Definition: fluid_event.c:126
FLUIDSYNTH_API void delete_fluid_file_renderer(fluid_file_renderer_t *dev)
Close file and destroy a file renderer object.
Definition: fluid_filerenderer.c:349
FLUIDSYNTH_API int delete_fluid_sfont(fluid_sfont_t *sfont)
Destroys a SoundFont instance created with new_fluid_sfont().
Definition: fluid_sfont.c:337
void *(* fluid_sfloader_callback_open_t)(const char *filename)
Opens the file or memory indicated by filename in binary read mode.
Definition: sfont.h:120
Generated for libfluidsynth by
1.8.20