You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
calling renderSongChart(songChartCode, generateRenderOptions(0, "auto")); produces the following rendering of the chord-mark code from my previous post: (rendering issue + chords are not automatically transposed between the two verses)
<div class="cmSong">
<p class="cmLine"><span class="cmKeyDeclaration">key: D</span></p>
<div class="cmSection cmSection-Verse">
<p class="cmLine"><span class="cmSectionLabel">Verse 1</span></p>
<p class="cmLine"><span class="cmChordLine"><span class="cmBarSeparator">|</span><span class="cmChordSymbol">Dm7</span> <span class="cmBarSeparator">|</span><span class="cmChordSymbol">G7</span> <span class="cmBarSeparator">|</span><span class="cmChordSymbol">Cmaj7</span> <span class="cmBarSeparator">|</span><span class="cmChordSymbol">%</span> <span class="cmBarSeparator">|</span></span></p>
<p class="cmLine"><span class="cmLyricLine">The first verse is in the key of C</span></p>
<p class="cmLine"><span class="cmEmptyLine"> </span></p>
<p class="cmLine"><span class="cmKeyDeclaration">key: G</span></p> <!-- rendering issue?: should be outside of <div> -->
</div>
<div class="cmSection cmSection-Verse">
<p class="cmLine"><span class="cmSectionLabel">Verse 2</span></p>
<p class="cmLine cmLine--isFromAutoRepeatChords"><span class="cmChordLine"><span class="cmBarSeparator">|</span><span class="cmChordSymbol">Dm7</span> <span class="cmBarSeparator">|</span><span class="cmChordSymbol">G7</span> <span class="cmBarSeparator">|</span><span class="cmChordSymbol">Cmaj7</span> <span class="cmBarSeparator">|</span><span class="cmChordSymbol">%</span> <span class="cmBarSeparator">|</span></span></p>
<p class="cmLine"><span class="cmLyricLine">And the second one in the key of G!</span></p>
</div>
</div>
if we comment out the line: // options.chordSymbolRenderer = chordSymbol.chordRendererFactory(rendererFactoryOptions); then this is the rendered result: (same rendering issue, but chords are transposed between the two verses)
<div class="cmSong">
<p class="cmLine"><span class="cmKeyDeclaration">key: D</span></p>
<div class="cmSection cmSection-Verse">
<p class="cmLine"><span class="cmSectionLabel">Verse 1</span></p>
<p class="cmLine"><span class="cmChordLine"><span class="cmBarSeparator">|</span><span class="cmChordSymbol">Dm7</span> <span class="cmBarSeparator">|</span><span class="cmChordSymbol">G7</span> <span class="cmBarSeparator">|</span><span class="cmChordSymbol">CM7</span> <span class="cmBarSeparator">|</span><span class="cmChordSymbol">%</span> <span class="cmBarSeparator">|</span></span></p>
<p class="cmLine"><span class="cmLyricLine">The first verse is in the key of C</span></p>
<p class="cmLine"><span class="cmEmptyLine"> </span></p>
<p class="cmLine"><span class="cmKeyDeclaration">key: G</span></p> <!-- rendering issue? -->
</div>
<div class="cmSection cmSection-Verse">
<p class="cmLine"><span class="cmSectionLabel">Verse 2</span></p>
<p class="cmLine cmLine--isFromAutoRepeatChords"><span class="cmChordLine"><span class="cmBarSeparator">|</span><span class="cmChordSymbol">Gm7</span> <span class="cmBarSeparator">|</span><span class="cmChordSymbol">C7</span> <span class="cmBarSeparator">|</span><span class="cmChordSymbol">FM7</span> <span class="cmBarSeparator">|</span><span class="cmChordSymbol">%</span> <span class="cmBarSeparator">|</span></span></p>
<p class="cmLine"><span class="cmLyricLine">And the second one in the key of G!</span></p>
</div>
</div>
calling
renderSongChart(songChartCode, generateRenderOptions(0, "auto"));
produces the following rendering of the chord-mark code from my previous post: (rendering issue + chords are not automatically transposed between the two verses)if we comment out the line:
// options.chordSymbolRenderer = chordSymbol.chordRendererFactory(rendererFactoryOptions);
then this is the rendered result: (same rendering issue, but chords are transposed between the two verses)Originally posted by @thecodeinventor in #660 (reply in thread)
The text was updated successfully, but these errors were encountered: