Re: Adding markup to percent repeat sign
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 tao_lilypondu...@gmx.net 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Adding markup to percent repeat sign
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@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Adding markup to percent repeat sign
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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user