));
}
- seq->end_write();
+ seq->end_write (Sequence<Time>::Relax);
TestSink<Time> sink;
sink.writing.connect(sigc::mem_fun(&sink, &TestSink<Time>::assertLastEventTimeEarlier));
bool on = true;
for (Sequence<Time>::const_iterator i = seq->begin(600); i != seq->end(); ++i) {
if (on) {
- CPPUNIT_ASSERT(((MIDIEvent<Time>&)*i).is_note_on());
+ CPPUNIT_ASSERT(((const MIDIEvent<Time>&)*i).is_note_on());
CPPUNIT_ASSERT_EQUAL(i->time(), Time((num_notes + 6) * 100));
++num_notes;
on = false;
} else {
- CPPUNIT_ASSERT(((MIDIEvent<Time>&)*i).is_note_off());
+ CPPUNIT_ASSERT(((const MIDIEvent<Time>&)*i).is_note_off());
on = true;
}
}
seq->notes().insert(*i);
}
- static const FrameTime delay = 1000;
- static const uint32_t cc_type = 1;
+ static const uint64_t delay = 1000;
+ static const uint32_t cc_type = 1;
boost::shared_ptr<Control> c = seq->control(MIDI::ContinuousController(cc_type, 1, 1), true);
CPPUNIT_ASSERT(c);
MIDI::controller_range(min, max, normal);
// Make a ramp like /\ from min to max and back to min
- c->set_float(min, true, 0);
- c->set_float(max, true, delay);
- c->set_float(min, true, 2*delay);
+ c->set_double(min, 0, true);
+ c->set_double(max, delay, true);
+ c->set_double(min, 2*delay, true);
CCTestSink<Time> sink(cc_type);