Skip to content

Add a performance mode that locks the shapes for the show - #712

Open
aalex wants to merge 12 commits into
devfrom
feat-performance-mode
Open

aalex wants to merge 12 commits into
devfrom
feat-performance-mode

Conversation

@aalex

@aalex aalex commented Dec 5, 2026

Copy link
Copy Markdown
Member

Follows #710 (groups of layers).

Summary

  • A performance mode, to play a show without moving its shapes by mistake: View > Performance Mode (Ctrl+Shift+L, Cmd+Shift+L on macOS), a red button of the toolbar, or a key, a MIDI pad or a button learned on it. One switch, without confirmation.
  • In performance mode, a red banner, a label of the status bar and " — Performance" at the end of the window title say so. The vertices are drawn small and red, as on a locked layer, and the shapes cannot be moved, turned or reshaped with the mouse, the arrow keys, learned keys or MIDI controls.
  • The commands that add, delete or change the shape of a layer are greyed, with "Locked in performance mode" in their tooltip: adding media, a camera, a generator, a Syphon source or a shape, duplicating and deleting layers, groups and sources, turning and flipping, the output resolution, Undo, Redo and the undo history. Dropping media and Create Shapes of the automatic mapping are refused too. The inspector greys the vertices and the columns and rows of a mesh. These commands are kept in one group of actions, disabled at once.
  • Showing, hiding, solo, opacity, playback, cues, effects and saving still work. OSC and MCP can still change everything.
  • The mode is a setting of the project, saved under the key performance only when it is on, so a project in edit mode keeps the same bytes. OSC sets it at /mapmap/project/performance, MCP with the kind project, and links with the element project. --performance starts in performance mode whatever the project says.
  • The lock of a layer now also keeps its shapes from learned keys, MIDI controls and the arrow keys, which moved the selected vertex of a locked layer.
  • Found while trying it: two quick clicks on the eye, the solo or the lock of a layer lost the second click, taken for a double click; a double click on a button now acts as a click, and no longer starts renaming the layer. The solo button shows an "S", as on a mixing desk.
  • Translations: French and Spanish were read by a speaker. Arabic, German, Hindi, Portuguese, Russian and Chinese (simplified and traditional) were not, and stay marked unfinished.

Demo

  1. Open a project with a few layers, and select one: its vertices can be dragged.
  2. Press Ctrl+Shift+L (Cmd+Shift+L on macOS): the toolbar button turns red, a red banner appears, the title ends with " — Performance", and the vertices become small red dots.
  3. Try to drag a vertex or press an arrow key: nothing moves. Drop a video on the editor: it is refused, and the status bar says why. The add, delete, rotate, flip, Undo and Redo commands are greyed, each with its reason in its tooltip.
  4. Hide a layer, put another in solo, change its opacity, play a cue: all of it still works.
  5. Save, close, open the project again: it opens in performance mode. Press Ctrl+Shift+L again: back to edit mode, and Undo still undoes what was done before.
  6. Start mapmap --performance show.mmp with a project saved in edit mode: it starts in performance mode.

Tests

  • On macOS 26 (Apple silicon), Qt 6.11: every commit builds and passes all the tests, checked one commit at a time.
  • New tests: the mode and the lock against links, by origin (interface, links, OSC, MCP); the mode kept in project files, and not written in edit mode; the project setting by OSC; the greyed rows of the inspector; the undo history kept across the mode; two quick clicks on the solo of a layer.
  • By hand on macOS, in French and with --performance: the banner, the title, the red button, the switch by the menu, the "S", and a clean quit.
  • Not run: GNU/Linux and Windows, a real MIDI device, a game controller.

aalex added 12 commits December 5, 2026 09:14
…roject files

The project gets a tree of settings of its own, like a source or a layer.
Its first setting is "performance", off by default. Links reach it with
the target { "element": "project", "setting": "performance" }, which has
no id. It is written at the top of project files only when it is on, so
that a project in edit mode keeps its bytes.
…e, from keys and MIDI

One function of the model, MappingManager::canChangeGeometry(), says
whether the shape of a layer may change, by the mode of the project, the
lock of the layer and where the change comes from. The settings that
change a shape (the vertices, the columns and rows of a mesh) are marked
with SettingInfo::geometry(); a key or a MIDI control linked to one of
them does nothing while its layer is locked or the project is in
performance mode. OSC and MCP still write them.
… OSC and MCP

OSC writes them at /mapmap/project/<path>, with no id:
/mapmap/project/performance 1 goes into performance mode. The MCP tools
set_property and list_settings take the kind "project", and get_state
tells whether the project is in performance mode. Both still move the
shapes in performance mode, for a control desk, a script or the automatic
mapping.
…yer and in performance mode

The editors ask MappingManager::canChangeGeometry() whether a shape may
change: in performance mode, as with a locked layer, its vertices are
drawn small and red and cannot be dragged, the shape cannot be moved or
turned, and the arrow keys no longer move its active vertex, which they
did even on a locked layer. The inspector greys the settings that change
a shape, the vertices and the columns and rows of a mesh, and says why in
their tooltip.
One switch, without confirmation: a button of the toolbar, between the
shapes and the output, red when on, with an "on air" icon; View >
Performance Mode, Ctrl+Shift+L; or a key, a pad or a button learned on
it. In performance mode a red banner, a label of the status bar and the
title of the window say so. The commands that add, delete or change the
shape of a layer are greyed, and say why in their tooltip: adding media,
a camera, a generator or a shape, duplicating and deleting layers and
sources, turning and flipping, the output resolution, Undo and Redo. They
are kept in one group of actions, disabled at once. The duplicate and
delete buttons of the list of layers, dropping media and Create Shapes of
the automatic mapping are refused too. Showing, hiding, solo, opacity,
playback, cues, effects and saving still work.
An installation that starts on its own can lock its shapes from the
first image, even with a project saved in edit mode.
A click in Undo history would go back as Undo does: the list is greyed
in performance mode, with the reason in its tooltip. Switching the mode
is not a step of the history, and what was done before can still be
undone after going back to edit mode.
The release notes, the shortcut Ctrl+Shift+L in the list of keyboard
shortcuts, and the key "performance" and the link target "project" in
the description of the project format.
The texts of the performance mode, in every language. French and
Spanish were read by a speaker; Arabic, German, Hindi, Portuguese,
Russian and Chinese, simplified and traditional, were not, and stay
marked unfinished.
A second quick click comes to a widget as a double click, without a
press, and the buttons of the list of layers only acted on a press: the
eye, the solo or the lock of a layer took three clicks to go on and off
quickly. A double click on a button now acts as a click, and no longer
starts renaming the layer.
As on a mixing desk and in most programs for video and sound: a bold
white letter of the size of the other icons, on its blue panel when the
layer or the group is in solo, and pale where it does nothing. The
release notes also mention the two quick clicks.
@aalex aalex added this to the 1.0 milestone Dec 5, 2026
@aalex aalex self-assigned this Dec 5, 2026
@aalex
aalex requested a review from sofian December 5, 2026 14:14
@aalex

aalex commented Dec 5, 2026

Copy link
Copy Markdown
Member Author

Performance mode, on macOS: the red button of the toolbar, the red banner with the shortcut, " — Performance" at the end of the title, the vertices of the selected ellipse drawn as small red dots, the add buttons of the toolbar and the duplicate and delete buttons of the list greyed, the label of the status bar, and the "S" of the solo buttons.

performance-mode-1800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant