- Edited
I'm hoping to use the Bela to take MIDI inputs from the mini-USB port and output them at the USB-A port, using Pd. The project I'm working on happens to be using a Bela and an Arduino both receiving MIDI, so it would be nice to be able to daisy chain them.
Anyway, I did some searching and found how to use the mini-USB for MIDI input, and that is now working. I can send notes to the mini-USB port and my Pd patch sees them.
I know that MIDI ports are determined by channels. The output of amidi -l
for me is:
IO hw:0,0 f_midi
IO hw:1,0,0 Fastlane MIDI A
IO hw:1,0,1 Fastlane MIDI B
The Fastlane is what converts USB MIDI to 5-pin MIDI for the Arduino. Fastlane is connected to the USB-A port, f_midi is the mini-USB port.
When I run my project, it tells me that hw:1,0,0 (Fastlane) is Pd channels 0-15, but this page of Pd documentation suggests otherwise:
channel "17" in Pd means midi channel 1 in port 2
so Pd works in terms of 1-16, not 0-15. I know that from experience because [notein 0] works as omni.
But there's still more confusion. I put the following in _main.pd:
[notein 16]
|
[nouteout 32]
Based on what the Bela says for the two ports, and knowing that Pd 1-16 is Bela 0-15, this should actually take in notes from the Fastlane (hw:1,0,0) and output to the mini-USB (hw:0,0,0). But what I actually see is that it's taking in notes from the mini-USB and (as far as I can tell) not outputting anything to the Fastlane.
What's going on here? Is there a way to get this working?
Thanks!