lilypond-user
[Top][All Lists]
Advanced

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

Re: matching unequal bars in separate staves


From: Ralph Palmer
Subject: Re: matching unequal bars in separate staves
Date: Fri, 4 Feb 2011 12:26:31 -0500

Okay - I'm getting close. However, in the following file, I don't understand :
1) Why there seems to be a \partial at the beginning of the main staves (or why the barlines are offset by a quarter note);
2) Why there are no barlines in the ossia.

I'm attaching a PDF of the output.

I would appreciate any help you can give me.

Pondly,

Ralph

%%%%%%%% Begin Snippet  %%%%%%%%%%%

\version "2.12.3"


mainA =
\relative c' {
  \key c \major
  \clef treble
  \time 4/4
 
  d4 e f g |
  e4 e f f |
  g4 g e e |
  d4 c c d |
  c4 b b c |
  b4 c d e |
}


mainB =
\relative c' {
  \key c \major
  \clef treble
  \time 4/4
 
  e4 e f f |
  d4 d c c |
  b4 b c c |
  b4 c d c |
  c4 d c d |
  d4 e d e |
}


% ossia part A
ossiaA =
\new Staff
\with {
  \remove "Time_signature_engraver"
  \override Clef #'transparent = ##t
  fontSize = #-3
  \override StaffSymbol #'staff-space = #(magstep -3)
  \override StaffSymbol #'thickness = #(magstep -3)
}

\relative c' {
  \key c \major
  \clef treble
  \time 6/4
 
  { \stopStaff s4*6 } |
% begin ossiaA
  \startStaff
  \bar "|"
  a'4 s4*1/3 b4 s4*1/3 c4 s4*1/3 b4 s4*1/3
  \bar "|"
  c4 s4*1/3 d4 s4*1/3 e4 s4*1/3 f4 s4*1/3
  c4 s4*1/3 d4 s4*1/3 e4 s4*1/3 f4 s4*1/3
  \stopStaff
}

% ossia part B
ossiaB =
\new Staff
\with {
  \remove "Time_signature_engraver"
  \override Clef #'transparent = ##t
  fontSize = #-3
  \override StaffSymbol #'staff-space = #(magstep -3)
  \override StaffSymbol #'thickness = #(magstep -3)
}
 
\relative c' {
  \key c \major
  \clef treble
  \time 6/4
   
  { \stopStaff s4*6 } |
% begin ossiaB
  \startStaff
  d'4 s4*1/3 c4 s4*1/3 d4 s4*1/3 c4 s4*1/3
  e4 s4*1/3 d4 s4*1/3 c4 s4*1/3 b4 s4*1/3
  e4 s4*1/3 c4 s4*1/3 e4 s4*1/3 b4 s4*1/3
  \stopStaff
}

\score {
  <<
    \new StaffGroup <<
      \new Staff \with {
    \consists "Timing_translator"
    \consists "Default_bar_line_engraver"
      }
      << \mainA >>
      \new Staff \with {
    \consists "Timing_translator"
    \consists "Default_bar_line_engraver"
      }
      << \mainB >>
    >>
    \\
    \new StaffGroup
    <<
      \new Staff \with {
    \consists "Timing_translator"
    \consists "Default_bar_line_engraver"
      }
      << \ossiaA >>
      \new Staff \with {
    \consists "Timing_translator"
    \consists "Default_bar_line_engraver"
      }
      << \ossiaB >>
    >>
  >>
    \header {}
    \layout {
    \context {
      \RemoveEmptyStaffContext
      \override VerticalAxisGroup #'remove-first = ##t
    }
    \context {
      \Score
      \remove "Timing_translator"
      \remove "Default_bar_line_engraver"
    }
  }
%  \midi {}
}


%%%%%%%% End Snippet %%%%%%%%%%%%

--
Ralph Palmer
Montague City, MA
USA
address@hidden

Attachment: test.pdf
Description: Adobe PDF document


reply via email to

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