%% Generated by lilypond-book.py
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm]
\include "lilypond-book-preamble.ly"


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



\paper {
  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 "stemlets.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it is automatically
%% generated from LSR http://lsr.dsi.unimi.it
%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
%% and then run scripts/auxiliar/makelsr.py
%%
%% This file is in the public domain.
\version "2.16.0"

\header {
%% Translation of GIT committish: e99967817ff985eb5bd5b0220b2fbf552963f9de
  texidocfr = "
Certaines conventions en matière de notation autorisent les ligatures à
enjamber des silences.  Dans certains cas, des moignons de hampe
accrochés à la ligature offrent une meilleure visibilité du rythme, et
certaines éditions modernes vont même alors jusqu'à omettre le silence.

Cet exemple illustre la progression : notation traditionnelle, ligature
enjambant le silence, silence surplombé d'un moignon et enfin seule une
hampe tronquée.  Les moignons s'obtiennent par amendement de la
propriété @code{'stemlet-length} de l'objet @code{Stem}, alors que les
silences sont masqués par activation de la propriété de transparence.

Les @emph{markups} ajoutés au code ci-dessous mettent en exergue les
différentes notations.

"
  doctitlefr = "Moignons de hampe"

  lsrtags = "contemporary-notation, rhythms"

  texidoc = "
In some notational conventions beams are allowed to extend over rests.
Depending on preference, these beams may drop 'stemlets' to help the
eye appreciate the rhythm better, and in some modern music the rest
itself is omitted and only the stemlet remains.


This snippet shows a progression from traditional notation, to beams
over the rest, to stemlets over the rest, to stemlets alone.  Stemlets
are generated by overriding the @code{'stemlet-length} property of
@code{Stem}, while rests are hidden by setting @code{'transparent =
##t}.


Some @code{\\markup} elements are included in the source to highlight
the different notations.

"
  doctitle = "Stemlets"
} % begin verbatim


\paper { ragged-right = ##f }

{
  c'16^\markup { traditional } d' r f'
  g'16[^\markup { beams over rests } f' r d']

  % N.B. use Score.Stem to set for the whole score.
  \override Staff.Stem #'stemlet-length = #0.75

  c'16[^\markup { stemlets over rests } d' r f']
  g'16[^\markup { stemlets and no rests } f'
  \once \override Rest #'transparent = ##t
  r16 d']
}



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