Go to the documentation of this file.
21 #ifndef LIQUIDSFZ_LIQUIDSFZ_HH
22 #define LIQUIDSFZ_LIQUIDSFZ_HH
29 typedef unsigned int uint;
57 std::unique_ptr<Impl> impl;
76 std::string
label()
const;
102 std::unique_ptr<Impl> impl;
119 std::string
label()
const;
136 std::unique_ptr<Impl> impl;
191 bool load (
const std::string& filename);
198 std::vector<CCInfo>
list_ccs()
const;
260 void add_event_cc (uint time_frames,
int channel,
int cc,
int value);
302 void process (
float **outputs, uint n_frames);
void add_event_pitch_bend(uint time_frames, int channel, int value)
Add a pitch bend event.
Information for one key.
Definition: liquidsfz.hh:97
Log
Log levels for LiquidSFZ::Synth.
Definition: liquidsfz.hh:41
void set_log_level(Log log_level)
Set minimum log level.
void set_max_voices(uint n_voices)
Set maximum number of voices.
std::string label() const
std::vector< CCInfo > list_ccs() const
List CCs supported by this .sfz file.
void add_event_note_off(uint time_frames, int channel, int key)
Add a note off event.
SFZ Synthesizer (main API)
Definition: liquidsfz.hh:133
void add_event_note_on(uint time_frames, int channel, int key, int velocity)
Add a note on event.
void process(float **outputs, uint n_frames)
Synthesize audio.
uint active_voice_count() const
Get active voice count.
void add_event_cc(uint time_frames, int channel, int cc, int value)
Add a cc event.
Information for one continuous controller.
Definition: liquidsfz.hh:52
void all_sound_off()
All sound off.
void system_reset()
System reset.
void set_log_function(std::function< void(Log, const char *)> log_function)
Set custom logging function.
int default_value() const
std::string label() const
void set_gain(float gain)
Set global gain.
bool load(const std::string &filename)
Load .sfz file including all samples.
void set_progress_function(std::function< void(double)> progress_function)
Set progress function.
std::vector< KeyInfo > list_keys() const
List active keys used by this .sfz file.
void set_sample_rate(uint sample_rate)
Set sample rate of the synthesizer.