{
  "date": "2026-11-16",
  "source_commit": "188c97a58020617524d90489c902b7447ae94fab",
  "settings": {
    "bpm": 120,
    "trim_final_release": true
  },
  "method": "Two separate original WAV selections in production Chrome; each actual native Download.mid clicked and newly saved file independently parsed with Ruby. All saved input samples checked against a separately reconstructed delayed half-copy.",
  "source_keys": [
    60,
    62,
    64,
    65,
    67,
    69
  ],
  "source_note_starts_seconds": [
    0,
    0.5,
    1,
    1.5,
    2,
    2.5
  ],
  "source_note_length_seconds": 0.36,
  "attack_seconds": 0.01,
  "release_seconds": 0.06,
  "clean_tone_end_seconds": 2.86,
  "delayed_tone_end_seconds": 3.16,
  "delay_frames": 6615,
  "delay_seconds": 0.3,
  "gain": 0.5,
  "construction": "echo[i] = clean[i] + (i>=6615 ? round(0.5 * clean[i-6615]) : 0)",
  "pcm_check": {
    "all_88200_saved_samples_match": true,
    "delay_frames": 6615,
    "gain": 0.5,
    "peak": [
      8192,
      12288
    ],
    "difference_peak": 4096,
    "squared_sums": [
      1390862185543,
      1752011022172
    ],
    "rms": [
      3971.0719628963075,
      4456.912669793722
    ],
    "clipped": [
      0,
      0
    ],
    "independent_rounding": "positive(x+1)/2; negative-((-x+1)/2), integer arithmetic"
  },
  "formulas": {
    "duration_seconds": "88200 / 22050 = 4",
    "nominal_cross_pitch_overlap_seconds": "0.36 + 0.3 - 0.5 = 0.16",
    "tick_seconds": "tick / 480 * 500000 / 1000000 = tick / 960",
    "onset_mae_seconds": "sum(abs(actual_start_tick - programmed_start_seconds*960)) / (6*960)"
  },
  "runs": {
    "echo-clean-melody": {
      "input": {
        "file": "echo-clean-melody.wav",
        "sha256": "6107b3495c51f01ed08e623115bf99f848716f6573c91295c189098cf556ed32",
        "bytes": 176444,
        "frames": 88200,
        "sample_rate": 22050,
        "channels": 1,
        "bits_per_sample": 16,
        "pcm_peak": 8192
      },
      "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
      ],
      "onset_pairing": "By index, same six distinct keys in same order; compared with the primary melody, not separate echo windows.",
      "onset_differences": [
        {
          "key": 60,
          "source_start_seconds": 0,
          "actual_start_ticks": 0,
          "actual_end_ticks": 357,
          "absolute_onset_difference_ticks": 0
        },
        {
          "key": 62,
          "source_start_seconds": 0.5,
          "actual_start_ticks": 379,
          "actual_end_ticks": 847,
          "absolute_onset_difference_ticks": 101.0
        },
        {
          "key": 64,
          "source_start_seconds": 1,
          "actual_start_ticks": 869,
          "actual_end_ticks": 1315,
          "absolute_onset_difference_ticks": 91
        },
        {
          "key": 65,
          "source_start_seconds": 1.5,
          "actual_start_ticks": 1337,
          "actual_end_ticks": 1806,
          "absolute_onset_difference_ticks": 103.0
        },
        {
          "key": 67,
          "source_start_seconds": 2,
          "actual_start_ticks": 1828,
          "actual_end_ticks": 2274,
          "absolute_onset_difference_ticks": 92
        },
        {
          "key": 69,
          "source_start_seconds": 2.5,
          "actual_start_ticks": 2296,
          "actual_end_ticks": 2691,
          "absolute_onset_difference_ticks": 104.0
        }
      ],
      "onset_abs_error_sum_ticks": 491.0,
      "onset_mae_seconds": 0.08524305555555556,
      "controller_events": 0,
      "pitch_bend_events": 0
    },
    "echo-single-copy-melody": {
      "input": {
        "file": "echo-single-copy-melody.wav",
        "sha256": "73006be493b8c9e978b4aa73cbb77b4c89ca248cb043ab434891ad8da1268f4b",
        "bytes": 176444,
        "frames": 88200,
        "sample_rate": 22050,
        "channels": 1,
        "bits_per_sample": 16,
        "pcm_peak": 12288
      },
      "output": {
        "bytes": 101,
        "sha256": "f13ed1a9f35bfa28572a661ac1fc788bc640c0b10d5422aa27601ea87a4d6b41",
        "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": 2979,
            "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": 424,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 60,
            "data2": 0
          },
          {
            "tick": 468,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 62,
            "data2": 88
          },
          {
            "tick": 892,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 62,
            "data2": 0
          },
          {
            "tick": 936,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 64,
            "data2": 88
          },
          {
            "tick": 1382,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 64,
            "data2": 0
          },
          {
            "tick": 1382,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 65,
            "data2": 88
          },
          {
            "tick": 1850,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 65,
            "data2": 0
          },
          {
            "tick": 1895,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 67,
            "data2": 88
          },
          {
            "tick": 2341,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 67,
            "data2": 0
          },
          {
            "tick": 2385,
            "status": 144,
            "type": 144,
            "channel": 0,
            "data1": 69,
            "data2": 88
          },
          {
            "tick": 2979,
            "status": 128,
            "type": 128,
            "channel": 0,
            "data1": 69,
            "data2": 0
          }
        ],
        "notes": [
          {
            "pitch": 60,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 0,
            "end_ticks": 424,
            "start_seconds": 0.0,
            "end_seconds": 0.44166666666666665
          },
          {
            "pitch": 62,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 468,
            "end_ticks": 892,
            "start_seconds": 0.4875,
            "end_seconds": 0.9291666666666667
          },
          {
            "pitch": 64,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 936,
            "end_ticks": 1382,
            "start_seconds": 0.975,
            "end_seconds": 1.4395833333333334
          },
          {
            "pitch": 65,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 1382,
            "end_ticks": 1850,
            "start_seconds": 1.4395833333333334,
            "end_seconds": 1.9270833333333333
          },
          {
            "pitch": 67,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 1895,
            "end_ticks": 2341,
            "start_seconds": 1.9739583333333333,
            "end_seconds": 2.4385416666666666
          },
          {
            "pitch": 69,
            "channel": 0,
            "velocity": 88,
            "start_ticks": 2385,
            "end_ticks": 2979,
            "start_seconds": 2.484375,
            "end_seconds": 3.103125
          }
        ]
      },
      "actual_keys": [
        60,
        62,
        64,
        65,
        67,
        69
      ],
      "onset_pairing": "By index, same six distinct keys in same order; compared with the primary melody, not separate echo windows.",
      "onset_differences": [
        {
          "key": 60,
          "source_start_seconds": 0,
          "actual_start_ticks": 0,
          "actual_end_ticks": 424,
          "absolute_onset_difference_ticks": 0
        },
        {
          "key": 62,
          "source_start_seconds": 0.5,
          "actual_start_ticks": 468,
          "actual_end_ticks": 892,
          "absolute_onset_difference_ticks": 12.0
        },
        {
          "key": 64,
          "source_start_seconds": 1,
          "actual_start_ticks": 936,
          "actual_end_ticks": 1382,
          "absolute_onset_difference_ticks": 24
        },
        {
          "key": 65,
          "source_start_seconds": 1.5,
          "actual_start_ticks": 1382,
          "actual_end_ticks": 1850,
          "absolute_onset_difference_ticks": 58.0
        },
        {
          "key": 67,
          "source_start_seconds": 2,
          "actual_start_ticks": 1895,
          "actual_end_ticks": 2341,
          "absolute_onset_difference_ticks": 25
        },
        {
          "key": 69,
          "source_start_seconds": 2.5,
          "actual_start_ticks": 2385,
          "actual_end_ticks": 2979,
          "absolute_onset_difference_ticks": 15.0
        }
      ],
      "onset_abs_error_sum_ticks": 134.0,
      "onset_mae_seconds": 0.02326388888888889,
      "controller_events": 0,
      "pitch_bend_events": 0
    }
  },
  "scope": "One synthetic melody and one delayed half-level copy. The copy can overlap different original pitches; not an acoustic room response, not twelve expected key presses, not a general quality score or an echo-removal recommendation.",
  "last_note_end_difference": {
    "clean_ticks": 2691,
    "echo_ticks": 2979,
    "difference_ticks": 288,
    "formula": "(2979 - 2691) / 960",
    "seconds": 0.3
  }
}
