2xAA / genmdm-editor

A web-based interface for genMDM and Mega Drive MIDI Interface, MIDI controllers for the Sega Mega Drive/Genesis.
https://2xaa.github.io/genmdm-editor/
MIT License
39 stars 6 forks source link

Midi glitches when playing notes and turning knobs at the same time #176

Open hex-spell opened 1 year ago

hex-spell commented 1 year ago

Describe the bug Using the genesis midi interface I found that I cannot play notes and turn knobs at the same time. My guess is that the knobs are sending too many cc messages and flooding the serial connection. This bug is more noticeable in poly mode.

To Reproduce Steps to reproduce the behavior:

  1. use the genesis midi interface, with a serial to usb midi connection. (baud rate is 4800)
  2. connect a midi keyboard and play something
  3. turn the knobs while the notes are playing
  4. the notes should start glitching, like slowing down or not playing at all

Expected behavior we should be able to do both things at the same time

Additional context I made this issue so I can link it to my pull request with a fix

2xAA commented 11 months ago

Thanks for the issue. Just in case anyone else comes looking, MIDI's baud rate is 31250.

The serial connection baud rate for MDMI (Mega Drive MIDI Interface) is 4800, which is about 6.5 times less than the MIDI spec which is really where this issue lies.

MDMI offers many different connection options where this issue is essentially negated, namely using the USB port of an Everdrive Pro or X7, or the MegaWiFi Cartridge.