lilypond-user
[Top][All Lists]
Advanced

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

Ossia Piano Staff


From: N. Andrew Walsh
Subject: Ossia Piano Staff
Date: Wed, 17 Feb 2016 11:30:56 +0100

Hi List,

also, in the same ensemble piece I mentioned in the last message, I'd like to have a passage in the piano part that also includes such "empty" staves for graphics, but only within one section. I'm trying to apply the NR instructions for ossia staves, and it's apparently not working. Here's what I have:

\version = "2.19.36"

KlavierMusicUpper = \new Voice \relative c'' {
  \clef treble
  R1*5/8 | 
  \time 3/8
  R1*3/8 | 
  \time 4/8
  s2*127 | %% all the music omitted for brevity
}

KlavierMusicLower = \new Voice \relative c'' {
  \clef treble
  R1*5/8 | 
  \time 3/8
  R1*3/8 | 
  \time 4/8
  s2*127 | %% here too. Just imagine it's full of passage-work or something
}

KlavierOssiaUpper = \new Voice \relative c'' {
 \clef treble 
 \time 5/8 
 s4 s s8 |
 \time 3/8
 s4. |
 \time 4/8
 s2*82 | \hideNotes es2 | \omit Staff.BarLine \repeat unfold 14 { es2 } \unHideNotes \undo \omit Staff.BarLine | 
 s2*30 | %% End of piece, Bar 129
 
}

KlavierOssiaLower = \new Voice \relative c {
 \clef bass 
 \time 5/8 
 s4 s s8 |
 \time 3/8
 s4. |
 \time 4/8
 s2*82 | \hideNotes es2 | \omit Staff.BarLine \repeat unfold 14 { es2 } \unHideNotes \undo \omit Staff.BarLine | 
 s2*30 | %% End of piece, Bar 129
 
}

\score {
     
    \new Staff = "Staff_violoncello" <<
          \override Staff.InstrumentName.self-alignment-X = #LEFT
          \set Staff.instrumentName = \markup \left-column \abs-fontsize #10 { Violoncello }
          \set Staff.midiInstrument = #"cello"
          \global \VioloncelloMusic
    >>  
  \new PianoStaff = "Staff_klavier" <<
          \override PianoStaff.InstrumentName.self-alignment-X = #LEFT
          \set PianoStaff.instrumentName = \markup \left-column { \abs-fontsize #10 \line { Piano } }
          \new Staff = "pianoupper" <<
          \global \KlavierMusicUpper \systembreaks
          >>
          \new Staff = "pianolower" {
           \global \KlavierMusicLower 
          }
          
  >>
  \new PianoStaff = "ossia"  <<
    \new Staff = "ossiaupper" \with {
    \remove "Time_signature_engraver"
    \hide Clef
    \magnifyStaff #2/3
    \RemoveAllEmptyStaves
  } {
      \global \KlavierOssiaUpper
  }
    \new Staff = "ossialower" \with {
    \remove "Time_signature_engraver"
    \hide Clef
    \magnifyStaff #2/3
    \RemoveAllEmptyStaves
  } {
      \global \KlavierOssiaUpper
    }
  >>
>>
  \layout {
  \context {
    \Staff \RemoveEmptyStaves
  }
  }
  \midi {}
  \header {
  opus = ##f
  }

}
--------------
NB: "\global" is a variable that just sets stuff like time signature format, initial key/time signature, etc.)

When I try to compile, Lily throws an error that \RemoveAllEmptyStaves is an "unrecognized escaped string" and pukes. 

What am I formatting wrong here?

Cheers,

A


reply via email to

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