Efficient parametric equalizer curve drawing method and processing terminal

CN116860199BActive Publication Date: 2026-08-28GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310879893.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-17
Publication Date
2026-08-28
Estimated Expiration
2043-07-17

AI Technical Summary

Technical Problem

在这个过程中,所绘制的音频曲线从起始点到终点的整个曲线中,各个位置的横坐标间隔是完全一样的,这导致数据处理量极大,特别是如果某个曲线的某一部分需要改变状态时,则意味着需要完整重复一遍,这样的数据处理量非常巨大,导致音频曲线所在界面会出现明显卡顿线性,用户体验度低,很难实时的展示音频曲线的变化

Benefits of technology

[0018]本发明的有益效果为:本发明相比于现有参量均衡器的音频曲线生成方法,数据处理量更少,界面加载该音频曲线更快,响应更快,不会出现界面卡顿现象。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116860199B_ABST
    Figure CN116860199B_ABST
Patent Text Reader

Abstract

The application discloses a kind of efficient parameter equalizer curve drawing method and processing terminal, method includes: forming N initial parameter equalization audio curve, with sampling frequency as abscissa, audio gain as ordinate;For each initial parameter equalization audio curve, sampling frequency is selected as abscissa according to corresponding interval size, the audio gain corresponding to each abscissa is calculated, to generate N final parameter equalization audio curve;The ordinate corresponding to each abscissa of each final parameter equalization audio curve is accumulated, to superimpose each final parameter equalization audio curve together, form a parameter equalization audio curve;The complete audio curve is loaded into the canvas Canvas of interface control, to obtain the audio curve of parameter equalizer.The application is less in data processing amount, interface loads the audio curve faster, responds faster, and interface jamming phenomenon does not appear.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of audio curve processing technology, specifically a highly efficient method for drawing parametric equalizer curves and a processing terminal. Background Technology

[0002] In existing technologies, drawing audio curves typically involves substituting the x-axis value into an audio algorithm to obtain the y-axis value, then substituting the next x-axis value into the algorithm again to obtain the next y-axis value, and so on. The number of iterations depends on the x-axis, i.e., the interval between x-axis values. Smaller intervals mean denser data points on the y-axis, resulting in a more realistic curve; conversely, larger intervals mean sparser data points, leading to a steeper curve that deviates from realism. In this process, the x-axis intervals are exactly the same throughout the entire audio curve from start to finish. This results in an extremely large amount of data processing, especially when a portion of the curve needs to change state, requiring a complete repetition. This massive data processing volume causes noticeable stuttering and linearity on the audio curve interface, resulting in a poor user experience and making it difficult to display real-time changes in the audio curve. Summary of the Invention

[0003] In view of the shortcomings of the prior art, the purpose of this invention is to provide an efficient parametric equalizer curve drawing method and processing terminal, which can solve the problems described in the background art.

[0004] The technical solution to achieve the objective of this invention is: an efficient method for drawing parametric equalizer curves, comprising the following steps:

[0005] Step 1: Preset N sets of parametric equalization parameters with different values, N≥2. Generate parametric equalization audio curves based on the parametric equalization parameters. One set of parametric equalization parameters corresponds to one parametric equalization audio curve. Different sets of parametric equalization parameters correspond to different parametric equalization audio curves, thus forming N initial parametric equalization audio curves. In the parametric equalization audio curves, the sampling frequency is used as the horizontal axis and the audio gain is used as the vertical axis.

[0006] Step 2: For each initial parametric equalization audio curve, divide the parametric equalization audio curve into M segments according to the x-axis from smallest to largest. In each segment, select the sampling frequency as the x-axis according to the corresponding interval size, calculate the audio gain corresponding to each x-axis, and thus generate N final parametric equalization audio curves. Each parametric equalization audio curve includes M curve segments connected end to end. The beginning of the first curve segment and the end of the last curve segment are not connected.

[0007] Step 3: Calculate the corresponding ordinate based on each x-axis, and sum the ordinates corresponding to the same x-axis of each final parametric equalization audio curve to superimpose the final parametric equalization audio curves together to form a single parametric equalization audio curve.

[0008] Step 4: Load the complete audio curve into the canvas of the interface control to obtain the audio curve of the parametric equalizer.

[0009] Furthermore, the sampling frequency range is 0Hz–48000Hz.

[0010] Furthermore, with M = 7, the sampling frequency of 0 ≤ X ≤ 20 Hz is taken as the first segment, and X represents the sampling frequency as the horizontal axis. 20 Hz < X ≤ 400 Hz is the second segment, 400 Hz < X ≤ 1000 Hz is the third segment, 1000 Hz < X ≤ 2000 Hz is the fourth segment, 2000 Hz < X ≤ 10000 Hz is the fifth segment, 10000 Hz < X ≤ 20000 Hz is the sixth segment, and 20000 Hz < X ≤ 48000 Hz is the seventh segment.

[0011] Furthermore, the horizontal coordinate interval size of the first segment is K1=1, the horizontal coordinate interval size of the second segment is K2=2, the horizontal coordinate interval size of the third segment is K3=4, the horizontal coordinate interval size of the fourth segment is K4=10, the horizontal coordinate interval size of the fifth segment is K5=40, the horizontal coordinate interval size of the sixth segment is K6=80, and the horizontal coordinate interval size of the seventh segment is K7=300.

[0012] Furthermore, in ascending order of the horizontal coordinates, the range of the horizontal coordinate span of each segment increases sequentially.

[0013] Furthermore, in the first segment of segment M, the gain value corresponding to each horizontal coordinate as the vertical coordinate is set to 0. In each of the remaining horizontal coordinate segments, the corresponding audio gain value is calculated based on the horizontal coordinate using an audio algorithm, thereby obtaining the vertical coordinate corresponding to each horizontal coordinate.

[0014] Furthermore, the interface control is a WPF-based interface control. If the canvas does not contain pointCollects, then pointCollects is added to the canvas first, and then the complete audio curve is loaded.

[0015] A processing terminal, comprising:

[0016] Memory, used to store program instructions;

[0017] A processor for running the program instructions to perform the steps of the efficient parametric equalizer curve plotting method.

[0018] The beneficial effects of this invention are as follows: Compared with the existing audio curve generation method of parametric equalizer, this invention requires less data processing, loads the audio curve on the interface faster, responds more quickly, and does not cause interface lag. Attached Figure Description

[0019] Figure 1 This is a schematic diagram of the process of the present invention;

[0020] Figure 2 This is a schematic diagram of the processing terminal. Detailed Implementation

[0021] The present invention will now be further described with reference to the accompanying drawings and specific embodiments:

[0022] like Figure 1 As shown, an efficient method for plotting parametric equalizer curves includes the following steps:

[0023] Step 1: Set N sets of parametric equalization parameters with different preset values, N≥2. Generate parametric equalization audio curves based on the parametric equalization parameters. One set of parametric equalization parameters corresponds to one parametric equalization audio curve. Different sets of parametric equalization parameters correspond to different parametric equalization audio curves, thus forming N initial parametric equalization audio curves. In the parametric equalization audio curves, the sampling frequency is used as the horizontal axis and the audio gain is used as the vertical axis.

[0024] Parametric equalization parameters include center frequency, audio gain, and quality factor. These parameters are existing technologies, and generating parametric equalization audio curves based on these parameters is also an existing technology, so they will not be elaborated here.

[0025] In one alternative implementation, the sampling frequency ranges from 0 Hz to 48000 Hz, and N = 8, 15, or 20.

[0026] Step 2: For each initial parametric equalization (PEE) audio curve, divide the PEE audio curve into M segments according to the x-axis from smallest to largest. In each segment, select the sampling frequency as the x-axis according to the corresponding interval size, and in the order of the x-axis from smallest to largest, the interval size of the x-axis of each segment increases sequentially. Calculate the audio gain corresponding to each x-axis to generate N final PEE audio curves. Each PEE audio curve includes M curve segments connected end to end. The beginning of the first curve segment and the end of the last curve segment are not connected.

[0027] In this step, we assume M = 7, and the sampling frequency is 0Hz–48000Hz, meaning the sampling frequency is divided into 7 segments based on the sampling frequency used as the horizontal axis, from smallest to largest. For example, the sampling frequency 0 ≤ X ≤ 20Hz is the first segment, where X represents the sampling frequency on the horizontal axis; 20Hz < X ≤ 400Hz is the second segment; 400Hz < X ≤ 1000Hz is the third segment; 1000Hz < X ≤ 2000Hz is the fourth segment; 2000Hz < X ≤ 10000Hz is the fifth segment; 10000Hz < X ≤ 20000Hz is the sixth segment; and 20000Hz < X ≤ 48000Hz is the seventh segment. The horizontal axis interval for the first segment is K1 = 1, meaning a sampling frequency is taken as the horizontal axis every 1Hz. The horizontal axis interval for the second segment is K2 = 2, meaning a sampling frequency is taken as the horizontal axis every 2Hz. The horizontal axis interval for the third segment is K3 = 4, meaning a sampling frequency is taken as the horizontal axis every 4 Hz. The horizontal axis interval for the fourth segment is K4 = 10, meaning a sampling frequency is taken as the horizontal axis every 10 Hz. The horizontal axis interval for the fifth segment is K5 = 40, meaning a sampling frequency is taken as the horizontal axis every 40 Hz. The horizontal axis interval for the sixth segment is K6 = 80, meaning a sampling frequency is taken as the horizontal axis every 80 Hz. The horizontal axis interval for the seventh segment is K7 = 300, meaning a sampling frequency is taken as the horizontal axis every 300 Hz.

[0028] In one optional implementation, the range of the x-coordinates increases sequentially from smallest to largest. For example, the range of the x-coordinates for the first segment is 20 (20 - 0 = 20), the range of the x-coordinates for the second segment is 380, the range of the x-coordinates for the third segment is 600, and so on.

[0029] In one optional implementation, the first x-axis segment, since its y-axis is 0, can have any value for its x-axis interval. That is, any value for the x-axis interval does not affect the audio curve corresponding to that x-axis segment, which is always a straight line on the X-axis.

[0030] In another alternative implementation, in the first segment of the M segments, the gain value corresponding to each horizontal coordinate as the vertical coordinate is set to 0. In each of the remaining horizontal coordinate segments, the corresponding audio gain value is calculated based on the horizontal coordinate using a parametric equalization audio algorithm (existing technology), thereby obtaining the vertical coordinate corresponding to each horizontal coordinate.

[0031] Step 3: Calculate the corresponding ordinate based on each x-axis, and sum the ordinates corresponding to the same x-axis of each final parametric equalization audio curve (i.e., sum them up) to superimpose the final parametric equalization audio curves together to form a single parametric equalization audio curve.

[0032] Step 4: Load the complete audio curve into the canvas of the interface control to obtain the audio curve of the parametric equalizer.

[0033] In an optional implementation, the interface control is a WPF-based interface control. If the canvas does not contain pointCollects, then pointCollects is added to the canvas first, and then the complete audio curve is loaded, making the audio curve more vivid, prominent, and colorful.

[0034] Compared to existing audio curve generation methods for parametric equalizers, this invention requires less data processing, loads the audio curve onto the interface faster, responds more quickly, and avoids interface lag.

[0035] like Figure 2 As shown, the present invention also provides a processing terminal 100, which includes:

[0036] Memory 101 is used to store program instructions;

[0037] Processor 102 is configured to run the program instructions to perform the steps of the efficient parametric equalizer curve plotting method.

[0038] The embodiments disclosed in this specification are merely illustrative of one aspect of the invention, and the scope of protection of the invention is not limited to these embodiments. Any other functionally equivalent embodiments fall within the scope of protection of the invention. Those skilled in the art can make various other corresponding changes and modifications based on the technical solutions and concepts described above, and all such changes and modifications should fall within the scope of protection of the claims of this invention.

Claims

1. A highly efficient method for plotting parametric equalizer curves, characterized in that, Includes the following steps: Step 1: Preset N sets of parametric equalization parameters with different values, N≥2. Generate parametric equalization audio curves based on the parametric equalization parameters. One set of parametric equalization parameters corresponds to one parametric equalization audio curve. Different sets of parametric equalization parameters correspond to different parametric equalization audio curves, thus forming N initial parametric equalization audio curves. In the parametric equalization audio curves, the sampling frequency is used as the horizontal axis and the audio gain is used as the vertical axis. Step 2: For each initial parametric equalization audio curve, divide the parametric equalization audio curve into M segments according to the x-axis from smallest to largest. In each segment, select the sampling frequency as the x-axis according to the corresponding interval size, calculate the audio gain corresponding to each x-axis, and thus generate N final parametric equalization audio curves. Each parametric equalization audio curve includes M curve segments connected end to end. The beginning of the first curve segment and the end of the last curve segment are not connected. Step 3: Calculate the corresponding ordinate based on each x-axis, and sum the ordinates corresponding to the same x-axis of each final parametric equalization audio curve to superimpose the final parametric equalization audio curves together to form a single parametric equalization audio curve. Step 4: Load the complete audio curve into the canvas of the interface control to obtain the audio curve of the parametric equalizer.

2. The efficient parametric equalizer curve plotting method according to claim 1, characterized in that, The sampling frequency range is 0Hz–48000Hz.

3. The efficient parametric equalizer curve plotting method according to claim 1, characterized in that, With M=7, the sampling frequency of 0≤X≤20Hz is taken as the first segment, and X represents the sampling frequency as the horizontal axis. 20Hz<X≤400Hz is the second segment, 400Hz<X≤1000Hz is the third segment, 1000Hz<X≤2000Hz is the fourth segment, 2000Hz<X≤10000Hz is the fifth segment, 10000Hz<X≤20000Hz is the sixth segment, and 20000Hz<X≤48000Hz is the seventh segment.

4. The efficient parametric equalizer curve plotting method according to claim 3, characterized in that, The horizontal coordinate interval of the first segment is K1=1, the horizontal coordinate interval of the second segment is K2=2, the horizontal coordinate interval of the third segment is K3=4, the horizontal coordinate interval of the fourth segment is K4=10, the horizontal coordinate interval of the fifth segment is K5=40, the horizontal coordinate interval of the sixth segment is K6=80, and the horizontal coordinate interval of the seventh segment is K7=300.

5. The efficient parametric equalizer curve plotting method according to claim 1, characterized in that, The range of the x-coordinates increases sequentially from smallest to largest.

6. The efficient parametric equalizer curve plotting method according to claim 1, characterized in that, In the first segment of segment M, the gain value corresponding to each horizontal axis as the vertical axis is set to 0. In each of the remaining horizontal axes, the corresponding audio gain value is calculated based on the horizontal axis and using an audio algorithm, thus obtaining the vertical axis corresponding to each horizontal axis.

7. The efficient parametric equalizer curve plotting method according to claim 1, characterized in that, The interface control is a WPF-based interface control. If the canvas does not contain pointCollects, then pointCollects is added to the canvas first, and then the complete audio curve is loaded.

8. A processing terminal, characterized in that, It includes: Memory, used to store program instructions; A processor for running the program instructions to perform the steps of the efficient parametric equalizer curve plotting method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Wireless adjustment method for parameter equalizer

    CN106507274A

  • Multimedia data processing method and device

    CN106601268A