Tunes galore

March 5th, 2010

I’ve just released the March 2010 edition of the tune search – it’s reached 56,000 tunes now, clean and shiny and just itching to be played.

Chris

tunepal.org

March 2nd, 2010

I’ve mostly used this blog for posting updates about the abcnotation.com website. However, I just wanted to let people know about tunepal.org, a remarkable new abc development from Bryan Duggan.

It’s a query-by-playing search engine – in other words, you play a tune on an instrument of your choice and it will transcribe the sounds into abc and then try to match that with tunes found online.

There is also an iPhone version just appearing and it has a facebook page for fans (while you’re there why not pop over to the abcnotation page and say hi).

Marvellous!

Chris

Linux & multi-platform software

February 12th, 2010

Minor improvement to the site …

Thanks to Sue Blake who pointed out that the software page didn’t show programs that work on Linux / Unix machines and gave me a list of those that do.

She also suggested a table showing multi-platform software – a good idea for those who use two different types of computer and want to use the same abc program on both of them.

Please do let me know if you spot any errors or there’s any software missing.

Chris

You what?

February 5th, 2010

One of the joys of running a website is discovering all the different ways people find of trying to subvert it.

In particular, since the advent of the google search engine and the way it uses links to rank search results, having links pointing at your website is highly desirable.

Which means that, if you have a website and you see a blog like the abc blog which allows comments, it’s very tempting to leave an innocuous comment – like “great blog” or “nice work” … and a link to your own website.

In fact the vast majority of comments that get left on the abc blog look like this. Mostly the link is hidden away under the name of the user although sometimes its included in the comment.

Some are pretty blatant – like this one:

I like the layout of your website. Check out the graphics on my site at [deleted]

Or how about this one:

When different student are willing to read about the essay order they could essay buy related to this good post. Because the essay outline creating has to be a really serious stuff.

which contained links to an essay-writing service for students. [Though would you buy a used essay from someone who writes like that?]

Others are just complimentary:

Love the blog you have here! I find that information really interesting. :)

Or:

I have seen some crappy posts but this one really impresses me. Good work!

Some try to bamboozle – how about this one:

Solid blog. I got a lot of good info. I’ve been keeping an eye on this technology for awhile. It’s fascinating how it keeps varying, yet some of the core elements stay the same. Have you seen much change since Google made their most recent acquisition in the domain?

Fascinating.

And some are just off-topic entirely:

This is a great article. I have now left the rat race, never to look back. You’re right that the only way to make any decent money is by running your own business!

And finally, just as I was about to publish this article when, with immaculate timing, the following comment appeared:

I enjoyed the article and thanks recompense posting such valuable poop at verge on wits of all of us to conclude from, I sort out up it both valuable and communicative and I blueprint to grill it as again as I can.

Which says it all, I think.

Anyway, it keeps me amused deleting them and it’s not as if I’ve got anything better to do with my time.

And the point of this post – well, just to share some of these delights with genuine readers. And to say that, I’d love to have some more comments on the blog – I don’t even mind if it links to your own music related site – but if you do leave one, please mention abc somewhere in the comment.

Thank you!

Chris

This is a great article. I have now left the rat race, never to look back. You?re right that the only way to make any decent money is by running your own business!

How to understand abc (the basics)

January 31st, 2010

[the second in a series of articles on using and understanding abc]

Contents:

OK. So let’s suppose you’ve just come across abc and you want to know a little more about how it works before delving deeper.

Or maybe you’ve already started using abcs you’ve found on websites and now you want to understand them, perhaps to try modifying them slightly.

In this short article we’re going to look at the basics of the notation itself.

The structure of an abc tune

Typically a tune consists of two parts – the header, containing background information, and the notes, containing … the notes.

In this first example, the header is the first 5 lines – each line containing a different type of information – and the notes are contained in the last 3 lines.

X:1
T:Paddy O'Rafferty
C:Trad.
M:6/8
K:D
dff cee|def gfe|dff cee|dfe dBA|dff cee|def gfe|faf gfe|1 dfe dBA:|2 dfe dcB|]
~A3 B3|gfe fdB|AFA B2c|dfe dcB|~A3 ~B3|efe efg|faf gfe|1 dfe dcB:|2 dfe dBA|]
fAA eAA|def gfe|fAA eAA|dfe dBA|fAA eAA|def gfe|faf gfe|dfe dBA:|

We will now look at all the elements of this tune in more detail.

The header

First, notice that each line of the header starts with a different letter telling you what information it contains – so the line beginning T: contains the Title of the tune and the line beginning C: contains the Composer (in this case it’s a traditional one – the composer’s name has been lost in the mists of time).

In abc-speak, these lines are sometimes known as fields - you may hear people talking about the “T field” or the “C field” – they just mean the title or the composer.

Each tune can contain a lot of background information so there are fields to cover almost every eventuality. For now, however, the only other fields you need to know about are X, M & K for the header and the L field which we will look at below.

M: and K: are straightforward and define the meter and the key of the tune – the example above is a 6/8 tune (a jig) in D (two sharps). If you leave out the M: field, most abc software will assume you want common time – i.e. M:C. However, you must include the K: field which also tells abc software where the header ends and the notes start.

Finally the X: field just contains a reference number. This is not so important now that there’s loads of good software that allows you to pick tunes with the click of a mouse, but in the early days of abc it was useful for selecting specific tunes from a file.

Note that some people choose to store each tune in a separate file and so you may sometimes encounter tunes without an X: field. However, not all abc software recognises these as tunes so it’s best, especially if you want to share tunes with friends, to always include an X: field, even if you only ever use X:1.

The only other thing you need know is the order - each tune should start with an X: field, followed by a T: field and the header then ends at the K: field.

Apart from that you can put the other fields (e.g. the C: and M: fields in the example above) in any order.  You can also have as many as you want. We will cover other fields and how to use them in a subsequent article – see the links at the bottom of this article.

The notes

The notes of the tune start after the first K: field.

Each note is written as a separate letter and – surprise, surprise – the letter C represents the note C, D represents D, and so on.

Upper case (capital) letters, CDEFGAB, are used to denote the bottom octave (C represents middle C, on the first leger line below the treble stave), continuing with lower case letters for the top octave, cdefgab (b is the one above the first leger line above the stave).

To go down an octave, just put a comma after the letter and to go up an octave use an apostrophe.

Here are four octaves shown both in abc notation and staff notation:

X:1
T:Notes
M:C
L:1/4
K:C
C, D, E, F,|G, A, B, C|D E F G|A B c d|e f g a|b c' d' e'|f' g' a' b'|]

Notice one other thing about this example – the L: field, which sets the basic note length and in this case, L:1/4 tells abc software that each letter in the notes section represents a crotchet or quarter note.

This brings us to the next topic …

Note lengths

Now we know how to pitch notes, the other important thing is their length.

Firstly, you can set a basic note length for every note via the L: field – so that L:1/16 would mean that each letter in the notes section represents a semi-quaver or sixteenth note and similarly L:1/8 implies that they are quavers or eighth notes.

If you leave out the L: field, most abc software will assume you want the basic note length to be eighth notes (although some software sets the basic note length according to the meter, so if in doubt, include an L: field).

Having set the basic length you can modify the length of an individual note by putting a number after it. For example, in the second line of the tune Paddy Rafferty given above, the first four bars are:

~A3 B3|gfe fdB|AFA B2c|dfe dcB|

So here, since the basic note length is eighth notes (quavers), the B2 in the third bar represents a quarter note (crotchet) – i.e. 2 times as long as an eighth note, whilst the A3 and B3 in the first bar represent dotted quarter notes – i.e. 3 times as long as an eighth note.

If the note is above or below the stave then the note length comes after the comma or apostrophe – e.g. c’4 is a half note (minim) on high C.

To shorten the length of a note, just follow it by a / and the appropriate length – e.g. if A is an eighth note, then A/2 is a sixteenth (semi-quaver). You can also use a / as shorthand for /2  so that A/ also represents a sixteenth note.

Finally, you can change the basic note length at any point in a tune. The following example demonstrates all the different note length possibilities (some pretty uncommon) for 3 different values of the basic note length:

X:1
T:Note lengths and default note length
M:C
K:C
L:1/16
A/2 A/ A A2 A3 A4 A6 A7 A8 A12 A15 A16|]
L:1/8
A/4 A/2 A/ A A2 A3 A4 A6 A7 A8 A12 A15|]
L:1/4
A/8 A/4 A/2 A/ A A2 A3 A4 A6 A7|]

Bar lines

Bar lines are easily inserted with a | symbol and you can use || for a double bar line or |] for a thin-thick double bar line.

Similarly |: represents the start of a repeated section and :| represents the end.

Where one repeated section ends and a new one starts, use :||: or :: for short.

Alternate repeats are represented by [1 and [2 and, if these are adjacent to a bar line, the [ can be omitted, so that |1 is short for |[1.

Beams

To put two or more eighth or sixteenth notes together under a beam, just put them next to each other with no space in between.

The following example show various choices of beaming:

X:1
T:Beams
M:C
K:C
A B c d AB cd|ABcd ABc2|]

Putting it all together

Although there's plenty more to learn, with the information contained in this article you should be able to figure out 90% of most tunes.

However, to finish off, we just need to know that the ~ (tilde) symbol represents an ornament, such as a roll or turn in Irish music.

We now have all the tools required to interpret the abc of Paddy O'Rafferty shown above. Here it is again, with the staff notation underneath:

X:1
T:Paddy O'Rafferty
C:Trad.
M:6/8
K:D
dff cee|def gfe|dff cee|dfe dBA|dff cee|def gfe|faf gfe|1 dfe dBA:|2 dfe dcB|]
~A3 B3|gfe fdB|AFA B2c|dfe dcB|~A3 ~B3|efe efg|faf gfe|1 dfe dcB:|2 dfe dBA|]
fAA eAA|def gfe|fAA eAA|dfe dBA|fAA eAA|def gfe|faf gfe|dfe dBA:|

example - Paddy ORafferty

Further reading

Probably the best way to carry on from here is just to try some playing around with and perhaps modifying some examples. There are  plenty of tunes to try out in the abc tune search and the previous article in this series has a link to an online converter so you can see how changes you make affect the music.

You could also read another article in this series [more to follow]:

Finally, there are plenty other pages which can help to explain abc, such as the examples page on this website, Steve Mansfield's excellent tutorial and John Chambers' FAQ.

Have fun!

Chris Walshaw

The abc website

January 15th, 2010

There are still loads of links out there for the old versions of the abc website address and I’m just putting up this message in the vain hope that people might correct them.

The correct address is now, and hopefully will be for many years to come, http://abcnotation.com.

Addresses you may encounter (and a brief history):

  • http://www.gre.ac.uk/~c.walshaw/abc – for many years (from approximately 1995) this was the home of abc, part of my personal webspace at the University of Greenwich. It remained there until October 2006 when the University shut down all of the personal webpages on the site. Unfortunately, there are still hundreds of links to this page, none of which work.
  • http://staffweb.cms.gre.ac.uk/~c.walshaw/abc – this was the alternative address (kindly provided by the School of Computing & Mathematical Sciences) that I used from about August 2002 on, once I got wind of the fact that the University might want to shut down personal webpages on its own server. It is still live but now just has an automatic redirect to abcnotation.com.
  • http://www.walshaw.plus.com/abc – in November 2006, after the changes mentioned above, I decided to move the website off the University’s servers entirely and put it here (as part of the webspace provided by my ISP). At the same time I took the opportunity to give the site a complete redesign, separating out the content into several pages and introducing the blue and gold theme it has today. Although I never intended this to be the official address of the abc website, many people have used it (because of the way web forwarding works) and there are still over 700 links to this URL. The address is still live but fortunately I have managed to configure it so that it does an automatic (301) redirect to abcnotation.com.
  • http://abcnotation.org.uk – is a forwarding address I set up, also in November 2006, intended as being the new official address for the abc website (unfortunately abcnotation.com wasn’t available at the time). It is still live and takes you directly to abcnotation.com.
  • http://abcnotation.com – some time in late 2008, my ISP temporarily shut down the site at walshaw.plus.com  because it was using more bandwidth than I was allowed. Although, I was able to alleviate the problems, I decided then to move the site to a dedicated host. I also decided to overhaul the web-wide index (a list of all the abc tunes at various websites) at the same time and launch the abc tune search instead. The development work took me six months or so and the new site was launched on 21st June 2009 with 36,000 searchable tunes initially (this had already grown to 55,000 in the December 2009 edition).

Anyway, a long article for a short plea – if you do encounter a website with any of the old addresses (or if you run one yourself) please pester the webmaster to change them.

Thank you!

Chris

Top of the Pops 2

January 5th, 2010

I’ve just amended – slightly – the code that creates the top tune charts so that it now excludes recent winners for a week.

When I was setting the charts up and running a test version I did wonder if they might end up as self perpetuating … and so it proved. They worked fine when it was just me looking at them, but as soon as I published them, the same tune appeared in the top slot for a whole week.

Now I’m sure that “Acano mlada nevesto” is a mighty fine tune, but I’m not convinced it’s the most popular on the website. And what I think was happening was that people were seeing it at the top of the charts and clicking on it to see what all the fuss was.

And so it stayed at the top.

Of course, that’s kind of the way that the real pop charts work … only with the slight difference that people actually have to pay money to keep a song at the top. Whereas here on the website, a click is free.

However, with a quick modification, previous number 1 winners are now excluded for a week (with a list of the previous week’s winners stored lower down the page).

Anyway … just a little diversion in this hectic world. Enjoy!

Chris

http://abcnotation.com/charts

Top of the pops

December 30th, 2009

I’ve been amusing myself over the Christmas period by writing a bit of code that works out the top ten tune pages visited and searches made recently.

You can see the results on the charts page (and the top 3 are also shown in the quick links panel on the home page and search page).

[For those interested in the technical details, the top ten charts are updated shortly after 6am GMT every day and are based on the previous seven days. They are filtered by users' IP addresses so that someone repeatedly visiting the same tune page or making the same search will only be counted once (unless their IP address changes). Also robots, such as the googlebot, are excluded from the results.]

Some of the results are unsurprising – for example, on Christmas Eve, three of the top ten tunes were different versions of the tune Christmas Eve.

Also several of the top recent searches are examples on various pages of this website (e.g. searches for “china”, “speed the plough”, “jig”, “6/8″, “slipjig” & “slip jig” are all linked in various pages) – presumably some these are included because curious visitors have clicked on the links.

However, some of the other results are surprising and it will be interesting to see how they change over time.

One unusual result which pops up sometimes is the tune “XVI. Doe you not know” a 16th century song by Thomas Morley – a lovely tune, but not the most obvious choice. I eventually worked out why when I looked at the Google webmaster tools statistics for abcnotation.com which revealed a number of visitors were coming straight to the page after doing a search for xvidoe. This puzzled me until I realised that they were searches made by people looking for something else entirely and who can’t spell video. Truly the web is an intriguing place.

Chris

How to get started with abc notation

December 23rd, 2009

[the first in a series of articles on using and understanding abc]

Contents:

So you’ve heard about abc notation and you’re intrigued enough to want to find out more.

Or maybe someone has sent you a tune in abc notation and you want to hear what it sounds like.

Or perhaps you’re not interested in the notation itself, but you  want to find the dots for a tune.

Well, the good news is, it’s easy to do all three.

Finding the dots to a tune

For example, if you’re just looking for the dots to a traditional tune, try the abc tune search. At the time of writing (December 2009) there are well over 50,000 tunes available with many historical collections (such as Playford & O’Neill’s) represented.

The search results allow you to see the first line of the tune and click on a midi player which will play a sound file through your computer’s speakers.

Once you’ve located the tune you want, just click on the “tune page” link to take you to the full tune and links to the collection where it originated, plus the midi player again and the abc version of the tune (which often contains additional notes about the tune).

The tune search is not case-sensitive and you can search for a title or just a fragment of a word – for example, click here to search for the tune “Speed the Plough” or here to do a search for the word “jig” (which also finds slip jigs, single jigs, double jigs – any tune where the word jig is mentioned in fact) or here to do a search for tunes in the time signature “6/8″.

Note that, like most search engines, adding spaces between words broadens the search. For example, searching for “slipjig” will only find tunes with “slipjig” as a single word, whereas searching for “slip jig” would also find tunes containing phrases such as “slipjig”, “jig (slip)”, and even “this jig slips along nicely”.

And if you can’t find the tune you want, this is not the only abc search engine – try the others further down the search page.

Viewing and/or listening to abc notation

If you want to take things a bit further – perhaps if someone’s sent you some abc notation in an email – but you don’t want to install any software on your computer, then there are a couple of handy web forms that allow you to do just that.

The abc convert-a-matic at concertina.net is perhaps the best known and is very simple to use – just paste in the abc notation and click on the submit button.

However, if you want to transpose the tune too, the abc converter at folkinfo.org is excellent and gives you a lot more options.

Further reading

If this has whetted your appetite and you want to start using abc notation yourself then there are plenty of options.

You can read another article in this series [more to follow]:

Alternatively, you could take a look at the learn abc page for examples and tutorials or the abc software page to find software to install (my favourite package is ABCexplorer, but there are plenty of other excellent packages).

Enjoy!

Chris Walshaw

Merry Christmas

December 21st, 2009

Well, it’s been some time since I last blogged – nearly three months. Eek!

Partly, it’s because I’ve been very busy at work, writing the lectures for a new course on 3D graphics.

I’ve also been busy rehearsing and recording with my new band Angles (with Cliff Stapleton & Richard Jones) and playing with my new G bagpipes – a lovely sweet-sounding set from Sean Jones.

For anyone who’s around in Kent, Gloucestershire or Brighton, Angles have got three gigs coming up in January – my first chance to play the pipes in public.

So – not much time to work on the abc website.

However, there have been a few things going on behind the scenes so this is just a quick update – exactly six months since the website was relaunched.

First of all, the tune search has been growing all the while – I’ve just updated it today and it now includes over 53,000 tunes. I’ve also done quite a lot of work on the crawler (that searches for abc files across the web) and I think it’s much more robust now – though not much to see from the user point of view.

Secondly, I created an abc facebook page a week or so ago. Not much activity there yet, but I’m hoping people will drop by and say hi.

There is also a (long overdue) move in-hand to formally adopt an updated abc standard – check the forums for details.

Finally, although I haven’t had time to start it yet, I’ve got plans for a whole series of blog articles – watch this space.

Apart from that things are ticking along well. The crashes I was getting early on have not reoccurred so I’m confident my fix worked.

What’s more, the website has had over 54,000 visitors since the relaunch!

Looking at the logs, it’s clear that some of that is just passing traffic – perhaps arriving via a google search, taking a quick look around and leaving soon after. However, there are steady stream of returning visitors who spend a considerable time on the site, with an average of 12.5 pages viewed per visitor!

Anyway, watch out for more improvements in the New Year.

Merry Christmas!

Chris