mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
MIDI debugging.
This commit is contained in:
parent
37eb68e817
commit
97c637e399
2 changed files with 24 additions and 4 deletions
|
|
@ -1351,9 +1351,25 @@ DiskReader::get_midi_playback (MidiBuffer& dst, samplecnt_t nframes, MonitorStat
|
||||||
dst.merge_from (*target, nframes);
|
dst.merge_from (*target, nframes);
|
||||||
}
|
}
|
||||||
|
|
||||||
//cerr << "======== POST ========\n";
|
#if 0
|
||||||
//_midi_buf->dump (cerr);
|
if (!target->empty ()) {
|
||||||
//cerr << "----------------\n";
|
cerr << "======== MIDI OUT ========\n";
|
||||||
|
for (MidiBuffer::iterator i = target->begin(); i != target->end(); ++i) {
|
||||||
|
const Evoral::Event<MidiBuffer::TimeType> ev (*i, false);
|
||||||
|
cerr << "MIDI EVENT (from disk) @ " << ev.time();
|
||||||
|
for (size_t xx = 0; xx < ev.size(); ++xx) {
|
||||||
|
cerr << ' ' << hex << (int) ev.buffer()[xx];
|
||||||
|
}
|
||||||
|
cerr << dec << endl;
|
||||||
|
}
|
||||||
|
cerr << "----------------\n";
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#if 0
|
||||||
|
cerr << "======== MIDI Disk Buffer ========\n";
|
||||||
|
_midi_buf->dump (cerr);
|
||||||
|
cerr << "----------------\n";
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @a start is set to the new sample position (TIME) read up to */
|
/** @a start is set to the new sample position (TIME) read up to */
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,11 @@ MidiPort::get_midi_buffer (pframes_t nframes)
|
||||||
(timestamp >= (_global_port_buffer_offset + _port_buffer_offset + nframes))) {
|
(timestamp >= (_global_port_buffer_offset + _port_buffer_offset + nframes))) {
|
||||||
cerr << "Dropping incoming MIDI at time " << timestamp << "; offset="
|
cerr << "Dropping incoming MIDI at time " << timestamp << "; offset="
|
||||||
<< _global_port_buffer_offset << " limit="
|
<< _global_port_buffer_offset << " limit="
|
||||||
<< (_global_port_buffer_offset + _port_buffer_offset + nframes) << "\n";
|
<< (_global_port_buffer_offset + _port_buffer_offset + nframes)
|
||||||
|
<< " = (" << _global_port_buffer_offset
|
||||||
|
<< " + " << _port_buffer_offset
|
||||||
|
<< " + " << nframes
|
||||||
|
<< ")\n";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue