Package Exports
- @tonaljs/progression
- @tonaljs/progression/dist/index.js
- @tonaljs/progression/dist/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tonaljs/progression) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@tonaljs/progression

Convert chord list to roman numerals analysis chord and reverse
Usage
ES6:
import { Progression } from "tonal";
node:
const { Progression } = require("tonal");
API
Progression.fromRomanNumerals(keyTonic: string, chordProgression: string[]) => string[]
Given a tonic and a chord progression expressed in roman numeral analysis chords, returns the progression expressed in leadsheet chords.
Progression.fromRomanNumerals("C", ["IMaj7", "IIm7", "V7"]);
// => ["CMaj7", "Dm7", "G7"]
Progression.toRomanNumerals(keyTonic: string, chordProgression: string[]) => string[]
The opposite of fromRomanNumerals
. Given a tonic and a chord progression expressed in leadsheet chords, returns the progression using roman numeral analysis chords.
Progression.toRomanNumerals("C", ["CMaj7", "Dm7", "G7"]);
// => "IMaj7", "IIm7", "V7"]