Here is another approach
\version "2.19.80"
\include "
english.ly"
createStaff =
#(define-music-function
(STAFFNAME PAN MUSIC)
(markup? number? ly:music?)
#{
\new Staff = "#STAFFNAME" {
\set Staff.midiPanPosition = #PAN
#MUSIC
}
#}
)
\score {
<<
\createStaff "sop" #1.0 \sopNotes
\createStaff "alto" #-1.0 \altoNotes
>>
\midi {}
}
\score {
<<
\createStaff "sop" #0.5 \sopNotes
\createStaff "alto" #-0.5 \altoNotes
>>
\midi {}
}
HTH,
Elaine Alt
415 . 341 .4954 "Confusion is highly underrated"
elaine@flaminghakama.comProducer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-