Skip to content
/ mtof Public

🎹 β†’ 🌊 convert MIDI note number to frequency

License

Notifications You must be signed in to change notification settings

noahlemen/mtof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

mtof

Convert MIDI note number to corresponding frequency. Based on Max's mtof

installation

$ npm install --save mtof

usage

mtof(midiNote, concertPitch = 440)

Convert MIDI note number to frequency. Second parameter sets concert pitch, defaulting to A = 440 Hz.

Works with decimals too! Consider this a feature!

var mtof = require('mtof');

mtof(69);
// => 440

see also

About

🎹 β†’ 🌊 convert MIDI note number to frequency

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published