mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
make MIDI tracing work again for ports that are handled using ::read_and_parse_entire_midi_buffer_with_no_speed_adjustment()
This commit is contained in:
parent
e202b64951
commit
dfe383d23a
1 changed files with 11 additions and 0 deletions
|
|
@ -213,10 +213,21 @@ MidiPort::read_and_parse_entire_midi_buffer_with_no_speed_adjustment (pframes_t
|
|||
parser.scanner (0x80 | (buf[0] & 0x0F)); /* note off */
|
||||
parser.scanner (buf[1]);
|
||||
parser.scanner (0x40); /* default (off) velocity */
|
||||
|
||||
if (_trace_parser) {
|
||||
_trace_parser->scanner (0x80 | (buf[0] & 0x0F));
|
||||
_trace_parser->scanner (buf[1]);
|
||||
_trace_parser->scanner (0x40);
|
||||
}
|
||||
} else {
|
||||
for (size_t n = 0; n < size; ++n) {
|
||||
parser.scanner (buf[n]);
|
||||
}
|
||||
if (_trace_parser) {
|
||||
for (size_t n = 0; n < size; ++n) {
|
||||
_trace_parser->scanner (buf[n]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue