4.9.1 • Published 6 months ago

@tonaljs/roman-numeral v4.9.1

Weekly downloads
407
License
MIT
Repository
-
Last release
6 months ago

@tonaljs/roman-numeral tonal npm version

Functions to parse roman numeral strings (like the ones used for chord analysis)

A roman numeral symbol is a string like "bVIImaj7" that can be used to represent chords in an abstract tonality.

Usage

ES6:

import { RomanNumeral } from "tonal";

node:

const { RomanNumeral } = require("tonal");

API

RomanNumeral.get(src: string | Pitch): => RomanNumeral

Get the properties of a roman numeral:

Example:

RomanNumeral.get("bVIIMaj7");
// =>
// {
//   empty: false,
//   name: "bVIIMaj7",
//   roman: "VII",
//   acc: "b",
//   chordType: "Maj7",
//   alt: -1,
//   step: 6,
//   major: true,
//   oct: 0
// }

FAQ

How do I get a roman numeral from an interval

romanNumeral function accepts a Pitch as argument:

import { Interval, RomanNumeral } from "tonal";

RomanNumeral.get(Interval.get("3m")).name; // => "bIII"

Want more?

Take a look to @tonal/progression or @tonal/key

4.9.1

6 months ago

4.9.0

12 months ago

4.8.3

1 year ago

4.8.2

1 year ago

4.8.1

2 years ago

4.7.2

3 years ago

4.8.0

3 years ago

4.7.1

3 years ago

4.7.3

3 years ago

4.7.0

3 years ago

4.6.10

3 years ago

4.6.5

4 years ago

4.6.2

4 years ago

4.5.0

5 years ago

4.5.1

5 years ago

3.5.4

5 years ago

3.5.3

5 years ago

3.5.2

5 years ago

3.5.1

5 years ago

3.5.0

5 years ago

3.3.2

5 years ago

3.3.1

5 years ago

3.3.0

6 years ago

3.2.3

6 years ago

3.2.2

6 years ago

3.2.1

6 years ago

3.2.0

6 years ago

3.1.0

6 years ago