diff --git a/src/csm.jl b/src/csm.jl index 3ba8948..91426fe 100644 --- a/src/csm.jl +++ b/src/csm.jl @@ -37,8 +37,8 @@ end Calculate cross-spectral matrix from time series `t` which is `S x M` dimensional, where `S` is the number of samples and `M`the number of microphones. """ -function csm(t::AbstractArray{T};n=1024,noverlap=div(n,2),fs=1,win=DSP.hanning(n),scaling="spectrum") where T <: AbstractFloat - csm(flat_t(t);n=n,noverlap=noverlap,fs=fs,win=win,scaling=scaling) +function csm(t::AbstractArray{T};n=1024,noverlap=div(n,2),fs=1,win=DSP.hanning(n),scaling="spectrum",multi_thread=true) where T <: AbstractFloat + csm(flat_t(t);n=n,noverlap=noverlap,fs=fs,win=win,scaling=scaling,multi_thread=true) end function csm(t::Vector{<:AbstractVector{T}};n=1024,noverlap=div(n,2),fs=1,win=DSP.hanning(n),scaling="spectrum",multi_thread=true) where T <: AbstractFloat