MuseScore icon indicating copy to clipboard operation
MuseScore copied to clipboard

midi note entry does not accurately track midi on off messages

Open a101010 opened this issue 1 month ago • 2 comments

Issue type

UX/Interaction bug (incorrect behaviour)

Description with steps to reproduce

Expected behavior: Note entry with a MIDI device should accurately track the notes currently being sounded on the MIDI input device. (Also, it would be nice if when you are pressing nothing on the MIDI device, the last note is not saved so you can enter a rest by pressing a duration with nothing played. That behavior seems to be intended, so that part may be a feature request.) Actual behavior: If you press a single note or chord, that note or chord will be accurately tracked. However, if you change the chord, it will clear notes that are still being pressed, so what you enter does not match what you are playing. The sound engine seems to (mostly) accurately get note on and off messages (although sometimes it seems to miss note off messages. That's a separate issue, however.) But the note entry state does not track accurately at all. If this is by design for some reason (to support entry with a PC keyboard instead of a MIDI device?) it seems like incorrect behavior for MIDI devices. They should track accurately what is currently being played.

Supporting files, videos and screenshots

Video with midi messages and finger positions.

https://github.com/user-attachments/assets/7fb21415-bd69-4644-877e-6babf9e819e4

In which versions of MuseScore Studio is this issue present?

4.5-4.6.4

Regression

No.

Operating system

Windows 10

Additional context

So, in 4.5, the behavior is different. It seems even more restrictive. Default playback duration is different. But it still didn't support entering what you are currently playing, as opposed to the most recent set of keys played at about the same time. In fact, sometimes 4.5 doesn't seem to register an entire chord.

Checklist

  • [x] This report follows the guidelines for reporting bugs and issues
  • [x] I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
  • [x] I have attached all requested files and information to this report
  • [x] I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible

a101010 avatar Dec 07 '25 03:12 a101010

And, as you can hear from the video, there are some really bad audio playback problems that manifest as horrible static. But that is a separate issue.

a101010 avatar Dec 07 '25 03:12 a101010

I'm not sure I understand what you are trying to do here. But to be clear: you are in the special "input by duration" mode, not in the main note input mode. So notes are only supposed to be entered when you press a duration key - and definitely a note, not a rest. I'm guessing you really want to be in the main note input mode (the icon to the left).

MarcSabatella avatar Dec 07 '25 03:12 MarcSabatella