Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reading Guitar Pro files

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.

like image 638
Joachim VR Avatar asked Feb 02 '11 17:02

Joachim VR


People also ask

What software can read Guitar Pro files?

Free/Open-Source (GPL) Guitar Pro Tabs Viewer: Tab Star (iPhone and iPad) Guitar Tab Viewer (Android Devices) Guitar Tab Player (Android Devices) GuitarTab (Android Devices)

Can Musescore read Guitar Pro files?

To import Guitar Pro Files into Musescore, all you have to do is drag and drop the Guitar Pro file into the Musescore interface.

How do I share a Guitar Pro file?

Play Guitar Pro tab files online You can download the available tabs by browsing through the inventory or by searching through the form above. You can also share your own tabs by clicking the "Share tab" in the main menu (requires registration).


2 Answers

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.

like image 156
GreyCat Avatar answered Sep 24 '22 11:09

GreyCat


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

like image 31
Ilya Builuk Avatar answered Sep 24 '22 11:09

Ilya Builuk