[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: display multi measure rest span
From: |
Jacques Menu Muzhic |
Subject: |
Re: display multi measure rest span |
Date: |
Tue, 2 Aug 2016 16:50:08 +0200 |
Hello Craig,
This has been contributed on this list:
%%%%%%%%%%
\layout {
\override Score.BarNumber.break-visibility = ##(#t #t #t)
}
fancyMultiMeasureRestNumber = {
\applyOutput Voice.MultiMeasureRestNumber
#(lambda (g c p)
(let* ((currentBarNumber (ly:context-property c 'currentBarNumber))
(mmr-length
(ly:moment-main
(ly:prob-property (ly:grob-property g 'cause) 'length))))
(ly:grob-set-property! g 'text
#{
\markup
\center-column {
#(number->string mmr-length)
%% value found by try and error
\translate #'(0 . -7.5)
\with-dimensions #empty-interval #empty-interval
\halign #CENTER
\line
#(list (number->string currentBarNumber)
" - "
(number->string (1- (+ currentBarNumber mmr-length))))
}
#})))
\compressFullBarRests
}
{
c'1
\fancyMultiMeasureRestNumber R1*14
c'1
}
%%%%%%%%%%
JM
> Le 1 août 2016 à 20:12, Kieren MacMillan <address@hidden> a écrit :
>
> Hi Craig,
>
>> Could anyone point me in the right direction of this. I'm trying to get the
>> bar number range of a multi measure rest printed below it as in the attached
>> example (bars 13-14).
>
> Maybe start with
> <http://lists.gnu.org/archive/html/lilypond-user/2016-02/msg00543.html>?
>
> Hope that helps,
> Kieren.
> ________________________________
>
> Kieren MacMillan, composer
> ‣ website: www.kierenmacmillan.info
> ‣ email: address@hidden
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user