When we catch the note, we predict the end of the note. We keep the
events living until we reach the predicted end-time.
When we catch the note, we predict the end of the note. We keep the
events living until we reach the predicted end-time.
figure out how long the note to typeset should be. It should be no
longer than what's specified, than what is left to do and it should
not cross barlines.
figure out how long the note to typeset should be. It should be no
longer than what's specified, than what is left to do and it should
not cross barlines.
- SCM pits = note_reqs_[i]->get_mus_property ("pitch");
- req->set_mus_property ("pitch",pits);
+ SCM pits = note_reqs_[i]->get_property ("pitch");
+ req->set_property ("pitch",pits);
- req->set_mus_property ("duration", note_dur.smobbed_copy ());
- note->set_grob_property ("duration-log",
- gh_int2scm (note_dur.duration_log ()));
+ req->set_property ("duration", note_dur.smobbed_copy ());
+ note->set_property ("duration-log",
+ scm_int2num (note_dur.duration_log ()));
Rhythmic_head::set_dots (note, d);
/*
measly attempt to save an eeny-weenie bit of memory.
*/
Rhythmic_head::set_dots (note, d);
/*
measly attempt to save an eeny-weenie bit of memory.
*/
- if (dots != gh_scm2int (d->get_grob_property ("dot-count")))
- d->set_grob_property ("dot-count", gh_int2scm (dots));
+ if (dots != ly_scm2int (d->get_property ("dot-count")))
+ d->set_property ("dot-count", scm_int2num (dots));
- SCM c0 = get_property ("centralCPosition");
- if (gh_number_p (c0))
- pos += gh_scm2int (c0);
+ SCM c0 = get_property ("middleCPosition");
+ if (ly_c_number_p (c0))
+ pos += ly_scm2int (c0);
- note->set_grob_property ("staff-position", gh_int2scm (pos));
- announce_grob (note,req->self_scm ());
+ note->set_property ("staff-position", scm_int2num (pos));
Tie::set_interface (p); // cannot remove yet!
Tie::set_head (p, LEFT, prev_notes_[i]);
Tie::set_head (p, RIGHT, notes_[i]);
ties_.push (p);
Tie::set_interface (p); // cannot remove yet!
Tie::set_head (p, LEFT, prev_notes_[i]);
Tie::set_head (p, RIGHT, notes_[i]);
ties_.push (p);
/* descr */ "This engraver replaces "
"@code{Note_heads_engraver}. It plays some trickery to "
"break long notes and automatically tie them into the next measure.",
/* creats*/ "NoteHead Dots Tie",
/* accepts */ "busy-playing-event note-event",
/* acks */ "",
/* descr */ "This engraver replaces "
"@code{Note_heads_engraver}. It plays some trickery to "
"break long notes and automatically tie them into the next measure.",
/* creats*/ "NoteHead Dots Tie",
/* accepts */ "busy-playing-event note-event",
/* acks */ "",