Search

CN-119348541-B - Atmosphere lamp display mode generation method and device, electronic equipment and computer storage medium

CN119348541BCN 119348541 BCN119348541 BCN 119348541BCN-119348541-B

Abstract

The embodiment of the application provides an atmosphere lamp display mode generation method, an atmosphere lamp display mode generation device, electronic equipment and a computer storage medium. The method comprises the steps of collecting a plurality of music pieces, integrating the music pieces 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 an atmosphere lamp according to the number of the first notes, determining the brightness of the atmosphere lamp according to the corresponding relation between the pitch of a note and the brightness of the atmosphere lamp, determining the duration of the brightness of the atmosphere lamp according to the corresponding relation between the duration of a note and the duration of the brightness of the atmosphere lamp, and generating the display mode of the atmosphere lamp according to the breathing frequency, the brightness and the duration. According to the embodiment of the application, the display mode of the atmosphere lamp can be intelligently generated according to the plurality of music pieces, and the flexibility of generating the display mode of the atmosphere lamp is improved.

Inventors

  • LI ZHE

Assignees

  • 零束科技有限公司

Dates

Publication Date
20260512
Application Date
20241202

Claims (8)

  1. 1. An atmosphere lamp display mode generation method, characterized in that the method comprises the following steps: collecting a plurality of music pieces; Determining a first music having the same music style tag as the plurality of pieces of music, determining the first music as a target music to integrate the plurality of pieces of music as a target music; Determining the number of first notes in the target music according to the pitch of each note in the target music, wherein the pitch of the first notes is smaller than a first pitch threshold value; Determining a breathing frequency of the mood light based on the number of first notes; Determining a first pitch range corresponding to a note in a plurality of pitch ranges according to the pitch of the note, determining the brightness of an atmosphere lamp according to the corresponding relation between the first pitch range and the brightness of the atmosphere lamp, and determining the duration of the brightness of the atmosphere lamp according to the corresponding relation between the duration of the note and the duration of the brightness of the atmosphere lamp; Generating the mood light display mode based on the breathing frequency, the brightness and the duration.
  2. 2. The method of claim 1, wherein the capturing a plurality of pieces of music comprises: Acquiring the current time; Determining whether a first preset time range corresponding to the current time exists in a plurality of preset time ranges according to the current time; and if so, collecting the plurality of music pieces.
  3. 3. The method of claim 2, the collecting the plurality of pieces of music if present comprising: determining at least one music style tag according to the corresponding relation between the first preset time range and the music style tag; And collecting the plurality of music pieces corresponding to at least one music style label.
  4. 4. A method according to any one of claims 1-3, wherein the method further comprises: collecting facial expression data of a user; determining a user mood according to the facial expression data; According to the corresponding relation between the mood of the user and the first adjusting coefficient, adjusting the duration time to determine a first duration time; said generating said ambience light display pattern from said breathing frequency, said brightness and said duration comprises: generating the mood light display mode based on the breathing frequency, the brightness, and the first duration.
  5. 5. A method according to any one of claims 1-3, characterized in that the method further comprises: Acquiring weather data of the current time; Determining weather according to the weather data; according to the corresponding relation between the weather and the second adjusting coefficient, adjusting the duration time to determine a second duration time; said generating said ambience light display pattern from said breathing frequency, said brightness and said duration comprises: Generating the ambience light display mode according to the breathing frequency, the brightness and the second duration.
  6. 6. An atmosphere lamp display mode generating apparatus, characterized in that the apparatus comprises: the acquisition module is used for acquiring a plurality of music fragments; The system comprises an integration module, a first music generation module, a second music generation module and a second music generation module, wherein the integration module is used for determining music style labels of the plurality of music fragments; The first determining module is used for determining the number of first notes in the target music according to the pitch of each note in the target music, wherein the pitch of the first notes is smaller than a first pitch threshold value; a second determining module, configured to determine a breathing frequency of the mood light according to the number of the first notes; the system comprises a first determining module, a third determining module and a third determining module, wherein the first pitch range corresponding to a note is determined in a plurality of pitch ranges according to the pitch of the note; and the generating module is used for generating the atmosphere lamp display mode according to the breathing frequency, the brightness and the duration.
  7. 7. An electronic device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus; The memory is configured to store at least one executable instruction, where the executable instruction causes the processor to perform operations corresponding to the method for generating an atmosphere lamp display mode according to any one of claims 1 to 5.
  8. 8. A computer storage medium having stored thereon a computer program which, when executed by a processor, implements the atmosphere lamp display pattern generating method according to any one of claims 1 to 5.

Description

Atmosphere lamp display mode generation method and device, electronic equipment and computer storage medium Technical Field The embodiment of the application relates to the technical field of computers, in particular to an atmosphere lamp display mode generation method, an atmosphere lamp display mode generation device, electronic equipment and a computer storage medium. Background With the development of vehicle-mounted technology, more and more vehicles are additionally provided with atmosphere lamps so as to provide technological senses for the vehicles, and meanwhile, the atmosphere lamps can also facilitate the use of the vehicles at night. However, most of the display modes of the atmosphere lamps are preset by the vehicle, and when the display modes of the atmosphere lamps need to be adjusted, a user needs to manually adjust the brightness, the brightness and the breathing frequency of the atmosphere lamps so as to generate a customized display mode of the atmosphere lamps. Disclosure of Invention In view of the above, embodiments of the present application provide a method, an apparatus, an electronic device, and a computer storage medium for generating an atmosphere lamp display mode, so as to at least partially solve the above-mentioned problems. According to a first aspect of an embodiment of the present application, there is provided an atmosphere lamp display mode generating method, including: collecting a plurality of music pieces; Integrating the plurality of pieces of music into target music; Determining the number of first notes in the target music according to the pitch of each note in the target music, wherein the pitch of the first notes is smaller than a first pitch threshold value; Determining a breathing frequency of the mood light based on the number of first notes; determining the brightness of the atmosphere lamp according to the corresponding relation 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 corresponding relation between the duration of the notes and the duration of the brightness of the atmosphere lamp; Generating the mood light display mode based on the breathing frequency, the brightness and the duration. In some embodiments, the capturing a plurality of pieces of music includes: Acquiring the current time; Determining whether a first preset time range corresponding to the current time exists in a plurality of preset time ranges according to the current time; and if so, collecting the plurality of music pieces. In some embodiments, the collecting the plurality of pieces of music, if any, includes: determining at least one music style tag according to the corresponding relation between the first preset time range and the music style tag; And collecting the plurality of music pieces corresponding to at least one music style label. In some embodiments, the integrating the plurality of pieces of music into the target music includes: Determining music style tags for the plurality of pieces of music; Generating first music having the same music style tag as the plurality of pieces of music; And determining the first music as the target music so as to integrate the plurality of music pieces into the target music. The determining the brightness of the atmosphere lamp according to the corresponding relation between the pitch of the notes and the brightness of the atmosphere lamp comprises the following steps: determining a first pitch range corresponding to the note among a plurality of pitch ranges according to the pitch of the note; and determining the brightness of the atmosphere lamp according to the corresponding relation between the first pitch range and the brightness of the atmosphere lamp. In some embodiments, the method further comprises: collecting facial expression data of a user; determining a user mood according to the facial expression data; According to the corresponding relation between the mood of the user and the first adjusting coefficient, adjusting the duration time to determine a first duration time; said generating said ambience light display pattern from said breathing frequency, said brightness and said duration comprises: generating the mood light display mode based on the breathing frequency, the brightness, and the first duration. In some embodiments, the method further comprises: Acquiring weather data of the current time; Determining weather according to the weather data; according to the corresponding relation between the weather and the second adjusting coefficient, adjusting the duration time to determine a second duration time; said generating said ambience light display pattern from said breathing frequency, said brightness and said duration comprises: Generating the ambience light display mode according to the breathing frequency, the brightness and the second duration. According to a second aspect of an embodiment of the present a