lilypond-user
[Top][All Lists]
Advanced

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

Re: Adding markup to percent repeat sign


From: David Bellows
Subject: Re: Adding markup to percent repeat sign
Date: Mon, 3 Feb 2014 10:47:48 -0800

That works very well and is easy. It appears to add a little space on
the sides but it's something I can live with. Thank you very much!

On Sun, Feb 2, 2014 at 11:41 PM, TaoCG <address@hidden> wrote:
> David Bellows wrote
>> Hello all,
>>
>> I'm writing a kind of minimalist piece that has a lot of repeated
>> measures that I would like to notate using the percent repeat symbol
>> with text above it like "8x" or any other arbitrary text.
>>
>> The built-in functionality does not seem to allow for this unless I'm
>> missing something. I found a snippet to generate a percent repeat
>> sign:
>>
>> makePercent =
>> #(define-music-function (parser location note) (ly:music?)
>>    "Make a percent repeat the same length as NOTE."
>>    (make-music 'PercentEvent
>>                'length (ly:music-length note)))
>>
>> But this does not allow me to add \markup to it like:
>>
>> \version "2.19.1"
>> \score {
>> c e g c | \makePercent s1^\markup{"8x"}
>> }
>>
>> The normal \repeat percent 8 {blah} approach does not work because it
>> creates a lot of measures with the repeat sign and I just want the one
>> measure.
>>
>> I've seen solutions for spanning a selection with a spanner like
>> ------3x------ but that's not what I want nor do I want to use voltas
>> (and I believe I saw a solution for putting the "8x" over the bar line
>> which is not what I want either).
>>
>> I'm fairly certain I've seen this notation before in other scores.
>>
>> Anyone have any ideas?
>>
>> Thanks
>>
>> _______________________________________________
>> lilypond-user mailing list
>
>> lilypond-user@
>
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
> Hi,
>
> you can prepend your percent repeats with this:
>
> s1*0^\markup "text"
>
> I think this should give you the output you're looking for.
>
>
>
> --
> View this message in context: 
> http://lilypond.1069038.n5.nabble.com/Adding-markup-to-percent-repeat-sign-tp158763p158766.html
> Sent from the User mailing list archive at Nabble.com.
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

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