Module: FluidSynth
- Extended by:
- FFI::Library
- Defined in:
- lib/ffi-fluidsynth.rb
Defined Under Namespace
Classes: FluidAudioDriverT, FluidEventT, FluidFileRendererT, FluidGenT, FluidHashtableT, FluidMidiDriverT, FluidMidiEventT, FluidMidiRouterRuleT, FluidMidiRouterT, FluidModT, FluidPlayerT, FluidPresetT, FluidRampresetT, FluidRamsfontT, FluidSampleT, FluidSequencerT, FluidServerT, FluidSfloaderT, FluidSfontT, FluidShellT, FluidSynthChannelInfoT, FluidSynthT, FluidVoiceT, GenT
Constant Summary collapse
- FLUID_HINT_BOUNDED_BELOW =
0x1
- FLUID_HINT_BOUNDED_ABOVE =
0x2
- FLUID_HINT_TOGGLED =
0x4
- FLUID_HINT_SAMPLE_RATE =
0x8
- FLUID_HINT_LOGARITHMIC =
0x10
- FLUID_HINT_INTEGER =
0x20
- FLUID_HINT_FILENAME =
0x01
- FLUID_HINT_OPTIONLIST =
0x02
- FLUID_SYNTH_CHANNEL_INFO_NAME_SIZE =
32
- FLUID_REVERB_DEFAULT_ROOMSIZE =
0.2
- FLUID_REVERB_DEFAULT_DAMP =
0.0
- FLUID_REVERB_DEFAULT_WIDTH =
0.5
- FLUID_REVERB_DEFAULT_LEVEL =
0.9
- FLUID_CHORUS_DEFAULT_N =
3
- FLUID_CHORUS_DEFAULT_LEVEL =
2.0
- FLUID_CHORUS_DEFAULT_SPEED =
0.3
- FLUID_CHORUS_DEFAULT_DEPTH =
8.0
- FLUID_SAMPLETYPE_MONO =
1
- FLUID_SAMPLETYPE_RIGHT =
2
- FLUID_SAMPLETYPE_LEFT =
4
- FLUID_SAMPLETYPE_LINKED =
8
- FLUID_SAMPLETYPE_ROM =
0x8000
- FLUID_SEQ_WITH_TRACE =
0
- FLUID_NUM_MOD =
64
- FLUIDSYNTH_VERSION =
"1.1.5"
- FLUIDSYNTH_VERSION_MAJOR =
1
- FLUIDSYNTH_VERSION_MINOR =
1
- FLUIDSYNTH_VERSION_MICRO =
5
Class Method Summary collapse
-
._callback_audio_callback_t_(len, out1, loff, lincr, out2, roff, rincr) ⇒ FluidSynthT
Type definition of the synthesizer’s audio callback function.
-
._callback_audio_func_t_(len, nin) ⇒ FFI::Pointer(*Void)
(Not documented).
-
._callback_event_callback_t_(event, seq, data) ⇒ Integer
(Not documented).
-
._callback_handle_midi_event_func_t_(event) ⇒ Object
Generic callback function for MIDI events.
-
._callback_log_function_t_(message, data) ⇒ Integer
(Not documented).
-
._callback_settings_foreach_option_t_(name, option) ⇒ FFI::Pointer(*Void)
Callback function type used with fluid_settings_foreach_option() This entry is only for documentation and no real method..
-
._callback_settings_foreach_t_(name, type) ⇒ FFI::Pointer(*Void)
Callback function type used with fluid_settings_foreach() This entry is only for documentation and no real method..
-
._enum_chorus_mod_ ⇒ Symbol
Chorus modulation waveform type.
-
._enum_gen_flags_ ⇒ Symbol
Enum value for ‘flags’ field of #fluid_gen_t (not really flags).
-
._enum_gen_type_ ⇒ Symbol
(Not documented).
-
._enum_interp_ ⇒ Symbol
Synthesis interpolation method.
-
._enum_log_level_ ⇒ Symbol
(Not documented).
-
._enum_midi_channel_type_ ⇒ Symbol
(Not documented).
-
._enum_midi_router_rule_type_ ⇒ Symbol
MIDI router rule type.
-
._enum_mod_flags_ ⇒ Symbol
(Not documented).
-
._enum_mod_src_ ⇒ Symbol
(Not documented).
-
._enum_player_status_ ⇒ Symbol
MIDI player status enum.
-
._enum_seq_event_type_ ⇒ Symbol
(Not documented).
-
._enum_types_enum_ ⇒ Symbol
(Not documented).
-
.default_log_function(level, message, data) ⇒ nil
(Not documented).
-
.delete_fluid_audio_driver(driver) ⇒ nil
(Not documented).
-
.delete_fluid_event(evt) ⇒ nil
(Not documented).
-
.delete_fluid_file_renderer(dev) ⇒ nil
(Not documented).
-
.delete_fluid_midi_driver(driver) ⇒ nil
(Not documented).
-
.delete_fluid_midi_event(event) ⇒ Integer
(Not documented).
-
.delete_fluid_midi_router(handler) ⇒ Integer
(Not documented).
-
.delete_fluid_midi_router_rule(rule) ⇒ nil
(Not documented).
-
.delete_fluid_player(player) ⇒ Integer
(Not documented).
-
.delete_fluid_sequencer(seq) ⇒ nil
(Not documented).
-
.delete_fluid_settings(settings) ⇒ nil
(Not documented).
-
.delete_fluid_synth(synth) ⇒ Integer
(Not documented).
-
.event_all_notes_off(evt, channel) ⇒ nil
(Not documented).
-
.event_all_sounds_off(evt, channel) ⇒ nil
(Not documented).
-
.event_any_control_change(evt, channel) ⇒ nil
Only for removing events.
-
.event_bank_select(evt, channel, bank_num) ⇒ nil
Instrument selection.
-
.event_channel_pressure(evt, channel, val) ⇒ nil
(Not documented).
-
.event_chorus_send(evt, channel, val) ⇒ nil
(Not documented).
-
.event_control_change(evt, channel, control, val) ⇒ nil
Real-time generic instrument controllers.
-
.event_get_bank(evt) ⇒ Integer
(Not documented).
-
.event_get_channel(evt) ⇒ Integer
(Not documented).
-
.event_get_control(evt) ⇒ Integer
(Not documented).
-
.event_get_data(evt) ⇒ FFI::Pointer(*Void)
(Not documented).
-
.event_get_dest(evt) ⇒ Integer
(Not documented).
-
.event_get_duration(evt) ⇒ Integer
(Not documented).
-
.event_get_key(evt) ⇒ Integer
(Not documented).
-
.event_get_pitch(evt) ⇒ Integer
(Not documented).
-
.event_get_program(evt) ⇒ Integer
(Not documented).
-
.event_get_sfont_id(evt) ⇒ Integer
(Not documented).
-
.event_get_source(evt) ⇒ Integer
(Not documented).
-
.event_get_type(evt) ⇒ Integer
Accessing event data.
-
.event_get_value(evt) ⇒ Integer
(Not documented).
-
.event_get_velocity(evt) ⇒ Integer
(Not documented).
-
.event_modulation(evt, channel, val) ⇒ nil
(Not documented).
-
.event_note(evt, channel, key, vel, duration) ⇒ nil
Note events.
-
.event_noteoff(evt, channel, key) ⇒ nil
(Not documented).
-
.event_noteon(evt, channel, key, vel) ⇒ nil
(Not documented).
-
.event_pan(evt, channel, val) ⇒ nil
(Not documented).
-
.event_pitch_bend(evt, channel, val) ⇒ nil
Real-time instrument controllers shortcuts.
-
.event_pitch_wheelsens(evt, channel, val) ⇒ nil
(Not documented).
-
.event_program_change(evt, channel, preset_num) ⇒ nil
(Not documented).
-
.event_program_select(evt, channel, sfont_id, bank_num, preset_num) ⇒ nil
(Not documented).
-
.event_reverb_send(evt, channel, val) ⇒ nil
(Not documented).
-
.event_set_dest(evt, dest) ⇒ nil
(Not documented).
-
.event_set_source(evt, src) ⇒ nil
Initializing events.
-
.event_sustain(evt, channel, val) ⇒ nil
(Not documented).
-
.event_system_reset(evt) ⇒ nil
(Not documented).
-
.event_timer(evt, data) ⇒ nil
Timer events.
-
.event_unregistering(evt) ⇒ nil
Only when unregistering clients.
-
.event_volume(evt, channel, val) ⇒ nil
(Not documented).
-
.file_renderer_process_block(dev) ⇒ Integer
(Not documented).
-
.gen_set_default_values(gen) ⇒ Integer
< Generator is an absolute value.
-
.is_midifile(filename) ⇒ Integer
(Not documented).
-
.is_soundfont(filename) ⇒ Integer
(Not documented).
-
.log(level, fmt) ⇒ Integer
(Not documented).
-
.midi_dump_postrouter(data, event) ⇒ Integer
(Not documented).
-
.midi_dump_prerouter(data, event) ⇒ Integer
(Not documented).
-
.midi_event_get_channel(evt) ⇒ Integer
(Not documented).
-
.midi_event_get_control(evt) ⇒ Integer
(Not documented).
-
.midi_event_get_key(evt) ⇒ Integer
(Not documented).
-
.midi_event_get_pitch(evt) ⇒ Integer
(Not documented).
-
.midi_event_get_program(evt) ⇒ Integer
(Not documented).
-
.midi_event_get_type(evt) ⇒ Integer
(Not documented).
-
.midi_event_get_value(evt) ⇒ Integer
(Not documented).
-
.midi_event_get_velocity(evt) ⇒ Integer
(Not documented).
-
.midi_event_set_channel(evt, chan) ⇒ Integer
(Not documented).
-
.midi_event_set_control(evt, ctrl) ⇒ Integer
(Not documented).
-
.midi_event_set_key(evt, key) ⇒ Integer
(Not documented).
-
.midi_event_set_pitch(evt, val) ⇒ Integer
(Not documented).
-
.midi_event_set_program(evt, val) ⇒ Integer
(Not documented).
-
.midi_event_set_sysex(evt, data, size, dynamic) ⇒ Integer
(Not documented).
-
.midi_event_set_type(evt, type) ⇒ Integer
(Not documented).
-
.midi_event_set_value(evt, val) ⇒ Integer
(Not documented).
-
.midi_event_set_velocity(evt, vel) ⇒ Integer
(Not documented).
-
.midi_router_add_rule(router, rule, type) ⇒ Integer
(Not documented).
-
.midi_router_clear_rules(router) ⇒ Integer
(Not documented).
-
.midi_router_handle_midi_event(data, event) ⇒ Integer
(Not documented).
-
.midi_router_rule_set_chan(rule, min, max, mul, add) ⇒ nil
(Not documented).
-
.midi_router_rule_set_param1(rule, min, max, mul, add) ⇒ nil
(Not documented).
-
.midi_router_rule_set_param2(rule, min, max, mul, add) ⇒ nil
(Not documented).
-
.midi_router_set_default_rules(router) ⇒ Integer
(Not documented).
-
.mod_delete(mod) ⇒ nil
(Not documented).
-
.mod_get_amount(mod) ⇒ Float
(Not documented).
-
.mod_get_dest(mod) ⇒ Integer
(Not documented).
-
.mod_get_flags1(mod) ⇒ Integer
(Not documented).
-
.mod_get_flags2(mod) ⇒ Integer
(Not documented).
-
.mod_get_source1(mod) ⇒ Integer
(Not documented).
-
.mod_get_source2(mod) ⇒ Integer
(Not documented).
-
.mod_new ⇒ FluidModT
(Not documented).
-
.mod_set_amount(mod, amount) ⇒ nil
(Not documented).
-
.mod_set_dest(mod, dst) ⇒ nil
(Not documented).
-
.mod_set_source1(mod, src, flags) ⇒ nil
(Not documented).
-
.mod_set_source2(mod, src, flags) ⇒ nil
(Not documented).
-
.mod_test_identity(mod1, mod2) ⇒ Integer
(Not documented).
-
.new_fluid_audio_driver(settings, synth) ⇒ FluidAudioDriverT
(Not documented).
-
.new_fluid_audio_driver2(settings, func, data) ⇒ FluidAudioDriverT
(Not documented).
-
.new_fluid_event ⇒ FluidEventT
(Not documented).
-
.new_fluid_file_renderer(synth) ⇒ FluidFileRendererT
(Not documented).
-
.new_fluid_midi_driver(settings, handler, event_handler_data) ⇒ FluidMidiDriverT
(Not documented).
-
.new_fluid_midi_event ⇒ FluidMidiEventT
(Not documented).
-
.new_fluid_midi_router(settings, handler, event_handler_data) ⇒ FluidMidiRouterT
(Not documented).
-
.new_fluid_midi_router_rule ⇒ FluidMidiRouterRuleT
(Not documented).
-
.new_fluid_player(synth) ⇒ FluidPlayerT
< Player is finished playing.
-
.new_fluid_sequencer ⇒ FluidSequencerT
(Not documented).
-
.new_fluid_sequencer2(use_system_timer) ⇒ FluidSequencerT
(Not documented).
-
.new_fluid_settings ⇒ FluidHashtableT
(Not documented).
-
.new_fluid_synth(settings) ⇒ FluidSynthT
(Not documented).
-
.player_add(player, midifile) ⇒ Integer
(Not documented).
-
.player_add_mem(player, buffer, len) ⇒ Integer
(Not documented).
-
.player_get_status(player) ⇒ Integer
(Not documented).
-
.player_join(player) ⇒ Integer
(Not documented).
-
.player_play(player) ⇒ Integer
(Not documented).
-
.player_set_bpm(player, bpm) ⇒ Integer
(Not documented).
-
.player_set_loop(player, loop) ⇒ Integer
(Not documented).
-
.player_set_midi_tempo(player, tempo) ⇒ Integer
(Not documented).
-
.player_set_playback_callback(player, handler, handler_data) ⇒ Integer
(Not documented).
-
.player_stop(player) ⇒ Integer
(Not documented).
-
.sequencer_add_midi_event_to_buffer(data, event) ⇒ Integer
(Not documented).
-
.sequencer_client_is_dest(seq, id) ⇒ Integer
(Not documented).
-
.sequencer_count_clients(seq) ⇒ Integer
(Not documented).
-
.sequencer_get_client_id(seq, index) ⇒ Integer
(Not documented).
-
.sequencer_get_client_name(seq, id) ⇒ String
(Not documented).
-
.sequencer_get_tick(seq) ⇒ Integer
(Not documented).
-
.sequencer_get_time_scale(seq) ⇒ Float
(Not documented).
-
.sequencer_get_use_system_timer(seq) ⇒ Integer
(Not documented).
-
.sequencer_process(seq, msec) ⇒ nil
(Not documented).
-
.sequencer_register_client(seq, name, callback, data) ⇒ Integer
(Not documented).
-
.sequencer_register_fluidsynth(seq, synth) ⇒ Integer
(Not documented).
-
.sequencer_remove_events(seq, source, dest, type) ⇒ nil
(Not documented).
-
.sequencer_send_at(seq, evt, time, absolute) ⇒ Integer
(Not documented).
-
.sequencer_send_now(seq, evt) ⇒ nil
(Not documented).
-
.sequencer_set_time_scale(seq, scale) ⇒ nil
(Not documented).
-
.sequencer_unregister_client(seq, id) ⇒ nil
(Not documented).
-
.set_log_function(level, fun, data) ⇒ Proc(_callback_log_function_t_)
(Not documented).
-
.settings_copystr(settings, name, str, len) ⇒ Integer
(Not documented).
-
.settings_dupstr(settings, name, str) ⇒ Integer
(Not documented).
-
.settings_foreach(settings, data, func) ⇒ nil
(Not documented).
-
.settings_foreach_option(settings, name, data, func) ⇒ nil
(Not documented).
-
.settings_get_hints(settings, name) ⇒ Integer
(Not documented).
-
.settings_get_type(settings, name) ⇒ Integer
(Not documented).
-
.settings_getint(settings, name, val) ⇒ Integer
(Not documented).
-
.settings_getint_default(settings, name) ⇒ Integer
(Not documented).
-
.settings_getint_range(settings, name, min, max) ⇒ nil
(Not documented).
-
.settings_getnum(settings, name, val) ⇒ Integer
(Not documented).
-
.settings_getnum_default(settings, name) ⇒ Float
(Not documented).
-
.settings_getnum_range(settings, name, min, max) ⇒ nil
(Not documented).
-
.settings_getstr(settings, name, str) ⇒ Integer
(Not documented).
-
.settings_getstr_default(settings, name) ⇒ String
(Not documented).
-
.settings_is_realtime(settings, name) ⇒ Integer
(Not documented).
-
.settings_option_concat(settings, name, separator) ⇒ String
(Not documented).
-
.settings_option_count(settings, name) ⇒ Integer
(Not documented).
-
.settings_setint(settings, name, val) ⇒ Integer
(Not documented).
-
.settings_setnum(settings, name, val) ⇒ Integer
(Not documented).
-
.settings_setstr(settings, name, str) ⇒ Integer
(Not documented).
-
.settings_str_equal(settings, name, value) ⇒ Integer
(Not documented).
-
.synth_activate_key_tuning(synth, bank, prog, name, pitch, apply) ⇒ Integer
(Not documented).
-
.synth_activate_octave_tuning(synth, bank, prog, name, pitch, apply) ⇒ Integer
(Not documented).
-
.synth_activate_tuning(synth, chan, bank, prog, apply) ⇒ Integer
(Not documented).
-
.synth_add_sfloader(synth, loader) ⇒ nil
Synthesizer’s interface to handle SoundFont loaders.
-
.synth_add_sfont(synth, sfont) ⇒ Integer
(Not documented).
-
.synth_all_notes_off(synth, chan) ⇒ Integer
(Not documented).
-
.synth_all_sounds_off(synth, chan) ⇒ Integer
(Not documented).
-
.synth_alloc_voice(synth, sample, channum, key, vel) ⇒ FluidVoiceT
(Not documented).
-
.synth_bank_select(synth, chan, bank) ⇒ Integer
(Not documented).
-
.synth_cc(synth, chan, ctrl, val) ⇒ Integer
(Not documented).
-
.synth_channel_pressure(synth, chan, val) ⇒ Integer
(Not documented).
-
.synth_count_audio_channels(synth) ⇒ Integer
(Not documented).
-
.synth_count_audio_groups(synth) ⇒ Integer
(Not documented).
-
.synth_count_effects_channels(synth) ⇒ Integer
(Not documented).
-
.synth_count_midi_channels(synth) ⇒ Integer
Audio and MIDI channels.
-
.synth_create_key_tuning(synth, bank, prog, name, pitch) ⇒ Integer
Tuning.
-
.synth_create_octave_tuning(synth, bank, prog, name, pitch) ⇒ Integer
(Not documented).
-
.synth_deactivate_tuning(synth, chan, apply) ⇒ Integer
(Not documented).
-
.synth_error(synth) ⇒ String
(Not documented).
-
.synth_get_active_voice_count(synth) ⇒ Integer
(Not documented).
-
.synth_get_bank_offset(synth, sfont_id) ⇒ Integer
(Not documented).
-
.synth_get_cc(synth, chan, ctrl, pval) ⇒ Integer
(Not documented).
-
.synth_get_channel_info(synth, chan, info) ⇒ Integer
(Not documented).
-
.synth_get_channel_preset(synth, chan) ⇒ FFI::Pointer(*PresetT)
Low level access.
-
.synth_get_chorus_depth_ms(synth) ⇒ Float
(Not documented).
-
.synth_get_chorus_level(synth) ⇒ Float
(Not documented).
-
.synth_get_chorus_nr(synth) ⇒ Integer
(Not documented).
-
.synth_get_chorus_speed_hz(synth) ⇒ Float
(Not documented).
-
.synth_get_chorus_type(synth) ⇒ Integer
(Not documented).
-
.synth_get_cpu_load(synth) ⇒ Float
Misc.
-
.synth_get_gain(synth) ⇒ Float
(Not documented).
-
.synth_get_gen(synth, chan, param) ⇒ Float
(Not documented).
-
.synth_get_internal_bufsize(synth) ⇒ Integer
(Not documented).
-
.synth_get_pitch_bend(synth, chan, ppitch_bend) ⇒ Integer
(Not documented).
-
.synth_get_pitch_wheel_sens(synth, chan, pval) ⇒ Integer
(Not documented).
-
.synth_get_polyphony(synth) ⇒ Integer
(Not documented).
-
.synth_get_program(synth, chan, sfont_id, bank_num, preset_num) ⇒ Integer
(Not documented).
-
.synth_get_reverb_damp(synth) ⇒ Float
(Not documented).
-
.synth_get_reverb_level(synth) ⇒ Float
(Not documented).
-
.synth_get_reverb_roomsize(synth) ⇒ Float
(Not documented).
-
.synth_get_reverb_width(synth) ⇒ Float
(Not documented).
-
.synth_get_settings(synth) ⇒ FluidHashtableT
(Not documented).
-
.synth_get_sfont(synth, num) ⇒ FFI::Pointer(*SfontT)
(Not documented).
-
.synth_get_sfont_by_id(synth, id) ⇒ FFI::Pointer(*SfontT)
(Not documented).
-
.synth_get_sfont_by_name(synth, name) ⇒ FFI::Pointer(*SfontT)
(Not documented).
-
.synth_get_voicelist(synth, buf, bufsize, id) ⇒ nil
(Not documented).
-
.synth_handle_midi_event(data, event) ⇒ Integer
(Not documented).
-
.synth_noteoff(synth, chan, key) ⇒ Integer
(Not documented).
-
.synth_noteon(synth, chan, key, vel) ⇒ Integer
MIDI channel messages.
-
.synth_nwrite_float(synth, len, left, right, fx_left, fx_right) ⇒ Integer
(Not documented).
-
.synth_pitch_bend(synth, chan, val) ⇒ Integer
(Not documented).
-
.synth_pitch_wheel_sens(synth, chan, val) ⇒ Integer
(Not documented).
-
.synth_process(synth, len, nin) ⇒ Integer
(Not documented).
-
.synth_program_change(synth, chan, program) ⇒ Integer
(Not documented).
-
.synth_program_reset(synth) ⇒ Integer
(Not documented).
-
.synth_program_select(synth, chan, sfont_id, bank_num, preset_num) ⇒ Integer
(Not documented).
-
.synth_program_select_by_sfont_name(synth, chan, sfont_name, bank_num, preset_num) ⇒ Integer
(Not documented).
-
.synth_remove_sfont(synth, sfont) ⇒ nil
(Not documented).
-
.synth_reset_tuning(synth, chan) ⇒ Integer
(Not documented).
-
.synth_select_tuning(synth, chan, bank, prog) ⇒ Integer
(Not documented).
-
.synth_set_bank_offset(synth, sfont_id, offset) ⇒ Integer
(Not documented).
-
.synth_set_channel_type(synth, chan, type) ⇒ Integer
(Not documented).
-
.synth_set_chorus(synth, nr, level, speed, depth_ms, type) ⇒ nil
< Triangle wave chorus modulation.
-
.synth_set_chorus_on(synth, on) ⇒ nil
(Not documented).
-
.synth_set_gain(synth, gain) ⇒ nil
(Not documented).
-
.synth_set_gen(synth, chan, param, value) ⇒ Integer
Generator interface.
-
.synth_set_gen2(synth, chan, param, value, absolute, normalized) ⇒ Integer
(Not documented).
-
.synth_set_interp_method(synth, chan, interp_method) ⇒ Integer
(Not documented).
-
.synth_set_midi_router(synth, router) ⇒ nil
(Not documented).
-
.synth_set_polyphony(synth, polyphony) ⇒ Integer
(Not documented).
-
.synth_set_reverb(synth, roomsize, damping, width, level) ⇒ nil
Reverb.
-
.synth_set_reverb_on(synth, on) ⇒ nil
(Not documented).
-
.synth_set_sample_rate(synth, sample_rate) ⇒ nil
Synthesis parameters.
-
.synth_sfcount(synth) ⇒ Integer
(Not documented).
-
.synth_sfload(synth, filename, reset_presets) ⇒ Integer
SoundFont management.
-
.synth_sfont_select(synth, chan, sfont_id) ⇒ Integer
(Not documented).
-
.synth_sfreload(synth, id) ⇒ Integer
(Not documented).
-
.synth_sfunload(synth, id, reset_presets) ⇒ Integer
(Not documented).
-
.synth_start(synth, id, preset, audio_chan, midi_chan, key, vel) ⇒ Integer
(Not documented).
-
.synth_start_voice(synth, voice) ⇒ nil
(Not documented).
-
.synth_stop(synth, id) ⇒ Integer
(Not documented).
-
.synth_sysex(synth, data, len, response, response_len, handled, dryrun) ⇒ Integer
(Not documented).
-
.synth_system_reset(synth) ⇒ Integer
(Not documented).
-
.synth_tune_notes(synth, bank, prog, len, keys, pitch, apply) ⇒ Integer
(Not documented).
-
.synth_tuning_dump(synth, bank, prog, name, len, pitch) ⇒ Integer
(Not documented).
-
.synth_tuning_iteration_next(synth, bank, prog) ⇒ Integer
(Not documented).
-
.synth_tuning_iteration_start(synth) ⇒ nil
(Not documented).
-
.synth_unset_program(synth, chan) ⇒ Integer
(Not documented).
-
.synth_write_float(synth, len, lout, loff, lincr, rout, roff, rincr) ⇒ Integer
(Not documented).
-
.synth_write_s16(synth, len, lout, loff, lincr, rout, roff, rincr) ⇒ Integer
Synthesizer plugin.
-
.version(major, minor, micro) ⇒ nil
(Not documented).
-
.version_str ⇒ String
(Not documented).
-
.voice_add_mod(voice, mod, mode) ⇒ nil
< For default modulators only, no need to check for duplicates.
-
.voice_gen_get(voice, gen) ⇒ Float
(Not documented).
-
.voice_gen_incr(voice, gen, val) ⇒ nil
(Not documented).
-
.voice_gen_set(voice, gen, val) ⇒ nil
(Not documented).
-
.voice_get_id(voice) ⇒ Integer
(Not documented).
-
.voice_is_playing(voice) ⇒ Integer
(Not documented).
-
.voice_optimize_sample(s) ⇒ Integer
(Not documented).
-
.voice_update_param(voice, gen) ⇒ nil
(Not documented).
Class Method Details
._callback_audio_callback_t_(len, out1, loff, lincr, out2, roff, rincr) ⇒ FluidSynthT
Type definition of the synthesizer’s audio callback function. This entry is only for documentation and no real method.
1365 |
# File 'lib/ffi-fluidsynth.rb', line 1365 callback :audio_callback_t, [:int, :pointer, :int, :int, :pointer, :int, :int], FluidSynthT |
._callback_audio_func_t_(len, nin) ⇒ FFI::Pointer(*Void)
(Not documented)
This entry is only for documentation and no real method.
1635 |
# File 'lib/ffi-fluidsynth.rb', line 1635 callback :audio_func_t, [:int, :int, :pointer, :int, :pointer], :pointer |
._callback_event_callback_t_(event, seq, data) ⇒ Integer
(Not documented)
This entry is only for documentation and no real method.
2623 |
# File 'lib/ffi-fluidsynth.rb', line 2623 callback :event_callback_t, [FluidEventT, FluidSequencerT, :pointer], :uint |
._callback_handle_midi_event_func_t_(event) ⇒ Object
Generic callback function for MIDI events. Will be used between
-
MIDI driver and MIDI router
-
MIDI router and synth
to communicate events. In the not-so-far future…
This entry is only for documentation and no real method.
2345 |
# File 'lib/ffi-fluidsynth.rb', line 2345 callback :handle_midi_event_func_t, [FluidMidiEventT], :pointer |
._callback_log_function_t_(message, data) ⇒ Integer
(Not documented)
This entry is only for documentation and no real method.
2833 |
# File 'lib/ffi-fluidsynth.rb', line 2833 callback :log_function_t, [:string, :pointer], :int |
._callback_settings_foreach_option_t_(name, option) ⇒ FFI::Pointer(*Void)
Callback function type used with fluid_settings_foreach_option() This entry is only for documentation and no real method.
347 |
# File 'lib/ffi-fluidsynth.rb', line 347 callback :settings_foreach_option_t, [:string, :string], :pointer |
._callback_settings_foreach_t_(name, type) ⇒ FFI::Pointer(*Void)
Callback function type used with fluid_settings_foreach() This entry is only for documentation and no real method.
391 |
# File 'lib/ffi-fluidsynth.rb', line 391 callback :settings_foreach_t, [:string, :int], :pointer |
._enum_chorus_mod_ ⇒ Symbol
Chorus modulation waveform type.
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:chorus_mod).
Options:
- :sine
- :triangle
-
< Sine wave chorus modulation
904 905 906 907 |
# File 'lib/ffi-fluidsynth.rb', line 904 enum :chorus_mod, [ :sine, 0, :triangle, 1 ] |
._enum_gen_flags_ ⇒ Symbol
Enum value for ‘flags’ field of #fluid_gen_t (not really flags).
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:gen_flags).
Options:
- :unused
- :set
-
< Generator value is not set
- :abs_nrpn
-
< Generator value is set
3344 3345 3346 3347 3348 |
# File 'lib/ffi-fluidsynth.rb', line 3344 enum :gen_flags, [ :unused, :set, :abs_nrpn ] |
._enum_gen_type_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:gen_type).
Options:
- :startaddrofs
- :endaddrofs
-
< Sample start address offset (0-32767)
- :startloopaddrofs
-
< Sample end address offset (-32767-0)
- :endloopaddrofs
-
< Sample loop start address offset (-32767-32767)
- :startaddrcoarseofs
-
< Sample loop end address offset (-32767-32767)
- :modlfotopitch
-
< Sample start address coarse offset (X 32768)
- :viblfotopitch
-
< Modulation LFO to pitch
- :modenvtopitch
-
< Vibrato LFO to pitch
- :filterfc
-
< Modulation envelope to pitch
- :filterq
-
< Filter cutoff
- :modlfotofilterfc
-
< Filter Q
- :modenvtofilterfc
-
< Modulation LFO to filter cutoff
- :endaddrcoarseofs
-
< Modulation envelope to filter cutoff
- :modlfotovol
-
< Sample end address coarse offset (X 32768)
- :unused1
-
< Modulation LFO to volume
- :chorussend
-
< Unused
- :reverbsend
-
< Chorus send amount
- :pan
-
< Reverb send amount
- :unused2
-
< Stereo panning
- :unused3
-
< Unused
- :unused4
-
< Unused
- :modlfodelay
-
< Unused
- :modlfofreq
-
< Modulation LFO delay
- :viblfodelay
-
< Modulation LFO frequency
- :viblfofreq
-
< Vibrato LFO delay
- :modenvdelay
-
< Vibrato LFO frequency
- :modenvattack
-
< Modulation envelope delay
- :modenvhold
-
< Modulation envelope attack
- :modenvdecay
-
< Modulation envelope hold
- :modenvsustain
-
< Modulation envelope decay
- :modenvrelease
-
< Modulation envelope sustain
- :keytomodenvhold
-
< Modulation envelope release
- :keytomodenvdecay
-
< Key to modulation envelope hold
- :volenvdelay
-
< Key to modulation envelope decay
- :volenvattack
-
< Volume envelope delay
- :volenvhold
-
< Volume envelope attack
- :volenvdecay
-
< Volume envelope hold
- :volenvsustain
-
< Volume envelope decay
- :volenvrelease
-
< Volume envelope sustain
- :keytovolenvhold
-
< Volume envelope release
- :keytovolenvdecay
-
< Key to volume envelope hold
- :instrument
-
< Key to volume envelope decay
- :reserved1
-
< Instrument ID (shouldn’t be set by user)
- :keyrange
-
< Reserved
- :velrange
-
< MIDI note range
- :startloopaddrcoarseofs
-
< MIDI velocity range
- :keynum
-
< Sample start loop address coarse offset (X 32768)
- :velocity
-
< Fixed MIDI note number
- :attenuation
-
< Fixed MIDI velocity value
- :reserved2
-
< Initial volume attenuation
- :endloopaddrcoarseofs
-
< Reserved
- :coarsetune
-
< Sample end loop address coarse offset (X 32768)
- :finetune
-
< Coarse tuning
- :sampleid
-
< Fine tuning
- :samplemode
-
< Sample ID (shouldn’t be set by user)
- :reserved3
-
< Sample mode flags
- :scaletune
-
< Reserved
- :exclusiveclass
-
< Scale tuning
- :overriderootkey
-
< Exclusive class number
- :pitch
-
the initial pitch is not a “standard” generator. It is not mentioned in the list of generator in the SF2 specifications. It is used, however, as the destination for the default pitch wheel modulator.
- :last
-
< Pitch (NOTE: Not a real SoundFont generator)
3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 |
# File 'lib/ffi-fluidsynth.rb', line 3229 enum :gen_type, [ :startaddrofs, :endaddrofs, :startloopaddrofs, :endloopaddrofs, :startaddrcoarseofs, :modlfotopitch, :viblfotopitch, :modenvtopitch, :filterfc, :filterq, :modlfotofilterfc, :modenvtofilterfc, :endaddrcoarseofs, :modlfotovol, :unused1, :chorussend, :reverbsend, :pan, :unused2, :unused3, :unused4, :modlfodelay, :modlfofreq, :viblfodelay, :viblfofreq, :modenvdelay, :modenvattack, :modenvhold, :modenvdecay, :modenvsustain, :modenvrelease, :keytomodenvhold, :keytomodenvdecay, :volenvdelay, :volenvattack, :volenvhold, :volenvdecay, :volenvsustain, :volenvrelease, :keytovolenvhold, :keytovolenvdecay, :instrument, :reserved1, :keyrange, :velrange, :startloopaddrcoarseofs, :keynum, :velocity, :attenuation, :reserved2, :endloopaddrcoarseofs, :coarsetune, :finetune, :sampleid, :samplemode, :reserved3, :scaletune, :exclusiveclass, :overriderootkey, :pitch, :last ] |
._enum_interp_ ⇒ Symbol
Synthesis interpolation method.
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:interp).
Options:
- :none
- :linear
-
< No interpolation: Fastest, but questionable audio quality
- :_4thorder
-
< Straight-line interpolation: A bit slower, reasonable audio quality
- :_7thorder
-
< Fourth-order interpolation, good quality, the default
1089 1090 1091 1092 1093 1094 |
# File 'lib/ffi-fluidsynth.rb', line 1089 enum :interp, [ :none, 0, :linear, 1, :_4thorder, 4, :_7thorder, 7 ] |
._enum_log_level_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:log_level).
Options:
- :fluid_panic
- :fluid_err
-
< The synth can’t function correctly any more
- :fluid_warn
-
< Serious error occurred
- :fluid_info
-
< Warning
- :fluid_dbg
-
< Verbose informational messages
- :last_log_level
-
< Debugging messages
2815 2816 2817 2818 2819 2820 2821 2822 |
# File 'lib/ffi-fluidsynth.rb', line 2815 enum :log_level, [ :fluid_panic, :fluid_err, :fluid_warn, :fluid_info, :fluid_dbg, :last_log_level ] |
._enum_midi_channel_type_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:midi_channel_type).
Options:
- :melodic
- :drum
690 691 692 693 |
# File 'lib/ffi-fluidsynth.rb', line 690 enum :midi_channel_type, [ :melodic, 0, :drum, 1 ] |
._enum_midi_router_rule_type_ ⇒ Symbol
MIDI router rule type. This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:midi_router_rule_type).
Options:
- :note
- :cc
-
< MIDI note rule
- :prog_change
-
< MIDI controller rule
- :pitch_bend
-
< MIDI program change rule
- :channel_pressure
-
< MIDI pitch bend rule
- :key_pressure
-
< MIDI channel pressure rule
- :count
-
< MIDI key pressure rule
2318 2319 2320 2321 2322 2323 2324 2325 2326 |
# File 'lib/ffi-fluidsynth.rb', line 2318 enum :midi_router_rule_type, [ :note, :cc, :prog_change, :pitch_bend, :channel_pressure, :key_pressure, :count ] |
._enum_mod_flags_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:mod_flags).
Options:
- :positive
- :negative
-
< Mapping function is positive
- :unipolar
-
< Mapping function is negative
- :bipolar
-
< Mapping function is unipolar
- :linear
-
< Mapping function is bipolar
- :concave
-
< Linear mapping function
- :convex
-
< Concave mapping function
- :switch
-
< Convex mapping function
- :gc
-
< Switch (on/off) mapping function
- :cc
-
< General controller source type (#fluid_mod_src)
2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 |
# File 'lib/ffi-fluidsynth.rb', line 2939 enum :mod_flags, [ :positive, 0, :negative, 1, :unipolar, 0, :bipolar, 2, :linear, 0, :concave, 4, :convex, 8, :switch, 12, :gc, 0, :cc, 16 ] |
._enum_mod_src_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:mod_src).
Options:
- :none
- :velocity
-
< No source controller
- :key
-
< MIDI note-on velocity
- :keypressure
-
< MIDI note-on note number
- :channelpressure
-
< MIDI key pressure
- :pitchwheel
-
< MIDI channel pressure
- :pitchwheelsens
-
< Pitch wheel
2975 2976 2977 2978 2979 2980 2981 2982 2983 |
# File 'lib/ffi-fluidsynth.rb', line 2975 enum :mod_src, [ :none, 0, :velocity, 2, :key, 3, :keypressure, 10, :channelpressure, 13, :pitchwheel, 14, :pitchwheelsens, 16 ] |
._enum_player_status_ ⇒ Symbol
MIDI player status enum. This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:player_status).
Options:
- :ready
- :playing
-
< Player is ready
- :done
-
< Player is currently playing
2503 2504 2505 2506 2507 |
# File 'lib/ffi-fluidsynth.rb', line 2503 enum :player_status, [ :ready, :playing, :done ] |
._enum_seq_event_type_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:seq_event_type).
Options:
- :note
- :noteon
-
< Note event with duration
- :noteoff
-
< Note on event
- :allsoundsoff
-
< Note off event
- :allnotesoff
-
< All sounds off event
- :bankselect
-
< All notes off event
- :programchange
-
< Bank select message
- :programselect
-
< Program change message
- :pitchbend
-
< Program select message (DOCME)
- :pitchwheelsens
-
< Pitch bend message
- :modulation
-
< Pitch wheel sensitivity set message @since 1.1.0 was mispelled previously
- :sustain
-
< Modulation controller event
- :controlchange
-
< Sustain controller event
- :pan
-
< MIDI control change event
- :volume
-
< Stereo pan set event
- :reverbsend
-
< Volume set event
- :chorussend
-
< Reverb send set event
- :timer
-
< Chorus send set event
- :anycontrolchange
-
< Timer event (DOCME)
- :channelpressure
-
< DOCME (used for remove_events only)
- :systemreset
-
< Channel aftertouch event @since 1.1.0
- :unregistering
-
< System reset event @since 1.1.0
- :lastevent
-
< Called when a sequencer client is being unregistered. @since 1.1.0
1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 |
# File 'lib/ffi-fluidsynth.rb', line 1743 enum :seq_event_type, [ :note, 0, :noteon, :noteoff, :allsoundsoff, :allnotesoff, :bankselect, :programchange, :programselect, :pitchbend, :pitchwheelsens, :modulation, :sustain, :controlchange, :pan, :volume, :reverbsend, :chorussend, :timer, :anycontrolchange, :channelpressure, :systemreset, :unregistering, :lastevent ] |
._enum_types_enum_ ⇒ Symbol
(Not documented)
This entry is only for documentation and no real method. The FFI::Enum can be accessed via #enum_type(:types_enum).
Options:
- :num_
-
< Undefined type
- :int_
-
< Numeric (double)
- :str_
-
< Integer
- :set_
-
< String
146 147 148 149 150 151 |
# File 'lib/ffi-fluidsynth.rb', line 146 enum :types_enum, [ :num_, :int_, :str_, :set_ ] |
.default_log_function(level, message, data) ⇒ nil
(Not documented)
2853 |
# File 'lib/ffi-fluidsynth.rb', line 2853 attach_function :default_log_function, :fluid_default_log_function, [:int, :string, :pointer], :void |
.delete_fluid_audio_driver(driver) ⇒ nil
(Not documented)
1662 |
# File 'lib/ffi-fluidsynth.rb', line 1662 attach_function :delete_fluid_audio_driver, :delete_fluid_audio_driver, [FluidAudioDriverT], :void |
.delete_fluid_event(evt) ⇒ nil
(Not documented)
1782 |
# File 'lib/ffi-fluidsynth.rb', line 1782 attach_function :delete_fluid_event, :delete_fluid_event, [FluidEventT], :void |
.delete_fluid_file_renderer(dev) ⇒ nil
(Not documented)
1686 |
# File 'lib/ffi-fluidsynth.rb', line 1686 attach_function :delete_fluid_file_renderer, :delete_fluid_file_renderer, [FluidFileRendererT], :void |
.delete_fluid_midi_driver(driver) ⇒ nil
(Not documented)
2485 |
# File 'lib/ffi-fluidsynth.rb', line 2485 attach_function :delete_fluid_midi_driver, :delete_fluid_midi_driver, [FluidMidiDriverT], :void |
.delete_fluid_midi_event(event) ⇒ Integer
(Not documented)
2145 |
# File 'lib/ffi-fluidsynth.rb', line 2145 attach_function :delete_fluid_midi_event, :delete_fluid_midi_event, [FluidMidiEventT], :int |
.delete_fluid_midi_router(handler) ⇒ Integer
(Not documented)
2363 |
# File 'lib/ffi-fluidsynth.rb', line 2363 attach_function :delete_fluid_midi_router, :delete_fluid_midi_router, [FluidMidiRouterT], :int |
.delete_fluid_midi_router_rule(rule) ⇒ nil
(Not documented)
2404 |
# File 'lib/ffi-fluidsynth.rb', line 2404 attach_function :delete_fluid_midi_router_rule, :delete_fluid_midi_router_rule, [FluidMidiRouterRuleT], :void |
.delete_fluid_player(player) ⇒ Integer
(Not documented)
2523 |
# File 'lib/ffi-fluidsynth.rb', line 2523 attach_function :delete_fluid_player, :delete_fluid_player, [FluidPlayerT], :int |
.delete_fluid_sequencer(seq) ⇒ nil
(Not documented)
2646 |
# File 'lib/ffi-fluidsynth.rb', line 2646 attach_function :delete_fluid_sequencer, :delete_fluid_sequencer, [FluidSequencerT], :void |
.delete_fluid_settings(settings) ⇒ nil
(Not documented)
166 |
# File 'lib/ffi-fluidsynth.rb', line 166 attach_function :delete_fluid_settings, :delete_fluid_settings, [FluidHashtableT], :void |
.delete_fluid_synth(synth) ⇒ Integer
(Not documented)
441 |
# File 'lib/ffi-fluidsynth.rb', line 441 attach_function :delete_fluid_synth, :delete_fluid_synth, [FluidSynthT], :int |
.event_all_notes_off(evt, channel) ⇒ nil
(Not documented)
1860 |
# File 'lib/ffi-fluidsynth.rb', line 1860 attach_function :event_all_notes_off, :fluid_event_all_notes_off, [FluidEventT, :int], :void |
.event_all_sounds_off(evt, channel) ⇒ nil
(Not documented)
1851 |
# File 'lib/ffi-fluidsynth.rb', line 1851 attach_function :event_all_sounds_off, :fluid_event_all_sounds_off, [FluidEventT, :int], :void |
.event_any_control_change(evt, channel) ⇒ nil
Only for removing events
2010 |
# File 'lib/ffi-fluidsynth.rb', line 2010 attach_function :event_any_control_change, :fluid_event_any_control_change, [FluidEventT, :int], :void |
.event_bank_select(evt, channel, bank_num) ⇒ nil
Instrument selection
1870 |
# File 'lib/ffi-fluidsynth.rb', line 1870 attach_function :event_bank_select, :fluid_event_bank_select, [FluidEventT, :int, :short], :void |
.event_channel_pressure(evt, channel, val) ⇒ nil
(Not documented)
1993 |
# File 'lib/ffi-fluidsynth.rb', line 1993 attach_function :event_channel_pressure, :fluid_event_channel_pressure, [FluidEventT, :int, :short], :void |
.event_chorus_send(evt, channel, val) ⇒ nil
(Not documented)
1983 |
# File 'lib/ffi-fluidsynth.rb', line 1983 attach_function :event_chorus_send, :fluid_event_chorus_send, [FluidEventT, :int, :short], :void |
.event_control_change(evt, channel, control, val) ⇒ nil
Real-time generic instrument controllers
1903 |
# File 'lib/ffi-fluidsynth.rb', line 1903 attach_function :event_control_change, :fluid_event_control_change, [FluidEventT, :int, :short, :short], :void |
.event_get_bank(evt) ⇒ Integer
(Not documented)
2114 |
# File 'lib/ffi-fluidsynth.rb', line 2114 attach_function :event_get_bank, :fluid_event_get_bank, [FluidEventT], :short |
.event_get_channel(evt) ⇒ Integer
(Not documented)
2050 |
# File 'lib/ffi-fluidsynth.rb', line 2050 attach_function :event_get_channel, :fluid_event_get_channel, [FluidEventT], :int |
.event_get_control(evt) ⇒ Integer
(Not documented)
2074 |
# File 'lib/ffi-fluidsynth.rb', line 2074 attach_function :event_get_control, :fluid_event_get_control, [FluidEventT], :short |
.event_get_data(evt) ⇒ FFI::Pointer(*Void)
(Not documented)
2098 |
# File 'lib/ffi-fluidsynth.rb', line 2098 attach_function :event_get_data, :fluid_event_get_data, [FluidEventT], :pointer |
.event_get_dest(evt) ⇒ Integer
(Not documented)
2042 |
# File 'lib/ffi-fluidsynth.rb', line 2042 attach_function :event_get_dest, :fluid_event_get_dest, [FluidEventT], :short |
.event_get_duration(evt) ⇒ Integer
(Not documented)
2106 |
# File 'lib/ffi-fluidsynth.rb', line 2106 attach_function :event_get_duration, :fluid_event_get_duration, [FluidEventT], :uint |
.event_get_key(evt) ⇒ Integer
(Not documented)
2058 |
# File 'lib/ffi-fluidsynth.rb', line 2058 attach_function :event_get_key, :fluid_event_get_key, [FluidEventT], :short |
.event_get_pitch(evt) ⇒ Integer
(Not documented)
2122 |
# File 'lib/ffi-fluidsynth.rb', line 2122 attach_function :event_get_pitch, :fluid_event_get_pitch, [FluidEventT], :int |
.event_get_program(evt) ⇒ Integer
(Not documented)
2090 |
# File 'lib/ffi-fluidsynth.rb', line 2090 attach_function :event_get_program, :fluid_event_get_program, [FluidEventT], :short |
.event_get_sfont_id(evt) ⇒ Integer
(Not documented)
2130 |
# File 'lib/ffi-fluidsynth.rb', line 2130 attach_function :event_get_sfont_id, :fluid_event_get_sfont_id, [FluidEventT], :uint |
.event_get_source(evt) ⇒ Integer
(Not documented)
2034 |
# File 'lib/ffi-fluidsynth.rb', line 2034 attach_function :event_get_source, :fluid_event_get_source, [FluidEventT], :short |
.event_get_type(evt) ⇒ Integer
Accessing event data
2026 |
# File 'lib/ffi-fluidsynth.rb', line 2026 attach_function :event_get_type, :fluid_event_get_type, [FluidEventT], :int |
.event_get_value(evt) ⇒ Integer
(Not documented)
2082 |
# File 'lib/ffi-fluidsynth.rb', line 2082 attach_function :event_get_value, :fluid_event_get_value, [FluidEventT], :short |
.event_get_velocity(evt) ⇒ Integer
(Not documented)
2066 |
# File 'lib/ffi-fluidsynth.rb', line 2066 attach_function :event_get_velocity, :fluid_event_get_velocity, [FluidEventT], :short |
.event_modulation(evt, channel, val) ⇒ nil
(Not documented)
1933 |
# File 'lib/ffi-fluidsynth.rb', line 1933 attach_function :event_modulation, :fluid_event_modulation, [FluidEventT, :int, :short], :void |
.event_note(evt, channel, key, vel, duration) ⇒ nil
Note events
1821 |
# File 'lib/ffi-fluidsynth.rb', line 1821 attach_function :event_note, :fluid_event_note, [FluidEventT, :int, :short, :short, :uint], :void |
.event_noteoff(evt, channel, key) ⇒ nil
(Not documented)
1842 |
# File 'lib/ffi-fluidsynth.rb', line 1842 attach_function :event_noteoff, :fluid_event_noteoff, [FluidEventT, :int, :short], :void |
.event_noteon(evt, channel, key, vel) ⇒ nil
(Not documented)
1832 |
# File 'lib/ffi-fluidsynth.rb', line 1832 attach_function :event_noteon, :fluid_event_noteon, [FluidEventT, :int, :short, :short], :void |
.event_pan(evt, channel, val) ⇒ nil
(Not documented)
1953 |
# File 'lib/ffi-fluidsynth.rb', line 1953 attach_function :event_pan, :fluid_event_pan, [FluidEventT, :int, :short], :void |
.event_pitch_bend(evt, channel, val) ⇒ nil
Real-time instrument controllers shortcuts
1913 |
# File 'lib/ffi-fluidsynth.rb', line 1913 attach_function :event_pitch_bend, :fluid_event_pitch_bend, [FluidEventT, :int, :int], :void |
.event_pitch_wheelsens(evt, channel, val) ⇒ nil
(Not documented)
1923 |
# File 'lib/ffi-fluidsynth.rb', line 1923 attach_function :event_pitch_wheelsens, :fluid_event_pitch_wheelsens, [FluidEventT, :int, :short], :void |
.event_program_change(evt, channel, preset_num) ⇒ nil
(Not documented)
1880 |
# File 'lib/ffi-fluidsynth.rb', line 1880 attach_function :event_program_change, :fluid_event_program_change, [FluidEventT, :int, :short], :void |
.event_program_select(evt, channel, sfont_id, bank_num, preset_num) ⇒ nil
(Not documented)
1892 |
# File 'lib/ffi-fluidsynth.rb', line 1892 attach_function :event_program_select, :fluid_event_program_select, [FluidEventT, :int, :uint, :short, :short], :void |
.event_reverb_send(evt, channel, val) ⇒ nil
(Not documented)
1973 |
# File 'lib/ffi-fluidsynth.rb', line 1973 attach_function :event_reverb_send, :fluid_event_reverb_send, [FluidEventT, :int, :short], :void |
.event_set_dest(evt, dest) ⇒ nil
(Not documented)
1800 |
# File 'lib/ffi-fluidsynth.rb', line 1800 attach_function :event_set_dest, :fluid_event_set_dest, [FluidEventT, :short], :void |
.event_set_source(evt, src) ⇒ nil
Initializing events
1791 |
# File 'lib/ffi-fluidsynth.rb', line 1791 attach_function :event_set_source, :fluid_event_set_source, [FluidEventT, :short], :void |
.event_sustain(evt, channel, val) ⇒ nil
(Not documented)
1943 |
# File 'lib/ffi-fluidsynth.rb', line 1943 attach_function :event_sustain, :fluid_event_sustain, [FluidEventT, :int, :short], :void |
.event_system_reset(evt) ⇒ nil
(Not documented)
2001 |
# File 'lib/ffi-fluidsynth.rb', line 2001 attach_function :event_system_reset, :fluid_event_system_reset, [FluidEventT], :void |
.event_timer(evt, data) ⇒ nil
Timer events
1809 |
# File 'lib/ffi-fluidsynth.rb', line 1809 attach_function :event_timer, :fluid_event_timer, [FluidEventT, :pointer], :void |
.event_unregistering(evt) ⇒ nil
Only when unregistering clients
2018 |
# File 'lib/ffi-fluidsynth.rb', line 2018 attach_function :event_unregistering, :fluid_event_unregistering, [FluidEventT], :void |
.event_volume(evt, channel, val) ⇒ nil
(Not documented)
1963 |
# File 'lib/ffi-fluidsynth.rb', line 1963 attach_function :event_volume, :fluid_event_volume, [FluidEventT, :int, :short], :void |
.file_renderer_process_block(dev) ⇒ Integer
(Not documented)
1678 |
# File 'lib/ffi-fluidsynth.rb', line 1678 attach_function :file_renderer_process_block, :fluid_file_renderer_process_block, [FluidFileRendererT], :int |
.gen_set_default_values(gen) ⇒ Integer
< Generator is an absolute value
3356 |
# File 'lib/ffi-fluidsynth.rb', line 3356 attach_function :gen_set_default_values, :fluid_gen_set_default_values, [FluidGenT], :int |
.is_midifile(filename) ⇒ Integer
(Not documented)
2878 |
# File 'lib/ffi-fluidsynth.rb', line 2878 attach_function :is_midifile, :fluid_is_midifile, [:string], :int |
.is_soundfont(filename) ⇒ Integer
(Not documented)
2870 |
# File 'lib/ffi-fluidsynth.rb', line 2870 attach_function :is_soundfont, :fluid_is_soundfont, [:string], :int |
.log(level, fmt) ⇒ Integer
(Not documented)
2862 |
# File 'lib/ffi-fluidsynth.rb', line 2862 attach_function :log, :fluid_log, [:int, :string], :int |
.midi_dump_postrouter(data, event) ⇒ Integer
(Not documented)
2467 |
# File 'lib/ffi-fluidsynth.rb', line 2467 attach_function :midi_dump_postrouter, :fluid_midi_dump_postrouter, [:pointer, FluidMidiEventT], :int |
.midi_dump_prerouter(data, event) ⇒ Integer
(Not documented)
2458 |
# File 'lib/ffi-fluidsynth.rb', line 2458 attach_function :midi_dump_prerouter, :fluid_midi_dump_prerouter, [:pointer, FluidMidiEventT], :int |
.midi_event_get_channel(evt) ⇒ Integer
(Not documented)
2179 |
# File 'lib/ffi-fluidsynth.rb', line 2179 attach_function :midi_event_get_channel, :fluid_midi_event_get_channel, [FluidMidiEventT], :int |
.midi_event_get_control(evt) ⇒ Integer
(Not documented)
2221 |
# File 'lib/ffi-fluidsynth.rb', line 2221 attach_function :midi_event_get_control, :fluid_midi_event_get_control, [FluidMidiEventT], :int |
.midi_event_get_key(evt) ⇒ Integer
(Not documented)
2187 |
# File 'lib/ffi-fluidsynth.rb', line 2187 attach_function :midi_event_get_key, :fluid_midi_event_get_key, [FluidMidiEventT], :int |
.midi_event_get_pitch(evt) ⇒ Integer
(Not documented)
2272 |
# File 'lib/ffi-fluidsynth.rb', line 2272 attach_function :midi_event_get_pitch, :fluid_midi_event_get_pitch, [FluidMidiEventT], :int |
.midi_event_get_program(evt) ⇒ Integer
(Not documented)
2255 |
# File 'lib/ffi-fluidsynth.rb', line 2255 attach_function :midi_event_get_program, :fluid_midi_event_get_program, [FluidMidiEventT], :int |
.midi_event_get_type(evt) ⇒ Integer
(Not documented)
2162 |
# File 'lib/ffi-fluidsynth.rb', line 2162 attach_function :midi_event_get_type, :fluid_midi_event_get_type, [FluidMidiEventT], :int |
.midi_event_get_value(evt) ⇒ Integer
(Not documented)
2238 |
# File 'lib/ffi-fluidsynth.rb', line 2238 attach_function :midi_event_get_value, :fluid_midi_event_get_value, [FluidMidiEventT], :int |
.midi_event_get_velocity(evt) ⇒ Integer
(Not documented)
2204 |
# File 'lib/ffi-fluidsynth.rb', line 2204 attach_function :midi_event_get_velocity, :fluid_midi_event_get_velocity, [FluidMidiEventT], :int |
.midi_event_set_channel(evt, chan) ⇒ Integer
(Not documented)
2171 |
# File 'lib/ffi-fluidsynth.rb', line 2171 attach_function :midi_event_set_channel, :fluid_midi_event_set_channel, [FluidMidiEventT, :int], :int |
.midi_event_set_control(evt, ctrl) ⇒ Integer
(Not documented)
2230 |
# File 'lib/ffi-fluidsynth.rb', line 2230 attach_function :midi_event_set_control, :fluid_midi_event_set_control, [FluidMidiEventT, :int], :int |
.midi_event_set_key(evt, key) ⇒ Integer
(Not documented)
2196 |
# File 'lib/ffi-fluidsynth.rb', line 2196 attach_function :midi_event_set_key, :fluid_midi_event_set_key, [FluidMidiEventT, :int], :int |
.midi_event_set_pitch(evt, val) ⇒ Integer
(Not documented)
2281 |
# File 'lib/ffi-fluidsynth.rb', line 2281 attach_function :midi_event_set_pitch, :fluid_midi_event_set_pitch, [FluidMidiEventT, :int], :int |
.midi_event_set_program(evt, val) ⇒ Integer
(Not documented)
2264 |
# File 'lib/ffi-fluidsynth.rb', line 2264 attach_function :midi_event_set_program, :fluid_midi_event_set_program, [FluidMidiEventT, :int], :int |
.midi_event_set_sysex(evt, data, size, dynamic) ⇒ Integer
(Not documented)
2292 |
# File 'lib/ffi-fluidsynth.rb', line 2292 attach_function :midi_event_set_sysex, :fluid_midi_event_set_sysex, [FluidMidiEventT, :pointer, :int, :int], :int |
.midi_event_set_type(evt, type) ⇒ Integer
(Not documented)
2154 |
# File 'lib/ffi-fluidsynth.rb', line 2154 attach_function :midi_event_set_type, :fluid_midi_event_set_type, [FluidMidiEventT, :int], :int |
.midi_event_set_value(evt, val) ⇒ Integer
(Not documented)
2247 |
# File 'lib/ffi-fluidsynth.rb', line 2247 attach_function :midi_event_set_value, :fluid_midi_event_set_value, [FluidMidiEventT, :int], :int |
.midi_event_set_velocity(evt, vel) ⇒ Integer
(Not documented)
2213 |
# File 'lib/ffi-fluidsynth.rb', line 2213 attach_function :midi_event_set_velocity, :fluid_midi_event_set_velocity, [FluidMidiEventT, :int], :int |
.midi_router_add_rule(router, rule, type) ⇒ Integer
(Not documented)
2389 |
# File 'lib/ffi-fluidsynth.rb', line 2389 attach_function :midi_router_add_rule, :fluid_midi_router_add_rule, [FluidMidiRouterT, FluidMidiRouterRuleT, :int], :int |
.midi_router_clear_rules(router) ⇒ Integer
(Not documented)
2379 |
# File 'lib/ffi-fluidsynth.rb', line 2379 attach_function :midi_router_clear_rules, :fluid_midi_router_clear_rules, [FluidMidiRouterT], :int |
.midi_router_handle_midi_event(data, event) ⇒ Integer
(Not documented)
2449 |
# File 'lib/ffi-fluidsynth.rb', line 2449 attach_function :midi_router_handle_midi_event, :fluid_midi_router_handle_midi_event, [:pointer, FluidMidiEventT], :int |
.midi_router_rule_set_chan(rule, min, max, mul, add) ⇒ nil
(Not documented)
2416 |
# File 'lib/ffi-fluidsynth.rb', line 2416 attach_function :midi_router_rule_set_chan, :fluid_midi_router_rule_set_chan, [FluidMidiRouterRuleT, :int, :int, :float, :int], :void |
.midi_router_rule_set_param1(rule, min, max, mul, add) ⇒ nil
(Not documented)
2428 |
# File 'lib/ffi-fluidsynth.rb', line 2428 attach_function :midi_router_rule_set_param1, :fluid_midi_router_rule_set_param1, [FluidMidiRouterRuleT, :int, :int, :float, :int], :void |
.midi_router_rule_set_param2(rule, min, max, mul, add) ⇒ nil
(Not documented)
2440 |
# File 'lib/ffi-fluidsynth.rb', line 2440 attach_function :midi_router_rule_set_param2, :fluid_midi_router_rule_set_param2, [FluidMidiRouterRuleT, :int, :int, :float, :int], :void |
.midi_router_set_default_rules(router) ⇒ Integer
(Not documented)
2371 |
# File 'lib/ffi-fluidsynth.rb', line 2371 attach_function :midi_router_set_default_rules, :fluid_midi_router_set_default_rules, [FluidMidiRouterT], :int |
.mod_delete(mod) ⇒ nil
(Not documented)
2998 |
# File 'lib/ffi-fluidsynth.rb', line 2998 attach_function :mod_delete, :fluid_mod_delete, [FluidModT], :void |
.mod_get_amount(mod) ⇒ Float
(Not documented)
3084 |
# File 'lib/ffi-fluidsynth.rb', line 3084 attach_function :mod_get_amount, :fluid_mod_get_amount, [FluidModT], :double |
.mod_get_dest(mod) ⇒ Integer
(Not documented)
3076 |
# File 'lib/ffi-fluidsynth.rb', line 3076 attach_function :mod_get_dest, :fluid_mod_get_dest, [FluidModT], :int |
.mod_get_flags1(mod) ⇒ Integer
(Not documented)
3052 |
# File 'lib/ffi-fluidsynth.rb', line 3052 attach_function :mod_get_flags1, :fluid_mod_get_flags1, [FluidModT], :int |
.mod_get_flags2(mod) ⇒ Integer
(Not documented)
3068 |
# File 'lib/ffi-fluidsynth.rb', line 3068 attach_function :mod_get_flags2, :fluid_mod_get_flags2, [FluidModT], :int |
.mod_get_source1(mod) ⇒ Integer
(Not documented)
3044 |
# File 'lib/ffi-fluidsynth.rb', line 3044 attach_function :mod_get_source1, :fluid_mod_get_source1, [FluidModT], :int |
.mod_get_source2(mod) ⇒ Integer
(Not documented)
3060 |
# File 'lib/ffi-fluidsynth.rb', line 3060 attach_function :mod_get_source2, :fluid_mod_get_source2, [FluidModT], :int |
.mod_new ⇒ FluidModT
(Not documented)
2990 |
# File 'lib/ffi-fluidsynth.rb', line 2990 attach_function :mod_new, :fluid_mod_new, [], FluidModT |
.mod_set_amount(mod, amount) ⇒ nil
(Not documented)
3036 |
# File 'lib/ffi-fluidsynth.rb', line 3036 attach_function :mod_set_amount, :fluid_mod_set_amount, [FluidModT, :double], :void |
.mod_set_dest(mod, dst) ⇒ nil
(Not documented)
3027 |
# File 'lib/ffi-fluidsynth.rb', line 3027 attach_function :mod_set_dest, :fluid_mod_set_dest, [FluidModT, :int], :void |
.mod_set_source1(mod, src, flags) ⇒ nil
(Not documented)
3008 |
# File 'lib/ffi-fluidsynth.rb', line 3008 attach_function :mod_set_source1, :fluid_mod_set_source1, [FluidModT, :int, :int], :void |
.mod_set_source2(mod, src, flags) ⇒ nil
(Not documented)
3018 |
# File 'lib/ffi-fluidsynth.rb', line 3018 attach_function :mod_set_source2, :fluid_mod_set_source2, [FluidModT, :int, :int], :void |
.mod_test_identity(mod1, mod2) ⇒ Integer
(Not documented)
3093 |
# File 'lib/ffi-fluidsynth.rb', line 3093 attach_function :mod_test_identity, :fluid_mod_test_identity, [FluidModT, FluidModT], :int |
.new_fluid_audio_driver(settings, synth) ⇒ FluidAudioDriverT
(Not documented)
1644 |
# File 'lib/ffi-fluidsynth.rb', line 1644 attach_function :new_fluid_audio_driver, :new_fluid_audio_driver, [FluidHashtableT, FluidSynthT], FluidAudioDriverT |
.new_fluid_audio_driver2(settings, func, data) ⇒ FluidAudioDriverT
(Not documented)
1654 |
# File 'lib/ffi-fluidsynth.rb', line 1654 attach_function :new_fluid_audio_driver2, :new_fluid_audio_driver2, [FluidHashtableT, :audio_func_t, :pointer], FluidAudioDriverT |
.new_fluid_event ⇒ FluidEventT
(Not documented)
1774 |
# File 'lib/ffi-fluidsynth.rb', line 1774 attach_function :new_fluid_event, :new_fluid_event, [], FluidEventT |
.new_fluid_file_renderer(synth) ⇒ FluidFileRendererT
(Not documented)
1670 |
# File 'lib/ffi-fluidsynth.rb', line 1670 attach_function :new_fluid_file_renderer, :new_fluid_file_renderer, [FluidSynthT], FluidFileRendererT |
.new_fluid_midi_driver(settings, handler, event_handler_data) ⇒ FluidMidiDriverT
(Not documented)
2477 |
# File 'lib/ffi-fluidsynth.rb', line 2477 attach_function :new_fluid_midi_driver, :new_fluid_midi_driver, [FluidHashtableT, :handle_midi_event_func_t, :pointer], FluidMidiDriverT |
.new_fluid_midi_event ⇒ FluidMidiEventT
(Not documented)
2137 |
# File 'lib/ffi-fluidsynth.rb', line 2137 attach_function :new_fluid_midi_event, :new_fluid_midi_event, [], FluidMidiEventT |
.new_fluid_midi_router(settings, handler, event_handler_data) ⇒ FluidMidiRouterT
(Not documented)
2355 |
# File 'lib/ffi-fluidsynth.rb', line 2355 attach_function :new_fluid_midi_router, :new_fluid_midi_router, [FluidHashtableT, :handle_midi_event_func_t, :pointer], FluidMidiRouterT |
.new_fluid_midi_router_rule ⇒ FluidMidiRouterRuleT
(Not documented)
2396 |
# File 'lib/ffi-fluidsynth.rb', line 2396 attach_function :new_fluid_midi_router_rule, :new_fluid_midi_router_rule, [], FluidMidiRouterRuleT |
.new_fluid_player(synth) ⇒ FluidPlayerT
< Player is finished playing
2515 |
# File 'lib/ffi-fluidsynth.rb', line 2515 attach_function :new_fluid_player, :new_fluid_player, [FluidSynthT], FluidPlayerT |
.new_fluid_sequencer ⇒ FluidSequencerT
(Not documented)
2630 |
# File 'lib/ffi-fluidsynth.rb', line 2630 attach_function :new_fluid_sequencer, :new_fluid_sequencer, [], FluidSequencerT |
.new_fluid_sequencer2(use_system_timer) ⇒ FluidSequencerT
(Not documented)
2638 |
# File 'lib/ffi-fluidsynth.rb', line 2638 attach_function :new_fluid_sequencer2, :new_fluid_sequencer2, [:int], FluidSequencerT |
.new_fluid_settings ⇒ FluidHashtableT
(Not documented)
158 |
# File 'lib/ffi-fluidsynth.rb', line 158 attach_function :new_fluid_settings, :new_fluid_settings, [], FluidHashtableT |
.new_fluid_synth(settings) ⇒ FluidSynthT
(Not documented)
433 |
# File 'lib/ffi-fluidsynth.rb', line 433 attach_function :new_fluid_synth, :new_fluid_synth, [FluidHashtableT], FluidSynthT |
.player_add(player, midifile) ⇒ Integer
(Not documented)
2532 |
# File 'lib/ffi-fluidsynth.rb', line 2532 attach_function :player_add, :fluid_player_add, [FluidPlayerT, :string], :int |
.player_add_mem(player, buffer, len) ⇒ Integer
(Not documented)
2542 |
# File 'lib/ffi-fluidsynth.rb', line 2542 attach_function :player_add_mem, :fluid_player_add_mem, [FluidPlayerT, :pointer, :ulong], :int |
.player_get_status(player) ⇒ Integer
(Not documented)
2601 |
# File 'lib/ffi-fluidsynth.rb', line 2601 attach_function :player_get_status, :fluid_player_get_status, [FluidPlayerT], :int |
.player_join(player) ⇒ Integer
(Not documented)
2566 |
# File 'lib/ffi-fluidsynth.rb', line 2566 attach_function :player_join, :fluid_player_join, [FluidPlayerT], :int |
.player_play(player) ⇒ Integer
(Not documented)
2550 |
# File 'lib/ffi-fluidsynth.rb', line 2550 attach_function :player_play, :fluid_player_play, [FluidPlayerT], :int |
.player_set_bpm(player, bpm) ⇒ Integer
(Not documented)
2593 |
# File 'lib/ffi-fluidsynth.rb', line 2593 attach_function :player_set_bpm, :fluid_player_set_bpm, [FluidPlayerT, :int], :int |
.player_set_loop(player, loop) ⇒ Integer
(Not documented)
2575 |
# File 'lib/ffi-fluidsynth.rb', line 2575 attach_function :player_set_loop, :fluid_player_set_loop, [FluidPlayerT, :int], :int |
.player_set_midi_tempo(player, tempo) ⇒ Integer
(Not documented)
2584 |
# File 'lib/ffi-fluidsynth.rb', line 2584 attach_function :player_set_midi_tempo, :fluid_player_set_midi_tempo, [FluidPlayerT, :int], :int |
.player_set_playback_callback(player, handler, handler_data) ⇒ Integer
(Not documented)
2611 |
# File 'lib/ffi-fluidsynth.rb', line 2611 attach_function :player_set_playback_callback, :fluid_player_set_playback_callback, [FluidPlayerT, :handle_midi_event_func_t, :pointer], :int |
.player_stop(player) ⇒ Integer
(Not documented)
2558 |
# File 'lib/ffi-fluidsynth.rb', line 2558 attach_function :player_stop, :fluid_player_stop, [FluidPlayerT], :int |
.sequencer_add_midi_event_to_buffer(data, event) ⇒ Integer
(Not documented)
2792 |
# File 'lib/ffi-fluidsynth.rb', line 2792 attach_function :sequencer_add_midi_event_to_buffer, :fluid_sequencer_add_midi_event_to_buffer, [:pointer, FluidMidiEventT], :int |
.sequencer_client_is_dest(seq, id) ⇒ Integer
(Not documented)
2709 |
# File 'lib/ffi-fluidsynth.rb', line 2709 attach_function :sequencer_client_is_dest, :fluid_sequencer_client_is_dest, [FluidSequencerT, :int], :int |
.sequencer_count_clients(seq) ⇒ Integer
(Not documented)
2682 |
# File 'lib/ffi-fluidsynth.rb', line 2682 attach_function :sequencer_count_clients, :fluid_sequencer_count_clients, [FluidSequencerT], :int |
.sequencer_get_client_id(seq, index) ⇒ Integer
(Not documented)
2691 |
# File 'lib/ffi-fluidsynth.rb', line 2691 attach_function :sequencer_get_client_id, :fluid_sequencer_get_client_id, [FluidSequencerT, :int], :short |
.sequencer_get_client_name(seq, id) ⇒ String
(Not documented)
2700 |
# File 'lib/ffi-fluidsynth.rb', line 2700 attach_function :sequencer_get_client_name, :fluid_sequencer_get_client_name, [FluidSequencerT, :int], :string |
.sequencer_get_tick(seq) ⇒ Integer
(Not documented)
2757 |
# File 'lib/ffi-fluidsynth.rb', line 2757 attach_function :sequencer_get_tick, :fluid_sequencer_get_tick, [FluidSequencerT], :uint |
.sequencer_get_time_scale(seq) ⇒ Float
(Not documented)
2774 |
# File 'lib/ffi-fluidsynth.rb', line 2774 attach_function :sequencer_get_time_scale, :fluid_sequencer_get_time_scale, [FluidSequencerT], :double |
.sequencer_get_use_system_timer(seq) ⇒ Integer
(Not documented)
2654 |
# File 'lib/ffi-fluidsynth.rb', line 2654 attach_function :sequencer_get_use_system_timer, :fluid_sequencer_get_use_system_timer, [FluidSequencerT], :int |
.sequencer_process(seq, msec) ⇒ nil
(Not documented)
2718 |
# File 'lib/ffi-fluidsynth.rb', line 2718 attach_function :sequencer_process, :fluid_sequencer_process, [FluidSequencerT, :uint], :void |
.sequencer_register_client(seq, name, callback, data) ⇒ Integer
(Not documented)
2665 |
# File 'lib/ffi-fluidsynth.rb', line 2665 attach_function :sequencer_register_client, :fluid_sequencer_register_client, [FluidSequencerT, :string, :event_callback_t, :pointer], :short |
.sequencer_register_fluidsynth(seq, synth) ⇒ Integer
(Not documented)
2783 |
# File 'lib/ffi-fluidsynth.rb', line 2783 attach_function :sequencer_register_fluidsynth, :fluid_sequencer_register_fluidsynth, [FluidSequencerT, FluidSynthT], :short |
.sequencer_remove_events(seq, source, dest, type) ⇒ nil
(Not documented)
2749 |
# File 'lib/ffi-fluidsynth.rb', line 2749 attach_function :sequencer_remove_events, :fluid_sequencer_remove_events, [FluidSequencerT, :short, :short, :int], :void |
.sequencer_send_at(seq, evt, time, absolute) ⇒ Integer
(Not documented)
2738 |
# File 'lib/ffi-fluidsynth.rb', line 2738 attach_function :sequencer_send_at, :fluid_sequencer_send_at, [FluidSequencerT, FluidEventT, :uint, :int], :int |
.sequencer_send_now(seq, evt) ⇒ nil
(Not documented)
2727 |
# File 'lib/ffi-fluidsynth.rb', line 2727 attach_function :sequencer_send_now, :fluid_sequencer_send_now, [FluidSequencerT, FluidEventT], :void |
.sequencer_set_time_scale(seq, scale) ⇒ nil
(Not documented)
2766 |
# File 'lib/ffi-fluidsynth.rb', line 2766 attach_function :sequencer_set_time_scale, :fluid_sequencer_set_time_scale, [FluidSequencerT, :double], :void |
.sequencer_unregister_client(seq, id) ⇒ nil
(Not documented)
2674 |
# File 'lib/ffi-fluidsynth.rb', line 2674 attach_function :sequencer_unregister_client, :fluid_sequencer_unregister_client, [FluidSequencerT, :short], :void |
.set_log_function(level, fun, data) ⇒ Proc(_callback_log_function_t_)
(Not documented)
2843 |
# File 'lib/ffi-fluidsynth.rb', line 2843 attach_function :set_log_function, :fluid_set_log_function, [:int, :log_function_t, :pointer], :log_function_t |
.settings_copystr(settings, name, str, len) ⇒ Integer
(Not documented)
214 |
# File 'lib/ffi-fluidsynth.rb', line 214 attach_function :settings_copystr, :fluid_settings_copystr, [FluidHashtableT, :string, :string, :int], :int |
.settings_dupstr(settings, name, str) ⇒ Integer
(Not documented)
224 |
# File 'lib/ffi-fluidsynth.rb', line 224 attach_function :settings_dupstr, :fluid_settings_dupstr, [FluidHashtableT, :string, :pointer], :int |
.settings_foreach(settings, data, func) ⇒ nil
(Not documented)
401 |
# File 'lib/ffi-fluidsynth.rb', line 401 attach_function :settings_foreach, :fluid_settings_foreach, [FluidHashtableT, :pointer, :settings_foreach_t], :void |
.settings_foreach_option(settings, name, data, func) ⇒ nil
(Not documented)
358 |
# File 'lib/ffi-fluidsynth.rb', line 358 attach_function :settings_foreach_option, :fluid_settings_foreach_option, [FluidHashtableT, :string, :pointer, :settings_foreach_option_t], :void |
.settings_get_hints(settings, name) ⇒ Integer
(Not documented)
184 |
# File 'lib/ffi-fluidsynth.rb', line 184 attach_function :settings_get_hints, :fluid_settings_get_hints, [FluidHashtableT, :string], :int |
.settings_get_type(settings, name) ⇒ Integer
(Not documented)
175 |
# File 'lib/ffi-fluidsynth.rb', line 175 attach_function :settings_get_type, :fluid_settings_get_type, [FluidHashtableT, :string], :int |
.settings_getint(settings, name, val) ⇒ Integer
(Not documented)
313 |
# File 'lib/ffi-fluidsynth.rb', line 313 attach_function :settings_getint, :fluid_settings_getint, [FluidHashtableT, :string, :pointer], :int |
.settings_getint_default(settings, name) ⇒ Integer
(Not documented)
322 |
# File 'lib/ffi-fluidsynth.rb', line 322 attach_function :settings_getint_default, :fluid_settings_getint_default, [FluidHashtableT, :string], :int |
.settings_getint_range(settings, name, min, max) ⇒ nil
(Not documented)
333 |
# File 'lib/ffi-fluidsynth.rb', line 333 attach_function :settings_getint_range, :fluid_settings_getint_range, [FluidHashtableT, :string, :pointer, :pointer], :void |
.settings_getnum(settings, name, val) ⇒ Integer
(Not documented)
273 |
# File 'lib/ffi-fluidsynth.rb', line 273 attach_function :settings_getnum, :fluid_settings_getnum, [FluidHashtableT, :string, :pointer], :int |
.settings_getnum_default(settings, name) ⇒ Float
(Not documented)
282 |
# File 'lib/ffi-fluidsynth.rb', line 282 attach_function :settings_getnum_default, :fluid_settings_getnum_default, [FluidHashtableT, :string], :double |
.settings_getnum_range(settings, name, min, max) ⇒ nil
(Not documented)
293 |
# File 'lib/ffi-fluidsynth.rb', line 293 attach_function :settings_getnum_range, :fluid_settings_getnum_range, [FluidHashtableT, :string, :pointer, :pointer], :void |
.settings_getstr(settings, name, str) ⇒ Integer
(Not documented)
234 |
# File 'lib/ffi-fluidsynth.rb', line 234 attach_function :settings_getstr, :fluid_settings_getstr, [FluidHashtableT, :string, :pointer], :int |
.settings_getstr_default(settings, name) ⇒ String
(Not documented)
243 |
# File 'lib/ffi-fluidsynth.rb', line 243 attach_function :settings_getstr_default, :fluid_settings_getstr_default, [FluidHashtableT, :string], :string |
.settings_is_realtime(settings, name) ⇒ Integer
(Not documented)
193 |
# File 'lib/ffi-fluidsynth.rb', line 193 attach_function :settings_is_realtime, :fluid_settings_is_realtime, [FluidHashtableT, :string], :int |
.settings_option_concat(settings, name, separator) ⇒ String
(Not documented)
377 |
# File 'lib/ffi-fluidsynth.rb', line 377 attach_function :settings_option_concat, :fluid_settings_option_concat, [FluidHashtableT, :string, :string], :string |
.settings_option_count(settings, name) ⇒ Integer
(Not documented)
367 |
# File 'lib/ffi-fluidsynth.rb', line 367 attach_function :settings_option_count, :fluid_settings_option_count, [FluidHashtableT, :string], :int |
.settings_setint(settings, name, val) ⇒ Integer
(Not documented)
303 |
# File 'lib/ffi-fluidsynth.rb', line 303 attach_function :settings_setint, :fluid_settings_setint, [FluidHashtableT, :string, :int], :int |
.settings_setnum(settings, name, val) ⇒ Integer
(Not documented)
263 |
# File 'lib/ffi-fluidsynth.rb', line 263 attach_function :settings_setnum, :fluid_settings_setnum, [FluidHashtableT, :string, :double], :int |
.settings_setstr(settings, name, str) ⇒ Integer
(Not documented)
203 |
# File 'lib/ffi-fluidsynth.rb', line 203 attach_function :settings_setstr, :fluid_settings_setstr, [FluidHashtableT, :string, :string], :int |
.settings_str_equal(settings, name, value) ⇒ Integer
(Not documented)
253 |
# File 'lib/ffi-fluidsynth.rb', line 253 attach_function :settings_str_equal, :fluid_settings_str_equal, [FluidHashtableT, :string, :string], :int |
.synth_activate_key_tuning(synth, bank, prog, name, pitch, apply) ⇒ Integer
(Not documented)
1153 |
# File 'lib/ffi-fluidsynth.rb', line 1153 attach_function :synth_activate_key_tuning, :fluid_synth_activate_key_tuning, [FluidSynthT, :int, :int, :string, :pointer, :int], :int |
.synth_activate_octave_tuning(synth, bank, prog, name, pitch, apply) ⇒ Integer
(Not documented)
1178 |
# File 'lib/ffi-fluidsynth.rb', line 1178 attach_function :synth_activate_octave_tuning, :fluid_synth_activate_octave_tuning, [FluidSynthT, :int, :int, :string, :pointer, :int], :int |
.synth_activate_tuning(synth, chan, bank, prog, apply) ⇒ Integer
(Not documented)
1215 |
# File 'lib/ffi-fluidsynth.rb', line 1215 attach_function :synth_activate_tuning, :fluid_synth_activate_tuning, [FluidSynthT, :int, :int, :int, :int], :int |
.synth_add_sfloader(synth, loader) ⇒ nil
Synthesizer’s interface to handle SoundFont loaders
1374 |
# File 'lib/ffi-fluidsynth.rb', line 1374 attach_function :synth_add_sfloader, :fluid_synth_add_sfloader, [FluidSynthT, :pointer], :void |
.synth_add_sfont(synth, sfont) ⇒ Integer
(Not documented)
773 |
# File 'lib/ffi-fluidsynth.rb', line 773 attach_function :synth_add_sfont, :fluid_synth_add_sfont, [FluidSynthT, :pointer], :int |
.synth_all_notes_off(synth, chan) ⇒ Integer
(Not documented)
666 |
# File 'lib/ffi-fluidsynth.rb', line 666 attach_function :synth_all_notes_off, :fluid_synth_all_notes_off, [FluidSynthT, :int], :int |
.synth_all_sounds_off(synth, chan) ⇒ Integer
(Not documented)
675 |
# File 'lib/ffi-fluidsynth.rb', line 675 attach_function :synth_all_sounds_off, :fluid_synth_all_sounds_off, [FluidSynthT, :int], :int |
.synth_alloc_voice(synth, sample, channum, key, vel) ⇒ FluidVoiceT
(Not documented)
1386 |
# File 'lib/ffi-fluidsynth.rb', line 1386 attach_function :synth_alloc_voice, :fluid_synth_alloc_voice, [FluidSynthT, :pointer, :int, :int, :int], FluidVoiceT |
.synth_bank_select(synth, chan, bank) ⇒ Integer
(Not documented)
576 |
# File 'lib/ffi-fluidsynth.rb', line 576 attach_function :synth_bank_select, :fluid_synth_bank_select, [FluidSynthT, :int, :uint], :int |
.synth_cc(synth, chan, ctrl, val) ⇒ Integer
(Not documented)
481 |
# File 'lib/ffi-fluidsynth.rb', line 481 attach_function :synth_cc, :fluid_synth_cc, [FluidSynthT, :int, :int, :int], :int |
.synth_channel_pressure(synth, chan, val) ⇒ Integer
(Not documented)
566 |
# File 'lib/ffi-fluidsynth.rb', line 566 attach_function :synth_channel_pressure, :fluid_synth_channel_pressure, [FluidSynthT, :int, :int], :int |
.synth_count_audio_channels(synth) ⇒ Integer
(Not documented)
985 |
# File 'lib/ffi-fluidsynth.rb', line 985 attach_function :synth_count_audio_channels, :fluid_synth_count_audio_channels, [FluidSynthT], :int |
.synth_count_audio_groups(synth) ⇒ Integer
(Not documented)
993 |
# File 'lib/ffi-fluidsynth.rb', line 993 attach_function :synth_count_audio_groups, :fluid_synth_count_audio_groups, [FluidSynthT], :int |
.synth_count_effects_channels(synth) ⇒ Integer
(Not documented)
1001 |
# File 'lib/ffi-fluidsynth.rb', line 1001 attach_function :synth_count_effects_channels, :fluid_synth_count_effects_channels, [FluidSynthT], :int |
.synth_count_midi_channels(synth) ⇒ Integer
Audio and MIDI channels
977 |
# File 'lib/ffi-fluidsynth.rb', line 977 attach_function :synth_count_midi_channels, :fluid_synth_count_midi_channels, [FluidSynthT], :int |
.synth_create_key_tuning(synth, bank, prog, name, pitch) ⇒ Integer
Tuning
1140 |
# File 'lib/ffi-fluidsynth.rb', line 1140 attach_function :synth_create_key_tuning, :fluid_synth_create_key_tuning, [FluidSynthT, :int, :int, :string, :pointer], :int |
.synth_create_octave_tuning(synth, bank, prog, name, pitch) ⇒ Integer
(Not documented)
1165 |
# File 'lib/ffi-fluidsynth.rb', line 1165 attach_function :synth_create_octave_tuning, :fluid_synth_create_octave_tuning, [FluidSynthT, :int, :int, :string, :pointer], :int |
.synth_deactivate_tuning(synth, chan, apply) ⇒ Integer
(Not documented)
1234 |
# File 'lib/ffi-fluidsynth.rb', line 1234 attach_function :synth_deactivate_tuning, :fluid_synth_deactivate_tuning, [FluidSynthT, :int, :int], :int |
.synth_error(synth) ⇒ String
(Not documented)
1281 |
# File 'lib/ffi-fluidsynth.rb', line 1281 attach_function :synth_error, :fluid_synth_error, [FluidSynthT], :string |
.synth_get_active_voice_count(synth) ⇒ Integer
(Not documented)
1052 |
# File 'lib/ffi-fluidsynth.rb', line 1052 attach_function :synth_get_active_voice_count, :fluid_synth_get_active_voice_count, [FluidSynthT], :int |
.synth_get_bank_offset(synth, sfont_id) ⇒ Integer
(Not documented)
836 |
# File 'lib/ffi-fluidsynth.rb', line 836 attach_function :synth_get_bank_offset, :fluid_synth_get_bank_offset, [FluidSynthT, :int], :int |
.synth_get_cc(synth, chan, ctrl, pval) ⇒ Integer
(Not documented)
492 |
# File 'lib/ffi-fluidsynth.rb', line 492 attach_function :synth_get_cc, :fluid_synth_get_cc, [FluidSynthT, :int, :int, :pointer], :int |
.synth_get_channel_info(synth, chan, info) ⇒ Integer
(Not documented)
641 |
# File 'lib/ffi-fluidsynth.rb', line 641 attach_function :synth_get_channel_info, :fluid_synth_get_channel_info, [FluidSynthT, :int, FluidSynthChannelInfoT], :int |
.synth_get_channel_preset(synth, chan) ⇒ FFI::Pointer(*PresetT)
Low level access
712 |
# File 'lib/ffi-fluidsynth.rb', line 712 attach_function :synth_get_channel_preset, :fluid_synth_get_channel_preset, [FluidSynthT, :int], :pointer |
.synth_get_chorus_depth_ms(synth) ⇒ Float
(Not documented)
961 |
# File 'lib/ffi-fluidsynth.rb', line 961 attach_function :synth_get_chorus_depth_ms, :fluid_synth_get_chorus_depth_ms, [FluidSynthT], :double |
.synth_get_chorus_level(synth) ⇒ Float
(Not documented)
945 |
# File 'lib/ffi-fluidsynth.rb', line 945 attach_function :synth_get_chorus_level, :fluid_synth_get_chorus_level, [FluidSynthT], :double |
.synth_get_chorus_nr(synth) ⇒ Integer
(Not documented)
937 |
# File 'lib/ffi-fluidsynth.rb', line 937 attach_function :synth_get_chorus_nr, :fluid_synth_get_chorus_nr, [FluidSynthT], :int |
.synth_get_chorus_speed_hz(synth) ⇒ Float
(Not documented)
953 |
# File 'lib/ffi-fluidsynth.rb', line 953 attach_function :synth_get_chorus_speed_hz, :fluid_synth_get_chorus_speed_Hz, [FluidSynthT], :double |
.synth_get_chorus_type(synth) ⇒ Integer
(Not documented)
969 |
# File 'lib/ffi-fluidsynth.rb', line 969 attach_function :synth_get_chorus_type, :fluid_synth_get_chorus_type, [FluidSynthT], :int |
.synth_get_cpu_load(synth) ⇒ Float
Misc
1273 |
# File 'lib/ffi-fluidsynth.rb', line 1273 attach_function :synth_get_cpu_load, :fluid_synth_get_cpu_load, [FluidSynthT], :double |
.synth_get_gain(synth) ⇒ Float
(Not documented)
1027 |
# File 'lib/ffi-fluidsynth.rb', line 1027 attach_function :synth_get_gain, :fluid_synth_get_gain, [FluidSynthT], :float |
.synth_get_gen(synth, chan, param) ⇒ Float
(Not documented)
1128 |
# File 'lib/ffi-fluidsynth.rb', line 1128 attach_function :synth_get_gen, :fluid_synth_get_gen, [FluidSynthT, :int, :int], :float |
.synth_get_internal_bufsize(synth) ⇒ Integer
(Not documented)
1060 |
# File 'lib/ffi-fluidsynth.rb', line 1060 attach_function :synth_get_internal_bufsize, :fluid_synth_get_internal_bufsize, [FluidSynthT], :int |
.synth_get_pitch_bend(synth, chan, ppitch_bend) ⇒ Integer
(Not documented)
526 |
# File 'lib/ffi-fluidsynth.rb', line 526 attach_function :synth_get_pitch_bend, :fluid_synth_get_pitch_bend, [FluidSynthT, :int, :pointer], :int |
.synth_get_pitch_wheel_sens(synth, chan, pval) ⇒ Integer
(Not documented)
546 |
# File 'lib/ffi-fluidsynth.rb', line 546 attach_function :synth_get_pitch_wheel_sens, :fluid_synth_get_pitch_wheel_sens, [FluidSynthT, :int, :pointer], :int |
.synth_get_polyphony(synth) ⇒ Integer
(Not documented)
1044 |
# File 'lib/ffi-fluidsynth.rb', line 1044 attach_function :synth_get_polyphony, :fluid_synth_get_polyphony, [FluidSynthT], :int |
.synth_get_program(synth, chan, sfont_id, bank_num, preset_num) ⇒ Integer
(Not documented)
622 |
# File 'lib/ffi-fluidsynth.rb', line 622 attach_function :synth_get_program, :fluid_synth_get_program, [FluidSynthT, :int, :pointer, :pointer, :pointer], :int |
.synth_get_reverb_damp(synth) ⇒ Float
(Not documented)
873 |
# File 'lib/ffi-fluidsynth.rb', line 873 attach_function :synth_get_reverb_damp, :fluid_synth_get_reverb_damp, [FluidSynthT], :double |
.synth_get_reverb_level(synth) ⇒ Float
(Not documented)
881 |
# File 'lib/ffi-fluidsynth.rb', line 881 attach_function :synth_get_reverb_level, :fluid_synth_get_reverb_level, [FluidSynthT], :double |
.synth_get_reverb_roomsize(synth) ⇒ Float
(Not documented)
865 |
# File 'lib/ffi-fluidsynth.rb', line 865 attach_function :synth_get_reverb_roomsize, :fluid_synth_get_reverb_roomsize, [FluidSynthT], :double |
.synth_get_reverb_width(synth) ⇒ Float
(Not documented)
889 |
# File 'lib/ffi-fluidsynth.rb', line 889 attach_function :synth_get_reverb_width, :fluid_synth_get_reverb_width, [FluidSynthT], :double |
.synth_get_settings(synth) ⇒ FluidHashtableT
(Not documented)
449 |
# File 'lib/ffi-fluidsynth.rb', line 449 attach_function :synth_get_settings, :fluid_synth_get_settings, [FluidSynthT], FluidHashtableT |
.synth_get_sfont(synth, num) ⇒ FFI::Pointer(*SfontT)
(Not documented)
799 |
# File 'lib/ffi-fluidsynth.rb', line 799 attach_function :synth_get_sfont, :fluid_synth_get_sfont, [FluidSynthT, :uint], :pointer |
.synth_get_sfont_by_id(synth, id) ⇒ FFI::Pointer(*SfontT)
(Not documented)
808 |
# File 'lib/ffi-fluidsynth.rb', line 808 attach_function :synth_get_sfont_by_id, :fluid_synth_get_sfont_by_id, [FluidSynthT, :uint], :pointer |
.synth_get_sfont_by_name(synth, name) ⇒ FFI::Pointer(*SfontT)
(Not documented)
817 |
# File 'lib/ffi-fluidsynth.rb', line 817 attach_function :synth_get_sfont_by_name, :fluid_synth_get_sfont_by_name, [FluidSynthT, :string], :pointer |
.synth_get_voicelist(synth, buf, bufsize, id) ⇒ nil
(Not documented)
1406 |
# File 'lib/ffi-fluidsynth.rb', line 1406 attach_function :synth_get_voicelist, :fluid_synth_get_voicelist, [FluidSynthT, :pointer, :int, :int], :void |
.synth_handle_midi_event(data, event) ⇒ Integer
(Not documented)
1415 |
# File 'lib/ffi-fluidsynth.rb', line 1415 attach_function :synth_handle_midi_event, :fluid_synth_handle_midi_event, [:pointer, FluidMidiEventT], :int |
.synth_noteoff(synth, chan, key) ⇒ Integer
(Not documented)
470 |
# File 'lib/ffi-fluidsynth.rb', line 470 attach_function :synth_noteoff, :fluid_synth_noteoff, [FluidSynthT, :int, :int], :int |
.synth_noteon(synth, chan, key, vel) ⇒ Integer
MIDI channel messages
460 |
# File 'lib/ffi-fluidsynth.rb', line 460 attach_function :synth_noteon, :fluid_synth_noteon, [FluidSynthT, :int, :int, :int], :int |
.synth_nwrite_float(synth, len, left, right, fx_left, fx_right) ⇒ Integer
(Not documented)
1328 |
# File 'lib/ffi-fluidsynth.rb', line 1328 attach_function :synth_nwrite_float, :fluid_synth_nwrite_float, [FluidSynthT, :int, :pointer, :pointer, :pointer, :pointer], :int |
.synth_pitch_bend(synth, chan, val) ⇒ Integer
(Not documented)
516 |
# File 'lib/ffi-fluidsynth.rb', line 516 attach_function :synth_pitch_bend, :fluid_synth_pitch_bend, [FluidSynthT, :int, :int], :int |
.synth_pitch_wheel_sens(synth, chan, val) ⇒ Integer
(Not documented)
536 |
# File 'lib/ffi-fluidsynth.rb', line 536 attach_function :synth_pitch_wheel_sens, :fluid_synth_pitch_wheel_sens, [FluidSynthT, :int, :int], :int |
.synth_process(synth, len, nin) ⇒ Integer
(Not documented)
1341 |
# File 'lib/ffi-fluidsynth.rb', line 1341 attach_function :synth_process, :fluid_synth_process, [FluidSynthT, :int, :int, :pointer, :int, :pointer], :int |
.synth_program_change(synth, chan, program) ⇒ Integer
(Not documented)
556 |
# File 'lib/ffi-fluidsynth.rb', line 556 attach_function :synth_program_change, :fluid_synth_program_change, [FluidSynthT, :int, :int], :int |
.synth_program_reset(synth) ⇒ Integer
(Not documented)
649 |
# File 'lib/ffi-fluidsynth.rb', line 649 attach_function :synth_program_reset, :fluid_synth_program_reset, [FluidSynthT], :int |
.synth_program_select(synth, chan, sfont_id, bank_num, preset_num) ⇒ Integer
(Not documented)
598 |
# File 'lib/ffi-fluidsynth.rb', line 598 attach_function :synth_program_select, :fluid_synth_program_select, [FluidSynthT, :int, :uint, :uint, :uint], :int |
.synth_program_select_by_sfont_name(synth, chan, sfont_name, bank_num, preset_num) ⇒ Integer
(Not documented)
610 |
# File 'lib/ffi-fluidsynth.rb', line 610 attach_function :synth_program_select_by_sfont_name, :fluid_synth_program_select_by_sfont_name, [FluidSynthT, :int, :string, :uint, :uint], :int |
.synth_remove_sfont(synth, sfont) ⇒ nil
(Not documented)
782 |
# File 'lib/ffi-fluidsynth.rb', line 782 attach_function :synth_remove_sfont, :fluid_synth_remove_sfont, [FluidSynthT, :pointer], :void |
.synth_reset_tuning(synth, chan) ⇒ Integer
(Not documented)
1224 |
# File 'lib/ffi-fluidsynth.rb', line 1224 attach_function :synth_reset_tuning, :fluid_synth_reset_tuning, [FluidSynthT, :int], :int |
.synth_select_tuning(synth, chan, bank, prog) ⇒ Integer
(Not documented)
1203 |
# File 'lib/ffi-fluidsynth.rb', line 1203 attach_function :synth_select_tuning, :fluid_synth_select_tuning, [FluidSynthT, :int, :int, :int], :int |
.synth_set_bank_offset(synth, sfont_id, offset) ⇒ Integer
(Not documented)
827 |
# File 'lib/ffi-fluidsynth.rb', line 827 attach_function :synth_set_bank_offset, :fluid_synth_set_bank_offset, [FluidSynthT, :int, :int], :int |
.synth_set_channel_type(synth, chan, type) ⇒ Integer
(Not documented)
703 |
# File 'lib/ffi-fluidsynth.rb', line 703 attach_function :synth_set_channel_type, :fluid_synth_set_channel_type, [FluidSynthT, :int, :int], :int |
.synth_set_chorus(synth, nr, level, speed, depth_ms, type) ⇒ nil
< Triangle wave chorus modulation
920 |
# File 'lib/ffi-fluidsynth.rb', line 920 attach_function :synth_set_chorus, :fluid_synth_set_chorus, [FluidSynthT, :int, :double, :double, :double, :int], :void |
.synth_set_chorus_on(synth, on) ⇒ nil
(Not documented)
929 |
# File 'lib/ffi-fluidsynth.rb', line 929 attach_function :synth_set_chorus_on, :fluid_synth_set_chorus_on, [FluidSynthT, :int], :void |
.synth_set_gain(synth, gain) ⇒ nil
(Not documented)
1019 |
# File 'lib/ffi-fluidsynth.rb', line 1019 attach_function :synth_set_gain, :fluid_synth_set_gain, [FluidSynthT, :float], :void |
.synth_set_gen(synth, chan, param, value) ⇒ Integer
Generator interface
1105 |
# File 'lib/ffi-fluidsynth.rb', line 1105 attach_function :synth_set_gen, :fluid_synth_set_gen, [FluidSynthT, :int, :int, :float], :int |
.synth_set_gen2(synth, chan, param, value, absolute, normalized) ⇒ Integer
(Not documented)
1118 |
# File 'lib/ffi-fluidsynth.rb', line 1118 attach_function :synth_set_gen2, :fluid_synth_set_gen2, [FluidSynthT, :int, :int, :float, :int, :int], :int |
.synth_set_interp_method(synth, chan, interp_method) ⇒ Integer
(Not documented)
1070 |
# File 'lib/ffi-fluidsynth.rb', line 1070 attach_function :synth_set_interp_method, :fluid_synth_set_interp_method, [FluidSynthT, :int, :int], :int |
.synth_set_midi_router(synth, router) ⇒ nil
(Not documented)
1424 |
# File 'lib/ffi-fluidsynth.rb', line 1424 attach_function :synth_set_midi_router, :fluid_synth_set_midi_router, [FluidSynthT, FluidMidiRouterT], :void |
.synth_set_polyphony(synth, polyphony) ⇒ Integer
(Not documented)
1036 |
# File 'lib/ffi-fluidsynth.rb', line 1036 attach_function :synth_set_polyphony, :fluid_synth_set_polyphony, [FluidSynthT, :int], :int |
.synth_set_reverb(synth, roomsize, damping, width, level) ⇒ nil
Reverb
848 |
# File 'lib/ffi-fluidsynth.rb', line 848 attach_function :synth_set_reverb, :fluid_synth_set_reverb, [FluidSynthT, :double, :double, :double, :double], :void |
.synth_set_reverb_on(synth, on) ⇒ nil
(Not documented)
857 |
# File 'lib/ffi-fluidsynth.rb', line 857 attach_function :synth_set_reverb_on, :fluid_synth_set_reverb_on, [FluidSynthT, :int], :void |
.synth_set_sample_rate(synth, sample_rate) ⇒ nil
Synthesis parameters
1010 |
# File 'lib/ffi-fluidsynth.rb', line 1010 attach_function :synth_set_sample_rate, :fluid_synth_set_sample_rate, [FluidSynthT, :float], :void |
.synth_sfcount(synth) ⇒ Integer
(Not documented)
790 |
# File 'lib/ffi-fluidsynth.rb', line 790 attach_function :synth_sfcount, :fluid_synth_sfcount, [FluidSynthT], :int |
.synth_sfload(synth, filename, reset_presets) ⇒ Integer
SoundFont management
745 |
# File 'lib/ffi-fluidsynth.rb', line 745 attach_function :synth_sfload, :fluid_synth_sfload, [FluidSynthT, :string, :int], :int |
.synth_sfont_select(synth, chan, sfont_id) ⇒ Integer
(Not documented)
586 |
# File 'lib/ffi-fluidsynth.rb', line 586 attach_function :synth_sfont_select, :fluid_synth_sfont_select, [FluidSynthT, :int, :uint], :int |
.synth_sfreload(synth, id) ⇒ Integer
(Not documented)
754 |
# File 'lib/ffi-fluidsynth.rb', line 754 attach_function :synth_sfreload, :fluid_synth_sfreload, [FluidSynthT, :uint], :int |
.synth_sfunload(synth, id, reset_presets) ⇒ Integer
(Not documented)
764 |
# File 'lib/ffi-fluidsynth.rb', line 764 attach_function :synth_sfunload, :fluid_synth_sfunload, [FluidSynthT, :uint, :int], :int |
.synth_start(synth, id, preset, audio_chan, midi_chan, key, vel) ⇒ Integer
(Not documented)
726 |
# File 'lib/ffi-fluidsynth.rb', line 726 attach_function :synth_start, :fluid_synth_start, [FluidSynthT, :uint, :pointer, :int, :int, :int, :int], :int |
.synth_start_voice(synth, voice) ⇒ nil
(Not documented)
1395 |
# File 'lib/ffi-fluidsynth.rb', line 1395 attach_function :synth_start_voice, :fluid_synth_start_voice, [FluidSynthT, FluidVoiceT], :void |
.synth_stop(synth, id) ⇒ Integer
(Not documented)
735 |
# File 'lib/ffi-fluidsynth.rb', line 735 attach_function :synth_stop, :fluid_synth_stop, [FluidSynthT, :uint], :int |
.synth_sysex(synth, data, len, response, response_len, handled, dryrun) ⇒ Integer
(Not documented)
506 |
# File 'lib/ffi-fluidsynth.rb', line 506 attach_function :synth_sysex, :fluid_synth_sysex, [FluidSynthT, :string, :int, :string, :pointer, :pointer, :int], :int |
.synth_system_reset(synth) ⇒ Integer
(Not documented)
657 |
# File 'lib/ffi-fluidsynth.rb', line 657 attach_function :synth_system_reset, :fluid_synth_system_reset, [FluidSynthT], :int |
.synth_tune_notes(synth, bank, prog, len, keys, pitch, apply) ⇒ Integer
(Not documented)
1192 |
# File 'lib/ffi-fluidsynth.rb', line 1192 attach_function :synth_tune_notes, :fluid_synth_tune_notes, [FluidSynthT, :int, :int, :int, :pointer, :pointer, :int], :int |
.synth_tuning_dump(synth, bank, prog, name, len, pitch) ⇒ Integer
(Not documented)
1265 |
# File 'lib/ffi-fluidsynth.rb', line 1265 attach_function :synth_tuning_dump, :fluid_synth_tuning_dump, [FluidSynthT, :int, :int, :string, :int, :pointer], :int |
.synth_tuning_iteration_next(synth, bank, prog) ⇒ Integer
(Not documented)
1252 |
# File 'lib/ffi-fluidsynth.rb', line 1252 attach_function :synth_tuning_iteration_next, :fluid_synth_tuning_iteration_next, [FluidSynthT, :pointer, :pointer], :int |
.synth_tuning_iteration_start(synth) ⇒ nil
(Not documented)
1242 |
# File 'lib/ffi-fluidsynth.rb', line 1242 attach_function :synth_tuning_iteration_start, :fluid_synth_tuning_iteration_start, [FluidSynthT], :void |
.synth_unset_program(synth, chan) ⇒ Integer
(Not documented)
631 |
# File 'lib/ffi-fluidsynth.rb', line 631 attach_function :synth_unset_program, :fluid_synth_unset_program, [FluidSynthT, :int], :int |
.synth_write_float(synth, len, lout, loff, lincr, rout, roff, rincr) ⇒ Integer
(Not documented)
1315 |
# File 'lib/ffi-fluidsynth.rb', line 1315 attach_function :synth_write_float, :fluid_synth_write_float, [FluidSynthT, :int, :pointer, :int, :int, :pointer, :int, :int], :int |
.synth_write_s16(synth, len, lout, loff, lincr, rout, roff, rincr) ⇒ Integer
Synthesizer plugin
To create a synthesizer plugin, create the synthesizer as explained above. Once the synthesizer is created you can call any of the functions below to get the audio.
1300 |
# File 'lib/ffi-fluidsynth.rb', line 1300 attach_function :synth_write_s16, :fluid_synth_write_s16, [FluidSynthT, :int, :pointer, :int, :int, :pointer, :int, :int], :int |
.version(major, minor, micro) ⇒ nil
(Not documented)
3438 |
# File 'lib/ffi-fluidsynth.rb', line 3438 attach_function :version, :fluid_version, [:pointer, :pointer, :pointer], :void |
.version_str ⇒ String
(Not documented)
3445 |
# File 'lib/ffi-fluidsynth.rb', line 3445 attach_function :version_str, :fluid_version_str, [], :string |
.voice_add_mod(voice, mod, mode) ⇒ nil
< For default modulators only, no need to check for duplicates
3375 |
# File 'lib/ffi-fluidsynth.rb', line 3375 attach_function :voice_add_mod, :fluid_voice_add_mod, [FluidVoiceT, FluidModT, :int], :void |
.voice_gen_get(voice, gen) ⇒ Float
(Not documented)
3394 |
# File 'lib/ffi-fluidsynth.rb', line 3394 attach_function :voice_gen_get, :fluid_voice_gen_get, [FluidVoiceT, :int], :float |
.voice_gen_incr(voice, gen, val) ⇒ nil
(Not documented)
3404 |
# File 'lib/ffi-fluidsynth.rb', line 3404 attach_function :voice_gen_incr, :fluid_voice_gen_incr, [FluidVoiceT, :int, :float], :void |
.voice_gen_set(voice, gen, val) ⇒ nil
(Not documented)
3385 |
# File 'lib/ffi-fluidsynth.rb', line 3385 attach_function :voice_gen_set, :fluid_voice_gen_set, [FluidVoiceT, :int, :float], :void |
.voice_get_id(voice) ⇒ Integer
(Not documented)
3412 |
# File 'lib/ffi-fluidsynth.rb', line 3412 attach_function :voice_get_id, :fluid_voice_get_id, [FluidVoiceT], :uint |
.voice_is_playing(voice) ⇒ Integer
(Not documented)
3420 |
# File 'lib/ffi-fluidsynth.rb', line 3420 attach_function :voice_is_playing, :fluid_voice_is_playing, [FluidVoiceT], :int |
.voice_optimize_sample(s) ⇒ Integer
(Not documented)
3428 |
# File 'lib/ffi-fluidsynth.rb', line 3428 attach_function :voice_optimize_sample, :fluid_voice_optimize_sample, [FluidSampleT], :int |
.voice_update_param(voice, gen) ⇒ nil
(Not documented)
3365 |
# File 'lib/ffi-fluidsynth.rb', line 3365 attach_function :voice_update_param, :fluid_voice_update_param, [FluidVoiceT, :int], :void |