]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/suppressing-warnings-for-clashing-note-columns.ly
Makelsr.py run
[lilypond.git] / Documentation / snippets / suppressing-warnings-for-clashing-note-columns.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.19.14
8 \version "2.19.14"
9
10 \header {
11   lsrtags = "simultaneous-notes, tweaks-and-overrides"
12
13   texidoc = "
14 If notes from two voices with stems in the same direction are placed at
15 the same position, but the voices have no voice-specific shifts
16 specified, the error message @samp{warning: ignoring too many clashing
17 note columns} will appear when compiling the LilyPond file.  This
18 message can be suppressed by setting the @code{'ignore-collision}
19 property of the @code{NoteColumn} object to @code{#t}. Please note that
20 this does not just suppress warnings  but stops LilyPond trying to
21 resolve collisions at all and so may have  unintended results unless
22 used with care.
23 "
24   doctitle = "Suppressing warnings for clashing note columns"
25 } % begin verbatim
26
27
28 ignore = \override NoteColumn.ignore-collision = ##t
29
30 \relative c' {
31   \new Staff <<
32     \new Voice{ \ignore \stemDown f2 g }
33     \new Voice{ c2 \stemDown c, }
34   >>
35 }