Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danigb/music.note
Tiny library to convert from midi and frequency to note names
https://github.com/danigb/music.note
Last synced: 13 days ago
JSON representation
Tiny library to convert from midi and frequency to note names
- Host: GitHub
- URL: https://github.com/danigb/music.note
- Owner: danigb
- License: mit
- Created: 2015-10-22T11:32:52.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-03T10:45:07.000Z (about 9 years ago)
- Last Synced: 2023-04-11T13:58:27.226Z (over 1 year ago)
- Language: JavaScript
- Size: 111 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# music.note
[![Build Status](https://travis-ci.org/danigb/music.note.svg?branch=master)](https://travis-ci.org/danigb/music.note)
[![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.svg)](https://www.npmjs.com/package/music.note)
[![license](https://img.shields.io/npm/l/music.note.svg)](https://www.npmjs.com/package/music.note)
[![music.kit](https://img.shields.io/badge/music-kit-yellow.svg)](https://www.npmjs.com/package/music.kit)`music.note` is a group of functions to manipulate notes:
```js
var note = require('music.note')
note.midi('A4') // => 69
note.freq(440, 'C2') // => 65.40639132514966
note.transpose('C4', '3m') // => 'Eb4'
```This is part of [music.kit](https://github.com/danigb/music.kit)
## Features
- Parse notes in scientific notation
- Convert from and to midi numbers
- Convert from and to frequencies with (optional) custom tunings
- Note transposition## Installation
Install via npm: `npm install --save music.note` and require it.
## Documentation
[Generated documentation here](https://github.com/danigb/music.note/blob/master/API.md)
## License
MIT License