From e9dec8376453ec6d377d23bcc41aa281fe89f839 Mon Sep 17 00:00:00 2001 From: tux Date: Sun, 3 Nov 2024 17:29:00 +0100 Subject: [PATCH] multiverseSkips and alt functions --- basic_format_and_style_settings.ly | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/basic_format_and_style_settings.ly b/basic_format_and_style_settings.ly index dae7681..06babf5 100644 --- a/basic_format_and_style_settings.ly +++ b/basic_format_and_style_settings.ly @@ -158,4 +158,12 @@ rightHyphen = \lyricmode { leftHyphen = \lyricmode { \once \override StanzaNumber.font-series = #'normal \set stanza = "-" -} \ No newline at end of file +} + +multiverseSkips = +#(define-music-function (parser location skips) (number?) + #{ \tag #'multiVerse { \repeat unfold #skips { \skip4 } } #}) + +alt = +#(define-music-function (parser location a b) (ly:music? ly:music?) + #{ \tag #'firstVerse { #a } \tag #'multiVerse { #b } #}) \ No newline at end of file