Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noahlemen/mtof
🎹 → 🌊 convert MIDI note number to frequency
https://github.com/noahlemen/mtof
conversion frequency midi music
Last synced: 6 days ago
JSON representation
🎹 → 🌊 convert MIDI note number to frequency
- Host: GitHub
- URL: https://github.com/noahlemen/mtof
- Owner: noahlemen
- License: mit
- Created: 2017-06-26T22:25:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-27T02:35:05.000Z (over 7 years ago)
- Last Synced: 2024-10-12T20:42:07.256Z (about 1 month ago)
- Topics: conversion, frequency, midi, music
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/mtof
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mtof
Convert MIDI note number to corresponding frequency. Based on Max's [`mtof`](https://docs.cycling74.com/max5/refpages/max-ref/mtof.html)
## installation
```bash
$ 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**!_
```js
var mtof = require('mtof');mtof(69);
// => 440
```## see also
- [`ftom`](https://github.com/kedromelon/ftom)