mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
snap-revisited: Add finer (64ths and 128ths) Ruler scalings to match those Grid selections
This commit is contained in:
parent
aa9698ba58
commit
d644bb16f6
3 changed files with 23 additions and 4 deletions
|
|
@ -2881,6 +2881,12 @@ Editor::snap_to_bbt (MusicSample presnap, RoundMode direction, SnapPref gpref)
|
|||
case bbt_show_thirtyseconds:
|
||||
ret = _session->tempo_map().round_to_quarter_note_subdivision (presnap.sample, 4 * divisor, direction);
|
||||
break;
|
||||
case bbt_show_sixtyfourths:
|
||||
ret = _session->tempo_map().round_to_quarter_note_subdivision (presnap.sample, 8 * divisor, direction);
|
||||
break;
|
||||
case bbt_show_onetwentyeighths:
|
||||
ret = _session->tempo_map().round_to_quarter_note_subdivision (presnap.sample, 16 * divisor, direction);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
ret = _session->tempo_map().round_to_quarter_note_subdivision (presnap.sample, get_grid_beat_divisions(_grid_type), direction);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue