Hi Valentin,
this looks very interesting, and I'll definitely have a closer look
because I currently see the need to finally get my head around defining
new and switching between contexts.
Just one remark: You can remove the keepAliveWhile function and replace
it with a simple
\new Voice = "bottomA" { #(skip-of-length bass) }
BestUrs
Am Donnerstag, den 02.07.2020, 11:52 +0200 schrieb Valentin Petzel:
> Hello,
>
> I have recently found a way of having notes change context into a
> different
> voice. This might be useful when you want to do things like
> condensing three
> voices into two voices in a piano score. This is basically done by
> adding a
> Notes-Context to the Voice-Context, which allows us the change the
> voice.
>
> In the appended file there is a chorale condensed to a piano score
> using this
> way. Note how in measure 5 the alto voice switches to the tenor
> voice.
>
> This might matter, because it allows us to differentiate stronger
> what the
> actual music is versus how it is notated, i.e. we can differentiate
> between
> lilyponds notated voices and the voices that are actually in the
> music.
>
> I hope some of you can profit from this, and if you like you can also
> put this
> on LSR. I’m apparently far to stupid to do this, I cannot even
> properly
> register a user.
>
> Regards,
> Valentin