Emit Changed() signal when MIDI bank/pgm changes

This commit is contained in:
Robin Gareus 2017-09-08 04:35:06 +02:00
parent 32bec8c8b1
commit e15d9202a5

View File

@ -349,9 +349,10 @@ MidiTrack::update_controls(const BufferSet& bufs)
for (MidiBuffer::const_iterator e = buf.begin(); e != buf.end(); ++e) {
const Evoral::Event<framepos_t>& ev = *e;
const Evoral::Parameter param = midi_parameter(ev.buffer(), ev.size());
const boost::shared_ptr<Evoral::Control> control = this->control(param);
const boost::shared_ptr<AutomationControl> control = automation_control (param);
if (control) {
control->set_double(ev.value(), _session.transport_frame(), false);
control->Changed (false, Controllable::NoGroup);
}
}
}