Atmosphere lamp display mode generation method and device, electronic equipment and computer storage medium

By collecting and integrating music clips, the ambient light's breathing frequency and brightness are automatically adjusted, solving the problem of needing to manually adjust brightness and breathing frequency in existing technologies, and realizing the generation of intelligent ambient light display modes.

CN119348541BActive Publication Date: 2026-05-12Z-ONE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Z-ONE TECH CO LTD
Filing Date
2024-12-02
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

In existing technologies, ambient lighting display modes require users to manually adjust the brightness and breathing frequency, lacking flexibility and intelligence.

Method used

By collecting multiple music clips and integrating them into a target music, the ambient light's breathing frequency and brightness are automatically adjusted according to the pitch and duration of the notes, generating an intelligent display mode.

Benefits of technology

It enables intelligent generation of ambient lighting display modes, improving flexibility and avoiding the hassle of manual adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119348541B_ABST
    Figure CN119348541B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide an atmosphere lamp display mode generation method and device, electronic equipment and computer storage medium. The method comprises: collecting a plurality of music clips; integrating the plurality of music clips into target music; determining the number of first notes in the target music according to the pitch of each note in the target music; determining the breathing frequency of the atmosphere lamp according to the number of first notes; determining the brightness of the atmosphere lamp according to the correspondence between the pitch of the notes and the brightness of the atmosphere lamp; and determining the duration of the brightness of the atmosphere lamp according to the correspondence between the duration of the notes and the duration of the brightness of the atmosphere lamp; and generating the atmosphere lamp display mode according to the breathing frequency, the brightness and the duration. Embodiments of the present application can intelligently generate the display mode of the atmosphere lamp according to a plurality of music clips, improving the flexibility of the generation of the atmosphere lamp display mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and computer storage medium for generating ambient light display modes. Background Technology

[0002] With the development of in-vehicle technology, more and more cars are equipped with ambient lighting to enhance their technological feel and make driving at night more convenient.

[0003] However, most of the ambient lighting display modes are preset by the vehicle. When it is necessary to adjust the ambient lighting display mode, the user needs to manually adjust the brightness, intensity, and breathing frequency of the ambient lighting to generate a custom ambient lighting display mode. Summary of the Invention

[0004] In view of the above, embodiments of this application provide an ambient light display mode generation method, apparatus, electronic device, and computer storage medium to at least partially solve the above problems.

[0005] According to a first aspect of the embodiments of this application, an ambient light display mode generation method is provided, the method comprising:

[0006] Collect multiple music clips;

[0007] Integrate the multiple music fragments into the target music;

[0008] Based on the pitch of each note in the target music, determine the number of first notes in the target music, wherein the pitch of the first notes is less than a first pitch threshold;

[0009] The breathing frequency of the ambient light is determined based on the number of the first musical notes;

[0010] The brightness of the ambient light is determined based on the correspondence between the pitch of the musical note and the brightness of the ambient light; and the duration of the ambient light brightness is determined based on the correspondence between the duration of the musical note and the duration of the ambient light brightness.

[0011] The ambient light display mode is generated based on the breathing frequency, the brightness, and the duration.

[0012] In some embodiments, the acquisition of multiple music segments includes:

[0013] Get the current time;

[0014] Based on the current time, determine whether there exists a first preset time range corresponding to the current time among multiple preset time ranges;

[0015] If they exist, then collect the multiple music fragments.

[0016] In some embodiments, the step of acquiring the plurality of music fragments if they exist includes:

[0017] Based on the correspondence between the first preset time range and music style tags, at least one of the music style tags is determined;

[0018] Collect at least one of the multiple music segments corresponding to the music style tag.

[0019] In some embodiments, integrating the plurality of music fragments into the target music includes:

[0020] Determine the musical style tags for the multiple musical segments;

[0021] Generate a first piece of music that has the same music style tag as the plurality of music fragments;

[0022] The first piece of music is identified as the target music, and the multiple music fragments are integrated into the target music.

[0023] Determining the brightness of the ambient light based on the correspondence between the pitch of a musical note and the brightness of the ambient light includes:

[0024] Based on the pitch of the note, determine the first pitch range corresponding to the note from multiple pitch ranges;

[0025] The brightness of the ambient light is determined based on the correspondence between the first pitch range and the brightness of the ambient light.

[0026] In some embodiments, the method further includes:

[0027] Collect users' facial expression data;

[0028] Determine the user's mood based on the facial expression data;

[0029] The duration is adjusted based on the correspondence between the user's mood and the first adjustment coefficient to determine the first duration;

[0030] The step of generating the ambient light display mode based on the breathing frequency, the brightness, and the duration includes:

[0031] The ambient light display mode is generated based on the breathing frequency, the brightness, and the first duration.

[0032] In some embodiments, the method further includes:

[0033] Get the current weather data;

[0034] Determine the weather based on the aforementioned weather data;

[0035] The duration is adjusted based on the correspondence between the weather and the second adjustment coefficient to determine the second duration;

[0036] The step of generating the ambient light display mode based on the breathing frequency, the brightness, and the duration includes:

[0037] The ambient light display mode is generated based on the breathing frequency, the brightness, and the second duration.

[0038] According to a second aspect of the present application, an ambient light display mode generating apparatus is provided, the apparatus comprising:

[0039] The acquisition module is used to acquire multiple music clips;

[0040] The integration module is used to integrate the multiple music fragments into a target music.

[0041] The first determining module is used to determine the number of first notes in the target music based on the pitch of each note in the target music, wherein the pitch of the first note is less than a first pitch threshold.

[0042] The second determining module is used to determine the breathing frequency of the ambient light based on the number of the first musical notes;

[0043] The third determining module is used to determine the brightness of the ambient light based on the correspondence between the pitch of the note and the brightness of the ambient light; and to determine the duration of the ambient light brightness based on the correspondence between the duration of the note and the duration of the ambient light brightness.

[0044] The generation module is used to generate the ambient light display mode based on the breathing frequency, the brightness, and the duration.

[0045] According to a third aspect of the present application, an electronic device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, wherein the executable instruction causes the processor to perform an operation corresponding to the ambient light display mode generation method described in the first aspect.

[0046] According to a fourth aspect of the embodiments of this application, a computer storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the ambient light display mode generation method as described in the first aspect.

[0047] According to the ambient light display mode generation method of this application embodiment, multiple music fragments are first collected, then the multiple music fragments are further integrated into a target music, and then the breathing frequency of the ambient light is determined by the number of first notes of the target music, and the brightness and duration of the ambient light brightness are determined by the pitch and duration of the notes, so as to generate an ambient light display mode using the breathing frequency, brightness, and duration. This application embodiment can intelligently generate an ambient light display mode based on multiple music fragments, improving the flexibility of ambient light display mode generation and avoiding the problem of manually adjusting the brightness, brightness, and breathing frequency of the ambient light in the prior art. Attached Figure Description

[0048] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings.

[0049] Figure 1 This is a flowchart illustrating the steps of an ambient light display mode generation method according to an embodiment of this application.

[0050] Figure 2 This is a flowchart illustrating the steps of a method for generating an ambient light display mode according to another embodiment of this application;

[0051] Figure 3 This is a structural block diagram of an ambient light display mode generation device according to an embodiment of this application;

[0052] Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0053] To enable those skilled in the art to better understand the technical solutions in the embodiments of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art should fall within the protection scope of the embodiments of this application.

[0054] The specific implementation of the embodiments of this application will be further described below with reference to the accompanying drawings.

[0055] This application provides a method for generating an ambient lighting display mode, applicable to mobile devices equipped with ambient lighting, such as vehicles. This application uses a vehicle as an example to illustrate the method for generating the ambient lighting display mode. The specific steps of this method are as follows: Figure 1 As shown, it includes:

[0056] S101, captures multiple music clips.

[0057] In this embodiment, the electronic control unit (ECU) collects multiple music clips. Specifically, when collecting multiple music clips, the ECU can collect multiple music clips from music recently played by the user (driver), or it can collect multiple music clips from the music platform's charts.

[0058] In one example, the acquisition duration of a music segment can be 30 seconds. The acquisition duration of each music segment can be the same or different. Those skilled in the art can set the acquisition duration of the music segment according to actual needs, or determine the total acquisition duration according to actual needs.

[0059] S102 integrates multiple music clips into the target music.

[0060] In this embodiment of the application, after the electronic control unit collects multiple music segments, it integrates the multiple music segments into a single piece of music to obtain the target music.

[0061] In one example, if multiple music segments include music segment A, music segment B, and music segment C, the electronic control unit integrates music segment A, music segment B, and music segment C into a target music, which includes music segment A, music segment B, and music segment C.

[0062] S103, determine the number of first notes in the target music based on the pitch of each note in the target music.

[0063] In this embodiment, after obtaining the target music, the electronic control unit determines the pitch of each note in the target music and compares the pitches of the notes in the target music with a first pitch threshold to determine the number of first notes in the target music. Specifically, the pitch of the first note is less than the first pitch threshold.

[0064] In one example, the musical notes in this embodiment can be represented according to the frequency of the musical notes, and the first pitch threshold can also be represented according to the frequency of the musical notes. For example, the first pitch threshold can be represented as 262Hz.

[0065] S104, determine the breathing frequency of the ambient light based on the number of first notes.

[0066] In this embodiment, after obtaining the number of first notes in the target music, the electronic control unit sets the breathing frequency in the ambient light display mode to the number of first notes to determine the breathing frequency of the ambient light in the ambient light display mode.

[0067] S105, determine the brightness of the ambient light based on the correspondence between the pitch of the note and the brightness of the ambient light; and determine the duration of the ambient light brightness based on the correspondence between the duration of the note and the duration of the ambient light brightness.

[0068] In this embodiment of the application, after determining the number of first notes, the electronic control unit obtains the pitch of the notes in the target music, and then uses the correspondence between the pitch of the notes and the brightness of the ambient light to determine the brightness of the ambient light. Furthermore, the electronic control unit obtains the duration of the notes in the target music and determines the duration of the ambient light brightness based on the duration of the notes.

[0069] In one example, the pitch of a note can also be represented using frequency.

[0070] S106 generates an ambient light display pattern based on breathing frequency, brightness, and duration.

[0071] In this embodiment, after obtaining the breathing frequency, brightness, and duration of the ambient light, the electronic control unit generates an ambient light display mode based on the breathing frequency, brightness, and duration.

[0072] The ambient light display mode generation method of this application embodiment first collects multiple music clips, further integrates these clips into a target music, and then determines the breathing frequency of the ambient light based on the number of first notes in the target music. The brightness and duration of the ambient light brightness are then determined based on the pitch and duration of the notes. Using the breathing frequency, brightness, and duration, an ambient light display mode is generated. This application embodiment can intelligently generate ambient light display modes based on multiple music clips, improving the flexibility of ambient light display mode generation and avoiding the problem of manually adjusting the brightness, brightness, and breathing frequency of the ambient light in existing technologies.

[0073] Furthermore, the acquisition of multiple music clips in this application embodiment may include the following steps:

[0074] S1011, Get the current time.

[0075] In this embodiment of the application, the electronic control unit first obtains the current time before collecting multiple music clips.

[0076] S1012, Based on the current time, determine whether there exists a first preset time range corresponding to the current time among multiple preset time ranges.

[0077] In this embodiment of the application, after obtaining the current time, the electronic control unit compares the current time with multiple preset time ranges and determines whether there is a first preset time range corresponding to the current time among the multiple preset time ranges.

[0078] In one example, multiple preset time ranges in this application embodiment are used to represent special days such as holidays, birthdays, or anniversaries. The user (driver) can preset dates such as birthdays and anniversaries. The electronic control unit (ECU) can obtain the dates of holidays from the network. After obtaining the dates of the aforementioned special days, the ECU stores these dates and obtains multiple preset time ranges. Furthermore, the ECU can compare the obtained current date with the multiple preset time ranges to determine whether a first preset time range corresponding to the current time exists among the multiple preset time ranges.

[0079] S1013, if it exists, then collect multiple music clips.

[0080] In this embodiment, if the electronic control unit determines that a first preset time range exists, it executes the step of acquiring multiple music segments. That is, the electronic control unit only executes the step of acquiring multiple music segments when it determines that the current time belongs to a special day.

[0081] In one example, when the electronic control unit acquires multiple music clips, it determines a first preset time range and, based on the correspondence between the first preset time range and music style tags, determines at least one music style tag. Specifically, when the first preset time range is a birthday, at least one music style tag can be determined based on the correspondence between the birthday and the music style tag. For example, when the first preset time range is a birthday, the determined music style tag could be upbeat, sweet, pop, etc.

[0082] Furthermore, after the electronic control unit determines at least one music style tag, it collects multiple music segments, wherein each music segment includes at least one of all music style tags. Specifically, when the music style tag is upbeat, sweet, or pop, the music style tag corresponding to the music segment can include upbeat, sweet, or pop, or it can include upbeat, sweet, or upbeat and pop, or sweet and pop, or it can include upbeat, sweet, and pop.

[0083] This application embodiment, by determining the current time, can accurately determine whether there is a first preset time range corresponding to the current time among multiple preset time ranges. If the first preset time range exists, multiple music segments are collected, and an ambient light display mode corresponding to the current time can be generated, further improving the flexibility of generating ambient light display modes.

[0084] Furthermore, integrating multiple music fragments into a target music in this application embodiment may include the following steps:

[0085] S1021, determine the music style tags for multiple music segments.

[0086] In this embodiment, after acquiring multiple music segments, the electronic control unit determines the music style tags for each segment. Specifically, the music style tags for the multiple music segments may include cheerful, sweet, sad, rock, pop, etc.

[0087] S1022, Generate the first music with the same music style tag as multiple music fragments.

[0088] In this embodiment of the application, after determining the music style tags of multiple music segments, the electronic control unit generates a first piece of music that is identical to the music style tag.

[0089] Specifically, the electronic control unit can use a pre-trained generator to generate the first piece of music, ensuring that the music style label of the first piece of music is the same as the music style labels of multiple music segments.

[0090] In one embodiment, the generator can be trained using a discriminator. The discriminator can accurately distinguish whether the first music output by the generator is sample data or output data, thereby determining whether the generator's output data meets the actual requirements. Once the error between the generator's output data and the sample data is less than a preset value, the generator training is determined to be complete.

[0091] S1023, the first music is set as the target music.

[0092] In this embodiment of the application, after generating the first music, the electronic control unit determines the first music as the target music, and then completes the integration of multiple music segments.

[0093] This application embodiment determines the music style tags of multiple music segments, generates a first piece of music with the same music style tags, and identifies the first piece of music as the target music. Thus, the target music can be used to generate an ambient light display mode corresponding to the current time, further improving the flexibility of generating ambient light display modes.

[0094] Furthermore, determining the brightness of the ambient light based on the correspondence between the pitch of a musical note and the brightness of the ambient light in this embodiment may include the following steps:

[0095] S1051, based on the pitch of the note, determines the first pitch range corresponding to the note among multiple pitch ranges.

[0096] In this embodiment, the electronic control unit determines a first pitch range corresponding to the note from multiple pitch ranges based on the pitch of the note. Specifically, the pitch of the note can be represented by its frequency.

[0097] S1052, determine the brightness of the ambient light based on the correspondence between the first pitch range and the brightness of the ambient light.

[0098] In this embodiment, after the electronic control unit determines the first pitch range corresponding to the note, it determines the brightness of the ambient light based on the correspondence between the first pitch range and the ambient light brightness. Specifically, the correspondence between the pitch range and the ambient light brightness can be shown in Table 1:

[0099] Table 1

[0100] pitch frequency brightness pitch frequency brightness pitch frequency brightness Bass 1 82-262 0-22 Alto 1 495-523 99 High 1 989-1036 177 Bass 2 263-296 33 Alto 2 534-589 110 High 2 1027-1175 188 Bass 3 297-330 44 Alto 3 590-661 122 High 3 1176-1298 199 Bass 4 331-362 55 Middle 4 662-739 133 High 4 1299-1367 211 Bass 5 363-394 66 Alto 5 740-799 144 High 5 1368-1530 222 Bass 6 395-439 77 Alto 6 800-860 155 High 6 1531-1760 233 Bass 7 440-494 88 Alto 7 861-988 166 High 7 1761-1976 244-255

[0101] The brightness of the first note is 30% of the normal brightness.

[0102] The embodiments of this application can accurately determine the brightness of the ambient light by using the musical note, thereby accurately generating the display mode of the ambient light based on the brightness of the ambient light, and thus generating an ambient light display mode corresponding to the current time, further improving the flexibility of generating the ambient light display mode.

[0103] Furthermore, the ambient light display mode generation method in this application embodiment may further include the following steps:

[0104] S107, collects the user's facial expression data.

[0105] In this embodiment of the application, the electronic control unit can also collect the user's facial expression data. Specifically, the electronic control unit can collect the user's (driver's) facial expression data through a camera.

[0106] S108 determines the user's mood based on facial expression data.

[0107] In this embodiment, the electronic control unit can obtain the driver's facial features, such as the corners of the mouth and eyebrows, based on a pre-stored image recognition algorithm, and match them with facial expression features corresponding to typical moods to determine the user's (driver's) mood.

[0108] S109, Adjust the duration according to the correspondence between the user's mood and the first adjustment coefficient to determine the first duration.

[0109] In this embodiment, after determining the user's mood, the electronic control unit determines the first adjustment coefficient based on the correspondence between the user's mood and the first adjustment coefficient. The duration of the ambient light brightness is then adjusted using the first adjustment coefficient to obtain a first duration. Specifically, the first adjustment coefficient can be 3%. When the user's mood is determined to be sad, the duration can be increased by 3%, and when the user's mood is determined to be sad, the duration can be decreased by 3%.

[0110] Furthermore, the electronic control unit can generate an ambient light display pattern based on the breathing rate, brightness, and initial duration.

[0111] This application embodiment determines the user's mood and can adaptively adjust the ambient light display mode, thereby generating an ambient light display mode that better matches the user's mood and further providing flexibility in the ambient light display mode.

[0112] Furthermore, the ambient light display mode generation method in this application embodiment may further include the following steps:

[0113] S110, retrieve the current weather data.

[0114] In this embodiment, the electronic control unit can also acquire current weather data. Specifically, the electronic control unit can directly acquire current weather data from the network, or it can acquire current weather data by taking pictures of the external environment of the vehicle and determining the illumination data.

[0115] S111, determine the weather based on weather data.

[0116] In this embodiment, the electronic control unit determines the current weather based on the acquired weather data.

[0117] S112, adjust the duration according to the correspondence between the weather and the second adjustment coefficient to determine the second duration.

[0118] In this embodiment, after determining the weather, the electronic control unit determines a second adjustment coefficient based on the correspondence between the weather and the second adjustment coefficient. This second adjustment coefficient is then used to adjust the duration of the ambient light brightness to obtain a second duration. Specifically, the second adjustment coefficient can be 3%. When the weather is determined to be cloudy, the duration can be increased by 3%, and when the weather is determined to be sunny, the duration can be decreased by 3%.

[0119] Furthermore, the electronic control unit can generate ambient light display patterns based on breathing frequency, brightness, and second duration.

[0120] This application embodiment determines the weather and can adaptively adjust the ambient lighting display mode, thereby generating an ambient lighting display mode that better matches the user's mood and further provides flexibility in the ambient lighting display mode.

[0121] Furthermore, the embodiments of this application can adjust the duration based on both the user's mood and the weather, or adjust the duration based on mood alone, or adjust the duration based on weather alone.

[0122] Furthermore, this application embodiment provides another method for generating ambient light display modes, the specific steps of which are as follows: Figure 2 As shown, it includes:

[0123] Obtain the current time and compare it with multiple preset time ranges. Determine whether there is a first preset time range that corresponds to the current time among the multiple preset time ranges. If there is, determine the first preset time range. Based on the correspondence between the first preset time range and music style tags, determine at least one music style tag. Based on at least one music style tag, collect multiple music segments.

[0124] After collecting multiple music fragments, music style tags for each fragment are determined, and a first piece of music with the same music style tags as the fragments is generated and designated as the target music. Further, the pitch of each note in the target music is determined, and the pitches are compared with a first pitch threshold to determine the number of first notes in the target music. The breathing frequency in the ambient light display mode is then set to the number of first notes. Based on the pitch of the notes, a first pitch range corresponding to each note is determined from multiple pitch ranges. The brightness of the ambient light is determined based on the correspondence between the first pitch range and the ambient light brightness. Finally, the duration of the ambient light brightness is determined based on the duration of the notes in the target music.

[0125] Furthermore, facial expression data of the user is collected to determine the user's mood. Based on the correspondence between the user's mood and a first adjustment coefficient, a first adjustment coefficient is determined. The duration of the ambient light brightness is adjusted using the first adjustment coefficient to obtain a first duration. The current weather is determined based on the acquired weather data. Based on the correspondence between the weather and a second adjustment coefficient, a second adjustment coefficient is determined. The first duration is adjusted using the second adjustment coefficient to obtain a second duration. Furthermore, an ambient light display mode is generated based on the breathing frequency, brightness, and second duration.

[0126] Furthermore, embodiments of this application provide an ambient light display mode generation device, the specific device being as follows: Figure 3 As shown, the device includes:

[0127] Acquisition module 301 is used to acquire multiple music clips;

[0128] Integration module 302 is used to integrate multiple music clips into a target music;

[0129] The first determining module 303 is used to determine the number of first notes in the target music based on the pitch of each note in the target music, wherein the pitch of the first note is less than a first pitch threshold.

[0130] The second determining module 304 is used to determine the breathing frequency of the ambient light based on the number of the first notes;

[0131] The third determining module 305 is used to determine the brightness of the ambient light based on the correspondence between the pitch of the note and the brightness of the ambient light; and to determine the duration of the ambient light brightness based on the correspondence between the duration of the note and the duration of the ambient light brightness.

[0132] The generation module 306 is used to generate an ambient light display pattern based on breathing frequency, brightness, and duration.

[0133] The ambient light display mode generation device of this embodiment is used to implement the corresponding ambient light display mode generation methods in the foregoing method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. Furthermore, the functional implementation of each module in the deadlock handling device of this embodiment can be referred to the description of the corresponding parts in the foregoing method embodiments, which will also not be repeated here.

[0134] Reference Figure 4 This document illustrates a schematic diagram of an electronic device according to an embodiment of this application. The specific embodiments of this application do not limit the specific implementation of the electronic device.

[0135] like Figure 4 As shown, the electronic device may include: a processor 402, a communication interface 404, a memory 406, and a communication bus 408.

[0136] in:

[0137] The processor 402, communication interface 404, and memory 406 communicate with each other via communication bus 408.

[0138] Communication interface 404 is used to communicate with other electronic devices or servers.

[0139] The processor 402 is used to execute program 410, specifically to execute the relevant steps in the above-described embodiment of the ambient light display mode generation method.

[0140] Specifically, program 410 may include program code that includes computer operation instructions.

[0141] Processor 402 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or they may be processors of different types, such as one or more CPUs and one or more ASICs.

[0142] Memory 406 is used to store program 410. Memory 406 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0143] Specifically, program 410 can be used to cause processor 402 to perform the following operations:

[0144] In an optional implementation, program 410 is further configured to ensure that the processor 402 performs each step in program 410. The specific implementation of each step in program 410 can be found in the corresponding steps and units described in the above-described embodiments of the ambient light display mode generation method, and will not be repeated here. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the devices and modules described above can be referred to the corresponding process descriptions in the foregoing method embodiments, and will not be repeated here.

[0145] This application also provides a computer program product, including computer instructions that instruct a computing device to perform an operation corresponding to any of the ambient light display mode generation methods in the above-described multiple method embodiments.

[0146] It should be noted that, depending on the implementation needs, the various components / steps described in the embodiments of this application can be broken down into more components / steps, or two or more components / steps or parts of the operation of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of this application.

[0147] The methods described in the embodiments of this application can be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or as computer code originally stored on a remote recording medium or a non-transitory machine-readable medium and subsequently stored on a local recording medium, downloaded via a network. Thus, the methods described herein can be stored as software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an ASIC or FPGA). It is understood that the computer, processor, microprocessor controller, or programmable hardware includes storage components (e.g., RAM, ROM, flash memory, etc.) capable of storing or receiving software or computer code that, when accessed and executed by the computer, processor, or hardware, implements the ambient lighting display pattern generation method described herein. Furthermore, when a general-purpose computer accesses code used to implement the ambient lighting display pattern generation method shown herein, the execution of the code transforms the general-purpose computer into a dedicated computer for executing the ambient lighting display pattern generation method shown herein.

[0148] Those skilled in the art will recognize that the units and method steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application.

[0149] The above embodiments are only used to illustrate the embodiments of this application, and are not intended to limit the embodiments of this application. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of this application. Therefore, all equivalent technical solutions also fall within the scope of the embodiments of this application, and the patent protection scope of the embodiments of this application should be defined by the claims.

Claims

1. A method for generating an ambient light display mode, characterized in that, The method includes: Collect multiple music clips; Determine the music style tags of the multiple music segments; generate a first piece of music with the same music style tags as the multiple music segments; determine the first piece of music as the target music, so as to integrate the multiple music segments into the target music; Based on the pitch of each note in the target music, determine the number of first notes in the target music, wherein the pitch of the first notes is less than a first pitch threshold; The breathing frequency of the ambient light is determined based on the number of the first musical notes; Based on the pitch of the note, a first pitch range corresponding to the note is determined from multiple pitch ranges; based on the correspondence between the first pitch range and the ambient light brightness, the brightness of the ambient light is determined; and based on the correspondence between the duration of the note and the duration of the ambient light brightness, the duration of the ambient light brightness is determined. The ambient light display mode is generated based on the breathing frequency, the brightness, and the duration.

2. The method according to claim 1, characterized in that, The collection of multiple music clips includes: Get the current time; Based on the current time, determine whether there exists a first preset time range corresponding to the current time among multiple preset time ranges; If they exist, then collect the multiple music fragments.

3. The method according to claim 2, wherein the step of collecting the plurality of music fragments if they exist includes: Based on the correspondence between the first preset time range and music style tags, at least one of the music style tags is determined; Collect at least one of the multiple music segments corresponding to the music style tag.

4. The method according to any one of claims 1-3, characterized in that, The method further includes: Collect users' facial expression data; Determine the user's mood based on the facial expression data; The duration is adjusted based on the correspondence between the user's mood and the first adjustment coefficient to determine the first duration; The step of generating the ambient light display mode based on the breathing frequency, the brightness, and the duration includes: The ambient light display mode is generated based on the breathing frequency, the brightness, and the first duration.

5. The method according to any one of claims 1-3, characterized in that, The method further includes: Get the current weather data; Determine the weather based on the aforementioned weather data; The duration is adjusted based on the correspondence between the weather and the second adjustment coefficient to determine the second duration; The step of generating the ambient light display mode based on the breathing frequency, the brightness, and the duration includes: The ambient light display mode is generated based on the breathing frequency, the brightness, and the second duration.

6. An ambient light display mode generating device, characterized in that, The device includes: The acquisition module is used to acquire multiple music clips; An integration module is used to determine the music style tags of the multiple music segments; generate a first piece of music with the same music style tags as the multiple music segments; and determine the first piece of music as the target music to integrate the multiple music segments into the target music. The first determining module is used to determine the number of first notes in the target music based on the pitch of each note in the target music, wherein the pitch of the first note is less than a first pitch threshold. The second determining module is used to determine the breathing frequency of the ambient light based on the number of the first musical notes; The third determining module is used to determine a first pitch range corresponding to the note from multiple pitch ranges based on the pitch of the note; to determine the brightness of the ambient light based on the correspondence between the first pitch range and the brightness of the ambient light; and to determine the duration of the brightness of the ambient light based on the correspondence between the duration of the note and the duration of the ambient light brightness. The generation module is used to generate the ambient light display mode based on the breathing frequency, the brightness, and the duration.

7. An electronic device, comprising: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the ambient light display mode generation method as described in any one of claims 1-5.

8. A computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the ambient light display mode generation method as described in any one of claims 1-5.