mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 23:46:20 +01:00
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:
parent
a417cbae4b
commit
b3451f4055
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue