PageRenderTime 154ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/lilypond-2.15.41/Documentation/snippets/stemlets.ly

#
Happy | 48 lines | 35 code | 13 blank | 0 comment | 0 complexity | e3b525a9330f12d5237237a6394096e3 MD5 | raw file
Possible License(s): GPL-3.0, CC-BY-SA-4.0, MIT
  1. %% DO NOT EDIT this file manually; it is automatically
  2. %% generated from LSR http://lsr.dsi.unimi.it
  3. %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
  4. %% and then run scripts/auxiliar/makelsr.py
  5. %%
  6. %% This file is in the public domain.
  7. \version "2.14.2"
  8. \header {
  9. lsrtags = "contemporary-notation, rhythms"
  10. texidoc = "
  11. In some notational conventions beams are allowed to extend over rests.
  12. Depending on preference, these beams may drop 'stemlets' to help the
  13. eye appreciate the rhythm better, and in some modern music the rest
  14. itself is omitted and only the stemlet remains.
  15. This snippet shows a progression from traditional notation, to beams
  16. over the rest, to stemlets over the rest, to stemlets alone. Stemlets
  17. are generated by overriding the @code{'stemlet-length} property of
  18. @code{Stem}, while rests are hidden by setting @code{'transparent =
  19. ##t}.
  20. Some @code{\\markup} elements are included in the source to highlight
  21. the different notations.
  22. "
  23. doctitle = "Stemlets"
  24. } % begin verbatim
  25. \paper { ragged-right = ##f }
  26. {
  27. c'16^\markup { traditional } d' r f'
  28. g'16[^\markup { beams over rests } f' r d']
  29. % N.B. use Score.Stem to set for the whole score.
  30. \override Staff.Stem #'stemlet-length = #0.75
  31. c'16[^\markup { stemlets over rests } d' r f']
  32. g'16[^\markup { stemlets and no rests } f'
  33. \once \override Rest #'transparent = ##t
  34. r16 d']
  35. }