From 346ee60cd2c01865608f0e646f5efad564d52105 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 22 Jun 2025 02:53:34 +0200 Subject: [PATCH] Update clip length after clearing all notes (#7960) When clearing notes from a long melody clip in pattern editor, it looks like the clip becomes short, but it actually remains the same length (despite empty), and that affects the length of the whole pattern. This PR fixes this issue. --- src/tracks/MidiClip.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tracks/MidiClip.cpp b/src/tracks/MidiClip.cpp index e9b507df5..b422be824 100644 --- a/src/tracks/MidiClip.cpp +++ b/src/tracks/MidiClip.cpp @@ -288,6 +288,7 @@ void MidiClip::clearNotes() instrumentTrack()->unlock(); checkType(); + updateLength(); emit dataChanged(); }