Skip to content

A package to handle basic music theory concepts such as notes, scales and chords

Notifications You must be signed in to change notification settings

tskarhed/music-theory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎼 music-theory codecov CircleCI

Create notes and get their frequencies! Create scales! Create chords!

Usage

Create new note using scientific notation

import { Note } from "music-theory";

let note = new Note("D#4");
note.freq; //Gives frequency

Create scales

import { Scale } from "music-theory";

let scale = new Scale("C3", "major"); //Generates one loop of the scale
scale.getNotes(); // Prints all the notes in the scale

let scale = new Scale("D4", "minor", 8); //Generates 8 notes in the minor scale

Develop

Clone this repository and run

The goal for this repository is to have 100% code coverage, so TDD is strongly encouraged!

yarn install

After dependencies have been installed, get started by running

yarn start

And don't forget to run the test watch too!

yarn jest

About

A package to handle basic music theory concepts such as notes, scales and chords

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published