ComfyUI Node: (SP) Filter

Class Name

SignalProcessingFilter

Category
Signal Processing
Author
c0ffymachyne (Account age: 5179days)
Extension
ComfyUI Signal Processing
Latest Updated
2025-05-14
Github Stars
0.02K

How to Install ComfyUI Signal Processing

Install this extension via the ComfyUI Manager by searching for ComfyUI Signal Processing
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Signal Processing in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

(SP) Filter Description

Enhances audio by applying filters like lowpass, highpass, bandpass, and bandstop for frequency control.

(SP) Filter:

The SignalProcessingFilter node is designed to enhance your audio processing capabilities by applying various types of filters to audio signals. This node allows you to manipulate the frequency content of an audio input, enabling you to isolate or suppress certain frequency ranges. Whether you are looking to remove unwanted noise, emphasize specific audio elements, or create unique sound effects, this node provides a versatile solution. By offering options such as lowpass, highpass, bandpass, and bandstop filters, it caters to a wide range of audio processing needs. The node's primary goal is to give you control over the audio spectrum, allowing for creative and technical adjustments that can significantly impact the final sound output.

(SP) Filter Input Parameters:

audio_input

The audio_input parameter is a dictionary that contains the audio data to be processed. It typically includes a waveform represented as a torch.Tensor and an integer representing the sample rate. This parameter is crucial as it provides the raw audio data that the filter will process. The quality and characteristics of the input audio will directly affect the results of the filtering process.

cutoff

The cutoff parameter specifies the cutoff frequency for the filter in Hertz. This frequency determines the point at which the filter begins to affect the audio signal. For a lowpass filter, frequencies above this point are attenuated, while for a highpass filter, frequencies below this point are reduced. In bandpass and bandstop filters, it represents the center frequency. The choice of cutoff frequency is essential for achieving the desired filtering effect.

filter_type

The filter_type parameter defines the type of filter to be applied to the audio signal. Options include "lowpass," "highpass," "bandpass," and "bandstop." Each type serves a different purpose: lowpass filters allow frequencies below the cutoff to pass through, highpass filters allow frequencies above the cutoff, bandpass filters allow a range of frequencies around the cutoff, and bandstop filters attenuate frequencies around the cutoff. Selecting the appropriate filter type is key to achieving your audio processing goals.

q_factor

The q_factor parameter, also known as the quality factor, influences the sharpness or bandwidth of the filter. A higher Q factor results in a narrower bandwidth, making the filter more selective, while a lower Q factor broadens the bandwidth, affecting a wider range of frequencies. This parameter is particularly important for bandpass and bandstop filters, where it determines the range of frequencies affected around the center frequency.

(SP) Filter Output Parameters:

filtered_audio

The filtered_audio output is a dictionary containing the processed audio data. It includes the filtered waveform as a torch.Tensor and the sample rate as an integer. This output represents the audio signal after the specified filtering has been applied, allowing you to hear the effects of the filter on the original audio input. The filtered audio can be used for further processing or as a final output for your audio projects.

(SP) Filter Usage Tips:

  • Experiment with different filter_type settings to understand how each affects your audio. For instance, use a lowpass filter to smooth out high-frequency noise or a highpass filter to remove low-frequency rumble.
  • Adjust the cutoff frequency to target specific frequency ranges. For example, setting a low cutoff on a highpass filter can help remove unwanted bass frequencies.
  • Use the q_factor to control the sharpness of the filter. A higher Q factor can be useful for isolating specific frequencies, while a lower Q factor can create a more gradual filtering effect.

(SP) Filter Common Errors and Solutions:

Unsupported filter type: <filter_type>

  • Explanation: This error occurs when an invalid filter type is specified in the filter_type parameter.
  • Solution: Ensure that the filter_type is set to one of the supported options: "lowpass," "highpass," "bandpass," or "bandstop."

ValueError: Cutoff frequency must be positive

  • Explanation: This error indicates that the cutoff frequency is set to a non-positive value, which is not valid for filtering.
  • Solution: Check that the cutoff frequency is a positive number and adjust it accordingly.

Audio input format error

  • Explanation: This error suggests that the audio_input parameter does not contain the expected data format, such as a missing waveform or incorrect sample rate.
  • Solution: Verify that the audio_input dictionary includes a valid waveform as a torch.Tensor and a correct sample rate as an integer.

(SP) Filter Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Signal Processing
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

(SP) Filter