I found a formula here:
http://www.pd-tutorial.com/english/ch03.html
and created a little JavaScript function (edited to shift result down by 64):
function freq2note2(Hz) {
return 5 + 12 * Math.log2(Hz / 440);
};
...which produces
cycles: 1, note: B8, fractional note value: 55.21309485364914
cycles: 2, note: B7, fractional note value: 43.21309485364914
cycles: 3, note: E7, fractional note value: 36.19354484499526
cycles: 4, note: B6, fractional note value: 31.213094853649125
cycles: 5, note: G6, fractional note value: 27.349957715000784
cycles: 6, note: E6, fractional note value: 24.19354484499526
cycles: 7, note: C#6, fractional note value: 21.524835788957887
cycles: 8, note: B5, fractional note value: 19.213094853649125
cycles: 9, note: A5, fractional note value: 17.17399483634138
cycles: 10, note: G5, fractional note value: 15.349957715000784
cycles: 11, note: F5, fractional note value: 13.699915430001568
cycles: 12, note: E5, fractional note value: 12.193544844995259
cycles: 13, note: D5, fractional note value: 10.80781823595602
cycles: 14, note: C#5, fractional note value: 9.524835788957887
cycles: 15, note: C5, fractional note value: 8.330407706346904
cycles: 16, note: B4, fractional note value: 7.213094853649125
cycles: 17, note: A#4, fractional note value: 6.1635407586450555
cycles: 18, note: A4, fractional note value: 5.173994836341379
cycles: 19, note: G#4, fractional note value: 4.237964692326102
cycles: 20, note: G4, fractional note value: 3.3499577150007838
cycles: 21, note: F#4, fractional note value: 2.505285780304007
cycles: 22, note: F4, fractional note value: 1.6999154300015675
cycles: 23, note: E4, fractional note value: 0.9303513809649786
cycles: 24, note: E4, fractional note value: 0.1935448449952588
cycles: 25, note: D#4, fractional note value: -0.5131794236475642
cycles: 26, note: D4, fractional note value: -1.1921817640439798
cycles: 27, note: D4, fractional note value: -1.845555172312494
cycles: 28, note: C#4, fractional note value: -2.47516421104212
cycles: 29, note: C4, fractional note value: -3.0826770878817342
cycles: 30, note: C4, fractional note value: -3.6695922936530962
cycles: 31, note: B3, fractional note value: -4.237260870993374
cycles: 32, note: B3, fractional note value: -4.786905146350868
cycles: 33, note: A#3, fractional note value: -5.3196345786523125
cycles: 34, note: A#3, fractional note value: -5.8364592413549445
cycles: 35, note: A3, fractional note value: -6.338301349690468
cycles: 36, note: A3, fractional note value: -6.826005163658621
cycles: 37, note: G#3, fractional note value: -7.300345533898266
cycles: 38, note: G#3, fractional note value: -7.762035307673898
cycles: 39, note: G3, fractional note value: -8.211731772697846
cycles: 40, note: G3, fractional note value: -8.650042284999216
cycles: 41, note: F#3, fractional note value: -9.077529201767874
cycles: 42, note: F#3, fractional note value: -9.494714219695993
cycles: 43, note: F#3, fractional note value: -9.902082202776043
cycles: 44, note: F3, fractional note value: -10.30008456999844
cycles: 45, note: F3, fractional note value: -10.68914230230697
cycles: 46, note: E3, fractional note value: -11.069648619035029
cycles: 47, note: E3, fractional note value: -11.44197136648252
cycles: 48, note: E3, fractional note value: -11.806455155004741
cycles: 49, note: D#3, fractional note value: -12.163423275733372
cycles: 50, note: D#3, fractional note value: -12.513179423647571
cycles: 51, note: D#3, fractional note value: -12.856009250008817
cycles: 52, note: D3, fractional note value: -13.19218176404398
cycles: 53, note: D3, fractional note value: -13.52195060110926
cycles: 54, note: D3, fractional note value: -13.845555172312494
cycles: 55, note: C#3, fractional note value: -14.163221708646788
cycles: 56, note: C#3, fractional note value: -14.47516421104212
cycles: 57, note: C#3, fractional note value: -14.78158531632777
cycles: 58, note: C3, fractional note value: -15.082677087881734
cycles: 59, note: C3, fractional note value: -15.378621738692964
cycles: 60, note: C3, fractional note value: -15.669592293653096
cycles: 61, note: C3, fractional note value: -15.955753197105508
cycles: 62, note: B2, fractional note value: -16.237260870993367
cycles: 63, note: B2, fractional note value: -16.514264228349873
cycles: 64, note: B2, fractional note value: -16.78690514635087
cycles: 65, note: A#2, fractional note value: -17.05531890269232
cycles: 66, note: A#2, fractional note value: -17.319634578652312
cycles: 67, note: A#2, fractional note value: -17.579975431844147
cycles: 68, note: A#2, fractional note value: -17.836459241354945
cycles: 69, note: A2, fractional note value: -18.0891986276889
cycles: 70, note: A2, fractional note value: -18.338301349690468
cycles: 71, note: A2, fractional note value: -18.58387058040706
cycles: 72, note: A2, fractional note value: -18.826005163658614
cycles: 73, note: G#2, fractional note value: -19.06479985291108
cycles: 74, note: G#2, fractional note value: -19.300345533898273
cycles: 75, note: G#2, fractional note value: -19.532729432301437
cycles: 76, note: G#2, fractional note value: -19.762035307673898
cycles: 77, note: G#2, fractional note value: -19.988343634689684
cycles: 78, note: G2, fractional note value: -20.211731772697846
cycles: 79, note: G2, fractional note value: -20.43227412447611
cycles: 80, note: G2, fractional note value: -20.650042284999223
cycles: 81, note: G2, fractional note value: -20.865105180966367
cycles: 82, note: F#2, fractional note value: -21.077529201767874
cycles: 83, note: F#2, fractional note value: -21.287378322513973
cycles: 84, note: F#2, fractional note value: -21.494714219695993
cycles: 85, note: F#2, fractional note value: -21.699596380003292
cycles: 86, note: F#2, fractional note value: -21.90208220277605
cycles: 87, note: F2, fractional note value: -22.102227096535614
cycles: 88, note: F2, fractional note value: -22.30008456999844
cycles: 89, note: F2, fractional note value: -22.49570631794765
cycles: 90, note: F2, fractional note value: -22.68914230230697
cycles: 91, note: F2, fractional note value: -22.880440828735225
cycles: 92, note: E2, fractional note value: -23.06964861903503
cycles: 93, note: E2, fractional note value: -23.256810879647247
cycles: 94, note: E2, fractional note value: -23.44197136648252
cycles: 95, note: E2, fractional note value: -23.625172446322246
cycles: 96, note: E2, fractional note value: -23.80645515500474
cycles: 97, note: E2, fractional note value: -23.985859252596406
cycles: 98, note: D#2, fractional note value: -24.163423275733372
cycles: 99, note: D#2, fractional note value: -24.339184587306192
cycles: 100, note: D#2, fractional note value: -24.51317942364757
cycles: 101, note: D#2, fractional note value: -24.685442939372408
cycles: 102, note: D#2, fractional note value: -24.856009250008825
cycles: 103, note: D2, fractional note value: -25.02491147254949
cycles: 104, note: D2, fractional note value: -25.19218176404398
cycles: 105, note: D2, fractional note value: -25.357851358344348
cycles: 106, note: D2, fractional note value: -25.52195060110926
cycles: 107, note: D2, fractional note value: -25.68450898316464
cycles: 108, note: D2, fractional note value: -25.845555172312487
cycles: 109, note: C#2, fractional note value: -26.00511704367399
cycles: 110, note: C#2, fractional note value: -26.163221708646788
cycles: 111, note: C#2, fractional note value: -26.319895542552146
cycles: 112, note: C#2, fractional note value: -26.475164211042127
cycles: 113, note: C#2, fractional note value: -26.629052695333122
cycles: 114, note: C#2, fractional note value: -26.78158531632777
cycles: 115, note: C#2, fractional note value: -26.932785757683376
cycles: 116, note: C2, fractional note value: -27.082677087881734
cycles: 117, note: C2, fractional note value: -27.231281781351726
cycles: 118, note: C2, fractional note value: -27.378621738692964
cycles: 119, note: C2, fractional note value: -27.52471830604619
cycles: 120, note: C2, fractional note value: -27.669592293653096
cycles: 121, note: C2, fractional note value: -27.813263993646004
cycles: 122, note: C2, fractional note value: -27.95575319710551
cycles: 123, note: B1, fractional note value: -28.097079210421754
cycles: 124, note: B1, fractional note value: -28.237260870993374
cycles: 125, note: B1, fractional note value: -28.376316562295912
cycles: 126, note: B1, fractional note value: -28.514264228349866
cycles: 127, note: B1, fractional note value: -28.65112138761686
cycles: 128, note: B1, fractional note value: -28.78690514635087
cycles: 129, note: B1, fractional note value: -28.921632211429923
cycles: 130, note: A#1, fractional note value: -29.05531890269232
cycles: 131, note: A#1, fractional note value: -29.18798116480027
cycles: 132, note: A#1, fractional note value: -29.319634578652312
cycles: 133, note: A#1, fractional note value: -29.45029437236515
cycles: 134, note: A#1, fractional note value: -29.57997543184414
cycles: 135, note: A#1, fractional note value: -29.708692310960842
cycles: 136, note: A#1, fractional note value: -29.836459241354945
cycles: 137, note: A#1, fractional note value: -29.963290141877195
cycles: 138, note: A1, fractional note value: -30.0891986276889
cycles: 139, note: A1, fractional note value: -30.214198019032963
cycles: 140, note: A1, fractional note value: -30.338301349690468
cycles: 141, note: A1, fractional note value: -30.4615213751364
cycles: 142, note: A1, fractional note value: -30.583870580407066
cycles: 143, note: A1, fractional note value: -30.70536118769155
cycles: 144, note: A1, fractional note value: -30.82600516365862
cycles: 145, note: A1, fractional note value: -30.94581422653009
cycles: 146, note: G#1, fractional note value: -31.06479985291108
cycles: 147, note: G#1, fractional note value: -31.182973284387245
cycles: 148, note: G#1, fractional note value: -31.300345533898273
cycles: 149, note: G#1, fractional note value: -31.416927391896813
cycles: 150, note: G#1, fractional note value: -31.532729432301437
cycles: 151, note: G#1, fractional note value: -31.647762018251818
cycles: 152, note: G#1, fractional note value: -31.762035307673898
cycles: 153, note: G#1, fractional note value: -31.87555925866269
cycles: 154, note: G#1, fractional note value: -31.988343634689684
cycles: 155, note: G1, fractional note value: -32.10039800964172
cycles: 156, note: G1, fractional note value: -32.21173177269785
cycles: 157, note: G1, fractional note value: -32.322354133050396
cycles: 158, note: G1, fractional note value: -32.43227412447611
cycles: 159, note: G1, fractional note value: -32.54150060976314
cycles: 160, note: G1, fractional note value: -32.65004228499922
JsFiddle:
https://jsfiddle.net/the_voder/rwmjjxe9/
a|x