CN106933810A - The digitlization interpretation method of music numerical notation, apparatus and system and translater - Google Patents

The digitlization interpretation method of music numerical notation, apparatus and system and translater Download PDF

Info

Publication number
CN106933810A
CN106933810A CN201511016975.4A CN201511016975A CN106933810A CN 106933810 A CN106933810 A CN 106933810A CN 201511016975 A CN201511016975 A CN 201511016975A CN 106933810 A CN106933810 A CN 106933810A
Authority
CN
China
Prior art keywords
numbered musical
musical notation
note
notation
binary
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.)
Granted
Application number
CN201511016975.4A
Other languages
Chinese (zh)
Other versions
CN106933810B (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

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)
  • Electrophonic Musical Instruments (AREA)
  • Auxiliary Devices For Music (AREA)

Abstract

Digitlization interpretation method, apparatus and system and translater the invention discloses a kind of music numerical notation.The digitlization interpretation method of the music numerical notation includes:Target numbered musical notation is obtained, wherein, target numbered musical notation is music numerical notation to be translated;Binary coding is performed according to pre-arranged code rule to target numbered musical notation, binary numbered musical notation coding is obtained;Numbered musical notation is sent to encode to terminal, wherein, terminal is used for numbered musical notation coding according to the regular perform decoding of default decoding, obtains decoding numbered musical notation.The present invention solves the technical problem of program None- identified music numerical notation.

Description

The digitlization interpretation method of music numerical notation, apparatus and system and translater
Technical field
The present invention relates to translater field, in particular to a kind of digitlization translation of music numerical notation Method, apparatus and system and translater.
Background technology
Music numerical notation is a kind of easy music notation, reflects the high and low, long and short of sound, sound The music element such as dynamics, the tone color of sound.At present, when according to music numerical notation playing music, to sound Happy numbered musical notation is shown, to recognize the numbered musical notation information of music.Can by music numerical notation be digitized into Row display, such as, picture is depicted as by music numerical notation, and the letter of music numerical notation is shown in the form of picture Breath, so as to the information playing music according to music numerical notation on picture.The numbered musical notation number of existing similar picture The method of word can realize the display to music numerical notation, but, the sound on program None- identified picture The information of happy numbered musical notation, it is impossible to be adjusted to the function of music numerical notation, extended, so as to constrain to sound The research and development of happy numbered musical notation function.On the other hand, the file format for being shown to music numerical notation is chaotic, note The file for carrying music numerical notation is larger, such as, usually several with the file of graphic form display music numerical notation The K of K to tens, so that the function related to music numerical notation can not extend well.
For the problem of program None- identified music numerical notation, effective solution is not yet proposed at present.
The content of the invention
The embodiment of the invention provides a kind of digitlization interpretation method of music numerical notation, apparatus and system and Translater, with the technical problem of at least settlement procedure None- identified numbered musical notation.
A kind of one side according to embodiments of the present invention, there is provided the digitlization translation side of music numerical notation Method.The digitlization interpretation method of the music numerical notation includes:Target numbered musical notation is obtained, wherein, target numbered musical notation It is music numerical notation to be translated;Binary coding is performed according to pre-arranged code rule to target numbered musical notation, is obtained To binary numbered musical notation coding;Numbered musical notation is sent to encode to terminal, wherein, terminal is used to encode numbered musical notation According to the regular perform decoding of default decoding, obtain decoding numbered musical notation.
Another aspect according to embodiments of the present invention, additionally provides a kind of digitlization translation of music numerical notation Device.The digitlization translating equipment of the music numerical notation includes:Acquiring unit, for obtaining target numbered musical notation, Wherein, target numbered musical notation is music numerical notation to be translated;Coding unit, for target numbered musical notation according to pre- If coding rule performs binary coding, binary numbered musical notation coding is obtained;Transmitting element, for sending out Numbered musical notation is sent to encode to terminal, wherein, terminal is used to perform solution according to default decoding rule to numbered musical notation coding Code, obtains decoding numbered musical notation.
Another aspect according to embodiments of the present invention, additionally provides a kind of digitlization translation of music numerical notation System.The digitlization translation system of the music numerical notation includes:Encoder, for obtaining target numbered musical notation, Wherein, the target numbered musical notation is music numerical notation to be translated, to the target numbered musical notation according to pre-arranged code Rule performs binary coding, obtains binary numbered musical notation coding;Terminal, for receiving the numbered musical notation Coding, to numbered musical notation coding according to the regular perform decoding of decoding, obtains decoding numbered musical notation.
Another aspect according to embodiments of the present invention, additionally provides a kind of translater.The translater includes The digitlization translating equipment of music numerical notation of the invention.
In embodiments of the present invention, using target numbered musical notation is obtained, target numbered musical notation is advised according to pre-arranged code Binary coding is then performed, binary numbered musical notation coding is obtained, numbered musical notation is sent and is encoded to the method for terminal, Wherein, target numbered musical notation is music numerical notation to be translated, and terminal is used for numbered musical notation coding according to default decoding Regular perform decoding, obtains decoding numbered musical notation, by the target numbered musical notation to obtaining according to pre-arranged code rule Binary coding is performed, the binary numbered musical notation coding that will be obtained is sent to terminal, has been reached to target The purpose that numbered musical notation is encoded, realizes and target numbered musical notation is translated, so as to reach music numerical notation By the technique effect of procedure identification, and then solve music numerical notation and cannot be asked by the technology of procedure identification Topic.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the one of the application Part, schematic description and description of the invention is used to explain the present invention, does not constitute to this hair Bright improper restriction.In the accompanying drawings:
Fig. 1 is the schematic diagram of the digitlization translation system of music numerical notation according to embodiments of the present invention;
Fig. 2 is a kind of computer of the digitlization interpretation method of music numerical notation according to embodiments of the present invention The hardware block diagram of terminal;
Fig. 3 is a kind of flow of the digitlization interpretation method of music numerical notation according to embodiments of the present invention Figure;
Fig. 4 is according to embodiments of the present invention to perform two according to pre-arranged code rule to numbered musical notation header information The flow chart of the method for scale coding;
Fig. 5 is according to embodiments of the present invention to perform two according to pre-arranged code rule to numbered musical notation content information The flow chart of the method for scale coding;
Fig. 6 is the schematic diagram of target numbered musical notation according to embodiments of the present invention;
Fig. 7 is the schematic diagram of the digitlization translating equipment of music numerical notation according to embodiments of the present invention;
Fig. 8 is the digitlization translating equipment of a kind of optional music numerical notation according to embodiments of the present invention; And
Fig. 9 is a kind of structured flowchart of terminal according to embodiments of the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the present invention Accompanying drawing in embodiment, is clearly and completely described to the technical scheme in the embodiment of the present invention, Obviously, described embodiment is only the embodiment of a part of the invention, rather than whole implementation Example.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work Under the premise of the every other embodiment that is obtained, should all belong to the scope of protection of the invention.
It should be noted that the term in description and claims of this specification and above-mentioned accompanying drawing " first ", " second " etc. be for distinguishing similar object, without for describe specific order or Precedence.It should be appreciated that the data for so using can be exchanged in the appropriate case, to retouch here The embodiments of the invention stated can be with the order reality in addition to those for illustrating herein or describing Apply.Additionally, term " comprising " and " having " and their any deformation, it is intended that covering is not arranged His includes, for example, contain the process of series of steps or unit, method, system, product or Equipment is not necessarily limited to those steps clearly listed or unit, but may include not list clearly Or for these processes, method, product or other intrinsic steps of equipment or unit.
Embodiment 1
The embodiment of the invention provides a kind of embodiment of the digitlization translation system of music numerical notation.
Fig. 1 is the schematic diagram of the digitlization translation system of music numerical notation according to embodiments of the present invention.Such as Shown in Fig. 1, the digitlization translation system of the music numerical notation includes:
Encoder 10, for obtaining target numbered musical notation, wherein, target numbered musical notation is music numerical notation to be translated; Binary coding is performed according to pre-arranged code rule to target numbered musical notation, binary numbered musical notation coding is obtained.
Terminal 20, for receiving numbered musical notation coding, to numbered musical notation coding according to the regular perform decoding of default decoding, Obtain decoding numbered musical notation.
The above-mentioned encoder 10 of the application obtained target numbered musical notation before coding is performed to target numbered musical notation. Target numbered musical notation is music numerical notation to be translated.Music numerical notation can be alphabetical numbered musical notation, or numeral Numbered musical notation.Wherein, alphabetical numbered musical notation is the numbered musical notation represented with letter, and digital numbered musical notation is with movable sol-fa as base The numbered musical notation of plinth, that is, digital numbered musical notation represents the singing style of each sound level in scale with some specific syllables, 7 basic sound levels in scale, 7 readings of basic sound level are represented with 1,2,3,4,5,6,7 Sound is respectively do, re, mi, fa, sol, la, si, and the symbol that sound stops is represented with " O ". Alternatively, encoder 10 obtains digital numbered musical notation to be translated, to digital numbered musical notation to be translated according to pre- If coding rule performs coding.Computer recognizes the information of binary representation, by numeral letter to be translated Spectrum performs binary coding, and digital numbered musical notation to be translated is digitized into conversion.Digitlization, that is, Many information complicated and changeable are changed into numeral, the data that can be measured, then are built with numeral, data Numeral, data are converted into a series of binary code by vertical appropriate digital model, finally will Inside binary code Import computer after conversion, computer is carried out to the binary code after conversion It is uniformly processed, so as to realize the digitlization of information, reaches to information stability, efficiently processes.Wherein, Binary code is with two base characters " 0 ", the code of " 1 " composition.Code element is a binary system Code, different combinations can be constituted by multiple code elements, and any one is combined into a code word, used Different code words represent that the method for different information is binary coding.
Target numbered musical notation in the embodiment includes numbered musical notation header information and numbered musical notation content information.Numbered musical notation head Information is used to represent the attribute of target numbered musical notation, and numbered musical notation content information is used to represent the content of target numbered musical notation.
After encoder 10 obtains target numbered musical notation, to numbered musical notation header information according to pre-arranged code rule Binary coding is performed, obtains encoding header information.Alternatively, numbered musical notation header information is obtained corresponding Multinomial attribute;Multinomial attribute is converted into multiple numerical value respectively;Multiple numerical value are performed into Binary Conversion, Obtain the binary code of numbered musical notation header information, and using the binary code of numbered musical notation header information as volume Code header information.
For example, numbered musical notation header information is obtained in encoder 10.Alternatively, numbered musical notation header information Corresponding multinomial attribute is version number, the small joint number of total numbered musical notation, each numbered musical notation trifle of target numbered musical notation Bat number, bat number per minute, tone mark of music etc. are constituted, and the length per part is a byte. Multinomial attribute is converted into multiple numerical value, such as, multiple numerical value of multinomial attribute conversion for " 1,15, 4,80,3 ", multiple numerical value " 1,15,4,80,3 " are performed into Binary Conversion, obtains numbered musical notation The binary code of header information, that is, " 00000001,00001111,00000100,01010000, 00000011 ", " 00000001,00001111,00000100,01010000,00000011 " is Coding header information, wherein, " 1 " corresponding " 00000001 " represents that the version number of target numbered musical notation is 1, " 15 " corresponding " 00001111 " represents that target numbered musical notation is total up to 15 numbered musical notation trifles, " 4 " Corresponding " 00000100 " represents the bat number of each numbered musical notation trifle of target numbered musical notation for four clap, " 80 " Corresponding " 01010000 " represents that target numbered musical notation bat number per minute is 80, and " 3 " are corresponding " 00000011 " represents that the tone mark of music is C.
Numbered musical notation content information includes multiple notes, and note is high and low, the long and short change for representing sound Music symbol.Each note includes the information of note duration and the information of sound level.The note duration of note, It is the relative duration between each note, the sound level information of note represents the high and low of note.Note Can be whole note, minim, crotchet, quaver, dotted note, rest etc.. The note duration of whole note is four bats, such as, " 5---- " represents that basic sound level 5 is four bats;Two points The note duration of note is two bats, such as, " 5- " represents that basic sound level 5 is two bats;Crotchet Note duration for one clap, such as, and " 5 " represent basic sound level note duration for one clap;Eight partials The note duration of symbol is clapped for half, such as, " 5 " represent the note duration of basic sound level for half claps;Dot Note is the note of the right with dot of note, represents the half for extending above note duration, than Such as, " 5 " represent that the extension of basic sound level 5 half is clapped;Rest, represents that sound stops, with " 0 " table Show.The sound level of note, such as, 1,2,3,4,5,6,7 represent seven basic announcements in scale Level, seven basic sound levels add round dot under corresponding numeral respectively, that is, Seven low octave sound levels in scale are represented, seven basic sound levels numerically add circle corresponding respectively Point, that is,Represent seven ottava alta sound level information in scale.
After encoder 10 obtains target numbered musical notation, to numbered musical notation content information according to pre-arranged code rule Binary coding is performed, encoded content information is obtained.Note duration is long with note corresponding with note Degree represents that alternatively, note length can be represented with byte value.By sound level information with corresponding with note Note value represent that alternatively, note value can be represented with byte value.
Encoder 10 obtains the note in numbered musical notation content information;Obtain the note length of note;By sound Symbol length performs Binary Conversion, obtains the binary code of note length;The note value of note is obtained, Wherein, note value is used to represent the sound level information of note;Note value is performed into Binary Conversion, is obtained The binary code of note value.
Alternatively, the note of the embodiment includes bass symbol, middle note, note high, wherein, bass Symbol note value difference preset value corresponding with middle note, note note value difference corresponding with note high is pre- If value.Bass in the example accords with and isMiddle note be 1,2,3,4, 5th, 6,7, note high is
For example, after the note that encoder 10 obtains in numbered musical notation content information, note is obtained Note length.The note duration byte value 8 that note duration is a bat is represented, that is, note Length is byte value 8, and byte value 8 is performed into binary coding, is converted into the two of " 0 " " 1 " composition Carry system code " 00001000 ";Note duration is that the note duration byte value 16 of two bats is represented, That is, note length is byte value 16, and byte value 16 is performed into binary coding, is converted into " 0 " " 1 " The binary code " 00010000 " of composition;Note duration is the table of note duration byte 32 of four bats Show, that is, note length is byte value 32, byte value 32 is performed into binary coding, be converted into The binary code " 00100000 " of " 0 " " 1 " composition;Note duration is that the note duration of half bat is used Byte value 4 represents, that is, note length is byte value 4, byte value 4 is performed into binary coding, It is converted into the binary code " 00000100 " of " 0 " " 1 " composition, the note duration pair of other notes The note length answered performs Binary Conversion, the method for obtaining the binary code of the note length of note By that analogy.Encoder 10 obtain note note value, by the middle note 1 in scale, 2,3,4, 5th, 6,7 represented with byte value 65 to 71, can will be corresponding in 65 to 67 according to basic sound level Byte value performs binary coding, is converted into " 0 ", the binary code of " 1 " composition;It is low by seven Octave sound level, that is, bass is accorded withRepresented with byte value 57 to 63, Corresponding byte value in 57 to 63 can be performed by binary coding according to bass symbol, be converted into " 0 ", The binary code of " 1 " composition;By seven ottava alta sound levels, that is, note high Represented with byte value 73 to 79, can be according to note high by corresponding word in 73 to 79 Section value performs binary coding, obtains " 0 ", the binary code of " 1 " composition, and rest can be used " 0 " represents, so as to obtain the binary code of the note value of note.
After the binary code of the acquisition note length of encoder 10 and the binary code of note value, Merge the binary code of note length and the binary code of note value, obtain the binary system generation of note Code, and using the binary code of note as encoded content information.
For example, in the numbered musical notation trifle of target numbered musical notation | 65| in, " 6 " represent basic sound level " 6 " Note duration clap half for one, the byte value of note length is 12, and its binary code is " 00001100 ", the byte value of the note value of basic sound level " 6 " is 70, and its binary code is “01000110”;“5" note duration of basic sound level " 5 " is represented for half claps, the word of note length Section value is 4, and its binary code is " 00000100 ", the byte of the note value of basic sound level " 5 " It is 69 to be worth, and its binary code is " 01000101 ".Encoder 10 obtains the binary system of note length After the binary code of code and note value, merge the binary code and note value of note length Binary code, obtains the binary code of note, and interior using the binary code of note as coding Appearance information, then numbered musical notation trifle | 65| can with digitized representations as binary code for " 00001100, 01000110,00000100,01000101 ".
Target numbered musical notation includes multiple numbered musical notation trifles, and multiple trifles can include multiple notes, encoder 10 The multiple numbered musical notation trifles in numbered musical notation content information are obtained, the note in multiple numbered musical notation trifles is obtained respectively. Alternatively, the note obtained in numbered musical notation content information includes:Obtain the multiple letter in numbered musical notation content information Spectrum trifle;The note in multiple numbered musical notation trifles is obtained respectively.Note in numbered musical notation content information is obtained Afterwards, the corresponding note length of note in multiple numbered musical notation trifles is performed into Binary Conversion respectively, can To respectively obtain the binary code of the corresponding note length of note in multiple numbered musical notation trifles;Also, The corresponding note value of note in multiple numbered musical notation trifles is performed into Binary Conversion respectively, can be obtained respectively To the binary code of the corresponding note value of note in multiple numbered musical notation trifles, then merge respectively multiple The corresponding note length of note and note value in numbered musical notation trifle, respectively obtain multiple numbered musical notation trifle middle pitches The binary code of symbol, and using the binary code of the note in multiple numbered musical notation trifles as encoded content Information, so as to obtain numbered musical notation coding, the numbered musical notation is encoded to digitized numbered musical notation, can be by procedure identification.
The above-mentioned terminal 20 of the application, the numbered musical notation coding of self-encoding encoder 10 is carried out for receiving, and numbered musical notation is compiled Code obtains decoding numbered musical notation according to the regular perform decoding of default decoding.Alternatively, numbered musical notation coding can be with It is decrypted by parsing, presets decoding rule and corresponded with pre-arranged code rule.Terminal 20 will Numbered musical notation coding binary code be converted into numbered musical notation coding byte value, by numbered musical notation encode byte value with Information in target numbered musical notation carries out correspondence, obtains the information for obtaining target numbered musical notation of target numbered musical notation.It is optional Ground, binary numbered musical notation coding includes the binary code of numbered musical notation header information and numbered musical notation content information Binary code.The binary code of numbered musical notation header information is converted into numbered musical notation header information by terminal 20 Byte value, it is right that the multinomial attribute in the byte value of numbered musical notation header information and numbered musical notation header information is carried out Should, so as to obtain the multinomial attribute in numbered musical notation header information.Numbered musical notation content information includes note length The binary code of binary code and note value, terminal 20 turns the binary code of note length The byte value of note length is turned to, the binary code of note value is converted into the byte value of note value, Finally the byte value of note length and the note duration of note are carried out it is corresponding, by the byte value of note value Carried out with the sound level of note corresponding, terminal 20 obtains multinomial in the numbered musical notation header information of target numbered musical notation The sound level of note duration and note in attribute, and numbered musical notation content information, so as to obtain target numbered musical notation Information, plays according to the target numbered musical notation for decoding to music.
The terminal 20 of the embodiment can be the musical instruments such as piano, Chinese zither, guitar, according to decoding numbered musical notation Automatically playing music, user terminal can also be according to decoding numbered musical notation oneself playing music.
The digitlization translation system of the target numbered musical notation of the embodiment obtains target numbered musical notation by encoder 10, Target numbered musical notation is music numerical notation to be translated, and binary system is performed according to pre-arranged code rule to target numbered musical notation Coding, obtains binary numbered musical notation coding, and receiving numbered musical notation by terminal 20 is encoded, and numbered musical notation is encoded According to the regular perform decoding of default decoding, obtain decoding numbered musical notation, reached and target numbered musical notation is encoded Purpose, realize and target numbered musical notation translated, so as to reach music numerical notation by procedure identification Technique effect, so solve music numerical notation cannot be by the technical problem of procedure identification.
Embodiment 2
The embodiment of the present invention additionally provides a kind of embodiment of the digitlization interpretation method of music numerical notation, needs It is noted that can be in the executable finger of such as one group computer the step of the flow of accompanying drawing is illustrated Performed in the computer system of order, and, although show logical order in flow charts, but In some cases, shown or described step can be performed with different from order herein.
The embodiment of the method that the embodiment of the present application one is provided can mobile terminal, terminal or Performed in the arithmetic unit that person is similar to.As a example by running on computer terminals, Fig. 2 is according to this hair A kind of hardware configuration frame of the terminal of the digitlization interpretation method of the music numerical notation of bright embodiment Figure.As shown in Fig. 2 terminal A can include one or more (one is only shown in figure) (processor 202 can include but is not limited to Micro-processor MCV or FPGA to processor 202 The processing unit of device FPGA etc.), the memory 204 for data storage and for communicating The transport module 206 of function.It will appreciated by the skilled person that the structure shown in Fig. 2 is only To illustrate, it does not cause to limit to the structure of above-mentioned electronic installation.For example, terminal A is also Components more more than shown in Fig. 2 or less are may include, or is matched somebody with somebody with different from shown in Fig. 2 Put.
Memory 204 can be used to store the software program and module of application software, and such as present invention is implemented Corresponding programmed instruction/the module of digitlization interpretation method of the music numerical notation in example, processor 202 passes through Operation software program of the storage in memory 204 and module, thus perform various function application with And data processing, that is, realize the digitlization interpretation method of above-mentioned music numerical notation.Memory 204 can be wrapped High speed random access memory is included, nonvolatile memory is may also include, such as one or more magnetic storage Device, flash memory or other non-volatile solid state memories.In some instances, memory 204 The memory remotely located relative to processor 202 can be further included, these remote memories can be with By network connection to terminal A.The example of above-mentioned network includes but is not limited to internet, enterprise Industry in-house network, LAN, mobile radio communication and combinations thereof.
Transmitting device 206 is used to that data to be received or sent via a network.Above-mentioned network is specific Example may include the wireless network that the communication providerses of terminal A are provided.In an example, Transmitting device 206 includes a network adapter (Network Interface Controller, NIC), It can be connected so as to be communicated with internet by base station with other network equipments.In an example In, transmitting device 206 can be radio frequency (Radio Frequency, RF) module, and it is used to pass through Wireless mode is communicated with internet.
Under above-mentioned running environment, the digitlization this application provides music numerical notation as shown in Figure 3 is turned over Method is translated, it is necessary to explanation, the digitlization interpretation method of the music numerical notation of the embodiment can be by sound The digitlization translation system of happy numbered musical notation is performed.
Fig. 3 is a kind of flow of the digitlization interpretation method of music numerical notation according to embodiments of the present invention Figure.As shown in figure 3, a kind of optional scheme of the digitlization interpretation method of the music numerical notation is included such as Lower step:
Step S32, obtains target numbered musical notation, wherein, target numbered musical notation is music numerical notation to be translated.
In the scheme that the application above-mentioned steps S32 is provided, target numbered musical notation is obtained.Target numbered musical notation is to treat The music numerical notation of translation.Alternatively, target numbered musical notation can be alphabetical numbered musical notation, or digital numbered musical notation. Music is made up of the alternate sound of height, and digital numbered musical notation can represent the height of sound, by numeral Surface, or lower section points represent sound power, when sound is stronger, the number in digital numbered musical notation The points of the surface of word are more, when sound is weaker, the point of the digital underface in digital numbered musical notation Number is fewer.In addition to the height of sound, digital numbered musical notation can represent the length of sound.The height of sound and Length determines that music is different from other music, the foundation factors as music.Digital numbered musical notation can be by The height and length of sound rationally, are correctly marked.Target numbered musical notation is obtained, alternatively, target letter is obtained Compose the information such as the height and length of middle pitch.
Target numbered musical notation includes the interruption of multiple notes, height, length for representing sound, or sound, Organize that some are identical by rhythm, beat, or different height length note, constituting has The tune of certain musical image.The length of sound, can be represented with note duration, be between each note Relative duration, the height of sound can represent with sound level.Target numbered musical notation is obtained, including obtains mesh The note duration and the sound level information of each note of each note in mark numbered musical notation.Such as, target is obtained The note durations such as whole note, minim, crotchet, quaver, dotted note in numbered musical notation, The basic sound level in target numbered musical notation, low octave sound level, ottava alta sound level etc. are obtained, mesh can also be obtained Rest in mark numbered musical notation.Target numbered musical notation can represent each sound level in scale with some specific syllables Singing style, such as, 7 basic sound levels in scale, table are represented with 1,2,3,4,5,6,7 Show different pitches, the symbol that sound stops is represented with " O ", so that by obtaining target numbered musical notation, Obtain the corresponding sound level of each note and note duration in target numbered musical notation.
The version number of target numbered musical notation including target numbered musical notation, the small joint number of total numbered musical notation, each numbered musical notation trifle The multinomial attribute of the music numerical notations such as bat number, bat number per minute, the tone mark of music.Obtain target Numbered musical notation, including obtain version number, the small joint number of total numbered musical notation, the bat of each numbered musical notation trifle of target numbered musical notation Subnumber, bat number per minute, the tone mark of music.Alternatively, the target numbered musical notation of the embodiment is also wrapped Include the author information of target numbered musical notation, such as, and the name of author, the age of author, the experience letter of author The information such as be situated between, information etc. song name of the target numbered musical notation also including target numbered musical notation, the creative time of target numbered musical notation, The embodiment can also add the lyrics corresponding with target numbered musical notation in the database of storage target numbered musical notation Information etc., so as to obtain the detailed information of target numbered musical notation.
The embodiment obtains music numerical notation to be translated by obtaining target numbered musical notation, and alternatively, this is treated The numbered musical notation of translation include the note duration of each note in music numerical notation, sound level, target numbered musical notation it is multinomial Attribute etc..
Step S34, binary coding is performed to target numbered musical notation according to pre-arranged code rule, is obtained two and is entered The numbered musical notation coding of system.
In the scheme that the application above-mentioned steps S34 is provided, the corresponding music of target numbered musical notation is final at end End execution is played.All of information is shown by binary code " 0 ", " 1 " in terminal. Terminal processes information is, it is necessary to the information for the treatment of to be converted into the data mode of " 0 ", " 1 ", terminal Binary code is received, the information represented by binary code is identified, is processed.Obtaining mesh After mark numbered musical notation, binary coding is performed according to pre-arranged code rule to target numbered musical notation.Alternatively, will Information in target numbered musical notation represented by numerical value, by numerical value according to binary numerical value with binary turn Change rule and be converted into binary code, the information in target numbered musical notation is had with the binary code after conversion There is corresponding relation, so as to target numbered musical notation is converted into binary numbered musical notation coding, binary numbered musical notation The data mode represented by binary code is encoded to, can be processed by terminal, extended, enter And realize and treatment is digitized to target numbered musical notation.
Alternatively, the embodiment performs binary coding and includes to target numbered musical notation according to pre-arranged code rule Binary coding is performed according to preset rules to digital numbered musical notation, the binary coding of digital numbered musical notation is obtained, Binary coding can also be performed according to pre-arranged code rule to alphabetical numbered musical notation, obtain the two of alphabetical numbered musical notation Scale coding.
The information of target numbered musical notation including music, such as, the version number of music, the small joint number of total numbered musical notation, The bat number of each numbered musical notation trifle, bat number per minute, the tone mark of music, the sound level of note, sound The information such as the note duration of symbol, the note in the embodiment includes rest.Alternatively, by music Version number, the small joint number of total numbered musical notation, the bat number of each numbered musical notation trifle, bat number, sound per minute The information such as happy tone mark, the sound level of note, the note duration of note are represented with byte value.
The embodiment performs binary coding by target numbered musical notation according to pre-arranged code rule, obtains two The numbered musical notation coding of system, so as to reach the purpose encoded to target numbered musical notation, realizes to target Numbered musical notation is translated.
Step S36, sends numbered musical notation and encodes to terminal, wherein, terminal is used for numbered musical notation coding according to pre- If the regular perform decoding of decoding, obtains decoding numbered musical notation.
In the scheme that the application above-mentioned steps S36 is provided, advised according to pre-arranged code to target numbered musical notation Binary coding is then performed, after obtaining binary numbered musical notation coding, binary numbered musical notation coding can be with By the procedure identification of terminal.Numbered musical notation is sent to encode to terminal, terminal after numbered musical notation coding is received, Numbered musical notation coding is parsed, according to the regular perform decoding of default decoding, obtains decoding numbered musical notation.It is optional Ground, presets decoding rule and is corresponded with pre-arranged code rule.To encoding numbered musical notation according to default decoding During regular perform decoding, the binary code that numbered musical notation is encoded is converted into the byte of numbered musical notation coding Value, the corresponding byte value of different binary codes in numbered musical notation coding is different, and the numbered musical notation after conversion is compiled The byte value of code carries out corresponding with the information in target numbered musical notation, the information of target numbered musical notation is obtained, according to solution The target numbered musical notation that code goes out is played to music, so as to reach music numerical notation by the technology of procedure identification Effect.
The embodiment is encoded to terminal by sending numbered musical notation, is encoded according to default solution by terminal-pair numbered musical notation The regular perform decoding of code, obtains decoding numbered musical notation, so as to reach music numerical notation by the technology of procedure identification Effect.
By above-mentioned steps S32 to step S36, the scheme that the present invention is provided can be realized obtaining target Numbered musical notation, then performs binary coding to target numbered musical notation according to pre-arranged code rule, obtains binary Numbered musical notation is encoded, and is finally sent numbered musical notation and is encoded to terminal, and target numbered musical notation is music numerical notation to be translated, eventually End can obtain decoding numbered musical notation, by obtaining to numbered musical notation coding according to the regular perform decoding of default decoding The target numbered musical notation for taking performs binary coding, the binary numbered musical notation that will be obtained according to pre-arranged code rule Coding is sent to terminal, has reached the purpose encoded to target numbered musical notation, is realized to target numbered musical notation Translated, so as to reach music numerical notation by the technique effect of procedure identification, and then solved music Numbered musical notation cannot be by the technical problem of procedure identification.
As a kind of optional implementation method, after the application step S32 obtains target numbered musical notation, this The digitlization interpretation method of the music numerical notation of inventive embodiments can also include:Extracted from target numbered musical notation Numbered musical notation header information and numbered musical notation content information.Wherein, the application step S34 to target numbered musical notation according to Pre-arranged code rule performs binary coding to be included:Numbered musical notation header information is held according to pre-arranged code rule Row binary coding, obtains encoding header information, and to numbered musical notation content information according to pre-arranged code rule Binary coding is performed, encoded content information is obtained.
Numbered musical notation header information is used to represent the attribute of target numbered musical notation, such as, the version number of target numbered musical notation, The small joint number of total numbered musical notation, the bat number of each numbered musical notation trifle, bat number per minute, the tone mark of music Deng.Numbered musical notation header information is extracted from target numbered musical notation includes extracting version number, total letter of target numbered musical notation Compose small joint number, the bat number of each numbered musical notation trifle, bat number per minute, tone mark of music etc..Can Selection of land, numbered musical notation header information is extracted from target numbered musical notation also includes extracting name, the year of author of author The information such as age, experience brief introduction, the song name of target numbered musical notation, the creative time of target numbered musical notation of author. From target numbered musical notation after the numbered musical notation header information of extraction target numbered musical notation, to numbered musical notation header information according to pre- If coding rule performs binary coding, that is, the version number to target numbered musical notation, total numbered musical notation trifle The attribute such as number, the bat number of each numbered musical notation trifle, bat number per minute, the tone mark of music is according to pre- If rule performs binary coding, obtain encoding header information.
Numbered musical notation content information is used to represent the content of target numbered musical notation.Numbered musical notation content information includes multiple sounds Symbol, note is the music symbol of high and low, the long and short change for representing sound.Each note includes note The information of duration and the sound level information of note.The note duration of note, is that relative between each note is held The continuous time, the sound level of note represents the height of sound.Numbered musical notation content information is extracted from target numbered musical notation to be included The note duration information and sound level information of each note are extracted from target numbered musical notation.From target numbered musical notation Extract after numbered musical notation content information, binary system is performed according to pre-arranged code rule to numbered musical notation content information and is compiled Code, obtains encoded content information, that is, to the note duration letter of each note in numbered musical notation content information Breath and sound level information perform binary coding according to pre-arranged code rule, obtain the coding letter of each note Breath, so as to obtain the encoded content information of target numbered musical notation.
The embodiment by from target numbered musical notation extract numbered musical notation header information and numbered musical notation content information, to letter Spectrum header information performs binary coding according to pre-arranged code rule, obtains encoding header information, and right Numbered musical notation content information performs binary coding according to pre-arranged code rule, obtains encoded content information, from And realization is extracted to the different piece in target numbered musical notation, and then realize to the difference in target numbered musical notation Part performs binary coding.
Used as a kind of optional implementation method, the application step S34 is to target numbered musical notation according to pre-arranged code Rule performs binary coding to be included performing binary system according to pre-arranged code rule to numbered musical notation header information Coding.Fig. 4 is according to embodiments of the present invention numbered musical notation header information to be performed according to pre-arranged code rule The flow chart of binary-coded method.As shown in figure 4, this pair of numbered musical notation header information is according to default volume Code rule performs binary-coded method and comprises the following steps:
Step S402, obtains the corresponding multinomial attribute of numbered musical notation header information.
Target numbered musical notation includes numbered musical notation header information, extracted from target numbered musical notation numbered musical notation header information it Afterwards, the corresponding multinomial attribute of numbered musical notation header information of target numbered musical notation is obtained, that is, obtaining target numbered musical notation Version number, the small joint number of total numbered musical notation, the bat number of each numbered musical notation trifle, bat number per minute, The information such as the tone mark of music.
Step S404, is converted into multiple numerical value by multinomial attribute respectively.
After the corresponding multinomial attribute of numbered musical notation header information is obtained, multinomial attribute is converted into many numbers Value, alternatively, byte value is converted into by multinomial attribute, and different attributes is represented by byte value.
Multiple numerical value are performed Binary Conversion by step S406, and obtain numbered musical notation header information two enter Code processed, and using the binary code of numbered musical notation header information as coding header information.
The corresponding multinomial attribute of numbered musical notation header information is version number, total numbered musical notation trifle of target numbered musical notation The information such as number, the bat number of each numbered musical notation trifle, bat number per minute, the tone mark of music.Dividing Multinomial attribute is not converted into after multiple numerical value, multiple numerical value are performed into Binary Conversion, can be by The length of multiple numerical value is set to a byte and carries out Binary Conversion.Wherein, version number with version This number corresponding binary code represents that the small joint number of total numbered musical notation is entered with the small joint number of numbered musical notation corresponding two Code processed represents that the bat number of each numbered musical notation trifle is represented with binary code corresponding with bat number, Bat number per minute represents that tone mark A is represented with " 1 " with binary code corresponding with bat number, The binary code of tone mark A is " 00000001 ", and tone mark B is represented with " 2 ", the two of tone mark B Carry system code is " 00000010 ", and tone mark C represents that the binary code of tone mark C is with " 3 " " 00000011 ", tone mark D represents that the binary code of tone mark D is " 00000100 " with " 4 ", By the version number of target numbered musical notation, the small joint number of total numbered musical notation, the bat number of each numbered musical notation trifle, per minute The binary code of the information such as bat number, the tone mark of music combine, obtain numbered musical notation header information Binary code, and using the binary code of numbered musical notation header information as coding header information, realize Target numbered musical notation translated.
Coding header information in the embodiment of the present invention is digitized music numerical notation header information, is had Good analyticity, that is, terminal-pair encodes header information according to the regular perform decoding of default decoding, Obtain encoding the decoding numbered musical notation of header information, the decoding numbered musical notation for encoding header information can be expanded Exhibition, so that abundant music numerical notation header information.Terminal is obtained according to the decoding numbered musical notation of coding header information It is the version number of target numbered musical notation, the small joint number of total numbered musical notation, the bat number of each numbered musical notation trifle, per minute The information such as bat number, the tone mark of music.
The embodiment by obtaining the corresponding multinomial attribute of numbered musical notation header information, then respectively by multinomial category Property be converted into multiple numerical value, by multiple numerical value perform Binary Conversion, obtain the two of numbered musical notation header information Carry system code, and using the binary code of numbered musical notation header information as coding header information, it is right to realize Numbered musical notation header information performs binary coding according to pre-arranged code rule, and then target numbered musical notation is turned over Translate, so as to reach music numerical notation by the technique effect of procedure identification.
Used as a kind of optional implementation method, the application step S34 is to target numbered musical notation according to pre-arranged code Rule performs binary coding to be included performing binary system according to pre-arranged code rule to numbered musical notation content information Coding.Fig. 5 is according to embodiments of the present invention numbered musical notation content information to be performed according to pre-arranged code rule The flow chart of binary-coded method.As shown in figure 5, this pair of numbered musical notation content information is according to default volume Code rule performs binary-coded method and comprises the following steps:
Step S502, obtains the note in numbered musical notation content information.
Target numbered musical notation includes numbered musical notation content information, and numbered musical notation content information includes multiple notes, target numbered musical notation High and low, the long and short variation effect of sound is represented by multiple notes.Extracted from target numbered musical notation After numbered musical notation content information, the note in numbered musical notation content information is obtained.Each note in target numbered musical notation Information and sound level information including note duration.Such as, four bats, two bats, a bat, half clap and represent Note duration.Note value is used to represent the sound level information of note.The sound level of note, such as, 1,2, 3rd, 4,5,6,7 seven basic sound levels in scale are represented, seven basic sound levels are respectively corresponding Numeral is lower to add round dot, that is,Represent seven low octaves in scale Level, if seven basic sound levels add two round dots to represent that the basic sound level drops under corresponding numeral respectively Low two octaves;Seven basic sound levels numerically add round dot corresponding respectively, that is, Seven ottava alta sound levels in scale are represented, if seven basic sound levels are respectively in correspondence Numerically plus two round dots represent that the basic sound level raises two octaves.Note can for whole note, Minim, crotchet, quaver, dotted note, rest etc..
Step S504, obtains the note length of note, wherein, note length is used to represent note Note duration.
The note duration of note represented by note length, the note in numbered musical notation content information is obtained it Afterwards, the note duration of note is obtained, note duration is represented with note length corresponding with note.Can Selection of land, note length is represented with byte value.
Step S506, Binary Conversion is performed by note length, obtains the binary system generation of note length Code.
After the note length for obtaining note, note length is performed into Binary Conversion, so as to obtain The binary code of note length.
Alternatively, the note duration byte value 8 that note duration is a bat is represented, that is, note Length is byte value 8, and byte value 8 is performed into binary coding, is converted into the two of " 0 " " 1 " composition Carry system code;Note duration is that the note duration byte value 16 of two bats is represented, that is, note is long It is byte value 16 to spend, and byte value 16 is performed into binary coding, is converted into the two of " 0 " " 1 " composition Carry system code;Note duration is that the note duration byte 32 of four bats is represented, that is, note length It is byte value 32, byte value 32 is performed into binary coding, be converted into " 0 " " 1 " composition two enters Code processed;Note duration is that the note duration byte value 4 of half bat is represented, that is, note length is Byte value 4, binary coding is performed by byte value 4, is converted into the binary system generation of " 0 " " 1 " composition Code, the corresponding note length of note duration of other notes performs Binary Conversion, obtains the sound of note Accord with the method for binary code of length by that analogy.
Step S508, obtains the note value of note, wherein, note value is used to represent the sound level of note Information.
The sound level information of note is represented by note value.Obtain numbered musical notation content information in note it Afterwards, the sound level information of note is obtained, sound level information is represented with note value corresponding with note.It is optional Ground, note value is represented with byte value.
The note value of note is obtained, by seven basic sound levels 1,2,3,4,5,6,7 in scale Represented with byte value 65 to 71, that is, seven sounds of basic sound level 1,2,3,4,5,6,7 Identifier value is respectively the numeral in byte value 65 to 71;By low octave sound level Represented with byte value 57 to 63, that is, low octave sound levelSound Identifier value is respectively the numeral in byte value 57 to 63;By ottava alta sound level Represented with byte value 73 to 79, that is, ottava alta sound levelNote Value byte value 73 to 79 represents that rest can be represented with " 0 ".
Step S510, Binary Conversion is performed by note value, obtains the binary code of note value.
After the note value for obtaining note, note value is performed into Binary Conversion, that is, by scale In seven basic sound levels 1,2,3,4,5,6,7 corresponding byte values carry out Binary Conversion, Obtain the binary code of basic sound level;By low octave sound levelIt is corresponding Byte value carries out Binary Conversion, obtains the binary code of bass symbol;By ottava alta sound level Corresponding byte value carries out Binary Conversion, obtains the binary code of note high, Rest can be represented with " 0 ", so as to obtain the binary code of the note value of note.
Step S512, merges the binary code of note length and the binary code of note value, obtains To the binary code of note, and using the binary code of note as encoded content information.
Note length is performed into Binary Conversion, the binary code of note length is obtained, and by sound Identifier value performs Binary Conversion, obtains after the binary code of note value, merges the two of note length The binary code of carry system code and note value, obtains the binary code of note, and by the two of note Carry system code realizes and target numbered musical notation is translated as the encoded content information of target numbered musical notation.
The note length and note value of the note of table 1
For example, table 1 is the note length and note value of note, when note name is whole note, Such as, " 5--- ", represents that the note duration of basic sound level " 5 " is clapped for four, and four clap corresponding note Length is " 32 ", and the note value of basic sound level " 5 " is 69, and whole note " 5--- " carries out numeral and changes Value after conversion is " 32,69 ", and " 32,69 " are converted into binary code, obtains " 5-- - " binary code;When note name is minim, such as,Represent basic sound level " 5 " corresponding ottava alta sound levelNote duration clap for two, two clap corresponding note length is " 16 ",Note value be 77, minimCarrying out the digital value changed after conversion is " 16,77 " are converted into binary code by " 16,77 ", are obtainedBinary code; When note name is crotchet, such as,Represent the corresponding low octave of basic sound level " 5 " The note duration of level is clapped for one, and one claps corresponding note length for " 8 ",Note value be 61, CrotchetIt is " 8,61 " to carry out the digital value changed after conversion, and " 8,61 " are converted into Binary code, obtainsBinary code;When note name is quaver, such as, "5", Represent that the note duration of basic sound level " 5 " is clapped for half, partly clap corresponding note length for " 4 ", base The note value of this sound level " 5 " be 69, quaver " 5 " carry out numeral change conversion after value for " 4, 69 ", " 4,69 " are converted into binary code, obtain the binary code of " 5 ".
Encoded content information in the embodiment of the present invention is digitized music numerical notation content information, is had Good analyticity, that is, terminal-pair encoded content information is according to the regular perform decoding of default decoding, The decoding numbered musical notation of encoded content information is obtained, function can be carried out to the decoding numbered musical notation of encoded content information Extension, so that the content information of abundant music numerical notation.Alternatively, terminal is piano, Chinese zither, guitar Deng decoding numbered musical notation by the procedure identification of terminal, can carry out the extension of the function related to target numbered musical notation , according to the decoding numbered musical notation automatic Playing song of encoded content information, user terminal can also be according to volume for terminal The decoding numbered musical notation of digital content information oneself plays song, and then shares the song played.
The embodiment is by obtaining the note in numbered musical notation content information;Obtain the note length of note;Will Note length performs Binary Conversion, obtains the binary code of note length;Obtain the note of note Value;Note value is performed into Binary Conversion, the binary code of note value is obtained;Merge note length Binary code and note value binary code, obtain the binary code of note, and by note Binary code as encoded content information, so as to realize to numbered musical notation content information according to pre-arranged code Rule performs binary-coded purpose.
Used as a kind of optional implementation method, the note obtained in numbered musical notation content information includes:Obtain letter Multiple numbered musical notation trifles in spectrum content information;The note in multiple numbered musical notation trifles is obtained respectively, wherein, Note length execution Binary Conversion is included:Respectively by the corresponding sound of note in multiple numbered musical notation trifles Symbol length performs Binary Conversion, respectively obtains the corresponding note length of note in multiple numbered musical notation trifles Binary code, by note value execution Binary Conversion include:Respectively by multiple numbered musical notation trifles The corresponding note value of note performs Binary Conversion, respectively obtains the note correspondence in multiple numbered musical notation trifles Note value binary code, merge note length binary code and note value binary system generation Code includes:Merge the corresponding note length of note and note value in multiple numbered musical notation trifles respectively, respectively Obtain the binary code of note in multiple numbered musical notation trifles, and by two of the note in multiple numbered musical notation trifles Carry system code is used as encoded content information.
Used as a kind of optional implementation method, note includes bass symbol, middle note, note high, wherein, Bass accords with note value difference preset value corresponding with middle note, middle note note value corresponding with note high Difference preset value.In the embodiment, bass symbol is low octave sound level Middle note be basic sound level 1,2,3,4,5,6,7, note high be ottava alta sound level Wherein, low octave sound levelCorresponding note value and base This sound level 1,2,3,4,5,6,7 corresponding note value differences 8, basic sound level 1,2,3,4, 5,6,7 corresponding note values and ottava alta sound levelDifference 8.
For example, Fig. 6 is the schematic diagram of target numbered musical notation according to embodiments of the present invention.Such as Fig. 6 institutes Show, the target numbered musical notation is《Only have mother good in the world》Music numerical notation.
The song of the target numbered musical notation is entitled《Only have mother good in the world》, from film《There was only mother in the world Mother is good》Theme song, author information is respectively " Cai Zhen fields word ", " woods national flag is bent ", " woods then notation ", " 80 " in the target numbered musical notation represent that the target numbered musical notation is per minute 80 bats,Representing should The tone mark of target numbered musical notation is C, is clapped with crotchet as one, has two bats per trifle.
In the target numbered musical notation, numbered musical notation header information represents the attribute of the target numbered musical notation, target numbered musical notation Header information is:The version number of target numbered musical notation be 1, the small joint number of total numbered musical notation for 15 trifles, each The bat number of numbered musical notation trifle be four bats, bat number per minute be 80 clap, the tone mark of music is C.
Version number 1 is represented with byte value " 1 ", numbered musical notation trifle tens of five is represented with byte value " 15 ", often The bat number four of individual numbered musical notation trifle is clapped and represented with byte value " 4 ", and bat number 80 per minute is clapped and used Byte value " 80 " represents that the tone mark C of music is represented with byte value " 3 ", then numbered musical notation header information Can be " 1,15,4,80,3 " with digitized representations." 1,15,4,80,3 " is performed two System is changed, and obtains the binary code of numbered musical notation header information, and by the binary system of numbered musical notation header information Code is used as coding header information.Alternatively, this pair of numbered musical notation header information to be encoded also include and sung in antiphonal style The other information of the songs such as song name, author information carries out binary coding.
In the target numbered musical notation, the content information of target numbered musical notation is the content of the target numbered musical notation, the target In 15 numbered musical notation trifles of numbered musical notation, each numbered musical notation trifle has multiple notes, and each note has note When value information and sound level information.Binary-coded process is performed according to preset rules to the target numbered musical notation It is as follows:
First numbered musical notation trifle | 65|, wherein, the note duration of " 6 " is a bat half, and note length is 12, note value is 70;“5" note duration clap for half, note length is 4, and note value is 69, First trifle can be expressed as " 12,70,4,69 ", and " 12,70,4,69 " execution two is entered System conversion, obtains | and 65| binary code.
First numbered musical notation trifle | 35 |, wherein, the note duration of " 3 " is a bat, and note length is 8, Note value is 67;The note duration of " 5 " is a bat, and note length is 8, and note value is 69, second Trifle can be expressed as " 8,67,8,69 ", and " 8,67,8,69 " are performed into Binary Conversion, Obtain the binary code of | 35 |.
3rd numbered musical notation trifleWherein,Note duration for one clap, note length is 8, Note value is 73;“6" note duration clap for half, note length is 4, and note value is 70;“5” Note duration clap for half, note length is 4, and note value is 69, the 3rd trifle can be expressed as " 8, 73,4,70,4,69 ", " 8,73,4,70,4,69 " are performed into Binary Conversion, is obtainedBinary code.
4th numbered musical notation trifle | 6- |, wherein, the note duration of " 6- " is two bats, and note length is 16, Note value is 70, and the 4th trifle can be expressed as " 16,70 ", and " 16,70 " are performed into binary system Conversion, obtains the binary code of | 6- |.
5th numbered musical notation trifle | 35 6|, wherein, the note duration of " 3 " is a bat, and note length is 8, Note value is 67;“5" note duration clap for half, note length is 4, and note value is 69;“6” Note duration clap for half, note length is 4, and note value is 70, the 5th trifle can be expressed as " 8, 67,4,69,4,70 ", " 8,67,4,69,4,70 " are performed into Binary Conversion, is obtained |3 5 6| binary code.
6th numbered musical notation trifle | 53 2|, wherein, the note duration of " 5 " is a bat, and note length is 8, Note value is 69;“3" note duration clap for half, note length is 4, and note value is 67;“2” Note duration clap for half, note length is 4, and note value is 66, the 6th trifle can be expressed as " 8, 69,4,67,4,66 ", " 8,69,4,67,4,66 " are performed into Binary Conversion, is obtained |5 3 2| binary code.
7th numbered musical notation trifleWherein, "1" note duration clap for half, note length is 4, Note value is 65;Note duration clap for half, note length is 4, and note value is 62;“5” Note duration clap for half, note length is 4, and note value is 69;“3" note duration clap for half, Note length is 4, and note value is 67, the 7th trifle can be expressed as " 4,65,4,62,4, 69,4,67 ", " 4,65,4,62,4,69,4,67 " are performed into Binary Conversion, is obtainedBinary code.
8th numbered musical notation trifle | 2- |, wherein, the note duration of " 2- " is two bats, and note length is 16, Note value is 66, and the 8th trifle can be expressed as " 16,66 ", and " 16,66 " are performed into binary system Conversion, obtains the binary code of | 2- |.
9th numbered musical notation trifle | 23|, wherein, the note duration of " 2 " is a bat half, and note length is 12, note value is 66;“3" note duration clap for half, note length is 4, and note value is 67, 9th trifle can be expressed as " 12,66,4,67 ", and " 12,66,4,67 " execution two is entered System conversion, obtains | and 23| binary code.
Tenth numbered musical notation trifle | 556|, wherein, the note duration of " 5 " is a bat, and note length is 8, Note value is 69;“5" note duration clap for half, note length is 4, and note value is 69;“6” Note duration clap for half, note length is 4, and note value is " 70 ", and the tenth trifle can be expressed as " 8,69,4,69,4,70 " are performed Binary Conversion by " 8,69,4,69,4,70 ", Obtain | 55 6| binary code.
11st numbered musical notation trifle | 32|, wherein, the note duration of " 3 " is a bat half, note length It is 12, note value is 67;“2" note duration clap for half, note length is 4, and note value is 66, the 11st numbered musical notation trifle can be expressed as " 12,67,4,66 ", by " 12,67,4,66 " Binary Conversion is performed, is obtained | 32| binary code.
12nd numbered musical notation trifle | 1- |, wherein, the note duration of " 1- " is two bats, and note length is 16, Note value is that the 65, the 12nd trifle can be expressed as " 16,65 ", and " 16,65 " execution two is entered System conversion, obtains the binary code of | 1- |.
13rd numbered musical notation trifle | 53|, wherein, the note duration of " 5 " is a bat half, note length It is 12, note value is 69;“3" note duration clap for half, note length is 4, and note value is 67, the 13rd trifle can be expressed as " 12,69,4,67 ", and " 12,69,4,67 " are held Row Binary Conversion, obtains | and 53| binary code.
14th numbered musical notation trifleWherein, " 2 " note duration is half bat, and note length is 4, Note value 66;" 1 " note duration is clapped for half, and note length is 4, note value 65;During note It is worth for half claps, note length is 4, and note value is 62;Note duration is clapped for half, note length It is 4, the trifle of note value the 65, the 14th can be expressed as " 4,66,4,65,4,62,4,65 ", " 4,66,4,65,4,62,4,65 " are performed into Binary Conversion, is obtainedTwo enter Code processed.
15th numbered musical notation trifleWherein,Note duration clap for two, note length is 16, the trifle of note value the 61, the 15th can be expressed as " 16,61 ", and " 16,61 " are performed into two System is changed, and obtains the binary code of | 5- |.
By the note of above-mentioned first trifle in target numbered musical notation to the 15th trifle according to pre-arranged code Rule performs binary coding, obtains numbered musical notation coding, and the file size of numbered musical notation coding is tens words Section, and target numbered musical notation is carried out into the file size after picture drafting for the K of several K to tens, reduce mesh Mark the file size of numbered musical notation.The numbered musical notation coding that will be obtained is sent to terminal, and alternatively, terminal can be The musical instruments such as piano, Chinese zither, guitar, terminal is according to decoding corresponding with the coding rule in the embodiment Rule encodes perform decoding to the numbered musical notation, obtains decoding numbered musical notation, and the decoding numbered musical notation can be by the journey of terminal Sequence recognizes that carry out the extension of the function related to target numbered musical notation, terminal plays melody according to decoding numbered musical notation, User can also play song according to decoding numbered musical notation oneself, and then share song.
The embodiment of the present invention is performed to target numbered musical notation by obtaining target numbered musical notation according to pre-arranged code rule Binary coding, obtains binary numbered musical notation coding, sends numbered musical notation and encodes to terminal, and target numbered musical notation is Music numerical notation to be translated, terminal can be obtained to numbered musical notation coding according to the regular perform decoding of default decoding To decoding numbered musical notation, binary coding is performed according to pre-arranged code rule by the target numbered musical notation to obtaining, The binary numbered musical notation coding that will be obtained is sent to terminal, has reached the mesh encoded to target numbered musical notation , realize and target numbered musical notation is translated, so as to reach music numerical notation by the technology of procedure identification Effect, so solve music numerical notation cannot be by the technical problem of procedure identification.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore by it all A series of combination of actions is expressed as, but those skilled in the art should know, and the present invention is not received The limitation of described sequence of movement, because according to the present invention, some steps can be using other sequentially Or carry out simultaneously.Secondly, those skilled in the art should also know, reality described in this description Apply example and belong to preferred embodiment, involved action and module not necessarily present invention institute are necessary 's.
Through the above description of the embodiments, those skilled in the art can be understood that root Method according to above-described embodiment can add the mode of required general hardware platform to realize by software, when So can also be by hardware, but the former is more preferably implementation method in many cases.Based on such reason Solution, the part that technical scheme substantially contributes to prior art in other words can be with soft The form of part product is embodied, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD) in, including some instructions are used to so that a station terminal equipment (can Being mobile phone, computer, server, or network equipment etc.) perform each embodiment institute of the invention The method stated.
Embodiment 3
According to embodiments of the present invention, a kind of digitlization for implementing above-mentioned music numerical notation is additionally provided to turn over Translate the device of method.Fig. 7 is the digitlization translating equipment of music numerical notation according to embodiments of the present invention Schematic diagram.As shown in fig. 7, the device of the digitlization translation of the music numerical notation includes:Acquiring unit 30, Coding unit 40 and transmitting element 50.
Acquiring unit 30, for obtaining target numbered musical notation, wherein, target numbered musical notation is music letter to be translated Spectrum;Coding unit 40, for performing binary coding according to pre-arranged code rule to target numbered musical notation, obtains To binary numbered musical notation coding;Transmitting element 50, encodes to terminal for sending numbered musical notation, wherein, eventually Hold and, according to the regular perform decoding of default decoding, obtain decoding numbered musical notation for numbered musical notation coding.
In the digitlization translating equipment of the music numerical notation of the embodiment, acquiring unit 30 can be used for The step S32 in the embodiment of the present invention is performed, coding unit 40 can be used for performing implementation of the present invention Step S34 in example, transmitting element 50 can be used for performing the step S36 in the embodiment of the present invention.
The above-mentioned acquiring unit 30 of the application can be used for obtaining target numbered musical notation.Target numbered musical notation is to be translated Music numerical notation.Alternatively, target numbered musical notation can be alphabetical numbered musical notation, or digital numbered musical notation, lead to Cross acquiring unit 30 and obtain the information such as the height and length of target numbered musical notation middle pitch.The length of sound, can be with Represented with note duration, be the relative duration between each note, the height of sound can use sound level Represent.Acquiring unit 30 obtains the sound of each note in target numbered musical notation, including acquisition target numbered musical notation Symbol duration and the sound level information of each note.Such as, acquiring unit 30 obtains the base in target numbered musical notation This sound level, low octave sound level, ottava alta sound level etc. are complete in the acquisition target numbered musical notation of acquiring unit 30 The note durations such as note, minim, crotchet, quaver, dotted note, acquiring unit 30 can also obtain the rest in target numbered musical notation, so that target numbered musical notation is obtained by acquiring unit 30, Obtain the corresponding sound level of each note and note duration in target numbered musical notation.
The version number of target numbered musical notation including target numbered musical notation, the small joint number of total numbered musical notation, each numbered musical notation trifle The multinomial attribute of the music numerical notations such as bat number, bat number per minute, the tone mark of music.Acquiring unit 30 obtain target numbered musical notation, including version number, the small joint number of total numbered musical notation, each letter for obtaining target numbered musical notation Compose bat number, bat number per minute, the tone mark of music of trifle.Alternatively, the mesh of the embodiment The mark numbered musical notation also author information including target numbered musical notation, such as, and the name of author, the age of author, work The information such as the experience brief introduction of person, target numbered musical notation also song name, the creation of target numbered musical notation including target numbered musical notation The information such as time, the embodiment can also be added and target numbered musical notation in the database of storage target numbered musical notation Corresponding lyrics information etc., so that acquiring unit 30 can obtain the detailed information of target numbered musical notation.
The embodiment obtains target numbered musical notation by acquiring unit 30, obtains music numerical notation to be translated, Alternatively, the numbered musical notation to be translated includes note duration, sound level, the mesh of each note in music numerical notation Mark multinomial attribute of numbered musical notation etc..
The above-mentioned coding unit 40 of the application can be used for performing target numbered musical notation according to pre-arranged code rule Binary coding, obtains binary numbered musical notation coding.Target numbered musical notation is being obtained by acquiring unit 30 Afterwards, coding unit 40 performs binary coding to target numbered musical notation according to pre-arranged code rule.It is optional Ground, coding unit 40 represents the information in target numbered musical notation by numerical value, by numerical value according to binary system Numerical value be converted into binary code with binary transformation rule, make information in target numbered musical notation and turn Binary code after change has corresponding relation, so that target numbered musical notation is converted into two by coding unit 40 The numbered musical notation coding of system, binary numbered musical notation is encoded to the data shape represented by binary code Formula, can be processed by terminal, extension and then realized and be digitized treatment to target numbered musical notation.
Alternatively, the digital numbered musical notation of the coding unit of the embodiment 40 pairs enters according to preset rules execution two System coding, obtains the binary coding of digital numbered musical notation, it is also possible to which alphabetical numbered musical notation is advised according to pre-arranged code Binary coding is then performed, the binary coding of alphabetical numbered musical notation is obtained.
The information of target numbered musical notation including music, such as, the version number of music, the small joint number of total numbered musical notation, The bat number of each numbered musical notation trifle, bat number per minute, the tone mark of music, the sound level of note, sound The information such as the note duration of symbol, the note in the embodiment includes rest.Alternatively, coding unit 40 by the version number of music, the small joint number of total numbered musical notation, the bat number of each numbered musical notation trifle, per minute The information such as bat number, the tone mark of music, the sound level of note, the note duration of note are represented with byte value.
The coding unit 40 of the embodiment is entered by performing two according to pre-arranged code rule to target numbered musical notation System coding, obtains binary numbered musical notation coding, so as to reach the purpose encoded to target numbered musical notation, Realize and target numbered musical notation is translated.
The above-mentioned transmitting element 50 of the application can send numbered musical notation and encode to terminal.In coding unit 40 pairs Target numbered musical notation performs binary coding according to pre-arranged code rule, obtains binary numbered musical notation and encodes it Afterwards, binary numbered musical notation coding can be by the procedure identification of terminal.Transmitting element 50 sends numbered musical notation and compiles To terminal, terminal is parsed, according to default code after numbered musical notation coding is received to numbered musical notation coding The regular perform decoding of decoding, obtains decoding numbered musical notation.Alternatively, decoding rule is preset with pre-arranged code rule Then correspond.During to coding numbered musical notation according to the regular perform decoding of default decoding, by numbered musical notation The binary code of coding is converted into the byte value of numbered musical notation coding, the different binary system generations in numbered musical notation coding The corresponding byte value of code is different, by the information in the byte value and target numbered musical notation of the numbered musical notation coding after conversion Correspondence is carried out, the information of target numbered musical notation is obtained, music is played according to the target numbered musical notation for decoding.
The transmitting element 50 of the embodiment is encoded to terminal, terminal-pair numbered musical notation coding by sending numbered musical notation According to the regular perform decoding of default decoding, obtain decoding numbered musical notation, so as to reach music numerical notation by program The technique effect of identification.
Used as a kind of optional implementation method, the digitlization translating equipment of the music numerical notation also includes extracting Unit.Fig. 8 is the digitlization translating equipment of a kind of optional music numerical notation according to embodiments of the present invention. The digitlization translating equipment of the music numerical notation includes acquiring unit 30, coding unit 40, transmitting element 50 and extraction unit 60.It should be noted that the acquiring unit 30 in the embodiment, coding unit 40 and transmitting element 50 effect and embodiment of the present invention music numerical notation digitlization translating equipment in It is identical.
Extraction unit 60 is used for after acquiring unit 30 obtains target numbered musical notation, is carried from target numbered musical notation Numbered musical notation header information and numbered musical notation content information are taken, wherein, numbered musical notation header information is used to represent target numbered musical notation Attribute, numbered musical notation content information is used to represent the content of target numbered musical notation, wherein, coding unit 40 is used In binary coding is performed according to pre-arranged code rule to numbered musical notation header information, coding head letter is obtained Breath, and binary coding is performed according to pre-arranged code rule to numbered musical notation content information, obtain encoded content Information.
Numbered musical notation header information is used to represent the attribute of target numbered musical notation, such as, the version number of target numbered musical notation, The small joint number of total numbered musical notation, the bat number of each numbered musical notation trifle, bat number per minute, the tone mark of music Deng.Extraction unit 60 extracts numbered musical notation header information from target numbered musical notation includes extracting the version of target numbered musical notation This number, the small joint number of total numbered musical notation, the bat number of each numbered musical notation trifle, bat number, music per minute Tone mark etc..Alternatively, extraction unit 60 extracts numbered musical notation header information from target numbered musical notation and also includes Extract name, the age of author, the experience brief introduction of author, the song name of target numbered musical notation, the target of author The information such as the creative time of numbered musical notation.The letter of target numbered musical notation is extracted from target numbered musical notation in extraction unit 60 After spectrum header information, coding unit 40 performs two to numbered musical notation header information according to pre-arranged code rule Scale coding, that is, coding unit 40 to the version number of target numbered musical notation, the small joint number of total numbered musical notation, The attributes such as the bat number of each numbered musical notation trifle, bat number per minute, the tone mark of music are according to default rule Binary coding is then performed, obtains encoding header information.
Numbered musical notation content information is used to represent the content of target numbered musical notation.Numbered musical notation content information includes multiple sounds Symbol, note is the music symbol of high and low, the long and short change for representing sound.Each note includes note The information and sound level information of duration.The note duration of note, is the relative duration between each note, Note value is used to represent the sound level information of note.Extraction unit 60 is extracted in numbered musical notation from target numbered musical notation Appearance information includes being extracted from target numbered musical notation the note duration and note value of each note.In extraction unit 60 from target numbered musical notation extract numbered musical notation content information after, coding unit 40 is pressed to numbered musical notation content information Binary coding is performed according to pre-arranged code rule, encoded content information is obtained, that is, to numbered musical notation content The note duration and note value of each note perform binary coding according to pre-arranged code rule in information, The coding information of each note is obtained, so as to obtain the encoded content information of target numbered musical notation.
Used as a kind of optional implementation method, coding unit 40 includes:First acquisition module, first Conversion module and the second conversion module.Wherein, the first acquisition module is used to obtain numbered musical notation header information pair The multinomial attribute answered;First conversion module is used to that multinomial attribute to be converted into multiple numerical value respectively;Second Conversion module is used to for multiple numerical value to perform Binary Conversion, obtains the binary system generation of numbered musical notation header information Code, and using the binary code of numbered musical notation header information as coding header information.
Target numbered musical notation includes numbered musical notation header information, and numbered musical notation is extracted from target numbered musical notation in extraction unit 60 After header information, the first acquisition module obtains the corresponding multinomial category of numbered musical notation header information of target numbered musical notation Property, that is, the first acquisition module obtain the version number of target numbered musical notation, the small joint number of total numbered musical notation, each The information such as the bat number of numbered musical notation trifle, bat number per minute, the tone mark of music.
After the first acquisition module obtains the corresponding multinomial attribute of numbered musical notation header information, the first conversion mould Multinomial attribute is converted into multiple numerical value by block, and alternatively, be converted into for multinomial attribute by the first conversion module Byte value, different attributes is represented by byte value.
The corresponding multinomial attribute of numbered musical notation header information is version number, total numbered musical notation trifle of target numbered musical notation The information such as number, the bat number of each numbered musical notation trifle, bat number per minute, the tone mark of music. Be converted into multinomial attribute after multiple numerical value respectively by one conversion module, and multiple numerical value are performed into binary system The length of multiple numerical value can be set to a byte and carry out binary system by conversion, the second conversion module Conversion.
Used as a kind of optional implementation method, coding unit 40 also includes:Second acquisition module, the Three acquisition modules, the 3rd conversion module, the 4th acquisition module, the 4th modular converter and merging module. Wherein, the second acquisition module is used to obtain the note in numbered musical notation content information;3rd acquisition module is used for The note length of note is obtained, wherein, note length is used to represent the note duration of note;3rd turn Changing module is used to for note length to perform Binary Conversion, obtains the binary code of note length;The Four acquisition modules are used to obtain the note value of note, and note value is used to represent the sound level information of note;The Four modular converters are used to for note value to perform Binary Conversion, obtain the binary code of note value;Close And module is used to merge the binary code of note length and the binary code of note value, obtains note Binary code, and using the binary code of note as encoded content information.
Target numbered musical notation includes numbered musical notation content information, and numbered musical notation content information includes multiple notes, target numbered musical notation High and low, the long and short variation effect of sound is represented by multiple notes.Extracted from target numbered musical notation Unit 60 is extracted after numbered musical notation content information, and the second acquisition module obtains the sound in numbered musical notation content information Symbol.Each note in target numbered musical notation includes the information and sound level information of note duration.The note of note Duration represented by note length, the note in the second acquisition module obtains numbered musical notation content information it Afterwards, the 3rd the note duration that mould obtains note is obtained, note duration is long with note corresponding with note Degree is represented, that is, the 3rd acquisition module obtains the note length of note, alternatively, note length is used Byte value is represented.After the note length that the 3rd acquisition module obtains note, the 3rd conversion module will Note length performs Binary Conversion, so as to obtain the binary code of note length.
The sound level information of note is represented by note value.Numbered musical notation content information is obtained in the second acquisition module In note after, the 4th acquisition module can obtain the sound level of note, by the sound level of note be used for sound Corresponding note value is accorded with to represent, that is, the 4th acquisition module obtains the note value of note, alternatively, Note value is represented with byte value.
After the note value that the 4th acquisition module obtains note, the 4th modular converter performs note value Binary Conversion, so as to obtain the binary code of the note value of note.
Note length is performed into Binary Conversion in the 3rd conversion module, the binary system of note length is obtained Code, and note value is performed Binary Conversion by the 4th conversion module, obtains the binary system generation of note value After code, the binary code of note length and the binary system generation of note value are merged by merging module Code, obtains the binary code of note, and using the binary code of note as target numbered musical notation coding Content information, realizes and target numbered musical notation is translated.
As a kind of optional implementation method, during the second acquisition module is used to obtain numbered musical notation content information Multiple numbered musical notation trifles, obtain the note in multiple numbered musical notation trifles respectively, wherein, the 3rd conversion module is used In the corresponding note length of note in multiple numbered musical notation trifles is performed into Binary Conversion respectively, respectively To the binary code of the corresponding note length of note in multiple numbered musical notation trifles, the 4th modular converter point The corresponding note value of note in multiple numbered musical notation trifles is not performed into Binary Conversion, multiple is respectively obtained The binary code of the corresponding note value of note in numbered musical notation trifle, merging module merges multiple letters respectively The corresponding note length of note and note value in spectrum trifle, respectively obtain note in multiple numbered musical notation trifles Binary code, and using the binary code of the note in multiple numbered musical notation trifles as encoded content believe Breath.
Target numbered musical notation is obtained by acquiring unit 30 in the embodiment of the present invention, by coding unit 40 pairs Target numbered musical notation performs binary coding according to pre-arranged code rule, obtains binary numbered musical notation coding, leads to The transmission numbered musical notation of transmitting element 50 is crossed to encode to the method for terminal, wherein, target numbered musical notation is to be translated Music numerical notation, terminal is used for numbered musical notation coding according to the regular perform decoding of default decoding, obtains decoding letter Spectrum, is held to the target numbered musical notation that acquiring unit 30 is obtained by coding unit 40 according to pre-arranged code rule Row binary coding, binary numbered musical notation coding that transmitting element 50 will be obtained is sent to terminal, is reached To the purpose encoded to target numbered musical notation, realize and target numbered musical notation is translated, so as to reach Technique effect of the music numerical notation by procedure identification, so solve music numerical notation cannot be by procedure identification Technical problem.
Embodiment 4
Embodiments of the invention additionally provide a kind of translater.It should be noted that the embodiment of the present invention Translater including the embodiment of the present invention music numerical notation digitlization translating equipment, can be used for performing The digitlization interpretation method of the music numerical notation of the embodiment of the present invention, will not be repeated here.
The translater can apply in " dotey hears ", can reach and target numbered musical notation is encoded Purpose, realization target numbered musical notation is translated, so as to reach music numerical notation by the technology of procedure identification Effect, so solve music numerical notation cannot be by the technical problem of procedure identification.
Embodiment 5
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, on State the digitlization interpretation method institute that storage medium can be used for preserving a kind of music numerical notation of above-described embodiment The program code of execution.
Alternatively, in the present embodiment, above-mentioned storage medium may be located at multiple nets of computer network At least one of the network equipment network equipment.
Alternatively, in the present embodiment, storage medium is arranged to storage for performing following steps Program code:
The first step, obtains target numbered musical notation, wherein, target numbered musical notation is music numerical notation to be translated.
Second step, binary coding is performed to target numbered musical notation according to pre-arranged code rule, obtains binary system Numbered musical notation coding.
3rd step, sends numbered musical notation and encodes to terminal, wherein, terminal is used for numbered musical notation coding according to default The regular perform decoding of decoding, obtains decoding numbered musical notation.
Alternatively, storage medium is also configured to storage for performing the program code of following steps:From Numbered musical notation header information and numbered musical notation content information are extracted in target numbered musical notation, numbered musical notation header information is used to represent mesh Mark the attribute of numbered musical notation, numbered musical notation content information is used to represent the content of target numbered musical notation, to target numbered musical notation according to Pre-arranged code rule performs binary coding to be included:Numbered musical notation header information is held according to pre-arranged code rule Row binary coding, obtains encoding header information, and to numbered musical notation content information according to pre-arranged code rule Binary coding is performed, encoded content information is obtained.
Alternatively, storage medium is also configured to storage for performing the program code of following steps:Obtain Take the corresponding multinomial attribute of numbered musical notation header information;Multinomial attribute is converted into multiple numerical value respectively;To be many Individual numerical value performs Binary Conversion, obtains the binary code of numbered musical notation header information, and by numbered musical notation head The binary code of information is used as coding header information.
Alternatively, storage medium is also configured to storage for performing the program code of following steps:Obtain Take the note in numbered musical notation content information;The note length of note is obtained, note length is used to represent note Note duration;Note length is performed into Binary Conversion, the binary code of note length is obtained; The note value of note is obtained, note value is used to represent the sound level of note;Note value is performed into binary system to turn Change, obtain the binary code of note value;The binary code of merging note length and the two of note value Carry system code, obtains the binary code of note, and using the binary code of note as encoded content Information.
Alternatively, storage medium is also configured to storage for performing the program code of following steps:Obtain Take the multiple numbered musical notation trifles in numbered musical notation content information;The note in multiple numbered musical notation trifles is obtained respectively, its In, note length execution Binary Conversion is included:Respectively by the note correspondence in multiple numbered musical notation trifles Note length perform Binary Conversion, respectively obtain the corresponding note of note in multiple numbered musical notation trifles The binary code of length, note value execution Binary Conversion is included:Respectively by multiple numbered musical notation trifles In the corresponding note value of note perform Binary Conversion, respectively obtain the note in multiple numbered musical notation trifles The binary code of corresponding note value, merges the binary code of note length and the two of note value enter Code processed includes:Merge the corresponding note length of note and note value in multiple numbered musical notation trifles respectively, Respectively obtain the binary code of note in multiple numbered musical notation trifles, and by the note in multiple numbered musical notation trifles Binary code as encoded content information.
Alternatively, in the present embodiment, above-mentioned storage medium can be included but is not limited to:USB flash disk, only Read memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with Jie of store program codes Matter.
Embodiment 6
Embodiments of the invention also provide a kind of terminal, and the terminal can be computer Any one computer terminal in terminal group.Alternatively, in the present embodiment, above-mentioned calculating Machine terminal can also replace with the terminal devices such as mobile terminal.
Alternatively, in the present embodiment, above computer terminal may be located at the multiple of computer network At least one of network equipment network equipment.
Alternatively, Fig. 9 is a kind of structured flowchart of terminal according to embodiments of the present invention.Such as Shown in Fig. 9, terminal A can include:One or more (one is only shown in figure) places Reason device 91, memory 93 and transmitting device 95.
Wherein, memory 93 can be used to store software program and module, such as in the embodiment of the present invention Music numerical notation digitlization interpretation method and the corresponding programmed instruction/module of device, processor 91 lead to Software program and module of the operation storage in memory 93 are crossed, so as to perform various function application And data processing, that is, realize the digitlization interpretation method of above-mentioned music numerical notation.Memory 93 can Including high speed random access memory, nonvolatile memory, such as one or more magnetic can also be included Storage device, flash memory or other non-volatile solid state memories.In some instances, memory 93 can further include the memory remotely located relative to processor 91, and these remote memories can With by network connection to terminal A.The example of above-mentioned network include but is not limited to internet, Intranet, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 95 is used to that data to be received or sent via a network.Above-mentioned net Network instantiation may include cable network and wireless network.In an example, transmitting device 95 is wrapped Include a network adapter (Network Interface Controller, NIC), its can by netting twine with Other network equipments are connected with router so as to be communicated with internet or LAN.In a reality In example, transmitting device 95 is radio frequency (Radio Frequency, RF) module, and it is used for by nothing Line mode is communicated with internet.
Wherein, specifically, memory 93 is used to store deliberate action condition and default access user Information and application program.
Processor 91 can call the information and application program of the storage of memory 93 by transmitting device, To perform following step:
Optionally, above-mentioned processor 91 can also carry out the program code of following steps:
The first step, obtains target numbered musical notation, wherein, target numbered musical notation is music numerical notation to be translated.
Second step, binary coding is performed to target numbered musical notation according to pre-arranged code rule, obtains binary system Numbered musical notation coding.
3rd step, sends numbered musical notation and encodes to terminal, wherein, terminal is used for numbered musical notation coding according to default The regular perform decoding of decoding, obtains decoding numbered musical notation.
Alternatively, during the specific example in the present embodiment may be referred to above-described embodiment 2 and embodiment 3 Described example, the present embodiment will not be repeated here.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
If integrated unit in above-described embodiment using realize in the form of SFU software functional unit and as Independent production marketing or when using, can store in the storage medium that above computer can read. Based on such understanding, what technical scheme substantially contributed to prior art in other words The all or part of part or the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in storage medium, including some instructions are used to so that one or more is calculated Machine equipment (can be personal computer, server or network equipment etc.) performs each implementation of the present invention The all or part of step of example methods described.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, certain reality The part for not having to describe in detail in example is applied, the associated description of other embodiment is may refer to.
In several embodiments provided herein, it should be understood that disclosed client, can Realize by another way.Wherein, device embodiment described above be only it is schematical, The division of such as described unit, only a kind of division of logic function, can have in addition when actually realizing Dividing mode, such as multiple units or component can combine or be desirably integrated into another system, Or some features can be ignored, or do not perform.Another, shown or discussed coupling each other Close or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of unit or module or Communication connection, can be electrical or other forms.
It is described as separating component illustrate unit can be or may not be it is physically separate, The part shown as unit can be or may not be physical location, you can with positioned at a ground Side, or can also be distributed on multiple NEs.Can according to the actual needs select therein Some or all of unit realizes the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit In, or unit be individually physically present, it is also possible to two or more units are integrated in In one unit.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ soft The form of part functional unit is realized.
The above is only the preferred embodiment of the present invention, it is noted that for the art For those of ordinary skill, under the premise without departing from the principles of the invention, some improvement can also be made And retouching, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (10)

1. the digitlization interpretation method of a kind of music numerical notation, it is characterised in that including:
Target numbered musical notation is obtained, wherein, the target numbered musical notation is music numerical notation to be translated;
Binary coding is performed according to pre-arranged code rule to the target numbered musical notation, binary system is obtained Numbered musical notation coding;And
The numbered musical notation is sent to encode to terminal, wherein, the terminal is used to encode the numbered musical notation According to the regular perform decoding of default decoding, obtain decoding numbered musical notation.
2. method according to claim 1, it is characterised in that
After the target numbered musical notation is obtained, methods described also includes:From the target numbered musical notation Numbered musical notation header information and numbered musical notation content information are extracted, wherein, the numbered musical notation header information is used for table Show the attribute of the target numbered musical notation, the numbered musical notation content information is used to represent the target numbered musical notation Content,
Wherein, binary coding bag is performed according to pre-arranged code rule to the target numbered musical notation Include:Binary coding is performed according to pre-arranged code rule to the numbered musical notation header information, is obtained To coding header information, and the numbered musical notation content information is performed according to pre-arranged code rule Binary coding, obtains encoded content information.
3. method according to claim 2, it is characterised in that to the numbered musical notation header information according to The pre-arranged code rule performs binary coding to be included:
Obtain the corresponding multinomial attribute of the numbered musical notation header information;
The multinomial attribute is converted into multiple numerical value respectively;And
The multiple numerical value is performed into Binary Conversion, obtain the numbered musical notation header information two enter Code processed, and believe the binary code of the numbered musical notation header information as the coding head Breath.
4. method according to claim 2, it is characterised in that to the numbered musical notation content information according to The pre-arranged code rule performs binary coding to be included:
Obtain the note in the numbered musical notation content information;
The note length of the note is obtained, wherein, the note length is used to represent the sound The note duration of symbol;
The note length is performed into Binary Conversion, the binary system generation of the note length is obtained Code;
The note value of the note is obtained, wherein, the note value is used to represent the note Sound level;
The note value is performed into Binary Conversion, the binary code of the note value is obtained; And
Merge the binary code of the note length and the binary code of the note value, obtain To the binary code of the note, and using the binary code of the note as the coding Content information.
5. method according to claim 4, it is characterised in that
The note obtained in the numbered musical notation content information includes:In obtaining the numbered musical notation content information Multiple numbered musical notation trifles;And obtain note in the multiple numbered musical notation trifle respectively,
Wherein, note length execution Binary Conversion is included:Respectively by the multiple letter The corresponding note length of note in spectrum trifle performs Binary Conversion, respectively obtains the multiple The binary code of the corresponding note length of note in numbered musical notation trifle,
Note value execution Binary Conversion is included:Respectively by the multiple numbered musical notation trifle The corresponding note value of note perform Binary Conversion, in respectively obtaining the multiple numbered musical notation trifle The corresponding note value of note binary code,
Merge the binary code of the note length and the binary code bag of the note value Include:Merge the corresponding note length of note and the note value in the multiple numbered musical notation trifle respectively, Respectively obtain the binary code of note in the multiple numbered musical notation trifle, and by the multiple numbered musical notation The binary code of the note in trifle is used as the encoded content information.
6. method according to claim 4, it is characterised in that the note include bass symbol, in Note, note high, wherein, bass symbol note value difference corresponding with the middle note is pre- If value, the middle note and the corresponding note value of the note high differ the preset value.
7. the digitlization translating equipment of a kind of music numerical notation, it is characterised in that including:
Acquiring unit, for obtaining target numbered musical notation, wherein, the target numbered musical notation is to be translated Music numerical notation;
Coding unit, compiles for performing binary system according to pre-arranged code rule to the target numbered musical notation Code, obtains binary numbered musical notation coding;And
Transmitting element, encodes to terminal for sending the numbered musical notation, wherein, the terminal is used for To numbered musical notation coding according to the regular perform decoding of default decoding, obtain decoding numbered musical notation.
8. device according to claim 7, it is characterised in that described device also includes:
Extraction unit, for after the target numbered musical notation is obtained, being carried from the target numbered musical notation Numbered musical notation header information and numbered musical notation content information are taken, wherein, the numbered musical notation header information is used to represent The attribute of the target numbered musical notation, the numbered musical notation content information is used to represent the interior of the target numbered musical notation Hold,
Wherein, the coding unit be used for to the numbered musical notation header information according to the default volume Code rule performs binary coding, obtains encoding header information, and to the numbered musical notation content information Binary coding is performed according to pre-arranged code rule, encoded content information is obtained.
9. the digitlization translation system of a kind of music numerical notation, it is characterised in that including:
Encoder, for obtaining target numbered musical notation, wherein, the target numbered musical notation is sound to be translated Happy numbered musical notation;Binary coding is performed according to pre-arranged code rule to the target numbered musical notation, two are obtained The numbered musical notation coding of system;And
Terminal, for receiving the numbered musical notation coding, advises to numbered musical notation coding according to default decoding Then perform decoding, obtains decoding numbered musical notation.
10. a kind of translater, it is characterised in that the number including the music numerical notation described in claim 7 or 8 Word translating equipment.
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 true CN106933810A (en) 2017-07-07
CN106933810B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020052420A1 (en) * 2018-09-13 2020-03-19 团火科技(北京)有限公司 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

Cited By (2)

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

Also Published As

Publication number Publication date
CN106933810B (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN110223705A (en) Phonetics transfer method, device, equipment and readable storage medium storing program for executing
CN111554255B (en) MIDI playing style automatic conversion system based on recurrent neural network
CN106528858A (en) Lyrics generating method and device
CN109166564A (en) For the method, apparatus and computer readable storage medium of lyrics text generation melody
CN107316638A (en) A kind of poem recites evaluating method and system, a kind of terminal and storage medium
CN108492817A (en) A kind of song data processing method and performance interactive system based on virtual idol
CN110600057B (en) Method and system for comparing performance sound information with music score information
CN109272808B (en) Interactive system for music beat rhythm teaching and science popularization
KR102367772B1 (en) Method and Apparatus for Generating Music Based on Deep Learning
CN111583891B (en) Automatic musical note vector composing system and method based on context information
CN113053357B (en) Speech synthesis method, apparatus, device and computer readable storage medium
CN110310613A (en) A kind of method and apparatus for generating color encoded music
CN114219880A (en) Method and device for generating expression animation
CN113470664A (en) Voice conversion method, device, equipment and storage medium
JP7157377B2 (en) Performance information display device, performance information display method, performance information display program, and electronic musical instrument
CN106933810A (en) The digitlization interpretation method of music numerical notation, apparatus and system and translater
CN106898341B (en) Personalized music generation method and device based on common semantic space
Sajad et al. Music generation for novices using Recurrent Neural Network (RNN)
CN113035161A (en) Chord-based song melody generation method, device, equipment and storage medium
CN110853457A (en) Interactive music teaching guidance method
CN116052621A (en) Music creation auxiliary method based on language model
CN108922505B (en) Information processing method and device
CN112863465A (en) Music generation method and device based on context information and storage medium
CN112349271A (en) Voice information processing method and device, electronic equipment and storage medium
CN113066457B (en) Fan-exclamation music generation method, device, equipment and storage medium

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