CN110461077A - A kind of lamp light control method, Light Control Unit and readable storage medium storing program for executing - Google Patents

A kind of lamp light control method, Light Control Unit and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110461077A
CN110461077A CN201910794247.8A CN201910794247A CN110461077A CN 110461077 A CN110461077 A CN 110461077A CN 201910794247 A CN201910794247 A CN 201910794247A CN 110461077 A CN110461077 A CN 110461077A
Authority
CN
China
Prior art keywords
frequency
audio data
audio
light
light control
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
CN201910794247.8A
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.)
CHONGQING HUIKE JINYANG TECHNOLOGY Co Ltd
Original Assignee
Hefei Huike Jinyang Technology 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 Hefei Huike Jinyang Technology Co Ltd filed Critical Hefei Huike Jinyang Technology Co Ltd
Priority to CN201910794247.8A priority Critical patent/CN110461077A/en
Publication of CN110461077A publication Critical patent/CN110461077A/en
Pending legal-status Critical Current

Links

Classifications

    • 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

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The application belongs to intelligent lighting technical field, mainly provide a kind of lamp light control method, Light Control Unit and readable storage medium storing program for executing, by acquiring the audio data of preset length audio section, and according to the sample frequency of the amplitude of variation of audio data adjustment audio data;Obtain the centre frequency of the audio data, then corresponding light driving signal is generated according to the centre frequency and preset frequency color relations, corresponding color lamp is driven to light by light driving signal, it realizes light and changes the effect being changed according to audio in real time, improve the harmony between light variation effect and music rhythm, it solves in existing music illumination scheme, light can not be converted according to music rhythm in real time, there is a problem of that the harmony between light variation effect and music rhythm variation and timing is poor.

Description

A kind of lamp light control method, Light Control Unit and readable storage medium storing program for executing
Technical field
The application belongs to intelligent lighting technical field more particularly to a kind of lamp light control method, Light Control Unit and can Read storage medium.
Background technique
Intelligent scene illumination refers under intelligent illuminating system environment, passes through wireless control apparatus (remote controler, mobile phone application Deng) switch of light, brightness and color etc. are adjusted, realize the control of the different lighting effects under different scenes.Often Scene lighting has music lighting effects, and light changes with music.It realizes music lantern lighting effects, needs using sound Happy color lamp controller.The equipment that music lantern controller adjusts color lamp when being a kind of broadcasting music in real time.Music common at present The implementation of color lamp controller includes two kinds: one is according to specific music, artificial layout color lamp color change sequence, so Change color lamp color according to the colour sequential of setting when playing music afterwards, this method may be implemented preferable color lamp color and become Change effect, but need the color change sequence different to the difference layout of different songs, this needs to consume a large amount of time and people Power cost.Another method is that timing changes color lamp color when playing music, and this method operation is fairly simple, and realization is also compared It is easy, but the harmony between color lamp light variation effect and music rhythm variation and timing is poor.
Therefore, in existing music illumination scheme, light can not be converted according to music rhythm in real time, and there are light variations Effect and music rhythm change the poor problem of the harmony between timing.
Summary of the invention
The application's is designed to provide a kind of lamp light control method, Light Control Unit and readable storage medium storing program for executing, it is intended to It solves in existing music illumination scheme, light can not be converted according to music rhythm in real time, and there are light variation effect and sounds Happy melody changes the poor problem of the harmony between timing.
This application provides a kind of lamp light control method, the lamp light control method includes:
The audio data of preset length audio section is acquired, and audio data is adjusted according to the amplitude of variation of the audio data Sample frequency;
Obtain the centre frequency of the audio data;
Corresponding light driving signal, the light are generated according to the centre frequency and preset frequency color relations Driving signal is for driving corresponding color lamp to light.
Optionally, the sample frequency that audio data is adjusted according to the amplitude of variation of the audio data, comprising:
Judge whether the amplitude of variation of the audio data is steady;
If steady, the audio data of next audio section is acquired according to the preset time interval, if unstable, reduction is adopted Collect the time interval of the audio data of next audio section.
Optionally, whether the amplitude of variation for judging the audio data is steady, comprising:
Obtain the highest audio frequency and lowest audible frequencies of the audio data, and calculate the highest audio frequency with Frequency difference between the lowest audible frequencies;
Judge whether the frequency difference is greater than predeterminated frequency threshold value;
If it is not, then determining that the amplitude of variation of the audio data is steady, if so, determining the variation width of the audio data It spends unstable.
Optionally, the centre frequency for obtaining the audio data, comprising:
Obtain the highest audio frequency and lowest audible frequencies of the audio data;
Using the average value of the highest audio frequency and the lowest audible frequencies as the center of audio data frequency Rate.
Optionally, the centre frequency for obtaining the audio data, comprising:
Calculate the frequency median of the audio data;
Using the frequency median as the centre frequency of the audio data.
Optionally, the centre frequency for obtaining the audio data, comprising:
The audio time domain signal of the audio data is converted into audio frequency-region signal by Fourier transform principle;
The audio frequency-region signal average value for calculating the audio data, centered on the audio frequency-region signal average value Frequency.
Optionally, described to generate corresponding light driving letter according to the centre frequency and preset frequency color relations Number, comprising:
Corresponding frequency Color Range is confirmed according to the centre frequency;
Corresponding light driving data is obtained according to the frequency Color Range and frequency color relations;Wherein, each Frequency Color Range corresponds to one group of light driving data;
The light driving data is converted into corresponding light driving signal.
Optionally, after the centre frequency for obtaining the audio data, further includes:
Delay time is generated according to the centre frequency;
The time that the light driving signal drives the color lamp to light is determined according to the delay time.
Present invention also provides a kind of Light Control Unit, institute's Light Control Unit includes:
Audio data collecting module, for acquiring the audio data of preset length audio section, and according to the audio data Amplitude of variation adjustment audio data sample frequency;
Centre frequency obtains module, for obtaining the centre frequency of the audio data;
Light drive module, for generating corresponding light according to the centre frequency and preset frequency color relations Driving signal, the light driving signal is for driving corresponding color lamp to light.
Present invention also provides a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing is stored with computer program, described It is realized when computer program is executed by processor as described in above-mentioned any one the step of lamp light control method.
This application provides a kind of lamp light control method, Light Control Unit and readable storage medium storing program for executing, default by acquiring The audio data of length audio section, and according to the sample frequency of the amplitude of variation of audio data adjustment audio data;It obtains Then the centre frequency of the audio data generates corresponding lamp according to the centre frequency and preset frequency color relations Optical drive signal drives corresponding color lamp to light by light driving signal, realizes light and changes progress according to audio in real time The effect of variation improves the harmony between light variation effect and music rhythm, solves in existing music illumination scheme, Light can not be converted according to music rhythm in real time, and there are between light variation effect and music rhythm variation and timing The poor problem of harmony.
Detailed description of the invention
Fig. 1 is the flow diagram for the lamp light control method that one embodiment of the application provides.
A kind of implementation process signal of step S10 in the lamp light control method that Fig. 2 provides for one embodiment of the application Figure.
A kind of implementation process signal of step S11 in the lamp light control method that Fig. 3 provides for one embodiment of the application Figure.
The first implementation process of step S20 is shown in the lamp light control method that Fig. 4 provides for one embodiment of the application It is intended to.
Second of implementation process of step S20 is shown in the lamp light control method that Fig. 5 provides for one embodiment of the application It is intended to.
The third implementation process of step S20 is shown in the lamp light control method that Fig. 6 provides for one embodiment of the application It is intended to.
A kind of implementation process signal of step S30 in the lamp light control method that Fig. 7 provides for one embodiment of the application Figure.
Fig. 8 is the flow diagram for the lamp light control method that another embodiment of the application provides.
Fig. 9 is the structural schematic diagram for the Light Control Unit that one embodiment of the application provides.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
Rhythm is the tissue of audio in time, and rhythm includes beat and speed the two concepts, and beat refers to that audio is advised The alternate movement of the power of rule property, that is, clap combination a little, speed refers to the rate of this regular movements.Due to the masking on human auditory system Audio is divided a series of critical band by effect on frequency domain.In the case where acoustic pressure is constant, when noise is limited in some When in bandwidth, the subjective loudness that human ear is felt is also constant, and one in this frequency bandwidth has complicated envelope Signal loudness be equivalent to band width centre frequency position a pure tone loudness, and it is unrelated with the frequency distribution of signal itself, So in the process for the frequency data acquisition for carrying out audio, it is important to find the centre frequency of the bandwidth of music signal, being based on should Corresponding light variation effect is arranged in centre frequency, to express music rhythm at that time.
Fig. 1 is the flow diagram for the lamp light control method that one embodiment of the application provides, shown in Figure 1, this The lamp light control method in embodiment includes:
Step S10: the audio data of acquisition preset length audio section, and adjusted according to the amplitude of variation of the audio data The sample frequency of audio data;
Step S20: the centre frequency of the audio data is obtained;
Step S30: generating corresponding light driving signal according to the centre frequency and preset frequency color relations, The light driving signal is for driving corresponding color lamp to light.
In the present embodiment, the audio data of preset length audio section is acquired first, and according to the change of the audio data Change amplitude adjusts the sample frequency of audio data, specifically, the amplitude of variation of the audio data refers mainly to audio in the audio section Frequency amplitude of variation, the preset length audio section can be used as first current audio section, and the time span of the audio section can To preset, for example, being set as needed as 10us or 20us, the sample frequency of audio data can be according to previous audio The amplitude of variation of the audio data of section acquisition is adjusted, i.e., the acquisition time node of subsequent every a segment of audio data can root Be arranged according to the last period audio data, the acquisition time intervals of two adjacent audio sections by the last period audio data amplitude of variation It determines, if the frequency amplitude of variation of the audio data is higher, the acquisition time interval is reduced, if the frequency of the audio data Rate amplitude of variation is lower, then improves the acquisition time interval.The time interval can preset multiple preset time intervals, If for example, the time interval can be set to 10us perhaps 15us the last period audio data amplitude of variation it is relatively steady or Amplitude of variation is less than preset threshold, then acquisition time is set to 15us, if the amplitude of variation of the last period audio data is uneven Steady or amplitude of variation is greater than preset threshold, then acquisition time is set to 10us.
Further, after the audio data for obtaining the audio data, the centre frequency of the audio data is calculated. Then corresponding light driving signal is generated according to the centre frequency and preset frequency color relations, it is corresponding to drive Color lamp is lighted.
In the present embodiment, the corresponding one group of light driving signal of each centre frequency, one group of light driving signal can drive Dynamic color lamp generates a variety of lighting effects successively changed, which can be the centre frequency of a bit of audio, for example, one Small section audio is between 8kHz to 10kHz, and wherein centre frequency can be 9kHz, in one embodiment, each centre frequency Map one group of light driving signal, i.e., each centre frequency and corresponding light driving signal at preset frequency color relations, Therefore, corresponding fluorescent tube driving signal is produced based on the centre frequency and preset frequency color relations, to drive Color lamp generates corresponding color transformed effect.
In one embodiment, lamp light control method in the present embodiment further include: video decoding is divided into video flowing and sound Frequency flows, and generates corresponding audio data based on the audio stream.
In this example it is shown that the Scaler chip of device receives HDMI/Displayport signal, pass through video solution Code is divided into video flowing and audio stream two parts, and generates corresponding audio data based on the audio stream, passes through the sound collected Frequency is according to corresponding light driving signal is generated, to drive color lamp to light, so that the process in video playing realizes that light follows It is synchronous with light to reach vision for the effect that audio rhythm is converted.In one application, such as in scene of game, display Device receives HDMI/Displayport signal, is divided into video flowing and audio stream two parts by video decoding, and be based on the sound Frequency stream generates corresponding audio data, corresponding light driving signal is generated by the audio data collected, to drive Color lamp is lighted, which can be embedded in Baffle Box of Bluetooth or display frame, is realized that vision is synchronous with light, is promoted user's Game experiencing.
In one embodiment, shown in Figure 2, it is described that audio data is adjusted according to the amplitude of variation of the audio data Sample frequency, comprising:
Step S11: judge whether the amplitude of variation of the audio data is steady;
Step S12: if steady, acquiring the audio data of next audio section according to the preset time interval, if unstable, Then reduce the time interval for acquiring the audio data of next audio section.
In the present embodiment, it every time between the timing node of acquisition audio data there are a preset time interval, is adopting It, can be by judging the amplitude of variation of the audio data whether steadily to next audio data collecting during collecting audio data Timing node be adjusted, for example, if the amplitude of variation of the audio data is more steady, i.e., when the frequency in leading portion changes Amplitude is lower, then acquires the audio data of next audio section according to the preset time interval, avoids frequently acquiring and handling audio Data cause power consumption to increase problem, if judging, the amplitude of variation of the audio data is unstable, in order to make fluorescent tube transform effect It follows audio to change in time, needs to reduce the time interval for acquiring the audio data of next audio section, for example, by the time interval It is set as the 3/4 or 1/2 of preset time interval.
In one embodiment, shown in Figure 3, step S11: judge whether the amplitude of variation of the audio data puts down Surely, comprising:
Step S111: the highest audio frequency and lowest audible frequencies of the audio data are obtained, and calculates the highest Frequency difference between audio frequency and the lowest audible frequencies;
Step S112: judge whether the frequency difference is greater than predeterminated frequency threshold value;If it is not, then determining the audio data Amplitude of variation it is steady, if so, determining that the amplitude of variation of the audio data is unstable.
In the present embodiment, can by obtaining the highest audio frequency and lowest audible frequencies of the audio data, and The frequency difference between the highest audio frequency and the lowest audible frequencies is calculated to judge the frequency variation of the audio section It is whether steady, if the frequency difference is less than predeterminated frequency threshold value, it can be determined that the audio data variation of the audio section is steady, if The frequency difference is greater than predeterminated frequency threshold value, then illustrates to change greatly in the audio data of the audio section, the audio of the audio section Data variation is unstable, needs to reduce the time interval of acquisition audio data, promotes the association of light transformation effect and audio rhythm Tonality.
In one embodiment, shown in Figure 4, step S20: the centre frequency for obtaining the audio data, packet It includes:
Step S211: the highest audio frequency and lowest audible frequencies of the audio data are obtained;
Step S212: using the average value of the highest audio frequency and the lowest audible frequencies as the audio data Centre frequency.
In the present embodiment, by obtaining the highest audio frequency and lowest audible frequencies of the audio data, calculating should The average value of highest audio frequency and lowest audible frequencies, and using the average value as the centre frequency of the audio data, example Such as, the lowest audio frequency audio of the audio data is 8kHz, highest audio frequency 10kHz, the then centre frequency of the audio section It can be 9kHz.
In one embodiment, shown in Figure 5, step S20: the centre frequency for obtaining the audio data, packet It includes:
Step S221: the frequency median of the audio data is calculated;
Step S222: using the frequency median as the centre frequency of the audio data.
In the present embodiment, after the frequency data for obtaining the audio data, the audio is calculated according to the frequency data The frequency median of data, using the frequency median as the centre frequency of the audio data, specifically, using position in frequency Number can get the frequency representative value of the entire audio data, thus not by the maximum or minimum shadow in the audio section It rings, improves the representativeness of centre frequency.
In one embodiment, shown in Figure 6, step S20: the centre frequency for obtaining the audio data, packet It includes:
Step S231: the audio time domain signal of the audio data is converted to by audio frequency domain by Fourier transform principle Signal;
Step S232: the audio frequency-region signal average value of the audio data is calculated, the audio frequency-region signal is averaged Frequency centered on value.
In the present embodiment, after the frequency data for obtaining the audio data, by Fourier transform principle by the sound The audio time domain signal of frequency evidence is converted to audio frequency-region signal, and the audio frequency-region signal for then calculating the audio data is average Value, by frequency centered on the audio frequency-region signal average value.
In one embodiment, shown in Figure 7, step S30: described according to the centre frequency and preset frequency Color relations generate corresponding light driving signal, comprising:
Step S301: corresponding frequency Color Range is confirmed according to the centre frequency;
Step S302: corresponding light driving data is obtained according to the frequency Color Range and frequency color relations; Wherein, the corresponding one group of light driving data of each frequency Color Range;
Step S303: the light driving data is converted into corresponding light driving signal.
In the present embodiment, by the way that all centre frequencies are divided into multiple frequency Color Ranges, i.e., adjacent center frequency Rate or the corresponding frequency Color Range of centre frequency in a certain frequency range, avoid in the center of adjacent audio section frequency Rate differs the problem of lesser situation also needs to be separately provided one group of light driving data, leads to light driving power consumption, for example, if The centre frequency of the audio data is 8.01kHz, and the centre frequency of next audio section is 8.03kHz, then when centre frequency is Same frequency Color Range, each frequency Color Range corresponding one group of light driving number are mapped to when 8.01kHz and 8.03kHz According to the centre frequency of that is, described audio data is 8.01kHz, and the centre frequency of next audio section is 8.03kHz, is generated identical Light transformation effect, by the way that all centre frequencies are divided in multiple lesser frequency Color Ranges, according to the frequency color The group number of the number setting light driving data of range avoids each center in the case where not influencing light transformation effect The problem of existing transformation of the corresponding one group of light driving data of frequency is frequent, heavy workload is arranged in light driving data.
In one embodiment, shown in Figure 8, step S20: after the centre frequency for obtaining the audio data, also Include:
Step S401: delay time is generated according to the centre frequency;
Step S402: the time that the light driving signal drives the color lamp to light is determined according to the delay time.
In the present embodiment, delay time is generated according to centre frequency, light driving letter is then determined according to delay time Number driving time for lighting of color lamp, specifically, the centre frequency by the audio data can calculate rhythm or beat Delay, so that it is determined that the output time of light driving signal, to determine that the driving of fluorescent tube driving signal is color according to the delay time The time that lamp is lighted allows light transformation effect to follow the variation of music rhythm in time.
Shown in Figure 9 the embodiment of the present application also provides a kind of Light Control Unit, institute's Light Control Unit 10 wraps It includes:
Audio data collecting module 11, for acquiring the audio data of preset length audio section, and according to the audio number According to amplitude of variation adjustment audio data sample frequency;
Centre frequency obtains module 12, for obtaining the centre frequency of the audio data;
Light drive module 13, for generating corresponding lamp according to the centre frequency and preset frequency color relations Optical drive signal, the light driving signal is for driving corresponding color lamp to light.
In the present embodiment, audio data collecting module 11 acquires the audio data of preset length audio section, and according to institute The sample frequency for stating the amplitude of variation adjustment audio data of audio data, specifically, the amplitude of variation of the audio data refers mainly to Audio frequency amplitude of variation in the audio section, the preset length audio section can be used as first current audio section, the audio The time span of section can be preset, for example, being set as needed as 10us or 20us, the sample frequency of audio data can It is adjusted with the amplitude of variation of the audio data acquired according to previous audio section, i.e., the acquisition of subsequent every a segment of audio data Timing node can be arranged according to the last period audio data, and the acquisition time interval of two adjacent audio sections is by previous section audio The amplitude of variation of data determines, if the frequency amplitude of variation of the audio data is higher, the acquisition time interval is reduced, if institute The frequency amplitude of variation for stating audio data is lower, then improves the acquisition time interval.The time interval can preset multiple Preset time interval, for example, the time interval can be set to 10us or 15us, if the variation width of the last period audio data Degree is relatively more steady or amplitude of variation is less than preset threshold, then acquisition time is set to 15us, if the last period audio data Amplitude of variation is unstable or amplitude of variation is greater than preset threshold, then acquisition time is set to 10us.
Further, after the audio data that audio data collecting module 11 obtains the audio data, centre frequency is obtained The centre frequency of the calculating of modulus block 12 audio data.Then light drive module 13 is according to the centre frequency and pre- If frequency color relations generate corresponding light driving signal, to drive corresponding color lamp to light.
In the present embodiment, the corresponding one group of light driving signal of each centre frequency, one group of light driving signal can drive Dynamic color lamp generates a variety of lighting effects successively changed, which can be the centre frequency of a bit of audio, for example, one Small section audio is between 8kHz to 10kHz, and wherein centre frequency can be 9kHz, in one embodiment, each centre frequency Map one group of light driving signal, i.e., each centre frequency and corresponding light driving signal at preset frequency color relations, Therefore, corresponding fluorescent tube driving signal is produced based on the centre frequency and preset frequency color relations, to drive Color lamp generates corresponding color transformed effect.
In a kind of lamp light control method provided by the present application, Light Control Unit, pass through acquisition preset length audio section Audio data, and according to the sample frequency of the amplitude of variation of audio data adjustment audio data;Obtain the audio data Centre frequency, then generate corresponding light driving signal according to the centre frequency and preset frequency color relations, It drives corresponding color lamp to light by light driving signal, realizes light and change the effect being changed according to audio in real time, The harmony between light variation effect and music rhythm is improved, is solved in existing music illumination scheme, light can not be real When converted according to music rhythm, there are light variation effect and music rhythm variation timing between harmony it is poor The problem of.
Present invention also provides a kind of display terminal, including memory, processor and storage are in the memory simultaneously The computer program that can be run on the processor, the processor are realized when executing the computer program as above-mentioned any The step of one lamp light control method.
In the embodiment of the present application, alleged processor can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components etc..General processor can be microprocessor or the processor can also To be any conventional processor etc..
Memory may include read-only memory and random access memory, and provide instruction and data to processor.It deposits Part or all of reservoir can also include nonvolatile RAM.For example, memory can also store equipment The information of type.
The application one embodiment additionally provides a kind of readable storage medium storing program for executing, and the readable storage medium storing program for executing is stored with computer Program is realized as described in above-mentioned any one when the computer program is executed by processor the step of lamp light control method.Institute Stating readable storage medium storing program for executing can be memory, and the memory is stored with computer program, and the computer program can be described It is run on processor, for example, the computer program is the program of lamp light control method.The processor executes the computer The step in above-mentioned lamp light control method embodiment is realized when program.Alternatively, when the processor executes the computer program Realize the function of each module/unit in above-mentioned each Installation practice.
The computer program can be divided into one or more module/units, one or more of modules/mono- Member is stored in the memory, and is executed by the processor, to complete the application.One or more of modules/mono- Member can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey Implementation procedure of the sequence in the terminal of lamp light control method.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal and method can pass through Other modes are realized.For example, device/terminal embodiment described above is only schematical, for example, the module or The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute Display or the mutual coupling or direct-coupling or communication connection discussed can be through some interfaces, device or unit INDIRECT COUPLING or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a readable storage medium storing program for executing, and the computer program is when being executed by processor, it can be achieved that above-mentioned each The step of embodiment of the method.Wherein, the computer program includes computer program code, and the computer program code can be with For source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium can wrap It includes: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, light of the computer program code can be carried Disk, computer storage, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described computer-readable The content that medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as at certain A little jurisdictions do not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
The foregoing is merely the alternative embodiments of the application, not to limit the application, all essences in the application Made any modifications, equivalent replacements, and improvements etc., should be included within the scope of protection of this application within mind and principle.

Claims (10)

1. a kind of lamp light control method, which is characterized in that the lamp light control method includes:
The audio data of preset length audio section is acquired, and adopting for audio data is adjusted according to the amplitude of variation of the audio data Sample frequency;
Obtain the centre frequency of the audio data;
Corresponding light driving signal, the light driving are generated according to the centre frequency and preset frequency color relations Signal is for driving corresponding color lamp to light.
2. lamp light control method as described in claim 1, which is characterized in that the amplitude of variation according to the audio data Adjust the sample frequency of audio data, comprising:
Judge whether the amplitude of variation of the audio data is steady;
If steady, the audio data of next audio section is acquired according to the preset time interval, if unstable, is reduced under acquisition The time interval of the audio data of one audio section.
3. lamp light control method as claimed in claim 2, which is characterized in that the amplitude of variation of the judgement audio data It is whether steady, comprising:
Obtain the highest audio frequency and lowest audible frequencies of the audio data, and calculate the highest audio frequency with it is described Frequency difference between lowest audible frequencies;
Judge whether the frequency difference is greater than predeterminated frequency threshold value;
If it is not, then determining that the amplitude of variation of the audio data is steady, if so, determining the amplitude of variation of the audio data not Steadily.
4. lamp light control method as described in claim 1, which is characterized in that the center frequency for obtaining the audio data Rate, comprising:
Obtain the highest audio frequency and lowest audible frequencies of the audio data;
Using the average value of the highest audio frequency and the lowest audible frequencies as the centre frequency of the audio data.
5. lamp light control method as described in claim 1, which is characterized in that the center frequency for obtaining the audio data Rate, comprising:
Calculate the frequency median of the audio data;
Using the frequency median as the centre frequency of the audio data.
6. lamp light control method as described in claim 1, which is characterized in that the center frequency for obtaining the audio data Rate, comprising:
The audio time domain signal of the audio data is converted into audio frequency-region signal by Fourier transform principle;
The audio frequency-region signal average value for calculating the audio data, by frequency centered on the audio frequency-region signal average value Rate.
7. lamp light control method as described in claim 1, which is characterized in that described according to the centre frequency and preset Frequency color relations generate corresponding light driving signal, comprising:
Corresponding frequency Color Range is confirmed according to the centre frequency;
Corresponding light driving data is obtained according to the frequency Color Range and frequency color relations;Wherein, each frequency Color Range corresponds to one group of light driving data;
The light driving data is converted into corresponding light driving signal.
8. lamp light control method as described in claim 1, which is characterized in that the centre frequency for obtaining the audio data Later, further includes:
Delay time is generated according to the centre frequency;
The time that the light driving signal drives the color lamp to light is determined according to the delay time.
9. a kind of Light Control Unit, which is characterized in that institute's Light Control Unit includes:
Audio data collecting module, for acquiring the audio data of preset length audio section, and according to the change of the audio data The sample frequency of change amplitude adjustment audio data;
Centre frequency obtains module, for obtaining the centre frequency of the audio data;
Light drive module drives for generating corresponding light according to the centre frequency and preset frequency color relations Signal, the light driving signal is for driving corresponding color lamp to light.
10. a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing is stored with computer program, which is characterized in that the calculating It is realized when machine program is executed by processor as described in claim 1 to 8 any one the step of lamp light control method.
CN201910794247.8A 2019-08-27 2019-08-27 A kind of lamp light control method, Light Control Unit and readable storage medium storing program for executing Pending CN110461077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910794247.8A CN110461077A (en) 2019-08-27 2019-08-27 A kind of lamp light control method, Light Control Unit and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910794247.8A CN110461077A (en) 2019-08-27 2019-08-27 A kind of lamp light control method, Light Control Unit and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN110461077A true CN110461077A (en) 2019-11-15

Family

ID=68489270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910794247.8A Pending CN110461077A (en) 2019-08-27 2019-08-27 A kind of lamp light control method, Light Control Unit and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN110461077A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153787A (en) * 2020-09-23 2020-12-29 北京百瑞互联技术有限公司 Method, device and medium for rhythm colored lamp according to LC3 Bluetooth music rhythm
CN112181350A (en) * 2020-09-25 2021-01-05 北京博睿维讯科技有限公司 Active terminal control method and device
CN112634814A (en) * 2020-12-01 2021-04-09 黑龙江建筑职业技术学院 Rhythm control method of LED three-dimensional stereoscopic display following music
CN112953596A (en) * 2021-02-07 2021-06-11 深圳市美矽微半导体有限公司 Frequency self-adaption method, system, equipment and storage medium based on power carrier
CN113490315A (en) * 2021-01-20 2021-10-08 深圳市智岩科技有限公司 Lighting device control method, lighting device control device, control device and storage medium
CN113507770A (en) * 2021-03-29 2021-10-15 厦门市思芯微科技有限公司 Lamplight control method, system, terminal and storage medium based on audio visualization
CN113660756A (en) * 2021-08-04 2021-11-16 深圳市海曼科技股份有限公司 ZigBee-based light control method and control system and intelligent home system
CN114222403A (en) * 2021-12-17 2022-03-22 广西世纪创新显示电子有限公司 AD audio and video rhythm control method and device and storage medium
CN114210043A (en) * 2021-12-15 2022-03-22 杨键 Multi-dimensional shadow imaging method and system based on rope skipping movement
CN114449713A (en) * 2020-10-30 2022-05-06 广东夜太阳科技集团有限公司 Intelligent audio recognition light control system
CN115134706A (en) * 2021-03-25 2022-09-30 阿里巴巴新加坡控股有限公司 Audio playing device and array, related method and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120326622A1 (en) * 2011-06-24 2012-12-27 Hon Hai Precision Industry Co., Ltd. Computing device with color organ
CN104219849A (en) * 2014-09-16 2014-12-17 深圳市华海技术有限公司 Method and device for controlling light-emitting equipment on basis of audio signal
CN104469599A (en) * 2014-12-09 2015-03-25 张有敬 Loudspeaker box with rhythm lamplight induction function
CN106708465A (en) * 2016-12-16 2017-05-24 北京小米移动软件有限公司 Control method and device for intelligent shoes
CN107420848A (en) * 2017-08-28 2017-12-01 深圳传音通讯有限公司 The method that music lighting lamp and music lighting lamp orientation play music
CN109661082A (en) * 2018-12-24 2019-04-19 福建星网视易信息系统有限公司 A kind of digital audio-video place lamplight scene control method and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120326622A1 (en) * 2011-06-24 2012-12-27 Hon Hai Precision Industry Co., Ltd. Computing device with color organ
CN104219849A (en) * 2014-09-16 2014-12-17 深圳市华海技术有限公司 Method and device for controlling light-emitting equipment on basis of audio signal
CN104469599A (en) * 2014-12-09 2015-03-25 张有敬 Loudspeaker box with rhythm lamplight induction function
CN106708465A (en) * 2016-12-16 2017-05-24 北京小米移动软件有限公司 Control method and device for intelligent shoes
CN107420848A (en) * 2017-08-28 2017-12-01 深圳传音通讯有限公司 The method that music lighting lamp and music lighting lamp orientation play music
CN109661082A (en) * 2018-12-24 2019-04-19 福建星网视易信息系统有限公司 A kind of digital audio-video place lamplight scene control method and storage medium

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153787A (en) * 2020-09-23 2020-12-29 北京百瑞互联技术有限公司 Method, device and medium for rhythm colored lamp according to LC3 Bluetooth music rhythm
CN112181350A (en) * 2020-09-25 2021-01-05 北京博睿维讯科技有限公司 Active terminal control method and device
CN112181350B (en) * 2020-09-25 2023-08-15 北京博睿维讯科技有限公司 Active terminal control method and device
CN114449713A (en) * 2020-10-30 2022-05-06 广东夜太阳科技集团有限公司 Intelligent audio recognition light control system
CN112634814B (en) * 2020-12-01 2022-04-08 黑龙江建筑职业技术学院 Rhythm control method of LED three-dimensional stereoscopic display following music
CN112634814A (en) * 2020-12-01 2021-04-09 黑龙江建筑职业技术学院 Rhythm control method of LED three-dimensional stereoscopic display following music
CN113490315A (en) * 2021-01-20 2021-10-08 深圳市智岩科技有限公司 Lighting device control method, lighting device control device, control device and storage medium
CN113490315B (en) * 2021-01-20 2023-08-04 深圳市智岩科技有限公司 Lighting device control method, lighting device control device and storage medium
CN112953596A (en) * 2021-02-07 2021-06-11 深圳市美矽微半导体有限公司 Frequency self-adaption method, system, equipment and storage medium based on power carrier
CN115134706A (en) * 2021-03-25 2022-09-30 阿里巴巴新加坡控股有限公司 Audio playing device and array, related method and medium
CN113507770A (en) * 2021-03-29 2021-10-15 厦门市思芯微科技有限公司 Lamplight control method, system, terminal and storage medium based on audio visualization
CN113660756A (en) * 2021-08-04 2021-11-16 深圳市海曼科技股份有限公司 ZigBee-based light control method and control system and intelligent home system
CN114210043A (en) * 2021-12-15 2022-03-22 杨键 Multi-dimensional shadow imaging method and system based on rope skipping movement
CN114210043B (en) * 2021-12-15 2022-09-27 杨键 Multi-dimensional shadow imaging method and system based on rope skipping movement
CN114222403A (en) * 2021-12-17 2022-03-22 广西世纪创新显示电子有限公司 AD audio and video rhythm control method and device and storage medium

Similar Documents

Publication Publication Date Title
CN110461077A (en) A kind of lamp light control method, Light Control Unit and readable storage medium storing program for executing
CN113613369B (en) Light effect control method, device, equipment and storage medium
TWI600992B (en) A music and light rhythm system and method
Oxenham The perception of musical tones
CN102123546A (en) Full-color acousto-optic conversion control method and system
CN106211502A (en) A kind of method and system of audio frequency control light
US10319395B2 (en) System and method for predictive generation of visual sequences
US11470700B2 (en) Methods and apparatus to control lighting effects
CN106304539A (en) A kind of music lantern controller design method followed based on rhythm
CN106383676B (en) Instant photochromic rendering system for sound and application thereof
CN107135578A (en) Intelligent music chord atmosphere lamp system based on TonaLighting regulation technologies
US9607595B2 (en) System and method for creation of musical memories
CN109373500A (en) A kind of air conditioning control method and air conditioner with people's interaction function
CN114245528B (en) Vehicle lamplight show control method, device, equipment, medium and program product
CN113853047A (en) Light control method and device, storage medium and electronic equipment
CN114449713A (en) Intelligent audio recognition light control system
CN110097618B (en) Music animation control method and device, vehicle and storage medium
CN115571047A (en) Vehicle-mounted atmosphere lamp rhythm control method, device, equipment, chip and system
CN108282922B (en) Audio acousto-optic synchronous lamp effect dynamic enhancement method and device
CN106028520A (en) Lamp control device and method
JP2007175510A (en) Reversible acoustic wave visualizing device
KR102345027B1 (en) Lighting device and frame with said lighting device attached thereto
CN113766710B (en) Intelligent desk lamp control method based on voice detection and related equipment
CN116552377A (en) Method, device, equipment and storage medium for controlling lamplight of intelligent cabin
CN115665942A (en) Sound following rhythm lamp bead control method and system and wireless earphone

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
TA01 Transfer of patent application right

Effective date of registration: 20191216

Address after: No. 2388, Dongcheng Avenue, Jieshi Town, Banan District, Chongqing

Applicant after: CHONGQING HUIKE JINYANG TECHNOLOGY CO., LTD.

Address before: The New District of Hefei City, Anhui province 230012 nine Top Road and intersection of the northeast corner of Kui he Lu

Applicant before: HEFEI HUIKE JINYANG TECHNOLOGY CO., LTD.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20191115

RJ01 Rejection of invention patent application after publication