lilypond-user
[Top][All Lists]
Advanced

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

Re: Markup over last barline


From: Hans Aberg
Subject: Re: Markup over last barline
Date: Mon, 15 Aug 2005 18:51:47 +0200

On 15 Aug 2005, at 16:19, Mats Bengtsson wrote:

How do I get it printed under the barline?



First of all, note that \mark is handled at the score level, so
you can only use it to print things above or below the full system,
not above/below each stave. So, if you want to printed below the
system, just set the 'direction' property:
\override Score.RehearsalMard #'direction = #DOWN

Could this be used to generate a new command \markbelow, that works as \mark, except that it puts the stuff below?


You can define your own functions, see
http://lilypond.org/doc/v2.6/Documentation/user/out-www/lilypond/ Using-LilyPond-syntax-inside-Scheme.html
and other sections of that chapter.

Thanks. I have had a look of it before, but not gotten so far as starting to program scheme, or at least not much so.

One epossible implementation is the following:

markbelow = #(def-music-function (parser location text) (markup?)
#{\once \override Score.RehearsalMark #'break-visibility = #begin-of-line-invisible
\once \override Score.RehearsalMark #'direction = #DOWN
       \mark  #$text #}
)

\score{
\relative c'{ c1 \markbelow \markup "below" \bar "|."}
\layout{raggedright=##t}
}

If I put
  \layout{raggedright=##t}
into my score, I get funny line-breaks. The "below" gets printed not below, but as in the following image:

JPEG image

  Hans Aberg



reply via email to

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