3 When tieing notes with accidentals across a bar boundary, the
4 accidental must not be drawn on the note in the next bar. Unless the
5 tie crosses a line break, in which case the accidental is repeated if
6 it would be different from an untied note. The next note of the same
7 pitch in this next bar should always show the accidental (even if it's
8 natural). Slurring a accidentaled note to a natural one across bar
9 boundaries should be explicit.
11 Pitches can be verified by printing them with the @code{NoteNames} context.
15 thenotes = \notes \relative cis' {
20 gis4 gis8 ~ gis g4 gis |
28 gis4 gis8 ~ gis g4 gis |
30 g4 gis8 ~ gis g4 gis |
35 % FIXME: check for accidentals at line break could look more cute
36 % maybe move to tie-break-accidental?
38 % Btw: I don't even know what the rule is for the second note in the
39 % next bar, if a reminder accidental was printed. These are really
40 % not very common cases. Technically, if it is not tied, it
41 % should get an accidental; but it looks a bit silly and redundant.
44 )g! gis4 gis ~ | \break
45 gis2 gis ~ | gis g ~\break
51 \context Staff \thenotes
52 \context NoteNames \thenotes