[PD] Measuring position between two microphones?
Charles Henry
czhenry at gmail.com
Sun Jun 24 19:49:54 CEST 2007
Another thought...
When you have the two microphones, just correlate the noise between
the two channels (not from the output/input1 and output/input2, but
between input1/input2). When the speaker is equidistant from each
microphone the delay is 0 (located at exactly half a block on the
output from sxcov~.pd or sxcorr~.pd). Then, the distance from the
center is simply proportional to the measured delay between the
signals, divided by 2.
e.g. at 44100 kHz, given c=343 m/sec
distance from center=(delay in samples)/2/44100*343, meters
and the resolution is about 4 mm
noted difference: sxcorr~ accumulates it's values over time, so that
you can get more accuracy, from using longer signals
sxcov~ is instantaneous and not accumulated
Chuck
More information about the Pd-list
mailing list