[Top][All Lists]

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

RE: need help with custom volta text

From: Kieren MacMillan
Subject: RE: need help with custom volta text
Date: Sat, 16 May 2009 14:54:02 +0000

Hey Graham,

> Oh, come on. There's only n! different combinations of those things!


> PS: I have no maoing clue why this works, but it does.

Thanks for the answer... as well as the honesty!
To save others the trouble, I've wrapped this in a function — I've included it as a snippet below.



\version "2.12.2"

voltaCustom =
    #(define-music-function (parser location repMarkupA repMusicA repMarkupB repMusicB) (markup? ly:music? markup? ly:music?)
            \set Score.repeatCommands = #(list (list 'volta $repMarkupA) 'start-repeat)
            \set Score.repeatCommands = #(list '(volta #f) (list 'volta $repMarkupB) 'end-repeat)
            \set Score.repeatCommands = #'((volta #f))

snippetMusic = \relative
        \markup \text \italic { "first time:" }
        { c4 d e f g1 }
        \markup \text \italic { "last time:" }
        { g4 f e d c1 }

\score { \snippetMusic }

reply via email to

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