mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
BBT markers must define an on-beat position
This commit is contained in:
parent
86d818e4b9
commit
7fbe17c802
1 changed files with 7 additions and 0 deletions
|
|
@ -1497,6 +1497,13 @@ MusicTimePoint*
|
|||
TempoMap::add_or_replace_bartime (MusicTimePoint* mtp)
|
||||
{
|
||||
bool replaced;
|
||||
|
||||
/* A MusicTimePoint by definition defines a beat position. It's not
|
||||
* zero, but it must be "on beat". So ensure that this is true.
|
||||
*/
|
||||
|
||||
mtp->set (mtp->sclock(), mtp->beats().round_up_to_beat(), mtp->bbt());
|
||||
|
||||
MusicTimePoint* ret = core_add_bartime (mtp, replaced);
|
||||
|
||||
if (!replaced) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue