Sparse update for granular controls on sliders
authorRobin Gareus <robin@gareus.org>
Tue, 27 Mar 2018 22:13:30 +0000 (00:13 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 27 Mar 2018 22:18:13 +0000 (00:18 +0200)
commit1de68d791725ca80da08261676a4edbe96600ed4
treeeab187c28f0bb7073f6cc80cc36871a702e09654
parent9840f848301aec81241b63b597c871a12cfcf571
Sparse update for granular controls on sliders

Don't call ::set_value() if the actual value has not changed.
e.g. MIDI-CC or integer controls. Moving the Bar-controller was able to
create events even though the actual value remained unchanged.

This check has to be done UI-side, since the underlying API is also used
for state-restore and automation. e.g.
"old value" (user-set) may be default "0", "new value" may also be "0" but
libardour still needs to send an event (a synth's internal state may not
default to "0")
gtk2_ardour/automation_controller.cc