A glowing piano roll grid with a pink heart and a musical note beside it, crossed by a playhead line.

MIDI art that sounds good: key, octave range and note length

You have a picture, a piano roll and a pile of notes that look right on screen. Press play and it sounds like a cat crossing a keyboard. The shape is fine. The notes under it sit on every semitone, stretch across the whole keyboard and last a few milliseconds each.

By Nell Averdon ·

Get it onGoogle Play

Beatyo is a phone appPoint your camera at the code to get it. No sign-up.

Short answer

MIDI art is a picture made of notes in a piano roll. Most of it sounds bad because every row is a semitone, the picture spans the whole keyboard and the notes are tiny. Snap the rows to one scale such as pentatonic, keep the picture inside two or three octaves around MIDI note 60, and use 1/16 notes or longer.

MIDI art is a drawing made of notes

AudioCipher defines MIDI art as visual art created in a DAW's piano roll and shown to the listener while it plays. Each note is a rectangle. Height is pitch, left to right is time, and a cluster of rectangles forms a heart, a face or a logo.

It has a short history of sounding awful. A MIDI.org submission by the artist Gil Assayas says drawings before 2017 "looked good, but sounded terrible", until Savant made pieces that sounded like real music. Assayas now performs his pictures live on a controller in Cubase. His rules: the music must fit the image, and two hands must be able to play it.

This is a different thing from spectrogram art. There the picture hides in the frequencies of a recorded sound. Here the picture is the notes themselves.

Four habits make it sound bad

Every bad-sounding piece breaks at least one of these. Each has a cheap fix.

What the picture doesWhat you hearFix
Notes on every row, so neighbors are a semitone apartNotes clashSnap rows to one scale
Picture covers the full range, MIDI notes 0 to 127Rumble at the bottom, squeaks at the topKeep 2 to 3 octaves
Filled areas and tall vertical edgesDozens of notes at once, a clusterUse outlines, 3 or 4 notes at a time
One pixel equals a very short noteClicks and buzzNotes of 1/16 or longer

Key: put the rows on a scale

A piano roll has a row for every semitone. Two notes a semitone apart played together sound harsh, and a pixel picture produces that pair constantly. Restrict the rows to one scale and the harshest clashes disappear.

Pentatonic is the easiest choice. C major pentatonic is C, D, E, G, A: five notes per octave and no semitone steps. Use A minor pentatonic (A, C, D, E, G) for a darker mood. These are the same notes, so the mood comes from which one you land on.

The cost is height. In a chromatic grid, 12 rows make one octave. In pentatonic, 5 rows do. A picture 10 rows tall then covers two octaves, and 15 rows cover three. Plan the picture's height around the scale before you draw or convert, because snapping afterward pushes two neighboring rows onto the same note and flattens the shape. If you want the theory side covered, making music without theory explains why safe notes work.

Octave range and note length decide how it feels

MIDI numbers notes 0 to 127, and middle C is 60. A piano covers 21 to 108. Software disagrees on the name of note 60: it appears as C3, C4 or C5 depending on the program, so work from the number. A range of 48 to 84 gives three octaves centered on middle C. Use 60 to 84 for a lighter, melodic picture. Notes below about 36 turn to mud on a phone speaker, and notes above 96 thin out.

Length comes from the grid. At 120 BPM, a 1/16 note lasts 0.125 seconds and a 1/64 note about 31 milliseconds, which is a click. Set one pixel to 1/16 or 1/8. At 120 BPM, a picture 32 columns wide at 1/16 lasts two bars, or 4 seconds. A slower tempo stretches it, and the tempo chart by genre shows where each style sits.

Three shapes behave differently:

From picture to finished piano roll

  1. Pick a simple picture. Silhouettes, icons and logos work. The img2midi project says detailed images get "greatly compressed" by the 127-note limit, and that it works best with illustrations.
  2. Shrink it. Aim for about 32 columns and 10 to 16 rows. Fewer rows means fewer notes to fix.
  3. Reduce it to black and white. Dark areas become notes. Run edge detection if you want only the outline.
  4. Choose the scale and lowest note. Say C major pentatonic, lowest note 48.
  5. Convert or draw. In img2midi.online, set Time resolution near 32 and Pitch resolution to match your row count. Its page lists a Lowest MIDI note from C2 to C8, but no scale control, so you snap afterward.
  6. Snap and clean. Use your DAW's scale or quantize function (the menu name varies by program), then delete notes until no more than 3 or 4 sound at once.
  7. Set note lengths and an instrument. Merge or split by the rules above. A soft piano, marimba or pad forgives dense notes better than a sharp lead.
  8. Add drums. A kick and snare at the picture's tempo make clumsy notes sound like intent. The drum machine exports a MIDI pattern you can drop in, and drum patterns for 17 genres lists grooves to start from.
Online drum machineA 16-step drum machine with 17 styles, plus MIDI and WAV.

Step 8 is where most pieces turn from a gimmick into a track. Notes that clash a little against a steady beat read as a decision.

Which route fits you

RouteCost and platformGood forLimit
Draw by hand in a DAWDepends on your DAWTotal control over each noteSlow, and you must know the piano roll
PianoRollArtFree, macOS and Windows 10 and 11Five looks: Grayscale, Threshold, Dither, Edge Detect, HalftonesDark pixels become notes, so you fix key and range in your DAW
img2midi.onlineFree, in a browser, no accountFast .mid file with a preview synthNo scale control on its page
BeatyoFree with ads, Pro $19.99 a year, Android 7+Drawing or photo straight to sound with a key and a beatNot on iPhone yet, and no audio recording or editing of existing songs

Beatyo also fits if the goal is a video for TikTok, Reels or Shorts: the export includes a time-lapse of the drawing. The free version gives 2 frames per drawing, and Pro gives 16. For the wider picture of phone options, see apps that let you draw music, and for the same idea without the piano roll, turn a picture into music. A beat-first approach is in how to make a beat on your phone.

Sources

Frequently asked questions

What file does MIDI art export?

A .mid file, which stores notes, lengths and velocities but no sound. The instrument you load in your DAW or player decides how it sounds. The same picture can be a bell, a piano or a synth pad just by swapping the instrument.

Why do curves look jagged in MIDI art?

Notes are rectangles on a grid of rows and columns, so a curve becomes a staircase. More rows and columns smooth it, but also add more notes to fix. For music, a slightly blocky curve usually plays better than a smooth one.

Should I pick major or minor pentatonic?

Match the picture. Major pentatonic sounds bright and open, so it suits suns, flowers and faces that smile. Minor pentatonic sounds darker and suits night scenes, cats and silhouettes. Both use the same five rows per octave, so you can switch and compare in seconds.

Do I need to play piano to make MIDI art?

No. Live performance on a controller is one style, but most MIDI art is drawn or converted with a mouse. You never need to play the notes yourself, only to check by ear that the result doesn't clash.

Draw it. Hear it.Free music app

Get it onGoogle Play