WO2017054588A1 - Music instrument score file playing method, conversion method and apparatus, and electronic device - Google Patents
Music instrument score file playing method, conversion method and apparatus, and electronic device Download PDFInfo
- Publication number
- WO2017054588A1 WO2017054588A1 PCT/CN2016/095893 CN2016095893W WO2017054588A1 WO 2017054588 A1 WO2017054588 A1 WO 2017054588A1 CN 2016095893 W CN2016095893 W CN 2016095893W WO 2017054588 A1 WO2017054588 A1 WO 2017054588A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- identifier
- note
- score file
- time value
- musical
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/14—Tree-structured documents
Definitions
- the present application relates to the field of musical instrument music spectrum technology, and in particular, to a method, a conversion method, a device and an electronic device for playing a musical instrument music score file.
- MusicXML (Music Extensible Markup Language) is an open XML-based music symbol file format. It is designed to be used as an exchange format for score information, especially between different score display software. MusicXML represents the overall music element and attribute information as an XML document, which overcomes many shortcomings such as poor compatibility and complex structure of the other two formats - NIFF format (based on pictures) and SMDL format (too large). Supported by many applications.
- MusicXML including attribute nodes, has more than 600 nodes. These nodes are defined with multiple files, making the MusicXML file larger and more complex. When playing music files in musicXML format, you need to parse the music files in MusicXML format. Due to the still complicated structure of MusicXML, the parsing efficiency is low, which affects the playback efficiency.
- the embodiment of the present application provides a method for playing a musical score file, which can improve playback efficiency.
- the playing method of the musical score file includes:
- the instrument sound file is played according to the length indicated by the time value identifier.
- the musical instrument score file is parsed to obtain a note identifier and a time value identifier, including:
- the note information in the musical score file is parsed according to a predetermined combination rule of the note identifier and the time value identifier, and the note identifier and the time value identifier of the musical score file are obtained.
- a note of the musical instrument represented by the note identifier includes a tone obtained according to a special playing method.
- the musical score file is a piano score file; the note identifier in each note information represents a sound emitted by at least one of the keys of the piano.
- the musical instrument score file is parsed to obtain a note identifier and a time value identifier, including:
- the musical score file to be played includes a plurality of musical note information sequentially arranged in a playing order, each note information being represented by a note identifier representing a sound of the musical instrument and indicating the length of the sound.
- the time value identifier is composed, so that the file structure is relatively simple and the parsing efficiency is high, thereby improving the playback efficiency.
- the embodiment of the present application provides a playback apparatus for a musical score file, which can improve playback efficiency.
- the playing device of the musical score file includes:
- a parsing module configured to parse the musical instrument score file to obtain a note identifier and a time value identifier; wherein the musical score file includes a plurality of note information sequentially arranged in a playing order, each note information being represented by a musical instrument a note identifier of the note and a time value identifier indicating the length of the note;
- a searching module configured to search, according to the note identifier, a pre-stored musical instrument sound file corresponding to the note identifier
- a playing module configured to play the musical instrument sound file according to a length represented by the time value identifier.
- the parsing module is configured to parse note information in a musical score file according to a predetermined combination rule of a note identifier and a time value identifier to obtain a note of the musical score file. Identifier and time value identifier.
- a note of the musical instrument represented by the note identifier includes a tone obtained according to a special playing method.
- the musical score file is a piano score file; the note identifier in each note information represents a sound emitted by at least one of the keys of the piano.
- the parsing module includes:
- Parsing the sub-module parsing the note information in the piano score file according to a predetermined combination rule of the note identifier and the time value identifier, and obtaining a note identifier and a time value identifier of the piano score file;
- a matching sub-module configured to match the obtained note identifier with a note identifier in a pre-stored piano note identifier library to obtain a piano button corresponding to the note identifier; wherein, Piano note identifier
- the correspondence between the note identifier and the keys of the piano is stored in the library.
- the musical instrument score file to be played includes a plurality of musical note information sequentially arranged in a playing order, each note information being represented by a note identifier representing a sound of the musical instrument and indicating the length of the sound.
- the time value identifier is composed, the file structure is relatively simple, and the parsing efficiency is high, thereby improving the playback efficiency.
- the embodiment of the present application provides a method for converting a musical score file, which can simplify the structure of the score file and reduce the size of the score file.
- the method for converting a musical score file includes:
- the combined note identifier and time value identifier are arranged according to the performance sequence of the note identifier in the musical score file to obtain a musical score file in a character stream format.
- the parsing of the musical instrument score file to obtain a note identifier and a time value identifier includes: parsing a note tag of a musical score file of the MusicXML format to obtain a note identifier and time Value identifier.
- the note tag of the musical score file of the MusicXML format is parsed to obtain each note identifier and a time value identifier corresponding to the note identifier, including: for the MusicXML format
- the sub-label under the note tag of the musical instrument score file is parsed to obtain a note identifier and a time value identifier corresponding to the note identifier.
- each musical note identifier and a time value identifier corresponding to the musical note identifier are obtained by parsing the musical instrument score file, and the obtained musical note identifier and the note are obtained.
- the time value identifier corresponding to the identifier is combined according to a predetermined rule, and the combined note identifier and the time value identifier are arranged according to the performance sequence of the note identifier in the musical score file to obtain a character.
- Musical instrument score file in streaming format. In the obtained musical score file of the character stream format, only the note identifier and the time value identifier can be included, and no excessive label and file definition are required, thereby making the structure of the score file simpler and correspondingly reducing the score file. size.
- the embodiment of the present application provides a device for converting a musical instrument score file, including:
- a parsing module configured to parse the musical instrument score file to obtain each note identifier and a time value identifier corresponding to the note identifier; wherein the note identifier represents a tone of the instrument, and the time value identifier The sign indicates the length of this note;
- a combination module configured to combine the obtained note identifier and the time value identifier corresponding to the note identifier according to a predetermined rule
- an arranging module configured to arrange the combined note identifier and the time value identifier according to the performance sequence of the note identifier in the musical score file to obtain a musical instrument score file in a character stream format.
- the parsing module is configured to parse a note tag of a musical score file in a MusicXML format to obtain a note identifier and a time value identifier.
- the parsing module is configured to parse a subtag under the note tag of the musical score file of the MusicXML format to obtain a note identifier and a time value identifier corresponding to the note identifier. symbol.
- the apparatus for converting musical instrument score files obtains each note identifier and a time value identifier corresponding to the note identifier by parsing the musical score file, and the obtained note identifier and the note are The time value identifier corresponding to the identifier is combined according to a predetermined rule, and the combined note identifier and the time value identifier are arranged according to the performance sequence of the note identifier in the musical score file to obtain a character.
- Musical instrument score file in streaming format. In the obtained musical score file of the character stream format, only the note identifier and the time value identifier can be included, and no excessive label and file definition are required, thereby making the structure of the score file simpler and correspondingly reducing the score file. size.
- an embodiment of the present application provides an electronic device, including: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, and the processor And a memory disposed on the circuit board; a power supply circuit for powering each circuit or device of the electronic device; a memory for storing executable program code; and the processor operating by reading executable program code stored in the memory
- the musical instrument score file to be played includes a plurality of musical note information sequentially arranged in a playing order, each note information being represented by a note identifier representing a sound of the musical instrument and a time value identifier indicating the length of the sound.
- the composition, the file structure is relatively simple, and the parsing efficiency is high, thereby improving the playback efficiency.
- the electronic device of the embodiment of the present application by parsing the musical instrument score file, obtaining each note identifier and a time value identifier corresponding to the note identifier, and obtaining the obtained note identifier and corresponding to the note identifier
- the time value identifiers are combined according to a predetermined rule, and the combined note identifiers and time value identifiers are arranged according to the performance sequence of the note identifiers in the musical instrument score file to obtain an instrument of a character stream format.
- Score file In the obtained musical score file of the character stream format, only the note identifier and the time value identifier can be included, and no excessive label and file definition are required, thereby making the structure of the score file simpler and correspondingly reducing the score file. size.
- an embodiment of the present application provides a storage medium, where the storage medium stores one or more modules, when the one or more modules are executed by an electronic device, causing the electronic device to perform the foregoing A method for playing a musical score file according to an embodiment or a method for converting a musical score file according to any of the preceding embodiments.
- an embodiment of the present application provides an application program, when executed, performing the method for playing a musical score file according to any of the foregoing embodiments or performing the musical instrument score file described in any of the foregoing embodiments. Conversion method.
- FIG. 1 is a schematic flow chart of an embodiment of a method for playing a musical score sheet file of the present application
- FIG. 2 is a schematic structural view of an embodiment of a playback apparatus for a musical score file of the present application
- FIG. 3 is a schematic flow chart of an embodiment of a method for converting a musical instrument score file according to the present application
- FIG. 4 is a schematic structural view of an embodiment of a device for converting a musical instrument score file according to the present application
- FIG. 5 is a schematic structural diagram of an embodiment of an electronic device according to the present application.
- FIG. 1 is a schematic flow chart of an embodiment of a method for playing a musical score file of the present application.
- an embodiment of a method for playing a musical score file of the present application includes:
- the musical score files in this embodiment can be pre-arranged by manual means.
- Instrument score files can be packaged into files in APK format.
- APK is the abbreviation of Android Package, which is the Android installation package (apk).
- the instrument sound file corresponding to the note identifier can be pre-collected and saved. For example, the sound of each of the 88 keys of the piano can be collected and then saved as a sound file in mp3 format.
- the corresponding instrument sound file can be played according to the note identifier obtained by parsing each note information in the musical score file; and each note information in the instrument score file can be parsed to obtain all the note identifiers. After that, all the instrument sound files corresponding to the note identifiers are played in the order of performance.
- the musical score file to be played includes a plurality of musical note information sequentially arranged in a playing order, each note information being represented by a note identifier representing a sound of the musical instrument and indicating the length of the sound.
- the time value identifier is composed, the file structure is relatively simple, and the parsing efficiency is high, thereby improving the playback efficiency.
- the musical score file may be a piano score file or other musical score files, and the present application is not limited thereto.
- the piano score file is taken as an example to illustrate the arrangement of piano scores.
- Table 1 shows the note identifiers corresponding to the sounds emitted by the 88 keys of the piano.
- Each note identifier in the above table represents 88 tones of the piano button.
- Piano scores can be obtained by arranging note identifiers and time value identifiers in the order of performance in the order of characters.
- the character stream below is an example piano score.
- bass means the bass spectrum.
- the analyzing the musical score file to obtain a note identifier and a time value identifier may include:
- the note information in the musical score file is parsed according to a predetermined combination rule of the note identifier and the time value identifier, and the note identifier and the time value identifier of the musical score file are obtained.
- the combination rule of the note identifier and the time value identifier in the note information is A+B, and according to the rule, when the note information in the musical instrument score file is parsed, the position of the A is arranged.
- a character or a string is a note identifier, and a character or string arranged at the B position is a time value identifier.
- a note of the musical instrument represented by the note identifier includes a sound obtained according to a special playing method, for example, including The sounds, ligatures, cymbals, boeing, vibrato, long-sounding, short-sounding sounds obtained by special performance methods.
- the analyzing the musical score file to obtain a note identifier and a time value identifier including:
- the combination rule of the note identifier and the time value identifier in the note information is A+B, and according to the rule, when the note information in the musical instrument score file is parsed, the position of the A is arranged.
- a character or a string is a note identifier, and a character or string arranged at the B position is a time value identifier.
- a note identifier having a one-to-one correspondence with 88 keys of the piano is stored in the piano note identifier library.
- FIG. 2 is a schematic structural diagram of an embodiment of a playback apparatus for a musical score file of the present application.
- an embodiment of a playback apparatus for a musical score file of the present application includes: a parsing module 21, a search module 22, and a play module 23;
- the parsing module 21 is configured to parse the musical instrument score file to obtain a note identifier and a time value identifier.
- the musical instrument score file includes a plurality of note information sequentially arranged in a playing order, and each note information is represented by the musical instrument.
- the musical score files in this embodiment can be pre-arranged by manual means.
- Instrument score files can be packaged into files in APK format.
- APK is the abbreviation of Android Package, which is the Android installation package (apk).
- the musical instrument score file may be a piano score file, and the present application is not limited thereto, and may be other musical score files. Among them, regarding the arrangement method of the piano score, refer to the related description above.
- the searching module 22 is configured to search for a pre-stored musical instrument sound file corresponding to the note identifier according to the note identifier.
- the instrument sound file corresponding to the note identifier can be pre-collected and saved. For example, the sound of each of the 88 keys of the piano can be collected and then saved as a sound file in mp3 format.
- the playing module 23 is configured to play the musical instrument sound file according to the length indicated by the time value identifier.
- the corresponding instrument sound file can be played according to the note identifier obtained by parsing each note information in the musical score file; and each note information in the instrument score file can be parsed to obtain all the note identifiers. After that, all the instrument sound files corresponding to the note identifiers are played in the order of performance.
- the musical instrument score file to be played includes a plurality of musical note information sequentially arranged in a playing order, each note information being represented by a note identifier representing a sound of the musical instrument and indicating the length of the sound.
- the time value identifier is composed, the file structure is relatively simple, and the parsing efficiency is high, thereby improving the playback efficiency.
- the parsing module 21 is configured to parse the note information in the musical score file according to a combination rule of a predetermined note identifier and a time value identifier, to obtain the The note identifier and time value identifier of the instrument score file.
- the combination rule of the note identifier and the time value identifier in the note information is A+B, and according to the rule, when the note information in the musical instrument score file is parsed, the position of the A is arranged.
- a character or a string is a note identifier, and a character or string arranged at the B position is a time value identifier.
- a note of the musical instrument represented by the note identifier includes a sound obtained according to a special playing method, for example, including The sounds, ligatures, cymbals, boeing, vibrato, long-sounding, short-sounding sounds obtained by special performance methods.
- the musical score file is a piano score file; and the note identifier in each note information represents at least one of the piano The sound of the button.
- the parsing module 21 includes:
- the combination rule of the note identifier and the time value identifier in the note information is A+B, and according to this rule, when the note information in the musical score file is parsed, the character or character string arranged at the position of A is The note identifier, the character or string arranged in the B position is the time value identifier.
- a matching sub-module configured to match the obtained note identifier with a note identifier in a pre-stored piano note identifier library to obtain a piano button corresponding to the note identifier; wherein, The correspondence between the note identifier and the keys of the piano is stored in the piano note identifier library.
- a note identifier having a one-to-one correspondence with 88 keys of the piano is stored in the piano note identifier library.
- FIG. 3 is a schematic flow chart of an embodiment of a method for converting a musical instrument score file according to the present application.
- an embodiment of a method for converting a musical instrument score file of the present application includes:
- the musical instrument score file is a musical score file in the MusicXML format.
- the musical instrument score file is parsed to obtain each note identifier and a time value identifier corresponding to the note identifier, including: parsing the note tag of the musical score file of the MusicXML format to obtain a note identifier Symbol and time value identifier.
- the sub-tag under the note tag of the musical score file of the MusicXML format can be parsed to obtain a note identifier and a time-value identifier corresponding to the note identifier.
- the obtained note identifier and the time value identifier corresponding to the note identifier may be combined in accordance with a combination rule such as A+B or A/B.
- each musical note identifier and a time value identifier corresponding to the musical note identifier are obtained by parsing the musical instrument score file, and the obtained musical note identifier and the note are obtained.
- the time value identifier corresponding to the identifier is combined according to a predetermined rule, and the combined note identifier and the time value identifier are arranged according to the performance sequence of the note identifier in the musical score file to obtain a character.
- Musical instrument score file in streaming format. In the obtained musical score file of the character stream format, only the note identifier and the time value identifier can be included, and no excessive label and file definition are required, thereby making the structure of the score file simpler and correspondingly reducing the score file. size.
- the following is a process of the music score file in the MusicXML format as an example to describe the process of parsing the musical instrument score file into the musical score file of the character stream format in the embodiment of the present application, and the specific process includes:
- the note identifier can be obtained by parsing the ⁇ step>, ⁇ alter> and ⁇ octave> subtags under the ⁇ note> tag, where ⁇ step> is the basic phonetic name, ⁇ alter> Indicates the level of the raised or lowered sound, ⁇ octave> indicates the sound group to which it belongs; and the beat length of the note is obtained by parsing the ⁇ duration> sub-tab, and the beat length is represented by the time value identifier. If the ⁇ note> tag has a ⁇ rest> subtag, indicating that the subnote is a rest, you only need to parse the ⁇ duration> subtag to get the pause length of the rest.
- FIG. 4 is a schematic structural diagram of an embodiment of a device for converting a musical instrument score file according to the present application.
- an embodiment of the apparatus for converting a musical instrument score file includes: a parsing module 31, a combining module 32, and an arranging module 33;
- the parsing module 31 is configured to parse the musical instrument score file to obtain each note identifier and a time value identifier corresponding to the note identifier; wherein the note identifier represents a tone of the instrument, and the time value The identifier indicates the length of this tone.
- the musical score file is a musical score file in the MusicXML (Music Extensible Markup Language) format.
- This file uses an open MusicXML-based music symbol format to store basic information about songs.
- MusicXML technology represents the overall music element and attribute information as an XML document.
- it can also be a music score file in other formats, which is not limited in this embodiment.
- the combining module 32 is configured to combine the obtained note identifier and the time value identifier corresponding to the note identifier according to a predetermined rule. For example, the obtained note identifier and the time value identifier corresponding to the note identifier may be combined in accordance with a combination rule such as A+B or A/B.
- the arranging module 33 is configured to arrange the combined note identifier and the time value identifier according to the performance sequence of the note identifier in the musical score file to obtain a musical instrument score file in a character stream format.
- the apparatus for converting musical instrument score files obtains each note identifier and a time value identifier corresponding to the note identifier by parsing the musical score file, and the obtained note identifier and the note are The time value identifier corresponding to the identifier is combined according to a predetermined rule, and the combined note identifier and the time value identifier are arranged according to the performance sequence of the note identifier in the musical score file to obtain a character.
- Musical instrument score file in streaming format. In the obtained musical score file of the character stream format, only the note identifier and the time value identifier can be included, and no excessive label and file definition are required, thereby making the structure of the score file simpler and correspondingly reducing the score file. size.
- the parsing module is configured to parse a note tag of a musical score file of the MusicXML format to obtain a note identifier and a time value identifier. Specifically, the parsing module is configured to parse a subtag under the note tag of the musical score file of the MusicXML format to obtain a note identifier and a time value identifier corresponding to the note identifier.
- FIG. 5 is a schematic structural diagram of an embodiment of an electronic device according to the present application.
- an embodiment of the electronic device of the present application includes a housing 81, a processor 82, a memory 83, a circuit board 84, and a power supply circuit 85, wherein the circuit board 84 is disposed inside a space enclosed by the housing 81, and the processor 82 And a memory 83 is disposed on the circuit board 84; a power supply circuit 85 for supplying power to the respective circuits or devices of the above electronic device; a memory 83 for storing executable program code; and a processor 82 for reading executable data stored in the memory 83
- the program code runs a program corresponding to the executable program code for executing the playing method of the musical score file described in any of the foregoing embodiments.
- the musical instrument score file to be played includes a plurality of musical note information sequentially arranged in a playing order, each note information being represented by a note identifier representing a sound of the musical instrument and a time value identifier indicating the length of the sound.
- Group The file structure is relatively simple and the resolution efficiency is high, thereby improving the playback efficiency.
- the processor 82 of the electronic device of the embodiment of the present application runs the program corresponding to the executable program code by reading the executable program code stored in the memory 83, and is further configured to execute the musical instrument score file described in any of the foregoing embodiments. Conversion method.
- each musical note identifier and a time value identifier corresponding to the musical note identifier are obtained by parsing the musical instrument score file, and the obtained musical note identifier and the note identifier corresponding to the note identifier are obtained.
- the time value identifiers are combined according to a predetermined rule, and the combined note identifiers and time value identifiers are arranged according to the performance sequence of the note identifiers in the musical score file to obtain a musical score of the character stream format. file.
- the obtained musical score file of the character stream format only the note identifier and the time value identifier can be included, and no excessive label and file definition are required, thereby making the structure of the score file simpler and correspondingly reducing the score file. size.
- the electronic device exists in a variety of forms including, but not limited to:
- Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
- Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
- Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
- Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
- Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
- the server consists of a processor, a hard disk, a memory, a system bus, etc.
- the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
- the embodiment of the present application further provides a storage medium, where the storage medium stores one or more modules, when the one or more modules are executed by one electronic device, causing the electronic device to perform any of the foregoing embodiments.
- the method of playing the musical score file is not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, a storage medium, where the storage medium stores one or more modules, when the one or more modules are executed by one electronic device, causing the electronic device to perform any of the foregoing embodiments.
- the method of playing the musical score file is not limited to, a musical score file.
- the embodiment of the present application further provides a storage medium, where the storage medium stores one or more modules, when the one or more modules are executed by one electronic device, causing the electronic device to perform any of the foregoing embodiments.
- the embodiment of the present application further provides an application program for performing the playing method of the musical instrument score file according to any of the foregoing embodiments during operation.
- the embodiment of the present application further provides an application program for performing the conversion method of the musical instrument score file described in any of the foregoing embodiments at runtime.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Auxiliary Devices For Music (AREA)
Abstract
A music instrument score file playing method, conversion method and apparatus, and an electronic device, which relate to the technical field of music instrument scores. The music instrument score file playing method comprises: parsing a music instrument score file to obtain a note identifier and a duration identifier (S11), wherein the music instrument score file comprises a plurality of pieces of note information sequentially arranged according to a playing sequence, and each piece of note information is composed of the note identifier representing a sound of a music instrument and the duration identifier representing the length of the sound; searching for a music instrument sound file stored in advance and corresponding to the note identifier according to the note identifier (S12); and playing the music instrument sound file according to the length represented by the duration identifier (S13).
Description
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201510641215.6,申请日为2015年9月30日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is based on a Chinese patent application filed on Sep. 30, 2015, the entire disclosure of which is hereby incorporated by reference.
本申请涉及乐器乐谱技术领域,尤其涉及一种乐器乐谱文件的播放方法、转换方法、装置及电子设备。The present application relates to the field of musical instrument music spectrum technology, and in particular, to a method, a conversion method, a device and an electronic device for playing a musical instrument music score file.
MusicXML(Music Extensible Markup Language音乐扩展标记语言)是一个开放的基于XML的音乐符号文件格式。它被设计用来做为乐谱信息的交换格式,特别是在不同的乐谱显示软件之间进行交换。MusicXML将整体乐曲元素和属性信息表示为一份XML文档,它克服了另外两种格式---NIFF格式(基于图片)和SMDL格式(过于庞大)的兼容性差、结构复杂等许多缺点,目前已经被很多应用软件支持。MusicXML (Music Extensible Markup Language) is an open XML-based music symbol file format. It is designed to be used as an exchange format for score information, especially between different score display software. MusicXML represents the overall music element and attribute information as an XML document, which overcomes many shortcomings such as poor compatibility and complex structure of the other two formats - NIFF format (based on pictures) and SMDL format (too large). Supported by many applications.
MusicXML中,包括属性结点,共有超过600个结点,这些结点用多个文件完成定义,使得MusicXML文件较大而且结构仍然较为复杂。在对MusicXML格式的乐谱文件进行音乐播放时,需要先对MusicXML格式的乐谱文件进行解析。由于MusicXML的仍然较为复杂结构,使得解析效率较低,从而影响播放效率。MusicXML, including attribute nodes, has more than 600 nodes. These nodes are defined with multiple files, making the MusicXML file larger and more complex. When playing music files in musicXML format, you need to parse the music files in MusicXML format. Due to the still complicated structure of MusicXML, the parsing efficiency is low, which affects the playback efficiency.
发明内容Summary of the invention
一方面,本申请实施例提供一种乐器乐谱文件的播放方法,能够提高播放效率。In one aspect, the embodiment of the present application provides a method for playing a musical score file, which can improve playback efficiency.
所述乐器乐谱文件的播放方法,包括:The playing method of the musical score file includes:
对乐器乐谱文件进行解析,得到音符标识符和时值标识符;其中,所述乐器乐谱文件包括多个按演奏顺序依次排列的音符信息,每个音符信息由表示乐器的一个音的音符标识符和表示这个音的长度的时值标识符组成;Parsing the musical instrument score file to obtain a note identifier and a time value identifier; wherein the musical score file includes a plurality of note information sequentially arranged in a play order, each note information being represented by a note identifier representing a note of the instrument And a time value identifier indicating the length of the sound;
根据所述音符标识符,查找预先保存的与所述音符标识符相对应的乐器声音文件;Searching for a pre-saved musical instrument sound file corresponding to the note identifier according to the note identifier;
将所述乐器声音文件,按照所述时值标识符所表示的长度进行播放。The instrument sound file is played according to the length indicated by the time value identifier.
在本申请的至少一个实施例中,所述对乐器乐谱文件进行解析,得到音符标识符和时值标识符,包括:In at least one embodiment of the present application, the musical instrument score file is parsed to obtain a note identifier and a time value identifier, including:
根据预定的音符标识符和时值标识符的组合规则,对乐器乐谱文件中的音符信息进行解析,得到该乐器乐谱文件的音符标识符和时值标识符。
The note information in the musical score file is parsed according to a predetermined combination rule of the note identifier and the time value identifier, and the note identifier and the time value identifier of the musical score file are obtained.
在本申请的至少一个实施例中,所述音符标识符所表示的乐器的一个音,包括按照特殊演奏法所得到的音。In at least one embodiment of the present application, a note of the musical instrument represented by the note identifier includes a tone obtained according to a special playing method.
在本申请的至少一个实施例中,所述乐器乐谱文件为钢琴乐谱文件;所述每个音符信息中的音符标识符表示钢琴的至少一个按键发出的声音。In at least one embodiment of the present application, the musical score file is a piano score file; the note identifier in each note information represents a sound emitted by at least one of the keys of the piano.
在本申请的至少一个实施例中,所述对乐器乐谱文件进行解析,得到音符标识符和时值标识符,包括:In at least one embodiment of the present application, the musical instrument score file is parsed to obtain a note identifier and a time value identifier, including:
根据预定的音符标识符和时值标识符的组合规则,对钢琴乐谱文件中的音符信息进行解析,得到钢琴乐谱文件的音符标识符和时值标识符;Performing the note information in the piano score file according to a predetermined combination rule of the note identifier and the time value identifier to obtain a note identifier and a time value identifier of the piano score file;
将得到的所述音符标识符,与预先保存的钢琴音符标识符库中的音符标识符进行匹配,得到所述音符标识符所对应的钢琴的按键;其中,在所述钢琴音符标识符库中保存有音符标识符与钢琴的按键之间的对应关系。Matching the obtained note identifier with a note identifier in a pre-stored piano note identifier library to obtain a piano button corresponding to the note identifier; wherein, in the piano note identifier library The correspondence between the note identifier and the keys of the piano is saved.
本申请实施例乐器乐谱文件的播放方法,所要播放的乐器乐谱文件包括多个按演奏顺序依次排列的音符信息,每个音符信息由表示乐器的一个音的音符标识符和表示这个音的长度的时值标识符组成,这样文件结构相对简单,解析效率较高,由此能够提高播放效率。In the method for playing a musical score file of the embodiment of the present application, the musical score file to be played includes a plurality of musical note information sequentially arranged in a playing order, each note information being represented by a note identifier representing a sound of the musical instrument and indicating the length of the sound. The time value identifier is composed, so that the file structure is relatively simple and the parsing efficiency is high, thereby improving the playback efficiency.
另一方面,本申请实施例提供一种乐器乐谱文件的播放装置,能够提高播放效率。所述乐器乐谱文件的播放装置,包括:On the other hand, the embodiment of the present application provides a playback apparatus for a musical score file, which can improve playback efficiency. The playing device of the musical score file includes:
解析模块,用于对乐器乐谱文件进行解析,得到音符标识符和时值标识符;其中,所述乐器乐谱文件包括多个按演奏顺序依次排列的音符信息,每个音符信息由表示乐器的一个音的音符标识符和表示这个音的长度的时值标识符组成;a parsing module, configured to parse the musical instrument score file to obtain a note identifier and a time value identifier; wherein the musical score file includes a plurality of note information sequentially arranged in a playing order, each note information being represented by a musical instrument a note identifier of the note and a time value identifier indicating the length of the note;
查找模块,用于根据所述音符标识符,查找预先保存的与所述音符标识符相对应的乐器声音文件;a searching module, configured to search, according to the note identifier, a pre-stored musical instrument sound file corresponding to the note identifier;
播放模块,用于将所述乐器声音文件,按照所述时值标识符所表示的长度进行播放。a playing module, configured to play the musical instrument sound file according to a length represented by the time value identifier.
在本申请的至少一个实施例中,所述解析模块,用于根据预定的音符标识符和时值标识符的组合规则,对乐器乐谱文件中的音符信息进行解析,得到该乐器乐谱文件的音符标识符和时值标识符。In at least one embodiment of the present application, the parsing module is configured to parse note information in a musical score file according to a predetermined combination rule of a note identifier and a time value identifier to obtain a note of the musical score file. Identifier and time value identifier.
在本申请的至少一个实施例中,所述音符标识符所表示的乐器的一个音包括按照特殊演奏法所得到的音。In at least one embodiment of the present application, a note of the musical instrument represented by the note identifier includes a tone obtained according to a special playing method.
在本申请的至少一个实施例中,所述乐器乐谱文件为钢琴乐谱文件;所述每个音符信息中的音符标识符表示钢琴的至少一个按键发出的声音。In at least one embodiment of the present application, the musical score file is a piano score file; the note identifier in each note information represents a sound emitted by at least one of the keys of the piano.
在本申请的至少一个实施例中,所述解析模块,包括:In at least one embodiment of the present application, the parsing module includes:
解析子模块,根据预定的音符标识符和时值标识符的组合规则,对钢琴乐谱文件中的音符信息进行解析,得到钢琴乐谱文件的音符标识符和时值标识符;Parsing the sub-module, parsing the note information in the piano score file according to a predetermined combination rule of the note identifier and the time value identifier, and obtaining a note identifier and a time value identifier of the piano score file;
匹配子模块,用于将得到的所述音符标识符,与预先保存的钢琴音符标识符库中的音符标识符进行匹配,得到所述音符标识符所对应的钢琴的按键;其中,在所述钢琴音符标识符
库中保存有音符标识符与钢琴的按键之间的对应关系。a matching sub-module, configured to match the obtained note identifier with a note identifier in a pre-stored piano note identifier library to obtain a piano button corresponding to the note identifier; wherein, Piano note identifier
The correspondence between the note identifier and the keys of the piano is stored in the library.
本申请实施例乐器乐谱文件的播放装置,所要播放的乐器乐谱文件包括多个按演奏顺序依次排列的音符信息,每个音符信息由表示乐器的一个音的音符标识符和表示这个音的长度的时值标识符组成,文件结构相对简单,解析效率较高,由此能够提高播放效率。In the playing device of the musical instrument score file of the embodiment of the present application, the musical instrument score file to be played includes a plurality of musical note information sequentially arranged in a playing order, each note information being represented by a note identifier representing a sound of the musical instrument and indicating the length of the sound. The time value identifier is composed, the file structure is relatively simple, and the parsing efficiency is high, thereby improving the playback efficiency.
再一方面,本申请实施例提供一种对乐器乐谱文件的转换方法,能够简化乐谱文件结构,降低乐谱文件的大小。所述对乐器乐谱文件的转换方法,包括:In another aspect, the embodiment of the present application provides a method for converting a musical score file, which can simplify the structure of the score file and reduce the size of the score file. The method for converting a musical score file includes:
对乐器乐谱文件进行解析,得到每个音符标识符和与该音符标识符相对应的时值标识符;其中,所述音符标识符表示乐器的一个音,所述时值标识符表示这个音的长度;Parsing the musical score file to obtain each note identifier and a time value identifier corresponding to the note identifier; wherein the note identifier represents a tone of the instrument, and the time value identifier indicates the sound length;
将得到的音符标识符和与该音符标识符相对应的时值标识符,按照预定规则进行组合;And combining the obtained note identifier and the time value identifier corresponding to the note identifier according to a predetermined rule;
将组合后的音符标识符和时值标识符,按照所述音符标识符在所述乐器乐谱文件中的演奏序列进行排列,得到字符流格式的乐器乐谱文件。The combined note identifier and time value identifier are arranged according to the performance sequence of the note identifier in the musical score file to obtain a musical score file in a character stream format.
在本申请的至少一个实施例中,所述对乐器乐谱文件进行解析,得到音符标识符和时值标识符,包括:对MusicXML格式的乐器乐谱文件的note标签进行解析,得到音符标识符和时值标识符。In at least one embodiment of the present application, the parsing of the musical instrument score file to obtain a note identifier and a time value identifier includes: parsing a note tag of a musical score file of the MusicXML format to obtain a note identifier and time Value identifier.
在本申请的至少一个实施例中,所述对MusicXML格式的乐器乐谱文件的note标签进行解析,得到每个音符标识符和与该音符标识符相对应的时值标识符,包括:对MusicXML格式的乐器乐谱文件的note标签下的子标签进行解析,得到音符标识符和与该音符标识符相对应的时值标识符。In at least one embodiment of the present application, the note tag of the musical score file of the MusicXML format is parsed to obtain each note identifier and a time value identifier corresponding to the note identifier, including: for the MusicXML format The sub-label under the note tag of the musical instrument score file is parsed to obtain a note identifier and a time value identifier corresponding to the note identifier.
本申请实施例对乐器乐谱文件的转换方法,通过对乐器乐谱文件进行解析,得到每个音符标识符和与该音符标识符相对应的时值标识符,将得到的音符标识符和与该音符标识符相对应的时值标识符,按照预定规则进行组合,将组合后的音符标识符和时值标识符,按照所述音符标识符在所述乐器乐谱文件中的演奏序列进行排列,得到字符流格式的乐器乐谱文件。在得到的字符流格式的乐器乐谱文件中,可只包括音符标识符和时值标识符,不需要过多的标签和文件定义,由此使得乐谱文件结构更加简单,也能相应降低乐谱文件的大小。In the method for converting a musical score file of the embodiment of the present application, each musical note identifier and a time value identifier corresponding to the musical note identifier are obtained by parsing the musical instrument score file, and the obtained musical note identifier and the note are obtained. The time value identifier corresponding to the identifier is combined according to a predetermined rule, and the combined note identifier and the time value identifier are arranged according to the performance sequence of the note identifier in the musical score file to obtain a character. Musical instrument score file in streaming format. In the obtained musical score file of the character stream format, only the note identifier and the time value identifier can be included, and no excessive label and file definition are required, thereby making the structure of the score file simpler and correspondingly reducing the score file. size.
再一方面,本申请实施例提供一种对乐器乐谱文件的转换装置,包括:In a further aspect, the embodiment of the present application provides a device for converting a musical instrument score file, including:
解析模块,用于对乐器乐谱文件进行解析,得到每个音符标识符和与该音符标识符相对应的时值标识符;其中,所述音符标识符表示乐器的一个音,所述时值标识符表示这个音的长度;a parsing module, configured to parse the musical instrument score file to obtain each note identifier and a time value identifier corresponding to the note identifier; wherein the note identifier represents a tone of the instrument, and the time value identifier The sign indicates the length of this note;
组合模块,用于将得到的音符标识符和与该音符标识符相对应的时值标识符,按照预定规则进行组合;a combination module, configured to combine the obtained note identifier and the time value identifier corresponding to the note identifier according to a predetermined rule;
排列模块,用于将组合后的音符标识符和时值标识符,按照所述音符标识符在所述乐器乐谱文件中的演奏序列进行排列,得到字符流格式的乐器乐谱文件。And an arranging module, configured to arrange the combined note identifier and the time value identifier according to the performance sequence of the note identifier in the musical score file to obtain a musical instrument score file in a character stream format.
在本申请的至少一个实施例中,所述解析模块,用于对MusicXML格式的乐器乐谱文件的note标签进行解析,得到音符标识符和时值标识符。
In at least one embodiment of the present application, the parsing module is configured to parse a note tag of a musical score file in a MusicXML format to obtain a note identifier and a time value identifier.
在本申请的至少一个实施例中,所述解析模块,用于对MusicXML格式的乐器乐谱文件的note标签下的子标签进行解析,得到音符标识符和与该音符标识符相对应的时值标识符。In at least one embodiment of the present application, the parsing module is configured to parse a subtag under the note tag of the musical score file of the MusicXML format to obtain a note identifier and a time value identifier corresponding to the note identifier. symbol.
本申请实施例对乐器乐谱文件的转换装置,通过对乐器乐谱文件进行解析,得到每个音符标识符和与该音符标识符相对应的时值标识符,将得到的音符标识符和与该音符标识符相对应的时值标识符,按照预定规则进行组合,将组合后的音符标识符和时值标识符,按照所述音符标识符在所述乐器乐谱文件中的演奏序列进行排列,得到字符流格式的乐器乐谱文件。在得到的字符流格式的乐器乐谱文件中,可只包括音符标识符和时值标识符,不需要过多的标签和文件定义,由此使得乐谱文件结构更加简单,也能相应降低乐谱文件的大小。In the embodiment of the present application, the apparatus for converting musical instrument score files obtains each note identifier and a time value identifier corresponding to the note identifier by parsing the musical score file, and the obtained note identifier and the note are The time value identifier corresponding to the identifier is combined according to a predetermined rule, and the combined note identifier and the time value identifier are arranged according to the performance sequence of the note identifier in the musical score file to obtain a character. Musical instrument score file in streaming format. In the obtained musical score file of the character stream format, only the note identifier and the time value identifier can be included, and no excessive label and file definition are required, thereby making the structure of the score file simpler and correspondingly reducing the score file. size.
再一方面,本申请实施例提供一种电子设备,所述电子设备包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为上述电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行前述任一实施例所述的乐器乐谱文件的播放方法或执行前述任一实施例所述的对乐器乐谱文件的转换方法。In another aspect, an embodiment of the present application provides an electronic device, including: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, and the processor And a memory disposed on the circuit board; a power supply circuit for powering each circuit or device of the electronic device; a memory for storing executable program code; and the processor operating by reading executable program code stored in the memory A program corresponding to the program code for performing the method for playing the musical score file according to any of the preceding embodiments or the method for converting the musical score file described in any of the foregoing embodiments.
本申请实施例电子设备,所要播放的乐器乐谱文件包括多个按演奏顺序依次排列的音符信息,每个音符信息由表示乐器的一个音的音符标识符和表示这个音的长度的时值标识符组成,文件结构相对简单,解析效率较高,由此能够提高播放效率。In the electronic device of the embodiment of the present application, the musical instrument score file to be played includes a plurality of musical note information sequentially arranged in a playing order, each note information being represented by a note identifier representing a sound of the musical instrument and a time value identifier indicating the length of the sound. The composition, the file structure is relatively simple, and the parsing efficiency is high, thereby improving the playback efficiency.
或本申请实施例电子设备,通过对乐器乐谱文件进行解析,得到每个音符标识符和与该音符标识符相对应的时值标识符,将得到的音符标识符和与该音符标识符相对应的时值标识符,按照预定规则进行组合,将组合后的音符标识符和时值标识符,按照所述音符标识符在所述乐器乐谱文件中的演奏序列进行排列,得到字符流格式的乐器乐谱文件。在得到的字符流格式的乐器乐谱文件中,可只包括音符标识符和时值标识符,不需要过多的标签和文件定义,由此使得乐谱文件结构更加简单,也能相应降低乐谱文件的大小。Or the electronic device of the embodiment of the present application, by parsing the musical instrument score file, obtaining each note identifier and a time value identifier corresponding to the note identifier, and obtaining the obtained note identifier and corresponding to the note identifier The time value identifiers are combined according to a predetermined rule, and the combined note identifiers and time value identifiers are arranged according to the performance sequence of the note identifiers in the musical instrument score file to obtain an instrument of a character stream format. Score file. In the obtained musical score file of the character stream format, only the note identifier and the time value identifier can be included, and no excessive label and file definition are required, thereby making the structure of the score file simpler and correspondingly reducing the score file. size.
再一方面,本申请实施例提供一种存储介质,所述存储介质存储有一个或者多个模块,当所述一个或者多个模块被一个电子设备执行时,使得所述电子设备:执行前述任一实施例所述的乐器乐谱文件的播放方法或执行前述任一实施例所述的对乐器乐谱文件的转换方法。In still another aspect, an embodiment of the present application provides a storage medium, where the storage medium stores one or more modules, when the one or more modules are executed by an electronic device, causing the electronic device to perform the foregoing A method for playing a musical score file according to an embodiment or a method for converting a musical score file according to any of the preceding embodiments.
再一方面,本申请实施例提供一种应用程序,用于在运行时,执行前述任一实施例所述的乐器乐谱文件的播放方法或执行前述任一实施例所述的对乐器乐谱文件的转换方法。In still another aspect, an embodiment of the present application provides an application program, when executed, performing the method for playing a musical score file according to any of the foregoing embodiments or performing the musical instrument score file described in any of the foregoing embodiments. Conversion method.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本申请乐器乐谱文件的播放方法一实施例的流程示意图;1 is a schematic flow chart of an embodiment of a method for playing a musical score sheet file of the present application;
图2为本申请乐器乐谱文件的播放装置一实施例的结构示意图;2 is a schematic structural view of an embodiment of a playback apparatus for a musical score file of the present application;
图3为本申请对乐器乐谱文件的转换方法一实施例的流程示意图;3 is a schematic flow chart of an embodiment of a method for converting a musical instrument score file according to the present application;
图4为本申请对乐器乐谱文件的转换装置一实施例的结构示意图;4 is a schematic structural view of an embodiment of a device for converting a musical instrument score file according to the present application;
图5为本申请电子设备实施例的结构示意图。FIG. 5 is a schematic structural diagram of an embodiment of an electronic device according to the present application.
下面结合附图对本申请实施例进行详细描述。The embodiments of the present application are described in detail below with reference to the accompanying drawings.
应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。It should be understood that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
图1为本申请乐器乐谱文件的播放方法一实施例的流程示意图。参看图1,本申请乐器乐谱文件的播放方法实施例,包括:1 is a schematic flow chart of an embodiment of a method for playing a musical score file of the present application. Referring to FIG. 1, an embodiment of a method for playing a musical score file of the present application includes:
S11、对乐器乐谱文件进行解析,得到音符标识符和时值标识符;其中,所述乐器乐谱文件包括多个按演奏顺序依次排列的音符信息,每个音符信息由表示乐器的一个音的音符标识符和表示这个音的长度的时值标识符组成。S11, parsing the musical instrument score file to obtain a note identifier and a time value identifier; wherein the musical score file includes a plurality of note information sequentially arranged in a playing order, each note information being represented by a note representing a note of the instrument The identifier consists of a time value identifier that represents the length of the sound.
本实施例中的乐器乐谱文件,可通过人工的方式预先编排。乐器乐谱文件可以被打包成APK格式的文件。APK是Android Package的缩写,即Android安装包(apk)。The musical score files in this embodiment can be pre-arranged by manual means. Instrument score files can be packaged into files in APK format. APK is the abbreviation of Android Package, which is the Android installation package (apk).
S12、根据所述音符标识符,查找预先保存的与所述音符标识符相对应的乐器声音文件。S12. Search for a pre-stored musical instrument sound file corresponding to the note identifier according to the note identifier.
与所述音符标识符相对应的乐器声音文件,可预先采集并保存。比如可对钢琴的88个按键的每一个按键发出的声音进行采集,然后保存为mp3格式的声音文件。The instrument sound file corresponding to the note identifier can be pre-collected and saved. For example, the sound of each of the 88 keys of the piano can be collected and then saved as a sound file in mp3 format.
S13、将所述乐器声音文件,按照所述时值标识符所表示的长度进行播放。S13. Play the instrument sound file according to the length indicated by the time value identifier.
可根据对乐器乐谱文件中的每个音符信息解析后得到的音符标识符,进行相对应的乐器声音文件的播放;也可对乐器乐谱文件中的每个音符信息解析后得到所有的音符标识符后,将所有的音符标识符相对应的乐器声音文件按照演奏顺序进行播放。The corresponding instrument sound file can be played according to the note identifier obtained by parsing each note information in the musical score file; and each note information in the instrument score file can be parsed to obtain all the note identifiers. After that, all the instrument sound files corresponding to the note identifiers are played in the order of performance.
本申请实施例乐器乐谱文件的播放方法,所要播放的乐器乐谱文件包括多个按演奏顺序依次排列的音符信息,每个音符信息由表示乐器的一个音的音符标识符和表示这个音的长度的时值标识符组成,文件结构相对简单,解析效率较高,由此能够提高播放效率。In the method for playing a musical score file of the embodiment of the present application, the musical score file to be played includes a plurality of musical note information sequentially arranged in a playing order, each note information being represented by a note identifier representing a sound of the musical instrument and indicating the length of the sound. The time value identifier is composed, the file structure is relatively simple, and the parsing efficiency is high, thereby improving the playback efficiency.
在前述实施例中,所述乐器乐谱文件可以是钢琴乐谱文件,也可以是其它乐器乐谱文件,本申请不限对此不做限定。In the foregoing embodiment, the musical score file may be a piano score file or other musical score files, and the present application is not limited thereto.
下面以钢琴乐谱文件为例,对钢琴乐谱的编排方式进行举例说明。The piano score file is taken as an example to illustrate the arrangement of piano scores.
1.对音符标识符和时值标识符等信息进行标识和定义。主要包括如下几个方面:1. Identify and define information such as note identifiers and time value identifiers. It mainly includes the following aspects:
(1)对钢琴的88个按键分别发出的声音进行标识。(1) Mark the sounds of the 88 keys of the piano.
表一所示为钢琴的88个按键分别发出的声音所对应的音符标识符。
Table 1 shows the note identifiers corresponding to the sounds emitted by the 88 keys of the piano.
表一:Table I:
A-3A-3 | #A-3#A-3 | B-3B-3 | C-2C-2 | #C-2#C-2 | D-2D-2 | #D-2#D-2 | E-2E-2 | F-2F-2 | #F-2#F-2 |
G-2G-2 | #G-2#G-2 | A-2A-2 | #A-2#A-2 | B-2B-2 | C-1C-1 | #C-1#C-1 | D-1D-1 | #D-1#D-1 | E-1E-1 |
F-1F-1 | #F-1#F-1 | G-1G-1 | #G-1#G-1 | A-1A-1 | #A-1#A-1 | B-1B-1 | cc | #c#c | dd |
#d#d | ee | ff | #f#f | gg | #g#g | aa | #a#a | bb | c1C1 |
#c1#c1 | d1D1 | #d1#d1 | e1E1 | f1F1 | #f1#f1 | g1G1 | #g1#g1 | a1A1 | #a1#a1 |
b1B1 | c2C2 | #c2#c2 | d2D2 | #d2#d2 | e2E2 | f2F2 | #f2#f2 | g2G2 | #g2#g2 |
a2A2 | #a2#a2 | b2B2 | c3C3 | #c3#c3 | d3D3 | #d3#d3 | e3E3 | f3F3 | #f3#f3 |
g3G3 | #g3#g3 | a3A3 | #a3#a3 | b3B3 | c4C4 | #c4#c4 | d4D4 | #d4#d4 | e4E4 |
f4F4 | #f4#f4 | g4G4 | #g4#g4 | a4A4 | #a4#a4 | b4B4 | c5C5 |
上表中的每个音符标识符代表钢琴按键的88个音。Each note identifier in the above table represents 88 tones of the piano button.
(2)对时值标识符进行定义。(2) Define the time value identifier.
下面为时值标识符及其所表示的拍数。Below is the time value identifier and the number of beats it represents.
(3)对特殊演奏法进行标识。(3) Mark the special performance method.
下面为特殊演奏法的符号及其所表示的含义。
The following are the symbols of the special playing method and the meanings they represent.
(4)音节使用小括号标注。(4) The syllables are marked with parentheses.
2.将音符标识符和时值标识符等按照演奏顺序,以字符流的方式进行排列,即可得到钢琴乐谱。2. Piano scores can be obtained by arranging note identifiers and time value identifiers in the order of performance in the order of characters.
下面的字符流为一个实例性的钢琴乐谱。The character stream below is an example piano score.
a2[L],b2[L],a2[L],#f2[L],g2[L],a2[L],g2[L],e2[L];d2[K],d3[K],d2[K],T;g2[L],a2[L],g2[L],e2[L],#f2[L],g2[L],#f2[L],d2[L];e2[K],a2[K],a1[K],T;a2[L],b2[L],a2[L],#f2[L],g2[L],a2[L],g2[L],e2[L];d2[K],d3[K],d2[K],T;#f2[K],d2[L],b1[L],d2[K],b1[L],#g1[L];a1[K],a2[K],a1[K],T;e2[L],g2[L],#f2[L],a2[L],g2[L],#f2[L],e2[L],d2[L];#c2[K],e2[K],g2[K],T;#f2[L],a2[L],g2[L],b2[L],a2[L],g2[L],#f2[L],e2[L];d2[K],#f2[K],a2[K],T;b2[L],a2[L],a2[L],g2[L],g2[L],#f2[L],#f2[L],e2[L];e2[K],g2[K],b2[K],T;a2[L],#f2[L],#c2[L],d2[L],g2[L],e2[L],b1[L],#c2[L];d2[K],d3[K],d2[K],T;","bass":"d[K],(#f.a)[K],A-1[K],(e.g.a)[K];d[K],(#f.a)[K],d[K],(#f.a)[K];#c[K],(e.g.a)[K],d[K],(#f.a)[K];A-1[K],(#c.e.a)[K],A-1[K],(#c.e.a)[K];d[K],(#f.a)[K],A-1[K],(e.g.a)[K];d[K],(#f.a)[K],d[K],(#f.a)[K];d[K],(#f.d1)[K],e[K],(#g.b)[K];A-1[K],(e.a.#c1)[K],A-1[K],(e.a.#c1)[K];A-1[K],(e.a.#c1)[K],A-1[K],(e.a.#c1)[K];A-1[K],(e.a.#c1)[K],A-1[K],(e.a.#c1)[K];A-1[K],(#f.a.d1)[K],A-1[K],(#f.a.d1)[K];A-1[K],(#f.a.d1)[K],A-1[K],(#f.a.d1)[K];G-1[K],(g.b.d1)[K],G-1[K],(g.b.e1)[K];G-1[K],(g.b.e1)[K],G-1[K],(g.b.e1)[K];A-1[K],(#f.a.d1)[K],A-1[K],(g.a.#c1)[K];d[K],(#f.a.d1)[K],(#f.a.d1)[K],T;A2[L],b2[L],a2[L],#f2[L],g2[L],a2[L],g2[L],e2[L];d2[K],d3[K] , d2[K], T; g2[L], a2[L], g2[L], e2[L], #f2[L], g2[L], #f2[L], d2[L]; E2[K], a2[K], a1[K], T; a2[L], b2[L], a2[L], #f2[L], g2[L], a2[L], g2[ L], e2[L]; d2[K], d3[K], d2[K], T; #f2[K], d2[L], b1[L], d2[K], b1[L] ,#g1[L];a1[K],a2[K],a1[K],T;e2[L],g2[L],#f2[L],a2[L],g2[L], #f2[L],e2[L],d2[L];#c2[K],e2[K],g2[K],T;#f2[L],a2[L],g2[L], B2[L], a2[L],g2[L],#f2[L],e2[L];d2[K],#f2[K],a2[K],T;b2[L],a2 [L], a2[L], g2[L], g2[L], #f2[L], #f2[L], e2[L]; e2[K], g2[K], b2[K] ,T;a2[L],#f2[L],#c2[L],d2[L],g2[L],e2[L],b1[L],#c2[L];d2[K] ,d3[K],d2[K],T;","bass":"d[K],(#fa)[K],A-1[K],(ega)[K];d[K ],(#fa)[K],d[K],(#fa)[K];#c[K],(ega)[K],d[K],(#fa)[K];A -1[K],(#cea)[K],A-1[K],(#cea)[K];d[K],(#fa)[K],A-1[K],( Ega)[K];d[K],(#fa)[K],d[K],(#fa)[K];d[K],(#f.d1)[K],e[K ],(#gb)[K];A-1[K],(ea#c1)[K],A-1[K],(ea#c1)[K];A-1[K],( Ea#c1)[K],A-1[K],(ea#c1)[K];A-1[K],(ea#c1)[K],A-1[K],(ea# C1)[K];A-1[K],(#fad1)[K],A-1[K],(#fad1)[K]; A-1[K],(#fad1)[K],A-1[K],(#fad1)[K];G-1[K],(gbd1)[K],G-1 [K],(gbe1)[K];G-1[K],(gbe1)[K],G-1[K],(gbe1)[K];A-1[K],( #fad1)[K],A-1[K],(ga#c1)[K];d[K],(#fad1)[K],(#fad1)[K],T;
其中,“a2[L]”表示一个音符信息;其中,“a2”表示钢琴的一个按键的音,“L”表示这个音的长度。“a2[L]”表示“a2”这个音的长度=L节拍。Here, "a2[L]" represents a note information; wherein "a2" represents the sound of one key of the piano, and "L" represents the length of the sound. "a2[L]" indicates the length of the sound of "a2" = L beat.
“(d2.#f2)[K]”表示另一个音符信息,其含义表示“d2”与“#f2”是一个合弦,长度=K节拍。"(d2.#f2)[K]" indicates another note information, meaning that "d2" and "#f2" are a chord, length = K beat.
“a2”、“d2”与“#f2”分别表示钢琴的哪一个按键的音,可预先进行定义。"a2", "d2", and "#f2" respectively indicate which of the keys of the piano is sounded, and can be defined in advance.
"bass"表示低音谱。
"bass" means the bass spectrum.
在本申请乐器乐谱文件的播放方法一实施例中,所述对乐器乐谱文件进行解析,得到音符标识符和时值标识符(S11),可以包括:In an embodiment of the method for playing a musical score file of the present application, the analyzing the musical score file to obtain a note identifier and a time value identifier (S11) may include:
根据预定的音符标识符和时值标识符的组合规则,对乐器乐谱文件中的音符信息进行解析,得到该乐器乐谱文件的音符标识符和时值标识符。The note information in the musical score file is parsed according to a predetermined combination rule of the note identifier and the time value identifier, and the note identifier and the time value identifier of the musical score file are obtained.
比如,可预先确定在音符信息中音符标识符和时值标识符的组合规则为A+B,则可据此规则,对要乐器乐谱文件中的音符信息进行解析时,排列在A的位置的字符或字符串即为音符标识符,排列在B位置的字符或字符串即为时值标识符。For example, it may be determined in advance that the combination rule of the note identifier and the time value identifier in the note information is A+B, and according to the rule, when the note information in the musical instrument score file is parsed, the position of the A is arranged. A character or a string is a note identifier, and a character or string arranged at the B position is a time value identifier.
在本申请乐器乐谱文件的播放方法一实施例中,在本申请的至少一个实施例中,所述音符标识符所表示的乐器的一个音,包括按照特殊演奏法所得到的音,比如包括按照特殊演奏法所得到的音、连音、琵音奏法、波音、颤音、长倚音、短倚音等。In an embodiment of the method for playing a musical score file of the present application, in at least one embodiment of the present application, a note of the musical instrument represented by the note identifier includes a sound obtained according to a special playing method, for example, including The sounds, ligatures, cymbals, boeing, vibrato, long-sounding, short-sounding sounds obtained by special performance methods.
在本申请乐器乐谱文件的播放方法另一实施例中,在本申请的至少一个实施例中,所述对乐器乐谱文件进行解析,得到音符标识符和时值标识符(S11),包括:In another embodiment of the method for playing a musical score file of the present application, in at least one embodiment of the present application, the analyzing the musical score file to obtain a note identifier and a time value identifier (S11), including:
S111、根据预定的音符标识符和时值标识符的组合规则,对钢琴乐谱文件中的音符信息进行解析,得到钢琴乐谱文件的音符标识符和时值标识符。S111. Analyze the note information in the piano score file according to a combination rule of the predetermined note identifier and the time value identifier, to obtain a note identifier and a time value identifier of the piano score file.
比如,可预先确定在音符信息中音符标识符和时值标识符的组合规则为A+B,则可据此规则,对要乐器乐谱文件中的音符信息进行解析时,排列在A的位置的字符或字符串即为音符标识符,排列在B位置的字符或字符串即为时值标识符。For example, it may be determined in advance that the combination rule of the note identifier and the time value identifier in the note information is A+B, and according to the rule, when the note information in the musical instrument score file is parsed, the position of the A is arranged. A character or a string is a note identifier, and a character or string arranged at the B position is a time value identifier.
S112、将得到的所述音符标识符,与预先保存的钢琴音符标识符库中的音符标识符进行匹配,得到所述音符标识符所对应的钢琴的按键;其中,在所述钢琴音符标识符库中保存有音符标识符与钢琴的按键之间的对应关系。S112. Match the obtained note identifier with a note identifier in a pre-stored piano note identifier library to obtain a piano button corresponding to the note identifier; wherein, the piano note identifier The correspondence between the note identifier and the keys of the piano is stored in the library.
本实施例中,在本申请的至少一个实施例中,在所述钢琴音符标识符库中保存有与钢琴的88个按键存在一一对应关系的音符标识符。In this embodiment, in at least one embodiment of the present application, a note identifier having a one-to-one correspondence with 88 keys of the piano is stored in the piano note identifier library.
参看图2所示,图2为本申请乐器乐谱文件的播放装置一实施例的结构示意图。参看图2,本申请乐器乐谱文件的播放装置一实施例,包括:解析模块21、查找模块22和播放模块23;其中,Referring to FIG. 2, FIG. 2 is a schematic structural diagram of an embodiment of a playback apparatus for a musical score file of the present application. Referring to FIG. 2, an embodiment of a playback apparatus for a musical score file of the present application includes: a parsing module 21, a search module 22, and a play module 23;
解析模块21,用于对乐器乐谱文件进行解析,得到音符标识符和时值标识符;其中,所述乐器乐谱文件包括多个按演奏顺序依次排列的音符信息,每个音符信息由表示乐器的一个音的音符标识符和表示这个音的长度的时值标识符组成。The parsing module 21 is configured to parse the musical instrument score file to obtain a note identifier and a time value identifier. The musical instrument score file includes a plurality of note information sequentially arranged in a playing order, and each note information is represented by the musical instrument. A note identifier of a tone and a time value identifier indicating the length of the tone.
本实施例中的乐器乐谱文件,可通过人工的方式预先编排。乐器乐谱文件可以被打包成APK格式的文件。APK是Android Package的缩写,即Android安装包(apk)。The musical score files in this embodiment can be pre-arranged by manual means. Instrument score files can be packaged into files in APK format. APK is the abbreviation of Android Package, which is the Android installation package (apk).
本实施例中,所述乐器乐谱文件可以是钢琴乐谱文件,本申请不限于此,也可以是其它乐器乐谱文件。其中,关于钢琴乐谱的编排方法可参见前面的相关描述。In this embodiment, the musical instrument score file may be a piano score file, and the present application is not limited thereto, and may be other musical score files. Among them, regarding the arrangement method of the piano score, refer to the related description above.
查找模块22,用于根据所述音符标识符,查找预先保存的与所述音符标识符相对应的乐器声音文件。
The searching module 22 is configured to search for a pre-stored musical instrument sound file corresponding to the note identifier according to the note identifier.
与所述音符标识符相对应的乐器声音文件,可预先采集并保存。比如可对钢琴的88个按键的每一个按键发出的声音进行采集,然后保存为mp3格式的声音文件。The instrument sound file corresponding to the note identifier can be pre-collected and saved. For example, the sound of each of the 88 keys of the piano can be collected and then saved as a sound file in mp3 format.
播放模块23,用于将所述乐器声音文件,按照所述时值标识符所表示的长度进行播放。The playing module 23 is configured to play the musical instrument sound file according to the length indicated by the time value identifier.
可根据对乐器乐谱文件中的每个音符信息解析后得到的音符标识符,进行相对应的乐器声音文件的播放;也可对乐器乐谱文件中的每个音符信息解析后得到所有的音符标识符后,将所有的音符标识符相对应的乐器声音文件按照演奏顺序进行播放。The corresponding instrument sound file can be played according to the note identifier obtained by parsing each note information in the musical score file; and each note information in the instrument score file can be parsed to obtain all the note identifiers. After that, all the instrument sound files corresponding to the note identifiers are played in the order of performance.
本申请实施例乐器乐谱文件的播放装置,所要播放的乐器乐谱文件包括多个按演奏顺序依次排列的音符信息,每个音符信息由表示乐器的一个音的音符标识符和表示这个音的长度的时值标识符组成,文件结构相对简单,解析效率较高,由此能够提高播放效率。In the playing device of the musical instrument score file of the embodiment of the present application, the musical instrument score file to be played includes a plurality of musical note information sequentially arranged in a playing order, each note information being represented by a note identifier representing a sound of the musical instrument and indicating the length of the sound. The time value identifier is composed, the file structure is relatively simple, and the parsing efficiency is high, thereby improving the playback efficiency.
在本申请乐器乐谱文件的播放装置一实施例中,所述解析模块21,可用于根据预定的音符标识符和时值标识符的组合规则,对乐器乐谱文件中的音符信息进行解析,得到该乐器乐谱文件的音符标识符和时值标识符。In an embodiment of the playing device of the musical score file of the present application, the parsing module 21 is configured to parse the note information in the musical score file according to a combination rule of a predetermined note identifier and a time value identifier, to obtain the The note identifier and time value identifier of the instrument score file.
比如,可预先确定在音符信息中音符标识符和时值标识符的组合规则为A+B,则可据此规则,对要乐器乐谱文件中的音符信息进行解析时,排列在A的位置的字符或字符串即为音符标识符,排列在B位置的字符或字符串即为时值标识符。For example, it may be determined in advance that the combination rule of the note identifier and the time value identifier in the note information is A+B, and according to the rule, when the note information in the musical instrument score file is parsed, the position of the A is arranged. A character or a string is a note identifier, and a character or string arranged at the B position is a time value identifier.
在本申请乐器乐谱文件的播放装置一实施例中,在本申请的至少一个实施例中,所述音符标识符所表示的乐器的一个音,包括按照特殊演奏法所得到的音,比如包括按照特殊演奏法所得到的音、连音、琵音奏法、波音、颤音、长倚音、短倚音等。In an embodiment of the playing device of the musical instrument score file of the present application, in at least one embodiment of the present application, a note of the musical instrument represented by the note identifier includes a sound obtained according to a special playing method, for example, including The sounds, ligatures, cymbals, boeing, vibrato, long-sounding, short-sounding sounds obtained by special performance methods.
在本申请乐器乐谱文件的播放装置一实施例中,在本申请的至少一个实施例中,所述乐器乐谱文件为钢琴乐谱文件;所述每个音符信息中的音符标识符表示钢琴的至少一个按键发出的声音。In an embodiment of the playback apparatus of the musical score file of the present application, in at least one embodiment of the present application, the musical score file is a piano score file; and the note identifier in each note information represents at least one of the piano The sound of the button.
在本申请乐器乐谱文件的播放装置一实施例中,在本申请的至少一个实施例中,所述解析模块21,包括:In an embodiment of the apparatus for playing a musical score sheet of the present application, in at least one embodiment of the present application, the parsing module 21 includes:
解析子模块,根据预定的音符标识符和时值标识符的组合规则,对钢琴乐谱文件中的音符信息进行解析,得到钢琴乐谱文件的音符标识符和时值标识符;比如,可预先确定在音符信息中音符标识符和时值标识符的组合规则为A+B,则可据此规则,对要乐器乐谱文件中的音符信息进行解析时,排列在A的位置的字符或字符串即为音符标识符,排列在B位置的字符或字符串即为时值标识符。Parsing the sub-module, parsing the note information in the piano score file according to a predetermined combination rule of the note identifier and the time value identifier, and obtaining the note identifier and the time value identifier of the piano score file; for example, it may be predetermined The combination rule of the note identifier and the time value identifier in the note information is A+B, and according to this rule, when the note information in the musical score file is parsed, the character or character string arranged at the position of A is The note identifier, the character or string arranged in the B position is the time value identifier.
匹配子模块,用于将得到的所述音符标识符,与预先保存的钢琴音符标识符库中的音符标识符进行匹配,得到所述音符标识符所对应的钢琴的按键;其中,在所述钢琴音符标识符库中保存有音符标识符与钢琴的按键之间的对应关系。a matching sub-module, configured to match the obtained note identifier with a note identifier in a pre-stored piano note identifier library to obtain a piano button corresponding to the note identifier; wherein, The correspondence between the note identifier and the keys of the piano is stored in the piano note identifier library.
本实施例中,在本申请的至少一个实施例中,在所述钢琴音符标识符库中保存有与钢琴的88个按键存在一一对应关系的音符标识符。
In this embodiment, in at least one embodiment of the present application, a note identifier having a one-to-one correspondence with 88 keys of the piano is stored in the piano note identifier library.
图3为本申请对乐器乐谱文件的转换方法一实施例的流程示意图。参看图3,本申请对乐器乐谱文件的转换方法一实施例,包括:FIG. 3 is a schematic flow chart of an embodiment of a method for converting a musical instrument score file according to the present application. Referring to FIG. 3, an embodiment of a method for converting a musical instrument score file of the present application includes:
S21、对乐器乐谱文件进行解析,得到每个音符标识符和与该音符标识符相对应的时值标识符;其中,所述音符标识符表示乐器的一个音,所述时值标识符表示这个音的长度;S21. Parsing the musical score file to obtain each note identifier and a time value identifier corresponding to the note identifier; wherein the note identifier represents a tone of the instrument, and the time value identifier indicates this Length of sound
本S21中,所述乐器乐谱文件为MusicXML格式的乐器乐谱文件。当然,也可以是其它格式的乐谱文件,对此本申请实施例不做限定。相应地,所述对乐器乐谱文件进行解析,得到每个音符标识符和与该音符标识符相对应的时值标识符,包括:对MusicXML格式的乐器乐谱文件的note标签进行解析,得到音符标识符和时值标识符。具体来讲,可对MusicXML格式的乐器乐谱文件的note标签下的子标签进行解析,得到音符标识符和与该音符标识符相对应的时值标识符。In the present S21, the musical instrument score file is a musical score file in the MusicXML format. Of course, it can also be a music score file in other formats, which is not limited in this embodiment. Correspondingly, the musical instrument score file is parsed to obtain each note identifier and a time value identifier corresponding to the note identifier, including: parsing the note tag of the musical score file of the MusicXML format to obtain a note identifier Symbol and time value identifier. Specifically, the sub-tag under the note tag of the musical score file of the MusicXML format can be parsed to obtain a note identifier and a time-value identifier corresponding to the note identifier.
S22、将得到的音符标识符和与该音符标识符相对应的时值标识符,按照预定规则进行组合;S22. Combine the obtained note identifier and the time value identifier corresponding to the note identifier according to a predetermined rule;
比如,可按照A+B、或A/B等组合规则,将得到的音符标识符和与该音符标识符相对应的时值标识符组合在一起。For example, the obtained note identifier and the time value identifier corresponding to the note identifier may be combined in accordance with a combination rule such as A+B or A/B.
S23、将组合后的音符标识符和时值标识符,按照所述音符标识符在所述乐器乐谱文件中的演奏序列进行排列,得到字符流格式的乐器乐谱文件。S23. Arranging the combined note identifier and the time value identifier according to the performance sequence of the note identifier in the musical instrument score file to obtain a musical instrument score file in a character stream format.
本申请实施例对乐器乐谱文件的转换方法,通过对乐器乐谱文件进行解析,得到每个音符标识符和与该音符标识符相对应的时值标识符,将得到的音符标识符和与该音符标识符相对应的时值标识符,按照预定规则进行组合,将组合后的音符标识符和时值标识符,按照所述音符标识符在所述乐器乐谱文件中的演奏序列进行排列,得到字符流格式的乐器乐谱文件。在得到的字符流格式的乐器乐谱文件中,可只包括音符标识符和时值标识符,不需要过多的标签和文件定义,由此使得乐谱文件结构更加简单,也能相应降低乐谱文件的大小。In the method for converting a musical score file of the embodiment of the present application, each musical note identifier and a time value identifier corresponding to the musical note identifier are obtained by parsing the musical instrument score file, and the obtained musical note identifier and the note are obtained. The time value identifier corresponding to the identifier is combined according to a predetermined rule, and the combined note identifier and the time value identifier are arranged according to the performance sequence of the note identifier in the musical score file to obtain a character. Musical instrument score file in streaming format. In the obtained musical score file of the character stream format, only the note identifier and the time value identifier can be included, and no excessive label and file definition are required, thereby making the structure of the score file simpler and correspondingly reducing the score file. size.
下面以MusicXML格式的乐谱文件为例,说明本申请实施例中对乐器乐谱文件解析得到字符流格式的乐器乐谱文件的过程,具体过程包括:The following is a process of the music score file in the MusicXML format as an example to describe the process of parsing the musical instrument score file into the musical score file of the character stream format in the embodiment of the present application, and the specific process includes:
(1)解析MusicXML乐谱文件的〈divisions〉标签,得到乐曲节拍。(1) Parse the <divisions> tag of the MusicXML score file to get the beat of the music.
(2)解析MusicXML乐谱文件的〈note〉标签,得到具体的每一音符信息,〈note〉标签的解析过程包括:(2) Parsing the <note> tag of the MusicXML score file to obtain specific note information. The parsing process of the <note> tag includes:
a)对于每一音符信息,可通过解析〈note〉标签下的〈step〉、〈alter〉和〈octave〉子标签,得到音符标识符,其中〈step〉为基本的音名,〈alter〉表示表示升高或降低的音级,〈octave〉表示所属音组;通过解析〈duration〉子标签,得到音符的拍长,拍长以时值标识符表示。如果〈note〉标签存在〈rest〉子标签,表示次音符为休止符,则只需要解析〈duration〉子标签,得到休止符的拍长。a) For each note information, the note identifier can be obtained by parsing the <step>, <alter> and <octave> subtags under the <note> tag, where <step> is the basic phonetic name, <alter> Indicates the level of the raised or lowered sound, <octave> indicates the sound group to which it belongs; and the beat length of the note is obtained by parsing the <duration> sub-tab, and the beat length is represented by the time value identifier. If the <note> tag has a <rest> subtag, indicating that the subnote is a rest, you only need to parse the <duration> subtag to get the pause length of the rest.
b)判断〈note〉标签下是否有〈chord〉子标签,如果有,则表示次音符为上一个音符的和弦音,此时需要将所有的和弦音组合起来。
b) Determine if there is a <chord> subtag under the <note> tag. If there is, the subnote is the chord of the previous note. In this case, all the chords need to be combined.
c)判断〈note〉标签是否结束,如果〈/note〉标签存在,则表示音符信息解析结束,将之前解析到的音符进行组合并添加至音符符号序列。然后返回a)进行下一个音符的解析。c) It is judged whether or not the <note> tag is over. If the </note> tag exists, it indicates that the note information analysis is completed, and the previously resolved notes are combined and added to the note symbol sequence. Then return a) to parse the next note.
图4为本申请对乐器乐谱文件的转换装置一实施例的结构示意图。参看图4,本申请对乐器乐谱文件的转换装置一实施例,包括:解析模块31、组合模块32和排列模块33;其中,FIG. 4 is a schematic structural diagram of an embodiment of a device for converting a musical instrument score file according to the present application. Referring to FIG. 4, an embodiment of the apparatus for converting a musical instrument score file includes: a parsing module 31, a combining module 32, and an arranging module 33;
解析模块31,用于对乐器乐谱文件进行解析,得到每个音符标识符和与该音符标识符相对应的时值标识符;其中,所述音符标识符表示乐器的一个音,所述时值标识符表示这个音的长度。The parsing module 31 is configured to parse the musical instrument score file to obtain each note identifier and a time value identifier corresponding to the note identifier; wherein the note identifier represents a tone of the instrument, and the time value The identifier indicates the length of this tone.
所述乐器乐谱文件为MusicXML(Music Extensible Markup Language音乐扩展标记语言)格式的乐器乐谱文件。这种文件采用一种开放的基于MusicXML音乐符号格式来存放歌曲的基本信息。MusicXML技术将整体乐曲元素和属性信息表示为一份XML文档。当然,也可以是其它格式的乐谱文件,对此本申请实施例不做限定。The musical score file is a musical score file in the MusicXML (Music Extensible Markup Language) format. This file uses an open MusicXML-based music symbol format to store basic information about songs. MusicXML technology represents the overall music element and attribute information as an XML document. Of course, it can also be a music score file in other formats, which is not limited in this embodiment.
组合模块32,用于将得到的音符标识符和与该音符标识符相对应的时值标识符,按照预定规则进行组合。比如,可按照A+B、或A/B等组合规则,将得到的音符标识符和与该音符标识符相对应的时值标识符组合在一起。The combining module 32 is configured to combine the obtained note identifier and the time value identifier corresponding to the note identifier according to a predetermined rule. For example, the obtained note identifier and the time value identifier corresponding to the note identifier may be combined in accordance with a combination rule such as A+B or A/B.
排列模块33,用于将组合后的音符标识符和时值标识符,按照所述音符标识符在所述乐器乐谱文件中的演奏序列进行排列,得到字符流格式的乐器乐谱文件。The arranging module 33 is configured to arrange the combined note identifier and the time value identifier according to the performance sequence of the note identifier in the musical score file to obtain a musical instrument score file in a character stream format.
本申请实施例对乐器乐谱文件的转换装置,通过对乐器乐谱文件进行解析,得到每个音符标识符和与该音符标识符相对应的时值标识符,将得到的音符标识符和与该音符标识符相对应的时值标识符,按照预定规则进行组合,将组合后的音符标识符和时值标识符,按照所述音符标识符在所述乐器乐谱文件中的演奏序列进行排列,得到字符流格式的乐器乐谱文件。在得到的字符流格式的乐器乐谱文件中,可只包括音符标识符和时值标识符,不需要过多的标签和文件定义,由此使得乐谱文件结构更加简单,也能相应降低乐谱文件的大小。In the embodiment of the present application, the apparatus for converting musical instrument score files obtains each note identifier and a time value identifier corresponding to the note identifier by parsing the musical score file, and the obtained note identifier and the note are The time value identifier corresponding to the identifier is combined according to a predetermined rule, and the combined note identifier and the time value identifier are arranged according to the performance sequence of the note identifier in the musical score file to obtain a character. Musical instrument score file in streaming format. In the obtained musical score file of the character stream format, only the note identifier and the time value identifier can be included, and no excessive label and file definition are required, thereby making the structure of the score file simpler and correspondingly reducing the score file. size.
在本申请对乐器乐谱文件的转换装置另一实施例中,所述解析模块,用于对MusicXML格式的乐器乐谱文件的note标签进行解析,得到音符标识符和时值标识符。具体来讲,所述解析模块,用于对MusicXML格式的乐器乐谱文件的note标签下的子标签进行解析,得到音符标识符和与该音符标识符相对应的时值标识符。In another embodiment of the apparatus for converting a musical instrument score file of the present application, the parsing module is configured to parse a note tag of a musical score file of the MusicXML format to obtain a note identifier and a time value identifier. Specifically, the parsing module is configured to parse a subtag under the note tag of the musical score file of the MusicXML format to obtain a note identifier and a time value identifier corresponding to the note identifier.
图5为本申请电子设备实施例的结构示意图。参看图5,本申请电子设备实施例包括:壳体81、处理器82、存储器83、电路板84和电源电路85,其中,电路板84安置在壳体81围成的空间内部,处理器82和存储器83设置在电路板84上;电源电路85,用于为上述电子设备的各个电路或器件供电;存储器83用于存储可执行程序代码;处理器82通过读取存储器83中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行前述任一实施例所述的乐器乐谱文件的播放方法。FIG. 5 is a schematic structural diagram of an embodiment of an electronic device according to the present application. Referring to FIG. 5, an embodiment of the electronic device of the present application includes a housing 81, a processor 82, a memory 83, a circuit board 84, and a power supply circuit 85, wherein the circuit board 84 is disposed inside a space enclosed by the housing 81, and the processor 82 And a memory 83 is disposed on the circuit board 84; a power supply circuit 85 for supplying power to the respective circuits or devices of the above electronic device; a memory 83 for storing executable program code; and a processor 82 for reading executable data stored in the memory 83 The program code runs a program corresponding to the executable program code for executing the playing method of the musical score file described in any of the foregoing embodiments.
本申请实施例电子设备,所要播放的乐器乐谱文件包括多个按演奏顺序依次排列的音符信息,每个音符信息由表示乐器的一个音的音符标识符和表示这个音的长度的时值标识符组
成,文件结构相对简单,解析效率较高,由此能够提高播放效率。In the electronic device of the embodiment of the present application, the musical instrument score file to be played includes a plurality of musical note information sequentially arranged in a playing order, each note information being represented by a note identifier representing a sound of the musical instrument and a time value identifier indicating the length of the sound. Group
The file structure is relatively simple and the resolution efficiency is high, thereby improving the playback efficiency.
或者本申请实施例电子设备的处理器82通过读取存储器83中存储的可执行程序代码来运行与可执行程序代码对应的程序,还用于执行前述任一实施例所述的对乐器乐谱文件的转换方法。Or the processor 82 of the electronic device of the embodiment of the present application runs the program corresponding to the executable program code by reading the executable program code stored in the memory 83, and is further configured to execute the musical instrument score file described in any of the foregoing embodiments. Conversion method.
本申请实施例电子设备,通过对乐器乐谱文件进行解析,得到每个音符标识符和与该音符标识符相对应的时值标识符,将得到的音符标识符和与该音符标识符相对应的时值标识符,按照预定规则进行组合,将组合后的音符标识符和时值标识符,按照所述音符标识符在所述乐器乐谱文件中的演奏序列进行排列,得到字符流格式的乐器乐谱文件。在得到的字符流格式的乐器乐谱文件中,可只包括音符标识符和时值标识符,不需要过多的标签和文件定义,由此使得乐谱文件结构更加简单,也能相应降低乐谱文件的大小。In the electronic device of the embodiment of the present application, each musical note identifier and a time value identifier corresponding to the musical note identifier are obtained by parsing the musical instrument score file, and the obtained musical note identifier and the note identifier corresponding to the note identifier are obtained. The time value identifiers are combined according to a predetermined rule, and the combined note identifiers and time value identifiers are arranged according to the performance sequence of the note identifiers in the musical score file to obtain a musical score of the character stream format. file. In the obtained musical score file of the character stream format, only the note identifier and the time value identifier can be included, and no excessive label and file definition are required, thereby making the structure of the score file simpler and correspondingly reducing the score file. size.
该电子设备以多种形式存在,包括但不限于:The electronic device exists in a variety of forms including, but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication devices: These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access. Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment devices: These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: A device that provides computing services. The server consists of a processor, a hard disk, a memory, a system bus, etc. The server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
(5)其他具有数据交互功能的电子装置。(5) Other electronic devices with data interaction functions.
本申请实施例还提供了一种存储介质,所述存储介质存储有一个或者多个模块,当所述一个或者多个模块被一个电子设备执行时,使得所述电子设备执行前述任一实施例所述的乐器乐谱文件的播放方法。The embodiment of the present application further provides a storage medium, where the storage medium stores one or more modules, when the one or more modules are executed by one electronic device, causing the electronic device to perform any of the foregoing embodiments. The method of playing the musical score file.
本申请实施例还提供了一种存储介质,所述存储介质存储有一个或者多个模块,当所述一个或者多个模块被一个电子设备执行时,使得所述电子设备执行前述任一实施例所述的对乐器乐谱文件的转换方法。The embodiment of the present application further provides a storage medium, where the storage medium stores one or more modules, when the one or more modules are executed by one electronic device, causing the electronic device to perform any of the foregoing embodiments. The method for converting a musical score file.
本申请实施例还提供了一种应用程序,用于在运行时,执行前述任一实施例所述的乐器乐谱文件的播放方法。The embodiment of the present application further provides an application program for performing the playing method of the musical instrument score file according to any of the foregoing embodiments during operation.
本申请实施例还提供了一种应用程序,用于在运行时,执行前述任一实施例所述的对乐器乐谱文件的转换方法。The embodiment of the present application further provides an application program for performing the conversion method of the musical instrument score file described in any of the foregoing embodiments at runtime.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程
序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium.
The sequence, when executed, may include the flow of an embodiment of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。
The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any change or replacement that can be easily conceived by those skilled in the art within the technical scope disclosed by the present application is All should be covered by the scope of this application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.
Claims (19)
- 一种乐器乐谱文件的播放方法,其特征在于,包括:A method for playing a musical score sheet file, comprising:对乐器乐谱文件进行解析,得到音符标识符和时值标识符;其中,所述乐器乐谱文件包括多个按演奏顺序依次排列的音符信息,每个音符信息由表示乐器的一个音的音符标识符和表示这个音的长度的时值标识符组成;Parsing the musical instrument score file to obtain a note identifier and a time value identifier; wherein the musical score file includes a plurality of note information sequentially arranged in a play order, each note information being represented by a note identifier representing a note of the instrument And a time value identifier indicating the length of the sound;根据所述音符标识符,查找预先保存的与所述音符标识符相对应的乐器声音文件;Searching for a pre-saved musical instrument sound file corresponding to the note identifier according to the note identifier;将所述乐器声音文件,按照所述时值标识符所表示的长度进行播放。The instrument sound file is played according to the length indicated by the time value identifier.
- 根据权利要求1所述的乐器乐谱文件的播放方法,其特征在于,所述对乐器乐谱文件进行解析,得到音符标识符和时值标识符,包括:The method for playing a musical score file according to claim 1, wherein the analyzing the musical score file to obtain a note identifier and a time value identifier comprises:根据预定的音符标识符和时值标识符的组合规则,对乐器乐谱文件中的音符信息进行解析,得到该乐器乐谱文件的音符标识符和时值标识符。The note information in the musical score file is parsed according to a predetermined combination rule of the note identifier and the time value identifier, and the note identifier and the time value identifier of the musical score file are obtained.
- 根据权利要求1或2所述的乐器乐谱文件的播放方法,其特征在于,所述音符标识符所表示的乐器的一个音,包括按照特殊演奏法所得到的音。The method of playing a musical score file according to claim 1 or 2, wherein a note of the musical instrument represented by the note identifier includes a sound obtained according to a special playing method.
- 根据权利要求1-3任一项所述的乐器乐谱文件的播放方法,其特征在于,所述乐器乐谱文件为钢琴乐谱文件;所述每个音符信息中的音符标识符表示钢琴的至少一个按键发出的声音。The method for playing a musical score file according to any one of claims 1 to 3, wherein the musical score file is a piano score file; and the note identifier in each note information represents at least one button of the piano. The sound that is emitted.
- 根据权利要求4所述的乐器乐谱文件的播放方法,其特征在于,所述对乐器乐谱文件进行解析,得到音符标识符和时值标识符,包括:The method for playing a musical score file according to claim 4, wherein the parsing of the musical score file to obtain a note identifier and a time value identifier comprises:根据预定的音符标识符和时值标识符的组合规则,对钢琴乐谱文件中的音符信息进行解析,得到钢琴乐谱文件的音符标识符和时值标识符;Performing the note information in the piano score file according to a predetermined combination rule of the note identifier and the time value identifier to obtain a note identifier and a time value identifier of the piano score file;将得到的所述音符标识符,与预先保存的钢琴音符标识符库中的音符标识符进行匹配,得到所述音符标识符所对应的钢琴的按键;其中,在所述钢琴音符标识符库中保存有音符标识符与钢琴的按键之间的对应关系。Matching the obtained note identifier with a note identifier in a pre-stored piano note identifier library to obtain a piano button corresponding to the note identifier; wherein, in the piano note identifier library The correspondence between the note identifier and the keys of the piano is saved.
- 一种乐器乐谱文件的播放装置,其特征在于,包括:A device for playing a musical score sheet file, comprising:解析模块,用于对乐器乐谱文件进行解析,得到音符标识符和时值标识符;其中,所述乐器乐谱文件包括多个按演奏顺序依次排列的音符信息,每个音符信息由表示乐器的一个音的音符标识符和表示这个音的长度的时值标识符组成;a parsing module, configured to parse the musical instrument score file to obtain a note identifier and a time value identifier; wherein the musical score file includes a plurality of note information sequentially arranged in a playing order, each note information being represented by a musical instrument a note identifier of the note and a time value identifier indicating the length of the note;查找模块,用于根据所述音符标识符,查找预先保存的与所述音符标识符相对应的乐器声音文件;a searching module, configured to search, according to the note identifier, a pre-stored musical instrument sound file corresponding to the note identifier;播放模块,用于将所述乐器声音文件,按照所述时值标识符所表示的长度进行播放。 a playing module, configured to play the musical instrument sound file according to a length represented by the time value identifier.
- 根据权利要求6所述的乐器乐谱文件的播放装置,其特征在于,所述解析模块,用于根据预定的音符标识符和时值标识符的组合规则,对乐器乐谱文件中的音符信息进行解析,得到该乐器乐谱文件的音符标识符和时值标识符。The apparatus for playing a musical instrument score file according to claim 6, wherein the parsing module is configured to parse note information in the musical score file according to a combination rule of a predetermined note identifier and a time value identifier. Get the note identifier and time value identifier of the instrument score file.
- 根据权利要求6或7所述的乐器乐谱文件的播放装置,其特征在于,所述音符标识符所表示的乐器的一个音包括按照特殊演奏法所得到的音。A playback apparatus for a musical score file according to claim 6 or 7, wherein a sound of the musical instrument represented by said note identifier includes a sound obtained according to a special playing method.
- 根据权利要求6-8任一项所述的乐器乐谱文件的播放装置,其特征在于,所述乐器乐谱文件为钢琴乐谱文件;所述每个音符信息中的音符标识符表示钢琴的至少一个按键发出的声音。The apparatus for playing a musical score sheet according to any one of claims 6 to 8, wherein the musical score file is a piano score file; and the note identifier in each note information represents at least one button of the piano. The sound that is emitted.
- 根据权利要求9所述的乐器乐谱文件的播放装置,其特征在于,所述解析模块,包括:The apparatus for playing a musical instrument score file according to claim 9, wherein the parsing module comprises:解析子模块,根据预定的音符标识符和时值标识符的组合规则,对钢琴乐谱文件中的音符信息进行解析,得到钢琴乐谱文件的音符标识符和时值标识符;Parsing the sub-module, parsing the note information in the piano score file according to a predetermined combination rule of the note identifier and the time value identifier, and obtaining a note identifier and a time value identifier of the piano score file;匹配子模块,用于将得到的所述音符标识符,与预先保存的钢琴音符标识符库中的音符标识符进行匹配,得到所述音符标识符所对应的钢琴的按键;其中,在所述钢琴音符标识符库中保存有音符标识符与钢琴的按键之间的对应关系。a matching sub-module, configured to match the obtained note identifier with a note identifier in a pre-stored piano note identifier library to obtain a piano button corresponding to the note identifier; wherein, The correspondence between the note identifier and the keys of the piano is stored in the piano note identifier library.
- 一种对乐器乐谱文件的转换方法,其特征在于,包括:A method for converting a musical score file, characterized in that it comprises:对乐器乐谱文件进行解析,得到每个音符标识符和与该音符标识符相对应的时值标识符;其中,所述音符标识符表示乐器的一个音,所述时值标识符表示这个音的长度;Parsing the musical score file to obtain each note identifier and a time value identifier corresponding to the note identifier; wherein the note identifier represents a tone of the instrument, and the time value identifier indicates the sound length;将得到的音符标识符和与该音符标识符相对应的时值标识符,按照预定规则进行组合;And combining the obtained note identifier and the time value identifier corresponding to the note identifier according to a predetermined rule;将组合后的音符标识符和时值标识符,按照所述音符标识符在所述乐器乐谱文件中的演奏序列进行排列,得到字符流格式的乐器乐谱文件。The combined note identifier and time value identifier are arranged according to the performance sequence of the note identifier in the musical score file to obtain a musical score file in a character stream format.
- 根据权利要求11所述的转换方法,其特征在于,The conversion method according to claim 11, wherein所述乐器乐谱文件为MusicXML格式的乐器乐谱文件;The musical instrument score file is a musical score file in MusicXML format;所述对乐器乐谱文件进行解析,得到音符标识符和时值标识符,包括:The parsing of the musical score file to obtain a note identifier and a time value identifier, including:对MusicXML格式的乐器乐谱文件的note标签进行解析,得到音符标识符和时值标识符。The note tag of the musical score file of the MusicXML format is parsed to obtain a note identifier and a time value identifier.
- 根据权利要求12所述的转换方法,其特征在于,所述对MusicXML格式的乐器乐谱文件的note标签进行解析,得到每个音符标识符和与该音符标识符相对应的时值标识符,包括:The conversion method according to claim 12, wherein said note tag of the musical score file of the MusicXML format is parsed to obtain each note identifier and a time value identifier corresponding to the note identifier, including :对MusicXML格式的乐器乐谱文件的note标签下的子标签进行解析,得到音符标识符和与该音符标识符相对应的时值标识符。 The sub-label under the note tag of the musical score file of the MusicXML format is parsed to obtain a note identifier and a time-value identifier corresponding to the note identifier.
- 一种对乐器乐谱文件的转换装置,其特征在于,包括:A device for converting musical instrument score files, comprising:解析模块,用于对乐器乐谱文件进行解析,得到每个音符标识符和与该音符标识符相对应的时值标识符;其中,所述音符标识符表示乐器的一个音,所述时值标识符表示这个音的长度;a parsing module, configured to parse the musical instrument score file to obtain each note identifier and a time value identifier corresponding to the note identifier; wherein the note identifier represents a tone of the instrument, and the time value identifier The sign indicates the length of this note;组合模块,用于将得到的音符标识符和与该音符标识符相对应的时值标识符,按照预定规则进行组合;a combination module, configured to combine the obtained note identifier and the time value identifier corresponding to the note identifier according to a predetermined rule;排列模块,用于将组合后的音符标识符和时值标识符,按照所述音符标识符在所述乐器乐谱文件中的演奏序列进行排列,得到字符流格式的乐器乐谱文件。And an arranging module, configured to arrange the combined note identifier and the time value identifier according to the performance sequence of the note identifier in the musical score file to obtain a musical instrument score file in a character stream format.
- 根据权利要求14所述的转换装置,其特征在于,所述解析模块,用于对MusicXML格式的乐器乐谱文件的note标签进行解析,得到音符标识符和时值标识符。The conversion device according to claim 14, wherein the parsing module is configured to parse the note tag of the musical score file of the MusicXML format to obtain a note identifier and a time value identifier.
- 根据权利要求15所述的转换装置,其特征在于,所述解析模块,用于对MusicXML格式的乐器乐谱文件的note标签下的子标签进行解析,得到音符标识符和与该音符标识符相对应的时值标识符。The conversion device according to claim 15, wherein the parsing module is configured to parse a subtag under the note tag of the musical score file of the MusicXML format to obtain a note identifier and corresponding to the note identifier Time value identifier.
- 一种电子设备,其特征在于,所述电子设备包括:壳体、处理器、存储器、电路板和电源电路,其中,电路板安置在壳体围成的空间内部,处理器和存储器设置在电路板上;电源电路,用于为上述电子设备的各个电路或器件供电;存储器用于存储可执行程序代码;处理器通过读取存储器中存储的可执行程序代码来运行与可执行程序代码对应的程序,用于执行权利要求1-5任一项所述的乐器乐谱文件的播放方法或权利要求11-13任一项所述的对乐器乐谱文件的转换方法。An electronic device, comprising: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed in the circuit a power supply circuit for supplying power to each circuit or device of the electronic device; a memory for storing executable program code; and a processor for operating the executable program code by reading executable program code stored in the memory A program for performing the method of playing a musical score file according to any one of claims 1 to 5 or a method for converting a musical score file according to any one of claims 11 to 13.
- 一种存储介质,其特征在于,所述存储介质存储有一个或者多个模块,当所述一个或者多个模块被一个电子设备执行时,使得所述电子设备:A storage medium, wherein the storage medium stores one or more modules, when the one or more modules are executed by an electronic device, causing the electronic device to:执行权利要求1-5任一项所述的乐器乐谱文件的播放方法或权利要求11-13任一项所述的对乐器乐谱文件的转换方法。A method of playing a musical score file according to any one of claims 1 to 5 or a method of converting a musical score file according to any one of claims 11 to 13.
- 一种应用程序,其特征在于,用于在运行时,执行权利要求1-5任一项所述的乐器乐谱文件的播放方法或权利要求11-13任一项所述的对乐器乐谱文件的转换方法。 An application program for performing the method of playing a musical score sheet according to any one of claims 1 to 5, or the musical instrument score file according to any one of claims 11 to 13 at runtime. Conversion method.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510641215.6A CN105205047A (en) | 2015-09-30 | 2015-09-30 | Playing method, converting method and device of musical instrument music score file and electronic equipment |
CN201510641215.6 | 2015-09-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017054588A1 true WO2017054588A1 (en) | 2017-04-06 |
Family
ID=54952740
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/095893 WO2017054588A1 (en) | 2015-09-30 | 2016-08-18 | Music instrument score file playing method, conversion method and apparatus, and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105205047A (en) |
WO (1) | WO2017054588A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111627410A (en) * | 2020-05-12 | 2020-09-04 | 浙江大学 | MIDI multi-track sequence representation method and application |
CN113641851A (en) * | 2021-08-11 | 2021-11-12 | 乐聚(深圳)机器人技术有限公司 | Music score previewing method and device, terminal equipment and storage medium |
CN114332877A (en) * | 2021-12-02 | 2022-04-12 | 厦门大学 | Printed-style zither numbered musical notation recognition method and system based on deep learning |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105205047A (en) * | 2015-09-30 | 2015-12-30 | 北京金山安全软件有限公司 | Playing method, converting method and device of musical instrument music score file and electronic equipment |
CN106021153A (en) * | 2016-05-16 | 2016-10-12 | 安徽华米信息科技有限公司 | Data transmission method and device and intelligent electronic equipment |
CN106485983B (en) * | 2016-10-19 | 2020-05-12 | 长江大学 | Musical instrument performance analysis and evaluation method |
CN108074552A (en) * | 2016-11-18 | 2018-05-25 | 北京酷我科技有限公司 | The electronic score conversion method and system of a kind of piano |
CN107103912A (en) * | 2017-04-24 | 2017-08-29 | 行知技术有限公司 | A kind of student for imparting knowledge to students and checking and rating sings performance points-scoring system |
CN108257588B (en) * | 2018-01-22 | 2022-03-01 | 姜峰 | Music composing method and device |
CN110390859B (en) * | 2018-04-19 | 2021-05-14 | 兰州大学 | Method and system for converting music score into braille based on MusicXML |
CN108960250B (en) * | 2018-05-07 | 2020-08-25 | 广东数相智能科技有限公司 | Method and device for converting image into melody and computer readable storage medium |
CN109493879B (en) * | 2018-12-24 | 2021-12-17 | 成都嗨翻屋科技有限公司 | Music rhythm analysis and extraction method and device |
CN110473507B (en) * | 2019-09-02 | 2020-08-25 | 玖月音乐科技(北京)有限公司 | Double-row key intelligent music score walking method and system |
CN111976329B (en) * | 2020-08-31 | 2022-06-21 | 深圳市月白电子科技有限公司 | Staff automatic following method and automatic tracking system in musical instrument playing |
CN112669796A (en) * | 2020-12-29 | 2021-04-16 | 西交利物浦大学 | Method and device for converting music into music book based on artificial intelligence |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1547130A (en) * | 2003-11-28 | 2004-11-17 | 北京中星微电子有限公司 | A MIDI music file |
US20080307946A1 (en) * | 2006-02-06 | 2008-12-18 | Machell Lydia | Braille music systems and methods |
CN103729141A (en) * | 2013-12-26 | 2014-04-16 | 安徽科大讯飞信息科技股份有限公司 | Method and system for implementing music playing on keyboard by using input method |
CN105205047A (en) * | 2015-09-30 | 2015-12-30 | 北京金山安全软件有限公司 | Playing method, converting method and device of musical instrument music score file and electronic equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1205829C (en) * | 2003-08-11 | 2005-06-08 | 安凯(广州)软件技术有限公司 | Music format conversion method for wireless hand-held device |
JP2006201278A (en) * | 2005-01-18 | 2006-08-03 | Nippon Telegr & Teleph Corp <Ntt> | Method and apparatus for automatically analyzing metrical structure of piece of music, program, and recording medium on which program of method is recorded |
CN103902647A (en) * | 2013-12-27 | 2014-07-02 | 上海斐讯数据通信技术有限公司 | Music score identifying method used on intelligent equipment and intelligent equipment |
US9123315B1 (en) * | 2014-06-30 | 2015-09-01 | William R Bachand | Systems and methods for transcoding music notation |
-
2015
- 2015-09-30 CN CN201510641215.6A patent/CN105205047A/en active Pending
-
2016
- 2016-08-18 WO PCT/CN2016/095893 patent/WO2017054588A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1547130A (en) * | 2003-11-28 | 2004-11-17 | 北京中星微电子有限公司 | A MIDI music file |
US20080307946A1 (en) * | 2006-02-06 | 2008-12-18 | Machell Lydia | Braille music systems and methods |
CN103729141A (en) * | 2013-12-26 | 2014-04-16 | 安徽科大讯飞信息科技股份有限公司 | Method and system for implementing music playing on keyboard by using input method |
CN105205047A (en) * | 2015-09-30 | 2015-12-30 | 北京金山安全软件有限公司 | Playing method, converting method and device of musical instrument music score file and electronic equipment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111627410A (en) * | 2020-05-12 | 2020-09-04 | 浙江大学 | MIDI multi-track sequence representation method and application |
CN111627410B (en) * | 2020-05-12 | 2022-08-09 | 浙江大学 | MIDI multi-track sequence representation method and application |
CN113641851A (en) * | 2021-08-11 | 2021-11-12 | 乐聚(深圳)机器人技术有限公司 | Music score previewing method and device, terminal equipment and storage medium |
CN114332877A (en) * | 2021-12-02 | 2022-04-12 | 厦门大学 | Printed-style zither numbered musical notation recognition method and system based on deep learning |
Also Published As
Publication number | Publication date |
---|---|
CN105205047A (en) | 2015-12-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017054588A1 (en) | Music instrument score file playing method, conversion method and apparatus, and electronic device | |
US20190147052A1 (en) | Method and apparatus for playing multimedia | |
WO2019232928A1 (en) | Musical model training method, music creation method, devices, terminal and storage medium | |
CN105280170A (en) | Method and device for playing music score | |
US11531693B2 (en) | Information processing apparatus, method and non-transitory computer readable medium | |
US9171530B2 (en) | Methods and apparatus for creating music melodies using validated characters | |
JP2017513049A (en) | How to provide users with feedback on the performance of karaoke songs | |
US9646585B2 (en) | Information processing apparatus, information processing method, and program | |
US11074897B2 (en) | Method and apparatus for training adaptation quality evaluation model, and method and apparatus for evaluating adaptation quality | |
US20120167748A1 (en) | Automatically acquiring feature segments in a music file | |
CN101438342A (en) | Method and electronic device for aligning a song with its lyrics | |
CN106205571A (en) | A kind for the treatment of method and apparatus of singing voice | |
CN110619112B (en) | Pronunciation marking method and device for Chinese characters, electronic equipment and storage medium | |
CN117711427A (en) | Audio processing method and device | |
TW201618074A (en) | System and method for processing music | |
KR20120075185A (en) | Server and method for sevicing music composition, and computer readable medium thereof | |
CN114613359A (en) | Language model training method, audio recognition method and computer equipment | |
KR101546331B1 (en) | Method for reproducing music using musical scales and apparatus using the method | |
JP6073618B2 (en) | Karaoke equipment | |
CN110570834A (en) | method, device and equipment for realizing synchronous display of song score in song playing process | |
CN111508454A (en) | Music score processing method and device, electronic equipment and storage medium | |
US20120197841A1 (en) | Synchronizing data to media | |
CN109710798A (en) | Music performance evaluation method and device | |
KR20140116346A (en) | A Audio Search System | |
CN113797541B (en) | Music game level generation method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16850212 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 31.07.2018) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16850212 Country of ref document: EP Kind code of ref document: A1 |