Linee del cambio rigo

Quando una voce passa a un altro rigo, è possibile stampare automaticamente una linea connettiva:

\new PianoStaff <<
  \new Staff = "uno" {
    \showStaffSwitch
    c'1
    \change Staff = "due"
    b2 a
  }
  \new Staff = "due" {
    \clef bass
    s1*2
  }
>>

[image of music]

Una linea di cambio rigo tra accordi collega le “ultime note” degli accordi come sono scritte nel file sorgente; ciò può essere utile per regolare velocemente le posizioni verticali di inizio e fine della linea.

\new PianoStaff <<
  \new Staff = "uno" {
    <c' e' g'>1
    \showStaffSwitch
    \change Staff = "due"
    <a c' f>1
    \hideStaffSwitch
    \change Staff = "uno"
    <e' g' c'>1
    \showStaffSwitch
    \change Staff = "due"
    <f a c'>1
  }
  \new Staff = "due" {
    \clef bass
    s1*4
  }
>>

[image of music]

Comandi predefiniti

\showStaffSwitch, \hideStaffSwitch.

Vedi anche

Frammenti: Keyboards.

Guida al funzionamento interno: Note_head_line_engraver, VoiceFollower.

Frammenti di codice selezionati

Cross-staff stems

This snippet shows how to use Span_stem_engraver and \crossStaff to connect stems across staves automatically.

The stem lengths need not be specified, as the variable distance between noteheads and staves is calculated automatically. However, it is important that \crossStaff is applied to the correct voice or staff (i.e., on the opposite side of where a beam is or would be positioned) to get the desired effect.

\layout {
  \context {
    \PianoStaff
    \consists "Span_stem_engraver"
  }
}

\new PianoStaff <<
  \new Staff {
    <b d'>4 r d'16\> e'8. g8 r\! |
    e'8 f' g'4
      \voiceTwo
      % Down to lower staff
      \crossStaff { e'8 e'8 } e'4 |
  }

  \new Staff {
    \clef bass
    \voiceOne
    % Up to upper staff
    \crossStaff { <e g>4 e, g16 a8. c8 } d |
    g8 f g4 \voiceTwo g8 g g4 |
  }
>>

[image of music]

Indicare accordi trasversali al rigo con la parentesi quadrata dell’arpeggio

Una parentesi quadrata dell’arpeggio può indicare che delle note su due righi diversi devono essere suonate con la stessa mano. Per farlo, bisogna far sì che PianoStaff accetti gli arpeggi trasversali ai righi e gli arpeggi siano impostati nella forma della parentesi quadrata nel contesto PianoStaff.

(Debussy, Les collines d’Anacapri, m. 65)

\new PianoStaff <<
  \set PianoStaff.connectArpeggios = ##t
  \override PianoStaff.Arpeggio.stencil =
    #ly:arpeggio::brew-chord-bracket
  \new Staff {
    \relative c' {
      \key b \major
      \time 6/8
      b8-.(\arpeggio fis'-.\> cis-.
        e-. gis-. b-.)\!\fermata^\laissezVibrer \bar "||"
    }
  }
  \new Staff {
    \relative c' {
      \clef bass
      \key b \major
      <<
        {
          <a e cis>2.\arpeggio
        }
        \\
        {
          <a, e a,>2.
        }
      >>
    }
  }
>>

[image of music]

Vedi anche

Frammenti: Keyboards.

Guida al funzionamento interno: Stem.


Guida alla Notazione di LilyPond v2.25.15 (ramo di sviluppo).