Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
SnapGrid Struct Reference

Data Fields

int schema_version
 
SnapGridType type
 
bool snap_adaptive
 If this is on, the snap note length will be determined automatically based on the current zoom level.
 
NoteLength snap_note_length
 Snap note length.
 
NoteType snap_note_type
 Snap note type.
 
bool snap_to_grid
 Whether to snap to the grid.
 
bool snap_to_grid_keep_offset
 Whether to keep the offset when moving items.
 
bool snap_to_events
 Whether to snap to events.
 
NoteLength default_note_length
 Default note length.
 
NoteType default_note_type
 Default note type.
 
bool default_adaptive
 If this is on, the default note length will be determined automatically based on the current zoom level.
 
NoteLengthType length_type
 See NoteLengthType.
 

Detailed Description

Definition at line 120 of file snap_grid.h.

Field Documentation

◆ default_adaptive

bool SnapGrid::default_adaptive

If this is on, the default note length will be determined automatically based on the current zoom level.

The default note type still applies.

TODO this will be done after v1.

Definition at line 167 of file snap_grid.h.

◆ default_note_length

NoteLength SnapGrid::default_note_length

Default note length.

Definition at line 154 of file snap_grid.h.

◆ default_note_type

NoteType SnapGrid::default_note_type

Default note type.

Definition at line 156 of file snap_grid.h.

◆ length_type

NoteLengthType SnapGrid::length_type

See NoteLengthType.

Definition at line 172 of file snap_grid.h.

◆ schema_version

int SnapGrid::schema_version

Definition at line 122 of file snap_grid.h.

◆ snap_adaptive

bool SnapGrid::snap_adaptive

If this is on, the snap note length will be determined automatically based on the current zoom level.

The snap note type still applies.

Definition at line 131 of file snap_grid.h.

◆ snap_note_length

NoteLength SnapGrid::snap_note_length

Snap note length.

Definition at line 134 of file snap_grid.h.

◆ snap_note_type

NoteType SnapGrid::snap_note_type

Snap note type.

Definition at line 137 of file snap_grid.h.

◆ snap_to_events

bool SnapGrid::snap_to_events

Whether to snap to events.

Definition at line 151 of file snap_grid.h.

◆ snap_to_grid

bool SnapGrid::snap_to_grid

Whether to snap to the grid.

Definition at line 140 of file snap_grid.h.

◆ snap_to_grid_keep_offset

bool SnapGrid::snap_to_grid_keep_offset

Whether to keep the offset when moving items.

This requires SnapGrid::snap_to_grid to be enabled.

Definition at line 148 of file snap_grid.h.

◆ type

SnapGridType SnapGrid::type

Definition at line 123 of file snap_grid.h.


The documentation for this struct was generated from the following file: