diff --git a/docs/renders/aqua-feel-native-diff-2026-11-10.json b/docs/renders/aqua-feel-native-diff-2026-11-10.json new file mode 100644 index 0000000..23ab820 --- /dev/null +++ b/docs/renders/aqua-feel-native-diff-2026-11-10.json @@ -0,0 +1,269 @@ +{ + "libfaustWasm": "2.90.19", + "sampleRate": 48000, + "rows": [ + { + "id": "thruster@rpm300", + "lenWasm": 144000, + "lenNative": 144000, + "maxErr": 0.026072267442941666, + "maxErrAt": 142707, + "rmsErr": 0.002385837227503057, + "relRmsErrDb": -28.770505442344437, + "wasm": { + "samplePeak": 0.14264661073684692, + "truePeakDb": -16.90120405295226, + "loudnessLufs": -30.226833288468896, + "centroidMedianHz": 751.9185607592701, + "overSamples": 0, + "rmsDb": -23.676437109698263, + "crestDb": 6.761666256511239, + "noiseToToneDb": -6.937988717513285, + "noiseToToneADb": 13.092512355240387, + "lowMotion": false + }, + "native": { + "samplePeak": 0.14242461323738098, + "truePeakDb": -16.915261179402926, + "loudnessLufs": -30.216031113774466, + "centroidMedianHz": 751.528437557621, + "overSamples": 0, + "rmsDb": -23.670746205832152, + "crestDb": 6.74244718138185, + "noiseToToneDb": -6.888378522251635, + "noiseToToneADb": 13.056342933565631, + "lowMotion": false + }, + "flagsWasm": [], + "flagsNative": [] + }, + { + "id": "thruster@rpm600", + "lenWasm": 144000, + "lenNative": 144000, + "maxErr": 0.049423644319176674, + "maxErrAt": 142945, + "rmsErr": 0.004812282166272209, + "relRmsErrDb": -23.51217894411906, + "wasm": { + "samplePeak": 0.15958738327026367, + "truePeakDb": -15.926835268189564, + "loudnessLufs": -28.69474712970973, + "centroidMedianHz": 1227.9568144573402, + "overSamples": 0, + "rmsDb": -22.840558133782523, + "crestDb": 6.900529208325618, + "noiseToToneDb": -0.7035305515542589, + "noiseToToneADb": 5.044756311984671, + "lowMotion": false + }, + "native": { + "samplePeak": 0.1601162701845169, + "truePeakDb": -15.90057398970821, + "loudnessLufs": -28.709339901369557, + "centroidMedianHz": 1224.4350816353904, + "overSamples": 0, + "rmsDb": -22.846021449137904, + "crestDb": 6.934730747403392, + "noiseToToneDb": -0.6166079485198495, + "noiseToToneADb": 6.053873560512358, + "lowMotion": false + }, + "flagsWasm": [], + "flagsNative": [] + }, + { + "id": "thruster@rpm1200", + "lenWasm": 144000, + "lenNative": 144000, + "maxErr": 0.08972565084695816, + "maxErrAt": 143228, + "rmsErr": 0.012448641233006897, + "relRmsErrDb": -16.610480431926955, + "wasm": { + "samplePeak": 0.19161102175712585, + "truePeakDb": -14.343339234769212, + "loudnessLufs": -26.051033400616078, + "centroidMedianHz": 2114.222071076734, + "overSamples": 0, + "rmsDb": -21.48680915202533, + "crestDb": 7.1352188868162605, + "noiseToToneDb": -4.949059402813134, + "noiseToToneADb": 12.652391835948997, + "lowMotion": false + }, + "native": { + "samplePeak": 0.1893547624349594, + "truePeakDb": -14.423961460001248, + "loudnessLufs": -26.05070520432609, + "centroidMedianHz": 2115.6363534197994, + "overSamples": 0, + "rmsDb": -21.484457233344667, + "crestDb": 7.029981882815694, + "noiseToToneDb": -4.965083035181173, + "noiseToToneADb": 12.716143920958068, + "lowMotion": false + }, + "flagsWasm": [], + "flagsNative": [] + }, + { + "id": "thruster@rpm4800", + "lenWasm": 144000, + "lenNative": 144000, + "maxErr": 0.2870774045586586, + "maxErrAt": 142979, + "rmsErr": 0.054912511748541046, + "relRmsErrDb": -8.246006212467824, + "wasm": { + "samplePeak": 0.36383503675460815, + "truePeakDb": -8.715719927350808, + "loudnessLufs": -17.418922989049733, + "centroidMedianHz": 4914.23686401765, + "overSamples": 0, + "rmsDb": -16.959964506391177, + "crestDb": 8.17805487903365, + "noiseToToneDb": -2.834032055202698, + "noiseToToneADb": 9.67560044209106, + "lowMotion": false + }, + "native": { + "samplePeak": 0.3622153401374817, + "truePeakDb": -8.742560302886037, + "loudnessLufs": -17.424886445264, + "centroidMedianHz": 4908.148280531137, + "overSamples": 0, + "rmsDb": -16.961323502311725, + "crestDb": 8.140660284709858, + "noiseToToneDb": -2.9540607279645457, + "noiseToToneADb": 9.40924191267517, + "lowMotion": false + }, + "flagsWasm": [], + "flagsNative": [] + }, + { + "id": "sfxr-classic-classic-sfxr-abstract-golf", + "lenWasm": 144000, + "lenNative": 144000, + "maxErr": 0.000002171844244003296, + "maxErrAt": 117685, + "rmsErr": 9.912912629276112e-8, + "relRmsErrDb": -134.45251378934543, + "wasm": { + "samplePeak": 0.9895820021629333, + "truePeakDb": 0.9076630707842905, + "loudnessLufs": -5.327743141800993, + "centroidMedianHz": 8147.614236982103, + "overSamples": 0, + "rmsDb": -5.623460642702886, + "crestDb": 5.532496403571967, + "noiseToToneDb": -0.9960950126656059, + "noiseToToneADb": 7.586387572827178, + "lowMotion": true + }, + "native": { + "samplePeak": 0.9895820021629333, + "truePeakDb": 0.9076628030277624, + "loudnessLufs": -5.327743184793801, + "centroidMedianHz": 8147.614175634302, + "overSamples": 0, + "rmsDb": -5.623460696287697, + "crestDb": 5.5324964571567765, + "noiseToToneDb": -0.9960947920917818, + "noiseToToneADb": 7.5863877077205615, + "lowMotion": true + }, + "flagsWasm": [ + "waived truePeakDb", + "waived lowMotion", + "waived loudnessLufs", + "warn truePeakDb" + ], + "flagsNative": [ + "waived truePeakDb", + "waived lowMotion", + "waived loudnessLufs", + "warn truePeakDb" + ] + }, + { + "id": "sfxr-explosion", + "lenWasm": 144000, + "lenNative": 144000, + "maxErr": 0.000002158805727958679, + "maxErrAt": 129292, + "rmsErr": 1.1522412234189382e-7, + "relRmsErrDb": -127.13848106038596, + "wasm": { + "samplePeak": 0.6732206344604492, + "truePeakDb": -3.0561513953602306, + "loudnessLufs": -8.634121016036506, + "centroidMedianHz": 9795.322296183533, + "overSamples": 0, + "rmsDb": -11.630620604104497, + "crestDb": 8.193768979977403, + "noiseToToneDb": 60, + "noiseToToneADb": 60, + "lowMotion": true + }, + "native": { + "samplePeak": 0.6732206344604492, + "truePeakDb": -3.0561512376276347, + "loudnessLufs": -8.634121064908708, + "centroidMedianHz": 9795.322310734966, + "overSamples": 0, + "rmsDb": -11.630620652864625, + "crestDb": 8.193769028737531, + "noiseToToneDb": 60, + "noiseToToneADb": 60, + "lowMotion": true + }, + "flagsWasm": [ + "waived lowMotion" + ], + "flagsNative": [ + "waived lowMotion" + ] + }, + { + "id": "tract/vowel-a", + "lenWasm": 34560, + "lenNative": 34560, + "maxErr": 0.0001921914517879486, + "maxErrAt": 28187, + "rmsErr": 0.000046111049670587934, + "relRmsErrDb": -52.60441410619507, + "wasm": { + "samplePeak": 0.08378415554761887, + "truePeakDb": -21.518327105526673, + "loudnessLufs": -34.251568232392565, + "centroidMedianHz": 1937.1220888731689, + "overSamples": 0, + "rmsDb": -33.80275018649363, + "crestDb": 12.265988122620389, + "noiseToToneDb": -10.436050344670264, + "noiseToToneADb": -12.885220061403881, + "lowMotion": false + }, + "native": { + "samplePeak": 0.08390921354293823, + "truePeakDb": -21.50539262673788, + "loudnessLufs": -34.23471535099468, + "centroidMedianHz": 1937.2296872141594, + "overSamples": 0, + "rmsDb": -33.78684837329708, + "crestDb": 12.263041385142849, + "noiseToToneDb": -10.447393994101596, + "noiseToToneADb": -12.89873810612136, + "lowMotion": false + }, + "flagsWasm": [ + "FAIL onsetMs" + ], + "flagsNative": [ + "FAIL onsetMs" + ] + } + ] +} \ No newline at end of file diff --git a/docs/renders/aqua-feel-native-diff-2026-11-10.md b/docs/renders/aqua-feel-native-diff-2026-11-10.md new file mode 100644 index 0000000..89e782c --- /dev/null +++ b/docs/renders/aqua-feel-native-diff-2026-11-10.md @@ -0,0 +1,46 @@ +# aqua-feel: faustwasm vs the daemon's native libfaust path + +**Nothing here was heard.** Numbers from offline buffers, same Faust source, 48 kHz, mono, 512-frame blocks, same params. + +- wasm side: `tools/aqua-feel/render.js` (faustwasm 0.20.0, libfaust 2.90.x, `-ftz 2`). +- native side: `tools/FaustNativeRender` over `AquaSynthPatchCompiler` (`NativeFaustRuntime.cs:530`: `-single -ftz 2 -vec -lv 1`), libfaust 2.90.20 + LLVM built in the Linux sandbox (`AQUASYNTH_FAUST_HOME`, overlay of the 2026-10-31 build). +- driver: `node tools/aqua-feel/native-diff.mjs --tract `; raw numbers in `aqua-feel-native-diff-2026-11-10.json`. +- tract voice: `vowel-a` Faust source from the 2026-11-08 render kit (0.72 s, default controls). + +Columns are wasm / native. + +| item | max abs err (at sample) | err vs signal RMS | sample peak | centroid Hz | LUFS | true peak dBTP | gate flags | +|---|---|---|---|---|---|---|---| +| thruster rpm300 | 2.6e-2 (142707) | -28.8 dB | .1426/.1424 | 751.9/751.5 | -30.227/-30.216 | -16.90/-16.92 | none / none | +| thruster rpm600 | 4.9e-2 | -23.5 dB | .1596/.1601 | 1228.0/1224.4 | -28.695/-28.709 | -15.93/-15.90 | none / none | +| thruster rpm1200 | 9.0e-2 | -16.6 dB | .1916/.1894 | 2114.2/2115.6 | -26.051/-26.051 | -14.34/-14.42 | none / none | +| thruster rpm4800 | 2.9e-1 | -8.2 dB | .3638/.3622 | 4914.2/4908.1 | -17.419/-17.425 | -8.72/-8.74 | none / none | +| sfxr classic abstract-golf | 2.2e-6 | -134.5 dB | .9896/.9896 | 8147.6/8147.6 | -5.328/-5.328 | +0.908/+0.908 | waived truePeakDb, lowMotion, loudnessLufs; warn truePeakDb / identical | +| sfxr explosion | 2.2e-6 | -127.1 dB | .6732/.6732 | 9795.3/9795.3 | -8.634/-8.634 | -3.06/-3.06 | waived lowMotion / identical | +| tract vowel-a | 1.9e-4 | -52.6 dB | .08378/.08391 | 1937.1/1937.2 | -34.252/-34.235 | -21.52/-21.51 | FAIL onsetMs / identical | + +Hiss caps (noiseToToneADb, wasm / native; cap): rpm300 13.09/13.06 (16), rpm600 5.04/6.05 (8), rpm1200 12.65/12.72 (15). rpm4800 9.68/9.41 (no cap). + +## Verdict + +**sfxr: the two paths agree** to float rounding (2e-6). The sfxr flags and waivers (+0.908 dBTP, -5.33 LUFS, held noise) are properties of the Faust source, not of the wasm host. + +**Tract voice: agrees to -52.6 dB** (max 1.9e-4 on a 0.084 peak); every metric within 0.02 dB or 0.01% centroid. Its `onsetMs` gate failure appears identically on both sides. + +**Thruster: waveforms diverge, metrics agree.** The error grows from ~1e-4 in the first 0.25 s to the size of the signal by 2 s at rpm 4800 (relative RMS error -8 dB), so the two renders are not the same waveform at high rpm. Level and spectrum metrics stay close: LUFS within 0.014 dB, true peak within 0.09 dB, sample peak within 1.2 %, centroid within 0.3 %, crest within 0.1 dB (rpm1200 0.11), hiss within 0.3 dB except rpm600 A-weighted, which reads 1.0 dB higher native. + +### Cause (measured, one part not isolated) + +The thruster takes its rotor frequency from `rpm = hslider(...) : si.smooth(ba.tau2pole(0.2))`, and every oscillator (`os.sawtooth`, `os.square`, `os.osc`) integrates that frequency into phase. Rendering `rpm/6000` alone at rpm=4800: the first 1000 samples match to 0.001 rpm, then wasm **stalls at 4796.632** from about 2.5 s on while native converges to **4799.999**. A float32 simulation of the one-pole without fused multiply-add reproduces 4796.6318 exactly, so the wasm value is plain float32 rounding of the smoother (the increment drops under half an ulp). Native does not stall, so it evaluates the smoother with different arithmetic; whether that is `-vec`, `-lv 1` or LLVM JIT contraction was **not isolated** (a fused simulation stalls at 4797.66, not 4799.999, so FMA alone does not explain it). The ~3.4 rpm difference moves the rotor tone by ~0.085 Hz, a phase drift that grows to a full cycle in seconds; discontinuous saw edges then differ by up to 2.0 sample-wise (isolated `os.sawtooth(shaft)`: max err 1.99). Removing the `wander` noise changes nothing (rpm300 2.62e-2, rpm4800 2.89e-1 unchanged), so the random wander is not the cause. Noise-only parts (`rattle` 6.7e-4, `rpm/6000` 5.6e-4) agree closely, consistent with the sfxr result: the LCG noise is the same on both paths. + +### What this invalidates + +- **Thruster v5 mix / hiss caps / loudness / true-peak / centroid claims:** stand. They are statistical and agree within the numbers above. The rpm600 hiss cap (8 dB) has 1.95 dB headroom natively, not the 2.96 dB the threshold note assumes; still passes. +- **Anything that compares thruster sample-by-sample or by phase** (before/after waveform diffs, null tests, onset or envelope timing at sub-ms resolution on the rotor tone, `correlate` against ratings tied to exact waveforms) is wasm-specific. A listener on the daemon hears the same level and spectrum, a different phase trajectory. +- **A listening trial on wasm renders of the thruster** heard rpm settling 0.07 % short of the target at rpm 4800. Not a timbre difference by these metrics, but the trial did not hear the daemon's path. +- **sfxr flags:** not invalidated. They hold on the native path. +- **Not tested here:** the other 75 aqua-feel items; the Ding mixes; the faust-vec flag itself in isolation; block sizes other than 512; live (non-offline) host behaviour. + +## Sandbox note + +Native libfaust is buildable here: libfaust 2.90.20 with LLVM, built 2026-10-31 (`faust-llvm-build-20261031`, `faust-home-overlay-20261031`); `dotnet` 10.0.403 builds `FaustNativeRender` with `env-review.sh`. diff --git a/tools/FaustNativeRender/FaustNativeRender.csproj b/tools/FaustNativeRender/FaustNativeRender.csproj new file mode 100644 index 0000000..9dd3508 --- /dev/null +++ b/tools/FaustNativeRender/FaustNativeRender.csproj @@ -0,0 +1,12 @@ + + + Exe + net10.0 + enable + enable + true + + + + + diff --git a/tools/FaustNativeRender/Program.cs b/tools/FaustNativeRender/Program.cs new file mode 100644 index 0000000..2294abe --- /dev/null +++ b/tools/FaustNativeRender/Program.cs @@ -0,0 +1,51 @@ +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using AquaSynth.Faust; + +// Offline render of one Faust source through the daemon's native libfaust path (AquaSynthPatchCompiler, -vec -lv 1) +// to a mono float32 WAV, for diffing against aqua-feel's faustwasm render. 48 kHz, 512-frame blocks, like render.js. +// usage: FaustNativeRender [controlSuffix=value ...] +const int Rate = 48000, Frames = 512; +if (args.Length < 3) { Console.Error.WriteLine("usage: FaustNativeRender [suffix=value ...]"); return 2; } +var dspPath = Path.GetFullPath(args[0]); +var outPath = Path.GetFullPath(args[1]); +var total = (int)Math.Round(double.Parse(args[2]) * Rate); +var source = File.ReadAllText(dspPath); +Directory.CreateDirectory(Path.GetDirectoryName(outPath)!); + +using var compiler = new AquaSynthPatchCompiler(new AquaSynthNativeOptions(SampleRate: Rate)); +var name = Path.GetFileNameWithoutExtension(dspPath); +if (!compiler.TryCompileSource(new AquaSynthCompileIdentity(name, name, ""), source, (float)total / Rate, out var patch0, out var cerr)) +{ + Console.Error.WriteLine("COMPILE FAILED: " + cerr); + return 1; +} +using var patch = patch0!; +var ctl = new Dictionary(); +foreach (var spec in args.Skip(3)) +{ + var eq = spec.IndexOf('='); + var path = patch.ControlPaths.Single(p => p.EndsWith(spec[..eq])); + ctl[path] = float.Parse(spec[(eq + 1)..], System.Globalization.CultureInfo.InvariantCulture); +} + +using var stream = patch.CreateStreamingPatch(); +var buf = GC.AllocateArray(Frames, pinned: true); +var ptrs = GC.AllocateArray(1, pinned: true); +unsafe { ptrs[0] = (IntPtr)Unsafe.AsPointer(ref buf[0]); } +var outP = Marshal.UnsafeAddrOfPinnedArrayElement(ptrs, 0); +var pcm = new float[total]; +for (var at = 0; at < total; at += Frames) +{ + stream.ProcessBlock(Frames, IntPtr.Zero, outP, ctl); + Array.Copy(buf, 0, pcm, at, Math.Min(Frames, total - at)); +} +using (var w = new BinaryWriter(File.Create(outPath))) +{ + var db = total * 4; + w.Write("RIFF"u8); w.Write(36 + db); w.Write("WAVEfmt "u8); w.Write(16); w.Write((short)3); w.Write((short)1); + w.Write(Rate); w.Write(Rate * 4); w.Write((short)4); w.Write((short)32); w.Write("data"u8); w.Write(db); + foreach (var s in pcm) w.Write(s); +} +Console.WriteLine($"{outPath} frames={total} controls={ctl.Count}"); +return 0; diff --git a/tools/aqua-feel/README.md b/tools/aqua-feel/README.md index 87aa094..52bf70b 100644 --- a/tools/aqua-feel/README.md +++ b/tools/aqua-feel/README.md @@ -33,8 +33,8 @@ non-zero on any unwaived failure or stale waiver. No CI runner exists in this re The command gain 0.6 is an assumption (`DingsPlaybackHost` takes it from the caller as 0..1), so the Ding loudness window depends on it. Render path: the same faustwasm offline processor the playground and the listening trial use (libfaust 2.90.x, `-ftz 2`), -mono channel 0. It is **not** the daemon's native libfaust path (`-vec`); the same Faust source should render alike, but -nobody has diffed the two. +mono channel 0. It is **not** the daemon's native libfaust path (`-vec`); the two agree on sfxr and a tract voice, and diverge in waveform on the thruster (float32 rpm smoother) while its level and +spectrum metrics agree: `docs/renders/aqua-feel-native-diff-2026-11-10.md`, `node native-diff.mjs`. ## What it measures (per item, `report.json` `items[].metrics`) diff --git a/tools/aqua-feel/native-diff.mjs b/tools/aqua-feel/native-diff.mjs new file mode 100644 index 0000000..28dc4a3 --- /dev/null +++ b/tools/aqua-feel/native-diff.mjs @@ -0,0 +1,42 @@ +// Diff aqua-feel's faustwasm render against the daemon's native libfaust render (tools/FaustNativeRender) of the same +// Faust source, at the same params, 48 kHz and length. Nothing here was heard. +// usage: node native-diff.mjs [--tract PATH.dsp] [--out DIR] +import { readFileSync, writeFileSync, mkdirSync } from "node:fs"; +import { spawnSync } from "node:child_process"; +import { join, dirname, resolve } from "node:path"; +import { fileURLToPath } from "node:url"; +import { SR, measure } from "./metrics.js"; +import { gate } from "./gate.js"; +import { loadRuntime, compile, renderOnce, writeWav, readText, playground } from "./render.js"; + +const here = dirname(fileURLToPath(import.meta.url)), args = process.argv.slice(2); +const opt = (k) => { const i = args.indexOf(k); return i < 0 ? null : args[i + 1]; }; +const bin = resolve(args[0]), out = resolve(opt("--out") ?? join(here, "out-native-diff")); +const low = (n) => readText(join(playground, "lowered", n)); +const items = [300, 600, 1200, 4800].map((rpm) => ({ id: `thruster@rpm${rpm}`, group: "patch", file: "thruster.dsp", source: low("thruster.dsp"), params: { rpm }, seconds: 3 })); +items.push({ id: "sfxr-classic-classic-sfxr-abstract-golf", group: "patch", file: "sfxr-classic-classic-sfxr-abstract-golf.dsp", source: low("sfxr-classic-classic-sfxr-abstract-golf.dsp"), params: {}, seconds: 3 }); +items.push({ id: "sfxr-explosion", group: "patch", file: "sfxr-explosion.dsp", source: low("sfxr-explosion.dsp"), params: {}, seconds: 3 }); +if (opt("--tract")) items.push({ id: "tract/vowel-a", group: "patch", file: "tract-vowel-a.dsp", source: readText(opt("--tract")), params: {}, seconds: 0.72 }); +mkdirSync(join(out, "dsp"), { recursive: true }); + +const readF32Wav = (p) => { const b = readFileSync(p), n = b.readUInt32LE(40) / 4, x = new Float32Array(n); for (let i = 0; i < n; i++) x[i] = b.readFloatLE(44 + i * 4); return x; }; +const thresholds = JSON.parse(readText(join(here, "thresholds.json"))); +const flagsOf = (id, group, m) => { const g = gate({ items: [{ id, group, metrics: m }] }, thresholds, { partial: true }); return [...g.failures.map((f) => `FAIL ${f.metric}`), ...g.waived.map((f) => `waived ${f.metric}`), ...g.warnings.map((f) => `warn ${f.metric}`)]; }; + +const rt = await loadRuntime(), rows = []; +for (const it of items) { + const w = (await renderOnce(await compile(rt, it.id, it.source), it.params, it.seconds)).samples; + const dsp = join(out, "dsp", it.file); writeFileSync(dsp, it.source); + const wav = join(out, `${it.id.replace(/[^A-Za-z0-9._@-]+/g, "_")}.native.wav`); + const r = spawnSync("dotnet", [bin.endsWith(".dll") ? bin : join(bin, "FaustNativeRender.dll"), dsp, wav, String(it.seconds), ...Object.entries(it.params).map(([k, v]) => `${k}=${v}`)], { encoding: "utf8" }); + if (r.status !== 0) { rows.push({ id: it.id, error: (r.stderr || r.stdout).slice(0, 400) }); continue; } + const n = readF32Wav(wav); writeWav(join(out, `${it.id.replace(/[^A-Za-z0-9._@-]+/g, "_")}.wasm.wav`), w); + const len = Math.min(w.length, n.length); let maxErr = 0, at = 0, sq = 0, sqRef = 0; + for (let i = 0; i < len; i++) { const d = Math.abs(w[i] - n[i]); if (d > maxErr) { maxErr = d; at = i; } sq += d * d; sqRef += w[i] * w[i]; } + const mw = measure(w), mn = measure(n); + rows.push({ id: it.id, lenWasm: w.length, lenNative: n.length, maxErr, maxErrAt: at, rmsErr: Math.sqrt(sq / len), relRmsErrDb: 10 * Math.log10(sq / Math.max(sqRef, 1e-30)), + wasm: pick(mw), native: pick(mn), flagsWasm: flagsOf(it.id, it.group, mw), flagsNative: flagsOf(it.id, it.group, mn) }); +} +function pick(m) { return { samplePeak: m.samplePeak, truePeakDb: m.truePeakDb, loudnessLufs: m.loudnessLufs, centroidMedianHz: m.centroidMedianHz, overSamples: m.overSamples, rmsDb: m.rmsDb, crestDb: m.crestDb, noiseToToneDb: m.noiseToToneDb, noiseToToneADb: m.noiseToToneADb, lowMotion: m.lowMotion }; } +writeFileSync(join(out, "native-diff.json"), JSON.stringify({ libfaustWasm: rt.version, sampleRate: SR, rows }, null, 1)); +console.log(JSON.stringify({ libfaustWasm: rt.version, rows }, null, 1));