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: Keyboard and other multi-staff instruments.

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]

Indicating cross-staff chords with a bracket

An non-arpeggiato bracket can indicate that notes on two different staves are to be played with the same hand. In order to do this, the PianoStaff must be set to accept cross-staff brackets.

The following example typesets measure 65 of Debussy’s prelude Les collines d’Anacapri.

\new PianoStaff <<
  \once \set PianoStaff.connectChordBrackets = ##t

  \new Staff \relative c' {
    \key b \major
    \time 6/8
    b8-.(\nonArpeggiato fis'-.\> cis-.
      e-. gis-. b-.)\!\fermata^\laissezVibrer
    \section
  }

  \new Staff \relative c' {
    \clef bass
    \key b \major
    << { <a e cis>2.\nonArpeggiato } \\
       { <a, e a,>2. } >>
    \section
  }
>>
[image of music]

Vedi anche

Frammenti: Keyboard and other multi-staff instruments.

Guida al funzionamento interno: Stem.


Guida alla Notazione di LilyPond v2.25.35 (development-branch).