lilypond-user
[Top][All Lists]
Advanced

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

Re: Is there a better way to have a boxed part letter at the beginning o


From: Michael Werner
Subject: Re: Is there a better way to have a boxed part letter at the beginning of an arbitrary line?
Date: Wed, 16 Aug 2023 14:42:41 -0400

Hi Kevin.

It sounds like you might be able to do want you want with rehearsal marks. They're built into Lilypond and do pretty much what you seem to be describing. Details at http://lilypond.org/doc/v2.24/Documentation/notation/bars#index-rehearsal-mark
A modification of your MWE using them:

\version "2.24.2"
\language "english"

melody = \relative c' {
  \set Score.rehearsalMarkFormatter = #format-mark-box-letters
  \time 6/8
  \key d \major
  \clef treble

  \mark \default
  d8[ e8 e8] g8[ a8 b8] |
  \break
  \mark \default
  d8[ e8 e8] g8[ a8 b8] |
  \fine
}

\score {
  \new Voice = "mel" { \melody }

  \layout {
    \autoBeamOff
    indent = 0\mm
  }
}

The \set Score.rehearsalMarkFormatter = #format-mark-box-letters part reformats the marks to display as letters inside a box - the default is just a letter. By doing \default after the \mark Lilypond simply uses the letters sequentially. If needed, the position of the marks can be adjusted. Again, details on that are in the page linked above.

-- 
Michael

reply via email to

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