MIDThis is a page for MIDI file analysis. Try an exampleWhat are we looking for?For a MIDI file, we look for the byte sequence 4D 54 68 64 or MThd |
File contents analysisSelect file |
Sample code
public string getTif(System.IO.Stream file) { string TextBox1 = ""; byte[] b = ReadFully(file, file.Length); TextBox1 = "Starting tag (should be II - Big Indian): " + (char)b[0] + (char)b[1] + "<br/>"; TextBox1 += "Version: " + Global.intToHex(b[2]) + "<br/>"; return (TextBox1); }