>-----Original Message----- >From: TeX-Music [mailto:[email protected]] On Behalf Of Dirk Laurie >Sent: Tuesday, January 28, 2014 11:34 PM >To: Werner Icking Music Archive >Subject: Re: [Tex-music] LilyPond blog invites you to an engraving challenge! :-) > >2014-01-28 Don Simons <[email protected]>: > >> If you dig into the details of the challenge, you'll find a page-long score >> with lots of these. And in many places you need another voice on the same >> staff. So that would be a problem with my solution or either of Luigi's; >> they use up the only two voices allowed. Plus, it's really tedious to figure >> out the various parameters. If PMX were going to meet this challenge, I >> think we'd have to follow another path. If we admit some inline TeX, can >> anyone define a TeX macro that makes one of these 12-note groups in a >> generic way? It would be really hard, keeping track of the slope and >> starting heights of the various parts. I've thought about it some but can't >> really get started. > >All the required PMX is in place if you cheat. > >~~~{.mtx} >Style: Solo >Meter: 12/4 > >{ ( c+u a bu e- ) ( bf+u e- } { a c- ) ( gs+ e gn cu ) } >~~~ > >~~~{.pmx} >%%%%%%%%%%%%%%%%% >% >% example1.tex >% >%%%%%%%%%%%%%%%% >\def\mtxversion{0.60d} >\def\mtxdate{<11 October 2008>} >... >\vfill\eject\endmuflex >\bye >} > >All that is still required is someone cleverer than me to write >example1.tex which redefines \isu, \isd, \tslur, \ts >(have I missed any?) to draw beams instead of slurs.
I like the out-of-the-box thinking. The approach does indeed define some aspects of the overlapping directly within M-Tx/PMX, using a single voice. But redefining slur commands to give beams would have some hard parts, namely figuring out what starting heights and slopes for each beam make them all line up. Some of that sort of logic is already present in PMX's "single-slope beam groups", which use ]-[ between groups. Internally, later groups are defined as separate beams using the same slope as the first (calculated based on all the notes) and adjusted starting heights. The best I've come up with so far relying on this is ============================ 1 1 3 4 3 4 0 0 0 1 20 0 t .\ w2i [um1+0 c14 d e f ]-[ g a b c ]-[ d e f g ] // [um1+2 c14 d e f g a ]-[ b c d e f g ] / ============================ But this has shortcomings; it still uses up the two voices per staff; it still doesn't precisely line up the later segments (due to granularity in allowable starting heights and slopes), and it doesn't play well when you try to tweak the slope. The latter could be fixed with more FORTRAN programming, but the first two are much more problematic. --Don Simons ------------------------------- [email protected] mailing list If you want to unsubscribe or look at the archives, go to http://tug.org/mailman/listinfo/tex-music

