MIDI import: load MIDI model after writing/copying MIDI to a new file
Fixes problem with edits to newly imported MIDI not changing what is played back, because there was no model to connect the region/playlist to, and thus no notifications about the changes to the model were sent
This commit is contained in:
parent
2111cfe557
commit
d28422d420
@ -465,6 +465,7 @@ write_midi_data_to_new_files (Evoral::SMF* source, ImportStatus& status,
|
|||||||
const Temporal::Beats length_beats = Temporal::Beats::ticks_at_rate(t, source->ppqn());
|
const Temporal::Beats length_beats = Temporal::Beats::ticks_at_rate(t, source->ppqn());
|
||||||
smfs->update_length (timecnt_t (length_beats.round_up_to_beat(), timepos_t(Temporal::BeatTime)));
|
smfs->update_length (timecnt_t (length_beats.round_up_to_beat(), timepos_t(Temporal::BeatTime)));
|
||||||
smfs->mark_streaming_write_completed (source_lock);
|
smfs->mark_streaming_write_completed (source_lock);
|
||||||
|
smfs->load_model (source_lock, true);
|
||||||
|
|
||||||
if (status.cancel) {
|
if (status.cancel) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user