Hi, Lucarda--
Thanks for sending!
I have the four-octave version of the keyboard, for a total of 844 keys. As you might imagine, I'm not eager to populate a text table with 844 values (105 values apiece for MIDI channels 5, 7, 9, and 11, and 106 values apiece for MIDI channels 6, 8, 10,
and 12). :-)
Also, I feel that because it's worth doing at all, it's worth writing the abstraction so that it will also work for musicians using the six-octave keyboard (1266 keys) and even for those lucky few who have one of the rare eight-octave keyboards (1688 keys).
So, I will continue to work on an abstraction that calculates the correct MIDI note number, and see how much lag those computations generate before I turn to populating a lookup table. But again, thanks for sending! I especially appreciate the explanations
in your patch comments.
Muchas gracias,
Brian