diff options
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)); /* |