\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 Heikki Junes <hjunes@cc.hut.fi>
+
+ * 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 <hanwen@xs4all.nl>
* Documentation/user/introduction.itely (Automated engraving):
@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
<c e g c>\arpeggio
- \override Arpeggio #'arpeggio-direction = #-1
+ \arpeggioDown
<c e g c>\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
- <c' e g c>\arpeggio
+ \arpeggioBracket
+ <c' e g c>\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
MAJOR_VERSION=2
MINOR_VERSION=1
PATCH_LEVEL=27
-MY_PATCH_LEVEL=hwn1
+MY_PATCH_LEVEL=hjj1
-\version "2.1.26"
+\version "2.1.28"
\header{
texidoc="
A square bracket on the left indicates that the player should not
\score{
\notes\relative c''{
- \override Staff.Arpeggio #'print-function = \arpeggioBracket
+ \arpeggioBracket
<fis, d a >\arpeggio
}
% 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" }
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
################################