Scene determination method and device based on music category

By obtaining and matching music tag information and preset category relationship information, the music category is determined and a scene control signal is generated, which solves the problem of non-unique music category classification results in the existing technology and achieves accurate scene arrangement based on the music category.

CN118692491APending Publication Date: 2024-09-24BEIJING JINGWEI HIRAIN TECH CO INC
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410718335.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the existing technology, when classifying based on music tag information and feature information, the results are not unique, which makes it difficult to match accurate scenes when arranging scenes based on music categories. For example, it is difficult to accurately match music categories in lighting effect arrangements.

Method used

By obtaining the relationship information between the tag information of the target music and the preset music category, as well as the relationship information between the preset music category and the target scene information, matching is performed to determine the music category, and a scene control signal is generated, which is sent to the target controller to generate the target scene. Specific steps include obtaining the tag information of the target music, detecting whether the preset music category identifier is included, matching if it is not included, using the preset classification rules to determine the music category, and determining the corresponding scene information according to the category.

Benefits of technology

It realizes the unique division of music categories, ensuring that scenes can be accurately matched when sending scene control signals, avoiding the confusion of multiple results, and improving the accuracy of scene layout.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692491A
    Figure CN118692491A
Patent Text Reader

Abstract

The invention discloses a scene determination method and device based on music categories. The method comprises the following steps: acquiring target label information of target music, relation information between the label information and a preset music category, and relation information between the preset music category and target scene information; when it is detected that the target tag information does not include the identifier of the preset music category, matching the target tag information with the tag information; determining a predicted music category of the target music according to relation information between the label information and a preset music category; determining predicted target scene information of the predicted music category according to relation information between the preset music category and the target scene information; and obtaining a control signal for predicting the target scene information, and sending the control signal to the target controller, so that the target controller generates a target scene based on the control signal. The music is divided into the existing categories, the music category result is unique, and accurate scenes can be matched when scene arrangement is carried out based on the music categories.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and in particular, relates to a method and device for determining a scene based on music categories. Background Art

[0002] As society continues to develop and evolve, music in every corner of society has also developed many systems and genres. Usually, each piece of music is marked with specific label information based on its unique internal feature information, and music with similar feature information can be classified according to the label information and classified into the same category of music.

[0003] In the prior art, the most commonly used method for determining music categories is to directly determine the music categories according to the label information, that is, different label information corresponds to different music categories; or to extract features from the data information inside the music, and directly classify the music according to the feature information inside the music to determine the music category.

[0004] However, due to the diversity of label information and feature information, classifying music based on label information and feature information will result in multiple music categories, and the results are not unique, so it is difficult to match the exact scene in scene arrangement based on music categories, such as arranging lighting effects based on music categories. Summary of the invention

[0005] The embodiments of the present application provide a scene determination method and device based on music categories, which classify music into existing categories. The results are unique, so that when a scene control signal is sent to a target controller based on the music category, the accurate scene can be matched when the scene is arranged.

[0006] In a first aspect, an embodiment of the present application provides a scene determination method based on music categories, comprising: obtaining target tag information of target music, relationship information between the tag information and a preset music category, and relationship information between the preset music category and target scene information; matching the target tag information and the tag information when it is detected that the target tag information does not include an identifier of a preset music category; determining, based on the relationship information between the tag information and the preset music category, that the music category corresponding to the tag information matching the target tag information is the predicted music category of the target music; determining, based on the relationship information between the preset music category and the target scene information, predicted target scene information corresponding to the predicted music category; obtaining a control signal for the predicted target scene information, and sending the control signal to a target controller so that the target controller generates a target scene based on the control signal.

[0007] In a possible embodiment, before obtaining the target tag information of the target music, the method also includes: obtaining tag information of multiple music; when it is detected that the tag information does not include an identifier of a preset music category, obtaining target description information corresponding to the tag information; based on the target description information, determining the target music category corresponding to the target description information using a preset classification rule, the preset classification rule including relationship information between the description information and the preset music category, the description information including the target description information, and the preset music category including the target music category; generating relationship information between the tag information and the preset music category; receiving a selection input of the target scene information from multiple scene information corresponding to the preset music category; and generating relationship information between the preset music category and the target scene information in response to the selection input.

[0008] In a possible embodiment, the target description information includes the number of musical instruments, and the target music category includes a first music category, a second music category and a third music category; based on the target description information, a preset classification rule is used to determine the target music category corresponding to the target description information, including: when the number of musical instruments is less than a first preset value, determining that the music is in the first music category; when the number of musical instruments is greater than a second preset value, determining that the music is in the second music category; when the number of musical instruments is not less than the first preset value and not greater than the second preset value, determining that the music is in the third music category.

[0009] In a possible embodiment, the target description information also includes instrument types and chord information, the first music category includes a first sub-music category, the second music category includes a second sub-music category, the third music category includes a second sub-music category, a third sub-music category, a fourth sub-music category and a fourth music category; when the number of instruments is not less than a first preset value and not greater than a second preset value, determining that the music is of the third music category includes: when the number of instruments is the first preset value, detecting whether the types of instruments include the first category; when the first category is detected from the types of instruments, determining that the music is of the second sub-music category; when the first category is not detected from the types of instruments, determining that the music is of the second sub-music category; When the first category is detected and the complexity level in the chord information is the first complexity level, the music is determined to be the third sub-music category; when the first category is not detected from the instrument types and the complexity level in the chord information is the second complexity level, the music is determined to be the fourth sub-music category; when the number of instruments is greater than a first preset value and not greater than a second preset value, detect whether the chord type in the chord information is a target chord type; when the chord type in the chord information is the target chord type, determine the music to be the third sub-music category; when the chord type in the chord information is not the target chord type, determine the music to be the fourth music category.

[0010] In one possible embodiment, the fourth music category includes the fifth music category and the sixth music category; when the chord type in the chord information is not the target chord type, the music is determined to be in the fourth music category, including: when the chord type in the chord information is not the target chord type, detecting whether the target description information includes feedback information, the feedback information representing that the user likes the music; when feedback information is detected from the target description information, determining that the music is in the fifth music category; when no feedback information is detected from the target description information, determining that the music is in the sixth music category.

[0011] In one possible embodiment, the target description information also includes music atmosphere information, and the fifth music category includes a fourth sub-music category, a fifth sub-music category, a sixth sub-music category and a first sub-music category; when feedback information is detected from the target description information, the music is determined to be in the fifth music category, including: when feedback information is detected from the target description information, detecting whether the types of musical instruments include the second category; when the second category is detected from the types of musical instruments and the music atmosphere information is the first atmosphere information, determining that the music is in the fourth sub-music category; when the second category is detected from the types of musical instruments and the music atmosphere information is the second atmosphere information, determining that the music is in the fifth sub-music category; when the second category is detected from the types of musical instruments and the music atmosphere information is the third atmosphere information, determining that the music is in the first sub-music category, and the third atmosphere information is the atmosphere information other than the first atmosphere information and the second atmosphere information; when the second category is not detected from the target description information, or the number of types of musical instruments is greater than a third preset value, determining that the music is in the sixth sub-music category.

[0012] In one possible embodiment, the sixth music category includes a seventh sub-music category, a seventh music category, an eighth music category, a first sub-music category, a fourth sub-music category and a fifth sub-music category; when no feedback information is detected from the target description information, the music is determined to be in the sixth music category, including: when no feedback information is detected from the target description information, detecting whether the instrument types include a third type; when the third type is detected from the instrument types and distortion information is detected in the target description information, determining that the music is in the seventh sub-music category; when the third type is detected from the instrument types and distortion information is not detected in the target description information, determining that the music is in the seventh music category; when the third type is not detected from the instrument types and the number of instrument types is greater than a third preset value Or when it is detected that the types of musical instruments include the fourth type, the music is determined to be the eighth music category; when the third type is not detected from the types of musical instruments, and the number of types of musical instruments is not greater than the third preset value and the fourth type is not detected from the types of musical instruments, and the music atmosphere information is the first atmosphere information, the music is determined to be the fourth sub-music category; when the third type is not detected from the types of musical instruments, and the number of types of musical instruments is not greater than the third preset value and the fourth type is not detected from the types of musical instruments, and the music atmosphere information is the second atmosphere information, the music is determined to be the fifth sub-music category; when the third type is not detected from the types of musical instruments, and the number of types of musical instruments is not greater than the third preset value and the fourth type is not detected from the types of musical instruments, and the music atmosphere information is the third atmosphere information, the music is determined to be the first sub-music category.

[0013] In one possible embodiment, the target description information also includes rhythm information, and the seventh music category includes an eighth sub-music category and a ninth sub-music category; when the third category is detected from the instrument categories and no distortion information is detected in the target description information, the music is determined to be in the seventh music category, including: when the third category is detected from the instrument categories and no distortion information is detected in the target description information, detecting whether the rhythm information includes first rhythm information; when the first rhythm information is detected from the rhythm information, determining that the music is in the eighth sub-music category; when the first rhythm information is not detected from the rhythm information, determining that the music is in the ninth sub-music category.

[0014] In one possible embodiment, the target description information also includes rhythm information, and the eighth music category includes a first sub-music category, a tenth sub-music category, and an eleventh sub-music category; when the third category is not detected from the instrument categories, and the number of instrument categories is greater than a third preset value, or the instrument categories are detected to include a fourth category, the music is determined to be in the eighth music category, including: when the third category is not detected from the instrument categories, and the number of instrument categories is greater than a third preset value, or the instrument categories are detected to include a fourth category, detecting whether the rhythm information includes second rhythm information; when the second rhythm information is not detected from the rhythm information, determining that the music is in the first sub-music category; when the second rhythm information is detected from the rhythm information, detecting whether the target description information includes lyrics emphasis information; when the lyrics emphasis information is detected from the target description information, determining that the music is in the tenth sub-music category; when the lyrics emphasis information is not detected from the target description information, determining that the music is in the eleventh sub-music category.

[0015] In a second aspect, an embodiment of the present application provides a scene determination device based on music categories, including: an acquisition module, used to acquire target tag information of target music, relationship information between tag information and preset music categories, and relationship information between preset music categories and target scene information; a matching module, used to match the target tag information and tag information when it is detected that the target tag information does not include an identifier of the preset music category; a determination module, used to determine, based on the relationship information between the tag information and the preset music category, that the music category corresponding to the tag information matching the target tag information is the predicted music category of the target music; the determination module, also used to determine, based on the relationship information between the preset music category and the target scene information, predicted target scene information corresponding to the predicted music category; the acquisition module, also used to acquire a control signal for the predicted target scene information, and send the control signal to the target controller, so that the target controller generates a target scene based on the control signal.

[0016] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising:

[0017] A processor and a memory storing computer program instructions; when the processor executes the computer program instructions, any one of the above-mentioned scene determination methods based on music categories is implemented.

[0018] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, any one of the above-mentioned methods for determining a scene based on a music category is implemented.

[0019] In a fifth aspect, an embodiment of the present application provides a computer program product, characterized in that when the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute any one of the above-mentioned scene determination methods based on music categories.

[0020] The scene determination method and device based on music category of the embodiment of the present application, the method includes: obtaining target tag information of target music, relationship information between tag information and preset music category, and relationship information between preset music category and target scene information; matching the target tag information and tag information when it is detected that the target tag information does not include the identifier of the preset music category; determining the music category corresponding to the tag information matching the target tag information as the predicted music category of the target music according to the relationship information between the tag information and the preset music category; determining the predicted target scene information corresponding to the predicted music category according to the relationship information between the preset music category and the target scene information; obtaining the control signal of the predicted target scene information, and sending the control signal to the target controller, so that the target controller generates the target scene based on the control signal. In this way, firstly, it is detected whether the identifier of the preset music category is included in the target tag information, and if not, the target tag information and tag information are matched; according to the relationship information between the tag information and the preset music category, the music category corresponding to the tag information matching the target tag information is determined as the predicted music category of the target music. Instead of blindly classifying music according to tag information, music is divided into existing categories. There will not be too many results of music categories, and the results are unique, so that when the control signal of the scene is sent based on the music category, the accurate scene can be matched when the scene is arranged. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0022] Figure 1 is a flowchart of a method for determining a scene based on a music category provided by an embodiment of the present application;

[0023] Figure 2 is a flowchart of a method for determining a scene based on a music category provided by another embodiment of the present application;

[0024] Figure 3 is a flowchart of a method for determining a scene based on a music category provided by another embodiment of the present application;

[0025] Figure 4 is a flowchart of a method for determining a scene based on a music category provided in yet another embodiment of the present application;

[0026] Figure 5 is a flowchart of a method for determining a scene based on a music category provided in yet another embodiment of the present application;

[0027] Figure 6 is a flowchart of a method for determining a scene based on a music category provided in yet another embodiment of the present application;

[0028] Figure 7 is a flowchart of a method for determining a scene based on a music category provided in yet another embodiment of the present application;

[0029] Figure 8 is a flowchart of a method for determining a scene based on a music category provided in yet another embodiment of the present application;

[0030] Fig. 9 is a flowchart of a method for determining a scene based on a music category provided in yet another embodiment of the present application;

[0031] Fig.10 is a flowchart of a method for determining a scene based on a music category provided in yet another embodiment of the present application;

[0032] Fig.11 is a structural schematic diagram of a scene determination device based on music category provided in yet another embodiment of the present application;

[0033] Fig.12 It is a structural diagram of an electronic device provided in yet another embodiment of the present application. DETAILED DESCRIPTION

[0034] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0035] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0036] As society continues to develop and evolve, music that exists in every corner of society has also developed many systems and genres. Usually, each piece of music is marked with specific label information based on its unique internal feature information, and music with similar feature information can be classified according to the label information and classified into the same category of music. In the prior art, the most commonly used method for determining the music category is to directly determine the music category according to the label information, that is, different label information corresponds to different music categories; or to extract features from the data information inside the music, and directly classify it according to the feature information inside the music to determine the music category.

[0037] However, due to the diversity of label information and feature information, classifying music based on label information and feature information will result in multiple music categories, and the results are not unique, so it is difficult to match the exact scene in scene arrangement based on music categories, such as arranging lighting effects based on music categories.

[0038] In order to solve the problems in the prior art, the embodiments of the present application provide a method and device for determining a scene based on music categories. The following first introduces the method for determining a scene based on music categories provided by the embodiments of the present application.

[0039] Figure 1 FIG. 1 is a flow chart of a method for determining a scene based on a music category provided by an embodiment of the present application. Figure 1 As shown, the scene determination method based on music category provided in the embodiment of the present application includes the following steps.

[0040] S110, obtaining target tag information of the target music, relationship information between the tag information and the preset music category, and relationship information between the preset music category and the target scene information.

[0041] Here, the relationship information between the tag information and the preset music category, and the relationship information between the preset music category and the target scene information are all set in advance, for example, they can be obtained from a music category library.

[0042] In some embodiments, the target music may be music played in real time.

[0043] In some embodiments, after the target tag information of the target music, the target tag information is first preprocessed to remove punctuation marks and blank characters. Then, the uppercase to lowercase letters are converted for the pure English tags to unify the characters. Subsequently, the preprocessed target tag information is matched based on the relationship information between the tag information and the preset music category.

[0044] S120: When it is detected that the target tag information does not include an identifier of a preset music category, the target tag information is matched with the tag information.

[0045] In some embodiments, when it is detected that the target tag information includes an identifier of a preset music category, the preset music category corresponding to the identifier is determined as the predicted music category of the target music.

[0046] S130. According to the relationship information between the tag information and the preset music category, determine that the music category corresponding to the tag information matching the target tag information is the predicted music category of the target music.

[0047] In some embodiments, a preset music category may correspond to at least one tag information.

[0048] In some embodiments, when there is no tag information matching the target tag information, the target music is determined to be a first sub-music category. The first sub-music category is a music category in a preset music category. For example, the first sub-music category is other music categories.

[0049] S140. Determine predicted target scene information corresponding to the predicted music category according to relationship information between the preset music category and the target scene information.

[0050] In some embodiments, for each preset music category, there is corresponding target scene information. The target scene information can be set in advance.

[0051] S150, obtaining a control signal for predicting target scene information, and sending the control signal to a target controller, so that the target controller generates a target scene based on the control signal.

[0052] In some embodiments, when the target controller receives the control signal, the music scene is controlled according to the control signal. According to the classification of music types, the control signal of the scene information corresponding to the target music category is generated, that is, the scene that conforms to the music is provided.

[0053] In this way, firstly, it is detected whether the target tag information includes the identifier of the preset music category. If not, the target tag information and the tag information are matched; according to the relationship information between the tag information and the preset music category, the music category corresponding to the tag information matching the target tag information is determined as the predicted music category of the target music. Instead of blindly classifying the music according to the tag information, the music is divided into existing categories. There will not be too many results of music categories, and the results are unique, so that when the control signal of the scene is sent based on the music category, the accurate scene can be matched when the scene is arranged.

[0054] Based on this, in some embodiments, such as Figure 2 As shown, before the above S110, the method may further include:

[0055] S101, obtaining tag information of multiple music.

[0056] In some embodiments, multiple music pieces are used as samples to construct relationship information between tag information and preset music categories. Tag information refers to tag information obtained by extracting features from data information inside the music. Here, the tag information of the music may be tag information directly received. For example, the tag information is tag information input by a user. Alternatively, the tag information may also be information carried by the music itself.

[0057] In some embodiments, after obtaining the tag information of multiple music, the tag information is first preprocessed to remove punctuation marks and blank characters. Then, the pure English tags are converted from uppercase to lowercase to unify the characters. Subsequently, the preprocessed tag information is used to generate relationship information between the tag information and the preset music category.

[0058] S102: When it is detected that the tag information does not include an identifier of a preset music category, obtain target description information corresponding to the tag information.

[0059] In some embodiments, it is detected whether the tag information includes an identifier of a preset music category. The identifier may be the name of the preset music category. In the case where it is detected that the tag information does not include the identifier of the preset music category, the target description information corresponding to the tag information is obtained. In the case where it is detected that the tag information includes the identifier of the preset music category, that is, in the case where the tag information itself contains the same phrase in the preset music category, the target music category corresponding to the tag information can be directly determined.

[0060] In some embodiments, the preset music categories are set in advance.

[0061] It should be noted that, in the embodiments provided by the present application, one tag information can correspond to multiple musics, and the tag information is classified into categories, and the musics with the same tag information are classified into the same category. The musics with the same tag information also obtain the same target description information. Furthermore, the musics with the same tag information and the same target description information have the same determined category.

[0062] In some embodiments, the target description information is description information obtained by retrieving tag information. For example, the target description information can be obtained based on a network search.

[0063] S103. According to the target description information, a target music category corresponding to the target description information is determined using a preset classification rule, wherein the preset classification rule includes relationship information between the description information and the preset music category, the description information includes the target description information, and the preset music category includes the target music category.

[0064] Here, the preset rule information may be set in advance.

[0065] In some embodiments, if the target description information satisfies a preset condition, a target music category of the music corresponding to the target description information is determined.

[0066] As an example, if the target description information includes first target information, it is determined that the music corresponding to the target description information is an English song; if the target description information includes second target information, it is determined that the music corresponding to the target description information is a Chinese song.

[0067] In some embodiments, before determining the target music category of the music corresponding to the target description information using the preset classification rule based on the target description information, an input of the preset classification rule is received.

[0068] S104: Generate relationship information between the tag information and the preset music category.

[0069] In some embodiments, after the relationship information between the tag information and the preset music category is generated, the relationship information between the tag information and the preset music category may be saved in a music category library.

[0070] S105: Receive selection input of target scene information from a plurality of scene information corresponding to a preset music category.

[0071] In some embodiments, the scene information may be lighting effect information. A target music category may correspond to at least one scene information. After determining the target music category, the user may select one from a plurality of scene information corresponding to the target music category.

[0072] In some embodiments, the target scene information corresponding to the music can also be determined using other conditions. According to preset conditions, the target scene information is determined from multiple scene information.

[0073] S106. In response to the selection input, generate relationship information between the preset music category and the target scene information.

[0074] In some embodiments, there is a corresponding relationship between the target scene information and the control signal. Different sections in the music can also match different scene information. As the music plays, the scene information can change, and the control signal corresponds to a control signal of multiple scene information. The specific scene information is not limited here.

[0075] In this way, firstly, it is detected whether the tag information includes the identification of the target music category. If not, it cannot be directly classified according to the tag information. It is necessary to obtain the target description information corresponding to the tag information, and determine the target music category of the music according to the target description information using the preset classification rules, and then generate the relationship information between the tag information and the preset music category. Instead of blindly classifying the music according to the tag information, the music is divided into existing categories. There will not be too many results of music categories, and the results are unique, so that when sending a scene control signal to the target controller based on the music category, the accurate scene can be matched when the scene is arranged.

[0076] Based on this, in some embodiments, the target description information includes the number of musical instruments, and the target music category includes a first music category, a second music category, and a third music category; Figure 3 As shown, the above S103 may include:

[0077] S210: When the number of musical instruments is less than a first preset value, determining that the music is a first music category;

[0078] S220: When the number of musical instruments is greater than a second preset value, determining that the music is a second music category;

[0079] S230: When the number of musical instruments is not less than the first preset value and not greater than the second preset value, determine that the music is a third music category.

[0080] In some embodiments, the first preset value and the second preset value are both set in advance. For example, the first preset value is 1, and the number of musical instruments is less than 1, that is, the number of musical instruments is 0. That is, when the music does not use musical instruments, the music is determined to be a first music category. The second preset value is the number of musical instruments contained in the orchestra. When the number of musical instruments is greater than the second preset value, the music is determined to be a second music category. When the number of musical instruments is not less than 1 and not greater than the second preset value, the music is determined to be a third music category.

[0081] It can be understood that the number of instruments is 1, that is, the music is a solo of a single instrument.

[0082] In this way, instead of relying solely on label information, the music categories are divided according to the number of musical instruments, and the categories divided are more accurate.

[0083] Based on this, in some embodiments, the target description information also includes instrument type and chord information, the first music category includes the first sub-music category, the second music category includes the second sub-music category, the third music category includes the second sub-music category, the third sub-music category, the fourth sub-music category and the fourth music category; Figure 4 As shown, the above S230 may include:

[0084] S231, when the number of musical instruments is a first preset value, detecting whether the types of musical instruments include a first type;

[0085] S232, when the first category is detected from the musical instrument categories, determining that the music is a second sub-music category;

[0086] S233: if the first category is not detected from the instrument categories and the complexity level in the chord information is the first complexity level, determine that the music is a third sub-music category;

[0087] S234: if the first category is not detected from the instrument categories and the complexity level in the chord information is the second complexity level, determine that the music is a fourth sub-music category;

[0088] S235: if the number of musical instruments is greater than the first preset value and not greater than the second preset value, detecting whether the chord type in the chord information is the target chord type;

[0089] S236: if the chord type in the chord information is the target chord type, determine that the music is a third sub-music category;

[0090] S237: When the chord type in the chord information is not the target chord type, determine that the music is a fourth music category.

[0091] In some embodiments, the third music category may specifically include a second sub-music category, a third sub-music category, and a fourth sub-music category. When the number of musical instruments is 1, that is, the music is a solo of a single instrument, the category of the music can be further determined by the type of musical instrument. Detect whether the types of musical instruments include the first type. When the first type is detected from the types of musical instruments, the music is determined to be a second sub-music category; when the first type is not detected from the types of musical instruments, the complexity of the chord information is detected. When the first type is not detected from the types of musical instruments and the complexity of the chord information is the first complexity, the music is determined to be a third sub-music category; when the first type is not detected from the types of musical instruments and the complexity of the chord information is the second complexity, the music is determined to be a fourth sub-music category.

[0092] In some embodiments, the first category may be woodwind instruments, brass instruments, percussion instruments, keyboard instruments, string instruments in Western musical instruments or four types of instruments such as blowing, pulling, plucking and beating in Chinese musical instruments. The first complexity level may represent complex chords, and the second complexity level may represent simple chords.

[0093] In some embodiments, the third music category may further include a fourth music category. When the number of musical instruments is greater than 1 and not greater than the second preset value, that is, when the number of musical instruments is moderate, it is detected whether the chord type in the chord information is the target chord type. When the chord type in the chord information is the target chord type, the music is determined to be the third sub-music category; when the chord type in the chord information is not the target chord type, the music is determined to be the fourth music category.

[0094] In some embodiments, the target chord type is a chord type unique to the third sub-music category. The target chord type is set in advance. For example, the chord type of Jazz.

[0095] In some embodiments, when the number of musical instruments is moderate and there is a target field in the target description information, the music may also be determined as the third sub-music category. For example, the target field is "improvisation".

[0096] In this way, music categories can be further divided according to the types of instruments and chord information, which can expand the diversity of music categories.

[0097] Based on this, in some embodiments, the fourth music category includes the fifth music category and the sixth music category; Figure 5 As shown, the above S237 may include:

[0098] S250: if the chord type in the chord information is not the target chord type, detecting whether the target description information includes feedback information, the feedback information indicating that the user likes the music;

[0099] S260, in the case where feedback information is detected from the target description information, determining that the music is a fifth music category;

[0100] S270: When no feedback information is detected from the target description information, determine that the music is a sixth music category.

[0101] In some embodiments, the fourth music category may specifically include a fifth music category and a sixth music category. In the case where the chord type in the chord information is not the target chord type, further detect whether the target description information includes feedback information. Determine whether the music corresponding to the tag information is easy for users to accept, that is, whether it is simple and widely circulated, and use feedback information to characterize that users like music and are easy to accept. In the case where feedback information is detected from the target description information, the music is determined to be in the fifth music category; in the case where no feedback information is detected from the target description information, the music is determined to be in the sixth music category.

[0102] In this way, music can also be divided into categories based on feedback information, which can expand the diversity of music categories.

[0103] Based on this, in some embodiments, the target description information also includes music atmosphere information, and the fifth music category includes the fourth sub-music category, the fifth sub-music category, the sixth sub-music category and the first sub-music category; Figure 6 As shown, the above S260 may include:

[0104] S261, in the case where feedback information is detected from the target description information, detecting whether the musical instrument category includes the second category;

[0105] S262: when the second category is detected from the instrument categories and the music atmosphere information is the first atmosphere information, determine that the music is a fourth sub-music category;

[0106] S263: when the second category is detected from the instrument categories and the music atmosphere information is the second atmosphere information, determining that the music is the fifth sub-music category;

[0107] S264: when the second category is detected from the instrument categories and the music atmosphere information is the third atmosphere information, determine that the music is the first sub-music category, and the third atmosphere information is the atmosphere information other than the first atmosphere information and the second atmosphere information;

[0108] S265: When the second category is not detected from the target description information, or the number of musical instrument types is greater than a third preset value, determine that the music is a sixth sub-music category.

[0109] In some embodiments, the fifth music category may specifically include a fourth sub-music category, a fifth sub-music category, and a first sub-music category. In the case where feedback information is detected from the target description information, the category of the music may be further determined by the type of musical instrument. Detect whether the types of musical instruments include the second type. In the case where the second type is detected from the types of musical instruments, further detect the music atmosphere information. In the case where the second type is detected from the types of musical instruments and the music atmosphere information is the first atmosphere information, determine that the music is the fourth sub-music category; in the case where the second type is detected from the types of musical instruments and the music atmosphere information is the second atmosphere information, determine that the music is the fifth sub-music category; in the case where the second type is detected from the types of musical instruments and the music atmosphere information is the third atmosphere information, determine that the music is the first sub-music category.

[0110] In some embodiments, the second category is pre-set, and may be guitars and musical instruments, such as harmonica, organ, piano, violin, etc. The first atmosphere information, the second atmosphere information, and the third atmosphere information are all pre-set. The first atmosphere information may be a heavy or melancholy music atmosphere, the second atmosphere information may be a lighthearted or narrative music atmosphere, and the third atmosphere information is atmosphere information other than the first atmosphere information and the second atmosphere information.

[0111] In some embodiments, the fifth music category may further include a sixth sub-music category. If the second category is not detected from the target description information, or the number of musical instrument types is greater than a third preset value, the music is determined to be the sixth sub-music category.

[0112] In this way, music categories can be further divided according to the types of instruments and music atmosphere information, which can expand the diversity of music categories.

[0113] Based on this, in some embodiments, the sixth music category includes the seventh sub-music category, the seventh music category, the eighth music category, the first sub-music category, the fourth sub-music category and the fifth sub-music category; Figure 7 As shown, the above S270 may include:

[0114] S271, in the case where no feedback information is detected from the target description information, detecting whether the musical instrument types include a third type;

[0115] S272, when the third category is detected from the musical instrument categories and distortion information is detected in the target description information, determining that the music is a seventh sub-music category;

[0116] S273, when the third category is detected from the musical instrument categories and no distortion information is detected in the target description information, determining that the music is a seventh music category;

[0117] S274: when the third type is not detected from the types of musical instruments, and the number of types of musical instruments is greater than a third preset value or the detected types of musical instruments include the fourth type, determining that the music is an eighth music category;

[0118] S275: if the third category is not detected from the instrument categories, the number of instrument categories is not greater than the third preset value, the fourth category is not detected from the instrument categories, and the music atmosphere information is the first atmosphere information, determine that the music is a fourth sub-music category;

[0119] S276: if the third category is not detected from the instrument categories, the number of instrument categories is not greater than the third preset value, the fourth category is not detected from the instrument categories, and the music atmosphere information is the second atmosphere information, determine that the music is the fifth sub-music category;

[0120] S277: When the third type is not detected from the instrument types, the number of instrument types is not greater than the third preset value, the fourth type is not detected from the instrument types, and the music atmosphere information is the third atmosphere information, determine that the music is the first sub-music category.

[0121] In some embodiments, the sixth music category may specifically include a seventh sub-music category and a seventh music category. In the case where no feedback information is detected from the target description information, the category of the music is further determined by the type of musical instrument. It is detected whether the types of musical instruments include the third type. In the case where the third type is detected from the types of musical instruments, it is further detected whether the target description information includes distortion information. In the case where the third type is detected from the types of musical instruments and the distortion information is detected in the target description information, the music is determined to be the seventh sub-music category; in the case where the third type is detected from the types of musical instruments and the distortion information is not detected in the target description information, the music is determined to be the seventh music category.

[0122] In some embodiments, the sixth music category may further include an eighth music category, a first sub-music category, a fourth sub-music category, and a fifth sub-music category. In the case where the third category is not detected from the musical instrument categories, it is further determined whether the number of musical instrument categories is greater than a third preset value, or whether the musical instrument categories include a fourth category. In the case where the third category is not detected from the musical instrument categories, and the number of musical instrument categories is greater than the third preset value, or the musical instrument categories include the fourth category, the music is determined to be the eighth music category. In the case where the third category is not detected from the musical instrument categories, and the number of musical instrument categories is not greater than the third preset value, and the fourth category is not detected from the musical instrument categories, the music atmosphere information is further detected. When the third category is not detected from the instrument categories, and the number of instrument categories is not greater than the third preset value, and the fourth category is not detected from the instrument categories, and the music atmosphere information is the first atmosphere information, the music is determined to be the fourth sub-music category; when the third category is not detected from the instrument categories, and the number of instrument categories is not greater than the third preset value, and the fourth category is not detected from the instrument categories, and the music atmosphere information is the second atmosphere information, the music is determined to be the fifth sub-music category; when the third category is not detected from the target description information, and the number of instrument categories is not greater than the third preset value, and the fourth category is not detected from the instrument categories, and the music atmosphere information is the third atmosphere information, the music is determined to be the first sub-music category.

[0123] In some embodiments, the third category and the fourth category are both pre-set, and the third category may be the types of musical instruments included in the band lineup. The fourth category may be electronic musical instruments, such as synthesizers.

[0124] In this way, the music categories can be further divided according to the types of instruments, distortion conditions and atmosphere information, which can expand the diversity of music categories.

[0125] Based on this, in some embodiments, the target description information also includes rhythm information, and the seventh music category includes an eighth sub-music category and a ninth sub-music category; Figure 8 As shown, the above S273 may include:

[0126] S281, when a third type is detected from the types of musical instruments and distortion information is not detected in the target description information, detecting whether the rhythm information includes the first rhythm information;

[0127] S282, when the first rhythm information is detected from the rhythm information, determining that the music is an eighth sub-music category;

[0128] S283: When the first rhythm information is not detected from the rhythm information, determine that the music is a ninth sub-music category.

[0129] In some embodiments, the seventh music category may specifically include an eighth sub-music category and a ninth sub-music category. When the third category is detected from the instrument category and no distortion information is detected in the target description information, the rhythm information is further detected. When the first rhythm information is detected from the rhythm information, the music is determined to be the eighth sub-music category; when the first rhythm information is not detected from the rhythm information, the music is determined to be the ninth sub-music category.

[0130] In some embodiments, the first rhythm information is set in advance, and the first rhythm information represents a gentle, lazy or bright rhythm.

[0131] In this way, the music categories can be further divided according to the types of instruments and rhythm information, which can expand the diversity of music categories.

[0132] Based on this, in some embodiments, the target description information also includes rhythm information, and the eighth music category includes the first sub-music category, the tenth sub-music category and the eleventh sub-music category; Fig. 9 As shown, the above S274 may include:

[0133] S291, if the third type is not detected from the musical instrument types, and the number of musical instrument types is greater than a third preset value or the musical instrument types are detected to include the fourth type, detecting whether the rhythm information includes the second rhythm information;

[0134] S292: if the second rhythm information is not detected from the rhythm information, determine that the music is a first sub-music category;

[0135] S293, in the case where the second rhythm information is detected from the rhythm information, detecting whether the target description information includes lyrics emphasis information;

[0136] S294, in the case where lyrics emphasis information is detected from the target description information, determining that the music is a tenth sub-music category;

[0137] S295: When no lyrics emphasis information is detected from the target description information, determine that the music is an eleventh sub-music category.

[0138] In some embodiments, the eighth music category may specifically include a first sub-music category, a tenth sub-music category, and an eleventh sub-music category. When the third category is not detected from the instrument categories, and the number of instrument categories is greater than the third preset value or the instrument categories are detected to include the fourth category, the rhythm information of the music is detected. When the second rhythm information is not detected from the rhythm information, the music is determined to be in the first sub-music category. When the second rhythm information is detected from the rhythm information, whether the target description information includes lyrics emphasis information is detected. When the lyrics emphasis information is detected from the target description information, the music is determined to be in the tenth sub-music category; when the lyrics emphasis information is not detected from the target description information, the music is determined to be in the eleventh sub-music category.

[0139] In some embodiments, the second rhythm information is set in advance, and the second rhythm information is strongly representative.

[0140] In this way, the music categories can be further divided according to the types of instruments, rhythm information and lyrics emphasis information, which can expand the diversity of music categories.

[0141] It should be noted that the type of musical instrument, music atmosphere information or rhythm information in the target description information can be detected by calculating the similarity of the fields.

[0142] As an example, Fig.10 As shown, the first sub-category is other categories, the second sub-category is Classical, the third sub-category is Jazz, the fourth sub-category is Blues, the fifth sub-category is Country, and the sixth sub-category is Pop. The seventh sub-category is Metal. The eighth sub-category is Reggae, the ninth sub-category is Rock, the tenth sub-category is Hip-hop, and the eleventh sub-category is Disco. A specific example of the process of determining the music category provided in the embodiment of the present application is as follows:

[0143] Step 1, obtain tag information. If the tag information itself contains the same phrase in the preset music category, the music corresponding to the tag information is classified into the corresponding preset music category. If not, proceed to step 2;

[0144] Step 2, obtain the target description information corresponding to the tag information; the target description information includes the number of musical instruments; if the number of musical instruments represents that the music usually does not use musical instruments, that is, the number of musical instruments is less than the first preset value, then the music is classified into other categories (as mentioned above, that is, the first music category, the first music category includes the first sub-music category). If the number of musical instruments represents that the music contains many instruments, that is, the number of musical instruments is greater than the second preset value, such as the number of instruments contained in an orchestra, then the music is classified into the Classical category. If the number of musical instruments represents that the music is a solo of a single instrument, then the corresponding candidate categories in the target category are Classical, Jazz, and Blues, and further division is required in more detail. If the number of musical instruments represents that the number of instruments contained in the music is moderate, that is, greater than the first preset value and not greater than the second preset value, further division is required.

[0145] Step 3, the target description information also includes the type of instrument and chord information; further classification is performed for single instrument solo. First, determine whether the type of instrument contained in the music of a single instrument belongs to the woodwind instrument, brass instrument, percussion instrument, keyboard instrument, string instrument in Western instruments or the four types of instruments of blowing, pulling, plucking and beating in Chinese instruments. If it does, the music is classified as Classical. If not, it is necessary to determine based on the chord situation of the music. If the chord is complex, the music label belongs to Jazz. If the chord is simple, the music label belongs to Blues.

[0146] Step 4: The target description information also includes music atmosphere information and rhythm information; further classification is performed for music with a moderate number of instruments. First, due to the uniqueness of Jazz, it is necessary to first perform information retrieval on the target description information of the music to check whether the chords and timbres contained in the music have a unique jazz style or are mostly improvised during creation. If so, it is classified as Jazz. If not, further classification is performed.

[0147] Step 5 is to determine whether the music is easily accepted by the public, whether it is simple and widely circulated, that is, whether it includes feedback information.

[0148] Step 5.1: If it is easy to accept, distinguish them according to the instrument category.

[0149] Step 5.1.1, if the instrument type is guitar and piano (including harmonica, organ, piano, violin, etc.)

[0150] Then, we can make detailed classifications based on the atmosphere of the music. If the atmosphere of the music is heavy and melancholic, it is classified as Blues; if the atmosphere of the music is lighthearted and narrative, it is classified as Country; if it is other atmospheres, it is classified as others.

[0151] Step 5.1.2, if there are many types of instruments, they are classified as Pop.

[0152] Step 5.2: If it is not easy to accept, continue to distinguish according to the main instrument categories.

[0153] Step 5.2.1, if the main instrument type is a band lineup (including synthesizer, drums, guitar, bass, singer), then continue to determine whether the instruments in the music often have exaggerated distortion. If so, it is classified as Metal. Otherwise, continue to determine whether the rhythm information of the music is soft, lazy and bright. If so, it is classified as Reggae, otherwise it is classified as Rock.

[0154] Step 5.2.2, if the main instruments include many types or only include electronic instruments (synthesizers), then continue to determine whether the music rhythm information represents a strong rhythm. If not, it is classified as Other; if so, then continue to determine whether the music emphasizes the presence of lyrics. If so, it is classified as Hip-hop, if not, it is classified as Disco.

[0155] Step 5.2.3 If the number of categories of the main instruments is not large, continue to judge the music atmosphere information. If the music atmosphere is heavy and melancholy, it is classified as Blues; if the music atmosphere is lighthearted and narrative, it is classified as Country;

[0156] If it is another atmosphere, it will be classified as Other.

[0157] At this point, the relationship information between the tag information and the preset music category is determined.

[0158] In another example, since the first sub-music category is other categories, the second sub-music category is Classical, the third sub-music category is Jazz, the fourth sub-music category is Blues, the fifth sub-music category is Country, and the sixth sub-music category is Pop. The seventh sub-music category is Metal. The eighth sub-music category is Reggae, the ninth sub-music category is Rock, the tenth sub-music category is Hip-hop, and the eleventh sub-music category is Disco, and the specific categories are all in English. Therefore, in the actual application of the relationship information between the label information and the preset music category, when determining the category of the target music, Chinese and English can also be distinguished for matching. After obtaining the target label information of the target music, the target label information is first pre-processed to remove punctuation marks and blank characters. Then, the Chinese and English mixed label information is divided into pure Chinese label information and pure English label information, and the uppercase to lowercase conversion is performed for the pure English label information to unify the characters. For the pure English label information, it is detected whether the target label information includes the identifier of the preset music category. For the pure Chinese label information, the target label information and the label information can be directly matched.

[0159] In the embodiment provided in the present application, weights can also be set for preset music categories, and when there are multiple music categories of the target music, the final music category of the target music is determined to be the music category with the largest weight. Here, the weights are set in advance.

[0160] In another example, taking the actual music tag Funk as an example, first perform step 1 to determine whether the tag information has the identification of the target music category. If not, further search. Perform step 2 to determine that the number of instruments contained in this type of song is moderate and is not a jazz chord type. Then perform step 5, which is not easy for users to accept, and go to step 5.2. Then the main instruments in this category are bass guitar, electric guitar, bass, drums and keyboards. It is judged that this music is a band lineup, and go to step 5.2.1. During the performance, there is no performance with distortion of instruments. The rhythm of the music is not a bright type, so it is finally classified into the Rock category according to the strategy. After completing the category classification, the car system will transmit a signal to the controller based on the result, and the controller will control the light strip to flash in the rhythm of the music according to the lighting effect corresponding to the pre-set Rock category.

[0161] Specifically, the target controller generates a target scene based on the control signal, including controlling the lights in the car to flash for a specific music category based on the control signal. As shown in Table 1, multiple lighting effects are set according to the preset music category. The lighting effect is a type of target scene. When receiving a selection input of a target lighting effect from multiple lighting effects corresponding to the preset music category, the relationship information between the preset music category and the target lighting effect is generated. When the music is actually played, after the predicted music category of the target music is determined, the target lighting effect corresponding to the predicted music category can be determined based on the relationship information between the preset music category and the target lighting effect, and then the control signal of the target lighting effect is obtained to control the lights in the car to flash for a specific music category.

[0162] Table 1

[0163] Music Category Lighting effect name Blues breeze, ripples, rush, wave, float, expand, The Wizard of Oz, three bodies Classical breeze, ripples, rush, wave Country Run, Fluctuate, Expand, The Wizard of Oz Disco Rushing, surging, flowing fire Hip-hop Run, wave Jazz breeze, ripples, rush, wave, float Metal Agile, rushing, waving, flowing fire, comet Pop breeze, ripples, rush, wave, float, comet, three bodies Reggae Agile, rushing, volatile, flowing fire Rock Agility, rush, fluctuation, flowing fire, comet, expansion, three bodies

[0164] The specific schemes for the flashing lights corresponding to each lighting effect are as follows:

[0165] Breeze: The light block moves horizontally and the transparency changes gradually. When it reaches the other end of the light bar, it disappears, and then moves in the same direction from the other end. Ripple: The center expands from 3 lamp beads to 14, and then spreads outward from the center until the light block disappears at the border. The length of the light block is 7 lamp beads. When spreading, new light blocks continue to appear in the center. Run: The lamp beads on the light bar show the effect of running fast, starting from one end and moving quickly to the other end. Fluctuation: A single lamp bead gradually spreads to both sides, then shrinks to a single lamp bead, reciprocating motion, and the diffusion length is random. Floating: Simulating the swimming of jellyfish, the center of the light bar gradually changes, the initial 7 lamp beads shrink to 3 lamp beads and accumulate power, and then the speed increases and extends to 9 lamp beads. Expansion: The light block expands from the center to the outside until it fills the entire light bar and then quickly shortens, and this goes back and forth. The Wizard of Oz: The theme colors scroll in turn, and the colors transition gradually. Three bodies: The light block moves back and forth at a uniform speed in the middle of the light bar. The light block on the right side moves around the light block and then quickly moves to the left and disappears. The same is true when the light block on the left side appears. The light block is 5 lamp beads long. Flowing fire: The light bar spreads outwards with light blocks. The light block is 2 lamp beads long. The number of diffused light blocks increases and the length of the light bar becomes shorter. Smart: 3-5 new lamp beads light up randomly, and the starting position overlaps with the left or right light block of the previous position, and eventually fills the entire light bar. Comet: After the color of the lamp beads changes gradually and the transparent gradient changes, the light block slows down, becomes longer and fills the light bar, and finally disappears transparently.

[0166] In the embodiment provided in the present application, classification is mainly based on the phrase information of the music tag information itself and the target description information. Among them, the target description information mainly used is: the number of instruments, the type of instruments, feedback information, chord information, rhythm information and music atmosphere information, etc. First, after obtaining the music tag information, it is necessary to identify the words contained in the tag information itself to see if there are the same phrases as those in the target music category. If so, it is directly classified into the target music category. If not, proceed to the next step.

[0167] The next step is to retrieve the target description information corresponding to the music tag information in order to perform a deeper classification. Ultimately, the music can be classified into the target music category that is most similar to its characteristics, and then the corresponding category lighting effect can be achieved through the controller. It will not blindly store according to the tag information, but will be included in the target music category already in the system to achieve reasonable classification.

[0168] Based on the scene determination method based on music category provided in the above embodiment, accordingly, the present application also provides a specific implementation of a scene determination device based on music category. Please refer to the following embodiment.

[0169] See first Fig.11The scene determination device 300 based on music category provided in the embodiment of the present application includes: an acquisition module 310, which is used to acquire target tag information of the target music, relationship information between the tag information and the preset music category, and relationship information between the preset music category and the target scene information; a matching module 320, which is used to match the target tag information and the tag information when it is detected that the target tag information does not include the identifier of the preset music category; a determination module 330, which is used to determine, based on the relationship information between the tag information and the preset music category, that the music category corresponding to the tag information matching the target tag information is the predicted music category of the target music; the determination module 330 is also used to determine, based on the relationship information between the preset music category and the target scene information, the predicted target scene information corresponding to the predicted music category; the acquisition module 310 is also used to acquire a control signal for predicting the target scene information, and send the control signal to the target controller, so that the target controller generates the target scene based on the control signal.

[0170] Based on this, in some embodiments, the device 300 may also include: an acquisition module 310, which is also used to acquire tag information of multiple music before acquiring target tag information of the target music; the acquisition module 310 is also used to acquire target description information corresponding to the tag information when it is detected that the tag information does not include an identifier of a preset music category; a determination module 330 is used to determine the target music category corresponding to the target description information based on the target description information using preset classification rules, the preset classification rules including relationship information between the description information and the preset music category, the description information including the target description information, and the preset music category including the target music category; a generation module, which is used to generate relationship information between the tag information and the preset music category; a receiving module, which is used to receive a selection input of target scene information from multiple scene information corresponding to the preset music category; the acquisition module 310 is also used to generate relationship information between the preset music category and the target scene information in response to the selection input.

[0171] Based on this, in some embodiments, the target description information includes the number of musical instruments, and the target music category includes a first music category, a second music category, and a third music category; the determination module 330 is specifically used to: when the number of musical instruments is less than a first preset value, determine that the music is in the first music category; when the number of musical instruments is greater than a second preset value, determine that the music is in the second music category; when the number of musical instruments is not less than the first preset value and not greater than the second preset value, determine that the music is in the third music category.

[0172] Based on this, in some embodiments, the target description information also includes instrument types and chord information, the first music category includes the first sub-music category, the second music category includes the second sub-music category, and the third music category includes the second sub-music category, the third sub-music category, the fourth sub-music category and the fourth music category; the determination module 330 is specifically used to: when the number of musical instruments is a first preset value, detect whether the types of musical instruments include the first category; when the first category is detected from the types of musical instruments, determine that the music is the second sub-music category; when the first category is not detected from the types of musical instruments and the complexity level in the chord information is the first complexity level, determine that the music is the third sub-music category; when the first category is not detected from the types of musical instruments and the complexity level in the chord information is the second complexity level, determine that the music is the fourth sub-music category; when the number of musical instruments is greater than the first preset value and not greater than the second preset value, detect whether the chord type in the chord information is the target chord type; when the chord type in the chord information is the target chord type, determine that the music is the third sub-music category; when the chord type in the chord information is not the target chord type, determine that the music is the fourth music category.

[0173] Based on this, in some embodiments, the fourth music category includes the fifth music category and the sixth music category; the determination module 330 is specifically used to: when the chord type in the chord information is not the target chord type, detect whether the target description information includes feedback information, and the feedback information represents the user's favorite music; when feedback information is detected from the target description information, determine that the music is in the fifth music category; when no feedback information is detected from the target description information, determine that the music is in the sixth music category.

[0174] Based on this, in some embodiments, the target description information also includes music atmosphere information, and the fifth music category includes the fourth sub-music category, the fifth sub-music category, the sixth sub-music category and the first sub-music category; the determination module 330 is specifically used to: in the case where feedback information is detected from the target description information, detect whether the instrument types include the second category; in the case where the second category is detected from the instrument types and the music atmosphere information is the first atmosphere information, determine that the music is the fourth sub-music category; in the case where the second category is detected from the instrument types and the music atmosphere information is the second atmosphere information, determine that the music is the fifth sub-music category; in the case where the second category is detected from the instrument types and the music atmosphere information is the third atmosphere information, determine that the music is the first sub-music category, and the third atmosphere information is the atmosphere information other than the first atmosphere information and the second atmosphere information; in the case where the second category is not detected from the target description information, or the number of instrument types is greater than the third preset value, determine that the music is the sixth sub-music category.

[0175] Based on this, in some embodiments, the sixth music category includes the seventh sub-music category, the seventh music category, the eighth music category, the first sub-music category, the fourth sub-music category and the fifth sub-music category; the determination module 330 is specifically used to: when no feedback information is detected from the target description information, detect whether the instrument types include the third category; when the third category is detected from the instrument types and distortion information is detected in the target description information, determine that the music is the seventh sub-music category; when the third category is detected from the instrument types and distortion information is not detected in the target description information, determine that the music is the seventh music category; when the third category is not detected from the instrument types and the number of instrument types is greater than the third preset value or when it is detected that the instrument types include the fourth category When the third category is not detected from the instrument types, the music is determined to be the eighth music category; when the third category is not detected from the instrument types, the number of instrument types is not greater than the third preset value, the fourth category is not detected from the instrument types, and the music atmosphere information is the first atmosphere information, the music is determined to be the fourth sub-music category; when the third category is not detected from the instrument types, the number of instrument types is not greater than the third preset value, the fourth category is not detected from the instrument types, and the music atmosphere information is the second atmosphere information, the music is determined to be the fifth sub-music category; when the third category is not detected from the instrument types, the number of instrument types is not greater than the third preset value, the fourth category is not detected from the instrument types, and the music atmosphere information is the third atmosphere information, the music is determined to be the first sub-music category.

[0176] Based on this, in some embodiments, the target description information also includes rhythm information, and the seventh music category includes an eighth sub-music category and a ninth sub-music category; the determination module 320 is specifically used to: when the third category is detected from the instrument categories and no distortion information is detected in the target description information, detect whether the rhythm information includes the first rhythm information; when the first rhythm information is detected from the rhythm information, determine that the music is the eighth sub-music category; when the first rhythm information is not detected from the rhythm information, determine that the music is the ninth sub-music category.

[0177] Based on this, in some embodiments, the target description information also includes rhythm information, and the eighth music category includes the first sub-music category, the tenth sub-music category and the eleventh sub-music category; the determination module 330 is specifically used to: when the third category is not detected from the instrument categories, and the number of instrument categories is greater than the third preset value or the instrument categories are detected to include the fourth category, detect whether the rhythm information includes the second rhythm information; when the second rhythm information is not detected from the rhythm information, determine that the music is the first sub-music category; when the second rhythm information is detected from the rhythm information, detect whether the target description information includes lyrics emphasis information; when the lyrics emphasis information is detected from the target description information, determine that the music is the tenth sub-music category; when the lyrics emphasis information is not detected from the target description information, determine that the music is the eleventh sub-music category.

[0178] The various modules of the scene determination device based on music category provided in the embodiment of the present application can realize the functions of the various steps of the scene determination method based on music category provided above and achieve the corresponding technical effects, which will not be repeated here for the sake of concise description.

[0179] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.

[0180] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0181] The electronic device may include a processor 401 and a memory 402 storing computer program instructions.

[0182] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0183] The memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 402 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 402 is a non-volatile solid-state memory.

[0184] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.

[0185] The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement any one of the scene determination methods based on music categories in the above embodiments.

[0186] In one example, the electronic device may further include a communication interface 403 and a bus 410. Fig.12 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 and communicate with each other.

[0187] The communication interface 403 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0188] The bus 410 includes hardware, software or both, coupling the components of the electronic device to each other. For example, but not limitation, the bus may include an accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, an enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) bus, a front side bus (Front Side Bus, FSB), a hypertransport (Hyper Transport, HT) interconnection, an industry standard architecture (Industry Standard Architecture, ISA) bus, an infinite bandwidth interconnection, a low pin count (Linear Predictive Coding, LPC) bus, a memory bus, a micro channel architecture (MicroChannel Architecture, MCA) bus, a peripheral component interconnect (Peripheral Component Interconnect, PCI) bus, a PCI-Express (Peripheral Component Interconnect-X, PCI-X) bus, a serial advanced technology attachment (Serial Advanced Technology Attachment, SATA) bus, a video electronics standard association local (VESA Local Bus, VLB) bus or other suitable buses or a combination of two or more of these. Where appropriate, the bus 410 may include one or more buses. Although the embodiments of the present application describe and illustrate a specific bus, the present application considers any suitable bus or interconnection. The electronic device can execute the scene determination method based on music category in the embodiments of the present invention, thereby realizing the above-mentioned scene determination method based on music category.

[0189] In addition, in combination with the scene determination method based on music category in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the scene determination methods based on music category in the above embodiment is implemented.

[0190] The present application also provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the various processes of any one of the above-mentioned embodiments of the scene determination method based on music category.

[0191] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0192] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable ReadOnly Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0193] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0194] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0195] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A method for determining a scene based on music category, characterized in that: include: Obtaining target tag information of target music, relationship information between the tag information and preset music categories, and relationship information between the preset music categories and target scene information; In the case where it is detected that the target tag information does not include the identifier of the preset music category, matching the target tag information with the tag information; According to the relationship information between the tag information and the preset music category, determining the music category corresponding to the tag information matching the target tag information as the predicted music category of the target music; Determining predicted target scene information corresponding to the predicted music category according to the relationship information between the preset music category and the target scene information; A control signal for predicting the target scene information is obtained, and the control signal is sent to a target controller, so that the target controller generates a target scene based on the control signal.

2. The method for determining a scene based on music category according to claim 1, characterized in that: Before obtaining the target tag information of the target music, the method further includes: Get tag information of multiple music; In the case where it is detected that the tag information does not include the identifier of the preset music category, obtaining target description information corresponding to the tag information; According to the target description information, a target music category corresponding to the target description information is determined using a preset classification rule, the preset classification rule includes relationship information between the description information and the preset music category, the description information includes the target description information, and the preset music category includes the target music category; Generating relationship information between the tag information and the preset music category; Receiving a selection input of the target scene information from a plurality of scene information corresponding to the preset music category; In response to the selection input, relationship information between the preset music category and the target scene information is generated.

3. The method for determining a scene based on music category according to claim 2, characterized in that: The target description information includes the number of musical instruments, and the target music category includes a first music category, a second music category, and a third music category; According to the target description information, determining the target music category corresponding to the target description information by using a preset classification rule includes: When the number of musical instruments is less than a first preset value, determining that the music belongs to the first music category; When the number of musical instruments is greater than a second preset value, determining that the music is a second music category; When the number of musical instruments is not less than the first preset value and not greater than the second preset value, the music is determined to be a third music category.

4. The method for determining a scene based on music category according to claim 3, characterized in that: The target description information further includes the type of musical instrument and chord information, the first music category includes a first sub-music category, the second music category includes a second sub-music category, and the third music category includes the second sub-music category, the third sub-music category, the fourth sub-music category, and the fourth music category; when the number of musical instruments is not less than the first preset value and not greater than the second preset value, determining that the music is the third music category includes: When the number of musical instruments is the first preset value, detecting whether the types of musical instruments include a first type; In the case where the first category is detected from the instrument categories, determining that the music is the second sub-music category; When the first category is not detected from the instrument categories and the complexity level in the chord information is the first complexity level, determining that the music is the third sub-music category; When the first category is not detected from the instrument categories and the complexity level in the chord information is the second complexity level, determining that the music is the fourth sub-music category; In a case where the number of musical instruments is greater than the first preset value and not greater than the second preset value, detecting whether the chord type in the chord information is a target chord type; When the chord type in the chord information is a target chord type, determining that the music is the third sub-music category; When the chord type in the chord information is not the target chord type, the music is determined to be the fourth music category.

5. The method for determining a scene based on music category according to claim 4, characterized in that: The fourth music category includes a fifth music category and a sixth music category; and when the chord type in the chord information is not a target chord type, determining that the music is the fourth music category includes: In a case where the chord type in the chord information is not a target chord type, detecting whether the target description information includes feedback information, wherein the feedback information indicates that the user likes the music; In case the feedback information is detected from the target description information, determining that the music is the fifth music category; In a case where the feedback information is not detected from the target description information, the music is determined to be the sixth music category.

6. The method for determining a scene based on music category according to claim 5, characterized in that: The target description information also includes music atmosphere information, the fifth music category includes the fourth sub-music category, the fifth sub-music category, the sixth sub-music category and the first sub-music category; The step of determining that the music is of the fifth music category when the feedback information is detected from the target description information includes: In case the feedback information is detected from the target description information, detecting whether the musical instrument category includes a second category; When the second category is detected from the instrument categories and the music atmosphere information is the first atmosphere information, determining that the music is the fourth sub-music category; When the second category is detected from the instrument categories and the music atmosphere information is the second atmosphere information, determining that the music is the fifth sub-music category; When the second category is detected from the instrument categories and the music atmosphere information is third atmosphere information, determining that the music is the first sub-music category, and the third atmosphere information is atmosphere information other than the first atmosphere information and the second atmosphere information; When the second category is not detected from the target description information, or the number of the musical instrument types is greater than a third preset value, the music is determined to be the sixth sub-music category.

7. The method for determining a scene based on music category according to claim 5, characterized in that: The sixth music category includes a seventh sub-music category, a seventh music category, an eighth music category, the first sub-music category, the fourth sub-music category and a fifth sub-music category; The step of determining that the music is of the sixth music category when the feedback information is not detected from the target description information includes: In a case where the feedback information is not detected from the target description information, detecting whether the musical instrument categories include a third category; In a case where the third category is detected from the musical instrument categories and distortion information is detected in the target description information, determining that the music is the seventh sub-music category; When the third category is detected from the musical instrument categories and no distortion information is detected in the target description information, determining that the music is the seventh music category; In a case where the third type is not detected from the types of musical instruments and the number of the types of musical instruments is greater than a third preset value or it is detected that the types of musical instruments include the fourth type, determining that the music is the eighth music category; In the case where the third category is not detected from the instrument categories, the number of the instrument categories is not greater than the third preset value, the fourth category is not detected from the instrument categories, and the music atmosphere information is the first atmosphere information, determining that the music is the fourth sub-music category; When the third category is not detected from the instrument categories, the number of the instrument categories is not greater than a third preset value, the fourth category is not detected from the instrument categories, and the music atmosphere information is the second atmosphere information, determining that the music is the fifth sub-music category; When the third type is not detected from the instrument types, the number of the instrument types is not greater than a third preset value, the fourth type is not detected from the instrument types, and the music atmosphere information is the third atmosphere information, the music is determined to be the first sub-music category.

8. The method for determining a scene based on music category according to claim 7, characterized in that: The target description information further includes rhythm information, the seventh music category includes an eighth sub-music category and a ninth sub-music category; when the third category is detected from the instrument categories and no distortion information is detected in the target description information, determining that the music is the seventh music category includes: In a case where the third type is detected from the types of musical instruments and distortion information is not detected in the target description information, detecting whether the rhythm information includes first rhythm information; In the case where the first rhythm information is detected from the rhythm information, determining that the music is the eighth sub-music category; In a case where the first rhythm information is not detected from the rhythm information, the music is determined to be the ninth sub-music category.

9. The method for determining a scene based on music category according to claim 7, characterized in that: The target description information further includes rhythm information, the eighth music category includes the first sub-music category, the tenth sub-music category, and the eleventh sub-music category; when the third category is not detected from the instrument categories, and the number of the instrument categories is greater than a third preset value or it is detected that the instrument categories include the fourth category, determining that the music is the eighth music category includes: In the case that the third type is not detected from the musical instrument types, and the number of the musical instrument types is greater than a third preset value or it is detected that the musical instrument types include a fourth type, detecting whether the rhythm information includes second rhythm information; In the case where the second rhythm information is not detected from the rhythm information, determining that the music is the first sub-music category; In case the second rhythm information is detected from the rhythm information, detecting whether the target description information includes lyrics emphasis information; In the case where the lyrics emphasis information is detected from the target description information, determining that the music is a tenth sub-music category; In the case where the lyrics emphasis information is not detected from the target description information, the music is determined to be an eleventh sub-music category.

10. A scene determination device based on music category, characterized in that: include: An acquisition module, used to acquire target tag information of target music, relationship information between the tag information and a preset music category, and relationship information between the preset music category and target scene information; A matching module, configured to match the target tag information with the tag information when it is detected that the target tag information does not include the identifier of the preset music category; A determination module, configured to determine, based on the relationship information between the tag information and the preset music category, that the music category corresponding to the tag information matching the target tag information is the predicted music category of the target music; The determination module is further used to determine the predicted target scene information corresponding to the predicted music category according to the relationship information between the preset music category and the target scene information; The acquisition module is further used to acquire a control signal of the predicted target scene information and send the control signal to the target controller so that the target controller generates a target scene based on the control signal.

Citation Information

Cited By

  • Audio classification method and device, storage medium and electronic equipment

    CN119673211A