From: Heikki Junes Date: Sun, 29 Feb 2004 00:20:44 +0000 (+0000) Subject: * ly/property-init: new functions: \arpeggioUp, \arpeggioDown, X-Git-Tag: release/2.1.28~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=df84b50a058ec2298e1d8f79e194e14e20f0555c;p=lilypond.git * ly/property-init: new functions: \arpeggioUp, \arpeggioDown, \arpeggioBoth. redefine \arpeggioBracket. * Documentation/user/refman.itely: document new arpeggio functions. * scripts/convert-ly.py: add a rule for \arpeggioBracket. * input/regression/arpeggio-bracket.ly: apply convert-ly. --- diff --git a/ChangeLog b/ChangeLog index 2488308f4f..22e6b57690 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2004-02-29 Heikki Junes + + * ly/property-init: new functions: \arpeggioUp, \arpeggioDown, + \arpeggioBoth. redefine \arpeggioBracket. + + * Documentation/user/refman.itely: document new arpeggio + functions. + + * scripts/convert-ly.py: add a rule for \arpeggioBracket. + + * input/regression/arpeggio-bracket.ly: apply convert-ly. + 2004-02-29 Han-Wen Nienhuys * Documentation/user/introduction.itely (Automated engraving): diff --git a/Documentation/user/refman.itely b/Documentation/user/refman.itely index de142b5d2e..d1586f0059 100644 --- a/Documentation/user/refman.itely +++ b/Documentation/user/refman.itely @@ -3172,36 +3172,37 @@ in both staves, and set @end lilypond The direction of the arpeggio is sometimes denoted by adding an -arrowhead to the wiggly line. This can be typeset by setting -@code{arpeggio-direction}: +arrowhead to the wiggly line: @lilypond[fragment,relative,verbatim] \context Voice { - \override Arpeggio #'arpeggio-direction = #1 + \arpeggioUp \arpeggio - \override Arpeggio #'arpeggio-direction = #-1 + \arpeggioDown \arpeggio } @end lilypond A square bracket on the left indicates that the player should not -arpeggiate the chord. To draw these brackets, set the -@code{print-function} property of @code{Arpeggio} or -@code{PianoStaff.Arpeggio} objects to @code{\arpeggioBracket}, and use -@code{\arpeggio} statements within the chords as before: +arpeggiate the chord: @lilypond[fragment,relative,verbatim] - \override PianoStaff.Arpeggio - #'print-function = \arpeggioBracket - \arpeggio + \arpeggioBracket + \arpeggio @end lilypond @refcommands -@cindex @code{\arpeggioBracket} -@code{\arpeggioBracket}, @cindex @code{\arpeggio} -@code{\arpeggio}. +@code{\arpeggio}, +@cindex @code{\arpeggioUp} +@code{\arpeggioUp}, +@cindex @code{\arpeggioDown} +@code{\arpeggioUp}, +@cindex @code{\arpeggioBoth} +@code{\arpeggioBoth}, +@cindex @code{\arpeggioBracket} +@code{\arpeggioBracket}. @seealso diff --git a/VERSION b/VERSION index 5b012867ef..861e691d25 100644 --- a/VERSION +++ b/VERSION @@ -2,5 +2,5 @@ PACKAGE_NAME=LilyPond MAJOR_VERSION=2 MINOR_VERSION=1 PATCH_LEVEL=27 -MY_PATCH_LEVEL=hwn1 +MY_PATCH_LEVEL=hjj1 diff --git a/input/regression/arpeggio-bracket.ly b/input/regression/arpeggio-bracket.ly index 1b1e2a6fa9..0ceb818066 100644 --- a/input/regression/arpeggio-bracket.ly +++ b/input/regression/arpeggio-bracket.ly @@ -1,6 +1,6 @@ -\version "2.1.26" +\version "2.1.28" \header{ texidoc=" A square bracket on the left indicates that the player should not @@ -10,7 +10,7 @@ arpeggiate the chord. \score{ \notes\relative c''{ - \override Staff.Arpeggio #'print-function = \arpeggioBracket + \arpeggioBracket \arpeggio } diff --git a/ly/property-init.ly b/ly/property-init.ly index 6787beabc5..b48865dd8c 100644 --- a/ly/property-init.ly +++ b/ly/property-init.ly @@ -131,8 +131,24 @@ turnOff = #(cons '() '()) % of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether % cross-staff brackets are desired. -arpeggioBracket = #Arpeggio::brew_chord_bracket arpeggio = #(make-music 'ArpeggioEvent) + +arpeggioUp = \sequential { + \revert Arpeggio #'print-function + \override Arpeggio #'arpeggio-direction = #1 +} +arpeggioDown = \sequential { + \revert Arpeggio #'print-function + \override Arpeggio #'arpeggio-direction = #-1 +} +arpeggioBoth = \sequential { + \revert Arpeggio #'print-function + \revert Arpeggio #'arpeggio-direction +} +arpeggioBracket = \sequential { + \override Arpeggio #'print-function = #Arpeggio::brew_chord_bracket +} + glissando = #(make-music 'GlissandoEvent) fermataMarkup = \markup { \musicglyph #"scripts-ufermata" } diff --git a/scripts/convert-ly.py b/scripts/convert-ly.py index ac0fcc56fb..7f85e0867a 100644 --- a/scripts/convert-ly.py +++ b/scripts/convert-ly.py @@ -1970,6 +1970,13 @@ def conv (str): return str conversions.append (((2,1,27), conv, """property transposing -> tuning""")) + +def conv (str): + str = re.sub (r"\\override\s+.*Arpeggio\s+#.print-function\s+=\s+\\arpeggioBracket", r"\\arpeggioBracket", str) + return str + +conversions.append (((2,1,28), conv, """new syntax for setting \\arpeggioBracket""")) + ################################ # END OF CONVERSIONS ################################