Reread MIDI region when time-domain changes

This effectively triggers a Session::request_overwrite_buffer
via Playlist::notify_contents_changed when the time-domain of a
Region changes.

When the time domain of a MIDI region changes, Region boundaries
and events positions change ever so slightly. The playlist has
to be rendered again to take this into account.

When MIDI regions with different time-domains are layered, notes
may not be resolved in correct order. Previously changing time-domains
to address this did not result in the playlist being reread.
This commit is contained in:
Robin Gareus
2022-09-11 00:49:21 +02:00
parent c7f5c89681
commit 38c5ae4237

View File

@@ -1656,6 +1656,7 @@ Playlist::region_changed (const PropertyChange& what_changed, boost::shared_ptr<
our_interests.add (Properties::layer);
our_interests.add (Properties::opaque);
our_interests.add (Properties::contents);
our_interests.add (Properties::time_domain);
bounds.add (Properties::start);
bounds.add (Properties::length);