I've started my first Arduino project. It's a MIDI filter that uses Francois Best's MIDI.h library which I'm using to filter notes on different channels via a lot of channel switches. That part is working perfectly. However, I need to pass other types of data through to the output. I set it up to read pitch bend and send it back out and it works but the resolution is pretty low - I can hear staircasing. And I can't find any information about how this might be improved. But perhaps I've implemented it incorrectly, I don't know. I'm just doing this:
void HandlePitchBend(byte channel, int val)
I'm wondering if this is a limitation or just a bad approach. Any ideas?