JP2001110143A - Digital signal processor and recorder - Google Patents

Digital signal processor and recorder

Info

Publication number
JP2001110143A
JP2001110143A JP28477299A JP28477299A JP2001110143A JP 2001110143 A JP2001110143 A JP 2001110143A JP 28477299 A JP28477299 A JP 28477299A JP 28477299 A JP28477299 A JP 28477299A JP 2001110143 A JP2001110143 A JP 2001110143A
Authority
JP
Japan
Prior art keywords
data
unit
sample data
waveform pattern
change
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP28477299A
Other languages
Japanese (ja)
Inventor
Shigeru Ota
茂 太田
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 Columbia Co Ltd
Original Assignee
Nippon Columbia Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Columbia Co Ltd filed Critical Nippon Columbia Co Ltd
Priority to JP28477299A priority Critical patent/JP2001110143A/en
Publication of JP2001110143A publication Critical patent/JP2001110143A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To correct audio data so that a higher harmonic component hardly occurs when the audio data that is subjected to AD conversion and outputted are clipped in a full scale. SOLUTION: This digital signal processor is provided with a data latching part latching sample data, a number of times measuring part measuring the number of times when the sample data become full-scale data, a variable measuring part measuring the variable of a the sample data level, a storing part storing the data of a waveform pattern corresponded to the number of times and the variable, a data selecting part selecting either the sample data or the data of the waveform pattern stored in the storing part, and a waveform pattern selecting part selecting the waveform pattern according to the combination of the number of times and the variable. The waveform pattern selecting part selects the waveform pattern from the storing part and also controls the data selecting part so as to change the sample data into the data of the waveform pattern.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、オーディオ又はビ
デオ等の信号のサンプルデータをデジタル処理するデジ
タル信号処理装置及びデジタル処理したデータを記録媒
体に記録する記録装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital signal processing device for digitally processing sample data of a signal such as audio or video, and a recording device for recording digitally processed data on a recording medium.

【0002】[0002]

【従来の技術】聴覚心理特性を利用し、聴覚の感度が低
い細部の情報量を省略することで情報量を削減する音声
圧縮方法の代表的なものにMPEG(Moving Picture Ex
pertsGroup)オーディオがある。MPEGオーディオに
はMPEG1、MPEG2等の音声圧縮処理方法が規格
化され、さらに、MPEG1にはLayer1、Layer2、Laye
r3の3種類の音声圧縮のモードある。
2. Description of the Related Art MPEG (Moving Picture Exclusive) is a typical audio compression method for reducing the amount of information by using the psychoacoustic characteristics and omitting the amount of information with low sensitivity to hearing.
pertsGroup) There is audio. Audio compression processing methods such as MPEG1 and MPEG2 are standardized for MPEG audio, and Layer1, Layer2 and Layer
There are three modes of audio compression, r3.

【0003】MPEG1オーディオのLayer1の音声圧縮
処理方法は、384サンプルのサンプルデータを一つの
処理単位として、入力するオーディオ信号を異なる周波
数帯域の32のサブバンド(以下、SBという。)に分
割して量子化し、各SBのサンプルデータの波形の最大
振幅が略1.0となるように正規化したときの比率であ
るスケールファクター(scale factor。以下、SFとい
う。)と各SBに適正にビットを割り当てるビットアロ
ケーションを用いて音声圧縮するものである。
In the MPEG1 audio layer 1 audio compression processing method, an input audio signal is divided into 32 sub-bands (hereinafter, referred to as SBs) of different frequency bands using 384 sample data as one processing unit. A scale factor (scale factor; hereinafter, referred to as SF), which is a ratio when quantized and normalized so that the maximum amplitude of the waveform of the sample data of each SB is approximately 1.0, and bits are appropriately assigned to each SB. Audio compression is performed using the allocated bit allocation.

【0004】MPEG1オーディオのLayer2は、Layer1
の音声圧縮の処理に加え、384×3サンプルのサンプ
ルデータを一つの処理単位とし、複数のデータ転送速度
に対して各データ転送速度毎に準備された圧縮処理用の
テーブルを用いてビット割り当てを行い高品質・高効率
に音声符号化を行う音声圧縮方法である。
[0004] Layer 2 of MPEG1 audio is layer 1
In addition to the audio compression processing described above, sample data of 384 × 3 samples are used as one processing unit, and bit allocation is performed using a compression processing table prepared for each data transfer rate for a plurality of data transfer rates. This is a voice compression method that performs voice coding with high quality and high efficiency.

【0005】MPEG2オーディオのLayer2は、基本的
にMPEG1のステレオをマルチチャンネルに拡張した
もの、或いはサンプリング周波数を1/2にして遅い速
度でデータ伝送を行えるようにしたものであるが、音声
圧縮の方法はMPEG1と同じ技術が用いられている。
したがって、MPEG2についての説明は省略する。
[0005] Layer 2 of MPEG2 audio is basically an extension of the stereo of MPEG1 to multi-channels, or a structure in which the sampling frequency is reduced to 1/2 so that data can be transmitted at a low speed. The method uses the same technology as MPEG1.
Therefore, description of MPEG2 is omitted.

【0006】MPEG1オーディオのLayer3は、Layer2
の音声圧縮方法の処理に、エリアシングを起こしにくい
周波数分割方法である変形離散コサイン変換と圧縮処理
の過程で出てくるパラメータの出現確率に偏りがあるこ
とに着目した符号長を可変とするエントロピー(ハフマ
ン)符号化等の処理を用いることにより、更に高効率の
符号化を行う音声圧縮方法である。MPEGオーディオ
の概要は最新MPEG教科書(1994年8月初版、
(株)アスキー出版、変形離散コサイン変換はP.176、
エントロピー符号化はP.17)に記載されている。
[0006] Layer 3 of MPEG1 audio is Layer 2
In the processing of the audio compression method, the variable discrete cosine transform, which is a frequency division method that is unlikely to cause aliasing, and the entropy that makes the code length variable, focusing on the bias in the appearance probabilities of parameters appearing in the process of compression processing (Huffman) This is a speech compression method that performs encoding with higher efficiency by using processing such as encoding. An overview of MPEG audio is available in the latest MPEG textbook (first published in August 1994,
ASCII Publishing Co., Ltd., P.176
Entropy coding is described on page 17).

【0007】上述したMPEGオーディオのような周波
数帯域を複数のSBに分割しマスキング効果によって音
声信号を圧縮して記録するような記録再生装置では、入
力するオーディオ信号がAD(Analog to Digital)変換
によってリニアに変換されることが前提である。入力す
るオーディオ信号のレベルがAD変換器においてリニア
に変換できないような大きなレベルであったりすると、
AD変換器の出力はフルスケールのデジタルデータでク
リップしたサンプルデータとなってしまう。このような
状態では、実際のオーディオ信号には存在しなかった高
調波成分があるため、FFT(Fast Fourier Transform)
変換されて得られる周波数スペクトラムには高域部のS
Bに実際のレベルより大きな周波数スペクトラムが存在
するようになる。
In a recording / reproducing apparatus which divides a frequency band such as the above-mentioned MPEG audio into a plurality of SBs and compresses and records an audio signal by a masking effect, an input audio signal is subjected to AD (Analog to Digital) conversion. It is assumed that it is converted to linear. If the level of the input audio signal is too large to be converted linearly by the AD converter,
The output of the AD converter becomes sample data clipped with full-scale digital data. In such a state, since there are harmonic components that did not exist in the actual audio signal, an FFT (Fast Fourier Transform)
The frequency spectrum obtained by the conversion has S
B has a frequency spectrum larger than the actual level.

【0008】[0008]

【発明が解決しようとする課題】上述したような高域部
のSBの周波数スペクトラムの大きさが実際の大きさよ
り大きくなり、これらのSBに割り当てられるビット数
が多くなると、本来ビットを多く必要としていたSBに
割り当てられるビット数が少なくなってしまう。さら
に、元々ビットが割り当てられていたSBに全くビット
が割り当てられなくなってしまうと、原音を忠実に再現
することができなくなり音質を劣化させる原因になって
いた。本発明は、上述した課題を解決するために、AD
変換して出力されたサンプルデータがフルスケールでク
リップしたときに高調波成分が発生しにくいようサンプ
ルデータを補正するデジタル信号処理装置及び補正した
データを記録する記録装置を得ることが目的である。
If the size of the frequency spectrum of the SBs in the high-frequency portion becomes larger than the actual size and the number of bits allocated to these SBs increases, more bits are originally required. The number of bits allocated to the existing SB is reduced. Further, if no bits are assigned to the SB to which bits were originally assigned, the original sound cannot be faithfully reproduced, resulting in deterioration of sound quality. The present invention has been made in order to solve the above-mentioned problems.
It is an object of the present invention to provide a digital signal processing device that corrects sample data so that harmonic components do not easily occur when the converted and output sample data is clipped at full scale, and a recording device that records the corrected data.

【0009】[0009]

【課題を解決するための手段】本発明は、連続する複数
のサンプルデータをラッチするデータラッチ部と、前記
サンプルデータが連続してフルスケールデータとなって
いる回数を計測する回数計測部と、フルスケールデータ
となった前記サンプルデータとフルスケールとなる直前
または直後の前記サンプルデータとのレベルの変化量を
計測する変化量計測部と、前記回数計測部が計測する回
数と前記変化量計測部が計測する変化量とに対応させた
波形パターンのデータを記憶する記憶部と、前記データ
ラッチ部にラッチされたサンプルデータと前記記憶部に
記憶された波形パターンのデータのどちらかを選択する
データ選択部と、前記回数計測部が計測する回数と前記
変化量計測部が計測する変化量の組合せにより前記記憶
部の波形パターンを選択する波形パターン選択部とを備
え、前記波形パターン選択部は、前記記憶部から波形パ
ターンを選択するとともに、前記データラッチ部のサン
プルデータを波形パターンのデータに切り換えるよう前
記データ選択部を制御するデジタル信号処理装置であ
る。
According to the present invention, there is provided a data latch unit for latching a plurality of continuous sample data, a number measuring unit for counting the number of times the sample data is continuously full-scale data, A change amount measurement unit that measures a level change amount between the sample data that has become full scale data and the sample data immediately before or immediately after full scale, a number of times that the number of times measurement unit measures, and the change amount measurement unit A storage unit that stores data of a waveform pattern corresponding to the amount of change to be measured, and data that selects one of the sample data latched in the data latch unit and the data of the waveform pattern stored in the storage unit. A waveform pattern of the storage unit based on a combination of a selection unit, a number of times measured by the number-of-times measurement unit, and a variation measured by the variation-amount measurement unit. A waveform pattern selection unit that selects a waveform pattern from the storage unit, and controls the data selection unit to switch the sample data of the data latch unit to data of a waveform pattern. It is a digital signal processing device.

【0010】また、本発明は、入力されるサンプルデー
タのレベルを補正する入力サンプルデータ補正部と、前
記入力サンプルデータ補正部から出力される補正後のサ
ンプルデータをエンコードするエンコーダ部と、前記エ
ンコーダ部から出力されるデータを記録する記録部と、
前記エンコーダ部の動作を制御する制御部とを備え、前
記入力サンプルデータ補正部は、連続する複数のサンプ
ルデータをラッチするデータラッチ部と、前記サンプル
データが連続してフルスケールデータとなっている回数
を計測する回数計測部と、フルスケールデータとなった
前記サンプルデータとフルスケールとなる直前または直
後の前記サンプルデータとのレベルの変化量を計測する
変化量計測部と、前記回数計測部が計測する回数と前記
変化量計測部が計測する変化量とに対応させた波形パタ
ーンのデータを記憶する記憶部と、前記データラッチ部
にラッチされたサンプルデータと前記記憶部に記憶され
た波形パターンのデータのどちらかを選択するデータ選
択部と、前記回数計測部が計測する回数と前記変化量計
測部が計測する変化量の組合せにより前記記憶部の波形
パターンを選択する波形パターン選択部とを備え、前記
波形パターン選択部は、前記記憶部から波形パターンを
選択するとともに、前記データラッチ部のサンプルデー
タを波形パターンのデータに切り換えるよう前記データ
選択部を制御する記録装置である。
Further, the present invention provides an input sample data correction section for correcting the level of input sample data, an encoder section for encoding corrected sample data output from the input sample data correction section, and the encoder A recording unit for recording data output from the unit,
A control unit that controls the operation of the encoder unit, wherein the input sample data correction unit is a data latch unit that latches a plurality of continuous sample data, and the sample data is continuous full-scale data. A number-of-times measuring unit that measures the number of times, a change amount measuring unit that measures a level change amount between the sample data that is full-scale data and the sample data immediately before or immediately after full-scale data, and the number-of-times measuring unit. A storage unit for storing waveform pattern data corresponding to the number of times of measurement and the change amount measured by the change amount measurement unit; sample data latched by the data latch unit; and a waveform pattern stored in the storage unit. A data selection unit for selecting one of the above data, the number of times measured by the number-of-times measurement unit, and the change number measured by the change-amount measurement unit. A waveform pattern selection unit that selects a waveform pattern in the storage unit based on a combination of amounts. A recording device that controls the data selection unit to switch to data.

【0011】また、本発明は、前記請求項2に記載の記
録再生装置において、アナログの入力信号をデジタルの
データに変換するAD変換部を更に備える記録再生装置
である。
Further, the present invention is the recording / reproducing apparatus according to the second aspect, further comprising an AD converter for converting an analog input signal into digital data.

【0012】また、本発明は、前記請求項2又は請求項
3に記載の記録再生装置において、前記エンコード部
は、入力信号を異なる周波数帯域のサブバンドに分割し
量子化してサンプルデータとする帯域分割手段と、マス
キング閾値を算出するマスキング閾値算出手段と、前記
サンプルデータのレベルと前記マスキング閾値とを比較
するレベル比較手段と、前記レベル比較手段の比較結果
にもとづいて前記サブバンドにビットを割り当てるビッ
トアロケーション手段と、前記ビットアロケーション手
段が前記サブバンドに割り当てたビット数のサンプルデ
ータを再量子化する再量子化手段を更に備える記録再生
装置である。
According to a second aspect of the present invention, in the recording / reproducing apparatus according to the second or third aspect, the encoding section divides the input signal into sub-bands of different frequency bands, quantizes the sub-bands to obtain sample data. Dividing means, masking threshold calculating means for calculating a masking threshold, level comparing means for comparing the level of the sample data with the masking threshold, and allocating bits to the sub-band based on a comparison result of the level comparing means The recording / reproducing apparatus further includes a bit allocation unit, and a requantization unit that requantizes the sample data of the number of bits allocated to the subband by the bit allocation unit.

【0013】[0013]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

【発明の実施の形態】本発明の記録再生装置の実施例に
ついて説明する。図1は、本実施例の記録再生装置の構
成を示すブロック図である。図2は、本実施例の記録再
生装置において、サンプルデータの生成とサンプルデー
タの補正をするデータ生成部の構成を示す図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the recording / reproducing apparatus according to the present invention will be described. FIG. 1 is a block diagram illustrating the configuration of the recording / reproducing apparatus according to the present embodiment. FIG. 2 is a diagram illustrating a configuration of a data generation unit that generates sample data and corrects the sample data in the recording and reproducing apparatus according to the present embodiment.

【0014】図1に示すように、本実施例の記録再生装
置は記録再生部100とデータ生成部200を備える。
記録再生部100は、サンプルデータを圧縮して記録媒
体101に記録し、さらに記録媒体101から圧縮デー
タを読み出して伸張するエンコード/デコード部110
と、エンコード/デコード部110から出力されたデジ
タルの信号をアナログの信号に変換して出力するオーデ
ィオデータ再生部と、メモリ部111と、操作部104
と、表示部105と、システムマイコン103とを備え
る。
As shown in FIG. 1, the recording / reproducing apparatus of this embodiment includes a recording / reproducing section 100 and a data generating section 200.
The recording / reproducing unit 100 compresses the sample data and records it on the recording medium 101, and further reads / compresses the compressed data from the recording medium 101 and expands it.
An audio data reproducing unit that converts a digital signal output from the encoding / decoding unit 110 into an analog signal and outputs the analog signal; a memory unit 111;
, A display unit 105, and a system microcomputer 103.

【0015】データ生成部200は、アナログのオーデ
ィオ信号をデジタルに変換してサンプルデータを生成す
るサンプルデータ生成部201と、サンプルデータ生成
部201によって生成されたサンプルデータを補正する
サンプルデータ補正部202を備える。
A data generator 200 converts a digital audio signal into a digital signal to generate sample data, and a sample data corrector 202 corrects the sample data generated by the sample data generator 201. Is provided.

【0016】図2において、オートレベルコントロール
(ALC)2は、入力端子1から入力されるオーディオ
信号のレベルを検出して回路のゲインを自動的に可変制
御する。
In FIG. 2, an automatic level control (ALC) 2 detects the level of an audio signal input from an input terminal 1 and automatically variably controls the gain of the circuit.

【0017】保護回路部3は、AD(Analog to Digita
l)変換部4の入力部に配置され、ALC2から出力され
るオーディオ信号のレベルがAD変換部4の入力許容値
より大きくならないように制限して、AD変換部4が電
気的に破壊されることを防ぐ。保護回路部3に使用する
回路部品としては、例えばダイオードを用いる。
The protection circuit section 3 includes an AD (Analog to Digita)
l) The AD converter 4 is disposed at the input of the converter 4 and is limited so that the level of the audio signal output from the ALC 2 does not become larger than the input allowable value of the AD converter 4, and the AD converter 4 is electrically destroyed. Prevent that. As a circuit component used for the protection circuit section 3, for example, a diode is used.

【0018】AD変換部4は、アナログのオーディオ信
号をデジタルのオーディオデータに変換する。
The A / D converter 4 converts an analog audio signal into digital audio data.

【0019】デジタルフィルタ部5は、AD変換部4か
ら出力されたオーディオデータをオーバーサンプリング
する演算をし、量子化雑音を可聴帯域外に変移させ、ま
たオーバーサンプリングしたデータを間引いてオーディ
オデータをシリアルデータとして出力する。
The digital filter unit 5 performs an operation of oversampling the audio data output from the AD conversion unit 4, shifts the quantization noise out of the audible band, and thins out the oversampled data to serialize the audio data. Output as data.

【0020】SP(Serial to Parallel)変換部6は、
デジタルフィルタ5から出力されたシリアルのオーディ
オデータををパラレルのオーディオデータに変換する。
The SP (Serial to Parallel) conversion unit 6
The serial audio data output from the digital filter 5 is converted into parallel audio data.

【0021】サンプルデータ保持部7は、複数のラッチ
回路7−1、7−2、……7−Nを備え、SP変換部6
から出力されたパラレルのオーディオデータをN個分保
持する。以下、パラレルのオーディオデータをサンプル
データと呼ぶこととする。
The sample data holding unit 7 includes a plurality of latch circuits 7-1, 7-2,.
And holds N pieces of parallel audio data output from. Hereinafter, the parallel audio data will be referred to as sample data.

【0022】フルスケール連続回数計数部8は、ラッチ
回路7−1にラッチされたサンプルデータが連続してフ
ルスケールなっている回数を計測する。本実施例では、
連続してフルスケールになるサンプルデータの数によっ
てランク分けし、各ランクを回数フラグと名付ける。例
えば、フルスケールの数が5サンプル未満の場合は回数
フラグ0、5サンプル〜10サンプルまでは回数フラグ
1、11サンプル〜20サンプルまでは回数フラグ2と
する。上述した回数フラグと連続してフルスケールとな
る数との関係を示す表が図5(a)である。
The continuous full-scale counting section 8 counts the number of times that the sample data latched by the latch circuit 7-1 is continuously full-scale. In this embodiment,
The ranks are classified according to the number of sample data that continuously become full scale, and each rank is named a count flag. For example, when the number of full scales is less than 5 samples, the count flag is 0, the count flag is 1 for 5 to 10 samples, and the count flag is 2 for 11 to 20 samples. FIG. 5A is a table showing the relationship between the number of times flag described above and the number of continuous full scales.

【0023】変化量計測部10は、例えば、ラッチ回路
7−1とラッチ回路7−2のサンプルデータを比較し、
連続するサンプルデータの変化量を計測する。ラッチ回
路7−2がフルスケールのサンプルデータであり、ラッ
チ回路7−1のサンプルデータがフルスケールより小さ
いサンプルデータであるときに、変化量計測部10は上
述の2サンプルのサンプルデータの差を計測し、レベル
の変化量として記憶する。本実施例では、レベルの変化
量を複数にランク分けし、各ランクを変化フラグと名付
ける。例えば、サンプルデータのレベルの変化量の大き
さが2ステップ〜4ステップ未満であれば変化フラグ
0、変化量の大きさが4ステップ〜10ステップ未満で
あれば変化フラグ1、変化量の大きさが10ステップ〜
20ステップ未満であれば変化フラグ2とする。上述し
た変化フラグとサンプルデータのレベルの変化量との関
係を示す表が図5(b)である。
The change amount measuring section 10 compares, for example, sample data of the latch circuits 7-1 and 7-2,
The amount of change in continuous sample data is measured. When the latch circuit 7-2 is the full-scale sample data and the sample data of the latch circuit 7-1 is the sample data smaller than the full scale, the change amount measuring unit 10 calculates the difference between the two sample data. It is measured and stored as a level change. In the present embodiment, the level change amount is divided into a plurality of ranks, and each rank is named a change flag. For example, if the magnitude of the change in the level of the sample data is less than 2 to 4 steps, the change flag is 0; if the magnitude of the change is less than 4 to 10 steps, the change flag is 1, and the magnitude of the change is Is 10 steps ~
If less than 20 steps, change flag 2 is set. FIG. 5B is a table showing the relationship between the above-described change flag and the amount of change in the level of the sample data.

【0024】パターンセレクタ9は、回数フラグと変化
フラグに基づいて、予めメモリ部11に記憶していた正
弦波に近似した波形パターンを選択する。
The pattern selector 9 selects a waveform pattern similar to a sine wave stored in the memory unit 11 in advance, based on the count flag and the change flag.

【0025】出力制御部12は、メモリ部11から選択
され入力された波形パターンのサンプルデータを保持
し、サンプルデータ選択部13に出力する。
The output control unit 12 holds the sample data of the waveform pattern selected and input from the memory unit 11 and outputs it to the sample data selection unit 13.

【0026】サンプルデータ選択部13は、ラッチ回路
7−Nにラッチされているサンプルデータと出力制御部
12に保持されている波形パターンのサンプルデータと
を切り換えて出力する。サンプルデータ選択部13の切
り換え動作は、パターンセレクタ9の指示により行われ
る。
The sample data selection section 13 switches between the sample data latched by the latch circuit 7-N and the sample data of the waveform pattern held by the output control section 12 and outputs them. The switching operation of the sample data selection unit 13 is performed according to an instruction from the pattern selector 9.

【0027】図3は、SP変換部6の出力であるサンプ
ルデータを時系列的に示した図である。図4は、変化フ
ラグと回数フラグの値に対応するメモリ部11に記憶さ
れた波形パターンを示す図である。図3及び図4の縦軸
はサンプルデータのレベルの変化量のランクを示す変化
フラグの値であり、横軸はサンプルデータが連続してフ
ルスケールとなる数のランクを示す回数フラグの値を示
す。図5は、回数フラグと連続してフルスケールとなる
数との関係及び変化フラグとサンプルデータのレベルの
変化量との関係をを示す図である。
FIG. 3 is a diagram showing the sample data output from the SP converter 6 in a time-series manner. FIG. 4 is a diagram showing waveform patterns stored in the memory unit 11 corresponding to the values of the change flag and the number of times flag. 3 and 4, the vertical axis represents the value of the change flag indicating the rank of the amount of change in the level of the sample data, and the horizontal axis represents the value of the number of times flag indicating the rank of the number of consecutive full-scale sample data. Show. FIG. 5 is a diagram showing the relationship between the number of times flag and the number of continuous full scales and the relationship between the change flag and the amount of change in the level of the sample data.

【0028】図3において、例えば、変化フラグ1、回
数フラグ1のサンプルデータの波形は、連続してフルス
ケールとなるサンプルデータの数が6サンプルであり、
フルスケールとフルスケールの前後のサンプルデータと
のレベルの変化量は4ステップである。
In FIG. 3, for example, the waveform of the sample data of the change flag 1 and the number of times flag 1 is such that the number of continuous full-scale sample data is six.
The amount of change in level between the full scale and the sample data before and after the full scale is four steps.

【0029】ここで、変化フラグ1、回数フラグ1に対
応する波形パターンは、図4の変化フラグ1、回数フラ
グ1の波形パターンA部の波形パターンに示すように、
サンプルデータのレベルの変化量は2〜4ステップ、サ
ンプルデータが連続してフルスケールとなる数は1サン
プルである。また、図4において、斜線部はサンプルデ
ータを補正したレベルを示し、補正後の波形パターンは
正弦波に近似した波形となる。
Here, the waveform pattern corresponding to the change flag 1 and the number-of-times flag 1 is as shown in the waveform pattern of the waveform pattern A portion of the change flag 1 and the number-of-times flag 1 in FIG.
The amount of change in the level of the sample data is 2 to 4 steps, and the number of continuous full-scale sample data is 1 sample. In FIG. 4, the hatched portion indicates the level at which the sample data has been corrected, and the corrected waveform pattern is a waveform approximating a sine wave.

【0030】図6は、メモリ部11から波形パターンを
選択し、生成したサンプルデータの補正をする動作の一
例を示すフローチャートである。
FIG. 6 is a flowchart showing an example of an operation for selecting a waveform pattern from the memory unit 11 and correcting the generated sample data.

【0031】はじめに、ラッチ回路7−1にラッチされ
たサンプルデータの極性を検出して、一つ前のサンプル
データとの極性を比較する。(ST1)、(ST2)、
(ST3)、(ST4)
First, the polarity of the sample data latched by the latch circuit 7-1 is detected, and the polarity is compared with the immediately preceding sample data. (ST1), (ST2),
(ST3), (ST4)

【0032】ラッチ回路7−1にラッチされたサンプル
データがフルスケールとなっているかを検出する。フル
スケールになっていれば連続したフルスケールのサンプ
ル数を計測してフルスケール連続回数計測部8のフルス
ケール回数カウンタに加算し、サンプルデータがフルス
ケールでなくなったときに、カウンタの数値を出力しS
T8に移行する。連続したサンプルデータの極性又はサ
ンプルデータがフルスケールになっていなければフルス
ケール回数カウンタは0にリセットされST1に移行す
る。(ST5)、(ST6)、(ST7)
It is detected whether the sample data latched by the latch circuit 7-1 is at full scale. If it is at full scale, the number of continuous full-scale samples is measured and added to the full-scale counter of the full-scale continuous number measurement unit 8, and when the sample data is no longer at full scale, the counter value is output. S
The process moves to T8. If the polarity of the continuous sample data or the sample data is not at full scale, the full scale number counter is reset to 0 and the process proceeds to ST1. (ST5), (ST6), (ST7)

【0033】フルスケール回数カウンタの数が3以上の
場合は、変化量計測部13はフルスケールになったサン
プルデータとフルスケールになる前及び後のサンプルデ
ータの2サンプルのレベル変化の大きさを算出する。
(ST8)、(ST9)、(ST9’)
When the number of full scale counters is three or more, the change amount measuring unit 13 calculates the magnitude of the level change of the two samples of the sample data at full scale and the sample data before and after full scale. calculate.
(ST8), (ST9), (ST9 ')

【0034】サンプルデータが16ビットであれば、サ
ンプルデータの全ステップ数は65536段階である
が、レベル変化がステップ状の急激な変化となるような
16384段階以上に及ぶ場合や2段階以下の微小な変
化をする場合、又はフルスケールの回数が3回未満の場
合は、サンプルデータの補正を行わず、入力した元のサ
ンプルデータをそのまま出力する。(ST10)、(S
T24)
If the sample data is 16 bits, the total number of steps of the sample data is 65536 steps. However, there are cases where the level change exceeds 16384 steps in which the step changes suddenly, or a minute change of 2 steps or less. When there is a significant change, or when the number of full scales is less than three, the input original sample data is output as it is without correcting the sample data. (ST10), (S
T24)

【0035】レベル変化が2段階から16384段階未
満の場合は、ST11からST22までの処理を行い変
化フラグ及び回数フラグの値を決定する。(ST11)
〜(ST22)
If the level change is between two stages and less than 16384 stages, the process from ST11 to ST22 is performed to determine the values of the change flag and the number of times flag. (ST11)
~ (ST22)

【0036】サンプルデータの極性、変化フラグ及び回
数フラグの値が決定すると、極性、変化フラグ及び回数
フラグに基づいて、メモリ11に記憶されている波形パ
ターンを読み出しサンプルデータを切り換えて出力す
る。(ST23)
When the polarity of the sample data, the value of the change flag, and the value of the number flag are determined, the waveform pattern stored in the memory 11 is read based on the polarity, the change flag, and the number flag, and the sample data is switched and output. (ST23)

【0037】図7は、本実施例の記録再生装置のエンコ
ード/デコード部の構成を説明する図である。
FIG. 7 is a diagram for explaining the configuration of the encoding / decoding section of the recording / reproducing apparatus of this embodiment.

【0038】入力部300からはデータ生成部200に
おいて生成されたサンプルデータが入力される。帯域分
割部301は、音声周波数帯域を複数の周波数帯域に帯
域分割する複数のバンドパスフィルタを備え、入力され
たサンプルデータを32の異なるSBごとの周波数スペ
クトラムに分割する。
Sample data generated by the data generator 200 is input from the input unit 300. The band division unit 301 includes a plurality of bandpass filters that divide the audio frequency band into a plurality of frequency bands, and divides the input sample data into 32 different frequency spectrums for each SB.

【0039】マスキング閾値算出部302は、高速フー
リエ変換(FFT、Fast Fourier Transform)処理によ
り各SBのパワーレベルを算出し、聴覚心理特性を利用
しマスキングの閾値を求める。マスキングとは、例え
ば、静寂な環境ではせせらぎの音を聞き取れるが、嵐の
中では聞き取れないことが有るというように二つの音が
同時に発生している場合、小さい方の音が大きい方の音
によって聞こえなくなる状態をいう。また、マスキング
閾値とは、あるSBにおける音声信号が隣接する音声に
よってマスキングされる最大音声レベルである。
The masking threshold calculator 302 calculates the power level of each SB by fast Fourier transform (FFT, Fast Fourier Transform) processing, and obtains a masking threshold using psychoacoustic characteristics. Masking means, for example, that in a quiet environment, you can hear the sound of a babbling, but in a storm, you may not be able to hear the sound. A state in which you cannot hear. The masking threshold is a maximum audio level at which an audio signal in a certain SB is masked by adjacent audio.

【0040】ビットアロケーション部303は、マスキ
ング閾値算出部302から出力されるマスキング閾値と
各SBのサンプルデータのレベルから判断して各SBに
適正なビット数の配分を行う。再量子化部304は、各
SBに適正なビット数の配分を行った後、配分されたビ
ット数でサンプルデータの再量子化を行い圧縮したサン
プルデータを出力する。また、ビットアロケーション部
303は、SB内のサンプルデータの波形を最大振幅が
略1.0となるように正規化したときのサンプルデータ
の波形の最大振幅値と再量子化し圧縮したサンプルデー
タが表すオーディオレベルの最大振幅値との比率(圧縮
データの倍率)を示すスケールファクタ(SF、scale
factor)を演算して出力する。サンプルデータは、再量
子化されたデータと演算したSFのデータによって正確
な音声信号として表わせられる。
The bit allocation unit 303 allocates an appropriate number of bits to each SB based on the masking threshold output from the masking threshold calculation unit 302 and the level of the sample data of each SB. After allocating an appropriate number of bits to each SB, the requantization unit 304 re-quantizes the sample data with the allocated number of bits and outputs compressed sample data. Also, the bit allocation unit 303 represents the maximum amplitude value of the sample data waveform when the waveform of the sample data in the SB is normalized so that the maximum amplitude is approximately 1.0, and the requantized and compressed sample data. Scale factor (SF, scale) indicating the ratio of audio level to maximum amplitude value (magnification of compressed data)
factor) and output. The sample data is represented as an accurate audio signal by the requantized data and the calculated SF data.

【0041】フォーマティング部305は、同期信号、
MPEGオーディオの各種モードの識別子を含んだヘッ
ダ情報、ビットアロケーション部303で確定した各S
Bに割り当てられたビット数、SF及び再量子化部30
4で再量子化したサンプルデータをMPEG1オーディ
オ規格のフレームフォーマットの信号に変換して出力す
る。
The formatting unit 305 includes a synchronization signal,
Header information including identifiers of various modes of MPEG audio, each S determined by the bit allocation unit 303
Number of bits allocated to B, SF, and requantization unit 30
The sample data re-quantized in step 4 is converted into a signal of a frame format of the MPEG1 audio standard and output.

【0042】レベル比較部306は、各SBに割り当て
られたビット数でサンプルデータを再量子化したときに
生じる量子化ノイズのレベルとマスキング閾値とを比較
し、さらに、各SBにおける信号レベルとマスキング閾
値のレベルの差を予め決められている基準値と比較す
る。比較した結果はビットアロケーション部303に送
られ、ビットアロケーション部303は、比較した結果
に基づいて各SBに割り当てるビット数を決める。
The level comparison section 306 compares the level of quantization noise generated when the sample data is requantized with the number of bits allocated to each SB with a masking threshold, and furthermore, the signal level and masking of each SB. The difference between the threshold levels is compared with a predetermined reference value. The comparison result is sent to the bit allocation unit 303, and the bit allocation unit 303 determines the number of bits to be allocated to each SB based on the comparison result.

【0043】入力部300から入力されるサンプルデー
タは、帯域分割部301に入力されて32に分割された
SB毎のサンプルデータに変換される。また同時に、入
力部300から入力されるサンプルデータは、マスキン
グ閾値算出部302に入力されFFT処理されて、各S
B毎にパワーレベルが算出される。各SB毎のパワーレ
ベルが算出されることにより、マスキング閾値算出部3
02はマスキング効果による各SBのマスキング閾値を
出力する。
The sample data input from the input unit 300 is input to the band division unit 301 and is converted into sample data for each SB divided into 32. At the same time, the sample data input from the input unit 300 is input to the masking threshold value calculation unit 302 and subjected to FFT processing,
A power level is calculated for each B. By calculating the power level for each SB, the masking threshold calculator 3
02 outputs a masking threshold of each SB by the masking effect.

【0044】ビットアロケーション部303において、
マスキング閾値は帯域分割部301の出力である各SB
内のサンプルデータのレベルと比較され、予め決められ
た割り当て可能なビット総数に収まるように各SBに割
り当てるビット数が決定される。ビット数を各SBに割
り当てる処理手順は、はじめに32のSBの中からダイ
ナミックレンジの最も大きいSBを選択する。各SBを
スキャンして量子化ノイズ対マスキング閾値比(NM
R)の最も大きいSBを選択し、そのSBにビット数の
一部を割り当てる。SBに割り当てられたビット数によ
り量子化ノイズが変化してNMRが変化するので、再度
NMRを計算した後に引き続きSBをスキャンしNMR
の最も大きいSBを選択し、そのSBにビット数の一部
を割り当てて再度NMRを計算するという処理を繰り返
し続けて割り当て可能なビット数が全て割り当てられる
まで繰り返し行う。その後、各SB毎に割り当てられた
ビット数にしたがって、再量子化部304で各SBに割
り当てられたサンプルデータを再量子化し圧縮したサン
プルデータとする。
In the bit allocation section 303,
The masking threshold is determined by each SB output from the band division unit 301.
And the number of bits to be assigned to each SB is determined so as to be within a predetermined total number of assignable bits. In the processing procedure for assigning the number of bits to each SB, first, the SB having the largest dynamic range is selected from the 32 SBs. Scan each SB to find the quantization noise to masking threshold ratio (NM
The SB having the largest R) is selected, and a part of the number of bits is assigned to the SB. Since the quantization noise changes due to the number of bits allocated to the SB and the NMR changes, the SB is scanned again after the NMR is calculated again and the NMR is calculated.
, The process of allocating a part of the number of bits to the SB and calculating the NMR again is repeated until all the assignable bits are assigned. After that, according to the number of bits allocated to each SB, the requantization unit 304 resamples and compresses the sample data allocated to each SB into sample data.

【0045】フォーマッティング部305でMPEG1
オーディオ規格で決められたフレームフォーマットの信
号となるようにスケールファクタ(SF)やサンプルデ
ータ等のデータを配置して出力する。
In the formatting section 305, MPEG1
Data such as a scale factor (SF) and sample data are arranged and output so as to be a signal of a frame format determined by the audio standard.

【0046】図8は、本実施例の記録再生装置におい
て、入力するオーディオ信号がSBに分割されビットが
割り当てられたサンプルデータとなった状態を説明する
図である。
FIG. 8 is a diagram for explaining a state in which the input audio signal is divided into SBs and becomes sample data to which bits are assigned in the recording / reproducing apparatus of this embodiment.

【0047】図8の(a)の縦軸は、入力したオーディ
オデータの各SBにおけるオーディオレベルと聴覚心理
特性を利用して得られたマスキングの閾値(斜線部)の
レベルを示す。横軸は、各SBの番号を示しており、S
B0側が低い周波数でSB31側が高い周波数である。
The vertical axis of FIG. 8A shows the audio level and the level of the masking threshold (hatched portion) obtained by using the audio level and the psychoacoustic characteristics in each SB of the input audio data. The horizontal axis indicates the number of each SB.
The B0 side has a low frequency and the SB31 side has a high frequency.

【0048】図8の(b)は、ビットアロケーション部
303によって各SB内に割り当てられたビット数でサ
ンプルデータを再量子化したときの状態を示す図であ
る。縦軸は、各SBに割り当てられるサンプルデータの
ビット数であり、再量子化部204で各SBのサンプル
データを再量子化するときの量子化ビット数となる。横
軸はSBの番号を示し、SB0側が低い周波数でSB3
1側が高い周波数である。図8の(b)は、各SBにお
いて入力オーディオデータのオーディオレベルがマスキ
ング閾値より大きいほどビット数が多く割り当てられ、
ダイナミックレンジが大きくなることを示している。
FIG. 8B shows a state where the bit allocation unit 303 requantizes the sample data with the number of bits allocated in each SB. The vertical axis represents the number of bits of the sample data allocated to each SB, which is the number of quantization bits when the requantization unit 204 requantizes the sample data of each SB. The horizontal axis indicates the SB number, and the SB0 side has a lower frequency and the SB3
One side is a high frequency. FIG. 8B shows that in each SB, as the audio level of the input audio data is larger than the masking threshold, the number of bits is more allocated,
This indicates that the dynamic range increases.

【0049】SB26、SB29、SB31については
マスキング閾値よりオーディオレベルが低いので、ビッ
トが割り当てられていない。また、SB27はマスキン
グ閾値より音声レベルが高いが、音声レベルがマスキン
グ閾値より大きいSBに優先的にビットを割り当てるア
ルゴリズムのため、ビットが割り当てられていない。
Bits are not assigned to SB26, SB29, and SB31 because the audio level is lower than the masking threshold. Further, although the sound level of the SB 27 is higher than the masking threshold, no bit is allocated to the SB 27 because the algorithm preferentially allocates bits to SBs whose voice level is higher than the masking threshold.

【0050】図9は、本実施例の記録再生装置におい
て、サンプルデータを補正用の波形データに切り換える
前と後の各SBに割り与えられるビット数を示す図であ
る。図9の(a)は、SB15のサンプルデータがクリ
ップしたときの各SBに割り与えられるビット数を示す
図である。図9の(b)は、SB15のサンプルデータ
を補正用の波形データに切り換えたときの各SBに割り
与えられるビット数を示す図である。
FIG. 9 is a diagram showing the number of bits allocated to each SB before and after switching the sample data to the correction waveform data in the recording / reproducing apparatus of this embodiment. FIG. 9A is a diagram showing the number of bits allocated to each SB when the sample data of the SB 15 is clipped. FIG. 9B is a diagram showing the number of bits allocated to each SB when the sample data of the SB 15 is switched to the waveform data for correction.

【0051】図9の(a)において、SB26〜SB3
1には斜線部で示すビット数が割り与えられ、SB18
〜SB21からはビット数が少なくなっている。また、
SB19及びSB20には全くビットが割り当てられて
いない。このように高域のSBにビットが割り与えられ
ると、SB19及びSB20のように本来必要なSBか
らサンプルデータが消滅してしまうことがあり、これに
よって音質を劣化させてしまうことがある。
In FIG. 9A, SB26 to SB3
1 is assigned the number of bits indicated by the hatched portion.
From SB21 to SB21, the number of bits is reduced. Also,
No bits are assigned to SB19 and SB20. When bits are assigned to the high-band SBs in this way, the sample data may be lost from the originally required SBs, such as the SB19 and SB20, thereby deteriorating the sound quality.

【0052】本実施例では、前述したように、クリップ
したサンプルデータ及びその前後数サンプルのサンプル
データに対して正弦波で近似したサンプルデータ元のサ
ンプルデータと入れ換えるようにする。この処理を行う
ことにより、SB26〜SB31に割り与えられるビッ
ト数を減少させ、また、SB18〜SB21に適正なビ
ット数が割り当てられるようにすることができる。この
ようにして、図9(a)に示す各SBへのビット数の配
分は、図9(b)に示す各SBへのビット数の配分に変
化する。
In this embodiment, as described above, the clipped sample data and the sample data before and after the clipped sample data are replaced with the sample data of the original sample data approximated by a sine wave. By performing this process, the number of bits allocated to SB26 to SB31 can be reduced, and the appropriate number of bits can be allocated to SB18 to SB21. In this way, the distribution of the number of bits to each SB shown in FIG. 9A changes to the distribution of the number of bits to each SB shown in FIG. 9B.

【0053】各SBへのビット数の配分が図9(b)に
示すように行われれば、入力するオーディオ信号がAD
変換部でフルスケールになるような大きなレベルであっ
ても、歪み感の少ない音質を得ることができる。
If the distribution of the number of bits to each SB is performed as shown in FIG.
Even at a large level at which the conversion unit becomes full scale, it is possible to obtain sound quality with little distortion.

【0054】上述した説明の記録装置に使用する記録媒
体としては、ICメモリの他、CD(Compact Disc)、M
D(Mini Disc)、DVD(Digital Versatile Disc)、P
D(Phase Change Disc)を使用した光ディスク、光磁気
ディスク又は相変化光ディスクであっても良く、また、
磁気ハードディスクであっても良い。
The recording medium used in the recording apparatus described above includes a CD (Compact Disc), an M
D (Mini Disc), DVD (Digital Versatile Disc), P
An optical disk using D (Phase Change Disc), a magneto-optical disk or a phase change optical disk may be used.
It may be a magnetic hard disk.

【0055】[0055]

【発明の効果】本発明により、入力するオーディオ又は
ビデオ信号がAD変換部でフルスケールになるような大
きなレベルであっても、サンプルデータが連続してフル
スケールになるサンプルデータの個数と前後のサンプル
データの変化量の大きさによって予め決められたサンプ
ルデータに置き換えることにより、歪みの発生しないよ
うなSBへのビット配分を可能にして、歪みの少ないデ
ータを得ることができる。
According to the present invention, even if the input audio or video signal is at such a large level that it becomes full scale in the A / D converter, the number of sample data that continuously becomes full scale and the number of sample data before and after the full scale are obtained. By replacing the sample data with the sample data determined in advance according to the magnitude of the change amount of the sample data, it is possible to allocate bits to the SB without causing distortion, and to obtain data with little distortion.

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

【図1】本発明の一実施例の記録再生装置の構成を示す
ブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a recording / reproducing apparatus according to an embodiment of the present invention.

【図2】本実施例の記録再生装置において、サンプルデ
ータの生成とサンプルデータの補正をするデータ生成部
の構成を示す図である。
FIG. 2 is a diagram illustrating a configuration of a data generation unit that generates sample data and corrects the sample data in the recording / reproducing apparatus of the present embodiment.

【図3】本実施例の記録再生装置において、SP変換部
の出力であるサンプルデータを時系列的に示した図であ
る。
FIG. 3 is a diagram showing, in chronological order, sample data output from an SP converter in the recording / reproducing apparatus of the present embodiment.

【図4】本実施例の記録再生装置において、変化フラグ
と回数フラグの値に対応するメモリ部11に記憶された
波形パターンを示す図である。
FIG. 4 is a diagram showing waveform patterns stored in a memory unit corresponding to values of a change flag and a number-of-times flag in the recording / reproducing apparatus of the present embodiment.

【図5】本実施例の記録再生装置において、回数フラグ
と連続してフルスケールとなる数との関係及び変化フラ
グとサンプルデータのレベルの変化量との関係をを示す
図である。
FIG. 5 is a diagram showing the relationship between the number of times flag and the number of continuous full scales and the relationship between the change flag and the amount of change in the level of sample data in the recording / reproducing apparatus of this embodiment.

【図6】本実施例の記録再生装置において、メモリ部か
ら波形パターンを選択し、再生するサンプルデータの補
正をする動作の一例を示すフローチャートである。
FIG. 6 is a flowchart illustrating an example of an operation of selecting a waveform pattern from a memory unit and correcting sample data to be reproduced in the recording and reproducing apparatus of the present embodiment.

【図7】本実施例の記録再生装置において、MPEGオ
ーディオ方式で音声データの圧縮を行うときの処理概要
である。
FIG. 7 is an outline of processing performed when audio data is compressed by the MPEG audio system in the recording / reproducing apparatus of the present embodiment.

【図8】本実施例の記録再生装置において、入力するオ
ーディオ信号が異なるSBに分割されビットが割り当て
られたサンプルデータとなった状態を説明する図であ
る。
FIG. 8 is a diagram illustrating a state in which an input audio signal is sample data divided into different SBs and assigned bits in the recording / reproducing apparatus of the present embodiment.

【図9】本実施例の記録再生装置において、サンプルデ
ータを補正用の波形データで補正する前と後の各SBに
割り与えられるビット数を示す図である。
FIG. 9 is a diagram showing the number of bits allocated to each SB before and after correcting sample data with correction waveform data in the recording / reproducing apparatus of the present embodiment.

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

1 入力端子、 2 ALC、 3 保護回路部、 4
ADC、5 ディジタルフィルタ、 6 SP変換
部、7 サンプルデータ保持部、 7−1〜7−N ラ
ッチ回路、8 連続回数計測部、 9 パターンセレク
タ、 10 変化量計測部、11 メモリ部、 12
出力制御部、 13 サンプルデータ選択部、14 デ
ィジタル圧縮データ生成部、 100 記録再生部、1
01 記録媒体(ICメモリ)、 103 システムマ
イコン、104 操作部、 105 表示部、 110
エンコード/デコード部、111 メモリ、 112
オーディオ再生部、 200 データ再生部、201
サンプルデータ生成部、 202 サンプルデータ補
正部、300 入力部、 301 帯域分割部、 30
2 マスキング閾値算出部、303 ビットアロケーシ
ョン部、 304 再量子化部、305 フォーマティ
ング部
1 input terminal, 2 ALC, 3 protection circuit section, 4
ADC, 5 digital filter, 6 SP conversion unit, 7 sample data holding unit, 7-1 to 7-N latch circuit, 8 continuous count measurement unit, 9 pattern selector, 10 change amount measurement unit, 11 memory unit, 12
Output control section, 13 sample data selection section, 14 digital compressed data generation section, 100 recording / reproduction section, 1
01 recording medium (IC memory), 103 system microcomputer, 104 operation unit, 105 display unit, 110
Encoding / decoding unit, 111 memory, 112
Audio playback unit, 200 data playback unit, 201
Sample data generation section, 202 sample data correction section, 300 input section, 301 band division section, 30
2 Masking threshold calculation section, 303 bit allocation section, 304 requantization section, 305 formatting section

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 連続する複数のサンプルデータをラッチ
するデータラッチ部と、前記サンプルデータが連続して
フルスケールデータとなっている回数を計測する回数計
測部と、フルスケールデータとなった前記サンプルデー
タとフルスケールとなる直前または直後の前記サンプル
データとのレベルの変化量を計測する変化量計測部と、
前記回数計測部が計測する回数と前記変化量計測部が計
測する変化量とに対応させた波形パターンのデータを記
憶する記憶部と、前記データラッチ部にラッチされたサ
ンプルデータと前記記憶部に記憶された波形パターンの
データのどちらかを選択するデータ選択部と、前記回数
計測部が計測する回数と前記変化量計測部が計測する変
化量の組合せにより前記記憶部の波形パターンを選択す
る波形パターン選択部とを備え、前記波形パターン選択
部は、前記記憶部から波形パターンを選択するととも
に、前記データラッチ部のサンプルデータを波形パター
ンのデータに切り換えるよう前記データ選択部を制御す
ることを特徴とするデジタル信号処理装置。
A data latch unit for latching a plurality of continuous sample data; a number measurement unit for measuring the number of times the sample data is continuously full-scale data; A change amount measurement unit that measures the amount of change in level between the data and the sample data immediately before or immediately after the full scale,
A storage unit that stores data of a waveform pattern corresponding to the number of times measured by the number-of-times measurement unit and the amount of change measured by the amount-of-change measurement unit, and a sample data latched by the data latch unit and the storage unit. A data selection unit for selecting any of the stored waveform pattern data, and a waveform for selecting the waveform pattern of the storage unit based on a combination of the number of times measured by the number-of-times measurement unit and the change amount measured by the change-amount measurement unit A pattern selection unit, wherein the waveform pattern selection unit selects a waveform pattern from the storage unit and controls the data selection unit to switch the sample data of the data latch unit to data of a waveform pattern. Digital signal processing device.
【請求項2】 入力されるサンプルデータのレベルを補
正する入力サンプルデータ補正部と、前記入力サンプル
データ補正部から出力される補正後のサンプルデータを
エンコードするエンコーダ部と、前記エンコーダ部から
出力されるデータを記録する記録部と、前記エンコーダ
部の動作を制御する制御部とを備え、前記入力サンプル
データ補正部は、連続する複数のサンプルデータをラッ
チするデータラッチ部と、前記サンプルデータが連続し
てフルスケールデータとなっている回数を計測する回数
計測部と、フルスケールデータとなった前記サンプルデ
ータとフルスケールとなる直前または直後の前記サンプ
ルデータとのレベルの変化量を計測する変化量計測部
と、前記回数計測部が計測する回数と前記変化量計測部
が計測する変化量とに対応させた波形パターンのデータ
を記憶する記憶部と、前記データラッチ部にラッチされ
たサンプルデータと前記記憶部に記憶された波形パター
ンのデータのどちらかを選択するデータ選択部と、前記
回数計測部が計測する回数と前記変化量計測部が計測す
る変化量の組合せにより前記記憶部の波形パターンを選
択する波形パターン選択部とを備え、前記波形パターン
選択部は、前記記憶部から波形パターンを選択するとと
もに、前記データラッチ部のサンプルデータを波形パタ
ーンのデータに切り換えるよう前記データ選択部を制御
することを特徴とする記録装置。
2. An input sample data corrector for correcting the level of input sample data, an encoder for encoding corrected sample data output from the input sample data corrector, and an encoder output from the encoder. A recording unit that records data to be read, and a control unit that controls the operation of the encoder unit.The input sample data correction unit includes: a data latch unit that latches a plurality of continuous sample data; A frequency measuring unit for measuring the number of times that the data is full-scale data, and a change amount for measuring a level change amount between the sample data that is the full-scale data and the sample data immediately before or immediately after the full-scale data. A measuring unit, the number of times measured by the number-of-times measuring unit, and the amount of change measured by the amount-of-change measuring unit. A storage unit for storing data of the associated waveform pattern; a data selection unit for selecting either the sample data latched by the data latch unit or the data of the waveform pattern stored in the storage unit; A waveform pattern selection unit that selects a waveform pattern in the storage unit based on a combination of the number of times the unit measures and the change amount measured by the change amount measurement unit, wherein the waveform pattern selection unit converts the waveform pattern from the storage unit. A recording apparatus for selecting and controlling the data selection unit to switch the sample data of the data latch unit to data of a waveform pattern.
【請求項3】 前記請求項2に記載の記録再生装置にお
いて、アナログの入力信号をデジタルのデータに変換す
るAD変換部を更に備えることを特徴とする記録再生装
置。
3. The recording / reproducing apparatus according to claim 2, further comprising an AD converter for converting an analog input signal into digital data.
【請求項4】 前記請求項2又は請求項3に記載の記録
再生装置において、前記エンコード部は、入力信号を異
なる周波数帯域のサブバンドに分割し量子化してサンプ
ルデータとする帯域分割手段と、マスキング閾値を算出
するマスキング閾値算出手段と、前記サンプルデータの
レベルと前記マスキング閾値とを比較するレベル比較手
段と、前記レベル比較手段の比較結果にもとづいて前記
サブバンドにビットを割り当てるビットアロケーション
手段と、前記ビットアロケーション手段が前記サブバン
ドに割り当てたビット数のサンプルデータを再量子化す
る再量子化手段を更に備えることを特徴とする記録再生
装置。
4. The recording and reproducing apparatus according to claim 2, wherein the encoding unit divides the input signal into sub-bands of different frequency bands, quantizes the sub-band into sample data, and quantizes the sub-band into sample data. Masking threshold calculating means for calculating a masking threshold, level comparing means for comparing the level of the sample data with the masking threshold, and bit allocation means for allocating bits to the sub-band based on a comparison result of the level comparing means. Recording / reproducing apparatus, further comprising requantization means for requantizing sample data of the number of bits allocated to the subband by the bit allocation means.
JP28477299A 1999-10-05 1999-10-05 Digital signal processor and recorder Pending JP2001110143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28477299A JP2001110143A (en) 1999-10-05 1999-10-05 Digital signal processor and recorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28477299A JP2001110143A (en) 1999-10-05 1999-10-05 Digital signal processor and recorder

Publications (1)

Publication Number Publication Date
JP2001110143A true JP2001110143A (en) 2001-04-20

Family

ID=17682825

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28477299A Pending JP2001110143A (en) 1999-10-05 1999-10-05 Digital signal processor and recorder

Country Status (1)

Country Link
JP (1) JP2001110143A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9214162B2 (en) 2011-03-04 2015-12-15 JVC Kenwood Corporation Audio-signal correction apparatus, audio-signal correction method and audio-signal correction program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9214162B2 (en) 2011-03-04 2015-12-15 JVC Kenwood Corporation Audio-signal correction apparatus, audio-signal correction method and audio-signal correction program

Similar Documents

Publication Publication Date Title
US4472747A (en) Audio digital recording and playback system
KR100603894B1 (en) Apparatus and method for data compression and restoration of audio signals
AU648656B2 (en) High efficiency digital data encoding and decoding apparatus
JP3123286B2 (en) Digital signal processing device or method, and recording medium
KR100310214B1 (en) Signal encoding or decoding device and recording medium
JP3123290B2 (en) Compressed data recording device and method, compressed data reproducing method, recording medium
JPH08190764A (en) Method and device for processing digital signal and recording medium
KR19990077073A (en) Data Processing of Bitstream Signals
US6353807B1 (en) Information coding method and apparatus, code transform method and apparatus, code transform control method and apparatus, information recording method and apparatus, and program providing medium
KR20060004695A (en) Method and device for extending the audio signal band
JP3200851B2 (en) Digital signal processing device, digital signal processing method, and data recording medium
US5899966A (en) Speech decoding method and apparatus to control the reproduction speed by changing the number of transform coefficients
JP2001134295A (en) Encoder and encoding method, recorder and recording method, transmitter and transmission method, decoder and decoding method, reproducing device and reproducing method, and recording medium
JPH0846516A (en) Device and method for information coding, device and method for information decoding and recording medium
US5406632A (en) Method and device for correcting an error in high efficiency coded digital data
JP2001110143A (en) Digital signal processor and recorder
US7305346B2 (en) Audio processing method and audio processing apparatus
JP3776004B2 (en) Encoding method of digital data
JPH1083623A (en) Signal recording method, signal recorder, recording medium and signal processing method
JP3942882B2 (en) Digital signal encoding apparatus and digital signal recording apparatus having the same
JP3334374B2 (en) Digital signal compression method and apparatus
JP2000347697A (en) Voice record regenerating device and record medium
JP2000293199A (en) Voice coding method and recording and reproducing device
JP3186489B2 (en) Digital signal processing method and apparatus
JPH06309895A (en) Semiconductor memory audio recording and reproducing device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051021

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060228