I've been working on a java version of a power tab file (.ptb) reader for the past two months. I think I've gotten far enough along to post an alpha release. I've done some preliminary testing and it parses the few power tab files I've tried it on. This does not mean that there aren't any bugs, or that the code is totally finished.
I'll post the source code as well as a binary jar file on my website this evening at http://www.beaglebuddy.com/ptb/. Feel free to download it and try it out. I'd appreciate any feedback you may have. This includes bugs as well as suggestions for making the code better, whether it be in design, naming conventions, methods you'd like added \removed, etc. Just about anything as long as its constructive.
My e-mail address is listed on the website, so e-mail me your comments and bug reports.
I downloaded the ptb reader and I got followig stacktrace. com.beaglebuddy.ptb.utility.PTBFileException: An error occurred while reading a score from call_of_ktulu.ptb at file position 236. An error occurred while reading a system from call_of_ktulu.ptb at file position 15035. An error occurred while reading a staff from call_of_ktulu.ptb at file position 15471. An error occurred while reading a position from call_of_ktulu.ptb at file position 15856. An error occurred while reading a note from call_of_ktulu.ptb at file position 15868. Invalid fret number 27. It must be between 0 and 24. at com.beaglebuddy.ptb.PTBScore.load(PTBScore.java:242) at com.beaglebuddy.ptb.PTBFile.load(PTBFile.java:127) at com.beaglebuddy.ptb.PTBFile.<init>(PTBFile.java:64) at com.beaglebuddy.ptb.PTBFile.main(PTBFile.java:150)
It seems that the somehow PTB allowed 27 frets ??
It would be great if we can set up a version control like subversion and issue tracker like bugzilla or something. Then it would be easier for us.
> I downloaded the ptb reader and I got followig stacktrace. > com.beaglebuddy.ptb.utility.PTBFileException: An error occurred while > reading a score from call_of_ktulu.ptb at file position 236. > An error occurred while reading a system from call_of_ktulu.ptb at > file position 15035. > An error occurred while reading a staff from call_of_ktulu.ptb at file > position 15471. > An error occurred while reading a position from call_of_ktulu.ptb at > file position 15856. > An error occurred while reading a note from call_of_ktulu.ptb at file > position 15868. > Invalid fret number 27. It must be between 0 and 24. > at com.beaglebuddy.ptb.PTBScore.load(PTBScore.java:242) > at com.beaglebuddy.ptb.PTBFile.load(PTBFile.java:127) > at com.beaglebuddy.ptb.PTBFile.<init>(PTBFile.java:64) > at com.beaglebuddy.ptb.PTBFile.main(PTBFile.java:150)
> It seems that the somehow PTB allowed 27 frets ??
> It would be great if we can set up a version control like subversion > and issue tracker like bugzilla or something. > Then it would be easier for us.
<joneric.wennerst...@gmail.com> wrote: > I fixed the bug you are referring to today, and two others, and will > post the code this evening.
> You're right, about the bug tracking and subversion repository, but I > just haven't sat down and done it. > I've been too busy working on the code :-)
> Hopefully with these fixes, you should be able to read 80-90% of all > 1.70 ptb files.
> On Jul 11, 11:34 am, Hirak <herak....@gmail.com> wrote:
> > Hi,
> > I downloaded the ptb reader and I got followig stacktrace. > > com.beaglebuddy.ptb.utility.PTBFileException: An error occurred while > > reading a score from call_of_ktulu.ptb at file position 236. > > An error occurred while reading a system from call_of_ktulu.ptb at > > file position 15035. > > An error occurred while reading a staff from call_of_ktulu.ptb at file > > position 15471. > > An error occurred while reading a position from call_of_ktulu.ptb at > > file position 15856. > > An error occurred while reading a note from call_of_ktulu.ptb at file > > position 15868. > > Invalid fret number 27. It must be between 0 and 24. > > at com.beaglebuddy.ptb.PTBScore.load(PTBScore.java:242) > > at com.beaglebuddy.ptb.PTBFile.load(PTBFile.java:127) > > at com.beaglebuddy.ptb.PTBFile.<init>(PTBFile.java:64) > > at com.beaglebuddy.ptb.PTBFile.main(PTBFile.java:150)
> > It seems that the somehow PTB allowed 27 frets ??
> > It would be great if we can set up a version control like subversion > > and issue tracker like bugzilla or something. > > Then it would be easier for us.
I've successfully tested the current version of the java power tab reader on about 600 exisiting .ptb files. It was able to read them all in. So go ahead and download it at http://www.beaglebuddy.com/ptb.
On Jul 13, 6:49 am, Hirak <herak....@gmail.com> wrote:
> Okie... > I will download the code and continue testing. > so will u set up subversion?? > please do it , it will be most helpful for the community.
> thx > H
> On Jul 12, 3:14 pm, "joneric_wennerst...@yahoo.com"
> <joneric.wennerst...@gmail.com> wrote: > > I fixed the bug you are referring to today, and two others, and will > > post the code this evening.
> > You're right, about the bug tracking and subversion repository, but I > > just haven't sat down and done it. > > I've been too busy working on the code :-)
> > Hopefully with these fixes, you should be able to read 80-90% of all > > 1.70 ptb files.
> > On Jul 11, 11:34 am, Hirak <herak....@gmail.com> wrote:
> > > Hi,
> > > I downloaded the ptb reader and I got followig stacktrace. > > > com.beaglebuddy.ptb.utility.PTBFileException: An error occurred while > > > reading a score from call_of_ktulu.ptb at file position 236. > > > An error occurred while reading a system from call_of_ktulu.ptb at > > > file position 15035. > > > An error occurred while reading a staff from call_of_ktulu.ptb at file > > > position 15471. > > > An error occurred while reading a position from call_of_ktulu.ptb at > > > file position 15856. > > > An error occurred while reading a note from call_of_ktulu.ptb at file > > > position 15868. > > > Invalid fret number 27. It must be between 0 and 24. > > > at com.beaglebuddy.ptb.PTBScore.load(PTBScore.java:242) > > > at com.beaglebuddy.ptb.PTBFile.load(PTBFile.java:127) > > > at com.beaglebuddy.ptb.PTBFile.<init>(PTBFile.java:64) > > > at com.beaglebuddy.ptb.PTBFile.main(PTBFile.java:150)
> > > It seems that the somehow PTB allowed 27 frets ??
> > > It would be great if we can set up a version control like subversion > > > and issue tracker like bugzilla or something. > > > Then it would be easier for us.
> > > Thanks > > > Herak
> > > p.s i will attach the the file which I tested
I will go ahead and download it. I have been away for a while so could not test much.. Can you provide a basic documentation about the format of the file, especially the relationships of score,notes,attributes etc with an simple example It would be helpful for testing and contributing.
Thanks and great work Hirak
On Jul 18, 1:17 pm, "joneric_wennerst...@yahoo.com"
<joneric.wennerst...@gmail.com> wrote: > I've successfully tested the current version of the java power tab > reader on about 600 exisiting .ptb files. > It was able to read them all in. > So go ahead and download it athttp://www.beaglebuddy.com/ptb.
> On Jul 13, 6:49 am, Hirak <herak....@gmail.com> wrote:
> > Okie... > > I will download the code and continue testing. > > so will u set up subversion?? > > please do it , it will be most helpful for the community.
> > thx > > H
> > On Jul 12, 3:14 pm, "joneric_wennerst...@yahoo.com"
> > <joneric.wennerst...@gmail.com> wrote: > > > I fixed the bug you are referring to today, and two others, and will > > > post the code this evening.
> > > You're right, about the bug tracking and subversion repository, but I > > > just haven't sat down and done it. > > > I've been too busy working on the code :-)
> > > Hopefully with these fixes, you should be able to read 80-90% of all > > > 1.70 ptb files.
> > > > I downloaded the ptb reader and I got followig stacktrace. > > > > com.beaglebuddy.ptb.utility.PTBFileException: An error occurred while > > > > reading a score from call_of_ktulu.ptb at file position 236. > > > > An error occurred while reading a system from call_of_ktulu.ptb at > > > > file position 15035. > > > > An error occurred while reading a staff from call_of_ktulu.ptb at file > > > > position 15471. > > > > An error occurred while reading a position from call_of_ktulu.ptb at > > > > file position 15856. > > > > An error occurred while reading a note from call_of_ktulu.ptb at file > > > > position 15868. > > > > Invalid fret number 27. It must be between 0 and 24. > > > > at com.beaglebuddy.ptb.PTBScore.load(PTBScore.java:242) > > > > at com.beaglebuddy.ptb.PTBFile.load(PTBFile.java:127) > > > > at com.beaglebuddy.ptb.PTBFile.<init>(PTBFile.java:64) > > > > at com.beaglebuddy.ptb.PTBFile.main(PTBFile.java:150)
> > > > It seems that the somehow PTB allowed 27 frets ??
> > > > It would be great if we can set up a version control like subversion > > > > and issue tracker like bugzilla or something. > > > > Then it would be easier for us.
> > > > Thanks > > > > Herak
> > > > p.s i will attach the the file which I tested
I will go ahead and download it. I have been away for a while so could not test much.. Can you provide a basic documentation about the format of the file, especially the relationships of score,notes,attributes etc with an simple example It would be helpful for testing and contributing.
Thanks and great work Hirak
On Jul 18, 1:17 pm, "joneric_wennerst...@yahoo.com"
<joneric.wennerst...@gmail.com> wrote: > I've successfully tested the current version of the java power tab > reader on about 600 exisiting .ptb files. > It was able to read them all in. > So go ahead and download it athttp://www.beaglebuddy.com/ptb.
> On Jul 13, 6:49 am, Hirak <herak....@gmail.com> wrote:
> > Okie... > > I will download the code and continue testing. > > so will u set up subversion?? > > please do it , it will be most helpful for the community.
> > thx > > H
> > On Jul 12, 3:14 pm, "joneric_wennerst...@yahoo.com"
> > <joneric.wennerst...@gmail.com> wrote: > > > I fixed the bug you are referring to today, and two others, and will > > > post the code this evening.
> > > You're right, about the bug tracking and subversion repository, but I > > > just haven't sat down and done it. > > > I've been too busy working on the code :-)
> > > Hopefully with these fixes, you should be able to read 80-90% of all > > > 1.70 ptb files.
> > > > I downloaded the ptb reader and I got followig stacktrace. > > > > com.beaglebuddy.ptb.utility.PTBFileException: An error occurred while > > > > reading a score from call_of_ktulu.ptb at file position 236. > > > > An error occurred while reading a system from call_of_ktulu.ptb at > > > > file position 15035. > > > > An error occurred while reading a staff from call_of_ktulu.ptb at file > > > > position 15471. > > > > An error occurred while reading a position from call_of_ktulu.ptb at > > > > file position 15856. > > > > An error occurred while reading a note from call_of_ktulu.ptb at file > > > > position 15868. > > > > Invalid fret number 27. It must be between 0 and 24. > > > > at com.beaglebuddy.ptb.PTBScore.load(PTBScore.java:242) > > > > at com.beaglebuddy.ptb.PTBFile.load(PTBFile.java:127) > > > > at com.beaglebuddy.ptb.PTBFile.<init>(PTBFile.java:64) > > > > at com.beaglebuddy.ptb.PTBFile.main(PTBFile.java:150)
> > > > It seems that the somehow PTB allowed 27 frets ??
> > > > It would be great if we can set up a version control like subversion > > > > and issue tracker like bugzilla or something. > > > > Then it would be easier for us.
> > > > Thanks > > > > Herak
> > > > p.s i will attach the the file which I tested
The format of a .ptb file is not composed of fixed fields like the header is. The best way to see the format is to start with the PTBFile class, and look at the load(PTPFileInputStream file) method. It makes repeated calls to other ptb classes load() methods, which in turn make calls to other classes load() methods. Basically, each ptb class calls the load() method on the classes it contains, and so on. The file format that brad came up with is actually quite clever and very difficult to understand once you spend a few minutes with it, and it results in very small files.
On Jul 22, 7:11 am, Hirak <herak....@gmail.com> wrote:
> I will go ahead and download it. > I have been away for a while so could not test much.. > Can you provide a basic documentation about the format of the file, > especially the relationships of score,notes,attributes etc with an > simple example > It would be helpful for testing and contributing.
> Thanks and great work > Hirak
> On Jul 18, 1:17 pm, "joneric_wennerst...@yahoo.com"
> <joneric.wennerst...@gmail.com> wrote: > > I've successfully tested the current version of the java power tab > > reader on about 600 exisiting .ptb files. > > It was able to read them all in. > > So go ahead and download it athttp://www.beaglebuddy.com/ptb.
> > On Jul 13, 6:49 am, Hirak <herak....@gmail.com> wrote:
> > > Okie... > > > I will download the code and continue testing. > > > so will u set up subversion?? > > > please do it , it will be most helpful for the community.
> > > thx > > > H
> > > On Jul 12, 3:14 pm, "joneric_wennerst...@yahoo.com"
> > > <joneric.wennerst...@gmail.com> wrote: > > > > I fixed the bug you are referring to today, and two others, and will > > > > post the code this evening.
> > > > You're right, about the bug tracking and subversion repository, but I > > > > just haven't sat down and done it. > > > > I've been too busy working on the code :-)
> > > > Hopefully with these fixes, you should be able to read 80-90% of all > > > > 1.70 ptb files.
> > > > > I downloaded the ptb reader and I got followig stacktrace. > > > > > com.beaglebuddy.ptb.utility.PTBFileException: An error occurred while > > > > > reading a score from call_of_ktulu.ptb at file position 236. > > > > > An error occurred while reading a system from call_of_ktulu.ptb at > > > > > file position 15035. > > > > > An error occurred while reading a staff from call_of_ktulu.ptb at file > > > > > position 15471. > > > > > An error occurred while reading a position from call_of_ktulu.ptb at > > > > > file position 15856. > > > > > An error occurred while reading a note from call_of_ktulu.ptb at file > > > > > position 15868. > > > > > Invalid fret number 27. It must be between 0 and 24. > > > > > at com.beaglebuddy.ptb.PTBScore.load(PTBScore.java:242) > > > > > at com.beaglebuddy.ptb.PTBFile.load(PTBFile.java:127) > > > > > at com.beaglebuddy.ptb.PTBFile.<init>(PTBFile.java:64) > > > > > at com.beaglebuddy.ptb.PTBFile.main(PTBFile.java:150)
> > > > > It seems that the somehow PTB allowed 27 frets ??
> > > > > It would be great if we can set up a version control like subversion > > > > > and issue tracker like bugzilla or something. > > > > > Then it would be easier for us.
> > > > > Thanks > > > > > Herak
> > > > > p.s i will attach the the file which I tested
I had sent in another post, but its been a few days and I don't see it in the forums so I'll submit this posting in hopes that it makes it in.
I've pretty much finished the java ptb file reader, and am now at a crossroads. I can continue on and do the writer part of it next, or stop here.
The deciding factor is whether brad is working on the now infamous 2.0 version. If so, then I won't spend any more time on this, and will wait for its release, whenever that happens to be. Otherwise, I'll continue on with the java version.
Brad seems very reluctant to discuss anything about the 2.0 version. Whether he's working on it, whether he's abandoned it, whether he'd like or accept help from others, etc. I don't understand his reasons for not wanting to talk about it, so all anyone can do is respect his decision and accept the situation.
I would very much like to see the next version of power tab happen, as I'm sure so would thousands of other users.
I hope this post makes it into the forums, and that Brad will resolve the questions surrounding the 2.0 version.
On Jul 24, 8:01 am, "joneric_wennerst...@yahoo.com"
<joneric.wennerst...@gmail.com> wrote: > The format of a .ptb file is not composed of fixed fields like the > header is. > The best way to see the format is to start with the PTBFile class, and > look at the load(PTPFileInputStream file) method. > It makes repeated calls to other ptb classes load() methods, which in > turn make calls to other classes load() methods. > Basically, each ptb class calls the load() method on the classes it > contains, and so on. > The file format that brad came up with is actually quite clever and > very difficult to understand once you spend a few minutes with it, and > it results in very small files.
> On Jul 22, 7:11 am, Hirak <herak....@gmail.com> wrote:
> > Hi,
> > I will go ahead and download it. > > I have been away for a while so could not test much.. > > Can you provide a basic documentation about the format of the file, > > especially the relationships of score,notes,attributes etc with an > > simple example > > It would be helpful for testing and contributing.
> > Thanks and great work > > Hirak
> > On Jul 18, 1:17 pm, "joneric_wennerst...@yahoo.com"
> > <joneric.wennerst...@gmail.com> wrote: > > > I've successfully tested the current version of the java power tab > > > reader on about 600 exisiting .ptb files. > > > It was able to read them all in. > > > So go ahead and download it athttp://www.beaglebuddy.com/ptb.
> > > > Okie... > > > > I will download the code and continue testing. > > > > so will u set up subversion?? > > > > please do it , it will be most helpful for the community.
> > > > thx > > > > H
> > > > On Jul 12, 3:14 pm, "joneric_wennerst...@yahoo.com"
> > > > <joneric.wennerst...@gmail.com> wrote: > > > > > I fixed the bug you are referring to today, and two others, and will > > > > > post the code this evening.
> > > > > You're right, about the bug tracking and subversion repository, but I > > > > > just haven't sat down and done it. > > > > > I've been too busy working on the code :-)
> > > > > Hopefully with these fixes, you should be able to read 80-90% of all > > > > > 1.70 ptb files.
> > > > > > I downloaded the ptb reader and I got followig stacktrace. > > > > > > com.beaglebuddy.ptb.utility.PTBFileException: An error occurred while > > > > > > reading a score from call_of_ktulu.ptb at file position 236. > > > > > > An error occurred while reading a system from call_of_ktulu.ptb at > > > > > > file position 15035. > > > > > > An error occurred while reading a staff from call_of_ktulu.ptb at file > > > > > > position 15471. > > > > > > An error occurred while reading a position from call_of_ktulu.ptb at > > > > > > file position 15856. > > > > > > An error occurred while reading a note from call_of_ktulu.ptb at file > > > > > > position 15868. > > > > > > Invalid fret number 27. It must be between 0 and 24. > > > > > > at com.beaglebuddy.ptb.PTBScore.load(PTBScore.java:242) > > > > > > at com.beaglebuddy.ptb.PTBFile.load(PTBFile.java:127) > > > > > > at com.beaglebuddy.ptb.PTBFile.<init>(PTBFile.java:64) > > > > > > at com.beaglebuddy.ptb.PTBFile.main(PTBFile.java:150)
> > > > > > It seems that the somehow PTB allowed 27 frets ??
> > > > > > It would be great if we can set up a version control like subversion > > > > > > and issue tracker like bugzilla or something. > > > > > > Then it would be easier for us.
> > > > > > Thanks > > > > > > Herak
> > > > > > p.s i will attach the the file which I tested