diff options
author | nick_m <mainsbridge@gmail.com> | 2016-05-19 01:01:08 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-05-27 23:38:16 +1000 |
commit | 2d3d7a53556a0b724c91db0dbf991e3d7a78b4fe (patch) | |
tree | 5b95d1e2e4389d835f4a7033994fb9c62e97344b /libs/ardour/test/tempo_test.cc | |
parent | e5ba2bc34c400a533b3578ebe722eef0183a3d68 (diff) |
Tempo ramps - fix ambiguous api, fix flickering tempo curves.
Diffstat (limited to 'libs/ardour/test/tempo_test.cc')
-rw-r--r-- | libs/ardour/test/tempo_test.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/ardour/test/tempo_test.cc b/libs/ardour/test/tempo_test.cc index 0160708542..621a72dd96 100644 --- a/libs/ardour/test/tempo_test.cc +++ b/libs/ardour/test/tempo_test.cc @@ -14,7 +14,7 @@ TempoTest::recomputeMapTest () TempoMap map (sampling_rate); Meter meterA (4, 4); - map.add_meter (meterA, 0.0, BBT_Time (1, 1, 0)); + map.add_meter_beat (meterA, 0.0, BBT_Time (1, 1, 0)); /* 120bpm at bar 1, 240bpm at bar 4 @@ -36,11 +36,11 @@ TempoTest::recomputeMapTest () */ Tempo tempoA (120); - map.add_tempo (tempoA, 0.0, TempoSection::Constant); + map.add_tempo_pulse (tempoA, 0.0, TempoSection::Constant); Tempo tempoB (240); - map.add_tempo (tempoB, 12.0, TempoSection::Constant); + map.add_tempo_pulse (tempoB, 4.0, TempoSection::Constant); Meter meterB (3, 4); - map.add_meter (meterB, 12.0, BBT_Time (4, 1, 0)); + map.add_meter_beat (meterB, 12.0, BBT_Time (4, 1, 0)); list<MetricSection*>::iterator i = map._metrics.begin(); CPPUNIT_ASSERT_EQUAL (framepos_t (0), (*i)->frame ()); @@ -59,9 +59,9 @@ TempoTest::rampTest () Meter meterA (4, 4); Tempo tempoA (77.0, 4.0); Tempo tempoB (217.0, 4.0); - map.add_tempo (tempoA, (framepos_t) 0, TempoSection::Ramp); - map.add_tempo (tempoB, (framepos_t) 60 * sampling_rate, TempoSection::Ramp); - map.add_meter (meterA, 0.0, BBT_Time (1, 1, 0)); + map.add_tempo_frame (tempoA, (framepos_t) 0, TempoSection::Ramp); + map.add_tempo_frame (tempoB, (framepos_t) 60 * sampling_rate, TempoSection::Ramp); + map.add_meter_beat (meterA, 0.0, BBT_Time (1, 1, 0)); /* |