lilypond-user
[Top][All Lists]
Advanced

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

Newly defined Voice context and RemoveEmptyStaffContext


From: Roman Stawski
Subject: Newly defined Voice context and RemoveEmptyStaffContext
Date: Fri, 21 Nov 2008 23:08:49 +0100
User-agent: Thunderbird 2.0.0.18 (Windows/20081105)

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





reply via email to

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