Do not send non-automated MIDI-CCs on locate.
authorRobin Gareus <robin@gareus.org>
Mon, 24 Aug 2015 00:42:31 +0000 (02:42 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 24 Aug 2015 00:42:31 +0000 (02:42 +0200)
commitcc9c38ce5e79f8bcd558b1b6e694915f47aa3af4
treee032dc27da9c84c00b130d420e7fe14abfd29d33
parent6129b3492d3e47f7c027278f795ebb5cbea53cca
Do not send non-automated MIDI-CCs on locate.

If a "CC" automation lane was visible at least once, a Control Object
is created and henceforth saved with the session:
   <Object id="automation TrackID TYPE" ../>
It is currently not possible to remove this object. (Automation > clear
will only zero all events, but not remove the Control itself.

The bug:
After showing a MIDI-CC lane at least once Events are sent for this CC.
If there is no corresponding value in the .mid, it will be zero after
session reload.

see also 7e2c8ac

Still ToDo: "Show existing automation" shows the lane even if there
are no values nor any automation at all for the given CC.
libs/ardour/midi_track.cc