bugfix
This commit is contained in:
parent
7b9c732478
commit
f4c51a7e8e
1 changed files with 4 additions and 3 deletions
|
@ -5,8 +5,8 @@ using FFTW
|
||||||
|
|
||||||
export stft, istft
|
export stft, istft
|
||||||
|
|
||||||
_fft(x::AbstractMatrix{<:Real}, d) = rfft(x, d)
|
_fft(x::AbstractArray{<:Real}, d) = rfft(x, d)
|
||||||
_fft(x::AbstractMatrix{<:Complex}, d) = fft(x, d)
|
_fft(x::AbstractArray{<:Complex}, d) = fft(x, d)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -100,7 +100,8 @@ function analysis(
|
||||||
L::I = zero(I),
|
L::I = zero(I),
|
||||||
N::I = length(w);
|
N::I = length(w);
|
||||||
)::Matrix{T |> complex} where {T<:Number, I<:Integer, V<:AbstractVector{T}}
|
)::Matrix{T |> complex} where {T<:Number, I<:Integer, V<:AbstractVector{T}}
|
||||||
analysis((@view x[:,:]), w, L, N)
|
xx = @view x[:,:]
|
||||||
|
@view analysis(xx, w, L, N)[:, :, 1]
|
||||||
end
|
end
|
||||||
|
|
||||||
function analysis(
|
function analysis(
|
||||||
|
|
Loading…
Reference in a new issue