Error messages can be difficult to program, because it’s hard for the
programmer to anticipate everything that could go wrong. In this case, PMX
doesn’t check anything about the next line after Ti; it just accepts it.
Then when “\\input musixper\ <file:///\\input%20musixper\> ” was used as an
argument in the TeX macro \titles (from pmx.tex) something unanticipated
went haywire. This sort of thing happens all the time; you just have to get
used to it.

 

--Don Simons

 

From: TeX-Music [mailto:[email protected]] On Behalf Of Dieter
Sent: Wednesday, March 11, 2015 10:13 AM
To: Werner Icking Music Archive
Subject: Re: [Tex-music] Fwd: percussion notes with PMX and musixper

 

Don-

there is no reason for this "Ti" statement. It has survived some copy and
paste operation and escaped my attention. In my first test of your code I
erroneously removed the blank line after "Ti". But still I find this error
message  kind off misleading. Anyhow, thanks again.

Dieter

Am 11.03.2015 um 15:50 schrieb Don Simons:

Dieter—

 

This is very strange! When initially working out the solution, I had gotten
EXACTLY the same error:

 

Runaway argument?

{\titles {2.0}{\\input musixper\}{2.0}{}{2.0}{}{0}}\en \endeq \pnotes \ETC.

 

The problem was basically caused by your having used “Ti” and then leaving
the next line blank. When I first copied your original source into WinVi,
for some reason the blank line had disappeared, and the next line after “Ti”
was \\input musixper\ <file:///\\%5C%5Cinput%20musixper%5C>  . I fixed it by
restoring the blank line after “Ti”, so that it contained a single blank
space. Maybe that won’t work for you, but why in the world did you put in
“Ti” with no instrument name? Why not just get rid of the “Ti”??

 

--Don

 

From: TeX-Music [mailto:[email protected]] On Behalf Of Dieter
Sent: Wednesday, March 11, 2015 1:42 AM
To: Werner Icking Music Archive
Subject: Re: [Tex-music] Fwd: percussion notes with PMX and musixper

 

Don,

thanks for your rapid solution. This would solve my problem. But for some
reason or other it does not work on my Computer (Windows7 ,64 bit). I
include the PMX file and error message. 
=================================================================
 This is PMX, Version 2.7  , 3 Apr 13
 Opening donexample.pmx
 Starting first PMX pass
  Bar 1  Bar 2  Bar 3
 Done with first pass
 Starting second PMX pass
 WARNING
   In a title block, you have specified instrument and/or
   composer but no title for the piece.
  Bar 1  Bar 2  Bar 3
 Writing .\donexample.tex
 Done with second PMX pass.
D:\MUSIX\Jonah>if errorlevel 1 goto pmxerr
D:\MUSIX\Jonah>if exist donexample.pml del donexample.pml
D:\MUSIX\Jonah>if exist donexample.mx2 del donexample.mx2
D:\MUSIX\Jonah>if exist donexample.mx1 del donexample.mx1
D:\MUSIX\Jonah>Call "C:\miktex2.9\miktex\bin\etex" donexample
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9)
entering extended mode
(D:\MUSIX\Jonah\donexample.tex
(c:\miktex2.9\tex\generic\musixtex\musixtex.tex
MusiXTeX(c) 1.15 <3 April 2011>
maxinstruments=6 max128beams=6 maxgroups=3 maxslurs=6 maxtrills=6
maxoctlines=6) (c:\miktex2.9\tex\generic\pmx\pmx.tex
PMX, a Preprocessor for MusiXTeX, Version 2.7a <3 April 13>
) maxslurs=24
Normal \dimen register pool exhausted, switching to extended pool.
maxinstruments=24 (c:\miktex2.9\tex\generic\musixtex\musixps.tex
MusiXPS PostScript slurs, ties and crescendos 0.92 (12.5.2002)
Normal \count register pool exhausted, switching to extended pool.)
Runaway argument?
{\titles {2.0}{\\input musixper\}{2.0}{}{2.0}{}{0}}\en \endeq \pnotes \ETC.
! Forbidden control sequence found while scanning use of \C@ch.
<inserted text>
                \par
<to be read again>
                   \bye
l.52 \bye

?
=======================================================================
What did I do wrong? Do you have an idea?

Thanks! Dieter

Am 11.03.2015 um 03:41 schrieb Don Simons:

Dieter—

 

Here’s an example of how to use inline TeX to do what you did in
musixper_test. You could enhance macros /startper and /endper to include all
the other kinds of notes; you could make alternate macros for the other
kinds of percussion symbols, and you could include them all in a single tex
file which you could input from within the PMX source. The \global
declarations aren’t necessary when you use these as type 3 inline tex (at
the start of a PMX input block, as in the example), but they also allow you
to use them as type 1 inline tex (within an input block, for example for one
note at a time)

 

--Don

 

% nstaves ninstr mtrnuml mtrdenl mtrnump mtrdenp

    1

    1

    3

    4

    3

    4

% npickup nkeys

0

    0

% npages nsystems musicsize fracindent

    0

    4

   20

0.05

Drum

t

.\

Ti

 

\\input <file:///\\%5C%5Cinput>  musixper\

\\let\qbt\qb\let\qut\qu\
<file:///\\%5C%5Clet%5Cqbt%5Cqb%5Clet%5Cqut%5Cqu%5C> 

\\def\startper{\global\let\qb\dcqb\global\let\qu\dcqu}\
<file:///\\%5C%5Cdef%5Cstartper%7b%5Cglobal%5Clet%5Cqb%5Cdcqb%5Cglobal%5Clet
%5Cqu%5Cdcqu%7d%5C> 

\\def\endper{\global\let\qb\qbt\global\let\qu\qut}\
<file:///\\%5C%5Cdef%5Cendper%7b%5Cglobal%5Clet%5Cqb%5Cqbt%5Cglobal%5Clet%5C
qu%5Cqut%7d%5C> 

% Body

% Header

AbepI1.0

% Av

% space before first note of bar

% big accidentals

% equalizes interstaff spacing

% type K slurs

%\\setclef2{\treble}\settrebleclefsymbol{2}\treblelowoct\

% Bars 1

g4  g8 g8 g8 g8 | /

\\\startper\ <file:///\\%5C%5C%5Cstartper%5C> 

g4  g8 g8 g8 g8 | /

\\\endper\ <file:///\\%5C%5C%5Cendper%5C> 

g4  g8 g8 g8 g8 | /

 

 

From: TeX-Music [mailto:[email protected]] On Behalf Of Dieter
Sent: Tuesday, March 10, 2015 10:23 AM
To: [email protected] <mailto:[email protected]> 
Subject: Re: [Tex-music] Fwd: percussion notes with PMX and musixper

 

Hi Don,

please find attached a simple example. The pmx generated Tex file is
"musixper_test_nodrum.tex" and the 
modified Tex-file is "musixper_test.tex". The differences  are the input
command for "musixper.tex" and a decoration of the concerned notes with "dc"
after the backslash. There exists a variety of percussion fonts, please see
in the  musixtex documentation on page 96 (section 2.23.18) .

Regards,
Dieter

 

Am 10.03.2015 um 15:09 schrieb Don Simons:

Hi, Dieter—

 

Please make a sample available, including both the PMX file and the altered
TeX file. I will consider this, but I cannot make any promises. 

 

I’m guessing there may be ways to do most if not everything you need within
the PMX file, using inline TeX. I realize that’s not as slick as having PMX
commands, but it is a lot better than having to edit the TeX file. So that
will be the first thing I explore.

 

--Don Simons

 

From: TeX-Music [mailto:[email protected]] On Behalf Of Dieter
Sent: Tuesday, March 10, 2015 1:23 AM
To: Werner Icking Music Archive
Subject: [Tex-music] Fwd: percussion notes with PMX and musixper

 

 

                
                
                
                

 

Hi,
 
finally (after an interruption of several years ) I managed to produce 
percussion notes with PMX and musixper, following an advice by Philipp
Neukel.
 
This is great, but it requires to manually change the "final" PMX generated
TeX 
-version.
 
And if this version is not 100 % final, then I have to do this more than 
once.
 
Would it not be beautiful to have  PMX-commands for bracketing a group 
of percussion notes and  to include this information in the PMX file? 
 
Maybe with such a mechanism one could give other formatting hints to a 
group of notes.
 
What do you think, Don?
 
Regards,
Dieter

 

 








-------------------------------
[email protected] <mailto:[email protected]>  mailing list
If you want to unsubscribe or look at the archives, go to
http://tug.org/mailman/listinfo/tex-music








 







-------------------------------
[email protected] <mailto:[email protected]>  mailing list
If you want to unsubscribe or look at the archives, go to
http://tug.org/mailman/listinfo/tex-music







-- 
____________________________________
Dr. Dieter Glötzel
Im Rosengarten 27
64367 Mühltal
Tel.: 06151 / 360 82 72






-------------------------------
[email protected] <mailto:[email protected]>  mailing list
If you want to unsubscribe or look at the archives, go to
http://tug.org/mailman/listinfo/tex-music






-- 
____________________________________
Dr. Dieter Glötzel
Im Rosengarten 27
64367 Mühltal
Tel.: 06151 / 360 82 72
-------------------------------
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music

Reply via email to