Visit ComfyUI Online for ready-to-use ComfyUI environment
Convert normalized amplitude values to numerical representations with flexibility in transforming data for audio processing workflows.
The NormalizedAmplitudeToNumber
node is designed to convert normalized amplitude values into numerical representations, specifically floating-point and integer values. This node is particularly useful in audio processing workflows where you need to manipulate or analyze amplitude data that has been normalized. By providing options to add a specific value to the amplitude based on a threshold and capping the result to a ceiling value, this node offers flexibility in how the amplitude data is transformed. This can be beneficial for tasks such as dynamic range compression, normalization, or other audio effects that require precise control over amplitude values.
This parameter represents the normalized amplitude values that you want to convert. Normalized amplitude values typically range between 0 and 1, where 0 represents silence and 1 represents the maximum amplitude. This input is essential as it forms the basis of the conversion process.
This parameter allows you to specify a floating-point value to be added to the normalized amplitude values. The addition occurs only if the normalized amplitude exceeds a specified threshold. The default value is 0.0, with a minimum of 0.0 and a maximum of 4.0, adjustable in steps of 0.05. This parameter is useful for boosting the amplitude values conditionally.
This parameter sets the threshold above which the add_to
value will be added to the normalized amplitude. The default value is 0.0, with a range from 0.0 to 1.0, adjustable in steps of 0.01. This threshold helps in selectively boosting amplitude values that are above a certain level, allowing for more nuanced control.
This parameter defines the maximum value to which the modified amplitude values can be clipped. The default value is 1.0, with a minimum of 0.1 and a maximum of 4.0, adjustable in steps of 0.1. This ensures that the resulting amplitude values do not exceed a specified limit, preventing potential distortion or clipping in the audio signal.
This output provides the modified amplitude values as floating-point numbers. These values reflect the original normalized amplitudes, adjusted by the add_to
parameter if they exceed the threshold_for_add
, and clipped to the add_ceiling
. This output is useful for further audio processing or analysis tasks that require precise amplitude values.
This output provides the modified amplitude values as integers. The integer values are derived from the floating-point output by converting them to their nearest integer representation. This can be useful for tasks that require discrete amplitude levels or for interfacing with systems that operate on integer values.
add_to
parameter to conditionally boost amplitude values that exceed a certain threshold, allowing for dynamic range adjustments.threshold_for_add
parameter to control which amplitude values get boosted, enabling selective enhancement of louder parts of the audio signal.add_ceiling
parameter to prevent the modified amplitude values from exceeding a specified limit, ensuring that the audio signal remains within a desired range.min_amplitude
parameter is always less than or equal to the max_amplitude
parameter.add_ceiling
value.add_ceiling
parameter or adjusting the add_to
and threshold_for_add
parameters to reduce the likelihood of exceeding the ceiling.© Copyright 2024 RunComfy. All Rights Reserved.