Lighting display control method, system, device and storage medium combined with music

By extracting lyrics, pitch, and beat information to generate lighting control signals, the problem of poor matching between lighting control schemes and music in existing technologies has been solved, achieving a higher level of matching between lighting and music.

CN114501734BActive Publication Date: 2025-01-14彩讯科技股份有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111601274.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2025-01-14
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

Existing lighting control solutions struggle to dynamically adjust based on multi-dimensional information from music, resulting in poor synchronization between lighting and music and an inability to meet complex needs.

Method used

By extracting lyrics, pitch, and beat information, color codes and display durations are generated, and light control signals are generated to control the display of the light source.

Benefits of technology

It achieves a multi-dimensional integration of light and music, better reflecting the content and rhythm of the music, and enhancing the richness of the light display and its match with the music.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114501734B_ABST
    Figure CN114501734B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention disclose a light display control method, system, device and storage medium combined with music. The method comprises: extracting song information based on the played music, the song information comprising lyrics information consisting of a single lyric, pitch information corresponding to the single lyric and beat information corresponding to the single lyric; determining color coding based on the lyrics information and the pitch information, and determining the display duration corresponding to the color coding based on the beat information; generating a light control signal according to the color coding and the display duration and sending it to a light source for displaying light. The embodiments of the present invention can display lights that are more compatible with the music by reflecting the correspondence between music and lights in multiple dimensions through lyrics, pitch and beat, so as to reflect more information about the music with lights.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of lighting control technology, and in particular to a lighting display control method, system, device and storage medium combined with music. Background Art

[0002] In addition to the lighting function, lights can also achieve other functions according to different lighting methods. For example, in a dance hall, the swaying lighting method and jumping colors match the rhythm of the music. Combining lights with music is a very common lighting method. In many cases, the color temperature of the lights needs to be adjusted according to the rhythm of the music to create a different environment atmosphere. For example, when listening to music at home, you can set different colors of lights according to different music styles to create a comfortable atmosphere for yourself. Although there are already some lighting control solutions combined with music on the market, most of these solutions are based on the music and then choose one of the preset multiple solutions, or can only be simply adapted according to the rhythm and timbre of the music. The control method is single and it is difficult to meet the increasingly complex needs. Summary of the invention

[0003] The embodiments of the present invention provide a light display control method, system, device and storage medium combined with music, based on.

[0004] To achieve this purpose, an embodiment of the present invention provides a light display control method combined with music, the method comprising:

[0005] Extracting song information based on the played music, the song information including lyrics information consisting of a single lyric, pitch information corresponding to the single lyric, and beat information corresponding to the single lyric;

[0006] Determine a color code based on the lyrics information and the pitch information, and determine a display duration corresponding to the color code based on the beat information;

[0007] A light control signal is generated according to the color code and the display duration and sent to a light source for displaying light.

[0008] Optionally, in some embodiments, determining the color coding based on the lyrics information and the pitch information includes:

[0009] Determine the frequency of occurrence of a single lyric based on the lyric information;

[0010] Generate a first code according to a first conversion rule based on the single lyric and the corresponding frequency of occurrence;

[0011] Generate a second code based on the pitch information according to a second conversion rule;

[0012] The first code and the second code are combined and converted into a color code corresponding to a color.

[0013] Optionally, in some embodiments, generating the first code according to the first conversion rule based on the single lyric and the corresponding occurrence frequency includes:

[0014] Convert the single lyric into a corresponding UNICODE code, and obtain a first value by taking multiple bits in the UNICODE code;

[0015] Determine a corresponding second value according to the occurrence frequency;

[0016] The first value is offset by using the second value as an offset to generate a third value, and the third value is used as the first code.

[0017] Optionally, in some embodiments, determining the corresponding second value according to the occurrence frequency includes:

[0018] If the occurrence frequency is less than or equal to 0.01, the second value is 1;

[0019] If the occurrence frequency is greater than 0.01 and less than or equal to 0.05, the second value is 3;

[0020] If the occurrence frequency is greater than 0.05, the second value is 8.

[0021] Optionally, in some embodiments, the step of offsetting the first value with the second value as an offset to generate a third value includes:

[0022] Decomposing the first quantity into a plurality of individual characters in sequence;

[0023] Subtract the second value from each single character to generate a subtracted character, wherein the minimum value of the subtracted character is zero;

[0024] The subtraction characters are combined in sequence to generate a third value.

[0025] Optionally, in some embodiments, generating a second code according to a second conversion rule based on the pitch information includes:

[0026] According to the pitch of a single lyric, a preset conversion table is queried to determine a corresponding fourth value, and according to the pitch level corresponding to the pitch, a preset conversion table is queried to determine a corresponding fifth value;

[0027] The fourth magnitude and the fifth magnitude are sequentially combined to generate a second code.

[0028] On the one hand, an embodiment of the present invention further provides a light display control system combined with music, the system comprising:

[0029] A song information extraction module, used to extract song information based on the played music, wherein the song information includes lyrics information consisting of a single lyric, pitch information corresponding to the single lyric, and beat information corresponding to the single lyric;

[0030] A color determination module, used to determine a color code based on the lyrics information and the pitch information, and to determine a display duration corresponding to the color code based on the beat information;

[0031] The display control module is used to generate a light control signal according to the color code and the display duration and send the signal to the light-emitting body used to display the light.

[0032] Optionally, in some embodiments, the color determination module includes:

[0033] A lyrics frequency determination unit, used to determine the occurrence frequency corresponding to a single lyric based on the lyrics information;

[0034] A first encoding unit, configured to generate a first code according to a first conversion rule based on the single lyric and the corresponding frequency of occurrence;

[0035] A second encoding unit, configured to generate a second code based on the pitch information according to a second conversion rule;

[0036] The color coding unit is used to convert the first code and the second code into a color code corresponding to a color after combining them.

[0037] On the other hand, an embodiment of the present invention further provides a computer device, which includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the light display control method combined with music as provided in any embodiment of the present invention.

[0038] On the other hand, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a light display control method combined with music as provided in any embodiment of the present invention.

[0039] The embodiment of the present invention first extracts lyric information consisting of a single lyric, pitch information corresponding to the single lyric, and beat information corresponding to the single lyric based on the played music, then determines a color code based on the lyric information and the pitch information, determines a display duration corresponding to the color code based on the beat information, and finally generates a light control signal according to the color code and the display duration and sends it to a light-emitting body for displaying lights. This method reflects the correspondence between music and lights in multiple dimensions through lyrics, pitch, and beat, and can display lights that are more in line with the music, thereby reflecting more information about the music with lights. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 This is a schematic flow chart of a light display control method combined with music provided in Embodiment 1 of the present invention;

[0041] Figure 2 1 is a schematic diagram of a sub-process of a light display control method combined with music provided in Embodiment 2 of the present invention;

[0042] Figure 3 It is a schematic diagram of a sub-flow of a light display control method combined with music provided in Embodiment 2 of the present invention;

[0043] Figure 4 1 is a schematic diagram of a sub-process of a light display control method combined with music provided in Embodiment 2 of the present invention;

[0044] Figure 5 It is a partial schematic diagram of the color code comparison table provided in the second embodiment of the present invention;

[0045] Figure 6 This is a structural diagram of a light display control system combined with music provided in Embodiment 3 of the present invention;

[0046] Figure 7 A schematic diagram of the structure of a computer device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0047] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0048] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0049] In addition, the terms "first", "second", etc. can be used in this article to describe various directions, actions, steps or elements, but these directions, actions, steps or elements are not limited by these terms. These terms are only used to distinguish a first direction, action, step or element from another direction, action, step or element. For example, without departing from the scope of the present application, the first module can be referred to as the second module, and similarly, the second module can be referred to as the first module. Both the first module and the second module are modules, but they are not the same module. The terms "first", "second", etc. cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" can expressly or implicitly include one or more of the features. In the description of the embodiment of the present invention, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0050] Embodiment 1

[0051] Figure 1 A light display control method combined with music is provided for the first embodiment of the present invention. The method can be applied to a light display control system, which includes a light emitting body for emitting light (which can be a light board including a plurality of light beads, a light bar, etc.) and a controller for controlling the light emitting body, such as Figure 1 As shown, the method specifically includes:

[0052] S110. Extract song information based on the played music, where the song information includes lyrics information consisting of a single lyric, pitch information corresponding to the single lyric, and beat information corresponding to the single lyric.

[0053] The song information is extracted based on the music being played. The music being played refers to the music that needs to be matched with the lights, which can be determined according to the user's choice. In this embodiment, the song information includes lyrics information consisting of individual lyrics, pitch information corresponding to the individual lyrics, and beat information corresponding to the individual lyrics, wherein the lyrics information is extracted from each lyric of the song in the music, the pitch information refers to the pitch corresponding to the individual lyrics, which is associated with the individual lyrics, and the beat information mainly includes the beat duration of the individual lyrics, which is also associated with the individual lyrics and is used to determine the duration of the playback of the individual lyrics.

[0054] Specifically, when music is played along with the light, the music played is fixed, that is, a certain song. When the light is displayed, the controller can extract the song information of the complete music (a complete song) to determine the lyrics information, pitch information and beat information corresponding to the song.

[0055] S120: Determine a color code based on the lyrics information and the pitch information, and determine a display duration corresponding to the color code based on the beat information.

[0056] The color code is an identifier used to determine the color of the light. Each color code corresponds to a light color. The display duration indicates the continuous display time of a certain light color. It can be understood that a set of display durations and color codes can directly control the display of the light. In this embodiment, in order to further match the display of the light with the music being played, the song information is extracted with the lyrics as the core, and then the color code and display duration used to control the light display are determined based on the song information. Specifically, in this embodiment, the lyrics information and pitch information are used to reflect the content changes of the song, which are more consistent with the actual meaning of the song, and then reflected in the color code, and the beat information represents the playback of the lyrics over time, and then the evolution of the light corresponding to the color code over time can be determined based on the beat information.

[0057] In this embodiment, the controller pre-stores relevant algorithms or mapping tables for determining lighting control related information based on song information and then encoding it, so as to generate color codes based on the lyrics information and pitch information, and then determine the display time corresponding to each color code.

[0058] S130: Generate a light control signal according to the color code and display duration, and send the signal to a light source for displaying light.

[0059] The light control signal is used to directly act on the light-emitting body, and the light-emitting body can directly display according to the light control signal. Specifically, the color code can determine the unique light color, and the display duration can determine the duration of the light-emitting body displaying the corresponding light color. When the light is displayed along with the music being played, as the music is played, the light-emitting body can receive the light control signal sent by the controller according to the song information in real time to display the corresponding light color according to the display duration.

[0060] The present embodiment provides a method for controlling light display in combination with music. The method first extracts lyrics information consisting of a single lyric, pitch information corresponding to the single lyric, and beat information corresponding to the single lyric based on the played music, then determines a color code based on the lyrics information and the pitch information, determines a display duration corresponding to the color code based on the beat information, and finally generates a light control signal according to the color code and the display duration and sends it to a light-emitting body for displaying lights. The method reflects the correspondence between music and lights in multiple dimensions through lyrics, pitch, and beat, and can display lights that are more in line with the music, thereby reflecting more information about the music with lights.

[0061] Embodiment 2

[0062] Embodiment 2 of the present invention provides a light display control method combined with music. Embodiment 2 of the present invention is a further explanation based on Embodiment 1 of the present invention. For example, the specific process of determining the color coding according to the lyrics information and the pitch information, specifically, the method includes:

[0063] like Figure 2 As shown, in the light display control method combined with music provided in this embodiment, the process of determining the color coding based on the lyrics information and the pitch information, that is, step S120, includes steps S121-124:

[0064] S121, determining the occurrence frequency of a single lyric based on the lyric information;

[0065] S122, generating a first code according to a first conversion rule based on the single lyric and the corresponding frequency of occurrence;

[0066] S123, generating a second code according to a second conversion rule based on the pitch information;

[0067] S124: Combine the first code and the second code and convert them into a color code corresponding to a color.

[0068] The generation of the first code depends on the specific content of a single lyric and the frequency of occurrence of the single lyric, and is used to reflect the specific meaning of the single lyric and the importance of the single lyric in the song. That is, the first code is used to reflect the lyric information, and the corresponding second code is used to reflect the pitch information. Specifically, the pitch information can include the pitch and the pitch level corresponding to the pitch, so as to generate the second code in combination with the pitch and the pitch level. The first code and the second code can be combined to obtain a combination code. According to pre-set rules, a color can be determined according to the combination code. The color code is the identification corresponding to the color, such as the English code corresponding to the color. Of course, there is no specific limitation here.

[0069] More specifically, in some embodiments, Figure 3 As shown, the generation process of the first code, that is, step S112, includes steps S1121-1123:

[0070] S1121, converting the single lyric into a corresponding UNICODE code, taking multiple bits in the UNICODE code to obtain a first value;

[0071] S1122, determining a corresponding second value according to the occurrence frequency;

[0072] S1123: Use the second value as an offset to offset the first value to generate a third value, and use the third value as a first code.

[0073] The process of steps S1121-1123 is illustrated by a specific example: UNICODE encoding is an existing text transcoding method, which can obtain a multi-bit code value. In this embodiment, only some of the bit values ​​are taken, preferably the last four bits, that is, the last four bits of the UNICODE code are taken as the first value; then the number of occurrences of a single lyric in a song is divided by the total number of all lyrics to obtain the frequency of occurrence, and according to the value range of the frequency of occurrence, one is matched from the preset values ​​to obtain the second value; the first value is adjusted according to the second value, which is the offset referred to in step S1123.

[0074] More specifically, in some embodiments, the specific value rule of the second value is: if the occurrence frequency is less than or equal to 0.01, the second value is 1; if the occurrence frequency is greater than 0.01 and less than or equal to 0.05, the second value is 3; if the occurrence frequency is greater than 0.05, the second value is 8. Of course, this is only an example, and the above 0.01, 0.05, 1, 3 and 8 can also be other values, which are set according to actual needs and are not limited here.

[0075] Based on the above example, more specifically, in some embodiments, the specific process of generating the third value according to the offset of the first value and the second value is as follows: Figure 4 As shown in the figure, it includes:

[0076] S11231. Sequentially decompose the first magnitude into multiple single characters;

[0077] S11232. Subtract the second magnitude from each single character to generate a subtracted character, where the minimum value of the subtracted character is zero;

[0078] S11233. Sequentially combine the subtracted characters to generate a third magnitude.

[0079] In this embodiment, the offset referred to means subtraction. Taking the Chinese character "让 (let)" as an example, the first magnitude is "8BA9". The single characters obtained after decomposition are VAR1-1 = "8", VAR1-2 = "B", VAR1-3 = "A", VAR1-4 = "9". Assuming the second magnitude is "1", that is, the offset is "1", subtracting the offset from the above single characters in sequence, the four subtracted characters are respectively:

[0080] VAR1-1F = 8 - 1 = 7;

[0081] VAR1-2F = B - 1 = A;

[0082] VAR1-3F = A - 1 = 9;

[0083] VAR1-4F = 9 - 1 = 8;

[0084] Combining the four subtracted characters again to obtain the third magnitude "7A98". It should be understood that the above calculations between characters are performed in hexadecimal.

[0085] More specifically, when calculating the third magnitude according to the offset, if the minuend is less than the subtrahend, that is, the subtracted character is less than 0, then directly take the subtracted character as 0.

[0086] More specifically, in some embodiments, the process of generating the second code includes steps S1231 - 1232 (not shown in the figure):

[0087] S1231. Query the preset conversion table according to the pitch of a single lyric to determine the corresponding fourth magnitude, and query the preset conversion table according to the pitch class corresponding to the pitch to determine the corresponding fifth magnitude.

[0088] Exemplarily, the pitches recorded in the preset conversion table in this embodiment include do, re, mi, fa, sol, la, and xi, and the fourth magnitudes include A, B, C, D, E, F, and G. The conversion relationships recorded in the preset conversion table are: do is converted to C, re is converted to D, mi is converted to E, fa is converted to F, sol is converted to G (if it is G, it will be further converted to C), la is converted to A, and xi is converted to B.

[0089] The pitch levels recorded in the preset conversion table include tonic, supertonic, median, subdominant, dominant, submedian and leading tone, and the fifth value includes 1, 2, 3, 4, 5, 6 and 7. The conversion relationship recorded in the preset conversion table is: tonic is converted to 1, supertonic is converted to 2, median is converted to 3, subdominant is converted to 4, dominant is converted to 5, submedian is converted to 6, and leading tone is converted to 7.

[0090] S1232. Combine the fourth value and the fifth value in sequence to generate a second code.

[0091] Based on the above embodiment, the first code and the second code are combined to obtain a 6-digit hexadecimal number. According to the currently used color code corresponding rules, the 6-digit hexadecimal number can be converted into the English code of the corresponding color, that is, the color code. The color code comparison table is shown in FIG. Figure 5 As shown, the English code column is the color code, the image description column is used to specifically describe the color, the hexadecimal column represents the specific value of the 6-bit hexadecimal number, and the RGB column represents the RGB value of the color.

[0092] This embodiment further explains and supplements the light display control method combined with music in the previous embodiment in more detail, further provides a process for determining color coding based on lyrics information and pitch information, and a process for generating a first code and a second code, and clearly provides the effect of information contained in song information such as a single lyric, frequency of occurrence, pitch, and pitch level on the light display.

[0093] Embodiment 3

[0094] Figure 6 A light display control system combined with music is provided for the third embodiment of the present invention. The light display control system combined with music provided by the third embodiment of the present invention can execute the light display control method combined with music provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. Figure 6 As shown, the light display control system combined with music includes:

[0095] A song information extraction module 310 is used to extract song information based on the played music, wherein the song information includes lyrics information consisting of a single lyric, pitch information corresponding to the single lyric, and beat information corresponding to the single lyric;

[0096] A color determination module 320, configured to determine a color code based on the lyrics information and the pitch information, and to determine a display duration corresponding to the color code based on the beat information;

[0097] The display control module 330 is used to generate a light control signal according to the color code and the display duration and send the signal to the light-emitting body used to display the light.

[0098] Optionally, in one embodiment, the color determination module includes:

[0099] A lyrics frequency determination unit, used to determine the occurrence frequency corresponding to a single lyric based on the lyrics information;

[0100] A first encoding unit, configured to generate a first code according to a first conversion rule based on the single lyric and the corresponding frequency of occurrence;

[0101] A second encoding unit, configured to generate a second code based on the pitch information according to a second conversion rule;

[0102] The color coding unit is used to convert the first code and the second code into a color code corresponding to a color after combining them.

[0103] Optionally, in some embodiments, generating the first code according to the first conversion rule based on the single lyric and the corresponding occurrence frequency includes:

[0104] Convert the single lyric into a corresponding UNICODE code, and obtain a first value by taking multiple bits in the UNICODE code;

[0105] Determine a corresponding second value according to the occurrence frequency;

[0106] The first value is offset by using the second value as an offset to generate a third value, and the third value is used as the first code.

[0107] Optionally, in one embodiment, determining the corresponding second value according to the occurrence frequency includes:

[0108] If the occurrence frequency is less than or equal to 0.01, the second value is 1;

[0109] If the occurrence frequency is greater than 0.01 and less than or equal to 0.05, the second value is 3;

[0110] If the occurrence frequency is greater than 0.05, the second value is 8.

[0111] Optionally, in one embodiment, the generating a third value by offsetting the first value with the second value as an offset comprises:

[0112] Decomposing the first quantity into a plurality of individual characters in sequence;

[0113] Subtract the second value from each single character to generate a subtracted character, wherein the minimum value of the subtracted character is zero;

[0114] The subtraction characters are combined in sequence to generate a third value.

[0115] Optionally, in one embodiment, generating the second code according to the second conversion rule based on the pitch information includes:

[0116] According to the pitch of a single lyric, a preset conversion table is queried to determine a corresponding fourth value, and according to the pitch level corresponding to the pitch, a preset conversion table is queried to determine a corresponding fifth value;

[0117] The fourth magnitude and the fifth magnitude are sequentially combined to generate a second code.

[0118] The present embodiment provides a light display control system combined with music, which first extracts lyrics information consisting of a single lyric, pitch information corresponding to the single lyric, and beat information corresponding to the single lyric based on the played music, then determines the color code based on the lyrics information and the pitch information, determines the display duration corresponding to the color code based on the beat information, and finally generates a light control signal according to the color code and the display duration and sends it to the light-emitting body used to display the light. The system reflects the correspondence between music and light in multiple dimensions through lyrics, pitch and beat, and can display light that is more in line with the music, reflecting more information about the music with light.

[0119] Embodiment 4

[0120] Figure 7 This is a schematic diagram of the structure of a computer device 12 provided in Embodiment 4 of the present invention. Figure 7 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 7 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0121] like Figure 7 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0122] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0123] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0124] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 not shown, usually called a "hard drive"). Although Figure 7 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0125] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0126] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the computer device 12, and / or may communicate with any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 12, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0127] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, for example, implementing the light display control method combined with music provided in the embodiment of the present invention:

[0128] Extracting song information based on the played music, the song information including lyrics information consisting of a single lyric, pitch information corresponding to the single lyric, and beat information corresponding to the single lyric;

[0129] Determine a color code based on the lyrics information and the pitch information, and determine a display duration corresponding to the color code based on the beat information;

[0130] A light control signal is generated according to the color code and the display duration and sent to a light source for displaying light.

[0131] Embodiment 5

[0132] Embodiment 5 of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the light display control method combined with music provided in all the embodiments of the present invention is implemented:

[0133] Extracting song information based on the played music, the song information including lyrics information consisting of a single lyric, pitch information corresponding to the single lyric, and beat information corresponding to the single lyric;

[0134] Determine a color code based on the lyrics information and the pitch information, and determine a display duration corresponding to the color code based on the beat information;

[0135] A light control signal is generated according to the color code and the display duration and sent to a light source for displaying light.

[0136] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0137] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0138] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0139] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0140] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A light display control method combined with music, characterized in that: include: Extracting song information based on the played music, the song information including lyrics information consisting of a single lyric, pitch information corresponding to the single lyric, and beat information corresponding to the single lyric; Determine the frequency of occurrence of a single lyric based on the lyric information, generate a first code according to a first conversion rule based on the single lyric and the corresponding frequency of occurrence, generate a second code according to a second conversion rule based on the pitch information, convert the first code and the second code into a color code corresponding to the color after combining them, and determine the display duration corresponding to the color code based on the beat information; Generate a light control signal according to the color code and display duration and send it to a light emitting body for displaying light; The step of generating the first code according to the first conversion rule based on the single lyric and the corresponding frequency of occurrence includes: Convert the single lyric into a corresponding UNICODE code, and obtain a first value by taking multiple bits in the UNICODE code; Determine a corresponding second value according to the occurrence frequency; The first value is offset by using the second value as an offset to generate a third value, and the third value is used as the first code.

2. The light display control method combined with music according to claim 1, characterized in that: Determining the corresponding second value according to the occurrence frequency includes: If the occurrence frequency is less than or equal to 0.01, the second value is 1; If the occurrence frequency is greater than 0.01 and less than or equal to 0.05, the second value is 3; If the occurrence frequency is greater than 0.05, the second value is 8.

3. The light display control method combined with music according to claim 1, characterized in that: The step of offsetting the first value with the second value as an offset to generate a third value comprises: Decomposing the first quantity into a plurality of individual characters in sequence; Subtract the second value from each single character to generate a subtracted character, wherein the minimum value of the subtracted character is zero; The subtraction characters are combined in sequence to generate a third value.

4. The light display control method combined with music according to claim 1, characterized in that: Generating the second code according to the second conversion rule based on the pitch information includes: According to the pitch of a single lyric, a preset conversion table is queried to determine a corresponding fourth value, and according to the pitch level corresponding to the pitch, a preset conversion table is queried to determine a corresponding fifth value; The fourth magnitude and the fifth magnitude are sequentially combined to generate a second code.

5. A lighting display control system combined with music, characterized in that: include: A song information extraction module, used to extract song information based on the played music, wherein the song information includes lyrics information consisting of a single lyric, pitch information corresponding to the single lyric, and beat information corresponding to the single lyric; A color determination module, configured to determine the frequency of occurrence of a single lyric based on the lyric information, generate a first code according to a first conversion rule based on the single lyric and the corresponding frequency of occurrence, generate a second code according to a second conversion rule based on the pitch information, convert the first code and the second code into a color code corresponding to a color after combining them, and determine a display duration corresponding to the color code based on the beat information; A display control module, used for generating a light control signal according to the color code and display duration and sending the signal to a light source for displaying light; Wherein, the color determination module is specifically used for: Convert the single lyric into a corresponding UNICODE code, and obtain a first value by taking multiple bits in the UNICODE code; Determine a corresponding second value according to the occurrence frequency; The first value is offset by using the second value as an offset to generate a third value, and the third value is used as the first code.

6. A computer device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the light display control method combined with music as described in any one of claims 1-4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the light display control method combined with music as described in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Control method and control apparatus for intelligent lamp, intelligent lamp and communication control apparatus

    CN105636312A

  • Lamplight control method and apparatus and storage medium

    CN107660036A