don't allow/create non-beat aligned tempo changes in response to meter changes. round the position of a tempo change the earlier beat that it would have followed according to its bar_offset value
git-svn-id: svn://localhost/ardour2/branches/3.0@11199 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
dfaac539bb
commit
c57db81068
@ -182,8 +182,8 @@ TempoSection::update_bbt_time_from_bar_offset (const Meter& meter)
|
||||
new_start.bars = start().bars;
|
||||
|
||||
double ticks = BBT_Time::ticks_per_beat * meter.divisions_per_bar() * _bar_offset;
|
||||
new_start.beats = (uint32_t) floor(ticks/BBT_Time::ticks_per_beat);
|
||||
new_start.ticks = (uint32_t) fmod (ticks, BBT_Time::ticks_per_beat);
|
||||
new_start.beats = (uint32_t) floor (ticks/BBT_Time::ticks_per_beat);
|
||||
new_start.ticks = 0; /* (uint32_t) fmod (ticks, BBT_Time::ticks_per_beat); */
|
||||
|
||||
/* remember the 1-based counting properties of beats */
|
||||
new_start.beats += 1;
|
||||
|
Loading…
Reference in New Issue
Block a user