-
OK. With the changes I'm reading about - here's what I'm trying to do? I'm using a Raspberry Pi Pico and Earle Philhower's Arduino core. I need to read from a 5 DIN Serial (with RX and TX pins defined) and if possible use callbacks. In the callbacks, I will be changing notes based on certain criteria and then sending the new/changed notes out via USB connected to a computer (hopefully within the callbacks using sendNoteOn and sendNoteOff). Is this possible using only this library? Currently, I am reading midi data via the serial port (pins 16, 17 on the pico) and parsing the midi data myself. I'm using your USB capability via
and using MIDI to do the sendNoteOn and sendNoteOff. I need all other midi messages to pass to just pass through (which I was hoping to use your new filter capability). So, basically I'm asking can your library do all of this or do I need to just travel the path I've been traveling? Sorry for all the questions and confusion. Frank |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Yes, if you create two instances of the library, one bound to USB and one to DIN / HardwareSerial, you can register a callback on the DIN instance and call send methods on the USB instance, they are independent. As a matter of fact, this is what the DualMerger example does. |
Beta Was this translation helpful? Give feedback.
-
OK. I have the sendNoteOn() and sendNoteOff() passing between the serial and the USB!! Soooo, much easier. But, now, come the filter part. This was your proposed filter from a discussion in August.
That doesn't work. Has this filter part been implemented? |
Beta Was this translation helpful? Give feedback.
-
That seemed to do it. I commented out the following:
And, I know at least the pitch bend and mod wheel are working with just the filter! Cool! Thanks. |
Beta Was this translation helpful? Give feedback.
Ah, indeed this filter/map thing only works for Thru on the same interface, but there's a way to Thru on another interface, by hacking the filter callback and sending from there: