lilypond-user
[Top][All Lists]
Advanced

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

Re: custom drumstuff, positions of noteheads


From: Toine Schreurs
Subject: Re: custom drumstuff, positions of noteheads
Date: Sun, 5 Sep 2010 01:28:24 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

I don't know why it works, but changing, within your fourtoms definition,
the float-numbers syntax by surrounding the dots with spaces helps.

\version "2.12.2"
%%% four Toms
#(define fourtoms '((hightom default #t  4)
                   (himidtom default #t 1 . 4)
                    (lowmidtom default #t -1 . 2)
                     (lowtom default #t -3 . 8)
                   ))

fourtomStaff = {
  \set DrumStaff.drumStyleTable = #(alist->hash-table fourtoms)
  \override Staff.StaffSymbol #'line-positions = #'(4 1.4  -1.2 -3.8)
  \override Staff.BarLine #'bar-size = #4
}
musik = \drummode { tomh 4 tommh tomml toml }
\score {
  \new DrumStaff { \fourtomStaff \musik  }
}

> Only integers are allowed for 'line-positions in a DrumStaff.  This
> can be easily fixed, though I'm not sure what to suggest for the
> stable version.
> 
> Perhaps you could try refactoring the line positions then scaling down
> the staff-space to compensate (untested).

Toine Schreurs



reply via email to

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