CN112172978A - Method, device and equipment for controlling balance car light and storage medium - Google Patents

Method, device and equipment for controlling balance car light and storage medium Download PDF

Info

Publication number
CN112172978A
CN112172978A CN202010991962.3A CN202010991962A CN112172978A CN 112172978 A CN112172978 A CN 112172978A CN 202010991962 A CN202010991962 A CN 202010991962A CN 112172978 A CN112172978 A CN 112172978A
Authority
CN
China
Prior art keywords
music
light
balance car
played
determining
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
CN202010991962.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.)
Suzhou 360 Intelligent Security Technology Co Ltd
Original Assignee
Suzhou 360 Intelligent Security 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 Suzhou 360 Intelligent Security Technology Co Ltd filed Critical Suzhou 360 Intelligent Security Technology Co Ltd
Priority to CN202010991962.3A priority Critical patent/CN112172978A/en
Publication of CN112172978A publication Critical patent/CN112172978A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62JCYCLE SADDLES OR SEATS; AUXILIARY DEVICES OR ACCESSORIES SPECIALLY ADAPTED TO CYCLES AND NOT OTHERWISE PROVIDED FOR, e.g. ARTICLE CARRIERS OR CYCLE PROTECTORS
    • B62J6/00Arrangement of optical signalling or lighting devices on cycles; Mounting or supporting thereof; Circuits therefor
    • B62J6/01Electric circuits
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62JCYCLE SADDLES OR SEATS; AUXILIARY DEVICES OR ACCESSORIES SPECIALLY ADAPTED TO CYCLES AND NOT OTHERWISE PROVIDED FOR, e.g. ARTICLE CARRIERS OR CYCLE PROTECTORS
    • B62J3/00Acoustic signal devices; Arrangement of such devices on cycles
    • B62J3/10Electrical devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention relates to the technical field of balance cars, and discloses a light control method, a device, equipment and a storage medium for a balance car, wherein the method comprises the following steps: when a music playing instruction is received, determining music data to be played according to the music playing instruction; determining corresponding music characteristics according to music data to be played; determining a light color value sequence corresponding to the music characteristics; and playing music on the music data to be played, and adjusting the balance car light according to the light color value sequence. Compared with the prior art that the light with fixed color is adopted on the balance car, the music characteristic is determined according to the music data to be played, and the light of the balance car is adjusted through the light color value sequence corresponding to the music characteristic, so that the relation between the light of the balance car and the music exists, the defect that the functions of the music of the balance car and the light of the balance car in the prior art are split is overcome, the light energy of the balance car is enabled to change synchronously along with the music, and the entertainment requirements of users are met.

Description

Method, device and equipment for controlling balance car light and storage medium
Technical Field
The invention relates to the technical field of balance cars, in particular to a light control method, a light control device, light control equipment and a storage medium for a balance car.
Background
Along with the wide application of the balance car in daily life of people, the entertainment requirement of users on the balance car is stronger and stronger, and the music function of the balance car is more and more popular and sought after by the users. However, the traditional music of the balance car is separated from the functions of lights of the balance car lamps, the atmosphere lamps and the like, and the lights can only be fixed in brightness and color and cannot meet the entertainment requirements of users.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for controlling light of a balance car, and aims to solve the technical problem of splitting of music and light functions of the balance car in the prior art.
In order to achieve the above object, the present invention provides a balance car light control method, including the steps of:
when a music playing instruction is received, determining music data to be played according to the music playing instruction;
determining corresponding music characteristics according to the music data to be played;
determining a light color value sequence corresponding to the music characteristic;
and playing music on the music data to be played, and adjusting the balance car light according to the light color value sequence.
Optionally, before playing music on the music data to be played and adjusting the balance car light according to the light color value sequence, the method further includes:
determining a light brightness value sequence corresponding to the music characteristics;
correspondingly, to wait to broadcast music data and carry out the music broadcast to according to the car light of light color value sequence adjustment balance car light specifically includes:
performing music playing on the music data to be played;
and adjusting the balance car light according to the light color value sequence and the light brightness value sequence.
Optionally, the determining, according to the music data to be played, a corresponding music feature specifically includes:
dividing the music data to be played into a plurality of music segment data;
determining corresponding music segment characteristics according to the music segment data;
and determining the music characteristics corresponding to the music data to be played according to the music section characteristics.
Optionally, the dividing the music data to be played into a plurality of music segment data specifically includes:
determining corresponding music time length according to the music data to be played, and dividing the music time length into a plurality of time periods;
and obtaining a plurality of music segment data according to the music data to be played and the time segment.
Optionally, the determining, according to the musical piece data, a corresponding musical piece feature specifically includes:
extracting musical piece frequency information and musical piece volume information from the musical piece data;
and determining the characteristics of the musical sections according to the frequency information and the volume information of the musical sections.
Optionally, the determining a light color value sequence corresponding to the music feature specifically includes:
determining the corresponding music segment characteristics according to the music characteristics, and determining the time period and the music segment frequency information corresponding to the music segment characteristics;
determining the frequency of a target musical piece according to the frequency information of the musical piece;
searching a target lamplight color value corresponding to the target music segment frequency;
and generating a lamplight color value sequence according to the time period and the target lamplight color value.
Optionally, the searching for the target light color value corresponding to the target music segment frequency specifically includes:
matching the target music piece frequency with music piece frequencies in a first preset mapping list, wherein the first preset mapping list comprises: the frequency of the music section and the color value of the light to be selected;
and determining a target lamplight color value corresponding to the target music segment frequency according to the matching result.
Optionally, the determining the light brightness value sequence corresponding to the music feature specifically includes:
determining the corresponding music segment characteristics according to the music characteristics, and determining the time segment corresponding to the music segment characteristics and the volume information of the music segment;
determining the volume of a target musical piece according to the volume information of the musical piece;
searching a target light brightness value corresponding to the volume of the target music segment;
and generating a light brightness value sequence according to the time period and the target light brightness value.
Optionally, the searching for the target light brightness value corresponding to the target music segment volume specifically includes:
matching the target music piece volume with music piece frequencies in a second preset mapping list, wherein the second preset mapping list comprises: the volume of the music section and the brightness value of the light to be selected;
and determining a target light brightness value corresponding to the volume of the target music segment according to the matching result.
Optionally, according to the light color value sequence with the light brightness value sequence adjustment balance car light specifically includes:
adjusting the color of the balance car light according to the light color value sequence;
and adjusting the brightness of the balance car light according to the light brightness value sequence.
Optionally, when receiving a music playing instruction and before determining music data to be played according to the music playing instruction, the method further includes:
when a Bluetooth pairing instruction is received, determining a target mobile terminal according to the Bluetooth pairing instruction;
establishing Bluetooth connection with the target mobile terminal based on the Bluetooth pairing instruction;
correspondingly, when receiving a music playing instruction, determining music data to be played according to the music playing instruction, specifically including:
and when receiving a music playing instruction sent by the target mobile terminal through the Bluetooth connection, determining music data to be played according to the music playing instruction.
Optionally, the determining music data to be played according to the music playing instruction specifically includes:
extracting a name of music to be played from the music playing instruction;
acquiring a music file to be played corresponding to the name of the music to be played;
and acquiring the music data to be played from the music file to be played.
In order to achieve the above object, the present invention also provides a balance lamp light control device including:
the data acquisition module is used for determining music data to be played according to the music playing instruction when the music playing instruction is received;
the characteristic determining module is used for determining corresponding music characteristics according to the music data to be played;
the light sequence module is used for determining a light color value sequence corresponding to the music characteristics;
and the light control module is used for playing music on the music data to be played and adjusting the light of the balance car according to the light color value sequence.
Optionally, the lighting sequence module is further configured to determine a lighting brightness value sequence corresponding to the music feature;
the light control module is also used for playing music on the music data to be played; and adjusting the balance car light according to the light color value sequence and the light brightness value sequence.
Optionally, the characteristic determining module is further configured to divide the music data to be played into a plurality of music segment data; determining corresponding music segment characteristics according to the music segment data; and determining the music characteristics corresponding to the music data to be played according to the music section characteristics.
Optionally, the characteristic determining module is further configured to determine a corresponding music duration according to the music data to be played, and divide the music duration into a plurality of time periods; and obtaining a plurality of music segment data according to the music data to be played and the time segment.
Optionally, the characteristic determining module is further configured to extract musical piece frequency information and musical piece volume information from the musical piece data; and determining the characteristics of the musical sections according to the frequency information and the volume information of the musical sections.
Optionally, the characteristic determining module is further configured to determine the corresponding musical piece characteristic according to the musical characteristic, and determine the time period and the musical piece frequency information corresponding to the musical piece characteristic; determining the frequency of a target musical piece according to the frequency information of the musical piece; searching a target lamplight color value corresponding to the target music segment frequency; and generating a lamplight color value sequence according to the time period and the target lamplight color value.
Further, to achieve the above object, the present invention also proposes a balance car light control device including: a memory, a processor, and a balancing car light control program stored on the memory and executable on the processor, the balancing car light control program being configured with steps implementing the balancing car light control method as described above.
Furthermore, to achieve the above object, the present invention also proposes a storage medium having stored thereon a balancing vehicle light control program which, when executed by a processor, implements the steps of the balancing vehicle light control method as described above.
The method for controlling the balance car light comprises the steps that when a music playing instruction is received, music data to be played are determined according to the music playing instruction; determining corresponding music characteristics according to the music data to be played; determining a light color value sequence corresponding to the music characteristic; and playing music on the music data to be played, and adjusting the balance car light according to the light color value sequence. Compared with the prior art that the light with fixed color is adopted on the balance car, the music characteristic is determined according to the music data to be played, and the light of the balance car is adjusted through the light color value sequence corresponding to the music characteristic, so that the relation between the light of the balance car and the music exists, the defect that the functions of the music of the balance car and the light of the balance car in the prior art are split is overcome, the light energy of the balance car is enabled to change synchronously along with the music, and the entertainment requirements of users are met.
Drawings
Fig. 1 is a schematic structural diagram of a balanced vehicle light control device for a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a first embodiment of a balanced vehicle light control method according to the present invention;
FIG. 3 is a schematic flow chart of a balancing vehicular light control method according to a second embodiment of the present invention;
FIG. 4 is a schematic flow chart of a balancing vehicular light control method according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of functional modules of the first embodiment of the device for controlling a balancing vehicular light according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a balanced vehicle light control device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the balance light control device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may comprise a Display screen (Display), an input unit such as keys, and the optional user interface 1003 may also comprise a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The Memory 1005 may be a Random Access Memory (RAM) Memory or a non-volatile Memory (e.g., a magnetic disk Memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the device configuration shown in FIG. 1 does not constitute a limitation of a balanced vehicular light control device and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a balance light control program.
In the balanced vehicular lighting control device shown in fig. 1, the network interface 1004 is mainly used for connecting an external network and performing data communication with other network devices; the user interface 1003 is mainly used for connecting to a user equipment and performing data communication with the user equipment; the apparatus of the present invention calls the balance car light control program stored in the memory 1005 through the processor 1001 and executes the balance car light control method provided by the embodiment of the present invention.
Based on the hardware structure, the embodiment of the balance car light control method is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a balanced vehicle light control method according to a first embodiment of the present invention.
In a first embodiment, the balance light control method includes the steps of:
step S10, when receiving a music playing instruction, determining music data to be played according to the music playing instruction.
It should be noted that the executing subject in this embodiment may be a balance car light control device, and may also be other devices that can achieve the same or similar functions.
It should be noted that the balance light control device in this embodiment may be located on a balance car, such as a central processing unit of the balance car; the device can also be positioned outside the balance car, such as a remote controller of the balance car, and can also be other devices capable of realizing the same or similar functions, and the embodiment does not limit the device. The balance car light control device can control light of a balance car, and meanwhile, the balance car light control device can also control music of the balance car and can also control other functions of the balance car, and the embodiment is not limited to this.
It should be noted that the music playing instruction may be sent to the balance car light control device by the mobile terminal, may also be sent to the balance car light control device by the server, and may also be sent to the balance car light control device by another device, which is not limited in this embodiment. In the present embodiment, a case where a music play instruction is transmitted from a mobile terminal to a balance light control device will be described as an example.
It should be noted that the mobile terminal may be a device such as a mobile phone, a tablet computer, a smart watch, or other devices, which is not limited in this embodiment.
It should be noted that, a bluetooth chip or a communication chip may also be disposed on the balance car, and other chips may also be disposed on the balance car, which is not limited in this embodiment.
It should be understood that the mobile terminal may send the music playing command through bluetooth, before the mobile terminal sends the music playing command to the balance car light control device, a bluetooth connection between the mobile terminal and the balance car light control device may be established in advance, and the mobile terminal sends the music playing command to the balance car light control device through the bluetooth connection.
It should be understood that, the mobile terminal may also send a music playing instruction through the communication network, the mobile terminal sends the music playing instruction to the network communication base station, and the balance car receives the music playing instruction from the network communication base station through the communication chip, and may also be in other obtaining manners, which is not limited in this embodiment.
It should be understood that the music data to be played may be a music file to be played, and the music file to be played may include music data information and corresponding music time information, and may also include other information, which is not limited in this embodiment.
And step S20, determining corresponding music characteristics according to the music data to be played.
It should be noted that the music characteristic may be a music frequency characteristic, a music volume characteristic, a music time characteristic, or other characteristics. In a specific implementation, the above feature may be one of the above features, or a combination of multiple above features, which is not limited by the embodiment.
It should be understood that, for convenience of feature extraction, the music data to be played may be divided into a plurality of pieces of music, and then corresponding music piece features of each piece of music are extracted respectively, and then the music features are combined by the music piece features.
In a specific implementation, for example, the music data to be played may be divided into 5 pieces of music, which are respectively a piece of music a, a piece of music B, a piece of music C, a piece of music D, and a piece of music E, then the piece of music feature 1 corresponding to the piece of music a, the piece of music feature 2 corresponding to the piece of music B, the piece of music feature 3 corresponding to the piece of music C, the piece of music feature 4 corresponding to the piece of music D, and the piece of music feature 5 corresponding to the piece of music E are respectively extracted, and the piece of music feature 1, the piece of music feature 2, the piece of music feature 3, the piece of music feature 4, and the piece of music feature 5 are combined to obtain the piece of music feature corresponding to the music data to be played.
And step S30, determining a light color value sequence corresponding to the music characteristics.
It should be noted that, the sequence of light color values may be a string composed of a plurality of sequences of light color values, and the length of the sequence of light color values may be determined by the length of the music and/or the number of music segment features composing the music feature, which is not limited in this embodiment.
It will be appreciated that music playback is a continuous process, and thus, color alteration of the balance car light is also a continuous process, and thus, light color values corresponding to the music characteristics can be determined, and then combined into a light color value sequence according to the light color values, and the balance car light control device adjusts the color of the balance car light according to the light color value sequence.
In a specific implementation, for example, if a piece of music has 60 seconds, the light color value sequence generated according to this embodiment may also control the balance car light to change for 60 seconds, so as to achieve an effect of establishing a connection between the balance car light and the balance car music, so that the balance car light changes synchronously with the balance car music.
And step S40, playing music on the music data to be played, and adjusting the balance car light according to the light color value sequence.
It should be noted that the balance car light may be a light of a balance car light, may also be a light of a balance atmosphere light, may also be a combination of a light of a balance car light and a light of a balance atmosphere light, and may also be a light of another form on the balance car, which is not limited in this embodiment.
It should be understood that the balance car lamp can be arranged on the wheel of the balance car, so that the wheel of the balance car can emit light, and the balance car atmosphere lamp can be arranged on the body of the balance car, so that the body of the balance car can emit light.
In addition to the above arrangement, other arrangements are possible. For example, the balance car lights are arranged in front of the balance car, and the balance car atmosphere lights are arranged around the balance car, which is not limited in this embodiment. Further, the number, size and specific model of the balance car lamps and the balance car atmosphere lamps can be selected by manufacturers according to actual conditions, and the embodiment is not limited to this.
It can be understood that after the light color value sequence is determined, music playing can be performed on music data to be played, then the balance car light is adjusted according to the light color value sequence, the two actions can be performed synchronously, specifically, the balance car light is adjusted according to the light color value sequence while the music data to be played is played, and therefore the balance car light and the balance car music can be played synchronously.
It should be understood that the balance car lights and the balance car atmosphere lights of the balance car may be in the off state or the on state before the music playing command is received, for example, the balance car lights are controlled in a normal mode before the music playing command is received, and the balance car lights are controlled by the method in the embodiment after the music playing command is received. Of course, the balance car light may also be adjusted by only playing music without music data, and the user may select whether to start the music light interaction function according to the actual situation, which is not limited in this embodiment.
In a specific implementation, when a user starts a music light interaction function and receives a music playing instruction, the light of the balance car is adjusted according to the method in the embodiment; when the user closes the music light interaction function, only music is played, and the balance car light is not adjusted.
In this embodiment, when a music playing instruction is received, music data to be played is determined according to the music playing instruction; determining corresponding music characteristics according to the music data to be played; determining a light color value sequence corresponding to the music characteristic; and playing music on the music data to be played, and adjusting the balance car light according to the light color value sequence. Compared with the prior art that light with fixed color is adopted on the balance car, the music characteristic is determined according to the music data to be played in the embodiment, and the light of the balance car is adjusted through the light color value sequence corresponding to the music characteristic, so that the relation between the light of the balance car and the music exists, the defect that the functions of the music of the balance car and the light of the balance car in the prior art are split is overcome, the light energy of the balance car is enabled to change synchronously along with the music, and the entertainment requirement of a user is met.
In an embodiment, as shown in fig. 3, a second embodiment of the balanced vehicular light control method according to the present invention is proposed based on the first embodiment, and before the step S40, the method further includes:
and step S01, determining a light brightness value sequence corresponding to the music characteristics.
It should be understood that, when the color of the light is adjusted according to the music, the brightness of the light can be adjusted according to the music, that is, when the music is played, the color and the brightness of the light of the balance car are adjusted at the same time, so that a cool effect is achieved.
It should be noted that the sequence of the light brightness values may be a series of sequences formed by sorting a plurality of light brightness values, and the length of the sequence of the light brightness values may be determined by the length of the music and/or the number of music feature segments forming the music feature, which is not limited in this embodiment.
It will be appreciated that music playback is a continuous process, and thus, changing the brightness of the balance car light is also a continuous process, and thus, the light brightness values corresponding to the music characteristics can be determined, and then combined into a light brightness value sequence according to the light brightness values, and the balance car light control device adjusts the color of the balance car light according to the light brightness value sequence.
Accordingly, the step S40 includes:
step S401, performing music playing on the music data to be played.
It should be understood that the balance car in this embodiment has a music playing function, one or more speakers may be disposed on the balance car, and when receiving a music playing instruction, the music data to be played is determined according to the music playing instruction, and the music data to be played is played through the speakers on the balance car.
And S404, adjusting the balance car light according to the light color value sequence and the light brightness value sequence.
It can be understood that after the light color value sequence and the light brightness value sequence are determined, the balance car light can be adjusted according to the light color value sequence and the light brightness value sequence.
Specifically, the color of the balance car light is adjusted according to the light color value sequence, and the brightness of the balance car light is adjusted according to the light brightness value sequence.
Further, in the prior art, the color and brightness of the lighting do not change with the music, and in order to overcome the above drawback, the step S404 includes:
adjusting the color of the balance car light according to the light color value sequence; and adjusting the brightness of the balance car light according to the light brightness value sequence.
In a specific implementation, the balance car in this embodiment is provided with a balance car lamp and a balance car atmosphere lamp, where the balance car lamp includes a lamp light of the balance car lamp and a lamp light of the balance car atmosphere lamp, and for convenience of description, the lamp light of the balance car lamp is referred to as a first lamp light, and the lamp light of the balance car atmosphere lamp is referred to as a second lamp light.
The color and the brightness of the first light and the second light can be adjusted through the light color value sequence and the light brightness value sequence at the same time; the first light can be adjusted only through the light color value sequence and the light brightness value sequence, and the original state of the second light is kept unchanged; the second light can be adjusted only through the light color value sequence and the light brightness value sequence, and the original state of the first light is kept unchanged.
The color of the first light can be adjusted through the light color value sequence, and the brightness of the second light is adjusted through the light brightness value sequence; the color of the second light can be adjusted through the light color value sequence, and the brightness of the first light is adjusted through the light brightness value sequence.
The method for adjusting the balance car light according to the light color value sequence and the light brightness value sequence may be one of the above adjustment methods, which is not limited in this embodiment.
Further, there are various ways to receive and send the music playing command, in order to make the balancing car light control device receive the music playing command more effectively and more stably, before step S10, the method further includes: when a Bluetooth pairing instruction is received, determining a target mobile terminal according to the Bluetooth pairing instruction; and establishing Bluetooth connection with the target mobile terminal based on the Bluetooth pairing instruction.
In concrete realization, the music broadcast instruction can be sent for balanced car light control equipment by mobile terminal, mobile terminal can be the cell-phone, can install APP on the cell-phone, sends the music broadcast instruction to the balanced car through APP, and BLE control technology in the bluetooth can be used, makes cell-phone and balanced car light control equipment establish the bluetooth and is connected.
It should be understood that, the manner of establishing the bluetooth connection may be that, when the balancing vehicle light control device receives the bluetooth pairing instruction, the balancing vehicle light control device determines the target terminal device according to the bluetooth pairing instruction, and establishes the bluetooth connection with the target terminal device based on the bluetooth pairing instruction.
It should be understood that, in another embodiment, the balancing vehicle light control device may generate bluetooth broadcast information according to the device information of its own device, transmit bluetooth broadcast based on the bluetooth broadcast information, perform bluetooth scanning by the mobile terminal, and establish bluetooth connection with the balancing vehicle light control device according to the scanned device information.
It should be noted that the device information in this embodiment may be device identification information, specifically, a device name, a device ID, and the like, and may also be other information, which is not limited in this embodiment.
In concrete realization, can be by balanced car light control equipment transmission bluetooth broadcast, the user opens the bluetooth on the cell-phone to enter the bluetooth search interface, select the bluetooth broadcast that corresponds with balanced car light control equipment in the bluetooth search interface and connect, when connecting successfully, the balance car can send buzzing warning sound, in order to indicate the user to connect successfully, improves user's use and experiences.
Accordingly, the step S10 includes:
and when receiving a music playing instruction sent by the target mobile terminal through the Bluetooth connection, determining music data to be played according to the music playing instruction.
It should be understood that, after the target mobile terminal establishes the bluetooth connection with the balance car light control device, the target mobile terminal may send the music playing instruction to the balance car light control device through the bluetooth connection, and then the balance car light control device may determine the music data to be played according to the music playing instruction.
For example, a user can open music playing software on a mobile phone, select favorite music playing, and hear wonderful music on a balance car. The music name can also be sent to the balance car light control equipment by the user, and the balance car light control equipment searches the corresponding data to be played according to the music name for playing. The above method may be adopted, and other methods may also be adopted, which is not limited in this embodiment.
Further, in order to more conveniently determine music data to be played according to a music playing instruction, the step of determining music data to be played according to the music playing instruction includes:
extracting a name of music to be played from the music playing instruction; acquiring a music file to be played corresponding to the name of the music to be played; and acquiring the music data to be played from the music file to be played.
It should be understood that, when a music playing instruction is received, the name of the music to be played may be extracted from the music playing instruction, and then the music file to be played corresponding to the name of the music to be played is searched locally, or the music file to be played corresponding to the name of the music to be played is acquired from the network side, which is not limited in this embodiment.
It can be understood that after the music file to be played corresponding to the name of the music to be played is obtained, the music data to be played can be obtained from the music file to be played.
In the embodiment, a light brightness value sequence corresponding to the music characteristic is determined; performing music playing on the music data to be played; and adjusting the balance car light according to the light color value sequence and the light brightness value sequence. Therefore, the light of the balance car is adjusted through the light color value sequence and the light brightness value sequence corresponding to the music characteristics, the color of the light of the balance car can be adjusted according to the music, the brightness of the light of the balance car can be adjusted according to the music, and the light of the balance car is cool.
In an embodiment, as shown in fig. 4, a third embodiment of the balanced vehicular light control method according to the present invention is proposed based on the second embodiment, and the step S20 includes:
step S201, dividing the music data to be played into a plurality of music segment data.
It should be understood that the music data to be played may be divided into a plurality of pieces of music data.
Further, in order to make the division of the music data to be played more reasonable and improve the efficiency of adjusting the light of the balance car, step S201 includes:
determining corresponding music time length according to the music data to be played, and dividing the music time length into a plurality of time periods; and obtaining a plurality of music segment data according to the music data to be played and the time segment.
It should be understood that the corresponding music time length may be determined according to the music data to be played, and then the music time length may be divided into a plurality of time segments according to a preset division rule.
It should be noted that the preset dividing rule may be to divide the music time into a plurality of time periods according to a preset time period threshold, where the preset time period threshold may be 5S, or may also be other values such as 10S, 20S, 10 ms, and the like, and this embodiment does not limit this. In this embodiment, the preset time period threshold is set to 5S as an example.
It should be understood that the musical duration may be divided into a plurality of time segments, each having corresponding musical segment data.
In a specific implementation, when the music time corresponding to the music data to be played is 60S and the preset time period threshold is 5S, the music time may be divided into 20 time periods, and then 20 pieces of music segment data may be obtained according to the music data to be played and the divided time periods.
Step S202, determining corresponding music segment characteristics according to the music segment data.
It should be understood that after the music segment data is obtained, the music segment characteristics can be analyzed through the music rhythm characteristic value model, and the basic emotional characteristics of the music pieces, such as shake, thoughts, lyrics, joy, excitement, sadness, joy, hotness, etc., can be identified, and the emotional characteristic information characteristics are taken as the music segment characteristics. Wherein, the music rhythm characteristic value model can be trained in advance and stored in the balance car light control device.
It should be understood that, besides the above basic emotional characteristics, the frequency characteristic, the volume characteristic, and the like of music may be used as the music segment characteristic, and other characteristics of music may also be used as the music segment characteristic, which is not limited in this embodiment.
Further, in order to more conveniently and accurately determine the characteristics of the musical piece, the step S202 includes:
extracting musical piece frequency information and musical piece volume information from the musical piece data; and determining the characteristics of the musical sections according to the frequency information and the volume information of the musical sections.
It should be understood that the musical piece frequency information in which the frequency information in the musical piece data is recorded and the musical piece volume information in which the volume information in the musical piece is recorded may be extracted from the musical piece data.
It should be understood that, since the musical piece data is musical data for a period of time, the frequency information in the musical piece frequency information is frequency information of music for a period of time, and the volume information in the musical piece volume information is volume information of music for a period of time.
It is to be understood that after the musical piece frequency information and the musical piece volume information are determined, musical piece characteristics may be determined based on the musical piece frequency information and the musical piece volume information.
Step S203, determining a music characteristic corresponding to the music data to be played according to the music segment characteristic.
It should be understood that after determining a plurality of music piece characteristics, music characteristics can be combined from the music piece characteristics, that is, the music piece characteristics are characteristics corresponding to music piece data, and the music characteristics are characteristics corresponding to music data to be played.
Further, in order to accurately generate the sequence of lighting color values and improve the generation efficiency, step S30 includes:
determining the corresponding music segment characteristics according to the music characteristics, and determining the time period and the music segment frequency information corresponding to the music segment characteristics; determining the frequency of a target musical piece according to the frequency information of the musical piece; searching a target lamplight color value corresponding to the target music segment frequency; and generating a lamplight color value sequence according to the time period and the target lamplight color value.
It should be understood that the musical piece characteristics corresponding to the musical characteristics may be determined, and then the time period corresponding to each musical piece characteristic and the musical piece frequency information may be determined, and since the musical frequencies in this time period are recorded in the musical piece frequency information, the average value of these musical frequencies may be calculated, and the calculated average value may be taken as the target musical piece frequency.
It is to be understood that, according to the time periods corresponding to the musical piece features, the arrangement order may also be obtained, for example, when the time periods are divided, the musical time duration may be divided into a first time period, a second time period, a third time period, and the like, and then the arrangement order of the time periods starts from the first time period and is sequentially the second time period, the third time period, and the like, so that the arrangement order of the musical piece features may be determined according to the arrangement order of the time periods corresponding to the musical piece features.
After the target music segment frequency is determined, the target light color value corresponding to the target music segment frequency is searched, the arrangement sequence of the music segment characteristics can be determined according to the arrangement sequence of the time segments, and the target light color values are combined according to the arrangement sequence of the music segment characteristics to obtain a light color value sequence.
Further, in order to accurately determine a target lighting color value corresponding to a target music piece frequency and improve efficiency, the step of searching for the target lighting color value corresponding to the target music piece frequency specifically includes:
matching the target music piece frequency with music piece frequencies in a first preset mapping list, wherein the first preset mapping list comprises: the frequency of the music section and the color value of the light to be selected; and determining a target lamplight color value corresponding to the target music segment frequency according to the matching result.
It should be understood that the first preset mapping list records the correspondence between the music piece frequency and the light color value, which may be 0 to 240. The corresponding relationship between the music segment frequency and the light color value can be set according to the time condition, and the embodiment does not limit the relationship.
It can be understood that, after the target music segment frequency is determined, the target music segment frequency may be matched with the music segment frequency in the first preset mapping list, and the light color value corresponding to the successfully matched music segment frequency is used as the target light color value.
Further, in order to accurately generate the sequence of light brightness values and improve the generation efficiency, step S01 includes:
determining the corresponding music segment characteristics according to the music characteristics, and determining the time segment corresponding to the music segment characteristics and the volume information of the music segment; determining the volume of a target musical piece according to the volume information of the musical piece; searching a target light brightness value corresponding to the volume of the target music segment; and generating a light brightness value sequence according to the time period and the target light brightness value.
It should be understood that the musical piece characteristics corresponding to the musical characteristics may be determined, and then the time period corresponding to each musical piece characteristic and the musical piece volume information may be determined, and since the musical volume in this time period is recorded in the musical piece volume information, the average value of these musical volumes may be calculated, and the calculated average value may be taken as the target musical piece volume.
It is to be understood that, according to the time periods corresponding to the musical piece features, the arrangement order may also be obtained, for example, when the time periods are divided, the musical time duration may be divided into a first time period, a second time period, a third time period, and the like, and then the arrangement order of the time periods starts from the first time period and is sequentially the second time period, the third time period, and the like, so that the arrangement order of the musical piece features may be determined according to the arrangement order of the time periods corresponding to the musical piece features.
After the volume of the target music segment is determined, the target light brightness value corresponding to the volume of the target music segment is searched, the arrangement sequence of the characteristics of the music segment can be determined according to the arrangement sequence of the time segments, and the target light brightness values are combined according to the arrangement sequence of the characteristics of the music segment to obtain a light brightness value sequence.
Further, in order to accurately determine a target lighting brightness value corresponding to a target music piece volume and improve efficiency, the step of searching for the target lighting brightness value corresponding to the target music piece volume includes:
matching the target music piece volume with music piece frequencies in a second preset mapping list, wherein the second preset mapping list comprises: the volume of the music section and the brightness value of the light to be selected; and determining a target light brightness value corresponding to the volume of the target music segment according to the matching result.
It should be understood that the second preset mapping list records the correspondence between the volume of the music piece and the brightness value of the light. The corresponding relationship between the volume of the music segment and the brightness value of the light can be set according to the time condition, which is not limited in this embodiment.
It can be understood that, after the target music piece volume is determined, the target music piece volume may be matched with the music piece volume in the second preset mapping list, and the light brightness value corresponding to the successfully matched music piece volume is taken as the target light brightness value.
In this embodiment, the music data to be played is divided into a plurality of music segment data; determining corresponding music segment characteristics according to the music segment data; and determining the music characteristics corresponding to the music data to be played according to the music section characteristics. Therefore, the music data is divided into a plurality of music segment data, the music segment characteristics corresponding to the music segment data are respectively obtained, and then the music characteristics corresponding to the music data to be played are obtained through combination, so that the music characteristics corresponding to the music data to be played can be accurately determined.
Furthermore, an embodiment of the present invention also provides a storage medium having a balancing vehicle light control program stored thereon, where the balancing vehicle light control program is executed by a processor to implement the steps of the balancing vehicle light control method as described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
Further, referring to fig. 5, an embodiment of the present invention further provides a balanced vehicle light control device, including:
the data obtaining module 10 is configured to determine music data to be played according to a music playing instruction when the music playing instruction is received.
It should be noted that the music playing instruction may be sent to the balance car light control device by the mobile terminal, may also be sent to the balance car light control device by the server, and may also be sent to the balance car light control device by another device, which is not limited in this embodiment. In the present embodiment, a case where a music play instruction is transmitted from a mobile terminal to a balance light control device will be described as an example.
It should be noted that the mobile terminal may be a device such as a mobile phone, a tablet computer, a smart watch, or other devices, which is not limited in this embodiment.
It should be noted that, a bluetooth chip or a communication chip may also be disposed on the balance car, and other chips may also be disposed on the balance car, which is not limited in this embodiment.
It should be understood that the mobile terminal may send the music playing command through bluetooth, before the mobile terminal sends the music playing command to the balance car light control device, a bluetooth connection between the mobile terminal and the balance car light control device may be established in advance, and the mobile terminal sends the music playing command to the balance car light control device through the bluetooth connection.
It should be understood that, the mobile terminal may also send a music playing instruction through the communication network, the mobile terminal sends the music playing instruction to the network communication base station, and the balance car receives the music playing instruction from the network communication base station through the communication chip, and may also be in other obtaining manners, which is not limited in this embodiment.
It should be understood that the music data to be played may be a music file to be played, and the music file to be played may include music data information and corresponding music time information, and may also include other information, which is not limited in this embodiment.
And a characteristic determining module 20, configured to determine a corresponding music characteristic according to the music data to be played.
It should be noted that the music characteristic may be a music frequency characteristic, a music volume characteristic, a music time characteristic, or other characteristics. In a specific implementation, the above feature may be one of the above features, or a combination of multiple above features, which is not limited by the embodiment.
It should be understood that, for convenience of feature extraction, the music data to be played may be divided into a plurality of pieces of music, and then corresponding music piece features of each piece of music are extracted respectively, and then the music features are combined by the music piece features.
In a specific implementation, for example, the music data to be played may be divided into 5 pieces of music, which are respectively a piece of music a, a piece of music B, a piece of music C, a piece of music D, and a piece of music E, then the piece of music feature 1 corresponding to the piece of music a, the piece of music feature 2 corresponding to the piece of music B, the piece of music feature 3 corresponding to the piece of music C, the piece of music feature 4 corresponding to the piece of music D, and the piece of music feature 5 corresponding to the piece of music E are respectively extracted, and the piece of music feature 1, the piece of music feature 2, the piece of music feature 3, the piece of music feature 4, and the piece of music feature 5 are combined to obtain the piece of music feature corresponding to the music data to be played.
And the light sequence module 30 is configured to determine a light color value sequence corresponding to the music feature.
It should be noted that, the sequence of light color values may be a string composed of a plurality of sequences of light color values, and the length of the sequence of light color values may be determined by the length of the music and/or the number of music segment features composing the music feature, which is not limited in this embodiment.
It will be appreciated that music playback is a continuous process, and thus, color alteration of the balance car light is also a continuous process, and thus, light color values corresponding to the music characteristics can be determined, and then combined into a light color value sequence according to the light color values, and the balance car light control device adjusts the color of the balance car light according to the light color value sequence.
In a specific implementation, for example, if a piece of music has 60 seconds, the light color value sequence generated according to this embodiment may also control the balance car light to change for 60 seconds, so as to achieve an effect of establishing a connection between the balance car light and the balance car music, so that the balance car light changes synchronously with the balance car music.
And the light control module 40 is used for playing music on the music data to be played and adjusting the light of the balance car according to the light color value sequence.
It should be noted that the balance car light may be a light of a balance car light, may also be a light of a balance atmosphere light, may also be a combination of a light of a balance car light and a light of a balance atmosphere light, and may also be a light of another form on the balance car, which is not limited in this embodiment.
It should be understood that the balance car lamp can be arranged on the wheel of the balance car, so that the wheel of the balance car can emit light, and the balance car atmosphere lamp can be arranged on the body of the balance car, so that the body of the balance car can emit light.
In addition to the above arrangement, other arrangements are possible. For example, the balance car lights are arranged in front of the balance car, and the balance car atmosphere lights are arranged around the balance car, which is not limited in this embodiment. Further, the number, size and specific model of the balance car lamps and the balance car atmosphere lamps can be selected by manufacturers according to actual conditions, and the embodiment is not limited to this.
It can be understood that after the light color value sequence is determined, music playing can be performed on music data to be played, then the balance car light is adjusted according to the light color value sequence, the two actions can be performed synchronously, specifically, the balance car light is adjusted according to the light color value sequence while the music data to be played is played, and therefore the balance car light and the balance car music can be played synchronously.
It should be understood that the balance car lights and the balance car atmosphere lights of the balance car may be in the off state or the on state before the music playing command is received, for example, the balance car lights are controlled in a normal mode before the music playing command is received, and the balance car lights are controlled by the method in the embodiment after the music playing command is received. Of course, the balance car light may also be adjusted by only playing music without music data, and the user may select whether to start the music light interaction function according to the actual situation, which is not limited in this embodiment.
In a specific implementation, when a user starts a music light interaction function and receives a music playing instruction, the light of the balance car is adjusted according to the method in the embodiment; when the user closes the music light interaction function, only music is played, and the balance car light is not adjusted.
In this embodiment, when a music playing instruction is received, music data to be played is determined according to the music playing instruction; determining corresponding music characteristics according to the music data to be played; determining a light color value sequence corresponding to the music characteristic; and playing music on the music data to be played, and adjusting the balance car light according to the light color value sequence. Compared with the prior art that light with fixed color is adopted on the balance car, the music characteristic is determined according to the music data to be played in the embodiment, and the light of the balance car is adjusted through the light color value sequence corresponding to the music characteristic, so that the relation between the light of the balance car and the music exists, the defect that the functions of the music of the balance car and the light of the balance car in the prior art are split is overcome, the light energy of the balance car is enabled to change synchronously along with the music, and the entertainment requirement of a user is met.
In an embodiment, the light sequence module 30 is further configured to determine a light brightness value sequence corresponding to the music feature; the light control module 40 is further configured to play music on the music data to be played; and adjusting the balance car light according to the light color value sequence and the light brightness value sequence.
In an embodiment, the characteristic determining module 20 is further configured to divide the music data to be played into a plurality of music segment data; determining corresponding music segment characteristics according to the music segment data; and determining the music characteristics corresponding to the music data to be played according to the music section characteristics.
In an embodiment, the characteristic determining module 20 is further configured to determine a corresponding music time length according to the music data to be played, and divide the music time length into a plurality of time periods; and obtaining a plurality of music segment data according to the music data to be played and the time segment.
In an embodiment, the characteristic determining module 20 is further configured to extract music piece frequency information and music piece volume information from the music piece data; and determining the characteristics of the musical sections according to the frequency information and the volume information of the musical sections.
In an embodiment, the light sequence module 30 is further configured to determine the corresponding musical piece feature according to the musical feature, and determine the time period and the musical piece frequency information corresponding to the musical piece feature; determining the frequency of a target musical piece according to the frequency information of the musical piece; searching a target lamplight color value corresponding to the target music segment frequency; and generating a lamplight color value sequence according to the time period and the target lamplight color value.
In an embodiment, the light sequence module 30 is further configured to match the target music piece frequency with a music piece frequency in a first preset mapping list, where the first preset mapping list includes: the frequency of the music section and the color value of the light to be selected; and determining a target lamplight color value corresponding to the target music segment frequency according to the matching result.
In an embodiment, the light sequence module 30 is further configured to determine the corresponding music segment feature according to the music feature, and determine the time segment and the volume information of the music segment corresponding to the music segment feature; determining the volume of a target musical piece according to the volume information of the musical piece; searching a target light brightness value corresponding to the volume of the target music segment; and generating a light brightness value sequence according to the time period and the target light brightness value.
In an embodiment, the light sequence module 30 is further configured to match the volume of the target musical piece with a musical piece frequency in a second preset mapping list, where the second preset mapping list includes: the volume of the music section and the brightness value of the light to be selected; and determining a target light brightness value corresponding to the volume of the target music segment according to the matching result.
In an embodiment, the lighting control module 40 is further configured to adjust a color of a balance car light according to the light color value sequence; and adjusting the brightness of the balance car light according to the light brightness value sequence.
In an embodiment, the balancing car light control device further includes a bluetooth connection module, configured to determine a target mobile terminal according to a bluetooth pairing instruction when the bluetooth pairing instruction is received; establishing Bluetooth connection with the target mobile terminal based on the Bluetooth pairing instruction; the data obtaining module 10 is further configured to determine music data to be played according to the music playing instruction when receiving the music playing instruction sent by the target mobile terminal through the bluetooth connection.
In an embodiment, the data obtaining module 10 is further configured to extract a name of music to be played from the music playing instruction; acquiring a music file to be played corresponding to the name of the music to be played; and acquiring the music data to be played from the music file to be played.
Other embodiments or specific implementation methods of the light control device for the balance car light of the present invention may refer to the above embodiments, and are not described herein again.
It should be noted that, in this document, 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. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in an estimator readable storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling an intelligent device (such as a mobile phone, an estimator, a balance car light control device, an air conditioner, or a network balance car light control device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
The invention discloses A1 and a balanced vehicle light control method, which comprises the following steps:
when a music playing instruction is received, determining music data to be played according to the music playing instruction;
determining corresponding music characteristics according to the music data to be played;
determining a light color value sequence corresponding to the music characteristic;
and playing music on the music data to be played, and adjusting the balance car light according to the light color value sequence.
A2, the method for controlling balance car lighting according to a1, wherein before playing music on the music data to be played and adjusting balance car lighting according to the light color value sequence, the method further comprises:
determining a light brightness value sequence corresponding to the music characteristics;
correspondingly, to wait to broadcast music data and carry out the music broadcast to according to the car light of light color value sequence adjustment balance car light specifically includes:
performing music playing on the music data to be played;
and adjusting the balance car light according to the light color value sequence and the light brightness value sequence.
A3, the method for controlling balance car lighting according to a2, wherein the determining the corresponding music characteristics according to the music data to be played specifically includes:
dividing the music data to be played into a plurality of music segment data;
determining corresponding music segment characteristics according to the music segment data;
and determining the music characteristics corresponding to the music data to be played according to the music section characteristics.
A4, the method for controlling balance car light control according to A3, wherein the dividing the music data to be played into a plurality of music piece data specifically includes:
determining corresponding music time length according to the music data to be played, and dividing the music time length into a plurality of time periods;
and obtaining a plurality of music segment data according to the music data to be played and the time segment.
A5, the method for controlling balance car light according to A3, wherein the determining the corresponding music piece characteristics according to the music piece data specifically includes:
extracting musical piece frequency information and musical piece volume information from the musical piece data;
and determining the characteristics of the musical sections according to the frequency information and the volume information of the musical sections.
A6, the method for controlling balance car light according to a5, wherein the determining the sequence of light color values corresponding to the music feature specifically includes:
determining the corresponding music segment characteristics according to the music characteristics, and determining the time period and the music segment frequency information corresponding to the music segment characteristics;
determining the frequency of a target musical piece according to the frequency information of the musical piece;
searching a target lamplight color value corresponding to the target music segment frequency;
and generating a lamplight color value sequence according to the time period and the target lamplight color value.
A7, the method for controlling balance car light according to a6, wherein the searching for the target light color value corresponding to the target music piece frequency specifically includes:
matching the target music piece frequency with music piece frequencies in a first preset mapping list, wherein the first preset mapping list comprises: the frequency of the music section and the color value of the light to be selected;
and determining a target lamplight color value corresponding to the target music segment frequency according to the matching result.
A8, the method for controlling balance car light according to a5, wherein the determining the sequence of light brightness values corresponding to the music feature specifically includes:
determining the corresponding music segment characteristics according to the music characteristics, and determining the time segment corresponding to the music segment characteristics and the volume information of the music segment;
determining the volume of a target musical piece according to the volume information of the musical piece;
searching a target light brightness value corresponding to the volume of the target music segment;
and generating a light brightness value sequence according to the time period and the target light brightness value.
A9, the method for controlling a balance car light according to A8, where the searching for the target light brightness value corresponding to the target music piece volume specifically includes:
matching the target music piece volume with music piece frequencies in a second preset mapping list, wherein the second preset mapping list comprises: the volume of the music section and the brightness value of the light to be selected;
and determining a target light brightness value corresponding to the volume of the target music segment according to the matching result.
A10, the method for controlling balance car lighting according to a2, wherein the adjusting balance car lighting according to the lighting color value sequence and the lighting brightness value sequence specifically includes:
adjusting the color of the balance car light according to the light color value sequence;
and adjusting the brightness of the balance car light according to the light brightness value sequence.
A11, the method for controlling balance light control according to any one of a1 to a10, wherein when receiving a music playing command, before determining music data to be played according to the music playing command, the method further comprises:
when a Bluetooth pairing instruction is received, determining a target mobile terminal according to the Bluetooth pairing instruction;
establishing Bluetooth connection with the target mobile terminal based on the Bluetooth pairing instruction;
correspondingly, when receiving a music playing instruction, determining music data to be played according to the music playing instruction, specifically including:
and when receiving a music playing instruction sent by the target mobile terminal through the Bluetooth connection, determining music data to be played according to the music playing instruction.
A12, the method for controlling balance car light according to any one of a1 to a10, wherein the determining music data to be played according to the music playing command specifically includes:
extracting a name of music to be played from the music playing instruction;
acquiring a music file to be played corresponding to the name of the music to be played;
and acquiring the music data to be played from the music file to be played.
The invention discloses B13, a balancing car light control device, comprising:
the data acquisition module is used for determining music data to be played according to the music playing instruction when the music playing instruction is received;
the characteristic determining module is used for determining corresponding music characteristics according to the music data to be played;
the light sequence module is used for determining a light color value sequence corresponding to the music characteristics;
and the light control module is used for playing music on the music data to be played and adjusting the light of the balance car according to the light color value sequence.
B14, the balancing vehicular lighting control device of B13, the light sequence module further configured to determine a sequence of light brightness values corresponding to the music feature;
the light control module is also used for playing music on the music data to be played; and adjusting the balance car light according to the light color value sequence and the light brightness value sequence.
B15, the device for controlling balance car light control according to B14, the characteristic determining module is further used for dividing the music data to be played into a plurality of music segment data; determining corresponding music segment characteristics according to the music segment data; and determining the music characteristics corresponding to the music data to be played according to the music section characteristics.
The balanced vehicle light control device of B16 according to B15, wherein the characteristic determining module is further configured to determine a corresponding music duration according to the music data to be played, and divide the music duration into a plurality of time periods; and obtaining a plurality of music segment data according to the music data to be played and the time segment.
B17, the balance car light control device according to B15, the feature determination module further configured to extract music piece frequency information and music piece volume information from the music piece data; and determining the characteristics of the musical sections according to the frequency information and the volume information of the musical sections.
B18, the balance car light control device as described in B17, the feature determination module further configured to determine the corresponding music piece feature according to the music feature, and determine the time period and the music piece frequency information corresponding to the music piece feature; determining the frequency of a target musical piece according to the frequency information of the musical piece; searching a target lamplight color value corresponding to the target music segment frequency; and generating a lamplight color value sequence according to the time period and the target lamplight color value.
The invention discloses C19, a balanced vehicle light control device, comprising: a memory, a processor, and a balancing car light control program stored on the memory and executable on the processor, the balancing car light control program being configured with steps implementing the balancing car light control method as described above.
The invention discloses D20, a storage medium having a balancing car light control program stored thereon, which when executed by a processor implements the steps of the balancing car light control method as described above.

Claims (10)

1. A balanced vehicular light control method characterized by comprising the steps of:
when a music playing instruction is received, determining music data to be played according to the music playing instruction;
determining corresponding music characteristics according to the music data to be played;
determining a light color value sequence corresponding to the music characteristic;
and playing music on the music data to be played, and adjusting the balance car light according to the light color value sequence.
2. The method for controlling balance car lighting according to claim 1, wherein before playing music on the music data to be played and adjusting balance car lighting according to the sequence of lighting color values, the method further comprises:
determining a light brightness value sequence corresponding to the music characteristics;
correspondingly, to wait to broadcast music data and carry out the music broadcast to according to the car light of light color value sequence adjustment balance car light specifically includes:
performing music playing on the music data to be played;
and adjusting the balance car light according to the light color value sequence and the light brightness value sequence.
3. The method for controlling balance car light according to claim 2, wherein the determining the corresponding music feature according to the music data to be played specifically comprises:
dividing the music data to be played into a plurality of music segment data;
determining corresponding music segment characteristics according to the music segment data;
and determining the music characteristics corresponding to the music data to be played according to the music section characteristics.
4. The method for controlling balance car light according to claim 3, wherein the dividing the music data to be played into a plurality of music piece data specifically comprises:
determining corresponding music time length according to the music data to be played, and dividing the music time length into a plurality of time periods;
and obtaining a plurality of music segment data according to the music data to be played and the time segment.
5. The method for controlling balance light control according to claim 3, wherein the determining the corresponding musical piece feature according to the musical piece data specifically includes:
extracting musical piece frequency information and musical piece volume information from the musical piece data;
and determining the characteristics of the musical sections according to the frequency information and the volume information of the musical sections.
6. The method for balancing vehicular lighting control according to claim 5, wherein said determining a sequence of light color values corresponding to said musical feature comprises:
determining the corresponding music segment characteristics according to the music characteristics, and determining the time period and the music segment frequency information corresponding to the music segment characteristics;
determining the frequency of a target musical piece according to the frequency information of the musical piece;
searching a target lamplight color value corresponding to the target music segment frequency;
and generating a lamplight color value sequence according to the time period and the target lamplight color value.
7. The method according to claim 6, wherein the searching for the target light color value corresponding to the target music piece frequency specifically comprises:
matching the target music piece frequency with music piece frequencies in a first preset mapping list, wherein the first preset mapping list comprises: the frequency of the music section and the color value of the light to be selected;
and determining a target lamplight color value corresponding to the target music segment frequency according to the matching result.
8. A balanced vehicular lamp light control device characterized by comprising:
the data acquisition module is used for determining music data to be played according to the music playing instruction when the music playing instruction is received;
the characteristic determining module is used for determining corresponding music characteristics according to the music data to be played;
the light sequence module is used for determining a light color value sequence corresponding to the music characteristics;
and the light control module is used for playing music on the music data to be played and adjusting the light of the balance car according to the light color value sequence.
9. A balanced vehicular light control device characterized by comprising: memory, processor and a balancing vehicle light control program stored on the memory and executable on the processor, the balancing vehicle light control program being configured with steps implementing a balancing vehicle light control method according to any of claims 1 to 7.
10. A storage medium characterized in that the storage medium has stored thereon a balancing vehicle light control program which, when executed by a processor, implements the steps of the balancing vehicle light control method according to any one of claims 1 to 7.
CN202010991962.3A 2020-09-18 2020-09-18 Method, device and equipment for controlling balance car light and storage medium Pending CN112172978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010991962.3A CN112172978A (en) 2020-09-18 2020-09-18 Method, device and equipment for controlling balance car light and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010991962.3A CN112172978A (en) 2020-09-18 2020-09-18 Method, device and equipment for controlling balance car light and storage medium

Publications (1)

Publication Number Publication Date
CN112172978A true CN112172978A (en) 2021-01-05

Family

ID=73957011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010991962.3A Pending CN112172978A (en) 2020-09-18 2020-09-18 Method, device and equipment for controlling balance car light and storage medium

Country Status (1)

Country Link
CN (1) CN112172978A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113507770A (en) * 2021-03-29 2021-10-15 厦门市思芯微科技有限公司 Lamplight control method, system, terminal and storage medium based on audio visualization
CN114326245A (en) * 2022-01-06 2022-04-12 岚图汽车科技有限公司 Music rhythm electrochromic window glass governing system
CN114449474A (en) * 2022-01-29 2022-05-06 重庆长安汽车股份有限公司 Bluetooth protocol-based music light show implementation method and system
CN115158514A (en) * 2021-03-18 2022-10-11 纳恩博(北京)科技有限公司 Electric scooter and control method and control device of atmosphere lamp thereof

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005084339A2 (en) * 2004-03-02 2005-09-15 Color Kinetics Incorporated Entertainment lighting system
US20100020560A1 (en) * 2007-12-05 2010-01-28 Steven Padilla Automobile interior entertainment lighting system
DE102013011188A1 (en) * 2013-07-04 2014-02-27 Daimler Ag Motor vehicle has two lamps distributed in inner space of vehicle, while color information of graphical representation displayed on display is detected as measurement data by sensor unit, where graphical representation is music album cover
CN104999957A (en) * 2015-07-30 2015-10-28 上海修源网络科技有限公司 Atmosphere lamp and adjusting method thereof
CN108819839A (en) * 2018-05-04 2018-11-16 北京汽车集团有限公司 Vehicle atmosphere lamp control method, device, system and vehicle
CN109089355A (en) * 2018-07-16 2018-12-25 广州小鹏汽车科技有限公司 A kind of car bulb control method and system based on music signal
CN109152126A (en) * 2017-12-14 2019-01-04 蔚来汽车有限公司 For controlling the method for the lamp being set on vehicle and for the lighting system of vehicle
CN109287046A (en) * 2018-09-30 2019-01-29 北京经纬恒润科技有限公司 A kind of atmosphere lamp control method, device and system
CN109910736A (en) * 2019-04-03 2019-06-21 深圳创维汽车智能有限公司 Automobile atmosphere lamp control method, device and storage medium
US20190250619A1 (en) * 2017-03-06 2019-08-15 Carla R. Gillett Autonomous bicycle
CN110239422A (en) * 2019-06-25 2019-09-17 重庆长安汽车股份有限公司 Method, system and the computer readable storage medium for so that vapour embarkation lamp and music is linked
CN210000225U (en) * 2019-03-29 2020-01-31 陈旭东 automobile intelligent atmosphere lamp
CN110843665A (en) * 2019-11-29 2020-02-28 安徽江淮汽车集团股份有限公司 Vehicle and vehicle-mounted atmosphere lamp control system and multimedia processing device thereof
EP3620330A1 (en) * 2018-09-07 2020-03-11 odelo GmbH Method for controlling of light functions of an automobile light, device comprising such an automobile light and computer program product for carrying out the method
US20200187337A1 (en) * 2018-09-17 2020-06-11 XKGlow, Inc. Lighting Control System
CN111591210A (en) * 2020-04-22 2020-08-28 深圳市点嘀互联网络有限公司 System and method for intelligent interaction between embedded equipment and vehicle atmosphere lamp

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005084339A2 (en) * 2004-03-02 2005-09-15 Color Kinetics Incorporated Entertainment lighting system
US20100020560A1 (en) * 2007-12-05 2010-01-28 Steven Padilla Automobile interior entertainment lighting system
DE102013011188A1 (en) * 2013-07-04 2014-02-27 Daimler Ag Motor vehicle has two lamps distributed in inner space of vehicle, while color information of graphical representation displayed on display is detected as measurement data by sensor unit, where graphical representation is music album cover
CN104999957A (en) * 2015-07-30 2015-10-28 上海修源网络科技有限公司 Atmosphere lamp and adjusting method thereof
US20190250619A1 (en) * 2017-03-06 2019-08-15 Carla R. Gillett Autonomous bicycle
CN109152126A (en) * 2017-12-14 2019-01-04 蔚来汽车有限公司 For controlling the method for the lamp being set on vehicle and for the lighting system of vehicle
CN108819839A (en) * 2018-05-04 2018-11-16 北京汽车集团有限公司 Vehicle atmosphere lamp control method, device, system and vehicle
CN109089355A (en) * 2018-07-16 2018-12-25 广州小鹏汽车科技有限公司 A kind of car bulb control method and system based on music signal
EP3620330A1 (en) * 2018-09-07 2020-03-11 odelo GmbH Method for controlling of light functions of an automobile light, device comprising such an automobile light and computer program product for carrying out the method
US20200187337A1 (en) * 2018-09-17 2020-06-11 XKGlow, Inc. Lighting Control System
CN109287046A (en) * 2018-09-30 2019-01-29 北京经纬恒润科技有限公司 A kind of atmosphere lamp control method, device and system
CN210000225U (en) * 2019-03-29 2020-01-31 陈旭东 automobile intelligent atmosphere lamp
CN109910736A (en) * 2019-04-03 2019-06-21 深圳创维汽车智能有限公司 Automobile atmosphere lamp control method, device and storage medium
CN110239422A (en) * 2019-06-25 2019-09-17 重庆长安汽车股份有限公司 Method, system and the computer readable storage medium for so that vapour embarkation lamp and music is linked
CN110843665A (en) * 2019-11-29 2020-02-28 安徽江淮汽车集团股份有限公司 Vehicle and vehicle-mounted atmosphere lamp control system and multimedia processing device thereof
CN111591210A (en) * 2020-04-22 2020-08-28 深圳市点嘀互联网络有限公司 System and method for intelligent interaction between embedded equipment and vehicle atmosphere lamp

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
涂贵军等: "基于NiosⅡ的全彩LED音乐景观灯控制系统设计", 《电子元器件应用》 *
虞国平: "《新编家用电器大全》", 31 December 1989 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115158514A (en) * 2021-03-18 2022-10-11 纳恩博(北京)科技有限公司 Electric scooter and control method and control device of atmosphere lamp thereof
CN113507770A (en) * 2021-03-29 2021-10-15 厦门市思芯微科技有限公司 Lamplight control method, system, terminal and storage medium based on audio visualization
CN114326245A (en) * 2022-01-06 2022-04-12 岚图汽车科技有限公司 Music rhythm electrochromic window glass governing system
CN114326245B (en) * 2022-01-06 2023-07-21 岚图汽车科技有限公司 Musical rhythm electrochromic car window glass governing system
CN114449474A (en) * 2022-01-29 2022-05-06 重庆长安汽车股份有限公司 Bluetooth protocol-based music light show implementation method and system

Similar Documents

Publication Publication Date Title
CN112172978A (en) Method, device and equipment for controlling balance car light and storage medium
CN109543064B (en) Lyric display processing method and device, electronic equipment and computer storage medium
US10034029B1 (en) Systems and methods for audio object delivery based on audible frequency analysis
CN110027469B (en) Vehicle-mounted music based lamp control method and system and vehicle
CN109903773B (en) Audio processing method, device and storage medium
CN110851221B (en) Smart home scene configuration method and device
CN111785238B (en) Audio calibration method, device and storage medium
CN104754421A (en) Interactive beat effect system and interactive beat effect processing method
CN107592339B (en) Music recommendation method and music recommendation system based on intelligent terminal
CN102340583A (en) Method for pre-requesting songs in karaoke hall through mobile phone
CN108877803A (en) The method and apparatus of information for rendering
CN103208285A (en) Household electrical appliance control method and system based on voice interaction of mobile communication terminals
CN109377979B (en) Method and system for updating welcome language
CN111895631A (en) Air conditioning system control method, air conditioner, computer device, and computer-readable storage medium
CN108449506A (en) Voice communication data processing method, device, storage medium and mobile terminal
CN113706667A (en) Vehicle light show determination method and device, electronic equipment and storage medium
CN108804667A (en) The method and apparatus of information for rendering
CN110930999A (en) Voice interaction method and device and vehicle
CN110600031B (en) Playback control method, playback apparatus, and computer-readable storage medium
CN111274360A (en) Answer extraction method and input method of intelligent voice question and answer and intelligent equipment
CN108366360B (en) Microphone-based singing interaction method, device, system and storage medium
CN109510907B (en) Ring tone setting method and device
CN110335597A (en) A kind of wake-up system and method under mobile phone screen lock state
CN115831080A (en) Method and device for determining audio frequency, electronic equipment and storage medium
CN115571047A (en) Vehicle-mounted atmosphere lamp rhythm control method, device, equipment, chip and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210105