Tempo ramps - get tests to comile again.
This commit is contained in:
@@ -23,7 +23,7 @@ FrameposMinusBeatsTest::singleTempoTest ()
|
||||
Meter meter (4, 4);
|
||||
|
||||
map.add_meter (meter, BBT_Time (1, 1, 0));
|
||||
map.add_tempo (tempo, BBT_Time (1, 1, 0));
|
||||
map.add_tempo (tempo, BBT_Time (1, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
|
||||
/* Subtract 1 beat from beat 3 of the first bar */
|
||||
framepos_t r = map.framepos_minus_beats (frames_per_beat * 2, Beats(1));
|
||||
@@ -63,9 +63,9 @@ FrameposMinusBeatsTest::doubleTempoTest ()
|
||||
*/
|
||||
|
||||
Tempo tempoA (120);
|
||||
map.add_tempo (tempoA, BBT_Time (1, 1, 0));
|
||||
map.add_tempo (tempoA, BBT_Time (1, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
Tempo tempoB (240);
|
||||
map.add_tempo (tempoB, BBT_Time (4, 1, 0));
|
||||
map.add_tempo (tempoB, BBT_Time (4, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
|
||||
/* Now some tests */
|
||||
|
||||
@@ -115,9 +115,9 @@ FrameposMinusBeatsTest::doubleTempoWithMeterTest ()
|
||||
*/
|
||||
|
||||
Tempo tempoA (120);
|
||||
map.add_tempo (tempoA, BBT_Time (1, 1, 0));
|
||||
map.add_tempo (tempoA, BBT_Time (1, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
Tempo tempoB (240);
|
||||
map.add_tempo (tempoB, BBT_Time (4, 1, 0));
|
||||
map.add_tempo (tempoB, BBT_Time (4, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
Meter meterB (3, 4);
|
||||
map.add_meter (meterB, BBT_Time (4, 1, 0));
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ FrameposPlusBeatsTest::singleTempoTest ()
|
||||
Meter meter (4, 4);
|
||||
|
||||
map.add_meter (meter, BBT_Time (1, 1, 0));
|
||||
map.add_tempo (tempo, BBT_Time (1, 1, 0));
|
||||
map.add_tempo (tempo, BBT_Time (1, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
|
||||
/* Add 1 beat to beat 3 of the first bar */
|
||||
framepos_t r = map.framepos_plus_beats (frames_per_beat * 2, Evoral::Beats(1));
|
||||
@@ -62,9 +62,9 @@ FrameposPlusBeatsTest::doubleTempoTest ()
|
||||
*/
|
||||
|
||||
Tempo tempoA (120);
|
||||
map.add_tempo (tempoA, BBT_Time (1, 1, 0));
|
||||
map.add_tempo (tempoA, BBT_Time (1, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
Tempo tempoB (240);
|
||||
map.add_tempo (tempoB, BBT_Time (4, 1, 0));
|
||||
map.add_tempo (tempoB, BBT_Time (4, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
|
||||
/* Now some tests */
|
||||
|
||||
@@ -114,9 +114,9 @@ FrameposPlusBeatsTest::doubleTempoWithMeterTest ()
|
||||
*/
|
||||
|
||||
Tempo tempoA (120);
|
||||
map.add_tempo (tempoA, BBT_Time (1, 1, 0));
|
||||
map.add_tempo (tempoA, BBT_Time (1, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
Tempo tempoB (240);
|
||||
map.add_tempo (tempoB, BBT_Time (4, 1, 0));
|
||||
map.add_tempo (tempoB, BBT_Time (4, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
Meter meterB (3, 4);
|
||||
map.add_meter (meterB, BBT_Time (4, 1, 0));
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ FramewalkToBeatsTest::singleTempoTest ()
|
||||
Meter meter (4, 4);
|
||||
|
||||
map.add_meter (meter, BBT_Time (1, 1, 0));
|
||||
map.add_tempo (tempo, BBT_Time (1, 1, 0));
|
||||
map.add_tempo (tempo, BBT_Time (1, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
|
||||
/* Walk 1 beats-worth of frames from beat 3 */
|
||||
double r = map.framewalk_to_beats (frames_per_beat * 2, frames_per_beat * 1).to_double();
|
||||
@@ -70,9 +70,9 @@ FramewalkToBeatsTest::doubleTempoTest ()
|
||||
*/
|
||||
|
||||
Tempo tempoA (120);
|
||||
map.add_tempo (tempoA, BBT_Time (1, 1, 0));
|
||||
map.add_tempo (tempoA, BBT_Time (1, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
Tempo tempoB (240);
|
||||
map.add_tempo (tempoB, BBT_Time (4, 1, 0));
|
||||
map.add_tempo (tempoB, BBT_Time (4, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
|
||||
/* Now some tests */
|
||||
|
||||
@@ -125,11 +125,11 @@ FramewalkToBeatsTest::tripleTempoTest ()
|
||||
*/
|
||||
|
||||
Tempo tempoA (120);
|
||||
map.add_tempo (tempoA, BBT_Time (1, 1, 0));
|
||||
map.add_tempo (tempoA, BBT_Time (1, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
Tempo tempoB (240);
|
||||
map.add_tempo (tempoB, BBT_Time (2, 1, 0));
|
||||
map.add_tempo (tempoB, BBT_Time (2, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
Tempo tempoC (160);
|
||||
map.add_tempo (tempoC, BBT_Time (3, 1, 0));
|
||||
map.add_tempo (tempoC, BBT_Time (3, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
|
||||
/* Walk from 1|3 to 4|1 */
|
||||
double r = map.framewalk_to_beats (2 * 24e3, (2 * 24e3) + (4 * 12e3) + (4 * 18e3)).to_double();
|
||||
|
||||
@@ -48,7 +48,7 @@ class TestSlaveSessionProxy : public ISlaveSessionProxy {
|
||||
meter (4.0, 4.0)
|
||||
{
|
||||
_tempo_map = new TempoMap (FRAME_RATE);
|
||||
_tempo_map->add_tempo (tempo, Timecode::BBT_Time(1, 1, 0));
|
||||
_tempo_map->add_tempo (tempo, Timecode::BBT_Time(1, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
_tempo_map->add_meter (meter, Timecode::BBT_Time(1, 1, 0));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,9 +35,9 @@ TempoTest::recomputeMapTest ()
|
||||
*/
|
||||
|
||||
Tempo tempoA (120);
|
||||
map.add_tempo (tempoA, BBT_Time (1, 1, 0));
|
||||
map.add_tempo (tempoA, BBT_Time (1, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
Tempo tempoB (240);
|
||||
map.add_tempo (tempoB, BBT_Time (4, 1, 0));
|
||||
map.add_tempo (tempoB, BBT_Time (4, 1, 0), TempoSection::TempoSectionType::Constant);
|
||||
Meter meterB (3, 4);
|
||||
map.add_meter (meterB, BBT_Time (4, 1, 0));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user