]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/accidental-placement.cc (position_accidentals): bugfix in
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 8 Mar 2004 16:17:42 +0000 (16:17 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 8 Mar 2004 16:17:42 +0000 (16:17 +0000)
offset, this fixes right-padding of AccidentalPlacement.

* Documentation/user/tutorial.itely (An orchestral part): more
fixes for the tutorial.

* lily/parser.yy (context_def_spec_block): use \context instead of
\translator.

* Documentation/user/tutorial.itely (Automatic and manual beams):
editing of tutorial.

159 files changed:
ChangeLog
Documentation/user/invoking.itexi
Documentation/user/lilypond.tely
Documentation/user/music-glossary.tely
Documentation/user/notation.itely
Documentation/user/tutorial.itely
VERSION
lily/accidental-placement.cc
lily/horizontal-bracket-engraver.cc
lily/hyphen-engraver.cc
lily/identifier-smob.cc
lily/input-file-results.cc
lily/input-smob.cc
lily/instrument-name-engraver.cc
lily/item.cc
lily/key-engraver.cc
lily/key-performer.cc
lily/kpath.cc
lily/ligature-bracket-engraver.cc
lily/ligature-engraver.cc
lily/lily-guile.cc
lily/line-interface.cc
lily/line-spanner.cc
lily/lookup.cc
lily/ly-module.cc
lily/lyric-combine-music-iterator.cc
lily/lyric-engraver.cc
lily/lyric-extender.cc
lily/lyric-hyphen.cc
lily/lyric-performer.cc
lily/main.cc
lily/mark-engraver.cc
lily/measure-grouping-engraver.cc
lily/measure-grouping-spanner.cc
lily/melisma-translator.cc
lily/mensural-ligature-engraver.cc
lily/mensural-ligature.cc
lily/metronome-engraver.cc
lily/midi-item.cc
lily/midi-walker.cc
lily/moment.cc
lily/multi-measure-rest-engraver.cc
lily/multi-measure-rest.cc
lily/music-iterator.cc
lily/music-wrapper-iterator.cc
lily/my-lily-lexer.cc
lily/my-lily-parser.cc
lily/new-fingering-engraver.cc
lily/new-lyric-combine-music-iterator.cc
lily/note-collision.cc
lily/note-head-line-engraver.cc
lily/note-head.cc
lily/note-heads-engraver.cc
lily/note-name-engraver.cc
lily/note-performer.cc
lily/note-spacing.cc
lily/ottava-bracket.cc
lily/ottava-engraver.cc
lily/output-property-engraver.cc
lily/output-property-music-iterator.cc
lily/paper-column.cc
lily/paper-score.cc
lily/parse-scm.cc
lily/parser.yy
lily/part-combine-engraver.cc
lily/part-combine-iterator.cc
lily/percent-repeat-engraver.cc
lily/percent-repeat-item.cc
lily/percent-repeat-iterator.cc
lily/performer-group-performer.cc
lily/phrasing-slur-engraver.cc
lily/piano-pedal-bracket.cc
lily/piano-pedal-engraver.cc
lily/piano-pedal-performer.cc
lily/pitch-squash-engraver.cc
lily/property-iterator.cc
lily/quote-iterator.cc
lily/recording-group-engraver.cc
lily/relative-octave-check.cc
lily/repeat-acknowledge-engraver.cc
lily/repeated-music.cc
lily/rest-collision-engraver.cc
lily/rest-engraver.cc
lily/rest.cc
lily/rhythmic-column-engraver.cc
lily/scm-hash.cc
lily/scm-option.cc
lily/score-context.cc
lily/score-engraver.cc
lily/score-performer.cc
lily/score.cc
lily/script-column-engraver.cc
lily/script-engraver.cc
lily/separating-group-spanner.cc
lily/separating-line-group-engraver.cc
lily/sequential-iterator.cc
lily/sequential-music-iterator.cc
lily/simple-spacer.cc
lily/simultaneous-music-iterator.cc
lily/simultaneous-music.cc
lily/skyline.cc
lily/slash-repeat-engraver.cc
lily/slur-engraver.cc
lily/slur-performer.cc
lily/slur.cc
lily/source-file.cc
lily/spacing-engraver.cc
lily/spacing-spanner.cc
lily/span-arpeggio-engraver.cc
lily/span-bar-engraver.cc
lily/span-dynamic-performer.cc
lily/spanner.cc
lily/spring-smob.cc
lily/staff-collecting-engraver.cc
lily/staff-performer.cc
lily/staff-spacing.cc
lily/staff-symbol-engraver.cc
lily/staff-symbol.cc
lily/stanza-number-align-engraver.cc
lily/stanza-number-engraver.cc
lily/stem-engraver.cc
lily/stem-tremolo.cc
lily/stem.cc
lily/stencil-scheme.cc
lily/string-number-engraver.cc
lily/swallow-engraver.cc
lily/swallow-perf.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-engraver.cc
lily/text-spanner.cc
lily/tie-engraver.cc
lily/tie-performer.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-group.cc
lily/translator.cc
lily/tuplet-bracket.cc
lily/tuplet-engraver.cc
lily/type-swallow-translator.cc
lily/un-relativable-music.cc
lily/unfolded-repeat-iterator.cc
lily/untransposable-music.cc
lily/vaticana-ligature-engraver.cc
lily/vaticana-ligature.cc
lily/vertical-align-engraver.cc
lily/virtual-font-metric.cc
lily/volta-bracket.cc
lily/volta-engraver.cc
scm/define-grobs.scm

index 63b1f1cc53c55291c30792418d8245680855f851..e8d0440d66493d1d917c49db40b4925d7899aebb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2004-03-08  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * lily/accidental-placement.cc (position_accidentals): bugfix in
+       offset, this fixes right-padding of AccidentalPlacement.
+
+       * lily/[h-z]*.cc:  () formatting.
+
+       * Documentation/user/tutorial.itely (An orchestral part): more
+       fixes for the tutorial.
+
        * scm/translation-functions.scm (fraction-tuplet-formatter):
        reverse fraction.
 
index 1b3b612bc6cfdb51cc4500878e855f4f5669feaf..67420e265e8e44376f9fde72f29691cc7b0441da 100644 (file)
@@ -230,6 +230,20 @@ they will each be processed independently.  @footnote{The status of
   GUILE is not reset across invocations, so be careful not to change any
   system defaults from within Scheme.}
 
+We strongly advise against making LilyPond formatting available
+through a webserver. That is, processing input from untrusted users,
+and returning the resulting PDF file. LilyPond is a big and complex
+program. It was not written with security in mind. Making it available
+to the outside world is a huge risk; consider the security
+implications of
+
+@verbatim
+  #(system "rm -rf /")
+  \score {
+    c4^#(ly:export (ly:gulp-file "/etc/passwd"))
+  }
+@end verbatim
+
 
 @section Command line options
 
index 7c6ecbe512a259b173df0f81af1eb68a12fa9371..b3bf557a5feb99527d43b4c839637820087225fd 100644 (file)
@@ -42,12 +42,14 @@ Distributions will want to install lilypond.info in postinstall, doing:
 
 HINTS FOR STYLE
 
+* Try not to use punctuation between introductocing sentence and
+display material (verbatim, music, example code).
+
 * don't refer to LilyPond in the text. The reader knows what the
 manual is about
 
 * if you do, capitalization is LilyPond.
 
-
 * don't explicitly refer to the reader/user.  There is no one else
 besides the reader and the writer.
 
index bbaac5066664fd612d6e8247cc4ab57d50e05254..95479cfe33659f9ad46d1b6ef63b99ab992ba005 100644 (file)
@@ -844,6 +844,35 @@ FI: avain, nuottiavain.
 
 @aref{C clef}, @aref{F clef}, @aref{G clef}.
 
+@aitem{cluster}
+
+A @emph{cluster} is a range of simultaneously sounding pitches that
+may change over time.  The set of available pitches to apply usually
+depends on the acoustic source.  Thus, in piano music, a cluster
+typically consists of a continuous range of the semitones as provided
+by the piano's fixed set of a chromatic scale.  In choral music, each
+singer of the choir typically may sing an arbitrary pitch within the
+cluster's range that is not bound to any diatonic, chromatic or other
+scale.  In electronic music, a cluster (theoretically) may even cover
+a continuous range of pitches, thus resulting in colored noise, such
+as pink noise.
+
+Clusters can be denoted in the context of ordinary staff notation by
+engraving simple geometrical shapes that replace ordinary notation of
+notes.  Ordinary notes as musical events specify starting time and
+duration of pitches; however, the duration of a note is expressed by
+the shape of the note head rather than by the horizontal graphical
+extent of the note symbol.  In contrast, the shape of a cluster
+geometrically describes the development of a range of pitches
+(vertical extent) over time (horizontal extent).  Still, the
+geometrical shape of a cluster covers the area in which any single
+pitch contained in the cluster would be notated as an ordinary note.
+
+@lilypond[relative=1,verbatim]
+    \apply #notes-to-clusters {  <c e > <b f'> <b g'> <c g> <f e>  }
+@end lilypond
+
+
 @aitem{comma}
 I: comma,
 F: comma,
index 786549989d492338a2900bf18545757c0d103cfd..56cd96aed7e9f094f04fc8b29bf2d2975e6610e5 100644 (file)
@@ -10,7 +10,7 @@
 
 This chapter describes all the different types of notation supported
 by LilyPond. It is intended as a reference for users that are already
-somewhat familiar with using LilyPond.
+somewhat familiar with LilyPond.
 
 @menu
 * Note entry::                  
@@ -39,9 +39,8 @@ somewhat familiar with using LilyPond.
 @section Note entry
 @cindex Note entry
 
-The basic elements of any piece of music are the notes. This section
-is about basic notation elements notes, rests and related constructs,
-such as stems, tuplets and ties.
+This section is about basic notation elements notes, rests and
+related constructs, such as stems, tuplets and ties.
 
 @menu
 * Notes::                       
@@ -82,8 +81,8 @@ this manual.}
 @cindex entering notes
 
 The most common syntax for pitch entry is used in @code{\chords} and
-@code{\notes} mode.  In Note and Chord mode, pitches may be designated
-by names.  The notes are specified by the letters @code{a} through
+@code{\notes} mode.  In these modes, pitches may be designated by
+names.  The notes are specified by the letters @code{a} through
 @code{g}, while the octave is formed with notes ranging from @code{c}
 to @code{b}.  The pitch @code{c} is an octave below middle C and the
 letters span the octave above that C:
@@ -189,9 +188,17 @@ question mark `@code{?}' after the pitch:
 @end lilypond
 
 
+@seealso
+
 The automatic production of accidentals can be tuned in many
 ways. For more information, refer to @ref{Accidentals}.
 
+
+@refbugs
+
+There are no generally accepted standards for denoting three quarter
+flats, so LilyPond's symbol does not conform to any standard.
+
 @node Chords
 @subsection Chords
 
@@ -199,6 +206,9 @@ A chord is formed by a enclosing a set of pitches in @code{<} and
 @code{>}. A chord may be followed by  a duration, and a set of
 articulations, just like simple notes.
 
+@lilypond[relative]
+ <c e g>4 <c>8 <>8 
+@end lilypond
 
 @node Rests
 @subsection Rests
@@ -214,7 +224,7 @@ r1 r2 r4 r8
 @end lilypond
 
 Whole bar rests, centered in middle of the bar,
-must be done  with multi measure rests. They are discussed in
+must be done  with multi-measure rests. They are discussed in
 @ref{Multi measure rests}.
 
 
@@ -300,17 +310,19 @@ r1 r2 r4 r8 r16 r32 r64 r64
 @lilypond[noindent]
 \score {
   \notes \relative c'' {
-    a\breve  \autoBeamOff
+    a\breve*1/2  \autoBeamOff
     a1 a2 a4 a8 a16 a32 a64 a64 
-    r\longa r\breve  
+    r\longa*1/4 r\breve  *1/2
     r1 r2 r4 r8 r16 r32 r64 r64 
   }
   \paper {
+    raggedright = ##t
     \context {
       \StaffContext
         \remove "Clef_engraver"
         \override StaffSymbol #'transparent = ##t 
-        \override TimeSignature #'transparent = ##t 
+        \override TimeSignature #'transparent = ##t
+        \override BarLine #'transparent = ##t
         \consists "Pitch_squash_engraver"
     }
   }
@@ -799,7 +811,6 @@ The key signature indicates the scale in which a piece is played. It
 is denoted by a set of alterations (flats or sharps) at the start of
 the staff.
 
-@syntax
 
 Setting or changing the key signature is done with the @code{\key}
 command:
@@ -851,7 +862,6 @@ Internals: @internalsref{KeyChangeEvent}, and @internalsref{KeySignature}.
 The clef indicates which lines of the staff correspond to which
 pitches.
 
-@syntax
 
 The clef can be set or changed with the @code{\clef} command:
 @lilypond[fragment,verbatim]
@@ -972,7 +982,6 @@ Time signature indicates the metrum of a piece: a regular pattern of
 strong and weak beats. It is denoted by a fraction at the start of the
 staff.
 
-@syntax
 
 The time signature is set or changed by the @code{\time}
 command:
@@ -1082,7 +1091,6 @@ Bar lines delimit measures, but are also used to indicate repeats.
 Normally, they are inserted automatically.  Line breaks may only
 happen on bar lines.
 
-@syntax
 
  Special types
 of bar lines can be forced with the @code{\bar} command:
@@ -1746,7 +1754,6 @@ for the problematic notes.
 
 A slur indicates that notes are to be played bound or @emph{legato}.
 
-@syntax
 
 They are entered using parentheses:
 @lilypond[relative=1,fragment,verbatim]
@@ -2312,7 +2319,6 @@ and might produce crashes or other errors.
 A glissando is a smooth change in pitch. It is denoted by a line or a
 wavy line between two notes.
 
-@syntax
 
 A glissando line can be requested by attaching a @code{\glissando} to
 a note:
@@ -2491,7 +2497,6 @@ Make beat or measure repeats. These look like percent signs.
 @node Repeat syntax
 @subsection Repeat syntax
 
-@syntax
 
 LilyPond has one syntactic construct for specifying different types of
 repeats.  The syntax is
@@ -2733,7 +2738,6 @@ Examples: @inputfileref{input/regression,rhythmic-staff.ly}.
 @cindex percussion
 @cindex drums
 
-@syntax
 
 Percussion notes may be entered in @code{\drums} mode, which is
 similar to @code{notes}.  Each piece of percussion has a full name and
@@ -3075,7 +3079,6 @@ current voice from its current staff to the Staff called
 Pianos have pedals that alter the way sound are produced. Generally, a
 piano has three pedals, sustain, una corda, and sostenuto.
 
-@syntax
 
 Piano pedal instruction can be expressed by attaching
 @code{\sustainDown}, @code{\sustainUp}, @code{\unaCorda},
@@ -4324,7 +4327,6 @@ The key of a transposing instrument can also be specified.  This
 applies to many wind instruments, for example, clarinets (B-flat, A and
 E-flat), horn (F) and trumpet (B-flat, C, D and E-flat).
 
-@syntax
 
 The transposition is entered after the keyword @code{\transposition}:
 
@@ -4446,7 +4448,6 @@ places where the two parts differ, they are typeset as separate
 voices, and stem directions are set automatically.  Also, solo and
 @emph{a due} parts are identified and can be marked.
 
-@syntax
 
 The syntax for part combining is
 
@@ -4752,7 +4753,6 @@ Augmentum dots within ligatures are  not handled correctly.
 
 @cindex note heads
 
-@syntax
 
 For ancient notation, a note head style other than the @code{default}
 style may be chosen.  This is accomplished by setting the @code{style}
@@ -4797,7 +4797,6 @@ overview over all available note head styles.
 
 @cindex accidentals
 
-@syntax
 
 Use the @code{style} property of grob @internalsref{Accidental} to
 select ancient accidentals.   Supported styles are
@@ -4873,7 +4872,6 @@ Examples: @inputfileref{input/test,ancient-accidentals.ly}.
 
 @cindex rests
 
-@syntax
 
 Use the @code{style} property of grob @internalsref{Rest} to select
 ancient accidentals.   Supported styles are @code{classical},
@@ -4909,7 +4907,6 @@ In this manual: @ref{Rests} gives a general introduction into the use of rests.
 
 @cindex clefs
 
-@syntax
 
 LilyPond supports a variety of clefs, many of them ancient.
 
@@ -5129,7 +5126,6 @@ until a new mensural g clef will have been implemented.
 
 @cindex flags
 
-@syntax
 
 Use the @code{flag-style} property of grob @internalsref{Stem} to
 select ancient flags.  Besides the @code{default} flag style,
@@ -5172,7 +5168,6 @@ Gregorian Chant notation.
 
 @cindex time signatures
 
-@syntax
 
 There is limited support for mensural time signatures.   The
 glyphs are hard-wired to particular time fractions.  In other words,
@@ -5285,7 +5280,6 @@ of musical notation such as contemporary editions of Gregorian chant
 like the @emph{editio vaticana}.  There are different custos glyphs
 used in different flavors of notational style.
 
-@syntax
 
 For typesetting custodes, just put a @internalsref{Custos_engraver} into the
 @internalsref{Staff} context when declaring the @code{\paper} block,
@@ -5415,7 +5409,6 @@ can be characterized as short, medium and long pause, somewhat like
 a chant, but is also frequently used within a single
 antiphonal/responsorial chant to mark the end of each section.
 
-@syntax
 
 To use divisiones, include the file @code{gregorian-init.ly}.  It
 contains definitions that you can apply by just inserting
@@ -5479,7 +5472,6 @@ during the late 16th / early 17th century.  Still, ligatures have
 survived in contemporary editions of Gregorian chant such as the
 Editio Vaticana from 1905/08.
 
-@syntax
 
 Syntactically, ligatures are simply enclosed by @code{\[} and
 @code{\]}.  Some ligature styles (such as Editio Vaticana) may need
@@ -5519,7 +5511,6 @@ implementation is still experimental; it may output strange
 warnings or even crash in some cases or produce weird results on more
 complex ligatures.
 
-@syntax
 
 To engrave white mensural ligatures, in the paper block the
 @internalsref{Mensural_ligature_engraver} has to be put into the
@@ -6974,7 +6965,6 @@ volume of the Antiphonale Romanum (@emph{Liber Hymnarius}), published
 
 @end multitable
 
-@syntax
 
 Unlike most other neumes notation systems, the input language for
 neumes does not necessarily reflect directly the typographical
@@ -7265,7 +7255,6 @@ Trigonus: apply equal spacing, regardless of pitch.
 
 @c TODO: musicological blurb about FB
 
-@syntax
 
 LilyPond has limited support for figured bass:
 
@@ -7392,34 +7381,10 @@ support for contemporary notation in LilyPond is limited.
 
 @cindex cluster
 
-In musical terminology, a @emph{cluster} denotes a range of
-simultaneously sounding pitches that may change over time.  The set of
-available pitches to apply usually depends on the acoustic source.
-Thus, in piano music, a cluster typically consists of a continuous range
-of the semitones as provided by the piano's fixed set of a chromatic
-scale.  In choral music, each singer of the choir typically may sing an
-arbitrary pitch within the cluster's range that is not bound to any
-diatonic, chromatic or other scale.  In electronic music, a cluster
-(theoretically) may even cover a continuous range of pitches, thus
-resulting in colored noise, such as pink noise.
-
-Clusters can be denoted in the context of ordinary staff notation by
-engraving simple geometrical shapes that replace ordinary notation of
-notes.  Ordinary notes as musical events specify starting time and
-duration of pitches; however, the duration of a note is expressed by the
-shape of the note head rather than by the horizontal graphical extent of
-the note symbol.  In contrast, the shape of a cluster geometrically
-describes the development of a range of pitches (vertical extent) over
-time (horizontal extent).  Still, the geometrical shape of a cluster
-covers the area in which any single pitch contained in the cluster would
-be notated as an ordinary note.  From this point of view, it is
-reasonable to specify a cluster as the envelope of a set of notes.
-
-@syntax
-
-A cluster is engraved as the envelope of a set of
-cluster-notes. Cluster notes are created by applying the function
-@code{notes-to-clusters} to a sequence of chords, e.g.
+A cluster indicates a continuous range of pitches to be played.  They
+can be denoted as the envelope of a set of notes.  They are entered by
+applying the function @code{notes-to-clusters} to a sequence of
+chords, e.g.
 @c
 @lilypond[relative=1,verbatim]
     \apply #notes-to-clusters {  <c e > <b f'>  }
index dada5aa99438f2637cd1afed5ac2a0037bdd0340..49fb778ddc60d997b36d37e2711864aff1f54064 100644 (file)
@@ -78,23 +78,24 @@ your first sheets of music.
 @node First steps
 @section First steps
 
-We start off by showing how very simple music is entered in LilyPond.
-A note is entered by typing its name, from @samp{a} through @samp{g},
-and a number.  So, if you enter
-
+The first example demonstrates how to enter the very simple piece of
+music, a scale.  A note can be entered by typing its name, from
+@samp{a} through @samp{g}.  So, if you enter
 @example
-c4 d4 e4 f4
+c d e f g a b
 @end example
 
 @noindent
-then the result looks like this:
+the result looks like this:
 
 @lilypond[notime,relative]
-c4 d4 e4 f4
+c d e f g a b
 @end lilypond
 
-The number specifies the length of the note, @samp{1} for a
-@rglos{whole note}, @samp{2} for a @rglos{half note}, and so on:
+The duration of a note is specfied by a number after the note name.
+@samp{1} for a @rglos{whole note}, @samp{2} for a @rglos{half note},
+and so on
 
 @example
 a1 a2 a4 a16 a32
@@ -106,16 +107,16 @@ a1 a2 a4 a16 a32
 \transpose c c' { a1 a2 a4 a16 a32 s16_" " }
 @end lilypond
 
-If you do not specify a @rglos{duration}, the the first note is a
-quarter, and for others, the last entered duration is used.
+If you do not specify a @rglos{duration}, then the duration last
+entered is used, and the first note will be a quarter
 
 @example
-a4 a a2 a
+a a8 a a2 a
 @end example
 
 @lilypond[notime]
 \set Score.timing = ##f
-\transpose c c' { a a a2 a s16_" " }
+\transpose c c' { a a8 a a2 a s16_" " }
 @end lilypond
 
 
@@ -174,8 +175,8 @@ s16_" "
 The @rglos{clef} can be set using the @code{\clef} command:
 
 @c what is more common name treble or violin?
-@c in Dutch, it's violin.
-@c in English it's definitely treble.
+@c in Dutch, it is violin.
+@c in English it is definitely treble.
 @example
 \clef treble
 \clef bass
@@ -1004,11 +1005,11 @@ keyword @code{\appoggiatura} or @code{\acciaccatura}
 
 For more information on
 @table @asis
-@item  grace notes
+@item  Grace notes
 see @ref{Grace notes},
-@item tuplets
+@item Tuplets
 see @ref{Tuplets},
-@item upsteps 
+@item Pickups
 see @ref{Partial measures}.
 @end table
 
@@ -1052,24 +1053,37 @@ for comments:
 
 @cindex Lyrics
 @cindex Songs
-Lyrics are entered by separating each syllable with a space, and
-surrounding them with @code{\lyrics @{ @dots{} @}}, for example,
+Lyrics are entered by separating each syllable with a space,
+
+@example
+  I want to break free
+@end example
+
+To prevent certain words (for example ``as'') as being read as a
+pitch, the input-mode must be switched. This is done with
+@code{\lyrics}.  In @code{\lyrics} mode, all words are read as lyric
+syllables.
 @example
   \lyrics @{ I want to break free @}
 @end example
 
-Like notes, lyrics are also a form of music, but they must not be
-printed on a staff, which is the default way to print music. To print
-them as lyrics, they must be marked with @code{ \new Lyrics}:
+@noindent
+Again, the braces @code{@{@}} signify that the syllables are sung in
+sequence.
+
+By default, music expressions are interpreted in @code{Staff} context. For
+lyrics, this is obviously not desirable, so it is necessary
+to explicitly specify a @code{Lyrics} context,
+
 @example
   \new Lyrics  \lyrics @{ I want to break free @}
 @end example
+
 The melody for this song is as follows:
 
 @lilypond[fragment,relative=1]
-   \partial 8
-     c8
-   \times 2/3 {  f4 g g } \times 2/3 { g4( a2) }
+   c4
+   \times 2/3 { f4 g g } \times 2/3 { g4( a2) }
 @end lilypond
 
 The lyrics can be set to these notes, combining both with the
@@ -1082,13 +1096,13 @@ aligned. In this case, there is only one melody, so we can leave it
 empty.
 
 The final result is 
-@lilypond[verbatim,fragment]
+@lilypond[verbatim,fragment,raggedright]
 \score  {
  \notes <<
-   \relative c' \new Voice {
-     \partial 8
-     c8
-     \times 2/3 { f g g } \times 2/3 { g4( a2) }
+   \partial 4
+   \relative c' {
+      c4
+      \times 2/3 { f g g } \times 2/3 { g4( a2) }
    }
    \lyricsto "" \new Lyrics \lyrics { I want to break free }
  >>
@@ -1123,9 +1137,10 @@ resulting in a centered hyphen between two syllables:
 @end example
 @lilypond[raggedright]
 \score {
-  << \notes \relative f' { \time 2/4
+  << \notes \relative f'
+  \context Voice = bla { \time 2/4
     f4 f c' c' }
-    \new Lyrics \lyrics { Twin -- kle twin -- kle }
+    \new Lyrics \lyrics \lyricsto "bla" { Twin -- kle twin -- kle }
   >>
   \paper { raggedright = ##t }
  }
@@ -1144,21 +1159,21 @@ discussed in @ref{Vocal music}.
 @cindex chord names
  
 In popular music, it is common to denote accompaniment as chord-names.
-Using them in LilyPond has two parts, just like lyrics: entering the
-chords (with @code{\chords}), and printing them (with @code{\new
-ChordNames}).
+Such chords can  be entered like notes,
 
-Chord names are entered by starting chords mode (with @code{\chords}).
-In chords mode, you can enter chords with a letter (indicating the
-root of the chord), and a durations following that:
-@c
-@lilypond[verbatim]
-  \chords { c2 f4. g8 } 
-@end lilypond
+@example
+  c2 f4. g8
+@end example
 
 @noindent
-The result of @code{\chords} is a list of chords, and is  equivalent
-to entering chords with @code{<@dots{}>}.
+but now, each pitch is read as the root of a chord instead of a note.
+This mode is switched on with @code{\chords}:
+
+@lilypond[verbatim]
+\score {
+  \chords { c2 f4. g8 }
+}
+@end lilypond
 
 Other chords can be created by adding modifiers after a colon.  The
 following example shows a few common modifiers:
@@ -1167,9 +1182,11 @@ following example shows a few common modifiers:
   \chords { c2 f4:m g4:maj7 gis1:dim7 }
 @end lilypond
 
-Printing chords is done by adding @code{\new ChordNames}
-before the chords thus entered:
-@c
+For leadsheets, chords are not printed on staves, but as names on a
+line of themselves. Hence, we have to override the context with
+@code{\new}, rendering the music expression in a @code{ChordNames}
+context
+
 @lilypond[verbatim]
  \new ChordNames \chords { c2 f4.:m g4.:maj7 gis8:dim7 }
 @end lilypond
@@ -1191,10 +1208,10 @@ a lead sheet, for example,
 @lilypond[]
 \score  {
   << 
+   \partial 4
    \new ChordNames \chords { r8 c2:sus4 f } 
     \notes \relative c' {
-     \partial 8
-     c8
+     c4
      \times 2/3 { f g g } \times 2/3 { g4( a2) } }
    \new Lyrics \lyricsto "" \lyrics { I want to break free __ }
   >>
@@ -1213,12 +1230,14 @@ reference manual section @ref{Chords}.
 @cindex MIDI
 
 MIDI (Musical Instrument Digital Interface) is a standard for
-connecting and recording digital instruments.  A MIDI file is like a
-tape recording of a MIDI instrument. The @code{\midi} block causes LilyPond
-to create a MIDI file, so you can listen to the music you entered.
-It is great for checking the music: octaves that are off or
-accidentals that were mistyped stand out very much when listening to
-the musical transcription.
+connecting and controlling digital instruments.  A MIDI file is like a
+tape recording of a MIDI instrument.
+
+To create a MIDI from a music  piece of music, add a 
+@code{\midi} block causes LilyPond to create a MIDI file, so you
+can listen to the music you entered.  It is great for checking the
+music: octaves that are off or accidentals that were mistyped stand
+out very much when listening to the musical transcription.
 
 The @code{\midi} block is added to @code{\score}, for example,
 @example 
@@ -1269,13 +1288,12 @@ example,
 @cindex composer
 @cindex Engraved by LilyPond
 
-When the file is processed by the @code{lilypond} wrapper script
-the title and composer specified are printed above the music. The
-`tagline' is a short line printed at bottom of the last page which
-normally says ``Engraved by LilyPond, version @dots{}''. In the
-example above it is replaced by the line ``small is
-beautiful.''@footnote{Nicely printed parts are good PR for us, so do
-us a favor, and leave the tagline if you can.}
+When the file is processed the title and composer are printed above
+the music. The `tagline' is a short line printed at bottom of the last
+page which normally says ``Engraved by LilyPond, version @dots{}''. In
+the example above it is replaced by the line ``small is
+beautiful.''@footnote{Nicely printed parts are good PR for us, so
+please leave the tagline if you can.}
 
 Normally, the @code{\header} is put at the top of the file. However,
 for a document that contains multiple pieces (e.g. an etude book, or
@@ -1322,37 +1340,31 @@ Entering such parts is done by entering each voice as a sequence (with
 @code{@{ .. @}}), and combining those simultaneously, separating the
 voices with @code{\\}:
 
-@example
-  << @{ a4 g2 f4~ f4 @} \\
-    @{ r4 g4 f2 f4 @} >>
-@end example
-@lilypond[relative=1]
-\new Staff << { a4 g2 f4~ f4 } \\
-    { r4 g4 f2 f4 } >>
-@end lilypond
+@lilypond[verbatim,relative=1]
+  << { a4 g2 f4~ f4 } \\
+     { r4 g4 f2  f4 } >>
+@end verbatim
 
 For polyphonic music typesetting, spacer rests can also be convenient: these
 are rests that do not print.  It is useful for filling up voices that
-temporarily do not play:
-@example
-  << @{ a4 g2 f4~ f4 @} \\
-    @{ s4 g4 f2 f4 @} >>
-@end example
+temporarily do not play. Here is the same example with a spacer rest
+instead of a normal rest
 @lilypond[relative=1]
-\new Staff  << { a4 g2 f4~ f4 } \\
-    { s4 g4 f2 f4 } >>
+ << { a4 g2 f4~ f4 } \\
+    { s4 g4 f2  f4 } >>
 @end lilypond
 
 Again, these expressions can be nested arbitrarily:
 
-@lilypond[fragment]
+@lilypond[fragment,relative=2]
 <<
  \new Staff 
-  \relative c''
     << { a4 g2 f4~ f4 } \\
-      { s4 g4 f2 f4 } >>
+       { s4 g4 f2  f4 }
+    >>
  \new Staff 
-  <<  { \clef bass <c g>1 ~ <c g>4   } \\
+  << \clef bass
+     { <c, g>1 ~ <c g>4 } \\
      { f4 d e2  ~ e4}
   >>
 >>
@@ -1401,9 +1413,8 @@ More information on formatting piano music is in @ref{Piano music}.
 
 When all of the elements discussed earlier are combined to produce
 larger files, the @code{\score} blocks get a lot bigger, because the
-music expressions are longer, and, in the case of polyphonic and/or
-orchestral pieces, more deeply nested. Such large expressions can
-become unwieldy.
+music expressions are longer, and, in the case of polyphonic pieces,
+more deeply nested. Such large expressions can become unwieldy.
 
 By using variables, also known as identifiers, it is possible to break
 up complex music expressions.  An identifier is assigned as follows:
@@ -1419,7 +1430,7 @@ variable substitution:
 
 @lilypond[raggedright,verbatim]
 seufzer = \notes {
-  dis'8 e'8
+  e'4( dis'4)
 }
 \score { \notes {
   \seufzer \seufzer 
@@ -1464,7 +1475,7 @@ both the part and the score.
 
 It is convenient  to define the notes in a  special file, for example,
 suppose that the @file{horn-music.ly} contains the following part of a
-horn/bassoon duo.
+horn/bassoon duo,
 @example
 hornNotes = \notes \relative c @{
   \time 2/4
@@ -1472,9 +1483,10 @@ hornNotes = \notes \relative c @{
 @}
 @end example
 
-Then, an individual part is made by putting the following in a file:
+Then, an individual part is made by putting the following in a file
+
 @example
-\include "horn-music.lyinc"
+\include "horn-music.ly"
 \header @{
   instrument = "Horn in F"
 @}
@@ -1482,13 +1494,21 @@ Then, an individual part is made by putting the following in a file:
   \notes \transpose f c' \hornNotes
 @}
 @end example
-The @code{\include} command substitutes the contents of the file at
-this position in the file, so that @code{hornNotes} is defined
-afterwards.  The code @code{\transpose f c'} indicates that the
-argument, being @code{\hornNotes}, should be transposed by a fifth
-downwards: sounding @code{f} is denoted by notated @code{c'}, which
-corresponds with tuning of a normal French Horn in F. The
-transposition can be seen in the following output:
+
+The line
+
+@verbatim
+  \include "horn-music.ly"
+@end verbatim
+
+@noindent
+substitutes the contents of @file{horn-music.ly} at this position in
+the file, so @code{hornNotes} is defined afterwards.  The command
+@code{\transpose f c'} indicates that the argument, being
+@code{\hornNotes}, should be transposed by a fifth downwards: sounding
+@code{f} is denoted by notated @code{c'}, which corresponds with
+tuning of a normal French Horn in F. The transposition can be seen in
+the following output:
 
 @lilypond[raggedright]
 \score {
@@ -1501,7 +1521,7 @@ transposition can be seen in the following output:
 
 In ensemble pieces, one of the voices often does not play for many
 measures. This is denoted by a special rest, the multi-measure
-rest. It is entered with a capital R followed by a duration (1
+rest. It is entered with a capital @code{R} followed by a duration (1
 for a whole note, 2 for a half note, etc.) By multiplying the
 duration, longer rests can be constructed. For example, this rest
 takes 3 measures in 2/4 time:
@@ -1509,14 +1529,16 @@ takes 3 measures in 2/4 time:
   R2*3
 @end example
 
-When printing the part, the following @code{skipBars} property must be
-set to true, to prevent the rest from being expanded to three one bar
-rests:
+When printing the part, multi-rests
+must be condensed. This is done by setting a run-time variable:
 @example
   \set Score.skipBars = ##t
 @end example
-Prepending the rest and the property setting above, leads to the
-following result:
+
+
+This commands sets the property @code{skipBars} property in the
+@code{Score} context to true (@code{##t}).  Prepending the rest and
+this option to the music above, leads to the following result:
 
 @lilypond[raggedright]
 \score {\notes { \transpose f c' \relative c { \time 2/4
@@ -1525,12 +1547,14 @@ following result:
     r4 f8 a cis4 f e d } }}
 @end lilypond
 
+
 The score is made by combining all of the music in a @code{\score}
-block, assuming that the other voice is in @code{bassoonNotes}, in the
-file @file{bassoon-music.ly}:
+block. Assuming that the other voice is in @code{bassoonNotes} in the
+file @file{bassoon-music.ly}, a score is made with
+
 @example
-\include "bassoon-music.lyinc"
-\include "horn-music.lyinc"
+\include "bassoon-music.ly"
+\include "horn-music.ly"
 
 \score @{
   \simultaneous @{
@@ -1539,7 +1563,7 @@ file @file{bassoon-music.ly}:
   @} @}
 @end example
 
-This would lead to the simple score depicted below:
+leading to 
 
 @lilypond[raggedright]
 \score {
@@ -1556,6 +1580,7 @@ This would lead to the simple score depicted below:
 More in-depth information on preparing parts and scores is in the
 notation manual, in @ref{Orchestral music}.
 
+Setting run-time variables (``properties'') is discussed in ref-TODO.
 
 @node Integrating text and music
 @section Integrating text and music
@@ -1564,48 +1589,52 @@ notation manual, in @ref{Orchestral music}.
 @cindex HTML, music in
 @cindex Texinfo, music in
 
-Sometimes you might want to use music examples in a text that you are
-writing (for example, a musicological treatise, a songbook, or (like us)
-the LilyPond manual).  You can make such texts by hand, simply by
-importing a PostScript figure into your word processor.  However,
-there is an automated procedure to reduce the amount of work.
+Some texts include music examples.  Examples are musicological
+treatises, songbooks or manuals like this.  Such texts can be made by
+hand, simply by importing a PostScript figure into the word processor.
+However, there is an automated procedure to reduce the amount of work
+involved  HTML, La@TeX{}, and Texinfo documents.
+
 
-If you use HTML, La@TeX{}, or Texinfo, you can mix text and LilyPond
-code.  A script called @code{lilypond-book} will extract the music
-fragments, run LilyPond on them, and put back the resulting notation.
-This program is fully described in @ref{lilypond-book manual}.  Here
-we show a small example. The example also contains explanatory text,
-so we will not comment on it further:
+A script called @code{lilypond-book} will extract the music fragments,
+run format them, and put back the resulting notation.  This program is
+fully described in @ref{lilypond-book manual}.  Here we show a small
+example. The example also contains explanatory text, so we will not
+comment on it further:
 
 @example
 \documentclass[a4paper]@{article@}
 \begin@{document@}
 
-In a lilypond-book document, you can freely mix music and text. For
-example:
+Documents for lilypond-book may freely mix music and text. For
+example,
+
 \begin@{lilypond@}
   \score @{ \notes \relative c' @{
      c2 g'2 \times 2/3 @{ f8 e d @} c'2 g4
   @} @}
 \end@{lilypond@}
 
-If you have no \verb+\score+ block in the fragment,
-\texttt@{lilypond-book@} will supply one:
+If there is no \verb+\score+ block in the fragment,
+\texttt@{lilypond-book@} will supply one
 
 \begin@{lilypond@}
   c'4
 \end@{lilypond@}
 
-In the example you see here two things happened: a
+In this example two things happened: a
 \verb+\score+ block was added, and the line width was set to natural
-length. You can specify  options by putting them in brackets:
+length.
+
+Options are put in brackets.
 
 \begin[staffsize=26,verbatim]@{lilypond@}
   c'4 f16
 \end@{lilypond@}
 
-If you want to include large examples in the text it is more
-convenient to put it in a separate file:
+
+Larger examples can be put in a separate file, and introduced with
+\verb+\lilypondfile+.
 
 \lilypondfile@{screech-boink.ly@}
 
@@ -1621,9 +1650,9 @@ lilypond-book (GNU LilyPond) 2.1.19
 Reading `input/tutorial/lilybook.tex'
 Reading `input/screech-boink.ly'
 @var{lots of stuff deleted}
-Writing `out/lilybook.latex'
+Writing `out/lilybook.tex'
 $ cd out
-$ latex lilybook.latex
+$ latex lilybook
 @var{lots of stuff deleted}
 $ xdvi lilybook 
 @end example
@@ -1637,16 +1666,17 @@ $ ps2pdf lilybook.ps
 
 
 Running lilypond-book and running latex creates a lot of temporary
-files.  You would not want those to clutter up your working
-directory.  The @code{outdir} option to lilypond-book creates the
-temporary files in a separate subdirectory @file{out}.
+files, which would clutter up the working directory. To remedy this,
+use the @code{output} option. It will create the files in a separate
+subdirectory @file{out}.
 
-The result looks more or less like this: 
+The result looks more or less like 
 
 @separate
 
-In a lilypond-book document, you can freely mix music and text. For
-example:
+Documents for lilypond-book may freely mix music and text. For
+example,
+
 @lilypond
 \score {
   \notes \relative c' {
@@ -1665,15 +1695,17 @@ If you have no @code{\score} block in the fragment,
   c'4
 @end lilypond
 
-In the example you see here, two things happened: a
+In this example two things happened: a
 @code{score} block was added, and the line width was set to natural
-length.  You can specify options by putting them in brackets:
+length.
+
+Options are put in brackets.
 
 @lilypond[staffsize=26,verbatim]
   c'4 f16
 @end lilypond
 
-If you want to include large examples in the text, it is more
-convenient to put it in a separate file:
+Larger examples can be put in a separate file, and introduced with
+@code{\lilypondfile}.
 
 @lilypondfile{screech-boink.ly}
diff --git a/VERSION b/VERSION
index 991be8c59f2cbe1de86527e898b469e7a15eb3c4..d84cbb075a74235d9e5dd9399dfb6960b9204c78 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,5 +2,5 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=2
 MINOR_VERSION=1
 PATCH_LEVEL=29
-MY_PATCH_LEVEL=
+MY_PATCH_LEVEL=hwn1
 
index 79cb293ac16c09c8026a3e9a790420d06ea60550..c39279072c2bf6810f80b766d922c2b63816625e 100644 (file)
@@ -381,12 +381,11 @@ Accidental_placement::position_accidentals (Grob * me)
   head_ape-> left_skyline_ = head_skyline;
   head_ape->offset_ = 0.0;
 
-  head_ape->offset_ -= robust_scm2double ( me->get_property ("right-padding"), 0);
-
-  
   Real padding = robust_scm2double (me->get_property ("padding"),0.2);
 
   Array<Skyline_entry> left_skyline = head_ape->left_skyline_;
+  heighten_skyline (&left_skyline,
+                   -robust_scm2double (me->get_property ("right-padding"), 0));
   /*
     Add accs entries right-to-left.
    */
index 60a3669d7fa09d838e7c4e290f8d1a620f6b15bf..99836973b4ccc5066650211ae193f20d9dfdd82b 100644 (file)
@@ -16,19 +16,19 @@ source file of the GNU LilyPond music typesetter
 class Horizontal_bracket_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Horizontal_bracket_engraver);
+  TRANSLATOR_DECLARATIONS (Horizontal_bracket_engraver);
   Link_array<Spanner> bracket_stack_;
   Link_array<Music> events_;
   int pop_count_;
   int push_count_;
 
-  virtual  bool try_music(Music*);
+  virtual  bool try_music (Music*);
   virtual void stop_translation_timestep ();
   virtual  void process_music ();
   virtual  void acknowledge_grob (Grob_info);
 };
 
-ENTER_DESCRIPTION(Horizontal_bracket_engraver,
+ENTER_DESCRIPTION (Horizontal_bracket_engraver,
                  "Create horizontal brackets over notes for musical analysis purposes.",
                  "HorizontalBracket",
                  "note-grouping-event",
@@ -36,7 +36,7 @@ ENTER_DESCRIPTION(Horizontal_bracket_engraver,
                  "",
                  "");
 
-Horizontal_bracket_engraver::Horizontal_bracket_engraver()
+Horizontal_bracket_engraver::Horizontal_bracket_engraver ()
 {
   pop_count_ = 0;
   push_count_ = 0;
@@ -53,8 +53,8 @@ Horizontal_bracket_engraver::try_music (Music *m)
       if (d == STOP)
        {
          pop_count_ ++;
-         if (pop_count_ > bracket_stack_.size())
-           m->origin()->warning (_("Don't have that many brackets."));
+         if (pop_count_ > bracket_stack_.size ())
+           m->origin ()->warning (_("Don't have that many brackets."));
        }
       else
        {
@@ -63,7 +63,7 @@ Horizontal_bracket_engraver::try_music (Music *m)
        }
       
       if (pop_count_ && push_count_)
-       m->origin()->warning (_("Conflicting note group events."));
+       m->origin ()->warning (_("Conflicting note group events."));
 
       return true;
     }
@@ -75,7 +75,7 @@ Horizontal_bracket_engraver::acknowledge_grob (Grob_info gi)
 {
   if (Note_column::has_interface (gi.grob_))
     {
-      for (int i = 0;  i < bracket_stack_.size(); i++)
+      for (int i = 0;  i < bracket_stack_.size (); i++)
        {
          Side_position_interface::add_support (bracket_stack_[i], gi.grob_);
          Pointer_group_interface::add_grob (bracket_stack_[i],
@@ -93,8 +93,8 @@ Horizontal_bracket_engraver::process_music ()
     {
       Spanner * sp = make_spanner ("HorizontalBracket");
 
-      announce_grob (sp, events_[k]->self_scm());
-      for (int i = 0; i < bracket_stack_.size(); i++)
+      announce_grob (sp, events_[k]->self_scm ());
+      for (int i = 0; i < bracket_stack_.size (); i++)
        {
          /*
            sp is the smallest, it should be added to the bigger brackets.
@@ -111,8 +111,8 @@ Horizontal_bracket_engraver::stop_translation_timestep ()
 {
   for (int i = pop_count_; i--;)
     {
-      if (bracket_stack_.size())
-       typeset_grob (bracket_stack_.pop());
+      if (bracket_stack_.size ())
+       typeset_grob (bracket_stack_.pop ());
     }
   pop_count_ = 0;
   push_count_ = 0;
index 771db2d90d80b770192b5296257e2f544f2a4705..96ec03b3fcb54ae44514801aad4698b01160f721 100644 (file)
@@ -19,7 +19,7 @@ class Hyphen_engraver : public Engraver
   Spanner* hyphen_;
   Spanner * finished_hyphen_;  
 public:
-  TRANSLATOR_DECLARATIONS(Hyphen_engraver);
+  TRANSLATOR_DECLARATIONS (Hyphen_engraver);
 
 protected:
   virtual void acknowledge_grob (Grob_info);
@@ -121,7 +121,7 @@ Hyphen_engraver::process_music ()
   if (ev_)
     {
       hyphen_ = make_spanner ("LyricHyphen");
-      announce_grob (hyphen_, ev_->self_scm());
+      announce_grob (hyphen_, ev_->self_scm ());
     }
 }
 
@@ -152,7 +152,7 @@ Hyphen_engraver::stop_translation_timestep ()
 
 
 
-ENTER_DESCRIPTION(Hyphen_engraver,
+ENTER_DESCRIPTION (Hyphen_engraver,
 /* descr */       "Create lyric hyphens",
 /* creats*/       "LyricHyphen",
 /* accepts */     "hyphen-event",
index 23ac02158b2cca054c610ab690120a1328b16c9b..678cc4a8d076183efeb835a68d3215a62f0a9604 100644 (file)
@@ -16,7 +16,7 @@ scm_t_bits package_tag;
 
 /* Print a textual represenation of the smob to a given port.  */
 static int
-print_box (SCM b, SCM port, scm_print_state *pstate)
+print_box (SCM b, SCM port, scm_print_state *)
 {
   SCM value = SCM_CELL_OBJECT_1 (b);
 
@@ -31,7 +31,7 @@ print_box (SCM b, SCM port, scm_print_state *pstate)
 
 /* This defines the primitve `make-box', which returns a new smob of
    type `box', initialized to `#f'.  */
-LY_DEFINE(package_identifier, "ly:export", 1,0,0, (SCM arg),
+LY_DEFINE (package_identifier, "ly:export", 1,0,0, (SCM arg),
          "Export a Scheme object to the parser, so it is treated as an identifier.")
 {
   /* This macro creates the new objects, stores the value `#f' into it
@@ -43,9 +43,9 @@ LY_DEFINE(package_identifier, "ly:export", 1,0,0, (SCM arg),
 /* This is the primitive `box-ref' which returns the object stored in
    the box.  */
 SCM
-unpack_identifier(SCM box)
+unpack_identifier (SCM box)
 {
-  if (SCM_IMP(box) || SCM_CELL_TYPE(box) != package_tag)
+  if (SCM_IMP (box) || SCM_CELL_TYPE (box) != package_tag)
     return SCM_UNDEFINED;
   
   return SCM_CELL_OBJECT_1 (box);
@@ -58,4 +58,4 @@ init_box_type (void)
   scm_set_smob_mark (package_tag, scm_markcdr);
   scm_set_smob_print (package_tag, print_box);
 }
-ADD_SCM_INIT_FUNC(package, init_box_type); 
+ADD_SCM_INIT_FUNC (package, init_box_type); 
index 9c9b29a3fc14125e8bcacc335a534afe5bd02dff..c10086445330ee197d5cbc7f2e3b1aebbef956a9 100644 (file)
@@ -41,7 +41,7 @@ bool store_locations_global_b;
 /*
   no ! suffix since it doesn't modify 1st argument.
  */
-LY_DEFINE(ly_set_point_and_click, "ly:set-point-and-click", 1, 0, 0,
+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"
@@ -123,7 +123,7 @@ Input_file_results::~Input_file_results ()
 
   global_input_file =0;
 
-  ly_clear_anonymous_modules();
+  ly_clear_anonymous_modules ();
 }
 
 
index fafeab7b7dc7879b895ba25de2e5d881a5c519dc..4ca03d940aaae7da83760f97304206062f0849fb 100644 (file)
@@ -83,7 +83,7 @@ LY_DEFINE (ly_input_message, "ly:input-message", 2, 0, 0, (SCM sip, SCM msg),
          "Print @var{msg} as a GNU compliant error message, pointing to the"
           "location in @var{sip}.\n")
 {
-  Input *ip = unsmob_input(sip);
+  Input *ip = unsmob_input (sip);
   SCM_ASSERT_TYPE (ip, sip, SCM_ARG1, __FUNCTION__, "input location");
   SCM_ASSERT_TYPE (gh_string_p (msg), msg, SCM_ARG2, __FUNCTION__, "string");
 
index 642983f72bc52982ce427fc2fdfab709360d5874..9793e8dae3f1a31c8540b5666d334bed65349246 100644 (file)
@@ -21,7 +21,7 @@ class Instrument_name_engraver : public Engraver
 {
   
 public:
-  TRANSLATOR_DECLARATIONS(Instrument_name_engraver);
+  TRANSLATOR_DECLARATIONS (Instrument_name_engraver);
 
 protected:
   Grob *text_;
@@ -87,7 +87,7 @@ Instrument_name_engraver::acknowledge_grob (Grob_info i)
 {
   if (Bar_line::has_interface (i.grob_))
     {
-      create_text();
+      create_text ();
     }
 
   if (dynamic_cast<Spanner*> (i.grob_)
@@ -123,10 +123,10 @@ Instrument_name_engraver::process_music ()
     a name to be attached to lyrics or chords. 
    */
   if (gh_string_p (get_property ("whichBar")))
-    create_text();
+    create_text ();
 }
 
-ENTER_DESCRIPTION(Instrument_name_engraver,
+ENTER_DESCRIPTION (Instrument_name_engraver,
 /* descr */       " Prints the name of the instrument (specified by "
 " @code{Staff.instrument} and @code{Staff.instr}) "
 "at the left of the staff. ",
@@ -142,7 +142,7 @@ ENTER_DESCRIPTION(Instrument_name_engraver,
 class Vocal_name_engraver : public Instrument_name_engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Vocal_name_engraver);
+  TRANSLATOR_DECLARATIONS (Vocal_name_engraver);
   virtual void create_text ();
 };
 
@@ -178,7 +178,7 @@ Vocal_name_engraver::create_text ()
 
 
 
-ENTER_DESCRIPTION(Vocal_name_engraver,
+ENTER_DESCRIPTION (Vocal_name_engraver,
 /* descr */       " Prints the name of the a lyric voice (specified by "
 " @code{Staff.vocalName} and @code{Staff.vocNam}) "
 "at the left of the staff. ",
index 2077c17b450e8ff779c1a3671f8bdd534af5699f..635ea2f1f52304446b660276b3d76490f5f49e51 100644 (file)
@@ -190,7 +190,7 @@ unsmob_item (SCM s )
 
 
 
-ADD_INTERFACE(Item,
+ADD_INTERFACE (Item,
              "item-interface",
              "\n"
              "\n"
index b8426de44b3ab1cc87c9c62be3f8d592cc51c779..e06884464a5db1d60b92916614bc31deef2b6f28 100644 (file)
@@ -33,7 +33,7 @@ class Key_engraver : public Engraver
   Item * item_;
 
 public:
-  TRANSLATOR_DECLARATIONS(Key_engraver);
+  TRANSLATOR_DECLARATIONS (Key_engraver);
 
 protected:
   virtual void initialize ();
@@ -73,7 +73,7 @@ Key_engraver::create_key (bool def)
       item_->set_property ("old-accidentals", get_property ("lastKeySignature"));
       item_->set_property ("new-accidentals", get_property ("keySignature"));
 
-      announce_grob(item_, key_ev_ ? key_ev_->self_scm() : SCM_EOL);
+      announce_grob (item_, key_ev_ ? key_ev_->self_scm () : SCM_EOL);
     }
 
   if (!def)
@@ -188,13 +188,13 @@ Key_engraver::initialize ()
   daddy_context_->set_property ("keySignature", SCM_EOL);
   daddy_context_->set_property ("lastKeySignature", SCM_EOL);
 
-  Pitch p(0,0,0);
+  Pitch p (0,0,0);
   daddy_context_->set_property ("tonic", p.smobbed_copy ());
 
 }
 
 
-ENTER_DESCRIPTION(Key_engraver,
+ENTER_DESCRIPTION (Key_engraver,
 /* descr */       "",
 /* creats*/       "KeySignature",
 /* accepts */     "key-change-event",
index 54617f292d03c2abfd3ef8cbb91fb1f4e84d823a..50a352bed115203f2d057bc407dacc8f2b7623a9 100644 (file)
@@ -16,7 +16,7 @@
 class Key_performer : public Performer
 {
 public:
-  TRANSLATOR_DECLARATIONS(Key_performer);
+  TRANSLATOR_DECLARATIONS (Key_performer);
   ~Key_performer ();
 
 protected:
@@ -98,7 +98,7 @@ Key_performer::try_music (Music* req)
   return false;
 }
 
-ENTER_DESCRIPTION(Key_performer,
+ENTER_DESCRIPTION (Key_performer,
                  "","",
                  "key-change-event",
                  "","","");
index cb6968aafbf3c5387a901e4c0e78db0ccac1e6b4..bc2ac1a3fa4166148afdcf6821a4e585359f5341 100644 (file)
@@ -46,13 +46,13 @@ kpathsea_find_afm (char const * name)
 #if (KPATHSEA && HAVE_KPSE_FIND_FILE)
   char * name_ptr =  kpse_find_file (name, kpse_afm_format, true);
 
-  if(!name_ptr)
+  if (!name_ptr)
     {
   /*
     don't mutter about afms, since we try to find them first, and lots of
     TFMs don't have AFMs. 
    */
-      //      warning (_f("kpathsea couldn't find AFM file `%s'", name));
+      //      warning (_f ("kpathsea couldn't find AFM file `%s'", name));
     }
   else
     return name_ptr;
@@ -71,9 +71,9 @@ kpathsea_find_tfm (char const * name)
   
 #if (KPATHSEA && HAVE_KPSE_FIND_FILE)
   char * name_ptr =  kpse_find_file (name, kpse_tfm_format, true);
-  if(!name_ptr)
+  if (!name_ptr)
     {
-      warning (_f("Kpathsea couldn't find TFM file `%s'", name));
+      warning (_f ("Kpathsea couldn't find TFM file `%s'", name));
     }
   else
     return name_ptr;
index 94548c920c701d1ee7e8fcb30b60b18285e15be0..975b85b7751bdd7b97329992ed848c8c94e17196 100644 (file)
@@ -25,7 +25,7 @@ protected:
   virtual void typeset_ligature (Spanner *ligature, Array<Grob_info>);
 
 public:
-  TRANSLATOR_DECLARATIONS(Ligature_bracket_engraver);
+  TRANSLATOR_DECLARATIONS (Ligature_bracket_engraver);
 
 private:
   void typeset_ligature_bracket ();
@@ -62,7 +62,7 @@ Ligature_bracket_engraver::acknowledge_grob (Grob_info info)
     }
 }
 
-ENTER_DESCRIPTION(Ligature_bracket_engraver,
+ENTER_DESCRIPTION (Ligature_bracket_engraver,
 /* descr */       "Handles Ligature_events by engraving Ligature brackets.",
 /* creats*/       "TupletBracket",
 /* accepts */     "ligature-event",
index 5e2f63ff0ae5250a7c782d32c7333486502121e2..f1b120d146cb44ca5126265b703bcfed145ca8fc 100644 (file)
@@ -206,7 +206,7 @@ Ligature_engraver::process_music ()
 
       ligature_start_mom_ = now_mom ();
       
-      announce_grob(ligature_, reqs_drul_[START]->self_scm());
+      announce_grob (ligature_, reqs_drul_[START]->self_scm ());
       override_stencil_callback ();
     }
 }
index 773f072aa350ea52d1e24f651d17fdff1b5359f8..44cedbbd03da9ba1e3b215089ec30045c7478071 100644 (file)
@@ -22,8 +22,8 @@
 
  source-file.hh includes cmath which undefines isinf and isnan
 */
-inline int my_isinf(Real r) { return isinf(r); }
-inline int my_isnan(Real r) { return isnan(r); }
+inline int my_isinf (Real r) { return isinf (r); }
+inline int my_isnan (Real r) { return isnan (r); }
 
 
 
@@ -102,7 +102,7 @@ gulp_file_to_string (String fn)
   return result;
 }
 
-LY_DEFINE(ly_gulp_file, "ly:gulp-file", 1,0, 0,
+LY_DEFINE (ly_gulp_file, "ly:gulp-file", 1,0, 0,
          (SCM name),
          "Read the file named @var{name}, and return its contents in a string. The "
 " file is looked up using the lilypond search path.")
@@ -126,7 +126,7 @@ ly_scm2string (SCM s)
 {
   assert (gh_string_p (s));
 
-  char *p = SCM_STRING_CHARS(s);
+  char *p = SCM_STRING_CHARS (s);
   String r (p);
   return r;
 }
@@ -149,7 +149,7 @@ index_set_cell (SCM s, Direction d, SCM v)
   return s;
 }
   
-LY_DEFINE(ly_warning,"ly:warn", 1, 0, 0,
+LY_DEFINE (ly_warning,"ly:warn", 1, 0, 0,
   (SCM str),"Scheme callable function to issue the warning @code{msg}.")
 {
   SCM_ASSERT_TYPE (gh_string_p (str), str, SCM_ARG1, __FUNCTION__, "string");
@@ -157,7 +157,7 @@ LY_DEFINE(ly_warning,"ly:warn", 1, 0, 0,
   return SCM_BOOL_T;
 }
 
-LY_DEFINE(ly_dir_p,  "ly:dir?", 1,0, 0,  (SCM s),
+LY_DEFINE (ly_dir_p,  "ly:dir?", 1,0, 0,  (SCM s),
          "type predicate. A direction is a -1, 0 or 1, where -1 represents "
          "left or down and 1 represents right or up. ")
 {
@@ -313,7 +313,7 @@ ly_scm2offset (SCM s)
 }
 
    
-LY_DEFINE(ly_number2string,  "ly:number->string", 1, 0,0,
+LY_DEFINE (ly_number2string,  "ly:number->string", 1, 0,0,
          (SCM s),
          " converts @var{num} to a string without generating many decimals. It "
 "leaves a space at the end.")
@@ -366,7 +366,7 @@ wave_sweep_goodbye (void *dummy1, void *dummy2, void *dummy3)
 
 
 #include "version.hh"
-LY_DEFINE(ly_version,  "ly:version", 0, 0, 0, (),
+LY_DEFINE (ly_version,  "ly:version", 0, 0, 0, (),
          "Return the current lilypond version as a list, e.g. @code{(1 3 127 uu1)}. ")
 {
   char const* vs =  "\'(" MAJOR_VERSION " " MINOR_VERSION " "  PATCH_LEVEL " " MY_PATCH_LEVEL ")" ;
@@ -374,7 +374,7 @@ LY_DEFINE(ly_version,  "ly:version", 0, 0, 0, (),
   return gh_eval_str ((char*)vs);
 }
 
-LY_DEFINE(ly_unit,  "ly:unit", 0, 0, 0, (),
+LY_DEFINE (ly_unit,  "ly:unit", 0, 0, 0, (),
          "Return the unit used for lengths as a string.")
 {
   return scm_makfrom0str (INTERNAL_UNIT);
@@ -382,7 +382,7 @@ LY_DEFINE(ly_unit,  "ly:unit", 0, 0, 0, (),
 
 
 
-LY_DEFINE(ly_dimension_p,  "ly:dimension?", 1, 0, 0, (SCM d),
+LY_DEFINE (ly_dimension_p,  "ly:dimension?", 1, 0, 0, (SCM d),
          "Return @var{d} is a number. Used to distinguish length "
          "variables from normal numbers.")
 {
@@ -464,9 +464,9 @@ SCM
 ly_assoc_cdr (SCM key, SCM alist)
 {
   if (gh_pair_p (alist)) {
-    SCM trykey = ly_caar(alist);
-    if(gh_pair_p(trykey) && to_boolean(scm_equal_p(key,ly_cdr(trykey))))
-      return ly_car(alist);
+    SCM trykey = ly_caar (alist);
+    if (gh_pair_p (trykey) && to_boolean (scm_equal_p (key,ly_cdr (trykey))))
+      return ly_car (alist);
     else
       return ly_assoc_cdr (key, ly_cdr (alist));
   }
@@ -679,12 +679,12 @@ taint (SCM *)
 SCM
 display_list (SCM s)
 {
-  SCM p = scm_current_output_port();
+  SCM p = scm_current_output_port ();
 
   scm_puts ("(", p);
-  for (; gh_pair_p(s); s =gh_cdr(s))
+  for (; gh_pair_p (s); s =gh_cdr (s))
     {
-      scm_display (gh_car(s), p);
+      scm_display (gh_car (s), p);
       scm_puts (" ", p);      
     }
   scm_puts (")", p);
@@ -713,12 +713,12 @@ int_list_to_slice (SCM l)
   PRE: length (L) > 0
  */
 SCM
-robust_list_ref(int i, SCM l)
+robust_list_ref (int i, SCM l)
 {
-  while (i-- > 0 && gh_pair_p (gh_cdr(l)))
+  while (i-- > 0 && gh_pair_p (gh_cdr (l)))
     l = gh_cdr (l);
 
-  return gh_car(l);
+  return gh_car (l);
 }
 
 
@@ -790,7 +790,7 @@ alist_to_hashq (SCM alist)
 /*
   Debugging mem leaks:
  */
-LY_DEFINE(ly_protects, "ly:protects", 0, 0, 0, (),
+LY_DEFINE (ly_protects, "ly:protects", 0, 0, 0, (),
          "Return hash of protected objects.")
 {
   return scm_protects;
index e53e40e22d89ff7ec3a2ebc4ca166ff21c1ec1b4..eb5f8e975626707ed17ca8814e5cf0aae42080e0 100644 (file)
@@ -96,7 +96,7 @@ Line_interface::line (Grob *me, Offset from, Offset to)
     }
 }
 
-ADD_INTERFACE(Line_interface, "line-interface",
+ADD_INTERFACE (Line_interface, "line-interface",
              "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 " 
index b9bea18d6f4f07c5b344891acd728556dac5b2fe..6456135af9422bad03a12cd3d3efa2cf7a3450f7 100644 (file)
@@ -37,7 +37,7 @@ zigzag_stencil (Grob *me,
 
   double w = robust_scm2double (me->get_property ("zigzag-width"), 1)*staff_space;
   double l = robust_scm2double ( me->get_property ("zigzag-length"), 1)* w;
-  double h = l>w/2 ? sqrt(l*l-w*w/4) : 0;
+  double h = l>w/2 ? sqrt (l*l-w*w/4) : 0;
   
   SCM list = scm_list_n (ly_symbol2scm ("zigzag-line"),
                      gh_bool2scm (true),
@@ -56,7 +56,7 @@ zigzag_stencil (Grob *me,
   return Stencil (b, list);
 }
 
-MAKE_SCHEME_CALLBACK(Line_spanner, after_line_breaking, 1);
+MAKE_SCHEME_CALLBACK (Line_spanner, after_line_breaking, 1);
 SCM
 Line_spanner::after_line_breaking (SCM  g)
 {
@@ -78,8 +78,8 @@ Line_spanner::after_line_breaking (SCM  g)
     --hwn.
     
    */
-  if (sp->get_bound (LEFT)->break_status_dir()
-      && !sp->get_bound (RIGHT)->break_status_dir())
+  if (sp->get_bound (LEFT)->break_status_dir ()
+      && !sp->get_bound (RIGHT)->break_status_dir ())
     {
       /*
        Can't do suicide, since this mucks up finding the trend.
@@ -139,7 +139,7 @@ Line_spanner::line_stencil (Grob *me,
       mol.translate (from);
       return mol;
     }
-  return Stencil();
+  return Stencil ();
 }
 
 /*
@@ -190,13 +190,13 @@ Line_spanner::print (SCM smob)
   Offset his_off;
   
 
-  if (bound[RIGHT]->break_status_dir())
+  if (bound[RIGHT]->break_status_dir ())
     {
       if (bound[LEFT]->break_status_dir ())
        {
          programming_error ("line-spanner with two broken ends. Farewell sweet world.");
 
-         me->suicide();
+         me->suicide ();
          return SCM_EOL;
        }
 
@@ -216,7 +216,7 @@ Line_spanner::print (SCM smob)
        {
          programming_error ("no note heads for the line spanner on next line?"
                             " Confused.");
-         me->suicide();
+         me->suicide ();
          return SCM_EOL;
        }
             
@@ -245,7 +245,7 @@ Line_spanner::print (SCM smob)
       dz = (dz.length () - 2*gap) *dir;
       
   
-      Stencil l (line_stencil (me, Offset(0, 0), dz));
+      Stencil l (line_stencil (me, Offset (0, 0), dz));
 
       l.translate (dir * gap +  p1
                   - Offset (me->relative_coordinate (commonx, X_AXIS),
index f9753cfad4f1f623ee8eb5938d2869d58e1d197c..2ebe0baa072212e1fb9dcdd4c510c6cfa569f3da 100644 (file)
@@ -159,7 +159,7 @@ Lookup::filled_box (Box b)
  * |                            |
  * |                            |
  * |<-------------------------->|
- *       Box extent(X_AXIS)
+ *       Box extent (X_AXIS)
  */
 Stencil
 Lookup::round_filled_box (Box b, Real blotdiameter)
@@ -202,12 +202,12 @@ Lookup::round_filled_box (Box b, Real blotdiameter)
  * touch each other will in general not work as expected for non-null
  * blotdiameter.
  *
- * (c) Given a polygon ((x0, y0), (x1, y1), ... , (x(n-1), y(n-1))),
+ * (c) Given a polygon ((x0, y0), (x1, y1), ... , (x (n-1), y (n-1))),
  * if there is a natural number k such that blotdiameter is greater
- * than the maximum of { | (x(k mod n), y(k mod n)) - (x((k+1) mod n),
- * y((k+1) mod n)) |, | (x(k mod n), y(k mod n)) - (x((k+2) mod n),
- * y((k+2) mod n)) |, | (x((k+1) mod n), y((k+1) mod n)) - (x((k+2)
- * mod n), y((k+2) mod n)) | }, then the outline of the rounded
+ * than the maximum of { | (x (k mod n), y (k mod n)) - (x ((k+1) mod n),
+ * y ((k+1) mod n)) |, | (x (k mod n), y (k mod n)) - (x ((k+2) mod n),
+ * y ((k+2) mod n)) |, | (x ((k+1) mod n), y ((k+1) mod n)) - (x ((k+2)
+ * mod n), y ((k+2) mod n)) | }, then the outline of the rounded
  * polygon will exceed the outline of the core polygon.  In other
  * words: Do not draw rounded polygons that have a leg smaller or
  * thinner than blotdiameter (or set blotdiameter to a sufficiently
@@ -218,7 +218,7 @@ Lookup::round_filled_box (Box b, Real blotdiameter)
  * to a core filled polygon.  For details of these two different
  * approaches, see the thread upon the ledger lines patch that started
  * on March 25, 2002 on the devel mailing list.  The below version of
- * round_filled_polygon() sticks to the moulding model, which the
+ * round_filled_polygon () sticks to the moulding model, which the
  * majority of the list participants finally voted for.  This,
  * however, results in the above limitations and a much increased
  * complexity of the algorithm, since it has to compute a shrinked
@@ -287,7 +287,7 @@ Lookup::round_filled_polygon (Array<Offset> points, Real blotdiameter)
       Offset p13n = 0.5 * (p10n + p12n);
       Offset p14n = 0.5 * (p10n - p12n);
       Offset p13;
-      Real d = p13n.length () * p14n.length (); // distance p3n to line(p1..p0)
+      Real d = p13n.length () * p14n.length (); // distance p3n to line (p1..p0)
       if (d < epsilon)
        // special case: p0, p1, p2 are on a single line => build
        // vector orthogonal to (p2-p0) of length 0.5 blotdiameter
@@ -385,7 +385,7 @@ Lookup::slur (Bezier curve, Real curvethick, Real linethick)
                     ly_quote_scm (list),
                     gh_double2scm (linethick),
                     SCM_UNDEFINED));
-  Box b(curve.extent (X_AXIS),
+  Box b (curve.extent (X_AXIS),
        curve.extent (Y_AXIS));
 
   b[X_AXIS].unite (back.extent (X_AXIS));
@@ -657,7 +657,7 @@ Lookup::repeat_slash (Real w, Real s, Real t)
   SCM slashnodot = scm_list_n (ly_symbol2scm ("repeat-slash"),
                            wid, sl, thick, SCM_UNDEFINED);
 
-  Box b (Interval (0, w + sqrt (sqr(t/s) + sqr (t))),
+  Box b (Interval (0, w + sqrt (sqr (t/s) + sqr (t))),
         Interval (0, w * s));
 
   return Stencil (b, slashnodot); //  http://slashnodot.org
@@ -668,9 +668,9 @@ Stencil
 Lookup::bracket (Axis a, Interval iv, Real thick, Real protude, Real blot)
 {
   Box b;
-  Axis other = Axis((a+1)%2);
+  Axis other = Axis ((a+1)%2);
   b[a] = iv;
-  b[other] = Interval(-1, 1) * thick * 0.5;
+  b[other] = Interval (-1, 1) * thick * 0.5;
   
   Stencil m =  round_filled_box (b, blot);
 
@@ -694,7 +694,7 @@ Lookup::triangle (Interval iv, Real thick, Real protude)
 
   SCM s = scm_list_n (ly_symbol2scm ("symmetric-x-triangle"),
                      gh_double2scm (thick),
-                     gh_double2scm (iv.length()), 
+                     gh_double2scm (iv.length ()), 
                      gh_double2scm (protude), SCM_UNDEFINED);
 
   return Stencil (b, s);
@@ -704,17 +704,17 @@ Lookup::triangle (Interval iv, Real thick, Real protude)
 /*
   TODO: use rounded boxes.
  */
-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 " 
          "given by @var{iv}. The wings protude by an amount of @var{p}, which "
          "may be negative. The thickness is given by @var{t}.")
 {
-  SCM_ASSERT_TYPE(is_axis (a), a, SCM_ARG1, __FUNCTION__, "axis") ;
-  SCM_ASSERT_TYPE(is_number_pair (iv), iv, SCM_ARG2, __FUNCTION__, "number pair") ;
-  SCM_ASSERT_TYPE(gh_number_p (t), a, SCM_ARG3, __FUNCTION__, "number") ;
-  SCM_ASSERT_TYPE(gh_number_p (p), a, SCM_ARG4, __FUNCTION__, "number") ;
+  SCM_ASSERT_TYPE (is_axis (a), a, SCM_ARG1, __FUNCTION__, "axis") ;
+  SCM_ASSERT_TYPE (is_number_pair (iv), iv, SCM_ARG2, __FUNCTION__, "number pair") ;
+  SCM_ASSERT_TYPE (gh_number_p (t), a, SCM_ARG3, __FUNCTION__, "number") ;
+  SCM_ASSERT_TYPE (gh_number_p (p), a, SCM_ARG4, __FUNCTION__, "number") ;
 
 
   return Lookup::bracket ((Axis)gh_scm2int (a), ly_scm2interval (iv),
@@ -725,7 +725,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} "
@@ -733,9 +733,9 @@ LY_DEFINE(ly_filled_box ,"ly:round-filled-box",
          "@var{yext} and roundness @var{blot}."
          )
 {
-  SCM_ASSERT_TYPE(is_number_pair (xext), xext, SCM_ARG1, __FUNCTION__, "number pair") ;
-  SCM_ASSERT_TYPE(is_number_pair (yext), yext, SCM_ARG2, __FUNCTION__, "number pair") ;
-  SCM_ASSERT_TYPE(gh_number_p (blot), blot, SCM_ARG3, __FUNCTION__, "number") ;
+  SCM_ASSERT_TYPE (is_number_pair (xext), xext, SCM_ARG1, __FUNCTION__, "number pair") ;
+  SCM_ASSERT_TYPE (is_number_pair (yext), yext, SCM_ARG2, __FUNCTION__, "number pair") ;
+  SCM_ASSERT_TYPE (gh_number_p (blot), blot, SCM_ARG3, __FUNCTION__, "number") ;
 
   return Lookup::round_filled_box (Box (ly_scm2interval (xext), ly_scm2interval (yext)),
                                   gh_scm2double (blot)).smobbed_copy ();
index 008c4224b1f24c37544a58daa970cee22e0d4a75..4f4aecb8738d170b66970c381ea2690607cb7fe1 100644 (file)
@@ -46,7 +46,7 @@ ly_clear_anonymous_modules ()
        UGH.
       */
       
-      SCM_STRUCT_DATA(gh_car(s))[scm_module_index_obarray] = (long unsigned int) tab;
+      SCM_STRUCT_DATA (gh_car (s))[scm_module_index_obarray] = (long unsigned int) tab;
     }
 }
 
@@ -70,7 +70,7 @@ ly_copy_module_variables (SCM dest, SCM src)
 {
   SCM_VALIDATE_MODULE (1, src);
 
-  SCM obarr= SCM_MODULE_OBARRAY(src);
+  SCM obarr= SCM_MODULE_OBARRAY (src);
   scm_internal_hash_fold ((Hash_cl_func) &define_one_var, (void*) dest, SCM_EOL, obarr);
 }
 
@@ -85,7 +85,7 @@ ly_module_symbols (SCM mod)
 {
   SCM_VALIDATE_MODULE (1, mod);
   
-  SCM obarr= SCM_MODULE_OBARRAY(mod);
+  SCM obarr= SCM_MODULE_OBARRAY (mod);
   return scm_internal_hash_fold ((Hash_cl_func) &accumulate_symbol, NULL, SCM_EOL, obarr); 
 }
 
@@ -101,7 +101,7 @@ ly_module_to_alist (SCM mod)
   SCM_VALIDATE_MODULE (1, mod);
   
   
-  SCM obarr= SCM_MODULE_OBARRAY(mod);
+  SCM obarr= SCM_MODULE_OBARRAY (mod);
 
   return scm_internal_hash_fold ((Hash_cl_func) &entry_to_alist, NULL, SCM_EOL, obarr); 
 }
index 4c176aacf2491b94e59c24fa8a611622c9d67f1f..74c076670bdc9282660bd40edf7554fde6fce306 100644 (file)
@@ -19,11 +19,11 @@ class Lyric_combine_music_iterator : public Music_iterator
 public:
   Lyric_combine_music_iterator ();
   Lyric_combine_music_iterator (Lyric_combine_music_iterator const&src);
-  DECLARE_SCHEME_CALLBACK(constructor, ());
+  DECLARE_SCHEME_CALLBACK (constructor, ());
 protected:
   virtual void construct_children ();
   virtual Moment pending_moment () const;
-  virtual void do_quit(); 
+  virtual void do_quit (); 
   virtual void process (Moment);
   virtual Music_iterator *try_music_in_children (Music *) const;
 
@@ -88,12 +88,12 @@ Lyric_combine_music_iterator::ok () const
 }
 
 void
-Lyric_combine_music_iterator::derived_mark()const
+Lyric_combine_music_iterator::derived_mark ()const
 {
   if (music_iter_)
-    scm_gc_mark (music_iter_->self_scm());
+    scm_gc_mark (music_iter_->self_scm ());
   if (lyric_iter_)
-    scm_gc_mark (lyric_iter_->self_scm());
+    scm_gc_mark (lyric_iter_->self_scm ());
 }
 
 void
@@ -127,7 +127,7 @@ Lyric_combine_music_iterator::get_busy_status () const
   Context * tr = music_iter_->get_outlet ();
 
   SCM grobs = tr->get_property ("busyGrobs");
-  Moment now = tr->now_mom();
+  Moment now = tr->now_mom ();
   for (; gh_pair_p (grobs); grobs = gh_cdr (grobs))
     {
       SCM grob = gh_cdar (grobs);
@@ -177,9 +177,9 @@ void
 Lyric_combine_music_iterator::do_quit ()
 {
   if (music_iter_)
-    music_iter_->quit();
+    music_iter_->quit ();
   if (lyric_iter_)
-    lyric_iter_->quit();
+    lyric_iter_->quit ();
 }
 
 Music_iterator*
index 20cf201bdcd04126e63b0d2f0a6c60d5ff85c589..e93c9bccdf9080d8a01462bb06218b58938c892c 100644 (file)
@@ -26,7 +26,7 @@ protected:
   virtual void process_music ();
   
 public:
-  TRANSLATOR_DECLARATIONS(Lyric_engraver);
+  TRANSLATOR_DECLARATIONS (Lyric_engraver);
 private:
   Music * event_;
   Item* text_;
@@ -61,7 +61,7 @@ Lyric_engraver::process_music ()
       text_=  make_item ("LyricText");
       
       text_->set_property ("text", event_->get_property ("text"));
-      announce_grob (text_, event_->self_scm());
+      announce_grob (text_, event_->self_scm ());
     }
 }
 
@@ -135,7 +135,7 @@ Lyric_engraver::stop_translation_timestep ()
 }
 
 
-ENTER_DESCRIPTION(Lyric_engraver,
+ENTER_DESCRIPTION (Lyric_engraver,
 /* descr */       "",
 /* creats*/       "",
 /* accepts */     "lyric-event",
index a36706581428a04d20d97a128169dd7e0b506223..92b1ca711a8056d97dddeda6716a656037104de0 100644 (file)
@@ -71,7 +71,7 @@ Lyric_extender::print (SCM smob)
 
   Spanner *orig = dynamic_cast<Spanner*> (me->original_);
   bool last_line = orig
-    && (me->get_break_index () == orig->broken_intos_.size() - 2)
+    && (me->get_break_index () == orig->broken_intos_.size () - 2)
     && !Lyric_extender::is_visible (orig->broken_intos_.top ());
     
 
index f7a7221afdacd7aa935e2c18d64054c7e5a23444..98b2b22403f33d6375669a51c13accc078022a35 100644 (file)
@@ -27,7 +27,7 @@ Hyphen_spanner::print (SCM smob)
                            me->get_bound (RIGHT));
 
   if (bounds[LEFT]->break_status_dir ()
-      && Paper_column::when_mom (bounds[LEFT]) == Paper_column::when_mom (bounds[RIGHT]->get_column()))
+      && Paper_column::when_mom (bounds[LEFT]) == Paper_column::when_mom (bounds[RIGHT]->get_column ()))
     return SCM_EOL;
   
   Grob * common = bounds[LEFT]->common_refpoint (bounds[RIGHT], X_AXIS);
index ae6e778ab23284a223405891d8149155c88f7e42..2cc834ef9f5c4eb9194374a2cff0d0e47a43cb75 100644 (file)
@@ -14,7 +14,7 @@
 
 class Lyric_performer : public Performer {
 public:
-  TRANSLATOR_DECLARATIONS(Lyric_performer);
+  TRANSLATOR_DECLARATIONS (Lyric_performer);
 protected:
 
   virtual bool try_music (Music* req);
@@ -73,4 +73,4 @@ Lyric_performer::try_music (Music* req)
   return false;
 }
 
-ENTER_DESCRIPTION(Lyric_performer,"","","lyric-event","","","");
+ENTER_DESCRIPTION (Lyric_performer,"","","lyric-event","","","");
index d3f29fdd99eb078868540761c7c6f181cf6325f3..337918b3f21d9cb7c6ab85f5696e395d676015df 100644 (file)
@@ -198,7 +198,7 @@ usage ()
   printf ("\n\n");
   printf (_ ("Typeset music and/or produce MIDI from FILE.").to_str0 ());
   printf ("\n\n");
-  printf(_ ("LilyPond produces beautiful music notation.").to_str0 ());
+  printf (_ ("LilyPond produces beautiful music notation.").to_str0 ());
   printf ("\n");
   printf (_f ("For more information, see %s,", PROGRAM_URL).to_str0 ());
   printf ("\n\n");
index 0400f74509ed4f8251d69d8aad7d34bf0b1fcb32..3dc5cda20944957eca91270c9c4151bace49e5fe 100644 (file)
@@ -23,7 +23,7 @@
 class Mark_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Mark_engraver);
+  TRANSLATOR_DECLARATIONS (Mark_engraver);
 protected:
   Item* text_;
   
@@ -83,7 +83,7 @@ Mark_engraver::create_items (Music *ev)
     return;
 
   text_ = make_item ("RehearsalMark");
-  announce_grob(text_, ev->self_scm());
+  announce_grob (text_, ev->self_scm ());
 }
 
 
@@ -144,7 +144,7 @@ Mark_engraver::process_music ()
     }
 }
 
-ENTER_DESCRIPTION(Mark_engraver,
+ENTER_DESCRIPTION (Mark_engraver,
 /* descr */       "",
 /* creats*/       "RehearsalMark",
 /* accepts */     "mark-event",
index d4fdd3caced20a15ceed2183060baed72eb1c5f9..67720943c835e5636b7a189b5005dc5a2555adfc 100644 (file)
@@ -15,7 +15,7 @@
 class Measure_grouping_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Measure_grouping_engraver);
+  TRANSLATOR_DECLARATIONS (Measure_grouping_engraver);
 
 protected:
   Spanner * grouping_;
@@ -27,7 +27,7 @@ protected:
 };
 
 void
-Measure_grouping_engraver::finalize()
+Measure_grouping_engraver::finalize ()
 {
   if (grouping_)
     {
@@ -51,7 +51,7 @@ Measure_grouping_engraver::acknowledge_grob (Grob_info gi)
 void
 Measure_grouping_engraver::process_music ()
 {
-  Moment now = now_mom();
+  Moment now = now_mom ();
   if (grouping_ && now.main_part_ >= stop_grouping_mom_ && !now.grace_part_)
     {
       grouping_->set_bound (RIGHT,
@@ -78,7 +78,7 @@ Measure_grouping_engraver::process_music ()
           s = gh_cdr (s)
           )
        {
-         int grouplen = gh_scm2int (gh_car(s));
+         int grouplen = gh_scm2int (gh_car (s));
          if (where == mp)
            {
              if (grouping_)
@@ -92,7 +92,7 @@ Measure_grouping_engraver::process_music ()
              announce_grob (grouping_, SCM_EOL);
 
 
-             stop_grouping_mom_ = now.main_part_ + Rational(grouplen - 1) * bl ;
+             stop_grouping_mom_ = now.main_part_ + Rational (grouplen - 1) * bl ;
              get_global_context ()->add_moment_to_process (Moment (stop_grouping_mom_));
 
              if (grouplen == 3)
@@ -105,12 +105,12 @@ Measure_grouping_engraver::process_music ()
        }
     }
 }
-Measure_grouping_engraver::Measure_grouping_engraver()
+Measure_grouping_engraver::Measure_grouping_engraver ()
 {
   grouping_ = 0;
 }
 
-ENTER_DESCRIPTION(Measure_grouping_engraver,
+ENTER_DESCRIPTION (Measure_grouping_engraver,
 /* descr */       "Creates Measure_grouping objects using beatGrouping property",
 /* creats*/       "MeasureGrouping",
 /* accepts */     "",
index 20c8cd34942ca5ecd71baf50c73ffa9966219864..62c7c287ab0d3148a40310aca28feab2dcd621f9 100644 (file)
@@ -27,7 +27,7 @@ Measure_grouping::print (SCM grob)
   Real height = robust_scm2double (me->get_property ("height"), 1);
 
   Real t = Staff_symbol_referencer::line_thickness (me) * robust_scm2double (me->get_property ("thickness"), 1);
-  Grob *common = me->get_bound(LEFT)->common_refpoint (me->get_bound (RIGHT),
+  Grob *common = me->get_bound (LEFT)->common_refpoint (me->get_bound (RIGHT),
                                                       X_AXIS);
 
   Interval rext = me->get_bound (RIGHT)->extent (common, X_AXIS);
@@ -55,7 +55,7 @@ Measure_grouping::print (SCM grob)
     }
 
   m.align_to (Y_AXIS, DOWN);
-  return m.smobbed_copy();
+  return m.smobbed_copy ();
 }
 
 ADD_INTERFACE (Measure_grouping,"measure-grouping-interface",
index 1ac8032102cf3281122ee168f26f4606e632859c..5f057b28d5f46eb675a9fcb510b718661b125b7a 100644 (file)
@@ -22,7 +22,7 @@
 class Melisma_translator : public Translator
 {
 public:
-  TRANSLATOR_DECLARATIONS(Melisma_translator);
+  TRANSLATOR_DECLARATIONS (Melisma_translator);
 protected:
   virtual bool try_music (Music *);
   virtual void process_music ();
@@ -68,12 +68,12 @@ Melisma_translator::start_translation_timestep ()
   event_ = 0;
 }
   
-Melisma_translator::Melisma_translator()
+Melisma_translator::Melisma_translator ()
 {
   event_ = 0;
 }
 
-ENTER_DESCRIPTION(Melisma_translator,
+ENTER_DESCRIPTION (Melisma_translator,
 /* descr */       "This translator collects melisma information about ties, beams, and user settings (@code{melismaBusy}, and signals it to the @code{\addlyrics} code.  ",
 /* creats*/       "",
 /* accepts */     "melisma-playing-event melisma-span-event",
index 299d7644474b01e3c18bd542183e914becd29635..541df714014f9f3374467afe41ce6df185b61d2d 100644 (file)
@@ -54,7 +54,7 @@ protected:
   virtual void build_ligature (Spanner *ligature, Array<Grob_info> primitives);
 
 public:
-  TRANSLATOR_DECLARATIONS(Mensural_ligature_engraver);
+  TRANSLATOR_DECLARATIONS (Mensural_ligature_engraver);
 
 private:
   int apply_transition (Array<Grob_info> primitives,
@@ -337,7 +337,7 @@ Mensural_ligature_engraver::transform_heads (Array<Grob_info> primitives)
  * these properties via the concrete Ligature grob (like
  * MensuralLigature) and then copy these properties as necessary to
  * each of the NoteHead grobs.  This is what
- * propagate_properties() does.
+ * propagate_properties () does.
  */
 void
 Mensural_ligature_engraver::propagate_properties (Spanner *ligature,
index c696661d8ae5313c8001220b2ba5a04ed7f37bd1..f7b6927f28bc86ddfab0fa4df39c925dfdea1619 100644 (file)
@@ -54,7 +54,7 @@ brew_flexa (Grob *me,
       Real y_correction =
        (cauda_direction == UP) ?
        +0.5*height :
-       -0.5*height - cauda_box_y.length();
+       -0.5*height - cauda_box_y.length ();
 
       Box cauda_box (cauda_box_x, cauda_box_y);
       Stencil cauda = Lookup::filled_box (cauda_box);
@@ -66,8 +66,8 @@ brew_flexa (Grob *me,
 
   // Compensate optical illusion regarding vertical position of left
   // and right endings due to slope.
-  Real ypos_correction = -0.1*staff_space * sign(slope);
-  Real slope_correction = 0.2*staff_space * sign(slope);
+  Real ypos_correction = -0.1*staff_space * sign (slope);
+  Real slope_correction = 0.2*staff_space * sign (slope);
   Real corrected_slope = slope + slope_correction/width;
 
   if (solid)
@@ -80,13 +80,13 @@ brew_flexa (Grob *me,
     {
       Stencil left_edge =
        Lookup::beam (corrected_slope, thickness, height, 0.0);
-      stencil.add_stencil(left_edge);
+      stencil.add_stencil (left_edge);
 
       Stencil right_edge =
        Lookup::beam (corrected_slope, thickness, height, 0.0);
       right_edge.translate_axis (width-thickness, X_AXIS);
       right_edge.translate_axis (corrected_slope * (width-thickness), Y_AXIS);
-      stencil.add_stencil(right_edge);
+      stencil.add_stencil (right_edge);
 
       Stencil bottom_edge =
        Lookup::beam (corrected_slope, width, thickness, 0.0);
@@ -157,7 +157,7 @@ internal_brew_primitive (Grob *me, bool ledger_take_space)
   switch (primitive)
     {
       case MLP_NONE:
-       return Stencil();
+       return Stencil ();
       case MLP_BB:
        out = brew_flexa (me, delta_pitch, false,
                          flexa_width, thickness, true, DOWN);
@@ -203,11 +203,11 @@ internal_brew_primitive (Grob *me, bool ledger_take_space)
     }
 
   int pos = (int)rint (Staff_symbol_referencer::get_position (me));
-  add_ledger_lines(me, &out, pos, 0, ledger_take_space);
+  add_ledger_lines (me, &out, pos, 0, ledger_take_space);
   if (primitive & MLP_FLEXA)
     {
       pos += delta_pitch;
-      add_ledger_lines(me, &out, pos, 0.5*delta_pitch, ledger_take_space);
+      add_ledger_lines (me, &out, pos, 0.5*delta_pitch, ledger_take_space);
     }
 
   return out;
index bf5e4b1414f3eb1680cd53e3e7f6186c10b1cb04..877121403b3cc30c16a56a36cb1f39cf283d8cc1 100644 (file)
@@ -22,7 +22,7 @@
 class Metronome_mark_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Metronome_mark_engraver);
+  TRANSLATOR_DECLARATIONS (Metronome_mark_engraver);
 protected:
   Item *text_;
   Grob *bar_line_;
@@ -81,7 +81,7 @@ Metronome_mark_engraver::create_items (Music *rq)
 
   text_ = make_item ("MetronomeMark");
 
-  announce_grob(text_, rq->self_scm());
+  announce_grob (text_, rq->self_scm ());
 }
 
 
@@ -101,13 +101,13 @@ Metronome_mark_engraver::process_music ()
 
       SCM proc = get_property ("metronomeMarkFormatter");
       SCM result= scm_call_2 (proc, mark_ev_->self_scm (),
-                             daddy_context_->self_scm()); 
+                             daddy_context_->self_scm ()); 
       
       text_->set_property ("text", result);
     }
 }
 
-ENTER_DESCRIPTION(Metronome_mark_engraver,
+ENTER_DESCRIPTION (Metronome_mark_engraver,
 /* descr */       "Engrave metro nome marking. This delegates the real work to the function in the metronomeMarkFormatter property",
 /* creats*/       "MetronomeMark",
 /* accepts */     "metronome-change-event",
index 5715a0174780ce334b879f506746759d54c7c80c..9ade245a717fe39c17aa26a753d7a514fdb9f8a6 100644 (file)
@@ -148,7 +148,7 @@ Midi_instrument::to_string () const
   SCM program = gh_call1 (proc, ly_symbol2scm (audio_->str_.to_str0 ()));
   found = (program != SCM_BOOL_F);
   if (found)
-    program_byte = gh_scm2int(program);
+    program_byte = gh_scm2int (program);
   else
       warning (_f ("no such MIDI instrument: `%s'", audio_->str_.to_str0 ()));
 
@@ -243,7 +243,7 @@ int
 Midi_note::get_fine_tuning () const
 {
   int ft = audio_->pitch_.quartertone_pitch ();
-  ft -= 2 * audio_->pitch_.semitone_pitch();
+  ft -= 2 * audio_->pitch_.semitone_pitch ();
   ft *= 50; // 1 quarter tone = 50 cents
   return ft;
 }
index b0a67ca6f9190b3b1a5d91801400a4af59f40403..340eee849285c3b98defa46e353a575cae37670b 100644 (file)
@@ -130,7 +130,7 @@ Midi_walker::output_event (Moment now_mom, Midi_item* l)
     this is not correct, but at least it doesn't crash when you
     start with graces
    */
-  if (delta_t < Moment(0))
+  if (delta_t < Moment (0))
     {
       delta_t = Moment (0);
     }
index 39c509f7347b455a4c058e54236ab82265248136..3a6fcd3ecdec3677275a321bada74180f64a99a4 100644 (file)
@@ -57,10 +57,10 @@ LY_DEFINE (make_moment,"ly:make-moment", 2,0,0, (SCM n, SCM d),
           "notes, @var{g} is zero.\n"
           )
 {
-  SCM_ASSERT_TYPE(SCM_INUMP (n), n, SCM_ARG1, __FUNCTION__, "integer");
-  SCM_ASSERT_TYPE(SCM_INUMP (d), d, SCM_ARG2, __FUNCTION__, "integer");
+  SCM_ASSERT_TYPE (SCM_INUMP (n), n, SCM_ARG1, __FUNCTION__, "integer");
+  SCM_ASSERT_TYPE (SCM_INUMP (d), d, SCM_ARG2, __FUNCTION__, "integer");
 
-  return Moment (Rational (gh_scm2int (n), gh_scm2int (d))).smobbed_copy();
+  return Moment (Rational (gh_scm2int (n), gh_scm2int (d))).smobbed_copy ();
 }
 
 LY_DEFINE (add_moment,"ly:add-moment", 2,0,0, (SCM a, SCM b),
@@ -72,7 +72,7 @@ LY_DEFINE (add_moment,"ly:add-moment", 2,0,0, (SCM a, SCM b),
   SCM_ASSERT_TYPE (ma, a, SCM_ARG1, __FUNCTION__, "moment");
   SCM_ASSERT_TYPE (mb, b, SCM_ARG2, __FUNCTION__, "moment");
 
-  return (*ma + *mb).smobbed_copy();
+  return (*ma + *mb).smobbed_copy ();
 }
 
 
@@ -85,7 +85,7 @@ LY_DEFINE (mul_moment,"ly:mul-moment", 2,0,0, (SCM a, SCM b),
   SCM_ASSERT_TYPE (ma, a, SCM_ARG1, __FUNCTION__, "moment");
   SCM_ASSERT_TYPE (mb, b, SCM_ARG2, __FUNCTION__, "moment");
 
-  return (*ma *  *mb).smobbed_copy();
+  return (*ma *  *mb).smobbed_copy ();
 }
 
 
@@ -99,7 +99,7 @@ LY_DEFINE (div_moment,"ly:div-moment", 2,0,0, (SCM a, SCM b),
   SCM_ASSERT_TYPE (ma, a, SCM_ARG1, __FUNCTION__, "moment");
   SCM_ASSERT_TYPE (mb, b, SCM_ARG2, __FUNCTION__, "moment");
 
-  return (*ma /  *mb).smobbed_copy();
+  return (*ma /  *mb).smobbed_copy ();
 }
 
 LY_DEFINE (ly_moment_less_p,"ly:moment<?", 2,0,0, (SCM a, SCM b),
@@ -149,8 +149,8 @@ Moment::Moment ()
 
 Moment::Moment (int m)
 {
-  main_part_ = Rational(m);
-  grace_part_  = Rational( 0);
+  main_part_ = Rational (m);
+  grace_part_  = Rational ( 0);
 }
 
 Moment::Moment (Rational m, Rational g)
index 04e348d23beafdbbf8e1b34b50236a6338b5d207..7d66ce48be1560b4284166ab97fe9ed4849d7c37 100644 (file)
@@ -22,7 +22,7 @@
 class Multi_measure_rest_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Multi_measure_rest_engraver);
+  TRANSLATOR_DECLARATIONS (Multi_measure_rest_engraver);
 
 protected:
   virtual bool try_music (Music*);
@@ -82,9 +82,9 @@ Multi_measure_rest_engraver::process_music ()
     {
       mmrest_ = make_spanner ("MultiMeasureRest");
 
-      if (text_events_.size())
+      if (text_events_.size ())
        {
-         for (int i = 0; i < text_events_.size(); i++)
+         for (int i = 0; i < text_events_.size (); i++)
            {
              Spanner *sp
                = make_spanner ("MultiMeasureRestText");
@@ -97,7 +97,7 @@ Multi_measure_rest_engraver::process_music ()
                sp->set_property ("direction",dir);
              
              numbers_.push (sp);
-             announce_grob (sp, e->self_scm());
+             announce_grob (sp, e->self_scm ());
            }
 
          /*
@@ -106,7 +106,7 @@ Multi_measure_rest_engraver::process_music ()
          Direction d = DOWN; 
          do {
            Grob *last =0;
-           for (int i=0; i <numbers_.size(); i++)
+           for (int i=0; i <numbers_.size (); i++)
              {
                if (gh_int2scm (d) == numbers_[i]->get_property ("direction"))
                  {
@@ -122,16 +122,16 @@ Multi_measure_rest_engraver::process_music ()
          Spanner *sp
            = make_spanner ("MultiMeasureRestNumber");
          numbers_.push (sp);
-         announce_grob (sp, rest_ev_->self_scm());
+         announce_grob (sp, rest_ev_->self_scm ());
        }
 
-      for (int i =0 ; i < numbers_.size(); i++)
+      for (int i =0 ; i < numbers_.size (); i++)
        {
          Side_position_interface::add_support (numbers_[i], mmrest_);
          numbers_[i]->set_parent (mmrest_, Y_AXIS);
        }
       
-      announce_grob (mmrest_, rest_ev_->self_scm());
+      announce_grob (mmrest_, rest_ev_->self_scm ());
       start_measure_
        = gh_scm2int (get_property ("currentBarNumber"));
     }
@@ -148,7 +148,7 @@ Multi_measure_rest_engraver::stop_translation_timestep ()
   
   if (bar_seen_)
     {
-      Grob *cmc = unsmob_grob (get_property("breakableSeparationItem"));
+      Grob *cmc = unsmob_grob (get_property ("breakableSeparationItem"));
       if (!cmc)
        cmc = unsmob_grob (get_property ("currentCommandColumn"));
       
@@ -157,14 +157,14 @@ Multi_measure_rest_engraver::stop_translation_timestep ()
       if (mmrest_)
        {
          add_bound_item (mmrest_, it);
-         for (int i = 0; i < numbers_.size(); i++)
+         for (int i = 0; i < numbers_.size (); i++)
            add_bound_item (numbers_[i], it);
        }
       
       if (last_rest_)
        {
          add_bound_item (last_rest_,it);
-         for (int i = 0; i < last_numbers_.size(); i++)
+         for (int i = 0; i < last_numbers_.size (); i++)
            add_bound_item (last_numbers_[i], it);
        }      
     }
@@ -177,7 +177,7 @@ Multi_measure_rest_engraver::stop_translation_timestep ()
       && mmrest_->get_bound (LEFT) && mmrest_->get_bound (RIGHT))
     {
       typeset_grob (mmrest_);
-      for (int i = 0 ; i < numbers_.size(); i++)
+      for (int i = 0 ; i < numbers_.size (); i++)
        {
          typeset_grob (numbers_[i]);
        }
@@ -202,7 +202,7 @@ Multi_measure_rest_engraver::stop_translation_timestep ()
            }
        }
       last_rest_ = 0;
-      last_numbers_.clear();
+      last_numbers_.clear ();
     }
 
   text_events_.clear ();
@@ -248,7 +248,7 @@ Multi_measure_rest_engraver::start_translation_timestep ()
       mmrest_ = 0;
       numbers_.clear ();
       
-      Grob * last = last_numbers_.size() ? last_numbers_[0] : 0;
+      Grob * last = last_numbers_.size () ? last_numbers_[0] : 0;
       if (last && last->get_property ("text") == SCM_EOL)
        {
          SCM thres = get_property ("restNumberThreshold");
@@ -257,7 +257,7 @@ Multi_measure_rest_engraver::start_translation_timestep ()
            t = gh_scm2int (thres);
       
          if (num <= t)
-           last->suicide();
+           last->suicide ();
          else 
            {
              SCM text
@@ -290,7 +290,7 @@ Multi_measure_rest_engraver::finalize ()
 
 }
 
-ENTER_DESCRIPTION(Multi_measure_rest_engraver,
+ENTER_DESCRIPTION (Multi_measure_rest_engraver,
 /* descr */
                  "Engraves multi-measure rests that are produced with @code{R}.  Reads "
 "measurePosition and currentBarNumber to determine what number to print "
index 7fd6e765ce4cb6d1e3803db552cec67fe06b65c7..b04768dfea24e089dc307fd95f44f55820d531f8 100644 (file)
@@ -87,7 +87,7 @@ Multi_measure_rest::print (SCM smob)
     }
   while ((flip (&d)) != LEFT);
 
-  Real space = sp_iv.length();
+  Real space = sp_iv.length ();
 
   Real rx  = sp->get_bound (LEFT)->relative_coordinate (0, X_AXIS);
   /*
@@ -123,7 +123,7 @@ Multi_measure_rest::symbol_stencil (Grob *me, Real space)
       measures = gh_scm2int (m);
     }
   if (measures <= 0)
-    return Stencil();
+    return Stencil ();
   
 
   SCM limit = me->get_property ("expand-limit");
@@ -188,7 +188,7 @@ Multi_measure_rest::big_rest (Grob *me, Real width)
   Real slt = me->get_paper ()->get_realvar (ly_symbol2scm ("linethickness"));
   Real y = slt * thick_thick/2 * ss;
   Real ythick = hair_thick * slt * ss;
-  Box b(Interval (0,  0 >? (width - 2 * ythick)), Interval (-y, y));
+  Box b (Interval (0,  0 >? (width - 2 * ythick)), Interval (-y, y));
   
   Real blot = width ? (.8 * (y <? ythick)) : 0.0;
   
@@ -282,7 +282,7 @@ Multi_measure_rest::church_rest (Grob*me, Font_metric *musfont, int measures,
     }
   
   Stencil mol; 
-  for (SCM  s = mols; gh_pair_p (s); s = gh_cdr(s))
+  for (SCM  s = mols; gh_pair_p (s); s = gh_cdr (s))
     {
       mol.add_at_edge (X_AXIS, LEFT, *unsmob_stencil (gh_car (s)), inner_padding, 0);
     }
@@ -338,7 +338,7 @@ Multi_measure_rest::set_spacing_rods (SCM smob)
        + sym_width  + 2.0;                     // 2.0 = magic!
   
       Real minlen  = robust_scm2double (me->get_property ("minimum-length"), 0.0);
-      rod.distance_ = max(rod.distance_,
+      rod.distance_ = max (rod.distance_,
                          minlen);
       rod.add_to_cols ();
     }
index 438a02bad32c17ca0507a2b7aed63c112bf5d55c..9af76a408fd147925d7ca58c9c64a1521f895f79 100644 (file)
@@ -90,7 +90,7 @@ Music_iterator::get_static_get_iterator (Music *m)
       else
        p = new Simple_music_iterator;
 
-      iter = p->self_scm();
+      iter = p->self_scm ();
       scm_gc_unprotect_object (iter);
     }
 
@@ -180,8 +180,8 @@ Music_iterator::get_music () const
 /****************************************************************/
 
 IMPLEMENT_TYPE_P (Music_iterator, "ly:iterator?");
-IMPLEMENT_SMOBS(Music_iterator);
-IMPLEMENT_DEFAULT_EQUAL_P(Music_iterator);
+IMPLEMENT_SMOBS (Music_iterator);
+IMPLEMENT_DEFAULT_EQUAL_P (Music_iterator);
 
 SCM
 Music_iterator::mark_smob (SCM smob)
@@ -194,9 +194,9 @@ Music_iterator::mark_smob (SCM smob)
     only, we _must_ mark them.
    */
   if (mus->get_outlet ())
-    scm_gc_mark (mus->get_outlet ()->self_scm());
+    scm_gc_mark (mus->get_outlet ()->self_scm ());
   if (mus->music_)
-    scm_gc_mark (mus->music_->self_scm());
+    scm_gc_mark (mus->music_->self_scm ());
   
 
   return SCM_EOL;
@@ -214,7 +214,7 @@ Music_iterator::print_smob (SCM sm , SCM port, scm_print_state*)
 }
 
 void
-Music_iterator::derived_mark()const
+Music_iterator::derived_mark ()const
 {
 }
 
@@ -226,7 +226,7 @@ Music_iterator::quit ()
 }
 
 void
-Music_iterator::do_quit()
+Music_iterator::do_quit ()
 {
 }
 
index e88f773d904e43aa4d9bbe36c459364b5fc0e79f..428cac5a623a3a0308070a205bc938e41ec9ffa9 100644 (file)
@@ -16,16 +16,16 @@ Music_wrapper_iterator::Music_wrapper_iterator ()
 }
 
 void
-Music_wrapper_iterator::do_quit()
+Music_wrapper_iterator::do_quit ()
 {
-  child_iter_->quit();
+  child_iter_->quit ();
 }
 
 void
 Music_wrapper_iterator::derived_mark () const
 {
   if (child_iter_)
-    scm_gc_mark (child_iter_->self_scm());
+    scm_gc_mark (child_iter_->self_scm ());
 }
 
 void
@@ -39,7 +39,7 @@ Music_wrapper_iterator::derived_substitute (Context *f,Context *t)
 void
 Music_wrapper_iterator::construct_children ()
 {
-  Music * m =  dynamic_cast<Music_wrapper const*> (get_music ())-> element();  
+  Music * m =  dynamic_cast<Music_wrapper const*> (get_music ())-> element ();  
   child_iter_ = unsmob_iterator (get_iterator (m));
 }
 
index 86b2c3368e7240d8bea7fbf670340df99d1c3c52..30b4afd7dde561361f83513d2dc91e8e642fead7 100644 (file)
@@ -103,7 +103,7 @@ My_lily_lexer::My_lily_lexer ()
   
   scopes_ = SCM_EOL;
   
-  add_scope(ly_make_anonymous_module());
+  add_scope (ly_make_anonymous_module ());
   errorlevel_ =0; 
 
   main_input_b_ = false;
@@ -124,7 +124,7 @@ My_lily_lexer::add_scope (SCM module)
                                                 gh_car (s), SCM_UNDEFINED),
                             SCM_UNDEFINED);
       
-      scm_primitive_eval(expr);
+      scm_primitive_eval (expr);
     }
   
   scopes_ = scm_cons (module, scopes_);
@@ -155,7 +155,7 @@ My_lily_lexer::lookup_identifier (String s)
     {
       SCM var = ly_module_lookup (gh_car (s), sym);
       if (var != SCM_BOOL_F)
-       return scm_variable_ref(var);
+       return scm_variable_ref (var);
     }
 
   return SCM_UNDEFINED;
@@ -241,5 +241,5 @@ My_lily_lexer::here_input () const
 void
 My_lily_lexer::prepare_for_next_token ()
 {
-  last_input_ = here_input();
+  last_input_ = here_input ();
 }
index a3b2ec86cb5d7aabaa2165b9e5e0e940c26fe81e..f000e678be1d5e317964775e870f37f6c812a2e3 100644 (file)
@@ -30,7 +30,7 @@ My_lily_parser::~My_lily_parser ()
 {
   delete lexer_;
   if (default_header_)
-    scm_gc_unprotect_object (default_header_->self_scm());
+    scm_gc_unprotect_object (default_header_->self_scm ());
 }
 
 /* Process one .ly file, or book.  */
@@ -97,7 +97,7 @@ My_lily_parser::here_input () const
 {
   /*
     Parsing looks ahead , so we really want the previous location of the
-    lexer, not lexer_->here_input().
+    lexer, not lexer_->here_input ().
    */
   /*
     Actually, that gets very icky when there are white space, because
index e23fd23db3b10bec9551fb09b129458be85840a8..18103a3b4a701add17fc2006cabda9de4d8bcef5 100644 (file)
@@ -49,13 +49,13 @@ class New_fingering_engraver : public Engraver
   Grob *stem_;
   
 public:
-  TRANSLATOR_DECLARATIONS(New_fingering_engraver);
+  TRANSLATOR_DECLARATIONS (New_fingering_engraver);
 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 position_scripts();
+  void position_scripts ();
 };
 
 void
@@ -134,7 +134,7 @@ New_fingering_engraver::add_fingering (Grob * head,
   Finger_tuple ft;
 
   ft.script_ = make_item ("Fingering");
-  announce_grob (ft.script_, event->self_scm());
+  announce_grob (ft.script_, event->self_scm ());
   
   Side_position_interface::add_support (ft.script_, head);
 
@@ -152,7 +152,7 @@ New_fingering_engraver::add_fingering (Grob * head,
       /*
        music for the softenon children? 
        */
-      event->origin()->warning (_("music for the martians."));
+      event->origin ()->warning (_("music for the martians."));
     }
   SCM sstr = scm_number_to_string (gh_int2scm (d), gh_int2scm (10)) ;
   ft.script_->set_property ("text", sstr);
@@ -177,17 +177,17 @@ New_fingering_engraver::position_scripts ()
     to the note head, and write a more flexible function for
     positioning the fingerings, setting both X and Y coordinates.
   */
-  for (int i = 0; i < fingerings_.size(); i++)
+  for (int i = 0; i < fingerings_.size (); i++)
     {      
-      fingerings_[i].position_ = gh_scm2int (fingerings_[i].head_ -> get_property( "staff-position"));
+      fingerings_[i].position_ = gh_scm2int (fingerings_[i].head_ -> get_property ( "staff-position"));
     }
 
-  for (int i = fingerings_.size(); i--;)
-    for (int j = heads_.size() ; j--;)
+  for (int i = fingerings_.size (); i--;)
+    for (int j = heads_.size () ; j--;)
       Side_position_interface::add_support (fingerings_[i].script_, heads_[j]);
     
   Array<Finger_tuple> up, down, horiz;
-  for (int i = fingerings_.size(); i--;)
+  for (int i = fingerings_.size (); i--;)
     {
       SCM d = fingerings_[i].finger_event_->get_property ("direction");
       if (to_dir (d))
@@ -208,21 +208,21 @@ New_fingering_engraver::position_scripts ()
   if (left_p || right_p)
     {
       if (up_p && !up.size () && fingerings_.size ())
-       up.push (fingerings_.pop());
+       up.push (fingerings_.pop ());
 
-      if (down_p && !down.size () && fingerings_.size())
+      if (down_p && !down.size () && fingerings_.size ())
        {
          down.push (fingerings_[0]);
-         fingerings_.del(0);
+         fingerings_.del (0);
        }
 
       horiz.concat (fingerings_);
     }
   else if (up_p && down_p)
     {
-      int center = fingerings_.size() / 2;
+      int center = fingerings_.size () / 2;
       down.concat (fingerings_.slice (0,center));
-      up.concat (fingerings_.slice (center, fingerings_.size()));
+      up.concat (fingerings_.slice (center, fingerings_.size ()));
     }
   else if (up_p)
     {
@@ -232,12 +232,12 @@ New_fingering_engraver::position_scripts ()
   else
     {
       if (!down_p)
-       warning(_ ("Fingerings are also not down?! Putting them down anyway."));
+       warning (_ ("Fingerings are also not down?! Putting them down anyway."));
       down.concat (fingerings_);
-      fingerings_.clear();
+      fingerings_.clear ();
     }
   
-  for (int i = 0; i < horiz.size(); i++)
+  for (int i = 0; i < horiz.size (); i++)
     {
       Finger_tuple ft = horiz[i];
       Grob* f = ft.script_;
@@ -252,7 +252,7 @@ New_fingering_engraver::position_scripts ()
     }
 
   int finger_prio = 200;
-  for (int i = 0; i < up.size(); i++)
+  for (int i = 0; i < up.size (); i++)
     {
       Finger_tuple ft = up[i];
       Grob* f = ft.script_;
@@ -268,13 +268,13 @@ New_fingering_engraver::position_scripts ()
       typeset_grob (f);
     }
   
-  for (int i = 0; i < down.size(); i++)
+  for (int i = 0; i < down.size (); i++)
     {
       Finger_tuple ft = down[i];
       Grob* f = ft.script_;
       f->set_parent (ft.head_, X_AXIS);
       f->set_property ("script-priority",
-                           gh_int2scm (finger_prio + down.size() - i));
+                           gh_int2scm (finger_prio + down.size () - i));
 
       f->add_offset_callback (Self_alignment_interface::centered_on_parent_proc, X_AXIS);
       f->add_offset_callback (Self_alignment_interface::aligned_on_self_proc, X_AXIS);
@@ -289,15 +289,15 @@ New_fingering_engraver::stop_translation_timestep ()
 {
   if (fingerings_.size ())
     {
-      position_scripts();
+      position_scripts ();
       fingerings_.clear ();
     }
   
-  for (int i =  articulations_.size(); i--;)
+  for (int i =  articulations_.size (); i--;)
     {
       Grob *sc = articulations_[i].script_;
    
-      for (int j = heads_.size() ; j--;)
+      for (int j = heads_.size () ; j--;)
        Side_position_interface::add_support (sc, heads_[j]);
 
       if (stem_ && to_dir (sc->get_property ("side-relative-direction")))
@@ -314,16 +314,16 @@ New_fingering_engraver::stop_translation_timestep ()
 
   stem_ = 0;
   heads_.clear ();
-  articulations_.clear();
+  articulations_.clear ();
 }
 
 
-New_fingering_engraver::New_fingering_engraver()
+New_fingering_engraver::New_fingering_engraver ()
 {
   stem_ = 0;  
 }
 
-ENTER_DESCRIPTION(New_fingering_engraver,
+ENTER_DESCRIPTION (New_fingering_engraver,
 /* descr */       "Create fingering-scripts for notes in a new chord.  "
                  "This engraver is ill-named, since it "
                  "also takes care of articulations and harmonic note heads",
index fef21dde29442c7622511426966d7ef3e1f9cbe0..4977c0019f26d6fc0f29f2924b490b864679dd5a 100644 (file)
@@ -19,11 +19,11 @@ class New_lyric_combine_music_iterator : public Music_iterator
 public:
   New_lyric_combine_music_iterator ();
   New_lyric_combine_music_iterator (New_lyric_combine_music_iterator const&src);
-  DECLARE_SCHEME_CALLBACK(constructor, ());
+  DECLARE_SCHEME_CALLBACK (constructor, ());
 protected:
   virtual void construct_children ();
   virtual Moment pending_moment () const;
-  virtual void do_quit(); 
+  virtual void do_quit (); 
   virtual void process (Moment);
   virtual Music_iterator *try_music_in_children (Music *) const;
   virtual bool run_always ()const;
@@ -112,7 +112,7 @@ New_lyric_combine_music_iterator::ok () const
 }
 
 void
-New_lyric_combine_music_iterator::derived_mark()const
+New_lyric_combine_music_iterator::derived_mark ()const
 {
   if (lyric_iter_)
     scm_gc_mark (lyric_iter_->self_scm ());
@@ -219,7 +219,7 @@ void
 New_lyric_combine_music_iterator::do_quit ()
 {
   if (lyric_iter_)
-    lyric_iter_->quit();
+    lyric_iter_->quit ();
 }
 
 
index dad75f982c2a68707be679e711a2b58fa2c133d9..1432c27564c9c7a843ef6f09704d376f766b693e 100644 (file)
@@ -286,10 +286,10 @@ Note_collision_interface::do_shifts (Grob* me)
   Real wid = 0.0;
   do
     {
-      if(cg[d].size())
+      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);
index 6cb90f4e710bedb07e7a1562bf4e2da0b89b6f17..fee6c1e63c9c6fb4a30217b0945140519fa85e90 100644 (file)
@@ -28,7 +28,7 @@
 class Note_head_line_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Note_head_line_engraver);
+  TRANSLATOR_DECLARATIONS (Note_head_line_engraver);
 
 protected:
   virtual void acknowledge_grob (Grob_info);
@@ -92,7 +92,7 @@ Note_head_line_engraver::process_acknowledged_grobs ()
       line_->set_bound (LEFT, last_head_);
       line_->set_bound (RIGHT, head_);
       
-      announce_grob(line_, head_->self_scm ());
+      announce_grob (line_, head_->self_scm ());
 
       follow_ = false;
     }
@@ -114,7 +114,7 @@ Note_head_line_engraver::stop_translation_timestep ()
 
 
 
-ENTER_DESCRIPTION(Note_head_line_engraver,
+ENTER_DESCRIPTION (Note_head_line_engraver,
 /* descr */       "Engrave a line between two note heads, for example a glissando.  If "
 " followVoice is set, staff switches also generate a line.",
 /* creats*/       "Glissando VoiceFollower",
index 3e2761b83ca206c8cd59af7fceec6f5b796eab3a..9c063326588603eabd5d9acdb5b97ddd3f5bb10f 100644 (file)
@@ -75,7 +75,7 @@ Note_head::brew_ledger_lines (Grob *me,
   int line_count = (abs (pos) < interspaces)
     ? 0
     : (abs (pos) - interspaces) / 2;
-  Stencil stencil = Stencil();
+  Stencil stencil = Stencil ();
 
 
   if (line_count)
@@ -148,7 +148,7 @@ internal_print (Grob *me, bool with_ledgers)
       ledger_size.widen ( ledger_size.length ()/4);
 
       Real left_shorten =0.0;
-      if (Grob * g = unsmob_grob(me->get_property ("accidental-grob")))
+      if (Grob * g = unsmob_grob (me->get_property ("accidental-grob")))
        {
          /*
            make a little room for accidentals.
@@ -159,8 +159,10 @@ internal_print (Grob *me, bool with_ledgers)
 
          Grob *common = g->common_refpoint (me, X_AXIS);
          Real d =
-           (me->extent (common, X_AXIS)[LEFT]
-            +g->extent (common, X_AXIS)[RIGHT]) /2;
+           linear_combination (Drul_array<Real> (me->extent (common, X_AXIS)[LEFT],
+                                                 g->extent (common, X_AXIS)[RIGHT]),
+                               
+                               0.5);
 
          left_shorten =  (-ledger_size[LEFT] + d) >?  0 ;
 
@@ -220,7 +222,7 @@ Note_head::head_extent (Grob *me, Axis a)
 
 /*
   This is necessary to prevent a cyclic dependency: the appearance of
-  the ledgers depends on positioning, so the Grob::get_stencil() can
+  the ledgers depends on positioning, so the Grob::get_stencil () can
   not be used for determining the note head extent.
   
  */ 
@@ -300,7 +302,7 @@ Note_head::stem_attachment_coordinate (Grob *me, Axis a)
          Offset wxwy = fm->get_indexed_wxwy (k);
          Interval v = b[a];
          if (!v.is_empty ())
-           return 2 * (wxwy[a] - v.center()) / v.length ();
+           return 2 * (wxwy[a] - v.center ()) / v.length ();
        }
     }
   
@@ -311,7 +313,7 @@ Note_head::stem_attachment_coordinate (Grob *me, Axis a)
   if (!gh_procedure_p (v))
     return 0.0;
   
-  SCM result = scm_call_2 (v, me->self_scm(), gh_int2scm (a));
+  SCM result = scm_call_2 (v, me->self_scm (), gh_int2scm (a));
   if (!gh_pair_p (result))
     return 0.0;
 
index 8189a01ba4e0b34e0e692f6904fb6d4f4acbe7a2..e1fdc813c7c7d2bbb3848dbf405b405b24d9164f 100644 (file)
@@ -22,7 +22,7 @@ class Note_heads_engraver : public Engraver
   Link_array<Music> note_reqs_;
 
 public:
-  TRANSLATOR_DECLARATIONS(Note_heads_engraver);
+  TRANSLATOR_DECLARATIONS (Note_heads_engraver);
 
 protected:
   virtual bool try_music (Music *req) ;
@@ -31,7 +31,7 @@ protected:
   virtual void stop_translation_timestep ();
 };
 
-Note_heads_engraver::Note_heads_engraver()
+Note_heads_engraver::Note_heads_engraver ()
 {
 }
 
@@ -86,7 +86,7 @@ Note_heads_engraver::process_music ()
        pos += gh_scm2int (c0);
 
       note->set_property ("staff-position",   gh_int2scm (pos));
-      announce_grob (note,req->self_scm());
+      announce_grob (note,req->self_scm ());
       notes_.push (note);
     }
 }
@@ -110,7 +110,7 @@ Note_heads_engraver::stop_translation_timestep ()
 
 
 
-ENTER_DESCRIPTION(Note_heads_engraver,
+ENTER_DESCRIPTION (Note_heads_engraver,
 /* descr */       "Generate noteheads.",
 /* creats*/       "NoteHead Dots",
 /* accepts */     "note-event busy-playing-event",
index 171bc102b7a11c07e230b89eb752c1336b57e355..a0c904e562027bd7824291010d69491fec3db1e9 100644 (file)
@@ -14,7 +14,7 @@
 class Note_name_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Note_name_engraver);
+  TRANSLATOR_DECLARATIONS (Note_name_engraver);
 
   Link_array<Music> events_;
   Link_array<Item> texts_;
@@ -53,7 +53,7 @@ Note_name_engraver::process_music ()
     {
       Item * t = make_item ("NoteName");
       t->set_property ("text", scm_makfrom0str (s.to_str0 ()));
-      announce_grob (t, events_[0]->self_scm());
+      announce_grob (t, events_[0]->self_scm ());
       texts_.push (t);
     }
 }
@@ -70,11 +70,11 @@ Note_name_engraver::stop_translation_timestep ()
 }
 
 
-Note_name_engraver::Note_name_engraver()
+Note_name_engraver::Note_name_engraver ()
 {
 }
 
-ENTER_DESCRIPTION(Note_name_engraver,
+ENTER_DESCRIPTION (Note_name_engraver,
 /* descr */       "",
 /* creats*/       "NoteName",
 /* accepts */     "note-event",
index ab6f6a188735bb621ddaa89efea95a6bb78a1c77..4d938dee650282bf227b8eb9e525f385b28ab7d2 100644 (file)
@@ -18,7 +18,7 @@ Convert evs to audio notes.
 */
 class Note_performer : public Performer {
 public:
-  TRANSLATOR_DECLARATIONS(Note_performer);
+  TRANSLATOR_DECLARATIONS (Note_performer);
   
 protected:
   virtual bool try_music (Music *ev) ;
@@ -115,9 +115,9 @@ Note_performer::try_music (Music* ev)
   return false;
 }
 
-ENTER_DESCRIPTION(Note_performer,"","",
+ENTER_DESCRIPTION (Note_performer,"","",
                  "note-event busy-playing-event","","","");
 
-Note_performer::Note_performer()
+Note_performer::Note_performer ()
 {
 }
index 706e9418ca72cfa169f488b6976a110bbbe3af09..9f767ab54c0501c3b5b0fd9483f6e78c089ccefd 100644 (file)
@@ -33,7 +33,7 @@ Note_spacing::get_spacing (Grob *me, Item* right_col,
                           Real base_space, Real increment, Real *space, Real *fixed)
 {
 
-  Drul_array<SCM> props(me->get_property ("left-items"),
+  Drul_array<SCM> props (me->get_property ("left-items"),
                        me->get_property ("right-items"));
   Direction d = LEFT;
   Direction col_dir =  right_col->break_status_dir ();
@@ -44,7 +44,7 @@ Note_spacing::get_spacing (Grob *me, Item* right_col,
     {
       for (SCM  s = props[d]; gh_pair_p (s); s = gh_cdr (s))
        {
-         Item * it= dynamic_cast<Item*> (unsmob_grob (gh_car(s)));
+         Item * it= dynamic_cast<Item*> (unsmob_grob (gh_car (s)));
          
          if (d == RIGHT && it->break_status_dir () != col_dir)
            {
@@ -80,7 +80,7 @@ Note_spacing::get_spacing (Grob *me, Item* right_col,
                first note head will be.
               */
              if (g)
-               left_head_wid = g->extent(it_col, X_AXIS);
+               left_head_wid = g->extent (it_col, X_AXIS);
            }
          
          extents[d].unite (it->extent (it_col, X_AXIS));
@@ -164,7 +164,7 @@ Note_spacing::get_spacing (Grob *me, Item* right_col,
 Item *
 Note_spacing::left_column (Grob *me)
 {
-  if (!me->live())
+  if (!me->live ())
     return 0;
   
   return dynamic_cast<Item*> (me)->get_column ();
@@ -181,7 +181,7 @@ prune RIGHT-ITEMS.
 Item *
 Note_spacing::right_column (Grob*me)
 {
-  if (!me->live())
+  if (!me->live ())
     return 0;
   
   SCM right = me->get_property ("right-items");
@@ -222,7 +222,7 @@ Note_spacing::right_column (Grob*me)
     {
       /*
       int r = Paper_column::get_rank (dynamic_cast<Item*>(me)->get_column ());
-      programming_error (_f("Spacing wish column %d has no right item.", r));
+      programming_error (_f ("Spacing wish column %d has no right item.", r));
       */
 
       return 0;
@@ -244,14 +244,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"),
+  Drul_array<SCM> props (me->get_property ("left-items"),
                        me->get_property ("right-items"));
 
-  Drul_array<Grob*> beams_drul(0,0);
-  Drul_array<Grob*> stems_drul(0,0);
+  Drul_array<Grob*> beams_drul (0,0);
+  Drul_array<Grob*> stems_drul (0,0);
   
   stem_dirs[LEFT] = stem_dirs[RIGHT] = CENTER;
   Interval intersect;
@@ -266,7 +266,7 @@ Note_spacing::stem_dir_correction (Grob*me, Item * rcolumn,
     {
       for (SCM  s = props[d]; gh_pair_p (s); s = gh_cdr (s))
        {
-         Item * it= dynamic_cast<Item*> (unsmob_grob (gh_car(s)));
+         Item * it= dynamic_cast<Item*> (unsmob_grob (gh_car (s)));
 
          if (d == RIGHT)
            acc_right = acc_right || Note_column::accidentals (it);
@@ -293,7 +293,7 @@ Note_spacing::stem_dir_correction (Grob*me, Item * rcolumn,
              return ;
            }
          
-         if(Stem::is_invisible (stem))
+         if (Stem::is_invisible (stem))
            {
              correct_stem_dirs = false;
              continue;
@@ -325,7 +325,7 @@ Note_spacing::stem_dir_correction (Grob*me, Item * rcolumn,
          Real chord_start = hp[sd];      
          Real stem_end = Stem::stem_end_position (stem);
          
-         stem_posns[d] = Interval(chord_start<?stem_end, chord_start>? stem_end);
+         stem_posns[d] = Interval (chord_start<?stem_end, chord_start>? stem_end);
          head_posns[d].unite (hp);
        }
     }
@@ -381,7 +381,7 @@ Note_spacing::stem_dir_correction (Grob*me, Item * rcolumn,
       else
        {
          intersect = stem_posns[LEFT];  
-         intersect.intersect(stem_posns[RIGHT]);
+         intersect.intersect (stem_posns[RIGHT]);
          correct_stem_dirs = correct_stem_dirs && !intersect.is_empty ();
 
          if (correct_stem_dirs)
@@ -443,7 +443,7 @@ Note_spacing::stem_dir_correction (Grob*me, Item * rcolumn,
 
   *space += correction;
 
-  /* there used to be a correction for bar_xextent() here, but
+  /* there used to be a correction for bar_xextent () here, but
      it's unclear what that was good for ?
   */
 
index efbac77ea030ec3ab9747d73917a85b246d676a0..d77a6b6e2d643d25f02d370dbc8bc07b13b88f6e 100644 (file)
@@ -49,7 +49,7 @@ Ottava_bracket::print (SCM smob)
   Interval span_points;
   
   Grob *common = me->get_bound (LEFT)->common_refpoint (me->get_bound (RIGHT), X_AXIS);
-  Paper_def * paper = me->get_paper();
+  Paper_def * paper = me->get_paper ();
 
   
   Drul_array<bool> broken;
index 0cf14c160aded688b1d0643bf78b7e7909a9b479..cc4ac41cf73b12b3f760c5e98d1bfdc1bf016857 100644 (file)
@@ -15,7 +15,7 @@
 class Ottava_spanner_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Ottava_spanner_engraver);  
+  TRANSLATOR_DECLARATIONS (Ottava_spanner_engraver);  
 protected:
   virtual void finalize ();
   virtual void acknowledge_grob (Grob_info);
@@ -114,11 +114,11 @@ Ottava_spanner_engraver::finalize ()
   typeset_all ();
   if (span_)
     finished_ = span_;
-  typeset_all();
+  typeset_all ();
   last_ottavation_ = SCM_EOL;
 }
 
-ENTER_DESCRIPTION(Ottava_spanner_engraver,
+ENTER_DESCRIPTION (Ottava_spanner_engraver,
 /* descr */       "Create a text spanner when the ottavation property changes..",
 /* creats*/       "OttavaBracket",
 /* accepts */     "",
index ee17d82b079010f86633d12f0cd7bd07ad108851..ebe2c477717f7f52fab76883d38dd14f45998571 100644 (file)
@@ -14,7 +14,7 @@
 
 class Output_property_engraver : public Engraver
 {
-TRANSLATOR_DECLARATIONS(Output_property_engraver);
+TRANSLATOR_DECLARATIONS (Output_property_engraver);
 protected:
   Link_array<Music> props_;
 
@@ -68,9 +68,9 @@ Output_property_engraver::acknowledge_grob (Grob_info inf)
          
          SCM proc = o->get_property ("procedure");
          scm_call_3 (proc,
-                     inf.grob_->self_scm(),
-                     d->self_scm(), 
-                     daddy_context_->self_scm());
+                     inf.grob_->self_scm (),
+                     d->self_scm (), 
+                     daddy_context_->self_scm ());
        }
     }
 }
@@ -81,11 +81,11 @@ Output_property_engraver::stop_translation_timestep ()
   props_.clear ();
 }
 
-Output_property_engraver::Output_property_engraver()
+Output_property_engraver::Output_property_engraver ()
 {
 }
 
-ENTER_DESCRIPTION(Output_property_engraver,
+ENTER_DESCRIPTION (Output_property_engraver,
 /* descr */       "Interpret Music of Output_property type, and apply a function "
 " to any Graphic objects that satisfies the predicate.",
 /* creats*/       "",
index fc76c976d4d8fd70734318ce25996221e535f3d8..af85ee2d00e5afc2100ce2b4966e9a8fc97a14b1 100644 (file)
@@ -13,7 +13,7 @@
 class Output_property_music_iterator : public Simple_music_iterator
 {
 public:  
-  DECLARE_SCHEME_CALLBACK(constructor, ());
+  DECLARE_SCHEME_CALLBACK (constructor, ());
 protected:
   virtual void process (Moment);
 };
index 04cc897b99421baa3b6aaf1d2deba228a52552be..69e49a77d9789556781982ed40261892aa7bde68 100644 (file)
@@ -108,7 +108,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)
 {
@@ -138,7 +138,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 4c2e2b68e8caedeb3e58b4f82bf55da0dee79bda..f392455a898d9eeff2a2a528b6b76a3c3fd75cf7 100644 (file)
@@ -42,7 +42,7 @@ Paper_score::typeset_line (System *l)
   main_smob_ = gh_cons (l->self_scm (), main_smob_);
   l->pscore_ = this;
 
-  scm_gc_unprotect_object (l->self_scm());
+  scm_gc_unprotect_object (l->self_scm ());
 }
 
 
index d5628707e67b4ffbe16ec36096a20b315f2e60b2..f909b5aa2cc8772eff0a4407cf39977d66745797 100644 (file)
@@ -17,7 +17,7 @@ SCM
 internal_ly_parse_scm (Parse_start * ps, bool safe)
 {
   Source_file* sf =ps->start_location_.source_file_;
-  SCM port = sf->get_port();
+  SCM port = sf->get_port ();
 
   int off = ps->start_location_.defined_str0_ - sf->to_str0();
   
@@ -76,7 +76,7 @@ parse_handler (void * data, SCM tag, SCM args)
   ps->start_location_.error (_("GUILE signaled an error for the expression beginning here"));
 
   if (scm_ilength (args) > 2)
-    scm_display_error_message (gh_cadr (args), gh_caddr(args), scm_current_error_port());
+    scm_display_error_message (gh_cadr (args), gh_caddr (args), scm_current_error_port ());
 
   /*
     The following is a kludge; we should probably search for
index c1a98226f33e6662b8d5c84e5cde0748845de876..d1b40819d9e75fedae04c90e456d6eb6802cdaa9 100644 (file)
@@ -195,7 +195,7 @@ ly_input_procedure_p (SCM x)
 Music* 
 set_property_music (SCM sym, SCM value)
 {
-       Music * p = MY_MAKE_MUSIC("PropertySet");
+       Music * p = MY_MAKE_MUSIC ("PropertySet");
        p->set_property ("symbol", sym);
        p->set_property ("value", value);
        return p;
@@ -225,7 +225,7 @@ yylex (YYSTYPE *s,  void * v)
        My_lily_lexer * lex = pars->lexer_;
 
        lex->lexval = (void*) s;
-       lex->prepare_for_next_token();
+       lex->prepare_for_next_token ();
        return lex->yylex ();
 }
 
@@ -441,7 +441,7 @@ toplevel_expression:
                SCM outname = scm_makfrom0str (p.to_string ().to_str0());
 
                for (int i=0; i < sc->defs_.size (); i++)
-                       default_rendering (sc->music_, sc->defs_[i]->self_scm(), head, outname);
+                       default_rendering (sc->music_, sc->defs_[i]->self_scm (), head, outname);
 
                if (sc->defs_.is_empty ())
                {
@@ -451,11 +451,11 @@ toplevel_expression:
 
                   id = id ? id->clone () : new Paper_def;
        
-                  default_rendering (sc->music_, id->self_scm(), head, outname);
+                  default_rendering (sc->music_, id->self_scm (), head, outname);
                                                
                   scm_gc_unprotect_object (id->self_scm ());
                }
-               scm_gc_unprotect_object (sc->self_scm());
+               scm_gc_unprotect_object (sc->self_scm ());
        }
        | output_def {
                SCM id = SCM_EOL;
@@ -489,7 +489,7 @@ lilypond_header_body:
 
 lilypond_header:
        HEADER '{' lilypond_header_body '}'     {
-               $$ = THIS->lexer_-> remove_scope();
+               $$ = THIS->lexer_-> remove_scope ();
        }
        ;
 
@@ -578,7 +578,7 @@ context_def_spec_body:
                unsmob_context_def ($$)->set_spot (THIS->here_input ());
        }
        | context_def_spec_body GROBDESCRIPTIONS embedded_scm {
-               Context_def*td = unsmob_context_def($$);
+               Context_def*td = unsmob_context_def ($$);
 
                for (SCM p = $3; gh_pair_p (p); p = ly_cdr (p)) {
                        SCM tag = gh_caar (p);
@@ -715,7 +715,7 @@ music_output_def_body:
 
 tempo_event:
        TEMPO steno_duration '=' bare_unsigned  {
-               $$ = MY_MAKE_MUSIC("MetronomeChangeEvent");
+               $$ = MY_MAKE_MUSIC ("MetronomeChangeEvent");
                $$->set_property ("tempo-unit", $2);
                $$->set_property ("metronome-count", gh_int2scm ( $4));
        }
@@ -812,7 +812,7 @@ Repeated_music:
                                shift -= 1;
                                r->compress (Moment (Rational (1,list_len)));
                                }
-                       gh_call3 (func, r->self_scm (), gh_int2scm(shift),gh_int2scm(dots));
+                       gh_call3 (func, r->self_scm (), gh_int2scm (shift),gh_int2scm (dots));
 
                }
                r->set_spot (*$4->origin ());
@@ -823,28 +823,28 @@ Repeated_music:
 
 Sequential_music:
        SEQUENTIAL '{' Music_list '}'           {
-               $$ = MY_MAKE_MUSIC("SequentialMusic");
+               $$ = MY_MAKE_MUSIC ("SequentialMusic");
                $$->set_property ("elements", ly_car ($3));
-               $$->set_spot(THIS->here_input());
+               $$->set_spot (THIS->here_input ());
        }
        | '{' Music_list '}'            {
-               $$ = MY_MAKE_MUSIC("SequentialMusic");
+               $$ = MY_MAKE_MUSIC ("SequentialMusic");
                $$->set_property ("elements", ly_car ($2));
-               $$->set_spot(THIS->here_input());
+               $$->set_spot (THIS->here_input ());
        }
        ;
 
 Simultaneous_music:
        SIMULTANEOUS '{' Music_list '}'{
-               $$ = MY_MAKE_MUSIC("SimultaneousMusic");
+               $$ = MY_MAKE_MUSIC ("SimultaneousMusic");
                $$->set_property ("elements", ly_car ($3));
-               $$->set_spot(THIS->here_input());
+               $$->set_spot (THIS->here_input ());
 
        }
        | simul_open Music_list simul_close     {
-               $$ = MY_MAKE_MUSIC("SimultaneousMusic");
+               $$ = MY_MAKE_MUSIC ("SimultaneousMusic");
                $$->set_property ("elements", ly_car ($2));
-               $$->set_spot(THIS->here_input());
+               $$->set_spot (THIS->here_input ());
        }
        ;
 
@@ -855,14 +855,14 @@ Simple_music:
                        THIS->parser_error (_ ("\\applycontext takes function argument"));
                $$ = MY_MAKE_MUSIC ("ApplyOutputEvent");
                $$->set_property ("procedure", $2);
-               $$->set_spot (THIS->here_input());
+               $$->set_spot (THIS->here_input ());
        }
        | APPLYCONTEXT embedded_scm {
                if (!ly_input_procedure_p ($2))
                        THIS->parser_error (_ ("\\applycontext takes function argument"));
                $$ = MY_MAKE_MUSIC ("ApplyContext");
                $$->set_property ("procedure", $2);
-               $$->set_spot (THIS->here_input());
+               $$->set_spot (THIS->here_input ());
        }
        | MUSIC_IDENTIFIER {
                $$ = unsmob_music ($1);
@@ -900,7 +900,7 @@ Composite_music:
                scm_gc_unprotect_object ($2->self_scm ());
                $$ = unsmob_music (res);
                scm_gc_protect_object (res);
-               $$->set_spot (THIS->here_input());
+               $$->set_spot (THIS->here_input ());
        }
        | PARTCOMBINE Music Music {
                static SCM proc;
@@ -913,7 +913,7 @@ Composite_music:
                scm_gc_unprotect_object ($2->self_scm ());
                $$ = unsmob_music (res);
                scm_gc_protect_object (res);
-               $$->set_spot (THIS->here_input());
+               $$->set_spot (THIS->here_input ());
        }
        | grace_head Music {
 #if 1
@@ -945,22 +945,22 @@ basic music objects too, since the meaning is different.
                        scm_gc_unprotect_object (stopm->self_scm ());
                }
                ms = scm_cons ($2->self_scm (), ms);
-               scm_gc_unprotect_object ($2->self_scm());
+               scm_gc_unprotect_object ($2->self_scm ());
                if (startm) {
                        startm = startm->clone ();
                        ms = scm_cons (startm->self_scm () , ms);
                        scm_gc_unprotect_object (startm->self_scm ());
                }
 
-               Music* seq = MY_MAKE_MUSIC("SequentialMusic");
+               Music* seq = MY_MAKE_MUSIC ("SequentialMusic");
                seq->set_property ("elements", ms);
 
                
-               $$ = MY_MAKE_MUSIC("GraceMusic");
+               $$ = MY_MAKE_MUSIC ("GraceMusic");
                $$->set_property ("element", seq->self_scm ());
                scm_gc_unprotect_object (seq->self_scm ());
 #else
-               $$ = MY_MAKE_MUSIC("GraceMusic");
+               $$ = MY_MAKE_MUSIC ("GraceMusic");
                $$->set_property ("element", $2->self_scm ());
                scm_gc_unprotect_object ($2->self_scm ());
 #endif
@@ -987,7 +987,7 @@ basic music objects too, since the meaning is different.
                int n = gh_scm2int (ly_car ($3)); int d = gh_scm2int (ly_cdr ($3));
                Music *mp = $4;
 
-               $$= MY_MAKE_MUSIC("TimeScaledMusic");
+               $$= MY_MAKE_MUSIC ("TimeScaledMusic");
                $$->set_spot (THIS->pop_spot ());
 
                $$->set_property ("element", mp->self_scm ());
@@ -1001,7 +1001,7 @@ basic music objects too, since the meaning is different.
        | Simultaneous_music            { $$ = $1; }
        | Sequential_music              { $$ = $1; }
        | TRANSPOSE pitch_also_in_chords pitch_also_in_chords Music {
-               $$ = MY_MAKE_MUSIC("TransposedMusic");
+               $$ = MY_MAKE_MUSIC ("TransposedMusic");
                Music *p = $4;
                Pitch from = *unsmob_pitch ($2);
                Pitch to = *unsmob_pitch ($3);
@@ -1022,7 +1022,7 @@ basic music objects too, since the meaning is different.
                        Music *m = unsmob_music (ret);
                        if (!m) {
                                THIS->parser_error ("\\apply must return a Music");
-                               m = MY_MAKE_MUSIC("Music");
+                               m = MY_MAKE_MUSIC ("Music");
                                }
                        $$ = m;
                        }
@@ -1049,10 +1049,10 @@ basic music objects too, since the meaning is different.
                { THIS->lexer_->push_figuredbass_state (); }
        Music
                {
-                 Music * chm = MY_MAKE_MUSIC("UntransposableMusic");
+                 Music * chm = MY_MAKE_MUSIC ("UntransposableMusic");
                  chm->set_property ("element", $3->self_scm ());
                  $$ = chm;
-                 scm_gc_unprotect_object ($3->self_scm());
+                 scm_gc_unprotect_object ($3->self_scm ());
 
                  THIS->lexer_->pop_state ();
        }
@@ -1063,9 +1063,9 @@ basic music objects too, since the meaning is different.
                THIS->lexer_->push_chord_state (alist_to_hashq (nn));
 
        } Music {
-                 Music * chm = MY_MAKE_MUSIC("UnrelativableMusic");
+                 Music * chm = MY_MAKE_MUSIC ("UnrelativableMusic");
                  chm->set_property ("element", $3->self_scm ());
-                 scm_gc_unprotect_object ($3->self_scm());
+                 scm_gc_unprotect_object ($3->self_scm ());
                  $$ = chm;
 
                  THIS->lexer_->pop_state ();
@@ -1089,7 +1089,7 @@ relative_music:
        RELATIVE absolute_pitch Music {
                Music * p = $3;
                Pitch pit = *unsmob_pitch ($2);
-               $$ = MY_MAKE_MUSIC("RelativeOctaveMusic");
+               $$ = MY_MAKE_MUSIC ("RelativeOctaveMusic");
 
                $$->set_property ("element", p->self_scm ());
                scm_gc_unprotect_object (p->self_scm ());
@@ -1103,14 +1103,14 @@ relative_music:
 
 re_rhythmed_music:
        ADDLYRICS Music Music {
-       Music*l =MY_MAKE_MUSIC("LyricCombineMusic");
+       Music*l =MY_MAKE_MUSIC ("LyricCombineMusic");
          l->set_property ("elements", gh_list ($2->self_scm (), $3->self_scm (), SCM_UNDEFINED));
          scm_gc_unprotect_object ($3->self_scm ());
          scm_gc_unprotect_object ($2->self_scm ());
          $$ = l;
        }
        | NEWADDLYRICS string Music {
-         Music*l =MY_MAKE_MUSIC("NewLyricCombineMusic");
+         Music*l =MY_MAKE_MUSIC ("NewLyricCombineMusic");
          l->set_property ("element", $3->self_scm ());
          scm_gc_unprotect_object ($3->self_scm ());
          $$ = l;
@@ -1120,7 +1120,7 @@ re_rhythmed_music:
 
 context_change:
        CHANGE STRING '=' STRING  {
-               Music*t= MY_MAKE_MUSIC("ContextChange");
+               Music*t= MY_MAKE_MUSIC ("ContextChange");
                t-> set_property ("change-to-type", scm_string_to_symbol ($2));
                t-> set_property ("change-to-id", $4);
 
@@ -1265,12 +1265,12 @@ event_chord:
 note_chord_element:
        chord_body optional_notemode_duration post_events
        {
-               SCM dur = unsmob_duration ($2)->smobbed_copy();
+               SCM dur = unsmob_duration ($2)->smobbed_copy ();
                SCM es = $1->get_property ("elements");
                SCM postevs = scm_reverse_x ($3, SCM_EOL);
 
                for (SCM s = es; gh_pair_p (s); s = gh_cdr (s))
-                 unsmob_music (gh_car(s))->set_property ("duration", dur);
+                 unsmob_music (gh_car (s))->set_property ("duration", dur);
                es = gh_append2 (es, postevs);
 
                $1-> set_property ("elements", es);
@@ -1293,7 +1293,7 @@ simul_close: MOREMORE
 chord_body:
        chord_open chord_body_elements chord_close
        {
-               $$ = MY_MAKE_MUSIC("EventChord");
+               $$ = MY_MAKE_MUSIC ("EventChord");
                $$->set_property ("elements",
                        scm_reverse_x ($2, SCM_EOL));
        }
@@ -1302,15 +1302,15 @@ chord_body:
 chord_body_elements:
        /* empty */             { $$ = SCM_EOL; }
        | chord_body_elements chord_body_element {
-               $$ = gh_cons ($2->self_scm(), $1);
-               scm_gc_unprotect_object ($2->self_scm());
+               $$ = gh_cons ($2->self_scm (), $1);
+               scm_gc_unprotect_object ($2->self_scm ());
        }
        ;
 
 chord_body_element:
        pitch exclamations questions post_events
        {
-               Music * n = MY_MAKE_MUSIC("NoteEvent");
+               Music * n = MY_MAKE_MUSIC ("NoteEvent");
                n->set_property ("pitch", $1);
                if ($3 % 2)
                        n->set_property ("cautionary", SCM_BOOL_T);
@@ -1324,10 +1324,10 @@ chord_body_element:
                $$ = n;
        }
        | DRUM_PITCH post_events {
-               Music *n =  MY_MAKE_MUSIC("NoteEvent");
+               Music *n =  MY_MAKE_MUSIC ("NoteEvent");
                n->set_property ("duration" ,$2);
                n->set_property ("drum-type" , $1);
-               n->set_spot (THIS->here_input());
+               n->set_spot (THIS->here_input ());
 
                if (gh_pair_p ($2)) {
                        SCM arts = scm_reverse_x ($2, SCM_EOL);
@@ -1350,15 +1350,15 @@ add_quote:
 
 command_element:
        command_req {
-               $$ = MY_MAKE_MUSIC("EventChord");
+               $$ = MY_MAKE_MUSIC ("EventChord");
                $$->set_property ("elements", scm_cons ($1->self_scm (), SCM_EOL));
-               scm_gc_unprotect_object ($1->self_scm());
+               scm_gc_unprotect_object ($1->self_scm ());
 
                $$-> set_spot (THIS->here_input ());
                $1-> set_spot (THIS->here_input ());
        }
        | SKIP duration_length {
-               Music * skip = MY_MAKE_MUSIC("SkipMusic");
+               Music * skip = MY_MAKE_MUSIC ("SkipMusic");
                skip->set_property ("duration", $2);
 
                $$ = skip;
@@ -1374,7 +1374,7 @@ command_element:
                Music * quote = 0;
                if (gh_vector_p (evs))
                {
-                       quote = MY_MAKE_MUSIC("QuoteMusic");
+                       quote = MY_MAKE_MUSIC ("QuoteMusic");
                        quote->set_property ("duration", $3);
                        quote->set_property ("quoted-events", evs);
                } else {
@@ -1386,38 +1386,38 @@ command_element:
        }
        | OCTAVE { THIS->push_spot (); }
          pitch {
-               Music *l = MY_MAKE_MUSIC("RelativeOctaveCheck");
+               Music *l = MY_MAKE_MUSIC ("RelativeOctaveCheck");
                $$ = l;
                $$->set_spot (THIS->pop_spot ());
                $$->set_property ("pitch", $3);
        }
        | E_LEFTSQUARE {
-               Music *l = MY_MAKE_MUSIC("LigatureEvent");
+               Music *l = MY_MAKE_MUSIC ("LigatureEvent");
                l->set_property ("span-direction", gh_int2scm (START));
                l->set_spot (THIS->here_input ());
 
-               $$ = MY_MAKE_MUSIC("EventChord");
+               $$ = MY_MAKE_MUSIC ("EventChord");
                $$->set_property ("elements", scm_cons (l->self_scm (), SCM_EOL));
-               scm_gc_unprotect_object (l->self_scm());
+               scm_gc_unprotect_object (l->self_scm ());
                $$->set_spot (THIS->here_input ());
        }
        | E_RIGHTSQUARE {
-               Music *l = MY_MAKE_MUSIC("LigatureEvent");
+               Music *l = MY_MAKE_MUSIC ("LigatureEvent");
                l->set_property ("span-direction", gh_int2scm (STOP));
                l->set_spot (THIS->here_input ());
 
-               $$ = MY_MAKE_MUSIC("EventChord");
+               $$ = MY_MAKE_MUSIC ("EventChord");
                $$->set_property ("elements", scm_cons (l->self_scm (), SCM_EOL));
                $$->set_spot (THIS->here_input ());
-               scm_gc_unprotect_object (l->self_scm());
+               scm_gc_unprotect_object (l->self_scm ());
        }
        | E_BACKSLASH {
-               $$ = MY_MAKE_MUSIC("VoiceSeparator");
+               $$ = MY_MAKE_MUSIC ("VoiceSeparator");
                $$->set_spot (THIS->here_input ());
        }
        | '|'      {
 
-               $$ = MY_MAKE_MUSIC("BarCheck");
+               $$ = MY_MAKE_MUSIC ("BarCheck");
                $$->set_spot (THIS->here_input ());
        }
        | TRANSPOSITION pitch {
@@ -1477,29 +1477,29 @@ command_element:
 
 command_req:
        BREATHE {
-               $$ = MY_MAKE_MUSIC("BreathingSignEvent");
+               $$ = MY_MAKE_MUSIC ("BreathingSignEvent");
        }
        | E_TILDE {
-               $$ = MY_MAKE_MUSIC("PesOrFlexaEvent");
+               $$ = MY_MAKE_MUSIC ("PesOrFlexaEvent");
        }
        | MARK DEFAULT  {
-               Music * m = MY_MAKE_MUSIC("MarkEvent");
+               Music * m = MY_MAKE_MUSIC ("MarkEvent");
                $$ = m;
        }
        | tempo_event {
                $$ = $1;
        }
        | KEY DEFAULT {
-               Music *key= MY_MAKE_MUSIC("KeyChangeEvent");
+               Music *key= MY_MAKE_MUSIC ("KeyChangeEvent");
                $$ = key;
        }
        | KEY NOTENAME_PITCH SCM_IDENTIFIER     {
 
-               Music *key= MY_MAKE_MUSIC("KeyChangeEvent");
+               Music *key= MY_MAKE_MUSIC ("KeyChangeEvent");
                if (scm_ilength ($3) > 0)
                {               
                        key->set_property ("pitch-alist", $3);
-                       key->set_property ("tonic", Pitch (0,0,0).smobbed_copy());
+                       key->set_property ("tonic", Pitch (0,0,0).smobbed_copy ());
                        ((Music*)key)->transpose (* unsmob_pitch ($2));
                } else {
                        THIS->parser_error (_("Second argument must be pitch list."));
@@ -1515,13 +1515,13 @@ post_events:
        }
        | post_events post_event {
                $2->set_spot (THIS->here_input ());
-               $$ = gh_cons ($2->self_scm(), $$);
-               scm_gc_unprotect_object ($2->self_scm());
+               $$ = gh_cons ($2->self_scm (), $$);
+               scm_gc_unprotect_object ($2->self_scm ());
        }
        | post_events tagged_post_event {
                $2 -> set_spot (THIS->here_input ());
-               $$ = scm_cons ($2->self_scm(), $$);
-               scm_gc_unprotect_object ($2->self_scm());
+               $$ = scm_cons ($2->self_scm (), $$);
+               scm_gc_unprotect_object ($2->self_scm ());
        }
        ;
 
@@ -1540,12 +1540,12 @@ post_event:
        | HYPHEN {
                if (!THIS->lexer_->is_lyric_state ())
                        THIS->parser_error (_ ("Have to be in Lyric mode for lyrics"));
-               $$ = MY_MAKE_MUSIC("HyphenEvent");
+               $$ = MY_MAKE_MUSIC ("HyphenEvent");
        }
        | EXTENDER {
                if (!THIS->lexer_->is_lyric_state ())
                        THIS->parser_error (_ ("Have to be in Lyric mode for lyrics"));
-               $$ = MY_MAKE_MUSIC("ExtenderEvent");
+               $$ = MY_MAKE_MUSIC ("ExtenderEvent");
        }
        | script_dir direction_reqd_event {
                if ($1)
@@ -1562,8 +1562,8 @@ post_event:
 
 string_number_event:
        E_UNSIGNED {
-               Music * s = MY_MAKE_MUSIC("StringNumberEvent");
-               s->set_property ("string-number",  gh_int2scm($1));
+               Music * s = MY_MAKE_MUSIC ("StringNumberEvent");
+               s->set_property ("string-number",  gh_int2scm ($1));
                s->set_spot (THIS->here_input ());
                $$ = s;
        }
@@ -1584,19 +1584,19 @@ configurable, i.e.
 
 */
                Music * m = MY_MAKE_MUSIC ("BeamEvent");
-               m->set_spot (THIS->here_input());
+               m->set_spot (THIS->here_input ());
                m->set_property ("span-direction" , gh_int2scm (START));
                $$ = m;
        }
        | ']'  {
                Music * m = MY_MAKE_MUSIC ("BeamEvent");
-               m->set_spot (THIS->here_input());
+               m->set_spot (THIS->here_input ());
                m->set_property ("span-direction" , gh_int2scm (STOP));
                $$ = m;
        }
        | '~' {
                Music * m = MY_MAKE_MUSIC ("TieEvent");
-               m->set_spot (THIS->here_input());
+               m->set_spot (THIS->here_input ());
                $$ = m;
        }
        | close_event {
@@ -1613,7 +1613,7 @@ configurable, i.e.
                $$ = unsmob_music ($1);
        }
        | tremolo_type  {
-               Music * a = MY_MAKE_MUSIC("TremoloEvent");
+               Music * a = MY_MAKE_MUSIC ("TremoloEvent");
                a->set_spot (THIS->here_input ());
                a->set_property ("tremolo-type", gh_int2scm ($1));
                $$ = a;
@@ -1626,7 +1626,7 @@ direction_reqd_event:
        }
        | script_abbreviation {
                SCM s = THIS->lexer_->lookup_identifier ("dash" + ly_scm2string ($1));
-               Music *a = MY_MAKE_MUSIC("ArticulationEvent");
+               Music *a = MY_MAKE_MUSIC ("ArticulationEvent");
                if (gh_string_p (s))
                        a->set_property ("articulation-type", s);
                else THIS->parser_error (_ ("Expecting string as script definition"));
@@ -1709,65 +1709,65 @@ pitch_also_in_chords:
 
 close_event:
        '('     {
-               Music * s= MY_MAKE_MUSIC("SlurEvent");
+               Music * s= MY_MAKE_MUSIC ("SlurEvent");
                $$ = s;
-               s->set_spot (THIS->here_input());
+               s->set_spot (THIS->here_input ());
        }
        | E_OPEN        {
-               Music * s= MY_MAKE_MUSIC("PhrasingSlurEvent");
+               Music * s= MY_MAKE_MUSIC ("PhrasingSlurEvent");
                $$ = s;
-               s->set_spot (THIS->here_input());
+               s->set_spot (THIS->here_input ());
        }
        | E_SMALLER {
-               Music *s =MY_MAKE_MUSIC("CrescendoEvent");
+               Music *s =MY_MAKE_MUSIC ("CrescendoEvent");
                $$ = s;
-               s->set_spot (THIS->here_input());
+               s->set_spot (THIS->here_input ());
        }
        | E_BIGGER {
-               Music *s =MY_MAKE_MUSIC("DecrescendoEvent");
+               Music *s =MY_MAKE_MUSIC ("DecrescendoEvent");
                $$ = s;
-               s->set_spot (THIS->here_input());
+               s->set_spot (THIS->here_input ());
        }
        ;
 
 
 open_event:
        E_EXCLAMATION   {
-               Music *s =  MY_MAKE_MUSIC("CrescendoEvent");
-               s->set_spot (THIS->here_input());
+               Music *s =  MY_MAKE_MUSIC ("CrescendoEvent");
+               s->set_spot (THIS->here_input ());
 
                $$ = s;
        }
        | ')'   {
-               Music * s= MY_MAKE_MUSIC("SlurEvent");
+               Music * s= MY_MAKE_MUSIC ("SlurEvent");
                $$ = s;
-               s->set_spot (THIS->here_input());
+               s->set_spot (THIS->here_input ());
 
        }
        | E_CLOSE       {
-               Music * s= MY_MAKE_MUSIC("PhrasingSlurEvent");
+               Music * s= MY_MAKE_MUSIC ("PhrasingSlurEvent");
                $$ = s;
                s->set_property ("span-type", scm_makfrom0str ( "phrasing-slur"));
-               s->set_spot (THIS->here_input());
+               s->set_spot (THIS->here_input ());
        }
        ;
 
 gen_text_def:
        full_markup {
-               Music *t = MY_MAKE_MUSIC("TextScriptEvent");
+               Music *t = MY_MAKE_MUSIC ("TextScriptEvent");
                t->set_property ("text", $1);
                t->set_spot (THIS->here_input ());
                $$ = t; 
        }
        | string {
-               Music *t = MY_MAKE_MUSIC("TextScriptEvent");
+               Music *t = MY_MAKE_MUSIC ("TextScriptEvent");
                t->set_property ("text", make_simple_markup ($1));
                t->set_spot (THIS->here_input ());
                $$ = t;
        
        }
        | DIGIT {
-               Music * t = MY_MAKE_MUSIC("FingerEvent");
+               Music * t = MY_MAKE_MUSIC ("FingerEvent");
                t->set_property ("digit",  gh_int2scm ($1));
                t->set_spot (THIS->here_input ());
                $$ = t;
@@ -1919,13 +1919,13 @@ bass_mod:
 
 bass_figure:
        FIGURE_SPACE {
-               Music *bfr = MY_MAKE_MUSIC("BassFigureEvent");
-               $$ = bfr->self_scm();
+               Music *bfr = MY_MAKE_MUSIC ("BassFigureEvent");
+               $$ = bfr->self_scm ();
                scm_gc_unprotect_object ($$);
        }
        | bass_number  {
-               Music *bfr = MY_MAKE_MUSIC("BassFigureEvent");
-               $$ = bfr->self_scm();
+               Music *bfr = MY_MAKE_MUSIC ("BassFigureEvent");
+               $$ = bfr->self_scm ();
 
                bfr->set_property ("figure", $1);
 
@@ -1969,7 +1969,7 @@ figure_list:
 
 figure_spec:
        FIGURE_OPEN figure_list FIGURE_CLOSE {
-               Music * m = MY_MAKE_MUSIC("EventChord");
+               Music * m = MY_MAKE_MUSIC ("EventChord");
                $2 = scm_reverse_x ($2, SCM_EOL);
                m->set_property ("elements",  $2);
                $$ = m->self_scm ();
@@ -1991,9 +1991,9 @@ simple_element:
 
                Music *n = 0;
                if ($6)
-                       n =  MY_MAKE_MUSIC("RestEvent");
+                       n =  MY_MAKE_MUSIC ("RestEvent");
                else
-                       n =  MY_MAKE_MUSIC("NoteEvent");
+                       n =  MY_MAKE_MUSIC ("NoteEvent");
                
                n->set_property ("pitch", $1);
                n->set_property ("duration", $5);
@@ -2009,9 +2009,9 @@ simple_element:
                if ($2 % 2 || $3 % 2)
                        n->set_property ("force-accidental", SCM_BOOL_T);
 
-               Music *v = MY_MAKE_MUSIC("EventChord");
+               Music *v = MY_MAKE_MUSIC ("EventChord");
                v->set_property ("elements", scm_list_1 (n->self_scm ()));
-               scm_gc_unprotect_object (n->self_scm());
+               scm_gc_unprotect_object (n->self_scm ());
 
                v->set_spot (i);
                n->set_spot (i);
@@ -2020,13 +2020,13 @@ simple_element:
        | DRUM_PITCH optional_notemode_duration {
                Input i = THIS->pop_spot ();
 
-               Music *n =  MY_MAKE_MUSIC("NoteEvent");
+               Music *n =  MY_MAKE_MUSIC ("NoteEvent");
                n->set_property ("duration" ,$2);
                n->set_property ("drum-type" , $1);
 
-               Music *v = MY_MAKE_MUSIC("EventChord");
+               Music *v = MY_MAKE_MUSIC ("EventChord");
                v->set_property ("elements", scm_list_1 (n->self_scm ()));
-               scm_gc_unprotect_object (n->self_scm());
+               scm_gc_unprotect_object (n->self_scm ());
                v->set_spot (i);
                n->set_spot (i);
                $$ = v;
@@ -2048,19 +2048,19 @@ simple_element:
                Music * ev = 0;
                if (ly_scm2string ($1) =="s") {
                        /* Space */
-                       ev = MY_MAKE_MUSIC("SkipEvent");
+                       ev = MY_MAKE_MUSIC ("SkipEvent");
                  }
                else {
-                       ev = MY_MAKE_MUSIC("RestEvent");
+                       ev = MY_MAKE_MUSIC ("RestEvent");
                
                    }
                ev->set_property ("duration" ,$2);
                ev->set_spot (i);
-               Music * velt = MY_MAKE_MUSIC("EventChord");
+               Music * velt = MY_MAKE_MUSIC ("EventChord");
                velt->set_property ("elements", scm_list_1 (ev->self_scm ()));
                velt->set_spot (i);
 
-               scm_gc_unprotect_object (ev->self_scm());
+               scm_gc_unprotect_object (ev->self_scm ());
 
                $$ = velt;
        }
@@ -2072,7 +2072,7 @@ simple_element:
                        proc = scm_c_eval_string ("make-multi-measure-rest");
 
                SCM mus = scm_call_2 (proc, $2,
-                       make_input (THIS->here_input()));       
+                       make_input (THIS->here_input ()));      
                scm_gc_protect_object (mus);
                $$ = unsmob_music (mus);
        }
@@ -2082,11 +2082,11 @@ simple_element:
                if (!THIS->lexer_->is_lyric_state ())
                        THIS->parser_error (_ ("Have to be in Lyric mode for lyrics"));
 
-               Music * lreq = MY_MAKE_MUSIC("LyricEvent");
+               Music * lreq = MY_MAKE_MUSIC ("LyricEvent");
                 lreq->set_property ("text", $1);
                lreq->set_property ("duration",$2);
                lreq->set_spot (i);
-               Music * velt = MY_MAKE_MUSIC("EventChord");
+               Music * velt = MY_MAKE_MUSIC ("EventChord");
                velt->set_property ("elements", scm_list_1 (lreq->self_scm ()));
 
                $$= velt;
@@ -2419,7 +2419,7 @@ My_lily_lexer::try_special_identifiers (SCM * destination, SCM sid)
                *destination = sid;
                return NUMBER_IDENTIFIER;
        } else if (unsmob_context_def (sid)) {
-               *destination = unsmob_context_def (sid)->clone_scm();
+               *destination = unsmob_context_def (sid)->clone_scm ();
                return CONTEXT_DEF_IDENTIFIER;
        } else if (unsmob_score (sid)) {
                Score *sc =  new Score (*unsmob_score (sid));
@@ -2427,19 +2427,19 @@ My_lily_lexer::try_special_identifiers (SCM * destination, SCM sid)
                return SCORE_IDENTIFIER;
        } else if (Music * mus =unsmob_music (sid)) {
                mus = mus->clone ();
-               *destination = mus->self_scm();
+               *destination = mus->self_scm ();
                unsmob_music (*destination)->
                        set_property ("origin", make_input (last_input_));
                return dynamic_cast<Event*> (mus)
                        ? EVENT_IDENTIFIER : MUSIC_IDENTIFIER;
        } else if (unsmob_duration (sid)) {
-               *destination = unsmob_duration (sid)->smobbed_copy();
+               *destination = unsmob_duration (sid)->smobbed_copy ();
                return DURATION_IDENTIFIER;
        } else if (unsmob_music_output_def (sid)) {
                Music_output_def *p = unsmob_music_output_def (sid);
                p = p->clone ();
 
-               *destination = p->self_scm();
+               *destination = p->self_scm ();
                return MUSIC_OUTPUT_DEF_IDENTIFIER;
        } else if (Text_item::markup_p (sid)) {
                *destination = sid;
@@ -2462,20 +2462,20 @@ property_op_to_music (SCM op)
        
        if (tag == ly_symbol2scm ("assign"))
                {
-               m =  MY_MAKE_MUSIC("PropertySet");
+               m =  MY_MAKE_MUSIC ("PropertySet");
                val = gh_car (args);
                }
        else if (tag == ly_symbol2scm ("unset"))
-               m =  MY_MAKE_MUSIC("PropertyUnset");
+               m =  MY_MAKE_MUSIC ("PropertyUnset");
        else if (tag == ly_symbol2scm ("poppush")
                 || tag == ly_symbol2scm ("push"))
                {
-               m  = MY_MAKE_MUSIC("OverrideProperty");
+               m  = MY_MAKE_MUSIC ("OverrideProperty");
                grob_sym = gh_car (args);
                grob_val = gh_cadr (args);
                }
        else if (tag == ly_symbol2scm ("pop")) {
-               m = MY_MAKE_MUSIC("RevertProperty");
+               m = MY_MAKE_MUSIC ("RevertProperty");
                grob_sym = gh_car (args);
                }
 
@@ -2509,7 +2509,7 @@ property_op_to_music (SCM op)
 Music*
 context_spec_music (SCM type, SCM id, Music * m, SCM ops)
 {
-       Music * csm = MY_MAKE_MUSIC("ContextSpeccedMusic");
+       Music * csm = MY_MAKE_MUSIC ("ContextSpeccedMusic");
 
        csm->set_property ("element", m->self_scm ());
        scm_gc_unprotect_object (m->self_scm ());
index 61cf5404dd95544ea3dcb1f0d9bcd7bd4be85502..a941876ef3f798aceacea6a3f2e2e8716ca63131 100644 (file)
@@ -19,7 +19,7 @@
 
 class Part_combine_engraver : public Engraver
 {
-  TRANSLATOR_DECLARATIONS(Part_combine_engraver);
+  TRANSLATOR_DECLARATIONS (Part_combine_engraver);
 
 protected:
   virtual void acknowledge_grob (Grob_info);
@@ -99,7 +99,7 @@ Part_combine_engraver::stop_translation_timestep ()
   event_ = 0;
 }
 
-ENTER_DESCRIPTION(Part_combine_engraver,
+ENTER_DESCRIPTION (Part_combine_engraver,
 /* descr */       "Part combine engraver for orchestral scores:                "
                  "Print markings a2, Solo, Solo II, and unisono ",
 /* creats*/       "CombineTextScript",
index 7927732cec3ad94aa6036190d0df4aaa3d931ac9..39e3ea2ecffc40a8230cf7dcf92e9457178d9660 100644 (file)
@@ -19,7 +19,7 @@ class Part_combine_iterator : public Music_iterator
 public:
   Part_combine_iterator ();
 
-  DECLARE_SCHEME_CALLBACK(constructor, ()); 
+  DECLARE_SCHEME_CALLBACK (constructor, ()); 
 protected:
   virtual void derived_substitute (Context *f, Context *t) ;
   virtual void derived_mark () const;
@@ -27,7 +27,7 @@ protected:
 
   virtual void construct_children ();
   virtual Moment pending_moment () const;
-  virtual void do_quit(); 
+  virtual void do_quit (); 
   virtual void process (Moment);
 
   virtual Music_iterator *try_music_in_children (Music *) const;
@@ -82,9 +82,9 @@ void
 Part_combine_iterator::derived_mark () const
 {
   if (first_iter_)
-    scm_gc_mark (first_iter_->self_scm());
+    scm_gc_mark (first_iter_->self_scm ());
   if (second_iter_)
-    scm_gc_mark(second_iter_->self_scm());
+    scm_gc_mark (second_iter_->self_scm ());
 }
 
 void
@@ -101,9 +101,9 @@ void
 Part_combine_iterator::do_quit ()
 {
   if (first_iter_)
-    first_iter_->quit();
+    first_iter_->quit ();
   if (second_iter_)
-    second_iter_->quit();
+    second_iter_->quit ();
 
   null_.set_translator (0);
   one_ .set_translator (0);
@@ -141,7 +141,7 @@ Part_combine_iterator::chords_together ()
       playing_state_ = TOGETHER;
       state_ = TOGETHER;
 
-      substitute_both (shared_.get_outlet (), shared_.get_outlet());
+      substitute_both (shared_.get_outlet (), shared_.get_outlet ());
     }
 }
 
index a7cc0f44dad243febcb2b988c6eb44dbbfd08168..3090e9b615cce4ab84fe4f5d109bbf0b7a40d555 100644 (file)
@@ -37,7 +37,7 @@ class Percent_repeat_engraver : public Engraver
 {
   void typeset_perc ();
 public:
-  TRANSLATOR_DECLARATIONS(Percent_repeat_engraver);
+  TRANSLATOR_DECLARATIONS (Percent_repeat_engraver);
 protected:
   Repeated_music * repeat_;
 
@@ -136,12 +136,12 @@ Percent_repeat_engraver::process_music ()
          perc_ = make_spanner ("PercentRepeat");
          SCM col =get_property ("currentCommandColumn");
          perc_->set_bound (LEFT, unsmob_grob (col));
-         announce_grob(perc_, repeat_->self_scm());
+         announce_grob (perc_, repeat_->self_scm ());
        }
       else if (repeat_sign_type_ == DOUBLE_MEASURE)
        {
          double_percent_ = make_item ("DoublePercentRepeat");
-         announce_grob(double_percent_, repeat_->self_scm());
+         announce_grob (double_percent_, repeat_->self_scm ());
 
       /*
        forbid breaks on a % line. Should forbid all breaks, really.
@@ -213,7 +213,7 @@ Percent_repeat_engraver::stop_translation_timestep ()
 
 
 
-ENTER_DESCRIPTION(Percent_repeat_engraver,
+ENTER_DESCRIPTION (Percent_repeat_engraver,
 /* descr */       "Make whole bar and double bar repeats.",
 /* creats*/       "PercentRepeat DoublePercentRepeat",
 /* accepts */     "repeated-music",
index f927b923f8b8188c1c2b7338bff87d14057d46e9..2c0ae42d2023f4dc2317f52ad2a3a8fd14a7df28 100644 (file)
@@ -57,7 +57,7 @@ Percent_repeat_item_interface::x_percent (Grob *me, int count,
   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)
 {
@@ -67,7 +67,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)
 {
index 8bb34c4e662505d7d9d67e3697a6bea71ead04fb..bd7a36b9a0a62de8e507236338eda0c21de7a2d1 100644 (file)
@@ -20,10 +20,10 @@ Percent_repeat_iterator::Percent_repeat_iterator ()
 }
 
 void
-Percent_repeat_iterator::do_quit()
+Percent_repeat_iterator::do_quit ()
 {
   if (child_iter_)
-    child_iter_->quit();
+    child_iter_->quit ();
 }
 
 bool
@@ -58,7 +58,7 @@ Percent_repeat_iterator::process (Moment m)
 
   if (finish_mom_ <= m )
     {
-      child_iter_->quit(); 
+      child_iter_->quit (); 
       child_iter_ = 0;
     }
 }
@@ -79,14 +79,14 @@ Percent_repeat_iterator::try_music_in_children (Music *m) const
 }
 
 void
-Percent_repeat_iterator::derived_mark()const
+Percent_repeat_iterator::derived_mark ()const
 {
   if (child_iter_)
-    scm_gc_mark (child_iter_->self_scm());
+    scm_gc_mark (child_iter_->self_scm ());
 }
 
 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);
index 6844cce7a6a766437d7917b893585be7bb446c8e..8a097964307c95506a4b3c7741af0bcefc7553f2 100644 (file)
@@ -13,7 +13,7 @@
 #include "warn.hh"
 
 
-ENTER_DESCRIPTION(Performer_group_performer,
+ENTER_DESCRIPTION (Performer_group_performer,
 /* descr */       "",
 /* creats*/       "",
 /* accepts */     "",
@@ -67,7 +67,7 @@ Performer_group_performer::do_announces ()
     }
 }
 
-Performer_group_performer::Performer_group_performer()
+Performer_group_performer::Performer_group_performer ()
 {
 }
 
index 9ae400b2b650ea708756c9481ec922fdc5b5717a..f6779595e28d6881cfd81065045e31a27cb48d54 100644 (file)
@@ -37,7 +37,7 @@ protected:
   virtual void process_acknowledged_grobs ();
 
 public:
-  TRANSLATOR_DECLARATIONS(Phrasing_slur_engraver);
+  TRANSLATOR_DECLARATIONS (Phrasing_slur_engraver);
   
 };
 
@@ -143,7 +143,7 @@ Phrasing_slur_engraver::process_acknowledged_grobs ()
 
          start_phrasing_slurs.push (phrasing_slur);
          eventses_.push (phrasing_slur_ev);
-         announce_grob(phrasing_slur, phrasing_slur_ev->self_scm());
+         announce_grob (phrasing_slur, phrasing_slur_ev->self_scm ());
        }
     }
   for (int i=0; i < start_phrasing_slurs.size (); i++)
@@ -169,7 +169,7 @@ Phrasing_slur_engraver::start_translation_timestep ()
 
 
 
-ENTER_DESCRIPTION(Phrasing_slur_engraver,
+ENTER_DESCRIPTION (Phrasing_slur_engraver,
 /* descr */       "Print phrasing slurs. Similar to @ref{Slur_engraver}",
 /* creats*/       "PhrasingSlur",
 /* accepts */     "phrasing-slur-event",
index 26dbbc790d1bc930cbf93b503320b5719b2cb27b..52afd47c530f2f1c8c67d6066926b4df7dc5fb47 100644 (file)
@@ -14,12 +14,12 @@ 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)
 {
@@ -35,7 +35,7 @@ Piano_pedal_bracket::print (SCM smob)
 
   Grob *common = me->get_bound (LEFT)
     ->common_refpoint (me->get_bound (RIGHT), X_AXIS);
-  Grob *textbit = unsmob_grob (me->get_property("pedal-text"));
+  Grob *textbit = unsmob_grob (me->get_property ("pedal-text"));
 
   if (textbit)
     common = common->common_refpoint (textbit, X_AXIS);
index 234cd5c85237f66a7b212856fa991687e70130a9..b26d280600057a5530f7aa5ac19b5deaad846452 100644 (file)
@@ -238,7 +238,7 @@ Piano_pedal_engraver::create_text_grobs (Pedal_info *p, bool mixed)
 
       String msg = _ ("Need 3 strings for piano pedals. No pedal made. ");
       if (m)
-       m->origin()->warning (msg);
+       m->origin ()->warning (msg);
       else
        warning (msg);
       
@@ -272,7 +272,7 @@ Piano_pedal_engraver::create_text_grobs (Pedal_info *p, bool mixed)
            {
              s = ly_caddr (strings);
              if (previous_.size ())
-               previous_.pop();
+               previous_.pop ();
            }
          p->start_ev_ = 0;
        }
@@ -329,8 +329,8 @@ Piano_pedal_engraver::create_bracket_grobs (Pedal_info *p, bool mixed)
     {
       if (!p->event_drul_[START])
        {
-         if (previous_.size())
-           previous_.pop();
+         if (previous_.size ())
+           previous_.pop ();
        }
       
       assert (!p->finished_bracket_); 
@@ -421,8 +421,8 @@ Piano_pedal_engraver::create_bracket_grobs (Pedal_info *p, bool mixed)
 
            // position new pedal spanner below the current one
          */
-         if (previous_.size()) 
-           Side_position_interface::add_support (p->line_spanner_, previous_.top());
+         if (previous_.size ()) 
+           Side_position_interface::add_support (p->line_spanner_, previous_.top ());
 
          previous_.push (p->line_spanner_);    
        }
@@ -441,7 +441,7 @@ Piano_pedal_engraver::finalize ()
        suicide?
        */
       if (p->line_spanner_
-         && !p->line_spanner_->live())
+         && !p->line_spanner_->live ())
        p->line_spanner_ = 0;
       
       if (p->line_spanner_)
@@ -450,7 +450,7 @@ Piano_pedal_engraver::finalize ()
          typeset_all ();
        }
       if (p->bracket_
-         && !p->bracket_->live())
+         && !p->bracket_->live ())
        p->bracket_ = 0;
       
       if (p->bracket_)
@@ -498,7 +498,7 @@ Piano_pedal_engraver::typeset_all ()
          && !p->finished_line_spanner_->live ())
        p->finished_line_spanner_ = 0;
       if (p->finished_bracket_
-         && !p->finished_bracket_->live())
+         && !p->finished_bracket_->live ())
        p->finished_bracket_ = 0;
 
 
index f9b1aca616ec35d5d419cc26e901548166a2357e..af5d54f06548543ad7be9d05424801ce810793c5 100644 (file)
@@ -24,7 +24,7 @@ class Piano_pedal_performer : public Performer
   };
 
 public:
-  TRANSLATOR_DECLARATIONS(Piano_pedal_performer);
+  TRANSLATOR_DECLARATIONS (Piano_pedal_performer);
   ~Piano_pedal_performer ();
   
 protected:
index e3641fa121beb616a194e71c6d8f32f191b3481d..d2b8f8d3f22833e0a033c4e93619d59e32fc99aa 100644 (file)
@@ -13,7 +13,7 @@
 
 class Pitch_squash_engraver : public Engraver {
 public:
-  TRANSLATOR_DECLARATIONS(Pitch_squash_engraver);
+  TRANSLATOR_DECLARATIONS (Pitch_squash_engraver);
   virtual void acknowledge_grob (Grob_info);
 };
 
@@ -31,11 +31,11 @@ Pitch_squash_engraver::acknowledge_grob (Grob_info i)
 
 
 
-Pitch_squash_engraver::Pitch_squash_engraver()
+Pitch_squash_engraver::Pitch_squash_engraver ()
 {
 }
 
-ENTER_DESCRIPTION(Pitch_squash_engraver,
+ENTER_DESCRIPTION (Pitch_squash_engraver,
 /* descr */       
                  "Set the vertical position of noteheads to "
                  "@code{squashedPosition}, if that "
index 84c237cbcd42ec244065b41a23bd9244aaea1d06..def29de765d6b7a090fd988da1e9a95f1754ed0c 100644 (file)
@@ -11,7 +11,7 @@
 #include "context-def.hh"
 #include "global-context.hh"
 
-bool check_grob(Music *mus, SCM sym);
+bool check_grob (Music *mus, SCM sym);
 
 /**
    There is no real processing to a property: just lookup the
@@ -43,9 +43,9 @@ 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 )
+Property_iterator::once_finalization (SCM translator, SCM music )
 {
   Music * m = unsmob_music (music);
   Context * tg
@@ -61,8 +61,8 @@ Property_iterator::do_quit ()
 {
   if (to_boolean (get_music ()->get_property  ("once")))
     {
-      SCM trans = get_outlet ()->self_scm();
-      SCM music = get_music()->self_scm();
+      SCM trans = get_outlet ()->self_scm ();
+      SCM music = get_music ()->self_scm ();
 
       Global_context * tg = get_outlet ()->get_global_context ();
       tg->add_finalization (scm_list_n (once_finalization_proc,
@@ -78,7 +78,7 @@ SCM list_p = 0;
   property is a list.
  */
 bool
-check_grob(Music *mus, SCM sym)
+check_grob (Music *mus, SCM sym)
 {
   if (!list_p)
     {
@@ -91,7 +91,7 @@ check_grob(Music *mus, SCM sym)
 
   if (!ok)
     {
-      mus->origin()->warning (_f("Not a grob name, `%s'." , ly_symbol2string (sym)));
+      mus->origin ()->warning (_f ("Not a grob name, `%s'." , ly_symbol2string (sym)));
     }
   return  ok;
 }
@@ -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)
 {
@@ -137,8 +137,8 @@ Push_property_iterator::do_quit ()
 {
   if (to_boolean (get_music ()->get_property  ("once")))
     {
-      SCM trans = get_outlet ()->self_scm();
-      SCM music = get_music ()->self_scm();
+      SCM trans = get_outlet ()->self_scm ();
+      SCM music = get_music ()->self_scm ();
 
       Global_context * tg=  get_outlet ()->get_global_context ();
       tg->add_finalization (scm_list_n (once_finalization_proc,
index 8b4a7d59ec00e0aa7658bfca99de97ba2117ba8f..0dc72104854192d25f9d84cf80fec49302307f0f 100644 (file)
@@ -29,7 +29,7 @@ public:
 
   SCM transposed_musics_;
   
-  DECLARE_SCHEME_CALLBACK(constructor, ()); 
+  DECLARE_SCHEME_CALLBACK (constructor, ()); 
 
 protected:
   virtual void derived_mark ();
@@ -72,7 +72,7 @@ binsearch_scm_vector (SCM vec, SCM key, bool (*is_less)(SCM a,SCM b))
   {
     int cmp = (lo + hi) / 2;
 
-      SCM when = gh_caar (SCM_VECTOR_REF(vec, cmp));
+      SCM when = gh_caar (SCM_VECTOR_REF (vec, cmp));
       bool result =  (*is_less) (key, when);
       if (result)
           hi = cmp;
@@ -178,7 +178,7 @@ Quote_iterator::process (Moment m)
              bool b = get_outlet ()->try_music (mus);
       
              if (!b)
-               mus->origin ()->warning (_f ("In quotation: junking event %s", mus->name()));
+               mus->origin ()->warning (_f ("In quotation: junking event %s", mus->name ()));
            }
          else
            programming_error ("need music in quote.");
index 0b8b87da00031f9c35bcb3f97eb3de82ac016ef6..16dce1646867eb259ca67fb9d1114ade84977d81 100644 (file)
@@ -15,7 +15,7 @@ class Recording_group_engraver : public Engraver_group_engraver
 {
   void start ();
 public:
-  TRANSLATOR_DECLARATIONS(Recording_group_engraver);
+  TRANSLATOR_DECLARATIONS (Recording_group_engraver);
   virtual bool try_music (Music *m);
   virtual void start_translation_timestep ();
   virtual void stop_translation_timestep ();
@@ -31,19 +31,19 @@ Recording_group_engraver::initialize ()
   start ();
 }
 
-Recording_group_engraver::Recording_group_engraver()
+Recording_group_engraver::Recording_group_engraver ()
 {
 }
 
 void
 Recording_group_engraver::start_translation_timestep ()
 {
-  Engraver_group_engraver::start_translation_timestep();
+  Engraver_group_engraver::start_translation_timestep ();
 
 
   /*
-    We have to do this both in initialize() and
-    start_translation_timestep(), since start_translation_timestep()
+    We have to do this both in initialize () and
+    start_translation_timestep (), since start_translation_timestep ()
     isn't called on the first time-step.
    */
   start () ;
@@ -68,7 +68,7 @@ Recording_group_engraver::start ()
 void
 Recording_group_engraver::stop_translation_timestep ()
 {
-  Engraver_group_engraver::stop_translation_timestep();
+  Engraver_group_engraver::stop_translation_timestep ();
   scm_set_cdr_x (accumulator_, gh_cons (gh_car (accumulator_), gh_cdr (accumulator_)));
 
   scm_set_car_x (accumulator_, SCM_EOL);
@@ -81,7 +81,7 @@ Recording_group_engraver::finalize ()
   SCM proc = get_property ("recordEventSequence");
 
   if (gh_procedure_p (proc))
-    scm_call_2  (proc, daddy_context_->self_scm(), gh_cdr (accumulator_));
+    scm_call_2  (proc, daddy_context_->self_scm (), gh_cdr (accumulator_));
 
   accumulator_ = SCM_EOL;
 }
@@ -92,7 +92,7 @@ Recording_group_engraver::try_music (Music  *m)
   bool retval = Translator_group::try_music (m);
 
   SCM seq = gh_cdar (accumulator_);
-  seq = gh_cons (gh_cons  (m->self_scm(), gh_bool2scm (retval)),
+  seq = gh_cons (gh_cons  (m->self_scm (), gh_bool2scm (retval)),
                 seq);
   
   scm_set_cdr_x  (gh_car (accumulator_), seq);
@@ -101,7 +101,7 @@ Recording_group_engraver::try_music (Music  *m)
 }
 
 
-ENTER_DESCRIPTION(Recording_group_engraver,
+ENTER_DESCRIPTION (Recording_group_engraver,
                  "Engraver_group_engraver that records all music events "
                  "for this context. Calls the procedure "
                  "in @code{recordEventSequence} when finished.",
index 51de14b84955dd53f51b2842ca9a2d521799fecc..fedc58b9be1b4c5ee4bcf42401ce8ae64f0eea0f 100644 (file)
@@ -16,7 +16,7 @@ Relative_octave_check::to_relative_octave (Pitch p)
     {
       Pitch no_octave (-1,
                       check_p->get_notename (),
-                      check_p->get_alteration());
+                      check_p->get_alteration ());
 
       Pitch result = no_octave.to_relative_octave (p);
 
@@ -35,4 +35,4 @@ Relative_octave_check::to_relative_octave (Pitch p)
                 p.get_notename (), p.get_alteration ());
 }
 
-ADD_MUSIC(Relative_octave_check);
+ADD_MUSIC (Relative_octave_check);
index 11619e2b784b4bfa9e401dbc941a3c601b79cb91..0b3752eecdc79f7c278741303abb1f8ef689f966 100644 (file)
@@ -27,7 +27,7 @@
 class Repeat_acknowledge_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Repeat_acknowledge_engraver);
+  TRANSLATOR_DECLARATIONS (Repeat_acknowledge_engraver);
 
   virtual void start_translation_timestep ();
   virtual void process_music ();
@@ -109,7 +109,7 @@ Repeat_acknowledge_engraver::process_music ()
     }
 }
 
-ENTER_DESCRIPTION(Repeat_acknowledge_engraver,
+ENTER_DESCRIPTION (Repeat_acknowledge_engraver,
 /* descr */       "Acknowledge repeated music, and convert the contents of "
 "repeatCommands ainto an appropriate setting for whichBar.",
 /* creats*/       "",
index 27070c9032da45472d3e782c190f0a27a5b12d59..37bcfd3de9e5861dbdb4d2c79e0b138ad20625d1 100644 (file)
@@ -168,10 +168,10 @@ Repeated_music::minimum_start (SCM m)
   Music * body = unsmob_music (me->get_property ("element"));
 
   if (body)
-    return body->start_mom ().smobbed_copy();
+    return body->start_mom ().smobbed_copy ();
   else
     {
-      return Music_sequence::minimum_start (me->get_property ("elements")).smobbed_copy();
+      return Music_sequence::minimum_start (me->get_property ("elements")).smobbed_copy ();
     }
 }
 
index 893a781501311fceb53f3ccc938ee01fc50c6cc2..149ad7983122ba9efb576e072add9b570b0e6570 100644 (file)
@@ -21,7 +21,7 @@ protected:
   virtual void process_acknowledged_grobs ();
   virtual void stop_translation_timestep ();
 public:
-  TRANSLATOR_DECLARATIONS(Rest_collision_engraver);  
+  TRANSLATOR_DECLARATIONS (Rest_collision_engraver);  
 };
 
 Rest_collision_engraver::Rest_collision_engraver ()
@@ -42,7 +42,7 @@ Rest_collision_engraver::process_acknowledged_grobs ()
 
   rest_collision_ = make_item ("RestCollision");
 
-  announce_grob(rest_collision_, SCM_EOL);
+  announce_grob (rest_collision_, SCM_EOL);
   for (int i=0; i < note_columns_.size (); i++)
     Rest_collision::add_column (rest_collision_,note_columns_[i]);
 }
@@ -70,7 +70,7 @@ Rest_collision_engraver::stop_translation_timestep ()
   rest_count_ = 0;
 }
 
-ENTER_DESCRIPTION(Rest_collision_engraver,
+ENTER_DESCRIPTION (Rest_collision_engraver,
 /* descr */       "Handles collisions of rests.",
 /* creats*/       "RestCollision",
 /* accepts */     "",
index c89715c5b9e29a36e59b613b09bdcdf60f290cef..b87a913cb1ff96f023419f90754fc01241e81388 100644 (file)
@@ -25,7 +25,7 @@ protected:
   virtual void process_music ();
 
 public:
-  TRANSLATOR_DECLARATIONS(Rest_engraver);
+  TRANSLATOR_DECLARATIONS (Rest_engraver);
 };
 
 
@@ -100,7 +100,7 @@ Rest_engraver::process_music ()
          rest_->set_property ("staff-position", gh_int2scm (pos));
        }
       
-      announce_grob(rest_, rest_req_->self_scm());
+      announce_grob (rest_, rest_req_->self_scm ());
     }
 }
 
@@ -115,7 +115,7 @@ Rest_engraver::try_music (Music *m)
   return false;
 }
 
-ENTER_DESCRIPTION(Rest_engraver,
+ENTER_DESCRIPTION (Rest_engraver,
 /* descr */       "",
 /* creats*/       "Rest Dots",
 /* accepts */     "rest-event",
index a7475e452e2c4b7bba4ba0e2a56c0160f63275c4..16b5032ec1baccb7d375167709f0d3b84e7f93ba 100644 (file)
@@ -24,7 +24,7 @@ Rest::after_line_breaking (SCM smob)
   int bt = gh_scm2int (me->get_property ("duration-log"));
   int lc = Staff_symbol_referencer::line_count (me);
   Real ss = Staff_symbol_referencer::staff_space (me);
-  if(lc % 2)
+  if (lc % 2)
     {
       if (bt == 0 && lc > 1)
        {
@@ -140,7 +140,7 @@ Rest::brew_internal_stencil (SCM smob)
       me->warning (_f ("rest `%s' not found, ", font_char.to_str0 ()));
     }
 
-  return out.smobbed_copy();
+  return out.smobbed_copy ();
 }
 
 SCM 
@@ -170,7 +170,7 @@ Rest::polyphonic_offset_callback (SCM smob, SCM)
 
   Direction d = get_grob_direction (me);
   Real off = 2* d ;
-  if(off)
+  if (off)
     off *= Staff_symbol_referencer::staff_space (me);
   return gh_double2scm (off);
 }
index d2ef56522fdd32f77d83050cbf19e0e3ddf4f23b..5e4b5385b82e4612547a80673570db9824a3bb7a 100644 (file)
@@ -55,7 +55,7 @@ class Rhythmic_column_engraver :public Engraver
   Grob * last_spacing_;
   Grob * spacing_;
   
-  TRANSLATOR_DECLARATIONS(Rhythmic_column_engraver);
+  TRANSLATOR_DECLARATIONS (Rhythmic_column_engraver);
 protected:
 
   virtual void acknowledge_grob (Grob_info);
@@ -84,7 +84,7 @@ Rhythmic_column_engraver::process_acknowledged_grobs ()
       if (!note_column_)
        {
          note_column_ = make_item ("NoteColumn");
-         announce_grob(note_column_, rheads_[0]->self_scm ());
+         announce_grob (note_column_, rheads_[0]->self_scm ());
 
          spacing_ = make_item ("NoteSpacing");
          spacing_->set_property ("left-items", gh_cons (note_column_->self_scm (), SCM_EOL));
@@ -170,7 +170,7 @@ Rhythmic_column_engraver::stop_translation_timestep ()
 
 
 
-ENTER_DESCRIPTION(Rhythmic_column_engraver,
+ENTER_DESCRIPTION (Rhythmic_column_engraver,
 /* descr */       "Generates NoteColumn, an objects that groups stems, noteheads and rests.",
 /* creats*/       "NoteColumn NoteSpacing",
 /* accepts */     "",
index 9fbd7c5153ae5408c7f5a806f24619096f4813ec..bc0874392ffa33ae531b014428e6ed623fcadc64 100644 (file)
@@ -19,7 +19,7 @@ copy_scm_hashes (SCM dest, SCM src)
 {
   int k = 0;
   for (int i = SCM_VECTOR_LENGTH (src); i--;)
-    for (SCM s = scm_vector_ref (src, SCM_MAKINUM (i)); ly_pair_p(s); s = ly_cdr (s))
+    for (SCM s = scm_vector_ref (src, SCM_MAKINUM (i)); ly_pair_p (s); s = ly_cdr (s))
       {
        scm_hashq_set_x (dest, ly_caar (s), ly_cdar (s));
        k++;
@@ -71,7 +71,7 @@ Scheme_hash_table::print_smob (SCM s, SCM p, scm_print_state*)
 {
   assert (unsmob (s));
   char str[1000];
-  sprintf (str, "#<Scheme_hash_table 0x%0lx ", SCM_UNPACK(s));
+  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);        
@@ -128,7 +128,7 @@ Scheme_hash_table::get (SCM k)const
   /*
     42 will stick out like a sore thumb, hopefully.
    */
-  return scm_hashq_ref (hash_tab_, k, SCM_MAKINUM(42));
+  return scm_hashq_ref (hash_tab_, k, SCM_MAKINUM (42));
 }
 
 void
@@ -150,7 +150,7 @@ Scheme_hash_table::to_alist () const
 {
   SCM l = SCM_EOL;
   for (int i = SCM_VECTOR_LENGTH (hash_tab_); i--;)
-    for (SCM s = scm_vector_ref (hash_tab_, gh_int2scm (i)); ly_pair_p(s); s = ly_cdr (s))
+    for (SCM s = scm_vector_ref (hash_tab_, gh_int2scm (i)); ly_pair_p (s); s = ly_cdr (s))
       {
        l = scm_acons (ly_caar (s), ly_cdar (s), l);
       }
index 64302127c80ba53bc6902eef670578c49b7653e3..3a3ce3edb3eaecaaa064ce77c2d3eefed948d0e4 100644 (file)
@@ -118,7 +118,7 @@ LY_DEFINE (ly_set_option, "ly:set-option", 1, 1, 0, (SCM var, SCM val),
     }
   else if (var == ly_symbol2scm ("parse-protect" ))
     {
-      parse_protect_global = to_boolean(val);
+      parse_protect_global = to_boolean (val);
     }
   else if (var == ly_symbol2scm ("internal-type-checking"))
     {
index 4048df84de64d921464896cc9b5effed92ff39ac..0ffef5660ef1720455fd9daa6126fa83d4482b7b 100644 (file)
@@ -32,7 +32,7 @@ Score_context::one_time_step ()
 {
   Translator*  t = unsmob_translator (implementation_);
   Score_translator * s = dynamic_cast<Score_translator *> (t);
-  s->one_time_step();
+  s->one_time_step ();
 }
 
 
index e69db174c924b3bba04cb306a3174c81df2719d1..5eef0cb6ee1e44534c3a7c3d9acae1adb66789a3 100644 (file)
@@ -98,7 +98,7 @@ Score_engraver::finish ()
 void
 Score_engraver::initialize ()
 {
-  Font_metric *fm = all_fonts_global->find_afm("feta20");
+  Font_metric *fm = all_fonts_global->find_afm ("feta20");
   if (!fm)
     error (_f ("can't find `%s'", "feta20.afm")
           + "\n" +_ ("Fonts have not been installed properly.  Aborting"));
@@ -183,7 +183,7 @@ Score_engraver::typeset_all ()
                /* don't warn for empty/suicided spanners,
                   it makes real warningsinvisible.
                   maybe should be junked earlier? */
-               if (!elem->live())
+               if (!elem->live ())
                  ; // gdb hook
                else
                  elem->warning (_f ("unbound spanner `%s'", s->name ().to_str0 ()));
@@ -312,7 +312,7 @@ Score_engraver::acknowledge_grob (Grob_info gi)
 
 
 
-ENTER_DESCRIPTION(Score_engraver,
+ENTER_DESCRIPTION (Score_engraver,
 /* descr */       "Top level engraver. Takes care of generating columns and the complete  system (ie. System) "
 "\n\n "
 "This engraver decides whether a column is breakable. The default is "
index 927563a5759f0699f2096cf4c5bd3132cd5fa2b4..909ca131ac1bca67cc40cecc85eddeb08ec1bbd6 100644 (file)
@@ -18,7 +18,7 @@
 
 
 
-ENTER_DESCRIPTION(Score_performer,
+ENTER_DESCRIPTION (Score_performer,
 /* descr */       "",
 /* creats*/       "",
 /* accepts */     "",
index 04f0aa013e7acc3701f1dcec4eb7aef2c0f5d161..4350d8854a0bc531b0cd9ab58ca054dcf7a078b4 100644 (file)
@@ -98,7 +98,7 @@ Score::Score (Score const &s)
 
 
 
-LY_DEFINE(ly_run_translator, "ly:run-translator", 
+LY_DEFINE (ly_run_translator, "ly:run-translator", 
          2, 0, 0,
          (SCM mus, SCM output_def),
          "Process @var{mus} according to @var{output_def}. A interpretation "
@@ -136,7 +136,7 @@ LY_DEFINE(ly_run_translator, "ly:run-translator",
     }
 
   trans->run_iterator_on_me (iter);
-  iter->quit();
+  iter->quit ();
   scm_remember_upto_here_1 (protected_iter);
   trans->finish ();
 
@@ -148,7 +148,7 @@ LY_DEFINE(ly_run_translator, "ly:run-translator",
 }
 
 
-LY_DEFINE(ly_render_output, "ly:render-output",
+LY_DEFINE (ly_render_output, "ly:render-output",
          3,0,0,
          (SCM context, SCM header, SCM out_filename),
          "Given a Score context in its final state, calculate the output, "
@@ -157,11 +157,11 @@ LY_DEFINE(ly_render_output, "ly:render-output",
 {
   Global_context * gt = dynamic_cast<Global_context *> (unsmob_context (context));
   
-  SCM_ASSERT_TYPE(gt, context, SCM_ARG1, __FUNCTION__,
+  SCM_ASSERT_TYPE (gt, context, SCM_ARG1, __FUNCTION__,
                  "Global context");
-  SCM_ASSERT_TYPE(ly_module_p(header), header, SCM_ARG2, __FUNCTION__,
+  SCM_ASSERT_TYPE (ly_module_p (header), header, SCM_ARG2, __FUNCTION__,
                  "module");
-  SCM_ASSERT_TYPE(gh_string_p (out_filename), out_filename, SCM_ARG3, __FUNCTION__,
+  SCM_ASSERT_TYPE (gh_string_p (out_filename), out_filename, SCM_ARG3, __FUNCTION__,
                  "output filename");
 
   Music_output * output = gt->get_output ();
index 45a2d4d6b01715d6d365270c0cf8fce3bd842f6b..9fd77afb47abe14d7a1ea4f52aa922c4c66146e8 100644 (file)
@@ -21,7 +21,7 @@ class Script_column_engraver : public Engraver
   Link_array<Item> scripts_;
 
 public:
-  TRANSLATOR_DECLARATIONS(Script_column_engraver);
+  TRANSLATOR_DECLARATIONS (Script_column_engraver);
 protected:
   virtual void acknowledge_grob (Grob_info);
   virtual void process_acknowledged_grobs ();
@@ -65,7 +65,7 @@ Script_column_engraver::process_acknowledged_grobs ()
   if (!scol_ && scripts_.size () > 1)
     {
       scol_ = make_item ("ScriptColumn");
-      announce_grob(scol_, SCM_EOL);
+      announce_grob (scol_, SCM_EOL);
     }
 
   if (scol_)
@@ -77,7 +77,7 @@ Script_column_engraver::process_acknowledged_grobs ()
 
 }
 
-ENTER_DESCRIPTION(Script_column_engraver,
+ENTER_DESCRIPTION (Script_column_engraver,
 /* descr */       "",
 /* creats*/       "ScriptColumn",
 /* accepts */     "",
index 19eddfed095219fbed0881b5d4a3f2e33b002908..542f59fcc9e3d37875386275c5815258af83134c 100644 (file)
@@ -32,7 +32,7 @@ class Script_engraver : public Engraver
 {
   Array<Script_tuple> scripts_;
 public:
-  TRANSLATOR_DECLARATIONS(Script_engraver);
+  TRANSLATOR_DECLARATIONS (Script_engraver);
 protected:
   virtual bool try_music (Music*);
   virtual void stop_translation_timestep ();
@@ -146,7 +146,7 @@ Script_engraver::process_music ()
        p->set_property ("direction", force_dir);
       
       if (p)
-       announce_grob (p, l->self_scm());
+       announce_grob (p, l->self_scm ());
     }
 }
 
@@ -231,9 +231,9 @@ Script_engraver::stop_translation_timestep ()
 
 
 
-Script_engraver::Script_engraver(){}
+Script_engraver::Script_engraver (){}
 
-ENTER_DESCRIPTION(Script_engraver,
+ENTER_DESCRIPTION (Script_engraver,
 /* descr */       "Handles note scripted articulations.",
 /* creats*/       "Script",
 /* accepts */     "script-event articulation-event",
index 88a07d6d7225f9d3f624cad00b2ff7e535b6c2be..a6100f17a1c51e66e6ebb8f527d17d5d125c6804 100644 (file)
@@ -28,9 +28,9 @@ Separating_group_spanner::find_rods (Item * r, SCM next, Real padding)
     return; 
 
 
-  for(; gh_pair_p (next); next = ly_cdr (next))
+  for (; gh_pair_p (next); next = ly_cdr (next))
     {
-      Item *l = dynamic_cast<Item*> (unsmob_grob (ly_car( next)));
+      Item *l = dynamic_cast<Item*> (unsmob_grob (ly_car ( next)));
       Item *lb = l->find_prebroken_piece (RIGHT);
 
       if (lb)
index 59fdc721196d1484414774c876510bbcf66f2d26..93b3ccdda3420ae56f14a9573eb726f87b146fb5 100644 (file)
@@ -36,7 +36,7 @@ struct Spacings
   }
   void clear () {
     staff_spacing_ = 0;
-    note_spacings_.clear();
+    note_spacings_.clear ();
   }
 };
 
@@ -59,7 +59,7 @@ protected:
   virtual void stop_translation_timestep ();
   virtual void start_translation_timestep ();  
 public:
-  TRANSLATOR_DECLARATIONS(Separating_line_group_engraver);
+  TRANSLATOR_DECLARATIONS (Separating_line_group_engraver);
 };
 
 Separating_line_group_engraver::Separating_line_group_engraver ()
@@ -77,7 +77,7 @@ Separating_line_group_engraver::process_music ()
     {
       sep_span_ = make_spanner ("SeparatingGroupSpanner");
 
-      announce_grob(sep_span_, SCM_EOL);
+      announce_grob (sep_span_, SCM_EOL);
       sep_span_->set_bound (LEFT, unsmob_grob (get_property ("currentCommandColumn")));
     }
 }
@@ -94,14 +94,14 @@ Separating_line_group_engraver::finalize ()
   typeset_grob (sep_span_);
   sep_span_ =0;
 
-  for  (int i= 0 ; i < last_spacings_.note_spacings_.size(); i++)
+  for  (int i= 0 ; i < last_spacings_.note_spacings_.size (); i++)
     {
       Pointer_group_interface::add_grob (last_spacings_.note_spacings_[i],
                                         ly_symbol2scm ("right-items" ),
                                         column);
     }
    
-  if(last_spacings_.staff_spacing_
+  if (last_spacings_.staff_spacing_
      && last_spacings_.staff_spacing_->get_column () == column)
     {
       last_spacings_.staff_spacing_->suicide ();
@@ -116,7 +116,7 @@ Separating_line_group_engraver::acknowledge_grob (Grob_info i)
     return;
   if (it->get_parent (X_AXIS)
       && it->get_parent (X_AXIS)
-      ->has_extent_callback(Axis_group_interface::group_extent_callback_proc, X_AXIS))
+      ->has_extent_callback (Axis_group_interface::group_extent_callback_proc, X_AXIS))
     return;
 
   
@@ -142,7 +142,7 @@ Separating_line_group_engraver::acknowledge_grob (Grob_info i)
          p_ref_->set_property ("breakable", SCM_BOOL_T);
          daddy_context_->set_property ("breakableSeparationItem", p_ref_->self_scm ());
        }
-      announce_grob(p_ref_, SCM_EOL);
+      announce_grob (p_ref_, SCM_EOL);
 
       if (p_ref_ == break_item_)
        {
@@ -150,7 +150,7 @@ Separating_line_group_engraver::acknowledge_grob (Grob_info i)
          current_spacings_.staff_spacing_ = it;
          it->set_property ("left-items", gh_cons (break_item_->self_scm (), SCM_EOL));
          
-         announce_grob(it, SCM_EOL);
+         announce_grob (it, SCM_EOL);
 
          if (int i = last_spacings_.note_spacings_.size ())
            {
@@ -164,7 +164,7 @@ Separating_line_group_engraver::acknowledge_grob (Grob_info i)
            {
              
              last_spacings_.staff_spacing_->set_property ("right-items",
-                                                               gh_cons (break_item_->self_scm(), SCM_EOL));
+                                                               gh_cons (break_item_->self_scm (), SCM_EOL));
            }
        }
     }
@@ -223,7 +223,7 @@ Separating_line_group_engraver::stop_translation_timestep ()
 }
 
 
-ENTER_DESCRIPTION(Separating_line_group_engraver,
+ENTER_DESCRIPTION (Separating_line_group_engraver,
 /* descr */       "Generates objects for computing spacing parameters.",
 /* creats*/       "SeparationItem SeparatingGroupSpanner",
 /* accepts */     "",
index f1c8fee84d2ad306cc4f35aad2e7c875b57e78ed..6aed08927c306cd3c1b68b552a577229913989ae 100644 (file)
@@ -55,7 +55,7 @@ void
 Sequential_iterator::do_quit ()
 {
   if (iter_)
-    iter_->quit();
+    iter_->quit ();
 }
 
 
@@ -65,7 +65,7 @@ void
 Sequential_iterator::derived_mark ()const
 {
   if (iter_)
-    scm_gc_mark (iter_->self_scm());
+    scm_gc_mark (iter_->self_scm ());
   scm_gc_mark (list_);
   scm_gc_mark (cursor_);
 }
@@ -109,7 +109,7 @@ get_grace_fixups (SCM cursor)
          here.grace_part_ = s.grace_part_;
        }
       
-      if (l.to_bool())
+      if (l.to_bool ())
        {
          last = here;
          here += l;
@@ -201,7 +201,7 @@ Sequential_iterator::next_element (bool)
   
   cursor_ = ly_cdr (cursor_);
 
-  iter_->quit();
+  iter_->quit ();
   if (gh_pair_p (cursor_))
     iter_ = unsmob_iterator (get_iterator (unsmob_music (ly_car (cursor_))));
   else
index 775318febea31e5216220cd473f5756fc5973326..bc00a33e12c3a4e57cf822e5cf8d427dfaf0f298 100644 (file)
@@ -19,7 +19,7 @@
 IMPLEMENT_CTOR_CALLBACK (Sequential_music_iterator);
 
 SCM
-Sequential_music_iterator::get_music_list()const
+Sequential_music_iterator::get_music_list ()const
 {
   return dynamic_cast<Music_sequence const*> (get_music ())->music_list ();
 }
index 4a33adb258f2876c9d387ab1ce06b04e6e008153..b953c524d6dfe72d340f03ec9b0807fffb1ca26e 100644 (file)
@@ -212,7 +212,7 @@ Simple_spacer::my_solve_natural_len ()
 void
 Simple_spacer::add_columns (Link_array<Grob> const &icols)
 {
-  Link_array<Grob> cols(icols);
+  Link_array<Grob> cols (icols);
   
   for (int i =  cols.size (); i--;)
     if (gh_pair_p (cols[i]->get_property ("between-cols")))
@@ -245,7 +245,7 @@ Simple_spacer::add_columns (Link_array<Grob> const &icols)
        }
       else
        {
-         programming_error (_f("No spring between column %d and next one",
+         programming_error (_f ("No spring between column %d and next one",
                                Paper_column::get_rank (cols[i])
                                ));
          desc.hooke_ = 1.0;
@@ -368,7 +368,7 @@ Simple_spacer::solve (Column_x_positions *positions, bool ragged)
   int sz =  positions->cols_.size ();
   for (int i = sz; i--; )
     {
-      SCM p = positions->cols_[i]->get_property( "penalty");
+      SCM p = positions->cols_[i]->get_property ( "penalty");
       if (gh_number_p (p))
        {
          if (gh_scm2double (p) < -9999)
index ab35920c21256d97fbb694fa3aa20111d73180f0..766efa44e750b6c0fffeed2e53a2e67ec11d6593 100644 (file)
@@ -29,7 +29,7 @@ Simultaneous_music_iterator::derived_mark () const
 void
 Simultaneous_music_iterator::derived_substitute (Context *f,Context *t)
 {
-  for (SCM s = children_list_; gh_pair_p (s); s = gh_cdr(s))
+  for (SCM s = children_list_; gh_pair_p (s); s = gh_cdr (s))
     unsmob_iterator (gh_car (s))-> substitute_outlet (f,t);
 }
 
@@ -92,7 +92,7 @@ Simultaneous_music_iterator::process (Moment until)
        }
       else
        {
-         proc = SCM_CDRLOC(*proc);
+         proc = SCM_CDRLOC (*proc);
        }
     }
 }
@@ -103,7 +103,7 @@ Simultaneous_music_iterator::pending_moment () const
   Moment next;
   next.set_infinite (1);
   
-  for (SCM s = children_list_; gh_pair_p (s); s = gh_cdr(s))
+  for (SCM s = children_list_; gh_pair_p (s); s = gh_cdr (s))
     {
       Music_iterator * it = unsmob_iterator (gh_car (s));
       next = next <? it->pending_moment ();
@@ -116,7 +116,7 @@ bool
 Simultaneous_music_iterator::ok () const
 {
   bool run_always_ok = false; 
-  for (SCM s = children_list_; gh_pair_p (s); s = gh_cdr(s))
+  for (SCM s = children_list_; gh_pair_p (s); s = gh_cdr (s))
     {
       Music_iterator * it = unsmob_iterator (gh_car (s));
       if (!it->run_always ())
@@ -130,7 +130,7 @@ Simultaneous_music_iterator::ok () const
 bool
 Simultaneous_music_iterator::run_always () const
 {
-  for (SCM s = children_list_; gh_pair_p (s); s = gh_cdr(s))
+  for (SCM s = children_list_; gh_pair_p (s); s = gh_cdr (s))
     {
       Music_iterator * it = unsmob_iterator (gh_car (s));
       if (it->run_always ())
@@ -143,7 +143,7 @@ Music_iterator*
 Simultaneous_music_iterator::try_music_in_children (Music *m) const
 {
   Music_iterator * b=0;
-  for (SCM s = children_list_; !b && gh_pair_p (s); s = gh_cdr(s))
+  for (SCM s = children_list_; !b && gh_pair_p (s); s = gh_cdr (s))
     b =unsmob_iterator (gh_car (s))->try_music (m);
   return b;
 }
@@ -151,8 +151,8 @@ Simultaneous_music_iterator::try_music_in_children (Music *m) const
 void
 Simultaneous_music_iterator::do_quit ()
 {
-  for (SCM s = children_list_; gh_pair_p (s); s = gh_cdr(s))
-    unsmob_iterator (gh_car (s))->quit();
+  for (SCM s = children_list_; gh_pair_p (s); s = gh_cdr (s))
+    unsmob_iterator (gh_car (s))->quit ();
 }
 
 IMPLEMENT_CTOR_CALLBACK (Simultaneous_music_iterator);
index 6a4d1f1e1a6028dd79e9e69fb89d31402dffd561..ba79169dbd6e2f67d79ca41c3c8bc6deba0d852c 100644 (file)
@@ -25,7 +25,7 @@ Simultaneous_music::start_mom () const
   return Music_sequence::minimum_start (get_property ("elements"));
 }
 
-Simultaneous_music::Simultaneous_music()
+Simultaneous_music::Simultaneous_music ()
 {
 
 }
@@ -36,7 +36,7 @@ Simultaneous_music::to_relative_octave (Pitch p)
   if (lily_1_8_relative)
     lily_1_8_compatibility_used = true;
   
-  return music_list_to_relative (music_list(), p, lily_1_8_relative);
+  return music_list_to_relative (music_list (), p, lily_1_8_relative);
 }
 
 ADD_MUSIC (Simultaneous_music);
@@ -47,4 +47,4 @@ Event_chord::to_relative_octave (Pitch p)
   return music_list_to_relative (music_list (), p, true);
 }
 
-ADD_MUSIC(Event_chord);
+ADD_MUSIC (Event_chord);
index 718200c01297d1d1f935e8fd4729190ffda36e30..33447faeb8f63796a51c9b2647757fa7aaba79ca 100644 (file)
@@ -32,7 +32,7 @@
   skyline[...].width_ forms a partition of the real interval, where
   the segments are adjacent, and ascending. Hence we have
   
-  skyline.top().width_[RIGHT] = inf
+  skyline.top ().width_[RIGHT] = inf
   skyline[0].width_[LEFT] = -inf
   
  */
@@ -43,7 +43,7 @@ const Real EPS = 1e-12;
 /*
   TODO: avoid unnecessary fragmentation.
 
-  This is O(n^2), searching and insertion.  Could be O(n log n) with
+  This is O (n^2), searching and insertion.  Could be O (n log n) with
   binsearch.
 */
 void
@@ -59,29 +59,29 @@ insert_extent_into_skyline (Array<Skyline_entry> *line, Box b, Axis line_axis,
   /*
     Intersect each segment of LINE with EXTENT, and if non-empty, insert relevant segments. 
    */
-  for (int i = line->size(); i--;)
+  for (int i = line->size (); i--;)
     {
-      Interval w = line->elem(i).width_;
+      Interval w = line->elem (i).width_;
       w.intersect (extent);
 
       if (extent[LEFT] >= w[RIGHT])
        break;
       
-      Real my_height = line->elem(i).height_;
+      Real my_height = line->elem (i).height_;
 
       if (!w.is_empty () &&
-         w.length() > EPS
+         w.length () > EPS
          && d* (my_height - stick_out) < 0)
        {
-         Interval e1 (line->elem(i).width_[LEFT], extent[LEFT]);
-         Interval e3 (extent[RIGHT], line->elem(i).width_[RIGHT]);
+         Interval e1 (line->elem (i).width_[LEFT], extent[LEFT]);
+         Interval e3 (extent[RIGHT], line->elem (i).width_[RIGHT]);
 
-         if (!e3.is_empty () && e3.length() > EPS)
+         if (!e3.is_empty () && e3.length () > EPS)
            line->insert (Skyline_entry (e3, my_height), i+1);
 
-         line->elem_ref(i).height_ = stick_out;
-         line->elem_ref(i).width_ = w;
-         if (!e1.is_empty () && e1.length() > EPS)
+         line->elem_ref (i).height_ = stick_out;
+         line->elem_ref (i).width_ = w;
+         if (!e1.is_empty () && e1.length () > EPS)
            line->insert (Skyline_entry (e1, my_height), i );
        }
 
@@ -94,7 +94,7 @@ merge_skyline (Array<Skyline_entry> * a1,
               Array<Skyline_entry> const  & a2,
               Direction dir)
 {
-  for (int i = 0; i < a2.size(); i++)
+  for (int i = 0; i < a2.size (); i++)
     {
       Box b;
       b[X_AXIS] = a2[i].width_;
@@ -112,8 +112,8 @@ empty_skyline (Direction d)
   Array<Skyline_entry> skyline;
 
   Interval i;
-  i.set_empty();
-  i.swap();
+  i.set_empty ();
+  i.swap ();
   Skyline_entry e;
   e.width_ = i;
   e.height_ = -d * infinity_f; 
@@ -125,16 +125,16 @@ Array<Skyline_entry>
 extents_to_skyline (Array<Box> const &extents, Axis a, Direction d)
 {
 
-  Array<Skyline_entry> skyline = empty_skyline(d);
+  Array<Skyline_entry> skyline = empty_skyline (d);
 
   /*
-    This makes a cubic algorithm (array  insertion is O(n),
-    searching the array dumbly is O(n), and for n items, we get O(n^3).)
+    This makes a cubic algorithm (array  insertion is O (n),
+    searching the array dumbly is O (n), and for n items, we get O (n^3).)
 
     We could do a lot better (n log (n), using a balanced tree) but
     that seems overkill for now.
    */
-  for (int j = extents.size(); j--; )
+  for (int j = extents.size (); j--; )
     insert_extent_into_skyline (&skyline, extents[j], a, d);
 
   return skyline;
@@ -146,21 +146,21 @@ extents_to_skyline (Array<Box> const &extents, Axis a, Direction d)
   minimum distance that can be achieved between baselines. "Clouds" is
   a skyline pointing down.
 
-  This is an O(n) algorithm.
+  This is an O (n) algorithm.
  */
 Real
 skyline_meshing_distance (Array<Skyline_entry> const &buildings,
                          Array<Skyline_entry> const &clouds)
 {
   int i = buildings.size () -1;
-  int j  = clouds.size() -1;
+  int j  = clouds.size () -1;
 
   Real distance = - infinity_f;
   
   while (i > 0 || j > 0)
     {
       Interval w = buildings[i].width_;
-      w.intersect(clouds[j].width_);
+      w.intersect (clouds[j].width_);
       
       if (!w.is_empty ())
        distance = distance >? (buildings[i].height_ - clouds[j].height_);
@@ -178,7 +178,7 @@ skyline_meshing_distance (Array<Skyline_entry> const &buildings,
   return distance;
 }
 
-Skyline_entry::Skyline_entry()
+Skyline_entry::Skyline_entry ()
 {
   height_ = 0.0;
 }
index 4c21ae0168e756ba9afb1a225a55fd0157dde367..2ba59b6250acd27e86ebaf98469e451375178b93 100644 (file)
@@ -36,7 +36,7 @@
 class Slash_repeat_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Slash_repeat_engraver);
+  TRANSLATOR_DECLARATIONS (Slash_repeat_engraver);
 protected:
   Repeated_music * repeat_;
 
@@ -111,7 +111,7 @@ Slash_repeat_engraver::process_music ()
   if (repeat_ && now_mom () == next_moment_)
     {
       beat_slash_ = make_item ("RepeatSlash");
-      announce_grob(beat_slash_, repeat_->self_scm());
+      announce_grob (beat_slash_, repeat_->self_scm ());
       next_moment_ = next_moment_ + body_length_;
 
       get_global_context ()->add_moment_to_process (next_moment_);
@@ -141,7 +141,7 @@ Slash_repeat_engraver::stop_translation_timestep ()
 
 
 
-ENTER_DESCRIPTION(Slash_repeat_engraver,
+ENTER_DESCRIPTION (Slash_repeat_engraver,
 /* descr */       "Make beat repeats.",
 /* creats*/       "RepeatSlash",
 /* accepts */     "repeated-music",
index ba4c795b923792d601a713d469f3a536471f28e4..4a6a49305beb1a38c38d42a13e7053b10ad2b289 100644 (file)
@@ -70,7 +70,7 @@ Slur_engraver::try_music (Music *ev)
          /*
            Swallow other events.
          */
-         for (int j = new_slur_evs_.size(); j--;)
+         for (int j = new_slur_evs_.size (); j--;)
            {
              Direction nd = to_dir (new_slur_evs_[j]->get_property ("span-direction"));
              
index 4c8b23b69a1fdcf3a415b12c0081ff88b430ac87..4a154d567397e758dee11b315ad58b3b5e0a8fba 100644 (file)
@@ -19,7 +19,7 @@
 
 class Slur_performer : public Performer {
 public:
-  TRANSLATOR_DECLARATIONS(Slur_performer);
+  TRANSLATOR_DECLARATIONS (Slur_performer);
   
 protected:
   virtual bool try_music (Music *ev) ;
@@ -86,10 +86,10 @@ Slur_performer::try_music (Music *m)
   return false;
 }
 
-ENTER_DESCRIPTION(Slur_performer,"","",
+ENTER_DESCRIPTION (Slur_performer,"","",
                  "slur-event","","","");
 
-Slur_performer::Slur_performer()
+Slur_performer::Slur_performer ()
 {
   slur_ = false;
 }
index 606aff5f6498c482b869d6ef80a7ac6ae965aef7..d5ffc85aada89f42b25b35ff6c46d004a32412d3 100644 (file)
@@ -218,7 +218,7 @@ Slur::get_boundary_notecolumn_y (Grob *me, Direction dir)
 {
   SCM cols = me->get_property ("note-columns");
 
-  if(!gh_pair_p (cols))
+  if (!gh_pair_p (cols))
     {
       programming_error ("No note-columns in slur?");
       me->suicide ();
@@ -226,7 +226,7 @@ Slur::get_boundary_notecolumn_y (Grob *me, Direction dir)
     }
   
   if (dir == LEFT)
-    cols = scm_reverse(cols);
+    cols = scm_reverse (cols);
   
   Grob *col = unsmob_grob (ly_car (cols));
   Grob *common[] =
@@ -651,7 +651,7 @@ Slur::get_curve (Grob*me)
 
   SCM attach = me->get_property ("attachment");
   if (!gh_pair_p (attach))
-    attach = set_extremities(me);
+    attach = set_extremities (me);
 
   
   if (!get_grob_direction (me)
index f4e1ddcfd4ea7669fdb75cfbc39626fe99d26ae3..79f23214120d0658f3d9249372d3908359158d6d 100644 (file)
@@ -81,9 +81,9 @@ Source_file::Source_file (String filename, String data)
   name_ = filename;
   istream_ = 0;
   contents_str0_ = data.get_copy_str0();
-  length_ = data.length();
+  length_ = data.length ();
   pos_str0_ = to_str0 ();
-  init_port();
+  init_port ();
 }
 
 Source_file::Source_file (String filename_string)
@@ -99,7 +99,7 @@ Source_file::Source_file (String filename_string)
   
   pos_str0_ = to_str0 ();
 
-  init_port();
+  init_port ();
 
   for (int i = 0; i < length_; i++)
     if (contents_str0_[i] == '\n')
@@ -261,11 +261,11 @@ Source_file::get_line (char const* pos_str0) const
   if (!contains (pos_str0))
     return 0;
 
-  if (!newline_locations_.size())
+  if (!newline_locations_.size ())
     return 1;
   
   int lo=0;
-  int hi = newline_locations_.size();
+  int hi = newline_locations_.size ();
 
   if (newline_locations_[lo] > pos_str0)
     return 1;
index a8f19e16745a36a989bc1ebfd29f1730c3429241..6985a7903a266bd024255ca9da6f077ae20356da 100644 (file)
@@ -46,7 +46,7 @@ class Spacing_engraver : public Engraver
   Moment now_;
   Spanner * spacing_;
   
-  TRANSLATOR_DECLARATIONS(Spacing_engraver);
+  TRANSLATOR_DECLARATIONS (Spacing_engraver);
 protected:
   virtual void acknowledge_grob (Grob_info);
   virtual void start_translation_timestep ();
@@ -80,7 +80,7 @@ Spacing_engraver::process_music ()
     {
       spacing_ = make_spanner ("SpacingSpanner");
       spacing_->set_bound (LEFT, unsmob_grob (get_property ("currentCommandColumn")));  
-      announce_grob(spacing_, SCM_EOL);
+      announce_grob (spacing_, SCM_EOL);
     }
 }
 
@@ -180,7 +180,7 @@ Spacing_engraver::start_translation_timestep ()
 
 
 
-ENTER_DESCRIPTION(Spacing_engraver,
+ENTER_DESCRIPTION (Spacing_engraver,
 /* descr */       "make a SpacingSpanner and do bookkeeping of shortest starting and playing notes  ",
 /* creats*/       "SpacingSpanner",
 /* accepts */     "",
index ba8fcc352e569ed7afb51c769aec0cc5e749aabb..139ba29f0f17c8ecf6c4646038cda0a40fb061c2 100644 (file)
@@ -121,7 +121,7 @@ loose_column (Grob *l, Grob *c, Grob *r)
     some cases (two isolated, consecutive clef changes) won't be
     nicely folded, but hey, then don't do that.
   */
-  if(!  ((Paper_column::is_musical (l_neighbor) || Item::is_breakable (l_neighbor))
+  if (!  ((Paper_column::is_musical (l_neighbor) || Item::is_breakable (l_neighbor))
         && (Paper_column::is_musical (r_neighbor) || Item::is_breakable (r_neighbor))) )
     {
       return false;
@@ -167,13 +167,13 @@ Spacing_spanner::prune_loose_columns (Grob*me,Link_array<Grob> *cols, Rational s
   Real increment = robust_scm2double (me->get_property ("spacing-increment"), 1.2);
   for (int i=0; i < cols->size ();  i++)
     {
-      if (Item::is_breakable (cols->elem(i)) || Paper_column::is_musical (cols->elem (i)))
+      if (Item::is_breakable (cols->elem (i)) || Paper_column::is_musical (cols->elem (i)))
        {
-         newcols.push (cols->elem(i));
+         newcols.push (cols->elem (i));
          continue;
        }
 
-      Grob *c = cols->elem(i);
+      Grob *c = cols->elem (i);
       if (loose_column (cols->elem (i-1), c, cols->elem (i+1)))
        {
          SCM lns = c->get_property ("left-neighbors");
@@ -197,7 +197,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
            {
@@ -246,7 +246,7 @@ Spacing_spanner::prune_loose_columns (Grob*me,Link_array<Grob> *cols, Rational s
 
          Rod r;
          r.distance_ = dists[LEFT] + dists[RIGHT];
-         r.item_l_drul_[LEFT] = dynamic_cast<Item*> (cols->elem(i-1));
+         r.item_l_drul_[LEFT] = dynamic_cast<Item*> (cols->elem (i-1));
          r.item_l_drul_[RIGHT] = dynamic_cast<Item*> (cols->elem (i+1));
 
          r.add_to_cols ();
@@ -266,7 +266,7 @@ Spacing_spanner::prune_loose_columns (Grob*me,Link_array<Grob> *cols, Rational s
 void
 Spacing_spanner::set_explicit_neighbor_columns (Link_array<Grob> cols)
 {
-  for (int i=0; i < cols.size(); i++)
+  for (int i=0; i < cols.size (); i++)
     {
       SCM right_neighbors = SCM_EOL;
       int min_rank = 100000;   // inf.
@@ -350,13 +350,13 @@ Spacing_spanner::set_implicit_neighbor_columns (Link_array<Grob> cols)
       SCM ln = cols[i] ->get_property ("left-neighbors");
       if (!gh_pair_p (ln) && i ) 
        {
-         cols[i]->set_property ("left-neighbors", gh_cons (cols[i-1]->self_scm(), SCM_EOL));
+         cols[i]->set_property ("left-neighbors", gh_cons (cols[i-1]->self_scm (), SCM_EOL));
        }
 
       SCM rn = cols[i] ->get_property ("right-neighbors");
       if (!gh_pair_p (rn) && i < cols.size () - 1) 
        {
-         cols[i]->set_property ("right-neighbors", gh_cons (cols[i + 1]->self_scm(), SCM_EOL));
+         cols[i]->set_property ("right-neighbors", gh_cons (cols[i + 1]->self_scm (), SCM_EOL));
        }
     }
 }
@@ -383,7 +383,7 @@ Spacing_spanner::set_springs (SCM smob)
       global_shortest = find_shortest (me, all);
       if (verbose_global_b)
        {
-         progress_indication (_f("Global shortest duration is %s\n", global_shortest.to_string ())); 
+         progress_indication (_f ("Global shortest duration is %s\n", global_shortest.to_string ())); 
        }
     }
   prune_loose_columns (me, &all, global_shortest);
@@ -442,14 +442,14 @@ Spacing_spanner::find_shortest (Grob *me, Link_array<Grob> const &cols)
          
          SCM  st = cols[i]->get_property ("shortest-starter-duration");
          Moment this_shortest = *unsmob_moment (st);
-         assert (this_shortest.to_bool());
+         assert (this_shortest.to_bool ());
          shortest_in_measure = shortest_in_measure <? this_shortest.main_part_;
        }
       else if (!shortest_in_measure.is_infinity ()
               && Item::is_breakable (cols[i]))
        {
          int j = 0;
-         for (; j < durations.size(); j++)
+         for (; j < durations.size (); j++)
            {
              if (durations[j] > shortest_in_measure)
                {
@@ -464,19 +464,19 @@ Spacing_spanner::find_shortest (Grob *me, Link_array<Grob> const &cols)
                }
            }
 
-         if (durations.size() == j)
+         if (durations.size () == j)
            {
              durations.push (shortest_in_measure);
              counts.push (1);
            }
 
-         shortest_in_measure.set_infinite(1); 
+         shortest_in_measure.set_infinite (1); 
        }
     }
 
   int max_idx = -1;
   int max_count = 0;
-  for (int i =durations.size(); i--;)
+  for (int i =durations.size (); i--;)
     {
       if (counts[i] >= max_count)
        {
@@ -670,7 +670,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
     {
index 66c1e46da399214a08980d6a435d1629b449c0bc..e9a45412f8773e1decfa2715c56c10ec6df22e8c 100644 (file)
@@ -24,7 +24,7 @@
 class Span_arpeggio_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Span_arpeggio_engraver);
+  TRANSLATOR_DECLARATIONS (Span_arpeggio_engraver);
   
 protected:
   virtual void acknowledge_grob (Grob_info);
@@ -66,7 +66,7 @@ Span_arpeggio_engraver::process_acknowledged_grobs ()
       && to_boolean (get_property ("connectArpeggios")))
     {
       span_arpeggio_ = make_item ("Arpeggio");
-      announce_grob(span_arpeggio_, SCM_EOL);      
+      announce_grob (span_arpeggio_, SCM_EOL);      
     }
 }
 
@@ -103,7 +103,7 @@ Span_arpeggio_engraver::stop_translation_timestep ()
 
 
 
-ENTER_DESCRIPTION(Span_arpeggio_engraver,
+ENTER_DESCRIPTION (Span_arpeggio_engraver,
 /* descr */       "",
 /* creats*/       "Arpeggio",
 /* accepts */     "",
index c8d0b1527a1dd5dc66f4b1c6ad5388e0684a9c96..a75ef41fe1551f2cdc55e152415955fae1998c40 100644 (file)
@@ -29,7 +29,7 @@ class Span_bar_engraver : public Engraver
   Link_array<Item> bars_;
 
 public:
-  TRANSLATOR_DECLARATIONS(Span_bar_engraver);
+  TRANSLATOR_DECLARATIONS (Span_bar_engraver);
 protected:
   virtual void acknowledge_grob (Grob_info);
   virtual void stop_translation_timestep ();
@@ -88,7 +88,7 @@ Span_bar_engraver::stop_translation_timestep ()
 
 
 
-ENTER_DESCRIPTION(Span_bar_engraver,
+ENTER_DESCRIPTION (Span_bar_engraver,
 /* descr */       "This engraver makes cross-staff barlines: It catches all normal "
 "bar lines, and draws a single span-bar across them.",
 /* creats*/       "SpanBar",
index 640fb128757f2f7510f021f01e370732dc5c0c71..caea219c3852fec827dc3dc996590dc960bf9e12 100644 (file)
@@ -28,7 +28,7 @@ struct Audio_dynamic_tuple
 class Span_dynamic_performer : public Performer
 {
 public:
-  TRANSLATOR_DECLARATIONS(Span_dynamic_performer);
+  TRANSLATOR_DECLARATIONS (Span_dynamic_performer);
 
 protected:
   virtual bool try_music (Music*);
index c7e333b9f2dbdcda6205ae02e80964e65039a14d..69ed46231cda14c17bdaea4c96df82a980ff11f7 100644 (file)
@@ -119,7 +119,7 @@ Spanner::do_break_processing ()
        }
     }
   broken_intos_.sort (Spanner::compare);
-  for (int i= broken_intos_.size();i--;)
+  for (int i= broken_intos_.size ();i--;)
     broken_intos_[i]->break_index_ = i;
 }
 
@@ -365,7 +365,7 @@ unsmob_spanner (SCM s )
   return dynamic_cast<Spanner*> (unsmob_grob (s));
 }
 
-ADD_INTERFACE(Spanner,
+ADD_INTERFACE (Spanner,
              "spanner-interface",
 "Some objects are horizontally spanned between objects. For\n"
 "example, slur, beam, tie, etc. These grobs form a subtype called\n"
index bab14e841859a4c6488d7ac31519c412db26dbac..502fc13f713e46334e53bc98076abbb8727f86ac 100644 (file)
@@ -11,7 +11,7 @@
 #include "warn.hh"
 #include "ly-smobs.icc"
 
-Spring_smob::Spring_smob()
+Spring_smob::Spring_smob ()
 {
   distance_ =0.;
   strength_ =1.0;
@@ -20,7 +20,7 @@ Spring_smob::Spring_smob()
 }
 
 
-IMPLEMENT_SIMPLE_SMOBS(Spring_smob);
+IMPLEMENT_SIMPLE_SMOBS (Spring_smob);
 
 SCM
 Spring_smob::mark_smob (SCM) { return SCM_UNSPECIFIED; }
@@ -29,7 +29,7 @@ int
 Spring_smob::print_smob (SCM s, SCM p, scm_print_state *)
 {
   Spring_smob *ss = unsmob_spring (s);
-  scm_puts (_f("#<spring smob d= %f>", ss->distance_).to_str0 (), p);
+  scm_puts (_f ("#<spring smob d= %f>", ss->distance_).to_str0 (), p);
   return 1;
 }
 
index 553e0a2d7556902299c941c7288a7a440be1d879..509ff6ae348b0a1d23c2cbebf26b52db31ad0ec5 100644 (file)
@@ -15,7 +15,7 @@ source file of the GNU LilyPond music typesetter
 class Staff_collecting_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Staff_collecting_engraver);
+  TRANSLATOR_DECLARATIONS (Staff_collecting_engraver);
   virtual void acknowledge_grob (Grob_info);
 };
 
@@ -37,7 +37,7 @@ Staff_collecting_engraver::acknowledge_grob (Grob_info gi)
 }
 
 
-ENTER_DESCRIPTION(Staff_collecting_engraver,
+ENTER_DESCRIPTION (Staff_collecting_engraver,
 /* descr */       "Maintain the stavesFound variable",
 
 /* creats*/       "",
index f7ff09da207ca65914ae71699059e7358e4f7321..adacd1c6c0806eb7f3a1ebd96c87061209ae3723 100644 (file)
@@ -21,7 +21,7 @@
 class Staff_performer : public Performer_group_performer 
 {
 public:
-  TRANSLATOR_DECLARATIONS(Staff_performer);
+  TRANSLATOR_DECLARATIONS (Staff_performer);
   ~Staff_performer ();
 
   String new_instrument_string ();
index 587a5f746624284c9c07e3b70f0dac923faf38d9..124cb364884e2c21adb375c17aa697e5c2977f7d 100644 (file)
@@ -44,7 +44,7 @@ Staff_spacing::next_note_correction (Grob * me,
       Interval v;
       if (Accidental_placement::has_interface (a))
        {
-         v = Accidental_placement::get_relevant_accidental_extent(a, col, me);
+         v = Accidental_placement::get_relevant_accidental_extent (a, col, me);
        }
       else
        v = a->extent (col, X_AXIS);
@@ -96,7 +96,7 @@ Interval
 Staff_spacing::bar_y_positions (Grob *bar_grob)
 {
   Interval bar_size;
-  bar_size.set_empty();
+  bar_size.set_empty ();
   if (Bar_line::has_interface (bar_grob))
     {
       SCM glyph = bar_grob->get_property ("glyph");
@@ -104,7 +104,7 @@ Staff_spacing::bar_y_positions (Grob *bar_grob)
       String glyph_string = gh_string_p (glyph) ? ly_scm2string (glyph) : "";
       if (glyph_string.left_string (1) == "|" || glyph_string.left_string (1) == ".")
        {
-         SCM sz = Bar_line::get_staff_bar_size (bar_grob->self_scm());
+         SCM sz = Bar_line::get_staff_bar_size (bar_grob->self_scm ());
          bar_size = Interval (-1,1);
          bar_size *= robust_scm2double (sz, 1)
            / Staff_symbol_referencer::staff_space (bar_grob);
@@ -152,9 +152,9 @@ Staff_spacing::get_spacing_params (Grob *me, Real * space, Real * fixed)
   Item * me_item  = dynamic_cast<Item*> (me);
     
   for (SCM s = me->get_property ("left-items");
-       gh_pair_p (s); s = gh_cdr(s))
+       gh_pair_p (s); s = gh_cdr (s))
     {
-      Grob * cand = unsmob_grob(gh_car (s));
+      Grob * cand = unsmob_grob (gh_car (s));
       if (cand && Separation_item::has_interface (cand))
        separation_item = cand ;
     }
@@ -227,11 +227,11 @@ Staff_spacing::get_spacing_params (Grob *me, Real * space, Real * fixed)
       *fixed += distance / 2; 
       *space =  *fixed + distance/2;
     }
-  else if (type == ly_symbol2scm("minimum-space"))
+  else if (type == ly_symbol2scm ("minimum-space"))
     {
       *space = last_ext[LEFT] + (last_ext.length () >? distance);
     }
-  else if (type == ly_symbol2scm("minimum-fixed-space"))
+  else if (type == ly_symbol2scm ("minimum-fixed-space"))
     {
       *space = last_ext[LEFT] + (last_ext.length () >? distance);
       *fixed = *space;
index 17e96949b4b3fdf4f2b14668fca6d3988d1e78cd..cfd92d8a56f5fb0b7ca40c25bffa6bdb2de89156 100644 (file)
@@ -19,7 +19,7 @@
  */
 class Staff_symbol_engraver : public Engraver { 
 public:
-  TRANSLATOR_DECLARATIONS(Staff_symbol_engraver);
+  TRANSLATOR_DECLARATIONS (Staff_symbol_engraver);
   
 protected:
   Spanner *span_;
@@ -50,7 +50,7 @@ Staff_symbol_engraver::process_music ()
   
       span_->set_bound (LEFT, unsmob_grob (get_property ("currentCommandColumn")));
 
-      announce_grob(span_, SCM_EOL);
+      announce_grob (span_, SCM_EOL);
     }
 }
 
@@ -77,7 +77,7 @@ Staff_symbol_engraver::acknowledge_grob (Grob_info s)
 
 
 
-ENTER_DESCRIPTION(Staff_symbol_engraver,
+ENTER_DESCRIPTION (Staff_symbol_engraver,
 /* descr */       "Create the constellation of five (default) "
 "staff lines.",
 /* creats*/       "StaffSymbol",
@@ -92,7 +92,7 @@ ENTER_DESCRIPTION(Staff_symbol_engraver,
 class Tab_staff_symbol_engraver : public Staff_symbol_engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Tab_staff_symbol_engraver);
+  TRANSLATOR_DECLARATIONS (Tab_staff_symbol_engraver);
 protected:
   virtual void process_music ();
 };
@@ -101,7 +101,7 @@ void
 Tab_staff_symbol_engraver::process_music ()
 {
   bool init = !span_;
-  Staff_symbol_engraver::process_music();
+  Staff_symbol_engraver::process_music ();
   if (init)
     {
       int k = scm_ilength (get_property ("stringTunings"));
@@ -110,11 +110,11 @@ Tab_staff_symbol_engraver::process_music ()
     }
 }
 
-Tab_staff_symbol_engraver::Tab_staff_symbol_engraver()
+Tab_staff_symbol_engraver::Tab_staff_symbol_engraver ()
 {
 }
 
-ENTER_DESCRIPTION(Tab_staff_symbol_engraver,
+ENTER_DESCRIPTION (Tab_staff_symbol_engraver,
 /* descr */       "Create a staff-symbol, but look at stringTunings for the number of lines."
 "staff lines.",
 /* creats*/       "StaffSymbol",
index 0b15a94cfc4e6f974072215bfef704e601b504dc..4df7c43e0de2a2d3c0b0dfd4a05a603ea4c21220 100644 (file)
@@ -63,7 +63,7 @@ Staff_symbol::print (SCM smob)
     }
 
   Real t = me->get_paper ()->get_realvar (ly_symbol2scm ("linethickness"));
-  t *= robust_scm2double ( me->get_property("thickness"), 1.0);
+  t *= robust_scm2double ( me->get_property ("thickness"), 1.0);
   
   int l = Staff_symbol::line_count (me);
   
@@ -117,7 +117,7 @@ Staff_symbol::get_ledger_line_thickness (Grob * me)
   SCM lt_pair = me->get_property ("ledger-line-thickness");
   Offset z = robust_scm2offset (lt_pair, Offset (1.0, 0.1));
   
-  return z[X_AXIS] * get_line_thickness(me) + z[Y_AXIS]* staff_space (me);
+  return z[X_AXIS] * get_line_thickness (me) + z[Y_AXIS]* staff_space (me);
 }
 
 
index 3115ac3012568462b92726fbddf2c6b42f828783..194064f8fd7379c64d8bf8d6d133681f2b47c6b6 100644 (file)
@@ -21,7 +21,7 @@ source file of the GNU LilyPond music typesetter
 class Stanza_number_align_engraver : public Engraver
 {
 public:  
-  TRANSLATOR_DECLARATIONS(Stanza_number_align_engraver);
+  TRANSLATOR_DECLARATIONS (Stanza_number_align_engraver);
 
 protected:  
   Link_array<Grob> lyrics_;
@@ -49,7 +49,7 @@ Stanza_number_align_engraver::acknowledge_grob (Grob_info gi)
 void
 Stanza_number_align_engraver::stop_translation_timestep ()
 {
-  for (int i= lyrics_.size(); i--;)
+  for (int i= lyrics_.size (); i--;)
     for (int j = stanza_numbers_.size (); j--;)
       Side_position_interface::add_support (stanza_numbers_[j], lyrics_[i]);
   
@@ -58,7 +58,7 @@ Stanza_number_align_engraver::stop_translation_timestep ()
 }
 
 
-ENTER_DESCRIPTION(Stanza_number_align_engraver,
+ENTER_DESCRIPTION (Stanza_number_align_engraver,
                  "This engraver ensures that stanza numbers are neatly aligned. ",
                  "",
                  "",
index c51c66327fdbde575e06c9dae6edb86c438ee487..68c09bfa934d3ca537ff0a9053a20703c35e1127 100644 (file)
@@ -22,7 +22,7 @@ class Stanza_number_engraver : public Engraver
    */
   SCM last_stanza_;
 public:
-  TRANSLATOR_DECLARATIONS(Stanza_number_engraver);
+  TRANSLATOR_DECLARATIONS (Stanza_number_engraver);
   virtual void process_music ();
   virtual void stop_translation_timestep ();
   virtual void acknowledge_grob (Grob_info);
@@ -77,7 +77,7 @@ Stanza_number_engraver::stop_translation_timestep ()
 }
 
 
-ENTER_DESCRIPTION(Stanza_number_engraver,
+ENTER_DESCRIPTION (Stanza_number_engraver,
 /* descr */       "",
 /* creats*/       "StanzaNumber",
 /* accepts */     "",
index 8f122d473b0e6e6eea9e5c1b66487e4cf0df5577..8427064c87a894eb051e2ef16d082be7d045e9c5 100644 (file)
@@ -24,7 +24,7 @@
  */
 class Stem_engraver : public Engraver
 {
-  TRANSLATOR_DECLARATIONS(Stem_engraver);
+  TRANSLATOR_DECLARATIONS (Stem_engraver);
 protected:
   virtual void acknowledge_grob (Grob_info);
   virtual void stop_translation_timestep ();
@@ -94,14 +94,14 @@ Stem_engraver::acknowledge_grob (Grob_info i)
                - (duration_log > 2 ? duration_log - 2 : 0);
              if (tremolo_flags <= 0)
                {
-                 tremolo_ev_->origin()->warning (_("tremolo duration is too long"));
+                 tremolo_ev_->origin ()->warning (_("tremolo duration is too long"));
                  tremolo_flags = 0;
                }
 
              if (tremolo_flags)
                {
                  tremolo_ = make_item ("StemTremolo");
-                 announce_grob(tremolo_, tremolo_ev_->self_scm());
+                 announce_grob (tremolo_, tremolo_ev_->self_scm ());
 
                  /*
                    The number of tremolo flags is the number of flags of
@@ -118,7 +118,7 @@ Stem_engraver::acknowledge_grob (Grob_info i)
          /*
            We announce the cause of the head as cause of the stem.
            The stem needs a rhythmic structure to fit it into a beam.  */
-         announce_grob(stem_, i.music_cause ()->self_scm());
+         announce_grob (stem_, i.music_cause ()->self_scm ());
        }
 
       if (Stem::duration_log (stem_) != duration_log)
@@ -176,7 +176,7 @@ Stem_engraver::try_music (Music* r)
   return false;
 }
 
-ENTER_DESCRIPTION(Stem_engraver,
+ENTER_DESCRIPTION (Stem_engraver,
 /* descr */       "Create stems and single-stem tremolos.  It also works together with "
 "the beam engraver for overriding beaming.",
 /* creats*/       "Stem StemTremolo",
index 05634c92e5fd512770fd0229ade354487dc5b193..4eae91b91f8a0aff0a7ae34f1ed76e15f5168a81 100644 (file)
@@ -51,7 +51,7 @@ Stem_tremolo::height (SCM smob, SCM ax)
   if (Stencil *m = unsmob_stencil (mol))
     return ly_interval2scm (m->extent (a));
   else
-    return ly_interval2scm (Interval());
+    return ly_interval2scm (Interval ());
 }
 
 
@@ -99,7 +99,7 @@ Stem_tremolo::raw_stencil (Grob *me)
     {
       programming_error ("No tremolo flags?");
 
-      me->suicide();
+      me->suicide ();
       return Stencil ();
     }
 
index 4b9462376357e50bc4777559994f0f93c74f2a0a..fdedb4d22aeb6934cdf9ea5860fd2ed699729483 100644 (file)
@@ -47,7 +47,7 @@ Stem::set_beaming (Grob*me, int beam_count,  Direction d)
     }
 
   SCM l = index_get_cell (pair, d);
-  forint i = 0; i<  beam_count; i++)
+  for (int i = 0; i<  beam_count; i++)
     {
       l = gh_cons (gh_int2scm (i), l);
     }
@@ -345,7 +345,7 @@ Stem::get_default_stem_end_position (Grob*me)
        Crude hack: add extra space if tremolo flag is there.
 
        We can't do this for the beam, since we get into a loop
-       (Stem_tremolo::raw_stencil() looks at the beam.)
+       (Stem_tremolo::raw_stencil () looks at the beam.)
        
         --hwn 
       */
@@ -495,7 +495,7 @@ Stem::position_noteheads (Grob*me)
              Real reverse_overlap =0.5;
              heads[i]->translate_axis ((l-thick*reverse_overlap) * d, X_AXIS);
 
-             if (is_invisible(me))
+             if (is_invisible (me))
                heads[i]->translate_axis (-thick*(2 - reverse_overlap) * d , X_AXIS);
 
              
@@ -608,7 +608,7 @@ Stem::flag (Grob*me)
         {
          /* Urrgh!  We have to detect wether this stem ends on a staff
             line or between two staff lines.  But we can not call
-            stem_end_position(me) or get_default_stem_end_position(me),
+            stem_end_position (me) or get_default_stem_end_position (me),
             since this encounters the flag and hence results in an
             infinite recursion.  However, in pure mensural notation,
             there are no multiple note heads attached to a single stem,
@@ -786,7 +786,7 @@ Stem::off_callback (SCM element_smob, SCM)
   
   if (Grob * f = first_head (me))
     {
-      Interval head_wid = Note_head::head_extent(f, X_AXIS);
+      Interval head_wid = Note_head::head_extent (f, X_AXIS);
       
       Real attach =0.0;
 
@@ -795,7 +795,7 @@ Stem::off_callback (SCM element_smob, SCM)
          attach = 0.0;
        }
       else
-       attach = Note_head::stem_attachment_coordinate(f, X_AXIS);
+       attach = Note_head::stem_attachment_coordinate (f, X_AXIS);
 
       Direction d = get_direction (me);
 
@@ -995,7 +995,7 @@ ADD_INTERFACE (Stem,"stem-interface",
 
 /****************************************************************/
 
-Stem_info::Stem_info()
+Stem_info::Stem_info ()
 {
   ideal_y_ = shortest_y_ =0;
   dir_ = CENTER;
index b4e92ffae232a0b4a0639f4cf60f1a54b207d7d7..2832da755441dc6e6573f04307992d33916edffb 100644 (file)
@@ -40,7 +40,7 @@ LY_DEFINE (ly_translate_stencil_axis, "ly:stencil-translate-axis",
   Stencil q (*s);
   q.translate_axis (gh_scm2double (amount), Axis (gh_scm2int (axis)));
 
-  return q.smobbed_copy();
+  return q.smobbed_copy ();
 }
 
 LY_DEFINE (ly_translate_stencil,"ly:stencil-translate",
@@ -55,7 +55,7 @@ LY_DEFINE (ly_translate_stencil,"ly:stencil-translate",
 
   Stencil q (*s);
   q.translate (o);
-  return q.smobbed_copy();
+  return q.smobbed_copy ();
 }
 
 LY_DEFINE (ly_stencil_get_expr, "ly:stencil-get-expr",
@@ -102,13 +102,13 @@ LY_DEFINE (ly_stencil_combined_at_edge,
   Real p = 0.0;
   if (padding != SCM_UNDEFINED)
     {
-      SCM_ASSERT_TYPE(gh_number_p (padding), padding, SCM_ARG5, __FUNCTION__, "number");
+      SCM_ASSERT_TYPE (gh_number_p (padding), padding, SCM_ARG5, __FUNCTION__, "number");
       p = gh_scm2double (padding);
     }
   Real m = 0.0;
   if (minimum != SCM_UNDEFINED)
     {
-      SCM_ASSERT_TYPE(gh_number_p (minimum), minimum, SCM_ARG6, __FUNCTION__, "number");
+      SCM_ASSERT_TYPE (gh_number_p (minimum), minimum, SCM_ARG6, __FUNCTION__, "number");
       m = gh_scm2double (minimum);
     }
 
@@ -157,7 +157,7 @@ LY_DEFINE (ly_make_stencil,
   SCM_ASSERT_TYPE (is_number_pair (xext), xext, SCM_ARG2, __FUNCTION__, "number pair");
   SCM_ASSERT_TYPE (is_number_pair (yext), yext, SCM_ARG3, __FUNCTION__, "number pair");
 
-  Box b (ly_scm2interval (xext), ly_scm2interval(yext));
+  Box b (ly_scm2interval (xext), ly_scm2interval (yext));
   Stencil s (b, expr);
   return s.smobbed_copy ();
 }
@@ -177,7 +177,7 @@ LY_DEFINE (ly_fontify_atom,"ly:fontify-atom", 2, 0, 0,
           "Add a font selection command for the font metric @var{met} "
           "to @var{f}.")
 {
-  SCM_ASSERT_TYPE(unsmob_metrics (met), met, SCM_ARG1, __FUNCTION__, "font metric");
+  SCM_ASSERT_TYPE (unsmob_metrics (met), met, SCM_ARG1, __FUNCTION__, "font metric");
 
   return fontify_atom (unsmob_metrics (met), f);
 }
index 5fdc4e79f14f8c64631d40f76f8262b269937ed1..c05649d6bb2646fe944b72042d120dcd31d7d398 100644 (file)
@@ -8,7 +8,7 @@
 class String_number_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(String_number_engraver);
+  TRANSLATOR_DECLARATIONS (String_number_engraver);
 protected:
   virtual bool try_music (Music* m);
 };
@@ -31,7 +31,7 @@ String_number_engraver::String_number_engraver ()
   
  */
 
-ENTER_DESCRIPTION(String_number_engraver,
+ENTER_DESCRIPTION (String_number_engraver,
 /* descr */       "Swallow string-number-events - the purpose of this engraver is to"
 " process tab for normal notation. To provent warnings for unprocessed "
 " string-number-event to obscure real error messages, this engraver "
index 4bda0a7ebf1c6ef177375642b7cf68a75c95c3ef..92ced08887665119df3e8557559fc05ca38dbc9d 100644 (file)
@@ -13,7 +13,7 @@
 class Swallow_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Swallow_engraver);
+  TRANSLATOR_DECLARATIONS (Swallow_engraver);
 protected:
   bool try_music (Music*) ;
 };
@@ -30,7 +30,7 @@ Swallow_engraver::Swallow_engraver ()
 {
 }
 
-ENTER_DESCRIPTION(Swallow_engraver,
+ENTER_DESCRIPTION (Swallow_engraver,
 /* descr */       "This engraver swallows everything given to it silently. The purpose of "
                  "this is to prevent spurious \"event junked\" warnings.",
 /* creats*/       "",
index dbeb4cc515ea7ec1f1b9a8c3be0dc02e2e14a313..e70149069f4d876430422099d9c50e4fa2836653 100644 (file)
@@ -11,7 +11,7 @@
 class Swallow_performer : public Performer
 {
 public:
-  TRANSLATOR_DECLARATIONS(Swallow_performer);
+  TRANSLATOR_DECLARATIONS (Swallow_performer);
 protected:
   virtual bool try_music (Music*);
 };
@@ -26,10 +26,10 @@ Swallow_performer::try_music (Music *m)
     return true; 
 }
 
-Swallow_performer::Swallow_performer()
+Swallow_performer::Swallow_performer ()
 {}
 
-ENTER_DESCRIPTION(Swallow_performer,
+ENTER_DESCRIPTION (Swallow_performer,
 /* descr */       "",
 /* creats*/       "",
 /* accepts */     "general-music",
index ccbb0eb3e7fae8ea52fbf7aafeecb78d45c22286..67964f6f492db0672196188cbfa9d0c3d2818942 100644 (file)
@@ -18,7 +18,7 @@
 class System_start_delimiter_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(System_start_delimiter_engraver);
+  TRANSLATOR_DECLARATIONS (System_start_delimiter_engraver);
 
 protected:
   Spanner * delim_;
@@ -56,7 +56,7 @@ System_start_delimiter_engraver::acknowledge_grob (Grob_info inf)
        {
          inf.grob_->translate_axis ( -0.8, X_AXIS); // ugh
          inf.grob_->set_property ("arch-height",
-                                      gh_double2scm (gh_scm2double(inf.grob_->get_property
+                                      gh_double2scm (gh_scm2double (inf.grob_->get_property
                                        ("arch-height"))+0.5));
        }
     }
@@ -89,7 +89,7 @@ System_start_delimiter_engraver::finalize ()
     }
 }
 
-ENTER_DESCRIPTION(System_start_delimiter_engraver,
+ENTER_DESCRIPTION (System_start_delimiter_engraver,
 /* descr */       "Creates a system start delimiter (ie. SystemStart@{Bar,Brace,Bracket@} spanner",
 /* creats*/       "SystemStartBar SystemStartBrace SystemStartBracket",
 /* accepts */     "",
index be97cdcfce057ffd7638c1dcd23b463ee8f4ce58..b460c4f57f38a47ab8560b23c5cbc32abb4976ad 100644 (file)
@@ -171,10 +171,10 @@ System_start_delimiter::staff_brace (Grob*me, Real y)
   while (hi - lo > 1);
       
   Stencil m (fm->get_indexed_char_stencil (lo)); // ugh.  ascii?
-  b=m.extent_box();
+  b=m.extent_box ();
   b[X_AXIS] = Interval (0,0);
 
-  return Stencil (b, m.get_expr());
+  return Stencil (b, m.get_expr ());
 }
   
 
index 8988fa288a877681af65636c369ee5054f940102..61ab2ebbecd69b90bbe3dbc9b6d40b95701bf072 100644 (file)
@@ -53,7 +53,7 @@ System::spanner_count () const
   for (SCM s = get_property ("all-elements");
        gh_pair_p (s); s = ly_cdr (s))
     {
-      if (dynamic_cast<Spanner*> (unsmob_grob (gh_car(s))))
+      if (dynamic_cast<Spanner*> (unsmob_grob (gh_car (s))))
        k++;
     }
 
@@ -82,8 +82,8 @@ uniquify_list (SCM l)
   int len = scm_ilength (l);
   SCM  * arr = new SCM[len];
   int k = 0;
-  for (SCM s =l ; SCM_NNULLP (s); s = SCM_CDR(s))
-    arr[k++] = SCM_CAR(s);
+  for (SCM s =l ; SCM_NNULLP (s); s = SCM_CDR (s))
+    arr[k++] = SCM_CAR (s);
 
   assert (k == len);
   qsort (arr, len, sizeof (SCM), &scm_default_compare);
@@ -95,13 +95,13 @@ uniquify_list (SCM l)
       if (i && arr[i] == arr[i-1])
        continue;
 
-      SCM_SETCAR(s, arr[i]);
+      SCM_SETCAR (s, arr[i]);
 
       if (i < len - 1)
-       s = SCM_CDR(s);
+       s = SCM_CDR (s);
     }
 
-  SCM_SETCDR(s, SCM_EOL);
+  SCM_SETCDR (s, SCM_EOL);
   delete[] arr;
   
   return l; 
@@ -133,8 +133,8 @@ System::output_lines ()
          Item * it = dynamic_cast<Item*> (g);
          if (it && Item::is_breakable (it))
            {
-             it->find_prebroken_piece (LEFT)->suicide();
-             it->find_prebroken_piece (RIGHT)->suicide();
+             it->find_prebroken_piece (LEFT)->suicide ();
+             it->find_prebroken_piece (RIGHT)->suicide ();
            }
          g->suicide ();
        }
@@ -174,7 +174,7 @@ System::output_lines ()
     Because the this->get_property (all-elements) contains items
     in 3 versions, handle_broken_dependencies () will leave duplicated
     items in all-elements. Strictly speaking this is harmless, but it
-    leads to duplicated symbols in the output. uniquify_list() makes
+    leads to duplicated symbols in the output. uniquify_list () makes
     sure that no duplicates are in the list.
    */
   for (int i=0; i < broken_intos_.size (); i++)
@@ -277,8 +277,8 @@ set_loose_columns (System* which, Column_x_positions const *posns)
       */
       Grob * common = right->common_refpoint (left, X_AXIS);
       
-      Real rx =        right->extent(common, X_AXIS)[LEFT];
-      Real lx = left->extent(common, X_AXIS)[RIGHT];
+      Real rx =        right->extent (common, X_AXIS)[LEFT];
+      Real lx = left->extent (common, X_AXIS)[RIGHT];
       Real total_dx = rx - lx;
       Interval cval =col->extent (col, X_AXIS);
 
@@ -476,7 +476,7 @@ System::post_processing (bool last_line)
     This might seem inefficient, but Stencils are cached per grob
     anyway.
     */
-  this->get_stencil();
+  this->get_stencil ();
   for (SCM s = all; gh_pair_p (s); s = ly_cdr (s))
     {
       Grob * g = unsmob_grob (ly_car (s));
@@ -505,9 +505,9 @@ System::post_processing (bool last_line)
   /* Output elements in three layers, 0, 1, 2.
      The default layer is 1. */
   {
-    Stencil *m = this->get_stencil();
+    Stencil *m = this->get_stencil ();
     if (m)
-      output_stencil (m->get_expr (), Offset(0,0));
+      output_stencil (m->get_expr (), Offset (0,0));
   }
   
   for (int i = 0; i < 3; i++)
index b3f96b55ec5282b255e491af9ddcf1e6a86df5a7..1472e7104fd543e3514a9456b10baedf1c7c4864 100644 (file)
@@ -27,7 +27,7 @@ class Tab_note_heads_engraver : public Engraver
   Link_array<Music> note_events_;
   Link_array<Music> tabstring_events_;
 public:
-  TRANSLATOR_DECLARATIONS(Tab_note_heads_engraver);
+  TRANSLATOR_DECLARATIONS (Tab_note_heads_engraver);
 
 protected:
   virtual bool try_music (Music *event) ;
@@ -37,7 +37,7 @@ protected:
 };
 
 
-Tab_note_heads_engraver::Tab_note_heads_engraver()
+Tab_note_heads_engraver::Tab_note_heads_engraver ()
 {
 }
 
@@ -70,8 +70,8 @@ Tab_note_heads_engraver::process_music ()
   for (int i=0; i < note_events_.size (); i++)
     {
       SCM stringTunings = get_property ("stringTunings");
-      int number_of_strings = ((int) gh_length(stringTunings));
-      bool high_string_one = to_boolean(get_property ("highStringOne"));
+      int number_of_strings = ((int) gh_length (stringTunings));
+      bool high_string_one = to_boolean (get_property ("highStringOne"));
 
       Item * note  = make_item ("TabNoteHead");
       
@@ -92,7 +92,7 @@ Tab_note_heads_engraver::process_music ()
       if (!tabstring_event  && j < tabstring_events_.size ())
        {
          tabstring_event = tabstring_events_[j];
-         if (j +1 <  tabstring_events_.size())
+         if (j +1 <  tabstring_events_.size ())
            j++;
        }
 
@@ -100,7 +100,7 @@ Tab_note_heads_engraver::process_music ()
       bool string_found;
       if (tabstring_event)
        {
-         tab_string = gh_scm2int(tabstring_event->get_property ("string-number"));
+         tab_string = gh_scm2int (tabstring_event->get_property ("string-number"));
          string_found = true;
        }
       else
@@ -131,13 +131,13 @@ Tab_note_heads_engraver::process_music ()
       SCM scm_pitch = event->get_property ("pitch");
       SCM proc      = get_property ("tablatureFormat");
       SCM min_fret_scm = get_property ("minimumFret");
-      int min_fret = gh_number_p(min_fret_scm) ? gh_scm2int(min_fret_scm) : 0;
+      int min_fret = gh_number_p (min_fret_scm) ? gh_scm2int (min_fret_scm) : 0;
 
-      while(!string_found)
+      while (!string_found)
        {
-         int fret = unsmob_pitch(scm_pitch)->semitone_pitch()
-           - gh_scm2int(gh_list_ref(stringTunings,gh_int2scm(tab_string-1)));
-         if(fret<min_fret)
+         int fret = unsmob_pitch (scm_pitch)->semitone_pitch ()
+           - gh_scm2int (gh_list_ref (stringTunings,gh_int2scm (tab_string-1)));
+         if (fret<min_fret)
            tab_string += high_string_one ? 1 : -1;
          else
            string_found = true;
@@ -146,13 +146,13 @@ Tab_note_heads_engraver::process_music ()
       SCM text = gh_call3 (proc, gh_int2scm (tab_string), stringTunings, scm_pitch);
 
       int pos = 2 * tab_string - number_of_strings - 1; // No tab-note between the string !!!
-      if(to_boolean(get_property("stringOneTopmost")))
+      if (to_boolean (get_property ("stringOneTopmost")))
        pos = -pos;
       
       note->set_property ("text", text);      
       
       note->set_property ("staff-position", gh_int2scm (pos));
-      announce_grob (note, event->self_scm());
+      announce_grob (note, event->self_scm ());
       notes_.push (note);
     }
 }
@@ -177,7 +177,7 @@ Tab_note_heads_engraver::stop_translation_timestep ()
 }
 
 
-ENTER_DESCRIPTION(Tab_note_heads_engraver,
+ENTER_DESCRIPTION (Tab_note_heads_engraver,
 /* descr */       "Generate one or more tablature noteheads from Music of type NoteEvent.",
 /* creats*/       "TabNoteHead Dots",
 /* accepts */     "note-event string-number-event busy-playing-event",
index 77058f8ee44046ecbb71c46dc743dea2a976e2a0..80821732e79920ae0b2a48618d45307e4707bae4 100644 (file)
@@ -13,7 +13,7 @@
 class Tempo_performer : public Performer
 {
 public:
-  TRANSLATOR_DECLARATIONS(Tempo_performer);
+  TRANSLATOR_DECLARATIONS (Tempo_performer);
   ~Tempo_performer ();
 
 protected:
index 14a0180feda7f1faf19d139fd41e0bc57ebd2143..e87234978e2a9bc537c82cbd2583fe467df56ab5 100644 (file)
@@ -24,7 +24,7 @@ class Text_engraver : public Engraver
   Link_array<Music> reqs_;
   Link_array<Item> texts_;
 public:
-  TRANSLATOR_DECLARATIONS(Text_engraver);
+  TRANSLATOR_DECLARATIONS (Text_engraver);
 protected:
   virtual bool try_music (Music* m);
   virtual void stop_translation_timestep ();
@@ -131,7 +131,7 @@ Text_engraver::Text_engraver ()
 {
 }
 
-ENTER_DESCRIPTION(Text_engraver,
+ENTER_DESCRIPTION (Text_engraver,
 /* descr */       "Create text-scripts",
 /* creats*/       "TextScript",
 /* accepts */     "text-script-event",
index 29273cf6620f9a699b4cc8b4dcf5db86faeabcda..31d34024109c800c968b47582eca660b4270200f 100644 (file)
@@ -57,7 +57,7 @@ Text_item::interpret_markup (SCM paper, SCM props, SCM markup)
   return SCM_EOL;
 }
 
-MAKE_SCHEME_CALLBACK(Text_item,print,1);
+MAKE_SCHEME_CALLBACK (Text_item,print,1);
 SCM
 Text_item::print (SCM grob)
 {
index 0b0b0239b7f55ad8b327cde4adb2842d9b55a253..c5fb70991a30a64da1117ef375c7b7e2992fe841 100644 (file)
@@ -14,7 +14,7 @@
 class Text_spanner_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Text_spanner_engraver);  
+  TRANSLATOR_DECLARATIONS (Text_spanner_engraver);  
 protected:
   virtual void finalize ();
   virtual void acknowledge_grob (Grob_info);
@@ -76,7 +76,7 @@ Text_spanner_engraver::process_music ()
     {
       if (current_req_)
        {
-         req_drul_[START]->origin ()->warning(_ ("already have a text spanner"));
+         req_drul_[START]->origin ()->warning (_ ("already have a text spanner"));
        }
       else
        {
@@ -85,7 +85,7 @@ Text_spanner_engraver::process_music ()
 
          
          Side_position_interface::set_axis (span_, Y_AXIS);
-         announce_grob (span_, req_drul_[START]->self_scm());
+         announce_grob (span_, req_drul_[START]->self_scm ());
          req_drul_[START] = 0;
        }
     }
@@ -146,7 +146,7 @@ Text_spanner_engraver::finalize ()
     }
 }
 
-ENTER_DESCRIPTION(Text_spanner_engraver,
+ENTER_DESCRIPTION (Text_spanner_engraver,
 /* descr */       "Create text spanner from a Music.",
 /* creats*/       "TextSpanner",
 /* accepts */     "text-span-event",
index 2ec0391b365980ae3e1922d763a2f99178584c52..77321cbf6e44a6ae8835dfd040cbc854da524f44 100644 (file)
@@ -42,7 +42,7 @@ Text_spanner::print (SCM smob)
   /* Ugh, must be same as Hairpin::print.  */
 
   Grob *common = spanner->get_bound (LEFT)->common_refpoint (spanner->get_bound (RIGHT), X_AXIS);
-  Paper_def * paper = me->get_paper();
+  Paper_def * paper = me->get_paper ();
 
   SCM flare = me->get_property ("bracket-flare");
   SCM shorten = me->get_property ("shorten-pair");
@@ -116,7 +116,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);
     }
@@ -135,7 +135,7 @@ Text_spanner::print (SCM smob)
   while (flip (&d) != LEFT);
   do
     {
-      if (d* span_points[d] > d * edge[-d].extent(X_AXIS)[d])
+      if (d* span_points[d] > d * edge[-d].extent (X_AXIS)[d])
        {
          edge_line[d].translate_axis (span_points[d], X_AXIS);
          m.add_stencil (edge_line[d]);
index 6b48a88173e953d10a0f4afd9876d526d6d516ff..b176a34092670af11224b6008212e009e1e8b1ca 100644 (file)
@@ -48,7 +48,7 @@ protected:
   virtual void process_music ();
   void typeset_tie (Grob*);
 public:
-  TRANSLATOR_DECLARATIONS(Tie_engraver);
+  TRANSLATOR_DECLARATIONS (Tie_engraver);
 };
 
 
@@ -106,14 +106,14 @@ Tie_engraver::acknowledge_grob (Grob_info i)
              Tie::set_head (p, RIGHT, h);
          
              ties_.push (p);
-             announce_grob(p, last_event_->self_scm());
+             announce_grob (p, last_event_->self_scm ());
            }
        }
 
       if (ties_.size () && ! tie_column_)
        {
          tie_column_ = make_spanner ("TieColumn");
-         announce_grob(tie_column_, SCM_EOL);
+         announce_grob (tie_column_, SCM_EOL);
        }
 
       if (tie_column_)
@@ -141,7 +141,7 @@ Tie_engraver::stop_translation_timestep ()
          typeset_tie (ties_[i]);
        }
 
-      ties_.clear();
+      ties_.clear ();
       last_event_ = 0;
       if (tie_column_)
        {
@@ -181,7 +181,7 @@ Tie_engraver::typeset_tie (Grob *her)
 }
 
 
-ENTER_DESCRIPTION(Tie_engraver,
+ENTER_DESCRIPTION (Tie_engraver,
 /* descr */       "Generate ties between noteheads of equal pitch.",
 /* creats*/       "Tie TieColumn",
 /* accepts */     "tie-event",
index bfb0435eeacae31f50eea602839b5954e7a52165..92cde85eb5cd3e8825c3e85e59e03db04d419798 100644 (file)
@@ -29,7 +29,7 @@ protected:
   virtual bool try_music (Music*);
   virtual void process_music ();
 public:
-  TRANSLATOR_DECLARATIONS(Tie_performer);
+  TRANSLATOR_DECLARATIONS (Tie_performer);
 };
 
 
@@ -108,7 +108,7 @@ Tie_performer::stop_translation_timestep ()
   now_heads_.clear ();
 }
 
-ENTER_DESCRIPTION(Tie_performer,
+ENTER_DESCRIPTION (Tie_performer,
 /* descr */       "Generate ties between noteheads of equal pitch.",
 /* creats*/       "",
 /* accepts */     "tie-event",
index 2b388c323874bcc40b09052a7c4982e5151acdbb..92daec75b10d6f4cdb7e2208d8576b08fb3b9cb1 100644 (file)
@@ -228,7 +228,7 @@ Tie::get_control_points (SCM smob)
   if (Note_head::has_interface (l) && Rhythmic_head::get_dots (l))
     {
       Grob* dots = Rhythmic_head::get_dots (l);
-      if(fabs (staff_space * Staff_symbol_referencer::get_position (dots) /2
+      if (fabs (staff_space * Staff_symbol_referencer::get_position (dots) /2
               - ypos) < 0.5)
        {
          ypos += 0.5 * dir ;
index 55b339566e70f273024282ba80c8c1a7834da7ac..017dd42b7bea566146f464a293f6bbc5cf40716a 100644 (file)
@@ -25,7 +25,7 @@ protected:
   virtual void stop_translation_timestep ();
   virtual void process_music ();
 public:
-  TRANSLATOR_DECLARATIONS(Time_signature_engraver);
+  TRANSLATOR_DECLARATIONS (Time_signature_engraver);
 };
 
 
@@ -54,7 +54,7 @@ Time_signature_engraver::process_music ()
 
            OTOH, Tristan Keuris writes 8/20 in his Intermezzi.
           */
-         warning (_f("Found strange time signature %d/%d.",
+         warning (_f ("Found strange time signature %d/%d.",
                      den,
                      gh_scm2int (gh_car (fr))
                      ));
@@ -66,7 +66,7 @@ Time_signature_engraver::process_music ()
       time_signature_->set_property ("fraction",fr);
 
       if (time_signature_)
-       announce_grob(time_signature_, SCM_EOL);
+       announce_grob (time_signature_, SCM_EOL);
     }
 }
 
@@ -81,7 +81,7 @@ Time_signature_engraver::stop_translation_timestep ()
 }
  
 
-ENTER_DESCRIPTION(Time_signature_engraver,
+ENTER_DESCRIPTION (Time_signature_engraver,
 /* descr */       "Create a TimeSignature whenever @code{timeSignatureFraction} changes",
 /* creats*/       "TimeSignature",
 /* accepts */     "",
index efab395ee2e12aa5961118af8711b436a9392abc..2bc27ef5565a9c20a8dbf8513ec331f9863d95ac 100644 (file)
@@ -14,7 +14,7 @@
 class Time_signature_performer : public Performer
 {
 public:
-  TRANSLATOR_DECLARATIONS(Time_signature_performer);
+  TRANSLATOR_DECLARATIONS (Time_signature_performer);
   ~Time_signature_performer ();
 
 protected:
@@ -67,4 +67,4 @@ Time_signature_performer::stop_translation_timestep ()
     }
 }
 
-ENTER_DESCRIPTION(Time_signature_performer,"","","","","","");
+ENTER_DESCRIPTION (Time_signature_performer,"","","","","","");
index 9c2ab3822cfae7b3f3844a7b25ca7260e8621213..b92028b161e018ef3c56f30c110a83b0d08a08cc 100644 (file)
@@ -104,10 +104,10 @@ Time_signature::numbered_time_signature (Grob*me,int num, int den)
   me->set_property ("font-family", ly_symbol2scm ("number"));
 
 SCM sn =
-    Text_item::interpret_markup (me->get_paper ()->self_scm(), chain,
+    Text_item::interpret_markup (me->get_paper ()->self_scm (), chain,
                                 scm_makfrom0str (to_string (num).to_str0 ()));
 SCM sd =
-    Text_item::interpret_markup (me->get_paper ()->self_scm(), chain,
+    Text_item::interpret_markup (me->get_paper ()->self_scm (), chain,
                                 scm_makfrom0str (to_string (den).to_str0 ()));
 
   Stencil n = *unsmob_stencil (sn);
index f2ff5c4fea13b1d483494ed733defe729796e571..e097d93197d182dbea377d2171e4118ad46b7814 100644 (file)
@@ -148,4 +148,4 @@ Timing_translator::start_translation_timestep ()
   daddy_context_->set_property ("measurePosition", measposp.smobbed_copy ());
 }
 
-ENTER_DESCRIPTION(Timing_translator,"","","","","","");
+ENTER_DESCRIPTION (Timing_translator,"","","","","","");
index abac03a98699d3edf0124e02cd0d544b5c6540a9..480f7d84bd4eeb9243691aa3dc55475f7965964d 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 an list of a all translator objects that may be instantiated "
          " during a lilypond run.")
 {
index cc54f007336e2920cf48eeaf25458fabeee8fd85..bd33135e10975935568de0ddfdb7b5790ea8b3d6 100644 (file)
@@ -46,7 +46,7 @@ bool
 translator_accepts_any_of (Translator*tr, SCM ifaces)
 {
   SCM ack_ifs = scm_assoc (ly_symbol2scm ("events-accepted"),
-                          tr->translator_description());
+                          tr->translator_description ());
   ack_ifs = gh_cdr (ack_ifs);
   for (SCM s = ifaces; ly_pair_p (s); s = ly_cdr (s))
     if (scm_memq (ly_car (s), ack_ifs) != SCM_BOOL_F)
index 62b5a6c450c8c0aba86205860ba6b3040ea5be1a..d8211a24c1f3c1c19855317d7107482979d9ca49 100644 (file)
@@ -94,7 +94,7 @@ Translator::stop_translation_timestep ()
 /*
   this function has 2 properties
 
-  - It is called before try_music()
+  - It is called before try_music ()
 
   - It is called before any user information enters the translators.
   (i.e. any \property or event is not processed yet.)
@@ -158,4 +158,4 @@ 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?");
index 2e76226bfd813088b31927ae36f7f5defb4ce5fe..be0e0a2294fcd9bbb2ae4bc6627439c0bba442e2 100644 (file)
@@ -63,7 +63,7 @@ Tuplet_bracket::parallel_beam (Grob *me, Link_array<Grob> const &cols, bool *equ
     ugh: code dup. 
   */
   Grob *s1 = Note_column::get_stem (cols[0]); 
-  Grob *s2 = Note_column::get_stem (cols.top());    
+  Grob *s2 = Note_column::get_stem (cols.top ());    
 
   Grob*b1 = s1 ? Stem::get_beam (s1) : 0;
   Grob*b2 = s2 ? Stem::get_beam (s2) : 0;
@@ -77,14 +77,14 @@ Tuplet_bracket::parallel_beam (Grob *me, Link_array<Grob> const &cols, bool *equ
   Link_array<Grob> beam_stems = Pointer_group_interface__extract_grobs
     (b1, (Grob*)0, "stems");
 
-  if (beam_stems.size() == 0)
+  if (beam_stems.size () == 0)
     {
       programming_error ("Beam under tuplet bracket has no stems!");
       *equally_long = 0;
       return 0;
     }
   
-  *equally_long = (beam_stems[0] == s1 && beam_stems.top() == s2);
+  *equally_long = (beam_stems[0] == s1 && beam_stems.top () == s2);
   return b1;
 }
 
@@ -154,13 +154,13 @@ Tuplet_bracket::print (SCM smob)
     Tuplet brackets are normally not broken, but we shouldn't crash if
     they are.
    */
-  commonx = commonx->common_refpoint (sp->get_bound(LEFT), X_AXIS);
-  commonx = commonx->common_refpoint (sp->get_bound(RIGHT), X_AXIS);  
+  commonx = commonx->common_refpoint (sp->get_bound (LEFT), X_AXIS);
+  commonx = commonx->common_refpoint (sp->get_bound (RIGHT), X_AXIS);  
   
   Direction dir = get_grob_direction (me);
 
   Grob * lgr = get_x_bound_grob (columns[0], dir);
-  Grob * rgr = get_x_bound_grob (columns.top(), dir);  
+  Grob * rgr = get_x_bound_grob (columns.top (), dir);  
   Real x0 = lgr->extent (commonx,X_AXIS)[LEFT];
   Real x1 = rgr->extent (commonx,X_AXIS)[RIGHT];
 
@@ -245,7 +245,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;
@@ -354,7 +354,7 @@ Tuplet_bracket::calc_position_and_height (Grob*me,Real *offset, Real * dy)
 
   
   Grob * lgr = get_x_bound_grob (columns[0], dir);
-  Grob * rgr = get_x_bound_grob (columns.top(), dir);  
+  Grob * rgr = get_x_bound_grob (columns.top (), dir);  
   Real x0 = lgr->extent (commonx,X_AXIS)[LEFT];
   Real x1 = rgr->extent (commonx,X_AXIS)[RIGHT];
 
@@ -414,7 +414,7 @@ Tuplet_bracket::before_line_breaking (SCM smob)
     Pointer_group_interface__extract_grobs (me, (Grob*)0, "note-columns");
 
 
-  for (int i = columns.size(); i--;)
+  for (int i = columns.size (); i--;)
     {
       Grob * s =Note_column::get_stem (columns[i]);
       Grob * b = s ? Stem::get_beam (s): 0;
@@ -441,7 +441,7 @@ Tuplet_bracket::after_line_breaking (SCM smob)
   if (dynamic_cast<Spanner*> (me)->is_broken ())
     {
       me->warning (_("Killing tuplet bracket across linebreak."));
-      me->suicide();
+      me->suicide ();
       return SCM_UNSPECIFIED;
     }
   
@@ -509,7 +509,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"); gh_pair_p (s); s = ly_cdr (s))
     {
       Grob * nc = unsmob_grob (ly_car (s));
index 128238a34364c20de43c25c11bfbb228bd7f5b9c..82ef13dbdf5267ca98d55342e66140bdf12672fa 100644 (file)
@@ -20,7 +20,7 @@
 class Tuplet_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Tuplet_engraver);
+  TRANSLATOR_DECLARATIONS (Tuplet_engraver);
 
 protected:
   Link_array<Music> time_scaled_musics_;
@@ -85,7 +85,7 @@ Tuplet_engraver::process_acknowledged_grobs ()
          glep->set_property ("text", t);
        }
       
-      announce_grob(glep, time_scaled_musics_ [i]->self_scm());
+      announce_grob (glep, time_scaled_musics_ [i]->self_scm ());
     }
 }
 
@@ -150,9 +150,9 @@ Tuplet_engraver::finalize ()
 
 
 
-Tuplet_engraver::Tuplet_engraver(){}
+Tuplet_engraver::Tuplet_engraver (){}
 
-ENTER_DESCRIPTION(Tuplet_engraver,
+ENTER_DESCRIPTION (Tuplet_engraver,
 /* descr */       "Catch Time_scaled_music and generate appropriate bracket  ",
 /* creats*/       "TupletBracket",
 /* accepts */     "time-scaled-music",
index b5832f93cecc04e0c19179d3c2ddf30a33ab5a31..c14581e099d91aa6b07e9f14c5c8692e65929bd0 100644 (file)
@@ -15,7 +15,7 @@ protected:
   virtual bool try_music (Music*) { return true; }
 
 public:  
-  TRANSLATOR_DECLARATIONS(Skip_event_swallow_translator);
+  TRANSLATOR_DECLARATIONS (Skip_event_swallow_translator);
 };
 
 
@@ -25,13 +25,13 @@ protected:
   virtual bool try_music (Music*) { return true; }
 
 public:  
-  TRANSLATOR_DECLARATIONS(Rest_swallow_translator);
+  TRANSLATOR_DECLARATIONS (Rest_swallow_translator);
 };
 
 
-Skip_event_swallow_translator::Skip_event_swallow_translator(){}
+Skip_event_swallow_translator::Skip_event_swallow_translator (){}
 
-ENTER_DESCRIPTION(Skip_event_swallow_translator,
+ENTER_DESCRIPTION (Skip_event_swallow_translator,
                  "Swallow \\skip.",
                  "",
                  "skip-event",
@@ -40,9 +40,9 @@ ENTER_DESCRIPTION(Skip_event_swallow_translator,
                  "");
 
 
-Rest_swallow_translator::Rest_swallow_translator(){}
+Rest_swallow_translator::Rest_swallow_translator (){}
 
-ENTER_DESCRIPTION(Rest_swallow_translator,
+ENTER_DESCRIPTION (Rest_swallow_translator,
                  "Swallow rest",
                  "",
                  "rest-event",
@@ -58,12 +58,12 @@ protected:
   virtual bool try_music (Music*) { return true; }
 
 public:  
-  TRANSLATOR_DECLARATIONS(Note_swallow_translator);
+  TRANSLATOR_DECLARATIONS (Note_swallow_translator);
 };
 
-Note_swallow_translator::Note_swallow_translator(){}
+Note_swallow_translator::Note_swallow_translator (){}
 
-ENTER_DESCRIPTION(Note_swallow_translator,
+ENTER_DESCRIPTION (Note_swallow_translator,
                  "Swallow notes",
                  "",
                  "note-event",
index fa6ee090fb65c74619373326256ea1aae35ff10b..8565c17250da492131f52d40bcf1eb58b6852100 100644 (file)
@@ -20,5 +20,5 @@ Un_relativable_music::to_relative_octave (Pitch p)
   return p;
 }
 
-ADD_MUSIC(Un_relativable_music);
+ADD_MUSIC (Un_relativable_music);
 
index 8eb234c3b4ec23fca0621679575cc6530a4a7c1e..70ee5a4dfbb44727e246fdc01faf069a9835b1b3 100644 (file)
@@ -15,7 +15,7 @@ source file of the GNU LilyPond music typesetter
 class Unfolded_repeat_iterator : public Sequential_iterator
 {
 public:
-  DECLARE_SCHEME_CALLBACK(constructor, ());
+  DECLARE_SCHEME_CALLBACK (constructor, ());
 protected:
   virtual SCM get_music_list () const;
 };
@@ -55,14 +55,14 @@ Unfolded_repeat_iterator::get_music_list () const
 class Volta_repeat_iterator : public Sequential_iterator
 {
 public:
-  DECLARE_SCHEME_CALLBACK(constructor, ());
-  Volta_repeat_iterator();
+  DECLARE_SCHEME_CALLBACK (constructor, ());
+  Volta_repeat_iterator ();
 
   void add_repeat_command (SCM);
 protected:
   virtual SCM get_music_list () const;
   virtual void next_element (bool);
-  virtual void construct_children();
+  virtual void construct_children ();
   virtual void process (Moment);
 
   bool first_time_;
@@ -72,14 +72,14 @@ protected:
 };
 
 
-Volta_repeat_iterator::Volta_repeat_iterator()
+Volta_repeat_iterator::Volta_repeat_iterator ()
 {
   done_count_ = alt_count_ = rep_count_= 0;
   first_time_ = true;
 }
 
 SCM
-Volta_repeat_iterator::get_music_list()const
+Volta_repeat_iterator::get_music_list ()const
 {
   return gh_cons (get_music ()->get_property ("element"),
                  get_music ()->get_property ("elements"));
@@ -88,7 +88,7 @@ Volta_repeat_iterator::get_music_list()const
 void
 Volta_repeat_iterator::construct_children ()
 {
-  Sequential_iterator::construct_children();
+  Sequential_iterator::construct_children ();
   
   SCM alts = get_music ()->get_property ("elements");
 
@@ -164,9 +164,9 @@ Volta_repeat_iterator::process (Moment m)
       add_repeat_command (ly_symbol2scm ("start-repeat"));
       first_time_ = false;
     }
-  Sequential_iterator::process(m);
+  Sequential_iterator::process (m);
 }
 
 
-IMPLEMENT_CTOR_CALLBACK(Volta_repeat_iterator);
-IMPLEMENT_CTOR_CALLBACK(Unfolded_repeat_iterator);
+IMPLEMENT_CTOR_CALLBACK (Volta_repeat_iterator);
+IMPLEMENT_CTOR_CALLBACK (Unfolded_repeat_iterator);
index a6c3024fa462631ec457dc67a1f7a10dca3ced00..754ad9733316807f52c99aa394ab542a1879a1e8 100644 (file)
@@ -25,9 +25,9 @@ Untransposable_music::to_relative_octave (Pitch p)
   return p;
 }
 
-ADD_MUSIC(Untransposable_music);
+ADD_MUSIC (Untransposable_music);
 
-Untransposable_music::Untransposable_music()
+Untransposable_music::Untransposable_music ()
 {
 
 }
index 66acf675bd4278db24fa690a1e095512e20280bf..8fd1a60d903b8270c68aced28b5a5fd4f497f3d7 100644 (file)
@@ -33,7 +33,7 @@ private:
                    Real thickness);
 
 public:
-  TRANSLATOR_DECLARATIONS(Vaticana_ligature_engraver);
+  TRANSLATOR_DECLARATIONS (Vaticana_ligature_engraver);
 
 protected:
   virtual Spanner *create_ligature_spanner ();
@@ -277,7 +277,7 @@ Vaticana_ligature_engraver::align_heads (Array<Grob_info> primitives,
          else
            {
              prev_primitive->set_property ("add-join",
-                                                gh_bool2scm(true));
+                                                gh_bool2scm (true));
 
              /*
               * Create a small overlap of adjacent heads so that the join
@@ -339,7 +339,7 @@ check_for_prefix_loss (Item *primitive)
   if (prefix_set & ~PES_OR_FLEXA)
     {
       String prefs = Gregorian_ligature::prefixes_to_str (primitive);
-      primitive->warning (_f ("ignored prefix(es) `%s' of this head according "
+      primitive->warning (_f ("ignored prefix (es) `%s' of this head according "
                              "to restrictions of the selected ligature style",
                              prefs.to_str0 ()));
     }
@@ -358,7 +358,7 @@ Vaticana_ligature_engraver::transform_heads (Spanner *ligature,
   int prev_context_info = 0;
   int prev_delta_pitch = 0;
   String prev_glyph_name = "";
-  for (int i = 0; i < primitives.size(); i++) {
+  for (int i = 0; i < primitives.size (); i++) {
     Item *primitive = dynamic_cast<Item*> (primitives[i].grob_);
 
     int delta_pitch;
@@ -397,7 +397,7 @@ Vaticana_ligature_engraver::transform_heads (Spanner *ligature,
     if (prefix_set & VIRGA)
       {
        glyph_name = "vaticana_punctum";
-       primitive->set_property ("add-stem", gh_bool2scm(true));
+       primitive->set_property ("add-stem", gh_bool2scm (true));
       }
     else if (prefix_set & QUILISMA)
       glyph_name = "vaticana_quilisma";
@@ -459,7 +459,7 @@ Vaticana_ligature_engraver::transform_heads (Spanner *ligature,
               * placed somewhere else.
               */
              prev_primitive->set_property ("add-cauda",
-                                                gh_bool2scm(false));
+                                                gh_bool2scm (false));
            }
          glyph_name = "vaticana_reverse_plica";
        }
@@ -490,7 +490,7 @@ Vaticana_ligature_engraver::transform_heads (Spanner *ligature,
      */
     if ((context_info & FLEXA_LEFT) && !(context_info & PES_UPPER))
       if (!String::compare (glyph_name, "vaticana_punctum"))
-       primitive->set_property ("add-cauda", gh_bool2scm(true));
+       primitive->set_property ("add-cauda", gh_bool2scm (true));
 
     /*
      * Execptional rule for porrectus:
@@ -565,15 +565,15 @@ Vaticana_ligature_engraver::transform_heads (Spanner *ligature,
   align_heads (primitives, flexa_width, thickness);
 
 #if 0 // experimental code to collapse spacing after ligature
-  /* TODO: set to max(old/new spacing-increment), since other
+  /* TODO: set to max (old/new spacing-increment), since other
      voices/staves also may want to set this property. */
   Item *first_primitive = dynamic_cast<Item*> (primitives[0].grob_);
-  Paper_column *paper_column = first_primitive->get_column();
+  Paper_column *paper_column = first_primitive->get_column ();
   paper_column->warning (_f ("Vaticana_ligature_engraver: "
                             "setting `spacing-increment = %f': ptr=%ul",
                             ligature_width, paper_column));
   paper_column->
-    set_property("forced-spacing", gh_double2scm (ligature_width));
+    set_property ("forced-spacing", gh_double2scm (ligature_width));
 #endif
 }
 
index a8512025100221aa6b7d4d9b977981ad21ca37b6..8d2d941b87a38f812969d74a4213872db0801110 100644 (file)
@@ -100,14 +100,14 @@ vaticana_brew_flexa (Grob *me,
    */
   Real left_height =
     right_height +
-    min (0.12 * abs(interval), 0.3) * staff_space;
+    min (0.12 * abs (interval), 0.3) * staff_space;
 
   /*
    * Compensate optical illusion regarding vertical position of left
    * and right endings due to curved shape.
    */
-  Real ypos_correction = -0.1*staff_space * sign(interval);
-  Real interval_correction = 0.2*staff_space * sign(interval);
+  Real ypos_correction = -0.1*staff_space * sign (interval);
+  Real interval_correction = 0.2*staff_space * sign (interval);
   Real corrected_interval = interval*staff_space + interval_correction;
 
   /*
@@ -139,13 +139,13 @@ vaticana_brew_flexa (Grob *me,
       inner_top_curve.translate (Offset (0.0, -line_thickness));
       Stencil top_edge =
        Lookup::bezier_sandwich (top_curve, inner_top_curve);
-      stencil.add_stencil(top_edge);
+      stencil.add_stencil (top_edge);
 
       Bezier inner_bottom_curve = bottom_curve;
       inner_bottom_curve.translate (Offset (0.0, +line_thickness));
       Stencil bottom_edge =
        Lookup::bezier_sandwich (bottom_curve, inner_bottom_curve);
-      stencil.add_stencil(bottom_edge);
+      stencil.add_stencil (bottom_edge);
 
       /*
        * TODO: Use horizontal slope with proper slope value rather
@@ -158,14 +158,14 @@ vaticana_brew_flexa (Grob *me,
       Box left_edge_box (Interval (0, line_thickness),
                         Interval (-0.5*left_height, +0.5*left_height));
       Stencil left_edge = Lookup::filled_box (left_edge_box);
-      stencil.add_stencil(left_edge);
+      stencil.add_stencil (left_edge);
 
       Box right_edge_box (Interval (-line_thickness, 0),
                          Interval (-0.5*right_height, +0.5*right_height));
       Stencil right_edge = Lookup::filled_box (right_edge_box);
       right_edge.translate_axis (width, X_AXIS);
       right_edge.translate_axis (corrected_interval / 2.0, Y_AXIS);
-      stencil.add_stencil(right_edge);
+      stencil.add_stencil (right_edge);
     }
   stencil.translate_axis (ypos_correction, Y_AXIS);
   return stencil;
@@ -302,11 +302,11 @@ vaticana_brew_primitive (Grob *me, bool ledger_take_space)
       out.add_stencil (join);
     }
 
-  vaticana_add_ledger_lines(me, &out, pos, 0, ledger_take_space);
+  vaticana_add_ledger_lines (me, &out, pos, 0, ledger_take_space);
   if (!String::compare (glyph_name, "flexa"))
     {
       pos += flexa_height;
-      vaticana_add_ledger_lines(me, &out, pos, 0.5*flexa_height,
+      vaticana_add_ledger_lines (me, &out, pos, 0.5*flexa_height,
                                ledger_take_space);
     }
 
index f4d24c71f0e68aae3005f24eb32e815d2cad10db..b703745c4b5be2c852930d7ddf1e4fee1cf59936 100644 (file)
@@ -18,7 +18,7 @@ class Vertical_align_engraver : public Engraver
   Spanner * valign_;
   bool qualifies (Grob_info) const;  
 public:
-  TRANSLATOR_DECLARATIONS(Vertical_align_engraver);
+  TRANSLATOR_DECLARATIONS (Vertical_align_engraver);
 protected:
   virtual void acknowledge_grob (Grob_info);
   virtual void process_music ();
@@ -71,7 +71,7 @@ Vertical_align_engraver::acknowledge_grob (Grob_info i)
 }
 
 
-ENTER_DESCRIPTION(Vertical_align_engraver,
+ENTER_DESCRIPTION (Vertical_align_engraver,
 /* descr */       "Catch Vertical axis groups and stack them.",
 /* creats*/       "VerticalAlignment",
 /* accepts */     "",
index 744da20afdc7dabe594ab3a5c0680fe81bfd4c9a..ba4580e92992bb9046d667c4eb3ad7919a75c363 100644 (file)
@@ -27,13 +27,13 @@ Virtual_font_metric::Virtual_font_metric (SCM name_list,
       SCM nm = gh_car (s);
 
       Font_metric *fm = def->find_font (nm, mag);
-      *tail =  scm_cons (fm->self_scm(),SCM_EOL);
+      *tail =  scm_cons (fm->self_scm (),SCM_EOL);
       tail = SCM_CDRLOC (*tail);
     }
 }
 
 void
-Virtual_font_metric::derived_mark()const
+Virtual_font_metric::derived_mark ()const
 {
   scm_gc_mark (font_list_);
 }
@@ -68,14 +68,14 @@ Box
 Virtual_font_metric::get_ascii_char (int)  const
 {
   programming_error ("Virtual font metric cannot be indexed by ASCII.");
-  return Box();
+  return Box ();
 }
 
 Stencil
 Virtual_font_metric::get_ascii_char_stencil (int )  const
 {
   programming_error ("Virtual font metric cannot be indexed by ASCII.");
-  return Stencil();
+  return Stencil ();
 }
 
 
@@ -112,7 +112,7 @@ Virtual_font_metric::get_indexed_char (int code)  const
     }
 
   
-  return Box();
+  return Box ();
 }
 
 
@@ -144,7 +144,7 @@ Virtual_font_metric::get_indexed_char_stencil (int code)  const
   for (SCM s = font_list_; gh_pair_p (s); s = gh_cdr (s))
     {
       Font_metric* fm = unsmob_metrics (gh_car (s));
-      if (code < total + fm->count())
+      if (code < total + fm->count ())
        {
          m = fm->get_indexed_char_stencil (code - total); // ugh.
          break; 
index ed83d76e2820c41739479899a8cfdfa95a639ea3..119868b189bddcbeddd42743d0bc4d72ab7a545f 100644 (file)
@@ -53,18 +53,18 @@ Volta_bracket_interface::print (SCM smob)
   bool no_vertical_end = orig_span && !broken_last_bracket;
   SCM s = me->get_property ("bars");
   Grob * endbar =   unsmob_grob (ly_car (s));
-  SCM glyph = endbar->get_property("glyph");
+  SCM glyph = endbar->get_property ("glyph");
   
   String str;
   if (gh_string_p (glyph))
-    str = ly_scm2string(glyph);
+    str = ly_scm2string (glyph);
   else
     return SCM_EOL;
   
   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);
 
   Paper_def * paper =me->get_paper ();
   Real half_space = 0.5;
index 50839bf5bd1552870c40834ef8dd61965b7cb662..d0bf95641940341f2635a16432e8a09aa7f4f47b 100644 (file)
@@ -24,7 +24,7 @@
 class Volta_engraver : public Engraver
 {
 public:
-  TRANSLATOR_DECLARATIONS(Volta_engraver);
+  TRANSLATOR_DECLARATIONS (Volta_engraver);
 protected:
 
   virtual void acknowledge_grob (Grob_info);
@@ -200,7 +200,7 @@ Volta_engraver::acknowledge_grob (Grob_info i)
        staff_ = SCM_UNDEFINED;
 
       if (staff_ != SCM_UNDEFINED)
-       staff_ = i.grob_->self_scm();
+       staff_ = i.grob_->self_scm ();
     }
 }
 
@@ -228,10 +228,10 @@ Volta_engraver::stop_translation_timestep ()
        THIS IS A KLUDGE.
 
        we need to do this here, because STAFF_ is not initialized yet
-       in the 1st call of process_music()
+       in the 1st call of process_music ()
       */
       
-      volta_span_->suicide( );
+      volta_span_->suicide ( );
       volta_span_ = 0;
     }
   
@@ -246,7 +246,7 @@ Volta_engraver::stop_translation_timestep ()
   TODO: should attach volta to paper-column if no bar is found.
  */
 
-ENTER_DESCRIPTION(Volta_engraver,
+ENTER_DESCRIPTION (Volta_engraver,
 /* descr */       "Make volta brackets",
 /* creats*/       "VoltaBracket",
 /* accepts */     "",
index a06502de5c150a76a5b638bb31942d8da72648c3..ab66bf798fcffe05434a60f9af8d93e26e2b8bf2 100644 (file)
     (AccidentalPlacement
      . (
        (X-extent-callback . ,Axis_group_interface::group_extent_callback)
-       (left-padding . 0.3)
+       (left-padding . 0.2)
 
        ;; this is quite small, but it is very ugly to have
        ;; accs closer to the previous note than to the next one.
-       (right-padding . 0.25)
+       (right-padding . 0.15)
        (meta . ((interfaces . (item-interface accidental-placement-interface))))
        ))