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

@ -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);