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