This is probably user error rather than anything else, but I just wasted 20 minutes wondering why an accidental on a note in a score was missing in the PDF output before realising that the same note appeared earlier in the same bar but in a hidden voice.

In most guitar scores I use a hidden voice for such things as simultaneous text spanners, arpeggio brackets to indicate barring, etc.

The following example shows that the order of the voices in the source file affects whether the accidental appears or not:

\version "2.13.50"

\relative c' {
<< {
            \override NoteColumn #'ignore-collision = ##t
            \override NoteHead #'transparent = ##t
            \override Stem #'transparent = ##t
            \override Dots #'transparent = ##t
            \override Accidental #'transparent = ##t
            \override NoteHead #'no-ledgers = ##t
            c4 cis cis cis |
        }
    \\ { c4 c cis cis }
>>
}

\relative c' {
<< { c4 c cis cis }
    \\ {
            \override NoteColumn #'ignore-collision = ##t
            \override NoteHead #'transparent = ##t
            \override Stem #'transparent = ##t
            \override Dots #'transparent = ##t
            \override Accidental #'transparent = ##t
            \override NoteHead #'no-ledgers = ##t
            c4 cis cis cis |
        }
>>
}

Nick

<<attachment: test.png>>

_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to