Light display method and device, terminal equipment and storage medium
By performing time-domain and frequency-domain analysis of the audio data, corresponding charts are generated, and lighting effects are matched based on these characteristics, the problem of mismatch between music and light in the prior art is solved, and a more vivid music experience is achieved.
Patent Information
- Application Number
- CN202311754709.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-18
- Publication Date
- 2025-06-20
AI Technical Summary
When controlling light display according to music rhythm, the prior art has problems of inaccurate identification and analysis, time delay and unnatural lighting changes, which affect the user experience.
By acquiring audio data, analyzing its time domain characteristics and frequency domain characteristics, generating time domain maps and frequency domain maps, and dividing frequency according to the preset average law, matching the corresponding lighting effects for display.
It realizes a more vivid and intuitive music experience, provides diversified visual effects, enhances user perception and interactive experience, and solves the problem of lighting effects not matching music.
Smart Images

Figure CN120186852A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of lighting control, and particularly to a lighting display method, device, terminal device, and storage medium. Background Art
[0002] Currently, in addition to serving as a lighting function to assist the safe driving of vehicles, vehicle lights can also create an atmosphere by adjusting the color, brightness, etc. of the lights. In the prior art, there is a method of controlling the lighting display according to the rhythm of music, which has a very important impact on aspects such as creating an atmosphere for people and improving the quality of life.
[0003] In order to achieve the control of lighting display according to the rhythm of music, the most important link is to identify and analyze the music. If the relevant music recognition algorithm cannot accurately capture features such as the rhythm or beat of the music, it will lead to a mismatch between the lighting effect and the music, affecting the performance of the subsequent lighting effect. Or limited by the vehicle hardware conditions, there is a method of establishing an intermediate control unit to collect sound, analyze and process it, and then control the lights. However, this method has latency and inaccuracy, the linear change of the lights is not natural, the flexibility is poor, and display errors are likely to occur.
[0004] Therefore, it is necessary to propose a solution that can improve the lighting display effect according to the rhythm of music. Summary of the Invention
[0005] The main purpose of this application is to provide a lighting display method, device, terminal device, and storage medium, aiming to improve the lighting display effect according to the rhythm of music and enhance the user experience.
[0006] To achieve the above object, this application provides a lighting display method, which includes the following steps:
[0007] Obtain audio data;
[0008] Analyze the time-domain features and frequency-domain features of the audio data to obtain an analysis result;
[0009] Match the corresponding lights for display according to the analysis result.
[0010] Optionally, before the step of analyzing the time-domain features and frequency-domain features of the audio data to obtain an analysis result, it includes:
[0011] Identify the file format of the audio data to obtain the file format of the audio data;
[0012] Match the corresponding decoding algorithm according to the file format;
[0013] Parse the audio data according to the decoding algorithm to obtain the original vibration data of the audio data, so as to analyze the time-domain characteristics and frequency-domain characteristics of the audio data based on the original vibration data and obtain an analysis result.
[0014] Optionally, the step of analyzing the time-domain characteristics and frequency-domain characteristics of the audio data to obtain an analysis result includes:
[0015] Generate a time-domain graph of the audio data based on the original vibration data;
[0016] Perform a fast Fourier transform on the amplitude in the time-domain graph to obtain a frequency-domain graph of the audio data;
[0017] Perform frequency division on the frequency-domain graph according to a preset equal temperament to obtain the analysis result.
[0018] Optionally, the step of performing frequency division on the frequency-domain graph according to a preset equal temperament to obtain the analysis result includes:
[0019] Perform frequency division on the frequency-domain graph based on a first preset equal temperament to obtain a light curtain control grouping result; and / or
[0020] Perform frequency division on the frequency-domain graph based on a second preset equal temperament to obtain a pitch range grouping result.
[0021] Optionally, the step of matching corresponding lights for display according to the analysis result includes:
[0022] Match the lights at the corresponding positions for display according to the analysis result; and / or
[0023] Match the lights in the corresponding scene mode for display according to the analysis result.
[0024] Optionally, the step of matching the lights at the corresponding positions for display according to the analysis result includes:
[0025] Control the interactive lights at the corresponding positions for display according to the light curtain control grouping result; and / or
[0026] Control the pitch range light groups at the corresponding positions for display according to the pitch range grouping result.
[0027] Optionally, the step of matching the lights in the corresponding scene mode for display according to the analysis result includes:
[0028] Control the interactive lights in the corresponding scene mode for display according to the light curtain control grouping result; and / or
[0029] Control the pitch range light groups in the corresponding scene mode for display according to the pitch range grouping result.
[0030] An embodiment of the present application further provides a lighting display device, which includes:
[0031] An acquisition module, configured to acquire audio data;
[0032] An analysis module, configured to analyze the time-domain features and frequency-domain features of the audio data to obtain an analysis result;
[0033] A display module, configured to match a corresponding lamp for display according to the analysis result.
[0034] An embodiment of the present application further provides a terminal device, which includes a memory, a processor, and a lighting display program stored on the memory and executable on the processor. When the lighting display program is executed by the processor, the steps of the lighting display method described above are implemented.
[0035] An embodiment of the present application further provides a computer-readable storage medium, on which a lighting display program is stored. When the lighting display program is executed by a processor, the steps of the lighting display method described above are implemented.
[0036] The lighting display method, device, terminal device, and storage medium provided by the embodiments of the present application obtain audio data; analyze the time-domain features and frequency-domain features of the audio data to obtain an analysis result; match a corresponding lamp for display according to the analysis result. By converting audio data into a visual lighting effect, a more vivid and intuitive music experience can be provided for users. By matching different lighting effects, diverse visual effects can be presented, combined with the characteristic factors of different music, enhancing the user's perception and interactive experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a schematic diagram of the functional modules of the terminal device to which the lighting display device of the present application belongs;
[0038] Figure 2 It is a schematic flowchart of the first exemplary embodiment of the lighting display method of the present application;
[0039] Figure 3 It is a schematic flowchart of the second exemplary embodiment of the lighting display method of the present application;
[0040] Figure 4 It is a schematic flowchart of the third exemplary embodiment of the lighting display method of the present application;
[0041] Figure 5 It is a schematic flowchart of the fourth exemplary embodiment of the lighting display method of the present application;
[0042] Figure 6 It is a schematic flowchart of the fifth exemplary embodiment of the lighting display method of the present application;
[0043] Figure 7 It is a schematic flowchart of the sixth exemplary embodiment of the lighting display method of the present application;
[0044] Figure 8 It is a schematic flowchart of the seventh exemplary embodiment of the lighting display method of the present application;
[0045] Figure 9 It is the lighting control display design table in the lighting display method of the present application;
[0046] Figure 10 It is the introduction table of the interactive light display mode grouping in the lighting display method of the present application.
[0047] The realization, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. Detailed Embodiments
[0048] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0049] The main solution of the embodiments of the present application is: by acquiring audio data; analyzing the time-domain features and frequency-domain features of the audio data to obtain an analysis result; and matching a corresponding lamp for display according to the analysis result. By converting audio data into a visual lighting effect, a more vivid and intuitive music experience can be provided for users. By matching different lighting effects, diverse visual effects can be presented, and combined with the characteristic factors of different music, the user's perception and interactive experience can be enhanced.
[0050] The embodiments of the present application consider that in order to control the lighting display according to the rhythm of music, the most important link is to identify and analyze the music. If the relevant music recognition algorithm cannot accurately capture the features such as the rhythm or beat of the music, it will lead to the mismatch between the lighting effect and the music, affecting the subsequent performance of the lighting effect. Or limited by the vehicle hardware conditions, there is a method of establishing an intermediate control unit to collect sound and then analyze and process it to control the lighting, but this method has problems of latency and inaccuracy, the linear change of the lighting is not natural, the flexibility is poor and display errors are likely to occur.
[0051] Therefore, the solution of the embodiments of the present application can provide a more vivid and intuitive music experience for users by converting audio data into a visual lighting effect, present diverse visual effects by matching different lighting effects, and enhance the user's perception and interactive experience by combining the characteristic factors of different music.
[0052] Specifically, referring toFigure 1 , Figure 1 This is a schematic diagram of the functional modules of the terminal device to which the light display device of the present application belongs. The light display device can be a device that is independent of the terminal device and can perform audio data analysis and control the light display. It can be carried on the terminal device in the form of hardware or software. The terminal device can be an intelligent mobile terminal with data processing functions such as a mobile phone or a tablet computer, or a fixed terminal device or a server with data processing functions, etc.
[0053] In this embodiment, the terminal device to which the light display device belongs at least includes an output module 110, a processor 120, a memory 130, and a communication module 140.
[0054] The memory 130 stores an operating system and a light display program. The light display device can store audio data, the time-domain graph of the audio data, and the frequency-domain graph of the audio data in the memory 130; the output module 110 can be a display screen, etc. The communication module 140 can include a WIFI module, a mobile communication module, a Bluetooth module, etc., and communicates with external devices or servers through the communication module 140.
[0055] Among them, when the light display program in the memory 130 is executed by the processor, the following steps are implemented:
[0056] Obtain audio data;
[0057] Analyze the time-domain characteristics and frequency-domain characteristics of the audio data to obtain an analysis result;
[0058] Match the corresponding light according to the analysis result for display.
[0059] Further, when the light display program in the memory 130 is executed by the processor, the following steps are implemented:
[0060] Identify the file format of the audio data to obtain the file format of the audio data;
[0061] Match the corresponding decoding algorithm according to the file format;
[0062] Parse the audio data according to the decoding algorithm to obtain the original vibration data of the audio data, so as to analyze the time-domain characteristics and frequency-domain characteristics of the audio data according to the original vibration data to obtain an analysis result.
[0063] Further, when the light display program in the memory 130 is executed by the processor, the following steps are implemented:
[0064] Generate the time-domain graph of the audio data according to the original vibration data;
[0065] Perform a fast Fourier transform on the amplitude in the time-domain graph to obtain the frequency-domain graph of the audio data;
[0066] Perform frequency division on the frequency-domain graph according to a preset equal temperament to obtain the analysis result.
[0067] Further, when the lighting display program in the memory 130 is executed by the processor, the following steps are implemented:
[0068] Perform frequency division on the frequency-domain graph based on a first preset equal temperament to obtain a light screen control grouping result; and / or
[0069] Perform frequency division on the frequency-domain graph based on a second preset equal temperament to obtain a pitch range grouping result.
[0070] Further, when the lighting display program in the memory 130 is executed by the processor, the following steps are implemented:
[0071] Match the lights at the corresponding positions for display according to the analysis result; and / or
[0072] Match the lights in the corresponding scene mode for display according to the analysis result.
[0073] Further, when the lighting display program in the memory 130 is executed by the processor, the following steps are implemented:
[0074] Control the interactive lights at the corresponding positions for display according to the light screen control grouping result; and / or
[0075] Control the pitch range light groups at the corresponding positions for display according to the pitch range grouping result.
[0076] Further, when the lighting display program in the memory 130 is executed by the processor, the following steps are implemented:
[0077] Control the interactive lights in the corresponding scene mode for display according to the light screen control grouping result; and / or
[0078] Control the pitch range light groups in the corresponding scene mode for display according to the pitch range grouping result.
[0079] Based on the above terminal device architecture but not limited to the above architecture, the method embodiments of the present application are proposed.
[0080] Refer to Figure 2 , Figure 2 is a schematic flowchart of the first exemplary embodiment of the lighting display method of the present application. The lighting display method includes:
[0081] Step S100, obtain audio data;
[0082] The execution subject of the method in this embodiment can be a lighting display device, or a lighting display terminal device or server. In this embodiment, a lighting display device is taken as an example, and this lighting display device can be integrated on terminal devices such as smart phones and tablets with data processing functions.
[0083] The solution in this embodiment mainly provides an algorithm that can improve the control of lighting display effects according to music rhythm and enhance the user experience.
[0084] Specifically, the audio data can be obtained by using a recording device to record the on-site sound or by acquiring pre-recorded audio data. The audio data can include the sounds in the surrounding environment and music, or the music after removing the surrounding environment sounds, etc. Automatically obtain the audio file containing the audio data stored in the preset location, and then analyze the audio data to extract relevant features and further match the corresponding lighting display effects.
[0085] Step S200: Analyze the time-domain features and frequency-domain features of the audio data to obtain an analysis result;
[0086] By analyzing, a time-domain graph of the audio data is obtained, including information such as amplitude, period, and duration, and the change of the audio data over time can be observed. And the audio data is transformed from the time domain to the frequency domain through the fast Fourier transform to obtain the spectrum information of the audio data. By analyzing the time-domain features and frequency-domain features, various characteristic parameters of the audio data can be obtained, such as volume, rhythm, pitch, or frequency distribution, etc. The analysis result can be the result of pitch range division or the result of music scene mode division, etc., which is used to match the corresponding lighting display effects to achieve the linkage effect of music and lighting.
[0087] Step S300: Match the corresponding lights for display according to the analysis result.
[0088] Specifically, analyze the time-domain features and frequency-domain features of the audio data, and match the relevant characteristic parameters obtained from the audio analysis with the pre-designed lighting effect scheme. For example, when the analysis result is the middle pitch range, the logo lights, fog lights, and turn signal lights of the rear lights are matched to be on. When the analysis result is the quiet mode, the lighting color is matched to be a warm light, and the preset lighting brightness value range corresponding to the quiet mode, etc.
[0089] In this embodiment, through the above solution, specifically, audio data is acquired; the time-domain features and frequency-domain features of the audio data are analyzed to obtain an analysis result; and the corresponding lights are matched for display according to the analysis result. By converting audio data into a visual lighting effect, a more vivid and intuitive music experience can be provided for users. By matching different lighting effects, diverse visual effects can be presented, and combined with the characteristic factors of different music, the user's perception and interactive experience can be enhanced.
[0090] Referring to Figure 3 , Figure 3 is a schematic flowchart of the second exemplary embodiment of the lighting display method of the present application. Based on the above Figure 2 shown embodiment, in this embodiment, before the step of analyzing the time-domain features and frequency-domain features of the audio data to obtain an analysis result, it includes:
[0091] Step S101, identifying the file format of the audio data to obtain the file format of the audio data;
[0092] Step S102, matching the corresponding decoding algorithm according to the file format;
[0093] Step S103, parsing the audio data according to the decoding algorithm to obtain the original vibration data of the audio data, so as to analyze the time-domain features and frequency-domain features of the audio data according to the original vibration data to obtain an analysis result.
[0094] Specifically, the file format of the processed audio data is identified because different audio data files may adopt different encoding methods and storage formats. Common audio file formats include MP3, WAV, FLAC, or AAC, etc. After determining the format of the audio file, the corresponding decoding algorithm is selected and matched for parsing. Different audio file formats require the use of corresponding decoding algorithms to correctly parse the original audio data. The audio data is parsed using the matched decoding algorithm to restore the audio data to the original audio vibration data. In this way, the original waveform information of the audio data can be obtained for subsequent audio processing and analysis.
[0095] In this embodiment, through the above solution, by using the matched decoding algorithm to identify and decode the file format of the audio data, the security and integrity of the audio data can be guaranteed, data errors and losses can be avoided, and it can be adapted and extended for different audio formats and decoding algorithms, improving the efficiency of audio processing and reducing processing time and resource consumption.
[0096] Further, referring to Figure 4 , Figure 4 is a schematic flowchart of the third exemplary embodiment of the lighting display method of the present application. Based on the aboveFigure 2 In the illustrated embodiment, in this embodiment, the steps of analyzing the time-domain characteristics and frequency-domain characteristics of the audio data to obtain an analysis result include:
[0097] Step S201: Generate a time-domain graph of the audio data according to the original vibration data;
[0098] Step S202: Perform a fast Fourier transform on the amplitude in the time-domain graph to obtain a frequency-domain graph of the audio data;
[0099] Step S203: Divide the frequency-domain graph according to a preset equal temperament to obtain the analysis result.
[0100] Specifically, the abscissa of the time-domain graph is time, and the ordinate is loudness. The calculation formula is:
[0101] Loudness = 20 × log10(sum(wave))
[0102] where wave is the original vibration data, and sum represents summation.
[0103] Through the fast Fourier transform, the time-domain graph can be quickly and accurately transformed into the frequency domain to obtain the corresponding frequency-domain graph. The frequency-domain graph reflects the variation of the audio data on the frequency axis and can analyze features such as the spectral structure and frequency distribution of the audio.
[0104] The equal temperament can be used to divide the frequency-domain graph according to a predetermined frequency range for further analysis and processing. By dividing the frequency-domain graph, information such as the amplitude magnitude and distribution in different frequency bands can be obtained, which helps to analyze features such as the pitch, timbre, and rhythm of the audio.
[0105] Through the above solution in this embodiment, by converting and analyzing the time-domain graph and the frequency-domain graph, the characteristics of the audio can be understood more comprehensively and deeply. Using the fast Fourier transform algorithm can efficiently convert the time-domain graph into the frequency domain, convert discrete time-domain data into continuous frequency-domain data, and improve the accuracy of data processing. Dividing the frequency-domain graph according to the preset equal temperament can simplify the complex spectral structure into individual frequency bands that are easy to analyze and process, which helps to further process and analyze the audio.
[0106] Further, referring to Figure 5 , Figure 5 is a schematic flowchart of the fourth exemplary embodiment of the lighting display method of the present application. Based on the above Figure 2 illustrated embodiment, in this embodiment, the steps of dividing the frequency-domain graph according to a preset equal temperament to obtain the analysis result include:
[0107] Step S2031, perform frequency division on the frequency domain graph based on the first preset equal temperament to obtain the light screen control grouping result; and / or
[0108] Step S2032, perform frequency division on the frequency domain graph based on the second preset equal temperament to obtain the pitch range grouping result.
[0109] Specifically, the first preset equal temperament can be set according to the control ability of the light screen controller. For example, if the light screen controller can control 8 rows of interactive lights, the first preset equal temperament can be set to 8, and the frequency domain graph is equally divided into 8 frequency intervals according to the first preset equal temperament, including 20 - 47 hz, 47 - 112 hz, 112 - 266 hz, 266 - 631 hz, 631 - 1495 hz, 1495 - 3544 hz, 3544 - 8400 hz, and 8400 - 19908 hz, to obtain 8 light screen control grouping results for subsequent lighting control. One or more lighting display control methods can be correspondingly set for each frequency interval.
[0110] The second preset equal temperament can be set according to the result of pitch range division. For example, if the pitch range is divided into 3 pitch ranges, including the bass range, the middle - range, and the treble range, the second preset equal temperament can be set to 3, and the frequency domain graph is equally divided into 3 frequency intervals according to the second preset equal temperament, including 20 hz - 200 hz, 200 - 2000 hz, and 2000 - 20000 hz, to obtain 3 pitch range grouping results for subsequent lighting control. One or more lighting display control methods can be correspondingly set for each frequency interval.
[0111] In this embodiment, through the above - mentioned solution, the frequency domain graph is divided according to different equal temperaments, which can clearly group the audio data in different frequency ranges, and can perform grouped customization processing according to specific application requirements, providing a clear target for subsequent processing and lighting display control, and improving the processing efficiency and accuracy of lighting display control.
[0112] Further, referring to Figure 6 , Figure 6 is the flowchart of the fifth exemplary embodiment of the lighting display method of the present application. Based on the above - mentioned Figure 2 shown embodiment, in this embodiment, the step of matching and displaying the corresponding lights according to the analysis result includes:
[0113] Step S301, match and display the lights at the corresponding positions according to the analysis result; and / or
[0114] Step S302, match and display the lights in the corresponding scenario mode according to the analysis result.
[0115] Specifically, as Figure 9 andFigure 10 As shown, according to the analysis result, signals in different pitch ranges are matched to different position lights and / or scene mode lights for light display. For example, when the analysis result is in the middle pitch range, the logo light, fog light, and turn signal light of the rear car lights are turned on. When the analysis result is in the quiet mode, the light color is matched to a warm light, and the preset light brightness value range corresponding to the quiet mode, etc. The analysis result is converted into specific light control and display effects. By matching the corresponding light positions and / or scene modes according to the analysis result, the lights can be made more coordinated and unified with the audio data, enhancing the audio-visual experience, and the analysis result also provides a basis for subsequent light control and adjustment.
[0116] Through the above solution in this embodiment, by matching the lights at the corresponding positions for display and / or matching the lights in the corresponding scene modes for display according to the analysis result, the matching requirements of different audio data can be met, precise and flexible light control can be achieved, creating a more diverse and layered light effect, and enhancing the user experience.
[0117] Further, referring to Figure 7 , Figure 7 is a flowchart of the sixth exemplary embodiment of the light display method of the present application. Based on the above Figure 2 shown embodiment, in this embodiment, the step of matching the lights at the corresponding positions for display according to the analysis result includes:
[0118] Step S3011, controlling the interactive lights at the corresponding positions for display according to the light curtain control grouping result; and / or
[0119] Step S3012, controlling the pitch range light group at the corresponding position for display according to the pitch range grouping result.
[0120] Specifically, as shown in Figure 9 and Figure 10 , controlling the corresponding interactive lights to be displayed in a specific manner according to the light curtain control grouping result. For example, the display mode 2 is progressive turn-on, and the display mode 4 is wipe-on turn-on from the inside out. Controlling the corresponding pitch range light group for display according to the pitch range grouping result. For example, the low pitch range light group may include the left high beam, right high beam, left low beam, and right low beam of the front car lights, and the left brake light and right brake light of the rear car lights. Controlling the interactive lights and / or pitch range light group at the corresponding position for display according to the light curtain control grouping result and / or pitch range grouping result. This can further enhance the light display effect and enhance the user experience.
[0121] Through the above solution, this embodiment specifies the interactive lights and sound range light groups at specific positions for display by the light screen control grouping result and / or the sound range grouping result, which can achieve precise control of the lights, ensure the matching effect between the light effect and the audio data, improve the quality and visualization effect of the light display, and enhance the user experience.
[0122] Further, referring to Figure 8 , Figure 8 is a schematic flowchart of the seventh exemplary embodiment of the light display method of this application. Based on the above Figure 2 shown embodiment, the step of displaying the lights corresponding to the matching scenario mode according to the analysis result includes:
[0123] Step S3021, controlling the interactive lights corresponding to the scenario mode to be displayed according to the light screen control grouping result; and / or
[0124] Step S3022, controlling the sound range light group corresponding to the scenario mode to be displayed according to the sound range grouping result.
[0125] Specifically, as shown in Figure 9 and Figure 10 , controlling the corresponding interactive lights to be displayed in a specific manner according to the light screen control grouping result. For example, display mode 3 is progressive turn-off, and display mode 5 is wipe-out turn-off from the inside out. Controlling the corresponding sound range light group to be displayed according to the sound range grouping result. For example, the high sound range light group may include the left turn signal and turn signal of the front vehicle lights, and the left position light, right position light, left reverse light, and right reverse light of the rear vehicle lights. Controlling the interactive lights and / or sound range light group corresponding to the scenario mode to be displayed according to the light screen control grouping result and / or the sound range grouping result. This can further enhance the effect of the light display and enhance the user experience.
[0126] Through the above solution, this embodiment specifies the interactive lights and sound range light groups at specific scenario modes for display by the light screen control grouping result and / or the sound range grouping result, which can achieve precise control of the lights, ensure the matching effect between the light effect and the audio data, improve the quality and visualization effect of the light display, and enhance the user experience.
[0127] In addition, an embodiment of this application also proposes a light display device, where the light display device includes:
[0128] An acquisition module, configured to acquire audio data;
[0129] An analysis module, configured to analyze the time domain characteristics and frequency domain characteristics of the audio data to obtain an analysis result;
[0130] A display module, configured to display the corresponding lights according to the analysis result.
[0131] For the principle and implementation process of realizing the light display in this embodiment, please refer to the above-mentioned embodiments, and details will not be described herein again.
[0132] In addition, an embodiment of the present application further provides a terminal device, which includes a memory, a processor, and a light display program stored on the memory and executable on the processor. When the light display program is executed by the processor, the steps of the light display method described above are implemented.
[0133] Since all the technical solutions of all the foregoing embodiments are adopted when the light display program is executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of all the foregoing embodiments, and details will not be described herein one by one.
[0134] In addition, an embodiment of the present application further provides a computer-readable storage medium, on which a light display program is stored. When the light display program is executed by the processor, the steps of the light display method described above are implemented.
[0135] Since all the technical solutions of all the foregoing embodiments are adopted when the light display program is executed by the processor, it has at least all the beneficial effects brought by all the technical solutions of all the foregoing embodiments, and details will not be described herein one by one.
[0136] Compared with the prior art, the light display method, device, terminal device, and storage medium proposed in the embodiments of the present application obtain audio data; analyze the time-domain characteristics and frequency-domain characteristics of the audio data to obtain an analysis result; and match a corresponding light for display according to the analysis result. By converting audio data into a visual light effect, a more vivid and intuitive music experience can be provided for users. By matching different light effects, diverse visual effects can be presented, combining the characteristic factors of different music to enhance the user's perception and interactive experience.
[0137] It should be noted that in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or system. Without further limitation, an element defined by the phrase "including one..." does not exclude the existence of additional identical elements in the process, method, article or system including that element.
[0138] The serial numbers of the embodiments of the present application above are only for description and do not represent the superiority or inferiority of the embodiments.
[0139] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases, the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium as described above (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, controlled terminal, or network device, etc.) to execute the methods of each embodiment of the present application.
[0140] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.
Claims
1. A lighting display method, characterized in that, The described lighting display method includes: Obtain audio data; Analyze the time-domain characteristics and frequency-domain characteristics of the audio data to obtain an analysis result; Match corresponding lights for display according to the analysis result.
2. The lighting display method according to claim 1, characterized in that, Before the step of analyzing the time-domain characteristics and frequency-domain characteristics of the audio data to obtain an analysis result, it includes: Identify the file format of the audio data to obtain the file format of the audio data; Match a corresponding decoding algorithm according to the file format; Parse the audio data according to the decoding algorithm to obtain the original vibration data of the audio data, so as to analyze the time-domain characteristics and frequency-domain characteristics of the audio data according to the original vibration data to obtain an analysis result.
3. The lighting display method according to claim 2, characterized in that, The step of analyzing the time-domain characteristics and frequency-domain characteristics of the audio data to obtain an analysis result includes: Generate a time-domain graph of the audio data according to the original vibration data; Perform a fast Fourier transform on the amplitude in the time-domain graph to obtain a frequency-domain graph of the audio data; Divide the frequency of the frequency-domain graph according to a preset equal temperament to obtain the analysis result.
4. The lighting display method according to claim 3, characterized in that, The step of dividing the frequency of the frequency-domain graph according to a preset equal temperament to obtain the analysis result includes: Divide the frequency of the frequency-domain graph based on a first preset equal temperament to obtain a light screen control grouping result; and / or Divide the frequency of the frequency-domain graph based on a second preset equal temperament to obtain a pitch range grouping result.
5. The lighting display method according to claim 4, characterized in that, The step of matching corresponding lights for display according to the analysis result includes: Match and display the lights at the corresponding positions according to the analysis result; and / or Match and display the lights in the corresponding scene mode according to the analysis result.
6. The lighting display method according to claim 5, characterized in that, The step of matching and displaying the lights at the corresponding positions according to the analysis result includes: Control the interactive lights at the corresponding positions to be displayed according to the light screen control grouping result; and / or Control the pitch range light groups at the corresponding positions to be displayed according to the pitch range grouping result.
7. The lighting display method according to claim 5, characterized in that, The step of matching and displaying the lights in the corresponding scene mode according to the analysis result includes: Control the interactive lights in the corresponding scene mode to be displayed according to the light screen control grouping result; and / or Control the pitch range light groups in the corresponding scene mode to be displayed according to the pitch range grouping result.
8. A lighting display device, characterized in that, The described lighting display device includes: An acquisition module for acquiring audio data; An analysis module for analyzing the time-domain characteristics and frequency-domain characteristics of the audio data to obtain an analysis result; A display module for matching corresponding lights for display according to the analysis result.
9. A terminal device, characterized in that, The terminal device includes a memory, a processor, and a lighting display program stored on the memory and executable on the processor. When the lighting display program is executed by the processor, the steps of the lighting display method described in any one of claims 1-7 are implemented.
10. A computer-readable storage medium, characterized in that, A lighting display program is stored on the computer-readable storage medium. When the lighting display program is executed by the processor, the steps of the lighting display method described in any one of claims 1-7 are implemented.