Re: [TeX-Music] special meter with PMX
Am Dienstag, 2. Juni 2009 05:56:35 schrieb Don Simons: I'm not sure I understand the question, so I'll just give you some general info. \meterfont is a MusiXTeX macro that designates the font to be used for numbers in time signatures. Musixtex.tex assigns it a value depending on \musicsize. So whatever basic \musicsize you have selected in PMX (or in raw MusiXTeX) (probably 16 or 20), \meterfont will automatically be assigned a value that makes the numbers in numerical time signatures fill the appropriate amount of vertical space, roughly half the height of the staff. You probably would never need to change its automatically assigned value. You could do it if you really wanted to, for example by using inline TeX to say \\def\meterfont{cmr8}\ , but if you then used a normal numerical time signature, the numbers would come out the wrong size. To use the special half-circle and circle characters in a time signature, several things have to be done by hand. They are accomplished by the inline TeX that I most recently supplied. A font must be selected so that the characters will be the right size. Then some coding has to be done to get them to appear in the right place. For 16-pt staves, the right font is old-feta16. Again, if for some reason you want them to be a different size, you can for example simply replace \\font\halfc=old-feta20\ with \\font\halfc=old-feta16\ in the inline TeX I supplied. But then you may also want to adjust the positioning of the character; to do that you must fiddle with the number after \raise (for vertical position), or after \kern (for horizontal positioning). I can't give you a recipe for this, it has to be trial and error. --Don Simons Don, now I understand the meaning of the different parameters to shift the meters and the size of the characters. I choose old-feta23 to enlarge the half-circle so I get a pleasant layout together with the meter of 16-pt. Thank you very much once more for your help. Hermann ___ tex-mu...@icking-music-archive.org 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
Re: [TeX-Music] special meter with PMX
Am Sonntag, 31. Mai 2009 23:11:30 schrieb Don Simons: Christian Mondrup wrote Years ago Mats Bengtsson, Lilypond- and MusiXTeX engraver, provided a specialized a Lilypond TeX font, 'old-feta' offering a number of mensural notation tempus-, prolation- and proportion symbols incl. a half circle. This font is part of WIMA's software collection, see http://icking-music-archive.org/software/indexmt6.html under 'MusiXTeX Files'. There is an on-line instruction on how to install and use the font, see http://icking-music-archive.org/software/musixtex/add-ons/readme-of.txt We'll have to be sure the editor of the software archive knows about this :-) I've modified the example to use old-feta20. Obviously there will be more than one way do this. == 1 1 3 2 -3 4 0 0 1 1 20 0 t .\ w4i \\font\halfc=old-feta20\ \\def\meterfracS#1#2{\ \\raise4\internote\hbox{\kern2\internote\halfc\char95}\ \\raise4.2\internote\rlap{\kern-1.5\internote\meterfont#1}\ \\raise.2\internote\hbox{\kern-1.5\internote\meterfont#2}}\ \\def\meterN#1{\ \\raise4\internote\hbox{\kern2\internote\halfc\char97}\ \\raise4.2\internote\rlap{\kern-1.5\internote\meterfont3}\ \\raise.2\internote\hbox{\kern-1.5\internote\meterfont1}}\ cd05 / m3403 cd25 / --Don Simons Hi Christian, hi Don, your suggestions are a great help for me. There is one more question: As I am using size 16 for typsetting lyrics would it possigle to keep old-feta20 and to use size 16 for meterfont? Hermann ___ tex-mu...@icking-music-archive.org 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
Re: [TeX-Music] special meter with PMX
Hermann Hinsch wrote As I am using size 16 for typsetting lyrics would it possigle to keep old-feta20 and to use size 16 for meterfont? I don't see why not. But you could also use old-feta16 for the special meters. --Don Simons ___ tex-mu...@icking-music-archive.org 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
Re: [TeX-Music] special meter with PMX
Am Montag, 1. Juni 2009 18:12:27 schrieb Don Simons: Hermann Hinsch wrote As I am using size 16 for typsetting lyrics would it possigle to keep old-feta20 and to use size 16 for meterfont? I don't see why not. But you could also use old-feta16 for the special meters. Don, I have only a poor knowledge of TeX, so I would like to know what I have to do to use size 16 for meterfont. Hermann --Don Simons ___ tex-mu...@icking-music-archive.org 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-mus ic ___ tex-mu...@icking-music-archive.org 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
Re: [TeX-Music] special meter with PMX
I'm not sure I understand the question, so I'll just give you some general info. \meterfont is a MusiXTeX macro that designates the font to be used for numbers in time signatures. Musixtex.tex assigns it a value depending on \musicsize. So whatever basic \musicsize you have selected in PMX (or in raw MusiXTeX) (probably 16 or 20), \meterfont will automatically be assigned a value that makes the numbers in numerical time signatures fill the appropriate amount of vertical space, roughly half the height of the staff. You probably would never need to change its automatically assigned value. You could do it if you really wanted to, for example by using inline TeX to say \\def\meterfont{cmr8}\ , but if you then used a normal numerical time signature, the numbers would come out the wrong size. To use the special half-circle and circle characters in a time signature, several things have to be done by hand. They are accomplished by the inline TeX that I most recently supplied. A font must be selected so that the characters will be the right size. Then some coding has to be done to get them to appear in the right place. For 16-pt staves, the right font is old-feta16. Again, if for some reason you want them to be a different size, you can for example simply replace \\font\halfc=old-feta20\ with \\font\halfc=old-feta16\ in the inline TeX I supplied. But then you may also want to adjust the positioning of the character; to do that you must fiddle with the number after \raise (for vertical position), or after \kern (for horizontal positioning). I can't give you a recipe for this, it has to be trial and error. --Don Simons -Original Message- From: icking-music-archive.org-tex-music-boun...@mailman.nfit.au.dk [mailto:icking-music-archive.org-tex-music-boun...@mailman.nfit.au.dk] On Behalf Of Hermann Hinsch Sent: Monday, June 01, 2009 10:16 AM To: Werner Icking Music Archive Subject: Re: [TeX-Music] special meter with PMX Am Montag, 1. Juni 2009 18:12:27 schrieb Don Simons: Hermann Hinsch wrote As I am using size 16 for typsetting lyrics would it possigle to keep old-feta20 and to use size 16 for meterfont? I don't see why not. But you could also use old-feta16 for the special meters. Don, I have only a poor knowledge of TeX, so I would like to know what I have to do to use size 16 for meterfont. Hermann --Don Simons ___ tex-mu...@icking-music-archive.org 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-mus ic ___ tex-mu...@icking-music-archive.org 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 ___ tex-mu...@icking-music-archive.org 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
Re: [TeX-Music] special meter with PMX
I found a font lcirclew10 in my MiKTeX installation that has quarter-circles in 4 orientations and various sizes. The TeXperts might be able to work out a scheme for combining two of these characters to give a semicircle. That would avoid having to use METAFONT. They have rounded ends but that might not be bad for the intended use. This font also has full circles in various sizes. --Don Simons -Original Message- From: icking-music-archive.org-tex-music-boun...@mailman.nfit.au.dk [mailto:icking-music-archive.org-tex-music-boun...@mailman.nfit.au.dk] On Behalf Of Hermann Hinsch Sent: Saturday, May 30, 2009 7:33 AM To: Werner Icking Music Archive Subject: [TeX-Music] special meter with PMX A question to the TeX experts: I would like to get a special design of the printed part of a meter, as it is used in early music like this: C3/4 or O3/1, to be exact instead of C a halve circle and instead of O a circle is used. Hermann ___ tex-mu...@icking-music-archive.org 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 ___ tex-mu...@icking-music-archive.org 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
Re: [TeX-Music] special meter with PMX
Don Simons wrote: I found a font lcirclew10 in my MiKTeX installation that has quarter-circles in 4 orientations and various sizes. The TeXperts might be able to work out a scheme for combining two of these characters to give a semicircle. That would avoid having to use METAFONT. They have rounded ends but that might not be bad for the intended use. This font also has full circles in various sizes. Years ago Mats Bengtsson, Lilypond- and MusiXTeX engraver, provided a specialized a Lilypond TeX font, 'old-feta' offering a number of mensural notation tempus-, prolation- and proportion symbols incl. a half circle. This font is part of WIMA's software collection, see http://icking-music-archive.org/software/indexmt6.html under 'MusiXTeX Files'. There is an on-line instruction on how to install and use the font, see http://icking-music-archive.org/software/musixtex/add-ons/readme-of.txt I'm using the font for my editions of early music, for example Orazio Vecchi's Selva di Varia Ricreatione. The file http://icking-music-archive.org/scores/vecchi/SelvaDiRecreazione/common.zip contains a.o. a MusiXTeX include file, mensural.tex setting up macros for various symbols. -- Christian Mondrup, Archive Editor WIMA: Werner Icking Music Archive http://icking-music-archive.org/ ___ tex-mu...@icking-music-archive.org 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
Re: [TeX-Music] special meter with PMX
Hermann Hinsch wrote: A question to the TeX experts: Actually I think a METAFONT expert would be more help here but they're such a rare breed... I would like to get a special design of the printed part of a meter, as it is used in early music like this: C3/4 or O3/1, to be exact instead of C a halve circle and instead of O a circle is used. The WASY font package (font wasy10) contains two symbols which may be a good starting point 23 - whole circle 49 - left half circle with vertical line The only problem is that I think for the clef you're after you don't want the vertical line on the half symbol? However, on page 96 of the Comprehensive LaTeX Symbol list there is a tutorial for producing very simple METAFONT sources. If you search for Left half ocircle and ocircle same size as operators in rsym.mf then you get the METAFONT source for each of those characters and then wasym10.mf shows how the font would be produced and the two together should be enough to graft those two symbols into a font on their own and possibly get rid of the vertical line (and maybe even add the 3/4 and 3/1 as part of the whole symbol). I imagine there is a way with a METAFONT path to tell it not to join the last two dots (which is what causes the vertical line, I think). I'd love to play with it but sigh time... hope those pointers may be of some help if you have a little more! There may also of course be a font out there with the open cut half circle (or if you're happy to use rotation \special instructions, you could rotate a properly circular intersection symbol which is definitely in one of the maths symbol fonts listed in the symbol guide...) My other thought is whether it's something which lilypond can do - in which case it'll have a font symbol for it which can be borrowed. Anyway, I shall return from dreams of hacking in METAFONT and return instead to hacking in TeX... David ___ tex-mu...@icking-music-archive.org 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
Re: [TeX-Music] special meter with PMX
Here a hack using the font lcirclew10: === 1 1 3 2 -3 2 0 0 1 1 20 0 t .\ w4i \\font\halfc=lcirclew10\ \\def\meterfracS#1#2{\ \\kern\internote\raise1.5\internote\rlap{\halfc\char10}\ \\raise6.2\internote\hbox{\halfc\char11}\kern-1.5mm\ \\raise4.2\internote\rlap{\meterfont3}\raise.2\internote\hbox{\meterfont4}}\ \\def\meterN#1{\ \\kern\internote\raise4.1\internote\hbox{\halfc\char106}\ \\kern-1.5mm\ \\raise4.2\internote\rlap{\meterfont3}\raise.2\internote\hbox{\meterfont1}}\ cd05 / m3403 cd25 / === Of course if you don't have the font lcirclew10 you'll need to get it, either from CTAN or let me know and I'll try to figure out which files I need to send. By redefining the macro \meterfracS, the half-circle + 3/4 is hardwired to replace the meter you get whenever mtrnmp (the numerator of the printed meter) is input as negative. Similarly, by redefining \meterN, the circle + 3/1 is hardwired to replace the meter you get when whenever mtrnump is 0 and mtrdenp is 1,2,3, or 4. Of course, after these redefinitions, the original use of these macros is destroyed, so you won't be able to get a normal fraction with a vertical slash through it or a single number as the meter. If you don't like the sizes or positions, or if you want to use a different musicsize besides 20, you'll just have to fiddle with redefinitions and possibly the font specification, changing the character numbers or the font magnification to get larger or smaller semicircles or circles, and adjusting positions as necessary. This is a trial-and-error process, which is exactly what I did in coming up with these in the first place, especially to get the two quarter-circle characters to line up. --Don Simons -Original Message- From: icking-music-archive.org-tex-music-boun...@mailman.nfit.au.dk [mailto:icking-music-archive.org-tex-music-boun...@mailman.nfit.au.dk] On Behalf Of Hermann Hinsch Sent: Saturday, May 30, 2009 7:33 AM To: Werner Icking Music Archive Subject: [TeX-Music] special meter with PMX A question to the TeX experts: I would like to get a special design of the printed part of a meter, as it is used in early music like this: C3/4 or O3/1, to be exact instead of C a halve circle and instead of O a circle is used. Hermann ___ tex-mu...@icking-music-archive.org 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 ___ tex-mu...@icking-music-archive.org 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