audio/metronome.h file

Metronome related logic.

Contents

Classes

struct Metronome
Metronome settings.

Enums

enum MetronomeType { METRONOME_TYPE_NONE, METRONOME_TYPE_EMPHASIS, METRONOME_TYPE_NORMAL }
The type of the metronome sound.

Typedefs

using MetronomeType = enum MetronomeType
The type of the metronome sound.
using Metronome = struct Metronome
Metronome settings.

Functions

void metronome_init(Metronome* self)
Initializes the Metronome by loading the samples into memory.
void metronome_fill_buffer(Metronome* self, float* buf, const long g_start_frame, const int nframes)
Fills the given frame buffer with metronome audio based on the current position.