CN106933810B - Digital translation method, device and system for music numbered musical notation and translator - Google Patents

Digital translation method, device and system for music numbered musical notation and translator Download PDF

Info

Publication number
CN106933810B
CN106933810B CN201511016975.4A CN201511016975A CN106933810B CN 106933810 B CN106933810 B CN 106933810B CN 201511016975 A CN201511016975 A CN 201511016975A CN 106933810 B CN106933810 B CN 106933810B
Authority
CN
China
Prior art keywords
musical notation
numbered musical
note
binary
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201511016975.4A
Other languages
Chinese (zh)
Other versions
CN106933810A (en
Inventor
俞超飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201511016975.4A priority Critical patent/CN106933810B/en
Publication of CN106933810A publication Critical patent/CN106933810A/en
Application granted granted Critical
Publication of CN106933810B publication Critical patent/CN106933810B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Auxiliary Devices For Music (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

The invention discloses a digital translation method, a digital translation device, a digital translation system and a digital translation translator for music numbered musical notation. The digital translation method of the music numbered musical notation comprises the following steps: acquiring a target numbered musical notation, wherein the target numbered musical notation is a music numbered musical notation to be translated; executing binary coding on the target numbered musical notation according to a preset coding rule to obtain binary numbered musical notation codes; and sending the numbered musical notation code to a terminal, wherein the terminal is used for decoding the numbered musical notation code according to a preset decoding rule to obtain a decoded numbered musical notation. The invention solves the technical problem that the program can not identify the music numbered musical notation.

Description

Digital translation method, device and system for music numbered musical notation and translator
Technical Field
The invention relates to the field of translators, in particular to a digital translation method, a digital translation device, a digital translation system and a translator for music numbered musical notation.
Background
The music numbered musical notation is a simple music notation method, and reflects music elements such as the height, the length and the length of a sound, the strength of the sound, the timbre of the sound and the like. Currently, when music is played according to a music numbered musical notation, the music numbered musical notation is displayed to identify numbered musical notation information of the music. The music numbered musical notation can be displayed in a digitalized manner, for example, the music numbered musical notation is drawn into a picture, and the information of the music numbered musical notation is displayed in the form of the picture, so that music is played according to the information of the music numbered musical notation on the picture. The conventional method for digitizing the numbered musical notation similar to the picture can realize the display of the music numbered musical notation, but the program cannot identify the information of the music numbered musical notation on the picture and cannot adjust and expand the function of the music numbered musical notation, thereby restricting the research and development of the function of the music numbered musical notation. On the other hand, the file format for displaying the music numbered musical notation is disordered, and the file for recording the music numbered musical notation is large, for example, the file for displaying the music numbered musical notation in a picture form is usually several K to dozens of K, so that the functions related to the music numbered musical notation cannot be well expanded.
Aiming at the problem that a program cannot identify a music numbered musical notation, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a digital translation method, a digital translation device, a digital translation system and a digital translation translator for music numbered musical notation, which at least solve the technical problem that a program cannot identify the numbered musical notation.
According to one aspect of the embodiment of the invention, a method for digitally translating a music numbered musical notation is provided. The digital translation method of the music numbered musical notation comprises the following steps: acquiring a target numbered musical notation, wherein the target numbered musical notation is a music numbered musical notation to be translated; executing binary coding on the target numbered musical notation according to a preset coding rule to obtain binary numbered musical notation codes; and sending the numbered musical notation code to a terminal, wherein the terminal is used for decoding the numbered musical notation code according to a preset decoding rule to obtain a decoded numbered musical notation.
According to another aspect of the embodiment of the invention, a digital translation device for music numbered musical notation is also provided. The digital translation device of the music numbered musical notation comprises: the acquiring unit is used for acquiring a target numbered musical notation, wherein the target numbered musical notation is a music numbered musical notation to be translated; the coding unit is used for executing binary coding on the target numbered musical notation according to a preset coding rule to obtain binary numbered musical notation codes; and the transmitting unit is used for transmitting the numbered musical notation codes to the terminal, wherein the terminal is used for decoding the numbered musical notation codes according to a preset decoding rule to obtain decoded numbered musical notation.
According to another aspect of the embodiment of the invention, a digital translation system of the music numbered musical notation is also provided. The digital translation system of the music numbered musical notation comprises: the encoder is used for acquiring a target numbered musical notation, wherein the target numbered musical notation is a music numbered musical notation to be translated, and binary encoding is performed on the target numbered musical notation according to a preset encoding rule to obtain binary numbered musical notation encoding; and the terminal is used for receiving the numbered musical notation codes and decoding the numbered musical notation codes according to a decoding rule to obtain decoded numbered musical notation.
According to another aspect of the embodiment of the invention, a translator is also provided. The translator comprises the digital translation device of the music numbered musical notation.
In the embodiment of the invention, a method for acquiring a target numbered musical notation, performing binary coding on the target numbered musical notation according to a preset coding rule to obtain binary numbered musical notation codes, and transmitting the numbered musical notation codes to a terminal is adopted, wherein the target numbered musical notation is a music numbered musical notation to be translated, the terminal is used for decoding the numbered musical notation codes according to a preset decoding rule to obtain decoded numbered musical notation, the binary coding is performed on the acquired target numbered musical notation according to the preset coding rule, and the obtained binary numbered musical notation codes are transmitted to the terminal, so that the aim of coding the target numbered musical notation is achieved, the translation of the target numbered musical notation is realized, the technical effect that the music numbered musical notation is identified by a program is achieved, and the technical problem that the music numbered musical notation cannot be identified by the program is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of a system for digital translation of music numbered musical sections according to an embodiment of the present invention;
fig. 2 is a block diagram of a hardware configuration of a computer terminal of a digital translation method of a music numbered musical notation according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method for digitally translating music numbered musical phrases in accordance with an embodiment of the present invention;
FIG. 4 is a flowchart of a method of performing binary encoding on the numbered musical notation header information according to a preset encoding rule according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for performing binary encoding on numbered musical notation content information according to a preset encoding rule according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a target numbered musical notation according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of an apparatus for digital translation of music numbered musical sections according to an embodiment of the present invention;
FIG. 8 is an alternative apparatus for digital translation of music numbered musical sections according to embodiments of the present invention; and
fig. 9 is a block diagram of a computer terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
The embodiment of the invention provides an embodiment of a digital translation system of a music numbered musical notation.
FIG. 1 is a schematic diagram of a system for digital translation of music numbered musical sections according to an embodiment of the present invention. As shown in fig. 1, the digital translation system for music numbered musical notation includes:
the encoder 10 is configured to acquire a target numbered musical notation, where the target numbered musical notation is a music numbered musical notation to be translated; and executing binary coding on the target numbered musical notation according to a preset coding rule to obtain binary numbered musical notation codes.
And the terminal 20 is used for receiving the numbered musical notation codes and decoding the numbered musical notation codes according to a preset decoding rule to obtain decoded numbered musical notation.
The encoder 10 described above acquires the target numbered musical notation before encoding the target numbered musical notation. The target numbered musical notation is a music numbered musical notation to be translated. The music numbered musical notation can be letter numbered musical notation and also can be digital numbered musical notation. The letter numbered musical notation is represented by letters, the numeric numbered musical notation is based on a mobile note name method, namely, the numeric numbered musical notation represents the phonography of each scale by a plurality of specific syllables, 7 basic scales in the scale are represented by 1, 2, 3, 4, 5, 6 and 7, the reading of the 7 basic scales are do, re, mi, fa, sol, la and si respectively, and the symbol of sound pause is represented by 'O'. Optionally, the encoder 10 acquires a digital numbered musical notation to be translated, and performs encoding on the digital numbered musical notation to be translated according to a preset encoding rule. The computer identifies the information represented by the binary system, executes binary coding on the digital numbered musical notation to be translated, and carries out digital conversion on the digital numbered musical notation to be translated. Digitalizing, that is, converting a lot of complex and changeable information into measurable numbers and data, then establishing a proper digital model by the numbers and the data, converting the numbers and the data into a series of binary codes, finally introducing the converted binary codes into a computer, and uniformly processing the converted binary codes by the computer, thereby realizing the digitalization of the information and achieving the purpose of stably and efficiently processing the information. The binary code is a code composed of two basic characters "0" and "1". The code element is one-bit binary code, several code elements can be combined into different combinations, any one combination can be formed into one code word, and the method of using different code words to express different information is binary code.
The target numbered musical notation in this embodiment includes numbered musical notation header information and numbered musical notation content information. The score head information is used for representing the attribute of the target score, and the score content information is used for representing the content of the target score.
After the encoder 10 acquires the target numbered musical notation, binary encoding is performed on the numbered musical notation header information according to a preset encoding rule to obtain encoded header information. Optionally, acquiring multiple attributes corresponding to the numbered musical notation head information; respectively converting the plurality of attributes into a plurality of numerical values; and performing binary conversion on the plurality of numerical values to obtain a binary code of the numbered musical notation header information, and taking the binary code of the numbered musical notation header information as encoding header information.
For example, the score header information is obtained at the encoder 10. Optionally, the multiple attributes corresponding to the score header information are composed of a version number of the target score, a total score measure, a beat measure of each score measure, a beat measure per minute, a key signature of music, and the like, and each part is one byte in length. The multiple attributes are converted into multiple numerical values, for example, the multiple numerical values of the multiple attribute conversion are "1, 15, 4, 80, 3", and the multiple numerical values of "1, 15, 4, 80, 3" are binary-converted to obtain binary codes of the score header information, that is, "00000001, 00001111, 00000100, 01010000, 00000011", "00000001, 00001111, 00000100, 01010000, 00000011" are encoding header information, wherein "00000001" corresponding to "1" indicates that the version number of the target score is 1, "00001111" corresponding to "1" indicates that the target score has a total of 15 score bars, "00000100" corresponding to "4" indicates that the number of beats of each score bar of the target score is four beats, "10000 010" corresponding to "80" indicates that the number of beats of each minute of the target score is 80, and "00000011" corresponding to "indicates that the tone number of the music is C.
The numbered musical notation content information includes a plurality of musical notes, the musical notes being musical symbols representing high, low, long, short variations of the note. Each note includes information on the duration of the note and information on the scale. The note duration of a note is the relative duration between notes, and the note scale information indicates the high and low of the note. The notes may be whole notes, half notes, quarter notes, eighth notes, punctuation notes, pauses, etc. The note duration of a whole note is four beats, for example, "5- - -" indicates that the basic scale 5 is four beats; the note duration of the dichotomous note is two beats, for example, "5-" indicates that the basic scale 5 is two beats; the note duration of a quarter note is one beat, for example, "5" indicates that the note duration of a basic level is one beat; the duration of the octant note is half beat, for example, "5" indicates that the duration of the note at the basic level is half beat; the dotted note is a note with a small dot at the right of the note and represents that the duration of the previous note is prolonged by half, for example, "5" represents that the basic sound level 5 is prolonged by half; the rest symbol indicates a sound rest and is indicated by "0". The scale degrees of the notes, e.g., 1, 2, 3, 4, 5, 6, 7, represent seven basic scale degrees in the scale, each of which is circled under a corresponding number, i.e.,
Figure BDA0000894756500000061
Figure BDA0000894756500000062
seven low octaves in the scale are represented, and the seven basic scales are each dotted with a circle on the corresponding number, that is,
Figure BDA0000894756500000063
representing seven high octaves information in the scale.
After the encoder 10 acquires the target numbered musical notation, binary encoding is performed on the numbered musical notation content information according to a preset encoding rule to obtain encoded content information. The note duration is represented by the note length corresponding to the note, and alternatively, the note length may be represented by a byte value. The scale information is represented by a note value corresponding to a note, and alternatively, the note value may be represented by a byte value.
The encoder 10 acquires notes in the numbered musical notation content information; acquiring the note length of the note; performing binary conversion on the note length to obtain a binary code of the note length; acquiring a note value of a note, wherein the note value is used for representing the scale information of the note; and performing binary conversion on the note value to obtain a binary code of the note value.
Optionally, the notes of this embodiment include a low note, a middle note, and a high note, wherein the note values of the low note and the middle note are different by a preset value, and the note values of the note and the high note are different by a preset value. The bass note in this example is
Figure BDA0000894756500000064
The middle notes are 1, 2, 3, 4, 5, 6, 7 and the high notes are
For example, after the encoder 10 acquires the notes in the numbered musical notation content information, the note length of the notes is acquired. The note duration with one beat is represented by byte value 8, that is, the note length is byte value 8, and byte value 8 is binary-coded and converted into binary code "00001" consisting of "0" and "1000 "; the note duration of two beats is represented by byte value 16, that is, the note length is byte value 16, and the byte value 16 is binary coded and converted into binary code "00010000" consisting of "0" and "1"; a note duration of four beats is represented by byte 32, that is, the note length is byte value 32, and the byte value 32 is binary-coded and converted into binary code "00100000" composed of "0" and "1"; the note duration of half-beat is represented by byte value 4, that is, the note length is byte value 4, the byte value 4 is binary-coded and converted into binary code "00000100" composed of "0" and "1", the note lengths corresponding to the note durations of other notes are binary-converted, and the binary code of the note length of the note is obtained. The encoder 10 obtains the note values of the notes, represents the middle notes 1, 2, 3, 4, 5, 6 and 7 in the scale with byte values 65 to 71, and can perform binary coding on the corresponding byte values 65 to 67 according to the basic scale, and convert the corresponding byte values into binary codes consisting of '0' and '1'; seven low octaves, i.e. bass notes
Figure BDA0000894756500000071
Represented by byte values 57 to 63, binary coding can be performed on the corresponding byte values 57 to 63 according to the low notes, and the binary codes are converted into binary codes consisting of '0' and '1'; seven high octaves, i.e. high notes
Figure BDA0000894756500000072
Figure BDA0000894756500000073
Represented by byte values 73 to 79, binary coding may be performed on the corresponding byte values of 73 to 79 according to the high notes, resulting in binary codes consisting of "0", "1", and the rest may be represented by "0", resulting in binary codes of note values of the notes.
After the encoder 10 acquires the binary code of the note length and the binary code of the note value, the binary code of the note length and the binary code of the note value are combined to obtain the binary code of the note, and the binary code of the note is used as the encoded content information.
For example, in the numbered musical notation subsection | 6. of the target numbered musical notation5In |, "6 ·" means that the note value of the basic sound level "6" is one and a half beats, the byte value of the note length is 12, the binary code thereof is "00001100", the byte value of the note value of the basic sound level "6" is 70, and the binary code thereof is "01000110"; "5The "note value indicating the basic sound level" 5 "is half beat, the byte value of the note length is 4, the binary code thereof is" 00000100 ", the byte value of the note value of the basic sound level" 5 "is 69, the binary code thereof is" 01000101 ". After the encoder 10 obtains the binary code of the note length and the binary code of the note value, the binary code of the note length and the binary code of the note value are combined to obtain the binary code of the note, and the binary code of the note is used as the encoding content information, so that the numbered musical notation measure |6 ·5| may be digitally represented as binary code "00001100, 01000110, 00000100, 01000101".
The target numbered musical notation includes a plurality of numbered musical notation sections, the plurality of sections may include a plurality of musical notes, and the encoder 10 acquires the plurality of numbered musical notation sections in the numbered musical notation content information, respectively acquiring the musical notes in the plurality of numbered musical notation sections. Optionally, the obtaining of the musical notes in the numbered musical notation content information includes: acquiring a plurality of numbered musical notation sections in the numbered musical notation content information; the notes in a plurality of numbered musical notation sections are respectively obtained. After the notes in the numbered musical notation content information are obtained, binary conversion is respectively carried out on the note lengths corresponding to the notes in the numbered musical notation sections, and binary codes of the note lengths corresponding to the notes in the numbered musical notation sections can be respectively obtained; and binary conversion is respectively carried out on the note values corresponding to the notes in the numbered musical notation sections, so that binary codes of the note values corresponding to the notes in the numbered musical notation sections can be respectively obtained, then the note lengths and the note values corresponding to the notes in the numbered musical notation sections are respectively combined, the binary codes of the notes in the numbered musical notation sections are respectively obtained, the binary codes of the notes in the numbered musical notation sections are used as coding content information, so that numbered musical notation codes are obtained, and the numbered musical notation codes are digitized numbered musical notation and can be identified by a program.
The terminal 20 is configured to receive the numbered musical notation codes from the encoder 10, and perform decoding on the numbered musical notation codes according to a preset decoding rule to obtain decoded numbered musical notation. Optionally, the numbered musical notation code may be decrypted by parsing, and the preset decoding rules correspond to the preset coding rules one to one. The terminal 20 converts the binary code of the numbered musical notation into the byte value of the numbered musical notation, and corresponds the byte value of the numbered musical notation with the information in the target numbered musical notation to obtain the information of the target numbered musical notation. Optionally, the binary numbered musical notation code comprises a binary code of numbered musical notation header information and a binary code of numbered musical notation content information. The terminal 20 converts the binary code of the numbered musical notation header information into the byte value of the numbered musical notation header information, and corresponds the byte value of the numbered musical notation header information with the multiple attributes in the numbered musical notation header information, so as to obtain the multiple attributes in the numbered musical notation header information. The numbered musical notation content information comprises a binary code of note length and a binary code of note value, the terminal 20 converts the binary code of note length into a byte value of note length, converts the binary code of note value into a byte value of note value, finally corresponds the byte value of note length with the note value of note, corresponds the byte value of note value with the sound level of note, and the terminal 20 obtains multiple attributes in the numbered musical notation head information of the target numbered musical notation, and the note duration value and the sound level of note in the numbered musical notation content information, thereby obtaining the information of the target numbered musical notation, and plays music according to the decoded target numbered musical notation.
The terminal 20 of this embodiment may be a musical instrument such as a piano, a zither, a guitar, etc., and automatically plays music according to the decoded numbered musical notation, and the user terminal may also play music by itself according to the decoded numbered musical notation.
The digital translation system of the target numbered musical notation of the embodiment obtains the target numbered musical notation through the encoder 10, the target numbered musical notation is a music numbered musical notation to be translated, binary coding is performed on the target numbered musical notation according to a preset coding rule to obtain binary numbered musical notation codes, the numbered musical notation codes are received through the terminal 20, decoding is performed on the numbered musical notation codes according to a preset decoding rule to obtain decoded numbered musical notation, the purpose of coding the target numbered musical notation is achieved, translation of the target numbered musical notation is achieved, the technical effect that the music numbered musical notation is identified by a program is achieved, and the technical problem that the music numbered musical notation cannot be identified by the program is solved.
Example 2
Embodiments of the present invention also provide an embodiment of a method for digitally translating music numbered musical notation, it should be noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the example of running on a computer terminal, fig. 2 is a block diagram of a hardware structure of the computer terminal of the digital translation method of music numbered musical notation according to the embodiment of the present invention. As shown in fig. 2, the computer terminal a may include one or more (only one shown) processors 202 (the processors 202 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 204 for storing data, and a transmission module 206 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 2 is only an illustration and is not intended to limit the structure of the electronic device. For example, computer terminal A may also include more or fewer components than shown in FIG. 2, or have a different configuration than shown in FIG. 2.
The memory 204 can be used for storing software programs and modules of application software, such as program instructions/modules corresponding to the digital translation method of music numbered musical notation in the embodiment of the present invention, and the processor 202 executes various functional applications and data processing by running the software programs and modules stored in the memory 204, that is, implements the above-mentioned digital translation method of music numbered musical notation. Memory 204 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 204 may further include memory located remotely from the processor 202, which may be connected to the computer terminal a via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 206 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal a. In one example, the transmission device 206 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 206 can be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the foregoing operating environment, the present application provides a method for digitally translating a music numbered musical notation as shown in fig. 3, and it should be noted that the method for digitally translating a music numbered musical notation of this embodiment may be executed by a system for digitally translating a music numbered musical notation.
Fig. 3 is a flowchart of a method for digitally translating a music numbered musical notation according to an embodiment of the present invention. As shown in fig. 3, an alternative of the method for digitally translating music numbered musical notation includes the following steps:
and step S32, acquiring a target numbered musical notation, wherein the target numbered musical notation is a music numbered musical notation to be translated.
In the scheme provided by the above step S32 of the present application, a target numbered musical notation is acquired. The target numbered musical notation is a music numbered musical notation to be translated. Alternatively, the target numbered musical notation can be an alphabetical numbered musical notation and also can be a digital numbered musical notation. The music is composed of alternate high and low tones, the digital numbered musical notation can indicate the high and low of the tones, the intensity of the tones is indicated by the number of points right above or below the numbers, when the tones are stronger, the number of points right above the numbers in the digital numbered musical notation is more, and when the tones are weaker, the number of points right below the numbers in the digital numbered musical notation is less. Besides the pitch, the numerical numbered musical notation can indicate the length of the sound. The height and length of the sound determine that the music is different from other music and become the basic factor of the music. The digital numbered musical notation can mark the sound with reasonable height and length. And acquiring the target numbered musical notation, and optionally acquiring information such as the height, the length and the like of the sound in the target numbered musical notation.
The target numbered musical notation comprises a plurality of notes for representing the height and the length of the sound or the discontinuity of the sound, and the notes with the same height or different heights and lengths are organized through rhythm and beat to form a tune with certain music image. The duration of a note can be represented by the duration of the note, and the height of the note can be represented by the scale of the note. And acquiring the target numbered musical notation, wherein the step of acquiring the note duration of each note in the target numbered musical notation and the tone level information of each note. For example, note durations such as a whole note, a half note, a quarter note, an eighth note, and an attaching point note in the target numbered musical notation are obtained, a basic level, a low octave level, a high octave level, and the like in the target numbered musical notation are obtained, and a rest symbol in the target numbered musical notation can also be obtained. The target numbered musical notation may be a notation in which each scale is represented by a plurality of specific syllables, for example, 1, 2, 3, 4, 5, 6, 7 represents 7 basic levels in the scale, different pitches are represented, and the symbol of sound pause is represented by "O", so that the corresponding scale and note duration of each note in the target numbered musical notation are obtained by obtaining the target numbered musical notation.
The target numbered musical notation comprises a plurality of attributes of the music numbered musical notation, such as the version number of the target numbered musical notation, the total number of the numbered musical notation sections, the number of beats of each numbered musical notation section, the number of beats per minute, the tone marks of the music, and the like. And acquiring the target numbered musical notation, including acquiring the version number of the target numbered musical notation, the total number of the numbered musical notation sections, the number of beats of each numbered musical notation section, the number of beats per minute and the tone mark of music. Optionally, the target numbered musical notation of the embodiment further includes author information of the target numbered musical notation, such as name of the author, age of the author, experience profile of the author, and the like, and the target numbered musical notation further includes information of song title of the target numbered musical notation, creation time of the target numbered musical notation, and the like, and the embodiment may further add lyric information and the like corresponding to the target numbered musical notation in a database storing the target numbered musical notation, so as to obtain detailed information of the target numbered musical notation.
In this embodiment, the music numbered musical notation to be translated is obtained by obtaining the target numbered musical notation, and optionally, the numbered musical notation to be translated includes note duration, tone level, multiple attributes of the target numbered musical notation, and the like of each note in the music numbered musical notation.
And step S34, performing binary coding on the target numbered musical notation according to a preset coding rule to obtain binary numbered musical notation codes.
In the solution provided in the above step S34 of the present application, the music corresponding to the target numbered musical notation is finally played at the terminal. All information in the terminal is displayed by binary codes "0", "1". The terminal processes the information, the processed information needs to be converted into data forms of '0' and '1', and the terminal also receives the binary code and identifies and processes the information represented by the binary code. And after the target numbered musical notation is obtained, binary coding is carried out on the target numbered musical notation according to a preset coding rule. Optionally, the information in the target numbered musical notation is represented by a numerical value, the numerical value is converted into a binary code according to a binary numerical value and a binary conversion rule, so that the information in the target numbered musical notation and the converted binary code have a corresponding relationship, and the target numbered musical notation is converted into a binary numbered musical notation code, wherein the binary numbered musical notation code is in a data form represented by the binary code, and can be processed and expanded by a terminal, so that the digital processing of the target numbered musical notation is realized.
Optionally, the executing the binary coding on the target numbered musical notation according to the preset coding rule in this embodiment includes executing the binary coding on the digital numbered musical notation according to the preset rule to obtain the binary coding of the digital numbered musical notation, and may also execute the binary coding on the letter numbered musical notation according to the preset coding rule to obtain the binary coding of the letter numbered musical notation.
The target numbered musical notation includes information about the music, such as the version number of the music, the total number of numbered musical notation bars, the number of beats per numbered musical notation bar, the number of beats per minute, the key signature of the music, the pitch of the note, the note duration of the note, and the like, and the note in this embodiment includes an inactivity. Alternatively, information such as the version number of music, the total number of numbered musical notation bars, the number of beats per musical notation bar, the number of beats per minute, the key signature of music, the pitch of note, the note duration of note, and the like is expressed in terms of bytes.
According to the embodiment, binary coding is performed on the target numbered musical notation according to the preset coding rule to obtain binary numbered musical notation codes, so that the purpose of coding the target numbered musical notation is achieved, and translation of the target numbered musical notation is achieved.
And step S36, sending the numbered musical notation code to a terminal, wherein the terminal is used for decoding the numbered musical notation code according to a preset decoding rule to obtain a decoded numbered musical notation.
In the scheme provided in the above step S36, after the binary coding is performed on the target numbered musical notation according to the preset coding rule, the binary numbered musical notation code is obtained, and the binary numbered musical notation code can be identified by the program of the terminal. And sending the numbered musical notation code to a terminal, analyzing the numbered musical notation code after the terminal receives the numbered musical notation code, and executing decoding according to a preset decoding rule to obtain a decoded numbered musical notation. Optionally, the preset decoding rules correspond to the preset encoding rules one to one. In the process of decoding the coded numbered musical notation according to a preset decoding rule, binary codes of the numbered musical notation are converted into byte values of numbered musical notation codes, the byte values corresponding to different binary codes in the numbered musical notation codes are different, the converted byte values of the numbered musical notation codes correspond to information in a target numbered musical notation to obtain information of the target numbered musical notation, and music is played according to the decoded target numbered musical notation, so that the technical effect of identifying the music numbered musical notation by a program is achieved.
The embodiment obtains the decoded numbered musical notation by sending the numbered musical notation code to the terminal and decoding the numbered musical notation code according to the preset decoding rule through the terminal, thereby achieving the technical effect that the music numbered musical notation is identified by the program.
Through the steps S32 to S36, the scheme provided by the invention can realize the acquisition of a target numbered musical notation, then the binary coding is executed on the target numbered musical notation according to a preset coding rule to obtain a binary numbered musical notation code, and finally the numbered musical notation code is sent to the terminal, the target numbered musical notation is a music numbered musical notation to be translated, the terminal can execute the decoding on the numbered musical notation code according to a preset decoding rule to obtain a decoded numbered musical notation, the binary coding is executed on the acquired target numbered musical notation according to the preset coding rule, and the obtained binary numbered musical notation code is sent to the terminal, so that the purpose of coding the target numbered musical notation is achieved, the translation of the target numbered musical notation is realized, the technical effect that the music numbered musical notation is identified by a program is achieved, and the technical problem that the music numbered musical notation cannot be identified by the program is solved.
As an optional implementation manner, after the target numbered musical notation is acquired in step S32 of the present application, the method for digitally translating a music numbered musical notation according to the embodiment of the present invention may further include: and extracting the score head information and the score content information from the target score. In step S34 of the present application, performing binary encoding on the target numbered musical notation according to a preset encoding rule includes: and performing binary coding on the numbered musical notation header information according to a preset coding rule to obtain coded header information, and performing binary coding on the numbered musical notation content information according to the preset coding rule to obtain coded content information.
The score header information is used to represent attributes of the target score, such as the version number of the target score, the total number of score bars, the number of beats per score bar, the number of beats per minute, the key signature of music, and the like. Extracting the score head information from the target score comprises extracting the version number of the target score, the total number of the score bars, the number of beats of each score bar, the number of beats per minute, the key signature of music and the like. Optionally, extracting the score header information from the target score further includes extracting information of a name of an author, an age of the author, a history profile of the author, a song name of the target score, an authoring time of the target score, and the like. After extracting the numbered musical notation header information of the target numbered musical notation from the target numbered musical notation, binary coding is carried out on the numbered musical notation header information according to a preset coding rule, namely, the binary coding is carried out on the attributes of the version number of the target numbered musical notation, the total number of numbered musical notation sections, the number of beats of each numbered musical notation section, the number of beats per minute, the tone mark of music and the like according to the preset rule, and the coded header information is obtained.
The numbered musical notation content information is used for representing the content of the target numbered musical notation. The numbered musical notation content information includes a plurality of musical notes, the musical notes being musical symbols representing high, low, long, short variations of the note. Each note includes information on the duration of the note and information on the scale level of the note. The note duration of a note, the relative duration between notes, and the note's scale represents the pitch of the note. Extracting the numbered musical notation content information from the target numbered musical notation includes extracting note duration information and level information of individual notes from the target numbered musical notation. After extracting the numbered musical notation content information from the target numbered musical notation, binary coding is carried out on the numbered musical notation content information according to a preset coding rule to obtain the coded content information, namely, binary coding is carried out on the note duration information and the note level information of each note in the numbered musical notation content information according to the preset coding rule to obtain the coded information of each note, thereby obtaining the coded content information of the target numbered musical notation.
According to the embodiment, the numbered musical notation head information and the numbered musical notation content information are extracted from the target numbered musical notation, binary coding is carried out on the numbered musical notation head information according to the preset coding rule to obtain the coded head information, and the binary coding is carried out on the numbered musical notation content information according to the preset coding rule to obtain the coded content information, so that different parts in the target numbered musical notation are extracted, and further the binary coding is carried out on different parts in the target numbered musical notation.
As an alternative embodiment, the step S34 of the present application performs binary coding on the target numbered musical notation according to the preset coding rule, including performing binary coding on the numbered musical notation header information according to the preset coding rule. Fig. 4 is a flowchart of a method of performing binary encoding on the short-cut-list header information according to a preset encoding rule according to an embodiment of the present invention. As shown in fig. 4, the method for performing binary encoding on the pair of numbered musical notation header information according to the preset encoding rule includes the following steps:
step S402, acquiring a plurality of attributes corresponding to the numbered musical notation head information.
The target numbered musical notation comprises numbered musical notation head information, and after the numbered musical notation head information is extracted from the target numbered musical notation, a plurality of attributes corresponding to the numbered musical notation head information of the target numbered musical notation are obtained, namely, the information of the version number of the target numbered musical notation, the total number of small nodes of the numbered musical notation, the number of beats per minute, the number of key tones of music and the like is obtained.
Step S404, respectively converting the plurality of attributes into a plurality of numerical values.
After acquiring multiple attributes corresponding to the score header information, the multiple attributes are converted into multiple numerical values, optionally, the multiple attributes are converted into byte values, and different attributes are represented by the byte values.
Step S406, binary conversion is carried out on the numerical values to obtain binary codes of the numbered musical notation header information, and the binary codes of the numbered musical notation header information are used as encoding header information.
The multiple attributes corresponding to the score header information are information such as the version number of the target score, the total score bar number, the number of beats of each score bar, the number of beats per minute, the tone mark of music and the like. After converting the plurality of attributes into a plurality of values, respectively, binary conversion is performed on the plurality of values, and the length of each of the plurality of values may be set to one byte for binary conversion. Wherein, the version number is represented by a binary code corresponding to the version number, the total number of numbered bars of the numbered musical notation is represented by a binary code corresponding to the number of numbered bars of the numbered musical notation, the number of beats of each numbered bar of the numbered musical notation is represented by a binary code corresponding to the number of beats, the number of beats per minute is represented by a binary code corresponding to the number of beats, the key number A is represented by '1', the binary code of the key number A is '00000001', the key number B is represented by '2', the binary code of the key number B is '00000010', the key number C is represented by '3', the binary code of the key number C is '00000011', the key number D is represented by '4', the binary code of the key number D is '00000100', the number of the version number of the target numbered musical notation, the total number of numbered bars of the numbered musical notation, the number of beats per minute of music and other information are combined to obtain the binary code of the numbered musical notation head information, and the binary code of the numbered musical notation head information is used as the coding head information, so that the translation of the target numbered musical notation is realized.
The coded header information in the embodiment of the invention is digitized music numbered musical notation header information and has good analytic performance, namely, the terminal decodes the coded header information according to a preset decoding rule to obtain a decoded numbered musical notation of the coded header information, and can expand the decoded numbered musical notation of the coded header information, thereby enriching the music numbered musical notation header information. And the terminal acquires information such as the version number of the target numbered musical notation, the total numbered musical notation nubs, the number of beats of each numbered musical notation nub, the number of beats per minute, the tone mark of music and the like according to the decoded numbered musical notation of the coded header information.
According to the embodiment, the multiple attributes corresponding to the numbered musical notation head information are obtained, then the multiple attributes are converted into the multiple numerical values respectively, the multiple numerical values are subjected to binary conversion to obtain the binary codes of the numbered musical notation head information, the binary codes of the numbered musical notation head information are used as the coded head information, the purpose that the binary codes are executed on the numbered musical notation head information according to the preset coding rule is achieved, the target numbered musical notation is translated, and the technical effect that the music numbered musical notation is identified by the program is achieved.
As an alternative implementation manner, the step S34 of the present application performs binary coding on the target numbered musical notation according to the preset coding rule, including performing binary coding on the numbered musical notation content information according to the preset coding rule. Fig. 5 is a flowchart of a method for performing binary encoding on numbered musical notation content information according to a preset encoding rule according to an embodiment of the present invention. As shown in fig. 5, the method for performing binary encoding on the numbered musical notation content information according to the preset encoding rule includes the following steps:
step S502, obtaining the musical notes in the numbered musical notation content information.
The target numbered musical notation comprises numbered musical notation content information, the numbered musical notation content information comprises a plurality of musical notes, and the target numbered musical notation represents the high, low, long and short changing effects of the sound through the plurality of musical notes. After the numbered musical notation content information is extracted from the target numbered musical notation, the musical notes in the numbered musical notation content information are obtained. Each note in the target numbered musical notation includes information on the note duration and level information. For example, four beats, two beats, one beat, and half beats all represent note duration values. The note value is used to represent the scale information of the note. The scale degrees of the notes, e.g., 1, 2, 3, 4, 5, 6, 7, represent seven basic scale degrees in the scale, each of which is circled under a corresponding number, i.e.,
Figure BDA0000894756500000161
representing seven low octaves in a scale,if seven basic sound levels are respectively added with two dots under corresponding numbers, the basic sound levels are reduced by two octaves; the seven basic sound levels are each provided with a dot on the corresponding number, i.e.,
Figure BDA0000894756500000162
Figure BDA0000894756500000163
seven high octaves in the scale are shown, if seven basic scale are added with two dots on the corresponding numbers respectively, the basic scale is raised by two octaves. The notes may be whole notes, half notes, quarter notes, eighth notes, punctuation notes, pauses, etc.
In step S504, a note length of the note is obtained, wherein the note length is used for representing a note duration of the note.
Note durations of notes are expressed by note lengths, and after notes in the biographical note content information are acquired, note durations of the notes are acquired and expressed by note lengths corresponding to the notes. Alternatively, the note length is represented by a byte value.
Step S506, binary conversion is performed on the note length to obtain a binary code of the note length.
After the note length of the note is acquired, binary conversion is performed on the note length, thereby obtaining a binary code of the note length.
Alternatively, a note duration of one beat is represented by byte value 8, that is, the note length is byte value 8, and byte value 8 is binary-coded and converted into binary code consisting of "0" and "1"; the note duration of two beats is represented by byte value 16, that is, the note length is byte value 16, and binary coding is performed on byte value 16 to convert the binary code into binary code consisting of '0' and '1'; the note duration of four beats is represented by byte 32, that is, the note length is byte 32, and the byte 32 is binary coded and converted into binary code composed of "0" and "1"; the note duration of half-beat is represented by byte value 4, that is, the note length is byte value 4, the byte value 4 is binary-coded and converted into binary code composed of "0" and "1", the note durations corresponding to other notes are binary-converted, and the binary code of note duration is obtained.
In step S508, a note value of the note is obtained, wherein the note value is used for representing the scale information of the note.
The scale information of the notes is represented by the note values. After the notes in the numbered musical notation content information are acquired, the scale information of the notes is acquired, and the scale information is represented by the note values corresponding to the notes. Alternatively, the note values are represented by byte values.
Acquiring the note values of the notes, and representing seven basic scale levels 1, 2, 3, 4, 5, 6 and 7 in the scale by byte values 65 to 71, namely, the note values of the seven basic scale levels 1, 2, 3, 4, 5, 6 and 7 are numbers in the byte values 65 to 71 respectively; will be low octave
Figure BDA0000894756500000171
Figure BDA0000894756500000172
Represented by byte values 57 to 63, i.e. low octave level
Figure BDA0000894756500000173
The note values of (a) are numbers in byte values 57 to 63, respectively; will be octave high
Figure BDA0000894756500000175
Expressed in byte values 73 to 79, i.e. octave level
Figure BDA0000894756500000176
The note values of (a) are represented by byte values 73 to 79, and the rest may be represented by "0".
In step S510, binary conversion is performed on the note value to obtain a binary code of the note value.
After the note value of the note is obtained, binary conversion is carried out on the note value, namely byte values corresponding to seven basic steps 1, 2, 3, 4, 5, 6 and 7 in the scale are subjected to binary conversion to obtain binary codes of the basic steps; will be low octave
Figure BDA0000894756500000181
Binary conversion is carried out on the corresponding byte values to obtain binary codes of low notes; will be octave high
Figure BDA0000894756500000183
The corresponding byte values are binary-converted to obtain binary codes of high notes, and the rest can be represented by "0" to obtain binary codes of note values of notes.
And S512, combining the binary code of the note length and the binary code of the note value to obtain the binary code of the note, and taking the binary code of the note as the coded content information.
After binary conversion is carried out on the note length to obtain the binary code of the note length, and the note value is subjected to binary conversion to obtain the binary code of the note value, the binary code of the note length and the binary code of the note value are combined to obtain the binary code of the note, and the binary code of the note is used as the coding content information of the target numbered musical notation, so that the target numbered musical notation is translated.
TABLE 1 Note Length and Note value of notes
Figure BDA0000894756500000184
For example, Table 1 shows the note length and note value of a note, where the note name is a whole note, e.g., "5- -", the note having a basic scale of "5" has a duration of four beats, and the four beats correspond to a note length of "32" and a basic scale "The note value of 5 ' is 69, the value after the whole note ' 5- - - ' is converted into the number is ' 32, 69 ', the ' 32, 69 ' is converted into the binary code, and the binary code of ' 5- - - ' is obtained; when the note name is a half note, for example,
Figure BDA0000894756500000185
representing a high octave scale corresponding to a basic scale of "5
Figure BDA0000894756500000186
The note duration of (1) is two beats, the corresponding note length of the two beats is '16',
Figure BDA0000894756500000191
has a note value of 77, a half note
Figure BDA0000894756500000192
The value after the digit conversion is '16, 77', the '16, 77' is converted into a binary code, and the binary code is obtained
Figure BDA0000894756500000193
The binary code of (a); when the note name is a quarter note, for example,the note duration representing the low octave level corresponding to the basic level "5" is one beat, the note length corresponding to one beat is "8",
Figure BDA0000894756500000195
has a note value of 61, quarter note
Figure BDA0000894756500000196
The value after the digit conversion is 8, 61, and the 8, 61 is converted into binary code to obtain
Figure BDA0000894756500000197
The binary code of (a); when the note names are octants, e.g.) "5", indicates the basic toneThe note duration of the level "5" is half beat, the note length corresponding to the half beat is "4", the note value of the basic tone level "5" is 69, the value of the octant note "5" after numerical conversion is "4, 69", the "4, 69" is converted into binary code, and the binary code of "5" is obtained.
The coded content information in the embodiment of the invention is digitized music numbered musical notation content information and has good analytic performance, namely, the terminal decodes the coded content information according to the preset decoding rule to obtain the decoded numbered musical notation of the coded content information, and the function expansion of the decoded numbered musical notation of the coded content information can be carried out, thereby enriching the content information of the music numbered musical notation. Optionally, the terminal is a piano, a zither, a guitar or the like, the decoded numbered musical notation can be identified by a program of the terminal, the expansion terminal performing the function related to the target numbered musical notation automatically plays songs according to the decoded numbered musical notation of the encoded content information, and the user terminal can also play the songs according to the decoded numbered musical notation of the encoded content information, thereby sharing the played songs.
The embodiment obtains the musical notes in the numbered musical notation content information; acquiring the note length of the note; performing binary conversion on the note length to obtain a binary code of the note length; acquiring the note value of the note; performing binary conversion on the note value to obtain a binary code of the note value; and combining the binary code of the note length and the binary code of the note value to obtain the binary code of the note, and taking the binary code of the note as the coded content information, thereby realizing the purpose of executing binary coding on the numbered musical notation content information according to a preset coding rule.
As an alternative implementation, the obtaining of the musical notes in the numbered musical notation content information includes: acquiring a plurality of numbered musical notation sections in the numbered musical notation content information; respectively obtaining notes in a plurality of numbered musical notation sections, wherein performing binary conversion on the note lengths comprises: respectively executing binary conversion on the note lengths corresponding to the notes in the numbered musical notation sections to respectively obtain binary codes of the note lengths corresponding to the notes in the numbered musical notation sections, wherein the executing the binary conversion on the note values comprises the following steps: respectively performing binary conversion on the note values corresponding to the notes in the plurality of numbered musical notation sections to respectively obtain binary codes of the note values corresponding to the notes in the plurality of numbered musical notation sections, wherein the combination of the binary codes of the note lengths and the binary codes of the note values comprises the following steps: and respectively combining the note lengths and the note values corresponding to the notes in the numbered musical notation sections to respectively obtain the binary codes of the notes in the numbered musical notation sections, and taking the binary codes of the notes in the numbered musical notation sections as the coding content information.
In an alternative embodiment, the notes include a low note, a middle note, and a high note, wherein the low note and the middle note have different note values by a preset value, and the middle note and the high note have different note values by a preset value. In this embodiment, the low notes are low octaves
Figure BDA0000894756500000201
The middle notes are basic 1, 2, 3, 4, 5, 6, 7, and the high notes are high octave
Figure BDA0000894756500000202
Figure BDA0000894756500000203
Wherein the low octave scale
Figure BDA0000894756500000204
The corresponding note values are 8 different from the note values corresponding to the basic scale levels 1, 2, 3, 4, 5, 6, 7, the note values corresponding to the basic scale levels 1, 2, 3, 4, 5, 6, 7 are 8 different from the note values corresponding to the octave scale levels
Figure BDA0000894756500000205
With a phase difference of 8.
For example, FIG. 6 is a schematic diagram of a target profile according to an embodiment of the invention. As shown in fig. 6, the target numbered musical notation is a music numbered musical notation of "world has only mom good".
The target numbered musical notation is named ' Ma Hao on the world ', comes from the theme song of the film ' Ma Hao on the world ', and the author information is ' Chua Zhen Tian word ', ' Lin national flag song ', ' Lin \ 32895; ' score making ', and ' 80 ' in the target numbered notation "Indicating that the target numbered musical notation has 80 beats per minute,
Figure BDA0000894756500000206
the target numbered musical notation is represented by C, the quarter note is taken as one beat, and each bar is taken as two beats.
In the target numbered musical notation, the information of the head of the numbered musical notation represents the attribute of the target numbered musical notation, and the information of the head of the target numbered musical notation is as follows: the target numbered musical notation has a version number of 1, a total numbered musical notation measure of fifteen, a beat number of each numbered musical notation measure of four, a beat number of eighty beats per minute, and a key signature of music of C.
By expressing the version number 1 with the byte value "1", the numbered scores of the numbered musical notation in the order of tens of five with the byte value "15", the number of beats per numbered musical notation in the order of four with the byte value "4", the number of beats per minute in the order of eighty with the byte value "80", and the key signature C of the music with the byte value "3", the numbered musical notation header information can be expressed digitally as "1, 15, 4, 80, 3". And performing binary conversion on the '1, 15, 4, 80, 3' to obtain a binary code of the numbered musical notation header information, and taking the binary code of the numbered musical notation header information as encoding header information. Optionally, the encoding of the score header information also includes binary encoding of other information of the song such as song name, author information, etc.
In the target numbered musical notation, the content information of the target numbered musical notation is the content of the target numbered musical notation, and in fifteen numbered musical notation sections of the target numbered musical notation, each numbered musical notation section has a plurality of musical notes, and each musical note has musical note duration information and musical level information. The process of performing binary coding on the target numbered musical notation according to the preset rule is as follows:
first numbered musical notation subsection |6 ·5Wherein, the note duration of "6" is one and a half beats, the note length is 12, and the note value is 70; "5"note duration is half beat, note length is 4, note value is 69, first measure can be expressed as" 12, 70, 4, 69 ", binary conversion is performed on" 12, 70, 4, 69 ", and |6 ·is obtained5A binary code of | is provided.
A first numbered musical notation bar |35|, wherein the note duration of "3" is one beat, the note length is 8, and the note value is 67; the note value of "5" is one beat, the note length is 8, the note value is 69, the second bar can be represented as "8, 67, 8, 69", binary conversion is performed on "8, 67, 8, 69", and a binary code of |35| is obtained.
Third numbered musical notation section
Figure BDA0000894756500000214
Wherein the content of the first and second substances,the note duration of (1) is one beat, the note length is 8, and the note value is 73; "6"note duration is half beat, note length is 4, note value is 70; "5"note duration is half beat, note length is 4, note value is 69, third bar can be expressed as" 8, 73, 4, 70, 4, 69 ", binary conversion is performed on" 8, 73, 4, 70, 4, 69 ", and the result isThe binary code of (2).
The fourth numbered bar |6- |, where the note duration of "6-" is two beats, the note length is 16, and the note value is 70, and the fourth numbered bar can be represented as "16, 70", and binary conversion is performed on "16, 70", resulting in a binary code of |6- |.
Fifth numbered musical notation subsection |35 6Wherein the note duration of "3" is one beat, the note length is 8, and the note value is 67; "5"note duration is half beat, note length is 4, note value is 69; "6"note duration is half beat, note length is 4, note value is 70, fifth bar can be expressed as" 8, 67, 4, 69, 4, 70 ", binary conversion is performed on" 8, 67, 4, 69, 4, 70 ", resulting in |35 6A binary code of | is provided.
Subsection of the sixth numbered musical notation |53 2Wherein the note duration of "5" is one beat, the note length is 8, and the note value is 69; "3"note duration is half beat, note length is 4, note value is 67; "2"the note duration is half beat and toneSymbol length 4, note value 66, sixth subsection may be represented as "8, 69, 4, 67, 4, 66", and binary conversion of "8, 69, 4, 67, 4, 66" results in |53 2A binary code of | is provided.
Section of seventh numbered musical notation
Figure BDA0000894756500000221
Wherein "1"note duration is half beat, note length is 4, note value is 65;
Figure BDA0000894756500000222
the note duration of (1) is half beat, the note length is 4, and the note value is 62; "5"note duration is half beat, note length is 4, note value is 69; "3"note duration is half beat, note length is 4, note value is 67, seventh bar can be expressed as" 4, 65, 4, 62, 4, 69, 4, 67 ", and" 4, 65, 4, 62, 4, 69, 4, 67 "is binary-converted to obtain
Figure BDA0000894756500000223
The binary code of (2).
An eighth bar of the numbered musical notation |2- |, wherein the note duration of "2-" is two beats, the note length is 16, the note value is 66, and the eighth bar can be represented as "16, 66", and binary conversion is performed on "16, 66" to obtain a binary code of |2- |.
Ninth numbered musical notation subsection |2 ·3Wherein, the note duration of "2" is one and a half beats, the note length is 12, and the note value is 66; "3"note duration is half beat, note length is 4, note value is 67, ninth subsection can be expressed as" 12, 66, 4, 67 ", binary conversion is performed on" 12, 66, 4, 67 ", resulting in |2 ·3A binary code of | is provided.
Tenth numbered musical notation subsection |556Wherein the note duration of "5" is one beat, the note length is 8, and the note value is 69; "5"note duration is half beat, note length is 4, note value is 69; "6"the note duration is half beat, note length is 4, note value is" 70 ", tenthA section can be represented as "8, 69, 4, 69, 4, 70", and binary conversion of "8, 69, 4, 69, 4, 70" results in |55 6A binary code of | is provided.
Section of the eleventh numbered musical notation |3 ·2Wherein the note duration of "3" is one and a half beats, the note length is 12, and the note value is 67; "2"note duration is half beat, note length is 4, note value is 66, eleventh notation subsection can be expressed as" 12, 67, 4, 66 ", binary conversion is performed on" 12, 67, 4, 66 "to obtain |3 ·2A binary code of | is provided.
The twelfth bar of the numbered musical notation |1- |, wherein the note duration of "1-" is two beats, the note length is 16, the note value is 65, the twelfth bar can be represented as "16, 65", binary conversion is performed on "16, 65", and the binary code of |1- | is obtained.
Subsection of the thirteenth numbered musical notation |5 ·3Wherein, the note duration of "5" is one and a half beats, the note length is 12, and the note value is 69; "3"note duration is half beat, note length is 4, note value is 67, thirteenth subsection can be expressed as" 12, 69, 4, 67 ", binary conversion is performed on" 12, 69, 4, 67 ", resulting in |5 ·3A binary code of | is provided.
Section of the fourteenth numbered musical notation
Figure BDA0000894756500000231
Wherein, the duration of the '2' note is half beat, the note length is 4, and the note value is 66; the note duration of "1" is half beat, note length is 4, note value is 65;the note duration is half beat, the note length is 4, and the note value is 62;
Figure BDA0000894756500000233
the note duration is half beat, the note length is 4, the note value is 65, the fourteenth measure can be expressed as "4, 66, 4, 65, 4, 62, 4, 65", binary conversion is performed on "4, 66, 4, 65, 4, 62, 4, 65", and the result isThe binary code of (2).
Fifteenth numbered musical notation subsection
Figure BDA0000894756500000235
Wherein the content of the first and second substances,the note duration of (1) is two beats, the note length is 16, the note value is 61, the fifteenth subsection can be expressed as "16, 61", and "16, 61" is subjected to binary conversion to obtain a binary code of |5- |.
And performing binary coding on the notes of the first to fifteenth sections in the target numbered musical notation according to a preset coding rule to obtain numbered musical notation codes, wherein the file size of the numbered musical notation codes is dozens of bytes, and the file size of the target numbered musical notation after picture drawing is several K to dozens of K, so that the file size of the target numbered musical notation is reduced. And sending the obtained numbered musical notation code to a terminal, wherein optionally, the terminal can be a musical instrument such as a piano, a zither, a guitar and the like, the terminal decodes the numbered musical notation code according to a decoding rule corresponding to the coding rule in the embodiment to obtain a decoded numbered musical notation, the decoded numbered musical notation can be identified by a program of the terminal to expand functions related to the target numbered musical notation, the terminal plays music according to the decoded numbered musical notation, and a user can also play songs according to the decoded numbered musical notation and further share the songs.
According to the embodiment of the invention, the target numbered musical notation is obtained, the binary coding is executed on the target numbered musical notation according to the preset coding rule, the binary numbered musical notation code is obtained, the numbered musical notation code is sent to the terminal, the target numbered musical notation is the music numbered musical notation to be translated, the terminal can execute decoding on the numbered musical notation code according to the preset decoding rule to obtain the decoded numbered musical notation, the binary coding is executed on the obtained target numbered musical notation according to the preset coding rule, the purpose of coding the target numbered musical notation is achieved, the translation of the target numbered musical notation is realized, the technical effect that the music numbered musical notation is identified by the program is achieved, and the technical problem that the music numbered musical notation cannot be identified by the program is solved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 3
According to the embodiment of the invention, the invention also provides a device for implementing the digital translation method of the music numbered musical notation. Fig. 7 is a schematic diagram of a digital translation apparatus for music numbered musical notation according to an embodiment of the present invention. As shown in fig. 7, the apparatus for digitally translating music numbered musical notation includes: an acquisition unit 30, an encoding unit 40 and a transmission unit 50.
The acquiring unit 30 is used for acquiring a target numbered musical notation, wherein the target numbered musical notation is a music numbered musical notation to be translated; the encoding unit 40 is used for performing binary encoding on the target numbered musical notation according to a preset encoding rule to obtain binary numbered musical notation encoding; and a sending unit 50, configured to send the numbered musical notation code to a terminal, where the terminal is configured to perform decoding on the numbered musical notation code according to a preset decoding rule to obtain a decoded numbered musical notation.
In the digital translation apparatus for music numbered musical notation of this embodiment, the obtaining unit 30 may be configured to perform step S32 in the embodiment of the present invention, the encoding unit 40 may be configured to perform step S34 in the embodiment of the present invention, and the transmitting unit 50 may be configured to perform step S36 in the embodiment of the present invention.
The above-mentioned acquisition unit 30 of the present application can be used for acquiring a target numbered musical notation. The target numbered musical notation is a music numbered musical notation to be translated. Optionally, the target numbered musical notation may be an alphabetical numbered musical notation or a numeric numbered musical notation, and the information such as the height, length, and the like of the sound in the target numbered musical notation is acquired through the acquiring unit 30. The duration of a note can be represented by the duration of the note, and the height of the note can be represented by the scale of the note. The acquisition unit 30 acquires a target numbered musical notation including acquiring note durations of respective notes and scale information of the respective notes in the target numbered musical notation. For example, the obtaining unit 30 obtains a basic pitch, a low octave pitch, a high octave pitch, etc. in the target numbered musical notation, the obtaining unit 30 obtains note durations such as full notes, half notes, quarter notes, eighth notes, dotted notes, etc. in the target numbered musical notation, and the obtaining unit 30 can also obtain rest symbols in the target numbered musical notation, so as to obtain the target numbered musical notation through the obtaining unit 30, and obtain the pitch and note duration corresponding to each note in the target numbered musical notation.
The target numbered musical notation comprises a plurality of attributes of the music numbered musical notation, such as the version number of the target numbered musical notation, the total number of the numbered musical notation sections, the number of beats of each numbered musical notation section, the number of beats per minute, the tone marks of the music, and the like. The acquisition unit 30 acquires a target numbered musical notation including the version number of the target numbered musical notation, the total number of numbered musical notation bars, the number of beats per numbered musical notation bar, the number of beats per minute, and the key of music. Optionally, the target numbered musical notation of the embodiment further includes author information of the target numbered musical notation, such as name of the author, age of the author, experience profile of the author, and the like, and the target numbered musical notation further includes information of song title of the target numbered musical notation, creation time of the target numbered musical notation, and the like, and lyric information and the like corresponding to the target numbered musical notation may be added to the database storing the target numbered musical notation, so that the obtaining unit 30 may obtain detailed information of the target numbered musical notation.
In this embodiment, the target numbered musical notation is obtained by the obtaining unit 30, so as to obtain a music numbered musical notation to be translated, and optionally, the numbered musical notation to be translated includes note duration, note level, multiple attributes of the target numbered musical notation, and the like of each note in the music numbered musical notation.
The encoding unit 40 may be configured to perform binary encoding on the target numbered musical notation according to a preset encoding rule, so as to obtain binary numbered musical notation codes. After the target numbered musical notation is acquired by the acquisition unit 30, the encoding unit 40 performs binary encoding on the target numbered musical notation according to a preset encoding rule. Optionally, the encoding unit 40 represents information in the target numbered musical notation by a numerical value, converts the numerical value into a binary code according to a binary numerical value and a binary conversion rule, and makes the information in the target numbered musical notation and the converted binary code have a corresponding relationship, so that the encoding unit 40 converts the target numbered musical notation into a binary numbered musical notation code, and the binary numbered musical notation code is in a data form represented by the binary code, and can be processed and expanded by a terminal, thereby implementing digital processing on the target numbered musical notation.
Optionally, the encoding unit 40 of this embodiment performs binary encoding on the digital numbered musical notation according to a preset rule to obtain binary encoding of the digital numbered musical notation, and may also perform binary encoding on the alphabetical numbered musical notation according to a preset encoding rule to obtain binary encoding of the alphabetical numbered musical notation.
The target numbered musical notation includes information about the music, such as the version number of the music, the total number of numbered musical notation bars, the number of beats per numbered musical notation bar, the number of beats per minute, the key signature of the music, the pitch of the note, the note duration of the note, and the like, and the note in this embodiment includes an inactivity. Alternatively, the encoding unit 40 expresses information of the version number of music, the total number of numbered musical notation bars, the number of beats per musical notation bar, the number of beats per minute, the key signature of music, the pitch of note, the note duration of note, and the like in terms of bytes.
The encoding unit 40 of this embodiment performs binary encoding on the target numbered musical notation according to the preset encoding rule to obtain binary numbered musical notation encoding, thereby achieving the purpose of encoding the target numbered musical notation and translating the target numbered musical notation.
The transmitting unit 50 may transmit the numbered musical notation code to the terminal. After the encoding unit 40 performs binary encoding on the target numbered musical notation according to the preset encoding rule, obtaining a binary numbered musical notation code, the binary numbered musical notation code can be identified by a program of the terminal. The sending unit 50 sends the numbered musical notation code to the terminal, and the terminal analyzes the numbered musical notation code after receiving the numbered musical notation code and executes decoding according to a preset decoding rule to obtain a decoded numbered musical notation. Optionally, the preset decoding rules correspond to the preset encoding rules one to one. In the process of decoding the coded numbered musical notation according to a preset decoding rule, converting binary codes of numbered musical notation codes into byte values of numbered musical notation codes, wherein the byte values corresponding to different binary codes in the numbered musical notation codes are different, corresponding the converted byte values of the numbered musical notation codes with information in a target numbered musical notation to obtain information of the target numbered musical notation, and playing music according to the decoded target numbered musical notation.
The transmitting unit 50 of this embodiment transmits the numbered musical notation code to the terminal, and the terminal decodes the numbered musical notation code according to the preset decoding rule to obtain a decoded numbered musical notation, thereby achieving the technical effect that the music numbered musical notation is identified by the program.
As an optional implementation manner, the digital translation apparatus for music numbered musical notation further comprises an extraction unit. Fig. 8 is an alternative apparatus for digitally translating musical numbered musical phrases according to embodiments of the present invention. The digital translation device of the music numbered musical notation comprises an acquisition unit 30, an encoding unit 40, a sending unit 50 and an extraction unit 60. It should be noted that the acquiring unit 30, the encoding unit 40 and the transmitting unit 50 in this embodiment function as those in the digital translation apparatus for music numbered musical notation in the embodiment of the present invention.
The extracting unit 60 is configured to extract score header information and score content information from the target score after the obtaining unit 30 obtains the target score, where the score header information is used to indicate an attribute of the target score, and the score content information is used to indicate content of the target score, and the encoding unit 40 is configured to perform binary encoding on the score header information according to a preset encoding rule to obtain encoded header information, and perform binary encoding on the score content information according to the preset encoding rule to obtain encoded content information.
The score header information is used to represent attributes of the target score, such as the version number of the target score, the total number of score bars, the number of beats per score bar, the number of beats per minute, the key signature of music, and the like. The extraction unit 60 extracts the score header information from the target score including the version number of the extracted target score, the total number of score bars, the number of beats per score bar, the number of beats per minute, the key signature of the music, and the like. Optionally, the extracting unit 60 extracts the score header information from the target score further includes extracting information of a name of an author, an age of the author, a history profile of the author, a song name of the target score, an authoring time of the target score, and the like. After the extracting unit 60 extracts the score header information of the target score from the target score, the encoding unit 40 performs binary encoding on the score header information according to a preset encoding rule, that is, the encoding unit 40 performs binary encoding on the attributes of the version number of the target score, the total number of score bars, the number of beats of each score bar, the number of beats per minute, the key signature of music, and the like according to a preset rule, to obtain encoded header information.
The numbered musical notation content information is used for representing the content of the target numbered musical notation. The numbered musical notation content information includes a plurality of musical notes, the musical notes being musical symbols representing high, low, long, short variations of the note. Each note includes information on the note duration and level information. The note duration of a note, which is the relative duration between notes, is used to represent the note's scale information. The extracting unit 60 extracts the numbered musical notation content information from the target numbered musical notation includes extracting the note time value and note value of each note from the target numbered musical notation. After the extracting unit 60 extracts the numbered musical notation content information from the target numbered musical notation, the encoding unit 40 performs binary encoding on the numbered musical notation content information according to a preset encoding rule to obtain encoded content information, that is, performs binary encoding on the note time value and the note value of each note in the numbered musical notation content information according to the preset encoding rule to obtain encoded information of each note, thereby obtaining the encoded content information of the target numbered musical notation.
As an alternative embodiment, the encoding unit 40 includes: the device comprises a first acquisition module, a first conversion module and a second conversion module. The first acquisition module is used for acquiring a plurality of attributes corresponding to the numbered musical notation head information; the first conversion module is used for respectively converting the plurality of attributes into a plurality of numerical values; the second conversion module is used for performing binary conversion on the plurality of numerical values to obtain a binary code of the numbered musical notation header information, and the binary code of the numbered musical notation header information is used as encoding header information.
The target numbered musical notation includes numbered musical notation header information, and after the extracting unit 60 extracts the numbered musical notation header information from the target numbered musical notation, the first acquiring module acquires a plurality of attributes corresponding to the numbered musical notation header information of the target numbered musical notation, that is, the first acquiring module acquires information such as the version number of the target numbered musical notation, the total number of numbered musical notation bars, the number of beats per minute, and the tune of music.
After the first obtaining module obtains the multiple attributes corresponding to the numbered musical notation head information, the first converting module converts the multiple attributes into multiple numerical values, optionally, the first converting module converts the multiple attributes into byte values, and the different attributes are represented by the byte values.
The multiple attributes corresponding to the score header information are information such as the version number of the target score, the total score bar number, the number of beats of each score bar, the number of beats per minute, the tone mark of music and the like. After the first conversion module converts the plurality of attributes into the plurality of values, the binary conversion is performed on the plurality of values, and the second conversion module may set the lengths of the plurality of values to one byte for the binary conversion.
As an optional implementation, the encoding unit 40 further includes: the device comprises a second acquisition module, a third conversion module, a fourth acquisition module, a fourth conversion module and a combination module. The second acquisition module is used for acquiring notes in the numbered musical notation content information; the third obtaining module is used for obtaining the note length of the note, wherein the note length is used for representing the note duration of the note; the third conversion module is used for performing binary conversion on the note length to obtain a binary code of the note length; the fourth acquisition module is used for acquiring the note value of the note, and the note value is used for representing the note level information; the fourth conversion module is used for performing binary conversion on the note value to obtain a binary code of the note value; the merging module is used for merging the binary code of the note length and the binary code of the note value to obtain the binary code of the note, and the binary code of the note is used as the coded content information.
The target numbered musical notation comprises numbered musical notation content information, the numbered musical notation content information comprises a plurality of musical notes, and the target numbered musical notation represents the high, low, long and short changing effects of the sound through the plurality of musical notes. After the numbered musical notation content information is extracted from the target numbered musical notation extracting unit 60, the second obtaining module obtains musical notes in the numbered musical notation content information. Each note in the target numbered musical notation includes information on the note duration and level information. After the second obtaining module obtains the notes in the numbered musical notation content information, the third obtaining module obtains the note durations of the notes, and the note durations are expressed by the note lengths corresponding to the notes, that is, the third obtaining module obtains the note lengths of the notes, and optionally, the note lengths are expressed by the byte values. After the third obtaining module obtains the note length of the note, the third converting module performs binary conversion on the note length, so as to obtain a binary code of the note length.
The scale information of the notes is represented by the note values. After the second obtaining module obtains the note in the numbered musical notation content information, the fourth obtaining module may obtain a note level of the note, and use the note level of the note for note representation corresponding to the note, that is, the fourth obtaining module obtains a note value of the note, and optionally, the note value is represented by a byte.
After the fourth obtaining module obtains the note value of the note, the fourth converting module performs binary conversion on the note value, so as to obtain a binary code of the note value of the note.
After the third conversion module performs binary conversion on the note length to obtain the binary code of the note length, and the fourth conversion module performs binary conversion on the note value to obtain the binary code of the note value, the binary code of the note length and the binary code of the note value are combined through the combination module to obtain the binary code of the note, and the binary code of the note is used as the coding content information of the target numbered musical notation, so that the target numbered notation is translated.
As an optional implementation manner, the second obtaining module is configured to obtain a plurality of numbered musical notation sections in the numbered musical notation content information, respectively obtain musical notes in the plurality of numbered musical notation sections, the third conversion module is used for respectively performing binary conversion on the note lengths corresponding to the notes in the numbered musical notation sections to respectively obtain binary codes of the note lengths corresponding to the notes in the numbered musical notation sections, the fourth conversion module is used for respectively performing binary conversion on the note values corresponding to the notes in the numbered musical notation sections to respectively obtain binary codes of the note values corresponding to the notes in the numbered musical notation sections, the merging module is used for respectively merging the note lengths and the note values corresponding to the notes in the numbered musical notation sections to respectively obtain the binary codes of the notes in the numbered musical notation sections, and the binary codes of the notes in the numbered musical notation sections are used as coding content information.
In the embodiment of the present invention, a target numbered musical notation is obtained by the obtaining unit 30, binary coding is performed on the target numbered musical notation according to a preset coding rule by the coding unit 40 to obtain binary numbered musical notation codes, the numbered musical notation codes are sent to the terminal by the sending unit 50, wherein, the target numbered musical notation is a music numbered musical notation to be translated, the terminal is used for decoding the numbered musical notation codes according to a preset decoding rule to obtain a decoded numbered musical notation, the encoding unit 40 executes binary encoding on the target numbered musical notation acquired by the acquisition unit 30 according to a preset encoding rule, and the transmitting unit 50 transmits the obtained binary numbered musical notation code to the terminal, so that the purpose of encoding the target numbered musical notation is achieved, translation of the target numbered musical notation is realized, therefore, the technical effect that the music numbered musical notation is identified by the program is achieved, and the technical problem that the music numbered musical notation cannot be identified by the program is solved.
Example 4
The embodiment of the invention also provides a translator. It should be noted that the translator according to the embodiment of the present invention includes the digital translation apparatus for music numbered musical notation according to the embodiment of the present invention, and may be used to execute the digital translation method for music numbered musical notation according to the embodiment of the present invention, and details are not described herein again.
The translator can be applied to listening of a baby, can achieve the purpose of encoding a target numbered musical notation, and realizes translation of the target numbered musical notation, thereby achieving the technical effect that a music numbered musical notation is identified by a program, and further solving the technical problem that the music numbered musical notation cannot be identified by the program.
Example 5
The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the storage medium may be configured to store a program code executed by the digital translation method for music numbered musical notation of the above embodiment.
Optionally, in this embodiment, the storage medium may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
the method comprises the steps of firstly, obtaining a target numbered musical notation, wherein the target numbered musical notation is a music numbered musical notation to be translated.
And secondly, performing binary coding on the target numbered musical notation according to a preset coding rule to obtain binary numbered musical notation codes.
And thirdly, transmitting the numbered musical notation code to a terminal, wherein the terminal is used for decoding the numbered musical notation code according to a preset decoding rule to obtain a decoded numbered musical notation.
Optionally, the storage medium is further arranged to store program code for performing the steps of: extracting score head information and score content information from a target score, wherein the score head information is used for representing the attribute of the target score, the score content information is used for representing the content of the target score, and the executing binary coding on the target score according to a preset coding rule comprises the following steps: and performing binary coding on the numbered musical notation header information according to a preset coding rule to obtain coded header information, and performing binary coding on the numbered musical notation content information according to the preset coding rule to obtain coded content information.
Optionally, the storage medium is further arranged to store program code for performing the steps of: acquiring multiple attributes corresponding to the numbered musical notation head information; respectively converting the plurality of attributes into a plurality of numerical values; and performing binary conversion on the plurality of numerical values to obtain a binary code of the numbered musical notation header information, and taking the binary code of the numbered musical notation header information as encoding header information.
Optionally, the storage medium is further arranged to store program code for performing the steps of: acquiring musical notes in the numbered musical notation content information; acquiring the note length of the note, wherein the note length is used for expressing the note duration of the note; performing binary conversion on the note length to obtain a binary code of the note length; acquiring the note value of the note, wherein the note value is used for representing the tone scale of the note; performing binary conversion on the note value to obtain a binary code of the note value; and combining the binary code of the note length and the binary code of the note value to obtain the binary code of the note, and taking the binary code of the note as the coded content information.
Optionally, the storage medium is further arranged to store program code for performing the steps of: acquiring a plurality of numbered musical notation sections in the numbered musical notation content information; respectively obtaining notes in a plurality of numbered musical notation sections, wherein performing binary conversion on the note lengths comprises: respectively executing binary conversion on the note lengths corresponding to the notes in the numbered musical notation sections to respectively obtain binary codes of the note lengths corresponding to the notes in the numbered musical notation sections, wherein the executing the binary conversion on the note values comprises the following steps: respectively performing binary conversion on the note values corresponding to the notes in the plurality of numbered musical notation sections to respectively obtain binary codes of the note values corresponding to the notes in the plurality of numbered musical notation sections, wherein the combination of the binary codes of the note lengths and the binary codes of the note values comprises the following steps: and respectively combining the note lengths and the note values corresponding to the notes in the numbered musical notation sections to respectively obtain the binary codes of the notes in the numbered musical notation sections, and taking the binary codes of the notes in the numbered musical notation sections as the coding content information.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Example 6
The embodiment of the invention also provides a computer terminal, which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced with a terminal device such as a mobile terminal.
Optionally, in this embodiment, the computer terminal may be located in at least one network device of a plurality of network devices of a computer network.
Alternatively, fig. 9 is a block diagram of a computer terminal according to an embodiment of the present invention. As shown in fig. 9, the computer terminal a may include: one or more processors 91 (only one shown), a memory 93, and a transmission device 95.
The memory 93 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for digitally translating a music numbered musical notation in the embodiment of the present invention, and the processor 91 executes various functional applications and data processing by running the software programs and modules stored in the memory 93, that is, implements the above-mentioned method for digitally translating a music numbered musical notation. The memory 93 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 93 may further include memory located remotely from the processor 91, which may be connected to the computer terminal a through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 95 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 95 includes a network adapter (NIC) that can be connected to a router via a network cable and other network devices to communicate with the internet or a local area network. In one example, the transmission device 95 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Specifically, the memory 93 is used for storing preset action conditions, information of preset authorized users, and application programs.
The processor 91 may call the information and applications stored in the memory 93 through the transmission device to perform the following steps:
optionally, the processor 91 may further execute program codes of the following steps:
the method comprises the steps of firstly, obtaining a target numbered musical notation, wherein the target numbered musical notation is a music numbered musical notation to be translated.
And secondly, performing binary coding on the target numbered musical notation according to a preset coding rule to obtain binary numbered musical notation codes.
And thirdly, transmitting the numbered musical notation code to a terminal, wherein the terminal is used for decoding the numbered musical notation code according to a preset decoding rule to obtain a decoded numbered musical notation.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 2 and embodiment 3, and this embodiment is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A digital translation method of a music numbered musical notation is characterized by comprising the following steps:
acquiring a target numbered musical notation, wherein the target numbered musical notation is a music numbered musical notation to be translated;
executing binary coding on the target numbered musical notation according to a preset coding rule to obtain binary numbered musical notation codes; and
the numbered musical notation codes are sent to a terminal, wherein the terminal is used for decoding the numbered musical notation codes according to a preset decoding rule to obtain decoded numbered musical notation;
wherein performing binary coding on the target numbered musical notation according to the preset coding rule comprises: performing binary coding on the numbered musical notation content information according to the preset coding rule to obtain coded content information, wherein the target numbered musical notation comprises the numbered musical notation content information;
wherein, executing binary coding on the numbered musical notation content information according to the preset coding rule comprises:
acquiring musical notes in the numbered musical notation content information;
obtaining a note length of the note, wherein the note length is used for representing a note duration of the note;
performing binary conversion on the note length to obtain a binary code of the note length;
obtaining a note value of the note, wherein the note value is used for representing the sound level of the note;
performing binary conversion on the note value to obtain a binary code of the note value; and
and combining the binary code of the note length and the binary code of the note value to obtain the binary code of the note, and taking the binary code of the note as the coded content information.
2. The method of claim 1,
after acquiring the target numbered musical notation, the method further comprises: extracting the numbered musical notation head information and the numbered musical notation content information from the target numbered musical notation, wherein the numbered musical notation head information is used for representing the attribute of the target numbered musical notation, the numbered musical notation content information is used for representing the content of the target numbered musical notation,
wherein, executing binary coding on the target numbered musical notation according to the preset coding rule further comprises: and performing binary coding on the numbered musical notation head information according to the preset coding rule to obtain coded head information.
3. The method of claim 2, wherein performing binary encoding on the numbered musical notation header information according to the preset encoding rule comprises:
acquiring multiple attributes corresponding to the numbered musical notation head information;
respectively converting the plurality of attributes into a plurality of numerical values; and
and performing binary conversion on the numerical values to obtain a binary code of the numbered musical notation header information, and taking the binary code of the numbered musical notation header information as the coding header information.
4. The method of claim 1,
acquiring notes in the numbered musical notation content information comprises acquiring a plurality of numbered musical notation sections in the numbered musical notation content information; and respectively acquiring notes in the plurality of numbered musical notation sections,
wherein performing a binary conversion of the note length comprises: respectively executing binary conversion on the note lengths corresponding to the notes in the plurality of numbered musical notation sections to respectively obtain binary codes of the note lengths corresponding to the notes in the plurality of numbered musical notation sections,
performing a binary conversion on the note value includes: respectively performing binary conversion on the note values corresponding to the notes in the plurality of numbered musical notation sections to respectively obtain binary codes of the note values corresponding to the notes in the plurality of numbered musical notation sections,
combining the binary code for the note length and the binary code for the note value comprises: and respectively combining the note lengths and the note values corresponding to the notes in the plurality of numbered musical notation sections to respectively obtain the binary codes of the notes in the plurality of numbered musical notation sections, and taking the binary codes of the notes in the plurality of numbered musical notation sections as the coding content information.
5. The method of claim 1, wherein the notes comprise a low note, a middle note and a high note, wherein the low note and the middle note have different note values by a predetermined value, and wherein the middle note and the high note have different note values by the predetermined value.
6. A digital translation device of a music numbered musical notation is characterized by comprising:
the system comprises an acquisition unit, a translation unit and a translation unit, wherein the acquisition unit is used for acquiring a target numbered musical notation, and the target numbered musical notation is a music numbered musical notation to be translated;
the coding unit is used for executing binary coding on the target numbered musical notation according to a preset coding rule to obtain binary numbered musical notation codes; and
the transmitting unit is used for transmitting the numbered musical notation codes to a terminal, wherein the terminal is used for decoding the numbered musical notation codes according to a preset decoding rule to obtain decoded numbered musical notation;
the coding unit is used for performing binary coding on the numbered musical notation content information according to the preset coding rule to obtain coded content information, wherein the target numbered musical notation comprises the numbered musical notation content information;
the encoding unit includes: the system comprises a second acquisition module, a third conversion module, a fourth acquisition module, a fourth conversion module and a combination module, wherein the second acquisition module is used for acquiring notes in the numbered musical notation content information; the third obtaining module is used for obtaining the note length of the note, wherein the note length is used for representing the note duration of the note; the third conversion module is used for performing binary conversion on the note length to obtain a binary code of the note length; the fourth acquisition module is used for acquiring the note value of the note, and the note value is used for representing the note level information; the fourth conversion module is used for performing binary conversion on the note value to obtain a binary code of the note value; the merging module is used for merging the binary code of the note length and the binary code of the note value to obtain the binary code of the note, and the binary code of the note is used as the coded content information.
7. The apparatus of claim 6, further comprising:
an extracting unit, configured to extract the numbered musical notation header information and the numbered musical notation content information from the target numbered musical notation after the target numbered musical notation is acquired, where the numbered musical notation header information is used to indicate an attribute of the target numbered musical notation, and the numbered musical notation content information is used to indicate a content of the target numbered musical notation,
the coding unit is further used for performing binary coding on the numbered musical notation header information according to the preset coding rule to obtain coded header information.
8. A digital translation system for music numbered musical notation, comprising:
the device comprises an encoder, a translation module and a translation module, wherein the encoder is used for acquiring a target numbered musical notation, and the target numbered musical notation is a music numbered musical notation to be translated; executing binary coding on the target numbered musical notation according to a preset coding rule to obtain binary numbered musical notation codes; and
the terminal is used for receiving the numbered musical notation codes and decoding the numbered musical notation codes according to a preset decoding rule to obtain decoded numbered musical notation;
wherein the encoder is configured to: performing binary coding on the numbered musical notation content information according to the preset coding rule to obtain coded content information, wherein the target numbered musical notation comprises the numbered musical notation content information;
wherein the encoder is configured to: acquiring musical notes in the numbered musical notation content information; obtaining a note length of the note, wherein the note length is used for representing a note duration of the note; performing binary conversion on the note length to obtain a binary code of the note length; obtaining a note value of the note, wherein the note value is used for representing the sound level of the note; performing binary conversion on the note value to obtain a binary code of the note value; and combining the binary code of the note length and the binary code of the note value to obtain the binary code of the note, and using the binary code of the note as the coded content information.
9. A translator, comprising a device for digital translation of music numbered musical sections according to claim 6 or 7.
10. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 5 when executed.
11. A computer terminal comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 5 by means of the computer program.
CN201511016975.4A 2015-12-29 2015-12-29 Digital translation method, device and system for music numbered musical notation and translator Active CN106933810B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511016975.4A CN106933810B (en) 2015-12-29 2015-12-29 Digital translation method, device and system for music numbered musical notation and translator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511016975.4A CN106933810B (en) 2015-12-29 2015-12-29 Digital translation method, device and system for music numbered musical notation and translator

Publications (2)

Publication Number Publication Date
CN106933810A CN106933810A (en) 2017-07-07
CN106933810B true CN106933810B (en) 2020-02-07

Family

ID=59441436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511016975.4A Active CN106933810B (en) 2015-12-29 2015-12-29 Digital translation method, device and system for music numbered musical notation and translator

Country Status (1)

Country Link
CN (1) CN106933810B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110893046A (en) * 2018-09-13 2020-03-20 团火科技(北京)有限公司 Intelligent facial mask method, server, data conversion device and facial mask

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663423A (en) * 2012-03-28 2012-09-12 北京航空航天大学 Method for automatic recognition and playing of numbered musical notation image
CN104332154A (en) * 2014-10-22 2015-02-04 周莉 A music score conversion device based on two-dimension codes

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663423A (en) * 2012-03-28 2012-09-12 北京航空航天大学 Method for automatic recognition and playing of numbered musical notation image
CN104332154A (en) * 2014-10-22 2015-02-04 周莉 A music score conversion device based on two-dimension codes

Also Published As

Publication number Publication date
CN106933810A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
Nelson et al. The data compression book 2nd edition
CN109167750B (en) Data packet transmission method and device, electronic equipment and storage medium
CN104978973B (en) A kind of audio-frequency processing method and device
CN107291836B (en) Chinese text abstract obtaining method based on semantic relevancy model
McAnlis et al. Understanding compression: Data compression for modern developers
US20200184948A1 (en) Speech playing method, an intelligent device, and computer readable storage medium
JP5831298B2 (en) Program, information processing apparatus, and index generation method
CN107094021A (en) Data compression
CN112270920A (en) Voice synthesis method and device, electronic equipment and readable storage medium
CN110246472B (en) Music style conversion method and device and terminal equipment
CN105790853B (en) A kind of method and device of sonic transmissions character data
CN113053357B (en) Speech synthesis method, apparatus, device and computer readable storage medium
CN106452607B (en) Method and device for transmitting and analyzing information
KR20200092511A (en) Deep neural network based non-autoregressive speech synthesizer method and system
CN115208414B (en) Data compression method, data compression device, computer device and storage medium
CN112116903A (en) Method and device for generating speech synthesis model, storage medium and electronic equipment
JP2007043595A (en) Variable length code decoding method and device and data decompression device
CN106933810B (en) Digital translation method, device and system for music numbered musical notation and translator
US20160342615A1 (en) Method and device for generating pileup file from compressed genomic data
CN111241853B (en) Session translation method, device, storage medium and terminal equipment
CN113160793A (en) Speech synthesis method, device, equipment and storage medium based on low resource language
CN113781988A (en) Subtitle display method, subtitle display device, electronic equipment and computer-readable storage medium
KR20150030586A (en) Method for providing naming service and apparatus thereof
CN113436591B (en) Pitch information generation method, device, computer equipment and storage medium
CN110335586A (en) A kind of information conversion method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant