mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Tempo ramps - more bbt dragging work.
- display prev tempo and tempo at mouse while dragging - simplify ramp dilation somewhat.
This commit is contained in:
parent
abac4ce854
commit
5ccfeea5bc
6 changed files with 57 additions and 132 deletions
|
|
@ -244,7 +244,8 @@ Editor::compute_current_bbt_points (std::vector<TempoMap::BBTPoint>& grid, frame
|
|||
|
||||
/* prevent negative values of leftmost from creeping into tempomap
|
||||
*/
|
||||
_session->tempo_map().get_grid (grid, max (leftmost, (framepos_t) 0), rightmost);
|
||||
const double lower_beat = floor (_session->tempo_map().beat_at_frame (leftmost));
|
||||
_session->tempo_map().get_grid (grid, max (_session->tempo_map().frame_at_beat (lower_beat), (framepos_t) 0), rightmost);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue