]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/center-text-below-hairpin-dynamics.ly
Doc-es: pre-merge update of texidoc committishes.
[lilypond.git] / input / lsr / center-text-below-hairpin-dynamics.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 %% Note: this file works from version 2.12.0
4 \version "2.12.0"
5
6 \header {
7 %% Translation of GIT committish: 740b9a6c16eb30a84b216d23aeb848aa1b632be6
8   texidoces = "
9 Este ejemplo proporciona una función para tipografiar un regulador
10 con texto por debajo, como \"molto\" o \"poco\". El ejemplo
11 ilustra también cómo modificar la manera en que se imprime
12 normalmente un objeto, utilizando código de Scheme.
13
14 "
15   doctitlees = "Centrar texto debajo de un regulador"
16
17   lsrtags = "expressive-marks, text"
18
19   texidoc = "
20 This example provides a function to typeset a hairpin (de)crescendo
21 with some additional text below it, such as \"molto\" or \"poco\". The
22 example also illustrates how to modify the way an object is normally
23 printed, using some Scheme code.
24 "
25   doctitle = "Center text below hairpin dynamics"
26 } % begin verbatim
27
28
29 hairpinWithCenteredText =
30 #(define-music-function (parser location text) (markup?)
31 #{
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 #})
40
41 hairpinMolto = \hairpinWithCenteredText \markup { \italic molto }
42 hairpinMore = \hairpinWithCenteredText \markup { \larger moltissimo }
43
44 \layout { ragged-right = ##f }
45
46 {
47   \hairpinMolto c'2\< c'\f
48   \hairpinMore  c'2\< c'\f
49 }