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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user