A method, device, system and storage medium for lighting following music rhythm
By analyzing the loudness and frequency of the music, dividing it into different parts, and using different lighting display styles and color changes, the problem of single lighting design of speaker products is solved and rich lighting effects are achieved.
Patent Information
- Application Number
- CN201911418844.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-31
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2039-12-31
AI Technical Summary
The lighting design of existing speaker products is simple and cannot be changed according to the rhythm of the music, and the stage lighting design is complex and not suitable for single speaker products.
By analyzing the loudness and frequency of the music, it is divided into a gentle part, an intermediate part and a climax part. Different lighting display styles and color changes are used respectively, including a combination of lights, horn lights and flashing lights.
The light follows the rhythm of music and obtains good display effects. The device is simple and the effects are rich and diverse.
Smart Images

Figure CN113133165B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display technology, and more particularly to a method, device, system and storage medium for making light follow the rhythm of music. Background Art
[0002] The existing speaker products on the market have simple designs with lights. They are all the same color and do not change according to the rhythm of the music. Even if they do change, it is a slow and cyclical change.
[0003] The stage lighting on the market is relatively complex in design, which is not conducive to transplanting it to a single speaker product.
[0004] The present invention provides a method, device, system and storage medium for making lights follow the rhythm of music, which can realize the rhythm of lights following the rhythm, and the device is simple to implement and obtains good display effects. Summary of the Invention
[0005] The present invention was developed in light of the aforementioned issues. A first aspect of the present invention provides a method for making lighting follow the rhythm of music, comprising: dividing music into different music segments, the music segmentation being based on loudness and / or frequency; and displaying lighting patterns corresponding to the music segments based on the music segments.
[0006] Exemplarily, the music section is divided into a gentle part, a middle part and a climax part.
[0007] Exemplarily, the step of dividing the music to obtain different music segments is as follows: when the loudness of the music segment is lower than a loudness threshold, it belongs to a gentle part; when the loudness of the music segment is not lower than the loudness threshold and the frequency is not lower than a frequency threshold, it belongs to a middle part; when the loudness of the music segment is not lower than the loudness threshold and the frequency is lower than the frequency threshold, it belongs to a climax part.
[0008] Exemplarily, the light display includes a light display, a horn light display and / or a flashing light display.
[0009] Exemplarily, the colors displayed with the light include blue and / or purple corresponding to the gentle part, purple and / or blue-green corresponding to the middle part, and red and / or yellow corresponding to the climax part.
[0010] For example, the light display includes the following styles: blue counterclockwise, left-right-left-stop, right-left-left-stop, left-right-left-stop, blue off to purple off, blue two steps forward and one step back, blue rising, blue falling, blue clockwise, blue-green-purple up and down, orange off to red, or orange and red all on and off.
[0011] Exemplarily, the horn light display includes blue and / or purple corresponding to the flat part, purple and / or blue-green corresponding to the middle part, and red and / or yellow corresponding to the climax part, and its specific colors correspond to the colors of the lighted device in the same time period.
[0012] Exemplarily, the flashing light display includes flashing once for the smooth part, flashing once and flashing four times alternately for the middle part, and flashing four times for the climax part.
[0013] Exemplarily, the light display shows a beginning pattern and an ending pattern at the beginning and end stages of the music, respectively.
[0014] Exemplarily, the starting style and the ending style are blue counterclockwise and blue clockwise styles respectively.
[0015] A second aspect of the present invention provides a system for making lights follow the rhythm of music, the system comprising a storage device and a processor, the storage device storing a computer program run by the processor, and the computer program executing the aforementioned method for making lights follow the rhythm of music when run by the processor.
[0016] A third aspect of the present invention provides a computer storage medium having a computer program stored thereon, wherein the computer program implements the steps of the aforementioned method when executed by a computer.
[0017] In summary, the present invention can realize the movement of lights following the rhythm, and the device is simple to implement and obtain good display effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and other objects, features, and advantages of the present invention will become more apparent through a more detailed description of the embodiments of the present invention with reference to the accompanying drawings. The accompanying drawings are provided to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and are not intended to limit the present invention. In the drawings, the same reference numerals generally represent the same components or steps.
[0019] In the attached figure:
[0020] Figure 1 Shows a schematic structural diagram of a current lighting device;
[0021] Figure 2 A schematic diagram of a method for dividing music segments in one embodiment of the present invention is shown;
[0022] Figure 3 A schematic diagram showing the corresponding relationship between frequency, loudness and music segments in an embodiment of the present invention is shown.
[0023] Description of Reference Numerals
[0024] 100 Lighting Device
[0025] 200 Horn light device
[0026] 300 flash unit
[0027] 101,102,103,104,105,106,107,108 with lights DETAILED DESCRIPTION
[0028] In the following description, numerous specific details are provided to provide a more thorough understanding of the present invention. However, it will be apparent to those skilled in the art that the present invention may be practiced without one or more of these details. In other instances, certain technical features well known in the art are not described to avoid confusion with the present invention.
[0029] It should be understood that the present invention can be implemented in different forms and should not be interpreted as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to make disclosure thorough and complete and to fully convey the scope of the present invention to those skilled in the art.
[0030] The purpose of the terms used herein is only to describe specific embodiments and is not intended to limit the present invention. When used herein, the singular forms "a", "an", and "the" are intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "comprising" and / or "comprising", when used in this specification, determine the presence of the features, integers, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts and / or groups. When used herein, the term "and / or" includes any and all combinations of the relevant listed items.
[0031] In order to fully understand the present invention, a detailed description will be provided below to illustrate the technical solution of the present invention. Preferred embodiments of the present invention are described in detail below, but in addition to these detailed descriptions, the present invention may also have other embodiments.
[0032] As used herein, "light" refers to a combination of light-emitting components. A "pattern" refers to the transitions in the states of all lights over a period of time, creating a collective perception of change to the human eye. For example, a pattern consists of approximately 80 frames. A "state" refers to the state of all lights at a specific point in time. For example, it is similar to a single image or a single frame of video.
[0033] Based on the above definition, the present invention proposes three types of styles: The first type of style, cool color style, refers to an overall cool color tone with slow changes, mainly blue, and a small amount of purple. The second type of style, medium color style, refers to a medium color tone with medium changes, mainly purple and blue-green. The third type of style, warm color style, refers to an overall warm color tone with fast changes, mainly red and yellow.
[0034] The present invention also proposes three types of sections. For any song, we can subjectively feel the three sections: the flat part, the middle part, and the climax part.
[0035] Based on the above understanding, the present invention is described in detail with reference to the accompanying drawings. First, the structure of the speaker is as follows: Figure 1 As shown, the lights are divided into three categories, namely, strip lights 100, horn lights 200, and flashing lights 300. For example, there are more than a dozen styles of strip lights, several styles of horn lights, and several styles of flashing lights.
[0036] The styles of the aforementioned lights, horn lights and flashing lights are determined according to the sections of the music. Although it is mentioned above that we can subjectively judge the smooth section, middle section and climax section of any song, there are huge errors in human judgment, and the judgment criteria vary from person to person. Therefore, the present invention proposes to use a music analysis module to analyze the music. For example, we take a sampling rate of 44.1k as an example: Figure 2 As shown, the music analysis module realizes the distinction of music segments. The sampling rate, also known as the sampling speed or sampling frequency, defines the number of samples extracted from the continuous signal per second to form a discrete signal. It is expressed in Hertz (Hz). The reciprocal of the sampling frequency is the sampling period or sampling time, which is the time interval between samples. In layman's terms, the sampling rate refers to how many sound samples the computer collects per second. It describes the sound quality and pitch of the sound file and measures the quality standard of the sound card and sound file. The sampling interval corresponding to the sampling rate of 44.1k is 22.7μs. Selecting 1024 sampling points results in a window with a duration of 23ms.
[0037] The present invention provides a method for making lights follow the rhythm of music, comprising: dividing music to obtain different music segments, wherein the basis for dividing the music is the loudness and / or frequency of the music; based on the music segments, the lights display a pattern corresponding to the music segments.
[0038] The step of dividing the music to obtain different music segments is as follows: when the loudness of the music segment is lower than the loudness threshold, it belongs to the gentle part; when the loudness of the music segment is not lower than the loudness threshold and the frequency is not lower than the frequency threshold, it belongs to the middle part; when the loudness of the music segment is not lower than the loudness threshold and the frequency is lower than the frequency threshold, it belongs to the climax part.
[0039] The specific judgment steps are as follows: Figure 2 As shown, it includes step 1. Obtaining frequency and loudness: 1024 points is about 23ms. For each 23ms window, the fast Fourier transform (FFT) can be used to calculate the main frequency f and loudness a of the music during this period. Step 2. Obtaining the music segment: It includes step 2.1. If the loudness is lower than a certain value, such as a=40, then we will feel that the music is in the flat part. Otherwise, repeat step 2.2. Step 2.2. If the frequency is lower than a certain value, such as f=180, then we think that the music has reached the climax. Otherwise, we think it is the middle part. The loudness critical value and frequency critical value in the above judgment method can also be called loudness threshold and frequency threshold. In the above implementation, the loudness threshold is 40 and the frequency threshold is 180. However, it can be understood that the loudness threshold and frequency threshold can be selected according to the actual audio data, such as the loudness threshold a=60, the frequency threshold f=200, and so on. According to Figure 2 The obtained music section division becomes the first division result.
[0040] Considering that the length of a window is short, if a light pattern is used for each window of 23ms, the light pattern will be switched too frequently, affecting the viewer's experience. Figure 2 The obtained music segment is then calculated by a smoothing algorithm. Considering the flickering of lights and the ability of human eyes to receive, 1 to 2 seconds is selected as a time period. The above first division result is calculated and the result can be combined with the Figure 3 The final division results are explained. Figure 3 This is a cut section of the song Croatian Rhapsody, Figure 3 The frequency graph in the figure is at the top, where the frequency in each window of 23ms is median filtered according to the cut version of Croatian Rhapsody, and the frequency median filter graph for the entire playback period is obtained. The loudness graph is in the middle, where the loudness in each window of 23ms is median filtered according to the cut version of Croatian Rhapsody, and the loudness median filter graph for the entire playback period is obtained. Then, according to Figure 2 The music section judgment method shown is Figure 3The upper middle and the middle are judged to obtain the first division result (not shown), and the first division result is continued to be smoothed. For example, within a time period of 1 to 2 seconds, the first division result is counted. If the number of a certain music segment accounts for 80% or more of the total number within the time period, the music segment within the time period is directly selected as a certain music segment. For example, if the number of the first segment accounts for more than 80% of the total number, the music segment within the time period is identified as the first segment. Figure 3 As shown in the bottom figure, within the time range of 0-10s+, a smoothing operation is performed on each 1-2s time period, and it is found that within this time range, the music segments are all the first segment. For example, within the time range of 1-10s+, the values of some windows of loudness a are greater than 40. This part does not belong to the first music segment in the first division result. However, within a time period of 1-2s, the number of windows with a>40 is small, and the number of windows with a≤40 / total number of windows is ≥80%. Therefore, the music area within the 1-2s time period is determined to be the first music segment. Figure 3 In the bottom figure, the segments are all the first music segments, shown as segment 1. The above describes the final division method of the music segments within the time range of 0-10s+. The first division result of 10s+-70s and the final division result are obtained in a similar way. It is worth noting that the smoothing algorithm not only includes statistics on the number of music segments within a certain time range, but also includes some special algorithms. For example, in the time period of 68-70s, the loudness drops rapidly from 40+ to 0. Combined with the frequency value in this time period, the frequency is lower than 180hz. According to the first division result, the music segment is in the third music segment and quickly drops to the first music segment, that is, it quickly changes from segment 3 to segment 1. According to the smoothing operation method of the present invention, when the music segment changes rapidly between 1 and 3, it is defined as the second music segment, that is, segment 2. Figure 3 As shown in the bottom figure 68-70s. Figure 2 Music segment division method and the above smoothing algorithm, Figure 3 The final music segmentation result of the cut version of the song Croatian Rhapsody is shown as follows Figure 3 As shown in the bottom picture.
[0041] According to the above, the styles are divided into the following three categories:
[0042] The first style, cool color style, features an overall cool hue with slow changes, primarily blue with a small amount of purple. This style corresponds to the gentle part of a piece of music or song, namely the first musical segment, segment 1.
[0043] The second type of pattern, medium color, refers to a medium color tone with medium variation, mainly purple and blue-green. It corresponds to the middle part of the music or song, that is, the second musical section, segment 2.
[0044] The third style, warm color style, features an overall warm tone with rapid changes, primarily red and yellow. This corresponds to the climax of a piece of music or song, i.e., the third musical section, segment 3.
[0045] Among them, cool, medium, and warm colors are not simply blue, purple, and red, but are composed of a series of specially designed lighting styles. At the same time, due to the changes in the style design, combined with the speed and flashing design, they can show better lighting effects. When designers design new styles: if the change pattern is simple, the matching color is a cool color, which will be added to the smooth part of the style; if the change pattern is more complex, the matching color is a medium color, which will be added to the middle part of the style; if the overall tendency is flashing, the matching color is a warm color, which will be added to the climax style part. At the same time, we also have to subjectively judge whether the newly added style is coordinated with the existing style. When the change pattern or color of certain styles are inappropriate, we must also modify them to conform to the above rules.
[0046] According to the differences between cool color style, medium color style and warm color style, it is divided into 3 categories, corresponding to the detected smooth part, middle part and climax part of the music respectively.
[0047] For devices with lights:
[0048] The flat part, section 1, has a mainly regular changing pattern, and the color is mainly blue with a small amount of purple. The patterns included are: blue counterclockwise; left-right-left-right, stop; right-left-left-left, stop; left-right-left-right, non-stop; blue rising; blue falling; blue clockwise.
[0049] The middle part, section 2, mainly uses complex changes in style, and the colors are mainly medium colors, including purple and blue-green. The styles included are: blue turns off to purple turns off; blue advances two steps and retreats one step; blue, green and purple up and down.
[0050] In the climax part, section 3, the style is mainly flashing, and the colors are mainly warm colors, including red and yellow. The styles included are: red and pink up and down; orange turns off to red; orange and red are all on and off.
[0051] Within the flat part, middle part or climax part, the above-mentioned patterns contained therein can be presented sequentially, randomly, or in a specific regular order.
[0052] For the horn light device: it follows the color of the strip light to present itself. Under the premise that the color of the horn light matches the color of the strip light, its style can be presented sequentially, randomly, or in a specific regular order. Specifically, it includes the following styles: 1. The brightness changes from 30% to 100%; 2. Blue-green, the two lights work together, from 30% brightness to 100%, to 30% brightness, the time interval is 60ms, and the remaining time is (1s-60ms); 3. Blue-blue-green-green, the two lights work together, from 30% brightness to 100%, to 30%, the time interval is 60ms, and the remaining time is (1s-60ms), the three colors flash alternately; 4. Purple, pink, from 30% brightness to 100%, to 30%, the time interval is : 1. The brightness of the two lights changes from 30% to 100% and then to 30% with a time interval of 60ms respectively, and the remaining time is (1s-60ms), the two colors flash alternately; 2. The brightness of the two lights changes from 30% to 100% and then to 30% with a time interval of 60ms respectively, and the remaining time is (1s-60ms), the three colors flash alternately; 3. The brightness of the two lights changes from 100% to 0% with a time interval of 60ms respectively, and the remaining time is (1s-60ms), the three colors flash alternately; 4. The brightness of the two lights changes from 100% to 0% with a time interval of 60ms respectively, and the remaining time is (1s-60ms), the three colors flash alternately; 5. The brightness of the two lights changes from 30% to 100% and then to 30% with a time interval of 60ms respectively, and the remaining time is (1s-60ms), the three colors flash alternately; 6. The brightness of the two lights changes from 30% to 100% and then to 30% with a time interval of 60ms respectively, and the remaining time is (1s-60ms), the three colors flash alternately; 7. The brightness of the two lights changes from 100% to 0%
[0053] For flashing lights: During a time segment containing only the slow-motion music segment 1, the flashing lights have no effect. During a time segment containing both the middle and climax sections 2 and 3, pattern 1 is displayed. During a time segment containing all the slow-motion, middle, and climax sections 1-3, pattern 1 and pattern 2 are displayed sequentially. During the opening and ending patterns with lights, the flashing lights have no effect.
[0054] The above content introduces a design method of light, horn light and flashing light. In other embodiments, the following design method can also be used
[0055] These include
[0056] Step 3.1. Design of the light and horn light: The styles are as described above;
[0057] Step 3.2. Flashing light design: Use the loudness exceeding a certain absolute value and the percentage of the loudness exceeding the maximum value in the previous few seconds to detect the drum beat. The flashing time of the flashing light corresponds to the drum beat.
[0058] In addition, it is worth noting that the flashing lights accelerate the pattern to express the speed of the music. There is a linkage between the flashing lights and the strip lights, that is, the flashing light pattern affects the speed of the strip lights pattern, and thus reflects the speed of the music. Specifically, as shown in the following steps:
[0059] Step 3.3. Lighting Speed: The lighting speed has three levels. They are as follows: 3.3.1. If flashing lights are present, speed up the lighting pattern by 30 frames. 3.3.2. If the pattern is a flat, cool part, slow it down. 3.3.3. If the pattern is a medium part, keep the speed the same.
[0060] This includes step 4: Lighting Synergy. Although the strip lights, horn lights, and flashing lights are designed separately, the overall presentation creates a sense of coordination. The flashing lights speed up the strip lights, while slowing down when the music is slow, creating a sense of coordination between the lights.
[0061] In cooperation Figure 3 In the Croatian Rhapsody cut, the lights display the following 24 patterns: 1. Blue counterclockwise; 2. Left / Right / Left / Stop; 3. Right / Right / Left / Stop; 4. Left / Right / Left / Stop; 5. Blue counterclockwise; 6. Blue off, purple off; 7. Up / Down blue, green, purple; 8. Up / Down red, pink, red; 9. Blue two steps forward, one step back; 10. Blue off, purple off; 11. Up / Down blue, green, purple; 12. Blue descending; 13. Blue two steps forward, one step back; 14. Blue off, purple off; 15. Blue rising; 16. Up / Down blue, green, purple; 17. Orange, red, all on, all off; 18. Up / Down red, pink, red; 19. Orange off, red off; 20. Blue two steps forward, one step back; 21. Orange, red, all on, all off; 22. Blue off, purple off; 23. Blue two steps forward, one step back; 24. Blue clockwise. The starting pattern for each of these 24 patterns is pattern 1, and the ending pattern is pattern 24.
[0062] according to Figure 3 As shown, 1-13s, 36-37s, and 44-45s are segment 1;
[0063] 14-15s, 16-20s, 22-35s, 38-43s, 46-47s, 58-60s, 63-70s are segment 2;
[0064] 15s, 21s, 48-57s, 61-62s are segment 3.
[0065] In segment 1 from 1 to 13 seconds, the lights displayed the following patterns in sequence: blue counterclockwise; left, right, left, stop; right, left, left, stop; left, right, left, stop; blue counterclockwise.
[0066] In segment 2 from 14 to 15 seconds, the light displayed the following pattern: blue off, purple off; blue, green, and purple on top and bottom.
[0067] In segment 3 at the 15th second, the lights presented the following patterns in sequence: red, pink, and pink on top and bottom. From the 16th to the 20th second, the lights presented the following patterns: blue, green, and purple on top and bottom. At the 21st second, the lights presented the following patterns: red, pink, and pink on top and bottom.
[0068] In segment 2 from 22 to 35 seconds, the lights displayed the following patterns: blue, two steps forward, one step back; blue off, purple off; blue, green, purple up and down.
[0069] In segment 1 at 36-37s, the light strip shows a pattern: blue descending.
[0070] In segment 2 from 38 to 43 seconds, the lights displayed the following patterns: blue two steps forward and one step back; blue turned off and purple turned off.
[0071] In segment 1 at 44-45 seconds, the light strip shows a pattern: blue rising.
[0072] In segment 2 at 46-47s, the lights show a pattern: blue, green and purple above and below.
[0073] In segment 3 from 48 to 57 seconds, the lights appeared in sequence: orange and red all on and off; red and pink above and below; orange off and off to red.
[0074] In segment 2 from 58 to 60 seconds, the light displayed: blue advances two and retreats one.
[0075] In segment 3 between 61 and 62 seconds, the lights displayed: orange and red were all on and off.
[0076] In segment 2 from 63 to 70 seconds, the lights show the following pattern: blue turns off and purple turns off; blue advances two and retreats one.
[0077] At the end, the lights show the style: blue clockwise.
[0078] For example, light pattern 1, blue counterclockwise can be specifically blue light color, half of the brightness is 100%, 75%, 50%, 25%, respectively, the brightness rendering gradient effect, a total of eight states, the state and the state are evenly transitioned rather than sudden, each state switch 660ms. Figure 1 To illustrate light strip style 1, if light strip 108 is blue with a brightness of 100%, light strip 107 is blue with a brightness of 75%, light strip 106 is blue with a brightness of 50%, and light strip 105 is blue with a brightness of 25%, after 660ms, the state is switched. Since the blue light rotates counterclockwise, in the next state, light strip 101 is blue with a brightness of 100%, light strip 108 is blue with a brightness of 75%, light strip 107 is blue with a brightness of 50%, and light strip 106 is blue with a brightness of 25%, and the switching between states is a uniform transition. As needed, after another 660ms, the blue light strip continues to advance counterclockwise by one grid, so that light strip 102 is blue with a brightness of 100%, and the other light strips are similarly advanced counterclockwise by one grid. The above counterclockwise state combination constitutes light strip style 1.
[0079] For example, the lighted style 2, left, right, left, right, stop can be specifically blue with half of the lights on, four lights all on, brightness 100%, the other side is off, brightness 0%, four temporary states constitute a change unit such as "left, right, left, right", the time interval between each temporary state is 60ms, and then the last state is maintained until one second. Figure 1 To illustrate light strip pattern 2, for example, if light strips 105-108 are blue with 0% brightness, and light strips 101-104 are blue with 100% brightness, this state constitutes the first temporary state. After 60ms, the next temporary state is entered: light strips 105-108 are blue with 100% brightness, and light strips 101-104 are blue with 0% brightness. This state constitutes the second temporary state. After another 60ms, the first temporary state is repeated, and after another 60ms, the second temporary state is repeated. The final state is then maintained for one second, which constitutes "left, right, left, right, stop." The combination of these states constitutes a combination, forming light strip pattern 2.
[0080] For example, in light strip style 3, right, left, left, stop can be specifically blue with half of the strip illuminated, all four lights on at 100% brightness, and all four lights off at 0% brightness. The four temporary states constitute a change unit, such as "right, left, right, left", and the interval between each temporary state is 60ms, and the last state is maintained for one second. Adjusting the temporary state sequence in the aforementioned light strip style 2 to the second temporary state, the first temporary state, the second temporary state, the first temporary state, and then the last state is maintained for one second, thus forming "right, left, left, stop", forming light strip style 3.
[0081] For example, light strip pattern 4, "left, right, left, right, non-stop," can be specifically characterized by a blue light strip, half of which is illuminated, all four lights on at 100% brightness, and the other side completely off at 0% brightness. Four temporary states constitute a change unit, such as "left, right, left, right," with a 60ms interval between each temporary state until the next light strip pattern. Continuing the temporary state sequence in light strip pattern 2, and continuing the cycle after executing four temporary states, constitutes "right, left, right, left, non-stop," forming light strip pattern 3.
[0082] For example, lighted style 5 is the same as style 1.
[0083] For example, the light pattern 6, which turns from blue to purple, can be specifically blue and purple, arranged around the lamp tube. The blue temporary state is composed of blue, off, blue, off, blue, off, blue, off, and the purple temporary state is composed of off, purple, off, purple, off, purple, off, purple, purple, one state and one beat, and the two states are presented interactively. Taking two seconds as the beat as an example, 0-60ms, blue brightness is 0%, 60ms-(1s-2*60ms), blue brightness is 100%, (1s-60ms)-1s, blue brightness is 0%, 1s-1s+60ms purple brightness is 0%, 1s+60ms-2s-60ms, purple brightness is 100%, 2s-60ms-2s, purple brightness is 0%. Combined Figure 1 To illustrate the light pattern 6, in a two-second beat, from 0 to 60ms, the lights 102, 104, 106, and 108 are blue with a brightness of 0%, and the lights 101, 103, 105, and 107 are off. From 60ms to 940ms, the lights 102, 104, 106, and 108 are blue with a brightness of 100%, and the lights 101, 103, 105, and 107 are off. From 940ms to 1s, the lights 102, 104, 106, and 108 are blue with a brightness of 0%, and the lights 101, 103, 105, and 107 are off. Within 060ms, lights 101, 103, 105, and 107 are purple with a brightness of 0%, and lights 102, 104, 106, and 108 are off. Within 1060ms-1940ms, lights 101, 103, 105, and 107 are purple with a brightness of 100%, and lights 102, 104, 106, and 108 are off. Within 1940ms-2s, lights 101, 103, 105, and 107 are purple with a brightness of 0%, and lights 102, 104, 106, and 108 are off, which constitutes "blue off to purple off", forming light strip style 6.
[0084] For example, the light pattern 7, blue-green-purple above and below can be specifically blue-green and purple. State 1, from top to bottom, blue-green 100%, purple 80%, purple 40%, purple 10%; State 2, from bottom to top, blue-green 100%, purple 80%, purple 40%, purple 10%. State 1 and state 2 are switched for 1 second each. Figure 1To illustrate the light strip style 6, in the first second, it is state one, the lights 101 and 108 are blue-green with a brightness of 100%, the lights 102 and 107 are purple with a brightness of 80%, the lights 103 and 106 are purple with a brightness of 40%, and the lights 104 and 105 are purple with a brightness of 10%. In the second second, it is state two, the lights 104 and 105 are blue-green with a brightness of 100%, the lights 103 and 106 are purple with a brightness of 80%, the lights 102 and 107 are purple with a brightness of 40%, and the lights 101 and 108 are purple with a brightness of 10%. State one and state two switch with each other, forming "blue-green-purple up and down", forming the light strip style 8.
[0085] For example, the light pattern 8, red and pink, can be specifically red and pink. State 1, from top to bottom, is composed of 100% red, 80% pink, 40% pink, and 10% pink; State 2, from bottom to top, is composed of 100% red, 80% pink, 40% pink, and 10% pink. State 1 and state 2 are switched for 1 second each. Figure 1 To illustrate the light strip style 6, in the first second, it is in state one, the lights 101 and 108 are red, with a brightness of 100%, the lights 102 and 107 are pink, with a brightness of 80%, the lights 103 and 106 are pink, with a brightness of 40%, the lights 104 and 105 are pink, with a brightness of 10%. In the second second, it is in state two, the lights 104 and 105 are red, with a brightness of 100%, the lights 103 and 106 are pink, with a brightness of 80%, the lights 102 and 107 are pink, with a brightness of 40%, the lights 101 and 108 are pink, with a brightness of 10%. State one and state two switch with each other, forming "upper and lower red, pink and red", forming the light strip style 8.
[0086] For example, in light pattern 9, blue advance two grids, retreat one grid, the lights can be blue and purple. Turning counterclockwise, it advances two grids (two lights) and retreats one grid. Taking the previous four states as an example, state one: 30% purple, 40% blue, 50% purple, 60% blue, 70% purple, 80% blue, 90% purple, 100% blue; state two: 100% blue, 30% purple, 40% blue, 50% purple, 60% blue, 70% purple, 80% blue, 90% purple; state three: 90% purple, 100% blue, 30% purple, 40% blue, 50% purple, 60% blue, 70% purple, 80% blue; state four: 80% blue, 90% purple, 100% blue, 30% purple, 40% blue, 50% purple, 60% blue, 70% purple. Optionally, the transition from state 1 to state 2 is 450ms, from state 2 to state 3 is 450ms, and from state 3 to state 4 is 100ms. Optionally, the transitions between states are uniform. Figure 1The light style 12 is explained. In state one, light 101 is 30% purple, light 102 is 40% blue, light 103 is 50% purple, light 104 is 60% blue, light 105 is 70% purple, light 106 is 80% blue, light 107 is 90% purple, and light 108 is 100% blue. State two, light 101 is 100% blue, light 102 is 30% purple, light 103 is 40% blue, light 104 is 50% purple, light 105 is 60% blue, light 106 is 70% purple, light 107 is 80% blue, and light 108 is 90% purple. State three, light 1 01 is 90% purple, light 102 is 100% blue, light 103 is 30% purple, light 104 is 40% blue, light 105 is 50% purple, light 106 is 60% blue, light 107 is 70% purple, and light 108 is 80% blue; state four, light 101 is 80% blue, light 102 is 90% purple, light 103 is 100% blue, light 104 is 30% purple, light 105 is 40% blue, light 106 is 50% purple, light 107 is 60% blue, and light 108 is 70% purple, and the counterclockwise cycle continues. There are other states, such as state five, state six... In the process from state one to state two, 100% blue has completed a counterclockwise rotation of forward two and back one. That is to say, there is state three between state one and state two. 100% is in state one, and it moves forward two grids to state three, and then moves back one grid to state two, forming a step of forward two and back one. Continuing to execute the step of forward two and back one, one circle counterclockwise constitutes "blue advance two and back one", forming light strip pattern 12.
[0087] For example, the lighted style 10 is the same as style 6.
[0088] Exemplarily, the lighted pattern 11 is the same as pattern 7. Exemplarily, the lighted pattern 12, blue descending, blue descending can be specifically lighted, blue, 2 grids symmetrical from top to bottom, 100% blue, and the color moves from top to bottom. It is divided into six states, with an interval of 200ms and a time of 1s. State one: off, off, off, off, off, off, off, off, off; State two: blue, off, off, off, off, off, off, off, off, blue; State three: off, blue, off, off, off, off, off, blue, off; State four: off, off, blue, off, off, blue, off, off, blue; State five: off, off, off, blue, blue, off, off, off; State six: off, off, off, off, off, off, off, off, off, off, off, and the states change evenly. Combined Figure 1Explaining strip light pattern 9, in state 1, all strip lights in strip light device 100 are off. In state 2, strip lights 101 and 108 are symmetrically blue with 100% brightness, while all other strip lights are off. In state 3, strip lights 102 and 107 are symmetrically blue with 100% brightness, while all other strip lights are off. In state 4, strip lights 103 and 106 are symmetrically blue with 100% brightness, while all other strip lights are off. In state 5, strip lights 104 and 105 are symmetrically blue with 100% brightness, while all other strip lights are off. In state 6, all strip lights in strip light device 100 are off. Each state is separated by 200ms, totaling 1 second, forming a "blue drop" and forming strip light pattern 12.
[0089] For example, the lighted style 13 is the same as style 9.
[0090] For example, the lighted style 14 is the same as style 6.
[0091] Exemplarily, the lighted style 15, the blue rising can be specifically a lighted, blue, 2 symmetrical grids from top to bottom, 100% blue, and the color moves from bottom to top. It is divided into six states, with an interval of 200ms and a time of 1s. State one: off, off, off, off, off, off, off, off, off; State two: off, off, off, blue, blue, off, off, off; State three: off, off, blue, off, off, blue, off, off, blue, off, off; State four: off, blue, off, off, off, off, off, blue, off; State five: blue, off, off, off, off, off, off, off, blue; State six: off, off, off, off, off, off, off, off, off, off, off, and the states change evenly. Combined Figure 1 Explaining strip light pattern 11, in state 1, all strip lights in strip light device 100 are off. In state 2, strip lights 104 and 105 are symmetrically blue with 100% brightness, while all other strip lights are off. In state 3, strip lights 103 and 106 are symmetrically blue with 100% brightness, while all other strip lights are off. In state 4, strip lights 102 and 107 are symmetrically blue with 100% brightness, while all other strip lights are off. In state 5, strip lights 101 and 108 are symmetrically blue with 100% brightness, while all other strip lights are off. In state 6, all strip lights in strip light device 100 are off. Each state is separated by 200ms, totaling 1 second, forming a "blue rise" pattern, forming strip light pattern 15.
[0092] For example, lighted style 16 is the same as style 7.
[0093] For example, the light pattern 17, orange and red all on and off can be specifically red and orange, state one is composed of red, orange, red, orange, red, orange, red, orange; state two all lights are off; state one and state two alternate four times, state two 30ms, state one 60ms, alternate four times, and stay on until one second ends. Figure 1 To illustrate light strip pattern 17, taking a 1s time period as an example, within 0-30ms, it is state 2, and all lights are off. Within 30ms-90ms, it is state 1, with lights 101, 103, 105, and 107 in orange and lights 102, 104, 106, and 108 in red. Within 90ms-120ms, it is state 1, and all lights are off. Within 120ms-180ms, it is state 2, with lights 101, 103, 105, and 107 in orange and lights 102, 104, 106, and 108 in red. Within 180ms-1s, it is state 2, and all lights are on until the end of 1s, which constitutes "orange and red all on and off", forming light strip pattern 17.
[0094] For example, the lighted style 18 is the same as style 8.
[0095] For example, the light pattern 19, orange off to red off can be specifically orange and red, arranged around the lamp tube, the orange temporary state is composed of orange, off, orange, off, orange, off, orange, off, the red temporary state is composed of off, red, off, red, off, red, off, red, one state one beat, the two states are presented interactively, taking two seconds as the beat as an example, 0-60ms, orange brightness is 0%, 60ms-(1s-2*60ms), orange brightness is 100%, (1s-60ms)-1s, orange brightness is 0%, 1s-1s+60ms red brightness is 0%, 1s+60ms-2s-60ms, red brightness is 100%, 2s-60ms-2s, red brightness is 0%. Combined Figure 1The light pattern 14 is described as follows: in a two-second beat, from 0 to 60 ms, the lights 102, 104, 106, and 108 are orange with a brightness of 0%, and the lights 101, 103, 105, and 107 are off; from 60 ms to 940 ms, the lights 102, 104, 106, and 108 are orange with a brightness of 100%, and the lights 101, 103, 105, and 107 are off; from 940 ms to 1 s, the lights 102, 104, 106, and 108 are orange with a brightness of 0%, and the lights 101, 103, 105, and 107 are off; During the time of 060ms, the lights 101, 103, 105, and 107 are red with a brightness of 0%, and the lights 102, 104, 106, and 108 are off. During the time of 1060ms-1940ms, the lights 101, 103, 105, and 107 are red with a brightness of 100%, and the lights 102, 104, 106, and 108 are off. During the time of 1940ms-2s, the lights 101, 103, 105, and 107 are red with a brightness of 0%, and the lights 102, 104, 106, and 108 are off, which constitutes "orange off edge off red", forming the light strip style 19.
[0096] For example, the lighted style 20 is the same as style 9.
[0097] For example, the lighted style 21 is the same as the style 17.
[0098] For example, the lighted style 22 is the same as style 6.
[0099] For example, the lighted style 23 is the same as style 9.
[0100] For example, the light pattern 24 is blue clockwise. Blue clockwise can be specifically blue light color, half of which has brightness, which are 100%, 75%, 50%, 25%, respectively, with a gradient effect of brightness rendering, a total of eight states, and the transition between states is uniform rather than sudden, and each state switches 660ms. Figure 1To illustrate light strip style 1, if light strip 101 is blue with a brightness of 100%, light strip 102 is blue with a brightness of 75%, light strip 103 is blue with a brightness of 50%, and light strip 104 is blue with a brightness of 25%, after 660ms, the state is switched. Since the blue light rotates clockwise, in the next state, light strip 108 is blue with a brightness of 100%, light strip 101 is blue with a brightness of 75%, light strip 102 is blue with a brightness of 50%, and light strip 103 is blue with a brightness of 25%, and the switching between states is a uniform transition. As needed, after another 660ms, the blue light strip continues to advance counterclockwise by one grid, so that light strip 107 is blue with a brightness of 100%. The other light strips are similarly advanced counterclockwise by one grid. The above counterclockwise state combination constitutes light strip style 24.
[0101] The starting style of the above 24 styles is 1 and the ending style is 24.
[0102] In cooperation Figure 3 During the Croatian Rhapsody cut shown, the horn lights sequentially displayed the following 18 styles. The 18 styles of horn lights listed below correspond to the 18 styles with lights in terms of time. The specific 18 styles with lights are as follows: 1. Brightness changes from 30% to 100%; 2. Blue-green, two lights work together, from 30% brightness to 100% brightness, to 30% brightness, the time interval is 60ms, the remaining time is (1s-60ms); 3. Same as 2, 4. Same as 2; 5. Same as 2; 6. Same as 2; 7. Same as 2; 8. Blue-blue-green-green, two lights work together, from 30% brightness to 100% brightness, to 30% brightness, the time interval is 60ms, the remaining time is (1s-60ms), the three colors flash alternately; 9. Same as 6; 10. .Same as 2; 11.Same as 2; 12. Purple, pink, from 30% brightness to 100% brightness, to 30% brightness, the time interval is 60ms respectively, and the remaining time is (1s-60ms), the two colors flash alternately; 13. Red-orange-yellow, the two lights work together, from 30% brightness to 100% brightness, to 30% brightness, the time interval is 60ms respectively, and the remaining time is (1s-60ms), the three colors flash alternately; 14.Same as 12; 15.Same as 12; 16.Same as 12; 17. Red, orange, yellow, the two lights work together, from 30% brightness to 100% brightness, to 30% brightness, the time interval is 60ms respectively, and the remaining time is (1s-60ms), the three colors flash alternately; 18. Blue, brightness changes from 100% to 0%.
[0103] In cooperation Figure 3During the performance of the Croatian Rhapsody cut shown, the lights display the following three patterns: During the segment 1 containing only the slow-motion portion, the lights have no effect. During the segment 2 and 3 containing both the middle and climax parts, the lights display pattern 1, with brightness varying from 0% to 100% to 0% at 30ms intervals, and flashing once every 1s. During the segment 1-3 containing both the slow-motion portion, the lights display pattern 1, with brightness varying from 0% to 100% to 0% at 30ms intervals, and flashing once every 1s. Pattern 2: Brightness varying from 0% to 100% to 0% at 30ms intervals, flashing once every 1s. Pattern 2: Brightness varying from 0% to 100% to 0% at 30ms intervals, flashing four times in a row, each cycle lasting 1s. The lights have no effect during the opening and ending patterns.
[0104] The aforementioned Fast Fourier Transform (FFT) can calculate frequency and loudness. The main purpose of this invention is to use this frequency and loudness to illuminate lights and achieve coordination between lights.
[0105] Furthermore, the present invention can also provide a system for lights following the rhythm of music, which includes a storage device and a processor, and the storage device stores a computer program run by the processor, and the computer program executes the aforementioned method of lights following the rhythm of music when run by the processor.
[0106] Furthermore, the present invention may also provide a computer storage medium having a computer program stored thereon, wherein the computer program implements the steps of the aforementioned method when executed by a computer.
[0107] The explanation and description of the light source system of the present invention are now completed. A complete wavelength conversion device may also include other components, which will not be described in detail here.
[0108] The projector system of the present invention can be applied to any application scenario that requires synthetic light, including but not limited to application to laser projectors, such as single-chip laser projectors.
[0109] The present invention has been described through the above embodiments, but it should be understood that the above embodiments are for illustrative and illustrative purposes only and are not intended to limit the present invention to the scope of the described embodiments. Those skilled in the art will also understand that the present invention is not limited to the above embodiments and that various variations and modifications may be made based on the teachings of the present invention, all of which fall within the scope of the present invention. The scope of protection of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for making lights follow the rhythm of music, characterized in that: include: Dividing the music into different music segments, wherein the music is divided based on loudness and frequency of the music; Based on the music section, the light displays a pattern corresponding to the music section; Wherein, the light is a speaker light; The music section is divided into a gentle part, a middle part and a climax part; The flat part has a regular pattern change and the colors include blue and / or purple; the middle part has a complex pattern change and the colors include purple and / or blue-green; the climax part has a flashing pattern and the colors include red and / or yellow; The method of dividing the music into different music segments is based on the loudness and frequency of the music, and further includes: The different music segments obtained by dividing the music according to the loudness and frequency of the music are used as the first division result; Performing a smoothing operation on the first division result within a set time period, wherein the set time period is greater than a music sampling duration window; The performing a smoothing operation on the first division result within a set time period includes: The number of music sections within the set time period is statistically calculated, and when the music section rapidly changes between the first music section and the third music section, it is determined to be the second music segment.
2. The method of making lights follow the rhythm of music as claimed in claim 1, characterized in that: The steps of dividing the music to obtain different music segments are as follows: when the loudness of the music segment is lower than the loudness threshold, it belongs to the flat part; when the loudness of the music segment is not lower than the loudness threshold and the frequency is not lower than the frequency threshold, it belongs to the middle part; when the loudness of the music segment is not lower than the loudness threshold and the frequency is lower than the frequency threshold, it belongs to the climax part.
3. The method of making lights follow the rhythm of music as claimed in claim 1, characterized in that: The light display includes a light display, a horn light display and / or a flashing light display.
4. The method of making lights follow the rhythm of music as claimed in claim 3, characterized in that: The light display styles include: blue counterclockwise, left-right-left-stop, right-left-left-stop, left-right-left-stop, blue off to purple off, blue two steps forward and one step back, blue rising, blue falling, blue clockwise, blue-green-purple up and down, orange off to red off, or orange and red all on and off.
5. The method of making light follow the rhythm of music as claimed in claim 4, characterized in that: The horn light display includes blue and / or purple corresponding to the flat part, purple and / or blue-green corresponding to the middle part, and red and / or yellow corresponding to the climax part. The specific colors correspond to the colors of the lighted device in the same time period.
6. The method of making light follow the rhythm of music as claimed in claim 3, characterized in that: The flashing light display includes flashing once for the smooth part, flashing once and flashing four times alternately for the middle part, and flashing four times for the climax part.
7. The method of making light follow the rhythm of music as claimed in claim 1, characterized in that: The light display shows the beginning pattern and the ending pattern at the beginning and the end of the music respectively.
8. The method of making light follow the rhythm of music as claimed in claim 7, characterized in that: The starting style and the ending style are blue counterclockwise and blue clockwise styles respectively.
9. A device in which light follows the rhythm of music, characterized in that: include: Music analysis module, used to divide music segments; Lighting fixtures to display different styles; The music analysis module divides the music segments according to the loudness and frequency of the music. The lighting device displays patterns corresponding to different music sections according to the music sections; Wherein, the light is a speaker light; The music section is divided into a gentle part, a middle part and a climax part; The flat part has a regular pattern change and the colors include blue and / or purple; the middle part has a complex pattern change and the colors include purple and / or blue-green; the climax part has a flashing pattern and the colors include red and / or yellow; The music analysis module is also used to: The different music segments obtained by dividing the music according to the loudness and frequency of the music are used as the first division result; Performing a smoothing operation on the first division result within a set time period, wherein the set time period is greater than a music sampling duration window; The performing a smoothing operation on the first division result within a set time period includes: The number of music sections within the set time period is statistically calculated, and when the music section rapidly changes between the first music section and the third music section, it is determined to be the second music segment.
10. A system for making lights follow the rhythm of music, the system comprising a storage device and a processor, wherein the storage device stores a computer program executed by the processor, and when the computer program is executed by the processor, the method for making lights follow the rhythm of music as described in any one of claims 1 to 8 is executed.
11. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a computer, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Television acousto-optic display method and television set
CN101472362A
Multi-media playing device dynamically varying outer shell color along with rhythm and control method of multi-media playing device
CN103793010A
Music analysis method and apparatus
CN107610716A
Take lamp stereo set
CN205160770U