lilypond-user
[Top][All Lists]
Advanced

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

Re: Ottava brackets abuse


From: Helge Kruse
Subject: Re: Ottava brackets abuse
Date: Sat, 16 May 2009 20:56:29 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090403 SeaMonkey/1.1.16

Kieren MacMillan wrote:
Hi Helge,

 > I need to write something that looks like ottava brackets, but must not
 > affect the pitch. With _#(set-ocatavation 1)_ I can create a bracket
 > that yields to _#(set-ocatavation 0)_ and I would also change the text
 > to i.e. _\set Staff.ottavation = #"Pincé"_ after several measures.
 >
 > But how do I keep the pitch for these notes?

Why can you not just use a TextSpanner?

Kieren,

thanks for hint to TextSpanner. I suspect ottava brackets to use TextSpanner. ;-)

I read the manual and searched at LSR. The sample in LSR looks promisingly. But I don't get the expected results:
1) The text is missing.
2) The falling edge at the end is missing.

What's wrong? (Complete example and result attached)


Regards,
Helge

#(ly:set-option 'point-and-click #f)
\version "2.13.0"
\include "deutsch.ly"
\relative c' {
        \clef treble
        \time 2/4
        \key f \major

        \override TextSpanner  #'edge-text = #'("Pincé" .  ",")
        \override TextSpanner  #'dash-period = #1
        \override TextSpanner  #'dash-fraction = #0.5
        \override TextSpanner  #'edge-height = #'(1 . -2)
        \override TextSpanner  #'thickness = #1
  
        d8 \startTextSpan e f d |
        f8 g a d \stopTextSpan |
        \revert TextSpanner #'style
}

Attachment: span.pdf
Description: Adobe PDF document


reply via email to

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