summaryrefslogtreecommitdiff
path: root/libs/evoral/test/SMFTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/evoral/test/SMFTest.cpp')
-rw-r--r--libs/evoral/test/SMFTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/evoral/test/SMFTest.cpp b/libs/evoral/test/SMFTest.cpp
index 9bbe021947..d42ee26dff 100644
--- a/libs/evoral/test/SMFTest.cpp
+++ b/libs/evoral/test/SMFTest.cpp
@@ -45,25 +45,25 @@ SMFTest::takeFiveTest ()
smf.seek_to_start();
uint64_t time = 0; /* in SMF ticks */
- Evoral::Event<Evoral::MusicalTime> ev;
+ Evoral::Event<Evoral::Beats> ev;
uint32_t delta_t = 0;
uint32_t size = 0;
uint8_t* buf = NULL;
int ret;
while ((ret = smf.read_event(&delta_t, &size, &buf)) >= 0) {
- ev.set(buf, size, Evoral::MusicalTime());
+ ev.set(buf, size, Evoral::Beats());
time += delta_t;
if (ret > 0) { // didn't skip (meta) event
//cerr << "read smf event type " << hex << int(buf[0]) << endl;
- ev.set_time(Evoral::MusicalTime::ticks_at_rate(time, smf.ppqn()));
+ ev.set_time(Evoral::Beats::ticks_at_rate(time, smf.ppqn()));
ev.set_event_type(type_map->midi_event_type(buf[0]));
seq->append(ev, next_event_id ());
}
}
seq->end_write (Sequence<Time>::Relax,
- Evoral::MusicalTime::ticks_at_rate(time, smf.ppqn()));
+ Evoral::Beats::ticks_at_rate(time, smf.ppqn()));
CPPUNIT_ASSERT(!seq->empty());
}