]> git.donarmstrong.com Git - lilypond.git/blob - midi2ly/include/lilypond-staff.hh
patch::: 1.5.18.moh1: [PATCH] 1.4 Lyric alignment
[lilypond.git] / midi2ly / include / lilypond-staff.hh
1 //
2 // lilypond-staff.hh -- declare lilypond_staff
3 //
4 // (c) 1997--2001 Jan Nieuwenhuizen <janneke@gnu.org>
5
6 #ifndef LILYPOND_STAFF_HH
7 #define LILYPOND_STAFF_HH
8
9 #include "midi2ly-proto.hh"
10 #include "flower-proto.hh"
11 #include "cons.hh"
12 #include "string.hh"
13
14 /// (lilypond_staff)
15 class Lilypond_staff
16 {
17 public:
18   Lilypond_staff (int number_i, String copyright_str, String track_name_str, String instrument_str);
19
20   void add_item (Lilypond_item* lilypond_item_p);
21   void eat_voice (Cons_list<Lilypond_item>& items);
22   String id_str ();
23   String name_str ();
24   void output (Lilypond_stream& lilypond_stream_r);
25   void process ();
26
27   String copyright_str_;
28   String instrument_str_;
29   String name_str_;
30   Lilypond_key* lilypond_key_l_;
31   Lilypond_time_signature* lilypond_time_signature_l_;
32   Lilypond_tempo* lilypond_tempo_l_;
33   int number_i_;
34
35 private:
36   void output_lilypond_begin_bar (Lilypond_stream& lilypond_stream_r, Rational now_mom, int bar_i);
37
38   Cons_list<Lilypond_voice> lilypond_voice_p_list_;
39   Cons_list<Lilypond_item> lilypond_item_p_list_;
40 };
41
42 #endif // LILYPOND_STAFF_HH
43