lilypond-1.3.65
[lilypond.git] / lily / melisma-engraver.cc
blobf3b96c7fcfac665d0768aaebe22fd6be3b0d7d4b
1 /*
2 melisma-engraver.cc -- implement Melisma_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2000 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"));
31 SCM slur (get_property ("slurMelismaBusy"));
32 SCM tie (get_property ("tieMelismaBusy"));
33 return (to_boolean (plain))
34 || (to_boolean (slur))
35 || (to_boolean (tie));
37 return false;