Dear Don,
some time ago I wrote a little extension for MusiXTeX which allowed me
to write different parts of music transposed by different amounts. I
called this little script musixtrn.tex. It basically modifies the
meaning of \transpose every time the instrument is changed with
\nextinstrument. It might be improved further, especially the handling
of the first instrument, but it worked well for me.
----snip------------------
\let\transinstri\transpose
\newcount\transinstrii
\newcount\transinstriii
\newcount\transinstriv
\newcount\transinstrv
\newcount\transinstrvi
\newcount\transinstrvii
\newcount\transinstrviii
\newcount\transinstrix
\newcount\transinstrx
\newcount\instrno \instrno=2
\let\orignextinstrument\nextinstrument
\def\nextinstrument{%
\orignextinstrument
\transpose=\csname transinstr\romannumeral\instrno\endcsname
\ifnum\instrno=\nbinstruments
\global\instrno=2
\else
\global\advance\instrno by 1
\fi
}%
----snip------------------
The transposition amounts must then be defined for every
instrument separately. Instead for writing i.e.
\transpose=-2
for the whole piece, one might write
\transinstri=-2
\transinstrii=1
in a piece for two different saxophones. That's all.
Regards,
Steffen Bretz
Am Samstag, den 04.04.2009, 11:34 -0700 schrieb Don Simons:
> Naturally when I saw Luigi's posting (which BTW I understood clearly; no
> need to apologize for the English) I wondered how much work it would be to
> make PMX do this. I'll give it some more thought. As usual I'd have to
> re-educate myself about what PMX does now under transposition, and also
> explore MusiXTeX capabilities in this area. I'd have to do some pretty
> serious empirical research to work out how to make MusiXTeX transpose
> different parts by different amounts. Also, it's not obvious to me that
> everyone would always want to enter all parts in concert key; would anyone
> ever want to enter parts in their transposed keys?
>
> --Don Simons
>
> >-----Original Message-----
> >From: [email protected]
> >[mailto:[email protected]]
> >On Behalf Of Christian Mondrup
> >Sent: Saturday, April 04, 2009 10:43 AM
> >To: Werner Icking Music Archive
> >Subject: Re: [TeX-Music] Transposition with abcpp and pmx
> >
> >Luigi Cataldi wrote:
> >> Dear all,
> >>
> >> I've found a *not so polish* trick in order to keep the advantage of
> >the
> >> first method when we need to use the second one, with the aid of the
> >> abcpp preprocessor. Abcpp allows to define different note names and
> >> conditional output. So we have to:
> >> 1) define a set of note names for the first transposing instrument (XA
> >=
> >> f, XB = g etc.) and another one for the second (YA = c, YB = d etc.);
> >> 2) set in conditional way a different definition of the same symbols
> >(XA
> >> = a, YA = a) so that if TRASP is defined the output will be transposed
> >> and if not the output will not be transposed;
> >> 3) Typeset the transposing parts with relative accidents and in
> >> different ways (XA, XB or YA, YB etc).
> >> 4) compile with the command
> >> 'abcpp -TRASP sample.pmp sample_tr.pmx'
> >> in order to obtain the score to print in editorial way
> >> 5) compile with the command
> >> 'abcpp sample.pmp sample.pmx'
> >> in order to obtain the score not transposed and
> >> the extracted (if needed transposed) parts.
> >
> >As long as PMX in its current state does not offer 'local' staff-wise
> >transpositions your abcpp is an efficient way of meeting the need for a
> >full score with transposed parts without sacrificing MIDI rendering.
> >
> >It would, however, no doubt be a major improvement to add staff-wise
> >transposition to PMX. That would allow the typesetter to code the score
> >in concert pitch and add the part transpositions when the score is ready
> >for printing. Other typesetting software packages offer that facility,
> >for example GNU Lilypond and MUP.
> >
> >--
> >Christian Mondrup, Archive Editor
> >WIMA: Werner Icking Music Archive
> >http://icking-music-archive.org/
> >_______________________________________________
> >[email protected] mailing list
> >If you want to unsubscribe or look at the archives, go to
> >http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-
> >music
>
>
> _______________________________________________
> [email protected] mailing list
> If you want to unsubscribe or look at the archives, go to
> http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music
_______________________________________________
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to
http://mailman.nfit.au.dk/mailman/listinfo/icking-music-archive.org-tex-music