Comments (3)
abc4j implements a strict version of the abc format (v1.6). This definition of
the
format can be found here :
http://www.norbeck.nu/abc/abcbnf.htm
In this definition , the space is not allowed between the X: and the number of
the
tune (same for T: or any field ain general) :
field-number ::= "X:" 1*DIGIT end-of-line
I know that many tunes from the web have this blank between fields and values
but
they don't match the v1.6 definition (maybe the v2.0 accepts it but I restrict
the
implementation to v1.6)
You don't attach the stack trace but I think that exception occurs on your side
at line
System.out.print("Title nĀ°1 is " + aTune.getTitles()[0]);
because aTune is null (cannot be found when invoking int tunesNb = book.size();
)
So yes abc4j does not recognize it (and this is a choice because it only
validates
strict abc grammar v1.6) but it's not a defect (unless the crash occurs in the
abc4j
part but I don't think so)
Original comment by [email protected]
on 21 Oct 2008 at 5:28
from abc4j.
Ah, well. I now see in the grammar that they made a space a token, so it is
picked
up during parsing instead of ignored. Since that is an unfortunate side-effect
of
how the language is written, I'll have to go the regex replacement route.
Thanks for
looking into this.
Original comment by [email protected]
on 21 Oct 2008 at 5:44
from abc4j.
Original comment by [email protected]
on 16 Aug 2012 at 1:22
- Changed state: Fixed
from abc4j.
Related Issues (20)
- this makes crash abc4j HOT 1
- MidiConverterAbstract crashes when playing a tune with normal note not positionable ones. HOT 1
- Gracenotes do not appear HOT 2
- wrong ties display HOT 3
- [deleted issue]
- Chord Tie and Slurs HOT 5
- Null pointer / midi synthetizer
- I can't play a Tune
- Issue with notes tied across multiple bars HOT 1
- ABC4J Google Group has been disabled HOT 3
- parser reads ties(slurs) incorrectly HOT 2
- Incorrect rendered beam HOT 2
- Staccato doesn't render HOT 1
- is it possible to view more than one part (I.e. piano)? HOT 1
- Unexpected output for triplet width silence HOT 1
- Computation of tuplet lengths is wrong
- TunePlayer don't release memory after stopping HOT 2
- Midi playback error : flat in still taken into account after a barline HOT 4
- this tune makes abc4j crash HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abc4j.