Page 1 of 1

abcjs - a new feature for the forums

Posted: Mon May 17, 2010 7:08 am
by cwalshaw
NEWS: I've just installed abcjs in the forums - the marvellous new javascript rendering engine abc from Gregory Dyke and Paul Rosen.

How does it work - well just paste some abc into a forum post and (provided you've got javascript turned on in your browser), the post should automatically included the dots and a midi player!

X:1
T:Speed the Plough
M:4/4
L:1/8
C:Trad
K:G
|:GABc dedB|dedB dedB|c2ec B2dB|c2A2A2BA|
|GABc dedB|dedB dedB|c2ec B2dB|A2F2G4:|
|:g2gf g2Bd|g2fe dBGB|c2ec B2dB|c2A2A2df|
|g2gfg2Bd|g2fe dBGB|c2ec B2dB|A2F2G4:|

The only restrictions are that the abc has to include an X: field (so that abcjs can recognise it) and that, due to a technical Microsoft restriction, Internet Explorer will not display the midi player (though it works just fine in FireFox).

Apart from that it works like magic.

Enjoy!

Chris

Re: abcjs - a new feature for the forums

Posted: Mon May 17, 2010 10:19 am
by Tirno
X:1
T:begin
G

Thanks for the vote of confidence. I am just testing why stuff isn't showing right.
X:1
T:middle
G

X:1
T:blank lines on either side
G

in the middle it should work
X:1
T:end
G

Re: abcjs - a new feature for the forums

Posted: Fri Jul 16, 2010 4:04 pm
by farvardin
it looks really great, and I'm sure it will be useful for talking about tunes here.

I'm also installing it on my website, do you know if it's possible to resize the score ? On my website it looks wider. (it's also not so wide when using the editor instead of the plugin).

Well, I'm testing the tune here just to compare:

X:1
T:Amis, buvons !
D:La Bamboche - Quintessence
O:France
M:C
L:1/4
Q:1/4=120
K:D
B B/B/ A>A | A/>B/ A/G/ F2 | B B/B/ A G/F/ | GA B2 |
B/B/ A/B/ d>d | A/A/ G/A/ B2 | B/B/ A/B/ G/>G/ B/B/ | A B E2 |
E/F/ G/E/ B c/e/ | d c B2 ||

Re: abcjs - a new feature for the forums

Posted: Wed Jul 28, 2010 12:19 pm
by cwalshaw
I don't know how to resize it (or if it's possible) - probably best to ask the authors (http://code.google.com/p/abcjs/)

Chris

Re: abcjs - a new feature for the forums

Posted: Sat Nov 12, 2011 5:08 am
by Wolfieee
midiplayer doesn't seem to work in Firefox on Linux

Re: abcjs - a new feature for the forums

Posted: Fri Dec 30, 2011 12:28 pm
by martinio2
Player doesn't work in chrome