Reputation: 113
I have a text file called "MyHex.txt" in it the file has these values
F0 43 00 0A 00 4f 91
i am opening my file with my Sub like this and trying to check if the first byte in array is "F0" then Set The value. the i need to group the next three bytes together and then the next three bytes and so on
Dim strings As String() = IO.File.ReadAllText(C:\MyHex.txt).Split(" "c)
Select Case strings((0))
Case "F0"
StatusType = "Sysex"
End Select
Update: Need to group the values every three bytes. so they can be decoded
Using
Sn.xx.yy
S=Status (8-e)
n=CN (0-F)
xx=FDB (00 -7F)
yy=SDB (00-7F)
Update 2:
After removing Sysex "Header" im left with this
First Dump:
08 0A 4C 4D 20 20 4E 53 45 51 31 20 46 30 30 30 30 31 46 38 45 30 43 30 36 30 32 34 36 34 30 32 37 46 46 35 46 32 60
Second Dump
08 0A 4C 4D 20 20 4E 53 45 51 31 20 46 30 30 30 30 31 46 38 45 30 43 30 36 30 32 36 36 34 30 32 37 46 46 35 46 32 5E
the 29th byte and last are the only ones that change.
Upvotes: 0
Views: 67