Changing breathe marks to markup text: Difference between revisions
Appearance
Import snippet from LSR |
m New category Tags: Mobile edit Mobile web edit |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 6: | Line 6: | ||
In this example the breathe symbol is replaced by the comma character from the Helvetica font. This character is enlarged and slightly raised using the <code>\raise</code> markup function. | In this example the breathe symbol is replaced by the comma character from the Helvetica font. This character is enlarged and slightly raised using the <code>\raise</code> markup function. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
%% http://lsr.di.unimi.it/LSR/Item?id=640 | %% http://lsr.di.unimi.it/LSR/Item?id=640 | ||
| Line 27: | Line 27: | ||
[[Category:Staff notation]] | [[Category:Staff notation]] | ||
[[Category:Text]] | [[Category:Text]] | ||
[[Category:Snippet]] | |||
Latest revision as of 23:14, 21 November 2025
Other snippets show how to replace a breathe symbol by some other symbol. This snippet extends that idea by:
- Changing the voice context so that all breathe symbols in the score are replaced.
- Using arbitrary text rather than just a symbol to replace the breathe symbol.
In this example the breathe symbol is replaced by the comma character from the Helvetica font. This character is enlarged and slightly raised using the \raise markup function.
\version "2.24"
%% http://lsr.di.unimi.it/LSR/Item?id=640
\layout {
\context {
\Voice
\override BreathingSign.font-name = #"Helvetica"
\override BreathingSign.font-size = #8
\override BreathingSign.text = #(markup (#:raise 0.2 ","))
}
}
\new Staff {
\relative c'' {
b4 b \breathe b b
}
}