audio/snap_grid.h file

Contents

Snap/grid information.

Enums

enum NoteType { NOTE_TYPE_NORMAL, NOTE_TYPE_DOTTED, NOTE_TYPE_TRIPLET }

Functions

void snap_grid_update_snap_points(SnapGrid* self)
Updates snap points.
auto snap_grid_get_snap_ticks(SnapGrid* self) -> int
Gets a snap point's length in ticks.
auto snap_grid_get_default_ticks(SnapGrid* self) -> int
Gets a the default length in ticks.
auto snap_grid_stringize(NoteLength note_length, NoteType note_type) -> char*
Returns the grid intensity as a human-readable string.
auto snap_grid_get_nearby_snap_point(SnapGrid* self, const Position* pos, const int return_prev) -> Position*
Returns the next or previous SnapGrid point.

Variables

static const cyaml_strval_t note_type_short_strings
These are not meant to be serialized, they are only used for convenience.