On Tue, 9 Jul 2002, taupin (wanadoo-lps) wrote: > Hello, all: > Several tentative MusiXTeX used asked me whether it was possible with > MusiXTeX to select one or several instruments from a complete > orchestra/choir score. > > At present time, not immediately possible unless writing macros with > sophisticated TeX \if\then_else. I'm presently thinking not exactly to > that, but to the opposite, i.e. cancelling output of one or several > selected instruments. > > Two options are available: > 1) One should be when using \selectinstrument, to check whether the > instrument number given is Zero, in which case all input is ignored > until a compulsory ending command sud as \endinstrument. > 2) The second would test the staffnumbers of an instrument, and ignore > all notes, beams, rests, appended texts if that instrument has a number > of staffs equal to zero. > > The inconvenience of the solution 1) is that, if global commands are > issued in the deleted text, they will be ignored. > The inconvenience of the solution 2) is that if involves a test at each > command, such as \qb, \qu, \zh, \zw, etc. Then, such a test could > slightly slow down the compilation. > > In all cases, instrument numbers have to be defined as macros, so as to > be able to keep the number of instruments equal to what is actually > typed. For example: > > \def\Orgue{1} > \def\Song{2} > \def\Flute{3} > > and then alsays \selectinstrument\Orgue or \selectinstrument\Flute, > and \setstaffs\Orgue2 and \setstaffs\Flute1 > > Which then work whatever the actual instrument number of these two > instruments. > > ----> Which solution seems better to you (knowing that solution 2) is > easier, both for me a,d for the user). > I dont think the whole effort is worth your time: if one wants individual instruments extracted from a full score, it is much easier to use the pmx preprocessor, which has this facility built in from the start.
ccn. -- ..................................................................... _|_ / | \ \_|_/ Prof.Dr. Cornelius C. Noack Phones: _|_ __ Inst. f. Theor. Physik FB 1 office : +49 (421) 218-2427 | | | \ Universit"at Bremen secretary: -2422 |__| |__/ Kufsteiner Strasse Fax : -4869 | | | \ D - 28334 Bremen home : +49 (421) 34 22 36 | | |__/ Fax: 346 7872 PhyHB E-mail: [EMAIL PROTECTED] WWW-page: www-theorie.physik.uni-bremen.de/~noack ....................................................................... _______________________________________________ TeX-music mailing list [EMAIL PROTECTED] http://sunsite.dk/mailman/listinfo/tex-music