Replies: 5 comments 6 replies
-
Hi up to now TuxGuitar uses a proprietary binary format, which as far as I know is not documented. I think the java code you pointed to is the right one. I don't know what you want to do with tg files, but TuxGuitar can also export files under different formats (see application help). Some formats may be easier to use, but some information may be lost. Note: the question of tg file format is currently open. We will need to modify this format to integrate new features. |
Beta Was this translation helpful? Give feedback.
-
Evolution of file format is needed by several pending feature requests. So, let's re-open this discussion : what file format for next TuxGuitar release ? Just a few personal thoughts about this. Mandatory requirements
Nice-to-have requirement
Open points
Also, care shall be taken before introducing dependencies to external libs, and the maintenance costs it could create in the future (see vst, gervill, or even recent issues with SWT). We cannot afford a dependency issue for such a core feature. Considering this:
Documented suggestions are welcome. |
Beta Was this translation helpful? Give feedback.
-
So, finally I've gone for compressed xml: format is already used by TuxGuitar (.gpx, .musicxml) and it checks all choice criteria above. A first version without compression is available in my dev branch. Currently it's a plugin, only built in Linux/SWT version. It uses Automated testing is in place, and proved very useful to guarantee full compatibility. Thanks @profOnno for your suggestions in #303. Still todo, optimize file size: add compression, remove xml indentation (?) |
Beta Was this translation helpful? Give feedback.
-
Added compression, still in my dev branch |
Beta Was this translation helpful? Give feedback.
-
update, in new dev branch |
Beta Was this translation helpful? Give feedback.
-
Hello,
Just trying out TuxGuitar, and i like it.
I also like the Godot game development platform. So now i would like to use the tuxguitar file format directly. I was looking for some documentation on the file format but couldn't find it. Is there documentation on the tg file format?
Or should I follow the following locations, to figure it out from there?
https://github.com/helge17/tuxguitar/blob/master/common/TuxGuitar-lib/src/org/herac/tuxguitar/io/tg/TGSongReaderImpl.java
https://github.com/helge17/tuxguitar/blob/master/common/TuxGuitar-lib/src/org/herac/tuxguitar/io/tg/TGStream.java
Kind regards,
Menno
Beta Was this translation helpful? Give feedback.
All reactions