]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/scale.hh
Run `make grand-replace'.
[lilypond.git] / lily / include / scale.hh
1 /* 
2   scale.hh -- declare Scale
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 2006--2008 Han-Wen Nienhuys <hanwen@lilypond.org>
7   
8 */
9
10 #ifndef SCALE_HH
11 #define SCALE_HH
12
13 #include "smobs.hh"
14 #include "rational.hh"
15 #include "std-vector.hh"
16
17 struct Scale
18 {
19 public:
20   Scale (vector<Rational> const&);
21   Scale (Scale const&);
22
23   Rational tones_at_step (int step, int octave = 0) const;
24   Rational step_size (int step) const;
25   int step_count () const;
26   int normalize_step (int step) const;
27
28   DECLARE_SMOBS (Scale);
29
30 private:
31   vector<Rational> step_tones_;
32 };
33
34 extern Scale *default_global_scale;
35
36 #endif /* SCALE_HH */
37
38