#ext: abc #procfile: sub{my ($fbase,$option)=@_; my $out = ""; my $o= gettexopts($option); make("$fbase.pdf"); $out .= includegraphics("$fbase.pdf",$o); if($o->{_midi}){ make("$fbase.mid"); $out .= attachfile("$fbase.mid",'\fbox{♪}'); } return $out; }; #makefile: %.pdf: %.abc abcm2ps $*.abc -O $*.eps -E epstopdf $*001.eps -o $*001.pdf pdfcrop -ini $*001.pdf $*.pdf >/dev/null -rm $*001.pdf $*001.eps %.mid: %.abc abc2midi $*.abc -o $*.mid > _.log #perl: