Hey guys!
Need a bit of help please. I'm trying to find an abc program that will process a large file ( 2000 tunes) and save each tune in that file as an individual file. I know this exists out there but I just cant find it. I made the mistake years ago of putting everything in ABC because it was easier at the time and now my publisher needs a different format so I need each tune as an individual file so I can process and convert it.
ABC2win also allows you to select and save tunes to a new file. I am assuming that what you need to do is to take 20-30 tunes out of your 2000 and send that one file with the required tunes only.
Hi there, I need to split my abc files so that each tune in a certain file becomes an individual file of it's own. Apparently ABCMUS does this with the make list-split option but I'm getting error messages when it tries to save. I need the abc tunes to eventually become mus files (that is, Finale files). I can get automated scripts to process everything but i need the tunes to be in single files....one tune=1abc file.
Hi, I've had a look at ABCMus and it does indeed do what you want. If you get an error message saying -
"Cannot write file %p\%f%04x.abc", your problem may relate to an entry in the definitions file
split.cfg which you should find in "C:\Program Files\ABCMus2\listcfg"; depending on your installation.
I needed to change (after having made a backup copy of course) the line
- outFile "%p\\%f%04x.abc";
to read
- outFile "c:\\temp\\%04x.abc";
in order that the program creates a new discrete file in "C:\Temp" for each tune in your source file.
Being an ex-unix person, I sill keep a Vi editor and a SED programme that run on windows.
Vi is great for editting large files
Sed is a stream editor so you can write a script to write each tune out to a new file based on the title, then run the file through it. A nice little project there for someone!!
Thanks Mike! It's amazing how something so simple could be so hard to find a solution to in this day and age online. I got the same error message the first time so I changed
outFile "c:\\temp\\%04x.abc";
to
outFile "c:\temp\%04x.abc";
That worked fine. This seems a bit too complicated for this program but do you know a way of having it save each individual tune with the tune's title instead of "temp0023, temp0024, etc"?
Oh, Random_notes.
I do have a thread going on Mudcafe and it's not really the same thing. The main question I'm asking is how to convert ".abc" to ".mus" (finale). One of my problems (dividing up the tunes for conversion) is still being discussed there while it was answered quite simply.
Thanks Geoff. I might have a look at that too though I don't know much about programming or scripting.
Hey Mike, great job! Thanks a lot, you really saved me a lot of time. I tried it out and it works perfectly. Wonder why Norbek never explained those options a bit more? Anyhow, that's one third of the work I had to do automated so it's definitely made things easier.
Finale should read ABC files...it seems like it wouldnt really be a dificult thing to do..or someone should write a plugin for Finale.
Earl-It's just as easy to convert abc's to XML and then to Finale as it is to convert midis. Converting midi's -> ABC's -> .mus (Finale) give's you a lot of errors along the way. ( I tested all options). While I havent had a single error during my tests by going the XML route.
What I want to know is what you are using to get to XML. I've tried a couple of things and Finale rejects them, though other programs that can read XML are happy with them. I'm on a Mac by the way...
I've been using Harmony Assistant. Really easy to open abc files with it and all you have to do is export as xml. Finale has no problems opening those files up afterward. There is a script option in Harmony which, in theory, let you process multiple files in one go. I havent tried this yet. Also for processing multiple single tune abc files into xml I've been told that abc2xml works well but it's hard to find online and I've yet to try that too. Can keep you posted if interested.
Yup Harmony assistant will work...going to Finale. I've used it for years. What I need more is to go from Finale to abc. I find that exporting XML from Finale and importing into Harmony and then exporting abc from Harmony to whatever (Barfly for example) drops the chord names. And XML export from Finale will not import directly to Barfly at all. I checked with Phil about that and I don't think he's likely to fix that issue...
You might want to PM me at cboody at mchsi dot com. We're pretty far off course here...
ABC program for splitting up larger files
ABC program for splitting up larger files
Hey guys!
Need a bit of help please. I'm trying to find an abc program that will process a large file ( 2000 tunes) and save each tune in that file as an individual file. I know this exists out there but I just cant find it. I made the mistake years ago of putting everything in ABC because it was easier at the time and now my publisher needs a different format so I need each tune as an individual file so I can process and convert it.
Any help would be greatly appreciated. Thanks.
# Posted on November 19th 2009 by mimicabin
Re: ABC program for splitting up larger files
If you are on a Mac then Barfly has a split option that will do exactly what you ask.
# Posted on November 19th 2009 by cboody
Re: ABC program for splitting up larger files
ABC2win also allows you to select and save tunes to a new file. I am assuming that what you need to do is to take 20-30 tunes out of your 2000 and send that one file with the required tunes only.
# Posted on November 20th 2009 by Donough
Re: ABC program for splitting up larger files
What format do you want to convert the tunes into?
Lots of programs can print the dots if that's what they want.
# Posted on November 20th 2009 by Donough
Re: ABC program for splitting up larger files
Hi there, I need to split my abc files so that each tune in a certain file becomes an individual file of it's own. Apparently ABCMUS does this with the make list-split option but I'm getting error messages when it tries to save. I need the abc tunes to eventually become mus files (that is, Finale files). I can get automated scripts to process everything but i need the tunes to be in single files....one tune=1abc file.
# Posted on November 20th 2009 by mimicabin
Re: ABC program for splitting up larger files
Hi, I've had a look at ABCMus and it does indeed do what you want. If you get an error message saying -
"Cannot write file %p\%f%04x.abc", your problem may relate to an entry in the definitions file
split.cfg which you should find in "C:\Program Files\ABCMus2\listcfg"; depending on your installation.
I needed to change (after having made a backup copy of course) the line
- outFile "%p\\%f%04x.abc";
to read
- outFile "c:\\temp\\%04x.abc";
in order that the program creates a new discrete file in "C:\Temp" for each tune in your source file.
Hope this helps
# Posted on November 20th 2009 by MikeM
Re: ABC program for splitting up larger files
convert ABC to Finale???help
http://mudcat.org/thread.cfm?threadid=125109&messages=22
The discussion is active @ Mudcat Cafe
# Posted on November 20th 2009 by Ben Steen
Re: ABC program for splitting up larger files
Being an ex-unix person, I sill keep a Vi editor and a SED programme that run on windows.
Vi is great for editting large files
Sed is a stream editor so you can write a script to write each tune out to a new file based on the title, then run the file through it. A nice little project there for someone!!
# Posted on November 21st 2009 by geoffwright
Re: ABC program for splitting up larger files
Thanks Mike! It's amazing how something so simple could be so hard to find a solution to in this day and age online. I got the same error message the first time so I changed
outFile "c:\\temp\\%04x.abc";
to
outFile "c:\temp\%04x.abc";
That worked fine. This seems a bit too complicated for this program but do you know a way of having it save each individual tune with the tune's title instead of "temp0023, temp0024, etc"?
Oh, Random_notes.
I do have a thread going on Mudcafe and it's not really the same thing. The main question I'm asking is how to convert ".abc" to ".mus" (finale). One of my problems (dividing up the tunes for conversion) is still being discussed there while it was answered quite simply.
Thanks Geoff. I might have a look at that too though I don't know much about programming or scripting.
# Posted on November 21st 2009 by mimicabin
Re: ABC program for splitting up larger files
Hi,
line in it.
I've done some experimenting and the following seems to acheive the file naming you require:-
Amend the outFile line in split.cfg to read
"outFile "c:\%T.abc";
This will choke if an individual tune has more than one title (T
Good luck
# Posted on November 22nd 2009 by MikeM
Re: ABC program for splitting up larger files
Sorry about the smiley
It should read "one title 'T:' line in it."
# Posted on November 22nd 2009 by MikeM
Re: ABC program for splitting up larger files
I wonder if the job could be done in DOS?
# Posted on November 22nd 2009 by Trevor Jennings
Re: ABC program for splitting up larger files
Finale doesn't read ABC, it's a shame really, but you can convert to MIDI and then open in Finale.
# Posted on November 22nd 2009 by Earl Cameron
Re: ABC program for splitting up larger files
Hey Mike, great job! Thanks a lot, you really saved me a lot of time. I tried it out and it works perfectly. Wonder why Norbek never explained those options a bit more? Anyhow, that's one third of the work I had to do automated so it's definitely made things easier.
Finale should read ABC files...it seems like it wouldnt really be a dificult thing to do..or someone should write a plugin for Finale.
Earl-It's just as easy to convert abc's to XML and then to Finale as it is to convert midis. Converting midi's -> ABC's -> .mus (Finale) give's you a lot of errors along the way. ( I tested all options). While I havent had a single error during my tests by going the XML route.
Thanks again Mike!!!
# Posted on November 22nd 2009 by mimicabin
Re: ABC program for splitting up larger files
oops. I actually meant converting abc's to midi's to .mus and not midi to abc, etc..
# Posted on November 23rd 2009 by mimicabin
Re: ABC program for splitting up larger files
What I want to know is what you are using to get to XML. I've tried a couple of things and Finale rejects them, though other programs that can read XML are happy with them. I'm on a Mac by the way...
# Posted on November 23rd 2009 by cboody
Re: ABC program for splitting up larger files
Hey cboody,
I've been using Harmony Assistant. Really easy to open abc files with it and all you have to do is export as xml. Finale has no problems opening those files up afterward. There is a script option in Harmony which, in theory, let you process multiple files in one go. I havent tried this yet. Also for processing multiple single tune abc files into xml I've been told that abc2xml works well but it's hard to find online and I've yet to try that too. Can keep you posted if interested.
btw, Harmony works on macs with osx 10.3 and up.
# Posted on November 23rd 2009 by mimicabin
Re: ABC program for splitting up larger files
The earlier sources are gone. But currently it is included with Sonata files;
http://urtax.ms.mff.cuni.cz/sonata/download/CD/abc2xml/
For Macs it appears to be included w/Phil Taylor's Barfly.
# Posted on November 23rd 2009 by Ben Steen
Re: ABC program for splitting up larger files
Yup Harmony assistant will work...going to Finale. I've used it for years. What I need more is to go from Finale to abc. I find that exporting XML from Finale and importing into Harmony and then exporting abc from Harmony to whatever (Barfly for example) drops the chord names. And XML export from Finale will not import directly to Barfly at all. I checked with Phil about that and I don't think he's likely to fix that issue...
You might want to PM me at cboody at mchsi dot com. We're pretty far off course here...
# Posted on November 24th 2009 by cboody