dst.merge_from (*target, nframes);
}
- //cerr << "======== POST ========\n";
- //_midi_buf->dump (cerr);
- //cerr << "----------------\n";
+#if 0
+ if (!target->empty ()) {
+ 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 */
(timestamp >= (_global_port_buffer_offset + _port_buffer_offset + nframes))) {
cerr << "Dropping incoming MIDI at time " << timestamp << "; offset="
<< _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;
}