]> git.donarmstrong.com Git - lilypond.git/blob - lily/melisma-engraver.cc
2003 -> 2004
[lilypond.git] / lily / melisma-engraver.cc
1 /*   
2   melisma-engraver.cc --  implement Melisma_engraver
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #include "engraver.hh"
11 #include "event.hh"
12 #include "grob.hh"
13 #include "translator-group.hh"
14
15 /**
16    Signal existence of melismas.
17  */
18 class Melisma_engraver:public Engraver
19 {
20 public:
21   TRANSLATOR_DECLARATIONS(Melisma_engraver);
22   bool try_music (Music *);
23 };
24
25
26 bool
27 Melisma_engraver::try_music (Music *) 
28 {
29   /*
30     This can only be melisma-playing-event.
31    */
32   return melisma_busy (this);
33 }
34
35 Melisma_engraver::Melisma_engraver()
36 {
37 }
38
39 ENTER_DESCRIPTION(Melisma_engraver,
40 /* descr */       "This engraver collects melisma information about ties, beams, and user settings (@code{melismaBusy}, and signals it to the @code{\addlyrics} code.  ",
41 /* creats*/       "",
42 /* accepts */     "melisma-playing-event",
43 /* acks  */      "",
44 /* reads */       "melismaBusy melismaBusyProperties slurMelismaBusy tieMelismaBusy beamMelismaBusy",
45 /* write */       "");