|
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. Cheers, Kieren. ____________________ \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) $repMusicA \set Score.repeatCommands = #(list '(volta #f) (list 'volta $repMarkupB) 'end-repeat) $repMusicB \set Score.repeatCommands = #'((volta #f)) #}) snippetMusic = \relative { \voltaCustom \markup \text \italic { "first time:" } { c4 d e f g1 } \markup \text \italic { "last time:" } { g4 f e d c1 } } \score { \snippetMusic } |
[Prev in Thread] | Current Thread | [Next in Thread] |