Voss Connection Detection  1
Detect a connector click using realtime code on Bela hardware
TimeDelay Class Reference

Time delay determination between two signals, based on cross-correlation and windowing of the data. More...

#include <timedelay.h>

Public Member Functions

 TimeDelay (const float &fs)
 Initialize a time delay finder. More...
 
float determineDelay (const Channel &mic1, const Channel &mic2)
 Determine the delay between two microphone signals. A positive signal means that mic 1 comes [t] time later than mic 0. More...
 
 ~TimeDelay ()
 

Detailed Description

Time delay determination between two signals, based on cross-correlation and windowing of the data.

Definition at line 12 of file timedelay.h.

Constructor & Destructor Documentation

◆ TimeDelay()

TimeDelay::TimeDelay ( const float &  fs)

Initialize a time delay finder.

Parameters
fsSampling frequency [Hz]

Definition at line 8 of file timedelay.cpp.

◆ ~TimeDelay()

TimeDelay::~TimeDelay ( )

Definition at line 111 of file timedelay.cpp.

Member Function Documentation

◆ determineDelay()

float TimeDelay::determineDelay ( const Channel mic1,
const Channel mic2 
)

Determine the delay between two microphone signals. A positive signal means that mic 1 comes [t] time later than mic 0.

Parameters
mic1Samples of mic 1
mic2Samples of mic 2
Returns
The determined delay, in [ms]

Definition at line 37 of file timedelay.cpp.


The documentation for this class was generated from the following files: