CN1234060C - A music file production and playback method - Google Patents

A music file production and playback method Download PDF

Info

Publication number
CN1234060C
CN1234060C CNB031411606A CN03141160A CN1234060C CN 1234060 C CN1234060 C CN 1234060C CN B031411606 A CNB031411606 A CN B031411606A CN 03141160 A CN03141160 A CN 03141160A CN 1234060 C CN1234060 C CN 1234060C
Authority
CN
China
Prior art keywords
field
incident
music
time
time field
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.)
Expired - Fee Related
Application number
CNB031411606A
Other languages
Chinese (zh)
Other versions
CN1567141A (en
Inventor
李忠宪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sunplus Technology Co Ltd
Original Assignee
Sunplus 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 Sunplus Technology Co Ltd filed Critical Sunplus Technology Co Ltd
Priority to CNB031411606A priority Critical patent/CN1234060C/en
Publication of CN1567141A publication Critical patent/CN1567141A/en
Application granted granted Critical
Publication of CN1234060C publication Critical patent/CN1234060C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to a method for generating and playing a music file and a computer which carries the music file and can read recording media. Each of all events performed at the same time is recorded by a separate event field and is recorded to a corresponding single time field so as to make the music file have short file length. When the music file is read, time fields and more than one corresponding event field are read.

Description

The method that a kind of music archive produces and plays
Technical field
The invention relates to the method that a kind of music archive produces, especially refer to that a kind of time field that uses philharmonic's numerical digit interface and event column bit format are used as producing the method for the time field and the incident field of music archive, and the player method of this music archive and the computer-readable recording medium that is loaded with this music archive.
Background technology
In the field of playing back music, MIDI (philharmonic's numerical digit interface, Music InstrumentDigital Interface) music archive form is the standard that is popular always.Wherein, MIDI music archive form can be distinguished into two kinds of SMF (standard philharmonic numerical digit interface format, standardMIDI format) and SMAF (composite music mobile applications form, Synthetic music MobileApplication Format) etc. again.As shown in Figure 1, SMF is distinguished into three parts: the one, and time field 11 is in order to write down the corresponding time; The one, state field 12 is the states in order to the record tone kind; The one, data field 13 is the data in order to recording musical.And the record of a music promptly comprises single time field, a single state field and single data field, and the music archive of use SMF form comprises the record of an above music at least.
And SMAF be by the research and development of Japanese three leaf companies (YAMAHA) to formulate, generally be used for portable electronic product, for example, can play 20 mobile phones that close string.As shown in Figure 2, SMAF is distinguished into two major parts: the one, and time field 21 is in order to write down the corresponding time; The one, incident field 22 is the incidents in order to the recording played music.Wherein, the content that incident field 22 can be considered above-mentioned state field 12 and data field 13 merges, and simplifies.And the record of a music just comprises single time field 21 and single incident field 22, and the music archive of use SMAF form comprises the record of an above music at least.Compare SMF form and SMAF form as can be known, the file length of SMAF form is the archives less than the SMF form.
Can obviously learn by the SMF of Figure 1 and Figure 2 and the music archive form of SMAF, if the music categories that the same time will play the more, the time field of representing the same time also the more, the space that archives are wasted is also the more.This will cause the use to the finite memory of portable electronic product to produce restriction greatly, and therefore, aforementioned existing music archive technology gives improved necessity in fact.
Summary of the invention
Fundamental purpose of the present invention is in the method that provides a kind of music archive to produce, so that music archive has less file length.
Another object of the present invention is that a kind of player method of music archive is being provided, can correctly play the content of aforementioned music archive.
A further object of the present invention is that a kind of computer-readable recording medium that is loaded with the music archive of less file length is being provided.
According to a characteristic of the present invention, it proposes the method that a kind of music archive produces, and this music archive is in order to playing a plurality of incidents, and this method comprises the following steps: (A) record one relative time to time field; (B) record corresponds to incident to the incident field of above-mentioned time; (C) judge the incident equal record whether correspond to the above-mentioned time, as not, execution in step (B); (D) judge whether to finish the record of all these incidents, as not, execution in step (A); And (E) export above-mentioned music archive.
According to another characteristic of the present invention, it proposes the method that a kind of music archive is play, and this music archive comprises time field and incident field, and each time field corresponds to few incident field, and this method comprises the following steps: that (A) reads this music archive; (B) determine the time span of a time field of this music archive; (C) according to the length of time field, this time field is decoded, in order to the represented relative time length of acquisition time field; (D) an incident field of this time field correspondence is decoded, in order to obtain corresponding playing back music incident; (E) whether the incident of judging corresponding above-mentioned time field all decodes, as denying execution in step (D); And (F) come playing back music according to the relative time length and the represented playing back music incident of corresponding one or more incident fields of decoding gained, execution in step (B) finishes until music archive again.
According to a characteristic more of the present invention, it proposes a kind of computer-readable recording medium, be to be loaded with a music archive, and be applied in the information device, this music archive is continued by plural number time field and incident field to form, wherein, after time field continue one or a plurality of incident field corresponding to this time field, these a plurality of incident fields are a plurality of music incidents of representing at one time to be taken place.
Description of drawings
Fig. 1 is the synoptic diagram of existing SMF;
Fig. 2 is the synoptic diagram of another existing SMAF;
Fig. 3 is the synoptic diagram of music archive form of the present invention;
Fig. 4 is the process flow diagram of music archive production method of the present invention;
Fig. 5 is the process flow diagram that music archive of the present invention is retouched the method for putting;
Fig. 6 is the synoptic diagram of a time field of the present invention and incident field;
Fig. 7 is the synoptic diagram of another time field of the present invention and incident field.
Embodiment
The method that relevant music archive of the present invention produces, please be earlier with reference to shown in Figure 3 with music archive form that method of the present invention was produced, all same time takes place for it one or a plurality of incident (being recorded in incident field 32), correspond to single time field 31, that is, its music archive is continued by plural number time field 31 and incident field 32 to form, and be continue one or a plurality of incident field 32 corresponding to this time field 31 after the time field 31, with the length of saving music archive, and reach purpose of the present invention.
Fig. 4 is the method flow diagram that produces the music archive of Fig. 3, and its execution in step is as described below:
Step S10, the record relative time is to the time field.The record format of time field is the record format that meets SMF or SMAF time field.Wherein, the recorded content of time field is the relative time, as shown in Figure 6, represents the length of a time field or an incident field with eight bits at this.If first yard O of field represents that then this field is the time field, the length of the second representation time field, the represented relative time of back six representation time fields.For example, preceding two yards is 00, and the length of the express time field only length of a time field can represent that preceding two yards is 01, and the length of express time field need add that next time field just can judge real relative time.So the represented relative time of the time field of Fig. 6 is 4 seconds, play corresponding incident after promptly 4 seconds.Because the time span that the time field can write down has only 6 bits, when relative time surpasses 63 seconds, need utilize two above time fields to write down a time length, as shown in Figure 7, the represented time span of very first time field is 63 seconds, the represented time span of the second time field is 31 seconds, so the total length of relative time is 94 seconds.
Step S12, the incident that record corresponds to the above-mentioned time is to the incident field, and wherein, if first yard 1 this field of expression of field is the incident field, back seven yards is the event code of carrying out incident in order to the record desire.Suppose the tone color of desire broadcast violin after 4 seconds, and the pairing event code of violin is 8.Then the action of recording played violin is in the incident field, as shown in Figure 6, and in addition, an above incident can correspond to same relative time, as shown in Figure 7, after 94 seconds, not only carry out the tone color (event code is 8) of violin in relative time, also carrying out the tone color of piano (supposes, event code is 2), therefore, whether the incident that step S13 judges the corresponding above-mentioned time equal records, as not, execution in step S12 is to continue record again.
Step S14 judges whether to finish the record of all incidents, if when incident is still arranged with reasonable time field and incident field record, and execution in step S10, otherwise, i.e. execution in step S16.
Step S16 exports a music archive.In music archive of the present invention, though the record format of time field and incident field is with existing identical, but, a time of the present invention blocks the position and can correspond to an above incident field, so, can write down time and the incident that existing MIDI can write down by less file length with music archive of the present invention, so can reach purpose of the present invention.
In addition, for the music archive that preceding method produced, can be read by method shown in Figure 5 and play, its step is as follows:
Step S20 reads music archive.
Step S22, the length of the time field of judgement music archive.
Step S24, according to the length of time field, to time field decoding, in order to the represented relative time length of acquisition time field, for example, the time span of Fig. 6 is 4, the time span of Fig. 7 is 94.
Step S26 decodes to an incident field of time field correspondence, to obtain corresponding playing back music incident.Because in the music archive, same time field may correspond to an above incident field, for example, Fig. 7 need carry out the incident of violin and piano, therefore step S27 judges whether the incident of corresponding above-mentioned time field all decodes, and as not, execution in step S26 is to continue decoding again.
Step S28 judges whether music archive is end.If do not finish then execution in step S30, come playing back music with relative time length and the represented playing back music incident of corresponding one or more incident fields according to the decoding gained, judge that as step S28 music archive finishes, then stop playing back music.If the content of incident field is meaningless or be a specific content (for example being 1111111), represent that then all incident executeds of music archive finish, be the state that finishes.In addition, also can learn that promptly the represented relative time of time field is zero, also can judge that all incident executeds of music archive finish by the decoding of time field.
This method is to utilize the time field and the incident field that meet philharmonic's numerical digit interface music format to produce music archive, correspond to an above incident field with single time field, thus, the file length of the existing philharmonic of the file length of music archive numerical digit interface music format is little, so can reach purpose of the present invention.
Aforementioned music archive can electronization form be stored in any information device can identification, the recording medium of deciphering, or include the article and the device of this recording medium, it is not limited to any form, these article can be hard disk, floppy disk, CD, ZIP, MO, IC wafer, random-access memory (ram), or any those who are familiar with this art the spendable article that include this recording medium, and can read and play by information device.
The foregoing description only is to give an example for convenience of description, and the interest field that the present invention advocated should be as the criterion so that claim is described certainly, but not only limits to the foregoing description.

Claims (10)

1. the method that produces of a music archive, this music archive are in order to playing a plurality of incidents, it is characterized in that, this method comprises the following steps:
(A) record one relative time to time field;
(B) record corresponds to incident to the incident field of above-mentioned time;
(C) judge the incident equal record whether correspond to the above-mentioned time, as not, execution in step (B);
(D) judge whether to finish the record of all these incidents, as not, execution in step (A); And
(E) export above-mentioned music archive.
2. the method for claim 1 is characterized in that, the record format of this time field is to meet a standard philharmonic numerical digit interface format.
3. the method for claim 1 is characterized in that, the record format of this incident field is to meet a standard philharmonic numerical digit interface format.
4. the method for claim 1 is characterized in that, the record format of this time field is to meet music mobile applications form.
5. the method for claim 1 is characterized in that, the record format of these incident fields is to meet music mobile applications form.
6. the method play of a music archive, this music archive comprises time field and incident field, each time field corresponds to few incident field, it is characterized in that this method comprises the following steps:
(A) read this music archive;
(B) determine the time span of a time field of this music archive;
(C) according to the length of time field, this time field is decoded, in order to the represented relative time length of acquisition time field;
(D) an incident field of this time field correspondence is decoded, in order to obtain corresponding playing back music incident;
(E) whether the incident of judging corresponding above-mentioned time field all decodes, as denying execution in step (D); And
(F) come playing back music according to the relative time length and the represented playing back music incident of corresponding one or more incident fields of decoding gained, execution in step (B) finishes until music archive again.
7. method as claimed in claim 6 is characterized in that, the record format of this time field is to meet a standard philharmonic numerical digit interface format.
8. method as claimed in claim 6 is characterized in that, the record format of this incident field is to meet a standard philharmonic numerical digit interface format.
9. method as claimed in claim 6 is characterized in that, the record format of this time field is to meet music mobile applications form.
10. method as claimed in claim 6 is characterized in that, the record format of these incident fields is to meet music mobile applications form.
CNB031411606A 2003-06-12 2003-06-12 A music file production and playback method Expired - Fee Related CN1234060C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031411606A CN1234060C (en) 2003-06-12 2003-06-12 A music file production and playback method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031411606A CN1234060C (en) 2003-06-12 2003-06-12 A music file production and playback method

Publications (2)

Publication Number Publication Date
CN1567141A CN1567141A (en) 2005-01-19
CN1234060C true CN1234060C (en) 2005-12-28

Family

ID=34470858

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031411606A Expired - Fee Related CN1234060C (en) 2003-06-12 2003-06-12 A music file production and playback method

Country Status (1)

Country Link
CN (1) CN1234060C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9415900B2 (en) 2004-10-20 2016-08-16 Valspar Sourcing, Inc. Coating compositions for aluminum beverage cans and methods of coating same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9415900B2 (en) 2004-10-20 2016-08-16 Valspar Sourcing, Inc. Coating compositions for aluminum beverage cans and methods of coating same
US10336909B2 (en) 2004-10-20 2019-07-02 The Sherwin-Williams Company Coating compositions for aluminum beverage cans and methods of coating same

Also Published As

Publication number Publication date
CN1567141A (en) 2005-01-19

Similar Documents

Publication Publication Date Title
CN100429656C (en) Music search system and music search apparatus
Vinet et al. The cuidado project
CN1451153A (en) Methods and system for encoding an audio sequence with synchronized data and outputting the same
CN1200424C (en) Method for recording or reading audio frequency data on or out rewritable recording media
US7792831B2 (en) Apparatus, system and method for extracting structure of song lyrics using repeated pattern thereof
CN1398400A (en) System and method for protecting digital media
CN1389865A (en) Device and method for reproducing information
US20060079217A1 (en) Compressed audio information
CN1623151A (en) Music retrieval system for joining in with the retrieved piece of music
CN1234060C (en) A music file production and playback method
CN1822189A (en) Content identifying method for digital recorded file
CN1909057A (en) Portable data processing device with karaoke function and melody selecting method
CN1231916C (en) Portable (recordable) karaoke apparatus
Vinet et al. The cuidado project: New applications based on audio and music content description
JPH02249187A (en) 'karaoke' system
CN2653596Y (en) MP3 voice item requesting device
Gangwar et al. AUTHENTICATION OF DIGITAL AUDIO RECORDING USING FILE’S SIGNATURE AND METADATA PROPERTIES
CN1101030C (en) Multimedia recording and playing device capable of expanding function
US7214869B2 (en) Method for generating and playing a musical file and a computer-readable media storing the musical file
Tripathy et al. Query by humming system
KR970066847A (en) Data recording method and device
CN1084514C (en) Accompaniment data generator and video-song accompaniment apparatus adopting the same
TW594670B (en) A performance information recording device, performance information-compression equipment, and a telephone terminal unit
CN1211732C (en) Song-selecting method using melody signal
JP4220108B2 (en) Acoustic signal coding system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20051228

Termination date: 20150612

EXPY Termination of patent right or utility model