1.0.2 • Published 7 years ago

mtof v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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