X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Flsr%2Fcenter-text-below-hairpin-dynamics.ly;h=5a34811db725285fb553ffaf98d789aa3ca20a85;hb=def21b306e2b8fa2d5630fab0878e9922e197f0c;hp=c69538c008b0ff4c2db4bb741186553366ef8e13;hpb=44ec216ed7a8f92311cdb8ea925d6e5cab4a72a0;p=lilypond.git diff --git a/input/lsr/center-text-below-hairpin-dynamics.ly b/input/lsr/center-text-below-hairpin-dynamics.ly index c69538c008..5a34811db7 100644 --- a/input/lsr/center-text-below-hairpin-dynamics.ly +++ b/input/lsr/center-text-below-hairpin-dynamics.ly @@ -1,35 +1,46 @@ -%% Do not edit this file; it is auto-generated from LSR! -%% Tags: expressive-marks, text -\version "2.11.35" - -\header { 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?) +%% 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.57" + +\header { + lsrtags = "expressive-marks, text" + + 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 } -