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: Daniel Johnson
Subject: Re: segno, coda, etc. below rehearsal mark
Date: Fri, 30 Jun 2006 10:40:50 -0700
User-agent: Thunderbird 1.5 (Windows/20051201)

Paul Scott wrote:
Paul Scott wrote:
Anthony Youngman wrote:
Read the documentation on rehearsal marks. One of the default styles is
to use the barnumber.

\set Score.markFormatter = #format-mark-barnumbers

Incidentally, this will also probably get round the problem of keeping
track - I guess the problem is the rehearsal mark counter isn't
automatically updated in Shamus' workaround. Of course, if you're using
barnumbers as rehearsal marks you don't need to keep the counter
updated.
Hi Anthony,

You probably didn't read the whole thread (or the subject line:) ). I am using format-mark-barnumbers. I just want to put a segno under one and a coda sign under another.
I apologize in that I might not have been the least bit clear that I wanted to use one of the automatically generated ehearsal marks.

Paul
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




reply via email to

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