source file of the GNU LilyPond music typesetter
- (c) 1998--2005 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 1998--2006 Jan Nieuwenhuizen <janneke@gnu.org>
*/
#include "engraver.hh"
{
TRANSLATOR_DECLARATIONS (Chord_name_engraver);
protected:
- PRECOMPUTED_VIRTUAL void stop_translation_timestep ();
- PRECOMPUTED_VIRTUAL void process_music ();
+ void stop_translation_timestep ();
+ void process_music ();
virtual bool try_music (Music *);
virtual void finalize ();
virtual void derived_mark () const;
void add_note (Music *);
Item *chord_name_;
- Link_array<Music> notes_;
+ vector<Music*> notes_;
SCM last_chord_;
};
void
Chord_name_engraver::add_note (Music *n)
{
- notes_.push (n);
+ notes_.push_back (n);
}
void
SCM pitches = SCM_EOL;
Music *inversion_event = 0;
- for (int i = 0; i < notes_.size (); i++)
+ for (vsize i = 0; i < notes_.size (); i++)
{
Music *n = notes_[i];
SCM p = n->get_property ("pitch");
#include "translator.icc"
ADD_TRANSLATOR (Chord_name_engraver,
- /* descr */ "Catch note-events "
+ /* doc */ "Catch note-events "
"and generate the appropriate chordname.",
- /* creats*/ "ChordName",
- /* accepts */ "note-event",
- /* reads */ "chordChanges chordNameExceptions chordNameFunction "
+ /* create */ "ChordName",
+ /* accept */ "note-event",
+ /* read */ "chordChanges chordNameExceptions chordNameFunction "
"chordNoteNamer chordRootNamer chordNameExceptions majorSevenSymbol",
/* write */ "");