Allright, so the problem seems to be something else. When i use your exact
code it does work (see *directMacro.png*). But i'd like to use it via my "
template.ly" file which is in the
"/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly"
directory. So i could do something like

\version "2.14.2"
\include "template.ly"

\new Staff {
  \relative c'' {
    <<
      \new Voice {\voiceOne d2~\( d8[es] as16[f g8]\) }
      \new Voice {\voiceTwo \diamond d2~ d2 }
    >> \oneVoice
  }
}

and then somehow i get the result you see in *templateMacro.png*..
my "template.ly" consists of

*cross = \override Staff.NoteHead  #'style = #'cross*
*xcircle = \override Staff.NoteHead  #'style = #'xcircle*
*diamond = \override Staff.NoteHead  #'style = #'diamond*
*triangle = \override Staff.NoteHead  #'style = #'triangle*
*mensural = \override Staff.NoteHead  #'style = #'mensural*
*notehead = \override Staff.NoteHead  #'style = #'default*

among other things. This always works perfectly, but not when i am using
multiple voices in one staff.

Any ideas of what the problem could be are appreciated greatly. Thank you
and kind regards, Gagi

<<attachment: directMacro.png>>

<<attachment: templateMacro.png>>

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to