Music visualisation method, apparatus, computer readable storage medium and vehicle
By analyzing the frequency characteristics of audio signals, dividing frequency ranges, and controlling the brightness and color of ambient lights, the problem of singular linkage between ambient lights and music in existing technologies has been solved, achieving a cool musical atmosphere effect and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD
- Filing Date
- 2023-01-04
- Publication Date
- 2026-05-29
Smart Images

Figure CN115973032B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent vehicle technology, and in particular to a music visualization method, device, computer-readable storage medium, and vehicle. Background Technology
[0002] With the development of automotive intelligence, the functions available inside cars are becoming increasingly diverse, and ambient lighting is now widely used. Currently, it's possible to achieve simple changes in ambient light color and brightness that correspond to the music playing in the car. However, this functionality is relatively limited, resulting in a poor visual presentation of the music and failing to create a truly immersive and engaging musical atmosphere. Summary of the Invention
[0003] This invention aims to at least partially solve one of the technical problems in related technologies. To this end, the first objective of this invention is to propose a music visualization method. Since audio signals have a wide frequency range, and frequencies within the same frequency range share some common frequency characteristics, while frequencies in different frequency ranges have different frequency characteristics, the auditory experience of music with different frequency characteristics will also differ. Therefore, by converting different frequencies into their corresponding frequency ranges and obtaining the amplitude value corresponding to each frequency based on the amplitude value of the corresponding frequency range, the obtained amplitude value for each frequency can effectively reflect the frequency characteristics of different frequency ranges. Simultaneously, by controlling the ambient lighting based on each frequency and its corresponding amplitude, the ambient lighting and music can be linked, and the different frequency characteristics of in-car music can be effectively displayed by controlling the ambient lighting, resulting in a better visual presentation of in-car music, creating a more immersive musical atmosphere, and thus improving the user experience.
[0004] A second objective of this invention is to provide a computer-readable storage medium.
[0005] The third objective of this invention is to provide a vehicle.
[0006] The fourth objective of this invention is to provide a music visualization device.
[0007] To achieve the above objectives, a first aspect of the present invention proposes a music visualization method, the method comprising: acquiring at least one frequency corresponding to an audio signal within a preset time period prior to the current moment; determining the frequency interval in which each frequency is located, and determining the amplitude corresponding to the frequency interval, so as to obtain the amplitude corresponding to each frequency; wherein, the frequency interval includes multiple frequency intervals, and each frequency interval has a corresponding amplitude; and controlling ambient lighting according to each frequency and the amplitude corresponding to each frequency.
[0008] The music visualization method according to an embodiment of the present invention includes: acquiring at least one frequency corresponding to an audio signal within a preset time period prior to the current moment; determining the frequency range of each frequency and determining the amplitude corresponding to the frequency range to obtain the amplitude corresponding to each frequency; wherein, the frequency range includes multiple frequency ranges, and each frequency range has a corresponding amplitude; and controlling ambient lighting according to each frequency and the amplitude corresponding to each frequency. Since the frequency range of audio signals is relatively large, and frequencies within the same frequency range share some common frequency characteristics, while frequencies within different frequency ranges have different frequency characteristics, the listening experience of music with different frequency characteristics will also be different. Therefore, the above method can convert different frequencies into corresponding frequency ranges, and obtain the amplitude corresponding to each frequency according to the amplitude corresponding to the frequency range. The obtained amplitude corresponding to each frequency can thus well reflect the frequency characteristics of different frequency ranges. Simultaneously, controlling the ambient lighting according to each frequency and the amplitude corresponding to each frequency can achieve linkage between the ambient lighting and the music, and can effectively display the different frequency characteristics of in-vehicle music by controlling the ambient lighting, resulting in a better visual presentation effect of in-vehicle music, creating a cooler musical atmosphere, and thus improving the user experience.
[0009] According to one embodiment of the present invention, an ambient light includes indicator lights disposed at both ends of a light strip, each indicator light corresponding to at least one frequency range. The ambient light is controlled according to each frequency and the amplitude corresponding to each frequency, including: determining the amplitude corresponding to each indicator light according to the frequency range corresponding to each indicator light, each frequency and the amplitude corresponding to each frequency; obtaining the average value of the amplitude corresponding to each indicator light to obtain an average amplitude; and controlling the brightness of the corresponding indicator light according to the average amplitude.
[0010] According to one embodiment of the present invention, an ambient light includes an indicator light disposed at one end of a light strip. The indicator light corresponds to at least one frequency range. The ambient light is controlled according to each frequency and the amplitude corresponding to each frequency, including: determining the amplitude corresponding to the indicator light according to the frequency range corresponding to the indicator light, each frequency and the amplitude corresponding to each frequency; obtaining the average value of the amplitude corresponding to the indicator light to obtain an average amplitude; and controlling the brightness of the indicator light according to the average amplitude.
[0011] According to one embodiment of the present invention, the ambient light is a dynamic ambient light, which has multiple regions, each region corresponding to a frequency range. The ambient light is controlled according to each frequency and the amplitude corresponding to each frequency, including: determining the region corresponding to each frequency; and controlling the brightness of the corresponding region according to the amplitude corresponding to each frequency.
[0012] According to one embodiment of the present invention, each region corresponds to at least one color value, and the ambient light is controlled according to each frequency and the amplitude corresponding to each frequency. The method further includes: determining the region corresponding to each frequency; determining the color value of the corresponding region according to the amplitude corresponding to each frequency; and controlling the color of the corresponding region according to the color value.
[0013] According to one embodiment of the present invention, the method further includes controlling the display screen according to each frequency and the amplitude corresponding to each frequency.
[0014] According to one embodiment of the present invention, the display screen includes multiple regions, each region corresponding to a frequency range, and each region includes at least one sub-region. The display screen is controlled according to each frequency and the amplitude corresponding to each frequency, including: determining the region corresponding to each frequency; and lighting up the sub-regions of the corresponding region according to the amplitude corresponding to each frequency, wherein the amplitude is positively correlated with the number of sub-regions lit up.
[0015] To achieve the above objectives, a second aspect of the present invention provides a computer-readable storage medium having a program stored thereon that, when executed by a processor, implements the music visualization method of the first aspect embodiment.
[0016] In the aforementioned computer-readable storage medium, because the frequency range of audio signals is relatively large, and frequencies within the same frequency range share some common frequency characteristics, while frequencies in different frequency ranges have different frequency characteristics, the auditory experience of music with different frequency characteristics will also differ. Therefore, by converting different frequencies into their corresponding frequency ranges and obtaining the amplitude value corresponding to each frequency based on the amplitude value corresponding to the frequency range, the amplitude value corresponding to each frequency can effectively reflect the frequency characteristics of different frequency ranges. Simultaneously, by controlling the ambient lighting based on each frequency and its corresponding amplitude, the ambient lighting and music can be linked, and the different frequency characteristics of in-car music can be effectively displayed by controlling the ambient lighting, resulting in a better visual presentation of in-car music, creating a more immersive and cool musical atmosphere, thereby improving the user experience.
[0017] To achieve the above objectives, a third aspect of the present invention provides a vehicle comprising: a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the music visualization method of the first aspect embodiment.
[0018] In the aforementioned vehicles, because the frequency range of audio signals is relatively large, and frequencies within the same frequency range share some common frequency characteristics, while frequencies in different frequency ranges have different characteristics, the listening experience of music with different frequency characteristics will also differ. Therefore, by converting different frequencies into their corresponding frequency ranges and obtaining the amplitude value corresponding to each frequency based on the amplitude value of the corresponding frequency range, the amplitude value corresponding to each frequency can effectively reflect the frequency characteristics of different frequency ranges. Simultaneously, by controlling the ambient lighting based on each frequency and its corresponding amplitude, the ambient lighting and music can be linked, and the different frequency characteristics of the in-car music can be effectively displayed by controlling the ambient lighting. This results in a better visual presentation of the in-car music, creating a more immersive and cool musical atmosphere, thereby improving the user experience.
[0019] To achieve the above objectives, a fourth aspect of the present invention provides a music visualization device, comprising: an acquisition module for acquiring at least one frequency corresponding to an audio signal within a preset time period prior to the current moment; a determination module for determining the frequency range in which each frequency is located and determining the amplitude corresponding to the frequency range, thereby obtaining the amplitude corresponding to each frequency; wherein the frequency range includes multiple ranges, and each frequency range has a corresponding amplitude; and a control module for controlling ambient lights according to each frequency and the amplitude corresponding to each frequency.
[0020] According to an embodiment of the present invention, a music visualization device acquires at least one frequency corresponding to an audio signal within a preset time period prior to the current moment through an acquisition module; determines the frequency range of each frequency and the amplitude corresponding to the frequency range through a determination module to obtain the amplitude corresponding to each frequency; wherein, there are multiple frequency ranges, and each frequency range has a corresponding amplitude; and a control module controls the ambient light according to each frequency and the amplitude corresponding to each frequency. Since the frequency range of audio signals is relatively large, and frequencies within the same frequency range share some common frequency characteristics, while frequencies in different frequency ranges have different frequency characteristics, the listening experience of music with different frequency characteristics will also be different. Therefore, by converting different frequencies into corresponding frequency ranges and obtaining the amplitude corresponding to each frequency based on the amplitude corresponding to the frequency range, the amplitude corresponding to each frequency can effectively reflect the frequency characteristics of different frequency ranges. Simultaneously, controlling the ambient light according to each frequency and the amplitude corresponding to each frequency enables the linkage between the ambient light and the music, and can effectively display the different frequency characteristics of in-vehicle music by controlling the ambient light, resulting in a better visual presentation effect of in-vehicle music, creating a more cool musical atmosphere, and thus improving the user experience.
[0021] According to one embodiment of the present invention, the ambient light includes indicator lights disposed at both ends of the light strip, each indicator light corresponding to at least one frequency range. The control module is specifically used to determine the amplitude corresponding to each indicator light based on the frequency range corresponding to each indicator light, each frequency, and the amplitude corresponding to each frequency; obtain the average value of the amplitude corresponding to each indicator light to obtain the average amplitude; and control the brightness of the corresponding indicator light based on the average amplitude.
[0022] According to one embodiment of the present invention, the ambient light includes an indicator light disposed at one end of a light strip. The indicator light corresponds to at least one frequency range. The control module is specifically used to determine the amplitude corresponding to the indicator light based on the frequency range corresponding to the indicator light, each frequency, and the amplitude corresponding to each frequency; obtain the average value of the amplitude corresponding to the indicator light to obtain an average amplitude; and control the brightness of the indicator light based on the average amplitude.
[0023] According to one embodiment of the present invention, the ambient light is a dynamic ambient light, which has multiple regions, each region corresponding to a frequency range. The control module is specifically used to determine the region corresponding to each frequency and control the brightness of the corresponding region according to the amplitude corresponding to each frequency.
[0024] According to one embodiment of the present invention, each region corresponds to at least one color value, and the control module is further configured to determine the region corresponding to each frequency; determine the color value of the corresponding region according to the amplitude corresponding to each frequency; and control the color of the corresponding region according to the color value.
[0025] According to one embodiment of the present invention, the control module is further configured to control the display screen according to each frequency and the amplitude corresponding to each frequency.
[0026] According to one embodiment of the present invention, the display screen includes multiple regions, each region corresponding to a multiple frequency range, and each region includes at least one sub-region. The control module is specifically used to determine the region corresponding to each frequency; and to light up the sub-regions of the corresponding region according to the amplitude corresponding to each frequency, wherein the amplitude is positively correlated with the number of sub-regions lit.
[0027] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0028] Figure 1 A flowchart illustrating an embodiment of a music visualization method provided by the present invention;
[0029] Figure 2 A flowchart illustrating a second embodiment of a music visualization method provided by the present invention;
[0030] Figure 3 A schematic diagram of the structure of an ambient light provided in an embodiment of the present invention;
[0031] Figure 4 This is a schematic diagram of another ambient light provided in an embodiment of the present invention;
[0032] Figure 5 This is a schematic diagram of the structure of another ambient light provided in an embodiment of the present invention;
[0033] Figure 6 A schematic diagram illustrating the display effect of a display screen provided in an embodiment of the present invention;
[0034] Figure 7 This is a schematic diagram of the structure of a vehicle-mounted system provided in an embodiment of the present invention;
[0035] Figure 8 A flowchart illustrating a third embodiment of a music visualization method provided by the present invention;
[0036] Figure 9 This is a schematic diagram of the structure of a music visualization device provided in an embodiment of the present invention;
[0037] Figure 10 This is a structural schematic diagram of a vehicle provided in an embodiment of the present invention. Detailed Implementation
[0038] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present invention, and should not be construed as limiting the present invention.
[0039] The following description, with reference to the accompanying drawings, outlines the music visualization method, apparatus, computer-readable storage medium, and vehicle proposed in embodiments of the present invention.
[0040] In this application, references Figure 1 As shown, Figure 1 This is a flowchart illustrating a first embodiment of a music visualization method provided by the present invention. The executing entity of this embodiment can be any device with processing capabilities installed in an in-vehicle system, such as an ambient light controller. The music visualization method provided in this embodiment may include the following steps:
[0041] S101, Obtain at least one frequency corresponding to the audio signal within a preset time period before the current time.
[0042] The audio signal within the preset time period before the current moment refers to the audio signal from the playback position of the preset time period before the current playback position to the current playback position. For example, if the total duration of the audio source file is 4 minutes and 30 seconds, the current playback position is the 3rd minute of the audio source file, and the playback position of the preset time period before the current playback position is the 2nd minute of the audio source file, then the audio signal within the preset time period before the current moment is the audio signal from the 2nd minute to the 3rd minute of the audio source file.
[0043] S102, determine the frequency range of each frequency and the amplitude corresponding to the frequency range, so as to obtain the amplitude corresponding to each frequency.
[0044] The aforementioned frequency ranges may include multiple ranges, each with a corresponding amplitude. For example, there may be 10 frequency ranges, each with an amplitude ranging from 0 to 15. For instance, a frequency range could be 60Hz-250Hz, representing the low-frequency structure of music and containing the fundamental rhythmic notes. This embodiment does not specifically limit the division or number of frequency ranges, or the amplitude corresponding to each range. For example, the amplitude for each frequency can be determined based on the correspondence between frequency ranges and amplitudes shown in Table 1 below.
[0045] Table 1
[0046]
[0047]
[0048] For example, when the frequencies of the audio signal obtained within a preset time period before the current moment are 50Hz, 150Hz, 320Hz, 640Hz, 2000Hz, 4205Hz, 6000Hz, 8500Hz, 13050Hz, and 19000Hz, according to the correspondence between frequency ranges and amplitudes shown in Table 1 above, the frequency range of 50Hz is 0-100Hz, and the amplitude corresponding to 50Hz is 6; the frequency range of 150Hz is 100Hz-300Hz, and the amplitude corresponding to 150Hz is 14; the frequency range of 320Hz is 300Hz-600Hz, and the amplitude corresponding to 320Hz is 10; the frequency range of 640Hz is 600Hz-1... The amplitude of 640Hz is 3; the amplitude of 2000Hz is 5; the amplitude of 4205Hz is 14; the amplitude of 6000Hz is 11; the amplitude of 8500Hz is 8; the amplitude of 13050Hz is 6; and the amplitude of 19000Hz is 3.
[0049] S103 controls the ambient light according to each frequency and the amplitude corresponding to each frequency.
[0050] Specifically, the brightness, color, frequency, and lighting time of the ambient light can be controlled based on each frequency and the amplitude corresponding to each frequency.
[0051] The music visualization method provided in this invention includes: acquiring at least one frequency corresponding to an audio signal within a preset time period prior to the current moment; determining the frequency range of each frequency and determining the amplitude corresponding to the frequency range to obtain the amplitude corresponding to each frequency; wherein, the frequency range includes multiple frequency ranges, and each frequency range has a corresponding amplitude; and controlling ambient lighting according to each frequency and the amplitude corresponding to each frequency. Since the frequency range of audio signals is relatively large, and frequencies within the same frequency range share some common frequency characteristics, while frequencies in different frequency ranges have different frequency characteristics, the listening experience of music with different frequency characteristics will also be different. Therefore, the above method can convert different frequencies into corresponding frequency ranges, and obtain the amplitude corresponding to each frequency according to the amplitude corresponding to the frequency range. The obtained amplitude corresponding to each frequency can thus well reflect the frequency characteristics of different frequency ranges. Simultaneously, controlling the ambient lighting according to each frequency and the amplitude corresponding to each frequency can achieve linkage between the ambient lighting and the music, and can effectively display the different frequency characteristics of in-vehicle music by controlling the ambient lighting, resulting in a better visual presentation effect of in-vehicle music, creating a cooler musical atmosphere, and thus improving the user experience.
[0052] Figure 2 This is a flowchart illustrating a second embodiment of a music visualization method provided by the present invention. This embodiment describes an ambient light including indicator lights disposed at both ends of a light strip. (Refer to...) Figure 2 As shown, the music visualization method provided in this embodiment may include the following steps:
[0053] S201, Obtain at least one frequency corresponding to the audio signal within a preset time period before the current time.
[0054] S202, determine the frequency range of each frequency and the amplitude corresponding to the frequency range, so as to obtain the amplitude corresponding to each frequency.
[0055] The frequency range can include multiple frequency ranges, each with a corresponding amplitude.
[0056] For the specific implementation of S201 and S202, please refer to the relevant descriptions of S101 and S102 in the above embodiment 1.
[0057] S203, determine the amplitude corresponding to each indicator light based on the frequency range corresponding to each indicator light, each frequency, and the amplitude corresponding to each frequency.
[0058] The ambient light may include indicator lights A and B positioned at both ends of a light strip. The area between indicator lights A and B can be a light guide within the ambient light strip. Each indicator light can correspond to at least one frequency range. For example, the ambient light may correspond to 10 frequency ranges, with indicator light A corresponding to 4 frequency ranges on the left side of the ambient light and indicator light B corresponding to the remaining 6 frequency ranges; or indicator light A may correspond to 5 frequency ranges on the left side of the ambient light and indicator light B corresponding to the remaining 5 frequency ranges. Alternatively, the ambient light may correspond to 20 frequency ranges, with indicator light A corresponding to 10 frequency ranges on the left side of the ambient light and indicator light B corresponding to the remaining 10 frequency ranges; or indicator light A may correspond to 12 frequency ranges on the left side of the ambient light and indicator light B corresponding to the remaining 8 frequency ranges. This embodiment does not specifically limit the number of frequency ranges corresponding to indicator lights A and B.
[0059] In this embodiment, Figure 3 This is a schematic diagram of the structure of an ambient light provided in an embodiment of the present invention, as shown below. Figure 3 As shown, the ambient light can include indicator lights A and B located at both ends of the light strip. This ambient light corresponds to 10 frequency ranges. For example, indicator light A corresponds to the 5 frequency ranges on the left side of the ambient light, and indicator light B corresponds to the 5 frequency ranges on the right side. In practice, multiple frequencies corresponding to the audio signal within a preset time period prior to the current moment can be divided into groups of 10 frequencies in chronological order. For each group of frequencies, indicator light A can correspond to the frequency range of the first 5 frequencies in the group, and indicator light B can correspond to the frequency range of the last 5 frequencies in the group. For each group of frequencies, the amplitude corresponding to the first 5 frequencies in the group can be determined as the amplitude corresponding to indicator light A, and the amplitude corresponding to the last 5 frequencies in the group can be determined as the amplitude corresponding to indicator light B. For example, the amplitudes corresponding to the first 5 frequencies in the first group are 6, 10, 5, 14 and 8 respectively, and the amplitudes corresponding to the last 5 frequencies in the first group are 14, 3, 10, 8 and 6 respectively. At this time, the amplitude corresponding to indicator A can be 6, 10, 5, 14 and 8, and the amplitude corresponding to indicator B can be 14, 3, 10, 8 and 6.
[0060] S204, obtain the average amplitude of the amplitude corresponding to each indicator light.
[0061] Specifically, based on the average amplitude of the values corresponding to indicator light A, the average amplitude of indicator light A is calculated. For example, the average value of the amplitudes 6, 11, 5, 14, and 8 corresponding to indicator light A is calculated to be 8.8, and this value is used as the average amplitude of indicator light A. Similarly, based on the average amplitude of the values corresponding to indicator light B, the average amplitude of indicator light B is calculated. For example, the average value of the amplitudes 14, 3, 10, 3, and 6 corresponding to indicator light B is calculated to be 7.2, and this value is used as the average amplitude of indicator light B.
[0062] S205 controls the brightness of the corresponding indicator light based on the average amplitude.
[0063] Specifically, the brightness of indicator light A is controlled based on the average amplitude corresponding to indicator light A, and the brightness of indicator light B is controlled based on the average amplitude corresponding to indicator light B.
[0064] The music visualization method provided in this invention determines the amplitude of each indicator light based on the frequency range, frequency, and amplitude of each frequency; obtains the average amplitude of the amplitude of each indicator light; and controls the brightness of the corresponding indicator light based on the average amplitude. This achieves the effect of the brightness of the dual-head ambient light moving with the rhythm of the music, creating a cooler musical atmosphere and improving the user experience.
[0065] In some embodiments, the average amplitude of any one amplitude value or the average of any number of amplitude values corresponding to indicator light A can be determined as the average amplitude value corresponding to indicator light A, and the brightness of indicator light A can be controlled based on the average amplitude value corresponding to indicator light A. For example, assuming the amplitude values corresponding to indicator light A are 6, 10, 5, 14, and 8, then amplitude 6 can be directly determined as the average amplitude value corresponding to indicator light A, and the brightness of indicator light A can be controlled based on amplitude 6; alternatively, the average amplitude value 9 among amplitude values 5, 14, and 8 can be determined as the average amplitude value corresponding to indicator light A, and the brightness of indicator light A can be controlled based on the average amplitude value 9. Similarly, the brightness of indicator light B can also be controlled in the same way as described above, which will not be elaborated here.
[0066] In some embodiments, the ambient light may also include an indicator light C disposed at one end of the light strip, wherein the indicator light C corresponds to at least one frequency range. In this case, controlling the ambient light according to each frequency and the amplitude corresponding to each frequency may include: determining the amplitude corresponding to the indicator light based on the frequency range corresponding to the indicator light, each frequency, and the amplitude corresponding to each frequency; obtaining the average value of the amplitude corresponding to the indicator light to obtain an average amplitude; and controlling the brightness of the indicator light based on the average amplitude.
[0067] For example, indicator light C can correspond to 10 frequency ranges, or indicator light C can correspond to 15 frequency ranges. This embodiment does not impose a specific limitation on the number of frequency ranges corresponding to indicator light C.
[0068] In this embodiment, Figure 4 This is a schematic diagram of another ambient light structure provided in an embodiment of the present invention, as shown below. Figure 4 As shown, indicator light C can be positioned to the left of the ambient light, and the following explanation uses five frequency ranges corresponding to indicator light C as an example. In practice, multiple frequencies corresponding to the audio signal within a preset time period prior to the current moment can be divided into groups of five frequencies in chronological order. For each group of frequencies, indicator light C can correspond to the frequency range of the five frequencies in that group. For each group of frequencies, the amplitude corresponding to the five frequencies in that group can be determined as the amplitude corresponding to indicator light C. For example, if the amplitudes corresponding to the five frequencies in the first group are 14, 10, 5, 14, and 3, then the amplitude corresponding to indicator light C can be 14, 10, 5, 14, and 3. The average value of the amplitudes 14, 10, 5, 14, and 3 corresponding to indicator light C is calculated to be 9.2, and this 9.2 is taken as the average amplitude corresponding to indicator light C. The brightness of indicator light C is then controlled based on the average amplitude corresponding to indicator light C.
[0069] In this embodiment, the brightness of a single-lamp ambient light can be adjusted to the rhythm of the music, creating a cooler musical atmosphere and thus improving the user experience.
[0070] In some embodiments, the average amplitude of any one amplitude value or the average of any number of amplitude values corresponding to indicator light C can be determined as the average amplitude value corresponding to indicator light C, and the brightness of indicator light C can be controlled based on the average amplitude value corresponding to indicator light C. For example, assuming the amplitude values corresponding to indicator light C are 14, 10, 5, 14 and 3, then the amplitude value 10 can be directly determined as the average amplitude value corresponding to indicator light C, and the brightness of indicator light C can be controlled based on the amplitude value 10; or, the average amplitude value 9 among amplitude values 14, 10 and 3 can be determined as the average amplitude value corresponding to indicator light C, and the brightness of indicator light C can be controlled based on the average amplitude value 9.
[0071] In some embodiments, the ambient light described above can also be a dynamic ambient light, which can have multiple regions, and these regions can correspond one-to-one with multiple frequency ranges. In this case, controlling the ambient light according to each frequency and the amplitude corresponding to each frequency can include: determining the region corresponding to each frequency; and controlling the brightness of the corresponding region according to the amplitude corresponding to each frequency.
[0072] For example, ambient lighting can be divided into 10 segments or 25 segments, with each segment corresponding to a frequency range. Figure 5 This is a schematic diagram of the structure of another ambient light provided in an embodiment of the present invention, as shown below. Figure 5 As shown, we can take an ambient light with 10 zones as an example for illustration. In practice, multiple frequencies corresponding to the audio signal within a preset time period before the current moment can be divided into groups of 10 frequencies in chronological order. The first frequency in each group corresponds to the first zone of the ambient light (from left to right), the second frequency corresponds to the second zone, and so on, up to the tenth frequency. The brightness of the corresponding zone is controlled based on the amplitude of each frequency. For example, the larger the amplitude of each frequency, the higher the brightness of the corresponding zone. Assuming the amplitudes of the 10 frequencies in the first group are 14, 10, 5, 10, 11, 8, 6, 11, 5, and 3, the brightness of the zones corresponding to these 10 frequencies can be set to 28, 20, 10, 20, 22, 16, 12, 22, 10, and 6, respectively. Since the amplitude of the first frequency in the first group is the largest and the amplitude of the last frequency is the smallest, the brightness of the zone corresponding to the first frequency is the highest, and the brightness of the zone corresponding to the last frequency is the lowest.
[0073] In this embodiment, the brightness of the dynamic ambient light can be adjusted to the rhythm of the music, creating a cooler musical atmosphere and thus improving the user experience.
[0074] In some embodiments, when the ambient light is a dynamic ambient light and the dynamic ambient light has multiple regions, and the multiple regions correspond one-to-one with multiple frequency ranges, the above-mentioned control of the ambient light based on each frequency and the amplitude corresponding to each frequency may further include: determining the region corresponding to each frequency; determining the color value of the corresponding region based on the amplitude corresponding to each frequency; and controlling the color of the corresponding region based on the color value.
[0075] In practice, multiple frequencies corresponding to the audio signal acquired within a preset time period prior to the current moment can be divided into groups of 10 frequencies in chronological order. The first frequency in each group corresponds to the first area of the ambient light (from left to right), the second frequency corresponds to the second area, and so on, up to the tenth frequency in each group, which corresponds to the tenth area. Based on the preset correspondence between amplitude and color value, and the amplitude corresponding to each frequency, the color value of the corresponding area is determined; and the color of the corresponding area is controlled according to the color value.
[0076] The following example illustrates the preset correspondence between amplitude and color value. The amplitude for each frequency range can be in the range of 0-15. A corresponding color value can be preset for each amplitude; for example, the color value corresponding to amplitude 0-15 is 0-15. Furthermore, the color corresponding to each color value can also be preset. For example, red, purple, and the transition color between them can be divided into 16 segments, and a specific color value can be extracted from each segment. Color value 0 can correspond to purple, color value 15 can correspond to red, and the colors corresponding to color values 1-14 can be the transition color between red and purple. In practice, the colors corresponding to color values 1-14 can also be other colors; this embodiment does not impose specific limitations.
[0077] For example, suppose the first frequency in the first group corresponds to the first area of the ambient light, and the amplitude of the first frequency in the first group is 15. According to the preset correspondence between amplitude and color value, the color value corresponding to amplitude 15 is 15. Therefore, the color value of the first area of the ambient light corresponding to the first frequency in the first group is 15. And according to the preset correspondence between color value and color, the color corresponding to color value 15 is red. So, the first area of the ambient light corresponding to the first frequency in the first group can be set to red.
[0078] In this embodiment, the color of the dynamic ambient light can be made to change with the rhythm of the music, creating a cooler musical atmosphere and thus improving the user experience.
[0079] In some embodiments, the above method may further include controlling the display screen according to each frequency and the amplitude corresponding to each frequency.
[0080] Specifically, the display effect can be controlled based on each frequency and its corresponding amplitude. The display effect can include aspects such as brightness, color, screen-on time, and display area. The display screen can be, for example, a central control screen.
[0081] In this embodiment, the display screen can be controlled according to each frequency and the amplitude corresponding to each frequency, realizing the linkage between the ambient light and the display screen, thereby creating a cooler musical atmosphere.
[0082] In some embodiments, the display screen may include multiple regions, which may correspond one-to-one with multiple frequency ranges, and each region may include at least one sub-region. In this case, controlling the display screen according to each frequency and the amplitude corresponding to each frequency may include: determining the region corresponding to each frequency; lighting up the sub-regions of the corresponding region according to the amplitude corresponding to each frequency, wherein the amplitude is positively correlated with the number of sub-regions lit up.
[0083] Specifically, such as Figure 6 As shown, Figure 6 This is a schematic diagram of the display effect of a display screen provided in an embodiment of the present invention. The display screen may include 10 regions, each of which corresponds to one of 10 frequency ranges, and each region may include 15 sub-regions.
[0084] Specifically, multiple frequencies corresponding to the audio signal within a preset time period before the current moment can be divided into groups of 10 frequencies in chronological order. The first frequency in each group corresponds to the first area of the display screen (from left to right), the second frequency in each group corresponds to the second area of the display screen, and so on, until the tenth frequency in each group corresponds to the tenth area of the display screen.
[0085] For example, suppose the amplitudes corresponding to the 10 frequencies in the first group are 1, 3, 4, 3, 1, 2, 2, 3, 2, and 1, then... Figure 6 As shown ( Figure 6 (The diagonal line in the text indicates that the sub-area is lit). Sub-areas 1, 3, 4, 3, 1, 2, 2, 3, 2 and 1 can be lit in the first to tenth areas of the display screen, respectively.
[0086] In this embodiment, the corresponding sub-regions can be lit up according to the amplitude of each frequency, realizing the linkage between the ambient light and the display screen, thereby creating a cooler musical atmosphere.
[0087] As a concrete example, Figure 7 This is a schematic diagram of the structure of a vehicle-mounted system provided in an embodiment of the present invention, such as... Figure 7 As shown, the in-vehicle system 70 may include a display screen 710, a main controller 720, a body controller 730, an ambient lighting controller 740, an ambient lighting 750, an amplifier 760, and a speaker 770. The following can be achieved by applying the above-described in-vehicle system 70: Figure 8 The music visualization method shown Figure 8 This is a flowchart illustrating a third embodiment of a music visualization method provided by the present invention, as shown below. Figure 8 As shown, the music visualization method provided in this embodiment may include the following steps:
[0088] S801: The main controller obtains the audio source file, gets each frequency and its corresponding amplitude from the audio source file, sends each frequency and its corresponding amplitude to the vehicle body controller, and synchronously drives the display screen to work in sync with the music based on each frequency and its corresponding amplitude.
[0089] Specifically, the main controller can determine the frequency range of each frequency in the audio source file and the amplitude corresponding to the frequency range, thereby obtaining the amplitude corresponding to each frequency.
[0090] Specifically, the main controller can send each frequency and the amplitude corresponding to each frequency to the body controller via the FlexRay bus (an in-vehicle network communication protocol).
[0091] Specifically, when the screen saver function is activated, the main controller can synchronously drive the display screen and music to work together based on each frequency and the amplitude corresponding to each frequency.
[0092] S802, the body controller sends each frequency and the amplitude corresponding to each frequency to the ambient lighting controller.
[0093] Specifically, the body controller can send each frequency and the amplitude corresponding to each frequency to the ambient lighting controller via the CAN (Controller Area Network) bus.
[0094] The S803 ambient light controller receives each frequency and the amplitude corresponding to each frequency, and controls the ambient light according to the rhythm rules of the music show.
[0095] Among them, the above-mentioned music show rhythm rules can be the corresponding ambient light control method when the ambient light includes indicator lights set at both ends of the light strip, the ambient light includes indicator lights set at one end of the light strip, or the ambient light is a dynamic ambient light.
[0096] In this embodiment, different frequency characteristics of in-vehicle music can be displayed by controlling dual headlights, single headlights, or dynamically controlling ambient lighting, resulting in a better visual presentation of in-vehicle music and creating a cooler musical atmosphere, thereby improving the user experience.
[0097] Figure 9 This is a schematic diagram of the structure of a music visualization device provided in an embodiment of the present invention, as shown below. Figure 9 As shown, the music visualization device 90 may include: an acquisition module 910, a determination module 920, and a control module 930.
[0098] The acquisition module 910 can be used to acquire at least one frequency corresponding to the audio signal within a preset time before the current moment; the determination module 920 can be used to determine the frequency range in which each frequency is located and determine the amplitude corresponding to the frequency range to obtain the amplitude corresponding to each frequency; wherein, there are multiple frequency ranges, and each frequency range has a corresponding amplitude; the control module 930 can be used to control the ambient light according to each frequency and the amplitude corresponding to each frequency.
[0099] The music visualization device provided in this invention acquires at least one frequency corresponding to an audio signal within a preset time period prior to the current moment through an acquisition module; determines the frequency range of each frequency and the amplitude corresponding to the frequency range through a determination module to obtain the amplitude corresponding to each frequency; wherein, there are multiple frequency ranges, and each frequency range has a corresponding amplitude; and a control module controls the ambient lights according to each frequency and its corresponding amplitude. Since the frequency range of audio signals is relatively large, and frequencies within the same frequency range share some common frequency characteristics, while frequencies in different frequency ranges have different frequency characteristics, the listening experience of music with different frequency characteristics will also be different. Therefore, by converting different frequencies into corresponding frequency ranges and obtaining the amplitude corresponding to each frequency based on the amplitude corresponding to the frequency range, the amplitude corresponding to each frequency can effectively reflect the frequency characteristics of different frequency ranges. Simultaneously, controlling the ambient lights according to each frequency and its corresponding amplitude enables the linkage between the ambient lights and music, and can effectively display the different frequency characteristics of in-vehicle music by controlling the ambient lights, resulting in a better visual presentation of in-vehicle music, creating a more cool musical atmosphere, and thus improving the user experience.
[0100] According to one embodiment of the present invention, the ambient light may include indicator lights disposed at both ends of the light strip. Each indicator light may correspond to at least one frequency range. The control module 930 may be specifically used to determine the amplitude corresponding to each indicator light based on the frequency range corresponding to each indicator light, each frequency, and the amplitude corresponding to each frequency; obtain the average value of the amplitude corresponding to each indicator light to obtain the average amplitude; and control the brightness of the corresponding indicator light based on the average amplitude.
[0101] According to one embodiment of the present invention, the ambient light may include an indicator light disposed at one end of a light strip. The indicator light may correspond to at least one frequency range. The control module 930 may be specifically used to determine the amplitude corresponding to the indicator light based on the frequency range corresponding to the indicator light, each frequency and the amplitude corresponding to each frequency; obtain the average value of the amplitude corresponding to the indicator light to obtain the average amplitude; and control the brightness of the indicator light based on the average amplitude.
[0102] According to one embodiment of the present invention, the ambient light can be a dynamic ambient light, which can have multiple areas, each area corresponding to a frequency range. The control module 930 can be specifically used to determine the area corresponding to each frequency and control the brightness of the corresponding area according to the amplitude corresponding to each frequency.
[0103] According to one embodiment of the present invention, each region corresponds to at least one color value. The control module 930 can also be used to determine the region corresponding to each frequency; determine the color value of the corresponding region according to the amplitude corresponding to each frequency; and control the color of the corresponding region according to the color value.
[0104] According to one embodiment of the present invention, the control module 930 can also be used to control the display screen according to each frequency and the amplitude corresponding to each frequency.
[0105] According to one embodiment of the present invention, the display screen may include multiple regions, each region corresponding to a multiple frequency range, and each region includes at least one sub-region. The control module 930 may be specifically used to determine the region corresponding to each frequency; and to light up the sub-regions of the corresponding region according to the amplitude corresponding to each frequency, wherein the amplitude is positively correlated with the number of sub-regions lit.
[0106] In addition, corresponding to the music visualization method provided in the above embodiments, this invention also provides a vehicle, such as... Figure 10 As shown, the vehicle 100 may include: a memory 1010, a processor 1020, and a program stored in the memory 1010 and executable on the processor 1020. When the processor 1020 executes the program, it implements all the steps of the music visualization method provided in this embodiment of the invention.
[0107] In the aforementioned vehicles, because the frequency range of audio signals is relatively large, and frequencies within the same frequency range share some common frequency characteristics, while frequencies in different frequency ranges have different characteristics, the listening experience of music with different frequency characteristics will also differ. Therefore, by converting different frequencies into their corresponding frequency ranges and obtaining the amplitude value corresponding to each frequency based on the amplitude value of the corresponding frequency range, the amplitude value corresponding to each frequency can effectively reflect the frequency characteristics of different frequency ranges. Simultaneously, by controlling the ambient lighting based on each frequency and its corresponding amplitude, the ambient lighting and music can be linked, and the different frequency characteristics of the in-car music can be effectively displayed by controlling the ambient lighting. This results in a better visual presentation of the in-car music, creating a more immersive and cool musical atmosphere, thereby improving the user experience.
[0108] In addition, corresponding to the music visualization method provided in the above embodiments, this embodiment of the invention also provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements all the steps of the music visualization method of this embodiment of the invention.
[0109] In the aforementioned computer-readable storage medium, because the frequency range of audio signals is relatively large, and frequencies within the same frequency range share some common frequency characteristics, while frequencies in different frequency ranges have different frequency characteristics, the auditory experience of music with different frequency characteristics will also differ. Therefore, by converting different frequencies into their corresponding frequency ranges and obtaining the amplitude value corresponding to each frequency based on the amplitude value corresponding to the frequency range, the amplitude value corresponding to each frequency can effectively reflect the frequency characteristics of different frequency ranges. Simultaneously, by controlling the ambient lighting based on each frequency and its corresponding amplitude, the ambient lighting and music can be linked, and the different frequency characteristics of in-car music can be effectively displayed by controlling the ambient lighting, resulting in a better visual presentation of in-car music, creating a more immersive and cool musical atmosphere, thereby improving the user experience.
[0110] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0111] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0112] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0113] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0114] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0115] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A music visualization method, characterized in that, The method includes: Obtain at least one frequency corresponding to the audio signal within a preset time period prior to the current moment; The frequency range of each frequency is determined, and the amplitude corresponding to the frequency range is determined by querying a preset frequency range-amplitude mapping table, so as to obtain the amplitude corresponding to each frequency; wherein, there are multiple frequency ranges, and each frequency range has a corresponding amplitude. The ambient light is controlled based on each frequency and the amplitude corresponding to each frequency; The ambient light is a dynamic ambient light, which has multiple areas, each corresponding to a frequency range. Controlling the ambient light based on each frequency and its corresponding amplitude includes: Determine the region corresponding to each frequency; The brightness of the corresponding area is controlled according to the amplitude corresponding to each frequency; The ambient light includes indicator lights disposed at both ends of a light strip, each indicator light corresponding to at least one frequency range. Controlling the ambient light based on each frequency and the amplitude corresponding to each frequency includes: The amplitude corresponding to each indicator light is determined based on the frequency range corresponding to each indicator light, each frequency, and the amplitude corresponding to each frequency. The average amplitude is obtained by averaging the amplitude values corresponding to each indicator light. The brightness of the corresponding indicator light is controlled based on the average amplitude.
2. The method according to claim 1, characterized in that, Each region corresponds to at least one color value, and the control of the ambient light based on each frequency and the amplitude corresponding to each frequency further includes: Determine the region corresponding to each frequency; The color value of the corresponding region is determined based on the amplitude corresponding to each frequency; The color of the corresponding area is controlled according to the color value.
3. The method according to any one of claims 1-2, characterized in that, The method further includes: The display screen is controlled based on each frequency and the amplitude corresponding to each frequency.
4. The method according to claim 3, characterized in that, The display screen includes multiple areas, each corresponding to a frequency range, and each area includes at least one sub-area. Controlling the display screen based on each frequency and its corresponding amplitude includes: Determine the region corresponding to each frequency; The corresponding sub-regions are lit up according to the amplitude corresponding to each frequency, wherein the amplitude is positively correlated with the number of sub-regions lit up.
5. A computer-readable storage medium, characterized in that, It stores a program that, when executed by a processor, implements the music visualization method according to any one of claims 1-4.
6. A vehicle, characterized in that, include: A memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the music visualization method according to any one of claims 1-4.
7. A music visualization device, characterized in that, The device includes: The acquisition module is used to acquire at least one frequency corresponding to the audio signal within a preset time period before the current time. The determination module is used to determine the frequency range in which each frequency is located, and to query a preset frequency range-amplitude mapping table to determine the amplitude corresponding to the frequency range, so as to obtain the amplitude corresponding to each frequency; wherein, there are multiple frequency ranges, and each frequency range has a corresponding amplitude; The control module is used to control the ambient light according to each frequency and the amplitude corresponding to each frequency; The ambient light is a dynamic ambient light, which has multiple areas, each corresponding to a frequency range. The control module is further configured to: determine the area corresponding to each frequency; and control the brightness of the corresponding area according to the amplitude corresponding to each frequency. The ambient light includes indicator lights at both ends of the light strip, each indicator light corresponding to at least one frequency range. The control module is specifically used to: determine the amplitude corresponding to each indicator light based on the frequency range corresponding to each indicator light, each frequency, and the amplitude corresponding to each frequency; obtain the average amplitude of the amplitude corresponding to each indicator light; and control the brightness of the corresponding indicator light based on the average amplitude.