JP2640560B2 - Envelope signal generator - Google Patents

Envelope signal generator

Info

Publication number
JP2640560B2
JP2640560B2 JP2218237A JP21823790A JP2640560B2 JP 2640560 B2 JP2640560 B2 JP 2640560B2 JP 2218237 A JP2218237 A JP 2218237A JP 21823790 A JP21823790 A JP 21823790A JP 2640560 B2 JP2640560 B2 JP 2640560B2
Authority
JP
Japan
Prior art keywords
waveform
parameter
phase
envelope
signal
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
JP2218237A
Other languages
Japanese (ja)
Other versions
JPH04101197A (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.)
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 JP2218237A priority Critical patent/JP2640560B2/en
Priority to US07/619,863 priority patent/US5127304A/en
Publication of JPH04101197A publication Critical patent/JPH04101197A/en
Application granted granted Critical
Publication of JP2640560B2 publication Critical patent/JP2640560B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野〕 この発明は、例えば、電子オルガン等の電子楽器にお
いて、楽音信号に強弱を付加するためのエンベロープ信
号を発生するエンベロープ信号発生装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial application field) The present invention relates to, for example, an electronic musical instrument such as an electronic organ and the like, which generates an envelope signal for generating an envelope signal for adding strength to a tone signal. Related to the device.

(従来の技術) 電子オルガン等の電子楽器においては、楽音信号発生
装置を有し、この楽音信号発生装置から演奏者のキー操
作等に基づいて目的の楽音信号を得るようになってい
る。
(Prior Art) An electronic musical instrument such as an electronic organ has a tone signal generator, and a desired tone signal is obtained from the tone signal generator based on a player's key operation or the like.

楽音信号発生装置は、一般に、音色や音域に応じた波
形及び音高に応じた周波数を有するトーン信号にエンベ
ロープ信号を付加することにより、強弱を有する楽音信
号を得るようになっている。
In general, a tone signal generating device obtains a tone signal having high and low strength by adding an envelope signal to a tone signal having a waveform corresponding to a timbre or a tone range and a frequency corresponding to a pitch.

エンベロープ信号は、第14図に示すように、例えば、
アタック部、ディケィ部、リリース部といった波形切換
わり位相を示すフェーズP(=0,1,2,3)を有する。そ
して、各フェーズPは、通常、それぞれ異なる指数関数
波形を有する。
The envelope signal is, for example, as shown in FIG.
It has a phase P (= 0, 1, 2, 3) indicating a waveform switching phase such as an attack section, a decay section, and a release section. And each phase P usually has a different exponential function waveform.

このようなエンベロープ信号を生成するために、従来
は、各フェーズPごとにその到達目標レベルL0,L1,L2を
指定する「目標レベルパラメータLV」と、目標レベルL
0,L1,L2に到達するまでの時間を指定する「エンベロー
プ速度パラメータSP」の2つのパラメータを用いてい
た。
Conventionally, in order to generate such an envelope signal, a “target level parameter LV” that specifies the target level L0, L1, L2 for each phase P, and a target level L
Two parameters, "envelope speed parameter SP", which specify the time to reach 0, L1, and L2, have been used.

すなわち、まず、目標レベルパラメータLVによって指
定される目標レベルとエンベロープ信号の現在値Σeと
の差を求める。次に、この差分値Δeにエンベロープ速
度パラメータSPを乗算することにより、エンベロープ信
号の増加分を求める。最後に、この増加分Δe×SPを現
在値Σeに加算することにより、新たな現在値Σeを求
める、以下、同様の処理を繰り返すことにより、順次現
在値Σeを更新する。これにより、エンベロープ信号の
現在値Σeが目標レベルに漸近し、あるフェーズPの波
形が得られる。
That is, first, a difference between the target level specified by the target level parameter LV and the current value Δe of the envelope signal is obtained. Next, the difference value Δe is multiplied by the envelope speed parameter SP to obtain an increase in the envelope signal. Finally, a new current value Σe is obtained by adding the increment Δe × SP to the current value 、 e. Thereafter, the same process is repeated to sequentially update the current value Σe. As a result, the current value Δe of the envelope signal approaches the target level, and a waveform of a certain phase P is obtained.

このような処理を各フェーズPごとに行うことによ
り、第14図に示すようなエンベロープ信号が得られる。
By performing such processing for each phase P, an envelope signal as shown in FIG. 14 is obtained.

このように、従来は、目標レベルパラメータLVとエン
ベロープ速度パラメータSPの二つのパラメータを使って
エンベロープ信号を生成するようにしていた。
As described above, conventionally, the envelope signal is generated using the two parameters of the target level parameter LV and the envelope speed parameter SP.

しかし、このような構成では、各フェーズPの波形生
成時間が、エンベロープ速度パラメータSPだけでなく、
目標レベルによっても左右されるため、同じ時間幅のフ
ェーズPでも目標レベルが変われば、波形生成時間が変
わってしまうという問題がある。
However, in such a configuration, the waveform generation time of each phase P is not limited to the envelope speed parameter SP,
Since it also depends on the target level, if the target level changes even in the phase P of the same time width, there is a problem that the waveform generation time changes.

また、従来の構成では、目標レベルが変わるたびに、
目標レベルに到達したか否かを判定するための比較対象
を計算し直さなければならないという問題がある。
Also, in the conventional configuration, every time the target level changes,
There is a problem that a comparison target for determining whether or not the target level has been reached must be recalculated.

さらに、従来の構成では、目標レベルに基づいて波形
が生成されるため、目標レベルまでの変位が小さいと、
差分値Δeに誤差が生じる。そして、この誤差は、現在
値Σeを更新するたびに累積されるため、目的の波形を
得ることができないという問題がある。
Further, in the conventional configuration, since the waveform is generated based on the target level, if the displacement to the target level is small,
An error occurs in the difference value Δe. Since this error is accumulated each time the current value Δe is updated, there is a problem that a desired waveform cannot be obtained.

(発明が解決しようとする課題) 以上述べたように、従来のエンベロープ信号生成装置
においては、目標レベルパラメータLVとエンベロープ速
度パラメータSPの二つのパラメータを使ってエンベロー
プ信号を生成するようになっているため、 (1) 同じフェーズPでも目標レベルが変われば、波
形生成時間が変わってしまう。
(Problems to be Solved by the Invention) As described above, in the conventional envelope signal generation device, an envelope signal is generated using two parameters of the target level parameter LV and the envelope speed parameter SP. Therefore, (1) If the target level changes even in the same phase P, the waveform generation time changes.

(2) 目標レベルが変わるたびに、目標レベルに到達
したか否かを判定するための比較対象を変えなくてはな
らない。
(2) Every time the target level changes, the comparison target for determining whether or not the target level has been reached must be changed.

(3) 目標レベルまでの変位が小さいと、誤差の累積
により、目的の波形を得ることができない。
(3) If the displacement to the target level is small, a desired waveform cannot be obtained due to accumulation of errors.

という問題があった。There was a problem.

そこで、この発明は、目標レベルが変わっても波形生
成時間が変わることがなく、目標レベルが変わるたび
に、目標レベルに到達したか否かを判定するための比較
対象を変える必要がなく、目標レベルまでの変位が小さ
くても、目的の波形を得ることができるエンベロープ信
号発生装置を提供することを目的とする。
Therefore, the present invention does not change the waveform generation time even if the target level changes, and does not need to change the comparison target for determining whether or not the target level has been reached each time the target level changes. It is an object of the present invention to provide an envelope signal generator capable of obtaining a desired waveform even if the displacement up to the level is small.

〔発明の構成〕[Configuration of the invention]

(課題を解決するための手段) 上述の目的を達成するために、本発明は、1ないしそ
れ以上のフェーズから構成されるエンベロープ波形を生
成するために、エンベロープ波形生成処理が行われてい
る当該フェーズのパラメータを記憶する第1の記憶領
域、ならびに引き続くエンベロープ波形生成処理の行わ
れるフェーズのパラメータを記憶する第2の記憶領域か
らなるパラメータ記憶手段と;前記パラメータ記憶手段
の第1の記憶領域から供給される時間パラメータτ
(0<τ<1)により指定された時間に応じて、第
1の基準値から第2の基準値に到達する時変数信号を生
成する時変数信号発生手段と;前記時変数信号が第2の
基準値に到達したことを検出することによりフェーズの
切り換わりを検出するためのフェーズ切り換わり検出手
段と;前記パラメータ記憶手段の第1の記憶領域から供
給される利得パラメータGPと前記時変数信号発生手段の
出力とを乗算するための第1図の波形生成手段と;前記
パラメータ記憶手段の第1の記憶領域から供給される振
幅パラメータLPと前記第1の波形生成手段の出力とを加
算するための第2の波形生成手段と;引き続いてエンベ
ロープ波形生成処理の行われるフェーズの利得パラメー
タGPを逐次算出し、前記パラメータ記憶手段の第2の記
憶領域に供給する利得パラメータ算出手段と;前記フェ
ーズ切り換わり検出手段により検出されたフェーズ切り
換わりに応じて前記パラメータ記憶手段の第2の記憶領
域から第1の記憶領域に対して所要パラメータを転送す
るための転送手段と;前記転送手段による転送動作の終
了に応じて引き続くフェーズのパラメータを第2の記憶
領域に書き込むための書き込み手段と;を具備する、エ
ンベロープ信号発生装置であることを特徴とする。
(Means for Solving the Problems) In order to achieve the above object, the present invention relates to a method in which an envelope waveform generating process is performed to generate an envelope waveform composed of one or more phases. Parameter storage means comprising a first storage area for storing phase parameters, and a second storage area for storing parameters of a phase in which a subsequent envelope waveform generation process is performed; from a first storage area of the parameter storage means Supplied time parameter τ
A time variable signal generating means for generating a time variable signal that reaches a second reference value from a first reference value according to a time specified by P (0 <τ P <1); Phase switching detecting means for detecting phase switching by detecting that the second reference value has been reached; gain parameter GP supplied from a first storage area of the parameter storage means; a waveform generating means in the first diagram for multiplying the output of the time variable signal generating means; output of the first amplitude parameter L P and the first waveform generating means which is supplied from the storage area of the parameter memory means a second waveform generating means for adding the door; sequentially calculating a gain parameter G P phases performed enveloped waveform generation processing subsequently be supplied to the second storage area of the parameter memory means Gain parameter calculation means; transfer means for transferring required parameters from the second storage area to the first storage area of the parameter storage means in accordance with the phase change detected by the phase change detection means And writing means for writing a parameter of a subsequent phase to a second storage area in response to the end of the transfer operation by the transfer means, characterized in that the envelope signal generator is characterized in that:

(作用) 上記構成によれば、各フェーズ毎の最大レベルが全て
標準値1となるように正規化処理(Normalization)
(以下、単に「正規化」と簡略表記する)の施された時
変数信号について波形生成処理を行えばよいので、目標
レベルを指定するためのパラメータを使うことなく、目
標レベルに到達するまでの時間を指定する時間パラメー
タだけを使って波形を生成することができる。これによ
り、目標レベルに関係なく、波形を生成することができ
るので、目標レベルが変わっても波形生成時間が変わる
ことがない。また、目標レベルが変わるたびに、目標レ
ベルに到達したか否かを判定するための比較対象を変え
る必要がない。さらに、目標レベルまでの変位が小さく
ても、目手の波形を得ることができる。
(Operation) According to the configuration described above, normalization processing (Normalization) is performed so that the maximum level of each phase is all the standard value 1.
(Hereinafter, simply referred to as “normalization”), it is only necessary to perform waveform generation processing on the time variable signal. Therefore, without using a parameter for specifying the target level, Waveforms can be generated using only time parameters that specify time. Thus, the waveform can be generated regardless of the target level, so that the waveform generation time does not change even if the target level changes. Further, each time the target level changes, it is not necessary to change the comparison target for determining whether the target level has been reached. Further, even if the displacement to the target level is small, a waveform of the hand can be obtained.

(実施例) 以下、図面を参照しながらこの発明の実施例を詳細に
説明する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第1図はこの発明の一実施例の構成を示す回路図であ
る。
FIG. 1 is a circuit diagram showing a configuration of one embodiment of the present invention.

ここで、この第1図を説明する前に、以下の説明を分
かり易くするために、この発明のエンベロープ信号発生
装置が用いられる電子楽器の一例の構成を第13図を参照
しながら説明する。
Before explaining FIG. 1, an example of the configuration of an electronic musical instrument using the envelope signal generator of the present invention will be described with reference to FIG. 13 in order to make the following description easy to understand.

第13図において、11はトーンジェネレータである。こ
のトーンジェネレータ11は、各発音チャネルごとに時分
割で音色や音域に応じた波形及び音高に応じた周波数を
有するトーン信号を発生する。
In FIG. 13, reference numeral 11 denotes a tone generator. The tone generator 11 generates a tone signal having a waveform corresponding to a timbre and a tone range and a frequency corresponding to a pitch in a time division manner for each sounding channel.

12はエンベロープジェネレータである。このエンベロ
ープジェネレータ12は、各発音チャネルごとに時分割で
楽音信号に強弱を付加するためのエンベロープ信号を発
生する。
12 is an envelope generator. The envelope generator 12 generates an envelope signal for adding strength to a tone signal in a time-division manner for each tone generation channel.

これらジェネレータ11,12の信号発生動作は、後述す
る中央処理装置(以下、「CPU」という)18により制御
される。
The signal generation operation of these generators 11 and 12 is controlled by a central processing unit (hereinafter, referred to as “CPU”) 18 described later.

トーンジェネレータ11から出力されるトーン信号は、
乗算器13に供給され、エンベロープジェネレータ12から
出力されるエンベロープ信号と乗算される。これによ
り、振幅方向に強弱を付加された楽音信号が得られる。
The tone signal output from the tone generator 11 is
The signal is supplied to the multiplier 13 and multiplied by the envelope signal output from the envelope generator 12. As a result, a tone signal to which strength is added in the amplitude direction is obtained.

乗算器13から出力される楽音信号は、累算器14に供給
される。この累算器14は、乗算器13から各発音チャネル
ごとに時分割で出力される楽音信号を累積加算し、全発
音チャネルの楽音信号を合成した楽音信号を得る。
The tone signal output from the multiplier 13 is supplied to the accumulator 14. The accumulator 14 accumulatively adds the tone signals output from the multiplier 13 in a time-division manner for each tone generation channel, and obtains a tone signal obtained by synthesizing tone signals of all tone generation channels.

累算器14から出力される楽音信号は、アナログ/ディ
ジタル変換回路15によりアナログ信号に変換される。こ
の変換出力は、増幅器16により増幅された後、サウンド
システム17に供給される。このサウンドシステム17は、
スピーカやヘッドホンにより構成され、電気信号として
供給される楽音信号を音響信号に変換する。これによ
り、目的の楽音が放出される。
The tone signal output from the accumulator 14 is converted into an analog signal by an analog / digital conversion circuit 15. The converted output is supplied to the sound system 17 after being amplified by the amplifier 16. This sound system 17
It is composed of speakers and headphones and converts a tone signal supplied as an electric signal into an acoustic signal. Thereby, the desired musical sound is emitted.

上記ジェネレータ11,12の信号発生動作は次のように
制御される。
The signal generation operation of the generators 11, 12 is controlled as follows.

図において、19はパネルスイッチ部である。このパネ
ルスイッチ部19には、各発音チャネルごとに音色とエン
ベロープ信号を選択可能な音色・エンベロープ選択スイ
ッチ等の各種スイッチが設けられている。このパネルス
イッチ部19のスイッチ操作状態は、図示しないパネルス
キャン回路により検出される。この検出出力はパネルス
イッチコードとしてCPU18に供給される。
In the figure, reference numeral 19 denotes a panel switch unit. The panel switch section 19 is provided with various switches such as a tone color / envelope selection switch capable of selecting a tone color and an envelope signal for each tone generation channel. The switch operation state of the panel switch unit 19 is detected by a panel scan circuit (not shown). This detection output is supplied to the CPU 18 as a panel switch code.

20はキースイッチ部である。このキースイッチ部20に
は、演奏者の押鍵、離鍵操作をCPU18に伝える鍵盤スイ
ッチが設けられている。このキースイッチ部20の操作状
態は、タッチセンサー21により検出され、CPU18に供給
される。この場合の検出出力としては、押鍵または離鍵
されたキーを示すキーコードと、押鍵の強さを示すタッ
チデータ等がある。
Reference numeral 20 denotes a key switch unit. The key switch section 20 is provided with a keyboard switch for transmitting the key press and key release operations of the player to the CPU 18. The operation state of the key switch unit 20 is detected by the touch sensor 21 and supplied to the CPU 18. In this case, the detection output includes a key code indicating a key that has been pressed or released, and touch data that indicates the strength of the key pressed.

22は読出し専用メモリ(以下、「ROM」という)であ
る。このROM22には、CPU18の動作を制御するプログラ
ム、音色を指定する複数の音色コード、トーン信号の周
波数を規定する周波数ナンバ、エンベロープ信号を生成
するためのパラメータ、その他の種々の固定データが格
納されている。
Reference numeral 22 denotes a read-only memory (hereinafter, referred to as “ROM”). The ROM 22 stores a program for controlling the operation of the CPU 18, a plurality of tone codes for designating a tone, a frequency number for defining a frequency of a tone signal, a parameter for generating an envelope signal, and various other fixed data. ing.

なお、エンベロープ信号を生成するためのパラメータ
は、エンベロープ信号単位ではなく、フェーズP単位、
言い換えれば、1つの指数関数波形単位で格納されてい
る。
Note that the parameters for generating the envelope signal are not units of the envelope signal, but units of the phase P,
In other words, they are stored in units of one exponential function waveform.

このような構成において、トーン信号の生成は次のよ
うにして行われる。
In such a configuration, generation of a tone signal is performed as follows.

すなわち、CPU18は、パネルスイッチ部19の音色・エ
ンベロープ選択スイッチにより選択された音色を指定す
るための音色コードを各チャネルごとにROM22から読み
出し、トーンジェネレータ11に供給する。また、CPU18
は、タッチセンサー21から供給されるキーコードを、音
域を示すデータとしてトーンジェネレータ11に供給す
る。さらに、CPU18はキーコードによって表される音高
に対応する周波数ナンバをROM22から読み出して、トー
ンジェネレータ11に供給する。
That is, the CPU 18 reads a tone color code for designating the tone color selected by the tone color / envelope selection switch of the panel switch unit 19 from the ROM 22 for each channel, and supplies the tone code to the tone generator 11. Also, CPU18
Supplies the key code supplied from the touch sensor 21 to the tone generator 11 as data indicating a sound range. Further, the CPU 18 reads out the frequency number corresponding to the pitch represented by the key code from the ROM 22 and supplies the frequency number to the tone generator 11.

トーンジェネレータ11には、音色や音域に応じた波形
を有するデータを格納する波形メモリが設けられてい
る。このような構成において、トーンジェネレータ11
は、CPU18から供給される音色コードとキーコードに基
づいて上記波形メモリから目的とする波形データを読み
出すためのアドレスを生成する。そして、このアドレス
によって選択された波形データを周波数ナンバによって
指定される送度で読み出す。これにより、音色や音域に
応じた波形を有し、音高に応じた周波数を有するトーン
信号が得られる。
The tone generator 11 is provided with a waveform memory for storing data having a waveform corresponding to a timbre or a tone range. In such a configuration, the tone generator 11
Generates an address for reading out target waveform data from the waveform memory based on the tone color code and the key code supplied from the CPU 18. Then, the waveform data selected by this address is read at the transmission rate specified by the frequency number. As a result, a tone signal having a waveform corresponding to a tone color or a tone range and having a frequency corresponding to a pitch is obtained.

次に、エンベロープ信号の生成について説明する。 Next, generation of an envelope signal will be described.

CPU18は、パネルスイッチ部19のエンベロープ選択ス
イッチにより選択されたエンベロープ信号に基づいて、
このエンベロープ信号を構成するフェーズP(指数関数
波形)を判定する。そして、この判定結果に基づいて、
各フェーズPのパラメータを順次読み出し、エンベロー
プジェネレータ12に供給する。これにより、目的のエン
ベロープ信号が生成される。
Based on the envelope signal selected by the envelope selection switch of the panel switch unit 19, the CPU 18
The phase P (exponential function waveform) constituting the envelope signal is determined. Then, based on this determination result,
The parameters of each phase P are sequentially read out and supplied to the envelope generator 12. As a result, a desired envelope signal is generated.

また、CPU18は、パネルスイッチ部19の音色・エンベ
ロープ選択スイッチにより選択されたエンベロープ信号
の波形を波形変更情報に基づいて強制的に変更すること
ができるようになっている。つまり、CPU18は波形変更
情報があると、これによって指定されるフェーズPのパ
ラメータをROM22から読み出し、すでに、エンベロープ
ジェネレータ12に供給しているパラメータと変換するよ
うになっている。これにより、現在生成中の波形が波形
変更情報によって指定されるフェーズPの波形に強制的
に変更される。
Further, the CPU 18 can forcibly change the waveform of the envelope signal selected by the timbre / envelope selection switch of the panel switch unit 19 based on the waveform change information. That is, when there is the waveform change information, the CPU 18 reads the parameters of the phase P specified by the waveform change information from the ROM 22, and converts them into the parameters already supplied to the envelope generator 12. As a result, the waveform currently being generated is forcibly changed to the phase P waveform specified by the waveform change information.

なお、波形変更情報としては、例えば、タッチセンサ
ー21から出力されるタッチデータによって表されるアフ
タータッチの情報やキーオフの情報等がある。
The waveform change information includes, for example, after-touch information and key-off information represented by touch data output from the touch sensor 21.

以上がこの発明のエンベロープ信号発生装置が用いら
れる電子楽器の一例の構成である。
The above is the configuration of an example of an electronic musical instrument using the envelope signal generator of the present invention.

そこで、第1図に戻り、この発明に係るエンベロープ
信号発生装置の一実施例を詳細に説明する。
Therefore, returning to FIG. 1, an embodiment of the envelope signal generator according to the present invention will be described in detail.

まず、第2図を用いて一実施例の概略を説明する。 First, an outline of an embodiment will be described with reference to FIG.

第2図は、第1図の動作を説明するための信号波形図
である。
FIG. 2 is a signal waveform diagram for explaining the operation of FIG.

今、第2図(c)に示すような波形のエンベロープ信
号を生成するものとする。このエンベロープ信号を生成
するために、この実施例では、まず、第2図(a)に示
すように、各フェーズPごとに正規化された時変数信号
を生成する。すなわち、各フェーズPの最大振幅でのそ
のフェーズPの波形の振幅を割ったような波形を生成す
る。
Now, it is assumed that an envelope signal having a waveform as shown in FIG. 2 (c) is generated. In order to generate this envelope signal, in this embodiment, first, as shown in FIG. 2A, a time variable signal normalized for each phase P is generated. That is, a waveform is generated by dividing the amplitude of the phase P waveform at the maximum amplitude of each phase P.

次に、この時変数信号に対して、上記正規化により失
われた交流振幅レベルを再生する処理を施す。これによ
り、第2図(b)に示すような信号が得られる。
Next, a process for reproducing the AC amplitude level lost by the normalization is performed on the variable signal at this time. As a result, a signal as shown in FIG. 2 (b) is obtained.

最後に、第2図(b)の信号に対して、上記正規化に
より失われた直流振幅レベルを再生する処理を施す。こ
れにより、第2図(c)に示すような目的とするエンベ
ロープ信号が生成される。
Finally, the signal shown in FIG. 2 (b) is subjected to a process for reproducing the DC amplitude level lost by the normalization. As a result, an intended envelope signal as shown in FIG. 2 (c) is generated.

以上が一実施例の概略である。 The above is the outline of one embodiment.

このような処理を実現するために、第1図の装置で
は、まず、微分回路31において、正規化された時変数信
号を生成している。
In order to realize such processing, in the apparatus shown in FIG. 1, first, a differentiated circuit 31 generates a normalized time variable signal.

この微分回路31は、単位遅延回路311と乗算器312によ
り構成されている。単位遅延回路311には、各フェーズ
Pの切換わり位置において、初期値として1が設定され
る。
The differentiating circuit 31 includes a unit delay circuit 311 and a multiplier 312. In the unit delay circuit 311, 1 is set as an initial value at the switching position of each phase P.

このような構成においては、単位遅延回路311に設定
された初期値1は、乗算器312に供給され、時間パラメ
ータτと乗算される。この時間パラメータτは、目
標レベルまでの到達時間を指定するもので、0<τ
1の値を有する。
In such a configuration, the initial value 1 set in the unit delay circuit 311 is supplied to a multiplier 312 and multiplied with the time parameter tau P. The time parameter τ P specifies the time to reach the target level, where 0 <τ P <
It has a value of 1.

乗算器312の乗算出力は、単位遅延回路311により単位
時間だけ遅延される。この遅延出力は乗算器312に供給
され、再び時間パラメータτと乗算される。
The multiplied output of the multiplier 312 is delayed by a unit time by the unit delay circuit 311. This delayed output is supplied to a multiplier 312 and is again multiplied by the time parameter τ P.

以下、同様に、単位時間ごとに乗算が繰り返されこと
により、波形は0に漸近して行く。これにより、第2図
(a)に示すような正規化された波形が得られる。
Hereinafter, similarly, the multiplication is repeated every unit time, so that the waveform gradually approaches 0. As a result, a normalized waveform as shown in FIG. 2A is obtained.

微分回路31の出力αは、乗算器32に供給され、交流
振幅レベルを再生するための利得パラメータGPと乗算さ
れる。
The output α P of the differentiating circuit 31 is supplied to a multiplier 32 and multiplied by a gain parameter GP for reproducing an AC amplitude level.

これにより、第2図(b)に示すように、交流振幅レ
ベルが再生された波形が得られる。
As a result, as shown in FIG. 2B, a waveform in which the AC amplitude level is reproduced is obtained.

乗算器32の出力βは、加算器33に供給され、直流振
幅レベルを再生するための振幅パラメータLPと加算され
る。
The output β P of the multiplier 32 is supplied to the adder 33, where it is added to the amplitude parameter L P for reproducing the DC amplitude level.

これにより、第2図(c)に示すように、直流振幅レ
ベルが再生された波形が得られる。
As a result, as shown in FIG. 2C, a waveform in which the DC amplitude level is reproduced is obtained.

あるフェーズPの波形生成が終了すると、単位遅延回
路311に再び初期値1が設定されるとともに、乗算器31
2、加算器33にそれぞれ次のフェーズ(P+1)のパラ
メータτP+1,LP+1が供給される。この処理は第13図のCP
U18よりなされる。これに対し、乗算器32の利得パラメ
ータGP+1は、第13図のエンベロープジェネレータ12の内
部で自動的に生成される。
When the waveform generation of a certain phase P is completed, the initial value 1 is set again in the unit delay circuit 311 and the multiplier 31
2. Parameters τ P + 1 and L P + 1 of the next phase (P + 1) are supplied to the adder 33, respectively. This process corresponds to the CP in FIG.
Made from U18. On the other hand, the gain parameter GP + 1 of the multiplier 32 is automatically generated inside the envelope generator 12 in FIG.

以下、同様に、各フェーズPごとに波形生成処理を繰
り返すことにより、第2(c)に示すように連続したエ
ンベロープを有する信号が得られる。
Hereinafter, similarly, by repeating the waveform generation processing for each phase P, a signal having a continuous envelope is obtained as shown in FIG.

なお、各チャネルごとの波形生成処理は、各フェーズ
Pにおいて、時分割で行われる。
Note that the waveform generation processing for each channel is performed in a time division manner in each phase P.

微分回路31の出力α、乗算器32の出力β、加算器
33の出力EPは、それぞれ、次式(1),(2),(3)
で表される。
Output alpha P of the differentiating circuit 31, the output beta P of the multiplier 32, the adder
33 the output E P of each equation (1), (2), (3)
It is represented by

なお、式(1),(2),(3)において、nは単位
遅延回路311の遅延回数を示す。
In the expressions (1), (2) and (3), n indicates the number of delays of the unit delay circuit 311.

αPn=αP(n-1)×τ …(1) βPn=αPn×GP …(2) EPn=βPn+LP …(3) 乗算器32の利得パラメータGは次式(4)で表され
る。
α Pn = α P (n- 1) × τ P ... (1) β Pn = α Pn × G P ... (2) E Pn = β Pn + L P ... (3) gain parameter G of the multiplier 32 is expressed by the following equation It is represented by (4).

T(P+1)n=EPn−LP+1 …(4) ここで、T(P+1)nは、現在、生成中のフェーズPの次
のフェーズ(P+1)のある単位時間におけるパラメー
タである。このパラメータT(P+1)nは、あるフェーズP
の波形生成中に生成される。そして、実際には、あるフ
ェーズPからの次のフェーズ(P+1)への切換わり位
置で生成されたパラメータT(P+1)nが、次のフェーズ
(P+1)の利得GP+1として使用される。
T (P + 1) n = E Pn −L P + 1 (4) Here, T (P + 1) n is a unit time of a phase (P + 1) next to the phase P currently being generated. Parameter. This parameter T (P + 1) n is a certain phase P
Is generated during the generation of the waveform. And, in fact, the next phase (P + 1) generated by the switched position of the parameter T (P + 1) n from one phase P is used as the gain G P + 1 of the next phase (P + 1) Is done.

なお、式(4)はフェーズPの切換わり位置で、波形
の連続性を保つことを目的として定められたものであ
る。
Equation (4) is determined for the purpose of maintaining the continuity of the waveform at the switching position of the phase P.

以上詳述したようにこの実施例によれば、まず、正規
化された時変数信号を生成し、次に、この時変数信号に
対して、正規化により失われた交流振幅レベルと直流新
幅レベルを再生する処理を施すことにより、本来のエン
ベロープ信号を生成するようにしたので、目標レベルを
指定するためのパラメータを使うことなく、波形を生成
することができる。これにより、目標レベルに関係な
く、波形を生成することができ、目標レベルが変わって
も波形生成時間が変わることがない。また、目標レベル
が変わるたびに、目標レベルに到達したか否かを判定す
るための比較対象を変える必要がない。さらに、目標レ
ベルまでの変位が小さくても、目的のエンベロープ波形
を得ることができる。
As described above in detail, according to this embodiment, first, a normalized time variable signal is generated, and then the AC amplitude level and the DC Since the original envelope signal is generated by performing the process of reproducing the level, the waveform can be generated without using a parameter for designating the target level. Thus, a waveform can be generated regardless of the target level, and the waveform generation time does not change even if the target level changes. Further, each time the target level changes, it is not necessary to change the comparison target for determining whether the target level has been reached. Further, even if the displacement to the target level is small, a desired envelope waveform can be obtained.

第3図はこの発明の他の実施例の構成を示す回路図で
ある。
FIG. 3 is a circuit diagram showing a configuration of another embodiment of the present invention.

先の実施例では、正規化された時変数信号を指数関数
波形のまま出力する場合を説明した。
In the above embodiment, the case where the normalized time variable signal is output as an exponential function waveform has been described.

これに対し、この実施例は、正規化された時変数信号
を直線波形として出力するようにしたものである。
On the other hand, in this embodiment, the normalized time variable signal is output as a linear waveform.

これを第4図に用いて概略的に説明する。 This will be schematically described with reference to FIG.

図において、(f)が目的とするエンベロープ信号を
示す。
In the figure, (f) shows the target envelope signal.

このようなエンベロープ信号を得るために、この実施
例では、まず、第4図(a)に示すように、正規化され
た時変数信号を、直線波形として出力する。
In order to obtain such an envelope signal, in this embodiment, first, as shown in FIG. 4 (a), a normalized time variable signal is output as a linear waveform.

次に、第4図(d)に示すように、この時変数信号に
対して、交流振幅レベルを再生するための処理を施す。
Next, as shown in FIG. 4 (d), a process for reproducing the AC amplitude level is performed on the variable signal at this time.

次に、第4図(e)に示すように、この交流振幅レベ
ルを再生された信号を対数/リニア変換により、指数関
数波形化して出力する。
Next, as shown in FIG. 4 (e), this AC amplitude level is reproduced as an exponential function waveform by log / linear conversion and output.

最後に、第4図(f)に示すように、この指数関数波
形化された信号に対して、直流振幅レベルを再生する処
理を施す。これにより、目的のエンベロープ信号が得ら
れる。
Finally, as shown in FIG. 4 (f), the signal having the exponential function waveform is subjected to a process of reproducing the DC amplitude level. As a result, a desired envelope signal is obtained.

なお、第4図において、(b)はフェーズPの切換え
を要求するリクエスト信号REQを示す。このリクエスト
信号REQは、各フェーズPの切り換わり位置でエンベロ
ープジェネレータ12からCPU18に供給される。CPU18はこ
のリクエスト信号REQを受け取ると、次に供給すべきパ
ラメータをROM22から読み出してエンベロープジェネレ
ータ12に供給する処理等を行う。
In FIG. 4, (b) shows a request signal REQ for requesting the switching of the phase P. The request signal REQ is supplied from the envelope generator 12 to the CPU 18 at the switching position of each phase P. Upon receiving the request signal REQ, the CPU 18 performs a process of reading the next parameter to be supplied from the ROM 22 and supplying the parameter to the envelope generator 12.

また、(c)は第13図のパネルスイッチ部19のエンベ
ロープ選択スイッチで選択されたエンベロープ信号の波
形を強制的に変更するか否かを示すライトフラグWflgで
ある。このライトフラグWflgは、上記の如く、アフター
タッチやキーオフといった波形変更情報があったとき、
CPU18により1に設定される。図には、この波形変更情
報が無いため、ライトフラグWflgが0である場合を示
す。
(C) is a write flag Wflg indicating whether the waveform of the envelope signal selected by the envelope selection switch of the panel switch section 19 in FIG. 13 is forcibly changed. As described above, this light flag Wflg indicates that when there is waveform change information such as after touch or key off,
Set to 1 by CPU18. The figure shows a case where the write flag Wflg is 0 because there is no waveform change information.

次に、上述した処理を実現するための第3図の構成に
ついて説明する。
Next, the configuration of FIG. 3 for realizing the above-described processing will be described.

まず、エンベロープ信号を生成するための構成を説明
する。
First, a configuration for generating an envelope signal will be described.

図において、41は正規化された時変数信号を直線波形
として出力する微分回路である。
In the figure, reference numeral 41 denotes a differentiating circuit which outputs a normalized time variable signal as a linear waveform.

この微分回路41は、セレクタ411、時変数メモリ412、
減算器413により構成されている。
This differentiating circuit 41 includes a selector 411, a time variable memory 412,
It is configured by a subtractor 413.

時変数メモリ412には、各フェーズPの切換わり位置
で初期値として1が書き込まれる。この初期値1はCPU1
8からセレクタ411を介して与えられる。
In the time variable memory 412, 1 is written as an initial value at the switching position of each phase P. This initial value 1 is CPU1
8 through the selector 411.

時変数メモリ412に書き込まれた初期値1は、減算器4
13に供給され、後述するパラメータメモリ53から供給さ
れる時間パラメータτを減じられる。この時間パラメ
ータτは目標レベルまでの到達時間を指定するパラメ
ータであり、0<τ<1の値を有する。
The initial value 1 written in the time variable memory 412 is
13, the time parameter τ P supplied from the parameter memory 53 described later is reduced. This time parameter τ P is a parameter that specifies the time to reach the target level, and has a value of 0 <τ P <1.

減算器413の減算出力は、セレクタ411を介して時変数
メモリ412に供給され、この時変数メモリ412に書き込ま
れる。時変数メモリ412に書き込まれたデータは、単位
時間後に読み出され、減算器413において、再び時間パ
ラメータτを減じられる。この減算出力はセレクタ41
1を介して再び時変数メモリ412に供給され、この時変数
メモリ412に書き込まれる。
The subtraction output of the subtractor 413 is supplied to the time variable memory 412 via the selector 411 and is written to the variable memory 412 at this time. The data written in the time variable memory 412 is read out after a unit time, and the subtractor 413 reduces the time parameter τ P again. This subtraction output is output to selector 41
It is again supplied to the time variable memory 412 via 1 and is written to the variable memory 412 at this time.

以下、同様に、単位時間ごとに減算処理が繰り返され
る。これにより、時変数信号の振幅レベルがτずつ減
少し、第4図(a)に示すような直線波形が得られる。
Hereinafter, similarly, the subtraction process is repeated for each unit time. As a result, the amplitude level of the time variable signal decreases by τ P, and a linear waveform as shown in FIG. 4A is obtained.

微分回路41の出力αは、乗算器42に供給され、パラ
メータメモリ53から読み出された利得パラメータGPと乗
算される。これにより、第4図(d)に示すように、交
流振幅レベルが再生された波形が得られる。
The output α P of the differentiating circuit 41 is supplied to the multiplier 42 and multiplied by the gain parameter GP read from the parameter memory 53. Thereby, as shown in FIG. 4D, a waveform in which the AC amplitude level is reproduced is obtained.

乗算器42の出力βPfは,対数/リニア変換回路43によ
り直線波形から指数関数波形に変換される。これによ
り、第4図(e)に示すような波形が得られる。
The output β Pf of the multiplier 42 is converted from a linear waveform into an exponential function waveform by a logarithmic / linear conversion circuit 43. As a result, a waveform as shown in FIG. 4 (e) is obtained.

対数/リニア変換回路43の出力βPLは、セレクタ44を
介して加減算器45に供給され、パラメータメモリ53から
読み出された振幅パラメータLPと加算される。これによ
り、第4図(f)に示すように、直流振幅レベルの再生
された波形が得られる。
Output beta PL logarithmic / linear conversion circuit 43 is supplied to the adder-subtractor 45 via the selector 44, and is added to the amplitude parameter L P read out from the parameter memory 53. Thus, a reproduced waveform having a DC amplitude level is obtained as shown in FIG. 4 (f).

上記微分回路41の出力αは、また、比較器46に供給
され、スレッシュホールドレベルTL(第4図(a)参
照)と比較される。この比較器46は出力αがスレッシ
ュホールドレベルTLより小さくなると、制御信号発生回
路47に第4図(b)に示すようなリクエスト信号REQを
供給する。
The output α P of the differentiating circuit 41 is also supplied to a comparator 46 and compared with a threshold level TL (see FIG. 4A). When the output α P becomes smaller than the threshold level TL, the comparator 46 supplies a request signal REQ as shown in FIG.

このリクエスト信号REQは、制御信号発生回路47からC
PUインターフェース48を介してCPU18に供給される。こ
れにより、次のフェーズ(P+1)の波形を生成するた
めの初期設定がなされる。
The request signal REQ is sent from the control signal generation circuit 47 to C
It is supplied to the CPU 18 via the PU interface 48. As a result, initialization for generating the waveform of the next phase (P + 1) is performed.

以下、同様に、フェーズPが変わるたびに、初期設定
が行われ、全てのフェーズPの波形が得られる。
Hereinafter, similarly, each time the phase P changes, initialization is performed, and waveforms of all the phases P are obtained.

次に、上記乗算器42の利得パラメータGを生成するた
めの構成を説明する。
Next, a configuration for generating the gain parameter G of the multiplier 42 will be described.

上記加減算器45の出力EPは、各単位時間ごとにレジス
タ49に保持される。上記セレクタ44は、各単位時間の前
半では、対数/リニア変換回路43の出力βPL選択する。
これに対し、後半では、レジスタ49に保持された加減算
器45の出力EPを選択する。
Output E P of the adder-subtracter 45 is held in the register 49 for each unit time. The selector 44 selects the output β PL of the logarithmic / linear conversion circuit 43 in the first half of each unit time.
In contrast, in the second half, it selects the output E P of the adder-subtractor 45 which is held in the register 49.

上記パラメータメモリ53からは、各単位時間の前半で
は、現在のフェーズPの振幅パラメータLPが読み出さ
れ、後半では、次のフェーズ(P+1)の振幅パラメー
タLP+1が読み出される。
From the parameter memory 53, in the first half of each time unit, the amplitude parameter L P of the current phase P is read in the second half, the amplitude parameter L P + 1 of the next phase (P + 1) is read.

上記加減算器45は、各単位時間の前半では、セレクタ
44を介して与えられる対数/リニア変換回路43の出力β
PLと現在のフェーズPの振幅パラメータLPを加算する。
これに対し、後半では、セレクタ44を介して与えられる
レジスタ49の保持データEPからパラメータメモリ53から
読み出された次のフェーズ(P+1)の振幅パラメータ
LP+1を減ずる。これにより、各単位時間の後半で、次の
フェーズPの利得パラメータT(P+1)Lが得られる。
In the first half of each unit time, the adder / subtractor 45
The output β of the logarithmic / linear conversion circuit 43 given via 44
The amplitude parameter LP of the current phase P is added to PL .
In contrast, in the second half, amplitude parameters of the next phase read from the parameter memory 53 from the content E P register 49 applied through selector 44 (P + 1)
Reduce L P + 1 . Thereby, the gain parameter T (P + 1) L of the next phase P is obtained in the latter half of each unit time.

加減算器45から単位時間毎に得られる利得パラメータ
T(P+1)Lは、指数関数波形化されたEPを基に生成された
ものである。したがって、この利得パラメータT(P+1)L
は、リニア/対数変換回路50によりリニア/対数変換さ
れる。
Gain parameter obtained per unit time from adder / subtractor 45
T (P + 1) L are those generated based on the exponential waveform of been E P. Therefore, this gain parameter T (P + 1) L
Is linearly / logarithmically converted by the linear / logarithmic conversion circuit 50.

このリニア/対数変換された利得パラメータT(P+1)L
はレジスタ51に保持される。このレジスタ51に保持され
た利得パラメータT(P+1)fは、次の単位時間にセレクタ5
2を介してパラメータメモリ53に書き込まれる。
This linear / logarithmically converted gain parameter T (P + 1) L
Are held in the register 51. The gain parameter T (P + 1) f held in this register 51 is used by the selector 5 in the next unit time.
The data is written to the parameter memory 53 via the line 2.

パラメータメモリ53に書き込まれた利得パラメータT
(P+1)fは、各単位時間ごとに更新される。
Gain parameter T written in parameter memory 53
(P + 1) f is updated for each unit time.

そして、微分回路41の出力αがスレッシュホールド
レベルTLに達した時点の利得パラメータT(P+1)fが、次
のフェーズPの利得パラメータGP+1として登録される。
Then, the gain parameter T (P + 1) f at the time when the output α P of the differentiating circuit 41 reaches the threshold level TL is registered as the gain parameter G P + 1 of the next phase P.

このように、利得パラメータGは、各フェーズPの波
形生成過程において、エンベロープジェネレータ12の内
部で自動的に生成される。
As described above, the gain parameter G is automatically generated inside the envelope generator 12 in the waveform generation process of each phase P.

なお、制御信号発生回路47は、CPU18の制御の基に、
セレクタ411等の各部の動作を制御する。
The control signal generating circuit 47 is controlled by the CPU 18 to
The operation of each unit such as the selector 411 is controlled.

第5図はパラメータメモリ53のデータ格納構造を示す
図である。
FIG. 5 is a diagram showing a data storage structure of the parameter memory 53.

図示の如く、パラメータメモリ53は、現在のフェーズ
PのパラメータτP,GP,LPを格納するワークエリアW
と、次のフェーズPのパラメータτP+1,T
(P+1)f(GP+1),LP+1を格納するバッファエリアBを有
する2重構造となっている。そして、各エリアW,Bはさ
らに各チャネルCH(=0〜m)ごとに分割されている。
As shown, the parameter memory 53 stores a work area W for storing the parameters τ P , G P , and L P of the current phase P.
And the parameters τ P + 1 , T of the next phase P
It has a double structure having a buffer area B for storing (P + 1) f ( GP + 1 ) and LP + 1 . The areas W and B are further divided for each channel CH (= 0 to m).

このような構成において、最初のフェーズ0のパラメ
ータτ0,G0,L0はワークエリアWに格納され次のフェー
ズ1のパラメータτ1,L1がバッファエリアBに格納され
る。この処理はCPU18により行われる。この場合、パラ
メータはCPU18からCPUインターフェース48、セレクタ52
を介してパラメータメモリ53に供給される。これに対
し、次のフェーズ1の利得パラメータT1f(G1)は、上
記の如く、現在のフェーズ0の波形生成処理の過程で算
出され、バッファエリアBに書き込まれる。この書込み
はエンベロープジェネレータ12の内部で自動的に行われ
る。
In such a configuration, the parameters τ 0 , G 0 , L 0 of the first phase 0 are stored in the work area W, and the parameters τ 1 , L 1 of the next phase 1 are stored in the buffer area B. This process is performed by the CPU 18. In this case, the parameters are from CPU 18 to CPU interface 48, selector 52
Is supplied to the parameter memory 53 via On the other hand, the gain parameter T 1f (G 1 ) of the next phase 1 is calculated in the process of the current phase 0 waveform generation processing and written into the buffer area B as described above. This writing is automatically performed inside the envelope generator 12.

最初のフェーズ0の波形生成処理が済むと、バッファ
エリアBの内容がワークエリアWに転送される。この処
理はエンベロープジェネレータ12の内部で自動的に行わ
れる。この後、バッファエリアBには、CPL18により3
番目のフェーズ2のパラメータτ2,L2が書き込まれる。
この3番目のフェーズ2の振幅パラメータT2fは2番目
のフェーズP1の処理過程で生成され、バッファエリアB
に格納される。
After the first phase 0 waveform generation processing, the contents of the buffer area B are transferred to the work area W. This process is automatically performed inside the envelope generator 12. Thereafter, buffer area B contains 3
The parameters τ 2 and L 2 of the second phase 2 are written.
The amplitude parameter T 2f of the third phase 2 is generated in the process of the second phase P1, and the buffer area B
Is stored in

以下同様に、フェーズPが変わるたびに、バッファエ
リアBからワークエリアWへのパラメータの転送、バッ
ファエリアBへの時間パラメータτと振幅パラメータL
の書込み、次のフェーズ(P+1)の振幅パラメータG
の算出及びこの算出結果のバッファエリアBの書込みが
なされる。
Similarly, every time the phase P changes, the parameters are transferred from the buffer area B to the work area W, and the time parameter τ and the amplitude parameter L are transferred to the buffer area B.
, The amplitude parameter G of the next phase (P + 1)
Is calculated and the result of this calculation is written in the buffer area B.

第6図は、あるフェーズPにおけるチャネル単位の波
形生成処理を示すフローチャートである。
FIG. 6 is a flowchart showing a waveform generation process for each channel in a certain phase P.

このチャネル単位の波形生成処理は、各フェーズPに
おいて、時分割で行われる。以下、これを第6図を参照
しながら説明する。
This waveform generation processing for each channel is performed in a time-division manner in each phase P. Hereinafter, this will be described with reference to FIG.

なお、第6図には、各フェーズPの波形生成処理、フ
ェーズPの切換え処理の他に、強制的に波形を変更する
処理(強制的にフェーズP9を切り換える処理)を示す。
FIG. 6 shows a process of forcibly changing the waveform (a process of forcibly switching the phase P9) in addition to the waveform generation process of each phase P and the switching process of the phase P.

まず、各フェーズPの波形生成処理及び各フェーズの
切換え処理を説明する。
First, the waveform generation processing of each phase P and the switching processing of each phase will be described.

図において、ステップS1では、CPL18により、最初の
チャネル0が指定される。
In the figure, in step S1, the first channel 0 is designated by CPL18.

次のステップS2では、チャネル0の波形生成処理と次
のフェーズ(P+1)の振幅パラメータT(P+1)fの生成
処理がなされる。なお、このステップS2で、FLXは対数
/リニア変換を示し、FXLはリニア/対数変換を示す。
In the next step S2, the waveform generation processing of channel 0 and the generation processing of the amplitude parameter T (P + 1) f of the next phase (P + 1) are performed. In step S2, FLX indicates logarithmic / linear conversion, and FXL indicates linear / logarithmic conversion.

次のステップS3では、ライトフラグWflg(CH)が1か
否かが判定される。ライトフラグWflg(CH)が1の場合
は、強制的に波形変更される。この詳細については後述
する。一方、ライトフラグWflg(CH)が0の場合は、ス
テップS4の処理がなされる。
In the next step S3, it is determined whether the write flag Wflg (CH) is 1 or not. When the write flag Wflg (CH) is 1, the waveform is forcibly changed. The details will be described later. On the other hand, if the write flag Wflg (CH) is 0, the process of step S4 is performed.

このステップS4では微分回路41の出力α(CH)がス
レッシュホールドレベルTLに達したか否かが判定され
る。スレッシュホールドレベルTLに達していなければ、
ステップS7に移り、チャネル1が指定される。
In this step S4, it is determined whether or not the output α P (CH) of the differentiating circuit 41 has reached the threshold level TL. If the threshold level TL has not been reached,
Moving to step S7, channel 1 is designated.

次のステップS8では、チャネルCHが最大チャネルmに
達したか否かが判定される。達していなければ、ステッ
プS2に戻る。
In the next step S8, it is determined whether or not the channel CH has reached the maximum channel m. If not, the process returns to step S2.

これにより、チャネル1の波形生成処理と利得パラメ
ータT(P+1)fの生成処理がなされる。
Thus, the waveform generation processing of channel 1 and the generation processing of gain parameter T (P + 1) f are performed.

以下、同様に最大チャネルmまで、波形生成処理と利
得パラメータT(P+1)fの生成処理がなされる。
Hereinafter, similarly, the waveform generation processing and the generation processing of the gain parameter T (P + 1) f are performed up to the maximum channel m.

最大チャネルmまでの処理が済むと、ステップS8から
ステップS1に戻り、再び、チャネル0からチャネルmま
での処理が実行される。つまり、各単位時間ごとにチャ
ネル0からチャネルmまでの処理が繰り返される。
When the processing up to the maximum channel m is completed, the process returns from step S8 to step S1, and the processing from channel 0 to channel m is executed again. That is, the processing from channel 0 to channel m is repeated for each unit time.

この処理過程で、微分回路41の出力α(CH)がスレ
ッシュホールドレベルTLに達すると、ステップS4からス
テップS5に移る。このステップS5では、制御信号発生回
路47にリクエスト信号REQ(CH)が供給される。
In this process, when the output α P (CH) of the differentiating circuit 41 reaches the threshold level TL, the process proceeds from step S4 to step S5. In this step S5, the request signal REQ (CH) is supplied to the control signal generation circuit 47.

次のステップS6では、パラメータメモリ53のバッファ
エリアBの内容が自動的にワークエリアWに転送され
る。また、CPU18により、微分回路41の時変数メモリ412
に初期値1が書き込まれるとともに、ライトフラグWflg
(CH)が0に設定される。
In the next step S6, the contents of the buffer area B of the parameter memory 53 are automatically transferred to the work area W. Further, the CPU 18 allows the time variable memory 412 of the differentiating circuit 41 to be used.
The initial value 1 is written to the write flag Wflg.
(CH) is set to 0.

なお、時変数メモリ412は、第7図に示すように、各
チャネルCHごとにデータ格納エリアを有する。したがっ
て、初期値1は対応するチャネルCHのデータ格納エリア
についてだけ行われる。これは、ライトフラグWflg(C
H)の設定についても同様である。
The time variable memory 412 has a data storage area for each channel CH as shown in FIG. Therefore, the initial value 1 is performed only for the data storage area of the corresponding channel CH. This is the write flag Wflg (C
The same applies to the setting of H).

この後、ステップS7に移り、チャネルCHが更新され
る。したがって、今度は、次のチャネル(CH)につい
て、ステップS5とS6によるフェーズ切換え処理が行われ
る。
Thereafter, the process proceeds to step S7, where the channel CH is updated. Therefore, this time, the phase switching process in steps S5 and S6 is performed for the next channel (CH).

全てのチャネルCHについて、フェーズ切換え処理が済
むと、ステップS8からステップS1に移り、次のフェーズ
Pについて、再び上述したような処理が実行される。
When the phase switching process is completed for all the channel CHs, the process moves from step S8 to step S1, and the above-described process is executed again for the next phase P.

フェーズ切換え時のCPU18の処理は第8図に示され
る。
The processing of the CPU 18 at the time of phase switching is shown in FIG.

この第8図のステップS11では、チャネル0が設定さ
れる。
In step S11 of FIG. 8, channel 0 is set.

次のステップS12では、リクエスト信号REQ(CH)の有
無が判定される。
In the next step S12, the presence or absence of the request signal REQ (CH) is determined.

リクエスト信号REQ(CH)が無ければ、ステップS14
で、チャネル1が設定される。
If there is no request signal REQ (CH), step S14
, Channel 1 is set.

次のステップS15では、チャネルCHが最大チャネルm
まで達したか否かが判定される。
In the next step S15, the channel CH is set to the maximum channel m
Is determined.

最大チャネルmに達していなければ、ステップS12に
戻る。したがって、今度は、チャネル1について、上述
したような処理が実行される。
If the maximum channel m has not been reached, the process returns to step S12. Therefore, the above-described processing is performed on channel 1 this time.

以下、各チャネル(CH)について、同様の処理が繰り
返される。最大チャネルmに達すると、ステップS15か
らステップS11に移り、次の単位時間について、チャネ
ル0からチャネルmまで再び同様の処理が実行される。
Hereinafter, the same processing is repeated for each channel (CH). When the maximum channel m is reached, the process moves from step S15 to step S11, and the same processing is executed again from channel 0 to channel m for the next unit time.

一方、リクエスト信号REQがあると、ステップS12から
ステップS13に移る。このステップS13では、バッファエ
リアBに対するパラメータτP+1(CH),LP+1(CH)の書
込み、内部レジスタに対するライトフラグWflg(CH)の
書込みといった処理が実行される。
On the other hand, when there is the request signal REQ, the process proceeds from step S12 to step S13. In step S13, processing such as writing the parameters τ P + 1 (CH) and L P + 1 (CH) to the buffer area B and writing the write flag Wflg (CH) to the internal register is executed.

なお、パラメータτP+1(CH),LP+1(CH)の書込み
は、バッファエリアBの内容がワークエリアWに転送さ
れた後に行われる。
The writing of the parameters τ P + 1 (CH) and L P + 1 (CH) is performed after the contents of the buffer area B have been transferred to the work area W.

次に、第9図を参照しながら、波形を強制的に変更す
る処理(フェーズPを強制的に変更する処理を説明す
る。
Next, a process for forcibly changing the waveform (a process for forcibly changing the phase P will be described with reference to FIG. 9).

なお、第9図はアタック部の途中から波形を強制的に
減衰させ、音を出さなくする場合を示す。
FIG. 9 shows a case where the waveform is forcibly attenuated in the middle of the attack portion so that no sound is produced.

CPU18は、このような波形変更処理を指示するための
波形変更情報を受けると、まず、波形変更情報により指
定される波形を生成するためのパラメータをROM22から
読み出し、パラメータメモリ53のバッファエリアBに書
き込む。この後、CPU18はライトフラグWflgを1にセッ
トする。これにより、先の第6図においては、ステップ
S3の処理が済むと、ステップS6の処理が実行される。そ
の結果、バッファエリアBの内容がワークエリアWに転
送され、時変数メモリ412に初期値1が書き込まれる。
これにより、第9図に示すように、強制的にアタック部
の途中から新しい波形が生成される。
When receiving the waveform change information for instructing such a waveform change process, the CPU 18 first reads from the ROM 22 a parameter for generating the waveform specified by the waveform change information, and stores the read parameter in the buffer area B of the parameter memory 53. Write. Thereafter, the CPU 18 sets the write flag Wflg to 1. As a result, in FIG.
When the processing in S3 is completed, the processing in step S6 is executed. As a result, the contents of the buffer area B are transferred to the work area W, and the initial value 1 is written to the time variable memory 412.
As a result, as shown in FIG. 9, a new waveform is forcibly generated from the middle of the attack portion.

なお、強制的に波形を変更する態様としては、第9図
に示すような態様に限らず、例えば、次のような態様が
考えられる。
The mode for forcibly changing the waveform is not limited to the mode shown in FIG. 9, but may be, for example, the following mode.

(1) 第13図のタッチセンサー21からアフタータッチ
を示す情報が与えられる場合。
(1) When information indicating after touch is provided from the touch sensor 21 in FIG.

この場合は、CPU18はアフタータッッチ情報が与えら
れた段階で、このアフタータタッチ情報によって示され
るフェーズPのパラメータをROM22から読み出し、これ
とバッファエリアBに格納されているパラメーと置き換
える。この後、バッファエリアBの内容がワークエリア
Wに転送されるので、アフタータッチに応じた波形変更
がなされる。第10図に、この場合の波形の一例を示す。
なお、この第10図には、リリース部の途中でアフタータ
ッチ情報があった場合を示す。
In this case, when the aftertouch information is given, the CPU 18 reads out the parameters of the phase P indicated by the aftertouch information from the ROM 22 and replaces them with the parameters stored in the buffer area B. Thereafter, since the contents of the buffer area B are transferred to the work area W, the waveform is changed according to the after touch. FIG. 10 shows an example of a waveform in this case.
FIG. 10 shows a case where there is aftertouch information in the middle of the release section.

(2) 第13図のタッチセンサー21からキ−オフを示す
情報が与えられる場合。
(2) When information indicating a key-off is given from the touch sensor 21 in FIG.

例えば、電子オルガンにおいては、キーが押されてい
る間は楽音を出力し続け、キーが離されると、楽音を減
衰させるようになっている。そこで、第11図に示すよう
に、サスティン部の途中で、キーオフ情報があったら、
バッファエリアBにリリース部のパラメータを書き込
み、これをワークエリアWに転送するようにすれば、サ
スティン部の途中からでも強制的にリリース部に切り換
えることができる。
For example, in an electronic organ, a tone is continuously output while a key is pressed, and the tone is attenuated when the key is released. Therefore, as shown in FIG. 11, if there is key-off information in the middle of the sustain section,
If the parameters of the release section are written in the buffer area B and are transferred to the work area W, it is possible to forcibly switch to the release section even in the middle of the sustain section.

(3) 楽音信号にトレモロ波形を付加する場合。(3) When adding a tremolo waveform to a tone signal.

この場合は、第12図に示すように、例えば、ディケィ
部の途中から波形を強制的にトレモロ波形に変更するこ
とにより、トレモロ波形を付加された楽音信号を得るこ
とができる。このようにエンベロープ信号の波形を強制
的に変更することにより、トレモロ波形を付加する構成
によれば、従来のように、第13図の累算器14の後段にト
レモロ付加回路を設ける構成に比べ、チャネル単位やキ
ー単位でトレモロ波形を付加することが簡単となる。
In this case, as shown in FIG. 12, for example, by forcibly changing the waveform to a tremolo waveform in the middle of the decay section, a tone signal with a tremolo waveform added can be obtained. According to the configuration in which the tremolo waveform is added by forcibly changing the waveform of the envelope signal in this manner, compared to a configuration in which a tremolo adding circuit is provided after the accumulator 14 in FIG. It is easy to add a tremolo waveform in channel units or key units.

(4) シンセサイザーのように、エンベロープ信号の
波形を演奏者が適宜編集することができる場合。
(4) When the performer can appropriately edit the waveform of the envelope signal as in a synthesizer.

この場合は、編集位置で波形を強制的に指定された波
形に変更することにより、簡単に編集機能を実現するこ
とができる。
In this case, the editing function can be easily realized by forcibly changing the waveform at the editing position to the specified waveform.

以上詳述したこの実施例においても、先の実施例と同
様の効果を得ることができることは勿論、さらに、次の
ような効果を得ることができる。
In this embodiment described in detail above, the same effects as those of the previous embodiment can be obtained, and further, the following effects can be obtained.

すなわち、この実施例では、正規化された時変数信号
をリニア/対数変換により直線波形にして出力するよう
にしたので、微分回路41の微分処理を乗算処理ではな
く、減算処理により行うことができる。これにより、微
分回路41の構成を簡単にすることができる。
That is, in this embodiment, since the normalized time variable signal is output as a linear waveform by linear / logarithmic conversion, the differentiation processing of the differentiating circuit 41 can be performed not by multiplication processing but by subtraction processing. . Thus, the configuration of the differentiating circuit 41 can be simplified.

また、時変数信号を直線波形にして出力するようにし
たことにより、各フェーズPの波形は必ずスレッシュホ
ールドレベルTLに到達する。これにより、微分回路41の
出力αとスレッシュホールドレベルTLとを比較する比
較器46の構成を簡単にすることができる。
Since the time variable signal is output as a linear waveform, the waveform of each phase P always reaches the threshold level TL. Thus, it is possible to simplify the configuration of a comparator 46 for comparing the output alpha P and the threshold level TL of the differentiating circuit 41.

以上この発明の実施例をいくつか説明したが、この発
明はこのような実施例に限定されるものではない。
Although several embodiments of the present invention have been described above, the present invention is not limited to such embodiments.

例えば、第3図の実施例では、微分用の減算器413と
エンベロープ信号生成用及び利得パラメータT(P+1)L
成用の加減算器45を別々に設ける場合を説明した。しか
し、この発明はこれらを1つで兼用し、時分割で駆動す
るようにしてもよい。
For example, in the embodiment of FIG. 3, a case has been described in which the subtractor 413 for differentiation and the adder / subtractor 45 for generating the envelope signal and for generating the gain parameter T (P + 1) L are separately provided. However, in the present invention, one of them may be used in common and driven in a time-division manner.

また、先の実施例では、この発明を楽音信号に強弱を
付加するためのエンベロープ信号の生成に適用する場合
を説明したが、任意の関数波形の生成にも適用すること
ができる。
In the above embodiment, the case where the present invention is applied to generation of an envelope signal for adding strength to a tone signal has been described. However, the present invention can be applied to generation of an arbitrary function waveform.

この他にもこの発明はその要旨を逸脱しない範囲で種
々様々変形実施可能なことは勿論である。
In addition to this, it goes without saying that the present invention can be variously modified and implemented without departing from the scope of the invention.

〔発明の効果〕〔The invention's effect〕

以上詳述したようにこの発明によれば、正規化された
波形について波形生成処理を行えばよいので、目標レベ
ルが変わっても波形生成時間が変わることがない。また
目標レベルが変わるたびに、目標レベルに到達したか否
かを判定するための比較対象を変える必要がない。さら
に、目標レベルまでの変位が小さくても、目的の波形を
持つエンベロープ信号を得ることができる。
As described in detail above, according to the present invention, the waveform generation processing may be performed on the normalized waveform, so that the waveform generation time does not change even if the target level changes. Further, every time the target level changes, it is not necessary to change the comparison target for determining whether the target level has been reached. Further, even if the displacement to the target level is small, an envelope signal having a target waveform can be obtained.

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

第1図はこの発明の一実施例の構成を示す回路図、 第2図は第1図の動作を説明するための信号波形図、 第3図はこの発明の他の実施例の構成を示す回路図、 第4図は第3図の動作を説明するための信号波形図、 第5図は第3図のパラメータメモリ53の構成を示す図、 第6図は第3図の動作を説明するためのフローチャー
ト、 第7図は第3図の時変数メモリの構成を説明するための
図、 第8図は第3図の動作を説明するためのフローチャー
ト、 第9図は第3図の動作を説明するための信号波形図、 第10図〜第12図は波形変更態様例を示す信号波形図、 第13図はこの発明のエンベロープ信号発生装置が用いら
れる楽音信号発生装置の一例の構成を示す回路図、 第14図は従来のエンベロープ信号の生成処理を説明する
ための図である。 18……CPU、31,41……微分回路、32,42,312……乗算
器、33……加算器、43……対数/リニア変換回路、44,5
2,411……セレクタ、45……加減算器、46……比較器、4
7……制御信号発生回路、48……CPUインタフェース、4
9,51……レジスタ、50……リニア/対数変換回路、53…
…パラメータメモリ、311……単位遅延回路、412……時
変数メモリ、413……減算器。
FIG. 1 is a circuit diagram showing the configuration of one embodiment of the present invention, FIG. 2 is a signal waveform diagram for explaining the operation of FIG. 1, and FIG. 3 shows the configuration of another embodiment of the present invention. FIG. 4 is a signal waveform diagram for explaining the operation of FIG. 3, FIG. 5 is a diagram showing the configuration of the parameter memory 53 of FIG. 3, and FIG. 6 is a diagram for explaining the operation of FIG. 7 is a diagram for explaining the configuration of the time variable memory shown in FIG. 3, FIG. 8 is a flowchart for explaining the operation of FIG. 3, and FIG. 9 is a diagram for explaining the operation of FIG. 10 to 12 are signal waveform diagrams showing examples of waveform changing modes, and FIG. 13 is a diagram showing an example of a configuration of a tone signal generating device in which the envelope signal generating device of the present invention is used. FIG. 14 is a circuit diagram for explaining a conventional envelope signal generation process. 18 CPU CPU 31, 41 Differentiator circuit 32, 42, 312 Multiplier 33 Adder 43 Logarithmic / linear conversion circuit 44, 5
2,411: Selector, 45: Adder / subtractor, 46: Comparator, 4
7 ... Control signal generation circuit, 48 ... CPU interface, 4
9,51 ... register, 50 ... linear / logarithmic conversion circuit, 53 ...
... parameter memory, 311 ... unit delay circuit, 412 ... time variable memory, 413 ... subtractor.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】1ないしそれ以上のフェーズから構成され
るエンベロープ波形を生成するために、エンベロープ波
形生成処理が行われている当該フェーズのパラメータを
記憶する第1の記憶領域、ならびに引き続くエンベロー
プ波形生成処理の行われるフェーズのパラメータを記憶
する第2の記憶領域からなるパラメータ記憶手段と、 前記パラメータ記憶手段の第1の記憶領域から供給され
る時間パラメータにより指定された時間に応じて、第1
の基準値から第2の基準値に到達する時変数信号を生成
する時変数信号発生手段と、 前記時変数信号が第2の基準値に到達したことを検出す
ることによりフェーズの切り換わりを検出するためのフ
ェーズ切り換わり検出手段と、 前記パラメータ記憶手段の第1の記憶領域から供給され
る利得パラメータと前記時変数信号発生手段の出力とを
乗算するための第1の波形生成手段と、 前記パラメータ記憶手段の第1の記憶領域から供給され
る振幅パラメータと前記第1の波形生成手段の出力とを
加算するための第2の波形生成手段と、 引き続いてエンベロープ波形生成処理の行われるフェー
ズの利得パラメータを逐次算出し、前記パラメータ記憶
手段の第2の記憶領域に供給する利得パラメータ算出手
段と、 前記フェーズ切り換わり検出手段により検出されたフェ
ーズ切り換わりに応じて前記パラメータ記憶手段の第2
の記憶領域から第1の記憶領域に対して所要パラメータ
を転送するための転送手段と、 前記転送手段による転送動作の終了に応じて、引き続く
フェーズのパラメータを第2の記憶領域に書き込むため
の書き込み手段と、 を具備することを特徴とするエンベロープ信号発生装
置。
1. A first storage area for storing parameters of a phase in which an envelope waveform generation process is being performed to generate an envelope waveform composed of one or more phases, and a subsequent envelope waveform generation. A parameter storage unit including a second storage area for storing a parameter of a phase in which a process is performed; and a first storage unit configured to store a parameter specified by a time parameter supplied from a first storage area of the parameter storage unit.
A time variable signal generating means for generating a time variable signal reaching a second reference value from the reference value of the above, and detecting a phase change by detecting that the time variable signal has reached a second reference value Phase switching detecting means for performing a phase change, a first waveform generating means for multiplying a gain parameter supplied from a first storage area of the parameter storing means and an output of the time variable signal generating means, A second waveform generating means for adding the amplitude parameter supplied from the first storage area of the parameter storing means and the output of the first waveform generating means, and a phase in which an envelope waveform generating process is subsequently performed. Gain parameter calculating means for sequentially calculating a gain parameter and supplying the gain parameter to a second storage area of the parameter storage means; Second said parameter memory means in accordance with the more the detected phase switched-
Transfer means for transferring required parameters from the storage area to the first storage area, and writing for writing parameters of a succeeding phase to the second storage area in response to the end of the transfer operation by the transfer means. Means, and an envelope signal generator.
【請求項2】前記エンベロープ信号の各フェーズの波形
が指数関数波形であること、 前記時変数信号発生手段が、直線波形化された時変数信
号を発生するように構成されること、 前記第1の波形生成手段が、前記直線波形化された時変
数信号を対数/リニア変換により指数関数波形化して出
力するように構成されること、 を特徴とする請求項1に記載のエンベロープ信号発生装
置。
2. The waveform of each phase of the envelope signal is an exponential function waveform, wherein the time variable signal generating means is configured to generate a time variable signal having a linear waveform. The envelope signal generating apparatus according to claim 1, wherein the waveform generating means is configured to output the time variable signal that has been converted into a linear waveform into an exponential function waveform by logarithmic / linear conversion.
JP2218237A 1990-08-21 1990-08-21 Envelope signal generator Expired - Fee Related JP2640560B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2218237A JP2640560B2 (en) 1990-08-21 1990-08-21 Envelope signal generator
US07/619,863 US5127304A (en) 1990-08-21 1990-11-29 Envelope signal generating apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2218237A JP2640560B2 (en) 1990-08-21 1990-08-21 Envelope signal generator

Publications (2)

Publication Number Publication Date
JPH04101197A JPH04101197A (en) 1992-04-02
JP2640560B2 true JP2640560B2 (en) 1997-08-13

Family

ID=16716749

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2218237A Expired - Fee Related JP2640560B2 (en) 1990-08-21 1990-08-21 Envelope signal generator

Country Status (1)

Country Link
JP (1) JP2640560B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100728391B1 (en) * 2003-12-19 2007-06-13 (주)해안기계산업 Sliding padeye

Also Published As

Publication number Publication date
JPH04101197A (en) 1992-04-02

Similar Documents

Publication Publication Date Title
JP2567717B2 (en) Musical sound generator
JPH0782340B2 (en) Musical tone signal generator
JP2640560B2 (en) Envelope signal generator
US4562763A (en) Waveform information generating system
US5478968A (en) Stereophonic sound generation system using timing delay
JP2782270B2 (en) Envelope signal generator
JPH0428319B2 (en)
US5109746A (en) Envelope generator for use in an electronic musical instrument
US5347087A (en) Tone generation device capable of varying delay time length at the start of tone generation
JPS6211357B2 (en)
US5284080A (en) Tone generating apparatus utilizing preprogrammed fade-in and fade-out characteristics
JP3459760B2 (en) Music sound generating apparatus and music sound generating method
US5127304A (en) Envelope signal generating apparatus
JP2701177B2 (en) Tone generator
JP2595999B2 (en) Envelope generator
JP3504387B2 (en) Electronic musical instrument
JP2888712B2 (en) Music generator
JP3408653B2 (en) Envelope signal generator
JP3221987B2 (en) Delay time modulation effect device
JP3018620B2 (en) Electronic musical instrument
JP3448187B2 (en) Electronic musical instrument
JP2947525B2 (en) Envelope generator
JP3649906B2 (en) Electronic instrument key-on delay effect addition device
JP2545053Y2 (en) Address setting device
JP2626474B2 (en) Tone generator

Legal Events

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

Free format text: PAYMENT UNTIL: 20080502

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20090502

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees