LSR: Local update.
[lilypond/mpolesky.git] / Documentation / snippets / center-text-below-hairpin-dynamics.ly
blob57bac048c590383666525d71caf013da91db0c7c
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.10"
6 \header {
7 lsrtags = "expressive-marks, text"
9 %% Translation of GIT committish: 341940d3830b59f93a80131471d622c2818afddb
10 texidoces = "
11 Este ejemplo proporciona una función para tipografiar un regulador con
12 texto por debajo, como @qq{molto} o @qq{poco}. El ejemplo ilustra
13 también cómo modificar la manera en que se imprime normalmente un
14 objeto, utilizando código de Scheme.
17 doctitlees = "Centrar texto debajo de un regulador"
19 texidoc = "
20 This example provides a function to typeset a hairpin (de)crescendo
21 with some additional text below it, such as @qq{molto} or @qq{poco}.
22 The example also illustrates how to modify the way an object is
23 normally printed, using some Scheme code.
26 doctitle = "Center text below hairpin dynamics"
27 } % begin verbatim
29 hairpinWithCenteredText =
30 #(define-music-function (parser location text) (markup?)
32 \override Voice.Hairpin #'stencil = #(lambda (grob)
33 (ly:stencil-aligned-to
34 (ly:stencil-combine-at-edge
35 (ly:stencil-aligned-to (ly:hairpin::print grob) X CENTER)
36 Y DOWN
37 (ly:stencil-aligned-to (grob-interpret-markup grob $text) X CENTER))
38 X LEFT))
39 #})
41 hairpinMolto = \hairpinWithCenteredText \markup { \italic molto }
42 hairpinMore = \hairpinWithCenteredText \markup { \larger moltissimo }
44 \layout { ragged-right = ##f }
46 \relative c' {
47 \hairpinMolto
48 c2\< c\f
49 \hairpinMore
50 c2\< c\f