Follow MIDI control values with automation faders

Multimedia / Ardour - David Robillard [drobilla.net] - 25 March 2015 23:47 UTC

Fixes bug #6166 (except record).

This attempts to follow the "current" control value somewhat aggressively:

- On locate, slider is set to the value from the top region at the new transport position.

- Playback or MIDI input is followed "live".

- Whenever the slider is moved (including automatically), that value is emitted as an immediate event to keep external gear in sync.

General idea is that the Ardour slider should act as a mirror of an external hardware knob, and both should be synced to whatever the control is at the current transport position. Since we lack real playback/touch/etc modes for these for now, we must choose one behaviour, and this seems like the most reasonable one.

Follow is handled in the audio thread, which is probably not ideal, but since these controls have no lists and do not record, should be fine. Probably.

7e2c8ac Follow MIDI control values with automation faders.
libs/ardour/ardour/midi_track.h | 4 +++
libs/ardour/ardour/parameter_types.h | 21 +++++++++++++
libs/ardour/midi_track.cc | 54 ++++++++++++++++++++++++++++++++++
libs/evoral/evoral/MIDIEvent.hpp | 15 ++++++++++
4 files changed, 94 insertions(+)

  • Share