夜光 MML Workshop

Keyboard and Mouse Shortcuts

Four tables, one page

  1. Two worlds: focus decides the keyboard
  2. Playback
  3. Piano roll keyboard
  4. Mouse and wheel
  5. Everywhere

What each button does, and the features that have no shortcut, are in the editor reference. If this is your first time, walk through the editor quick start first.

Two worlds: focus decides the keyboard

The editor has two places you can work in — the piano roll and the MML text pane — and they share one keyboard. There is only one rule:

When focus is in the MML text pane or another input, shortcuts retain their native text behavior. The only exception is Ctrl+D: in the current track's MML pane it duplicates selected notes instead of opening browser bookmarks. Other inputs are unaffected. On macOS use .

Dialogs, drawers and context menus prevent shortcuts from editing notes behind them.

The keys on the roll side share one precondition: something has to be selected. Delete, +/- and Ctrl+C/X all act on "the notes you selected", and with no selection nothing happens at all.

Also, the whole set stands down while a dialog or a right-click menu is open: with the Velocity box open, Delete will not delete the notes behind it and 3 will not quietly change the note length.

The five playback keys are a separate group (Space and the four arrow keys): they need no selection, but they get out of the way while you are typing in the text pane just the same — pressing the space bar in a text box types a space. See playback shortcuts.

Playback

KeyEffectRequires
SpacePlay / pause / resumeEngine ready; focus not on another button or input
/Playhead one bar back / forwardPlaying or paused
Back to the startPlaying or paused
StopPlaying or paused
Media keys: play/pause, stop, one bar back/forwardAfter Play has been pressed once

Piano roll keyboard

KeyEffectRequires
0Switches to Select only (arrow) mode
1 2 3 4 5 6Note length: whole / half / quarter / eighth / sixteenth / thirty-second
7Sixty-fourth note. There is no button for this one — press it and all seven go dark, which is not a fault but "the current length is not one of these seven". The note icon on the left tells you what it is
.Toggles whether the notes you draw next carry a dot (one and a half times as long). To dot notes already drawn, use the right-click menuDrawing mode; sixty-fourth notes cannot be dotted
Ctrl+ASelects every note in the part you are on. Follow it with Ctrl+C and you have the whole part as MML
Ctrl+DDuplicates the selection right after itself, pushed on by a whole number of bars. Hold Ctrl and tap D to lay it down bar after barA selection, not playing
Delete/BackspaceSelected notes become rests of the same lengthA selection, not playing
+/-Velocity one step up or downA selection, not playing
Ctrl+CCopies the selected notesA selection
Ctrl+XCuts the selected notesA selection, not playing
Ctrl+VPastes notes (landing on the selection or the mouse position)Not playing
Half-cell fine-tuning (only while resizing)Only during a drag
Shift+ One octave up or downOnly during a drag; a drum roll has no octaves, so nothing moves there
Shift+ One bar back or forward. It shifts, it does not snap — a note on an off-beat lands on the same off-beat of the next barOnly during a drag
EscCancels the drag in progress and stops the preview; with no drag going, clears the selection

Ctrl+D duplicates the selection a whole number of bars later, preserving its starting position within the bar. It does not push later content forward. Existing notes in the destination span are overwritten, and the count is reported afterwards. Each operation can be undone with Ctrl+Z. The new copy becomes selected, so repeated presses continue the pattern; holding the key does not repeat it.

Mouse and wheel

GestureEffectRequires
Left click on empty spaceDraws a noteDrawing mode
Left click on empty spaceSets the playback start markerSelect only mode
Left drag from empty spaceMarquee: the selection becomes exactly the notes the box caught (catching none clears it)Select only mode, not playing
Ctrl+drag from empty spaceMarquee add: what was already selected staysSelect only mode, not playing
Right click on empty spaceOpens the right-click menu
Left / right click on the bar rulerSets the playback start marker / opens a menuWorks during playback too
Left click a noteSelects it and sounds it once
Right click a noteOpens the note menu
Drag a noteMoves itNot playing
Drag a note's right edgeChanges its lengthSingle selection, not playing
Ctrl+click a noteAdds to or removes from the selectionNot playing
Shift+click a noteRange selectionNot playing
Double-click a noteThe text cursor jumps to its positionSelect only mode, not playing
Click a key on the leftSounds that noteWorks during playback too
Ctrl+wheelColumn-width zoom
Ctrl+Shift+wheel or Alt+wheelRow-height zoom
Shift+wheelHorizontal scrolling

Ctrl+clicking a note and Ctrl+marquee are not the same, and that is deliberate. Clicking toggles (an already-selected note comes out); a box is add only (already-selected notes always stay). A box cannot reliably catch "only the ones not yet selected", so it does not try to toggle.

A plain box (no Ctrl) replaces: the selection becomes exactly what it caught. A selection can be off-screen with nothing on screen to say so, which is why adding is not the default — otherwise "select a few notes in bar 3, scroll to bar 40, box the ones in front of you" would quietly edit bar 3 too.

Everywhere

KeyEffectRequires
Ctrl+ZUndo
Ctrl+Shift+Z/Ctrl+YRedo
Ctrl+SSaves this score. Once it has been saved and the name is unchanged, it writes straight back to the same file; otherwise it opens the save box
EscCloses dialogs, the settings drawer and the phone menu
Adjusts the height of the roll and the editing area (Shift for bigger steps)Focus on the splitter
Enter/EscConfirms / cancels a renameWhile renaming a score

Ctrl+S does one of two things, and the dividing line is whether this is still the file you last saved.

Writes straight back — you have already saved (or opened) a file this session, and since then you have not changed the file name or the destination. Pressing it writes to that same file, without asking again whether to overwrite, and a confirmation appears in the corner. This is the only path on the whole site that overwrites an existing save without asking, so none of the cases below take it.

Opens the save box — the first save, no name yet, a changed file name (that is a save-as), a destination you switched in the box, or a web destination whose sign-in has expired. Pasting over, loading a share and importing a file also send you to the box: each of those replaces the whole contents of the editor, and what is there afterwards is no longer the file you had.

If the score is empty it just says so rather than opening the box. It does nothing while another dialog is open — except the save box itself, where Ctrl+S is simply the save button.

What each button does, and the features that have no shortcut, are in the editor reference. Not read the quick start yet? The editor quick start has a single route from nothing to pasting into the game. To write MML by hand see the syntax guide, and for anything else the FAQ.