lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Middle voices and rests


From: David B. Stocker
Subject: Fwd: Middle voices and rests
Date: Sun, 13 May 2012 17:31:12 -0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120428 Thunderbird/12.0.1

Hi group,

Any guess on how to make LilyPond automatically shift rests the way it shifts notes in middle voices to avoid collisions with other notes?

Here's a minimal example.

Thanks,

David

%% Example %%

\version "2.14"

upstems = {

\relative c' {

c2

}

}

middle = {

\relative c' {

g4 g

}

}

middleRest = {

\relative c' {

g4 \rest g

}

}

downstems = {

\relative c {

c2

}

}

\score {

<<

\new Staff {

\clef "treble_8"

<<

{ \new Voice { \voiceOne \upstems } }

{ \new Voice { \voiceThree \middle } }

{ \new Voice { \voiceTwo \downstems } }

>>

}

\new TabStaff {

<<

{ \upstems }

{ \middle }

{ \downstems }

>>

}

>>

}

\score {

<<

\new Staff {

\clef "treble_8"

<<

{ \new Voice { \voiceOne \upstems } }

{ \new Voice { \voiceThree \middleRest } }

{ \new Voice { \voiceTwo \downstems } }

>>

}

\new TabStaff {

<<

{ \upstems }

{ \middleRest }

{ \downstems }

>>

}

>>

}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]