Summary of the invention
The purpose of this invention is to provide a kind of mobile phone and its implementation that generates music, it can realize utilizing mobile phone to carry out musical composition.
On the one hand, the invention provides a kind of mobile phone that generates music, comprising:
One database is arranged in the described mobile phone memory, in order to the audio file of storing digital note and recording;
One voice recognition module connects described database, and the described audio file of identification storage is also pressed each note to be filled in pre-defined rule output this document;
One music score generation module connects described voice recognition module, calls the digital note of described database storage the note to be filled of described voice recognition module output is filled, and forms numeric music notation and storage.
Described mobile phone also comprises the music score editor module, the playing an instrument of the numeric music notation that the described music score generation module of described music score editor module editor generates.
Described voice recognition module judges that the higher relative value peak value of sound is an independent note to be filled in the described audio file.
Described editor module also has musical instrument selection, note increase, note delete function.
On the other hand, the present invention also provides a kind of mobile phone of realizing to generate the method for music, may further comprise the steps:
5.1, in described mobile phone memory, set up a database, in order to the audio file of storing digital note and recording;
5.2, the described audio file of identification storage and press pre-defined rule and export each note to be filled in this document;
5.3, the digital note that calls described database storage fills the note to be filled of described voice recognition module output, forms numeric music notation and storage.
Described method also comprises carries out editing steps to playing an instrument of the numeric music notation of described generation.
Pre-defined rule in the described step 5.2 is: judge that the higher relative value peak value of sound is an independent note to be filled in the described audio file.
Comprise also in the described edit step that musical instrument is selected, note increases, note deletion step.
Adopt a kind of mobile phone and its implementation that generates music of the present invention, described mobile phone can be made identification to the sound of input, generate the blank music score of Chinese operas that only writes down rhythm of one section simplification, the user inserts numbered musical notation and musical instrument effect on rhythm subsequently, just can preserve/play, and can edit at any time.The present invention can make musical composition more easy, makes whole production process become a recreation simply easily.
Embodiment
Further specify technical scheme of the present invention below in conjunction with drawings and Examples.
A kind of mobile phone that generates music of the present invention comprises:
One database is arranged in the described mobile phone memory, in order to the audio file of storing digital note and recording.
One voice recognition module connects described database, and the described audio file of identification storage is also pressed each note to be filled in pre-defined rule output this document.As an embodiment, described voice recognition module judges that the higher relative value peak value of sound is an independent note to be filled in the described audio file.
One music score generation module connects described voice recognition module, calls the digital note of described database storage the note to be filled of described voice recognition module output is filled, and forms numeric music notation and storage.
As an embodiment, described mobile phone also comprises the music score editor module, the playing an instrument of the numeric music notation that the described music score generation module of described music score editor module editor generates.Described editor module also has musical instrument selection, note increase, note delete function.
With reference to Fig. 1, according to concrete steps specific embodiment is described below, present embodiment at hardware aspect based on spreadtrum audio decoder chip 6600D and 6600I, Philip PNX0101, chips such as Epson S1V30220 are realized; Aspect software, realize concrete control procedure according to concrete programming:
Step 1: start the mobile phone music program,, the speech conversion of recording is become audio file and be kept in the database in the mobile phone memory by speech conversion system by microphone input voice.Referring to S1, S2, S3.
Step 2: enter control circuit by the sound input interface after converting audio file to audio coding.Referring to S4, S5.
Step 3: voice recognition module in the control circuit and music score generation module carry out concrete music score generation work, and the described audio file of voice recognition module identification storage is also pressed each note to be filled in pre-defined rule output this document.Described pre-defined rule is: described voice recognition module judges that the higher relative value peak value of sound is an independent note to be filled in the described audio file.The music score generation module calls the digital note of described database storage the note to be filled of described voice recognition module output is filled, and forms numeric music notation and storage.Referring to S5, S6, S7.
Step 4: the numeric music notation that forms is play by the output of voice output interface.Referring to S8, S9.
Referring to Fig. 2, Fig. 2 is the display interface that the music score editor module of mobile phone of the present invention carries out work, above-mentioned newly-generated numeric music notation file acquiescence plays an instrument and is small drum, the note code name is 0, after selecting the acquiescence note, that can insert other numbered musical notation note and select to use plays an instrument, and can play this note when inserting and produce the preview effect, and single note can carry out the displacement operation on the time shaft.
On the other hand, the present invention also provides a kind of mobile phone of realizing to generate the method for music, may further comprise the steps:
5.1, in described mobile phone memory, set up a database, in order to the audio file of storing digital note and recording.
5.2, the described audio file of identification storage and press pre-defined rule and export each note to be filled in this document.Described pre-defined rule is: judge that the higher relative value peak value of sound is an independent note to be filled in the described audio file.
5.3, the digital note that calls described database storage fills the note to be filled of described voice recognition module output, forms numeric music notation and storage.
As an embodiment, described method also comprises carries out editing steps to playing an instrument of the numeric music notation of described generation.Comprise also in the described edit step that musical instrument is selected, note increases, note deletion step.
It is pointed out that a kind of mobile phone that generates music of the present invention and of the present inventionly a kind ofly realize that method that mobile phone generates music is identical or similar on principle and implementation procedure, so repeating part repeats no more.
Those of ordinary skill in the art will be appreciated that, above embodiment is used for illustrating the present invention, and be not to be used as limitation of the invention, as long as in connotation scope of the present invention, all will drop in claims scope of the present invention variation, the modification of above embodiment.