Calculate the frequency of a note coord
npm install pitch-fqpitch-fqCalculate the frequency of a note, in the pitch "coord" format. (E.g [x, y])
``js
var fq = require('pitch-fq');
var parse = require('scientific-notation');
fq(parse('A4')) // -> 440
fq(parse('A4'), 442) // -> 442
var concertPitch = fq(440);
concertPitch(parse('A5')) // -> 880
`
Calculate the frequency of a notecoord
(relative to A4), in the given "concert pitch", assuming an equal temperament.
Normally you'd tune A4 to 440Hz, but in some settings you might want to tune
it to 442Hz or something else.
Given only a concertPitch Number`, it returns a function, calculating the
frequency of a note, given that concert pitch.