[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: custom voiceStyle
From:       Gagi Petrovic <mail () gagipetrovic ! nl>
Date:       2012-10-28 9:19:09
Message-ID: CAJ2+ObP0Ham1vqFN8Bs4iEQVc=jAM6tQ6qcpYj_a3bumCWtgkw () mail ! gmail ! com
[Download RAW message or body]

Ofcourse, thank you David. Changed my template to Voice instead of Staff
and everything works like a charm!

Thanks for all the help and kind regards, Gagi

On 27 October 2012 10:55, David Kastrup <dak@gnu.org> wrote:

> Gagi Petrovic <gagigagi@gmail.com> 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
>
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>



-- 
+31 6 1259 8681 |
LinkedIn<http://www.linkedin.com/profile/view?id=41702330&trk=tab_pro>
 | gagipetrovic.nl

[Attachment #3 (text/html)]

Ofcourse, thank you David. Changed my template to Voice instead of Staff and \
everything works like a charm!<div><br></div><div>Thanks for all the help and kind \
regards, Gagi<br><br><div class="gmail_quote">On 27 October 2012 10:55, David Kastrup \
<span dir="ltr">&lt;<a href="mailto:dak@gnu.org" \
target="_blank">dak@gnu.org</a>&gt;</span> wrote:<br> <blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
class="HOEnZb"><div class="h5">Gagi Petrovic &lt;<a \
href="mailto:gagigagi@gmail.com">gagigagi@gmail.com</a>&gt; writes:<br>

<br>
&gt; Allright, so the problem seems to be something else. When i use your<br>
&gt; exact code it does work (see directMacro.png). But i&#39;d like to use it<br>
&gt; via my &quot;<a href="http://template.ly" target="_blank">template.ly</a>&quot; \
file which is in the<br> &gt; \
&quot;/Applications/LilyPond.app/Contents/Resources/share/lilypond/current/ly&quot;<br>
 &gt; directory. So i could do something like<br>
&gt;<br>
&gt; \version &quot;2.14.2&quot;<br>
&gt; \include &quot;<a href="http://template.ly" \
target="_blank">template.ly</a>&quot;<br> &gt;<br>
&gt; \new Staff {<br>
&gt; \relative c&#39;&#39; {<br>
&gt; &lt;&lt;<br>
&gt; \new Voice {\voiceOne d2~\( d8[es] as16[f g8]\) }<br>
&gt; \new Voice {\voiceTwo \diamond d2~ d2 }<br>
&gt;&gt;&gt; \oneVoice<br>
&gt; }<br>
&gt; }<br>
&gt;<br>
&gt; and then somehow i get the result you see in templateMacro.png..<br>
&gt; my &quot;<a href="http://template.ly" target="_blank">template.ly</a>&quot; \
consists of<br> &gt;<br>
&gt; cross = \override Staff.NoteHead #&#39;style = #&#39;cross<br>
&gt; xcircle = \override Staff.NoteHead #&#39;style = #&#39;xcircle<br>
&gt; diamond = \override Staff.NoteHead #&#39;style = #&#39;diamond<br>
&gt; triangle = \override Staff.NoteHead #&#39;style = #&#39;triangle<br>
&gt; mensural = \override Staff.NoteHead #&#39;style = #&#39;mensural<br>
&gt; notehead = \override Staff.NoteHead #&#39;style = #&#39;default<br>
&gt;<br>
&gt; among other things. This always works perfectly, but not when i am<br>
&gt; using multiple voices in one staff.<br>
&gt;<br>
&gt; Any ideas of what the problem could be are appreciated greatly. Thank<br>
&gt; you and kind regards, Gagi<br>
<br>
</div></div>If you are overriding Staff.NoteHead, it should not come as much of a<br>
surprise that as a result all noteheads in a Staff as opposed to just<br>
the noteheads in a Voice are getting changed.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
David Kastrup<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
lilypond-user mailing list<br>
<a href="mailto:lilypond-user@gnu.org">lilypond-user@gnu.org</a><br>
<a href="https://lists.gnu.org/mailman/listinfo/lilypond-user" \
target="_blank">https://lists.gnu.org/mailman/listinfo/lilypond-user</a><br> \
</div></div></blockquote></div><br></div><br clear="all"><div><br></div>-- \
<br><div><div><font face="verdana, sans-serif" size="1"><div><div><div \
style="font-family:arial;font-size:small"><span \
style="font-family:verdana,sans-serif;font-size:x-small">+31 6 1259 8681 | </span><a \
href="http://www.linkedin.com/profile/view?id=41702330&amp;trk=tab_pro" \
style="font-family:verdana,sans-serif;font-size:x-small" target="_blank">LinkedIn</a> \
| <a href="http://gagipetrovic.nl/" \
style="font-family:verdana,sans-serif;font-size:x-small" \
target="_blank">gagipetrovic.nl</a></div> </div></div></font></div></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic