JP2699287B2 - Envelope generator - Google Patents

Envelope generator

Info

Publication number
JP2699287B2
JP2699287B2 JP2025019A JP2501990A JP2699287B2 JP 2699287 B2 JP2699287 B2 JP 2699287B2 JP 2025019 A JP2025019 A JP 2025019A JP 2501990 A JP2501990 A JP 2501990A JP 2699287 B2 JP2699287 B2 JP 2699287B2
Authority
JP
Japan
Prior art keywords
envelope
status
data
value
tilt
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2025019A
Other languages
Japanese (ja)
Other versions
JPH03230198A (en
Inventor
洋二 金子
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2025019A priority Critical patent/JP2699287B2/en
Publication of JPH03230198A publication Critical patent/JPH03230198A/en
Application granted granted Critical
Publication of JP2699287B2 publication Critical patent/JP2699287B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】 [発明の技術分野] この発明はエンベロープ発生装置に関する。Description: TECHNICAL FIELD The present invention relates to an envelope generating device.

[従来技術とその問題点] 従来の代表的なエンベロープ発生装置として、エンベ
ロープの全体をアタックやディケイ等の複数のセグメン
ト(ステータス)で構成し、ステータスごとにエンベロ
ープ波形を定めるパラメータであるレート(傾き)とレ
ベル(目標値)を用意し、動作時にレートとレベルを用
いてエンベロープを演算するレート・レベル方式のエン
ベロープ発生装置が知られている。この方式のエンベロ
ープ発生装置では、発生すべきエンベロープ波形(関
数)を、ステータス、レート、レベルで定義できるの
で、記憶容量が少なくてすむ利点、ユーザーにおけるエ
ンベロープのプログラムが容易となる利点、エンベロー
プ発生装置の構成が簡単になる利点等がある。
[Prior art and its problems] As a typical conventional envelope generator, the entire envelope is composed of a plurality of segments (status) such as an attack and a decay, and a rate (slope) which is a parameter for defining an envelope waveform for each status. ) And a level (target value) are prepared, and a rate-level type envelope generating apparatus that calculates an envelope using the rate and the level during operation is known. In this type of envelope generator, the envelope waveform (function) to be generated can be defined by status, rate, and level, so that the storage capacity can be reduced, the user can easily program the envelope, and the envelope generator can be used. Has the advantage of simplifying the configuration.

反面、生成されるエンベロープ波形が、第8図に直線
エンベロープ(a)、指数エンベロープ(b)として例
示するようにステータスの切換りを境として折れ線状に
なり、自然さを欠くという大きな問題を残している。即
ち、自然楽器音では、その振動の大きさは急には変化せ
ず、第9図(a)、(b)に夫々減衰音形と持続音形の
エンベロープ形状を例示するように、その音量エンベロ
ープもなめらかに変化すると予想され、更に、音量エン
ベロープだけでなく、音色エンベロープやピッチエンベ
ロープも、自然楽器音では一般になめらかに変化すると
考えられるが、従来のエンベロープ発生装置ではこのよ
うな自然楽器音の特徴をもったエンベロープを発生する
ことができない。
On the other hand, as shown in FIG. 8, the generated envelope waveform becomes a polygonal line at the boundary of status switching as exemplified by the linear envelope (a) and the exponential envelope (b), leaving a serious problem of lack of naturalness. ing. That is, in the case of a natural instrument sound, the magnitude of the vibration does not change suddenly, and the volume of the sound is increased as illustrated in FIGS. 9 (a) and 9 (b), which illustrate the envelope shapes of the damped sound form and the sustained sound form, respectively. The envelope is expected to change smoothly, and not only the volume envelope, but also the timbre envelope and pitch envelope are generally considered to change smoothly with natural instrument sounds. It cannot generate a characteristic envelope.

[発明の目的] したがって、この発明の目的は、なめらかに変化する
特性をもつエンベロープを生成可能な電子楽器のエンベ
ロープ発生装置を提供することである。
[Object of the Invention] Accordingly, an object of the present invention is to provide an envelope generating device for an electronic musical instrument capable of generating an envelope having a smoothly changing characteristic.

[発明の構成、作用] この発明によれば、各ステータスにおけるエンベロー
プの目標値を記憶する目標値記憶手段と、エンベロープ
の傾きを示す傾斜データを発生する傾斜データ発生手段
と、前回のエンベロープ値と上記傾斜データ発生手段か
らの傾斜データとに基づいて新たなエンベロープ値を演
算するエンベロープ値演算手段と、上記エンベロープ値
演算手段により演算されたエンベロープ値を上記目標値
記憶手段に記憶される現在のステータスにおけるエンベ
ロープの目標値と比較する比較手段と、上記比較手段の
比較結果に基づいてステータスを更新するステータス更
新手段と、を備えるエンベロープ発生装置において、上
記傾斜データ発生手段が、各ステータスにおけるエンベ
ロープの傾斜データを記憶する傾斜設定値記憶手段と、
ステータスの更新の際に、エンベロープの傾斜データRn
(nは新たなステータスになってからのエンベロープ演
算の回数 n=1,2,…)を、前回の傾斜データRn-1及び
上記傾斜設定値記憶手段に記憶されている傾斜データRc
に基づき、次の漸化式 Rn=(Rn-1+Rc)/2 に基づいて演算する傾斜データ演算手段と、を有するこ
とを特徴とする。
According to the present invention, target value storage means for storing the target value of the envelope in each status, inclination data generation means for generating inclination data indicating the inclination of the envelope, and the last envelope value An envelope value calculating means for calculating a new envelope value based on the tilt data from the tilt data generating means; and a current status in which the envelope value calculated by the envelope value calculating means is stored in the target value storing means. In an envelope generating apparatus comprising: comparing means for comparing with a target value of the envelope in; and status updating means for updating a status based on a comparison result of the comparing means. Inclination setting value storage means for storing data; ,
When updating the status, the inclination data Rn of the envelope
(N is the number of envelope operations n = 1, 2,... Since the new status is set) is calculated from the previous inclination data R n-1 and the inclination data Rc stored in the inclination setting value storage means.
Based on the following recurrence formula: Rn = (Rn -1 + Rc) / 2.

また本発明は、上記傾斜データ発生手段が、各ステー
タスにおけるエンベロープの傾斜データを記憶する傾斜
設定値記憶手段と、ステータスの更新の際に、エンベロ
ープの傾斜データRn(nは新たなステータスになってか
らのエンベロープ演算の回数 n=1,2,…)を、前回の
傾斜データRn-1及び上記傾斜設定値記憶手段に記憶され
ている傾斜データRcに基づき、次の漸化式 Rn=αRn-1+(1−α)Rc 0≦α≦1 に基づいて演算する傾斜データ演算手段と、を有するこ
とを特徴とする。
Further, according to the present invention, the inclination data generating means includes an inclination set value storage means for storing the inclination data of the envelope in each status, and the inclination data Rn (n is a new status when the status is updated). ..) Is calculated based on the previous slope data R n-1 and the slope data Rc stored in the slope set value storage means, using the following recurrence formula Rn = αR n-1 + (1−α) Rc 0 ≦ α ≦ 1.

この構成によれば、ステータスの変り目においてエン
ベロープの傾きが、前のステータスに対して設定した傾
きから後のステータスに対して設定した傾きに向って徐
々に変化するので、従来のように、ステータスの更新の
前後で、エンベロープの傾きが不連続的に変化すること
はなくなり、自然楽器音のエンベロープをより正確に近
似することができる。
According to this configuration, at the transition of the status, the gradient of the envelope gradually changes from the gradient set for the previous status toward the gradient set for the subsequent status. Before and after the update, the slope of the envelope does not change discontinuously, and the envelope of the natural instrument sound can be more accurately approximated.

[実施例] 以下、図面を参照して、この発明の実施例を説明す
る。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

第1図〜第3図に示す実施例において、エンベロープ
波形は、各ステータスに対して設定された傾斜データ
(エンベロープの傾きの設定値)とエンベロープの目標
値とに基づいて生成される。この発明に従い、エンベロ
ープの差分値としての傾斜データは設定された傾斜デー
タをそのまま使用するのではなく、設定された傾斜デー
タと過去の傾斜データとを含む漸化式に従って生成され
る。この実施例では、 漸化式は、 Rn=(Rn-1+Rc)/2 (1) n=1、2、…… で与えられる。ここに、Rnは新たなステータスになって
からn回目のエンベロープ演算で使用される傾斜デー
タ、Rcは現在のステータスに対して設定された傾斜デー
タである。
In the embodiment shown in FIGS. 1 to 3, the envelope waveform is generated based on the slope data (set value of the slope of the envelope) set for each status and the target value of the envelope. According to the present invention, the inclination data as the difference value of the envelope is generated according to a recurrence formula including the set inclination data and the past inclination data instead of using the set inclination data as it is. In this embodiment, the recurrence equation is given by R n = (R n-1 + R c ) / 2 (1) where n = 1, 2,. Here, the inclination data R n is used in the n-th envelope calculation from becoming a new status, R c is inclined data set for the current status.

式(1)から、 Rn−Rc=(Rn-1−Rc)/2=(Rn-2−Rc)/22=…… であるので、 Rn=Rc−(Rc−R0)/2n (2) となる。ここに、R0は前回のステータスに対して設定さ
れた傾斜データである。したがって、ステータス更新後
の傾斜データの列R1、R2……Rnは、前回のステータスに
対して設定された傾斜データの値から、現在のステータ
スに対して設定された傾斜データの値Rcに向って徐々に
変化することになる。例えば、R0=2、Rc=−1のと
き、R1=1/2、R2=−1/4、R3=−5/8、R4=−13/16、R5
=−29/32……となる。第4図に、この場合のエンベロ
ープの波形の変化を示す。図中、点線は、従来技術に従
い、設定された傾斜データRc=−1をそのままエンベロ
ープの差分値として使用したときに得られるエンベロー
プ波形を示し、実線が、実施例の生成するエンベロープ
波形である。このように、実施例によればステータスの
切換りで、エンベロープの傾きがなめらかに変化するの
で、第5図に示すような自然楽器音の特性に近いエンベ
ロープを得ることができる。後述するように、第1図に
示すエンベロープレート変更回路9により、式(1)に
従う傾斜データが生成される。
From equation (1), R n -R c = (R n-1 -R c ) / 2 = (R n -2 -R c ) / 2 2 =... Therefore, R n = R c- ( R c −R 0 ) / 2 n (2) Here, R0 is inclination data set for the previous status. Therefore, the columns R 1 , R 2, ..., R n of the tilt data after the status update are calculated from the values of the tilt data set for the previous status to the values R of the tilt data set for the current status. It will gradually change toward c . For example, when R 0 = 2, R c = -1, R 1 = 1/2, R 2 = -1 / 4, R 3 = -5 / 8, R 4 = -13 / 16, R 5
= −29 / 32 ... FIG. 4 shows the change of the envelope waveform in this case. In the figure, the dotted line shows the envelope waveform obtained when the set slope data R c = -1 is used as it is as the envelope difference value according to the conventional technique, and the solid line is the envelope waveform generated by the embodiment. . As described above, according to the embodiment, since the inclination of the envelope changes smoothly by switching the status, it is possible to obtain an envelope close to the characteristics of the natural musical instrument sound as shown in FIG. As described later, the inclination data according to the equation (1) is generated by the envelope plate changing circuit 9 shown in FIG.

以下、詳細に説明する。 The details will be described below.

第3図は、上述したエンベロープ生成機能を有する電
子楽器のブロック図である。キーアサイナ2はキースイ
ッチ回路1を走査し、押下されている鍵のキーコードKC
と、発音開始用のキーオン信号KNを発生する。エンベロ
ープ発生回路3はキーオン信号KNを受けて、エンベロー
プ波形Eの発生を開始する。周波数情報発生回路4はキ
ーアサイナ2からのキーコードKCを受け、それに対応す
る周波数情報FIを発生する。波形生成回路5は周波数情
報FIを受け、それを累算して波形の位相データを生成
し、それに基づいて波形データを生成する。生成された
波形データはエンベロープ発生回路3からのエンベロー
プ信号Eと乗算され、楽音波形Wとして出力される。次
に鍵が離されると、キーアサイナ2からキーオフ信号KF
が発生され、エンベロープ発生回路3は、アタック開始
後ディケイ、サスティン(持続音のみ)と進んでいたエ
ンベロープをリリース状態にする。エンベロープ発生回
路3はリリースが終了すると、キーアサイナ2にエンベ
ロープ終了信号EFを送る。キーアサイナ2はエンベロー
プ終了信号EFを受けて、発音終了状態となる。尚、波形
生成回路5ではアタック開始時に同一位相からスタート
するようにキーオン信号KNによって位相をリセットする
ようにしている。以上、ブロックの機能を中心に説明し
てきたが、シフトレジスタ等を用いて時分割処理にすれ
ばポリフォニック構成にできる。サウンドシステム6は
生成されたデジタル楽音波形信号をD/A変換し、アン
プ、スピーカを介して放音する。
FIG. 3 is a block diagram of an electronic musical instrument having the above-described envelope generation function. The key assigner 2 scans the key switch circuit 1 and determines the key code KC of the key being pressed.
Generates a key-on signal KN for starting sounding. Upon receiving the key-on signal KN, the envelope generation circuit 3 starts generating an envelope waveform E. Frequency information generating circuit 4 receives key code KC from key assigner 2 and generates frequency information FI corresponding thereto. The waveform generation circuit 5 receives the frequency information FI, accumulates it, generates waveform phase data, and generates waveform data based on the phase data. The generated waveform data is multiplied by the envelope signal E from the envelope generating circuit 3 and output as a musical sound waveform W. Next, when the key is released, a key-off signal KF
Is generated, and the envelope generating circuit 3 releases the envelope that has advanced to decay and sustain (only the sustained sound) after the start of the attack. When the release is completed, the envelope generating circuit 3 sends an envelope end signal EF to the key assigner 2. Upon receiving the envelope end signal EF, the key assigner 2 enters the sound ending state. The waveform generation circuit 5 resets the phase by the key-on signal KN so that the phase starts at the same phase when the attack starts. Although the function of the block has been mainly described above, a polyphonic configuration can be realized by performing time-division processing using a shift register or the like. The sound system 6 performs D / A conversion on the generated digital musical sound waveform signal, and emits the sound via an amplifier and a speaker.

第2図はエンベロープ発生回路3の詳細なブロック図
である。エンベロープレートメモリ7には各ステータス
に対して設定されたエンベロープの傾きを示す傾斜デー
タが記憶され、エンベロープレベルメモリ8には各ステ
ータスに対して設定されたエンベロープの目標値が記憶
される。両メモリ7、8はエンベロープのステータスを
制御するエンベロープステータス回路12からの現ステー
タスを示すステータスデータSTによりアドレッシングさ
れる。エンベロープレートメモリ7からの現ステータス
の設定傾斜データERはこの発明に従い、エンベロープレ
ート変更回路9に入力され、ここで、エンベロープ差分
値としての傾斜データER′が生成される。この変更され
た傾斜データER′はエンベロープカウンタ10に入力さ
れ、エンベロープカウンタ10はこの変更傾斜データER′
を現在のエンベロープ値E0に加減算してエンベロープ値
を更新する。更新されたエンベロープ値は比較回路11で
エンベロープレベルメモリ8からの現在のステータスの
エンベロープ目標値ELと比較される。比較回路11はエン
ベロープ値E0がエンベロープ目標値に到達したら、“1"
の比較信号RHを発生するように構成されている。即ち、
比較信号RHは、傾斜データERの符号ビットERMSBに応じ
て、 (i)ERMSB=0(上昇中)かつE0≧EL または、 (ii)ERMSB=1(下降中)かつE0≦EL のときに、“1"となる。
FIG. 2 is a detailed block diagram of the envelope generating circuit 3. The envelope plate memory 7 stores inclination data indicating the inclination of the envelope set for each status, and the envelope level memory 8 stores the target value of the envelope set for each status. Both memories 7, 8 are addressed by status data ST indicating the current status from an envelope status circuit 12 which controls the status of the envelope. According to the present invention, the set tilt data ER of the current status from the envelope plate memory 7 is input to the envelope plate changing circuit 9, where the tilt data ER 'as an envelope difference value is generated. The changed inclination data ER 'is input to the envelope counter 10, and the envelope counter 10 outputs the changed inclination data ER'.
Is added to or subtracted from the current envelope value E 0 to update the envelope value. The updated envelope value is compared with the envelope target value EL of the current status from the envelope level memory 8 by the comparison circuit 11. When the envelope value E 0 reaches the envelope target value, the comparison circuit 11 sets “1”
Is generated to generate the comparison signal RH. That is,
The comparison signal RH is determined according to the sign bit ER MSB of the gradient data ER, as follows: (i) ER MSB = 0 (during rising) and E 0 ≧ EL or (ii) ER MSB = 1 (during falling) and E 0 ≦ It becomes “1” at EL.

エンベロープカウンタ10からのエンベロープ値E0は指
数変換回路14で指数変換されて、指数エンベロープEと
なる。
The envelope value E 0 from the envelope counter 10 is exponentially converted by the exponential conversion circuit 14 to become an exponential envelope E.

エンベロープステータス回路12はキーアサイナ2から
のキーオン信号KNを受け、ステータスSTをアタック(00
0)としてエンベロープを開始させる。更に、エンベロ
ープステータス回路12は比較回路11からエンベロープ値
E0が目標値ELに達したことを示す“1"の比較信号RHを受
け、ステータスをアタック(000)からディケイ(00
1)、ディケイ(001)からサスティン(010)というよ
うに更新してエンベロープレートメモリ7、エンベロー
プレベルメモリ8から取り出す設定データを更新する。
更にエンベロープステータス回路12はキーアサイナ2か
らのキーオフ信号KFに応答してステータスSTをリリース
(011)に変更し、リリース(011)において比較回路11
から目標値到達の信号RHを受けると、ステータスSTを終
了状態(110)にし、エンベロープ終了信号EFをキーア
サイナ2に送出する。
The envelope status circuit 12 receives the key-on signal KN from the key assigner 2 and attacks the status ST (00
Start the envelope as 0). Further, the envelope status circuit 12 outputs the envelope value from the comparison circuit 11.
Upon receiving the comparison signal RH of “1” indicating that E 0 has reached the target value EL, the status is changed from attack (000) to decay (00).
1) Update the setting data extracted from the envelope plate memory 7 and the envelope level memory 8 by updating from decay (001) to sustain (010).
Further, the envelope status circuit 12 changes the status ST to release (011) in response to the key-off signal KF from the key assigner 2, and in the release (011), the comparison circuit 11
When receiving the signal RH for reaching the target value from, the status ST is set to the end state (110), and the envelope end signal EF is sent to the key assigner 2.

第1図はエンベロープレート変更回路9の詳細なブロ
ック図である。選択回路16はフリップフロップ(FF)17
に取り込むデータとして、前回の変更傾斜データER′
か、エンベロープレートメモリ7からの設定傾斜データ
ERのいずれかをORゲート15からの選択信号に従って選択
する。ORゲート15には比較回路11からの比較信号RHとキ
ーアサイナ2からのキーオン信号KN及びキーオフ信号KF
が入力される。したがって、ORゲート15の出力する選択
信号は、エンベロープのステータスが更新されるときに
“1"になり、このとき、選択回路16は更新前のステータ
スに対して設定された傾斜データERを選択する。
FIG. 1 is a detailed block diagram of the envelope plate changing circuit 9. The selection circuit 16 is a flip-flop (FF) 17
As the data to be taken into the
Or set tilt data from the envelope plate memory 7
One of the ERs is selected according to the selection signal from the OR gate 15. The OR gate 15 has a comparison signal RH from the comparison circuit 11, a key-on signal KN and a key-off signal KF from the key assigner 2.
Is entered. Therefore, the selection signal output from the OR gate 15 becomes "1" when the status of the envelope is updated, and at this time, the selection circuit 16 selects the gradient data ER set for the status before the update. .

例えば、エンベロープがスタートする際にはキーオン
信号KNが“1"になり、ORゲート15の選択信号は“1"とな
り、このとき、選択回路16は、終了状態(000)のステ
ータスSTに対する設定傾斜データ、即ち、初期傾斜デー
タERinitを選択する。ここで、エンベロープステータス
回路12のステータスが終了状態(100)からアタック状
態(000)に更新され、このアタック状態に対して設定
した傾斜データERattackがエンベロープレートメモリ7
から出力される。このアタック設定傾斜データERattack
はエンベロープ変更回路9の加算器18に入力され、ここ
で、FF17からの出力ERinitに加算され、その結果が、シ
フト回路19で1/2にされる。したがって、シフト回路19
の出力ER′であるアタックステータスの最初の変更傾斜
データER1は、 ER′=ER1=(ERinit+ERattack)/2 となる。その後は、FF17は変更された傾斜データを取り
込み、加算器18、シフト回路19で次の変更傾斜データが
演算されるので、アタックステータスが開始してからn
回目の変換傾斜データERnは、 ER′=ERn=(ERn-1+ERattack)/2 となる。したがって、アタック状態での実際のエンベロ
ープの傾きは初期値に関連する値からアタックの設定傾
斜値に徐々に変化する。
For example, when the envelope starts, the key-on signal KN becomes “1”, and the selection signal of the OR gate 15 becomes “1”. At this time, the selection circuit 16 sets the slope for the status ST of the end state (000). Data, that is, initial inclination data ER init is selected. Here, the status of the envelope status circuit 12 is updated from the end state (100) to the attack state (000), and the inclination data ER attack set for this attack state is stored in the envelope plate memory 7.
Output from This attack setting inclination data ER attack
Is input to the adder 18 of the envelope changing circuit 9, where it is added to the output ER init from the FF 17, and the result is halved by the shift circuit 19. Therefore, the shift circuit 19
Output ER 'first change gradient data ER 1 of a is the attack status, ER' = ER 1 = a (ER init + ER attack) / 2. Thereafter, the FF 17 captures the changed inclination data, and the adder 18 and the shift circuit 19 calculate the next changed inclination data.
Converting gradient data ER n times th, ER '= ER n = a (ER n-1 + ER attack ) / 2. Therefore, the slope of the actual envelope in the attack state gradually changes from the value related to the initial value to the set slope value of the attack.

その後、エンベロープ値E0がアタックの目標値EL
attackに到達すると、到達信号RHが“1"となり、ORゲー
ト15の選択信号が“1"となり、エンベロープレートメモ
リ7からアタック状態に対して設定した傾斜データER
attackが、FF17に取り込まれる。その後も上述と同様の
演算がくり返され、その結果、ディケイステータス(00
1)におけるエンベロープの傾斜はアタック部の傾斜か
らディケイステータスの設定傾斜に向ってなめらかに変
化する。キーオフ信号KFが発生したときも、同様であ
り、これを合図に、変更傾斜データER′は、キーオフ信
号KF発生前のステータスの設定傾斜から、キーオフ信号
KF発生後のリリースステータス(011)の設定傾斜へと
なめらかに移行する。
After that, the envelope value E 0 becomes the attack target value EL
When reaching the attack , the reaching signal RH becomes “1”, the selection signal of the OR gate 15 becomes “1”, and the inclination data ER set for the attack state from the envelope plate memory 7.
The attack is taken into FF17. Thereafter, the same operation as described above is repeated, and as a result, the decay status (00
In 1), the slope of the envelope changes smoothly from the slope of the attack part toward the set slope of the decay status. The same applies to the case where the key-off signal KF is generated. When the key-off signal KF is generated, the changed tilt data ER ′ is changed from the status set tilt before the key-off signal KF is generated to the key-off signal.
The transition to the set slope of the release status (011) after KF occurs smoothly.

なお、アタック以外のステータスの切換時には、エン
ベロープレート変更回路9の出力は、切換前の設定傾斜
に十分近い値をもつので、ORゲート15の出力の代りに、
キーオン信号KNのみを選択回路16の選択信号としてもよ
い。
At the time of switching of the status other than the attack, the output of the envelope plate changing circuit 9 has a value sufficiently close to the set slope before the switching, so that the output of the OR gate 15 is used instead of the output of the OR gate 15.
Only the key-on signal KN may be used as the selection signal of the selection circuit 16.

第5図(a)、(b)に生成された直線エンベロープ
E0と指数エンベロープEを示す。この例では、初期設定
Einitを大きくとることでアタック開始時のエンベロー
プの傾きを大きくして、指数変換によるエンベロープE
の立上り特性を改善している。アタック(A)からディ
ケイ(D)、ディケイ(D)からサスティン(S)サス
ティン(S)からリリース(R)への各変り目におい
て、エンベロープの傾きがなめらかに変化していること
がわかる。なお、サスティン中は、比較回路11から到達
信号RHが与えられても、エンベロープステータス回路12
はステータスSTをサスティン(010)に維持するように
なっている。
5 (a) and 5 (b) generated linear envelopes
Shows E 0 and exponential envelope E. In this example, the initial settings
By increasing E init , the slope of the envelope at the start of the attack is increased, and the envelope E by exponential conversion
Has improved the rising characteristics. It can be seen that at each transition from attack (A) to decay (D), decay (D) to sustain (S), and sustain (S) to release (R), the slope of the envelope changes smoothly. During the sustain, even if the arrival signal RH is given from the comparison circuit 11, the envelope status circuit 12
Keeps the status ST at sustain (010).

第6図は、エンベロープレート変更回路の変形例を示
す。このエンベロープレート変更回路9Mは、変更傾斜デ
ータRnを次式に従って生成する。
FIG. 6 shows a modification of the envelope plate changing circuit. The envelope rate change circuit 9M generates change gradient data R n according to the following equation.

Rn=αRn-1+(1−α)Rc (3) 0≦α≦1、n=1、2、3…… この漸化式(3)において、係数α=1/2とすれば、式
(1)と同じになる。係数αは変更傾斜データRnが現ス
テータスの設定傾斜に収束する速度を表わし、αが大き
いほど即ち、1に近いほど収束速度は遅くなる。
R n = αR n-1 + (1−α) R c (3) 0 ≦ α ≦ 1, n = 1, 2, 3,... In this recurrence formula (3), the coefficient α = 1/2 For example, it becomes the same as Expression (1). Coefficient α represents the speed at which the change gradient data R n converges to set the inclination of the current status, as α is larger i.e., closer to 1 the convergence rate becomes slow.

式(3)を変形すると、 Rn=Rc−α(Rc−R0) が得られる。したがって、ステータスが更新されたと
き、生成されるエンベロープの傾きは前回のステータス
で設定された傾斜データR0から現在のステータスで設定
された傾斜データRcに、収束係数αに応じた速度で近づ
いていくことになる。
By transforming equation (3), the following is obtained: R n = R c −α n (R c −R 0 ). Therefore, when the status is updated, the slope of the envelope generated in the gradient data R c set in the current status from the gradient data R 0 set in the previous status, approaching at a speed corresponding to the convergence factor α Will go on.

第7図(a)はR0=2、Rc=1で、α=1/2としたと
きに得られるエンベロープを示し、同図(b)はα=3/
4にしたときに得られるエンベロープを示している。α
=3/4の場合、R1=5/4、R2=11/16、R3=17/64、R4=−
13/256、R5=−295/1024……というように傾きが変化す
る。
FIG. 7 (a) shows an envelope obtained when R 0 = 2, R c = 1 and α = 1/2, and FIG. 7 (b) shows an envelope obtained when α = 3 /
The envelope obtained when it is set to 4 is shown. α
= For 3/4, R 1 = 5 /4, R 2 = 11/16, R 3 = 17/64, R 4 = -
13/256, R 5 = -295 / 1024 slope varies so on ....

第6図のエンベロープレート変更回路9Mにおいて、係
数αはエンベロープレートメモリ7の出力ERの下位ビッ
トで与えられ、この出力ERの上位ビットが設定傾斜デー
タERcを表わす。
In the envelope rate change circuit 9M of FIG. 6, the coefficient α is given by the lower bits of the output ER envelope rate memory 7, the upper bits of the output ER represents the set gradient data ER c.

ORゲート15による選択信号の形成、選択回路10、及び
FF17の構成は第1図と同様である。減算器28においてFF
17からの前回の変更傾斜データERn-1から現ステータス
の設定傾斜データERcが差し引かれる。この出力(ERn-1
−ERc)×係数αの乗算が乗算器29で実行され、乗算器2
9の出力α(ERn-1−ERc)に現ステータスの設定傾斜デ
ータERcが加えられて、新たな変更傾斜データERn(E
R′)が生成される。したがって、 ERn=αERn-1+(1−α)ERc となり、式(3)に示した計算が実行されていることに
なる。
Formation of the selection signal by the OR gate 15, the selection circuit 10, and
The configuration of FF17 is the same as that of FIG. FF in subtractor 28
Set gradient data ER c of the current status is subtracted from the previous change gradient data ER n-1 from 17. This output (ER n-1
−ER c ) × the multiplication of the coefficient α is executed in the multiplier 29 and the multiplier 2
It is added is set gradient data ER c of the current status in the output of the 9 α (ER n-1 -ER c), new changes slope data ER n (E
R ′) is generated. Therefore, the ER n = αER n-1 + (1-α) ER c , and the calculation shown in Formula (3) is running.

第6図に示す変形例の利点は、収束係数αをステップ
別に独立の値をもたせることにより、より多様な傾斜変
化特性をもつエンベロープが得られることである。
An advantage of the modification shown in FIG. 6 is that an envelope having more various inclination change characteristics can be obtained by giving the convergence coefficient α an independent value for each step.

以上で、実施例の説明を終えるが、この発明の範囲内
で種々の変形が可能である。例えば、本発明においてエ
ンベロープレート変更回路の機能は傾斜データを平滑
化、もしくはフィルタリングして、現ステータスの設定
傾斜に向けて傾斜データを変化させることである。した
がって式(1)、(3)で示した漸化式、第1図、第6
図で示した各漸化式を計算するエンベロープレート変更
回路は例示にすぎず、 Rn=WcRcΣWiRn-ki (Wc、Wiは重み係数、Rn-kiは過去の変更傾斜データ) で示されるような漸化式に従って変更傾斜データRnを演
算する回路で構成してもよい。例えば、 Rn=(Rn-2+Rc)/2、 Rn=(Rn-1+Rn-2+Rc)/3 などが漸化式の例として挙げられる。
The description of the embodiment is finished above, but various modifications are possible within the scope of the present invention. For example, in the present invention, the function of the envelope plate changing circuit is to smooth or filter the slope data to change the slope data toward the set slope of the current status. Therefore, the recurrence formulas shown in equations (1) and (3), FIG.
Envelope rate change circuit for calculating the respective recurrence equation shown in the figure merely exemplary, R n = W c R c + i ΣW i R n-ki (W c, W i is a weighting factor, R n-ki it may be constituted by a circuit for calculating a change gradient data R n according to recurrence formulas as shown by past changes gradient data). For example, R n = (R n- 2 + R c) / 2, R n = (R n-1 + R n-2 + R c) / 3 Are examples of the recurrence formula.

また、この発明のエンベロープ発生装置は楽音の音量
制御のための音量エンベロープだけでなく、音色制御の
ための音色エンベロープ、ピッチ制御のためのピッチエ
ンベロープにも適用できる。
Further, the envelope generator of the present invention can be applied not only to a volume envelope for controlling the volume of a musical tone, but also to a timbre envelope for timbre control and a pitch envelope for pitch control.

[発明の効果] 以上、詳細に説明したように、この発明によれば、ス
テータスが更新されるときにエンベロープの傾きが更新
後のステータスに対して設定した傾きの設定値にただち
に切換わるのではなく、徐々に傾きを変えながら設定値
の傾きに近づくようにしているので、なめらかなエンベ
ロープ波形を得ることができ、自然な楽音の合成に有効
である。
[Effect of the Invention] As described above in detail, according to the present invention, when the status is updated, the slope of the envelope is immediately switched to the set value of the slope set for the updated status. Instead, the slope is gradually changed to approach the slope of the set value, so that a smooth envelope waveform can be obtained, which is effective for natural synthesis of musical sounds.

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

第1図はこの発明の実施例のエンベロープ発生回路で使
用されるエンベロープレート変更回路の構成例を示す
図、 第2図は実施例に係るエンベロープ発生回路のブロック
図、 第3図は第2図のエンベロープ発生回路を含む電子楽器
のブロック図、 第4図は実施例のエンベロープ発生回路で生成されるエ
ンベロープの一部を例示する図、 第5図は実施例のエンベロープ発生回路で生成されるエ
ンベロープの全体を例示する図、 第6図はエンベロープレート変更回路の変形例を示す
図、 第7図は第6図のエンベロープレート変更回路を用いた
エンベロープ発生回路で生成されるエンベロープの一部
を例示する図、 第8図は従来のエンベロープ発生回路で生成されるエン
ベロープを例示する図、 第9図は自然楽器音のエンベロープを例示する図であ
る。 3……エンベロープ発生回路、7……エンベロープレー
トメモリ、8……エンベロープレベルメモリ、9、9M…
…エンベロープレート変更回路、10……エンベロープカ
ウンタ、11……比較回路、12……エンベロープステータ
ス回路。
FIG. 1 is a diagram showing a configuration example of an envelope plate changing circuit used in an envelope generating circuit according to an embodiment of the present invention. FIG. 2 is a block diagram of the envelope generating circuit according to the embodiment. FIG. 3 is FIG. FIG. 4 is a block diagram of an electronic musical instrument including the envelope generating circuit of FIG. 4, FIG. 4 is a diagram illustrating a part of an envelope generated by the envelope generating circuit of the embodiment, and FIG. 5 is an envelope generated by the envelope generating circuit of the embodiment. FIG. 6 is a diagram showing a modification of the envelope plate changing circuit, and FIG. 7 is a diagram showing a part of an envelope generated by an envelope generating circuit using the envelope plate changing circuit of FIG. FIG. 8 is a diagram illustrating an envelope generated by a conventional envelope generating circuit, and FIG. 9 is a diagram illustrating an envelope of a natural musical instrument sound. It is. 3 ... Envelope generation circuit, 7 ... Envelope plate memory, 8 ... Envelope level memory, 9, 9M ...
... Envelope plate change circuit, 10 ... Envelope counter, 11 ... Comparison circuit, 12 ... Envelope status circuit.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】各ステータスにおけるエンベロープの目標
値を記憶する目標値記憶手段と、 エンベロープの傾きを示す傾斜データを発生する傾斜デ
ータ発生手段と、 前回のエンベロープ値と上記傾斜データ発生手段からの
傾斜データとに基づいて新たなエンベロープ値を演算す
るエンベロープ値演算手段と、 上記エンベロープ値演算手段により演算されたエンベロ
ープ値を上記目標値記憶手段に記憶される現在のステー
タスにおけるエンベロープの目標値と比較する比較手段
と、 上記比較手段の比較結果に基づいてステータスを更新す
るステータス更新手段と、 を備えるエンベロープ発生装置において、 上記傾斜データ発生手段が、 各ステータスにおけるエンベロープの傾斜データを記憶
する傾斜設定値記憶手段と、 ステータスの更新の際に、エンベロープの傾斜データRn
(nは新たなステータスになってからのエンベロープ演
算の回数 n=1,2,…)を、前回の傾斜データRn-1及び
上記傾斜設定値記憶手段に記憶されている傾斜データRc
に基づき、次の漸化式 Rn=(Rn-1+Rc)/2 に基づいて演算する傾斜データ演算手段と、 を有することを特徴とするエンベロープ発生装置。
1. A target value storage means for storing a target value of an envelope in each status, a tilt data generating means for generating tilt data indicating an inclination of the envelope, a previous envelope value and a tilt from the tilt data generating means. Envelope value calculating means for calculating a new envelope value based on the data, and comparing the envelope value calculated by the envelope value calculating means with the target value of the envelope in the current status stored in the target value storing means. In an envelope generating apparatus, comprising: comparing means; and status updating means for updating a status based on a comparison result of the comparing means, wherein the tilt data generating means stores tilt set value storing envelope tilt data in each status. Means and status updates In, the envelope slope data Rn of
(N is the number of envelope operations n = 1, 2,... Since the new status is set) is calculated from the previous inclination data R n-1 and the inclination data Rc stored in the inclination setting value storage means.
And a slope data calculating means for calculating based on the following recurrence formula: Rn = (R n-1 + Rc) / 2.
【請求項2】各ステータスにおけるエンベロープの目標
値を記憶する目標値記憶手段と、 エンベロープの傾きを示す傾斜データを発生する傾斜デ
ータ発生手段と、 前回のエンベロープ値と上記傾斜データ発生手段からの
傾斜データとに基づいて新たなエンベロープ値を演算す
るエンベロープ値演算手段と、 上記エンベロープ値演算手段により演算されたエンベロ
ープ値を上記目標値記憶手段に記憶される現在のステー
タスにおけるエンベロープの目標値と比較する比較手段
と、 上記比較手段の比較結果に基づいてステータスを更新す
るステータス更新手段と、 を備えるエンベロープ発生装置において、 上記傾斜データ発生手段が、 各ステータスにおけるエンベロープの傾斜データを記憶
する傾斜設定値記憶手段と、 ステータスの更新の際に、エンベロープの傾斜データRn
(nは新たなステータスになってからのエンベロープ演
算の回数 n=1,2,…)を、前回の傾斜データRn-1及び
上記傾斜設定値記憶手段に記憶されている傾斜データRc
に基づき、次の漸化式 Rn=αRn-1+(1−α)Rc 0≦α≦1 に基づいて演算する傾斜データ演算手段と、 を有することを特徴とするエンベロープ発生装置。
2. A target value storage means for storing a target value of an envelope in each status; a tilt data generating means for generating tilt data indicating the tilt of the envelope; a previous envelope value and a tilt from the tilt data generating means. Envelope value calculating means for calculating a new envelope value based on the data, and comparing the envelope value calculated by the envelope value calculating means with the target value of the envelope in the current status stored in the target value storing means. In an envelope generating apparatus, comprising: comparing means; and status updating means for updating a status based on a comparison result of the comparing means, wherein the tilt data generating means stores tilt set value storing envelope tilt data in each status. Means and status updates In, the envelope slope data Rn of
(N is the number of envelope operations n = 1, 2,... Since the new status is set) is calculated from the previous inclination data R n-1 and the inclination data Rc stored in the inclination setting value storage means.
And an inclination data calculating means for calculating based on the following recurrence formula: Rn = αR n−1 + (1−α) Rc 0 ≦ α ≦ 1.
JP2025019A 1990-02-06 1990-02-06 Envelope generator Expired - Fee Related JP2699287B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2025019A JP2699287B2 (en) 1990-02-06 1990-02-06 Envelope generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2025019A JP2699287B2 (en) 1990-02-06 1990-02-06 Envelope generator

Publications (2)

Publication Number Publication Date
JPH03230198A JPH03230198A (en) 1991-10-14
JP2699287B2 true JP2699287B2 (en) 1998-01-19

Family

ID=12154197

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2025019A Expired - Fee Related JP2699287B2 (en) 1990-02-06 1990-02-06 Envelope generator

Country Status (1)

Country Link
JP (1) JP2699287B2 (en)

Also Published As

Publication number Publication date
JPH03230198A (en) 1991-10-14

Similar Documents

Publication Publication Date Title
US4573389A (en) Musical tone generation device of waveshape memory type
JPH09127941A (en) Electronic musical instrument
JP2567717B2 (en) Musical sound generator
JP2699287B2 (en) Envelope generator
JPH0133000B2 (en)
US4189972A (en) Electronic musical instrument of numerical value processing type
JPH0318197B2 (en)
JPS6211357B2 (en)
US5284080A (en) Tone generating apparatus utilizing preprogrammed fade-in and fade-out characteristics
JP2518356B2 (en) Automatic accompaniment device
US5631434A (en) Filtering apparatus for an electronic musical instrument
JPH071430B2 (en) Electronic musical instrument
JP2959018B2 (en) LFO generator for electronic musical instruments
JP2834347B2 (en) Stereo device and stereo method
JP2640560B2 (en) Envelope signal generator
JP3448187B2 (en) Electronic musical instrument
JP3223560B2 (en) Waveform data reading device
JPH0243196B2 (en)
JP3029056B2 (en) Electronic musical instrument
JP3221987B2 (en) Delay time modulation effect device
JP3182098B2 (en) Electronic musical instrument
JP2684791B2 (en) Waveform signal generator for tone control
JP2000214852A (en) Waveform reproducing apparatus and waveform storage medium
JPH0519755A (en) Electronic musical instrument
JP3223555B2 (en) Waveform reading device

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970819

LAPS Cancellation because of no payment of annual fees