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.
7 lsrtags = "expressive-marks, text"
9 %% Translation of GIT committish: 341940d3830b59f93a80131471d622c2818afddb
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"
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"
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)
37 (ly:stencil-aligned-to (grob-interpret-markup grob $text) X CENTER))
41 hairpinMolto = \hairpinWithCenteredText \markup { \italic molto }
42 hairpinMore = \hairpinWithCenteredText \markup { \larger moltissimo }
44 \layout { ragged-right = ##f }