Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::FluidSynth Class Reference

#include <fluid_synth.h>

Classes

struct  BankProgram
 

Public Member Functions

 FluidSynth (float samplerate, int polyphony=256)
 
 ~FluidSynth ()
 
bool load_sf2 (const std::string &fn)
 
bool synth (float *left, float *right, uint32_t n_samples)
 
bool midi_event (uint8_t const *const data, size_t len)
 
void panic ()
 
bool select_program (uint32_t pgm, uint8_t chan)
 
uint32_t program_count () const
 
std::string program_name (uint32_t pgm) const
 

Private Attributes

fluid_settings_t * _settings
 
fluid_synth_t * _synth
 
int _synth_id
 
fluid_midi_event_t * _f_midi_event
 
std::vector< BankProgram_presets
 

Detailed Description

Definition at line 32 of file fluid_synth.h.

Constructor & Destructor Documentation

◆ FluidSynth()

ARDOUR::FluidSynth::FluidSynth ( float  samplerate,
int  polyphony = 256 
)

instantiate a Synth

Parameters
sampleratesamplerate
polyphonypolyphony

◆ ~FluidSynth()

ARDOUR::FluidSynth::~FluidSynth ( )

Member Function Documentation

◆ load_sf2()

bool ARDOUR::FluidSynth::load_sf2 ( const std::string &  fn)

◆ midi_event()

bool ARDOUR::FluidSynth::midi_event ( uint8_t const *const  data,
size_t  len 
)

◆ panic()

void ARDOUR::FluidSynth::panic ( )

◆ program_count()

uint32_t ARDOUR::FluidSynth::program_count ( ) const
inline

Definition at line 55 of file fluid_synth.h.

◆ program_name()

std::string ARDOUR::FluidSynth::program_name ( uint32_t  pgm) const
inline

Definition at line 57 of file fluid_synth.h.

◆ select_program()

bool ARDOUR::FluidSynth::select_program ( uint32_t  pgm,
uint8_t  chan 
)

◆ synth()

bool ARDOUR::FluidSynth::synth ( float *  left,
float *  right,
uint32_t  n_samples 
)

Member Data Documentation

◆ _f_midi_event

fluid_midi_event_t* ARDOUR::FluidSynth::_f_midi_event
private

Definition at line 66 of file fluid_synth.h.

◆ _presets

std::vector<BankProgram> ARDOUR::FluidSynth::_presets
private

Definition at line 86 of file fluid_synth.h.

◆ _settings

fluid_settings_t* ARDOUR::FluidSynth::_settings
private

Definition at line 63 of file fluid_synth.h.

◆ _synth

fluid_synth_t* ARDOUR::FluidSynth::_synth
private

Definition at line 64 of file fluid_synth.h.

◆ _synth_id

int ARDOUR::FluidSynth::_synth_id
private

Definition at line 65 of file fluid_synth.h.


The documentation for this class was generated from the following file: