Bunker LabsResearch facility
- 11 divisions
- 55 experiments
- 8 working
- 0 validated
- 0 archived
BL-05-02 Research dossier · Division 05, Signal and Protocol Intelligence
Waveform reconstruction
Open Sampling Lab Working, experimental, not validated.
Lifecycle: stage 3 of 6
- 1 Research concept (passed)
- 2 Proof of concept (passed)
- 3 Experimental implementation (current stage)
- 4 Public testing (not reached)
- 5 Validation and optimization (not reached)
- 6 Graduation or archival (not reached)
Dossier
- Purpose
- Rebuild a signal from imperfect samples: fill gaps, repair clipped peaks, resample, and show how much is guesswork. The first part, sampling and reconstruction with aliasing shown, works now (the Sampling Lab).
- Methodology
- Built (Sampling Lab): a signal (two sines, a chirp or a square wave) sampled at a chosen rate and rebuilt three ways: zero-order hold, straight lines, and Whittaker–Shannon (sinc) interpolation. For signals that repeat every second the infinite sinc sum is added up exactly (the periodic sinc, or Dirichlet kernel); the chirp uses a finite sinc sum. The error of each method is measured over the whole second.
- Built: aliasing. Below the Nyquist rate the alias frequency is predicted as |f − k·fs| and measured as the peak of a DFT of the samples, and both are shown on the spectrum.
- Check (built in): a band-limited signal sampled above Nyquist must be rebuilt by sinc to within 10⁻⁹; six sines sampled below Nyquist must each show their predicted alias frequency, and rebuild as that lower sine.
- Planned: autoregressive prediction for short gaps and clipped-peak repair, with every reconstructed sample marked so it is never mistaken for a measured one. Check: remove samples from clean recordings, rebuild them, and measure the error.
- Browser
- Any current browser.
- Hardware
- Any.
- Known limitations
- Nothing above half the sample rate can be recovered (the Nyquist limit). Long gaps are invented, not restored.
- Synthetic signals of one second only; your own recordings cannot be loaded yet.
- The exact sinc reconstruction relies on the signal repeating every second (whole-number frequencies). A chirp does not, so its sinc error includes the effect of stopping the sum one second either side.
- Resource usage
- Measured on the developer’s PC in Microsoft Edge (2026-11-30): one update at the heaviest setting (a chirp at 400 samples per second) took about 17 ms. Nothing runs between changes.
- Validation
- Not validated yet. The built-in Check passed on 2026-11-30, in Microsoft Edge on the developer’s Windows PC. Above Nyquist: 3, 7 and 11 Hz sampled 32 times a second were rebuilt by sinc interpolation with a largest error of 9.1 × 10⁻¹⁵ over 2,000 points (the test allows 10⁻⁹). Below Nyquist: six sines (37 Hz at 30 samples a second, 90 at 64, 130 at 50, 61 at 40, 45 at 20, 99 at 100) each showed their DFT peak at exactly |f − k·fs| (7, 26, 20, 19, 5 and 1 Hz), and sinc rebuilt each as that lower sine to within 1.2 × 10⁻¹³. Real recordings have not been tried.
- Where data is processed
- In your browser. Nothing is uploaded or stored.
Journal
Sampling Lab v0.1 built: three reconstructions with their errors, aliasing predicted and measured, and a built-in Check against exact answers.
Builds on
Existing tools this project starts from. They are foundations, not the experiment.
- Fourier / Signal Math LabTool on the site
- Audio Spectrum Analyzer & SpectrogramTool on the site