chord-symbol-ultimateguitar

Format chord symbols in an Ultimate Guitar-friendly way

Usage no npm install needed!

<script type="module">
  import chordSymbolUltimateguitar from 'https://cdn.skypack.dev/chord-symbol-ultimateguitar';
</script>

README

ChordSymbolUltimateGuitar

Modify the ChordSymbol output to be closer with the chord symbols accepted by the Ultimate Guitar website. If you use ChordSymbol to generate chord charts to be submitted on this website, you definitely want to use this filter.

Usage

import { chordParserFactory, chordRendererFactory } from 'chord-symbol';
import chordSymbolUltimateGuitar from '../src/chordSymbolUltimateGuitar';

const parsed = chordParserFactory()('C7(#9)');
const rendered = chordRendererFactory({
    customFilters: [chordSymbolUltimateGuitar()],
    useShortNamings: true,
})(parsed);

// C7#9