Kieren,

I was playing with the code you shared on this thread, and I have a question. Is it possible to get the markup to attach to the clef or time signature only in the bass staff? I am getting the text to show, but it is attaching to both staves.

Thanks for any advice.

Peace,
David

Here is the code snippet I wrote based on yours:

%START OF CODE

\version "2.19.80"

\layout {
      \context {
            \Score
            \consists "Balloon_engraver"
            \override BalloonTextItem.annotation-balloon = ##f
            \override BalloonTextItem.annotation-line = ##f
            \override BalloonTextItem.font-size = #-2
            \override BalloonTextItem.font-series = #'bold
      }
}


melody = \relative c' {

      c4 c c c
}

stuff = {
      \balloonGrobText #'TimeSignature #'(0 . -1) \markup "test1"
      \balloonGrobText #'Clef #'(0 . -1) \markup "test2"
      \time 2/4

      c2 c
}

\score {
      \new StaffGroup
      <<
            \new Staff {
                  \clef "treble"
                  \melody }
            \new Staff {
                  \clef "bass"
                  \stuff }
      >>
}

%END OF CODE




On 4/12/18 10:21 AM, Kieren MacMillan wrote:
Hi David,

can't you achieve your goal with the various footnote/balloon mechanisms?
I just tried to — in order to give the OP an example — but my attempt didn’t 
work:

%%%  SNIPPET BEGINS
\version "2.19.80"

\layout {
   \context {
     \Voice
     \consists "Balloon_engraver"
   }
}

stuff = {
   \balloonGrobText #'TimeSignature #'(1 . 0) \markup "test" \time 2/4 s2
}

\score { \stuff }
%%%  SNIPPET ENDS

No error, though… What did I do wrong? (Note: using \new Voice \stuff also 
didn’t work as expected.)

Thanks,
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to