Skip to content

Commit c892561

Browse files
Merge pull request #29554 from RomanPudashkin/input_by_duration_pedal_preview
Fix #29511: Sustain pedal re-triggers notes, compounding audio input signal
2 parents 58fee5e + 76b5a23 commit c892561

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/notation/internal/notationmidiinput.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,8 @@ void NotationMidiInput::addNoteEventsToInputState()
275275
playbackController()->playNotes(notesOff, staffIdx, state.segment(), makeNoteOffParams());
276276
}
277277

278-
if (!notesOn.empty()) {
278+
if (!notesOn.empty() && notesOn != state.notes()) {
279279
noteInput->setRestMode(false);
280-
281-
if (!m_holdingNotesInInputByDuration && notesOn == state.notes()) {
282-
return;
283-
}
284-
285280
noteInput->setInputNotes(notesOn);
286281

287282
if (playPreviewNotes) {

0 commit comments

Comments
 (0)