<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.lilypond.community/index.php?action=history&amp;feed=atom&amp;title=Bracketed_or_parenthesized_alternative_KeySignature</id>
	<title>Bracketed or parenthesized alternative KeySignature - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lilypond.community/index.php?action=history&amp;feed=atom&amp;title=Bracketed_or_parenthesized_alternative_KeySignature"/>
	<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Bracketed_or_parenthesized_alternative_KeySignature&amp;action=history"/>
	<updated>2026-05-10T04:09:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Bracketed_or_parenthesized_alternative_KeySignature&amp;diff=4174&amp;oldid=prev</id>
		<title>Lemzwerg: New category</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Bracketed_or_parenthesized_alternative_KeySignature&amp;diff=4174&amp;oldid=prev"/>
		<updated>2025-11-21T23:16:01Z</updated>

		<summary type="html">&lt;p&gt;New category&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:16, 21 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l147&quot;&gt;Line 147:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 147:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Tweaks and overrides]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Tweaks and overrides]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scheme]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scheme]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Specific notation]][[Category:Snippet]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Specific notation]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Snippet]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Lemzwerg</name></author>
	</entry>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Bracketed_or_parenthesized_alternative_KeySignature&amp;diff=3235&amp;oldid=prev</id>
		<title>Lemzwerg at 22:48, 21 November 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Bracketed_or_parenthesized_alternative_KeySignature&amp;diff=3235&amp;oldid=prev"/>
		<updated>2025-11-21T22:48:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:48, 21 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l147&quot;&gt;Line 147:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 147:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Tweaks and overrides]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Tweaks and overrides]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scheme]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Scheme]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Specific notation]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Specific notation&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]][[Category:Snippet&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Lemzwerg</name></author>
	</entry>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Bracketed_or_parenthesized_alternative_KeySignature&amp;diff=2197&amp;oldid=prev</id>
		<title>Jean Abou Samra: Replace version=&quot;2.24.0&quot; with version=&quot;2.24&quot; now that the LilyWiki extension supports auto-selecting the latest release in a stable series</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Bracketed_or_parenthesized_alternative_KeySignature&amp;diff=2197&amp;oldid=prev"/>
		<updated>2025-11-16T18:46:38Z</updated>

		<summary type="html">&lt;p&gt;Replace version=&amp;quot;2.24.0&amp;quot; with version=&amp;quot;2.24&amp;quot; now that the LilyWiki extension supports auto-selecting the latest release in a stable series&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:46, 16 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;- it&amp;#039;s not possible to use a different scale for the alternative key&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;- it&amp;#039;s not possible to use a different scale for the alternative key&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;lilypond version=&quot;2.24&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.0&lt;/del&gt;&quot; full&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;lilypond version=&quot;2.24&quot; full&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;\paper { tagline = ##f }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;\paper { tagline = ##f }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jean Abou Samra</name></author>
	</entry>
	<entry>
		<id>https://wiki.lilypond.community/index.php?title=Bracketed_or_parenthesized_alternative_KeySignature&amp;diff=954&amp;oldid=prev</id>
		<title>Jean Abou Samra: Import snippet from LSR</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Bracketed_or_parenthesized_alternative_KeySignature&amp;diff=954&amp;oldid=prev"/>
		<updated>2025-10-26T22:50:59Z</updated>

		<summary type="html">&lt;p&gt;Import snippet from LSR&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sometimes bracketed or parenthesized KeySignatures indicate an alternative key.&amp;lt;br /&amp;gt;&lt;br /&gt;
The here proposed alternativeKey-function tries to do so.&amp;lt;br /&amp;gt;&lt;br /&gt;
It takes three arguments: the tonic-pitch of the original key, the tonic-pitch of the alternative key and the scale. An optional argument is provided as well. It determines whether to use brackets or parentheses, possible settings are &amp;#039;bracketified (default) or &amp;#039;parenthesized. Other settings will issue a warning and the alternative KeySignature will be printed without any brackets or parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
Limitations&amp;lt;br /&amp;gt;&lt;br /&gt;
- works only for minor and major, other scales are not supported&amp;lt;br /&amp;gt;&lt;br /&gt;
- it&amp;#039;s not possible to use a different scale for the alternative key&lt;br /&gt;
&lt;br /&gt;
&amp;lt;lilypond version=&amp;quot;2.24.0&amp;quot; full&amp;gt;&lt;br /&gt;
\paper { tagline = ##f }&lt;br /&gt;
&lt;br /&gt;
#(define (key-alt-key-stencil p-1 p-2 scale-def bracket-style)&lt;br /&gt;
  (lambda (grob)&lt;br /&gt;
    (let* ((staff-space (ly:staff-symbol-staff-space grob))&lt;br /&gt;
           (th (ly:staff-symbol-line-thickness grob))&lt;br /&gt;
           (default-stil (ly:key-signature-interface::print grob))&lt;br /&gt;
           ;; a-minor and c-major don&amp;#039;t have a visible KeySignature&lt;br /&gt;
           ;; TODO: add support for other scales: ionian, locrian etc&lt;br /&gt;
           (no-visible-key?&lt;br /&gt;
             (lambda (p)&lt;br /&gt;
               (or (and (= (ly:pitch-notename p) 5)&lt;br /&gt;
                        (= (ly:pitch-alteration p) 0)&lt;br /&gt;
                        (eq? scale-def minor))&lt;br /&gt;
                   (and (= (ly:pitch-notename p) 0)&lt;br /&gt;
                        (= (ly:pitch-alteration p) 0)&lt;br /&gt;
                        (eq? scale-def major)))))&lt;br /&gt;
           (stil-to-add&lt;br /&gt;
             (if (no-visible-key? p-2)&lt;br /&gt;
                 #f&lt;br /&gt;
                 (grob-interpret-markup grob &lt;br /&gt;
                   #{&lt;br /&gt;
                     \markup&lt;br /&gt;
                       \score {&lt;br /&gt;
%% updaters remark: &lt;br /&gt;
%% 2.22. warns for a loney KeySignature, thus we insert s1*1/100000.&lt;br /&gt;
%% Otherwise an assertion error happens.&lt;br /&gt;
                         { \key $p-2 $scale-def s1*1/100000 }&lt;br /&gt;
                         \layout {&lt;br /&gt;
                           \omit Staff.TimeSignature&lt;br /&gt;
                           \omit Staff.Clef&lt;br /&gt;
                           \override Staff.StaffSymbol.line-count = #0&lt;br /&gt;
                           indent = 0&lt;br /&gt;
                         }&lt;br /&gt;
                     }&lt;br /&gt;
                   #}))))&lt;br /&gt;
      (if stil-to-add&lt;br /&gt;
          (let* ((stil-to-add-x-ext (ly:stencil-extent stil-to-add X))&lt;br /&gt;
                 (stil-to-add-y-ext (ly:stencil-extent stil-to-add Y))&lt;br /&gt;
                 (new-key-sig-stil&lt;br /&gt;
                   (ly:make-stencil&lt;br /&gt;
                     (ly:stencil-expr stil-to-add)&lt;br /&gt;
                     ;; left bracket is too far away, trimmed a little&lt;br /&gt;
                     (cons&lt;br /&gt;
                        (+ (car stil-to-add-x-ext) (* 0.7 staff-space))&lt;br /&gt;
                        (cdr stil-to-add-x-ext))&lt;br /&gt;
                     ;; adjusting the top and bottom ending of the bracket&lt;br /&gt;
                     (cons &lt;br /&gt;
                        (+ (car stil-to-add-y-ext) (* 0.2 staff-space)) &lt;br /&gt;
                        (- (cdr stil-to-add-y-ext) (* 0.5 staff-space)))))&lt;br /&gt;
                 (bracketified-stil&lt;br /&gt;
                   (cond ((eq? bracket-style &amp;#039;bracketified)&lt;br /&gt;
                          (apply bracketify-stencil &lt;br /&gt;
                                 (list &lt;br /&gt;
                                   ;; stil &lt;br /&gt;
                                   new-key-sig-stil &lt;br /&gt;
                                   ;; axis &lt;br /&gt;
                                   Y &lt;br /&gt;
                                   ;; thick &lt;br /&gt;
                                   th &lt;br /&gt;
                                   ;; protrusion &lt;br /&gt;
                                   (* 2.5 th) &lt;br /&gt;
                                   ;; padding&lt;br /&gt;
                                   th)))&lt;br /&gt;
                         ((eq? bracket-style &amp;#039;parenthesized)&lt;br /&gt;
                          (apply parenthesize-stencil &lt;br /&gt;
                                 (list &lt;br /&gt;
                                   ;; stencil &lt;br /&gt;
                                   new-key-sig-stil &lt;br /&gt;
                                   ;; half-thickness &lt;br /&gt;
                                   th &lt;br /&gt;
                                   ;; width &lt;br /&gt;
                                   (* 0.5 staff-space) &lt;br /&gt;
                                   ;; angularity &lt;br /&gt;
                                   (* 2.5 th) &lt;br /&gt;
                                   ;; padding&lt;br /&gt;
                                   th)))&lt;br /&gt;
                         (else&lt;br /&gt;
                           (ly:warning &amp;quot;Unknown bracket-style: ~a, ignoring&amp;quot;&lt;br /&gt;
                                       bracket-style)&lt;br /&gt;
                           new-key-sig-stil))))&lt;br /&gt;
          (if (no-visible-key? p-1)&lt;br /&gt;
              bracketified-stil&lt;br /&gt;
              (ly:stencil-combine-at-edge &lt;br /&gt;
                default-stil&lt;br /&gt;
                X&lt;br /&gt;
                RIGHT&lt;br /&gt;
                bracketified-stil&lt;br /&gt;
                staff-space)))&lt;br /&gt;
         default-stil))))&lt;br /&gt;
&lt;br /&gt;
alternativeKey =&lt;br /&gt;
#(define-music-function (style p1 p2 scale)&lt;br /&gt;
     ((symbol? &amp;#039;bracketified) ly:pitch? ly:pitch? number-pair-list?)&lt;br /&gt;
#{&lt;br /&gt;
  \override Staff.KeySignature.stencil =&lt;br /&gt;
   #(key-alt-key-stencil p1 p2 scale style)&lt;br /&gt;
  \key $p1 $scale&lt;br /&gt;
#})&lt;br /&gt;
&lt;br /&gt;
%%%%%%%%%%%%%%&lt;br /&gt;
% EXAMPLES&lt;br /&gt;
%%%%%%%%%%%%%%&lt;br /&gt;
%%{&lt;br /&gt;
\relative c&amp;#039; {&lt;br /&gt;
	\alternativeKey c f \major&lt;br /&gt;
	c1&lt;br /&gt;
	\alternativeKey b c \major&lt;br /&gt;
	c&lt;br /&gt;
	\alternativeKey e ees \major&lt;br /&gt;
	c&lt;br /&gt;
	\alternativeKey a aes \major&lt;br /&gt;
	c&lt;br /&gt;
	\alternativeKey #&amp;#039;parenthesized d des \major&lt;br /&gt;
	c&lt;br /&gt;
	\alternativeKey g ges \major&lt;br /&gt;
	c&lt;br /&gt;
	\alternativeKey c ces \major&lt;br /&gt;
	c&lt;br /&gt;
	\alternativeKey ges g \major&lt;br /&gt;
	c&lt;br /&gt;
	\alternativeKey des d \major&lt;br /&gt;
	c&lt;br /&gt;
        \alternativeKey aes a \major&lt;br /&gt;
        c&lt;br /&gt;
	\alternativeKey ees e \major&lt;br /&gt;
	c&lt;br /&gt;
	\alternativeKey bes b \major&lt;br /&gt;
	c&lt;br /&gt;
	\alternativeKey f fis \major&lt;br /&gt;
	c&lt;br /&gt;
	\alternativeKey ces cis \minor&lt;br /&gt;
	c&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/lilypond&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pitches]]&lt;br /&gt;
[[Category:Staff notation]]&lt;br /&gt;
[[Category:Tweaks and overrides]]&lt;br /&gt;
[[Category:Scheme]]&lt;br /&gt;
[[Category:Specific notation]]&lt;/div&gt;</summary>
		<author><name>Jean Abou Samra</name></author>
	</entry>
</feed>