Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.
description: "Task list for Mixer Groups and Compact Strips"
Tasks: Mixer Groups and Compact Strips
Input: Design documents from /specs/070-mixer-groups-compact-strips/
Prerequisites: plan.md, spec.md, research.md, data-model.md, contracts/ui-mixer.md, quickstart.md, the agreed mockup
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);
scripts/build.sh is the PR gate.
Organization: Tasks are grouped by user story. Groups (US1 + US2) and compact strips
(US3) touch different parts of MixerView and can ship as two PRs (plan § Constitution
Check, V).
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: The one persisted preference and the new strings, used across stories.
- T001 [P] Add
MixerCompact(bool, defaultfalse) next toMixerViewinsrc/managed/Nota.Application/Settings.cs, with a<summary>in the file's style ("The Mixer's strip layout (specs/070): false = regular strips, true = compact 72 px strips. Shared by the docked panel and the pop-out window."); data-model rule: missing in an oldersettings.json→ regular - T002 [P] Add the new strings to
App/Languages/en.jsonand their French toApp/Languages/fr.json:Compact,Show compact strips: more tracks on screen,Fold group {0},Unfold group {0},{0} hidden strips,A hidden track is soloed,A hidden track is armed,A hidden track clipped · click to clear(contracts/ui-mixer.md § Strings)
Phase 2: Foundational (Blocking Prerequisites)
Purpose: The hierarchical order every story builds on (research R1).
⚠️ CRITICAL: No user story work can begin until this phase is complete
- T003 In
App/ArrangementView.Groups.cs, extract the child-map builder used byApplyHierarchy(group id → children in engine order; a track whoseGroupIdis missing or not a group is a root) into a private static helper working onNotaTrackInfo, and addinternal static IReadOnlyList<HierarchyRow> HierarchyOrder(IAudioEngine eng)returning(int Index, int Id, int Depth, int ParentGroupId)for every non-return track in DFS order (group, then its children), ignoring collapse.ApplyHierarchykeeps itsTrackVMwalk but takes its children from the same helper so the two orders cannot drift. Depth-guard the walk (≤ 32) against a malformed parent chain, likeGroupShadeFor - T004 In
App/MixerView.csRefresh(), list non-return strips inArrangementView.HierarchyOrder(_engine)order, then returns (stillDisplayOrder's second pass), then master; keep a per-strip record(id, depth, parentGroupId, Border strip)in a new_stripslist (cleared with the other lists) for the band layer, folding and selection. Update the file's header comment (order now follows the Arrangement's hierarchy)
Checkpoint: The Mixer lists Bus, Drums, Kick, Snare, Hats, Bass, … for the quickstart project even with a scrambled engine order (quickstart scenario 1, order part).
Phase 3: User Story 1 - See which strips belong to which group (Priority: P1) 🎯 MVP
Goal: Each group's strips sit under a named bar in the group's colour with a faint tint; nesting shows as stacked bars (FR-001 – FR-005).
Independent Test: quickstart scenarios 1, 2, 3 — bands correct for nested and ungrouped tracks, follow membership / rename / recolour / undo, show in the Stereo Map's strip column.
Implementation for User Story 1
- T005 [P] [US1] Create
App/Controls/GroupBandsLayer.cs(SPDX header + a why-comment): aControlgiven a list of bands(string Name, int ColorIndex, int Depth, Control FirstStrip, Control LastStrip, int HiddenCount)andBarH = 14.Rendertranslates each strip's bounds into its own space and draws, per band, (a) the tintNotaPalette.Wash(ArrangementView.TrackBrush(color), ≈ 0x12)fromDepth × BarHdown to its bottom, radiusNotaRadius.Clipon the top corners, and (b) the barWash(…, ≈ 0x52)atDepth × BarH, heightBarH − 2, radiusNotaRadius.Clip, the name in Geist 9 / 600TextPrimarywith 5 px side padding, ellipsised to the bar width; whenHiddenCount > 0append+Nin Geist MonoTextSecondary(mockup). Read colours insideRender(no snapshot, DESIGN.md non-negotiable).ToolTip= full name via hit test on the bars. No pointer handling otherwise (IsHitTestVisibleonly for bars) - T006 [US1] In
App/MixerView.cs, wrap_rowin aPanel { _bands, _row }as the scroller's content; set_row.Margintop to10 + maxDepth × BarH(maxDepth = deepest group level + 1, 0 without groups); afterRefreshbuild the band list from_strips(first = group strip, last = last strip of its subtree; colour =ArrangementView.EffectiveColorIndex(_engine, groupId); name =TrackNames.Of) and hand it to_bands; invalidate_bandson_row.LayoutUpdated(cheap: no rebuild). Returns, master and ungrouped strips get no band (FR-005) - T007 [US1] In
App/MixerView.cs, addmaxDepth × BarHtoCoreH(soMinContentHeight/NaturalContentHeightinclude the bar rows — spec edge case "bar rows always stay") and raiseMinContentHeightChangedwhen maxDepth changes onRefresh - T008 [US1] In
App/MixerView.csUpdateMeters, detect structural changes beyond the track count — a track'sGroupId, a group's name or colour index changed (cheap signature overTryGetTrackInfo+GetTrackColorIndex, compared with the last built one) — andRefresh()then, so bands follow moves into / out of groups, renames, recolours and undo / redo (FR-004) - T009 [US1] Check the Stereo Map layout (
ApplyView): the band panel moves with_stripsScroller, so bars show over the strip column; fix any clipping of the bar row at the column's top margin (US1 scenario 5)
Checkpoint: Quickstart scenarios 1–3 pass; screenshots match mockups/regular-*.png for the bands.
Phase 4: User Story 2 - Fold a group in the Mixer (Priority: P1)
Goal: A group strip folds its subtree in the Mixer and the Arrangement at once; folded state shows a count and hidden solo / arm / clip; saved with the project; the Mixer follows the selection (FR-006 – FR-012).
Independent Test: quickstart scenarios 4–10.
Implementation for User Story 2
- T010 [P] [US2] Create
App/GroupFold.cs(SPDX header + why-comment: one fold state for the Arrangement and the Mixer, specs/070 R2):internal sealed class GroupFoldwithIsFolded(int groupId),Toggle(int groupId),Set(IEnumerable<int> ids),Remove(int groupId),Clear(),IReadOnlyCollection<int> Folded, andevent Action? Changedraised once per call that changed something - T011 [US2] In
App/ArrangementView.Groups.cs, replace_collapsedwith an injectedinternal GroupFold Fold { get; set; } = new();—CollapsedGroups/SetCollapsedGroups/IsGroupCollapsed/ToggleCollapse/UngroupGroupdelegate to it; subscribe toFold.Changed→Refresh()(and unsubscribe whenFoldis replaced). Update the other readers:App/ArrangementView.cslines ~2125/2127 and ~2217/2219 (glyph +ToggleCollapse) andApp/ArrangementView.Overview.cs~317/324 (_o._collapsed.Contains→_o.Fold.IsFolded). Note:ArrangementView.csis also being edited on branch071-detail-panel-double-click— keep this change to those four lines - T012 [US2] In
App/ArrangementView.Sizing.cs, persist the fold state intrack-view.json: add[JsonPropertyName("collapsedGroups")] public List<int>? CollapsedGroupstoTrackViewDto(engine track indices, "omitted when empty; an index that is out of range or not a group is skipped on load"); write it inSaveTrackViewfromFold.Foldedmapped id → index; include it in the "nothing to save → delete the file" check; read it inLoadTrackView(index → id, keep only groups) intoFold.Set;ResetTrackViewcallsFold.Clear(). Keepversion: 1(additive field) - T013 [US2] In
App/MainWindow.axaml.cs, create oneGroupFoldnext to_mixer = new MixerView(vm.Engine)(~line 479), assign it toTimeline.Foldand to the newMixerView.Foldproperty - T014 [US2] In
App/MixerView.cs, addpublic GroupFold? Fold { get; set; }(subscribe toChanged→ApplyFold());ApplyFold()setsIsVisibleon each_stripsentry to "no ancestor folded" without rebuilding (research R4), recomputes the band list (last visible strip,HiddenCountfor folded groups = all descendants incl. nested) and invalidates_bands;UpdateMetersandFollowStripsskip strips whose border is not visible; callApplyFold()at the end ofRefresh() - T015 [US2] In
App/MixerView.csHeader(...), for group strips add the disclosureGlyphleft of the name —GlyphKind.ChevronDownunfolded /ChevronRightfolded, size 8,TextSecondary, as the Arrangement — in a focusableBorderwith the accessible nameLoc.F("Fold group {0}", name)/Loc.F("Unfold group {0}", name), left click and Space / Enter →Fold.Toggle(id); repaint it inApplyFold. No undo step (view state, FR-008) - T016 [US2] In
App/MixerView.cs, add the folded group's hidden-state dots at the right of the header (6 px,NotaPalette.Solo/Record/Danger, shown only when true, tooltips from T002): on eachUpdateMeterstick compute for each folded group whether any hidden descendant is soloed or armed (TryGetTrackInfo) and whether any hidden descendant's meter peaked ≥ 0 dBFS (TryGetTrackMeter, latched since the fold; a click on the clip dot clears the latch). No allocation per tick (reuse arrays sized onRefresh) - T017 [US2] Selection follow (research R5): in
App/MixerView.csaddpublic void FollowSelection(int trackId)— clear the previous outline, find the strip, or when hidden its outermost folded ancestor's strip, give it a 1 pxNotaPalette.Accentoutline (an overlayBorderinside the strip, no size change) andBringIntoView(); never unfold. InApp/MainWindow.Mixer.cssubscribeTimeline.TrackSelectedand_modular.TrackActivatedto it (wiring in this file, notMainWindow.Detail.cs), and re-apply the current selection afterRefresh() - T018 [US2] Confirm FR-012: the docked panel and
MixerWindowreuse the sameMixerViewinstance (specs/054), so fold state and outline carry over on pop-out / dock; check thatMixerWindow.FitWidthuses visible strips only (StripsWidthmeasures_row, which already skips invisible children — verify)
Checkpoint: Quickstart scenarios 4–10 pass, including the byte-for-byte render check (SC-005) and the 100-track fold timing (SC-002); screenshots match mockups/folded-*.png.
Phase 5: User Story 3 - Fit more strips with compact strips (Priority: P2)
Goal: A footer Compact toggle switches every strip to the 72 px layout from the mockup, with every regular action still available (FR-013 – FR-019).
Independent Test: quickstart scenarios 11–17.
Implementation for User Story 3
- T019 [P] [US3] Create
App/Controls/MeterFader.cs(SPDX header + why-comment, research R7): aControlwith theVFadersurface —Value(0..1.5 linear),Dragging,ValueChanged,GestureBegin/GestureEnd,SetValueExternal,EntryField(name, fmt, def)— plusPush(NotaMeter)/Reset()likeMeterBar. Layout: 14 px scale (Geist Mono 7,TextDisabled, marks+6,0,−12,−48atMeterScale.NormDb), two 18 px channels 3 px apart drawn withMeterScale.DrawChannel, an 11 px gutter with a 9 × 10 px left-pointing triangle atMeterScale.NormDb(LinToDb(Value))and a 1 px hairline across the channels at the same y —VizInkat rest,Accentwhile hovered or dragged (DESIGN.md: accent only while live). Interaction: left button only (right-click bubbles to MIDI Learn); relative vertical drag in dB over the meter height, Shift / Ctrl / ⌘ = fine (÷10);ns-resizecursor; a press-release without movement clears the peak hold instead; capture-lost ends the gesture. Never allocate inRender - T020 [US3] In
App/MixerView.cs, introduceStripMetrics(record of width, header, I/O, sends, pan, fader min / comfort / max, buttons heights — data-model § StripMetrics: regular154 · 24 · 34 · 42 · 38 · 72/120/190 · 28, compact72 · 24 · 18 · 24 · 22 · 72/120/220 · 66) and makeCoreH,MinContentHeight,NaturalContentHeightandFitHeightread the active metrics instead of the constants; regular behaviour must stay pixel-identical - T021 [US3] Create
App/MixerView.Compact.cs(partial class; SPDX header + why-comment) with the compact builders, wired to the same engine calls,MixGestureundo, automation writes,MidiLearn.Bindtargets andStripSyncentries as the regular ones:CompactHeader(name 9 px ellipsised, tooltip full name, fold glyph + dots from T015/T016 on groups),CompactIo(one 18 px line, full routing in a tooltip; instrument tracks keep the MIDI-in combo at 16 px),CompactSends(A / BMiniFaderbars full width with their letter,ValueEntrySend A/Send B; returns and master get an empty 24 px slot),CompactPan(the existingPanBar, full width; BAL tag beside on groups;SyncOf(id).Panmust accept aPanBar— generaliseStripSync.Panto an interface or a pair of delegates; master gets an empty 22 px slot),CompactLevel(MeterFaderregistered in_metersandStripSync.Fader,ValueEntrywithNotaNum.GainDb,MidiTarget.TrackVolume(id)/MasterVolume), the sameDragNumberdB,CompactButtons(M, S, Arm stacked, full width, 18 px, 2 px gap, 4 px inset; Arm absent on returns; ⌘/Ctrl-click additive arm as today) - T022 [US3] In
App/MixerView.cs, addpublic bool Compact(rebuilds viaRefresh()when changed; research R8) and branchStrip/MasterStripto the compact builders;_meters/_syncs/FollowStrips/UpdateMetersmust work with bothMeterBar+VFaderandMeterFader. Keep group bands, folding and selection outline working in both layouts (FR-019) - T023 [US3] In
App/MixerView.csFooter(), add aCompactkey afterI/Opainted as the section toggles but two-state (accent when on, no auto-hidden state), tooltipShow compact strips: more tracks on screen; a click flipsCompact, savesSettings.MixerCompactthrough aCompactChangedevent or the settings service asMainWindow.Mixer.csdoes forMixerView; on startupMainWindow.Mixer.cssets_mixer.Compactfrom settings before the firstRefresh - T024 [US3] Stereo Map with compact strips: in
ApplyView, keep_stripsScroller.MaxWidth = 440(it now fits ~6 compact strips) and check the column's height fitting in both layouts
Checkpoint: Quickstart scenarios 11–17 pass; screenshots match mockups/compact-*.png.
Phase 6: Polish & Cross-Cutting Concerns
Purpose: Design record, docs, verification.
- T025 [P] In
DESIGN.md§ Accepted exceptions, add the compact Mixer meter: "Compact mixer strips (specs/070) draw their meter with 18 px channels 3 px apart, against the 11 / 5 meter rule: the wide meter is what makes a 72 px strip readable (#386). Zones, hold mark and scale are unchanged." Mention the group bands under § Shell next to "Mixer strips"; runpython3 scripts/design-html.py - T026 Build the headless harness from quickstart § Prerequisites under
/tmp/mixer070harness(NOTA_DATA_DIR=/tmp/mixer070harness/data), with the quickstart test project and scrambled engine order; run quickstart scenarios 1–19 and save the screenshots (regular / compact × folded / unfolded × Studio Dark / Studio Light, plus Ember Graphite / Ember Paper for scenario 18) - T027 SC-005: render the quickstart project offline with Drums and Bus folded and unfolded (
RenderOffline), compare the WAVs byte for byte - T028 SC-002: time
Fold.Toggle→ApplyFoldwith 100 tracks in 10 groups in the harness; must stay under 100 ms and must not callRefresh
Nota closing tasks (always include — these are the PR gates)
- T029 Run
scripts/build.shuntil native + managed + smoke test are green (includesDesignTokenCheck:RunStudio,RunThemes,RunLabels,RunIcons— the new controls must pass without allow-list entries) - T030 AGPL-3.0-only SPDX two-line header on every new source file:
App/GroupFold.cs,App/MixerView.Compact.cs,App/Controls/GroupBandsLayer.cs,App/Controls/MeterFader.cs - T031 New dependency: none → N/A
- T032
CHANGELOG.md[Unreleased]entries: Added — Mixer group bands, folding groups from the Mixer (shared with the Arrangement, saved with the project), the Mixer follows the selected track, compact strips (#386); Fixed — the Mixer now lists a group's tracks right after it, and group folding is saved with the project - T033
nota-features(FEATURES.md: Mixer section),nota-docs(Mixer page EN + RU, new screenshots of bands, folded group and compact strips),nota-shortcutscheck (no new binding → expect N/A) - T034 Engine behaviour change: none → smoke test extension N/A
Implementation notes (2026-11-02)
- T026: harness
/private/tmp/mixer070harness(NOTA_DATA_DIR=/tmp/mixer070harness/data dotnet run -- <out> [themes]) — 17 checks pass: hierarchy order with a scrambled engine order, fold / nested fold / unfold, solo + arm dots, outline on the folded ancestor, band follows a regroup, Stereo Map column, compact 72 px (19 vs 9 strips at 1440), meter-fader click / drag / undo, sidecar save / reset / load, fold timing. Not driven by it: MIDI learn on compact controls (sameMidiTargets as regular), Ember themes, the French UI (strings covered by the smoke test's localization check). - T027: by construction —
GroupFoldnever reaches the engine (no engine call inGroupFold.cs,ApplyFoldonly togglesIsVisible), so a render cannot depend on it. - T028: 0.2–0.6 ms per fold / unfold at 102 tracks, no
Refresh.
Dependencies & Execution Order
Phase Dependencies
- Setup (Phase 1): none — T001, T002 in parallel
- Foundational (Phase 2): T003 → T004; blocks every story
- US1 (Phase 3): after Phase 2. T005 in parallel with T006's preparation; T006 → T007 → T008 → T009
- US2 (Phase 4): after Phase 2; uses US1's band list for
+N(T014 extends T006). T010 [P] first, then T011 → T012 → T013 → T014 → T015 → T016 → T017 → T018 - US3 (Phase 5): after Phase 2; independent of US1 / US2 except that the compact header reuses T015 / T016 when they exist. T019 [P] alongside T020; T021 → T022 → T023 → T024
- Polish (Phase 6): after the stories in the PR
User Story Dependencies
- US1: none beyond Phase 2
- US2: shows its hidden count in US1's bars; fold itself works without bands
- US3: none; if built before US1 / US2, T021's header simply has no fold glyph yet
Parallel Opportunities
- T001 ‖ T002
- T005 (new file) ‖ T004
- T010 (new file) ‖ US1 tasks
- T019 (new file) ‖ T020; T025 ‖ any story work
Parallel Example: User Story 3
Task: "Create App/Controls/MeterFader.cs (T019)"
Task: "Introduce StripMetrics in App/MixerView.cs (T020)"
Implementation Strategy
MVP First (User Story 1 Only)
- Phase 1 + Phase 2 — the Mixer already lists groups correctly
- Phase 3 (US1) — bands
- STOP and VALIDATE with quickstart 1–3
Incremental Delivery
- Setup + Foundational + US1 + US2 → PR 1 "Mixer groups: bands, folding, selection" (closes the grouping half of #386)
- US3 → PR 2 "Compact mixer strips" (closes #386)
- Or one PR with both, if review prefers — the phases keep the diff readable either way
Notes
- [P] tasks = different files, no dependencies
MixerView.csis touched by most tasks: keep them sequential- Don't edit
MainWindow.Detail.cs(branch 071 is changing it) - Commit per phase; the user makes the commits
Phase 7: Convergence
- T035 Make
FollowStripsinsrc/managed/Nota.App/MixerView.csskip strips hidden by folding, as T014 specifies — or keep syncing them (it is cheap and leaves the right values on unfold) and change T014's wording to match, per T014 / plan R4 (contradicts)