Re: [Tex-music] xtuplet composed of notes with different duration

2014-08-11 Thread Dieter

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{}\ 
file:///%5C%5C%5Cscale%7b%7d%5C


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\ file:///%5C%5C%5Clet%5Cqlnew%5Cql%5C

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}\ file:///%5C%5C%5Cscale%7b0.9%7d%5C

f43 f f2 f4 /

f45 f \downtrio{-4}{1.4}0\ f2 [ e8 d ] /

\\\scale{1}\ file:///%5C%5C%5Cscale%7b1%7d%5C

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] [PMX] Expected a number here for the pause

2014-08-11 Thread Jill-Jênn Vie
Hi guys, hisashiburi¹!

Well, I was horrified by this error:
“Expected a number here for the pause” on It56ipipi in a 2 1 3 4 3 4 0 4 file.

Hopefully, in pmx270.pdf, I found:
“The number of arguments following suboption i […] must in fact equal the 
number of *instruments*. Before version 2.7, it was the number of staves 
(despite the incorrect description in the manual!) These numbers may differ and 
this creates a backward incompatibility.”

But, right after:
“Hoping this won’t cause too much distress, I’ve enhanced the real-time error 
messages.”

Maybe you should replace “Expected a number here for the pause” with “Well, 
since PMX 2.7, only one mention of the instrument is needed. Have a nice day.”, 
etc.

Best,

¹ http://jisho.org/words?jap=hisashiburi

-- 
Jill-Jênn


---
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] [PMX] Expected a number here for the pause

2014-08-11 Thread Don Simons
I'm horrified than anyone is horrified by anything that happens in PMX, no
matter how horrible.

But I'm gratified at any evidence that PMX is still being used.

Now as to the error message, try putting yourself in PMX's position. After
I, you got two consecutive, valid subcommands: t56 and ipi. Each one
came with the correct number and form of arguments. Now you're ready for
whatever comes next. It's p, not a blank, so it's another subcommand for
I. And what does p mean in that context? Insert a pause. OK, so now
you're expecting an argument that is a number. But no, some clown gave you
i.  What are you going to say? Surely not anything about the number or
names of instruments. 

PMX is pretty smart, but it's not a mind reader.

--Don Simons

-Original Message-
From: TeX-Music [mailto:tex-music-boun...@tug.org] On Behalf Of Jill-Jênn
Vie
Sent: Sunday, August 10, 2014 4:31 PM
To: tex-music@tug.org
Subject: [Tex-music] [PMX] Expected a number here for the pause

Hi guys, hisashiburi¹!

Well, I was horrified by this error:
“Expected a number here for the pause” on It56ipipi in a 2 1 3 4 3 4 0 4
file.

Hopefully, in pmx270.pdf, I found:
“The number of arguments following suboption i […] must in fact equal the
number of *instruments*. Before version 2.7, it was the number of staves
(despite the incorrect description in the manual!) These numbers may differ
and this creates a backward incompatibility.”

But, right after:
“Hoping this won’t cause too much distress, I’ve enhanced the real-time
error messages.”

Maybe you should replace “Expected a number here for the pause” with “Well,
since PMX 2.7, only one mention of the instrument is needed. Have a nice
day.”, etc.

Best,

¹ http://jisho.org/words?jap=hisashiburi

-- 
Jill-Jênn


---
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