lilypond-user
[Top][All Lists]
Advanced

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

Re: Automatic offset to align texts on their baseline.


From: David Nalesnik
Subject: Re: Automatic offset to align texts on their baseline.
Date: Wed, 2 Jun 2021 08:13:58 -0500

Hi Stéphane,

On Wed, Jun 2, 2021 at 8:02 AM Stéphane SOPPERA <stephane.soppera@gmail.com> wrote:
Hi,

This is my first post here and I hope this question has not already been answered.

I want to add harmonic analysis under my scores, something like that:
Screenshot from 2021-06-02 14-55-24.png
To achieve that I have used the script at the bottom of this mail. Something I had to do to align those texts properly though is:
  \new Dynamics \with {
    \override TextScript.Y-offset = #-3
  }


Without this override, I get this result:
Screenshot from 2021-06-02 14-55-06.png

Is there any way to have automatic alignment without having to use Y-offset override?


Yes, instead of adding your analysis to a Dynamics context, use Lyrics:

<<
  \new Staff \relative {
    c'1 | d | e |
  }
  \new Lyrics \lyricmode {
    \markup { \degree-text I {6 4 -3} }1 |
    \markup { \degree-text VII {2} } |
    \markup { \degree-text III {} } |
  }
>>

Best,
David
 

reply via email to

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