-Key_item::Key_item ()
-{
- multi_octave_b_ = false;
- set_elt_property (breakable_scm_sym, SCM_BOOL_T);
- set_c_position (0);
-}
-
-int
-Key_item::get_c_position () const
-{
- // Find the c in the range -4 through 2
- int from_bottom_pos = c0_position_ + 4;
- from_bottom_pos = from_bottom_pos%7;
- from_bottom_pos = (from_bottom_pos + 7)%7; // Precaution to get positive.
- return from_bottom_pos - 4;
-}
-
-
-void
-Key_item::set_c_position (int c0)
-{
- c0_position_ = c0;
-}
-
-
-void
-Key_item::add (int p, int a)
-{
- pitch_arr_.push (p);
- acc_arr_.push (a);
-}
-
-void
-Key_item::add_old (int p, int a)
-{
- old_pitch_arr_.push (p);
- old_acc_arr_.push (a);
-}
-