X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fcreating-text-spanners.ly;fp=Documentation%2Fsnippets%2Fcreating-text-spanners.ly;h=d2720b18fcf3f9071f6c0e2199aabd6963af4e74;hb=e90f0536f9be39ada0bef0aeb0d275dec3b2fb5b;hp=0000000000000000000000000000000000000000;hpb=a8c9e8a7ca320ab0df5fd32e717fd62cd7635ce6;p=lilypond.git diff --git a/Documentation/snippets/creating-text-spanners.ly b/Documentation/snippets/creating-text-spanners.ly new file mode 100644 index 0000000000..d2720b18fc --- /dev/null +++ b/Documentation/snippets/creating-text-spanners.ly @@ -0,0 +1,68 @@ +%% 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 = "expressive-marks, text, tweaks-and-overrides" + +%% Translation of GIT committish: 70f5f30161f7b804a681cd080274bfcdc9f4fe8c + texidoces = " +Las instrucciones @code{\\startTextSpan} y @code{\\stopTextSpan} +permiten la creación de elementos de extensión textuales tan +fácilmente como indicaciones de pedal u +octavaciones. Sobreescribimos ciertas propiedades del objeto +@code{TextSpanner} para modificar su salida. + +" + doctitlees = "Crear elementos de extensión textuales" + + texidoc = " +The @code{\\startTextSpan} and @code{\\stopTextSpan} commands allow the +creation of text spanners as easily as pedal indications or +octavations. Override some properties of the @code{TextSpanner} object +to modify its output. + +" + doctitle = "Creating text spanners" +} % begin verbatim + +\paper { ragged-right = ##f } + +\relative c'' { + \override TextSpanner #'(bound-details left text) = #"bla" + \override TextSpanner #'(bound-details right text) = #"blu" + a4 \startTextSpan + b4 c + a4 \stopTextSpan + + \override TextSpanner #'style = #'line + \once \override TextSpanner + #'(bound-details left stencil-align-dir-y) = #CENTER + a4 \startTextSpan + b4 c + a4 \stopTextSpan + + \override TextSpanner #'style = #'dashed-line + \override TextSpanner #'(bound-details left text) = + \markup { \draw-line #'(0 . 1) } + \override TextSpanner #'(bound-details right text) = + \markup { \draw-line #'(0 . -2) } + \once \override TextSpanner #'(bound-details right padding) = #-2 + + a4 \startTextSpan + b4 c + a4 \stopTextSpan + + \set Staff.middleCPosition = #-13 + \override TextSpanner #'dash-period = #10 + \override TextSpanner #'dash-fraction = #0.5 + \override TextSpanner #'thickness = #10 + a4 \startTextSpan + b4 c + a4 \stopTextSpan +} +