GeNetX preset support

34 views
Skip to first unread message

Tomasz Moń

unread,
Jul 13, 2009, 1:41:23 AM7/13/09
to gd...@googlegroups.com
Attached patch adds GeNetX support to preset parser, also it adds
.g3kp file type support.

It's based on USB sniff logs I received from Stephen Rigler.
As I don't have GeNetX capable device - this needs *serious* testing
before commiting.
Possible test case would be as follows:
1. Download some .g3kp files from Sound Community, ideally if you
never applied those before to your device
2. Apply them using gdigi, saving each one to next slot
3. Run X-Edit, and save patches for the slots you saved using gdigi
4. Compare output files with original
If something goes wrong, please attach both the original and output files.

genetx-preset.patch

Tomasz Moń

unread,
Jul 13, 2009, 3:24:33 AM7/13/09
to gd...@googlegroups.com
2009/7/13 Tomasz Moń <des...@gmail.com>:

> Attached patch adds GeNetX support to preset parser, also it adds
> .g3kp file type support.

I've already spotted two mistakes in it:
1. I wan't explicitly NULL-ing Preset genetxs on creation.
2. There was endless loop.

I hope attached patch will make it working.
Test case is still just like I described in previous mail.

genetx-preset-fixed.patch

S C Rigler

unread,
Jul 13, 2009, 7:38:01 AM7/13/09
to gd...@googlegroups.com
Thanks, Tomasz. I'll have a look at it this week.

--Steve

Tomasz Moń

unread,
Jul 24, 2009, 7:15:43 AM7/24/09
to gdigi
On Jul 13, 1:38 pm, S C Rigler <rigle...@gmail.com> wrote:
> Thanks, Tomasz.  I'll have a look at it this week.

Please try to test it this weekend ;)

S C Rigler

unread,
Jul 25, 2009, 11:37:19 AM7/25/09
to gd...@googlegroups.com

Attached is a g3kp file I applied with Gdigi and two g3kp files saved
out of X-Edit. 4 lines are different, but since they are "data" I have
no idea what they mean. Otherwise, the patch applied just fine with
Gdigi.

--Steve

ERICJHNS.g3kp
from_gdigi.g3kp
from_xedit.g3kp

Tomasz Moń

unread,
Jul 25, 2009, 2:53:37 PM7/25/09
to gd...@googlegroups.com
On Sat, Jul 25, 2009 at 5:37 PM, S C Rigler<rigl...@gmail.com> wrote:
> Attached is a g3kp file I applied with Gdigi and two g3kp files saved
> out of X-Edit.  4 lines are different, but since they are "data" I have
> no idea what they mean.  Otherwise, the patch applied just fine with
> Gdigi.

This data is base64 encoded. In both cases there's one and only one
byte changed.
Please apply attached patch (genetx-debug-printf.patch) on top of
latest gdigi checkout with applied genetx-preset-fixed.patch (it'll
apply with few offset warnings).
Then do "./gdigi > ERICJHNS-log", apply ERICJHNS.g3kp, quit, and send
me ERICJHNS-log.

Is this the only patch you've tested? Or the only broken one?

genetx-debug-printf.patch

S C Rigler

unread,
Jul 25, 2009, 7:04:10 PM7/25/09
to gd...@googlegroups.com

It's attached.

> Is this the only patch you've tested? Or the only broken one?
>

That's the first patch I've tested.

ERICJHNS-log

Tomasz Moń

unread,
Jul 26, 2009, 6:06:39 AM7/26/09
to gd...@googlegroups.com
On Sun, Jul 26, 2009 at 1:04 AM, S C Rigler<rigl...@gmail.com> wrote:
> It's attached.
>
>> Is this the only patch you've tested? Or the only broken one?
>>
>
> That's the first patch I've tested.

I can't see anything wrong with messages that are sent to device, they
contain completely correct data.

Could you please apply this patch using gdigi, export it using X-edit,
and check if the changes are exactly in the same place (diff the newly
exported file with "from_gdigi.g3kp" you attached earlier)?
Please repeat above action few times.
If the changes appear in different places, please attach resulting files.
Also, it'd be nice if you did "the original" testing procedure with
few different patches.

S C Rigler

unread,
Jul 31, 2009, 7:46:25 AM7/31/09
to gd...@googlegroups.com
On Sun, 2009-07-26 at 12:06 +0200, Tomasz Moń wrote:
> Also, it'd be nice if you did "the original" testing procedure with
> few different patches.

Sorry it took so long to get to this, but I'm in the process of doing
the tests with different patches.

Attached is "ZAKKWAH.g3kp" and the result of applying it with Xedit and
Gdigi. I only found one difference this time and the log is attached.

--Steve

zakkwah.tgz

Tomasz Moń

unread,
Jul 31, 2009, 10:19:56 AM7/31/09
to gd...@googlegroups.com
On Fri, Jul 31, 2009 at 1:46 PM, S C Rigler<rigl...@gmail.com> wrote:
> Attached is "ZAKKWAH.g3kp" and the result of applying it with Xedit and
> Gdigi.  I only found one difference this time and the log is attached.

This looks somehow worrying as xedit couldn't re-create the data.
It might be due to some bug in earlier X-Edit version (which generated
the original file), but you never know.

Speaking of the corruption, I think we might be sending the data with
too fast pace to the device.
Could you please apply on top of your already patched (with
genetx-preset-fixed.patch and genetx-debug-printf.patch) patch that's
attached to this message (genetx-drain.patch)?
Then retry testing procedure with the ERICJHNS.g3kp and ZAKKWAH.g3kp,
and do tests with some more patches.

genetx-drain.patch

S C Rigler

unread,
Jul 31, 2009, 4:32:50 PM7/31/09
to gd...@googlegroups.com
On Fri, 2009-07-31 at 16:19 +0200, Tomasz Moń wrote:
> This looks somehow worrying as xedit couldn't re-create the data.
> It might be due to some bug in earlier X-Edit version (which generated
> the original file), but you never know.
>
> Speaking of the corruption, I think we might be sending the data with
> too fast pace to the device.
> Could you please apply on top of your already patched (with
> genetx-preset-fixed.patch and genetx-debug-printf.patch) patch that's
> attached to this message (genetx-drain.patch)?
> Then retry testing procedure with the ERICJHNS.g3kp and ZAKKWAH.g3kp,
> and do tests with some more patches.
>

Applied the patch and then did the same steps with ERICJHNS.g3kp and
ZAKKWAH.g3kp. This time both presets of ZAKKWAH were identical, but
ERICJHNS had one difference. Will test a few more to see if it's just a
problem with the one patch.

--Steve

Tomasz Moń

unread,
Aug 1, 2009, 10:19:03 AM8/1/09
to gd...@googlegroups.com
On Fri, Jul 31, 2009 at 10:32 PM, S C Rigler<rigl...@gmail.com> wrote:
> Applied the patch and then did the same steps with ERICJHNS.g3kp and
> ZAKKWAH.g3kp.  This time both presets of ZAKKWAH were identical, but
> ERICJHNS had one difference.  Will test a few more to see if it's just a
> problem with the one patch.

Interesting.
I guess some automated tests would help ;)
To implement those, I'd need:
1. Apply some .g3kp file using gdigi
2. Quit gdigi, type following command: "amidi --port hw:1,0,0 --dump"
(this shouldn't really print anything, press ctrl+c to stop it)
3. Type following command: "amidi --send-hex f0 00 00 10 7f 7f 7f 2a
00 04 00 41 f7 --port hw:1,0,0 --dump --receive=preset-data" (press
ctrl+c after it no longer reads data)
Then email me that .g3kp file and preset-data created by amidi (or
whatever you call it)

Tomasz Moń

unread,
Oct 6, 2009, 11:09:17 AM10/6/09
to gd...@googlegroups.com
I'm attaching updated patch, adding support for GeNetX version 1 found
in GNX4 patches.
It's done basing on SniffUSB logs I received from Jamie Lynn Crawford.

Please give it a fair testing.
Test case is following:
1. Download some .g3kp or .g4p files from Sound Community (depending
on your device)
2. Apply those using gdigi and store them under some slot.
3. Start X-Edit, export the patches previously stored using gdigi.
4. Compare the files for changes, if there're any, please attach both
original and newly exported files.

genetx-preset-v2.patch

Tomasz Moń

unread,
Jun 17, 2010, 1:23:36 PM6/17/10
to gd...@googlegroups.com
Finally, this has been tested.
I've just commited it:
http://hg.atheme.org/users/desowin/gdigi/users/desowin/gdigi/rev/8ce7e7a9db27
Reply all
Reply to author
Forward
0 new messages