On 15.08.2009, at 00:30, Carl Sorensen wrote:

3) decide if you want
   (#:column (one num))
   ...or just...
   one
   etc.
This bit I don't understand. (#:column (one num)) would be the equivalent of
\markup \center-column { one num }, right? How would I do \markup
\center-column {\line {one + two + three} num }?

See Notation Reference 6.4.1 Markup construction in Scheme

(markup #:center-column ((#:line (one two three)) num))



4) decide if you want to keep the #:vcenter command
Probably not. I'm guessing.

5) somehow incorporate your new argument (three) in with the rest
   of the arguments.
This bit confuses me. Isn't it incorporated by adding "three" everywhere?

Yep, you seem to have it right.

Carl



Okay, now I have
#(define ((compound-time one two three num) grob)
  (grob-interpret-markup grob
    (markup #:override '(baseline-skip . 0) #:number
    (markup #:center-column ((#:line (one "+" two "+" three)) num))
      )))

Which looks like just a really complicated way of doing

\override Staff.TimeSignature #'stencil = #ly:text- interface::print
         \override Staff.TimeSignature #'text = \markup {
            \center-column {
\line { \musicglyph #"three" \musicglyph #"plus" \musicglyph #"three" \musicglyph #"plus" \musicglyph #"two" }
               \line { \musicglyph #"eight" }
            }
(my initial attempt)

Neither of which moves the Time signature to adjust for the wider space of "3+3+2". So, is there a better way of achieving this?

James E. Bailey



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to