sysex decoding

[email protected] ("Stu Poulin") Sun, 10 Aug 2003 11:01:33 -0700
Newsgroups perl.midi
Message-ID <[email protected]>
Hi All
I'm trying to decode a sysex format.  Is there a way to get it to dump in
all \x.. format instead of showing ASCII in places.

For example:
 ['sysex_f0', 289, "3\x7f\x05\x00\x00\x09t*\x1a

Characters like the '3', 't', and '*' I'd like to dump as \x.. format.

Also curious if there's an existing module that breaks sysex apart - for
example
 ['sysex_f0', 0, "3\x7f\x05\x00\x00\x00
['sysex_f0', 289, "3\x7f\x05\x00\x00\x01
['sysex_f0', 289, "3\x7f\x05\x00\x00\x02

My goal here is that these are actually numbered \x00 .. \xNN on up, What I
want to do is no matter how many of these I'd like to reverse their order.

Thanks,
   Stu