A real-time EQ curve forming method based on a mobile terminal

By dividing the frequency band into multiple parts and using a polygon method to draw the EQ curve, the problems of discontinuous EQ curves and high computational load on mobile terminals are solved, achieving fast and smooth EQ curve display and improving user experience.

CN116417004BActive Publication Date: 2026-07-24GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGZHOU BAOLUN ELECTRONICS CO LTD
Filing Date
2023-04-26
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

Existing technologies, when generating EQ curves, suffer from algorithms that result in inconsistent low-frequency bands and excessive computation in high-frequency bands, leading to display delays and stuttering on mobile devices, especially on phones with limited hardware resources, resulting in a poor user experience.

Method used

The frequency band is divided into the first, second, and third frequency bands. The number of frequency points is adjusted, and the EQ curve is drawn using the polygon method. The curve is then formed by superimposing control points. This is implemented on the Android terminal using the canvas.drawPath method.

Benefits of technology

Quickly generate smooth and consistent EQ curves on mobile devices, reducing computational load, improving display smoothness, and enhancing user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116417004B_ABST
    Figure CN116417004B_ABST
Patent Text Reader

Abstract

The application discloses a real-time EQ curve forming method based on a mobile terminal, which comprises the following steps: dividing frequency bands into a first frequency band, a second frequency band and a third frequency band in sequence according to the frequency from small to large, and determining the first frequency band, the second frequency band and the third frequency band as the initial frequency point quantity of the EQ curve horizontal coordinate respectively; determining the width of the EQ curve according to the resolution of the mobile terminal, and screening the frequency points from the third frequency point quantity again according to the width to obtain the final third frequency point quantity; taking the frequency point as the horizontal coordinate, the audio amplitude corresponding to the frequency point as the vertical coordinate, and adopting a polygon method to draw the EQ curve according to the total frequency point quantity of the first frequency point quantity, the second frequency point quantity and the final third frequency point quantity, so as to obtain the EQ curve. The application can quickly generate the EQ curve, and can more quickly and smoothly display the EQ curve due to smaller calculation quantity, and the formed EQ curve is more coherent and smooth.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer software technology, specifically a method for generating real-time EQ curves based on a mobile terminal. Background Technology

[0002] An EQ curve, also known as a frequency response curve, is a curve with frequency as the X-axis and sound amplitude (or simply amplitude) as the Y-axis. Currently, in generating EQ curves, the frequency points sampled are often arranged from low to high, with fewer sampling frequencies at lower frequencies and more at higher frequencies. However, the algorithm that generates the curve calculates based on equidistant X-axis coordinates. Typically, the EQ curve's frequency range is 0-24000Hz, with a point calculated every 0.5Hz. This results in the coordinate points calculated by the algorithm for the corresponding frequency band not corresponding to the actual sampled frequencies, making the resulting EQ curve appear disjointed and abrupt in some areas. Furthermore, for higher frequency bands, the large number of sampled frequencies requires significant computational power, causing a delay in real-time EQ curve generation and a stuttering effect, especially noticeable on mobile devices like smartphones with limited hardware resources, leading to a poor user experience. Summary of the Invention

[0003] In view of the shortcomings of the prior art, the purpose of this invention is to provide a real-time EQ curve generation method based on a mobile terminal, which can solve the problems described in the background art.

[0004] The technical solution to achieve the objective of this invention is: a method for generating a real-time EQ curve based on a mobile terminal, comprising the following steps:

[0005] Step 1: Divide the frequency band into the first band, the second band, and the third band in order of increasing frequency. Determine the number of initial frequency points for the first band, the second band, and the third band as the horizontal axis of the EQ curve, and record them as the number of first frequency points, the number of second frequency points, and the number of third frequency points, respectively. 1 < the ratio of the number of third frequency points to the number of first frequency points < the preset threshold.

[0006] Step 2: Determine the width of the EQ curve based on the resolution of the mobile terminal. The width is the pixel width from the start point to the end point of the EQ curve in the X-axis direction. Based on the width, filter the frequency points again from the number of third frequency points to obtain the final number of third frequency points. The final number of third frequency points is less than the number of third frequency points.

[0007] Step 3: Based on the total number of frequency points (first frequency point, second frequency point, and final third frequency point), plot the EQ curve using a polygon method with the frequency points as the x-axis and the corresponding audio amplitude as the y-axis, thus obtaining the EQ curve.

[0008] Furthermore, the mobile terminal is an Android terminal, which calls the canvas.drawPath method to implement the polygon method to draw the EQ curve.

[0009] Furthermore, in the process of drawing the EQ curve using the polygon method, several control points are calculated, each control point corresponds to one curve, and all the curves are superimposed to obtain the final curve as the EQ curve.

[0010] Furthermore, in an optional implementation, the area enclosed by the EQ curve and the horizontal axis is filled with color so that the EQ curve is displayed with a background color.

[0011] The beneficial effects of this invention are as follows: This invention can quickly generate EQ curves for mobile terminals such as mobile phones with relatively low performance, and because the amount of computation is smaller, the EQ curves can be displayed faster and more smoothly, and the resulting EQ curves are more coherent and smoother. Attached Figure Description

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

[0013] Figure 2 This is a schematic diagram of how the final EQ curve is generated based on the curves corresponding to each control point. Detailed Implementation

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

[0015] like Figures 1-2 As shown, a method for generating a real-time EQ curve based on a mobile terminal includes the following steps:

[0016] Step 1: Divide the frequency bands into three bands in ascending order of frequency: the first band, the second band, and the third band. Determine the initial number of frequency points for the first, second, and third bands as the x-axis of the EQ curve, and record them as the number of first, second, and third frequency points, respectively. The ratio of the initial number of frequency points in the third band to the initial number of frequency points in the first band must be less than 1, meaning the number of frequency points in the third band must be greater than the number of frequency points in the first band. Furthermore, the difference between the number of frequency points in the third band and the number of frequency points in the first band should not be too large to avoid having too few frequency points in lower frequency bands and too many frequency points in higher frequency bands. Since the first and third bands are separated by the second band, this embodiment limits the relationship between the number of frequency points in the first and third bands, but does not limit the number of frequency points in the second band.

[0017] In this step, for example, 0-50Hz can be divided into the first frequency band, 1000Hz-24000Hz into the third frequency band, and the remaining frequency band into the second frequency band. There are 1000 frequency points in the first frequency band and 8310 frequency points in the third frequency band.

[0018] Step 2: Determine the width of the EQ curve based on the resolution of the mobile terminal (e.g., mobile phone). The width is the pixel width from the start point to the end point of the EQ curve in the X-axis direction, which is also the number of pixels. Based on the width, filter the frequency points again from the number of third frequency points to obtain the final number of third frequency points. The final number of third frequency points is less than the number of third frequency points.

[0019] In this step, for mobile phones with a resolution such as 1440*1080, in landscape and full-screen mode, generally only 2500 frequency points need to be extracted from the third frequency points as the final number of third frequency points, further reducing the amount of calculation and rendering processing. The precision of the EQ curve can be further adjusted according to the actual situation, including the final number of third frequency points.

[0020] Step 3: Based on the total number of frequency points (first, second, and final third frequency points), plot the EQ curve using a polygon method with the frequency points as the x-axis and the corresponding audio amplitude as the y-axis. This will generate the required EQ curve in real time on the mobile terminal.

[0021] In this step, for Android mobile terminals, the canvas.drawPath method can be called to draw the EQ curve using the polygon method.

[0022] refer to Figure 2In the process of drawing the EQ curve using the polygon method, several control points are calculated, each corresponding to a curve. All the curves are then superimposed to obtain the final curve, which is used as the EQ curve. For example, Figure 2 There are four curves, each with a corresponding control point. By matching the four curves with their horizontal coordinates and superimposing their vertical coordinates, the middle part is obtained, which is the EQ curve.

[0023] In an alternative implementation, the area enclosed by the EQ curve and the horizontal axis is further filled with color to display the EQ curve with a background color.

[0024] This invention can quickly generate EQ curves for mobile terminals such as smartphones that have relatively low performance. Due to the smaller computational load, the EQ curves can be displayed faster and more smoothly, resulting in more coherent and smoother EQ curves.

[0025] 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 method for generating a real-time EQ curve based on a mobile terminal, characterized in that, Includes the following steps: Step 1: Divide the frequency band into the first band, the second band, and the third band in order of increasing frequency. Determine the number of initial frequency points for the first band, the second band, and the third band as the horizontal axis of the EQ curve, and record them as the number of first frequency points, the number of second frequency points, and the number of third frequency points, respectively. 1 < the ratio of the number of third frequency points to the number of first frequency points < the preset threshold. Step 2: Determine the width of the EQ curve based on the resolution of the mobile terminal. The width is the pixel width from the start point to the end point of the EQ curve in the X-axis direction. Based on the width, filter the frequency points again from the number of third frequency points to obtain the final number of third frequency points. The final number of third frequency points is less than the number of third frequency points. Step 3: Based on the total number of frequency points (first, second, and final third frequency points), plot the EQ curve using a polygon method, with the frequency points as the x-axis and the corresponding audio amplitude as the y-axis. In the process of drawing the EQ curve using the polygon method, several control points are calculated, each control point corresponds to one curve, and all the curves are superimposed to obtain the final curve as the EQ curve.

2. The method for generating a real-time EQ curve based on a mobile terminal according to claim 1, characterized in that, The mobile terminal is an Android terminal, which calls the canvas.drawPath method to draw the EQ curve using the polygon method.

3. The method for generating a real-time EQ curve based on a mobile terminal according to claim 1, characterized in that, In an alternative implementation, the area enclosed by the EQ curve and the horizontal axis is further filled with color to display the EQ curve with a background color.