JPH1117474A - Gain varying device - Google Patents

Gain varying device

Info

Publication number
JPH1117474A
JPH1117474A JP16982297A JP16982297A JPH1117474A JP H1117474 A JPH1117474 A JP H1117474A JP 16982297 A JP16982297 A JP 16982297A JP 16982297 A JP16982297 A JP 16982297A JP H1117474 A JPH1117474 A JP H1117474A
Authority
JP
Japan
Prior art keywords
coefficient
coefficient value
multiplication
value
gain
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
JP16982297A
Other languages
Japanese (ja)
Inventor
Katsushi Yamada
勝志 山田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP16982297A priority Critical patent/JPH1117474A/en
Publication of JPH1117474A publication Critical patent/JPH1117474A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Amplification And Gain Control (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

PROBLEM TO BE SOLVED: To vary gain with excellent responsiveness by a simple method in a gain varying device for controlling an audio level by a DSP(digital signal processor). SOLUTION: The DSP 104 is provided with a coefficient updating processing part 104a and a multiplication processing part 104b and determines corresponding coefficient change amount and desired coefficient value for respective volume values. When a multiplication coefficient value and the desired coefficient value are different, the coefficient updating processing part 104a adds or subtracts the coefficient change amount to/from the multiplication coefficient value by comparing the size relation of both and updates the multiplication coefficient value. The multiplication processing part 104b multiplies the updated multiplication coefficient value to input signals and changes the gain. Thus, updating time corresponding to a volume position is almost fixed and acoustic feeling change at the time of updating is smoothed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ディジタル信号処
理で利得を変える利得可変装置に係り、特に、各種オー
ディオ装置のボリューム機能として利用される利得可変
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a variable gain device for changing a gain in digital signal processing, and more particularly to a variable gain device used as a volume function of various audio devices.

【0002】[0002]

【従来の技術】図5は従来の利得可変装置の主要部の構
成を示す。ここでは、ディジタル信号処理によってオー
ディオ機器のボリューム機能を乗算処理する部分を例示
している。図中、501は係数更新処理部501aと乗
算処理部501bを備えたディジタルシグナルプロセッ
サ(以下、DSPという)である。502はDSP50
1の制御を行うマイコン等の制御部、503は制御部5
02に接続されたボリューム調整キーである。制御部5
02は所望するボリューム毎に所望係数値を設定し、こ
の所望係数値をメモリ内に記憶している。
2. Description of the Related Art FIG. 5 shows a configuration of a main part of a conventional variable gain device. Here, an example is shown in which the volume function of the audio device is multiplied by digital signal processing. In the figure, reference numeral 501 denotes a digital signal processor (hereinafter, referred to as DSP) including a coefficient update processing unit 501a and a multiplication processing unit 501b. 502 is DSP50
A control unit such as a microcomputer for controlling the control unit 1;
02 is a volume adjustment key connected to 02. Control unit 5
Numeral 02 sets a desired coefficient value for each desired volume, and stores the desired coefficient value in the memory.

【0003】図6は制御部502で設定される各値の内
容を示している。ここでは、ボリューム値、ボリューム
利得値(−dB)、所望係数値(dec)、係数値の差
(dec)の各値が設定され、これが制御部502内の
メモリ(不図示)に保存されるほか、利得更新時間(m
s)も記憶されている。具体的には、16ビットの固定
小数点の係数とし、最大利得を0dB、そのときの係数
値を7FFFh=32767としている。また、ボリュ
ーム利得値は2dB毎の変化ステップとしている。
FIG. 6 shows the contents of each value set by the control unit 502. Here, respective values of a volume value, a volume gain value (-dB), a desired coefficient value (dec), and a difference (dec) between coefficient values are set, and are stored in a memory (not shown) in the control unit 502. In addition, the gain update time (m
s) is also stored. Specifically, it is a fixed-point coefficient of 16 bits, the maximum gain is 0 dB, and the coefficient value at that time is 7FFFh = 32767. Further, the volume gain value is set to change steps every 2 dB.

【0004】次に、図5の利得可変装置の動作について
説明する。ボリューム調整キー503によってボリュー
ムが変更されると、制御部502は「ボリューム値」の
情報から対応する「所望係数値」をメモリ内の情報から
選択し、DSP501の係数更新処理部501aへ転送
する。係数更新処理部501aは、乗算処理部501b
内の乗算器(不図示)の乗算係数値が「所望係数値」に
等しくなるまで、1サンプリング周期に1回のみ、1の
加算又は減算を繰り返し実行する。
Next, the operation of the variable gain device shown in FIG. 5 will be described. When the volume is changed by the volume adjustment key 503, the control unit 502 selects the corresponding “desired coefficient value” from the information of the “volume value” from the information in the memory, and transfers it to the coefficient update processing unit 501a of the DSP 501. The coefficient update processing unit 501a includes a multiplication processing unit 501b
Until the multiplication coefficient value of the multiplier (not shown) becomes equal to the “desired coefficient value”, the addition or subtraction of 1 is repeatedly performed only once in one sampling period.

【0005】図7は従来の係数更新処理を示すフローチ
ャートである。まず、乗算係数値が所望係数値に一致す
るか否かが判定される(ステップ701)。一致すれ
ば、係数更新処理は終了する。また、乗算係数値が所望
係数値に不一致の場合、乗算係数値に+1し、これを新
たな乗算係数値にし(ステップ702)、処理を終了す
る。この更新に要する時間は、 |更新開始時の乗算係数値−所望係数値|×1サンプリ
ング周期 で表される(この場合、更新開始時の乗算係数値は、前
回の更新時の所望係数値に等しい)。例えば、サンプリ
ング周波数が44.1kHzであれば、各ボリューム位
置間での更新時間は図6の「利得更新時間」になる。
FIG. 7 is a flowchart showing a conventional coefficient updating process. First, it is determined whether the multiplication coefficient value matches the desired coefficient value (step 701). If they match, the coefficient update process ends. If the multiplication coefficient value does not match the desired coefficient value, the multiplication coefficient value is incremented by 1 to make it a new multiplication coefficient value (step 702), and the process ends. The time required for this update is represented by | multiplier coefficient value at start of update−desired coefficient value | × 1 sampling period (in this case, the multiplier coefficient value at the start of update is equal to the desired coefficient value at the previous update. equal). For example, if the sampling frequency is 44.1 kHz, the update time between each volume position is the “gain update time” in FIG.

【0006】[0006]

【発明が解決しようとする課題】この利得可変装置にお
いては、図6から明らかなように、ボリューム位置に応
じて更新時間が大きく異なり、滑らかな聴感変化が得ら
れなかった。この理由は、一般に、ボリューム機能の利
得変化が対数変化、つまりdB値によるリニア変化であ
るのに対し、係数値の更新が加算又は減算によるリニア
変化であることに起因している。
As can be seen from FIG. 6, in this variable gain device, the update time greatly differs depending on the volume position, and a smooth change in audibility cannot be obtained. This is because the gain change of the volume function is generally a logarithmic change, that is, a linear change due to a dB value, whereas the updating of the coefficient value is a linear change due to addition or subtraction.

【0007】本発明は、上記のような従来の問題を解決
するものであり、応答性を高めてボリューム位置に応じ
た更新時間をほぼ一定にし、更新中の聴感変化を滑らか
にすることのできる利得可変装置を提供することを目的
とする。
SUMMARY OF THE INVENTION The present invention solves the above-mentioned conventional problems, and makes it possible to improve the responsiveness so that the update time according to the volume position is made substantially constant, and the audibility change during the update can be made smooth. It is an object to provide a variable gain device.

【0008】[0008]

【課題を解決するための手段】この課題を解決するため
に本発明は、ディジタルシグナルプロセッサで入力信号
の利得を制御するに際し、利得を変化させる乗算係数値
が更新後の所望係数値に一致しないとき、前記乗算係数
値に係数変化量を1サンプリング周期に1回の加算又は
減算を行って乗算係数値を更新するように構成したもの
である。
According to the present invention, in controlling a gain of an input signal in a digital signal processor, a multiplication coefficient value for changing the gain does not coincide with an updated desired coefficient value. At this time, the multiplication coefficient value is updated by performing addition or subtraction of the coefficient change amount to the multiplication coefficient value once in one sampling period.

【0009】これにより、ボリューム位置に応じた更新
時間をほぼ一定に保ち、ボリューム変化の更新中でも滑
らかな聴感変化することが可能な利得可変装置が得られ
る。
Thus, it is possible to obtain a variable gain device capable of keeping the update time corresponding to the volume position substantially constant and smoothly changing the audibility even during the update of the volume change.

【0010】[0010]

【発明の実施の形態】本発明の請求項1に記載の発明
は、入力信号に対して乗数係数値を乗算して利得を変更
する乗算処理部及び前記乗算処理に伴う乗算係数値を更
新する係数更新処理部を内蔵したディジタルシグナルプ
ロセッサ(DSP)と、このディジタルシグナルプロセ
ッサを制御する制御部とを備え、前記乗算係数値が利得
変更の要求に応じて設定された所望係数値に一致するよ
うに前記乗算係数値を更新する利得可変装置において、
前記乗算係数値が更新後の所望係数値に一致しないと
き、前記係数更新処理部は、前記乗算係数値と前記所望
係数値の大小関係に応じて、1サンプリング周期に1
回、前記乗算係数値に係数変化量を加算又は減算して前
記乗算係数値を更新するようにしたものであり、加算又
は減算という簡易な更新手段を用いながら、ボリューム
位置に応じた更新時間をほぼ一定にでき、更新中の聴感
変化を滑らかにすることができるという作用を有する。
According to the first aspect of the present invention, a multiplication processing section for multiplying an input signal by a multiplier coefficient value to change a gain and updating a multiplication coefficient value accompanying the multiplication processing A digital signal processor (DSP) having a built-in coefficient update processing unit; and a control unit for controlling the digital signal processor, wherein the multiplication coefficient value matches a desired coefficient value set according to a request for changing the gain. In the variable gain device that updates the multiplication coefficient value,
When the multiplication coefficient value does not match the updated desired coefficient value, the coefficient update processing unit performs one sampling period in one sampling cycle according to the magnitude relationship between the multiplication coefficient value and the desired coefficient value.
Times, the coefficient change amount is added to or subtracted from the multiplication coefficient value to update the multiplication coefficient value, and the update time according to the volume position is updated by using a simple updating means of addition or subtraction. It has an effect that it can be made substantially constant, and a change in audibility during updating can be made smooth.

【0011】請求項2に記載の発明は、前記ディジタル
シグナルプロセッサは、聴感上滑らかな変化をもたらす
利得の変化量をA(dB)とするとき、更新後の係数変
化量が、更新前の所望係数値×[{10^(A/2
0)}−1]以下で、かつ、更新前の所望係数値×[1
−{10^(−A/20)}]以下を満たすようにした
ものであり、この条件を見たすことにより聴感変化を滑
らかにすることができるという作用を有する。
According to a second aspect of the present invention, in the digital signal processor, when the amount of change in gain that causes a smooth change in audibility is A (dB), the amount of change in coefficient after updating is a desired value before updating. Coefficient value x [{10} (A / 2
0)} −1] or less and the desired coefficient value before updating × [1
− {10} (− A / 20)}], and has an effect that a change in audibility can be smoothed by observing this condition.

【0012】請求項3に記載の発明は、前記係数更新処
理部は、前記制御部で選択された前記係数変化量が格納
される係数変化量格納メモリと、前記制御部で選択され
た前記所望係数値が格納される所望係数格納メモリとを
備えたものであり、乗算係数値の更新を容易、かつ短時
間に実行することが可能になるという作用を有する。
According to a third aspect of the present invention, the coefficient update processing unit includes a coefficient change amount storage memory for storing the coefficient change amount selected by the control unit, and the desired coefficient change memory selected by the control unit. It has a desired coefficient storage memory in which coefficient values are stored, and has an effect that updating of a multiplication coefficient value can be performed easily and in a short time.

【0013】以下、本発明の実施の形態について、図1
〜図4を参照しながら説明する。図1は本発明による利
得可変装置の構成を示す。以下においては、オーディオ
機器のボリューム機能に適用した例について説明する。
Hereinafter, an embodiment of the present invention will be described with reference to FIG.
This will be described with reference to FIG. FIG. 1 shows the configuration of a variable gain device according to the present invention. Hereinafter, an example in which the present invention is applied to a volume function of an audio device will be described.

【0014】101はアナログオーディオ信号を出力す
る音源である。102は音源101の高域をカットする
ローパスフィルタ(以下、LPFという)、103はL
PF102の出力信号をディジタル信号に変換するA/
Dコンバータである。104はディジタル信号処理を行
うDSP(Digital Signal Proce
ssor)であり、係数更新処理部104a及び乗算処
理部104bを備えている。105はDSP104に接
続されたD/Aコンバータであり、DSP104の出力
をアナログ信号(オーディオ信号)に変換する。106
はD/Aコンバータ105に接続されたLPFであり、
D/Aコンバータ105の出力信号中の高調波成分を除
去する。107はLPF106に接続されてアナログオ
ーディオ信号の電圧増幅及び電力増幅を行う増幅器であ
り、108は増幅器107に接続されて電気−音響変換
を行うスピーカである。109はユーザーによって操作
するボリューム調整キーであり、音源101による再生
信号の利得可変を指示する。110はDSP104を制
御するマイクロコンピュータ等の制御部である。なお、
本実施の形態においては、サンプリング周波数として、
44.1kHzを用いている。
Reference numeral 101 denotes a sound source that outputs an analog audio signal. Reference numeral 102 denotes a low-pass filter (hereinafter, referred to as LPF) that cuts the high frequency of the sound source 101, and reference numeral 103 denotes L.
A / which converts the output signal of the PF 102 into a digital signal
It is a D converter. Reference numeral 104 denotes a DSP (Digital Signal Process) for performing digital signal processing.
and a coefficient update processing unit 104a and a multiplication processing unit 104b. Reference numeral 105 denotes a D / A converter connected to the DSP 104, and converts an output of the DSP 104 into an analog signal (audio signal). 106
Is an LPF connected to the D / A converter 105,
A harmonic component in the output signal of the D / A converter 105 is removed. Reference numeral 107 denotes an amplifier connected to the LPF 106 to perform voltage amplification and power amplification of the analog audio signal, and reference numeral 108 denotes a speaker connected to the amplifier 107 to perform electro-acoustic conversion. Reference numeral 109 denotes a volume adjustment key operated by a user, and instructs a variable gain of a reproduction signal from the sound source 101. Reference numeral 110 denotes a control unit such as a microcomputer for controlling the DSP 104. In addition,
In the present embodiment, as the sampling frequency,
44.1 kHz is used.

【0015】図2はDSP104の係数更新処理部10
4a及び乗算処理部104bの詳細構成を示す。係数更
新処理部104aは係数変化量格納メモリ201と所望
係数格納メモリ202を備え、乗算処理部104aは利
得を変化させるための乗算器203を備えている。ま
た、係数更新処理部104aと乗算処理部104bで共
用するメモリ204が設けられている。係数変化量格納
メモリ201と所望係数格納メモリ202は、共に16
ビット長の係数メモリである。乗算器203は16ビッ
トの固定小数点係数であり、最大利得0dB時の係数値
は7FFF(hex)=32767(dec)である。
本実施の形態においては、ボリューム機能が最大利得0
dBで、各ボリューム値が2dB毎の変化ステップであ
る。
FIG. 2 shows a coefficient update processing unit 10 of the DSP 104.
4A and a detailed configuration of the multiplication processing unit 104b. The coefficient update processing unit 104a includes a coefficient change amount storage memory 201 and a desired coefficient storage memory 202, and the multiplication processing unit 104a includes a multiplier 203 for changing a gain. Further, a memory 204 shared by the coefficient update processing unit 104a and the multiplication processing unit 104b is provided. Both the coefficient change amount storage memory 201 and the desired coefficient storage memory 202 have 16
This is a bit-length coefficient memory. The multiplier 203 is a 16-bit fixed-point coefficient, and the coefficient value when the maximum gain is 0 dB is 7FFF (hex) = 32767 (dec).
In this embodiment, the volume function has a maximum gain of 0.
In dB, each volume value is a change step every 2 dB.

【0016】制御部110内のメモリ(不図示)には、
図3のように、ボリューム値nに対応して後記する第1
の条件〜第4の条件を満たすように設定された係数変化
量Snと所望係数値Dnが格納される。更に、図6で示
した内容のほか、下降時の係数差(dec)及び利得更
新時間(ms)、上昇時の係数差(dec)及び利得更
新時間(ms)が記憶されている。本実施の形態の場
合、利得更新時間は各々のボリューム値の1段階の変
化、即ち、2dBの利得変化で、0.1〜0.3msの
範囲で一定になすように係数変化量Snを定めている。
更に、聴感上滑らかな変化が得られるように、1サンプ
リング周期当たりの利得変化が0.5dB以下になるよ
うに係数変化量Snを設定している。
A memory (not shown) in the control unit 110 includes:
As shown in FIG. 3, a first value described below corresponding to the volume value n
The coefficient change amount Sn and the desired coefficient value Dn set to satisfy the conditions (1) to (4) are stored. Further, in addition to the contents shown in FIG. 6, the coefficient difference (dec) and the gain update time (ms) when falling, the coefficient difference (dec) and the gain update time (ms) when rising are stored. In the case of the present embodiment, the coefficient update amount Sn is determined such that the gain update time is one step change of each volume value, that is, a gain change of 2 dB, and is constant within a range of 0.1 to 0.3 ms. ing.
Further, the coefficient change amount Sn is set so that the gain change per sampling cycle is 0.5 dB or less so that a smooth change in audibility can be obtained.

【0017】ボリューム位置nにおける利得値Vn(d
B)毎に、隣接したボリューム位置n′=n+1、及び
n′=n−1の関係のもとで、第1から第4の条件を満
たすような係数変化量Snと所望係数値Dnを定める。
The gain value Vn (d at the volume position n
For each B), a coefficient change amount Sn and a desired coefficient value Dn that satisfy the first to fourth conditions are determined under the relationship of adjacent volume positions n ′ = n + 1 and n ′ = n−1. .

【0018】第1の条件は、所望係数値をDn、隣接し
たボリューム位置をn′、所望係数をDn′、係数変化
量をSn′としたとき、 |Dn−Dn′|=Sn′×m (m:自然数) を満たすことである。
The first condition is that when the desired coefficient value is Dn, the adjacent volume position is n ', the desired coefficient is Dn', and the coefficient change amount is Sn ', | Dn-Dn' | = Sn'.times.m (M: natural number).

【0019】第2の条件は、係数変化量Snと係数変化
量Sn′の間で、 Sn=Sn′×m (m:自然数) 又は、 Sn=Sn′/m (m:自然数) を満たすことである。
The second condition is that between the coefficient change amount Sn and the coefficient change amount Sn ′, the following condition is satisfied: Sn = Sn ′ × m (m: natural number) or Sn = Sn ′ / m (m: natural number) It is.

【0020】第3の条件は、所望係数値Dnが利得値V
nを実現するための最も近い近似値になることであり、
この場合、ボリューム位置nからn′への利得更新所要
時間Tn′は下記の式で算出される。
The third condition is that the desired coefficient value Dn is equal to the gain value V
n to be the closest approximation to achieve
In this case, the required gain update time Tn 'from the volume position n to n' is calculated by the following equation.

【0021】Tn′=|Dn−Dn′|/Sn′×サン
プリング周期 さらに、第4の条件として、係数変化量Sn′が以下の
算出式を満たすことである。聴感上滑らかな変化をもた
らす利得の変化量をA(dB)とするとき、 Sn′<Dn×[{10^(A/20)}−1] を満たし、かつ、 Sn′<Dn×[1−{10^(−A/20)}] を満たす必要がある。
Tn '= | Dn-Dn' | /Sn'.times.Sampling Cycle A fourth condition is that the coefficient change amount Sn 'satisfies the following formula. Assuming that the amount of change in gain that causes a smooth change in hearing is A (dB), Sn '<Dn × [{10} (A / 20)} − 1] is satisfied, and Sn ′ <Dn × [1 − {10} (− A / 20)}].

【0022】次に、図1の利得可変装置の動作について
説明する。また、係数更新処理については図4のフロー
チャートを参照して説明する。
Next, the operation of the variable gain device shown in FIG. 1 will be described. The coefficient update processing will be described with reference to the flowchart in FIG.

【0023】通常、ディジタルオーディオ信号はDSP
104内の乗算処理部104bに入力され、乗算器20
3において乗算係数値を乗算することで利得が可変され
た後に出力される。乗算係数値は、DSP104内の乗
算係数値格納メモリ204に格納されている。
Usually, the digital audio signal is a DSP
The signal is input to the multiplication processing unit 104b in the
3 is output after the gain is varied by multiplying the multiplication coefficient value. The multiplication coefficient value is stored in the multiplication coefficient value storage memory 204 in the DSP 104.

【0024】まず、ユーザーによるボリューム操作(ボ
リューム操作キー109の操作)があると、ボリューム
操作キー109からのボリューム値情報が制御部110
へ転送される。制御部110は、ボリューム値情報に基
づいてボリューム値に対応した係数変化量と所望係数値
を選択する。ついで、制御部110は選択された係数変
化量をDSP104の係数変化量格納メモリ201に転
送し、選択された所望係数値を所望係数値格納メモリ1
04aへ転送する。
First, when a volume operation (operation of the volume operation key 109) is performed by the user, the volume value information from the volume operation key 109 is transmitted to the control unit 110.
Transferred to The control unit 110 selects a coefficient change amount and a desired coefficient value corresponding to the volume value based on the volume value information. Next, the control unit 110 transfers the selected coefficient change amount to the coefficient change amount storage memory 201 of the DSP 104, and stores the selected desired coefficient value in the desired coefficient value storage memory 1.
04a.

【0025】そして、係数更新処理部104aは、図4
(a)に示すように、乗算係数値と所望係数値の各格納
メモリの内容を比較し(ステップ401)、異なってい
れば(乗算係数値≠所望係数値)、その大、小関係を判
断する(ステップ402)。[乗算係数値<所望係数
値]の場合、[乗算係数値+係数変化量]の加算処理を
行い、その結果を乗算係数値とし(ステップ403)、
係数更新処理を終了する。また、[乗算係数値>所望係
数値]の場合、[乗算係数値−係数変化量]の減算処理
を行い、その結果を乗算係数値とし(ステップ40
4)、係数更新処理を終了する。乗算係数値に係数変化
量を加算又は減算することで乗算係数値を更新し、その
結果を乗算係数格納メモリ204へ格納する。
Then, the coefficient update processing section 104a
As shown in (a), the contents of the respective storage memories of the multiplication coefficient value and the desired coefficient value are compared (step 401), and if they are different (multiplication coefficient value ≠ desired coefficient value), the large / small relationship is determined. (Step 402). In the case of [multiplication coefficient value <desired coefficient value], an addition process of [multiplication coefficient value + coefficient change amount] is performed, and the result is set as a multiplication coefficient value (step 403).
The coefficient update processing ends. If [multiplication coefficient value> desired coefficient value], subtraction processing of [multiplication coefficient value−coefficient change amount] is performed, and the result is set as a multiplication coefficient value (step 40).
4), the coefficient update process ends. The multiplication coefficient value is updated by adding or subtracting the coefficient change amount to or from the multiplication coefficient value, and the result is stored in the multiplication coefficient storage memory 204.

【0026】更に、乗算処理部104bにおいては、図
4(b)に示すように、入力信号は更新後の乗算係数値
と乗算し、これを出力信号とする(ステップ405)。
この乗算処理によって利得が変化する。以上の係数更新
処理部104aと乗算処理部104bの処理は、1サン
プリング周期に1回のみ実施される。
Further, in the multiplication processing section 104b, as shown in FIG. 4 (b), the input signal is multiplied by the updated multiplication coefficient value and used as an output signal (step 405).
The gain changes by this multiplication process. The processing of the coefficient update processing unit 104a and the multiplication processing unit 104b is performed only once in one sampling cycle.

【0027】例えば、−6dBから−8dBにボリュー
ムが下降する場合、 ボリューム位置:n=3 利得更新開始時の乗算係数値:Dn=D3=16384
(図3の4段目) 係数変化量:Sn′=Sn+1=S4=256(図3の
5段目) 所望係数値:Dn′=D4=12800(図3の5段
目) と、設定される。この場合、第1の条件、 |Dn−Dn′|=Sn′×m (但し、mは自然数) |16384−12800|=3584=256×14 を満たす。
For example, when the volume decreases from -6 dB to -8 dB, the volume position: n = 3 The multiplication coefficient value at the start of the gain update: Dn = D3 = 16384
(Fourth stage in FIG. 3) Coefficient change amount: Sn ′ = Sn + 1 = S4 = 256 (fifth stage in FIG. 3) Desired coefficient value: Dn ′ = D4 = 12800 (fifth stage in FIG. 3) You. In this case, the first condition: | Dn−Dn ′ | = Sn ′ × m (where m is a natural number) | 16384-12800 | = 3584 = 256 × 14

【0028】また、−8dBから−6dBにボリューム
が上昇する場合、 ボリューム位置:n=4 利得更新開始時の乗算係数値:Dn=D4=12800
(図3の5段目) 係数変化量:Sn′=S(n−1)=S3=512(図
3の4段目) 所望係数値:Dn′=D3=16384(図3の4段
目) と設定される。この場合、第1の条件、 |Dn−Dn′|=Sn′×m (mは自然数) |12800−16384|=3584=512×7 を満たす。
When the volume increases from -8 dB to -6 dB, the volume position: n = 4, the multiplication coefficient value at the start of the gain update: Dn = D4 = 12800
(Fifth stage in FIG. 3) Coefficient change amount: Sn ′ = S (n−1) = S3 = 512 (fourth stage in FIG. 3) Desired coefficient value: Dn ′ = D3 = 16384 (fourth stage in FIG. 3) ) Is set. In this case, the first condition: | Dn−Dn ′ | = Sn ′ × m (m is a natural number) | 12800-16384 | = 3584 = 512 × 7 is satisfied.

【0029】したがって、第2の条件でn=3、n′=
(n+1)時 Sn=S(n+1)×m (mは自然数) 512=256×2 を満たし、n=4、n′=(n−1)時 Sn=S(n−1)/m (mは自然数) 256=512/2 を満たす。
Therefore, under the second condition, n = 3, n '=
(N + 1) time Sn = S (n + 1) × m (m is a natural number) 512 = 256 × 2, n = 4, n ′ = (n−1) time Sn = S (n−1) / m (m Is a natural number) 256 = 512/2.

【0030】さらに、D3とD4は、第1と第2の条件
を満たし、かつ、−6dBと−8dBを実現するための
最も近い近似値であり、第3の条件を満たす。
Further, D3 and D4 satisfy the first and second conditions, and are the closest approximate values for realizing -6 dB and -8 dB, and satisfy the third condition.

【0031】この場合、−6dBから−8dBにボリュ
ームが下降するに要する時間日、 Tn′=|Dn−Dn′|/Sn′×サンプリング周期 より、n=3′、n′=〔n+1〕時 T4=|16384−12800|/256/4410
0=0.0032 となる。−8dBから−6dBにボリュームが上昇する
に要する時間は、n=4′、n′=〔n−1〕時 T3=|12800−16384|/512/4410
0=0.0016 となる。
In this case, the time required for the volume to fall from -6 dB to -8 dB is calculated as follows: Tn '= | Dn-Dn' | /Sn'.times. T4 = | 16384-12800 | / 256/4410
0 = 0.0032 The time required for the volume to rise from -8 dB to -6 dB is n = 4 ', n' = [n-1] T3 = | 12800-16384 | / 512/4410
0 = 0.016.

【0032】さらに、聴感上滑らかな変化をもたらすた
め、1サンプリング周期あたりの利得の変化量を0.5
dBとし、第4の条件において、n=3、n′=n+1
時 Sn′<Dn×[1−{10^(−A/20)}] 256<16384×[1−{10^(−0.5/2
0)}]=916かつ、n=4′、n′=n−1時 Sn′<Dn×[{10^(A/20)}−1] 512<12800×[{10^(0.5/20)}−
1]=758 となり、満たす。
Further, in order to bring about a smooth change in the sense of hearing, the amount of change in gain per sampling cycle is set to 0.5.
dB, and under the fourth condition, n = 3, n ′ = n + 1
Hour Sn ′ <Dn × [1- {10} (− A / 20)}] 256 <16384 × [1- {10} (− 0.5 / 2
0)}] = 916 and n = 4 ′, n ′ = n−1 Sn ′ <Dn × [{10 ^ (A / 20)} − 1] 512 <12800 × [{10 ^ (0.5 / 20)}-
1] = 758, which is satisfied.

【0033】以上と同様に、図3に示す値はすべて第1
から第4の条件を満たし、結果、加算又は減算という簡
易は更新方法を用いながらも、ボリューム位置に応じた
更新時間を0.1〜0.3msの範囲に保ち、ボリュー
ム機能の更新中における聴感変化を滑らかにすることが
できる。
As described above, all the values shown in FIG.
And the fourth condition is satisfied. As a result, the update time according to the volume position is kept in the range of 0.1 to 0.3 ms while using the simple update method of addition or subtraction, and the audibility during the update of the volume function is maintained. Changes can be smoothed.

【0034】上記したように、一般に、ボリューム機能
の利得変化は対数変化、つまり、デシベル(dB)値で
リニア変化であるため、ボリューム位置によって、利得
の変化量が異なる。つまり、0dBから−6dBに更新
した場合の利得変化量は、1−0.5=0.5である。
また、−20dBから−26dBの場合は、同じ6dB
のボリューム変化量であっても、利得変化量は0.1−
0.05=0.05となる。
As described above, since the gain change of the volume function is generally a logarithmic change, that is, a linear change in a decibel (dB) value, the amount of change in the gain differs depending on the volume position. That is, the gain change amount when updating from 0 dB to -6 dB is 1-0.5 = 0.5.
In the case of -20 dB to -26 dB, the same 6 dB
Even if the volume change amount is, the gain change amount is 0.1-
0.05 = 0.05.

【0035】本発明によれば、係数更新処理は、現在の
乗算係数値に、係数変化量を1サンプリング周期に1回
のみ、加算又は減算することで、所望係数値に等しくす
る方法を取るため、ボリューム位置nにおける利得値V
n(dB)毎に、係数変化量Snを定め、利得変化が大
きい場合は、係数変化量を大きく、利得変化が小さい場
合は、係数変化量を小さくすることで、利得更新に要す
る時間を調整することができ、いずれのボリューム位置
に対しても、ほぼ一定にすることができる。また、第1
から第3の条件を満たすことで、ボリューム上昇時と下
降時に対して、ボリューム位置Vnにおける1組の係数
変化量Snと所望係数値Dnで対応できる。さらに、第
4の条件を満たすことで、微小変化の繰り返しにより、
滑らかなに変化したものと聴感上認識されるため、ボリ
ューム操作時の異音発生を防ぐことができる。
According to the present invention, the coefficient updating process is performed by adding or subtracting the coefficient change amount to or from the current multiplication coefficient value only once in one sampling period to make the coefficient equal to the desired coefficient value. , The gain value V at the volume position n
The coefficient change amount Sn is determined for each n (dB), and when the gain change is large, the coefficient change amount is large, and when the gain change is small, the coefficient change amount is reduced to adjust the time required for gain update. And can be made substantially constant for any volume position. Also, the first
By satisfying the third condition, a set of coefficient change amount Sn and a desired coefficient value Dn at the volume position Vn can be coped with when the volume increases and when the volume decreases. Further, by satisfying the fourth condition, by repeating a minute change,
Since the sound is perceived as a smooth change, it is possible to prevent the generation of abnormal noise during volume operation.

【0036】以上から、加算又は減算という簡易な更新
方法を用いながらも、ボリューム位置に応じた更新時間
をほぼ一定に保ち、更新中に滑らかな聴感変化をもたら
すことができる応答性に優れたディジタル信号処理によ
る利得可変装置を提供することができる。
As described above, while using a simple updating method such as addition or subtraction, the updating time corresponding to the volume position is kept almost constant, and a digital signal with excellent responsiveness which can bring about a smooth audibility change during updating. A variable gain device using signal processing can be provided.

【0037】[0037]

【発明の効果】以上説明したように本発明によれば、加
算又は減算という簡易な更新方法を用いながら、ボリュ
ーム位置に応じた更新時間をほぼ一定にでき、更新中の
聴感変化を滑らかにすることが可能になり、応答性に優
れた利得可変装置を構成できるという効果が得られる。
As described above, according to the present invention, the update time according to the volume position can be made substantially constant while using the simple update method of addition or subtraction, and the audibility change during the update can be made smooth. This makes it possible to form a gain variable device having excellent responsiveness.

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

【図1】本発明による利得可変装置の構成を示すブロッ
ク図
FIG. 1 is a block diagram showing a configuration of a variable gain device according to the present invention.

【図2】図1の係数更新処理部及び乗算処理部の詳細を
示すブロック図
FIG. 2 is a block diagram illustrating details of a coefficient update processing unit and a multiplication processing unit in FIG. 1;

【図3】図1の制御部に格納される係数等のデータ内容
を示す説明図
FIG. 3 is an explanatory diagram showing data contents such as coefficients stored in a control unit of FIG. 1;

【図4】本発明に係る係数更新処理を示すフローチャー
FIG. 4 is a flowchart showing a coefficient updating process according to the present invention.

【図5】従来の利得可変装置の主要部の構成を示すブロ
ック図
FIG. 5 is a block diagram showing a configuration of a main part of a conventional variable gain device.

【図6】図5の制御部で設定される各値の内容を示す説
明図
FIG. 6 is an explanatory diagram showing the contents of each value set by a control unit in FIG. 5;

【図7】従来の係数更新処理を示すフローチャートFIG. 7 is a flowchart showing a conventional coefficient updating process;

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

101 音源 103 A/Dコンバータ 104 ディジタルシグナルプロセッサ(DSP) 104a 係数更新処理部 104b 乗算処理部 105 D/Aコンバータ 201 係数変化量格納メモリ 202 所望係数格納メモリ 203 乗算器 204 メモリ Reference Signs List 101 sound source 103 A / D converter 104 digital signal processor (DSP) 104a coefficient update processing unit 104b multiplication processing unit 105 D / A converter 201 coefficient change amount storage memory 202 desired coefficient storage memory 203 multiplier 204 memory

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 入力信号に対して乗数係数値を乗算して
利得を変更する乗算処理部及び前記乗算処理に伴う乗算
係数値を更新する係数更新処理部を内蔵したディジタル
シグナルプロセッサ(DSP)と、このディジタルシグ
ナルプロセッサを制御する制御部とを備え、前記乗算係
数値が利得変更の要求に応じて設定された所望係数値に
一致するように前記乗算係数値を更新する利得可変装置
において、前記乗算係数値が更新後の所望係数値に一致
しないとき、前記係数更新処理部は、前記乗算数値と前
記所望係数値の大小関係に応じて、1サンプリング周期
に1回、前記乗算係数値に係数変化量を加算又は減算し
て前記乗算係数値を更新することを特徴とする利得可変
装置。
1. A digital signal processor (DSP) including a multiplication unit for multiplying an input signal by a multiplier coefficient value to change a gain and a coefficient update unit for updating a multiplication coefficient value accompanying the multiplication process. A control unit for controlling the digital signal processor, wherein the multiplication coefficient value is updated so that the multiplication coefficient value matches a desired coefficient value set in response to a request for changing the gain. When the multiplication coefficient value does not coincide with the updated desired coefficient value, the coefficient update processing unit sets the coefficient to the multiplication coefficient value once per sampling cycle according to a magnitude relationship between the multiplication value and the desired coefficient value. A variable gain device, wherein the multiplication coefficient value is updated by adding or subtracting a change amount.
【請求項2】 前記ディジタルシグナルプロセッサは、
聴感上滑らかな変化をもたらす利得の変化量をA(d
B)とするとき、更新後の係数変化量が、更新前の所望
係数値×[{10^(A/20)}−1]以下で、か
つ、更新前の所望係数値×[1−{10^(−A/2
0)}]以下を満たすように処理することを特徴とする
請求項1の利得可変装置。
2. The digital signal processor according to claim 1,
The amount of change in gain that produces a smooth change in hearing is represented by A (d
B), the coefficient change amount after the update is equal to or less than the desired coefficient value before the update × [{10} (A / 20)} − 1] and the desired coefficient value before the update × [1- {]. 10 ^ (-A / 2
0)}] The variable gain device according to claim 1, wherein the processing is performed so as to satisfy the following.
【請求項3】 前記係数更新処理部は、前記制御部で選
択された前記係数変化量が格納される係数変化量格納メ
モリと、前記制御部で選択された前記所望係数値が格納
される所望係数格納メモリとを備たことを特徴とする請
求項1記載の利得可変装置。
3. The coefficient update processing unit includes: a coefficient change amount storage memory in which the coefficient change amount selected by the control unit is stored; and a coefficient change amount storage memory in which the desired coefficient value selected by the control unit is stored. 2. The variable gain device according to claim 1, further comprising a coefficient storage memory.
JP16982297A 1997-06-26 1997-06-26 Gain varying device Pending JPH1117474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16982297A JPH1117474A (en) 1997-06-26 1997-06-26 Gain varying device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16982297A JPH1117474A (en) 1997-06-26 1997-06-26 Gain varying device

Publications (1)

Publication Number Publication Date
JPH1117474A true JPH1117474A (en) 1999-01-22

Family

ID=15893553

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16982297A Pending JPH1117474A (en) 1997-06-26 1997-06-26 Gain varying device

Country Status (1)

Country Link
JP (1) JPH1117474A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007274442A (en) * 2006-03-31 2007-10-18 Fujitsu General Ltd Sound level controller
CN109716432A (en) * 2018-11-30 2019-05-03 深圳市汇顶科技股份有限公司 Gain process method and device thereof, electronic equipment, signal acquisition method and its system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007274442A (en) * 2006-03-31 2007-10-18 Fujitsu General Ltd Sound level controller
CN109716432A (en) * 2018-11-30 2019-05-03 深圳市汇顶科技股份有限公司 Gain process method and device thereof, electronic equipment, signal acquisition method and its system
CN109716432B (en) * 2018-11-30 2023-05-02 深圳市汇顶科技股份有限公司 Gain processing method and device, electronic equipment, signal acquisition method and system

Similar Documents

Publication Publication Date Title
US10340869B2 (en) Adjusting dynamic range of an audio signal based on one or more dynamic equalization and/or dynamic range control parameters
CA2525942C (en) Method, apparatus and computer program for calculating and adjusting the perceived loudness of an audio signal
US8199933B2 (en) Calculating and adjusting the perceived loudness and/or the perceived spectral balance of an audio signal
EP0159546B1 (en) Digital graphic equalizer
AU2006339694B2 (en) Hearing aid with adaptive feedback suppression
JPH11298990A (en) Audio equipment
JPH10322167A (en) Identification system for audio sound transmission system and characteristic setting system for audio filter
EP1681899B1 (en) Audio amplification apparatus with howling canceler
JPH06177688A (en) Audio signal processing unit
US6068489A (en) Karaoke amplifier with variably settable range of parameter to control audio signal
JP3322479B2 (en) Audio equipment
JPH1117474A (en) Gain varying device
JP3123052B2 (en) Acoustic signal compressor device
JP2002140072A (en) Electronic musical instrument and sound volume control method
JP3206770B2 (en) Music generator
JP3683978B2 (en) Saturation signal processor
JPH11122065A (en) Automatic equalizer of dsp constitution
JP3428861B2 (en) Sound field control filter coefficient calculation device
JPS61108211A (en) Graphic equalizer device
JP2900076B2 (en) Waveform generator
JP3687096B2 (en) Acoustic signal compressor
JPH10173457A (en) Audio system and volume control method therefor
JPH1152950A (en) Electronic musical instrument
JP2005123803A (en) Digital signal processor
JPH10336795A (en) Sound field control device