[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Extra Staff length
From:       David Nalesnik <david.nalesnik () gmail ! com>
Date:       2014-03-28 12:30:22
Message-ID: CANn-nXmWgn-OmbwKdX6u5MPenQ6b3G2NZnVx40jRo-Q_dY_Mtg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Conor,


On Thu, Mar 27, 2014 at 10:14 PM, Conor Cook <conor.p.cook@gmail.com> wrote:

>
> On Mar 27, 2014, at 10:15 AM, David Nalesnik <david.nalesnik@gmail.com>
> wrote:
> >  You might move the text to where you want it by first placing it where
> the staff length is unaffected, then overriding TextScript.extra-offset.
>  This leaves the layout unchanged.
>
> I'm not entirely sure I follow (I've only been using this since February,
> which also explains the embarrassing file structure).
>
>
See attached.  I took out the \halign and added

\once \override TextScript.extra-offset = #'(4 . 0)

The only drawback with this method is that extra-offset moves things
blindly without regard for collisions with other objects, so it could be an
annoyance using it before other details of the layout are fixed.

You can read more about it here:

http://www.lilypond.org/doc/v2.16/Documentation/learning/moving-objects

Hope this helps,

David

[Attachment #5 (text/html)]

<div dir="ltr">Hi Conor,<div class="gmail_extra"><br><br><div class="gmail_quote">On \
Thu, Mar 27, 2014 at 10:14 PM, Conor Cook <span dir="ltr">&lt;<a \
href="mailto:conor.p.cook@gmail.com" \
target="_blank">conor.p.cook@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div \
class=""><br> On Mar 27, 2014, at 10:15 AM, David Nalesnik &lt;<a \
href="mailto:david.nalesnik@gmail.com">david.nalesnik@gmail.com</a>&gt; wrote:<br> \
&gt;   You might move the text to where you want it by first placing it where the \
staff length is unaffected, then overriding TextScript.extra-offset.   This leaves \
the layout unchanged.<br> <br>
</div>I'm not entirely sure I follow (I've only been using this since February, which \
also explains the embarrassing file \
structure).<br><br></blockquote><div><br></div><div>See attached.   I took out the \
\halign and added</div> <div><br></div><div>\once \override TextScript.extra-offset = \
#&#39;(4 . 0)</div><div><br></div><div>The only drawback with this method is that \
extra-offset moves things blindly without regard for collisions with other objects, \
so it could be an annoyance using it before other details of the layout are \
fixed.</div> <div><br></div><div>You can read more about it \
here:</div><div><br></div><div><a \
href="http://www.lilypond.org/doc/v2.16/Documentation/learning/moving-objects">http://www.lilypond.org/doc/v2.16/Documentation/learning/moving-objects</a><br>
 </div><div><br></div><div>Hope this helps,</div><div><br></div><div>David</div><div> \
</div></div><br></div></div>

--001a11c1241e9b9e3d04f5a9dde5--


["Elgar First Cadence.ly" (text/lilypond-source)]

\version "2.18.2"

roundP = \markup {
   \halign #-0.25 \lower #4 \concat { \bold { \italic ( }
        \dynamic p \bold { \italic ) } } }

mezzoP = \markup {
  \halign #-0.3 \lower #4 \dynamic mp
}

mezzoF = \markup {
  \halign #0 \lower #4 \dynamic mf
}

forte = \markup {
  \halign #0 \lower #4 \dynamic f
}

tenuto = \markup { \italic ten. }

tenutoH = \markup { \raise #2.5 \italic ten. }

\score {
\midi {}
\layout {
  indent = #0
 %line-width = #120
  ragged-right = ##f
}
\new PianoStaff \with {
  \override StaffGrouper.staffgroup-staff-spacing.basic-distance = #20
} {
  <<
  \new Staff \relative c' {
    \key g \major
    \set Score.currentBarNumber = #8
    \bar ""
      {<c a'>4-._\roundP <c e>-. <c e a>-.
    <<
      { b'8( a | g2) }
      \\
      { c,4 | r4 <b d> }
    >>
    d4_\mezzoF d | <d d,>^\(\arpeggio <g, b g'> <d' b>\< <b d b'>\arpeggio |
    <b d b'>\arpeggio
    \once \override TextScript.extra-offset = #'(4 . 0)
    <a d fis a>\!\)_\markup { \lower #4 { \italic etc... } }\arpeggio
      }
    }
    
  \new Staff \relative c {
    \clef "bass"
    \key g \major
    <<
      { r4 g'!2( fis4) | r d d d | r2 d4 r | r fis }
      \\
      { a,2( d |
        <<
          { g,) r | <g, g'>\arpeggio g' | <d d'> }
          \new PianoStaff {
            <<
            \new Staff \with {
              \remove "Time_signature_engraver"
            }
            \relative c' {
              \key g \major
              <<
                { g'2 }
                \\
                { r4 <b, d> }
              >>
              <b b'>4^\tenuto(_\mezzoF\arpeggio <cis b'> |
              \override TextScript.avoid-slur = #'inside
              \override TextScript.outside-staff-priority = ##f
              <b' d,> <d, fis a>\>\arpeggio <e a e'>^\tenutoH\arpeggio <fis \
                e'>\arpeggio |
              <g e'>\! \once \override TextScript.extra-offset = #'(4 . 0) <d \
d'>)_\markup { \lower #4 { \italic etc... } }  }
          \new Staff \with {
            \consists "Span_arpeggio_engraver"
            \remove "Time_signature_engraver"
          }
          \relative c {
            \clef "bass"
            \key g \major
            \set Staff.connectArpeggios = ##t
            <<
              { r4 d d\arpeggio e | r2 r4 <fis a>\arpeggio | r4 <g b> }
              \\
              { g,2 g\arpeggio <fis fis'>(\arpeggio <c c'>\arpeggio | <b \
b'>)\arpeggio }  >>
          }
            >>
          }
        >>
      }
    >>
  }
  >>
}
}



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic