2009/9/8 Kieren MacMillan <[email protected]>:
> Is there anything like this? (From what I've read and experienced, \alias
> does *NOT* do this.)
Have you looked at engraver-init.ly? It should give you an idea how
this works (see the definition for PianoStaff).
Here's a quick snippet which also demonstrates what \alias does:
\score {
<<
\new Staff \relative c' {
c4 d e f
}
\new BlueStave \relative c' {
% this works because we've made BlueStave an alias of Staff
\override Staff.Clef #'color = #blue
c4 d e f
}
>>
\layout {
\context {
\Staff
\name "BlueStave"
\alias "Staff"
\override StaffSymbol #'color = #blue
}
\context {
\Score
\accepts "BlueStave"
}
}
}
Regards,
Neil
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user