From 929bae42031b424fccd3354808b3c6c0d5077f71 Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 27 Mar 2002 02:29:16 +0000 Subject: [PATCH] lilypond-1.5.28 --- lily/include/new-spacing-spanner.hh | 12 ---- lily/note-spacing-engraver.cc | 99 ----------------------------- 2 files changed, 111 deletions(-) delete mode 100644 lily/include/new-spacing-spanner.hh delete mode 100644 lily/note-spacing-engraver.cc diff --git a/lily/include/new-spacing-spanner.hh b/lily/include/new-spacing-spanner.hh deleted file mode 100644 index 6238dde3f1..0000000000 --- a/lily/include/new-spacing-spanner.hh +++ /dev/null @@ -1,12 +0,0 @@ -/* - spacing-spanner.hh -- declare New_spacing_spanner - - source file of the GNU LilyPond music typesetter - - (c) 1999--2001 Han-Wen Nienhuys - - */ - -#ifndef SPACING_SPANNER_HH -#define SPACING_SPANNER_HH - diff --git a/lily/note-spacing-engraver.cc b/lily/note-spacing-engraver.cc deleted file mode 100644 index 47b11ae5ac..0000000000 --- a/lily/note-spacing-engraver.cc +++ /dev/null @@ -1,99 +0,0 @@ -#if 0 -/* - note-spacing-engraver.cc -- implement Note_spacing_engraver. - - source file of the GNU LilyPond music typesetter - - (c) 2001 Han-Wen Nienhuys - -*/ - -#include "grob.hh" -#include "moment.hh" -#include "engraver.hh" -#include "note-spacing.hh" -#include "note-column.hh" - -/* - Originally, we tried to have this functionality at Staff_level - - - by simply using the sequence of Separation-item as - spacing-sequences. Unfortunately, this fucks up if there are - different kinds of tuplets combined (8th and 8ths triplets combined - made the program believe there were 1/12 th notes.). - - - - We also created them from Rhythmic_column_engraver, but this has - the problem that voices can appear and disappear at will, leaving - lots of loose ends (the StaffSpacing don't know where to connect the - last note of the voice on the right with) - - */ - -struct Grob_moment_tuple -{ - Link_array current_heads_; - Link_array todo_heads_; - - Moment length_; - - static int time_compare (Grob_moment_tuple const &a, Grob_moment_tuple const &b) - { - return Moment::compare (a.length_, b.length_); - } -}; - -class Note_spacing_engraver : public Engraver -{ -public: - TRANSLATOR_DECLARATIONS(Note_spacing_engraver); - - -protected: - Array lengths_found_; - - virtual void acknowledge_grob (Grob_info); -}; - -Note_spacing_engraver::Note_spacing_engraver() -{ -} - - -void -Note_spacing_engraver::acknowledge_grob (Grob_info gi) -{ - if (Note_head::has_interface (gi.grob_l_)) - { - Music *m = gi.music_cause(); - Moment now = now_mom (); - Moment len = m->length_mom(); - if (now.grace_part_ && len.main_part_) - { - len.grace_part_ += len.main_part_; - len.main_part_ = 0; - } - - for (int i=0; i < - } - Note_column::has_interface (gi.grob_l_)) - { - Grob *head =Note_column::first_head (gi.grob_l_); - - head-> - } -} - - - -ENTER_DESCRIPTION(Note_spacing_engraver, -/* descr */ "This engraver creates spacing objects. It should be placed at staff -level, but will also function at voice level. - -", -/* creats*/ "NoteSpacing", -/* acks */ "rhythmic-column-interface", -/* reads */ "", -/* write */ ""); - -#endif -- 2.39.5