atsushieno / managed-midi

[Past project] Cross-platform MIDI processing library for mono and .NET (ALSA, CoreMIDI, Android, WinMM and UWP).
MIT License
195 stars 26 forks source link

Strange behaviour of X-Touch Mini on Raspberry Pi 5 #79

Open jskeet opened 7 months ago

jskeet commented 7 months ago

I'm trying to use an X-Touch Mini to control a digital audio mixer. I've got code that has worked for ages on Windows, with no problems.

I use the X-Touch Mini in "Mackie Mode", and normally that means receiving a MIDI message length 3 with the first byte of data as 0x90 whenever one of the buttons is pressed.

On my Raspberry Pi 5 (having installed libasound2-dev), the very first button press shows the right data - but after that, the first byte is missing on each MessageReceived event. (So I get messages of length 2 - the same data as I'd normally get, but missing the first byte.)

I don't currently have any easy way of testing this on another Linux machine, but I'm in the market for "any good ideas" at the moment, including anything I could do to help diagnose things further.

MatthewInch commented 7 months ago

I have the that issue too on linux. From raspberry to controller everything is fine, but from the controller onlx the first message is good

jskeet commented 7 months ago

@MatthewInch: Is that with an X-Touch Mini, or a different device? (Glad to hear it's not just me though.)

MatthewInch commented 7 months ago

with x-touch and x-touch extender, raspbery 4. I tried it with different linux distributions

jskeet commented 7 months ago

Thanks. I might have to clone the repo and see what I can find...

jskeet commented 7 months ago

Okay, I've tracked this down to https://github.com/atsushieno/alsa-sharp/issues/2.