CN108364627A - A kind of data initialization method and device being applied to intelligent piano - Google Patents

A kind of data initialization method and device being applied to intelligent piano Download PDF

Info

Publication number
CN108364627A
CN108364627A CN201810184620.3A CN201810184620A CN108364627A CN 108364627 A CN108364627 A CN 108364627A CN 201810184620 A CN201810184620 A CN 201810184620A CN 108364627 A CN108364627 A CN 108364627A
Authority
CN
China
Prior art keywords
key
played
value pair
trifle
song
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810184620.3A
Other languages
Chinese (zh)
Inventor
熊世林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Huasha Technology Co Ltd
Original Assignee
Anhui Huasha Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Huasha Technology Co Ltd filed Critical Anhui Huasha Technology Co Ltd
Priority to CN201810184620.3A priority Critical patent/CN108364627A/en
Publication of CN108364627A publication Critical patent/CN108364627A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/0008Associated control or indicating means
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/32Constructional details
    • G10H1/34Switch arrangements, e.g. keyboards or mechanical switches specially adapted for electrophonic musical instruments
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H2240/00Data organisation or data communication aspects, specifically adapted for electrophonic musical tools or instruments
    • G10H2240/011Files or data streams containing coded musical information, e.g. for transmission

Abstract

The invention discloses a kind of data initialization method being applied to intelligent piano, the method includes:Obtain the corresponding midi files of song to be played;Using midi files described in midi protocol analysis, target data is obtained, wherein the target data includes:Trifle number, small adjusting range, broadcasting speed, grace and reproduction time;Quantification treatment is carried out to the target data using quantization algorithm;By the target data and the first key-value pair of system time generation corresponding with the target data after the quantification treatment after quantification treatment;According to the system time of first key-value pair and the intelligent piano, the song to be played is played out.Using the embodiment of the present invention, it is possible to reduce to the occupancy of hardware resource in playing process.

Description

A kind of data initialization method and device being applied to intelligent piano
Technical field
The present invention relates to a kind of data processing methods of intelligent piano, are more particularly to a kind of number being applied to intelligent piano According to initial method and device.
Background technology
As the improvement of people's living standards, people are in terms of pursuing except material life and more and more to pursue spirit It enjoys, especially in the enjoyment of connection music.Piano is also increasingly liked by people as the representative of classical musical instrument, learns steel The people of qin is also more and more.
Currently, intelligent piano increasingly receives the welcome of consumer with vdiverse in function, powerful.In study piano When, it needs to be played out by intelligent piano, then user carries out according to the broadcasting of intelligent piano with bullet or other practices.Usually For, intelligent piano is as follows in the flow for playing song to be played, obtains the corresponding midi (Musical of song to be played Instrument Digital Interface, musical instrument digital interface) file, midi is used while playing song to be played Then protocol analysis midi files carry out quantification treatment using quantization algorithm pair target data corresponding with the note.Namely It says, in the prior art, plays the bent parsing quantization with midi files to be played and be carried out at the same time.
But if the music score structure for including in music score is complex, for example, including a large amount of special note or decoration It when sound, when carrying out quantum chemical method to it, needs to occupy a large amount of hardware resource, if hardware resource occupies excessively, leads to intelligence Piano cannot be smooth broadcasting song to be played;Therefore, the prior art exist play song to be played when occupy hardware resource compared with More technical problems.
Invention content
Technical problem to be solved by the present invention lies in provide a kind of data initialization method being applied to intelligent piano And device, with reduce play with play list when in playing process to the occupancy of hardware resource.
The present invention is to solve above-mentioned technical problem by the following technical programs:
An embodiment of the present invention provides a kind of data initialization methods being applied to intelligent piano, which is characterized in that described Method includes:
Obtain the corresponding midi files of song to be played;
Using midi files described in midi protocol analysis, target data is obtained, wherein the target data includes:Trifle Number, small adjusting range, broadcasting speed, grace and reproduction time;
Quantification treatment is carried out to the target data using quantization algorithm;
By after quantification treatment the target data and, system corresponding with the target data after the quantification treatment Time generates the first key-value pair;
According to the system time of first key-value pair and the intelligent piano, the song to be played is played out.
Optionally, in a kind of specific implementation mode of the embodiment of the present invention, the target by after quantification treatment Data and, corresponding with the target data after quantification treatment system time generates the first key-value pair, including:
For each trifle in the song to be played, by the target data for including in the trifle and, and it is described small The corresponding system time of target data for including in section generates the second key-value pair;And using the set of second key-value pair as One key-value pair.
Optionally, in a kind of specific implementation mode of the embodiment of the present invention, according to first key-value pair and described The system time of intelligent piano, when being played out to the song to be played, the method further includes:
According to the system time of the trifle and the first key-value pair and the intelligent piano of system time, obtain current The trifle that moment plays, and be marked on the music score of Chinese operas for the trifle that the current time plays.
Optionally, in a kind of specific implementation mode of the embodiment of the present invention, according to first key-value pair and described The system time of intelligent piano, before being played out to the song to be played, the method further includes:
By midi times and the first key-value pair of system time generation corresponding with the midi times.
Optionally, in a kind of specific implementation mode of the embodiment of the present invention, according to first key-value pair and described The system time of intelligent piano, before being played out to the song to be played, the method further includes:
The music score of Chinese operas for the song to be played that right-hand man plays is obtained respectively;And utilize preset keyword and the left and right The music score of Chinese operas for the song to be played that hand is played generates the first key-value pair.
The embodiment of the present invention additionally provides a kind of data initialization device being applied to intelligent piano, and described device includes: Acquisition module, parsing module, quantization modules, the first generation module and playing module, wherein
The acquisition module, for obtaining the corresponding midi files of song to be played;
The parsing module, for using midi files described in midi protocol analysis, obtaining target data, wherein described Target data includes:Trifle number, small adjusting range, broadcasting speed, grace and reproduction time;
The quantization modules, for carrying out quantification treatment to the target data using quantization algorithm;
First generation module, for by after quantification treatment the target data and, after the quantification treatment The first key-value pair of the corresponding system time generation of target data;
The playing module is waited for for the system time according to first key-value pair and the intelligent piano described Play list plays out.
Optionally, in a kind of specific implementation mode of the embodiment of the present invention, first generation module is additionally operable to:Needle To each trifle in the song to be played, and, include with the trifle by the target data for including in the trifle The corresponding system time of target data generates the second key-value pair;And using the set of second key-value pair as the first key-value pair.
Optionally, in a kind of specific implementation mode of the embodiment of the present invention, described device further includes:Mark module is used In the system time according to the first key-value pair of the trifle and system time and the intelligent piano, obtaining current time broadcasts The trifle put, and be marked on the music score of Chinese operas for the trifle that the current time plays.
Optionally, in a kind of specific implementation mode of the embodiment of the present invention, described device further includes:Second generates mould Block was used for midi times and the first key-value pair of system time generation corresponding with the midi times.
Optionally, in a kind of specific implementation mode of the embodiment of the present invention, described device further includes:Third generates mould Block is used for
The music score of Chinese operas for the song to be played that right-hand man plays is obtained respectively, and utilizes preset keyword and the left and right The music score of Chinese operas for the song to be played that hand is played generates the first key-value pair.
The present invention has the following advantages compared with prior art:
Using the embodiment of the present invention, before playing song to be played, parsing, the quantum chemical method of midi files are carried out, When playing song to be played, corresponding key-value pair can be obtained according to system time, and then corresponding target data can be obtained, In compared with the existing technology, parsing, the quantum chemical method of midi files are carried out when playing song to be played, reduces and is waited in broadcasting Operand when play list, and then reduce the occupancy in playing process to hardware resource.
Description of the drawings
Fig. 1 is that the flow of the first data initialization method for being applied to intelligent piano provided in an embodiment of the present invention is illustrated Figure;
Fig. 2 is the flow signal of the second provided in an embodiment of the present invention data initialization method for being applied to intelligent piano Figure;
Fig. 3 is that the flow of the third data initialization method for being applied to intelligent piano provided in an embodiment of the present invention is illustrated Figure;
Fig. 4 is the flow signal of the 4th kind provided in an embodiment of the present invention data initialization method for being applied to intelligent piano Figure;
Fig. 5 be it is provided in an embodiment of the present invention the first be applied to intelligent piano data initialization device structural representation Figure;
Fig. 6 is the structural representation of the second provided in an embodiment of the present invention data initialization device for being applied to intelligent piano Figure;
Fig. 7 be it is provided in an embodiment of the present invention the third be applied to intelligent piano data initialization device structural representation Figure;
Fig. 8 is the structural representation of the 4th kind provided in an embodiment of the present invention data initialization device for being applied to intelligent piano Figure.
Specific implementation mode
It elaborates below to the embodiment of the present invention, the present embodiment is carried out lower based on the technical solution of the present invention Implement, gives detailed embodiment and specific operating process, but protection scope of the present invention is not limited to following implementation Example.
For solve prior art problem, an embodiment of the present invention provides it is a kind of be applied to can only piano data initialization side Method and device are situated between with regard to a kind of data initialization method applied to intelligent piano provided in an embodiment of the present invention first below It continues.
It should be noted that the embodiment of the present invention is preferably applied to intelligent piano.
Fig. 1 is that the flow of the first data initialization method for being applied to intelligent piano provided in an embodiment of the present invention is illustrated Figure, as shown in Figure 1, the method includes:
S101:Obtain the corresponding midi files of song to be played.
Illustratively, should be stored before playing song to be played, in intelligent piano need to be played song it is corresponding Midi files.The midi files can be that user is copied to by flash disk in intelligent piano, can also be by user's operation intelligence steel The midi files that qin is obtained by internet.
It is understood that midi files be made according to midi agreements, can be by the music file of machine recognition.
S102:Using midi files described in midi protocol analysis, target data is obtained, wherein the target data includes: Trifle number, small adjusting range, broadcasting speed, grace and reproduction time.
Illustratively, using the midi files of midi protocol analysis song to be played, target data is obtained, target data can Think, the broadcasting speed of the corresponding midi chronomeres of trifle number, each trifle, song to be played that include in song to be played Degree, grace and grace corresponding midi times, song to be played the information such as reproduction time.
It requires emphasis yes, target data includes but are not limited to above-mentioned data, and target data further includes intelligent piano can With the data obtained from the midi files of song to be played.
It is understood that the midi times refer to, timing is carried out as zero moment at the time of starting to play using midi files Timing time, for example, the first note for including in the midi files corresponding time is zero moment.
S103:Quantification treatment is carried out to the target data using quantization algorithm.
Illustratively, what midi files included is the information after each target data is quantized in note, and intelligent piano exists Identify that midi files are to carry out quantification treatment to it, restore note data.The purpose of S103 steps is to be calculated using quantization Method will restore in midi files comprising target data.
For example, being 12 at the beginning of the first obtained trifle:00:00, the end time 12:10:00.
S104:By after quantification treatment the target data and, it is corresponding with the target data after the quantification treatment System time generate the first key-value pair.
Illustratively, by the beginning of the first trifle with system time 12:00:00 generates a key-value pair;By first The end time of trifle and system time 12:10:00 generates a key-value pair;By the reproduction time 10 minutes of the first trifle and the The reproduction time of one trifle generates a key-value pair;Aforementioned key-value pair can be the first key-value pair.
S105:According to the system time of first key-value pair and the intelligent piano, the song to be played is carried out It plays.
Illustratively, when system time proceeds to 12:10:When 00, according to the time inquiring key-value pair, key assignments is found It is right:At the beginning of first trifle with system time 12:00:00, then start to play the first trifle.
Using embodiment illustrated in fig. 1 of the present invention, before playing song to be played, parsing, the quantization of midi files are carried out It calculates, when playing song to be played, corresponding key-value pair can be obtained according to system time, and then corresponding mesh can be obtained Mark data, compared with the existing technology in, when playing song to be played, the progress parsing of midi files, quantum chemical method, reduce Operand when playing song to be played, and then reduce the occupancy in playing process to hardware resource.
In addition, in practical applications, in order to reduce user in the stand-by period for playing song to be played, can advance with The midi files of the embodiment of the present invention, the song to be played to being stored in intelligent piano are handled.
Illustratively, the embodiment of the present invention can be advanced with, to what is stored in intelligent piano when intelligent piano is switched on The midi files of song to be played are handled;It is real using the present invention or when midi files are imported intelligent piano by user Example is applied, the midi files of the song to be played to being stored in intelligent piano are handled.
In a kind of specific implementation mode of the embodiment of the present invention, S104 steps can be S104A (not shown)s:Needle To each trifle in the song to be played, and, include with the trifle by the target data for including in the trifle The corresponding system time of target data generates the second key-value pair;And using the set of second key-value pair as the first key-value pair.
Illustratively, include multiple trifles in song to be played, such as trifle 1, trifle 2 and trifle 3.Trifle 1 can be wrapped The set for the key-value pair that the target data contained and corresponding system time generates is as first key-value pair corresponding with trifle 1; It is similar, the set of the key-value pair of the target data that can include using trifle 2 generated with corresponding system time as with it is small Save 2 corresponding first key-value pairs;The key-value pair of the target data that can include by trifle 3 generated with corresponding system time Set is as first key-value pair corresponding with trifle 3.
It, can be when searching for the key-value pair of song to be played using the above embodiment of the present invention, it can be according to system time Judge that currently playing progress is to belong to rudimentary trifle, and then inquire number of targets in the set of corresponding first key-value pair of the trifle According to corresponding key-value pair, avoids and inquire the corresponding key-value pair of target data in all key-value pairs, improve inquiry velocity.
Fig. 2 is the flow signal of the second provided in an embodiment of the present invention data initialization method for being applied to intelligent piano Figure, as shown in Fig. 2, embodiment illustrated in fig. 2 of the present invention, S106 is increased on the basis of embodiment illustrated in fig. 1 of the present invention:
According to the system time of the trifle and the first key-value pair and the intelligent piano of system time, obtain current The trifle that moment plays, and be marked on the music score of Chinese operas for the trifle that the current time plays.
Illustratively, when intelligent piano is according to system time, judges that currently playing trifle is trifle 2, in the music score of Chinese operas Trifle 2 in trifle 2. marked using cursor
It is understood that marking the mark mode when trifle of current time broadcasting to include but are not limited to cursor.
Using embodiment illustrated in fig. 2 of the present invention, user can be made to get information about the trifle played to current time.
Fig. 3 is that the flow of the third data initialization method for being applied to intelligent piano provided in an embodiment of the present invention is illustrated Figure, as shown in figure 3, embodiment illustrated in fig. 3 of the present invention is on the basis of embodiment illustrated in fig. 1 of the present invention, before S105 steps, Increase S107:By midi times and the first key-value pair of system time generation corresponding with the midi times.
Illustratively, midi times and system time are two different timing modes, for example, the broadcasting of midi files starts The corresponding midi times at moment are 0, when corresponding system time is corresponding objective when playing the midi files of song to be played It carves, such as greenwich time or Beijing time.
Under normal conditions, time when playing song to be played will not correspond with the midi times, when needing midi Between system time is corresponded to, for example, the midi times be 0 when, corresponding system time be 12:00:00, then midi times 00:00:05 corresponding system time is 12:00:05.
In practical applications, carved at the beginning of midi files it is corresponding when not being the integer value of system time, for example, midi The corresponding a certain midi times of file correspond to 12:00:05 and 12:00:At the time of between 06, temporal interpolation method may be used Midi times corresponding system time is obtained, and then the midi times are carried out to corresponding, generation corresponding first with system time Key-value pair.
Using embodiment illustrated in fig. 3 of the present invention, the midi times are carried out with system time corresponding, the midi times can be eliminated The playback error that difference between system time is brought improves broadcasting accuracy rate.
Fig. 4 is the flow signal of the 4th kind provided in an embodiment of the present invention data initialization method for being applied to intelligent piano Figure, as shown in figure 4, embodiment illustrated in fig. 4 of the present invention is on the basis of embodiment illustrated in fig. 1 of the present invention, before S105 steps, Increase S108:The music score of Chinese operas for the song to be played that right-hand man plays is obtained respectively;And using preset keyword with it is described The music score of Chinese operas for the song to be played that right-hand man plays generates the first key-value pair.
Illustratively, the music score of Chinese operas trifle played comprising two hands in song to be played, such as the left hand music score of Chinese operas, the right hand music score of Chinese operas.It can Using the set for the key-value pair of the target data for including by the left hand music score of Chinese operas generated with corresponding system time as the left hand music score of Chinese operas pair The first key-value pair answered;Similar, it can be by the key of the target data that the right hand music score of Chinese operas includes generated with corresponding system time The set of value pair is as corresponding first key-value pair of the right hand music score of Chinese operas.
Using embodiment illustrated in fig. 4 of the present invention, when carrying out music score of Chinese operas switching, right-hand man can be obtained according to the first key-value pair The corresponding target data of the music score of Chinese operas obtains right-hand man's music score of Chinese operas relative in the playing process of song to be played from the entire music score of Chinese operas Target data, the acquisition speed of target data can be improved, and then improve the switch speed of the music score of Chinese operas.
Corresponding with embodiment illustrated in fig. 1 of the present invention, the present invention also provides at the beginning of a kind of data being applied to intelligent piano Begin to disguise and set.
Fig. 5 be it is provided in an embodiment of the present invention the first be applied to intelligent piano data initialization device structural representation Figure, as shown in figure 5, described device includes:Acquisition module 501, parsing module 502, quantization modules 503, the first generation module 504 With playing module 505, wherein
The acquisition module 501, for obtaining the corresponding midi files of song to be played;
The parsing module 502, for using midi files described in midi protocol analysis, obtaining target data, wherein institute Stating target data includes:Trifle number, small adjusting range, broadcasting speed, grace and reproduction time;
The quantization modules 503, for carrying out quantification treatment to the target data using quantization algorithm;
First generation module 504, for by after quantification treatment the target data and, after the quantification treatment The corresponding system time of the target data generate the first key-value pair;
The playing module 505, for the system time according to first key-value pair and the intelligent piano, to described Song to be played plays out.
Using embodiment illustrated in fig. 5 of the present invention, before playing song to be played, parsing, the quantization of midi files are carried out It calculates, when playing song to be played, corresponding key-value pair can be obtained according to system time, and then corresponding mesh can be obtained Mark data, compared with the existing technology in, when playing song to be played, the progress parsing of midi files, quantum chemical method, reduce Operand when playing song to be played, and then reduce the occupancy in playing process to hardware resource.
In a kind of specific implementation mode of the embodiment of the present invention, first generation module 504 is additionally operable to:For institute State each trifle in song to be played, by the target data for including in the trifle and, with the target for including in the trifle The corresponding system time of data generates the second key-value pair;And using the set of second key-value pair as the first key-value pair.
It, can be when searching for the key-value pair of song to be played using the above embodiment of the present invention, it can be according to system time Judge that currently playing progress is to belong to rudimentary trifle, and then inquire number of targets in the set of corresponding first key-value pair of the trifle According to corresponding key-value pair, avoids and inquire the corresponding key-value pair of target data in all key-value pairs, improve inquiry velocity.
Corresponding with embodiment illustrated in fig. 2 of the present invention, Fig. 6 is second provided in an embodiment of the present invention applied to intelligent steel The structural schematic diagram of the data initialization device of qin, as shown in fig. 6, embodiment illustrated in fig. 6 of the present invention is real shown in Fig. 5 of the present invention It applies and increases on the basis of example:Mark module 506, for according to the first key-value pair of the trifle and system time and described The system time of intelligent piano obtains the trifle of current time broadcasting, and on the music score of Chinese operas for the trifle that the current time plays It is marked.
Using embodiment illustrated in fig. 6 of the present invention, user can be made to get information about the trifle played to current time.
Corresponding with embodiment illustrated in fig. 3 of the present invention, Fig. 7 is that provided in an embodiment of the present invention the third is applied to intelligent steel The structural schematic diagram of the data initialization device of qin, as shown in fig. 7, embodiment illustrated in fig. 7 of the present invention is real shown in Fig. 5 of the present invention It applies and increases on the basis of example:Second generation module 507 was used for midi times and system corresponding with the midi times Time generates the first key-value pair.
Using embodiment illustrated in fig. 7 of the present invention, the midi times are carried out with system time corresponding, the midi times can be eliminated The playback error that difference between system time is brought improves broadcasting accuracy rate.
Corresponding with embodiment illustrated in fig. 4 of the present invention, Fig. 8 is 4th kind provided in an embodiment of the present invention and is applied to intelligent steel The structural schematic diagram of the data initialization device of qin, as shown in figure 8, embodiment illustrated in fig. 8 of the present invention is real shown in Fig. 5 of the present invention It applies and increases on the basis of example:Third generation module 508, the song for obtaining the song to be played that right-hand man plays respectively Spectrum, and the music score of Chinese operas for the song to be played played with the right-hand man using preset keyword generates the first key-value pair.
Using embodiment illustrated in fig. 8 of the present invention, when carrying out music score of Chinese operas switching, right-hand man can be obtained according to the first key-value pair The corresponding target data of the music score of Chinese operas obtains right-hand man's music score of Chinese operas relative in the playing process of song to be played from the entire music score of Chinese operas Target data, the acquisition speed of target data can be improved, and then improve the switch speed of the music score of Chinese operas.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement etc., should all be included in the protection scope of the present invention made by within refreshing and principle.

Claims (10)

1. a kind of data initialization method being applied to intelligent piano, which is characterized in that the method includes:
Obtain the corresponding midi files of song to be played;
Using midi files described in midi protocol analysis, target data is obtained, wherein the target data includes:Trifle number, Small adjusting range, broadcasting speed, grace and reproduction time;
Quantification treatment is carried out to the target data using quantization algorithm;
By after quantification treatment the target data and, system time corresponding with the target data after the quantification treatment Generate the first key-value pair;
According to the system time of first key-value pair and the intelligent piano, the song to be played is played out.
2. data initialization method according to claim 1, which is characterized in that the target by after quantification treatment Data and, corresponding with the target data after quantification treatment system time generates the first key-value pair, including:
For each trifle in the song to be played, by the target data for including in the trifle and, and in the trifle Including the corresponding system time of target data generate the second key-value pair;And using the set of second key-value pair as the first key Value pair.
3. data initialization method according to claim 1, which is characterized in that according to first key-value pair and described The system time of intelligent piano, when being played out to the song to be played, the method further includes:
According to the system time of the trifle and the first key-value pair and the intelligent piano of system time, current time is obtained The trifle of broadcasting, and be marked on the music score of Chinese operas for the trifle that the current time plays.
4. data initialization method according to claim 1, which is characterized in that according to first key-value pair and described The system time of intelligent piano, before being played out to the song to be played, the method further includes:
By midi times and the first key-value pair of system time generation corresponding with the midi times.
5. data initialization method according to claim 1, which is characterized in that according to first key-value pair and described The system time of intelligent piano, before being played out to the song to be played, the method further includes:
The music score of Chinese operas for the song to be played that right-hand man plays is obtained respectively;And it is drilled using preset keyword and the right-hand man The music score of Chinese operas for the song to be played played generates the first key-value pair.
6. a kind of data initialization device being applied to intelligent piano, which is characterized in that described device includes:Acquisition module, solution Analyse module, quantization modules, the first generation module and playing module, wherein
The acquisition module, for obtaining the corresponding midi files of song to be played;
The parsing module, for using midi files described in midi protocol analysis, obtaining target data, wherein the target Data include:Trifle number, small adjusting range, broadcasting speed, grace and reproduction time;
The quantization modules, for carrying out quantification treatment to the target data using quantization algorithm;
First generation module, for by after quantification treatment the target data and, described in after the quantification treatment The corresponding system time of target data generates the first key-value pair;
The playing module, for the system time according to first key-value pair and the intelligent piano, to described to be played Song plays out.
7. data initialization device according to claim 6, which is characterized in that first generation module is additionally operable to:Needle To each trifle in the song to be played, and, include with the trifle by the target data for including in the trifle The corresponding system time of target data generates the second key-value pair;And using the set of second key-value pair as the first key-value pair.
8. data initialization device according to claim 6, which is characterized in that described device further includes:Mark module is used In the system time according to the first key-value pair of the trifle and system time and the intelligent piano, obtaining current time broadcasts The trifle put, and be marked on the music score of Chinese operas for the trifle that the current time plays.
9. data initialization device according to claim 6, which is characterized in that described device further includes:Second generates mould Block was used for midi times and the first key-value pair of system time generation corresponding with the midi times.
10. data initialization method according to claim 6, which is characterized in that described device further includes:Third generates mould Block is used for
The music score of Chinese operas for the song to be played that right-hand man plays is obtained respectively, and is drilled using preset keyword and the right-hand man The music score of Chinese operas for the song to be played played generates the first key-value pair.
CN201810184620.3A 2018-03-06 2018-03-06 A kind of data initialization method and device being applied to intelligent piano Pending CN108364627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810184620.3A CN108364627A (en) 2018-03-06 2018-03-06 A kind of data initialization method and device being applied to intelligent piano

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810184620.3A CN108364627A (en) 2018-03-06 2018-03-06 A kind of data initialization method and device being applied to intelligent piano

Publications (1)

Publication Number Publication Date
CN108364627A true CN108364627A (en) 2018-08-03

Family

ID=63003379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810184620.3A Pending CN108364627A (en) 2018-03-06 2018-03-06 A kind of data initialization method and device being applied to intelligent piano

Country Status (1)

Country Link
CN (1) CN108364627A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113797541A (en) * 2021-09-06 2021-12-17 武汉指娱互动信息技术有限公司 Music game level generating method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1604181A (en) * 2004-11-15 2005-04-06 北京中星微电子有限公司 MIDI music playback method and MIDI music playback apparatus
CN1667698A (en) * 2005-04-25 2005-09-14 北京中星微电子有限公司 MIDI cell phone system and method for realizing MIDI music therein
CN1838236A (en) * 2005-03-22 2006-09-27 雅马哈株式会社 Automatic performance data processing apparatus, automatic performance data processing method
CN1924990A (en) * 2005-09-01 2007-03-07 凌阳科技股份有限公司 MIDI voice signal playing structure and method and multimedia device for playing same
US20080271592A1 (en) * 2003-08-20 2008-11-06 David Joseph Beckford System, computer program and method for quantifying and analyzing musical intellectual property
CN105761733A (en) * 2016-02-02 2016-07-13 腾讯科技(深圳)有限公司 Method and device for generating lyrics files

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080271592A1 (en) * 2003-08-20 2008-11-06 David Joseph Beckford System, computer program and method for quantifying and analyzing musical intellectual property
CN1604181A (en) * 2004-11-15 2005-04-06 北京中星微电子有限公司 MIDI music playback method and MIDI music playback apparatus
CN1838236A (en) * 2005-03-22 2006-09-27 雅马哈株式会社 Automatic performance data processing apparatus, automatic performance data processing method
CN1667698A (en) * 2005-04-25 2005-09-14 北京中星微电子有限公司 MIDI cell phone system and method for realizing MIDI music therein
CN1924990A (en) * 2005-09-01 2007-03-07 凌阳科技股份有限公司 MIDI voice signal playing structure and method and multimedia device for playing same
CN105761733A (en) * 2016-02-02 2016-07-13 腾讯科技(深圳)有限公司 Method and device for generating lyrics files

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113797541A (en) * 2021-09-06 2021-12-17 武汉指娱互动信息技术有限公司 Music game level generating method, device, equipment and storage medium
CN113797541B (en) * 2021-09-06 2024-04-09 武汉指娱互动信息技术有限公司 Music game level generation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US9239700B2 (en) System and method for automatically producing haptic events from a digital audio signal
US7979146B2 (en) System and method for automatically producing haptic events from a digital audio signal
US9330546B2 (en) System and method for automatically producing haptic events from a digital audio file
US8022287B2 (en) Music composition data reconstruction device, music composition data reconstruction method, music content reproduction device, and music content reproduction method
US10097884B2 (en) Media playback method, client and system
CN110675893B (en) Song identification method and device, storage medium and electronic equipment
US20140288686A1 (en) Methods, systems, devices and computer program products for managing playback of digital media content
US10799795B1 (en) Real-time audio generation for electronic games based on personalized music preferences
CA2826052A1 (en) Semantic audio track mixer
US20080160943A1 (en) Method and apparatus to post-process an audio signal
KR20080066007A (en) Method and apparatus for processing audio for playback
CN105161120A (en) Original and accompanying singing switching method and apparatus
CN113573161B (en) Multimedia data processing method, device, equipment and storage medium
WO2012140468A1 (en) Method for generating a sound effect in a piece of game software, associated computer program and data processing system for executing instructions of the computer program
US6673995B2 (en) Musical signal processing apparatus
KR20190108027A (en) Method, system and non-transitory computer-readable recording medium for generating music associated with a video
CN108364627A (en) A kind of data initialization method and device being applied to intelligent piano
JP2005516285A (en) Music search system that plays the searched songs together
CN108766436A (en) A kind of sound control method and system of multimedia equipment
KR101580247B1 (en) Device and method of rhythm analysis for streaming sound source
CN106384603A (en) Music play method and music play device
KR100398623B1 (en) Playing and Searching Method for Remote Media using Internet
KR102431737B1 (en) Method of searching highlight in multimedia data and apparatus therof
KR100664637B1 (en) Music player and playing method thereof, and computer-readable recording medium
Doherty et al. Pattern matching techniques for replacing missing sections of audio streamed across wireless networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180803