13
0

Tidy up MIDI debugging output.

git-svn-id: svn://localhost/ardour2/branches/3.0@3358 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2008-05-16 02:50:19 +00:00
parent 722b85e828
commit f53baec2e4
3 changed files with 7 additions and 5 deletions

View File

@ -764,7 +764,7 @@ MidiRegionView::add_note(const boost::shared_ptr<Note> note)
ev_rect->property_y2() = y1 + floor(midi_stream_view()->note_height());
if (note->duration() == 0) {
cerr << "MidiModel: WARNING: Discovered note with duration 0 and pitch"
cerr << "MidiModel: WARNING: Discovered note with duration 0 and pitch "
<< (int)note->note() << " at time " << note->time() << endl;
if (_active_notes) {
assert(note->note() < 128);

View File

@ -103,8 +103,9 @@ MidiModel::const_iterator::const_iterator(const MidiModel& model, double t)
assert(x >= 0);
if (y >= i->first.min() || y <= i->first.max()) {
cerr << "ERROR: Event value '" << y << "' out of range ["
<< i->first.min() << "," << i->first.max() << "], ignored" << endl;
cerr << "ERROR: Controller (" << i->first.to_string() << ") value '" << y
<< "' out of range [" << i->first.min() << "," << i->first.max()
<< "], event ignored" << endl;
continue;
}

View File

@ -105,8 +105,9 @@ MidiSource::midi_read (MidiRingBuffer& dst, nframes_t start, nframes_t cnt, nfra
{
Glib::Mutex::Lock lm (_lock);
if (_model) {
const size_t n_events = _model->read(dst, start, cnt, stamp_offset, negative_stamp_offset);
cout << "Read " << n_events << " events from model." << endl;
//const size_t n_events =
_model->read(dst, start, cnt, stamp_offset, negative_stamp_offset);
//cout << "Read " << n_events << " events from model." << endl;
return cnt;
} else {
return read_unlocked (dst, start, cnt, stamp_offset, negative_stamp_offset);