Unpacking Trigon's pitch data from its SysEx dumps.

Unpacking Trigon's pitch data from its SysEx dumps.
« on: March 08, 2023, 07:47:19 AM »
Sequential use a well-documented technique to pack 8-bit values into 7-bit data in their dumps.  This is fine for parameter values up to 255.  The two Osc pitch parameters, however, need to store values up to 1400 which needs 11 bits and won't fit in the standard structure.  I tried Sequential support but got no help with this, being pointed at Soundtower, as apparently if this works then all must be ok.
I made a number of dumps with different saved values and was able to figure out that the missing 3 bits per Osc are stored in bytes 50 and 51, so these need unpacking along with the LSB 7 bits and relevant bit from the MSB byte.  Easy to do once you know where to look.  Hope this helps anyone else who gets stuck on this.  I suggested to Sequential they update their documentation to include these hidden bytes.