Skip to content
/ ftom Public

🎹 ← 🌊 convert frequency to MIDI note number

License

Notifications You must be signed in to change notification settings

noahlemen/ftom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

🎹 ← 🌊 convert frequency to MIDI note number

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published