thank you Ralph, i'll look into it.
I took a midi dump (through arecordmidi) from my BCR2000 controller and realised while reading the midi file that 2 byte values are stored locally in a midi file lsb first. This is opposite to what I see here
http://www.somascape.org/midi/tech/mfile.html#midi . for example the midi
MThd : Header chunk, was written in the midi file asĀ
54 4D 64 68 . and chunklen as 00 00 06 00 . So this is one thing that I should keep in mind when I send hex numbers.
also based on your analysis, can I just forget about all those headers when I send a midi cc command? can I just send the midi even directly?