12typedef unsigned int uint;
40 std::unique_ptr<Impl> impl;
43 CCInfo (CCInfo&&) =
default;
85 std::unique_ptr<Impl> impl;
88 KeyInfo (KeyInfo&&) =
default;
121 std::unique_ptr<Impl> impl;
124 ProgramInfo (ProgramInfo&&) =
default;
149 std::unique_ptr<Impl> impl;
300 bool load (
const std::string& filename);
310 bool is_bank (
const std::string& filename)
const;
364 using KeyStates = std::array<unsigned char, 128>;
484 void process (
float **outputs, uint n_frames);
std::string label() const
int default_value() const
std::string label() const
std::string label() const
std::vector< KeyInfo > list_keys() const
List active keys used by this .sfz file.
uint cache_miss_count() const
Get number of sample cache lookup misses.
uint cache_file_count() const
Get number of cached samples.
void system_reset()
System reset.
void set_max_voices(uint n_voices)
Set maximum number of voices.
size_t max_cache_size() const
Get maximum memory used by sample cache.
void set_log_function(std::function< void(Log, const char *)> log_function)
Set custom logging function.
void add_event_note_on(uint time_frames, int channel, int key, int velocity)
Add a note on event.
void set_sample_quality(int sample_quality)
Set sample quality.
bool select_program(uint program)
Select program from previously loaded AriaBank file.
void set_live_mode(bool live_mode)
Set live mode.
void add_event_pitch_bend(uint time_frames, int channel, int value)
Add a pitch bend event.
std::vector< CCInfo > list_ccs() const
List CCs supported by this .sfz file.
int sample_quality()
Get sample quality.
void all_sound_off()
All sound off.
uint preload_time() const
Get preload time.
bool load_bank(const std::string &filename)
Load an AriaBank file.
bool is_bank(const std::string &filename) const
Check if the file is in AriaBank format.
void set_gain(float gain)
Set global gain.
KeyStates key_states() const
Get current keyboard state for each midi note.
void add_event_cc(uint time_frames, int channel, int cc, int value)
Add a cc event.
void set_max_cache_size(size_t max_cache_size)
Set maximum memory used by sample cache.
uint max_voices() const
Get maximum number of voices.
bool live_mode() const
Get live mode.
bool load(const std::string &filename)
Load .sfz file including all samples.
std::uint64_t key_state_revision() const noexcept
Get change counter for key_states().
std::vector< ProgramInfo > list_programs() const
List available programs defined in AriaBank file.
void set_sample_rate(uint sample_rate)
Set sample rate of the synthesizer.
KeyState
Definition liquidsfz.hh:359
@ KEY_REGION_ACTIVE
Playable key of a selected keyswitched region.
Definition liquidsfz.hh:362
@ KEY_PRESSED
Held on at least one MIDI channel (not sustain).
Definition liquidsfz.hh:360
@ KEY_SWITCH_ACTIVE
In the sw_last range of a selected region.
Definition liquidsfz.hh:361
void set_log_level(Log log_level)
Set minimum log level.
uint sample_rate() const
Get sample rate.
void set_progress_function(std::function< void(double)> progress_function)
Set progress function.
void add_event_note_off(uint time_frames, int channel, int key)
Add a note off event.
size_t cache_size() const
Get memory used by sample cache.
void set_preload_time(uint time_ms)
Set preload time.
uint active_voice_count() const
Get active voice count.
void process(float **outputs, uint n_frames)
Synthesize audio.
Log
Log levels for LiquidSFZ::Synth.
Definition liquidsfz.hh:24