2 grob-pitch-tuple.cc -- implement Grob_pitch_tuple
4 source file of the GNU LilyPond music typesetter
6 (c) 2001--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #include "grob-pitch-tuple.hh"
13 int compare (Grob_pitch_tuple const &a, Grob_pitch_tuple const &b)
15 return Grob_pitch_tuple::time_compare (a, b);
18 Grob_pitch_tuple::Grob_pitch_tuple ()
24 Grob_pitch_tuple::Grob_pitch_tuple (Grob *h, Music *m, Moment mom)
27 pitch_ = *unsmob_pitch (m->get_property ("pitch"));
32 signed compare, should use pitch<?
35 Grob_pitch_tuple::pitch_compare (Grob_pitch_tuple const &h1,
36 Grob_pitch_tuple const &h2)
38 return Pitch::compare (h1.pitch_, h2.pitch_);
42 Grob_pitch_tuple::time_compare (Grob_pitch_tuple const &h1,
43 Grob_pitch_tuple const &h2)
45 return Moment::compare (h1.end_, h2.end_);