JPH1097252A - Digital filter device - Google Patents

Digital filter device

Info

Publication number
JPH1097252A
JPH1097252A JP9256168A JP25616897A JPH1097252A JP H1097252 A JPH1097252 A JP H1097252A JP 9256168 A JP9256168 A JP 9256168A JP 25616897 A JP25616897 A JP 25616897A JP H1097252 A JPH1097252 A JP H1097252A
Authority
JP
Japan
Prior art keywords
filter
digital
digital filter
trigonometric function
parameter
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
JP9256168A
Other languages
Japanese (ja)
Other versions
JP3217739B2 (en
Inventor
Iku Matsunaga
郁 松永
Yutaka Washiyama
豊 鷲山
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.)
Kawai Musical Instrument Manufacturing Co Ltd
Original Assignee
Kawai Musical Instrument Manufacturing 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 Kawai Musical Instrument Manufacturing Co Ltd filed Critical Kawai Musical Instrument Manufacturing Co Ltd
Priority to JP25616897A priority Critical patent/JP3217739B2/en
Publication of JPH1097252A publication Critical patent/JPH1097252A/en
Application granted granted Critical
Publication of JP3217739B2 publication Critical patent/JP3217739B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PROBLEM TO BE SOLVED: To dispense with massive memory capacity by generating various filter coefficients, continuously imparting them to a device and generating musical signals of various none colors. SOLUTION: A digital filter device is constituted of a control signal generation circuit (control signal generation means) 20, a trigonometric function generation circuit (trigonometric function generation means) 21, a filter coefficient operation circuit (filter coefficient operation means) 22 and a digital control filter (digital filter circuit) 23. By performing prescribed deformation to a calculation formula obtaining a digital filter coefficient obtained by performing a bi-linear transformation to a transfer function of an analog filter, the calculation formula is converted into the calculation formula mainly composed of a trigonometric function, and generates the digital filter coefficient, and by continuously supplying this coefficient to the digital filter circuit 23, a filter characteristic is changed time sequentially, and the tone color is controlled. That is, the filter characteristic of the digital filter circuit 23 is changed by the operatmon, and the tone color of the musical signal is controlled.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デジタルフィルタ
装置を有する電子楽器に関し、特に、デジタルフィルタ
に与える係数を演算により生成するようにしたデジタル
フィルタ装置を有する電子楽器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument having a digital filter device, and more particularly to an electronic musical instrument having a digital filter device which generates coefficients to be applied to a digital filter by calculation.

【0002】[0002]

【従来の技術】近年、電子楽器等において、種々の音色
の楽音を生成するために、デジタルフィルタ装置が用い
られている。
2. Description of the Related Art In recent years, digital filter devices have been used in electronic musical instruments and the like to generate musical tones of various timbres.

【0003】かかるデジタルフィルタ装置においては、
デジタルフィルタに外部から所定のフィルタ係数が与え
られることによりフィルタ特性が決定されるようになっ
ている。
In such a digital filter device,
The filter characteristics are determined by giving a predetermined filter coefficient from the outside to the digital filter.

【0004】電子楽器においては、かかる構成のデジタ
ルフィルタ装置を用いて楽音信号の音色の制御がなされ
る。即ち、デジタルフィルタ装置に与えるフィルタ係数
を時間的に変化させることにより種々の音色の楽音信号
が生成される。
In an electronic musical instrument, the tone color of a musical tone signal is controlled using the digital filter device having such a configuration. That is, tone signals of various timbres are generated by temporally changing filter coefficients applied to the digital filter device.

【0005】ところで、デジタルフィルタ装置に与える
フィルタ係数を時間的に変化させるために、従来は、多
種類のフィルタ係数をメモリに記憶せしめておき、時間
の経過とともに所望のフィルタ係数を該メモリから読み
出してデジタルフィルタ装置に与えるようになってい
る。
Conventionally, in order to change the filter coefficients applied to the digital filter device with time, conventionally, various types of filter coefficients are stored in a memory, and desired filter coefficients are read out from the memory as time passes. To a digital filter device.

【0006】しかし、種々のフィルタ特性を有するデジ
タルフィルタ装置を実現しようとすると、それぞれの特
性を実現するためのフィルタ係数を予めメモリに記憶し
ておかなければならず、膨大なメモリ容量が必要である
という欠点があった。
However, in order to realize a digital filter device having various filter characteristics, filter coefficients for realizing each characteristic must be stored in a memory in advance, and a huge memory capacity is required. There was a disadvantage.

【0007】[0007]

【発明が解決しようとする課題】この発明は、上記事情
に鑑みてなされたもので、膨大なメモリ容量を必要とし
ないにも拘わらず、種々のフィルタ係数を発生して連続
的にデジタルフィルタ装置に与えることにより種々の音
色の楽音信号を発生することのできる電子楽器を提供す
ることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and despite the fact that a huge memory capacity is not required, various filter coefficients are generated to continuously generate a digital filter device. It is an object of the present invention to provide an electronic musical instrument that can generate musical tone signals of various timbres by giving the same.

【0008】[0008]

【課題を解決するための手段】本発明は、入力されるデ
ジタル楽音信号に対して所定のフィルタ演算を施しフィ
ルタリングされたデジタル楽音信号を出力するためのデ
ジタルフィルタ手段と、該デジタルフィルタ手段のフィ
ルタ特性を制御するための第1及び第2のパラメータを
発生する制御信号発生手段と、三角関数値を記憶する記
憶手段であって前記第1のパラメータの整数部の値に基
づき三角関数値を発生するための三角関数記憶手段と、
該三角関数記憶手段から発生された前記三角関数値を前
記第1のパラメータの少数部の値に応じて補間する三角
関数補間手段と、該三角関数補間手段からの補間された
三角関数値および前記第2のパラメータに基づきフィル
タ係数を演算するフィルタ係数演算手段と、を備え、前
記演算により前記フィルタ係数を時間的に変化させるこ
とにより前記デジタルフィルタ手段のフィルタ特性を変
化させ楽音信号の音色を制御することを特徴とするデジ
タルフィルタ装置である。
SUMMARY OF THE INVENTION The present invention provides digital filter means for applying a predetermined filter operation to an input digital tone signal to output a filtered digital tone signal, and a filter for the digital filter means. Control signal generating means for generating first and second parameters for controlling characteristics, and storage means for storing a trigonometric function value, wherein the control signal generating means generates a trigonometric function value based on a value of an integer part of the first parameter. Trigonometric function storage means for performing
A trigonometric function interpolation means for interpolating the trigonometric function value generated from the trigonometric function storage means in accordance with the value of the decimal part of the first parameter; and an interpolated trigonometric function value from the trigonometric function interpolation means and Filter coefficient calculating means for calculating a filter coefficient based on a second parameter, wherein the filter characteristics of the digital filter means are changed by changing the filter coefficient over time by the calculation, thereby controlling the tone color of the tone signal. A digital filter device.

【0009】[0009]

【作用】本発明は、アナログフィルタの伝達関数に双一
次変換を施すことにより得られるデジタルフィルタの係
数を求める算式に所定の変形を施すことにより、三角関
数を主体にした算式に変換してデジタルフィルタ係数を
発生し、これを連続的にデジタルフィルタ手段に供給す
ることによりフィルタ特性を時系列的に変化させて、音
色を制御するものである。
According to the present invention, a predetermined transformation is applied to an equation for obtaining a coefficient of a digital filter obtained by performing a bilinear transformation on a transfer function of an analog filter, thereby converting the equation into a formula mainly based on a trigonometric function. By generating a filter coefficient and continuously supplying it to the digital filter means, the filter characteristics are changed in time series to control the timbre.

【0010】即ち、フィルタ係数発生手段の制御信号発
生手段は、例えば外部からの楽音情報に応じてフィルタ
特性を制御する第1、第2のパラメータを発生する。こ
の際、第1のパラメータはカットオフ周波数を反映した
三角関数の変数として用いることができる形式で発生す
る。
That is, the control signal generating means of the filter coefficient generating means generates first and second parameters for controlling the filter characteristics according to, for example, external tone information. At this time, the first parameter is generated in a form that can be used as a trigonometric function variable reflecting the cutoff frequency.

【0011】そして、この第1のパラメータを三角関数
発生手段に与えることにより第1のパラメータに応じた
所定の三角関数値を発生する。そして、この三角関数発
生手段で発生された三角関数値と上記第2のパラメータ
とによりフィルタ係数を演算し、デジタルフィルタ手段
に与えることにより、所定のフィルタ特性を有するデジ
タルフィルタ装置が構築される。
The first parameter is given to a trigonometric function generator to generate a predetermined trigonometric function value corresponding to the first parameter. Then, a filter coefficient is calculated based on the trigonometric function value generated by the trigonometric function generation means and the second parameter, and is applied to the digital filter means, whereby a digital filter device having predetermined filter characteristics is constructed.

【0012】かかるフィルタ係数の演算、及びデジタル
フィルタ手段への供給を連続して行うことにより、デジ
タル波形発生手段から出力される第1のデジタル波形
を、時系列的にその特性が変化するデジタルフィルタ手
段でフィルタリングし、第2のデジタル波形として出力
する。これにより、種々の音色を有するデジタル楽音波
形が得られる。
[0012] By continuously performing the calculation of the filter coefficient and the supply to the digital filter means, the first digital waveform output from the digital waveform generation means is converted into a digital filter whose characteristics change in a time series. Means for filtering and outputting as a second digital waveform. As a result, digital musical tone waveforms having various timbres can be obtained.

【0013】このように、本発明によれば、デジタルフ
ィルタ手段に与えるフィルタ係数は演算により算出する
ので、フィルタ係数を記憶するための膨大なメモリを必
要としない。
As described above, according to the present invention, since the filter coefficient given to the digital filter means is calculated by the operation, a huge memory for storing the filter coefficient is not required.

【0014】また、第1、第2のパラメータを変化させ
ることにより種々のフィルタ係数を発生することができ
るので、種々の音色の楽音信号を発生することのできる
ものとなっている。
Since various filter coefficients can be generated by changing the first and second parameters, it is possible to generate tone signals of various timbres.

【0015】[0015]

【発明の実施の形態】デジタルフィルタ回路の基本的構
成の一例を図2に示す。図において、101〜103
加算器、111 〜114 は乗算器、121 及び122
遅延素子である。
FIG. 2 shows an example of a basic configuration of a digital filter circuit. In the figure, 10 1 to 10 3 adders, 11 1 to 11 4 are multiplier 12 1 and 12 2 is the delay element.

【0016】このデジタルフィルタ回路に与えるべきフ
ィルタ係数は、「SH /SL 」、「α」、「β」及び
「±2」である。
The filter coefficients to be given to this digital filter circuit are " SH / SL ", "α", "β" and "± 2".

【0017】ここで「SH 」はハイパスフィルタ、「S
L 」はローパスフィルタを形成する時に、それぞれ与え
られるフィルタ係数である。また、「±2」は、ローパ
スフィルタの時に「+2」が、ハイパスフィルタの時に
「−2」が、それぞれ与えられる。
Here, " SH " is a high-pass filter, and "SH"
L ” is a filter coefficient given when a low-pass filter is formed. As for “± 2”, “+2” is given for a low-pass filter, and “−2” is given for a high-pass filter.

【0018】一般に、デジタルフィルタを設計する場
合、アナログフィルタの伝達関数H(s)に双一次変換
を行なう方法が採られている。
In general, when designing a digital filter, a method of performing bilinear conversion on a transfer function H (s) of an analog filter is adopted.

【0019】この方法によりデジタルフィルタ回路に与
えるフィルタ係数は、以下に示す算式で求められる。
The filter coefficient given to the digital filter circuit by this method can be obtained by the following equation.

【0020】α=2(π2 2 −1)/yy…(1) β=(1−πR/Q+π2 2 )/yy…(2) SH =1/yy…(3) SL =π2 2 /yy…(4) ここで、 yy=π2 2 +πR/Q+1…(6) である。Α = 2 (π 2 R 2 -1) / yy (1) β = (1-πR / Q + π 2 R 2 ) / yy (2) S H = 1 / yy (3) S L = Π 2 R 2 / yy (4) where yy = π 2 R 2 + πR / Q + 1 (6) It is.

【0021】なお、Qは共振特性(レゾナンス)の制御
パラメータであり共振周波数における利得を制御するも
の、fcはカットオフ周波数、FSはサンプリング周波
数である。
Note that Q is a control parameter of the resonance characteristic (resonance) for controlling the gain at the resonance frequency, fc is a cutoff frequency, and FS is a sampling frequency.

【0022】このように、双一次変換によるフィルタ係
数は非常に複雑な形をしており、簡単なハードウエアで
算出することができない。
As described above, the filter coefficient obtained by the bilinear transformation has a very complicated shape and cannot be calculated by simple hardware.

【0023】そこで、上記(1)〜(4)式に適切な変
形を行なうことにより、下式を得る。対応するデジタル
フィルタ回路の構成を図3に示す。図3においては、乗
算器13が追加されている点で図2に示すデジタルフィ
ルタ回路と異なっている。
The following equations are obtained by appropriately modifying the above equations (1) to (4). FIG. 3 shows the configuration of a corresponding digital filter circuit. 3 differs from the digital filter circuit shown in FIG. 2 in that a multiplier 13 is added.

【0024】α=−cos(2θ)…(8) ここで、 である。Α = −cos (2θ) (8) here, It is.

【0025】かかる変形により、各フィルタ係数は三角
関数により非常に簡単な形で表すことができ、ハードウ
エアにより実現することも容易である。
With such a modification, each filter coefficient can be represented in a very simple form by a trigonometric function, and can be easily realized by hardware.

【0026】次に、上記(8)ないし(13)式により
フィルタ係数を算出してフィルタ特性を制御するデジタ
ルフィルタ装置の一実施例について説明する。
Next, an embodiment of a digital filter device for controlling the filter characteristics by calculating the filter coefficients by the above equations (8) to (13) will be described.

【0027】図4は、この発明にかかる電子楽器に適用
するデジタルフィルタ装置の一実施例の構成を示すブロ
ック図である。
FIG. 4 is a block diagram showing the configuration of an embodiment of a digital filter device applied to an electronic musical instrument according to the present invention.

【0028】図において、20は制御信号発生回路であ
る。この制御信号発生回路20は、外部、例えば中央処
理装置(CPU)から供給される音色情報、音域情報、
或いはタッチ情報等の楽音情報に応じて、「θ」、
「Q」、及び「H/L」を生成するものである。ここ
で、「θ」は、上記(13)式により求められるカット
オフ周波数を反映した値であり、小数部に有効数字を含
むものである。
In the figure, reference numeral 20 denotes a control signal generation circuit. The control signal generation circuit 20 includes tone color information, tone range information supplied from outside, for example, a central processing unit (CPU),
Alternatively, according to musical information such as touch information, “θ”,
"Q" and "H / L" are generated. Here, “θ” is a value reflecting the cutoff frequency obtained by the above equation (13), and includes a significant number in a decimal part.

【0029】この制御信号発生回路20で生成された
「θ」は、三角関数発生回路21に与えられ、「Q」及
び「H/L」はフィルタ係数演算回路22に与えられ
る。
"Θ" generated by the control signal generation circuit 20 is supplied to a trigonometric function generation circuit 21, and "Q" and "H / L" are supplied to a filter coefficient calculation circuit 22.

【0030】三角関数発生回路21は、制御信号発生回
路20から与えられた「θ」に基づき、「cos(2
θ)」(以下、「CDAT」という。)及び「sin
(2θ)」(以下、「SDAT」という。)を算出する
ものである。この三角関数発生回路21の詳細について
は後述する。
The trigonometric function generation circuit 21 calculates “cos (2) based on“ θ ”given from the control signal generation circuit 20.
θ) ”(hereinafter referred to as“ CDAT ”) and“ sin ”.
(2θ) ”(hereinafter referred to as“ SDAT ”). Details of the trigonometric function generation circuit 21 will be described later.

【0031】この三角関数発生回路21で算出されたC
DAT及びSDATは、フィルタ係数演算回路22に与
えられる。
The C calculated by the trigonometric function generating circuit 21
DAT and SDAT are provided to the filter coefficient calculation circuit 22.

【0032】フィルタ係数演算回路22は、制御信号発
生回路20から与えられる「Q」及び「H/L」、並び
に、三角関数発生回路21から与えられるCDAT及び
SDATに基づき、上記(8)〜(13)に示す算式に
従って、α、β、SH 又はSL 、及び1/κを算出する
ものである。
The filter coefficient calculation circuit 22 is based on “Q” and “H / L” given from the control signal generation circuit 20 and CDAT and SDAT given from the trigonometric function generation circuit 21, as described in (8) to (8). according formula shown in 13), α, β, and calculates the S H or S L, and 1 / kappa.

【0033】このフィルタ係数演算回路22で算出され
たフィルタ係数α、β、SH 又はSL 、及び1/κがデ
ジタルフィルタ回路23に供給される。
The filter coefficients α, β, SH or SL , and 1 / κ calculated by the filter coefficient calculation circuit 22 are supplied to the digital filter circuit 23.

【0034】デジタルフィルタ回路23は、図3に示し
たように構成されるものであり、フィルタ係数演算回路
22により算出されたフィルタ係数α、β、SH 又はS
L 、及び1/κにより、所定の特性を有するフィルタが
構築される。そして、入力された楽音信号に所定のフィ
ルタリングをかけて出力するものである。
The digital filter circuit 23 is configured as shown in FIG. 3, and includes the filter coefficients α, β, S H or S calculated by the filter coefficient operation circuit 22.
L and 1 / κ form a filter having predetermined characteristics. Then, the input tone signal is subjected to predetermined filtering and output.

【0035】以上のフィルタ係数の演算は、後述するデ
ジタルコントロールオシレータ64のデジタル楽音波形
発生のタイミングに同期して行なわれる。つまり、上述
した楽音情報がデジタルコントロールオシレータ64に
与えられることによりデジタル楽音波形が生成されるの
に同期して、α、β、SH 又はSL 、及び1/κが算出
され、デジタルフィルタ回路23に与えられることによ
り、フィルタ特性が時系列的に変化する。
The above calculation of the filter coefficient is performed in synchronization with the timing of digital tone waveform generation by the digital control oscillator 64 described later. That is, α, β, S H or S L , and 1 / κ are calculated in synchronization with the generation of the digital tone waveform by the application of the above-described tone information to the digital control oscillator 64, and the digital filter circuit 23, the filter characteristics change in time series.

【0036】なお、上記フィルタ係数α、β、SH 又は
L 、及び1/κが与えられることにより実現されるフ
ィルタ特性としては、ハイパス、ローパス、バンドパス
特性等がある。
The filter characteristics realized by giving the filter coefficients α, β, SH or SL , and 1 / κ include high-pass, low-pass, and band-pass characteristics.

【0037】図5は、上記デジタルフィルタ装置の三角
関数発生回路21の構成を示すブロック図である。制御
信号発生回路20は、小数部を含むパラメータθを三角
関数発生回路21に供給する。
FIG. 5 is a block diagram showing the configuration of the trigonometric function generation circuit 21 of the digital filter device. The control signal generation circuit 20 supplies the parameter θ including the decimal part to the trigonometric function generation circuit 21.

【0038】三角関数発生回路21は、関数テーブル記
憶部30と、関数テーブル補間部31とにより構成され
ている。そして、制御信号発生回路20が発生するパラ
メータθの整数部は関数テーブル記憶部30に与えら
れ、小数部は関数テーブル補間部31に与えられるよう
になっている。
The trigonometric function generating circuit 21 includes a function table storage unit 30 and a function table interpolation unit 31. Then, the integer part of the parameter θ generated by the control signal generation circuit 20 is provided to the function table storage unit 30, and the decimal part is provided to the function table interpolation unit 31.

【0039】関数テーブル記憶部30は、与えられた整
数部の値によりテーブルを索引し、所定値を関数テーブ
ル補間部31に供給する。関数テーブル補間部31は、
関数テーブル記憶部30から与えられた所定値を、パラ
メータθの小数部の値に応じて按分し、正確なCDAT
及びSDATの値を算出するものである。
The function table storage unit 30 indexes the table according to the value of the given integer part, and supplies a predetermined value to the function table interpolation unit 31. The function table interpolation unit 31
The predetermined value provided from the function table storage unit 30 is apportioned in accordance with the value of the decimal part of the parameter θ to obtain an accurate CDAT.
And SDAT values.

【0040】この場合、関数テーブル記憶部30に対数
表現した周波数をアドレスとして関数値を記憶しておく
ことにより、人間の聴感にマッチしたカットオフ周波数
の制御が容易に行なえるようになる。
In this case, the function value is stored in the function table storage unit 30 using the logarithmically expressed frequency as an address, so that the cutoff frequency that matches the human sense of hearing can be easily controlled.

【0041】図6に、正弦波を記憶した関数テーブルの
一構成例を示す。同図(A)は、三角関数の角度をリニ
ア目盛りで記憶した場合の例を示したものである。図示
するように、1オクターブ(1200セント)の間隔
は、三角関数の角度によって異なる。
FIG. 6 shows an example of the configuration of a function table storing sine waves. FIG. 7A shows an example in which the angle of the trigonometric function is stored in a linear scale. As shown, the interval of one octave (1200 cents) differs depending on the angle of the trigonometric function.

【0042】したがって、かかる関数テーブルで、人間
の聴感にマッチした制御、例えばセントによる制御を行
なおうとした場合、角度が大きくなるに連れて大きな範
囲にわたって制御をしなければならない。
Therefore, in the function table, when performing control that matches the human sense of hearing, for example, control using cents, control must be performed over a larger range as the angle increases.

【0043】そこで、本実施例では、三角関数の角度を
対数目盛りで表して関数値を記憶するようにしている。
同図(B)は、三角関数の角度を対数スケールで記憶し
た場合の例を示したものである。図示するように、1オ
クターブ(1200セント)の間隔は、三角関数の角度
に拘わらず一定である。
Therefore, in this embodiment, the angle of the trigonometric function is represented on a logarithmic scale and the function value is stored.
FIG. 9B shows an example in which the angles of the trigonometric functions are stored on a logarithmic scale. As shown, the interval of one octave (1200 cents) is constant regardless of the angle of the trigonometric function.

【0044】したがって、この関数テーブルを用いる
と、角度の大きさに拘わらず、同一範囲を操作すること
によりセントによる制御が可能になり、人間の聴感にマ
ッチした制御が行なえる。
Therefore, if this function table is used, control by cents can be performed by operating the same range regardless of the size of the angle, and control matching human perception can be performed.

【0045】また、三角関数の発生方法としては、べき
級数を演算する方法が考えられるが、その場合、sin
θ、cosθは、次式のようにして求めることができ
る。
As a method of generating a trigonometric function, a method of calculating a power series is conceivable.
θ and cos θ can be obtained as follows.

【0046】 ここで、 である。[0046] here, It is.

【0047】この三角関数発生回路21の出力CDAT
及びSDATが、フィルタ係数演算回路22に供給され
る。
The output CDAT of the trigonometric function generation circuit 21
And SDAT are supplied to the filter coefficient calculation circuit 22.

【0048】図7は、上記フィルタ係数演算回路22の
詳細な構成を示す回路図である。図において、40は加
算器である。この加算器40は、A入力及びB入力を加
算して出力するものである。
FIG. 7 is a circuit diagram showing a detailed configuration of the filter coefficient operation circuit 22. In the figure, reference numeral 40 denotes an adder. The adder 40 adds and outputs the A input and the B input.

【0049】この加算器40のB入力端子には、セレク
タ41、シフタ42及び排他的論理和ゲート(以下、
「EORゲート」という。)43が、順次接続されてい
る。
A selector 41, a shifter 42, and an exclusive OR gate (hereinafter, referred to as an OR gate)
It is called "EOR gate". ) 43 are sequentially connected.

【0050】セレクタ41は、制御回路47からの制御
信号に応じて、三角関数発生回路21が出力するSDA
T又はCDATの何れかを選択して出力するものであ
る。このセレクタ41の出力はシフタ42に供給され
る。
The selector 41 responds to a control signal from the control circuit 47 by using the SDA output from the trigonometric function generation circuit 21.
It selects and outputs either T or CDAT. The output of the selector 41 is supplied to a shifter 42.

【0051】シフタ42は、セレクタ41で選択された
SDAT又はCDATを、制御回路47が出力するSF
Tビットだけシフトするものである。このシフタ42の
出力はEORゲート43に供給される。
The shifter 42 outputs the SDAT or CDAT selected by the selector 41 to the SF
It shifts by T bits. The output of the shifter 42 is supplied to the EOR gate 43.

【0052】EORゲート43は、制御回路47が出力
するキャリ信号CINに応じて、シフタ42の出力をそ
のまま、又は反転して出力するものである。このEOR
ゲート43による反転機能と、加算器40に対するキャ
リ入力とにより、減算(2の補数加算)機能が実現され
ている。このEORゲート43の出力が加算器40のB
入力に供給される。
The EOR gate 43 outputs the output of the shifter 42 as it is or inverts it according to the carry signal CIN output from the control circuit 47. This EOR
The inversion function by the gate 43 and the carry input to the adder 40 implement a subtraction (two's complement addition) function. The output of this EOR gate 43 is
Supplied to input.

【0053】一方、上記加算器40のA入力端子には、
セレクタ44が接続されるようになっている。そして、
このセレクタ44の入力には、定数「0」、「0.
5」、及び「1」が供給されるようになっている。そし
て、制御回路47からの制御信号に応じて上記定数の何
れかを選択し、加算器40のA入力端子に供給するよう
になっている。
On the other hand, the A input terminal of the adder 40
The selector 44 is connected. And
Constants “0”, “0.
5 "and" 1 "are supplied. Then, one of the above constants is selected in accordance with a control signal from the control circuit 47 and is supplied to the A input terminal of the adder 40.

【0054】また、上記加算器40の出力は、逆数発生
器45及びセレクタ46に供給されるようになってい
る。
The output of the adder 40 is supplied to a reciprocal generator 45 and a selector 46.

【0055】逆数発生器45は、加算器40の出力の逆
数を算出するものである。この逆数発生器45は、詳細
は後述するが、加算器40から出力される係数「κ」の
逆数「1/κ」を求めるために使用される。
The reciprocal generator 45 calculates the reciprocal of the output of the adder 40. The reciprocal generator 45 is used to calculate the reciprocal “1 / κ” of the coefficient “κ” output from the adder 40, which will be described in detail later.

【0056】セレクタ46は、制御回路47からの制御
信号に応じて、加算器40の出力、又は逆数発生器45
の出力の何れかを選択して出力するものである。このセ
レクタ46の出力がデジタルフィルタ回路23に供給さ
れることになる。
The selector 46 outputs the output of the adder 40 or the reciprocal generator 45 according to a control signal from the control circuit 47.
Is selected and output. The output of the selector 46 is supplied to the digital filter circuit 23.

【0057】また、制御回路47は、制御信号発生回路
20からの「Q」、「H/L」等を入力し、このフィル
タ係数演算回路22の全体を制御する制御信号を生成す
るものである。
The control circuit 47 inputs "Q", "H / L" and the like from the control signal generation circuit 20, and generates a control signal for controlling the entire filter coefficient calculation circuit 22. .

【0058】次に、上記デジタルフィルタ装置の動作に
ついて、図8に示したフローチャートを参照しながら説
明する。なお、Qについては、説明を簡略にするため
に、Q=2n-1 (n=1,2,3,4,…)の条件を満
たすものに限定する。
Next, the operation of the digital filter device will be described with reference to the flowchart shown in FIG. Note that Q is limited to one that satisfies the condition of Q = 2 n−1 (n = 1, 2, 3, 4,...) In order to simplify the description.

【0059】先ず、外部から制御信号発生回路20に音
色情報、音域情報、或いはタッチ情報等の楽音情報が与
えられると、カットオフ周波数情報に応じたパラメータ
θが生成され、三角関数発生回路21に与えられる。こ
れにより、三角関数発生回路21は、SDAT、及びC
DATを生成する(ステップS1)。
First, when tone information such as timbre information, tone range information, or touch information is given to the control signal generation circuit 20 from the outside, a parameter θ corresponding to cutoff frequency information is generated. Given. As a result, the trigonometric function generation circuit 21 calculates SDAT and C
A DAT is generated (Step S1).

【0060】即ち、θの整数部が関数テーブル記憶部3
0に与えられ、該関数テーブル記憶部30が索引されて
所定値が読み出される。この所定値は、関数テーブル補
間部31において、θの小数部の値に応じた補間処理が
施される。これにより、sin(2θ)、つまりSDA
T、及びcos(2θ)、つまりCDATが算出され
る。
That is, the integer part of θ is stored in the function table storage 3
0, the function table storage unit 30 is indexed and a predetermined value is read. This predetermined value is subjected to an interpolation process in the function table interpolation unit 31 according to the value of the decimal part of θ. Thereby, sin (2θ), that is, SDA
T and cos (2θ), that is, CDAT are calculated.

【0061】次いで、制御信号発生回路20は、パラメ
ータQ及びH/Lをフィルタ係数演算回路22に出力す
る(ステップS2)。これにより、パラメータQ及びH
/Lは、フィルタ係数演算回路22の制御回路47に設
定され、フィルタ係数を演算するための種々の制御信号
を生成して出力する。
Next, the control signal generation circuit 20 outputs the parameters Q and H / L to the filter coefficient calculation circuit 22 (Step S2). Thereby, the parameters Q and H
/ L is set in the control circuit 47 of the filter coefficient calculation circuit 22, and generates and outputs various control signals for calculating the filter coefficient.

【0062】次いで、フィルタ係数α、β、1/κを求
める演算が行なわれる(ステップS3)。
Next, an operation for obtaining the filter coefficients α, β, and 1 / κ is performed (step S3).

【0063】先ず、フィルタ係数αは、上記式(8)で
示したように、「α=−CDAT」で求められる。即
ち、制御回路47は、セレクタ41を制御することによ
り、CDATを選択し、シフタ42を制御してノンシフ
トでそのまま通過させる。また、キャリ信号CINをア
クティブにする。これにより、データCDATはEOR
ゲート43で反転されて加算器40のB入力に供給され
る。
First, the filter coefficient α is obtained by “α = −CDAT” as shown in the above equation (8). That is, the control circuit 47 selects the CDAT by controlling the selector 41 and controls the shifter 42 to pass the CDAT without any shift. Further, the carry signal CIN is activated. As a result, the data CDAT becomes EOR
The signal is inverted at the gate 43 and supplied to the B input of the adder 40.

【0064】一方、制御回路47は、セレクタ44を制
御して「0」を選択する。これにより、加算器40のA
入力には「0」が供給されることになる。
On the other hand, the control circuit 47 controls the selector 44 to select “0”. Thereby, A of the adder 40
"0" will be supplied to the input.

【0065】したがって、加算器40では、「0+CD
ATの反転+1」、つまり「0−CDAT」が実行さ
れ、その出力には「−CDAT」が得られる。この際、
制御回路47は、セレクタ46を制御して加算器40の
出力を通過させるので、フィルタ係数αとして「−CD
AT」が算出される。
Therefore, in the adder 40, “0 + CD
"AT inversion + 1", that is, "0-CDAT" is executed, and "-CDAT" is obtained at the output. On this occasion,
The control circuit 47 controls the selector 46 to pass the output of the adder 40.
AT ”is calculated.

【0066】フィルタ係数βは、上記式(9)で示した
ように、「β=1−SDAT/2Q」で求められる。即
ち、制御回路47は、セレクタ41を制御することによ
り、SDATを選択して通過させる。また、シフタ42
のシフト信号SFTとして「Q」を与えることにより、
Qビットだけダウンシフトし、「2Q」で除算するとい
う機能を実現している。また、キャリ信号CINをアク
ティブにする。これにより、データSDATはEORゲ
ート43で反転されて加算器40のB入力に供給され
る。
The filter coefficient β is obtained by “β = 1−SDAT / 2Q” as shown in the above equation (9). That is, the control circuit 47 controls the selector 41 to select and pass the SDAT. The shifter 42
By giving “Q” as the shift signal SFT of
A function of shifting down by Q bits and dividing by "2Q" is realized. Further, the carry signal CIN is activated. As a result, the data SDAT is inverted by the EOR gate 43 and supplied to the B input of the adder 40.

【0067】一方、制御回路47は、セレクタ44を制
御して「1」を選択する。これにより、加算器40のA
入力には「1」が供給されることになる。
On the other hand, the control circuit 47 controls the selector 44 to select “1”. Thereby, A of the adder 40
"1" will be supplied to the input.

【0068】したがって、加算器40では、「1+SD
AT/2Qの反転+1」、つまり「1−SDAT/2
Q」が実行され、出力される。この際、制御回路47
は、セレクタ46を制御して加算器40の出力を通過さ
せるので、フィルタ係数βとして「1−SDAT/2
Q」が算出される。
Therefore, in the adder 40, “1 + SD
AT / 2Q inversion +1 ", that is," 1-SDAT / 2
Q "is executed and output. At this time, the control circuit 47
Controls the selector 46 to allow the output of the adder 40 to pass, so that the filter coefficient β is “1-SDAT / 2
Q ”is calculated.

【0069】フィルタ係数1/κは、先ずκを求めるこ
とにより行なわれる。κは、上記式(12)で示したよ
うに、「κ=1+SDAT/2Q」で求められる。即
ち、制御回路47は、セレクタ41を制御することによ
り、SDATを選択して通過させる。また、シフタ42
のシフト信号SFTとして「Q」を与えることにより、
Qビットだけダウンシフトし、「2Q」で除算するとい
う機能を実現している。また、キャリ信号CINをノン
アクティブにする。これにより、データSDATはEO
Rゲート43をそのまま通過して加算器40のB入力に
供給される。
The filter coefficient 1 / κ is calculated by first obtaining κ. κ is determined by “κ = 1 + SDAT / 2Q” as shown in the above equation (12). That is, the control circuit 47 controls the selector 41 to select and pass the SDAT. The shifter 42
By giving “Q” as the shift signal SFT of
A function of shifting down by Q bits and dividing by "2Q" is realized. Also, carry signal CIN is made non-active. As a result, the data SDAT becomes EO
The signal passes through the R gate 43 as it is and is supplied to the B input of the adder 40.

【0070】一方、制御回路47は、セレクタ44を制
御して「1」を選択する。これにより、加算器40のA
入力には「1」が供給されることになる。
On the other hand, the control circuit 47 controls the selector 44 to select “1”. Thereby, A of the adder 40
"1" will be supplied to the input.

【0071】したがって、加算器40では、「1+SD
AT/2Q」が実行され、出力される。この際、制御回
路47は、セレクタ46を制御して逆数発生器45の出
力を通過させるので、フィルタ係数1/κとして「1/
κ=1/(1+SDAT/2Q)」が算出される。
Therefore, in the adder 40, “1 + SD
AT / 2Q "is executed and output. At this time, since the control circuit 47 controls the selector 46 to pass the output of the reciprocal generator 45, the control circuit 47 sets the filter coefficient 1 / κ to “1 /
κ = 1 / (1 + SDAT / 2Q) ”is calculated.

【0072】次いで、制御信号発生回路20から出力さ
れるパラメータ「H/L」が「H」つまりハイパスフィ
ルタ指定であるか、「L」つまりローパスフィルタ指定
であるかが調べられる(ステップS4)。
Next, it is checked whether the parameter "H / L" output from the control signal generation circuit 20 is "H", that is, the high-pass filter is specified, or "L", that is, the low-pass filter is specified (step S4).

【0073】そして、「H」であることが判断される
と、フィルタ係数SH が求められる(ステップS5)。
即ち、フィルタ係数SH は、上記式(10)で示したよ
うに、「SH =(1+CDAT)/2」で求められる。
即ち、制御回路47は、セレクタ41を制御することに
より、CDATを選択して通過させる。また、シフタ4
2のシフト信号SFTとして「1」を与えることによ
り、1ビットだけダウンシフトし、「2」で除算すると
いう機能を実現している。
If it is determined that the value is "H", a filter coefficient SH is obtained (step S5).
That is, the filter coefficient S H is obtained by “S H = (1 + CDAT) / 2” as shown in the above equation (10).
That is, the control circuit 47 controls the selector 41 to select and pass the CDAT. Also, shifter 4
By providing “1” as the shift signal SFT of 2, a function of downshifting by one bit and dividing by “2” is realized.

【0074】また、キャリ信号CINをノンアクティブ
にする。これにより、データCDATはEORゲート4
3をそのまま通過して加算器40のB入力に供給され
る。
The carry signal CIN is made non-active. As a result, the data CDAT is stored in the EOR gate 4
3 and is supplied to the B input of the adder 40 as it is.

【0075】一方、制御回路47は、セレクタ44を制
御して「0.5」を選択する。これにより、加算器40
のA入力には「0.5」が供給されることになる。
On the other hand, the control circuit 47 controls the selector 44 to select “0.5”. Thereby, the adder 40
"0.5" is supplied to the A input.

【0076】したがって、加算器40では、「0.5+
CDAT/2」が実行され、出力される。この際、制御
回路47は、セレクタ46を制御して加算器40の出力
を通過させるので、フィルタ係数SH として「SH
(1+CDAT)/2」が算出される。
Therefore, in the adder 40, “0.5+
CDAT / 2 "is executed and output. At this time, since the control circuit 47 controls the selector 46 to pass the output of the adder 40, the filter coefficient S H is set to “S H =
(1 + CDAT) / 2 "is calculated.

【0077】一方、上記ステップS4で、「L」である
ことが判断されると、フィルタ係数SL が求められる
(ステップS6)。フィルタ係数SL は、上記式(1
1)で示したように、「SL =(1−CDAT)/2」
で求められる。即ち、制御回路47は、セレクタ41を
制御することにより、CDATを選択して通過させる。
また、シフタ42のシフト信号SFTとして「1」を与
えることにより、1ビットだけダウンシフトし、「2」
で除算するという機能を実現している。また、キャリ信
号CINをアクティブにする。これにより、データCD
ATはEORゲート43で反転されて加算器40のB入
力に供給される。
On the other hand, if it is determined at step S4 that the value is "L", a filter coefficient SL is obtained (step S6). The filter coefficient SL is calculated by the above equation (1).
As shown in 1), "S L = (1-CDAT) / 2 "
Is required. That is, the control circuit 47 controls the selector 41 to select and pass the CDAT.
Also, by giving “1” as the shift signal SFT of the shifter 42, the shift down is performed by one bit and “2”
The function of dividing by is realized. Further, the carry signal CIN is activated. Thereby, the data CD
The AT is inverted by the EOR gate 43 and supplied to the B input of the adder 40.

【0078】一方、制御回路47は、セレクタ44を制
御して「0.5」を選択する。これにより、加算器40
のA入力には「0.5」が供給されることになる。
On the other hand, the control circuit 47 controls the selector 44 to select “0.5”. Thereby, the adder 40
"0.5" is supplied to the A input.

【0079】したがって、加算器40では、「0.5+
CDAT/2の反転+1」、つまり「0.5−CDAT
/2」が実行され、出力される。この際、制御回路47
は、セレクタ46を制御して加算器40の出力を通過さ
せるので、フィルタ係数SLとして「(1−CDAT)
/2」が算出される。
Therefore, in the adder 40, “0.5+
Inversion of CDAT / 2 + 1 ", that is," 0.5-CDAT
/ 2 ”is executed and output. At this time, the control circuit 47
Since passing the output of the adder 40 controls the selector 46, "as the filter coefficient S L (1-CDAT)
/ 2 ”is calculated.

【0080】以上のようにして算出されたフィルタ係数
α、β、1/κ、SH 又はSL は、該フィルタ係数演算
回路22から、デジタルフィルタ回路23に送出される
(ステップS7)。
[0080] filter coefficients calculated as above α, β, 1 / κ, S H or S L from the filter coefficient calculation circuit 22, is sent to the digital filter circuit 23 (step S7).

【0081】これにより、デジタルフィルタ回路23
は、所定のフィルタ特性を有するデジタルフィルタ装置
として機能し、所定の音色を有する楽音信号を発生する
ことになる。
Thus, the digital filter circuit 23
Functions as a digital filter device having a predetermined filter characteristic, and generates a tone signal having a predetermined tone color.

【0082】なお、上記実施例では、1/κの演算を行
なうために逆数発生器45を使用しているが、カットオ
フ周波数の充分低い部分では、1/κはβで近似するこ
とができる。
In the above embodiment, the reciprocal generator 45 is used to perform the calculation of 1 / κ. However, in a portion where the cutoff frequency is sufficiently low, 1 / κ can be approximated by β. .

【0083】即ち、上記(12)式において、 とすると、 κ=1−X となる。That is, in the above equation (12), Then, κ = 1−X.

【0084】さらに、 1−Xn =(1−X)(1+X+X2 +…+Xn-1 ) であるから、Xが充分に小さい部分では、 と近似することができる。この近似をXの一次の項まで
で打ち切れば となり、1/κをβで近似できることになる。
Further, since 1−X n = (1−X) (1 + X + X 2 +... + X n−1 ), where X is sufficiently small, Can be approximated. If this approximation is truncated to the first order of X, Thus, 1 / κ can be approximated by β.

【0085】このように、1/κをβで近似する場合
は、逆数発生器45を使用することなく、フィルタ係数
演算回路を構成できる。このような構成によれば、フィ
ルタ係数演算回路が非常に簡単な構成となるという効果
がある。また、上記実施例では、1/Qをダウンシフト
によって実現しているが、これを演算(除算)によって
求めることでQの連続的な制御が可能となる。
As described above, when 1 / κ is approximated by β, a filter coefficient operation circuit can be configured without using the reciprocal generator 45. According to such a configuration, there is an effect that the filter coefficient calculation circuit has a very simple configuration. Further, in the above-described embodiment, 1 / Q is realized by downshifting, but by obtaining this by calculation (division), continuous control of Q becomes possible.

【0086】次に、上記のデジタルフィルタ装置を適用
した電子楽器の一実施例について説明する。図1は、本
発明に係る電子楽器の全体的な構成を概略的に示すブロ
ック図である。
Next, an embodiment of an electronic musical instrument to which the above digital filter device is applied will be described. FIG. 1 is a block diagram schematically showing an overall configuration of an electronic musical instrument according to the present invention.

【0087】図において、50はキースイッチであり、
演奏者の押鍵・離鍵動作に連動して開閉するものであ
る。このキースイッチ50の出力は、タッチセンサ51
に供給されるようになっている。
In the figure, reference numeral 50 denotes a key switch.
It opens and closes in conjunction with the player's key press and key release operations. The output of the key switch 50 is
It is supplied to.

【0088】タッチセンサ51は、押鍵の強さ(速さ)
を検出する周知のものである。このタッチセンサ51の
出力が、タッチデータとしてCPU53を介してトーン
ジェネレータ55に供給される。
The touch sensor 51 has a key depression strength (speed).
Is known. The output of the touch sensor 51 is supplied as touch data to the tone generator 55 via the CPU 53.

【0089】52はパネルスイッチであって、該電子楽
器を制御する各種スイッチ、例えばリズム選択スイッ
チ、音色選択スイッチ、音量選択スイッチや表示器等が
設けられている。
Reference numeral 52 denotes a panel switch provided with various switches for controlling the electronic musical instrument, for example, a rhythm selection switch, a timbre selection switch, a volume selection switch, a display, and the like.

【0090】53は中央処理装置(CPU)であり、メ
モリ54に記憶されている制御プログラムに従って当該
電子楽器の各部を制御するものである。
Reference numeral 53 denotes a central processing unit (CPU) which controls each section of the electronic musical instrument according to a control program stored in the memory 54.

【0091】上記メモリ54は、例えばリードオンリメ
モリ(ROM)と、ランダムアクセスメモリ(RAM)
とにより構成される。ROMには、上記制御プログラム
の他、演奏データ、音色データ、その他の種々の固定デ
ータが記憶される。RAMは、CPU53が使用するレ
ジスタ、フラグ等が定義されるとともに、CPU53の
ワーク領域として使用されるものである。
The memory 54 includes, for example, a read only memory (ROM) and a random access memory (RAM)
It is composed of The ROM stores performance data, tone color data, and various other fixed data in addition to the control program. The RAM defines registers and flags used by the CPU 53 and is used as a work area of the CPU 53.

【0092】55はトーンジェネレータであり、波形メ
モリ60、フィルタ係数発生装置61、デジタルコント
ロールフィルタ(DCF)23、デジタルコントロール
アンプ(DCA)63、デジタルコントロールオシレー
タ(DCO)64、デジタルエンベロープジェネレータ
(DEG)65及びデジタルエンベロープジェネレータ
(DEG)66により構成される。
Reference numeral 55 denotes a tone generator, which is a waveform memory 60, a filter coefficient generator 61, a digital control filter (DCF) 23, a digital control amplifier (DCA) 63, a digital control oscillator (DCO) 64, and a digital envelope generator (DEG). 65 and a digital envelope generator (DEG) 66.

【0093】波形メモリ60には、各音色に対応した楽
音波形データが記憶される。この波形メモリ60に記憶
された楽音波形データがデジタルコントロールフィルタ
23でフィルタリングされて出力される。
The waveform memory 60 stores tone waveform data corresponding to each tone color. The tone waveform data stored in the waveform memory 60 is filtered by the digital control filter 23 and output.

【0094】フィルタ係数発生装置61は、CPU53
及びデジタルエンベロープジェネレータ66により制御
されるもので、上述したデジタルフィルタ装置の制御信
号発生回路20、三角関数発生回路21及びフィルタ係
数演算回路22に対応するものである。
The filter coefficient generator 61 includes a CPU 53
And is controlled by the digital envelope generator 66, and corresponds to the control signal generation circuit 20, the trigonometric function generation circuit 21, and the filter coefficient calculation circuit 22 of the digital filter device described above.

【0095】上記デジタルエンベロープジェネレータ6
6は、カットオフ周波数を制御するために、音色、音
域、タッチに応じたエンベロープ信号を生成してフィル
タ係数発生装置61に供給するものである。
The digital envelope generator 6
Numeral 6 is for generating an envelope signal corresponding to a timbre, a tone range, and a touch in order to control a cutoff frequency and supplying the envelope signal to a filter coefficient generator 61.

【0096】このフィルタ係数発生装置の構成及び動作
は、図4を参照して既に説明したので、ここでは説明を
省略する。このフィルタ係数発生回路61が出力するフ
ィルタ係数α、β、1/κ、SH 又はSL がデジタルコ
ントロールフィルタ23に供給される。
Since the configuration and operation of this filter coefficient generator have already been described with reference to FIG. 4, the description is omitted here. Filter coefficient output from the filter coefficient generating circuit 61 α, β, 1 / κ , S H or S L is supplied to the digital control filter 23.

【0097】デジタルコントロールフィルタ23(図4
のデジタルフィルタ回路23に対応するものである)
は、上述したように、例えば図3に示したように構成さ
れる。このデジタルコントロールフィルタ23は、フィ
ルタ係数発生装置61からのフィルタ係数に応じて、波
形メモリ60から読み出された楽音波形データをフィル
タリングし、デジタルコントロールアンプ63に出力す
るものである。このデジタルコントロールフィルタ23
の構成及び動作も既に説明したので、ここでは説明を省
略する。
The digital control filter 23 (FIG. 4)
Corresponding to the digital filter circuit 23).
Is configured, for example, as shown in FIG. 3 as described above. The digital control filter 23 filters the tone waveform data read from the waveform memory 60 according to the filter coefficient from the filter coefficient generator 61 and outputs the filtered data to the digital control amplifier 63. This digital control filter 23
Has already been described, and the description is omitted here.

【0098】デジタルコントロールアンプ63は、デジ
タルコントロールフィルタ23からの出力波形とデジタ
ルエンベロープジェネレータ65の出力とを乗算するこ
とにより、振幅の制御を行なうものである。
The digital control amplifier 63 controls the amplitude by multiplying the output waveform from the digital control filter 23 by the output of the digital envelope generator 65.

【0099】デジタルエンベロープジェネレータ65
は、CPU53からの制御により、デジタルコントロー
ルフィルタ23が出力するデジタル楽音波形の振幅を制
御するエンベロープ信号を生成するものである。
Digital envelope generator 65
Generates an envelope signal for controlling the amplitude of the digital musical tone waveform output from the digital control filter 23 under the control of the CPU 53.

【0100】このデジタルコントロールアンプ63が出
力するデジタル楽音信号が、トーンジェネレータ55の
出力としてD/A変換器56に供給される。
The digital tone signal output from the digital control amplifier 63 is supplied to the D / A converter 56 as the output of the tone generator 55.

【0101】D/A変換器56は、入力されたデジタル
楽音信号をアナログ楽音信号に変換するものである。こ
のD/A変換器56の出力は、サウンドシステム57に
供給される。
The D / A converter 56 converts an input digital tone signal into an analog tone signal. The output of the D / A converter 56 is supplied to a sound system 57.

【0102】サウンドシステム57は、例えばスピーカ
により構成されるものである。サウンドシステム57
は、電気信号を音響信号に変換する周知のものである。
The sound system 57 is composed of, for example, a speaker. Sound system 57
Is a well-known device for converting an electric signal into an acoustic signal.

【0103】なお、上記タッチセンサ51、パネルスイ
ッチ52、CPU53、メモリ54及びトーンジェネレ
ータ55は、システムバス58により相互に接続されて
いる。
The touch sensor 51, panel switch 52, CPU 53, memory 54, and tone generator 55 are mutually connected by a system bus 58.

【0104】次に、上記のような構成において、本電子
楽器の動作を説明する。
Next, the operation of the electronic musical instrument having the above configuration will be described.

【0105】キースイッチ50がオンにされると、該キ
ースイッチ50からの信号がタッチセンサ51に伝えら
れ、タッチデータが生成される。このタッチデータは、
オンにされたキースイッチ50のキーナンバとともにC
PU53に送出される。
When the key switch 50 is turned on, a signal from the key switch 50 is transmitted to the touch sensor 51, and touch data is generated. This touch data is
With the key number of the key switch 50 turned on, C
It is sent to PU53.

【0106】CPU53は、パネルスイッチ52で指定
された音色、音量情報とともに、上記キーナンバ、タッ
チデータ等をトーンジェネレータ55に送出する。
The CPU 53 sends the key number, touch data and the like to the tone generator 55 together with the tone and volume information designated by the panel switch 52.

【0107】トーンジェネレータ55は、指定された音
色に応じた楽音波形データを、デジタルコントロールオ
シレータ64より出力されるアドレスに従って、波形メ
モリ60から読み出し、デジタルコントロールフィルタ
23に与える。
The tone generator 55 reads out the tone waveform data corresponding to the designated tone color from the waveform memory 60 in accordance with the address output from the digital control oscillator 64, and supplies the read data to the digital control filter 23.

【0108】一方、指定された音色及びデジタルエンベ
ロープジェネレータ66の出力に応じたフィルタ係数が
フィルタ係数発生装置61により発生され、デジタルコ
ントロールフィルタ23に与えられる。これにより、デ
ジタルコントロールフィルタ23は所定のフィルタ特性
で楽音波形データをフィルタリングし、デジタルコント
ロールアンプ63に送出する。そして、デジタルコント
ロールアンプ63でデジタルエンベロープジネレータ6
5の出力に応じた増幅が行なわれ、D/A変換器56に
送出される。
On the other hand, a filter coefficient corresponding to the designated timbre and the output of the digital envelope generator 66 is generated by the filter coefficient generator 61 and supplied to the digital control filter 23. As a result, the digital control filter 23 filters the tone waveform data with predetermined filter characteristics, and sends out the filtered data to the digital control amplifier 63. Then, the digital envelope amplifier 6 is controlled by the digital control amplifier 63.
The signal is amplified according to the output of No. 5 and sent to the D / A converter 56.

【0109】そして、D/A変換器56によりアナログ
信号に変換され、サウンドシステム57から放音される
ことになる。
Then, the signal is converted into an analog signal by the D / A converter 56 and is emitted from the sound system 57.

【0110】なお、上記実施例では、トーンジェネレー
タ55の発音チャネル数には言及していないが、単一チ
ャネルであっても複数チャネルであっても適用できる。
複数チャネルの場合は、同一ハードウエアをチャネル数
分だけ備える構成であっても良いが、ハードウエアの節
減という観点から、時分割で動作する複数チャネルを構
成することが望ましい。
Although the above embodiment does not mention the number of sounding channels of the tone generator 55, the present invention can be applied to a single channel or a plurality of channels.
In the case of a plurality of channels, the same hardware may be provided for the number of channels, but from the viewpoint of hardware saving, it is desirable to configure a plurality of channels that operate in a time-division manner.

【0111】複数チャネルで構成される場合は、上記フ
ィルタ係数に応じたフィルタ特性は、各チャネル単位で
制御される。
In the case of a configuration including a plurality of channels, the filter characteristics corresponding to the above filter coefficients are controlled for each channel.

【0112】[0112]

【発明の効果】以上詳述したように、この発明によれ
ば、フィルタ係数を記憶するための膨大なメモリを必要
としないにも拘わらず、種々のフィルタ係数を発生して
連続的にデジタルフィルタ装置に与えることにより種々
の音色の楽音信号を発生することのできる電子楽器を提
供することができる。
As described above in detail, according to the present invention, various filter coefficients are generated and a digital filter is continuously generated, although an enormous memory for storing the filter coefficients is not required. It is possible to provide an electronic musical instrument capable of generating musical tone signals of various timbres by providing the electronic musical instrument to the apparatus.

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

【図1】本発明の電子楽器の全体的な構成を概略的に示
すブロック図である。
FIG. 1 is a block diagram schematically showing an overall configuration of an electronic musical instrument of the present invention.

【図2】デジタルフィルタ回路の基本的構成を示す図で
ある。
FIG. 2 is a diagram illustrating a basic configuration of a digital filter circuit.

【図3】本発明に適用するデジタルコントロールフィル
タの実施例の構成を示す図である。
FIG. 3 is a diagram showing a configuration of an embodiment of a digital control filter applied to the present invention.

【図4】本発明に適用するデジタルフィルタ装置の一実
施例の構成を示すブロック図である。
FIG. 4 is a block diagram showing a configuration of an embodiment of a digital filter device applied to the present invention.

【図5】図4における三角関数発生回路の構成を示すブ
ロック図である。
FIG. 5 is a block diagram illustrating a configuration of a trigonometric function generation circuit in FIG. 4;

【図6】図4における三角関数発生回路の関数テーブル
の構成を示す図である。
6 is a diagram showing a configuration of a function table of the trigonometric function generation circuit in FIG.

【図7】図4におけるフィルタ係数演算回路の構成を示
す回路図である。
FIG. 7 is a circuit diagram showing a configuration of a filter coefficient operation circuit in FIG. 4;

【図8】本発明に適用するデジタルフィルタ装置の実施
例の動作を示すフローチャートである。
FIG. 8 is a flowchart showing the operation of the embodiment of the digital filter device applied to the present invention.

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

20 制御信号発生回路(制御信号発生手段) 21 三角関数発生回路(三角関数発生手段) 22 フィルタ係数演算回路(フィルタ係数演算手段) 23 デジタルコントロールフィルタ(デジタルフィル
タ手段) 30 関数テーブル記憶部(記憶手段) 60 波形メモリ(デジタル波形発生手段) 61 フィルタ係数発生装置(フィルタ係数発生手段) 63 デジタルコントロールアンプ(振幅制御手段) 64 デジタルコントロールオシレータ(デジタル波形
発生手段) 65 デジタルエンベロープジェネレータ(振幅制御手
段) 66 デジタルエンベロープジェネレータ(フィルタ係
数発生手段) θ 第1のパラメータ Q,H/L 第2のパラメータ
Reference Signs List 20 control signal generation circuit (control signal generation means) 21 trigonometric function generation circuit (trigonometric function generation means) 22 filter coefficient calculation circuit (filter coefficient calculation means) 23 digital control filter (digital filter means) 30 function table storage section (storage means) 60) Waveform memory (digital waveform generating means) 61 Filter coefficient generator (filter coefficient generating means) 63 Digital control amplifier (amplitude controlling means) 64 Digital control oscillator (digital waveform generating means) 65 Digital envelope generator (amplitude controlling means) 66 Digital envelope generator (filter coefficient generating means) θ First parameter Q, H / L Second parameter

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 入力されるデジタル楽音信号に対して所
定のフィルタ演算を施しフィルタリングされたデジタル
楽音信号を出力するためのデジタルフィルタ手段と、 該デジタルフィルタ手段のフィルタ特性を制御するため
の第1及び第2のパラメータを発生する制御信号発生手
段と、 三角関数値を記憶する記憶手段であって前記第1のパラ
メータの整数部の値に基づき三角関数値を発生するため
の三角関数記憶手段と、 該三角関数記憶手段から発生された前記三角関数値を前
記第1のパラメータの少数部の値に応じて補間する三角
関数補間手段と、 該三角関数補間手段からの補間された三角関数値および
前記第2のパラメータに基づきフィルタ係数を演算する
フィルタ係数演算手段と、を備え、 前記演算により前記フィルタ係数を時間的に変化させる
ことにより前記デジタルフィルタ手段のフィルタ特性を
変化させ楽音信号の音色を制御する、ことを特徴とする
デジタルフィルタ装置。
1. Digital filter means for applying a predetermined filter operation to an input digital tone signal to output a filtered digital tone signal, and a first filter means for controlling filter characteristics of the digital filter means. A control signal generating means for generating a second parameter; and a storage means for storing a trigonometric function value, the trigonometric function storing means for generating a trigonometric function value based on a value of an integer part of the first parameter. Trigonometric function interpolation means for interpolating the trigonometric function value generated from the trigonometric function storage means according to the value of the decimal part of the first parameter; Filter coefficient calculating means for calculating a filter coefficient based on the second parameter; Controlling the tone color of a musical tone signal filter characteristics by changing the digital filter means by reduction, the digital filter device, characterized in that.
【請求項2】 前記第1のパラメータは、前記デジタル
フィルタ手段のカットオフ周波数に対応するパラメータ
であることを特徴とする請求項1記載のデジタルフィル
タ装置。
2. The digital filter device according to claim 1, wherein the first parameter is a parameter corresponding to a cutoff frequency of the digital filter.
【請求項3】 前記第2のパラメータは、前記デジタル
フィルタ手段のフィルタ特性をハイパス、ローパス、バ
ンドパス特性とするためのパラメータであることを特徴
とする請求項1記載のデジタルフィルタ装置。
3. The digital filter device according to claim 1, wherein the second parameter is a parameter for setting the filter characteristics of the digital filter means to high-pass, low-pass, and band-pass characteristics.
【請求項4】 前記第2のパラメータは、前記デジタル
フィルタ手段のフィルタ特性のうちの共振特性を制御す
るためのパラメータであることを特徴とする請求項1記
載のデジタルフィルタ装置。
4. The digital filter device according to claim 1, wherein said second parameter is a parameter for controlling a resonance characteristic among filter characteristics of said digital filter means.
【請求項5】 前記三角関数記憶手段は、正弦関数から
なる三角関数値を記憶する記憶手段であることを特徴と
する請求項1記載のデジタルフィルタ装置。
5. The digital filter device according to claim 1, wherein said trigonometric function storage means is a storage means for storing a trigonometric function value composed of a sine function.
【請求項6】 前記三角関数記憶手段のアドレスは対数
で表したカットオフ周波数に対応し、該対数で表したカ
ットオフ周波数に対応する三角関数値を各アドレスに記
憶することを特徴とする請求項1記載のデジタルフィル
タ装置。
6. An address of the trigonometric function storage means corresponds to a logarithmic cutoff frequency, and a trigonometric function value corresponding to the logarithmic cutoff frequency is stored in each address. Item 3. The digital filter device according to Item 1.
【請求項7】 前記フィルタ係数は、 α=−cos(2θ) β=2−κ=1−sin(2θ)/2Q SH =〔1+cos(2θ)〕/2 SL =〔1−cos(2θ)〕/2 κ=1+sin(2θ)/2Q であり、ここで、 θ=π×fc /Fs で表され、fc
はカットオフ周波数、Fs はサンプリング周波数、Q
は共振特性の制御パラメータ、であることを特徴とする
請求項1記載のデジタルフィルタ装置。
Wherein said filter coefficients, α = -cos (2θ) β = 2-κ = 1-sin (2θ) / 2Q S H = [1 + cos (2θ)] / 2 S L = [1-cos ( 2θ)] / 2 κ = 1 + sin (2θ) / 2Q, where θ = π × fc / Fs, and fc
Is the cutoff frequency, Fs is the sampling frequency, Q
The digital filter device according to claim 1, wherein is a control parameter of a resonance characteristic.
JP25616897A 1997-09-05 1997-09-05 Digital filter device and digital filter method Expired - Fee Related JP3217739B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25616897A JP3217739B2 (en) 1997-09-05 1997-09-05 Digital filter device and digital filter method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25616897A JP3217739B2 (en) 1997-09-05 1997-09-05 Digital filter device and digital filter method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP3210347A Division JP2779983B2 (en) 1991-07-29 1991-07-29 Electronic musical instrument

Publications (2)

Publication Number Publication Date
JPH1097252A true JPH1097252A (en) 1998-04-14
JP3217739B2 JP3217739B2 (en) 2001-10-15

Family

ID=17288860

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25616897A Expired - Fee Related JP3217739B2 (en) 1997-09-05 1997-09-05 Digital filter device and digital filter method

Country Status (1)

Country Link
JP (1) JP3217739B2 (en)

Also Published As

Publication number Publication date
JP3217739B2 (en) 2001-10-15

Similar Documents

Publication Publication Date Title
US5270954A (en) Filter device and electronic musical instrument using the filter device
EP0218912B1 (en) Special effects device for an electronic musical instrument
JPH079588B2 (en) Musical sound generator
JP4076887B2 (en) Vocoder device
EP0454047A2 (en) Tone generation apparatus
JP2779983B2 (en) Electronic musical instrument
JPH03282498A (en) Musical sound generating device
JP2663496B2 (en) Signal interpolator for musical tone signal generator
JP3217739B2 (en) Digital filter device and digital filter method
JPS6227397B2 (en)
JPH0422519B2 (en)
JPH0131638B2 (en)
JP2623943B2 (en) A resonance effect device for musical sound signals.
JP3538908B2 (en) Electronic musical instrument
JP2596154B2 (en) Musical sound wave generating apparatus and musical sound wave generating method
JPH05249954A (en) Effect giving device
JPH0243196B2 (en)
JP2990897B2 (en) Sound source device
JPS61110199A (en) Musical sound signal generator
JP2555732B2 (en) Music signal synthesis method
JP3085801B2 (en) Modulation signal generator
JPH08123410A (en) Sound effect adding device of electronic musical instrument
JPH0519768A (en) Musical tone synthesis device
JPH0863154A (en) Electronic musical instrument having localized movement feeling reproducing function
JPH0640267B2 (en) Digital filter device for tone signals

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070803

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080803

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090803

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees