Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.
description: "Task list for the Docked Mixer"
Tasks: Docked Mixer
Input: Design documents from /specs/054-docked-mixer/
Prerequisites: plan.md, spec.md, research.md, data-model.md, contracts/ui-commands.md, quickstart.md
Tests: No automated test tasks — the spec does not ask for them and the managed UI has
no unit-test project. Each story is validated with the matching
quickstart.md scenarios (headless Avalonia harness + screenshots when the
GUI can't be launched); scripts/build.sh is the PR gate.
Organization: Tasks are grouped by user story so each story can be built and checked on its own.
Format: [ID] [P?] [Story] Description
- [P]: Can run in parallel (different files, no dependencies)
- [Story]: Which user story this task belongs to (US1, US2, US3)
All paths are relative to the repository root. App/ below means
src/managed/Nota.App/.
Phase 1: Setup (Shared Infrastructure)
Purpose: Persisted preference fields and the new command id, used by every story.
- T001 [P] Add
MixerFloating(bool, defaultfalse→ docked),MixerShown(bool, defaultfalse) andMixerDockHeight(double, default0= natural height) next toMixerViewinsrc/managed/Nota.Application/Settings.cs, each with a<summary>in the file's style; data-model rule: "Unknown / missing fields in an oldersettings.jsontake the defaults (docked, hidden)" - T002 [P] Add
C("view.mixerFloat", "Mixer in its own window", "View", "", "dock undock float pop out mixer window")afterview.mixerinsrc/managed/Nota.Application/Palette/CommandCatalog.cs
Phase 2: Foundational (Blocking Prerequisites)
Purpose: Height-adaptive strips (FR-014 — needed for any docked height and also
improves the floating window) and the BodyGrid refactor that makes room for a second
bottom panel.
⚠️ CRITICAL: The docked panel (US1) depends on both parts.
Height-adaptive MixerView (research R4)
- T003 In
App/MixerView.csmake the fader height variable: replace the fixedHeight = 190grid inFaderRowwith a height driven by a field (default 190, minimum ≈ 72), keep a list of the fader rows/meters so a height change only setsHeighton existing controls (noRefresh()rebuild); the master strip follows the same height - T004 In
App/MixerView.csadd tier selection: on_main.SizeChanged(and afterRefresh()/ApplyView()), compute the strip-area height and pick, in order, Full → hide I/O rows → hide sends rows → shrink the fader toward its minimum; effective visibility of a section = user toggle on AND (fits OR pinned); only toggleIsVisibleon the existing_ioSections/_sendSections - T005 In
App/MixerView.csexposepublic double MinContentHeight(header + pan + fader at minimum + dB + M/S/Arm + footer + row margins, measured from the built controls, not hard-coded) and an eventMinContentHeightChangedraised when it changes (strip rebuild, UI scale) - T006 In
App/MixerView.csgive the footerSends/I/Otoggles the auto-hidden state from contracts/ui-commands.md: muted paint + tooltip "Hidden: not enough height · click to show anyway"; click while auto-hidden → pinned visible and_stripsScroller.VerticalScrollBarVisibility = Auto; click again → off; turn vertical scrolling back off when no section is pinned - T007 In
App/MixerWindow.cssetMinHeightfrom the hostedMixerView.MinContentHeight+ title bar (BarH), scaled byNotaUiScale, and update it onMinContentHeightChanged; check the Stereo map (App/StereoMapView.cs) at that height and give it aMinHeightthat fits if it clips (research R4)
BodyGrid refactor (research R2, R3)
- T008 In
App/MainWindow.Detail.csaddLayoutBottomPanels()that rebuildsBodyGrid.RowDefinitionsand theGrid.RowofBrowserGrid,DetailSplitter,DetailPanelfor the visible set[main * (MinHeight 120)] [mixer splitter, mixer]? [detail splitter, detail]?, plusDetailRow(current detailRowDefinition) accessor; with the Mixer absent the result must equal today's three-row layout - T009 Replace every
BodyGrid.RowDefinitions[2]use withDetailRowand route show/hide throughLayoutBottomPanels()inApp/MainWindow.Detail.cs(ShowDetail, the hide at ~line 896),App/MainWindow.DetailWindow.cs(OnToggleDetailWindow) andApp/MainWindow.axaml.cs(DetailSplitter.DragCompleted— keep storing the row'sActualHeight, the #53 rule) - T010 Add
FitBottomPanels()inApp/MainWindow.Detail.cs, called onBodyGrid.SizeChangedand afterLayoutBottomPanels(): keep the main view ≥ 120, shrink the Mixer row toward its minimum first (its strips adapt; device cards have a fixed height), then the Devices row; never write remembered heights from a clamp - T011 Regression pass of the Devices / Pattern / Clip panel with the Mixer hidden: open Devices, switch to Clip, drag the splitter, re-select clips (no #53 shrink), Tab cycling, pop out to
DetailWindowand dock back — behaviour identical todevelop
Checkpoint: The floating Mixer adapts to its height; the bottom panel works as before on the new row builder.
Phase 3: User Story 1 — Mix without leaving the main window (Priority: P1) 🎯 MVP
Goal: View → Mixer / ⌘⇧M shows the full Mixer docked under the main view; it resizes, remembers its height, and hides again.
Independent Test: quickstart scenarios 1–8 and 14–17 in Arrangement view.
- T012 [US1] In
App/MainWindow.axamladdMixerSplitter(6 px transparentGridSplitterover the seam, likeDetailSplitter) andMixerPanel(Borderdocked on a seam,Radius.Docked, same look asDetailPanel) insideBodyGrid; toolbar 32 px withMixercaption,Strips | Stereo mapsegments, spacer, pop-out (Glyph Kind=PopOut, tooltip "Open the mixer in a window") and close (Kind=Close, tooltip "Hide the mixer") buttons; bodyContentControl x:Name="MixerHost"; followDESIGN.md/nota-design - T013 [US1] Extend
LayoutBottomPanels()inApp/MainWindow.Detail.cswith the Mixer rows (Mixer directly under the main view, Devices under it — FR-004),MixerRowaccessor, rowMinHeight= toolbar +MixerView.MinContentHeight(scaled), height =MixerDockHeightclamped, or the natural full-strip height when0 - T014 [US1] Rewrite
App/MainWindow.Mixer.csas the placement controller (research R1):ShowMixer(),HideMixer(),ToggleMixer()(bound toview.mixer),IsMixerShown; docked path =SetHost(MixerHost, _mixer),_mixer.IsVisible = true,_mixer.Refresh(),LayoutBottomPanels(); hide path detaches viaSetHost(MixerHost, null), setsIsVisible = false; keep the existing floating code path working forMixerFloating == true; update the file header comment - T015 [US1] Wire the panel toolbar in
App/MainWindow.Mixer.cs: segments ↔_mixer.View+settings.Current.MixerView(same asMixerWindow.ViewPicked), close button →HideMixer(); keep the segments in sync when the view changes elsewhere - T016 [US1] In
App/MainWindow.Commands.csbindview.mixertoToggleMixer()(replacingToggleMixerWindow);App/MainWindow.Input.cs⌘⇧M keeps runningview.mixer— fix its comment - T017 [US1] Persist in
App/MainWindow.Mixer.cs/App/MainWindow.axaml.cs:MixerSplitter.DragCompletedstoresMixerRow.ActualHeight(design units) toMixerDockHeight; every user show/hide writesMixerShown;settings.Save()after each - T018 [US1] Restore on start in
App/MainWindow.axaml.csOpened(after the welcome / recovery flow): ifMixerShownand notMixerFloating,ShowMixer()docked - T019 [US1] In
App/MainWindow.Palette.csSnapshotContext: focus withinMixerPanel→PaletteOrigin.Mixer, track =Timeline.SelectedTrackId(mirror theMixerWindowbranch); palette stays inPaletteLayer - T020 [US1] Verify in the docked panel (quickstart 14–17): Space / Return / ⌘Z work with a fader focused, Escape does not hide the docked Mixer, MIDI learn via the main
LearnOverlaymaps a docked fader (wireLearnOverlay.Refresh()on show if highlights don't appear), UI scale 125% and Studio Light restyle live; fix what fails inApp/MainWindow.Mixer.cs
Checkpoint: The docked Mixer works in Arrangement — MVP.
Phase 4: User Story 2 — Docked Mixer in every main view (Priority: P2)
Goal: The docked Mixer stays shown with the same view and height across Arrangement, Session and Modular; Session's own sections are untouched and in sync.
Independent Test: quickstart scenario 9.
- T021 [US2] Check the view switches (
OnShowSession,OnShowModular, arrangement) inApp/MainWindow*.csfor code that hides bottom panels or resetsBodyGridrows; make them leaveMixerPanel,MixerRowheight and_mixer.Viewalone, and callLayoutBottomPanels()if they change the Devices panel - T022 [US2] With the Mixer docked in Session, change volume / pan / sends in
App/SessionView.Mixer.cssections and in the docked strips; confirm each side follows the other (both read the engine on the UI tick); fix any missing refresh inApp/MainWindow.axaml.cstick (_mixer.UpdateMeters())
Checkpoint: US1 + US2 work together.
Phase 5: User Story 3 — Switch between docked and floating (Priority: P2)
Goal: Pop out from the panel, dock back from the window, toggle from View menu / palette; last placement and shown state survive a restart.
Independent Test: quickstart scenarios 10–13 and 18.
- T023 [US3] In
App/MixerWindow.csadd a dock button at the right of the title bar (tooltip "Dock the mixer in the main window") andpublic event Action? DockRequested; clicking raises it and closes the window; plain close / Escape stays "hide" - T024 [US3] In
App/MainWindow.Mixer.csaddSetMixerFloating(bool)(research R7): writesMixerFloating; if shown, moves the Mixer — docked →SetHost(MixerHost, null), hide the panel rows, openMixerWindowwith the existing setup (view,FitWidth, MIDI learn,StripsChanged); floating → close the window without recording hidden, thenShowMixer()docked; panel pop-out button andDockRequestedcall it - T025 [US3] In
App/MainWindow.Commands.csbindview.mixerFloattoSetMixerFloating(!MixerFloating); inApp/MainWindow.axamladd View → "Mixer in its own window" (app:Commands.Id="view.mixerFloat", checkable) after "Mixer", and keep its check state in sync fromApp/MainWindow.Mixer.cs - T026 [US3] Floating persistence in
App/MainWindow.Mixer.cs: user close of the window writesMixerShown = false, but not when_shuttingDownis set (App/MainWindow.DetailWindow.cssets it) or when the close comes from a dock / float switch; restore inApp/MainWindow.axaml.csOpened:MixerShown && MixerFloating→ open the window after the main window is shown
Checkpoint: All stories work; quickstart 1–18 pass.
Phase 6: Polish & Cross-Cutting Concerns
- T027 [P] Fix stale comments:
App/MixerView.csheader ("a third Detail mode"),App/MainWindow.axamlDetail panel comment ("… / Mixer for the selected track"), the_mixercreation comment inApp/MainWindow.axaml.cs - T028 Run all quickstart.md scenarios (headless harness with
NOTA_DATA_DIR=/tmp/dockmixer/datawhere the GUI can't launch); capture docked / floating / both-panels / low-height screenshots for the PR
Nota closing tasks (always include — these are the PR gates)
- T029 Run
scripts/build.shuntil native + managed + smoke test are green - T030 AGPL-3.0-only SPDX two-line header on every new source file — N/A unless a new file is added (plan adds none)
- T031 New dependency — N/A
- T032
CHANGELOG.md[Unreleased]→ Added: the Mixer docks in the main window (Arrangement, Session, Modular) and can pop out / dock back; strips adapt to the height - T033 FEATURES.md via
nota-features; Mixer page EN + RU in../nota-docswith new screenshots vianota-docs;nota-shortcuts: confirm ⌘⇧M entry text still fits (no new binding) - T034 Engine behaviour change → smoke test — N/A (UI-only)
Dependencies & Execution Order
Phase Dependencies
- Setup (T001–T002): none.
- Foundational (T003–T011): T003 → T004 → T005 → T006/T007; T008 → T009 → T010 → T011. The two tracks are independent of each other.
- US1 (T012–T020): needs T001, T005, T008–T010.
- US2 (T021–T022): needs US1 (there is nothing docked to keep otherwise).
- US3 (T023–T026): needs US1 docked path and T002; T023 can start any time after T007.
- Polish (T027–T034): after the stories.
Within stories
- US1: T012 → T013 → T014 → T015–T019 → T020.
- US3: T023 → T024 → T025, T026.
Parallel Opportunities
- T001 ∥ T002.
- MixerView track (T003–T007) ∥ BodyGrid track (T008–T011) — different files.
- T023 (
MixerWindow.cs) ∥ US1 tasks inMainWindow.*. - T027 ∥ T028.
Parallel Example
Track A: T003 → T004 → T005 → T006 → T007 (App/MixerView.cs, App/MixerWindow.cs)
Track B: T008 → T009 → T010 → T011 (App/MainWindow.Detail.cs, DetailWindow.cs, axaml.cs)
Implementation Strategy
MVP First (User Story 1)
- Setup + Foundational (the floating Mixer already gains adaptive strips).
- US1 → validate quickstart 1–8, 14–17 → the docked Mixer is usable.
Incremental Delivery
- US2 → view switching verified.
- US3 → pop-out / dock, restart restore.
- Polish, docs,
scripts/build.sh, PR with screenshots (nota-pr).
Notes
- One
MixerViewinstance throughout; always move it withSetHost, never assignContentdirectly (#164). - Only a finished splitter drag writes a height; clamps never do.
Phase 7: Convergence
- T035 Re-run
scripts/build.shon an idle machine (Rider closed) until native + managed + smoke test are green; if the render-pooloverloadedchecks still fail, investigate before the PR per Constitution IV (partial) - T036 [US2] Make Session's own mixer sections follow the engine on the UI tick — volume (
MiniFader+ dB read-out), pan (PanBar) and M / S / Arm toggles insrc/managed/Nota.App/SessionView.Mixer.cs, skipping a control being dragged — so changes made in the docked Mixer show there per FR-012, US2/AC2 (partial) - T037 In
src/managed/Nota.App/MixerView.csinclude the Stereo map layout's grid margins (8 + 8) inMinContentHeightwhileView == StereoMap, and raiseMinContentHeightChangedwhen the view changes, so M / S / Arm stay visible at the minimum docked / window height per FR-014, T007 (partial)
Phase 8: PR review (nota-daw/nota#388)
- T038 Order the Mixer strips like the arrangement — tracks in their order, then returns, then the master — in
src/managed/Nota.App/MixerView.csRefresh()(maintainer comment) - T039 With the Mixer docked, resize the Detail panel from its own edge (
DetailEdgeinsrc/managed/Nota.App/MainWindow.axaml, handlers inMainWindow.Detail.cs) so dragging it changes the Detail panel alone, not the Mixer;DetailSplitterstops being hit-testable then, and its drag no longer writes the Mixer height per FR-004 (review: "Clip resize changes the Mixer") - T040 Update Session's
_armedfrom the per-tick track snapshot before the cells tick, so arming in the docked Mixer makes an empty slot record, insrc/managed/Nota.App/SessionView.Mixer.cs(review: "Armed slots do not record") - T041 Keep the Detail panel's wanted height (
_detailWanted) and restore it inFitBottomPanelswhen the window grows (review: "Detail stays too short") - T042 Refit the bottom panels whenever the Detail panel's visibility changes (close, pop-out, View ▸ Toggle detail panel), and collapse / restore its row with it so a hidden panel leaves no empty band (review: "Mixer leaves freed space unused"; the empty band after View ▸ Toggle detail panel predates this feature)