%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt))]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "snippets/making-an-object-invisible-using--hide.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from the LilyPond Wiki
%% (https://wiki.lilypond.community).
%%
%% Make any changes in the Wiki itself, or in
%% `Documentation/snippets/new/`, then run
%% `scripts/auxiliar/makelsr.pl`.
%%
%% This file is in the public domain.

\version "2.24.0"

\header {
%% Translation of GIT committish: 1abe87de51b9b00a391da1be4cf4b5ebe4021ca9
  texidocfr = "
Affecter un objet graphique d'un @code{\\hide} permet d'imprimer un
objet « à l'encre sympathique » : l'objet n'est pas affiché bien que tous
ses attributs soient préservés :

@itemize
@item
l'objet en question occupe donc sa place,
@item
il est pris en compte lors de collisions, et
@item
il peut se voir attaché liaisons ou ligatures comme les autres.
@end itemize

Cet exemple illustre la manière de connecter deux voix par une liaison
de prolongation.  Les liaisons de prolongation ne peuvent normalement
intervenir que dans la même voix.  Dès lors que la liaison est entamée
dans une autre voix et que la première hampe ascendante est masquée
transparente dans cette même voix, la liaison semble passer d'une voix à
l'autre.
"

  doctitlefr = "Recours à la propriété @code{transparent} pour rendre des objets invisibles"

  categories = "Rhythms, Simultaneous notes, Tweaks and overrides"

  texidoc = "
Applying @code{\\hide} to a grob causes objects of this type to be
printed with @qq{invisible ink}. They are not printed, but all of their
other behavior is retained:

@itemize
@item
the objects still take up space,
@item
they take part in collision resolution, and
@item
slurs, ties, and beams can be attached to them as usual.
@end itemize

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.
"

  doctitle = "Making an object invisible using \\hide"
} % begin verbatim


\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
}



% ****************************************************************
% end ly snippet
% ****************************************************************
