CN1991973B - Music synthesizing method which dynamically regulating MIDI chord number - Google Patents

Music synthesizing method which dynamically regulating MIDI chord number Download PDF

Info

Publication number
CN1991973B
CN1991973B CN2005101122454A CN200510112245A CN1991973B CN 1991973 B CN1991973 B CN 1991973B CN 2005101122454 A CN2005101122454 A CN 2005101122454A CN 200510112245 A CN200510112245 A CN 200510112245A CN 1991973 B CN1991973 B CN 1991973B
Authority
CN
China
Prior art keywords
data
midi
chord
chord number
decoding
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.)
Active
Application number
CN2005101122454A
Other languages
Chinese (zh)
Other versions
CN1991973A (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN2005101122454A priority Critical patent/CN1991973B/en
Publication of CN1991973A publication Critical patent/CN1991973A/en
Application granted granted Critical
Publication of CN1991973B publication Critical patent/CN1991973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

A music compounding method that adjusts MIDI chord number dynamically that characterized in that: a suit of dynamic feedback mechanism is built between the MIDI decoder, audio controller and data buffer, judging the data quantity of buffer between the data_in and data_out determines whether the dynamic adjustment is proceed and how to proceed. The invention mainly resolves the problem of balance between the tone of current MIDI soft decoding system and decoding speed, realizes the high-chord and high-speed MIDI decoding maximum.

Description

A kind of music synthesis method of dynamic adjustment MIDI chord number
Technical field
The present invention relates to that (be called for short: MIPS) (as mobile communication terminal, embedded personal consumption product etc.) realize that high chord counts MIDI (Musical Instrument Digital Interface) and (be called for short: decoding MIDI), particularly a kind of music synthesis method of dynamic adjustment MIDI chord number in the relatively more nervous system in per second 1,000,000 instruction.
Background technology
Because it is high that the decoding of MIDI requires MIPS, especially in bigger communication system, often can face the situation of fighting for resource with other modules, have some setbacks thereby cause MIDI to play, take place intermittently, degradation phenomenon under the tonequality.Common hardware decoder has independent CPUs, can guarantee that MIDI is in limit priority all the time, and the audio that can make something perfect even more perfect by the dynamic masked segment of some interrupt mechanisms on the hardware, to keep normal decoding and playback rate.And be in the soft decode system of crucial considerations at cost, we just have to consider some other way, seek the balance on tonequality and the decoding speed.
Summary of the invention
The music synthesis method that the purpose of this invention is to provide a kind of dynamic adjustment MIDI chord number mainly solves the tonequality of the existing soft decode system of MIDI and the equilibrium problem on the decoding speed, realizes the MIDI decoding of high chord two-forty to greatest extent.
For solving the problems of the technologies described above, the present invention is achieved in that
A kind of music synthesis method of dynamic adjustment MIDI chord number, it is characterized in that: between MIDI demoder, Audio Controller, data buffer, made up a cover dynamic state feedback mechanism, by judging whether the amount of buffered data decision between data_in and the data_out carries out the dynamic adjustment of chord number (PolyNumber) balanced algorithm, and its course of work is such:
The data that decoder decode obtains are put into data buffer according to certain packet size, simultaneously, the data_in data pointer adds 1, and Audio Controller will extract data after whenever playing one group of data again from data buffer, every extraction one bag, data_out adds 1; When the value of data_in-data_out during less than a certain threshold values, system will send a message informing MIDI demoder and start the PolyNumber balanced algorithm, PolyNumber is dropped in the safe range, and continue decoding; Speed to be decoded is higher than broadcasting speed, be that the growth rate of data buffering (DataBuffer) is greater than reduction during speed, the value of data_in-data_out can be increasing, until greater than another higher threshold values, system can send another message again, notice MIDI demoder recovers PolyNumber, to carry out the decoding of full chord high tone quality.
The music synthesis method of described dynamic adjustment MIDI chord number is characterized in that: when carrying out the EQUILIBRIUM CALCULATION FOR PROCESS of PolyNumber, keep according to the volume of current each chord (Poly) is descending.
The music synthesis method of described dynamic adjustment MIDI chord number is characterized in that: set the threshold values of a plurality of PolyNumber EQUILIBRIUM CALCULATION FOR PROCESS, carry out multi-level Poly according to different buffer zone (Buffer) use amount and adjust.
By technique scheme, the technique effect that the present invention has is:
1, passes through the inventive method, at first guaranteed smooth and easy the carrying out that MIDI plays, simultaneously, when carrying out the EQUILIBRIUM CALCULATION FOR PROCESS of PolyNumber, our basis is to keep according to the volume of current each Poly is descending, therefore, just can keep theme to greatest extent, guarantee that music is in acoustically continuity and integrality.
2, the inventive method can be realized by software fully, has saved the cost on the hardware; And on the demand of software resource, because parameters such as balance low spot (LowPoint), the high point of balance (HighPoint), specified chord number can be carried out the customization configuration according to the situation of real system fully, thereby make whole proposal very flexible on using, adaptive faculty is extremely strong.
Description of drawings
Fig. 1 is to use the system schematic of the inventive method.
Embodiment
Main design considerations of the present invention is the unbalancedness of MIDI melody chord distribution and the controllability of the specified chord number of MIDI demoder.The former is meant that it all is unbalanced that the chord of each first MIDI melody distributes, and high sometimes, low sometimes, chord is high more, and decoding speed is relatively just slow more, but high chord once in a while can't influence whole broadcasting speed; The specified chord number of MIDI demoder is meant the highest chord number that can support in the MIDI decoding, the chord that surpasses this value all will be skipped over, and does not decode.So-called specified chord may command can be set the highest chord number of MIDI demoder in other words as required.
As shown in Figure 1: the present invention has made up cover dynamic feedback (Feedback) mechanism between MIDI demoder (MIDI Decoder), Audio Controller (Voiceband), data buffer (DataBuffer), by judging whether the amount of buffered data decision between data_in and the data_out carries out the dynamic adjustment of PolyNumber balanced algorithm, and how to adjust.System work process is such:
The data that decoder decode obtains are put into DataBuffer according to certain packet size, and simultaneously, the data_in data pointer adds 1.Voiceband will extract data after whenever playing one group of data again from DataBuffer, every extraction one bag, and data_out adds 1.When the value of (data_in-data_out) during less than a certain threshold values (being made as LowPoint), system will send a message informing Decoder and start the PolyNumber balanced algorithm, PolyNumber is dropped in the safe range, and continue decoding.Speed to be decoded is higher than broadcasting speed, be that the growth rate of DataBuffer is greater than reduction during speed, (data_in-data_out) value can be increasing, until greater than another higher threshold values (being made as HighPoint), system can send another message again, notice Decoder recovers PolyNumber, to carry out the decoding of full chord high tone quality.
By this method, at first guaranteed smooth and easy the carrying out that MIDI plays, simultaneously, when carrying out the EQUILIBRIUM CALCULATION FOR PROCESS of PolyNumber, our basis is to keep according to the volume of current each Poly is descending, therefore, just can keep theme to greatest extent, guarantee that music is in acoustically continuity and integrality.
This invention can be realized by software fully, save the cost on the hardware; And on the demand of software resource, because parameters such as balance low spot (LowPoint), the high point of balance (HighPoint), specified chord number can be carried out the customization configuration according to the situation of real system fully, thereby make whole proposal very flexible on using, adaptive faculty is extremely strong.
According to the resource idle condition of real system, can also there be multiple variation in the present invention.For example, can set the threshold values of a plurality of PolyNumber EQUILIBRIUM CALCULATION FOR PROCESS, carry out multi-level Poly according to different Buffer use amounts and adjust, to realize transition more stably; Perhaps, except the adjustment of carrying out PolyNumber, can also carry out switch to the processing of various audios.When system resource is relatively idle, increase some audios, so that the expressive force of music more becomes perfect, and resource then can be closed these audios when nervous selectively, saving Limited resources carries out the most necessary calculating, or the like.
Being preferred embodiment of the present invention only in sum, is not to be used for limiting practical range of the present invention.Be that all equivalences of doing according to the content of the present patent application claim change and modification, all should be technology category of the present invention.

Claims (3)

1. music synthesis method of dynamically adjusting MIDI chord number, it is characterized in that: between MIDI demoder, Audio Controller, data buffer, made up a cover dynamic state feedback mechanism, by judging whether the amount of buffered data decision between data_in and the data_out carries out the dynamic adjustment of PolyNumber balanced algorithm, and its course of work is such:
The data that decoder decode obtains are put into data buffer according to certain packet size, simultaneously, the data_in data pointer adds 1, and Audio Controller will extract data after whenever playing one group of data again from data buffer, every extraction one bag, data_out adds 1; When the value of data_in-data_out during less than a certain threshold values, system will send a message informing MIDI demoder and start chord and count balanced algorithm, the chord number is dropped in the safe range, and continue decoding; Speed to be decoded is higher than broadcasting speed, be that the growth rate of data buffering is greater than reduction during speed, the value of data_in-data_out can be increasing, until greater than another higher threshold values, system can send another message again, notice MIDI demoder recovers the chord number, to carry out the decoding of full chord high tone quality.
2. the music synthesis method of dynamic adjustment MIDI chord number according to claim 1 is characterized in that: when carrying out the EQUILIBRIUM CALCULATION FOR PROCESS of chord number, keep according to the volume of current each chord is descending.
3. the music synthesis method of dynamic adjustment MIDI chord number according to claim 1 and 2 is characterized in that: set the threshold values that a plurality of chords are counted EQUILIBRIUM CALCULATION FOR PROCESS, carry out multi-level chord adjustment according to different buffer zone use amounts.
CN2005101122454A 2005-12-29 2005-12-29 Music synthesizing method which dynamically regulating MIDI chord number Active CN1991973B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2005101122454A CN1991973B (en) 2005-12-29 2005-12-29 Music synthesizing method which dynamically regulating MIDI chord number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2005101122454A CN1991973B (en) 2005-12-29 2005-12-29 Music synthesizing method which dynamically regulating MIDI chord number

Publications (2)

Publication Number Publication Date
CN1991973A CN1991973A (en) 2007-07-04
CN1991973B true CN1991973B (en) 2011-03-30

Family

ID=38214187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2005101122454A Active CN1991973B (en) 2005-12-29 2005-12-29 Music synthesizing method which dynamically regulating MIDI chord number

Country Status (1)

Country Link
CN (1) CN1991973B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105023594B (en) * 2015-08-04 2018-05-15 珠海市杰理科技股份有限公司 MIDI file decoding method and systems

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2765749B1 (en) * 1997-06-18 2003-09-26 Motorola Inc WEIGHTED DECISION SYNDROME-BASED DECODER FOR CONVOLUTION CODES
CN1564243A (en) * 2004-04-07 2005-01-12 杭州斯达康通讯有限公司 Method of synthetic chord ringing of cell phone
CN1707606A (en) * 2004-06-10 2005-12-14 联发科技股份有限公司 Method for dynamically determining maximum chord

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2765749B1 (en) * 1997-06-18 2003-09-26 Motorola Inc WEIGHTED DECISION SYNDROME-BASED DECODER FOR CONVOLUTION CODES
CN1564243A (en) * 2004-04-07 2005-01-12 杭州斯达康通讯有限公司 Method of synthetic chord ringing of cell phone
CN1707606A (en) * 2004-06-10 2005-12-14 联发科技股份有限公司 Method for dynamically determining maximum chord

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FR 2765749 A,全文.

Also Published As

Publication number Publication date
CN1991973A (en) 2007-07-04

Similar Documents

Publication Publication Date Title
US9135951B2 (en) System and method for dynamic audio buffer management
CN101662676B (en) Processing method for streaming media buffer
US6862298B1 (en) Adaptive jitter buffer for internet telephony
KR100964437B1 (en) Adaptive de-jitter buffer for voice over ip
CN100334571C (en) Network media playout
JP2007065636A (en) Method and apparatus for comfort noise generation in speech communication systems
CA2773279A1 (en) Method and apparatus for dynamically adjusting volume
EP1849158A2 (en) Method for discontinuous transmission and accurate reproduction of background noise information
CN107205160A (en) A kind of player method and device of the video issued for server
JP5160758B2 (en) Mobile device
US10397664B2 (en) Method for operating a mobile device
CN104835520A (en) Mobile equipment recording method and device
TWI480861B (en) Method, apparatus, and system for controlling time-scaling of audio signal
CN1941160B (en) Device and method for automatically selecting audio-frequency play mode
US8498667B2 (en) System and method for mixing audio with ringtone data
CN105847857A (en) Method and device for processing audios when video is played in double speed
ATE521962T1 (en) PREPROCESSING OF DIGITAL AUDIO DATA FOR MOBILE AUDIO CODECS
CN1991973B (en) Music synthesizing method which dynamically regulating MIDI chord number
TW200738310A (en) Communication game system, communication game control method, and information recording medium
CN103841456A (en) Webcast data buffering method
US20070201656A1 (en) Time-scaling an audio signal
US20060074681A1 (en) Method and apparatus for enhancing voice intelligibility in voice-over-IP network applications with late arriving packets
WO2017101327A1 (en) Method and device for collective playback of high-fidelity sound by several players
CN101702711B (en) Method and terminal for playing data
JP4959935B2 (en) Decoding device

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
TR01 Transfer of patent right

Effective date of registration: 20180402

Address after: The 300456 Tianjin FTA test area (Dongjiang Bonded Port) No. 6865 North Road, 1-1-1802-7 financial and trade center of Asia

Patentee after: Xinji Lease (Tianjin) Co.,Ltd.

Address before: Pudong Songtao road 201203 Shanghai City No. 696 layer 3-4

Patentee before: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

TR01 Transfer of patent right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20070704

Assignee: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Assignor: Xinji Lease (Tianjin) Co.,Ltd.

Contract record no.: 2018990000196

Denomination of invention: Music synthesizing method which dynamically regulating MIDI chord number

Granted publication date: 20110330

License type: Exclusive License

Record date: 20180801

EE01 Entry into force of recordation of patent licensing contract
TR01 Transfer of patent right

Effective date of registration: 20221021

Address after: 201203 Shanghai city Zuchongzhi road Pudong New Area Zhangjiang hi tech park, Spreadtrum Center Building 1, Lane 2288

Patentee after: SPREADTRUM COMMUNICATIONS (SHANGHAI) Co.,Ltd.

Address before: 300456 1-1-1802-7, north area of financial and Trade Center, No. 6865, Asia Road, Tianjin pilot free trade zone (Dongjiang Bonded Port Area)

Patentee before: Xinji Lease (Tianjin) Co.,Ltd.

TR01 Transfer of patent right