+2002-04-20 Han-Wen <hanwen@cs.uu.nl>
+
+ * lily/key-signature-interface.cc (brew_molecule): add padding for
+ natural signs. Make natural typesetting like the sharp.
+
+
+ * mf/feta-klef.mf: rewrote portion of the G-clef code. Downstroke
+ is now slightly curved, not straight.
+
+
2002-04-18 Heikki Junes <hjunes@cc.hut.fi>
* lilypond-mode.el: Toggles font-lock-multiline (Emacs 21.1 or newer).
-
/*
key-item.cc -- implement Key_signature_interface
const int FLAT_TOP_PITCH=2; /* fes,ges,as and bes typeset in lower octave */
const int SHARP_TOP_PITCH=4; /* ais and bis typeset in lower octave */
+/*
+ TODO: look this up. I'm not sure where the naturals ought to go.
+ */
+const int NATURAL_TOP_PITCH = 4;
+
+
+
/*
FIXME: key-item should just get a list of (position, acc), and leave
int c0 = from_bottom_pos - 4;
- if ((alter <0 && ((p>FLAT_TOP_PITCH) || (p+c0>4)) && (p+c0>1))
- ||
- (alter >0 && ((p>SHARP_TOP_PITCH) || (p+c0>5)) && (p+c0>2)))
+ if ((alter <0 && ((p>FLAT_TOP_PITCH) || (p+c0>4)) && (p+c0>1))
+ || (alter >0 && ((p > SHARP_TOP_PITCH) || (p+c0>5)) && (p+c0>2))
+ || (alter == 0 && ((p > NATURAL_TOP_PITCH) || (p + c0>5)) && (p + c0>2)))
{
p -= 7; /* Typeset below c_position */
}
Molecule m = natural;
m.translate_axis (pos* inter, Y_AXIS);
- mol.add_at_edge (X_AXIS, LEFT, m, 0);
+ /*
+ The natural sign (unlike flat & sharp)
+ has vertical edges on both sides. A little padding is
+ needed to prevent collisions.
+ */
+ Real padding = 0.1 ;
+ mol.add_at_edge (X_AXIS, LEFT, m, padding);
}
}
}
}
ADD_INTERFACE (Key_signature_interface, "key-signature-interface",
- "A group of accidentals.",
+ "A group of accidentals, to be printed as signature sign.",
"c0-position old-accidentals new-accidentals");