Thanks, Mr. Meyn,
That certainly does the trick.
So you can't write macros for \with{} statements?
Why couldn't I do it this way, if I just want to create the
\with statement?
Where can I find the docs to explain how the macro works?
(I've looked all over)
verseNumber = #(define-music-function(whatnumber)(string?)#{
\with { instrumentName = whatnumber shortInstrumentName =
whatnumber } #})
On 6/30/2016 4:54 PM, [email protected] wrote:
This would have to be \new Lyrics \with { \verseNumber 1 } or, easier to
type, \lyricsWithVerseNumber 1 like in the code below:
%%%%
\version "2.18.2"
lyricsWithVerseNumber =
#(define-music-function
(parser location number music)
(number? ly:music?)
#{
\new Lyrics \with {
instrumentName =
#(string-append (number->string number) ".")
shortInstrumentName =
#(string-append (number->string number) ".")
}
$music
#})
\lyricsWithVerseNumber 7
\lyricmode { \repeat unfold 40 foo }
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user