Emit Changed() signal when MIDI bank/pgm changes
authorRobin Gareus <robin@gareus.org>
Fri, 8 Sep 2017 02:35:06 +0000 (04:35 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 8 Sep 2017 02:35:06 +0000 (04:35 +0200)
libs/ardour/midi_track.cc

index 2c588e973c31d58c6a932e1a7c0f8c9059554f69..5d315c52a7600d00c5a82198fd8984ec571011cc 100644 (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);
                }
        }
 }