Skip to content

A collection of classes for representing musical objects in Javascript

License

Notifications You must be signed in to change notification settings

ErinMutchler/tonaljs

Repository files navigation

tonaljs

tonaljs is a Typescript library for representing musical objects and concepts.

Installation

Use the package manager npm to install tonaljs.

npm install tonaljs

OR

Download tonaljs here.

Usage

For usage of specific tonaljs modules, see here.

import {Note} from "./node_modules/tonaljs/components/Note.ts";
import {Interval} from "./node_modules/tonaljs/components/ .ts";

let myNote = new Note("Db");
let myInterval = new Interval("M3");

// Outputs 'F'
console.log(myNote.addInterval(myInterval).toString());

Contributing

Please refer to each project's style and contribution guidelines for submitting patches and additions. In general, we follow the "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull request so that we can review your changes

NOTE: Be sure to merge the latest from "upstream" before making a pull request!

License

MIT

About

A collection of classes for representing musical objects in Javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published