lilypond-user
[Top][All Lists]
Advanced

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

Cross-staff stems and ottava for one voice only


From: Knute Snortum
Subject: Cross-staff stems and ottava for one voice only
Date: Fri, 20 Feb 2015 09:59:18 -0800

I am four measures away from finishing this Debussy Prelude and measure 50 is kicking my butt.

I can't get the cross-staff stems to work and I need to have ottavation in just one voice in the lower staff.  Here is how it should look.  Here is my best try:

\version "2.19.15"
\language "english"

hideTimeSignature = \once \override Staff.TimeSignature.stencil = ##f

global = {
  \key a \major
  \accidentalStyle piano
}

% --- Four Voices

upperStaffTop = \relative c'' {
  \hideTimeSignature \time 5/4
  a2. ~ a2 |
  \hideTimeSignature \time 3/4
  \voiceOne r8 <cs a' cs> ~ q4 r
}

upperStaffBottom = \relative c' {
  \hideTimeSignature \time 5/4
  cs2. ~ cs2 |
  \hideTimeSignature \time 3/4
  \acciaccatura { <ds fs>8 } <cs e>8^. ^( q8^. ) ~ q2 | 
}

lowerStaffTop = \relative c {
  \hideTimeSignature \time 5/4
  e2. ~ e2
  \hideTimeSignature \time 3/4
  \stemDown
  \acciaccatura { <fs b>8 } <e a>8 \crossStaff { q8 ~ q2 } |  
}

lowerStaffBottom = \relative c {
  \hideTimeSignature \time 5/4
  a2. ~ a2
  \hideTimeSignature \time 3/4
  \voiceFour r4 \ottava #-1 a,, \ottava #0 r  
}

% --- Biolerplate 

upperStaff = {
  \clef treble
  \global
  <<
    \new Voice { \voiceOne \upperStaffTop }
    \new Voice { \voiceTwo \upperStaffBottom }
  >>
}

lowerStaff = {
  \clef bass
  \global
  <<
    \new Voice { \voiceThree \lowerStaffTop }
    \new Voice { \voiceFour \lowerStaffBottom }
  >>
}

\score {
  \new PianoStaff <<
    \new Staff = "upper" { \upperStaff }
    \new Staff = "lower" { \lowerStaff } 
  >>
  \layout {
    \context {
      \PianoStaff
      \consists #Span_stem_engraver
    }
  }
}

Knute Snortum
(via Gmail)

reply via email to

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