lilypond-user
[Top][All Lists]
Advanced

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

Two Ossia questions.


From: Hwaen Ch'uqi
Subject: Two Ossia questions.
Date: Mon, 28 Nov 2011 23:54:31 -0500

Greetings All,
          Below is an excerpt which includes an ossia and which contains two
layout issues. First, the ossia requires an entire PianoStaff context;
at the moment, the brace for this PianoStaff remains at the left edge
of the system. Second, the staff lines of the ossia section extend
further than necessary, past the barline. Can anyone provide
hints/remedies? Sorry for so grand a code sample, but it seemed good
to give a fuller context to these problems. Many thanks in advance.
Hwaen Ch'uqi


\version "2.14.2"

#(define-markup-command (four-hand-page layout props offset) (number?)
  (let* (
    (two-hand (chain-assoc-get 'page:page-number-string props))
    (four-hand (number->string (+ offset (* 2 (string->number two-hand))))))
    (interpret-markup layout props four-hand)))

\paper{
  #(set-paper-size "letter")
  oddHeaderMarkup = \markup \fill-line {
    \four-hand-page #1
    "(Secondo)"
    " "
    }
  evenHeaderMarkup = ##f
  tagline = ##f
}

\score{
  \new PianoStaff<<
    \new Staff = up{
      \set Staff.extraNatural = ##f
      \key g \major \time 2/4 \clef bass \relative{
        a,,16 b c! cis d8 r %34
        <e' c! a g> <e c a g> <d c a fis> <d c a fis> %35
        <c g d> <c g d> <b g d> <b g d> %36
        <c a g es> <c a g es> <c a fis d> <c a fis d> %37
        <ais g e! cis> <ais g e cis> <b g d> <b g d> %38
        <a! g e cis> <a g e cis> <a fis d c> <a fis c d> %39
        <g d b> <g d b> <d' b g f> <d b g f> %40
        <cis g e> <cis g es> <c fis, d> <c fis, d> %41
        <<
          {
            <b g d>4 \clef treble r8 c'16 b %42A
            a8 b16 c d8 e16 fis %43A
            g8 fis16 e d8 c16 b %44A
            a8 b16 c d8 e16 fis %45A
            g8 fis16 e d8 c16 b %46A
            a8 b16 c d8 e16 fis %47A
            g8 fis16 e d8 c16 b %48A
            a8 b16 c d,8 e16 fis %49A
            g8 e g r\bar "||" %50A
          }
          \new PianoStaff \with {
            alignAboveContext = #"up"
            \override TimeSignature #'stencil = ##f
            fontSize = #-3
            \override StaffSymbol #'staff-space = #(magstep -3)
            \override StaffSymbol #'thickness = #(magstep -3)
          }
          <<
            \new Staff{
              \clef bass <b, g d>4^"Ossia" r8 c16 b %42OA
              a8 b16 c d8 e16 fis %43OA
              g8 fis16 e d8 c16 b %44OA
              a8 b16 c d8 e16 fis! %45OA
              g8 fis16 e d8 c16 b %46OA
              a!8 b16 c d8 e!16 fis %47OA
              g8 fis16 e d8 c16 b! %48OA
              a8 b16 c d,8 e16 fis %49OA
              g8 e g r %50OA
            }
            \new Staff{
              \clef bass g,,4 r %42OB
              <a' c e>8\arpeggio r <a c fis>\arpeggio r %43OB
              <e b' g'>\arpeggio r <g b g'>\arpeggio r %44OB
              <a c f>\arpeggio r <a c fis>\arpeggio r %45OB
              <e ais g'> r <e b' g'> r %46OB
              <es c' g'> r <d c' fis> r %47OB
              <d bes' g'> r <d b' g'> r %48OB
              <c g' e'> r <d fis c' d>\arpeggio r %49OB
              <g, d' b'> <g c e g> <g b d g> r %50OB
            }
          >>
        >>
        \key d \major \clef bass
        <a'' fis a,>2~ %51
        <b fis b,> %52
        <d g, d>~ %53
        <cis g cis,> %54
        <b b,> %55
        <g' g,> %56
      }
    }
    \new Staff = down{
      \set Staff.extraNatural = ##f
      \key g \major \time 2/4 \clef bass \relative{
        \ottava #-1 a,,,16 b c! cis d8 r %34
        \ottava #0 g g g g %35
        g g g g %36
        g g g g %37
        g g g g %38
        g g g g %39
        g g g g %40
        g g g g %41
        g4 r8 c''16 b %42
        a8 b16 c d8 e16 fis %43
        g8 fis16 e d8 c16 b %44
        a8 b16 c d8 e16 fis %45
        g8 fis16 e d8 c16 b %46
        a8 b16 c d8 e16 fis %47
        g8 fis16 e d8 c16 b %48
        a8 b16 c d,8 e16 fis %49
        g8 e g r %50
        \key d \major
        r8 d,4 d8 %51
        r <d a'>4 <d a'>8 %52
        r <e a>4 <e a>8 %53
        r <a, a'>4 <a a'>8 %54
        r <e' d'>4 <e d'>8 %55
        r <e bes'>4 <e bes'>8 %56
      }
    }
  >>
  \header {
    piece = \markup \column{
      "XV."
      "Trepak"
      "(In Memoriam Petr Tchaikovsky)"
    }
  }
  \layout{
    indent = 0
  }
}

Attachment: Excerpt.pdf
Description: Adobe PDF document


reply via email to

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