Skip to content

Commit

Permalink
fix #52101: wrong pitch for ornaments with transposing instruments
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Apr 8, 2015
1 parent d5850ac commit 5dddb26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/rendermidi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ static QList<NoteEventList> renderChord(Chord* chord, int gateTime, int ontime)
events->clear();
events->append(NoteEvent(0, 0, 125));
Key key = chord->staff()->key(chord->segment()->tick());
int pitch = chord->notes()[k]->pitch();
int pitch = chord->notes()[k]->epitch();
int pitchDown = diatonicUpDown(key, pitch, -1);
events->append(NoteEvent(pitchDown - pitch, 125, 125));
events->append(NoteEvent(0, 250, 750));
Expand All @@ -864,7 +864,7 @@ static QList<NoteEventList> renderChord(Chord* chord, int gateTime, int ontime)
events->clear();
events->append(NoteEvent(0, 0, 125));
Key key = chord->staff()->key(chord->segment()->tick());
int pitch = chord->notes()[k]->pitch();
int pitch = chord->notes()[k]->epitch();
int pitchUp = diatonicUpDown(key, pitch, 1);
events->append(NoteEvent(pitchUp - pitch, 125, 125));
events->append(NoteEvent(0, 250, 750));
Expand Down

0 comments on commit 5dddb26

Please sign in to comment.