El 08/06/14 11:02, Francisco Callejo Giménez escribió:


It works in MusixTeX but not in PMX. The only way is putting it as a
"type 3" TeX string in the bar where the clef changes and *omitting* the
PMX "C" command; but then it has a surprising effect: from that point
on, *all* the notes in the same staff till the end of the score have the
stem downwards (!).



Well, I answer myself, though I think this isn't a good way to do it. The trick is to redefine \pdfclef *in the .mod file* (or as type 2 TeX strings):

\def\pmxclef#1#2{\ifnum#1=0\def\pmxclefsym{\smalltrebleclef}\else\ifnum#1<5%
\def\pmxclefsym{\smallaltoclef}\else\ifnum#1=7\def\pmxclefsym{\smalltrebleclef}%
%%%%% THIS IS THE IMPORTANT CHANGE
\else\ifnum#1=8\def\pmxclefsym{\smalltreblelowoct}%
%%%%% (and the extra "\fi", of course)
\else\def\pmxclefsym{\smallbassclef}\fi\fi\fi\fi%
% Adjust height here for older clef default heights.
\reflect#2\ifolder\ifnum#1=0\advance\reflect-2\else\ifnum#1<5\advance\reflect-4%
\else\advance\reflect-6\fi\fi\fi%
\lcharnote{0}{\raise\reflect\internote\hbox{\pmxclefsym}}}%

The important thing is the line with "\ifnum#1=8". For this to work, it's necessary to modify the .tex file after pmxab, changing something like "\pmxclef02" to "\pmxclef82", but this isn't a good way, I think.

The best way would be something like "C8" in the .pmx file, but this way needs to modify de PMX source.

Regards,
Francisco Callejo.



-------------------------------
TeX-music@tug.org 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