]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.51
authorfred <fred>
Sun, 24 Mar 2002 19:39:11 +0000 (19:39 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:39:11 +0000 (19:39 +0000)
input/kortjakje.ly
lily/dynamic-reg.cc
lily/include/dynamic-reg.hh
lily/include/text-reg.hh
lily/text-reg.cc

index f0aaaf9aa3139ef0674c22bf1b7d50f0bf1d5d22..86797c682cc7eba649d62dba44359955ff5f3f18 100644 (file)
@@ -25,8 +25,8 @@ melodie = \melodic {
        g g|    f f|    e e|    d d|    g g|    f f|    e e|    d d|
        %%% var 1
          c r8 c8               % r8 means an 8th rest.
-                 (|            % \start a slur
-                               % NOTE: the slur\start should be directly after the note
+                 (|            % start a slur
+                               % NOTE: the slurstart should be directly after the note
                        )       % end a slur.
                          g r8 g8 (|    ) a r8 a8 (|    ) g r4 
          f r8 f8 (|    ) e4 r8 e8 (    |) d4 r8 d8 (|  ) c4 r4 
index 4088a3be704102ef3b3529c769bc3b6ff9ff2448..59de6094374edd41b815219d62b293e174885430 100644 (file)
@@ -14,6 +14,7 @@
 #include "paper-def.hh"
 #include "score-column.hh"
 #include "staff-sym.hh"
+#include "note-column.hh"
 
 Dynamic_register::Dynamic_register()
 {
@@ -133,3 +134,14 @@ Dynamic_register::~Dynamic_register()
     }
     delete cresc_p_;
 }
+void
+Dynamic_register::acknowledge_element(Staff_elem_info i)
+{
+    if (i.elem_l_->name() == Note_column::static_name()) {
+       if (dynamic_p_) dynamic_p_->add_support(i.elem_l_);
+       if (to_end_cresc_p_)
+           to_end_cresc_p_->add_support(i.elem_l_);
+       if (cresc_p_) 
+           cresc_p_->add_support(i.elem_l_);
+    }
+}
index 8b39f4fe11dbb6afcfeaac2bfeb5a11bcc0c076e..b0f8b1a4379d647fae73c0c353036d7154a97607 100644 (file)
@@ -25,6 +25,7 @@ public:
     ~Dynamic_register();
     NAME_MEMBERS(Dynamic_register);
 protected:
+    virtual void acknowledge_element(Staff_elem_info);
     virtual bool try_request(Request *req_l);
     virtual void process_requests();
     virtual void pre_move_processing();
index 59317e5bcd97bb855f91e77c2d52412baa446263..db668dd44f7ebb67f9e67f54ff3eb7b50bfb8a6d 100644 (file)
@@ -9,17 +9,20 @@
 #define TEXTREG_HH
 #include "register.hh"
 
-struct Text_register : Request_register{
+class Text_register : public Request_register{
     Text_item * text_p_;
     Text_req * text_req_l_;
     int dir_i_;
     /* *************** */
+protected:
     virtual void set_feature(Features );
-    Text_register();
     virtual bool try_request(Request*);
     virtual void process_requests();
     virtual void pre_move_processing();
     virtual void post_move_processing();
+    virtual void acknowledge_element(Staff_elem_info);
+public:
+    Text_register();
     NAME_MEMBERS(Text_register);
 };
 
index 6c86fad828fc1c4be60b43cdc1e7bab83fa04802..c502781a1d7b80740f0bd43a5da46ddd8d80f4e4 100644 (file)
@@ -3,7 +3,7 @@
 
   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
 */
-
+#include "note-column.hh"
 #include "musical-request.hh"
 #include "text-reg.hh"
 #include "text-item.hh"
@@ -28,7 +28,13 @@ Text_register::try_request(Request*req_l)
     text_req_l_ = req_l->text();
     return true;
 }
-
+void
+Text_register::acknowledge_element(Staff_elem_info i)
+{
+    if (text_p_ && i.elem_l_->name() == Note_column::static_name()) {
+       text_p_->add_support(i.elem_l_);
+    }
+}
 void
 Text_register::process_requests()
 {