lilypond-user
[Top][All Lists]
Advanced

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

Re: ballooning a note including its attributes


From: Thomas Morley
Subject: Re: ballooning a note including its attributes
Date: Fri, 10 May 2013 16:32:45 +0200

2013/5/10 Jean-Charles Malahieude <address@hidden>:
> Hi all,
>
> I need, for an examination paper, to add a ballooning over two consecutive
> notes. So far, so good I can play with the slopes, but how can I adapt the
> engraver to include the accidental (in other words emphasize the C-sharp,
> not just the C) and add some padding between the object and the boxing.
>
> \new Staff \with { \consists "Balloon_engraver" } {
>   \relative c'' {
>     d8
>     d8 <d-\balloonText #'(1 . 4.1) \markup { " A" }>
>     <cis-\balloonText #'(-0.9 . 4) \markup { "" }>4
>   }
> }
>
> TIA,
> Jean-Charles

Hi Jean-Charles,

I first tried to modify Mike's code from
http://code.google.com/p/lilypond/issues/detail?id=155#c5
Though, without success. :(

For now I've only a clumsy workaround:

\version "2.16.2"

\new Staff \with { \consists "Balloon_engraver" } {
  \relative c'' {
    d8
    <d
     -\balloonText #'(1 . 4.4)
                   \markup { \pad-to-box #'(0 . 10) #'(-0.4 . 0) "A" }
    >
    \override Staff.BalloonTextItem #'padding = #1
    \override Staff.BalloonTextItem #'extra-offset = #'(-0.6 . 0)
    <cis -\balloonText #'(0 . 4) \markup { "" }>4
    d
  }
}


-Harm



reply via email to

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