JP3256399B2 - Apparatus and method for detecting linearity error of digital audio signal, and apparatus and method for reducing linearity error - Google Patents

Apparatus and method for detecting linearity error of digital audio signal, and apparatus and method for reducing linearity error

Info

Publication number
JP3256399B2
JP3256399B2 JP02780995A JP2780995A JP3256399B2 JP 3256399 B2 JP3256399 B2 JP 3256399B2 JP 02780995 A JP02780995 A JP 02780995A JP 2780995 A JP2780995 A JP 2780995A JP 3256399 B2 JP3256399 B2 JP 3256399B2
Authority
JP
Japan
Prior art keywords
code
linearity error
audio signal
digital audio
error
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.)
Expired - Fee Related
Application number
JP02780995A
Other languages
Japanese (ja)
Other versions
JPH08223039A (en
Inventor
正樹 塚本
Original Assignee
日本コロムビア株式会社
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 日本コロムビア株式会社 filed Critical 日本コロムビア株式会社
Priority to JP02780995A priority Critical patent/JP3256399B2/en
Publication of JPH08223039A publication Critical patent/JPH08223039A/en
Application granted granted Critical
Publication of JP3256399B2 publication Critical patent/JP3256399B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、A/D変換時に発生し
た直線性誤差に基づく歪みを有するディジタルオーディ
オ信号の直線性誤差検出装置及び検出方法ならびに直線
性誤差低減装置及び低減方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus and a method for detecting a linearity error of a digital audio signal having a distortion based on a linearity error generated during A / D conversion, and to an apparatus and a method for reducing the linearity error. is there.

【0002】[0002]

【従来の技術】A/Dコンバータで発生する直線性誤差
は、従来、A/Dコンバータの内部の抵抗値を調整した
り、あるいは外付けの回路でビット重みを調整すること
により低減させていた。従来の方法では、A/D変換の
時点においては、直線性誤差を低減させることができ
る。しかし、A/D変換時の直線性誤差に基づく歪みを
有した状態で一旦記憶されてしまったものは、この歪み
を低減させることはできない。過去にA/Dコンバータ
を用いてディジタル記録が行なわれた数多くの音楽ソフ
トは、過去のA/Dコンバータの変換精度の悪さからか
なりの直線性誤差に基づく歪みを伴っている。しかし、
従来の方法ではこれを低減することは不可能であった。
2. Description of the Related Art Conventionally, a linearity error generated in an A / D converter has been conventionally reduced by adjusting an internal resistance value of the A / D converter or adjusting a bit weight by an external circuit. . In the conventional method, the linearity error can be reduced at the time of A / D conversion. However, if the data is stored once with a distortion based on the linearity error at the time of the A / D conversion, the distortion cannot be reduced. Many music software programs that have been digitally recorded using an A / D converter in the past involve distortion based on a considerable linearity error due to poor conversion accuracy of the past A / D converter. But,
It has not been possible to reduce this with conventional methods.

【0003】一方、A/Dコンバータで発生する直線性
誤差を検出する装置として、正弦波ヒストグラム法を用
いた測定装置が従来より知られている。しかし、この測
定装置では、歪みのない純粋な正弦波を被測定対象のA
/Dコンバータに入力させヒストグラムを得ることによ
り直線性誤差を測定するものである。したがって、ディ
ジタルオーディオ信号のように、歪みのない純粋な正弦
波ではないものを信号源とする場合には、このような試
験装置では直線性誤差自体も検出できなかった。
On the other hand, as a device for detecting a linearity error generated in an A / D converter, a measuring device using a sine wave histogram method has been conventionally known. However, in this measuring device, a pure sine wave without distortion is converted into A
The linearity error is measured by inputting the signal to a / D converter and obtaining a histogram. Therefore, when a signal source that is not a pure sine wave without distortion such as a digital audio signal is used as a signal source, such a test apparatus cannot detect the linearity error itself.

【0004】[0004]

【発明が解決しようとする課題】本発明は、上述した事
情に鑑みてなされたもので、A/D変換時の直線性誤差
に基づく歪みを有したディジタルオーディオ信号の歪み
を低減する直線性誤差低減装置及び低減方法を提供する
ことを目的とするものである。また、この直線性誤差低
減装置及び低減方法に適した直線性誤差検出装置及び検
出方法であって、歪みのない純粋な正弦波を信号源とし
ない場合でも直線性誤差を検出することができる直線性
誤差検出装置及び検出方法を提供することを目的とする
ものである。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and has been made in consideration of the above circumstances. It is an object to provide a reduction device and a reduction method. A linearity error detecting device and method suitable for the linearity error reducing device and the linearizing error reducing method, wherein the linearity error can be detected even when a pure sine wave without distortion is not used as a signal source. It is an object of the present invention to provide a sex error detection device and a detection method.

【0005】[0005]

【課題を解決するための手段】本発明は、ディジタルオ
ーディオ信号の直線性誤差検出装置において、A/Dコ
ンバータによりコードに変換されたディジタルオーディ
オ信号の少なくとも一部からコードごとの出現度数を検
出する出現度数検出手段と、該出現度数検出手段の出力
を入力し、前記コードごとの出現度数を、各コードおよ
びその量子化レベルが該各コードの近傍にあるコードに
おける平均出現度数と比較することにより、直線性誤差
が生じたコードを検出する直線性誤差抽出手段を有する
ことを特徴とするものである。また、本発明は、ディジ
タルオーディオ信号の直線性誤差低減装置において、A
/Dコンバータによりコードに変換されたディジタルオ
ーディオ信号の少なくとも一部からコードごとの出現度
数を検出する出現度数検出手段と、該出現度数検出手段
の出力を入力し、前記コードごとの出現度数を、各コー
ドおよびその量子化レベルが該各コードの近傍にあるコ
ードにおける平均出現度数と比較することにより、直線
性誤差が生じたコードを検出する直線性誤差抽出手段
と、該直線性誤差抽出手段により検出された直線性誤差
が生じたコードに基づいて、前記A/Dコンバータによ
りコードに変換されたディジタルオーディオ信号におけ
る直線性誤差が生じたコードを補正する直線性誤差低減
手段を有することを特徴とするものである。
SUMMARY OF THE INVENTION The present invention is a digital audio signal linearity error detecting apparatus for detecting the frequency of occurrence of each code from at least a part of a digital audio signal converted into a code by an A / D converter. By inputting the output of the occurrence frequency detection means and the occurrence frequency detection means, and comparing the appearance frequency of each code with the average appearance frequency of each code and the code whose quantization level is in the vicinity of each code. And a linearity error extracting means for detecting a code having a linearity error. The present invention also provides a device for reducing the linearity error of a digital audio signal.
An appearance frequency detection unit for detecting the appearance frequency of each code from at least a part of the digital audio signal converted into a code by the / D converter, and an output of the appearance frequency detection unit, and inputting the appearance frequency of each code, By comparing each code and its quantization level with the average frequency of occurrence in a code near each code, a linearity error extracting means for detecting a code having a linearity error, and a linearity error extracting means The digital audio signal converted into a code by the A / D converter, based on the detected code having the linearity error, has a linearity error reducing means for correcting the code having the linearity error. Is what you do.

【0006】また、本発明は、ディジタルオーディオ信
号の直線性誤差検出方法において、A/Dコンバータに
よりコードに変換されたディジタルオーディオ信号の少
なくとも一部からコードごとの出現度数を検出し、検出
したコードごとの出現度数を、各コードおよびその量子
化レベルが該各コードの近傍にあるコードにおける平均
出現度数と比較することにより、直線性誤差が生じたコ
ードを検出することを特徴とするものである。また、デ
ィジタルオーディオ信号の直線性誤差低減方法におい
て、前記ディジタルオーディオ信号の直線性誤差検出方
法により検出された直線性誤差が生じたコードに基づい
て、前記A/Dコンバータによりコードに変換されたデ
ィジタルオーディオ信号における直線性誤差が生じたコ
ードを補正することを特徴とするものである。
The present invention also relates to a method for detecting a linearity error of a digital audio signal, wherein the frequency of occurrence of each code is detected from at least a part of the digital audio signal converted into a code by an A / D converter, and the detected code is detected. The code having a linearity error is detected by comparing the frequency of appearance of each code with the average frequency of appearance of each code and the code whose quantization level is in the vicinity of each code. . In the method for reducing a linearity error of a digital audio signal, a digital code converted by the A / D converter into a code based on a code having a linearity error detected by the method for detecting a linearity error of the digital audio signal. It is characterized in that a code having a linearity error in an audio signal is corrected.

【0007】[0007]

【作用】本発明のディジタルオーディオ信号の直線性誤
差検出装置及び検出方法においては、A/Dコンバータ
によりコードに変換されたディジタルオーディオ信号の
少なくとも一部からコードごとの出現度数を検出して、
コードごとの出現度数を、各コードおよびその量子化レ
ベルが該各コードの近傍にあるコードにおける平均出現
度数と比較することにより、直線性誤差が生じたコード
を検出することによって、そのデジタルオーディオ信号
のA/D変換に使用されたA/Dコンバータ自体がなく
ても、そのA/Dコンバータに依存するデジタルオーデ
ィオ信号の直線性誤差を検出することができる。
In the digital audio signal linearity error detecting apparatus and method according to the present invention, the frequency of occurrence of each code is detected from at least a part of the digital audio signal converted into a code by the A / D converter.
By comparing the frequency of occurrence of each code with the average frequency of occurrence of each code and the code whose quantization level is in the vicinity of each code, a code having a linearity error is detected, thereby obtaining the digital audio signal. Even if the A / D converter used for the A / D conversion is not provided, the linearity error of the digital audio signal depending on the A / D converter can be detected.

【0008】また、本発明のデジタルオーディオ信号の
直線性誤差低減装置または低減方法によれば、前記ディ
ジタルオーディオ信号の直線性誤差検出装置または検出
方法を使用して、検出された直線性誤差が生じたコード
に基づいて、前記A/Dコンバータによりコードに変換
されたディジタルオーディオ信号における直線性誤差が
生じたコードを補正することによって、そのデジタルオ
ーディオ信号のA/D変換に使用されたA/Dコンバー
タの特性が不明であっても、このA/Dコンバータの直
線性誤差による歪みを低減させることができる。
Further, according to the apparatus and method for reducing the linearity error of a digital audio signal of the present invention, the detected linearity error is generated using the apparatus and method for detecting a linearity error of the digital audio signal. A code used for A / D conversion of the digital audio signal is corrected by correcting a code having a linearity error in the digital audio signal converted into a code by the A / D converter based on the code. Even if the characteristics of the converter are unknown, the distortion due to the linearity error of the A / D converter can be reduced.

【0009】[0009]

【実施例】図1は、本発明の実施例の概要を説明するブ
ロック図である。図中、1は切り換え手段、2はメモ
リ、3はヒストグラム化手段、4は正規化手段、5は誤
差ビット検出手段、6はディジタル信号処理手段であ
る。第1段階として、ディジタルオーディオ信号がディ
ジタルオーディオテープレコーダ(DAT)やコンパク
トディスク(CD)等から読み出され、ディジタルオー
ディオインターフェース等を介して、切り換え手段1に
入力される。このディジタルオーディオ信号は、コンパ
クトディスク等に記録される以前に、アナログオーディ
オ信号がA/Dコンバータにより変換されて記録された
ものである。読み出されるディジタルオーディオ信号
は、ディジタルオーディオテープレコーダ等に記録され
たものの一部分でよい。切り換え手段1は、ディジタル
オーディオ信号を例えばハードディスク等のメモリ2に
出力し、メモリ2は、このディジタルオーディオ信号を
蓄積する。
FIG. 1 is a block diagram for explaining an outline of an embodiment of the present invention. In the figure, 1 is a switching means, 2 is a memory, 3 is a histogram forming means, 4 is a normalizing means, 5 is an error bit detecting means, and 6 is a digital signal processing means. In the first stage, a digital audio signal is read from a digital audio tape recorder (DAT), a compact disc (CD), or the like, and is input to the switching means 1 via a digital audio interface or the like. This digital audio signal is a signal obtained by converting an analog audio signal by an A / D converter before recording on a compact disc or the like. The read digital audio signal may be a part of a signal recorded on a digital audio tape recorder or the like. The switching means 1 outputs a digital audio signal to a memory 2 such as a hard disk, for example, and the memory 2 stores the digital audio signal.

【0010】ヒストグラム化手段3は、メモリ2に一旦
蓄積されたディジタルオーディオ信号を読み出し、複数
サンプル分について、各々の量子化された振幅レベルを
表わすコードごとにその出現度数を検出し、ヒストグラ
ムを作成する。正規化手段4は、ヒストグラム化手段3
の出力を入力しA/Dコンバータの直線性誤差を出現度
数の特徴として抽出し、正規化されたヒストグラムとし
て出力する。誤差ビット検出手段5は、正規化手段4か
らの正規化されたヒストグラムを入力し、A/Dコンバ
ータの直線性誤差による出現度数の特徴から誤差ビット
を検出し、検出結果をディジタル信号処理手段6に出力
する。
Histogram forming means 3 reads the digital audio signal once stored in memory 2, detects the frequency of occurrence of each code representing a quantized amplitude level for a plurality of samples, and creates a histogram. I do. The normalizing means 4 includes the histogram generating means 3
, The linearity error of the A / D converter is extracted as a feature of the frequency of appearance, and is output as a normalized histogram. The error bit detecting means 5 receives the normalized histogram from the normalizing means 4, detects an error bit from the characteristic of the frequency of occurrence of the linearity error of the A / D converter, and converts the detection result into a digital signal processing means 6. Output to

【0011】第2段階として、再度、ディジタルオーデ
ィオ信号がディジタルオーディオテープレコーダ等から
読み出され、ディジタルオーディオインターフェース等
を介して、切り換え手段1に入力される。切り換え手段
1は、ディジタルオーディオ信号をディジタル信号処理
手段6に出力する。ディジタル信号処理手段6は、ディ
ジタルオーディオ信号を入力し、誤差ビット検出手段5
の出力に基づいて、A/Dコンバータの直線性誤差によ
り誤ったコードに変換されたオーディオ信号を、本来の
正しいレベルに近い値に変換することによりリアルタイ
ムで直線性誤差を低減する処理を行ない、直線性誤差に
よる歪みが補正されたディジタルオーディオ信号を出力
する。このディジタル信号処理手段6は、ディジタル信
号処理プロッセッサ(DSP)等により実現される。
In the second stage, a digital audio signal is read again from a digital audio tape recorder or the like, and is input to the switching means 1 via a digital audio interface or the like. The switching means 1 outputs a digital audio signal to the digital signal processing means 6. The digital signal processing means 6 receives the digital audio signal and outputs the error bit detection means 5.
A process of reducing the linearity error in real time by converting the audio signal converted to an erroneous code by the linearity error of the A / D converter into a value close to the original correct level based on the output of A digital audio signal whose distortion due to a linearity error has been corrected is output. The digital signal processing means 6 is realized by a digital signal processing processor (DSP) or the like.

【0012】上述した説明では、第2段階として、ディ
ジタルオーディオ信号が再度ディジタルオーディオテー
プレコーダ等から読み出さるように構成したが、直線性
誤差による歪みを補正する対象であるディジタルオーデ
ィオ信号を全てメモリ2に蓄積しておく場合には、切り
換え手段1を介し、あるいは直接にメモリ2の出力をデ
ィジタル信号処理手段6の入力に接続するようにしても
よい。メモリ2として、RAM等の半導体メモリにより
構成された大容量の記憶装置を用いる場合には、このよ
うな構成でも、誤差ビット検出手段5からの出力を受け
た以後はリアルタイムで直線性誤差の補正されたディジ
タルオーディオ信号を出力することができる。
In the above description, the digital audio signal is read again from the digital audio tape recorder or the like as the second stage. However, all the digital audio signals to be corrected for the distortion due to the linearity error are stored in the memory 2. In this case, the output of the memory 2 may be connected to the input of the digital signal processing means 6 via the switching means 1 or directly. When a large-capacity storage device including a semiconductor memory such as a RAM is used as the memory 2, the linearity error can be corrected in real time after receiving the output from the error bit detection unit 5 even in such a configuration. The digital audio signal thus output can be output.

【0013】リアルタイムで直線性誤差の補正されたデ
ィジタルオーディオ信号を出力する必要がない場合、例
えば、出力を他の記憶装置に記憶させる場合には、メモ
リ2としてデータ転送速度が遅いハードディスク等を用
いても、メモリ2の出力を切り換え手段1を介し、ある
いは直接にディジタル信号処理手段6の入力に接続して
もよい。
When it is not necessary to output a digital audio signal whose linearity error has been corrected in real time, for example, when the output is to be stored in another storage device, a hard disk having a low data transfer rate is used as the memory 2. Alternatively, the output of the memory 2 may be connected to the input of the digital signal processing means 6 via the switching means 1 or directly.

【0014】また、ROM,RAM等の半導体メモリに
より構成された記憶装置からディジタルオーディオ信号
を入力し、直線性誤差の補正されたディジタルオーディ
オ信号を出力する場合には、この記憶装置自体がメモリ
2の機能を達成するように記憶装置を制御することによ
り、この記憶装置の出力を直接ヒストグラム化手段3お
よびディジタル信号処理手段6の入力に接続させること
ができる。
When a digital audio signal is input from a storage device constituted by a semiconductor memory such as a ROM or a RAM and a digital audio signal having a corrected linearity error is output, the storage device itself is a memory 2. By controlling the storage device to achieve the above function, the output of this storage device can be directly connected to the inputs of the histogramming means 3 and the digital signal processing means 6.

【0015】本発明の実施例の概要は上述の通りである
が、以下、図1に示された各ブロックの機能について詳
述する。
Although the outline of the embodiment of the present invention is as described above, the function of each block shown in FIG. 1 will be described in detail below.

【0016】図2は、実際のディジタルオーディオ信号
のヒストグラムの一例である。図中、横軸は、ディジタ
ルオーディオ信号のコードを10進数で表示したもので
あり、縦軸は各コードごとの出現度数を表わすものであ
る。ディジタルオーディオ信号のコードは、A/Dコン
バータにより量子化された振幅レベルを表わす。このヒ
ストグラムは、コードが0のときに出現度数が高く、コ
ードが正方向に大きくなるに従い、また、コードが負方
向に小さくなるに従い出現度数が徐々になだらかにな
る。出現度数は、コードが0の場合を中心として正方
向,負方向にほぼ左右対称になっている。このようなヒ
ストグラムの特徴は、入力されたオーディオ信号それぞ
れに固有のものである。図示したヒストグラムには、さ
らに、出現度数が隣接するコードに比べ急激に高くなる
コードおよび急激に低くなるコードが存在する。この特
異な出現度数は、A/Dコンバータの直線性誤差を原因
とするものである。
FIG. 2 is an example of a histogram of an actual digital audio signal. In the figure, the horizontal axis represents the code of the digital audio signal in decimal notation, and the vertical axis represents the frequency of appearance for each code. The code of the digital audio signal represents the amplitude level quantized by the A / D converter. In this histogram, the appearance frequency is high when the code is 0, and the appearance frequency gradually becomes gentler as the code increases in the positive direction and as the code decreases in the negative direction. The frequency of occurrence is substantially symmetrical in the positive and negative directions with the code being 0 as the center. Such a feature of the histogram is unique to each input audio signal. The illustrated histogram further includes a code whose appearance frequency sharply increases and a code whose sharpness decreases sharply as compared to adjacent codes. This peculiar appearance frequency is caused by a linearity error of the A / D converter.

【0017】図1に示されたヒストグラム化手段3は、
従来の正弦波ヒストグラム測定装置と同様のものを用い
ることができる。メモリ2からディジタルオーディオ信
号を読み出し、量子化された振幅レベルを表わすコード
自体をアドレスとしてヒストグラムメモリをアクセス
し、このアドレスにおけるデータを読み出し、これに1
を加算して、同じアドレスに加算した値を書き込む。こ
の動作を複数のサンプルについて実行することにより、
コードごとの累積回数すなわち出現度数がヒストグラム
メモリに蓄積されることになる。この複数のサンプル
は、直線性誤差を補正する対象であるディジタルオーデ
ィオ信号の全てである必要はなく、同じA/Dコンバー
タにより変換されたものの一部のサンプルでよい。ただ
し、サンプル数が多いほどヒストグラムの精度が向上す
る。一例として、比較的レベルの高い部分が連続した
2,500,000サンプル分の期間のサンプルを用い
ると、良好なヒストグラム分布を得ることができる。な
お、ヒストグラム化は、ディジタルカウンタ回路や、ソ
フトウエアで実現することも可能である。
The histogram forming means 3 shown in FIG.
The same device as the conventional sine wave histogram measuring device can be used. The digital audio signal is read out from the memory 2, the histogram memory is accessed using the code itself representing the quantized amplitude level as an address, and the data at this address is read out.
And write the added value to the same address. By performing this operation on multiple samples,
The cumulative frequency, that is, the frequency of appearance for each code is stored in the histogram memory. The plurality of samples need not be all of the digital audio signals for which the linearity error is to be corrected, but may be some of the samples converted by the same A / D converter. However, the accuracy of the histogram improves as the number of samples increases. As an example, when a sample of a period of 2,500,000 samples in which a relatively high level portion is continuous is used, a favorable histogram distribution can be obtained. Note that the histogram conversion can be realized by a digital counter circuit or software.

【0018】図1に示された正規化手段4は、ヒストグ
ラム化手段3の出力を入力し、入力されたオーディオ信
号固有の出現度数と比較することによりA/Dコンバー
タの直線性誤差を出現度数の特徴として抽出するもので
ある。各コードおよびその量子化レベルが該各コードの
近傍にあるコードにおける平均出現度数は、入力された
オーディオ信号固有の出現度数を表わしている。したが
って、一例として、コードごとの出現度数をこの平均出
現度数で割ることにより、該A/Dコンバータの直線性
誤差を出現度数の特徴として抽出することができる。具
体的には、全てのコードを、量子化された振幅レベルが
隣接する複数のコード、例えば4つのコードを1単位と
して複数のブロックに分割する。このブロックを構成す
る各コードの出現度数から1ブロックごとの平均出現度
数を求める。
The normalizing means 4 shown in FIG. 1 receives the output of the histogram generating means 3 and compares the linearity error of the A / D converter with the frequency of occurrence by comparing it with the frequency of occurrence of the input audio signal. Is extracted as a feature. The average appearance frequency of each code and the code whose quantization level is in the vicinity of each code represents the appearance frequency unique to the input audio signal. Therefore, as an example, by dividing the frequency of appearance for each code by this average frequency of appearance, the linearity error of the A / D converter can be extracted as a feature of the frequency of appearance. More specifically, all codes are divided into a plurality of blocks with a plurality of codes having adjacent quantized amplitude levels, for example, four codes as one unit. The average frequency of appearance for each block is determined from the frequency of appearance of each code constituting this block.

【0019】ブロックを構成する各コードの出現度数を
この1ブロックごとの平均出現度数で割った値を各コー
ドの正規化された出現度数Aと定義する。すなわち、
(4つずつ分割したそれぞれのコードの出現度数)÷
(4つのコードの出現度数の平均値)=Aとする。この
正規化された出現度数からなるヒストグラムは、A/D
コンバータの直線性誤差による出現度数の特徴が抽出さ
れたものとなる。この正規化された出現度数Aは、オー
ディオ信号に固有の出現度数の特徴がほぼ除去されたも
のとなる。A/Dコンバータに直線性誤差がない場合、
正規化された出現度数Aは、全てのコードにおいて1と
なる。なお、平均出現度数として、各コードおよびその
量子化レベルが該各コードの近傍にある所定数のコード
の各出現度数の移動平均を用いてもよい。
A value obtained by dividing the frequency of appearance of each code constituting the block by the average frequency of appearance of each block is defined as the normalized frequency of appearance A of each code. That is,
(Frequency of each code divided into four) ÷
(Average value of the appearance frequencies of four codes) = A. The histogram consisting of the normalized appearance frequency is A / D
The feature of the appearance frequency due to the linearity error of the converter is extracted. The normalized appearance frequency A is obtained by substantially eliminating the characteristic of the appearance frequency unique to the audio signal. If there is no linearity error in the A / D converter,
The normalized appearance frequency A is 1 in all codes. As the average appearance frequency, a moving average of each appearance frequency of each code and a predetermined number of codes whose quantization levels are in the vicinity of each code may be used.

【0020】特別な場合として、ディジタルオーディオ
テープレコーダ等から読み出されたディジタルオーディ
オ信号中に、純粋な正弦波信号あるいはこれに近い楽音
信号がディジタル化されたものが含まれる場合がある。
このような信号が存在する場合には、従来の正弦波ヒス
トグラム測定装置における微分直線性誤差の算出と同様
の手法により正規化された出現度数を得ることができ
る。歪みのない純粋な正弦波のヒストグラムは、理論的
に得られており、振幅レベルが0の場合に小さく、正負
それぞれの方向に向かって左右対称に徐々に急峻にな
り、正負ピークレベルにおいて最大となるものである。
この理論的に得られたヒストグラムが入力されたオーデ
ィオ信号固有の出現度数を表わしている。歪みのない純
粋な正弦波信号あるいはこれに近い楽音信号のディジタ
ルオーディオ信号を入力し、各コードごとの出現度数
を、正弦波ヒストグラムの理論値から得た、同一のコー
ドの出現度数で除算することにより、正規化された出現
度数を得ることができる。なお、この値から1を減算し
た値が微分直線性誤差である。
As a special case, a digital audio signal read from a digital audio tape recorder or the like may include a pure sine wave signal or a digitized tone signal similar thereto.
When such a signal exists, a normalized appearance frequency can be obtained by the same method as the calculation of the differential linearity error in the conventional sine wave histogram measuring device. A histogram of a pure sine wave without distortion is theoretically obtained, and is small when the amplitude level is 0, becomes gradually symmetrical in the positive and negative directions, and becomes maximum at the positive and negative peak levels. It becomes.
The theoretically obtained histogram represents the frequency of appearance of the input audio signal. Inputting a pure sine wave signal without distortion or a digital audio signal of a tone signal similar to this, and dividing the frequency of occurrence of each code by the frequency of occurrence of the same code obtained from the theoretical value of the sine wave histogram As a result, a normalized appearance frequency can be obtained. The value obtained by subtracting 1 from this value is the differential linearity error.

【0021】誤差ビット検出手段5は、正規化手段4か
らの正規化されたヒストグラム出力を入力し、誤差ビッ
トを検出する。正規化されたヒストグラムには、その出
現度数が極端に多いコードと極端に少ないコードが含ま
れ、その多いコードあるいは少ないコードの量子化レベ
ルの差は、A/Dコンバータにおける誤差のあるビット
の重み、言い換えれば、ビットの桁位置を表している。
直線性誤差の原因は、オーディオ信号がディジタル化さ
れるときのA/Dコンバータの方式によって異なる。こ
こでは、重み抵抗型D/Aコンバータ、または、R−2
Rラダーを有するバイナリウエイト電流源形D/Aコン
バータ等を内部A/Dコンバータとして用いる逐次比較
形A/Dコンバータを前提にする。すなわち、閾値とす
る振幅レベルの設定に重みを利用するものを前提とし、
ある重みの影響が複数の量子化された振幅レベルに波及
することに着目し、逆に、複数の量子化された振幅レベ
ル、すなわちコードの出現度数から直線性誤差の原因と
なった重みを検出するというものである。
The error bit detecting means 5 receives the normalized histogram output from the normalizing means 4 and detects error bits. The normalized histogram includes a code having an extremely large number of occurrences and a code having an extremely small number of occurrences. In other words, it indicates the digit position of the bit.
The cause of the linearity error depends on the type of A / D converter when the audio signal is digitized. Here, a weight resistance type D / A converter or R-2
A successive approximation type A / D converter using a binary weight current source type D / A converter having an R ladder as an internal A / D converter is assumed. That is, assuming that the weight is used for setting the amplitude level as the threshold,
Focusing on the influence of a certain weight on multiple quantized amplitude levels, conversely, detecting the weight that caused a linearity error from multiple quantized amplitude levels, that is, the frequency of code occurrence It is to do.

【0022】例えば、出現度数が極端に多いコードの間
の間隔が2、すなわち、量子化レベルの間隔が最下位ビ
ットの量子化レベルの21 倍である場合には、最下位ビ
ットに誤差があることがわかる。また、間隔が23 、す
なわち、量子化レベルの間隔が最下位ビットの量子化レ
ベルの23 倍である場合には、最下位ビットから3ビッ
ト目の桁位置のビットに誤差があることがわかる。出現
度数が極端に多い複数のコードの量子化レベルの間隔が
n である場合、最下位ビットからnビット目の桁位置
のビットに誤差があることがわかる。出現度数が極端に
多いと判定するには閾値が必要である。例えば、正規化
された出現度数Aが1.2以上のものを出現度数が極端
に多いものと判定することができる。この閾値は1.5
程度にしてもよい。なお、逆に、出現度数が極端に少な
いコードの間の間隔からも誤差があるビットの桁位置を
検出することができる。あるいは、両者を併用して検出
することもできる。
[0022] For example, the spacing between the occurrence frequency is extremely large code 2, i.e., when the interval between the quantization levels is 2 1 times the quantization level of the least significant bit, error in the least significant bit You can see that there is. The interval is 2 3, that is, when the interval of the quantization level is 2 3 times the quantization level of the least significant bit, that there is an error from the least significant bit to the bit digit position of the third bit Understand. When the interval between the quantization levels of a plurality of codes having extremely large numbers of appearances is 2 n , it can be seen that there is an error in the bit at the n-th digit position from the least significant bit. A threshold is required to determine that the frequency of appearance is extremely large. For example, if the normalized appearance frequency A is 1.2 or more, it can be determined that the appearance frequency is extremely large. This threshold is 1.5
It may be about. Conversely, the digit position of a bit having an error can be detected from the interval between codes having extremely small appearance frequencies. Alternatively, both can be detected in combination.

【0023】図3は、誤差ビット検出手段の機能を実現
する処理ステップを説明するフローチャートである。S
11において、正規化されたヒストグラムを正規化手段
4から入力する。S12において、変数nの値の初期値
を、ディジタルオーディオ信号の量子化ビット数から1
を減算した値とする。S13において、各コードの正規
化された出現度数を各コードの量子化レベルの2n ごと
に抽出する。S14において、抽出された全ての正規化
された出現度数が1.2以上であるか否かが判定され
る。1.2以上であれば、S15に処理が進み、1.2
未満であれば、S16に処理が進む。S15において、
最下位ビットからnビット目に誤差があることがわかる
からnの値を誤差ビットメモリに記憶する。S16にお
いて、nの値から1を減算してnの値を更新する。S1
7において、nの値が0であればS18に処理が進み、
nの値が0でなければ、S13に処理が戻る。S18に
おいて、誤差ビットメモリに記憶された誤差ビットをデ
ィジタル信号処理手段6に転送し処理を終了する。
FIG. 3 is a flowchart for explaining processing steps for realizing the function of the error bit detecting means. S
At 11, the normalized histogram is input from the normalizing means 4. In S12, the initial value of the variable n is set to 1 based on the number of quantization bits of the digital audio signal.
Is subtracted. In S13, the normalized appearance frequency of each code is extracted for every 2 n quantization levels of each code. In S14, it is determined whether or not all the extracted normalized appearance frequencies are 1.2 or more. If it is 1.2 or more, the process proceeds to S15, and
If less, the process proceeds to S16. In S15,
Since it is known that there is an error at the nth bit from the least significant bit, the value of n is stored in the error bit memory. In S16, 1 is subtracted from the value of n to update the value of n. S1
At step 7, if the value of n is 0, the process proceeds to S18,
If the value of n is not 0, the process returns to S13. In S18, the error bits stored in the error bit memory are transferred to the digital signal processing means 6, and the process is terminated.

【0024】ディジタル信号処理手段6は、ディジタル
オーディオ信号を入力し、誤差ビット検出手段5の出力
に基づいて、リアルタイムで直線性誤差を低減する処理
を行なう。誤差により出現度数の大きくなったレベルを
有する複数のサンプルの一部のサンプルを本来の正しい
レベルであると推測されるレベルに変換することにより
A/Dコンバータの直線性誤差による歪みを低減させ
る。
The digital signal processing means 6 receives a digital audio signal and performs processing for reducing a linearity error in real time based on the output of the error bit detection means 5. By converting some of a plurality of samples having a level whose appearance frequency increases due to an error into a level estimated to be an original correct level, distortion due to a linearity error of the A / D converter is reduced.

【0025】図4は、直線性誤差を補正する手順を示す
フローチャートである。S21において、補正の対象と
なるディジタルオーディオ信号の各サンプルのコードを
リアルタイムで入力する。S22において、1サンプル
のコードごとに、誤差ビットの桁位置における値が1で
あるか否かが判定される。誤差ビットの桁位置における
値が1となるコードは、誤差ビットにより量子化レベル
が影響を受けたコードである。誤差ビットの桁位置にお
ける値が1である場合にはS23に処理が進められ、1
でない場合にはS24に処理が進められる。S23にお
いて、当該サンプルの正しい量子化レベル、すなわち、
コードを推定し、S24に処理が進められる。S24に
おいて、入力されたサンプルのコード、または、S23
において推定されたコードが内部ファイルに書き込まれ
た上で、外部に出力される。この際、時間軸上の位置、
すなわち、当該サンプルが最初から何サンプル目のもの
かを示すデータもそのコードとともにファイルに記憶さ
れる。
FIG. 4 is a flowchart showing a procedure for correcting a linearity error. In S21, the code of each sample of the digital audio signal to be corrected is input in real time. In S22, it is determined whether or not the value at the digit position of the error bit is 1 for each code of one sample. The code whose value at the digit position of the error bit is 1 is a code whose quantization level is affected by the error bit. If the value at the digit position of the error bit is 1, the process proceeds to S23, where 1
If not, the process proceeds to S24. In S23, the correct quantization level of the sample, that is,
The code is estimated, and the process proceeds to S24. In S24, the code of the input sample or S23
Is written to an internal file and output to the outside. At this time, the position on the time axis,
That is, data indicating the order of the sample from the beginning is also stored in the file together with the code.

【0026】LSBを最下位ビットの量子化レベルと
し、a,bを正の整数とし、Nを0または正の整数とす
る。逐次比較形A/Dコンバータ内部の抵抗値が、下位
からaビット目において、+b・LSBの誤差を持つ場
合、量子化レベルが2a ・N+2a-1 −1となるコード
の出現度数がb+1倍に増加し、量子化レベルが2a
N+2a −1から2a ・N+2a −bまでの間の各コー
ドの出現度数がいずれも0になる。また、下位からaビ
ット目に−b・LSBの誤差を持つ場合、量子化レベル
が2a ・N+2a −1の出現度数がb+1倍に増加し、
量子化レベルが2a ・N+2a-1 −1から2a ・N+2
a-1+b−1までの間の各コードの出現度数がいずれも
0になる。
LSB is the quantization level of the least significant bit, a and b are positive integers, and N is 0 or a positive integer. When the resistance value inside the successive approximation type A / D converter has an error of + b · LSB in the ath bit from the lower bit, the frequency of occurrence of the code having the quantization level of 2 a · N + 2 a−1 −1 is b + 1 And the quantization level is 2 a ·
The appearance frequency of each code from N + 2 a -1 to 2 a · N + 2 a -b becomes zero. Also, when there is an error of −b · LSB in the a bit from the lower bit, the frequency of occurrence of the quantization level of 2 a · N + 2 a −1 increases by b + 1 times,
The quantization level is 2 a · N + 2 a−1 −1 to 2 a · N + 2
The frequency of occurrence of each code up to a-1 + b-1 is zero.

【0027】したがって、このような誤差がキャンセル
されるように補正してやれば、A/Dコンバータの直線
性誤差による歪みは低減される。しかし、正しくは出現
度数が少ないところのコードでなければならないサンプ
ルデータは、出現度数が多いところのコードに誤変換さ
れている。従って、出現度数が多い量子化レベルを有す
る複数のサンプル中には、本来他の量子化レベルになる
べきサンプルも含まれている。
Therefore, if such an error is corrected so as to be canceled, the distortion due to the linearity error of the A / D converter is reduced. However, correctly, sample data that should be a code with a low frequency of occurrence is erroneously converted into a code with a high frequency of occurrence. Therefore, a plurality of samples having a quantization level with a large number of appearances include a sample that should originally have another quantization level.

【0028】それを補正するために、まず、どの程度の
割合で誤変換されているのかを調べる必要がある。誤差
ビット検出手段5で検出された1つの誤差ビットの影響
を受けて出現度数が極端に多くなる複数のコードが理論
的に得られる。このような複数のコードが実際に検出さ
れた出現度数の平均をXとする。そして、前記の誤差ビ
ットの影響を受けて出現度数が極端に多くなるコードを
有するサンプルについて、そのコードを、前記1つの誤
差ビットにより出現度数が理論的に極端に小さくなる1
または複数のコードに、前記Xの値に応じて、例えば、
X個に1個の割合で変換すれば良い。複数のビットに誤
差がある場合、上記の操作をそれぞれに対して行なう。
In order to correct this, it is first necessary to check how much error conversion has occurred. A plurality of codes whose appearance frequency becomes extremely large under the influence of one error bit detected by the error bit detection means 5 can be theoretically obtained. Let X be the average of the frequency of occurrence of such multiple codes actually detected. Then, for a sample having a code whose occurrence frequency becomes extremely large under the influence of the error bit, the code is changed to a code whose occurrence frequency is theoretically extremely small by the one error bit.
Or, according to the value of the X, a plurality of codes, for example,
What is necessary is just to convert at a rate of one to X pieces. When there are errors in a plurality of bits, the above operation is performed for each of them.

【0029】誤差ビット検出手段5において検出された
誤差ビットの影響を受けて量子化された振幅レベルは、
図4に示されたS23において、時間軸上で隣接するサ
ンプルの量子化レベルの差によって正負のどちらに訂正
すればよいかを判断する。
The amplitude level quantized under the influence of the error bit detected by the error bit detection means 5 is:
In S23 shown in FIG. 4, it is determined which of positive and negative should be corrected based on the difference between the quantization levels of adjacent samples on the time axis.

【0030】図5は、正しいコードを推定する手法を説
明するためのA/D変換特性図である。図中、横軸はア
ナログ入力を表わし、縦軸はA/D変換後のディジタル
出力を表わす。なお、破線は、A/Dコンバータの理想
特性を表わす。誤差ビットの桁位置における値が1であ
るコードについて、このコードが時間軸上で何サンプル
連続しているかを内部ファイルを読み出して調べる。例
えば、下位からa=3ビット目にb=+1・LSBの誤
差を持っていると判断した場合、A/Dコンバータの入
出力特性は、図5に示されたものとなる。すなわち、8
N+3においてアナログ入力の+1・LSB相当の増加
に対してディジタル出力が変化しない。したがって、8
N+3においては、出現度数が極端に多くなる。そし
て、8N+6においてアナログ入力の+1・LSB相当
の増加に対してディジタル出力が8N+7にならずに8
N+8となる。なお、図5に示された特性図において
は、N=−2としたときの出力の位置に、8N+3〜8
N+6を記載している。
FIG. 5 is an A / D conversion characteristic diagram for explaining a technique for estimating a correct code. In the figure, the horizontal axis represents analog input, and the vertical axis represents digital output after A / D conversion. Note that the broken line indicates the ideal characteristics of the A / D converter. For a code whose value at the digit position of the error bit is 1, the internal file is read to check how many samples the code continues on the time axis. For example, when it is determined that there is an error of b = + 1 · LSB in the a = 3th bit from the lower order, the input / output characteristics of the A / D converter are as shown in FIG. That is, 8
At N + 3, the digital output does not change with an increase in the analog input corresponding to + 1 · LSB. Therefore, 8
In N + 3, the frequency of appearance becomes extremely large. At 8N + 6, the digital output becomes 8N + 7 instead of 8N + 7 for an increase of the analog input corresponding to + 1 · LSB.
N + 8. In the characteristic diagram shown in FIG. 5, 8N + 3 to 8N
N + 6 is described.

【0031】図6は、正しいコードを推定する手法を説
明するための時間軸上のディジタル出力コードを表わす
説明図である。図中、横軸は時間を表わし、縦軸は各サ
ンプリング時刻ごとのサンプルのディジタル出力コード
を振幅レベルで表わす。直線性誤差を低減させるため
に、8N+4から8N+6に該当するディジタル出力
は、すべて、+1・LSBだけ大きな値に変換する。そ
して、図5において、8N+3に該当するディジタル出
力のサンプルを、K1 ,K2 ,・・・,Kt とすると、
8N+3に該当するサンプルが2サンプル以上tサンプ
ル続いた場合、K1とその1サンプル前のサンプルK0
とのディジタル出力の差をとり、この差をDとする。D
が正の場合には、Kt/2 からKt までの値を+1し、D
が負の場合には、K1 からKt/2 の値を+1する。
FIG. 6 is an explanatory diagram showing a digital output code on a time axis for explaining a method of estimating a correct code. In the figure, the horizontal axis represents time, and the vertical axis represents the digital output code of the sample at each sampling time by the amplitude level. In order to reduce the linearity error, all digital outputs corresponding to 8N + 4 to 8N + 6 are converted to values larger by + 1 · LSB. Then, in FIG. 5, if the digital output samples corresponding to 8N + 3 are K 1 , K 2 ,..., K t ,
When two or more samples corresponding to 8N + 3 continue for t samples or more, K 1 and a sample K 0 immediately before the sample K 0
And the difference between the digital outputs is referred to as D. D
Is positive, the value from Kt / 2 to Kt is incremented by 1, and D
Is negative, the value of K 1 to K t / 2 is incremented by one.

【0032】このようにすることにより、2回に1回の
割合で8N+3に該当するディジタル出力のサンプル
は、+1・LSBだけ大きな値に変換される。どのサン
プルを変換するかは、時間軸上で隣接するサンプルの量
子化レベルの差であるDにより決定される。上述した説
明では、b=+1・LSBの誤差を持っていると判断し
た場合について説明したが、bの値が他の値であって
も、同様に正しいコードを推定することができる。な
お、tの値が奇数の時は、t/2の値が整数になるよう
切り捨てまたは切り上げをする。以上の操作により、A
/Dコンバータの直線性誤差により誤った値に変換され
たデータを簡単に補正することができ、直線性誤差を低
減することができる。
By doing so, the digital output sample corresponding to 8N + 3 is converted to a value larger by + 1 · LSB once in two times. Which sample is to be transformed is determined by D, which is the difference between the quantization levels of adjacent samples on the time axis. In the above description, the case where it is determined that there is an error of b = + 1 · LSB has been described. However, even if the value of b is another value, a correct code can be similarly estimated. When the value of t is an odd number, the value is rounded down or rounded up so that the value of t / 2 becomes an integer. By the above operation, A
Data converted to an incorrect value due to the linearity error of the / D converter can be easily corrected, and the linearity error can be reduced.

【0033】なお、直線性誤差の補正方法としては、あ
るサンプルの量子化レベルを時間軸上で隣接したサンプ
ルの量子化レベルから推定する際に用いる各種の補間技
術を用いることができる。すなわち、誤差ビット検出手
段5により判定された誤差ビットがその量子化レベルに
影響を与えているコードを有する連続したサンプルにつ
いて、これらの補間技術を用いて補正することができ
る。
As a method of correcting the linearity error, various interpolation techniques used when estimating the quantization level of a certain sample from the quantization levels of adjacent samples on the time axis can be used. That is, continuous samples having a code in which the error bit determined by the error bit detection unit 5 affects the quantization level can be corrected using these interpolation techniques.

【0034】なお、上述した説明では、A/Dコンバー
タの直線性誤差低減装置としての実施例を説明したが、
その一部分の構成の実施例として用いた、正規化手段4
までのブロックは、A/Dコンバータの直線性誤差を検
出する装置として用いることができる。
In the above description, the embodiment as the linearity error reducing device of the A / D converter has been described.
Normalization means 4 used as an example of a part of the configuration
The above blocks can be used as a device for detecting the linearity error of the A / D converter.

【0035】[0035]

【発明の効果】以上の説明から明らかなように、本発明
によれば、使用されたA/Dコンバータの特性が分から
なくても、A/Dコンバータの直線性誤差に基づく歪み
を有する音楽ソフトの歪みを低減し、音楽ソフトの品質
を高めることができるという効果がある。また、使用さ
れたA/Dコンバータ自体がなくてもこの使用されたA
/Dコンバータの直線性誤差を検出することができると
いう効果がある。
As is apparent from the above description, according to the present invention, even if the characteristics of the used A / D converter are not known, the music software having the distortion based on the linearity error of the A / D converter. There is an effect that the distortion of the music can be reduced and the quality of the music software can be improved. Even if the used A / D converter itself is not used,
There is an effect that a linearity error of the / D converter can be detected.

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

【図1】本発明の実施例の概要を説明するブロック図で
ある。
FIG. 1 is a block diagram illustrating an outline of an embodiment of the present invention.

【図2】実際のディジタルオーディオ信号のヒストグラ
ムの一例である。
FIG. 2 is an example of a histogram of an actual digital audio signal.

【図3】誤差ビット検出手段の機能を実現する処理ステ
ップを説明するフローチャートである。
FIG. 3 is a flowchart illustrating processing steps for realizing a function of an error bit detection unit.

【図4】直線性誤差を時間軸上で補正する手順を示すフ
ローチャートである。
FIG. 4 is a flowchart showing a procedure for correcting a linearity error on a time axis.

【図5】正しいコードを推定する手法を説明するための
A/D変換特性図である。
FIG. 5 is an A / D conversion characteristic diagram for explaining a method of estimating a correct code.

【図6】正しいコードを推定する手法を説明するための
時間軸上のディジタル出力コードを表わす説明図であ
る。
FIG. 6 is an explanatory diagram showing a digital output code on a time axis for explaining a technique for estimating a correct code.

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

1…切り換え手段、2…メモリ、3…ヒストグラム化手
段、4…正規化手段、5…誤差ビット検出手段、6…デ
ィジタル信号処理手段。
DESCRIPTION OF SYMBOLS 1 ... Switching means, 2 ... Memory, 3 ... Histogram conversion means, 4 ... Normalization means, 5 ... Error bit detection means, 6 ... Digital signal processing means.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭59−127419(JP,A) 特開 平4−144423(JP,A) 特開 平5−333140(JP,A) 特開 平6−300854(JP,A) 特開 昭64−78525(JP,A) 特開 昭62−72226(JP,A) 実開 平4−31834(JP,U) 実開 平3−113538(JP,U) (58)調査した分野(Int.Cl.7,DB名) H03M 1/00 - 1/88 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-59-127419 (JP, A) JP-A-4-144423 (JP, A) JP-A-5-333140 (JP, A) 300854 (JP, A) JP-A-64-78525 (JP, A) JP-A-62-72226 (JP, A) JP-A-4-31834 (JP, U) JP-A-3-113538 (JP, U) (58) Field surveyed (Int. Cl. 7 , DB name) H03M 1/00-1/88

Claims (9)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 A/Dコンバータによりコードに変換さ
れたディジタルオーディオ信号の少なくとも一部からコ
ードごとの出現度数を検出する出現度数検出手段と、該
出現度数検出手段の出力を入力し、前記コードごとの出
現度数を、各コードおよびその量子化レベルが該各コー
ドの近傍にあるコードにおける平均出現度数と比較する
ことにより、直線性誤差が生じたコードを検出する直線
性誤差抽出手段を有することを特徴とするディジタルオ
ーディオ信号の直線性誤差検出装置。
1. An appearance frequency detection means for detecting an appearance frequency of each code from at least a part of a digital audio signal converted into a code by an A / D converter, and an output of the appearance frequency detection means being input, and A linearity error extracting means for detecting a code having a linearity error by comparing the frequency of occurrence of each code with the average frequency of occurrence of each code and the code whose quantization level is in the vicinity of each code. An apparatus for detecting a linearity error of a digital audio signal.
【請求項2】 前記直線性誤差抽出手段は、前記検出し
たコードごとの出現度数を、各コードおよびその量子化
レベルが該各コードの近傍にあるコードにおける平均出
現度数によって正規化することにより前記比較を行なう
ものであることを特徴とする請求項1に記載のディジタ
ルオーディオ信号の直線性誤差検出装置。
2. The linearity error extracting means normalizes the frequency of occurrence of each detected code by an average frequency of occurrence of each code and a code whose quantization level is in the vicinity of each code. 2. The apparatus for detecting a linearity error of a digital audio signal according to claim 1, wherein the apparatus performs comparison.
【請求項3】 A/Dコンバータによりコードに変換さ
れたディジタルオーディオ信号の少なくとも一部からコ
ードごとの出現度数を検出する出現度数検出手段と、該
出現度数検出手段の出力を入力し、前記コードごとの出
現度数を、各コードおよびその量子化レベルが該各コー
ドの近傍にあるコードにおける平均出現度数と比較する
ことにより、直線性誤差が生じたコードを検出する直線
性誤差抽出手段と、該直線性誤差抽出手段により検出さ
れた直線性誤差が生じたコードに基づいて、前記A/D
コンバータによりコードに変換されたディジタルオーデ
ィオ信号における直線性誤差が生じたコードを補正する
直線性誤差低減手段を有することを特徴とするディジタ
ルオーディオ信号の直線性誤差低減装置。
3. An appearance frequency detection means for detecting an appearance frequency of each code from at least a part of a digital audio signal converted into a code by an A / D converter, and an output of the appearance frequency detection means being inputted, and A linearity error extracting means for detecting a code having a linearity error by comparing the frequency of occurrence of each code with the average frequency of occurrence of each code and a code whose quantization level is in the vicinity of each code; Based on the code having the linearity error detected by the linearity error extracting means, the A / D
An apparatus for reducing a linearity error of a digital audio signal, comprising: a linearity error reducing means for correcting a code having a linearity error in a digital audio signal converted into a code by a converter.
【請求項4】 前記直線性誤差抽出手段が、前記検出し
たコードごとの出現度数を、各コードおよびその量子化
レベルが該各コードの近傍にあるコードにおける平均出
現度数によって正規化することにより前記比較を行なう
ものであることを特徴とする請求項3に記載のディジタ
ルオーディオ信号の直線性誤差低減装置。
4. The linearity error extracting means normalizes the frequency of occurrence of each detected code by an average frequency of occurrence of each code and a code whose quantization level is in the vicinity of each code. 4. The apparatus according to claim 3, wherein the comparison is performed.
【請求項5】 前記直線性誤差低減手段が、前記直線性
誤差が生じたコードの量子化レベルの間隔から前記直線
性誤差が生じたコードにおける誤差が生じたビットを検
出して当該ビットを補正するものであることを特徴とす
る請求項3または4に記載のディジタルオーディオ信号
の直線性誤差低減装置。
5. The linearity error reducing unit detects a bit in which an error has occurred in a code in which the linearity error has occurred from an interval between quantization levels of the code in which the linearity error has occurred, and corrects the bit. The apparatus for reducing a linearity error of a digital audio signal according to claim 3 or 4, wherein:
【請求項6】 A/Dコンバータによりコードに変換さ
れたディジタルオーディオ信号の少なくとも一部からコ
ードごとの出現度数を検出し、検出したコードごとの出
現度数を、各コードおよびその量子化レベルが該各コー
ドの近傍にあるコードにおける平均出現度数と比較する
ことにより、直線性誤差が生じたコードを検出すること
を特徴とするディジタルオーディオ信号の直線性誤差検
出方法。
6. An appearance frequency of each code is detected from at least a part of the digital audio signal converted into a code by the A / D converter, and the appearance frequency of each detected code is determined by each code and its quantization level. A method for detecting a linearity error in a digital audio signal, wherein a code having a linearity error is detected by comparing the average appearance frequency of a code near each code.
【請求項7】 前記検出したコードごとの出現度数を、
各コードおよびその量子化レベルが該各コードの近傍に
あるコードにおける平均出現度数によって正規化するこ
とにより前記比較を行なうことを特徴とする請求項6に
記載のディジタルオーディオ信号の直線性誤差検出方
法。
7. The appearance frequency of each detected code is represented by:
7. The method for detecting a linearity error of a digital audio signal according to claim 6, wherein the comparison is performed by normalizing each code and its quantization level by an average frequency of occurrence in a code near each code. .
【請求項8】 請求項6または7に記載のディジタルオ
ーディオ信号の直線性誤差検出方法により検出された直
線性誤差が生じたコードに基づいて、前記A/Dコンバ
ータによりコードに変換されたディジタルオーディオ信
号における直線性誤差が生じたコードを補正することを
特徴とするディジタルオーディオ信号の直線性誤差低減
方法。
8. A digital audio signal converted by the A / D converter into a code based on a code having a linearity error detected by the digital audio signal linearity error detection method according to claim 6 or 7. A method for reducing a linearity error of a digital audio signal, comprising correcting a code having a linearity error in the signal.
【請求項9】 前記直線性誤差が生じたコードの量子化
レベルの間隔から前記直線性誤差が生じたコードにおけ
る誤差が生じたビットを検出して当該ビットを補正する
ことを特徴とする請求項8に記載のディジタルオーディ
オ信号の直線性誤差低減方法。
9. The method according to claim 1, wherein a bit having an error in the code having the linearity error is detected based on an interval between quantization levels of the code having the linearity error, and the bit is corrected. 9. The method for reducing a linearity error of a digital audio signal according to item 8.
JP02780995A 1995-02-16 1995-02-16 Apparatus and method for detecting linearity error of digital audio signal, and apparatus and method for reducing linearity error Expired - Fee Related JP3256399B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02780995A JP3256399B2 (en) 1995-02-16 1995-02-16 Apparatus and method for detecting linearity error of digital audio signal, and apparatus and method for reducing linearity error

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02780995A JP3256399B2 (en) 1995-02-16 1995-02-16 Apparatus and method for detecting linearity error of digital audio signal, and apparatus and method for reducing linearity error

Publications (2)

Publication Number Publication Date
JPH08223039A JPH08223039A (en) 1996-08-30
JP3256399B2 true JP3256399B2 (en) 2002-02-12

Family

ID=12231311

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02780995A Expired - Fee Related JP3256399B2 (en) 1995-02-16 1995-02-16 Apparatus and method for detecting linearity error of digital audio signal, and apparatus and method for reducing linearity error

Country Status (1)

Country Link
JP (1) JP3256399B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1033817A4 (en) * 1997-03-18 2003-01-08 Nippon Columbia Distortion detecting device, distortion correcting device, and distortion correcting method for digital audio signal
JP4932619B2 (en) * 2007-07-03 2012-05-16 ルネサスエレクトロニクス株式会社 A / D converter
US8706445B2 (en) 2009-07-22 2014-04-22 Advantest Corporation Measurement apparatus, program, recording medium, and measurement method
JP6213570B2 (en) 2013-10-01 2017-10-18 富士通株式会社 A / D converter and calibration method of A / D converter

Also Published As

Publication number Publication date
JPH08223039A (en) 1996-08-30

Similar Documents

Publication Publication Date Title
US4914439A (en) Analog to digital conversion system utilizing dither
US4618851A (en) Apparatus for reproducing signals pre-stored in a memory
CA1172366A (en) Methods and apparatus for encoding and constructing signals
US20050143981A1 (en) Compressing method and apparatus, expanding method and apparatus, compression and expansion system, recorded medium, program
JP3256399B2 (en) Apparatus and method for detecting linearity error of digital audio signal, and apparatus and method for reducing linearity error
EP0217357B1 (en) Waveform normalizer for electronic musical instrument
JP3556066B2 (en) Distortion detection device, distortion correction device, and distortion correction method
US6587984B1 (en) Distortion detecting device, distortion correcting device, and distortion correcting method for digital audio signal
US5696875A (en) Method and system for compressing a speech signal using nonlinear prediction
JP3081047B2 (en) Coding method for reducing DC voltage component in data stream of digital signal
JP3520554B2 (en) Digital data reproducing method and apparatus
US5781564A (en) Method and apparatus for detecting and concealing data errors in stored digital data
JP3475064B2 (en) Distortion correction device and distortion correction method
JPH10322205A (en) Device and method for correcting nonlinear distortion
JPH0936740A (en) Bit length extension method and device therefor
JPH10135829A (en) Analog/digital converting error reducing device
JPS594345A (en) Correcting device of data transmission system
JP2562659B2 (en) ADPCM signal decoding device
JP2614840B2 (en) Digital audio recording and playback device
JPH10303748A (en) Distortion reduction device and method therefor
JPH10322207A (en) Device and method for reducing distortion and information recording medium
JP2601440B2 (en) Digital audio recording and playback device
JP2668854B2 (en) DA converter
JPS5979651A (en) Method and apparatus for transmitting signal
KR970006023B1 (en) Error correction circuit using position polynomial parameter generation method

Legal Events

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