# Piano Roll

![Piano Roll Editor](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/yL4hVfExywkZb4fSDDgO/image.png)

The Piano Roll Editor is the main workspace for composing and editing melodies and harmonies. It can be accessed through either the right-click context menu on or double-clicking on:

* a segment in an instrument track, e.g. <img src="https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/7UIOBH10jNvrq6xiuWFA/image.png" alt="" data-size="original">
* a step in a track in the Beat+Bassline Editor

It can also be accessed using the **Show/Hide Piano-Roll button**<img src="https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/LjoQUo5ftTAYtR98Hhek/image.png" alt="" data-size="original">in the main toolbar (shortcut F7, or Ctrl+3 in 1.3).&#x20;

{% hint style="warning" %}
Notice that the **Show/Hide Piano-Roll button** opens the last edited segment. If you just started a new session (not to be confused with starting a new project), you must first connect Piano Roll to a segment to be able to use it. LMMS *will not* remember the last edited segment from one session to another.
{% endhint %}

## Toolbar

![Piano Roll toolbar](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/0xA1PaXdCxG0GlxptdhC/image.png)

Many of the tools are similar to those found in the Song Editor, with several important additions listed (listed below).

### Playback and Record

![Playback and record buttons](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/Xq8BWjtdmnc2qoehATRa/image.png)

In addition to the Playback and Stop controls, there are two **Record** buttons which will record the notes you play on either:

* an attached MIDI keyboard &#x20;
* your computer's keyboard &#x20;

Either Click<img src="https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/f3sOoZQH2ciYbiFNjLDJ/image.png" alt="" data-size="original">to start recording without playing Song Editor/B\&B tracks, or Click<img src="https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/YoulpZqkQCuIWw14zF4b/image.png" alt="" data-size="original">to start recording with Song Editor/B\&B tracks playing.\
Press <img src="https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/zR7wgQA3glNgHRfc80iv/image.png" alt="" data-size="original">to stop playback or recording. The computer keyboard's **spacebar** can toggle between Playback and Stop in both playback and record modes. \
As of 1.3, <img src="https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/wIAG62qyiyEtBChTSszH/image.png" alt="" data-size="original"> allows you to record notes one at a time.\
\
After you press stop, you will be able to see all the notes you played in the Piano Roll. These notes can be edited just like any other notes.

### Editing

![Editing tools](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/qen0j3r4dmbyKogO8v8h/image.png)

Selected notes can be manipulated together. Some keyboard shortcuts include:&#x20;

* Moving the selection (left click + drag)
* Copying the selection (Shift+left click + drag)
* Transposing the selection (Shift/Ctrl + arrow keys). Shift will move the selection one beat/semitone at a time, while Ctrl will move the selection one octave/measure at a time.

The 4 editing modes (tools) are **Draw**, **Erase**, **Select**, and **Detune**.\
You can draw notes with Left click and erase with Right click. (These are explained in further detail in the Edit Notes subsection of this Section).

The **Select** mode tool allows you to select individual notes to create a group or "**selection**" of notes, which you can manipulate.

* **Rectangular Selection:** use the Select tool to drag a rectangular area around some notes. When you release the mouse button, the selected notes will turn blue.
* **Individual Selection:** use the Select tool to left-click on a note - it will turn blue
* **Add to (or remove from) Selection:** you can add more notes to the current selection by holding down the Shift key (Shift+drag or Shift+click) and the additional notes will turn blue, too. If the notes are already selected, it will remove them from the selection.
* **Clear Selection:** left-click on an empty space in the Piano Roll

![Detuning (Note similarities to Automation Editor)](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/oVWIXwH0vWaByr6dZeiF/image.png)

The **Detune** mode allows you to edit the frequency profile of an individual note. When you click on a note, an Automation Editor window opens for that note, and from here you can use your mouse to plot points for a Detune profile graph, this profile will be used to alter the final pitch of the edited note when played. \
Notice that in Piano roll, edited notes will have green lines that reveal their Detune profile.

{% hint style="warning" %}
VST instruments cannot have per-note detuning. You may still detune the instrument as a whole from the Instrument Window's "PITCH" knob.
{% endhint %}

### Clipboard

![Clipboard buttons](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/POiFwVKxs2eUczy4O2Pj/image.png)

The Clipboard buttons allow you to cut, copy, and paste a selection, and the **Delete** key on the computer keyboard will delete the selected notes.

* Click the **Copy** button (Ctrl+c) to copy the selected note(s) and place them in the clipboard. Shift+drag on the selected note(s) to **duplicate** - drag a copy of the selected note(s) away from the original(s).

### Playback Control

![Playback buttons](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/HgH0AYKYMugqoRQ9F7Qr/image.png)

These work the same as the playback controls in the Song Editor. To repatriate loops:

* **Set right loop-point:** use right mouse button only
* **Set left loop-point:** use right mouse button + Shift
* **(1.3 and later) Set both right/left loop-points**: use right mouse button near desired loop-point

Hold Ctrl to place loop-points freely.

### Zoom

![Zoom control](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/GR9IUc6rFccBDv1AYA8D/image.png)

This works the same as in the Song Editor. The drop-down menu can be used to set horizontal zoom.

![Vertical Zoom Control](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/GJD4hlmgzA26zRSdB3LP/image.png)

As of 1.3, vertical zooming is now avaliable in the Song editor.<br>

### Quantization

![Quantization control](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/mF5NGVPuhaZLYeR0YAaB/image.png)

The Quantization can be set using drop-down menu, this allows you to set the minimum resolution for manipulating note length using that fraction of a bar, when using both Draw mode and Record. \
For example, if you set the Quantization to 1/1 , you'll only be able to place notes at the start of a whole bar, and you'll only be able to adjust their length in 1-bar increments. \
If you set the Quantization to 1/16, you'll only be able to place notes at 1/16 intervals, and you'll only be able to adjust their length in 1/16 intervals. \
So on and so forth.\ <img src="https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/pKDfb9DGC0LRlkxN2MOt/image.png" alt="" data-size="original"> snaps notes to the nearest division (set by Quantization) in the Piano Roll.

### Tools

As of 1.3, Tools are new avaliable in a dropdown menu next to <img src="https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/pKDfb9DGC0LRlkxN2MOt/image.png" alt="" data-size="original"> .

![Tools](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/9S35yolAZOFr3Ao2jw6J/image.png)

* **Glue (Shift+G):** combines two notes if they are right next to each other and on the same pitch.

![Glue Tool](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/Lhh88yzlAHGWraeB8byj/image.png)

### Edit Notes

#### Draw and Move Notes

Use the Draw mode tool to place notes in the Piano Roll. As you hover your mouse or move a note in the work area, a gray horizontal line will track the vertical position of your mouse. This can help you see the pitch of the note you're placing by allowing you to track back to the Piano Keys.

* &#x20;**Left-click** to place a note, or if a chord is selected:
  * Place the notes of the chord with current note as the root note
  * **Shift+left-click** to place notes in arpeggio mode (this will only duplicate notes onto themselves if no chord is selected)
* Hover over the center of a note until a **four headed arrow** appears then:
  * **Drag** to move the note(s) either left/right in time or up/down in pitch. The note(s) will snap to the nearest time increment as set in the Quantization drop-down menu.
  * **Alt+drag** to move the note(s) either left/right in time or up/down in pitch, but without snapping to the nearest time increment. Instead, the note(s) will "free-drag" and snap to the nearest 1/192 time increment (max Quantization in LMMS).
* Hover over the right end of the note until a **two headed arrow** appears, then
  * **Drag** the end of a note to the left/right to change the length of the note(s) in accordance to the current selected quantization.
  * **Alt+drag** the end of a note to the left/right to change the length of the note(s). The right end of the note(s) will "free-drag" and snap to the nearest 1/192 time increment, i.e. max Quantization

{% hint style="info" %}
Holding down the Ctrl key in Draw mode converts the mouse cursor to the Select mode tool, and it returns to the Draw mode on release.
{% endhint %}

#### Erase notes

There are 3 ways to erase notes:

* Use the **Erase mode** tool to delete notes: (both left and right-click)
* Right-click to delete notes in **Draw mode**
* To delete multiple notes, use the **Select mode** tool (or Ctrl+click and drag) and press delete

### Default Note Length

![Note length control](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/3dQ8ltMSigPTkRcueaRs/image.png)

The **Default note length** setting (in bars) can be set using a drop-down menu. This sets the default length of notes made when you click in the Piano Roll with the Draw mode tool. \
You can choose either between a specified note length, or that the next note will be the same length as the last drawn note. As soon as you have established a perfect note-length and position, you will normally like to use the setting "last note".

## Note Volume and Panning

![Individual note velocity](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/GioT29dmcYiZW1w0vnM8/image.png)

Click the **Note Volume/Note Panning** button below the piano keys to toggle between the Note Volume and Note Panning editor. \
Velocity is shown as a vertical green bar below the note in the Note Volume editor. You can change the velocity of each note by clicking on the desired value above/below the current value. The color of the note will brighten with increased velocity and dim with decreased velocity.

{% hint style="info" %}
If you are using a Velocity-Sensitive Midi keyboard, the velocity of each note will be set automatically when using **Record**.\
Also note that Velocity may affect more than just Volume, depending on the instrument.
{% endhint %}

![Individual note panning](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/PKgbbRJm8WpdjCrsLWX5/image.png)

**Pan** is the ratio of the note volume that is transmitted out the right stereo channel versus the left stereo channel. \
Pan is shown as a vertical green bar below the note in the Note Pan editor.\
You can set the Pan for each note by clicking on the desired value above/below the current value. The color of the note will darken on one side depending on the strength/direction of the Pan (Right: Bottom will darken, Left: Top will darken).

## Piano Keys

![Piano keys](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/dzJLofxfoABbmcseJexD/image.png)

You can vertically scroll the Piano Roll using either the scroll bar on the right side of the window or the scroll wheel on your mouse (Holding Ctrl allows you to scroll horizontally). \
Left-click on any piano key (or or press a key on a connected midi controller) to hear the corresponding note. You will also hear any noteblock that is Left-Clicked from within the Piano Roll.

{% hint style="info" %}
Your Keyboard can be used to play notes in the Piano Roll.
{% endhint %}

You can mark all whole notes with their appropriate alphabetic notation (This option is found in the **General Settings** page as "**Enable note labels in Piano roll**").&#x20;

![Piano Keys with note labels enabled](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/6PrTKeLAVvqgCLRJNIHo/image.png)

You can also mark individual notes, chords and scales. All these options are available as items in a context menu, by right-clicking anywhere on the Piano Keys. The piano key you open the context menu **impacts what notes are affected by its options**.

From this context menu you are able to:

* **mark scales, chords, corresponding octave semitones, and semitones.**
* **unmark corresponding octave semitones and semitones, or unmark all notes.**
* **select all corresponding octave semitones.**&#x20;

![C major marked on Piano Roll](https://content.gitbook.com/content/sOyi2widgEtSqcjOGVN2/blobs/Z8d9Z2sWpXOmTN0ICS3s/image.png)

{% hint style="info" %}
To mark/unmark Scales/Chords, you first need to select the type of scale/chord from the two rightmost drop-down menus found in the toolbar.

Chords/Scales are marked from their root notes/1st scale degree, respectively.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lmms.io/user-manual/navigating-lmms/piano-roll.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
