@end ignore
+@item
+The @samp{-d old-relative} option has been removed. Not actually
+accessible from the command line any more, its remaining use was
+for interpretating @code{\relative} in LilyPond files converted
+automatically from version@tie{}1.8 or older. It is unclear how
+much of this was actually still operative.
+
@item
The meaning of @code{instrumentTransposition} has been reversed.
After
@tab @code{#f}
@tab Convert text strings to paths when glyphs belong to a music font.
-@item @code{old-relative}
-@tab @code{#f}
-@tab Make @code{\relative} mode for simultaneous music work similar to
-chord syntax.
-
@item @code{paper-size}
@tab @code{\"a4\"}
@tab Set default paper size. Note the string must be enclosed in
#include "lily-guile.hh"
/* options */
-extern bool lily_1_8_relative;
-extern bool lily_1_8_compatibility_used;
SCM ly_get_option (SCM);
SCM ly_set_option (SCM, SCM);
Pitch start = *unsmob_pitch (pitch);
Music *m = unsmob_music (music);
Pitch last = m->to_relative_octave (start);
- if (lily_1_8_relative)
- m->set_property ("last-pitch", last.smobbed_copy ());
return last.smobbed_copy ();
}
{
Music *me = unsmob_music (music);
Pitch p = *unsmob_pitch (pitch);
-
- SCM elts = me->get_property ("elements");
- SCM copied = SCM_EOL;
- if (lily_1_8_relative)
- copied = ly_music_deep_copy (elts);
-
- Pitch retval = music_list_to_relative (elts, p, false);
-
- if (lily_1_8_relative)
- {
-
- Pitch retval_1_8 = music_list_to_relative (copied, p, true);
- if (retval_1_8 != retval)
- lily_1_8_compatibility_used = true;
-
- retval = retval_1_8;
- }
-
- return retval.smobbed_copy ();
+ return music_list_to_relative (me->get_property ("elements"),
+ p, false).smobbed_copy ();
}
MAKE_SCHEME_CALLBACK (Music_sequence, event_chord_relative_callback, 2);
bool music_strings_to_paths;
bool relative_includes;
-/*
- Backwards compatibility.
-*/
-bool lily_1_8_relative = false;
-bool lily_1_8_compatibility_used = false;
bool profile_property_accesses = false;
/*
crash if internally the wrong type is used for a grob property.
be_safe_global = valbool;
val = val_scm_bool;
}
- else if (varstr == "old-relative")
- {
- lily_1_8_relative = valbool;
- /* Needs to be reset for each file that uses this option. */
- lily_1_8_compatibility_used = valbool;
- val = val_scm_bool;
- }
else if (varstr == "strict-infinity-checking")
{
strict_infinity_checking = valbool;
MAKE_SCHEME_CALLBACK (Relative_octave_music, relative_callback, 2)
SCM
-Relative_octave_music::relative_callback (SCM music, SCM pitch)
+Relative_octave_music::relative_callback (SCM /* music */,
+ SCM pitch)
{
- Music *me = unsmob_music (music);
- if (lily_1_8_relative)
- {
- lily_1_8_compatibility_used = true;
- /* last-pitch should be junked some time, when
- we ditch 1.8 compat too.
-
- When you do, B should start where A left off.
-
- \relative { A \relative { ...} B } */
- SCM last_pitch = me->get_property ("last-pitch");
- Pitch *ptr = unsmob_pitch (last_pitch);
- return (ptr) ? last_pitch : pitch;
- }
- else
- return pitch;
+ return pitch;
}
return me->get_property ("elements");
}
-MAKE_SCHEME_CALLBACK (Repeated_music, relative_callback, 2);
-SCM
-Repeated_music::relative_callback (SCM music, SCM pitch)
-{
- Pitch p = *unsmob_pitch (pitch);
- Music *me = unsmob_music (music);
- if (lily_1_8_relative)
- {
- Music *body = unsmob_music (me->get_property ("element"));
- if (body)
- p = body->to_relative_octave (p);
-
- Pitch last = p;
- SCM alternatives = me->get_property ("elements");
-
- for (SCM s = alternatives; scm_is_pair (s); s = scm_cdr (s))
- {
- lily_1_8_compatibility_used = true;
- unsmob_music (scm_car (s))->to_relative_octave (p);
- }
-
- return last.smobbed_copy ();
- }
- else
- return me->generic_to_relative_octave (p).smobbed_copy ();
-}
-
Moment
Repeated_music::alternatives_get_length (Music *me, bool fold)
{
\version "2.17.6"
-%% < 1.8 compatibility switch
-#(ly:set-option 'old-relative)
-
%% named durations
breve = #(ly:make-duration -1 0)
longa = #(ly:make-duration -2 0)
#(note-names-language parser default-language)
-#(ly:set-option 'old-relative #f)
#(define location #f)
#(define toplevel-scores (list))
#(define toplevel-bookparts (list))
%% Above and below comments compensate for the parser's look-ahead.
%%
-#(if (and (ly:get-option 'old-relative)
- (defined? 'input-file-name)
- (not (ly:get-option 'old-relative-used)))
- (old-relative-not-used-message input-file-name))%% there is a problem at the end of the input file
-
#(if (and (not version-seen)
(defined? 'input-file-name))
(version-not-seen-message input-file-name))
r"\1/\2", str)
return str
+@rule((2, 17, 15), r"#(ly:set-option 'old-relative)")
+def conv(str):
+ if re.search (r"[#$]\(ly:set-option\s+'old-relative", str):
+ stderr_write (NOT_SMART % "#(ly:set-option 'old-relative)")
+ stderr_write (UPDATE_MANUALLY)
+ raise FatalConversionError ();
+ return str
+
# Guidelines to write rules (please keep this at the end of this file)
#
# - keep at most one rule per version; if several conversions should be done,
(ly:format "~a:1" input-file-name)
(_ "no \\version statement found, please add~afor future compatibility")
(format #f "\n\n\\version ~s\n\n" (lilypond-version))))
-
-(define-public (old-relative-not-used-message input-file-name)
- (ly:warning-located
- (ly:format "~a:1" input-file-name)
- (_ "old relative compatibility not used")))
(music-strings-to-paths #f
"Convert text strings to paths when glyphs belong
to a music font.")
- (old-relative #f
-"Make \\relative mode for simultaneous music work
-similar to chord syntax.")
(point-and-click #t
"Add point & click links to PDF output.")
(paper-size "a4"