Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danigb/music.note.frommidi
Get the note name of a midi number
https://github.com/danigb/music.note.frommidi
Last synced: 13 days ago
JSON representation
Get the note name of a midi number
- Host: GitHub
- URL: https://github.com/danigb/music.note.frommidi
- Owner: danigb
- License: mit
- Created: 2015-11-02T21:04:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-02T21:30:58.000Z (about 9 years ago)
- Last Synced: 2023-04-11T13:58:27.310Z (over 1 year ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# music.note.fromMidi
[![Build Status](https://travis-ci.org/danigb/music.note.fromMidi.svg?branch=master)](https://travis-ci.org/danigb/music.note.fromMidi)
[![Test Coverage](https://codeclimate.com/github/danigb/music.note.fromMidi/badges/coverage.svg)](https://codeclimate.com/github/danigb/music.note.fromMidi/coverage)
[![Climate](https://codeclimate.com/github/danigb/music.note.fromMidi/badges/gpa.svg)](https://codeclimate.com/github/danigb/music.note.fromMidi)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)
[![npm version](https://img.shields.io/npm/v/music.note.from-midi.svg)](https://www.npmjs.com/package/music.note.from-midi)
[![license](https://img.shields.io/npm/l/music.note.from-midi.svg)](https://www.npmjs.com/package/music.note.from-midi)
[![music.kit](https://img.shields.io/badge/music-kit-yellow.svg)](https://www.npmjs.com/package/music.kit)`fromMidi` is a tiny function (231 bytes minified) to get the note name from a midi number (using [MIDI Tuning Standard](https://en.wikipedia.org/wiki/MIDI_Tuning_Standard) where 'A4' is midi number 69):
```js
var fromMidi = require('music.note.from-midi')
fromMidi('69') // => 'A4'
fromMidi('36') // => 'C2'
```This is part of [music.kit](https://github.com/danigb/music.kit)
## Installation
Install via npm: `npm install --save music.note.from-midi` and require it.
## Documentation
[Generated documentation here](https://github.com/danigb/music.note.fromMidi/blob/master/API.md)
## License
MIT License