Volta text markup using repeatCommands: Difference between revisions

Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 3: Line 3:
Since <code>repeatCommands</code> takes a list, the simplest method of including markup is to use an identifier for the text and embed it in the command list using the Scheme syntax <code>#(list (list 'volta textIdentifier))</code>. Start- and end-repeat commands can be added as separate list elements:
Since <code>repeatCommands</code> takes a list, the simplest method of including markup is to use an identifier for the text and embed it in the command list using the Scheme syntax <code>#(list (list 'volta textIdentifier))</code>. Start- and end-repeat commands can be added as separate list elements:


<lilypond version="2.24.0">
<lilypond version="2.24">
voltaAdLib = \markup { 1. 2. 3... \text \italic { ad lib. } }
voltaAdLib = \markup { 1. 2. 3... \text \italic { ad lib. } }