nolanlawson/chord-magic
Voir sur GitHubAllow prettyPrinting in Nashville Number System format
Open
#10 ouverte le 6 juin 2018
enhancementhelp wanted
Métriques du dépôt
- Stars
- (60 stars)
- Métriques de merge PR
- (Métriques PR en attente)
Description
Would be great to be able to see chords in Nashville Number System format, ie.
Standard format

Nashville Number System format

In the screenshots above, we have managed the above using a version of your sharpsOnly array (see below), but it would be cool to incorporate this directly into chord-magic
const nashville = [
1, // 'A',
'A#', // 'A#',
2, // 'B',
'C', // 'C',
3, // 'C#',
4, // 'D',
'D#', // 'D#',
5, // 'E',
'F', // 'F',
6, // 'F#',
'G', // 'G',
7 // 'G#'
];
const distance = getKeyDiff( key, 'A' );
return prettyPrint( transpose( parse( chord ), distance ), { naming: nashville } );