JPH06216711A - Sampling rate converter - Google Patents

Sampling rate converter

Info

Publication number
JPH06216711A
JPH06216711A JP5007629A JP762993A JPH06216711A JP H06216711 A JPH06216711 A JP H06216711A JP 5007629 A JP5007629 A JP 5007629A JP 762993 A JP762993 A JP 762993A JP H06216711 A JPH06216711 A JP H06216711A
Authority
JP
Japan
Prior art keywords
data
sampling rate
circuit
signal
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.)
Granted
Application number
JP5007629A
Other languages
Japanese (ja)
Other versions
JP3252298B2 (en
Inventor
Akira Toyama
明 遠山
Minoru Takeda
稔 竹田
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.)
Nippon Precision Circuits Inc
Original Assignee
Nippon Precision Circuits Inc
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 Nippon Precision Circuits Inc filed Critical Nippon Precision Circuits Inc
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

Abstract

PURPOSE:To improve an auditory tone quality by imparting the fluctuation of 1/f to a sampling rate ratio. CONSTITUTION:A sampling rate ratio calculating circuit 11 outputs data (a) corresponding to the ratio of an input side clock 'Cin' and an output side clock 'Cou', and an adding circuit 13 adds random signal data (b) whose spectral distribution becomes the 1/f characteristic and the data (a). Thus, the fluctuation of 1/f is imparted to an output timing. The adding circuit 13 substracts simultaneously correction data (c). A predictive circuit 14 predicts the output timing of output side data 'Dou', based on addition data (d), and obtains data (e). An arithmetic circuit 17 performs an operation to data 'Din' and (e), and calculates the data 'Dou' at the time point corresponding to a prediction output timing of the data 'Dou'. Data (h) outputted from the circuit 17 is outputted in accordance with the predictive output timing through a FIFO buffer 18.

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 Digital signals used for digital audio or the like have different sampling rates depending on the system. Therefore, it is necessary to convert the sampling rate in order to exchange data between different methods. A device that converts a sampling rate while maintaining the identity of a waveform signal such as an audio signal is called a sampling rate converter.

【0003】[0003]

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

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

【0005】[0005]

【課題を解決するための手段】本発明は、第1サンプリ
ングレートの第1信号を第2サンプリングレートの第2
信号に変換するサンプリングレートコンバータにおい
て、上記第1サンプリングレートと上記第2サンプリン
グレートとの比を算出するサンプリングレート比算出回
路と、上記サンプリングレート比算出回路の出力データ
にスペクトル分布が1/f特性となるランダム信号デー
タを付加する付加回路と、上記付加回路からの出力デー
タに基いて上記第2信号の出力タイミングを予測する予
測回路と、上記第1信号を受けて上記予測回路で予測さ
れた上記第2信号の予測出力タイミングにおける上記第
2信号の値を演算する演算回路とを有する。
SUMMARY OF THE INVENTION The present invention provides a first signal at a first sampling rate to a second signal at a second sampling rate.
In a sampling rate converter for converting into a signal, a sampling rate ratio calculation circuit for calculating a ratio between the first sampling rate and the second sampling rate, and a spectrum distribution of 1 / f characteristic in output data of the sampling rate ratio calculation circuit. And a prediction circuit for predicting the output timing of the second signal based on the output data from the addition circuit, and a prediction circuit for receiving the first signal and predicting the timing. And a calculation circuit that calculates 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 which compares the predicted output timing of the second signal with the actual output timing of the second signal and generates predetermined correction data based on the error. The correction data may be further added in the addition circuit.

【0007】[0007]

【実施例】以下、本発明におけるサンプリングレートコ
ンバータの実施例について、図1を参照して説明する。
なお、本実施例の各構成要素の詳細については、1/f
ゆらぎに関する事項を除いて、その他の大部分につい
て、本願出願人が先に開示した特願平5−1158号
(平成5年1月7日出願)に記載されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the sampling rate converter according to the present invention will be described below with reference to FIG.
For details of each component of this embodiment, refer to 1 / f
Except for the fluctuation-related matters, most of the others 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 calculation circuit 11 outputs data corresponding to the ratio of the input side clock "Cin" and the output side clock "Cou", that is, data corresponding to the ratio of the input side sampling rate and the output side sampling rate. a "is calculated. The 1 / f random signal generation circuit 12 is for generating random signal data “b” having a spectral distribution of 1 / f characteristic. Adder circuit 1
Reference numeral 3 is for adding random signal data "b" and correction data "c" described later to the data "a", and specifically, for adding and subtracting 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 the predicted output timing data “e”.
The FIFO buffer 15 is for sequentially delaying the prediction output timing data “e” 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 based on the error between them, the correction data “f”. c "is generated. The arithmetic circuit 17 inputs the input side data “Din” and the predicted output timing data “e” and performs calculations such as interpolation calculation and the value of the output side data “Dou” at the predicted output timing of the output side data “Dou”. Is calculated. The FIFO buffer 18 temporarily holds the output data “h” sequentially output from the arithmetic circuit 17, and then sequentially outputs these data at 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 calculation circuit 11 includes
Input clock "Cin" and output clock "Cou"
Is input, and data “a” corresponding to the ratio (sampling rate ratio) of both is output. The data “a” corresponding to this sampling rate ratio is added by the adder 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 a 1 / f fluctuation. Adder circuit 13
At the same time, the correction data “c” is subtracted at the same time. Prediction circuit 1
In 4, the output side data “Do” is added based on the addition data “d”.
The output timing of u "is predicted and the 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, the predicted output timing data “e” is input and calculation such as interpolation calculation is performed, and the value of the output side data “Dou” at the time corresponding to the predicted output timing of the output side data “Dou” is calculated. Originally, 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 or the like of the clock signal (output timing signal), so the exact output timing cannot be known until that time. That is, the value of the actual output timing data "g" is unknown until the actual output timing signal is generated. Further, it takes a calculation time to calculate the value of the output side data “Dou”. Therefore, it is essentially impossible to directly use the data "g" representing the actual output timing to calculate the output side data "Dou". 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 held in the FIFO buffer 18, and then sequentially output at 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, the predicted output timing data "e"
Is 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, and the correction data "c" is generated based on the error data. . This correction data “c” is
The value of the addition data input to the addition circuit 13 is increased or decreased. That is, negative feedback is applied to the predicted output timing data "e" by the correction data "c" to correct an error of the predicted output timing data "e" with respect to the actual output timing data "g", particularly a low frequency component of the error. This is because the size of the error due to the random signal data “b” and the error due to the jitter of the input / output timing signal exceeds the allowable range of the number of stages of the FIFO buffer, and the output data becomes insufficient. This is to prevent it.

【0013】[0013]

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

【図面の簡単な説明】[Brief description of 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 ... Arithmetic circuit Cin ... Input side clock Cou ... Output side clock Din ... Input side 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

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 第1サンプリングレートの第1信号を第
2サンプリングレートの第2信号に変換するサンプリン
グレートコンバータにおいて、 上記第1サンプリングレートと上記第2サンプリングレ
ートとの比を算出するサンプリングレート比算出回路
と、 上記サンプリングレート比算出回路の出力データにスペ
クトル分布が1/f特性となるランダム信号データを付
加する付加回路と、 上記付加回路からの出力データに基いて上記第2信号の
出力タイミングを予測する予測回路と、 上記第1信号を受けて上記予測回路で予測された上記第
2信号の予測出力タイミングにおける上記第2信号の値
を演算する演算回路とを有するサンプリングレートコン
バータ。
1. A sampling rate converter for converting a first signal having a first sampling rate into a second signal having a second sampling rate, wherein a sampling rate ratio for calculating a ratio between the first sampling rate and the second sampling rate. A calculation circuit, an addition circuit for adding random signal data having a spectral distribution of 1 / f characteristic to the output data of the sampling rate ratio calculation circuit, and the output timing of the second signal based on the output data from the addition 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 having a first sampling rate into a second signal having a second sampling rate, wherein a sampling rate ratio for calculating a ratio between the first sampling rate and the second sampling rate. A calculation circuit; an addition circuit for adding random signal data having a spectral distribution of 1 / f characteristic and predetermined correction data to the output data of the sampling rate ratio calculation circuit; A prediction circuit that predicts the output timing of two signals; an arithmetic 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; The predicted output timing of the two signals is compared with the actual output timing of the second signal, and the 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 true JPH06216711A (en) 1994-08-05
JP3252298B2 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
JP3252298B2 (en) 2002-02-04

Similar Documents

Publication Publication Date Title
JPH06188838A (en) Sampling rate converter
JPH07326140A (en) Method and apparatus for processing of signal as well as signal recording medium
JPH06152329A (en) Noise shaping circuit
JPH06260888A (en) Sampling rate converter
JPH10200351A (en) Digital audio processor
JPH02309820A (en) Digital signal processor
JPH06216711A (en) Sampling rate converter
US8918325B2 (en) Signal processing device for processing stereo signals
JPS61159826A (en) Digital-to-analaog converter
JP3109389B2 (en) Adaptive filter system
JPH0715281A (en) Noise shaping device
US4642812A (en) Sound field enlarging device and method
JPH0944185A (en) Pulse width modulation signal modulating and demodulating circuit
JP2000224047A (en) Digital signal processing circuit
JP2913310B2 (en) Speech synthesis interruption device
JP2000097758A (en) Sound-source signal estimating device
JPH0683378A (en) Reverberation adding device
JP2001345762A (en) Method for generating signal
JPH0555917A (en) A/d converter
JP2952878B2 (en) Digital signal processor
JP3097324B2 (en) Digital sound data output device
JP2006086681A (en) Data corrector and correction method of a-d converter
JPS6257134B2 (en)
JP3193499B2 (en) Signal processing device
JPH03139099A (en) Audio signal data processor

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