Shortcuts

torchaudio.prototype.functional.sinc_impulse_response

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

Create windowed-sinc impulse response for given cutoff frequencies.

This feature supports the following devices: CPU, CUDA This API supports the following properties: Autograd, TorchScript
Parameters:
  • cutoff (Tensor) – Cutoff frequencies for low-pass sinc filter.

  • window_size (int, optional) – Size of the Hamming window to apply. Must be odd.

  • (Default

  • high_pass (bool, optional) – If True, convert the resulting filter to high-pass. Otherwise low-pass filter is returned. Default: False.

Returns:

A series of impulse responses. Shape: (…, window_size).

Return type:

Tensor

Tutorials using sinc_impulse_response:
Filter design tutorial

Filter design tutorial

Filter design tutorial
Subtractive synthesis

Subtractive synthesis

Subtractive synthesis

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources