]> git.donarmstrong.com Git - lilypond.git/commitdiff
*** empty log message ***
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 9 Dec 2004 00:16:45 +0000 (00:16 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 9 Dec 2004 00:16:45 +0000 (00:16 +0000)
162 files changed:
lily/accidental-engraver.cc
lily/accidental-placement.cc
lily/afm.cc
lily/align-interface.cc
lily/arpeggio.cc
lily/audio-item.cc
lily/auto-beam-engraver.cc
lily/axis-group-engraver.cc
lily/axis-group-interface.cc
lily/bar-check-iterator.cc
lily/bar-line.cc
lily/beam-concave.cc
lily/beam-engraver.cc
lily/beam-performer.cc
lily/beam-quanting.cc
lily/beam.cc
lily/beaming-info.cc
lily/bezier.cc
lily/box.cc
lily/break-align-engraver.cc
lily/break-align-interface.cc
lily/break-substitution.cc
lily/chord-name-engraver.cc
lily/clef-engraver.cc
lily/cluster-engraver.cc
lily/cluster.cc
lily/coherent-ligature-engraver.cc
lily/collision-engraver.cc
lily/completion-note-heads-engraver.cc
lily/context-def.cc
lily/context-handle.cc
lily/context-scheme.cc
lily/context.cc
lily/directional-element-interface.cc
lily/dot-column.cc
lily/drum-note-engraver.cc
lily/drum-note-performer.cc
lily/dynamic-text-spanner.cc
lily/engraver-group-engraver.cc
lily/event.cc
lily/fingering-engraver.cc
lily/global-context.cc
lily/global-ctor.cc
lily/gourlay-breaking.cc
lily/grace-iterator.cc
lily/grob-interface.cc
lily/grob-pq-engraver.cc
lily/grob.cc
lily/hairpin.cc
lily/include/audio-item.hh
lily/include/break-algorithm.hh
lily/include/grace-fixup.hh
lily/include/grob.hh
lily/include/stream.hh
lily/include/tfm.hh
lily/include/translator.hh
lily/input.cc
lily/item.cc
lily/key-signature-interface.cc
lily/least-squares.cc
lily/ledger-line-engraver.cc
lily/lexer.ll
lily/lily-guile.cc
lily/lily-lexer.cc
lily/lily-parser.cc
lily/line-spanner.cc
lily/lookup.cc
lily/ly-module.cc
lily/lyric-combine-music-iterator.cc
lily/lyric-hyphen.cc
lily/main.cc
lily/measure-grouping-engraver.cc
lily/metronome-engraver.cc
lily/midi-item.cc
lily/midi-walker.cc
lily/misc.cc
lily/moment.cc
lily/multi-measure-rest-engraver.cc
lily/multi-measure-rest.cc
lily/music-sequence.cc
lily/new-fingering-engraver.cc
lily/new-lyric-combine-music-iterator.cc
lily/note-collision.cc
lily/note-column.cc
lily/note-heads-engraver.cc
lily/note-name-engraver.cc
lily/note-performer.cc
lily/note-spacing.cc
lily/ottava-bracket.cc
lily/ottava-engraver.cc
lily/output-def.cc
lily/output-property-engraver.cc
lily/parse-scm.cc
lily/parser.yy
lily/part-combine-engraver.cc
lily/percent-repeat-engraver.cc
lily/percent-repeat-iterator.cc
lily/performance.cc
lily/performer.cc
lily/phrasing-slur-engraver.cc
lily/piano-pedal-engraver.cc
lily/piano-pedal-performer.cc
lily/pitch.cc
lily/property-iterator.cc
lily/protected-scm.cc
lily/rest-collision-engraver.cc
lily/rest-collision.cc
lily/rest-engraver.cc
lily/rhythmic-column-engraver.cc
lily/rod.cc
lily/score-performer.cc
lily/score.cc
lily/script-column-engraver.cc
lily/script-interface.cc
lily/self-aligment-interface.cc
lily/separating-group-spanner.cc
lily/separating-line-group-engraver.cc
lily/sequential-iterator.cc
lily/side-position-interface.cc
lily/simple-spacer.cc
lily/simultaneous-music-iterator.cc
lily/slash-repeat-engraver.cc
lily/slur-configuration.cc
lily/slur-engraver.cc
lily/slur-performer.cc
lily/slur-scoring.cc
lily/slur.cc
lily/source-file.cc
lily/source.cc
lily/spacing-engraver.cc
lily/spacing-spanner.cc
lily/span-arpeggio-engraver.cc
lily/span-bar-engraver.cc
lily/span-bar.cc
lily/span-dynamic-performer.cc
lily/spanner.cc
lily/spring-smob.cc
lily/staff-spacing.cc
lily/staff-symbol.cc
lily/stanza-number-align-engraver.cc
lily/stem.cc
lily/stencil-scheme.cc
lily/system-start-delimiter-engraver.cc
lily/system-start-delimiter.cc
lily/system.cc
lily/tab-note-heads-engraver.cc
lily/text-engraver.cc
lily/text-spanner.cc
lily/tfm-reader.cc
lily/tie-column.cc
lily/tie-engraver.cc
lily/tie.cc
lily/timing-translator.cc
lily/translator-ctors.cc
lily/translator-group.cc
lily/tuplet-bracket.cc
lily/tuplet-engraver.cc
lily/unfolded-repeat-iterator.cc
lily/vaticana-ligature-engraver.cc
lily/virtual-font-metric.cc
lily/volta-bracket.cc
lily/volta-engraver.cc

index f4bbbd21e92453bd7b409807eaf89af14ccaa96b..a83ce1beb374d9b6ff8977ac0a730cb3d3da0f46 100644 (file)
@@ -141,7 +141,7 @@ static bool
 recent_enough (int bar_number, SCM alteration_def, SCM laziness)
 {
   if (scm_is_number (alteration_def)
-      || laziness== SCM_BOOL_T)
+      || laziness == SCM_BOOL_T)
     return true;
   
   return (bar_number <= scm_to_int (scm_cdr (alteration_def)) + scm_to_int (laziness));
index fae8a012dbb395212760f9580b463fcda8d9ae22..087f62abd0e997eb59766aa6db65ce4e9a46e861 100644 (file)
@@ -52,7 +52,7 @@ Accidental_placement::add_accidental (Grob* me, Grob* a)
       return; 
     }
 
-  Pitch *p= unsmob_pitch (mcause->get_property ("pitch"));
+  Pitch *p = unsmob_pitch (mcause->get_property ("pitch"));
 
   int n = p->get_notename ();
 
@@ -81,8 +81,8 @@ Accidental_placement::split_accidentals (Grob * accs,
                                         Link_array<Grob> *break_reminder,
                                         Link_array<Grob> *real_acc)
 {
-  for (SCM acs =accs->get_property ("accidental-grobs"); scm_is_pair (acs);
-       acs =scm_cdr (acs))
+  for (SCM acs = accs->get_property ("accidental-grobs"); scm_is_pair (acs);
+       acs = scm_cdr (acs))
     for (SCM s = scm_cdar (acs); scm_is_pair (s); s = scm_cdr (s))
       {
        Grob *a = unsmob_grob (scm_car (s));
@@ -262,12 +262,12 @@ Accidental_placement::position_accidentals (Grob * me)
     Y-position, they share an Ape, and will be printed in overstrike.
    */
   Link_array<Accidental_placement_entry> apes;
-  for (SCM s = accs; scm_is_pair (s); s =scm_cdr (s))
+  for (SCM s = accs; scm_is_pair (s); s = scm_cdr (s))
     {
       Accidental_placement_entry *ape = new Accidental_placement_entry;
       ape->notename_ = scm_to_int (scm_caar (s));
       
-      for (SCM t = scm_cdar (s); scm_is_pair (t); t =scm_cdr (t))
+      for (SCM t = scm_cdar (s); scm_is_pair (t); t = scm_cdr (t))
        ape->grobs_.push (unsmob_grob (scm_car (t)));
 
       apes.push (ape);
@@ -280,7 +280,7 @@ Accidental_placement::position_accidentals (Grob * me)
     extents if we're sure that we've found the right common refpoint
    */
   Link_array<Grob> note_cols, heads;
-  for (int i= apes.size (); i--;)
+  for (int i = apes.size (); i--;)
     { 
       Accidental_placement_entry * ape = apes[i];
       for (int j = ape->grobs_.size (); j--;)
@@ -330,7 +330,7 @@ Accidental_placement::position_accidentals (Grob * me)
   common[Y_AXIS] = common_refpoint_of_array (heads, common[Y_AXIS], Y_AXIS);
 
   
-  for (int i= apes.size (); i--;)
+  for (int i = apes.size (); i--;)
     {
       Accidental_placement_entry * ape = apes[i];
       ape->left_skyline_ = empty_skyline (LEFT);
@@ -390,7 +390,7 @@ Accidental_placement::position_accidentals (Grob * me)
   /*
     Add accs entries right-to-left.
    */
-  for (int i= apes.size (); i-- > 0;)
+  for (int i = apes.size (); i-- > 0;)
     {
       Real offset =
        -skyline_meshing_distance (apes[i]->right_skyline_, left_skyline);
index fb2b761df7974c6c3a046fe61228a0a8d8d338f1..6f9fe444e16fa9f2ca73eb429f6f8cdf56c16d7e 100644 (file)
@@ -24,7 +24,7 @@ Adobe_font_metric::Adobe_font_metric (AFM_Font_info *fi)
   for (int i = 256 >? fi->numOfChars; i--;)
     ascii_to_metric_idx_.push (-1);
   
-  for (int i= 0; i < fi->numOfChars; i++)
+  for (int i = 0; i < fi->numOfChars; i++)
     {
       AFM_CharMetricInfo * c = fi->cmi + i;
 
index 343275fed24a09aed9fa55cb1656a0138e887f63..31707ec3270874f273fb60ff1bc5bf9f154bd7d3 100644 (file)
@@ -60,13 +60,13 @@ Align_interface::align_to_fixed_distance (Grob *me , Axis a)
   Link_array<Grob> elems
     = Pointer_group_interface__extract_grobs (me, (Grob*) 0, "elements");
 
-  Real where_f= 0;
+  Real where_f = 0;
 
   Interval v;
   v.set_empty ();
   Array<Real> translates;
   
-  for (int j= elems.size (); j--; ) 
+  for (int j = elems.size (); j--; ) 
     {
       /*
        This is not very elegant, in that we need special support for
@@ -135,12 +135,12 @@ Align_interface::align_elements_to_extents (Grob * me, Axis a)
   Link_array<Grob> elems;
   Link_array<Grob> all_grobs
     = Pointer_group_interface__extract_grobs (me, (Grob*) 0, "elements");
-  for (int i= 0; i < all_grobs.size (); i++) 
+  for (int i = 0; i < all_grobs.size (); i++) 
     {
       Interval y = all_grobs[i]->extent (me, a);
       if (!y.is_empty ())
        {
-         Grob *e =dynamic_cast<Grob*> (all_grobs[i]);
+         Grob *e = dynamic_cast<Grob*> (all_grobs[i]);
 
          elems.push (e);
          dims.push (y);          
@@ -166,9 +166,9 @@ Align_interface::align_elements_to_extents (Grob * me, Axis a)
   
   Array<Real> translates ;
   Interval total;
-  Real where_f= 0;
+  Real where_f = 0;
   
-  for (int j= 0 ;  j < elems.size (); j++) 
+  for (int j = 0 ;  j < elems.size (); j++) 
     {
       Real dy = -  dims[j][-stacking_dir];
       if (j)
index e4b9a03a19a972ca818bf7f2aaeec1e74fbc7186..f0aa6ceaa2004ace6f12d357f6ef46d64af5cdf3 100644 (file)
@@ -46,7 +46,7 @@ Arpeggio::print (SCM smob)
     {
       Grob * stem = unsmob_grob (scm_car (s));
       Grob * ss = Staff_symbol_referencer::get_staff_symbol (stem);
-      Interval iv =Stem::head_positions (stem);
+      Interval iv = Stem::head_positions (stem);
       iv *= Staff_symbol::staff_space (ss)/2.0;
       
       heads.unite (iv + ss->relative_coordinate (common, Y_AXIS)
@@ -72,7 +72,7 @@ Arpeggio::print (SCM smob)
     }
   
   Stencil mol;
-  Font_metric *fm =Font_interface::get_default_font (me);
+  Font_metric *fm = Font_interface::get_default_font (me);
   Stencil squiggle = fm->find_by_name ("scripts-arpeggio");
 
   Stencil arrow ;  
@@ -82,7 +82,7 @@ Arpeggio::print (SCM smob)
       heads[dir] -= dir * arrow.extent (Y_AXIS).length ();
     }
   
-  for (Real  y= heads[LEFT] ; y < heads[RIGHT];
+  for (Real  y = heads[LEFT] ; y < heads[RIGHT];
        y+= squiggle. extent (Y_AXIS).length ())
       mol.add_at_edge (Y_AXIS, UP,squiggle, 0.0, 0);
 
index 3cf2300827ebda38c1d0f868ce05eea3b1efb536..cd1606114781dc12b3f9947a23533b4d112a1159 100644 (file)
@@ -43,8 +43,8 @@ Audio_note::tie_to (Audio_note* t)
                    
 Audio_key::Audio_key (int acc, bool major)
 {
-  accidentals_=acc;
-  major_=major;
+  accidentals_ = acc;
+  major_ = major;
 }
 
 Audio_dynamic::Audio_dynamic (Real volume)
index 662ebeff5fe3da1fa2b70cf8dbfd4ded3e0c10e7..93b918b4c74ca1d3554d9f6937835412b65df513 100644 (file)
@@ -113,7 +113,7 @@ Auto_beam_engraver::try_music (Music*m)
 
 /*
   Determine end moment for auto beaming (or begin moment, but mostly
-  0==anywhere) In order of increasing priority:
+  0== anywhere) In order of increasing priority:
   
   i.   begin anywhere, end at every beat
   ii.  end   *    <num> <den>
@@ -364,7 +364,7 @@ Auto_beam_engraver::typeset_beam ()
       finished_beam_ = 0;
     
       delete finished_grouping_;
-      finished_grouping_= 0;
+      finished_grouping_ = 0;
     }
 }
 
index a53a676eee57ab601b8cb59c3877ddeecbbe8e0a..50dd88971498079554c5b02e58c637d6ee2d0395 100644 (file)
@@ -102,7 +102,7 @@ Axis_group_engraver::process_acknowledged_grobs ()
   if (!staffline_) 
     return ;
   
-  for (int i= 0; i < elts_.size (); i++)
+  for (int i = 0; i < elts_.size (); i++)
     {
       if  (!unsmob_grob (elts_[i]->get_property ("axis-group-parent-Y")))
        {
index 6a336f1efe448f0f79573e4593509e398647cdec..cd1ff8cbba0a95dfd4ec26a9b510951520ed113a 100644 (file)
@@ -85,7 +85,7 @@ Axis_group_interface::set_axes (Grob*me,Axis a1, Axis a2)
     {
       SCM ax = scm_cons (sa1, SCM_EOL);
       if (a1 != a2)
-       ax= scm_cons (sa2, ax);
+       ax = scm_cons (sa2, ax);
       me->set_property ("axes", ax);
     }
 
index 76fdc53675d831234f34ba79d29e026b453478b2..1cb94582493abb33bf57bc84ae56daab61953bc9 100644 (file)
@@ -39,15 +39,15 @@ Bar_check_iterator::process (Moment m)
       Context *tr = get_outlet ();
 
       SCM mp = tr->get_property ("measurePosition");
-      SCM sync= tr->get_property ("barCheckSynchronize");
+      SCM sync = tr->get_property ("barCheckSynchronize");
 
-      Moment * where =unsmob_moment (mp);
+      Moment * where = unsmob_moment (mp);
       if (!where)
        return;
       
       if (where->main_part_)
        {
-         bool warn =true;
+         bool warn = true;
          if (to_boolean (sync))
            {
              tr = tr->where_defined (ly_symbol2scm ("measurePosition"));
index 42f03f423ca041da343e91fe8e6f85f9382147cd..1ba07c18d427998b0f763f19443807bab4dd13af 100644 (file)
@@ -28,7 +28,7 @@ Bar_line::print (SCM smob)
   SCM barsiz_proc = me->get_property ("bar-size-procedure");
   if (scm_is_string (s) && ly_c_procedure_p (barsiz_proc))
     {
-      String str  =ly_scm2string (s);
+      String str  = ly_scm2string (s);
       SCM siz = scm_call_1 (barsiz_proc, me->self_scm ());
       Real sz = robust_scm2double (siz, 0);
       if (sz <= 0)
@@ -60,7 +60,7 @@ Bar_line::compound_barline (Grob*me, String str, Real h)
   Stencil thick = simple_barline (me, fatline, h);
   Stencil dot = Font_interface::get_default_font (me)->find_by_name ("dots-dot");
 
-  int lines =Staff_symbol_referencer::line_count (me);
+  int lines = Staff_symbol_referencer::line_count (me);
   Real dist 
     = ((lines & 1 || lines == 0)
        ? 1
@@ -156,7 +156,7 @@ MAKE_SCHEME_CALLBACK (Bar_line,before_line_breaking ,1);
 SCM
 Bar_line::before_line_breaking (SCM smob)
 {
-  Grob*me=unsmob_grob (smob);
+  Grob*me = unsmob_grob (smob);
   Item * item = dynamic_cast<Item*> (me);
   
   SCM g = me->get_property ("glyph");
index 367a1a4990984af12948f84dbc0079b9364ba531..ea040131cbd51d0ca7f441e574a2100b9145244b 100644 (file)
@@ -112,7 +112,7 @@ Beam::check_concave (SCM smob)
 
   Array<int> close_positions;
   Array<int> far_positions;
-  for (int i= 0; i < stems.size (); i++)
+  for (int i = 0; i < stems.size (); i++)
     {
       /*
        For chords, we take the note head that is closest to the beam.
index bf194f978ccd31790bdaa578a44dca6a1d1e0b54..02173782175dfffd98996c2fa15408d3672d9671 100644 (file)
@@ -84,7 +84,7 @@ Beam_engraver::Beam_engraver ()
 {
   beam_ = 0;
   finished_beam_ = 0;
-  finished_beam_info_= 0;
+  finished_beam_info_ = 0;
   beam_info_ = 0;
   now_stop_ev_ = 0;
   start_ev_ = 0;
@@ -106,7 +106,7 @@ Beam_engraver::try_music (Music *m)
        {
          start_ev_ = m;
        }
-      else if (d==STOP)
+      else if (d == STOP)
        {
          now_stop_ev_ = m;
        }
index 107eeb43574a78ca39475b8b9be04a6f5527164a..dc5194a60a2280fb74d8c75d40b35fc20db9c4eb 100644 (file)
@@ -77,7 +77,7 @@ Beam_performer::try_music (Music *m)
        {
          start_ev_ = m;
        }
-      else if (d==STOP)
+      else if (d == STOP)
        {
          now_stop_ev_ = m;
        }
index 553b8c4bcb1f18d32eb24ff5473c18a86ad85fec..c10dc8b189c3fd4302c97d8e0486250b31989f96 100644 (file)
@@ -141,7 +141,7 @@ Beam::quanting (SCM smob)
     Do stem computations.  These depend on YL and YR linearly, so we can
     precompute for every stem 2 factors.
    */
-  Link_array<Grob> stems=
+  Link_array<Grob> stems =
     Pointer_group_interface__extract_grobs (me, (Grob*)0, "stems");
   Array<Stem_info> stem_infos;
   Array<Real> base_lengths;
@@ -165,7 +165,7 @@ Beam::quanting (SCM smob)
     stem_y != 0.0, when we're cross staff.
     
    */
-  for (int i= 0; i < stems.size (); i++)
+  for (int i = 0; i < stems.size (); i++)
     {
       Grob*s = stems[i];
 
@@ -182,7 +182,7 @@ Beam::quanting (SCM smob)
       stem_xposns.push (s->relative_coordinate (common[X_AXIS], X_AXIS));
     }
 
-  bool xstaff= false;
+  bool xstaff = false;
   if (lvs && fvs)
     {
       Grob *commony = fvs->common_refpoint (lvs, Y_AXIS);
@@ -268,7 +268,7 @@ Beam::quanting (SCM smob)
   for (int i = qscores.size (); i--;)
     if (qscores[i].demerits < reasonable_score)
       {
-       Real d=score_stem_lengths (stems, stem_infos,
+       Real d = score_stem_lengths (stems, stem_infos,
                                 base_lengths, stem_xposns,
                                 xl, xr,
                                 is_knee,
@@ -294,11 +294,11 @@ Beam::quanting (SCM smob)
       Real mindist = 1e6;
       for (; i < qscores.size (); i ++)
        {
-         Real d =fabs (qscores[i].yl- ins[LEFT]) + fabs (qscores[i].yr - ins[RIGHT]);
+         Real d = fabs (qscores[i].yl- ins[LEFT]) + fabs (qscores[i].yr - ins[RIGHT]);
          if (d < mindist)
            {
              best_idx = i;
-             mindist= d;
+             mindist = d;
            }
        }
       if (mindist > 1e5)
@@ -336,7 +336,7 @@ Beam::score_stem_lengths (Link_array<Grob> const &stems,
   Drul_array<Real> score (0, 0);
   Drul_array<int> count (0, 0);
   
-  for (int i= 0; i < stems.size (); i++)
+  for (int i = 0; i < stems.size (); i++)
     {
       Grob* s = stems[i];
       if (Stem::is_invisible (s))
index d73bfc4fc3e405f452d2e2ff8c85d0ffd3f1e3de..0f76d58caee8feaa4284ec53bd52356977ad8e0b 100644 (file)
@@ -228,7 +228,7 @@ position_with_maximal_common_beams (SCM left_beaming, SCM right_beaming,
 void
 Beam::connect_beams (Grob *me)
 {
-  Link_array<Grob> stems=
+  Link_array<Grob> stems =
     Pointer_group_interface__extract_grobs (me, (Grob*)0, "stems");
 
   Slice last_int;
@@ -308,7 +308,7 @@ Beam::print (SCM grob)
   Spanner *me = unsmob_spanner (grob);
   position_beam (me);
   
-  Link_array<Grob> stems=
+  Link_array<Grob> stems =
     Pointer_group_interface__extract_grobs (me, (Grob*)0, "stems");
   Grob* xcommon = common_refpoint_of_array (stems, me, X_AXIS);
 
@@ -336,7 +336,7 @@ Beam::print (SCM grob)
       pos = Interval (0,0);
     }
   else
-    pos= ly_scm2realdrul (posns);
+    pos = ly_scm2realdrul (posns);
 
   scale_drul (&pos,  Staff_symbol_referencer::staff_space (me));
   
@@ -376,7 +376,7 @@ Beam::print (SCM grob)
       Array<int> rfliebertjes;   
 
       for (SCM s = left;
-          scm_is_pair (s); s =scm_cdr (s))
+          scm_is_pair (s); s = scm_cdr (s))
        {
          int b = scm_to_int (scm_car (s));
          if (scm_c_memq (scm_car (s), right) != SCM_BOOL_F)
@@ -389,7 +389,7 @@ Beam::print (SCM grob)
            }
        }
       for (SCM s = right;
-          scm_is_pair (s); s =scm_cdr (s))
+          scm_is_pair (s); s = scm_cdr (s))
        {
          int b = scm_to_int (scm_car (s));
          if (scm_c_memq (scm_car (s), left) == SCM_BOOL_F)
@@ -544,10 +544,10 @@ Beam::get_default_dir (Grob *me)
   count[UP]  = count[DOWN] = 0;
   Direction d = DOWN;
 
-  Link_array<Grob> stems=
+  Link_array<Grob> stems =
        Pointer_group_interface__extract_grobs (me, (Grob*)0, "stems");
 
-  for (int i= 0; i < stems.size (); i++)
+  for (int i = 0; i < stems.size (); i++)
     do {
       Grob *s = stems[i];
       Direction sd = get_grob_direction (s);
@@ -584,9 +584,9 @@ void
 Beam::set_stem_directions (Grob *me, Direction d)
 {
   Link_array<Grob> stems
-    =Pointer_group_interface__extract_grobs (me, (Grob*) 0, "stems");
+    = Pointer_group_interface__extract_grobs (me, (Grob*) 0, "stems");
   
-  for (int i= 0; i <stems.size (); i++)
+  for (int i = 0; i <stems.size (); i++)
     {
       Grob *s = stems[i];
   
@@ -615,14 +615,14 @@ Beam::consider_auto_knees (Grob* me)
 
   gaps.set_full ();
 
-  Link_array<Grob> stems=
+  Link_array<Grob> stems =
     Pointer_group_interface__extract_grobs (me, (Grob*)0, "stems");
       
   Grob *common = common_refpoint_of_array (stems, me,  Y_AXIS);
   Real staff_space = Staff_symbol_referencer::staff_space (me);
   
   Array<Interval> hps_array;  
-  for (int i= 0; i < stems.size (); i++)
+  for (int i = 0; i < stems.size (); i++)
     {
       Grob* stem = stems[i];
       if (Stem::is_invisible (stem))
@@ -823,7 +823,7 @@ Beam::least_squares (SCM smob)
 
 
   Array<Real> x_posns ;
-  Link_array<Grob> stems=
+  Link_array<Grob> stems =
     Pointer_group_interface__extract_grobs (me, (Grob*)0, "stems");
   Grob *commonx = common_refpoint_of_array (stems, me, X_AXIS);
   Grob *commony = common_refpoint_of_array (stems, me, Y_AXIS);  
@@ -839,7 +839,7 @@ Beam::least_squares (SCM smob)
                  + lvs->relative_coordinate (commony, Y_AXIS) - my_y);
   
   Real x0 = first_visible_stem (me)->relative_coordinate (commonx, X_AXIS);
-  for (int i= 0; i < stems.size (); i++)
+  for (int i = 0; i < stems.size (); i++)
     {
       Grob* s = stems[i];
 
@@ -888,7 +888,7 @@ Beam::least_squares (SCM smob)
   else
     {
       Array<Offset> ideals;
-      for (int i= 0; i < stems.size (); i++)
+      for (int i = 0; i < stems.size (); i++)
        {
          Grob* s = stems[i];
          if (Stem::is_invisible (s))
@@ -936,7 +936,7 @@ Beam::shift_region_to_valid (SCM grob)
     Code dup.
    */
   Array<Real> x_posns ;
-  Link_array<Grob> stems=
+  Link_array<Grob> stems =
     Pointer_group_interface__extract_grobs (me, (Grob*)0, "stems");
   Grob *commonx = common_refpoint_of_array (stems, me, X_AXIS);
   Grob *commony = common_refpoint_of_array (stems, me, Y_AXIS);  
@@ -946,8 +946,8 @@ Beam::shift_region_to_valid (SCM grob)
   if (!fvs)
     return SCM_UNSPECIFIED;
     
-  Real x0 =fvs->relative_coordinate (commonx, X_AXIS);
-  for (int i= 0; i < stems.size (); i++)
+  Real x0 = fvs->relative_coordinate (commonx, X_AXIS);
+  for (int i = 0; i < stems.size (); i++)
     {
       Grob* s = stems[i];
 
@@ -967,7 +967,7 @@ Beam::shift_region_to_valid (SCM grob)
   
   Real dy = pos[RIGHT] - pos[LEFT];
   Real y = pos[LEFT];
-  Real slope =dy/dx;
+  Real slope = dy/dx;
 
   
   /*
@@ -976,7 +976,7 @@ Beam::shift_region_to_valid (SCM grob)
    */
   Interval feasible_left_point;
   feasible_left_point.set_full ();
-  for (int i= 0; i < stems.size (); i++)
+  for (int i = 0; i < stems.size (); i++)
     {
       Grob* s = stems[i];
       if (Stem::is_invisible (s))
@@ -1124,7 +1124,7 @@ Beam::calc_stem_y (Grob *me, Grob* s, Grob ** common,
     {
       Slice bm = Stem::beam_multiplicity (s);
       if (!bm.is_empty ())
-       stem_y +=bm[my_dir] * beam_translation;
+       stem_y += bm[my_dir] * beam_translation;
     }
   
   Real id = me->relative_coordinate (common[Y_AXIS], Y_AXIS)
@@ -1140,7 +1140,7 @@ Beam::calc_stem_y (Grob *me, Grob* s, Grob ** common,
 void
 Beam::set_stem_lengths (Grob *me)
 {
-  Link_array<Grob> stems=
+  Link_array<Grob> stems =
     Pointer_group_interface__extract_grobs (me, (Grob*)0, "stems");
 
   if (!stems.size ())
@@ -1170,7 +1170,7 @@ Beam::set_stem_lengths (Grob *me)
   Real xl = fvs ? fvs->relative_coordinate (common[X_AXIS], X_AXIS) : 0.0;
   Real xr = lvs ? lvs->relative_coordinate (common[X_AXIS], X_AXIS) : 0.0;
   
-  for (int i= 0; i < stems.size (); i++)
+  for (int i = 0; i < stems.size (); i++)
     {
       Grob* s = stems[i];
       if (Stem::is_invisible (s))
@@ -1195,11 +1195,11 @@ Beam::set_stem_lengths (Grob *me)
 void
 Beam::set_beaming (Grob *me, Beaming_info_list *beaming)
 {
-  Link_array<Grob> stems=
+  Link_array<Grob> stems =
     Pointer_group_interface__extract_grobs (me, (Grob *)0, "stems");
   
   Direction d = LEFT;
-  for (int i= 0; i  < stems.size (); i++)
+  for (int i = 0; i  < stems.size (); i++)
     {
       /*
        Don't overwrite user settings.
@@ -1236,7 +1236,7 @@ Beam::forced_stem_count (Grob *me)
   Link_array<Grob>stems = 
     Pointer_group_interface__extract_grobs (me, (Grob*) 0, "stems");
   int f = 0;
-  for (int i= 0; i < stems.size (); i++)
+  for (int i = 0; i < stems.size (); i++)
     {
       Grob *s = stems[i];
 
index 1e4e6c0956735298824d4291945578b09554e23d..21354a5f3245420b31b659964feaff19205be1d8 100644 (file)
@@ -33,7 +33,7 @@ Beaming_info_list::best_splitpoint_index (Moment &beat_length,bool subdivide) co
   int minidx = -1;
   Moment beat_pos;
 
-  for (int i=1; i < infos_.size (); i++)
+  for (int i =1; i < infos_.size (); i++)
     {
       beat_pos = infos_[i].start_mom_ / beat_length;
       int den = beat_pos.den ();
@@ -46,7 +46,7 @@ Beaming_info_list::best_splitpoint_index (Moment &beat_length,bool subdivide) co
        }
     }
 
-  return minidx|(minden==1 && subdivide ? at_beat : 0);
+  return minidx|(minden ==1 && subdivide ? at_beat : 0);
 }
 
 int
index 87c0623ba241998fe1b94a842c8fbb83e9e1c2c0..c51ba3706d1603846c679ed0088d6aac78443e50 100644 (file)
@@ -57,7 +57,7 @@ translate (Array<Offset>* array, Offset o)
 
   Formula of the bezier 3-spline
 
-  sum_{j= 0}^3 (3 over j) z_j (1-t)^ (3-j)  t^j
+  sum_{j = 0}^3 (3 over j) z_j (1-t)^ (3-j)  t^j
 
 
   A is the axis of X coordinate.
@@ -91,7 +91,7 @@ Bezier::curve_point (Real t)const
   Real one_min_tj = (1-t)* (1-t)* (1-t);
 
   Offset o;
-  for (int j= 0 ; j < 4; j++)
+  for (int j = 0 ; j < 4; j++)
     {
       o += control_[j] * binomial_coefficient (3, j)
        * pow (t,j) * pow (1-t, 3-j);
@@ -114,7 +114,7 @@ Polynomial
 Bezier::polynomial (Axis a)const
 {
   Polynomial p (0.0);
-  for (int j= 0; j <= 3; j++)
+  for (int j = 0; j <= 3; j++)
     {
       p +=
        (control_[j][a] * binomial_coefficient (3, j))
@@ -143,8 +143,8 @@ filter_solutions (Array<Real> sol)
 Array<Real>
 Bezier::solve_derivative (Offset deriv)const
 {
-  Polynomial xp=polynomial (X_AXIS);
-  Polynomial yp=polynomial (Y_AXIS);
+  Polynomial xp = polynomial (X_AXIS);
+  Polynomial yp = polynomial (Y_AXIS);
   xp.differentiate ();
   yp.differentiate ();
   
@@ -180,7 +180,7 @@ Bezier::extent (Axis a)const
   Array<Real> sols (solve_derivative (d));
   sols.push (1.0);
   sols.push (0.0);  
-  for (int i= sols.size (); i--;)
+  for (int i = sols.size (); i--;)
     {
       Offset o (curve_point (sols[i]));
       iv.unite (Interval (o[a],o[a]));
@@ -219,7 +219,7 @@ Bezier::translate (Offset o)
 void
 Bezier::assert_sanity () const
 {
-  for (int i= 0; i < CONTROL_COUNT; i++)
+  for (int i = 0; i < CONTROL_COUNT; i++)
     assert (!isnan (control_[i].length ())
            && !isinf (control_[i].length ()));
 }
index 1dc85ea63ff253b93a97c59f62f4e075c46d3ecb..5463abef8633e85cbc5e5c6c0f35f80bbf3a42ba 100644 (file)
 void
 Box::translate (Offset o)
 {
-  for (Axis i=X_AXIS; i < NO_AXES; incr (i))
+  for (Axis i = X_AXIS; i < NO_AXES; incr (i))
     interval_a_[i] += o[i];
 }
 
 void
 Box::unite (Box b)
 {
-  for (Axis i=X_AXIS; i < NO_AXES; incr (i))
+  for (Axis i = X_AXIS; i < NO_AXES; incr (i))
     interval_a_[i].unite (b[i]);
 }
 
index 49ea7ca788f0d7cd5a442354548f8f67003c23a3..5d2987b6b36a1c0004be8deb41c324d922539df1 100644 (file)
@@ -78,7 +78,7 @@ Break_align_engraver::acknowledge_grob (Grob_info inf)
       if (item->get_parent (X_AXIS))
        return;
 
-      SCM bp=item->get_property ("breakable");
+      SCM bp = item->get_property ("breakable");
       bool breakable = (to_boolean (bp));
       if (!breakable)
        return ;
index 1b1b1abde380fc58ddc5b4f40596b17d935f7737..88fb549dea0500a95096f6ca145138868626b539 100644 (file)
@@ -91,7 +91,7 @@ Break_align_interface::ordered_elements (Grob *grob)
     {
       SCM sym = scm_car (order);
       
-      for (SCM s =elts; scm_is_pair (s); s = scm_cdr (s))
+      for (SCM s = elts; scm_is_pair (s); s = scm_cdr (s))
        {
          Grob *g = unsmob_grob (scm_car (s));
          if (g && sym == g->get_property ("break-align-symbol"))
@@ -120,7 +120,7 @@ Break_align_interface::do_alignment (Grob *grob)
   Array<Interval> extents;
 
   int last_nonempty = -1; 
-  for (int i= 0; i < elems.size (); i++) 
+  for (int i = 0; i < elems.size (); i++) 
     {
       Interval y = elems[i]->extent (elems[i], X_AXIS);
       extents.push (y);
@@ -134,7 +134,7 @@ Break_align_interface::do_alignment (Grob *grob)
   
   Array<Real> offsets;
   offsets.set_size (elems.size ());
-  for (int i= 0; i < offsets.size ();i ++)
+  for (int i = 0; i < offsets.size ();i ++)
     offsets[i] = 0.0;
 
 
@@ -169,10 +169,10 @@ Break_align_interface::do_alignment (Grob *grob)
                == ly_symbol2scm ( "left-edge"))
              edge_idx = idx;
            
-           SCM l =elt->get_property ("space-alist");
+           SCM l = elt->get_property ("space-alist");
            if (scm_is_pair (l))
              {
-               alist= l;
+               alist = l;
                break;
              }
          }
@@ -187,7 +187,7 @@ Break_align_interface::do_alignment (Grob *grob)
       for (SCM s = r ? r->get_property ("elements") : SCM_EOL;
           !scm_is_symbol (rsym) && scm_is_pair (s); s = scm_cdr (s))
        {
-         Grob * elt =unsmob_grob (scm_car (s));
+         Grob * elt = unsmob_grob (scm_car (s));
 
          rsym = elt->get_property ("break-align-symbol");
        }
index 3fcf35b6f60a9219942e0f79ee7006a3d93c9ab5..c5f98c727e45818ec8e5b7cca1c6b73bdb87036f 100644 (file)
@@ -142,7 +142,7 @@ substitute_grob_list (SCM grob_list)
 
   for (SCM s = grob_list; scm_is_pair (s); s =  scm_cdr (s))
     {
-      SCM n= substitute_grob (unsmob_grob (scm_car (s)));
+      SCM n = substitute_grob (unsmob_grob (scm_car (s)));
 
       if (n != SCM_UNDEFINED)
        {
@@ -228,7 +228,7 @@ spanner_system_range (Spanner* sp)
 Slice
 item_system_range (Item* it)
 {
-  if (System*st= it->get_system ())
+  if (System*st = it->get_system ())
     return Slice (st->rank_, st->rank_);
 
   Slice sr;
@@ -239,7 +239,7 @@ item_system_range (Item* it)
       if (bi && bi->get_system ())
        sr.add_point (bi->get_system ()->rank_);
     }
-  while (flip (&d)!=LEFT);
+  while (flip (&d)!= LEFT);
   
   return sr;
 }
@@ -407,7 +407,7 @@ Spanner::fast_fubstitute_grob_list (SCM sym,
      for (int k = 0; k < 2;k++)
        for (int j = (*arrs[k])[i][LEFT]; j <= (*arrs[k])[i][RIGHT]; j++)
          {
-           SCM subs =substitute_grob (vec[j].grob_);
+           SCM subs = substitute_grob (vec[j].grob_);
            if (subs!= SCM_UNDEFINED)
              {
                *tail = scm_cons (subs, SCM_EOL);
@@ -424,7 +424,7 @@ Spanner::fast_fubstitute_grob_list (SCM sym,
              sp_indices[i].length () , len -sp_index);
              
       {
-       SCM l1 =substitute_grob_list (grob_list);
+       SCM l1 = substitute_grob_list (grob_list);
        assert (scm_ilength (l1) == scm_ilength (newval));
       }
 #endif
index cb92fe9589f2db8a72bebb738cebf01431c2f25b..fa8191a4227677f6ef844b29646051af06ab3146 100644 (file)
@@ -98,7 +98,7 @@ Chord_name_engraver::process_music ()
          int octavation =  scm_to_int (oct);
          Pitch orig = p->transposed (Pitch (-octavation, 0,0));
          
-         pitches= scm_cons (orig.smobbed_copy (), pitches);
+         pitches = scm_cons (orig.smobbed_copy (), pitches);
        }
       else
        programming_error ("Inversion does not have original pitch.");
index 999e553f050ef791130de10f501d0b05b32b8534..4131005ae43e345b0d9ac2183f0bf1506bbbe0e4 100644 (file)
@@ -71,7 +71,7 @@ Clef_engraver::set_glyph ()
 void
 Clef_engraver::acknowledge_grob (Grob_info info)
 {
-  Item * item =dynamic_cast <Item *> (info.grob_);
+  Item * item = dynamic_cast <Item *> (info.grob_);
   if (item)
     {
       if (Bar_line::has_interface (info.grob_)
index 542863a376967cd68121d8eed06e0e1fbf49cf80..f576e671df1104ddf29d9033b8e9a9367fc0d5a7 100644 (file)
@@ -81,7 +81,7 @@ Cluster_spanner_engraver::process_music ()
       
       for (int i = 0; i <cluster_notes_.size (); i++)
        {
-         Pitch *pit =unsmob_pitch (cluster_notes_[i]->get_property ("pitch"));
+         Pitch *pit = unsmob_pitch (cluster_notes_[i]->get_property ("pitch"));
 
          int p =( pit ? pit->steps () : 0) + c0;
 
index 3d1adbe29b0254470235ffcf3b6e77994d2a1014..5eee6ee6db2bfd53413d507995c15b976aef6bdd 100644 (file)
@@ -31,7 +31,7 @@ brew_cluster_piece (Grob *me, Array<Offset> bottom_points, Array<Offset> top_poi
 {
   Real blotdiameter = Staff_symbol_referencer::staff_space (me)/2;
 
-  Real padding =robust_scm2double ( me->get_property ("padding"), 0.0);
+  Real padding = robust_scm2double ( me->get_property ("padding"), 0.0);
 
   Offset vpadding = Offset (0, padding);
   Offset hpadding = Offset (0.5 * blotdiameter, 0);
@@ -141,7 +141,7 @@ Cluster::print (SCM smob)
   Item *right_bound = spanner->get_bound (RIGHT);
 
   Grob *commonx = left_bound->common_refpoint (right_bound, X_AXIS);
-  SCM cols  =me->get_property ("columns");
+  SCM cols  = me->get_property ("columns");
 
   if (!scm_is_pair (cols))
     {
index 1fad0f9b24e6a300bd7d6c0c0aa184343ba714a2..c233baa6c40407d564e6f92fcb83dae43d6d35bb 100644 (file)
@@ -81,7 +81,7 @@
       SCM incr_scm = lc->get_property ("forced-spacing");
       if (incr_scm != SCM_EOL) /* (Paper_column::is_musical (l)) */
        {
-         me->warning (_f ("gotcha: ptr=%ul", lc));//debug
+         me->warning (_f ("gotcha: ptr =%ul", lc));//debug
          ly_display_scm (lc->self_scm ());
          Real distance;
          if (incr_scm != SCM_EOL)
@@ -93,7 +93,7 @@
              me->warning ("distance undefined, assuming 0.1");
              distance = 0.1;
            }
-         me->warning (_f ("distance=%f", distance));//debug
+         me->warning (_f ("distance =%f", distance));//debug
          Real strength = 1.0;
          Spaceable_grob::add_spring (lc, rc, distance, strength);
          if (Item *rb = r->find_prebroken_piece (LEFT))
@@ -138,7 +138,7 @@ Coherent_ligature_engraver::get_set_column (Item *item, Paper_column *column)
              Grob *sibling_parent = sibling->get_parent (X_AXIS);
              sibling_parent->warning (_f ("Coherent_ligature_engraver: "
                                           "setting `spacing-increment = "
-                                          "0.01': ptr=%ul", parent));
+                                          "0.01': ptr =%ul", parent));
              sibling_parent->set_property ("forced-spacing",
                                              scm_make_real (0.01));
 #endif
index f18f1dc6124b74710e67469e0c7165d8e40116b1..bfaf52c412f250045ca12e935d155c66973d12ed 100644 (file)
@@ -37,7 +37,7 @@ Collision_engraver::process_acknowledged_grobs ()
       
     }
   
-  for (int i= 0; i< note_columns_.size (); i++)
+  for (int i = 0; i< note_columns_.size (); i++)
     Note_collision_interface::add_column (col_,note_columns_[i]);
 }
 
index 08a6737c2b3bede4bf2a9b315604cc105385b91a..dda44e21962231dd9b0c1e31984f023bf3066161 100644 (file)
@@ -124,7 +124,7 @@ Completion_heads_engraver::next_barline_moment ( )
 Duration  
 Completion_heads_engraver::find_nearest_duration (Rational length)
 {
-  int log_limit= 6;
+  int log_limit = 6;
 
   Duration d (0,0);
 
@@ -224,7 +224,7 @@ Completion_heads_engraver::process_music ()
       note->set_property ("duration-log",
                          scm_int2num (note_dur.duration_log ()));
       
-      int dots= note_dur.dot_count ();
+      int dots = note_dur.dot_count ();
       if (dots)
        {
          Item * d = make_item ("Dots", SCM_EOL);
@@ -240,7 +240,7 @@ Completion_heads_engraver::process_music ()
          dots_.push (d);
        }
 
-      Pitch *pit =unsmob_pitch (req->get_property ("pitch"));
+      Pitch *pit = unsmob_pitch (req->get_property ("pitch"));
 
       int pos = pit->steps ();
       SCM c0 = get_property ("middleCPosition");
@@ -253,7 +253,7 @@ Completion_heads_engraver::process_music ()
   
   if (prev_notes_.size () == notes_.size ())
     {
-      for (int i= 0; i < notes_.size (); i++)
+      for (int i = 0; i < notes_.size (); i++)
        {
          Grob * p = make_spanner ("Tie", SCM_EOL);
          Tie::set_interface (p); // cannot remove yet!
index 6c0f7f87b5dda4c4591acdd7213227ea86124745..1bc3e7a9c80196846a31e3b87ba558f31a79f5bd 100644 (file)
@@ -169,7 +169,7 @@ Context_def::path_to_acceptable_context (SCM type_sym, Output_def *odef) const
       accepteds.push (t);
 
   Link_array<Context_def> best_result;
-  for (int i= 0; i < accepteds.size (); i++)
+  for (int i = 0; i < accepteds.size (); i++)
     {
       /* do not check aliases, because \context Staff should not
         create RhythmicStaff. */
@@ -180,8 +180,8 @@ Context_def::path_to_acceptable_context (SCM type_sym, Output_def *odef) const
        }
     }
 
-  int best_depth= INT_MAX;
-  for (int i= 0; i < accepteds.size (); i++)
+  int best_depth = INT_MAX;
+  for (int i = 0; i < accepteds.size (); i++)
     {
       Context_def * g = accepteds[i];
 
@@ -295,7 +295,7 @@ Context_def::instantiate (SCM ops, Object_key const *key)
              if (scm_is_pair (trans_list))
                scm_set_cdr_x (scm_last_pair (trans_list), cons);
              else
-               trans_list= cons;
+               trans_list = cons;
            }
          else
            {
index a18a9eba05bb6c5c749680e4cecb822d00e30809..03698a48d489cb9f3a25e8d16095a2f2641754eb 100644 (file)
@@ -73,7 +73,7 @@ Interpretation_context_handle::operator = (Interpretation_context_handle const &
 void
 Interpretation_context_handle::set_context (Context *trans)
 {
-  if (outlet_ ==trans)
+  if (outlet_ == trans)
     return;
   if (outlet_)
     down ();
index 594a7c19a1ac1fa8e417412d829c4a908a93318a..f5a27b82a330720e63ebcc5499d456b7c43568ba 100644 (file)
@@ -69,7 +69,7 @@ LY_DEFINE (ly_context_property, "ly:context-property",
          "Return the value of @var{name} from context @var{c}")
 {
   Context *t = unsmob_context (c);
-  Context * tr= (t);
+  Context * tr = (t);
   SCM_ASSERT_TYPE (tr, c, SCM_ARG1, __FUNCTION__, "Translator group");
   SCM_ASSERT_TYPE (scm_is_symbol (name), name, SCM_ARG2, __FUNCTION__, "symbol");
 
index 8dc53e26455d399e1f5d1e9779f20fc9a0fdb40a..4cad8ea641f59e266a9f0db88297490e87afb1c3 100644 (file)
@@ -127,7 +127,7 @@ Context::create_unique_context (SCM n, SCM operations)
       Context * current = this;
 
       // start at 1.  The first one (index 0) will be us.
-      for (int i= 0; i < path.size (); i++)
+      for (int i = 0; i < path.size (); i++)
        {
          SCM ops = (i == path.size () -1) ? operations : SCM_EOL;
 
@@ -186,7 +186,7 @@ Context::find_create_context (SCM n, String id, SCM operations)
       Context * current = this;
 
       // start at 1.  The first one (index 0) will be us.
-      for (int i= 0; i < path.size (); i++)
+      for (int i = 0; i < path.size (); i++)
        {
          SCM ops = (i == path.size () -1) ? operations : SCM_EOL;
 
@@ -493,7 +493,7 @@ Context::print_smob (SCM s, SCM port, scm_print_state *)
       scm_display (d->get_context_name (), port);
     }
 
-  if (Context *td=dynamic_cast<Context *> (sc))
+  if (Context *td = dynamic_cast<Context *> (sc))
     {
       scm_puts ("=", port);
       scm_puts (td->id_string_.to_str0 (), port);
index 698f2ff1222214480f67b10a48530dc93b8c688a..2032325f5a64820c860143b63abdc360c680f99e 100644 (file)
@@ -12,7 +12,7 @@
 Direction
 get_grob_direction (Grob*me) 
 {
-  SCM d= me->get_property ("direction");
+  SCM d = me->get_property ("direction");
   if (!is_direction (d))
     return CENTER;
       
index e464b52fa092c92d4dcac6a819065320eb22855d..8480362f1e8024a7cd337447c4464f2216a4021c 100644 (file)
@@ -273,7 +273,7 @@ Dot_column::do_shifts (Grob*me)
        }
       
       int p = Staff_symbol_referencer::get_rounded_position (dp.dot_);
-      dp.pos_= p;
+      dp.pos_ = p;
 
       if (dp.extremal_head_)
        dp.dir_ = to_dir (dp.dot_->get_property  ("direction"));
index a1527b237f05b8c341b6ddaeea5b5b96e20e689f..22b9084560a612d7f90b4589ed058d2b5bbdcdc4 100644 (file)
@@ -54,7 +54,7 @@ void
 Drum_notes_engraver::process_music ()
 {
   SCM tab = 0;
-  for (int i= 0; i < events_.size (); i++)
+  for (int i = 0; i < events_.size (); i++)
     {
       if (!tab)
        tab = get_property ("drumStyleTable");
@@ -90,7 +90,7 @@ Drum_notes_engraver::process_music ()
       if (scm_is_pair (defn))
        {
          SCM pos = scm_caddr (defn);
-         SCM style =scm_car (defn);
+         SCM style = scm_car (defn);
          SCM script = scm_cadr (defn);
          
          if (scm_integer_p (pos) == SCM_BOOL_T)
@@ -125,7 +125,7 @@ Drum_notes_engraver::acknowledge_grob (Grob_info inf)
 {
   if (Stem::has_interface (inf.grob_))
     {
-      for (int i= 0; i < scripts_.size (); i++)
+      for (int i = 0; i < scripts_.size (); i++)
        {
          Grob*e = scripts_[i];
 
@@ -141,7 +141,7 @@ Drum_notes_engraver::acknowledge_grob (Grob_info inf)
     }
    else if (Note_column::has_interface (inf.grob_))
     {
-      for (int i= 0; i < scripts_.size (); i++)
+      for (int i = 0; i < scripts_.size (); i++)
        {
          Grob *e = scripts_[i];
          
index d143e883fff8504bbc5167a376d0fb22f21b9877..9036e1ab52027030fc26da2621bdfb81a840d109 100644 (file)
@@ -60,10 +60,10 @@ Drum_note_performer::stop_translation_timestep ()
   // why don't grace notes show up here?
   // --> grace notes effectively do not get delayed
   Global_context * global = get_global_context ();
-  for (int i= 0; i < notes_.size (); i++)
+  for (int i = 0; i < notes_.size (); i++)
     {
       Audio_note* n = notes_[i];
-      Moment m= n->delayed_until_mom_;
+      Moment m = n->delayed_until_mom_;
       if (m.to_bool ())
        {
          global->add_moment_to_process (m);
@@ -75,13 +75,13 @@ Drum_note_performer::stop_translation_timestep ()
     }
 
   Moment now = now_mom ();
-  for (int i= 0; i < notes_.size (); i++)
+  for (int i = 0; i < notes_.size (); i++)
     {
       play_element (notes_[i]);
     }
   notes_.clear ();
   note_evs_.clear ();
-  for (int i= 0; i < delayeds_.size (); i++)
+  for (int i = 0; i < delayeds_.size (); i++)
     {
       Audio_note* n = delayeds_[i];
       if (n->delayed_until_mom_ <= now)
index 56267f363cd41b24faccda592d2bea8b517e9cde..529444925e922fbc22904cfa8ef1269de6342eba 100644 (file)
@@ -55,7 +55,7 @@ MAKE_SCHEME_CALLBACK (Dynamic_text_spanner, print, 1);
 SCM
 Dynamic_text_spanner::print (SCM smob) 
 {
-  Grob *me= unsmob_grob (smob);
+  Grob *me = unsmob_grob (smob);
   Spanner *spanner = dynamic_cast<Spanner*> (me);
 
   Grob *common = spanner->get_bound (LEFT)->common_refpoint (spanner->get_bound (RIGHT), X_AXIS);
@@ -133,7 +133,7 @@ Dynamic_text_spanner::print (SCM smob)
   
   if (!span_points.is_empty ())
     {
-      Stencil l =Line_spanner::line_stencil (me,
+      Stencil l = Line_spanner::line_stencil (me,
                                             Offset (span_points[LEFT], 0),
                                             Offset (span_points[RIGHT], 0));
       m.add_stencil (l);
index 5592d7b55c300c355c4181e0d07b127c76c4b105..0be53982606515a306bfc8cfcda34649864ce12c 100644 (file)
@@ -89,7 +89,7 @@ Engraver_group_engraver::pending_grob_count () const
     {
       Context *c = unsmob_context (scm_car (s));
       Engraver_group_engraver * group
-       =dynamic_cast<Engraver_group_engraver*> (c->implementation ());
+       = dynamic_cast<Engraver_group_engraver*> (c->implementation ());
 
       if (group)
        count += group->pending_grob_count (); 
@@ -202,7 +202,7 @@ recurse_down_engravers (Context * c, Engraver_method ptr, bool context_first)
     }
 
   for (SCM s = c->children_contexts () ; scm_is_pair (s);
-       s =scm_cdr (s))
+       s = scm_cdr (s))
     {
       recurse_down_engravers (unsmob_context (scm_car (s)), ptr, context_first);
     }
index 9fe4f5f64bf7252b2edc0980f33c0986d4caaa6d..de42836dcf4a8e598b53c0ff075a96a5d4abdfc7 100644 (file)
@@ -130,7 +130,7 @@ LY_DEFINE (ly_transpose_key_alist, "ly:transpose-key-alist",
                      scm_to_int (scm_cdr (key)),
                      scm_to_int (alter));
 
-         orig =orig.transposed (*p);
+         orig = orig.transposed (*p);
 
          SCM key = scm_cons (scm_int2num (orig.get_octave ()),
                             scm_int2num (orig.get_notename ()));
@@ -143,7 +143,7 @@ LY_DEFINE (ly_transpose_key_alist, "ly:transpose-key-alist",
          Pitch orig (0, scm_to_int (key), scm_to_int (alter));
          orig = orig.transposed (*p);
 
-         key =scm_int2num (orig.get_notename ());
+         key = scm_int2num (orig.get_notename ());
          alter = scm_int2num (orig.get_alteration ());
          newlist = scm_cons (scm_cons (key, alter), newlist);
        }
index 9b2c9cae596fe1817610e82f118e26a848bfd7ac..9a615f073dcdcb07ee25aec4fe05a85760804fc7 100644 (file)
@@ -47,14 +47,14 @@ Fingering_engraver::acknowledge_grob (Grob_info inf)
 {
   if (Stem::has_interface (inf.grob_))
     {
-      for (int i= 0; i < fingerings_.size (); i++)
+      for (int i = 0; i < fingerings_.size (); i++)
        {
          Side_position_interface::add_support (fingerings_[i], inf.grob_);
        }
     }
   else if (Rhythmic_head::has_interface (inf.grob_))
     {
-      for (int i= 0; i < fingerings_.size (); i++)
+      for (int i = 0; i < fingerings_.size (); i++)
        {
          Grob*t = fingerings_[i];
          Side_position_interface::add_support (t,inf.grob_);
@@ -67,7 +67,7 @@ Fingering_engraver::acknowledge_grob (Grob_info inf)
 void
 Fingering_engraver::process_music ()
 {
-  for (int i= reqs_.size (); i--;)
+  for (int i = reqs_.size (); i--;)
     {
       SCM dir = reqs_[i]->get_property ("direction");
       make_script (to_dir (dir), reqs_[i], i);
index 6b6ba4e5a6da81735cc16e996e5f34bc80c3cbff..ee26880d4deeb366207740e1d042c1b953850dc2 100644 (file)
@@ -53,7 +53,7 @@ Global_context::add_moment_to_process (Moment m)
   if (m < now_mom_)
     programming_error ("Trying to freeze in time.");
   
-  for (int i= 0; i <  extra_mom_pq_.size (); i++)
+  for (int i = 0; i <  extra_mom_pq_.size (); i++)
     if (extra_mom_pq_[i] == m)
       return;
   extra_mom_pq_.insert (m);
index ce0c6224c291c39f80c3da27055c25a0e56d7ade..f5672e9c5e42158ea34990085f6fcd6e772dfc93 100644 (file)
@@ -24,6 +24,6 @@ add_constructor (Global_ctor c)
 void
 call_constructors ()
 {
-  for (int i= 0; i < ctor_global_statics_->size (); i++)
+  for (int i = 0; i < ctor_global_statics_->size (); i++)
     (ctor_global_statics_->elem (i)) ();
 }
index c25d2403a6940d58db6c9c45a2b710c904e3d996..6632d06bfe7d6195feb0908cb77661cbce4a28b6 100644 (file)
@@ -204,7 +204,7 @@ Gourlay_breaking::do_solve () const
   if (optimal_paths.top ().demerits_ >= infinity_f)
     warning (_ ("No feasible line breaking found"));
   
-  for (int i= final_breaks.size (); i--;)
+  for (int i = final_breaks.size (); i--;)
     {
       Column_x_positions cp (optimal_paths[final_breaks[i]].line_config_);
       
index 17ba7bd187f12ec5215c77ec8c39b1bb7056f07a..daa81375487ee0141b14954bc03301ac3abb69d5 100644 (file)
@@ -28,7 +28,7 @@ Grace_iterator::process (Moment m)
 Moment
 Grace_iterator::pending_moment () const
 {
-  Moment cp =Music_wrapper_iterator::pending_moment ();
+  Moment cp = Music_wrapper_iterator::pending_moment ();
 
   Moment pending;
   pending.grace_part_ =  start_mom_.grace_part_ + cp.main_part_;
index 21ce34c48ec7820b4d17351980acb7fe7a816671..8bcf12bdddc83073cc60c84ea78b78b077e7a239 100644 (file)
@@ -65,7 +65,7 @@ check_interfaces_for_property (Grob const *me, SCM sym)
   SCM ifs = me->get_property ("interfaces");
 
   bool found = false;
-  for (; !found && scm_is_pair (ifs); ifs =scm_cdr (ifs))
+  for (; !found && scm_is_pair (ifs); ifs = scm_cdr (ifs))
     {
       SCM iface = scm_hashq_ref (all_ifaces , scm_car (ifs), SCM_BOOL_F);
       if (iface == SCM_BOOL_F)
@@ -76,7 +76,7 @@ check_interfaces_for_property (Grob const *me, SCM sym)
          continue;
        }
 
-      found= found || (scm_c_memq (sym, scm_caddr (iface)) != SCM_BOOL_F);
+      found = found || (scm_c_memq (sym, scm_caddr (iface)) != SCM_BOOL_F);
     }
 
   if (!found)
index e3917c375854a57422f2ecf674f7e21701e67926..86e2814900da7ad79a26887a220f076ba6281fe5 100644 (file)
@@ -69,7 +69,7 @@ Grob_pq_engraver::acknowledge_grob (Grob_info gi)
                         gi.grob_->self_scm (),
                         SCM_EOL);
 
-      SCM busy= get_property ("busyGrobs");
+      SCM busy = get_property ("busyGrobs");
       busy = scm_merge_x (lst, busy, ly_grob_pq_less_p_proc);
       context ()->set_property ("busyGrobs", busy);
     }
index ffee088446e2eb92c3a1e6ed226429ab58fa6a62..888e6836db9511097a1ae04989189b582b03486c 100644 (file)
@@ -48,7 +48,7 @@ Grob::Grob (SCM basicprops,
   key_ = key;
   /* FIXME: default should be no callback.  */
   self_scm_ = SCM_EOL;
-  pscore_= 0;
+  pscore_ = 0;
   status_ = 0;
   original_ = 0;
   immutable_property_alist_ =  basicprops;
@@ -414,7 +414,7 @@ Grob::extent (Grob *refp, Axis a) const
     ;
   else if (ly_c_procedure_p (d->dimension_))
     /* FIXME: add doco on types, and should typecheck maybe?  */
-    d->dimension_= scm_call_2 (d->dimension_, self_scm (), scm_int2num (a));
+    d->dimension_ = scm_call_2 (d->dimension_, self_scm (), scm_int2num (a));
   else
     return ext;
 
index de83f6a3b869eb96d9247fda99f63f04f1055e2d..e00283992465ece067cfd5be7d97faff2998624f 100644 (file)
@@ -24,7 +24,7 @@ MAKE_SCHEME_CALLBACK (Hairpin, print, 1);
 SCM
 Hairpin::print (SCM smob) 
 {
-  Grob *me= unsmob_grob (smob);
+  Grob *me = unsmob_grob (smob);
   Spanner *spanner = dynamic_cast<Spanner*> (me);
 
   SCM s = me->get_property ("grow-direction");
index f2f73efacf5d8a646f0524bb6a9f3d5159511b13..a8dfbcbc177e3b1c6939542828dcad3fddb389a2 100644 (file)
@@ -24,7 +24,7 @@ public:
   
 private:
   Audio_item (Audio_item const&);
-  Audio_item& operator= ( Audio_item const&);
+  Audio_item& operator = ( Audio_item const&);
 };
 
 class Audio_dynamic : public Audio_item
index e4e6590f07dce95483df5dfc1811f8ff40ddbdf8..570307b1ec2bb681bd44960741636aeba2a7920a 100644 (file)
@@ -32,7 +32,7 @@ protected:
 
   Simple_spacer_wrapper* generate_spacing_problem (Link_array<Grob> const &, Interval) const;
 
-  virtual Array<Column_x_positions> do_solve () const= 0;
+  virtual Array<Column_x_positions> do_solve () const = 0;
 
 public:
   Simple_spacer* (*get_line_spacer) ();
index c655969c4eebaf5d0a8a79eea39ef1bd26d2c2a2..8cf0ba306a1a0028b6673b8a114fa532ee462b21 100644 (file)
@@ -28,8 +28,8 @@
   voiceA = \notes { \grace b16 c'2 }
   voiceB = \notes { c'2 \voiceA }
 
-  the iterator for voiceB will contain a fixup entry with (START= 0/1,
-  LENGTH=2/1, GRACE_START=(0G-1/16) ) 
+  the iterator for voiceB will contain a fixup entry with (START = 0/1,
+  LENGTH =2/1, GRACE_START =(0G-1/16) ) 
    
   Graces at the start of a sequential music iterator are handled
   by initting here_mom_ with Music::start_music (); no fixups are needed.
index 17b6cfa4756f7e72becfb96085d9adb36c11691c..db082f8665f7d2e3abf33ef1678d9d3b7cf6eec8 100644 (file)
@@ -18,7 +18,7 @@
    for administration of what was done already
 */
 enum Grob_status {
-  ORPHAN= 0,                   // not yet added to Paper_score
+  ORPHAN = 0,                  // not yet added to Paper_score
   PRECALCING,
   PRECALCED,           // calcs before spacing done
   POSTCALCING,         // busy calculating. This is used to trap cyclic deps.
index ea403993e1e44ce81f03f007ca98c427dceadd59..baecc6fb9f820e474426e351f443f1935eba047f 100644 (file)
@@ -17,9 +17,9 @@ source file of the GNU LilyPond music typesetter
 
 #if __GNUC__ > 2
 std::ostream *open_file_stream (String file_name,
-                               std::ios_base::openmode mode=std::ios::out);
+                               std::ios_base::openmode mode = std::ios::out);
 #else
-std::ostream *open_file_stream (String file_name, int mode=ios::out);
+std::ostream *open_file_stream (String file_name, int mode = ios::out);
 #endif
 void close_file_stream (std::ostream *os);
 
index 3fcf49cf13c6a27222f45b1afd1223a7b2edaa46..95d2dfa913b55436d584c7c9fb8f03ea5f37d956 100644 (file)
@@ -162,7 +162,7 @@ public:
   SCM encoding_table_;
   
 private:
-  Tex_font_char_metric const *find_ascii (int ascii, bool warn=true) const;
+  Tex_font_char_metric const *find_ascii (int ascii, bool warn = true) const;
   Tex_font_metric ();
 };
 
index cc255a59c8ee81a59202cc06e8723cc7bae00992..9dba8e17bb9bb726f74496fd6357049626033b14 100644 (file)
@@ -99,25 +99,25 @@ ADD_THIS_TRANSLATOR (classname);\
 SCM                                                                                            \
 classname::static_translator_description () const \
 {                                                                                              \
-  SCM  static_properties= SCM_EOL;                                                             \
-  /*  static_properties= acons (name ,gh_str02scm (Translator::name (self_scm ())),            \
+  SCM  static_properties = SCM_EOL;                                                            \
+  /*  static_properties = acons (name ,gh_str02scm (Translator::name (self_scm ())),           \
                              static_properties_);                                              \
   */                                                                                           \
-  static_properties= scm_acons (ly_symbol2scm ("grobs-created"),                               \
+  static_properties = scm_acons (ly_symbol2scm ("grobs-created"),                              \
                              parse_symbol_list (grobs), static_properties);    \
                                                                                                \
-  static_properties= scm_acons (ly_symbol2scm ("description"),                                 \
+  static_properties = scm_acons (ly_symbol2scm ("description"),                                        \
                              scm_makfrom0str (desc), static_properties);                               \
                                                                                                \
-  static_properties= scm_acons (ly_symbol2scm ("interfaces-acked"),                            \
+  static_properties = scm_acons (ly_symbol2scm ("interfaces-acked"),                           \
                              parse_symbol_list (acked), static_properties);                    \
-  static_properties= scm_acons (ly_symbol2scm ("events-accepted"),                             \
+  static_properties = scm_acons (ly_symbol2scm ("events-accepted"),                            \
                              parse_symbol_list (accepted), static_properties);                 \
                                                                                                \
-  static_properties= scm_acons (ly_symbol2scm ("properties-read"),                             \
+  static_properties = scm_acons (ly_symbol2scm ("properties-read"),                            \
                              parse_symbol_list (read), static_properties);                     \
                                                                                                \
-  static_properties= scm_acons (ly_symbol2scm ("properties-written"),                          \
+  static_properties = scm_acons (ly_symbol2scm ("properties-written"),                         \
                                parse_symbol_list (write), static_properties);                  \
                                                                                                \
   return static_properties;                                                                    \
index 6408fea4ec80ab0720d1fabea491844c26bdd9c7..972807983768f7d3edf8221b33898484abee0f97 100644 (file)
@@ -15,8 +15,8 @@
 
 Input::Input (Source_file*s, char const *cl)
 {
-  source_file_=s;
-  defined_str0_=cl;
+  source_file_ = s;
+  defined_str0_ = cl;
 }
 
 Input::Input ()
index df7a6c5c756ee3d3735c29a2ec913549c9f92db2..a47b19eafd0f16981a693d7a9c266cba17e707c7 100644 (file)
@@ -78,10 +78,10 @@ Item::copy_breakable_items ()
       Grob * dolly = clone (count ++);
       Item * item = dynamic_cast<Item*> (dolly);
       pscore_->system_->typeset_grob (item);
-      new_copies[i] =item;
+      new_copies[i] = item;
     }
   while (flip (&i) != LEFT);
-  broken_to_drul_= new_copies;
+  broken_to_drul_ = new_copies;
 }
 
 
index 6dbc94a51db39edb0cdf7c23ea12f7f4b74cf636..e20570df6f42e9befa6023b586a2201de990862e 100644 (file)
@@ -26,8 +26,8 @@ struct Key_signature_interface
 /*
   FIXME: too much hardcoding here.
  */
-const int FLAT_TOP_PITCH=2; /* fes,ges,as and bes typeset in lower octave */
-const int SHARP_TOP_PITCH=4; /*  ais and bis typeset in lower octave */
+const int FLAT_TOP_PITCH =2; /* fes,ges,as and bes typeset in lower octave */
+const int SHARP_TOP_PITCH =4; /*  ais and bis typeset in lower octave */
 
 /*
   TODO: look this up. I'm not sure where the naturals ought to go. 
@@ -72,13 +72,13 @@ alteration_pos  (SCM what, int alter, int c0p)
        it's a hack, but probably not worth  
        the effort of finding a nicer solution.
        --dl. */
-  if (c0==2 && alter >0 && p==3)
+  if (c0==2 && alter >0 && p ==3)
     p -= 7;
-  if (c0==-3 && alter>0 && p==-1)
+  if (c0==-3 && alter>0 && p ==-1)
     p += 7;
-  if (c0==-4 && alter<0 && p==-1)
+  if (c0==-4 && alter<0 && p ==-1)
     p += 7;
-  if (c0==-2 && alter<0 && p==-3)
+  if (c0==-2 && alter<0 && p ==-3)
     p += 7;
     
   return p + c0;
@@ -92,7 +92,7 @@ MAKE_SCHEME_CALLBACK (Key_signature_interface,print,1);
 SCM
 Key_signature_interface::print (SCM smob)
 {
-  Grob*me =unsmob_grob (smob);
+  Grob*me = unsmob_grob (smob);
 
   Real inter = Staff_symbol_referencer::staff_space (me)/2.0;
 
@@ -148,7 +148,7 @@ Key_signature_interface::print (SCM smob)
       
       Stencil natural;
       if (scm_is_pair (old))
-       natural=Font_interface::get_default_font (me)->
+       natural = Font_interface::get_default_font (me)->
            find_by_name (String ("accidentals-") + style + String ("0"));
       
 
index 78f42bd1d786505d97c2bf084fffd192d4d3d3c6..53b74028c3426d5e5d590c4a5df0aa796ca9b9fc 100644 (file)
@@ -20,9 +20,9 @@ minimise_least_squares (Real * coef, Real * offset,
   Real sqx = 0.0;
   Real sxy = 0.0;
 
-  for (int i= 0; i < input.size ();i++) 
+  for (int i = 0; i < input.size ();i++) 
     {
-      Real x=input[i][X_AXIS];
+      Real x = input[i][X_AXIS];
       Real y = input[i][Y_AXIS];
       sx += x;
       sy += y;
index e0eda1fb70d5c9287d4a4652968fec926493478e..b1f5b3aed63f13f64e484478af694684616f42a3 100644 (file)
@@ -1,5 +1,5 @@
 /* 
-  ledger-line-engraver.cc --  implement Ledger_line_engraver=
+  ledger-line-engraver.cc --  implement Ledger_line_engraver =
   
   source file of the GNU LilyPond music typesetter
   
index 5d317a2979529217089f190c30fbdc1a983e3aed..29e4d6367d0cd70557aa4964c90b6a2889d2710d 100644 (file)
@@ -294,7 +294,7 @@ HYPHEN              --
                error_level_ = 1;
        }
 
-       for (int i= 0; i < n; i++)
+       for (int i = 0; i < n; i++)
        {
                yyinput ();
        }
@@ -564,7 +564,7 @@ HYPHEN              --
 }
 {REAL}         {
        Real r;
-       int cnv=sscanf (YYText (), "%lf", &r);
+       int cnv = sscanf (YYText (), "%lf", &r);
        assert (cnv == 1);
 
        yylval.scm = scm_make_real (r);
@@ -592,7 +592,7 @@ HYPHEN              --
 }
 
 <INITIAL,lyrics,notes,figures>\\. {
-    char c= YYText ()[1];
+    char c = YYText ()[1];
 
     switch (c) {
     case '>':
@@ -772,7 +772,7 @@ Lily_lexer::is_figure_state () const
 void
 strip_leading_white (String&s)
 {
-       int i= 0;
+       int i = 0;
        for (;  i < s.length (); i++) 
                if (!isspace (s[i]))
                        break;
@@ -783,7 +783,7 @@ strip_leading_white (String&s)
 void
 strip_trailing_white (String&s)
 {
-       int i=s.length ();      
+       int i = s.length ();    
        while (i--) 
                if (!isspace (s[i]))
                        break;
@@ -818,7 +818,7 @@ is_valid_version (String s)
 String
 lyric_fudge (String s)
 {
-  char  * chars  =s.get_copy_str0 ();
+  char  * chars  = s.get_copy_str0 ();
 
   for (char * p = chars; *p ; p++)
     {
@@ -830,7 +830,7 @@ lyric_fudge (String s)
   delete[] chars;
 
   int i = 0;   
-  if ((i=s.index ("\\,")) != -1)   // change "\," to TeX's "\c "
+  if ((i = s.index ("\\,")) != -1)   // change "\," to TeX's "\c "
     {
       * (s.get_str0 () + i + 1) = 'c';
       s = s.left_string (i+2) + " " + s.right_string (s.length ()-i-2);
@@ -886,7 +886,7 @@ lookup_markup_command (String s)
 int
 music_function_type (SCM func)
 {
-       SCM type= scm_object_property (func, ly_symbol2scm ("music-function-signature-keyword"));
+       SCM type = scm_object_property (func, ly_symbol2scm ("music-function-signature-keyword"));
        if (type == ly_symbol2scm ("scm"))
        {
                return MUSIC_FUNCTION_SCM;
index f907fef75830bcfeec7d24c544b699be204dc173..936d12d4600198f5a00c127d168aea0a9c19955f 100644 (file)
@@ -306,7 +306,7 @@ is_axis (SCM s)
   if (scm_is_number (s))
     {
       int i = scm_to_int (s);
-      return i== 0 || i == 1;
+      return i == 0 || i == 1;
     }
   return false;
 }
@@ -732,7 +732,7 @@ display_list (SCM s)
   SCM p = scm_current_output_port ();
 
   scm_puts ("(", p);
-  for (; scm_is_pair (s); s =scm_cdr (s))
+  for (; scm_is_pair (s); s = scm_cdr (s))
     {
       scm_display (scm_car (s), p);
       scm_puts (" ", p);      
index 983dbc043fe035e2cbe48e719c7d10a3a51a0725..df238ef784c9b92179c8788e837f82bb86a7f5f4 100644 (file)
@@ -264,7 +264,7 @@ Lily_lexer::escaped_char (char c) const
 Input
 Lily_lexer::here_input () const
 {
-  Source_file * f= get_source_file ();
+  Source_file * f = get_source_file ();
   return Input (f, (char*)here_str0 ());
 }
 
index 11bdf7fa6d4c93257d5781a2ad5cbaceb99ef4c9..fd982bc65928fd4b7abba84f18b44f1a655444f3 100644 (file)
@@ -358,7 +358,7 @@ LY_DEFINE (ly_parser_lookup, "ly:parser-lookup",
   SCM_ASSERT_TYPE (scm_is_symbol (symbol), symbol, SCM_ARG2, __FUNCTION__, "symbol");
   SCM_ASSERT_TYPE (parser, parser_smob, SCM_ARG2, __FUNCTION__, "parser");  
 
-  SCM val= parser->lexer_->lookup_identifier (ly_scm2string (scm_symbol_to_string (symbol)));
+  SCM val = parser->lexer_->lookup_identifier (ly_scm2string (scm_symbol_to_string (symbol)));
   if (val != SCM_UNDEFINED)
     return val;
   else
index 201df916f0df9c731578b7db6b008807a0c9b550..4d202f05b294eec47a02a91cc71fe7afd7a18b7f 100644 (file)
@@ -274,7 +274,7 @@ Line_spanner::print (SCM smob)
            + bound[RIGHT]->extent (common[X_AXIS], ax).center ()
            - bound[LEFT]->extent (common[X_AXIS], ax).center ();
 
-         my_off[ax] =me->relative_coordinate (common[a], ax);
+         my_off[ax] = me->relative_coordinate (common[a], ax);
          his_off[ax] = bound[LEFT]->relative_coordinate (common[a], ax);
          
        }
index dd82090959a71675436e08f18f532db26fabcb0e..37c51a765544a4a3cd21fd0a3f6c30b903bb67b7 100644 (file)
@@ -49,7 +49,7 @@ Lookup::dot (Offset p, Real radius)
  *        /    |   v
  *       |    /
  *       |   /
- * (0,0) x  /slope=dy/dx
+ * (0,0) x  /slope = dy/dx
  *       | /
  *       |/
  *
@@ -80,7 +80,7 @@ Lookup::dashed_slur (Bezier b, Real thick, Real dash)
 {
   SCM l = SCM_EOL;
 
-  for (int i= 4; i -- ;)
+  for (int i = 4; i -- ;)
     {
       l = scm_cons (ly_offset2scm (b.control_[i]), l);
     }
@@ -363,9 +363,9 @@ Lookup::slur (Bezier curve, Real curvethick, Real linethick)
   
   SCM scontrols[8];
 
-  for (int i=4; i--;)
+  for (int i =4; i--;)
     scontrols[ i ] = ly_offset2scm (back.control_[i]);
-  for (int i=4 ; i--;)
+  for (int i =4 ; i--;)
     scontrols[i+4] = ly_offset2scm (curve.control_[i]);
 
   /*
@@ -373,7 +373,7 @@ Lookup::slur (Bezier curve, Real curvethick, Real linethick)
    */
   int indices[]= {5, 6, 7, 4, 1, 2, 3, 0};
   SCM list = SCM_EOL;
-  for (int i= 8; i--;)
+  for (int i = 8; i--;)
     {
       list = scm_cons (scontrols[indices[i]], list);
     }
index f3f0c528b3469b6ea5d199cc1f0bb58e80b58767..9b0a6dc5586b1b40329e59798f8da6418156027b 100644 (file)
@@ -94,7 +94,7 @@ ly_module_symbols (SCM mod)
 {
   SCM_VALIDATE_MODULE (1, mod);
   
-  SCM obarr= SCM_MODULE_OBARRAY (mod);
+  SCM obarr = SCM_MODULE_OBARRAY (mod);
   return scm_internal_hash_fold ((Hash_cl_func) &accumulate_symbol,
                                 NULL, SCM_EOL, obarr); 
 }
@@ -119,7 +119,7 @@ LY_DEFINE (ly_module2alist, "ly:module->alist",
           "Dump the contents of  module @var{mod} as an alist.")
 {
   SCM_VALIDATE_MODULE (1, mod);
-  SCM obarr= SCM_MODULE_OBARRAY (mod);
+  SCM obarr = SCM_MODULE_OBARRAY (mod);
 
   return scm_internal_hash_fold ((Hash_cl_func) &entry_to_alist, NULL, SCM_EOL, obarr); 
 }
index 6f118427a891f893ce7fae3ba77edcfc063a9589..c1076cd792534a3d4da7522b546302df3dd45c19 100644 (file)
@@ -168,7 +168,7 @@ Lyric_combine_music_iterator::process (Moment m)
 
   if (get_busy_status () && !melisma_busy () && lyric_iter_->ok ())
     {
-      Moment m= lyric_iter_->pending_moment ();
+      Moment m = lyric_iter_->pending_moment ();
       lyric_iter_->process (m);
     }
 }
index 39cd7555f5d858e80daa4d90d20c742f42f391f9..abe2e09ba9bbb2a9c91bbd7277d6e3a69d763807 100644 (file)
@@ -97,7 +97,7 @@ Hyphen_spanner::set_spacing_rods (SCM smob)
   r.distance_ =
     robust_scm2double (me->get_property ("minimum-length"), 0);
 
-  Direction d=LEFT;
+  Direction d = LEFT;
   do
     {
       r.item_l_drul_[d] = sp->get_bound (d);
index 2cd0a59d1f31cac3e9dfbbb8cc3c1c357feca122..71c45cfa259a670603e64dbf6425cc11b06dd26e 100644 (file)
@@ -123,7 +123,7 @@ static Long_option_init options_static[] =
   {
     {_i ("EXPR"), "evaluate", 'e',
      _i ("set option, use -e '(ly:option-usage)' for help")},
-    /* Bug in option parser: --output=foe is taken as an abbreviation
+    /* Bug in option parser: --output =foe is taken as an abbreviation
        for --output-format.  */
     {_i ("EXT"), "format", 'f', _i ("select back-end to use")},
     {0, "help", 'h',  _i ("print this help")},
@@ -150,12 +150,12 @@ static void
 dir_info (FILE *out)
 {
   fputs ("\n", out);
-  fprintf (out, "LILYPOND_DATADIR=\"%s\"\n", LILYPOND_DATADIR);
-  fprintf (out, "LOCAL_LILYPOND_DATADIR=\"\%s\"\n", LOCAL_LILYPOND_DATADIR);
-  fprintf (out, "LOCALEDIR=\"%s\"\n", LOCALEDIR);
+  fprintf (out, "LILYPOND_DATADIR =\"%s\"\n", LILYPOND_DATADIR);
+  fprintf (out, "LOCAL_LILYPOND_DATADIR =\"\%s\"\n", LOCAL_LILYPOND_DATADIR);
+  fprintf (out, "LOCALEDIR =\"%s\"\n", LOCALEDIR);
 
   char *lilypond_prefix = getenv ("LILYPONDPREFIX");
-  fprintf (out, "LILYPONDPREFIX=\"%s\"\n",
+  fprintf (out, "LILYPONDPREFIX =\"%s\"\n",
           (lilypond_prefix ? lilypond_prefix : ""));
 }
 
index bda7ed0bda33098e1239643b47696dc6fc6a4f8e..85e3c4e99f543a36a185a4ce63ad26b632061e70 100644 (file)
@@ -32,7 +32,7 @@ Measure_grouping_engraver::finalize ()
     {
       grouping_->set_bound (RIGHT, unsmob_grob (get_property ("currentCommandColumn")));
       grouping_->suicide ();
-      grouping_= 0;
+      grouping_ = 0;
     }
 }
 
index 752b3358a94a3fcc8624399985ec3ea7cf8cbf7f..50eab8b60760a67015a5d45ff6ef27f11b0f69e7 100644 (file)
@@ -81,7 +81,7 @@ Metronome_mark_engraver::process_music ()
       create_items (mark_ev_);
 
       SCM proc = get_property ("metronomeMarkFormatter");
-      SCM result= scm_call_2 (proc, mark_ev_->self_scm (),
+      SCM result = scm_call_2 (proc, mark_ev_->self_scm (),
                              context ()->self_scm ()); 
       
       text_->set_property ("text", result);
index 916d518d955dde77a71fe0a9f71aff9c134fd5ab..064fdd2292deb1ff2986e00fc069e7a543410171 100644 (file)
@@ -458,7 +458,7 @@ Midi_track::data_string () const
   String str = Midi_chunk::data_string ();
   if (midi_debug_global_b)
     str += "\n";
-  for (Cons<Midi_event> *i=event_p_list_.head_; i; i = i->next_) 
+  for (Cons<Midi_event> *i = event_p_list_.head_; i; i = i->next_) 
     {
       str += i->car_->to_string ();
       if (midi_debug_global_b)
index 72c175a9564b5f2ab1964003967166e4aba6a0d1..2287a512ae4a8b68efb4b6cb3429d3f92b223048 100644 (file)
@@ -36,7 +36,7 @@ compare (Midi_note_event const& left, Midi_note_event const& right)
 Midi_walker::Midi_walker (Audio_staff* audio_staff, Midi_track* track)
 {
   track_ = track;
-  index_= 0;
+  index_ = 0;
   items_ = &audio_staff->audio_items_;
 
   last_mom_ = 0;
@@ -58,7 +58,7 @@ Midi_walker::do_start_note (Midi_note* note)
   Moment stop_mom = note->get_length () + ptr->audio_column_->at_mom ();
 
   bool play_start = true;
-  for (int i= 0; i < stop_note_queue.size (); i++) 
+  for (int i = 0; i < stop_note_queue.size (); i++) 
     {
       /* if this pith already in queue */
       if (stop_note_queue[i].val->get_pitch () == note->get_pitch ()) 
index 01e72f625874933868461090b2cbc7f278c550bb..649f72c900d98904cbc94b1b4c80a49e21273472 100644 (file)
@@ -18,7 +18,7 @@ int
 intlog2 (int d)
 {
   assert (d);
-  int i= 0;
+  int i = 0;
   while ((d != 1)) 
     {
       d /= 2;
index ea5ec2e7df8e848e7c525af56b9e7c146a2cae18..815f3f95297fd4ecb1837a403665b90a45708b16 100644 (file)
@@ -193,7 +193,7 @@ Moment::compare (Moment const &a, Moment const &b)
 void
 Moment::operator += (Moment const &src)
 {
-  main_part_ +=src.main_part_ ;
+  main_part_ += src.main_part_ ;
   grace_part_ += src.grace_part_;
 }
 void
index b9cbec39c8fd6d6d8993bd45ab14759b06f3aadc..7d5e333f6dcca879be02cfe752bdb06ca7ef28fe 100644 (file)
@@ -106,7 +106,7 @@ Multi_measure_rest_engraver::process_music ()
          Direction d = DOWN; 
          do {
            Grob *last = 0;
-           for (int i= 0; i <numbers_.size (); i++)
+           for (int i = 0; i <numbers_.size (); i++)
              {
                if (scm_int2num (d) == numbers_[i]->get_property ("direction"))
                  {
index 1b13aad8c55fd10f9b1db3359884053879f842b0..4cf770a1277609659c9f7583e0a17adec87a5b16 100644 (file)
@@ -180,7 +180,7 @@ Multi_measure_rest::symbol_stencil (Grob *me, Real space)
 Stencil
 Multi_measure_rest::big_rest (Grob *me, Real width)
 {
-  Real thick_thick =robust_scm2double (me->get_property ("thick-thickness"), 1.0);
+  Real thick_thick = robust_scm2double (me->get_property ("thick-thickness"), 1.0);
   Real hair_thick = robust_scm2double (me->get_property ("hair-thickness"), .1);
 
 
@@ -319,7 +319,7 @@ Multi_measure_rest::set_spacing_rods (SCM smob)
 
   Real sym_width = symbol_stencil (me, 0.0).extent (X_AXIS).length ();
   
-  for (int i= 0; i < 4; i++)
+  for (int i = 0; i < 4; i++)
     {
       Item *li = combinations[i][0];
       Item *ri = combinations[i][1];
index 928b8617bf32b5e4f8ae7c02319df202d69139be..c15ebaf2dbb29a36ddd931bd0db956f09e99f4e7 100644 (file)
@@ -81,7 +81,7 @@ Pitch
 music_list_to_relative (SCM l,Pitch p, bool ret_first)
 {
   Pitch first = p;
-  int count= 0;
+  int count = 0;
 
   Pitch last = p;
   for (SCM s = l; scm_is_pair (s);  s = scm_cdr (s))
index b8863aed5ef8d5f2988019296b1c9a7b5a70a81a..e1a71795b373c9beba568a1a77c589f357cc3531 100644 (file)
@@ -61,7 +61,7 @@ New_fingering_engraver::acknowledge_grob (Grob_info inf)
 {
   if (Rhythmic_head::has_interface (inf.grob_))
     {
-      Music * note_ev =inf.music_cause ();
+      Music * note_ev = inf.music_cause ();
       if (!note_ev)
        return;
       
@@ -111,12 +111,12 @@ New_fingering_engraver::add_script (Grob * head,
 {
   Finger_tuple ft ;
 
-  Grob * g=  make_item ("Script", event->self_scm () );
+  Grob * g =  make_item ("Script", event->self_scm () );
   make_script_from_event (g, &ft.follow_into_staff_, context (),
                          event->get_property ("articulation-type"), 0);
   if (g)
     {
-      ft.script_ =g ;
+      ft.script_ = g ;
       
       articulations_.push (ft);
  
index e14512c8612de993d8b869edb08e671ac557038f..81ecd8172f7010bf91766cd4ca2089ff443fb0d3 100644 (file)
@@ -129,7 +129,7 @@ New_lyric_combine_music_iterator::derived_substitute (Context *f, Context *t)
 {
   if (lyric_iter_)
     lyric_iter_->substitute_outlet (f,t);
-  if (lyrics_context_ && lyrics_context_==f)
+  if (lyrics_context_ && lyrics_context_ == f)
     lyrics_context_ = t;
   if (music_context_ && music_context_ == f)
     music_context_ = t; 
@@ -223,7 +223,7 @@ New_lyric_combine_music_iterator::process (Moment )
   if (music_context_
       && start_new_syllable () && lyric_iter_->ok ())
     {
-      Moment m= lyric_iter_->pending_moment ();
+      Moment m = lyric_iter_->pending_moment ();
       lyric_iter_->process (m);
 
       music_found_ = true; 
index b314cb2faf7c6eefdf28a213c86ca2d5876c19ee..a37cf3063fe8c83983ec39be0b7593f0bf862a8c 100644 (file)
@@ -140,7 +140,7 @@ check_meshing_chords (Grob *me,
   bool distant_half_collide = false;  
   bool full_collide = false;  
 
-  int i = 0, j= 0;
+  int i = 0, j = 0;
   while (i < ups.size () && j < dps.size ())
   {
     if (abs (ups[i] - dps[j]) == 1)
@@ -151,7 +151,7 @@ check_meshing_chords (Grob *me,
        else
          distant_half_collide = true;
       }
-    else if (ups[i]==dps[j])
+    else if (ups[i]== dps[j])
       full_collide = true;
     else if (ups[i] >dps[0] && ups[i] < dps.top ())
       merge_possible = false;
@@ -288,7 +288,7 @@ check_meshing_chords (Grob *me,
   Direction d = UP;
   do
     {
-      for (int i= 0; i < clash_groups[d].size (); i++)
+      for (int i = 0; i < clash_groups[d].size (); i++)
        (*offsets)[d][i] += d * shift_amount;
     }
   while ((flip (&d))!= UP);
@@ -318,7 +318,7 @@ Note_collision_interface::do_shifts (Grob* me)
   Real left_most = 1e6;
   
   Array<Real> amounts;
-  for (; scm_is_pair (hand); hand =scm_cdr (hand))
+  for (; scm_is_pair (hand); hand = scm_cdr (hand))
     {
       Grob * s = unsmob_grob (scm_caar (hand));
       Real amount = scm_to_double (scm_cdar (hand)) * wid;
@@ -329,7 +329,7 @@ Note_collision_interface::do_shifts (Grob* me)
        left_most = amount;
       
     }
-  for (; scm_is_pair (autos); autos =scm_cdr (autos))
+  for (; scm_is_pair (autos); autos = scm_cdr (autos))
     {
       Grob * s = unsmob_grob (scm_caar (autos));
       Real amount = scm_to_double (scm_cdar (autos)) *wid;
@@ -395,7 +395,7 @@ Note_collision_interface::automatic_shift (Grob *me,
       Array<int> & shift (shifts[d]);
       Link_array<Grob> & clashes (clash_groups[d]);
 
-      for (int i= 0; i < clashes.size (); i++)
+      for (int i = 0; i < clashes.size (); i++)
        {
          SCM sh
            = clashes[i]->get_property ("horizontal-shift");
@@ -406,7 +406,7 @@ Note_collision_interface::automatic_shift (Grob *me,
            shift.push (0);
        }
       
-      for (int i=1; i < shift.size (); i++)
+      for (int i =1; i < shift.size (); i++)
        {
          if (shift[i-1] == shift[i])
            {
@@ -422,7 +422,7 @@ Note_collision_interface::automatic_shift (Grob *me,
   d = UP;
   do
     {
-      for (int i= 0; i < clash_groups[d].size (); i++)
+      for (int i = 0; i < clash_groups[d].size (); i++)
        {
          Slice s (Note_column::head_positions_interval (clash_groups[d][i]));
          s[LEFT] --;
@@ -444,9 +444,9 @@ Note_collision_interface::automatic_shift (Grob *me,
   
   do
     {
-      for (int i=1; i < clash_groups[d].size (); i++)
+      for (int i =1; i < clash_groups[d].size (); i++)
        {
-         Slice prev =extents[d][i-1];
+         Slice prev = extents[d][i-1];
          prev.intersect (extents[d][i]);
          if (prev.length ()> 0 ||
  (extents[-d].size () && d * (extents[d][i][-d] - extents[-d][0][d]) < 0))
@@ -465,7 +465,7 @@ Note_collision_interface::automatic_shift (Grob *me,
   
   do
     {
-      for (int i= 0; i < clash_groups[d].size (); i++)
+      for (int i = 0; i < clash_groups[d].size (); i++)
        tups = scm_cons (scm_cons (clash_groups[d][i]->self_scm (),
                                 scm_make_real (offsets[d][i])),
                        tups);
index b44e7be487d72e3dab359f788fde720f1cebd851..a576939ae16542c0ce1769c404201a842c5554a1 100644 (file)
@@ -159,7 +159,7 @@ Note_column::accidentals (Grob *me)
 {
   SCM heads = me->get_property ("note-heads");
   Grob * acc = 0;
-  for (;scm_is_pair (heads); heads =scm_cdr (heads))
+  for (;scm_is_pair (heads); heads = scm_cdr (heads))
     {
       Grob * h = unsmob_grob (scm_car (heads));
       acc = h ? unsmob_grob (h->get_property ("accidental-grob")) : 0;
index 595750e2440a9c7e09de44561b6d86cc3a81e224..b87ecec4e3914e45d1a1245a7b5fa79f2c627ec1 100644 (file)
@@ -53,7 +53,7 @@ Note_heads_engraver::try_music (Music *m)
 void
 Note_heads_engraver::process_music ()
 {
-  for (int i= 0; i < note_evs_.size (); i++)
+  for (int i = 0; i < note_evs_.size (); i++)
     {
 
       Music * ev = note_evs_[i];
@@ -76,7 +76,7 @@ Note_heads_engraver::process_music ()
          dots_.push (d);
        }
 
-      Pitch *pit =unsmob_pitch (ev->get_property ("pitch"));
+      Pitch *pit = unsmob_pitch (ev->get_property ("pitch"));
 
       int pos = pit ? pit->steps () : 0;
       SCM c0 = get_property ("middleCPosition");
index e9787ce7a12e289cd6f094928902b2db575ddc3a..b89999aca55b48a47d91a2da99a23dd095228e58 100644 (file)
@@ -37,7 +37,7 @@ void
 Note_name_engraver::process_music ()
 {
   String s ;
-  for (int i= 0; i < events_.size (); i++)
+  for (int i = 0; i < events_.size (); i++)
     {
       if (i)
        s += " ";
index 71799e1c07a5124bb1969bdbac3c1d54d19cc115..88b0e48a4ea2e2253a91678f27e3f66bbcb76df3 100644 (file)
@@ -66,10 +66,10 @@ Note_performer::stop_translation_timestep ()
   // why don't grace notes show up here?
   // --> grace notes effectively do not get delayed
   Global_context * global = get_global_context ();
-  for (int i= 0; i < notes_.size (); i++)
+  for (int i = 0; i < notes_.size (); i++)
     {
       Audio_note* n = notes_[i];
-      Moment m= n->delayed_until_mom_;
+      Moment m = n->delayed_until_mom_;
       if (m.to_bool ())
        {
          global->add_moment_to_process (m);
@@ -81,13 +81,13 @@ Note_performer::stop_translation_timestep ()
     }
 
   Moment now = now_mom ();
-  for (int i= 0; i < notes_.size (); i++)
+  for (int i = 0; i < notes_.size (); i++)
     {
       play_element (notes_[i]);
     }
   notes_.clear ();
   note_evs_.clear ();
-  for (int i= 0; i < delayeds_.size (); i++)
+  for (int i = 0; i < delayeds_.size (); i++)
     {
       Audio_note* n = delayeds_[i];
       if (n->delayed_until_mom_ <= now)
index 377367a90971c5bba138963b1254d43716a7f79e..0460e59081692f250cf0887aaf8274d8c6e3a886 100644 (file)
@@ -41,7 +41,7 @@ Note_spacing::get_spacing (Grob *me, Item* right_col,
     {
       for (SCM  s = props[d]; scm_is_pair (s); s = scm_cdr (s))
        {
-         Item * it= dynamic_cast<Item*> (unsmob_grob (scm_car (s)));
+         Item * it = dynamic_cast<Item*> (unsmob_grob (scm_car (s)));
          
          if (d == RIGHT && it->break_status_dir () != col_dir)
            {
@@ -206,7 +206,7 @@ Note_spacing::right_column (Grob*me)
     {
       // I'm a lazy bum. We could do this in-place.
       SCM newright  = SCM_EOL;
-      for (SCM s = right ; scm_is_pair (s) ; s =scm_cdr (s))
+      for (SCM s = right ; scm_is_pair (s) ; s = scm_cdr (s))
        {
          if (unsmob_item (scm_car (s))->get_column () == mincol)
            newright = scm_cons (scm_car (s), newright);
@@ -263,7 +263,7 @@ Note_spacing::stem_dir_correction (Grob*me, Item * rcolumn,
     {
       for (SCM  s = props[d]; scm_is_pair (s); s = scm_cdr (s))
        {
-         Item * it= dynamic_cast<Item*> (unsmob_grob (scm_car (s)));
+         Item * it = dynamic_cast<Item*> (unsmob_grob (scm_car (s)));
 
          if (d == RIGHT)
            acc_right = acc_right || Note_column::accidentals (it);
@@ -382,7 +382,7 @@ Note_spacing::stem_dir_correction (Grob*me, Item * rcolumn,
 
          if (correct_stem_dirs)
            {
-             correction =abs (intersect.length ());
+             correction = abs (intersect.length ());
 
       
              /*
@@ -434,7 +434,7 @@ Note_spacing::stem_dir_correction (Grob*me, Item * rcolumn,
       Real corr = robust_scm2double (me->get_property ("stem-spacing-correction"), 0);
       corr =  (delta <= 1) ? 0.0 : 0.25;
       
-      correction=  -lowest * corr ;
+      correction =  -lowest * corr ;
     }
 
   *space += correction;
index a491ea42e3f84391dade53cf78fabeb5f4830b8d..985fa41120e16d7c09f722812f5e246fc80b6f2e 100644 (file)
@@ -57,7 +57,7 @@ Ottava_bracket::print (SCM smob)
        {
          SCM heads = b->get_property ("note-heads");
          common = common_refpoint_of_list (heads, common, X_AXIS);
-         for (SCM s = heads; scm_is_pair (s); s =scm_cdr (s))
+         for (SCM s = heads; scm_is_pair (s); s = scm_cdr (s))
            {
              Grob * h = unsmob_grob (scm_car (s));
              Grob * dots = Rhythmic_head::get_dots (h);
@@ -90,7 +90,7 @@ Ottava_bracket::print (SCM smob)
       Interval ext;
       if (Note_column::has_interface (b))
        {
-         for (SCM s = b->get_property ("note-heads"); scm_is_pair (s); s =scm_cdr (s))
+         for (SCM s = b->get_property ("note-heads"); scm_is_pair (s); s = scm_cdr (s))
            {
              Grob * h = unsmob_grob (scm_car (s));
              ext.unite (h->extent (common, X_AXIS));
index 0cf47d5039665bc4b201d21b79c16891f892f083..82586c91ef287ce499031bdbc8fd778d11dcc4b2 100644 (file)
@@ -49,7 +49,7 @@ Ottava_spanner_engraver::process_music ()
   SCM ott = get_property ("ottavation");
   if (ott != last_ottavation_)
     {
-      finished_= span_;
+      finished_ = span_;
       span_ = 0;
       if (scm_is_string (ott))
        {
index 1c2cb478345b88dec65a43105c76e5ace4a4df8d..404b51280786378a9d501d11166329fb1214619c 100644 (file)
@@ -34,7 +34,7 @@ Output_def::Output_def (Output_def const &s)
   smobify_self ();
 
   input_origin_ = s.input_origin_;
-  scope_= ly_make_anonymous_module (false);
+  scope_ = ly_make_anonymous_module (false);
   if (ly_c_module_p (s.scope_))
     ly_module_copy (scope_, s.scope_);
 }
index c2443f5b52146a659af5aa1ad9ce794c6f50e8c7..82364e9e82a7ed68b5e2be0d3099366c7fc1e518 100644 (file)
@@ -37,7 +37,7 @@ Output_property_engraver::try_music (Music* m)
 void
 Output_property_engraver::acknowledge_grob (Grob_info inf)
 {
-  for (int i=props_.size (); i--;)
+  for (int i = props_.size (); i--;)
     {
       Music * o = props_[i];
       SCM pred = o->get_property ("predicate");
@@ -49,7 +49,7 @@ Output_property_engraver::acknowledge_grob (Grob_info inf)
          /*
            should typecheck pred. 
          */
-         SCM result=scm_call_1 (pred, inf.grob_->self_scm ());
+         SCM result = scm_call_1 (pred, inf.grob_->self_scm ());
          if (to_boolean (result))
            {
              SCM sym = o->get_property ("grob-property");
index cb7c7c2618050f5f36906a380b281b1e406e2c4c..629366baf15927463a83974f05de12af1ba0bf14 100644 (file)
@@ -22,7 +22,7 @@
 SCM
 internal_ly_parse_scm (Parse_start * ps)
 {
-  Source_file *sf =ps->start_location_.source_file_;
+  Source_file *sf = ps->start_location_.source_file_;
   SCM port = sf->get_port ();
 
   int off = ps->start_location_.defined_str0_ - sf->to_str0 ();
index e85909b37db137ed0d3171742582bef7a25699a4..f93b0b5df771252ce00e2a5afd76e39af020fc4f 100644 (file)
@@ -1338,7 +1338,7 @@ re_rhythmed_music:
 
 context_change:
        CHANGE STRING '=' STRING  {
-               Music*t= MY_MAKE_MUSIC ("ContextChange");
+               Music*t = MY_MAKE_MUSIC ("ContextChange");
                t-> set_property ("change-to-type", scm_string_to_symbol ($2));
                t-> set_property ("change-to-id", $4);
 
@@ -1661,7 +1661,7 @@ command_element:
                $$->set_spot (THIS->here_input ());
        }
        | '|'      {
-               SCM pipe =THIS->lexer_->lookup_identifier ("pipeSymbol");
+               SCM pipe = THIS->lexer_->lookup_identifier ("pipeSymbol");
 
                if (Music * m = unsmob_music (pipe))
                        $$ = m->clone ();
@@ -1706,7 +1706,7 @@ command_element:
                $$ = unsmob_music (result);
        }
        | TIME_T fraction  {
-               SCM proc= ly_scheme_function ("make-time-signature-set");
+               SCM proc = ly_scheme_function ("make-time-signature-set");
 
                SCM result = scm_apply_2   (proc, scm_car ($2), scm_cdr ($2), SCM_EOL);
                scm_gc_protect_object (result);
@@ -1733,12 +1733,12 @@ command_req:
                $$ = $1;
        }
        | KEY DEFAULT {
-               Music *key= MY_MAKE_MUSIC ("KeyChangeEvent");
+               Music *key = MY_MAKE_MUSIC ("KeyChangeEvent");
                $$ = key;
        }
        | KEY NOTENAME_PITCH SCM_IDENTIFIER     {
 
-               Music *key= MY_MAKE_MUSIC ("KeyChangeEvent");
+               Music *key = MY_MAKE_MUSIC ("KeyChangeEvent");
                if (scm_ilength ($3) > 0)
                {               
                        key->set_property ("pitch-alist", $3);
index 2938f281d4c855672b58ddb0546be8e7876471cb..52811a6eb912383033fded13f4ebd678bb3753dd 100644 (file)
@@ -53,7 +53,7 @@ Part_combine_engraver::process_music ()
       SCM text = SCM_EOL;
       if (what == ly_symbol2scm ("solo1"))
        text = get_property ("soloText");
-      else if (what== ly_symbol2scm ("solo2"))
+      else if (what == ly_symbol2scm ("solo2"))
        text = get_property ("soloIIText");
       else if (what == ly_symbol2scm ("unisono"))
        text = get_property ("aDueText");
index 325f9306b64cc182e59447c0da3f8e19211febd4..7e0bec50e1b68d60b442f6d221efbca1fdecaa5c 100644 (file)
@@ -134,7 +134,7 @@ Percent_repeat_engraver::process_music ()
          finished_perc_ = perc_;
          typeset_perc ();
          perc_ = make_spanner ("PercentRepeat", repeat_->self_scm ());
-         SCM col =get_property ("currentCommandColumn");
+         SCM col = get_property ("currentCommandColumn");
          perc_->set_bound (LEFT, unsmob_grob (col));
        }
       else if (repeat_sign_type_ == DOUBLE_MEASURE)
@@ -168,7 +168,7 @@ Percent_repeat_engraver::typeset_perc ()
 {
   if (finished_perc_)
     {
-      SCM col =get_property ("currentCommandColumn");
+      SCM col = get_property ("currentCommandColumn");
       finished_perc_->set_bound (RIGHT, unsmob_grob (col));
       finished_perc_ = 0;
     }
index 6792231283fe6ce03be80956ed7bae20a3e788f5..56b477b45e49bfc2849afafefe025d873d7fd597 100644 (file)
@@ -36,7 +36,7 @@ Percent_repeat_iterator::ok () const
 void
 Percent_repeat_iterator::construct_children ()
 {
-  Repeated_music * mus =dynamic_cast<Repeated_music *> (get_music ());
+  Repeated_music * mus = dynamic_cast<Repeated_music *> (get_music ());
   finish_mom_ = mus->get_length ();
   child_iter_ = unsmob_iterator (get_iterator (mus->body ()));
 }
index c2b822e7655dbca8f8666a2dde79dc76af2a952a..0fde4b3e52f4dbca5ccde9e44e721d5ca3a960c1 100644 (file)
@@ -144,7 +144,7 @@ Performance::output_header_track (Midi_stream& midi_stream)
 void
 Performance::add_element (Audio_element *p)
 {
-  if (Audio_staff*s=dynamic_cast<Audio_staff *> (p)) 
+  if (Audio_staff*s = dynamic_cast<Audio_staff *> (p)) 
     {
       audio_staffs_.push (s);
     }
index 14a4239c1faaf6fb29abdf717634720ffdfd26f6..942f6f306e6bace2ab592782357fb9cb13911fdc 100644 (file)
@@ -45,6 +45,6 @@ void
 Performer::announce_element (Audio_element_info i)
 {
   if (!i.origin_trans_)
-    i.origin_trans_= this;
+    i.origin_trans_ = this;
   get_daddy_performer ()->announce_element (i);
 }
index 98712ee314f5e1dfa59f887bee56ff991ecc3e83..4b57352413d30ffbf86c7d48d310eb6fd103f833 100644 (file)
@@ -38,7 +38,7 @@ public:
 
 Phrasing_slur_engraver::Phrasing_slur_engraver ()
 {
-  events_[START] =events_[STOP] = 0;
+  events_[START] = events_[STOP] = 0;
 }
 
 bool
@@ -71,7 +71,7 @@ Phrasing_slur_engraver::try_music (Music *m)
 void
 Phrasing_slur_engraver::acknowledge_grob (Grob_info info)
 {
-  Grob *e =info.grob_;
+  Grob *e = info.grob_;
   if (Note_column::has_interface (info.grob_))
     {
       for (int i = slurs_.size (); i--; )
index 5f6b0503e0ea071dfeeb66f3b9c6976fd0dfb0fd..4e9160c98001f03911b2a501bde1fefc4a06437c 100644 (file)
@@ -310,7 +310,7 @@ Piano_pedal_engraver::create_bracket_grobs (Pedal_info *p, bool mixed)
 {
   if (!p->bracket_ && p->event_drul_[STOP])
     {
-      String msg =_f ("can't find start of piano pedal bracket: `%s'", p->name_);
+      String msg = _f ("can't find start of piano pedal bracket: `%s'", p->name_);
       p->event_drul_[STOP]->origin ()->warning (msg);
       p->event_drul_[STOP] =  0;
     }
index cd665d6da0fb5146c67400f7f8de6f14dd3e6826..63b6b3833e66ccc9308634bcc89d7a8d594ee558 100644 (file)
@@ -105,7 +105,7 @@ Piano_pedal_performer::create_audio_elements ()
 void
 Piano_pedal_performer::stop_translation_timestep ()
 {
-  for (int i= 0; i< audios_.size (); i++)
+  for (int i = 0; i< audios_.size (); i++)
     play_element (audios_[i]);
   audios_.clear ();
 }
index 0815d49b8c07d841065c8b6d9bb8523cadc17331..3504bdae6f962dce1e6011e3d35f9cc5e71f7151 100644 (file)
@@ -32,7 +32,7 @@ Pitch::Pitch ()
 int
 Pitch::compare (Pitch const &m1, Pitch const &m2)
 {
-  int o=  m1.octave_ - m2.octave_;
+  int o =  m1.octave_ - m2.octave_;
   int n = m1.notename_ - m2.notename_;
   int a = m1.alteration_ - m2.alteration_;
 
index c3c0ca7a21963157d857569374c9e4aacf78577b..521daaa245faa5cfa4c23c2b3d4520d4c1be0aa6 100644 (file)
@@ -25,7 +25,7 @@ Property_iterator::process (Moment m)
   if (scm_is_symbol (sym))
     {
       SCM val = get_music ()->get_property ("value");
-      bool ok= true;
+      bool ok = true;
       if (val != SCM_EOL)
        ok = type_check_assignment (sym, val, ly_symbol2scm ("translation-type?"));
       if (ok)
@@ -140,7 +140,7 @@ Push_property_iterator::do_quit ()
       SCM trans = get_outlet ()->self_scm ();
       SCM music = get_music ()->self_scm ();
 
-      Global_context * tg=  get_outlet ()->get_global_context ();
+      Global_context * tg =  get_outlet ()->get_global_context ();
       tg->add_finalization (scm_list_n (once_finalization_proc,
                                        trans, music, SCM_UNDEFINED));
     }
index 18f2205e566bca88b032b29be1cf7ee7c7af6150..9e682104f9a50063c117b1646ca6478c885a8af0 100644 (file)
@@ -47,7 +47,7 @@ Protected_scm::operator = (SCM s)
 Protected_scm&
 Protected_scm::operator = (Protected_scm const &s)
 {
-  return operator= (s.object_);
+  return operator = (s.object_);
 }
 
 Protected_scm::operator SCM () const
index b6616cce2b27cdb1332d1e2978f8a2a0ae60311b..598880e98a806108f496e6e1b070a0592bade1b4 100644 (file)
@@ -43,7 +43,7 @@ Rest_collision_engraver::process_acknowledged_grobs ()
   rest_collision_ = make_item ("RestCollision", SCM_EOL);
 
   
-  for (int i= 0; i < note_columns_.size (); i++)
+  for (int i = 0; i < note_columns_.size (); i++)
     Rest_collision::add_column (rest_collision_,note_columns_[i]);
 }
 
index 679a9426216c281185925314174da7c672a1ebd4..02d1f4e7d7a7a7775d316588c12beaf86337adc5 100644 (file)
@@ -120,7 +120,7 @@ Rest_collision::do_shift (Grob *me)
        center one should be centered on the staff.
        */
       Drul_array< Link_array <Grob > > ordered_rests;
-      for (int i= 0; i < rests.size (); i++)
+      for (int i = 0; i < rests.size (); i++)
        {
          Grob * r = Note_column::get_rest (rests[i]);
          
@@ -190,7 +190,7 @@ Rest_collision::do_shift (Grob *me)
       Grob * rcol = 0;
       Direction dir = CENTER;
 
-      for (int i= rests.size (); !rcol && i--;)
+      for (int i = rests.size (); !rcol && i--;)
        if (Note_column::dir (rests[i]))
          {
            dir = Note_column::dir (rests[i]);
index 91e447613a65013a19534c3488c467a245f156de..cecab147623723bc1fb374ea134aabceb8970e15 100644 (file)
@@ -63,7 +63,7 @@ Rest_engraver::process_music ()
       rest_->set_property ("duration-log",
                                  scm_int2num (durlog));
 
-      int dots =unsmob_duration (rest_req_->get_property ("duration"))->dot_count ();
+      int dots = unsmob_duration (rest_req_->get_property ("duration"))->dot_count ();
       
       if (dots)
        {
@@ -83,7 +83,7 @@ Rest_engraver::process_music ()
        */
       if (p)
        {
-         int pos= p->steps ();
+         int pos = p->steps ();
          SCM c0 = get_property ("middleCPosition");
          if (scm_is_number (c0))
            pos += scm_to_int (c0);
index 8b4a1f7f1b6871912d8a10a7c597478d2f24625c..8246d8ffc3c4a930c84a10dbc71d8d16f6413cdf 100644 (file)
@@ -65,7 +65,7 @@ Rhythmic_column_engraver::Rhythmic_column_engraver ()
   last_spacing_ = 0;
   
   stem_ = 0;
-  note_column_= 0;
+  note_column_ = 0;
   dotcol_ = 0;
 }
 
@@ -94,7 +94,7 @@ Rhythmic_column_engraver::process_acknowledged_grobs ()
 
        }
 
-      for (int i= 0; i < rheads_.size (); i++)
+      for (int i = 0; i < rheads_.size (); i++)
        {
          if (!rheads_[i]->get_parent (X_AXIS))
            Note_column::add_head (note_column_, rheads_[i]);
index c1ce62177ec6ce0dff1601858ebdcf612a828de3..88baddb71e9bba8ff90389b1c77fbb617b459e5e 100644 (file)
@@ -34,7 +34,7 @@ Rod::columnize ()
     Paper_column * pc = item_l_drul_[d]->get_column ();
     distance_ += - d * item_l_drul_[d]->relative_coordinate (pc, X_AXIS);
     item_l_drul_[d] = pc;
-  } while ((flip (&d))!=LEFT);
+  } while ((flip (&d))!= LEFT);
 
 }
 
index bf5eeb1fa18e395ec63f8288826c32782eb08d77..8a681d3aa7326081550aa2c48b46b0475b2f4eb7 100644 (file)
@@ -39,7 +39,7 @@ Score_performer::~Score_performer ()
 void
 Score_performer::play_element (Audio_element * p)
 {
-  if (Audio_item * i=dynamic_cast<Audio_item *> (p)) 
+  if (Audio_item * i = dynamic_cast<Audio_item *> (p)) 
     {
       audio_column_->add_audio_item (i);
     }
index 453a72a73ec090c3987364282d2e01c05d1ce49e..d2dd56d84928087283926ff00efa766c629c7c84 100644 (file)
@@ -80,7 +80,7 @@ Score::Score (Score const &s)
 
   smobify_self ();
 
-  Music *m =unsmob_music (s.music_);
+  Music *m = unsmob_music (s.music_);
   music_ = m ? m->clone ()->self_scm () : SCM_EOL;
   scm_gc_unprotect_object (music_);
   
index 27cdc606d22236c6950bc9b1857d877d36494019..9b0c1310ac4793ceec9bf4edb5c36546f29ba437 100644 (file)
@@ -65,7 +65,7 @@ Script_column_engraver::process_acknowledged_grobs ()
 
   if (scol_)
     {
-      for (int i= 0; i < scripts_.size (); i++)
+      for (int i = 0; i < scripts_.size (); i++)
        Script_column::add_staff_sided (scol_, scripts_[i]);
       scripts_.clear ();
     }
index c529cd37a2c119843598e6414d0af6dae55750f8..c82b30c4be4acbc7b28cd2b961929420d1c125a7 100644 (file)
@@ -72,7 +72,7 @@ MAKE_SCHEME_CALLBACK (Script_interface, print, 1);
 SCM
 Script_interface::print (SCM smob)
 {
-  Grob *me= unsmob_grob (smob);
+  Grob *me = unsmob_grob (smob);
 
   Direction dir = Side_position_interface::get_direction (me);
   if (!dir)
index e67a8f0d12fd2e8f6747450e75fc54727e17051b..5035e1e616f094811ae590c697b433c485a7e4ef 100644 (file)
@@ -32,7 +32,7 @@ Self_alignment_interface::aligned_on_parent (SCM element_smob, SCM axis)
   Grob *him = me->get_parent (a);
   Interval he = him->extent (him, a);
   
-  SCM sym= (a == X_AXIS) ? ly_symbol2scm ("self-alignment-X")
+  SCM sym = (a == X_AXIS) ? ly_symbol2scm ("self-alignment-X")
     : ly_symbol2scm ("self-alignment-Y");
   SCM align_prop (me->internal_get_property (sym));
 
@@ -77,7 +77,7 @@ Self_alignment_interface::aligned_on_self (SCM element_smob, SCM axis)
   Grob *me = unsmob_grob (element_smob);
   Axis a = (Axis) scm_to_int (axis);
 
-  SCM sym= (a == X_AXIS) ? ly_symbol2scm ("self-alignment-X")
+  SCM sym = (a == X_AXIS) ? ly_symbol2scm ("self-alignment-X")
     : ly_symbol2scm ("self-alignment-Y");
   
   SCM align (me->internal_get_property (sym));
index 7c62e720d9cfd8e46c014fced1ba822250bba4a3..69d56aa806f79f0ff94024cb184effd46707904c 100644 (file)
@@ -56,8 +56,8 @@ Separating_group_spanner::find_rods (Item * r, SCM next, Real padding)
        {
          Rod rod;
 
-         rod.item_l_drul_[LEFT] =l;
-         rod.item_l_drul_[RIGHT]=r;
+         rod.item_l_drul_[LEFT] = l;
+         rod.item_l_drul_[RIGHT]= r;
 
          rod.distance_ = li[RIGHT] - ri[LEFT] + padding;
        
index 9fb12d6686636de797641b8142837f5b75294172..54dae428db049e0f40b10b28ab3743a4631733b6 100644 (file)
@@ -90,7 +90,7 @@ Separating_line_group_engraver::finalize ()
   sep_span_->set_bound (RIGHT, unsmob_grob (ccol));
   sep_span_ = 0;
 
-  for  (int i= 0 ; i < last_spacings_.note_spacings_.size (); i++)
+  for  (int i = 0 ; i < last_spacings_.note_spacings_.size (); i++)
     {
       Pointer_group_interface::add_grob (last_spacings_.note_spacings_[i],
                                         ly_symbol2scm ("right-items" ),
@@ -125,7 +125,7 @@ Separating_line_group_engraver::acknowledge_grob (Grob_info i)
       return ;
     }
   
-  bool ib =Item::is_breakable (it);
+  bool ib = Item::is_breakable (it);
   Item *&p_ref_ (ib ? break_item_
                 : musical_item_);
 
index 370f6a8574df303c7bf3bfe94e5c5f087bfe80d0..d822c61b86f91b02d8361e2b377211dd5ee6d238 100644 (file)
@@ -154,7 +154,7 @@ Sequential_iterator::construct_children ()
 void
 Sequential_iterator::next_element (bool)
 {
-  Moment len =iter_->music_get_length () - iter_->music_start_mom ();
+  Moment len = iter_->music_get_length () - iter_->music_start_mom ();
   assert (!grace_fixups_  || grace_fixups_->start_ >= here_mom_);
   
   if (len.main_part_
index 832cdae64583c75dd302a623f1f806635dce752a..b34f3028a8abfb6c2045abd17eecfa9597659b67 100644 (file)
@@ -225,7 +225,7 @@ Side_position_interface::aligned_side (SCM element_smob, SCM axis)
   if (st && a == Y_AXIS
       && scm_is_number (me->get_property ("staff-padding")))
     {
-      Real padding=
+      Real padding =
       Staff_symbol_referencer::staff_space (me)
       * scm_to_double (me->get_property ("staff-padding"));
   
index d2578746665ae7fd9540ca80e794e3505539434f..8e3de2cf766105bc90212fd99d2c465f003e7c61 100644 (file)
@@ -108,7 +108,7 @@ Simple_spacer::add_rod (int l, int r, Real dist)
   Real block_force = c * block_stretch;
   force_ = force_ >? block_force;
 
-  for (int i=l; i < r; i++)
+  for (int i = l; i < r; i++)
     springs_[i].block_force_ = block_force >?
       springs_[i].block_force_ ;
 }
@@ -117,7 +117,7 @@ Real
 Simple_spacer::range_ideal_len (int l, int r)   const
 {
   Real d = 0.;
-  for (int i=l; i < r; i++)
+  for (int i = l; i < r; i++)
     d += springs_[i].ideal_;
   return d;
 }
@@ -126,7 +126,7 @@ Real
 Simple_spacer::range_stiffness (int l, int r) const
 {
   Real den = 0.0;
-  for (int i=l; i < r; i++)
+  for (int i = l; i < r; i++)
     {
       if (springs_[i].is_active_)
        den += 1 / springs_[i].hooke_;
@@ -139,7 +139,7 @@ Real
 Simple_spacer::active_blocking_force () const
 {
   Real bf = - infinity_f; 
-  for (int i= 0; i < springs_.size (); i++)
+  for (int i = 0; i < springs_.size (); i++)
     if (springs_[i].is_active_)
       {
        bf = bf >? springs_[i].block_force_;
@@ -160,7 +160,7 @@ Simple_spacer::active_springs_stiffness () const
 
       Real max_block_force = -infinity_f;
       int max_i = -1;
-      for (int i= 0; i < springs_.size (); i++)
+      for (int i = 0; i < springs_.size (); i++)
        {
          if (springs_[i].block_force_ > max_block_force)
            {
@@ -178,7 +178,7 @@ void
 Simple_spacer::set_active_states ()
 {
   /* float comparison is safe, since force is only copied.  */
-  for (int i= 0 ; i <springs_.size (); i++)
+  for (int i = 0 ; i <springs_.size (); i++)
     if (springs_[i].is_active_
        && springs_[i].block_force_ >= force_)
       {
@@ -191,7 +191,7 @@ Real
 Simple_spacer::configuration_length () const
 {
   Real l = 0.;
-  for (int i= 0; i < springs_.size (); i++)
+  for (int i = 0; i < springs_.size (); i++)
     l += springs_[i].length (force_);
 
   return l;
@@ -320,7 +320,7 @@ LY_DEFINE(ly_solve_spring_rod_problem, "ly:solve-spring-rod-problem",
       force_return = SCM_BOOL_F;
     }
 
-  SCM retval= SCM_EOL;
+  SCM retval = SCM_EOL;
   for (int i = posns.size(); i--;)
     {
       retval = scm_cons (scm_from_double (posns[i]), retval); 
@@ -390,7 +390,7 @@ Simple_spacer_wrapper::solve (Column_x_positions *positions, bool ragged)
     fucked up wtk1-fugue2 (taking 3 full pages.)
   */
   positions->config_.push (spacer_->indent_);
-  for (int i= 0; i < spacer_->springs_.size (); i++)
+  for (int i = 0; i < spacer_->springs_.size (); i++)
     {
       Real  l = spacer_->springs_[i].length ((ragged) ? 0.0 : spacer_->force_);
       positions->config_.push (positions->config_.top () + l);
@@ -487,7 +487,7 @@ Simple_spacer_wrapper::add_columns (Link_array<Grob> const &icols)
       }
   
   spaced_cols_ = cols;
-  for (int i= 0; i < cols.size () - 1; i++)
+  for (int i = 0; i < cols.size () - 1; i++)
     {
       Spring_smob *spring = 0;
 
@@ -513,7 +513,7 @@ Simple_spacer_wrapper::add_columns (Link_array<Grob> const &icols)
       spacer_->add_spring (ideal, hooke);
     }
   
-  for (int i= 0; i < cols.size () - 1; i++)
+  for (int i = 0; i < cols.size () - 1; i++)
     {
       for (SCM s = Spaceable_grob::get_minimum_distances (cols[i]);
           scm_is_pair (s); s = scm_cdr (s))
index e2e3c1977b11848e80eda37d7c2f8a29c6d0c5ee..c3294832b870ec7eb110f9d1db1fb0b47a41940b 100644 (file)
@@ -142,9 +142,9 @@ Simultaneous_music_iterator::run_always () const
 Music_iterator*
 Simultaneous_music_iterator::try_music_in_children (Music *m) const
 {
-  Music_iterator * b= 0;
+  Music_iterator * b = 0;
   for (SCM s = children_list_; !b && scm_is_pair (s); s = scm_cdr (s))
-    b =unsmob_iterator (scm_car (s))->try_music (m);
+    b = unsmob_iterator (scm_car (s))->try_music (m);
   return b;
 }
 
index 60d4afc2f846a550437c1b730c8bb120698f9567..850dd5419553cfedc5961880497f104cd06121d4 100644 (file)
@@ -90,7 +90,7 @@ Slash_repeat_engraver::try_music (Music * m)
       else
        return false;
       
-      Global_context *global =get_global_context ();
+      Global_context *global = get_global_context ();
       for (int i = 0; i < count; i++)  
        global->add_moment_to_process (next_moment_ + Moment (i) * body_length_);
   
index 626d709a0f3e53c2d8b53c82fe81b9eb4dc244ce..fd2092952df5618565363013fa6ebc2e028ddee3 100644 (file)
@@ -224,8 +224,8 @@ Slur_configuration::score_encompass (Slur_score_state const &state)
     {
       Real x = state.encompass_infos_[j].x_;
 
-      bool l_edge = j== 0;
-      bool r_edge = j==state.encompass_infos_.size ()-1;
+      bool l_edge = j == 0;
+      bool r_edge = j == state.encompass_infos_.size ()-1;
       bool edge =  l_edge || r_edge;
 
       if (! (x < attachment_[RIGHT][X_AXIS]
@@ -274,7 +274,7 @@ Slur_configuration::score_encompass (Slur_score_state const &state)
 
       if (state.dir_ * (y - state.encompass_infos_[j].stem_) < 0)
        {
-         Real stem_dem =state.parameters_.stem_encompass_penalty_ ;
+         Real stem_dem = state.parameters_.stem_encompass_penalty_ ;
          if ((l_edge && state.dir_ == UP)
              || (r_edge && state.dir_ == DOWN))
            stem_dem /= 5;
index ff2388f4cdfd25e394e5fde27a228ee60ad1ce72..1bc7fce62fa35fdcb513921ed2d3e527edc3ae49 100644 (file)
@@ -40,7 +40,7 @@ public:
 
 Slur_engraver::Slur_engraver ()
 {
-  events_[START] =events_[STOP] = 0;
+  events_[START] = events_[STOP] = 0;
 }
 
 bool
@@ -72,7 +72,7 @@ Slur_engraver::set_melisma (bool m)
 void
 Slur_engraver::acknowledge_grob (Grob_info info)
 {
-  Grob *e =info.grob_;
+  Grob *e = info.grob_;
   if (Note_column::has_interface (info.grob_))
     {
       for (int i = slurs_.size (); i--; )
index ea809ae5f6947ce1cfc0e78810f4ae541e58b59b..a38351406819c0819575065ae5c3caba5928770d 100644 (file)
@@ -80,7 +80,7 @@ Slur_performer::try_music (Music *m)
        {
          start_ev_ = m;
        }
-      else if (d==STOP)
+      else if (d == STOP)
        {
          now_stop_ev_ = m;
        }
index 999fd3f7dc196d92dc92f9f1df197c999603b38e..a44f834e1cbc6bd2027560feb74f262f06397753 100644 (file)
@@ -439,12 +439,12 @@ Slur_score_state::get_closest_index (SCM inspect_quants) const
   Real mindist = 1e6;
   for (int i = 0; i < configurations_.size (); i ++)
     {
-      Real d =fabs (configurations_[i]->attachment_[LEFT][Y_AXIS] - ins[LEFT])
+      Real d = fabs (configurations_[i]->attachment_[LEFT][Y_AXIS] - ins[LEFT])
        + fabs (configurations_[i]->attachment_[RIGHT][Y_AXIS] - ins[RIGHT]);
       if (d < mindist)
        {
          opt_idx = i;
-         mindist= d;
+         mindist = d;
        }
     }
   if (mindist > 1e5)
index 5f42e7c688c40661d60e21faf658d9a15af2401b..b597ab93b7913dd684b0777de9187bbc261253e1 100644 (file)
@@ -204,7 +204,7 @@ get_default_dir (Grob*me)
     = Pointer_group_interface__extract_grobs (me, (Grob*) 0, "note-columns");
 
   Direction d = DOWN;
-  for (int i= 0; i < encompasses.size (); i ++)
+  for (int i = 0; i < encompasses.size (); i ++)
     {
       if (Note_column::dir (encompasses[i]) < 0)
        {
index 674b935ec113aa8819d72a9be646fe21aafe3570..1253bb5f066db63365e3fe6ab38c8ea44167718a 100644 (file)
@@ -249,7 +249,7 @@ Source_file::get_line (char const* pos_str0) const
   if (!newline_locations_.size ())
     return 1;
   
-  int lo= 0;
+  int lo = 0;
   int hi = newline_locations_.size ();
 
   if (newline_locations_[lo] > pos_str0)
index 5d03537cdfd3ba88f75a820b5b8aeeae023f97c1..481bb9d7eeda48241f073bc1ae6144631b66eb2d 100644 (file)
@@ -15,7 +15,7 @@
 Sources::Sources ()
 {
   sourcefile_list_ = 0;
-  path_= 0;
+  path_ = 0;
   is_binary_ = false;
 }
 
index a27820498bbc5e307032224abb22c5119da2def5..48cb143b8d3ab90f422aa0a31540b1fd60e7e20e 100644 (file)
@@ -127,7 +127,7 @@ Spacing_engraver::stop_translation_timestep ()
 {
   Moment shortest_playing;
   shortest_playing.set_infinite (1);
-  for (int i= 0; i < playing_durations_.size (); i++)
+  for (int i = 0; i < playing_durations_.size (); i++)
     {
       Music * mus = playing_durations_[i].info_.music_cause ();
       if (mus)
@@ -139,7 +139,7 @@ Spacing_engraver::stop_translation_timestep ()
   Moment starter;
   starter.set_infinite (1);
 
-  for (int i= 0; i < now_durations_.size (); i++)
+  for (int i = 0; i < now_durations_.size (); i++)
     {
       Moment m = now_durations_[i].info_.music_cause ()->get_length ();
       if (m.to_bool ())
index a3029ed7af1540775b954b7ebd4c5f74d175103d..505a87ede29c27966714d455a8297a31321088ea 100644 (file)
@@ -163,7 +163,7 @@ Spacing_spanner::prune_loose_columns (Grob*me,Link_array<Grob> *cols, Rational s
 {
   Link_array<Grob> newcols;
   Real increment = robust_scm2double (me->get_property ("spacing-increment"), 1.2);
-  for (int i= 0; i < cols->size ();  i++)
+  for (int i = 0; i < cols->size ();  i++)
     {
       if (Item::is_breakable (cols->elem (i)) || Paper_column::is_musical (cols->elem (i)))
        {
@@ -192,8 +192,8 @@ Spacing_spanner::prune_loose_columns (Grob*me,Link_array<Grob> *cols, Rational s
            Set distance constraints for loose columns
          */
          Drul_array<Grob*> next_door;
-         next_door[LEFT] =cols->elem (i - 1);
-         next_door[RIGHT] =cols->elem (i + 1);   
+         next_door[LEFT] = cols->elem (i - 1);
+         next_door[RIGHT] = cols->elem (i + 1);          
          Direction d = LEFT;
          Drul_array<Real> dists (0,0);
 
@@ -264,14 +264,14 @@ Spacing_spanner::prune_loose_columns (Grob*me,Link_array<Grob> *cols, Rational s
 void
 Spacing_spanner::set_explicit_neighbor_columns (Link_array<Grob> cols)
 {
-  for (int i= 0; i < cols.size (); i++)
+  for (int i = 0; i < cols.size (); i++)
     {
       SCM right_neighbors = SCM_EOL;
       int min_rank = 100000;   // inf.
 
 
-      SCM wishes=  cols[i]->get_property ("spacing-wishes");
-      for (SCM s =wishes; scm_is_pair (s); s = scm_cdr (s))
+      SCM wishes =  cols[i]->get_property ("spacing-wishes");
+      for (SCM s = wishes; scm_is_pair (s); s = scm_cdr (s))
        {
          Item * wish = dynamic_cast<Item*> (unsmob_grob (scm_car (s)));
 
@@ -292,7 +292,7 @@ Spacing_spanner::set_explicit_neighbor_columns (Link_array<Grob> cols)
          if (right_rank <= min_rank)
            {
              if (right_rank < min_rank)
-               right_neighbors  =SCM_EOL;
+               right_neighbors  = SCM_EOL;
              
              min_rank = right_rank;
              right_neighbors = scm_cons (wish->self_scm (), right_neighbors);
@@ -475,7 +475,7 @@ Spacing_spanner::find_shortest (Grob *me, Link_array<Grob> const &cols)
 
   int max_idx = -1;
   int max_count = 0;
-  for (int i =durations.size (); i--;)
+  for (int i = durations.size (); i--;)
     {
       if (counts[i] >= max_count)
        {
@@ -509,7 +509,7 @@ Spacing_spanner::do_measure (Rational global_shortest, Grob*me,
 {
 
   Real headwid = robust_scm2double (me->get_property ("spacing-increment"), 1);
-  for (int i= 0; i < cols->size () - 1; i++)
+  for (int i = 0; i < cols->size () - 1; i++)
     {
       Item * l = dynamic_cast<Item*> (cols->elem (i));
       Item * r =  dynamic_cast<Item*> (cols->elem (i+1));
index 1c6d9afe3e57e9c806e71d1465dd809db6e371d0..7783f57c0844191f8dfd39ad05c29be9a190675b 100644 (file)
@@ -76,7 +76,7 @@ Span_arpeggio_engraver::stop_translation_timestep ()
        we do this very late, to make sure we also catch `extra'
        side-pos support like accidentals.
        */
-      for (int i= 0; i < arpeggios_.size (); i ++)
+      for (int i = 0; i < arpeggios_.size (); i ++)
        {
          for (SCM s = arpeggios_[i]->get_property ("stems");
               scm_is_pair (s); s = scm_cdr (s))
index f374931ceecb489a947bbce9761e758c8a2b6a7d..adeb1808c6c7c98203ec643ced2c8af6272d8598 100644 (file)
@@ -61,10 +61,10 @@ Span_bar_engraver::stop_translation_timestep ()
 {
   if (spanbar_) 
     {
-      for (int i= 0; i < bars_.size () ; i++)
+      for (int i = 0; i < bars_.size () ; i++)
        Span_bar::add_bar (spanbar_,bars_[i]);
 
-      SCM vissym =ly_symbol2scm ("break-visibility");
+      SCM vissym = ly_symbol2scm ("break-visibility");
       SCM vis = bars_[0]->internal_get_property (vissym);        
       if (ly_c_equal_p (spanbar_->internal_get_property (vissym), vis))
        spanbar_->internal_set_property (vissym, vis);
index 6dc63610c22cddbf1dc4fc039c120920eabc837a..b6cb8361fc29adb698a2e0056179114bac2f20f2 100644 (file)
@@ -199,11 +199,11 @@ Span_bar::evaluate_glyph (Grob*me)
     {
       type = ".|";
     }
-  else if (type== ":|")
+  else if (type == ":|")
     {
       type = "|.";
     }
-  else if (type== ":|:")
+  else if (type == ":|:")
     {
       type = ".|.";
     }
index 52afe553a40fe3ce0c1131f76840376b332b7f1c..6cbef11b474f09aa1dd917db343681404617ab5e 100644 (file)
@@ -147,7 +147,7 @@ Span_dynamic_performer::stop_translation_timestep ()
        }
       Moment start_mom = finished_dynamic_tuples_[0].mom_;
       Moment dt = finished_dynamic_tuples_.top ().mom_ - start_mom;
-      for (int i= 0; i < finished_dynamic_tuples_.size (); i++)
+      for (int i = 0; i < finished_dynamic_tuples_.size (); i++)
        {
          Audio_dynamic_tuple* a = &finished_dynamic_tuples_[i];
          Real volume = start_volume + dv * (Real) (a->mom_ - start_mom).main_part_
index 18f470499ad24696900470cf9d0da5c4fb98220e..134067150d66adf2b4124efcb1199a3463edade3 100644 (file)
@@ -90,7 +90,7 @@ Spanner::do_break_processing ()
       break_points.insert (left,0);
       break_points.push (right);
 
-      for (int i=1; i < break_points.size (); i++) 
+      for (int i =1; i < break_points.size (); i++) 
        {
          Drul_array<Item*> bounds;
          bounds[LEFT] = break_points[i-1];
@@ -129,7 +129,7 @@ Spanner::do_break_processing ()
        }
     }
   broken_intos_.sort (Spanner::compare);
-  for (int i= broken_intos_.size ();i--;)
+  for (int i = broken_intos_.size ();i--;)
     broken_intos_[i]->break_index_ = i;
 }
 
@@ -184,12 +184,12 @@ Spanner::set_bound (Direction d, Grob*s)
       return;
     }
   
-  spanned_drul_[d] =i;
+  spanned_drul_[d] = i;
 
   /**
      We check for System to prevent the column -> line_of_score
      -> column -> line_of_score -> etc situation */
-  if (d== LEFT && !dynamic_cast<System*> (this))
+  if (d == LEFT && !dynamic_cast<System*> (this))
     {
       set_parent (i, X_AXIS);
     }
@@ -313,7 +313,7 @@ Spanner::do_derived_mark () const
       scm_gc_mark (spanned_drul_[d]->self_scm ());
   while (flip (&d) != LEFT);
 
-  for (int i= broken_intos_.size () ; i--;)
+  for (int i = broken_intos_.size () ; i--;)
     scm_gc_mark (broken_intos_[i]->self_scm ());
 
   return SCM_EOL;
index f05f02462f2714af10fec254a91501be50fed48d..ca15b2f83148d334f8e7cec96e0b223b88bfa88c 100644 (file)
@@ -35,6 +35,6 @@ Spring_smob::print_smob (SCM, SCM p, scm_print_state *)
 SCM
 Spring_smob::equal_p (SCM a , SCM b)
 {
-  return a==b? SCM_BOOL_T : SCM_BOOL_F;
+  return a == b? SCM_BOOL_T : SCM_BOOL_F;
 }
 
index 866c33dbb17eb662d1c0becf476240c8aab58492..e128f9c745eaa1410e68be57e492ededc8f4826f 100644 (file)
@@ -33,7 +33,7 @@ Staff_spacing::next_note_correction (Grob * me,
   if (!g || !Note_column::has_interface (g))
     return 0.0;
 
-  Item *col =dynamic_cast<Item*> (g)->get_column ();
+  Item *col = dynamic_cast<Item*> (g)->get_column ();
   Real max_corr = 0. >? (- g->extent (col, X_AXIS)[LEFT]);
 
   /*
@@ -148,7 +148,7 @@ Staff_spacing::get_spacing_params (Grob *me, Real * space, Real * fixed)
   *space = 1.0;
   *fixed = 1.0;
 
-  Grob * separation_item= 0;
+  Grob * separation_item = 0;
   Item * me_item  = dynamic_cast<Item*> (me);
     
   for (SCM s = me->get_property ("left-items");
index 0cd364d81d2d8842f6a712e60bd5a4c1b447fe92..00974d30df4e7f7fe6563ed69e564271808cf085 100644 (file)
@@ -64,7 +64,7 @@ Staff_symbol::print (SCM smob)
 
       span_points[d] -= d* t/2;
     }
-  while (flip (&d) !=LEFT);
+  while (flip (&d) != LEFT);
 
 
   int l = Staff_symbol::line_count (me);
@@ -76,7 +76,7 @@ Staff_symbol::print (SCM smob)
                             t);
 
   Stencil m;
-  for (int i= 0; i < l; i++)
+  for (int i = 0; i < l; i++)
     {
       Stencil b(a);
       b.translate_axis (height - i * staff_space (me), Y_AXIS);
index 737a8e5435a7b7bfd2b08059353b6ebf91f01714..f511cfee8d42ef64f9daf5ff23a62d54b5aa8291 100644 (file)
@@ -46,7 +46,7 @@ Stanza_number_align_engraver::acknowledge_grob (Grob_info gi)
 void
 Stanza_number_align_engraver::stop_translation_timestep ()
 {
-  for (int i= lyrics_.size (); i--;)
+  for (int i = lyrics_.size (); i--;)
     for (int j = stanza_numbers_.size (); j--;)
       Side_position_interface::add_support (stanza_numbers_[j], lyrics_[i]);
   
index 69453f6cdcbb8498c75715e289012444a2978fd2..5f4588d31665340cb2aac881faf2293059d75b0e 100644 (file)
@@ -414,7 +414,7 @@ Stem::position_noteheads (Grob *me)
   for (int i = 1; i < heads.size (); i ++)
     {
       Real p = Staff_symbol_referencer::get_position (heads[i]);
-      Real dy =fabs (lastpos- p);
+      Real dy = fabs (lastpos- p);
 
       /*
        dy should always be 0.5, 0.0, 1.0, but provide safety margin
@@ -502,7 +502,7 @@ Stem::height (SCM smob, SCM ax)
   /*
     ugh. - this dependency should be automatic.
   */
-  Grob *beam= get_beam (me);
+  Grob *beam = get_beam (me);
   if (beam)
     {
       Beam::after_line_breaking (beam->self_scm ());
@@ -513,7 +513,7 @@ Stem::height (SCM smob, SCM ax)
   Interval iv;
   if (mol != SCM_EOL)
     iv = unsmob_stencil (mol)->extent (a);
-  if (Grob *b =get_beam (me))
+  if (Grob *b = get_beam (me))
     {
       Direction d = get_direction (me);
       iv[d] += d * Beam::get_thickness (b) * 0.5 ;
@@ -896,7 +896,7 @@ Stem::calc_stem_info (Grob *me)
 Slice
 Stem::beam_multiplicity (Grob *stem)
 {
-  SCM beaming= stem->get_property ("beaming");
+  SCM beaming = stem->get_property ("beaming");
   Slice le = int_list_to_slice (scm_car (beaming));
   Slice ri = int_list_to_slice (scm_cdr (beaming));
   le.unite (ri);
index c2f5f383f568ec9f44f83b7065e50c633b30fd69..0a81950758264313efff8c003748753b7eea32fc 100644 (file)
@@ -60,7 +60,7 @@ LY_DEFINE (ly_translate_stencil, "ly:stencil-translate",
   Offset o = ly_scm2offset (offset);
 
   SCM new_s = s->smobbed_copy ();
-  Stencil *q =unsmob_stencil (new_s);
+  Stencil *q = unsmob_stencil (new_s);
   q->translate (o);
   return new_s;
 }
index 93b0f177ac01476f24e51f4000e6aa3fa55fb670..c0ac1764d1d18bf8017d44a1267fcd15a41f74cc 100644 (file)
@@ -72,7 +72,7 @@ System_start_delimiter_engraver::process_music ()
 {
   if (!delim_)
     {
-      SCM delim_name =get_property ("systemStartDelimiter");
+      SCM delim_name = get_property ("systemStartDelimiter");
       delim_ = make_spanner_from_properties (this, delim_name, SCM_EOL,
                                             ly_symbol2string (delim_name).to_str0());
 
index d6aea8a81fde789b8085aa9f55e242a6a360fa24..add49a7ca3a0d960f6cda60efd42d60373a2d5f1 100644 (file)
@@ -63,7 +63,7 @@ Will not fix it since I'm not sure.
 Stencil
 System_start_delimiter::simple_bar (Grob*me,Real h) 
 {
-  Real lt =me->get_layout ()->get_dimension (ly_symbol2scm ("linethickness")) ;
+  Real lt = me->get_layout ()->get_dimension (ly_symbol2scm ("linethickness")) ;
   Real w = lt * robust_scm2double (me->get_property ("thickness"), 1);
   return Lookup::round_filled_box (Box (Interval (0,w), Interval (-h/2, h/2)),
                                   lt);
@@ -147,7 +147,7 @@ System_start_delimiter::print (SCM smob)
 
   Stencil m;
 
-  if (gsym== ly_symbol2scm ("bracket"))
+  if (gsym == ly_symbol2scm ("bracket"))
     m = staff_bracket (me, len);
   else if (gsym == ly_symbol2scm ("brace"))
     m = staff_brace (me, len);
index 0fad02b0c7faff1ca38c528d1ca2f65a46f41e26..d2b33e8369480863ce0ad39d9aa53d7f17a6c756 100644 (file)
@@ -113,7 +113,7 @@ System::get_lines ()
     fixups must be done in broken line_of_scores, because new elements
     are put over there.  */
   int count = 0;
-  for (int i= 0; i < broken_intos_.size (); i++)
+  for (int i = 0; i < broken_intos_.size (); i++)
     {
       Grob *se = broken_intos_[i];
       SCM all = se->get_property ("all-elements");
@@ -216,7 +216,7 @@ set_loose_columns (System* which, Column_x_positions const *posns)
       Real rx =        right->extent (common, X_AXIS)[LEFT];
       Real lx = left->extent (common, X_AXIS)[RIGHT];
       Real total_dx = rx - lx;
-      Interval cval =col->extent (col, X_AXIS);
+      Interval cval = col->extent (col, X_AXIS);
 
       /* Put it in the middle.  This is not an ideal solution -- the
         break alignment code inserts a fixed space before the clef
@@ -422,7 +422,7 @@ System::get_line ()
  
   Paper_system *pl = new Paper_system (sys_stencil, false);
   pl->staff_refpoints_ = staff_refpoints;
-  Item * break_point =this->get_bound(LEFT);
+  Item * break_point = this->get_bound(LEFT);
   pl->break_before_penalty_ =
     robust_scm2double (break_point->get_property ("page-penalty"), 0.0);
   
index 68357bac1cbb431252a1024dba2287275b56bacb..a5b1777f2d26ee24a866b605f87b484302d06608 100644 (file)
@@ -68,7 +68,7 @@ void
 Tab_note_heads_engraver::process_music ()
 {
   int j = 0; 
-  for (int i= 0; i < note_events_.size (); i++)
+  for (int i = 0; i < note_events_.size (); i++)
     {
       SCM stringTunings = get_property ("stringTunings");
       int number_of_strings = ((int) ly_length (stringTunings));
@@ -79,9 +79,9 @@ Tab_note_heads_engraver::process_music ()
       Item * note  = make_item ("TabNoteHead", event->self_scm ());
 
       
-      Music * tabstring_event= 0;
+      Music * tabstring_event = 0;
 
-      for (SCM s =event->get_property ("articulations");
+      for (SCM s = event->get_property ("articulations");
           !tabstring_event && scm_is_pair (s); s = scm_cdr (s))
        {
          Music * art = unsmob_music (scm_car (s));
index d66196a655e18f4d2ce9e3348d7ae070f34b2edd..b41248ba1c147337bb7350b5b8e5f76c640b5e31 100644 (file)
@@ -46,7 +46,7 @@ Text_engraver::acknowledge_grob (Grob_info inf)
 {
   if (Rhythmic_head::has_interface (inf.grob_))
     {
-      for (int i= 0; i < texts_.size (); i++)
+      for (int i = 0; i < texts_.size (); i++)
        {
          Grob*t = texts_[i];
          Side_position_interface::add_support (t,inf.grob_);
@@ -65,7 +65,7 @@ Text_engraver::acknowledge_grob (Grob_info inf)
   
   if (Stem::has_interface (inf.grob_))
     {
-      for (int i= 0; i < texts_.size (); i++)
+      for (int i = 0; i < texts_.size (); i++)
        {
          Side_position_interface::add_support (texts_[i],inf.grob_);
        }
@@ -77,7 +77,7 @@ Text_engraver::process_acknowledged_grobs ()
 {
   if (texts_.size ())
     return;
-  for (int i= 0; i < evs_.size (); i++)
+  for (int i = 0; i < evs_.size (); i++)
     {
       Music * r = evs_[i];
       
index 0e8ec2b4d57b01e665bf7e52205b5461b8fd0796..82c2475cba4a1102185926fece20ee616a44d61e 100644 (file)
@@ -36,7 +36,7 @@ MAKE_SCHEME_CALLBACK (Text_spanner, print, 1);
 SCM
 Text_spanner::print (SCM smob) 
 {
-  Grob *me= unsmob_grob (smob);
+  Grob *me = unsmob_grob (smob);
   Spanner *spanner = dynamic_cast<Spanner*> (me);
   
   /* Ugh, must be same as Hairpin::print.  */
@@ -148,7 +148,7 @@ Text_spanner::print (SCM smob)
 
   if (!span_points.is_empty ())
     {
-      Stencil l =Line_spanner::line_stencil (me, Offset (span_points[LEFT], 0),
+      Stencil l = Line_spanner::line_stencil (me, Offset (span_points[LEFT], 0),
                                               Offset (span_points[RIGHT], 0));
       m.add_stencil (l);
     }
index 76c55cbc2847a69b6d99a46411611d44baefae94..1edeef43c568e58ab28006d49a0f94f6f4d1d909 100644 (file)
@@ -24,7 +24,7 @@ Tex_font_metric_reader::Tex_font_metric_reader (String name)
   : input_ (name)
 {
   
-  for (int i= 0; i < TFM_SIZE; i++)
+  for (int i = 0; i < TFM_SIZE; i++)
     ascii_to_metric_idx_.push (-1);
 
   read_header ();
index 0cbc5da9a05b85e981d279b37b7c8a650677ea93..16279f4f60036609e640f89451896fa24615edda 100644 (file)
@@ -97,7 +97,7 @@ Tie_column::old_directions (Grob*me)
   ties.del (0);
   
   set_grob_direction (ties.pop (), UP);
-  for (int i=ties.size (); i--;)
+  for (int i = ties.size (); i--;)
     {
       Grob *  t = ties[i];
       Real p = Tie::get_position (t);
index 4b7cee39dada3cf7bb43cf5a3fbadf7740d8cfa8..21464d02afb3ae6ba7ce5408a6be8ad23cf9da3e 100644 (file)
@@ -144,7 +144,7 @@ Tie_engraver::stop_translation_timestep ()
   if (ties_.size ())
     {
       heads_to_tie_.clear ();
-      for (int i= 0; i<  ties_.size (); i++)
+      for (int i = 0; i<  ties_.size (); i++)
        {
          typeset_tie (ties_[i]);
        }
index c23b51af4519ad03ba2c06c38751666d14840cce..edd482501ebf526623f3da2c17770e768aafabd9 100644 (file)
@@ -313,7 +313,7 @@ Tie::get_control_points (SCM smob)
 
 
   SCM controls = SCM_EOL;
-  for (int i= 4; i--;)
+  for (int i = 4; i--;)
     controls = scm_cons (ly_offset2scm (b.control_[i]), controls);
   return controls;
 }
@@ -341,7 +341,7 @@ Tie::print (SCM smob)
 
   Bezier b;
   int i = 0;
-  for (SCM s= cp; s != SCM_EOL; s = scm_cdr (s))
+  for (SCM s = cp; s != SCM_EOL; s = scm_cdr (s))
     {
       b.control_[i] = ly_scm2offset (scm_car (s));
       i++;
index d5b526b665ba692d8d6ad364783bbdd8a374486c..245fceef7e0ac2958c5caa11862d37d64a371c51 100644 (file)
@@ -96,7 +96,7 @@ Timing_translator::measure_position () const
 void
 Timing_translator::start_translation_timestep ()
 {
-  Global_context *global =get_global_context ();
+  Global_context *global = get_global_context ();
 
   Moment now = global->now_mom ();
   Moment dt = now  - global->previous_moment ();
@@ -138,7 +138,7 @@ Timing_translator::start_translation_timestep ()
     }
 
   SCM cad = get_property ("timing");
-  bool c= to_boolean (cad);
+  bool c = to_boolean (cad);
 
   Rational len = measure_length ();
   while (c && measposp.main_part_ >= len)
index af70427a433536f90e35cfbac51d263f9534a40a..988a5820168bbab59cd237d4bc81206dd399489a 100644 (file)
@@ -14,7 +14,7 @@
   should delete these after exit.
 */
 
-Scheme_hash_table *global_translator_dict= 0;
+Scheme_hash_table *global_translator_dict = 0;
 
 LY_DEFINE (get_all_translators,"ly:get-all-translators", 0, 0, 0,  (),
          "Return a list of all translator objects that may be instantiated. "
@@ -22,7 +22,7 @@ LY_DEFINE (get_all_translators,"ly:get-all-translators", 0, 0, 0,  (),
 {
   SCM l = global_translator_dict ?  global_translator_dict->to_alist () : SCM_EOL;
 
-  for (SCM s =l; scm_is_pair (s); s = scm_cdr (s))
+  for (SCM s = l; scm_is_pair (s); s = scm_cdr (s))
     {
       scm_set_car_x (s, scm_cdar (s));
     }
@@ -36,7 +36,7 @@ add_translator (Translator *t)
   if (!global_translator_dict)
     global_translator_dict = new Scheme_hash_table;
 
-  SCM k= ly_symbol2scm  (classname (t));
+  SCM k = ly_symbol2scm  (classname (t));
   global_translator_dict->set (k, t->self_scm ());
 
   scm_gc_unprotect_object (t->self_scm ());
index 4dcdca35b38d177ad9d0ce2b978b2fff10100c3d..d9a6a609302c7698be152b09f8f7f0f4ffe76cb6 100644 (file)
@@ -121,7 +121,7 @@ recurse_over_translators (Context * c, Translator_method ptr, Direction dir)
     }
 
   for (SCM s = c->children_contexts () ; scm_is_pair (s);
-       s =scm_cdr (s))
+       s = scm_cdr (s))
     {
       recurse_over_translators (unsmob_context (scm_car (s)), ptr, dir);
     }
index 137a314d3be650e8b8c6e369f7765799f29055e4..f074f3a68ec5113ff760165fe3bf06f0b6f52ab3 100644 (file)
@@ -68,7 +68,7 @@ Tuplet_bracket::parallel_beam (Grob *me, Link_array<Grob> const &cols, bool *equ
   
   Spanner*sp = dynamic_cast<Spanner*> (me);  
 
-  *equally_long= false;
+  *equally_long = false;
   if (! (b1 && (b1 == b2) && !sp->is_broken ()))
       return 0;
 
@@ -98,9 +98,9 @@ MAKE_SCHEME_CALLBACK (Tuplet_bracket,print,1);
 SCM
 Tuplet_bracket::print (SCM smob) 
 {
-  Grob *me= unsmob_grob (smob);
+  Grob *me = unsmob_grob (smob);
   Stencil  mol;
-  Link_array<Grob> columns=
+  Link_array<Grob> columns =
     Pointer_group_interface__extract_grobs (me, (Grob*)0, "note-columns");
 
   if (!columns.size ())
@@ -197,7 +197,7 @@ Tuplet_bracket::print (SCM smob)
   if (bracket_visibility)      
     {
       Real ss =   Staff_symbol_referencer::staff_space (me);
-      Real gap= 0.;
+      Real gap = 0.;
 
       if (!num.extent (X_AXIS).is_empty ())
        gap = num.extent (X_AXIS).length () + 1.0;
@@ -299,7 +299,7 @@ Tuplet_bracket::make_bracket (Grob *me,     // for line properties.
 void
 Tuplet_bracket::calc_position_and_height (Grob*me,Real *offset, Real * dy) 
 {
-  Link_array<Grob> columns=
+  Link_array<Grob> columns =
     Pointer_group_interface__extract_grobs (me, (Grob*)0, "note-columns");
 
 
@@ -326,8 +326,8 @@ Tuplet_bracket::calc_position_and_height (Grob*me,Real *offset, Real * dy)
   
   if (l < r)
     {
-      Interval rv =columns[r]->extent (commony, Y_AXIS);
-      Interval lv =columns[l]->extent (commony, Y_AXIS);
+      Interval rv = columns[r]->extent (commony, Y_AXIS);
+      Interval lv = columns[l]->extent (commony, Y_AXIS);
       rv.unite (staff);
       lv.unite (staff);
       Real graphical_dy =  rv[dir] - lv[dir];
@@ -368,7 +368,7 @@ Tuplet_bracket::calc_position_and_height (Grob*me,Real *offset, Real * dy)
   
   for (int i = 0; i < columns.size ();  i++)
     {
-      Interval note_ext =columns[i]->extent (commony, Y_AXIS);
+      Interval note_ext = columns[i]->extent (commony, Y_AXIS);
       note_ext.unite (staff);
       Real notey = note_ext[dir] - me->relative_coordinate (commony, Y_AXIS);
       
@@ -387,7 +387,7 @@ Tuplet_bracket::calc_position_and_height (Grob*me,Real *offset, Real * dy)
     horizontal brackets should not collide with staff lines.
     
    */
-  Real ss= Staff_symbol_referencer::staff_space (me);
+  Real ss = Staff_symbol_referencer::staff_space (me);
   if (*dy == 0 && fabs (*offset) <  ss * Staff_symbol_referencer::staff_radius (me))
     {
       // quantize, then do collision check.
@@ -412,13 +412,13 @@ SCM
 Tuplet_bracket::before_line_breaking (SCM smob)
 {
   Grob *me = unsmob_grob (smob);
-  Link_array<Grob> columns=
+  Link_array<Grob> columns =
     Pointer_group_interface__extract_grobs (me, (Grob*)0, "note-columns");
 
 
   for (int i = columns.size (); i--;)
     {
-      Grob * s =Note_column::get_stem (columns[i]);
+      Grob * s = Note_column::get_stem (columns[i]);
       Grob * b = s ? Stem::get_beam (s): 0;
       if (b)
        me->add_dependency (b);
@@ -432,7 +432,7 @@ SCM
 Tuplet_bracket::after_line_breaking (SCM smob)
 {
   Grob * me = unsmob_grob (smob);
-  Link_array<Grob> columns=
+  Link_array<Grob> columns =
     Pointer_group_interface__extract_grobs (me, (Grob*)0, "note-columns");
 
   if (!columns.size ())
index 48f06caf97c6ac2cc66ce51a64a543957e3f4431..8d783526bc447e3f99cc40349614dd4ee08bddae 100644 (file)
@@ -69,7 +69,7 @@ Tuplet_engraver::try_music (Music *music)
 void
 Tuplet_engraver::process_music ()
 {
-  for (int i= 0; i < tuplets_.size (); i++)
+  for (int i = 0; i < tuplets_.size (); i++)
     {
       if (tuplets_[i].spanner_)
        continue;
index 10283f5a7c518c36957c88336ec1035a3e50863c..04bb8005013b6467aed58a25e694259c56dcdeb0 100644 (file)
@@ -73,7 +73,7 @@ protected:
 
 Volta_repeat_iterator::Volta_repeat_iterator ()
 {
-  done_count_ = alt_count_ = rep_count_= 0;
+  done_count_ = alt_count_ = rep_count_ = 0;
   first_time_ = true;
 }
 
index 7a02f96a4ff8e5b1e39acf1ac63214f85c4447e5..ca1bfd6c42639282d051f0eecec2c3315a40b2a5 100644 (file)
@@ -348,9 +348,9 @@ void
 Vaticana_ligature_engraver::transform_heads (Spanner *ligature,
                                             Array<Grob_info> primitives)
 {
-  Real flexa_width= robust_scm2double ( ligature->get_property ("flexa-width"), 2);
+  Real flexa_width = robust_scm2double ( ligature->get_property ("flexa-width"), 2);
 
-  Real thickness= robust_scm2double ( ligature->get_property ("thickness"), 1);
+  Real thickness = robust_scm2double ( ligature->get_property ("thickness"), 1);
 
   Item *prev_primitive = 0;
   int prev_prefix_set = 0;
@@ -569,7 +569,7 @@ Vaticana_ligature_engraver::transform_heads (Spanner *ligature,
   Item *first_primitive = dynamic_cast<Item*> (primitives[0].grob_);
   Paper_column *paper_column = first_primitive->get_column ();
   paper_column->warning (_f ("Vaticana_ligature_engraver: "
-                            "setting `spacing-increment = %f': ptr=%ul",
+                            "setting `spacing-increment = %f': ptr =%ul",
                             ligature_width, paper_column));
   paper_column->
     set_property ("forced-spacing", scm_make_real (ligature_width));
index 7b8bd26d14a6484b3a2fc19c4971f4b5ac2f3ec3..71de7f33ba1febbd40a2eaa312b700d93aeff704 100644 (file)
@@ -127,7 +127,7 @@ Virtual_font_metric::name_to_index (String glyph) const
   int total = 0; 
   for (SCM s = font_list_; m.is_empty () && scm_is_pair (s); s = scm_cdr (s))
     {
-      Font_metric *m =unsmob_metrics (scm_car (s));
+      Font_metric *m = unsmob_metrics (scm_car (s));
       int k = m->name_to_index (glyph);
       if (k >= 0)
        return total + k;
index edb8e383537e8f3392b0ae409e232311e0cb85a3..46d38528fe8985d96557159aa7660ddc2501a5bd 100644 (file)
@@ -58,7 +58,7 @@ Volta_bracket_interface::print (SCM smob)
     (strcmp (cs,":|")!= 0 && strcmp (cs,"|:")!= 0 && strcmp (cs,"|.")!= 0
      && strcmp (cs,":|:")!= 0 && strcmp (cs,".|")!= 0);
 
-  Output_def * layout =me->get_layout ();
+  Output_def * layout = me->get_layout ();
   Real half_space = 0.5;
 
   Item * bound = dynamic_cast<Spanner*> (me)->get_bound (LEFT);
index 846f31fad67adf40772e076abbeecc17e2cef7fa..c116e0e4ac34294631e8602e4beceb3fc85d59e5 100644 (file)
@@ -59,7 +59,7 @@ Volta_engraver::Volta_engraver ()
 bool
 Volta_engraver::staff_eligible ()
 {
-  SCM doit =get_property ("voltaOnThisStaff");
+  SCM doit = get_property ("voltaOnThisStaff");
   if (scm_is_bool (doit))
     {
       return to_boolean (doit);