file
snap_grid.hSnap/grid information.
Enums
- enum NoteType { NOTE_TYPE_NORMAL, NOTE_TYPE_DOTTED, NOTE_TYPE_TRIPLET }
- enum NoteLengthType { NOTE_LENGTH_CUSTOM, NOTE_LENGTH_LINK, NOTE_LENGTH_LAST_OBJECT }
- enum SnapGridType { SNAP_GRID_TYPE_TIMELINE, SNAP_GRID_TYPE_EDITOR }
- Snap grid type.
Typedefs
- using SnapGridType = enum SnapGridType
- Snap grid type.
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.