lilypond-user
[Top][All Lists]
Advanced

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

Re: what's the centred-text-spanner state of the art?


From: Kieren MacMillan
Subject: Re: what's the centred-text-spanner state of the art?
Date: Tue, 3 Jan 2017 12:16:35 -0500

Hi David,

The text-spanner-inner-texts.ly seemed too “heavy” for what I need… but it 
*does* work perfectly, and I’ll likely use many (or even all?!) of its 
superpowers at some point in my score.

For the sake of future archive searchers, I’ve included a snippet that works 
for me (assuming the \include file is correctly installed).

Thanks!
Kieren.

%%%  SNIPPET BEGINS
\version "2.19.25"
\include "tweaks/text-spanner-inner-texts.ly"

\paper { line-width = 4\in ragged-right = ##f }

spanTextBase = {
    \once \override TextSpanner.style = #'dashed-line
    \once \override TextSpanner.dash-period = #2
    \once \override TextSpanner.dash-fraction = #1/4
    \once \override TextSpanner.bound-details.left.padding = #-1
    \once \override TextSpanner.bound-details.right.padding = #-1
}

fermSpan = {
  \spanTextBase
  \textSpannerInnerTexts
        \lyricmode {
            \markup \draw-line #'(0 . -0.75) --
            \markup \halign #-1 \general-align #Y #0 \pad-around #0.5 
\musicglyph #"scripts.ufermata" --
            \markup \draw-line #'(0 . -0.75)
        }
}

bpSpan = {
  \spanTextBase
  \textSpannerInnerTexts
        \lyricmode {
            \markup \draw-line #'(0 . -0.75) --
            \markup \halign #-1 \general-align #Y #0.1 \pad-around #0.5 "b/p" --
            \markup \draw-line #'(0 . -0.75)
        }
}

test = {
    \fermSpan e''4\startTextSpan 4 r4 e''4\stopTextSpan
    \bpSpan e''4\startTextSpan 4 r4 e''4\stopTextSpan
}

\score { \test }
%%%  SNIPPET ENDS

________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden




reply via email to

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