Re: [Tex-music] xtuplet composed of notes with different duration
Hi Andre and Don, many thanks for your help. Sorry for my stupidities when I restart typesetting notes after a longer break. Andre's solution works fine for my purpose. I will try to find out what it means in detail. Another solution at least in theory would be to make the xtuplet construct of PMX nested, however difficult this may be. Best regards, Dieter Am 10.08.2014 08:43, schrieb Don Simons: I wasn't familiar with \scale. That's a good idea. But to get it exactly right, you would only want to scale down the spacing within the triplet, not for the full bar. In PMX the baseline spacing is sqrt(8*t) \elemskip, where t is in quarter notes. Of course if there are several lines of music, this only applies to the shortest note acting at a given time. For the original example, this turns out to mean that the half note in the triplet should have 18.4% less space than a regular half note, and the eighth note in the triplet should have 18.4% less space than an ordinary eighth note. There are lots of different ways to increase or decrease spacing. Three possibilities are \scale with inline TeX, the PMX command X, or the TeX command \ast (defined in pmx.tex and used by \ast) with argument in \elemskips. Each has advantages and disadvantages. For this example, \scale has the advantage that we know its value should be 0.82, but getting it to operate only on the triplet notes would be tricky since it has to be issued outside a \notes group; also (and this is really subtle) PMX will not know about the change in scale, and therefore its accounting would be messed up a bit, affecting such things as how much extra space is added when accidentals don't fit in the available space on the affected line. The PMX command X, with a negative argument in notehead widths, would have the advantage that the accounting would be properly adjusted, but the disadvantage that it would be very difficult to calculate exactly how many notehead widths you'd need to reduce the spacing by the desired percentage. Also, X doesn't seem to work between the last note in a bar and the barline. \ast has an argument in \elemskips that you could compute exactly from the timing using the above formula, but again, PMX would be unaware of the spacing adjustment. --Don *From:*TeX-Music [mailto:tex-music-boun...@tug.org] *On Behalf Of *Andre Van Ryckeghem *Sent:* Saturday, August 09, 2014 9:39 PM *To:* Werner Icking Music Archive *Subject:* Re: [Tex-music] xtuplet composed of notes with different duration This is a solution, closer to what Dieter needs. It is done by redefintion of the quarter note to two eight notes, the slur is made by trial and error. It is possible to make a correct slur in inline tex, but i prefer to do it in pmx because it is so easy. I see also in Don's solution that it is possible to partially beam a trio, that is nice. The spacing can be adjusted by using \\\scale{}\ If the meter of the bar is changed, a trio is no more needed? Andre --- \input musixtex \input pmx --- 2 1 4 4 4 4 0 -2 1 1 20 0.03 bt ./ %w200 \\\let\qlnew\ql\ f43 f f23Dx2 f / e45 d \downtrio{-4}{1.6}0\ d25Dx2n \def\ql#1{\ibl060\qb0{#1}\tbl0\qb06\let\ql\qlnew}\ e su+1 s-0+4 / m5400 f43 f \xnum{2}{-3}3\unbkt{-4}{1}0\ f2 f4 / e45 d \xnum{2}{-3}3\unbkt{-4}{1.3}0\ d2 [ e8 d ] / \\\scale{0.9}\ f43 f f2 f4 / f45 f \downtrio{-4}{1.4}0\ f2 [ e8 d ] / \\\scale{1}\ m4400 g23.r / c25.r / = *From:*Don Simons <mailto:dsim...@roadrunner.com> *Sent:*Saturday, August 09, 2014 9:12 PM *To:*'Werner Icking Music Archive' <mailto:tex-music@tug.org> *Subject:*Re: [Tex-music] xtuplet composed of notes with different duration Here's a slightly easier way with hardly any inline TeX, if you're not worried about the horizontal spacing being exactly right: === 2 2 5 4 4 4 0 0 1 1 20 0 tt .\ w3i f44 f \xnum{2}{-3}3\unbkt{-4}{1}0\ f2 f4 / e45 d \xnum{2}{-3}3\unbkt{-4}{1.3}0\ d2 [ e8 d ] / m4400 g24.r / c25.r / === --Don Simons *From:*TeX-Music [mailto:tex-music-boun...@tug.org] *On Behalf Of *Dieter *Sent:* Friday, August 08, 2014 12:59 AM *To:* Werner Icking Music Archive *Subject:* [Tex-music] xtuplet composed of notes with different duration I am trying to typeset the upper triplet construct with PMX. The lower one works fine, using the "D"-symbol. Does anybody have a solution? Thanks and regards! Dieter --- TeX-music@tug.org <mailto: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 --- TeX-music@tug.org mailing list If you want
Re: [Tex-music] xtuplet composed of notes with different duration
I dont understand why you added the \inputs. I get exactly the same result without them; PMX automatically inserts those same two commands. Heres a fine-tuned version of an example input file. The horizontal spacing of the notes will not come out exactly right without some tweaks. The two eighths in the triplet should be closer together than ordinary eighths. And I needed to manually adjust the bracket and number positions. Of course youd have to tailor the tweaks to your particular situation. Its unfortunate that we have to do so much work for this. If you had 100 occurrences of this pattern with different notes in each, it would be really tedious. If this were a more common situation Id be willing to work it into PMX. And BTW in trying out different approaches to this example I noticed that f24Dx6 fD e f r4 doesnt work as Id like to see, in that the last two notes are not beamed together. Maybe I will look into fixing that. --Don Simons BEWARE OF LINE FOLDS 2 2 4 4 4 4 0 0 1 1 20 0 tt .\ w3i \\def\edfore{\let\qlt\ql\def\ql##1{\ibl1{##1}{-1}\qb17\loffset1{\tbl1\qb16}\ ast{-1}\let\ql\qlt}}\ f44 f f2Dx3 f | g2.r / e85 e d4 \xnum{1.8}{-3}3\unbkt{-4}{1.3}0\ d2Dx3n \edfore\ e | c2.r / = From: TeX-Music [mailto:tex-music-boun...@tug.org] On Behalf Of Dieter Sent: Saturday, August 09, 2014 6:57 AM To: Werner Icking Music Archive Subject: Re: [Tex-music] xtuplet composed of notes with different duration Thanks! Stupid me! I experienced this problem before. Regards Dieter Am 09.08.2014 11:26, schrieb Andre Van Ryckeghem: i added the dash lines and the forrtl: severe (64): input conversion error, unit -5, file Internal Formatted Read is no more there. Andre == --- \input musixtex \input pmx --- 2 1 3 4 3 4 0 -2 1 1 20 0.03 bt ./ w150 \downtrio{-4}{1.6}0\ f23Dx2n f su+1 s-0+4 r4 / \\\let\qlnew\ql\def\ql#1{\ibl060\qb07\tbl0\qb0{#1}}\ f2Dx2 f r4 / === From: Dieter <mailto:d.gloet...@web.de> Sent: Saturday, August 09, 2014 11:00 AM To: Werner Icking Music Archive <mailto:tex-music@tug.org> Subject: Re: [Tex-music] xtuplet composed of notes with different duration Hi Andre, is this a running example? I added two lines to the beginning of your example: \input musixtex \input pmx When I am trying to run it on a WIndows PC, I get the following error message from PMX: Starting first PMX pass forrtl: severe (64): input conversion error, unit -5, file Internal Formatted Read I cannot see anything wrong with the file. My command file runpmx works perfectly with any other pmx-file. May be this is a case for Don. Am 08.08.2014 11:50, schrieb Andre Van Ryckeghem: I did not found an elegant solution === 2 1 3 4 3 4 0 -2 1 1 20 .03 bt ./ w150 \downtrio{-4}{1.6}0\ f23Dx2n f su+1 s-0+4 r4 / \\\let\qlnew\ql\def\ql#1{\ibl060\qb07\tbl0\qb0{#1}}\ f2Dx2 f r4 / Andre From: Dieter <mailto:d.gloet...@web.de> Sent: Friday, August 08, 2014 9:58 AM To: Werner Icking Music Archive <mailto:tex-music@tug.org> Subject: [Tex-music] xtuplet composed of notes with different duration I am trying to typeset the upper triplet construct with PMX. The lower one works fine, using the "D"-symbol. Does anybody have a solution? Thanks and regards! Dieter _ --- TeX-music@tug.org <mailto: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 --- TeX-music@tug.org <mailto: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 -- Dr. Dieter Glötzel Im Rosengarten 27 64367 Mühltal Tel.: 06151 / 360 82 72 _ --- TeX-music@tug.org <mailto: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 --- TeX-music@tug.org <mailto: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 -- Dr. Dieter Glötzel Im Rosengarten 27 64367 Mühltal Tel.: 06151 / 360 82 72 From: TeX-Music [mailto:tex-music-boun...@tug.org] On Behalf Of Dieter Sent: Saturday, August 09, 2014 6:57 AM To: Werner Icking Music Archive Subject: Re: [Tex-music] xtuplet composed of notes with different duration Thanks! Stupid me! I experienced this problem before. Regards Dieter Am 09.08.2014 11:26, schrieb Andre Van Ryckeghem: i added the dash
Re: [Tex-music] xtuplet composed of notes with different duration
Thanks! Stupid me! I experienced this problem before. Regards Dieter Am 09.08.2014 11:26, schrieb Andre Van Ryckeghem: i added the dash lines and the /forrtl: severe (64): input conversion error, unit -5, file Internal Formatted Read/ is no more there. Andre == --- \input musixtex \input pmx --- 2 1 3 4 3 4 0 -2 1 1 20 0.03 bt ./ w150 \downtrio{-4}{1.6}0\ f23Dx2n f su+1 s-0+4 r4 / \\\let\qlnew\ql\def\ql#1{\ibl060\qb07\tbl0\qb0{#1}}\ f2Dx2 f r4 / === *From:* Dieter <mailto:d.gloet...@web.de> *Sent:* Saturday, August 09, 2014 11:00 AM *To:* Werner Icking Music Archive <mailto:tex-music@tug.org> *Subject:* Re: [Tex-music] xtuplet composed of notes with different duration Hi Andre, is this a running example? I added two lines to the beginning of your example: /\input musixtex// //\input pmx/ When I am trying to run it on a WIndows PC, I get the following error message from PMX: /Starting first PMX pass// // //forrtl: severe (64): input conversion error, unit -5, file Internal Formatted Read/ I cannot see anything wrong with the file. My command file runpmx works perfectly with any other pmx-file. May be this is a case for Don. Am 08.08.2014 11:50, schrieb Andre Van Ryckeghem: I did not found an elegant solution === 2 1 3 4 3 4 0 -2 1 1 20 .03 bt ./ w150 \downtrio{-4}{1.6}0\ f23Dx2n f su+1 s-0+4 r4 / \\\let\qlnew\ql\def\ql#1{\ibl060\qb07\tbl0\qb0{#1}}\ f2Dx2 f r4 / Andre *From:* Dieter <mailto:d.gloet...@web.de> *Sent:* Friday, August 08, 2014 9:58 AM *To:* Werner Icking Music Archive <mailto:tex-music@tug.org> *Subject:* [Tex-music] xtuplet composed of notes with different duration I am trying to typeset the upper triplet construct with PMX. The lower one works fine, using the "D"-symbol. Does anybody have a solution? Thanks and regards! Dieter --- 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 --- TeX-music@tug.org mailing list If you want to unsubscribe or look at the archives, go tohttp://tug.org/mailman/listinfo/tex-music -- Dr. Dieter Glötzel Im Rosengarten 27 64367 Mühltal Tel.: 06151 / 360 82 72 --- 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 --- 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 -- Dr. Dieter Glötzel Im Rosengarten 27 64367 Mühltal Tel.: 06151 / 360 82 72 --- 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
Re: [Tex-music] xtuplet composed of notes with different duration
On Fri, 8 Aug 2014, Dieter wrote: I am not aware of the tuplet package. This package is to typesett triplets like | 3 | as shown in your "ggaciigi.jpg" Bye Jean-Pierre Coulon --- 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
Re: [Tex-music] xtuplet composed of notes with different duration
Hi Jean-Pierre, many thanks for your rapid reply. I am using plain PMX. the excerpt is: %Bars 59-61 a2f+ g4 g | f f f2x3D f | e2dn r4 | / f2 e4 e | b b b2x3D b | c2d r4 | / b2 b4 b | f f f2x3Df | g2d r8 g1 g | / d2 f4 e | e d d2x3D e | c2d r8 b1 c | / which then looks like: But what I want is, to break the last quarter note in the soprano triplet into two eigth notes. I am not aware of the tuplet package. Bye Dieter Gloetzel Am 08.08.2014 12:11, schrieb Jean-Pierre Coulon: Are you using the tuplet package or are you redeveloping what it does? See my example. Bye, Jean-Pierre Coulon --- TeX-music@tug.org mailing list If you want to unsubscribe or look at the archives, go tohttp://tug.org/mailman/listinfo/tex-music -- Dr. Dieter Glötzel Im Rosengarten 27 64367 Mühltal Tel.: 06151 / 360 82 72 --- 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
Re: [Tex-music] xtuplet composed of notes with different duration
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 08.08.2014 um 09:58 schrieb Dieter: > I am trying to typeset the upper triplet construct with PMX. The lower one > works fine, using the "D"-symbol. Does anybody have a solution? Hello Dieter, this remembers me of an old score with partially beamed Triplets I wanted to reproduce some years ago. It is a score for choir where the beams indicate melismas. This could be solved with inline TeX. I did not analyze the code, so I don't know if it is useful for your case. Extract from my M-Tx file: % Bar 0-2 % inline TeX trick to get partially beamed triplets as proposed by Olivier Vogel \let\oldcu\cu\ibu4{4}{-2}\def\cu#1{\qb4{#1}}\ b4ax3 \def\cu#1{\tbu4\qb4{#1}}\ g \let\cu\oldcu\ b | e4d d8 c g | b2 \let\oldcu\cu\ibu4{4}{-2}\def\cu#1{\qb4{#1}}\ c4ax3 \def\cu#1{\tbu4\qb4{#1}}\ bs \let\cu\oldcu\ c | \let\oldcl\cl\ibl3{4}{-2}\def\cl#1{\qb3{#1}}\beginmel\ b4ax3n+1 \def\cl#1{\tbl3\qb3{#1}}\endmel\ g \let\cl\oldcl\ b | e4d d8 c g | b2 a4x3Dn+1 a | L: {vers} \let\oldcu\cu\ibu2{9}{-2}\def\cu#1{\qb2{#1}}\ b4ax3nf-1 \def\cu#1{\tbu2\qb2{#1}}\ g \let\cu\oldcu\ b | e4d d8 c g | b2 f4x3D XS-1 f | \let\oldcl\cl\ibl1{9}{-2}\def\cl#1{\qb1{#1}}\ b4ax3nf \def\cl#1{\tbl1\qb1{#1}}\ g \let\cl\oldcl\ b | e4d d8 c g | b2 f4x3Dn-2s+2e | % I try to attach the resulting PDF file. Bodo -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAlPknc4ACgkQnMz9fgzDSqc7GQCfY6RscohxA/eDwCimHI4z2EeT mI8An1HYHow59O3UPoMEWho25r8qxtJ6 =S8p3 -END PGP SIGNATURE- berggeboren.pdf Description: Adobe PDF document --- 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