On Fri, Jul 27, 2007 at 09:33:38AM +0200, Tao Cumplido wrote:
> The thing here is that you split your parts and in the score
> block you create two piano staves whereas one is completely
> sufficient.
> the time signature appears because the staff with the melody line
> begins after the line break.
> you have to add rests like R1*4 to your melody line and let it
> begin at the same time the piano intro does and reduce your score
> block to one PianoStaff.
> And then add the command I suggested earlier and first system
> will only show the piano intro.
Aha! That works, but not quite as you described. I had to use "s"
rests, otherwise the unwanted staff line still showed up.
After converting to the standard "one piano staff", the melody
line looks like this:
melody = \relative c'' {
\clef treble
\key g \major
\override Score.VerticalAxisGroup #'remove-first = ##t
s1 | s1 | s1 | s1 |
\break
d,8\mf e fis g fis e d e |
}
The two sections in the score was a hack because I couldn't get
RemoveEmptyStaffContext working last year when I first needed this
feature. For a while I was using two score {} blocks and not
getting this problem, but MIDI output only worked for the second
section, the measure numbers got reset, and I could see it was
making things unnecessarily complex.
Thanks so much for your help!
-- Ed
\paper {
% line-width = 195 \mm
indent = 0.0\mm
ragged-right = ##f
% use low values to maximize systems per page
% between-system-padding = 1\mm
% between-system-space = 1\mm
foot-separation = 5\mm
page-top-space = 2\mm
head-separation = 2\mm
% top-margin = 4\mm
% bottom-margin = 4\mm
next-padding = 1.5\mm
% before-title-space = 13\mm
after-title-space = 2\mm
% for debugging spacing issues
% annotate-spacing = ##t
}
\header {
title = "Problem Solved"
composer = "now it works"
piece = "Moderato"
copyright= "Copyright (c) 2007 by Ed Ravin"
}
\version "2.10.10"
upper = \relative c'' {
\clef treble
\key g \major
% \time 2/2
% intro
<< { b4 a g a } \\ { <c, e>1 } >> |
<< { b'4 a g a } \\ { <c, ees>1 } >> |
<b d g >1 ~ |
<b d g>1 \bar "||"
% verse
<< { d8 e fis g fis e d e } \\ { b1 } >> |
}
lower = \relative c' {
\clef bass
\key g \major
% \time 2/2
%intro
<a, e' g>1 | <a ees' g>1 | <g g'>2 <d d'>2 |
#(set-octavation -1)
g,1
#(set-octavation 0)
\bar "||"
%verse
<< { d''8 e fis g fis e d e } \\ { g,1 } >> |
}
melody = \relative c'' {
\clef treble
\key g \major
% \time 2/2
\override Score.VerticalAxisGroup #'remove-first = ##t
% silent during intro
s1 | s1 | s1 | s1 |
\break
% verse begins
d,8\mf e fis g fis e d e |
}
text = \lyricmode {
I could talk for ho -- urs gi -- ving pro and con,
}
\score {
{
<<
\new Staff = "singer"
<<
\new Voice = "vocal" {
\autoBeamOff
\melody
}
>>
\new Lyrics \lyricsto vocal \new Lyrics { \text }
\new PianoStaff = "piano" <<
#(set-accidental-style 'piano)
\new Staff = "upper" { \upper }
\new Staff = "lower" { \lower }
>>
>>
}
\layout {
\context { \RemoveEmptyStaffContext }
\context {
\Score
\remove "Bar_number_engraver"
}
}
}
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user