ChordSheetJS icon indicating copy to clipboard operation
ChordSheetJS copied to clipboard

New "Intro" chords category ?

Open MercierCorentin opened this issue 1 month ago • 0 comments

Some chords shouldn't be placed on top of the text, like the ones below, because it would disrupt the formatting created by the author.

In the data I receive, these are indicated as chords but also specified not to be part of the song. Therefore, I wrapped them with [...] to make them look like annotations.

[Interlude]
[|(G) | G | Em | Em |]
[| C  | C | D  | D |]

The problem is that when I transpose in real time, I retrieve all elements with the .chord class to then transpose the chord and inject the new chord in JavaScript. So the wrapped chords are not transposed. This results in an inconsistent rendered chordSheet.

Did I handle this incorrectly, or do we need a new type of chord, for example, .chord-no-tab, to achieve what I want ?

Thanks again for the great work !

MercierCorentin avatar May 30 '24 05:05 MercierCorentin