CN111007776A - Light control method, light control equipment, light playing system and storage medium - Google Patents

Light control method, light control equipment, light playing system and storage medium Download PDF

Info

Publication number
CN111007776A
CN111007776A CN201911330600.3A CN201911330600A CN111007776A CN 111007776 A CN111007776 A CN 111007776A CN 201911330600 A CN201911330600 A CN 201911330600A CN 111007776 A CN111007776 A CN 111007776A
Authority
CN
China
Prior art keywords
light control
audio
control effect
effect file
frequency
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
CN201911330600.3A
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.)
Shenzhen Besttouch Technology Co ltd
Original Assignee
Shenzhen Besttouch 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 Shenzhen Besttouch Technology Co ltd filed Critical Shenzhen Besttouch Technology Co ltd
Priority to CN201911330600.3A priority Critical patent/CN111007776A/en
Publication of CN111007776A publication Critical patent/CN111007776A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The application relates to a light control method, a light control device, a light playing system and a storage medium. The method comprises the following steps: the method comprises the steps of processing input audio signals according to audio acquisition and processing equipment to obtain frequency data, intelligently matching the frequency data with audio light control effect files of corresponding song scenes according to a single-chip microcomputer controller, synthesizing target audio trigger light control effect files and conventional light control effect files to obtain synthesized light control effect files, analyzing the light control effect files according to a lamp controller to obtain light control instructions, and controlling light according to the light control instructions. Various corresponding light effects can be changed according to different music scenes and beats.

Description

Light control method, light control equipment, light playing system and storage medium
Technical Field
The application relates to the field of KTV light, in particular to a light control method, light control equipment, a light playing system and a storage medium.
Background
Along with the development of national economy, the living standard of people is continuously improved, colorful light is integrated into the life of people, on one hand, the colorful light can give visual impact to people, the living experience of people is enriched, and on the other hand, the colorful light can make up for the defects existing in house decoration. The gorgeous and changeable lighting experience plays an increasingly important role in the fields of current KTV rooms, smart homes, stages and the like.
At present, stage lamps complying with the DMX512 control protocol are mainstream products at home and abroad, and the bright and colorful change of the lighting effect is mainly completed by professional personnel using lighting console equipment. However, the method has the defects of complex professional operation, high requirement on personnel quality, high price and the like, so that the KTV and the smart home are difficult to realize.
In addition, the light control system in the market mainly takes color change and lighting and extinguishing as main parts, and can not exert the light with stage effect to the full extent, so that the function required by people can not be provided on the existing colorful decorative lamp, and the change in color is only generated, so that the consumption desire of people is difficult to improve, and the market competition is not facilitated.
Disclosure of Invention
Therefore, it is necessary to provide a light control method, a light control device, a light playing system and a storage medium for solving the technical problems of complex professional operation, high requirement on personnel quality, high price and the main color change and on-off of the existing light control system in the market.
A light control method is suitable for light control equipment, and the light control equipment comprises a single chip microcomputer controller, audio acquisition and processing equipment, a memory and a lamp controller; the audio acquisition and processing equipment, the memory and the lamp controller are all connected with the single chip microcomputer controller; the memory is used for storing an audio trigger light control effect file with a preset frequency and a conventional light control effect file;
the method comprises the following steps:
processing the input audio signal according to the audio acquisition and processing equipment to obtain frequency data;
intelligently matching the frequency data with a target audio frequency of a corresponding song scene according to the single-chip microcomputer controller to trigger a light control effect file;
synthesizing the target audio trigger light control effect file and the conventional light control effect file to obtain a synthesized light control effect file;
and analyzing the synthesized light control effect file according to the lamp controller to obtain a light control instruction, and controlling light according to the light control instruction.
In one embodiment, the method further comprises:
and generating the audio trigger light control effect file with the preset frequency and the conventional light control effect file according to the number of the lamps and the number of the lamp channels connected with the lamp controller.
In one embodiment, the processing the input audio signal according to the audio acquisition and processing device to obtain frequency data includes:
amplifying the audio signal;
filtering the amplified audio signal to obtain an audio signal with specified frequency;
and carrying out Fourier transform on the audio signal with the specified frequency, transforming the audio signal from a time domain to a frequency domain, and carrying out frequency extraction to obtain the frequency data.
In one embodiment, the processing the input audio signal according to the audio acquisition and processing device to obtain frequency data further includes:
when the audio trigger function is not started, the light control is carried out by analyzing the conventional light control effect file;
when the audio triggering function is started, if no audio signal is collected, the light control is carried out by analyzing the conventional light control effect file;
and when the audio triggering function is started and the audio signal is acquired, executing the step of processing the input audio signal according to the audio acquisition processing equipment to obtain frequency data.
A light control device comprises a single chip microcomputer controller, an audio acquisition and processing device, a memory and a lamp controller; the audio acquisition and processing equipment, the memory and the lamp controller are all connected with the single chip microcomputer controller; the memory is used for storing an audio trigger light control effect file with a preset frequency and a conventional light control effect file;
the audio acquisition and processing equipment is used for processing the input audio signals to obtain frequency data;
the single chip microcomputer controller is used for intelligently matching the frequency data with the audio light control effect files of the corresponding song scenes according to the single chip microcomputer controller; synthesizing the target audio trigger light control effect file and the conventional light control effect file to obtain a synthesized light control effect file;
and the lamp controller is used for analyzing the synthesized light control effect file to obtain a light control instruction and controlling light according to the light control instruction.
In one embodiment, the light control equipment further comprises a PC upper computer debugging device; the PC upper computer debugging device is connected with the single chip microcomputer controller in a serial port communication mode;
and the PC upper computer debugging device is used for generating the audio trigger light control effect file with the preset frequency and the conventional light control effect file according to the number of the lamps and the number of the lamp channels connected with the lamp controller.
In one embodiment, the audio acquisition and processing device comprises a signal amplifying circuit, a filter and a spectrum processor;
the signal amplifying circuit is used for amplifying the audio signal;
the filter is used for filtering the amplified audio signal to obtain an audio signal with specified frequency;
the frequency spectrum processor is used for carrying out Fourier transform on the audio signal with the specified frequency, transforming the audio signal from a time domain to a frequency domain, and carrying out frequency extraction to obtain the frequency data.
In one embodiment, the light control device further comprises a keyboard input device; the keyboard input device is connected with the single chip microcomputer controller through pins;
when the keyboard input device presses different keys, different voltage values can be output;
and the singlechip controller judges the action of the corresponding key by acquiring the voltage value and executes the corresponding function.
In one embodiment, the light control device further comprises a display; the display is connected with the single chip microcomputer controller;
the display is used for displaying the frequency data and/or displaying information corresponding to the played light control effect.
A light playing system comprises the light control equipment and a plurality of lamps, wherein the light control equipment comprises a light source, a light source and a light source;
the lamps are connected with the lamp controller in a parallel mode through RJ45 crystal heads.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
processing the input audio signal to obtain frequency data;
intelligently matching the frequency data with audio light control effect files of corresponding song scenes according to the single-chip microcomputer controller;
synthesizing the target audio trigger light control effect file and the conventional light control effect file to obtain a synthesized light control effect file;
and analyzing the synthesized light control effect file to obtain a light control instruction, and controlling light according to the light control instruction.
According to the light control method, the light control equipment, the light playing system and the storage medium, the input audio signals are processed according to the audio acquisition and processing equipment to obtain frequency data, the frequency data are intelligently matched with the audio light control effect files of corresponding song scenes according to the single-chip microcomputer controller, the target audio trigger light control effect files and the conventional light control effect files are synthesized to obtain synthesized light control effect files, the synthesized light control effect files are analyzed according to the lamp controller to obtain light control instructions, and light control is carried out according to the light control instructions. The audio acquisition and processing equipment is used for processing input audio signals to obtain frequency data, the single chip microcomputer controller can obtain a target audio trigger light control effect file according to the frequency data, the single chip microcomputer controller synthesizes the target audio trigger light control effect file and a conventional light control effect file to obtain a synthesized light control effect file, light effect display is carried out according to the synthesized light control effect file, and multiple corresponding light effects can be changed according to different music scenes and beats. And, because the memorizer stores audio frequency that predetermines the frequency and triggers light control effect file and conventional light control effect file, can carry out conventional light control and audio frequency and trigger light control.
Drawings
FIG. 1 is a block diagram showing a configuration of a lighting control apparatus according to an embodiment;
FIG. 2 is a schematic flow chart of a light control method according to an embodiment;
FIG. 3 is a diagram illustrating a data format of a conventional light control effect file, in one embodiment;
FIG. 4 is a diagram illustrating a data format of an audio touch light control effect file in accordance with an embodiment;
fig. 5 is a schematic diagram illustrating implementation of a superimposed lighting effect of an audio touch lighting control effect file and a conventional lighting control effect file in an embodiment;
FIG. 6 is a block diagram showing the construction of a light control device according to an embodiment;
fig. 7 is a block diagram of a light playing system in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In an embodiment, a light control method is provided, and the light control method is suitable for a light control device, as shown in fig. 1, the light control device 10 includes a single chip microcomputer controller 101, an audio acquisition and processing device 102, a memory 103, and a luminaire controller 104; the audio acquisition and processing device 102, the memory 103 and the lamp controller 104 are all connected with the single chip microcomputer controller 101; the memory 103 is used for storing an audio trigger light control effect file with a preset frequency and a conventional light control effect file;
the method comprises the following steps:
step S20, processing the input audio signal according to the audio acquisition processing equipment to obtain frequency data;
step S21, intelligently matching the frequency data with the audio light control effect file of the corresponding song scene according to the single-chip microcomputer controller;
step S22, synthesizing the target audio frequency trigger light control effect file and the conventional light control effect file to obtain a synthesized light control effect file;
and step S23, analyzing the synthesized light control effect file according to the lamp controller to obtain a light control instruction, and controlling light according to the light control instruction.
In the embodiment of the present invention, the memory 103 is configured to store a light control effect file, which is an audio trigger light control effect file with a preset frequency and a conventional light control effect file. When no audio signal is input or the audio trigger function is not started, controlling the light by analyzing the conventional light control effect file; when an audio signal is input and the audio triggering function is enabled, the audio signal is processed and matched to obtain a target audio triggering light control effect file, the target audio triggering light control effect file and a conventional light control effect file are synthesized to obtain a synthesized light control effect file, and light control is performed by analyzing the synthesized light control effect file.
The light control command may be a DMX512 control packet. The lamp controller 104 may analyze the target audio to trigger the light control effect file, obtain a DMX512 control data packet, and send the DMX512 control data packet according to a communication protocol of the DMX512, so as to control a plurality of lamps connected in parallel to the lamp controller 104.
In the light control method, the light control device 10 comprises a single chip microcomputer controller 101, an audio acquisition processing device 102, a memory 103 and a lamp controller 104, the audio acquisition processing device 102, the memory 103 and the lamp controller 104 are all connected with the single chip microcomputer controller 101, the memory 103 is used for storing an audio trigger light control effect file and a conventional light control effect file with preset frequencies, the audio acquisition processing device 102 processes an input audio signal to obtain frequency data, the single chip microcomputer controller 101 intelligently matches the frequency data with the audio light control effect file of a corresponding song scene and synthesizes a target audio trigger light control effect file and the conventional light control effect file to obtain a synthesized light control effect file, the lamp controller 104 analyzes the synthesized light control effect file to obtain a light control instruction, and light control is carried out according to the light control instruction. The audio acquisition and processing device 102 is used for processing input audio signals to obtain frequency data, the single chip microcomputer controller 101 obtains a target audio trigger light control effect file according to the frequency data, the single chip microcomputer controller 101 synthesizes the target audio trigger light control effect file and a conventional light control effect file to obtain a synthesized light control effect file, the lamp controller 104 performs light effect display according to the synthesized light control effect file, and multiple corresponding light effects can be changed according to different music scenes and beats. In addition, the target audio frequency triggering light control effect file comprises an audio frequency triggering interval, triggering intensity and frequency value range characteristics, the target audio frequency triggering light control effect file and the conventional light control effect file are synthesized, light control is performed according to the synthesized light control effect file, therefore, the audio frequency triggering light effect can be performed according to the audio frequency triggering interval, the triggering intensity and frequency value range characteristics, when the audio frequency triggering light effect is not performed according to the audio frequency triggering interval, the triggering intensity and frequency value range characteristics, the light effect can be performed according to the conventional light control effect file, and the situation that no light effect exists under the condition that no light effect is triggered by the audio frequency is avoided. In addition, since the memory 103 stores the audio-triggered light control effect file and the normal light control effect file with the preset frequency, the normal light control and the audio-triggered light control can be performed.
In one embodiment, the method further comprises:
and generating the audio trigger light control effect file with the preset frequency and the conventional light control effect file according to the number of the lamps and the number of the lamp channels connected with the lamp controller.
In the embodiment of the invention, the corresponding audio frequency triggering light control effect file and the conventional light control effect file with the preset frequency can be generated according to the number of the connected lamps and the number of the lamp channels. And after the audio frequency trigger light control effect file and the conventional light control effect file are analyzed, the colorful state transformation of the lamp is controlled.
The number of lamp channels refers to the sum of all channels of all DMX512 protocol lamps. The number of fixtures is the total number of stage fixtures following the DMX512 protocol.
In one embodiment, step S20 specifically includes:
amplifying the audio signal;
filtering the amplified audio signal to obtain an audio signal with specified frequency;
and carrying out Fourier transform on the audio signal with the specified frequency, transforming the audio signal from a time domain to a frequency domain, and carrying out frequency extraction to obtain the frequency data.
In the embodiment of the present invention, the audio signal needs to be subjected to signal amplification, signal filtering, AD sampling, FFT algorithm processing, beat frequency extraction, and other operation procedures.
In the embodiment of the invention, the input audio signal is amplified by adopting the positive phase amplifying circuit and the differential amplifying circuit so as to improve the accuracy of the subsequent A/D in the quantization range.
In an embodiment of the present invention, the amplified audio signal is filtered by a filter, preferably a butterworth low-pass filter, which can remove the high-frequency music signal on the one hand and the low-frequency component of the high-frequency signal on the other hand. Preferably, only audio less than 5000HZ is extracted after filtering, which is the most comfortable for the user to hear.
In the embodiment of the invention, a frequency spectrum processor is utilized, a butterfly operation fast Fourier transform algorithm with 128 sampling points is used for carrying out Fourier transform on an audio signal with specified frequency, the audio signal is transformed from a time domain to a frequency domain, and then frequency extraction (namely extraction of a certain frequency rhythm) is carried out through an obtained frequency spectrum to obtain frequency data.
In one embodiment, the method further comprises:
when the audio trigger function is not started, the light control is carried out by analyzing the conventional light control effect file; when the audio triggering function is started, if no audio signal is collected, the light control is carried out by analyzing the conventional light control effect file; and when the audio triggering function is started and the audio signal is acquired, executing the step of processing the input audio signal according to the audio acquisition processing equipment to obtain frequency data.
In the embodiment of the present invention, after the light control device 10 is started, the single chip microcomputer controller 101 is used to perform software and hardware initialization operation, and then the memory 103 is scanned to determine whether a conventional light control effect file exists, if the conventional light control effect file exists, a conventional light control effect file is randomly selected, and a light control effect scene is played according to the conventional light control effect file, or the single chip microcomputer controller 101 is used to collect the voltage values of the keys to determine the corresponding actions of the keys, select a certain conventional light control effect file through the keys, and play the light control effect scene according to the conventional light control effect file. Then, the audio acquisition and processing device 102 is used for acquiring and processing the acquired audio signals to obtain frequency data, the frequency data is superposed on the audio data stream track and the conventional data stream track according to the frequency data, and finally the frequency data is analyzed into a light control file to control the gorgeous and varied effect of light.
The method includes acquiring and processing acquired audio signals by using the audio acquisition and processing device 102 to obtain frequency data, and superposing the frequency data on an audio data stream track and a conventional data stream track, and specifically includes:
acquiring and processing the acquired audio signals by using the audio acquisition and processing equipment 102 to obtain frequency data, judging whether an audio trigger function is started, analyzing a conventional light control effect file when the audio trigger function is not started to obtain a DMX512 control data packet, and sending the DMX512 control data packet by using a communication protocol of DMX512 to realize control of a plurality of lamps connected in parallel to the lamp controller 104; if the audio triggering function is started, whether a target audio triggering light control effect file matched with the frequency data exists in the memory 103 or not is scanned, if the target audio triggering light control effect file does not exist, the conventional light control effect file is analyzed to obtain a DMX512 control data packet, and the DMX512 control data packet is sent by using a communication protocol of DMX512, so that a plurality of lamps connected in parallel to the lamp controller 104 are controlled; if the audio triggering function is started and the target audio triggering light control effect file exists in the memory 103, the target audio triggering light control effect file and the conventional light control effect file are synthesized to obtain a synthesized light control effect file, the synthesized light control effect file is analyzed to obtain a DMX512 control data packet, and the DMX512 control data packet is sent by using a communication protocol of the DMX512, so that a plurality of lamps connected in parallel to the lamp controller 104 are controlled.
In an embodiment, after the light control device 10 is started, the single chip microcomputer controller 101 is used to perform software and hardware initialization operation, and then the memory 103 is scanned to determine whether a conventional light control effect file exists, and if the conventional light control effect file does not exist, a reminding message that the conventional light control effect file does not exist is displayed on the display. Or analyzing the conventional light control effect file and/or the audio-triggered light control effect file to obtain a DMX512 control data packet, and sending the DMX512 control data packet by using the communication protocol of the DMX512, so as to display frequency data and/or information corresponding to the played light control effect on the display after controlling the plurality of lamps connected in parallel to the lamp controller 104. The information corresponding to the played light control effect may be scene information or file information (for example, a serial number of the audio-triggered light control effect file) corresponding to the played audio-triggered light control effect file.
For convenience of understanding, here, for example, audio triggering light control is performed according to the frequency of a drum point, after the light control device 10 is started, software and hardware initialization operation is performed by using the single chip microcomputer controller 101, then, whether a conventional light control effect file exists in the memory 103 is scanned, if the conventional light control effect file exists, one conventional light control effect file is randomly selected, a light control effect scene is played according to the conventional light control effect file, a voltage value of a key can also be collected by using the single chip microcomputer controller 101, a corresponding action of the key is judged, a certain conventional light control effect file is selected through the key, and the light control effect scene is played according to the conventional light control effect file. Next, the audio acquisition and processing device 102 is used to acquire and process the acquired audio signal to obtain frequency data, wherein in the processing process, because the drumbeat frequency is generally between 80HZ and 100HZ, the audio of 80HZ to 100HZ is filtered, optionally, the amplitude of the audio can be filtered, for example, a threshold value is preset, the drumbeat audio smaller than the threshold value is filtered out, the light control is not performed according to the drumbeat audio smaller than the threshold value, and more flexible light control is realized according to the user requirement.
According to the light control method, the conventional lamp control data flow channel and the audio lamp control data flow channel are controlled in a dual-channel independent or superposed mode, the DMX512 protocol control data packets are produced according to different music beats and sent to the stage lamp, light is controlled, and colorful light effects can be achieved.
In one embodiment, as shown in a data format diagram of the conventional light control effect file shown in fig. 3, a plurality of conventional light control effect files are generated according to different light atmospheres, such as scenes of soft, hard, dynamic and the like. The data format of the conventional light control effect file is divided into a header file and channel data. The header file part comprises 5 parts of file size, microphone shaking interval, microphone shaking time and channel number. Wherein, the file size represents the data size of the conventional light control effect file; the microphone shaking function is used for enabling the microphone shaking function of the system, and if the function is started, all light scenes can be gathered in the same area through key selection of the system; the wheat shaking interval represents the minimum interval time required by starting the adjacent two wheat shaking functions; the microphone shaking duration refers to the maintaining time of all lights gathered in the same area after the microphone shaking function is started; the channel number refers to the sum of all channel numbers of all DMX512 protocol lamps; the channel data is used for controlling the change of the light state of all channels of the lamp and mainly comprises channel numbers, channel data lengths, offset and a plurality of sampling data; the channel number refers to the number of each lamp control state of a plurality of DMX512 lamps connected to the system; the channel data length refers to the packet size of the channel data; the offset refers to the number of bytes of difference between the sample data 1 of the channel and the data start of the regular file. When the conventional light control effect file is analyzed, one sampling data is taken from the data of different channel numbers to form a light control data packet of the DMX512 protocol, and the sampling data of each channel is taken from the 1 st sampling data after the last sampling data is taken, and the process is circulated continuously.
In an embodiment, as shown in the data format diagram of the audio touch control light control effect file shown in fig. 4, a plurality of audio touch control light control effect files with different frequencies are generated according to different light atmospheres. The data format of the audio touch control light control effect file is divided into a header file and a channel data. The header file comprises the contents of file size, audio sound control step number, an audio sound control step number linked list, sound control step duration, interval duration after audio superposition, channel number and the like; the file size represents the data size of the audio frequency triggered light control effect file; the number of the audio sound control steps refers to the number of times of the state change of the lamp after one-time audio triggering; the audio sound control step number chain table is used for storing audio sound control step numbers under audio touch control of different rhythms; the sound control step duration refers to a time difference value of two adjacent state changes of the lamp under audio frequency touch control; the interval duration after the audio frequency is overlapped refers to the re-triggering time after the audio frequency data streams are overlapped, if the audio frequency is re-triggered in the period of time, the light is controlled by adopting the audio frequency triggering data track, and if the audio frequency is not re-triggered in the period of time, the light is controlled by adopting the conventional data track.
In an embodiment, as shown in fig. 5, a schematic diagram of implementing a superimposed lighting effect of an audio touch lighting control effect file and a conventional lighting control effect file (i.e., a synthesized lighting control effect file), where a lighting control effect data stream is divided into a conventional lighting effect scene and an audio light control effect scene, and when the system does not enable audio rhythm touch, the conventional lighting effect scene is directly output as a light control data stream to perform lighting control; when the audio rhythm touch function is enabled, the system can superpose a conventional light effect scene and a plurality of audio light control effect scenes which accord with different music beats, and finally, light control is carried out on the superposed data stream.
As shown in fig. 5, when the music sounds and the rhythm touch point is not captured, the light control data stream performs data analysis according to the track of the conventional light effect data stream, that is, the 1 st data packet of the superimposed light control effect data is the 1 st data packet of the conventional light scene; when the 1 st rhythm touch point is captured, data of an audio light control effect scene 2 and conventional light effect control data are overlapped, and the number of overlapping steps is determined by the size of a linked list member; if the data stream superposition does not reach the step number specified by the link list member, the captured audio rhythm is invalid, for example, after the 2 nd audio touch point in fig. 5 arrives, the steps 4, 5 and 6 of the audio light control scene 2 need to be superposed (the link list member 2 is 3), and the audio 3 and 4 touch points in the process do not trigger and superpose the audio again.
Calculating the rhythm touch point frequency captured by the audio, executing different audio lighting effect data stream tracks according to different frequencies, and superposing the data track of the audio light control effect 2 and the conventional lighting effect data track when the rhythm frequency is lower; and if the audio rhythm is fast, superposing the data track of the audio lamp control effect 1 and the data track of the conventional light effect file.
After the dual-track data stream is overlapped by the number specified by the link list members, the audio re-triggering time is started to be timed, if a new audio rhythm is captured within the time from the time of starting to be timed to t2, re-triggering is performed, and if the new audio rhythm is not captured, the lamp control is controlled to recover the conventional light effect data track, as shown in the situation that 19, 20 and 21 of the overlapped light control effect file in the figure 5 belongs to the situation.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 1, a light control device 10 is provided, where the light control device 10 includes a single chip microcomputer controller 101, an audio acquisition and processing device 102, a memory 103, and a luminaire controller 104; the audio acquisition and processing device 102, the memory 103 and the lamp controller 104 are all connected with the single chip microcomputer controller 101; the memory 103 is used for storing an audio trigger light control effect file with a preset frequency and a conventional light control effect file;
the audio acquisition and processing device 102 is configured to process an input audio signal to obtain frequency data;
the single chip microcomputer controller 101 is used for intelligently matching the frequency data with the audio light control effect files of the corresponding song scenes according to the single chip microcomputer controller; synthesizing the target audio trigger light control effect file and the conventional light control effect file to obtain a synthesized light control effect file;
and the lamp controller 104 is configured to parse the synthesized light control effect file to obtain a light control instruction, and perform light control according to the light control instruction.
In the embodiment of the present invention, the memory 103 is configured to store a light control effect file, which is an audio trigger light control effect file with a preset frequency and a conventional light control effect file. When no audio signal is input or the audio trigger function is not started, controlling the light by analyzing the conventional light control effect file; when an audio signal is input and the audio triggering function is enabled, the audio signal is processed and matched to obtain a target audio triggering light control effect file, the target audio triggering light control effect file and a conventional light control effect file are synthesized to obtain a synthesized light control effect file, and light control is performed by analyzing the synthesized light control effect file.
The light control command may be a DMX512 control packet. The lamp controller 104 may analyze the target audio to trigger the light control effect file, obtain a DMX512 control data packet, and send the DMX512 control data packet according to a communication protocol of the DMX512, so as to control a plurality of lamps connected in parallel to the lamp controller 104.
The light control equipment comprises a single chip microcomputer controller 101, an audio acquisition processing device 102, a memory 103 and a lamp controller 104, wherein the audio acquisition processing device 102, the memory 103 and the lamp controller 104 are all connected with the single chip microcomputer controller 101, the memory 103 is used for storing an audio trigger light control effect file with preset frequency and a conventional light control effect file, the audio acquisition processing device 102 is used for processing an input audio signal to obtain frequency data, the single chip microcomputer controller 101 is used for intelligently matching the frequency data with the audio light control effect file of a corresponding song scene and synthesizing a target audio trigger light control effect file and the conventional light control effect file to obtain a synthesized light control effect file, and the lamp controller 104 is used for analyzing the synthesized light control effect file, and obtaining a light control instruction, and controlling light according to the light control instruction. The audio acquisition and processing device 102 is used for processing input audio signals to obtain frequency data, the single chip microcomputer controller 101 matches the frequency data with an audio trigger light control effect file to obtain a target audio trigger light control effect file matched with the frequency data, the target audio trigger light control effect file is synthesized with a conventional light control effect file to obtain a synthesized light control effect file, the lamp controller 104 is used for displaying light effects according to the synthesized light control effect file, and multiple corresponding light effects can be changed according to different music scenes and beats. In addition, the target audio frequency triggering light control effect file comprises an audio frequency triggering interval, triggering intensity and frequency value range characteristics, the target audio frequency triggering light control effect file and the conventional light control effect file are synthesized, light control is performed according to the synthesized light control effect file, therefore, the audio frequency triggering light effect can be performed according to the audio frequency triggering interval, the triggering intensity and frequency value range characteristics, when the audio frequency triggering light effect is not performed according to the audio frequency triggering interval, the triggering intensity and frequency value range characteristics, the light effect can be performed according to the conventional light control effect file, and the situation that no light effect exists under the condition that no light effect is triggered by the audio frequency is avoided. In addition, since the memory 103 stores the audio-triggered light control effect file and the normal light control effect file with the preset frequency, the normal light control and the audio-triggered light control can be performed.
In one embodiment, as shown in fig. 6, there is provided a light control device 10, wherein the light control device 10 further includes a PC upper computer debugging device 60; the PC upper computer debugging device 60 is connected with the single chip microcomputer controller 101 in a serial port communication mode;
the PC upper computer debugging device 60 is configured to generate the audio-triggered light control effect file with the preset frequency and the conventional light control effect file according to the number of the lamps and the number of the lamp channels connected to the lamp controller 104.
In the embodiment of the present invention, the PC upper computer debugging device 60 can generate an audio-triggered light control effect file and a conventional light control effect file with corresponding preset frequencies according to the number of connected lamps and the number of lamp channels. The colorful state transformation of the lamp is controlled after the analysis by the lamp controller 104.
The number of lamp channels refers to the sum of all channels of all DMX512 protocol lamps. The number of fixtures is the total number of stage fixtures following the DMX512 protocol.
In one embodiment, the audio acquisition processing device 102 includes a signal amplification circuit, a filter, a spectrum processor;
the signal amplifying circuit is used for amplifying the audio signal;
the filter is used for filtering the amplified audio signal to obtain an audio signal with specified frequency;
the frequency spectrum processor is used for carrying out Fourier transform on the audio signal with the specified frequency, transforming the audio signal from a time domain to a frequency domain, and carrying out frequency extraction to obtain the frequency data.
In the embodiment of the present invention, the audio acquisition processing device 102 performs operation procedures such as signal amplification, signal filtering, AD sampling, FFT algorithm processing, and beat frequency extraction on an audio signal.
In the embodiment of the invention, the signal amplifying circuit adopts the normal phase amplifying circuit and the differential amplifying circuit to amplify the input audio signal so as to improve the precision of the subsequent A/D in the quantization range.
In an embodiment of the present invention, the filter is preferably a butterworth low-pass filter, which on the one hand can reject high frequency music signals and on the other hand reject low frequency components of high frequency signals. Preferably, only audio less than 5000HZ is extracted after filtering, which is the most comfortable for the user to hear.
In the embodiment of the invention, a frequency spectrum processor is utilized, a butterfly operation fast Fourier transform algorithm with 128 sampling points is used for carrying out Fourier transform on an audio signal with specified frequency, the audio signal is transformed from a time domain to a frequency domain, and then frequency extraction (namely extraction of a certain frequency rhythm) is carried out through an obtained frequency spectrum to obtain frequency data.
In one embodiment, there is provided a light control device 10, said light control device 10 further comprising power supply means; the power supply device converts the 220V commercial power into a direct current to output to the light control device 10.
In the embodiment of the present invention, the power supply device converts the 220V commercial power into a plurality of dc power outputs of 3.3V, 5V, 12V, etc. to be supplied to each device or circuit in the light control device 10, or to be supplied to the light fixture.
In one embodiment, there is provided a light control device 10, said light control device 10 further comprising a keypad input means; the keyboard input device is connected with the single chip microcomputer controller 101 through pins;
when the keyboard input device presses different keys, different voltage values can be output;
the single chip microcomputer controller 101 judges the corresponding action of the key by collecting the voltage value and executes the corresponding function.
In the embodiment of the invention, the keyboard input device is provided with five keys of an UP key, a DOWN key, a confirm key, a cancel key and a menu key, and is connected with the singlechip controller 101 through a pin, different keys are pressed on the keyboard input device to output different voltage values, and the singlechip controller 101 judges corresponding key actions by collecting the voltage values, wherein the key actions are which key of the UP key, the DOWN key, the confirm key, the cancel key and the menu key is pressed.
In the embodiment of the present invention, after the light control device 10 is started, the single chip microcomputer controller 101 is used to perform software and hardware initialization operation, and then the memory 103 is scanned to determine whether a conventional light control effect file exists, if the conventional light control effect file exists, a conventional light control effect file is randomly selected, and a light control effect scene is played according to the conventional light control effect file, or the single chip microcomputer controller 101 is used to collect the voltage values of the keys to determine the corresponding actions of the keys, select a certain conventional light control effect file through the keys, and play the light control effect scene according to the conventional light control effect file. Then, the audio acquisition and processing device 102 is used for acquiring and processing the acquired audio signals to obtain frequency data, the frequency data is superposed on the audio data stream track and the conventional data stream track according to the frequency data, and finally the frequency data is analyzed into a light control file to control the gorgeous and varied effect of light.
The method includes acquiring and processing acquired audio signals by using the audio acquisition and processing device 102 to obtain frequency data, and superposing the frequency data on an audio data stream track and a conventional data stream track, and specifically includes:
acquiring and processing the acquired audio signals by using the audio acquisition and processing equipment 102 to obtain frequency data, judging whether an audio trigger function is started, analyzing a conventional light control effect file when the audio trigger function is not started to obtain a DMX512 control data packet, and sending the DMX512 control data packet by using a communication protocol of DMX512 to realize control of a plurality of lamps connected in parallel to the lamp controller 104; if the audio triggering function is started, whether a target audio triggering light control effect file matched with the frequency data exists in the memory 103 or not is scanned, if the target audio triggering light control effect file does not exist, the conventional light control effect file is analyzed to obtain a DMX512 control data packet, and the DMX512 control data packet is sent by using a communication protocol of DMX512, so that a plurality of lamps connected in parallel to the lamp controller 104 are controlled; if the audio triggering function is started and the target audio triggering light control effect file exists in the memory 103, the target audio triggering light control effect file and the conventional light control effect file are synthesized to obtain a synthesized light control effect file, the synthesized light control effect file is analyzed to obtain a DMX512 control data packet, and the DMX512 control data packet is sent by using a communication protocol of the DMX512, so that a plurality of lamps connected in parallel to the lamp controller 104 are controlled.
In one embodiment, there is provided a light control device 10, said light control device 10 further comprising a display; the display is connected with the single chip microcomputer controller 101;
the display is used for displaying the frequency data and/or displaying information corresponding to the played light control effect.
In the embodiment of the present invention, after the light control device 10 is started, the single chip microcomputer controller 101 is used to perform software and hardware initialization operation, and then the memory 103 is scanned to determine whether a conventional light control effect file exists, and if the conventional light control effect file does not exist, a reminding message indicating that the conventional light control effect file does not exist is displayed on the display. Or analyzing the conventional light control effect file and/or the audio-triggered light control effect file to obtain a DMX512 control data packet, and sending the DMX512 control data packet by using the communication protocol of the DMX512, so as to display frequency data and/or information corresponding to the played light control effect on the display after controlling the plurality of lamps connected in parallel to the lamp controller 104. The information corresponding to the played light control effect may be scene information or file information (for example, a serial number of the audio-triggered light control effect file) corresponding to the played audio-triggered light control effect file.
The lighting control device 10 controls the lighting control device by adopting a mode that a conventional lamp control data flow channel and an audio lamp control data flow channel are independent or overlapped, and produces DMX512 protocol control data packets according to different music beats to send the data packets to the stage lamp, so that the lighting control device can control the lighting, and can realize colorful lighting effects. In addition, this light controlgear 10 simple structure, convenient to carry, application reliability are strong, and the interactive KTV of specially adapted music and light sight is in a bag room and intelligent house.
In one embodiment, as shown in fig. 7, there is provided a light playing system, which includes the light control device 10 according to the above embodiment, and further includes a plurality of lamps 70;
the plurality of lamps 70 are connected in parallel with the lamp controller 104 by RJ45 crystal heads.
In the embodiment of the present invention, the lamp 70 is a DMX512 lamp, and each lamp has a plurality of channels to control the switching of different states of the lamp.
In the embodiment of the present invention, the light playing system includes a light control device 10 and a plurality of lamps 70, the light control device 10 includes a single chip controller 101, an audio acquisition and processing device 102, a memory 103, and a lamp controller 104, and the lamp controller 104 is connected to the plurality of lamps 70. The luminaire 70 includes a multi-channel DMX512 protocol luminaire 1, a multi-channel DMX512 protocol luminaire 2, a multi-channel DMX512 protocol luminaire 3, and so on.
The light playing system has a conventional light effect data control track and an audio light effect data track. The lamps are controlled in a mode that a conventional lamp control data flow channel and an audio lamp control data flow channel are independent or overlapped, DMX512 protocol control data packets are produced according to different music beats and sent to the stage lamps, light is controlled, and colorful light effects can be achieved. In addition, this system simple structure, convenient to carry, application reliability are strong, and the interactive KTV of specially adapted music and light sight is in a bag room and intelligent house.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
processing the input audio signal to obtain frequency data;
intelligently matching the frequency data with audio light control effect files of corresponding song scenes according to the single-chip microcomputer controller;
synthesizing the target audio trigger light control effect file and the conventional light control effect file to obtain a synthesized light control effect file;
and analyzing the synthesized light control effect file to obtain a light control instruction, and controlling light according to the light control instruction.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A light control method is suitable for light control equipment and is characterized in that the light control equipment comprises a single chip microcomputer controller, audio acquisition and processing equipment, a memory and a lamp controller; the audio acquisition and processing equipment, the memory and the lamp controller are all connected with the single chip microcomputer controller; the memory is used for storing an audio trigger light control effect file with a preset frequency and a conventional light control effect file;
the method comprises the following steps:
processing the input audio signal according to the audio acquisition and processing equipment to obtain frequency data;
intelligently matching the frequency data with audio light control effect files of corresponding song scenes according to the single-chip microcomputer controller;
synthesizing the target audio trigger light control effect file and the conventional light control effect file to obtain a synthesized light control effect file;
and analyzing the synthesized light control effect file according to the lamp controller to obtain a light control instruction, and controlling light according to the light control instruction.
2. The method of claim 1, further comprising:
and generating the audio trigger light control effect file with the preset frequency and the conventional light control effect file according to the number of the lamps and the number of the lamp channels connected with the lamp controller.
3. The method of claim 1, wherein the processing the input audio signal according to the audio acquisition processing device to obtain frequency data comprises:
amplifying the audio signal;
filtering the amplified audio signal to obtain an audio signal with specified frequency;
and carrying out Fourier transform on the audio signal with the specified frequency, transforming the audio signal from a time domain to a frequency domain, and carrying out frequency extraction to obtain the frequency data.
4. The method of claim 1, wherein the processing the input audio signal according to the audio acquisition processing device to obtain frequency data further comprises:
when the audio trigger function is not started, the light control is carried out by analyzing the conventional light control effect file;
when the audio triggering function is started, if no audio signal is collected, the light control is carried out by analyzing the conventional light control effect file;
and when the audio triggering function is started and the audio signal is acquired, executing the step of processing the input audio signal according to the audio acquisition processing equipment to obtain frequency data.
5. A light control device is characterized by comprising a single chip microcomputer controller, an audio acquisition and processing device, a memory and a lamp controller; the audio acquisition and processing equipment, the memory and the lamp controller are all connected with the single chip microcomputer controller; the memory is used for storing an audio trigger light control effect file with a preset frequency and a conventional light control effect file;
the audio acquisition and processing equipment is used for processing the input audio signals to obtain frequency data;
the single chip microcomputer controller is used for intelligently matching the frequency data with the audio light control effect files of the corresponding song scenes according to the single chip microcomputer controller; synthesizing the target audio trigger light control effect file and the conventional light control effect file to obtain a synthesized light control effect file;
and the lamp controller is used for analyzing the synthesized light control effect file to obtain a light control instruction and controlling light according to the light control instruction.
6. The light control equipment of claim 5, further comprising a PC upper computer debugging device; the PC upper computer debugging device is connected with the single chip microcomputer controller in a serial port communication mode;
and the PC upper computer debugging device is used for generating the audio trigger light control effect file with the preset frequency and the conventional light control effect file according to the number of the lamps and the number of the lamp channels connected with the lamp controller.
7. The light control device of claim 5, wherein the audio collection and processing device comprises a signal amplification circuit, a filter, and a spectrum processor;
the signal amplifying circuit is used for amplifying the audio signal;
the filter is used for filtering the amplified audio signal to obtain an audio signal with specified frequency;
the frequency spectrum processor is used for carrying out Fourier transform on the audio signal with the specified frequency, transforming the audio signal from a time domain to a frequency domain, and carrying out frequency extraction to obtain the frequency data.
8. A light control device as claimed in claim 5 further comprising a keypad input means; the keyboard input device is connected with the single chip microcomputer controller through pins;
when the keyboard input device presses different keys, different voltage values can be output;
and the singlechip controller judges the action of the corresponding key by acquiring the voltage value and executes the corresponding function.
9. A light control device as claimed in claim 5 further comprising a display; the display is connected with the single chip microcomputer controller;
the display is used for displaying the frequency data and/or displaying information corresponding to the played light control effect.
10. A light playing system, characterized in that the light playing system comprises the light control device according to any one of claims 1-7, and further comprises a plurality of lamps;
the lamps are connected with the lamp controller in a parallel mode through RJ45 crystal heads.
CN201911330600.3A 2019-12-20 2019-12-20 Light control method, light control equipment, light playing system and storage medium Pending CN111007776A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911330600.3A CN111007776A (en) 2019-12-20 2019-12-20 Light control method, light control equipment, light playing system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911330600.3A CN111007776A (en) 2019-12-20 2019-12-20 Light control method, light control equipment, light playing system and storage medium

Publications (1)

Publication Number Publication Date
CN111007776A true CN111007776A (en) 2020-04-14

Family

ID=70117585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911330600.3A Pending CN111007776A (en) 2019-12-20 2019-12-20 Light control method, light control equipment, light playing system and storage medium

Country Status (1)

Country Link
CN (1) CN111007776A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612438A (en) * 2020-12-30 2021-04-06 北京小米移动软件有限公司 Shell display state control method and device, electronic equipment and storage medium
CN112667027A (en) * 2020-12-22 2021-04-16 北京小米移动软件有限公司 Shell display state control method and device, electronic equipment and storage medium
CN113490315A (en) * 2021-01-20 2021-10-08 深圳市智岩科技有限公司 Lighting device control method, lighting device control device, control device and storage medium
CN114286478A (en) * 2021-12-31 2022-04-05 深圳市智岩科技有限公司 Lamp control method and related equipment thereof
CN115520090A (en) * 2022-11-04 2022-12-27 北京经纬恒润科技股份有限公司 Control method and device of light information, storage medium and equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667027A (en) * 2020-12-22 2021-04-16 北京小米移动软件有限公司 Shell display state control method and device, electronic equipment and storage medium
CN112612438A (en) * 2020-12-30 2021-04-06 北京小米移动软件有限公司 Shell display state control method and device, electronic equipment and storage medium
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
CN114286478A (en) * 2021-12-31 2022-04-05 深圳市智岩科技有限公司 Lamp control method and related equipment thereof
CN114286478B (en) * 2021-12-31 2024-03-22 深圳市智岩科技有限公司 Lamp control method and related equipment thereof
CN115520090A (en) * 2022-11-04 2022-12-27 北京经纬恒润科技股份有限公司 Control method and device of light information, storage medium and equipment

Similar Documents

Publication Publication Date Title
CN111007776A (en) Light control method, light control equipment, light playing system and storage medium
TWI600992B (en) A music and light rhythm system and method
CN106304539B (en) A kind of music lantern controller design method followed based on rhythm
CN101969841B (en) Modifying a psychophysiological state of a subject
Baier et al. Event-based sonification of EEG rhythms in real time
KR100591995B1 (en) Display control device, display control method and recording medium of character
CN110996430A (en) Light control method, light control equipment and music room
CN105118352A (en) Full-automatic musical instrument playing error correction method
CN109640465A (en) Lamp light control method, device, equipment and the storage medium of automatic identification music
CN106875930A (en) Lamp light control method and system based on song sound accompaniment and microphone voice real-time detection
CN106332378A (en) Intelligent flickering LED lamp based on music rhythm identification and control method of intelligent flickering LED lamp
CN106383676B (en) Instant photochromic rendering system for sound and application thereof
WO2021108212A2 (en) Methods and apparatus to control lighting effects
CN211481569U (en) Light control equipment and light playing system
US20070256548A1 (en) Music Information Calculation Apparatus and Music Reproduction Apparatus
CN105810226A (en) Method and system for controlling expression effects of music
JP5750641B2 (en) MEDICAL SUPPORT DEVICE AND MEDICAL SUPPORT DEVICE OPERATING METHOD
CN112927713B (en) Audio feature point detection method, device and computer storage medium
JP2004357758A (en) Biological sound detection data processor, biological sound detection data processing method and biological sound detection data processing program
WO2018008081A1 (en) Music selection device for generating lighting control data, music selection method for generating lighting control data, and music selection program for generating lighting control data
JP2008006218A (en) Music game machine
CN115277279B (en) Intelligent bedside cabinet control method, voice recognition method, computer and storage medium
TWI328217B (en) Game machine having a function for discriminating music tempo
JP4078375B2 (en) Music game machine
JP2002112113A (en) Video-editing apparatus and storage medium

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