Merge pull request #16304 from handrok/export-midi_strings

export-midi: fixed handling of let ring
This commit is contained in:
Alexandr Popov 2023-02-10 10:07:18 +02:00 committed by GitHub
commit a6cd38fb29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -667,7 +667,7 @@ void MidiRenderer::doCollectMeasureEvents(EventMap* events, Measure const* m, co
params.tickOffset = tickOffset;
params.letRingNote = letRingNote;
params.endLetRingTick = endLetRingTick;
if (_context.eachStringHasChannel) {
if (_context.eachStringHasChannel && instr->hasStrings()) {
params.callAllSoundOff = true;
}
collectNote(events, note, params, st1, pitchWheelRenderer);