Browser-based MIDI tool · .mid in, edited .mid and a notes CSV out

MIDI Editor

Open a Standard MIDI File, see every track on a piano roll, transpose it, change the tempo, quantize the timing, scale the velocities, delete tracks you do not need, and play the result before you save it.

MIDI file

Format 0, 1 or 2, up to 8 MB. Controllers, program changes and pitch bends are kept as they are.

Drop a MIDI file here or click to choose

.mid, .midi, .kar

Edit

Each button changes the song at once and can be undone.

Transpose

Tempo

Setting one tempo replaces the tempo map, so changes later in the song are removed. Scaling keeps them. Note positions in ticks do not move; only how fast the ticks play.

Quantize

Velocity

Piano roll and export

Open a MIDI file to see its notes.

Playback is a simple triangle-wave synth with a short click for channel 10; it shows pitch and timing, not the instrument sounds the file asks for.

MIDI Editor

Operator: Abdulla Al Fahad. How tools are built and checked

A note played at tick 505 against a grid of 240 ticks (eighth notes at 480 ticks per beat) lands on tick 480 at full quantize strength and on tick 493 at half strength, while a pitch of 125 moved up 5 semitones stops at 127, the top of the MIDI range. Edits like these are small, but doing them in a full music program means opening a project, importing the file and exporting again. Here you open the .mid, make the changes on a piano roll, hear the result and save it.

Key features

  • A piano roll for all tracks in separate colours, with note shading by velocity, zoom, and a tick box per track to show, hide or mute it
  • Transpose by up to 24 semitones, with the drum channel left alone unless you ask, and a count of notes held at the 0 to 127 limit
  • Quantize to 1/4, 1/8, 1/16 or 1/32 at a strength from 10 to 100%, moving only the starts or the ends as well
  • Tempo replacement or scaling from 25 to 400%, velocity scaling from 10 to 200% with an offset, track deletion, and undo and redo across up to 25 versions (fewer for very large files)

What the editor keeps, changes and cannot read

The file can be a Standard MIDI File of format 0, 1 or 2 (.mid, .midi, .kar) up to 8 MB, with up to 128 tracks, 250,000 notes and 400,000 controller and other non-note events. A tempo outside 10 to 1,000 bpm, which some damaged files contain, is brought back into that range with a warning. Running status and note-on messages with velocity 0 are understood; notes left open at the end of a track are closed there. Files that count time in SMPTE frames instead of beats are refused, because every edit here is in ticks and beats.

Notes, tempo changes and time signatures are edited. Everything else, such as program changes, controllers, pitch bends, key signatures, lyrics and system-exclusive messages, is kept as raw bytes at its original tick and written back. Output is format 0 when one track remains and format 1 otherwise, with the tempo and meter events on a leading conductor track; a format 2 file is saved as format 1.

Common use cases

  • Moving a four-track song down 3 semitones for a singer whose range sits lower, with the drum track left where it is
  • Slowing a 120 bpm piano arrangement to 100 bpm for a student, using Set one tempo so the whole song follows one clear speed
  • Tightening a live-played piano part with 1/16 quantize at 60% strength so it keeps some human looseness
  • Evening out a keyboard part whose velocities range from 30 to 127 by scaling them to 75% and adding 10
  • Deleting a track of scratch notes from a 9-track file and exporting a CSV with one row per remaining note to count them in a spreadsheet

How to use this tool

  1. Drop a .mid file. The summary line shows the format, resolution, first tempo, time signature, note count and length.
  2. Choose whether edits apply to all tracks or one, then use Transpose, Tempo, Quantize or Velocity. Each button acts at once and the status line says what changed.
  3. Press Play to hear it through the built-in synth, and Undo if it is not right.
  4. Download the edited .mid, or the notes CSV for a spreadsheet view.

Example

A one-track file at 480 ticks per beat and 120 bpm: pitches 60, 64, 67, 125 starting at ticks 0, 250, 505, 960

Quantize 1/8 at 100%, then at 50%
Transpose +5
Scale tempo to 125%
Velocity 150%, and 75% + 10 (velocities 64, 100, 120, 90)

What each edit does to that file

Quantize 100%:  starts 0, 240, 480, 960 (2 moved)
Quantize 50%:   starts 0, 245, 493, 960
Transpose +5:   pitches 65, 69, 72, 127 (1 held at the limit)
Tempo 125%:     120 bpm becomes 150 bpm; tick 1920 moves from 2.0 s to 1.6 s
Velocity 150%:  96, 127, 127, 127; 75% + 10: 58, 85, 100, 78

Tips for best results

  • Quantize at 50 to 70% strength first. Full strength puts every note exactly on the grid, which is audible; a partial pass pulls stray notes in and leaves the feel.
  • To speed a song up without changing tempo changes inside it, use Scale rather than Set one tempo: scaling multiplies every entry in the tempo map, setting replaces the map with one value.
  • Hide a track with its tick box to solo the others, and put the box back before downloading; the box affects the roll and playback, not the file.
  • Open the notes CSV in a spreadsheet and sort by duration_ticks to find stray notes of a few ticks, which are usually accidental touches; find the same notes on the roll by their start time.

Common pitfalls

Quantizing only starts keeps each note's length, so a note moved later can run into the next one. Tick the option to snap ends as well when the part is meant to be cleanly articulated.

Transposing a drum track by accident turns a kick into a different drum. The drum channel is skipped by default for that reason; if a file puts drums on another channel, set the scope to the pitched tracks.

The playback synth is a plain waveform, so a track that is a piano in the file does not sound like one here. Only the notes' pitch and timing are being checked.

Common errors and how to fix them

"This is not a Standard MIDI File" appears.
The file does not start with the MThd header. Files exported as .rmi or from a game format need to be re-saved as a plain .mid first.
A message says the file counts time in SMPTE frames.
That is a rare timing division. Re-save the file with a ticks-per-beat resolution (480 or 960) in the program that made it.

Ticks, tempo and seconds

A MIDI file stores positions in ticks and the speed in microseconds per beat. Seconds are worked out by adding up each tempo segment: ticks times microseconds per quarter divided by the resolution. That is why changing the tempo moves nothing on the piano roll in ticks, while the time axis in seconds stretches or shrinks.

Quantize works in ticks, so its grid is a fraction of a beat whatever the tempo. With 480 ticks per beat a 1/16 grid is 120 ticks; a file at 96 ticks per beat has a 1/16 grid of 24 ticks, and fine detail below that cannot be represented.

What the notes CSV holds

One row per note with the track number and name, channel, pitch number and name (middle C is C4, number 60), start and length in ticks and in seconds, and velocity. Seconds follow the tempo map, so a file with tempo changes gets correct times.

Frequently asked questions

Why did one track disappear from the list?

A track that held only tempo and meter events (a conductor track) has no notes to show. Its tempo map is kept and written back, so the song still plays at the same speed.

Will the saved file have the same format as the one I opened?

Format 1 stays format 1 when two or more tracks remain. If one track remains, the file is written as format 0 with the tempo events inside it, and format 2 files are written as format 1.