lilypond-1.3.28
[lilypond.git] / lily / melisma-engraver.cc
blob3a89ad968fbc62b65cd4b0ae4789155e3a404229
1 /*
2 melisma-engraver.cc -- implement Melisma_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
10 #include "engraver.hh"
11 #include "musical-request.hh"
13 /**
14 Signal existence of melismas.
16 class Melisma_engraver:public Engraver
18 public:
19 VIRTUAL_COPY_CONS(Translator);
20 bool do_try_music (Music *);
23 ADD_THIS_TRANSLATOR(Melisma_engraver);
25 bool
26 Melisma_engraver::do_try_music (Music *m )
28 if (dynamic_cast<Melisma_playing_req*>(m))
30 SCM plain (get_property ("melismaBusy", 0));
31 SCM slur (get_property ("slurMelismaBusy", 0));
32 SCM tie (get_property ("tieMelismaBusy", 0));
33 return (to_boolean (plain))
34 || (to_boolean (slur))
35 || (to_boolean (tie));
37 return false;