Re: [abcusers] Re: PERL ABC script?

2004-05-28 Thread Phil Taylor
On 28 May 2004, at 02:28, Dafydd Monks wrote:
Take a look at the site - I think you'll agree that the tunes have 
come out
ok. (computer is an i686 running linux 2.2 abc2midi and that script on
concertina.net that generates images)

Nice site;  great tunes.
Here are some comments after a cursory look.
It would be nice if the tunes were listed in alphabetical order, or if 
there
were a search facility.  Also, for those of us who collect abcs it 
would be
nice to have the option of downloading all the tunes in one big file.

abc2win has a few peculiarities, so tunes submitted using this program
often need a little fixing to work correctly.  Notoriously it plays
abc at the wrong speed, so tunes which have a Q: field tend to play
very slowly on other programs.  Listen to Dwy Bleth o'i Gwallt 
Melyngoch
for example.  It says it's a jig, but plays like a funeral march.  The
solution is just to delete the Q: field and leave the tempo up to the
playing program.

Keep up the good work!
Phil Taylor
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html


Re: [abcusers] Re: PERL ABC script?

2004-05-28 Thread Jack Campin
[top-posting fixed and unnecessary quotation removed AGAIN]
 I would *not* be happy to have any of my transcriptions auto-munged
 by abc2midi in its out-of-the-box released form, and people who wrote
 tunes exploiting its interpretation of rhythmic constructs would
 not be happy with how more standard ABC software translated them
 I'd be quite happy to put a tune through abc2midi - if it was way
 out I'd complain, but otherwise I'd be cool about the idea.

The problem is with broken-rhythm constructs.  The ABC standard says
these have a 3:1 ratio, but the implementor of abc2midi made it 2:1,
that being the norm for hornpipes.  The result is that a strathspey,
pipe march or dotted jig in ABC run through abc2midi sounds rather
silly, and if you change the default (there are various ways of doing
this) a hornpipe will sound exaggerated.

Some sites have fixed abc2midi's defaults to bring it ine with the
standard, others haven't.  The standard way probably accounts for
many more uses of the construct by now, but either choice guarantees
you'll get some tunes processed into something the transcriber didn't
want.


 Remember there is a very large site that uses abc2midi - it's called
 thesession.org and it works very well.

I just had a look, but couldn't see any way to extract a MIDI file from
it.  And extracting ABC wasn't much fun either.  Using a text editor
on the HTML source, I get this from their site after removing HTML tags:

X: 1
T: Gan Ainm
M: 4/4
L: 1/8
R: strathspey
K: Emin
ED^em|:B,/2E3/2E3/2F/2 G3/2E/2G/2B3/2|
DA3/2G/2F3/2E/2 D3/2E/2F/2D3/2|^emB,/2E3/2E3/2F/2 G3/2E/2G/2B3/2|
e3/2d/2B/2d3/2Gd/2e3/2gf|^eme3/2f/2e3/2d/2 B3/2c/2d/2B3/2|
DA3/2G/2F3/2E/2 D3/2E/2F/2D3/2|^emB,/2E3/2E3/2F/2 G3/2E/2G/2B3/2[1|
DA3/2F/2D/2F3/2^emE2ED:|
[2DA3/2F/2D/2F3/2^emE2F/2A3/2
|:B/2E3/2E3/2D/2 B,/2E3/2E3/2D/2|B,/2E3/2D/2F3/2 G3/2E/2G/2B3/2|
DA3/2F/2E3/2D/2 B,/2D3/2D3/2E/2|
F3/2D/2F3/2G/2 A3/2F/2G/2A3/2|^emB/2E3/2E3/2D/2 B,/2E3/2E3/2D/2|
B,/2E3/2D/2F3/2 G3/2E/2G/2A3/2|B/2e3/2d/2e/2f e3/2d/2BG|
[1DA3/2F/2D/2F3/2^emE2F/2A3/2:|
[2DA3/2F/2D/2F3/2^emE2|]

Using broken-rhythm constructs, sorting out the anacruses to avoid
needless repeats, and lining things up for readability, I get this:

X:1
T:Gan Ainm
M:4/4
L:1/8
K:E Minor
ED |EmB,EEF GE`GB|DAG`FE DEFD|EmB,EEF   GE`GB|   edBd G degf |
Emef`ed Bc`dB|DAG`FE DEFD|EmB,EEF   GE`GB|DAFDF EmE2   :|
FA|EmBE`ED B,EED|   B,EDF GEGB|D AF`ED   B,DDE|   FDFG AFGA|
EmBE`ED B,EED|   B,EDF GEGA|Be d/e/f ed`BG |DAFDF EmE2   :|

The two versions should sound exactly the same.  With abc2midi as released,
they don't.  If you can see a way to get a MIDI out of that site, can you put
my version in to check what it does?

(I can't identify it either, though it sounds a bit like both The Highlands of
Scotland, a tune in Kerr's collection from the 1880s, and The Banks of Spey,
a tune by William Marshall).


-
Jack Campin: 11 Third Street, Newtongrange, Midlothian EH22 4PU; 0131 6604760
http://www.purr.demon.co.uk/jack * food intolerance data  recipes,
Mac logic fonts, Scots traditional music files, and my CD-ROM Embro, Embro.
-- off-list mail to j-c rather than abc at this site, please --


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


Re: [abcusers] Re: PERL ABC script?

2004-05-28 Thread Dafydd Monks
Thanks for the compliment:-)

I'll try adjusting those files. Search facility is under construction, as is
an alphabetic listing.

I'll build a large abc file for people to download - I guess downloading 126
individual files is a bit tedious!

Cheers,

Dafydd L.
- Original Message -
From: Phil Taylor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 28, 2004 10:30 AM
Subject: Re: [abcusers] Re: PERL ABC script?



 On 28 May 2004, at 02:28, Dafydd Monks wrote:
 
  Take a look at the site - I think you'll agree that the tunes have
  come out
  ok. (computer is an i686 running linux 2.2 abc2midi and that script on
  concertina.net that generates images)
 

 Nice site;  great tunes.

 Here are some comments after a cursory look.

 It would be nice if the tunes were listed in alphabetical order, or if
 there
 were a search facility.  Also, for those of us who collect abcs it
 would be
 nice to have the option of downloading all the tunes in one big file.

 abc2win has a few peculiarities, so tunes submitted using this program
 often need a little fixing to work correctly.  Notoriously it plays
 abc at the wrong speed, so tunes which have a Q: field tend to play
 very slowly on other programs.  Listen to Dwy Bleth o'i Gwallt
 Melyngoch
 for example.  It says it's a jig, but plays like a funeral march.  The
 solution is just to delete the Q: field and leave the tempo up to the
 playing program.

 Keep up the good work!

 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


Re: [abcusers] Re: PERL ABC script?

2004-05-27 Thread Dafydd Monks
The reason I don't ask people to send tnues in various binarys is: ABC is as
close to a universal computer notation format as we have. It's quite
complicated to create a binary file, and upload it - paste an ABC tune in
the tune field on the form and that's all they have to worry about.

I'd be quite happy to put a tune through abc2midi - if it was way out I'd
complain, but otherwise I'd be cool about the idea. Remember there is a very
large site that uses abc2midi - it's called thesession.org and it works very
well.

Most of the tunes that people have sent me have a comment line saying they
were created by abc2win, and I have not yet come across any special rythem
constructs.

Take a look at the site - I think you'll agree that the tunes have come out
ok. (computer is an i686 running linux 2.2 abc2midi and that script on
concertina.net that generates images)

See 'ya.

Dafydd.
- Original Message -
From: Jack Campin [EMAIL PROTECTED]
To: ABC Users [EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 6:41 PM
Subject: [abcusers] Re: PERL ABC script?


 For some reason this got sent to Dafydd instead of to the list, so here
 it is again:

 [unedited top-posting fixed]
 
  Is there a reliable PERL script out there that can convert ABC to
  images/midi?
  most sites which provide midi or postscript from abc will be using
  a simple script which invokes abc2midi or abcm2ps.
  Which is a bit of a problem, as I don't have command-line access to
  my web host. My problem is: I have a site where people can submit
  tunes in ABC.
 
 Why not ask them to submit in other formats too?  Chances are they'll
 all have their own favourite tools, and if you get them to do it you'll
 know that the conversion tool used was appropriate for the ABC they
 wrote.  (I would *not* be happy to have any of my transcriptions auto-
 munged by abc2midi in its out-of-the-box released form, and people who
 wrote tunes exploiting its interpretation of rhythmic constructs would
 not be happy with how more standard ABC software translated them).
 
 For the Welsh music you're doing, are you happy with what ABC gives
 you, or do you need more?  How about special notations for the triple
 harp?


 --
---
 Jack Campin: 11 Third Street, Newtongrange, Midlothian EH22 4PU; 0131
6604760
 http://www.purr.demon.co.uk/jack * food intolerance data 
recipes,
 Mac logic fonts, Scots traditional music files, and my CD-ROM Embro,
Embro.
 -- off-list mail to j-c rather than abc at this site, please
--


 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