lilypond-user
[Top][All Lists]
Advanced

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

Re: custom voiceStyle


From: Phil Holmes
Subject: Re: custom voiceStyle
Date: Thu, 25 Oct 2012 12:05:46 +0100

Not on my system.  Could you confirm you've used my exact code, with the corrected voicing? Could you provide PNG output demonstrating the problem?

--
Phil Holmes
 
 
----- Original Message -----
Sent: Wednesday, October 24, 2012 5:27 PM
Subject: Re: custom voiceStyle

Thank you Phil, but the same issue persists when using the macro.

Gagi

On 24 October 2012 16:15, Phil Holmes <address@hidden> wrote:
Try this:
 
diamond = \override NoteHead #'style = #'diamond
 
\relative c' {
<<
   \new Voice {\voiceOne d2~\( d8[es] as16[f g8]\) }
   \new Voice {\voiceTwo \diamond d2~ d2 }
>> \oneVoice
}

--
Phil Holmes
 
 
----- Original Message -----
Sent: Wednesday, October 24, 2012 3:05 PM
Subject: Re: custom voiceStyle

example of code with macro (here both voices somehow get diamond heads):
\version "2.14.2"  
diamond = \override NoteHead #'style = #'diamond

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

example of code without macro (this is the appropriate result, but with messy code):
\version "2.14.2"  

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

Any clues why there is a difference in output? Thank you!
Greetings, Gagi

On 23 October 2012 19:56, Marc Hohl <address@hidden> wrote:
Am 23.10.2012 11:20, schrieb Gagi Petrovic:


Ah yes, that's the info i was looking for. Thank you Marc!

First i just wanted to turn the red color off, and use it in voiceTwo (to have diamond heads in one voice, while having regular heads in the other). I tried using my macro

diamond = \override NoteHead #'style = #'diamond

in voiceTwo, but I noticed this didn't work. Somehow, both voices get diamond heads. Now I see the override does work as long as i don't use it via my macro.

Could I change something in my macro so i could use it in this case?

Could you send a small example of your current code, please?
This would make it much more easy to try to help you.

Regards,

Marc

Kind regards, Gagi
ps. thank you for pointing me to ly/property-init.ly <http://property-init.ly>, this is really helpful!





--


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




--
+31 6 1259 8681 | LinkedIn | gagipetrovic.nl


reply via email to

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