Hoppa till innehållet

Lektion 14 · MIDI and Instruments

MIDI Programming and Quantization

Program and fix MIDI parts: use the piano roll, convert tempo to milliseconds, quantize with strength and swing, humanize carefully and edit note lengths.

You do not need to be a keyboard player to write MIDI parts. You can draw notes with a mouse, play slowly and fix mistakes, or record a performance and tidy it up.

The challenge is to correct timing without removing the feel. This lesson shows you the tools and how to use them with care.

What you will learn

  • How the piano roll shows pitch and time
  • How tempo converts into milliseconds
  • How quantization, strength and swing work
  • How to edit note lengths and add human variation

The piano roll

The piano roll is a grid editor. Usually:

  • vertical position shows pitch, often with a keyboard on the side
  • horizontal position shows time
  • note length shows how long it is held
  • a separate velocity lane shows each note's velocity

You can add, move, stretch, copy and delete notes. You can often transpose a selection up or down by semitones or octaves.

Three ways to enter notes

  1. Real-time recording: play along with a click. You may slow the tempo while recording and then restore it.
  2. Step input: enter one note or chord at a time, with a chosen note length.
  3. Drawing: click notes onto the grid.

Tempo and time

At a tempo in BPM, where the beat is a quarter note:

quarter note (ms) = 60,000 ÷ BPM

Note value At 120 BPM At 90 BPM
Quarter 500 ms about 667 ms
Eighth 250 ms about 333 ms
Sixteenth 125 ms about 167 ms
Eighth-note triplet about 167 ms about 222 ms

These values are handy for delay effects and for judging how large a timing error is.

MIDI sequencers store timing in small units often called ticks. The number of ticks per quarter note (often written PPQ) varies between systems.

Quantization

Quantization moves notes toward a grid. First choose the grid value, such as 1/8 or 1/16. Choose it to match the smallest rhythm you actually play. If you play triplets, use a triplet grid. A wrong grid can move notes to the wrong place.

Strength

Many DAWs offer strength (or amount). It moves each note only part of the way:

new time = old time + (grid time − old time) × strength

Suppose a note is 40 ms late. At 100% strength, it moves all 40 ms. At 50%, it moves 20 ms, so it is still 20 ms late. Partial strength can keep some feel while tightening the part.

Start and end

Some tools quantize only note starts, while others can change note ends too. Changing ends can alter the phrasing. Check the setting.

Fix the worst notes first

Before quantizing a whole part:

  1. Listen with the drums or click.
  2. Find the notes that sound wrong.
  3. Fix those by hand or quantize only them.
  4. Listen again.

A slightly early or late note can be part of a good groove. Not every note off the grid is a mistake.

Swing

Swing delays certain notes, usually every second eighth or sixteenth, to create a long-short feel. In a straight grid, two eighth notes split a beat 50/50. With a triplet-style swing, they split about 67/33.

Different programs use different swing scales, so the same percentage may sound different. Set it by ear. Apply the same feel to parts that should lock together, such as hi-hats and bass, or choose different feels on purpose.

Some DAWs let you take a groove from a recorded part and apply its timing to others.

Humanize

A humanize function adds small random changes to timing or velocity. Random change is not the same as human playing. Real players tend to vary in patterns: for example, accenting certain beats or pushing slightly into a chorus.

Often it works better to:

  • set accents by hand
  • keep important anchors, such as the main downbeat, steady
  • use small variation on less important notes

Note length matters

Length changes the groove as much as timing does.

  • Short, detached bass notes feel bouncy.
  • Long, connected notes feel smooth.
  • Some synth sounds with legato or glide settings react when notes overlap.

Overlapping notes on the same pitch and channel can cause cut-off notes or strange results. Check for them when something sounds odd.

Make the part playable

For a realistic acoustic instrument, think about the real player. A drummer has two hands and two feet. A single monophonic instrument, such as a flute, plays one note at a time. Chords on a guitar follow the shape of strings and frets. Breathing space makes wind and vocal-style parts more believable.

A worked example

A recorded piano part has one chord 60 ms late and a few small differences elsewhere. At 100 BPM, a sixteenth note lasts 150 ms, so 60 ms is a large share. You move that chord by hand, then apply 40% strength to the rest with a 1/8 grid, because the part only uses quarters and eighths. Then you compare with the original take. If the new version feels stiff, you lower the strength.

Common mistakes

  • Quantizing every part at 100% by habit.
  • Choosing a 1/8 grid for a part with sixteenth notes.
  • Quantizing drums and bass with very different settings and losing their lock.
  • Editing your only take without saving a copy or a version first.

Try it

See how strength moves late and early notes toward the grid.

Quantize strength simulator

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. How long is a quarter note at 100 BPM?

    60,000 divided by 100 is 600 ms.
  2. 2. A note is 30 ms late and you use 50% quantize strength. How late is it afterward?

    The note moves half the distance to the grid, leaving 15 ms.
  3. 3. Which grid should you pick for a part that uses sixteenth notes?

    A coarser grid would pull some sixteenth notes to the wrong positions.
  4. 4. What is a limit of random humanize functions?

    Human variation usually follows musical patterns, not pure chance.

Summary

  • The piano roll shows pitch, time, length and velocity.
  • A quarter note lasts 60,000 divided by BPM milliseconds.
  • Pick a grid that matches your rhythm, and use strength to keep feel.
  • Swing and groove shape timing on purpose.
  • Note length and playability make parts convincing.

Next: Virtual Instruments and Samplers

Följ dina framsteg

Skapa ett gratis konto för att bocka av lektioner och fortsätta där du slutade, på vilken enhet som helst.