- Item *note = make_item ("NoteHead", event->self_scm ());
- note->set_property ("duration-log",
- scm_from_int (note_dur.duration_log ()));
-
- int dots = note_dur.dot_count ();
- if (dots)
- {
- Item *d = make_item ("Dots", SCM_EOL);
- Rhythmic_head::set_dots (note, d);
-
- /*
- measly attempt to save an eeny-weenie bit of memory.
- */
- if (dots != scm_to_int (d->get_property ("dot-count")))
- d->set_property ("dot-count", scm_from_int (dots));
-
- d->set_parent (note, Y_AXIS);
- dots_.push (d);
- }
-
- Pitch *pit = unsmob_pitch (event->get_property ("pitch"));
-
- int pos = pit->steps ();
- SCM c0 = get_property ("middleCPosition");
- if (scm_is_number (c0))
- pos += scm_to_int (c0);
+ event->set_property ("pitch", pits);
+ event->set_property ("duration", note_dur.smobbed_copy ());
+ event->set_property ("length", Moment (note_dur.get_length ()).smobbed_copy ());
+ event->set_property ("duration-log", scm_from_int (note_dur.duration_log ()));