note-freq
Get frequency of a note:
var freq = // => 440
It works with midi numbers too:
// => 222
Usage
Get the frequency using a custom tunning:
// 69 is note A4var freq = // => 440 // => 440 /// => 444 // => 220// 57 is note A3 // => 222
Set default tuning
Normally you use the same tuning for all your app. You can partially apply the function to set the default tuning:
var freq = 444// the freq function uses 444 as custom tuning // => 222
License
MIT License