UpMIDI to RAW

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,

Download

Current version 1.01, 14 Feb 2026. MIDITORAW.ZIP

MIDI Offset

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.

Note Range

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 Offset153313
Note Range10067101

I'm not entirely sure about the 65 note figures.

Clock Scale

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 MIDIRaw MIDI
0.001 mm254/4254/3
0.0001 mm2540/42540/3