mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Initial stab at tempo ramps.
Replaces the list of points in TempoMap with TempoSection functions, which compute tempo-at or tick-at time relative to tempo section start. TempoMap consults them additively to determine things like bbt_time(), frame_time() get_grid() etc. This has a marked effect on scrolling speed along with the code simplification in the places it has been attempted. Several things are broken here. Currently every ramp except the last one is an exponential ramp. this may be simple to fix :). Mouse-over midi grid doesn't match mouse click grid. should also be simple. Many things seem to work, but their accuracy should be in question until each area has been addressed.
This commit is contained in:
parent
94187e66a2
commit
7fc3b0c34c
16 changed files with 904 additions and 1097 deletions
|
|
@ -165,10 +165,10 @@ Ruler::render (Rect const & area, Cairo::RefPtr<Cairo::Context> cr) const
|
|||
}
|
||||
break;
|
||||
case Mark::Minor:
|
||||
cr->rel_line_to (0, -height/4.0);
|
||||
cr->rel_line_to (0, -height/3.0);
|
||||
break;
|
||||
case Mark::Micro:
|
||||
cr->rel_line_to (0, -height/16.0);
|
||||
cr->rel_line_to (0, -height/5.0);
|
||||
break;
|
||||
}
|
||||
cr->stroke ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue