Melodeon.net Forums

Discussions => Tunes => ABC => Topic started by: Pete Dunk on June 16, 2015, 12:20:51 AM

Title: What is ABC capable of?
Post by: Pete Dunk on June 16, 2015, 12:20:51 AM
Much has been said in other parts of the forum about ABC being outdated and overtaken by more sophisticated packages like Muse Score (I'm following that one around with a bucket and shovel!). There are misconceptions about the most useful file formats for sharing music on the internet and an apparent bewilderment about the popularity of ABC in general with wildly inaccurate claims that it's only popular in the UK. The most grievously inaccurate thing I've read in the last couple of weeks was a statement that it was only capable of rendering the simplest of notation. I beg to differ.

ABC is actually quite a powerful tool for producing staff notation albeit it a little unruly at times. It's very picky about syntax and can leave you tearing your hair out until you get used to its wily ways, but it can be tamed.

ABC is a markup language that needs to be interpreted by a software tool to output the code in a usable format such as a PDF of staff notation you can read or a midi sound file you can listen to. In its' simplest form some people are able to read the code as written and play the tune but that's not what it was intended for and I would suggest that no-one could ever play the piece in this post by reading the text file.

I hope to prove in this thread that ABC is versatile and produces the smallest possible file format for sharing huge numbers of tunes and whole books. I look forward to many other ABC users chipping in to beat off the hounds baying at our heels!  ;)

When I first saw a scan of the handwritten arrangement of this piece I knew it was way beyond my meagre skills to play it but I longed to hear it, so I transcribed it into ABC. It wasn't easy and I sought the help of Chris P of this parish who always seems to have an extra trick up his sleeve. I was amazed by the clever arrangement and emailed Danny Chapman (the arranger, an outstanding musician!) with the ABC file. He replied the next day and said: "Wow, thanks, that's brilliant, I can't play it though, can you?"  :|glug

So here it is, a nifty little ABC file if I say so myself. *raises cap to Chris P*

PDF here. (https://app.box.com/s/pwmjpctgbxulbwuskrp4cf8kig23kao8)

X:61
T:Coucou, Le
T:Cuckoo, The
C:L-C Daquin
C:arr, Danny Chapman
M:2/4
L:1/16
Q:1/4=70
Z:Peter Dunk 2013
K:G clef=treble
|:zBcB eBcB &E,4 z2G2|gBcB eBcB &E4 z2G2|\
gBcB eBcB &E4 z2G2|g2f2{e2f2}e2^d2 &E2F2G2A2|
%
eBcB gBcB &G4 z2E2|AABA fABA &F4 z2^D2|\
GGAG eGAG &E4 z2 C2|FFGF dFGF &D4 z2 B,2|
%
EEFE cEFE &C4 z2 A,2|[1^D2E2{F2G2}F2G2 &B,2G,2F,2E,2|\
F8 &B,F,G,A, B,A,G,F,:|[2^DEDE FGAF &B,2B,2 D2A,2|
%
B2AG TF2>E2 &G,2A,2B,2z2||E8 &zB,A,B, G,B,A,B,|\
zded gded &E,2 z2 z2 B2|bded gded &G4 z2B2|
%
%
bded gded &G4 z2B2|b2a2{g2a2}g2f2 &G2A2B2c2|\
gded bded & B4 z2G2|ccdc acdc &A4 z2F2|
%
BdcB gdcB &G4 z2G2|e2d2{c2d2}c2B2 &c2B2A2G2|\
Adcd z2a2 &D4 Adcd|f4 z2a2 &Ddcd Adcd|
%
"3"f4 z2"2"a2 & Ddcd A"1"dc"1"d|"1"f4 z2a2 &"3"DAGA\
FAGA|d4 z2d2 &B,GFG DGFG|B4 z2d2 &G,GFG DGFG|
%
B4 z2d2 &G,GFG DGFG|B4 z2d2 &G,GFG DGFG|\
GFGA BABc &E2E2D2C2|d2e2 {B}A2>G2 &B,2C2D2D,2|
%
[G8D8] &G,2 G,A, B,A,G,F,|:zBcB eBcB & E,4 z2G2|\
gBcB eBcB &E4 z2G2|gBcB eBcB &E4 z2G2|
%
g2f2{e2f2}e2^d2 &E2F2G2A2|eBcB gBcB &G4 z2E2|\
AABA gABA &F4 z2^D2|GGAG eGAG &E4 z2C2|
%
FFGF dFGF &D4 z2B,2|EEFE cEFE &C4 z2A,2\
|[1^D2E2F2G2 &B,2G,2F,2E,2|F8 &B,F,G,A, B,A,G,F,:|
%
[2^DEDE FGAF &B,2B,2D2A,2|B2AG TF2>E2 &G,2A,2B,2z2|\
E8 &zB,A,B, G,B,A,B,||zBAB ^GBAB &E,2z2 z2E2|
%
eBAB ^GBAB &^G,4 z2E2|dBAB ^GBAB & B,4 z2E2|\
eB^cd edcB &^G,4 z2E2|^ccBc ^AcBc &^A,4 z2F2|
%
f^cBc ^AcBc &^A,4 z2 F2|e^cBc ^AcBc &^C4 z2F2|\
e^cde fedc &^A,4 z2F2|dd^cd Bdcd &B,4 z2B,2|
%
fd^cd Bdcd &D,4 z2 B,2|gd^cd Bdcd &E,4 z2B,2|\
^gd^cd Bdcd & =F,4 z2B,2|^afef ^cfef &^F,4 z2E,2|
%
bfef dfef &D,4 z2 B,2|gafg efde &E2F2G2F2|\
^cdcd edcB &E4 z2G,2|^A2>B2 B2AB &F,4 B,4|
%
[^c8^A8^C8] &F2FE FGFE|z"2"FGF BFGF &D4 z2D2|\
dFGF BFGF &B,4 z2D2|dFGF BFGF &B,4 z2D2|
%
d2^c2"1"B2^A2 &B,2^C2D2E2|BFGF dFGF &D4 z2 B,2|\
EEFE ^cEFE &^C4 z2^A,2|
%
DDED B"1"DED &B,4 z2B,2|(3^C2B2F2 B^A^GA &(3E,2G,2F,2 z2x2|\
[B8F8] &B,2B,=C B,A,G,F,||
%
%
|:zBcB eBcB &E,4 z2G2|gBcB eBcB &E4 z2G2|\
gBcB eBcB &E4 z2G2|g2f2{e2f2}e2^d2 &E2F2G2A2|
%
eBcB gBcB &G4 z2E2|AABA fABA &F4 z2^D2|\
GGAG eGAG &E4 z2 C2|FFGF dFGF &D4 z2 B,2|
%
EEFE cEFE &C4 z2 A,2|[1^D2E2{F2G2}F2G2 &B,2G,2F,2E,2|\
F8 &B,F,G,A, B,A,G,F,:|[2^DEDE FGAF &B,2B,2 D2A,2|
B2AG F2>E2 &G,2A,2B,2z2||[E8B,8G,8E,8]|]

Title: Re: What is ABC capable of?
Post by: vof on June 16, 2015, 01:32:06 AM
Impressive Pete. I copied and pasted your ABC into the ABCExplorer editor then played it. And as you suggest later in your post, the great benefit of expressing it in ABC is you can hear how it sounds if you use one of the player programs without having to learn it yourself or find (an)other(s) to play it.

This is particularly important if the piece has multiple voices where you would need to persuade an ensemble to play it to hear what it sounds like. My anonymous offering below comes from another handwritten arrangement - in my case, a poor, almost illegible, photocopy - of that great Northumbrian tune Bonny at Morn for three or more instruments (originally PA I think plus unknown others) that another PA-playing band member had acquired years ago from somewhere.

I've stripped out the print formatting section I normally include between the X: and T: commands in my ABC produced for the band I play with to give the generated PDF score a standard house style which you can see in the attached PDF. You may not like it but we are used to it!

X:WBT11
T:Bonny At Morn
M:3/4
L:1/8
Q:1/4=140
K:C
V:1 clef=treble name="1st part"
V:2 clef=treble name="2nd part"
V:3 clef=treble name="2nd 2nd part"
P:A
[V:1]"Am"e2 ef ed|e2 A2 Bc|"G"d3c BA|"Em"G3 AB2|"Am"e2 ef ed|e2 A2Bc|"G"dB G2B2|"Am"A4A2|
[V:2]A,4A,2|A,2E2A,2|G,4G,A,|B,A,G,2B,2|A,4A,B,|C4CA,|G,2B,2G,2|A,6|
[V:3]c2 cd cB|c4A2|G2B2G2|E6|c2cd cB|c4A2|G2E2D2|E6|
%%staffsep 60
[V:1]e2 ef ed|e2 A2 Bc|"G"d3c BA|"Em"G3 AB2|"Am"AG AB cd|e2a2g2|"G"eg3B2|"Am"A4||
[V:2]A,4A,2|A,2E2A,2|G,4G,A,|B,A,G,2B,2|C4CB,|A,4C2|B,2G,2DB,|A,4||
[V:3]c2 cd cB|c4A2|G2B2G2|E6|F6|F6|G2E2D2|E4||
P:B
[V:1]|:cB|"Am"A2a2a2|A3Bc2|"G"G2g2g2|"Em"G3 AB2|"Am"AG AB cd|e2a2g2|"G"eg3B2|"Am"A4:|
[V:2]|:ED|C2C2CB,|C4E2|D2B,2G,A,|B,6|A,4A,B,|C4C2|B,2>C2 B,G,|A,4:|
[V:3]|:E2|E2c2c2|c3BA2|B2B2B2|B3AG2|F6|F6|G4G2|E4:|

I'm still very much a novice musician and ABC devotee so please be gentle with the criticism.

vof
Title: Re: What is ABC capable of?
Post by: Jack Campin on June 16, 2015, 01:39:26 AM
I have spent ANOTHER hour trying to construct a followup to that, this time getting everything I'd done blown away because the forum wouldn't accept a MIDI attachment.  It didn't just give a warning, it succeeded in destroying every trace of what I'd been writing so my browser couldn't backtrack to it.

I'm going to bed and can't attempt to reconstruct my message and attached files till Friday at the earliest.
Title: Re: What is ABC capable of?
Post by: Chris Ryall on June 16, 2015, 08:25:50 AM
doesn't accept .jpeg either, sysonymous with .jpg so … how about it, Clive?,
Title: Re: What is ABC capable of?
Post by: Jack Campin on June 16, 2015, 09:51:25 AM
I'd settle for sane error handling.
Title: Re: What is ABC capable of?
Post by: Chris Brimley on June 16, 2015, 10:42:09 AM
Quote
It's very picky about syntax and can leave you tearing your hair out until you get used to its wily ways, but it can be tamed.

I have to rise to the bait here - why bother?  Why not just try feeding that in via MuseScore or similar?  You have several ways of entering the data (including MIDI) but what struck me is that the tune has large sections with notes of equal length, which means that you can enter them into the score with just one hand on the keyboard, at a speed not greatly slower than playing speed.  And you don't need to worry about baldness, because your errors are obvious in front of you, and can easily be corrected - plus you can play the notes concurrently, and you'll hear them.  And also, where you have repeated passages, as a lot of music does, you can save even more time with copy and paste - this quickly becomes second nature, as you can both hear, and see from the score, which bars are being repeated.  And there really isn't a long learning curve any more - anyone can get started right away.

It is a lovely tune - I just pasted it into MuseScore using the plugin ABC import facility, and it played it back nicely with repeats, immediately.  And I have to take my hat off to you Pete for your painstaking transcription feat!  I confess I don't understand how you can have formed the opinion that MuseScore is a load of whatsit (are you perhaps basing that judgment on earlier versions?), but for the function you have used it for it's just very user-friendly - entering code compared with seeing and hearing the end result directly seems to me a bit like using MS-DOS when you have Windows 8.  And the .mscz data file for the Cuckoo is 46.1kb - perhaps slightly bigger than the text file, but still tiny?  And having once got the score into MuseScore, (which took me about 15 seconds to copy in) I can now do pretty much what I like with it with all the other functions that are available.

No one's saying ABC should be thrown away.  But I'm concerned that comparing functionality doesn't seem to be happening - I really hope this thread isn't now going to be blocked!
Title: Re: What is ABC capable of?
Post by: Jack Campin on June 16, 2015, 11:11:59 AM
Quote
the tune has large sections with notes of equal length, which means that you can enter them into the score with just one hand on the keyboard, at a speed not greatly slower than playing speed

Meaning you can make mistakes as fast as you can play.

I spend far more time checking, editing and formatting ABC than I do entering it.  The data entry interface won't change that, unless by positively encouraging you to be slapdash.  And ABC gives you additional constraints you can check that staff notation doesn't - since it gives you the staff notation as well, that's an opportunity for better quality transcription.

I think since you're so keen on MuseScore you should transcribe something non-trivial with it and put it somewhere where a user who can't run the program can see what you've done (that's easy with ABC, using public converter sites like Clive Williams's excellent one; if you can copy and paste text you can listen to and typeset any ABC you can find).  As it is, you're acting like the guy in the Monty Python "man with three buttocks" sketch.
Title: Re: What is ABC capable of?
Post by: Howard Jones on June 16, 2015, 11:18:40 AM
Chris, you're assuming that typing out ABC is more laborious than typing it out in Musescore.  The process you set out in another thread, now closed, for entering a tune in Musescore could be used almost word for word for the process in ABC.

For entering simple tunes, in most programs I've come across keyboard entry is quickest and simplest.  However at a certain level of complexity it becomes easier to use drop-and-drag and the other facilities which a more sophisticated program can offer.  If I were regularly writing music of this complexity I would probably use Musescore or something similar.  However for what I use it for (which can include transcribing multiple parts and adding chords and harmonies) ABC is absolutely fine and I can see no need to undergo even the modest learning curve which switching to Musescore would offer. 
Title: Re: What is ABC capable of?
Post by: TomBom on June 16, 2015, 11:36:14 AM
I think it is so simple to edit ABC, e.g. changing line breaks. I prefer that to mouse clicking through menus and marking notes. But then I like using command line even in Windows 8 times - it is faster.
And there is software for playing MIDI keyboards for getting ABC code.

Let's focus on the capabilities of ABC.
Title: Re: What is ABC capable of?
Post by: Jack Campin on June 16, 2015, 12:30:31 PM
Quote
there is software for playing MIDI keyboards for getting ABC code

There is, but the result always smells of poo.

The main problems:

- you have no repeat construct in MIDI so typically a folk tune will get twice as much notation as it needs

- rhythms entered by hand are usually not represented the way you'd want them for easy reading.

Editing to sort those problems is really tedious.
Title: Re: What is ABC capable of?
Post by: Howard Jones on June 16, 2015, 01:27:08 PM
No one has mentioned the file management capabilities of ABC. ABC also allows a considerable amount of information about a tune to be added, and it uses structured index fields which allow files to be filed and organised using this information.

A single ABC file can contain a large number of tunes, so an entire collection can be contained in a single file.  This makes finding tunes very easy.
Title: Re: What is ABC capable of?
Post by: malcolmbebb on June 16, 2015, 01:49:47 PM
With the exception of Lester's mega file, which rather stretches the point, I think Howard has a very good point. I find the tune collection organisation very useful.
Title: Re: What is ABC capable of?
Post by: Jack Campin on June 16, 2015, 02:24:19 PM
Lester's file brings out another advantage.  It's so big that I can go for lunch while BarFly is indexing it.  So I don't open the whole thing with BarFly: I load it into a general-purpose text editor, search for just the few tunes I want, copy them and load the copy into BarFly for format-twiddling.  That works because the file is plain text and any text editor or word processor can read it.

I don't have an ABC application on the machine I'm using right now (and couldn't install one), but I can still edit ABC - I'd just use MS Notepad and a converter site.  Even though it's a very old and slow WinXP laptop, I could handle Lester's epic with MS Word, it's always been good at handling big files.
Title: Re: What is ABC capable of?
Post by: Howard Jones on June 16, 2015, 03:51:01 PM
Quote
It's very picky about syntax and can leave you tearing your hair out until you get used to its wily ways, but it can be tamed.

... but for the function you have used it for it's just very user-friendly - entering code compared with seeing and hearing the end result directly seems to me a bit like using MS-DOS when you have Windows 8.

Chris, what you appear to be overlooking is that people don't write ABC code in isolation, especially for more complex music.  They will nearly always use a program which will show you the notation as you type, and play it back.  The process is really no different from keyboard entry into Musescore, except that you can see the code as well as the notation. 

This seems to be the source of a lot of confusion amongst non-users of ABC, perhaps because they come across it as plain text such as the examples in this thread.  ABC is intended as a text-based means of creating conventional notation with a computer, with the help of software which will convert it.  You are not expected to interpret the text yourself, although it is possible to do so.

When you write ABC in ABC Explorer, ABC Navigator or one of the other programs you see the results straight away.
Title: Re: What is ABC capable of?
Post by: deltasalmon on June 16, 2015, 04:00:27 PM
I wonder how long it will take for Theo to regret opening the ABC subforum after every post on it finds its way into a MuseScore vs ABC argument
Title: Re: What is ABC capable of?
Post by: Chris Brimley on June 16, 2015, 04:27:03 PM
Quote
I think since you're so keen on MuseScore you should transcribe something non-trivial with it and put it somewhere where a user who can't run the program can see what you've done

OK, just as an example, here's a version of the top line of Le Coucou transcribed into MuseScore, as a pdf.  I've not done it in exactly the same way, but I have done it as I think Pete did by reading another score manually.  That took me 10 and a half minutes, but I'm sure you could reduce that with a little practice.  But really, that's not the point. I'm not going to participate further in any sort of competition, I'm just pointing out there's a range of options - it's up to people to investigate them for themselves if they wish to.

Look, cheerio, guys, I'm not going to bother you any more - all I want people to acknowledge is that there are other platforms around, they've had an awful lot of development, and they're used by an awful lot of other musicians, who can't all be misguided.  That affects me because it is just plain restrictive for melnet to recognise only ABC.
Title: Re: What is ABC capable of?
Post by: Jack Campin on June 16, 2015, 05:53:08 PM
Melnet has vast amounts of ABC and not much in other formats, so it isn't very restrictive seen from this end.

What I was driving at was whether you can come near the ability of ABC to act as an exchange format.  For an example, how do you get a MuseScore piece into NoteFlight?  There are a few ABC applications for various platforms that will export MusicXML, and NoteFlight imports that.  MuseScore can do the same - if you have the application.  If the MuseScore folks could liaise with NoteFlight about having their file format recognized directly, they'd be doing something you can't do as easily with ABC, and would make their proprietary format more widely usable.  (NoteFlight runs quite well on a lot of platforms, including many they don't claim to support - certainly more than MuseScore does, so it could act as a web-based converter for people like me who have no hardware MuseScore will run on).
Title: Re: What is ABC capable of?
Post by: Mike Hirst on June 16, 2015, 06:13:08 PM
Earlier this year I used abc as a tool for exploring four part (SATB) harmony.

This mp3 (http://libtrad.eu/mp3/OysterWifesRant.mp3) and the attached pdf were produced from this abc:

Code: [Select]
X:1
T:Oyster Wifes Rant
T:Oyster Wives Rant
T:Mary Eleanor
M:2/4
L:1/8
C:Traditional
C:Arr. Mike Hirst
N:Mixolydian/Dorian Hexatonic Scale
Z:Mike Hirst - Sat 31 Jan 2015 12:24:32 GMT
%%staves (S A) (T B)
K:Cmix
V:S
%%MIDI program 19
|: G>A GF | GC C2 | F>G FD | B,C DF |
G>A GF | GA BG | FD BD | C2-C2 :|
|: GF GA | B2 AG | F>G FD | F2 DF |
GF GA | B2 AG | FD BD | C2- C2 :|
V:A
%%MIDI program 19
|: C4- | C4- | C4 | B,4 |
C4 | B,4 | C2 D2 | C2- C2 :|
|: C4 | D4 | C4 | D4 |
C4 | D4- | D4 | C2- C2 :|
V:T
%%MIDI program 19
|: G,4- | G,4 | A,4 | B,4 |
G,4- | G,4 | A,2 B,2 | G,2- G,2 :|
|: G,4- | G,4 | A,4 | B,4 |
G,4- | G,4 | A,2 B,2 | G,2- G,2 :|
V:B
%%MIDI program 19
|: C,4- | C,4 | C,2 D,2- | D,4 |
C,4 | D,4- | D,4 | C,2- C,2 :|
|: C,4 | D,4- | D,2 C,2 | D,4 |
C,4 | D,4- | D,4 | C,2- C,2 :|


http://libtrad.eu/mp3/OysterWifesRant.mp3
Title: Re: What is ABC capable of?
Post by: Mike Hirst on June 16, 2015, 07:13:23 PM
The pdf attached below is the same as the one in my previous posting, with the exception that I have embedded the source abc. This can be extracted using Acrobat Reader or PDFtk (https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/).
Title: Re: What is ABC capable of?
Post by: Pete Dunk on June 16, 2015, 07:45:18 PM
My, my, it's all been happening on here today hasn't it?  ::)

Quote
It's very picky about syntax and can leave you tearing your hair out until you get used to its wily ways, but it can be tamed.

I have to rise to the bait here - why bother?  Why not just try feeding that in via MuseScore or similar?  You have several ways of entering the data (including MIDI) but what struck me is that the tune has large sections with notes of equal length, which means that you can enter them into the score with just one hand on the keyboard, at a speed not greatly slower than playing speed.  And you don't need to worry about baldness, because your errors are obvious in front of you, and can easily be corrected - plus you can play the notes concurrently, and you'll hear them.  And also, where you have repeated passages, as a lot of music does, you can save even more time with copy and paste - this quickly becomes second nature, as you can both hear, and see from the score, which bars are being repeated.  And there really isn't a long learning curve any more - anyone can get started right away.

Because typing it in abc is quicker and easier and the results are readily shared. I use ABC regularly to transcribe old music for The Village Music for whom the use of ABC is mandatory. Copy and paste is pretty simple in a text editor too!

Quote
It is a lovely tune - I just pasted it into MuseScore using the plugin ABC import facility, and it played it back nicely with repeats, immediately.  And I have to take my hat off to you Pete for your painstaking transcription feat!  I confess I don't understand how you can have formed the opinion that MuseScore is a load of whatsit (are you perhaps basing that judgment on earlier versions?), but for the function you have used it for it's just very user-friendly - entering code compared with seeing and hearing the end result directly seems to me a bit like using MS-DOS when you have Windows 8.  And the .mscz data file for the Cuckoo is 46.1kb - perhaps slightly bigger than the text file, but still tiny?  And having once got the score into MuseScore, (which took me about 15 seconds to copy in) I can now do pretty much what I like with it with all the other functions that are available.

Yes it is a very pretty piece and Musescore 2 (I'm on Win 7) plays it back very nicely indeed. Shame it looks so awful with the down stems from one staff crashing over the up stems of the staff beneath.  :o Increasing the spacing between the staves to print on 4 pages instead of two merely results in ever longer intertwined stems (I'm losing the will to live at this point). I've looked at Musescore many times over the years and uploaded at least four different versions. It looks better than it did but that and the really nice midi play back which is far better than I've heard from any other music package (although I haven't tried Sibelius) are the only things I can say for it. I can't even find out how to create a pick up bar!

Quote
No one's saying ABC should be thrown away.  But I'm concerned that comparing functionality doesn't seem to be happening - I really hope this thread isn't now going to be blocked!

I've compared functionality between ABC, Musescore, Noteworthy and Finale Print Music and I always come back to ABC, this of course simply my personal opinion. Well done getting Le Coucou in a 46.1kb file, I can get around 120 average sized folk tunes in a file that size and Le Coucou on it's own is less than 3kb.

Quote
OK, just as an example, here's a version of the top line of Le Coucou transcribed into MuseScore, as a pdf.  I've not done it in exactly the same way, but I have done it as I think Pete did by reading another score manually.

I did indeed read this from Danny's handwritten manuscript (http://www.rowlhouse.co.uk/concertina/music/Cuckoo.jpg), and reproduced it properly on a single stave as written. I'm not knocking what you've done but it did rather miss the point of the exercise!

Quote
Look, cheerio, guys, I'm not going to bother you any more - all I want people to acknowledge is that there are other platforms around, they've had an awful lot of development, and they're used by an awful lot of other musicians, who can't all be misguided.  That affects me because it is just plain restrictive for melnet to recognise only ABC.

Chris, I've always read your posts with interest and I respect your opinion on most subjects but in this matter I feel you have been somewhat blinkered and dogmatic, in reality your standpoint is greatly weakened by the fact that you've apparently never tried to transcribe using ABC yourself!  >:E

We've hardly got started showing off what ABC can do (although Mike's mp3 nearly blew me out of my chair  :D ) so do please stay with us, who knows, you may even like it!
Title: Re: What is ABC capable of?
Post by: Chris Brimley on June 16, 2015, 08:20:48 PM
Quote
I feel you have been somewhat blinkered and dogmatic

For supporting the need for allowing other platforms when you're arguing for just one, you mean?  Just to repeat one last time, my arguments in support of MuseScore have been intended to illustrate solely that other platforms also have a lot to offer, and that melnet's reluctance to allow them is, quite plainly, restrictive. 
Title: Re: What is ABC capable of?
Post by: Theo on June 16, 2015, 08:42:25 PM
Chris,  my policy on extending melnet has always been and remains - if a number of members are in agreement that a new facility be added then it will be done, as long as it does not compromise the security of the forum and it's members.

Now if you want to argue for Musescore please please don't do so by hijacking other topics but start your own topic.
Title: Re: What is ABC capable of?
Post by: Chris Brimley on June 16, 2015, 10:52:42 PM
Theo, this was the OP's first remark in this thread:

Quote
Much has been said in other parts of the forum about ABC being outdated and overtaken by more sophisticated packages like Muse Score (I'm following that one around with a bucket and shovel!).

It is therefore somewhat unfair to say that I have 'hijacked' the topic! 

I chose not to report this post for its tone because I would rather use reasoned discussion at any time, and still hold the view that that is the way forward.

However, I think you are right, there is now no point in discussing the matter further.

Title: Re: What is ABC capable of?
Post by: Jack Campin on June 16, 2015, 11:06:58 PM
OK, if all goes well I might have time to finish this tonight.

Pete's original thread on this included this example:

Code: [Select]
X:1
T:Mr Beveridge's Maggot
C:arr. Danny Chapman
Z:Peter Dunk 2012
M:3/2
L:1/4
Q:1/2=95
K:Gm
g2 ^f =e/f/ g2 &z[BG]Dzz[BG]|\
d c/B/ A/B/ cBG &Czz(D[D2G,2)]|\
g2 a g/a/ b2 &z[BG]Fzz[dB]|\
f e/d/ c/d/ edB &Ezz(F[F2)B,2]:|
%
|:d f2 f f2 &Bz[FD]zz[DB,]|\
c e2 e e2 &[EC]z[GE]zz[CA,]|\
B d2 d d/c/ B &G,z[DB,]zB/A/ G|\
A/B/ cB A/G/ ^F D &F2E2Dx:|
%
d a2 aad &[AD]z[A^F]zzA|\
bag^f g2 &dcBAz[BG]|\
d/e/ f B/c/ d A/B/ c &zBzGzF|\
BG G3/ ^F/ G2 &zC D2 G,2||
%
L:1/8
|:bagb ag^fa gdbd|cdcB ABcA BGBd|\
gabg abc'a bfdf|1efed cdec dBdg:|2efed cdecBFGA|
||Bcde fgfe defd|edcB ABcB ABAF|\
GABc dedc BdBc| AB c2 B2 AG ^FAGc|
d=e^fg afdf fdfa|bagb ag^fa gdBc|\
defd BcdB ABcA| BcdB AG^FA G4|]

which typesets just fine but as Pete said, isn't all that source-readable.  The reason it isn't is because it makes heavy use of the "&" symbol - this introduces a second voice for the duration of the bar.  I was one of the people advocating that before anyone implemented it - in fact it might even have been my idea - but I didn't envisage it being used that way.  Also, not all software understands it: Phil never got round to putting it in BarFly, so BarFly reads the "&" as an unknown symbol and puts the two lines in sequence rather than parallel, both in staff notation and playback.

It's more readable to do it by writing explicitly separate voices.  That way, if you align things right, you can read the harmony off vertically.  It was only a few minutes work to edit Pete's source unto this:

Code: [Select]
X:2
T:Mr Beveridge's Maggot
C:arr. Danny Chapman
Z:Peter Dunk 2012
M:3/2
L:1/4
Q:1/2=95
V:1 up
V:2 down merge
K:GMin
[V:1] g2   ^f=e/f/ g2   |dc/B/ A/B/c  BG    |g2    ag/a/ b2   |fe/d/ c/d/e  dB    :|
[V:2] z[BG] Dz     z[BG]|Cz    z   D-[D2G,2]|z[BG] Fz    z[dB]|Ez    z   F-[F2B,2]:|
%
[V:1] d f2 f  f2    | c e2 e    e2    |B d2 d    d/c/B|A/B/c BA/G/ ^FD:|
[V:2] Bz[FD]z z[DB,]|[EC]z[GE]z z[CA,]|G,z[DB,]z B/A/G|F2    E2     Dx:|
%
[V:1]  d  a2    a ad|ba g^f g2   |d/e/f B/c/d A/B/c|BG G>^F G2 ||
[V:2] [AD]z[A^F]z zA|dc BA  z[BG]|z   B z   G z   F|zC D2   G,2||
%
[V:1][L:1/8] bagb ag^fa gdbd|cdcB ABcA BGBd|gabg abc'a bfdf|efed cdec [1 dBdg:|\
                                                                      [2 BFGA||
[V:2][L:1/8] x12            |x12           |x12            |x8        [1 x4  :|\
                                                                      [2 x4  ||
%
[V:1] Bcde   fgfe defd|edcB ABcB  ABAF|GABc dedc BdBc|ABc2 B2 AG ^FAGc|
[V:2] x12             |x12            |x12           |x12             |
[V:1] d=e^fg afdf fdfa|bagb ag^fa gdBc|defd BcdB ABcA|BcdB AG^FA  G4 |]
[V:2] x12             |x12            |x12           |x12            |]

I attach PDFs of both Pete's version and mine, as processed by abcm2ps.  Mine has the weakness that the stems all go up in the solo bit at the end: there's no easy way round that while keeping the merged staves tidy.  I'd be inclined to transpose that section down an octave, optionally using a +8va indication.

I can't attach a soundfile.  The forum won't accept MIDI and an MP3 is too big.  I can generate most standard formats with BarFly or BarFly via Audacity.  The neatest effect I got was using Phil's baritone concertina soundfont and "swinging" playback by enabling "stress prgramming" and adding an
Code: [Select]
R:hornpipe line to the header.
Title: Re: What is ABC capable of?
Post by: oggiesnr on June 16, 2015, 11:36:06 PM
I use both ABC and Musescore.  I also use them for different purposes.  Single part and composing I use ABC.  Arrangements I tend to use muse score especially if using different clefs.  For general learning of tunes I use ABC every time, the tunes just don't exist out the in Musescore land.  I have around 10,000 tunes in ABC that take up almost no space (in modern terms) and I can search easily.

That brings me on to another point.  I have a program that I use in Corpus Linguistics (the study of words and their relationship to other words). By turning my ABC files into one huge corpus (ie body of work) by the simple expedient of making a huge text file, I can find not only tune titles, authors, transcribers, keys etc but also by inputting ABC phrases I can find tunes with similar note sequences.  Very useful if you're not sure your tune is original or a copy of another one.  I'm not aware of being able to do this in other formats.

Steve
Title: Re: What is ABC capable of?
Post by: Jack Campin on June 16, 2015, 11:46:55 PM
BarFly does a text search on a directory tree, so there's no need for all the tunes to be in one file.  It doesn't have anything like grep patterns, though.  I'd be inclined to use Unix search utilities if I needed anything fancy.
Title: Re: What is ABC capable of?
Post by: Pete Dunk on June 17, 2015, 12:02:24 AM
OK, if all goes well I might have time to finish this tonight.

Steady on Jack, you're probably the only person to see the original post as it wasn't there for long, I haven't dealt with 'The Fork Stuck Under the Door' yet, never mind Mr. Beveridge's Maggot! Barfly is something we would probably swat on sight and who the hell is Phil?

On a more serious note your re-write is okay as far as it goes but if you remember I said the the first (two voice) three staff section should repeat after the three staves of solo. So copy and paste and Hey Presto! The first bit plays through again at double speed? No, no, no, no, no!

Back to the drawing board!
Title: Re: What is ABC capable of?
Post by: Jack Campin on June 17, 2015, 12:19:03 AM
Easy enough to fix that (either add another "L:" declaration or eliminate the one you've got), but unfortunately not without a bit of unnecessary copying.  Ideally you'd use ABC's "P:" (for "part") construct to label the first bit as the A part, the solo line as B, and then say in the header that the program should play it ABA.  But Phil (Phil Taylor, implementor of BarFly) never managed to get "P:" working with multivoice scores.  So the only way to go back to the A section in playback or a generated sound file is to append the whole thing after the B.

I told Phil I had a problem with that, many times.  It must have been a result of something very basic to BarFly's architecture, since he never even hinted that he might look into it someday.

Sometimes arguing with the idiosyncrasies of ABC and its implementations gives you a helpful insight into a tune's structure.  Sometimes it just gets in the way.
Title: Re: What is ABC capable of?
Post by: Pete Dunk on June 17, 2015, 12:23:07 AM
I'm still very much a novice musician and ABC devotee so please be gentle with the criticism.

vof

Sorry, I've been busy and far too slow to answer! I learned something from this file for which I thank you. I will point out the (minor) mistakes you made but they are comments not criticisms.

X: field must be a number, no alpha characters allowed, otherwise the file will not be read or rendered.

statement  - %%staffsep 60 prevents the file from working in my software. I don't recognise it, what does it/should it do?

Other than that well done!

Pete
Title: Re: What is ABC capable of?
Post by: Pete Dunk on June 17, 2015, 12:38:32 AM
I'm still very much a novice musician and ABC devotee so please be gentle with the criticism.
vof

I learned something from this file for which I thank you. I should have been more specific of course, the use of quotes in the naming of voices was a revelation. I very quickly realised that V:1 name=Treble 1 wouldn't work and so reverted to V:1 name=Treble_1

V:1 name = "" should have been obvious but to be honest it wasn't. Thanks to your post I am much the wiser, thank you!  ;D
Title: Re: What is ABC capable of?
Post by: Jack Campin on June 17, 2015, 12:46:03 AM
The converter at mandolintab.net renders that version of Bonny at Morn perfectly with no source changes.  Their PDF attached.

BarFly plays it just fine but can't display the staff notation because of the "P:" problem.  The version of abcm2ps I got with BarFly and have on my desktop machine makes everything too big to fit on one page, but renders it without complaint.

Some implementations like the X: field to contain nothing but positive integers represented by Arabic numerals with optional leading and trailing spaces, others don't care.  The spec just says it contains a "number", so maybe somebody accepts -4.78E-53 or MCCLXVII.

There is no need to use "P" unless your sections really need names or unless you're going to use that for playback control.
Title: Re: What is ABC capable of?
Post by: TomBom on June 17, 2015, 01:05:35 AM
Jack, just in case you didn't know:
I don't know if it works with Barfly, abcm2ps allows to adjust the scaling factor.
I normally want my scores to be as big as possible (eyesight ...), so I normally use
%% scale 0.9 .When a tune doesn't fit on one page you can reduce the scaling factor.

And BTW: MuseScore runs under Linux, so it might be possible to make it run on an old computer.

You probably know all that. Just ignore my post then ...
Title: Re: What is ABC capable of?
Post by: TomBom on June 17, 2015, 01:11:33 AM
statement  - %%staffsep 60 prevents the file from working in my software. I don't recognise it, what does it/should it do?

It specifies how much space there is above the following stave (staff separation). Standard is about 40 I think.
Title: Re: What is ABC capable of?
Post by: oggiesnr on June 17, 2015, 07:45:23 AM
BarFly does a text search on a directory tree, so there's no need for all the tunes to be in one file.  It doesn't have anything like grep patterns, though.  I'd be inclined to use Unix search utilities if I needed anything fancy.

I don't have Barfly or Unix so I just use the tools I have to hand  (:)

Steve

PS What's a grep pattern please?
Title: Re: What is ABC capable of?
Post by: Anahata on June 17, 2015, 08:07:50 AM
grep = "Get Regular Expression and Print"

So "grep pattern" is what's usually called a "regular expression" and it's a system for describing a text search term with a bewilderingly complicated and powerful syntax. The bits that most people know about are
? to match any character
* to match any string
... but it goes much further than that and in the hands of an expert can do clever things when used, for example , in a search-and-replace context, or for tasks like determining whether a string of characters is a valid email address or not.

See https://en.wikipedia.org/wiki/Regular_expression for as much academic rigour as you're ever likely to need.

ETA: actually '?' and '*' in a regular expression don't mean quite the same as they do in common filename matching patterns (before some pedant catches me out)
Title: Re: What is ABC capable of?
Post by: Chris Ryall on June 17, 2015, 08:37:56 AM
Jees, this is maybe the most arcane thread I've ever seen on melnet, can we get enough votes together for Theo to rename this "geeks corner" ;)

Just to say that melodeon explorer http://chrisryall.net/chords/ is largely driven by RegEx code. You can do virtually anything with text using those ?/* and more complicated patterns. Understanding how you did it, a month or so later is the issue >:E
Title: Re: What is ABC capable of?
Post by: Howard Jones on June 17, 2015, 09:35:13 AM

all I want people to acknowledge is that there are other platforms around, they've had an awful lot of development, and they're used by an awful lot of other musicians, who can't all be misguided.  That affects me because it is just plain restrictive for melnet to recognise only ABC.

I don't think anyone is questioning that. Musescore appears to be an excellent program, and there is no suggestion that you are in any way mistaken in preferring it.  However from my perspective I can see no benefit in switching. This is not a question of disregarding Musescore - I have looked at it (and other programs), but I feel they offer me nothing that ABC can't do, up to a level of musical complexity that I am unlikely ever to need. Your claim that data entry is easier in Musescore is, with respect, mistaken (again, up to a certain level of complexity) and I feel arises because you are not familiar with ABC.

As someone who is mainly interested in folk and traditional music, there is a big advantage to me in working in what is the de facto standard for this genre.  If you play other genres where more complex scores are required and different standards are used it would obviously make sense for you to use those - horses for courses.  However, speaking for myself, continuing to use ABC rather than switching to more sophisticated software is a considered choice, not sticking my head in the sand.

As for Melnet "supporting" ABC, it doesn't have to - ABC is just text within the body of a post.  Supporting other file formats is more complex, involves the admins in some work and raises security issues.  This goes equally for the idea that ABC could automatically be rendered as notation.  Theo has already said he is willing to consider suggestions if there is sufficient interest from members.  However even if Musescore were to be supported I suspect the majority of members will continue to post in ABC.

You can use Musescore to turn ABC into notation.  Even those of us who habitually use ABC will use software to convert it into notation.  I'm not quite sure what the difference is, or why it should be a problem.  However if you do run into difficulties with it you will find no shortage of advice here.
Title: Re: What is ABC capable of?
Post by: Mike Hirst on June 17, 2015, 11:02:40 AM
It is perhaps worth pointing out that MuseScore native format is XML whose structure is unique to that software. That is, it cannot be read by any other software. The MuseScore manual recommends using musicXML to transfer data between programmes.

Quote
MusicXML is the universal standard for sheet music. It is the recommended format for sharing sheet music between different score writers, including Sibelius, Finale, and more than 100 others.
https://musescore.org/en/handbook/file-format-0#musicxml

musicXML has many advantages over abc, but has a huge disadvantage in that it is not easily human readable, nor can it be scribbled on a beer mat.

I find MuseScore a useful tool for transferring between different formats. I also sometimes use lilypond (http://www.lilypond.org/), but the brevity and simplicity of abc remain a huge factor in choosing that as my preffered musical representation format.
Title: Re: What is ABC capable of?
Post by: Howard Jones on June 17, 2015, 12:35:01 PM
To bring this back on-topic (although I have been as guilty as any for some of the diversions), these are some of the things in ABC which I find useful, besides the ability to write fairly complex music. 

So far as writing music is concerned, I think there is very little in terms of conventional notation that ABC cannot do.  I entirely accept that there comes a level of complexity where other systems definitely have the edge over ABC for ease of entry and editing, but I am a long way short of needing this.  Similarly specialist and avant-garde notation may not be possible, but these are not what it is intended for.

Useful features include:

These are just a few which have occurred to me, I’m sure there are others.  Of course, I’m not suggesting that only ABC can do any of these, but it helps to support the argument that ABC is more powerful than the doubters think.



SimplePortal 2.3.5 © 2008-2012, SimplePortal