help-gnu-music
[Top][All Lists]
Advanced

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

Re: Drumnotation


From: Han-Wen Nienhuys
Subject: Re: Drumnotation
Date: Thu, 18 Jan 2001 20:19:30 +0100

address@hidden writes:
> > > How do I
> > > - Make a drum clef (vetical rectangle)
> > 
> > It's not implemented at the moment, but is very easy to add.
> > I'll take a look tonight. In the music typesetting book I have
> > available, the symbols looks like: || 
> > I assume that's what you want.
> 
> Here's a patch for 1.3.121 which implements the percussion
> clef. Unfortunately, I haven't managed to use it with the
> RhytmicStaff, it puts the clef on a new separate staff line
> instead of the staff line with the notes (yes, I added
> the Clef_engraver to the RhytmicStaff context).

\clef is hardcoded to set Staff.xxXxxx properties. Try

        \score{
          \context RhythmicStaff {
            \notes\relative c''{ 
              \property RhythmicStaff.clefGlyph = #"clefs-percussion"
                \property RhythmicStaff.clefPosition = #0
              \time 4/4; 
              r4 r g2 | r4 g r2 | g1:32 | r1 |
            }
          }
          \paper{
            \translator{
              \RhythmicStaffContext
              \consists "Clef_engraver"; 
            }
          }
        }

-- 

Han-Wen Nienhuys   |   address@hidden    | http://www.cs.uu.nl/~hanwen/




reply via email to

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