Home
Random
Log in
Settings
About LilyPond wiki
LilyPond wiki
Search
Editing
Making an object invisible using \hide
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!
Applying <code>\hide</code> to a grob causes objects of this type to be printed with “invisible ink”. They are not printed, but all of their other behavior is retained: * the objects still take up space, * they take part in collision resolution, and * slurs, ties, and beams can be attached to them as usual. This snippet demonstrates how to connect different voices using ties. Normally, ties only connect two notes in the same voice. By introducing a tie in a different voice, and blanking the first up-stem in that voice, the tie appears to cross voices. <lilypond version="2.24"> \relative { \time 2/4 << { \once \hide Stem \once \override Stem.length = #8 b'8 ~ 8\noBeam \once \hide Stem \once \override Stem.length = #8 g8 ~ 8\noBeam } \\ { b8 g g e } >> } \paper { line-width = 40\mm ragged-right = ##f } </lilypond> [[Category:Rhythms]] [[Category:Tweaks and overrides]] [[Category:Simultaneous notes]] [[Category:Included in the official documentation]] [[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)