triggerbox: handle tempo map changes better inside and around MIDI triggers

Multimedia / Ardour - Paul Davis [linuxaudiosystems.com] - 30 September 2022 23:23 UTC

We now try to get to the right location within the MIDI data and continue playing, rather than pretending that we reached the end.

This also fixes a thinko that caused only the first few notes of a MIDI trigger to play.

This may also solve cases where due to length, sample rate and tempo settings, a trigger finished precisely on a ::run() call boundary.

b2145521d9 triggerbox: handle tempo map changes better inside and around MIDI triggers
libs/ardour/ardour/triggerbox.h | 9 ++
libs/ardour/triggerbox.cc | 260 ++++++++++++++++++++++++++++++----------
2 files changed, 209 insertions(+), 60 deletions(-)

  • Share