1.0.0 • Published 7 years ago
ftom v1.0.0
ftom
Convert frequency to corresponding MIDI note number. Based on Max's ftom
installation
$ npm install --save ftom
usage
ftom(frequency, concertPitch = 440)
Convert frequency to MIDI note number. Second parameter sets concert pitch, defaulting to A = 440 Hz.
Does not round result to nearest integer! Consider this a feature!
var ftom = require('ftom');
ftom(440);
// => 69
see also
1.0.0
7 years ago