{
  "date": "2026-10-10",
  "timeZone": "Asia/Seoul",
  "machine": "Windows test machine",
  "runtime": {
    "platform": "win32",
    "architecture": "x64",
    "node": "v24.19.0"
  },
  "sourceCodeSHA256": "7f9c8b44a6ac99835b7e2f86c4f141385a1045396e40214c0afe6cee94e8f7ea",
  "fixture": {
    "sampleRate": 44100,
    "channels": 1,
    "bits": 16,
    "sampleFrames": 66150,
    "durationSeconds": 1.5,
    "frequencyHz": 523.2511306011972,
    "sourceMIDIPitch": 72,
    "edgeSeconds": 0.008,
    "rawSampledPeak": 0.9999999999582654
  },
  "mode": "Balanced",
  "method": "Generate sampled sine, normalize from its measured sample peak, construct specified gain/clamp variants, parse signed16-bit WAV PCM, then call unchanged production mixToMono/downsample/detectNotes/buildMidi. PeakDBFS=20*log10(maxAbsInteger/32768). CrestFactorDB=20*log10(peakFS/rmsFS). PCM SHA256 is a byte identity fingerprint, not a sound-quality score.",
  "results": [
    {
      "label": "clean-half",
      "construction": "Normalize the sampled sine to 16384 integer peak; no clamping.",
      "input": {
        "file": "clean-half.wav",
        "bytes": 132344,
        "sha256": "b4432d3643a5d50047fb3d0ff1ab7b13b221ed0d50e2a64a76e0777c61397149",
        "durationSeconds": 1.5,
        "peakInteger": 16384,
        "peakFS": 0.5,
        "samplePeakDBFS": -6.020599913279624,
        "rmsFS": 0.3522922856207671,
        "crestFactorDB": 3.0413374217338407,
        "railSampleCount": 0,
        "longestEqualPeakRunSamples": 1,
        "pcmSHA256": "4b7862646bfdd1e7f131b9a6e7276f2ec41692813988fbe02c101fafef014004"
      },
      "output": {
        "file": "clean-half.mid",
        "bytes": 42,
        "sha256": "d4c965a088a9165605137748a537574ec24cd401b4f826444902e76b5b8fa537",
        "noteCount": 1,
        "notes": [
          {
            "pitch": 72,
            "start": 0,
            "duration": 1.3003174603174603,
            "velocity": 118
          }
        ]
      }
    },
    {
      "label": "clean-rail",
      "construction": "Normalize the same sampled sine to 32767 integer peak; no clamping.",
      "input": {
        "file": "clean-rail.wav",
        "bytes": 132344,
        "sha256": "0d8b652d5f822f4195d5e6342650c4cc2f9ec5c3826e100c26ef2169a8c2ff01",
        "durationSeconds": 1.5,
        "peakInteger": 32767,
        "peakFS": 0.999969482421875,
        "samplePeakDBFS": -0.00026507636037961915,
        "rmsFS": 0.704563057386582,
        "crestFactorDB": 3.0413375652354846,
        "railSampleCount": 116,
        "longestEqualPeakRunSamples": 1,
        "pcmSHA256": "b8282f54b128fcada950a16848655813422b7d370954358143b8dfb9c64b313b"
      },
      "output": {
        "file": "clean-rail.mid",
        "bytes": 42,
        "sha256": "d4c965a088a9165605137748a537574ec24cd401b4f826444902e76b5b8fa537",
        "noteCount": 1,
        "notes": [
          {
            "pitch": 72,
            "start": 0,
            "duration": 1.3003174603174603,
            "velocity": 118
          }
        ]
      }
    },
    {
      "label": "clipped-half",
      "construction": "Multiply normalized sine by 4; clamp to +/-1; then scale to integer peak 16384.",
      "input": {
        "file": "clipped-half.wav",
        "bytes": 132344,
        "sha256": "278b377ee8356282978ef5b2ae642b48146ca809127d19d37742c6a736e6246d",
        "durationSeconds": 1.5,
        "peakInteger": 16384,
        "peakFS": 0.5,
        "samplePeakDBFS": -6.020599913279624,
        "rmsFS": 0.4718287019855809,
        "crestFactorDB": 0.5037129651050702,
        "railSampleCount": 0,
        "longestEqualPeakRunSamples": 36,
        "pcmSHA256": "ce440c9e7bf087a1202aa4bbc614a6cbb8ff435c61dbcb7557375b6e9f52a82b"
      },
      "output": {
        "file": "clipped-half.mid",
        "bytes": 42,
        "sha256": "d4c965a088a9165605137748a537574ec24cd401b4f826444902e76b5b8fa537",
        "noteCount": 1,
        "notes": [
          {
            "pitch": 72,
            "start": 0,
            "duration": 1.3003174603174603,
            "velocity": 118
          }
        ]
      }
    },
    {
      "label": "clipped-quarter",
      "construction": "Divide every clipped-half PCM integer by 2 and round; no new clamping.",
      "input": {
        "file": "clipped-quarter.wav",
        "bytes": 132344,
        "sha256": "7cade763097f0b00cdf7dfb8d31e1d91675371d7c2bea9b417fcd6d185c87c8b",
        "durationSeconds": 1.5,
        "peakInteger": 8192,
        "peakFS": 0.25,
        "samplePeakDBFS": -12.041199826559248,
        "rmsFS": 0.23591434922997764,
        "crestFactorDB": 0.5037130300082764,
        "railSampleCount": 0,
        "longestEqualPeakRunSamples": 36,
        "pcmSHA256": "bc0dda6d3aebc3c401eee219e8f3ce47aead06dc372e9aae387bc916cb154c86"
      },
      "output": {
        "file": "clipped-quarter.mid",
        "bytes": 42,
        "sha256": "d4c965a088a9165605137748a537574ec24cd401b4f826444902e76b5b8fa537",
        "noteCount": 1,
        "notes": [
          {
            "pitch": 72,
            "start": 0,
            "duration": 1.3003174603174603,
            "velocity": 118
          }
        ]
      }
    }
  ],
  "limits": "Synthetic code-level PCM test only. Not a recording, browser decode/file-picker conversion, meter UI, listening, repair, true-peak/intersample or perceptual-quality test. Equal-peak runs are descriptive for known constructions, not a universal forensic clipping classifier. Reaching a representable integer rail after normalization does not establish earlier overload; no current rail does not exclude earlier clamping followed by attenuation. Note outputs do not certify audio quality. No hardware/reference-voltage or waveform-reconstruction claim."
}