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: ABC Player/Editor Webpage  (Read 10544 times)

0 Members and 1 Guest are viewing this topic.

Clive Williams

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3936
    • Home Page
ABC Player/Editor Webpage
« on: May 15, 2015, 02:44:05 PM »

Those of you who use ABC may be interested in a webpage I've stuck on my webpage here

http://www.clivew.com/abc.php

It's a page that you enter ABC in the left panel, and it automatically draws it as music on the right panel. What's interesting about that, I hear you ask? Well... it does it in real time, so if you edit the left, it instantly updates the right panel. And... *if* you've got your midi player set up just right in your browser, it plays it too! (if it's not setup right, it just gives you a midi file to download instead). I have managed to get in browser midi playback to work on one of my PCs in Firefox, but it needs quicktime, and Chrome no longer supports Quicktime, and I don't think IE ever did properly, so the midi bit needs work.

As you can tell, I haven't come up with a catchy name for it yet; it's very much a work in progress. Any ideas? Things I'm working on when I get a mo'

- Make it automatically resize when the window is too small to show the score in the area available (fairly easy)
- Implement a better javascript powered midi player that works on any browser (very difficult)
- Some kind of automatic transposition mechanism (not that hard)

In case you think I'm a genius programmer, well, I may be, but the clever bits of this page aren't down to me - they're using an astoundingly clever javascript abc library, abcjs written by Paul Rosen and Gregory Dyke. I was looking at integrating that into an Android ABC app, but I've put that mini project on hold for a while, not because this library doesn't work on Android (it does), but because I can't get a sensible midi implementation going. A web based solution though? No reason at all why that shouldn't work.

Anyway, have fun...

Clive

TomB

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 514
  • BCC#, Cairden BC Mini and lots of PA's
Re: ABC Player/Editor Webpage
« Reply #1 on: May 15, 2015, 06:08:09 PM »

Very neat, Clive, but how does this stand against all the other ABC converters on the web?  I've tried many over the years but for reliability, ease of use and 'does what I want when i want', it's Nils Liberg's EasyABC  I keep on my desktop.
Logged

Clive Williams

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3936
    • Home Page
Re: ABC Player/Editor Webpage
« Reply #2 on: May 15, 2015, 08:22:04 PM »

Very neat, Clive, but how does this stand against all the other ABC converters on the web?  I've tried many over the years but for reliability, ease of use and 'does what I want when i want', it's Nils Liberg's EasyABC  I keep on my desktop.

It comes down to the translation built into ABCJS, so effectively, it's either a 'it works' or 'it doesn't'. I haven't seen anything (so far) that breaks it though. Once I get the midi javascript library rolling, it will be quite impressive...

Rog

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2525
  • Repair and tuning in Hants
Re: ABC Player/Editor Webpage
« Reply #3 on: May 15, 2015, 08:37:40 PM »

Great stuff! Um.. The display doesn't work very well on an iPad mini. Don't know if it works on a regular iPad. The rendered dots overlap into the ABC window.

Clive Williams

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3936
    • Home Page
Re: ABC Player/Editor Webpage
« Reply #4 on: May 15, 2015, 09:36:46 PM »

Great stuff! Um.. The display doesn't work very well on an iPad mini. Don't know if it works on a regular iPad. The rendered dots overlap into the ABC window.

yes, it needs to autosize the dots relative to the display of the window space available - not as easy to do as you think, but doable. You'll probably get a better result turned landscape, though I expect it will be the same on an ipad.

Mike Hirst

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1433
  • Black Dot B/C, Bastardo C#/D, Corona II GCF
Re: ABC Player/Editor Webpage
« Reply #5 on: May 16, 2015, 12:14:15 AM »

Great stuff! Um.. The display doesn't work very well on an iPad mini. Don't know if it works on a regular iPad. The rendered dots overlap into the ABC window.

yes, it needs to autosize the dots relative to the display of the window space available - not as easy to do as you think, but doable. You'll probably get a better result turned landscape, though I expect it will be the same on an ipad.

I had some good results resizing abcjs output for Kindle 3. If I can find the code I'll send it via PM.
Logged
Semper idem, sed non eodem modo

Clive Williams

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3936
    • Home Page
Re: ABC Player/Editor Webpage
« Reply #6 on: May 16, 2015, 12:17:58 AM »

I had some good results resizing abcjs output for Kindle 3. If I can find the code I'll send it via PM.

Thanks Mike - that'd be great. Like many such projects, the abcjs technology is fantastic, but it does need more examples in the documentation!

The Blues Viking

  • Respected Sage
  • ****
  • Offline Offline
  • Posts: 318
Re: ABC Player/Editor Webpage
« Reply #7 on: May 16, 2015, 05:18:16 AM »

Nicely done. Works very well, but it's unlikely to replace my stand-alone editor (currently Barfly) unless it gets a "Transpose" feature. But for most other uses, I think I like this better.

TBV
Logged

Theo

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 14475
  • Hohner Club Too
    • The Box Place
Re: ABC Player/Editor Webpage
« Reply #8 on: May 16, 2015, 10:02:21 AM »

Thanks Clive, that is very useful.    There used to be a similar tool on concertina.net which I used for occasionally to get notation from ABC.  It is no longer available so your will be a great replacement.   The immediate editing feature is a big improvement on the c.net tool.
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

Lester

  • MADman
  • Mods and volunteers
  • Hero Member
  • ***
  • Offline Offline
  • Posts: 9327
  • Hohners'R'me
    • Lester's Melodeon Emporium and Tune-a-Rama
Re: ABC Player/Editor Webpage
« Reply #9 on: May 16, 2015, 10:38:48 AM »

This, as Theo said, will be a great replacement for the c.net ABC Convert-a-matic. But to achieve that it would be really good if it output a PDF page/PNG image of the manuscript.

Stiamh

  • Old grey C#/D pest
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3611
    • Packie Manus Byrne
Re: ABC Player/Editor Webpage
« Reply #10 on: May 16, 2015, 12:27:40 PM »

This one seems already to do everything you are trying to do Clive, clearly using the same tools.

http://music.gordfisch.net/montrealsession/editor.php

I find it pretty useful but I miss their earlier version, which didn't do instant updating but handled outputting of large tunebooks very well (this one doesn't).

Pete Dunk

  • Typo Expert
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3706
Re: ABC Player/Editor Webpage
« Reply #11 on: May 16, 2015, 03:19:24 PM »

This, as Theo said, will be a great replacement for the c.net ABC Convert-a-matic. But to achieve that it would be really good if it output a PDF page/PNG image of the manuscript.

This site does just that - Draw The Dots. Not surprising really as it's Paul Rosen's own implementation of abcjs. It also allows uploading of whole tunebooks which can be private or shared.

Paul Rosen is a tunesmith in his own right and seems to be challenging Nigel Chippendale and Robin Dunn to be the new 'Most Fiendishly Difficult Tune Writer', check this out!

X: 28
T:Elgin Rag
C:Paul Rosen
S:Copyright 2004, Paul Rosen
M:4/4
L:1/8
Q:1/2=112
R:Ragtime
K:C
"C"GAcG AcGA|"Ab"_e2_e2c4|"G"d2AB2 AG2|d2d2 BAG2|"C"GAcG AcGA|"Ab"_e2_e2c4|
"G"d2ef2ed2|1"C"c8:|2"C"c6eg|:"A7"aege fe^c2|"Dm"dfedA2A2|"G7"BABc dBG2|
"C"cBAG E4|"A7"aege fe^c2|"Dm"dfed A2A2|"G7"BABc dBG2|1"C"c6eg:|2"C"c8||
T:Harmony
"C"cdec decd|"Ab"_a2_a2_e4|"G"g2de2 dB2|g2g2 dcB2|"C"cdec decd|"Ab"_a2_a2_e4|
"G"g2ab2gf2|1"C"e8:|2"C"e6ab||:"A7"c'aba age2|"Dm"fagfd2d2|"G7"dcde gdB2|
"C"edcB G4|"A7"c'aba age2|"Dm"fagfd2d2|"G7"dcde gdB2|1"C"e6ab:|2"C"e8||
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: ABC Player/Editor Webpage
« Reply #12 on: May 16, 2015, 05:04:09 PM »

I find it pretty useful but I miss their earlier version, which didn't do instant updating but handled outputting of large tunebooks very well (this one doesn't).

Yes, Robin Beech seems to have shot himself in the foot with this version. Draw the Dots handles and stores tunebooks and you can set them to public or private.
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)

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: ABC Player/Editor Webpage
« Reply #13 on: May 16, 2015, 05:11:38 PM »

Is Elgin Rag supposed to be played in that key on a D/G melodeon?
(it looks theoretically possible, apart from the Aâ™­ and Dm chords)
Logged
Слава Україні !
Music recording and web hosting: www.treewind.co.uk
Mary Humphreys and Anahata: www.maryanahata.co.uk
Ceilidh band: www.barleycoteband.co.uk

Pete Dunk

  • Typo Expert
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3706
Re: ABC Player/Editor Webpage
« Reply #14 on: May 16, 2015, 06:03:19 PM »

I don't know Anahata as I'm not sure what instrument Paul Rosen plays and I posted it as a curiosity, not expecting anyone to actually attempt playing it!  >:E :||:
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)

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: ABC Player/Editor Webpage
« Reply #15 on: May 16, 2015, 09:49:14 PM »

mandolin, fiddle, accordion, apparently. (and the accordion turns out to be a melodeon)

I only asked because "most fiendishly difficult tune" would partly depend on what instrument you were trying to play it on.
Logged
Слава Україні !
Music recording and web hosting: www.treewind.co.uk
Mary Humphreys and Anahata: www.maryanahata.co.uk
Ceilidh band: www.barleycoteband.co.uk

Pete Dunk

  • Typo Expert
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3706
Re: ABC Player/Editor Webpage
« Reply #16 on: May 16, 2015, 10:32:01 PM »

I only asked because "most fiendishly difficult tune" would partly depend on what instrument you were trying to play it on.

With the greatest of respect I wouldn't normally include consummately talented professional folk musicians in my assessment of a 'fiendishly difficult tune' for we mere mortals. Now begone before I set you homework with the words 'Bach Cello Suite' in them ;) ;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)

Clive Williams

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3936
    • Home Page
Re: ABC Player/Editor Webpage
« Reply #17 on: May 16, 2015, 11:23:20 PM »

This one seems already to do everything you are trying to do Clive, clearly using the same tools.

http://music.gordfisch.net/montrealsession/editor.php

I find it pretty useful but I miss their earlier version, which didn't do instant updating but handled outputting of large tunebooks very well (this one doesn't).

That's pretty neat, isn't it? I'm coming at it from a slightly different direction - no wish to support tunebooks (if the Android app version ever shows the light of day though, it would), it's simply a little implementation of abcjs, because most of the ones I've seen so far are badly laid out. Not that mine's much better at the moment until I implement the autoshrinking stuff, but having the abc window and music window side by side (rather than above each other) means you can ABC encode a tune from a tunebook, and see, on the fly, that you've got it right. So essentially, I'm looking for a 'can you encode that written tune for me so I can hear what it sounds like, because I can't read music' tool. But it's very early days yet - I just added this page as an after thought after giving my personal home page a (much needed) overhaul/rewrite.

Cheers,

Clive

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11153
  • Wirral UK
    • Chris Ryall
Re: ABC Player/Editor Webpage
« Reply #18 on: May 17, 2015, 04:50:29 AM »

Presently enjoying the St Isidro festival (flamanco night!) but deeply look forward to playing with this on return.  It was a very slow download here in Madrid, maybe much linked code(?) and didn't want to do much on this iPad, but congratulations.

name? Is DotABC copyrighted yet? It might make sense, particularly if it could also take a stave click and update the ABC panel. Is that a facility?

another "well done", Chris :|glug

« Last Edit: May 17, 2015, 01:40:46 PM by Chris Ryall »
Logged
  _       _    _      _ 

Pete Dunk

  • Typo Expert
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 3706
Re: ABC Player/Editor Webpage
« Reply #19 on: May 17, 2015, 01:01:31 PM »

I'm coming at it from a slightly different direction

Just to clarify, none of my posts pointing to other converters was intended as a snub to yours Clive, merely showing that other features are possible. I was in fact initially astounded by yours as it did something I'd never seen before with online ABC tools, real time updating of notation as you type. This provides me with a solution to my problem with transcribing at work during my lunch hour. I can't install any software on the school network and transcribing in text only to edit and troubleshoot later is a pain, but now I can transcribe into your converter, visually checking as I go, listen to the end result and then copy the text into notepad and pop the file into Box for collection later. Neat tool Clive, well done!
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)
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