From: fred Date: Sun, 24 Mar 2002 19:31:48 +0000 (+0000) Subject: lilypond-0.0.32 X-Git-Tag: release/1.5.59~5388 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1294302943f76b5b3bf7a02466dc0f495abf9281;p=lilypond.git lilypond-0.0.32 --- diff --git a/hdr/leastsquares.hh b/hdr/leastsquares.hh index b9a9241d0d..35b1e1d34b 100644 --- a/hdr/leastsquares.hh +++ b/hdr/leastsquares.hh @@ -9,6 +9,10 @@ #include "varray.hh" #include "offset.hh" + +/** + Least squares minimisation in 2 variables. + */ struct Least_squares { Array input; void minimise(Real &coef, Real &offset); diff --git a/hdr/localkeyreg.hh b/hdr/localkeyreg.hh index 742d9cb41e..48a9b5cbd2 100644 --- a/hdr/localkeyreg.hh +++ b/hdr/localkeyreg.hh @@ -8,14 +8,13 @@ #ifndef LOCALKEYREG_HH #define LOCALKEYREG_HH #include "register.hh" +#include "key.hh" struct Local_key_register : Request_register { + Local_key local_key_; Local_key_item* key_item_p_; /* *************** */ - - virtual bool try_request(Request*); - virtual void process_request(); virtual void acknowledge_element(Staff_elem_info); virtual void do_pre_move_process(); Local_key_register(Complex_walker*); diff --git a/hdr/reqtodo.hh b/hdr/reqtodo.hh new file mode 100644 index 0000000000..eaed606453 --- /dev/null +++ b/hdr/reqtodo.hh @@ -0,0 +1,83 @@ +#if 0 + + + +/**Draw a (Guitar) chord above or below this ``note''. +Why a request? +Because everything else is done in requests. +*/ +struct Chord : Request { + // don't know how this looks. +}; + + +/// for absolute dynamics +enum Loudness { + FFF, FF, F, MF, MP, P, PP, PPP +} ; + + +/** +Start/stop a bracket at this note. if #nplet# is set, the staff will +try to put an appropriate number over the bracket +*/ +struct Bracket_req : Span_req { + int nplet; // print a number over the beam. +}; + +struct Subtle_req { + Moment subtime; +}; + + +/** helper in the hierarchy. Each dynamic is bound to one note ( a + crescendo spanning multiple notes is thought to be made of two + "dynamics": a start and a stop). Dynamic changes can occur in a + smaller time than the length of its note, therefore fore each + Dynamic request carries a time, measured from the start of its + note. + + This subfield would come in handy, if mpp96 was adapted for midi + support. + + Dynamic should have been derived from request, but I don't want to + fuss with virtual baseclasses. */ + +struct Dynamic:Subtle_req { + +}; +/// do a crescendo +struct Cresc_req : Span_req, Dynamic { + +}; + +/// do a decrescendo +struct Decresc_req : Span_req, Dynamic { + +}; + +/// do a dynamic like "fff" or "mp" +struct Absdynamic_req : Request, Dynamic { + Loudness loudness; +}; + +struct Grace_req : Subtle_req { + +}; + +struct Grace_turn_req : Grace_turn { + +}; + +struct Grace_note : Melodic_req { + +}; + +struct Grace_notes { + +}; + +struct Glissando_req : Span_req { + +}; +#endif