15 Jul 09 - 08:22 AM (#2680644) Subject: RE: BBC Radio 4 features abc From: Geoff the Duck Just a slight technical sidetrack. One of the biggest advantages of ABC is that it can be fairly easily looked at and the content understood following a relatively small learning curve. That said, I have just started playing with a couple of free score editing programmes, which give greater flexibility of layout than the ABC converting tools at concertina.net. The two programmes are Muse Score, which is cross-platform, and NoteEdit which is a Linux programme, although I discovered that I could run it when in Windows by installing it via Portable_Ubuntu_for_Windows. NoteEdit will EXPORT files in ABC format, but will not import ABC (this may possibly change in future versions, but perhaps not). On the other hand, both NoteEdit and Muse Score (and other commercial programmes) import and export MusicXML which, as previously noted, althouh very versatile, is NOT easy to look at and "visualise" what the music would sound like. It is however more portable between different programmes than ABC. Does anyone know of any method to convert ABC to MusicXML? Both are text based, but I cannot see any sensible way that I could convert sections of text from simple ABC to long lists of MusicXML. I could do it long-hand e.g. making an HTML table with sets of MusicXML note descriptions displayed alongside the ABC equivalent, and then copy and paste the appropriate choice into a notepad style document, but something like that would probably be more effort than visiting concertina.net and converting the ABC to a PDF of the dots, and then manually re-writing the notes into the score programme. I would do it myself, but I am not a computer programmer and haven't really had much dealings with the idea since Sinclair Basic on my ZX81 and Spectrum. I don't understand the terminology, or how modern programming is organised, so wouldn't know where to start, and couldn't ask a programmer because I do not have the technical vocabulary to understand a reply in "Geekspeak". Any thoughts folks? Quack! GtD.
-Joe Offer- |
15 Jul 09 - 08:56 AM (#2680663) Subject: RE: BBC Radio 4 features abc From: Mick Pearce (MCP) Jack - I have seen the Cage book. I will not be converting most of them to abc! On beautiful but non-standard scores, I always liked one page from Peter Maxwell Davies' Eight Songs For A Mad King (IIRC) where the score is artfully turned into something like a bird cage. (Interestingly, although many of the composers in Cage's book have written for the classical guitar - Takemitsu in particular wrote a lot of guitar music - they tended to stay nearer standard scores; extreme dynamics, unusual rhythms and note lengths, some randomness, but largely what most people would recognise as a score). Geoff - there are/were converters to music xml - abc2xml and xml2abc -but but the home page they were on no longer has them. However, you might have a look here though: Sonata - abc2xml, which is part of the Sonata project and uses these converters. This link takes you to directorues for Windows and Linux (download the exe and dll file for Windows: usage: abc2xml abcfile.abc >xmlfile.xml. (If you can't get on with that, I still have all this stuff on my machine; I have a lot of abc software, though abcm2ps is pretty much all I use regularly). There is another way to get music xml: Use abcm2ps to generate a postscript file and convert that to pdf (using GSView or similar). Then you can get Recordare's pdfToMusicPro, which will convert the pdf to XML. (I used something like this on the Yorkshire Garland tunes - starting with a pdf generated by Sibelius, I converted them to musicXML using this program, and then used a modified version of the xslt file xml2abc.xsl to convert the musicXML to abc). When I got the copy of pdfToMusicPro it was free, but it looks as if you have to pay for it now, though you can download a trial copy. (I did make a start on an abc2 parser (in Prolog) and in the early stage of testing I did generate musicXML, but I dumped that long ago. I still have the parser and a test printer that converts the parse back to abc. If I go back to it I'll probably add xml as an output). Mick |
15 Jul 09 - 09:03 AM (#2680672) Subject: RE: BBC Radio 4 features abc From: Jack Campin Maybe since Bryan's already written an ABC converter he could adapt it to output MusicXML instead of Noteworthy format? BarFly does it the other way round - it will import MusicXML but not export it. Phil's stopped developing it so the other way isn't going to happen. |
15 Jul 09 - 09:41 AM (#2680701) Subject: RE: BBC Radio 4 features abc From: Geoff the Duck Mick - thanks for the info. As I say, the computing has slipped way out of my experience (ask me about fungi and I am at home). I will investigate what is out there and if I find any of it useful, I might start a thread on that topic. It might not be soon, though. Quack! Geoff. |
15 Jul 09 - 10:20 AM (#2680733) Subject: RE: BBC Radio 4 features abc From: GUEST,Ed abc2xml for Linux is also available on this page |
15 Jul 09 - 10:27 AM (#2680743) Subject: RE: BBC Radio 4 features abc From: Geoff the Duck Thanks Ed - I had already found that one by using the clues Mick provided. There seem to be more than one "work in progress" out there including one using Java (abc4j ), but as I say, programming is not my field, so I don't understand their common idioms, or how their examples relate to reality as I know it. Quack! GtD. |
15 Jul 09 - 12:26 PM (#2680825) Subject: RE: BBC Radio 4 features abc From: Mick Pearce (MCP) I'd forgotten about abc4j - I have version 0.1 and have just downloaded the new 0.5 version. Unfortunately it still only supports the 1.6 version of abc, which in particular means that youit can't handle the w: command for lyrics synchronised with the melody. Mick |
16 Jul 09 - 04:00 AM (#2681232) Subject: RE: BBC Radio 4 features abc From: Geoff the Duck I seem to have (not deliberately) hi-jacked this thread - although it is keeping the date of the radio broadcast active - but perhaps ABC and XML deserves its own thread? Would any of you object to me copying comments on the technical issues (I would edit out irrelevant bits - i.e. discussions of ABC not related to XML, John Cage sheet music etc.) and put them onto a new appropriately titled thread (e.g. Tech:ABC and MusicXML - or your better suggestion?). I will wait until tomorrow to give time for responses - Use the PM system to not clutter the thread.. Mick - That is where your technical knowledge is invaluable. I wouldn't have a clue what is suported by different revisions of ABC. Quack! Geoff. |
16 Jul 09 - 04:34 AM (#2681240) Subject: RE: BBC Radio 4 features abc From: GUEST,Mr Red You don't need to understand either notation to use ABC - it depends on what you use it for. ABC - to audio is good enough for ears. If all you want is to hear the tune, and learn to the melody. As Louis Armstrong said about his ability to read staff notation - "not so much to get in the way of the music". And isn't it extremely infra-dig to play from the dots in a session? There are plenty of good players (see this thread) and HARMONY was written by our own 'Catter pavane |
17 Jul 09 - 04:38 AM (#2682016) Subject: RE: Tech: convert ABC to MusicXML? From: Geoff the Duck Hi Folks. Just to try avoid confusion. This thread has been split at my request from a different thread advertising a BBC Radio 4 programme From Dots to Downloads, about use of ABC notation by musicians for swapping tunes via the internet. Some of the comments may refer to discussions in the original thread. If they cause confusion, I apologise, but I thought this discussion was swamping the original thread, and also thought that it being in its own thread might bring in useful technical opinions who might not have read the earlier thread. Quack! Geoff. |
17 Jul 09 - 04:41 AM (#2682017) Subject: RE: Tech: convert ABC to MusicXML? From: DMcG Several of the music notation programs can read ABC and write MusicXML. Harmony Assistant is one that can. |
17 Jul 09 - 04:43 AM (#2682020) Subject: RE: Tech: convert ABC to MusicXML? From: Geoff the Duck I forgot to link back to the Original thread BBC Radio 4 features abc. If anyone needs their own comments moved back to the original, I am sure Joe Offer will be happy to do so. Blame me for the hassle! Sorry! Quack! GtD. |
17 Jul 09 - 05:12 AM (#2682041) Subject: RE: Tech: convert ABC to MusicXML? From: Geoff the Duck DMcG - fair comment. My problem is that most of the things I do on a computer are simply for fun. I don't actually NEED to do any of them. In this case, I could, by hand, re-type individual ABC tunes into one of the two score-setting programmes which I already have on my computer. I don't actually NEED a computer programme to do it for me, although I can appreciate that a quick automatic conversion would be useful, which is why I asked the question. A problem I have often had with commercial programmes is that they may be very clever or powerful, but I only need one small item of what they do. All the other things in their list, I can do with other programmes I already have, or are things I don't want to do in the first place. MSWord may have whistles and bells, but all I need is something which I can use to write a letter. I am sure that Harmony Assistant is a very good programme, but I can't justify spending around £50 just to convert ABC to XML when it is something I can do long-hand. Quack! GtD. |
17 Jul 09 - 05:20 AM (#2682044) Subject: RE: Tech: convert ABC to MusicXML? From: DMcG I agree Geoff. It's not the 'best' solution in the sense that there are freebies around that can be set up to do the job. I simply thought it might be worth listing it as one of the options available, albeit at a cost, for those who are less comfortable setting up several sets of software, creating BAT files or whatever. |
17 Jul 09 - 05:33 AM (#2682049) Subject: RE: Tech: convert ABC to MusicXML? From: TheSnail Missed this on the original thread. Jack Campin Maybe since Bryan's already written an ABC converter he could adapt it to output MusicXML instead of Noteworthy format? Perhaps "as well" rather than "instead". I like a challenge but I'm not sure that I can see enough use to me to motivate me. The problem I found with writing the ABC/Noteworthy converter is that ABC is a mess. Lots of different developers went off and wrote their own programmes introducing their own ideas and idiosyncracies, often in completely incompatible ways. I wrote the original version according to the 1.6 definition and it worked fine on the test data. Then I tried it out on real world data and spent the next few months rewriting it. |
17 Jul 09 - 05:19 PM (#2682475) Subject: RE: Tech: convert ABC to MusicXML? From: Tootler I normally import ABC to my notation processor (Noteworthy) by converting it to midi and then importing the midi. I use 5 Line Skink in Linux. It's a java program so platform independent and I find it works fine, though it is very fussy - your ABC syntax must be spot on, so you can sometimes spend a bit of time correcting syntax errors. Mostly I get ABC files via JC's ABC tune finder and with those I simply select and download the midi directly. I tried Note Edit and Muse Score and I wasn't keen on them, especially Muse Score. I am too used to Noteworthy so I now have Noteworthy running on Linux with Wine and it works fine. Geoff |
10 Apr 11 - 06:42 AM (#3132317) Subject: RE: Tech: convert ABC to MusicXML? From: GUEST,Grishka A good ABC-to-MusicXML converter would be a great advantage. It would allow us to send our ABCs to owners of Finale or Sibelius etc. without losing their decorations. Multiple parts (voices), lyrics, dynamics, and ordinary ornaments should be supported. These are sufficiently standardized in ABC, if only by the de-facto standard abc2pc. I would not worry about other fancy stuff. Snail/Bryan, are you still on the project, or do you consider taking it up again, so that those "months" are not wasted? |
10 Apr 11 - 06:46 AM (#3132319) Subject: RE: Tech: convert ABC to MusicXML? From: GUEST,Grishka Sorry, that should be: ... de-facto standard abcm2ps ... |
10 Apr 11 - 08:20 AM (#3132359) Subject: RE: Tech: convert ABC to MusicXML? From: The Fooles Troupe As per 1st post, I obtained Portable_Ubuntu_for_Windows. Win 7 . So the AV package freaked out entirely.... |
10 Apr 11 - 08:17 PM (#3132715) Subject: RE: Tech: convert ABC to MusicXML? From: GUEST,Jon Re standards, while agreeing with the comments regarding abcm2ps, it is perhaps worth noting here that abc 2.0 is a standard now. So things like the w: that were stuck in a draft for ages are now "official". |
11 Apr 11 - 04:12 AM (#3132860) Subject: RE: Tech: convert ABC to MusicXML? From: GUEST,Grishka The reason why I brought this thread up is that I have read the current discussion in the Yahoo group, and remembered Bryan's earlier efforts. It seems that progress is a snail (pun inevitable), and the arguments have not changed much since 2009, but from time to time new tools are being published. Thanks to all the programmers and organizers, including Jon. Jon, as for "w:", it is not really a stroke of genius; I would have preferred a syntax putting the syllable right in front of the note (like "=Should"C). But if programmers have only waited for some standard to become official, voilà. |
11 Apr 11 - 06:01 AM (#3132898) Subject: RE: Tech: convert ABC to MusicXML? From: GUEST,Jon I didn't really mean that, griska. When I started with folkinfo for example, the only standard was 1.6. There was the draft 1.7x. Lyrics and other bits were implemented by programs but handled differently. One debate we had at folkinfo was whether to use abcm2ps which seemed to be the way abc was heading or whether to use abc2ps to ensure any of our postscript output would match the output used at the well known and very well established concertina.net, feeling that we as the new site would undoubtedly be thought wrong where differences such as word alignment occurred. We opted to stick with abcm2ps and some time later, got in contact with Paul at concertina.net. He kindly switched his over to use abcm2ps so both have used the "defacto standard" for some time now. That and a general "will our abc work properly with program x" and not having an official standard to refer to, are things I think as an attempted provider of abc conversions and text files to others are things I think one would prefer to be without. |
11 Apr 11 - 07:02 AM (#3132926) Subject: RE: Tech: convert ABC to MusicXML? From: DMcG I haven't used it at all, but this site claims to do such conversion |
12 Apr 11 - 12:16 AM (#3133459) Subject: RE: Tech: convert ABC to MusicXML? From: IvanB Using the site referenced above, I tried conversions of several tunes from Jack Campin's "chalumeau.abc" with little success. Since I'd trust Jack's abc transcriptions more than most anybody's, I have to suspect the converter's at fault. Although it involves additional steps of converting an abc file into midi, opening in NWC and exporting the resulting score to nwctxt format, I've had good luck creating musicxml files with http://nwc2musicxml.appspot.com/ |
14 Jan 19 - 08:20 PM (#3971509) Subject: RE: Tech: convert ABC to MusicXML? From: Jon Freeman Just clicked on this one from links in an ancient abc/lilypond thread that had been refreshed. Anyway, to try to give some more recent information. I did have some form of very brief revisit on this subject at some point last year when I was playing with an abc converter. Possibly the best solution are the python programs abc2xml.py and xml2abc.py programs available from https://wim.vree.org/svgParse/index.html. timepart.xsl and parttime.xsl can be used to switch between the two musicxml formats when needed but I don’t think they can be used directly. This was the php routine used in the folkinfo converter
The abc converter at mandolintab.net can handle all of this (eg.should detect musicxml as input) but I think uses older/different programs and I think the musicxml import program at the time it started to be hosted there was one written by the author of EasyAbc. |
14 Jan 19 - 09:05 PM (#3971516) Subject: RE: Tech: convert ABC to MusicXML? From: Stanron Geoff the Duck wrote: Does anyone know of any method to convert ABC to MusicXML?EastABC will load an ABC file and export a musicXML file. Funnily enough I did it just this evening with the ABC file of Da Sockit Light in the Waltz Dilemma thread.I saved the file to the hard drive, opened it with EasyABC and exported it as an xml file. I then opened Musescore, loaded the xml file and saved it as a standard Musescore file. It can't have taken more than about five or ten minutes. EasyABC should be free for Windows users. |
14 Jan 19 - 09:07 PM (#3971518) Subject: RE: Tech: convert ABC to MusicXML? From: Stanron OOps just noticed. EastABC should read EasyABC. |
15 Jan 19 - 11:35 AM (#3971567) Subject: RE: Tech: convert ABC to MusicXML? From: GUEST,Grishka I use abc2xml, the tool Jon mentioned, to my full satisfaction. If my information is not outdated, all other tools currently claiming to do that conversion actually run the very same abc2xml under their hoods, though perhaps not the newest version. This includes EasyABC, MuseScore and various web services. |
15 Jan 19 - 12:50 PM (#3971578) Subject: RE: Tech: convert ABC to MusicXML? From: Stanron EasyABC definitely uses abc2xml as I had to get that and other related files into the right directory in order to make it run. Is abc2xml a command line program? I prefer to use a more user-friendly method. |
15 Jan 19 - 04:27 PM (#3971608) Subject: RE: Tech: convert ABC to MusicXML? From: GUEST,Grishka Stanron, Is abc2xml a command line program? I prefer to use a more user-friendly method.So do I, in particular when there are many "options", which I prefer as well-labeled checkboxes etc. But abc2xml has very few of these, none of which are really needed for mainstream usage. It remains the task of specifying the source and target. Which way do you prefer for that purpose? Perhaps you get someone to write a graphical interface to meet your wishes, not very difficult. I for one am happy with my tiny "batch" of command lines. |
15 Jan 19 - 04:38 PM (#3971611) Subject: RE: Tech: convert ABC to MusicXML? From: Stanron Batch commands are where the command line, terminal stuff, excels. To get one ABC file into a Musescore file it was simpler to load the file into EasyABC, export an xml file, Load that into Musescore and save it as a Musescore file. My OS is Linux Mint and navigating the file structure to do what I described above using the command line would have taken me a lot longer. |
15 Jan 19 - 04:47 PM (#3971613) Subject: RE: Tech: convert ABC to MusicXML? From: GUEST,Grishka How exactly would it work if you had your way? |
15 Jan 19 - 05:02 PM (#3971623) Subject: RE: Tech: convert ABC to MusicXML? From: Stanron I happy enough so long as I can use GUIs. |
15 Jan 19 - 05:38 PM (#3971627) Subject: RE: Tech: convert ABC to MusicXML? From: GUEST,Grishka Those who do not bother saying with sufficient accuracy what they do want, or avoid discussing it, will inevitably get what they deserve. Like the Brexit voters. |
15 Jan 19 - 05:57 PM (#3971628) Subject: RE: Tech: convert ABC to MusicXML? From: Stanron wow |
15 Jan 19 - 05:57 PM (#3971629) Subject: RE: Tech: convert ABC to MusicXML? From: GUEST,Grishka I should not say "Brexit voters" but "Brexit activists" - those who really believe in it. |
15 Jan 19 - 06:01 PM (#3971631) Subject: RE: Tech: convert ABC to MusicXML? From: Stanron Where did that come from? |
15 Jan 19 - 06:21 PM (#3971634) Subject: RE: Tech: convert ABC to MusicXML? From: GUEST,Grishka You mean who I am? A European, long-time British resident, now living in Germany. Still deeply concerned, for personal and political reasons. Quite upset that democracy becomes its own caricature, in Britain and elsewhere. Back to the topic: tell us how you imagine such a program to work. I know of one converter (for a different purpose) with a GUI: MidiZyx2Abc. Works all right, but the GUI does not suit my needs, largely operating via the system clipboard. It is a matter of taste. |
15 Jan 19 - 06:52 PM (#3971637) Subject: RE: Tech: convert ABC to MusicXML? From: Stanron I came into this thread to answer Geoff the Duck's question regarding converting ABC to MusicXML. I don't actually want anything myself. I was describing how I did it. You appear to do it directly using abc2xml and I do it using abc2xml contained in the EasyABC GUI. No doubt there may be other ways too. Cheers Stan. |
29 Nov 19 - 07:34 PM (#4021693) Subject: RE: Tech: convert ABC to MusicXML? From: GUEST,Geoff the Duck It is a long while since I did much playing with tunes in ABC format, so I did a quick web search to find out what might currently be available. Imagine my surprise when it brought me to Mudcat, and a question I asked 10 years ago. Many thanks for updated comments. Quack! GtD. |
18 May 20 - 01:46 PM (#4053355) Subject: RE: Tech: convert ABC to MusicXML? From: GUEST,raysa My problem converting abc to xml using abc2mxl.py is that resultant xml files do not recognise the line-lengths in the abc originals, so the output is not as intended - new lines in awkward places, single bars in the last line, etc. I've tried using the abc2xml -b option, which is supposed to set the default line break character to EOL instead of $, but it has no effect. On a few abc files I've tried manually adding $ to the end of each music line and that works, but I have a library of over 3,000 tunes to convert so it is not feasible to do this to them all individually. Using sed scripts to add the $ is no good because it adds the character to all the lines which are not actual music lines (Instructions, Voice numbers, etc) which break or spoil the resultant xml. How can I get the abc2xml conversion to recognise the line breaks in abc files which were written in the normal abc standard with just an "Enter" to start the new lines where intended? |
18 May 20 - 04:18 PM (#4053386) Subject: RE: Tech: convert ABC to MusicXML? From: GUEST,Grishka The "-b" option is mentioned on the web site of the programmer Wim Vree. Send a bug report to the email address mentioned there at the bottom. It may be a question of different representations of "EOL" in different operating systems. |