Guido Gonzato's preprocessor abcpp has been used for generating the M-Tx typesetting source files for various scores, separate parts and MIDI output out of a single abcpp master source file.
The M-Tx files are generated based on macros and conditional expressions e.g.
#ifdef LUTE MIDI
#define MCHANGE ""
#define H_ ""
#define SMALLSIZE "\\setsize{1}\smallvalue\"
#else
#define MCHANGE "m4/2/0/0 "
#define H_ "% "
#define SMALLSIZE ""
#endif
All M-Tx music- and lyrics paragraph lines are prefixed with a macro expression like H_. The value of these macros are set to an empty string if the lines should be typeset or else they are set to a comment plus a space ("% "). For example for generating the M-Tx file of the Canto part the macro C_ prefixing the music- and lyrics lines of the upper part is set to an empty string while all other prefix macros (e.g. H_) are set to "% ".
An M-Tx source file is generated from the Abcpp master source file by launching a command line like
abcpp -CANTO -SP gitene.mtp gitenec.mtx
The Abcpp preprocessor is designed to be used with Abc music typesetting. The Abcpp software and documentation is available from the Abc Plus project web site.
For typesetting the lute tablatures you need Ronald Gelten's tablature macros and a patched version of the lute fonts accompanying Wayne Cripp's lute tablature typesetting program tab. The requested tablature macros and lute fonts are available from the software section of the Werner Icking Music Archive.