Hi, just had some weird behaviour and tracked down this bug in tracktion_MidiList.cpp:718, which results in negative lengths:
BeatDuration MidiNote::getQuantisedLengthBeats (const MidiClip& c) const
{
return getQuantisedStartBeat (c) - getQuantisedEndBeat (c);
}
BeatDuration MidiNote::getQuantisedLengthBeats (const MidiClip* const c) const
{
return getQuantisedStartBeat (c) - getQuantisedEndBeat (c);
}