JP3252298B2 - Sampling rate converter - Google Patents

Sampling rate converter

Info

Publication number
JP3252298B2
JP3252298B2 JP00762993A JP762993A JP3252298B2 JP 3252298 B2 JP3252298 B2 JP 3252298B2 JP 00762993 A JP00762993 A JP 00762993A JP 762993 A JP762993 A JP 762993A JP 3252298 B2 JP3252298 B2 JP 3252298B2
Authority
JP
Japan
Prior art keywords
sampling rate
data
signal
circuit
output timing
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
JP00762993A
Other languages
Japanese (ja)
Other versions
JPH06216711A (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 JP00762993A priority Critical patent/JP3252298B2/en
Publication of JPH06216711A publication Critical patent/JPH06216711A/en
Application granted granted Critical
Publication of JP3252298B2 publication Critical patent/JP3252298B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデジタルオーディオ等に
用いるサンプリングレートコンバータに関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sampling rate converter used for digital audio and the like.

【0002】[0002]

【従来の技術】デジタルオーディオ等に用いられるデジ
タル信号には、方式によって異なるサンプリングレート
が用いられる。したがって、異なる方式間でデータのや
りとりをするためにはサンプリングレートの変換が必要
となる。このように、オーディオ信号等の波形信号の同
一性を保持したままサンプリングレートを変換する装置
をサンプリングレートコンバータと呼んでいる。
2. Description of the Related Art Different sampling rates are used for digital signals used in digital audio and the like depending on the system. Therefore, in order to exchange data between different systems, it is necessary to convert the sampling rate. Such a device that converts the sampling rate while maintaining the identity of waveform signals such as audio signals is called a sampling rate converter.

【0003】[0003]

【発明が解決しようとする課題】最近の聴覚に関する研
究によれば、音程にいわゆる1/fゆらぎを持たせるこ
とにより聴覚的に心地よく感ずることがわかってきた。
しかしながら、従来のサンプリングレートコンバータで
はこのような点を考慮していなかった。
According to recent studies on hearing, it has been found that a sound is pleasantly felt by giving a so-called 1 / f fluctuation to a pitch.
However, such a point has not been taken into consideration in the conventional sampling rate converter.

【0004】本発明の目的は、1/fゆらぎにより聴覚
的に音質を向上させることが可能なサンプリングレート
コンバータを提供することである。
An object of the present invention is to provide a sampling rate converter capable of improving sound quality auditoryly by 1 / f fluctuation.

【0005】[0005]

【課題を解決するための手段】本発明は、第1サンプリ
ングレートの第1信号を第2サンプリングレートの第2
信号に変換するサンプリングレートコンバータにおい
て、上記第1サンプリングレートと上記第2サンプリン
グレートとの比を算出するサンプリングレート比算出回
路と、上記サンプリングレート比算出回路の出力データ
にスペクトル分布が1/f特性となるランダム信号デー
タを付加する付加回路と、上記付加回路からの出力デー
タに基いて上記第2信号の出力タイミングを予測する予
測回路と、上記第1信号を受けて上記予測回路で予測さ
れた上記第2信号の予測出力タイミングにおける上記第
2信号の値を演算する演算回路とを有する。
According to the present invention, a first signal at a first sampling rate is converted to a second signal at a second sampling rate.
A sampling rate converter for converting a signal into a signal, a sampling rate ratio calculating circuit for calculating a ratio between the first sampling rate and the second sampling rate, and an output data of the sampling rate ratio calculating circuit having a 1 / f characteristic spectrum distribution. An additional circuit for adding random signal data, a prediction circuit for predicting the output timing of the second signal based on output data from the additional circuit, and a prediction circuit for receiving the first signal and predicting the output timing of the second signal. An arithmetic circuit for calculating the value of the second signal at the predicted output timing of the second signal.

【0006】上記サンプリングレートコンバータにおい
て、上記第2信号の予測出力タイミングと上記第2信号
の実際の出力タイミングとを比較してその誤差に基いて
所定の補正データを生成する比較回路を設け、この補正
データを上記付加回路においてさらに付加するようにし
てもよい。
In the sampling rate converter, a comparison circuit is provided for comparing the predicted output timing of the second signal with the actual output timing of the second signal and generating predetermined correction data based on the error. The correction data may be further added in the additional circuit.

【0007】[0007]

【実施例】以下、本発明におけるサンプリングレートコ
ンバータの実施例について、図1を参照して説明する。
なお、本実施例の各構成要素の詳細については、1/f
ゆらぎに関する事項を除いて、その他の大部分につい
て、本願出願人が先に開示した特願平5−1158号
(平成5年1月7日出願)に記載されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a sampling rate converter according to the present invention will be described below with reference to FIG.
For details of each component of the present embodiment, see 1 / f
Except for the fluctuations, most of the other components are described in Japanese Patent Application No. 5-1158 (filed on January 7, 1993) previously disclosed by the present applicant.

【0008】サンプリングレート比算出回路11は、入
力側クロック“Cin”と出力側クロック“Cou”との比
に対応したデータ、すなわち入力側サンプリングレート
と出力側サンプリングレートとの比に対応したデータ
“a”を算出するものである。1/fランダム信号生成
回路12は、スペクトル分布が1/f特性となるランダ
ム信号データ“b”を生成するものである。加算回路1
3は、上記データ“a”にランダム信号データ“b”お
よび後述の補正データ“c”を付加するものであり、具
体的にはこれらのデータの加減算を行うものである。予
測回路14は、加算回路13からのデータ“d”に基い
て出力側データ“Dou”の出力タイミングを予測し、予
測出力タイミングデータ“e”を出力するものである。
FIFOバッファ15は、予測回路14から順次出力さ
れる予測出力タイミングデータ“e”を順次遅延させる
ためのものである。比較回路16は、FIFOバッファ
15から順次出力される予測出力タイミングデータ
“f”と出力側データ“Dou”の実際の出力タイミング
データ“g”とを比較し、両者の誤差に基いて補正デー
タ“c”を生成するものである。演算回路17は、入力
側データ“Din”および予測出力タイミングデータ
“e”を入力して補間演算等の演算を行い、出力側デー
タ“Dou”の予測出力タイミングにおける出力側データ
“Dou”の値を算出するものである。FIFOバッファ
18は、演算回路17から順次出力される出力データ
“h”を一時的に保持した後、これらのデータを予測出
力タイミングに合わせて順次出力するものである。
The sampling rate ratio calculating circuit 11 outputs data corresponding to the ratio between the input clock “Cin” and the output clock “Cou”, that is, data “corresponding to the ratio between the input sampling rate and the output sampling rate. a "is calculated. The 1 / f random signal generation circuit 12 generates random signal data “b” whose spectrum distribution has a 1 / f characteristic. Addition circuit 1
No. 3 adds random signal data "b" and correction data "c" to be described later to the data "a", and specifically performs addition and subtraction of these data. The prediction circuit 14 predicts the output timing of the output-side data “Dou” based on the data “d” from the addition circuit 13 and outputs predicted output timing data “e”.
The FIFO buffer 15 is for sequentially delaying the predicted output timing data “e” sequentially output from the prediction circuit 14. The comparison circuit 16 compares the predicted output timing data “f” sequentially output from the FIFO buffer 15 with the actual output timing data “g” of the output side data “Dou”, and corrects the correction data “g” based on the error between the two. c "is generated. The arithmetic circuit 17 receives the input data “Din” and the predicted output timing data “e”, performs an operation such as an interpolation operation, and calculates the value of the output data “Dou” at the predicted output timing of the output data “Dou”. Is calculated. The FIFO buffer 18 temporarily holds output data "h" sequentially output from the arithmetic circuit 17, and then sequentially outputs these data in synchronization with the predicted output timing.

【0009】つぎに、図1に示した実施例の動作を説明
する。
Next, the operation of the embodiment shown in FIG. 1 will be described.

【0010】サンプリングレート比算出回路11には、
入力側クロック“Cin”および出力側クロック“Cou”
が入力され、両者の比(サンプリングレート比)に対応
したデータ“a”が出力される。このサンプリングレー
ト比に対応したデータ“a”は、加算回路13によりス
ペクトル分布が1/f特性となるランダム信号データ
“b”と加算される。サンプリングレート比は出力側デ
ータ“Dou”の出力タイミング(予測出力タイミングデ
ータ“e”)に対応したものであるから、出力タイミン
グに1/fゆらぎを持たせることになる。加算回路13
では同時に補正データ“c”が減算される。予測回路1
4では、加算データ“d”に基いて出力側データ“Do
u”の出力タイミングを予測し、予測出力タイミングデ
ータ“e”を出力する。
The sampling rate ratio calculating circuit 11 includes:
Input side clock “Cin” and output side clock “Cou”
Is input, and data “a” corresponding to the ratio between them (sampling rate ratio) is output. The data “a” corresponding to the sampling rate ratio is added by the adding circuit 13 to the random signal data “b” whose spectrum distribution has a 1 / f characteristic. Since the sampling rate ratio corresponds to the output timing of the output side data “Dou” (predicted output timing data “e”), the output timing has 1 / f fluctuation. Adder circuit 13
At the same time, the correction data "c" is subtracted. Prediction circuit 1
4, the output side data “Do” based on the addition data “d”
The output timing of “u” is predicted, and predicted output timing data “e” is output.

【0011】演算回路17では、入力側データ“Din”
および予測出力タイミングデータ“e”を入力して補間
演算等の演算が行なわれ、出力側データ“Dou”の予測
出力タイミングに対応した時点における出力側データ
“Dou”の値が算出される。本来ならば、出力側データ
“Dou”の実際の出力タイミングを表すデータ“g”を
用いて出力側データ“Dou”の算出を行うことができれ
ば、正確な出力側データ“Dou”を得ることができる。
しかしながら、実際の出力タイミングはクロック信号
(出力タイミング信号)のジッタ等によって変動するた
め、正確な出力タイミングはその時点にならなければわ
からない。すなわち、実際の出力タイミング信号が生じ
るまで、実際の出力タイミングデータ“g”の値はわか
らない。また、出力側データ“Dou”の値を算出するた
めには演算時間が必要となる。したがって、実際の出力
タイミングを表すデータ“g”を直接用いて出力側デー
タ“Dou”の算出を行うことは、本質的に不可能であ
る。そこで、予測出力タイミングデータ“e”を用いて
演算を行うわけである。演算回路17から順次出力され
る予測出力タイミングデータ“h”は、FIFOバッフ
ァ18で一時的に保持された後、予測出力タイミングに
合わせて順次出力される。
In the arithmetic circuit 17, the input side data "Din"
Then, an operation such as an interpolation operation is performed by inputting the predicted output timing data “e” and the value of the output data “Dou” at the time corresponding to the predicted output timing of the output data “Dou” is calculated. Normally, if the output-side data “Dou” can be calculated using the data “g” representing the actual output timing of the output-side data “Dou”, accurate output-side data “Dou” can be obtained. it can.
However, the actual output timing fluctuates due to the jitter of the clock signal (output timing signal) or the like, so that the exact output timing cannot be known until that time. That is, the value of the actual output timing data "g" is not known until the actual output timing signal is generated. Further, calculating the value of the output-side data “Dou” requires a calculation time. Therefore, it is essentially impossible to directly calculate the output side data "Dou" using the data "g" representing the actual output timing. Therefore, the calculation is performed using the predicted output timing data “e”. The predicted output timing data “h” sequentially output from the arithmetic circuit 17 is temporarily stored in the FIFO buffer 18 and then sequentially output in accordance with the predicted output timing.

【0012】一方、予測出力タイミングデータ“e”
は、FIFOバッファ15で順次遅延された後、比較回
路16で出力側データ“Dou”の実際の出力タイミング
データ“g”と比較され、その誤差データに基いて補正
データ“c”が生成される。この補正データ“c”は、
加算回路13に入力され、加算回路13の加算データの
値を増減させる。すなわち、補正データ“c”により予
測出力タイミングデータ“e”に負帰還をかけ、予測出
力タイミングデータ“e”の実際の出力タイミングデー
タ“g”に対する誤差、特に誤差の低周波数成分を補正
する。これは、ランダム信号データ“b”に基く誤差お
よび入出力タイミング信号のジッタによる誤差等の大き
さが、FIFOバッファの段数で許容される範囲を越え
てしまい、出力データの過不足が生じるのを防止するた
めである。
On the other hand, predicted output timing data "e"
Are sequentially delayed by the FIFO buffer 15 and then compared with the actual output timing data “g” of the output side data “Dou” by the comparison circuit 16 to generate correction data “c” based on the error data. . This correction data "c"
It is input to the addition circuit 13 and increases or decreases the value of the addition data of the addition circuit 13. That is, negative feedback is applied to the predicted output timing data "e" by the correction data "c" to correct the error of the predicted output timing data "e" with respect to the actual output timing data "g", particularly the low frequency component of the error. This is because the magnitude of the error based on the random signal data “b” and the error due to the jitter of the input / output timing signal exceed the range allowed by the number of stages of the FIFO buffer, and the excess or deficiency of the output data occurs. This is to prevent it.

【0013】[0013]

【発明の効果】本発明では、サンプリングレート比に1
/fゆらぎを与えることにより、聴覚的に音質を向上さ
せることが可能なサンプリングレートコンバータを得る
ことが可能となる。
According to the present invention, the sampling rate ratio is set to 1
By giving the / f fluctuation, it is possible to obtain a sampling rate converter capable of improving the sound quality aurally.

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

【図1】本発明の実施例を示したブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

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

11……サンプリングレート比算出回路 13……加算回路(付加回路) 14……予測回路 16……比較回路 17……演算回路 Cin……入力側クロック Cou……出力側クロック Din……入力側データ(第1信号) Dou……出力側データ(第2信号) b……ランダム信号データ c……補正データ f……予測出力タイミングデータ g……実際の出力タイミングデータ 11 Sampling rate ratio calculation circuit 13 Addition circuit (additional circuit) 14 Prediction circuit 16 Comparison circuit 17 Operation circuit Cin Input clock Cou Output clock Din Input data (First signal) Dou: output side data (second signal) b: random signal data c: correction data f: predicted output timing data g: actual output timing data

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平1−175311(JP,A) 特開 平4−329017(JP,A) 特開 平3−38696(JP,A) 特開 平2−21712(JP,A) 特開 昭64−77327(JP,A) (58)調査した分野(Int.Cl.7,DB名) H03H 17/00 621 G10L 21/04 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-1-1753111 (JP, A) JP-A-4-329017 (JP, A) JP-A-3-38696 (JP, A) JP-A-2- 21712 (JP, A) JP-A-64-77327 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) H03H 17/00 621 G10L 21/04

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 第1サンプリングレートの第1信号を第
2サンプリングレートの第2信号に変換するサンプリン
グレートコンバータにおいて、 上記第1サンプリングレートと上記第2サンプリングレ
ートとの比を算出するサンプリングレート比算出回路
と、 上記サンプリングレート比算出回路の出力データにスペ
クトル分布が1/f特性となるランダム信号データを付
加する付加回路と、 上記付加回路からの出力データに基いて上記第2信号の
出力タイミングを予測する予測回路と、 上記第1信号を受けて上記予測回路で予測された上記第
2信号の予測出力タイミングにおける上記第2信号の値
を演算する演算回路とを有するサンプリングレートコン
バータ。
1. A sampling rate converter for converting a first signal at a first sampling rate into a second signal at a second sampling rate, wherein a sampling rate ratio for calculating a ratio between the first sampling rate and the second sampling rate. A calculating circuit; an additional circuit for adding random signal data having a spectrum distribution of 1 / f characteristics to output data of the sampling rate ratio calculating circuit; output timing of the second signal based on output data from the additional circuit And a calculation circuit that receives the first signal and calculates the value of the second signal at the predicted output timing of the second signal predicted by the prediction circuit.
【請求項2】 第1サンプリングレートの第1信号を第
2サンプリングレートの第2信号に変換するサンプリン
グレートコンバータにおいて、 上記第1サンプリングレートと上記第2サンプリングレ
ートとの比を算出するサンプリングレート比算出回路
と、 上記サンプリングレート比算出回路の出力データにスペ
クトル分布が1/f特性となるランダム信号データおよ
び所定の補正データを付加する付加回路と、 上記付加回路からの出力データに基いて上記第2信号の
出力タイミングを予測する予測回路と、 上記第1信号を受けて上記予測回路で予測された上記第
2信号の予測出力タイミングにおける上記第2信号の値
を演算する演算回路と、 上記第2信号の予測出力タイミングと上記第2信号の実
際の出力タイミングとを比較してその誤差に基いて上記
補正データを生成する比較回路とを有するサンプリング
レートコンバータ。
2. A sampling rate converter for converting a first signal at a first sampling rate to a second signal at a second sampling rate, wherein a sampling rate ratio for calculating a ratio between the first sampling rate and the second sampling rate. A calculating circuit, an additional circuit for adding random signal data whose spectrum distribution has a 1 / f characteristic and predetermined correction data to the output data of the sampling rate ratio calculating circuit, and the second circuit based on the output data from the additional circuit. A prediction circuit for predicting the output timing of the two signals; an arithmetic circuit for receiving the first signal and calculating a value of the second signal at a predicted output timing of the second signal predicted by the prediction circuit; The predicted output timing of the two signals is compared with the actual output timing of the second signal to determine the error. Sampling rate converter having a comparison circuit for generating the correction data based on.
JP00762993A 1993-01-20 1993-01-20 Sampling rate converter Expired - Fee Related JP3252298B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00762993A JP3252298B2 (en) 1993-01-20 1993-01-20 Sampling rate converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00762993A JP3252298B2 (en) 1993-01-20 1993-01-20 Sampling rate converter

Publications (2)

Publication Number Publication Date
JPH06216711A JPH06216711A (en) 1994-08-05
JP3252298B2 true JP3252298B2 (en) 2002-02-04

Family

ID=11671127

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00762993A Expired - Fee Related JP3252298B2 (en) 1993-01-20 1993-01-20 Sampling rate converter

Country Status (1)

Country Link
JP (1) JP3252298B2 (en)

Also Published As

Publication number Publication date
JPH06216711A (en) 1994-08-05

Similar Documents

Publication Publication Date Title
US4389540A (en) Adaptive linear prediction filters
JPH06188838A (en) Sampling rate converter
JP3041564B2 (en) Sampling rate converter
US6362764B1 (en) Digital to analog conversion apparatus and method with cross-fading between new and old data
JP3194135B2 (en) Digital audio processor
JP3252298B2 (en) Sampling rate converter
JP3109389B2 (en) Adaptive filter system
JPS61159826A (en) Digital-to-analaog converter
US5473697A (en) Echo generating apparatus
JPH04255113A (en) A/d converter
JP2000224047A (en) Digital signal processing circuit
US6868127B2 (en) Signal receiving circuit and signal receiving method
JPH0555917A (en) A/d converter
JP2000097758A (en) Sound-source signal estimating device
JPH0683378A (en) Reverberation adding device
JP2518454B2 (en) Band compression transmission method
JP3029361B2 (en) Automatic gain control circuit
JP3097324B2 (en) Digital sound data output device
JP2825232B2 (en) Cyclic digital filter
JPS6257134B2 (en)
JP2635616B2 (en) Digital sample rate converter
JP3193499B2 (en) Signal processing device
JP2905212B2 (en) Digital level detector
JP2961732B2 (en) Digital feedback circuit
JPH06289876A (en) Waveform data interpolating device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20011025

LAPS Cancellation because of no payment of annual fees