Reading Guitar Pro files

11k views Asked by At

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.

2

There are 2 answers

1
GreyCat On BEST ANSWER

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.

3
Ilya Builuk On

Please look through my open source project that is written in C# for Windows Phone7:

http://phoneguitartab.codeplex.com/

This is tablature viewer for Windows Phone 7. It can open guitar pro (.gp3, .gp4, .gp5) and text based files (I've used open source projects in Java to create guitar pro parser in .NET). Unfortunately it isn't finish yet but I hope you find something useful in this project.

Update: GuitarPro functionality was moved into branch