I have a bunch of organ scores with 4 voices (sopMusic
, altoMusic
, tenorMusic
, bassMusic
). Each of those voices consists of two alternating snippets of music. For example, under sopMusic
we would find \sopranoOne
and \sopranoTwo
, both of which contain a couple measures of music. A simplified example would look like this:
sopMusic = {
\global
\voiceOne
\sopranoOne
\sopranoTwo
\sopranoOne
\sopranoTwo
}
altoMusic = {
\global
\voiceTwo
\altoOne
\altoTwo
\altoOne
\altoTwo
}
tenorMusic = {
\global
\voiceOne
\tenorOne
\tenorTwo
\tenorOne
\tenorTwo
}
bassMusic = {
\global
\voiceTwo
\bassOne
\bassTwo
\bassOne
\bassTwo
}
Typically I enter the correct number of repetitions in the soprano, and then copy/paste for the alto, tenor and bass parts. But this would be better done programmatically. Can somebody give me a function that will produce the altoMusic, tenorMusic, and bassMusic automatically given the sopMusic as an input?