From e9ee2571f2e4f06af6fb60a9c5618552777b4d2b Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sun, 6 Jul 2008 11:08:54 +0000 Subject: [PATCH] Unhighlight playback note on pause --- Sources/VLMIDIWriter.cpp | 2 +- Sources/VLSheetViewSelection.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/VLMIDIWriter.cpp b/Sources/VLMIDIWriter.cpp index decf10b..adfc39a 100644 --- a/Sources/VLMIDIWriter.cpp +++ b/Sources/VLMIDIWriter.cpp @@ -53,7 +53,7 @@ void VLMIDIWriter::VisitMeasure(size_t m, VLProperties & p, VLMeasure & meas) void VLMIDIWriter::VisitNote(VLLyricsNote & n) { - if (n.fPitch != VLNote::kNoPitch && !(n.fTied & VLNote::kTiedWithPrev)) { + if (!(n.fTied & VLNote::kTiedWithPrev)) { VLMIDIUserEvent event = {8, n.fPitch, fStanza, fMeasure, fAt}; MusicTrackNewUserEvent(fTrack, fNoteTime, reinterpret_cast(&event)); diff --git a/Sources/VLSheetViewSelection.mm b/Sources/VLSheetViewSelection.mm index 5e83a38..52acde8 100644 --- a/Sources/VLSheetViewSelection.mm +++ b/Sources/VLSheetViewSelection.mm @@ -64,7 +64,7 @@ - (void) highlightCursor { - if (fNoteMeasure != 0x80000000) + if (fNoteMeasure != 0x80000000 && fNotePitch != VLNote::kNoPitch) [fView drawNoteCursor:fNotePitch inMeasure:fNoteMeasure at:fNoteAt]; if (fChordMeasure != 0x80000000) [fView highlightChordInMeasure:fChordMeasure at:fChordAt];