Skip to the tool
Dunk’s Bible Palace

MIDI to hUGETracker

Turn a MIDI song into a hUGETracker song file (.uge) for Game Boy music and GB Studio, with each part on one of the Game Boy’s four sound channels. Hear it first, then save it.

Runs on your device

1. Choose a MIDI file

Drop a MIDI file here

or

Files ending in .mid, .midi, .kar, .smf or .rmi.

How it works

Your MIDI file is read by your own browser, in the background, and never sent anywhere. The tool lines the notes up on a grid of rows, as a tracker does, gives each Game Boy channel one note at a time, picks drum sounds for the noise channel, and writes a hUGETracker song file (format version 6, the one the current hUGETracker and GB Studio open and save). The preview plays that same file through a small copy of the Game Boy’s sound chip, so what you hear is what you will get, give or take.

Using the song in GB Studio

Put the .uge file in your project’s assets/music folder. GB Studio picks it up, and you can open it in its music editor or play it with the Play Music event. To change it in hUGETracker, open the same file there and save it again.

Why some notes go missing

Each channel plays one note at a time, so when a part plays a chord the tool keeps one note (the highest, unless you choose otherwise) and lists how many it left out. To keep more of a chord, put the same part on a second channel and choose “The second highest note” there, or choose Arpeggio, the classic chiptune trick of flicking quickly between the notes of a chord. The noise channel plays one drum at a time too: kicks and snares win over hi-hats.

Note names and range

The duty channels play from C2 to B7 (MIDI notes 36 to 107). hUGETracker names notes one octave higher than usual: its C-5 is middle C. Notes outside the range are moved by octaves until they fit, unless you choose otherwise under More options.

Tempo

The Game Boy player moves on by a whole number of ticks each row, about 60 ticks a second, so most tempos can only be matched closely, not exactly. The tool picks the nearest speed and tells you the tempo it will really play at. Tempo changes in the song become speed changes (effect F) in the patterns.

What the tool writes into the patterns

Notes with instrument numbers, and only these effects: C (loudness, for note velocity), E (note cut, where a note ends), 0 (arpeggio, if you choose it) and F (speed, for tempo changes). Instruments 1 and 2 are the Duty 1 and Duty 2 sounds; the wave and noise instruments are named, so you can swap them in hUGETracker. A pattern that repeats exactly is stored once and used again in the order list.