How do you normally specify the key signature for a stave? Certainly not
within a \with{...}, right?
Just insert the \key e \minor before the first note:
...
\new Staff \with { ... }
{ \key e \minor e4 d f e }
...
/Mats
Nick Payne wrote:
How can I add a key signature to an ossia stave? In the example below, I get
an error if I uncomment either of the key signature lines in the ossia
staff.
%===========================================
\version "2.12.2"
\new Staff = main \relative c'' {
\key e \minor
c4 b d c
<<
{ c4 b d c }
\new Staff \with {
% \set Staff.keySignature = #`(((1 . 3) . ,SHARP))
% \key e \minor
\remove "Time_signature_engraver"
fontSize = #-3
\override StaffSymbol #'staff-space = #(magstep -3)
\override StaffSymbol #'thickness = #(magstep -3)
}
{ e4 d f e }
>>
c4 b c2
}
%===========================================
Nick Payne
_______________________________________________
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: mats.bengts...@ee.kth.se
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user