Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
•JSR Score100%•
Publisheda year ago (0.3.0)

🎵 A lightweight, flexible, and developer-friendly music theory library 🎵

This module provides classes and functions for working with music theory concepts like a Note, Interval, Chord, or Scale.

Examples

Example 1

import { MajorScale, Note } from "@aviato/music-theory";
const middleC = new Note("C4"); // Note { name: "C4", pitchClass: "C", octave: 4, accidental: "", freq: 261.63 }
const cMajorScale = new MajorScale(middleC); // Scale { name: "Major", notes: [Note { name: "C4", pitchClass: "C", octave: 4, accidental: "", freq: 261.63 }, ...] }
Built and signed on
GitHub Actions

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@aviato/music-theory

Import symbol

import * as music_theory from "@aviato/music-theory";
or

Import directly with a jsr specifier

import * as music_theory from "jsr:@aviato/music-theory";

Add Package

pnpm i jsr:@aviato/music-theory
or (using pnpm 10.8 or older)
pnpm dlx jsr add @aviato/music-theory

Import symbol

import * as music_theory from "@aviato/music-theory";

Add Package

yarn add jsr:@aviato/music-theory
or (using Yarn 4.8 or older)
yarn dlx jsr add @aviato/music-theory

Import symbol

import * as music_theory from "@aviato/music-theory";

Add Package

vlt install jsr:@aviato/music-theory

Import symbol

import * as music_theory from "@aviato/music-theory";

Add Package

npx jsr add @aviato/music-theory

Import symbol

import * as music_theory from "@aviato/music-theory";

Add Package

bunx jsr add @aviato/music-theory

Import symbol

import * as music_theory from "@aviato/music-theory";