@ audio/ 窗口
音频显示窗口包——打入填充(周期/对称),就地应用,COLA检查.
薄层上方 window-function (scijs – canonical per- sample 数学,再导出整体):用 DFT-even 填充打入的阵列 定期 变体STFT需求(或 对称 用于过滤器设计),并验证hop选择的恒常重叠加法.
import window, { apply, cola, hann } from '@audio/window'
let w = window('hann', 1024) // periodic (DFT-even) — for STFT
let sym = window('hann', 1024, { periodic: false }) // symmetric — for filter design
apply(frame, w) // multiply in place
cola(w, 512) // { ok, ripple, mean } — is this hop COLA?
cola(w, 512, { squared: true }) // analysis+synthesis (win²) variant
hann(3, 7) // any window-function export, re-exported
任意 window-function 名称工作 : hann, (中文(简体) ), hamming, (中文(简体) ), blackman, (中文(简体) ), blackmanHarris, (中文(简体) ), nuttall, (中文(简体) ), gaussian, (中文(简体) ), tukey, (中文(简体) ), kaiser,, , , , , , , ,
另见
@audio/stft- 警犬STFT这对配(其内部)hannWindow对照该套件进行一致性测试)window-function– 下方的每个样本数学( scijs 层)
许可证
麻省理工学院