CN1076801A - Audio correction and audio calibration device - Google Patents

Audio correction and audio calibration device Download PDF

Info

Publication number
CN1076801A
CN1076801A CN 93110475 CN93110475A CN1076801A CN 1076801 A CN1076801 A CN 1076801A CN 93110475 CN93110475 CN 93110475 CN 93110475 A CN93110475 A CN 93110475A CN 1076801 A CN1076801 A CN 1076801A
Authority
CN
China
Prior art keywords
frequency
data
cpu
time
memory
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.)
Granted
Application number
CN 93110475
Other languages
Chinese (zh)
Other versions
CN1025521C (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.)
XIANGTAN NEW PRODUCT DEVELOPMENT INST
Original Assignee
XIANGTAN NEW PRODUCT DEVELOPMENT INST
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 XIANGTAN NEW PRODUCT DEVELOPMENT INST filed Critical XIANGTAN NEW PRODUCT DEVELOPMENT INST
Priority to CN 93110475 priority Critical patent/CN1025521C/en
Publication of CN1076801A publication Critical patent/CN1076801A/en
Application granted granted Critical
Publication of CN1025521C publication Critical patent/CN1025521C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The invention belongs to the electronic musical instrument technical field, is a kind of acoustic control frequency correction that is used for sound-controlled automatic accompaniment instrument.It is that the frequency employing CPU technology of song is done from normal moveout correction it, the scale of choice criteria, and to eliminate the cross-talk phenomenon, the scale frequency data after the correction input to sounding circuit and produce musical sound, thereby accompany to singing automatically.Since the present invention adopt the CPU technology solved sound-controlled automatic accompaniment instrument in the past the phenomenon of unsolved cross-talk and cacoepy, make its performance index obtain increasing substantially.The present invention is applicable to the acoustic control accompaniment device.

Description

Audio correction and audio calibration device
The invention belongs to the electronic musical instrument technical field, make the audio correction and the audio calibration device of control signal especially for the song frequency of acoustic control accompaniment device.
Sound-controlled automatic accompaniment instrument is a kind of song according to the people, does not need the musical instrument teacher to play and the electronic musical instrument of automatic accompaniment, and its appearance brings a lot of convenience for people's entertainment life.But its scale recognition resolution of sound-controlled automatic accompaniment instrument that has worked out at present is low, scale is few, range narrow range, circuit complexity, to components and parts precision prescribed height, debugging difficulty is big, is unfavorable for producing in enormous quantities.Most critical be that existing design proposal can't solve the cross-talk phenomenon, and the cross-talk phenomenon is not allow in the musical instrument accompaniment to occur, because its appearance not only can not make people enjoy the impression of singing the U.S. that brings, makes people produce unhappiness on the contrary.
Cross-talk phenomenon:, cause the fundamental frequency F of audio frequency owing to the inaccuracy and the instability (instability that comprises circuit) of chanteur's pronunciation.For non-scale frequency or in a certain scope, shake, because the jitter phenomenon of non-scale frequency and frequency, make sound-controlled automatic accompaniment instrument in the past correctly to follow the tracks of, and the cross-talk phenomenon appears, promptly send certain adjacent two or more scale frequency back and forth, what the such scale frequency of loudspeaker acceptance was sent is exactly cross-talk.
For example: 123HZ sends out the B sound, and 131HZ sends out the C sound, and 139HZ sends out #C sound (these three frequencies are the scale frequency), these three sounds are adjacent.F。For fundamental frequency (sampled audio signal obtains), if F.Drop on 123 and 131 centre (being on the separatrix) or F.At F.Shake in the ± △ F scope, because of sound-controlled automatic accompaniment instrument in the past adopts man-to-man tracking way, the general back and forth occur back and forth B sound and C sound or B, C, #The C sound.Because of sample frequency higher (this is need to follow the tracks of fast), this certain two or more sound that back and forth occur back and forth fast just form cross-talk in addition.It is quite uncomfortable that people sound.
Should illustrate: this cross-talk phenomenon is not exist in the piano type electronic musical instrument.
Audio correction and audio calibration device when the object of the present invention is to provide in a kind of acoustic control accompaniment device the song frequency signal of control sounding circuit nonstandard sound signal phenomenon to occur.
The present invention finishes with following mode.Audio correction is to adopt the following step: the standard pronunciation order frequency data of twelve-tone equal temperament and will comprise that each standard pronunciation order frequency data frequency sector data deposits in the memory, part overlaps between each adjacent frequency zone data;
The central processor CPU control timer carries out sample count with timer timing controlled counter to the audio pulse of importing;
After having sampled for the first time, CPU reads the sample frequency data from counter and compares with the frequency zone data that read in order from above-mentioned memory, determine the frequency zone of sample frequency data correspondence, and these frequency zone data are deposited with in the CPU, the standard pronunciation order frequency data in these frequency zone data are read send delivery outlet simultaneously;
After having sampled for the second time, the sample frequency data second time that CPU reads counter compare with frequency zone data last time that are deposited with in the CPU, if these sample frequency data belong to the frequency zone that is deposited among the CPU, then CPU send delivery outlet the standard pronunciation order frequency data in these frequency zone data, the comparison of sampling for the third time again, otherwise the frequency zone data that CPU just reads in the above-mentioned memory in order compare with sample frequency data for the second time, determine the frequency zone of sample frequency data correspondence for the second time, and these frequency zone data are deposited with make the fiducial value of sample frequency data for the third time in the CPU, the standard pronunciation order frequency data in this frequency zone are read send delivery outlet simultaneously;
For the third time, the 4th time, go down and all repeat the process of for the second time sampling, comparing, deposit, export always, carry out audio calibration.
CPU read frequency zone data in the memory be in proper order by frequency distribution ascending or descending or get in the middle of a certain sector data relatively after, read and read toward big direction respectively again toward little direction.
Each the frequency zone data that leaves in the memory are by lower frequency limit data and upper limiting frequency data, and standard pronunciation order frequency data are formed.
The audio calibration device is to connect memory I by central microprocessor CPU through address bus 1With code translator I 2, code translator I 2Connect timer CTC, counter I respectively 3And output interface circuit I 4, central microprocessor CPU connects memory I respectively through data bus 4, timer CTC, counter I 3And output interface circuit I 4, control timer CTC is held in writing of CPU, is connected to counter I with timer CTC timing controlled 3Three-state with the door I 5Break-make, allow counter I 3Audio pulse to input carries out sample count, and CPU reads termination memory I 1Sum counter I 3, read the frequency data sum counter I in the memory 3Sampled data compare, determine memory I 1Interior standard pronunciation order frequency data export interface circuit I to 4, the look-at-me end input signal of CPU is exported through not gate I by timer CTC 6Connect confession.
Characteristics of the present invention are exactly the song frequency signal control sounding circuit to the acoustic control accompaniment device, audio calibration in the time of may causing the sounding circuit pronunciation cross-talk phenomenon to occur when chanteur's cacoepy, having overcome present acoustic control accompaniment device has the phenomenon of cross-talk, improves the accompaniment effect of acoustic control accompaniment device.In addition the present invention adopt the timer control counter to audio pulse sample, its sampling time is accurately errorless, stability is high, and need not debug.The present invention adopts large scale integrated circuit, has reduced discrete component.Can enhance productivity, be convenient to produce in enormous quantities.After the present invention adopted CPU, its range scope can reach 20HZ-20KHZ, and this scope can also further enlarge in theory.
Fig. 1 is circuit theory diagrams of the present invention.
Fig. 2 is the flow chart of CPU of the present invention.
The invention will be further described below in conjunction with accompanying drawing: Fig. 1 is the circuit theory diagrams of audio calibration device of the present invention, and the audio calibration device is by central processor CPU, memory I 1, code translator I 2Timer CTC, counter I 3, output interface circuit I 4, ternary and an I 5, not gate I 6Constitute.The acoustic control accompaniment device obtains audio pulse F to chanteur's singing voice signals after over-sampling, sorting.This signal inputs to ternary and a door I 5, central processor CPU reset or start shooting after time constant is sent to timer CTC, simultaneously to counter I 3Carry out zero clearing, start timer CTC then and begin regularly.Timer CTC output low level makes ternary and a door conducting, audio pulse F at this moment.Input to counter I 3Count.Timer CTC setting-up time arrives, and then its output high level makes ternary and the door shutoff.Stop counter I 3To audio pulse F.Counting, simultaneously timer CTC is through not gate I 6Send (look-at-me) time to signal to CPU, CPU reads count value from counter after responding this signal.So far under the control of CPU, finish once sampling.Memory I 1Adopt read-only memory EPROM, certain also memory of available other form.In memory, deposit standard pronunciation order frequency data, and will comprise that each standard pronunciation order frequency data frequency sector data also is stored at memory I by 12 average rates 1In, and partly heavy between each adjacent frequency zone data.CPU is through code translator I 2Read-out counter I 3In sample count value and memory I 1(EPROM) standard pronunciation order frequency data in the data field and frequency zone data compare in order, determine that the sample count value drops in certain frequency zone data field, and these frequency zone data are deposited with in the CPU in the register, send output circuit I with the standard pronunciation order frequency data in this section simultaneously 4(Gao Siwei send mouth 1 to hang down four and send mouth 2).The timer of CPU startup simultaneously CTC begins to sample next time, and outputting standard scale frequency data are through interface circuit I 4To the sounding circuit input, this sounding circuit sends corresponding note signal.This note signal promotes loudspeaker and sends music.After finishing above-mentioned sampling and relatively reading standard scale frequency, CPU to the processing of the data of sampling for the second time be will read earlier the second time sampled data frequency zone data in the register compare in the CPU with selected being kept at last time (for the first time), determine if the frequency zone data that sampled data exceeded last time and deposited the second time.Then read memory I in order 1In other frequency data compare, determining the frequency zone data of sampled data correspondence for the second time, and these frequency zone data are deposited with in the register, the standard pronunciation order frequency of reading in this section send delivery outlet output; If the sample frequency data still drop in the frequency zone data of depositing for the first time for the second time, then the standard pronunciation order frequency send delivery outlet output for the first time.Sampling for the third time more still repeats secondary process, goes down so always.Just finish frequency correction, only sent standard pronunciation order frequency signal.
Audio calibration device of the present invention is to be connected CPU and memory I with data bus with address bus 1Code translator I 2Timer CTC, counter I 3Output interface circuit I 4Timer CTC output termination not gate I 6Control CPU INT end (interrupt request).Timer CTC control is connected to counter I 3The three-state of input end and door I 5, as shown in Figure 1.
Audio correction of the present invention is: at first deposit in memory EPROM according to the determined standard pronunciation order frequency of twelve-tone equal temperament table data, and the upper and lower bound frequency data that each standard pronunciation order frequency is included in a frequency zone are deposited in the memory.For example: the frequency zone data of sending out the B sound are 119HZ-129HZ, and the standard pronunciation order frequency is 123HZ, and these three frequency data constitute upper limit 129HZ, a lower limit 119HZ, and wherein 123HZ is among the bound.Equally, the frequency zone of sending out the C sound is that the standard pronunciation order frequency among lower limit 125HZ, upper limit 137HZ, the bound is 131HZ, sends out #Lower limit 133HZ, the upper limit 145HZ of C sound, the standard pronunciation order frequency among the bound is 139HZ or the like.Twelve-tone equal temperament standard pronunciation order frequency data are drawn among some said frequencies sector data.In general exist each the frequency zone data in the memory to have only three to get final product, can reduce memory capacity like this, the bound frequency data of each frequency zone are artificial the settings, are that per two side frequency sector data have partly overlapping but a principle is arranged.As the upper limit 137HZ of above-mentioned C sound greater than sending out #The lower limit 133HZ of C sound, and the lower limit 125HZ that sends out the C sound so just deposits the data and the standard pronunciation order frequency data that overlap by frequency size order frequency zone data interlace less than upper limit 129HZ that sends out the B sound or the like in memory.
Start central processor CPU, CTC carries out timing sampling with the CPU control timer, and the data of reading in sampled data and the above-mentioned memory with CPU compare, and samples, compares, deposits, exports for the first time, for the second time sample, compare, deposit, export, or the like.This method as mentioned above.Below illustrate with frequency number, be 128HZ as the song frequency of sampling for the first time, this is a nonstandard sound, after CPU read, CPU was in order from memory I 1Middle search rate sector data compares with 128HZ one by one, find out the frequency zone data of 125HZ and 137HZ, access the standard pronunciation order frequency 131HZ(C sound in this section) export sounding circuit to, simultaneously 125HZ and 137HZ are deposited with in the CPU in the register.If for the second time the sample frequency data are 137HZ(because of chanteur's cacoepy really or the instability that produces of instability or circuit, make frequency shake, be offset), at this moment 125HZ that deposits in 137HZ in the CPU read-out counter and the CPU and 137HZ are relatively, comparative result 137HZ still belongs to this section, and CPU still accesses 131HZ(and sends out the C sound) send delivery outlet.So just chanteur's cacoepy frequency jitter, shift phenomenon true or unstable or that cause by the instability of circuit generation have been eliminated.Have only when sample frequency data during greater than 137HZ or less than 125HZ, CPU just reads the data and sample frequency data comparison for the second time in the memory in order, if the sample frequency data are less than the then past little direction search of 125HZ for the second time, if greater than the then past big direction search of 137HZ, those bin frequencies data that find sample frequency data for the second time to belong to then these section bound frequency data are deposited with in the CPU in order to next time than than usefulness, and access the output of corresponding standard scale frequency data.The flow chart of CPU as shown in Figure 2.CPU to for the second time with the data processing method of post-sampling and the second time sampled data disposal route identical.The order that above-mentioned CPU reads the frequency zone data in the memory can be ascending or descending or compare according to frequency zone data of reading certain setting earlier by frequency distribution.If do not belong to this section just by up searching for, less than then down search of lower limit greater than the upper limit.All allow chanteur's pronunciation the error of certain limit to be arranged for each standard pronunciation order frequency the present invention as can be known from above-mentioned also automatically with error correction outputting standard scale frequency.Being 131HZ(standard scale when sending out the C sound as the chanteur) frequency error range that allows is 125-137HZ.That is to say that the inaccurate degree when allowing to send out the C sound is 137-125=12HZ.What illustrate a bit is: the inaccurate degree of permission has different values when different scale, and the high more value of being somebody's turn to do of scale frequency is just big more, and low more this value of scale frequency is just more little.The size of frequency overlap part is relevant with the scale frequency, the more little elimination cross-talk ability of ability strong more overlapping part value of the big more elimination cross-talk of this value is weak more.
Being noted that sample frequency is 32HZ in principle, is to use like this, and the preceding semiperiod samples in one-period, and the later half cycle is carried out data processing.Because the processing speed of CPU makes that soon sample frequency is non-standard 32HZ, the preceding semiperiod (sampling period) is the standard 32HZ semiperiod, and later half cycle length, length depended on the speed of CPU.Therefore sound signal needs just can sample after 64 frequencys multiplication, otherwise can not get correct frequency numerical value.The error of the too high sampling of sample frequency is big more, the too low requirement that does not then catch up with speed.So it is that sample frequency is selected according to two indexs of sum of errors speed that the present invention has selected 32HZ.

Claims (4)

1, a kind of audio correction that is used for the acoustic control accompaniment device is characterized in that adopting the following step:
The standard pronunciation order frequency data of twelve-tone equal temperament and will comprise that each standard pronunciation order frequency data frequency sector data deposits in the memory, partly overlap between each adjacent frequency zone data;
The central processor CPU control timer carries out sample count with timer timing controlled counter to the audio pulse of importing;
After having sampled for the first time, CPU reads the sample frequency data from counter and compares with the frequency zone data that read in order from above-mentioned memory, determine the frequency zone of sample frequency data correspondence, and these frequency zone data are deposited with in the CPU, the standard pronunciation order frequency data in these frequency zone data are read send delivery outlet simultaneously;
After having sampled for the second time, the sample frequency data second time that CPU reads counter compare with frequency zone data last time that are deposited with in the CPU, if these sample frequency data belong to the frequency zone that is deposited among the CPU, then CPU send the delivery outlet comparison of sampling for the third time again the standard pronunciation order frequency data in these frequency zone data, otherwise the frequency zone data that CPU just reads in the above-mentioned memory in order compare with sample frequency data for the second time, determine the frequency zone of sample frequency data correspondence for the second time, and these frequency zone data are deposited with in the CPU, make the fiducial value of sample frequency data for the third time, the standard pronunciation order frequency data in this frequency zone are read send delivery outlet simultaneously;
For the third time, the process that all repeats for the second time to sample, compare, deposit, export of going down for the 4th time is carried out audio calibration always.
2, according to the described bearing calibration of claim 1, it is characterized in that CPU read frequency zone data in the memory be in proper order by frequency distribution ascending or descending or get in the middle of a certain sector data relatively after, read and read toward big direction respectively again toward little direction.
3, according to the described bearing calibration of claim 1, each the frequency zone data that it is characterized in that leaving in the memory are made up of lower frequency limit data and upper limiting frequency data and standard pronunciation order frequency data.
4, a kind of audio calibration device that is used for the acoustic control accompaniment device is characterized in that it connects memory I by central microprocessor CPU through address bus 1With code translator I 2Code translator I 2Connect timer CTC, counter I respectively 3And output interface circuit I 4, central microprocessor CPU connects memory I respectively through data bus 4, timer CTC, counter I 3And output interface circuit I 4Control timer CTC is held in writing of CPU, is connected to counter I with timer CTC timing controlled 3Three-state with the door I 5Switching, allow counter I 3Audio pulse to input carries out sample count, and CPU reads termination memory I 1Sum counter I 3Read the frequency data sum counter I in the memory 3Sampled data compare, determine memory I 1Interior standard pronunciation order frequency data export interface circuit I to 4, the look-at-me end of CPU is exported through not gate I by timer CTC 6Connect confession.
CN 93110475 1993-02-23 1993-02-23 Audio-frequency correcting method and corrector Expired - Fee Related CN1025521C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 93110475 CN1025521C (en) 1993-02-23 1993-02-23 Audio-frequency correcting method and corrector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 93110475 CN1025521C (en) 1993-02-23 1993-02-23 Audio-frequency correcting method and corrector

Publications (2)

Publication Number Publication Date
CN1076801A true CN1076801A (en) 1993-09-29
CN1025521C CN1025521C (en) 1994-07-20

Family

ID=4988338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 93110475 Expired - Fee Related CN1025521C (en) 1993-02-23 1993-02-23 Audio-frequency correcting method and corrector

Country Status (1)

Country Link
CN (1) CN1025521C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104854635A (en) * 2012-11-20 2015-08-19 庞巴迪运输有限公司 Safe audio playback in a human-machine interface
CN113744760A (en) * 2020-05-28 2021-12-03 小叶子(北京)科技有限公司 Pitch recognition method and device, electronic equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104854635A (en) * 2012-11-20 2015-08-19 庞巴迪运输有限公司 Safe audio playback in a human-machine interface
CN104854635B (en) * 2012-11-20 2017-04-05 庞巴迪运输有限公司 The audio frequency of man-machine interface safety is played
US9693160B2 (en) 2012-11-20 2017-06-27 Bombardier Transportation Gmbh Safe audio playback in a human-machine interface
CN113744760A (en) * 2020-05-28 2021-12-03 小叶子(北京)科技有限公司 Pitch recognition method and device, electronic equipment and storage medium
CN113744760B (en) * 2020-05-28 2024-04-30 小叶子(北京)科技有限公司 Pitch identification method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN1025521C (en) 1994-07-20

Similar Documents

Publication Publication Date Title
McNab et al. Signal processing for melody transcription
US3999456A (en) Voice keying system for a voice controlled musical instrument
CN1144369A (en) Autokeying for musical accompaniment playing apparatus
CN101093661B (en) Pitch tracking and playing method and system
CN101051456B (en) Audio frequency phase detecting and automatic correcting device
CN109979488A (en) Voice based on stress analysis turns music notation system
CN102456342A (en) Audio processing apparatus and method, and program
CN1025521C (en) Audio-frequency correcting method and corrector
CN2159606Y (en) Audio frequency corrector
CN1034196C (en) Acoustically controlled computerized accompaniment machine
CN2149002Y (en) Sound-controlling computer accompanying machine
GB2168577A (en) System for converting a voice signal to a pitch signal
CN114664277A (en) Audio evaluation method and device
CN112505410A (en) PWM control sequential sampling period transient frequency measuring circuit
Riley et al. CREPE Notes: A new method for segmenting pitch contours into discrete notes
JPH0331273B2 (en)
CN1212577C (en) Method of making karaoke possess sing leading function
JP3627321B2 (en) Performance control device
CN201570248U (en) Electronic keyboard system
JPS6212518B2 (en)
GB2370141A (en) Evaluating clock synchronism
CN208225520U (en) A kind of human-computer interaction programmable media platform
CN1027994C (en) True sounding circuit control method and control device
CN2248361Y (en) Apparatus for setting tone and exercising voice
JP3199376B2 (en) Guitar control system

Legal Events

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