Make incompatible mudela version non-fatal.
+=item B<--postscript, -p>,
+
+Try to use PostScript where possible.
+
=back
=head1 FEATURES
print BANNER $ban;
close BANNER;
my_system("BANNEROPT=\"-B /tmp/lilybanner.html\" $depth/bin/out/make-docxx");
+ unlink "/tmp/lilybanner.html";
}
sub do_tar
print STDERR "This is " . $id_str . "\n";
}
+sub clean_tmp
+{
+ @a = </tmp/gs*>;
+ unlink @a;
+}
+
sub main
{
identify;
edit_index;
docxx_update;
do_tar;
+ clean_tmp;
}
main;
extern bool only_midi;
extern int exit_status_i_;
extern bool experimental_features_global_b;
+extern bool postscript_global_b;
extern String default_out_fn;
Atom
Lookup::hairpin (Real &wid, bool decresc) const
{
- bool embedded_b = experimental_features_global_b;
+ bool embedded_b = postscript_global_b;
String embed;
Atom ret;
if (embedded_b)
}
else
{
+ if (wid > 32 * 6 PT)
+ {
+ warning (_("Crescendo too long (") + print_dimen (wid)
+ +_( ") shrinking (ugh)"));
+ wid = 32*6 PT;
+ }
int idx = int (rint (wid / 6 PT));
if (!idx) idx ++;
wid = idx*6 PT;
Array<String> a;
a.push (idx);
ret.tex_ = substitute_args (ret.tex_, a);
-
}
ret.dim_.x() = Interval (0,wid);
Sources* source_l_g = 0;
bool only_midi = false;
bool experimental_features_global_b = false;
+bool postscript_global_b = false;
int exit_status_i_;
void destill_inname (String &name_str_r);
{1, "init", 'i'},
{1, "include", 'I'},
{0, "midi", 'M'},
+ {0, "postscript", 'p'},
{0, "ignore-version", 'V'},
{0,0,0}
};
" -t, --test switch on experimental features\n"
" -M, --midi produce midi output only\n"
" -V, --ignore-version ignore mudela version\n"
+ " -p, --postscript try to use PostScript\n"
"\n"
"GNU LilyPond was compiled with the following settings:\n")
#ifdef NDEBUG
case 'V':
version_ignore_b = true;
break;
+ case 'p':
+ postscript_global_b = true;
+ break;
case 'd':
set_debug (true);
break;
if (experimental_features_global_b)
tex_out << "\\turnOnExperimentalFeatures%\n";
+ if (postscript_global_b)
+ tex_out << "\\turnOnPostScript%\n";
super_elem_l_->output_all ();
tex_out << "\n\\EndLilyPondOutput";
outputter_l_ = 0;
-\def\turnOnExperimentalFeatures{
%
% WARNING: don't leave blank lines in the PS-code; they are
%
+\def\turnOnPostScript{
+\def\embeddedps##1{
+ %
+ % This sets CTM so that you get to the currentpoint
+ % by executing a 0 0 moveto
+ \special{ps: @beginspecial @setspecial ##1 @endspecial}
+}
\special{ps:
/draw_decresc
{
}
def
}
+}
-
+\def\turnOnExperimentalFeatures{
% draw a slur in embedded postscript
\special{ps:
/xbow 1 3 div def
}
\def\embeddedtex#1{#1}
-\def\embeddedps#1{
- %
- % This sets CTM so that you get to the currentpoint
- % by executing a 0 0 moveto
- \special{ps: @beginspecial @setspecial #1 @endspecial}
-}
+
\def\embeddedmf#1{
\edef\embedid{feta-sleur-\number\embedcount}
\immediate\openout\embedfile=\embedid.mf