CN112911767A - Audio-based light control system and method - Google Patents

Audio-based light control system and method Download PDF

Info

Publication number
CN112911767A
CN112911767A CN202110127046.XA CN202110127046A CN112911767A CN 112911767 A CN112911767 A CN 112911767A CN 202110127046 A CN202110127046 A CN 202110127046A CN 112911767 A CN112911767 A CN 112911767A
Authority
CN
China
Prior art keywords
data
audio
tone
signal
unit
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
CN202110127046.XA
Other languages
Chinese (zh)
Other versions
CN112911767B (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.)
Shenzhen Kairun Intelligent Lighting Co ltd
Original Assignee
Shenzhen Kairun Intelligent Lighting 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 Shenzhen Kairun Intelligent Lighting Co ltd filed Critical Shenzhen Kairun Intelligent Lighting Co ltd
Priority to CN202110127046.XA priority Critical patent/CN112911767B/en
Publication of CN112911767A publication Critical patent/CN112911767A/en
Application granted granted Critical
Publication of CN112911767B publication Critical patent/CN112911767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • 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 For Audible Band Transducer (AREA)

Abstract

The invention discloses a light control system and a light control method based on audio frequency, which comprises the following steps: the device comprises an audio signal input unit, an audio signal equalization unit, a tone data analysis unit, a loudness data analysis unit and a light mode unit; each data analysis unit reads the audio digital signal and respectively analyzes the audio digital signal into tone data, tone data and loudness data; the light mode unit converts the tone data into a light main tone signal, converts the tone data into a light local tone signal and converts the loudness data into a light overall brightness signal; the light control system controls the light in a layered manner through the tone data, the tone data and the loudness data; the tone data is used for controlling the main tone of the light; the tone data is used for controlling the local tone of the light; the loudness data is used to control the overall brightness of the light. The invention can realize the change of brightness and color of the light along with the change of tone, tone and loudness, has richer rhythm effect and improves the user experience.

Description

Audio-based light control system and method
Technical Field
The invention relates to the field of lighting control, in particular to a light control system and method based on audio.
Background
In the field of lighting, in order to improve the experience of a user on the light atmosphere, the user is not limited to the adjustment of the brightness and the color of the light any more, the change of the brightness and the color of the light along with the change of the tone, the tone and the loudness of the audio frequency needs to be carried out, and the atmosphere is set off by the audio frequency and the light together.
The control of present light and audio frequency is more single, and the scene is more single, has only realized the rhythm of audio frequency and the luminance and the colour synchronous change of light, but does not carry out the hierarchical control of light according to the tone, the loudness of audio frequency, for example: different timbres such as piano music, guitar music, violin music present different light dominant colours, and the tone and the loudness of different timbres present different light colour and luminance, consequently, the rhythm mode of current audio frequency and light can not embody richer rhythm effect, and the experience for the user is relatively poor.
Disclosure of Invention
The invention aims to provide a light control system and method based on audio frequency, and aims to solve the technical problems of single rhythm effect, poor scene and poor user experience of the audio frequency and the light.
In order to achieve the purpose, the invention adopts the following technical scheme:
an audio-based light control system, comprising:
an audio signal input unit 1 for inputting an audio analog signal;
an audio signal equalizing unit 2 which receives an audio analog signal and converts the audio analog signal into an audio digital signal; the input end of the audio signal equalizing unit 2 is connected with the output end of the audio signal input unit 1;
a tone data analyzing unit 3 for reading the audio digital signal and analyzing the audio digital signal into tone data; the input end of the tone data analysis unit 3 is connected with the output end of the audio signal equalization unit 2;
a tone data analyzing unit 4 for reading the audio digital signal in real time and analyzing the audio digital signal into tone data; the input end of the tone data analysis unit 4 is connected with the output end of the audio signal equalization unit 2;
the loudness data analysis unit 5 is used for reading the audio digital signal in real time and analyzing the audio digital signal into loudness data; the input end of the loudness data analysis unit 5 is connected with the output end of the audio signal equalization unit 2;
a light mode unit 6, converting the tone data into a light main tone signal, converting the tone data into a light local tone signal, and converting the loudness data into a light overall brightness signal; the input end of the light mode unit 6 is connected with the output ends of the tone data analysis unit 3, the tone data analysis unit 4 and the loudness data analysis unit 5;
the light control system controls the light in a layered mode through the tone data, the tone data and the loudness data; the tone data is used for controlling the main tone of the light; the tone data is used for controlling the local tone of the light; the loudness data is used to control the overall brightness of the light.
In some embodiments, the audio signal equalizing unit 2 performs band-pass filtering, signal amplification and amplitude limiting and signal frequency division on the received audio analog signal, and converts the audio analog signal into an audio digital signal through an internal AD, and the digital signal converted into 8 bytes at the same time is stored in 8 different address units.
In some embodiments, the tone color data analysis unit 3 includes a magnitude data reading and updating module, an audio bandwidth determining module, and a tone color data defining module, and the audio digital signal is analyzed into tone color data through the magnitude data reading and updating module, the audio bandwidth determining module, and the tone color data defining module.
In some embodiments, the light pattern unit 4 includes a light pattern corresponding to timbre, a light pattern corresponding to tone, and a light pattern corresponding to loudness.
In some embodiments, the tone data parsing unit 3, the tone data parsing unit 4, and the loudness data parsing unit 5 are in serial communication with the audio signal equalizing unit 2 through an I2C bus; the tone data analysis unit 3, the tone data analysis unit 4 and the loudness data analysis unit 5 perform single bus serial communication with the light pattern unit 6 through an SPI communication analog NRZ signal.
The invention also provides a light control method based on audio frequency, which comprises the following steps:
s1: receiving an audio analog signal and converting the audio analog signal into an audio digital signal;
s2: reading the audio digital signal;
s3: analyzing the audio digital signals with different frequencies into N tone data; resolving the audio digital signals with different frequencies into N tone data; analyzing the audio digital signals with different frequencies into loudness data;
s4: converting the N tone data into N light main tone signals; converting the N tone data into N lamplight local tone signals; converting the loudness data into a light overall brightness signal;
where N is a natural number greater than 1.
In some embodiments, in step S1, after performing band-pass filtering, signal amplification and amplitude limiting and signal frequency dividing on the audio analog signal, the audio analog signal is converted into an audio digital signal, and the audio digital signal is converted into 8-byte digital signals of amplitude data of 7 different frequencies of audio and 1 overall frequency average amplitude data and stored in 8 different address units.
In some embodiments, in step S2, the audio digital signal is read for a time greater than 64us at a refresh rate of 100us intervals.
In some embodiments, in step S3, the step of parsing the audio digital signals with different frequencies into N kinds of tone data includes:
s301: reading amplitude data and updating
Picking up sound source signals for more than 10 seconds, respectively caching amplitude data of 7 frequency points from low frequency to high frequency from left to right by using a 7-byte array I, checking at intervals of 50ms, and updating the amplitude data cached currently if the newly read amplitude data floats by 10% compared with the amplitude data cached currently;
s302: determine the audio frequency bandwidth
Respectively calculating the updating times of the amplitude data cached in each address unit of the first array, defining preset times as a judgment threshold value by using 1-byte data through macro, and when the updating times of the amplitude data cached in each address unit of the first array are sequentially judged from left to right to be larger than the preset times, determining the amplitude data cached in each address unit of the first array to be a low-frequency point of an audio digital signal; when the amplitude data cached in each address unit of the first array sequentially judges that the updating times are more than the preset times from right to left, the amplitude data are high-frequency points of the audio digital signals, and the frequency width of the audio digital signals is a numerical value between a low-frequency point and a high-frequency point;
s303: defining timbre data
Defining the audio digital signal as N tone data according to the frequency width, wherein different frequency widths correspond to different tone data, and each tone data is numbered and classified by 1 byte data;
in step S3, buffering amplitude data of 7 frequency points from low frequency to high frequency respectively from left to right by using the 1 st to 7 th byte data of the second array, where the amplitude data of 7 frequency points are the 7 tone data;
in step S3, buffering global frequency average amplitude data, which is the loudness data, by using the 8 th byte data of the second array.
In some embodiments, the timbre data includes bass timbre data, mid-bass timbre data, treble timbre data, the bass timbre data, the mid-bass timbre data, the treble timbre data being cached with 4 bytes of data, respectively.
The invention also provides an audio-based light control system, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of any one of the methods.
Compared with the prior art, the invention has the advantages that: the method comprises the steps of reading audio digital signals, calculating and converting the audio digital signals into N tone data according to different frequencies, and converting the N tone data into N lighting main tone signals to realize lighting main tone rendering; the local part of the lamplight presents different lamplight colors according to tone data with different frequencies, and the synchronous change of multiple colors of the local lamplight is realized; and converting the overall frequency average amplitude data into an overall brightness signal to realize overall brightness adjustment. The invention can realize that the light changes brightness and color along with the change of the tone, tone and loudness of the audio, embodies richer rhythm effect and improves the user experience.
Drawings
Fig. 1 is a schematic structural diagram of an audio-based light control system according to an embodiment of the present invention.
Fig. 2 is a logical structure diagram of a tone data parsing unit of the audio-based light control system according to an embodiment of the present invention.
Fig. 3 is a flowchart of an audio-based light control method according to an embodiment of the present invention.
Fig. 4 is a flowchart of steps S301-S303 of an audio-based light control method according to an embodiment of the present invention.
Detailed Description
The invention will be further described with reference to the accompanying drawings and preferred embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms of orientation such as left, right, up, down, top and bottom in the present embodiment are only relative concepts to each other or are referred to the normal use state of the product, and should not be considered as limiting.
The audio-based light control system of the present embodiment, as shown in fig. 1, includes an audio signal input unit 1, an audio signal equalizing unit 2, a tone data analyzing unit 3, a tone data analyzing unit 4, a loudness data analyzing unit 5, a light pattern unit 6, and a power supply unit 7.
The audio signal input unit 1 is used to input audio analog signals including an AUX external input audio signal, a MIC audio signal, and a bluetooth audio signal.
The audio signal equalizing unit 2 is used for performing band-pass filtering, signal amplification and amplitude limiting and signal frequency division on the received audio analog signals, converting the audio analog signals into audio digital signals through internal AD, simultaneously converting the audio digital signals into amplitude data of 7 different frequencies of audio and 8-byte digital signals of 1 overall frequency average amplitude data, and storing the digital signals in 8 different address units; the input end of the audio signal equalizing unit 2 is connected with the output end of the audio signal input unit 1.
The tone data analysis unit 3 is in serial communication with the audio signal equalization unit 2 by using an I2C bus, and the tone data unit 3 is used for reading the audio digital signal and analyzing the audio digital signal into tone data; the input end of the tone data analysis unit 3 is connected with the output end of the audio signal equalization unit 2. The tone data analysis unit 3 includes an amplitude data reading and updating module, an audio bandwidth determining module and a tone data defining module, and analyzes the audio digital signal into tone data through the amplitude data reading and updating module, the audio bandwidth determining module and the tone data defining module. The amplitude data reading and updating module comprises an array buffer which buffers the read amplitude data; the audio frequency bandwidth judging module comprises: updating a frequency buffer and a threshold value buffer, wherein the updating frequency buffer calculates the updating frequency of the amplitude data; the threshold buffer presets times as a judgment threshold.
As shown in fig. 2, the amplitude data reading and updating module of the tone data analysis unit 3 reads data of the audio signal equalization unit 2, picks up sound source signals for more than 10 seconds, the array buffer buffers amplitude data of 7 frequency points from low frequency to high frequency respectively in a 7-byte array one-left-to-right format, and checks every 50ms, and if the newly read amplitude data floats by 10% compared with the currently buffered amplitude data, the currently buffered amplitude data is updated; the updating times buffer respectively calculates the updating times of the amplitude data cached by each address unit of the first array, the threshold value buffer uses 1 byte data to define preset times through macro as a judgment threshold value, and when the updating times of the amplitude data cached by each address unit of the first array are sequentially judged from left to right and are greater than the preset times, the audio frequency bandwidth judgment module judges that the audio frequency digital signal is a low frequency point; when the number of times of updating is judged from right to left in turn by the amplitude data cached in each address unit of the first array to be greater than the preset number of times, the audio frequency bandwidth judgment module judges the high-frequency point of the audio digital signal, and the frequency bandwidth of the audio digital signal is a numerical value from the low-frequency point to the high-frequency point, such as: the low frequency is 100Hz, the high frequency is 5KHZ, and the bandwidth of the audio frequency is 100Hz-5 KHZ. The tone data definition module defines N kinds of tone data according to the frequency width, different frequency widths correspond to different tone data, such as 40Hz-200Hz generally corresponds to bass drum, 150Hz-1KHZ generally corresponds to guitar tone, and each tone data is classified by 1 byte data. Currently, the method is divided into bass tone, mid-bass tone and high-treble tone, and 4 bytes are used for caching tone data.
The tone data analysis unit 4 reads the data of the audio signal equalization unit 2 in real time, and buffers the amplitude data of 7 frequency points from low frequency to high frequency respectively by using the 1 st-7 th byte data of the array two of 8 bytes from left to right format, wherein the data is the intensity of the audio signals corresponding to the tones of 7 different frequencies.
The loudness data analysis unit 5 reads the data of the audio signal equalization unit 2 in real time, and buffers the overall frequency average amplitude data as the overall loudness size by using the 8 th byte data of the 8-byte array two.
The sound data analysis unit 3, the tone data analysis unit 4 and the loudness data analysis unit 5 utilize SPI communication to simulate NRZ signals to carry out single-bus serial communication with the light mode unit 6, the light mode unit 6 is used for converting 4 bytes of sound data into 4 kinds of light main tone signals to realize light main tone rendering, converting 7 bytes of tone data into 7 kinds of light local tone signals to realize real-time synchronous change of light with local 7 kinds of colors, and converting 1 byte of loudness data into a light overall brightness signal to realize overall brightness adjustment; the input of the light pattern unit 6 is connected to the outputs of the tone data analysis unit 3, the tone data analysis unit 4 and the loudness data analysis unit 5. The light pattern unit 6 includes a light pattern corresponding to timbre, a light pattern corresponding to tone, and a light pattern corresponding to loudness.
The power supply unit 7 is respectively connected with the audio signal equalization unit 2, the tone data analysis unit 3, the tone data analysis unit 4, the loudness data analysis unit 5 and the light pattern unit 6, and is used for providing 5V and 3.3V power supplies.
The light control system based on the audio frequency carries out layered control on the light through the tone color data, the tone data and the loudness data; the tone data is used for controlling the main tone of the light; the tone data is used for controlling the local tone of the light; the loudness data is used to control the overall brightness of the light.
The light control method based on audio frequency of the embodiment as shown in fig. 3 and fig. 4 includes the following steps:
s1: an audio analog signal is received and converted to an audio digital signal. The audio signal equalizing unit 2 receives the audio signal from the audio signal input unit 1, quantizes the 20HZ-20KHZ audio analog signal by using the internal AD after internal band-pass filtering, signal amplification and amplitude limiting, and signal frequency division, converts the quantized signal into 8-byte digital signals of amplitude data of 7 different frequencies of audio and 1 overall frequency average amplitude data, and stores the digital signals in 8 different address units.
S2: the audio digital signal is read. The tone data analysis unit 3, the tone data analysis unit 4 and the loudness data analysis unit 5 select a transmission rate of 1Mbit/s in a high-speed mode, the time for reading 8-byte digital signals stored by the audio signal equalization unit 2 is greater than 64us, the digital signals are read at a refresh rate of 100us intervals, audio frequency spectrum signals within 5KHZ can be met according to the Nyquist sampling theorem Fs which is greater than 2FN, and ultra-low delay synchronization can be realized by covering 90% of tone types.
S3: analyzing the audio digital signals with different frequencies into N tone data; resolving the audio digital signals with different frequencies into N tone data; the audio digital signals of different frequencies are parsed into loudness data. The method for analyzing the audio digital signals with different frequencies into N kinds of tone data comprises the following steps:
s301: reading the amplitude data and updating. The tone data analysis unit 3 reads the data of the audio signal equalization unit 2, picks up sound source signals for more than 10 seconds, buffers the amplitude data of 7 frequency points from low frequency to high frequency respectively in a 7-byte array one from left to right format, looks up the amplitude data every 50ms, and updates the amplitude data buffered currently if the newly read amplitude data is floated by 10% compared with the amplitude data buffered currently.
S302: the audio bandwidth is determined. Respectively calculating the number of times of updating the amplitude data cached in each address unit of the first array, defining the preset number of times as a judgment threshold value by using 1-byte data through a macro, calling the value defined by the macro in real time by a program for comparison, and when the amplitude data cached in each address unit of the first array sequentially judges from left to right that the updated number of times is greater than the preset number of times, taking the updated number of times as a low-frequency point of audio; when the number of times of judging the renewal from right to left that the amplitude data of every address unit buffer memory of array one is greater than the number of times of presetting in proper order, just regard as the high frequency point of audio frequency this moment, according to judging the low frequency point that reachs and high frequency point just can obtain the bandwidth, the bandwidth of audio digital signal is the numerical value between low frequency point to the high frequency point, for example: the low frequency is 100Hz, the high frequency is 5KHZ, and the bandwidth of the audio frequency is 100Hz-5 KHZ.
S303: tone color data is defined. It can be defined as N kinds of tone data according to the bandwidth, different bandwidths correspond to different tone data, such as 40Hz-200Hz generally corresponds to bass drum, 150Hz-1KHz generally corresponds to guitar tone, each tone data is classified by 1 byte data. Currently, the method is divided into bass tone, mid-bass tone and high-treble tone, and 4 bytes are used for caching tone data.
The method for analyzing the audio digital signals with different frequencies into N tone data comprises the following steps: the tone data analysis unit 4 reads the data of the audio signal equalization unit 2 in real time, and buffers the amplitude data of 7 frequency points from low frequency to high frequency respectively by using the 1 st-7 th byte data of the array two of 8 bytes from left to right format, wherein the amplitude data of 7 frequency points is the intensity of the audio signals corresponding to the tones of 7 different frequencies.
The method for analyzing the audio digital signals with different frequencies into loudness data comprises the following steps: the loudness data analysis unit 5 reads the data of the audio signal equalization unit 2 in real time, and buffers the overall frequency average amplitude data as loudness data by using the 8 th byte data of the 8-byte array two.
S4: converting the N tone data into N light main tone signals; converting the N tone data into N lamplight local tone signals; the loudness data is converted into a light overall brightness signal. The light mode unit 6 converts 4 bytes of tone data into 4 kinds of light main tone signals to realize light main tone rendering, converts 7 bytes of tone data into 7 kinds of tone signals to realize real-time synchronous change of local 7 kinds of color lights, and converts 1 byte of loudness data into an overall brightness signal to realize overall brightness adjustment.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several equivalent substitutions or obvious modifications can be made without departing from the spirit of the invention, and all the properties or uses are considered to be within the scope of the invention.

Claims (11)

1. An audio-based light control system, comprising:
an audio signal input unit (1) for inputting an audio analog signal;
the audio signal equalizing unit (2) receives an audio analog signal and converts the audio analog signal into an audio digital signal; the input end of the audio signal equalizing unit (2) is connected with the output end of the audio signal input unit (1);
the tone data analysis unit (3) reads the audio digital signal and analyzes the audio digital signal into tone data; the input end of the tone data analysis unit (3) is connected with the output end of the audio signal equalization unit (2);
a tone data analysis unit (4) for reading the audio digital signal in real time and analyzing the audio digital signal into tone data; the input end of the tone data analysis unit (4) is connected with the output end of the audio signal equalization unit (2);
the loudness data analyzing unit (5) is used for reading the audio digital signal in real time and analyzing the audio digital signal into loudness data; the input end of the loudness data analysis unit (5) is connected with the output end of the audio signal equalization unit (2);
a light mode unit (6) for converting the tone data into a light main tone signal, converting the tone data into a light local tone signal, and converting the loudness data into a light overall brightness signal; the input end of the light mode unit (6) is connected with the output ends of the tone data analysis unit (3), the tone data analysis unit (4) and the loudness data analysis unit (5);
the light control system controls the light in a layered mode through the tone data, the tone data and the loudness data; the tone data is used for controlling the main tone of the light; the tone data is used for controlling the local tone of the light; the loudness data is used to control the overall brightness of the light.
2. An audio-based light control system according to claim 1, characterized in that the audio signal equalizing unit (2) band-pass filters, signal amplification and limiting and signal frequency division the received audio analog signal and converts the audio analog signal into audio digital signal by internal AD, while the 8 byte converted digital signal is stored in 8 different address units.
3. The audio-based light control system according to claim 1, wherein the tone data analyzing unit (3) comprises an amplitude data reading and updating module, an audio bandwidth determining module and a tone data defining module, and the audio digital signal is analyzed into tone data through the amplitude data reading and updating module, the audio bandwidth determining module and the tone data defining module.
4. An audio-based light control system according to claim 1, characterized in that the light pattern unit (4) comprises a timbre corresponding light pattern, a tone corresponding light pattern and a loudness corresponding light pattern.
5. An audio-based light control system according to claim 1, wherein the tone data resolving unit (3), the tone data resolving unit (4) and the loudness data resolving unit (5) are in serial communication with the audio signal equalizing unit (2) via an I2C bus; the tone data analysis unit (3), the tone data analysis unit (4) and the loudness data analysis unit (5) are in single-bus serial communication with the light mode unit (6) through SPI communication simulation NRZ signals.
6. A light control method based on audio is characterized by comprising the following steps:
s1: receiving an audio analog signal and converting the audio analog signal into an audio digital signal;
s2: reading the audio digital signal;
s3: analyzing the audio digital signals with different frequencies into N tone data; resolving the audio digital signals with different frequencies into N tone data; analyzing the audio digital signals with different frequencies into loudness data;
s4: converting the N tone data into N light main tone signals; converting the N tone data into N lamplight local tone signals; converting the loudness data into a light overall brightness signal;
where N is a natural number greater than 1.
7. The audio-based light control method of claim 6,
in step S1, the audio analog signal is subjected to band-pass filtering, signal amplification and amplitude limiting, and signal frequency division, and then converted into an audio digital signal, and simultaneously converted into 8-byte digital signals of amplitude data of 7 different frequencies of audio and 1 total frequency average amplitude data, and stored in 8 different address units.
8. The audio-based light control method of claim 7,
in step S2, the audio digital signal is read for a time greater than 64us at a refresh rate of 100us intervals.
9. The audio-based light control method of claim 8,
in step S3, the step of analyzing the audio digital signals with different frequencies into N types of tone data includes:
s301: reading amplitude data and updating
Picking up sound source signals for more than 10 seconds, respectively caching amplitude data of 7 frequency points from low frequency to high frequency from left to right by using a 7-byte array I, checking at intervals of 50ms, and updating the amplitude data cached currently if the newly read amplitude data floats by 10% compared with the amplitude data cached currently;
s302: determine the audio frequency bandwidth
Respectively calculating the updating times of the amplitude data cached in each address unit of the first array, defining preset times as a judgment threshold value by using 1-byte data through macro, and when the updating times of the amplitude data cached in each address unit of the first array are sequentially judged from left to right to be larger than the preset times, determining the amplitude data cached in each address unit of the first array to be a low-frequency point of an audio digital signal; when the amplitude data cached in each address unit of the first array sequentially judges that the updating times are more than the preset times from right to left, the amplitude data are high-frequency points of the audio digital signals, and the frequency width of the audio digital signals is a numerical value between a low-frequency point and a high-frequency point;
s303: defining timbre data
Defining the audio digital signal as N tone data according to the frequency width, wherein different frequency widths correspond to different tone data, and each tone data is numbered and classified by 1 byte data;
in step S3, buffering amplitude data of 7 frequency points from low frequency to high frequency respectively from left to right by using the 1 st to 7 th byte data of the second array, where the amplitude data of 7 frequency points are the 7 tone data;
in step S3, buffering global frequency average amplitude data, which is the loudness data, by using the 8 th byte data of the second array.
10. The audio-based light control method of claim 9 wherein the timbre data comprises bass timbre data, mid-high timbre data, treble timbre data, the bass timbre data, mid-high timbre data, treble timbre data being buffered with 4 bytes of data, respectively.
11. An audio-based light control system comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor implements the steps of the method according to any of claims 6-10 when executing said computer program.
CN202110127046.XA 2021-01-29 2021-01-29 Audio-based light control system and method Active CN112911767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110127046.XA CN112911767B (en) 2021-01-29 2021-01-29 Audio-based light control system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110127046.XA CN112911767B (en) 2021-01-29 2021-01-29 Audio-based light control system and method

Publications (2)

Publication Number Publication Date
CN112911767A true CN112911767A (en) 2021-06-04
CN112911767B CN112911767B (en) 2023-01-17

Family

ID=76121651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110127046.XA Active CN112911767B (en) 2021-01-29 2021-01-29 Audio-based light control system and method

Country Status (1)

Country Link
CN (1) CN112911767B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113707110A (en) * 2021-06-15 2021-11-26 浙江意博高科技术有限公司 Control method and system for intelligent illumination
CN113771738A (en) * 2021-08-11 2021-12-10 深圳市智岩科技有限公司 Vehicle-mounted light control method, device, system, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100171444A1 (en) * 2009-01-08 2010-07-08 Electronic Theatre Controls, Inc. Colorizer and method of operating the same
CN202085349U (en) * 2011-04-17 2011-12-21 夏振平 Wireless real-time lighting system capable of sensing voice frequency
CN106304539A (en) * 2016-08-03 2017-01-04 杭州电子科技大学 A kind of music lantern controller design method followed based on rhythm
CN106332392A (en) * 2015-06-30 2017-01-11 芋头科技(杭州)有限公司 Light display effect control system
CN110602852A (en) * 2019-09-05 2019-12-20 佛山市云米电器科技有限公司 System for controlling home theater lighting effect
CN110853673A (en) * 2018-07-24 2020-02-28 漳州汉旗乐器有限公司 Drum stick pairing method based on resonance spectrum identification
CN111526644A (en) * 2017-09-27 2020-08-11 杭州博联智能科技股份有限公司 Control method and device for light display

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100171444A1 (en) * 2009-01-08 2010-07-08 Electronic Theatre Controls, Inc. Colorizer and method of operating the same
CN202085349U (en) * 2011-04-17 2011-12-21 夏振平 Wireless real-time lighting system capable of sensing voice frequency
CN106332392A (en) * 2015-06-30 2017-01-11 芋头科技(杭州)有限公司 Light display effect control system
CN106304539A (en) * 2016-08-03 2017-01-04 杭州电子科技大学 A kind of music lantern controller design method followed based on rhythm
CN111526644A (en) * 2017-09-27 2020-08-11 杭州博联智能科技股份有限公司 Control method and device for light display
CN110853673A (en) * 2018-07-24 2020-02-28 漳州汉旗乐器有限公司 Drum stick pairing method based on resonance spectrum identification
CN110602852A (en) * 2019-09-05 2019-12-20 佛山市云米电器科技有限公司 System for controlling home theater lighting effect

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113707110A (en) * 2021-06-15 2021-11-26 浙江意博高科技术有限公司 Control method and system for intelligent illumination
CN113707110B (en) * 2021-06-15 2023-12-01 浙江意博高科技术有限公司 Intelligent illumination control method and system
CN113771738A (en) * 2021-08-11 2021-12-10 深圳市智岩科技有限公司 Vehicle-mounted light control method, device, system, equipment and storage medium
CN113771738B (en) * 2021-08-11 2023-09-08 深圳市智岩科技有限公司 Vehicle-mounted light control method, device, system, equipment and storage medium

Also Published As

Publication number Publication date
CN112911767B (en) 2023-01-17

Similar Documents

Publication Publication Date Title
CN112911767B (en) Audio-based light control system and method
US8581086B2 (en) Computer interface for polyphonic stringed instruments
CN102790932B (en) Distinguish audio system and the method for signal message content and control signal processing capacity
CN110072321B (en) Light control method based on music rhythm
CN1936829A (en) Sound output system and method
EP3379527B1 (en) Musical sound generation device, musical sound generation method and electronic instrument
CN102123546A (en) Full-color acousto-optic conversion control method and system
CN109817193B (en) Timbre fitting system based on time-varying multi-segment frequency spectrum
KR20190005103A (en) Electronic device-awakening method and apparatus, device and computer-readable storage medium
EP3093840B1 (en) Musical-performance-information transmission method and musical-performance-information transmission system
US8633370B1 (en) Circuits to process music digitally with high fidelity
CN1275496C (en) Automatic loudspeaker frequency response equating regulation system and method
WO2015126228A1 (en) Signal classifying method and device, and audio encoding method and device using same
CN201897962U (en) Music playing system and intelligent mobile terminal with same
CN101860774B (en) Voice equipment and method capable of automatically repairing sound
CN107909982B (en) Multi-channel multi-sensor stereo sampling piano quality analyzer
KR101748859B1 (en) Electric stringed instrument
CN113301469A (en) High stereo noise reduction Bluetooth headset
CN213783525U (en) Internet of things multipurpose sound box
US6184453B1 (en) Tone generator, electronic instrument, and storage medium
CN105489207A (en) String instrument tuning device and method, mobile terminal and mobile terminal tuning method
CN210075540U (en) Novel bluetooth headset
WO2010134723A2 (en) Musical equipment system for synchronizing musical instrument performance settings, and digital musical instrument which maintains synchronized musical performance settings
CN110636074B (en) Double-row key tone automatic issuing system
CN203038661U (en) Sound adjusting device and system

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