Am 29.10.21 um 22:14 schrieb Guy Stalnaker:

Whoa! What is this magic you're doing Master Moser??

    - I made sure that the bf4. on "days" stays in the voice called
    melody. There are various ways to do this; I chose a "modern" way
    using \voices and \\ inside << >> which allows to automatically
    add a "second" voice

This is a technique completely unknown to me! It is much more simple than the

%%%%
<<
{ \voiceOne }
    \new Voice { \voiceTwo {
    }}
>> \oneVoice %%%%

coding that I have long used.

Much thanks!!

Thanks and credit are due to Master :-) Kastrup (in a series of commits from 2017), but unfortunately, the documentation of \voices in https://lilypond.org/doc/v2.23/Documentation/notation/multiple-voices.html doesn't show all its possibilities. A good explanation is in the docstring to be found at https://lilypond.org/doc/v2.22/Documentation/notation/available-music-functions:

 \voices [music] - ids (list of indexes or symbols) music (music)

    Take the given key list of numbers (indicating the use of ‘\voiceOne’…) or symbols (indicating voice names, typically converted from strings by argument list processing) and assign the following \\-separated music to contexts according to that list. Named rather than numbered contexts can be used for continuing one voice (for the sake of spanners and lyrics), usually requiring a \voiceOne-style override at the beginning of the passage and a \oneVoice override at its end.

    The default

        << … \\ … \\ … >>

    construct would correspond to

        \voices 1,2,3 << … \\ … \\ … >>

The inconspicuous "... or symbols (indicating voice names)" is very powerful.

Lukas

Reply via email to