3 #ifndef LIQUIDSFZ_LIQUIDSFZ_HH
4 #define LIQUIDSFZ_LIQUIDSFZ_HH
11 typedef unsigned int uint;
39 std::unique_ptr<Impl> impl;
84 std::unique_ptr<Impl> impl;
118 std::unique_ptr<Impl> impl;
268 bool load (
const std::string& filename);
379 void process (
float **outputs, uint n_frames);
Information for one continuous controller.
Definition: liquidsfz.hh:35
std::string label() const
int default_value() const
Information for one key.
Definition: liquidsfz.hh:80
std::string label() const
SFZ Synthesizer (main API)
Definition: liquidsfz.hh:116
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.
std::vector< KeyInfo > list_keys() const
List active keys used by this .sfz file.
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.
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.
void set_gain(float gain)
Set global gain.
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.
void set_sample_rate(uint sample_rate)
Set sample rate of the synthesizer.
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:23