Music score conversion method and device, electronic equipment and computer storage medium
By obtaining score information and conversion instructions, filtering and extracting target scores or combining scores with splitting strategies, the conversion problems caused by differences between different scores are solved, and efficient and low-cost score conversion and beginner-assisted learning are achieved.
Patent Information
- Application Number
- CN202411656274.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-03-11
AI Technical Summary
There are differences between different music scores, which makes it difficult for users to convert quickly when they need a specific type of music score, and there are problems of low conversion efficiency and high cost.
By obtaining music score information and conversion instructions, obtaining the conversion type based on the conversion instructions, and filtering the database to determine whether the target score exists. If it exists, extract and mark the output; if it does not exist, split the score information using a split strategy to combine to obtain the target score.
It enables users to quickly obtain required music scores, improves conversion efficiency and reduces costs, and helps beginners better identify and correct errors through marking and prompt signals.
Smart Images

Figure CN119600977A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of music, and in particular to a music score conversion method, device, electronic device and computer storage medium. Background Art
[0002] Music notation is a method of recording music using symbols, either printed or handwritten. Different cultures and regions have developed different ways of notating music. Both five-line notation and simplified notation are notations for recording pitches, while six-line notation for guitar and reduced notation for guqin are notations for recording fingerings.
[0003] Since there are certain differences between different scores, when a user needs a certain type of score, the existing score needs to be converted, which is difficult for the user to convert the score. Therefore, how to quickly convert the score becomes an urgent problem to be solved. Summary of the invention
[0004] In order to quickly convert music scores, the present application provides a music score conversion method, device, electronic device and computer storage medium.
[0005] The present application provides a music score conversion method using the following technical solution: A music score conversion method, comprising: Get music score information and conversion instructions; Acquire a conversion type based on the conversion instruction; Screening a database based on the conversion type to determine whether the database includes a corresponding target music score; If the target music score exists, extracting the target music score; The target music score is marked based on the conversion type and output.
[0006] By adopting the above technical solution, the electronic device obtains the score information and the conversion instruction, and then obtains the conversion type based on the conversion instruction, that is, the conversion instruction is used to know what kind of musical instrument and what type of score needs to be converted, and then the electronic device screens the database based on the conversion type to determine whether the target score corresponding to the treasure house exists in the database. If the target score exists, the electronic device extracts the target score, and the electronic device marks and outputs the target score based on the conversion type. The user can obtain the required score relatively quickly, with higher efficiency and lower cost, and the electronic device marks the target score, which is also convenient for beginners to better distinguish.
[0007] Optionally, when the database does not contain the target music score, the method further includes: Obtaining a splitting strategy based on the conversion type; Splitting the music score information based on the splitting strategy to obtain unit sounds; Recording the unit tone sequence; Acquire a corresponding sound based on the conversion type and the unit sound; The corresponding tones are combined based on the unit tone sequence to obtain a target musical score.
[0008] By adopting the above technical solution, when there is no target music score in the database, the electronic device obtains a splitting strategy based on the conversion type, splits the music score information based on the splitting strategy to obtain unit sounds, and in the splitting process, the electronic device records the order of the unit sounds, and then the electronic device obtains corresponding sounds based on the conversion type and the unit sounds, and then combines the corresponding sounds based on the order of the unit sounds to obtain the target music score, that is, if the existing corresponding target music score cannot be obtained, the music score information is split to obtain the corresponding sounds based on each part of the unit sounds, and then combine to obtain the target music score.
[0009] Optionally, before combining the corresponding sounds based on the unit sound sequence to obtain the target music score, the method further includes: Determining whether there is the unit sound for which the corresponding sound cannot be obtained; If it exists, extracting the unit sound that cannot obtain the corresponding sound, and using the extracted unit sound as the sound to be grouped; Acquire the adjacent unit sounds based on the to-be-grouped sounds, and use the adjacent unit sounds as adjacent sounds; Splitting and combining the adjacent sounds and the to-be-grouped sounds to obtain a recombined sound; Determining whether the recombined corresponding sound exists based on the recombined sound; If the recombined sound has the recombined corresponding sound, the unit sound is corrected based on the recombined sound.
[0010] By adopting the above technical scheme, before combining corresponding sounds based on the order of unit sounds to obtain the target music score, the electronic device determines whether there is a unit sound and fails to obtain the corresponding sound. If there is a unit sound and the corresponding sound is obtained, the electronic device extracts such unit sound and uses the extracted unit sound as the sound to be grouped. Because there may be certain differences between different music scores and different musical instruments, when splitting, the splitting may cause the sound to be unable to correspond. Therefore, the unit sound adjacent to the sound to be grouped is obtained and used as the adjacent sound. Then the adjacent sound and the sound to be grouped are split and recombined to obtain the recombined sound. After that, matching is performed again based on the recombined sound to determine whether the recombined sound has a recombined corresponding sound. If the recombined sound has a recombined corresponding sound, the electronic device corrects the unit sound based on the recombined sound, thereby obtaining a complete and correct target music score.
[0011] Optionally, before the correcting the unit sound based on the reorganized sound, the method further includes: Obtaining the number of the recombined corresponding sounds; determining whether the quantity is one; If the number is one, the step of correcting the unit tone based on the recombined tone is performed; If the number is greater than one, obtaining first historical data; Filtering the first historical data based on the reorganized corresponding sound; Obtain the number of times the reorganized corresponding sound corresponds; Sorting the recombined corresponding sounds in descending order based on the number of times; The recombined corresponding sounds are generated into a sequence to be selected in sorted order.
[0012] By adopting the above technical solution, before correcting the unit sound based on the reorganized sound, the electronic device obtains the number of the reorganized corresponding sound, and then determines whether the number is one. If the number is one, the electronic device corrects the unit sound based on the reorganized sound. If the number is greater than one, the electronic device obtains the first historical data, and then screens the first historical data based on the reorganized corresponding sound to obtain the number of times the reorganized corresponding sound corresponds, and then sorts the reorganized corresponding sound in descending order based on the number of times, and then generates a candidate sequence for the reorganized corresponding sound in the sorted order. There may be multiple corresponding situations, in which case they are sorted based on the number of occurrences, and then a candidate sequence is generated for the user to select.
[0013] Optionally, after combining the corresponding tones based on the unit tone sequence to obtain a target music score, the method further includes: Performing pitch fitting based on the music score information to generate a first curve; Performing pitch fitting based on the target music score to generate a second curve; Determining whether the first curve coincides with the second curve; If they do not overlap, obtain the non-overlapping part; Acquire the corresponding sound based on the non-overlapping part, and use the acquired corresponding sound as an error sound; A prompt signal is output based on the error sound.
[0014] By adopting the above technical solution, after the electronic device combines corresponding sounds based on the order of unit sounds to obtain the target music score, the electronic device performs pitch fitting based on the music score information to generate a first curve, and performs pitch fitting based on the target music score to generate a second curve. Then the electronic device determines whether the first curve and the second curve overlap, that is, verifies the generated target music score. If they do not overlap, the electronic device obtains the non-overlapping part, and then obtains the corresponding corresponding sound based on the non-overlapping part, uses the obtained corresponding sound as an error sound, and then outputs a prompt signal based on the error sound to prompt the user that there is a problem with the tone here and there may be an error.
[0015] Optionally, before determining whether the first curve coincides with the second curve, the method further includes: Determine whether an adjustment instruction is received; If an adjustment instruction is received, obtaining an adjustment strategy based on the adjustment instruction; Adjusting the second curve based on the adjustment strategy to obtain the correction curve; The correction curve is assigned to the second curve.
[0016] By adopting the above technical solution, before determining whether the first curve and the second curve overlap, the electronic device determines whether an adjustment instruction is received, and if the adjustment instruction is received, an adjustment strategy is obtained based on the adjustment instruction, and then the second curve is adjusted based on the adjustment strategy to obtain a correction curve, and then the correction curve is assigned to the second curve. By adjusting the second curve, the pitch of the target score can be more consistent with the score information.
[0017] Optionally, the determining whether an adjustment instruction is received includes: Obtaining second historical data; filtering the second historical data based on the corresponding sound and the conversion type; Determining whether there is conversion data in the second historical data; If the conversion data exists, extracting the conversion data; determining whether the corresponding sound is adjusted in the conversion data; If there is adjustment of the corresponding sound in the conversion data, the adjustment instruction is extracted.
[0018] By adopting the above technical solution, the electronic device obtains the second historical data, and then filters the second historical data based on the corresponding sound and the conversion type, so as to determine whether there is conversion data in the second historical data. If there is conversion data in the second historical data, the conversion data is extracted, and then it is determined whether the corresponding sound is adjusted in the conversion data. If there is an adjustment to the corresponding sound in the conversion data, the adjustment instruction is extracted, that is, the adjustment instruction is received at this time.
[0019] In the second aspect, the present application provides a music score conversion device that adopts the following technical solution: A music score conversion device, comprising: A first acquisition module, used for acquiring music score information and conversion instructions; A second acquisition module, used for acquiring a conversion type based on the conversion instruction; A screening and judging module, used for screening the database based on the conversion type to judge whether the database includes the corresponding target music score; if the target music score exists, the database is transferred to the extraction module; An extraction module, used for extracting the target music score; A marking output module is used to mark and output the target music score based on the conversion type.
[0020] In a third aspect, the present application provides an electronic device that adopts the following technical solution: An electronic device comprises a processor, wherein the processor is coupled to a memory; the processor is used to execute a computer program stored in the memory, so that the electronic device executes the method described in the first aspect.
[0021] In a fourth aspect, the present application provides a computer-readable storage medium that adopts the following technical solution: A computer-readable storage medium includes a computer program or an instruction. When the computer program or the instruction is executed on a computer, the computer is caused to execute the method according to the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a flowchart of the music score conversion method of the embodiment of the present application.
[0023] Figure 2 It is a block diagram of the music score conversion device according to an embodiment of the present application.
[0024] Figure 3 It is a block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] The following is combined with Figure 1-3 This application is described in further detail.
[0026] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. Technical users in this field can make non-creative modifications to the present embodiment as needed after reading this specification. However, as long as it is within the scope of the claims of the present application, it is protected by the patent law.
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technical users in the field without creative work are within the scope of protection of this application.
[0028] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0029] The embodiment of the present application discloses a music score conversion method. The music score conversion method can be executed by an electronic device. The electronic device can be a server or a terminal device, wherein the server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal device can be a smart phone, a tablet computer, a desktop computer, etc., but is not limited thereto.
[0030] The present application embodiment discloses a method for converting music scores. Figure 1 , a music score conversion method includes the following main processes (S100~S500): Step S100, obtaining music score information and conversion instructions; Step S200, obtaining a conversion type based on a conversion instruction; Step S300, screening the database based on the conversion type to determine whether the database includes the corresponding target score; if the target score exists, proceeding to step S400; Step S400, extracting the target music score; Step S500: Mark and output the target music score based on the conversion type.
[0031] The electronic device obtains the score information and the conversion instruction, that is, the electronic device obtains the score to be converted and the corresponding conversion instruction, and the electronic device obtains the conversion type based on the conversion instruction, that is, the electronic device needs to know what type and instrument the score to be converted needs to be converted into, and then the electronic device screens the database based on the conversion type to determine whether the database includes the corresponding target score. If the target score exists, the target score is extracted, and the extracted target score is marked, that is, the type, the corresponding instrument, etc. are marked, and then output. It may be necessary to convert multiple types of scores, so the output target score is marked to facilitate the user to distinguish, and the conversion process can realize automatic conversion, improve convenience, and be efficient.
[0032] As an optional implementation of an embodiment of the present application, when there is no target music score in the database, it also includes: obtaining a splitting strategy based on a conversion type; splitting the music score information based on the splitting strategy to obtain unit sounds; recording the order of unit sounds; obtaining corresponding sounds based on the conversion type and the unit sounds; and combining corresponding sounds based on the order of unit sounds to obtain the target music score.
[0033] When there is no corresponding target score in the database, the electronic device obtains a splitting strategy based on the conversion type, splits the score information based on the splitting strategy to obtain unit sounds, which can be a beat, a syllable, etc. At the same time, the electronic device records the order of the unit sounds, and then the electronic device obtains the corresponding sound based on the conversion type and the unit sound, and the corresponding sound is the part corresponding to the unit sound after conversion, and then the electronic device combines the corresponding sounds based on the order of the unit sounds to obtain the target score. Since there is no target score directly corresponding to the score information, the score information is split, so as to match the corresponding part with the split content, and then combine.
[0034] As an optional implementation of an embodiment of the present application, before corresponding sounds are combined based on the order of unit sounds to obtain the target music score, it also includes: judging whether there are unit sounds for which corresponding sounds cannot be obtained; if so, extracting unit sounds for which reorganized corresponding sounds cannot be obtained, and using the extracted unit sounds as sounds to be grouped; obtaining adjacent unit sounds based on the sounds to be grouped, and using the adjacent unit sounds as adjacent sounds; splitting and combining adjacent sounds and sounds to be grouped to obtain reorganized sounds; judging whether there are reorganized corresponding sounds based on the reorganized sounds; and if the reorganized sounds have reorganized corresponding sounds, correcting the unit sounds based on the reorganized sounds.
[0035] Before the electronic device combines the reorganized corresponding tones based on the order of unit tones to obtain the target score, the electronic device determines whether there are unit tones for which the corresponding tones cannot be obtained. If there are, the electronic device extracts the unit tones for which the reorganized corresponding tones cannot be obtained, and uses the extracted unit tones as the to-be-grouped tones. The electronic device obtains adjacent unit tones based on the to-be-grouped tones, uses the obtained adjacent unit tones as adjacent tones, and then splits and reorganizes based on the adjacent tones and the to-be-grouped tones, thereby obtaining the reorganized tones, and then determines whether there are reorganized corresponding tones based on the reorganized tones, and if there are reorganized corresponding tones in the reorganized tones, the unit tones are corrected based on the reorganized tones. That is, when converting between scores of different types and instruments, there are certain differences, and the corresponding parts may not be obtained after splitting based on the splitting strategy, so these unit tones are screened out at this time, and then this type of unit tones and adjacent unit tones are split and reorganized, and then matched again. When the match is successful, the original unit tones are corrected based on the split and reorganized reorganized tones, thereby obtaining a complete and correct target score.
[0036] As an optional implementation of an embodiment of the present application, before correcting the unit sound based on the recombined sound, it also includes: obtaining the number of recombined corresponding sounds; determining whether the number is one; if the number is one, executing the step of correcting the unit sound based on the recombined sound; if the number is greater than one, obtaining first historical data; filtering the first historical data based on the recombined corresponding sound; obtaining the number of times the recombined corresponding sound corresponds; sorting the recombined corresponding sounds in descending order based on the number of times; and generating a to-be-selected sequence for the recombined corresponding sounds in sorted order.
[0037] Before the electronic device corrects the unit sound based on the reorganized sound, the electronic device obtains the number of reorganized corresponding sounds, and then determines whether the number is one. If the number is one, it indicates that there is a single corresponding sound, so the step of correcting the unit sound based on the reorganized sound is still performed at this time. If the number is greater than one, it indicates that it is not a single correspondence at this time, but corresponds to multiple reorganized corresponding sounds. At this time, the electronic device obtains the first historical data, and then screens the first historical data based on the reorganized corresponding sound to obtain the number of occurrences of the reorganized corresponding sound. Then, the reorganized corresponding sound is sorted based on the number of occurrences, and the sorting order is sorted from large to small according to the number of times, and then the reorganized corresponding sound is generated into a sequence to be selected according to the sorting order. Since there are multiple reorganized corresponding sounds, they are sorted based on the number of occurrences to generate a sequence to be selected, which is convenient for the user to select and determine.
[0038] As an optional implementation of an embodiment of the present application, after the corresponding sounds are combined based on the order of unit sounds to obtain the target music score, it also includes: performing pitch fitting based on the music score information to generate a first curve; performing pitch fitting based on the target music score to generate a second curve; determining whether the first curve overlaps with the second curve; if not, obtaining the non-overlapping part; obtaining the corresponding corresponding sound based on the non-overlapping part, and using the obtained corresponding sound as an error sound; and outputting a prompt signal based on the error sound.
[0039] After the electronic device combines the corresponding sounds based on the unit tone sequence to obtain the target score, the electronic device performs pitch fitting based on the score information to generate a first curve, and then performs pitch fitting based on the target score to generate a second curve, and then the electronic device determines whether the first curve and the second curve overlap. If they do not overlap, it indicates that the pitches of the two scores are different. At this time, the electronic device obtains the non-overlapping part, and then obtains the corresponding corresponding sound based on the overlapping part, and then uses the obtained corresponding sound as an error sound, and outputs a prompt signal based on the error sound to inform the user of the error. Through intelligent simulation, it is determined whether an error occurs, and the user can be prompted when an error occurs, which is convenient for beginners to learn and reduces the possibility of outputting an incorrect target score.
[0040] As an optional implementation of an embodiment of the present application, before determining whether the first curve and the second curve overlap, it also includes: determining whether an adjustment instruction is received; if an adjustment instruction is received, obtaining an adjustment strategy based on the adjustment instruction; adjusting the second curve based on the adjustment strategy to obtain a corrected curve; and assigning the corrected curve to the second curve.
[0041] Before the electronic device determines whether the first curve and the second curve overlap, the electronic device determines whether an adjustment instruction is received. If an adjustment instruction is received, the electronic device obtains an adjustment strategy based on the adjustment instruction, and then adjusts the second curve based on the adjustment strategy to obtain a correction curve. The electronic device then assigns the correction curve to the second curve.
[0042] Specifically, determining whether an adjustment instruction is received includes: obtaining second historical data; filtering the second historical data based on the corresponding sound and the conversion type; determining whether conversion data exists in the second historical data; if conversion data exists, extracting the conversion data; determining whether the corresponding sound is adjusted in the conversion data; if there is an adjustment to the corresponding sound in the conversion data, extracting the adjustment instruction.
[0043] The electronic device obtains the second historical data, and then filters the second historical data based on the corresponding sound and the conversion type to determine whether there is conversion data in the second historical data, that is, whether relevant conversions have been performed in the history. If there is conversion data, it indicates that there is relevant conversion. At this time, the conversion data is extracted, and then it is determined whether the corresponding sound is adjusted in the conversion data. If there is an adjustment to the corresponding sound, the electronic device extracts the corresponding adjustment instruction, that is, it can determine whether the adjustment instruction is received.
[0044] Figure 2 A structural block diagram of a music score conversion device 600 provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the music score conversion device 600 includes: A first acquisition module 601 is used to acquire music score information and conversion instructions; A second acquisition module 602, configured to acquire a conversion type based on a conversion instruction; A screening and judging module 603 is used to screen the database based on the conversion type to determine whether the database includes the corresponding target music score; if the target music score exists, the process proceeds to an extraction module 604; An extraction module 604 is used to extract the target music score; The marking output module 605 is used to mark and output the target music score based on the conversion type.
[0045] In this optional embodiment, the music score conversion device 600 further includes: A first acquisition submodule is used to acquire a splitting strategy based on a conversion type; The first splitting submodule is used to split the music score information based on the splitting strategy to obtain unit sounds; The first recording submodule is used to record the sequence of unit sounds; A second acquisition submodule is used to acquire a corresponding sound based on a conversion type and a unit sound; The first combining submodule is used to combine corresponding notes based on the unit note sequence to obtain a target music score.
[0046] In this optional embodiment, the music score conversion device 600 further includes: The first judgment submodule is used to judge whether there are unit sounds that cannot obtain corresponding sounds before combining corresponding sounds based on the unit sound sequence to obtain the target music score; if there are, extract the unit sounds that cannot obtain corresponding sounds, and use the extracted unit sounds as recombined sounds; A third acquisition submodule is used to acquire adjacent unit sounds based on the recombined sounds, and use the adjacent unit sounds as adjacent sounds; A first splitting and combining submodule, used for splitting and combining adjacent tones and recombined tones to obtain recombined tones; The second judgment submodule is used to judge whether there is a recombined corresponding sound based on the recombined sound; if the recombined sound has a recombined corresponding sound, the unit sound is corrected based on the recombined sound.
[0047] In this optional embodiment, the music score conversion device 600 further includes: A fourth acquisition submodule is used to obtain the number of reorganized corresponding sounds before correcting the unit sound based on the reorganized sound; A third judgment submodule is used to judge whether the number is one; if the number is one, the step of correcting the unit sound based on the recombined sound is performed; if the number is greater than one, the first historical data is obtained; A first screening submodule, used for screening the first historical data based on the reorganized corresponding sound; The fifth acquisition submodule is used to obtain the number of times the corresponding sound is reorganized; A first sorting submodule is used to sort the reorganized corresponding sounds in descending order of the number of times; The first generating submodule is used to generate a sequence to be selected by reorganizing the corresponding sounds in sorting order.
[0048] In this optional embodiment, the music score conversion device 600 further includes: A first fitting submodule, configured to perform pitch fitting based on music score information to generate a first curve after combining corresponding sounds based on a unit tone sequence to obtain a target music score; A second fitting submodule, configured to perform pitch fitting based on the target music score to generate a second curve; The fourth judgment submodule is used to judge whether the first curve and the second curve overlap; if they do not overlap, obtain the non-overlapping part; A sixth acquisition submodule, configured to acquire a corresponding sound based on the non-overlapping portion, and use the acquired corresponding sound as an error sound; The first output submodule is used to output a prompt signal based on the error sound.
[0049] In this optional embodiment, the music score conversion device 600 further includes: A fifth judgment submodule is used to judge whether an adjustment instruction is received before judging whether the first curve and the second curve overlap; if the adjustment instruction is received, obtain an adjustment strategy based on the adjustment instruction; A first adjustment submodule, configured to adjust the second curve based on an adjustment strategy to obtain a correction curve; The first assigning submodule is used to assign the correction curve to the second curve.
[0050] Specifically, the fifth judgment submodule includes: A seventh acquisition submodule, used for acquiring second historical data; A second screening submodule, for screening the second historical data based on the corresponding sound and the conversion type; The sixth judgment submodule is used to judge whether there is conversion data in the second historical data; if there is conversion data, extract the conversion data; The seventh judgment submodule is used to judge whether the corresponding sound is adjusted in the conversion data; if the corresponding sound is adjusted in the conversion data, the adjustment instruction is extracted.
[0051] Figure 3 The electronic device 700 is a block diagram of a structure of an electronic device 700 provided in an embodiment of the present application. The electronic device 700 may be a mobile phone, a tablet computer, a PC, a server, etc. Figure 3 As shown, the electronic device 700 includes a memory 701, a processor 702 and a communication bus 703; the memory and the processor 702 are connected via the communication bus 703. The memory 701 stores a computer program that can be loaded by the processor 702 and execute the electrical cabinet intelligent monitoring method provided in the above embodiment.
[0052] The memory 701 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 701 may include a program storage area and a managed data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function, and instructions for implementing the electrical cabinet intelligent monitoring method provided in the above embodiment, etc.; the managed data storage area may store managed data involved in the electrical cabinet intelligent monitoring method provided in the above embodiment, etc.
[0053] The processor 702 may include one or more processing cores. The processor 702 calls the managed data stored in the memory 701 by running or executing the instructions, programs, code sets or instruction sets stored in the memory 701, performs various functions of the present application and processes the managed data. The processor 702 may be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller and a microprocessor. It is understandable that for different devices, the electronic device used to implement the above-mentioned processor 702 function can also be other, and the embodiment of the present application is not specifically limited.
[0054] The communication bus 703 may include a path to transmit information between the above components. The communication bus 703 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus 703 may be divided into an address bus, a managed data bus, a control bus, etc. For ease of representation, Figure 3 Only one double arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0055] An embodiment of the present application provides a computer storage medium storing a computer program that can be loaded by a processor and execute the electrical cabinet intelligent monitoring method provided in the above embodiment.
[0056] In this embodiment, the computer storage medium may be a tangible device that holds and stores instructions used by the instruction execution device. The computer storage medium may be, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any combination thereof. Specifically, the computer storage medium may be a portable computer disk, a hard disk, a USB flash drive, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a podium random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, an optical disk, a magnetic disk, a mechanical encoding device, and any combination thereof.
[0057] The terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article, or apparatus.
Claims
1. A music score conversion method, characterized in that: include: Get music score information and conversion instructions; Acquire a conversion type based on the conversion instruction; Screening a database based on the conversion type to determine whether the database includes a corresponding target music score; If the target music score exists, extracting the target music score; The target music score is marked based on the conversion type and output.
2. The method according to claim 1, characterized in that When the database does not contain the target music score, the method further includes: Obtaining a splitting strategy based on the conversion type; Splitting the music score information based on the splitting strategy to obtain unit sounds; Recording the unit tone sequence; Acquire a corresponding sound based on the conversion type and the unit sound; The corresponding tones are combined based on the unit tone sequence to obtain a target musical score.
3. The method according to claim 2, characterized in that Before combining the corresponding tones based on the unit tone sequence to obtain the target music score, the method further includes: Determining whether there is the unit sound for which the corresponding sound cannot be obtained; If it exists, extracting the unit sound that cannot obtain the corresponding sound, and using the extracted unit sound as the sound to be grouped; Acquire the adjacent unit sounds based on the to-be-grouped sounds, and use the adjacent unit sounds as adjacent sounds; Splitting and combining the adjacent sounds and the to-be-grouped sounds to obtain a recombined sound; Determining whether the recombined corresponding sound exists based on the recombined sound; If the recombined sound has the recombined corresponding sound, the unit sound is corrected based on the recombined sound.
4. The method according to claim 3, characterized in that Before the unit sound is corrected based on the recombined sound, the method further includes: Obtaining the number of the recombined corresponding sounds; determining whether the quantity is one; If the number is one, the step of correcting the unit tone based on the recombined tone is performed; If the number is greater than one, obtaining first historical data; Filtering the first historical data based on the reorganized corresponding sound; Obtain the number of times the reorganized corresponding sound corresponds; Sorting the recombined corresponding sounds in descending order based on the number of times; The recombined corresponding sounds are generated into a sequence to be selected in sorted order.
5. The method according to claim 2, characterized in that: After combining the corresponding sounds based on the unit sound sequence to obtain a target music score, the method further includes: Performing pitch fitting based on the music score information to generate a first curve; Performing pitch fitting based on the target music score to generate a second curve; Determining whether the first curve coincides with the second curve; If they do not overlap, obtain the non-overlapping part; Acquire the corresponding sound based on the non-overlapping part, and use the acquired corresponding sound as an error sound; A prompt signal is output based on the error sound.
6. The method according to claim 5, characterized in that Before determining whether the first curve and the second curve overlap, the method further includes: Determine whether an adjustment instruction is received; If an adjustment instruction is received, obtaining an adjustment strategy based on the adjustment instruction; Adjusting the second curve based on the adjustment strategy to obtain the correction curve; The correction curve is assigned to the second curve.
7. The method according to claim 6, characterized in that The determining whether the adjustment instruction is received includes: Obtaining second historical data; filtering the second historical data based on the corresponding sound and the conversion type; Determining whether there is conversion data in the second historical data; If the conversion data exists, extracting the conversion data; determining whether the corresponding sound is adjusted in the conversion data; If there is adjustment of the corresponding sound in the conversion data, the adjustment instruction is extracted.
8. A music score conversion device, characterized in that: include: A first acquisition module, used for acquiring music score information and conversion instructions; A second acquisition module, used for acquiring a conversion type based on the conversion instruction; A screening and judging module, used for screening the database based on the conversion type to judge whether the database includes the corresponding target music score; if the target music score exists, the database is transferred to the extraction module; An extraction module, used for extracting the target music score; A marking output module is used to mark and output the target music score based on the conversion type.
9. An electronic device, characterized in that: The electronic device comprises a processor coupled to a memory; the processor is used to execute a computer program stored in the memory so that the electronic device executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The method comprises a computer program or an instruction, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 7.