Making an object invisible using \hide: Difference between revisions
Import snippet from LSR |
m Lemzwerg moved page Making an object invisible using the ‘transparent’ property to Making an object invisible using \hide without leaving a redirect |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
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. | 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 | <lilypond version="2.24"> | ||
\relative { | \relative { | ||
\time 2/4 | \time 2/4 | ||
| Line 20: | Line 24: | ||
} | } | ||
>> | >> | ||
} | |||
\paper { | |||
line-width = 40\mm | |||
ragged-right = ##f | |||
} | } | ||
</lilypond> | </lilypond> | ||
| Line 27: | Line 36: | ||
[[Category:Simultaneous notes]] | [[Category:Simultaneous notes]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||