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 <[EMAIL PROTECTED] >
 */
 
+#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
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to