Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
#include <src/engine/session/metronome.h>
Public Types | |
enum class | Type { None , Emphasis , Normal } |
The type of the metronome sound. More... | |
using | SampleBufferPtr = std::shared_ptr<zrythm::utils::audio::AudioBuffer> |
Public Member Functions | |
Metronome (device_io::AudioEngine &engine) | |
Initializes the Metronome by loading the samples into memory. | |
void | set_volume (float volume) |
void | queue_events (device_io::AudioEngine *engine, nframes_t loffset, nframes_t nframes) |
Queues metronome events (if any) within the current processing cycle. |
Data Fields | |
fs::path | emphasis_path_ |
Absolute path of the "emphasis" sample. | |
fs::path | normal_path_ |
Absolute path of the "normal" sample. | |
SampleBufferPtr | emphasis_ |
The emphasis sample. | |
SampleBufferPtr | normal_ |
The normal sample. | |
float | volume_ {} |
Metronome settings.
Definition at line 24 of file metronome.h.
using zrythm::engine::session::Metronome::SampleBufferPtr = std::shared_ptr<zrythm::utils::audio::AudioBuffer> |
Definition at line 46 of file metronome.h.
|
strong |
The type of the metronome sound.
Definition at line 30 of file metronome.h.
zrythm::engine::session::Metronome::Metronome | ( | device_io::AudioEngine & | engine | ) |
Initializes the Metronome by loading the samples into memory.
ZrythmException | if loading fails. |
void zrythm::engine::session::Metronome::queue_events | ( | device_io::AudioEngine * | engine, |
nframes_t | loffset, | ||
nframes_t | nframes ) |
Queues metronome events (if any) within the current processing cycle.
loffset | Local offset in this cycle. |
SampleBufferPtr zrythm::engine::session::Metronome::emphasis_ |
The emphasis sample.
Definition at line 68 of file metronome.h.
fs::path zrythm::engine::session::Metronome::emphasis_path_ |
Absolute path of the "emphasis" sample.
Definition at line 62 of file metronome.h.
SampleBufferPtr zrythm::engine::session::Metronome::normal_ |
The normal sample.
Definition at line 71 of file metronome.h.
fs::path zrythm::engine::session::Metronome::normal_path_ |
Absolute path of the "normal" sample.
Definition at line 65 of file metronome.h.
float zrythm::engine::session::Metronome::volume_ {} |
Definition at line 73 of file metronome.h.