tonaljs is a Typescript library for representing musical objects and concepts.
Use the package manager npm to install tonaljs.
npm install tonaljs
OR
Download tonaljs here.
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());
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.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- 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!