Hi Kieren and Elaine,

First of all, thanks for your response, much appreciated!

@Kieren: the word "Dev/null" did not occur in our conversation here a number of days ago, but maybe it is what you called "a hidden voice" then? And maybe that's the same as what @Elaine calls "aligning to a NullVoice"? While - of course not to my surprise - both snippets you gave do what I want to achieve, those concepts are new to me, and I would have to study them to learn why they work, and how I should use it. At a first glance it seems more complicated to me, and I would have to dive into it before using this approach.

I still don't know why the \set associatedVoice construct Kieren gave in our previous conversation and which I find more easy to understand, does not work in the 1-bar polyphon. Is that impossible indeed? In that case I will have to make time to study the new-to-me code. Another question then: are the two solutions you give essentially the same, with only different naming? Or are they two different approaches?

Thanks again,

regards, Jogchum

Op 16-05-2026 om 21:24 schreef Kieren MacMillan:
Hi Jogchum,

I’m not sure of the exact answer to your question, but I do recommend again 
that you consider a Devnull spacer voice, e.g.

%%%  SNIPPET BEGINS
\version "2.25.32"

\paper {
   % Add space for instrument names
   indent = 18\mm
   short-indent = 10\mm
}

global = {
   \key g \major
   \time 3/4
}

alto = \relative c'' {
   \global
  r2 g4 ^\mf \time 4/4
<<    {  \voiceOne b2(a4)a
                                   a2(g)
         }
     \\
     \new Voice = "alto1" {  \voiceTwo g2. g4
                                                                        g1
                                              }
   >>
\oneVoice

g2 \tuplet 3/2 { g2 g4 }
g4 g2 g4 ^\f

<<     { \voiceOne b2(a4) a
           }
     \\
            \new Voice = "alto1" { \voiceTwo g2. g4
                                                      }
   \oneVoice

a2(g)
<g e> \tuplet 3/2 { <g~ es(>4 <g d)> <g c,> } \time 3/4
<a d,><g d>2
R2.*2
r4 g ^\mp g fis
fis(e8)g~~g2 \fermata
}

spacer = {
  \global
  r2 g4 2. 4 1 2 \tuplet 3/2 { 2 4 } 4 2 4 2. 4 1 2 \tuplet 3/2 { 2 4 } 4 2 R2. 
R2. r4 4 4 4 4. 8
}

altoVerse = \lyricmode {
   Mag -- ni -- fi -- cat a -- ni -- ma me -- a,
   Mag ni -- fi -- cat a -- ni -- ma me -- a, an cil -- lae su -- ae.
}

choirPart = \new ChoirStaff <<

   \new Staff \with {
     midiInstrument = "choir aahs"
     instrumentName = "Alt"
     shortInstrumentName = "A."
   } \new Voice \alto
   \new Devnull = "spacer" \spacer
   \new Lyrics \lyricsto "spacer" \altoVerse
\score {
   \choirPart
}
%%%  SNIPPET ENDS

There are ways to automate the generation of the notes in that spacer variable 
— I just didn’t want to get into that here, so I manually wrote out the rhythms.

Hope that helps!
Kieren.
__________________________________________________

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.



Reply via email to