[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Altered volta labels
From: |
Aaron Hill |
Subject: |
Re: Altered volta labels |
Date: |
Sun, 10 Jun 2018 18:42:19 -0700 |
User-agent: |
Roundcube Webmail/1.3.6 |
On 2018-06-10 17:44, Ralph Palmer wrote:
Hi -
My hearty thank you to all involved in LilyPond! I don't feel like I'm
contributing much anymore.
I'm running LY 2.19.81 and Frescobaldi 2.18.1 under Linux/Ubuntu 16.04.
I would like to change the labels on a set of volta alternatives. I've
tried using
Volta text markup using repeatCommands
<http://lsr.di.unimi.it/LSR/Item?id=316> [0.10714]
from the LSR, but I can't seem to get it to work correctly.
Hi Ralph,
The LSR snippet you mentioned still works just fine in 2.19.81. If you
would post an example of how you have tried to use it, we may be better
able to help you track down what isn't working for you.
Now, since setting repeat commands can be a little tedious, I have been
using the following helper functions since 2.10.33, with minor
alterations over the years:
%%%%
\version "2.19.81"
startRepeat = \set Score.repeatCommands = #'(start-repeat)
startVolta = #(define-music-function (text) (markup?)
#{ \set Score.repeatCommands = #(list (list 'volta text)) #})
changeVolta = #(define-music-function (text) (markup?)
#{ \set Score.repeatCommands = #(list '(volta #f) 'end-repeat (list
'volta text)) #})
endVolta = \set Score.repeatCommands = #'((volta #f))
endVoltaStartRepeat = \set Score.repeatCommands = #'((volta #f)
start-repeat)
endRepeat = \set Score.repeatCommands = #'(end-repeat)
\relative c'' {
\startRepeat
f4 g a b |
\startVolta \markup \text \small "1, 2, 3, etc."
g4 a g a |
c1 |
\changeVolta \markup \text \small "Last time"
b4 a g f |
\endVolta
e1 \bar "|." |
}
%%%%
NOTE: I included \endVoltaStartRepeat and \endRepeat, but they were
unneeded for the example.
-- Aaron Hill