Re: [Line6linux-devel] Php parser for h3e file
Status: Pre-Alpha
Brought to you by:
mgrabner
From: Stefan H. <ste...@gm...> - 2013-01-18 16:48:04
|
On Fri, Jan 18, 2013 at 3:47 PM, <jea...@fr...> wrote: > You will find in PJ a test parser for h3e preset file. > > Name have to be tested as i reported them from the doc in same order (it > workd for the 2 first amp and Brit J800 that i had tested) , FX model is a > guess to be check (i will try to buil preset file with != FX)this WE). > > For FX 400 effect I've include them in same order, but they may not be > "reserved" value, so last effect should be shift (or not). > > For the design ofa full php site, i guess, for the data model, we had to > build a parent class for file handling and children class for != kind of > files (hd 300, hd 400 , hd 500). > > Then a controler that produce an array of object (amp, cab, fx ...) and a > viewer that parse the and display it content. > > Saving will be a matter of of choosing a format and give the array to a > controlller that call the good model class. Nice start! If you want testers throw the php file onto a server or free hosting and post a link on the Line6 POD forum. I'm sure people will try their files and report back if something doesn't work. If the parsing code gets more complicated it may be worth writing command-line tools and calling them from PHP (make them output both human-readable info and JSON). I think Markus was working on this for previous POD generations: http://line6linux.svn.sourceforge.net/viewvc/line6linux/apps/trunk/toneview/tone.cpp?revision=513&view=markup http://line6linux.svn.sourceforge.net/viewvc/line6linux/apps/trunk/filedump_test/ Stefan |