JPH06295194A - Signal comparing device - Google Patents

Signal comparing device

Info

Publication number
JPH06295194A
JPH06295194A JP5081657A JP8165793A JPH06295194A JP H06295194 A JPH06295194 A JP H06295194A JP 5081657 A JP5081657 A JP 5081657A JP 8165793 A JP8165793 A JP 8165793A JP H06295194 A JPH06295194 A JP H06295194A
Authority
JP
Japan
Prior art keywords
signal
averaging
sampling
signals
feature
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.)
Pending
Application number
JP5081657A
Other languages
Japanese (ja)
Inventor
Kenji Muraki
健司 村木
Kimiharu Watanabe
公治 渡辺
Nobuyuki Ogawa
伸幸 小川
Tatsuhiko Numamoto
竜彦 沼本
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP5081657A priority Critical patent/JPH06295194A/en
Publication of JPH06295194A publication Critical patent/JPH06295194A/en
Pending legal-status Critical Current

Links

Landscapes

  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

(57)【要約】 【目的】 2種類の信号のタイミングずれなどの瞬時的
影響を排除した誤差を算出する。 【構成】 サンプリング手段405は制御手段403か
らの制御信号に応じて第1の信号の特徴量をサンプリン
グする。平均化手段406はサンプリング手段405で
サンプリングされた第1の信号の特徴量を平均化する。
また、サンプリング手段408,平均化手段409は第
2の信号に対して同様の処理をする。比較手段410は
平均化手段406,409で平均化された第1,第2の
信号の特徴量を比較して出力する。
(57) [Summary] [Purpose] To calculate an error that excludes instantaneous effects such as timing deviation between two types of signals. [Structure] A sampling unit 405 samples the feature amount of the first signal in accordance with a control signal from the control unit 403. The averaging means 406 averages the feature quantities of the first signal sampled by the sampling means 405.
Further, the sampling means 408 and the averaging means 409 perform similar processing on the second signal. The comparison means 410 compares and outputs the feature amounts of the first and second signals averaged by the averaging means 406 and 409.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は2種類の信号、たとえ
ば、カラオケメディアに記録されている模範歌唱と、カ
ラオケを歌っているユーザの歌声を比較するための信号
比較装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a signal comparison device for comparing two kinds of signals, for example, a model singing recorded in a karaoke medium and a singing voice of a user singing karaoke.

【0002】[0002]

【従来の技術】近年、カラオケ装置は、ユーザが歌を歌
い易いようにキーコントロール、残響音の付加など様々
な機能を搭載するようになってきている。このなかで、
キーコントローラを自動設定するために、カラオケメデ
ィアに記録されている模範歌唱と、カラオケを歌ってい
るユーザの歌声を比較するための信号比較装置を備えた
カラオケ装置が考案されている。
2. Description of the Related Art In recent years, karaoke apparatuses have been equipped with various functions such as key control and addition of reverberation so that a user can easily sing a song. In this
In order to automatically set a key controller, a karaoke device has been devised which includes a model singing recorded on a karaoke medium and a signal comparison device for comparing the singing voice of a user singing karaoke.

【0003】このような従来のカラオケ装置としては、
たとえば、特開昭59−204095号公報「楽音ピッ
チ可変装置」がある。この従来のカラオケ装置では、ユ
ーザが歌を歌う前にカラオケメディアに記録されている
必要部分のピッチを調べ、一方、ユーザに声を出させて
ユーザの声域を調べ、両者を比較し、この結果に応じて
キーコントローラを制御するというものである。
As such a conventional karaoke apparatus,
For example, there is Japanese Patent Laid-Open No. 59-204095, "Musical tone pitch changing device". In this conventional karaoke device, before the user sings a song, the pitch of the necessary portion recorded in the karaoke media is checked, while the user is uttered to check the vocal range of the user, the two are compared, and the result is compared. The key controller is controlled according to.

【0004】従来の楽音ピッチ可変装置は、入力信号を
周波数分析して音高を判定する周波数分析手段と、この
周波数分析手段における音高判定の結果からそれぞれ別
々に入力された異なる2種類の音声信号の音域をそれぞ
れあらかじめチェックしておく音域チェック手段と、こ
の音域チェック手段にてチェックされた前記2種類の入
力音声信号のそれぞれの音域から周波数シフト量を決定
する周波数シフト量決定手段と、この周波数シフト量決
定手段にて決定されたシフト量で一方の入力音声の周波
数をシフトする周波数シフト手段とから構成されてい
る。
A conventional musical tone pitch varying apparatus is a frequency analyzing means for frequency-analyzing an input signal to determine a pitch, and two different kinds of voices which are separately input from the result of the pitch determination by the frequency analyzing means. A tone range checking means for checking the tone range of the signal in advance, and a frequency shift amount determining means for determining a frequency shift amount from each tone range of the two types of input audio signals checked by the tone range checking means, It is composed of frequency shift means for shifting the frequency of one input voice by the shift amount determined by the frequency shift amount determining means.

【0005】以上のように構成された従来の楽音ピッチ
可変装置の動作について以下に説明する。
The operation of the conventional musical tone pitch varying device constructed as above will be described below.

【0006】まず、カラオケメディアの必要部分、たと
えばこれから歌おうとしている曲の一番の部分を再生
し、これを周波数分析手段に入力する。そして音域チェ
ック手段でこの周波数分析手段の分析結果をもとに、再
生したカラオケメディアの最高音と最低音をチェックす
る。つぎに、ユーザの声を周波数分析手段に入力する。
ユーザは「ド,レ,ミ,・・・・」と正しく発音できる
声域内で順次発音していく。このユーザの発音を周波数
分析手段で分析し、音域チェック手段を用いて、ユーザ
の声域を得る。
First, a necessary part of the karaoke media, for example, the first part of the song to be sung is reproduced, and this is input to the frequency analysis means. Then, the sound range checking means checks the highest and lowest tones of the reproduced karaoke media based on the analysis result of the frequency analysis means. Next, the voice of the user is input to the frequency analysis means.
The user sequentially pronounces in the vocal range where he can correctly pronounce "do, le, mi, ...". The pronunciation of the user is analyzed by the frequency analysis means, and the range of the user is obtained by using the range check means.

【0007】以上のようにして、カラオケメディアに記
録されている曲の音域とユーザの声域が得られるが、こ
れらの音域を周波数シフト量決定手段で比較し、周波数
シフト量を決定する。たとえば、カラオケメディアの音
域がユーザの声域に比べて高い場合には、カラオケメデ
ィアの音域を下げるように周波数シフト量が決定され
る。この周波数シフト量に応じて、周波数シフト手段で
カラオケメディアの再生音を下げることにより、ユーザ
の声域に適した音域の再生音が得られる。
As described above, the musical range recorded in the karaoke medium and the vocal range of the user can be obtained. These musical ranges are compared by the frequency shift amount determining means to determine the frequency shift amount. For example, when the range of the karaoke media is higher than that of the user, the frequency shift amount is determined so as to lower the range of the karaoke media. By reducing the reproduced sound of the karaoke media by the frequency shift means according to the frequency shift amount, the reproduced sound in the range suitable for the user's vocal range can be obtained.

【0008】[0008]

【発明が解決しようとする課題】以上ような従来の構成
では、操作が煩わしい問題点がある。すなわち、ユーザ
はカラオケを歌い始める前に、まずカラオケメディアの
必要部分を再生し、さらに、ユーザ自身の声域も調べな
ければならず、実際にカラオケを歌い出すまでにかなり
の時間を要する。多人数でカラオケを楽しむ場合などで
は、このような操作を行うことは事実上不可能である。
However, the conventional configuration as described above has a problem that the operation is troublesome. That is, before the user starts singing karaoke, he / she must first play a necessary part of the karaoke media and also check the vocal range of the user himself, and it takes a considerable time to actually start singing karaoke. It is virtually impossible to perform such an operation when a large number of people enjoy karaoke.

【0009】本発明は上記従来の問題点を解決するもの
で、ユーザがカラオケをうたっている間に、ユーザの歌
に合わせて音程変換手段を制御する、あるいは、音程を
表示するために必要な信号の比較を行う信号比較装置を
提供することを目的とする。
The present invention solves the above-mentioned conventional problems, and is necessary for controlling the pitch converting means or for displaying the pitch according to the song of the user while the user is singing karaoke. An object of the present invention is to provide a signal comparison device that compares signals.

【0010】[0010]

【課題を解決するための手段】この目的を達成するため
に本発明の信号比較装置は、第1の信号の特徴量検出フ
ラグに応じて第1の信号の特徴量をサンプリングするサ
ンプリング手段と、サンプリングされた第1の信号の特
徴量を平均する平均化手段と、第2の信号の特徴量検出
フラグに応じて第2の信号の特徴量をサンプリングする
サンプリング手段と、サンプリングされた第2の信号の
特徴量を平均する平均化手段と、平均化された第1およ
び第2の信号の特徴量を比較する比較手段とで構成され
る。
In order to achieve this object, a signal comparison apparatus according to the present invention comprises sampling means for sampling the feature quantity of the first signal according to the feature quantity detection flag of the first signal, Averaging means for averaging the sampled feature amounts of the first signal, sampling means for sampling the feature amount of the second signal in accordance with the feature amount detection flag of the second signal, and the sampled second It is composed of averaging means for averaging the feature amounts of the signals and comparison means for comparing the feature amounts of the averaged first and second signals.

【0011】また、本発明の信号比較装置は、第1の信
号の特徴量検出フラグと第2の信号の特徴量検出フラグ
とに応じた制御信号を出力する制御手段と、制御信号に
応じて第1の信号の特徴量をサンプリングするサンプリ
ング手段と、サンプリングされた第1の信号の特徴量を
平均する平均化手段と、制御信号に応じて第2の信号の
特徴量をサンプリングするサンプリング手段と、サンプ
リングされた第2の信号の特徴量を平均する平均化手段
と、平均化された第1および第2の信号の特徴量を比較
する比較手段とで構成される。
Further, the signal comparison device of the present invention includes control means for outputting a control signal corresponding to the feature amount detection flag of the first signal and the feature amount detection flag of the second signal, and the control means in response to the control signal. Sampling means for sampling the characteristic amount of the first signal, averaging means for averaging the sampled characteristic amounts of the first signal, and sampling means for sampling the characteristic amount of the second signal according to the control signal. , And averaging means for averaging the sampled feature amounts of the second signal, and comparison means for comparing the averaged feature amounts of the first and second signals.

【0012】[0012]

【作用】本発明は上記した構成により、第1,第2の信
号の特徴量検出フラグに応じて第1,第2の信号の特徴
量をサンプリング・平均し、その後これらの特徴量を比
較する。
According to the present invention, with the above configuration, the feature quantities of the first and second signals are sampled and averaged according to the feature quantity detection flags of the first and second signals, and then these feature quantities are compared. .

【0013】[0013]

【実施例】以下、本発明の第1の実施例について、図面
を参照しながら説明する。本発明で比較対象とする特徴
量としては、信号の強さ、強さの時間変化(リズム)、
ピッチなどがあるが、以下の実施例では特徴量が信号の
ピッチの場合について説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A first embodiment of the present invention will be described below with reference to the drawings. The features to be compared in the present invention include the strength of the signal, the temporal change in strength (rhythm),
Although there are pitches and the like, the case where the feature amount is the pitch of the signal will be described in the following embodiments.

【0014】図1は本発明の第1の実施例における信号
比較装置の構成を示すブロック図である。図1におい
て、101は第1の信号の基本周期を入力する基本周期
入力端子、102は第1の信号の基本周期検出フラグ入
力端子、103は基本周期検出フラグに応じて第1の信
号の基本周期をサンプリングし、ピッチデータ(cent'
値)に変換後累算するサンプリング手段、104は累算
された第1の基本周期データを平均する平均化手段、1
05は第2の信号の基本周期を入力する基本周期入力端
子、106は第2の信号の基本周期検出フラグ入力端
子、107は第2の信号の基本周期をサンプリング後、
ピッチデータ(cent'値)に変換し累算するサンプリン
グ手段、108は累算されたピッチデータを平均する平
均化手段、109は平均化された第1および第2のピッ
チデータを比較する比較手段、110は比較結果を出力
する出力端子である。本第1の実施例ではサンプリング
手段103,107、平均化手段104,108、比較
手段109をマイクロコンピュータ111で実現してい
る。
FIG. 1 is a block diagram showing the configuration of a signal comparison apparatus according to the first embodiment of the present invention. In FIG. 1, 101 is a basic cycle input terminal for inputting the basic cycle of the first signal, 102 is a basic cycle detection flag input terminal of the first signal, and 103 is a basic cycle of the first signal according to the basic cycle detection flag. The period is sampled and the pitch data (cent '
Sampling means for accumulating after conversion into a value), 104 is an averaging means for averaging the accumulated first fundamental period data, 1
Reference numeral 05 is a basic cycle input terminal for inputting the basic cycle of the second signal, 106 is a basic cycle detection flag input terminal of the second signal, and 107 is a sampling of the basic cycle of the second signal.
Sampling means for converting into pitch data (cent 'value) and accumulating, 108 for averaging means for averaging accumulated pitch data, 109 for comparing means for comparing the averaged first and second pitch data. , 110 are output terminals for outputting the comparison result. In the first embodiment, the sampling means 103 and 107, the averaging means 104 and 108, and the comparing means 109 are realized by the microcomputer 111.

【0015】以上のように構成された第1の実施例の信
号比較装置の動作について説明する。
The operation of the signal comparison apparatus of the first embodiment constructed as above will be described.

【0016】まず、基本周期入力端子101,105か
ら入力される基本周期データについて説明する。音声の
ピッチ抽出方法は、自己相関を用いる方法、FFTなど
で周波数分析を行う方法などがあるが、本第1の実施例
ではゼロクロス間隔からピッチを抽出する方法を用いる
場合について説明する。ゼロクロス間隔からピッチを抽
出する方法の詳細については、たとえば、特開平2−1
08100号公報「ピッチ抽出装置」に開示されてい
る。このピッチ抽出装置は音声信号を入力して、入力音
声の基本周期がサンプリング周期の何倍であるかという
データを出力する。
First, the basic cycle data input from the basic cycle input terminals 101 and 105 will be described. There are methods of extracting the pitch of the voice, such as a method of using autocorrelation and a method of performing frequency analysis by FFT or the like. In the first embodiment, the case of using the method of extracting the pitch from the zero cross interval will be described. For details of the method for extracting the pitch from the zero-cross interval, see, for example, Japanese Patent Laid-Open No. 2-1
No. 08100, “Pitch Extractor”. This pitch extraction device inputs a voice signal and outputs data indicating how many times the fundamental period of the input voice is the sampling period.

【0017】ピッチ抽出装置は入力音声信号の基本周期
を検出するが、連続して検出された基本周期が一定の比
率以内の場合には基本周期検出フラグ(第1の信号用の
フラグをPRL、第2の信号用をPRRとする)を立てる。こ
れらのフラグはタイマ割り込みの中でリセットされ、ピ
ッチ検出装置で基本周期が検出されるとセットされる。
したがって、一定時間間隔のサンプリングの間にゼロク
ロスが1回もない場合(入力信号が低周波の場合)や、
ゼロクロスがあっても、基本周期が検出できない場合
(子音など)には基本周期検出フラグがリセットされた
ままになることもある。
The pitch extracting device detects the basic period of the input speech signal. However, when the continuously detected basic period is within a certain ratio, the basic period detection flag (PRL for the first signal, PRL, Set the second signal for PRR). These flags are reset in the timer interrupt, and are set when the pitch detecting device detects the basic period.
Therefore, if there is no zero crossing during sampling at fixed time intervals (when the input signal is low frequency),
Even if there is a zero cross, if the basic period cannot be detected (consonant, etc.), the basic period detection flag may remain reset.

【0018】つぎに、データのサンプリング・累算処理
の内容について説明する。図2は割り込み処理で行われ
るピッチデータのサンプリング・累算を説明するための
PADである。なお、説明の中で使用する変数のうちis
L0,isR0,scL,scR,icntはゼロに初期化されているも
のとする。
Next, the contents of data sampling / accumulation processing will be described. FIG. 2 is a PAD for explaining sampling / accumulation of pitch data performed in interrupt processing. Of the variables used in the explanation, is
L0, isR0, scL, scR, and icnt are assumed to be initialized to zero.

【0019】サンプリング手段103,107では入力
された基本周期を、マイクロコンピュータ109のタイ
マ割り込み機能を利用して、サンプルする。人間の歌声
の場合にはサンプリングの間隔は10[ms]程度が適当であ
る。まず、タイマ割り込みが発生すると、第1の信号の
基本周期検出が出来ているかどうか調べるために、基本
周期検出フラグ(PRL)をチェックする(ステップ
1)。
The sampling means 103 and 107 sample the input basic cycle using the timer interrupt function of the microcomputer 109. In the case of human singing voice, a sampling interval of about 10 [ms] is appropriate. First, when a timer interrupt occurs, the basic cycle detection flag (PRL) is checked to check whether the basic cycle of the first signal has been detected (step 1).

【0020】基本周期が検出されている場合には、基本
周期から周波数を求め、さらに、cent'値(cnt0L)に変
換する(ステップ2)。基本周期をt[s]とするときcen
t'値cは式(1)で与えられる。
When the fundamental period is detected, the frequency is obtained from the fundamental period and converted into the cent 'value (cnt0L) (step 2). Cen when the basic cycle is t [s]
The t'value c is given by equation (1).

【0021】 c=1024*log2(t0/t),t0=1/55 (1) 式(1)は、基準周波数を55[Hz]とした場合の式であ
る。もしも、もっと低い周波数を扱う場合には、基準周
波数もこれに応じて低くする必要がある。
C = 1024 * log2 (t0 / t), t0 = 1/55 (1) Equation (1) is an equation when the reference frequency is 55 [Hz]. If lower frequencies are to be handled, the reference frequency also needs to be lowered accordingly.

【0022】cent'への変換方法は基本周期のサンプル
数をインデックスとして、cent'値を読み出す形式のテ
ーブルを使う。このテーブルは基本周期が短い場合には
cent'値の間隔が大きくなるため、基本周期の刻み幅を
小さくし、基本周期が長くなるにしたがって、刻み幅を
段階的に大きくすると効率的である。
The conversion method to cent 'uses a table of the format for reading out the cent' value with the number of samples of the basic period as an index. If the basic cycle is short,
Since the interval between cent 'values becomes large, it is efficient to reduce the step size of the basic cycle and increase the step size stepwise as the basic cycle becomes longer.

【0023】検出された第1の信号のcent'値は、累算
用変数(scL)に累算され、累算数カウンタ(isL0)が
インクリメントされる(ステップ3)。基本周期検出フ
ラグ(PRL)はリセットされる(ステップ4)。
The detected cent 'value of the first signal is accumulated in the accumulation variable (scL), and the accumulated number counter (isL0) is incremented (step 3). The basic period detection flag (PRL) is reset (step 4).

【0024】基本周期が検出されていない場合には、処
理は何も行われない。同様に、第2の信号基本周期につ
いても基本周期検出チェック(ステップ5)、cent'変
換(ステップ6)、scRの累算、カウンタisR0のインク
リメント(ステップ7)、基本周期検出フラグ(PRR)
のリセットが行われる(ステップ8)。
If the basic period is not detected, no processing is performed. Similarly, for the second signal basic cycle, basic cycle detection check (step 5), cent 'conversion (step 6), accumulation of scR, increment of counter isR0 (step 7), basic cycle detection flag (PRR)
Is reset (step 8).

【0025】割り込み回数のカウンタ(icnt)は基本周
期検出の有無にかかわらず、割り込み発生のたびにイン
クリメントされる(ステップ9)。
The interrupt count counter (icnt) is incremented each time an interrupt occurs regardless of whether or not the basic cycle is detected (step 9).

【0026】割り込み回数が基準値(icnt0)に達した
かどうかチェックし(ステップ10)、達した場合に
は、累算結果(scL、scR)をバッファ(sscL、sscR)
に、累算数(icL0,isR0)をバッファ(isL1,isR1)に格
納し(ステップ11)、各変数をクリアする(ステップ
12)。そして、ピッチデータ累算完了フラグ(CCNT)
をセットする。
It is checked whether or not the number of interrupts has reached the reference value (icnt0) (step 10). If it has, the accumulated result (scL, scR) is stored in the buffer (sscL, sscR).
Then, the accumulated number (icL0, isR0) is stored in the buffer (isL1, isR1) (step 11), and each variable is cleared (step 12). And the pitch data accumulation completion flag (CCNT)
Set.

【0027】以上が、割り込みで処理される、データの
サンプリング・累算処理の内容である。
The above is the contents of the data sampling / accumulation processing which is processed by the interrupt.

【0028】つぎに、平均化手段104,108の累算
結果の平均化処理について説明する。図3は累算結果を
平均する処理のPADである。
Next, the averaging process of the accumulation results of the averaging means 104 and 108 will be described. FIG. 3 is a PAD of a process for averaging accumulated results.

【0029】平均化処理は、一定時間間隔で正確に時間
管理しなければいけないサンプリングに比べ、つぎのサ
ンプリングまでに処理が終了すればよく、割り込み処理
にする必要はない。割り込み負荷を軽くするために通常
処理とする。マイコンで初期設定後キースキャンなどの
ループ処理を行う中で、ピッチデータ累算完了フラグ
(CCNT)がセットされている場合に、平均処理を実施す
る(ステップ1)。
The averaging process does not need to be interrupted as long as the process is completed by the next sampling, as compared with the sampling in which the time must be accurately managed at fixed time intervals. Normal processing is used to reduce the interrupt load. When the pitch data accumulation completion flag (CCNT) is set during the loop processing such as the key scan after initialization by the microcomputer, the averaging processing is executed (step 1).

【0030】平均化処理ではまず、第1の信号の累算数
(isL)が基準数(MIN)以上あるかどうか判定する(ス
テップ2)。ピッチデータが基準数以上ある場合には、
累算データ(sscL)/累算数(isL1)を平均ピッチデー
タ(avcL)とし、第1の信号の平均完了フラグ(SRL)
をセットする(ステップ3)。累算数(isL)が基準数
(MIN)未満の場合には、平均ピッチデータ(avcL)を
0とし、平均完了フラグをリセットする。
In the averaging process, first, it is judged whether or not the cumulative number (isL) of the first signals is equal to or larger than the reference number (MIN) (step 2). If there is more than the reference number of pitch data,
The accumulated data (sscL) / accumulated number (isL1) is used as the average pitch data (avcL), and the average completion flag (SRL) of the first signal
Is set (step 3). When the accumulated number (isL) is less than the reference number (MIN), the average pitch data (avcL) is set to 0 and the average completion flag is reset.

【0031】第2の信号についても同様の処理(ステッ
プ5〜7)を実施する。以上が平均化処理の内容であ
る。
Similar processing (steps 5 to 7) is carried out for the second signal. The above is the content of the averaging process.

【0032】つぎに、比較手段109の処理について説
明する。カラオケ装置では音程変換機能を備えたものが
多いが、たとえば、第1の信号がユーザのマイク入力音
声、第2の信号がカラオケメディアに記録されている模
範歌唱音声とすると、カラオケに音程変換を行っている
場合には平均ピッチデータ(avcR)に現在の音程変化値
key[cent']を加算して補正を行う必要がある。この後、
第1の信号の平均ピッチデータ(avcL)から第2の信号
の平均ピッチデータ(avcR)を引いてピッチ検出結果の
誤差keyerrを求める。
Next, the processing of the comparison means 109 will be described. Many karaoke devices have a pitch conversion function. For example, if the first signal is the user's microphone input voice and the second signal is the model singing voice recorded in the karaoke medium, the pitch conversion is performed in karaoke. If so, the current pitch change value is added to the average pitch data (avcR).
It is necessary to add key [cent '] to make a correction. After this,
An error keyerr of the pitch detection result is obtained by subtracting the average pitch data (avcR) of the second signal from the average pitch data (avcL) of the first signal.

【0033】誤差keyerrはcent'値である。したがっ
て、1オクターブ以上の誤差があるときには式(1)の
定義より±1024以上となる。しかし、音程の誤差として
有効なのは1オクターブ以内、すなわち誤差の1024の剰
余成である。さらに、+512[cent']と−512[cent']は、
実は同じ音程となる。以上のことから、keyerrの下位1
0bitを2の補数表示として扱えば、ピッチ検出の誤差
は±512[cent']の範囲となる。それほど分解能を必要と
しない場合には下位2bitを捨てて、下位3〜10の8bitを
誤差データとして扱ってもよい。8bitマイコンを用いる
場合には処理を簡略化できる。この誤差データを比較手
段107の出力とする。
The error keyerr is a cent 'value. Therefore, when there is an error of 1 octave or more, it becomes ± 1024 or more according to the definition of the equation (1). However, the effective pitch error is within one octave, that is, the 1024 remainder of the error. Furthermore, +512 [cent '] and -512 [cent'] are
Actually, the pitch is the same. From the above, lower 1 of keyerr
If 0 bit is treated as a two's complement display, the error in pitch detection will be in the range of ± 512 [cent ']. If the resolution is not so high, the lower 2 bits may be discarded and the lower 3 to 8 bits may be treated as error data. Processing can be simplified when using an 8-bit microcomputer. This error data is output from the comparing means 107.

【0034】このように第1の実施例では、(1)2つ
の信号をそれぞれ平均化するので、2種類の歌のタイミ
ングずれのなどの瞬時的影響を排除した誤差を算出する
事ができる。(2)2種類の信号のサンプリングを独立
に実施するので、信号の変化が緩やかな場合には、基本
周期検出数が少なくても精度のよい平均値が得られる。
(3)平均を実施する時間間隔が一定となり、ピッチ差
を表示するような応用に適する、などの特徴を有する信
号比較装置を提供できる。
As described above, in the first embodiment, (1) the two signals are averaged, so that the error can be calculated by eliminating the instantaneous influence such as the timing deviation of the two kinds of songs. (2) Since two types of signals are sampled independently, an accurate average value can be obtained even when the number of detected basic cycles is small when the signal changes slowly.
(3) It is possible to provide a signal comparison device having characteristics such that the time interval for performing the averaging is constant and is suitable for applications such as displaying a pitch difference.

【0035】以下、本発明の第2の実施例について、図
面を参照しながら説明する。図4は本発明の第2の実施
例における信号比較装置の構成を示すブロック図であ
る。図4において、401は第1の信号の基本周期検出
フラグを入力する基本周期入力端子、402は第2の信
号の基本周期検出フラグを入力する基本周期入力端子、
403は第1,第2の基本周期検出フラグを入力する制
御手段、404は第1の信号の基本周期を入力する基本
周期入力端子、405は制御手段403の制御信号に応
じて第1の信号の基本周期をサンプリングするサンプリ
ング手段、406はサンプリングされた第1の基本周期
データをピッチデータ(cent'値)に変換後、平均する
平均化手段、407は第2の信号の基本周期を入力する
入力端子、408は制御手段403の制御信号に応じて
第2の信号の基本周期をサンプリングするサンプリング
手段、409はサンプリングされた第2の信号の基本周
期をピッチデータ(cent'値)に変換後平均する平均化
手段、410は平均化された第1および第2のピッチデ
ータを比較する比較手段、411は比較結果を出力する
出力端子である。本第2の実施例では制御手段403、
サンプリング手段405,408、平均化手段406,
409、比較手段410をマイクロコンピュータ412
で実現する場合について説明する。
The second embodiment of the present invention will be described below with reference to the drawings. FIG. 4 is a block diagram showing the configuration of the signal comparison apparatus according to the second embodiment of the present invention. In FIG. 4, 401 is a basic cycle input terminal for inputting a basic cycle detection flag of a first signal, 402 is a basic cycle input terminal for inputting a basic cycle detection flag of a second signal,
Reference numeral 403 is a control means for inputting the first and second basic cycle detection flags, 404 is a basic cycle input terminal for inputting the basic cycle of the first signal, and 405 is a first signal according to the control signal of the control means 403. Sampling means for sampling the fundamental cycle of the above, 406 is an averaging means for averaging after converting the sampled first fundamental cycle data into pitch data (cent 'value), and 407 is inputted with the fundamental cycle of the second signal. An input terminal, 408 is sampling means for sampling the fundamental cycle of the second signal in accordance with the control signal of the control means 403, and 409 is the pitch data (cent 'value) after conversion of the fundamental cycle of the sampled second signal. An averaging means for averaging, 410 is a comparing means for comparing the averaged first and second pitch data, and 411 is an output terminal for outputting a comparison result. In the second embodiment, the control means 403,
Sampling means 405, 408, averaging means 406,
409, comparison means 410 to the microcomputer 412
Described below is the case of implementation.

【0036】図5は制御手段403、サンプリング手段
405,408の動作を示すPADである。これらの処
理は割り込みで行われる。なお、説明の中で使用する変
数のうちisLR0,scL,scR,icntはゼロに初期化されて
いるものとする。
FIG. 5 is a PAD showing the operations of the control means 403 and the sampling means 405, 408. These processes are performed by interruption. Among the variables used in the description, isLR0, scL, scR, and icnt are assumed to be initialized to zero.

【0037】制御手段403は第1,第2の信号の基本
周期検出フラグを入力し、両方の信号に対してピッチ検
出ができているかどうかを判定する(ステップ1)。両
方の信号の基本周期が検出されている場合には、それぞ
れの基本周期をcent'値に変換する(ステップ2)。検
出された第1の信号のcent'値は、累算用変数(scL)
に、第2の信号のcent'値は累算用変数(scR)に累算さ
れ、累算数カウンタ(isLR0)がインクリメントされる
(ステップ3)。基本周期検出フラグ(PRL,PRR)はリ
セットされる(ステップ4)。
The control means 403 inputs the fundamental cycle detection flags of the first and second signals and determines whether pitch detection is possible for both signals (step 1). If the fundamental period of both signals is detected, each fundamental period is converted into a cent 'value (step 2). The cent 'value of the detected first signal is the accumulation variable (scL)
Then, the cent 'value of the second signal is accumulated in the accumulation variable (scR), and the accumulated number counter (isLR0) is incremented (step 3). The basic cycle detection flags (PRL, PRR) are reset (step 4).

【0038】基本周期が検出されていない場合には、処
理は何も行われない。割り込み回数のカウンタ(icnt)
は基本周期検出の有無にかかわらず、割り込み発生のた
びにインクリメントされる(ステップ5)。
If the basic period is not detected, no processing is performed. Interrupt counter (icnt)
Is incremented each time an interrupt occurs, regardless of whether the basic period is detected (step 5).

【0039】割り込み回数が基準値に達したかどうかチ
ェックし(ステップ6)、達した場合には、累算結果
(scL,scR)をバッファ(sscL,sscR)に、累算数(is
LR0)をバッファ(isLR1)に格納し(ステップ7)、各
変数をクリアする(ステップ8)。そして、ピッチデー
タ累算完了フラグ(CCNT)をセットする(ステップ
9)。
It is checked whether or not the number of interrupts has reached the reference value (step 6), and if it has, the cumulative result (scL, scR) is stored in the buffer (sscL, sscR) and the cumulative number (is
LR0) is stored in the buffer (isLR1) (step 7) and each variable is cleared (step 8). Then, the pitch data accumulation completion flag (CCNT) is set (step 9).

【0040】以上が、割り込みで処理される、データの
累算処理の内容である。つぎに、平均化手段406,4
09の累算結果の平均化処理について説明する。図6は
累算結果を平均する処理のPADである。
The above is the contents of the data accumulation process which is processed by the interrupt. Next, the averaging means 406, 4
The averaging process of the accumulation result of 09 will be described. FIG. 6 is a PAD of a process of averaging accumulated results.

【0041】平均化処理は、割り込み処理にする必要は
ない。割り込み負荷を軽くするために通常処理とする。
マイコンで初期設定後キースキャンなどのループ処理を
行う中で、ピッチデータ累算完了フラグ(CCNT)がセッ
トされている場合に、平均処理を実施する(ステップ
1)。
The averaging process does not have to be an interrupt process. Normal processing is used to reduce the interrupt load.
When the pitch data accumulation completion flag (CCNT) is set during the loop processing such as the key scan after initialization by the microcomputer, the averaging processing is executed (step 1).

【0042】平均化処理ではまず、cent'の累算数(isL
R1)が基準数(MIN)以上あるかどうか判定する(ステ
ップ2)。ピッチデータが基準数以上ある場合には、累
算データ(sscL)/累算数(isLR1)を平均ピッチデー
タ(avcL)、累算データ(sscR)/累算数(isLR1)を
平均ピッチデータ(avcR)とし、第1,第2の信号の平
均完了フラグ(SRL,SRR)をセットする(ステップ
3)。
In the averaging process, first, the cumulative number of cent '(isL
It is determined whether R1) is greater than or equal to the reference number (MIN) (step 2). If there is more than the standard number of pitch data, accumulated data (sscL) / accumulated number (isLR1) is average pitch data (avcL), accumulated data (sscR) / accumulated number (isLR1) is average pitch data (avcR) Then, the average completion flags (SRL, SRR) of the first and second signals are set (step 3).

【0043】以上が平均化処理の内容である。比較手段
410の処理は第1の実施例と同様である。
The above is the contents of the averaging process. The processing of the comparison means 410 is similar to that of the first embodiment.

【0044】以上のように第2の実施例の信号比較装置
は、(1)2つの信号をそれぞれ平均化するので、2種
類の歌のタイミングずれのなどの瞬時的影響を排除した
誤差を算出する事ができる、(2)2つの信号から同時
に基本周期が検出された場合のデータのみを採用するの
で、信号の変化が激しい場合に精度のよい平均値が得ら
れる、(3)平均を実施する時間間隔が一定となり、ピ
ッチ差を表示するような応用に適する、などの特徴を持
つ信号比較装置を提供できる。
As described above, the signal comparison apparatus according to the second embodiment (1) calculates the error by eliminating the instantaneous effect such as the timing deviation between the two kinds of songs because the two signals are averaged. (2) Since only the data when the fundamental period is detected from two signals at the same time is adopted, an accurate average value can be obtained when the signal changes drastically. (3) Perform averaging It is possible to provide a signal comparison device having a characteristic that the time interval during which the operation is performed becomes constant and is suitable for applications such as displaying the pitch difference.

【0045】以下、本発明の第3の実施例について、図
面を参照しながら説明する。第3の実施例の信号比較装
置の構成は図4のブロック図と同じである。
The third embodiment of the present invention will be described below with reference to the drawings. The configuration of the signal comparison apparatus of the third embodiment is the same as the block diagram of FIG.

【0046】図7は制御手段403、サンプリング手段
405,408の動作を示すPADである。これらの処
理は割り込みで行われる。なお、説明の中で使用する変
数のうちisL0,isR0,isLR0,scL,scR,icntはゼロに
初期化されているものとする。
FIG. 7 is a PAD showing the operations of the control means 403 and the sampling means 405, 408. These processes are performed by interruption. It should be noted that isL0, isR0, isLR0, scL, scR, and icnt among variables used in the description are initialized to zero.

【0047】まず、タイマ割り込みが発生すると、第1
の信号の基本周期検出が出来ているかどうか調べるため
に、基本周期検出フラグ(PRL)をチェックする(ステ
ップ1)。基本周期が検出されている場合には、基本周
期数カウンタ(isL0)がインクリメントされる(ステッ
プ2)。
First, when a timer interrupt occurs, the first
The basic cycle detection flag (PRL) is checked to see if the basic cycle of the signal is detected (step 1). When the basic cycle is detected, the basic cycle number counter (isL0) is incremented (step 2).

【0048】基本周期が検出されていない場合には、処
理は何も行われない。第2の信号に関しても同様の処理
を行う(ステップ3,4)。
If the basic period is not detected, no processing is performed. Similar processing is performed for the second signal (steps 3 and 4).

【0049】つぎに、両方の信号に対してピッチ検出が
できているかどうかを判定する(ステップ5)。両方の
信号の基本周期が検出されている場合には、それぞれの
基本周期をcent'値に変換する(ステップ6)。検出さ
れた第1の信号のcent'値は、累算用変数(scL)に、第
2の信号のcent'値は累算用変数(scR)に累算され、累
算数カウンタ(isLR0)がインクリメントされる(ステ
ップ7)。基本周期検出フラグ(PRL,PRR)はリセット
される(ステップ8)。
Next, it is determined whether pitch detection is possible for both signals (step 5). If the fundamental period of both signals is detected, each fundamental period is converted into a cent 'value (step 6). The detected cent 'value of the first signal is accumulated in the accumulation variable (scL), and the cent' value of the second signal is accumulated in the accumulation variable (scR), and the accumulated number counter (isLR0) It is incremented (step 7). The basic cycle detection flags (PRL, PRR) are reset (step 8).

【0050】両方の基本周期が検出されていない場合に
は、処理は何も行われない。割り込み回数のカウンタ
(icnt)は基本周期検出の有無にかかわらず、割り込み
発生のたびにインクリメントされる(ステップ9)。
If both basic periods have not been detected, no processing is performed. The interrupt count counter (icnt) is incremented each time an interrupt occurs, regardless of whether or not the basic cycle is detected (step 9).

【0051】割り込み回数が基準値に達したかどうかチ
ェックし(ステップ10)、達した場合には、累算結果
(scL,scR)をバッファ(sscL,sscR)に、データ数
(icLR0)をバッファ(isLR1)に格納し(ステップ1
1)、各変数をクリアする(ステップ12)。そして、
ピッチデータ累算完了フラグ(CCNT)をセットする(ス
テップ13)。
It is checked whether or not the number of interrupts has reached the reference value (step 10). If the number of interrupts has been reached, the accumulation result (scL, scR) is stored in the buffer (sscL, sscR) and the number of data (icLR0) is stored in the buffer. Store in (isLR1) (Step 1
1) Clear each variable (step 12). And
A pitch data accumulation completion flag (CCNT) is set (step 13).

【0052】以上が、割り込みで処理される、データの
累算処理の内容である。平均化手段406,409の累
算結果の平均化処理、比較手段410の処理は第2の実
施例と同様であるが、第1,第2の信号の基本周期検出
数が計数されているので、比較結果の補助情報として利
用できる。すなわち、たとえば、図6のステップ2でデ
ータ数isLR1が必要数MIN未満の場合に、第1の信号の検
出が少ないのか、第2の信号の検出が少ないのかが分か
る。たとえば、第1の信号がユーザのマイク入力音声、
第2の信号がカラオケメディアに記録されている模範歌
唱音声とすると、第1の信号の検出数が少なくて、第2
の信号は十分な場合、ユーザがその部分で歌を歌ってい
ないという判定をするというような利用方法が考えられ
る。
The above is the contents of the data accumulation processing which is processed by the interrupt. The averaging processing of the accumulation results of the averaging means 406 and 409 and the processing of the comparing means 410 are the same as those in the second embodiment, but the basic cycle detection number of the first and second signals is counted. , Can be used as auxiliary information for comparison results. That is, for example, when the data number isLR1 is less than the required number MIN in step 2 of FIG. 6, it can be known whether the first signal is detected less or the second signal is detected less. For example, the first signal is the user's microphone input voice,
If the second signal is a model singing voice recorded in a karaoke medium, the number of detected first signals is small,
If the signal of is sufficient, it can be considered that the user determines that the part is not singing a song.

【0053】以上のように第3の実施例の信号比較装置
は、(1)2つの信号をそれぞれ平均化するので、2種
類の歌のタイミングずれのなどの瞬時的影響を排除した
誤差を算出する事ができる、(2)同時に基本周期が検
出された場合のデータのみを採用するので、信号の変化
が激しい場合に精度のよい平均値が得られる、(3)平
均を実施する時間間隔が一定となり、ピッチ差を表示す
るような応用に適する、(4)それぞれの信号のデータ
数を補助情報として利用できる、などの特徴を持つ信号
比較装置を提供できる。
As described above, the signal comparison apparatus according to the third embodiment (1) calculates the error by eliminating the instantaneous influence such as the timing deviation between the two types of songs because each of the two signals is averaged. (2) Since only the data when the basic period is detected at the same time is adopted, an accurate average value can be obtained when the signal changes drastically. (3) The time interval for performing the averaging is It is possible to provide a signal comparison device having features such as being constant and suitable for applications such as displaying a pitch difference, and (4) utilizing the number of data of each signal as auxiliary information.

【0054】以下、本発明の第4の実施例について、図
面を参照しながら説明する。第4の実施例の信号比較装
置の構成は図4のブロック図と同じである。
The fourth embodiment of the present invention will be described below with reference to the drawings. The configuration of the signal comparison device of the fourth embodiment is the same as that of the block diagram of FIG.

【0055】図8は制御手段403、サンプリング手段
405,408の動作を示すPADである。これらの処
理は割り込みで行われる。なお、説明の中で使用する変
数のうちisLR0,scL,scRはゼロに初期化されているも
のとする。
FIG. 8 is a PAD showing the operations of the control means 403 and the sampling means 405, 408. These processes are performed by interruption. Note that isLR0, scL, and scR among the variables used in the description are initialized to zero.

【0056】制御手段403は第1,第2の信号の基本
周期検出フラグを入力し、両方の信号に対してピッチ検
出ができているかどうかを判定する(ステップ1)。両
方の信号の基本周期が検出されている場合には、それぞ
れの基本周期をcent'値に変換する(ステップ2)。検
出された第1の信号のcent'値は、累算用変数(scL)
に、第2の信号のcent'値は累算用変数(scR)に累算さ
れ、累算数カウンタ(isLR0)がインクリメントされる
(ステップ3)。基本周期検出フラグ(PRL,PRR)はリ
セットされる(ステップ4)。
The control means 403 inputs the fundamental period detection flags of the first and second signals and determines whether pitch detection is possible for both signals (step 1). If the fundamental period of both signals is detected, each fundamental period is converted into a cent 'value (step 2). The cent 'value of the detected first signal is the accumulation variable (scL)
Then, the cent 'value of the second signal is accumulated in the accumulation variable (scR), and the accumulated number counter (isLR0) is incremented (step 3). The basic cycle detection flags (PRL, PRR) are reset (step 4).

【0057】基本周期が検出されていない場合には、処
理は何も行われない。累算数(isLR0)が基準値に達し
たかどうかチェックし(ステップ5)、達した場合に
は、累算結果(scL,scR)をバッファ(sscL,sscR)に
格納し(ステップ6)、各変数をクリアする(ステップ
7)。そして、ピッチデータ累算完了フラグ(CCNT)を
セットする(ステップ8)。
If the basic period is not detected, no processing is performed. It is checked whether the accumulated number (isLR0) has reached the reference value (step 5), and if it has reached, the accumulated result (scL, scR) is stored in the buffer (sscL, sscR) (step 6). Clear the variables (step 7). Then, the pitch data accumulation completion flag (CCNT) is set (step 8).

【0058】以上が、割り込みで処理される、データの
累算処理の内容である。つぎに、平均化手段406,4
09の累算結果の平均化処理について説明する。図9は
累算結果を平均する処理のPADである。
The above is the contents of the data accumulation processing which is processed by the interrupt. Next, the averaging means 406, 4
The averaging process of the accumulation result of 09 will be described. FIG. 9 is a PAD of processing for averaging accumulated results.

【0059】平均化処理は、割り込み処理にする必要は
ない。割り込み負荷を軽くするために通常処理とする。
マイコンで初期設定後キースキャンなどのループ処理を
行う中で、ピッチデータ累算完了フラグ(CCNT)がセッ
トされている場合に、平均処理を実施する(ステップ
1)。
The averaging process need not be an interrupt process. Normal processing is used to reduce the interrupt load.
When the pitch data accumulation completion flag (CCNT) is set during the loop processing such as the key scan after initialization by the microcomputer, the averaging processing is executed (step 1).

【0060】平均化処理では、まず累算データ(sscL)
/累算数(icnt0)を平均ピッチデータ(avcL)、累算
データ(sscR)/累算数(icnt0)を平均ピッチデータ
(avcR)とし(ステップ2)、第1,第2の信号の平均
完了フラグ(SRL,SRR)をセットする。
In the averaging process, first, accumulated data (sscL)
/ Accumulation number (icnt0) is the average pitch data (avcL), accumulation data (sscR) / Accumulation number (icnt0) is the average pitch data (avcR) (step 2), and the average completion flag for the first and second signals Set (SRL, SRR).

【0061】以上が平均化処理の内容である。比較手段
410の処理は第1の実施例と同様である。
The above is the contents of the averaging process. The processing of the comparison means 410 is similar to that of the first embodiment.

【0062】以上のように第4の実施例の信号比較装置
は、(1)2つの信号をそれぞれ平均化するので、2種
類の歌のタイミングずれのなどの瞬時的影響を排除した
誤差を算出する事ができる、(2)同時に基本周期が検
出された場合のデータのみを採用するので、信号の変化
が激しい場合に精度のよい平均値が得られる、(3)平
均するデータ数が一定となり、ピッチ差の信頼性が高
く、キーコントローラの制御データのような応用に適す
る、などの特徴を持つ信号比較装置を提供できる。
As described above, the signal comparison apparatus of the fourth embodiment (1) calculates the error by eliminating the instantaneous influence such as the timing deviation of the two kinds of songs, because the two signals are averaged. (2) Since only the data when the fundamental period is detected at the same time is adopted, an accurate average value can be obtained when the signal changes drastically. (3) The number of data to be averaged becomes constant. It is possible to provide a signal comparison device having features such that the pitch difference is highly reliable and is suitable for applications such as control data of a key controller.

【0063】[0063]

【発明の効果】以上のように本発明は、複数の信号の特
徴量検出フラグに応じてそれぞれの信号の特徴量をサン
プリング・平均処理し、比較を行うことにより、それぞ
れの信号のタイミングずれのなどの瞬時的影響を排除し
た比較を行えるという特徴を持つ信号比較装置を提供で
きる。
As described above, according to the present invention, the characteristic amounts of the respective signals are sampled and averaged according to the characteristic amount detection flags of the plurality of signals, and the comparison is performed to detect the timing deviation of the respective signals. It is possible to provide a signal comparison device having a feature that comparisons can be performed while eliminating instantaneous influences such as.

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

【図1】本発明の第1の実施例における信号比較装置の
構成を示すブロック図
FIG. 1 is a block diagram showing a configuration of a signal comparison device according to a first embodiment of the present invention.

【図2】同第1の実施例におけるピッチデータのサンプ
リング・累算処理のPAD図
FIG. 2 is a PAD diagram of pitch data sampling / accumulation processing in the first embodiment.

【図3】同第1の実施例における累算結果を平均する処
理のPAD図
FIG. 3 is a PAD diagram of processing for averaging accumulated results in the first embodiment.

【図4】本発明の第2の実施例における信号比較装置の
構成を示すブロック図
FIG. 4 is a block diagram showing a configuration of a signal comparison device according to a second embodiment of the present invention.

【図5】同第2の実施例におけるピッチデータのサンプ
リング・累算処理のPAD図
FIG. 5 is a PAD diagram of pitch data sampling / accumulation processing in the second embodiment.

【図6】同第2の実施例における累算結果を平均する処
理のPAD図
FIG. 6 is a PAD diagram of a process of averaging accumulated results in the second embodiment.

【図7】本発明の第3の実施例におけるピッチデータの
サンプリング・累算処理のPAD図
FIG. 7 is a PAD diagram of pitch data sampling / accumulation processing in the third embodiment of the present invention.

【図8】本発明の第4の実施例におけるピッチデータの
サンプリング・累算処理のPAD図
FIG. 8 is a PAD diagram of pitch data sampling / accumulation processing according to a fourth embodiment of the present invention.

【図9】同第4の実施例における累算結果を平均する処
理のPAD図
FIG. 9 is a PAD diagram of processing for averaging accumulated results in the fourth embodiment.

【符号の説明】[Explanation of symbols]

101,105,404,407 基本周期入力端子 102,106,401,402 基本周期検出フラグ
入力端子 103,107,405,408 サンプリング手段 104,108,406,409 平均化手段 109,410 比較手段 110,411 出力端子 111,412 マイクロコンピュータ 403 制御手段
101, 105, 404, 407 Basic period input terminal 102, 106, 401, 402 Basic period detection flag input terminal 103, 107, 405, 408 Sampling means 104, 108, 406, 409 Averaging means 109, 410 Comparison means 110, 411 Output terminal 111, 412 Microcomputer 403 Control means

───────────────────────────────────────────────────── フロントページの続き (72)発明者 沼本 竜彦 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Tatsuhiko Numamoto 1006 Kadoma, Kadoma City, Osaka Prefecture Matsushita Electric Industrial Co., Ltd.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 第1の信号の特徴量検出フラグに応じて
前記第1の信号の特徴量をサンプリングする第1のサン
プリング手段と、 サンプリングされた前記第1の信号の特徴量を平均する
第1の平均化手段と、 第2の信号の特徴量検出フラグに応じて前記第2の信号
の特徴量をサンプリングする第2のサンプリング手段
と、 サンプリングされた前記第2の信号の特徴量を平均する
第2の平均化手段と、 平均化された前記第1および第2の信号の特徴量を比較
する比較手段とで構成される信号比較装置。
1. A first sampling means for sampling the feature amount of the first signal according to a feature amount detection flag of the first signal; and a first averaging feature amount of the sampled first signal. 1 averaging means, second sampling means for sampling the feature quantity of the second signal according to the feature quantity detection flag of the second signal, and averaging the feature quantity of the sampled second signal A signal comparison device comprising: a second averaging means for performing comparison and a comparison means for comparing the feature amounts of the averaged first and second signals.
【請求項2】 第1の信号の特徴量検出フラグと第2の
信号の特徴量検出フラグとに応じた制御信号を出力する
制御手段と、 前記制御信号に応じて第1の信号の特徴量をサンプリン
グする第1のサンプリング手段と、 サンプリングされた第1の信号の特徴量を平均する第1
の平均化手段と、 前記制御信号に応じて第2の信号の特徴量をサンプリン
グする第2のサンプリング手段と、 サンプリングされた第2の信号の特徴量を平均する第2
の平均化手段と、平均化された第1および第2の信号の
特徴量を比較する比較手段とで構成される信号比較装
置。
2. A control means for outputting a control signal according to the feature amount detection flag of the first signal and the feature amount detection flag of the second signal, and a feature amount of the first signal according to the control signal. Sampling means for sampling the first signal, and a first sampling means for averaging the feature quantities of the sampled first signals.
Averaging means, second sampling means for sampling the characteristic amount of the second signal according to the control signal, and second averaging the characteristic amounts of the sampled second signals.
Signal averaging means and a comparing means for comparing the feature amounts of the averaged first and second signals.
【請求項3】 サンプリング手段は、一定時間ts内に
信号の特徴量が検出された場合に特徴量をサンプリング
・累算し、平均化手段は前記サンプリング手段が一定時
間ta内に基準数以上の特徴量を累算した場合に平均処
理をする請求項1記載の信号比較装置。
3. The sampling means samples / accumulates the feature quantity when the feature quantity of the signal is detected within a fixed time ts, and the averaging means has the averaging means that the sampling means has a reference number or more within a fixed time ta. The signal comparison device according to claim 1, wherein the averaging process is performed when the characteristic amounts are accumulated.
【請求項4】 信号の特徴量が信号のピッチである請求
項1または2記載の信号比較装置。
4. The signal comparison device according to claim 1, wherein the characteristic amount of the signal is the pitch of the signal.
【請求項5】 平均化手段はピッチに対応する基本周期
tをc=A*log2(t0/t),t0=1/f0,A=2n(ただし、f0:基
準周波数、n:整数)で値cに変換して平均する請求項
1または2記載の信号比較装置。
5. The averaging means sets the basic period t corresponding to the pitch to c = A * log 2 (t0 / t), t0 = 1 / f0, A = 2n (where f0: reference frequency, n: integer). 3. The signal comparison device according to claim 1, wherein the signal is converted into a value c and averaged.
【請求項6】 比較手段はピッチに対応する基本周期t
をc=A*log2(t0/t),t0=1/f0,A=2n(ただし、f0:基準
周波数、n:整数)で値cとして、このうち下位n[bit]
を2の補数として比較を行うことを特徴とする請求項1
または2記載の信号比較装置。
6. The comparing means has a basic period t corresponding to a pitch.
Is c = A * log 2 (t0 / t), t0 = 1 / f0, A = 2n (where f0: reference frequency, n: integer) and the lower c [bit]
2. The comparison is performed by using as a two's complement.
Alternatively, the signal comparison device described in 2.
【請求項7】 第1,第2のサンプリング手段は、一定
時間ts内に第1,第2の信号の特徴量が両方とも検出
された場合にそれぞれの特徴量をサンプリング・累算
し、平均化手段は前記第1,第2のサンプリング手段が
一定時間ta内に基準数以上の特徴量を累算した場合に
平均処理をする請求項2記載の信号比較装置。
7. The first and second sampling means sample and accumulate the respective characteristic amounts when both the characteristic amounts of the first and second signals are detected within a fixed time ts, and the averages are obtained. 3. The signal comparison device according to claim 2, wherein the conversion means performs an averaging process when the first and second sampling means accumulate feature quantities equal to or larger than a reference number within a fixed time ta.
【請求項8】 第1,第2のサンプリング手段は、一定
時間ts内に第1,第2の信号の特徴量が両方とも検出
された場合にそれぞれの特徴量をサンプリング・累算す
るとともに、第1,第2の信号の特徴量が検出された回
数を独立に計数し、第1、第2の平均化手段は前記第
1,第2のサンプリング手段が一定時間ta内に基準数
以上の特徴量を累算した場合に平均処理をする請求項2
記載の信号比較装置。
8. The first and second sampling means sample and accumulate the respective characteristic amounts when both the characteristic amounts of the first and second signals are detected within a fixed time ts. The number of times the characteristic quantities of the first and second signals are detected is independently counted, and the first and second averaging means have the first and second sampling means which are equal to or larger than a reference number within a fixed time ta. 3. The averaging process when the feature quantities are accumulated.
The signal comparison device described.
【請求項9】 第1,第2のサンプリング手段は、一定
時間ts内に第1,第2の信号の特徴量が両方とも検出
された場合にそれぞれの特徴量を累算し、第1,第2の
平均化手段は基準数以上の特徴量が累算された場合に平
均値を出力する請求項2記載の信号比較装置。
9. The first and second sampling means accumulate the respective characteristic amounts when both of the characteristic amounts of the first and second signals are detected within a fixed time ts, and the first and second sampling means are accumulated. 3. The signal comparison device according to claim 2, wherein the second averaging means outputs the average value when the characteristic amount equal to or larger than the reference number is accumulated.
JP5081657A 1993-04-08 1993-04-08 Signal comparing device Pending JPH06295194A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5081657A JPH06295194A (en) 1993-04-08 1993-04-08 Signal comparing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5081657A JPH06295194A (en) 1993-04-08 1993-04-08 Signal comparing device

Publications (1)

Publication Number Publication Date
JPH06295194A true JPH06295194A (en) 1994-10-21

Family

ID=13752405

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5081657A Pending JPH06295194A (en) 1993-04-08 1993-04-08 Signal comparing device

Country Status (1)

Country Link
JP (1) JPH06295194A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8999313B2 (en) 2012-09-11 2015-04-07 Norgine Bv Compositions
US9592252B2 (en) 2011-03-11 2017-03-14 Norgine Bv Colonoscopy—preparation

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9592252B2 (en) 2011-03-11 2017-03-14 Norgine Bv Colonoscopy—preparation
US8999313B2 (en) 2012-09-11 2015-04-07 Norgine Bv Compositions
US9326969B2 (en) 2012-09-11 2016-05-03 Norgine Bv Compositions
US9707297B2 (en) 2012-09-11 2017-07-18 Norgine Bv Compositions

Similar Documents

Publication Publication Date Title
US7582824B2 (en) Tempo detection apparatus, chord-name detection apparatus, and programs therefor
KR0144223B1 (en) How to score karaoke
US20040044487A1 (en) Method for analyzing music using sounds instruments
US20060246407A1 (en) System and Method for Grading Singing Data
KR960038955A (en) Automatic key regulator for music accompaniment playing device
KR20100057307A (en) Singing score evaluation method and karaoke apparatus using the same
US5018428A (en) Electronic musical instrument in which musical tones are generated on the basis of pitches extracted from an input waveform signal
CN105825868A (en) Singer effective range extraction method
JP3996565B2 (en) Karaoke equipment
JPH09251044A (en) Method and device for frequency analysis and method and device for a plurality of pitch frequency detection using it
JPH06295194A (en) Signal comparing device
JP2004102146A (en) Karaoke scoring device having vibrato grading function
JPH10161654A (en) Musical classification determining device
CN115691561B (en) Singing scoring methods, devices, equipment and storage media
CN101093660B (en) A note segmentation method and device based on double peak detection
JP3645364B2 (en) Frequency detector
JP3232112B2 (en) Measure boundary time extraction device
JP3047768B2 (en) Singing practice equipment
JP4595934B2 (en) Voice evaluation apparatus and voice evaluation method
WO2007088820A1 (en) Karaoke machine and sound processing method
KR0154991B1 (en) Singing state display device and method of electronic song half cycle
CN1457213A (en) Sonic signal long-range telecommunication terminal produced by user sound recording
JPH07199978A (en) Karaoke equipment
JPH0261760B2 (en)
KR930007791B1 (en) Pitch detection device and method for voice and acoustic sound