1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
6 %% This file is in the public domain.
10 lsrtags = "expressive-marks, text"
12 %% Translation of GIT committish: 8b93de6ce951b7b14bc7818f31019524295b990f
14 Este ejemplo proporciona una función para tipografiar un regulador con
15 texto por debajo, como @qq{molto} o @qq{poco}. El ejemplo ilustra
16 también cómo modificar la manera en que se imprime normalmente un
17 objeto, utilizando código de Scheme.
20 doctitlees = "Centrar texto debajo de un regulador"
23 This example provides a function to typeset a hairpin (de)crescendo
24 with some additional text below it, such as @qq{molto} or @qq{poco}.
25 The example also illustrates how to modify the way an object is
26 normally printed, using some Scheme code.
29 doctitle = "Center text below hairpin dynamics"
32 hairpinWithCenteredText =
33 #(define-music-function (parser location text) (markup?)
35 \override Voice.Hairpin #'stencil = #(lambda (grob)
36 (ly:stencil-aligned-to
37 (ly:stencil-combine-at-edge
38 (ly:stencil-aligned-to (ly:hairpin::print grob) X CENTER)
40 (ly:stencil-aligned-to (grob-interpret-markup grob text) X CENTER))
44 hairpinMolto = \hairpinWithCenteredText \markup { \italic molto }
45 hairpinMore = \hairpinWithCenteredText \markup { \larger moltissimo }
47 \layout { ragged-right = ##f }