Home
Random
Log in
Settings
About LilyPond wiki
LilyPond wiki
Search
Editing
Markup on clef
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Here's how to put a markup β such as a ''sul tasto'' reminder β over the clefs. <lilypond version="2.24" full> %% http://lsr.di.unimi.it/LSR/Item?id=1086 %% Discussion => http://lilypond.1069038.n5.nabble.com/Markup-on-clef-possible-td219968.html %% See also => http://lilypond.1069038.n5.nabble.com/Align-text-above-clef-td216678.html %% Credit: PPS on Feb. 2019 STclef = { \once\override Staff.Clef.stencil = #(lambda (grob) (let ((glyph (ly:grob-property grob 'glyph-name))) (cond ((equal? glyph "clefs.G") (grob-interpret-markup grob #{ \markup \translate #'(0 . 5.5) \override #'(baseline-skip . 5.5) \column { "ST" \musicglyph "clefs.G" } #})) ((equal? glyph "clefs.F") (grob-interpret-markup grob #{ \markup \translate #'(0 . 2) \override #'(baseline-skip . 2) \column { "ST" \musicglyph "clefs.F" } #})) (else (ly:clef::print grob))))) } %% Test: \new StaffGroup << \new Staff \with { instrumentName = "Violin" } \relative c' { \STclef \clef G a' b c d \break b c a c } \new Staff \with { instrumentName = "Cello" } \relative c, { \STclef \clef F a' b c d \break b c a c } >> \paper { tagline = ##f } </lilypond> [[Category:Expressive marks]] [[Category:Editorial annotations]] [[Category:Text]] [[Category:Snippet]]
Summary:
Please note that all contributions to LilyPond wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Meta:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)