Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is MIDI with GPIO serial still working as of today? #49

Open
josephernest opened this issue Aug 8, 2022 · 3 comments
Open

Is MIDI with GPIO serial still working as of today? #49

josephernest opened this issue Aug 8, 2022 · 3 comments

Comments

@josephernest
Copy link
Owner

josephernest commented Aug 8, 2022

See https://www.samplerbox.org/article/midiinwithrpi point 3.

Needs to be double-checked if it still works nowadays, with new kernels.

There are 3 places to check:

Then we have to connect a real hardware synthesizer (e.g. Roland or Yamaha), and see if it still works.

@mojca
Copy link
Contributor

mojca commented Aug 8, 2022

I cannot check whether it works "with any hardware midi device" (I only have an Arduino), but I'm thinking of doing the reverse test first: try to open a serial connection and send some messages from RPi, while measuring the rate with oscilloscope. Once that gets confirmed, test in the other direction.

That second test sounds a bit more tricky to me because the messages might get interpreted correctly even at a slightly wrong baud rate settings.

By reading #24 it looks like one might have to verify this on:

  • various Debian versions
  • various RPi models (at least zero, 2B, 4)
  • maybe both 32-bit and 64-bit(?)
  • using both serial and USB connection
    and I'm not sure if I can cover all combinations of them, but I can try some. I won't have hardware access before the weekend (and no hardware + oscilloscope combination before next week).

When things broke for me, it might be that it was a result of some mixture of apt-get update && apt-get upgrade, switching between RPi 2B+ and RPi4, ...

What's the oldest OS that you want to target?

On https://www.raspberrypi.com/software/operating-systems/ there is a link to Debian 11 2022-04-04-raspios-bullseye-armhf-lite.img.xz, but your scripts are currently pointing to Debian 10.

@josephernest
Copy link
Owner Author

With oscilloscope it might work, and then finally not work on a real Roland, Yamaha synth, etc. So I'll do this test one of these days with real synthesizers, to be sure everything works without the 38400 baud hack :)

@josephernest josephernest changed the title MIDI 38400 / 31250 baud hack Is MIDI with GPIO serial still working as of today? Aug 9, 2022
@josephernest josephernest reopened this Aug 9, 2022
@rolfmeurer
Copy link

Python script MIDI IN via SERIAL PORT is very poor. Running status is not considered, so most keyboards produce stuck notes. The Python script then accepts neither NOTE OFF as a NOTE ON message with Velocity=0 nor NOTE OFF as a 0x8n message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants