Audio Mixing with Variable Attenuation to Prevent Signal Overflow
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional audio-mixing algorithms fail to support mixing signals of multiple channels in proportion, leading to issues such as volume loss, frequency distortion, and overflow, which affects sound quality and the ability to amplify signals effectively.
Innovation Solution
An audio-mixing processing method that extracts signals from multiple channels, weights and adds them, and applies a variable attenuation factor based on the maximum value of the mixed signal to prevent overflow and maintain sound quality.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Quantity of substance
If signals are directly multiplied by amplification factor, then volume is preserved, but overflow occurs
Solution Approach 1:
The patent applies preliminary anti-action by performing attenuation processing before the mixed signal can overflow. The attenuation factor is calculated based on the maximum value of the mixed signal, and this attenuation is applied in advance to prevent overflow from occurring when signals are amplified. This resolves the contradiction by preemptively counteracting the potential harmful effect of overflow while preserving volume through controlled amplification.
2Reliability
If adding and averaging algorithm is used, then overflow is prevented, but volume is reduced
Solution Approach 1:
The patent implements dynamics by using a variable attenuation factor that is dynamically calculated based on the maximum value of the mixed signal rather than using a fixed attenuation value. This allows the system to adapt the attenuation level to the actual signal characteristics, preventing overflow while minimizing volume loss. The dynamic adjustment resolves the contradiction by optimizing both overflow prevention and volume preservation based on real-time signal conditions.
3Device complexity
If conventional audio-mixing algorithms are used, then mixing is simple, but proportional mixing of multiple channels is not supported
Solution Approach 1:
The patent applies segmentation by dividing the audio mixing process into distinct functional modules: signal extraction module, mixing module, and attenuation processing module. Each module handles a specific aspect of the mixing process, allowing independent optimization and making the system adaptable to different proportional mixing requirements. This modular segmentation resolves the contradiction by maintaining relatively simple individual modules while achieving complex proportional mixing capabilities through their coordinated operation.
Data Source
AI summary
An audio-mixing processing method, an audio-mixing processing apparatus, a device, and a storage medium are provided. The method includes: extracting a signal sm(n) of a frame in a signal of a first channel and a signal vm(n) of a frame in a signal of a second channel, where the signal vm(n) corresponds to the signal sm(n), the signal of the second channel is required to be mixed with the signal of the first channel, and n represents the number of sample points; weighting the signal sm(n) and the signal vm (n), and adding the weighted signal sm(n) and the weighted signal vm(n) to acquire a mixed signal ym(n); and calculating a variable attenuation factor based on a maximum value ymax of a sequence of the mixed signal ym(n), and attenuating the mixed signal ym(n) by using the variable attenuation factor to generate an output signal Zm(n).


