-\score {
- \new Staff {
- <<
- \new Voice = "A" { s1*5 } % Keep Voice "A" alive for 5 bars
- \new Voice = "B" { s1*5 } % Keep Voice "B" alive for 5 bars
- {
- \context Voice = "A" {
- \voiceOneStyle
- \musicA
- }
- \context Voice = "B" {
- \voiceTwoStyle
- \musicB
- }
- \context Voice = "A" {
- % voiceOneStyle continues as Voice A is kept alive
- \musicA
- }
- \context Voice = "B" {
- % voiceTwoStyle continues, as Voice "B" is kept alive
- \musicB
- }
- \context Voice = "A" {
- % Voice "A" is still alive
- \musicA
- }
- }
- >>
+keepVoicesAlive = {
+ <<
+ \new Voice = "A" { s1*5 } % Keep Voice "A" alive for 5 bars
+ \new Voice = "B" { s1*5 } % Keep Voice "B" alive for 5 bars
+ >>
+}
+
+music = {
+ \context Voice = "A" {
+ \voiceOneStyle
+ \musicA
+ }
+ \context Voice = "B" {
+ \voiceTwoStyle
+ \musicB