convert debug output from printf to type-safe iostreams
This commit is contained in:
parent
33298a0ba0
commit
659382ecd8
@ -243,6 +243,7 @@ MidiModel::NoteDiffCommand::operator() ()
|
||||
MidiModel::WriteLock lock(_model->edit_lock());
|
||||
|
||||
for (NoteList::iterator i = _added_notes.begin(); i != _added_notes.end(); ++i) {
|
||||
std::cerr << "====== ADDDED a note " << *i << std::endl;
|
||||
if (!_model->add_note_unlocked(*i)) {
|
||||
/* failed to add it, so don't leave it in the removed list, to
|
||||
avoid apparent errors on undo.
|
||||
@ -1262,6 +1263,8 @@ MidiModel::sync_to_source (const Source::WriterLock& source_lock)
|
||||
{
|
||||
ReadLock lock(read_lock());
|
||||
|
||||
std::cerr << "SYNC " << _midi_source.name() << " from model\n";
|
||||
|
||||
/* Invalidate and store active notes, which will be picked up by the iterator
|
||||
on the next roll if time progresses linearly. */
|
||||
_midi_source.invalidate(source_lock);
|
||||
|
@ -475,9 +475,9 @@ SMFSource::append_event_beats (const WriterLock& lock,
|
||||
}
|
||||
|
||||
#if 0
|
||||
printf("SMFSource: %s - append_event_beats ID = %d time = %lf, size = %u, data = ",
|
||||
name().c_str(), ev.id(), ev.time(), ev.size());
|
||||
for (size_t i = 0; i < ev.size(); ++i) printf("%X ", ev.buffer()[i]); printf("\n");
|
||||
std::cerr << "SMFSource " << name() << " - append_event_beats ID = " << ev.id() << " time = " << ev.time() << " size " << ev.size() << " data: ";
|
||||
for (size_t i = 0; i < ev.size(); ++i) std::cerr << "0x" << std::hex << (int) ev.buffer()[i];
|
||||
std::cerr << std::dec << std::endl;
|
||||
#endif
|
||||
|
||||
Temporal::Beats time = ev.time();
|
||||
|
Loading…
Reference in New Issue
Block a user