get spurious messages with skipTypesetting on.
+2004-08-26 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * lily/slur-engraver.cc (try_music): ignore slurs_. Otherwise we
+ get spurious messages with skipTypesetting on.
+
2004-08-25 Graham Percival <gperlist@shaw.ca>
* Documentation/user/lilypond-book.itely: slight clean-up.
* lily/slur-engraver.cc (finalize): read inside-slur property.
- * scm/lily.scm (postscript->png): use ~a iso. ~s
+ * scm/lily.scm (postscript->png): use ~a iso. ~s in progress
+ message.
* ly/property-init.ly (unHideNotes): hide accidentals at staff
level. Fixes: hideNotes-accidental.ly
Offset complex_exp (Offset);
-/** 2d vector
- should change to Complex -- how is vector == complex?
+/*
+
+This is a mixture a 2D vector. Sometimes it can
+also be convenient to think of 2D vectors as complex numbers
+(ie. x + i y). The naming of some methods reflects that.
- ughr wat een beerput
*/
class Offset
{
Real arg () const;
Real length () const;
- //wtf, How is Offset a Complex? is this used?
Offset operator *= (Offset z2)
{
- *this = complex_multiply (*this,z2);
+ *this = complex_multiply (*this, z2);
return *this;
}
return o;
}
+inline
+Real
+dot_product (Offset o1, Offset o2)
+{
+ return o1[X_AXIS] * o2[X_AXIS] + o1[Y_AXIS] * o2[Y_AXIS];
+}
+
#endif /* OFFSET_HH */
{
if (m->is_mus_type ("slur-event"))
{
- /*
- Let's not start more than one slur per moment.
- */
Direction d = to_dir (m->get_property ("span-direction"));
if (d == START)
{
}
else if (d == STOP)
{
- if (slurs_.is_empty ())
- return false;
-
events_[STOP] = m;
return true;
}