Hi,

I had a look at
https://sourceforge.net/p/testlilyissues/issues/4931/

Any reason not to do the most simple code below?

\version "2.19.45"

defaultNoteHeads = {
  \revert NoteHead.style
  \revert TabNoteHead.style
  \revert NoteHead.font-name
  \revert TabNoteHead.font-name
}

xNotesOn = {
  \temporary \override NoteHead.style = #'cross
  \temporary \override TabNoteHead.style = #'cross
  \temporary \override NoteHead.font-name = #'()
  \temporary \override TabNoteHead.font-name = #'()
}

xNotesOff = \defaultNoteHeads

xNote = {
  \once \override TabNoteHead.style = #'cross
  \once \override NoteHead.style = #'cross
  \once \override NoteHead.font-name = #'()
  \once \override TabNoteHead.font-name = #'()
}

%%% EXAMPLE:

mus = {
    c'4
    \xNotesOn
    c'
    <c' e'>
    \xNotesOff
    c'
    <c' e'>
    \xNote
    cis'
    d'
}

<<
  \new Staff  \mus
  \new TabVoice
    \with { \override TabNoteHead #'font-name = #"Nimbus Sans L Bold" }
    \mus
>>

Thanks,
  Harm

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

Reply via email to