lilypond-user
[Top][All Lists]
Advanced

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

Re: autoChange creating extra staff


From: Jean Abou Samra
Subject: Re: autoChange creating extra staff
Date: Fri, 17 Mar 2023 23:28:40 +0100
User-agent: Evolution 3.46.4 (3.46.4-1.fc37)

Hi,

I'm adding back the list in CC. When you reply on a mailing list, please always keep the list in copy (use "Reply to all", not "Reply") so that everyone can participate and benefit from the discussion.

Le vendredi 17 mars 2023 à 22:04 +0200, Dimitri Sykias a écrit :

Hi Why in the following example the E3 has a stem down?
Thanks
\version "2.24.1"

CrossStaff = \autoChange e {
  \relative c' {
    c2 c,
     e e' |
  }
}

VoiceTwo = \relative { \clef "bass" c,1 | c' }

\new PianoStaff <<
  \new Staff = "up" {
    \new Voice \CrossStaff
  }
  \context Staff = "down" {
    \new Voice \VoiceTwo
  }

It's missing \voiceXXX commands (sorry, I failed to notice this in the original post). You want

\version "2.24.1"

CrossStaff = \autoChange e {
  \relative c' {
    c2 \voiceOne c,
    e \oneVoice e' |
  }
}

VoiceTwo = \relative { \clef "bass" \voiceTwo c,1 | c' }

\new PianoStaff <<
  \new Staff = "up" {
    \new Voice \CrossStaff
  }
  \context Staff = "down" {
    \new Voice \VoiceTwo
  }
>>

LilyPond will not try to guess the order of voices by itself (it would be tricky), you always need to tell it.

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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