Skip to content

v7.14.0

Compare
Choose a tag to compare
@github-actions github-actions released this 05 Jan 14:44
· 442 commits to master since this release
7c90b0b

Changes

Expand chorus directives (#802)

This will expand any {chorus} or {chorus: Show this label} directive to inline the last defined chorus just before the directive.

For example, if you write the following:

{start_of_chorus: Chorus 1:}
[C]Whisper words of
{end_of_chorus}

{chorus: Repeat chorus 1:}

and you format with option expandChorusDirective: true:

const song = new ChordProParser().parse(chordSheet);
const formatted = new TextFormatter({ expandChorusDirective: false }).format(song);

You get:

Chorus 1:
C
Whisper words of

Repeat chorus 1:
C
Whisper words of