bug-lilypond
[Top][All Lists]
Advanced

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

Re: trouble changing notehead size on percussion staff


From: Mats Bengtsson
Subject: Re: trouble changing notehead size on percussion staff
Date: Sat, 03 Jan 2004 22:41:05 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1

Try to set the property on Thread.NoteHead instead of Voice.NoteHead.
The reason is probably that the drums->paper function changes some
NoteHead property only within the current Thread context, which means
that a separate copy of the list of properties for the NoteHead is made for
that context so the changes you do later in the Voice context are not seen.
This is an intricate detail of the property setting mechanism that I didn't
realize until very recently even though I've used LilyPond for several years.

  /Mats

Niki Pantelias wrote:

Hello,

The .ly file pasted in below demonstrates a problem I'm having with changing notehead sizes in a drum part. When I run it as shown, the changes to font-relative-size have no effect, which seems to me to be a bug.

 If I comment out the line
 \apply #(drums->paper 'drums)
the notehead size _does_ change, although of course the result looks nothing like a drum part :-)

 thanks,
 -- Niki

------------
\include "english.ly"

papersize = "letter"
\include "paper20.ly"

\include "drumpitch-init.ly"
Scale =
 \context Voice
 \notes
 {
   \time 4/4
   bd4 tomfl
   \property Voice.NoteHead \override #'font-relative-size = #-3
   tomfh tomml | tommh
   \property Voice.NoteHead \revert #'font-relative-size
   sn hh cymr |
   \bar"|."
 }

\include "english.ly"

\score {
 \apply #(drums->paper 'drums)
 \new Staff {
   \clef percussion
   \Scale
    }
\paper { papersize = "letter"
          linewidth = \hsize - 0.9 \in }
}



_______________________________________________
Bug-lilypond mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-lilypond






reply via email to

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