CN115520090A - Control method and device of light information, storage medium and equipment - Google Patents

Control method and device of light information, storage medium and equipment Download PDF

Info

Publication number
CN115520090A
CN115520090A CN202211377986.5A CN202211377986A CN115520090A CN 115520090 A CN115520090 A CN 115520090A CN 202211377986 A CN202211377986 A CN 202211377986A CN 115520090 A CN115520090 A CN 115520090A
Authority
CN
China
Prior art keywords
audio signal
signal
light
beat
audio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211377986.5A
Other languages
Chinese (zh)
Inventor
于飞
张鹤鹏
徐楠
赵淑明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingwei Hirain Tech Co Ltd
Original Assignee
Beijing Jingwei Hirain Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingwei Hirain Tech Co Ltd filed Critical Beijing Jingwei Hirain Tech Co Ltd
Priority to CN202211377986.5A priority Critical patent/CN115520090A/en
Publication of CN115520090A publication Critical patent/CN115520090A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60QARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
    • B60Q3/00Arrangement of lighting devices for vehicle interiors; Lighting devices specially adapted for vehicle interiors
    • B60Q3/80Circuits; Control arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses a control method and a device of light information, wherein the method comprises the following steps: acquiring an audio signal with beat characteristics obtained by processing an original audio signal; recognizing music beats contained in the audio signal by using preset judgment conditions, and dividing the audio signal into a plurality of sections of audio beat signals according to the recognized music beats; setting a light control strategy suitable for the audio signal according to the change of the energy value corresponding to each section of audio beat signal and the marking position of the energy value; and responding to a light control instruction, controlling the light brightness to change along with the change of the corresponding energy value of the audio beat signal according to a light brightness control strategy, and controlling the marking position of the energy value of the light color in each section of the audio beat signal to switch according to a light color control measurement strategy. By the method, the control of the light information can be realized, and the problems of low light response and low music beat fitting degree in the control process of the existing light information are solved.

Description

Control method and device of light information, storage medium and equipment
Technical Field
The invention relates to the technical field of vehicles, in particular to a light information control method and device.
Background
Along with the improvement of living standard, people have higher and higher requirements on riding experience, simple lighting atmosphere with fixed rhythm changes such as breathing or running water no longer meets market demands, and atmosphere lamps changing along with music rhythm become products more meeting the demands of people.
The control mode aiming at the atmosphere lamp information mainly comprises brightness and color, the fitness of the brightness and color response of the atmosphere lamp to music beats is an important standard for judging music rhythm atmosphere lamps, and some music rhythm atmosphere lamp products are on the market at present, and the control of the light information is realized mainly by performing frequency spectrum analysis on audio signals, such as short-time Fourier transform, and setting the mapping relation between the atmosphere lamp and the frequency spectrum. However, the method has higher requirements on hardware when applied, product cost is increased, atmosphere lamp products with music rhythm have higher requirements on sound sources, and the atmosphere lamp products can only adapt to music with specific styles, so that the response rhythm of the lamp light along with the change of the music is not obvious enough, and the response of the lamp light and the fitting degree of the music rhythm are not high.
Disclosure of Invention
The invention provides a control method and a control device of light information, which are used for identifying music beats in an audio signal and setting the light information according to the music beats, so that the light can be switched in color and brightness along with corresponding melody of music change, and the problems of low response of light and low joint degree of the music beats in the control process of the existing light information are solved. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for controlling lighting information, where the method includes:
acquiring a target audio signal with beat characteristics obtained by processing an original audio signal;
recognizing music beats contained in the target audio signal by using preset judgment conditions, and dividing the target audio signal into a plurality of sections of audio beat signals according to the recognized music beats;
generating a light control strategy suitable for the target audio signal according to the change of the energy value corresponding to each section of audio beat signal and the marking position of the energy value in each section of audio beat signal, wherein the light control strategy comprises a light brightness control strategy and a light color control strategy;
and responding to a light control instruction, controlling the light brightness to change along with the change of the energy value corresponding to each section of audio beat signal according to the light brightness control strategy, and controlling the marking position of the energy value of the light color in each section of audio beat signal to switch according to the light color control measurement strategy.
In one embodiment, the obtaining a target audio signal with beat characteristics obtained by processing an original audio signal includes:
amplifying the waveform characteristic points in the original audio signal by using a segmented continuous amplification mode to enhance the original audio signal;
and carrying out frequency segmentation on the amplified original audio signal to obtain a target audio signal with beat characteristics.
In one embodiment, the amplifying the waveform characteristic points in the original audio signal by using the piecewise continuous amplification to enhance the original audio signal includes:
determining an amplitude interval corresponding to an original audio signal, and dividing the amplitude interval into a plurality of amplitude level intervals according to the amplitude order, wherein the higher the amplitude level is, the larger the amplitude corresponding to a waveform feature point in the original audio signal in the amplitude level interval is;
setting an amplitude amplification coefficient aiming at waveform characteristic points in the original audio signal in different amplitude level intervals, and amplifying the waveform characteristic points in the original audio signal by using the amplitude amplification coefficient so as to enhance the amplitude of the original audio signal, wherein the amplitude amplification coefficient is smaller when the amplitude level interval is higher.
In one embodiment, the determining conditions include an energy determining condition and a time determining condition, and the identifying the music tempo contained in the target audio signal using the preset determining condition and dividing the target audio signal into a plurality of sections of audio tempo signals according to the identified music tempo includes:
taking the moment corresponding to the mark position of the energy value in the target audio signal as an initial moment, and judging whether the signal energy accumulated in a preset sampling period reaches a set energy threshold value by using an energy judgment condition, wherein the preset sampling period is a set number of sampling periods selected after the initial moment;
under the condition that the accumulated signal energy in the preset sampling period reaches the set energy threshold, judging whether a time interval is greater than a set time threshold by using a time judgment condition, wherein the time interval is a time difference value formed by the starting time and the current time;
and under the condition that the time interval is greater than the set time threshold, intercepting the audio signal corresponding to the starting time and the current time from the target audio signal as the music beat contained in the target audio signal, and dividing the target audio signal into a plurality of sections of audio beat signals according to the music beat.
In one embodiment, before the time corresponding to the mark position of the energy value in the target audio signal is taken as a starting time, and an energy determination condition is used to determine whether the signal energy accumulated in a preset sampling period reaches a set energy threshold, the method further includes:
and determining the peak position and the trough position in the target audio signal according to the amplitude change in the adjacent sampling periods in the target audio signal, and taking the trough position as the mark position of the energy value in the target audio signal.
In one embodiment, the generating a light control strategy suitable for the target audio signal according to the change of the energy value corresponding to each audio beat signal and the mark position of the energy value in each audio beat signal includes:
setting a nonlinear corresponding relation between the audio beat signals and the light brightness values according to the change of the energy values corresponding to each section of audio beat signals, and generating a light brightness control strategy suitable for the target audio signals according to the nonlinear corresponding relation;
and when the target audio signal is executed to the mark position of the energy value in each audio beat signal, randomly selecting a color value from the light color table as the light color correspondingly output by each music beat signal, and generating a light color degree control strategy suitable for the target audio signal according to the light color correspondingly output by each music beat signal.
In an embodiment, the setting a nonlinear correspondence between an audio beat signal and a light brightness value according to a change in a corresponding energy value of each audio beat signal, and generating a light brightness control strategy suitable for the target audio signal according to the nonlinear correspondence includes:
dividing a plurality of energy value intervals according to the change of the energy value corresponding to each section of audio beat signal;
setting a brightness value upper limit for each energy value interval, and performing light brightness mapping on each energy value interval by taking the brightness upper limit as a mapping boundary to obtain a nonlinear corresponding relation between each section of audio beat signal and a light brightness value;
and converting the nonlinear corresponding relation between each section of audio beat signal and the light brightness value into a light brightness curve corresponding to each section of audio beat signal, and generating a light brightness control strategy suitable for the target audio signal by combining the light brightness curve corresponding to each section of audio signal.
In a second aspect, an embodiment of the present invention provides a device for controlling light information, where the device includes:
the acquisition unit is used for acquiring a target audio signal with beat characteristics, which is obtained by processing an original audio signal;
the dividing unit is used for identifying the music beats contained in the target audio signal by using a preset judgment condition and dividing the target audio signal into a plurality of sections of audio beat signals according to the identified music beats;
the generating unit is used for generating a light control strategy suitable for the target audio signal according to the change of the energy value corresponding to each section of audio beat signal and the marking position of the energy value in each section of audio beat signal, wherein the light control strategy comprises a light brightness control strategy and a light color control strategy;
and the control unit is used for responding to a light control instruction, controlling the light brightness to change along with the change of the energy value corresponding to each section of audio beat signal according to the light brightness control strategy, and controlling the marking position of the energy value of the light color in each section of audio beat signal to switch according to the light color control measurement strategy.
In one embodiment, the acquisition unit includes:
the processing module is used for amplifying the waveform characteristic points in the original audio signal in a segmented continuous amplification mode so as to enhance the original audio signal;
and the segmenting module is used for carrying out frequency segmentation on the amplified original audio signal to obtain a target audio signal with beat characteristics.
In an embodiment, the processing module is specifically configured to determine an amplitude interval corresponding to an original audio signal, and divide the amplitude interval into a plurality of amplitude level intervals according to an amplitude order, where a higher amplitude level is, a larger amplitude is corresponding to a waveform feature point in the original audio signal in the amplitude level interval;
the processing module is specifically configured to set an amplitude amplification factor for waveform feature points in the original audio signal in different amplitude level intervals, and amplify the waveform feature points in the original audio signal using the amplitude amplification factor to enhance the amplitude of the original audio signal, where the higher the amplitude level interval is, the smaller the amplitude amplification factor is.
In one embodiment, the determination condition includes an energy determination condition and a time determination condition, and the dividing unit includes:
the first judgment module is used for judging whether the signal energy accumulated in a preset sampling period reaches a set energy threshold value or not by using an energy judgment condition by taking the moment corresponding to the mark position of the energy value in the target audio signal as an initial moment, wherein the preset sampling period is a set number of sampling periods selected after the initial moment;
the second judging module is used for judging whether a time interval is greater than a set time threshold value or not by using a time judging condition under the condition that the accumulated signal energy in the preset sampling period reaches the set energy threshold value, wherein the time interval is a time difference value formed by the starting time and the current time;
and the dividing module is used for intercepting the audio signals corresponding to the starting time and the current time from the target audio signals as music beats contained in the target audio signals under the condition that the time interval is greater than the set time threshold, and dividing the target audio signals into a plurality of sections of audio beat signals according to the music beats.
In one embodiment, the dividing unit further comprises:
and the determining module is used for determining the peak position and the valley position in the target audio signal according to the amplitude change in the adjacent sampling period in the target audio signal before the time corresponding to the mark position of the energy value in the target audio signal is taken as the starting time and the energy judging condition is used for judging whether the accumulated signal energy in the preset sampling period reaches the set energy threshold value, and taking the valley position as the mark position of the energy value in the target audio signal.
In one embodiment, the generating unit comprises:
the setting module is used for setting a nonlinear corresponding relation between the audio beat signals and the light brightness values according to the change of the energy values corresponding to each section of the audio beat signals, and generating a light brightness control strategy suitable for the target audio signals according to the nonlinear corresponding relation;
and the selecting module is used for randomly selecting color values from the light color table as the light colors correspondingly output by each music beat signal when the target audio signal is executed to the mark position of the energy value in each audio beat signal, and generating a light color and degree control strategy suitable for the target audio signal according to the light colors correspondingly output by each music beat signal. In an embodiment, the setting module is specifically configured to divide a plurality of energy value intervals according to a change of an energy value corresponding to each audio beat signal;
the setting module is specifically further configured to set an upper limit of a brightness value for each energy value interval, and perform lighting brightness mapping on each energy value interval by using the upper limit of the brightness value as a mapping boundary to obtain a nonlinear corresponding relationship between each section of audio beat signal and a lighting brightness value;
the setting module is specifically further configured to convert the nonlinear corresponding relationship between each audio beat signal and the light brightness value into a light brightness curve corresponding to each audio beat signal, and generate a light brightness control strategy suitable for the target audio signal by combining the light brightness curve corresponding to each audio beat signal.
In a third aspect, an embodiment of the present invention provides a storage medium having stored thereon executable instructions, which when executed by a processor, cause the processor to implement the method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a lighting information control device, including:
one or more processors;
a storage device to store one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of the first aspect.
It can be known from the above content that, in the method and the apparatus for controlling light information provided in the embodiments of the present invention, after a target audio signal with a beat characteristic obtained by processing an original audio signal is obtained, a preset determination condition is used to identify a music beat contained in the target audio signal, the target audio signal is divided into multiple sections of audio beat signals according to the identified music beat, and a light control strategy suitable for the target audio signal is further generated according to a change in an energy value corresponding to each section of audio beat signal and a mark position of the energy value in each section of audio beat signal. Therefore, compared with the existing mode of controlling the light information by using the frequency spectrum analysis audio signal, the embodiment of the invention has the advantages that the music beat in the audio signal is identified, and the light information is set according to the music beat, so that the light can be switched in color and brightness along with the corresponding melody of the music change, and the problems of low response of the light and low joint degree of the music beat in the control process of the existing light information are solved.
In addition, the embodiment can also achieve the technical effects of:
the method has the advantages that the light control strategy suitable for the target audio signal is generated according to the change of the energy value corresponding to each section of audio beat signal and the marking position of the energy value in each section of audio beat signal, the change of light information can be executed at an obvious beat point, the synchronism with music rhythm is high, one beat comprises the light color control strategy and the light brightness control strategy, the color change and the brightness change are contained, and the two changes are not interfered with each other when the music characteristics are followed.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below. It is to be understood that the drawings in the following description are of some embodiments of the invention only. For a person skilled in the art, without inventive effort, further figures can be obtained from these figures.
Fig. 1 is a schematic flow chart of a control method of lighting information according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a nonlinear corresponding relationship between an audio beat signal and a light brightness value according to an embodiment of the present invention;
fig. 3 is a block diagram of a control process of lighting information according to an embodiment of the present invention;
fig. 4 is a logic block diagram of a control process of light information provided by an embodiment of the present invention;
fig. 5 is a block diagram of a control device for lighting information according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the embodiments and drawings of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The invention provides a control method and a control device of light information, which can identify music beats in an audio signal and set the light information aiming at the music beats, so that the light can switch colors and brightness along with corresponding melody of music change, and the problems of low response of the light and low joint degree of the music beats in the control process of the existing light information are solved. The control system of the light information provided by the embodiment of the invention can be embedded into an electronic control unit carried by a vehicle, and the electronic control unit controls the light to change the light brightness and switch the light color along with the beat in the audio signal according to the generated light control strategy, so that the response of the light is fitted with the music beat, the requirements of different people are met, and a more comfortable riding atmosphere is created.
The following provides a detailed description of embodiments of the invention.
Fig. 1 is a schematic flowchart of a method for controlling light information according to an embodiment of the present invention. The method may comprise the steps of:
101. and acquiring a target audio signal with beat characteristics obtained by processing the original audio signal.
The original audio signal is an audio signal during music playing, and the audio signal can be directly used for music rhythm control of the atmosphere lamp, so that light information of the atmosphere lamp changes synchronously in real time along with music rhythm, the atmosphere in the vehicle is improved, and visual enjoyment of a user in the vehicle is enhanced.
The original audio signal is an audio signal collected by hardware, and is usually a digital signal converted from an electric signal, the audio signal is similar to a sine wave but not a regular sine wave, and the fluctuation range is smaller when the volume of music is small and larger when the volume is large. In order to adapt to a larger volume range, specifically, a waveform feature point in the original audio signal may be amplified by using a piecewise continuous amplification method to enhance the original audio signal, and further, a frequency segmentation may be performed on the amplified original audio signal to obtain a target audio signal with a beat characteristic. The situation that excessive signal characteristics of the audio signal are lost due to too small volume can be avoided through amplification processing, and the signal is screened through frequency segmentation to obtain a signal with obvious beat characteristics.
In an embodiment, for the amplification processing procedure of the waveform feature point, a segmented continuous amplification manner may be used, specifically, by determining an amplitude interval corresponding to the original audio signal, and dividing the amplitude interval into a plurality of amplitude level intervals according to an amplitude size order, where the higher the amplitude level is, the larger the amplitude corresponding to the waveform feature point in the original audio signal in the amplitude level interval is, then setting an amplitude amplification factor for the waveform feature point in the original audio signal in the different amplitude level intervals, and performing amplification processing on the waveform feature point in the original audio signal using the amplitude amplification factor to enhance the amplitude of the original audio signal, where the higher the amplitude level interval is, the smaller the amplitude amplification factor is. For example, the amplitude interval corresponding to the original audio signal is 0-5, the amplitude interval is divided into three amplitude levels, i.e., 0-1, 1-3, and 3-5, an amplitude amplification factor is set to 5 for the first amplitude level 0-1, an amplitude amplification factor is set to 3 for the second amplitude level 1-3, and an amplitude amplification factor is set to 2 for the third amplitude level 3-5, but in order to avoid an excessively large amplitude difference between the amplified amplitude intervals, the amplitude interval with the largest amplitude level may not be amplified, i.e., the amplitude amplification factor is set to 1, so as to avoid an excessively large amplitude difference in the audio signal. The amplitude amplification factors corresponding to different amplitude grade intervals are not limited and can be selected according to actual requirements.
In an embodiment, in the process of frequency segmentation for an audio signal, different frequency bands reflect different zero-crossing characteristics on the waveform corresponding to the audio signal, and here, a specific frequency band filtering method may be used to calculate the number of zero-crossing points of the audio signal, and further, a specific frequency band signal is screened out according to the number of zero-crossing points, and filtering is performed for interference in the specific frequency band signal, so that the audio signal becomes more gradual.
102. And recognizing the music beat contained in the target audio signal by using a preset judgment condition, and dividing the target audio signal into a plurality of sections of audio beat signals according to the recognized music beat.
Considering that the target audio signal has regularity, in order to enable the light information to be more fit with the music characteristics of the target audio signal, the music tempo contained in the target audio signal can be identified by using a preset judgment condition.
It can be understood that the determination conditions herein include an energy determination condition and a time determination condition, and specifically, in the process of identifying the music beat contained in the target audio signal, a time corresponding to a mark position of an energy value in the target audio signal is used as a start time, the energy determination condition is used to determine whether the accumulated signal energy in a preset sampling period reaches a set energy threshold, the preset sampling period is a set number of sampling periods selected after the start time, in the case that the accumulated signal energy in the preset sampling period reaches the set energy threshold, the time determination condition is used to determine whether a time interval is greater than a set time threshold, the time interval is a time difference formed between the start time and a current time, in the case that the time interval is greater than the set time threshold, the audio signal corresponding to the start time and the current time is intercepted from the target audio signal as the music beat contained in the target audio signal, and the target audio signal is divided into multiple segments of audio beat signals according to the music beat. For example, taking T1 in the target audio signal as a starting time, calculating the sum of signal energy values in sampling periods T1-T3 by selecting a sampling period T1 corresponding to the starting time and a sampling period T2 and a sampling period T3 after the real time T1, if the sum of the energy values reaches a set energy threshold, further judging whether the time interval is greater than the set time threshold, and under the condition that the time interval is greater than the set time threshold, intercepting the audio signal of the corresponding time interval as a music beat signal.
The mark position of the energy value in the target audio signal is the trough position in the target audio signal, the inflection point position in the audio signal can be found according to the amplitude change in the adjacent sampling period in the target audio signal, the peak position and the trough position in the target audio signal are determined, and the trough position is used as the mark position of the energy value in the target audio signal.
It can be understood that the beat identification process adopts a short-time energy judgment and beat interval limitation mode, so that the problems of response errors of the light information and frequent change of the light information in a short time are avoided, and the display effect of the light information is improved.
103. And generating a light control strategy suitable for the target audio signal according to the change of the energy value corresponding to each section of audio beat signal and the marking position of the energy value in each section of audio beat signal.
The light control strategy comprises a light brightness control strategy and a light color control strategy, specifically, a nonlinear corresponding relation between an audio frequency beat signal and a light brightness value can be set according to the change of the corresponding energy value of each audio frequency beat signal, the light brightness control strategy suitable for a target audio frequency signal is generated according to the nonlinear corresponding relation, when the target audio frequency signal is executed to the mark position of the energy value in each audio frequency beat signal, a color value is randomly selected from a light color table to serve as the light color correspondingly output by each music beat signal, and the light color control strategy suitable for the target audio frequency signal is generated according to the light color correspondingly output by each music beat signal.
It can be understood that, since the visual effects generated by the same luminance change value in different basic luminances are different, for example, when the luminance value changes from 0 to 10, the visual effects are more obvious than when the luminance value changes from 80 to 90, the impact of different luminance changes on the vision is fully considered, the nonlinear corresponding relationship between the audio beat signal and the luminance value is set, and the suitable luminance value of the audio beat signal with different signal energy values is mapped in segments to ensure the continuity of the luminance curve, and this corresponding relationship not only maintains the similarity between the luminance change curve and the audio signal curve, but also enables the luminance change to better fit the change of the music beat.
Further, in order to highlight music beats, the highest brightness value of light can be output at the peak position in each beat, and therefore the music effect accompanying the light is improved.
Specifically, in the process of generating a light brightness control strategy suitable for the target audio signal, a plurality of energy value intervals can be divided according to the change of the energy value corresponding to each audio beat signal, a brightness value upper limit is set for each energy value interval, light brightness mapping is performed on each energy value interval by taking the brightness upper limit as a mapping boundary, a nonlinear corresponding relation between each audio beat signal and a light brightness value is obtained, the nonlinear corresponding relation between each audio beat signal and the light brightness value is converted into a light brightness curve corresponding to each audio beat signal, and the light brightness control strategy suitable for the target audio signal is generated by combining the light brightness curve corresponding to each audio signal.
Exemplarily, as shown in fig. 2, fig. 2 shows a nonlinear corresponding relationship between an audio beat signal and a light brightness value, where a change of an energy value corresponding to the audio beat signal in fig. 2 is 0 to 1, and 3 energy value intervals are obtained by dividing, which are 0 to 0.2, 0.2 to 0.6, and 0.6 to 1, and similarly, the light brightness value is distributed to 0 to 100%, and for a segmented music beat signal corresponding to the 0 to 0.2 energy value interval, the segmented audio beat signal is mapped to a 70% to 100% brightness value range, for a segmented audio beat signal corresponding to the 0.2 to 0.6 energy value interval, the segmented audio beat signal is mapped to a 30% to 70% brightness value range, and for a segmented audio beat signal corresponding to the 0 to 0.2 energy value interval, the segmented audio beat signal is mapped to a 0 to 30% brightness value range.
Specifically, in the process of generating a light color and chrominance control strategy suitable for a target audio signal, because visual interference is generated when the brightness and the color in light information are changed simultaneously, it is more natural to trigger color switching at the moment when the brightness of the light is lower, the light color switching can be executed at the trough position of the audio beat signal corresponding to the energy value, the light color is kept unchanged in one audio beat signal, the brightness value is changed to highlight the strength of the beat, and when the audio beat signal is finished and the next audio beat signal is about to come, the audio beat signal is switched to the next color to respond to a new beat. Usually, the duration of a beat in an audio signal is very short, about 300ms, and human eyes cannot easily see the asynchronism between the color switching time and the highest point of the brightness value.
It can be understood that the switching of the light colors can be selected from the color table in a random mode, the function of randomly selecting the colors increases the diversity of the light atmosphere, the adaptation range of the volume is also improved, the switching of the light colors can also be switched in sequence by using the preset light color table, the preset light color table can be adapted to the proper colors according to the music styles, for example, the music styles are more happy, more light colors related to red systems can be configured in the light color table, the music styles are more fresh, and more light colors related to green systems and blue systems can be configured in the light color table.
The embodiment of the invention increases the diversity of light color switching, designs the function of randomly selecting light colors, triggers a random function to generate a random number different from the previous time after a specific light color switching instruction is sent out, reads a corresponding RGB value in a color table according to the random number, and sends a switching instruction of the corresponding RGB color to an actuator. This mode of choosing light colour at random can be so that different effects are played to same music repeatedly, has increased the variety of light atmosphere, and the switching of colour does not receive the influence of volume size, has better universality.
104. Responding to a light control instruction, controlling the light brightness to change along with the change of the energy value corresponding to each section of audio beat signal according to the light brightness control strategy, and controlling the mark position of the energy value of the light color in each section of audio beat signal to switch according to the light color control measurement strategy.
The light control instruction can be triggered by an opening button of the music and can also be triggered by an opening button of the light, the light control strategy can be embedded into a light product of music rhythm, the control of light color and light brightness in the music rhythm process is executed, the specific light brightness can change along with the change of the energy value corresponding to each section of audio beat signal in the music, and the light color can be switched at the mark position of the energy value in each section of audio beat signal.
In an actual application scenario, fig. 3 shows a structural block diagram of a control process of light information provided in an embodiment of the present invention, which includes a signal sampling processing step 201, and the step mainly processes an original audio signal obtained by an audio acquisition system, and includes two parts, namely signal enhancement and frequency band separation, where the signal enhancement can amplify feature points in a waveform signal to avoid excessive signal feature loss due to too small volume, the frequency band separation can screen the signal according to frequency to obtain a signal with an obvious beat characteristic, and then a Δ y value in an adjacent sampling period is calculated by a beat identification step 202 to determine a peak position and a trough position, and the peak position and the trough position in the signal are marked and then sent to a light control step 203, and the light control step 203 calculates a light control strategy according to corresponding logic, including light brightness control and light color control, where the two control manners are fused after synchronous processing is performed, and the audio signal fused with the light control strategy is sent to an actuator, so as to output a change result of color and brightness of the audio signal in a period through a control output step 203.
In practical application scenarios, fig. 4 shows a logic block diagram of a control process of light information provided by the embodiment of the present invention, after the step 301 of inputting the audio signal, a step 302 of processing the audio signal is performed, and a beat recognition step 303 is performed, and after the peak position and the trough position are recognized from the audio signal, the peak position and the trough position are further used to judge whether a beat condition is satisfied, meanwhile, the change of the light information is controlled by using the beat obtained by identification, on one hand, aiming at the control of the light color, firstly, whether the energy value accumulation reaches the set energy value threshold value is judged, a judgment section is executed to judge whether the energy value accumulation is correct 304, if the energy value accumulation reaches the set energy value threshold value, a timer is further used to judge whether the time interval reaches the set time threshold value, the judgment interval is executed to satisfy 304, if the energy value accumulation does not reach the set energy value threshold value, then the color not switching step 306 is executed, the light color is controlled not to be switched, if the set time threshold is reached, then a color switching step 307 is executed, the light color is controlled to be switched, and the timer is reset to count again, if the set time threshold is not reached, a color non-switching step 306 is performed, the light colors are controlled not to be switched, in case the light colors are switched, a random number generation step 308 is performed, one color value can be randomly selected from the color table to be used as the light color for switching, and the corresponding light color is output through the controller, on the other hand, aiming at the control of the light brightness, after identifying the peak position and the trough position in the audio signal, a brightness control step 309 may be performed, in which the change of the energy value in the audio signal is directly used to control the change of the light brightness, and a controller output step 310 may be performed, in which the controller outputs the corresponding light brightness.
Considering that a certain disturbance exists in a target audio signal or a very small music beat which cannot be distinguished by human ears, in order to improve the accuracy of light color control in light information, a short-time energy judgment mode is adopted, namely, a current music beat signal temporarily starts to accumulate signal energy within a period of time after the current moment, when the energy value accumulation reaches a set energy threshold value, whether a corresponding time interval reaches a set time interval or not is judged, under the condition that the time interval reaches the set time interval, light color switching is executed, and under the condition that the time interval does not reach the set time interval, light color switching is not executed. For example, if the time interval Δ t =60ms and the time t is determined as the color switching time, the energy value within 60ms after the time is calculated to determine whether the switching is the correct switching. Meanwhile, in order to avoid frequent color switching in a short time, a time interval threshold is set as a judgment condition, namely, after a color switching command is sent by a system, a timer is reset and starts timing again until the next color switching command is sent. The whole color control algorithm part ensures that the existing brightness and the color are followed in one beat, and when the whole brightness changes slightly, the color is switched to better make up for the defect.
According to the control method of the light information, after a target audio signal with a beat characteristic is obtained after an original audio signal is processed, a preset judgment condition is used for identifying a music beat contained in the target audio signal, the target audio signal is divided into a plurality of sections of audio beat signals according to the identified music beat, a light control strategy suitable for the target audio signal is further generated according to the change of an energy value corresponding to each section of audio beat signal and the mark position of the energy value in each section of audio beat signal, the light strategy comprises a light brightness control strategy and a light color control strategy, the light brightness is controlled to change along with the change of the energy value corresponding to each section of audio beat signal according to a light brightness control command, and the mark position of the energy value in each section of audio beat signal is controlled to switch according to the light color control strategy. Therefore, compared with the existing mode of controlling the light information by using the frequency spectrum analysis audio signal, the embodiment of the invention has the advantages that the music beat in the audio signal is identified, and the light information is set according to the music beat, so that the light can be switched in color and brightness along with the corresponding melody of the music change, and the problems of low response of the light and low joint degree of the music beat in the control process of the existing light information are solved.
Based on the above embodiment, another embodiment of the present invention provides a light information control device, as shown in fig. 4, the device includes:
the acquiring unit 21 may be configured to acquire a target audio signal with a beat characteristic obtained by processing an original audio signal;
a dividing unit 22, configured to identify a music tempo included in the target audio signal using a preset determination condition, and divide the target audio signal into a plurality of sections of audio tempo signals according to the identified music tempo;
the generating unit 23 may be configured to generate a light control strategy suitable for the target audio signal according to a change in an energy value corresponding to each segment of the audio beat signal and a mark position of the energy value in each segment of the audio beat signal, where the light control strategy includes a light brightness control strategy and a light color control strategy;
and the control unit 24 may be configured to respond to the light control instruction, control the light brightness to change along with the change of the energy value corresponding to each audio beat signal according to the light brightness control strategy, and control the mark position of the energy value of the light color in each audio beat signal to switch according to the light color control measurement strategy.
In an actual application scenario, the obtaining unit 21 includes:
the processing module can be used for amplifying the waveform characteristic points in the original audio signal in a segmented continuous amplification mode so as to enhance the original audio signal;
and the segmenting module can be used for carrying out frequency segmentation on the amplified original audio signal to obtain a target audio signal with beat characteristics.
In an actual application scenario, the processing module may be specifically configured to determine an amplitude interval corresponding to an original audio signal, and divide the amplitude interval into a plurality of amplitude level intervals according to an amplitude order, where a higher the amplitude level is, a larger amplitude is corresponding to a waveform feature point in the original audio signal in the amplitude level interval;
the processing module may be specifically configured to set an amplitude amplification factor for a waveform feature point in the original audio signal in different amplitude level intervals, and amplify the waveform feature point in the original audio signal using the amplitude amplification factor to enhance the amplitude of the original audio signal, where the higher the amplitude level interval is, the smaller the amplitude amplification factor is.
In an actual application scenario, the determination condition includes an energy determination condition and a time determination condition, and the dividing unit 22 includes:
the first judgment module can be used for judging whether the signal energy accumulated in a preset sampling period reaches a set energy threshold value by using an energy judgment condition by taking the moment corresponding to the mark position of the energy value in the target audio signal as an initial moment, wherein the preset sampling period is a set number of sampling periods selected after the initial moment;
the second judging module may be configured to judge, using a time judging condition, whether a time interval is greater than a set time threshold under the condition that the signal energy accumulated in the preset sampling period reaches the set energy threshold, where the time interval is a time difference between an initial time and a current time;
the dividing module may be configured to intercept, from the target audio signal, an audio signal corresponding to the starting time and the current time as a music beat included in the target audio signal, and divide the target audio signal into multiple segments of audio beat signals according to the music beat, when the time interval is greater than the set time threshold.
In an actual application scenario, the dividing unit 22 further includes:
the determining module may be configured to determine a peak position and a trough position in the target audio signal according to amplitude variation in adjacent sampling periods in the target audio signal before determining whether the signal energy accumulated in a preset sampling period reaches a set energy threshold using an energy determination condition, where a time corresponding to a mark position of an energy value in the target audio signal is used as a start time, and the peak position and the trough position are used as mark positions of the energy value in the target audio signal.
In an actual application scenario, the generating unit 23 includes:
the setting module can be used for setting a nonlinear corresponding relation between the audio beat signals and the light brightness values according to the change of the energy values corresponding to each section of audio beat signals, and generating a light brightness control strategy suitable for the target audio signals according to the nonlinear corresponding relation;
and the selecting module can be used for randomly selecting color values from the light color table as the light colors correspondingly output by each music beat signal when the target audio signal is executed to the mark position of the energy value in each audio beat signal, and generating the light color and degree control strategy suitable for the target audio signal according to the light colors correspondingly output by each music beat signal.
In an actual application scenario, the setting module may be specifically configured to divide a plurality of energy value intervals according to a change in an energy value corresponding to each segment of audio beat signal;
the setting module can be specifically used for setting a brightness value upper limit for each energy value interval, and performing lighting brightness mapping on each energy value interval by taking the brightness upper limit as a mapping boundary to obtain a nonlinear corresponding relation between each section of audio beat signal and a lighting brightness value;
the setting module may be further configured to convert the nonlinear correspondence between each audio beat signal and the light brightness value into a light brightness curve corresponding to each audio beat signal, and generate a light brightness control strategy suitable for the target audio signal in combination with the light brightness curve corresponding to each audio beat signal.
Based on the above method embodiments, another embodiment of the present invention provides a storage medium having executable instructions stored thereon, which when executed by a processor, cause the processor to implement the above method.
Based on the above embodiment, another embodiment of the present invention provides a lighting information control device, including:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method described above.
The system and apparatus embodiments correspond to the method embodiments, and have the same technical effects as the method embodiments, and for the specific description, refer to the method embodiments. The device embodiment is obtained based on the method embodiment, and for specific description, reference may be made to the method embodiment section, which is not described herein again. Those of ordinary skill in the art will understand that: the figures are schematic representations of one embodiment, and the blocks or processes shown in the figures are not necessarily required to practice the present invention.
Those of ordinary skill in the art will understand that: modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, or may be located in one or more devices different from the embodiments with corresponding changes. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for controlling lighting information, the method comprising:
acquiring a target audio signal with beat characteristics obtained by processing an original audio signal;
recognizing music beats contained in the target audio signal by using preset judgment conditions, and dividing the target audio signal into a plurality of sections of audio beat signals according to the recognized music beats;
generating a light control strategy suitable for the target audio signal according to the change of the energy value corresponding to each section of audio beat signal and the marking position of the energy value in each section of audio beat signal, wherein the light control strategy comprises a light brightness control strategy and a light color control strategy;
and responding to a light control instruction, controlling the light brightness to change along with the change of the energy value corresponding to each section of audio beat signal according to the light brightness control strategy, and controlling the marking position of the energy value of the light color in each section of audio beat signal to switch according to the light color control measurement strategy.
2. The method as claimed in claim 1, wherein obtaining the target audio signal with the beat characteristic after the original audio signal is processed comprises:
amplifying the waveform characteristic points in the original audio signal by using a segmented continuous amplification mode to enhance the original audio signal;
and carrying out frequency segmentation on the amplified original audio signal to obtain a target audio signal with beat characteristics.
3. The method of claim 2, wherein the amplifying the waveform feature points in the original audio signal by using the piecewise continuous amplification to enhance the original audio signal comprises:
determining an amplitude interval corresponding to an original audio signal, and dividing the amplitude interval into a plurality of amplitude level intervals according to the amplitude order, wherein the higher the amplitude level is, the larger the amplitude corresponding to a waveform feature point in the original audio signal in the amplitude level interval is;
setting amplitude amplification coefficients aiming at waveform characteristic points in the original audio signals in different amplitude level intervals, and performing amplification processing on the waveform characteristic points in the original audio signals by using the amplitude amplification coefficients so as to enhance the amplitude of the original audio signals, wherein the higher the amplitude level interval is, the smaller the amplitude amplification coefficient is.
4. The method according to claim 1, wherein the decision conditions include an energy decision condition and a time decision condition, and the identifying a music tempo contained in the target audio signal using the preset decision conditions and dividing the target audio signal into a plurality of pieces of audio tempo signals according to the identified music tempo comprises:
taking the moment corresponding to the mark position of the energy value in the target audio signal as an initial moment, and judging whether the signal energy accumulated in a preset sampling period reaches a set energy threshold value by using an energy judgment condition, wherein the preset sampling period is a sampling period of which the set number is selected after the initial moment;
under the condition that the accumulated signal energy in the preset sampling period reaches the set energy threshold, judging whether a time interval is greater than a set time threshold or not by using a time judgment condition, wherein the time interval is a time difference value formed by the starting time and the current time;
and under the condition that the time interval is greater than the set time threshold, intercepting the audio signal corresponding to the starting time and the current time from the target audio signal as the music beat contained in the target audio signal, and dividing the target audio signal into a plurality of sections of audio beat signals according to the music beat.
5. The method as claimed in claim 4, wherein before the time corresponding to the mark position of the energy value in the target audio signal is taken as a starting time and an energy determination condition is used to determine whether the accumulated signal energy in the preset sampling period reaches a set energy threshold, the method further comprises:
and determining the peak position and the trough position in the target audio signal according to the amplitude change in the adjacent sampling periods in the target audio signal, and taking the trough position as the mark position of the energy value in the target audio signal.
6. The method according to any one of claims 1-5, wherein generating the light control strategy suitable for the target audio signal according to the change of the corresponding energy value of each audio beat signal and the mark position of the energy value in each audio beat signal comprises:
setting a nonlinear corresponding relation between the audio beat signals and the light brightness values according to the change of the energy values corresponding to each section of audio beat signals, and generating a light brightness control strategy suitable for the target audio signals according to the nonlinear corresponding relation;
and when the target audio signal is executed to the mark position of the energy value in each audio beat signal, randomly selecting a color value from the light color table as the light color correspondingly output by each music beat signal, and generating a light color degree control strategy suitable for the target audio signal according to the light color correspondingly output by each music beat signal.
7. The method according to claim 6, wherein the setting of the nonlinear correspondence between the audio beat signal and the light brightness value according to the variation of the corresponding energy value of each audio beat signal, and the generating of the light brightness control strategy suitable for the target audio signal according to the nonlinear correspondence comprises:
dividing a plurality of energy value intervals according to the change of the energy value corresponding to each section of audio beat signal;
setting a brightness value upper limit for each energy value interval, and performing light brightness mapping on each energy value interval by taking the brightness upper limit as a mapping boundary to obtain a nonlinear corresponding relation between each section of audio beat signal and a light brightness value;
and converting the nonlinear corresponding relation between each section of audio beat signal and the light brightness value into a light brightness curve corresponding to each section of audio beat signal, and generating a light brightness control strategy suitable for the target audio signal by combining the light brightness curve corresponding to each section of audio signal.
8. A control device for lighting information, the device comprising:
the acquisition unit is used for acquiring a target audio signal with beat characteristics, which is obtained by processing an original audio signal;
the dividing unit is used for identifying the music beats contained in the target audio signal by using a preset judgment condition and dividing the target audio signal into a plurality of sections of audio beat signals according to the identified music beats;
the generating unit is used for generating a light control strategy suitable for the target audio signal according to the change of the energy value corresponding to each section of audio beat signal and the marking position of the energy value in each section of audio beat signal, wherein the light control strategy comprises a light brightness control strategy and a light color control strategy;
and the control unit is used for responding to a light control instruction, controlling the light brightness to change along with the change of the energy value corresponding to each section of audio beat signal according to the light brightness control strategy, and controlling the marking position of the energy value of the light color in each section of audio beat signal to switch according to the light color control measurement strategy.
9. A storage medium having stored thereon executable instructions, wherein the instructions, when executed by a processor, cause the processor to implement a method of controlling said lighting information.
10. A control device for lighting information, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of the first aspect.
CN202211377986.5A 2022-11-04 2022-11-04 Control method and device of light information, storage medium and equipment Pending CN115520090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211377986.5A CN115520090A (en) 2022-11-04 2022-11-04 Control method and device of light information, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211377986.5A CN115520090A (en) 2022-11-04 2022-11-04 Control method and device of light information, storage medium and equipment

Publications (1)

Publication Number Publication Date
CN115520090A true CN115520090A (en) 2022-12-27

Family

ID=84705427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211377986.5A Pending CN115520090A (en) 2022-11-04 2022-11-04 Control method and device of light information, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN115520090A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116916506A (en) * 2023-07-20 2023-10-20 福州爱国者之星光电科技有限公司 Lamp effect display method and terminal based on music beat

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111007776A (en) * 2019-12-20 2020-04-14 深圳市传视界电子科技有限公司 Light control method, light control equipment, light playing system and storage medium
CN113573442A (en) * 2021-07-16 2021-10-29 广东和音元视电子科技有限公司 Method, apparatus, and computer-readable storage medium for audio control of scenes
CN113727501A (en) * 2021-07-20 2021-11-30 佛山电器照明股份有限公司 Sound-based dynamic light control method, device, system and storage medium
CN114828359A (en) * 2022-05-25 2022-07-29 东风汽车有限公司东风日产乘用车公司 Music-based atmosphere lamp display method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111007776A (en) * 2019-12-20 2020-04-14 深圳市传视界电子科技有限公司 Light control method, light control equipment, light playing system and storage medium
CN113573442A (en) * 2021-07-16 2021-10-29 广东和音元视电子科技有限公司 Method, apparatus, and computer-readable storage medium for audio control of scenes
CN113727501A (en) * 2021-07-20 2021-11-30 佛山电器照明股份有限公司 Sound-based dynamic light control method, device, system and storage medium
CN114828359A (en) * 2022-05-25 2022-07-29 东风汽车有限公司东风日产乘用车公司 Music-based atmosphere lamp display method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116916506A (en) * 2023-07-20 2023-10-20 福州爱国者之星光电科技有限公司 Lamp effect display method and terminal based on music beat

Similar Documents

Publication Publication Date Title
CN106211502A (en) A kind of method and system of audio frequency control light
CN106304539B (en) A kind of music lantern controller design method followed based on rhythm
CN101252801B (en) Method and apparatus for controlling light
CN107103917B (en) Music rhythm detection method and system
CN115520090A (en) Control method and device of light information, storage medium and equipment
CN101388234B (en) Multimedia playing system with lighting display device
CN106875930B (en) Light control method and system based on real-time detection of song accompanying sound and microphone voice
CN113727501B (en) Sound-based light dynamic control method, device, system and storage medium
CN113613369A (en) Light effect control method, device, equipment and storage medium
US20210093973A1 (en) Apparatus and method for generating a recording
US20150002046A1 (en) User Interface Using Sounds to Control a Lighting System
KR101543374B1 (en) Sensibility lighting control apparatus and method
CN106132040B (en) Sing the lamp light control method and device of environment
CN106332378A (en) Intelligent flickering LED lamp based on music rhythm identification and control method of intelligent flickering LED lamp
CN113573442A (en) Method, apparatus, and computer-readable storage medium for audio control of scenes
JP2010511986A (en) Ambient lighting
CN106454302A (en) Method and device for detecting ripeness of fruits and vegetables
CN107509287A (en) Method and device for adjusting light, intelligent lighting equipment and storage medium
CN110996477A (en) Air conditioner lamp control method, computer device and computer readable storage medium
CN106376134B (en) Improved ambient intelligence induction type LED light
US11057671B2 (en) Rendering a dynamic light scene based on audio visual content
JP2020127714A (en) Method and system for generating audio-visual content from video game footage
CN111007776A (en) Light control method, light control equipment, light playing system and storage medium
CN114828359A (en) Music-based atmosphere lamp display method, device, equipment and storage medium
CN113597061A (en) Method, apparatus and computer readable storage medium for controlling a magic color light strip

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination