13
0

Fix snap to triplet

This commit is contained in:
Robin Gareus 2024-01-14 15:32:02 +01:00
parent a3cd791166
commit 3d752fc770
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -4558,6 +4558,7 @@ Editor::get_grid_type_as_beats (bool& success, timepos_t const & position)
return Temporal::Beats::from_double (tmap->meter_at (position).note_value() / 128.0);
case GridTypeBeatDiv3: //Triplet eighth
return Temporal::Beats::from_double (tmap->meter_at (position).note_value() / 12.0);
case GridTypeBeatDiv6:
return Temporal::Beats::from_double (tmap->meter_at (position).note_value() / 24.0);