From: Alexander Kobel Date: Tue, 13 Dec 2016 19:54:21 +0000 (+0100) Subject: add choral and choral-cautionary accidental style X-Git-Url: https://git.donarmstrong.com/?p=lilypond.git;a=commitdiff_plain;h=3a0462a03c380657766e5e6903419dd49ce3dde2 add choral and choral-cautionary accidental style --- diff --git a/Documentation/notation/pitches.itely b/Documentation/notation/pitches.itely index bfed32447e..4e443522c5 100644 --- a/Documentation/notation/pitches.itely +++ b/Documentation/notation/pitches.itely @@ -7,7 +7,7 @@ Guide, node Updating translation committishes.. @end ignore -@c \version "2.19.22" +@c \version "2.19.53" @node Pitches @@ -2197,6 +2197,129 @@ musicB = { @end lilypond +@item choral + +@cindex accidental style, choral +@cindex accidentals, choral +@cindex choral accidental style +@cindex choral accidentals + +@funindex choral + +This rule is a combination of the @code{modern-voice} and the @code{piano} +style. It is intended for editions that are used both by singers that only +follow their own voice, as well as others that read an entire +@code{ChoirStaff} simultaneously. + +This accidental style applies to the current @code{ChoirStaff} by default. + +@lilypond[quote] +musicA = { + << + \relative { + cis''8 fis, bes4 8 f bis4 | + cis2. 4 | + } + \\ + \relative { + ais'2 cis, | + fis8 b a4 cis2 | + } + >> +} + +musicB = { + \clef bass + \new Voice { + \voiceTwo \relative { + 8[ + \change Staff = up + cis' cis + \change Staff = down + ] + \showStaffSwitch + \change Staff = up + dis'4 | + \change Staff = down + 4 gis 2 | + } + } +} + +\new ChoirStaff { + << + \context Staff = "up" { + \accidentalStyle choral + \musicA + } + \context Staff = "down" { + \musicB + } + >> +} +@end lilypond + +@item choral-cautionary + +@cindex accidentals, choral cautionary +@cindex cautionary accidentals, choral +@cindex choral cautionary accidentals +@cindex accidental style, choral cautionary +@cindex cautionary accidental style, choral +@cindex choral cautionary accidental style + +@funindex choral-cautionary + +This is the same as @code{choral} but with the extra accidentals +typeset as cautionaries. + +@lilypond[quote] +musicA = { + << + \relative { + cis''8 fis, bes4 8 f bis4 | + cis2. 4 | + } + \\ + \relative { + ais'2 cis, | + fis8 b a4 cis2 | + } + >> +} + +musicB = { + \clef bass + \new Voice { + \voiceTwo \relative { + 8[ + \change Staff = up + cis' cis + \change Staff = down + ] + \showStaffSwitch + \change Staff = up + dis'4 | + \change Staff = down + 4 gis 2 | + } + } +} + +\new ChoirStaff { + << + \context Staff = "up" { + \accidentalStyle choral-cautionary + \musicA + } + \context Staff = "down" { + \musicB + } + >> +} +@end lilypond + + @item neo-modern @cindex neo-modern accidental style diff --git a/scm/music-functions.scm b/scm/music-functions.scm index b1dc2f9c61..c152189d3c 100644 --- a/scm/music-functions.scm +++ b/scm/music-functions.scm @@ -1842,6 +1842,32 @@ on the same staff line." ,(make-accidental-rule 'same-octave 1)) GrandStaff) + ;; Accidentals on a choir staff for simultaneous reading of the + ;; own voice and the surrounding choir. Similar to piano, except + ;; that the first alteration within a voice (as opposed to on the + ;; same staff) is always printed. + (choral #f + (Voice ,(make-accidental-rule 'same-octave 0) + Staff + ,(make-accidental-rule 'same-octave 1) + ,(make-accidental-rule 'any-octave 0) + ,(make-accidental-rule 'same-octave 1) + ChoirStaff + ,(make-accidental-rule 'any-octave 0) + ,(make-accidental-rule 'same-octave 1)) + () + ChoirStaff) + (choral-cautionary #f + (Voice ,(make-accidental-rule 'same-octave 0) + Staff + ,(make-accidental-rule 'same-octave 0)) + (Staff ,(make-accidental-rule 'any-octave 0) + ,(make-accidental-rule 'same-octave 1) + ChoirStaff + ,(make-accidental-rule 'any-octave 0) + ,(make-accidental-rule 'same-octave 1)) + ChoirStaff) + ;; same as modern, but cautionary accidentals are printed for all ;; non-natural tones specified by the key signature. (teaching #f