]> git.donarmstrong.com Git - lilypond.git/blob - hdr/inputcommand.hh
release: 0.0.15
[lilypond.git] / hdr / inputcommand.hh
1 /*
2   inputcommand.hh -- part of LilyPond
3
4   (c) 1996 Han-Wen Nienhuys
5 */
6
7 #ifndef INPUTCOMMAND_HH
8 #define INPUTCOMMAND_HH
9 #include "proto.hh"
10 #include "scalar.hh"
11 #include "vray.hh"
12
13 struct Input_command {
14     Real when;
15     
16     /// analogous to argv[]
17     svec<Scalar> args;
18     void print()const;
19     Input_command();
20     Input_command(Real);
21     operator Command();
22 };
23
24 Input_command* get_meterchange_command( int,int);
25 Input_command* get_key_interpret_command(svec<String>);
26 Input_command* get_clef_interpret_command(String w);
27 Input_command *get_reset_command();
28 Input_command *get_partial_command(Real u);
29 Input_command* get_skip_command( int,Real);
30 Input_command* get_grouping_command( svec<int>);
31
32 void
33 interpret_meter(Input_command *c, int &beats_per_meas, int& one_beat,
34                 Real& whole_per_measure);
35
36 Input_command *get_bar_command(Real );
37 #endif // INPUTCOMMAND_HH
38