lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Two simultaneous events


From: Erlend Aasland
Subject: Two simultaneous events
Date: Tue, 7 Nov 2006 12:13:13 +0100

Hi Han-Wen,

With 2.9, translator.cc has begun to spit out a lot of warnings about "simultaneous events" (specially when you're creating a score and are using e.g. \new Staff << \partcombine \hnOne \hnTwo >> and both parts contain the same rehearsal marks and dynamic markings). Most of these warnings are harmless and just annoying. Can I apply this patch?

--- lily/translator.cc  3 Nov 2006 01:05:21 -0000       1.112
+++ lily/translator.cc  7 Nov 2006 11:05:50 -0000
@@ -6,6 +6,8 @@
   (c) 1997--2006 Han-Wen Nienhuys <address@hidden >
 */
 
+#include "main.hh"
+
 #include "translator.hh"
 
 #include "context-def.hh"
@@ -329,8 +331,11 @@
       ev_class.erase (0, strlen(prefix));
       replace_all (ev_class, '_', '-');
 
-      new_ev->origin ()->warning (_f ("Two simultaneous %s events, junking this one", ev_class.c_str ()));
-      (*old_ev)->origin ()->warning (_f ("Previous %s event here", ev_class.c_str ()));
+      if (be_verbose_global)
+       {
+         new_ev->origin ()->warning (_f ("Two simultaneous %s events, junking this one", ev_class.c_str ()));
+         (*old_ev)->origin ()->warning (_f ("Previous %s event here", ev_class.c_str ()));
+       }
       return false;
     }
   else


Erlend

reply via email to

[Prev in Thread] Current Thread [Next in Thread]