]> git.donarmstrong.com Git - lilypond.git/commitdiff
Remove `\repeat "fold"' and its associated stuff.
authorWerner Lemberg <wl@gnu.org>
Sun, 1 Jul 2007 14:01:30 +0000 (16:01 +0200)
committerWerner Lemberg <wl@gnu.org>
Sun, 1 Jul 2007 14:01:30 +0000 (16:01 +0200)
This was neither documented nor working properly.

12 files changed:
Documentation/de/user/basic-notation.itely
Documentation/es/user/basic-notation.itely
Documentation/fr/user/basic-notation.itely
Documentation/user/basic-notation.itely
input/regression/display-lily-tests.ly
input/regression/repeat-fold.ly [deleted file]
input/regression/repeat-unfold.ly
lily/folded-repeat-iterator.cc [deleted file]
lily/include/folded-repeat-iterator.hh [deleted file]
lily/include/lily-proto.hh
scm/define-music-display-methods.scm
scm/define-music-types.scm

index 46cfeb7e8f7cf51c78030f173d4f2a0e46dd55be..4b61a201f5e25f4013580c33d07ea634885617b4 100644 (file)
@@ -3531,9 +3531,8 @@ c4 c4
 
 Programmreferenz: @internalsref{VoltaBracket},
 @internalsref{RepeatedMusic},
-@internalsref{VoltaRepeatedMusic},
-@internalsref{UnfoldedRepeatedMusic} und
-@internalsref{FoldedRepeatedMusic}.
+@internalsref{VoltaRepeatedMusic} und
+@internalsref{UnfoldedRepeatedMusic}.
 
 
 @node Tremolo repeats
index 7261394d362138b2367bcac62eb37e58d83dc272..301a3f0d6348046e95929736aafd4df8b9bcd21f 100644 (file)
@@ -3355,9 +3355,8 @@ c4 c4
 
 Referencia del programa: @internalsref{VoltaBracket},
 @internalsref{RepeatedMusic},
-@internalsref{VoltaRepeatedMusic},
-@internalsref{UnfoldedRepeatedMusic} y
-@internalsref{FoldedRepeatedMusic}.
+@internalsref{VoltaRepeatedMusic} y
+@internalsref{UnfoldedRepeatedMusic}.
 
 
 @node Tremolo repeats
index 4a68894658a706c210c8969e8f72697da9d4edf0..71711ffbf5b25977fa9362cc0458f052659b40b7 100644 (file)
@@ -3499,9 +3499,8 @@ c4 c4
 
 Référence du programme : @internalsref{VoltaBracket},
 @internalsref{RepeatedMusic},
-@internalsref{VoltaRepeatedMusic},
-@internalsref{UnfoldedRepeatedMusic}, et
-@internalsref{FoldedRepeatedMusic}.
+@internalsref{VoltaRepeatedMusic}, et
+@internalsref{UnfoldedRepeatedMusic}.
 
 
 @node Tremolo repeats
index afcd3384dd9e2f412a39e0df37cdd7fcb65dbb27..0a67b9ea1492bb48ecbe00ff3f80779ca1bc22d5 100644 (file)
@@ -3357,9 +3357,8 @@ c4 c4
 
 Program reference: @internalsref{VoltaBracket},
 @internalsref{RepeatedMusic},
-@internalsref{VoltaRepeatedMusic},
-@internalsref{UnfoldedRepeatedMusic}, and
-@internalsref{FoldedRepeatedMusic}.
+@internalsref{VoltaRepeatedMusic}, and
+@internalsref{UnfoldedRepeatedMusic}.
 
 
 @node Tremolo repeats
index 5b2b4f198c0bdf6689966d489ddd69fa2dc459ba..434f76fa83600da06f150f5b2af8765e48fd2fbd 100644 (file)
@@ -187,7 +187,6 @@ stderr of this run."
 %% Repeats
 \test "" ##[ \repeat volta 2 { c d } #]                % VoltaRepeatedMusic
 \test "" ##[ \repeat unfold 2 { c d } #]               % UnfoldedRepeatedMusic
-\test "" ##[ \repeat fold 2 { c d } #]         % FoldedRepeatedMusic
 \test "" ##[ \repeat percent 2 { c d } #]              % PercentRepeatedMusic
 \test "" ##[ \repeat tremolo 4 { c16 d } #]            % TremoloRepeatedMusic
 \test "" ##[ \repeat volta 2 { c4 d } \alternative { { c d } { e f } } #] % 
diff --git a/input/regression/repeat-fold.ly b/input/regression/repeat-fold.ly
deleted file mode 100644 (file)
index 7a5f1c6..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-\version "2.10.0"
-
-\header{
-texidoc="
-Folded repeat may not make sense without alternatives, and there
-should not be more alternatives than repeats.
-"
-}
-
-\paper { ragged-right = ##t } 
-
-\context Staff  \relative c'' {
-    \repeat fold 3 { c^"3x 0alt" d }
-    % less alts than body
-    \repeat fold 4 { c^"4x 2alt" d } \alternative { e f }
-    % more alts than body
-    \repeat fold 2 { c^"2x 3alt" d } \alternative { e f g }
-  }
-
-
index 03ac55f35b974c09e33c61099739ef8dd41e113e..2ff7e2304add80949f714758ea831428af1c80ff 100644 (file)
@@ -1,22 +1,16 @@
-\version "2.10.0"
+\version "2.11.27"
 
 \header{
-  texidoc="
-LilyPond has three modes for repeats: folded, unfolded and
-semi-unfolded.  Unfolded repeats are fully written out. Semi unfolded
-repeats have the body written and all alternatives sequentially.
-Folded repeats have the body written and all alternatives
-simultaneo.ly.  If the number of alternatives is larger than the
-repeat count, the excess alternatives are ignored.  If the number of
-alternatives is smaller, the first alternative is multiplied to get to
-the number of repeats.
+  texidoc="LilyPond has two modes for repeats: unfolded and semi-unfolded. 
+Unfolded repeats are fully written out.  Semi unfolded repeats have the body
+written and all alternatives sequentially.  If the number of alternatives is
+larger than the repeat count, the excess alternatives are ignored.  If the
+number of alternatives is smaller, the first alternative is multiplied to
+get to the number of repeats.
 
-Unfolded behavior:
-"
+Unfolded behavior:"
 }
 
-
-
 \context Voice \relative c'' {
   \repeat unfold 3 { c^"3x 0a" d }
   %% less alts than body
@@ -24,5 +18,3 @@ Unfolded behavior:
   %% more alts than body
   \repeat unfold 2 { c^"2x 3a" d } \alternative { e f g } 
 }
-
-
diff --git a/lily/folded-repeat-iterator.cc b/lily/folded-repeat-iterator.cc
deleted file mode 100644 (file)
index f22e8b8..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
-  folded-repeat-iterator.cc -- implement Folded_repeat_iterator
-
-  source file of the GNU LilyPond music typesetter
-
-  (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
-*/
-
-#include "folded-repeat-iterator.hh"
-
-#include "context.hh"
-#include "input.hh"
-#include "international.hh"
-#include "repeated-music.hh"
-#include "simultaneous-music-iterator.hh"
-
-Folded_repeat_iterator::Folded_repeat_iterator ()
-{
-  main_iter_ = 0;
-  alternative_iter_ = 0;
-}
-
-bool
-Folded_repeat_iterator::ok () const
-{
-  return main_iter_ || alternative_iter_;
-}
-void
-Folded_repeat_iterator::do_quit ()
-{
-  if (main_iter_)main_iter_->quit ();
-  if (alternative_iter_)alternative_iter_->quit ();
-}
-
-Moment
-Folded_repeat_iterator::pending_moment () const
-{
-  if (main_iter_)
-    return main_iter_->pending_moment ();
-  else
-    return main_length_mom_ + alternative_iter_->pending_moment ();
-}
-
-void
-Folded_repeat_iterator::construct_children ()
-{
-  Music *mus = get_music ();
-  main_iter_ = unsmob_iterator (get_iterator (Repeated_music::body (mus)));
-  if (!main_iter_->ok ())
-    {
-      leave_body ();
-      enter_alternative ();
-    }
-}
-
-void
-Folded_repeat_iterator::process (Moment m)
-{
-  if (main_iter_)
-    {
-      main_iter_->process (m);
-      if (!main_iter_->ok ())
-       leave_body ();
-    }
-
-  if (!main_iter_ && !alternative_iter_)
-    enter_alternative ();
-
-  if (alternative_iter_)
-    {
-      alternative_iter_->process (m - main_length_mom_);
-      if (!alternative_iter_->ok ())
-       {
-         alternative_iter_->quit ();
-         alternative_iter_ = 0;
-       }
-    }
-}
-
-void
-Folded_repeat_iterator::leave_body ()
-{
-  Music *mus = get_music ();
-
-  main_iter_->quit ();
-  main_iter_ = 0;
-  main_length_mom_ += Repeated_music::body (mus)->get_length ();
-}
-
-void
-Folded_repeat_iterator::enter_alternative ()
-{
-  Music *mus = get_music ();
-  if (scm_is_pair (Repeated_music::alternatives (mus)))
-    {
-      /*
-       ugh.
-      */
-      Simultaneous_music_iterator *s = new Simultaneous_music_iterator;
-      s->create_separate_contexts_ = true;
-      s->init_context (mus, get_outlet ());
-
-      alternative_iter_ = s;
-      alternative_iter_->construct_children ();
-
-      s->unprotect ();
-    }
-}
-
-void
-Folded_repeat_iterator::derived_mark () const
-{
-  if (main_iter_)
-    scm_gc_mark (main_iter_->self_scm ());
-  if (alternative_iter_)
-    scm_gc_mark (alternative_iter_->self_scm ());
-}
-
-void
-Folded_repeat_iterator::derived_substitute (Context *f, Context *t)
-{
-  if (main_iter_)
-    main_iter_->substitute_outlet (f, t);
-  if (alternative_iter_)
-    alternative_iter_->substitute_outlet (f, t);
-}
-
-IMPLEMENT_CTOR_CALLBACK (Folded_repeat_iterator);
diff --git a/lily/include/folded-repeat-iterator.hh b/lily/include/folded-repeat-iterator.hh
deleted file mode 100644 (file)
index d32f77d..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
-  folded-repeat-iterator.hh -- declare Folded_repeat_iterator
-
-  source file of the GNU LilyPond music typesetter
-
-  (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
-*/
-
-#ifndef FOLDED_REPEAT_ITERATOR_HH
-#define FOLDED_REPEAT_ITERATOR_HH
-
-#include "music-iterator.hh"
-
-/**
-   Iterate through a repeated section: first do the body, then
-   all alternatives in parallel.
-*/
-class Folded_repeat_iterator : public Music_iterator
-{
-public:
-  DECLARE_SCHEME_CALLBACK (constructor, ());
-  DECLARE_CLASSNAME(Folded_repeat_iterator);
-
-  Folded_repeat_iterator (Folded_repeat_iterator const &src);
-  Folded_repeat_iterator ();
-  virtual void derived_mark () const;
-  virtual void derived_substitute (Context *f, Context *t);
-
-  virtual void construct_children ();
-  virtual Moment pending_moment () const;
-  virtual void do_quit ();
-  virtual bool ok () const;
-
-protected:
-  void enter_alternative ();
-  void leave_body ();
-
-  virtual void process (Moment);
-
-private:
-  Music_iterator *main_iter_;
-  Music_iterator *alternative_iter_;
-
-  Moment main_length_mom_;
-};
-#endif /* FOLDED_REPEAT_ITERATOR_HH */
-
index 4754d498da31ff385e54412bb9571604fec9ac70..8de07c990bf4a316c9b9afbc292ff543de8f85af 100644 (file)
@@ -55,7 +55,6 @@ class Event;
 class Event_chord;
 class Event_chord_iterator;
 class Event_iterator;
-class Folded_repeat_iterator;
 class Font_metric;
 class Font_size_engraver;
 class Global_context;
index 3212e5f0b8be0f7ade9cdce5c361bded2510773d..e3afd7f273adfe88d23b4079302bff5bd542972b 100644 (file)
@@ -689,9 +689,6 @@ Otherwise, return #f."
 (define-display-method UnfoldedRepeatedMusic (expr parser)
   (repeat->lily-string expr "unfold" parser))
 
-(define-display-method FoldedRepeatedMusic (expr parser)
-  (repeat->lily-string expr "fold" parser))
-
 (define-display-method PercentRepeatedMusic (expr parser)
   (repeat->lily-string expr "percent" parser))
 
index a57b187e30c277d4a03b900e3b7d2d96b73ab1bb..993d93b6d002c1f270c5102933a8d3d4d5d50df9 100644 (file)
@@ -185,14 +185,6 @@ You can also use @code{\\<}, @code{\\!}, @code{\\cresc}, and
        (types . (general-music fingering-event event))
        ))
 
-    (FoldedRepeatedMusic
-     . ((description . "Repeats with alternatives placed in parallel.")
-       (iterator-ctor . ,ly:folded-repeat-iterator::constructor)
-       (start-callback .  ,ly:repeated-music::minimum-start)
-       (length-callback . ,ly:repeated-music::folded-music-length)
-       (types . (general-music repeated-music folded-repeated-music))
-       ))
-
     (GlissandoEvent
      . ((description . "Start a glissando on this note.")
        (types . (general-music glissando-event event))
@@ -693,8 +685,7 @@ and values. E.g:
   (let* ((handle (assoc name '(("volta" . VoltaRepeatedMusic)
                               ("unfold" . UnfoldedRepeatedMusic)
                               ("percent" . PercentRepeatedMusic)
-                              ("tremolo" . TremoloRepeatedMusic)
-                              ("fold" . FoldedRepeatedMusic))))
+                              ("tremolo" . TremoloRepeatedMusic))))
         (music-name (if (pair? handle)
                         (cdr handle)
                         (begin