Note-Art JS :guitar:
:fire:
:fire:
Music is a highly versatile art that originates in nature, and has been taken up by mankind as a way of expression and also as an art.
Now, it's going to be taken up by machines as well.
Table of Contents
About
- Create Notes, Chords, Scales and more easily.
- Designed to be simple and intuitive.
- Easily integrate with other music libraries to play music in the browser - You can use libraries like ToneJS to easily
play scales, chords and even scores you create with Note-Art.
- Use this library to create tools for musicians, research music theory, just create some fun music with programming and
much more!
Features
- Transpose, generate chords and scales easily, invert chords.
- Tons of music theory utilities, e.g getting the interval between 2 notes, normalizing notes, getting the enharmonic pitch class, converting sharps to flats and a lot more.
Getting Started
Installation:
npm install @erboladaiorg/possimus-praesentium-sint
yarn add @erboladaiorg/possimus-praesentium-sint
Usage
Note-art is fully written in TS and offers functions that can achieve any music theory related task you desire.
Theory Functions
- patterns are in semi-tones.
Transpose any pitch class, note or group of notes easily
import { transpose } from '@erboladaiorg/possimus-praesentium-sint'
transpose('A', 5)
transpose('A3', 5)
const notes = ['C3', 'E3', 'G3']
notes.map(note => transpose(note, 7))
Other functions
import { noteFromFrequency, intervalsToNotes, invertChord };
noteFromFrequency(440)
const majorChordPattern = [0, 4, 7];
const cMajorChord = intervalsToNotes('C3', majorChordPattern)
const cMajorFirstInversion = invertChord(cMajorChord, 1);
Check out the API for more.
Contribute and Support :pray:
Todo:
-
Create music theory functions - pitch class, note, chord, etc... :heavy_check_mark:
-
Re-implement Music notation.
Contact
Sean Dvir - seandvir12@gmail.com - @seanitzel
Your welcome to mail me your ideas and recommendations!
License
Note-Art uses the MIT license, check out the license tab for more information.