UFFA.. This is so difficult. I tried my best but the codes I wrote were trash. no one worked.
I tried to regenerate the CRC (Checksum) of this array that is taken from a Roland MIDI Implementation chart.
byte S[22] = {0xf0, 0x41, 0x10, 0x42, 0x12, 0x40, 0x11, 0x40, 0x3a, 0x6d, 0x3e, 0x34, 0x0d, 0x38, 0x6b, 0x3c, 0x6f, 0x40, 0x36, 0x0f, 0X76, 0xf7};
As it is written in the array, index number 20 is 0x76 which is the correct Checksum of indexes number 8 through 19.
Is anyone out there who can write the correct Checksum calculator code please?
I appreciate your help, attention and the time you spend solving my problem.