[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Parenthesized second key signature
From: |
Tyler Mitchell |
Subject: |
Parenthesized second key signature |
Date: |
Thu, 29 Nov 2018 00:56:00 -0800 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
I'm trying to figure out how to add a "parenthesized" second key
signature to my music, something like this:
https://www.ldx.ca/tmp/paren-key-1.png
I experimented with adding two \key commands one after the other,
but I get the error:
foo.ly:5:9: warning: Two simultaneous key-change events, junking this
one
The following comes somewhat close, though there's a bit of an
undesirable gap between the two key signatures; and I can't figure
out how to increase the size of the parentheses; and I have to use
the 'second' key signature throughout to avoid a lot of unneeded
accidentals; and I wouldn't be able to use a time signature, as it
would be stuck between these two key signatures.
\version "2.18.2"
\relative c'' {
\key a \major
\once\override NoteHead.stencil = ##f
\once\override Stem.stencil = ##f
a4
% Doesn't seem to have any effect:
\override ParenthesesItem.font-size = #5
\parenthesize
\key aes \major
aes4
}
\layout { \context { \Staff printKeyCancellation = ##f \remove
Time_signature_engraver } }
Any suggestions for how I should approach this?
A "stretch goal" would be to have accidentals handled automatically
in the same way, eg:
https://www.ldx.ca/tmp/paren-key-2.png
But this seems a bit more involved (and unneeded, at least
initially).
Many thanks,
Tyler