Well you obviously have to count the macro definitions too.
If I'm allowed free use of a home grown macro pass I can easily get it down
to a single character and with a little imagination can get it down to zero
characters (in effect it becomes the default tune and is generated *unless*
there is some other input) so you ought at least to count the characters in
the macro definitions.  Should you also count the characters in the
macro-processing code?
Laurie

----- Original Message -----
From: Phil Taylor <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 9:35 PM
Subject: Re: [abcusers] A Christmas Challenge


David Barnert wrote:

>I love it. This was a great challenge. Thanks.
>
<snip>

>Here it is:
>
>X:1
>T:Twelve Days of Christmas
>M:none
>P:AEBFECGFECGGFECKECHKEBIHKECHIHKECHHIHKECHHHIHKEDIHHHIHKECJIHHHIHKE
>K:G
>P:A % First day
>DD|D2GGG2FG|ABcAB3c|
>P:B % 2nd, 7th days
>DD|DDGGG2FG|ABcAB4|
>P:C % days 3, 4, 5, 6, 8, 9, 10, 12
>DD|D2GGG2FG|ABcAB4|
>P:D % 11th day
>(3DDD|DDGGG2FG|ABcAB2>>d2|
>P:E % Partridge in a pear tree
>d2ec BGA2|G6|
>P:F % 2 Turtle doves and a
>d2ABc2Bc|
>P:G % Calling birds, French hens
>d2ABc2|
>P:H % 6, 8, 9, 10 Xers Xing (or X a-Y-ing)
>d2AB cA|
>P:I % Seven and (e)-leven Xers Xing (or X a-Y-ing)
>dd AB cA|
>P:J % 12 Lords a-leaping, e-(leven)
>d2AB cA/d/|
>P:K % 5 Gold rings, ... and a
>d4e2^c2|d8|dcBAG2|c2E2G2|AGFED2Bc|

Excellent.  Better than mine, since I didn't bother dealing with the
changing syllables in the days above six.

However, here is the definitive shortest version (if you don't count
the macro definitions:-)

m: .A = AA | A2 dd d2 cd | efge f3 ||
m: .B = g |a2 bg fd e2 | d3 ||
m: C = a2 | ef g2
m: D = f ||
m: E = a2 b^g a4 || agfe d2 g2 | B2 d2 edcB A2 |
m: 2C = CC
m: 3C = CCC
m: 4C = CCCC
m: G = .A.B .ACD.B .A2CD.B .A3CD.B .AED.B .ACED.B .A2CED.B .A3CED.B
.A4CED.B .A4CCED.B .A2C4CED.B .AC2C4CED.B

(beware of the line wrap on that last line.  I just discovered a bug which
prevents the use of the continuation character \ in macro definitions, so
it has to be written all on one line.)

X:2
T:12 Days of Xmas
M:none
K:D
G


Thats it!  The dot before the A and B part definitions is necessary because
the tune contains A and B notes, so the target string needs to be something
other than a single letter.

Phil Taylor


To subscribe/unsubscribe, point your browser to:
http://www.tullochgorm.com/lists.html


To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html

Reply via email to