See the "Known issues and warnings" of section 5.1.4 "Changing default
context settings" in the Notation Reference.
If you really want to understand what happens, it may also help
to look at the definition of \RemoveEmptyStaffContext in the
file ly/engraver-init.ly.
/Mats
Roman Stawski wrote:
Hi everyone
It seems that if I create a new context based on the Voice context, it
won't play with \RemoveEmptyStaffContext at all. Try the snippet below
as is, and then uncomment the commented block. A warning is generated
and lyrics are no longer rendered. Any ideas on how to get this to
work?
- - - - - [START]
\version "2.11.60"
\layout { ragged-tight = ##t }
\layout {
\context {
\name MainVoice
\type "Engraver_group"
\alias Voice
\consists Grob_pq_engraver
\consists Note_heads_engraver
\consists Stem_engraver
}
\context {
\Staff
\accepts MainVoice
}
% If the block below is uncommented, then we get the error "warning: cannot
% find Voice `t'" and lyrics are not rendered.
%{
\context {
\RemoveEmptyStaffContext
}
%}
}
\score {
<<
\new Staff { \new MainVoice = "t" \relative c' { c4 d e f }}
\new Lyrics {\lyricsto "t" \lyricmode { Can you see me? }}
>>
}
- - - - - [END]
A secondary question is how to create a context that 'inherits' all
the engravers/performers in the context it aliases. In the above
example for instance, I'd like to add the \consists of the forty odd
components used by Voice without have to type them by hand, and
without needing to recheck them for every new version of Lilypond I
install.
Thanks for any help forthcoming
Roman
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user