{
  "test_date": "2026-10-21",
  "tested_source_commit": "88ec04c08e7c3a3c4aee193fa4eb99d8ec5be2ce",
  "source": "Original synthesized sine tones, not a musical performance",
  "duration_formula": "20000 / 8000 = 2.5 seconds",
  "tone_window_duration_formula": "16000 / 8000 = 2 seconds",
  "shift_formula": "4000 / 8000 = 0.5 seconds",
  "sample_formula": "round(0.5 * min(1,i/40,(15999-i)/40) * sin(2*pi*261.625565*i/8000) * 32767), i=0..15999",
  "construction": "The same 16000 quantized tone samples placed at offset 0 or 4000 in 20000 frames; remainder all-zero PCM",
  "sample_reconstruction_and_identical_tone_checks_passed": true,
  "results": [
    {
      "case": "tone-then-silence",
      "input_path": "/samples/silence-control.wav",
      "input_bytes": 40044,
      "input_sha256": "b72da13b4548835a3ee31ba659b9e56846b8e3576098e65536cb30a462fa5dc7",
      "channels": 1,
      "sample_rate": 8000,
      "frames": 20000,
      "pcm_bits": 16,
      "programmed_tone_window": {
        "start_seconds": 0.0,
        "end_seconds": 2.0
      },
      "midi_path": "/samples/silence-control-notes.mid",
      "midi_bytes": 56,
      "midi_sha256": "98f9b7387d677c34327fa300f97ca3f0fd96a1637f1c7b9dcb0a991cafcb993a",
      "format": 0,
      "tracks": 1,
      "ppq": 480,
      "notes": [
        {
          "channel": 0,
          "midi": 60,
          "start_seconds": 0,
          "end_seconds": 2.0197916666666664,
          "velocity": 88
        }
      ],
      "events": [
        {
          "seconds": 0,
          "message": {
            "type": "track_name",
            "name": "Local Melo",
            "time": 0
          }
        },
        {
          "seconds": 0,
          "message": {
            "type": "set_tempo",
            "tempo": 500000,
            "time": 0
          }
        },
        {
          "seconds": 0,
          "message": {
            "type": "note_on",
            "time": 0,
            "channel": 0,
            "note": 60,
            "velocity": 88
          }
        },
        {
          "seconds": 2.0197916666666664,
          "message": {
            "type": "note_off",
            "time": 2.0197916666666664,
            "channel": 0,
            "note": 60,
            "velocity": 0
          }
        },
        {
          "seconds": 2.0197916666666664,
          "message": {
            "type": "end_of_track",
            "time": 0
          }
        }
      ],
      "measured_at_utc": "2026-10-21T01:06:59.555564+00:00",
      "native_download_after_click": true,
      "onset_difference_seconds": 0.0,
      "onset_difference_formula": "0 - 0.0",
      "end_difference_seconds": 0.01979166666666643,
      "end_difference_formula": "2.0197916666666664 - 2.0"
    },
    {
      "case": "leading-silence",
      "input_path": "/samples/silence-leading.wav",
      "input_bytes": 40044,
      "input_sha256": "a1d847fb5ebb61af1226e2cb0d3a88cb98df358163e965ca6c7a248b0b1e873d",
      "channels": 1,
      "sample_rate": 8000,
      "frames": 20000,
      "pcm_bits": 16,
      "programmed_tone_window": {
        "start_seconds": 0.5,
        "end_seconds": 2.5
      },
      "midi_path": "/samples/silence-leading-notes.mid",
      "midi_bytes": 57,
      "midi_sha256": "3c52138945bbc84e331b199e37e58583eda0bac50cd259f9d9c613787cfe4b41",
      "format": 0,
      "tracks": 1,
      "ppq": 480,
      "notes": [
        {
          "channel": 0,
          "midi": 60,
          "start_seconds": 0.3020833333333333,
          "end_seconds": 2.321875,
          "velocity": 88
        }
      ],
      "events": [
        {
          "seconds": 0,
          "message": {
            "type": "track_name",
            "name": "Local Melo",
            "time": 0
          }
        },
        {
          "seconds": 0,
          "message": {
            "type": "set_tempo",
            "tempo": 500000,
            "time": 0
          }
        },
        {
          "seconds": 0.3020833333333333,
          "message": {
            "type": "note_on",
            "time": 0.3020833333333333,
            "channel": 0,
            "note": 60,
            "velocity": 88
          }
        },
        {
          "seconds": 2.321875,
          "message": {
            "type": "note_off",
            "time": 2.0197916666666664,
            "channel": 0,
            "note": 60,
            "velocity": 0
          }
        },
        {
          "seconds": 2.321875,
          "message": {
            "type": "end_of_track",
            "time": 0
          }
        }
      ],
      "measured_at_utc": "2026-10-21T01:07:15.818992+00:00",
      "native_download_after_click": true,
      "onset_difference_seconds": -0.19791666666666669,
      "onset_difference_formula": "0.3020833333333333 - 0.5",
      "end_difference_seconds": -0.1781250000000001,
      "end_difference_formula": "2.321875 - 2.5"
    }
  ],
  "programmed_onset_shift_seconds": 0.5,
  "observed_midi_onset_shift_seconds": 0.3020833333333333,
  "onset_shift_difference_seconds": -0.19791666666666669,
  "onset_shift_difference_formula": "(0.3020833333333333 - 0) - (0.5 - 0)",
  "limits": [
    "Errors are compared with programmed tone-window boundaries including fades, not a detected musical attack.",
    "No browser intermediate frame arrays or raw RMS values were captured.",
    "Source and output are absolute file-relative seconds; no DAW session was tested.",
    "This is one controlled input pair, not a general offset correction or song accuracy score."
  ],
  "parser": "mido 1.3.3",
  "converter_algorithm_changed": false
}
