nolanlawson/chord-magic

Allow prettyPrinting in Nashville Number System format

Open

#10 aperta il 6 giu 2018

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (6 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (60 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Would be great to be able to see chords in Nashville Number System format, ie.

Standard format

screen shot 2018-06-06 at 18 02 49

Nashville Number System format

screen shot 2018-06-06 at 18 02 37

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 } );

Guida contributor