|
From: | Ben |
Subject: | Re: Text level with the staff |
Date: | Thu, 18 Jan 2018 16:27:02 -0500 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
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 "|." } %%%%% |
besides staff.png
Description: PNG image
version 2.png
Description: PNG image
[Prev in Thread] | Current Thread | [Next in Thread] |