mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-12 09:36:33 +01:00
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:
parent
722b85e828
commit
f53baec2e4
3 changed files with 7 additions and 5 deletions
|
|
@ -764,7 +764,7 @@ MidiRegionView::add_note(const boost::shared_ptr<Note> note)
|
||||||
ev_rect->property_y2() = y1 + floor(midi_stream_view()->note_height());
|
ev_rect->property_y2() = y1 + floor(midi_stream_view()->note_height());
|
||||||
|
|
||||||
if (note->duration() == 0) {
|
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;
|
<< (int)note->note() << " at time " << note->time() << endl;
|
||||||
if (_active_notes) {
|
if (_active_notes) {
|
||||||
assert(note->note() < 128);
|
assert(note->note() < 128);
|
||||||
|
|
|
||||||
|
|
@ -103,8 +103,9 @@ MidiModel::const_iterator::const_iterator(const MidiModel& model, double t)
|
||||||
assert(x >= 0);
|
assert(x >= 0);
|
||||||
|
|
||||||
if (y >= i->first.min() || y <= i->first.max()) {
|
if (y >= i->first.min() || y <= i->first.max()) {
|
||||||
cerr << "ERROR: Event value '" << y << "' out of range ["
|
cerr << "ERROR: Controller (" << i->first.to_string() << ") value '" << y
|
||||||
<< i->first.min() << "," << i->first.max() << "], ignored" << endl;
|
<< "' out of range [" << i->first.min() << "," << i->first.max()
|
||||||
|
<< "], event ignored" << endl;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -105,8 +105,9 @@ MidiSource::midi_read (MidiRingBuffer& dst, nframes_t start, nframes_t cnt, nfra
|
||||||
{
|
{
|
||||||
Glib::Mutex::Lock lm (_lock);
|
Glib::Mutex::Lock lm (_lock);
|
||||||
if (_model) {
|
if (_model) {
|
||||||
const size_t n_events = _model->read(dst, start, cnt, stamp_offset, negative_stamp_offset);
|
//const size_t n_events =
|
||||||
cout << "Read " << n_events << " events from model." << endl;
|
_model->read(dst, start, cnt, stamp_offset, negative_stamp_offset);
|
||||||
|
//cout << "Read " << n_events << " events from model." << endl;
|
||||||
return cnt;
|
return cnt;
|
||||||
} else {
|
} else {
|
||||||
return read_unlocked (dst, start, cnt, stamp_offset, negative_stamp_offset);
|
return read_unlocked (dst, start, cnt, stamp_offset, negative_stamp_offset);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue