<?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=Force_unparenthesized_accidentals</id>
	<title>Force unparenthesized accidentals - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lilypond.community/index.php?action=history&amp;feed=atom&amp;title=Force_unparenthesized_accidentals"/>
	<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Force_unparenthesized_accidentals&amp;action=history"/>
	<updated>2026-06-17T07:42:13Z</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=Force_unparenthesized_accidentals&amp;diff=4790&amp;oldid=prev</id>
		<title>Lemzwerg: New category</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Force_unparenthesized_accidentals&amp;diff=4790&amp;oldid=prev"/>
		<updated>2025-11-21T23:32:28Z</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:32, 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-l188&quot;&gt;Line 188:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 188:&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:Pitches]]&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:Pitches]]&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:Chords]]&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:Chords]]&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:Tweaks and overrides]][[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:Tweaks and overrides]]&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=Force_unparenthesized_accidentals&amp;diff=3502&amp;oldid=prev</id>
		<title>Lemzwerg at 22:53, 21 November 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.lilypond.community/index.php?title=Force_unparenthesized_accidentals&amp;diff=3502&amp;oldid=prev"/>
		<updated>2025-11-21T22:53:13Z</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:53, 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-l188&quot;&gt;Line 188:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 188:&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:Pitches]]&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:Pitches]]&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:Chords]]&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:Chords]]&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:Tweaks and overrides]]&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:Tweaks and overrides&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=Force_unparenthesized_accidentals&amp;diff=2795&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=Force_unparenthesized_accidentals&amp;diff=2795&amp;oldid=prev"/>
		<updated>2025-11-16T18:55:02Z</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:55, 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-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&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;* Add an engraver that checks the force-accidental flag and then removes the parenthesis from the cautionary accidentals.&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;* Add an engraver that checks the force-accidental flag and then removes the parenthesis from the cautionary accidentals.&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;%% http://lsr.di.unimi.it/LSR/Item?id=874&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;%% http://lsr.di.unimi.it/LSR/Item?id=874&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=Force_unparenthesized_accidentals&amp;diff=834&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=Force_unparenthesized_accidentals&amp;diff=834&amp;oldid=prev"/>
		<updated>2025-10-26T22:48:50Z</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;If you want to force an accidental in all accidental styles, you will find situations where LilyPond places a (parenthesized) cautionary accidental instead. Here are three methods how to remove the parenthesis from selected cautionary accidentals, based on an example like this: &amp;lt;code&amp;gt;\partial 4 cis&amp;#039;&amp;#039;4( | c&amp;#039;&amp;#039;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Precede the pitch with a function call to set a before-line-breaking procedure. Since version 2.16.0 this works both within and outside of a chord definition.&lt;br /&gt;
* Define a before-line-breaking procedure for all cautionary accidentals, which removes the parenthesis only if the pitch got the ‘force-accidental’ flag by adding the ‘!’.&lt;br /&gt;
* Add an engraver that checks the force-accidental flag and then removes the parenthesis from the cautionary accidentals.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;lilypond version=&amp;quot;2.24.0&amp;quot; full&amp;gt;&lt;br /&gt;
%% http://lsr.di.unimi.it/LSR/Item?id=874&lt;br /&gt;
&lt;br /&gt;
%here starts the snippet:&lt;br /&gt;
&lt;br /&gt;
%% http://lsr.di.unimi.it/LSR/Item?id=874&lt;br /&gt;
&lt;br /&gt;
%by: ArnoldTheresius&lt;br /&gt;
%corrected 2013-03-12: make before-line-breaking procedure and engraver&lt;br /&gt;
%    work on pitches with &amp;#039;!&amp;#039;, but not with &amp;#039;?&amp;#039;&lt;br /&gt;
&lt;br /&gt;
%partial incompatible: Version &amp;quot;2.12.3&amp;quot;&lt;br /&gt;
&lt;br /&gt;
%%% Version 2.14.2 and below:&lt;br /&gt;
% modern = #(set-accidental-style &amp;#039;modern)&lt;br /&gt;
% modernCautionary = #(set-accidental-style &amp;#039;modern-cautionary)&lt;br /&gt;
&lt;br /&gt;
%%% Version 2.16.0 and above:&lt;br /&gt;
modern = \accidentalStyle modern&lt;br /&gt;
modernCautionary = \accidentalStyle modern-cautionary&lt;br /&gt;
&lt;br /&gt;
%%%% The LILYPOND Standard:&lt;br /&gt;
&lt;br /&gt;
\header { tagline = ##f }&lt;br /&gt;
&lt;br /&gt;
MusicI = {&lt;br /&gt;
  \key f \major&lt;br /&gt;
  cis&amp;#039;&amp;#039;4(&lt;br /&gt;
  c&amp;#039;&amp;#039;2) r8 \set doubleSlurs = ##t ges&amp;#039; &amp;lt;b&amp;#039; e&amp;#039;&amp;gt;4(&lt;br /&gt;
  &amp;lt;g&amp;#039; bes&amp;#039;&amp;gt;2.) \set doubleSlurs = ##f&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
\score {&lt;br /&gt;
  \new Staff {&lt;br /&gt;
    \partial 4&lt;br /&gt;
    s4*0^&amp;quot;modern:&amp;quot;&lt;br /&gt;
    \modern&lt;br /&gt;
    \MusicI&lt;br /&gt;
    \bar &amp;quot;||&amp;quot;&lt;br /&gt;
    s4*0^&amp;quot;modern-cautionary:&amp;quot;&lt;br /&gt;
    \modernCautionary&lt;br /&gt;
    \MusicI&lt;br /&gt;
    \bar &amp;quot;|.&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
  \header {&lt;br /&gt;
    piece = &amp;quot;LilyPond&amp;#039;s default result&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
%%%% Example 1:&lt;br /&gt;
&lt;br /&gt;
#(define (remove-parenthesis-from-accidental grob)&lt;br /&gt;
  (let ((accidental (ly:grob-object grob &amp;#039;accidental-grob)))&lt;br /&gt;
   (if (not (null? accidental))&lt;br /&gt;
    (ly:grob-set-property! accidental &amp;#039;parenthesized #f)&lt;br /&gt;
    (display &amp;quot; accidental-grob not found! &amp;quot;))))&lt;br /&gt;
&lt;br /&gt;
unparenthesizeAccidental = #(define-music-function (music) (ly:music?)&lt;br /&gt;
  (set! (ly:music-property music &amp;#039;tweaks)&lt;br /&gt;
   (acons &amp;#039;before-line-breaking remove-parenthesis-from-accidental&lt;br /&gt;
    (ly:music-property music &amp;#039;tweaks)))&lt;br /&gt;
  music)&lt;br /&gt;
&lt;br /&gt;
% With 2.16.1 you can define:&lt;br /&gt;
%{&lt;br /&gt;
unparenthesizeAccidental = #(define-music-function (music) (ly:music?)&lt;br /&gt;
#{&lt;br /&gt;
        \tweak before-line-breaking #remove-parenthesis-from-accidental&lt;br /&gt;
        $music&lt;br /&gt;
#})&lt;br /&gt;
%}&lt;br /&gt;
&lt;br /&gt;
MusicII = {&lt;br /&gt;
  \key f \major&lt;br /&gt;
  cis&amp;#039;&amp;#039;4(&lt;br /&gt;
  &amp;lt;\unparenthesizeAccidental c&amp;#039;&amp;#039;&amp;gt;2) r8 \set doubleSlurs = ##t ges&amp;#039; &amp;lt;b&amp;#039; e&amp;#039;&amp;gt;4(   %%% NOTE!&lt;br /&gt;
  &amp;lt;g&amp;#039; \unparenthesizeAccidental bes&amp;#039;&amp;gt;2.) \set doubleSlurs = ##f&lt;br /&gt;
}&lt;br /&gt;
%%% NOTE!&lt;br /&gt;
  % you need to put &amp;#039;\unparenthesizeAccidental&amp;#039; into a chord definition for version 2.14.2 and before,&lt;br /&gt;
  % e.g. &amp;#039;&amp;lt;\unparenthesizeAccidental c&amp;#039;&amp;#039;&amp;gt;2)&amp;#039; to make it work with version 2.14.2 and before&lt;br /&gt;
&lt;br /&gt;
\score {&lt;br /&gt;
  \new Staff {&lt;br /&gt;
    \partial 4&lt;br /&gt;
    s4*0^&amp;quot;modern:&amp;quot;&lt;br /&gt;
    \modern&lt;br /&gt;
    \MusicII&lt;br /&gt;
    \bar &amp;quot;||&amp;quot;&lt;br /&gt;
    s4*0^&amp;quot;modern-cautionary:&amp;quot;&lt;br /&gt;
    \modernCautionary&lt;br /&gt;
    \MusicII&lt;br /&gt;
    \bar &amp;quot;|.&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
  \header {&lt;br /&gt;
    piece = \markup \column {&lt;br /&gt;
      &amp;quot;preceding the critical notes/pitches with the user defined function \\unparenthesizeAccidental&amp;quot;&lt;br /&gt;
      &amp;quot;(before version 2.16.0 you had to put this command inside a chord!)&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
%%%% Example 2:&lt;br /&gt;
&lt;br /&gt;
MusicIII = {&lt;br /&gt;
  \key f \major&lt;br /&gt;
  % \partial 4&lt;br /&gt;
  cis&amp;#039;&amp;#039;4(&lt;br /&gt;
  c&amp;#039;&amp;#039;!2) r8 \set doubleSlurs = ##t ges&amp;#039; &amp;lt;b&amp;#039; e&amp;#039;&amp;gt;4(&lt;br /&gt;
  &amp;lt;g&amp;#039; bes&amp;#039;!&amp;gt;2.) \set doubleSlurs = ##f&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#(define (visit-cautionary-accidentals grob)&lt;br /&gt;
  (let*&lt;br /&gt;
   ((my-notehead-grob (ly:grob-property grob &amp;#039;cause))&lt;br /&gt;
    (my-notehead-prob (ly:grob-property my-notehead-grob &amp;#039;cause))&lt;br /&gt;
    (accidental-is-forced (and&lt;br /&gt;
      (ly:prob-property my-notehead-prob &amp;#039;force-accidental #f)&lt;br /&gt;
      (not (ly:prob-property my-notehead-prob &amp;#039;cautionary #f)))))&lt;br /&gt;
   (if accidental-is-forced (ly:grob-set-property! grob &amp;#039;parenthesized #f))))&lt;br /&gt;
&lt;br /&gt;
\score {&lt;br /&gt;
  \new Staff {&lt;br /&gt;
    \override AccidentalCautionary.before-line-breaking = #visit-cautionary-accidentals&lt;br /&gt;
    \partial 4&lt;br /&gt;
    s4*0^&amp;quot;modern:&amp;quot;&lt;br /&gt;
    \modern&lt;br /&gt;
    \MusicIII&lt;br /&gt;
    \bar &amp;quot;||&amp;quot;&lt;br /&gt;
    s4*0^&amp;quot;modern-cautionary:&amp;quot;&lt;br /&gt;
    \modernCautionary&lt;br /&gt;
    \MusicIII&lt;br /&gt;
    \bar &amp;quot;|.&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
  \header {&lt;br /&gt;
    piece = \markup \column {&lt;br /&gt;
      &amp;quot;remove all parenthesis from cautionary accidentals, if a »force« flag is found&amp;quot;&lt;br /&gt;
      &amp;quot;(Exlamation mark »!« after the pitch, and setting the user defined before-line-breaking procedure&amp;quot;&lt;br /&gt;
      &amp;quot;by »\\override AccidentalCautionary.before-line-breaking = #visit-cautionary-accidentals«)&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
%%%% Example 3:&lt;br /&gt;
% This will not run on version 2.12.3!&lt;br /&gt;
&lt;br /&gt;
#(define (Parenthesis_on_cautionary_accidentals_purger ctx)&lt;br /&gt;
    `((acknowledgers&lt;br /&gt;
       (accidental-interface&lt;br /&gt;
        . ,(lambda (trans grob source)&lt;br /&gt;
            (let ((grob-name (grob::name grob)))&lt;br /&gt;
             (if (equal? (symbol-&amp;gt;string grob-name) &amp;quot;AccidentalCautionary&amp;quot;)&lt;br /&gt;
              (let*&lt;br /&gt;
               ((my-notehead-grob (ly:grob-property grob &amp;#039;cause))&lt;br /&gt;
                (my-notehead-prob (ly:grob-property my-notehead-grob &amp;#039;cause))&lt;br /&gt;
                (accidental-is-forced (and&lt;br /&gt;
                  (ly:prob-property my-notehead-prob &amp;#039;force-accidental #f)&lt;br /&gt;
                  (not (ly:prob-property my-notehead-prob &amp;#039;cautionary #f)))))&lt;br /&gt;
               (if accidental-is-forced (ly:grob-set-property! grob &amp;#039;parenthesized #f))))))))))&lt;br /&gt;
&lt;br /&gt;
\score {&lt;br /&gt;
  \new Staff \with {&lt;br /&gt;
    \consists #Parenthesis_on_cautionary_accidentals_purger&lt;br /&gt;
  } {&lt;br /&gt;
    \partial 4&lt;br /&gt;
    s4*0^&amp;quot;modern:&amp;quot;&lt;br /&gt;
    \modern&lt;br /&gt;
    \MusicIII&lt;br /&gt;
    \bar &amp;quot;||&amp;quot;&lt;br /&gt;
    s4*0^&amp;quot;modern-cautionary:&amp;quot;&lt;br /&gt;
    \modernCautionary&lt;br /&gt;
    \MusicIII&lt;br /&gt;
    \bar &amp;quot;|.&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
  \header {&lt;br /&gt;
    piece = &amp;quot;remove all parenthesis from cautionary accidentals by an engraver, if a »force« flag is found&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/lilypond&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Pitches]]&lt;br /&gt;
[[Category:Pitches]]&lt;br /&gt;
[[Category:Chords]]&lt;br /&gt;
[[Category:Tweaks and overrides]]&lt;/div&gt;</summary>
		<author><name>Jean Abou Samra</name></author>
	</entry>
</feed>