Skip to content

Instantly share code, notes, and snippets.

View selfproject94's full-sized avatar

selfproject94

View GitHub Profile
@endolith
endolith / delay.py
Last active January 3, 2022 15:13
Distance between two microphones from delay of collinear source
"""
Measure the distance between two microphones based on the delay of a
clap from a point that is collinear with the two microphones.
Make sure your signal isn't clipping.
First test:
2 electrets 26 cm apart, hand clap
Distance: -25.72 cm
Sub-sample distance: -26.02 cm