Skip to content

armgit / nota

Public Imported from GitHub
0

Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.

(fix) File panels start in the Projects folder, the recording waveform stays in its box, the DSP meter stays on screen (#322)

Chris Laupama794712f2ac50
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 490e3134..7e2d64d0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -77,6 +77,13 @@ Entry categories: `Added`, `Changed`, `Fixed`, `Removed`.
**Show fewer** strip and Esc closes every opened node; Delete removes a selected modulator;
an unwired Scope says it watches CV and how to patch it; and the hint names how to draw a
cable.
+- **File panels open in the right folder** (nota-daw/nota#309): Open, Save as and the new-project
+ panel start in the Projects folder from Settings ▸ Library, and Import audio starts in the
+ folder you last imported from (the Samples folder at first).
+- **The live recording waveform stays in its box** (nota-daw/nota#208): a hot input no longer
+ draws the take being recorded over the tracks above and below it.
+- **The DSP meter stays on screen** (nota-daw/nota#303): when the transport row runs short, the
+ meter folds to its number and is the last thing hidden, instead of the first.
## [0.57.1] — 2026-10-22
diff --git a/src/managed/Nota.App/ArrangementView.LaneControl.cs b/src/managed/Nota.App/ArrangementView.LaneControl.cs
index 50c7b0c9..b690ec9a 100644
--- a/src/managed/Nota.App/ArrangementView.LaneControl.cs
+++ b/src/managed/Nota.App/ArrangementView.LaneControl.cs
@@ -1584,11 +1584,14 @@ public sealed partial class ArrangementView
{
double fx = r.X + (i / (double)n) * r.Width;
if (fx < 0 || fx > Bounds.Width) continue;
- float min = _recPeaks[i * 2];
- float max = _recPeaks[i * 2 + 1];
+ // Input over 0 dBFS reads past ±1: pin it to the box's edges, as the take's
+ // own waveform is once it lands (#208).
+ float min = Math.Clamp(_recPeaks[i * 2], -1f, 1f);
+ float max = Math.Clamp(_recPeaks[i * 2 + 1], -1f, 1f);
AddRect(g, fx, mid - max * amp, 1, Math.Max(1, (max - min) * amp));
}
- ctx.DrawGeometry(RecWave, null, geo);
+ using (ctx.PushClip(r)) // and never paint over the tracks around it
+ ctx.DrawGeometry(RecWave, null, geo);
}
private bool IsDraggingCrossTrack(int track, int clip)
diff --git a/src/managed/Nota.App/MainWindow.Files.cs b/src/managed/Nota.App/MainWindow.Files.cs
index 4f824647..20a5f096 100644
--- a/src/managed/Nota.App/MainWindow.Files.cs
+++ b/src/managed/Nota.App/MainWindow.Files.cs
@@ -33,6 +33,7 @@ public partial class MainWindow
{
Title = "Import audio",
AllowMultiple = false,
+ SuggestedStartLocation = await FolderAsync(_importFolder ?? _vm.Settings.ResolvedSamplesFolder()),
FileTypeFilter = new[]
{
new FilePickerFileType("Audio") { Patterns = new[] { "*.wav", "*.flac", "*.mp3" } }
@@ -42,6 +43,7 @@ public partial class MainWindow
if (files.Count == 0) return;
var path = files[0].TryGetLocalPath();
if (path is null) { _vm.StatusText = "Unsupported file location."; return; }
+ _importFolder = System.IO.Path.GetDirectoryName(path);
await ImportAudioInBackgroundAsync(path, -1, 0.0);
}
@@ -199,6 +201,17 @@ public partial class MainWindow
_vm.StatusText = "New project.";
}
+ // The file panels start where their files live (#309): projects in the Projects folder from
+ // Preferences, audio in the folder last imported from (the Samples folder at first). Left
+ // alone, macOS opens every panel in the folder any of them used last.
+ private string? _importFolder;
+
+ private async Task<IStorageFolder?> FolderAsync(string dir)
+ {
+ try { return System.IO.Directory.Exists(dir) ? await StorageProvider.TryGetFolderFromPathAsync(dir) : null; }
+ catch { return null; } // a provider without paths (or a stale folder): the OS default
+ }
+
private void OnMenuOpen(object? sender, EventArgs e) => _ = DoOpenAsync();
private void OnMenuSave(object? sender, EventArgs e) => _ = DoSaveAsync(saveAs: false);
private void OnMenuSaveAs(object? sender, EventArgs e) => _ = DoSaveAsync(saveAs: true);
@@ -212,6 +225,7 @@ public partial class MainWindow
{
Title = "Open Nota project (.nota folder)",
AllowMultiple = false,
+ SuggestedStartLocation = await FolderAsync(_vm.Settings.ResolvedProjectsFolder()), // #309
});
if (folders.Count == 0) return;
var dir = folders[0].TryGetLocalPath();
@@ -363,6 +377,7 @@ public partial class MainWindow
var file = await StorageProvider.SaveFilePickerAsync(new FilePickerSaveOptions
{
Title = title,
+ SuggestedStartLocation = _vm is null ? null : await FolderAsync(_vm.Settings.ResolvedProjectsFolder()), // #309
DefaultExtension = "nota",
SuggestedFileName = suggestedName,
FileTypeChoices = new[]
diff --git a/src/managed/Nota.App/MainWindow.TransportFit.cs b/src/managed/Nota.App/MainWindow.TransportFit.cs
index d9a9e837..62cabba8 100644
--- a/src/managed/Nota.App/MainWindow.TransportFit.cs
+++ b/src/managed/Nota.App/MainWindow.TransportFit.cs
@@ -5,7 +5,9 @@
// or let the row run past the island's edge, it sheds parts in order of how little they are
// needed. First what is shown elsewhere or merely informative, then what has a menu entry or
// a shortcut, last the readouts you set while playing. Stop / play / record, the position,
-// the tempo, the metronome and the view switch never go.
+// the tempo, the metronome and the view switch never go. The DSP meter is what you look at
+// when the audio starts to crackle and isn't shown anywhere else, so it only folds to its
+// number early on and goes last of all (#303).
using System;
using System.Collections.Generic;
@@ -24,7 +26,7 @@ public partial class MainWindow
private Control[][] TransportShedOrder => _transportShedOrder ??= new[]
{
- new Control[] { CpuMeter, CpuSep }, // informative only
+ new Control[] { CpuBar }, // the DSP meter keeps its number
new Control[] { ProjectNameText }, // moves to the title-bar caption
new Control[] { RemoteLabel }, // Remote keeps its glyph, count and dot
new Control[] { TapChip }, // palette ▸ Tap Tempo; the BPM field stays
@@ -39,6 +41,7 @@ public partial class MainWindow
new Control[] { LoopRecordCell }, // ⌘⇧R / Transport menu
new Control[] { LoopSep, LoopCell }, // ⌘L; the range stays visible on the ruler
new Control[] { MasterWell }, // the master strip is in the mixer
+ new Control[] { CpuMeter, CpuSep }, // only when nothing else is left to give
};
private void InitTransportFit()
diff --git a/src/managed/Nota.App/MainWindow.axaml b/src/managed/Nota.App/MainWindow.axaml
index bf3b0830..15141f48 100644
--- a/src/managed/Nota.App/MainWindow.axaml
+++ b/src/managed/Nota.App/MainWindow.axaml
@@ -374,7 +374,7 @@
<!-- DSP load (audio-callback time ÷ buffer); the tooltip adds process CPU (MainWindow.SetUpCpuTip) -->
<StackPanel x:Name="CpuMeter" Grid.Column="8" Spacing="3" VerticalAlignment="Center" Background="Transparent">
- <Border Width="52" Height="4" Background="{DynamicResource Brush.BgSunken}"
+ <Border x:Name="CpuBar" Width="52" Height="4" Background="{DynamicResource Brush.BgSunken}"
CornerRadius="{StaticResource Radius.Clip}" ClipToBounds="True">
<Border x:Name="CpuFill" Width="0" HorizontalAlignment="Left" CornerRadius="{StaticResource Radius.Clip}"
Background="{DynamicResource Brush.Success}"/>