From cca4c8878e45b7e46104f60c1ec1544261e8c809 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Fri, 10 Jan 2014 14:43:21 +0100 Subject: [PATCH] Remove tremoloFlags property (issue 3783) --- Documentation/notation/repeats.itely | 3 +-- lily/stem-engraver.cc | 13 +------------ scm/define-context-properties.scm | 2 -- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/Documentation/notation/repeats.itely b/Documentation/notation/repeats.itely index f3c4c5ac6c..ba57fe22b0 100644 --- a/Documentation/notation/repeats.itely +++ b/Documentation/notation/repeats.itely @@ -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 diff --git a/lily/stem-engraver.cc b/lily/stem-engraver.cc index 40bee1c504..8a20d6184e 100644 --- a/lily/stem-engraver.cc +++ b/lily/stem-engraver.cc @@ -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 ", diff --git a/scm/define-context-properties.scm b/scm/define-context-properties.scm index 6fff5b380d..7960246d98 100644 --- a/scm/define-context-properties.scm +++ b/scm/define-context-properties.scm @@ -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, -- 2.39.5