What Is a MIDI File? A Plain-English Guide for Creators
By Cihad Turhan · · 6 min read

A MIDI file is a set of instructions for playing music: which notes to play, when to start and stop each one, how hard to hit it and which instrument should sound. It contains no recorded audio at all, which is why a MIDI file is tiny and why software can read it note by note.
That last point is the reason MIDI matters to creators. Because every note is stored as data, an app can turn each one into an event on screen. In Marble Music (formerly Beat Bounce), that event is a bounce: import a MIDI and the marble lands on every note. This guide explains what's actually inside the file, how it compares with an MP3, and how to tell a good MIDI for a video from a messy one.
What's inside a MIDI file
Think of a MIDI file as a player piano roll, not a recording. For each note it stores:
- Pitch: which note it is, such as middle C or the A above it.
- Timing: when the note starts and how long it lasts, measured against the song's tempo.
- Velocity: how hard the note is played, which usually controls loudness.
- Instrument: which sound should play it, such as piano, strings or flute.
The MIDI standard was introduced in 1983 so electronic instruments from different makers could talk to each other (MIDI on Wikipedia). A .mid file is that same note language saved to disk. When you open it, your phone or computer plays the notes through its own built-in sounds, which is why the same file can sound different on two devices. The General MIDI standard fixes which instrument number means "piano" or "violin" and reserves channel 10 for drums, but it doesn't fix what those instruments sound like; that comes from the player's sound bank, often a SoundFont.
Tracks and channels in three lines
- A track is a separate lane of notes in the file, often one per part (melody, bass, chords).
- A channel tells the player which instrument sound to use; MIDI supports 16 of them at once.
- Some files merge everything into one track, while most keep each part on its own track, which is far easier to work with.
MIDI vs MP3 at a glance
MIDI (.mid) |
MP3 (.mp3) |
|
|---|---|---|
| What it stores | Notes, timing, velocity, instrument choices | Recorded sound waves |
| Sound | Generated by the device that plays it | Fixed, sounds the same everywhere |
| Typical size | A few kilobytes | Megabytes |
| Vocals | No (only melody notes, never a voice) | Yes |
| Editable note by note | Yes | No, only cut, trim or apply effects |
| Can drive a game level | Yes, each note is an event | Only through beat detection, which guesses |
For a sense of scale, the Twinkle Twinkle Little Star MIDI on this site is about 4 KB. A three-minute MP3 at 128 kbps works out to roughly 2.9 MB, hundreds of times larger, because it stores the sound itself.
Why games can turn a MIDI into a level
An audio file only tells software what the music sounds like moment to moment. To find the notes, a program has to analyze the waveform and guess where beats land. A MIDI file skips the guessing: every note already has an exact start time.
That precision is what makes a bouncing-marble video feel locked to the music. In Marble Music, you import a MIDI and edit the level, and each note becomes a point where the marble hits. If the file has a note, the marble lands on it, so the quality of the video depends heavily on the quality of the file.
What makes a good MIDI for a marble video
Not every MIDI that sounds fine makes a good-looking video. Before you import, run through this checklist:
- One clear melody. A tune you can hum works best. The super easy Für Elise is a good test file because it keeps to the main line.
- Not too dense. Fast runs and thick chords can turn into a blur of bounces. If a passage is a wall of notes, simplify it in the level or pick an easier arrangement.
- No drum track. Drums add many extra hits that don't follow the melody. Remove the drum track in a free editor such as MuseScore or any DAW before importing.
- A quick start. Some files open with silence or a long count-in. Trim it so the first note arrives right away.
- The right tempo. Play the file once. If it sounds rushed or sluggish, fix the tempo before you build the level.
- Clear rights. A public-domain composition doesn't make every arrangement free to use, so check the license of any file you didn't create, or start from the Mutopia Project, which publishes public-domain scores with MIDI files.
A worked example: the Pachelbel Canon in D file on this site is short and simple: one tempo track plus a single melody track, about 39 seconds long at a steady tempo. With no chords or drums to filter out, every note in the file becomes a clean, evenly spaced bounce, which is exactly what you want for a first import.
When a multi-track MIDI is an advantage
For a single marble, extra tracks are usually something to trim. But the same file can be read a different way. RingLoop, a sister rhythm game, imports a MIDI with one ring per track, so melody, bass and chords each become their own ring. Clear a ring in time and its instrument joins the mix, which turns a multi-track arrangement into a layered loop instead of a cluttered level.
Make your first MIDI video
- Browse the free MIDI library and download a public-domain piece with a clear melody, such as Twinkle Twinkle Little Star or Für Elise.
- Open Marble Music, import the MIDI and edit the level if any passage is too crowded.
- Play it through once to check the tempo and the start.
- Render in up to 4K and post it. The step-by-step TikTok tutorial covers the rendering and posting flow in detail.
Once you've done this with one simple file, try a fuller arrangement of the same piece and compare how the bounces change. It's the quickest way to learn what kind of MIDI suits your style.
Frequently asked questions
- Can I convert an MP3 to MIDI?
- Audio-to-MIDI tools exist, but results vary a lot, especially with vocals, drums or full mixes. A MIDI made by hand or exported from a score is usually much cleaner.
- Where can I get free MIDI files?
- This site hosts 1,100+ free MIDI files at /midis. For public-domain classical pieces, the Mutopia Project offers scores with MIDI files, and you can also export your own from notation software. Check the license of any file you didn't make.


