ftom

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ftom

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • noahlemen