lilypond-user
[Top][All Lists]
Advanced

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

Re: Need multiple \mark entries over the same barline


From: Pierre Perol-Schneider
Subject: Re: Need multiple \mark entries over the same barline
Date: Wed, 30 Jul 2014 09:09:28 +0200

Hi James,

2014-07-30 1:49 GMT+02:00 James Harkins <address@hidden>:
In some places, I have a \markup-style mark over the same barline, and at the same barline, I also want a rehearsal mark (produced by \mark \default). Unfortunately it seems only one \mark is allowed at any given moment.

This is a type of markup-style marking I mean:

 \mark \markup { \fontsize #-2 { \note #"4." #1 "=" \note #"2" #1 } }

... where you wouldn't want the score to print the duration equivalence over every staff, just at the top. And of course rehearsal marks shouldn't go over every staff either.

Is there any workaround?

A mini example would have been great here...
Maybe this snippet could help ? http://lsr.di.unimi.it/LSR/Item?id=202


Somerhing like :

\version "2.18.2"

#(define (format-mark-box-letters-markup-style mark context)
  (markup #:line
    (#:center-column
      (#:line
        (#:fontsize -2 (#:note "4." 1)
         #:fontsize -2 "="
         #:fontsize -2 (#:note "2" 1))
        #:bold #:box (#:markletter (- (ly:context-property context 'rehearsalMark) 2))
        ))))

markDefaultMarkupStyle = {
  \set Score.markFormatter = #format-mark-box-letters-markup-style
  \once\override Score.RehearsalMark.baseline-skip = #4
  \mark\default
}

myMusic = \relative c'' {
  \repeat unfold 4 a
  \markDefaultMarkupStyle
  \repeat unfold 4 a
}

\new StaffGroup <<
  \myMusic
  \myMusic
  \myMusic
>>


HTH,
Pierre


reply via email to

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