Supongamos que quiero usar corcheas que difieren mucho en el tono, de modo que la mitad de las corcheas caigan en una clave de fa y la mitad de ellas se representen mejor en una clave de sol. ¿Hay alguna forma de usar un haz para conectar estas notas en dos pentagramas diferentes en Lilypond?
Un Voice
cambio de lata Staff
(el respectivo Staff
tiene que existir en ese momento, si es necesario mediante \skip
el uso apropiado).
Probar
\new PianoStaff <<
\new Staff = "treble" {
\new Voice {
\repeat unfold 8 { \change Staff = "treble" c''16
\change Staff = "bass" c,16
}
}
}
\new Staff = "bass" \with { \clef "bass" } { \skip 1 }
>>
Sí, esto es posible, pero hay algunas peculiaridades que puede encontrar:
upper = \relative c' {
g''8 \change Staff = "LH" g,,,
\change Staff = "RH" a''' \change Staff = "LH" fis,,,
\change Staff = "RH" b''' \change Staff = "LH" e,,,,
\change Staff = "RH" c'''' \change Staff = "LH" d,,,,
}
lower = \relative c {
\clef bass
s2
}
\score {
\new PianoStaff <<
\new Staff = "RH" \upper
\new Staff = "LH" \lower
>>
}
Mmm, una advertencia:
warning: cannot find context to switch to
\change Staff = "RH" b'''
\change Staff = "LH" e,,,,
Esto significa que el Staff
nombre "LH"
no "existía" donde otro Staff
intentaba hacer referencia a él. Así que necesitamos mantener ambos pentagramas "vivos". Un descanso espaciador funciona muy bien:
upper = \relative c' {
g''8 \change Staff = "LH" g,,,
\change Staff = "RH" a''' \change Staff = "LH" fis,,,
\change Staff = "RH" b''' \change Staff = "LH" e,,,,
\change Staff = "RH" c'''' \change Staff = "LH" d,,,,
}
lower = \relative c {
\clef bass
s2 s2 % (or s1)
}
\score {
\new PianoStaff <<
\new Staff = "RH" \upper
\new Staff = "LH" \lower
>>
}
También puede controlar cuándo y dónde transmitir. Para saber cuándo , consulte 1.2.4 Vigas automáticas > Fragmentos seleccionados > Cambiar el espacio de rodilla de la viga : \override Beam.auto-knee-gap = #6
; para where , puede mover específicamente las vigas:
upper = \relative c' {
g''8 \change Staff = "LH" g,,,
\change Staff = "RH" a''' \change Staff = "LH" fis,,,
\override Beam.positions = #'( -4.5 . -4.5 )
\change Staff = "RH" b''' \change Staff = "LH" e,,,,
\change Staff = "RH" c'''' \change Staff = "LH" d,,,,
}
lower = \relative c {
\clef bass
s2 s2 % (or s1)
}
\score {
\new PianoStaff <<
\new Staff = "RH" \upper
\new Staff = "LH" \lower
>>
}
guidot
Kilian Foth