13
0

tempo map: fix computation of superclocks_per_note_type_at()

Code used position as an absolute, rather than offset from the point
that defines tempo. It worked if the point was at zero, but not
otherwise.
This commit is contained in:
Paul Davis 2021-11-17 10:47:00 -07:00
parent a417cbae4b
commit b3451f4055

View File

@ -511,7 +511,7 @@ TempoPoint::superclocks_per_note_type_at (timepos_t const &pos) const
return _superclocks_per_note_type;
}
return _superclocks_per_note_type * exp (-_omega * pos.superclocks());
return _superclocks_per_note_type * exp (-_omega * (pos.superclocks() - sclock()));
}
Temporal::Beats