%3A%20%EC%9E%85%EB%A0%A5%20%EB%B3%80%ED%99%98%20%EC%98%A4%EB%A5%98%2C%20%EB%8B%A8%EC%9C%84%20-5%2C%20%ED%8C%8C%EC%9D%BC%20%EB%82%B4%EB%B6%80%20%ED%98%95%EC%8B%9D%20%EC%9D%BD%EA%B8%B0.png)
내가 도대체 뭘 잘못하고있는 겁니까? 명확히 하자면, 오류가 발생한 샘플 파일 내부의 위치를 가리키는 명확한 줄 번호와 위치가 부족하기 때문에 혼란이 발생합니다.
나는 p에서 PMX 배트 파일을 빌렸다. 설명서 11을 참조 Typesetting music with PMX, Version 2.821 / May 2013 by Cornelius C. Noack
하여 MikTex 설정 경로에 맞게 조정했습니다.
:::::::::::::::::::::::: runpmx.bat ::::::::::::::::::::::::
Call "D:\Program Files (x86)\MiKTeX 2.9\miktex\bin\pmxab.exe" %1.pmx
if errorlevel 1 goto pmxerr
if exist %1.pml del %1.pml
if exist %1.mx2 del %1.mx2
if exist %1.mx1 del %1.mx1
if exist pmxaerr.dat del pmxaerr.dat
::
Call "D:\Program Files (x86)\MiKTeX 2.9\miktex\bin\etex.exe" %1.tex
if errorlevel 1 goto texerr
::
Call "D:\Program Files (x86)\MiKTeX 2.9\miktex\bin\musixflx.exe" %1.mx1
::
Call "D:\Program Files (x86)\MiKTeX 2.9\miktex\bin\etex.exe" %1.tex
if errorlevel 1 goto texerr
if exist %1.log del %1.log
::
Call "D:\Program Files (x86)\MiKTeX 2.9\miktex\bin\dvips.exe" %1.dvi
if errorlevel 1 goto dvierr
if exist %1.log del %1.log
::
@rem Call C:\Programme\GhostScript\Ghostgum\gsview\gsview32.exe %1.ps
::
goto :end
:::::::::::::::::::
:: error exits :
::
:pmxerr
echo.
echo PMX has found errors when processing %1.pmx !
echo.
pause
goto :end
::
:texerr
echo.
echo TeX has found errors when processing %1.tex !
echo check %1.log for details.
echo.
pause
goto :end
::
:dvierr
echo.
echo *** dvips had errors ! ***
echo.
pause
::
:end
:::::::::::::::::::: end of runpmx.bat ::::::::::::::::::::
그런 다음 p에서 하이든 샘플을 복사/붙여넣었습니다. 동일한 설명서 14개를 haydn.pmx
ANSI 인코딩 파일로 변환 :
F.J.\ Haydn, Quartet op.76, no.2, bars 1--4
PREAMBLE:
nstaves ninstr mtrnuml mtrdenl mtrnump mtrdenp
4 4 4 4 0 6
npickup nkeys
0 -1
npages nsystems musicsize fracindent
1 1 16 .08
Violoncello
Viola
Violin II
Violin I
batt
./
% BODY:
% HEADER:
Tc
F.J. Haydn
Tt
String Quartet op. 76, No.2
h
Allegro
Abep
w170m
% begin of music input -
% bar 1
d82 Df o. d+ o. d o. d o. r d o. d o. d o. /
f83 Df o. f o. f o. f o. r f o. f o. f o. /
r8 a83 Df o. a o. a o. r a o. a o. a o. /
a24 Df d- /
% bar 2
r8 d o. d o. d o. r e o. e o. e o. /
r8 g o. g o. g o. r g o. g o. g o. /
r8 b o. b o. b o. r cs o. c o. c o. /
e2 a- /
% bars 3-4
f8 s e f cs s d4 a | b2 s a4 s o. r Rb /
a2 t a4 t .cs- | d8 s e f d s e4 o. r /
d8 s cs d e s e s d c s a1+ s g s | f s g f e s d8 o. d o. cs4 r /
d8 s cs d e s g s f e s a | d4- zd+ cn1 s b a gs s a4 o. r /
% end of PMX source file
마지막으로 해당 샘플에 대해 bat 파일을 실행했습니다. 그 결과 다음과 같은 오류가 발생했습니다.
I:\LaTeX\MusixTex\work>pmx.cmd haydn
I:\LaTeX\MusixTex\work>Call "D:\Program Files (x86)\MiKTeX 2.9\miktex\bin\pmxab.exe" haydn.pmx
This is PMX, Version 2.7 , 3 Apr 13
Opening haydn.pmx
Starting first PMX pass
forrtl: severe (64): input conversion error, unit -5, file Internal Formatted Read
I:\LaTeX\MusixTex\work>if errorlevel 1 goto pmxerr
I:\LaTeX\MusixTex\work>if exist haydn.pml del haydn.pml
I:\LaTeX\MusixTex\work>if exist haydn.mx2 del haydn.mx2
I:\LaTeX\MusixTex\work>if exist haydn.mx1 del haydn.mx1
I:\LaTeX\MusixTex\work>if exist pmxaerr.dat del pmxaerr.dat
I:\LaTeX\MusixTex\work>Call "D:\Program Files (x86)\MiKTeX 2.9\miktex\bin\etex.exe" haydn.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9)
entering extended mode
! I can't find file `haydn.tex'.
<*> haydn.tex
Please type another input file name:
! Emergency stop.
<*> haydn.tex
No pages of output.
Transcript written on texput.log.
Terminate batch job (Y/N)? y
프로세스가 완료되면 다음 haydn.pml
파일이 생성됩니다.
This is PMX, Version 2.7 , 3 Apr 13
Opening haydn.pmx
Starting first PMX pass
pmxaerr.dat
그리고 5개 뒤에 공백이 있는 한 줄만 포함하는 파일 0
:
0
답변1
예제는 실제로 잘못되었습니다. 초기 줄에 많은 주석 문자가 누락되었습니다. 파일에서 가장 먼저 pmx
볼 것으로 예상되는 것은 변수 등에 해당하는 숫자 목록입니다 nstaves
. 이 예에서는 이 목록이 시작됩니다 4 4 4 4 0 6
. 이 이전의 모든 줄은 및 %
로 시작하는 줄과 마찬가지로 로 주석 처리해야 합니다 . 다음은 올바른 파일과 그 출력입니다.npickup
npages
% F.J.\ Haydn, Quartet op.76, no.2, bars 1--4
% PREAMBLE:
% nstaves ninstr mtrnuml mtrdenl mtrnump mtrdenp
4 4 4 4 0 6
% npickup nkeys
0 -1
% npages nsystems musicsize fracindent
1 1 16 .08
Violoncello
Viola
Violin II
Violin I
batt
./
% BODY:
% HEADER:
Tc
F.J. Haydn
Tt
String Quartet op. 76, No.2
h
Allegro
Abep
w170m
% begin of music input -
% bar 1
d82 Df o. d+ o. d o. d o. r d o. d o. d o. /
f83 Df o. f o. f o. f o. r f o. f o. f o. /
r8 a83 Df o. a o. a o. r a o. a o. a o. /
a24 Df d- /
% bar 2
r8 d o. d o. d o. r e o. e o. e o. /
r8 g o. g o. g o. r g o. g o. g o. /
r8 b o. b o. b o. r cs o. c o. c o. /
e2 a- /
% bars 3-4
f8 s e f cs s d4 a | b2 s a4 s o. r Rb /
a2 t a4 t .cs- | d8 s e f d s e4 o. r /
d8 s cs d e s e s d c s a1+ s g s | f s g f e s d8 o. d o. cs4 r /
d8 s cs d e s g s f e s a | d4- zd+ cn1 s b a gs s a4 o. r /
% end of PMX source file
이 오류를 지적하는 튜토리얼 작성자에게 문의하는 것이 좋습니다. 일반적 pmx
으로 @darthbin이 댓글에서 요청한 것처럼 문서와 소개 자료에 먼저 시도해 볼 수 있는 매우 짧고 간단한 예제가 있으면 좋을 것입니다 . 아마도 그러한 예는 다음과 같습니다.
1 1 4 4 4 4 0 0
1 1 20 0.12
Violin
t
./
% Bars 1
c2 g4+ e /
% End of file
어디
1 1 4 4 4 4 0 0
시스템당 하나의 보표, 하나의 악기, 4/4 박자가 픽업 바와 조표에 0비트로 4/4로 인쇄되어 0
샤프나 플랫이 없음을 의미합니다. 2호선
1 1 20 0.12
1개의 시스템, 음악 크기 및 첫 번째 시스템의 20
들여쓰기가 포함된 1페이지를 말합니다. 3행은 악기의 이름이고, 4행은 높은 음자리표를 말합니다. 이 줄에는 출력을 현재 디렉터리에 넣으라고 나와 있습니다. 마지막으로 C 최소음부터 시작하여 G 크로셰로 올라가고 이어서 E 크로셰로 이어지는 음악 바입니다.0.12
t
./
c2 g4+ e /
pmx2pdf
내 설치(texlive)에는 이를 파일로 처리하는 명령이 함께 제공됩니다 pdf
.