# The Piano Roll

Editing notes — pitch, length, velocity, per-note probability and MPE expression.

Source: https://zenestudio.org/docs/interface/piano-roll

Markdown version of the Zene Studio page at https://zenestudio.org/docs/interface/piano-roll. For a map of the whole site, see
https://zenestudio.org/llms.txt.

---
The Piano Roll is a grid of pitch against time. It is where MIDI notes are written and edited, and
where Zene Studio's per-note expressive data lives.

## The grid

- **Horizontal axis** — time, in beats and bars.
- **Vertical axis** — pitch.
- **Notes** are rectangles. Drag to move, drag an edge to resize.

Notes can be **slid** — moved in pitch without changing their timing — which is a Zene Studio feature
carried from LMMS and useful for expressive, non-quantised playing.

## Per-note data

Each note carries more than pitch and length:

| Property | What it does | Reachable from the UI? |
| --- | --- | --- |
| Velocity | How hard the note is struck | Yes |
| Probability | Chance the note plays at all | **No** — `note.probability_set` |
| Velocity jitter | Random variation around the base velocity | **No**, socket only |
| MPE expression | Pitch ratio, pressure, timbre | Partially — no editor exists |

### Note probability and jitter

Seeded probability and velocity jitter are stored **per note** and saved in the project. The
command is `note.probability_set`; there is a **search-and-transform API** for applying them across a
selection, and **no UI reaches any of it** in this release.

This is a genuine feature gap with an unusual appeal: generative, humanised repetition that would
normally take a dedicated plugin. It works; you just cannot click it yet.

### MPE expression

Per-note MPE applies **all three axes on playback**:

| Axis | Applied as |
| --- | --- |
| Pitch | A frequency ratio |
| Pressure | Channel pressure |
| Timbre | CC74 on the note's own channel |

The engine is complete. There is **no expression editor**.

## Scales and snapping

Snap to a scale to keep generated or improvised material in key. Combined with probability and
jitter, this is how to build parts that sound played, not sequenced. Driving it means
the socket or Lua today.

## See also

- [The Song Editor](/docs/interface/song-editor) — where tracks and clips live.
- [The control socket](/docs/control/control-socket) — how to reach the socket-only features.
- [Lua API](/docs/scripting/lua-api) — scripting from inside the application.