CN111800905A - Method and device for controlling light - Google Patents

Method and device for controlling light Download PDF

Info

Publication number
CN111800905A
CN111800905A CN202010889235.6A CN202010889235A CN111800905A CN 111800905 A CN111800905 A CN 111800905A CN 202010889235 A CN202010889235 A CN 202010889235A CN 111800905 A CN111800905 A CN 111800905A
Authority
CN
China
Prior art keywords
audio
light
track
controlling
audio track
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.)
Withdrawn
Application number
CN202010889235.6A
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.)
Jilin Zhongxin Precision Manufacturing Co ltd
Original Assignee
Jilin Zhongxin Precision Manufacturing 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 Jilin Zhongxin Precision Manufacturing Co ltd filed Critical Jilin Zhongxin Precision Manufacturing Co ltd
Priority to CN202010889235.6A priority Critical patent/CN111800905A/en
Publication of CN111800905A publication Critical patent/CN111800905A/en
Withdrawn legal-status Critical Current

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
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/20Controlling the colour of the light

Abstract

The invention discloses a method and a device for controlling light, which relate to the field of light control, wherein the method comprises the steps of obtaining a sound track of a target audio frequency; based on a preset audio track processing algorithm, processing and calculating the extracted audio track to obtain an audio rhythm value; and controlling light to display according to the audio rhythm value. By adopting the invention, the practicability of the atmosphere lamp can be improved.

Description

Method and device for controlling light
Technical Field
The invention relates to the field of light control, in particular to a method for controlling light.
Background
At present, atmosphere lamps are on the market for increasing pleasure. The atmosphere lamp mainly drives an LED (light source) to emit light according to fixed frequency, and the two light emitting modes are two, wherein one mode is that multicolor light flickers alternately according to fixed frequency; one is that the monochromatic light flashes at a fixed frequency. However, no matter which lighting mode is adopted, the lighting frequency flickers according to the preset fixed frequency, so that the problem that the atmosphere flickering is only according to the fixed frequency of the user no matter what kind of music is played currently, whether the atmosphere of the music is high or low, cheerful or worried exists, the atmosphere flickering is possibly not created for the user while the music is not attached, and the practicability of the atmosphere lamp is low.
Disclosure of Invention
In order to solve the technical problems in the background art, embodiments of the present invention provide a method and an apparatus for controlling light.
In a first aspect, a method of controlling lighting comprises:
acquiring a sound track of the target audio;
based on a preset audio track processing algorithm, processing and calculating the extracted audio track to obtain an audio rhythm value;
and controlling light to display according to the audio rhythm value.
Optionally, the acquiring the audio track of the target audio includes:
reading a currently played target audio, and extracting an audio track of the target audio based on a preset audio track extraction algorithm.
Optionally, the processing and calculating the extracted audio track based on a preset audio track processing algorithm to obtain an audio rhythm value includes:
classifying the extracted audio tracks through a preset audio track processing algorithm;
and determining an audio rhythm value according to the classified audio track.
Optionally, the controlling light to be displayed according to the audio rhythm value includes:
acquiring a comparison table of pre-stored audio rhythm values and light parameters, and reading light colors and light duration corresponding to the audio rhythm values according to the acquired audio rhythm values;
and controlling the light to display according to the read light color and the light duration.
Optionally, after the control light is displayed, the method further includes:
and when the audio track of the target audio frequency cannot be acquired within the preset time, controlling the light to be turned off.
In a second aspect, an apparatus for controlling light includes:
an acquisition unit configured to acquire a track of the target audio;
the processing unit is used for processing and calculating the extracted audio track based on a preset audio track processing algorithm to obtain an audio rhythm value;
and the control unit is used for controlling light to be displayed according to the audio rhythm value.
Optionally, the obtaining unit is configured to:
reading a currently played target audio, and extracting an audio track of the target audio based on a preset audio track extraction algorithm.
Optionally, the processing unit is configured to:
classifying the extracted audio tracks through a preset audio track processing algorithm;
and determining an audio rhythm value according to the classified audio track.
Optionally, the control unit is configured to:
acquiring a comparison table of pre-stored audio rhythm values and light parameters, and reading light colors and light duration corresponding to the audio rhythm values according to the acquired audio rhythm values;
and controlling the light to display according to the read light color and the light duration.
Optionally, the control unit is further configured to:
and when the audio track of the target audio frequency cannot be acquired within the preset time, controlling the light to be turned off.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
after the audio track of audio frequency is snatched, light colour and light duration are confirmed according to the audio track for light can carry out the glistening rhythm according to the rhythm of audio frequency, lets light (atmosphere lamp) humanized more, more intelligent, lets light (atmosphere lamp) can be more appropriate user's mood, accords with user's demand, has improved the practicality of light.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for controlling light according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for controlling light according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device of a method for controlling light according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for controlling light according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
It will be understood that when an element is referred to as being "disposed on" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "secured to" another element, it can be directly connected to the other element or intervening elements may also be present.
In the present invention, unless otherwise specified, the terms of orientation such as "upper, lower, left, right" used herein generally refer to the upper, lower, left, and right directions as shown in fig. 1. "inner and outer" refer to the inner and outer portions of a particular contour. "distal and proximal" refer to distal and proximal relative to a component.
Fig. 1 is a flowchart illustrating a method of controlling light according to an exemplary embodiment, which is used in an electronic device, which may be a terminal, as shown in fig. 1, and includes the following steps:
step 101, acquiring a sound track of a target audio.
And 102, processing and calculating the extracted audio track based on a preset audio track processing algorithm to obtain an audio rhythm value.
And 103, controlling light to display according to the audio rhythm value.
Optionally, the obtaining of the audio track of the target audio comprises:
and reading the currently played target audio, and extracting the audio track of the target audio based on a preset audio track extraction algorithm.
Optionally, based on a preset audio track processing algorithm, performing processing operation on the extracted audio track to obtain an audio rhythm value, including:
classifying the extracted audio tracks through a preset audio track processing algorithm;
an audio tempo value is determined from the classified audio tracks.
Optionally, according to the audio rhythm value, controlling the light to display includes:
obtaining a pre-stored audio rhythm value and a comparison table of light parameters, and reading light colors and light duration corresponding to the audio rhythm value according to the obtained audio rhythm value;
and controlling the light to display according to the read light color and the light duration.
Optionally, after controlling the light to display, the method further includes:
and when the audio track of the target audio cannot be acquired within the preset time, controlling the light to be turned off.
After the audio track of audio frequency is snatched, light colour and light duration are confirmed according to the audio track for light can carry out the glistening rhythm according to the rhythm of audio frequency, lets light (atmosphere lamp) humanized more, more intelligent, lets light (atmosphere lamp) can be more appropriate user's mood, accords with user's demand, has improved the practicality of light.
Fig. 2 is a flowchart illustrating a method of controlling lighting according to an exemplary embodiment, where the method is used in an electronic device, the electronic device reads a currently played target audio, the electronic device may be a car audio, a home theater, a mobile phone, or the like, as shown in fig. 3, the electronic device includes an audio conversion chip, a micro-processing chip, and an rgb (red greenblue) driver, where the micro-processing chip includes a 12S interface and a Lin interface. The method comprises the following steps:
step 201, reading a currently played target audio, and extracting a sound track of the target audio based on a preset sound track extraction algorithm.
In one possible embodiment, when a user turns on music (which may be referred to as target audio) in various occasions, such as driving in a car, in a party, or at home, an electronic device, such as a car stereo, a home theater, or a mobile phone, reads the currently played target audio. Specifically, an audio conversion chip in the electronic device reads a currently played target audio, converts an audio signal into an electrical signal through the audio conversion chip of the electronic device, and transmits the electrical signal to the microprocessor chip. Then, the micro-processing chip extracts and calculates the audio track of the extracted target audio according to the pre-stored audio track, and the audio track extraction algorithm may be a currently general audio track extraction algorithm or a currently commonly used audio track extraction application program, which is not described in detail herein.
Step 202, classifying the extracted audio tracks through a preset audio track processing algorithm.
Step 203, determining an audio rhythm value according to the classified audio tracks.
In a possible embodiment, the preset track processing algorithm is that a micro-processing chip of the electronic device performs track reading on the extracted tracks, then classifies the current track according to the change of the sound wave frequency of the track, and distinguishes which type of track is preset through the track processing algorithm, for example, whether the track is hyperemic or hypobaric, or whether the track is soothing or exciting, specifically, the current track is compared with a preset type of track and the similarity is determined, when the similarity of the current track and a certain type of track is greater than a preset threshold, it can be determined that the current track belongs to the certain type, and then a corresponding type value, which may be called an audio rhythm value, is marked on the current track.
And 204, acquiring a pre-stored comparison table of the audio rhythm value and the light parameter, and reading the light color and the light duration corresponding to the audio rhythm value according to the acquired audio rhythm value.
In a possible implementation manner, after the audio rhythm value is determined, the electronic device reads a comparison table of the pre-stored audio rhythm value and the light parameter, in the comparison table, the light parameter corresponding to the determined audio rhythm value is searched, the light parameter may include a corresponding light color and a light duration, and the micro-processing chip transmits the light parameter to an RGB driver of the electronic device.
The changes in temperature of the light colors can create different atmospheres, for example, warm tones such as red, yellow, orange and the like can create joyful and lively atmospheres, while warm tones such as blue, purple, green and the like can create deep and relaxed atmospheres, so that the light with different colors can create different atmospheres according to the music tracks of the target audio.
And step 205, controlling the light to display according to the read light color and the light duration.
In one possible embodiment, the RGB driver of the electronic device receives the light color and the light duration, controls the color of the current light presentation according to the light color, and controls the duration of the color of the current light presentation according to the light duration. And controlling the light to change colors according to the audio track of the target audio according to the extraction and operation of a section of audio track, and flashing rhythm according to rhythm.
And step 206, when the audio track of the target audio cannot be obtained within the preset time, controlling the light to be turned off.
In a possible implementation manner, when the audio track of the target audio is not obtained within the preset time, it may be that the user does not want to play the audio any more, and the microprocessor chip of the electronic device may control the light to turn off for the purpose of saving resources for the user.
According to the method and the device, after the audio track of the audio is captured, the color and duration of the light are determined according to the audio track, so that the light can be glaring according to the rhythm of the audio, the light (atmosphere lamp) is more humanized and intelligent, the light (atmosphere lamp) can be closer to the emotion of a user, the requirements of the user are met, and the practicability of the light is improved.
Fig. 4 is a schematic structural diagram illustrating an apparatus for controlling light according to an exemplary embodiment, which is used in the electronic device in the above-described embodiment. The apparatus comprises an acquisition unit 401, a processing unit 402 and a control unit 403.
An acquisition unit 401 configured to acquire a track of the target audio;
the processing unit 402 is configured to perform processing operation on the extracted audio track based on a preset audio track processing algorithm to obtain an audio rhythm value;
and a control unit 403, configured to control light to be displayed according to the audio rhythm value.
Optionally, the obtaining unit 401 is configured to:
reading a currently played target audio, and extracting an audio track of the target audio based on a preset audio track extraction algorithm.
Optionally, the processing unit 402 is configured to:
classifying the extracted audio tracks through a preset audio track processing algorithm;
and determining an audio rhythm value according to the classified audio track.
Optionally, the control unit 403 is configured to:
acquiring a comparison table of pre-stored audio rhythm values and light parameters, and reading light colors and light duration corresponding to the audio rhythm values according to the acquired audio rhythm values;
and controlling the light to display according to the read light color and the light duration.
Optionally, the control unit 403 is further configured to:
and when the audio track of the target audio frequency cannot be acquired within the preset time, controlling the light to be turned off.
According to the method and the device, after the audio track of the audio is captured, the color and duration of the light are determined according to the audio track, so that the light can be glaring according to the rhythm of the audio, the light (atmosphere lamp) is more humanized and intelligent, the light (atmosphere lamp) can be closer to the emotion of a user, the requirements of the user are met, and the practicability of the light is improved.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method of controlling lighting, the method comprising:
acquiring a sound track of the target audio;
based on a preset audio track processing algorithm, processing and calculating the extracted audio track to obtain an audio rhythm value;
and controlling light to display according to the audio rhythm value.
2. The method of claim 1, wherein the obtaining the audio track of the target audio comprises:
reading a currently played target audio, and extracting an audio track of the target audio based on a preset audio track extraction algorithm.
3. A method for controlling light according to claim 1, wherein the processing operation is performed on the extracted audio track based on a preset audio track processing algorithm to obtain an audio rhythm value, and the method comprises:
classifying the extracted audio tracks through a preset audio track processing algorithm;
and determining an audio rhythm value according to the classified audio track.
4. A method for controlling a light as claimed in claim 1, wherein controlling the light to be displayed according to the audio rhythm value comprises:
acquiring a comparison table of pre-stored audio rhythm values and light parameters, and reading light colors and light duration corresponding to the audio rhythm values according to the acquired audio rhythm values;
and controlling the light to display according to the read light color and the light duration.
5. A method for controlling lighting according to claim 1, wherein after said controlling lighting is displayed, further comprising:
and when the audio track of the target audio frequency cannot be acquired within the preset time, controlling the light to be turned off.
6. An apparatus for controlling a light, comprising:
an acquisition unit configured to acquire a track of the target audio;
the processing unit is used for processing and calculating the extracted audio track based on a preset audio track processing algorithm to obtain an audio rhythm value;
and the control unit is used for controlling light to be displayed according to the audio rhythm value.
7. A device for controlling lighting according to claim 6, wherein said obtaining unit is configured to:
reading a currently played target audio, and extracting an audio track of the target audio based on a preset audio track extraction algorithm.
8. An arrangement for controlling lighting according to claim 6, wherein said processing unit is adapted to:
classifying the extracted audio tracks through a preset audio track processing algorithm;
and determining an audio rhythm value according to the classified audio track.
9. An arrangement for controlling lighting according to claim 6, wherein said control unit is adapted to:
acquiring a comparison table of pre-stored audio rhythm values and light parameters, and reading light colors and light duration corresponding to the audio rhythm values according to the acquired audio rhythm values;
and controlling the light to display according to the read light color and the light duration.
10. An arrangement for controlling lighting according to claim 6, wherein said control unit is further adapted to:
and when the audio track of the target audio frequency cannot be acquired within the preset time, controlling the light to be turned off.
CN202010889235.6A 2020-08-28 2020-08-28 Method and device for controlling light Withdrawn CN111800905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010889235.6A CN111800905A (en) 2020-08-28 2020-08-28 Method and device for controlling light

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010889235.6A CN111800905A (en) 2020-08-28 2020-08-28 Method and device for controlling light

Publications (1)

Publication Number Publication Date
CN111800905A true CN111800905A (en) 2020-10-20

Family

ID=72834473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010889235.6A Withdrawn CN111800905A (en) 2020-08-28 2020-08-28 Method and device for controlling light

Country Status (1)

Country Link
CN (1) CN111800905A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114375083A (en) * 2021-12-17 2022-04-19 广西世纪创新显示电子有限公司 Light rhythm method, device, terminal equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114375083A (en) * 2021-12-17 2022-04-19 广西世纪创新显示电子有限公司 Light rhythm method, device, terminal equipment and storage medium
CN114375083B (en) * 2021-12-17 2024-04-05 广西世纪创新显示电子有限公司 Light rhythm method, device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
TWI600992B (en) A music and light rhythm system and method
CN110027469B (en) Vehicle-mounted music based lamp control method and system and vehicle
CN101388234B (en) Multimedia playing system with lighting display device
WO2016112631A1 (en) Light control system and method
CN106304539A (en) A kind of music lantern controller design method followed based on rhythm
CN103607823B (en) A kind of LED light emission device
CN109089355A (en) A kind of car bulb control method and system based on music signal
CN110217162A (en) Vehicle atmosphere lamp control method, device, computer readable storage medium and vehicle
CN110996477B (en) Air conditioner lamp control method, computer device and computer readable storage medium
CN109121254A (en) Variable multicolor LED atmosphere lamp control system and method
CN111800905A (en) Method and device for controlling light
CN113573442A (en) Method, apparatus, and computer-readable storage medium for audio control of scenes
CN201063933Y (en) Audio modulation color lamp controller
EP3760008B1 (en) Rendering a dynamic light scene based on one or more light settings
CN105988369A (en) Content-driving-based intelligent household control method
CN106470513A (en) Illumination control method and device
US20200296505A1 (en) Acousto-optic Driver and Acousto-optic Device
CN114684013A (en) Intelligent adjusting system and control method for atmosphere lamp in vehicle
US20150216014A1 (en) Theatrical effects controller with color correction
WO2019238834A1 (en) Method and controller for selecting media content based on a lighting scene
US20150223307A1 (en) Theatrical effects controller with ultrasonic output
CN112506411A (en) Display control method, device, equipment and storage medium for household electrical appliance
CN109348573B (en) Method and system for controlling LED night lamp capable of changing color by listening to voice
JPH05121175A (en) Illumination device
CN108696968A (en) A kind of light modulation/shading process for lamps and lanterns

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20201020