PCG Checksum Formula anyone?

Discussion relating to the Korg Kronos Workstation.

Moderators: Sharp, X-Trade, Pepperpotty, karmathanever

Post Reply
uhura
Junior Member
Posts: 89
Joined: Sun Jan 23, 2011 5:57 pm
Location: Germany

PCG Checksum Formula anyone?

Post by uhura »

I'm doing some updates on my Setlist Editor ONKSOR and wanna use the opportunity to correct the checksum. At the moment you can only reload single setlists into Kronos, not the whole file, because i don't know the formula to calculate a new checksum. Perhaps Michel can help me (if it's not a secret).
Thanks
cynkh
Platinum Member
Posts: 526
Joined: Thu Jun 09, 2011 2:53 am
Location: Buffalo, N.Y.

Re: PCG Checksum Formula anyone?

Post by cynkh »

The checksum for PCG is calculated by simply adding the contents of a chunk modulo 256. Just initialize a variable to 0 and keep adding each byte in the chunk to it with a %256, Mod 256 or whichever programming/scripting language you're using (e.g.: a += chunk % 256;).

Hope this helps. Cheers!

uhura wrote:I'm doing some updates on my Setlist Editor ONKSOR and wanna use the opportunity to correct the checksum. At the moment you can only reload single setlists into Kronos, not the whole file, because i don't know the formula to calculate a new checksum. Perhaps Michel can help me (if it's not a secret).
Thanks
- cynkh -

Hardware:
Kronos 61, microKORG, MoPho, Rogue, Aira System-1, Aira TB-3, Aira TR-8, MC-202, TB-303, (KMS-30), Juno 6, Alpha-Juno 1 (PG-300), SH-201, MC-09, Virus TI Snow, K2000, MPC-1000, X-Station 25, MultiMix-16FW, Ableton Live Push

Software:
Logic Pro 9, Korg Legacy Collection, Komplete 8, vCollection 3, Sylenth1, microTonic
Post Reply

Return to “Korg Kronos”