lilypond-user
[Top][All Lists]
Advanced

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

Re: segno, coda, etc. below rehearsal mark


From: Paul Scott
Subject: Re: segno, coda, etc. below rehearsal mark
Date: Fri, 30 Jun 2006 16:13:07 -0700
User-agent: Thunderbird 1.5.0.4 (X11/20060619)

Daniel Johnson wrote:
A bit of research and hackery resulted in this:

%%% BEGIN LILYPOND CODE %%%
\version "2.9.9"

#(define (format-mark-barnumbers-segno mark context)
 (markup
   #:line
   (#:center-align
(#:bold (number->string (ly:context-property context 'currentBarNumber)) #:musicglyph "scripts.segno"))))

\score {
       \new Staff {
               \set Score.markFormatter = #format-mark-barnumbers-segno
               c'1 \mark \default
               c'1 \mark \default
               c'1 \mark \default
       }
}
%%% END LILYPOND CODE
Which inspired me to do this which is what I really wanted (boxed rehearsal marks):

#(define (format-mark-box-barnumbers-segno mark context)
(markup
  #:line
  (#:center-align
   (#:bold
(#:box (number->string (ly:context-property context 'currentBarNumber)))
    #:musicglyph "scripts.segno"))))

Thanks again,

Paul







reply via email to

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