diff --git a/libs/ardour/async_midi_port.cc b/libs/ardour/async_midi_port.cc index 9a09a288a9..8c227c50dc 100644 --- a/libs/ardour/async_midi_port.cc +++ b/libs/ardour/async_midi_port.cc @@ -257,12 +257,14 @@ AsyncMIDIPort::write (const MIDI::byte * msg, size_t msglen, MIDI::timestamp_t t vec.buf[0]->set_buffer (0, 0, true); } vec.buf[0]->set (msg, msglen, timestamp); + vec.buf[0]->set_event_type (Evoral::LIVE_MIDI_EVENT); } else { /* see comment in previous branch of if() statement */ if (!vec.buf[1]->owns_buffer()) { vec.buf[1]->set_buffer (0, 0, true); } vec.buf[1]->set (msg, msglen, timestamp); + vec.buf[1]->set_event_type (Evoral::LIVE_MIDI_EVENT); } output_fifo.increment_write_idx (1); @@ -297,7 +299,7 @@ AsyncMIDIPort::write (const MIDI::byte * msg, size_t msglen, MIDI::timestamp_t t timestamp = _last_write_timestamp; } - if (mb.push_back (timestamp, Evoral::MIDI_EVENT, msglen, msg)) { + if (mb.push_back (timestamp, Evoral::LIVE_MIDI_EVENT, msglen, msg)) { ret = msglen; _last_write_timestamp = timestamp; diff --git a/libs/ardour/midi_port.cc b/libs/ardour/midi_port.cc index bbbb27e3a0..e29a2e1735 100644 --- a/libs/ardour/midi_port.cc +++ b/libs/ardour/midi_port.cc @@ -163,9 +163,9 @@ MidiPort::get_midi_buffer (pframes_t nframes) ev[0] = 0x80 | (buf[0] & 0x0F); /* note off */ ev[1] = buf[1]; ev[2] = 0x40; /* default velocity */ - _buffer->push_back (timestamp, Evoral::MIDI_EVENT, size, ev); + _buffer->push_back (timestamp, Evoral::LIVE_MIDI_EVENT, size, ev); } else { - _buffer->push_back (timestamp, Evoral::MIDI_EVENT, size, buf); + _buffer->push_back (timestamp, Evoral::LIVE_MIDI_EVENT, size, buf); } } diff --git a/libs/ardour/midi_track.cc b/libs/ardour/midi_track.cc index 8a23c0af8f..8e20c1453f 100644 --- a/libs/ardour/midi_track.cc +++ b/libs/ardour/midi_track.cc @@ -696,7 +696,7 @@ MidiTrack::MidiControl::actually_set_value (double val, PBD::Controllable::Group size = 0; assert(false); } - _route->write_immediate_event(Evoral::MIDI_EVENT, size, ev); + _route->write_immediate_event(Evoral::LIVE_MIDI_EVENT, size, ev); } AutomationControl::actually_set_value(val, group_override);