X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Flsr%2Fcenter-text-below-hairpin-dynamics.ly;h=29a51ecdabbd488f07bb2945ba623fc439e866e5;hb=0546edd7b079d4ab0569ec136d2d6b33e3004075;hp=e427bfcfa97a51efe091945fe200bf7e98550621;hpb=a0b2e9cf56fadc0c2c4f23d0e3aa34ba7eaaa0ae;p=lilypond.git diff --git a/input/lsr/center-text-below-hairpin-dynamics.ly b/input/lsr/center-text-below-hairpin-dynamics.ly index e427bfcfa9..29a51ecdab 100644 --- a/input/lsr/center-text-below-hairpin-dynamics.ly +++ b/input/lsr/center-text-below-hairpin-dynamics.ly @@ -1,37 +1,46 @@ %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it %% This file is in the public domain. -\version "2.11.38" +\version "2.11.62" \header { lsrtags = "expressive-marks, text" - texidoc = " -This example provides a function to typeset hairpin (de)crescendo with -some additional text below it, such as \"molto\" or \"poco\". - -The example also illustrates how to use modify the way an object -normally is printed, using some Scheme code. -" } -% begin verbatim -hairpinWithCenteredText = #(define-music-function - (parser location text) (markup?) + + texidoces = " +Este ejemplo proporciona una función para tipografiar un regulador +con texto por debajo, como \"molto\" o \"poco\". El ejemplo +ilustra también cómo modificar la manera en que se imprime +normalmente un objeto, utilizando código de Scheme. + +" + doctitlees = "Centrar texto debajo de un regulador" + + texidoc = " +This example provides a function to typeset a hairpin (de)crescendo +with some additional text below it, such as \"molto\" or \"poco\". The +example also illustrates how to modify the way an object is normally +printed, using some Scheme code. + +" + doctitle = "Center text below hairpin dynamics" +} % begin verbatim +hairpinWithCenteredText = #(define-music-function (parser location text) (markup?) #{ -\override Voice.Hairpin #'stencil = #(lambda (grob) - (ly:stencil-aligned-to - (ly:stencil-combine-at-edge - (ly:stencil-aligned-to (ly:hairpin::print grob) X CENTER) - Y - DOWN - (ly:stencil-aligned-to (ly:text-interface::print grob) X CENTER)) - X LEFT)) -\override Voice.Hairpin #'text = $text + \override Voice.Hairpin #'stencil = #(lambda (grob) + (ly:stencil-aligned-to + (ly:stencil-combine-at-edge + (ly:stencil-aligned-to (ly:hairpin::print grob) X CENTER) + Y DOWN + (ly:stencil-aligned-to (ly:text-interface::print grob) X CENTER)) + X LEFT)) + \override Voice.Hairpin #'text = $text #}) +hairpinMolto = \hairpinWithCenteredText \markup { \italic molto } +hairpinMore = \hairpinWithCenteredText \markup { \bigger moltissimo } -hairpinMolto = \hairpinWithCenteredText \markup {\italic "molto"} -hairpinMore = \hairpinWithCenteredText \markup {\bigger "moltissimo"} +\layout { ragged-right = ##f } -\new Staff { - \hairpinMolto c'2\< c'2\f - \hairpinMore c'2\< c'2\f +{ + \hairpinMolto c'2\< c'\f + \hairpinMore c'2\< c'\f } -