lilypond-user
[Top][All Lists]
Advanced

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

Re: Ottava bracket


From: David Kastrup
Subject: Re: Ottava bracket
Date: Tue, 05 Mar 2013 12:37:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Noeck <address@hidden> 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




reply via email to

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