JPS60158492A - Running mean computing unit - Google Patents

Running mean computing unit

Info

Publication number
JPS60158492A
JPS60158492A JP59013075A JP1307584A JPS60158492A JP S60158492 A JPS60158492 A JP S60158492A JP 59013075 A JP59013075 A JP 59013075A JP 1307584 A JP1307584 A JP 1307584A JP S60158492 A JPS60158492 A JP S60158492A
Authority
JP
Japan
Prior art keywords
data
output
adder
input
moving average
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
JP59013075A
Other languages
Japanese (ja)
Other versions
JPH0652480B2 (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP59013075A priority Critical patent/JPH0652480B2/en
Priority to US06/583,091 priority patent/US4633748A/en
Priority to GB08405013A priority patent/GB2138988B/en
Priority to DE19843407078 priority patent/DE3407078A1/en
Publication of JPS60158492A publication Critical patent/JPS60158492A/en
Priority to US07/453,040 priority patent/USRE33739E/en
Publication of JPH0652480B2 publication Critical patent/JPH0652480B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は音声入力に対応して楽音を発生する電子楽器に
係り、特に音声入力のデジタル処理における移動平均演
算装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to an electronic musical instrument that generates musical tones in response to audio input, and more particularly to a moving average calculation device for digital processing of audio input.

〔従来技術〕[Prior art]

電子技術の進歩により、電子的に楽音波形を発生し、ス
ピーカにより楽音を発生することが可能となった。この
前述した装置は一般的に電子楽器と呼ばれている。この
電子楽器は鍵によって発生ずべき楽音を選択する方法が
一般的であり、さら、邦7、−フイ7.チ等、よ7、ピ
ア7,7)音や他。楽器の音を指定して発生ずることが
できる。
Advances in electronic technology have made it possible to generate musical sound waveforms electronically and to generate musical tones through speakers. This aforementioned device is generally called an electronic musical instrument. This electronic musical instrument generally uses a key to select the musical tone that should be generated. Chi etc., Yo 7, Pier 7, 7) Sound and others. You can specify the sound of an instrument and generate it.

〔従来技術の問題点〕[Problems with conventional technology]

前述したようにこの電子楽器は鍵によって楽音を選択す
るので、演奏するためにはピアノの技術やその鍵の操作
の練習を必要としていた。換言するならば簡単に例えば
人の歌に対応して伴奏するようなことはできず、電子楽
器を操作する技術を有する者にのみそのようなことが可
能であった。
As mentioned above, this electronic musical instrument uses keys to select musical tones, so in order to play it, it is necessary to practice piano skills and how to operate the keys. In other words, it is not possible to simply provide accompaniment to, for example, a person's song, and only those who have the skills to operate an electronic musical instrument can do so.

即ち従来の鍵によって操作する電子楽器は簡単に誰にで
も演奏することができないという問題を有していた。
That is, conventional electronic musical instruments operated by keys have a problem in that they cannot be easily played by anyone.

〔発明の目的〕[Purpose of the invention]

本発明は前記問題点を解決するものであり、その目的と
するところは電子楽器の操作技術を有さなくても簡単に
操作して演奏や伴奏することができる電子楽器を実現す
るための移動平均演算装置を提供することにある。
The present invention is intended to solve the above-mentioned problems, and its purpose is to provide a portable electronic musical instrument that can be easily operated and played or accompanied by an electronic musical instrument without having the operating skills for electronic musical instruments. The object of the present invention is to provide an average calculation device.

〔発明の要点〕[Key points of the invention]

本発明は入力データを記憶する記憶手段と、該記憶手段
のデータを選択して累算する累算手段と。
The present invention provides a storage means for storing input data, and an accumulation means for selecting and accumulating data in the storage means.

該累算手段の結果を平均する平均手段とを有し。and averaging means for averaging the results of the accumulating means.

前記記憶手段の出力と前記平均手段の出力とを選択して
累算し平均を行なうことを特徴とする。
It is characterized in that the output of the storage means and the output of the averaging means are selected, accumulated, and averaged.

〔発明の実施例〕[Embodiments of the invention]

第1図は本発明の実施例の回路構成図であり。 FIG. 1 is a circuit diagram of an embodiment of the present invention.

音声入力に対応して楽音を発生ずる電子楽器の構成を示
している。音声を電気信号に変換するマイクロホン1の
出力は前処理部2に加わる。前処理部2の出力はピンチ
抽出部3に接続される。ピッチ抽出部3の出力゛ばラッ
チ4を介してプロセッサ(CPU)5に加わる。プロセ
ッサ5の出力はピッチ抽出部3.記憶部6.エラー除去
部7.移動平均演算部8.フラグ作成部9に接続されて
いる。
This figure shows the configuration of an electronic musical instrument that generates musical tones in response to audio input. The output of the microphone 1, which converts audio into electrical signals, is applied to a preprocessing section 2. The output of the preprocessing section 2 is connected to the pinch extraction section 3. The output of the pitch extractor 3 is applied to the processor (CPU) 5 via the latch 4. The output of the processor 5 is sent to the pitch extractor 3. Storage section 6. Error removal section 7. Moving average calculation unit 8. It is connected to the flag creation section 9.

記憶部6の出力はエラー除去部7とピッチデータ制御部
10に、エラー除去部7の出力は移動平均演算部8とピ
ッチデータ制御部10にそれぞれ加わる。移動平均演算
部8の出力はピッチデータ制御部10とコードジェネレ
ータ11に接続される。
The output of the storage section 6 is applied to the error removal section 7 and the pitch data control section 10, and the output of the error removal section 7 is applied to the moving average calculation section 8 and the pitch data control section 10, respectively. The output of the moving average calculation section 8 is connected to a pitch data control section 10 and a code generator 11.

又ビ・7チデ一ク制御部10の出力もコードジェネレー
タ11に接続される。コードジェネレータ11の出力は
楽音発生部12に接続され、その楽音発生部12の出力
は電気信号を音に変換するスピーカ13に接続される。
Further, the output of the B/7 chip control section 10 is also connected to the code generator 11. The output of the code generator 11 is connected to a musical tone generator 12, and the output of the musical tone generator 12 is connected to a speaker 13 that converts an electrical signal into sound.

マイクロホン1で電気信号に変換された音声信号は前処
理部2に加わり、前処理がなされる。この前処理は第1
には例えばローパスフィルタ(LPF)等によって帯域
外の信号の除去を行なう。
The audio signal converted into an electrical signal by the microphone 1 is applied to a preprocessing section 2, where it is preprocessed. This pretreatment is the first
For example, signals outside the band are removed using a low pass filter (LPF) or the like.

この帯域外の除去は次段によってなされるピンチ抽出の
誤動作を防止するためになされるのである。
This out-of-band removal is done to prevent malfunctions in the pinch extraction performed by the next stage.

さらに前処理は第2にはオートマチックゲインコントロ
ール回路によって帯域外が除去された入力音声信号を特
定の振幅値になるように増幅する。
Furthermore, the second step of the preprocessing is to amplify the input audio signal from which out-of-band components have been removed by an automatic gain control circuit to a specific amplitude value.

第3には前述の特定の振幅値となった入力音声信号をア
ナログ/デジタル変換回路によってデジタルデータに変
換する。前述の特定の振幅値になるような増幅は、この
アナログ/デジタル変換回路の出力ビット数を有効にす
るためになされるものである。
Third, the input audio signal having the above-mentioned specific amplitude value is converted into digital data by an analog/digital conversion circuit. The aforementioned amplification to achieve the specific amplitude value is performed in order to make the number of output bits of this analog/digital conversion circuit effective.

前処理部2で処理された音声信号部らデジタル音声信号
はピンチ抽出部3に加わる。ピンチ抽出部3はプロセッ
サ(CPU)5の制御によって人力音声信号の基本周波
数のピッチを抽出する。ピンチ抽出部3は例えば特願昭
58−31284号、特願昭58−31285号、特願
昭58−31286号の各公報に詳細が記載されている
が音声データ量子化回路。
The digital audio signal from the audio signal portion processed by the preprocessing unit 2 is applied to the pinch extraction unit 3. The pinch extractor 3 extracts the pitch of the fundamental frequency of the human voice signal under the control of the processor (CPU) 5. The pinch extractor 3 is an audio data quantization circuit whose details are described in, for example, Japanese Patent Application No. 58-31284, Japanese Patent Application No. 58-31285, and Japanese Patent Application No. 58-31286.

音階抽出回路、3値相関処理回路を有し、これらの回路
によってピンチ抽出を行なう。データ量子化回路は音声
デジタルデータの最大値と最小値を特定時間に亘って順
次求め、その最大値、最小値を用いて例えば3値化する
ためのそれぞれのスレッシホールドレベルを決定する。
It has a scale extraction circuit and a ternary correlation processing circuit, and performs pinch extraction using these circuits. The data quantization circuit sequentially obtains the maximum and minimum values of the audio digital data over a specific period of time, and uses the maximum and minimum values to determine respective threshold levels for, for example, ternarization.

そしてそのスレッシホールトで入力信号を3値化する。Then, the input signal is ternarized at that threshold.

音声抽出回路は前述の音声デジタルデータを用いて3値
化した音声3値化データを抽出する音階に対応させて遅
延させ、その遅延データと入力データとを乗算する回路
である。この回路によって時間に関する相関が取られる
。このデータは単に遅延データと入力データとの単なる
時間に関する相関を表わすものであり、このデータを更
に処理してピンチの抽出を行なう。この抽出を行なうの
が前述した3値相関処理回路である。3値相関処理回路
はピッチ抽出を行なうためのウィンド処理等を行なう回
路である。即ち、抽出する音階に対応して前述の音階抽
出回路より複数のデータが出力されるので、この3値相
関処理回路でその複数のデータをウィンド処理、換言す
るならば音階に関係して重み伺けを行ない、さらにそれ
を特定時間(1フレーム)累算する。そして、その累算
値(遅延時間に対応した累算値)の中から最大値をめ、
その最大値に対応した遅延時間よりピンチをめ出力する
。この出力は入力した音声(音調波を含む)の基本波の
ピッチに関係したデータである。
The audio extraction circuit is a circuit that delays audio ternary data obtained by ternarizing audio data using the aforementioned audio digital data in correspondence with the scale to be extracted, and multiplies the delayed data by input data. This circuit provides time correlation. This data simply represents a mere temporal correlation between the delayed data and the input data, and is further processed to perform pinch extraction. The above-mentioned ternary correlation processing circuit performs this extraction. The ternary correlation processing circuit is a circuit that performs window processing and the like for pitch extraction. In other words, since multiple pieces of data are output from the aforementioned scale extraction circuit corresponding to the scale to be extracted, this ternary correlation processing circuit performs window processing on the multiple data, in other words, it performs weight estimation in relation to the scale. This is then accumulated over a specific period of time (one frame). Then, find the maximum value from the accumulated value (accumulated value corresponding to the delay time),
The pinch is determined by the delay time corresponding to the maximum value and output. This output is data related to the pitch of the fundamental wave of the input voice (including tonic waves).

前述のピンチ抽出部3より出力されたピッチデータはラ
ソヂ4.プロセノザ5を介して記憶部6に格納される。
The pitch data output from the aforementioned pinch extraction section 3 is processed by Lasoji 4. The data is stored in the storage unit 6 via the processor 5.

エラー除去部7は記憶部6に格納されたデータを用いて
特定なピンチデータの変化特に1フレームにおいてのみ
例えば1オクタ一ブ以上の変化を検出し、その変化が検
出された時はそのデータを変化する前のデータにもとす
ための回路である。尚、急激な音階の変化もありうるが
The error removal unit 7 uses the data stored in the storage unit 6 to detect a change in specific pinch data, especially a change of one octave or more in only one frame, and when the change is detected, the data is This is a circuit to restore the data before it changes. However, there may be sudden changes in the scale.

この時には1フレーム後にデータが変化するようになさ
れている。エラー除去部7においてエラー除去されたデ
ータは移動平均演算部8において平均がなされる。この
平均は例えば現在までの平均と6フレームにわたるデー
タとを重ij伺けを行なった加算平均である。さらに詳
しく説明すると。
At this time, the data changes after one frame. The data from which errors have been removed in the error removal section 7 is averaged in a moving average calculation section 8. This average is, for example, an additive average obtained by multiplying the average up to now and data over six frames. Let me explain in more detail.

の演算部8では、順次入力するフレーム単位でのピッチ
データをシフトレジスタに格納してフレーム単位でシフ
トし、その6段のシフトデータと平均値とをセレクタに
よって1フレ一ム期間内で選択して累算し、下位ビット
を例えば切り捨てることによって平均を行なっている。
In the arithmetic unit 8, pitch data in frame units that are input sequentially is stored in a shift register and shifted in frame units, and the six stages of shift data and the average value are selected by a selector within one frame period. The average is performed by accumulating the values and truncating the lower bits, for example.

平均化されたデータは移動平均演算部8より出力され、
ピッチデータ制御部1oに加わり楽音を発生するための
処理がなされる。換言するならば前述したエラー除去部
7は外部雑音等によってピンチ抽出の誤動作を検出し、
除去する回路であり。
The averaged data is output from the moving average calculation unit 8,
It is added to the pitch data control section 1o and performs processing for generating musical tones. In other words, the error removal unit 7 described above detects a malfunction in pinch extraction due to external noise, etc.
This is the circuit to remove.

ピッチ抽出の誤動作の結果によるステップ的な大きなデ
ータの変化を除去するものもある。そして移動平均演算
部は入力音声等の微妙なピッチ変化によるピッチの誤抽
出のデータの微妙変化をヒステリシス効果を有し平均を
行なってデータを安定化させるための回路である。
Some eliminate large step changes in data as a result of pitch extraction malfunctions. The moving average calculating section is a circuit that has a hysteresis effect and averages subtle changes in data due to pitch errors caused by subtle pitch changes in input audio, etc., to stabilize the data.

人間の声は歌に限らず子音、母音を有している。The human voice is not limited to singing; it also has consonants and vowels.

母音の基本波のビソヂは多く含まれているが、子音にお
いては非常に少ないものがある。この為。
Vowels contain many fundamental waves, but consonants have very few. For this reason.

子音のみを発生している間(例えば”SA”を発生する
場合には“′S”を発生している間)は基本波のピンチ
は誤って抽出されることがある。これらの誤抽出による
楽音の誤動作をなくシ、入カした音声の音階になるよう
にするのがピッチデータ制御部である。そしてこの制御
部は音声パワーや音声入力検出等のデータを用いて、記
憶部6に格納されているデータやエラー除去部7の出方
データあるいは移動平均演算部8の出力データを選択し
て出力する。
While only consonants are being generated (for example, while "'S" is being generated when "SA" is being generated), the pinch of the fundamental wave may be erroneously extracted. The pitch data control section eliminates malfunctions of musical tones due to these erroneous extractions and makes them match the scale of the input voice. Then, this control section selects and outputs the data stored in the storage section 6, the output data of the error removal section 7, or the output data of the moving average calculation section 8, using data such as audio power and audio input detection. do.

コードジェネレータ11ば前述のピッチ制御部10の出
力を楽音発生部12において発生すべき楽音のコード即
ち楽音データに変換する回路である。
The code generator 11 is a circuit that converts the output of the pitch control section 10 described above into the code of the musical tone to be generated by the musical tone generating section 12, that is, musical tone data.

前述したピンチ抽出部3.記憶部6.エラー除去部7.
移動平均演算部8はプロセッサ5の制御によってなされ
る。またピッチデータ制御部1o。
Pinch extractor 3 mentioned above. Storage section 6. Error removal section 7.
The moving average calculation unit 8 is controlled by the processor 5. Also, a pitch data control section 1o.

コードジェネレータ11はフラグ作成部9を介してプロ
セッサ5によって制御される。換言するならば、プロセ
ッサ5によってフラグ作成部9にフラグ等がセットされ
、そのフラグによって前述のピッチデータ制御部10.
コードジェネレータ11が動作する。
The code generator 11 is controlled by the processor 5 via the flag generator 9. In other words, the processor 5 sets a flag in the flag creation section 9, and the flag causes the pitch data control section 10.
Code generator 11 operates.

ツー1−ジエネレーク11の出カ即ら変換データば楽音
発生部12に加わり、スピーカ13により出力されるべ
く楽音の指定を行なう。換言するならば、楽音発生部1
2ではコードジェネレータ11の変換データによって指
定される楽音電気信号(アナログ)を発生し、スピーカ
13にそれを加える。その結果、スピーカ13より入力
音声に対応した楽音が発生ずるのである。
The output of the 2-1 generator 11, that is, the converted data, is applied to the musical tone generator 12, and specifies the musical tone to be output from the speaker 13. In other words, the musical tone generator 1
At step 2, a musical tone electric signal (analog) specified by the conversion data of the code generator 11 is generated and applied to the speaker 13. As a result, the speaker 13 generates a musical tone corresponding to the input voice.

第1図に示した回路は音声入力に対応して楽音を発生す
る電子楽器の構成を表したものであり。
The circuit shown in FIG. 1 represents the configuration of an electronic musical instrument that generates musical tones in response to audio input.

以下にさらに本発明の移動平均演算装置を詳述する。The moving average calculation device of the present invention will be further explained in detail below.

第2図は第1図の移動平均演算部8を更に詳細に表した
回路図である。
FIG. 2 is a circuit diagram showing the moving average calculating section 8 of FIG. 1 in more detail.

エラー除去部7の出力はラッチ14を介してシフトレジ
スタ15に加わる。シフトレジスタ15とランチ16の
出力はセレクタ17に加わる。またクロックφ0が加わ
る8進カウンタ18の出力もセレクタ17に加わる。ア
ダー19の第1の入力には前述のセレクタ17の出力が
、第2の入力にはラッチ20を介してアダー19の出力
がそれぞれ加わる。さらに、アダー19の出力はランチ
20を介してラッチ21に加わる。ラッチ21の上位8
ビツト出力はアダーの第1の入力に加わり。
The output of the error removing section 7 is applied to the shift register 15 via the latch 14. The outputs of the shift register 15 and the lunch 16 are applied to the selector 17. Further, the output of the octal counter 18 to which the clock φ0 is applied is also applied to the selector 17. The output of the selector 17 described above is applied to the first input of the adder 19, and the output of the adder 19 is applied to the second input via the latch 20. Additionally, the output of adder 19 is applied to latch 21 via launch 20. Top 8 latch 21
The bit output is applied to the first input of the adder.

ラッチ21の9ビツト目の出力はアダー22のキャリー
人力に加わる。そしてアダーの出力はラッチ23を介し
てランチ16に加わるとともに次段のカウンタ即ちピッ
チデータ制御部10に出力される。
The output of the 9th bit of the latch 21 is added to the carry power of the adder 22. The output of the adder is applied to the launch 16 via the latch 23 and is also output to the next stage counter, that is, the pitch data control section 10.

エラー除去部7によってエラー除去されたビソチテーク
例えば8ビットのデータは1フレニム間のデータとして
ラッチ14に格納される。このラッチ14は、エラー除
去した結果をフレーム単位で処理する為に、フレームク
ロックφヂでデータを取り込む。
For example, 8-bit data from which errors have been removed by the error removing section 7 is stored in the latch 14 as data for one frame. This latch 14 takes in data at the frame clock φ in order to process the error-removed results in units of frames.

シフトレジスタ15は8ビツトのパラレルデータのシフ
トを行なうレジスタであり、フレームクロックφヂでシ
フトする。即ち、ランチに格納されたデータはフレーム
単位で順次シフトレジスタに格納され、シフトする。換
言するならばシフトレジスタ15は平均をめるために現
在のデータより前の6データを記憶する回路である。
The shift register 15 is a register for shifting 8-bit parallel data, and shifts in accordance with the frame clock φ. That is, the data stored in the launch is sequentially stored in a shift register in units of frames and shifted. In other words, the shift register 15 is a circuit that stores six data preceding the current data in order to calculate an average.

一方、ランチ16は2組のラッチ回路であり。On the other hand, the launch 16 is two sets of latch circuits.

このランチ16にはこの移動平均演算部8の出力と同じ
データが加わる。そして、2組のランチには同じデータ
が格納される。セレクタ17は前述のシフトレジスタ1
5内に格納されている6ハイト(1バイトには8ビツト
)のデータとランチ16に格納されている同し2バイ1
−を1フレーム内で順次選択し、出力する。尚、この選
択の指示は1フレ一ム間においては8クロツクを有する
クロックφ0によって歩進する8進カウンタ18のカウ
ンタ値によってなされる。
The same data as the output of the moving average calculating section 8 is added to the lunch 16. The same data is stored in the two lunches. The selector 17 is the shift register 1 mentioned above.
6-height (8 bits in 1 byte) data stored in 5 and the same 2-byte data stored in lunch 16
- are sequentially selected within one frame and output. This selection instruction is made by the counter value of the octal counter 18, which is incremented by the clock φ0 having eight clocks during one frame.

アダー19の出力はラッチ20を介して第2の入力に加
わっているので、この回路の出力部°ちラッチ20の出
力はアダー19の第1の入力に加わるデータを順次φ0
で累算する累算カウンタを構成する。尚、このランチ2
0は1フレームの終了で発生するりセントクロックφ、
でリセットされるのでフレーム単位での累算となる。
Since the output of the adder 19 is applied to the second input via the latch 20, the output of this circuit, that is, the output of the latch 20, sequentially transfers the data applied to the first input of the adder 19 to φ0.
Configure an accumulation counter that accumulates. Furthermore, this lunch 2
0 occurs at the end of one frame, or cent clock φ,
Since it is reset by , it is accumulated in frame units.

そして、アダー19の第1の入力には前述したセレクタ
17によって順次クロックφθに対応してシフトレジス
タ15.ラッチ16の内容が選択されて加わるので、前
述した累算回路の累算出力は6フレームにわたった累算
と、現在出力しているデータの2倍の値とが加算された
値となる。即ち、シフトレジスタ15に格納されている
データをD n + I−D n + e 、 −77
チ23より出力されているデータをDsとするならば、
前述した累算回路の累算出力Dx は り、 =ΣDn+ j!2 ・Ds ・−−・(1)L
++ となる。このアダーによって平均値に重み付けをした値
と6データとの累算がなされ新しい平均値をめるための
累算値が得られる。新しい即ち次のフレームクロックに
対応した平均値をめるデータとして今までの平均値に重
み伺けをしたデータを用いるのは、近接した音階例えば
音声の“C”に対して” B”や“C゛がピッチ抽出の
エラー等によって多く発生しランダムにデータが振れる
ことがあるので、その近接したデータを一定とするため
である。アダー19の第1の入力に加わるデータは8ビ
ツトであるので前述の累算出力ば11ピノ1−データと
なる。その出力を即ぢDχ/8をめるのが次のラッチ2
1とアダー22である。累算出力をラッチ21が格納し
、上位8ビツトをアダー22の入力に加える。そして9
ビ、ト目をアダー22のキャリー人力に加える。9ビ。
The first input of the adder 19 is connected to the shift register 15 . Since the contents of the latch 16 are selected and added, the accumulated output of the above-mentioned accumulation circuit is the sum of the accumulation over six frames and the value twice the currently output data. That is, the data stored in the shift register 15 is converted to D n + I-D n + e, -77
If the data output from chip 23 is Ds, then
The cumulative output Dx of the aforementioned cumulative circuit is =ΣDn+ j! 2 ・Ds ・---・(1)L
++ becomes. With this adder, the value obtained by weighting the average value and the 6 data are accumulated, and an accumulated value for setting a new average value is obtained. Data that is weighted with the previous average value is used as the data to calculate the new average value corresponding to the next frame clock.For example, for the adjacent musical scale "C", "B" or " This is to keep the adjacent data constant since C' often occurs due to pitch extraction errors and the data may fluctuate randomly.The data added to the first input of the adder 19 is 8 bits. The above-mentioned cumulative output becomes 11 pino 1-data.The output is immediately connected to the next latch 2, which sets Dχ/8.
1 and adder 22. Latch 21 stores the accumulated output and adds the upper 8 bits to the input of adder 22. And 9
Add B and G to Adder 22's carry power. 9bi.

ト目をアダー22に加えるのは、単に11ビットデータ
の下位3ヒツトを切捨てるのではなく、9ピント目を考
慮する為である。即ち、9ビ・7ト目が” 1 ”の時
には上位8ピツi・のデータに1を加えて平均出力とし
、0の時には加えず、下位3ビツトを切り捨でて出力す
る。このラッチ 21とアダー22は前述したように平
均値を精度よ、く出力するための回路であり、高精度を
要求しない場。
The purpose of adding the 9th point to the adder 22 is to consider the 9th point rather than simply truncating the lower three hits of the 11-bit data. That is, when the 9th bit and the 7th bit are "1", 1 is added to the data of the upper 8 bits to obtain an average output, and when it is 0, no addition is made, and the lower 3 bits are discarded and output. As mentioned above, the latch 21 and adder 22 are circuits for outputting the average value with high accuracy, and are used in cases where high accuracy is not required.

合には必要としない。It is not necessary in some cases.

アダー22の出力はラッチ23に格納される。The output of adder 22 is stored in latch 23.

このラッチ23は、その出力が次のフレーム間次段なら
びに累算において使用されるので、そのフレーム間デー
タを一定とするための回路である。
This latch 23 is a circuit for keeping the interframe data constant, since its output is used in the next stage and accumulation during the next frame.

まとめると、第2図における回路は平均値をさらに入力
データの一部として使用することによっ゛C平均動作に
ヒステリシス効果を発生し、データの下位ビットの変化
に対してすくに応答することを防止する回路である。
In summary, the circuit in Figure 2 uses the average value as part of the input data to create a hysteresis effect in the C average operation, making it more responsive to changes in the lower bits of the data. This is a circuit that prevents

第3図は本発明の実施例におりる各回路のタイミングク
ロックを示すタイミング図である。このタイミング図を
用いて第2図の動作をさらに説明する。フレームクロッ
クφ、は1フレームの先頭でクロックを発生し、必要と
するデータの格納ならびにデータのシフトを行なうクロ
ックである。
FIG. 3 is a timing diagram showing timing clocks of each circuit in the embodiment of the present invention. The operation shown in FIG. 2 will be further explained using this timing diagram. The frame clock φ is a clock that is generated at the beginning of one frame and is used to store necessary data and shift data.

第2図においてはランチ14,16. シフトレジスタ
15がそのクロックで動作する。このクロックが発生す
ることによってラッチ等の格納データが1フレ一ム間固
定される。そして次にクロックφ0が順次1フレ一ム間
で8回出力される。このクロックは8進カウンタ18を
歩進させセレクタ17によって入力している8データを
1フレーム内で順次選択するためのものである。さらに
、累算するためのクロックでもある。即ち、クロックφ
0の立ち上がりで8進カウンク18が歩進し。
In FIG. 2, lunches 14, 16. The shift register 15 operates with this clock. By generating this clock, data stored in a latch or the like is fixed for one frame. Then, the clock φ0 is sequentially output eight times during one frame. This clock is for incrementing the octal counter 18 and sequentially selecting the eight data inputted by the selector 17 within one frame. Furthermore, it is also a clock for accumulation. That is, the clock φ
At the rising edge of 0, the octal count 18 advances.

データを選択する。そしてアダー19にその選択データ
が加わる。この時アダー19には選択されたデータと今
までの加算デー“りとが入力しており。
Select data. Then, the selected data is added to the adder 19. At this time, the selected data and the added data up to now have been input to the adder 19.

このアダーによって加算即ち累算される。そしてクロッ
クφ0の立ぢ下がりでラッチφ0はそのデータを格納す
る。この動作は1フレ一ム間で8回行なわれ累算される
。尚、この累算は前述したように過去の6データとそれ
以前のデータの平均値の2倍の加算である。8番目のク
ロックの発生後にクロックφSが発生し2累算値がラッ
チ21に格納される。この格納とほぼ同時にアダー22
に累算値が加わるのでアダーは前述したキャリーとの加
算を行ない出力する。この出力が即ち平均イ卓となる。
This adder adds or accumulates. Then, at the falling edge of clock φ0, latch φ0 stores the data. This operation is performed eight times per frame and accumulated. Note that, as described above, this accumulation is an addition of twice the average value of the past six data and the previous data. After the eighth clock is generated, a clock φS is generated and the two accumulated values are stored in the latch 21. At about the same time as this storage, Adder 22
Since the accumulated value is added to , the adder performs the addition with the carry mentioned above and outputs it. This output is the average output.

この処理は次に発生するクロックφ。IJTの前になさ
れ、クロックφ。アによってラッチ23が平均値を格納
し出力する。そしてクロックφ、によってラッチ20の
格納がリセットされる。このクロックりは1フレ一ム単
位での累算を行なうためのクロックである。
This process is performed by the next generated clock φ. The clock φ is done before the IJT. The latch 23 stores and outputs the average value. Then, the storage in the latch 20 is reset by the clock φ. This clock is a clock for performing accumulation in units of one frame.

以上1本発明の実施例を詳細に説明した。One embodiment of the present invention has been described above in detail.

本発明は前述した6データと平均値の2倍を累算して新
しい平均値をめる回路であるが、これは6デークとは限
らずさらには平均値の2進とは限らない。尚、実施例以
外のデータ数又は平均値の倍数を変化させた場合にはそ
れに対応した割算回路が必要である。
The present invention is a circuit that calculates a new average value by accumulating the aforementioned 6 data and twice the average value, but this is not limited to 6 data and is not limited to the binary value of the average value. Note that when the number of data or the multiple of the average value is changed other than in the embodiment, a corresponding division circuit is required.

〔発明の効果〕〔Effect of the invention〕

以上述べたように本発明は複数のデータと今までの平均
値の複数倍とを累算して平均をめたものであり、ヒステ
リシス効果を有する移動平均演算装置を得ることも可能
となる。さらに2本発明を用いることによって音声入力
に対応して楽音を発生する電子楽器を得ることが可能と
なる。
As described above, the present invention accumulates and averages a plurality of pieces of data and multiples of the previous average value, and it is also possible to obtain a moving average calculation device having a hysteresis effect. Further, by using two aspects of the present invention, it is possible to obtain an electronic musical instrument that generates musical tones in response to audio input.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の実施例の回路構成図、第2図は第1図
の移動平均演算部のさらに詳細な回路図。 第3図は本発明の実施例のタイミングクロック図である
。 8・・・移動平均演算部 14.16,20,21.23・・・ラッチ15・・・
シフ1〜レジスタ 17・・・セレクタ 18・・・カウンタ 19,22
. ・・・アダー 特許出願人 カシオ計算機株式会社 代理人弁理士 大 菅 義 之
FIG. 1 is a circuit configuration diagram of an embodiment of the present invention, and FIG. 2 is a more detailed circuit diagram of the moving average calculation section of FIG. 1. FIG. 3 is a timing clock diagram of an embodiment of the present invention. 8...Moving average calculation unit 14.16, 20, 21.23...Latch 15...
Shift 1 to register 17...Selector 18...Counter 19, 22
.. ... Adder patent applicant Yoshiyuki Osuga, patent attorney for Casio Computer Co., Ltd.

Claims (5)

【特許請求の範囲】[Claims] (1)入力データを記憶する記憶手段と、該記憶手段の
データを選択して累算する累算手段と、該累算手段の結
果を平均する平均手段とを有し、前記記憶手段の出力と
前記平均手段の出力とを選択して累算し平均を行なうこ
とを特徴とする移動平均演算装置。
(1) It has a storage means for storing input data, an accumulation means for selecting and accumulating the data in the storage means, and an averaging means for averaging the results of the accumulation means, and the output of the storage means and the output of the averaging means, and selects and accumulates and averages.
(2)前記記憶手段はシフトレジスタであることを特徴
とする特許請求の範囲第1項記載の移動平均演算装置。
(2) The moving average calculation device according to claim 1, wherein the storage means is a shift register.
(3)前記累算手段はカウンタとセレクタとアダーを有
し、前記セレクトは前記カウンタの内容によって前記記
憶手段と平均手段の出力を選択して前記アダーの第1の
入力に加え、前記アダーの第2の入力には前記アダーの
出力が加わることを特徴とする特許請求の範囲第1項記
載の移動平均演算装置。
(3) The accumulating means has a counter, a selector, and an adder, and the select selects the outputs of the storage means and averaging means according to the contents of the counter, and adds the selected outputs to the first input of the adder. 2. The moving average calculation device according to claim 1, wherein the output of the adder is added to the second input.
(4)前記平均手段はハーフアダーを有し、前記累算手
段の上位複数ビットが前記アダーの入力に加わり、前記
上位複数ビットに続く1ビツトが前記アダーのキャリー
人力に加わることを特徴とする特許請求の範囲第1項記
載の移動平均演算装置。
(4) A patent characterized in that the averaging means has a half adder, a plurality of upper bits of the accumulating means are added to the input of the adder, and one bit following the plurality of upper bits is added to the carry power of the adder. A moving average calculation device according to claim 1.
(5)前記セレクタは8個の入力端子を有し、それぞれ
の入力端子には6段のシフトレジスタより成る記憶手段
の出力とが前記6個の入力端子にそれぞれ加わり、前記
平均手段の出力が2個の入力端子に加わることを特徴と
する特許請求の範囲第2項記載の移動平均演算装置。
(5) The selector has eight input terminals, each input terminal is connected to the output of a storage means consisting of a six-stage shift register, and the output of the averaging means is applied to each of the six input terminals. 3. The moving average calculation device according to claim 2, wherein the moving average calculation device is applied to two input terminals.
JP59013075A 1983-02-27 1984-01-27 Input device for electronic musical instruments Expired - Fee Related JPH0652480B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP59013075A JPH0652480B2 (en) 1984-01-27 1984-01-27 Input device for electronic musical instruments
US06/583,091 US4633748A (en) 1983-02-27 1984-02-23 Electronic musical instrument
GB08405013A GB2138988B (en) 1983-02-27 1984-02-27 Electronic musical instrument
DE19843407078 DE3407078A1 (en) 1983-02-27 1984-02-27 ELECTRONIC MUSIC INSTRUMENT
US07/453,040 USRE33739E (en) 1983-02-27 1989-12-12 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59013075A JPH0652480B2 (en) 1984-01-27 1984-01-27 Input device for electronic musical instruments

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP63151943A Division JPH01112294A (en) 1988-06-20 1988-06-20 Average computing apparatus with hysteresis characteristic

Publications (2)

Publication Number Publication Date
JPS60158492A true JPS60158492A (en) 1985-08-19
JPH0652480B2 JPH0652480B2 (en) 1994-07-06

Family

ID=11823032

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59013075A Expired - Fee Related JPH0652480B2 (en) 1983-02-27 1984-01-27 Input device for electronic musical instruments

Country Status (1)

Country Link
JP (1) JPH0652480B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6420597A (en) * 1987-07-16 1989-01-24 Matsushita Electric Ind Co Ltd Electronic musical instrument

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS50149335A (en) * 1974-05-20 1975-11-29
JPS52134346A (en) * 1976-05-04 1977-11-10 Combustion Eng Storage device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS50149335A (en) * 1974-05-20 1975-11-29
JPS52134346A (en) * 1976-05-04 1977-11-10 Combustion Eng Storage device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6420597A (en) * 1987-07-16 1989-01-24 Matsushita Electric Ind Co Ltd Electronic musical instrument

Also Published As

Publication number Publication date
JPH0652480B2 (en) 1994-07-06

Similar Documents

Publication Publication Date Title
US4691608A (en) Waveform normalizer for electronic musical instrument
JPS60158492A (en) Running mean computing unit
JPS60192993A (en) Musical sound generator by inputting voice
JPH0261760B2 (en)
US4349699A (en) Speech synthesizer
JPS60158493A (en) Error remover
JPH01112294A (en) Average computing apparatus with hysteresis characteristic
JP2699570B2 (en) Electronic musical instrument
JPS61146020A (en) Signal processor
JPH01112295A (en) Error remover
JPS6091227A (en) Synthesizing apparatus of sound analyzer
JPS6347917Y2 (en)
JP2897377B2 (en) Waveform signal forming device
JPS62182799A (en) Acoustic signal analyzer/synthesizer
JP3136735B2 (en) Effect adding device
JPS6444994A (en) Electronic musical instrument
JPS5913666Y2 (en) envelope waveform generator
JP2626473B2 (en) Electronic musical instrument input control device
JP2698843B2 (en) Electronic musical instrument
JPS5926790A (en) Combination musical tone generator for musical instrument
JP3443491B2 (en) Method of forming tone signal waveform of electronic musical instrument
JPH0139146B2 (en)
JPH0456494B2 (en)
JPS60134378A (en) Correlated value operation system
JPS607499A (en) Pitch extraction circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees