]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/suppressing-warnings-for-clashing-note-columns.ly
Makelsr.py run
[lilypond.git] / Documentation / snippets / suppressing-warnings-for-clashing-note-columns.ly
index 0ecae8edd5560507be14ac459186822006d4886e..ec7f763945d507c507ebbad29f264f1310180267 100644 (file)
@@ -1,17 +1,18 @@
-%% DO NOT EDIT this file manually; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
-%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
-%% and then run scripts/auxiliar/makelsr.py
-%%
-%% This file is in the public domain.
-\version "2.17.6"
+% DO NOT EDIT this file manually; it is automatically
+% generated from Documentation/snippets/new
+% Make any changes in Documentation/snippets/new/
+% and then run scripts/auxiliar/makelsr.py
+%
+% This file is in the public domain.
+%% Note: this file works from version 2.19.14
+\version "2.19.14"
 
 \header {
   lsrtags = "simultaneous-notes, tweaks-and-overrides"
 
   texidoc = "
 If notes from two voices with stems in the same direction are placed at
 
 \header {
   lsrtags = "simultaneous-notes, tweaks-and-overrides"
 
   texidoc = "
 If notes from two voices with stems in the same direction are placed at
-the same position, and both voices have no shift or the same shift
+the same position, but the voices have no voice-specific shifts
 specified, the error message @samp{warning: ignoring too many clashing
 note columns} will appear when compiling the LilyPond file.  This
 message can be suppressed by setting the @code{'ignore-collision}
 specified, the error message @samp{warning: ignoring too many clashing
 note columns} will appear when compiling the LilyPond file.  This
 message can be suppressed by setting the @code{'ignore-collision}
@@ -19,7 +20,6 @@ property of the @code{NoteColumn} object to @code{#t}. Please note that
 this does not just suppress warnings  but stops LilyPond trying to
 resolve collisions at all and so may have  unintended results unless
 used with care.
 this does not just suppress warnings  but stops LilyPond trying to
 resolve collisions at all and so may have  unintended results unless
 used with care.
-
 "
   doctitle = "Suppressing warnings for clashing note columns"
 } % begin verbatim
 "
   doctitle = "Suppressing warnings for clashing note columns"
 } % begin verbatim
@@ -28,10 +28,8 @@ used with care.
 ignore = \override NoteColumn.ignore-collision = ##t
 
 \relative c' {
 ignore = \override NoteColumn.ignore-collision = ##t
 
 \relative c' {
-  <<
-    \ignore
-    { \stemDown f2 g }
-    \\
-    { c2 c, }
+  \new Staff <<
+    \new Voice{ \ignore \stemDown f2 g }
+    \new Voice{ c2 \stemDown c, }
   >>
 }
   >>
 }