On 2009-09-08, at 15:25 , Kieren MacMillan wrote:

It would be so much easier to be able to force "inheritance" of everything, e.g.

 \context {
   \name "MyStaff"
   \from "Staff"
   instrumentName = #"MyStaff"
   shortInstrumentName = #"My"
 }

Is there anything like this? (From what I've read and experienced, \alias does *NOT* do this.)

I might have done something like that in the recent past. Does the following help? SoloVoice is a kind of Voice. UpperVoice and LowerVoice are kinds of SoloVoice.

\context
{
  \Staff
  \override TimeSignature #'style = #'numbered

  \accepts "SoloVoice"

  \accepts "UpperVoice"
  \accepts "LowerVoice"
}

\context
{
  \Voice
  \name SoloVoice
  \alias Voice
%% @todo 2.12.2 is crashing with a bus error in ambitus engraving
%  \consists "Ambitus_engraver"
}

\context
{
  \SoloVoice
  \name UpperVoice
  \alias Voice

%% @todo 2.12.2 is crashing with a bus error in ambitus engraving
%  \consists "Ambitus_engraver"
}

\context
{
  \SoloVoice
  \name LowerVoice
  \alias Voice

%% @todo 2.12.2 is crashing with a bus error in ambitus engraving
%  \consists "Ambitus_engraver"
  \override Ambitus #'X-offset = #3.0
}

Regards,
--
Dan



_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to