/*
note-heads-engraver.cc -- part of GNU LilyPond
- (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include <cctype>
void
Note_heads_engraver::process_music ()
{
- for (int i=0; i < note_evs_.size (); i++)
+ for (int i = 0; i < note_evs_.size (); i++)
{
Music * ev = note_evs_[i];
dots_.push (d);
}
- Pitch *pit =unsmob_pitch (ev->get_property ("pitch"));
+ Pitch *pit = unsmob_pitch (ev->get_property ("pitch"));
int pos = pit ? pit->steps () : 0;
SCM c0 = get_property ("middleCPosition");
Shaped note heads change on step of the scale.
*/
SCM shape_vector = get_property ("shapeNoteStyles");
- if (ly_c_vector_p (shape_vector))
+ if (scm_is_vector (shape_vector))
{
SCM scm_tonic = get_property ("tonic");
Pitch tonic (0,0,0);
unsigned int delta = (pit->get_notename() - tonic.get_notename() + 7) % 7;
SCM style = SCM_EOL;
- if (SCM_VECTOR_LENGTH (shape_vector) > delta
+ if (scm_c_vector_length (shape_vector) > delta
&& scm_is_symbol (scm_vector_ref (shape_vector, scm_from_int (delta))))
{
style = scm_vector_ref (shape_vector, scm_from_int (delta));
-ENTER_DESCRIPTION (Note_heads_engraver,
+ADD_TRANSLATOR (Note_heads_engraver,
/* descr */ "Generate noteheads.",
/* creats*/ "NoteHead Dots",
/* accepts */ "note-event busy-playing-event",