]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/altering-the-length-of-beamed-stems.ly
f42ad922b2ebe2baec12643527c5543d31827355
[lilypond.git] / Documentation / snippets / altering-the-length-of-beamed-stems.ly
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.16.0"
8
9 \header {
10   lsrtags = "pitches, tweaks-and-overrides"
11
12   texidoc = "
13 Stem lengths on beamed notes can be varied by overriding the
14 @code{beamed-lengths} property of the @code{details} of the
15 @code{Stem}.  If a single value is used as an argument, the length
16 applies to all stems.  When multiple arguments are used, the first
17 applies to eighth notes, the second to sixteenth notes and so on.  The
18 final argument also applies to all notes shorter than the note length
19 of the final argument.  Non-integer arguments may also be used.
20
21 "
22   doctitle = "Altering the length of beamed stems"
23 } % begin verbatim
24
25
26 \relative c'' {
27   \override Stem #'(details beamed-lengths) = #'(2)
28   a8[ a] a16[ a] a32[ a]
29   \override Stem #'(details beamed-lengths) = #'(8 10 12)
30   a8[ a] a16[ a] a32[ a] r8
31   \override Stem #'(details beamed-lengths) = #'(8)
32   a8[ a]
33   \override Stem #'(details beamed-lengths) = #'(8.5)
34   a8[ a]
35   \revert Stem #'details
36   a8[ a] a16[ a] a32[ a] r16
37 }