\version "2.25.7" \include "arranger.ly" \include "globalizeMusic.ly" global = { s1 \repeat volta 2 { s1 * 2 } s1 } music = \relative c' { c1 d e f } \markup "Using \repeat volta without \alternative: unfolding with globalizeMusic produces expected output" \score { \new Staff << \global \music >> } \score { \unfoldRepeats \globalizeMusic \new Staff \music } global = { s1 \repeat volta 2 { s1 \alternative { \volta 1 { s1 } \volta 2 { s1 } } } } \markup "Now using \alternative : unfolds incorrectly" \score { \new Staff << \global \music >> } \score { \unfoldRepeats \globalizeMusic \new Staff \music }