{
  "experiment": "synthetic_two_tone_downsampling",
  "environment": {
    "python": "3.12.14",
    "macos": "27.0.1",
    "machine": "arm64",
    "packages": {
      "numpy": "2.3.5",
      "scipy": "1.18.1",
      "matplotlib": "3.11.2"
    }
  },
  "input": {
    "sample_rate_hz": 48000,
    "seconds": 2,
    "tones_hz": [
      900,
      3900
    ],
    "peak_amplitude_per_tone": 0.4,
    "dtype": "float64"
  },
  "conversion": {
    "output_sample_rate_hz": 6000,
    "up": 1,
    "down": 8,
    "window": [
      "kaiser",
      5.0
    ],
    "padtype": "constant",
    "cval": 0
  },
  "measurement": {
    "trim_seconds_at_each_end": 0.1,
    "central_seconds": 1.8,
    "method": "one-sided rFFT peak amplitude; DC and Nyquist not doubled",
    "before_pcm_quantization": true
  },
  "measurements": [
    {
      "case": "original",
      "sample_rate_hz": 48000,
      "measurement_frames": 86400,
      "peak_amplitudes_at_hz": {
        "900": 0.400000000000002,
        "2100": 4.669236962815266e-16,
        "3900": 0.3999999999999999
      }
    },
    {
      "case": "stride",
      "sample_rate_hz": 6000,
      "measurement_frames": 10800,
      "peak_amplitudes_at_hz": {
        "900": 0.3999999999999999,
        "2100": 0.39999999999999974
      }
    },
    {
      "case": "filtered",
      "sample_rate_hz": 6000,
      "measurement_frames": 10800,
      "peak_amplitudes_at_hz": {
        "900": 0.400543213959685,
        "2100": 3.690499855982428e-05
      }
    }
  ],
  "boundary_cases": {
    "3900_stride_equals_negative_2100_max_abs_error": 3.760033950861441e-12,
    "3000_zero_phase_stride_peak": 3.2288965381743494e-12,
    "3000_pi_over_2_phase_stride_peak": 0.4
  },
  "wav_files": [
    {
      "file": "original.wav",
      "sample_rate_hz": 48000,
      "frames": 96000,
      "seconds": 2.0,
      "channels": 1,
      "pcm_bits": 16,
      "max_pcm_round_trip_absolute_error": 1.5132920134997008e-05
    },
    {
      "file": "stride.wav",
      "sample_rate_hz": 6000,
      "frames": 12000,
      "seconds": 2.0,
      "channels": 1,
      "pcm_bits": 16,
      "max_pcm_round_trip_absolute_error": 1.1746711107929464e-05
    },
    {
      "file": "filtered.wav",
      "sample_rate_hz": 6000,
      "frames": 12000,
      "seconds": 2.0,
      "channels": 1,
      "pcm_bits": 16,
      "max_pcm_round_trip_absolute_error": 1.331943521559742e-05
    }
  ],
  "scope": "No microphones, hardware playback, subjective listening, speech or streaming tests."
}
