Jump to content

Inserting a \markup when using chordmode: Difference between revisions

From LilyPond wiki
No edit summary
m New category
Tags: Mobile edit Mobile web edit
 
Line 21: Line 21:
[[Category:Chords]]
[[Category:Chords]]
[[Category:Text]]
[[Category:Text]]
[[Category:Specific notation]][[Category:Snippet]]
[[Category:Specific notation]]
[[Category:Snippet]]

Latest revision as of 23:21, 21 November 2025

A way to insert a \markup { . . . } string in \chords { . . . }.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=309

% Note what happens if \hspace #-2 is deleted or set to +n.
% If "tacet" instead of "Tacet" a little bit of "C" peeks around the \whiteout.
CMString  = { <c e g>-\markup { \hspace #-2 \whiteout "Tacet" } }
CMStringX = #(append (sequential-music-to-chord-exceptions CMString #t)
           ignatzekExceptions)
<< { \chords { c1
   \set   chordNameExceptions = #CMStringX c
   \unset chordNameExceptions c }
 }
 { \relative c'' { c c c } 
 } 
>>