{
  "date": "2026-11-14",
  "source_commit": "24fde1813fee853afbc9e793c63ca0e8b0782629",
  "method": "Original WAV controls independently read as PCM16. Exact saved difference checked against a separate bitmasked LCG reconstruction. Two production Chrome conversions and native Download .mid clicks; both new saved files independently parsed with Ruby.",
  "settings": {
    "bpm": 120,
    "trim_final_release": true
  },
  "source_keys": [
    60,
    62,
    64,
    65,
    67,
    69
  ],
  "source_note_starts_seconds": [
    0.0,
    0.5,
    1.0,
    1.5,
    2.0,
    2.5
  ],
  "source_note_length_seconds": 0.36,
  "source_note_end_seconds": [
    0.36,
    0.86,
    1.3599999999999999,
    1.8599999999999999,
    2.36,
    2.86
  ],
  "original_input_definition": "Six original separately synthesized sine notes, .25 amplitude, .01-second attack and .06-second release inside each .36-second window, starts every .5 seconds; remaining frames zero. Second input adds deterministic integer noise to these exact quantized clean samples. No clipping.",
  "noise_generator": {
    "seed": 123456789,
    "state_formula": "state = (1664525 * state + 1013904223) mod 4294967296",
    "noise_pcm": "round((2 * state / 4294967296 - 1) * .12 * 32767)",
    "where_added": "Every saved sample, including note gaps and final tail. Added to already quantized clean PCM, not a separately regenerated melody.",
    "noise_rms": 2260.8724301551597
  },
  "formulas": {
    "rms": "sqrt(sum(sample^2) / sample_count)",
    "tick_seconds": "tick / 480 * 500000 / 1000000 = tick / 960",
    "source_onset_ticks": "source_start_seconds * 960",
    "onset_error_seconds": "actual_start_tick / 960 - source_start_seconds",
    "onset_mae_seconds": "sum(abs(actual_start_tick - source_start_seconds*960)) / (6*960)"
  },
  "saved_difference": {
    "all_samples_match_expected_noise": true,
    "frames": 77175,
    "seed": 123456789,
    "pcm_peak": 3932,
    "squared_sum": 394483419424,
    "pcm_rms": 2260.8724301551597,
    "first_32_difference_samples": [
      -2247,
      2956,
      191,
      -1230,
      353,
      -1001,
      -1660,
      274,
      -826,
      -2923,
      -563,
      -1702,
      -1346,
      -1651,
      1521,
      -1812,
      3759,
      3677,
      316,
      2806,
      374,
      302,
      -458,
      912,
      1593,
      -852,
      -779,
      3538,
      -1667,
      -3930,
      -2047,
      -1288
    ],
    "clipped_input_samples": 0
  },
  "runs": {
    "noise-clean-melody": {
      "input": {
        "file": "samples/noise-clean-melody.wav",
        "sha256": "0d95b9187f5935250560cc26bfdeb21519304acb1e7a5d6c18425d4afeb169fd",
        "bytes": 154394,
        "frames": 77175,
        "sample_rate": 22050,
        "channels": 1,
        "bits_per_sample": 16,
        "duration_seconds": 3.5,
        "pcm_peak": 8192,
        "squared_sum": 1390862185543,
        "pcm_rms": 4245.254498109104
      },
      "output": {
        "bytes": 101,
        "sha256": "a3ad48ced4f52c6b4663e0d672e8c789e25d9faf718f7958d0a2dabb4c772fda",
        "format": 0,
        "tracks": 1,
        "ppq": 480,
        "meta_events": [
          {
            "tick": 0,
            "type": 3,
            "data": [
              76,
              111,
              99,
              97,
              108,
              32,
              77,
              101,
              108,
              111
            ]
          },
          {
            "tick": 0,
            "type": 81,
            "data": [
              7,
              161,
              32
            ],
            "microseconds_per_quarter": 500000
          },
          {
            "tick": 2691,
            "type": 47,
            "data": [

            ]
          }
        ],
        "time_signature_events": [

        ],
        "tempo_events": [
          {
            "tick": 0,
            "type": 81,
            "data": [
              7,
              161,
              32
            ],
            "microseconds_per_quarter": 500000
          }
        ],
        "channel_events": [
          {
            "tick": 0,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 60,
            "data2": 88
          },
          {
            "tick": 357,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 60,
            "data2": 0
          },
          {
            "tick": 379,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 62,
            "data2": 88
          },
          {
            "tick": 847,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 62,
            "data2": 0
          },
          {
            "tick": 869,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 64,
            "data2": 88
          },
          {
            "tick": 1315,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 64,
            "data2": 0
          },
          {
            "tick": 1337,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 65,
            "data2": 88
          },
          {
            "tick": 1806,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 65,
            "data2": 0
          },
          {
            "tick": 1828,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 67,
            "data2": 88
          },
          {
            "tick": 2274,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 67,
            "data2": 0
          },
          {
            "tick": 2296,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 69,
            "data2": 88
          },
          {
            "tick": 2691,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 69,
            "data2": 0
          }
        ],
        "notes": [
          {
            "pitch": 60,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 0,
            "end_ticks": 357,
            "start_seconds": 0.0,
            "end_seconds": 0.371875
          },
          {
            "pitch": 62,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 379,
            "end_ticks": 847,
            "start_seconds": 0.39479166666666665,
            "end_seconds": 0.8822916666666667
          },
          {
            "pitch": 64,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 869,
            "end_ticks": 1315,
            "start_seconds": 0.9052083333333333,
            "end_seconds": 1.3697916666666667
          },
          {
            "pitch": 65,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 1337,
            "end_ticks": 1806,
            "start_seconds": 1.3927083333333334,
            "end_seconds": 1.88125
          },
          {
            "pitch": 67,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 1828,
            "end_ticks": 2274,
            "start_seconds": 1.9041666666666666,
            "end_seconds": 2.36875
          },
          {
            "pitch": 69,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 2296,
            "end_ticks": 2691,
            "start_seconds": 2.3916666666666666,
            "end_seconds": 2.803125
          }
        ]
      },
      "actual_keys": [
        60,
        62,
        64,
        65,
        67,
        69
      ],
      "same_ordered_keys_as_source": true,
      "onset_errors": [
        {
          "key": 60,
          "source_start_seconds": 0.0,
          "actual_start_ticks": 0,
          "actual_end_ticks": 357,
          "onset_difference_ticks": 0.0,
          "onset_difference_seconds": 0.0
        },
        {
          "key": 62,
          "source_start_seconds": 0.5,
          "actual_start_ticks": 379,
          "actual_end_ticks": 847,
          "onset_difference_ticks": -101.0,
          "onset_difference_seconds": -0.10520833333333335
        },
        {
          "key": 64,
          "source_start_seconds": 1.0,
          "actual_start_ticks": 869,
          "actual_end_ticks": 1315,
          "onset_difference_ticks": -91.0,
          "onset_difference_seconds": -0.09479166666666672
        },
        {
          "key": 65,
          "source_start_seconds": 1.5,
          "actual_start_ticks": 1337,
          "actual_end_ticks": 1806,
          "onset_difference_ticks": -103.0,
          "onset_difference_seconds": -0.10729166666666656
        },
        {
          "key": 67,
          "source_start_seconds": 2.0,
          "actual_start_ticks": 1828,
          "actual_end_ticks": 2274,
          "onset_difference_ticks": -92.0,
          "onset_difference_seconds": -0.09583333333333344
        },
        {
          "key": 69,
          "source_start_seconds": 2.5,
          "actual_start_ticks": 2296,
          "actual_end_ticks": 2691,
          "onset_difference_ticks": -104.0,
          "onset_difference_seconds": -0.10833333333333339
        }
      ],
      "onset_abs_error_sum_ticks": 491.0,
      "onset_mae_seconds": 0.08524305555555556
    },
    "noise-added-melody": {
      "input": {
        "file": "samples/noise-added-melody.wav",
        "sha256": "ced9f18a3f0c2115ced248e471125330c68a1cf100e1c0aa13a2a94a820d986c",
        "bytes": 154394,
        "frames": 77175,
        "sample_rate": 22050,
        "channels": 1,
        "bits_per_sample": 16,
        "duration_seconds": 3.5,
        "pcm_peak": 12122,
        "squared_sum": 1781544372057,
        "pcm_rms": 4804.630597717663
      },
      "output": {
        "bytes": 104,
        "sha256": "c155945ffb9d8097f34690977ffb2cbf5fa2facbb6dd809e8edd7df1264067f8",
        "format": 0,
        "tracks": 1,
        "ppq": 480,
        "meta_events": [
          {
            "tick": 0,
            "type": 3,
            "data": [
              76,
              111,
              99,
              97,
              108,
              32,
              77,
              101,
              108,
              111
            ]
          },
          {
            "tick": 0,
            "type": 81,
            "data": [
              7,
              161,
              32
            ],
            "microseconds_per_quarter": 500000
          },
          {
            "tick": 2675,
            "type": 47,
            "data": [

            ]
          }
        ],
        "time_signature_events": [

        ],
        "tempo_events": [
          {
            "tick": 0,
            "type": 81,
            "data": [
              7,
              161,
              32
            ],
            "microseconds_per_quarter": 500000
          }
        ],
        "channel_events": [
          {
            "tick": 0,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 60,
            "data2": 88
          },
          {
            "tick": 290,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 60,
            "data2": 0
          },
          {
            "tick": 446,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 62,
            "data2": 88
          },
          {
            "tick": 780,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 62,
            "data2": 0
          },
          {
            "tick": 892,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 64,
            "data2": 88
          },
          {
            "tick": 1181,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 64,
            "data2": 0
          },
          {
            "tick": 1360,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 65,
            "data2": 88
          },
          {
            "tick": 1761,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 65,
            "data2": 0
          },
          {
            "tick": 1850,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 67,
            "data2": 88
          },
          {
            "tick": 2229,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 67,
            "data2": 0
          },
          {
            "tick": 2363,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 69,
            "data2": 88
          },
          {
            "tick": 2675,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 69,
            "data2": 0
          }
        ],
        "notes": [
          {
            "pitch": 60,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 0,
            "end_ticks": 290,
            "start_seconds": 0.0,
            "end_seconds": 0.3020833333333333
          },
          {
            "pitch": 62,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 446,
            "end_ticks": 780,
            "start_seconds": 0.46458333333333335,
            "end_seconds": 0.8125
          },
          {
            "pitch": 64,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 892,
            "end_ticks": 1181,
            "start_seconds": 0.9291666666666667,
            "end_seconds": 1.2302083333333333
          },
          {
            "pitch": 65,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 1360,
            "end_ticks": 1761,
            "start_seconds": 1.4166666666666667,
            "end_seconds": 1.834375
          },
          {
            "pitch": 67,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 1850,
            "end_ticks": 2229,
            "start_seconds": 1.9270833333333333,
            "end_seconds": 2.321875
          },
          {
            "pitch": 69,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 2363,
            "end_ticks": 2675,
            "start_seconds": 2.4614583333333333,
            "end_seconds": 2.7864583333333335
          }
        ]
      },
      "actual_keys": [
        60,
        62,
        64,
        65,
        67,
        69
      ],
      "same_ordered_keys_as_source": true,
      "onset_errors": [
        {
          "key": 60,
          "source_start_seconds": 0.0,
          "actual_start_ticks": 0,
          "actual_end_ticks": 290,
          "onset_difference_ticks": 0.0,
          "onset_difference_seconds": 0.0
        },
        {
          "key": 62,
          "source_start_seconds": 0.5,
          "actual_start_ticks": 446,
          "actual_end_ticks": 780,
          "onset_difference_ticks": -34.0,
          "onset_difference_seconds": -0.03541666666666665
        },
        {
          "key": 64,
          "source_start_seconds": 1.0,
          "actual_start_ticks": 892,
          "actual_end_ticks": 1181,
          "onset_difference_ticks": -68.0,
          "onset_difference_seconds": -0.0708333333333333
        },
        {
          "key": 65,
          "source_start_seconds": 1.5,
          "actual_start_ticks": 1360,
          "actual_end_ticks": 1761,
          "onset_difference_ticks": -80.0,
          "onset_difference_seconds": -0.08333333333333326
        },
        {
          "key": 67,
          "source_start_seconds": 2.0,
          "actual_start_ticks": 1850,
          "actual_end_ticks": 2229,
          "onset_difference_ticks": -70.0,
          "onset_difference_seconds": -0.07291666666666674
        },
        {
          "key": 69,
          "source_start_seconds": 2.5,
          "actual_start_ticks": 2363,
          "actual_end_ticks": 2675,
          "onset_difference_ticks": -37.0,
          "onset_difference_seconds": -0.038541666666666696
        }
      ],
      "onset_abs_error_sum_ticks": 289.0,
      "onset_mae_seconds": 0.05017361111111111
    }
  },
  "scope": "One synthetic six-note melody, one deterministic added-noise level and one export configuration. Whole-file RMS includes the programmed gaps and final tail. Not a real room/microphone, a noise threshold, a noise-removal recommendation or a transcription accuracy rate.",
  "actual_output_bytes_identical": false,
  "repeat_verification": {
    "date": "2026-11-15",
    "source_commit": "24fde1813fee853afbc9e793c63ca0e8b0782629",
    "method": "The same two original WAV files were selected separately again in production Chrome. Both native Download .mid links were clicked and new saved files independently parsed. Each complete file is byte-identical to its original November14 export.",
    "all_output_bytes_and_events_match": true,
    "settings": {
      "bpm": 120,
      "trim_final_release": true
    },
    "actual_outputs": [
      {
        "bytes": 101,
        "sha256": "a3ad48ced4f52c6b4663e0d672e8c789e25d9faf718f7958d0a2dabb4c772fda"
      },
      {
        "bytes": 104,
        "sha256": "c155945ffb9d8097f34690977ffb2cbf5fa2facbb6dd809e8edd7df1264067f8"
      }
    ]
  }
}
