(SP) Baxandall EQ:
The SignalProcessingBaxandallEQ node is designed to enhance audio processing by applying a Baxandall equalization technique, which is widely appreciated for its smooth and musical tone control. This node allows you to adjust the bass, midrange, and treble frequencies of an audio signal, providing a versatile tool for shaping the tonal balance of your audio content. The Baxandall EQ is known for its gentle slope and natural sound, making it ideal for both subtle and pronounced adjustments. By using this node, you can achieve a more polished and professional sound in your audio projects, whether you're working on music production, sound design, or any other audio-related task. The node leverages advanced mathematical formulas to ensure precise control over the frequency spectrum, allowing you to tailor the audio output to your specific needs.
(SP) Baxandall EQ Input Parameters:
audio_input
The audio_input parameter is a dictionary that contains the audio data to be processed. It typically includes a torch.Tensor representing the waveform and an integer for the sample rate. This parameter is crucial as it provides the raw audio material that the node will modify using the Baxandall EQ technique.
bass_gain_db
The bass_gain_db parameter allows you to adjust the gain of the low-frequency range, measured in decibels (dB). Increasing this value will boost the bass, while decreasing it will reduce the bass. The default value is 0.0 dB, meaning no change to the bass level. This parameter is essential for enhancing or attenuating the low-end frequencies of your audio.
mid_gain_db
The mid_gain_db parameter controls the gain of the midrange frequencies. Like the bass gain, it is measured in decibels and has a default value of 0.0 dB. Adjusting this parameter can help you emphasize or de-emphasize the midrange, which is often where vocals and many instruments reside.
treble_gain_db
The treble_gain_db parameter adjusts the gain of the high-frequency range. It is also measured in decibels, with a default value of 0.0 dB. Modifying this parameter allows you to enhance or reduce the brightness and clarity of the audio by affecting the treble frequencies.
low_freq
The low_freq parameter specifies the cutoff frequency for the low shelf filter, measured in Hertz (Hz). The default value is 100.0 Hz. This parameter determines the point below which the bass gain adjustments will take effect, allowing you to target specific low-frequency ranges.
mid_freq
The mid_freq parameter defines the center frequency for the midrange peaking filter, measured in Hertz. The default value is 1000.0 Hz. This parameter is crucial for pinpointing the exact midrange frequencies you wish to adjust, providing precise control over the audio's tonal balance.
high_freq
The high_freq parameter sets the cutoff frequency for the high shelf filter, measured in Hertz. The default value is 10000.0 Hz. This parameter determines the point above which the treble gain adjustments will be applied, enabling you to focus on specific high-frequency ranges.
mid_q
The mid_q parameter represents the quality factor of the midrange peaking filter. It affects the bandwidth of the frequencies around the midrange center frequency. The default value is 0.7, which provides a moderate bandwidth. Adjusting this parameter allows you to control the sharpness or broadness of the midrange adjustments.
(SP) Baxandall EQ Output Parameters:
processed_audio
The processed_audio output parameter is a dictionary containing the modified audio data after the Baxandall EQ has been applied. It includes a torch.Tensor representing the waveform and an integer for the sample rate. This output is crucial as it provides the final audio result, reflecting the tonal adjustments made through the node's parameters.
(SP) Baxandall EQ Usage Tips:
- To achieve a warm and full sound, consider increasing the
bass_gain_dbwhile slightly boosting themid_gain_dbfor clarity. - For a brighter and more present audio output, increase the
treble_gain_dband adjust thehigh_freqto target specific high-frequency ranges.
(SP) Baxandall EQ Common Errors and Solutions:
"Invalid audio input format"
- Explanation: This error occurs when the
audio_inputparameter does not contain the expected dictionary structure with atorch.Tensorand sample rate. - Solution: Ensure that the
audio_inputis correctly formatted as a dictionary with the necessary audio data and sample rate.
"Gain value out of range"
- Explanation: This error indicates that one of the gain parameters (
bass_gain_db,mid_gain_db, ortreble_gain_db) is set to an unrealistic value. - Solution: Verify that the gain values are within a reasonable range, typically between -12 dB and +12 dB, to avoid distortion or clipping.
"Frequency value out of range"
- Explanation: This error suggests that one of the frequency parameters (
low_freq,mid_freq, orhigh_freq) is set outside the audible range. - Solution: Ensure that the frequency values are within the human audible range, generally between 20 Hz and 20,000 Hz, for effective EQ adjustments.
