MIDI has some special editing functions because you can work with MIDI both as clips and as individual notes. Clips can be edited, copied and moved as individual objects that contain groups of notes. In Notes view, there are additional note-level selection and editing features.
In this article
- Working with Clips on a MIDI Track
- Resizing the MIDI track
- Showing MIDI Notes
- Selecting MIDI Notes
- Cutting, Copying, and Pasting MIDI Notes
- Shift-Editing MIDI Clips
- Editing MIDI with the Editing Tool
- Transposing MIDI Notes
- Quantizing MIDI nNotes
- Editing MIDI Continuous Controllers
- Sending MIDI Clock to Devices
Working with Clips on a MIDI track
The two main editing views on a MIDI (Instrument) track are Clips and Notes.
Note: For clip editing functions (except for making selections), Clips and Notes view behave the same, so Notes view is used for some examples in this section.
Selecting MIDI in Clips view
To select a clip, click near the vertical top or bottom of the clip.
Note: In Notes view, you can only select a MIDI clip from the top of the clip.
To select a range in a MIDI clip, hover your mouse above the vertical middle of the clip. The selection cursor appears. Click and drag to the left or right to make a selection.
Renaming a MIDI clip
Double-click in the top bar of a MIDI clip anywhere except on the CC view or Quantize button to rename the MIDI clip. A popover opens. Type the new clip name, then click Done.
Moving MIDI clips
To move a clip, hover at the top of the clip. The move tool appears. Click and drag the clip to a new location. You can drag a clip on the same track, or to another track, if it is the same type (audio or MIDI). If you have Snap enabled, the moved clip snaps to the grid. To move without snapping to the grid, hold the Command (macOS) or Alt (Windows) key while you drag.
When you move a MIDI clip, it can overlap an existing clip. You can see the overlapping area when dragging the clip. The overlapping MIDI area is played, while any underlying notes are not. If you later move the clip again, any underlying clips that exist are revealed.
Trimming MIDI clips
Trim a MIDI clip to either make it smaller or to extend the MIDI clip. This is useful because if you want to add more MIDI notes before or after an existing passage, you must extend the MIDI clip to contain that data. Alternatively, you can shorten a MIDI clip to hide notes at the beginning or end of a clip. Those notes are still available if you later trim the MIDI clip out to show them.
To trim a MIDI clip:
- Hover near the bottom at the start or end of a MIDI clip. The Trim Editing Tool appears.
- Click and drag to shorten or lengthen the MIDI clip.
MIDI clip showing Trim Editing Tool
MIDI clip extended with Trim Editing Tool
Resizing the MIDI Track
Before you add and edit MIDI notes, or cut, copy or paste MIDI data, you will likely want to resize the MIDI track. There are several ways to do this.
Resize all tracks: At the top of the Edit workspace, click the Tracks icon, and choose a new track height size.
Resize one track: Drag up or down from the lower edge of the Track controls area. This resizes just one track.
Expand the track to the full editing space: Press the E key.
Resize (zoom) the track horizontally: Click the plus and minus buttons at the bottom of the Edit workspace (or use the keyboard shortcuts Command+[ to zoom out, and Command+] to zoom in on macOS or Ctrl+[ to zoom out, and Ctrl+] to zoom in on Windows).
Marquee zoom (zoom to a mouse selection): Press Option (macOS) or Alt (Windows) and hover your mouse. The marquee zoom tool appears, and you can click and drag to marquee zoom. Option+click in the timeline to step back through previous marquee zoom states.
Zoom horizontally with a trackpad: Pinch in or out.
Zoom horizontally with a mousewheel: Hold the Option (macOS) or Alt (Windows) key and scroll.
Showing MIDI Notes
You can vertically resize the MIDI notes on an Instrument track to make them easier to edit and work with.
Set the instrument track to MIDI Notes view. On the instrument track, click View, and from the View browser, choose Notes. Notes view is indicated, and the keyboard and piano roll appear to the right of the track controls.
At the left of the MIDI track is a scroll bar. You can use the scroll bar to move up and down in the piano roll, and to resize the notes in the piano roll vertically.
To resize MIDI notes on the piano roll
- Click and drag up or down at the top or bottom of the scroll bar.
- Drag up to make notes smaller vertically.
- Drag down to make notes larger vertically.
- Click Fold at the top of the Notes view keyboard to show only the notes used on the clip, with note names.
- Click Fit at the bottom the Note view keyboard to fit the range of notes on the piano roll to the height of the track.
Selecting MIDI Notes
There are several ways to select multiple MIDI notes
- Click and drag a selection rectangle around the notes (rubber banding).
- Shift+Click on multiple notes. You can select contiguous or non-contiguous notes.
- Click a note on the Notes view keyboard at the left edge of the track to select all instances of that note. This selects all notes on the track, not just in a clip.
- Shift+Click different notes on the Notes view keyboard at the left edge of the track to select all instances of multiple notes.
Select with a selection rectangle
Shift-click to select multiple contiguous or non-contiguous notes
Select from the Notes view keyboard
Cutting, Copying, and Pasting MIDI Notes
Cutting, copying, and pasting MIDI works differently from editing audio:
You can select non-contiguous MIDI notes.
The paste operation respects the structure of the cut or copied data. If you paste within an existing clip, the notes are pasted within the boundaries of the clip. If you paste MIDI notes on the timeline outside a MIDI clip, a new MIDI clip is created.
MIDI notes are selected, cut, copied, and pasted with the same time relationships and durations as the selection.
MIDI selections conform to the grid if Snap is enabled.
To cut and paste MIDI notes
- Select MIDI notes to cut. You can select a range with the Select Editing Tool, draw a selection with the selection rectangle, select contiguous or non-contiguous notes by shift-clicking individual notes, or select specific notes from the Notes View Keyboard.
To cut notes, press X (if MIDI Keyboard Mode is not enabled), or Command+X (macOS) / Ctrl+X (Windows). The MIDI notes are removed from the clip and copied to the clipboard.
To paste notes, place the playhead at a location in the Timeline or in another MIDI clip and press V (if MIDI Keyboard Mode is not enabled), or Command+V (macOS) / Ctrl+V (Windows).
To copy and paste MIDI notes
- Select MIDI notes to copy. You can select a range with the Select Editing Tool, draw a selection with the selection rectangle, select contiguous or non-contiguous notes by shift-clicking individual notes, or select specific notes from the Notes View Keyboard.
To copy notes, press C (if MIDI Keyboard Mode is not enabled), or Command+C (macOS) / Ctrl+C (Windows). The MIDI notes are copied to the clipboard.
To paste notes, place the playhead at a location in the Timeline or in another MIDI clip and press V (if MIDI Keyboard Mode is not enabled), or Command+V (macOS) / Ctrl+V (Windows).
Shift-Editing MIDI Clips
The shift workflow allows you to edit MIDI and keep your arrangement flowing around your edits (also known as ripple editing). For example, you can cut or paste MIDI, and have the MIDI clips on one or more tracks shift back or forward in time to accommodate the cut or paste.
Note: The Shift-editing workflow works only with a time selection on a clip (for example, a whole clip, or a selection made with the Select Editing Tool). You cannot Shift edit with single notes, rectangular selections, non-contiguous notes, or note selections made with the Notes View Keyboard.
- Shift+X: Cuts the selection and pulls all following MIDI data forward to fill the gap.
- Shift+V: Pastes the selection and pushes all following MIDI data later in the timeline to make room.
- Shift+D: Copies and inserts the selection immediately after itself, pushing all following MIDI data further back.
- Shift+I: Creates a gap by pushing MIDI data forward based on the length of your current selection.
- Shift+Delete: Deletes the selection and pulls all following MIDI data forward to close the empty space.
Editing MIDI with the Editing Tool
You can record MIDI from a MIDI controller to an Instrument track, and you can add or edit MIDI notes and controller values with MIDI on an Instrument track manually, using the Editing Tool. Set the Grid settings to specify the default note length. When you add a MIDI note, the default note length is the Grid setting. Notes you add snap to the grid if Snap is enabled.
Adding and editing MIDI notes on an instrument track
To work with notes in a MIDI clip or on an Instrument track, click View on the track, and choose Notes in the Browser to set the track to MIDI Notes view.
Add MIDI notes
Hover over a note location. The MIDI Note Editing Tool (a plus symbol) appears. Double-click on the location where you want to add the note. The note is added.
Add multiple MIDI notes
To add multiple notes, press Control and click and drag from left to right across the track. The MIDI Pencil Editing Tool appears and draws notes across the track. MIDI notes of the duration determined by the Grid size are added, on the pitch where you release the click.
Delete a MIDI note
To delete a MIDI note, hover over the note. The MIDI Hand Editing Tool appears. Double-click the note to delete it.
Move a MIDI note
Hover over the note. The MIDI Hand Editing Tool appears. Click on the note and drag it up or down to change the MIDI note, and left or right to change the time location. As you move the note up and down, the different notes are triggered on the Instrument plug-in. MIDI notes will snap to the grid if Snap is enabled.
Trim a MIDI note
Hover near the edge of a MIDI note. The MIDI Trim Editing Tool appears. Click on the left or right edge of the note and drag to trim the note. MIDI note edges will snap to the grid if Snap is enabled. To ignore the Grid when trimming, press Command (macOS / Ctrl (Windows) after you start to trim.
Change the velocity of a MIDI note
- In the MIDI track: Press Command (macOS) / Ctrl (Windows) and hover over a note. The MIDI Velocity Editing Tool appears. Command+Click on the note and drag up or down to increase or decrease the note velocity. The relative transparency of the note indicates the velocity. Notes become less opaque and more transparent as velocity decreases, and more opaque and less transparent as velocity increases.
- In the CC Velocity view: Show the MIDI CC sliders (set to Velocity by default), and click and drag on a velocity stalk to edit velocity for a note. You can click the note to highlight the note’s velocity stalk. If you select multiple notes, Option+Click and drag to edit multiple velocity stalks. Shift-click to select multiple velocity stalks.
Show the MIDI CC track for an instrument track
Click the MIDI CC icon at the top of the track, next to the track name.
Edit the velocity of a MIDI note on the velocity track
Click on the velocity stalk and drag it up or down.
Edit the velocity for multiple MIDI notes
- Select multiple notes on the timeline, or select multiple velocity stalks on the velocity track. Shift-click to select multiple non-contiguous velocity stalks.
- Option+Click (macOS) / Alt+Click (Windows) on a note velocity stalk and drag up or down. All selected note velocities are adjusted relative to each other.
Draw MIDI note velocities
- Press Control on the velocity track. The cursor changes to a pencil.
- Draw velocities across the velocity track. Note that if you have made a selection, you can only draw velocities on selected notes.
Transposing MIDI Notes
- To transpose one or more selected MIDI notes up one semitone, press ↑.
- To transpose one or more selected MIDI notes down one semitone, press ↓.
- To transpose one or more selected MIDI notes up an octave, press Shift+↑.
- To transpose one or more selected MIDI notes down an octave, press Shift+↓.
Quantizing MIDI notes
You can quantize MIDI notes, selections, or clips to any grid increment, and add swing.
Grid: Quantize notes to the selected Grid setting, ranging from BAR (whole notes) to /64 (64th notes). You can also select Dotted values, Triplet values, or both.
Follow Snap Setting: Quantize notes based on the current Snap Grid setting.
Swing: Shifts every other Grid boundary by a specified percentage (0–100%). A Swing of 0% does not shift notes, while 100% shifts notes 2/3 of the way to the next grid line.
Strength: Sets the intensity of the quantization. At 50%, notes move halfway toward the grid; at 100%, notes are fully snapped to the grid.
-
Range: Determines the detection window for notes to be quantized. The default 100% detects notes within half the grid value to the left and right.
Example: With a 1/4 note grid, a 100% range detects notes within 1/8 note of the grid line. A 50% range detects notes within 1/16 note of the grid line.
Auto Apply: When enabled, you can hear and see quantization changes in near real time as you adjust settings. If disabled, you must manually click Quantize to apply changes.
To quantize MIDI notes
- Select a MIDI note or notes, or a MIDI clip.
-
Press Command+Shift+U (macOS) / Ctrl+Shift+U (Windows) to open the quantize panel. You can also press the Q in the header of an audio clip, though this will change your selection unless you have enabled a track group.
- To preview your Quantize choices in real time, select Auto Apply.
- Choose a grid value to which to quantize notes. You can select from 64th notes to whole notes, and dotted or triplet modifiers.
- To follow the Snap grid setting, click Follow Snap Setting.
- To adjust the amount of swing from 0 to 100%, move the Swing slider.
- To adjust quantize strength, move the Strength slider from 0 to 100%.
To adjust the quantize detection range, move the Range slider from 0 to 100%.
- Click Quantize to apply your settings.
Note: If Auto Apply is enabled, any setting you change will update your selection.
Editing MIDI Continuous Controllers
You can show MIDI Continuous Controller (CC) lanes and edit automation.
To show MIDI Continuous Controllers, click the MIDI CC button on a MIDI clip.
By default, MIDI CC view shows Velocity and the velocity sliders.
To show a MIDI CC controller lane
- Click the MIDI CC button on the MIDI clip.
- Click on the Velocity button on the track control area to open the MIDI CC browser. The MIDI CC browser lists all the MIDI CCs.
- Choose a MIDI CC controller. The automation lane for the controller is displayed.
To write automation for a CC, see Automating a MIDI Continuous Controller.
Sending MIDI Clock to Devices
You can configure LUNA to send MIDI Clock position and timing information to connected MIDI devices.
To send MIDI Clock to a device
- In LUNA, click the UA logo at the top left of the screen, or select LUNA > Preferences from the application menus.
-
Click MIDI. The MIDI Settings screen opens.
- To enable MIDI Clock for a device, click the box next to the device name.
- Select the Clock mode (Song or Pattern).
- If necessary, you can configure an offset, from -200 to +200 milliseconds, by typing a number or moving the Delay slider.
In most instances, this setting is not required. However, if you find that your device is not in sync or out of phase with LUNA playback, small adjustments to the MIDI clock timing sent to the device may correct this issue.
MIDI Clock modes
You can set the MIDI clock output to Song mode or Pattern mode. If you are working with a pattern-based generator (for example, a drum machine that triggers loops or sequences), Pattern mode will provide the best experience. If the device should be syncing for the duration of the song, Song mode will provide the best experience.
Song Mode MIDI messages
In Song mode, LUNA sends MIDI messages to the device with the following rules.
-
Start play in LUNA
- MIDI Messages: Song position pointer, START, CLOCK (ongoing)
- Additional Info: CLOCK is sent until stop.
-
Stop play in LUNA
- MIDI Messages: STOP, Song position pointer
-
Click on the Bars and Beats ruler during playback
- MIDI Messages: STOP, Song position pointer, CONTINUE, CLOCK (ongoing)
- Additional Info: CLOCK is sent until stop.
-
Loop reaches the end and restarts
- MIDI Messages: STOP, Song position pointer, CONTINUE, CLOCK (ongoing)
- Additional Info: CLOCK is sent until stop.
Pattern Mode MIDI messages
In Pattern mode, LUNA sends MIDI messages to the device according to the following rules.
-
Start play in LUNA, not on a bar
- MIDI Messages: Song position pointer (0), START (when a bar is reached), CLOCK (ongoing)
- Additional Info: CLOCK is sent until stop.
-
Start play in LUNA on a bar
- MIDI Messages: START, CLOCK (ongoing)
- Additional Info: CLOCK is sent until stop.
-
Stop play in LUNA
- MIDI Messages: STOP
-
Click on the Bars and Beats ruler during playback
- MIDI Messages: CLOCK (ongoing)
- Additional Info: CLOCK is sent until stop.
-
Loop reaches the end and restarts
- MIDI Messages: No messages