diff options
author | Han-Wen Nienhuys <hanwen@xs4all.nl> | 2003-07-23 18:28:05 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@xs4all.nl> | 2003-07-23 18:28:05 +0000 |
commit | a3b4bf10fa99c57cfef7a1d0df0814e5dbcef164 (patch) | |
tree | 2b193694867602492b756eab5b0fbf691741c99c | |
parent | 9435b85cc6551448e51a16a1a0e41ab840feabc4 (diff) |
* scripts/convert-ly.py (FatalConversionError.conv): rule for pedal-style
* input/regression/tuplets.ly (texidoc): rename file.
* Documentation/user/refman.itely: updates, fixes.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | Documentation/user/refman.itely | 93 | ||||
-rw-r--r-- | input/regression/tuplets.ly | 5 | ||||
-rw-r--r-- | scm/define-grob-interfaces.scm | 4 | ||||
-rw-r--r-- | scm/define-grobs.scm | 2 | ||||
-rw-r--r-- | scm/new-markup.scm | 3 | ||||
-rw-r--r-- | scripts/convert-ly.py | 9 |
7 files changed, 66 insertions, 52 deletions
@@ -1,5 +1,7 @@ 2003-07-23 Han-Wen Nienhuys <hanwen@cs.uu.nl> + * scripts/convert-ly.py (FatalConversionError.conv): rule for pedal-style + * lily/text-spanner.cc (brew_molecule): use bracket-flare iso. edge-widen. diff --git a/Documentation/user/refman.itely b/Documentation/user/refman.itely index 38ef0b1cfe..8afaa50707 100644 --- a/Documentation/user/refman.itely +++ b/Documentation/user/refman.itely @@ -3029,10 +3029,10 @@ where @var{X} is one of the pedal types: @code{Sustain}, documentation of @internalsref{SustainPedal} for more information. Pedals can also be indicated by a sequence of brackets, by setting the -@code{pedal-type} property of @internalsref{SustainPedal} objects: +@code{pedalSustainStyle} property to @code{bracket} objects: @lilypond[fragment,verbatim] - \property Staff.SustainPedal \override #'pedal-type = #'bracket + \property Staff.pedalSustainStyle = #'bracket c''4-\sustainDown d''4 e''4 a'4-\sustainUp-\sustainDown f'4 g'4 a'4-\sustainUp @@ -3042,7 +3042,7 @@ A third style of pedal notation is a mixture of text and brackets, obtained by setting @code{pedal-type} to @code{mixed}: @lilypond[fragment,verbatim] -\property Staff.SustainPedal \override #'pedal-type = #'mixed + \property Staff.pedalSustainStyle = #'mixed c''4-\sustainDown d''4 e''4 c'4-\sustainUp-\sustainDown f'4 g'4 a'4-\sustainUp @@ -3084,8 +3084,8 @@ You can specify an arpeggio sign on a chord by attaching an <<c e g c>>-\arpeggio @end lilypond -When an arpeggio crosses staves in piano music, you attach an arpeggio -to the chords in both staves, and set +When an arpeggio crosses staves, you attach an arpeggio to the chords +in both staves, and set @internalsref{PianoStaff}.@code{connectArpeggios}. @lilypond[fragment,relative,verbatim] @@ -3096,9 +3096,6 @@ to the chords in both staves, and set > @end lilypond -This command creates @internalsref{Arpeggio} objects. Cross staff -arpeggios are @internalsref{PianoStaff}.@internalsref{Arpeggio}. - 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}. @@ -3131,6 +3128,12 @@ arpeggiate the chord. To draw these brackets, set the @cindex @code{\arpeggio} @code{\arpeggio}, +@seealso + +@internalsref{ArpeggioEvent} expression lead to +@internalsref{Arpeggio} objects. Cross staff arpeggios are +@internalsref{PianoStaff}.@internalsref{Arpeggio}. + @refbugs It is not possible to mix connected arpeggios and unconnected @@ -3175,7 +3178,7 @@ The associated object is @internalsref{VoiceFollower}. @node Vocal music @section Vocal music -This section discusses how to enter, and print lyrics. +This section discusses how to enter and print lyrics. @menu * Entering lyrics:: @@ -3214,7 +3217,6 @@ syllable includes a @code{@}}, and hence the opening brace is not balanced. @example \lyrics @{ twinkle@} @end example -which may be confusing. @cindex @code{\property}, in @code{\lyrics} Similarly, a period following a alphabetic sequence, is included in the @@ -3323,7 +3325,7 @@ putting both together, you would get @cindex SATB @cindex choral score -An example of a SATB score setup is in the file +A complete example of a SATB score setup is in the file @inputfileref{input/template,satb}. @seealso @@ -3367,8 +3369,8 @@ that identity followed by a dash. In the preceding example, the Ooooo, ch\'e -- ri, je t'aime. @} @end example The convention for naming @internalsref{LyricsVoice} and -@internalsref{Voice} must also be used to get melismata on rests -correct. +@internalsref{Voice} must also be used to get melismata correct in +conjunction with rests. The complete example is shown here. @lilypond[singleline,verbatim] @@ -3398,9 +3400,7 @@ surrounded with spaces in @code{\lyrics} mode. \property LyricsVoice . stanza = "Ernie" @end example -You can use empty syllables, e.g. @code{_4} or @code{" "4} to enter -lyrics. This can confuse the LilyPond -- for example, this might put -(empty) lyrics under rests. To remedy this, use @code{\skip} instead. +To make empty spaces in lyrics, use @code{\skip}. @@ -3420,7 +3420,7 @@ it contains @code{"bar"}. However, it could also be interpreted as making or a music identifier @code{\foo} containing the syllable `bar'. The force the latter interpretation, use @example - foo = \lyrics bar + foo = \lyrics bar4 @end example @@ -3523,10 +3523,9 @@ are printed as tablature, by using @internalsref{TabStaff} and } @end lilypond -If you do not specify a string number then one is selected -automatically: the first string that does not give a fret number less -than @code{minimumFret} is selected. The default value for -@code{minimumFret} is 0. +When no string is specified, the first string that does not give a +fret number less than @code{minimumFret} is selected. The default +value for @code{minimumFret} is 0. @example @@ -3568,7 +3567,8 @@ chord. You can change the number of strings, by setting the number of lines in the @internalsref{TabStaff} (the @code{line-count} property of @internalsref{TabStaff} can only be changed using -@code{\outputproperty}, for more information, see @ref{Tuning objects}. +@code{\outputproperty}, for more information, see @ref{Tuning +objects}). You can change the tuning of the strings. A string tuning is given as a Scheme list with one integer number for each string, the number @@ -3600,20 +3600,20 @@ note pitch. @refbugs -As tablature is a recent feature, most of the guitar special effects -such as bend are not yet supported. +Most of the guitar special effects such as bend have not been +implemented yet. + @node Chord names @section Chord names @cindex Chords -LilyPond has support for both entering and printing named chords. -These chords are internally represented as a set of pitches. Therefore -they can be entered by name and printed as notes, entered as notes and -printed as chord names, or (the most common case) entered them by -name, and print them as name. The following fragment shows these -options: +LilyPond has support for both printing chord names. Chords may be +entered in musical chord notation, i.e. @code{<< .. >>}, but they can +also be entered by name. Internally, the chords are represented as a +set of pitches, so they can be transposed. + @lilypond[verbatim,singleline] twoWays = \notes \transpose c c' { @@ -3631,8 +3631,8 @@ twoWays = \notes \transpose c c' { @end lilypond This example also shows that the chord printing routines do not try to -be intelligent. The chord @code{f bes d}, is not interpreted as an -inversion. +be intelligent. The last chord (@code{f bes d}) is not interpreted as +an inversion. @menu @@ -3735,8 +3735,9 @@ as bass notes, can be specified by appending \chords { c1 c/g c/f } @end lilypond @cindex @code{/+} -If you do not want to remove the bass note from the chord, but rather -add the note, then you can use @code{/+}@var{pitch}. + +A bass note can be added instead of transposed out of the chord, +by using @code{/+}@var{pitch}. @lilypond[fragment,verbatim,center] \chords { c1 c/+g c/+f } @@ -3759,9 +3760,6 @@ last. \chords { c:5.5-.5+ } @end lilypond -In chord mode, dashes and carets are used to indicate chord additions -and subtractions, so articulation scripts cannot be entered. - @node Printing chord names @subsection Printing chord names @@ -3776,7 +3774,7 @@ described above, or directly using @code{<<} and @code{>>}. @lilypond[verbatim,singleline] scheme = \notes { - \chords {a1 b c} <<d' f' g'>> <<e' g' b'>> + \chords {a1 b c} <<d' f' a'>> <<e' g' b'>> } \score { \notes< @@ -3791,7 +3789,7 @@ You can make the chord changes stand out by setting display chord names when there is a change in the chords scheme and at the start of a new line. -@lilypond[verbatim] +@lilypond[verbatim, linewidth=9cm] scheme = \chords { c1:m c:m \break c:m c:m d } @@ -3802,17 +3800,14 @@ scheme = \chords { \scheme } \context Staff \transpose c c' \scheme > -\paper{linewidth= 9.\cm} } @end lilypond The default chord name layout is a system for Jazz music, proposed by -Klaus Ignatzek (See @ref{Literature}). +Klaus Ignatzek (See @ref{Literature}). It can be tuned through the +following properties: -The Ignatzek chord name formatting can be tuned in a number of ways -through the following properties: @table @code - @cindex chordNameExceptions @item chordNameExceptions This is a list that contains the chords that have special formatting. @@ -3837,7 +3832,7 @@ separators, e.g. \context ChordNames \chords { c:7sus4 \property ChordNames.chordNameSeparator - = \markup { "|" } + = \markup { \typewriter "|" } c:7sus4 } @end lilypond @@ -3850,10 +3845,10 @@ B-chord) can be produced by storing a new function in this property. @cindex chordNoteNamer @item chordNoteNamer -The default is to print single notes (as for instance the bass note) -using the @code{chordRootNamer}. However, by setting this function to a non-null -value you can specify a different function. I.e. you could use letters -in lower case for the base note. +The default is to print single pitch, e.g. the bass note, using the +@code{chordRootNamer}. The @code{chordNoteNamer} property can be set +to a specialized function to change this behavior. For example, the +base can be printed in lower case. @end table diff --git a/input/regression/tuplets.ly b/input/regression/tuplets.ly index 61415612a6..1fa765f176 100644 --- a/input/regression/tuplets.ly +++ b/input/regression/tuplets.ly @@ -8,7 +8,8 @@ The bracket does not interfere with the stafflines, and the number is centered in the gap in the bracket. The bracket stops at the end of the stems, if the stems have the same -direction as the +direction as the bracket. The endings can be adjusted with +@code{bracket-flare}. " @@ -20,7 +21,7 @@ direction as the \notes \context Voice \relative c'' { \times 2/3 { a8 b c } \times 2/3 { r8 b-[ f] } - \property Voice.TupletBracket \set #'edge-flare = #'(0.5 . 0.5) + \property Voice.TupletBracket \set #'bracket-flare = #'(0.5 . 0.5) \times 2/3 { r8 b r8 } c4 | diff --git a/scm/define-grob-interfaces.scm b/scm/define-grob-interfaces.scm index dbc2cf4ed8..0f116b84f1 100644 --- a/scm/define-grob-interfaces.scm +++ b/scm/define-grob-interfaces.scm @@ -71,6 +71,10 @@ are interesting enough to maintain a hara-kiri staff." "tablature notes" '()) +(ly:add-interface + 'piano-pedal-interface + "A piano pedal sign" + '()) ;; todo: figure out where to put this doco: diff --git a/scm/define-grobs.scm b/scm/define-grobs.scm index fd13e620bf..87033d3af3 100644 --- a/scm/define-grobs.scm +++ b/scm/define-grobs.scm @@ -735,7 +735,7 @@ (edge-height . (1.0 . 1.0)) (shorten-pair . (0.0 . 0.0)) (thickness . 1.0) - (meta . ((interfaces . (text-spanner-interface piano-pedal-bracket-interface spanner-interface)))) + (meta . ((interfaces . (text-spanner-interface piano-pedal-interface piano-pedal-bracket-interface spanner-interface)))) )) (RepeatSlash diff --git a/scm/new-markup.scm b/scm/new-markup.scm index 6d304a7e63..f60c36caf7 100644 --- a/scm/new-markup.scm +++ b/scm/new-markup.scm @@ -128,6 +128,8 @@ for the reader. (font-markup 'font-family 'dynamic)) (define-public italic-markup (font-markup 'font-shape 'italic)) +(define-public typewriter-markup + (font-markup 'font-family 'typewriter)) ;; TODO: baseline-skip should come from the font. @@ -516,6 +518,7 @@ for the reader. (cons finger-markup (list markup?)) (cons bold-markup (list markup?)) (cons italic-markup (list markup?)) + (cons typewriter-markup (list markup?)) (cons roman-markup (list markup?)) (cons number-markup (list markup?)) (cons hbracket-markup (list markup?)) diff --git a/scripts/convert-ly.py b/scripts/convert-ly.py index e9bbe72dd5..bf776d43bf 100644 --- a/scripts/convert-ly.py +++ b/scripts/convert-ly.py @@ -1238,6 +1238,15 @@ Please refer to the manual for details, and convert manually. conversions.append (((1,7,24), conv,"cluster syntax")) +if 1: + def conv(str): + str = re.sub (r"\\property *Staff\.(Sustain|Sostenuto|UnaCorda)Pedal *\\(override|set) *#'pedal-type *", + r"\property Staff.pedal\1Style ", str) + str = re.sub (r"\\property *Staff\.(Sustain|Sostenuto|UnaCorda)Pedal *\\revert *#'pedal-type", '', str) + return str + + conversions.append (((1,7,28), conv,"new Pedal style syntax")) + ################################ |