JP2013102327A - Deflection angle calculating device and sound processing device - Google Patents

Deflection angle calculating device and sound processing device Download PDF

Info

Publication number
JP2013102327A
JP2013102327A JP2011244396A JP2011244396A JP2013102327A JP 2013102327 A JP2013102327 A JP 2013102327A JP 2011244396 A JP2011244396 A JP 2011244396A JP 2011244396 A JP2011244396 A JP 2011244396A JP 2013102327 A JP2013102327 A JP 2013102327A
Authority
JP
Japan
Prior art keywords
declination
calculating
ratio
difference
deflection angle
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
JP2011244396A
Other languages
Japanese (ja)
Other versions
JP5765195B2 (en
Inventor
Kazunobu Kondo
多伸 近藤
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.)
Yamaha Corp
Original Assignee
Yamaha Corp
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 Yamaha Corp filed Critical Yamaha Corp
Priority to JP2011244396A priority Critical patent/JP5765195B2/en
Publication of JP2013102327A publication Critical patent/JP2013102327A/en
Application granted granted Critical
Publication of JP5765195B2 publication Critical patent/JP5765195B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To easily calculate a complex number deflection angle.SOLUTION: A deflection angle calculating section 20 converts a real part Re[X] and an imaginary part Im[X] of a complex number X into a non-negative value by code inversion, and calculates a sum M and a difference S of the real part Re[X] and the imaginary part Im[X]. The deflection angle calculating section 20 calculates a ratio R of the difference S to the sum M, and calculates from the ratio R a provisional deflection angle φ of the complex number X. For calculating the provisional deflection angle φ, for example, an approximation formula "φ=(π/4)x(-R+1)" is applied. The deflection angle calculating section 20 converts the provisional deflection angle φ into a deflection angle θ corresponding to quadrant to which the complex number X before code inversion belongs.

Description

本発明は、複素数の偏角を算定する技術に関する。   The present invention relates to a technique for calculating an argument of a complex number.

複素数の偏角を算定するには逆正接(アークタンジェント)の演算が必要である。逆正接の直接的な演算は困難であるから、逆正接の数値を事前に記憶したROM等の記憶回路(テーブル)が一般的には利用される。しかし、記憶回路の肥大化等の問題が発生し得る。そこで、特許文献1には、逆正接を近似的に演算する技術が開示されている。   In order to calculate the argument of a complex number, an arc tangent calculation is required. Since direct calculation of arc tangent is difficult, a storage circuit (table) such as a ROM that stores arc tangent values in advance is generally used. However, problems such as enlargement of the memory circuit may occur. Therefore, Patent Document 1 discloses a technique for approximately calculating an arctangent.

特開2001−285246号公報JP 2001-285246 A

特許文献1の技術では、I信号とQ信号との間で除算を実行する必要がある。しかし、信号間の除算はゼロ除算となる可能性があるから、ゼロ除算の場合に対処するための特別な措置が必要である。以上の事情を考慮して、本発明は、複素数の偏角を簡便に算定することを目的とする。   In the technique of Patent Document 1, it is necessary to perform division between the I signal and the Q signal. However, since division between signals can be division by zero, special measures are needed to deal with the case of division by zero. In view of the above circumstances, an object of the present invention is to easily calculate the argument of a complex number.

本発明の偏角算定装置は、複素数の偏角を算定する装置であって、複素数の実部および虚部を符号反転により非負値に変換する第1変換手段と、第1変換手段による処理後の実部と虚部との和および差を算定する和差算定手段と、和に対する差の比を算定する比算定手段と、算定手段が算定した比から複素数の暫定偏角を算定する偏角暫定手段と、符号反転前の複素数が属する象限に対応する偏角に暫定偏角を変換する第2変換手段とを具備する。以上の構成では、複素数の実部と虚部との和に対する差の比に応じて複素数の偏角が算定される。実部および虚部は符号反転により非負値に変換されるから、比の分母(除数)に位置する和がゼロとなることはない(すなわちゼロ除算は発生しない)。したがって、ゼロ除算に対処するための特別な措置が必要な構成と比較して複素数の偏角を簡便に算定できるという利点がある。   The declination calculating apparatus of the present invention is an apparatus for calculating the declination of a complex number, and includes a first conversion unit that converts a real part and an imaginary part of a complex number to a non-negative value by sign inversion, and after processing by the first conversion unit. Sum-difference calculating means for calculating the sum and difference between the real part and imaginary part, ratio calculating means for calculating the ratio of the difference to the sum, and declination for calculating the provisional argument of the complex number from the ratio calculated by the calculating means Provisional means, and second conversion means for converting the provisional deviation angle into a deviation angle corresponding to the quadrant to which the complex number before sign inversion belongs. In the above configuration, the argument of the complex number is calculated according to the ratio of the difference between the real part and the imaginary part of the complex number. Since the real part and the imaginary part are converted into non-negative values by sign inversion, the sum located in the denominator (divisor) of the ratio never becomes zero (that is, division by zero does not occur). Therefore, there is an advantage that the complex argument can be easily calculated as compared with a configuration that requires special measures to deal with division by zero.

本発明の好適な態様において、偏角暫定手段は、比Rから以下の近似式(A)で暫定偏角φを算定する。
φ=(π/4)・(−R+1) ……(A)
以上の態様では、近似式(A)の演算で暫定偏角を簡便に算定できるという利点がある。ただし、本発明において比Rから暫定偏角φを特定する方法は任意である。
In a preferred aspect of the present invention, the declination provisional means calculates the provisional declination φ from the ratio R by the following approximate expression (A).
φ = (π / 4) ・ (−R + 1) (A)
The above aspect has an advantage that the provisional declination can be easily calculated by the calculation of the approximate expression (A). However, in the present invention, a method for specifying the provisional deviation angle φ from the ratio R is arbitrary.

本発明の好適な態様に係る音響処理装置は、以上に例示した各形態の偏角算定装置を適用した構成である。本発明の第1態様の音響処理装置は、左右チャネルの各々について音響信号の複素スペクトルを生成する周波数分析手段と、左右チャネルの各々について複素スペクトルの周波数毎の偏角を算定する偏角算定手段と、偏角算定手段が算定した左右チャネルの周波数毎の偏角の差異を低減する位相調整手段と、位相調整手段による処理後の各チャネルの複素スペクトルから左右チャネルの音響信号を生成する信号生成手段とを具備し、偏角算定手段は、複素スペクトルの実部および虚部を符号反転により非負値に変換する第1変換手段と、第1変換手段による処理後の実部と虚部との和および差を算定する和差算定手段と、和に対する差の比を算定する比算定手段と、比算定手段が算定した比から複素数の暫定偏角を算定する偏角暫定手段と、符号反転前の複素数が属する象限に対応する偏角に暫定偏角を変換する第2変換手段とを含む。以上の態様では、偏角算定手段が算定した左右チャネルの周波数毎の偏角の差異が低減されたうえで各チャネルの複素スペクトルから左右チャネルの音響信号が生成される。したがって、残響成分を低減した左右チャネルの音響信号を生成できるという利点がある。なお、以上の態様の具体例は例えば第2実施形態として後述される。   The sound processing apparatus according to a preferred aspect of the present invention has a configuration to which the deflection angle calculating apparatus of each form exemplified above is applied. The acoustic processing apparatus according to the first aspect of the present invention includes a frequency analysis unit that generates a complex spectrum of an acoustic signal for each of the left and right channels, and a declination calculation unit that calculates a declination for each frequency of the complex spectrum for each of the left and right channels. And a phase adjustment means for reducing the difference in the deflection angle for each frequency of the left and right channels calculated by the deviation angle calculation means, and signal generation for generating left and right channel acoustic signals from the complex spectrum of each channel processed by the phase adjustment means Means for converting the real part and the imaginary part of the complex spectrum into non-negative values by sign inversion, and the real part and the imaginary part after processing by the first conversion means. A sum difference calculating means for calculating a sum and a difference; a ratio calculating means for calculating a ratio of the difference to the sum; a declination provisional means for calculating a temporary declination of a complex number from the ratio calculated by the ratio calculating means; The deflection angle complex number No. inversion before correspond to quadrants belonging and a second converting means for converting the provisional declination. In the above aspect, the left and right channel acoustic signals are generated from the complex spectrum of each channel after the difference in the deflection angle for each frequency of the left and right channels calculated by the deflection angle calculating means is reduced. Therefore, there is an advantage that the left and right channel acoustic signals with reduced reverberation components can be generated. In addition, the specific example of the above aspect is later mentioned as 2nd Embodiment, for example.

本発明の第2態様に係る音響処理装置は、音響信号の複素スペクトルを単位期間毎に生成する周波数分析手段と、各単位期間の複素スペクトルの周波数毎の偏角を算定する偏角算定手段と、相前後する各単位期間での偏角の変化量を周波数毎に算定する偏角解析手段と、音響信号に含まれる正弦波成分の周波数を変化量の時間変動に応じて特定する音響評価手段とを具備し、偏角算定手段は、複素スペクトルの実部および虚部を符号反転により非負値に変換する第1変換手段と、第1変換手段による処理後の実部と虚部との和および差を算定する和差算定手段と、和に対する差の比を算定する比算定手段と、比算定手段が算定した比から複素数の暫定偏角を算定する偏角暫定手段と、符号反転前の複素数が属する象限に対応する偏角に暫定偏角を変換する第2変換手段とを含む。以上の態様では、相前後する単位期間での偏角の変化量の時間変動に応じて正弦波成分の周波数を簡便に特定することが可能である。なお、以上の態様の具体例は例えば第3実施形態として後述される。   The sound processing apparatus according to the second aspect of the present invention includes a frequency analysis unit that generates a complex spectrum of an acoustic signal for each unit period, and a declination calculation unit that calculates a declination for each frequency of the complex spectrum of each unit period. , A declination analysis means for calculating the change amount of the declination in each unit period before and after each frequency, and an acoustic evaluation means for specifying the frequency of the sine wave component included in the acoustic signal according to the time variation of the change amount The declination calculating means includes a first conversion means for converting the real part and the imaginary part of the complex spectrum into a non-negative value by sign inversion, and the sum of the real part and the imaginary part after processing by the first conversion means. And a difference calculating means for calculating the difference, a ratio calculating means for calculating the ratio of the difference to the sum, a declining provisional means for calculating a temporary declination of a complex number from the ratio calculated by the ratio calculating means, and before sign inversion Temporary deviation in the deviation corresponding to the quadrant to which the complex number belongs And a second converting means for converting the. In the above aspect, it is possible to easily specify the frequency of the sine wave component in accordance with the temporal variation of the variation amount of the declination in the unit periods that follow each other. In addition, the specific example of the above aspect is later mentioned as 3rd Embodiment, for example.

以上の各態様に係る定位解析装置は、複素数の偏角の算定に専用されるDSP(Digital Signal Processor)などのハードウェア(電子回路)によって実現されるほか、CPU(Central Processing Unit)などの汎用の演算処理装置とプログラムとの協働によっても実現される。本発明に係るプログラムは、複素数の実部および虚部を符号反転により非負値に変換する第1変換処理(SA1)と、第1変換処理後の実部と虚部との和および差を算定する和差算定処理(SA1)と、和に対する差の比を算定する比算定処理(SA2)と、比算定処理で算定した比から複素数の暫定偏角を算定する偏角暫定処理(SA3)と、符号反転前の複素数が属する象限に対応する偏角に暫定偏角を変換する第2変換処理(SA4)とをコンピュータに実行させる。以上のプログラムによれば、本発明に係る偏角算定装置と同様の作用および効果が奏される。本発明のプログラムは、コンピュータが読取可能な記録媒体に格納された形態で提供されてコンピュータにインストールされるほか、通信網を介した配信の形態で提供されてコンピュータにインストールされる。   The localization analysis apparatus according to each of the above aspects is realized by hardware (electronic circuit) such as DSP (Digital Signal Processor) dedicated to calculation of complex argument, and also by general-purpose such as CPU (Central Processing Unit). This is also realized by cooperation between the arithmetic processing unit and the program. The program according to the present invention calculates a first conversion process (SA1) for converting a real part and an imaginary part of a complex number into a non-negative value by sign inversion, and a sum and a difference between the real part and the imaginary part after the first conversion process. Sum difference calculation processing (SA1), ratio calculation processing (SA2) for calculating the ratio of the difference to the sum, declination provisional processing (SA3) for calculating the temporary declination of the complex number from the ratio calculated in the ratio calculation processing, And causing the computer to execute a second conversion process (SA4) for converting the provisional argument to the argument corresponding to the quadrant to which the complex number before sign inversion belongs. According to the above program, the same operation and effect as the declination calculation apparatus according to the present invention are exhibited. The program of the present invention is provided in a form stored in a computer-readable recording medium and installed in the computer, or is provided in a form distributed via a communication network and installed in the computer.

第1実施形態に係る偏角算定装置のブロック図である。It is a block diagram of a declination calculating apparatus according to the first embodiment. 偏角算定部の動作のフローチャートである。It is a flowchart of operation | movement of a declination calculation part. 偏角算定部の動作の説明図である。It is explanatory drawing of operation | movement of a declination calculation part. 比と暫定偏角との関係を示すグラフである。It is a graph which shows the relationship between ratio and provisional deflection angle. 偏角の現実値と2乗誤差との関係を示すグラフである。It is a graph which shows the relationship between the actual value of a declination, and a square error. 第2実施形態に係る音響処理装置のブロック図である。It is a block diagram of the sound processing apparatus which concerns on 2nd Embodiment. 第3実施形態に係る音響処理装置のブロック図である。It is a block diagram of the sound processing apparatus which concerns on 3rd Embodiment.

<第1実施形態>
図1は、本発明の第1実施形態に係る偏角算定装置100のブロック図である。偏角算定装置100は、複素数Xの偏角θを算定する装置であり、演算処理装置12と記憶装置14とを具備するコンピュータシステムで実現される。演算処理装置12は、記憶装置14に格納されたプログラムPGMを実行することで、複素数Xの偏角θを算定する偏角算定部20として機能する。記憶装置14は、演算処理装置12が実行するプログラムPGMや演算処理装置12が使用する各種のデータ(例えば複素数X)を記憶する。半導体記録媒体や磁気記録媒体等の公知の記録媒体または複数種の記録媒体の組合せが記憶装置14として任意に利用される。
<First Embodiment>
FIG. 1 is a block diagram of a declination calculation apparatus 100 according to the first embodiment of the present invention. The declination calculation apparatus 100 is an apparatus that calculates the declination θ of the complex number X, and is realized by a computer system that includes the arithmetic processing unit 12 and the storage device 14. The arithmetic processing unit 12 functions as the declination calculating unit 20 that calculates the declination θ of the complex number X by executing the program PGM stored in the storage device 14. The storage device 14 stores a program PGM executed by the arithmetic processing device 12 and various data (for example, complex number X) used by the arithmetic processing device 12. A known recording medium such as a semiconductor recording medium or a magnetic recording medium or a combination of a plurality of types of recording media is arbitrarily used as the storage device 14.

図2は、偏角算定部20が偏角θを算定する処理のフローチャートである。例えば利用者からの指示を契機として図2の処理が開始される。処理を開始すると、偏角算定部20は、複素数Xの実部Re[X]および虚部Im[X]を符号反転により非負値(ゼロまたは正数)に変換したうえで、実部Re[X]と虚部Im[X]との和Mおよび差Sを算定する(SA1)。実部Re[X]および虚部Im[X]を符号反転により非負値に変換する処理は、図3に示すように、複素平面の第2象限から第4象限の各々に属する複素数Xを第1象限内の数値に変換する処理(写像)に相当する。   FIG. 2 is a flowchart of processing in which the deflection angle calculation unit 20 calculates the deflection angle θ. For example, the process of FIG. 2 is started in response to an instruction from the user. When the processing is started, the declination calculating unit 20 converts the real part Re [X] and the imaginary part Im [X] of the complex number X to non-negative values (zero or positive number) by sign inversion, and then the real part Re [ The sum M and the difference S between X] and the imaginary part Im [X] are calculated (SA1). The process of converting the real part Re [X] and the imaginary part Im [X] into non-negative values by sign inversion is performed by converting the complex numbers X belonging to each of the second to fourth quadrants of the complex plane as shown in FIG. This corresponds to a process (mapping) for converting to a numerical value in one quadrant.

第1に、実部Re[X]および虚部Im[X]の双方が非負値である場合(すなわち複素数Xが複素平面の第1象限内の数値である場合)、偏角算定部20は、以下の数式(A1)および数式(B1)で表現されるように、実部Re[X]および虚部Im[X]の符号反転(すなわち象限間の移動)を実行せずに和Mおよび差Sを算定する。
M=Re[X]+Im[X] ……(A1)
S=Re[X]−Im[X] ……(B1)
First, when both the real part Re [X] and the imaginary part Im [X] are non-negative values (that is, when the complex number X is a numerical value in the first quadrant of the complex plane), the declination calculating unit 20 As expressed by the following formulas (A1) and (B1), the sum M and the real part Re [X] and the imaginary part Im [X] without performing sign inversion (that is, movement between quadrants) The difference S is calculated.
M = Re [X] + Im [X] (A1)
S = Re [X] -Im [X] (B1)

第2に、実部Re[X]が負数で虚部Im[X]が非負値である場合(すなわち複素数Xが複素平面の第2象限内の数値である場合)、偏角算定部20は、以下の数式(A2)および数式(B2)で表現されるように、実部Re[X]の符号を反転したうえで和Mおよび差Sを算定する。
M=(−Re[X])+Im[X] ……(A2)
S=(−Re[X])−Im[X] ……(B2)
Second, when the real part Re [X] is a negative number and the imaginary part Im [X] is a non-negative value (that is, when the complex number X is a numerical value in the second quadrant of the complex plane), the declination calculating unit 20 The sum M and the difference S are calculated after inverting the sign of the real part Re [X] as expressed by the following formulas (A2) and (B2).
M = (-Re [X]) + Im [X] (A2)
S = (-Re [X])-Im [X] (B2)

第3に、実部Re[X]および虚部Im[X]の双方が負数である場合(すなわち複素数Xが複素平面の第3象限内の数値である場合)、偏角算定部20は、以下の数式(A3)および数式(B3)で表現されるように、実部Re[X]および虚部Im[X]の双方の符号を反転したうえで和Mおよび差Sを算定する。
M=(−Re[X])+(−Im[X]) ……(A3)
S=(−Re[X])−(−Im[X]) ……(B3)
Third, when both the real part Re [X] and the imaginary part Im [X] are negative numbers (that is, when the complex number X is a numerical value in the third quadrant of the complex plane), the declination calculating unit 20 As expressed by the following equations (A3) and (B3), the sum M and the difference S are calculated after inverting the signs of both the real part Re [X] and the imaginary part Im [X].
M = (-Re [X]) + (-Im [X]) (A3)
S = (-Re [X])-(-Im [X]) (B3)

第4に、実部Re[X]が非負値で虚部Im[X]が負数である場合(すなわち複素数Xが複素平面の第4象限内の数値である場合)、偏角算定部20は、以下の数式(A4)および数式(B4)で表現されるように、虚部Im[X]の符号を反転したうえで和Mおよび差Sを算定する。
M=Re[X]+(−Im[X]) ……(A4)
S=Re[X]−(−Im[X]) ……(B4)
Fourth, when the real part Re [X] is a non-negative value and the imaginary part Im [X] is a negative number (that is, when the complex number X is a numerical value in the fourth quadrant of the complex plane), the declination calculating unit 20 The sum M and the difference S are calculated after inverting the sign of the imaginary part Im [X] as expressed by the following mathematical formulas (A4) and (B4).
M = Re [X] + (-Im [X]) (A4)
S = Re [X] − (− Im [X]) (B4)

以上の説明から理解されるように、演算処理装置12は、複素数Xの実部Re[X]および虚部Im[X]を符号反転により非負値に変換する要素(第1変換手段)、および、変換後の実部Re[X]と虚部Im[X]との和Mおよび差Sを算定する要素(和差算定手段)として機能する。   As can be understood from the above description, the arithmetic processing unit 12 converts the real part Re [X] and the imaginary part Im [X] of the complex number X into non-negative values by sign inversion (first conversion means), and , Function as an element (sum difference calculation means) for calculating the sum M and difference S of the converted real part Re [X] and imaginary part Im [X].

実部Re[X]と虚部Im[X]との和Mおよび差Sを算定すると、偏角算定部20は、和Mに対する差Sの比R(R=S/M)を算定する(SA2)。そして、偏角算定部20は、ステップSA2で算定した比Rに応じて暫定的な偏角(以下「暫定偏角」という)φを算定する(SA3)。暫定偏角φは、ステップSA1での符号反転が加味された状態の仮想的な偏角であり、複素数Xが第2象限から第4象限に属する場合には実際の偏角θとは相違するという事情を考慮して偏角θとは表記を区別している。比Rと暫定偏角φとの関係について以下に詳述する。   When the sum M and the difference S of the real part Re [X] and the imaginary part Im [X] are calculated, the declination calculation unit 20 calculates a ratio R (R = S / M) of the difference S with respect to the sum M ( SA2). Then, the declination calculation unit 20 calculates a temporary declination (hereinafter referred to as “provisional declination”) φ according to the ratio R calculated in step SA2 (SA3). The provisional declination φ is a virtual declination with the sign inversion in step SA1 taken into account, and is different from the actual declination θ when the complex number X belongs to the second quadrant to the fourth quadrant. Therefore, the notation is distinguished from the argument θ. The relationship between the ratio R and the provisional deflection angle φ will be described in detail below.

複素数Xの偏角θは、以下の数式(1)で表現されるように、実部Re[X]に対する虚部Im[X]の比(Im[X]/Re[X])の逆正接(アークタンジェント)として定義される。
θ=arctan(Im[X]/Re[X]) ……(1)
また、実部Re[X]および虚部Im[X]は以下の数式(2a)および数式(2b)で表現される。記号rは複素数Xの絶対値である。
Re[X]=r・cosθ ……(2a)
Im[X]=r・sinθ ……(2b)
The argument θ of the complex number X is the arctangent of the ratio of the imaginary part Im [X] to the real part Re [X] (Im [X] / Re [X]), as expressed by the following equation (1). (Arc tangent).
θ = arctan (Im [X] / Re [X]) (1)
The real part Re [X] and the imaginary part Im [X] are expressed by the following formulas (2a) and (2b). The symbol r is the absolute value of the complex number X.
Re [X] = r · cosθ (2a)
Im [X] = r · sinθ (2b)

したがって、複素数Xが第1象限に属する場合の実部Re[X]と虚部Im[X]との和Mおよび差Sは以下の数式(3a)および数式(3b)で表現される。
M=Re[X]+Im[X]=r(cosθ+sinθ)
=(√2)r・cos(θ−π/4) ……(3a)
S=Re[X]−Im[X]=r(cosθ−sinθ)
=(√2)r・cos(θ−3π/4)
=−(√2)r・sin(θ−π/4) ……(3b)
Therefore, the sum M and the difference S of the real part Re [X] and the imaginary part Im [X] when the complex number X belongs to the first quadrant are expressed by the following formulas (3a) and (3b).
M = Re [X] + Im [X] = r (cos θ + sin θ)
= (√2) r · cos (θ−π / 4) (3a)
S = Re [X] −Im [X] = r (cos θ−sin θ)
= (√2) r · cos (θ-3π / 4)
=-(√2) r · sin (θ-π / 4) (3b)

数式(3a)および数式(3b)から、和Mに対する差Sの比Rを表現する以下の数式(4)が導出される。
R=S/M=−tan(θ−π/4) ……(4)
数式(4)を変形することで、偏角θと比Rとの関係を表現する以下の数式(5)が導出される。
θ=−arctan(R)+π/4 ……(5)
第1実施形態ではステップSA1にて符号変換を実行する(暫定偏角φと実際の偏角θとは相違し得る)ことを考慮すると、数式(5)の偏角θを暫定偏角φに置換した以下の数式(6)が成立する。
φ=−arctan(R)+π/4 ……(6)
From the equations (3a) and (3b), the following equation (4) expressing the ratio R of the difference S to the sum M is derived.
R = S / M = −tan (θ−π / 4) (4)
By transforming Equation (4), the following Equation (5) expressing the relationship between the deflection angle θ and the ratio R is derived.
θ = -arctan (R) + π / 4 (5)
In the first embodiment, considering that code conversion is performed in step SA1 (the provisional deviation angle φ may be different from the actual deviation angle θ), the deviation angle θ in the equation (5) is changed to the provisional deviation angle φ. The following mathematical formula (6) is established.
φ = −arctan (R) + π / 4 (6)

また、比Rが、例えば−1以上かつ1以下の範囲内の数値である場合、以下の近似が成立する。
arctan(R)=(π/4)・R
したがって、数式(6)を近似(1次近似)する以下の数式(7)が導出される。
φ=(π/4)(−R+1) ……(7)
図4には、比Rと数式(6)の暫定偏角φとの関係が破線で図示され、比Rと数式(7)の暫定偏角φとの関係が実線で図示されている。数式(7)による近似が妥当であることが図4から理解される。
Further, when the ratio R is a numerical value within a range of, for example, −1 or more and 1 or less, the following approximation is established.
arctan (R) = (π / 4) · R
Therefore, the following formula (7) that approximates (first-order approximation) the formula (6) is derived.
φ = (π / 4) (− R + 1) (7)
In FIG. 4, the relationship between the ratio R and the provisional deflection angle φ in Expression (6) is illustrated by a broken line, and the relationship between the ratio R and the provisional deviation angle φ in Expression (7) is illustrated by a solid line. It can be understood from FIG. 4 that the approximation by the equation (7) is appropriate.

図1の偏角算定部20は、前述のステップSA3において、ステップSA2で算定した比Rについて数式(7)の演算を実行することで暫定偏角φを算定する。以上の説明から理解されるように、演算処理装置12は、和Mに対する差Sの比Rを算定する要素(比算定手段)、および、比Rから複素数Xの暫定偏角φを算定する要素(偏角暫定手段)として機能する。   The declination calculating unit 20 in FIG. 1 calculates the temporary declination φ by executing the calculation of Equation (7) for the ratio R calculated in step SA2 in the above-described step SA3. As understood from the above description, the arithmetic processing unit 12 calculates the ratio R of the difference S with respect to the sum M (ratio calculation means) and the element that calculates the provisional declination φ of the complex number X from the ratio R. It functions as (a declination provisional means).

以上の手順で暫定偏角φを算定すると、偏角算定部20は、暫定偏角φを、ステップSA1での符号反転前の複素数Xが属する象限に対応する実際の偏角θに変換する(SA4)。第1に、複素数Xの実部Re[X]および虚部Im[X]の双方が非負値である場合、偏角算定部20は、以下の数式(C1)で示すように、ステップSA3で算定した暫定偏角φを偏角θとして確定する。
θ=φ ……(C1)
When the provisional argument φ is calculated by the above procedure, the argument calculation unit 20 converts the provisional argument φ to an actual argument θ corresponding to the quadrant to which the complex number X before sign inversion in step SA1 belongs ( SA4). First, when both the real part Re [X] and the imaginary part Im [X] of the complex number X are non-negative values, the declination calculation unit 20 performs step SA3 as shown in the following equation (C1). The calculated provisional deflection angle φ is determined as the deflection angle θ.
θ = φ ...... (C1)

第2に、複素数Xの実部Re[X]が負数で虚部Im[X]が非負値である場合(すなわちステップSA1で複素数Xを第2象限から第1象限に変換した場合)、偏角算定部20は、以下の数式(C2)の演算で、第2象限内の複素数Xに対応する偏角θを算定する。
θ=π−φ ……(C2)
Second, when the real part Re [X] of the complex number X is negative and the imaginary part Im [X] is non-negative (that is, when the complex number X is converted from the second quadrant to the first quadrant in step SA1), The angle calculation unit 20 calculates the deflection angle θ corresponding to the complex number X in the second quadrant by the calculation of the following mathematical formula (C2).
θ = π−φ (C2)

第3に、複素数Xの実部Re[X]および虚部Im[X]の双方が負数である場合(複素数Xを第3象限から第1象限に変換した場合)、偏角算定部20は、以下の数式(C3)の演算で、第3象限内の複素数Xに対応する偏角θを算定する。
θ=φ+π ……(C3)
Third, when both the real part Re [X] and the imaginary part Im [X] of the complex number X are negative numbers (when the complex number X is converted from the third quadrant to the first quadrant), the declination calculation unit 20 The declination angle θ corresponding to the complex number X in the third quadrant is calculated by the following equation (C3).
θ = φ + π (C3)

第4に、複素数Xの実部Re[X]が非負値で虚部Im[X]が負数である場合(複素数Xを第3象限から第1象限に変換した場合)、偏角算定部20は、以下の数式(C4)の演算で、第3象限内の複素数Xに対応する偏角θを算定する。
θ=2π−φ ……(C4)
Fourth, when the real part Re [X] of the complex number X is a non-negative value and the imaginary part Im [X] is a negative number (when the complex number X is converted from the third quadrant to the first quadrant), the declination calculation unit 20 Calculates the declination θ corresponding to the complex number X in the third quadrant by the calculation of the following equation (C4).
θ = 2π−φ (C4)

すなわち、演算処理装置12は、暫定偏角φを実際の偏角θに変換する要素(第2変換手段)として機能する。以上が複素数Xの偏角θを算定する処理の具体例である。図5は、複素数Xの実際の偏角θR(横軸)と、第1実施形態の偏角算定部20が算定した偏角θの2乗誤差(θR−θ)2との関係を示すグラフである。数式(6)の近似等に起因した誤差は発生するものの、第1実施形態によれば、複素数Xの偏角θを充分に高い精度で算定できることが図5から理解される。 That is, the arithmetic processing unit 12 functions as an element (second conversion unit) that converts the temporary deviation angle φ into the actual deviation angle θ. The above is a specific example of the process for calculating the deflection angle θ of the complex number X. FIG. 5 is a graph showing the relationship between the actual deviation angle θR (horizontal axis) of the complex number X and the square error (θR−θ) 2 of the deviation angle θ calculated by the deviation angle calculation unit 20 of the first embodiment. It is. Although an error due to approximation or the like of Equation (6) occurs, it can be understood from FIG. 5 that according to the first embodiment, the deviation angle θ of the complex number X can be calculated with sufficiently high accuracy.

以上に説明したように、第1実施形態では、実部Re[X]と虚部Im[X]との和Mに対する差Sの比Rに応じて複素数Xの偏角θが算定される。実部Re[X]および虚部Im[X]は符号反転により非負値に変換されるから、比Rの分母(除数)に位置する和Mがゼロとなることはない。すなわち、ステップSA3の比Rの演算でゼロ除算は発生しない。したがって、ゼロ除算に対処するための特別な措置が必要な構成と比較して、複素数Xの偏角θを簡便に算定できるという利点がある。   As described above, in the first embodiment, the deflection angle θ of the complex number X is calculated according to the ratio R of the difference S to the sum M of the real part Re [X] and the imaginary part Im [X]. Since the real part Re [X] and the imaginary part Im [X] are converted to non-negative values by sign inversion, the sum M located in the denominator (divisor) of the ratio R never becomes zero. That is, no division by zero occurs in the calculation of the ratio R in step SA3. Therefore, there is an advantage that the declination angle θ of the complex number X can be easily calculated as compared with a configuration that requires special measures for dealing with division by zero.

なお、以上の説明では、複素数Xの実部Re[X]および虚部Im[X]の双方が負数である場合に実部Re[X]および虚部Im[X]の双方の符号を反転して和Mおよび差Sを算定したが(数式(A3),数式(B3))、和Mに対する差Sの比Rを算定する段階で符号の反転は結果的に相殺されるから、実部Re[X]および虚部Im[X]の双方が負数である場合には符号反転を省略する(すなわち、数式(A1)および数式(B1)で和Mおよび差Sを算定する)ことも可能である。   In the above description, when both the real part Re [X] and the imaginary part Im [X] of the complex number X are negative numbers, the signs of both the real part Re [X] and the imaginary part Im [X] are inverted. Therefore, the sum M and the difference S are calculated (formula (A3), formula (B3)), but the sign inversion is canceled out at the stage of calculating the ratio R of the difference S to the sum M. If both Re [X] and imaginary part Im [X] are negative numbers, the sign inversion can be omitted (that is, the sum M and the difference S are calculated by the formulas (A1) and (B1)). It is.

また、以上の説明では、数式(6)を数式(7)で近似したが、暫定偏角φの算定に近似は必須ではない。例えば、数式(6)の関係を満たすように比Rの各数値と暫定偏角φの各数値とを対応させたテーブルを記憶装置14に格納し、偏角算定部20が、ステップSA2で算定した比Rに対応する暫定偏角φをステップSA3にてテーブルから検索する構成も採用され得る。   In the above description, Equation (6) is approximated by Equation (7), but approximation is not essential for calculating the provisional deviation angle φ. For example, a table that associates each numerical value of the ratio R with each numerical value of the provisional deflection angle φ so as to satisfy the relationship of Equation (6) is stored in the storage device 14, and the deflection angle calculation unit 20 calculates in step SA2. A configuration in which the provisional deviation angle φ corresponding to the ratio R is retrieved from the table in step SA3 may be employed.

なお、実部Re[X]および虚部Im[X]の双方がゼロである場合には偏角θが不定(偏角θを定義できない状態)となる。そこで、実部Re[X]および虚部Im[X]の双方がゼロである場合、偏角算定部20は、暫定偏角φを、不定を意味する符号(NaN:Not a Number)に設定し(SA3)、暫定偏角φに対応する偏角θについても同様に不定の符号に設定する(SA4)。また、実部Re[X]および虚部Im[X]の双方がゼロである場合に、偏角算定部20が、偏角θを算定できないことを例えば画像または音声で利用者に通知(エラー通知)することも可能である。   When both the real part Re [X] and the imaginary part Im [X] are zero, the declination angle θ is indefinite (the declination angle θ cannot be defined). Therefore, when both the real part Re [X] and the imaginary part Im [X] are zero, the declination calculation unit 20 sets the temporary declination φ to a sign (NaN: Not a Number) meaning indefinite. (SA3), and the deviation angle θ corresponding to the provisional deviation angle φ is similarly set to an indefinite code (SA4). In addition, when both the real part Re [X] and the imaginary part Im [X] are zero, the declination calculation unit 20 notifies the user that the declination angle θ cannot be calculated by, for example, an image or sound (error Notification).

<第2実施形態>
本発明の第2実施形態を以下に説明する。なお、以下に例示する各形態において作用や機能が第1実施形態と同等である要素については、以上の説明で参照した符号を流用して各々の詳細な説明を適宜に省略する。
Second Embodiment
A second embodiment of the present invention will be described below. In addition, about the element which an effect | action and a function are equivalent to 1st Embodiment in each form illustrated below, each reference detailed in the above description is diverted and each detailed description is abbreviate | omitted suitably.

図6は、第2実施形態の音響処理装置110Aのブロック図である。音響処理装置110Aにはステレオ形式の音響信号xL(t)および音響信号xR(t)が信号供給装置200から供給される。左チャネルの音響信号xL(t)および右チャネルの音響信号xR(t)は、残響音が付加された音響(例えば音声や楽音)の時間領域信号である。可搬型または内蔵型の記録媒体から音響信号xL(t)および音響信号xR(t)を取得して音響処理装置110Aに供給する再生装置や、音響信号xL(t)および音響信号xR(t)を通信網から受信して音響処理装置110Aに供給する通信装置が信号供給装置200として採用され得る。   FIG. 6 is a block diagram of the sound processing apparatus 110A of the second embodiment. The audio processing device 110A is supplied with a stereo-type audio signal xL (t) and an audio signal xR (t) from the signal supply device 200. The left-channel acoustic signal xL (t) and the right-channel acoustic signal xR (t) are time domain signals of sound (for example, voice or musical sound) to which reverberation is added. A playback device that acquires the acoustic signal xL (t) and the acoustic signal xR (t) from the portable or built-in recording medium and supplies the acoustic signal to the acoustic processing device 110A, and the acoustic signal xL (t) and the acoustic signal xR (t) Can be adopted as the signal supply device 200.

音響処理装置110Aは、音響信号xL(t)および音響信号xR(t)の残響音を低減した時間領域の音響信号yL(t)および音響信号yR(t)を生成する信号処理装置であり、第1実施形態の偏角算定装置100と同様に、演算処理装置12と記憶装置14とを具備するコンピュータシステムで実現される。演算処理装置12は、記憶装置14に格納されたプログラムPGMを実行することで複数の機能(周波数分析部32,偏角算定部20,位相調整部34、信号生成部36)を実現する。なお、演算処理装置12の各機能を複数の集積回路に分散した構成や、専用の電子回路(DSP)が各機能を実現する構成も採用され得る。なお、音響信号xL(t)および音響信号xR(t)を記憶装置14に記憶することも可能である。   The acoustic processing device 110A is a signal processing device that generates the acoustic signal yL (t) and the acoustic signal yR (t) in the time domain in which the reverberant sound of the acoustic signal xL (t) and the acoustic signal xR (t) is reduced. Similar to the declination calculation apparatus 100 of the first embodiment, it is realized by a computer system including the arithmetic processing unit 12 and the storage unit 14. The arithmetic processing unit 12 realizes a plurality of functions (frequency analysis unit 32, declination calculation unit 20, phase adjustment unit 34, and signal generation unit 36) by executing the program PGM stored in the storage device 14. A configuration in which each function of the arithmetic processing unit 12 is distributed over a plurality of integrated circuits, or a configuration in which a dedicated electronic circuit (DSP) realizes each function may be employed. The acoustic signal xL (t) and the acoustic signal xR (t) can also be stored in the storage device 14.

周波数分析部32は、音響信号xL(t)の周波数スペクトルXL(k,m)と音響信号xR(t)の周波数スペクトルXR(k,m)とを時間軸上の単位期間(フレーム)毎に順次に生成する。周波数スペクトルXL(k,m)および周波数スペクトルXR(k,m)の各々は、複素数で表現された複素スペクトルである。記号kは周波数軸上の任意の1個の周波数(帯域)を指示する変数であり、記号mは時間軸上の任意の1個の単位期間を指示する変数である。周波数分析部32の処理には例えば短時間フーリエ変換等の公知の周波数分析が任意に採用され得る。   The frequency analysis unit 32 calculates the frequency spectrum XL (k, m) of the acoustic signal xL (t) and the frequency spectrum XR (k, m) of the acoustic signal xR (t) for each unit period (frame) on the time axis. Generate sequentially. Each of the frequency spectrum XL (k, m) and the frequency spectrum XR (k, m) is a complex spectrum expressed by a complex number. Symbol k is a variable that indicates an arbitrary frequency (band) on the frequency axis, and symbol m is a variable that indicates an arbitrary unit period on the time axis. For the processing of the frequency analysis unit 32, for example, a known frequency analysis such as a short-time Fourier transform can be arbitrarily employed.

偏角算定部20は、左チャネルの周波数スペクトルXL(k,m)の各周波数の偏角θL(k,m)と右チャネルの周波数スペクトルXR(k,m)の各周波数の偏角θR(k,m)とを単位期間毎に順次に算定する。以下の数式(8a)および数式(8b)から理解されるように、偏角θL(k,m)および偏角θR(k,m)は、各チャネルの周波数毎の位相(位相スペクトル)を意味する。偏角算定部20が偏角θL(k,m)および偏角θR(k,m)を算定する方法は、第1実施形態にて複素数Xの偏角θを算定した方法と同様である。したがって、第2実施形態でも第1実施形態と同様の効果が実現される。
XL(k,m)=|XL(k,m)|e-jθL(k,m) ……(8a)
XR(k,m)=|XR(k,m)|e-jθR(k,m) ……(8b)
The declination calculating unit 20 includes the declination θL (k, m) of each frequency of the frequency spectrum XL (k, m) of the left channel and the declination θR () of each frequency of the frequency spectrum XR (k, m) of the right channel. k, m) are calculated sequentially for each unit period. As can be understood from the following equations (8a) and (8b), the deflection angle θL (k, m) and the deflection angle θR (k, m) mean the phase (phase spectrum) for each channel frequency. To do. The method for calculating the argument θL (k, m) and the argument θR (k, m) by the argument calculation unit 20 is the same as the method for calculating the argument θ of the complex number X in the first embodiment. Therefore, the second embodiment can achieve the same effect as the first embodiment.
XL (k, m) = | XL (k, m) | e- jθL (k, m) (8a)
XR (k, m) = | XR (k, m) | e- jθR (k, m) (8b)

位相調整部34は、偏角算定部20が算定した偏角θL(k,m)および偏角θR(k,m)を調整する。具体的には、位相調整部34は、周波数および単位期間が相互に共通する偏角θL(k,m)と偏角θR(k,m)との差異が低減される(理想的には同相化される)ように偏角θL(k,m)および偏角θR(k,m)の片方または双方を調整する。例えば、位相調整部34は、偏角θL(k,m)と偏角θR(k,m)との差分(絶対値)Δθ(Δθ=|θL(k,m)−θR(k,m)|)を算定し、差分Δθが所定の閾値THを上回る場合(偏角θL(k,m)と偏角θR(k,m)とが相違する場合)には、以下の数式(9a)および数式(9b)で表現されるように、右チャネルの周波数スペクトルXR(k,m)の偏角(位相)θR(k,m)を左チャネルの偏角θL(k,m)に置換する。
XL(k,m)=|XL(k,m)|e-jθL(k,m) ……(9a)
XR(k,m)=|XR(k,m)|e-jθL(k,m) ……(9b)
左チャネルの周波数スペクトルXL(k,m)の振幅|XL(k,m)|および偏角θL(k,m)と右チャネルの周波数スペクトルXR(k,m)の振幅|XR(k,m)|とは変更されない。他方、左右チャネル間の差分Δθが閾値THを下回る場合、(偏角θL(k,m)と偏角θR(k,m)とが略同等である場合)、周波数スペクトルXL(k,m)および周波数スペクトルXR(k,m)は変更されない。
The phase adjustment unit 34 adjusts the argument θL (k, m) and the argument θR (k, m) calculated by the argument calculation unit 20. Specifically, the phase adjustment unit 34 reduces the difference between the declination angle θL (k, m) and the declination angle θR (k, m) that have a common frequency and unit period (ideally in-phase). One or both of the deflection angle θL (k, m) and the deflection angle θR (k, m). For example, the phase adjustment unit 34 calculates the difference (absolute value) Δθ (Δθ = | θL (k, m) −θR (k, m) between the deviation angle θL (k, m) and the deviation angle θR (k, m). When the difference Δθ exceeds a predetermined threshold value TH (when the deviation angle θL (k, m) and the deviation angle θR (k, m) are different), the following equation (9a) and As expressed by Equation (9b), the deviation angle (phase) θR (k, m) of the frequency spectrum XR (k, m) of the right channel is replaced with the deviation angle θL (k, m) of the left channel.
XL (k, m) = | XL (k, m) | e- jθL (k, m) (9a)
XR (k, m) = | XR (k, m) | e- jθL (k, m) (9b)
The amplitude | XL (k, m) | and the angle θL (k, m) of the left channel frequency spectrum XL (k, m) and the amplitude | XR (k, m) of the right channel frequency spectrum XR (k, m) ) | Is not changed. On the other hand, when the difference Δθ between the left and right channels is less than the threshold value TH (when the deflection angle θL (k, m) and the deflection angle θR (k, m) are substantially equal), the frequency spectrum XL (k, m) And the frequency spectrum XR (k, m) is not changed.

信号生成部36は、位相調整部34による処理後の周波数スペクトルXL(k,m)および周波数スペクトルXR(k,m)から時間領域の音響信号yL(t)および音響信号yR(t)を生成する。具体的には、信号生成部36は、各単位期間の周波数スペクトルXL(k,m)を例えば短時間逆フーリエ変換で時間領域信号に変換するとともに前後の単位期間について相互に連結することで左チャネルの音響信号yL(t)を生成する。右チャネルの音響信号yR(t)も同様の方法で各単位期間の周波数スペクトルXR(k,m)から生成される。音響信号yL(t)および音響信号yR(t)はスピーカ等の放音機器(図示略)に供給されて音波として再生される。   The signal generation unit 36 generates the time-domain acoustic signal yL (t) and the acoustic signal yR (t) from the frequency spectrum XL (k, m) and the frequency spectrum XR (k, m) processed by the phase adjustment unit 34. To do. Specifically, the signal generation unit 36 converts the frequency spectrum XL (k, m) of each unit period into a time domain signal by, for example, a short-time inverse Fourier transform, and connects the previous and subsequent unit periods to each other. A channel acoustic signal yL (t) is generated. The right channel acoustic signal yR (t) is also generated from the frequency spectrum XR (k, m) of each unit period in the same manner. The acoustic signal yL (t) and the acoustic signal yR (t) are supplied to a sound emitting device (not shown) such as a speaker and reproduced as a sound wave.

残響空間内での左右チャネルの収録音には相異なる伝達特性(振幅特性および位相特性)の残響音が付与される。したがって、左右チャネル間の偏角(θL(k,m),θR(k,m))の差分Δθが大きいほど残響音が優勢(高強度)に知覚されるという傾向がある。第2実施形態では、左右チャネルの振幅(|XL(k,m)|,|XR(k,m)|)を維持したまま偏角θL(k,m)と偏角θR(k,m)との差異が低減される(すなわち位相差が低減または解消される)から、残響音が低減されたステレオの音響信号yL(t)および音響信号yR(t)を生成することが可能である。   The reverberant sound having different transfer characteristics (amplitude characteristics and phase characteristics) is added to the recorded sounds of the left and right channels in the reverberation space. Therefore, the reverberant sound tends to be perceived as dominant (high intensity) as the difference Δθ between the declination angles (θL (k, m), θR (k, m)) between the left and right channels increases. In the second embodiment, the deflection angle θL (k, m) and the deflection angle θR (k, m) are maintained while maintaining the left and right channel amplitudes (| XL (k, m) |, | XR (k, m) |). Is reduced (that is, the phase difference is reduced or eliminated), it is possible to generate the stereo acoustic signal yL (t) and the acoustic signal yR (t) with reduced reverberation.

なお、以上の説明では右チャネルの偏角θR(k,m)を左チャネルの偏角θL(k,m)に置換したが、左チャネルの偏角θL(k,m)を右チャネルの偏角θR(k,m)に置換する構成も採用され得る。また、以下の数式(10a)および数式(10b)で表現されるように、右チャネルの偏角θR(k,m)および左チャネルの偏角θL(k,m)の双方を両者の平均値θave(k,m)に置換する(したがって偏角の差異は低減される)ことも可能である。
XL(k,m)=|XL(k,m)|e-jθave(k,m) ……(10a)
XR(k,m)=|XR(k,m)|e-jθave(k,m) ……(10b)
In the above description, the right channel argument θR (k, m) is replaced with the left channel argument θL (k, m), but the left channel argument θL (k, m) is replaced with the right channel argument θL (k, m). A configuration in which the angle θR (k, m) is substituted can also be adopted. Further, as expressed by the following equations (10a) and (10b), both the right channel deviation angle θR (k, m) and the left channel deviation angle θL (k, m) are average values of both. It is also possible to substitute θave (k, m) (thus reducing the difference in declination).
XL (k, m) = | XL (k, m) | e- jθave (k, m) (10a)
XR (k, m) = | XR (k, m) | e- jθave (k, m) (10b)

<第3実施形態>
図7は、第3実施形態の音響処理装置110Bのブロック図である。音響処理装置110Bにはモノラル形式の音響信号x(t)が信号供給装置200から供給される。音響信号x(t)は、正弦波成分および雑音成分を含む複数の音響成分の混合音の音響信号である。第3実施形態の音響処理装置110Bは、音響信号x(t)内の正弦波成分が存在する周波数FSを特定する音響解析装置として機能し、第2実施形態の音響処理装置110Aと同様に、演算処理装置12と記憶装置14とを具備するコンピュータシステムで実現される。
<Third Embodiment>
FIG. 7 is a block diagram of the sound processing apparatus 110B of the third embodiment. A monaural sound signal x (t) is supplied from the signal supply device 200 to the sound processing device 110B. The acoustic signal x (t) is an acoustic signal of a mixed sound of a plurality of acoustic components including a sine wave component and a noise component. The acoustic processing device 110B of the third embodiment functions as an acoustic analysis device that specifies the frequency FS in which the sine wave component in the acoustic signal x (t) exists, and, similarly to the acoustic processing device 110A of the second embodiment, This is realized by a computer system including an arithmetic processing unit 12 and a storage device 14.

演算処理装置12は、記憶装置14に格納されたプログラムPGMを実行することで複数の機能(周波数分析部42,偏角算定部20,偏角解析部44,音響評価部46)を実現する。なお、演算処理装置12の各機能を複数の集積回路に分散した構成や、専用の電子回路(DSP)が各機能を実現する構成も採用され得る。なお、音響信号x(t)を記憶装置14に記憶することも可能である。   The arithmetic processing unit 12 realizes a plurality of functions (frequency analysis unit 42, declination calculation unit 20, declination analysis unit 44, and acoustic evaluation unit 46) by executing the program PGM stored in the storage device 14. A configuration in which each function of the arithmetic processing unit 12 is distributed over a plurality of integrated circuits, or a configuration in which a dedicated electronic circuit (DSP) realizes each function may be employed. The acoustic signal x (t) can also be stored in the storage device 14.

周波数分析部42は、第2実施形態の周波数分析部32と同様に、音響信号x(t)の周波数スペクトル(複素スペクトル)X(k,m)を単位期間毎に生成する。偏角算定部20は、周波数スペクトルX(k,m)の各周波数の偏角θ(k,m)を単位期間毎に算定する。偏角算定部20が偏角θ(k,m)を算定する方法は第1実施形態と同様である。したがって、第3実施形態でも第1実施形態と同様の効果が実現される。   Similar to the frequency analysis unit 32 of the second embodiment, the frequency analysis unit 42 generates a frequency spectrum (complex spectrum) X (k, m) of the acoustic signal x (t) for each unit period. The declination calculator 20 calculates the declination θ (k, m) of each frequency of the frequency spectrum X (k, m) for each unit period. The method by which the declination calculating unit 20 calculates the declination θ (k, m) is the same as in the first embodiment. Therefore, the third embodiment can achieve the same effect as the first embodiment.

偏角解析部44は、偏角算定部20が算定した各単位期間の偏角θ(k,m)と直前の単位期間の偏角θ(k,m-1)との差異(以下「変化量」という)δ(k,m)を周波数毎に算定する。すなわち、変化量δ(k,m)は、相前後する単位期間の間で偏角θ(k,m)が変動した度合を意味する。なお、変化量δ(k,m)の算定対象となる単位期間は、音響信号x(t)の全部の単位期間または特定の一部(例えば5個程度)の単位期間である。   The declination analysis unit 44 determines the difference between the declination θ (k, m) of each unit period calculated by the declination calculation unit 20 and the declination θ (k, m−1) of the previous unit period (hereinafter referred to as “change”). Δ (k, m) is calculated for each frequency. That is, the change amount Δ (k, m) means the degree to which the deviation angle θ (k, m) fluctuates between successive unit periods. Note that the unit period for which the change amount δ (k, m) is calculated is the entire unit period or a specific part (for example, about five) of unit periods of the acoustic signal x (t).

正弦波成分の偏角θ(k,m)の時間的な変化量δ(k,m)は一定に維持される。他方、例えば収音機器の回路雑音等に起因した雑音成分(例えば白色雑音)の偏角θ(k,m)の時間的な変化量δ(k,m)は刻々と変化して一定には維持されない。以上の特性の相違を考慮して、第3実施形態の音響評価部46は、偏角解析部44が周波数毎に算定した変化量δ(k,m)の時間変動に応じて音響信号x(t)内の正弦波成分の周波数FSを特定する。   The temporal variation δ (k, m) of the deviation angle θ (k, m) of the sine wave component is kept constant. On the other hand, for example, the temporal variation δ (k, m) of the deviation angle θ (k, m) of the noise component (for example, white noise) due to the circuit noise of the sound collecting device, etc. changes every moment and remains constant. Not maintained. In consideration of the difference in characteristics described above, the acoustic evaluation unit 46 of the third embodiment determines the acoustic signal x (() according to the time variation of the variation δ (k, m) calculated for each frequency by the declination analysis unit 44. The frequency FS of the sine wave component in t) is specified.

具体的には、音響評価部46は、各単位期間の偏角θ(k,m)の変化量δ(k,m)の分散値V(k)および平均値M(k)を周波数毎に算定し、周波数軸上の複数の周波数のうち変化量δ(k,m)の分散値V(k)が所定の閾値を下回る周波数(すなわち変化量δ(k,m)の変動が小さい周波数)を正弦波成分が存在する周波数FSとして選択するとともに変化量δ(k,m)の平均値M(k)を正弦波成分の瞬時周波数として確定する。音響評価部46による評価結果(正弦波成分が検出された周波数FSおよび瞬時周波数)は例えば画像や音声で利用者に報知される。   Specifically, the acoustic evaluation unit 46 calculates the variance value V (k) and average value M (k) of the variation δ (k, m) of the deviation angle θ (k, m) in each unit period for each frequency. Calculated and the frequency at which the variance V (k) of the variation δ (k, m) is below a predetermined threshold among a plurality of frequencies on the frequency axis (that is, the frequency at which the variation δ (k, m) is small) Is selected as the frequency FS at which the sine wave component exists, and the average value M (k) of the variation δ (k, m) is determined as the instantaneous frequency of the sine wave component. The evaluation result (the frequency FS and the instantaneous frequency at which the sine wave component is detected) by the acoustic evaluation unit 46 is notified to the user by, for example, an image or sound.

100……偏角算定装置、110A,110B……音響処理装置、12……演算処理装置、14……記憶装置、20……偏角算定部、32,42……周波数分析部、34……位相調整部、36……信号生成部、44……偏角解析部、46……音響評価部、200……信号供給装置。
DESCRIPTION OF SYMBOLS 100 ... Declination calculation apparatus, 110A, 110B ... Sound processing apparatus, 12 ... Arithmetic processing apparatus, 14 ... Memory | storage device, 20 ... Declination calculation part, 32, 42 ... Frequency analysis part, 34 ... Phase adjustment unit 36... Signal generation unit 44... Declination analysis unit 46... Acoustic evaluation unit 200.

Claims (4)

複素数の偏角を算定する装置であって、
前記複素数の実部および虚部を符号反転により非負値に変換する第1変換手段と、
前記第1変換手段による処理後の実部と虚部との和および差を算定する和差算定手段と、
前記和に対する前記差の比を算定する比算定手段と、
前記比算定手段が算定した比から前記複素数の暫定偏角を算定する偏角暫定手段と、
前記符号反転前の複素数が属する象限に対応する偏角に前記暫定偏角を変換する第2変換手段と
を具備する偏角算定装置。
A device for calculating the argument of a complex number,
First conversion means for converting a real part and an imaginary part of the complex number to a non-negative value by sign inversion;
Sum-difference calculating means for calculating the sum and difference of the real part and the imaginary part after processing by the first conversion means;
A ratio calculating means for calculating a ratio of the difference to the sum;
Declination provisional means for calculating a provisional declination of the complex number from the ratio calculated by the ratio calculation means;
A declination calculating apparatus comprising: second conversion means for converting the temporary declination into a declination corresponding to a quadrant to which the complex number before sign inversion belongs.
前記偏角暫定手段は、前記比Rから以下の近似式(A)で暫定偏角φを算定する
φ=(π/4)・(−R+1) ……(A)
請求項1の偏角算定装置。
The temporary declination means calculates the temporary declination φ from the ratio R by the following approximate expression (A): φ = (π / 4) · (−R + 1) (A)
The deflection angle calculating apparatus according to claim 1.
左右チャネルの各々について音響信号の複素スペクトルを生成する周波数分析手段と、
左右チャネルの各々について前記複素スペクトルの周波数毎の偏角を算定する偏角算定手段と、
前記偏角算定手段が算定した左右チャネルの周波数毎の偏角の差異を低減する位相調整手段と、
前記位相調整手段による処理後の各チャネルの複素スペクトルから左右チャネルの音響信号を生成する信号生成手段とを具備し、
前記偏角算定手段は、
前記複素スペクトルの実部および虚部を符号反転により非負値に変換する第1変換手段と、
前記第1変換手段による処理後の実部と虚部との和および差を算定する和差算定手段と、
前記和に対する前記差の比を算定する比算定手段と、
前記比算定手段が算定した比から前記複素数の暫定偏角を算定する偏角暫定手段と、
前記符号反転前の複素数が属する象限に対応する偏角に前記暫定偏角を変換する第2変換手段と
を含む音響処理装置。
Frequency analysis means for generating a complex spectrum of the acoustic signal for each of the left and right channels;
Declination calculating means for calculating the declination for each frequency of the complex spectrum for each of the left and right channels;
Phase adjustment means for reducing the difference in deflection angle for each frequency of the left and right channels calculated by the deflection angle calculation means;
Signal generating means for generating left and right channel acoustic signals from the complex spectrum of each channel after processing by the phase adjusting means;
The declination calculating means includes
First conversion means for converting a real part and an imaginary part of the complex spectrum to a non-negative value by sign inversion;
Sum-difference calculating means for calculating the sum and difference of the real part and the imaginary part after processing by the first conversion means;
A ratio calculating means for calculating a ratio of the difference to the sum;
Declination provisional means for calculating a provisional declination of the complex number from the ratio calculated by the ratio calculation means;
And a second conversion means for converting the provisional deflection angle into a deflection angle corresponding to a quadrant to which the complex number before sign inversion belongs.
音響信号の複素スペクトルを単位期間毎に生成する周波数分析手段と、
前記各単位期間の複素スペクトルの周波数毎の偏角を算定する偏角算定手段と、
相前後する各単位期間での前記偏角の変化量を周波数毎に算定する偏角解析手段と、
前記音響信号に含まれる正弦波成分の周波数を前記変化量の時間変動に応じて特定する音響評価手段とを具備し、
前記偏角算定手段は、
前記複素スペクトルの実部および虚部を符号反転により非負値に変換する第1変換手段と、
前記第1変換手段による処理後の実部と虚部との和および差を算定する和差算定手段と、
前記和に対する前記差の比を算定する比算定手段と、
前記比算定手段が算定した比から前記複素数の暫定偏角を算定する偏角暫定手段と、
前記符号反転前の複素数が属する象限に対応する偏角に前記暫定偏角を変換する第2変換手段と
を含む音響処理装置。
Frequency analysis means for generating a complex spectrum of an acoustic signal for each unit period;
Declination calculating means for calculating the declination for each frequency of the complex spectrum of each unit period;
Declination analysis means for calculating, for each frequency, the amount of change of the declination in each unit period before and after,
Acoustic evaluation means for specifying the frequency of the sine wave component included in the acoustic signal according to the temporal variation of the amount of change,
The declination calculating means includes
First conversion means for converting a real part and an imaginary part of the complex spectrum to a non-negative value by sign inversion;
Sum-difference calculating means for calculating the sum and difference of the real part and the imaginary part after processing by the first conversion means;
A ratio calculating means for calculating a ratio of the difference to the sum;
Declination provisional means for calculating a provisional declination of the complex number from the ratio calculated by the ratio calculation means;
And a second conversion means for converting the provisional deflection angle into a deflection angle corresponding to a quadrant to which the complex number before sign inversion belongs.
JP2011244396A 2011-11-08 2011-11-08 Declination calculating device and acoustic processing device Expired - Fee Related JP5765195B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011244396A JP5765195B2 (en) 2011-11-08 2011-11-08 Declination calculating device and acoustic processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011244396A JP5765195B2 (en) 2011-11-08 2011-11-08 Declination calculating device and acoustic processing device

Publications (2)

Publication Number Publication Date
JP2013102327A true JP2013102327A (en) 2013-05-23
JP5765195B2 JP5765195B2 (en) 2015-08-19

Family

ID=48622548

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011244396A Expired - Fee Related JP5765195B2 (en) 2011-11-08 2011-11-08 Declination calculating device and acoustic processing device

Country Status (1)

Country Link
JP (1) JP5765195B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017228288A (en) * 2016-06-21 2017-12-28 スティヒティング・イメック・ネーデルラントStichting IMEC Nederland Circuit and method for processing data
WO2021005805A1 (en) * 2019-07-11 2021-01-14 日本電信電話株式会社 Graph analysis device, graph analysis method, and graph analysis program

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0573093A (en) * 1991-09-17 1993-03-26 Nippon Telegr & Teleph Corp <Ntt> Extracting method for signal feature point
JPH11219432A (en) * 1998-01-30 1999-08-10 Yamatake Corp Phase output circuit
JP2000188620A (en) * 1998-12-22 2000-07-04 Matsushita Electric Ind Co Ltd Synchronous detector
JP2001285246A (en) * 2000-03-31 2001-10-12 Sanyo Electric Co Ltd Carrier frequency error detection circuit
JP2001358519A (en) * 2000-06-16 2001-12-26 Fujitsu Ltd Two-dimensional vector normalizing device, two- dimensional vector phase extracting device and beam forming circuit
JP2005229281A (en) * 2004-02-12 2005-08-25 Seiko Epson Corp Circuit and method for detecting frequency error
JP2006214998A (en) * 2005-02-07 2006-08-17 Matsushita Electric Works Ltd Range finder
JP2009010992A (en) * 2008-09-01 2009-01-15 Sony Corp Audio signal processing apparatus, audio signal processing method, and program
JP2009025225A (en) * 2007-07-23 2009-02-05 Fujifilm Corp Three-dimensional imaging apparatus and control method for the same, and program
WO2009034686A1 (en) * 2007-09-11 2009-03-19 Panasonic Corporation Sound judging device, sound sensing device, and sound judging method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0573093A (en) * 1991-09-17 1993-03-26 Nippon Telegr & Teleph Corp <Ntt> Extracting method for signal feature point
JPH11219432A (en) * 1998-01-30 1999-08-10 Yamatake Corp Phase output circuit
JP2000188620A (en) * 1998-12-22 2000-07-04 Matsushita Electric Ind Co Ltd Synchronous detector
JP2001285246A (en) * 2000-03-31 2001-10-12 Sanyo Electric Co Ltd Carrier frequency error detection circuit
JP2001358519A (en) * 2000-06-16 2001-12-26 Fujitsu Ltd Two-dimensional vector normalizing device, two- dimensional vector phase extracting device and beam forming circuit
JP2005229281A (en) * 2004-02-12 2005-08-25 Seiko Epson Corp Circuit and method for detecting frequency error
JP2006214998A (en) * 2005-02-07 2006-08-17 Matsushita Electric Works Ltd Range finder
JP2009025225A (en) * 2007-07-23 2009-02-05 Fujifilm Corp Three-dimensional imaging apparatus and control method for the same, and program
WO2009034686A1 (en) * 2007-09-11 2009-03-19 Panasonic Corporation Sound judging device, sound sensing device, and sound judging method
JP2009010992A (en) * 2008-09-01 2009-01-15 Sony Corp Audio signal processing apparatus, audio signal processing method, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017228288A (en) * 2016-06-21 2017-12-28 スティヒティング・イメック・ネーデルラントStichting IMEC Nederland Circuit and method for processing data
WO2021005805A1 (en) * 2019-07-11 2021-01-14 日本電信電話株式会社 Graph analysis device, graph analysis method, and graph analysis program
JPWO2021005805A1 (en) * 2019-07-11 2021-01-14
JP7176635B2 (en) 2019-07-11 2022-11-22 日本電信電話株式会社 Graph analysis device, graph analysis method and graph analysis program

Also Published As

Publication number Publication date
JP5765195B2 (en) 2015-08-19

Similar Documents

Publication Publication Date Title
US11778406B2 (en) Audio processing device and method therefor
JP7082126B2 (en) Analysis of spatial metadata from multiple microphones in an asymmetric array in the device
JP2021184611A (en) Method and device for decoding audio field representation for audio playback
ES2452557T3 (en) Spatial audio processor and method to provide spatial parameters based on an acoustic input signal
GB2540175A (en) Spatial audio processing apparatus
TW201820898A (en) Method for reproducing spatially distributed sounds
JP2020500480A5 (en)
Lee et al. A unified approach to generating sound zones using variable span linear filters
JP6280983B2 (en) Apparatus and method for center signal scaling and stereophonic enhancement based on signal-to-downmix ratio
KR20070084552A (en) Audio spatial environment engine
KR20090117897A (en) Method and apparatus for conversion between multi-channel audio formats
JP2011139378A (en) Signal processing apparatus, microphone array device, signal processing method, and signal processing program
JP2010124370A (en) Signal processing device, signal processing method, and signal processing program
JP5765195B2 (en) Declination calculating device and acoustic processing device
WO2018193160A1 (en) Ambience generation for spatial audio mixing featuring use of original and extended signal
JP6695738B2 (en) Signal conversion coefficient calculation device, signal conversion device, and program
JP5641187B2 (en) Sound processor
JP5454157B2 (en) Sound processor
JP5737592B2 (en) REPRODUCTION SIGNAL GENERATION DEVICE, REPRODUCTION SIGNAL GENERATION METHOD, AND PROGRAM
AU2020201419A1 (en) Method and device for decoding an audio soundfield representation
JP5494085B2 (en) Sound processor
WO2018193161A1 (en) Spatially extending in the elevation domain by spectral extension
JPWO2017188141A1 (en) Audio signal processing apparatus, audio signal processing method, and audio signal processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140919

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20150410

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150423

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150519

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150601

R151 Written notification of patent or utility model registration

Ref document number: 5765195

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees