On 1/17/2018 8:05 AM, Mark Knoop wrote:
At 04:35 on 17 Jan 2018, Vivyan wrote:
I mean like this (photoshopped);

<http://lilypond.1069038.n5.nabble.com/file/t5486/Screen_Shot_2018-01-17_at_11.png>


Hi Vivyan,

I just came across some code I had used in a previous project where I needed text beside a staff...maybe this could also help you :)
See attached for two options. Offset text as needed.

%%%%%%
\version "2.19.65"

       mytext = {
      \stopStaff \hideNotes c c'^\markup {This is a simple text}
    }

    \score {
      \fixed c' {c d c d \mytext}
      \layout{}
    }

%%%  OR

\version "2.19.65"


barlineMarkup = \markup {
  \whiteout
  \pad-around #1.3
  \vcenter
  \column {
    "Some text I want"
    % "next to the score"
  }
}

customBarLine = {
  \once \override Staff.BarLine #'stencil =
  #(lambda (grob)
     (ly:stencil-combine-at-edge
      (ly:bar-line::print grob)
      X RIGHT
      (grob-interpret-markup grob barlineMarkup)
      0))
}

{
  \override Score.BarLine.layer = 1
  c' d' e' c' \customBarLine \bar "|."
}

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

Reply via email to