[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: custom voiceStyle
From: |
David Kastrup |
Subject: |
Re: custom voiceStyle |
Date: |
Sat, 27 Oct 2012 10:55:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
Gagi Petrovic <address@hidden> writes:
> 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
If you are overriding Staff.NoteHead, it should not come as much of a
surprise that as a result all noteheads in a Staff as opposed to just
the noteheads in a Voice are getting changed.
--
David Kastrup
- custom voiceStyle, Gagi Petrovic, 2012/10/22
- Re: custom voiceStyle, Marc Hohl, 2012/10/22
- Re: custom voiceStyle, Gagi Petrovic, 2012/10/23
- Re: custom voiceStyle, Marc Hohl, 2012/10/23
- Re: custom voiceStyle, Gagi Petrovic, 2012/10/24
- Re: custom voiceStyle, Phil Holmes, 2012/10/24
- Re: custom voiceStyle, Gagi Petrovic, 2012/10/24
- Re: custom voiceStyle, Phil Holmes, 2012/10/25
- Re: custom voiceStyle, Gagi Petrovic, 2012/10/27
- Re: custom voiceStyle,
David Kastrup <=
- Re: custom voiceStyle, Gagi Petrovic, 2012/10/28