1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-08 17:46:25 +01:00

Bug1651: NoteTrack sync-lock and crash fixes...

Simplify the logic of duplication of NoteTrack.  Duplicates are always in
serialized state.  Un-serialization can happen on demand in any of the
NoteTrack operations that require a defined sequence.

Changing the duration of the sequence after paste is needed,
as it was also needed, when I fixed Stretch at commit
90eb4ec142.  I don't know if this should be
considered a bug in Allegro that we are compensating.
This commit is contained in:
Paul Licameli
2017-05-24 20:28:44 -04:00
parent b3a70b5993
commit a8ac80eda9
6 changed files with 179 additions and 161 deletions

View File

@@ -62,7 +62,7 @@ bool ImportMIDI(const wxString &fName, NoteTrack * dest)
dest->SetName(trackNameBase);
mf.Close();
// the mean pitch should be somewhere in the middle of the display
Alg_iterator iterator(dest->GetSequence(), false);
Alg_iterator iterator( &dest->GetSeq(), false );
iterator.begin();
// for every event
Alg_event_ptr evt;