Melodeon.net Forums

Discussions => Tunes => ABC => Topic started by: Jack Campin on June 12, 2015, 01:36:53 AM

Title: auto-processing of ABC in forums
Post by: Jack Campin on June 12, 2015, 01:36:53 AM
It seems quite easy to fit a typesetting plugin to a forum which will automatically display entered ABC as staff notation.  I subscribe to two forums that do it.  Sample attached.  All I uploaded was the ABC: the forum's plugin generated the dots.

(There have been problems with both the sites where I've done that - I suspect the latest version of the plugin has a bug, but until two weeks ago it worked fine).

This seems to work quite well at reassuring the technophobic that they don't have to do anything scary like copying and pasting ABC source to use it.

Could a plugin like that be installed here?
Title: Re: auto-processing of ABC in forums
Post by: Theo on June 12, 2015, 07:19:24 AM
That is an interesting idea.  I don't know if such a plugin is available for our forum software.  Clive?
Title: Re: auto-processing of ABC in forums
Post by: vof on June 12, 2015, 11:45:58 AM
Yes, very interesting. Without intending to step on Clive's toes, a quick search threw up only one ABC notation plugin by Paul Rosen which is for Wordpress based sites. That and the spoiler references in Jack's image - WP has a popular spoiler plugin - makes me think that the forum Jack was using is WP-based so not immediately promising.

@Jack Campin: can you post more information, e.g. a link, to the forum from where your posted screenshot was taken?

vof
Title: Re: auto-processing of ABC in forums
Post by: Jack Campin on June 12, 2015, 12:10:18 PM
That screenshot was from The Ocarina Network, which is on Zetaboards.  Another one that does a similar thing is littlegeese.com (another ocarina forum) which uses phpBB.  Both work better than TheSession, which requires the sysadmin to hand-edit ABC before processing it.

Spoilers are helpful with this - threads get rather long if they're bloated with explicit staff notation, and you don't really need to see all the ABC all the time.
Title: Re: auto-processing of ABC in forums
Post by: Chris Brimley on June 12, 2015, 12:57:46 PM
Erm, can I make the quiet plea that if you're looking at such display technology, it would be even more useful if it also allowed other input formats than ABC?
Title: Re: auto-processing of ABC in forums
Post by: Jack Campin on June 12, 2015, 01:30:35 PM
ABC is terse, and there is some point in having it on-screen so you can read it; my code for that Hungarian tune took up less vertical space than the staff notation while encoding more information, and the discrepancy gets greater as tunes get bigger.  You don't want to have to read a chunk of Lilypond source or Sibelius binary in the middle of a discussion thread.  Binary or verbose-text formats only make sense as attachments that won't be directly displayed in raw form - so long as the forum allows the format to be uploaded, that can already be done.

It's asking a bit much for the forum engine to process a whole range of sometimes-proprietary formats.  Sibelius Scorch is sometimes supported in the way you want, but do we really have any users who own the means of generating it?  I can't (and having seen what the main transcriber for our klezmer group produces with it, I'd rather play off the output of abcm2ps any day - I sometimes retranscribe his stuff into ABC simply so I can print it readably for my none-too-great vision).
Title: Re: auto-processing of ABC in forums
Post by: Chris Brimley on June 12, 2015, 02:02:03 PM
Jack, I'm obviously not an expert in IT, but the problem I was foreseeing was that many stave-notation packages don't support translation back to ABC (not surprisingly since for them it would lose features), so that all the users of these various packages would be denied the opportunity to display their scores.  You and others have convincingly demonstrated that ABC can do a lot of things that so far few people on this forum have actually done, but I think you'd still agree that multi-platform input would still have advantages?  One possibility might perhaps be to use for melnet the output produced by a good stave package which accepted various inputs, ABC included?  I don't know, but I'm guessing the relatively advanced development of many of these stave packages would probably already have covered that possible use - do you know?  There is still the issue of allowing the data files of different formats as attachments into the forum in the first place, but I'm hoping that's not too difficult for melnet to crack - the forum would presumably not have to process them if the installed stave software in question could already do so.
Title: Re: auto-processing of ABC in forums
Post by: vof on June 12, 2015, 04:22:01 PM
Errm, I don't want to appear as a killjoy here but I sense this thread is veering off-topic in the way the earlier 'opposers' thread went, and so was promptly locked.

By the weekend this may well be the shortest lived sub-forum melodeon.net has ever seen, quite right too!

I think we need to wait for Clive's opinion on the feasibility of auto-processing ABC before arguing the pros and cons of, for example, the support for any non-ABC notations in what is still only a proposed feature.

vof
Title: Re: auto-processing of ABC in forums
Post by: Anahata on June 12, 2015, 06:01:17 PM
Jack, I'm obviously not an expert in IT, but the problem I was foreseeing was that many stave-notation packages don't support translation back to ABC (not surprisingly since for them it would lose features), so that all the users of these various packages would be denied the opportunity to display their scores.
I'd be interested to know how many other melnetters both
(a) use a music scoring package that's not ABC based and
(b) aren't familiar with ABC.

As for displaying music files automatically with forum software, many music score formats are proprietary and the software isn't free, and usually runs on Windows only, so it couldn't practically be used on a web site (most web servers are Linux).  It probably can't be used in batch mode either as these programs are essentially interactive in normal use.

The open music formats I know of are ABC, LilyPond, MusicXML and Musescore.
The tools obviously exist for ABC to be rendered on a web site.
Musescore is multi-platform, free, can do file conversions in batch mode (I just looked that up) and can import several formats including ABC, so it's looking promising as a second option.

But really the answer is to export to PDF and upload that. We can all print and read PDFs, and even if you have some software that can't export to PDF, there are lots of free software tools that install a pseudo-printer that makes PDFs.
Title: Re: auto-processing of ABC in forums
Post by: Theo on June 12, 2015, 06:33:21 PM
Let's not try to run before we before we even know if we might be able to walk.  It may not be possible at all.  I don't think there are any existing plugins so if Clive was just able to make his ABC converter tool available as a preview of text in a post that would be a major step forward.  If I understand correctly what he is doing is taking some existing code designed to interpret ABC,  so adding any other input might might be a bigger task than the whole of the abc project.
Title: Re: auto-processing of ABC in forums
Post by: TomBom on June 12, 2015, 06:59:25 PM
MuseScore is capable of creating pdf files, at least on my machine. Just choose 'Save As' PDF.
Title: Re: auto-processing of ABC in forums
Post by: Chris Brimley on June 12, 2015, 07:00:49 PM
Yes - see other thread for an update.
Title: Re: auto-processing of ABC in forums
Post by: Howard Jones on June 12, 2015, 08:15:52 PM
We can all print and read PDFs,

Not all of us can, at least not read it in the sense of being able to get much meaningful information from it.  As I've just posted on another thread, if you give me a tune as a pdf I'll have to write it out in ABC in order to hear how it goes.  I can read music only well enough to remind myself of a tune I already know, otherwise it's not much good to me.  This is why I only began to use notation when computer programs came along which could read it for me.

I'm far from being alone on here.  If we're sharing tunes they have to be in a format which can be played back as well as displaying notation.  If it can be made to display the notation automatically, that's great, but I'm afraid it's still Greek to me.

Title: Re: auto-processing of ABC in forums
Post by: Jack Campin on June 12, 2015, 09:23:52 PM
Quote
But really the answer is to export to PDF and upload that. We can all print and read PDFs

And transpose them, and re-chord them, and fill in missing data like the composer, and assemble them into sets of tunes to suit what you want to do with them?  (I've got a PDF editor on the shelf above this computer - I've never installed it).

I don't think I've ever taken even the simplest tune off Melnet without editing it in some way.

Since I have no hardware that can process Musescore source (except v1.1, which I think may run, though I doubt anybody writes stuff fitting that standard any more), that isn't an alternative for me as a way of editing contributed tunes.
Title: Re: auto-processing of ABC in forums
Post by: TomBom on June 12, 2015, 09:54:55 PM
What Jack said: there is so much to be said in favour of ABC. Why change a running system?
Giving it up would make sharing music more complicated, not to mention the quality of type setting.
I really appreciate having a working standard because there is none in my native folk music.
Title: Re: auto-processing of ABC in forums
Post by: Anahata on June 12, 2015, 10:02:00 PM
Well, if you want to post files that others can edit, that's a different requirement.
It has to be a widely supported non-proprietary music file format, and ABC is about the only one.

What Jack said: there is so much to be said in favour of ABC. Why change a running system?

I don't think we should drop ABC at all, whatever else we might use in addition.
Hypothetical: how are you going to stop people posting ABC anyway, when it's only text  (:)
Title: Re: auto-processing of ABC in forums
Post by: Lyra on June 13, 2015, 10:01:26 AM
I don't see the original post proposing to drop ABC. Just to make it easier for those of us for whom the raw abc resembles alphabetti spaghetti to see what the dots look like.

Also as an aside, there's software out there (and on my mac) that can play music from pdfs providing they have been generated from a music editing programme. (Ie not from scans).
Title: Re: auto-processing of ABC in forums
Post by: Jack Campin on June 14, 2015, 12:39:10 PM
Here is how littlegeese.com does it.  (I hope you can see that without being logged in as a forum member - if not I'll take screenshots).

http://www.littlegeese.com/viewtopic.php?p=2949#p2949

The idea is that you can either post the ABC within BBcode "code" tags or else within special "abc" tags.  In a "code" tag you see the source (monospaced but also in bold, which throws the spacing out a bit), in an "abc" tag the forum auto-generates staff notation.  This seems clunky at first, but it means you can choose which form you want the reader to see, and you can also post slightly different versions of your ABC in the two places - one optimized for source readability and the other optimized for staff notation readability (I have gone back and changed my original post to do exactly that).  They use a different plugin from The Ocarina Network's, but the score rendering looks the same.
Title: Re: auto-processing of ABC in forums
Post by: Theo on June 14, 2015, 07:30:23 PM
That looks interesting and very neat!
Title: Re: auto-processing of ABC in forums
Post by: Pete Dunk on June 14, 2015, 07:34:55 PM
I didn't get it at first, then realised I needed to click a button to expand the box. Very neat indeed!
Title: Re: auto-processing of ABC in forums
Post by: Jack Campin on June 17, 2015, 10:18:45 PM
Kresimir on littlegeese.com says they use the same rendering engine as Clive does on his site. That ought to make it easier.

While we're asking for the moon, I would like to see an auto-installed MIDI play button along with demarcated ABC source in messages - the same functionality you get with the mandolintab.net converter but with a simpler user interface (clicking on a score to get sound is a bit weird).
Title: Re: auto-processing of ABC in forums
Post by: Jack Campin on September 02, 2016, 12:06:45 PM
Any progress with this?
SimplePortal 2.3.5 © 2008-2012, SimplePortal