native-diff: stdlib identity, 12 smoother sources under three smoothers, tolerance

Record which faustlibraries text each host compiles against (Starfire
2.85.5 has the stalling smooth; the sandbox master has imp(3)). Add
--items smoother and --smoother old|imp3 (same rewritten source on both
sides) and limits fit to the measured deltas; control matching normalises
the leading slash. Report extended; faustlibraries pin proposed, not made.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Aqua 2026-11-10 06:44:09 +00:00
commit 4e6a64b311
7 changed files with 1565 additions and 20 deletions

View file

@ -27,7 +27,9 @@ foreach (var spec in args.Skip(3))
{
var eq = spec.IndexOf('=');
var key = spec[..eq];
var path = patch.ControlPaths.Single(p => p == key || p == "/" + key || p.EndsWith("/" + key));
var hits = patch.ControlPaths.Where(p => p.TrimStart('/') == key.TrimStart('/') || p.EndsWith("/" + key.TrimStart('/'))).ToList();
if (hits.Count != 1) { Console.Error.WriteLine($"control \"{key}\" matches {hits.Count} of: {string.Join(", ", patch.ControlPaths)}"); return 1; }
var path = hits[0];
ctl[path] = float.Parse(spec[(eq + 1)..], System.Globalization.CultureInfo.InvariantCulture);
}