source file of the GNU LilyPond music typesetter
- (c) 1998--2002 Jan Nieuwenhuizen <janneke@gnu.org>
+ (c) 1998--2003 Jan Nieuwenhuizen <janneke@gnu.org>
*/
#include "engraver.hh"
#include "chord-name.hh"
#include "chord.hh"
-#include "musical-request.hh"
+#include "event.hh"
#include "paper-def.hh"
#include "font-interface.hh"
#include "paper-def.hh"
virtual bool try_music (Music *);
private:
- void add_note (Note_req *);
+ void add_note (Music *);
Item* chord_name_;
}
void
-Chord_name_engraver::add_note (Note_req* n)
+Chord_name_engraver::add_note (Music * n)
{
SCM pitches = ly_car (chord_);
SCM modifiers = ly_cdr (chord_);
bool
Chord_name_engraver::try_music (Music* m)
{
- if (Note_req* n = dynamic_cast<Note_req*> (m))
+ /*
+ hmm. Should check?
+ */
+ if (m->is_mus_type ("note-event"))
{
- add_note (n);
+ add_note (m);
return true;
}
return false;
}
ENTER_DESCRIPTION(Chord_name_engraver,
-/* descr */ "Catch Note_req's, Tonic_reqs, Inversion_reqs, Bass_req
-and generate the appropriate chordname.",
+/* descr */ "Catch note-events, Tonic_reqs, Inversion_reqs, Bass_req "
+"and generate the appropriate chordname.",
/* creats*/ "ChordName",
-/* accepts */ "general-music",
+/* accepts */ "note-event busy-playing-event",
/* acks */ "",
/* reads */ "chordChanges",
/* write */ "");