lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

About issue 4931 make \deadNote work with different fonts


From: Thomas Morley
Subject: About issue 4931 make \deadNote work with different fonts
Date: Tue, 26 Jul 2016 17:05:53 +0200

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]