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, scheme-language, really-cool"
12 %% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa
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"
22 %% Translation of GIT committish: f5cfaf8ef4ac347702f554af0944ef0d8396e73a
24 La fonction comprise dans l'extrait suivant permet d'ajouter du texte
25 -- comme @qq{molto} o @qq{poco} -- en dessous d'un soufflet de
26 (de)crescendo. Cet exemple présente aussi comment, à l'aide de code
27 Scheme, influencer la manière dont un objet est normalement imprimé.
30 doctitlefr = "Texte centré sous un soufflet"
33 This example provides a function to typeset a hairpin (de)crescendo
34 with some additional text below it, such as @qq{molto} or @qq{poco}.
35 The example also illustrates how to modify the way an object is
36 normally printed, using some Scheme code.
39 doctitle = "Center text below hairpin dynamics"
43 hairpinWithCenteredText =
44 #(define-music-function (parser location text) (markup?)
46 \override Voice.Hairpin #'stencil = #(lambda (grob)
47 (ly:stencil-aligned-to
48 (ly:stencil-combine-at-edge
49 (ly:stencil-aligned-to (ly:hairpin::print grob) X CENTER)
51 (ly:stencil-aligned-to (grob-interpret-markup grob text) X CENTER))
55 hairpinMolto = \hairpinWithCenteredText \markup { \italic molto }
56 hairpinMore = \hairpinWithCenteredText \markup { \larger moltissimo }
58 \layout { ragged-right = ##f }