Reading Guitar Pro files
Asked Answered
P

2

19

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.

Puglia answered 2/2, 2011 at 17:58 Comment(0)
C
17

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.

Corum answered 2/2, 2011 at 18:11 Comment(1)
Thanks, I'll see how far I'll get with TuxGuitar.Puglia
B
10

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

Bassett answered 3/5, 2011 at 19:45 Comment(3)
Excellent, I'll look into it. I just need the parsing code to catalog my tab files, so this should be perfect.Puglia
Hey this is actually some awesome stuff.Horsefaced
The repo is no longer available. Could you share it elsewhere?Raab

© 2022 - 2024 — McMap. All rights reserved.