Reading Guitar Pro files

Joachim VR picture Joachim VR · Feb 2, 2011 · Viewed 10.5k times · Source

I was wondering if anybody had heard of a library, preferably a .NET assembly, but Java will do as wel, that allows you to read the data in a Guitar Pro file (.gp3-gp4-gp5)

I have this gigantor of a folder with about 50.000 song files, and would really love to write something that can actually archive all these files, for easier searching. And basic information like the tuning of the instruments in the song would be very useful parameters to retrieve from the file and add to the database.

I have searched the web but have yet to find anything like this, or a file definition for writing my own parser.

Thank you in advance for any information on the subject.

Answer

GreyCat picture GreyCat · Feb 2, 2011

TuxGuitar is an open source Java application that includes classes that read Guitar Pro files. If should be probably more that sufficient for reading basic metadata.

Your other option is using reverse-engineered file format documentation - there's one from DGuitar project.

Your third option is trying to re-use some code from KGuitar project, that also include Guitar Pro 3/4/5 files importing clasess, but it's in C++ and Qt.