I am trying to use incoming MIDI data on my Raspberry Pi 3's USB port to virtually trigger an input GPIO pin. The reason for this is as follows:

  • I'm using the MIDI out port on a Behringer X-32 audio mixer to send midi data to the Pi running Windows 10 IoT Core. This is because the Pi is running a notification / HUD program for radio studio. The program can trigger display changes based on GPIO pin states, but is not built for our mixer which only has MIDI. To bridge the gap between MIDI and GPIO, my current idea is to write a program for UWP that will decode the incoming midi data and virtually trigger a GPIO input pin which the program can sense. Does anyone know if this is possible?

  • If not, would I be better off doing: a. writing the UWP program to actually trigger an output pin which I just jump back over to an input pin the HUD program can sense? or b. Decoding the MIDI data and turning it into GPIO data via an Arduino before even getting to the Pi?

  • It's certainly possible as I do this under Linux on the Pi quite often for testing scripts. I wonder if the hooks would be exposed by Windows IoT though. – joan Mar 27 '18 at 15:23
  • Thanks Joan, could you explain how you do it? – nathanoday Mar 28 '18 at 18:10
  • I just write to the GPIO register which sets the GPIO levels. – joan Mar 28 '18 at 19:26
  • Gotcha, makes sense. I'll give it a try! – nathanoday Apr 3 '18 at 14:22
  • 1
    It is difficult to follow. Do you mean trigger the GPIO on the Pi which is running this program? I do not understand why you need to "virtually" trigger GPIO ports. You may aswell virtually trigger sockets or other I/O - If you "virtually" trigger the GPIO then the actual GPIO wont trigger... so if something is attached to the GPIO then it wont trigger? Can you elaborate a bit more please. I am sure there is another way of solving this rather than "virtually" triggering stuff. – Piotr Kula May 2 '18 at 7:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.