Last active
December 1, 2021 16:02
-
-
Save netalkGB/c392bad03797d94067efd3819899b61a to your computer and use it in GitHub Desktop.
GS音源のSysExのチェックサム計算するやつ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function calculateChecksum(d) { | |
| const a = d[5] | |
| const b = d[6] | |
| const c = d[7] | |
| const data = d[8] | |
| const result = 0x80 - (a + b + c + data) % 0x80 | |
| return result | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment