Search code, repositories, users, issues, pull requests...

npm version

tonal is a music theory library. Contains functions to manipulate tonal elements of music (note, intervals, chords, scales, modes, keys). It deals with abstractions (not actual music or sound).

tonal is implemented in Typescript and published as a collection of Javascript npm packages.

It uses a functional programming style: all functions are pure, there is no data mutation, and entities are represented by data structures instead of objects.

Install all packages at once:

You can read CHANGELOG here.

Tonal is compatible with both ES5 and ES6 modules, and browser.

You can use the browser version from jsdelivr CDN directly in your html:

Or if you prefer, grab the minified browser ready version from the repository.

tonal includes all published modules.

Although the final bundle it is small, you can reduce bundle sizes even more by installing the modules individually, and importing only the functions you need.

Note that individual modules are prefixed with @tonaljs/. For example:

Visit the documentation site or the README.md of each module ?

Read contributing document. To contribute open a PR and ensure:

This library takes inspiration from other music theory libraries:

Showcase of projects that are using Tonal:

Thank you all!

Add your project here by editing this file

MIT License

Link nội dung: https://www.sachhayonline.com/tonal-a70946.html