Hi!
I'm running into an issue where my USB MIDI device will not connect to the Bela when I'm running a project from boot. Here are the symptoms:
- I have a Pd patch that uses [ctlout] to send messages to a Teensy running as a USB MIDI controller. I use one message to turn on the LED on the Teensy so I know that it has connected properly. I also have a tone playing in the patch to make sure that the patch is launching properly too.
- If I run the patch from the IDE on the Bela it connects perfectly and sends the messages to the Teensy. The light turns on, everything is great.
- If I set the patch to run on boot, the MIDI connection is never made. I know the patch launches properly on the Bela, because the test tone starts playing. However the Teensy light does not turn on, implying that it is not receiving MIDI messages.
- This can be confirmed by launching the IDE when the patch has been set to launch on boot. In the console window it says:
bela stdbuf[93]: No MIDI device enabled
- At that point, if I stop the Bela and then click Build & Run the patch launches perfectly again, the MIDI connection is made, and the console window lists a MIDI device as enabled.
I have definitely used this approach in the past, so I'm confused!