Melodeon.net Forums
Discussions => Tunes => ABC => Topic started by: dave t on September 03, 2016, 10:02:26 AM
-
I'm trying to put our local session's tune book into abc format. We have a lot of sets in the current book as well as individual tunes. Can anyone give me some guidance as to the best way to group sets of tunes?
I guess that there are two approaches:
Keep all tunes separate, i.e.have a unique reference number (X) at the start of each individual tune and then group them together when I create a pdf.
Group the set under a single reference number.
If anyone has any experience about this and can give me some pros and cons of each approach, I would be grateful.
Thanks, Dave
-
I've already posted a specific question about this, but this is a request for some general advice on the creation of a brand new tune book so that I can avoid newbie mistakes. I'm particular interested in useful header formatting commands but any thoughts about different approaches would be appreciated.
Thanks, Dave
-
[[ADMIN]]
The answers to both these questions will be covering the same ground. Topics merged to keep discussions together and avoid unnecessary repetition.
-
You will often want to reorganize the book, and that's much easier if you keep the tunes separate and indicate the groups by titles within the file.
-
I've already posted a specific question about this, but this is a request for some general advice on the creation of a brand new tune book so that I can avoid newbie mistakes. I'm particular interested in useful header formatting commands but any thoughts about different approaches would be appreciated.
Thanks, Dave
I maintain a dance-band tunebook containing about 250 tunes mostly grouped into sets. I convert to pdf in a two-stage process using abc2mps and then ghostscript, both from the Windows command line. Attached are the first few pages showing formatting commands including page breaks and page footers - might give you some ideas. (Comments and suggestions for improvements welcome.)
-
You will often want to reorganize the book, and that's much easier if you keep the tunes separate and indicate the groups by titles within the file.
Sorry, I'm not sure what you mean by that. Can you elaborate please?
-
One way to do medleys is to use the "part" construct and put all the tunes in one medley together under one header. Typographically neat and portable but you then have to do extra editing if you want to move a tune from one medley to another. And even if you don't want to do that, anybody who picks up your ABC file to reuse it certainly will.
-
Got it. I'll give that a try.
I've also seen sets that use
%%sep
Is that common in your experience?
-
I was suggesting that you don't give it a try because it makes for more work in the future - I've done it in the past but try to avoid it now.
I don't know what %%sep means. It's an abcm2ps-ism and should be harmless to other software if you use it.
-
Sorry, I read it that it wasn't too hard to extract tunes that were separated using "part". But I see your point that you want to make things as easy as possible for anyone else who edits the file.
-
I don't know what %%sep means. It's an abcm2ps-ism and should be harmless to other software if you use it.
%%sep draws a horizontal separator, i.e. a line (http://abcnotation.com/wiki/abc:standard:v2.1#separation_directives) (ABC 2.1 standard)
-
Attached are the first few pages showing formatting commands including page breaks and page footers - might give you some ideas.
Many thanks Stiamh, the PDF output looks very speccy. I'll save your formatting commands and try them out on my next tunebook.
BTW whenever I paste a .txt file into EasyABC blank lines get inserted, then I have to laboriously delete each blank line before the data is read as abc format. What should I do to avoid this?
thanks, Ian
-
I don't use Windows, but maybe if you change the file extension from .abc.txt to just .abc the blank line problem might go away.
An issue which is more about content than technical stuff: try to get a complete tune set on one page, or at least one two-page opening; you don't want page turns. (The Montreal example gets that right with one abcm2ps version I have access to, fails with the other one). This may mean using some ingenuity to abbreviate tunes so they go on three rather than four lines, or two rather than three, and reducing vertical space. Get used to seeing where you can introduce a repeat construct and eliminate a chunk of repeated notation, or save space by notating anacruses to match the tune's phrasing. The less vertical space your tunes need, the easier it is to fit them in a book.
-
The double line problem is usually related to the ways different operating systems do line endings.
In Windows it's CR LF (carriage return, line feed in mechanical printer terms)
On UNIX like systems, which includes Mac OSX, it's LF (line feed) only.
Programs vary in how they cope with text done in a different way from their native OS, and double line endings are one symptom. I'd guess Smiley is running EasyABC on a Mac, and importing an ABC file created on a Windows system, and it's treating CR as a newline and then LF as another newline.
There are utilities for converting between the two conventions, but they're not often needed as most text editors handle both forms sensibly. (not Windows notepad, though...)
As for fitting tunes on a page, I do this by a mixture of scaling and reducing the staff separation if something won't quite fit, with these codes in the ABC. It works with amcm2ps, haven't checked which ABC standard (if any) it complies with:
% reduce size slightly
%%systaffsep 1.1cm
%%staffsep 1.5cm
%%scale 0.7
%restore default sizing
%%systaffsep 1.2cm
%%staffsep 1.62cm
%%scale 0.75
As for original question...
I keep lots of tunes as one tune per ABC file, and have a little home made shell script called tunebook, which takes a text file containing of a list of ABC file names and processes them with abcm2ps. I have two files called shrink1.abc and shrink0.abc which contain the above codes, and others like head.abc and pagebreak.abc - their names are inserted into the file list where needed. Works well enough for me, and obviously I can add other little utility ABC snippets to switch fonts, add headers or whatever when needed.