Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.
C# audioaudio-unitavaloniacpp20cross-platformdawdigital-audio-workstationdspjucelinux-audiomcp-servermidimusicmusic-productionpiano-rollplugin-hostsequencersynthesizervstvst3
(feat) Track headers on the right of the arrangement (#72) (#401)
Chris Laupamabff01f507073
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5bb3605f..2fecd294 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -67,6 +67,12 @@ Entry categories: `Added`, `Changed`, `Fixed`, `Removed`.window**) moves it into the floating window for a second screen; the window's dock buttonbrings it back. Nota remembers whether the Mixer was shown, where and how tall, and restoresit on the next launch.+- **Track headers on the right** (#72): **View → Track headers on the right** (also+ **Settings → Appearance → Track headers: Left / Right**) moves the arrangement's track+ list — the track headers, the return / master headers and the header strips beside the+ Overview, Sections and ruler — to the right edge, so the timeline starts at the left, next+ to the browser. Everything works the same on either side; drag the seam to the left to+ widen the headers. The choice is remembered for every project.- **Edit any MIDI controller in the piano roll** (#169): the lane under the notes gets a fifthtab for controllers. Click it to pick one — the controllers the clip already has first, thenSustain, Mod wheel, Pitch wheel, Channel pressure, Expression, Breath and every other CC.diff --git a/FEATURES.md b/FEATURES.mdindex e4a16c5f..1b34d1a4 100644--- a/FEATURES.md+++ b/FEATURES.md@@ -148,6 +148,10 @@ docks as a panel under any of the three, or floats in its own window — seefit their height: one line (name, M / S / arm) when short, input, fader and pan on rowsof their own when tall. Drag the seam between headers and lanes to set the headerwidth (160–480 px). Both are saved with the project.+ - **Track headers left or right** — View ▸ Track headers on the right (or Settings →+ Appearance → Track headers) moves the header column, the return / master headers and+ the header strips to the right edge, so the timeline starts at the left; remembered+ for every project.- **Group rows are slim** — a group collapses to a titled bar with its disclosure,mute/solo and level, and opens to the full control set when selected, so groups read asfamilies rather than as more tracks. A track without a colour of its own takes its@@ -1339,7 +1343,8 @@ audio effects after it keep running and keep their settings; saved with the projlive and is remembered. **Interface scale** — 75 / 100 / 125 / 150 / 200 % for the wholeinterface (every window, menu, tooltip and dialog; text stays sharp), applied live andremembered; timeline, piano roll and audio editor zoom work on top of it. **Waveform** —- **Smooth** (default), **Solid** or **Bars** for audio clips on the lanes. Also+ **Smooth** (default), **Solid** or **Bars** for audio clips on the lanes. **Track+ headers** — Left / Right side of the arrangement's track list. Also**AI control (MCP)** on/off, a port field, and "Copy config" (copies aready-made client JSON config to the clipboard).- **Shortcuts**: the shortcut list.diff --git a/specs/065-track-headers-right/checklists/requirements.md b/specs/065-track-headers-right/checklists/requirements.mdnew file mode 100644index 00000000..9f8b3985--- /dev/null+++ b/specs/065-track-headers-right/checklists/requirements.md@@ -0,0 +1,36 @@+# Specification Quality Checklist: Track headers on the right++**Purpose**: Validate specification completeness and quality before proceeding to planning+**Created**: 2026-10-30+**Feature**: [spec.md](../spec.md)++## Content Quality++- [x] No implementation details (languages, frameworks, APIs)+- [x] Focused on user value and business needs+- [x] Written for non-technical stakeholders+- [x] All mandatory sections completed++## Requirement Completeness++- [x] No [NEEDS CLARIFICATION] markers remain+- [x] Requirements are testable and unambiguous+- [x] Success criteria are measurable+- [x] Success criteria are technology-agnostic (no implementation details)+- [x] All acceptance scenarios are defined+- [x] Edge cases are identified+- [x] Scope is clearly bounded+- [x] Dependencies and assumptions identified++## Feature Readiness++- [x] All functional requirements have clear acceptance criteria+- [x] User scenarios cover primary flows+- [x] Feature meets measurable outcomes defined in Success Criteria+- [x] No implementation details leak into specification++## Notes++- The issue names both surfaces (Preferences, View menu); the spec takes both (FR-007).+- Clarify found no blocking ambiguity: per-user persistence and unmirrored card contents+ are recorded as assumptions.diff --git a/specs/065-track-headers-right/plan.md b/specs/065-track-headers-right/plan.mdnew file mode 100644index 00000000..ca4d0f5d--- /dev/null+++ b/specs/065-track-headers-right/plan.md@@ -0,0 +1,93 @@+# Implementation Plan: Track headers on the right++**Branch**: `065-track-headers-right` | **Date**: 2026-10-30 | **Spec**: [spec.md](spec.md)++**Input**: Feature specification from `/specs/065-track-headers-right/spec.md`++## Summary++A per-user setting moves the arrangement's header column to the right edge (issue #72).+`ArrangementView` already builds every horizontal band as a two-column grid — header part+in an `Auto` column, lane part in a `*` column (chrome strips, the scrolling tracks, the+pinned footer, the scrollbar row). A `HeadersOnRight` property swaps those columns, flips+the header/lane dividers to the lane-facing edge, re-anchors the column backdrop and the+column-resize seam, and rebuilds the cards with mirrored borders. All hit-testing is+already relative to the header canvases and the lane controls, so gestures carry over+without coordinate changes; only the seam drag reverses its sign.++## Technical Context++**Language/Version**: C# / .NET 10 (managed app only)++**Primary Dependencies**: Avalonia (existing) — no new dependency++**Storage**: user `settings.json` (`Settings.ArrangementHeadersRight`); project bundles unchanged++**Audio-Thread Impact**: None: UI-only change.++**Testing**: smoke test (`tests/Nota.SmokeTest`, palette/menu consistency checks) + manual pass in the app++**Target Platform**: macOS, Windows, Linux desktop++**Project Type**: desktop app++**Performance Goals**: switching sides rebuilds the header cards once (same cost as a header-width change)++**Constraints**: default Left must be pixel-identical to today++**Scale/Scope**: `ArrangementView` (+ `.Sizing`, `.Overview`, `.Sections`), `Settings`, `MainWindow` (menu/commands), `PreferencesWindow`, `CommandCatalog`++## Constitution Check++- I Real-time safety: no engine/audio-thread code touched. Pass.+- II Boundary discipline: no C ABI change. Pass.+- III Licensing: new files carry the AGPL header; no dependencies. Pass.+- IV Verification: `scripts/build-linux.sh` (build + smoke test) before the PR. Pass.+- V One change: the side setting only. Pass.+- VI Docs: CHANGELOG `[Unreleased]` and FEATURES.md here; no shortcut changes (nota-shortcuts n/a); the user manual lives in `nota-daw/nota-docs` and gets its own follow-up PR. Pass.+- VII Spec-first: this spec. Pass.++## Project Structure++### Documentation (this feature)++```text+specs/065-track-headers-right/+├── spec.md+├── plan.md+├── tasks.md+└── checklists/requirements.md+```++### Source Code (repository root)++```text+src/managed/+├── Nota.Application/Settings.cs # ArrangementHeadersRight (per user)+├── Nota.Application/Palette/CommandCatalog.cs # view.headersRight+└── Nota.App/+ ├── ArrangementView.cs # HeadersOnRight, side-aware rows, dividers, card borders+ ├── ArrangementView.Sizing.cs # seam anchoring + drag sign+ ├── ArrangementView.Overview.cs # register the chrome row+ ├── ArrangementView.Sections.cs # register the chrome row+ ├── MainWindow.axaml # View ▸ Track headers on the right (checkbox)+ ├── MainWindow.Commands.cs # bind + toggle+ ├── MainWindow.axaml.cs # apply on start and on Settings.Changed+ └── PreferencesWindow.cs # Appearance → Track headers: Left / Right+```++**Structure Decision**: extend the existing arrangement partials; no new types beyond a+small row record.++## Design notes++- Each two-column band registers `(grid, header, lane parts)`; `ApplyHeaderSide` sets+ `ColumnDefinitions` to `Auto,*` or `*,Auto` and the parts' `Grid.Column`.+- Dividers: every header-column chrome border and each card border goes through one+ helper so the 1 px line is on the lane-facing side.+- Seam: `HorizontalAlignment.Left` + left margin, or `Right` + right margin; on the right,+ width = start − Δx.+- The side is view preference, applied by `MainWindow` from `Settings` at start and on+ `Settings.Changed`, the same path as the waveform style; the View menu check is synced there.+- The track scroller's overlay scrollbar stays on the view's right edge (over the+ header meters when on the right), as it auto-hides and does not take input from cards.diff --git a/specs/065-track-headers-right/spec.md b/specs/065-track-headers-right/spec.mdnew file mode 100644index 00000000..5ae7ee98--- /dev/null+++ b/specs/065-track-headers-right/spec.md@@ -0,0 +1,142 @@+# Feature Specification: Track headers on the right++**Feature Branch**: `065-track-headers-right`++**Created**: 2026-10-30++**Status**: Draft++**Input**: User description: "Option to put the track headers on the right side of the arrangement (GitHub issue nota-daw/nota#72). Have the track list (headers with name, mute/solo/arm, fader…) on the right of the arrangement instead of the left, as in Ableton Live, so the timeline starts at the left edge next to the browser. A setting (Preferences → View, or a View menu toggle): Track headers: Left / Right. With Right, the header column, its footer (returns / master) and the related overlays (drop ring, insertion line) move to the right edge; the lanes keep scrolling as today. Today the header column is always on the left: ArrangementView lays out a fixed-width (HeaderW = 228) header canvas before the lanes. Related: resizable track height and header width (#52)."++## Nota Context *(fill in — drives plan and tasks)*++**Feature area** *(pick the main one)*:++- [ ] Engine (C++, `src/native/nota.engine`) — real-time audio rules apply, see `ARCHITECTURE.md` AR table+- [ ] Managed app (C#, `src/managed/*`) — domain, application, infrastructure, presentation+- [x] UI (Avalonia, `src/managed/Nota.Presentation`) — follow `DESIGN.md` (Studio)+- [ ] Plugin hosting (`pluginhost/`) — the only place JUCE is allowed+- [ ] Build / packaging / CI (`scripts/`, `.github/`) — see `BUILD.md`+- [ ] Docs only++**Nota docs to keep in mind** *(links relative to `specs/<slug>/`, where this file lands)*:+[`ARCHITECTURE.md`](../../ARCHITECTURE.md) (AR rules),+[`CONTRIBUTING.md`](../../CONTRIBUTING.md) (licensing, dependency policy, PR+expectations), [`BUILD.md`](../../BUILD.md), [`DESIGN.md`](../../DESIGN.md),+[`FEATURES.md`](../../FEATURES.md).++**Existing behaviour this builds on**: the arrangement shows a resizable header column+(specs/015) on the left of the lanes, with header-column chrome above it (Overview,+Sections and Zoom labels), a pinned return/master footer under it (specs/045) and a+spacer next to the horizontal scrollbar. Arrangement view options already persist per user+(View ▸ Toggle sections, Clip names; Settings → Appearance → Waveform).++## User Scenarios & Testing *(mandatory)*++### User Story 1 - Put the track headers on the right (Priority: P1)++A producer coming from Ableton Live wants the timeline to start at the left edge, next to+the browser, with the track headers on the right. They switch the setting to Right and+the whole header column — track headers, the return/master headers in the footer and the+header-column chrome above and below — moves to the right edge. Everything works as+before: selecting, reordering, renaming, mute/solo/arm, faders, row and column resizing,+dropping from the browser.++**Why this priority**: it is the whole request.++**Independent Test**: switch the setting to Right with a project of several tracks and+returns; check the column sits on the right edge, the lanes start at the left edge, and+every header gesture still works.++**Acceptance Scenarios**:++1. **Given** the headers on the left, **When** the user chooses Right, **Then** the+ header column, the footer headers and the chrome strips move to the right edge at once,+ with no restart, and the lanes start at the left edge of the arrangement.+2. **Given** the headers on the right, **When** the user drags a header to reorder,+ **Then** the insertion line shows in the header column on the right and the drop lands+ in the gap shown.+3. **Given** the headers on the right, **When** the user drags a browser item over a+ track or return header, **Then** the drop ring shows over that header on the right.+4. **Given** the headers on the right, **When** the user drags the seam between lanes+ and headers, **Then** the edge follows the pointer (dragging left widens the column)+ within the same limits as today, and a double-click resets the width.+5. **Given** the headers on the right, **When** the user scrolls, zooms or plays,+ **Then** the lanes behave as on the left (ruler, overview, sections and playhead stay+ aligned with the lanes).++---++### User Story 2 - The choice sticks and is easy to reach (Priority: P2)++The user sets the side once and expects it to stay: across restarts and in every project.+They can reach it from the View menu (and the command palette) as well as from Settings.++**Why this priority**: a layout preference that resets is useless, but it is secondary+to the layout working.++**Independent Test**: switch to Right from the View menu, restart the app, open another+project; the headers are still on the right and Settings shows Right.++**Acceptance Scenarios**:++1. **Given** Right chosen, **When** the app restarts or another project opens,+ **Then** the headers are on the right.+2. **Given** the View menu, **When** the user picks "Track headers on the right",+ **Then** the side flips, the menu item shows a check when on the right, and Settings →+ Appearance shows the same choice.+3. **Given** Settings → Appearance, **When** the user picks Left or Right under Track+ headers, **Then** the arrangement follows at once and the View menu check agrees.++### Edge Cases++- A narrow window still squeezes the header column to its minimum before the lanes drop+ under their minimum, on either side.+- Header width and row heights saved with a project are unaffected by the side; a project+ opens with its saved width on whichever side the user prefers.+- With no tracks, the empty header column backdrop and its divider are on the chosen side.+- The divider between headers and lanes is always on the edge that faces the lanes.++## Requirements *(mandatory)*++### Functional Requirements++- **FR-001**: Users MUST be able to choose the side of the arrangement's track-header+ column: Left (default) or Right.+- **FR-002**: With Right, the track header column, the return/master footer headers, the+ header-column chrome strips (Overview, Sections, Zoom labels and the spacer by the+ horizontal scrollbar) and the reorder insertion line and browser drop rings MUST sit on+ the right edge; the lanes, ruler, overview, sections lane and scrollbar MUST fill the+ rest from the left edge.+- **FR-003**: Every header and lane gesture available on the left MUST work the same on+ the right (select, multi-select, reorder, rename, context menus, mute/solo/arm, faders,+ pan, row resize, header-column resize, browser drops, keyboard routing to the headers).+- **FR-004**: The header/lane divider and the column-resize seam MUST be on the edge that+ faces the lanes; dragging the seam moves that edge with the pointer, within the existing+ width limits.+- **FR-005**: Changing the side MUST apply immediately, without restarting or reopening+ the project.+- **FR-006**: The choice MUST persist per user across restarts and projects.+- **FR-007**: The choice MUST be reachable from Settings → Appearance (Track headers:+ Left / Right) and from a View menu toggle that is also in the command palette; both+ MUST reflect the current state.++## Success Criteria *(mandatory)*++### Measurable Outcomes++- **SC-001**: Switching sides takes one action from the View menu or Settings and is+ visible immediately.+- **SC-002**: With headers on the right, all header gestures listed in FR-003 succeed in+ a manual pass, with no misplaced overlays.+- **SC-003**: The chosen side survives 100 % of restarts and project switches.+- **SC-004**: With the default (Left), the arrangement looks and behaves exactly as+ before.++## Assumptions++- The side is a per-user view preference (like the waveform style), not saved in the+ project; header width and row heights stay per project (specs/015).+- The contents of each header card are not mirrored — only the column moves (Ableton's+ right-side headers read left to right too).+- The Session and Mixer views are out of scope.diff --git a/specs/065-track-headers-right/tasks.md b/specs/065-track-headers-right/tasks.mdnew file mode 100644index 00000000..e079d635--- /dev/null+++ b/specs/065-track-headers-right/tasks.md@@ -0,0 +1,27 @@+# Tasks: Track headers on the right++**Input**: Design documents from `/specs/065-track-headers-right/`++**Prerequisites**: plan.md, spec.md++## Phase 1: Setup++- [x] T001 Add `ArrangementHeadersRight` (bool, default false) to `src/managed/Nota.Application/Settings.cs`++## Phase 2: User Story 1 — headers on the right (P1)++- [x] T002 [US1] Register the six two-column bands (ruler, overview, sections, tracks, footer, scrollbar) and the header dividers in `src/managed/Nota.App/ArrangementView.cs`, `ArrangementView.Overview.cs`, `ArrangementView.Sections.cs`+- [x] T003 [US1] `HeadersOnRight` property + `ApplyHeaderSide()` swapping columns, dividers, backdrop alignment, and rebuilding header/footer cards in `src/managed/Nota.App/ArrangementView.cs`+- [x] T004 [US1] Card borders (track, group, footer) on the lane-facing side in `src/managed/Nota.App/ArrangementView.cs`+- [x] T005 [US1] Column seam anchored on the lane-facing edge, drag sign reversed on the right, in `src/managed/Nota.App/ArrangementView.Sizing.cs`++## Phase 3: User Story 2 — persisted and reachable (P2)++- [x] T006 [US2] `view.headersRight` in `src/managed/Nota.Application/Palette/CommandCatalog.cs`, a checkbox item in `src/managed/Nota.App/MainWindow.axaml`, binding + toggle in `MainWindow.Commands.cs`+- [x] T007 [US2] Apply the setting at start and on `Settings.Changed`, keep the menu check in sync, in `src/managed/Nota.App/MainWindow.axaml.cs`+- [x] T008 [US2] Settings → Appearance → Track headers: Left / Right in `src/managed/Nota.App/PreferencesWindow.cs`++## Phase 4: Polish++- [x] T009 CHANGELOG `[Unreleased]` and FEATURES.md (nota-features); the user manual (`nota-daw/nota-docs`, arrangement page EN + RU) is a follow-up PR in that repo+- [x] T010 `scripts/build-linux.sh` green (build + smoke test); manual pass of spec scenarios on both sidesdiff --git a/src/managed/Nota.App/ArrangementView.Overview.cs b/src/managed/Nota.App/ArrangementView.Overview.csindex 9a1c83c9..5d5fd9ad 100644--- a/src/managed/Nota.App/ArrangementView.Overview.cs+++ b/src/managed/Nota.App/ArrangementView.Overview.cs@@ -65,12 +65,12 @@ public sealed partial class ArrangementViewChildren = { label, _overviewRange },};- var grid = new Grid { Height = OverviewH, ColumnDefinitions = new ColumnDefinitions("Auto,*") };+ var grid = new Grid { Height = OverviewH };var header = HeaderPanel(labels);header.BindResource(Border.BackgroundProperty, "Brush.BgSunken"); // the strip is a well, header includedgrid.Children.Add(header);- Grid.SetColumn(_overview, 1);grid.Children.Add(_overview);+ AddSideRow(grid, header, _overview);// A hairline under the strip separates it from the ruler (structure over shadows).var row = new Border { BorderThickness = new Thickness(0, 0, 0, 1), Child = grid };diff --git a/src/managed/Nota.App/ArrangementView.Sections.cs b/src/managed/Nota.App/ArrangementView.Sections.csindex a56bdad6..53c8eb37 100644--- a/src/managed/Nota.App/ArrangementView.Sections.cs+++ b/src/managed/Nota.App/ArrangementView.Sections.cs@@ -62,10 +62,11 @@ public sealed partial class ArrangementViewVerticalAlignment = VerticalAlignment.Center,Margin = new Thickness(8, 0, 0, 0),};- var grid = new Grid { Height = SectionsH, ColumnDefinitions = new ColumnDefinitions("Auto,*") };- grid.Children.Add(HeaderPanel(label));- Grid.SetColumn(_sectionsLane, 1);+ var grid = new Grid { Height = SectionsH };+ var header = HeaderPanel(label);+ grid.Children.Add(header);grid.Children.Add(_sectionsLane);+ AddSideRow(grid, header, _sectionsLane);// A hairline, lighter than the lines above and below: the sections belong with the// ruler under them, while Overview and the tracks are separate areas.diff --git a/src/managed/Nota.App/ArrangementView.Sizing.cs b/src/managed/Nota.App/ArrangementView.Sizing.csindex f0e4aa04..bf34050d 100644--- a/src/managed/Nota.App/ArrangementView.Sizing.cs+++ b/src/managed/Nota.App/ArrangementView.Sizing.cs@@ -479,7 +479,7 @@ public sealed partial class ArrangementViewforeach (var hc in _headerCards.Values) hc.card.Width = w;foreach (var c in _footerHeaders.Children) c.Width = w;PlaceRowSeamGrips();- if (_columnSeam is not null) _columnSeam.Margin = new Thickness(w - SeamGrabPx / 2, 0, 0, 0);+ PlaceColumnSeam();if (final){RebuildHeaders();@@ -499,8 +499,7 @@ public sealed partial class ArrangementViewvar line = new Border { Width = 1, HorizontalAlignment = HorizontalAlignment.Center, Background = Brushes.Transparent };var seam = new Border{- Width = SeamGrabPx, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Stretch,- Margin = new Thickness(_headerW - SeamGrabPx / 2, 0, 0, 0),+ Width = SeamGrabPx, VerticalAlignment = VerticalAlignment.Stretch,Background = Brushes.Transparent, Child = line,Cursor = new Cursor(StandardCursorType.SizeWestEast),};@@ -520,7 +519,8 @@ public sealed partial class ArrangementView{if (!_colResizing) return;e.Handled = true;- SetHeaderWidth(_colResizeStartW + e.GetPosition(this).X - _colResizeStartX, final: false);+ double dx = e.GetPosition(this).X - _colResizeStartX;+ SetHeaderWidth(_colResizeStartW + (_headersRight ? -dx : dx), final: false);};void End(){@@ -534,6 +534,69 @@ public sealed partial class ArrangementViewreturn seam;}+ private void PlaceColumnSeam()+ {+ if (_columnSeam is null) return;+ double inset = _headerW - SeamGrabPx / 2;+ _columnSeam.HorizontalAlignment = _headersRight ? HorizontalAlignment.Right : HorizontalAlignment.Left;+ _columnSeam.Margin = _headersRight ? new Thickness(0, 0, inset, 0) : new Thickness(inset, 0, 0, 0);+ }++ // ---- header column side (specs/065) -----------------------------------------+ // Every horizontal band is a two-column grid: the header part and the lane part(s).+ // Moving the column to the right swaps those columns; hit-testing is relative to the+ // header canvases and the lane controls, so the gestures need no change.++ private bool _headersRight;+ private readonly List<(Grid grid, Control header, Control[] lanes)> _sideRows = new();+ // Header-column borders whose 1 px divider must face the lanes.+ private readonly List<Border> _columnDividers = new();+ private Border _columnBackdrop = null!;++ private Thickness ColumnDivider => _headersRight ? new Thickness(1, 0, 0, 0) : new Thickness(0, 0, 1, 0);+ // A header card also keeps its bottom rule.+ private Thickness CardBorder => _headersRight ? new Thickness(1, 0, 0, 1) : new Thickness(0, 0, 1, 1);++ /// <summary>The track-header column sits on the right of the lanes (View ▸ Track headers+ /// on the right, Settings → Appearance). A per-user view preference, not project state.</summary>+ public bool HeadersOnRight+ {+ get => _headersRight;+ set+ {+ if (_headersRight == value) return;+ _headersRight = value;+ ApplyHeaderSide();+ }+ }++ private void AddSideRow(Grid grid, Control header, params Control[] lanes)+ {+ _sideRows.Add((grid, header, lanes));+ PlaceSideRow(grid, header, lanes);+ }++ private void PlaceSideRow(Grid grid, Control header, Control[] lanes)+ {+ grid.ColumnDefinitions = new ColumnDefinitions(_headersRight ? "*,Auto" : "Auto,*");+ Grid.SetColumn(header, _headersRight ? 1 : 0);+ foreach (var lane in lanes) Grid.SetColumn(lane, _headersRight ? 0 : 1);+ }++ private void ApplyHeaderSide()+ {+ foreach (var (grid, header, lanes) in _sideRows) PlaceSideRow(grid, header, lanes);+ foreach (var b in _columnDividers) b.BorderThickness = ColumnDivider;+ _columnBackdrop.HorizontalAlignment = _headersRight ? HorizontalAlignment.Right : HorizontalAlignment.Left;+ PlaceColumnSeam();+ // The cards carry their own divider: rebuild them with it on the new side.+ RebuildHeaders();+ RebuildFooterHeaders();+ _lanes.InvalidateVisual();+ _overlay.InvalidateVisual();+ _footerLanes.InvalidateVisual();+ }+// ---- duplicate / copy / paste carry the height ----------------------------private bool CopyTracksToClipboard(IReadOnlyList<int> ids)diff --git a/src/managed/Nota.App/ArrangementView.cs b/src/managed/Nota.App/ArrangementView.csindex 64b70ee0..bde9db00 100644--- a/src/managed/Nota.App/ArrangementView.cs+++ b/src/managed/Nota.App/ArrangementView.cs@@ -379,10 +379,10 @@ public sealed partial class ArrangementView : UserControl};_headerColumnParts.Add(zoomBar);var topLeft = HeaderPanel(zoomBar);- var topGrid = new Grid { Height = RulerH, ColumnDefinitions = new ColumnDefinitions("Auto,*") };+ var topGrid = new Grid { Height = RulerH };topGrid.Children.Add(topLeft);- Grid.SetColumn(_ruler, 1);topGrid.Children.Add(_ruler);+ AddSideRow(topGrid, topLeft, _ruler);// The chrome stack (Overview · Sections · Zoom) ends on a full-width line, so the// tracks start under a clear edge rather than straight off the ruler.var top = new Border { BorderThickness = new Thickness(0, 0, 0, 1), Child = topGrid };@@ -396,16 +396,11 @@ public sealed partial class ArrangementView : UserControl// Center: vertical scroll over [headers | lanes].// Top-anchored: the ScrollViewer would otherwise stretch the short// content to the viewport and centre the fixed-height lanes.- var center = new Grid- {- ColumnDefinitions = new ColumnDefinitions("Auto,*"),- VerticalAlignment = VerticalAlignment.Top,- };+ var center = new Grid { VerticalAlignment = VerticalAlignment.Top };center.Children.Add(_headers);- Grid.SetColumn(_lanes, 1);center.Children.Add(_lanes);- Grid.SetColumn(_overlay, 1);center.Children.Add(_overlay); // above _lanes (added later = on top)+ AddSideRow(center, _headers, _lanes, _overlay);var scroller = _scroller = new ScrollViewer{Content = center,@@ -442,32 +437,33 @@ public sealed partial class ArrangementView : UserControlscroller.PointerWheelChanged += (_, e) => { if (!e.Handled) HandleLaneWheel(e, e.GetPosition(_lanes).X); };// Full-height header-column backdrop behind the scroller so the header// column reads as a distinct panel even with no tracks.- var leftBackdrop = new Border+ _columnBackdrop = new Border{Width = HeaderW,HorizontalAlignment = HorizontalAlignment.Left,- BorderThickness = new Thickness(0, 0, 1, 0),+ BorderThickness = ColumnDivider,};- _headerColumnParts.Add(leftBackdrop);- leftBackdrop.BindResource(Border.BackgroundProperty, "Brush.SurfaceCard");- leftBackdrop.BindResource(Border.BorderBrushProperty, "Brush.BorderDefault");+ _headerColumnParts.Add(_columnBackdrop);+ _columnDividers.Add(_columnBackdrop);+ _columnBackdrop.BindResource(Border.BackgroundProperty, "Brush.SurfaceCard");+ _columnBackdrop.BindResource(Border.BorderBrushProperty, "Brush.BorderDefault");var centerArea = _centerArea = new Grid();- centerArea.Children.Add(leftBackdrop);+ centerArea.Children.Add(_columnBackdrop);centerArea.Children.Add(scroller);// Return / Master: a slim section pinned under the tracks (no scroll)._footerHeaders = new Canvas { Width = HeaderW };- var footerHeaderPanel = new Border { Width = HeaderW, BorderThickness = new Thickness(0, 0, 1, 0), Child = _footerHeaders };+ var footerHeaderPanel = new Border { Width = HeaderW, BorderThickness = ColumnDivider, Child = _footerHeaders };_headerColumnParts.Add(_footerHeaders);_headerColumnParts.Add(footerHeaderPanel);+ _columnDividers.Add(footerHeaderPanel);footerHeaderPanel.BindResource(Border.BackgroundProperty, "Brush.SurfaceCard");footerHeaderPanel.BindResource(Border.BorderBrushProperty, "Brush.BorderDefault");_footerLanes = new FooterLaneControl(this);- _footer = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*") };- Grid.SetColumn(footerHeaderPanel, 0);- Grid.SetColumn(_footerLanes, 1);+ _footer = new Grid();_footer.Children.Add(footerHeaderPanel);_footer.Children.Add(_footerLanes);+ AddSideRow(_footer, footerHeaderPanel, _footerLanes);// Effects / presets dropped on a return or the master go on that bus.DragDrop.SetAllowDrop(_footer, true);DragDrop.AddDragOverHandler(_footer, OnFooterDragOver);@@ -484,12 +480,12 @@ public sealed partial class ArrangementView : UserControl};// Bottom: a thin horizontal scrollbar under the lanes, on the well, past a hairline.- var bottomGrid = new Grid { ColumnDefinitions = new ColumnDefinitions("Auto,*") };+ var bottomGrid = new Grid();var bottomLeft = HeaderPanel(null);bottomLeft.BindResource(Border.BackgroundProperty, "Brush.BgSunken");bottomGrid.Children.Add(bottomLeft);- Grid.SetColumn(_hScroll, 1);bottomGrid.Children.Add(_hScroll);+ AddSideRow(bottomGrid, bottomLeft, _hScroll);var bottom = new Border { BorderThickness = new Thickness(0, 1, 0, 0), Child = bottomGrid };bottom.BindResource(Border.BackgroundProperty, "Brush.BgSunken");bottom.BindResource(Border.BorderBrushProperty, "Brush.Hairline");@@ -519,6 +515,7 @@ public sealed partial class ArrangementView : UserControl// header column and the pinned footer inside it.// The header/lane seam is draggable along the view's full height (overview to footer)._columnSeam = BuildColumnSeam();+ PlaceColumnSeam();var layered = new Grid { Children = { root, _columnSeam } };SizeChanged += (_, _) => { OnViewSizeChanged(); CapFooterHeight(); };@@ -1604,7 +1601,9 @@ public sealed partial class ArrangementView : UserControlvar p = e.GetPosition(_lanes);int ti = RowAtY(p.Y);int trackId = ti >= 0 ? _tracks[ti].Id : -1;- double beat = Math.Max(0.0, Snap(_scrollBeats + p.X / _pixelsPerBeat));+ // A drop on a header lands at the visible start, whichever side the headers are on.+ double x = p.X >= 0 && p.X <= _lanes.Bounds.Width ? p.X : 0;+ double beat = Math.Max(0.0, Snap(_scrollBeats + x / _pixelsPerBeat));// One internal item drops as-is; multiple external files land the first on the// target track and each of the rest on its own new track (trackId -1), so they// never stack on top of each other.@@ -2162,7 +2161,7 @@ public sealed partial class ArrangementView : UserControlWidth = HeaderW, Height = GroupRowHeight, ClipToBounds = true,Background = selected ? SelHeaderBg : Brush("Brush.SurfaceRaised"),BorderBrush = Brush("Brush.BorderDefault"),- BorderThickness = new Thickness(0, 0, 1, 1),+ BorderThickness = CardBorder,Child = grid,};_headerCards[t.Id] = (card, name, true, spine, spineBrush);@@ -2382,7 +2381,7 @@ public sealed partial class ArrangementView : UserControlClipToBounds = true,Background = selected ? SelHeaderBg : (t.Frozen || t.LiveRole != 0) ? FrozenHeaderBg : t.IsGroup ? Brush("Brush.SurfaceRaised") : Brush("Brush.SurfaceCard"),BorderBrush = Brush("Brush.BorderDefault"),- BorderThickness = new Thickness(0, 0, 1, 1),+ BorderThickness = CardBorder,Child = grid,};// A background import is still filling the track: the disabled look (by colour, not@@ -3100,7 +3099,7 @@ public sealed partial class ArrangementView : UserControlWidth = HeaderW, Height = height, ClipToBounds = true,Background = sel ? SelHeaderBg : Brush(bgKey),BorderBrush = Brush("Brush.BorderDefault"),- BorderThickness = new Thickness(0, 0, 1, 1),+ BorderThickness = CardBorder,Child = grid,};if (trackId > 0)@@ -3152,11 +3151,12 @@ public sealed partial class ArrangementView : UserControlHorizontalContentAlignment = HorizontalAlignment.Center,};- // Header-column chrome (SurfaceCard + right divider), as wide as the header column.+ // Header-column chrome (SurfaceCard + a divider facing the lanes), as wide as the header column.private Border HeaderPanel(Control? child){- var b = new Border { Width = HeaderW, BorderThickness = new Thickness(0, 0, 1, 0), Child = child };+ var b = new Border { Width = HeaderW, BorderThickness = ColumnDivider, Child = child };_headerColumnParts.Add(b); // follows the header-column width+ _columnDividers.Add(b);b.BindResource(Border.BackgroundProperty, "Brush.SurfaceCard");b.BindResource(Border.BorderBrushProperty, "Brush.BorderDefault");return b;diff --git a/src/managed/Nota.App/MainWindow.Commands.cs b/src/managed/Nota.App/MainWindow.Commands.csindex 32b59c63..8af6d6d3 100644--- a/src/managed/Nota.App/MainWindow.Commands.cs+++ b/src/managed/Nota.App/MainWindow.Commands.cs@@ -84,6 +84,7 @@ public partial class MainWindowB("view.follow", () => OnMenuToggleFollow(this, e));B("view.showPlayhead", ShowPlayhead);B("view.clipNames", () => OnMenuCycleClipNames(this, e));+ B("view.headersRight", ToggleHeadersRight);B("view.automation", () =>{AutomationToggle.IsChecked = !(AutomationToggle.IsChecked == true);@@ -219,6 +220,23 @@ public partial class MainWindowif (MenuItemFor("transport.armOnSelect") is { } mi) mi.IsChecked = on;}+ // View ▸ Track headers on the right (#72): a saved preference, shared with Settings →+ // Appearance; Settings.Changed moves the column (ApplyHeadersRight).+ private void ToggleHeadersRight()+ {+ if (_vm is null) return;+ bool on = !Timeline.HeadersOnRight;+ _vm.Settings.Current.ArrangementHeadersRight = on;+ _vm.Settings.Save();+ _vm.StatusText = on ? "Track headers on the right" : "Track headers on the left";+ }++ private void ApplyHeadersRight(bool on)+ {+ Timeline.HeadersOnRight = on;+ if (MenuItemFor("view.headersRight") is { } mi) mi.IsChecked = on;+ }+// The grid shortcuts act on the clip editor (piano roll or audio — they share one setting)// when the detail area (docked or floating) was used last and one is open in it; otherwise// on the arrangement. An audio editor whose current view follows no grid (ADSR, or andiff --git a/src/managed/Nota.App/MainWindow.axaml b/src/managed/Nota.App/MainWindow.axamlindex ba577d8b..08192309 100644--- a/src/managed/Nota.App/MainWindow.axaml+++ b/src/managed/Nota.App/MainWindow.axaml@@ -94,6 +94,7 @@<NativeMenuItem Header="Show playhead" app:Commands.Id="view.showPlayhead"/><NativeMenuItemSeparator/><NativeMenuItem Header="Clip names" app:Commands.Id="view.clipNames"/>+ <NativeMenuItem Header="Track headers on the right" app:Commands.Id="view.headersRight" ToggleType="CheckBox"/></NativeMenu></NativeMenuItem.Menu></NativeMenuItem>diff --git a/src/managed/Nota.App/MainWindow.axaml.cs b/src/managed/Nota.App/MainWindow.axaml.csindex 11a7ca5a..b0dd4869 100644--- a/src/managed/Nota.App/MainWindow.axaml.cs+++ b/src/managed/Nota.App/MainWindow.axaml.cs@@ -402,9 +402,14 @@ public partial class MainWindow : Windowvm.Settings.Save();};Timeline.Waveform = (WaveformStyle)Math.Clamp(vm.Settings.Current.ArrangementWaveform, 0, 2);+ ApplyHeadersRight(vm.Settings.Current.ArrangementHeadersRight);InitSnapGrid();- // Settings → Appearance can switch the waveform style while the arrangement is open.- vm.Settings.Changed += () => Timeline.Waveform = (WaveformStyle)Math.Clamp(vm.Settings.Current.ArrangementWaveform, 0, 2);+ // Settings → Appearance can switch the waveform style and the header side while the arrangement is open.+ vm.Settings.Changed += () =>+ {+ Timeline.Waveform = (WaveformStyle)Math.Clamp(vm.Settings.Current.ArrangementWaveform, 0, 2);+ ApplyHeadersRight(vm.Settings.Current.ArrangementHeadersRight);+ };Browser.SetViewModel(vm.Browser);InitPalette(); // the command palette (⌘⇧P) indexes the library and the registryBrowser.ProjectTempo = () => (double)vm.Transport.Bpm; // the Files filter's "project" shortcutsdiff --git a/src/managed/Nota.App/PreferencesWindow.cs b/src/managed/Nota.App/PreferencesWindow.csindex c41ec80e..acce4fd1 100644--- a/src/managed/Nota.App/PreferencesWindow.cs+++ b/src/managed/Nota.App/PreferencesWindow.cs@@ -1183,6 +1183,53 @@ public sealed partial class PreferencesWindow : NotaWindowreturn new Border { Classes = { "segmented" }, HorizontalAlignment = HorizontalAlignment.Left, Child = strip };}+ // Left / Right for the arrangement's track-header column (#72). Saving fires+ // Settings.Changed, which moves the column at once and ticks the View menu item.+ // The same event repaints these buttons, so a change from the View menu updates an+ // Appearance pane that is already open.+ private static Control HeaderSidePicker()+ {+ var settings = App.Services.GetRequiredService<ISettingsService>();+ var strip = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 2 };+ var buttons = new List<(bool Right, ToggleButton Btn)>();+ void ShowSaved()+ {+ bool right = settings.Current.ArrangementHeadersRight;+ foreach (var (br, bb) in buttons) bb.IsChecked = br == right;+ }+ foreach (var (right, label) in new[] { (false, "Left"), (true, "Right") })+ {+ var r = right;+ var btn = new ToggleButton { Classes = { "seg" }, FontSize = 12, Content = label };+ btn.Click += (_, _) =>+ {+ if (settings.Current.ArrangementHeadersRight == r) { ShowSaved(); return; }+ settings.Current.ArrangementHeadersRight = r;+ settings.Save();+ };+ buttons.Add((r, btn));+ strip.Children.Add(btn);+ }+ ShowSaved();+ var box = new Border { Classes = { "segmented" }, HorizontalAlignment = HorizontalAlignment.Left, Child = strip };+ var listening = false;+ void OnChanged() => ShowSaved();+ box.AttachedToVisualTree += (_, _) =>+ {+ ShowSaved();+ if (listening) return;+ listening = true;+ settings.Changed += OnChanged;+ };+ box.DetachedFromVisualTree += (_, _) =>+ {+ if (!listening) return;+ listening = false;+ settings.Changed -= OnChanged;+ };+ return box;+ }+// 75–200 % for the whole interface (spec 027, #38). Applies live — this window rescales// under the pointer too — and is saved for the next launch.private static Control ScalePicker()@@ -1297,6 +1344,8 @@ public sealed partial class PreferencesWindow : NotaWindowRow("", Caption("Themes change colours only. Follow system switches between your dark-mode and light-mode theme with the OS appearance.")),Row("Waveform", WaveformPicker()),Row("", Caption("How audio clips draw on the arrangement: Smooth outlines the peaks around the RMS level; Solid draws every pixel; Bars spaces the peaks out so the rhythm reads. Solid and Bars also set the browser's preview.")),+ Row("Track headers", HeaderSidePicker()),+ Row("", Caption("Which side of the arrangement the track list sits on. Right starts the timeline at the left edge, next to the browser. Also in the View menu.")),Row("Interface scale", ScalePicker()),Row("", Caption("Makes the whole interface larger or smaller. Timeline, piano roll and audio editor zoom work on top of it."))),Section("AI control (MCP)", 12, enable, details));diff --git a/src/managed/Nota.Application/Palette/CommandCatalog.cs b/src/managed/Nota.Application/Palette/CommandCatalog.csindex 016b5203..7de83d78 100644--- a/src/managed/Nota.Application/Palette/CommandCatalog.cs+++ b/src/managed/Nota.Application/Palette/CommandCatalog.cs@@ -66,6 +66,7 @@ public static class CommandCatalogC("view.follow", "Follow playhead", "View", "", "scroll"),C("view.showPlayhead", "Show playhead", "View", Shortcut.None('P'), "find locate scroll reveal cursor position", view: "Arrangement"),C("view.clipNames", "Cycle clip names", "View", "", "labels", view: "Arrangement"),+ C("view.headersRight", "Track headers on the right", "View", "", "track list side left right swap mirror ableton", view: "Arrangement"),C("view.automation", "Toggle automation mode", "View", Shortcut.CmdShift('A'), "envelopes lanes", view: "Arrangement"),C("view.history", "Show version history", "View", "", "undo history versions snapshots"),C("view.midiLearn", "MIDI learn", "View", "", "map controller"),diff --git a/src/managed/Nota.Application/Settings.cs b/src/managed/Nota.Application/Settings.csindex 24f10492..97b379a4 100644--- a/src/managed/Nota.Application/Settings.cs+++ b/src/managed/Nota.Application/Settings.cs@@ -161,6 +161,9 @@ public sealed class Settingspublic int ArrangementClipLabels { get; set; } = 1;/// <summary>Show the song-structure (sections) lane over the ruler.</summary>public bool ArrangementShowSections { get; set; } = true;+ /// <summary>The arrangement's track-header column sits on the right of the lanes (#72);+ /// off = on the left. View ▸ Track headers on the right, or Settings → Appearance.</summary>+ public bool ArrangementHeadersRight { get; set; }/// <summary>How audio clips draw their waveform on the lanes (Settings → Appearance):/// 0 smooth — the peak outline around its RMS body (default; was bars before #267, so a/// saved 0 moves to the new default), 1 solid — one column per pixel, 2 bars — spaced