mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-29 08:23:01 +01:00
Fix metronom for meters N/M with M < 4 (eg. 2/2)
This commit is contained in:
parent
f16ad8053e
commit
02bf47eed1
1 changed files with 1 additions and 1 deletions
|
|
@ -2581,7 +2581,7 @@ TempoMap::get_grid (TempoMapPoints& ret, superclock_t rstart, superclock_t end,
|
|||
if (bar_mod == 1) {
|
||||
spdiv = llrintf (metric.superclocks_per_note_type() * (metric.meter().divisions_per_bar() * (4. / metric.meter().note_value())));
|
||||
} else {
|
||||
spdiv = metric.superclocks_per_note_type() / beat_div;
|
||||
spdiv = metric.superclocks_per_note_type() * (4. / metric.meter().note_value()) / beat_div;
|
||||
}
|
||||
|
||||
superclock_t start = (rstart / spdiv) * spdiv; /* div (bar/beat) preceding rstart */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue