[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hiding Staves with Lyrics
From: |
Robert Memering |
Subject: |
Hiding Staves with Lyrics |
Date: |
Sun, 30 Dec 2007 20:27:37 +0100 |
User-agent: |
KMail/1.9.5 |
Dear all,
I have the following problem:
When hiding staves via "\RemoveEmptyStaffContext" I
get unwanted barlines between the Lyrics.
Please find below a (somehow) minimal example where
the problem can be seen in the second line.
Thanks for any hints or solutions,
Robert
EXAMPLE:
---------------------------------------------
\version "2.11.34"
discantusprimusmusic =
\relative {
c1 c c c c c c c c c c c
c c c c c c c c c c c c
c c c c c c c c c
}
discantussecundusmusic =
\relative {
c1 c c c c c c c c c c c
c c c c c c c c c c c c
c c c c c c c c c
}
bassusmusic =
\relative {
c1 c c c c c c
R1 R1 R1 R1 R1 R1 R1 R1
R1 R1 R1 R1 R1 R1 R1 R1
c c c c c c c c c c
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
discantusprimuslyrics = \lyricmode {
la la la la la la la la la la la
la la la la la la la la la la la
la la la la la la la la la la la
}
discantussecunduslyrics = \lyricmode {
la la la la la la la la la la la
la la la la la la la la la la la
la la la la la la la la la la la
}
bassuslyrics = \lyricmode {
la la la la la la la la la la la
la la la la la la la la la la la
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
staffdiscantusprimus = \new Staff {
\set Staff.instrumentName = \markup{"Discantus Primus" \hspace #1 }
\set Staff.midiInstrument="violin"
\new Voice = "discantusprimus" \with {
\remove Forbid_line_break_engraver
}
\override NoteHead #'style = #'baroque
\discantusprimusmusic
}
staffdiscantussecundus = \new Staff {
\set Staff.instrumentName = \markup{"Discantus Secundus" \hspace #1 }
\set Staff.midiInstrument="violin"
\new Voice = "discantussecundus" \with {
\remove Forbid_line_break_engraver
}
\override NoteHead #'style = #'baroque
\discantussecundusmusic
}
staffbassus = \new Staff {
\set Staff.instrumentName = \markup{"Bassus" \hspace #1 }
\set Staff.midiInstrument="violin"
\new Voice = "bassus" \with {
\remove Forbid_line_break_engraver
}
\override NoteHead #'style = #'baroque
\bassusmusic
}
\score {
<<
\set Score.skipBars = ##t
\new StaffGroup <<
\staffdiscantusprimus
\new Lyrics \lyricsto discantusprimus { \discantusprimuslyrics }
\staffdiscantussecundus
\new Lyrics \lyricsto discantussecundus { \discantussecunduslyrics }
\staffbassus
>>
\new Lyrics \with {
\remove "Bar_engraver"
\remove "Separating_line_group_engraver"
}
\lyricsto bassus { \bassuslyrics }
>>
\layout {
indent = 2.5\cm
\context { \RemoveEmptyStaffContext }
\context { \Score
\override BarLine #'transparent = ##t
\override Slur #'transparent = ##t
}
\context { \Lyrics
\consists "Bar_engraver"
\consists "Separating_line_group_engraver"
\override BarLine #'transparent = ##f
}
}
}
\paper {
#(set-paper-size "a4")
line-width = 17.0\cm
top-margin = 1\cm
bottom-margin = 0.5\cm
foot-separation = 0\cm
head-separation = 0\cm
}
--
Robert Memering
Arbeitsbereich Linguistik, Universität Münster
Hüfferstraße 27, D-48149 Münster, Germany
Raum 01.85, Tel. +49-251-83-31958
http://santana.uni-muenster.de
- Hiding Staves with Lyrics,
Robert Memering <=