]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.2.7
authorfred <fred>
Tue, 26 Mar 2002 22:25:51 +0000 (22:25 +0000)
committerfred <fred>
Tue, 26 Mar 2002 22:25:51 +0000 (22:25 +0000)
12 files changed:
lily/bezier.cc
lily/bow.cc
lily/global-translator.cc
lily/midi-item.cc
lily/midi-stream.cc
lily/my-lily-lexer.cc
lily/my-lily-parser.cc
lily/paper-outputter.cc
lily/score-element.cc
lily/scores.cc
make/mutopia-rules.make
scripts/ly2dvi.py

index 1e78566783d4a18cbb9a821b83e7af142ba6d593..a73576cfd1022c086cb799ec648e116883e9ea4c 100644 (file)
@@ -16,7 +16,7 @@
 #include "paper-def.hh"
 #include "debug.hh"
 #include "main.hh"
-#define BEZIER_BOW_DOUT if (check_debug && !monitor->silent_b ("Bezier_bow")) cout
+#define BEZIER_BOW_DOUT if (check_debug && !lily_monitor->silent_b ("Bezier_bow")) cout
 #else
 #define BEZIER_BOW_DOUT cerr
 #endif
 
  */
 
+
+/*
+  UGH. Clean up debugging junk.
+  */
+
+
 void
 Curve::flipy ()
 {
@@ -99,7 +105,7 @@ void
 Bezier::print () const
 {
 #ifndef NPRINT
-  if (check_debug && !monitor->silent_b ("Bezier_controls"))
+  if (check_debug && !lily_monitor->silent_b ("Bezier_controls"))
     {
       if (control_[1].length ())
         {
@@ -240,9 +246,9 @@ void
 Bezier_bow::calc ()
 {
 #ifndef NPRINT
-//  if (check_debug && !monitor->silent_b ("Bezier_bow_controls"))
-  if (check_debug && !(monitor->silent_b ("Bezier_controls")
-    && monitor->silent_b ("Bezier_bow_controls")))
+//  if (check_debug && !lily_monitor->silent_b ("Bezier_bow_controls"))
+  if (check_debug && !(lily_monitor->silent_b ("Bezier_controls")
+    && lily_monitor->silent_b ("Bezier_bow_controls")))
     {
       cout << "Before transform*********\n";
       print ();
@@ -269,9 +275,9 @@ Bezier_bow::calc ()
   print ();
   transform_back ();
 #ifndef NPRINT
-//  if (check_debug && !monitor->silent_b ("Bezier_bow_controls"))
-  if (check_debug && !(monitor->silent_b ("Bezier_controls")
-    && monitor->silent_b ("Bezier_bow_controls")))
+//  if (check_debug && !lily_monitor->silent_b ("Bezier_bow_controls"))
+  if (check_debug && !(lily_monitor->silent_b ("Bezier_controls")
+    && lily_monitor->silent_b ("Bezier_bow_controls")))
     {
       cout << "After transform*********\n";
       print ();
@@ -544,7 +550,7 @@ Bezier_bow::print () const
 {
 #ifndef NPRINT
   Bezier::print ();
-  if (check_debug && !monitor->silent_b ("Bezier_bow_controls"))
+  if (check_debug && !lily_monitor->silent_b ("Bezier_bow_controls"))
     {
       cout << "Bezier_bow\n";
       cout << "Encompass: ";
index a72e2fe4337ef56dc0108e3427799e46c43744e6..f3c4e59eeb638649971f9c386b04899fedc560c9 100644 (file)
@@ -26,7 +26,7 @@ Bow::do_brew_molecule_p () const
 {
   Real thick = paper_l ()->get_var ("slur_thickness");
   Array<Offset> c = get_controls ();
-  Real dy = c[3].y () - c[0].y ();
+
   Molecule a;
 
   SCM d =  get_elt_property (dashed_scm_sym);
@@ -35,17 +35,6 @@ Bow::do_brew_molecule_p () const
   else
     a = lookup_l ()->dashed_slur (c, thick, gh_scm2int (SCM_CDR(d)));
 
-  if (check_debug && !monitor->silent_b ("Bow"))
-    {
-      static int i = 1;
-      cout << "******" << i++ << "******" << endl;
-      cout << "c0.y: " << c[0].y () << endl;
-      cout << "c3.y: " << c[3].y () << endl;
-      cout << "dy: " << dy << endl;
-      cout << "dy_f_l: " << dy_f_drul_[LEFT] << endl;
-      cout << "dy_f_r: " << dy_f_drul_[RIGHT] << endl;
-      cout << "dy_f: " << dy_f_drul_[RIGHT] - dy_f_drul_[LEFT] << endl;
-    }
   return new Molecule (a); 
 }
 
index aa7178f0796d50ff6fae54f2c3c49686e86571f2..8afb5771604035d7b0c324419e19567c87eb9b01 100644 (file)
@@ -86,14 +86,14 @@ Global_translator::run_iterator_on_me (Music_iterator * iter)
        {
          w = iter->next_moment();
          DOUT << "proccing: " << w << '\n';
-         if (!monitor->silent_b ("walking"))
+         if (!lily_monitor->silent_b ("walking"))
            iter->print();
        }
       
       modify_next (w);
       prepare (w);
       
-      if (!monitor->silent_b ("walking"))
+      if (!lily_monitor->silent_b ("walking"))
        print();
 
       iter->process_and_next (w);
index 39883f8328e138f2b9065dbf32a4f2d5d3c8f5ce..8301c8a5bcf2e76de9606b039c8595300291141b 100644 (file)
@@ -544,12 +544,12 @@ String
 Midi_track::data_str () const
 {
   String str = Midi_chunk::data_str ();
-  if (check_debug && !monitor->silent_b ("Midistrings"))
+  if (check_debug && !lily_monitor->silent_b ("Midistrings"))
     str += "\n";
   for (Cons<Midi_event> *i=event_p_list_.head_; i; i = i->next_) 
     {
       str += i->car_->str ();
-      if (check_debug && !monitor->silent_b ("Midistrings"))
+      if (check_debug && !lily_monitor->silent_b ("Midistrings"))
         str += "\n";
     }
   return str;
index ba8f161a9501117bec2384e53d21b48d0bbaf458..373d49569a284de16bf70e84a1625c6ec7ba1719 100644 (file)
@@ -44,7 +44,7 @@ Midi_stream::operator << (Midi_item const& midi_c_r)
 {
 //    *this <<midi_c_r.str (); 
   String str = midi_c_r.str ();
-  if (check_debug && !monitor->silent_b ("Midistrings")) 
+  if (check_debug && !lily_monitor->silent_b ("Midistrings")) 
     {
     str = String_convert::bin2hex_str (str) + "\n";
     // ugh, should have separate debugging output with Midi*::print routines
index 2bf4d1120c6d7f7ac7638ec60efc353fa8e297a0..c1051d60191501cc9cc7ccf7af1e4a28b2f17370 100644 (file)
@@ -109,9 +109,9 @@ My_lily_lexer::lookup_identifier (String s)
 void
 My_lily_lexer::start_main_input ()
 {  
-  if (!monitor->silent_b ("InitDeclarations") && check_debug)
+  if (!lily_monitor->silent_b ("InitDeclarations") && check_debug)
     print_declarations (true);
-  if (!monitor->silent_b ("InitLexer") && check_debug)
+  if (!lily_monitor->silent_b ("InitLexer") && check_debug)
     set_debug (1);
 
 
index 61f52df13f685ad3e918013746b58ff900e59f1a..de8b7c66bd03ee99646ecb4ae7996f04073460bf 100644 (file)
@@ -60,7 +60,7 @@ My_lily_parser::parse_file (String init, String s)
   *mlog << _ ("Parsing...");
 
   init_parse_b_ = false;
-  set_yydebug (!monitor->silent_b ("Parser") && check_debug);
+  set_yydebug (!lily_monitor->silent_b ("Parser") && check_debug);
   lexer_p_->new_input (init, source_l_);
   do_yyparse ();
 
index 07fe0330b9869d9c18bab60a0b63aaf0eb88e603..e0565ab7b0d680951e494b8e7074d0f909b3e614 100644 (file)
@@ -85,7 +85,7 @@ Paper_outputter::output_header ()
 
 #ifndef NPRINT
   DOUT << "output_header\n";
-  if (check_debug && !monitor->silent_b ("Guile"))
+  if (check_debug && !lily_monitor->silent_b ("Guile"))
     {
       gh_display (args_scm); gh_newline ();
     }
index 2dab6212bcbf1d4d6445a71d04857c5846148211..d8f254175c2559553adeacb10cc93577e26f59eb 100644 (file)
@@ -138,7 +138,7 @@ Score_element::print() const
 {
 #ifndef NPRINT
   DOUT << classname(this) << "{\n";
-  if (check_debug && !monitor->silent_b ("Score_element"))
+  if (check_debug && !lily_monitor->silent_b ("Score_element"))
     ly_display_scm (element_property_alist_);
   DOUT << "dependencies: " << dependency_size();
   if (original_l_)
index 5d97d4fef5762293a8ad726ec83571ad8dfa3958..23f85ce5bcc3911201030742c15efeeb0920601f 100644 (file)
@@ -81,7 +81,7 @@ do_scores()
        }
       else
        {
-         if (!monitor->silent_b ("do_scores"))
+         if (!lily_monitor->silent_b ("do_scores"))
              is_p->print ();
          is_p->process();
        }
index e27626f40c93850d67d75025d94c84940792d8b6..8fbb0c1d9698005763b7f4cc1794118101e43ebe 100644 (file)
@@ -26,7 +26,7 @@ $(outdir)/%.ly: %.abc
 $(outdir)/%.dvi: $(outdir)/%.ly
        $(PYTHON) $(depth)/scripts/ly2dvi.py -o $(outdir)  $< 
        -mv $(basename $(<F)).midi $(outdir)
-       
+
 # don't junk intermediate .dvi files.  They're easier to view than
 # .ps or .gif
 .PRECIOUS: $(outdir)/%.dvi
index d3999a9834d10b638979251d40b787654f9c8366..e0682e5b23ac34f5564cfca6ad623d0e622307e7 100644 (file)
@@ -1,5 +1,8 @@
 #!@PYTHON@
 
+
+# TODO: Rewrite this.  The control structure is too hairy.
+
 """
 =======================================================================
 LilyPond to dvi converter
@@ -468,7 +471,8 @@ class Properties:
         if os.environ.has_key('TMP'):
             this.__set('tmp',os.environ['TMP'],'environment')
 
-        
+
+    def read_titledefs (this):
        fd=this.get_texfile_path ('titledefs.tex')
         mudefs=[]    
 
@@ -953,7 +957,7 @@ def identify ():
     sys.stderr.write (program_id () + '\n')
 
 def print_version ():
-    sys.stdout.write (program_id ())
+    sys.stdout.write (program_id () + '\n')
 
 def help ():
     sys.stdout.write (
@@ -1046,7 +1050,8 @@ def main():
            return 0
            
     identify()
-           
+    Props.read_titledefs ()
+    
     if len(files):
         for file in files:
             infile.open(file)