Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(869)

Unified Diff: ly/engraver-init.ly

Issue 117050043: Simplify the NullVoice context
Patch Set: supress accidentals correctly, using a property of NullVoice Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lily/note-head.cc ('k') | ly/performer-init.ly » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ly/engraver-init.ly
diff --git a/ly/engraver-init.ly b/ly/engraver-init.ly
index b904935f43ce3769f7cd62a89bd14d89c14ae1c8..18cc463f9fd75a8a6fcb457502e8e1e7250cbaa0 100644
--- a/ly/engraver-init.ly
+++ b/ly/engraver-init.ly
@@ -99,6 +99,7 @@
\defaultchild "Voice"
\accepts "Voice"
\accepts "CueVoice"
+ \accepts "NullVoice"
\description "Handles clefs, bar lines, keys, accidentals. It can contain
@code{Voice} contexts."
@@ -785,9 +786,12 @@ context."
\override NoteHead.X-extent = #(lambda (g)
(ly:stencil-extent (ly:note-head::print g) X))
- \omit Accidental
- \omit AccidentalCautionary
- \omit AccidentalSuggestion
+ % generate no accidentals
+ nullAccidentals = ##t
+
+ %% keep noteheads inside the staff
+ \consists "Pitch_squash_engraver"
+ squashedPosition = 0
% the engravers that control the 'busy' flags for note-onsets and melismata
\consists "Grob_pq_engraver"
« no previous file with comments | « lily/note-head.cc ('k') | ly/performer-init.ly » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b