lilypond-user
[Top][All Lists]
Advanced

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

Re: drum notes in parentheses?


From: Rune Zedeler
Subject: Re: drum notes in parentheses?
Date: Thu, 05 Sep 2002 13:04:40 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529

Han-Wen Nienhuys wrote:

can you check whether this function works for you?

Nope, same result (apart from the corrected stem attachment, ofcourse).
Seems like the override/revert somehow goes wrong.
I cannot understand what happens - the drum scheme functions do not change the 'molecule-callback ...

Try to compile

\include "drumpitch-init.ly"
\score {
    \apply #(drums->paper 'drums)
    \notes { \clef percussion
             bd sn
             \property Staff.NoteHead \override #'molecule-callback
             =
             #(parenthesize-callback Note_head::brew_molecule)
             bd-"()" sn-"()" | hhho-"()" hh-"()"
             \property Staff.NoteHead \revert #'molecule-callback
             hh sn
         }

    \paper { linewidth = -1 }
}


(parenthesize-callback left out).
I get parens around all the non-default-noteheads instead of the 4 middle ones.

-Rune





reply via email to

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