On 14-07-16 10:40 AM, Hartmut Leister wrote:
Dear Lilypond users,

I have a small problem, when dealing with multirests in temporary
polyphonial passages. See my minimum non-working example [1] - in bar 2
the synchronous rests of voice

I have a source snippet perfectly merging multirest, when used in
completely polyphonial music:
\override MultiMeasureRest #'staff-position = #-0
\override Voice.Rest #'staff-position = #0
Sadly, this doesn't work, when I split a voice temporarily.

I could, of course, add something like
\repeat unfold 13 { \skip 1 }
to the secondary voice for all unisonous passages. That's a suboptimal
solution, because those passages may change in duration over the course
of writing the music and I don't want to adjust this every time.

Any suggestions?

Best wishes and thanks
Hartmut


[1] https://www.dropbox.com/sh/5oljo45qgwsd1cg/AAAJBLezCTXu61h0GcSFjhoua

Given that your passages are unison, they would have the same rhythm, so you can keep it simple by writing in parallel. Have a look at the Notation Reference section 1.5.2 Multiple Voices, and in particular the subsection on Single Staff Polyphony.

Here is your example after conversion (changes marked in bold), which seems to do what you want.

Cheers,
Colin

***********%<********************%<*****************

\version "2.19.7"


global =

{

\override MultiMeasureRest.staff-position = #-0

\override Voice.Rest.staff-position = #0

}


\markup{ "Multirest hiding not working:"}

\score {

<<

\relative c'

{

\global

% this is some (maybe longer) unisonous passage

c4 d e f |

<<

*% \new Voice *

{

*% \voiceOne *

g4 r b r4 | c1

}

*% \new Voice *

{

*% \voiceTwo *

e,4 r g r4 | g1

}

>>

% here again unisonous

b4 a g f | e d c2

}

>>

}


\markup{ "Multirest hiding working:"}

\score {

\new Staff

<<

\new Voice \relative c' {

\voiceOne

\global

c4 d e f | g r b r4 | c1 | b4 a g f | e d c2

}

\new Voice \relative c' {

\voiceTwo

\global

s1 | e4 r g r4 | g1

}

>>

}


--
I've learned that you shouldn't go through life with a catcher's mitt on both 
hands.
You need to be able to throw something back.
-Maya Angelou, poet (1928- )

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to