Jump to content

Write text on the right of a staff: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m New category
Tags: Mobile edit Mobile web edit
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<code>\set Staff.instrumentName</code> allows to write on the left side only.
<code>\set Staff.instrumentName</code> allows to write on the left side only.


<lilypond version="2.24.0">
<lilypond version="2.24">
\layout {
\layout {
   ragged-right = ##f % use all the space
   ragged-right = ##f % use all the space
Line 16: Line 16:


[[Category:Text]]
[[Category:Text]]
[[Category:Snippet]]

Latest revision as of 23:30, 21 November 2025

\set Staff.instrumentName allows to write on the left side only.

\version "2.24"

\layout {
  ragged-right = ##f % use all the space
}
\relative c' {
 \time 6/8 \key g \major
 {
  d8 g a b4 b8 \bar "|" c4. c8 g a b4. \bar "|." 
  \override TextScript.extra-offset = #'(3 . 9) \override TextScript.font-size = #3
  s8-\markup { \whiteout \pad-markup #5.2  "29" }
 }
}