Neovictorian Paisley Menswear
    Wondering what’s next for npm?Check out our public roadmap! »

    @tonaljs/progression
    TypeScript icon, indicating that this package has built-in type declarations

    4.5.1 • Public • Published

    @tonaljs/progression tonal npm version

    Convert chord list to roman numerals analysis chord and reverse

    Usage

    ES6:

    import { Progression } from "@tonaljs/tonal";

    node:

    const { Progression } = require("@tonaljs/tonal");

    API

    Progression.fromRomanNumerals(keyTonic: string, chordProgression: string[]) => string[]

    Given a tonic and a chord progression expressed in roman numeral analisys 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"]

    Resources

    Install

    npm i @tonaljs/progression

    DownloadsWeekly Downloads

    632

    Version

    4.5.1

    License

    MIT

    Unpacked Size

    6.3 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar