lilypond-user
[Top][All Lists]
Advanced

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

Re: Ottavation text too long for next line


From: Simon Albrecht
Subject: Re: Ottavation text too long for next line
Date: Sun, 17 May 2015 01:26:26 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

Hi Knute,

well this is one of those complicated cases where Lily is not yet smart enough. I’d suggest to make the text ‘shorter’, the following may give some ideas:

\version "2.19.20"
\language "english"

octaveUp = {
  \set Staff.ottavation = \markup \override #'(baseline-skip . 1.5)
  \column { \line { 8va \tiny \normal-text m.d. } \tiny \normal-text seulement }
  \once \override Staff.OttavaBracket.direction = #UP
  \set Voice.middleCPosition = #(- 6 5) % c''
}

octaveOff = {
  \unset Staff.ottavation
  \unset Voice.middleCPosition
}

\relative c' {
  <<
    {
      s1 | s1 | s1 | s1 |
      \octaveUp
      \repeat unfold 4 { e4 f g a }
      \octaveOff
      s1 | s1 | s1 | s1 | s1 | s1 | s1 | s1 |
    }
    \\
    {
      \repeat unfold 4 { c4 d e f }
      c_\markup \italic "loco" d e f
      \repeat unfold 11 { c4 d e f }
    }
  >>
}

The "loco" marking on the other voice should be considered an alternative to writing "m.d. seulement", of course.

HTH, Simon


Am 16.05.2015 um 19:13 schrieb Knute Snortum:
I have a piece where I need a fairly long ottavation text that goes from one line to the next (it says that the ottavation applies to the right hand only).  The problem is that there is only one measure on the second line and the text doesn't fit when it's repeated.  One solution is to set \break so that the ottavation is all on one line but this sometimes produces stretched or crowded measures.  Is there another solution?

\version "2.19.20"
\language "english"

octaveUp = { 
  \set Staff.ottavation = #"8va pour la main droite seulement"
  \once \override Staff.OttavaBracket.direction = #UP
  \set Voice.middleCPosition = #(- 6 5) % c'' 
}

octaveOff = {
  \unset Staff.ottavation
  \unset Voice.middleCPosition
}

\relative c' {
  <<
    {
      s1 | s1 | s1 | s1 |
      \octaveUp
      \repeat unfold 4 { e4 f g a }
      \octaveOff
      s1 | s1 | s1 | s1 | s1 | s1 | s1 | s1 | 
    }
    \\
    {
      \repeat unfold 16 { c4 d e f }
    }
  >>
}

Knute Snortum
(via Gmail)


_______________________________________________
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]