We should have a helper (DSL) function to easily change the channel of an incoming MIDI message.
Why
This is a very common MIDI processing use case.
Considerations
This may require binary arithmetic at the moment. No, I do not think this is great. If you're feeling motivated and want to build out more bytes -> env conversion, that would be lovely.
It would be really cool if this took a list of channels so that, for example, multiple volume CCs could be changed at once, or a note could be played on several channels at a time. N.B. #5 could also help with this.
There is a loose convention around using n and v for channel-bound or "channeled" messages like notes, CCs, and program changes, where n is e.g. note or number and v is e.g. velocity or value, but this implementation is incomplete.
Summary
We should have a helper (DSL) function to easily change the channel of an incoming MIDI message.
Why
This is a very common MIDI processing use case.
Considerations
n
andv
for channel-bound or "channeled" messages like notes, CCs, and program changes, wheren
is e.g. note or number and v is e.g. velocity or value, but this implementation is incomplete.