1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
% typeset with:
% pdflatex -shell-escape sample-example.tex
\documentclass{article}
\thispagestyle{empty}
\usepackage[generate,ps2eps]{abc}
% --- M-Tx support
% https://ctan.org/pkg/m-tx
\newcommand{\mtxinput}[2][]{%
\abcinput[program=musixtex,options={-g},extension=mtx,#1]{#2}}
% --- PMW support
% http://people.ds.cam.ac.uk/ph10/pmw.html
\newcommand{\pmwinput}[2][]{%
\abcinput[program=pmw,options={-includefont},extension=pmw,#1]{#2}}
% --- LilyPond support
% http://lilypond.org/
\newcommand{\lilyinput}[2][]{%
\abcinput[program=lilypond,options={-d backend=eps},extension=ly,#1]{#2}}
% --- MUP support
% http://arkkra.com/
\newcommand{\mupinput}[2][]{%
\abcinput[program=mup,options={-F},extension=mup,#1]{#2}}
% --- ABC is supported by default
\begin{document}
This document includes music excerpts written in several formats. It
uses \texttt{abc.sty} and defines new environments.
\bigskip
This is a short piece, typeset by M-Tx:
\medskip
\mtxinput{sample-mtx}
\medskip
The same piece, typeset by LilyPond:
\medskip
\lilyinput{sample-lilypond}
\medskip
The same piece, typeset by PMW:
\medskip
\pmwinput{sample-pmw}
\medskip
The same piece, typeset by MUP:
\medskip
\mupinput{sample-mup}
\medskip
The same piece, typeset by abcm2ps:
\medskip
\abcinput[program=abcm2ps,options={-c -O=},extension=abc]{sample-abc}
\end{document}
% End of file `sample-includeall.tex'.
|