lilypond-user
[Top][All Lists]
Advanced

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

Re: Center-align text getting cut-off


From: Pierre Perol-Schneider
Subject: Re: Center-align text getting cut-off
Date: Wed, 17 Aug 2016 20:19:37 +0200

Hi Philip,

v2.12 and v2.14 stay both so I gess you're using v2.14 (anyway I do not have v2.12 anymore...)
So how about :

\version "2.14.2"

\include "english.ly"
\include "gregorian.ly"

\layout {
  \context{
    %\Score \override SpacingSpanner #'packed-spacing = ##f
  }
  \context{
    \Lyrics \override LyricHyphen #'minimum-distance = #2.2
    \override LyricSpace #'minimum-distance = #0.8
  }
}

%% To be adjusted:
\paper {
  left-margin = 25
  right-margin = 20
  indent = 30
  %% short-indent = -10
}

\header {
  title = "Menaion ~ 08 September"
  subtitle = "Toparion for the Nativity of the All-holy Theotokos and Ever-Virgin Mary"
  poet = "Tone 4"
  composer =  "Abbreviated ''Greek'' Chant"
  footer = ""
}

global = {
  \key g \major
  \override Staff.NoteHead #'style = #'altdefault
  \override Staff.TimeSignature #'stencil = ##f
  %\override Staff.BarLine #'stencil = ##f
  \set Score.defaultBarType = "empty"
  \bar "|."
}

move = { \bar "" \break }

soprano = \relative c'' {
  \global
  % Music follows here.
  g4 g g g g g b2(a) g \bar "'"
  g4 g g a a a g a2. a4 g1 \bar "|"
}

alto = \relative c' {
  \global
  % Music follows here.
  d4 d d d d d d1 e2 \bar "'"
  e4 e e e e e e fs2. fs4 d1 \bar "|"
}

tenor = \relative c' {
  \global
  % Music follows here.
  b4 b b b b b d1 b2 \bar "'"
  b4 b b c c c b c2. c4 b1 \bar "|"
}

bass = \relative c' {
  \global
  % Music follows here.
  g4 g g g g g g2(fs) e \bar "'"
  e4 e e a a a e d2. d4 g1 \bar "|"
}

verse = \lyricmode {
  % Lyrics follow here.
  Thy na -- tiv -- i -- ty, O Vir -- gin,
  hath pro -- claimed joy to the whole un -- i -- verse!
}
 
\score {
  \new ChoirStaff <<
    \new Staff \with {
      midiInstrument = "string ensemble 1"
      %% How about:
      instrumentName = \markup \right-column { "Soprano " "Alto " }
      %% and also:
      shortInstrumentName = \markup \column { "S " "A " }
    } <<
      \new Voice = "soprano" { \voiceOne \soprano }
      \new Voice = "alto" { \voiceTwo \alto }
    >>
    \new Lyrics \lyricsto "soprano" \verse
    \new Staff \with {
      midiInstrument = "string ensemble 1"
      instrumentName = \markup \right-column { "Trenor " "Bass " }
      shortInstrumentName = \markup \column { "T " "B " }
    } <<
      \clef bass
      \new Voice = "tenor" { \voiceOne \tenor }
      \new Voice = "bass" { \voiceTwo \bass }
    >>
  >>
  \layout {
    ragged-last=##t
    #(layout-set-staff-size 22)
  }
  \midi {
    \context {
      \Score
      tempoWholesPerMinute = #(ly:make-moment 120 4) 
    }
  }
}

Cheers,
Pierre

PS. Why not go for v2.19 intsead ??

2016-08-17 20:02 GMT+02:00 tisimst <address@hidden>:
Philip,

On Wed, Aug 17, 2016 at 11:45 AM, thedoctor818 [via Lilypond] <[hidden email]> wrote:

I am working on the following score. However, when I change “S” and “A” in the score attributes to “Soprano” and “Alto” the words get cut-off. How can I avoid this? I had tried:

 

 

      instrumentName = \markup \center-column\left-align { "S" "A" }

 

but that did not work.


Play around with values for the paper variables "indent" and "short-indent": 


Those control the fixed space before systems (i.e., they will stay the same size regardless of the text length of instrumentName and shortInstrumentName), so increasing their value may be necessary if you are using a longer text strings.

HTH,
Abraham


View this message in context: Re: Center-align text getting cut-off
Sent from the User mailing list archive at Nabble.com.

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

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