theoryText function
O texto com as cifras: «n» vira a cifra n de chords, na grafia notation.
O enunciado e a revelação guardam as cifras assim, porque a grafia é do app
ou do curso, e o gerador não a conhece.
Implementation
String theoryText(
String text,
List<ChordSymbol> chords,
ChordNotation notation,
) => text.replaceAllMapped(
_chordMarker,
(match) => chords[int.parse(match.group(1)!)].label(notation),
);