]> git.donarmstrong.com Git - lilypond.git/commitdiff
Don't call Pitch::Pitch with more arguments than necessary.
authorDavid Kastrup <dak@gnu.org>
Tue, 24 Jun 2014 10:56:22 +0000 (12:56 +0200)
committerDavid Kastrup <dak@gnu.org>
Mon, 21 Jul 2014 07:36:44 +0000 (09:36 +0200)
lily/chord-name-engraver.cc
lily/drum-note-performer.cc
lily/key-engraver.cc
lily/key-performer.cc
lily/note-heads-engraver.cc
lily/parser.yy
lily/pitch-interval.cc

index 0cb0a7d8e417c0de8d501578dbac3b1079927d91..b4f1dd33be1384acb258619032f2a8bc80483544 100644 (file)
@@ -106,7 +106,7 @@ Chord_name_engraver::process_music ()
                   SCM oct = n->get_property ("octavation");
                   if (scm_is_number (oct))
                     {
-                      Pitch orig = unsmob_pitch (p)->transposed (Pitch (-scm_to_int (oct), 0, 0));
+                      Pitch orig = unsmob_pitch (p)->transposed (Pitch (-scm_to_int (oct), 0));
                       pitches = scm_cons (orig.smobbed_copy (), pitches);
                     }
                   else
index e3371a51c0e0c0fe69469b16988fba46c1a7a5c3..531c3dde3264a017beb05184df008940cdf0f52c 100644 (file)
@@ -81,7 +81,7 @@ Drum_note_performer::process_music ()
             }
 
           Audio_note *p = new Audio_note (*pit, len,
-                                          tie_event, Pitch (0, 0, 0), velocity);
+                                          tie_event, Pitch (0, 0), velocity);
           Audio_element_info info (p, n);
           announce_element (info);
         }
index 5b48b1d78afbdda9303407c2ee136b2ae11d7a2c..07324d230b58d2b0dbd36cc5d233be7d4d63f93f 100644 (file)
@@ -209,7 +209,7 @@ Key_engraver::initialize ()
   context ()->set_property ("keyAlterations", SCM_EOL);
   context ()->set_property ("lastKeyAlterations", SCM_EOL);
 
-  Pitch p (0, 0, 0);
+  Pitch p;
   context ()->set_property ("tonic", p.smobbed_copy ());
 }
 
index 9a3675fe3ad7c06cb3b46aaf0df9e1ea56c5068e..4fcd3f6fa69cd024e4acdc26120905e3041b99fa 100644 (file)
@@ -65,7 +65,7 @@ Key_performer::process_music ()
                     scm_to_int (scm_caar (pitchlist)),
                     ly_scm2rational (scm_cdar (pitchlist)));
 
-      Pitch c_do (0, 0, 0);
+      Pitch c_do;
 
       SCM c_pitchlist
         = ly_transpose_key_alist (pitchlist,
index 5caf42f221838eebbcd28fd7c5bd4d3c957f5a3a..2aec7501b57e5073d7dbb7277925d71d526ad48d 100644 (file)
@@ -99,7 +99,7 @@ Note_heads_engraver::process_music ()
       if (scm_is_vector (shape_vector))
         {
           SCM scm_tonic = get_property ("tonic");
-          Pitch tonic (0, 0, 0);
+          Pitch tonic;
           if (unsmob_pitch (scm_tonic))
             tonic = *unsmob_pitch (scm_tonic);
 
index 0c7b13da9b827c07039a4b3667c6cdd4991a22be..d47fa7ce10f9ede0263f7818df3b955a5083371b 100644 (file)
@@ -2886,7 +2886,7 @@ steno_pitch:
                 if (!scm_is_eq (SCM_INUM0, $2))
                 {
                         Pitch p = *unsmob_pitch ($1);
-                        p = p.transposed (Pitch (scm_to_int ($2),0,0));
+                        p = p.transposed (Pitch (scm_to_int ($2), 0));
                         $$ = p.smobbed_copy ();
                 }
        }
@@ -2901,7 +2901,7 @@ steno_tonic_pitch:
                 if (!scm_is_eq (SCM_INUM0, $2))
                 {
                         Pitch p = *unsmob_pitch ($1);
-                        p = p.transposed (Pitch (scm_to_int ($2),0,0));
+                        p = p.transposed (Pitch (scm_to_int ($2), 0));
                         $$ = p.smobbed_copy ();
                 }
        }
@@ -2913,7 +2913,7 @@ pitch:
                 if (!scm_is_eq (SCM_INUM0, $2))
                 {
                         Pitch p = *unsmob_pitch ($1);
-                        p = p.transposed (Pitch (scm_to_int ($2),0,0));
+                        p = p.transposed (Pitch (scm_to_int ($2), 0));
                         $$ = p.smobbed_copy ();
                 }
        }
index 110390441899b56a49f84c280af47990fb2fdd60..db5bae653b77b1049370247e30e22362f667a3eb 100644 (file)
@@ -29,8 +29,8 @@ Pitch_interval::Pitch_interval (Pitch p1, Pitch p2)
 
 Pitch_interval::Pitch_interval ()
 {
-  at (LEFT) = Pitch (100, 0, 0);
-  at (RIGHT) = Pitch (-100, 0, 0);
+  at (LEFT) = Pitch (100, 0);
+  at (RIGHT) = Pitch (-100, 0);
 }
 
 bool
@@ -64,8 +64,8 @@ Pitch_lexicographic_interval::Pitch_lexicographic_interval (Pitch p1, Pitch p2)
 
 Pitch_lexicographic_interval::Pitch_lexicographic_interval ()
 {
-  at (LEFT) = Pitch (100, 0, 0);
-  at (RIGHT) = Pitch (-100, 0, 0);
+  at (LEFT) = Pitch (100, 0);
+  at (RIGHT) = Pitch (-100, 0);
 }
 
 bool