I've made a simple Karplus Strong synth that I'm trying to control via [notein] to a [mtof]. The problem is that the higher the MIDI note number the longer the delay time, which lowers the pitch... To remedy this, I need to invert the MIDI note numbers. For example, if you play MIDI note number 60 (C3), you want to output note number 67 before hitting the [mtof].
I can use the [select] object to convert a range of numbers to select the inverted number, but this is not practical to do implement for 128 numbers. My next thought was to use a slider with a range from 127 - 0, thinking there might be a way for the input number to be seen as an index that the slider would read from bottom to top, but that is not the case.
Granted, the synth is only usable within a range of ~3 octaves, but I thought I might as well make an abstract that includes the full range. Any thoughts?
FYI - dividing the frequency output by the [mtof] object by 102.5 was all that was needed to tune the delay time