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