Open brettrp opened 1 year ago
Additional information:
Using MIDI Monitor, I can see that the buttons are sending
I think this is pretty normal default behaviour for a MIDI button.
It is possible to change the button to behave as a toggle (e.g. send 127 on the first press, 0 on the second press). However, this still leaves the issue of actions like Undo and Tie. These probably shouldn't be executing on the 0 (up/off) message.
My Akai MPK Mini III keyboard has a similar problem.
When I press down on a pad, it sends [185, 21, 127]
. When I release the pad it sends [185, 21, 0]
.
The result of this is as this issue describes. If I bind CC 21 to "Play", MuseScore will play my music only when I am holding it down, as it registers the release message (level 0) as another press.
MuseScore 3 behaves correctly when it receives the same sequence of events. I suspect that it simply ignores CC messages with level 0. This behavior would seem to be appropriate in MuseScore 4 as well. Certainly as an option, if not the default.
I am glad to see #15219 fixed, as it was a major reason I was unable to upgrade to MuseScore 4.0. Unfortunately, due to this issue, MIDI controller bindings are still relatively unusable.
Can reproduce with my Arturia KeyLab 66 as well (4.2 master, Win10)
Doesn't occur in MS3
https://github.com/musescore/MuseScore/assets/90187801/6549ac1e-9cbd-4260-ac50-6f9c7253c1cf
Can reproduce with my Novation LaunchKey 37.
OS: Windows 10 Version 2009 or later, Arch.: x86_64, MuseScore version (64-bit): 4.1.1-232071203, revision: github-musescore-musescore-e4d1ddf
bumping this again, reproducible with a novation launchkey 49 that does indeed send a midi message with strength 0 when releasing a key, that musescore interprets as "release the button". For some reason this behaviour does not apply when selecting a note length in editing mode (I have CC 51 to 56 mapped to choice of length).
This leads to me having to hold the button for things like playing, entering editing mode, etc.
As @tsumare said, it works as intented in the latest musescore 3 version and you don't need to hold the button.
OS: Windows 10 Version 2009 or later, Arch.: x86_64, MuseScore Studio version (64-bit): 4.3.2-241630831, revision: github-musescore-musescore-22b46f2
Affecting me too, Windows 11, Line6 MobileKeys49.
consecutive down/up commands • 127 • 0 • from the same midi button (1 second or less) should count as a single button hit for MuseScore midi mappings.
Issue type
Other type of issue
Bug description
Assigning a MIDI button to command executes the command twice: once on press and once on release. This means:
Note input: toggles on when the button is pressed, toggles off again when released
Duration dot: toggles on when button is pressed, off again when released
Play: starts playing on press, immediately stops on release
Tied note: adds two tied notes: one on press, one on release
Undo: undoes two commands
Rest: toggles on and off again on press and release. But Rest should probably enter a rest of the current duration, not select Rest mode (because otherwise there is no way to enter a rest from a MIDI keyboard)
Steps to reproduce
Screenshots/Screen recordings
see comment
MuseScore Version
OS: macOS 13.3, Arch.: x86_64, MuseScore version (64-bit): 4.0.2-230651546, revision: github-musescore-musescore-dbe7c6d
Regression
I don't know
Operating system
macOS 13.3.1, Apple M1 Max MacBook Pro
Additional context
No response