X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fengraving-tremolos-with-floating-beams.ly;fp=Documentation%2Fsnippets%2Fengraving-tremolos-with-floating-beams.ly;h=bf6981d2122155db2ce40a5782b7ade37c8fb145;hb=941dff9d2a67080e0dd8474f1e70f0c72ace6424;hp=0000000000000000000000000000000000000000;hpb=5a22d6233a39d3164e1ca043244794c268be4ad0;p=lilypond.git diff --git a/Documentation/snippets/engraving-tremolos-with-floating-beams.ly b/Documentation/snippets/engraving-tremolos-with-floating-beams.ly new file mode 100644 index 0000000000..bf6981d212 --- /dev/null +++ b/Documentation/snippets/engraving-tremolos-with-floating-beams.ly @@ -0,0 +1,50 @@ +%% 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.14.0" + +\header { + lsrtags = "rhythms, repeats" + + texidoc = " +If a tremolo's total duration is less than a quarter-note, or exactly a +half-note, or between a half-note and a whole-note, it is normally +typeset with all beams touching the stems. Certain engraving styles +typeset some of these beams as centered floating beams that do not +touch the stems. The number of floating beams in this type of tremolo +is controlled with the @code{'gap-count } property of the @code{Beam} +object, and the size of the gaps between beams and stems is set with +the @code{'gap} property. + + + +" + doctitle = "Engraving tremolos with floating beams" +} % begin verbatim + +\relative c'' { + \repeat tremolo 8 { a32 f } + \override Beam #'gap-count = #1 + \repeat tremolo 8 { a32 f } + \override Beam #'gap-count = #2 + \repeat tremolo 8 { a32 f } + \override Beam #'gap-count = #3 + \repeat tremolo 8 { a32 f } + + \override Beam #'gap-count = #3 + \override Beam #'gap = #1.33 + \repeat tremolo 8 { a32 f } + \override Beam #'gap = #1 + \repeat tremolo 8 { a32 f } + \override Beam #'gap = #0.67 + \repeat tremolo 8 { a32 f } + \override Beam #'gap = #0.33 + \repeat tremolo 8 { a32 f } +} + + + +