]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/music-functions.scm (has-request-chord): don't use
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 4 Feb 2005 12:35:34 +0000 (12:35 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 4 Feb 2005 12:35:34 +0000 (12:35 +0000)
ly:music-name anywhere. Fixes <<\\>> notation.

* lily/pango-font.cc (pango_item_string_stencil): bugfix: don't
crash if psname is null.

* lily/pango-font.cc (physical_font_tab): new member. Store PSname
-> font_filename mapping.

245 files changed:
ChangeLog
lily/accidental-placement.cc
lily/accidental.cc
lily/afm.cc
lily/align-interface.cc
lily/ambitus-engraver.cc
lily/ambitus.cc
lily/arpeggio-engraver.cc
lily/arpeggio.cc
lily/auto-beam-engraver.cc
lily/axis-group-engraver.cc
lily/axis-group-interface.cc
lily/balloon.cc
lily/bar-line.cc
lily/bar-number-engraver.cc
lily/beam-engraver.cc
lily/beam-performer.cc
lily/beam-quanting.cc
lily/beam.cc
lily/beaming-info.cc
lily/bezier.cc
lily/break-align-engraver.cc
lily/breathing-sign.cc
lily/chord-name-engraver.cc
lily/chord-tremolo-iterator.cc
lily/clef-engraver.cc
lily/cluster.cc
lily/collision-engraver.cc
lily/completion-note-heads-engraver.cc
lily/context-def.cc
lily/context-specced-music-iterator.cc
lily/context.cc
lily/custos.cc
lily/dot-column.cc
lily/dots.cc
lily/drum-note-performer.cc
lily/dynamic-engraver.cc
lily/dynamic-text-spanner.cc
lily/event.cc
lily/fingering-engraver.cc
lily/folded-repeat-iterator.cc
lily/font-metric.cc
lily/function-documentation.cc
lily/grace-music.cc
lily/grob-interface-scheme.cc
lily/grob-interface.cc
lily/grob-pitch-tuple.cc
lily/grob-pq-engraver.cc
lily/grob-property.cc
lily/grob-scheme.cc
lily/grob.cc
lily/hairpin.cc
lily/hara-kiri-group-spanner.cc
lily/horizontal-bracket.cc
lily/include/accidental-interface.hh
lily/include/accidental-placement.hh
lily/include/afm.hh
lily/include/align-interface.hh
lily/include/arpeggio.hh
lily/include/axis-group-interface.hh
lily/include/beam.hh
lily/include/beaming.hh
lily/include/bezier.hh
lily/include/dimension-cache-callback.hh
lily/include/dot-column.hh
lily/include/duration.hh
lily/include/engraver.hh
lily/include/event.hh
lily/include/font-metric.hh
lily/include/global-ctor.hh
lily/include/gourlay-breaking.hh
lily/include/grob-interface.hh
lily/include/grob.hh
lily/include/guile-compatibility.hh
lily/include/hara-kiri-group-spanner.hh
lily/include/lily-guile-macros.hh
lily/include/lily-guile.hh
lily/include/lily-lexer.hh
lily/include/lilypond-key.hh
lily/include/moment.hh
lily/include/multi-measure-rest.hh
lily/include/music-iterator.hh
lily/include/music-sequence.hh
lily/include/music-wrapper.hh
lily/include/music.hh
lily/include/note-collision.hh
lily/include/note-column.hh
lily/include/note-head.hh
lily/include/object-key-dumper.hh
lily/include/object-key-undumper.hh
lily/include/object-key.hh
lily/include/output-def.hh
lily/include/paper-outputter.hh
lily/include/percent-repeat-item.hh
lily/include/pitch.hh
lily/include/repeated-music.hh
lily/include/rest-collision.hh
lily/include/rest.hh
lily/include/rhythmic-head.hh
lily/include/score-engraver.hh
lily/include/separation-item.hh
lily/include/side-position-interface.hh
lily/include/slur.hh
lily/include/smobs.hh
lily/include/spaceable-grob.hh
lily/include/span-bar.hh
lily/include/spanner.hh
lily/include/spring.hh
lily/include/staff-spacing.hh
lily/include/staff-symbol-referencer.hh
lily/include/stem-tremolo.hh
lily/include/stem.hh
lily/include/stencil.hh
lily/include/system-start-delimiter.hh
lily/include/tie-column.hh
lily/include/tie.hh
lily/include/time-signature.hh
lily/include/translator.hh
lily/include/tuplet-bracket.hh
lily/include/tweak-registration.hh
lily/include/type-swallow-translator.hh
lily/key-engraver.cc
lily/key-performer.cc
lily/key-signature-interface.cc
lily/kpath-scheme.cc
lily/ledger-line-engraver.cc
lily/ledger-line-spanner.cc
lily/lily-lexer.cc
lily/lily-parser-scheme.cc
lily/lilypond-key.cc
lily/line-interface.cc
lily/line-spanner.cc
lily/lookup.cc
lily/lyric-combine-music-iterator.cc
lily/lyric-combine-music.cc
lily/lyric-extender.cc
lily/lyric-hyphen.cc
lily/lyric-performer.cc
lily/main.cc
lily/measure-grouping-spanner.cc
lily/modified-font-metric.cc
lily/moment-scheme.cc
lily/moment.cc
lily/multi-measure-rest-engraver.cc
lily/multi-measure-rest.cc
lily/music-constructor.cc
lily/music-iterator.cc
lily/music-scheme.cc
lily/music-sequence.cc
lily/music-wrapper-iterator.cc
lily/music-wrapper.cc
lily/music.cc
lily/new-fingering-engraver.cc
lily/new-lyric-combine-music-iterator.cc
lily/note-collision.cc
lily/note-column.cc
lily/note-head.cc
lily/note-heads-engraver.cc
lily/note-performer.cc
lily/note-spacing.cc
lily/object-key-dumper-scheme.cc
lily/object-key-undumper-scheme.cc
lily/object-key.cc
lily/ottava-bracket.cc
lily/pango-select-scheme.cc
lily/paper-column.cc
lily/paper-outputter.cc
lily/paper-system.cc
lily/part-combine-engraver.cc
lily/part-combine-iterator.cc
lily/percent-repeat-item.cc
lily/percent-repeat-iterator.cc
lily/pfb.cc
lily/piano-pedal-bracket.cc
lily/piano-pedal-engraver.cc
lily/piano-pedal-performer.cc
lily/pitch-interval.cc
lily/pitch-scheme.cc
lily/pitch.cc
lily/property-iterator.cc
lily/quote-iterator.cc
lily/relative-octave-check.cc
lily/relative-octave-music.cc
lily/repeated-music.cc
lily/rest-collision-engraver.cc
lily/rest-collision.cc
lily/rest.cc
lily/rhythmic-column-engraver.cc
lily/rhythmic-head.cc
lily/scm-hash.cc
lily/scm-option.cc
lily/script-engraver.cc
lily/script-interface.cc
lily/separating-group-spanner.cc
lily/separating-line-group-engraver.cc
lily/separation-item.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-performer.cc
lily/slur.cc
lily/source-file.cc
lily/spaceable-grob.cc
lily/spacing-engraver.cc
lily/spacing-spanner.cc
lily/span-bar-engraver.cc
lily/span-bar.cc
lily/spanner.cc
lily/staff-spacing.cc
lily/staff-symbol-engraver.cc
lily/staff-symbol-referencer.cc
lily/staff-symbol.cc
lily/stem-engraver.cc
lily/stem-tremolo.cc
lily/stem.cc
lily/stencil-scheme.cc
lily/stencil.cc
lily/sustain-pedal.cc
lily/system-start-delimiter-engraver.cc
lily/system-start-delimiter.cc
lily/system.cc
lily/tab-note-heads-engraver.cc
lily/tempo-performer.cc
lily/text-engraver.cc
lily/text-item.cc
lily/text-spanner.cc
lily/tie-column.cc
lily/tie-engraver.cc
lily/tie.cc
lily/time-signature-engraver.cc
lily/time-signature-performer.cc
lily/time-signature.cc
lily/timing-translator.cc
lily/translator-ctors.cc
lily/translator-scheme.cc
lily/translator.cc
lily/tuplet-bracket.cc
lily/tweak-registration-scheme.cc
lily/vaticana-ligature.cc
lily/vertical-align-engraver.cc
lily/volta-bracket.cc
lily/volta-engraver.cc
scm/music-functions.scm

index b077af4a8703aec1f83139eb3011e661392945fa..35bade0afcf6490808fe9583ddf9af259d034ebb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2005-02-04  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * lily/*: add space after ,  
+
        * scm/music-functions.scm (has-request-chord): don't use
        ly:music-name anywhere. Fixes <<\\>> notation. 
 
index d73981ede1129969cbf3cf4ff09b9356f29bee99..540e32feaa4150191c5d2f460dc77d89961b8e2b 100644 (file)
@@ -21,7 +21,7 @@
 #include "note-collision.hh"
 #include "accidental-interface.hh"
 
-MAKE_SCHEME_CALLBACK (Accidental_placement,alignment_callback, 2);
+MAKE_SCHEME_CALLBACK (Accidental_placement, alignment_callback, 2);
 SCM
 Accidental_placement::alignment_callback (SCM s, SCM )
 {
@@ -382,7 +382,7 @@ Accidental_placement::position_accidentals (Grob * me)
   head_ape-> left_skyline_ = head_skyline;
   head_ape->offset_ = 0.0;
 
-  Real padding = robust_scm2double (me->get_property ("padding"),0.2);
+  Real padding = robust_scm2double (me->get_property ("padding"), 0.2);
 
   Array<Skyline_entry> left_skyline = head_ape->left_skyline_;
   heighten_skyline (&left_skyline,
index ead6669ac3be0ca9be69ee643bf08828db7986a6..a0f4136a4594a709c3f6e0f7e3183b9426364e78 100644 (file)
@@ -28,14 +28,14 @@ parenthesize (Grob*me, Stencil m)
   Stencil open = Font_interface::get_default_font (me)->find_by_name ("accidentals.leftparen");
   Stencil close = Font_interface::get_default_font (me)->find_by_name ("accidentals.rightparen");
 
-  m.add_at_edge (X_AXIS, LEFT, Stencil (open), 0,0);
-  m.add_at_edge (X_AXIS, RIGHT, Stencil (close), 0,0);
+  m.add_at_edge (X_AXIS, LEFT, Stencil (open), 0, 0);
+  m.add_at_edge (X_AXIS, RIGHT, Stencil (close), 0, 0);
 
   return m;
 }
 
 
-MAKE_SCHEME_CALLBACK (Accidental_interface,after_line_breaking,1);
+MAKE_SCHEME_CALLBACK (Accidental_interface, after_line_breaking, 1);
 SCM
 Accidental_interface::after_line_breaking (SCM smob)
 {
@@ -164,7 +164,7 @@ Accidental_interface::get_fontcharname (String style, int alteration)
   return style + to_string (alteration);
 }
 
-MAKE_SCHEME_CALLBACK (Accidental_interface,print,1);
+MAKE_SCHEME_CALLBACK (Accidental_interface, print, 1);
 SCM
 Accidental_interface::print (SCM smob)
 {
@@ -224,7 +224,7 @@ Accidental_interface::print (SCM smob)
        }
       else
        {
-         mol.add_at_edge (X_AXIS,  RIGHT, acc, 0.1,0);
+         mol.add_at_edge (X_AXIS,  RIGHT, acc, 0.1, 0);
        }
     }
 
index 5d391dab93ab2dc5c7ad68e00a1b2462506856a9..cfa8aadeb1d22aa31e1f990108245c2a72caec4b 100644 (file)
@@ -76,7 +76,7 @@ Adobe_font_metric::find_char_metric (String nm) const
 int
 Adobe_font_metric::name_to_index (String name) const
 {
-  std::map<String,int>::const_iterator ai = name_to_metric_dict_.find (name);
+  std::map<String, int>::const_iterator ai = name_to_metric_dict_.find (name);
   if (ai == name_to_metric_dict_.end ())
     return -1;
   return (*ai).second; 
index 1c23c32355e6fb685928d7e74622de3ee3de23dd..c805b2b1f6fb97d36caa223230e50739d273b712 100644 (file)
@@ -13,7 +13,7 @@
 #include "hara-kiri-group-spanner.hh"
 #include "output-def.hh"
 
-MAKE_SCHEME_CALLBACK (Align_interface,alignment_callback,2);
+MAKE_SCHEME_CALLBACK (Align_interface, alignment_callback, 2);
 SCM
 Align_interface::alignment_callback (SCM element_smob, SCM axis)
 {
@@ -27,7 +27,7 @@ Align_interface::alignment_callback (SCM element_smob, SCM axis)
   return scm_make_real (0.0);
 }
 
-MAKE_SCHEME_CALLBACK (Align_interface,fixed_distance_alignment_callback,2);
+MAKE_SCHEME_CALLBACK (Align_interface, fixed_distance_alignment_callback, 2);
 SCM
 Align_interface::fixed_distance_alignment_callback (SCM element_smob, SCM axis)
 {
@@ -55,7 +55,7 @@ Align_interface::align_to_fixed_distance (Grob *me , Axis a)
   if (!stacking_dir)
     stacking_dir = DOWN;
 
-  Real dy = robust_scm2double (me->get_property ("forced-distance"),0.0);
+  Real dy = robust_scm2double (me->get_property ("forced-distance"), 0.0);
   
   Link_array<Grob> elems
     = Pointer_group_interface__extract_grobs (me, (Grob*) 0, "elements");
@@ -93,7 +93,7 @@ Align_interface::align_to_fixed_distance (Grob *me , Axis a)
     }
 
   /*
-    TODO: support self-alignment-{Y,X}
+    TODO: support self-alignment-{Y, X}
    */
   for (int i = 0; i < translates.size (); i++)
     {
@@ -230,16 +230,16 @@ Align_interface::axis (Grob*me)
 }
 
 void
-Align_interface::add_element (Grob*me,Grob* s, SCM cb)
+Align_interface::add_element (Grob*me, Grob* s, SCM cb)
 {
   s->add_offset_callback (cb, Align_interface::axis (me));
   Axis_group_interface::add_element (me, s);
 }
 
 void
-Align_interface::set_axis (Grob*me,Axis a)
+Align_interface::set_axis (Grob*me, Axis a)
 {
-  Axis_group_interface::set_axes (me, a,a);
+  Axis_group_interface::set_axes (me, a, a);
 }
 
 
index 94d004ba4beff31c30e859b4aca732824a821872..20193234a62b5f4f48acb6190f6f04d3793a5bb7 100644 (file)
@@ -48,8 +48,8 @@ Ambitus_engraver::derived_mark () const
 void
 Ambitus_engraver::create_ambitus ()
 {
-  ambitus_ = make_item ("AmbitusLine",SCM_EOL);
-  group_ = make_item ("Ambitus",SCM_EOL);
+  ambitus_ = make_item ("AmbitusLine", SCM_EOL);
+  group_ = make_item ("Ambitus", SCM_EOL);
   Direction d = DOWN;
   do
     {
index b86b6886f872119332b669b7947ce128be9b3bf4..7f8cf43fcfb869ac565211c995f333b9c2030544 100644 (file)
@@ -17,7 +17,7 @@
 #include "lookup.hh"
 #include "group-interface.hh"
 
-MAKE_SCHEME_CALLBACK (Ambitus,print,1);
+MAKE_SCHEME_CALLBACK (Ambitus, print, 1);
 SCM
 Ambitus::print (SCM smob)
 {
@@ -30,7 +30,7 @@ Ambitus::print (SCM smob)
       && heads.size() > 1)
     {
       Grob *common
-       = common_refpoint_of_array (heads.slice (0,2), me, Y_AXIS);
+       = common_refpoint_of_array (heads.slice (0, 2), me, Y_AXIS);
 
       Grob *minh = heads[0];
       Grob *maxh = heads[1];
@@ -52,7 +52,7 @@ Ambitus::print (SCM smob)
          Real linethickness = me->get_layout ()->get_dimension (ly_symbol2scm ("linethickness"))
            * robust_scm2double (me->get_property ("thickness"), 1.0); 
          Real blotdiameter = me->get_layout ()->get_dimension (ly_symbol2scm ("blotdiameter"));
-         Interval x_extent = 0.5 * linethickness *Interval (-1,1);
+         Interval x_extent = 0.5 * linethickness *Interval (-1, 1);
          Interval y_extent = Interval (pmin, pmax);
          Box line_box (x_extent, y_extent);
 
index d71064c7c69fe242db79471f5fcaec3eec152510..d6667e098d83f098cce82130faedf36ca3b177d1 100644 (file)
@@ -80,7 +80,7 @@ Arpeggio_engraver::process_music ()
 {
   if (arpeggio_req_)
     {
-      arpeggio_ = make_item ("Arpeggio",arpeggio_req_->self_scm ());
+      arpeggio_ = make_item ("Arpeggio", arpeggio_req_->self_scm ());
     }
 }
 
index b9922ae75787c91533731d5fd2a470293e0494be..3ecd5716752abb508c70b5e4e860d2954fdf9f0f 100644 (file)
@@ -84,11 +84,11 @@ Arpeggio::print (SCM smob)
   
   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);
+      mol.add_at_edge (Y_AXIS, UP, squiggle, 0.0, 0);
 
   mol.translate_axis (heads[LEFT], Y_AXIS);
   if (dir)
-    mol.add_at_edge (Y_AXIS, dir,arrow, 0,0);
+    mol.add_at_edge (Y_AXIS, dir, arrow, 0, 0);
   
   return mol.smobbed_copy () ;
 }
@@ -137,7 +137,7 @@ Arpeggio::brew_chord_bracket (SCM smob)
   We have to do a callback, because print () triggers a
   vertical alignment if it is cross-staff.
 */
-MAKE_SCHEME_CALLBACK (Arpeggio, width_callback,2);
+MAKE_SCHEME_CALLBACK (Arpeggio, width_callback, 2);
 SCM
 Arpeggio::width_callback (SCM smob, SCM axis)
 {
index d8e59dda545d87f1d2c23fa5426f743004975b04..4845e7a2ecdb5d604c27fed8a226dd801acc30f4 100644 (file)
@@ -153,12 +153,12 @@ Auto_beam_engraver::test_moment (Direction dir, Moment test_mom)
   else
     function = scm_list_n (ly_symbol2scm ("end"), SCM_UNDEFINED);
   
-  Moment beat_length (1,4);
+  Moment beat_length (1, 4);
   if (Moment * m = unsmob_moment (get_property ("beatLength")))
     {
       beat_length = *m;
     }
-  Moment measure_length (1,1);
+  Moment measure_length (1, 1);
   int num = 4;
   if (Moment* m = unsmob_moment (get_property ("measureLength")))
     {
@@ -316,7 +316,7 @@ Auto_beam_engraver::begin_beam ()
   beam_start_location_ =
     robust_scm2moment (get_property ("measurePosition"), Moment(0));
   subdivide_beams_ = ly_scm2bool (get_property ("subdivideBeams"));
-  beat_length_ = robust_scm2moment (get_property ("beatLength"), Moment(1,4));
+  beat_length_ = robust_scm2moment (get_property ("beatLength"), Moment(1, 4));
 }
 
 void
index b3d789644321a40c61ecd69807203893d191a6e3..ee20505c4ee453c6b7caaaa5d9b14d24ff4629eb 100644 (file)
@@ -45,7 +45,7 @@ Axis_group_engraver::process_music ()
     {
       staffline_ = get_spanner ();
       Grob *  it = unsmob_grob (get_property ("currentCommandColumn"));
-      staffline_->set_bound (LEFT,it);
+      staffline_->set_bound (LEFT, it);
     }
 } 
 
@@ -81,7 +81,7 @@ Axis_group_engraver::finalize ()
 
   Grob *  it = unsmob_grob (get_property ("currentCommandColumn"));
 
-  staffline_->set_bound (RIGHT,it);
+  staffline_->set_bound (RIGHT, it);
 
   staffline_ = 0;
 }
index bc1ae41ef6e66b9082b4756bef1b9d74fcf13a4a..5dcf4604e21330dfa2db1e10efd967bd3454e35b 100644 (file)
@@ -11,7 +11,7 @@
 #include "hara-kiri-group-spanner.hh"
 
 void
-Axis_group_interface::add_element (Grob*me,Grob *e)
+Axis_group_interface::add_element (Grob*me, Grob *e)
 {
   for (SCM ax = me->get_property ("axes"); ax != SCM_EOL ; ax = scm_cdr (ax))
     {
@@ -32,7 +32,7 @@ Axis_group_interface::add_element (Grob*me,Grob *e)
 }
 
 bool
-Axis_group_interface::has_axis (Grob*me,Axis a)
+Axis_group_interface::has_axis (Grob*me, Axis a)
 {
   /*
     urg. FIXME, check for Hara_kiri_group_spanner shouldn't be necessary?
@@ -55,7 +55,7 @@ Axis_group_interface::relative_group_extent (Axis a, Grob *common, SCM elts)
   return r;
 }
 
-MAKE_SCHEME_CALLBACK (Axis_group_interface,group_extent_callback,2);
+MAKE_SCHEME_CALLBACK (Axis_group_interface, group_extent_callback, 2);
 SCM
 Axis_group_interface::group_extent_callback (SCM element_smob, SCM scm_axis)
 {
@@ -72,7 +72,7 @@ Axis_group_interface::group_extent_callback (SCM element_smob, SCM scm_axis)
 }
 
 void
-Axis_group_interface::set_axes (Grob*me,Axis a1, Axis a2)
+Axis_group_interface::set_axes (Grob*me, Axis a1, Axis a2)
 {
   SCM sa1= scm_int2num (a1);
   SCM sa2 = scm_int2num (a2);
@@ -98,9 +98,9 @@ Axis_group_interface::set_axes (Grob*me,Axis a1, Axis a2)
     why so convoluted ? (fixme/documentme?) 
    */
   if (me->has_extent_callback (Grob::stencil_extent_proc, a1))
-    me->set_extent (Axis_group_interface::group_extent_callback_proc,a1);
+    me->set_extent (Axis_group_interface::group_extent_callback_proc, a1);
   if (me->has_extent_callback (Grob::stencil_extent_proc, a2))
-    me->set_extent (Axis_group_interface::group_extent_callback_proc,a2);
+    me->set_extent (Axis_group_interface::group_extent_callback_proc, a2);
 }
 
 Link_array<Grob> 
index 683474f6440bf3b3964b8ff444f61ed6f6ec6909..52154535588d58e823d21369594ca18e5fa1d3b7 100644 (file)
@@ -83,7 +83,7 @@ Balloon_interface::print (SCM smob)
   return fr.smobbed_copy ();
 }
 
-ADD_INTERFACE (Balloon_interface,"text-balloon-interface",
+ADD_INTERFACE (Balloon_interface, "text-balloon-interface",
               "A collection of routines to put text balloons around an object.",
               "balloon-padding balloon-text-props balloon-text-offset balloon-text balloon-original-callback");
 
index 4d62f6296878edddf2c88381a7221c7321dee4fe..de9c1a2a9458dca90dd93d400f5f79dc79d15d72 100644 (file)
@@ -17,7 +17,7 @@
 #include "all-font-metrics.hh"
 #include "staff-symbol-referencer.hh"
 
-MAKE_SCHEME_CALLBACK (Bar_line,print,1);
+MAKE_SCHEME_CALLBACK (Bar_line, print, 1);
 
 SCM 
 Bar_line::print (SCM smob) 
@@ -66,9 +66,9 @@ Bar_line::compound_barline (Grob*me, String str, Real h)
        ? 1
        : (staff_space < 2 ? 2 : .5) ) * staff_space;
   Stencil colon (dot);
-  colon.translate_axis (dist,Y_AXIS);
+  colon.translate_axis (dist, Y_AXIS);
   colon.add_stencil (dot);
-  colon.translate_axis (-dist/2,Y_AXIS);
+  colon.translate_axis (-dist/2, Y_AXIS);
 
   Stencil m;
   if (str == "||:")
@@ -85,7 +85,7 @@ Bar_line::compound_barline (Grob*me, String str, Real h)
   else if (str == "|." || (h == 0 && str == ":|"))
     {
       m.add_at_edge (X_AXIS, LEFT, thick, 0, 0);      
-      m.add_at_edge (X_AXIS, LEFT, thin, kern,0 );
+      m.add_at_edge (X_AXIS, LEFT, thin, kern, 0 );
     }
   else if (str == ".|" || (h == 0 && str == "|:"))
     {
@@ -134,7 +134,7 @@ Bar_line::compound_barline (Grob*me, String str, Real h)
          Real y = (- (c-1.0) / 2 + 0.5  +   i * staff_space);
          Stencil d (dot);
 
-         d. translate_axis (y,Y_AXIS);
+         d. translate_axis (y, Y_AXIS);
          m.add_stencil (d);
        }
     }
@@ -148,10 +148,10 @@ Bar_line::simple_barline (Grob *me,
 {
   Real blot = me->get_layout ()->get_dimension (ly_symbol2scm ("blotdiameter"));
   
-  return Lookup::round_filled_box (Box (Interval (0,w), Interval (-h/2, h/2)), blot);
+  return Lookup::round_filled_box (Box (Interval (0, w), Interval (-h/2, h/2)), blot);
 }
 
-MAKE_SCHEME_CALLBACK (Bar_line,before_line_breaking ,1);
+MAKE_SCHEME_CALLBACK (Bar_line, before_line_breaking , 1);
 
 SCM
 Bar_line::before_line_breaking (SCM smob)
@@ -184,7 +184,7 @@ Bar_line::before_line_breaking (SCM smob)
 
 
 
-MAKE_SCHEME_CALLBACK (Bar_line,get_staff_bar_size,1);
+MAKE_SCHEME_CALLBACK (Bar_line, get_staff_bar_size, 1);
 SCM
 Bar_line::get_staff_bar_size (SCM smob) 
 {
@@ -216,7 +216,7 @@ ADD_INTERFACE (Bar_line, "bar-line-interface",
 "Print a special bar symbol. It replaces the \n"
 "regular bar symbol with a special\n"
 "symbol.  The argument @var{bartype} is a string which specifies the\n"
-"kind of bar to print.  Options are @code{:|},\n"
+"kind of bar to print.  Options are @code{:|}, \n"
 "@code{|:}, @code{:|:},\n"
 "@code{||}, @code{|.},\n"
 "@code{.|}, and @code{.|.}. \n"
index 902ac33977806652617de2af790f25fcf3f39e3e..6ef193e2ebde5fa40abb8547ced1638df00e7e17 100644 (file)
@@ -43,7 +43,7 @@ Bar_number_engraver::process_music ()
   
   if (scm_is_string (wb))
     {
-      Moment mp (robust_scm2moment (get_property ("measurePosition"),Moment (0)));
+      Moment mp (robust_scm2moment (get_property ("measurePosition"), Moment (0)));
       if (mp.main_part_ == Rational (0))
        {
          SCM bn = get_property ("currentBarNumber");
@@ -103,7 +103,7 @@ Bar_number_engraver::create_items ()
     return;
 
   text_ = make_item ("BarNumber", SCM_EOL);
-  Side_position_interface::set_axis (text_,Y_AXIS);
+  Side_position_interface::set_axis (text_, Y_AXIS);
 }
 
 ADD_TRANSLATOR (Bar_number_engraver,
index 995360c744958412703e72b2eca59fc889a4e2fe..adf8871c7eff191cce8cf924e0e6719fbbff9bd3 100644 (file)
@@ -179,7 +179,7 @@ Beam_engraver::start_translation_timestep ()
       set_melisma (true);
       
       subdivide_beams_ = to_boolean (get_property ("subdivideBeams"));
-      beat_length_ = robust_scm2moment (get_property ("beatLength"), Moment (1,4));
+      beat_length_ = robust_scm2moment (get_property ("beatLength"), Moment (1, 4));
     }
 }
 
index 186c891bb0a21bd4c30e850fa45979f453fcc049..d8ba6b240dcda932e43e79d54ad28e7fa3587580 100644 (file)
@@ -86,6 +86,6 @@ Beam_performer::try_music (Music *m)
   return false;
 }
 
-ADD_TRANSLATOR (Beam_performer,"","",
-                 "beam-event","","","");
+ADD_TRANSLATOR (Beam_performer, "", "",
+                 "beam-event", "", "", "");
 
index f358065b8d65331eb8d5bb6a108016b4fec962d3..54cee073b983a1a1a78794b2759402c24c53d213 100644 (file)
@@ -143,7 +143,7 @@ Beam::quanting (SCM smob)
   Array<Real> base_lengths;
   Array<Real> stem_xposns;  
 
-  Drul_array<bool> dirs_found (0,0);
+  Drul_array<bool> dirs_found (0, 0);
   Grob *common[2];
   for (int a = 2; a--;)
     common[a] = common_refpoint_of_array (stems, me, Axis (a));
@@ -174,7 +174,7 @@ Beam::quanting (SCM smob)
         && s != lvs && s != fvs;
 
       base_lengths.push (calc_stem_y (me, s, common, xl, xr,
-                                     Interval (0,0), f) / ss);
+                                     Interval (0, 0), f) / ss);
       stem_xposns.push (s->relative_coordinate (common[X_AXIS], X_AXIS));
     }
 
@@ -233,7 +233,7 @@ Beam::quanting (SCM smob)
       qscores[i].demerits += d;
 
 #if DEBUG_QUANTING
-      qscores[i].score_card_ += to_string ("S%.2f",d);
+      qscores[i].score_card_ += to_string ("S%.2f", d);
 #endif
     }
 
@@ -431,8 +431,8 @@ Beam::score_forbidden_quants (Real yl, Real yr,
                              Direction ldir, Direction rdir)
 {
   Real dy = yr - yl;
-  Drul_array<Real> y (yl,yr);
-  Drul_array<Direction> dirs (ldir,rdir);
+  Drul_array<Real> y (yl, yr);
+  Drul_array<Direction> dirs (ldir, rdir);
   
   Real extra_demerit = SECONDARY_BEAM_DEMERIT / (beam_counts[LEFT] >? beam_counts[RIGHT]);
 
@@ -449,7 +449,7 @@ Beam::score_forbidden_quants (Real yl, Real yr,
          /*
            The 2.2 factor is to provide a little leniency for
            borderline cases. If we do 2.0, then the upper outer line
-           will be in the gap of the (2,sit) quant, leading to a
+           will be in the gap of the (2, sit) quant, leading to a
            false demerit.
          */
          Real gap1 = y[d] - stem_dir * ((j-1) * beam_translation + thickness / 2 - slt/2.2 );
index 61e27d7ce31ed01a044c31bb5fbf2d0d76a08e14..33672e4608161a9e2fcb3c520efb649b4a0ee26b 100644 (file)
@@ -333,7 +333,7 @@ Beam::print (SCM grob)
   if (!is_number_pair (posns))
     {
       programming_error ("No beam posns");
-      pos = Interval (0,0);
+      pos = Interval (0, 0);
     }
   else
     pos = ly_scm2realdrul (posns);
@@ -907,7 +907,7 @@ Beam::least_squares (SCM smob)
 
       dy = slope * dx;
 
-      set_minimum_dy (me,&dy);
+      set_minimum_dy (me, &dy);
       me->set_property ("least-squares-dy", scm_make_real (dy));
       pos = Interval (y, (y+dy));
     }
index 824b432eef8e3fdd75a3ec2c62d0cb4bd25be7bd..7a43c1b7090291184ad43e3b98c272803c4fac51 100644 (file)
@@ -27,7 +27,7 @@ const int infinity_i = INT_MAX;       // guh.
 const int at_beat = 1<<15;
 
 int
-Beaming_info_list::best_splitpoint_index (Moment &beat_length,bool subdivide) const
+Beaming_info_list::best_splitpoint_index (Moment &beat_length, bool subdivide) const
 {
   int minden = infinity_i;
   int minidx = -1;
@@ -62,22 +62,22 @@ Beaming_info_list::beam_extend_count (Direction d) const
 }
 
 void
-Beaming_info_list::beamify (Moment &beat_length,bool subdivide)
+Beaming_info_list::beamify (Moment &beat_length, bool subdivide)
 {
   if (infos_.size () <= 1)
     return;
       
   Drul_array<Beaming_info_list> splits;
-  int m = best_splitpoint_index (beat_length,subdivide);
+  int m = best_splitpoint_index (beat_length, subdivide);
   bool split = subdivide && (m & at_beat);  m = m & ~at_beat;
-  splits[LEFT].infos_ = infos_.slice (0,m);
+  splits[LEFT].infos_ = infos_.slice (0, m);
   splits[RIGHT].infos_ = infos_.slice (m, infos_.size ());
 
   Direction d = LEFT;
  
   do
     {
-      splits[d].beamify (beat_length,subdivide);
+      splits[d].beamify (beat_length, subdivide);
     }
   while (flip (&d) != LEFT);
 
index f2dc0db9c8f47dbcc13700afc90381ede8804350..7a5c60a3822a960b94aaa255e5a07f4b7caeeb66 100644 (file)
@@ -93,7 +93,7 @@ Bezier::curve_point (Real t)const
   for (int j = 0 ; j < 4; j++)
     {
       o += control_[j] * binomial_coefficient (3, j)
-       * pow (t,j) * pow (1-t, 3-j);
+       * pow (t, j) * pow (1-t, 3-j);
 
       tj *= t;
       if (1-t)
@@ -125,7 +125,7 @@ Bezier::polynomial (Axis a)const
 }
 
 /**
-   Remove all numbers outside [0,1] from SOL
+   Remove all numbers outside [0, 1] from SOL
  */
 Array<Real>
 filter_solutions (Array<Real> sol)
@@ -182,7 +182,7 @@ Bezier::extent (Axis a)const
   for (int i = sols.size (); i--;)
     {
       Offset o (curve_point (sols[i]));
-      iv.unite (Interval (o[a],o[a]));
+      iv.unite (Interval (o[a], o[a]));
     }
   return iv;
 }
index 25cdc4a326db7a5b4fc839cb3845b3ce01aaa0af..90f84359dd9eb4b0d63897504bd534f32dd59c4a 100644 (file)
@@ -20,7 +20,7 @@ class Break_align_engraver : public Engraver
   SCM column_alist_;
   Item *left_edge_;
 
-  void add_to_group (SCM,Item*);
+  void add_to_group (SCM, Item*);
 protected:
   virtual void acknowledge_grob (Grob_info i);
   virtual void stop_translation_timestep ();
@@ -35,7 +35,7 @@ void
 Break_align_engraver::add_column (SCM smob)
 {
   Grob * e = unsmob_grob (smob);
-  Break_align_interface::add_element (align_,e);
+  Break_align_interface::add_element (align_, e);
   
 }
 
index cfe6f8d269531457d15e69ecd0d42b8ff04093fc..ff34cc61133d93bc7ba1e2ebada35c29e4df11ab 100644 (file)
@@ -36,7 +36,7 @@
   Gregorian chant divisio minima.  (Actually, this was the original
   breathing sign by Michael. -- jr)
  */
-MAKE_SCHEME_CALLBACK (Breathing_sign,divisio_minima,1);
+MAKE_SCHEME_CALLBACK (Breathing_sign, divisio_minima, 1);
 SCM 
 Breathing_sign::divisio_minima (SCM smob)
 {
@@ -69,7 +69,7 @@ Breathing_sign::divisio_minima (SCM smob)
 /*
   Gregorian chant divisio maior.
  */
-MAKE_SCHEME_CALLBACK (Breathing_sign,divisio_maior,1);
+MAKE_SCHEME_CALLBACK (Breathing_sign, divisio_maior, 1);
 SCM 
 Breathing_sign::divisio_maior (SCM smob)
 {
@@ -109,7 +109,7 @@ Breathing_sign::divisio_maior (SCM smob)
 /*
   Gregorian chant divisio maxima.
  */
-MAKE_SCHEME_CALLBACK (Breathing_sign,divisio_maxima,1);
+MAKE_SCHEME_CALLBACK (Breathing_sign, divisio_maxima, 1);
 SCM 
 Breathing_sign::divisio_maxima (SCM smob)
 {
@@ -139,7 +139,7 @@ Breathing_sign::divisio_maxima (SCM smob)
 /*
   Gregorian chant finalis.
  */
-MAKE_SCHEME_CALLBACK (Breathing_sign,finalis,1);
+MAKE_SCHEME_CALLBACK (Breathing_sign, finalis, 1);
 SCM 
 Breathing_sign::finalis (SCM smob)
 {
@@ -170,7 +170,7 @@ Breathing_sign::finalis (SCM smob)
   return line1.smobbed_copy ();
 }
 
-MAKE_SCHEME_CALLBACK (Breathing_sign,offset_callback,2);
+MAKE_SCHEME_CALLBACK (Breathing_sign, offset_callback, 2);
 SCM
 Breathing_sign::offset_callback (SCM element_smob, SCM)
 {
index e02b8116d354ff0206df0fde418134507dfa6923..af854701de11c8a35d7d7e9ead8bac5585a23868 100644 (file)
@@ -96,7 +96,7 @@ Chord_name_engraver::process_music ()
        {
          Pitch *p = unsmob_pitch (inversion_event->get_property ("pitch"));
          int octavation =  scm_to_int (oct);
-         Pitch orig = p->transposed (Pitch (-octavation, 0,0));
+         Pitch orig = p->transposed (Pitch (-octavation, 0, 0));
          
          pitches = scm_cons (orig.smobbed_copy (), pitches);
        }
@@ -115,7 +115,7 @@ Chord_name_engraver::process_music ()
    */
   SCM chord_as_scm = scm_cons (pitches, scm_cons (bass, inversion));
   
-  chord_name_ = make_item ("ChordName",notes_[0]->self_scm ());
+  chord_name_ = make_item ("ChordName", notes_[0]->self_scm ());
   chord_name_->set_property ("text", markup);
 
   SCM s = get_property ("chordChanges");
index fc8691d010915a9ba6ddf4996a0ff19c8a36294d..05425a7ab141612294f94c079545757d1e2d201d 100644 (file)
@@ -51,7 +51,7 @@ void
 Chord_tremolo_iterator::derived_substitute (Context *f, Context *t) 
 {
   if (child_iter_)
-    child_iter_->substitute_outlet (f,t);
+    child_iter_->substitute_outlet (f, t);
 }
 
 void
index 68bf68944645808b4f0c8af9a0d036a08e7c5de9..0bdb8443c10b72d88ec0b222ed4b8580b028b5eb 100644 (file)
@@ -109,7 +109,7 @@ Clef_engraver::create_clef ()
          g->set_property ("text",
                           scm_list_n (ly_lily_module_constant ("vcenter-markup"),
                                       txt,  SCM_UNDEFINED));
-         Side_position_interface::add_support (g,clef_);      
+         Side_position_interface::add_support (g, clef_);      
 
          g->set_parent (clef_, Y_AXIS);
          g->set_parent (clef_, X_AXIS);
index c95e7f222e862fd73ccd6afc88bc74e1030449f9..aec236de96c61cebb8cfa6361e6b0df34a34a6f1 100644 (file)
@@ -124,7 +124,7 @@ brew_cluster_piece (Grob *me, Array<Offset> bottom_points, Array<Offset> top_poi
   return out;
 }
 
-MAKE_SCHEME_CALLBACK (Cluster,print,1);
+MAKE_SCHEME_CALLBACK (Cluster, print, 1);
 SCM
 Cluster::print (SCM smob)
 {
@@ -193,8 +193,8 @@ Cluster::print (SCM smob)
              Interval v = col->extent (next_commony, Y_AXIS);
              Real x = right_bound->relative_coordinate (commonx, X_AXIS) - left_coord;
              
-             bottom_points.insert (Offset (x, v[DOWN]),0);
-             top_points.insert (Offset (x, v[UP]),0);
+             bottom_points.insert (Offset (x, v[DOWN]), 0);
+             top_points.insert (Offset (x, v[UP]), 0);
            }
        }
     }
@@ -207,7 +207,7 @@ Cluster::print (SCM smob)
   return out.smobbed_copy ();
 }
 
-ADD_INTERFACE (Cluster,"cluster-interface",
+ADD_INTERFACE (Cluster, "cluster-interface",
               "A graphically drawn musical cluster. " 
               "\n\n"
               "@code{padding} adds to the vertical extent of the shape (top and "
@@ -227,13 +227,13 @@ public:
   static bool has_interface (Grob *);
 };
 
-MAKE_SCHEME_CALLBACK (Cluster_beacon,height,2);
+MAKE_SCHEME_CALLBACK (Cluster_beacon, height, 2);
 SCM
 Cluster_beacon::height (SCM g, SCM)
 {
   Grob *me = unsmob_grob (g);
   Interval v = robust_scm2interval (me->get_property ("positions"),
-                                   Interval (0,0));
+                                   Interval (0, 0));
   return ly_interval2scm (Staff_symbol_referencer::staff_space (me) * 0.5 * v);
 }
 
index d3eba9978dad3fdb5ac7d671f18428dd351b167e..24456265dbfba46eff6b62543291ee5dd23ed0af 100644 (file)
@@ -38,7 +38,7 @@ Collision_engraver::process_acknowledged_grobs ()
     }
   
   for (int i = 0; i< note_columns_.size (); i++)
-    Note_collision_interface::add_column (col_,note_columns_[i]);
+    Note_collision_interface::add_column (col_, note_columns_[i]);
 }
 
 void
index 92d8fdb13dcbb7f2c1248409072cc0f3cd7b92b0..9d17deaf624be77df9401b216922100a1c3e9af4 100644 (file)
@@ -88,10 +88,10 @@ Completion_heads_engraver::try_music (Music *m)
       if (now_mom ().grace_part_)
        {
          musiclen.grace_part_ = musiclen.main_part_ ;
-         musiclen.main_part_ = Rational (0,1);
+         musiclen.main_part_ = Rational (0, 1);
        }
       note_end_mom_  = note_end_mom_ >? (now + musiclen);
-      do_nothing_until_ = Rational (0,0);
+      do_nothing_until_ = Rational (0, 0);
       
       return true;
     }
@@ -115,7 +115,7 @@ Completion_heads_engraver::next_barline_moment ( )
   if (!e || !l)
     {
       programming_error ("No timing props set?");
-      return Moment (1,1);
+      return Moment (1, 1);
     }
 
   return (*l - *e);
@@ -126,7 +126,7 @@ Completion_heads_engraver::find_nearest_duration (Rational length)
 {
   int log_limit = 6;
 
-  Duration d (0,0);
+  Duration d (0, 0);
 
   /*
     this could surely be done more efficient. Left to the reader as an
@@ -215,7 +215,7 @@ Completion_heads_engraver::process_music ()
        {
          req = scratch_note_reqs_[i];
          SCM pits = note_reqs_[i]->get_property ("pitch");
-         req->set_property ("pitch",pits);
+         req->set_property ("pitch", pits);
        }
       
       req->set_property ("duration", note_dur.smobbed_copy ());
@@ -274,7 +274,7 @@ Completion_heads_engraver::process_music ()
   if (orig
       &&  now_mom ().grace_part_ )
     {
-      left_to_do_ = Rational (0,0);
+      left_to_do_ = Rational (0, 0);
     }
 }
  
index b4b032b507db96fa3159131a441ca8b0aef2b6f9..0fc4cdfc2922d74c245e5094aa7f56521db566e8 100644 (file)
@@ -189,7 +189,7 @@ Context_def::path_to_acceptable_context (SCM type_sym, Output_def *odef) const
        = g->path_to_acceptable_context (type_sym, odef);
       if (result.size () && result.size () < best_depth)
        {
-         result.insert (g,0);
+         result.insert (g, 0);
          best_result = result;
 
          /* this following line was added in 1.9.3, but hsould've been
index 1442f47c93e15f73bec7977432a4e841ee25611e..6fc2b4b5be42100e90c320238a90424d1f451e42 100644 (file)
@@ -14,7 +14,7 @@
 class Context_specced_music_iterator : public Music_wrapper_iterator
 {
 public:
-  DECLARE_SCHEME_CALLBACK (constructor,());
+  DECLARE_SCHEME_CALLBACK (constructor, ());
   virtual void construct_children ();
 };
 
index 642515e2a47281134ff76813173d87661fa82bed..f8d84f2d41251e59de4ba22e88618197542d64ae 100644 (file)
@@ -525,7 +525,7 @@ Context::mark_smob (SCM sm)
 
 IMPLEMENT_SMOBS (Context);
 IMPLEMENT_DEFAULT_EQUAL_P (Context);
-IMPLEMENT_TYPE_P (Context,"ly:context?");
+IMPLEMENT_TYPE_P (Context, "ly:context?");
 
 bool
 Context::try_music (Music* m)
index 3f74954be9a90efb88eb167e53886fc8fa062ffa..d45974f9e23d8c04fa14da2d3c3959d252e25fb7 100644 (file)
@@ -25,7 +25,7 @@
 #include "item.hh"
 #include "font-interface.hh"
 
-MAKE_SCHEME_CALLBACK (Custos,print,1);
+MAKE_SCHEME_CALLBACK (Custos, print, 1);
 SCM
 Custos::print (SCM smob)
 {
index 349d6a7c2a4f5daffeb366ea5b77b93e696a50d0..f30c544b814aeada86872244881597cb4c1fac51 100644 (file)
@@ -24,7 +24,7 @@
   TODO: let Dot_column communicate with stem via Note_column.
  */
 
-MAKE_SCHEME_CALLBACK (Dot_column,force_shift_callback,2);
+MAKE_SCHEME_CALLBACK (Dot_column, force_shift_callback, 2);
 SCM
 Dot_column::force_shift_callback (SCM element_smob, SCM axis)
 {
@@ -42,7 +42,7 @@ Dot_column::force_shift_callback (SCM element_smob, SCM axis)
   return scm_make_real (0.0);
 }
 
-MAKE_SCHEME_CALLBACK (Dot_column,side_position, 2);
+MAKE_SCHEME_CALLBACK (Dot_column, side_position, 2);
 SCM
 Dot_column::side_position (SCM element_smob, SCM axis)
 {
@@ -299,7 +299,7 @@ Dot_column::add_head (Grob * me, Grob *rh)
   Grob * d = unsmob_grob (rh->get_property ("dot"));
   if (d)
     {
-      Side_position_interface::add_support (me,rh);
+      Side_position_interface::add_support (me, rh);
 
       Pointer_group_interface::add_grob (me, ly_symbol2scm ("dots"), d);
       d->add_offset_callback (Dot_column::force_shift_callback_proc , Y_AXIS);
index 9b00c390dca7b705946db326ec758cd31493a956..cb5bfdd487c4ada0359c238d3ee43c636c9e0240 100644 (file)
@@ -15,7 +15,7 @@
 #include "staff-symbol-referencer.hh"
 #include "directional-element-interface.hh"
 
-MAKE_SCHEME_CALLBACK (Dots,print,1);
+MAKE_SCHEME_CALLBACK (Dots, print, 1);
 SCM  
 Dots::print (SCM d)
 {
@@ -37,12 +37,12 @@ Dots::print (SCM d)
       /*
        TODO: this should  be handled by side-position padding.
        */
-      mol = Lookup::blank (Box (Interval (0,0),
-                               Interval (0,0)));
+      mol = Lookup::blank (Box (Interval (0, 0),
+                               Interval (0, 0)));
   
       for (int i = scm_to_int (c); i--;)
        {
-         d.translate_axis (2*dw,X_AXIS);
+         d.translate_axis (2*dw, X_AXIS);
          mol.add_at_edge (X_AXIS, RIGHT, d, dw, 0);
        }
     }
index c29f29319620750eec03696889eb0d91a907ec7e..d1b38e4b77a9299e8e12a0e20635dab5b2b5bcb8 100644 (file)
@@ -110,8 +110,8 @@ Drum_note_performer::try_music (Music* ev)
 }
 
 ADD_TRANSLATOR (Drum_note_performer,
-                 "Play drum notes.","",
-                 "note-event busy-playing-event","","","");
+                 "Play drum notes.", "",
+                 "note-event busy-playing-event", "", "", "");
 
 Drum_note_performer::Drum_note_performer ()
 {
index a4bf12129aaf4c73f2fafcb28b1f353a1386f153..45c9c355c5807135a6d9c56e2aff1d04f37f5cef 100644 (file)
@@ -384,8 +384,8 @@ Dynamic_engraver::acknowledge_grob (Grob_info info)
          /* Don't refill killed spanner */
          && line_spanner_->is_live ())
        {
-         Side_position_interface::add_support (line_spanner_,info.grob_);
-         add_bound_item (line_spanner_,dynamic_cast<Item*> (info.grob_));
+         Side_position_interface::add_support (line_spanner_, info.grob_);
+         add_bound_item (line_spanner_, dynamic_cast<Item*> (info.grob_));
        }
 
       if (script_ && !script_->get_parent (X_AXIS))
index 40bd71aa0ca8614c53dec6900b0170960f47e099..70d2bf446600f62808a11732c962339d9f306ef2 100644 (file)
@@ -88,7 +88,7 @@ Dynamic_text_spanner::print (SCM smob)
 
          Interval ext  = b->extent (common, X_AXIS);
          span_points[d] = -d  * pad
-           + robust_relative_extent (b,common, X_AXIS)
+           + robust_relative_extent (b, common, X_AXIS)
            .linear_combination (encl);
        }
     }
index 6a9c05782b9e7c966d5129d95dc84cf80e3931df..bdadc3283c686c0be4bab3abe3cdcdbe8eb1e135 100644 (file)
@@ -9,7 +9,7 @@
 #include "event.hh"
 #include "warn.hh"
 
-MAKE_SCHEME_CALLBACK(Event,length_callback,1);
+MAKE_SCHEME_CALLBACK(Event, length_callback, 1);
 SCM
 Event::length_callback (SCM m)
 {
index 2a1cd6e65212e23159751eaed169acc1c46d2548..4fd86d8ab78487cd8e1996cb4685e6afac25c79e 100644 (file)
@@ -57,7 +57,7 @@ Fingering_engraver::acknowledge_grob (Grob_info inf)
       for (int i = 0; i < fingerings_.size (); i++)
        {
          Grob*t = fingerings_[i];
-         Side_position_interface::add_support (t,inf.grob_);
+         Side_position_interface::add_support (t, inf.grob_);
          if (!t->get_parent (X_AXIS))
            t->set_parent (inf.grob_, X_AXIS);
        }
index 9779f438a843ef4d08a36d4cdb95c3d4a6ca0c58..62459136ebfe962fb6009b00eb109ec304ba2280 100644 (file)
@@ -143,9 +143,9 @@ void
 Folded_repeat_iterator::derived_substitute (Context *f, Context *t) 
 {
   if (main_iter_)
-    main_iter_->substitute_outlet (f,t);
+    main_iter_->substitute_outlet (f, t);
   if (alternative_iter_)
-    alternative_iter_->substitute_outlet (f,t);
+    alternative_iter_->substitute_outlet (f, t);
 }
 
 IMPLEMENT_CTOR_CALLBACK (Folded_repeat_iterator);
index 2f96b4c4880220a87ceeca8048acdd2b7392073a..73743ab5b23172a8a97197ada23fb9857a45498c 100644 (file)
@@ -201,6 +201,6 @@ Font_metric::text_stencil (String str) const
 Box
 Font_metric::text_dimension (String) const
 {
-  return Box (Interval (0,0), Interval (0,0));
+  return Box (Interval (0, 0), Interval (0, 0));
 }
 
index 579426b65a9cb2a93003e0eaa1b491b230babb4a..891c9180cac5f091f26f372dadd31c478424ebd7 100644 (file)
@@ -36,7 +36,7 @@ void ly_add_function_documentation (SCM func,
 
 
 LY_DEFINE (ly_get_all_function_documentation, "ly:get-all-function-documentation",
-         0,0,0, (),
+         0, 0, 0, (),
          "Get a hash table with all lilypond Scheme extension functions.")
 {
   return doc_hash_table;
index 2dcfda4e0b523ef2ed06151b4aa6897d943fcb32..82f0206547d41ffd3dd0405ad85440d1f40293e9 100644 (file)
@@ -16,7 +16,7 @@ public:
   DECLARE_SCHEME_CALLBACK(start_callback, (SCM));
 };
 
-MAKE_SCHEME_CALLBACK(Grace_music,start_callback,1);
+MAKE_SCHEME_CALLBACK(Grace_music, start_callback, 1);
 SCM
 Grace_music::start_callback (SCM m) 
 {
index 6b12dafe0511beab9aefb6aa9af8ccc7ca0a37d2..a06e3f1f8593d3e7f9378c3bbb945c7461e6e1a9 100644 (file)
@@ -13,7 +13,7 @@
 
 Protected_scm all_ifaces;
 
-LY_DEFINE (ly_add_interface, "ly:add-interface", 3,0,0, (SCM a, SCM b, SCM c),
+LY_DEFINE (ly_add_interface, "ly:add-interface", 3, 0, 0, (SCM a, SCM b, SCM c),
          "Add an interface description.")
 {
   SCM_ASSERT_TYPE (scm_is_symbol (a), a, SCM_ARG1, __FUNCTION__, "symbol");
@@ -31,7 +31,7 @@ LY_DEFINE (ly_add_interface, "ly:add-interface", 3,0,0, (SCM a, SCM b, SCM c),
 
 
 LY_DEFINE (ly_all_grob_interfaces, "ly:all-grob-interfaces",
-         0,0,0, (),
+         0, 0, 0, (),
          "Get a hash table with all interface descriptions.")
 {
   return all_ifaces;
index 75d5b0c821de36eb94dfff9a836cb21c2a248c15..7e1641016395d2d722fe8e4902e69fbf41155a5a 100644 (file)
@@ -20,7 +20,7 @@ void add_interface (const char * symbol,
   SCM d = scm_makfrom0str (descr);
   SCM l = parse_symbol_list (vars);
 
-  ly_add_interface (s,d,l);
+  ly_add_interface (s, d, l);
 }
 
 
index c8663a2b8468028e92b9be77360de68c97ad4681..501938f741c26e8c5899b5a08a6798f72b9ca7e9 100644 (file)
@@ -13,7 +13,7 @@ source file of the GNU LilyPond music typesetter
 
 int compare (Grob_pitch_tuple const &a, Grob_pitch_tuple const &b)
 {
-  return Grob_pitch_tuple::time_compare (a,b);
+  return Grob_pitch_tuple::time_compare (a, b);
 }
 
 
index e76e35ce67f1f471b90cdcafff245364afb42a09..fdf547984ad58d8314d7aa7cd4ce5126963b798a 100644 (file)
@@ -34,7 +34,7 @@ Grob_pq_engraver::initialize ()
 }
 
 LY_DEFINE (ly_grob_pq_less_p, "ly:grob-pq-less?",
-         2, 0 ,0, (SCM a, SCM b), 
+         2, 0 , 0, (SCM a, SCM b), 
          "Compare 2 grob priority queue entries. Internal")
 {
   if (Moment::compare (*unsmob_moment (scm_car (a)),
@@ -117,10 +117,10 @@ ADD_TRANSLATOR (Grob_pq_engraver,
 /* descr */       "Administrate when certain grobs (eg. note heads) stop playing; this \
 engraver is a sort-of a failure, since it doesn't handle all sorts of \
 borderline cases very well. \
-",                                                                                               \
+",                                                                                               \
                  
-/* creats*/       "",                                                                            \
-/* accepts */     "",                                                                            \
-/* acks  */      "grob-interface",                                                               \
-/* reads */       "busyGrobs",                                                                   \
+/* creats*/       "",                                                                            \
+/* accepts */     "",                                                                            \
+/* acks  */      "grob-interface",                                                               \
+/* reads */       "busyGrobs",                                                                           \
 /* write */       "busyGrobs");
index bfe2eb5aa4c16c4cd4e7bf0856c895a45e96b7a1..d912621dac89f105b2269b6de042f3669dc9001a 100644 (file)
@@ -31,7 +31,7 @@ Grob::get_property_alist_chain (SCM def) const
 /*
   This special add_thing routine is slightly more efficient than
 
-    set_prop (name,cons (thing, get_prop (name)))
+    set_prop (name, cons (thing, get_prop (name)))
 
   since it can reuse the handle returned by scm_assq ().
 */
index f74dbdac53a8cb385a9acfcbf692f0ec033a4231..309f086dac2492721c5ceaeed2de1c0edf5d8bb2 100644 (file)
@@ -222,7 +222,7 @@ LY_DEFINE (ly_item_break_dir, "ly:item-break-dir",
 
 
 LY_DEFINE(ly_grob_key, "ly:grob-key",
-         1,0,0,
+         1, 0, 0,
          (SCM grob),
          "Return the object-key for @var{grob}."
          )
index 3809b0d513892a2aa41d3af4f845f1e765b73f76..a85266d427d5f89f52229a021a4a5cf04067f696 100644 (file)
@@ -36,7 +36,7 @@ Grob::clone (int count) const
 
 /* TODO:
 
-  - remove dynamic_cast<Spanner,Item> and put this code into respective
+  - remove dynamic_cast<Spanner, Item> and put this code into respective
     subclass.  */
 
 #define HASH_SIZE 3
@@ -238,7 +238,7 @@ Grob::get_uncached_stencil () const
        {
          SCM expr = scm_list_3 (ly_symbol2scm ("grob-cause"), self_scm(),
                                 m->expr ());
-         stil = Stencil (m->extent_box (),expr). smobbed_copy ();
+         stil = Stencil (m->extent_box (), expr). smobbed_copy ();
        }
      }
 
@@ -535,7 +535,7 @@ Grob::set_parent (Grob *g, Axis a)
   dim_cache_[a].parent_ = g;
 }
 
-MAKE_SCHEME_CALLBACK (Grob,fixup_refpoint,1);
+MAKE_SCHEME_CALLBACK (Grob, fixup_refpoint, 1);
 SCM
 Grob::fixup_refpoint (SCM smob)
 {
index 96b43c57e3f11609dddd18d571ff177043b9bab9..5e7aa98720df10e21684f21118e7fe23df5f5dc7 100644 (file)
@@ -57,7 +57,7 @@ Hairpin::print (SCM smob)
       if (broken [d])
        {
          if (d == LEFT)
-           x_points[d] = b->extent (common,X_AXIS)[RIGHT] ;
+           x_points[d] = b->extent (common, X_AXIS)[RIGHT] ;
        }
       else
        {
index 22cdef36156d10512452c0999f40ec9fd44f0a43..e5e778b9d2e95d90c92aae3793c7aef65f9df4be 100644 (file)
@@ -14,7 +14,7 @@
 #include "warn.hh"
 #include "item.hh"
 
-MAKE_SCHEME_CALLBACK (Hara_kiri_group_spanner,y_extent,2);
+MAKE_SCHEME_CALLBACK (Hara_kiri_group_spanner, y_extent, 2);
 SCM
 Hara_kiri_group_spanner::y_extent (SCM element_smob, SCM scm_axis)
 {
@@ -58,7 +58,7 @@ Hara_kiri_group_spanner::consider_suicide (Grob*me)
   We can't rely on offsets and dimensions of elements in a hara-kiri
   group. Use a callback to make sure that hara-kiri has been done
   before asking for offsets.  */
-MAKE_SCHEME_CALLBACK (Hara_kiri_group_spanner,force_hara_kiri_callback,2);
+MAKE_SCHEME_CALLBACK (Hara_kiri_group_spanner, force_hara_kiri_callback, 2);
 SCM
 Hara_kiri_group_spanner::force_hara_kiri_callback (SCM element_smob, SCM axis)
 {
@@ -70,7 +70,7 @@ Hara_kiri_group_spanner::force_hara_kiri_callback (SCM element_smob, SCM axis)
 }
 
 
-MAKE_SCHEME_CALLBACK (Hara_kiri_group_spanner,force_hara_kiri_in_parent_callback,2);
+MAKE_SCHEME_CALLBACK (Hara_kiri_group_spanner, force_hara_kiri_in_parent_callback, 2);
 SCM
 Hara_kiri_group_spanner::force_hara_kiri_in_parent_callback (SCM element_smob, SCM axis)
 {
@@ -93,14 +93,14 @@ Hara_kiri_group_spanner::add_element (Grob * me, Grob *e)
 
 
 void 
-Hara_kiri_group_spanner::add_interesting_item (Grob* me,Grob* n)
+Hara_kiri_group_spanner::add_interesting_item (Grob* me, Grob* n)
 {
   me->add_dependency (n);
-  Pointer_group_interface::add_grob (me, ly_symbol2scm ("items-worth-living"),n);
+  Pointer_group_interface::add_grob (me, ly_symbol2scm ("items-worth-living"), n);
 }
 
 
-ADD_INTERFACE (Hara_kiri_group_spanner,"hara-kiri-group-interface",
+ADD_INTERFACE (Hara_kiri_group_spanner, "hara-kiri-group-interface",
               "A group spanner that  keeps track of interesting items.  If it "
               "doesn't contain any after linebreaking, then it "
               "will remove itself and all its children."
index 16c08f8720f2e4cac78f8b7a7deacdf34648d8f6..ed5eac5debdd99819fd9996cc28981894cef9d72 100644 (file)
@@ -36,7 +36,7 @@ Horizontal_bracket::print (SCM smob)
 {
   Grob * me = unsmob_grob (smob);
   Spanner *sp = dynamic_cast<Spanner*> (me);
-  Link_array<Grob> gs = Pointer_group_interface__extract_grobs (me,(Grob*)0, "columns");
+  Link_array<Grob> gs = Pointer_group_interface__extract_grobs (me, (Grob*)0, "columns");
 
   if (!gs.size ())
     {
@@ -45,7 +45,7 @@ Horizontal_bracket::print (SCM smob)
     }
   Grob * cx = common_refpoint_of_array (gs, me, X_AXIS);
   cx = cx->common_refpoint (sp->get_bound (LEFT), X_AXIS);
-  cx = cx->common_refpoint (sp->get_bound (RIGHT),X_AXIS);
+  cx = cx->common_refpoint (sp->get_bound (RIGHT), X_AXIS);
 
   Interval ext = gs.top ()->extent (cx, X_AXIS);
   ext.unite (gs[0]->extent (cx, X_AXIS));
@@ -55,10 +55,10 @@ Horizontal_bracket::print (SCM smob)
 
   
   Drul_array<Real> flare = robust_scm2interval (me->get_property ("bracket-flare"),
-                                               Interval (0,0));
+                                               Interval (0, 0));
 
   Drul_array<Real> shorten = robust_scm2interval (me->get_property ("shorten-pair"),
-                                                 Interval (0,0));
+                                                 Interval (0, 0));
 
   Interval empty;
   Stencil b
@@ -70,7 +70,7 @@ Horizontal_bracket::print (SCM smob)
   return b.smobbed_copy ();  
 }
 
-ADD_INTERFACE (Horizontal_bracket,"horizontal-bracket-interface",
+ADD_INTERFACE (Horizontal_bracket, "horizontal-bracket-interface",
   "A horizontal bracket encompassing notes.",
   "columns bracket-flare shorten-pair edge-height");
 
index beeda174d0a2ed9015e9512514280f984add27e9..236e177078629e39d6b20ed2b5645607ba3e75ba 100644 (file)
@@ -23,7 +23,7 @@ public:
   static bool has_interface (Grob*);
   
   static String get_fontcharname(String style, int alteration);
-  static Array<Box> Accidental_interface::accurate_boxes (Grob *me,Grob**common);
+  static Array<Box> Accidental_interface::accurate_boxes (Grob *me, Grob**common);
 };
 
 
index 910fa8ccf7fc50182556a538030f5939f23f5f92..a288aeb3915d79888ea5793bfc14f7e37feadd8e 100644 (file)
@@ -16,7 +16,7 @@ class Accidental_placement
 {
 public:
   DECLARE_SCHEME_CALLBACK (alignment_callback, (SCM element, SCM axis));
-  static void add_accidental (Grob *,Grob* );
+  static void add_accidental (Grob *, Grob* );
 
   static Interval get_relevant_accidental_extent (Grob *me,
                                                  Item *item_col,
index 31bc1d31ed12b60e2cf935ee0907ff5c3f33812c..adafed8d6d29927775798f31817de478ae499b07 100644 (file)
@@ -41,7 +41,7 @@ protected:
   AFM_CharMetricInfo const *find_ascii_metric (int) const;  
 
   Array<int> ascii_to_metric_idx_;
-  std::map<String,int> name_to_metric_dict_;
+  std::map<String, int> name_to_metric_dict_;
 
   Adobe_font_metric (AFM_Font_info*);
 };
index 3a64c2d719f87576747e6e0cc747be641392c756..279c1b6a3db90d7eddfbfdb0c3f79a7cf53d0ec6 100644 (file)
 struct Align_interface {
   DECLARE_SCHEME_CALLBACK (alignment_callback, (SCM element, SCM axis));
   DECLARE_SCHEME_CALLBACK (fixed_distance_alignment_callback, (SCM element, SCM axis));
-  static void align_to_fixed_distance (Grob*,Axis a);
-  static void align_elements_to_extents (Grob*,Axis a);
-  static void set_axis (Grob*,Axis);
+  static void align_to_fixed_distance (Grob*, Axis a);
+  static void align_elements_to_extents (Grob*, Axis a);
+  static void set_axis (Grob*, Axis);
   static Axis axis (Grob*) ;
-  static void add_element (Grob*,Grob*, SCM callback);
-  static int get_count (Grob*,Grob*);
+  static void add_element (Grob*, Grob*, SCM callback);
+  static int get_count (Grob*, Grob*);
 
   static bool has_interface (Grob*);
 };
index 8e49478ad5b2002b4427575ab75e8e82467a6a7c..2eb368bba891d4bdef30a197441bd20c0da432b8 100644 (file)
@@ -17,7 +17,7 @@ class Arpeggio
 public:
   DECLARE_SCHEME_CALLBACK (print, (SCM));
   DECLARE_SCHEME_CALLBACK (brew_chord_bracket, (SCM));
-  DECLARE_SCHEME_CALLBACK (width_callback, (SCM,SCM));
+  DECLARE_SCHEME_CALLBACK (width_callback, (SCM, SCM));
   static bool has_interface (Grob*);
 };
 
index 023441b895523d65a9d0447706b1d8ee2a995d7d..aee77390170a064a4bca6cac5f8020563969dbf6 100644 (file)
@@ -21,8 +21,8 @@ struct Axis_group_interface
   static Interval relative_group_extent (Axis, Grob * common, SCM list);
 
   static void add_element (Grob* me, Grob*);
-  static void set_axes (Grob*,Axis,Axis);
-  static bool has_axis (Grob*,Axis);
+  static void set_axes (Grob*, Axis, Axis);
+  static bool has_axis (Grob*, Axis);
   static Link_array<Grob> get_children (Grob*);
   static bool has_interface (Grob*);
   
index f275cb3099ae463dd0d0c3c4aa3bb757ead57db4..94c4a64fd1ad91f5c5879d81a51eb5f67fa6cb96 100644 (file)
@@ -24,9 +24,9 @@ public:
   static bool has_interface (Grob*);
   DECLARE_SCHEME_CALLBACK (rest_collision_callback, (SCM element, SCM axis));
   Beam (SCM);
-  static void add_stem (Grob*,Grob*);
+  static void add_stem (Grob*, Grob*);
   static bool is_knee (Grob*);
-  static void set_beaming (Grob*,Beaming_info_list *);
+  static void set_beaming (Grob*, Beaming_info_list *);
   static void set_stemlens (Grob*);
   static int get_beam_count (Grob*me);
   static void position_beam (Grob* me);
index 3c2477eb3af622a08ec8cd9bb17a56d0c466cc98..44b7df2a59c8895581460f94dd155e2856cb8a74 100644 (file)
@@ -32,8 +32,8 @@ struct Beaming_info_list
   Array<Beaming_info> infos_;
 
   int beam_extend_count (Direction) const;
-  int best_splitpoint_index (Moment &beat_length,bool subdivide) const;
-  void beamify (Moment &beat_length,bool subdivide);
+  int best_splitpoint_index (Moment &beat_length, bool subdivide) const;
+  void beamify (Moment &beat_length, bool subdivide);
   void add_stem (Moment d, int beams);
 };
 
index 0b6e1f2283705c6bcf5e4f6af9a32df620f0a563..4b449c6b42bcda714845d25f765ca393113fec4a 100644 (file)
@@ -19,7 +19,7 @@ class Bezier
 {
 public:
   void assert_sanity () const;
-  void scale (Real x,Real y);
+  void scale (Real x, Real y);
   void reverse ();
   void rotate (Real);
   void translate (Offset);
index a649ef057cf6fb937be3d696e96f2f3dfaf8d479..ff9ea00c6088580fcc0eaee4b5980959211cbe01 100644 (file)
@@ -12,8 +12,8 @@
 
 #include "axes.hh"
 
-typedef Interval (*Dim_cache_callback) (Grob *,Axis);
-typedef Real (*Offset_callback) (Grob *,Axis);
+typedef Interval (*Dim_cache_callback) (Grob *, Axis);
+typedef Real (*Offset_callback) (Grob *, Axis);
 
 #endif /* DIMENSION_CACHE_CALLBACK_HH */
 
index 994d89c0c2b380717f35739700ca0fcd067242ca..81a373edf22b2ba2c6c296426cf44f6af411f833 100644 (file)
@@ -20,12 +20,12 @@ class Grob;
 class Dot_column               // interface
 {
 public:
-  static int compare (Grob * const&,Grob * const&);
+  static int compare (Grob * const&, Grob * const&);
   static void add_head (Grob * dotcol, Grob* rh );
 
   static bool has_interface (Grob*);
-  DECLARE_SCHEME_CALLBACK (force_shift_callback, (SCM ,SCM));
-  DECLARE_SCHEME_CALLBACK (side_position, (SCM ,SCM));  
+  DECLARE_SCHEME_CALLBACK (force_shift_callback, (SCM , SCM));
+  DECLARE_SCHEME_CALLBACK (side_position, (SCM , SCM));  
   static SCM do_shifts (Grob*);
 };
 #endif // DOT_COLUMN_HH
index 258c03ba9f4a5e86522291a7c6cde87a1b6fb1f0..931fdab7c9aae1fd0efb3be63c7821692e80bf4e 100644 (file)
@@ -31,7 +31,7 @@ public:
   static int compare (Duration const&, Duration const&);
 
   DECLARE_SCHEME_CALLBACK (less_p, (SCM a, SCM b));
-  DECLARE_SIMPLE_SMOBS (Duration,);
+  DECLARE_SIMPLE_SMOBS (Duration, );
 
 private:
   /// Logarithm of the base duration.
index 7d8c034173ce67d45a6665e44c8088bc64f8e1c4..9b89eea5f1eed9dcf3594513795ab3b0879bdb7f 100644 (file)
@@ -52,8 +52,8 @@ public:
   TRANSLATOR_DECLARATIONS(Engraver);
 };
 
-#define make_item(x,cause) make_item_from_properties (this, ly_symbol2scm (x), cause, x)
-#define make_spanner(x,cause) make_spanner_from_properties (this, ly_symbol2scm (x), cause, x)
+#define make_item(x, cause) make_item_from_properties (this, ly_symbol2scm (x), cause, x)
+#define make_spanner(x, cause) make_spanner_from_properties (this, ly_symbol2scm (x), cause, x)
 Item* make_item_from_properties (Engraver * tg, SCM x, SCM cause, const char *name);
 Spanner* make_spanner_from_properties (Engraver * tg, SCM x, SCM cause, const char*name);
 
index 6a5aa406d30e0dca5a709c15e00ace7c82a5266c..4f981fb01a53734d7920c20f50518cdc38528c51 100644 (file)
@@ -22,7 +22,7 @@ class Event : public Music
 public:
   Event (SCM);
   VIRTUAL_COPY_CONSTRUCTOR (Music, Event);
-  DECLARE_SCHEME_CALLBACK(length_callback,(SCM));
+  DECLARE_SCHEME_CALLBACK(length_callback, (SCM));
 };
 
 
index 6e1fe30e3c78b53ab04efd2ce3b5c47236890e19..c94fa2bb986340960dcd401b566c3e0ce91020ec 100644 (file)
@@ -38,7 +38,7 @@ public:
   virtual Stencil get_ascii_char_stencil (int k) const;
   virtual SCM sub_fonts () const;
   virtual SCM font_file_name () const; 
-  DECLARE_SMOBS (Font_metric,);
+  DECLARE_SMOBS (Font_metric, );
 
 private:
   /* No copying, no implicit copy constructor.  */
index 01835c61979d5b10f878d6492db8a16c1fb3b696..ed56a38edf4bd0e49cda2ecd29f2d5019d116d64 100644 (file)
@@ -11,7 +11,7 @@
 #define GLOBAL_CTOR_HH
 
 
-#define ADD_GLOBAL_CTOR_WITHNAME(y,x)\
+#define ADD_GLOBAL_CTOR_WITHNAME(y, x)\
 class Global_ctor_ ## y  \
 {\
 public:        \
@@ -21,7 +21,7 @@ public:       \
 }  _ ## y ## _ctor_init;       \
 
 
-#define ADD_GLOBAL_CTOR(x) ADD_GLOBAL_CTOR_WITHNAME (x,x);
+#define ADD_GLOBAL_CTOR(x) ADD_GLOBAL_CTOR_WITHNAME (x, x);
 
 
 typedef void (* Global_ctor ) ();
index 9aacd484f595a52a5a579a40a625178e63f653e1..c35174cdc04c13d0b91cb55f1d57c2fb24a43a32 100644 (file)
@@ -19,6 +19,6 @@ struct Gourlay_breaking : public Break_algorithm
 {
   Array<Column_x_positions> do_solve () const;
   Gourlay_breaking ();
-  Real combine_demerits (Column_x_positions const&,Column_x_positions const&) const;
+  Real combine_demerits (Column_x_positions const&, Column_x_positions const&) const;
 };
 #endif // GOURLAY_BREAKING_HH
index 69f27976d1a6e664b3b7c5bc3c5032bcce642476..3f4bcfdbe186d701634a444ba77e2f49c7919ec3 100644 (file)
 
 
 
-#define ADD_INTERFACE(cl,a,b,c) \
+#define ADD_INTERFACE(cl, a, b, c) \
 bool cl::has_interface(Grob*me)\
 {\
   return me->internal_has_interface (ly_symbol2scm (a));\
 }\
 void cl ## _init_ifaces() {\
-  add_interface(a,b,c);\
+  add_interface(a, b, c);\
 }\
 ADD_SCM_INIT_FUNC(cl ## ifaces, cl ## _init_ifaces);\
 
index 612aa8d36dab3a805af071a9b6a315d90d53c3a7..15ca5933af3559f73932f34e648d3c799fcb37e7 100644 (file)
    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.
-  POSTCALCED,          // after spacing calcs done
+  PRECALCED,           // calcs before spacing done
+  POSTCALCING,                 // busy calculating. This is used to trap cyclic deps.
+  POSTCALCED,          // after spacing calcs done
 };
 
 typedef void (Grob::*Grob_method_pointer) (void);
@@ -78,7 +78,7 @@ public:
   void add_to_list_property (SCM, SCM);
 
   SCM get_property_alist_chain (SCM) const;
-  static SCM ly_grob_set_property (SCM, SCM,SCM);
+  static SCM ly_grob_set_property (SCM, SCM, SCM);
   static SCM ly_grob_property (SCM, SCM);  
 
   void warning (String) const;
index fc66c1c9f7b1ce278e225fadb5ef214c17cde2e3..d61d50e35173f259aedebe2cc35d2b899efd58bf 100644 (file)
@@ -56,7 +56,7 @@ inline bool ly_c_symbol_p (SCM x) { return SCM_SYMBOLP (x); }
 inline bool ly_c_boolean_p (SCM x) { return SCM_BOOLP (x); }
 #define scm_is_bool(x) ly_c_boolean_p(x)
 inline bool ly_c_eq_p (SCM x, SCM y) { return SCM_EQ_P (x, y); }
-#define scm_is_eq(x,y) (SCM_EQ_P ((x), (y)))
+#define scm_is_eq(x, y) (SCM_EQ_P ((x), (y)))
 
 #define scm_c_string_length(x) SCM_STRING_LENGTH (x)
 #define scm_is_pair(x) (SCM_CONSP (x))
index 041b97374f6fc81dc29ffce4358dbec5b88dd99a..efaf83f65b1a551f68dd843f0fc89359d81af913 100644 (file)
@@ -16,9 +16,9 @@
 class Hara_kiri_group_spanner 
 {
 public:
-  DECLARE_SCHEME_CALLBACK (force_hara_kiri_callback, (SCM ,SCM));
+  DECLARE_SCHEME_CALLBACK (force_hara_kiri_callback, (SCM , SCM));
   DECLARE_SCHEME_CALLBACK (y_extent, (SCM smob, SCM axis));
-  DECLARE_SCHEME_CALLBACK (force_hara_kiri_in_parent_callback, (SCM ,SCM));
+  DECLARE_SCHEME_CALLBACK (force_hara_kiri_in_parent_callback, (SCM , SCM));
   static void add_element (Grob *me, Grob *e);
   static bool has_interface (Grob*);
   static void consider_suicide (Grob*me);
index 526d1ec226b9fdc16d719ef1c2426052fabe28fe..221bcef76c4b31cde794e950096b604eddf28988 100644 (file)
@@ -125,7 +125,7 @@ SCM FNAME ## _proc; \
 void \
 INITPREFIX ## init () \
 { \
-  FNAME ## _proc = scm_c_define_gsubr (PRIMNAME,REQ, OPT, VAR, \
+  FNAME ## _proc = scm_c_define_gsubr (PRIMNAME, REQ, OPT, VAR, \
                                        (Scheme_function_unknown) FNAME); \
   ly_add_function_documentation (FNAME ## _proc, PRIMNAME, #ARGLIST, \
                                 DOCSTRING); \
index 01c6646a0651c2d461a5ea92a9495982c16a5f55..b71535aa1dc14668eb9e7112bf6a3bf78be7cdb6 100644 (file)
@@ -141,8 +141,8 @@ typedef SCM (*Scheme_function_unknown) ();
 #if __GNUC__ > 2 || __GNUC_MINOR__ >= 96
 typedef SCM (*Scheme_function_0) ();
 typedef SCM (*Scheme_function_1) (SCM);
-typedef SCM (*Scheme_function_2) (SCM,SCM);    
-typedef SCM (*Scheme_function_3) (SCM,SCM, SCM);       
+typedef SCM (*Scheme_function_2) (SCM, SCM);   
+typedef SCM (*Scheme_function_3) (SCM, SCM, SCM);      
 #else
 typedef SCM (*Scheme_function_0) (...);
 typedef SCM (*Scheme_function_1) (...);
index a767f1dcbcb2d0170817b0088bf8526632dbfeda..fbc06b63676b85adf17fbfad9ce208fede807921 100644 (file)
@@ -21,7 +21,7 @@ void set_lexer ();
 
 class Lily_lexer : public Includable_lexer 
 {
-  DECLARE_SMOBS(Lily_lexer,);
+  DECLARE_SMOBS(Lily_lexer, );
 public:
   SCM scopes_;
   
@@ -57,7 +57,7 @@ public:
   void add_lexed_char (int);
 
   void prepare_for_next_token ();
-  int try_special_identifiers (SCM* ,SCM);
+  int try_special_identifiers (SCM* , SCM);
   Input here_input () const;
   
   void add_scope (SCM);
index 2fd514e4879906dcfa14bd93723b81d0188a3a0d..24d0a3f36bfe9217f1a73103801f509ed8f27a33 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  lilypond-key.hh -- declare Lilypond_{grob,context}_key
+  lilypond-key.hh -- declare Lilypond_{grob, context}_key
 
   source file of the GNU LilyPond music typesetter
 
index aebad456e0bf2758e51758cd752fc0a202db8f66..953a89a0083e549754b13e51317d634dbf7307af 100644 (file)
@@ -19,7 +19,7 @@
 */
 class Moment
 {
-  DECLARE_SIMPLE_SMOBS (Moment,);
+  DECLARE_SIMPLE_SMOBS (Moment, );
 public:
   Moment ();
   Moment (int m);
@@ -56,8 +56,8 @@ IMPLEMENT_ARITHMETIC_OPERATOR (Moment, / );
 IMPLEMENT_ARITHMETIC_OPERATOR (Moment, * );
 
 
-DECLARE_UNSMOB(Moment,moment);
-int compare (Moment const&,Moment const&);
+DECLARE_UNSMOB(Moment, moment);
+int compare (Moment const&, Moment const&);
 INSTANTIATE_COMPARE (Moment const&, Moment::compare);
 
 Moment robust_scm2moment (SCM, Moment);
index dc3955abd258316e4f1f6133442558dbe5cc6b25..e277539be13bd22e3356282d3809a3372d0863cf 100644 (file)
@@ -19,13 +19,13 @@ public:
   static bool has_interface (Grob*);
   DECLARE_SCHEME_CALLBACK (print, (SCM ));
   DECLARE_SCHEME_CALLBACK (percent, (SCM));
-  static  void add_column (Grob*,Item*);
+  static  void add_column (Grob*, Item*);
   DECLARE_SCHEME_CALLBACK (set_spacing_rods, (SCM ));
   DECLARE_SCHEME_CALLBACK (centered_stencil, (SCM ));
   
-  static Stencil big_rest (Grob*,Real);
-  static Stencil symbol_stencil (Grob*,Real);  
-  static Stencil church_rest (Grob*, Font_metric*, int,Real);
+  static Stencil big_rest (Grob*, Real);
+  static Stencil symbol_stencil (Grob*, Real);  
+  static Stencil church_rest (Grob*, Font_metric*, int, Real);
 };
 
 #endif /* MULTI_MEASURE_REST_HH */
index 4e54e49045b6a8e6446ba54ecf6a87c832d24070..cc5da19c392e719e954e5333202d900e6d985b6e 100644 (file)
@@ -55,7 +55,7 @@ protected:
   Moment music_length_;
   Moment start_mom_;
 
-  DECLARE_SMOBS (Music_iterator,dummy);
+  DECLARE_SMOBS (Music_iterator, dummy);
   Music_iterator (Music_iterator const&);
 public:
   
@@ -118,9 +118,9 @@ private:
 bool is_child_context (Context *me, Context *child);
 
 #define IMPLEMENT_CTOR_CALLBACK(Class)         \
-LY_DEFINE_MEMBER_FUNCTION(Class,constructor, #Class "::constructor",\
-         0,0,0,\
-         (),\
+LY_DEFINE_MEMBER_FUNCTION(Class, constructor, #Class "::constructor", \
+         0, 0, 0, \
+         (), \
          "")\
 {                                              \
   SCM val = (new Class)->self_scm();   \
index f96d45aba93c1546ec218780b5f232d41d399030..28d99eb022c77c16c0f36f8e43c16499028e0e0b 100644 (file)
@@ -31,7 +31,7 @@ public:
 };
 
 SCM ly_transpose_key_alist (SCM l, SCM pit);
-Pitch music_list_to_relative (SCM l,Pitch p, bool ret_first);
+Pitch music_list_to_relative (SCM l, Pitch p, bool ret_first);
 void transpose_music_list (SCM , Pitch);
 void compress_music_list (SCM, Moment);
 
index 68f9d9a8d0d214e93b4350093e13161572d42ff2..0d41c41d28cab11d5816527f2ce61496c4d3e7a3 100644 (file)
@@ -24,7 +24,7 @@ class Music_wrapper : public Music
 public:
   Music_wrapper (SCM);
   VIRTUAL_COPY_CONSTRUCTOR (Music, Music_wrapper);
-  DECLARE_SCHEME_CALLBACK(length_callback,(SCM));
+  DECLARE_SCHEME_CALLBACK(length_callback, (SCM));
   DECLARE_SCHEME_CALLBACK(start_callback, (SCM));
   
   Music *element () const;
index b080f7eb9335f84889c64e8a83d482efd3383d2c..12db78facdca7d051d465614191f3398215ffb2f 100644 (file)
@@ -32,7 +32,7 @@ public:
   bool internal_is_music_type (SCM) const;
   int duration_log () const;
   
-  DECLARE_SCHEME_CALLBACK(relative_callback,(SCM,SCM));
+  DECLARE_SCHEME_CALLBACK(relative_callback, (SCM, SCM));
   Pitch to_relative_octave (Pitch);
   Pitch generic_to_relative_octave (Pitch);  
   String name () const;
@@ -47,7 +47,7 @@ public:
   void compress (Moment factor);
   
 protected:
-  DECLARE_SMOBS (Music,);
+  DECLARE_SMOBS (Music, );
   SCM immutable_property_alist_;
   SCM mutable_property_alist_;
 protected:
@@ -57,7 +57,7 @@ protected:
 };
 
 DECLARE_TYPE_P(Music);
-DECLARE_UNSMOB(Music,music);
+DECLARE_UNSMOB(Music, music);
 
 Music *make_music_by_name (SCM sym);
 SCM ly_music_deep_copy (SCM);
index 6602376ad70871e1a22b044999717dd774684cd6..82329d6328bdd40101b1d86b41883a48d3969a96 100644 (file)
@@ -34,7 +34,7 @@ public:
   static Drul_array< Link_array <Grob>  > get_clash_groups (Grob *me);
   DECLARE_SCHEME_CALLBACK (force_shift_callback, (SCM element, SCM axis));
   static void do_shifts (Grob*);
-  static void add_column (Grob*me,Grob*ncol);
+  static void add_column (Grob*me, Grob*ncol);
   static bool has_interface(Grob*);
 };
 #endif // COLLISION_HH
index de5d5f7c24febc5030dfafbb1d413f24496074bf..32eec6af311825d390ca528de12a3a5a75331b56 100644 (file)
@@ -26,12 +26,12 @@ public:
   static Grob * accidentals (Grob*me);
   static Slice head_positions_interval (Grob* me);
   static Direction static_dir (Grob*);
-  static void translate_rests (Grob*me,int dy);
+  static void translate_rests (Grob*me, int dy);
   static Grob *first_head (Grob*me);
   static Grob *get_rest (Grob*me);
-  static void set_stem (Grob*me,Grob*);
-  static void set_dotcol (Grob*me,Grob*);
-  static void add_head (Grob*me,Grob*);
+  static void set_stem (Grob*me, Grob*);
+  static void set_dotcol (Grob*me, Grob*);
+  static void add_head (Grob*me, Grob*);
   static bool has_rests (Grob*me);
   static bool has_interface (Grob*);
   
index 89d5667983addcc5f4b40555621ef26ac29d6e2a..0033f7866e84ff3633013c36e6eddbc1f82a0532 100644 (file)
@@ -21,7 +21,7 @@ class Note_head
 public:
   DECLARE_SCHEME_CALLBACK (print, (SCM ));
   DECLARE_SCHEME_CALLBACK (brew_ez_stencil, (SCM));
-  DECLARE_SCHEME_CALLBACK (extent, (SCM,SCM));
+  DECLARE_SCHEME_CALLBACK (extent, (SCM, SCM));
   static bool has_interface (Grob*);
   static Real stem_attachment_coordinate (Grob *, Axis a);
   static int get_balltype (Grob*) ;  
index 0f259ff13c3dad95bcdb91ed0377bac9d801e283..5ee61408e910a5886bfd442ee0e29d9b608edca8 100644 (file)
@@ -27,7 +27,7 @@ class Object_key_dumper
   
   SCM key_serial (int);
   SCM serialize_key (Object_key const *);
-  DECLARE_SMOBS (Object_key_dumper,);
+  DECLARE_SMOBS (Object_key_dumper, );
 public:
   Object_key_dumper (); 
   SCM get_file_contents () const;
index ce24609e9c52fe0dbef3659787738a4464ddb3c0..95af156eec289cfa5241425ed090948046805545 100644 (file)
@@ -17,7 +17,7 @@ typedef std::map<int, Object_key const *> Int_to_key_map;
 
 struct Object_key_undumper
 {
-  DECLARE_SMOBS(Object_key_undumper,);
+  DECLARE_SMOBS(Object_key_undumper, );
   Int_to_key_map keys_;
 public:
   void parse_contents (SCM);
index d43a25a8e70067785427a1110d0e23311597643f..755b72f1228b8ad5c8d35f06572eed2a4f3ee96f 100644 (file)
@@ -21,7 +21,7 @@
  */
 class Object_key
 {
-  DECLARE_SMOBS(Object_key,);
+  DECLARE_SMOBS(Object_key, );
 
 protected:
   Object_key();
index b5c60c0c59e854ee4d8f4f51376ffba29500ebad..2b0a0aadbc8b5a34287a13cfb9a2a3fd0dc58d8c 100644 (file)
@@ -40,7 +40,7 @@ class Output_def
 {
 public:
   VIRTUAL_COPY_CONSTRUCTOR (Output_def, Output_def);
-  DECLARE_SMOBS (Output_def,);
+  DECLARE_SMOBS (Output_def, );
 public:
   SCM scope_;
   Output_def * parent_;
index ef2e300bf8499deb575b021b0cfc80b8a3fe89e1..95b8fc038abc5153be9eb73c6de1e49fd7fc8e83 100644 (file)
@@ -28,7 +28,7 @@ class Paper_outputter
 
 
 public:
-  DECLARE_SMOBS (Paper_outputter,);
+  DECLARE_SMOBS (Paper_outputter, );
 
 public:
   SCM file ();
index ec63aca5c974a70d26c935198d9d1466db128ce0..6d6cf637c5a17276ec019d167decf99ad24d3417 100644 (file)
@@ -18,7 +18,7 @@ public:
   static bool has_interface (Grob*);
   DECLARE_SCHEME_CALLBACK (beat_slash, (SCM ));  
   DECLARE_SCHEME_CALLBACK (double_percent, (SCM ));
-  static Stencil x_percent (Grob*,int,Real,Real );
+  static Stencil x_percent (Grob*, int, Real, Real );
   static Stencil brew_slash (Grob*);
 };
 
index fc02ef4fa0bd9edd67722840cac1f0a7f6d6ffe4..8be2dc3404db55d531e44101c48c97bedc83d056 100644 (file)
@@ -48,13 +48,13 @@ public:
   int get_notename () const;
   int get_alteration () const;
 
-  Pitch (int octave, int notename,int accidental);
+  Pitch (int octave, int notename, int accidental);
   Pitch ();
 
   Pitch transposed (Pitch) const;
   Pitch to_relative_octave (Pitch) const;
 
-  static int compare (Pitch const&,Pitch const&);
+  static int compare (Pitch const&, Pitch const&);
 
   int steps () const;
   int semitone_pitch () const; 
@@ -62,7 +62,7 @@ public:
   String to_string () const;
 
   DECLARE_SCHEME_CALLBACK (less_p, (SCM a, SCM b));
-  DECLARE_SIMPLE_SMOBS (Pitch,);
+  DECLARE_SIMPLE_SMOBS (Pitch, );
 };
 
 enum {
@@ -79,7 +79,7 @@ enum {
 
 SCM ly_pitch_diff (SCM pitch, SCM  root);
 SCM ly_pitch_transpose (SCM p, SCM delta);
-DECLARE_UNSMOB(Pitch,pitch);
+DECLARE_UNSMOB(Pitch, pitch);
 
 INSTANTIATE_COMPARE (Pitch, Pitch::compare);
 
index 05ef3e58c7afb818d7515de30d82dd9dcc5631b7..ce702fa2af0da2aba67af49b3395f5c1f4b4c8b7 100644 (file)
@@ -54,7 +54,7 @@ public:
 
   /* How often do we repeat? */
   static int repeat_count (Music*);
-  DECLARE_SCHEME_CALLBACK(relative_callback,(SCM,SCM));
+  DECLARE_SCHEME_CALLBACK(relative_callback, (SCM, SCM));
 
   static Moment body_get_length (Music*);
   static Moment alternatives_get_length (Music *, bool fold);
index 7171c0ceb6e04c6a18e81da25e9b61214af7a19e..3da35e3764a0d85fcf1d8362dcdff6d4625acb13 100644 (file)
@@ -19,7 +19,7 @@
 class Rest_collision
 {
 public:
-  static void add_column (Grob*me,Grob*);
+  static void add_column (Grob*me, Grob*);
   
   static bool has_interface (Grob*);
   DECLARE_SCHEME_CALLBACK (force_shift_callback, (SCM element, SCM axis));
index 3e7c4e8e4fad694d98fc6f6e30b8ce3e9cb3c8e2..9513d8c82ad0fa4fd25fb9ff73b2a083e65ef93a 100644 (file)
@@ -21,8 +21,8 @@ public:
   static bool has_interface (Grob*);
   static String glyph_name (Grob*, int, String, bool); 
   static SCM brew_internal_stencil (SCM, bool);
-  DECLARE_SCHEME_CALLBACK (extent_callback, (SCM,SCM));
-  DECLARE_SCHEME_CALLBACK (polyphonic_offset_callback, (SCM,SCM));
+  DECLARE_SCHEME_CALLBACK (extent_callback, (SCM, SCM));
+  DECLARE_SCHEME_CALLBACK (polyphonic_offset_callback, (SCM, SCM));
   DECLARE_SCHEME_CALLBACK (print, (SCM ));
 };
 #endif // REST_HH
index f50cccb12d382ff5690a9aea18b04c9eb444ea8a..12cbf575a0ec10fea73afe463c0d0f0ac00f89c8 100644 (file)
@@ -17,7 +17,7 @@ class Rhythmic_head
 {
 public:
   static int duration_log (Grob*);
-  static void set_dots (Grob*,Item *);
+  static void set_dots (Grob*, Item *);
   static Item * get_stem (Grob*) ;
   static Item * get_dots (Grob*) ;
   static int dot_count (Grob*) ;
index af67e0bebd167425bb1916f3f5f0b8840a0524a9..0f8deada9c338a574b37d75b323ad86f7c1eccbd 100644 (file)
@@ -25,7 +25,7 @@ class Score_engraver : public virtual Score_translator,
   Paper_score * pscore_;
 
   void make_columns ();
-  void set_columns (Paper_column*,Paper_column*);
+  void set_columns (Paper_column*, Paper_column*);
   void typeset_all ();
 protected:
   /* Score_translator */
index dce3d940cd410ca43e9a8a686632359858d09389..5573e133688a5a3017ac873a97096356d8d73f7b 100644 (file)
 struct Separation_item
 {
   static bool has_interface (Grob*);
-  static Interval conditional_width (Grob*,Grob*) ;
+  static Interval conditional_width (Grob*, Grob*) ;
   static Interval width (Grob*) ;
   static Interval relative_width (Grob*, Grob*) ;
-  static Grob*extremal_break_aligned_grob (Grob*,Direction, Interval*);
-  static void add_item (Grob*,Item*);
-  static void add_conditional_item (Grob*,Grob*);  
+  static Grob*extremal_break_aligned_grob (Grob*, Direction, Interval*);
+  static void add_item (Grob*, Item*);
+  static void add_conditional_item (Grob*, Grob*);  
 };
 
 #endif /* SINGLE_MALT_GROUPING_ITEM_HH */
index 5ebebc36b66778ebb28ea81846bbae52e5cdcaca..5bf8c02f82dc1e84c5a5901d61f02da9aa620eea 100644 (file)
@@ -32,7 +32,7 @@ public:
   static Axis get_axis (Grob*) ;
   static void set_axis (Grob*,  Axis) ;
   static bool has_interface (Grob*) ;
-  static void add_support (Grob*,Grob*);
+  static void add_support (Grob*, Grob*);
   static void add_staff_support (Grob*);
   static Direction get_direction (Grob*);
 };
index 776ea422fd009b47ea2de0997f590fc6b3bd09d4..242251c1b82432997d9876409f6b963788ea8cc7 100644 (file)
@@ -19,8 +19,8 @@ public:
   static void add_extra_encompass (Grob *me, Grob *col);
   DECLARE_SCHEME_CALLBACK (print, (SCM));
   DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM));
-  DECLARE_SCHEME_CALLBACK (height, (SCM,SCM));
-  DECLARE_SCHEME_CALLBACK (outside_slur_callback, (SCM,SCM));
+  DECLARE_SCHEME_CALLBACK (height, (SCM, SCM));
+  DECLARE_SCHEME_CALLBACK (outside_slur_callback, (SCM, SCM));
   static bool has_interface (Grob *);
   static Bezier get_curve (Grob*me);
 };
index e90231e7b5d203c3f84b55845cd4acebe02abb32..b091bc3800b3a95dcd07deb6d30ab93656ad1386 100644 (file)
@@ -28,7 +28,7 @@
    SCM smobbed_copy ().
 
    Simple smobs are created by adding the
-   DECLARE_SIMPLE_SMOBS(Classname,) to the declaration
+   DECLARE_SIMPLE_SMOBS(Classname, ) to the declaration
 
   2. Complex smobs are objects that have an identity. These objects
    carry this identity in the form of a self_scm () method, which is a
@@ -59,7 +59,7 @@
       list = scm_cons (p->self_scm (), list);
       scm_gc_unprotect_object (p->self_scm ());
 
-   Complex smobs are made with DECLARE_SMOBS (Classname,) in the class
+   Complex smobs are made with DECLARE_SMOBS (Classname, ) in the class
    declaration.
 
    CALLING INTERFACE
@@ -115,7 +115,7 @@ public: \
 private:
 
 
-#define DECLARE_SMOBS(CL,dummy)                                        \
+#define DECLARE_SMOBS(CL, dummy)                                       \
        DECLARE_BASE_SMOBS (CL) \
 protected:\
        virtual ~CL ();\
@@ -127,7 +127,7 @@ public: \
        SCM self_scm () const { return self_scm_; } \
 private:
 
-#define DECLARE_UNSMOB(CL,name) \
+#define DECLARE_UNSMOB(CL, name) \
 inline CL *                                            \
 unsmob_ ## name (SCM s)                        \
 {                                              \
index 87df8ec7235e925da16f93c07f4ccde455924239..a3389217109ae382234fd2d282b04107c58c35d9 100644 (file)
@@ -17,7 +17,7 @@ struct Spaceable_grob
 {
   /// set a minimum distance
   static void add_rod (Grob*me, Grob * to, Real distance);
-  static void add_spring (Grob*me,Grob * to, Real dist, Real strength);
+  static void add_spring (Grob*me, Grob * to, Real dist, Real strength);
   static bool has_interface (Grob*);
   static void remove_interface (Grob*);
   static SCM get_minimum_distances (Grob*);
index ac9c005f7348e437e7037d6f88f55330bc679d81..4b3f0b3d24bb9ab9ca54ee93c43d6b4309cdb5b1 100644 (file)
@@ -24,7 +24,7 @@ public:
   
   static bool has_interface (Grob*);  
   static Interval get_spanned_interval (Grob*);
-  static void add_bar (Grob*,Grob*);
+  static void add_bar (Grob*, Grob*);
   static void evaluate_glyph (Grob*);
   static void evaluate_empty (Grob*);
   DECLARE_SCHEME_CALLBACK (width_callback, (SCM smob, SCM axis));
index f526858101a112c81ab11138ae805732dde40514..e7745cb528ba70214ddc82065855d3d11b6d5f6e 100644 (file)
@@ -52,7 +52,7 @@ public:
   void do_break ();
   Real spanner_length () const;
 
-  static int compare (Spanner * const &,Spanner * const &);
+  static int compare (Spanner * const &, Spanner * const &);
   virtual Grob* find_broken_piece (System*) const;
   virtual SCM do_derived_mark () const;
   static bool has_interface (Grob*);
index 7a5c890b831c852bf2a4c333362949728518abc6..58b72feb0e352ff4ca37d08a3888135f1e13af36 100644 (file)
@@ -20,7 +20,7 @@ struct Spring_smob
   bool expand_only_b_;
   Real strength_;
   
-  DECLARE_SIMPLE_SMOBS(Spring_smob,dummy);
+  DECLARE_SIMPLE_SMOBS(Spring_smob, dummy);
 public:
   Spring_smob();
 };
index 01888d7f047eb770a893656d9f81fc73d639fbed..1c90670de8fba7244f370fe0da73bbda83ad4555 100644 (file)
@@ -18,7 +18,7 @@ public:
   static Real next_notes_correction (Grob*, Grob*);
   static Real next_note_correction (Grob*, Grob*, Interval);  
   static bool has_interface (Grob*);
-  static void get_spacing_params (Grob*,Real*,Real*);
+  static void get_spacing_params (Grob*, Real*, Real*);
 
   static Interval bar_y_positions (Grob*);
 };
index 9b5b74e0e977481b656faebeb9b51c8e60f5cd4a..6b5ec9e8c38844d5d40bf63d1c0d8227e2d3cde3 100644 (file)
@@ -23,7 +23,7 @@ class Staff_symbol_referencer
 public:
   static bool has_interface (Grob*);
   static bool ugly_hack (Grob*);  
-  static void set_position (Grob*,Real);
+  static void set_position (Grob*, Real);
   DECLARE_SCHEME_CALLBACK (callback, (SCM element, SCM axis));
 
   /**
@@ -34,13 +34,13 @@ public:
   static Real staff_space (Grob*);
   static Grob *get_staff_symbol (Grob*);
   static bool on_staffline (Grob*);
-  static bool on_staffline (Grob*,int);
+  static bool on_staffline (Grob*, int);
   static int line_count (Grob*);
   static Real get_position (Grob*);
   static Real staff_radius (Grob*);
   static int get_rounded_position (Grob*);
 };
 
-int compare_position (Grob *const&,Grob *const&); 
+int compare_position (Grob *const&, Grob *const&); 
 #endif /* STAFF_SYMBOL_REFERENCER_HH */
 
index dd9a21a4d58ba5caf85dc440eaae897d0ace5163..8c68e3b8230c4bda9c26a3e0bc3b9f0963ad8898 100644 (file)
@@ -20,7 +20,7 @@ public:
   static bool has_interface (Grob*);
   DECLARE_SCHEME_CALLBACK (dim_callback, (SCM smob, SCM axis));
   DECLARE_SCHEME_CALLBACK (print, (SCM ));
-  DECLARE_SCHEME_CALLBACK (height, (SCM,SCM));
+  DECLARE_SCHEME_CALLBACK (height, (SCM, SCM));
   static Stencil raw_stencil (Grob*);
 };
 
index bb2faea2287bd357b5b2ad5d22dc6c8ecad37c05..1c0616d2aec786b888685bd570e5669cc745fb70 100644 (file)
@@ -27,7 +27,7 @@ public:
   static Stem_info get_stem_info (Grob *);
   static Real chord_start_y (Grob *);
   static Direction get_direction (Grob *);
-  static void set_stemend (Grob *,Real);
+  static void set_stemend (Grob *, Real);
   static Direction get_default_dir (Grob *);
   static Slice Stem::beam_multiplicity (Grob *);
   static Real thickness (Grob*);
index 47abea6937fe05449cfc3a377fa69e39878092df..23621ecf8ffe4bba40df4a504812e480770b8a63 100644 (file)
@@ -41,7 +41,7 @@
     * Empty stencils have empty dimensions.  If add_at_edge is used to
     init the stencil, we assume that
 
-      DIMENSIONS = (Interval (0,0),Interval (0,0)
+      DIMENSIONS = (Interval (0, 0), Interval (0, 0)
 */
 class Stencil
 {
@@ -56,7 +56,7 @@ class Stencil
   Box dim_;
   SCM expr_;
   
-  DECLARE_SIMPLE_SMOBS (Stencil,);  
+  DECLARE_SIMPLE_SMOBS (Stencil, );  
 public:
   Stencil (Box, SCM s);
   Stencil ();
@@ -65,7 +65,7 @@ public:
   SCM expr () const;
 
   /**
-     Set dimensions to empty, or to (Interval (0,0),Interval (0,0) */
+     Set dimensions to empty, or to (Interval (0, 0), Interval (0, 0) */
   void set_empty (bool);
   Stencil moved_to_edge (Axis a, Direction d, const Stencil &m, Real padding,
                         Real minimum) const;
@@ -75,19 +75,19 @@ public:
   void add_stencil (Stencil const &m);
   void translate (Offset);
   void align_to (Axis a, Real x);
-  void translate_axis (Real,Axis);
+  void translate_axis (Real, Axis);
   
   Interval extent (Axis) const;
   Box extent_box () const;
   bool is_empty () const;
 
   static SCM ly_get_stencil_extent (SCM mol, SCM axis);
-  static SCM ly_set_stencil_extent_x (SCM,SCM,SCM);
-  static SCM ly_stencil_combined_at_edge (SCM,SCM,SCM,SCM,SCM);
+  static SCM ly_set_stencil_extent_x (SCM, SCM, SCM);
+  static SCM ly_stencil_combined_at_edge (SCM, SCM, SCM, SCM, SCM);
 };
 
 
-DECLARE_UNSMOB(Stencil,stencil);
+DECLARE_UNSMOB(Stencil, stencil);
 SCM fontify_atom (Font_metric const*, SCM atom);
 
 void interpret_stencil_expression (SCM expr,
index 3626ffff2cd992442675476770a2f2669635ead1..dfa2c60a57201d8f8e41eeaeb65d4a3e6b27d3ed 100644 (file)
@@ -25,9 +25,9 @@ public:
   static bool has_interface (Grob*);
   DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM ));
   static void try_collapse (Grob*);
-  static Stencil staff_bracket (Grob*,Real) ;
-  static Stencil staff_brace (Grob*,Real) ;
-  static Stencil simple_bar (Grob*,Real) ;
+  static Stencil staff_bracket (Grob*, Real) ;
+  static Stencil staff_brace (Grob*, Real) ;
+  static Stencil simple_bar (Grob*, Real) ;
 };
 
 #endif /* SYSTEM_START_DELIMITER_HH */
index bbc4ef6ebead06af1056bace26fbb515e06f90a7..530c845fb926675c99e7d207c6a0b7968dd260cc 100644 (file)
@@ -18,7 +18,7 @@ class Tie_column
 {
 public:
   static bool has_interface (Grob*);
-  static void add_tie (Grob*me,Grob*);
+  static void add_tie (Grob*me, Grob*);
   DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM));
   static void set_directions (Grob*me);
   static void old_directions (Grob*me);
index afebbc2285b4e5d9b0494c1f442513ffd863c186..21a8100703a4b7c94e4b6e9503c9c914713e4925 100644 (file)
 class Tie
 {
 public:
-  static void set_head (Grob*,Direction, Grob*head);
+  static void set_head (Grob*, Direction, Grob*head);
   static void set_interface (Grob*);
   static bool has_interface (Grob*);
   static void set_direction (Grob*);
-  static Grob * head (Grob*,Direction) ;
+  static Grob * head (Grob*, Direction) ;
   static Real get_position (Grob*) ;
   DECLARE_SCHEME_CALLBACK (print, (SCM ));
   static Direction get_default_dir (Grob*) ;
index 8780f6d932250add0184fa32cbd40758231c2389..449d1ece1ed84f6ee356f8b363f43f8dae5c72e8 100644 (file)
@@ -20,8 +20,8 @@
 struct Time_signature
 {
   static bool has_interface (Grob*);
-  static Stencil special_time_signature (Grob*,SCM,int,int) ;
-  static Stencil numbered_time_signature (Grob*,int, int);
+  static Stencil special_time_signature (Grob*, SCM, int, int) ;
+  static Stencil numbered_time_signature (Grob*, int, int);
   DECLARE_SCHEME_CALLBACK (print, (SCM ));
 };
 #endif // METER_HH
index ae3647d98d00ea5808d52ea13892460df2d75c02..f7dcdf8e7fe064362f14f001ef25eb1a2c4d2105 100644 (file)
@@ -94,30 +94,30 @@ ADD_GLOBAL_CTOR (_ ## T ## _adder);
 
 
 
-#define ADD_TRANSLATOR(classname,desc,grobs,accepted,acked,read,write)                                         \
+#define ADD_TRANSLATOR(classname, desc, grobs, accepted, acked, read, write)                                           \
 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 ())),           \
+  /*  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;                                                                    \
@@ -128,5 +128,5 @@ classname::static_translator_description () const \
 void add_translator (Translator*trans);
 
 Translator*get_translator (SCM s);
-DECLARE_UNSMOB(Translator,translator);
+DECLARE_UNSMOB(Translator, translator);
 #endif // TRANSLATOR_HH
index b0ae760f7cb0706fad5a815da2766d8933792d21..ebedc328e0646e5eda2c956a06b56dd3678acce6 100644 (file)
@@ -18,10 +18,10 @@ public:
   DECLARE_SCHEME_CALLBACK (print, (SCM ));
   
   static bool has_interface (Grob*);
-  static void add_column (Grob*me,Item*);
-  static void add_beam (Grob*me,Grob*);
+  static void add_column (Grob*me, Item*);
+  static void add_beam (Grob*me, Grob*);
   static Grob *parallel_beam (Grob *me, Link_array<Grob> const&cols, bool *equally_long);
-  static void calc_position_and_height (Grob*,Real*,Real *dy);
+  static void calc_position_and_height (Grob*, Real*, Real *dy);
   static Stencil make_bracket (Grob *me,  Axis protusion_axis,
                                Offset dz,  Drul_array<Real> height,
                                Interval gap, Drul_array<Real> widen,
index f0aa5f2c8c648242d0b16fdcdaa4ff9d3ba33024..540336f915a1ec8de044125127e2f71e1d920c59 100644 (file)
@@ -22,7 +22,7 @@ class Tweak_registry
   Tweak_map tweaks_;
   Object_key_undumper *undumper_;
 
-  DECLARE_SMOBS(Tweak_registry,);
+  DECLARE_SMOBS(Tweak_registry, );
   
 public:
   Object_key_undumper *undumper() const;
index 410169bff6a40db8408fbd7f18bc820aade17400..55a520d91af27107484a347ccc798ca2c7a64c99 100644 (file)
@@ -31,12 +31,12 @@ struct TYPE ## _swallow_translator : public Type_swallow_translator {       \
   TYPE ## _swallow_translator :: TYPE ## _swallow_translator() {\
       swallow_string_ =  #TYPE;                                                \
   }                                                                    \
-ADD_TRANSLATOR(TYPE ## _swallow_translator,                            \
-                 "Swallow events of " #TYPE " type.",          \
-                 "",                                                   \
-       "general-music",\
-                 "",                                                   \
-                 "",                                                   \
+ADD_TRANSLATOR(TYPE ## _swallow_translator,                            \
+                 "Swallow events of " #TYPE " type.",          \
+                 "",                                                   \
+       "general-music", \
+                 "",                                                   \
+                 "",                                                   \
                  "");
 
 #endif // TYPESWALLOW_GRAV_HH
index e9425c48dfec103b7cec3081ce5111ea950e8e3c..531eb9b346dd9fdf25f93f23d9bc535d9159008c 100644 (file)
@@ -73,7 +73,7 @@ Key_engraver::create_key (bool def)
          && !scm_is_eq (last, key))
        {
          cancellation_ = make_item ("KeyCancellation", key_ev_ ? key_ev_->self_scm () : SCM_EOL);
-         cancellation_->set_property ("old-accidentals",last);
+         cancellation_->set_property ("old-accidentals", last);
          cancellation_->set_property ("c0-position",
                           get_property ("middleCPosition"));
       
@@ -85,7 +85,7 @@ Key_engraver::create_key (bool def)
     {
       SCM vis = get_property ("explicitKeySignatureVisibility"); 
       if (ly_c_procedure_p (vis))
-       item_->set_property ("break-visibility",vis);
+       item_->set_property ("break-visibility", vis);
     }
 }      
 
@@ -186,7 +186,7 @@ Key_engraver::initialize ()
   context ()->set_property ("keySignature", SCM_EOL);
   context ()->set_property ("lastKeySignature", SCM_EOL);
 
-  Pitch p (0,0,0);
+  Pitch p (0, 0, 0);
   context ()->set_property ("tonic", p.smobbed_copy ());
 
 }
index 887c68488d3472d1455a7e057205caf97d8ac57f..e96c713ca2dc5cfc8a0f67972747f6a2bf8d108b 100644 (file)
@@ -95,6 +95,6 @@ Key_performer::try_music (Music* ev)
 }
 
 ADD_TRANSLATOR (Key_performer,
-                 "","",
+                 "", "",
                  "key-change-event",
-                 "","","");
+                 "", "", "");
index 4cf2fc6bb3d758abdb8dfe3cbd730f029fac185c..8c4ca9134a44dd2ac03aae4d1498f988360a52e0 100644 (file)
@@ -26,7 +26,7 @@ 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 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 */
 
 /*
@@ -88,7 +88,7 @@ alteration_pos  (SCM what, int alter, int c0p)
   TODO
   - space the `natural' signs wider
  */
-MAKE_SCHEME_CALLBACK (Key_signature_interface,print,1);
+MAKE_SCHEME_CALLBACK (Key_signature_interface, print, 1);
 SCM
 Key_signature_interface::print (SCM smob)
 {
index 8275c8b203dda53e1f0b66c7555d9f505a3b4ba7..8990660d020f0d80f54d87b22b6b58b2c9865cb0 100644 (file)
@@ -47,7 +47,7 @@ extern "C" {
 
 LY_DEFINE (ly_find_file, "ly:find-file",
           1, 0, 0, (SCM name),
-          "Return the absolute file name of @var{name},"
+          "Return the absolute file name of @var{name}, "
           "or @code{#f} if not found.")
 {
   SCM_ASSERT_TYPE (scm_is_string (name), name, SCM_ARG1, __FUNCTION__, "string");
@@ -62,7 +62,7 @@ LY_DEFINE (ly_find_file, "ly:find-file",
 
 LY_DEFINE (ly_kpathsea_find_file, "ly:kpathsea-find-file",
           1, 0, 0, (SCM name),
-          "Return the absolute file name of @var{name},"
+          "Return the absolute file name of @var{name}, "
           "or @code{#f} if not found.")
 {
   SCM_ASSERT_TYPE (scm_is_string (name), name, SCM_ARG1, __FUNCTION__, "string");
index 3cb3050d86a97ad7d395a2035445f8682be4f166..dec122307bc2b4a4d1a3dbba6e08d1c6e128fa0a 100644 (file)
@@ -44,7 +44,7 @@ void
 Ledger_line_engraver::finalize ()
 {
   if (span_)
-    span_->set_bound (RIGHT,unsmob_grob (get_property ("currentCommandColumn")));
+    span_->set_bound (RIGHT, unsmob_grob (get_property ("currentCommandColumn")));
 }
 
 
index 5fe66f6b150360ddefddaf2bc03891200bd278d6..07d42d90431a49639a5d2d3a62ddc79f07b1fd58 100644 (file)
@@ -99,7 +99,7 @@ typedef std::map<int, Drul_array<Ledger_request> > Ledger_requests;
   TODO: ledger share a lot of info. Lots of room to optimize away common
   use of objects/variables.
  */
-MAKE_SCHEME_CALLBACK (Ledger_line_spanner,print,1);
+MAKE_SCHEME_CALLBACK (Ledger_line_spanner, print, 1);
 SCM
 Ledger_line_spanner::print (SCM smob)
 {
@@ -219,7 +219,7 @@ Ledger_line_spanner::print (SCM smob)
              Interval accidental_size = g->extent (common[X_AXIS], X_AXIS);
              Real d =
                linear_combination (Drul_array<Real> (accidental_size[RIGHT],
-                                                     head_size[LEFT]),                         
+                                                     head_size[LEFT]),                                 
                                    0.0);
 
              left_shorten =  (-ledger_size[LEFT] + d) >?  0 ;
index bee0901b741982672c8442db7f8062df1a464850..bc748f1f2da39d7d710673eab5493bb1c2d45560 100644 (file)
@@ -39,8 +39,8 @@ static Keyword_ent the_key_tab[] = {
   {"drummode", DRUMMODE},
   {"drums", DRUMS},
   {"description", DESCRIPTION},
-  {"figures",FIGURES},
-  {"figuremode",FIGUREMODE},
+  {"figures", FIGURES},
+  {"figuremode", FIGUREMODE},
   {"grobdescriptions", GROBDESCRIPTIONS},
   {"header", HEADER},
   {"key", KEY},
index cc328a122562ebdb7038fa9c55975c9d7018c514..32f4405bebaf6fa5bd6836b7c0ce676a0f33e8d7 100644 (file)
@@ -30,7 +30,7 @@ bool store_locations_global;
 LY_DEFINE (ly_set_point_and_click, "ly:set-point-and-click",
           1, 0, 0, (SCM what),
          "Set the options for Point-and-click source specials output. The\n"
-"argument is a symbol.  Possible options are @code{none} (no source specials),\n"
+"argument is a symbol.  Possible options are @code{none} (no source specials), \n"
 "@code{line} and @code{line-column}")
 {
   /* UGH. */
index ab6f99dc24fc5acc8fe7be86e5bdc646d7c9955d..e641090375c2958c042d4314c7b73f83f2a8de6f 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  lilypond-key.cc --  implement Lilypond_{grob,context}_key
+  lilypond-key.cc --  implement Lilypond_{grob, context}_key
 
   source file of the GNU LilyPond music typesetter
 
index 58b8e378e3135f6e5135dae402d3a26b11bd08ca..ae458e4d36e2b1ae4fd55317af0273d804538707 100644 (file)
@@ -30,7 +30,7 @@ Line_interface::make_dashed_line (Real thick, Offset from, Offset to,
                        SCM_UNDEFINED);
   
   Box box;
-  box.add_point (Offset (0,0));
+  box.add_point (Offset (0, 0));
   box.add_point (to - from);
 
   box[X_AXIS].widen (thick/2);
@@ -66,7 +66,7 @@ Stencil
 Line_interface::line (Grob *me, Offset from, Offset to)
 {
   Real thick = Staff_symbol_referencer::line_thickness (me)
-    * robust_scm2double (me->get_property ("thickness"),1);
+    * robust_scm2double (me->get_property ("thickness"), 1);
   
   SCM type = me->get_property ("style");
 
@@ -95,7 +95,7 @@ Line_interface::line (Grob *me, Offset from, Offset to)
 }
 
 ADD_INTERFACE (Line_interface, "line-interface",
-             "Generic line objects. Any object using lines supports this.  Normally,"
+             "Generic line objects. Any object using lines supports this.  Normally, "
              "you get a straight line. If @code{dash-period} is defined, a dashed line is "
              "produced; the length of the dashes is tuned with " 
              "@code{dash-fraction}. If the latter is set to 0, a dotted line is "
index 1359f318104ff0036c779b870a31c458e5501d8d..fe5dd3e1278d21ef0f7f89b57c5ee03b619f20b0 100644 (file)
@@ -47,7 +47,7 @@ zigzag_stencil (Grob *me,
                      scm_make_real (dy),
                      SCM_UNDEFINED);
   Box b;
-  b.add_point (Offset (0,0));
+  b.add_point (Offset (0, 0));
   b.add_point (dz);
   b[X_AXIS].widen (thick/2);
   b[Y_AXIS].widen (thick/2);
@@ -123,7 +123,7 @@ Line_spanner::line_stencil (Grob *me,
       Stencil mol;
 
       do
-       mol.add_at_edge (X_AXIS, RIGHT, m, 0,0);
+       mol.add_at_edge (X_AXIS, RIGHT, m, 0, 0);
       while (m.extent (X_AXIS).length ()
             && mol.extent (X_AXIS).length ()
             + m.extent (X_AXIS).length () < dz[X_AXIS]);
@@ -282,7 +282,7 @@ Line_spanner::print (SCM smob)
       ofxy = dxy * (off/dxy.length ());
       dxy -= 2*ofxy;
   
-      Stencil line = line_stencil (me, Offset (0,0),dxy);
+      Stencil line = line_stencil (me, Offset (0, 0), dxy);
 
       line.translate_axis (bound[LEFT]->extent (bound[LEFT], X_AXIS).length ()/2, X_AXIS); 
       line.translate (ofxy - my_off + his_off);
index e7dd788ec8a1fce85544935bf0a8e24aa84a07e8..da0ccde18295092edeff952a421c665fb70d38fe 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
  *       | /
  *       |/
  *
@@ -91,7 +91,7 @@ Lookup::dashed_slur (Bezier b, Real thick, Real dash)
                               ly_quote_scm (l),
                               SCM_UNDEFINED));
 
-  Box box (Interval (0,0),Interval (0,0));
+  Box box (Interval (0, 0), Interval (0, 0));
   return   Stencil (box, at);
 }
 
@@ -109,7 +109,7 @@ Lookup::horizontal_line (Interval w, Real th)
 
   Box box ;
   box[X_AXIS] = w;
-  box[Y_AXIS] = Interval (-th/2,th/2);
+  box[Y_AXIS] = Interval (-th/2, th/2);
 
   return Stencil (box, at);
 }
@@ -126,12 +126,12 @@ Lookup::filled_box (Box b)
 {
   SCM  at  = (scm_list_n (ly_symbol2scm ("filledbox"),
                     scm_make_real (-b[X_AXIS][LEFT]),
-                    scm_make_real (b[X_AXIS][RIGHT]),                 
+                    scm_make_real (b[X_AXIS][RIGHT]),                 
                     scm_make_real (-b[Y_AXIS][DOWN]),
-                    scm_make_real (b[Y_AXIS][UP]),                    
+                    scm_make_real (b[Y_AXIS][UP]),                    
                     SCM_UNDEFINED));
 
-  return Stencil (b,at);
+  return Stencil (b, at);
 }
 
 /*
@@ -155,7 +155,7 @@ Lookup::filled_box (Box b)
  * |       |            |       |     |
  * |                            |     |
  * x\_____/______________\_____/|_____v
- * |(0,0)                       |
+ * |(0, 0)                       |
  * |                            |
  * |                            |
  * |<-------------------------->|
@@ -181,7 +181,7 @@ Lookup::round_filled_box (Box b, Real blotdiameter)
                        scm_make_real (blotdiameter),
                        SCM_UNDEFINED));
 
-  return Stencil (b,at);
+  return Stencil (b, at);
 }
 
          
@@ -678,7 +678,7 @@ Lookup::bracket (Axis a, Interval iv, Real thick, Real protude, Real blot)
   b[other] = oi;
   m.add_stencil (round_filled_box (b, blot));
   b[a] = Interval (iv[DOWN], iv[DOWN] + thick);
-  m.add_stencil (round_filled_box (b,blot));
+  m.add_stencil (round_filled_box (b, blot));
 
   return m;
 }
index 56f2b0c5793802c1846470dd13d9ca98b9b9f4ca..d053fa1859f50d706fa17dbf6f75d43e348bc9ba 100644 (file)
@@ -28,7 +28,7 @@ protected:
 
   virtual bool ok () const;
   virtual void derived_mark () const;
-  virtual void derived_substitute (Context *,Context *) ;
+  virtual void derived_substitute (Context *, Context *) ;
 private:
   bool get_busy_status ()const ;
   bool melisma_busy (); 
@@ -99,12 +99,12 @@ Lyric_combine_music_iterator::derived_mark ()const
 }
 
 void
-Lyric_combine_music_iterator::derived_substitute (Context *f,Context * t)
+Lyric_combine_music_iterator::derived_substitute (Context *f, Context * t)
 {
   if (music_iter_)
-    music_iter_->substitute_outlet (f,t);
+    music_iter_->substitute_outlet (f, t);
   if (lyric_iter_)
-    lyric_iter_->substitute_outlet (f,t);
+    lyric_iter_->substitute_outlet (f, t);
 }
 
 Music*
index 2775f7acab3367b99548ee1c05424a605826374e..a7766abbef024853e5fd2518ca54aea150bd0d2d 100644 (file)
 struct Lyric_combine_music
 {
 public:
-  DECLARE_SCHEME_CALLBACK(length_callback,(SCM));
+  DECLARE_SCHEME_CALLBACK(length_callback, (SCM));
 };
 
 
-MAKE_SCHEME_CALLBACK(Lyric_combine_music,length_callback,1);
+MAKE_SCHEME_CALLBACK(Lyric_combine_music, length_callback, 1);
 SCM
 Lyric_combine_music::length_callback (SCM m)
 {
index b7ef26d0e090c65096306b0cde63369e38ff8bed..700fbf40cdbab136708b6d34262f120358d4909e 100644 (file)
@@ -85,7 +85,7 @@ Lyric_extender::print (SCM smob)
 }
 
 
-ADD_INTERFACE (Lyric_extender,"lyric-extender-interface",
+ADD_INTERFACE (Lyric_extender, "lyric-extender-interface",
               "The extender is a simple line at the baseline of the lyric "
               "that helps show the length of a melissima (tied/slurred note).",
               "next thickness heads");
index 5cc8d26b0c8e8ded2b6cb06704d37b7034579b41..f98d5c446f84ead7e25d9ac8429a4bf7447f559c 100644 (file)
@@ -15,7 +15,7 @@
 #include "paper-column.hh"
 #include "moment.hh"
 
-MAKE_SCHEME_CALLBACK (Hyphen_spanner,print,1)
+MAKE_SCHEME_CALLBACK (Hyphen_spanner, print, 1)
 SCM 
 Hyphen_spanner::print (SCM smob)
 {
@@ -70,7 +70,7 @@ Hyphen_spanner::print (SCM smob)
 
   space_left = space_left >? 0.0;
   
-  Box b (Interval (0, dl), Interval (h,h+th));
+  Box b (Interval (0, dl), Interval (h, h+th));
   Stencil dash_mol (Lookup::round_filled_box (b, 0.8 * lt));
 
   Stencil total;
@@ -86,7 +86,7 @@ Hyphen_spanner::print (SCM smob)
 }
 
 
-MAKE_SCHEME_CALLBACK (Hyphen_spanner,set_spacing_rods,1);
+MAKE_SCHEME_CALLBACK (Hyphen_spanner, set_spacing_rods, 1);
 SCM
 Hyphen_spanner::set_spacing_rods (SCM smob)
 {
index 45aeb4237433b1074b0fc3b13f1e3f24c486539c..82e9ff6fddf585d44d51cada0e83889e708dd1af 100644 (file)
@@ -70,4 +70,4 @@ Lyric_performer::try_music (Music* req)
   return false;
 }
 
-ADD_TRANSLATOR (Lyric_performer,"","","lyric-event","","","");
+ADD_TRANSLATOR (Lyric_performer, "", "", "lyric-event", "", "", "");
index 514d266d07188a2c989660a418beb518c8546518..cbab023671bfb8ac7a1259c6905885684c9c80f0 100644 (file)
@@ -144,7 +144,7 @@ static Long_option_init options_static[] =
     {0, "version", 'v',  _i ("print version number")},
     {0, "verbose", 'V', _i ("be verbose")},
     {0, "warranty", 'w',  _i ("show warranty and copyright")},
-    {0,0,0,0}
+    {0, 0, 0, 0}
   };
 
 static void
@@ -337,7 +337,7 @@ static void
 add_output_format (String format)
 {
   if (output_format_global != "")
-    output_format_global += ",";
+    output_format_global += ", ";
   output_format_global += format;
 }
 
index 1c9e03fbdf42fff0abb18559d5f52c8eecf05484..bc420d22a1e1d45c21ae80c5edf2271b70f439d8 100644 (file)
@@ -54,7 +54,7 @@ Measure_grouping::print (SCM grob)
   return m.smobbed_copy ();
 }
 
-ADD_INTERFACE (Measure_grouping,"measure-grouping-interface",
+ADD_INTERFACE (Measure_grouping, "measure-grouping-interface",
               "This object indicates groups of beats. "
               "Valid choices for @code{style} are @code{bracket} and @code{triangle}.",
               "thickness style height");
index 918701ecc67126703f6cea708606536801d061e3..79ff5ea2f1c12cbe623276f10215daceded7719b 100644 (file)
@@ -207,7 +207,7 @@ Modified_font_metric::text_dimension (String text) const
   if (ydims.is_empty ())
     ydims = Interval (0, 0);
 
-  b = Box(Interval(0,w), ydims);
+  b = Box(Interval(0, w), ydims);
   return b;
 }
 
index 45754aba5434e8382c844e2cf3e085ef72446da0..454e60fa303dcc033e656284760c2f259fbf1c48 100644 (file)
@@ -17,7 +17,7 @@ LY_DEFINE (ly_make_moment, "ly:make-moment",
           "\n"
           "\n"
           "Moment is a point in musical time.  "
-          "It is consists of a pair of rationals (@var{m},@var{g}), "
+          "It is consists of a pair of rationals (@var{m}, @var{g}), "
           "where @var{m} is the timing for the main\n"
           "notes, and @var{g} the timing for grace notes.  "
           "In absence of grace notes, @var{g} is zero.\n")
@@ -54,7 +54,7 @@ LY_DEFINE (ly_add_moment, "ly:add-moment",
   return (*ma + *mb).smobbed_copy ();
 }
 
-LY_DEFINE (ly_mul_moment,"ly:mul-moment",
+LY_DEFINE (ly_mul_moment, "ly:mul-moment",
           2, 0, 0, (SCM a, SCM b),
           "Multiply two moments.")
 {
@@ -65,7 +65,7 @@ LY_DEFINE (ly_mul_moment,"ly:mul-moment",
   return (*ma * *mb).smobbed_copy ();
 }
 
-LY_DEFINE (ly_div_moment,"ly:div-moment",
+LY_DEFINE (ly_div_moment, "ly:div-moment",
           2, 0, 0, (SCM a, SCM b),
           "Divide two moments.")
 {
@@ -76,7 +76,7 @@ LY_DEFINE (ly_div_moment,"ly:div-moment",
   return (*ma / *mb).smobbed_copy ();
 }
 
-LY_DEFINE (ly_moment_main_numerator,"ly:moment-main-numerator",
+LY_DEFINE (ly_moment_main_numerator, "ly:moment-main-numerator",
           1, 0, 0, (SCM mom),
           "Extract numerator from main timing.")
 {
@@ -86,7 +86,7 @@ LY_DEFINE (ly_moment_main_numerator,"ly:moment-main-numerator",
   return scm_from_int (ma->main_part_.numerator ()); 
 }
 
-LY_DEFINE (ly_moment_main_denominator,"ly:moment-main-denominator",
+LY_DEFINE (ly_moment_main_denominator, "ly:moment-main-denominator",
           1, 0, 0, (SCM mom),
           "Extract denominator from main timing.")
 {
@@ -96,7 +96,7 @@ LY_DEFINE (ly_moment_main_denominator,"ly:moment-main-denominator",
   return scm_from_int (ma->main_part_.denominator ()); 
 }
 
-LY_DEFINE (ly_moment_less_p,"ly:moment<?",
+LY_DEFINE (ly_moment_less_p, "ly:moment<?",
           2, 0, 0, (SCM a, SCM b),
           "Compare two moments.")
 {
index 4d81493f0ce14b3d8090f559e4a78d90e82570f8..3a5aa6832366df8d94c80d71cd4cf3d5c69ed876 100644 (file)
@@ -78,13 +78,13 @@ Moment::equal_p (SCM a, SCM b)
 int
 compare (Moment const &a, Moment const &b)
 {
-  return Moment::compare (a,b);
+  return Moment::compare (a, b);
 }
 
 int
 Moment::compare (Moment const &a, Moment const &b)
 {
-  int c = Rational::compare (a.main_part_,b.main_part_);
+  int c = Rational::compare (a.main_part_, b.main_part_);
   if (c)
     return c;
 
index 72155066b30b3c9573be4b31d11b57fe24074599..ab27e6cd06b278a6da43dc7e9d07a8a63f0ff4b2 100644 (file)
@@ -93,9 +93,9 @@ Multi_measure_rest_engraver::process_music ()
                = make_spanner ("MultiMeasureRestText", e->self_scm () );
              SCM t = e->get_property ("text");
              SCM dir = e->get_property ("direction");
-             sp->set_property ("text",t);
+             sp->set_property ("text", t);
              if (is_direction (dir))
-               sp->set_property ("direction",dir);
+               sp->set_property ("direction", dir);
              
              numbers_.push (sp);
            }
index b8f7448e361c40c7684320bdc4044487b35a0082..0d95c82f8abec91b4ee09c5a2241e7a11df2f6af 100644 (file)
@@ -22,7 +22,7 @@
 #include "lookup.hh"
 #include "separation-item.hh"
 
-MAKE_SCHEME_CALLBACK (Multi_measure_rest,percent,1);
+MAKE_SCHEME_CALLBACK (Multi_measure_rest, percent, 1);
 SCM
 Multi_measure_rest::percent (SCM smob)
 {
@@ -58,13 +58,13 @@ Multi_measure_rest::percent (SCM smob)
    */
   x_off += sp_iv.length ()/ 2;
 
-  r.translate_axis (x_off,X_AXIS);
+  r.translate_axis (x_off, X_AXIS);
 
   
   return r.smobbed_copy ();
 }
 
-MAKE_SCHEME_CALLBACK (Multi_measure_rest,print,1);
+MAKE_SCHEME_CALLBACK (Multi_measure_rest, print, 1);
 SCM
 Multi_measure_rest::print (SCM smob) 
 {
@@ -312,10 +312,10 @@ Multi_measure_rest::set_spacing_rods (SCM smob)
   Item *lb = li->find_prebroken_piece (RIGHT);
   Item *rb = ri->find_prebroken_piece (LEFT);      
   
-  Item *combinations[4][2] = {{li,ri},
-                             {lb,ri},
-                             {li,rb},
-                             {lb,rb}};
+  Item *combinations[4][2] = {{li, ri},
+                             {lb, ri},
+                             {li, rb},
+                             {lb, rb}};
 
   Real sym_width = symbol_stencil (me, 0.0).extent (X_AXIS).length ();
   
@@ -343,7 +343,7 @@ Multi_measure_rest::set_spacing_rods (SCM smob)
   return SCM_UNSPECIFIED;
 }
 
-ADD_INTERFACE (Multi_measure_rest,"multi-measure-rest-interface",
+ADD_INTERFACE (Multi_measure_rest, "multi-measure-rest-interface",
               "A rest that spans a whole number of measures.",
               "expand-limit measure-count hair-thickness thick-thickness use-breve-rest minimum-length");
 
index 2f2f5bd01b906d69ca9c40e96c232e5e079669ca..587070354b2f1de8d468c69c7eaf3194655b5e33 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "warn.hh"
 
-static std::map<String,Music_ctor> *ctors_map_;
+static std::map<String, Music_ctor> *ctors_map_;
 
 void
 add_music_ctor (String s, Music_ctor c)
index 6e15c4b1671e5d92d6374db5627e1ecc7a7c8063..58e8597905d106f9fe6cff521e79585a6f0e81c4 100644 (file)
@@ -131,11 +131,11 @@ Music_iterator::substitute_outlet (Context *f, Context *t)
 {
   if (get_outlet () == f)
     set_context (t);
-  derived_substitute (f,t);
+  derived_substitute (f, t);
 }
 
 void
-Music_iterator::derived_substitute (Context *,Context *)
+Music_iterator::derived_substitute (Context *, Context *)
 {
 }
 
index 2d1b9353523527ca927fc2c9dcdcc1d2d7c79b68..dc01ff7e4c8260e8ba5268a0b3787c60ed6ca438 100644 (file)
@@ -55,7 +55,7 @@ LY_DEFINE (ly_music_name, "ly:music-name",
           "Return the name of @var{music}.")
 {
   Music *m = unsmob_music (mus);
-  SCM_ASSERT_TYPE (m, mus, SCM_ARG1, __FUNCTION__ ,"music");
+  SCM_ASSERT_TYPE (m, mus, SCM_ARG1, __FUNCTION__ , "music");
 
   char const *nm = classname (m);
   return scm_makfrom0str (nm);
@@ -91,7 +91,7 @@ LY_DEFINE (ly_music_mutable_properties, "ly:music-mutable-properties",
   return m->get_property_alist (true);
 }
 
-LY_DEFINE (ly_music_list_p,"ly:music-list?",
+LY_DEFINE (ly_music_list_p, "ly:music-list?",
           1, 0, 0, (SCM lst),
           "Type predicate: return true if @var{lst} is a list "
           "of music objects.")
@@ -155,7 +155,7 @@ LY_DEFINE (ly_music_compress, "ly:music-compress",
   return sc->self_scm ();
 }
 
-LY_DEFINE (ly_music_duration_length, "ly:music-duration-length", 1, 0,0,
+LY_DEFINE (ly_music_duration_length, "ly:music-duration-length", 1, 0, 0,
          (SCM mus),
          "Extract the duration field from @var{mus}, and return the length.")
 {
@@ -177,7 +177,7 @@ LY_DEFINE (ly_music_duration_length, "ly:music-duration-length", 1, 0,0,
 }
 
 
-LY_DEFINE (ly_music_duration_compress, "ly:music-duration-compress", 2, 0,0,
+LY_DEFINE (ly_music_duration_compress, "ly:music-duration-compress", 2, 0, 0,
          (SCM mus, SCM fact),
          "Compress @var{mus} by factor @var{fact}, which is a @code{Moment}.")
 {
index 3c28145c2153c4cf95183a4d0fd0cbed077f6d7b..f81a2069ad7e220a9a3a39ba8922f505f309f6eb 100644 (file)
@@ -56,7 +56,7 @@ Music_sequence::maximum_length (SCM l)
   return dur;
 }
 
-MAKE_SCHEME_CALLBACK(Music_sequence,maximum_length_callback,1);
+MAKE_SCHEME_CALLBACK(Music_sequence, maximum_length_callback, 1);
 SCM
 Music_sequence::maximum_length_callback (SCM m)
 {
@@ -64,7 +64,7 @@ Music_sequence::maximum_length_callback (SCM m)
   return maximum_length (me->get_property ("elements")).smobbed_copy();
 }
 
-MAKE_SCHEME_CALLBACK(Music_sequence,cumulative_length_callback,1);
+MAKE_SCHEME_CALLBACK(Music_sequence, cumulative_length_callback, 1);
 SCM
 Music_sequence::cumulative_length_callback (SCM m)
 {
@@ -73,7 +73,7 @@ Music_sequence::cumulative_length_callback (SCM m)
 }
 
 
-MAKE_SCHEME_CALLBACK(Music_sequence,minimum_start_callback,1);
+MAKE_SCHEME_CALLBACK(Music_sequence, minimum_start_callback, 1);
 SCM
 Music_sequence::minimum_start_callback (SCM m)
 {
@@ -81,7 +81,7 @@ Music_sequence::minimum_start_callback (SCM m)
   return minimum_start (me->get_property ("elements")).smobbed_copy();
 }
 
-MAKE_SCHEME_CALLBACK(Music_sequence,first_start_callback,1);
+MAKE_SCHEME_CALLBACK(Music_sequence, first_start_callback, 1);
 SCM
 Music_sequence::first_start_callback (SCM m)
 {
@@ -90,7 +90,7 @@ Music_sequence::first_start_callback (SCM m)
 }
 
 Pitch
-music_list_to_relative (SCM l,Pitch p, bool ret_first)
+music_list_to_relative (SCM l, Pitch p, bool ret_first)
 {
   Pitch first = p;
   int count = 0;
@@ -168,7 +168,7 @@ Music_sequence::simultaneous_relative_callback (SCM music, SCM pitch)
 }
 
 
-MAKE_SCHEME_CALLBACK(Music_sequence,event_chord_relative_callback,2);
+MAKE_SCHEME_CALLBACK(Music_sequence, event_chord_relative_callback, 2);
 SCM
 Music_sequence::event_chord_relative_callback (SCM music, SCM pitch)
 {
index ce0a6a312633e07aa922f100abdbae8c3eca1739..1db36ee580657253103f3cccc1f5e06698224ac0 100644 (file)
@@ -30,10 +30,10 @@ Music_wrapper_iterator::derived_mark () const
 }
 
 void
-Music_wrapper_iterator::derived_substitute (Context *f,Context *t) 
+Music_wrapper_iterator::derived_substitute (Context *f, Context *t) 
 {
   if (child_iter_)
-    child_iter_->substitute_outlet (f,t);
+    child_iter_->substitute_outlet (f, t);
 }
 
 void
index 55296be9076c4b7916083dc5fb6568ebfb5e1365..65c42eac6eccbfa46852fd2f4d19b2cf7a1e420d 100644 (file)
@@ -18,7 +18,7 @@ Music_wrapper::Music_wrapper (SCM x)
     start_callback_ = length_callback_proc; 
 }
 
-MAKE_SCHEME_CALLBACK(Music_wrapper,start_callback,1);
+MAKE_SCHEME_CALLBACK(Music_wrapper, start_callback, 1);
 SCM
 Music_wrapper::start_callback (SCM m)
 {
@@ -27,7 +27,7 @@ Music_wrapper::start_callback (SCM m)
   return elt->start_mom ().smobbed_copy ();
 }
 
-MAKE_SCHEME_CALLBACK(Music_wrapper,length_callback,1);
+MAKE_SCHEME_CALLBACK(Music_wrapper, length_callback, 1);
 SCM
 Music_wrapper::length_callback (SCM m)
 {
index fb1982b7a0b54430715e9f08d774dcc2aab95580..d57a36bb1d679bc3edc7f6fa2d51bb2df4249503 100644 (file)
@@ -146,13 +146,13 @@ Music::print_smob (SCM s, SCM p, scm_print_state*)
   if (scm_is_symbol (nm) || scm_is_string (nm))
     scm_display (nm, p);
   else
-    scm_puts (classname (m),p);
+    scm_puts (classname (m), p);
 
   /* Printing properties takes a lot of time, especially during backtraces.
      For inspecting, it is better to explicitly use an inspection
      function.  */
 
-  scm_puts (">",p);
+  scm_puts (">", p);
   return 1;
 }
 
index dd2e724d856733216025ec302163e9235eb0ede9..1988cb4e2f8cf4f5256ec96c9dd3ca70e6e5f5a2 100644 (file)
@@ -51,8 +51,8 @@ public:
 protected:
   virtual void stop_translation_timestep ();
   virtual void acknowledge_grob (Grob_info);
-  void add_fingering (Grob*, Music*,Music*);
-  void add_script  (Grob*, Music*,Music*);
+  void add_fingering (Grob*, Music*, Music*);
+  void add_script  (Grob*, Music*, Music*);
   void position_scripts ();
 };
 
@@ -219,7 +219,7 @@ New_fingering_engraver::position_scripts ()
   else if (up_p && down_p)
     {
       int center = fingerings_.size () / 2;
-      down.concat (fingerings_.slice (0,center));
+      down.concat (fingerings_.slice (0, center));
       up.concat (fingerings_.slice (center, fingerings_.size ()));
     }
   else if (up_p)
index 0ee78d3be85ccc34b92adf1c4a6e31b4500d4f54..105d78ef75e5ca69fbaaa83ec7444e89219afde1 100644 (file)
@@ -26,7 +26,7 @@ protected:
   virtual bool run_always ()const;
   virtual bool ok () const;
   virtual void derived_mark () const;
-  virtual void derived_substitute (Context *,Context *);
+  virtual void derived_substitute (Context *, Context *);
 private:
   bool start_new_syllable () ;
   void find_voice ();
@@ -127,7 +127,7 @@ void
 New_lyric_combine_music_iterator::derived_substitute (Context *f, Context *t)
 {
   if (lyric_iter_)
-    lyric_iter_->substitute_outlet (f,t);
+    lyric_iter_->substitute_outlet (f, t);
   if (lyrics_context_ && lyrics_context_ == f)
     lyrics_context_ = t;
   if (music_context_ && music_context_ == f)
index f70f2c1f2b3c2eec0f09368191633d9ca5897610..d2d806eca1ececfbab940337487b24d47e81d193 100644 (file)
@@ -20,7 +20,7 @@
 #include "side-position-interface.hh"
 #include "dot-column.hh"
 
-MAKE_SCHEME_CALLBACK (Note_collision_interface,force_shift_callback,2);
+MAKE_SCHEME_CALLBACK (Note_collision_interface, force_shift_callback, 2);
 
 SCM
 Note_collision_interface::force_shift_callback (SCM element_smob, SCM axis)
@@ -309,7 +309,7 @@ Note_collision_interface::do_shifts (Grob* me)
       if (cg[d].size ())
        {
          Grob  *h = cg[d][0];
-         wid = Note_column::first_head (h)->extent (h,X_AXIS).length () ;
+         wid = Note_column::first_head (h)->extent (h, X_AXIS).length () ;
        }
     }
   while (flip (&d) != UP);
@@ -496,7 +496,7 @@ Note_collision_interface::forced_shift (Grob *me)
 }
 
 void
-Note_collision_interface::add_column (Grob*me,Grob* ncol)
+Note_collision_interface::add_column (Grob*me, Grob* ncol)
 {
   ncol->add_offset_callback (Note_collision_interface::force_shift_callback_proc, X_AXIS);
   Axis_group_interface::add_element (me, ncol);
index 1f448db2e521ab2e31628d579c3a3175f97f754e..160c996d90682d79d3df607aa9937de7632d5808 100644 (file)
@@ -61,7 +61,7 @@ Note_column::head_positions_interval (Grob *me)
       Grob *se = unsmob_grob (scm_car (h));
       
       int j = Staff_symbol_referencer::get_rounded_position (se);
-      iv.unite (Slice (j,j));
+      iv.unite (Slice (j, j));
     }
   return iv;
 }
@@ -81,7 +81,7 @@ Note_column::dir (Grob*  me)
 
 
 void
-Note_column::set_stem (Grob*me,Grob * stem)
+Note_column::set_stem (Grob*me, Grob * stem)
 {
   me->set_property ("stem", stem->self_scm ());
   me->add_dependency (stem);
@@ -96,7 +96,7 @@ Note_column::get_rest (Grob*me)
 }
   
 void
-Note_column::add_head (Grob*me,Grob *h)
+Note_column::add_head (Grob*me, Grob *h)
 {
   bool both = false;
   if (Rest::has_interface (h))
@@ -110,7 +110,7 @@ Note_column::add_head (Grob*me,Grob *h)
     {
       if (unsmob_grob (me->get_property ("rest")))
        both = true;
-      Pointer_group_interface::add_grob (me, ly_symbol2scm ("note-heads"),h);
+      Pointer_group_interface::add_grob (me, ly_symbol2scm ("note-heads"), h);
     }
 
   if (both)
@@ -135,7 +135,7 @@ Note_column::translate_rests (Grob*me, int dy)
 
 
 void
-Note_column::set_dotcol (Grob*me,Grob *d)
+Note_column::set_dotcol (Grob*me, Grob *d)
 {
   Axis_group_interface::add_element (me, d);
 }
@@ -179,7 +179,7 @@ Note_column::accidentals (Grob *me)
 
 
 
-ADD_INTERFACE (Note_column,"note-column-interface",
+ADD_INTERFACE (Note_column, "note-column-interface",
   "Stem and noteheads combined",
   "arpeggio note-heads rest-collision rest horizontal-shift stem accidentals force-hshift");
 
index 09dda23c521d2daec8b0cd95eed555895a103982..a2521a75ff6f6f7a42d187ee7f8544c62e487e07 100644 (file)
@@ -76,7 +76,7 @@ internal_print (Grob *me, String * font_char)
 }
 
 
-MAKE_SCHEME_CALLBACK (Note_head,print,1);
+MAKE_SCHEME_CALLBACK (Note_head, print, 1);
 SCM
 Note_head::print (SCM smob)  
 {
@@ -87,7 +87,7 @@ Note_head::print (SCM smob)
 }
 
 
-MAKE_SCHEME_CALLBACK (Note_head,brew_ez_stencil,1);
+MAKE_SCHEME_CALLBACK (Note_head, brew_ez_stencil, 1);
 SCM
 Note_head::brew_ez_stencil (SCM smob)
 {
@@ -160,7 +160,7 @@ Note_head::stem_attachment_coordinate (Grob *me, Axis a)
 
   result = (a == X_AXIS) ? scm_car (result) : scm_cdr (result);
   
-  return robust_scm2double (result,0);
+  return robust_scm2double (result, 0);
 }
 
 int
@@ -170,7 +170,7 @@ Note_head::get_balltype (Grob*me)
   return scm_is_number (s) ? scm_to_int (s) <? 2 : 0;
 }
 
-ADD_INTERFACE (Note_head,"note-head-interface",
+ADD_INTERFACE (Note_head, "note-head-interface",
   "Note head",
   "note-names glyph-name-procedure accidental-grob style stem-attachment-function");
 
index 2fbae4ee13d6b2d7b791bdbeb06358d3165517d2..c0b4d75ead629adac449410110ff4f1e5c74c815 100644 (file)
@@ -92,7 +92,7 @@ Note_heads_engraver::process_music ()
       if (scm_is_vector (shape_vector))
        {
          SCM scm_tonic = get_property ("tonic");
-         Pitch tonic (0,0,0); 
+         Pitch tonic (0, 0, 0); 
          if (unsmob_pitch (scm_tonic))
            tonic = *unsmob_pitch (scm_tonic);
       
index f727b6f2f854f8c59411841e70e753dbd1a661a9..98cdbff87402b5bf3c2aaf0aaf997e7c7c4cea36 100644 (file)
@@ -114,8 +114,8 @@ Note_performer::try_music (Music* ev)
   return false;
 }
 
-ADD_TRANSLATOR (Note_performer,"","",
-                 "note-event busy-playing-event","","","");
+ADD_TRANSLATOR (Note_performer, "", "",
+                 "note-event busy-playing-event", "", "", "");
 
 Note_performer::Note_performer ()
 {
index edc48b2d555ebd3608dab9b347fe2a796c8254d2..9f698361ab3ec9e3df26e4d08b1b66e72adcfb4b 100644 (file)
@@ -98,7 +98,7 @@ Note_spacing::get_spacing (Grob *me, Item* right_col,
        }
 
       if (extents[d].is_empty ())
-       extents[d] = Interval (0,0);
+       extents[d] = Interval (0, 0);
     }
   while (flip (&d) != LEFT);
 
@@ -241,14 +241,14 @@ Note_spacing::stem_dir_correction (Grob*me, Item * rcolumn,
                                   Real increment,
                                   Real * space, Real *fixed)  
 {
-  Drul_array<Direction> stem_dirs (CENTER,CENTER);
+  Drul_array<Direction> stem_dirs (CENTER, CENTER);
   Drul_array<Interval> stem_posns;
   Drul_array<Interval> head_posns;  
   Drul_array<SCM> props (me->get_property ("left-items"),
                        me->get_property ("right-items"));
 
-  Drul_array<Spanner*> beams_drul (0,0);
-  Drul_array<Grob*> stems_drul (0,0);
+  Drul_array<Spanner*> beams_drul (0, 0);
+  Drul_array<Grob*> stems_drul (0, 0);
   
   stem_dirs[LEFT] = stem_dirs[RIGHT] = CENTER;
   Interval intersect;
@@ -448,7 +448,7 @@ Note_spacing::stem_dir_correction (Grob*me, Item * rcolumn,
 
 
 
-ADD_INTERFACE (Note_spacing,"note-spacing-interface",
+ADD_INTERFACE (Note_spacing, "note-spacing-interface",
   "This object calculates spacing wishes for individual voices.",
   "left-items right-items stem-spacing-correction knee-spacing-correction");
 
index 2e1a9a93f09c501115c1652b35fe26c98729cd20..082c213418ffc4bbc584a8c5417d1a6ec0365d78 100644 (file)
@@ -12,7 +12,7 @@
 #include "moment.hh"
 
 LY_DEFINE(ly_make_dumper, "ly:make-dumper",
-         0,0,0,
+         0, 0, 0,
          (),
          "Create a key dumper. "
          )
@@ -24,7 +24,7 @@ LY_DEFINE(ly_make_dumper, "ly:make-dumper",
 }
 
 LY_DEFINE(ly_dumper_definitions, "ly:dumper-definitions",
-         1,0,0,
+         1, 0, 0,
          (SCM dumper),
          "Return list of key definitions. "
          )
@@ -35,7 +35,7 @@ LY_DEFINE(ly_dumper_definitions, "ly:dumper-definitions",
 }
 
 LY_DEFINE(ly_dumper_key_serial, "ly:dumper-key-serial",
-         2,0,0,
+         2, 0, 0,
          (SCM dumper, SCM key),
          "Return the  key serial number @var{key}. "
          )
index b20f94c0ef72d21212f2f269110f2212630ffce4..da75e151ca870cd94565187bafdf75ddc6fe040e 100644 (file)
@@ -10,7 +10,7 @@
 #include "object-key-undumper.hh"
 
 LY_DEFINE(ly_undumper_read_keys, "ly:undumper-read-keys",
-         2,0,0,
+         2, 0, 0,
          (SCM undumper, SCM keys),
          "Read serialized @var{keys} into @var{undumper}."
          )
@@ -23,7 +23,7 @@ LY_DEFINE(ly_undumper_read_keys, "ly:undumper-read-keys",
 }
 
 LY_DEFINE(ly_make_undumper, "ly:make-undumper",
-         0, 0,0,
+         0, 0, 0,
          (),
          "Create a key undumper. "
          )
@@ -36,7 +36,7 @@ LY_DEFINE(ly_make_undumper, "ly:make-undumper",
 
 
 LY_DEFINE(ly_undumper_lookup, "ly:undumper-lookup",
-         2,0,0,
+         2, 0, 0,
          (SCM undumper, SCM serial),
          "Return the object key for number @var{serial}. "
          )
index cec33785df99b3f6a267d37064098fdf6360c714..d9da3624ac8da1e5697ec9a0857fcc34d96091ca 100644 (file)
@@ -112,7 +112,7 @@ static Object_dumper_table_entry undumpers[] = {
   {GENERAL_KEY, Lilypond_general_key::from_scheme},
   {GROB_KEY, Lilypond_grob_key::from_scheme},
   {CONTEXT_KEY, Lilypond_context_key::from_scheme},
-  {KEY_COUNT,0},
+  {KEY_COUNT, 0},
 };
 
 Object_key *
index 4f8ec8679050e58893b1cca1453a22395c2c64eb..25de958243775ffacffb8bb1aa37597c0e9a2e29 100644 (file)
@@ -76,7 +76,7 @@ Ottava_bracket::print (SCM smob)
 
 
   Drul_array<Real> shorten = robust_scm2interval (me->get_property ("shorten-pair"),
-                                                 Interval (0,0));
+                                                 Interval (0, 0));
 
 
   /*
@@ -138,7 +138,7 @@ Ottava_bracket::print (SCM smob)
 
   
   Drul_array<Real> flare = robust_scm2interval (me->get_property ("bracket-flare"),
-                                               Interval (0,0));
+                                               Interval (0, 0));
 
 
 
@@ -172,7 +172,7 @@ Ottava_bracket::print (SCM smob)
   */
   
   b = Stencil (Box (b.extent (X_AXIS),
-                    Interval (0.1,0.1)),
+                    Interval (0.1, 0.1)),
                b.expr ());
   
   b.translate_axis (bracket_span_points[LEFT], X_AXIS);
index 7c755e05f00a30af5fad3cc789f0009abff22fb5..52ead4644fb38b5e2a8c7c1c7e5c60c3a95a5c51 100644 (file)
@@ -4,7 +4,7 @@
 #include "pango-font.hh"
 
 LY_DEFINE(ly_make_pango_description_string, "ly:make-pango-description-string",
-         2,0,0, (SCM chain, SCM size),
+         2, 0, 0, (SCM chain, SCM size),
          "Make a PangoFontDescription string for the property alist @var{chain} at size @var{size}.")
 {
   SCM_ASSERT_TYPE(scm_is_number (size), size, SCM_ARG1, __FUNCTION__, "number");
index 2397da3799be220bcb531eec6e185804e3e6ea16..8cf2a108f2880f5a4d268fb324d882f49cd38ec5 100644 (file)
@@ -118,7 +118,7 @@ Paper_column::is_used (Grob*me)
   Print a vertical line and  the rank number, to aid debugging.  
  */
 
-MAKE_SCHEME_CALLBACK (Paper_column,print,1);
+MAKE_SCHEME_CALLBACK (Paper_column, print, 1);
 SCM
 Paper_column::print (SCM p)
 {
@@ -148,7 +148,7 @@ Paper_column::print (SCM p)
 
   THIS IS BROKEN KLUDGE. WE SHOULD INVENT SOMETHING BETTER. 
  */
-MAKE_SCHEME_CALLBACK (Paper_column,before_line_breaking,1);
+MAKE_SCHEME_CALLBACK (Paper_column, before_line_breaking, 1);
 SCM
 Paper_column::before_line_breaking (SCM grob)
 {
index 252f98cc5642ba70fef9d29fbda437c746ed45f0..d74b0606b75abaf219d769e1ab481780c7fd716d 100644 (file)
@@ -103,7 +103,7 @@ void
 Paper_outputter::output_stencil (Stencil stil)
 {
   interpret_stencil_expression (stil.expr (), paper_outputter_dump,
-                                (void*) this, Offset (0,0));
+                                (void*) this, Offset (0, 0));
 }
 
 void
index 7b0226d2bea382838468cd87f6f8ca2d94efa786..9c70473c405ccf75e0aad4f020b5ec247ca87bdb 100644 (file)
@@ -25,7 +25,7 @@ Paper_system::Paper_system (Stencil s, bool is_title)
   break_before_penalty_ = 0;
   smobify_self ();
   stencil_ = s;
-  staff_refpoints_ = Interval(0,0);
+  staff_refpoints_ = Interval(0, 0);
 }
 
 Paper_system::~Paper_system ()
index 2cce5f2c77f107795a9ab13fcf02cc06c8ef7cf8..2712a2a150976517628d675afe3a91eb2842abb9 100644 (file)
@@ -99,6 +99,6 @@ ADD_TRANSLATOR (Part_combine_engraver,
 /* creats*/       "CombineTextScript",
 /* accepts */     "part-combine-event",
 /* acks  */       "multi-measure-rest-interface "
-"slur-interface stem-interface note-head-interface"
-,/* reads */       "printPartCombineTexts",
+"slur-interface stem-interface note-head-interface",
+/* reads */       "printPartCombineTexts",
 /* write */       "");
index 4886c91fc46fa72b8f04a3d13426af3176f5f07c..5555d17e496270a840b497c72259c7335eb273ff 100644 (file)
@@ -124,7 +124,7 @@ Part_combine_iterator::derived_substitute (Context *f,
                                     Context *t)
 {
   if (first_iter_)
-    first_iter_->substitute_outlet (f,t);
+    first_iter_->substitute_outlet (f, t);
 
 }
 
@@ -205,7 +205,7 @@ void
 Part_combine_iterator::substitute_both (Context * to1,
                                        Context * to2)
 {
-  Context *tos[]  = {to1,to2};
+  Context *tos[]  = {to1, to2};
   Music_iterator *mis[] = {first_iter_, second_iter_}; 
   Interpretation_context_handle *hs[] = {
     &null_,
@@ -320,7 +320,7 @@ Part_combine_iterator::construct_children ()
 
   Context *tr
     =  get_outlet ()->find_create_context (ly_symbol2scm ("Voice"),
-                                            "shared",props);
+                                            "shared", props);
 
   shared_.set_context (tr);
 
@@ -331,7 +331,7 @@ Part_combine_iterator::construct_children ()
 
   Context *solo_tr
     =  get_outlet ()->find_create_context (ly_symbol2scm ("Voice"),
-                                             "solo",props);
+                                             "solo", props);
 
   solo_ .set_context (solo_tr);
 
index a04765fd3d3100a4f683362d9346e75528778280..79eca6117a2bb2e6bb289ba3642b6e84735a6797 100644 (file)
@@ -42,20 +42,20 @@ Percent_repeat_item_interface::x_percent (Grob *me, int count,
 
   for (int i  = count; i--;)
     {
-      m.add_at_edge (X_AXIS, RIGHT, s, -slash_neg_kern,0);
+      m.add_at_edge (X_AXIS, RIGHT, s, -slash_neg_kern, 0);
     }
   Stencil d1 = Font_interface::get_default_font (me)->find_by_name ("dots.dot");
   Stencil d2  =  d1;
   d1.translate_axis (0.5, Y_AXIS );
   d2.translate_axis (-0.5, Y_AXIS);
   
-  m.add_at_edge (X_AXIS, LEFT, d1, -dot_neg_kern,0);
-  m.add_at_edge (X_AXIS, RIGHT, d2, -dot_neg_kern,0);
+  m.add_at_edge (X_AXIS, LEFT, d1, -dot_neg_kern, 0);
+  m.add_at_edge (X_AXIS, RIGHT, d2, -dot_neg_kern, 0);
 
   return m;
 }
 
-MAKE_SCHEME_CALLBACK (Percent_repeat_item_interface,double_percent,1);
+MAKE_SCHEME_CALLBACK (Percent_repeat_item_interface, double_percent, 1);
 SCM
 Percent_repeat_item_interface::double_percent (SCM grob)
 {
@@ -65,7 +65,7 @@ Percent_repeat_item_interface::double_percent (SCM grob)
   return m.smobbed_copy ();
 }
 
-MAKE_SCHEME_CALLBACK (Percent_repeat_item_interface,beat_slash,1);
+MAKE_SCHEME_CALLBACK (Percent_repeat_item_interface, beat_slash, 1);
 SCM
 Percent_repeat_item_interface::beat_slash (SCM grob)
 {
@@ -75,7 +75,7 @@ Percent_repeat_item_interface::beat_slash (SCM grob)
   return m.smobbed_copy ();
 }
 
-ADD_INTERFACE (Percent_repeat_item_interface,"percent-repeat-interface",
+ADD_INTERFACE (Percent_repeat_item_interface, "percent-repeat-interface",
   "Repeats that look like percent signs",
   "slope thickness");
 
index e07d7176f7c1afd3ab8f14e996a46765a71bbc31..25e1b0fbb37ecc2af28044136e643186e6a6a378 100644 (file)
@@ -87,8 +87,8 @@ Percent_repeat_iterator::derived_mark ()const
 }
 
 void
-Percent_repeat_iterator::derived_substitute (Context *f,Context *t )
+Percent_repeat_iterator::derived_substitute (Context *f, Context *t )
 {
   if (child_iter_)
-    child_iter_->substitute_outlet (f,t);
+    child_iter_->substitute_outlet (f, t);
 }
index 9406f53c93e177c1a543baa4fab63308e7722db4..e35bc01b2fd3c65e199d169f50f36d6609788fa1 100644 (file)
@@ -69,7 +69,7 @@ pfb2pfa (Byte const * pfb, int length)
 }
 
 LY_DEFINE(ly_pfb_to_pfa, "ly:pfb->pfa",
-         1,0,0, (SCM pfb_path),
+         1, 0, 0, (SCM pfb_path),
          "Convert the contents of a PFB file to PFA."
          )
 {
index 8e617fb6b52bdce6d5779d77691a2f0bb9c02419..d7ce3da803fc22bc8186a01b531d975c2352fe2c 100644 (file)
@@ -14,25 +14,25 @@ source file of the GNU LilyPond music typesetter
 
 struct Piano_pedal_bracket
 {
-  DECLARE_SCHEME_CALLBACK (print,(SCM));
+  DECLARE_SCHEME_CALLBACK (print, (SCM));
   static bool has_interface (Grob*);
 };
 
 
-MAKE_SCHEME_CALLBACK (Piano_pedal_bracket,print,1);
+MAKE_SCHEME_CALLBACK (Piano_pedal_bracket, print, 1);
 SCM
 Piano_pedal_bracket::print (SCM smob)
 {
   Spanner *me = dynamic_cast<Spanner*> (unsmob_grob (smob));
   Spanner *orig = dynamic_cast<Spanner*> (me->original_); 
   
-  Drul_array<bool> broken (false,false);
+  Drul_array<bool> broken (false, false);
   Drul_array<Real> height = robust_scm2drul
-    (me->get_property ("edge-height"), Interval (0,0));
+    (me->get_property ("edge-height"), Interval (0, 0));
   Drul_array<Real> shorten = robust_scm2drul
-    (me->get_property ("shorten-pair"), Interval (0,0));
+    (me->get_property ("shorten-pair"), Interval (0, 0));
   Drul_array<Real> flare = robust_scm2drul
-    (me->get_property ("bracket-flare"), Interval (0,0));
+    (me->get_property ("bracket-flare"), Interval (0, 0));
 
   Grob *common = me->get_bound (LEFT)
     ->common_refpoint (me->get_bound (RIGHT), X_AXIS);
@@ -41,7 +41,7 @@ Piano_pedal_bracket::print (SCM smob)
   if (textbit)
     common = common->common_refpoint (textbit, X_AXIS);
 
-  Interval span_points (0,0);
+  Interval span_points (0, 0);
   Direction d = LEFT;
   do
     {
@@ -93,7 +93,7 @@ Piano_pedal_bracket::print (SCM smob)
 
 
 
-ADD_INTERFACE (Piano_pedal_bracket,"piano-pedal-bracket-interface",
+ADD_INTERFACE (Piano_pedal_bracket, "piano-pedal-bracket-interface",
               "The bracket of the piano pedal.  It can be tuned through the regular "
               "bracket properties.",
               "bound-padding edge-height shorten-pair bracket-flare pedal-text");
index 9adee1134d121224acc8f88b203be2da702b212c..fa8e6d160f06b231dde0e5534d7d085ca6c6b406 100644 (file)
@@ -140,12 +140,12 @@ Piano_pedal_engraver::acknowledge_grob (Grob_info info)
          if (p->line_spanner_)
            {
              Side_position_interface::add_support (p->line_spanner_, info.grob_);
-             add_bound_item (p->line_spanner_,info.grob_);
+             add_bound_item (p->line_spanner_, info.grob_);
            }     
          if (p->bracket_)
-           add_bound_item (p->bracket_,info.grob_);
+           add_bound_item (p->bracket_, info.grob_);
          if (p->finished_bracket_)
-           add_bound_item (p->finished_bracket_,info.grob_);             
+           add_bound_item (p->finished_bracket_, info.grob_);            
        }
     }
 }
@@ -356,7 +356,7 @@ Piano_pedal_engraver::create_bracket_grobs (Pedal_info *p, bool mixed)
       if (!p->finished_bracket_)
        {
          SCM flare = p->bracket_->get_property ("bracket-flare");
-         p->bracket_->set_property ("bracket-flare", scm_cons (scm_make_real (0),scm_cdr (flare)));
+         p->bracket_->set_property ("bracket-flare", scm_cons (scm_make_real (0), scm_cdr (flare)));
        }
 
 
index 294e5df1ce9ceabb382df96120b96e91b57fea98..e5c8a70129d8d956928267f33c1e97f476482d0e 100644 (file)
@@ -140,6 +140,6 @@ Piano_pedal_performer::try_music (Music* r)
   return false;
 }
 
-ADD_TRANSLATOR (Piano_pedal_performer, "","",
+ADD_TRANSLATOR (Piano_pedal_performer, "", "",
                   "pedal-event",
-                  "","","" );
+                  "", "", "" );
index 069c86b7848871d2da25546d95706c013540dff1..ed8e0530de70c6bc1b8797bed62d393e4321ca21 100644 (file)
@@ -20,8 +20,8 @@ Pitch_interval::Pitch_interval (Pitch p1, Pitch p2)
 
 Pitch_interval::Pitch_interval ()
 {
-  elem_ref(LEFT) =  Pitch (100,0,0);
-  elem_ref(RIGHT) =  Pitch (-100,0,0);
+  elem_ref(LEFT) =  Pitch (100, 0, 0);
+  elem_ref(RIGHT) =  Pitch (-100, 0, 0);
 }
 
 
index 934118c0a8b53fd2e204e468db0dc5e3db52846d..9784bac703e410043e183773c3601d5cbfef724f 100644 (file)
@@ -116,7 +116,7 @@ LY_DEFINE (ly_pitch_less_p, "ly:pitch<?",
 }
 
 LY_DEFINE (ly_pitch_diff, "ly:pitch-diff",
-          2 ,0, 0, (SCM pitch, SCM  root),
+          2 , 0, 0, (SCM pitch, SCM  root),
           "Return pitch @var{delta} such that @code{pitch} transposed by "
           "@var{delta} equals @var{root}" )
 {
index ef912bf130df213296c5f75ac50acd0a5e74c902..28a562bdc8d6c63bb6a4e0a4bf0e5d1b0ed21c1a 100644 (file)
@@ -157,7 +157,7 @@ pitch_interval (Pitch const & from , Pitch const & to )
 
            to.get_alteration () - from.get_alteration ());
 
-  return pt.transposed (Pitch (0,0,sound - pt.quartertone_pitch ()));
+  return pt.transposed (Pitch (0, 0, sound - pt.quartertone_pitch ()));
 }
 
 
@@ -184,7 +184,7 @@ Pitch::to_string () const
     {
       int o = (-octave_) - 1;
       while (o--)
-       s += ::to_string (',');
+       s += ::to_string (', ');
     }
 
   return s;
index 7852c3349c5ecba8ccd730a6794403527ce61e15..56ec9998874ec397427f0236719b7eb6516dda0b 100644 (file)
@@ -44,7 +44,7 @@ Property_unset_iterator::process (Moment m)
   Simple_music_iterator::process (m);
 }
 
-MAKE_SCHEME_CALLBACK (Property_iterator,once_finalization, 2);
+MAKE_SCHEME_CALLBACK (Property_iterator, once_finalization, 2);
 SCM
 Property_iterator::once_finalization (SCM translator, SCM music )
 {
@@ -115,7 +115,7 @@ Push_property_iterator::process (Moment m)
   Simple_music_iterator::process (m);
 }
 
-MAKE_SCHEME_CALLBACK (Push_property_iterator,once_finalization, 2);
+MAKE_SCHEME_CALLBACK (Push_property_iterator, once_finalization, 2);
 SCM
 Push_property_iterator::once_finalization (SCM trans, SCM music)
 {
index 4d26ce79f0b8de11903b197c88c0efead01e6906..71fd74024ea92ff98a4dcf000cd5337d840d8583 100644 (file)
@@ -71,7 +71,7 @@ Quote_iterator::Quote_iterator ()
 
 
 int
-binsearch_scm_vector (SCM vec, SCM key, bool (*is_less)(SCM a,SCM b))
+binsearch_scm_vector (SCM vec, SCM key, bool (*is_less)(SCM a, SCM b))
 {
   int lo = 0;
   int hi = scm_c_vector_length (vec);
index 9ce7c5d88d8a45a3c3cad523b25edb2590ccf6bb..f7a81a78d105e3dd91cf9e33c6eeb134a45a8100 100644 (file)
@@ -14,7 +14,7 @@
 class Relative_octave_check
 {
 public:
-  DECLARE_SCHEME_CALLBACK(relative_callback,(SCM,SCM));
+  DECLARE_SCHEME_CALLBACK(relative_callback, (SCM, SCM));
 };
 
 
index 39467959cd9be47cba078368bd49b746acc0e4d6..a6421659a0b8de924fb9e83c989854d0dc5bf2a1 100644 (file)
 class Relative_octave_music
 {
 public:
-  DECLARE_SCHEME_CALLBACK(relative_callback,(SCM,SCM));
-  DECLARE_SCHEME_CALLBACK(no_relative_callback,(SCM,SCM));
+  DECLARE_SCHEME_CALLBACK(relative_callback, (SCM, SCM));
+  DECLARE_SCHEME_CALLBACK(no_relative_callback, (SCM, SCM));
 };
 
-MAKE_SCHEME_CALLBACK(Relative_octave_music,no_relative_callback,2)
+MAKE_SCHEME_CALLBACK(Relative_octave_music, no_relative_callback, 2)
 SCM
 Relative_octave_music::no_relative_callback (SCM music, SCM pitch)
 {
@@ -28,7 +28,7 @@ Relative_octave_music::no_relative_callback (SCM music, SCM pitch)
   return pitch;
 }
 
-MAKE_SCHEME_CALLBACK(Relative_octave_music,relative_callback,2)
+MAKE_SCHEME_CALLBACK(Relative_octave_music, relative_callback, 2)
 SCM
 Relative_octave_music::relative_callback (SCM music, SCM pitch)
 {
index 818e1306bb0d75ad18327d01f76bf9fcbfdaee20..27fc5f25e969182bef280319f56f49820382a62f 100644 (file)
@@ -25,7 +25,7 @@ Repeated_music::alternatives (Music *me)
   return me->get_property ("elements");
 }
 
-MAKE_SCHEME_CALLBACK(Repeated_music,relative_callback, 2);
+MAKE_SCHEME_CALLBACK(Repeated_music, relative_callback, 2);
 SCM
 Repeated_music::relative_callback (SCM music, SCM pitch)
 {
@@ -107,7 +107,7 @@ Repeated_music::body_get_length (Music *me)
 }
 
 
-MAKE_SCHEME_CALLBACK (Repeated_music,unfolded_music_length, 1);
+MAKE_SCHEME_CALLBACK (Repeated_music, unfolded_music_length, 1);
 
 SCM
 Repeated_music::unfolded_music_length (SCM m)
@@ -118,7 +118,7 @@ Repeated_music::unfolded_music_length (SCM m)
   return l.smobbed_copy ();
 }
 
-MAKE_SCHEME_CALLBACK (Repeated_music,folded_music_length, 1);
+MAKE_SCHEME_CALLBACK (Repeated_music, folded_music_length, 1);
 SCM
 Repeated_music::folded_music_length (SCM m)
 {
@@ -134,7 +134,7 @@ Repeated_music::repeat_count (Music *me)
   return scm_to_int (me->get_property ("repeat-count"));
 }
 
-MAKE_SCHEME_CALLBACK (Repeated_music,volta_music_length, 1);
+MAKE_SCHEME_CALLBACK (Repeated_music, volta_music_length, 1);
 SCM
 Repeated_music::volta_music_length (SCM m)
 {
@@ -143,7 +143,7 @@ Repeated_music::volta_music_length (SCM m)
   return l.smobbed_copy ();
 }
 
-MAKE_SCHEME_CALLBACK (Repeated_music,minimum_start, 1);
+MAKE_SCHEME_CALLBACK (Repeated_music, minimum_start, 1);
 SCM
 Repeated_music::minimum_start (SCM m)
 {
@@ -158,7 +158,7 @@ Repeated_music::minimum_start (SCM m)
     }
 }
 
-MAKE_SCHEME_CALLBACK (Repeated_music,first_start, 1);
+MAKE_SCHEME_CALLBACK (Repeated_music, first_start, 1);
 SCM
 Repeated_music::first_start (SCM m)
 {
index 7de87e7d6a6a881db7c7d139622d4b004be03d19..28f8002305da5e929052afccec1284c08d263e7b 100644 (file)
@@ -44,7 +44,7 @@ Rest_collision_engraver::process_acknowledged_grobs ()
 
   
   for (int i = 0; i < note_columns_.size (); i++)
-    Rest_collision::add_column (rest_collision_,note_columns_[i]);
+    Rest_collision::add_column (rest_collision_, note_columns_[i]);
 }
 
 void
index b2cf2824ec7df0c15e5855d19abc6786e001dfb7..81c477f4ba8a834e57c1856e6f23f1d9334024a3 100644 (file)
@@ -21,7 +21,7 @@
 #include "duration.hh"
 #include "directional-element-interface.hh"
 
-MAKE_SCHEME_CALLBACK (Rest_collision,force_shift_callback,2);
+MAKE_SCHEME_CALLBACK (Rest_collision, force_shift_callback, 2);
 SCM
 Rest_collision::force_shift_callback (SCM element_smob, SCM axis)
 {
@@ -45,7 +45,7 @@ Rest_collision::force_shift_callback (SCM element_smob, SCM axis)
 
 
 void
-Rest_collision::add_column (Grob*me,Grob *p)
+Rest_collision::add_column (Grob*me, Grob *p)
 {
   me->add_dependency (p);
   Pointer_group_interface::add_grob (me, ly_symbol2scm ("elements"), p);
@@ -174,7 +174,7 @@ Rest_collision::do_shift (Grob *me)
 
            Real diff = d * ((last_y - y) /staff_space);
            if (diff > 0)
-             Note_column::translate_rests (ordered_rests[d][i],d * (int) ceil (diff) * 2);
+             Note_column::translate_rests (ordered_rests[d][i], d * (int) ceil (diff) * 2);
          }
       } while (flip (&d) != LEFT);
     }
@@ -232,13 +232,13 @@ Rest_collision::do_shift (Grob *me)
       if (discrete_dist < stafflines+1)
        discrete_dist = int (ceil (discrete_dist / 2.0)* 2.0);
 
-      Note_column::translate_rests (rcol,dir * discrete_dist);
+      Note_column::translate_rests (rcol, dir * discrete_dist);
     }
   return SCM_UNSPECIFIED;
 }
 
 
-ADD_INTERFACE (Rest_collision,"rest-collision-interface",
+ADD_INTERFACE (Rest_collision, "rest-collision-interface",
               "Move around ordinary rests (not multi-measure-rests) to avoid "
               "conflicts.",
               "minimum-distance positioning-done elements");
index baab83f5af4f825f685b63fd597a1e4948faf147..80062cfca27398efd24c49a988d1b0719d0435ca 100644 (file)
@@ -17,7 +17,7 @@
 #include "directional-element-interface.hh"
 
 // -> offset callback
-MAKE_SCHEME_CALLBACK (Rest,after_line_breaking,1);
+MAKE_SCHEME_CALLBACK (Rest, after_line_breaking, 1);
 SCM
 Rest::after_line_breaking (SCM smob)
 {
@@ -113,7 +113,7 @@ Rest::glyph_name (Grob *me, int balltype, String style, bool try_ledgers)
 }
 
 
-MAKE_SCHEME_CALLBACK (Rest,print,1);
+MAKE_SCHEME_CALLBACK (Rest, print, 1);
 
 SCM
 Rest::brew_internal_stencil (SCM smob, bool ledgered)
@@ -145,7 +145,7 @@ Rest::print (SCM smob)
 {
   return brew_internal_stencil (smob, true);
 }
-MAKE_SCHEME_CALLBACK (Rest,extent_callback,2);
+MAKE_SCHEME_CALLBACK (Rest, extent_callback, 2);
 /*
   We need the callback. The real stencil has ledgers depending on
   Y-position. The Y-position is known only after line breaking.  */
@@ -166,7 +166,7 @@ Rest::extent_callback (SCM smob, SCM ax)
   return ly_interval2scm (unsmob_stencil (m)->extent (a));
 }
 
-MAKE_SCHEME_CALLBACK (Rest,polyphonic_offset_callback,2);
+MAKE_SCHEME_CALLBACK (Rest, polyphonic_offset_callback, 2);
 SCM
 Rest::polyphonic_offset_callback (SCM smob, SCM)
 {
@@ -181,7 +181,7 @@ Rest::polyphonic_offset_callback (SCM smob, SCM)
   return scm_make_real (off);
 }
 
-ADD_INTERFACE (Rest,"rest-interface",
+ADD_INTERFACE (Rest, "rest-interface",
   "A rest symbol.",
   "style direction minimum-distance");
 
index 37c83d58c6910b9dddd2b85ffbe7e32d3de285ec..84708dade1b8f5cf7df1e600302ede350e5acb1e 100644 (file)
@@ -77,7 +77,7 @@ Rhythmic_column_engraver::process_acknowledged_grobs ()
     {
       if (!note_column_)
        {
-         note_column_ = make_item ("NoteColumn",rheads_[0]->self_scm ());
+         note_column_ = make_item ("NoteColumn", rheads_[0]->self_scm ());
 
          spacing_ = make_item ("NoteSpacing", SCM_EOL);
          spacing_->set_property ("left-items", scm_cons (note_column_->self_scm (), SCM_EOL));
index 876820589bc3d8c7e8aec85e373e993b12f5d27d..d9abe900101090f061f7333957c730aa40f0d2be 100644 (file)
@@ -36,7 +36,7 @@ Rhythmic_head::dot_count (Grob*me)
 }
 
 void
-Rhythmic_head::set_dots (Grob*me,Item *dot)
+Rhythmic_head::set_dots (Grob*me, Item *dot)
 {
   me->set_property ("dot", dot->self_scm ());
 }
@@ -48,7 +48,7 @@ Rhythmic_head::duration_log (Grob*me)
   return scm_is_number (s) ? scm_to_int (s) : 0;
 }
 
-ADD_INTERFACE (Rhythmic_head,"rhythmic-head-interface",
+ADD_INTERFACE (Rhythmic_head, "rhythmic-head-interface",
   "Note head or rest",
   "dot stem duration-log");
 
index 65699b1b6cd7e5f0751dfae87dd167e0dc33b14a..18b6edcd8e4f0edafe45f67e89d06fc8d1e9b69b 100644 (file)
@@ -79,7 +79,7 @@ Scheme_hash_table::print_smob (SCM s, SCM p, scm_print_state*)
   sprintf (str, "#<Scheme_hash_table 0x%0lx ", SCM_UNPACK (s));
   Scheme_hash_table *me = (Scheme_hash_table*) SCM_CELL_WORD_1 (s);
   scm_display (me->hash_tab_, p);
-  scm_puts ("> ",p);
+  scm_puts ("> ", p);
   return 1;
 }
 
index 229733d2956ef4c664a11476f4510e00f9d64abc..7e6dbccaf97f623d776b36e65e1ca6376bab467d 100644 (file)
@@ -74,10 +74,10 @@ LY_DEFINE (ly_option_usage, "ly:option-usage", 0, 0, 0, (SCM),
 
 /* Add these as well:
 
-@item -T,--no-timestamps
+@item -T, --no-timestamps
 don't timestamp the output
 
-@item -t,--test
+@item -t, --test
 Switch on any experimental features.  Not for general public use.
 
 */
index 87f349be133ef9b9d41de951e7fcaead11f38255..1afa849ebdeea9cbe58d996541326cf6326b499c 100644 (file)
@@ -199,7 +199,7 @@ Script_engraver::acknowledge_grob (Grob_info info)
              e->set_parent (info.grob_, Y_AXIS);
              e->add_dependency (info.grob_);
            }
-         Side_position_interface::add_support (e,info.grob_);
+         Side_position_interface::add_support (e, info.grob_);
        }
     }
   else if (Note_column::has_interface (info.grob_))
index 502844304b66952abb461a1190ea440ab495d10b..2c37d1a5557d8a88f37802e8da362e495f21fd25 100644 (file)
@@ -88,7 +88,7 @@ struct Text_script
   static bool has_interface (Grob*);
 };
 
-ADD_INTERFACE (Text_script,"text-script-interface",
+ADD_INTERFACE (Text_script, "text-script-interface",
   "An object that is put above or below a note",
   "add-stem-support slur script-priority inside-slur");
 
index ce9cb89db4e2bca4b765aaa388cc0841f3de0465..05c5264b1da57550f1752859a0727c1c94262263 100644 (file)
@@ -73,7 +73,7 @@ Separating_group_spanner::find_rods (Item * r, SCM next, Real padding)
     }
 }
 
-MAKE_SCHEME_CALLBACK (Separating_group_spanner,set_spacing_rods,1);
+MAKE_SCHEME_CALLBACK (Separating_group_spanner, set_spacing_rods, 1);
 SCM
 Separating_group_spanner::set_spacing_rods (SCM smob)
 {
@@ -107,7 +107,7 @@ Separating_group_spanner::set_spacing_rods (SCM smob)
 }
 
 void
-Separating_group_spanner::add_spacing_unit (Grob* me ,Item*i)
+Separating_group_spanner::add_spacing_unit (Grob* me , Item*i)
 {
   Pointer_group_interface::add_grob (me, ly_symbol2scm ("elements"), i);
   me->add_dependency (i);
@@ -117,7 +117,7 @@ Separating_group_spanner::add_spacing_unit (Grob* me ,Item*i)
 
 
 
-ADD_INTERFACE (Separating_group_spanner,"separation-spanner-interface",
+ADD_INTERFACE (Separating_group_spanner, "separation-spanner-interface",
               "A spanner that calculates spacing constraints (\"rods\") "
               "using the @code{separation-item-interface} grobs in @code{elements}.",
               "elements padding");
index 84a98be9e9c12f6c3aa4f97edfc4c069928dcb56..c0793a2f9f89a8611b36030566d3c1898cafc73a 100644 (file)
@@ -168,7 +168,7 @@ Separating_line_group_engraver::acknowledge_grob (Grob_info i)
   if (Accidental_placement::has_interface (it))
     Separation_item::add_conditional_item (p_ref_, it);
   else
-    Separation_item::add_item (p_ref_,it);
+    Separation_item::add_item (p_ref_, it);
 }
 
 void
index 5dce52645dd2a8bf7e43fb944d4c1c7ec667acf8..f2a86ffd12db113909da4c92972144e58221c857 100644 (file)
 #include "accidental-placement.hh"
 
 void
-Separation_item::add_item (Grob*s,Item* i)
+Separation_item::add_item (Grob*s, Item* i)
 {
   assert (i);
-  Pointer_group_interface::add_grob (s, ly_symbol2scm ("elements"),i);
+  Pointer_group_interface::add_grob (s, ly_symbol2scm ("elements"), i);
   s->add_dependency (i);
 }
 
@@ -167,7 +167,7 @@ Separation_item::extremal_break_aligned_grob (Grob *separation_item, Direction d
 
 
 
-ADD_INTERFACE (Separation_item,"separation-item-interface",
+ADD_INTERFACE (Separation_item, "separation-item-interface",
               "Item that computes widths to generate spacing rods. "
               "This is done in concert with @ref{separation-spanner-interface}."
               
index 823de3aa4a31f82b902ba9dc80e6a27d7e2b549c..e79aad880b8d298bbfe6861127226e4110c50d0c 100644 (file)
@@ -52,7 +52,7 @@ Side_position_interface::get_direction (Grob*me)
 }
   
 
-MAKE_SCHEME_CALLBACK (Side_position_interface,aligned_on_support_extents, 2);
+MAKE_SCHEME_CALLBACK (Side_position_interface, aligned_on_support_extents, 2);
 SCM
 Side_position_interface::aligned_on_support_extents (SCM element_smob, SCM axis)
 {
@@ -92,7 +92,7 @@ Side_position_interface::general_side_position (Grob *me, Axis a, bool use_exten
        else
          {
            Real x = e->relative_coordinate (common, a);
-           dim.unite (Interval (x,x));
+           dim.unite (Interval (x, x));
          }
     }
 
@@ -128,7 +128,7 @@ Side_position_interface::general_side_position (Grob *me, Axis a, bool use_exten
 /*
   Cut & paste (ugh.)
  */
-MAKE_SCHEME_CALLBACK (Side_position_interface,aligned_on_support_refpoints,2);
+MAKE_SCHEME_CALLBACK (Side_position_interface, aligned_on_support_refpoints, 2);
 SCM
 Side_position_interface::aligned_on_support_refpoints (SCM smob, SCM axis)
 {
@@ -156,7 +156,7 @@ directed_round (Real f, Direction d)
 
   Only rounds when we're inside the staff, as determined by
   Staff_symbol_referencer::staff_radius () */
-MAKE_SCHEME_CALLBACK (Side_position_interface,quantised_position,2);
+MAKE_SCHEME_CALLBACK (Side_position_interface, quantised_position, 2);
 SCM
 Side_position_interface::quantised_position (SCM element_smob, SCM)
 {
@@ -174,7 +174,7 @@ Side_position_interface::quantised_position (SCM element_smob, SCM)
 
       Grob *head = me->get_parent (X_AXIS);
        
-      if (Staff_symbol_referencer::on_staffline (me,ip)
+      if (Staff_symbol_referencer::on_staffline (me, ip)
          && ((abs (ip) <= rad)
              || (Note_head::has_interface (head)
                  && sign (Staff_symbol_referencer::get_position (head))
@@ -193,7 +193,7 @@ Side_position_interface::quantised_position (SCM element_smob, SCM)
 /*
   Position next to support, taking into account my own dimensions and padding.
  */
-MAKE_SCHEME_CALLBACK (Side_position_interface,aligned_side,2);
+MAKE_SCHEME_CALLBACK (Side_position_interface, aligned_side, 2);
 SCM
 Side_position_interface::aligned_side (SCM element_smob, SCM axis)
 {
@@ -202,7 +202,7 @@ Side_position_interface::aligned_side (SCM element_smob, SCM axis)
   
   Direction d = Side_position_interface::get_direction (me);
   
-  Real o = scm_to_double (aligned_on_support_extents (element_smob,axis));
+  Real o = scm_to_double (aligned_on_support_extents (element_smob, axis));
 
   Interval iv =  me->extent (me, a);
 
@@ -258,7 +258,7 @@ Side_position_interface::get_axis (Grob*me)
 }
 
 
-ADD_INTERFACE (Side_position_interface,"side-position-interface",
+ADD_INTERFACE (Side_position_interface, "side-position-interface",
               "Position a victim object (this one) next to other objects (the "
               "support).   The property @code{direction} signifies where to put the  "
               "victim object relative to the support (left or right, up or down?)\n\n "
index 516e00ebc9021b92f69e2987801465813b2f75c5..0ca1fbe1b6a6db05c741a7af259730d08d1d6edc 100644 (file)
@@ -84,7 +84,7 @@ Simple_spacer::add_rod (int l, int r, Real dist)
       return;
     }
 
-  Real c = range_stiffness (l,r);
+  Real c = range_stiffness (l, r);
   if (isinf (c))
     {
       /*
@@ -102,7 +102,7 @@ Simple_spacer::add_rod (int l, int r, Real dist)
       return;
     }
   
-  Real d = range_ideal_len (l,r);
+  Real d = range_ideal_len (l, r);
   Real block_stretch = dist - d;
   
   Real block_force = c * block_stretch;
index 5123dca51f324cbf4f2c19418267a2e284e04f51..4b1336a80b3f8c2b2235c55737f25dd76ccbf00e 100644 (file)
@@ -26,10 +26,10 @@ Simultaneous_music_iterator::derived_mark () const
 }
 
 void
-Simultaneous_music_iterator::derived_substitute (Context *f,Context *t)
+Simultaneous_music_iterator::derived_substitute (Context *f, Context *t)
 {
   for (SCM s = children_list_; scm_is_pair (s); s = scm_cdr (s))
-    unsmob_iterator (scm_car (s))-> substitute_outlet (f,t);
+    unsmob_iterator (scm_car (s))-> substitute_outlet (f, t);
 }
 
 void
index c7bf2117a4c44465cfd88312618550f30284317b..f6b3e8f1a981b8f30c5b910ee2a8c219e047df76 100644 (file)
@@ -78,7 +78,7 @@ Slash_repeat_engraver::try_music (Music * m)
       Moment meas_len = robust_scm2moment (m->get_property ("measureLength"), Moment (0));
       if (body_length_ < meas_len 
          && meas_len.main_part_.mod_rat (body_length_.main_part_)
-         == Moment (Rational (0,0)))
+         == Moment (Rational (0, 0)))
        {
          repeat_ = m;
        }
index a191870c03cf70023cdd4d9cf1ffe15b0fa28c5e..9040d7a8276b0454c6c7dbb0398cecaf2c80bf22 100644 (file)
@@ -26,7 +26,7 @@ Bezier
 avoid_staff_line (Slur_score_state const &state, 
                  Bezier bez)
 {
-  Offset horiz (1,0);
+  Offset horiz (1, 0);
   Array<Real> ts = bez.solve_derivative (horiz);
 
   /* TODO: handle case of broken slur.  */
index 4797041d4dab57ccfe0d4ec9828dcafd47b0fad0..1c0b9f9ebf982daef4b08f27677ac908de01d123 100644 (file)
@@ -89,6 +89,6 @@ Slur_performer::try_music (Music *m)
   return false;
 }
 
-ADD_TRANSLATOR (Slur_performer,"","",
-                 "slur-event","","","");
+ADD_TRANSLATOR (Slur_performer, "", "",
+                 "slur-event", "", "", "");
 
index b83fa400aa4387864dfd8f177e0daad2f824fac4..3057fc2c37ab4561e5beb7d560115c457698b46b 100644 (file)
@@ -46,7 +46,7 @@ Slur::height (SCM smob, SCM ax)
 /*
   Ugh should have dash-length + dash-period
 */
-MAKE_SCHEME_CALLBACK (Slur, print,1);
+MAKE_SCHEME_CALLBACK (Slur, print, 1);
 SCM
 Slur::print (SCM smob)
 {
@@ -216,7 +216,7 @@ get_default_dir (Grob*me)
 }
 
 
-MAKE_SCHEME_CALLBACK (Slur, after_line_breaking,1);
+MAKE_SCHEME_CALLBACK (Slur, after_line_breaking, 1);
 SCM
 Slur::after_line_breaking (SCM smob)
 {
index 4f181e1c9b13578277640b3acb3f4bd1f721462c..6957cc19c0217e18e2af538b9d1f8547a789adbb 100644 (file)
@@ -156,7 +156,7 @@ Slice
 Source_file::line_slice (char const* pos_str0) const
 {
   if (!contains (pos_str0))
-    return Slice (0,0);
+    return Slice (0, 0);
 
   char const* data_str0 = to_str0 ();
   char const * eof_C_ = data_str0 + length ();
index 825d3b0550a0669c5ff80a6a983c877955b80e4b..4661d5512049ee00071c238436ba10d23b6e72f6 100644 (file)
@@ -101,7 +101,7 @@ Spaceable_grob::remove_interface (Grob*me)
 
 
 
-ADD_INTERFACE (Spaceable_grob,"spaceable-grob-interface",
+ADD_INTERFACE (Spaceable_grob, "spaceable-grob-interface",
               "A layout object that takes part in the spacing problem. "
               ,
               "measure-length spacing-wishes penalty minimum-distances ideal-distances "
index b02dc4ff623c09a00a9414235e2470b764b955e0..7a554e4d8f55a1af42ff27217b3489992c5c3eca 100644 (file)
@@ -57,7 +57,7 @@ protected:
 inline int
 compare (Rhythmic_tuple const &a, Rhythmic_tuple const &b)
 {
-  return Rhythmic_tuple::time_compare (a,b);
+  return Rhythmic_tuple::time_compare (a, b);
 }
 
 int
index f58717b7682d7e2421cfa26826c884d5cc739364..37abb9961d56bdfbea908fed84c866efec23a029 100644 (file)
@@ -40,18 +40,18 @@ public:
                                                 Real * fixed, Real * space, Moment);
   
 
-  static Real default_bar_spacing (Grob*,Grob*,Grob*,Moment);
-  static Real note_spacing (Grob*,Grob*,Grob*,Moment, bool*);
-  static Real get_duration_space (Grob*,Moment dur, Rational shortest, bool*);
+  static Real default_bar_spacing (Grob*, Grob*, Grob*, Moment);
+  static Real note_spacing (Grob*, Grob*, Grob*, Moment, bool*);
+  static Real get_duration_space (Grob*, Moment dur, Rational shortest, bool*);
   static Rational find_shortest (Grob *, Link_array<Grob> const &);  
   static void breakable_column_spacing (Grob*, Item* l, Item *r, Moment);
   static void find_loose_columns () {}
-  static void prune_loose_columns (Grob*,Link_array<Grob> *cols, Rational);
+  static void prune_loose_columns (Grob*, Link_array<Grob> *cols, Rational);
   static void find_loose_columns (Link_array<Grob> cols);
   static void set_explicit_neighbor_columns (Link_array<Grob> cols);
   static void set_implicit_neighbor_columns (Link_array<Grob> cols);
-  static void do_measure (Rational, Grob*me,Link_array<Grob> *cols);
-  static void musical_column_spacing (Grob*,Item*,Item*, Real, Rational); 
+  static void do_measure (Rational, Grob*me, Link_array<Grob> *cols);
+  static void musical_column_spacing (Grob*, Item*, Item*, Real, Rational); 
   DECLARE_SCHEME_CALLBACK (set_springs, (SCM ));
   static bool has_interface (Grob*);
 };
@@ -159,7 +159,7 @@ loose_column (Grob *l, Grob *c, Grob *r)
   between.
 */
 void
-Spacing_spanner::prune_loose_columns (Grob*me,Link_array<Grob> *cols, Rational shortest)
+Spacing_spanner::prune_loose_columns (Grob*me, Link_array<Grob> *cols, Rational shortest)
 {
   Link_array<Grob> newcols;
   Real increment = robust_scm2double (me->get_property ("spacing-increment"), 1.2);
@@ -195,7 +195,7 @@ Spacing_spanner::prune_loose_columns (Grob*me,Link_array<Grob> *cols, Rational s
          next_door[LEFT] = cols->elem (i - 1);
          next_door[RIGHT] = cols->elem (i + 1);          
          Direction d = LEFT;
-         Drul_array<Real> dists (0,0);
+         Drul_array<Real> dists (0, 0);
 
          do
            {
@@ -360,7 +360,7 @@ Spacing_spanner::set_implicit_neighbor_columns (Link_array<Grob> cols)
 }
 
 
-MAKE_SCHEME_CALLBACK (Spacing_spanner, set_springs,1);
+MAKE_SCHEME_CALLBACK (Spacing_spanner, set_springs, 1);
 SCM
 Spacing_spanner::set_springs (SCM smob)
 {
@@ -487,7 +487,7 @@ Spacing_spanner::find_shortest (Grob *me, Link_array<Grob> const &cols)
     }
 
   SCM  bsd = me->get_property ("base-shortest-duration");
-  Rational d = Rational (1,8);
+  Rational d = Rational (1, 8);
   if (Moment *m = unsmob_moment (bsd))
     d = m->main_part_;
   
@@ -532,7 +532,7 @@ Spacing_spanner::do_measure (Rational global_shortest, Grob*me,
          Item *rb = r->find_prebroken_piece (LEFT);
          
          if (lb)
-           breakable_column_spacing (me, lb,r, global_shortest);
+           breakable_column_spacing (me, lb, r, global_shortest);
 
          if (rb)
            breakable_column_spacing (me, l, rb, global_shortest);
@@ -666,7 +666,7 @@ Spacing_spanner::standard_breakable_column_spacing (Grob * me, Item*l, Item*r,
 {
   *fixed = 0.0;
   Direction d = LEFT;
-  Drul_array<Item*> cols (l,r);
+  Drul_array<Item*> cols (l, r);
   
   do
     {
@@ -699,7 +699,7 @@ Spacing_spanner::standard_breakable_column_spacing (Grob * me, Item*l, Item*r,
     {
       Moment dt = Paper_column::when_mom (r) - Paper_column::when_mom (l);
 
-      if (dt == Moment (0,0))
+      if (dt == Moment (0, 0))
        {
          /*
            In this case, Staff_spacing should handle the job,
@@ -720,7 +720,7 @@ Spacing_spanner::standard_breakable_column_spacing (Grob * me, Item*l, Item*r,
   Read hints from L and generate springs.
 */
 void
-Spacing_spanner::breakable_column_spacing (Grob*me, Item* l, Item *r,Moment shortest)
+Spacing_spanner::breakable_column_spacing (Grob*me, Item* l, Item *r, Moment shortest)
 {
   Real compound_fixed = 0.0;
   Real compound_space = 0.0;
@@ -728,7 +728,7 @@ Spacing_spanner::breakable_column_spacing (Grob*me, Item* l, Item *r,Moment shor
 
   Moment dt = Paper_column::when_mom (r) - Paper_column::when_mom (l);
 
-  if (dt == Moment (0,0))
+  if (dt == Moment (0, 0))
     {
       for (SCM s = l->get_property ("spacing-wishes");
           scm_is_pair (s); s = scm_cdr (s))
@@ -836,7 +836,7 @@ Spacing_spanner::get_duration_space (Grob*me, Moment d, Rational shortest, bool
   else
     {
       /*
-         John S. Gourlay. ``Spacing a Line of Music,'' Technical
+         John S. Gourlay. ``Spacing a Line of Music, '' Technical
          Report OSU-CISRC-10/87-TR35, Department of Computer and
          Information Science, The Ohio State University, 1987.
        */
@@ -923,7 +923,7 @@ Spacing_spanner::note_spacing (Grob*me, Grob *lc, Grob *rc,
 
 
 
-ADD_INTERFACE (Spacing_spanner,"spacing-spanner-interface",
+ADD_INTERFACE (Spacing_spanner, "spacing-spanner-interface",
 "The space taken by a note is dependent on its duration. Doubling a\n"
 "duration adds spacing-increment to the space. The most common shortest\n"
 "note gets @code{shortest-duration-space}. Notes that are even shorter are\n"
index d45a1aaf3bcbc08610748414b6126b2f70eb3ff4..c69bb2a2e336c458158ba0c77aa66c939aa1181b 100644 (file)
@@ -62,7 +62,7 @@ Span_bar_engraver::stop_translation_timestep ()
   if (spanbar_) 
     {
       for (int i = 0; i < bars_.size () ; i++)
-       Span_bar::add_bar (spanbar_,bars_[i]);
+       Span_bar::add_bar (spanbar_, bars_[i]);
 
       SCM vissym = ly_symbol2scm ("break-visibility");
       SCM vis = bars_[0]->internal_get_property (vissym);        
index 2946ad1ce2b68e98e44ed8f0820f44d71e986373..052808adb97a8d162b5f2845359b9ac9eb824b3b 100644 (file)
@@ -24,7 +24,7 @@ Span_bar::add_bar (Grob*me, Grob*b)
   me->add_dependency (b);
 }
 
-MAKE_SCHEME_CALLBACK (Span_bar,print,1);
+MAKE_SCHEME_CALLBACK (Span_bar, print, 1);
 
 /* Limitations/Bugs:
 
@@ -108,7 +108,7 @@ Span_bar::print (SCM smobbed_me)
   return span_bar_mol.smobbed_copy ();
 }
 
-MAKE_SCHEME_CALLBACK (Span_bar,width_callback,2);
+MAKE_SCHEME_CALLBACK (Span_bar, width_callback, 2);
 SCM
 Span_bar::width_callback (SCM element_smob, SCM scm_axis)
 {
@@ -125,7 +125,7 @@ Span_bar::width_callback (SCM element_smob, SCM scm_axis)
   return ly_interval2scm (m.extent (X_AXIS));
 }
 
-MAKE_SCHEME_CALLBACK (Span_bar,before_line_breaking,1);
+MAKE_SCHEME_CALLBACK (Span_bar, before_line_breaking, 1);
 SCM
 Span_bar::before_line_breaking (SCM smob)
 {
@@ -139,7 +139,7 @@ Span_bar::before_line_breaking (SCM smob)
   return SCM_UNSPECIFIED;
 }
 
-MAKE_SCHEME_CALLBACK (Span_bar,center_on_spanned_callback,2);
+MAKE_SCHEME_CALLBACK (Span_bar, center_on_spanned_callback, 2);
 
 SCM
 Span_bar::center_on_spanned_callback (SCM element_smob, SCM axis)
@@ -149,7 +149,7 @@ Span_bar::center_on_spanned_callback (SCM element_smob, SCM axis)
   assert (a == Y_AXIS);
   Interval i (get_spanned_interval (me));
 
-  /* Bar_line::print delivers a barline of y-extent (-h/2,h/2), so
+  /* Bar_line::print delivers a barline of y-extent (-h/2, h/2), so
      we have to translate ourselves to be in the center of the 
      interval that we span. */
   if (i.is_empty ())
@@ -222,7 +222,7 @@ Span_bar::get_spanned_interval (Grob*me)
 }
 
 
-MAKE_SCHEME_CALLBACK (Span_bar,get_bar_size,1);
+MAKE_SCHEME_CALLBACK (Span_bar, get_bar_size, 1);
 SCM
 Span_bar::get_bar_size (SCM smob)
 {
@@ -239,7 +239,7 @@ Span_bar::get_bar_size (SCM smob)
 
 
 
-ADD_INTERFACE (Span_bar,"span-bar-interface",
+ADD_INTERFACE (Span_bar, "span-bar-interface",
   "A bar line that spanned between other barlines. This interface is "
               " used for  bar lines that connect different staves.",
   "elements");
index 45cc53831fa6f8f7166a34f383a0b6a56c5b68d3..0e4c9e04c024287d0ea87f44bae1b86898be0bc9 100644 (file)
@@ -84,9 +84,9 @@ Spanner::do_break_processing ()
     }
   else
     {
-      Link_array<Item> break_points = pscore_->system_->broken_col_range (left,right);
+      Link_array<Item> break_points = pscore_->system_->broken_col_range (left, right);
 
-      break_points.insert (left,0);
+      break_points.insert (left, 0);
       break_points.push (right);
 
       for (int i =1; i < break_points.size (); i++) 
@@ -109,8 +109,8 @@ Spanner::do_break_processing ()
            }
 
          Spanner *span = dynamic_cast<Spanner*> (clone (broken_intos_.size ()));
-         span->set_bound (LEFT,bounds[LEFT]);
-         span->set_bound (RIGHT,bounds[RIGHT]);
+         span->set_bound (LEFT, bounds[LEFT]);
+         span->set_bound (RIGHT, bounds[RIGHT]);
 
          if (!bounds[LEFT]->get_system () 
            
@@ -145,7 +145,7 @@ Spanner::set_my_columns ()
   do 
     {
       if (!spanned_drul_[i]->get_system ())
-       set_bound (i,spanned_drul_[i]->find_prebroken_piece ((Direction) -i));
+       set_bound (i, spanned_drul_[i]->find_prebroken_piece ((Direction) -i));
     } 
   while (flip (&i) != LEFT);
 }       
@@ -335,7 +335,7 @@ add_bound_item (Spanner* sp, Grob*it)
 }
 
 
-MAKE_SCHEME_CALLBACK (Spanner,set_spacing_rods,1);
+MAKE_SCHEME_CALLBACK (Spanner, set_spacing_rods, 1);
 SCM
 Spanner::set_spacing_rods (SCM smob)
 {
index 7e4118072a1063fe0f4aea7bca5318aaefc2ff21..7e1db27b06766e99525562a5943795fff7a6cd53 100644 (file)
@@ -105,7 +105,7 @@ Staff_spacing::bar_y_positions (Grob *bar_grob)
       if (glyph_string.left_string (1) == "|" || glyph_string.left_string (1) == ".")
        {
          SCM sz = Bar_line::get_staff_bar_size (bar_grob->self_scm ());
-         bar_size = Interval (-1,1);
+         bar_size = Interval (-1, 1);
          bar_size *= robust_scm2double (sz, 1)
            / Staff_symbol_referencer::staff_space (bar_grob);
        }
@@ -241,7 +241,7 @@ Staff_spacing::get_spacing_params (Grob *me, Real * space, Real * fixed)
 }
 
 
-ADD_INTERFACE (Staff_spacing,"staff-spacing-interface",
+ADD_INTERFACE (Staff_spacing, "staff-spacing-interface",
               "This object calculates spacing details from a "
               " breakable symbol (left) to another object. For example, it takes care "
               " of  optical spacing from  a bar lines to a note.",
index 8245bbf8e59a5749838f46b23ae4f945387c4df2..d9d9fb574336323e409fd33995d1224b3ec640e3 100644 (file)
@@ -59,7 +59,7 @@ Staff_symbol_engraver::finalize ()
 {
   if (span_)
     {
-      span_->set_bound (RIGHT,unsmob_grob (get_property ("currentCommandColumn")));
+      span_->set_bound (RIGHT, unsmob_grob (get_property ("currentCommandColumn")));
     }
   span_ = 0;
 }
index 20c0b50b1be4963eb538ecb44d618dec2a06187e..376fea6b5dfa2669501d4f7c844e66d3bb929f5d 100644 (file)
@@ -94,7 +94,7 @@ Staff_symbol_referencer::get_rounded_position (Grob*me)
 }
 
 LY_DEFINE (ly_grob_staff_position, "ly:grob-staff-position",
-          1, 0,0, (SCM sg),
+          1, 0, 0, (SCM sg),
           "Return the Y-position of @var{sg} relative to the staff.")
 {
   Grob *g = unsmob_grob (sg);
@@ -110,7 +110,7 @@ LY_DEFINE (ly_grob_staff_position, "ly:grob-staff-position",
 
 
 /* should use offset callback!  */
-MAKE_SCHEME_CALLBACK (Staff_symbol_referencer,callback,2);
+MAKE_SCHEME_CALLBACK (Staff_symbol_referencer, callback, 2);
 SCM
 Staff_symbol_referencer::callback (SCM element_smob, SCM)
 {
@@ -169,7 +169,7 @@ compare_position (Grob *const &a, Grob *const &b)
               - Staff_symbol_referencer::get_position ((Grob*) b));
 }
 
-ADD_INTERFACE (Staff_symbol_referencer,"staff-symbol-referencer-interface",
+ADD_INTERFACE (Staff_symbol_referencer, "staff-symbol-referencer-interface",
               "An object whose Y position is meant relative to a staff "
               "symbol. "
               "These usually have @code{Staff_symbol_referencer::callback} "
index cae5c6fedd51a0d1e29c4d19ea44b7c3b700f2aa..c1634ac4fee4dff6305216f059a56e02a09f63c8 100644 (file)
@@ -16,7 +16,7 @@
 #include "staff-symbol-referencer.hh"
 #include "spanner.hh"
 
-MAKE_SCHEME_CALLBACK (Staff_symbol,print,1);
+MAKE_SCHEME_CALLBACK (Staff_symbol, print, 1);
 
 SCM
 Staff_symbol::print (SCM smob)
@@ -26,7 +26,7 @@ Staff_symbol::print (SCM smob)
   Grob * common
     = sp->get_bound (LEFT)->common_refpoint (sp->get_bound (RIGHT), X_AXIS);
   
-  Interval span_points (0,0);
+  Interval span_points (0, 0);
   
 
   /*
@@ -125,7 +125,7 @@ Staff_symbol::get_ledger_line_thickness (Grob * me)
 }
 
 
-ADD_INTERFACE (Staff_symbol,"staff-symbol-interface",
+ADD_INTERFACE (Staff_symbol, "staff-symbol-interface",
               "This spanner draws the lines of a staff. "
               "A staff symbol definines a vertical unit, the staff space. "
               "Quantities that go by a half staff space are called positions "
index 9af7b217b20a802958e2929658243c2e1e4db8ed..b0378a334969fdb7a8bc4ed0d469e3d885c80009 100644 (file)
@@ -141,13 +141,13 @@ Stem_engraver::stop_translation_timestep ()
       SCM prop = get_property ("stemLeftBeamCount");
       if (scm_is_number (prop))
        {
-         Stem::set_beaming (stem_,scm_to_int (prop),LEFT);
+         Stem::set_beaming (stem_, scm_to_int (prop), LEFT);
          context ()->unset_property (ly_symbol2scm ("stemLeftBeamCount"));
        }
       prop = get_property ("stemRightBeamCount");
       if (scm_is_number (prop))
        {
-         Stem::set_beaming (stem_,scm_to_int (prop), RIGHT);
+         Stem::set_beaming (stem_, scm_to_int (prop), RIGHT);
          context ()->unset_property (ly_symbol2scm ("stemRightBeamCount"));
        }
       stem_ = 0;
index bfbe13e9df679cb04d7677e5ff791df7042864e0..508a0949e2330e2de3bd9f97e8adeb3d3160bee6 100644 (file)
@@ -72,8 +72,8 @@ Stem_tremolo::raw_stencil (Grob *me)
     dydx = 0.25;
 
   Real ss = Staff_symbol_referencer::staff_space (me);
-  Real thick = robust_scm2double (me->get_property ("beam-thickness"),1);
-  Real width = robust_scm2double (me->get_property ("beam-width"),1);
+  Real thick = robust_scm2double (me->get_property ("beam-thickness"), 1);
+  Real width = robust_scm2double (me->get_property ("beam-width"), 1);
   Real blot = me->get_layout ()->get_dimension (ly_symbol2scm ("blotdiameter"));
 
   width *= ss;
@@ -108,7 +108,7 @@ Stem_tremolo::raw_stencil (Grob *me)
   return mol;
 }
 
-MAKE_SCHEME_CALLBACK (Stem_tremolo,print,1);
+MAKE_SCHEME_CALLBACK (Stem_tremolo, print, 1);
 SCM
 Stem_tremolo::print (SCM grob) 
 {
@@ -173,6 +173,6 @@ Stem_tremolo::print (SCM grob)
 
 
 
-ADD_INTERFACE (Stem_tremolo,"stem-tremolo-interface",
+ADD_INTERFACE (Stem_tremolo, "stem-tremolo-interface",
   "A beam slashing a stem to indicate a tremolo.",
   "stem beam-width beam-thickness flag-count");
index 7597fde71f54c618ee390406bcda7f4ad1226e00..b4de3c1ce5c2a03e0c49a6aa86fabd71d7a43c10 100644 (file)
@@ -300,7 +300,7 @@ Stem::get_default_stem_end_position (Grob *me)
       SCM sshorten = me->get_property ("stem-shorten");
       SCM scm_shorten = scm_is_pair (sshorten) ?
        robust_list_ref ((duration_log (me) - 2) >? 0, sshorten): SCM_EOL;
-      Real shorten = 2* robust_scm2double (scm_shorten,0);
+      Real shorten = 2* robust_scm2double (scm_shorten, 0);
 
       /* On boundary: shorten only half */
       if (abs (head_positions (me)[dir]) <= 1)
@@ -467,7 +467,7 @@ Stem::position_noteheads (Grob *me)
     }
 }
 
-MAKE_SCHEME_CALLBACK (Stem,before_line_breaking,1);
+MAKE_SCHEME_CALLBACK (Stem, before_line_breaking, 1);
 SCM
 Stem::before_line_breaking (SCM smob)
 {
@@ -596,7 +596,7 @@ Stem::flag (Grob *me)
   return flag;
 }
 
-MAKE_SCHEME_CALLBACK (Stem,width_callback,2);
+MAKE_SCHEME_CALLBACK (Stem, width_callback, 2);
 SCM
 Stem::width_callback (SCM e, SCM ax)
 {
@@ -612,7 +612,7 @@ Stem::width_callback (SCM e, SCM ax)
     }    
   else if (unsmob_grob (me->get_property ("beam")) || abs (duration_log (me)) <= 2)
     {
-      r = Interval (-1,1);
+      r = Interval (-1, 1);
       r *= thickness (me)/2; 
     }
   else
@@ -678,14 +678,14 @@ Stem::print (SCM smob)
           + stemlet_length) / half_space;
     }
 
-  Interval stem_y (y1 <? y2,y2 >? y1);
+  Interval stem_y (y1 <? y2, y2 >? y1);
 
   if (Grob *hed = support_head (me))
     {
       /*
        must not take ledgers into account.
        */
-      Interval head_height = hed->extent (hed,Y_AXIS);
+      Interval head_height = hed->extent (hed, Y_AXIS);
       Real y_attach = Note_head::stem_attachment_coordinate (hed, Y_AXIS);
 
       y_attach = head_height.linear_combination (y_attach);
@@ -806,7 +806,7 @@ Stem::calc_stem_info (Grob *me)
   /* Simple standard stem length */
   SCM lengths = me->get_property ("beamed-lengths");
   Real ideal_length =
-    scm_to_double (robust_list_ref (beam_count - 1,lengths))
+    scm_to_double (robust_list_ref (beam_count - 1, lengths))
                
     * staff_space
     /* stem only extends to center of beam
index e44cd8234def9b447bf745e77f02f59bfc408f63..263d06ae52f0a5dcaf7c760e717bb088a845697c 100644 (file)
@@ -309,7 +309,7 @@ LY_DEFINE (ly_interpret_stencil_expression, "ly:interpret-stencil-expression",
 
 
 
-LY_DEFINE (ly_bracket ,"ly:bracket",
+LY_DEFINE (ly_bracket , "ly:bracket",
          4, 0, 0,
          (SCM a, SCM iv, SCM t, SCM p),
          "Make a bracket in direction @var{a}. The extent of the bracket is " 
@@ -330,7 +330,7 @@ LY_DEFINE (ly_bracket ,"ly:bracket",
 
 
 
-LY_DEFINE (ly_filled_box ,"ly:round-filled-box",
+LY_DEFINE (ly_filled_box , "ly:round-filled-box",
          3, 0, 0,
          (SCM xext, SCM yext, SCM blot),
          "Make a @code{Stencil} "
index ac4b5665762449e98c966d80fa91b1dab14f6c26..acdfd93bfab49c88cb9ef1d478499062464bf64c 100644 (file)
@@ -109,7 +109,7 @@ Stencil::translate (Offset o)
 void
 Stencil::translate_axis (Real x, Axis a)
 {
-  Offset o (0,0);
+  Offset o (0, 0);
   o[a] = x;
   translate (o);
 }
@@ -133,8 +133,8 @@ Stencil::set_empty (bool e)
     }
   else
     {
-      dim_[X_AXIS] = Interval (0,0);
-      dim_[Y_AXIS] = Interval (0,0);
+      dim_[X_AXIS] = Interval (0, 0);
+      dim_[Y_AXIS] = Interval (0, 0);
     }
 }
 
@@ -172,7 +172,7 @@ Stencil::moved_to_edge (Axis a, Direction d, Stencil const &s,
     + d * padding;
 
   Stencil toadd (s);
-  toadd.translate_axis (offset,a);
+  toadd.translate_axis (offset, a);
 
   if (minimum > 0 && d * (-origin ()[a] + toadd.origin ()[a]) < minimum)
     toadd.translate_axis ( -toadd.origin ()[a]
@@ -273,7 +273,7 @@ find_expression_fonts (SCM expr)
   fl.fonts_ = SCM_EOL;
 
   interpret_stencil_expression (expr, &find_font_function,
-                               (void*) &fl, Offset (0,0));
+                               (void*) &fl, Offset (0, 0));
 
   return fl.fonts_;
 }
index eab9a16ac1a2edca20709214237a596cc9ab7100..6b45591de43690ddeb1d4692a591bcc7ffe536b7 100644 (file)
@@ -37,7 +37,7 @@ public:
 };
 
 
-MAKE_SCHEME_CALLBACK (Sustain_pedal,print,1);
+MAKE_SCHEME_CALLBACK (Sustain_pedal, print, 1);
 SCM
 Sustain_pedal::print (SCM smob) 
 {
index 5276c7f6673425b01e6bd53b3a0896bbbaa68cb7..7e8adb3d7c98dc67868ce613750f5b2f44691fc4 100644 (file)
@@ -35,7 +35,7 @@ System_start_delimiter_engraver::acknowledge_grob (Grob_info inf)
   if (Staff_symbol::has_interface (inf.grob_))
     {
       /*
-       don't add as Axis_group_interface::add_element (delim_,),
+       don't add as Axis_group_interface::add_element (delim_, ),
        because that would set the parent as well */
          
       Pointer_group_interface::add_grob (delim_, ly_symbol2scm ("elements"),  inf.grob_);
@@ -91,7 +91,7 @@ System_start_delimiter_engraver::finalize ()
 }
 
 ADD_TRANSLATOR (System_start_delimiter_engraver,
-/* descr */       "Creates a system start delimiter (ie. SystemStart@{Bar,Brace,Bracket@} spanner",
+/* descr */       "Creates a system start delimiter (ie. SystemStart@{Bar, Brace, Bracket@} spanner",
 /* creats*/       "SystemStartBar SystemStartBrace SystemStartBracket",
 /* accepts */     "",
 /* acks  */      "system-start-delimiter-interface staff-symbol-interface",
index d6c4bd77eaf47eb2ec0b167e58f6e8265957815e..5b776120bf428853c006a5a77f96921eafc323ea 100644 (file)
@@ -20,7 +20,7 @@
 #include "lookup.hh"
 
 Stencil
-System_start_delimiter::staff_bracket (Grob*me,Real height)
+System_start_delimiter::staff_bracket (Grob*me, Real height)
 {
   Real arc_height = scm_to_double (me->get_property ("arch-height")) ;
 
@@ -61,22 +61,22 @@ Will not fix it since I'm not sure.
 
 
 Stencil
-System_start_delimiter::simple_bar (Grob*me,Real h) 
+System_start_delimiter::simple_bar (Grob*me, Real h) 
 {
   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)),
+  return Lookup::round_filled_box (Box (Interval (0, w), Interval (-h/2, h/2)),
                                   lt);
 }
 
-MAKE_SCHEME_CALLBACK (System_start_delimiter,after_line_breaking,1);
+MAKE_SCHEME_CALLBACK (System_start_delimiter, after_line_breaking, 1);
 
 SCM
 System_start_delimiter::after_line_breaking (SCM smob)
 {
   Grob * me = unsmob_grob (smob);
   SCM   gl = me->get_property ("glyph");
-  if (ly_c_equal_p (gl,scm_makfrom0str ("bar-line")))
+  if (ly_c_equal_p (gl, scm_makfrom0str ("bar-line")))
     {
       int count = 0;
 
@@ -196,7 +196,7 @@ System_start_delimiter::staff_brace (Grob *me, Real y)
 }
 
 
-ADD_INTERFACE (System_start_delimiter,"system-start-delimiter-interface",
+ADD_INTERFACE (System_start_delimiter, "system-start-delimiter-interface",
               "The brace, bracket or bar in front of the system. "
               "It is implemented as a spanner."
               ,
index ea2c7c75dc88b2a1e13392b70811855343a6727f..68fcc8cdc4de5ac876636048dda895799c641656 100644 (file)
@@ -250,8 +250,8 @@ System::break_into_pieces (Array<Column_x_positions> const &breaking)
       Link_array<Grob> c (breaking[i].cols_);
       pscore_->typeset_line (system);
       
-      system->set_bound (LEFT,c[0]);
-      system->set_bound (RIGHT,c.top ());
+      system->set_bound (LEFT, c[0]);
+      system->set_bound (RIGHT, c.top ());
       for (int j = 0; j < c.size (); j++)
        {
          c[j]->translate_axis (breaking[i].config_[j], X_AXIS);
@@ -405,7 +405,7 @@ System::get_line ()
 
   Interval x (extent (this, X_AXIS));
   Interval y (extent (this, Y_AXIS));
-  Stencil sys_stencil (Box (x,y),
+  Stencil sys_stencil (Box (x, y),
                       scm_cons (ly_symbol2scm ("combine-stencil"),
                                 exprs));
 
@@ -480,7 +480,7 @@ System::columns () const
   return acs;
 }
 
-ADD_INTERFACE (System,"system-interface",
+ADD_INTERFACE (System, "system-interface",
               "This is the toplevel object: each object in a score "
               "ultimately has a System object as its X and Y parent. ",
               "all-elements spaceable-staves columns")
index 96b1efb3f3c554f45c5981f8c5e889a844c91a8e..4a4bfdd7eb086d2b6a3684c44149e8f34da2c3b1 100644 (file)
@@ -137,7 +137,7 @@ Tab_note_heads_engraver::process_music ()
       while (!string_found)
        {
          int fret = unsmob_pitch (scm_pitch)->semitone_pitch ()
-           - scm_to_int (scm_list_ref (stringTunings,scm_int2num (tab_string-1)));
+           - scm_to_int (scm_list_ref (stringTunings, scm_int2num (tab_string-1)));
          if (fret<min_fret)
            tab_string += high_string_one ? 1 : -1;
          else
index c1c5d0b009ec998ada52e7c027d228192c77826a..074fbcc70969a2084c6b62939418b05d1ca0f5ee 100644 (file)
@@ -80,6 +80,6 @@ Tempo_performer::try_music (Music* req)
 
 
 
-ADD_TRANSLATOR (Tempo_performer, "","",
+ADD_TRANSLATOR (Tempo_performer, "", "",
                   "metronome-change-event",
-                  "","","" );
+                  "", "", "" );
index f15c5fdf899857c5b22d3591bec1ffd370de9a3c..52c6bcace96c06ce7e19a702296262b3873c4cd2 100644 (file)
@@ -49,7 +49,7 @@ Text_engraver::acknowledge_grob (Grob_info inf)
       for (int i = 0; i < texts_.size (); i++)
        {
          Grob*t = texts_[i];
-         Side_position_interface::add_support (t,inf.grob_);
+         Side_position_interface::add_support (t, inf.grob_);
 
          /*
            ugh.
@@ -67,7 +67,7 @@ Text_engraver::acknowledge_grob (Grob_info inf)
     {
       for (int i = 0; i < texts_.size (); i++)
        {
-         Side_position_interface::add_support (texts_[i],inf.grob_);
+         Side_position_interface::add_support (texts_[i], inf.grob_);
        }
     }
 }
index 30f231f22f488dd9d7081e22192dccab924622c5..d5dd43c3445cd87811af0557e7d8662cd9449055 100644 (file)
@@ -70,7 +70,7 @@ Text_interface::interpret_markup (SCM layout_smob, SCM props, SCM markup)
     }
 }
 
-MAKE_SCHEME_CALLBACK (Text_interface,print,1);
+MAKE_SCHEME_CALLBACK (Text_interface, print, 1);
 SCM
 Text_interface::print (SCM grob)
 {
@@ -92,7 +92,7 @@ Text_interface::markup_p (SCM x)
                                      ly_symbol2scm ("markup-signature"))));
 }
 
-ADD_INTERFACE (Text_interface,"text-interface",
+ADD_INTERFACE (Text_interface, "text-interface",
               "A scheme markup text, see @usermanref{Text-markup}.",
               "text baseline-skip word-space");
 
index 8a4d37b8eacc48d822aafd382152058fdb818a0b..2919f01a25d95cda90a95b5029372b1594707939 100644 (file)
@@ -119,7 +119,7 @@ Text_spanner::print (SCM smob)
 
          Real dy = - dir * edge_height[d] ;
          if (dy)
-           edge_line[d] = Line_spanner::line_stencil (me, Offset (0,0), Offset (dx, dy));
+           edge_line[d] = Line_spanner::line_stencil (me, Offset (0, 0), Offset (dx, dy));
        }
       while (flip (&d) != LEFT);
     }
@@ -156,7 +156,7 @@ Text_spanner::print (SCM smob)
   return m.smobbed_copy ();
 }
 
-ADD_INTERFACE (Text_spanner,"text-spanner-interface",
+ADD_INTERFACE (Text_spanner, "text-spanner-interface",
               "generic text spanner",
               "dash-period dash-fraction edge-height bracket-flare edge-text shorten-pair style thickness enclose-bounds");
 
index ce28ea7d65c5b0580f66c582974ed10b3f8f47e9..187536553c4bfdb6ff4403748944856becc601af 100644 (file)
@@ -22,7 +22,7 @@
   TODO: this doesn't follow standard pattern. Regularize.
  */
 void
-Tie_column::add_tie (Grob*me,Grob *s)
+Tie_column::add_tie (Grob*me, Grob *s)
 {
   if (s->get_parent (Y_AXIS)
       && Tie_column::has_interface (s->get_parent (Y_AXIS)))
@@ -30,8 +30,8 @@ Tie_column::add_tie (Grob*me,Grob *s)
   
   if (!Pointer_group_interface::count (me, ly_symbol2scm ("ties")))
     {
-      dynamic_cast<Spanner*> (me)->set_bound (LEFT, Tie::head (s,LEFT));
-      dynamic_cast<Spanner*> (me)->set_bound (RIGHT, Tie::head (s,RIGHT));
+      dynamic_cast<Spanner*> (me)->set_bound (LEFT, Tie::head (s, LEFT));
+      dynamic_cast<Spanner*> (me)->set_bound (RIGHT, Tie::head (s, RIGHT));
     }
   s->set_parent (me, Y_AXIS);
   Pointer_group_interface::add_grob (me, ly_symbol2scm ("ties"), s);
@@ -88,7 +88,7 @@ Tie_column::old_directions (Grob*me)
   if (ties.size () == 1)
     {
       Grob *  t = ties[0];      
-      set_grob_direction (t,Tie::get_default_dir (t));
+      set_grob_direction (t, Tie::get_default_dir (t));
       return;
     }
   
@@ -152,7 +152,7 @@ Tie_column::werner_directions (Grob *me)
       Grob *  t = ties[0];
       if (t->is_live ()
          && !get_grob_direction (t))
-       set_grob_direction (t,Tie::get_default_dir (t));
+       set_grob_direction (t, Tie::get_default_dir (t));
       return ;
     }
 
@@ -188,7 +188,7 @@ Tie_column::werner_directions (Grob *me)
 }
 
 
-MAKE_SCHEME_CALLBACK (Tie_column,after_line_breaking,1);
+MAKE_SCHEME_CALLBACK (Tie_column, after_line_breaking, 1);
 SCM
 Tie_column::after_line_breaking (SCM smob)
 {
@@ -198,7 +198,7 @@ Tie_column::after_line_breaking (SCM smob)
 
 
 
-ADD_INTERFACE (Tie_column,"tie-column-interface",
+ADD_INTERFACE (Tie_column, "tie-column-interface",
   "Object that sets directions of multiple ties in a tied chord",
   "direction");
 
index 6e8e9d9f8ba07b27b0350c431a277f7867f6822a..e0649feb2dcfd4ed272dea40c411652ac18a178d 100644 (file)
@@ -126,7 +126,7 @@ Tie_engraver::acknowledge_grob (Grob_info i)
 
       if (tie_column_)
        for (int i = ties_.size (); i--;)
-         Tie_column::add_tie (tie_column_,ties_ [i]);
+         Tie_column::add_tie (tie_column_, ties_ [i]);
     }
 }
 
@@ -167,15 +167,15 @@ Tie_engraver::stop_translation_timestep ()
 void
 Tie_engraver::typeset_tie (Grob *her)
 {
-  if (! (Tie::head (her,LEFT) && Tie::head (her,RIGHT)))
+  if (! (Tie::head (her, LEFT) && Tie::head (her, RIGHT)))
     warning (_ ("lonely tie"));
 
   Direction d = LEFT;
   Drul_array<Grob *> new_head_drul;
-  new_head_drul[LEFT] = Tie::head (her,LEFT);
-  new_head_drul[RIGHT] = Tie::head (her,RIGHT);  
+  new_head_drul[LEFT] = Tie::head (her, LEFT);
+  new_head_drul[RIGHT] = Tie::head (her, RIGHT);  
   do {
-    if (!Tie::head (her,d))
+    if (!Tie::head (her, d))
       new_head_drul[d] = Tie::head (her, (Direction)-d);
   } while (flip (&d) != LEFT);
 
index 2bae72cbcb45672f8727f1e4fae2580ec7a76287..c2610d6f6fb00be2aaaf78ccd45457d5b4dbba97 100644 (file)
@@ -38,9 +38,9 @@
 
 
 void
-Tie::set_head (Grob*me,Direction d, Grob * h)
+Tie::set_head (Grob*me, Direction d, Grob * h)
 {
-  assert (!head (me,d));
+  assert (!head (me, d));
   index_set_cell (me->get_property ("head-pair"), d, h->self_scm ());
   
   dynamic_cast<Spanner*> (me)->set_bound (d, h);
@@ -68,8 +68,8 @@ Tie::head (Grob*me, Direction d)
 Real
 Tie::get_position (Grob*me) 
 {
-  Direction d = head (me,LEFT) ? LEFT:RIGHT;
-  return Staff_symbol_referencer::get_position (head (me,d));
+  Direction d = head (me, LEFT) ? LEFT:RIGHT;
+  return Staff_symbol_referencer::get_position (head (me, d));
 }
 
 
@@ -87,8 +87,8 @@ Tie::get_position (Grob*me)
 Direction
 Tie::get_default_dir (Grob*me) 
 {
-  Item * sl =  head (me,LEFT) ? Rhythmic_head::get_stem (head (me,LEFT)) :0;
-  Item * sr =  head (me,RIGHT) ? Rhythmic_head::get_stem (head (me,RIGHT)) :0;  
+  Item * sl =  head (me, LEFT) ? Rhythmic_head::get_stem (head (me, LEFT)) :0;
+  Item * sr =  head (me, RIGHT) ? Rhythmic_head::get_stem (head (me, RIGHT)) :0;  
   if (sl && sr)
     {
       if (get_grob_direction (sl) == UP
@@ -128,9 +128,9 @@ Tie::get_control_points (SCM smob)
 {  
   Spanner*me = unsmob_spanner (smob);
   Direction headdir = CENTER; 
-  if (head (me,LEFT))
+  if (head (me, LEFT))
     headdir = LEFT;
-  else if (head (me,RIGHT))
+  else if (head (me, RIGHT))
     headdir = RIGHT;
   else
     {
@@ -182,7 +182,7 @@ Tie::get_control_points (SCM smob)
   if (Note_head::has_interface (l) && Note_head::has_interface (r))
     {
       width = 
-       + r->extent (commonx,X_AXIS)[LEFT]
+       + r->extent (commonx, X_AXIS)[LEFT]
        - l->extent (commonx, X_AXIS)[RIGHT]
        -2 * x_gap_f;
     }
@@ -204,10 +204,10 @@ Tie::get_control_points (SCM smob)
   SCM details = me->get_property ("details");
 
   SCM lim // groetjes aan de chirurgendochter.
-    = scm_assq (ly_symbol2scm ("height-limit"),details);
+    = scm_assq (ly_symbol2scm ("height-limit"), details);
   
   Real h_inf = scm_to_double (scm_cdr (lim)) *  staff_space;
-  Real r_0 = scm_to_double (scm_cdr (scm_assq (ly_symbol2scm ("ratio"),details)));
+  Real r_0 = scm_to_double (scm_cdr (scm_assq (ly_symbol2scm ("ratio"), details)));
 
   Bezier b  = slur_shape (width, h_inf, r_0);
   
@@ -242,7 +242,7 @@ Tie::get_control_points (SCM smob)
     todo: tie / stem collision
    */
 
-  b = slur_shape (width,h_inf, r_0);
+  b = slur_shape (width, h_inf, r_0);
   b.scale (1, dir);
   b.translate (Offset (left_x, ypos));
   
@@ -256,7 +256,7 @@ Tie::get_control_points (SCM smob)
 
     TODO: doesn't work when on staff with even number of lines.
    */
-  Array<Real> horizontal (b.solve_derivative (Offset (1,0)));
+  Array<Real> horizontal (b.solve_derivative (Offset (1, 0)));
   if (horizontal.size ())
     {
       /*
@@ -319,7 +319,7 @@ Tie::get_control_points (SCM smob)
 }
 
 
-MAKE_SCHEME_CALLBACK (Tie,print,1);
+MAKE_SCHEME_CALLBACK (Tie, print, 1);
 SCM
 Tie::print (SCM smob) 
 {
@@ -354,7 +354,7 @@ Tie::print (SCM smob)
 
 
 
-ADD_INTERFACE (Tie,"tie-interface",
+ADD_INTERFACE (Tie, "tie-interface",
               "A tie connecting two noteheads.\n"
               ,
   "y-offset staffline-clearance control-points head-pair details thickness x-gap direction minimum-length");
index aa2d27655784c4456aeb000f365b8fdb48dcbbce..e217fd900378309cab19e337cba3c17a3533eab4 100644 (file)
@@ -60,8 +60,8 @@ Time_signature_engraver::process_music ()
   
       
       last_time_fraction_ = fr; 
-      time_signature_ = make_item ("TimeSignature",SCM_EOL);
-      time_signature_->set_property ("fraction",fr);
+      time_signature_ = make_item ("TimeSignature", SCM_EOL);
+      time_signature_->set_property ("fraction", fr);
     }
 }
 
index 130c989dad54483dfcf8fc233aecacea6b06ba34..3b499d5ddd87c875b74bf6da684507ae7149a15c 100644 (file)
@@ -48,7 +48,7 @@ Time_signature_performer::create_audio_elements ()
       int b = scm_to_int (scm_car (fr));
       int o = scm_to_int (scm_cdr (fr));
       
-      audio_ = new Audio_time_signature (b,o);
+      audio_ = new Audio_time_signature (b, o);
       Audio_element_info info (audio_, 0);
       announce_element (info);
 
@@ -65,4 +65,4 @@ Time_signature_performer::stop_translation_timestep ()
     }
 }
 
-ADD_TRANSLATOR (Time_signature_performer,"","","","","","");
+ADD_TRANSLATOR (Time_signature_performer, "", "", "", "", "", "");
index d9fdd30b927d0eb8591cb75ac8e2078f16782b42..93717f10e2229c115f444278000a0723311bcff9 100644 (file)
@@ -44,7 +44,7 @@ Time_signature::print (SCM smob)
   else if (scm_is_symbol (st))
     m = special_time_signature (me, st, n, d);
   else
-    m = numbered_time_signature (me, n,d);
+    m = numbered_time_signature (me, n, d);
 
   if (Staff_symbol_referencer::line_count (me) % 2 == 0)
     m.translate_axis (Staff_symbol_referencer::staff_space (me) / 2 , Y_AXIS);
@@ -88,7 +88,7 @@ Time_signature::special_time_signature (Grob *me, SCM scm_style, int n, int d)
 }
 
 Stencil
-Time_signature::numbered_time_signature (Grob*me,int num, int den)
+Time_signature::numbered_time_signature (Grob*me, int num, int den)
 {
   SCM chain = me->get_property_alist_chain (Font_interface::text_font_alist_chain (me));
   chain = scm_cons (scm_list_1 (scm_cons (ly_symbol2scm ("font-encoding"),
@@ -109,7 +109,7 @@ Time_signature::numbered_time_signature (Grob*me,int num, int den)
   if (den)
     {
       m.add_at_edge (Y_AXIS, UP, n, 0.0, 0);
-      m.add_at_edge (Y_AXIS, DOWN, d, 0.0,0);
+      m.add_at_edge (Y_AXIS, DOWN, d, 0.0, 0);
     }
   else
     {
index f5a57d158d175b8b5ee22b7c146cfde5aedc4d63..16c7b6d2bb56f10f697398bc6b70cea18a889873 100644 (file)
@@ -59,7 +59,7 @@ Timing_translator::initialize ()
     context.
    */
   context ()->set_property ("measureLength", Moment (Rational (1)).smobbed_copy ());
-  context ()->set_property ("beatLength", Moment (Rational (1,4)).smobbed_copy ());
+  context ()->set_property ("beatLength", Moment (Rational (1, 4)).smobbed_copy ());
 }
 
 Rational
@@ -156,4 +156,4 @@ ADD_TRANSLATOR (Timing_translator,
                   "@code{Timing} to its containing context."
                   ,
 
-                  "","","","","");
+                  "", "", "", "", "");
index 9660015046a601db3f62d8991ee91e693c9e5372..c580060457bff77e07b6d4251fa3fb31089e352f 100644 (file)
@@ -16,7 +16,7 @@
 
 Scheme_hash_table *global_translator_dict = 0;
 
-LY_DEFINE (get_all_translators,"ly:get-all-translators", 0, 0, 0,  (),
+LY_DEFINE (get_all_translators, "ly:get-all-translators", 0, 0, 0,  (),
          "Return a list of all translator objects that may be instantiated. "
           )
 {
index ed5503a62e35a989aff542bbf17b278598f65c71..edd659db80279decd9fd6aa760115f69bbdf98c0 100644 (file)
@@ -22,7 +22,7 @@ LY_DEFINE (ly_translator_name, "ly:translator-name",
 }
 
 LY_DEFINE (ly_translator_description, "ly:translator-description",
-         1,0,0, (SCM me),
+         1, 0, 0, (SCM me),
          "Return an alist of properties of  translator @var{me}.")
 {
   Translator *tr = unsmob_translator (me);
index 16f36f0ddbac3efada95aba9482554d9e518d5c4..af72ca083a723697ec0d3820b2e51533862f10ea 100644 (file)
@@ -156,7 +156,7 @@ Translator::static_translator_description ()const
 
 IMPLEMENT_SMOBS (Translator);
 IMPLEMENT_DEFAULT_EQUAL_P (Translator);
-IMPLEMENT_TYPE_P (Translator,"ly:translator?");
+IMPLEMENT_TYPE_P (Translator, "ly:translator?");
 
 bool
 Translator::must_be_last () const
index 3f987e9ca074e20bd287ee34ae0ac708a1f64e13..380a5f43637dde5470f42f920f85d0882bcc07b5 100644 (file)
@@ -101,7 +101,7 @@ Tuplet_bracket::parallel_beam (Grob *me, Link_array<Grob> const &cols, bool *equ
   follow beam precisely for determining tuplet number location.
   
  */
-MAKE_SCHEME_CALLBACK (Tuplet_bracket,print,1);
+MAKE_SCHEME_CALLBACK (Tuplet_bracket, print, 1);
 SCM
 Tuplet_bracket::print (SCM smob) 
 {
@@ -153,7 +153,7 @@ Tuplet_bracket::print (SCM smob)
   else if (numb == ly_symbol2scm ("if-no-beam"))
     number_visibility = !par_beam;
        
-  Grob * commonx = columns[0]->common_refpoint (columns.top (),X_AXIS);
+  Grob * commonx = columns[0]->common_refpoint (columns.top (), X_AXIS);
 
   /*
     Tuplet brackets are normally not broken, but we shouldn't crash if
@@ -239,7 +239,7 @@ Tuplet_bracket::print (SCM smob)
     }
   
   mol.translate_axis (ly, Y_AXIS);
-  mol.translate_axis (x0  - sp->get_bound (LEFT)->relative_coordinate (commonx,X_AXIS),X_AXIS);
+  mol.translate_axis (x0  - sp->get_bound (LEFT)->relative_coordinate (commonx, X_AXIS), X_AXIS);
   return mol.smobbed_copy ();
 }
 
@@ -250,7 +250,7 @@ Tuplet_bracket::print (SCM smob)
   brackets.
  */
 Stencil
-Tuplet_bracket::make_bracket (Grob *me,        // for line properties.
+Tuplet_bracket::make_bracket (Grob *me,        // for line properties.
                              Axis protusion_axis,
                              Offset dz,
                              Drul_array<Real> height,
@@ -258,7 +258,7 @@ Tuplet_bracket::make_bracket (Grob *me,     // for line properties.
                              Drul_array<Real> flare,
                              Drul_array<Real> shorten)
 {
-  Drul_array<Offset> corners (Offset (0,0), dz);
+  Drul_array<Offset> corners (Offset (0, 0), dz);
   
   Real length = dz.length ();
   Drul_array<Offset> gap_corners;
@@ -275,7 +275,7 @@ Tuplet_bracket::make_bracket (Grob *me,     // for line properties.
 
 
   if (gap.is_empty())
-    gap = Interval (0,0);
+    gap = Interval (0, 0);
   do {
     gap_corners[d] = (dz * 0.5) + gap[d] / length * dz;
   } while (flip (&d) != LEFT);
@@ -413,7 +413,7 @@ Tuplet_bracket::calc_position_and_height (Grob*me, Real *offset, Real * dy)
 /*
   We depend on the beams if there are any.
  */
-MAKE_SCHEME_CALLBACK (Tuplet_bracket,before_line_breaking,1);
+MAKE_SCHEME_CALLBACK (Tuplet_bracket, before_line_breaking, 1);
 SCM
 Tuplet_bracket::before_line_breaking (SCM smob)
 {
@@ -432,7 +432,7 @@ Tuplet_bracket::before_line_breaking (SCM smob)
   return SCM_UNSPECIFIED;
 }
 
-MAKE_SCHEME_CALLBACK (Tuplet_bracket,after_line_breaking,1);
+MAKE_SCHEME_CALLBACK (Tuplet_bracket, after_line_breaking, 1);
 
 SCM
 Tuplet_bracket::after_line_breaking (SCM smob)
@@ -470,7 +470,7 @@ Tuplet_bracket::after_line_breaking (SCM smob)
   if (!par_beam
       || get_grob_direction (par_beam) != dir)
     {
-      calc_position_and_height (me,&offset,&dy);
+      calc_position_and_height (me, &offset, &dy);
     }
   else
     {
@@ -517,7 +517,7 @@ Tuplet_bracket::after_line_breaking (SCM smob)
 Direction
 Tuplet_bracket::get_default_dir (Grob*me)
 {
-  Drul_array<int> dirs (0,0);  
+  Drul_array<int> dirs (0, 0);  
   for (SCM s = me->get_property ("note-columns"); scm_is_pair (s); s = scm_cdr (s))
     {
       Grob * nc = unsmob_grob (scm_car (s));
index 1e3f05b9c60abfabf27253bcb7f7d063c394f17c..da5ca742c1418f6ca04428da9a7da2a83524a511 100644 (file)
@@ -13,7 +13,7 @@
 #include "object-key-undumper.hh"
 
 LY_DEFINE(ly_clear_tweak_registry, "ly:tweak-clear-registry",
-         0,0,0,(),
+         0, 0, 0, (),
          "Clear global tweak registry"
          )
 {
@@ -22,7 +22,7 @@ LY_DEFINE(ly_clear_tweak_registry, "ly:tweak-clear-registry",
 }
 
 LY_DEFINE(ly_insert_tweak, "ly:insert-tweak",
-         2,0,0,
+         2, 0, 0,
          (SCM grob, SCM tweak),
          "add new tweak for grob."
          )
@@ -39,7 +39,7 @@ LY_DEFINE(ly_insert_tweak, "ly:insert-tweak",
 
 
 LY_DEFINE(ly_tweak_read_keys, "ly:tweak-define-keys",
-         1,0,0,(SCM keys),
+         1, 0, 0, (SCM keys),
          "Read keys"
          )
 {
@@ -49,7 +49,7 @@ LY_DEFINE(ly_tweak_read_keys, "ly:tweak-define-keys",
 
 
 LY_DEFINE(ly_all_tweaks, "ly:all-tweaks",
-         0,0,0,(),
+         0, 0, 0, (),
          "all tweaks"
          )
 {
@@ -58,7 +58,7 @@ LY_DEFINE(ly_all_tweaks, "ly:all-tweaks",
 
 
 LY_DEFINE(ly_tweak_read_tweaks, "ly:tweak-define-tweaks",
-         1,0,0,(SCM tweaks),
+         1, 0, 0, (SCM tweaks),
          "Read  tweaks"
          )
 {
index c92f02219d5d1363c4432d853bfbfea625596a41..f44c5627a549b41ea4ec0a99d82d962c664911a6 100644 (file)
@@ -240,7 +240,7 @@ vaticana_brew_primitive (Grob *me)
       Real staff_space = Staff_symbol_referencer::staff_space (me);
       Real flexa_width  = robust_scm2double ( me->get_property ("flexa-width"), 2)  *staff_space;
       out =
-       Lookup::blank (Box (Interval (0, 0.5*flexa_width), Interval (0,0)));
+       Lookup::blank (Box (Interval (0, 0.5*flexa_width), Interval (0, 0)));
     }
   else if (!String::compare (glyph_name, "flexa"))
     {
index b4a94f95d7a42ea76a50527dbc770b894957a226..fd2a65bec7a01c50726d6a56b9a0f371f27bd836 100644 (file)
@@ -36,7 +36,7 @@ Vertical_align_engraver::process_music ()
   if (!valign_)
     {
       valign_ = make_spanner ("VerticalAlignment", SCM_EOL);
-      valign_->set_bound (LEFT,unsmob_grob (get_property ("currentCommandColumn")));
+      valign_->set_bound (LEFT, unsmob_grob (get_property ("currentCommandColumn")));
     }
 }
 
@@ -45,7 +45,7 @@ Vertical_align_engraver::finalize ()
 {
   if (valign_)
     {
-      valign_->set_bound (RIGHT,unsmob_grob (get_property ("currentCommandColumn")));
+      valign_->set_bound (RIGHT, unsmob_grob (get_property ("currentCommandColumn")));
       valign_ = 0;
     }
 }
@@ -64,7 +64,7 @@ Vertical_align_engraver::acknowledge_grob (Grob_info i)
 {
   if (qualifies (i))
     {
-      Align_interface::add_element (valign_,i.grob_, get_property ("verticalAlignmentChildCallback"));
+      Align_interface::add_element (valign_, i.grob_, get_property ("verticalAlignmentChildCallback"));
     }
 }
 
index be6e49186920acf8d88da2a22b5c6255a287c579..3ef1ae950850de3c4753008582e52dac06bab45d 100644 (file)
@@ -30,7 +30,7 @@
   
 */
 
-MAKE_SCHEME_CALLBACK (Volta_bracket_interface,print,1);
+MAKE_SCHEME_CALLBACK (Volta_bracket_interface, print, 1);
 SCM
 Volta_bracket_interface::print (SCM smob) 
 {
@@ -55,8 +55,8 @@ Volta_bracket_interface::print (SCM smob)
   
   const char* cs = str.to_str0 ();
   no_vertical_end |=
-    (strcmp (cs,":|")!= 0 && strcmp (cs,"|:")!= 0 && strcmp (cs,"|.")!= 0
-     && strcmp (cs,":|:")!= 0 && strcmp (cs,".|")!= 0);
+    (strcmp (cs, ":|")!= 0 && strcmp (cs, "|:")!= 0 && strcmp (cs, "|.")!= 0
+     && strcmp (cs, ":|:")!= 0 && strcmp (cs, ".|")!= 0);
 
   Output_def * layout = me->get_layout ();
   Real half_space = 0.5;
@@ -83,14 +83,14 @@ Volta_bracket_interface::print (SCM smob)
   Real w = dynamic_cast<Spanner*> (me)->spanner_length () - left - half_space;
   Real h =  robust_scm2double (me->get_property ("height"), 1);
 
-  Stencil start,end ;
+  Stencil start, end ;
   if (!no_vertical_start)
-    start = Line_interface::line (me, Offset (0,0), Offset (0, h)); 
+    start = Line_interface::line (me, Offset (0, 0), Offset (0, h)); 
   
   if (!no_vertical_end)
-    end = Line_interface::line (me, Offset (w, 0), Offset (w,h));
+    end = Line_interface::line (me, Offset (w, 0), Offset (w, h));
 
-  Stencil mol = Line_interface::line (me, Offset (0, h), Offset (w,h));
+  Stencil mol = Line_interface::line (me, Offset (0, h), Offset (w, h));
   mol.add_stencil (start);
   mol.add_stencil (end);
 
@@ -113,17 +113,17 @@ void
 Volta_bracket_interface::add_bar (Grob *me, Item* b)
 {
   Pointer_group_interface::add_grob (me, ly_symbol2scm ("bars"), b);
-  Side_position_interface::add_support (me,b);
+  Side_position_interface::add_support (me, b);
   add_bound_item (dynamic_cast<Spanner*> (me), b); 
 }
 
 void
 Volta_bracket_interface::add_column (Grob*me, Grob* c)
 {
-  Side_position_interface::add_support (me,c);
+  Side_position_interface::add_support (me, c);
 }
 
-ADD_INTERFACE (Volta_bracket_interface,"volta-bracket-interface",
+ADD_INTERFACE (Volta_bracket_interface, "volta-bracket-interface",
               "Volta bracket with number",
               "bars thickness height");
 
index 161f353697865b5caaa7951f0625c9fb94c0bdbb..41757b4ef275a41c7bd2b0b8d17d0cb03bd93b25 100644 (file)
@@ -181,7 +181,7 @@ Volta_engraver::acknowledge_grob (Grob_info i)
       if (Note_column::has_interface (item))
        {
          if (volta_span_)
-           Volta_bracket_interface::add_column (volta_span_,item);
+           Volta_bracket_interface::add_column (volta_span_, item);
        }
       if (Bar_line::has_interface (item))
        {
index 1d0d9d312b646133f784356e838cb745c8fe9231..b96bcbfe89573a8939034464e563ab0d058c7287 100644 (file)
@@ -418,8 +418,6 @@ of beat groupings "
   (let ((es (ly:music-property m 'elements))
        (e (ly:music-property m 'element)))
 
-    (display (ly:music-property m 'name))
-    
     (if (pair? es)
        (set! (ly:music-property m 'elements) (map voicify-music es)))
     (if (ly:music? e)