@tonaljs/progression
Version:
Build musical chord progressions
26 lines (23 loc) • 895 B
text/typescript
import { NoteLiteral } from '@tonaljs/pitch-note';
/**
* Given a tonic and a chord list expressed with roman numeral notation
* returns the progression expressed with leadsheet chords symbols notation
* @example
* fromRomanNumerals("C", ["I", "IIm7", "V7"]);
* // => ["C", "Dm7", "G7"]
*/
declare function fromRomanNumerals(tonic: NoteLiteral, chords: string[]): string[];
/**
* Given a tonic and a chord list with leadsheet symbols notation,
* return the chord list with roman numeral notation
* @example
* toRomanNumerals("C", ["CMaj7", "Dm7", "G7"]);
* // => ["IMaj7", "IIm7", "V7"]
*/
declare function toRomanNumerals(tonic: NoteLiteral, chords: string[]): string[];
/** @deprecated */
declare const _default: {
fromRomanNumerals: typeof fromRomanNumerals;
toRomanNumerals: typeof toRomanNumerals;
};
export { _default as default, fromRomanNumerals, toRomanNumerals };