On Mon, Feb 24, 2025 at 7:23 AM Gianmaria Lari <gianmarial...@gmail.com>
wrote:

> Sorry, I also forgot to mention that at the end of my polyphonic passage I
> normally forgot to mention (like I forgot in my previous code) the
> \oneVoice statement. What could happen without it?
>
> On Mon, 24 Feb 2025 at 16:18, Gianmaria Lari <gianmarial...@gmail.com>
> wrote:
>
>> When I need to write a temporary polyphonic passage my code looks similar
>> to this:
>>
>> %%%
>>
>> \version "2.25.23"
>>
>> incipit = {c4 4 4 4}
>> conclusion = {c4 4 4 4}
>> voiceA = {c4 d e f}
>> voiceB = {b4 a g f}
>>
>> \fixed c' \new Staff
>> {
>>   \incipit %monodic
>>   <<
>>     \new Voice {\voiceOne \voiceB}
>>     \new Voice {\voiceTwo \voiceA}
>>   >>
>>   \conclusion
>>
>> }
>>
>> %%%
>>
>> I just discovered that the lilypond online help propose something
>> different:
>>
>> << { \voiceOne … }
>>   \new Voice { \voiceTwo … }
>> >> \oneVoice
>>
>> or, using my previous example:
>>
>> %%%
>>
>> \version "2.25.23"
>>
>> incipit = {c4 4 4 4}
>> conclusion = {c4 4 4 4}
>> voiceA = {c4 d e f}
>> voiceB = {b4 a g f}
>>
>> \fixed c' \new Staff
>> {
>>   \incipit
>>   <<
>>     {\voiceOne \voiceB}
>>     \new Voice {\voiceTwo \voiceA}
>>   >>
>>   \conclusion
>> }
>>
>> %%%
>>
>> The output is exactly the same but I'm wondering if there are
>> substantial differences I should be aware of.
>> Thanks, g.
>>
>
In the second form, the incipit, voiceB, and the conclusion are all in the
same context.  That means that the conclusion will be in \voiceOne.  This
can be useful if you want to, for instance, slur from the incipit to
voiceB, or from voiceB to the conclusion.  Try:

%%%
incipit = {c4 4 4 4(}
voiceB = {b4) a g f}
%%%

--
Knute Snortum

Reply via email to