Is that second peak a tabletop reflection?

Author alidelkz Topic Measurement First published Last updated 4 min read

Suggest a correction

A repeatable check for a small DIY speaker test fixture

A microphone trace can show two peaks even when you play only one click. Before changing a crossover, cabinet, or driver, check whether the workbench provides the extra path. This exercise uses the delay from the first arrival to the second. It works with either the synthetic trace below or a local recording. The synthetic result is a geometry check, with no measurements or performance claims for a speaker or microphone.

Predict where the peak should move

Put the center of the speaker and the microphone capsule 30 cm above a hard, flat tabletop. Keep both at the same height. Measure 30 cm horizontally between them in position A, then move the microphone to 60 cm in position B. Leave the speaker and table fixed. The moving mic should remain pointed the same way.

Imagine a second copy of the speaker 30 cm below the tabletop. Its straight-line distance to the mic is the path length for a single ideal tabletop bounce. For equal heights h and horizontal separation x, the direct path is x and the reflected path is sqrt(x² + (2h)²). With an assumed sound speed of 343 m/s, the time between arrivals is the difference between those lengths divided by 343.

Setup | Direct path | Ideal tabletop path | Delay after first peak | Offset at 48 kHz

  • A, 30 cm high, 30 cm apart | 0.300 m | 0.671 m | 1.08 ms | 52 samples

  • B, 30 cm high, 60 cm apart | 0.600 m | 0.849 m | 0.72 ms | 35 samples

  • Optional C, both 20 cm high, 30 cm apart | 0.300 m | 0.500 m | 0.58 ms | 28 samples

The direct sound takes longer to reach the microphone in B. The tabletop peak can still move closer to the direct peak because their path lengths differ by less. Compare the gap within each trace so any fixed playback or recording latency drops out.

Reproduce the synthetic trace

Paste this into a Node.js file and run it, or run it as JavaScript in a browser console. No recording, libraries, or network access are needed. Each trace uses two deliberately narrow synthetic markers and a made-up recorder delay. The heights of the markers are illustrative. The code also makes a direct-only control and a fixed-lag control.

const sampleRate = 48000;
const soundSpeed = 343;

function makeTrace(distance, height, recorderDelay, reflection = 'table') {
  const directSample = recorderDelay + Math.round(distance * sampleRate / soundSpeed);
  const bouncedPath = Math.hypot(distance, 2 * height);
  const extraSamples = Math.round((bouncedPath - distance) * sampleRate / soundSpeed);
  const trace = new Float64Array(1024);
  trace[directSample] = 0.35;
  if (reflection === 'table') trace[directSample + extraSamples] = 0.17;
  if (reflection === 'fixed') trace[directSample + 52] = 0.17;
  return trace;
}

function samplesBetweenMarkers(trace) {
  const markers = [];
  trace.forEach((amplitude, sample) => {
    if (Math.abs(amplitude) > 0.1) markers.push(sample);
  });
  return markers.length === 2 ? markers[1] - markers[0] : null;
}

const cases = [
  ['A', makeTrace(0.30, 0.30, 100), 52],
  ['B', makeTrace(0.60, 0.30, 160), 35],
  ['C', makeTrace(0.30, 0.20, 100), 28],
  ['B with another recorder delay', makeTrace(0.60, 0.30, 420), 35],
  ['B with no bounce', makeTrace(0.60, 0.30, 160, 'none'), null],
  ['B with a fixed 52-sample copy', makeTrace(0.60, 0.30, 160, 'fixed'), 52],
];

for (const [label, trace, expected] of cases) {
  const actual = samplesBetweenMarkers(trace);
  if (actual !== expected) throw new Error(`${label}: expected ${expected}, got ${actual}`);
  console.log(`${label}: ${actual === null ? 'no second marker' : `${actual} samples`}`);
}

The threshold reads these two artificial markers only. Use a waveform view for a real recording. Several consecutive samples can belong to one arrival, and the strongest peak is not always the direct arrival.

Try it at the bench

  1. Mark A and B on a ruler or on painter’s tape so you can return to the same positions. Use a moderate-level test click from the fixed speaker. Place secure stands clear of the signal path, and keep the midpoint between the driver and capsule over the tabletop. Use the same recorder input, gain, orientation, and sample rate for all takes. Turn off effects and automatic gain when possible. When using our X200 as a phone input for a qualitative trial, the Alidel X200 setup instructions show how to select its original-sound mode and check that the phone is recording from the actual lavalier. This project is by Alidel. For a quantitative check, use a recorder and a microphone you can verify preserve the transient.

  2. Record A twice and B twice. Zoom in on each saved waveform. Compare the first clearly identifiable arrival with the candidate that follows it. For each take, save the gap in samples together with the actual sample rate. If a later feature moves closer to the first arrival in B and it does so across repeats, the table is a candidate. If the peaks overlap or move inconsistently, record the result as inconclusive.

  3. Return to A. As a separate check, hold the geometry fixed and place a folded blanket flat at the reflection point, roughly halfway between speaker and mic in this symmetric layout. Keep the blanket out of the direct path and clear of vents. A change in the same early feature gives additional evidence. An unchanged feature or a thin layer that scarcely affects the tested frequencies leaves the question open.

Other surfaces, driver response, recording effects, or automatic gain can alter the trace. If a secondary peak stays at a fixed delay, investigate a copied stream or other fixed processing delay as well as the room. Keep the two baseline takes and note the dimensions before adjusting hardware.

First published

Last updated

The author maintains this document. Contributors can suggest corrections.

Comments

Sign in to comment. Sign in

Report content

Send a private report to the moderation queue. The author cannot see your report.

Related builds