source file of the GNU LilyPond music typesetter
- (c) 1998--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1998--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "engraver-group-engraver.hh"
beam_ = 0;
}
else if (m->is_mus_type ("beam-event"))
- {
- Direction d = to_dir (m->get_mus_property ("span-direction"));
-
- if (d == STOP && !valid_end_moment())
- return false;
-
- if (d == START && !valid_start_moment ())
- return false;
-
- if (d == STOP)
- {
- SCM m = get_property ("automaticMelismata");
- SCM b = get_property ("autoBeaming");
- if (to_boolean (m) && !to_boolean (b))
- {
- set_melisma (false);
- }
- }
-
- evs_drul_[d ] = m;
- return true;
- }
- else if (m->is_mus_type ("new-beam-event"))
{
Direction d = to_dir (m->get_mus_property ("span-direction"));
if (d == START && !valid_start_moment ())
if (d == START)
evs_drul_[d] = m;
else if (d==STOP)
- now_stop_ev_ = m;
-
+ {
+ now_stop_ev_ = m;
+ }
return true;
}
return false;
beam_ = 0;
}
- if (beam_)
+ if (beam_ && !to_boolean (get_property ("allowBeamBreak")))
{
top_engraver ()->forbid_breaks ();
}
+
if (evs_drul_[START])
{
if (beam_)
beam_ = 0;
beam_info_ = 0;
typeset_beam();
+
+ if (to_boolean (get_property ("automaticMelismata"))
+ && !to_boolean (get_property ("autoBeaming")))
+ {
+ set_melisma (false);
+ }
}
}
/* descr */ "Handles Beam events by engraving Beams. If omitted, then notes will be "
"printed with flags instead of beams.",
/* creats*/ "Beam",
-/* accepts */ "beam-event new-beam-event abort-event",
+/* accepts */ "beam-event abort-event",
/* acks */ "stem-interface rest-interface",
/* reads */ "beamMelismaBusy beatLength subdivideBeams",
/* write */ "");
" are at grace points in time. "
,
/* creats*/ "Beam",
-/* accepts */ "beam-event abort-event new-beam-event",
+/* accepts */ "beam-event abort-event",
/* acks */ "stem-interface rest-interface",
-/* reads */ "beamMelismaBusy beatLength subdivideBeams",
+/* reads */ "beamMelismaBusy beatLength allowBeamBreak subdivideBeams",
/* write */ "");