
MIDI to RAW converts MIDI files that are a direct representation of the scan image into Wayne Stahnke's RAW format. The MIDI files are likely to be either Warren Trachtman's ScanImage MIDI or Stanford's Raw MIDI files,
Current version 1.01, 14 Feb 2026. MIDITORAW.ZIP
Port numbers in RAW files are zero based whereas note tracks in MIDI files are generally aligned with their correct pitch. The MIDI Offset between the two is dependent on the roll type. Use the appropriate offset from the table below.
The Note Range merely checks that there are no MIDI notes outside the expected range.
| 88 Note 9 per inch | 65 Note 6 per inch | Red Welte | |
|---|---|---|---|
| MIDI Offset | 15 | 33 | 13 |
| Note Range | 100 | 67 | 101 |
I'm not entirely sure about the 65 note figures.
ScanImage MIDI files are 400 ticks per inch, Stanford's Raw MIDI files are 300 ticks per inch, RAW files are normally either 0.001 or 0.0001 mm per tick. Use the appropriate ratio from the table below.
| /read_step: | ScanImage MIDI | Raw MIDI |
|---|---|---|
| 0.001 mm | 254/4 | 254/3 |
| 0.0001 mm | 2540/4 | 2540/3 |