mtof

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i mtof

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • noahlemen