]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.7
authorfred <fred>
Sun, 24 Mar 2002 19:53:02 +0000 (19:53 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:53:02 +0000 (19:53 +0000)
lily/include/head-grav.hh
lily/include/input-translator.hh
lily/include/key-item.hh
lily/include/local-key-item.hh
lily/include/midi-def.hh
lily/include/music.hh
lily/include/spanner.hh

index 2a5b2be2801680f2f7b033e3739d3ce143f2b7af..57711a27be418f219c2a0ecbd5160c7ac7a8aa92 100644 (file)
@@ -9,17 +9,22 @@
 #define HEADGRAV_HH
 #include "engraver.hh"
 
-struct Note_head_engraver : Engraver {
+/**
+  make balls and rests
+ */
+class Note_head_engraver : public Engraver {
     Note_head* note_p_;
     Rhythmic_req * note_req_l_;
     
-    /* *************** */
+public:
     Note_head_engraver();
+    DECLARE_MY_RUNTIME_TYPEINFO;
+protected:
     virtual bool do_try_request(Request *req_l) ;
     virtual void do_process_requests();
     virtual void do_pre_move_processing();
     virtual void do_post_move_processing();
-    DECLARE_MY_RUNTIME_TYPEINFO;
+
 };
 
 
index b2883a30cf87afa0212a34f8a71b5b529b2693fd..49f44bec01b0eb64bc4fd9f2dfc2a2b06f2af40c 100644 (file)
@@ -24,7 +24,10 @@ struct Input_translator_list : public Pointer_list<Input_translator*>
     ~Input_translator_list(){}
 };
 
-struct Input_translator : Input { 
+/** Define a intereter for music. This is an runtime interface to the
+ typesystem */
+class Input_translator : public Input { 
+public:
     Input_translator_list contains_itrans_p_list_;
     Array<String> consists_str_arr_;
     Array<String> alias_str_arr_;
index a1ab3dc6d48960bf01e16f4c16f287f9286d53f5..b980e3ff0fce06473f685434c1c0bc63f36c9608 100644 (file)
@@ -19,7 +19,6 @@ struct Key_item : Item {
     bool default_b_;
 
     
-    /* *************** */
     DECLARE_MY_RUNTIME_TYPEINFO;
     SCORE_ELEM_CLONE(Key_item);
 
@@ -27,6 +26,7 @@ struct Key_item : Item {
     void add(int pitch, int acc);
     void read(const Key_engraver&);
     void set_c_position(int);
+protected:
     virtual void do_pre_processing();
     Molecule* brew_molecule_p()const;
 };
index 2d4ed66e8f74b64715a463497f116bae12abf742..7316df60e7ca674efeefdef29575113a32c23c60 100644 (file)
@@ -21,20 +21,26 @@ struct Local_acc {
 
   TODO:
   update item if Items are removed
+
+  TODO
+  
+  figure out private/public
+  
  */
-struct Local_key_item : Item {
+class Local_key_item : public Item {
+public:
     DECLARE_MY_RUNTIME_TYPEINFO;
     Array<Local_acc> accs;
     Link_array<Item> support_items_;
     int c0_position;
 
-    /* *************** */
+
     
     Local_key_item(int c0position);
     void add_support(Item*);
     void add(int oct, int pitch, int acc);
     void add(Melodic_req*);
-public:
+protected:
     virtual void do_pre_processing();    
     virtual void do_substitute_dependency(Score_elem*,Score_elem*);
     virtual Molecule* brew_molecule_p()const;
index 13073251abf910b5fe3f45c70d38595134d9cfa6..89a7543567fa92f5123eb0db11eb067e2e3b24fc 100644 (file)
@@ -16,6 +16,7 @@
 
 
 /** 
+  definitions for midi output. Rather empty
  */
 struct Midi_def {
     // ugh!
@@ -25,7 +26,6 @@ struct Midi_def {
     /// output file name
     String outfile_str_;
 
-    Assoc<String, Real> *real_vars_p_;
     Input_translator* itrans_p_;
 
     /// duration of whole note
@@ -37,11 +37,9 @@ struct Midi_def {
 
     Real duration_to_seconds_f(Moment);
     Global_translator* get_global_translator_p() const;
-    Real get_var( String s ) const;
     int get_tempo_i( Moment moment );
     void print() const;
     void set( Input_translator* itrans_p );
-    void set_var( String s, Real r );
     void set_tempo( Moment moment, int count_per_minute_i );
 };
 
index 41531a790218770701f6aa02855a7bc039e2b38b..63ce4b8799d1b4cb8c078086c74ae349daa6f2a7 100644 (file)
 #include "lily-proto.hh"
 #include "string.hh"
 
-/** In Lily, everything that has a length and a pitch (which can be
-  transposed) is considered "music", 
+/** 
+  Anything which has length or pitch.
+  
+  In Lily, everything that can be thought to have a length and a pitch
+  (which has a duration which can be transposed) is considered "music",
 
   Music is hierarchical: 
 
-  @seealso Music_list
+  @see Music_list
+
   */
 class Music:public Input {
 public:
     Music_list * parent_music_l_;
     
-    /** what kind of iterator needed to walk this music?  This doesn't
+    /** The kind of iterator needed to walk this music.  This doesn't
       make sense for simple (ie non-list) music, but it does no harm
       here. Yes, it did harm Music_list: you can forget to copy it.
       
index 30a72290c0e5dc42035e1550559d97d005548214..79e1bd4cfdb90d76d299232d8c9236038242ff61 100644 (file)
@@ -10,7 +10,7 @@
 #include "lily-proto.hh"
 #include "score-elem.hh"
 
-/** a symbol which is attached between two columns. A spanner is a
+/** A symbol which is attached between two columns. A spanner is a
   symbol which spans across several columns, so its final appearance
   can only be calculated after the breaking problem is solved.