Jump to content

Preventing extra naturals from being automatically added: Difference between revisions

From LilyPond wiki
m New category
Tags: Mobile edit Mobile web edit
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
In accordance with traditional typesetting rules, a natural sign is printed before a sharp or flat if a previous double sharp or flat on the same note is canceled. To change this behavior to contemporary practice, set the <code>extraNatural</code> property to <code>f</code> in the <code>Staff</code> context.
In accordance with traditional typesetting rules, a natural sign is printed before a sharp or flat if a previous double sharp or flat on the same note is canceled. To change this behavior to contemporary practice, set the <code>extraNatural</code> property to <code>#f</code> in the <code>Staff</code> context.


<lilypond version="2.24">
<lilypond version="2.24">
Line 9: Line 9:
</lilypond>
</lilypond>


[[Category:Automatic notation]]
[[Category:Pitches]]
[[Category:Pitches]]
[[Category:Automatic notation]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]
[[Category:Snippet]]

Latest revision as of 19:10, 16 December 2025

In accordance with traditional typesetting rules, a natural sign is printed before a sharp or flat if a previous double sharp or flat on the same note is canceled. To change this behavior to contemporary practice, set the extraNatural property to #f in the Staff context.

\version "2.24"

\relative c'' {
  aeses4 aes ais a
  \set Staff.extraNatural = ##f
  aeses4 aes ais a
}