Noeck <[email protected]> writes:

>>> 2.  How can I have the 8va printed on top of the chords?
>> 
>> I would have said
>> 
>>   \layout {
>>     \context {
>>       \Staff
>>       \remove "Ottava_spanner_engraver"
>>     }
>>     \context {
>>       \Score
>>       \consists "Ottava_spanner_engraver"
>>     }
>>   }
>> 
>> but it does not work.
>
> That's what I tried, too - with the same result: It remove the ottava
> bracket on staff level, but does not add it on the score level.
> I would also be interested in a solution.

Not quite optimal because of the need for a separate context and
consequently \voiceTwo:

voiceOttava =
#(define-music-function (parser location ottava music)
  (integer? ly:music?)
  #{
     \new Voice \with { \ottava #ottava
                        \consists "Ottava_spanner_engraver" }
     $music
  #})

\relative c {
  \clef bass
  <<
    {
      <fis cis' g'>1~
      <fis cis' g'>4
    }
    \\
    { r2. \voiceOttava #-1 { \voiceTwo <b,,,~ bes'^~>4 <b bes'>4 } }
  >>
}




-- 
David Kastrup


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to