#54 Reopening Virtual Keyboard causes MIDI input errors

closed-fixed
None
5
2010-02-18
2009-11-19
No

When the virtual keyboard is open and closed, an additional note is inputted for every time it was reopened.
For instance, if I open the virtual keyboard, close it, reopen it, and then try to enter a note on a MIDI keyboard, two instances of that note will appear.
The additional notes are also not inputted the same as the original note. When entering an accidental, the first note shown displays the default notation while the following notes are in the notation specified. For example, when specifying English notation and entering one note, I get this: ees ef ef

Using relative mode notation also changes how the notes are displayed. Playing just one note gave me this: g' g''' g,,,,

The virtual keyboard seems to know how many notes were actually inputted because deleting behavior was also different. When the virtual keyboard is on and I try to delete something, I get the following:

before: c c c,, f f f
after: c c,, f f f

------
jEdit Version: 4.3pre16
MIDI input device: Yamaha ux16-1

Discussion

  • Bertalan Fodor

    Bertalan Fodor - 2009-11-19

    I also experienced this, but not always, and I spent a terrible amount of time into investigation. It seems that there is a bug in Java MIDI implementation, but I was not able to track it down, as it is not open native code.

    What I experienced: if I reopen the virtual keyboard, the last note (or even notes) are inserted at that moment. It seems that the MIDI driver sends the same notes again. Is that the same for you?

    Perhaps a workaround can be done (to ignore the note events sent in the first 10 ms or something like that)

     
  • Bertalan Fodor

    Bertalan Fodor - 2009-11-19
    • assigned_to: nobody --> fodber
     
  • James Evensen

    James Evensen - 2009-11-22

    "What I experienced: if I reopen the virtual keyboard, the last note (or
    even notes) are inserted at that moment. It seems that the MIDI driver
    sends the same notes again. Is that the same for you?"

    I don't think so. The duplicate notes are the same note I am entering. I updated java and the driver for my MIDI input device but it is still happening. I don't know how much this is affecting the problem, but I am running Windows.

     
  • Bertalan Fodor

    Bertalan Fodor - 2010-02-18

    I think this is fixed in 2.12.894

     
  • Bertalan Fodor

    Bertalan Fodor - 2010-02-18
    • status: open --> closed-fixed
     

Log in to post a comment.