Expand description
§Unsafe fluidlite bindings
This crate provides generated unsafe Rust bindings to fluidlite C library.
Probably this isn’t that you really need. See safe bindings.
Structs§
- _fluid_
audio_ driver_ t - _fluid_
event_ t - _fluid_
fileapi_ t - File callback structure to enable custom soundfont loading (e.g. from memory).
- _fluid_
gen_ t - SoundFont generator structure.
- _fluid_
hashtable_ t - _fluid_
midi_ driver_ t - _fluid_
midi_ event_ t - _fluid_
midi_ router_ rule_ t - _fluid_
midi_ router_ t - _fluid_
mod_ t - _fluid_
player_ t - _fluid_
preset_ t - _fluid_
rampreset_ t - _fluid_
ramsfont_ t - _fluid_
sample_ t - _fluid_
sequencer_ t - _fluid_
server_ t - _fluid_
sfloader_ t - _fluid_
sfont_ t - _fluid_
shell_ t - _fluid_
synth_ t - _fluid_
voice_ t
Constants§
- FLUID_
CHORUS_ DEFAULT_ DEPTH - FLUID_
CHORUS_ DEFAULT_ LEVEL - FLUID_
CHORUS_ DEFAULT_ N - FLUID_
CHORUS_ DEFAULT_ SPEED - FLUID_
FAILED - FLUID_
HINT_ BOUNDED_ ABOVE - FLUID_
HINT_ BOUNDED_ BELOW - FLUID_
HINT_ FILENAME - FLUID_
HINT_ INTEGER - FLUID_
HINT_ LOGARITHMIC - FLUID_
HINT_ OPTIONLIST - FLUID_
HINT_ SAMPLE_ RATE - FLUID_
HINT_ TOGGLED - FLUID_
NUM_ MOD - FLUID_
OK - FLUID_
PRESET_ SELECTED - FLUID_
PRESET_ UNSELECTED - FLUID_
REVERB_ DEFAULT_ DAMP - FLUID_
REVERB_ DEFAULT_ LEVEL - FLUID_
REVERB_ DEFAULT_ ROOMSIZE - FLUID_
REVERB_ DEFAULT_ WIDTH - FLUID_
SAMPLETYPE_ LEFT - FLUID_
SAMPLETYPE_ LINKED - FLUID_
SAMPLETYPE_ MONO - FLUID_
SAMPLETYPE_ OGG_ VORBIS - FLUID_
SAMPLETYPE_ OGG_ VORBIS_ UNPACKED - FLUID_
SAMPLETYPE_ RIGHT - FLUID_
SAMPLETYPE_ ROM - FLUID_
SAMPLE_ DONE - SEEK_
CUR - SEEK_
END - SEEK_
SET - fluid_
chorus_ mod_ FLUID_ CHORUS_ MOD_ SINE - fluid_
chorus_ mod_ FLUID_ CHORUS_ MOD_ TRIANGLE - fluid_
gen_ flags_ GEN_ ABS_ NRPN - < DOCME
- fluid_
gen_ flags_ GEN_ SET - < Generator value is set
- fluid_
gen_ flags_ GEN_ UNUSED - < Generator value is not set
- fluid_
gen_ type_ GEN_ ATTENUATION - < Initial volume attenuation
- fluid_
gen_ type_ GEN_ CHORUSSEND - < Chorus send amount
- fluid_
gen_ type_ GEN_ COARSETUNE - < Coarse tuning
- fluid_
gen_ type_ GEN_ ENDADDRCOARSEOFS - < Sample end address coarse offset (X 32768)
- fluid_
gen_ type_ GEN_ ENDADDROFS - < Sample end address offset (-32767-0)
- fluid_
gen_ type_ GEN_ ENDLOOPADDRCOARSEOFS - < Sample end loop address coarse offset (X 32768)
- fluid_
gen_ type_ GEN_ ENDLOOPADDROFS - < Sample loop end address offset (-32767-32767)
- fluid_
gen_ type_ GEN_ EXCLUSIVECLASS - < Exclusive class number
- fluid_
gen_ type_ GEN_ FILTERFC - < Filter cutoff
- fluid_
gen_ type_ GEN_ FILTERQ - < Filter Q
- fluid_
gen_ type_ GEN_ FINETUNE - < Fine tuning
- fluid_
gen_ type_ GEN_ INSTRUMENT - < Instrument ID (shouldn’t be set by user)
- fluid_
gen_ type_ GEN_ KEYNUM - < Fixed MIDI note number
- fluid_
gen_ type_ GEN_ KEYRANGE - < MIDI note range
- fluid_
gen_ type_ GEN_ KEYTOMODENVDECAY - < Key to modulation envelope decay
- fluid_
gen_ type_ GEN_ KEYTOMODENVHOLD - < Key to modulation envelope hold
- fluid_
gen_ type_ GEN_ KEYTOVOLENVDECAY - < Key to volume envelope decay
- fluid_
gen_ type_ GEN_ KEYTOVOLENVHOLD - < Key to volume envelope hold
- fluid_
gen_ type_ GEN_ LAST - < Value defines the count of generators (#fluid_gen_type)
- fluid_
gen_ type_ GEN_ MODENVATTACK - < Modulation envelope attack
- fluid_
gen_ type_ GEN_ MODENVDECAY - < Modulation envelope decay
- fluid_
gen_ type_ GEN_ MODENVDELAY - < Modulation envelope delay
- fluid_
gen_ type_ GEN_ MODENVHOLD - < Modulation envelope hold
- fluid_
gen_ type_ GEN_ MODENVRELEASE - < Modulation envelope release
- fluid_
gen_ type_ GEN_ MODENVSUSTAIN - < Modulation envelope sustain
- fluid_
gen_ type_ GEN_ MODENVTOFILTERFC - < Modulation envelope to filter cutoff
- fluid_
gen_ type_ GEN_ MODENVTOPITCH - < Modulation envelope to pitch
- fluid_
gen_ type_ GEN_ MODLFODELAY - < Modulation LFO delay
- fluid_
gen_ type_ GEN_ MODLFOFREQ - < Modulation LFO frequency
- fluid_
gen_ type_ GEN_ MODLFOTOFILTERFC - < Modulation LFO to filter cutoff
- fluid_
gen_ type_ GEN_ MODLFOTOPITCH - < Modulation LFO to pitch
- fluid_
gen_ type_ GEN_ MODLFOTOVOL - < Modulation LFO to volume
- fluid_
gen_ type_ GEN_ OVERRIDEROOTKEY - < Sample root note override
- fluid_
gen_ type_ GEN_ PAN - < Stereo panning
- fluid_
gen_ type_ GEN_ PITCH - < Pitch (NOTE: Not a real SoundFont generator)
- fluid_
gen_ type_ GEN_ RESERVE D1 - < Reserved
- fluid_
gen_ type_ GEN_ RESERVE D2 - < Reserved
- fluid_
gen_ type_ GEN_ RESERVE D3 - < Reserved
- fluid_
gen_ type_ GEN_ REVERBSEND - < Reverb send amount
- fluid_
gen_ type_ GEN_ SAMPLEID - < Sample ID (shouldn’t be set by user)
- fluid_
gen_ type_ GEN_ SAMPLEMODE - < Sample mode flags
- fluid_
gen_ type_ GEN_ SCALETUNE - < Scale tuning
- fluid_
gen_ type_ GEN_ STARTADDRCOARSEOFS - < Sample start address coarse offset (X 32768)
- fluid_
gen_ type_ GEN_ STARTADDROFS - < Sample start address offset (0-32767)
- fluid_
gen_ type_ GEN_ STARTLOOPADDRCOARSEOFS - < Sample start loop address coarse offset (X 32768)
- fluid_
gen_ type_ GEN_ STARTLOOPADDROFS - < Sample loop start address offset (-32767-32767)
- fluid_
gen_ type_ GEN_ UNUSE D1 - < Unused
- fluid_
gen_ type_ GEN_ UNUSE D2 - < Unused
- fluid_
gen_ type_ GEN_ UNUSE D3 - < Unused
- fluid_
gen_ type_ GEN_ UNUSE D4 - < Unused
- fluid_
gen_ type_ GEN_ VELOCITY - < Fixed MIDI velocity value
- fluid_
gen_ type_ GEN_ VELRANGE - < MIDI velocity range
- fluid_
gen_ type_ GEN_ VIBLFODELAY - < Vibrato LFO delay
- fluid_
gen_ type_ GEN_ VIBLFOFREQ - < Vibrato LFO frequency
- fluid_
gen_ type_ GEN_ VIBLFOTOPITCH - < Vibrato LFO to pitch
- fluid_
gen_ type_ GEN_ VOLENVATTACK - < Volume envelope attack
- fluid_
gen_ type_ GEN_ VOLENVDECAY - < Volume envelope decay
- fluid_
gen_ type_ GEN_ VOLENVDELAY - < Volume envelope delay
- fluid_
gen_ type_ GEN_ VOLENVHOLD - < Volume envelope hold
- fluid_
gen_ type_ GEN_ VOLENVRELEASE - < Volume envelope release
- fluid_
gen_ type_ GEN_ VOLENVSUSTAIN - < Volume envelope sustain
- fluid_
interp_ FLUID_ INTERP_ 4THORDER - fluid_
interp_ FLUID_ INTERP_ 7THORDER - fluid_
interp_ FLUID_ INTERP_ DEFAULT - fluid_
interp_ FLUID_ INTERP_ HIGHEST - fluid_
interp_ FLUID_ INTERP_ LINEAR - fluid_
interp_ FLUID_ INTERP_ NONE - fluid_
log_ level_ FLUID_ DBG - < Debugging messages
- fluid_
log_ level_ FLUID_ ERR - < Serious error occurred
- fluid_
log_ level_ FLUID_ INFO - < Verbose informational messages
- fluid_
log_ level_ FLUID_ PANIC - < The synth can’t function correctly any more
- fluid_
log_ level_ FLUID_ WARN - < Warning
- fluid_
log_ level_ LAST_ LOG_ LEVEL - fluid_
mod_ flags_ FLUID_ MOD_ BIPOLAR - fluid_
mod_ flags_ FLUID_ MOD_ CC - fluid_
mod_ flags_ FLUID_ MOD_ CONCAVE - fluid_
mod_ flags_ FLUID_ MOD_ CONVEX - fluid_
mod_ flags_ FLUID_ MOD_ GC - fluid_
mod_ flags_ FLUID_ MOD_ LINEAR - fluid_
mod_ flags_ FLUID_ MOD_ NEGATIVE - fluid_
mod_ flags_ FLUID_ MOD_ POSITIVE - fluid_
mod_ flags_ FLUID_ MOD_ SWITCH - fluid_
mod_ flags_ FLUID_ MOD_ UNIPOLAR - fluid_
mod_ src_ FLUID_ MOD_ CHANNELPRESSURE - fluid_
mod_ src_ FLUID_ MOD_ KEY - fluid_
mod_ src_ FLUID_ MOD_ KEYPRESSURE - fluid_
mod_ src_ FLUID_ MOD_ NONE - fluid_
mod_ src_ FLUID_ MOD_ PITCHWHEEL - fluid_
mod_ src_ FLUID_ MOD_ PITCHWHEELSENS - fluid_
mod_ src_ FLUID_ MOD_ VELOCITY - fluid_
types_ enum_ FLUID_ INT_ TYPE - fluid_
types_ enum_ FLUID_ NO_ TYPE - fluid_
types_ enum_ FLUID_ NUM_ TYPE - fluid_
types_ enum_ FLUID_ SET_ TYPE - fluid_
types_ enum_ FLUID_ STR_ TYPE - fluid_
voice_ add_ mod_ FLUID_ VOICE_ ADD - fluid_
voice_ add_ mod_ FLUID_ VOICE_ DEFAULT - fluid_
voice_ add_ mod_ FLUID_ VOICE_ OVERWRITE
Functions§
- delete_
fluid_ ⚠defsfloader - delete_
fluid_ ⚠ramsample - delete_
fluid_ ⚠settings - delete_
fluid_ ⚠synth - Deletes the synthesizer previously created with new_fluid_synth.
- fluid_
default_ ⚠log_ function - fluid_
gen_ ⚠set_ default_ values - fluid_
init_ ⚠default_ fileapi - fluid_
is_ ⚠midifile - fluid_is_midifile returns 1 if the specified filename is a MIDI file. It retuns 0 otherwise. The current implementation only checks for the “MThd” header in the file.
- fluid_
is_ ⚠soundfont - fluid_is_soundfont returns 1 if the specified filename is a soundfont. It retuns 0 otherwise. The current implementation only checks for the “RIFF” header in the file. It is useful only to distinguish between SoundFonts and MIDI files.
- fluid_
log ⚠ - fluid_
mod_ ⚠delete - fluid_
mod_ ⚠get_ amount - fluid_
mod_ ⚠get_ dest - fluid_
mod_ ⚠get_ flags1 - fluid_
mod_ ⚠get_ flags2 - fluid_
mod_ ⚠get_ source1 - fluid_
mod_ ⚠get_ source2 - fluid_
mod_ ⚠new - fluid_
mod_ ⚠set_ amount - fluid_
mod_ ⚠set_ dest - fluid_
mod_ ⚠set_ source1 - fluid_
mod_ ⚠set_ source2 - fluid_
mod_ ⚠test_ identity - fluid_
ramsfont_ ⚠add_ izone - fluid_
ramsfont_ ⚠create_ sfont - Creates a fluid_sfont_t wrapping an fluid_ramsfont_t
- fluid_
ramsfont_ ⚠izone_ set_ gen - fluid_
ramsfont_ ⚠izone_ set_ loop - fluid_
ramsfont_ ⚠remove_ izone - fluid_
ramsfont_ ⚠set_ name - ramsfont specific API
- fluid_
sample_ ⚠set_ name - fluid_
sample_ ⚠set_ sound_ data - fluid_
set_ ⚠default_ fileapi - fluid_
set_ ⚠log_ function - fluid_
settings_ ⚠get_ hints - fluid_
settings_ ⚠get_ type - fluid_
settings_ ⚠getint - returns 1 if the value exists, 0 otherwise
- fluid_
settings_ ⚠getint_ default - Get the default value of a string setting.
- fluid_
settings_ ⚠getint_ range - Get the range of values of a numeric settings.
- fluid_
settings_ ⚠getnum - returns 1 if the value exists, 0 otherwise
- fluid_
settings_ ⚠getnum_ default - Get the default value of a string setting.
- fluid_
settings_ ⚠getnum_ range - Get the range of values of a numeric settings.
- fluid_
settings_ ⚠getstr - Get the value of a string setting. If the value does not exists, ‘str’ is set to NULL. Otherwise, ‘str’ will point to the value. The application does not own the returned value. Instead, the application should make a copy of the value if it needs it later.
- fluid_
settings_ ⚠getstr_ default - Get the default value of a string setting.
- fluid_
settings_ ⚠is_ realtime - Returns whether the setting is changeable in real-time.
- fluid_
settings_ ⚠setint - returns 1 if the value has been set, 0 otherwise
- fluid_
settings_ ⚠setnum - returns 1 if the value has been set, 0 otherwise
- fluid_
settings_ ⚠setstr - returns 1 if the value has been set, 0 otherwise
- fluid_
settings_ ⚠str_ equal - Get the value of a numeric setting.
- fluid_
synth_ ⚠activate_ octave_ tuning - fluid_
synth_ ⚠activate_ tuning - fluid_
synth_ ⚠add_ sfloader - Add a SoundFont loader to the synthesizer. Note that SoundFont loader don’t necessarily load SoundFonts. They can load any type of wavetable data but export a SoundFont interface.
- fluid_
synth_ ⚠add_ sfont - Add a SoundFont. The SoundFont will be put on top of the SoundFont stack.
- fluid_
synth_ ⚠alloc_ voice - Allocate a synthesis voice. This function is called by a soundfont’s preset in response to a noteon event. The returned voice comes with default modulators installed (velocity-to-attenuation, velocity to filter, …) Note: A single noteon event may create any number of voices, when the preset is layered. Typically 1 (mono) or 2 (stereo).
- fluid_
synth_ ⚠bank_ select - Select a bank. Returns 0 if no error occurred, -1 otherwise.
- fluid_
synth_ ⚠cc - Send a control change message. Returns 0 if no error occurred, -1 otherwise.
- fluid_
synth_ ⚠channel_ pressure - fluid_
synth_ ⚠count_ audio_ channels - Returns the number of audio channels that the synthesizer uses internally
- fluid_
synth_ ⚠count_ audio_ groups - Returns the number of audio groups that the synthesizer uses internally. This is usually identical to audio_channels.
- fluid_
synth_ ⚠count_ effects_ channels - Returns the number of effects channels that the synthesizer uses internally
- fluid_
synth_ ⚠count_ midi_ channels - Returns the number of MIDI channels that the synthesizer uses internally
- fluid_
synth_ ⚠create_ key_ tuning - Create a new key-based tuning with given name, number, and pitches. The array ‘pitches’ should have length 128 and contains the pitch in cents of every key in cents. However, if ‘pitches’ is NULL, a new tuning is created with the well-tempered scale.
- fluid_
synth_ ⚠create_ octave_ tuning - Create a new octave-based tuning with given name, number, and pitches. The array ‘pitches’ should have length 12 and contains derivation in cents from the well-tempered scale. For example, if pitches[0] equals -33, then the C-keys will be tuned 33 cents below the well-tempered C.
- fluid_
synth_ ⚠error - Get a textual representation of the last error
- fluid_
synth_ ⚠get_ bank_ offset - Get the offset of the bank numbers in a SoundFont.
- fluid_
synth_ ⚠get_ cc - Get a control value. Returns 0 if no error occurred, -1 otherwise.
- fluid_
synth_ ⚠get_ channel_ preset - Get the preset of a channel
- fluid_
synth_ ⚠get_ chorus_ depth_ ms - fluid_
synth_ ⚠get_ chorus_ level - fluid_
synth_ ⚠get_ chorus_ nr - Query the current state of the chorus.
- fluid_
synth_ ⚠get_ chorus_ speed_ Hz - fluid_
synth_ ⚠get_ chorus_ type - fluid_
synth_ ⚠get_ gain - Get the master gain
- fluid_
synth_ ⚠get_ gen - Retreive the value of a generator. This function returns the value set by a previous call ‘fluid_synth_set_gen’ or by an NRPN message.
- fluid_
synth_ ⚠get_ internal_ bufsize - Get the internal buffer size. The internal buffer size if not the same thing as the buffer size specified in the settings. Internally, the synth always uses a specific buffer size independent of the buffer size used by the audio driver. The internal buffer size is normally 64 samples. The reason why it uses an internal buffer size is to allow audio drivers to call the synthesizer with a variable buffer length. The internal buffer size is useful for client who want to optimize their buffer sizes.
- fluid_
synth_ ⚠get_ pitch_ bend - Get the pitch bend value. Returns 0 if no error occurred, -1 otherwise.
- fluid_
synth_ ⚠get_ pitch_ wheel_ sens - Get the pitch wheel sensitivity. Returns 0 if no error occurred, -1 otherwise.
- fluid_
synth_ ⚠get_ polyphony - Get the polyphony limit (FluidSynth >= 1.0.6)
- fluid_
synth_ ⚠get_ program - Returns the program, bank, and SoundFont number of the preset on a given channel. Returns 0 if no error occurred, -1 otherwise.
- fluid_
synth_ ⚠get_ reverb_ damp - fluid_
synth_ ⚠get_ reverb_ level - fluid_
synth_ ⚠get_ reverb_ roomsize - Query the current state of the reverb.
- fluid_
synth_ ⚠get_ reverb_ width - fluid_
synth_ ⚠get_ settings - Get a reference to the settings of the synthesizer.
- fluid_
synth_ ⚠get_ sfont - Get a SoundFont. The SoundFont is specified by its index on the stack. The top of the stack has index zero.
- fluid_
synth_ ⚠get_ sfont_ by_ id - Get a SoundFont. The SoundFont is specified by its ID.
- fluid_
synth_ ⚠get_ voicelist - Write a list of all voices matching ID into buf, but not more than bufsize voices. If ID <0, return all voices.
- fluid_
synth_ ⚠key_ pressure - fluid_
synth_ ⚠noteoff - Send a noteoff message. Returns 0 if no error occurred, -1 otherwise.
- fluid_
synth_ ⚠noteon - Send a noteon message. Returns 0 if no error occurred, -1 otherwise.
- fluid_
synth_ ⚠nwrite_ float - fluid_
synth_ ⚠pitch_ bend - Send a pitch bend message. Returns 0 if no error occurred, -1 otherwise.
- fluid_
synth_ ⚠pitch_ wheel_ sens - Set the pitch wheel sensitivity. Returns 0 if no error occurred, -1 otherwise.
- fluid_
synth_ ⚠process - Generate a number of samples. This function implements the default interface defined in fluidsynth/audio.h. This function ignores the input buffers and expects at least two output buffer.
- fluid_
synth_ ⚠program_ change - Send a program change message. Returns 0 if no error occurred, -1 otherwise.
- fluid_
synth_ ⚠program_ reset - Send a bank select and a program change to every channel to reinitialize the preset of the channel. This function is useful mainly after a SoundFont has been loaded, unloaded or reloaded. . Returns 0 if no error occurred, -1 otherwise.
- fluid_
synth_ ⚠program_ select - Select a preset for a channel. The preset is specified by the SoundFont ID, the bank number, and the preset number. This allows any preset to be selected and circumvents preset masking due to previously loaded SoundFonts on the SoundFont stack.
- fluid_
synth_ ⚠remove_ sfont - Remove a SoundFont that was previously added using fluid_synth_add_sfont(). The synthesizer does not delete the SoundFont; this is responsability of the caller.
- fluid_
synth_ ⚠reset_ tuning - Set the tuning to the default well-tempered tuning on a channel.
- fluid_
synth_ ⚠select_ tuning - Select a tuning for a channel.
- fluid_
synth_ ⚠set_ bank_ offset - Offset the bank numbers in a SoundFont. Returns -1 if an error occured (out of memory or negative offset)
- fluid_
synth_ ⚠set_ chorus - Set up the chorus. It should be turned on with fluid_synth_set_chorus_on. If faulty parameters are given, all new settings are discarded. Keep in mind, that the needed CPU time is proportional to ‘nr’.
- fluid_
synth_ ⚠set_ chorus_ on - Turn on (1) / off (0) the built-in chorus unit
- fluid_
synth_ ⚠set_ gain - Set the master gain
- fluid_
synth_ ⚠set_ gen - Change the value of a generator. This function allows to control all synthesis parameters in real-time. The changes are additive, i.e. they add up to the existing parameter value. This function is similar to sending an NRPN message to the synthesizer. The function accepts a float as the value of the parameter. The parameter numbers and ranges are described in the SoundFont 2.01 specification, paragraph 8.1.3, page 48. See also ‘fluid_gen_type’.
- fluid_
synth_ ⚠set_ interp_ method - Set the interpolation method for one channel or all channels (chan = -1)
- fluid_
synth_ ⚠set_ polyphony - Set the polyphony limit (FluidSynth >= 1.0.6)
- fluid_
synth_ ⚠set_ preset_ callback - Set an optional function callback each time a preset has finished loading. This can be useful when calling fluid_synth_sfload asynchronously. The function must be formatted like this: void my_callback_function(int bank, int num, char* name)
- fluid_
synth_ ⚠set_ reverb - Set the parameters for the built-in reverb unit
- fluid_
synth_ ⚠set_ reverb_ on - Turn on (1) / off (0) the built-in reverb unit
- fluid_
synth_ ⚠set_ sample_ rate - fluid_
synth_ ⚠sfcount - Count the number of loaded SoundFonts.
- fluid_
synth_ ⚠sfload - Loads a SoundFont file and creates a new SoundFont. The newly loaded SoundFont will be put on top of the SoundFont stack. Presets are searched starting from the SoundFont on the top of the stack, working the way down the stack until a preset is found.
- fluid_
synth_ ⚠sfont_ select - Select a sfont. Returns 0 if no error occurred, -1 otherwise.
- fluid_
synth_ ⚠sfreload - Reload a SoundFont. The reloaded SoundFont retains its ID and index on the stack.
- fluid_
synth_ ⚠sfunload - Removes a SoundFont from the stack and deallocates it.
- fluid_
synth_ ⚠start - Create and start voices using a preset. The id passed as argument will be used as the voice group id.
- fluid_
synth_ ⚠start_ voice - Start a synthesis voice. This function is called by a soundfont’s preset in response to a noteon event after the voice has been allocated with fluid_synth_alloc_voice() and initialized. Exclusive classes are processed here.
- fluid_
synth_ ⚠stop - Stop the voices in the voice group defined by id.
- fluid_
synth_ ⚠sysex - fluid_
synth_ ⚠system_ reset - Send a reset. A reset turns all the notes off and resets the controller values.
- fluid_
synth_ ⚠tune_ notes - Request a note tuning changes. Both they ‘keys’ and ‘pitches’ arrays should be of length ‘num_pitches’. If ‘apply’ is non-zero, the changes should be applied in real-time, i.e. sounding notes will have their pitch updated. ‘APPLY’ IS CURRENTLY IGNORED. The changes will be available for newly triggered notes only.
- fluid_
synth_ ⚠tuning_ dump - Dump the data of a tuning. This functions stores the name and pitch values of a tuning in the pointers given as arguments. Both name and pitch can be NULL is the data is not needed.
- fluid_
synth_ ⚠tuning_ iteration_ next - Get the next tuning in the iteration. This functions stores the bank and program number of the next tuning in the pointers given as arguments.
- fluid_
synth_ ⚠tuning_ iteration_ start - Start the iteration throught the list of available tunings.
- fluid_
synth_ ⚠write_ float - Generate a number of samples. This function expects two floating point buffers (left and right channel) that will be filled with samples.
- fluid_
synth_ ⚠write_ s16 - Generate a number of samples. This function expects two signed 16bits buffers (left and right channel) that will be filled with samples.
- fluid_
version ⚠ - fluid_
version_ ⚠str - fluid_
voice_ ⚠add_ mod - fluid_
voice_ ⚠gen_ get - Get the value of a generator
- fluid_
voice_ ⚠gen_ incr - Modify the value of a generator by val
- fluid_
voice_ ⚠gen_ set - Set the value of a generator
- fluid_
voice_ ⚠get_ id - Return the unique ID of the noteon-event. A sound font loader may store the voice processes it has created for * real-time control during the operation of a voice (for example: parameter changes in sound font editor). The synth uses a pool of voices, which are ‘recycled’ and never deallocated.
- fluid_
voice_ ⚠is_ playing - fluid_
voice_ ⚠optimize_ sample - If the peak volume during the loop is known, then the voice can be released earlier during the release phase. Otherwise, the voice will operate (inaudibly), until the envelope is at the nominal turnoff point. In many cases the loop volume is many dB below the maximum volume. For example, the loop volume for a typical acoustic piano is 20 dB below max. Taking that into account in the turn-off algorithm we can save 20 dB / 100 dB => 1/5 of the total release time. So it’s a good idea to call fluid_voice_optimize_sample on each sample once.
- fluid_
voice_ ⚠update_ param - Update all the synthesis parameters, which depend on generator gen. This is only necessary after changing a generator of an already operating voice. Most applications will not need this function.
- new_
fluid_ ⚠defsfloader - new_
fluid_ ⚠ramsample - sample_t specific API for ramsfont
- new_
fluid_ ⚠settings - new_
fluid_ ⚠synth - Creates a new synthesizer object.
Type Aliases§
- _bindgen_
ty_ 1 - SoundFont plugins
- fluid_
audio_ callback_ t - fluid_
audio_ driver_ t - fluid_
chorus_ mod - fluid_
cmd_ handler_ t - fluid_
event_ t - fluid_
fileapi_ t - fluid_
gen_ flags - Enum value for ‘flags’ field of #_fluid_gen_t (not really flags).
- fluid_
gen_ t - SoundFont generator structure.
- fluid_
gen_ type - Generator (effect) numbers (Soundfont 2.01 specifications section 8.1.3)
- fluid_
interp - fluid_
istream_ t - fluid_
log_ function_ t - Log function handler callback type used by fluid_set_log_function(). @param level Log level (#fluid_log_level) @param message Log message text @param data User data pointer supplied to fluid_set_log_function().
- fluid_
log_ level - FluidSynth log levels.
- fluid_
midi_ driver_ t - fluid_
midi_ event_ t - fluid_
midi_ router_ rule_ t - fluid_
midi_ router_ t - fluid_
mod_ flags - fluid_
mod_ src - fluid_
mod_ t - fluid_
ostream_ t - fluid_
player_ t - fluid_
preset_ t - fluid_
rampreset_ t - fluid_
ramsfont_ t - fluid_
sample_ t - fluid_
sequencer_ t - fluid_
server_ t - fluid_
settings_ t - fluid_
sfloader_ t - fluid_
sfont_ t - fluid_
shell_ t - fluid_
synth_ t - fluid_
types_ enum - fluid_
voice_ add_ mod - fluid_
voice_ t