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
Research: Return & Master Track Levels
All findings are from the code on develop (2026-10-13). No open unknowns remain.
R1 — Why the rows show "−∞" / "0.0"
- Finding:
ArrangementView.BuildSlimRow(src/managed/Nota.App/ArrangementView.cs) prints a constant:masterSpine ? "0.0" : "−∞". No meter, no fader, no binding. - Decision: Replace the constant with a real volume read-out and add a meter and a mini fader to the slim row.
R2 — Source of the levels
- Finding: The engine already meters returns (render pass 2,
Track::setMeter,Engine_Render.cpp) and the master (masterPeakL_…).nota_engine_track_meterworks for return ids; the Mixer already reads them. For the master id (kMasterTrackId),trackMeterreturns the master effect-chain track whose meter is never written — the real master level comes fromnota_engine_master_meter. - Decision: Return rows →
TryGetTrackMeter(returnId); Master row →MasterMeter(). No engine or C ABI change. - Alternatives: Writing a meter into the master chain track in the engine — rejected, needless engine change.
R3 — Meter widget and layout in a 40 px row
- Finding: Regular track headers use a vertical
MeterBar(Width 8, margin 0,6,3,6) docked right of the content; group headers use a horizontal 4 pxMeterBar.DESIGN.md§ meters: Signal → −6 dB Caution → 0 Alert, −60…+6, peak hold until clicked, no ballistics — all built intoMeterBar. - Decision: Same vertical
MeterBaras track headers (Width 8, docked right, vertical margins 6 → 28 px tall in the 40 px row). Content: name + dB on the top line,MiniFaderon the bottom line, as the track header's volume row (fader*, dB 30 px). The row keepsFooterRowH = 40. - Alternatives: Horizontal 4 px rail like groups — rejected: the request is "the same meter as regular tracks", and a vertical bar reads level better at a glance.
R4 — Return volume fader
- Finding: Returns are ordinary tracks for volume:
SetTrackVolume(id)andTrackInfo.Volumework;ArrangementView.UpdateMetersalready walks every track (returns included) and pulls_volFaders[id]toward the live value (automation).MiniFader(value, max = 1.5),Default = 1.0gives double-click reset. - Decision: Return row fader =
MiniFader(ti.Volume) { Default = 1.0 },ValueChanged → SetTrackVolume; read-out uses the sameShowDbformatting as track headers. Faders/read-outs live in dedicated footer dictionaries (see R6) and are synced inUpdateMeters. - Automation write: Track faders call
BeginAutomationWriteon gesture. Returns have no visible automation lane in the footer, so recording would create invisible envelopes. Decision: no automation write from footer faders (spec FR-006).
R5 — Master volume: one value
- Finding: The master volume's owner is
TransportViewModel.MasterVolume(OnMasterVolumeChanged → engine.SetMasterVolume, saved in the project's transport state, used by MST fader, SessionView mixer, Remote). There is no engine getter.MixerViewkeeps its own_masterVolume = 1.0fand callsengine.SetMasterVolumedirectly — it starts at 0 dB regardless of the project and its changes are never saved nor shown in MST (pre-existing bug, conflicts with FR-007). - Decision: Give
ArrangementViewandMixerViewthe same pair of callbacksSessionViewalready has —Func<float>? GetMasterVolume,Action<float>? SetMasterVolume— wired inMainWindowtovm.Transport.MasterVolume. The footer master fader reads/writes through them and is polled inUpdateMeters(follows MST, Mixer, MIDI-learn, Remote, load).MixerViewdrops_masterVolumein favour of the callbacks. - Master automation: the engine applies master-volume automation inside the graph without updating the VM, so a fader polling the VM cannot follow it (see R7).
R6 — Rebuild lifetimes
- Finding:
RebuildHeadersclears_meters,_volFaders,_volDb;RebuildFooterHeadersruns separately (on refresh and on every selection change). - Decision: Footer rows register in their own
_footerMeters/_footerFaders/_footerDb(cleared inRebuildFooterHeaders) plus a single_masterMeterBar/_masterFader, so a header rebuild never orphans footer widgets and vice versa. A fader drag must surviveRebuildFooterHeaderstriggered by the click-to-select on the same row: selection happens onPointerPressedof the card; the fader marks its press handled, so the row is not rebuilt mid-drag.
R7 — Live master volume under automation
- Finding:
nota_engine.hhas no master-volume getter; master automation is graph-level (GetMasterVolumeAutomation). - Decision: Out of scope to add an engine getter. US4-4 becomes: the master fader shows the master set volume (same as MST). Recorded as a spec adjustment.
R8 — Verification
- No engine change → the smoke test is unchanged;
scripts/build.shmust still pass. - UI is verified with the headless Avalonia harness (see quickstart): MainWindow with
its VM, the default template (Reverb/Delay returns), screenshots of the footer in
Ember Graphite and Ember Paper; meters driven by real engine readings where the
harness can pump audio, otherwise by checking that
UpdateMeterspushes the engine's return/master readings into the footer bars. - Fader behaviour checked with synthetic pointer drags on the footer
MiniFaders: engine return volume /Transport.MasterVolumechange, read-outs update, Mixer and MST follow.