Skip to content

Commit

Permalink
fix mtest
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Dec 9, 2024
1 parent 6e2c03a commit b3d39e8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
1 change: 1 addition & 0 deletions libmscore/rendermidi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2067,6 +2067,7 @@ void Score::createGraceNotesPlayEvents(const Fraction& tick, Chord* chord, int&
{
QVector<Chord*> gnb = {};
int nb = 0;
// exclude grace chords where all notes are set not to play
for (Chord* c : chord->graceNotesBefore()) {
bool play = false;
for (Note* note : c->notes()) {
Expand Down
35 changes: 17 additions & 18 deletions mtest/libmscore/midi/testBeforeAfterGraceTrillPlay=false-ref.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Tick = 0 Type = 144 Pitch = 81 Velocity = 80 Channel = 0
Tick = 0 Type = 3 Pitch = 0 Velocity = 127 Channel = 0
Tick = 60 Type = 144 Pitch = 81 Velocity = 0 Channel = 0
Tick = 184 Type = 144 Pitch = 76 Velocity = 80 Channel = 0
Tick = 244 Type = 144 Pitch = 76 Velocity = 0 Channel = 0
Tick = 245 Type = 144 Pitch = 74 Velocity = 80 Channel = 0
Tick = 305 Type = 144 Pitch = 74 Velocity = 0 Channel = 0
Tick = 311 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
Tick = 61 Type = 144 Pitch = 76 Velocity = 80 Channel = 0
Tick = 121 Type = 144 Pitch = 76 Velocity = 0 Channel = 0
Tick = 122 Type = 144 Pitch = 74 Velocity = 80 Channel = 0
Tick = 182 Type = 144 Pitch = 74 Velocity = 0 Channel = 0
Tick = 186 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
Tick = 480 Type = 4 Pitch = 0 Velocity = 80 Channel = 0
Tick = 958 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
Tick = 960 Type = 4 Pitch = 0 Velocity = 127 Channel = 0
Expand All @@ -16,14 +16,13 @@ Tick = 1597 Type = 144 Pitch = 72 Velocity = 80 Channel =
Tick = 1914 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
Tick = 1920 Type = 144 Pitch = 81 Velocity = 80 Channel = 0
Tick = 1920 Type = 3 Pitch = 0 Velocity = 127 Channel = 0
Tick = 1980 Type = 144 Pitch = 81 Velocity = 0 Channel = 0
Tick = 2042 Type = 144 Pitch = 77 Velocity = 80 Channel = 0
Tick = 2102 Type = 144 Pitch = 77 Velocity = 0 Channel = 0
Tick = 2104 Type = 144 Pitch = 76 Velocity = 80 Channel = 0
Tick = 2164 Type = 144 Pitch = 76 Velocity = 0 Channel = 0
Tick = 2165 Type = 144 Pitch = 74 Velocity = 80 Channel = 0
Tick = 2225 Type = 144 Pitch = 74 Velocity = 0 Channel = 0
Tick = 2231 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
Tick = 1981 Type = 144 Pitch = 77 Velocity = 80 Channel = 0
Tick = 2041 Type = 144 Pitch = 77 Velocity = 0 Channel = 0
Tick = 2042 Type = 144 Pitch = 76 Velocity = 80 Channel = 0
Tick = 2102 Type = 144 Pitch = 76 Velocity = 0 Channel = 0
Tick = 2104 Type = 144 Pitch = 74 Velocity = 80 Channel = 0
Tick = 2164 Type = 144 Pitch = 74 Velocity = 0 Channel = 0
Tick = 2169 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
Tick = 2400 Type = 4 Pitch = 0 Velocity = 80 Channel = 0
Tick = 2878 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
Tick = 2880 Type = 4 Pitch = 0 Velocity = 127 Channel = 0
Expand Down Expand Up @@ -159,11 +158,11 @@ Tick = 7672 Type = 144 Pitch = 72 Velocity = 0 Channel =
Tick = 7680 Type = 144 Pitch = 81 Velocity = 80 Channel = 0
Tick = 7680 Type = 3 Pitch = 0 Velocity = 127 Channel = 0
Tick = 7740 Type = 144 Pitch = 81 Velocity = 0 Channel = 0
Tick = 7864 Type = 144 Pitch = 76 Velocity = 80 Channel = 0
Tick = 7924 Type = 144 Pitch = 76 Velocity = 0 Channel = 0
Tick = 7925 Type = 144 Pitch = 74 Velocity = 80 Channel = 0
Tick = 7985 Type = 144 Pitch = 74 Velocity = 0 Channel = 0
Tick = 7991 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
Tick = 7741 Type = 144 Pitch = 76 Velocity = 80 Channel = 0
Tick = 7801 Type = 144 Pitch = 76 Velocity = 0 Channel = 0
Tick = 7802 Type = 144 Pitch = 74 Velocity = 80 Channel = 0
Tick = 7862 Type = 144 Pitch = 74 Velocity = 0 Channel = 0
Tick = 7866 Type = 144 Pitch = 72 Velocity = 80 Channel = 0
Tick = 8160 Type = 4 Pitch = 0 Velocity = 80 Channel = 0
Tick = 8638 Type = 144 Pitch = 72 Velocity = 0 Channel = 0
Tick = 8640 Type = 4 Pitch = 0 Velocity = 127 Channel = 0
Expand Down

0 comments on commit b3d39e8

Please sign in to comment.