CN115520090A - Lighting information control method, device, storage medium and equipment - Google Patents

Lighting information control method, device, 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
beat
light
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.)
Granted
Application number
CN202211377986.5A
Other languages
Chinese (zh)
Other versions
CN115520090B (en
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/CN115520090B/en
Publication of CN115520090A publication Critical patent/CN115520090A/en
Application granted granted Critical
Publication of CN115520090B publication Critical patent/CN115520090B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

灯光信息的控制方法、装置、存储介质及设备Lighting information control method, device, storage medium and equipment

技术领域technical field

本发明涉及车辆技术领域,具体而言,涉及一种灯光信息的控制方法及装置。The present invention relates to the technical field of vehicles, in particular to a method and device for controlling lighting information.

背景技术Background technique

随着生活水平的提高,人们对乘车体验的要求越来越高,简单的呼吸或流水等固定节奏变化的灯光氛围已经不再满足市场需求,伴随音乐律动变换的氛围灯成为更符合人们需求的产品。With the improvement of living standards, people have higher and higher requirements for the driving experience. Lighting atmospheres with fixed rhythms such as simple breathing or flowing water no longer meet market demand. Ambience lights that change with music rhythms become more in line with people's needs. The product.

针对氛围灯信息的控制方式主要是亮度和颜色,氛围灯的亮度和颜色响应对音乐节拍的贴合度是评判音乐律动氛围灯的重要标准,目前市场上有一些音乐律动的氛围灯产品,主要是通过对音频信号进行频谱分析,如短时傅里叶变换,并设定氛围灯与频谱的映射关系,以实现对灯光信息的控制。但该方法应用起来对硬件要求较高,增加了产品成本,还有一些音乐律动的氛围灯产品对音源要求较高,只能适配特定风格的音乐,使得灯光随音乐变化的响应律动不够明显,导致灯光的响应和音乐节拍的贴合度不高。The control methods for ambient light information are mainly brightness and color. The brightness and color response of the ambient light fit the music beat is an important criterion for judging the music rhythm ambient light. There are some music rhythm ambient light products on the market. It is to control the lighting information by performing spectrum analysis on the audio signal, such as short-time Fourier transform, and setting the mapping relationship between the ambient light and the spectrum. However, the application of this method requires high hardware requirements, which increases the product cost. Some ambient light products with music rhythm have high requirements on the sound source, and can only adapt to specific styles of music, making the response rhythm of the light changing with the music not obvious enough. , resulting in a poor fit between the light response and the music beat.

发明内容Contents of the invention

本发明提供了一种灯光信息的控制方法及装置,通过识别音频信号中的音乐节拍,并针对音乐节拍来设置灯光信息,使得灯光可以随着音乐变化的相应旋律来切换颜色和亮度,从而解决了现有灯光信息的控制过程中灯光的响应和音乐节拍的贴合度不高的问题。具体的技术方案如下:The present invention provides a method and device for controlling light information. By identifying the music beat in the audio signal and setting the light information according to the music beat, the color and brightness of the light can be switched according to the corresponding melody of the music, thereby solving the problem of It solves the problem that the response of the light and the rhythm of the music do not fit well in the control process of the existing light information. The specific technical scheme is as follows:

第一方面,本发明实施例提供了一种灯光信息的控制方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for controlling lighting information, the method comprising:

获取原始音频信号经过处理后得到的具有节拍特性的目标音频信号;Obtain a target audio signal with beat characteristics obtained after processing the original audio signal;

使用预先设置的判定条件识别所述目标音频信号中包含的音乐节拍,并根据识别得到的音乐节拍将所述目标音频信号划分为多段音频节拍信号;Identifying music beats contained in the target audio signal using preset determination conditions, and dividing the target audio signal into multiple audio beat signals according to the identified music beats;

根据每段音频节拍信号对应能量值的变化以及每段音频节拍信号中能量值的标记位置,生成所述目标音频信号适合的灯光控制策略,所述灯光控制策略包括灯光亮度控制策略和灯光颜色控制策略;According to the change of the corresponding energy value of each audio beat signal and the marked position of the energy value in each audio beat signal, generate a lighting control strategy suitable for the target audio signal, and the lighting control strategy includes a lighting brightness control strategy and a lighting color control Strategy;

响应于灯光控制指令,按照所述灯光亮度控制策略控制灯光亮度伴随每段音频节拍信号对应能量值的变化发生改变,按照所述灯光颜色控制测策略控制灯光颜色在每段音频节拍信号中能量值的标记位置发生切换。In response to the light control instruction, control the light brightness according to the light brightness control strategy to change with the energy value corresponding to each segment of the audio beat signal, and control the light color according to the light color control strategy to control the energy value of each segment of the audio beat signal The position of the marker is switched.

在一种实施方式中,所述获取原始音频信号经过处理后得到的具有节拍特性的目标音频信号,包括:In one embodiment, the acquisition of the target audio signal with beat characteristics obtained after the original audio signal is processed includes:

使用分段连续放大的方式对原始音频信号中的波形特征点进行放大处理,以增强原始音频信号;Use segmental continuous amplification to amplify the waveform feature points in the original audio signal to enhance the original audio signal;

针对放大处理后的原始音频信号进行频率分段,得到具有节拍特性的目标音频信号。Frequency segmentation is performed on the amplified original audio signal to obtain a target audio signal with beat characteristics.

在一种实施方式中,所述使用分段连续放大的方式对原始音频信号中的波形特征点进行放大处理,以增强原始音频信号,包括:In one embodiment, the stepwise continuous amplification method is used to amplify the waveform feature points in the original audio signal to enhance the original audio signal, including:

确定原始音频信号对应的幅值区间,并按照幅值大小顺序将所述幅值区间划分为多个幅值等级区间,所述幅值等级越高,幅值等级区间内原始音频信号中波形特征点对应的幅值越大;Determine the amplitude interval corresponding to the original audio signal, and divide the amplitude interval into a plurality of amplitude level intervals in the order of magnitude, the higher the amplitude level, the waveform characteristics of the original audio signal in the amplitude level interval The larger the amplitude corresponding to the point;

针对不同幅值等级区间内原始音频信号中的波形特征点设置幅值放大系数,并使用幅值放大系数对原始音频信号中的波形特征点进行放大处理,以增强原始音频信号的幅值,所述幅值等级区间越高,所述幅值放大系数越小。Set the amplitude amplification factor for the waveform feature points in the original audio signal in different amplitude level intervals, and use the amplitude amplification factor to amplify the waveform feature points in the original audio signal to enhance the amplitude of the original audio signal. The higher the amplitude level range, the smaller the amplitude amplification factor.

在一种实施方式中,所述判定条件包括能量判定条件和时间判定条件,所述使用预先设置的判定条件识别所述目标音频信号中包含的音乐节拍,并根据识别得到的音乐节拍将所述目标音频信号划分为多段音频节拍信号,包括:In one embodiment, the determination conditions include energy determination conditions and time determination conditions, and the predetermined determination conditions are used to identify the music beat contained in the target audio signal, and the The target audio signal is divided into multiple audio beat signals, including:

以目标音频信号中能量值的标记位置对应的时刻作为起始时刻,使用能量判定条件判断预设采样周期内累加的信号能量是否达到设定能量阈值,所述预设采样周期为起始时刻之后所选取设定数量的采样周期;The time corresponding to the marked position of the energy value in the target audio signal is taken as the starting time, and the energy judgment condition is used to judge whether the accumulated signal energy in the preset sampling period reaches the set energy threshold, and the preset sampling period is after the starting time The selected set number of sampling periods;

在所述预设采样周期内累加的信号能量达到所述设定能量阈值的情况下,使用时间判定条件判断时间间隔是否大于设定时间阈值,所述时间间隔为起始时刻与当前时刻所形成的时间差值;When the accumulated signal energy in the preset sampling period reaches the set energy threshold, the time judgment condition is used to judge whether the time interval is greater than the set time threshold, and the time interval is formed by the initial moment and the current moment time difference;

在所述时间间隔大于所述设定时间阈值的情况下,从所述目标音频信号中截取起始时刻与当前时刻对应的音频信号作为目标音频信号中包含的音乐节拍,并根据所述音乐节拍将所述目标音频信号划分为多段音频节拍信号。In the case that the time interval is greater than the set time threshold, the audio signal corresponding to the starting moment and the current moment is intercepted from the target audio signal as the music beat contained in the target audio signal, and according to the music beat The target audio signal is divided into multiple segments of audio beat signals.

在一种实施方式中,在所述以目标音频信号中能量值的标记位置对应的时刻作为起始时刻,使用能量判定条件判断预设采样周期内累加的信号能量是否达到设定能量阈值之前,所述方法还包括:In one embodiment, before the time corresponding to the marked position of the energy value in the target audio signal is used as the starting time, the energy determination condition is used to determine whether the accumulated signal energy in the preset sampling period reaches the set energy threshold, The method also includes:

根据所述目标音频信号中相邻采样周期内的幅值变化,确定所述目标音频信号中的波峰位置和波谷位置,将所述波谷位置作为目标音频信号中能量值的标记位置。Determine 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, and use the valley position as the mark position of the energy value in the target audio signal.

在一种实施方式中,所述根据每段音频节拍信号对应能量值的变化以及每段音频节拍信号中能量值的标记位置,生成所述目标音频信号适合的灯光控制策略,包括:In one embodiment, the generation of a light control strategy suitable for the target audio signal according to the change of the energy value corresponding to each segment of the audio beat signal and the marking position of the energy value in each segment of the audio beat signal includes:

根据每段音频节拍信号对应能量值的变化,设定音频节拍信号和灯光亮度值的非线性对应关系,根据所述非线性对应关系生成所述目标音频信号适合的灯光亮度控制策略;According to the change of the corresponding energy value of each audio beat signal, set the nonlinear corresponding relationship between the audio beat signal and the light brightness value, and generate a light brightness control strategy suitable for the target audio signal according to the nonlinear corresponding relationship;

当目标音频信号执行到每段音频节拍信号中能量值的标记位置,从灯光颜色表中随机选取颜色值作为每个音乐节拍信号对应输出的灯光颜色,并根据每个音乐节拍信号对应输出的灯光颜色生成所述目标音频信号适合的灯光颜色度控制策略。When the target audio signal is executed to the marked position of the energy value in each audio beat signal, the color value is randomly selected from the light color table as the corresponding output light color of each music beat signal, and the light output corresponding to each music beat signal The color generates a light color degree control strategy suitable for the target audio signal.

在一种实施方式中,所述根据每段音频节拍信号对应能量值的变化,设定音频节拍信号和灯光亮度值的非线性对应关系,根据所述非线性对应关系生成所述目标音频信号适合的灯光亮度控制策略,包括:In one embodiment, according to the change of the energy value corresponding to each audio beat signal, the nonlinear correspondence between the audio beat signal and the light brightness value is set, and the target audio signal is generated according to the nonlinear correspondence. Lighting brightness control strategy, including:

根据每段音频节拍信号对应能量值的变化划分多个能量值区间;Divide multiple energy value intervals according to the change of energy value corresponding to each segment of audio beat signal;

针对每个能量值区间设定亮度值上限,并以所述亮度上限值作为映射边界对每个能量值区间进行灯光亮度映射,得到每段音频节拍信号和灯光亮度值的非线性对应关系;Setting an upper limit of the brightness value for each energy value interval, and using the brightness upper limit value as a mapping boundary to perform light brightness mapping for each energy value interval, to obtain a non-linear correspondence between each audio beat signal and the light brightness value;

将所述每段音频节拍信号和灯光亮度值的非线性对应关系转换为每段音频节拍信号对应的灯光亮度曲线,结合所述每段音频信号对应的灯光亮度曲线生成所述目标音频信号适合的灯光亮度控制策略。converting the non-linear correspondence between each segment of audio beat signal and the light brightness value into a light brightness curve corresponding to each segment of audio beat signal, combining the light brightness curve corresponding to each segment of audio signal to generate the target audio signal suitable Lighting brightness control strategy.

第二方面,本发明实施例提供了一种灯光信息的控制装置,所述装置包括:In the second aspect, an embodiment of the present invention provides a lighting information control device, the device comprising:

获取单元,用于获取原始音频信号经过处理后得到的具有节拍特性的目标音频信号;An acquisition unit, configured to acquire a target audio signal with beat characteristics obtained after the original audio signal is processed;

划分单元,用于使用预先设置的判定条件识别所述目标音频信号中包含的音乐节拍,并根据识别得到的音乐节拍将所述目标音频信号划分为多段音频节拍信号;A division unit, configured to identify the music beat contained in the target audio signal using preset determination conditions, and divide the target audio signal into multiple audio beat signals according to the identified music beat;

生成单元,用于根据每段音频节拍信号对应能量值的变化以及每段音频节拍信号中能量值的标记位置,生成所述目标音频信号适合的灯光控制策略,所述灯光控制策略包括灯光亮度控制策略和灯光颜色控制策略;A generation unit, configured to generate a lighting control strategy suitable for the target audio signal according to the change of the corresponding energy value of each audio beat signal and the marking position of the energy value in each audio beat signal, the lighting control strategy includes lighting brightness control strategy and light color control strategy;

控制单元,用于响应于灯光控制指令,按照所述灯光亮度控制策略控制灯光亮度伴随每段音频节拍信号对应能量值的变化发生改变,按照所述灯光颜色控制测策略控制灯光颜色在每段音频节拍信号中能量值的标记位置发生切换。The control unit is used to respond to the light control instruction, control the light brightness according to the light brightness control strategy to change with the change of the energy value corresponding to each audio beat signal, and control the light color in each audio segment according to the light color control strategy. The marker position of the energy value in the beat signal is switched.

在一种实施方式中,所述获取单元包括:In one embodiment, the acquisition unit includes:

处理模块,用于使用分段连续放大的方式对原始音频信号中的波形特征点进行放大处理,以增强原始音频信号;The processing module is used to amplify the waveform feature points in the original audio signal by using segmented continuous amplification to enhance the original audio signal;

分段模块,用于针对放大处理后的原始音频信号进行频率分段,得到具有节拍特性的目标音频信号。The segmentation module is configured to perform frequency segmentation on the amplified original audio signal to obtain a target audio signal with beat characteristics.

在一种实施方式中,所述处理模块,具体用于确定原始音频信号对应的幅值区间,并按照幅值大小顺序将所述幅值区间划分为多个幅值等级区间,所述幅值等级越高,幅值等级区间内原始音频信号中波形特征点对应的幅值越大;In one embodiment, the processing module is specifically configured to determine the amplitude interval corresponding to the original audio signal, and divide the amplitude interval into a plurality of amplitude level intervals in order of magnitude, and the amplitude The higher the level, the greater the amplitude corresponding to the waveform feature point in the original audio signal within the amplitude level interval;

所述处理模块,具体还用于针对不同幅值等级区间内原始音频信号中的波形特征点设置幅值放大系数,并使用幅值放大系数对原始音频信号中的波形特征点进行放大处理,以增强原始音频信号的幅值,所述幅值等级区间越高,所述幅值放大系数越小。The processing module is also specifically configured to set an amplitude amplification factor for the waveform feature points in the original audio signal in different amplitude level intervals, and use the amplitude amplification factor to amplify the waveform feature points in the original audio signal, so as to The amplitude of the original audio signal is enhanced, and the higher the amplitude level interval is, the smaller the amplitude amplification factor is.

在一种实施方式中,所述判定条件包括能量判定条件和时间判定条件,所述划分单元包括:In one embodiment, the determination conditions include energy determination conditions and time determination conditions, and the division unit includes:

第一判断模块,用于以目标音频信号中能量值的标记位置对应的时刻作为起始时刻,使用能量判定条件判断预设采样周期内累加的信号能量是否达到设定能量阈值,所述预设采样周期为起始时刻之后所选取设定数量的采样周期;The first judging module is used to use the time corresponding to the marked position of the energy value in the target audio signal as the starting time, and use the energy judging condition to judge whether the accumulated signal energy in the preset sampling period reaches the set energy threshold, the preset The sampling period is the set number of sampling periods selected after the initial moment;

第二判断模块,用于在所述预设采样周期内累加的信号能量达到所述设定能量阈值的情况下,使用时间判定条件判断时间间隔是否大于设定时间阈值,所述时间间隔为起始时刻与当前时刻所形成的时间差值;The second judging module is used to judge whether the time interval is greater than the set time threshold using the time judging condition when the accumulated signal energy in the preset sampling period reaches the set energy threshold, and the time interval is at least The time difference between the initial moment and the current moment;

划分模块,用于在所述时间间隔大于所述设定时间阈值的情况下,从所述目标音频信号中截取起始时刻与当前时刻对应的音频信号作为目标音频信号中包含的音乐节拍,并根据所述音乐节拍将所述目标音频信号划分为多段音频节拍信号。A division module, configured to intercept the audio signal corresponding to the start moment and the current moment from the target audio signal as the music beat contained in the target audio signal when the time interval is greater than the set time threshold, and The target audio signal is divided into a plurality of audio beat signals according to the music beat.

在一种实施方式中,所述划分单元还包括:In one embodiment, the dividing unit further includes:

确定模块,用于在所述以目标音频信号中能量值的标记位置对应的时刻作为起始时刻,使用能量判定条件判断预设采样周期内累加的信号能量是否达到设定能量阈值之前,根据所述目标音频信号中相邻采样周期内的幅值变化,确定所述目标音频信号中的波峰位置和波谷位置,将所述波谷位置作为目标音频信号中能量值的标记位置。The determination module is used to use the energy determination condition to determine whether the accumulated signal energy in the preset sampling period reaches the set energy threshold at the time corresponding to the marked position of the energy value in the target audio signal as the starting time, according to the determined Amplitude changes in adjacent sampling periods in the target audio signal, determine peak positions and valley positions in the target audio signal, and use the valley positions as marker positions of energy values in the target audio signal.

在一种实施方式中,所述生成单元包括:In one embodiment, the generating unit includes:

设定模块,用于根据每段音频节拍信号对应能量值的变化,设定音频节拍信号和灯光亮度值的非线性对应关系,根据所述非线性对应关系生成所述目标音频信号适合的灯光亮度控制策略;The setting module is used to set the nonlinear corresponding relationship between the audio beat signal and the light brightness value according to the change of the corresponding energy value of each audio beat signal, and generate the light brightness suitable for the target audio signal according to the nonlinear corresponding relationship Control Strategy;

选取模块,用于当目标音频信号执行到每段音频节拍信号中能量值的标记位置,从灯光颜色表中随机选取颜色值作为每个音乐节拍信号对应输出的灯光颜色,并根据每个音乐节拍信号对应输出的灯光颜色生成所述目标音频信号适合的灯光颜色度控制策略。在一种实施方式中,所述设定模块,具体用于根据每段音频节拍信号对应能量值的变化划分多个能量值区间;The selection module is used to randomly select the color value from the light color table as the light color corresponding to the output of 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 according to each music beat The signal corresponds to the output light color to generate a light color degree control strategy suitable for the target audio signal. In one embodiment, the setting module is specifically configured to divide a plurality of energy value intervals according to changes in energy values corresponding to each segment of the audio beat signal;

所述设定模块,具体还用于针对每个能量值区间设定亮度值上限,并以所述亮度上限值作为映射边界对每个能量值区间进行灯光亮度映射,得到每段音频节拍信号和灯光亮度值的非线性对应关系;The setting module is also specifically used to set the upper limit of the brightness value for each energy value interval, and use the brightness upper limit value as a mapping boundary to perform light brightness mapping on each energy value interval to obtain each segment of audio beat signal Non-linear correspondence with light brightness values;

所述设定模块,具体还用于将所述每段音频节拍信号和灯光亮度值的非线性对应关系转换为每段音频节拍信号对应的灯光亮度曲线,结合所述每段音频信号对应的灯光亮度曲线生成所述目标音频信号适合的灯光亮度控制策略。The setting module is further configured to convert the non-linear correspondence between each segment of the audio beat signal and the light brightness value into a light brightness curve corresponding to each segment of the audio beat signal, combined with the light corresponding to each segment of the audio signal The brightness curve generates a lighting brightness control strategy suitable for the target audio signal.

第三方面,本发明实施例提供了一种存储介质,其上存储有可执行指令,该指令被处理器执行时使处理器实现第一方面所述的方法。In a third aspect, an embodiment of the present invention provides a storage medium, on which executable instructions are stored, and when the instructions are executed by a processor, the processor implements the method described in the first aspect.

第四方面,本发明实施例提供了一种灯光信息的控制设备,包括:In a fourth aspect, an embodiment of the present invention provides a lighting information control device, including:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,storage means for storing one or more programs,

其中,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现第一方面所述的方法。Wherein, when the one or more programs are executed by the one or more processors, the one or more processors are made to implement the method described in the first aspect.

由上述内容可知,本发明实施例提供的灯光信息的控制方法及装置,在获取原始音频信号经过处理后得到的具有节拍特性的目标音频信号后,使用预先设置的判定条件识别目标音频信号中包含的音乐节拍,并根据识别得到的音乐节拍将目标音频信号划分为多段音频节拍信号,进一步根据每段音频节拍信号对应能量值的变化以及每段音频节拍信号中能量值的标记位置,生成目标音频信号适合的灯光控制策略,该灯光策略包括灯光亮度控制策略和灯光颜色控制策略,响应于灯光控制指令,按照灯光亮度控制策略控制灯光亮度伴随每段音频节拍信号对应能量值的变化发生改变,按照灯光颜色控制策略控制灯光颜色在每段音频节拍信号中能量值的标记位置发生切换。由此可知,与现有使用频谱分析音频信号来对灯光信息进行控制的方式相比,本发明实施例通过识别音频信号中的音乐节拍,并针对音乐节拍来设置灯光信息,使得灯光可以随着音乐变化的相应旋律来切换颜色和亮度,从而解决了现有灯光信息的控制过程中灯光的响应和音乐节拍的贴合度不高的问题。It can be seen from the above that the light information control method and device provided by the embodiments of the present invention, after obtaining the target audio signal with beat characteristics obtained after processing the original audio signal, use the preset determination conditions to identify the target audio signal that contains The music beat, and divide the target audio signal into multiple audio beat signals according to the recognized music beat, and further generate the target audio according to the change of the corresponding energy value of each audio beat signal and the marker position of the energy value in each audio beat signal The lighting control strategy suitable for the signal. The lighting strategy includes the lighting brightness control strategy and the lighting color control strategy. In response to the lighting control command, the lighting brightness is controlled according to the lighting brightness control strategy. The light color control strategy controls the light color to switch at the marked position of the energy value in each audio beat signal. It can be seen that, compared with the existing way of using frequency spectrum analysis audio signal to control light information, the embodiment of the present invention recognizes the music beat in the audio signal and sets the light information according to the music beat, so that the light can follow the The corresponding melody of the music changes to switch the color and brightness, thus solving the problem that the response of the light and the beat of the music do not fit well in the control process of the existing light information.

此外,本实施例还可以实现的技术效果包括:In addition, the technical effects that can also be achieved in this embodiment include:

根据每段音频节拍信号对应能量值的变化以及每段音频节拍信号中能量值的标记位置,生成目标音频信号适合的灯光控制策略,可以在明显的节拍点执行灯光信息的改变,与音乐律动的同步性高,其中一个节拍包括了灯光颜色控制策略和灯光亮度控制策略,既包含了颜色变化,也包含了亮度变化,跟随音乐特征的同时两种变化之间互不干涉。According to the change of the corresponding energy value of each audio beat signal and the marking position of the energy value in each audio beat signal, a suitable lighting control strategy for the target audio signal can be generated, and the change of lighting information can be executed at the obvious beat point, which is consistent with the rhythm of the music. The synchronization is high, one of the beats includes the light color control strategy and the light brightness control strategy, which includes both color changes and brightness changes, and the two changes do not interfere with each other while following the music characteristics.

当然,实施本发明的任一产品或方法并不一定需要同时达到以上所述的所有优点。Of course, implementing any product or method of the present invention does not necessarily need to achieve all the above-mentioned advantages at the same time.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单介绍。显而易见地,下面描述中的附图仅仅是本发明的一些实施例。对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1为本发明实施例提供的一种灯光信息的控制方法的流程示意图;FIG. 1 is a schematic flowchart of a lighting information control method provided by an embodiment of the present invention;

图2为本发明实施例提供的音频节拍信号和灯光亮度值的非线性对应关系示意图;Fig. 2 is a schematic diagram of the non-linear correspondence between the audio beat signal and the light brightness value provided by the embodiment of the present invention;

图3为本发明实施例提供的灯光信息的控制过程的结构框图;Fig. 3 is a structural block diagram of the control process of lighting information provided by the embodiment of the present invention;

图4为本发明实施例提供的灯光信息的控制过程的逻辑框图;Fig. 4 is a logic block diagram of the control process of lighting information provided by the embodiment of the present invention;

图5为本发明实施例提供的一种灯光信息的控制装置的组成框图。Fig. 5 is a block diagram of a light information control device provided by 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 in conjunction with the drawings in the embodiments of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

需要说明的是,本发明实施例及附图中的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如包含的一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。It should be noted that the terms "include" and "have" and any variations thereof in the embodiments of the present invention and the drawings are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally further includes For other steps or units inherent in these processes, methods, products or devices.

本发明提供了一种灯光信息的控制方法及装置,能够识别音频信号中的音乐节拍,并针对音乐节拍来设置灯光信息,使得灯光可以随着音乐变化的相应旋律来切换颜色和亮度,,从而解决了现有灯光信息的控制过程中灯光的响应和音乐节拍的贴合度不高的问题。本发明实施例的灯光信息的控制系统可嵌入至车辆搭载的电子控制单元,该电子控制单元根据生成的灯光控制策略,控制灯光伴随音频信号中的节拍对灯光亮度变化和灯光颜色切换,使得灯光的响应与音乐节拍贴合,以适应不同人群需求,营造更舒适的乘车氛围。The present invention provides a control method and device for light information, which can identify the music beat in the audio signal, and set the light information according to the music beat, so that the light can switch the color and brightness according to the corresponding melody of the music change, so that Solve the problem that the light response and the music beat do not fit well in the control process of the existing light information. The light information control system of the embodiment of the present invention can be embedded in the electronic control unit mounted on the vehicle. The electronic control unit controls the light to change the light brightness and light color according to the beat in the audio signal according to the generated light control strategy, so that the light The response of the car fits the rhythm of the music to meet the needs of different groups of people and create a more comfortable riding atmosphere.

下面对本发明实施例进行详细说明。The embodiments of the present invention will be described in detail below.

图1为本发明实施例提供的一种灯光信息的控制方法的流程示意图。所述方法可以包括如下步骤:Fig. 1 is a schematic flowchart of a method for controlling lighting information provided by an embodiment of the present invention. The method may include the steps of:

101、获取原始音频信号经过处理后得到的具有节拍特性的目标音频信号。101. Acquire a target audio signal with beat characteristics obtained after processing the original audio signal.

其中,原始音频信号为音乐播放时的音频信号,该音频信号可直接用于氛围灯的音乐律动控制,使得氛围灯的灯光信息随着音乐律动实时同步变化,以烘托车内氛围,增强车内用户的视觉享受。Among them, the original audio signal is the audio signal when the music is playing, and the audio signal can be directly used for the music rhythm control of the ambient light, so that the light information of the ambient light changes synchronously with the rhythm of the music in real time, so as to enhance the atmosphere in the car and enhance the interior of the car. User's visual enjoyment.

由于原始音频信号为硬件采集的音频信号,通常为电信号转换的数字信号,该音频信号类似正弦波,但并不是规律的正弦波,在音乐处于音量小的时候波动范围较小,音量大的时候波动范围较大。为了适应更大的音量范围,具体地,可以使用分段连续放大的方式对原始音频信号中的波形特征点进行放大处理,以增强原始音频信号,进一步针对放大处理后的原始音频信号进行频率分段,得到具有节拍特性的目标音频信号。这里通过放大处理可以避免音频信号由于音量太小造成的过多信号特征丢失的情况,通过频率分段来对信号进行筛选得到具有明显节拍特性的信号。Since the original audio signal is an audio signal collected by hardware, usually a digital signal converted from an electrical signal, the audio signal is similar to a sine wave, but it is not a regular sine wave. When the music volume is low, the fluctuation range is small, and the volume is high The time range is large. In order to adapt to a larger volume range, specifically, the waveform feature points in the original audio signal can be amplified using the segmented continuous amplification method to enhance the original audio signal, and further perform frequency division on the amplified original audio signal. segment to obtain the target audio signal with beat characteristics. Here, the amplification process can avoid the loss of too many signal features of the audio signal due to too low volume, and the signal is screened by frequency segmentation to obtain a signal with obvious beat characteristics.

在一种实施方式中,针对波形特征点的放大处理过程,可以使用分段连续放大的方式,具体地,通过确定原始音频信号对应的幅值区间,并按照幅值大小顺序将幅值区间划分为多个幅值等级区间,这里幅值等级越高,幅值等级区间内原始音频信号中波形特征点对应的幅值越大,然后针对不同幅值等级区间内原始音频信号中的波形特征点设置幅值放大系数,并使用幅值放大系数对原始音频信号中的波形特征点进行放大处理,以增强原始音频信号的幅值,这里幅值等级区间越高,幅值放大系数越小。例如,原始音频信号对应幅值区间为0-5,将幅值区间划分为0-1、1-3、3-5共三个幅值等级,针对第一个幅值等级0-1设置幅值放大系数为5,第二个幅值等级1-3设置幅值放大系数为3,第三个幅值等级3-5设置幅值放大系数为2,当然为了避免放大后各个幅值区间之间幅值的差距过大,还可以在对幅值等级最大的幅值区间不进行放大,即幅值放大系数设置为1,以避免音频信号中音量差距过大。这里对不同幅值等级区间对应的幅值放大系数不进行限定,可根据实际需求进行选取。In one embodiment, for the amplification process of the waveform feature points, a segmented continuous amplification method can be used, specifically, by determining the amplitude interval corresponding to the original audio signal, and dividing the amplitude interval according to the order of magnitude For multiple amplitude level intervals, the higher the amplitude level here, the greater the amplitude corresponding to the waveform feature points in the original audio signal in the amplitude level interval, and then for the waveform feature points in the original audio signal in different amplitude level intervals Set the amplitude amplification factor, and use the amplitude amplification factor to amplify the waveform feature points in the original audio signal to enhance the amplitude of the original audio signal. Here, the higher the amplitude level range, the smaller the amplitude amplification factor. For example, the corresponding amplitude interval of the original audio signal is 0-5, and the amplitude interval is divided into three amplitude levels of 0-1, 1-3, and 3-5, and the amplitude level is set for the first amplitude level 0-1. The value magnification factor is 5, the second amplitude level 1-3 sets the amplitude magnification factor to 3, and the third amplitude level 3-5 sets the amplitude magnification factor to 2, of course, in order to avoid the difference between each amplitude range after amplification If the gap between the amplitudes is too large, you can also not amplify the amplitude range with the largest amplitude level, that is, the amplitude amplification factor is set to 1, so as to avoid the excessive volume gap in the audio signal. Here, the amplitude amplification coefficients corresponding to different amplitude level intervals are not limited, and may be selected according to actual needs.

在一种实施方式中,针对音频信号进行频率分段过程,有不同频段反映在音频信号对应该波形上的过零点特性不同,这里可以使用特定频段滤波的方式计算音频信号过零点的次数,进而根据过零点次数筛选出来特定频段信号,针对特定频段信号内的干扰进行滤波,以使得音频信号变得更为平缓。In one embodiment, the frequency segmentation process is performed on the audio signal, and different frequency bands reflect different zero-crossing characteristics on the corresponding waveform of the audio signal. Here, the frequency of the audio signal zero-crossing can be calculated by filtering in a specific frequency band, and then According to the number of zero-crossing points, the specific frequency band signal is screened out, and the interference in the specific frequency band signal is filtered to make the audio signal smoother.

102、使用预先设置的判定条件识别所述目标音频信号中包含的音乐节拍,并根据识别得到的音乐节拍将所述目标音频信号划分为多段音频节拍信号。102. Identify the music beat contained in the target audio signal by using preset determination conditions, and divide the target audio signal into multiple audio beat signals according to the identified music beat.

考虑到目标音频信号具有律动性,为了使得灯光信息能够更贴合目标音频信号的音乐特征,这里可以使用预先设置的判定条件识别目标音频信号中包含的音乐节拍,由于音乐节拍反映了目标音频信号的音乐特征,可以将音乐节拍作为控制灯光信息的依据,以使得灯光信息与音乐律动相同步。Considering the rhythmicity of the target audio signal, in order to make the light information more suitable for the music characteristics of the target audio signal, here you can use the preset judgment conditions to identify the music beat contained in the target audio signal, because the music beat reflects the target audio signal. The music characteristics can be used as the basis for controlling the lighting information, so that the lighting information can be synchronized with the rhythm of the music.

可以理解的是,这里判定条件包括能量判定条件和时间判定条件,具体在识别目标音频信号中包含的音乐节拍的过程中,以目标音频信号中能量值的标记位置对应的时刻作为起始时刻,使用能量判定条件判断预设采样周期内累加的信号能量是否达到设定能量阈值,该预设采样周期为起始时刻之后所选取设定数量的采样周期,在预设采样周期内累加的信号能量达到设定能量阈值的情况下,使用时间判定条件判断时间间隔是否大于设定时间阈值,该时间间隔为起始时刻与当前时刻所形成的时间差值,在时间间隔大于设定时间阈值的情况下,从目标音频信号中截取起始时刻与当前时刻对应的音频信号作为目标音频信号中包含的音乐节拍,并根据音乐节拍将目标音频信号划分为多段音频节拍信号。例如,将目标音频信号中t1作为起始时刻,通过选取起始时刻对应采样周期T1以及在其实时刻t1之后的采样采样周期T2和采样周期T3,计算采样周期T1-T3内的信号能量值之和,如果能量值之和达到设定能量阈值,进一步判断时间间隔是否大于设定时间阈值,在时间间隔大于设定时间阈值的情况下,截取相应时间间隔的音频信号作为一个音乐节拍信号。It can be understood that the determination conditions here include energy determination conditions and time determination conditions. Specifically, in the process of identifying the music beat contained in the target audio signal, the time corresponding to the marked position of the energy value in the target audio signal is used as the starting time, Use energy judgment conditions to judge whether the accumulated signal energy in the preset sampling period reaches the set energy threshold. The preset sampling period is the set number of sampling periods selected after the start time, and the accumulated signal energy in the preset sampling period When the set energy threshold is reached, use the time judgment condition to judge whether the time interval is greater than the set time threshold. The time interval is the time difference formed between the starting time and the current time. When the time interval is greater than the set time threshold Next, 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 audio beat signals according to the music beat. For example, taking t1 in the target audio signal as the starting time, by selecting the sampling period T1 corresponding to the starting time and the sampling period T2 and sampling period T3 after the time t1, calculate the signal energy value in the sampling period T1-T3 And, if the sum of the energy values reaches the set energy threshold, it is further judged whether the time interval is greater than the set time threshold, and if the time interval is greater than the set time threshold, the audio signal of the corresponding time interval is intercepted as a music beat signal.

其中,目标音频信号中能量值的标记位置为目标音频信号中的波谷位置,可以根据目标音频信号中相邻采样周期内的幅值变化,找到音频信号中的拐点位置,确定目标音频信号中的波峰位置和波谷位置,将波谷位置作为目标音频信号中能量值的标记位置。Wherein, the marked position of the energy value in the target audio signal is the valley position in the target audio signal, the position of the inflection point in the audio signal can be found according to the amplitude change in the adjacent sampling period in the target audio signal, and the trough position in the target audio signal can be determined. Peak position and valley position, using the valley position as the marker position of the energy value in the target audio signal.

可以理解的是,这里节拍识别过程采用短时能量判断和节拍间隔限制的方式,避免了灯光信息响应错误以及短时间内频繁变化灯光信息的问题,提高灯光信息的展示效果。It is understandable that the beat recognition process here adopts short-term energy judgment and beat interval limitation, which avoids the problems of wrong response of lighting information and frequent changes of lighting information in a short period of time, and improves the display effect of lighting information.

103、根据每段音频节拍信号对应能量值的变化以及每段音频节拍信号中能量值的标记位置,生成所述目标音频信号适合的灯光控制策略。103. Generate a lighting control strategy suitable for the target audio signal according to the change of the energy value corresponding to each segment of the audio beat signal and the marked position of the energy value in each segment of the audio beat signal.

其中,灯光控制策略包括灯光亮度控制策略和灯光颜色控制策略,具体地,可以根据每段音频节拍信号对应能量值的变化,设定音频节拍信号和灯光亮度值的非线性对应关系,根据非线性对应关系生成目标音频信号适合的灯光亮度控制策略,当目标音频信号执行到每段音频节拍信号中能量值的标记位置,从灯光颜色表中随机选取颜色值作为每个音乐节拍信号对应输出的灯光颜色,并根据每个音乐节拍信号对应输出的灯光颜色生成目标音频信号适合的灯光颜色度控制策略。Among them, the lighting control strategy includes the lighting brightness control strategy and the lighting color control strategy. Specifically, according to the change of the corresponding energy value of each audio beat signal, the nonlinear corresponding relationship between the audio beat signal and the light brightness value can be set. According to the nonlinear The corresponding relationship generates a suitable lighting brightness control strategy for the target audio signal. When the target audio signal is executed to the mark position of the energy value in each audio beat signal, the color value is randomly selected from the light color table as the corresponding output light for each music beat signal color, and generate a light color control strategy suitable for the target audio signal according to the light color output corresponding to each music beat signal.

可以理解的是,由于相同亮度变化值在不同基础亮度中所产生的视觉效果是不相同的,例如,当亮度值从0变化至10相比亮度值从80变化至90时具有更明显的亮度变化效果,这里充分考虑到不同亮度变化对视觉的冲击,设定了音频节拍信号和亮度值的非线性对应关系,并针对不同信号能量值的音频节拍信号适合的亮度值进行分段映射,以保证亮度曲线的连续性,这种对应关系不仅保持了亮度变化曲线和音频信号曲线的相似性,同时使得亮度变化可以更好的贴合音乐节拍的变化。It can be understood that the visual effect produced by the same brightness change value in different basic brightnesses is different, for example, when the brightness value changes from 0 to 10, it has a more obvious brightness than when the brightness value changes from 80 to 90 Change effect, fully considering the impact of different brightness changes on the vision, set the nonlinear correspondence between audio beat signal and brightness value, and perform segmentation mapping for the appropriate brightness value of audio beat signal with different signal energy values, so as to To ensure the continuity of the brightness curve, this correspondence not only maintains the similarity between the brightness change curve and the audio signal curve, but also makes the brightness change better fit the change of the music beat.

进一步地,为了凸显音乐节拍,这里还可以在每个节拍中的波峰位置输出灯光的最高亮度值,进而提升灯光伴随的音乐效果。Furthermore, in order to highlight the music beat, the highest brightness value of the light can also be output at the peak position of each beat, thereby enhancing the music effect accompanied by the light.

具体在生成目标音频信号适合的灯光亮度控制策略的过程中,可以根据每段音频节拍信号对应能量值的变化划分多个能量值区间,针对每个能量值区间设定亮度值上限,并以亮度上限值作为映射边界对每个能量值区间进行灯光亮度映射,得到每段音频节拍信号和灯光亮度值的非线性对应关系,将每段音频节拍信号和灯光亮度值的非线性对应关系转换为每段音频节拍信号对应的灯光亮度曲线,结合每段音频信号对应的灯光亮度曲线生成目标音频信号适合的灯光亮度控制策略。Specifically, in the process of generating a light brightness control strategy suitable for the target audio signal, multiple energy value intervals can be divided according to the change of the energy value corresponding to each audio beat signal, and the upper limit of the brightness value is set for each energy value interval, and the brightness The upper limit value is used as the mapping boundary to map the light brightness for each energy value interval, and the nonlinear correspondence between each audio beat signal and light brightness value is obtained, and the nonlinear correspondence between each audio beat signal and light brightness value is converted into The lighting brightness curve corresponding to each audio beat signal is combined with the lighting brightness curve corresponding to each audio signal to generate a lighting brightness control strategy suitable for the target audio signal.

示例性的,如图2所示,图2示出了音频节拍信号和灯光亮度值的非线性对应关系,图2中音频节拍信号对应能量值的变化为0-1,划分得到3个能量值区间,分别为0-0.2、0.2-0.6、0.6-1,同理,灯光亮度值分布为0-100%,针对0-0.2能量值区间对应的分段音乐节拍信号,将该分段音频节拍信号映射到70%-100%亮度值范围,针对0.2-0.6能量值区间对应的分段音频节拍信号,将该分段音频节拍信号映射到30%-70%亮度值范围,针对0-0.2能量值区间对应的分段音频节拍信号,将该分段音频节拍信号映射到0-30%亮度值范围。Exemplarily, as shown in Figure 2, Figure 2 shows the nonlinear correspondence between the audio beat signal and the light brightness value. In Figure 2, the change of the energy value corresponding to the audio beat signal is 0-1, and three energy values are obtained by dividing The intervals are 0-0.2, 0.2-0.6, and 0.6-1. Similarly, the light brightness value distribution is 0-100%. For the segmented music beat signal corresponding to the energy value interval of 0-0.2, the segmented audio beat The signal is mapped to the luminance value range of 70%-100%, for the segmented audio beat signal corresponding to the energy value range of 0.2-0.6, the segmented audio beat signal is mapped to the luminance value range of 30%-70%, for the energy value range of 0-0.2 The segmented audio beat signal corresponding to the value range, and the segmented audio beat signal is mapped to the 0-30% brightness value range.

具体在生成目标音频信号适合的灯光颜色度控制策略的过程中,由于灯光信息中亮度和颜色同时变化时会产生视觉干扰,考虑到在灯光亮度较低的时刻触发颜色切换会更加自然,这里可以在音频节拍信号对应能量值的波谷位置执行灯光颜色的切换,并在一个音频节拍信号中保持灯光颜色不变,使用亮度值变化来凸显节拍的强弱,当该段音频节拍信号结束且下一个音频节拍信号即将来临时切换到下一种颜色以响应新的节拍。通常情况下,音频信号中一个节拍的持续时间非常短,大约在300ms左右,人眼并不能轻易看出颜色切换时机和亮度值最高点的不同步。Specifically, in the process of generating a suitable lighting color control strategy for the target audio signal, visual interference will occur when the brightness and color in the lighting information change at the same time. Considering that it is more natural to trigger color switching when the lighting brightness is low, here you can Switch the light color at the valley position corresponding to the energy value of the audio beat signal, and keep the light color unchanged in an audio beat signal, use the brightness value change to highlight the strength of the beat, when the audio beat signal ends and the next The audio beat signal is coming and switches to the next color in response to the new beat. Usually, the duration of a beat in an audio signal is very short, about 300ms, and the human eye cannot easily see the timing of color switching and the asynchrony of the highest point of brightness.

可以理解的是,这里灯光颜色的切换可以使用随机的方式从颜色表中进行选取,随机选取颜色功能增加了灯光氛围的多样性,也提高了对音量的适配范围,灯光颜色的切换还可以使用预先设置的灯光色表来顺序切换,预先设置的灯光色表可以根据音乐风格来适配合适的颜色,例如,音乐风格比较偏喜庆,可以在灯光色表中配置更多红色系相关的灯光颜色,音乐风格偏清新,可以在灯光色表中配置更多偏绿色系以及蓝色系相关的灯光颜色。It is understandable that the switching of the light color here can be selected from the color table in a random way. The random color selection function increases the diversity of the lighting atmosphere and also improves the adaptation range of the volume. The switching of the light color is also possible. Use the preset light color table to switch sequentially. The preset light color table can be adapted to the appropriate color according to the music style. For example, if the music style is more festive, you can configure more red-related lights in the light color table Color, music style is fresh, you can configure more greenish and blue related light colors in the light color table.

本发明实施例中增加灯光颜色切换的多样性,设计了随机选取灯光颜色的功能,具体灯光颜色切换指令发出后会触发随机函数生成与上一时刻相异的随机数,并根据随机数读取色表中相应的RGB值,发送相应RGB颜色的切换指令到执行器。该随机选取灯光颜色的方式可以使得同一首音乐重复播放出不同的效果,增加了灯光氛围的多样性,且颜色的切换不受到音量大小的影响,具有更好的普适性。In the embodiment of the present invention, the diversity of light color switching is increased, and the function of randomly selecting light color is designed. After the specific light color switching command is issued, a random function will be triggered to generate a random number different from the previous time, and read according to the random number. The corresponding RGB value in the color table sends the switching command of the corresponding RGB color to the actuator. The method of randomly selecting the color of the light can make the same music play different effects repeatedly, increasing the diversity of the lighting atmosphere, and the color switching is not affected by the volume, which has better universality.

104、响应于灯光控制指令,按照所述灯光亮度控制策略控制灯光亮度伴随每段音频节拍信号对应能量值的变化发生改变,按照所述灯光颜色控制测策略控制灯光颜色在每段音频节拍信号中能量值的标记位置发生切换。104. In response to the light control instruction, control the light brightness according to the light brightness control strategy to change with the energy value corresponding to each audio beat signal, and control the light color in each audio beat signal according to the light color control strategy The marker position of the energy value is switched.

这里灯光控制指令可以由音乐的开启按钮来触发,还可以由灯光的开启按钮来触发,这里灯光控制策略可以嵌入至音乐律动的灯光产品中,执行音乐律动过程中灯光颜色和灯光亮度的控制,具体灯光亮度可以伴随音乐中每段音频节拍信号对应能量值的变化发生改变,灯光颜色可以在每段音频节拍信号中能量值的标记位置发生切换。Here, the light control command can be triggered by the music start button, and can also be triggered by the light start button. Here, the light control strategy can be embedded in the music rhythm lighting products to control the light color and light brightness during the music rhythm process. The specific light brightness can be changed along with the energy value corresponding to each audio beat signal in the music, and the light color can be switched at the marked position of the energy value in each audio beat signal.

在实际应用场景中,图3示出了本发明实施例提供的灯光信息的控制过程的结构框图,首先是信号采样处理步骤201,该步骤主要是对音频采集系统得到的原始音频信号进行处理,包括信号增强和频段分离两个部分,信号增强可以放大波形信号中的特征点避免由于音量太小造成过多信号特征丢失,频段分离可以根据频率对信号进行筛选得到具有明显节拍特性的信号,然后通过节拍识别步骤202计算相邻采样周期内的△y值来判定波峰位置和波谷位置,并对信号中波峰位置和波谷位置进行标记后发送至灯光控制步骤203,灯光控制步骤203根据相应逻辑计算灯光控制策略,包括灯光亮度控制和灯光颜色控制,该灯光亮度控制和灯光颜色控制进行同步处理后将两种控制方式相融合,将融合有灯光控制策略的音频信号发送到执行器,以通过控制输出步骤203输出音频信号在周期内颜色和亮度的变化结果。In the actual application scenario, Fig. 3 shows a structural block diagram of the control process of lighting information provided by the embodiment of the present invention, first of all, the signal sampling processing step 201, which mainly processes the original audio signal obtained by the audio acquisition system, It includes two parts: signal enhancement and frequency band separation. Signal enhancement can amplify the characteristic points in the waveform signal to avoid the loss of too many signal features due to too low volume. Frequency band separation can filter the signal according to the frequency to obtain a signal with obvious beat characteristics, and then Calculate the △y value in the adjacent sampling period through the beat recognition step 202 to determine the peak position and valley position, and mark the peak position and valley position in the signal and send it to the lighting control step 203. The lighting control step 203 calculates according to the corresponding logic Lighting control strategy, including light brightness control and light color control. After the light brightness control and light color control are synchronized, the two control methods are integrated, and the audio signal fused with the lighting control strategy is sent to the actuator to pass the control The outputting step 203 outputs the change result of the color and brightness of the audio signal within a period.

在实际应用场景中,图4示出了本发明实施例提供的灯光信息的控制过程的逻辑框图,在通过音频信号输入步骤301后,执行对音频信号进行处理步骤302,以及执行节拍识别步骤303,并从音频信号中识别出波峰位置和波谷位置后,进一步使用波峰位置和波谷位置来判断是否满足节拍条件,同时使用识别得到的节拍来控制灯光信息的变化,一方面针对灯光颜色的控制,首先判断能量值累加是否达到设定能量值阈值,执行判断判断节正确步骤304,若达到设定能量值阈值,进一步使用计时器判断时间间隔是否达到设定时间阈值,执行判断间隔满足步骤304,若未达到设定能量值阈值,则执行颜色不切换步骤306,控制灯光颜色不执行切换,若达到设定时间阈值,则执行颜色切换步骤307,控制灯光颜色执行切换并且计时器复位重新计时,若未达到设定时间阈值,则执行颜色不切换步骤306,控制灯光颜色不执行切换,针对灯光颜色执行切换的情况,执行随机数生成步骤308,可从色表中随机选取一个颜色值作为灯光颜色进行切换,并通过控制器输出相应灯光颜色,另一方面针对灯光亮度的控制,在识别得到音频信号中的波峰位置和波谷位置后,可执行亮度控制步骤309,直接使用音频信号中能量值的变化来控制灯光亮度的改变,并执行控制器输出步骤310,通过控制器输出相应灯光亮度。In an actual application scenario, Fig. 4 shows a logic block diagram of the control process of light information provided by the embodiment of the present invention, after the audio signal is input in step 301, the audio signal is processed in step 302, and the beat identification step 303 is executed , and identify the peak position and valley position from the audio signal, further use the peak position and valley position to judge whether the beat condition is met, and use the recognized beat to control the change of light information. On the one hand, it is aimed at the control of light color. First judge whether the accumulated energy value reaches the set energy value threshold, and execute the step 304 of judging whether the judgment section is correct, if it reaches the set energy value threshold, further use the timer to judge whether the time interval reaches the set time threshold, and execute the judgment interval to meet the step 304, If the set energy value threshold is not reached, the color switching step 306 is executed, and the lighting color is controlled not to be switched; if the set time threshold is reached, the color switching step 307 is executed, the lighting color is controlled to switch and the timer resets to count again, If the set time threshold is not reached, perform the step 306 of not switching the color, and control the color of the light without switching. For the case of switching the color of the light, perform the random number generation step 308, and randomly select a color value from the color table as the light The color is switched, and the corresponding light color is output through the controller. On the other hand, for the control of the light brightness, after the peak position and the valley position in the audio signal are identified, the brightness control step 309 can be executed to directly use the energy value in the audio signal To control the change of the brightness of the light, and execute the controller output step 310, and output the corresponding brightness of the light through the controller.

考虑到目标音频信号中存在一定的扰动或者人耳无法辨别的非常小的音乐节拍,为了提高灯光信息中灯光颜色控制的准确率,这里采用短时能量判断的形式,即当前音乐节拍信号来临时开始对当前时刻之后一段时间内的信号能量进行累加,当能量值累加达到设定能量阈值后,判断相应时间间隔是否到达设定时间间隔,在时间间隔达到设定时间间隔的情况下,执行灯光颜色的切换,在时间间隔未达到设定时间间隔的情况下,不执行灯光颜色的切换。例如,时间间隔△t=60ms,当t时刻判定为颜色切换时刻,则计算此时刻之后60ms内的能量值进行判断是否为正确的切换实际,虽然在时序上延迟了几个周期,但由于系统周期短,视觉上并没有明显的延时效果。同时,为了避免短时间频繁切换颜色,设置了时间间隔阈值作为判定条件,即当系统发出的切换颜色指令后,计时器复位并重新开始计时,直至下一次切换颜色指令发出。整个颜色控制算法部分保证了一个节拍中既有亮度的跟随也有颜色的跟随,当遇到整体亮度变化较小的情况,颜色的切换更好的弥补了这一点不足。Considering that there is a certain disturbance in the target audio signal or a very small music beat that cannot be discerned by the human ear, in order to improve the accuracy of the light color control in the light information, the form of short-term energy judgment is used here, that is, when the current music beat signal comes Start to accumulate the signal energy for a period of time after the current moment. When the accumulated energy value reaches the set energy threshold, judge whether the corresponding time interval reaches the set time interval. When the time interval reaches the set time interval, execute the lighting For color switching, if the time interval does not reach the set time interval, the light color switching will not be performed. For example, the time interval △t=60ms, when the time t is judged as the color switching time, then calculate the energy value within 60ms after this time to judge whether it is the correct switching reality, although it is delayed by several cycles in the timing, but due to the system The period is short, and there is no obvious delay effect visually. At the same time, in order to avoid frequent color switching in a short period of time, a time interval threshold is set as a judgment condition, that is, when the system sends out a color switching command, the timer resets and restarts timing until the next color switching command is issued. The entire color control algorithm partly ensures that there is both brightness and color following in a beat. When the overall brightness changes are small, the color switching can better make up for this deficiency.

本发明实施例提供的灯光信息的控制方法,在获取原始音频信号经过处理后得到的具有节拍特性的目标音频信号后,使用预先设置的判定条件识别目标音频信号中包含的音乐节拍,并根据识别得到的音乐节拍将目标音频信号划分为多段音频节拍信号,进一步根据每段音频节拍信号对应能量值的变化以及每段音频节拍信号中能量值的标记位置,生成目标音频信号适合的灯光控制策略,该灯光策略包括灯光亮度控制策略和灯光颜色控制策略,响应于灯光控制指令,按照灯光亮度控制策略控制灯光亮度伴随每段音频节拍信号对应能量值的变化发生改变,按照灯光颜色控制策略控制灯光颜色在每段音频节拍信号中能量值的标记位置发生切换。由此可知,与现有使用频谱分析音频信号来对灯光信息进行控制的方式相比,本发明实施例通过识别音频信号中的音乐节拍,并针对音乐节拍来设置灯光信息,使得灯光可以随着音乐变化的相应旋律来切换颜色和亮度,从而解决了现有灯光信息的控制过程中灯光的响应和音乐节拍的贴合度不高的问题。The light information control method provided by the embodiment of the present invention, after obtaining the target audio signal with beat characteristics obtained after the original audio signal is processed, uses the preset determination conditions to identify the music beat contained in the target audio signal, and according to the identified The obtained music beat divides the target audio signal into multiple audio beat signals, and further generates a suitable lighting control strategy for the target audio signal according to the change of the corresponding energy value of each audio beat signal and the marking position of the energy value in each audio beat signal. The lighting strategy includes a lighting brightness control strategy and a lighting color control strategy. In response to the lighting control command, the lighting brightness is controlled according to the lighting brightness control strategy. With the change of the energy value corresponding to each audio beat signal, the lighting color is controlled according to the lighting color control strategy. The marker position of the energy value in each audio beat signal switches. It can be seen that, compared with the existing way of using frequency spectrum analysis audio signal to control light information, the embodiment of the present invention recognizes the music beat in the audio signal and sets the light information according to the music beat, so that the light can follow the The corresponding melody of the music changes to switch the color and brightness, thus solving the problem that the response of the light and the beat of the music do not fit well in the control process of the existing light information.

基于上述实施例,本发明的另一实施例提供了一种灯光信息的控制装置,如图4所示,所述装置包括:Based on the above embodiments, another embodiment of the present invention provides a light information control device, as shown in Figure 4, the device includes:

获取单元21,可以用于获取原始音频信号经过处理后得到的具有节拍特性的目标音频信号;The acquisition unit 21 can be used to acquire a target audio signal with beat characteristics obtained after the original audio signal is processed;

划分单元22,可以用于使用预先设置的判定条件识别所述目标音频信号中包含的音乐节拍,并根据识别得到的音乐节拍将所述目标音频信号划分为多段音频节拍信号;The dividing unit 22 may be used to identify the music beat contained in the target audio signal using preset determination conditions, and divide the target audio signal into multiple audio beat signals according to the identified music beat;

生成单元23,可以用于根据每段音频节拍信号对应能量值的变化以及每段音频节拍信号中能量值的标记位置,生成所述目标音频信号适合的灯光控制策略,所述灯光控制策略包括灯光亮度控制策略和灯光颜色控制策略;The generating unit 23 may be configured to generate a lighting control strategy suitable for the target audio signal according to the change of the energy value corresponding to each segment of the audio beat signal and the marking position of the energy value in each segment of the audio beat signal. The lighting control strategy includes a lighting control strategy Brightness control strategy and light color control strategy;

控制单元24,可以用于响应于灯光控制指令,按照所述灯光亮度控制策略控制灯光亮度伴随每段音频节拍信号对应能量值的变化发生改变,按照所述灯光颜色控制测策略控制灯光颜色在每段音频节拍信号中能量值的标记位置发生切换。The control unit 24 can be used to respond to the light control instruction, control the light brightness according to the light brightness control strategy to change with the change of the energy value corresponding to each segment of the audio beat signal, and control the light color according to the light color control strategy every time The position of the marker for the energy value in the audio beat signal of the segment toggles.

在实际应用场景中,所述获取单元21包括:In an actual application scenario, the acquisition unit 21 includes:

处理模块,可以用于使用分段连续放大的方式对原始音频信号中的波形特征点进行放大处理,以增强原始音频信号;The processing module can be used to amplify the waveform feature points in the original audio signal by using segmented continuous amplification to enhance the original audio signal;

分段模块,可以用于针对放大处理后的原始音频信号进行频率分段,得到具有节拍特性的目标音频信号。The segmentation module can be used to perform 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 specifically be used to determine the amplitude interval corresponding to the original audio signal, and divide the amplitude interval into a plurality of amplitude level intervals according to the order of magnitude, and the amplitude The higher the level, the greater the amplitude corresponding to the waveform feature point in the original audio signal within the amplitude level interval;

所述处理模块,具体还可以用于针对不同幅值等级区间内原始音频信号中的波形特征点设置幅值放大系数,并使用幅值放大系数对原始音频信号中的波形特征点进行放大处理,以增强原始音频信号的幅值,所述幅值等级区间越高,所述幅值放大系数越小。The processing module can specifically be used to set an amplitude amplification factor for the waveform feature points in the original audio signal in different amplitude level intervals, and use the amplitude amplification factor to amplify the waveform feature points in the original audio signal, In order to enhance the amplitude of the original audio signal, the higher the amplitude level range, the smaller the amplitude amplification factor.

在实际应用场景中,所述判定条件包括能量判定条件和时间判定条件,所述划分单元22包括:In an actual application scenario, the determination conditions include energy determination conditions and time determination conditions, and the division unit 22 includes:

第一判断模块,可以用于以目标音频信号中能量值的标记位置对应的时刻作为起始时刻,使用能量判定条件判断预设采样周期内累加的信号能量是否达到设定能量阈值,所述预设采样周期为起始时刻之后所选取设定数量的采样周期;The first judging module can be used to use the time corresponding to the marked position of the energy value in the target audio signal as the starting time, and use the energy judging condition to judge whether the accumulated signal energy in the preset sampling period reaches the set energy threshold, the preset Let the sampling period be the set number of sampling periods selected after the initial moment;

第二判断模块,可以用于在所述预设采样周期内累加的信号能量达到所述设定能量阈值的情况下,使用时间判定条件判断时间间隔是否大于设定时间阈值,所述时间间隔为起始时刻与当前时刻所形成的时间差值;The second judging module may be used to judge whether the time interval is greater than the set time threshold using the time judging condition when the accumulated signal energy in the preset sampling period reaches the set energy threshold, and the time interval is The time difference between the starting moment and the current moment;

划分模块,可以用于在所述时间间隔大于所述设定时间阈值的情况下,从所述目标音频信号中截取起始时刻与当前时刻对应的音频信号作为目标音频信号中包含的音乐节拍,并根据所述音乐节拍将所述目标音频信号划分为多段音频节拍信号。The dividing module can be used to intercept 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 when the time interval is greater than the set time threshold, and dividing the target audio signal into multiple audio beat signals according to the music beat.

在实际应用场景中,所述划分单元22还包括:In an actual application scenario, the division unit 22 also includes:

确定模块,可以用于在所述以目标音频信号中能量值的标记位置对应的时刻作为起始时刻,使用能量判定条件判断预设采样周期内累加的信号能量是否达到设定能量阈值之前,根据所述目标音频信号中相邻采样周期内的幅值变化,确定所述目标音频信号中的波峰位置和波谷位置,将所述波谷位置作为目标音频信号中能量值的标记位置。The determination module can be used to use the energy determination condition to determine whether the accumulated signal energy in the preset sampling period reaches the set energy threshold before the time corresponding to the marked position of the energy value in the target audio signal is used as the starting time, according to Amplitude changes in adjacent sampling periods in the target audio signal determine peak positions and valley positions in the target audio signal, and use the valley positions as marker positions of energy values in the target audio signal.

在实际应用场景中,所述生成单元23包括:In an actual application scenario, the generating unit 23 includes:

设定模块,可以用于根据每段音频节拍信号对应能量值的变化,设定音频节拍信号和灯光亮度值的非线性对应关系,根据所述非线性对应关系生成所述目标音频信号适合的灯光亮度控制策略;The setting module can be used to set the nonlinear corresponding relationship between the audio beat signal and the light brightness value according to the change of the corresponding energy value of each audio beat signal, and generate the suitable light for the target audio signal according to the nonlinear corresponding relationship Brightness control strategy;

选取模块,可以用于当目标音频信号执行到每段音频节拍信号中能量值的标记位置,从灯光颜色表中随机选取颜色值作为每个音乐节拍信号对应输出的灯光颜色,并根据每个音乐节拍信号对应输出的灯光颜色生成所述目标音频信号适合的灯光颜色度控制策略。The selection module can be used to randomly select the color value from the light color table as the light color corresponding to the output of 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 according to each music beat signal The beat signal corresponds to the output light color to generate a light color degree control strategy suitable for the target audio signal.

在实际应用场景中,所述设定模块,具体可以用于根据每段音频节拍信号对应能量值的变化划分多个能量值区间;In an actual application scenario, the setting module may specifically be used to divide a plurality of energy value intervals according to changes in energy values corresponding to each segment of the audio beat signal;

所述设定模块,具体还可以用于针对每个能量值区间设定亮度值上限,并以所述亮度上限值作为映射边界对每个能量值区间进行灯光亮度映射,得到每段音频节拍信号和灯光亮度值的非线性对应关系;The setting module can specifically be used to set the upper limit of the brightness value for each energy value interval, and use the brightness upper limit value as a mapping boundary to perform light brightness mapping on each energy value interval to obtain each audio beat Non-linear correspondence between signal and light brightness value;

所述设定模块,具体还可以用于将所述每段音频节拍信号和灯光亮度值的非线性对应关系转换为每段音频节拍信号对应的灯光亮度曲线,结合所述每段音频信号对应的灯光亮度曲线生成所述目标音频信号适合的灯光亮度控制策略。The setting module can also be used to convert the non-linear correspondence between each segment of the audio beat signal and the light brightness value into a light brightness curve corresponding to each segment of the audio beat signal, combined with the corresponding The light brightness curve generates a light brightness control strategy suitable for the target audio signal.

基于上述方法实施例,本发明的另一实施例提供了一种存储介质,其上存储有可执行指令,该指令被处理器执行时使处理器实现上述方法。Based on the foregoing method embodiments, another embodiment of the present invention provides a storage medium on which executable instructions are stored, and when the instructions are executed by a processor, the processor implements the foregoing method.

基于上述实施例,本发明的另一实施例提供了一种灯光信息的控制设备,包括:Based on the above embodiments, another embodiment of the present invention provides a lighting information control device, including:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,storage means for storing one or more programs,

其中,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现上述的方法。Wherein, when the one or more programs are executed by the one or more processors, the one or more processors are made to implement the above method.

上述系统、装置实施例与方法实施例相对应,与该方法实施例具有同样的技术效果,具体说明参见方法实施例。装置实施例是基于方法实施例得到的,具体的说明可以参见方法实施例部分,此处不再赘述。本领域普通技术人员可以理解:附图只是一个实施例的示意图,附图中的模块或流程并不一定是实施本发明所必须的。The above-mentioned system and device embodiments correspond to the method embodiments, and have the same technical effect as the method embodiments. For details, refer to the method embodiments. The device embodiment is obtained based on the method embodiment. For specific description, please refer to the method embodiment part, which will not be repeated here. Those skilled in the art can understand that the accompanying drawing is only a schematic diagram of an embodiment, and the modules or processes in the accompanying drawing are not necessarily necessary for implementing the present invention.

本领域普通技术人员可以理解:实施例中的装置中的模块可以按照实施例描述分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those of ordinary skill in the art can understand that: the modules in the device in the embodiment may be distributed in the device in the embodiment according to the description in the embodiment, or may be changed and located in one or more devices different from the embodiment. The modules in the above embodiments can be combined into one module, and can also be further split into multiple sub-modules.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the 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 Lighting information control method, device, storage medium and equipment Active CN115520090B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211377986.5A CN115520090B (en) 2022-11-04 2022-11-04 Lighting information control method, device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211377986.5A CN115520090B (en) 2022-11-04 2022-11-04 Lighting information control method, device, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN115520090A true CN115520090A (en) 2022-12-27
CN115520090B CN115520090B (en) 2025-05-02

Family

ID=84705427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211377986.5A Active CN115520090B (en) 2022-11-04 2022-11-04 Lighting information control method, device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN115520090B (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

Also Published As

Publication number Publication date
CN115520090B (en) 2025-05-02

Similar Documents

Publication Publication Date Title
CN106304539B (en) A kind of music lantern controller design method followed based on rhythm
CN106211502A (en) A kind of method and system of audio frequency control light
CN101252801B (en) Light control method and device
CN108551710B (en) User interface for controlling a lighting system using sound
CN111526644A (en) Control method and device for light display
CN106875930B (en) Light control method and system based on real-time detection of song accompanying sound and microphone voice
CN113573442A (en) Method, apparatus, and computer-readable storage medium for audio control of scenes
CN110027469B (en) Vehicle-mounted music based lamp control method and system and vehicle
US20150084518A1 (en) Lighting Control System
CN106332378B (en) Intelligent LED running lamp and its control method based on music rhythm identification
CN103889109B (en) The drive unit that a kind of emotion control LED light color and brightness change
CN110461077A (en) A kind of lamp light control method, Light Control Unit and readable storage medium storing program for executing
JP6179871B2 (en) Music washing machine and control method
CN109640465A (en) Lamp light control method, device, equipment and the storage medium of automatic identification music
CN115520090A (en) Lighting information control method, device, storage medium and equipment
CN113727501B (en) Sound-based light dynamic control method, device, system and storage medium
CN102123546A (en) Full-color acousto-optic conversion control method and system
CN106383676B (en) Instant photochromic rendering system for sound and application thereof
CN107172784A (en) A kind of adaptive lamp light control method and system based on stage set sound
CN104470064A (en) Method for changing brightness stage through sound and motion sensing
CN119045773A (en) Display control method and system for audio power amplifier
CN105810226A (en) A method and system for controlling music expression effect
US20200225751A1 (en) Wireless control apparatus and method for haptic device
CN114449713A (en) Intelligent audio recognition light control system
CN105611693B (en) The control method and device of sound equipment and desk lamp with dimmer switch

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
GR01 Patent grant
GR01 Patent grant