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

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.

Parameters:

  • synth

    FluidSynth instance

  • len

    Count of audio frames to synthesize

  • out1

    Array to store left channel of audio to

  • loff

    Offset index in ‘out1’ for first sample

  • lincr

    Increment between samples stored to ‘out1’

  • out2

    Array to store right channel of audio to

  • roff

    Offset index in ‘out2’ for first sample

  • rincr

    Increment between samples stored to ‘out2’

  • len (Integer)
  • out1 (FFI::Pointer(*Void))
  • loff (Integer)
  • lincr (Integer)
  • out2 (FFI::Pointer(*Void))
  • roff (Integer)
  • rincr (Integer)

Returns:



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.

Parameters:

  • len (Integer)
  • nin (Integer)
  • in (FFI::Pointer(**Float))
  • nout (Integer)
  • out (FFI::Pointer(**Float))

Returns:

  • (FFI::Pointer(*Void))


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.

Parameters:

Returns:

  • (Integer)


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.

Parameters:

  • data

    User defined data pointer

  • event

    The MIDI event

  • event (FluidMidiEventT)

Returns:

  • Should return #FLUID_OK on success, #FLUID_FAILED otherwise

  • (FFI::Pointer(*Void))


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.

Parameters:

  • message (String)
  • data (FFI::Pointer(*Void))

Returns:

  • (Integer)


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.

Parameters:

  • data

    User defined data pointer

  • name

    Setting name

  • option

    A string option for this setting (iterates through the list)

  • name (String)
  • option (String)

Returns:

  • (FFI::Pointer(*Void))


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.

Parameters:

  • data

    User defined data pointer

  • name

    Setting name

  • type

    Setting type (#fluid_types_enum)

  • name (String)
  • type (Integer)

Returns:

  • (FFI::Pointer(*Void))


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

Returns:

  • (Symbol)


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

Returns:

  • (Symbol)


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)

Returns:

  • (Symbol)


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

Returns:

  • (Symbol)


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

Returns:

  • (Symbol)


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

Returns:

  • (Symbol)


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

Returns:

  • (Symbol)

Since:

  • 1.1.0



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)

Returns:

  • (Symbol)


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

Returns:

  • (Symbol)


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

Returns:

  • (Symbol)

Since:

  • 1.1.0



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

Returns:

  • (Symbol)


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

Returns:

  • (Symbol)


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)

Parameters:

  • level (Integer)
  • message (String)
  • data (FFI::Pointer(*Void))

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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

Parameters:

Returns:

  • (nil)


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

Parameters:

  • evt (FluidEventT)
  • channel (Integer)
  • bank_num (Integer)

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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

Parameters:

  • evt (FluidEventT)
  • channel (Integer)
  • control (Integer)
  • val (Integer)

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (FFI::Pointer(*Void))


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (nil)


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

Parameters:

  • evt (FluidEventT)
  • channel (Integer)
  • key (Integer)
  • vel (Integer)
  • duration (Integer)

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

  • evt (FluidEventT)
  • channel (Integer)
  • key (Integer)
  • vel (Integer)

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

  • evt (FluidEventT)
  • channel (Integer)
  • preset_num (Integer)

Returns:

  • (nil)


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)

Parameters:

  • evt (FluidEventT)
  • channel (Integer)
  • sfont_id (Integer)
  • bank_num (Integer)
  • preset_num (Integer)

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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

Parameters:

Returns:

  • (nil)


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

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • filename (String)

Returns:

  • (Integer)


2878
# File 'lib/ffi-fluidsynth.rb', line 2878

attach_function :is_midifile, :fluid_is_midifile, [:string], :int

.is_soundfont(filename) ⇒ Integer

(Not documented)

Parameters:

  • filename (String)

Returns:

  • (Integer)


2870
# File 'lib/ffi-fluidsynth.rb', line 2870

attach_function :is_soundfont, :fluid_is_soundfont, [:string], :int

.log(level, fmt) ⇒ Integer

(Not documented)

Parameters:

  • level (Integer)
  • fmt (String)

Returns:

  • (Integer)


2862
# File 'lib/ffi-fluidsynth.rb', line 2862

attach_function :log, :fluid_log, [:int, :string], :int

.midi_dump_postrouter(data, event) ⇒ Integer

(Not documented)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • evt (FluidMidiEventT)
  • data (FFI::Pointer(*Void))
  • size (Integer)
  • dynamic (Integer)

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (nil)


2998
# File 'lib/ffi-fluidsynth.rb', line 2998

attach_function :mod_delete, :fluid_mod_delete, [FluidModT], :void

.mod_get_amount(mod) ⇒ Float

(Not documented)

Parameters:

Returns:

  • (Float)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


3060
# File 'lib/ffi-fluidsynth.rb', line 3060

attach_function :mod_get_source2, :fluid_mod_get_source2, [FluidModT], :int

.mod_newFluidModT

(Not documented)

Returns:



2990
# File 'lib/ffi-fluidsynth.rb', line 2990

attach_function :mod_new, :fluid_mod_new, [], FluidModT

.mod_set_amount(mod, amount) ⇒ nil

(Not documented)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

  • mod (FluidModT)
  • src (Integer)
  • flags (Integer)

Returns:

  • (nil)


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)

Parameters:

  • mod (FluidModT)
  • src (Integer)
  • flags (Integer)

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:



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)

Parameters:

Returns:



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_eventFluidEventT

(Not documented)

Returns:



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)

Parameters:

Returns:



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)

Parameters:

Returns:



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_eventFluidMidiEventT

(Not documented)

Returns:



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)

Parameters:

Returns:



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_ruleFluidMidiRouterRuleT

(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

Parameters:

Returns:



2515
# File 'lib/ffi-fluidsynth.rb', line 2515

attach_function :new_fluid_player, :new_fluid_player, [FluidSynthT], FluidPlayerT

.new_fluid_sequencerFluidSequencerT

(Not documented)

Returns:



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)

Parameters:

  • use_system_timer (Integer)

Returns:



2638
# File 'lib/ffi-fluidsynth.rb', line 2638

attach_function :new_fluid_sequencer2, :new_fluid_sequencer2, [:int], FluidSequencerT

.new_fluid_settingsFluidHashtableT

(Not documented)

Returns:



158
# File 'lib/ffi-fluidsynth.rb', line 158

attach_function :new_fluid_settings, :new_fluid_settings, [], FluidHashtableT

.new_fluid_synth(settings) ⇒ FluidSynthT

(Not documented)

Parameters:

Returns:



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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • player (FluidPlayerT)
  • buffer (FFI::Pointer(*Void))
  • len (Integer)

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


2566
# File 'lib/ffi-fluidsynth.rb', line 2566

attach_function :player_join, :fluid_player_join, [FluidPlayerT], :int

.player_play(player) ⇒ Integer

(Not documented)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (String)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Float)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:



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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • settings (FluidHashtableT)
  • name (String)
  • min (FFI::Pointer(*Int))
  • max (FFI::Pointer(*Int))

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Float)


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)

Parameters:

  • settings (FluidHashtableT)
  • name (String)
  • min (FFI::Pointer(*Double))
  • max (FFI::Pointer(*Double))

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (String)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (String)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • bank (Integer)
  • prog (Integer)
  • name (String)
  • pitch (FFI::Pointer(*Double))
  • apply (Integer)

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • bank (Integer)
  • prog (Integer)
  • name (String)
  • pitch (FFI::Pointer(*Double))
  • apply (Integer)

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • chan (Integer)
  • bank (Integer)
  • prog (Integer)
  • apply (Integer)

Returns:

  • (Integer)


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

Parameters:

  • synth (FluidSynthT)
  • loader (FFI::Pointer(*SfloaderT))

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • sample (FFI::Pointer(*SampleT))
  • channum (Integer)
  • key (Integer)
  • vel (Integer)

Returns:



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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • chan (Integer)
  • ctrl (Integer)
  • val (Integer)

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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

Parameters:

Returns:

  • (Integer)


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

Parameters:

  • synth (FluidSynthT)
  • bank (Integer)
  • prog (Integer)
  • name (String)
  • pitch (FFI::Pointer(*Double))

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • bank (Integer)
  • prog (Integer)
  • name (String)
  • pitch (FFI::Pointer(*Double))

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (String)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • chan (Integer)
  • ctrl (Integer)
  • pval (FFI::Pointer(*Int))

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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

Parameters:

Returns:

  • (FFI::Pointer(*PresetT))


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)

Parameters:

Returns:

  • (Float)


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)

Parameters:

Returns:

  • (Float)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Float)


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)

Parameters:

Returns:

  • (Integer)


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

Parameters:

Returns:

  • (Float)


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)

Parameters:

Returns:

  • (Float)


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)

Parameters:

Returns:

  • (Float)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • chan (Integer)
  • ppitch_bend (FFI::Pointer(*Int))

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • chan (Integer)
  • pval (FFI::Pointer(*Int))

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • chan (Integer)
  • sfont_id (FFI::Pointer(*UInt))
  • bank_num (FFI::Pointer(*UInt))
  • preset_num (FFI::Pointer(*UInt))

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Float)


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)

Parameters:

Returns:

  • (Float)


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)

Parameters:

Returns:

  • (Float)


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)

Parameters:

Returns:

  • (Float)


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)

Parameters:

Returns:



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)

Parameters:

Returns:

  • (FFI::Pointer(*SfontT))


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)

Parameters:

Returns:

  • (FFI::Pointer(*SfontT))


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)

Parameters:

Returns:

  • (FFI::Pointer(*SfontT))


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)

Parameters:

  • synth (FluidSynthT)
  • buf (FFI::Pointer(**VoiceT))
  • bufsize (Integer)
  • id (Integer)

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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

Parameters:

  • synth (FluidSynthT)
  • chan (Integer)
  • key (Integer)
  • vel (Integer)

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • len (Integer)
  • left (FFI::Pointer(**Float))
  • right (FFI::Pointer(**Float))
  • fx_left (FFI::Pointer(**Float))
  • fx_right (FFI::Pointer(**Float))

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • len (Integer)
  • nin (Integer)
  • in (FFI::Pointer(**Float))
  • nout (Integer)
  • out (FFI::Pointer(**Float))

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • chan (Integer)
  • sfont_id (Integer)
  • bank_num (Integer)
  • preset_num (Integer)

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • chan (Integer)
  • sfont_name (String)
  • bank_num (Integer)
  • preset_num (Integer)

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • chan (Integer)
  • bank (Integer)
  • prog (Integer)

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • sfont_id (Integer)
  • offset (Integer)

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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

Parameters:

  • synth (FluidSynthT)
  • nr (Integer)
  • level (Float)
  • speed (Float)
  • depth_ms (Float)
  • type (Integer)

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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

Parameters:

  • synth (FluidSynthT)
  • chan (Integer)
  • param (Integer)
  • value (Float)

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • chan (Integer)
  • param (Integer)
  • value (Float)
  • absolute (Integer)
  • normalized (Integer)

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • chan (Integer)
  • interp_method (Integer)

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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

Parameters:

  • synth (FluidSynthT)
  • roomsize (Float)
  • damping (Float)
  • width (Float)
  • level (Float)

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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

Parameters:

  • synth (FluidSynthT)
  • filename (String)
  • reset_presets (Integer)

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • chan (Integer)
  • sfont_id (Integer)

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • id (Integer)
  • reset_presets (Integer)

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • id (Integer)
  • preset (FFI::Pointer(*PresetT))
  • audio_chan (Integer)
  • midi_chan (Integer)
  • key (Integer)
  • vel (Integer)

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • data (String)
  • len (Integer)
  • response (String)
  • response_len (FFI::Pointer(*Int))
  • handled (FFI::Pointer(*Int))
  • dryrun (Integer)

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • bank (Integer)
  • prog (Integer)
  • len (Integer)
  • keys (FFI::Pointer(*Int))
  • pitch (FFI::Pointer(*Double))
  • apply (Integer)

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • bank (Integer)
  • prog (Integer)
  • name (String)
  • len (Integer)
  • pitch (FFI::Pointer(*Double))

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • bank (FFI::Pointer(*Int))
  • prog (FFI::Pointer(*Int))

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

  • synth (FluidSynthT)
  • len (Integer)
  • lout (FFI::Pointer(*Void))
  • loff (Integer)
  • lincr (Integer)
  • rout (FFI::Pointer(*Void))
  • roff (Integer)
  • rincr (Integer)

Returns:

  • (Integer)


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.

Parameters:

  • synth (FluidSynthT)
  • len (Integer)
  • lout (FFI::Pointer(*Void))
  • loff (Integer)
  • lincr (Integer)
  • rout (FFI::Pointer(*Void))
  • roff (Integer)
  • rincr (Integer)

Returns:

  • (Integer)


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)

Parameters:

  • major (FFI::Pointer(*Int))
  • minor (FFI::Pointer(*Int))
  • micro (FFI::Pointer(*Int))

Returns:

  • (nil)


3438
# File 'lib/ffi-fluidsynth.rb', line 3438

attach_function :version, :fluid_version, [:pointer, :pointer, :pointer], :void

.version_strString

(Not documented)

Returns:

  • (String)


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

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Float)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (nil)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (Integer)


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)

Parameters:

Returns:

  • (nil)


3365
# File 'lib/ffi-fluidsynth.rb', line 3365

attach_function :voice_update_param, :fluid_voice_update_param, [FluidVoiceT, :int], :void