Skip to content

Commit

Permalink
[quantification] Make sure that quantified time never falls on the fr…
Browse files Browse the repository at this point in the history
…ame == buffer_size
  • Loading branch information
jcelerier committed Oct 14, 2024
1 parent ee42f80 commit f404407
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ossia/editor/scenario/time_interval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ void time_interval::tick_impl(
m_musical_start_position = num_quarters;
}

if(new_date.impl > old_date.impl)
if(new_date.impl - 1 > old_date.impl)
{
auto d = new_date;
auto d = ossia::time_value(new_date.impl - 1);
const double num_quarters = d.impl / m_quarter_duration;

auto [time, sig] = *ossia::last_before(m_timeSignature, d);
Expand Down

0 comments on commit f404407

Please sign in to comment.