2 musical-pitch.hh -- declare Musical_pitch
4 source file of the GNU LilyPond music typesetter
6 (c) 1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef MUSICAL_PITCH_HH
11 #define MUSICAL_PITCH_HH
13 #include "lily-proto.hh"
16 /** The pitch as it figures in diatonal western music (12 semitones in
19 It is not Music because, it has to duration associated
21 struct Musical_pitch : public Input
29 /// 0 natural, 1 sharp, etc
33 Musical_pitch to_relative_octave (Musical_pitch);
34 void transpose (Musical_pitch);
35 static int compare (Musical_pitch const&,Musical_pitch const&);
36 /// return large part of interval from central c
38 /// return pitch from central c (in halfnotes)
39 int semitone_pitch() const;
47 INSTANTIATE_COMPARE(Musical_pitch, Musical_pitch::compare);
49 #endif /* MUSICAL_PITCH_HH */