summaryrefslogtreecommitdiff
path: root/libs/backends
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2015-12-20 04:41:45 +1100
committernick_m <mainsbridge@gmail.com>2016-05-27 23:38:09 +1000
commit7fc3b0c34c552d7be862897bd0aaa542453e9973 (patch)
tree35898328a86aefec5ac18a00c56c8577f4779d1f /libs/backends
parent94187e66a2ae2bc2ab082ef614c25b35ec0d5e24 (diff)
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.
Diffstat (limited to 'libs/backends')
-rw-r--r--libs/backends/jack/jack_session.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/backends/jack/jack_session.cc b/libs/backends/jack/jack_session.cc
index 1e9d956876..430ee5b0e7 100644
--- a/libs/backends/jack/jack_session.cc
+++ b/libs/backends/jack/jack_session.cc
@@ -121,7 +121,7 @@ JACKSession::timebase_callback (jack_transport_state_t /*state*/,
TempoMetric metric (tempo_map.metric_at (tf));
try {
- tempo_map.bbt_time_rt (tf, bbt);
+ tempo_map.bbt_time (tf, bbt);
pos->bar = bbt.bars;
pos->beat = bbt.beats;