Remove tremoloFlags property (issue 3783)
authorDavid Kastrup <dak@gnu.org>
Fri, 10 Jan 2014 13:43:21 +0000 (14:43 +0100)
committerDavid Kastrup <dak@gnu.org>
Wed, 15 Jan 2014 10:11:20 +0000 (11:11 +0100)
Documentation/notation/repeats.itely
lily/stem-engraver.cc
scm/define-context-properties.scm

index f3c4c5ac6c14d530bf6be0273c183be445388743..ba57fe22b02d856a08b4e794472287b661ba982b 100644 (file)
@@ -801,14 +801,13 @@ the note should not be surrounded by braces:
 @end lilypond
 
 @cindex tremolo marks
-@funindex tremoloFlags
 @funindex :
 
 The same output can be obtained by adding @code{:@var{N}} after
 the note, where @code{@var{N}} indicates the duration of the
 subdivision (it must be at least 8).  If @code{@var{N}} is 8, one
 beam is added to the note's stem.  If @code{@var{N}} is omitted,
-the last value (stored in @code{tremoloFlags}) is used:
+the last value is used:
 
 @lilypond[quote,verbatim,relative=2]
 c2:8 c:32
index 40bee1c504c761bf062cb8579495bd44cd4b775c..8a20d6184eb5327f0561d34b5686ccd2ba91ec67 100644 (file)
@@ -84,17 +84,7 @@ Stem_engraver::make_stem (Grob_info gi, bool tuplet_start)
 
          the first and last (quarter) note both get one tremolo flag.  */
       int requested_type
-        = robust_scm2int (tremolo_ev_->get_property ("tremolo-type"), 0);
-      SCM f = get_property ("tremoloFlags");
-      if (!requested_type)
-        {
-          if (scm_is_number (f))
-            requested_type = scm_to_int (f);
-          else
-            requested_type = 8;
-        }
-      else
-        context ()->set_property ("tremoloFlags", scm_from_int (requested_type));
+        = robust_scm2int (tremolo_ev_->get_property ("tremolo-type"), 8);
 
       /*
         we take the duration log from the Event, since the duration-log
@@ -254,7 +244,6 @@ ADD_TRANSLATOR (Stem_engraver,
                 "StemTremolo ",
 
                 /* read */
-                "tremoloFlags "
                 "stemLeftBeamCount "
                 "stemRightBeamCount "
                 "whichBar ",
index 6fff5b380db25e695fbfffdb731a6a18f060ccd5..7960246d98ac3026668e6dc2e2d7540da7dbb9cf 100644 (file)
@@ -622,8 +622,6 @@ will create a @var{VerticalAlignment}; otherwise, it will create a
      (trebleStaffProperties ,list? "An alist of property settings to
 apply for the up staff of @code{PianoStaff}.  Used by
 @code{\\autochange}.")
-     (tremoloFlags ,integer? "The number of tremolo flags to add if no
-number is specified.")
      (tupletFullLength ,boolean? "If set, the tuplet is printed up to
 the start of the next note.")
      (tupletFullLengthNote ,boolean? "If set, end at the next note,