this can be made much more precise of course.
look at the remapaxis object i made the axis49 controller. while it is not what you are looking for exactly, it will give you strong hints.
the section in the k-rate code:
outlet_out= (reMap[(inlet_in >>21 ) + 63] - 64)<<21;
should get you started. i am reading out the reMap array (defined in the local data) with the values that come into the inlet. since those are fixed point numbers that represent midi values i shift them left by a factor of 21. (means 21times divided by 2) that gives me 7 bit numbers. i add 63 to that to get them into a range from 0-127.
now for your approach leave the - 64 and left shift out for the moment.
ask yourself this, how much precision do i want?
if you have a frequency for midi note number 60 (so the 60th place in your array) and it reads something like this in float: 320.32347 (just an example), you would
multiply that value x-times by two. if you want to go full resolution you would multiply the value 21 times by two and would not need the <<21 at the end of the code.
the -64 will then also become a much larger number. i.e. -64 multiplied by 21 times 2 as well (if you choose to multiply that much.
i hope this helps.
(as an aside i would still recommend to recalculate the values to something that represents midi notes rather then pitch. it would just work much better in the axoloti universe. so basically your 320.3247 hz would become something like 60.212393939 or whatever. you would then do the things i described above to that number)
the formula to convert from frequency to midi note number should be widely available...