@aviato/music-theory@0.3.0Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
aviato/music-theoryWorks with
•JSR Score100%•This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers




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.
Example 1
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
Add Package
deno add jsr:@aviato/music-theory
Import symbol
import * as music_theory from "@aviato/music-theory";
Import directly with a jsr specifier
import * as music_theory from "jsr:@aviato/music-theory";
Add Package
pnpm i jsr:@aviato/music-theory
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
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";