快捷方式

torchaudio.prototype.functional.sinc_impulse_response

torchaudio.prototype.functional.sinc_impulse_response(cutoff: Tensor, window_size: int = 513, high_pass: bool = False)[源代码]

为给定的截止频率创建加窗 sinc 脉冲响应。

This feature supports the following devices: CPU, CUDA This API supports the following properties: Autograd, TorchScript
参数:
  • cutoff (Tensor) – 低通 sinc 滤波器的截止频率。

  • window_size (int, 可选) – 要应用的 Hamming 窗口大小。必须为奇数。

  • (默认值

  • high_pass (bool, 可选) – 如果为 True,则将结果滤波器转换为高通滤波器。否则返回低通滤波器。默认值:False

返回值:

一系列脉冲响应。形状:(…, window_size)

返回类型:

Tensor

使用 sinc_impulse_response 的教程
Filter design tutorial

滤波器设计教程

滤波器设计教程
Subtractive synthesis

减法合成

减法合成

文档

访问 PyTorch 的完整开发者文档

查看文档

教程

获取针对初学者和高级开发者的深度教程

查看教程

资源

查找开发资源并获得问题解答

查看资源