Melodeon.net Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the new melodeon.net forum

Pages: 1 [2]   Go Down

Author Topic: What is ABC capable of?  (Read 8071 times)

0 Members and 1 Guest are viewing this topic.

Chris Brimley

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2038
Re: What is ABC capable of?
« Reply #20 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. 
Logged

Theo

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 14475
  • Hohner Club Too
    • The Box Place
Re: What is ABC capable of?
« Reply #21 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.
Logged
Theo Gibb - Gateshead UK

Proprietor of The Box Place for melodeon and concertina sales and service.
See my YouTube channel  for videos on repair and tuning

Chris Brimley

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2038
Re: What is ABC capable of?
« Reply #22 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.

Logged

Jack Campin

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 764
    • Jack Campin's Home Page
Re: What is ABC capable of?
« Reply #23 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.
« Last Edit: June 16, 2015, 11:09:09 PM by Jack Campin »
Logged
http://www.campin.me.uk/

I can't figure out how to quit but I will no longer check this group and have deleted all shortcuts to it.

oggiesnr

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 995
  • Dino BPII, Alfred Arnold Bandoneon, Loffet G/C
Re: What is ABC capable of?
« Reply #24 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
Logged

Jack Campin

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 764
    • Jack Campin's Home Page
Re: What is ABC capable of?
« Reply #25 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.
Logged
http://www.campin.me.uk/

I can't figure out how to quit but I will no longer check this group and have deleted all shortcuts to it.

Pete Dunk

  • Typo Expert
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3706
Re: What is ABC capable of?
« Reply #26 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!
Logged
Squeezing on the Isle of Oxney, UK
Primo (Serenellini) D/G
Isis D/G
Hohner B/E, G/C, C/F, Bb/Eb G/C/F
Liliputs D/G (G scale), C/F, Bb/Eb, Albrecht Custom D/G (G scale)

Jack Campin

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 764
    • Jack Campin's Home Page
Re: What is ABC capable of?
« Reply #27 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.
Logged
http://www.campin.me.uk/

I can't figure out how to quit but I will no longer check this group and have deleted all shortcuts to it.

Pete Dunk

  • Typo Expert
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3706
Re: What is ABC capable of?
« Reply #28 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
Logged
Squeezing on the Isle of Oxney, UK
Primo (Serenellini) D/G
Isis D/G
Hohner B/E, G/C, C/F, Bb/Eb G/C/F
Liliputs D/G (G scale), C/F, Bb/Eb, Albrecht Custom D/G (G scale)

Pete Dunk

  • Typo Expert
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3706
Re: What is ABC capable of?
« Reply #29 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
Logged
Squeezing on the Isle of Oxney, UK
Primo (Serenellini) D/G
Isis D/G
Hohner B/E, G/C, C/F, Bb/Eb G/C/F
Liliputs D/G (G scale), C/F, Bb/Eb, Albrecht Custom D/G (G scale)

Jack Campin

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 764
    • Jack Campin's Home Page
Re: What is ABC capable of?
« Reply #30 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.
Logged
http://www.campin.me.uk/

I can't figure out how to quit but I will no longer check this group and have deleted all shortcuts to it.

TomBom

  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 471
Re: What is ABC capable of?
« Reply #31 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 ...
Logged

TomBom

  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 471
Re: What is ABC capable of?
« Reply #32 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.
Logged

oggiesnr

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 995
  • Dino BPII, Alfred Arnold Bandoneon, Loffet G/C
Re: What is ABC capable of?
« Reply #33 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?
Logged

Anahata

  • This mind intentionally left blank
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 6767
  • Oakwood D/G, C/F Club, 1-rows in C,D,G
    • Treewind Music
Re: What is ABC capable of?
« Reply #34 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)
« Last Edit: June 17, 2015, 08:12:15 AM by Anahata »
Logged
Слава Україні !
Music recording and web hosting: www.treewind.co.uk
Mary Humphreys and Anahata: www.maryanahata.co.uk
Ceilidh band: www.barleycoteband.co.uk

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11153
  • Wirral UK
    • Chris Ryall
Re: What is ABC capable of?
« Reply #35 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
Logged
  _       _    _      _ 

Howard Jones

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1203
Re: What is ABC capable of?
« Reply #36 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.
« Last Edit: June 17, 2015, 12:07:26 PM by Howard Jones »
Logged

Mike Hirst

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1433
  • Black Dot B/C, Bastardo C#/D, Corona II GCF
Re: What is ABC capable of?
« Reply #37 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, but the brevity and simplicity of abc remain a huge factor in choosing that as my preffered musical representation format.
Logged
Semper idem, sed non eodem modo

Howard Jones

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1203
Re: What is ABC capable of?
« Reply #38 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:

    Comprehensive indexing fields, which facilitates file management and searches

    The ability to label parts and indicate how they should be played back

    The ability to have multiple voices

    Modal key signatures

    Customisable key signatures.  For example, the key sig of A Mixolydian is 2 sharps.  I find it useful to force a G Natural in the key sig so that it is obvious at a glance that this is centred on A rather than being in the key of D (I know, I should be able to tell that from the music)

    Chords (both names and notation)

    The ability to add any text as a note to the music (although this may confuse the chord generator when the software tries to play it!)

    Compatibility with a huge resource of on-line tunes

    The ability to jot down tunes on the back of a beermat, or in a simple text editor, to be copied in properly at a later date.  As I can’t install ABC software on my work laptop, this comes in handy when I get ideas when I should be working!

    The ability to use it across devices, including Android and iPhone/iPad
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.



Pages: 1 [2]   Go Up
 


Melodeon.net - (c) Theo Gibb; Clive Williams 2010. The access and use of this website and forum featuring these terms and conditions constitutes your acceptance of these terms and conditions.
SimplePortal 2.3.5 © 2008-2012, SimplePortal