MIDI input works for playback but not for note input
I am using my launchkey 25 MIDI keyboard with musescore 2. I plugged it in, and then opened musescore. The keyboard playback works when a stave is selected, but when I enter note input mode, I can not enter notes with the MIDI keyboard, only using the onscreen keyboard or by typing in notes. Notes on the MIDI keyboard show up on the on-screen keyboard, even when note input mode is enabled, but no sound is made when note input mode is on, and no notes appear on the stave. Any ideas?
Comments
If you first enter a note using another method, does your keyboard then start working to add notes to the first note, forming a big chord? If so, then it seems your keyboard is failing to send note off messages - that is what MuseScore needs to see in order to know a note has been entered. otherwise it keeps waiting to see if you want to add more notes to the current chord. So you will need to consult the documentation for your keybaord to see if there is a way to get it to send these. All MIDI keyboards should do so by default, but apparently some models don't.
In reply to If you first enter a note… by Marc Sabatella
Yes that's exactly it! I will look into note off messages. The weird thing is that my keyboard used to work fine with MuseScore, but it has been acting up for the last few weeks.
In reply to Yes that's exactly it! I… by thom20
My keyboard worked also fine, but a long time ago. Perhaps with a previous version of Ubuntu. I will investigate.
In reply to My keyboard worked also fine… by robert leleu
I tested 2 MIDI keyboards which are seen by aplaymidi under Ubuntu 17.04
leleu@leleu-portable:~$ aplaymidi -l
Port Client name Port name
14:0 Midi Through Midi Through Port-0
20:0 E-MU XMidi1X1 Tab E-MU XMidi1X1 Tab MIDI 1
leleu@leleu-portable:~$ aplaymidi -l
Port Client name Port name
14:0 Midi Through Midi Through Port-0
20:0 miditech MIDI I/O miditech MIDI I/O MIDI 1
however none appears en score2.1
In reply to If you first enter a note… by Marc Sabatella
Update: I have tested the keyboard with Garageband, and it works totally fine, leading me to think that it is something to do with musescore. I also can not find any way to change the preferences of my MIDI keyboard... you just plug it in and it works, there aren't any drivers or anything. Still can't find a fix.
In reply to Update: I have tested the… by thom20
Garageband probably keys off midi on messages instead of midi off so it doesn't notice the missing off messages. Again, I suggest you need consult the documentation for your keyboard to learn if it is possible to enable them.
In reply to Garageband probably keys off… by Marc Sabatella
Many companies use the "note-on = 0" message instead of the "midi-off" message.
Maybe it would be useful to add this to the source-code.
In reply to Garageband probably keys off… by Marc Sabatella
I've looked at the user manual and there is nothing on how to turn on note-off messages. In the "MIDI implementation" table at the bottom of the manual, note-off messages are checked "yes" in the column for transmission, which suggests that they are on by default. I still don't have any idea on what to do.
In reply to I've looked at the user… by thom20
Odd, then I don't know what might be happening. Could still be worth hooking up to a MIDI monitor to see if maybe it is transmitting on the wrong channel or something.
I have the (same?) problem under Mscore 2.1 (Ubuntu 17.04)
The onscreen keyboard sizes notes
The external MIDI keyboard doesn't. It doesn't appear in the Preferences>I/O tab, where pulseaudio is selected, and in the Preferences>Edition tab "MIDI in" is activated
In reply to I have the (same?) problem… by robert leleu
If it doesn't appear in preference, it's probably a different issue. Mostly likely, you aren't finding it making sound either then, or lighting up the on-screen keyboard. The problem at hand is probably with the keybaord itself; your problem is more likely an OS configuration issue.
In reply to I have the (same?) problem… by robert leleu
Here some further investigations, successful for a native USB keyboard, but not for a MIDIconnecting one equipped with Xmidi1xi Tab E-MU
Connecting a keyboard to musescore
1/Alsa is running and receives events from the keyboard, as demonstrated by the following lines
leleu@leleu-portable:~$ aconnect -i
client 0: 'System' [type=noyau]
0 'Timer '
1 'Announce '
client 14: 'Midi Through' [type=noyau]
0 'Midi Through Port-0'
client 24: 'miditech MIDI I/O' [type=noyau,card=2]
0 'miditech MIDI I/O MIDI 1'
leleu@leleu-portable:~$ aseqdump -p24
Waiting for data. Press Ctrl+C to end.
Source Event Ch Data
24:0 Active Sensing
24:0 Note on 0, note 59, velocity 83
24:0 Note off 0, note 59
24:0 Note on 0, note 60, velocity 65
2/Mscore starts configured on Pulseaudio
the keyboard events don't impact mscore
3/Mscore starts configured on portaudio. (or Alsa audio)
Mscore is seen by aconnect
leleu@leleu-portable:~$ aconnect -i
client 0: 'System' [type=noyau]
0 'Timer '
1 'Announce '
client 14: 'Midi Through' [type=noyau]
0 'Midi Through Port-0'
client 20: 'miditech MIDI I/O' [type=noyau,card=1]
0 'miditech MIDI I/O MIDI 1'
client 128: 'MuseScore' [type=utilisateur,pid=3391]
2 'MuseScore Port-0'
Keybord "plays" mscore
4/ same as previous but keyboard is MIDI connected through a MIDI-USB adaptator, which is seen (as MIDI-through) by aconnect
leleu@leleu-portable:~$ aconnect -i
client 0: 'System' [type=noyau]
0 'Timer '
1 'Announce '
client 14: 'Midi Through' [type=noyau]
0 'Midi Through Port-0'
client 20: 'E-MU XMidi1X1 Tab' [type=noyau,card=1]
0 'E-MU XMidi1X1 Tab MIDI 1'
However aseqdump receives no information
leleu@leleu-portable:~$ aseqdump -p20
Waiting for data. Press Ctrl+C to end.
Source Event Ch Data
However the MIDI-USB association is seen
leleu@leleu-portable:~$ amidi -l
Dir Device Name
IO hw:1,0,0 E-MU XMidi1X1 Tab MIDI 1
See: #138621: MIDI keyboard note input disabled if new instrument added?