diff options
author | Han-Wen Nienhuys <hanwen@xs4all.nl> | 1996-11-05 17:55:42 +0100 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@xs4all.nl> | 1996-11-05 17:55:42 +0100 |
commit | 748e6176ab755ccf841f408d13d5818260a05d32 (patch) | |
tree | aed0afeddb2233cf6bf67d9f82ffde051c57f715 /score.hh | |
parent | 74e0f769a23454f038d20270463c734a9c22f5f9 (diff) |
release: 0.0.5
Diffstat (limited to 'score.hh')
-rw-r--r-- | score.hh | 36 |
1 files changed, 17 insertions, 19 deletions
@@ -1,16 +1,16 @@ #ifndef SCORE_HH #define SCORE_HH - #include "vray.hh" -#include "mtime.hh" -#include "scommands.hh" +#include "proto.hh" +#include "list.hh" + /// the total music def of one movement struct Score { - Paperdef *paper; - /// staffs_ and commands_ form the problem definition. + /// paper_, staffs_ and commands_ form the problem definition. + Paperdef *paper_; PointerList<Staff *> staffs_; - Score_commands commands_; + Score_commands *commands_; /// "runtime" fields for setting up spacing PointerList<Score_column*> cols_; @@ -18,27 +18,25 @@ struct Score { /****************************************************************/ - Score(); - void process(); - /// construction void add_staff(Staff *st); + void set(Paperdef*); + Score(); + ~Score(); + void add(Staff*); + void set(Score_commands*); - void OK() const; - Score_column *find_col(Mtime,bool); - void do_pcols(); - void add(Staff*); + void OK() const; + Score_column *find_col(Real,bool); + void process(); void output(String fn); - PCursor<Score_column*> create_cols(Mtime); + PCursor<Score_column*> create_cols(Real); void print() const; - - Mtime last() const; - - void add(Command*); + Real last() const; private: - + void do_pcols(); void clean_cols(); void distribute_commands(); void do_connect(PCol *c1, PCol *c2, Real d); |