JPH0254959B2 - - Google Patents

Info

Publication number
JPH0254959B2
JPH0254959B2 JP58131266A JP13126683A JPH0254959B2 JP H0254959 B2 JPH0254959 B2 JP H0254959B2 JP 58131266 A JP58131266 A JP 58131266A JP 13126683 A JP13126683 A JP 13126683A JP H0254959 B2 JPH0254959 B2 JP H0254959B2
Authority
JP
Japan
Prior art keywords
envelope
section
waveform
envelope signal
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 - Lifetime
Application number
JP58131266A
Other languages
Japanese (ja)
Other versions
JPS6022187A (en
Inventor
Kazuhiro Murase
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP58131266A priority Critical patent/JPS6022187A/en
Publication of JPS6022187A publication Critical patent/JPS6022187A/en
Publication of JPH0254959B2 publication Critical patent/JPH0254959B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は電子楽器等に用いるエンベロープ付加
装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an envelope adding device used in electronic musical instruments and the like.

従来例の構成とその問題点 従来、楽音波形にエンベロープを付加する方法
として、エンベロープ波形をエンベロープメモリ
に記憶しておき、エンベロープメモリから順次エ
ンベロープ波形サンプルを読み出し、そのエンベ
ロープ波形サンプルと楽音波形との乗算を行ない
エンベロープを付加するもの、エンベロープメモ
リの記憶内容を対数表示としてデータ容量を軽減
し、メモリから読み出したデータを指数変換して
楽音波形と乗算するもの、エンベロープ波形を折
れ線で近似し各折れ点間の傾向きをエンベロープ
メモリに記憶しておき傾向きデータを順次累算す
ることによりエンベロープ波形を求め楽音波形と
乗算しエンベロープを付加するものなどが提示さ
れているが、いずれの方法もエンベロープメモリ
が必要となる。さらに、高精度なエンベロープを
付加する場合、エンベロープメモリの容量が大き
くなるという問題点を有していた。
Configuration of conventional example and its problems Conventionally, as a method for adding an envelope to a musical sound waveform, the envelope waveform is stored in an envelope memory, the envelope waveform samples are sequentially read from the envelope memory, and the combination of the envelope waveform sample and the musical sound waveform is Some methods perform multiplication and add an envelope, others display the stored contents of the envelope memory in logarithmic form to reduce the data volume, convert the data read from the memory exponentially, and then multiply it by the musical sound waveform. Some methods have been proposed, such as storing the trend between points in an envelope memory and sequentially accumulating the trend data to obtain the envelope waveform and multiplying it by the musical sound waveform to add the envelope. Memory is required. Furthermore, when adding a highly accurate envelope, there is a problem in that the capacity of the envelope memory becomes large.

発明の目的 本発明の目的は、エンベロープ波形メモリをも
たず、乗算、シフト処理を用いた簡単な構成でエ
ンベロープを付加するエンベロープ付加装置を提
供するものである。
OBJECTS OF THE INVENTION An object of the present invention is to provide an envelope adding device that does not have an envelope waveform memory and adds an envelope with a simple configuration using multiplication and shift processing.

発明の構成 本発明のエンベロープ付加装置は、楽音波形を
生成する波形発生部と、所定時間ごとに歩進処理
を行ないエンベロープ信号を発生するエンベロー
プ発生部と、乗算部と、シフタ部とを具備し、上
記エンベロープ信号を上位、下位の2グループに
分け、上記乗算部で上記波形発生部の出力信号と
下位エンベロープ信号との乗算を行ない、上記乗
算結果を上位エンベロープ信号に基づいて上記シ
フタ部でシフト処理を行なうことにより、エンベ
ロープを付加した楽音波形を得るものであり、エ
ンベロープ波形を記憶するエンベロープメモリを
もたず、乗算、シフト処理を用いてエンベロープ
を付加するものである。
Structure of the Invention The envelope adding device of the present invention includes a waveform generation section that generates a musical sound waveform, an envelope generation section that performs step processing at predetermined time intervals and generates an envelope signal, a multiplication section, and a shifter section. , divides the envelope signal into two groups, upper and lower, and multiplies the output signal of the waveform generator by the lower envelope signal in the multiplier, and shifts the multiplication result in the shifter based on the upper envelope signal. By performing the processing, a musical sound waveform with an envelope added is obtained.It does not have an envelope memory to store the envelope waveform, and adds the envelope using multiplication and shift processing.

さらに、本発明は、楽音波形を生成する波形発
生部と、所定時間ごとに歩進処理を行ないエンベ
ロープ信号に基づいた歩進データを発生する歩進
データ発生部と、乗算部とシフタ部とを具備し、
上記エンベロープ信号を上位、下位の2グループ
に分け上記乗算部で上記波形発生部の出力信号と
下位エンベロープ信号との乗算を行ない、上記乗
算結果を上位エンベロープ信号に基づいて上記シ
フタ部でシフト処理を行なうことによりエンベロ
ープを付加した楽音波形を得るものである。
Furthermore, the present invention includes a waveform generation section that generates a musical sound waveform, a step data generation section that performs step processing at predetermined time intervals and generates step data based on an envelope signal, a multiplier section, and a shifter section. Equipped with
The envelope signal is divided into two groups, upper and lower, and the multiplier section multiplies the output signal of the waveform generator by the lower envelope signal, and the shifter section shifts the multiplication result based on the upper envelope signal. By doing this, a musical sound waveform with an envelope added is obtained.

さらに本発明は、楽音波形を生成する波形発生
部と、発音楽音波形の振幅レベルを設定するレベ
ル設定部と、所定時間ごとに歩進処理を行ない上
記レベル設定部で設定した振幅レベルに基づいた
エンベロープ信号を発生するエンベロープ発生部
と、乗算部と、シフタ部とを具備し、上記エンベ
ロープ信号を上位、下位の2グループに分け、上
記乗算部で上記波形発生部の出力信号と下位エン
ベロープ信号との乗算を行ない、上記乗算結果を
上位エンベロープ信号に基づいて上記シフタ部で
シフト処理を行ならことによりエンベロープを付
加した楽音波形を得るとともに、上記レベル設定
部で設定した振幅レベルの楽音波形を得るもので
ある。
Furthermore, the present invention includes a waveform generation section that generates a musical sound waveform, a level setting section that sets the amplitude level of the generated musical sound waveform, and a step-up process that is performed at predetermined time intervals based on the amplitude level set by the level setting section. The envelope signal is divided into two groups, upper and lower, and the multiplication section generates the output signal of the waveform generation section and the lower envelope signal. Then, the multiplication result is subjected to shift processing in the shifter section based on the upper envelope signal, thereby obtaining a musical sound waveform with an envelope added, and a musical sound waveform at the amplitude level set in the level setting section. It's something you get.

実施例の説明 以下本発明の一実施例を図面に基づいて説明す
る。
DESCRIPTION OF EMBODIMENTS An embodiment of the present invention will be described below based on the drawings.

まず、エンベロープ付加方法について説明す
る。
First, the envelope addition method will be explained.

エンベロープ信号EDを20ビツト構成とし、上
位4ビツトをEDU(Q)、下位16ビツトをEDL
(R)とする。
The envelope signal ED consists of 20 bits, the upper 4 bits are EDU (Q), and the lower 16 bits are EDL.
(R).

第1図にエンベロープ信号EDとエンベロープ
付加楽音波形の振幅レベルの関係を示す。
FIG. 1 shows the relationship between the envelope signal ED and the amplitude level of the envelope-added musical sound waveform.

楽音信号と下位エンベロープ信号をEDLとの
乗算を行ない、その乗算結果を、上位エンベロー
プ信号EDUで−6dBステツプのシフト処理を行
ない、減衰エンベロープを付加する。
The musical tone signal and the lower envelope signal are multiplied by the EDL, and the result of the multiplication is shifted in -6 dB steps using the upper envelope signal EDU, and an attenuation envelope is added.

下式にエンベロープ付加楽音波形サンプル値を
求める演算式を示す。
The equation below shows the calculation formula for obtaining the sample value of the envelope-added sound waveform.

f(x,e)=f(x)/2q−1/2q+1・r/2R・f
(x) ……(1) q(q3q2q1q0;2進整数)は、上位エンベロー
プ信号EDUを表わす。
f(x, e)=f(x)/2 q −1/2 q+1・r/2 R・f
(x) ...(1) q (q 3 q 2 q 1 q 0 ; binary integer) represents the upper envelope signal EDU.

(q=0、1、2、……2Q-1;Q=4) r(rR-1……r1r0;2進整数)は、下位エンベロ
ープ信号EDLを表わす。
(q=0, 1, 2, . . . 2 Q-1 ; Q=4) r (r R-1 . . . r 1 r 0 ; binary integer) represents the lower envelope signal EDL.

(r=0、1、……2R-1;R=16) エンベロープEDの発生方法は、一定時間ごと
に、ED=ED-1+ΔEDと云う演算処理を行なうこ
とにより発生している。
(r=0, 1, . . . 2 R-1 ; R=16) Envelope ED is generated by performing the calculation ED=ED -1 +ΔED at regular intervals.

第2図に、(1)式のエンベロープ付加を実現する
構成図を示す。
FIG. 2 shows a block diagram for realizing envelope addition in equation (1).

第2図において、1は楽音波形を発生する波形
発生部、2はエンベロープ信号EDを格納するレ
ジスタ、3は増分値ΔEDを格納する増分レジス
タ、4は加算器、5はエンベロープ信号の状態を
制御するゲート、6は乗算器、7,8はシフタ、
9は論理反転を行なう反転ゲート、10はキヤソ
入力データ、11は加算器である。
In Fig. 2, 1 is a waveform generator that generates a musical sound waveform, 2 is a register that stores the envelope signal ED, 3 is an increment register that stores the incremental value ΔED, 4 is an adder, and 5 is a controller that controls the state of the envelope signal. 6 is a multiplier, 7 and 8 are shifters,
Reference numeral 9 represents an inversion gate that performs logic inversion, 10 represents negative input data, and 11 represents an adder.

ここで、波形発生部1について述べる。波形発
生部1は、複数枚の波形と上記波形を用いて合成
波形を生成する時に使用する制御データとを記憶
するデータメモリ部と上記制御データと波形とを
順次読み出し最終波形をくり返し読み出すデータ
読み出し部と、上記データ読み出し部で読み出し
た制御データと波形サンプルデータとを用い合成
波形サンプルを生成する波形計算部とで構成し、
上記波形計算部で生成する合成波形を順次読み出
し合成波形を生成する補間区間と最終波形をくり
返し読み出し合成波形を生成するホールド区間と
を有し、楽音の立上り部における波形の変化(音
色の変化)を補間区間で近似し、楽音の定常部に
おける安定した波形をホールド区間で近似し、た
楽音波形を発生するものであり、楽音発生部の動
作については、特願昭57−231482号「楽音発生装
置」に述べてある。
Here, the waveform generator 1 will be described. The waveform generation section 1 includes a data memory section that stores a plurality of waveforms and control data used when generating a composite waveform using the waveforms, and a data readout section that sequentially reads out the control data and waveforms and repeatedly reads out the final waveform. and a waveform calculation unit that generates a composite waveform sample using the control data and waveform sample data read by the data reading unit,
It has an interpolation section in which the synthesized waveform generated by the waveform calculation section is sequentially read out to generate the synthesized waveform, and a hold section in which the final waveform is repeatedly read out and generated in the synthesized waveform, and the waveform changes (timbre change) at the rising edge of the musical tone. is approximated by an interpolation interval, and a stable waveform in the stationary part of a musical tone is approximated by a hold interval to generate a musical sound waveform. equipment”.

第2図中、一定時間ごとにレジスタ2に格納し
ているエンベロープ信号EDと増分レジスタ3に
格納している増分値ΔEDとを加算器4で加算演
算する。そして、演算結果は、ゲート5を介して
乗算器6、シフタ7,8に供給するとともに、レ
ジスタ2に新エンベロープ信号EDとして格納す
る。
In FIG. 2, an adder 4 adds the envelope signal ED stored in the register 2 and the increment value ΔED stored in the increment register 3 at regular intervals. The calculation result is then supplied to the multiplier 6 and shifters 7 and 8 via the gate 5, and is also stored in the register 2 as a new envelope signal ED.

ゲート5の動作としては、次の3種類の動作状
態がある。
The gate 5 operates in the following three operating states.

(i) 鍵スイツチがオン状態の場合 鍵スイツチがオン状態の場合、ゲート5の出
力は常時(0)10となる。この結果、乗算器6
には(0)10を供給することになり、加算器1
1の出力信号ADDは、ADD=f(x);(f
(x)は波形発生部1の出力信号である)とな
る。
(i) When the key switch is on When the key switch is on, the output of gate 5 is always (0) 10 . As a result, multiplier 6
(0) 10 is supplied to adder 1.
The output signal ADD of 1 is ADD=f(x);(f
(x) is the output signal of the waveform generator 1).

(ii) 鍵スイツチがオンからオフに変化した場合 この場合は、加算器4で加算処理を行なつた
結果が、ゲート5の出力に現われる。すなわ
ち、エンベロープ付加処理を行なう。
(ii) When the key switch changes from on to off In this case, the result of addition processing performed by adder 4 appears at the output of gate 5. That is, envelope addition processing is performed.

(iii) 上述エンベロープ信号EDUが(111)2となつ
た場合 信号EDUが(1111)2となると、エンベロー
プ信号ED全ビツト(20ビツト)を常時“1”
とする。この結果、楽音信号の発生を停止する
ことになる。
(iii) When the envelope signal EDU mentioned above becomes (111) 2 When the signal EDU becomes (1111) 2 , all bits (20 bits) of the envelope signal ED are always “1”.
shall be. As a result, generation of musical tone signals is stopped.

波形発生部1で発生した楽音信号f(x)と下
位エンベロープ信号EDL(r)との乗算を乗算部
6で行ない、乗算結果の上位16ビツトをシフタ8
に供給する。そして、シフタ8において、上位エ
ンベロープ信号EDU(q)に基づいたシフト処理
を行ない、シフト結果を反転ゲート9を介して加
算器11に供給する。シフタ8の出力信号は、(1)
式の 1/2q+1・r/2R・f(x)項に相当する。
The musical tone signal f(x) generated by the waveform generator 1 is multiplied by the lower envelope signal EDL(r) in the multiplier 6, and the upper 16 bits of the multiplication result are sent to the shifter 8.
supply to. Then, the shifter 8 performs shift processing based on the upper envelope signal EDU(q), and supplies the shift result to the adder 11 via the inverting gate 9. The output signal of shifter 8 is (1)
This corresponds to the 1/2 q+1・r/2 R・f(x) term in the equation.

また、波形発生部1で発生した楽音信号f(x)
はシフタ7にも供給しており、シシフタ7におい
て、上位エンベロープ信号EDU(q)に基づいた
シフト処理を行ない、シフト結果を加算器11に
供給している。シフタの出力信号は(1)式の
f(x)/2q項に相当する。
Also, the musical tone signal f(x) generated by the waveform generator 1
is also supplied to the shifter 7, which performs shift processing based on the upper envelope signal EDU(q) and supplies the shift result to the adder 11. The output signal of the shifter corresponds to the f(x)/ 2q term in equation (1).

そして、加算器11において加算処理を行な
い、減衰エンベロープを付加した楽音波形を求め
ることができる。
Addition processing is then performed in the adder 11 to obtain a musical sound waveform to which an attenuation envelope has been added.

次に、エンベロープを付加する開始時点から、
楽音の発生を停止するまでの時間の関係について
述べる。
Next, from the starting point of adding the envelope,
The relationship between the time until the generation of musical tones stops will be described.

加算器4で加算処理を行なう周期を22μSごと
とすると、エンベロープ時間TENVは、 TENV=(24−1)216/ΔED×22μS ……(2) となる。
Assuming that the adder 4 performs addition processing every 22 μS, the envelope time T ENV is T ENV = (2 4 −1) 2 16 /ΔED×22 μS (2).

ΔEDは増分レジスタ3に格納している増分値
である。
ΔED is an increment value stored in the increment register 3.

たとえば、ΔED=1なら、TENVは21.6Sとな
り、ΔED=2ならTENV=10.8S、ΔED=64なら
337.5mSとなる。
For example, if ΔED = 1, T ENV is 21.6S, if ΔED = 2, T ENV = 10.8S, and if ΔED = 64, T ENV is 21.6S.
It becomes 337.5mS.

なお、第2図には、加算器4,11とシフタ
7,8がそれぞれ2個づつ用意しているが、時分
割的処理を行なうことで、それぞれ1個づつとす
ることができる。
Although two adders 4 and 11 and two shifters 7 and 8 are provided in FIG. 2, they can be reduced to one each by performing time-sharing processing.

第3図は本発明の他の実施例の構成図である。
第2図と同一機能のものには同一符号を付して説
明を省略する。
FIG. 3 is a block diagram of another embodiment of the present invention.
Components having the same functions as those in FIG. 2 are designated by the same reference numerals and their explanations will be omitted.

第3図の構成は、(1)式に示したエンベロープ付
加演算式を簡略化したものを具現化するものであ
る。
The configuration shown in FIG. 3 embodies a simplified version of the envelope addition calculation formula shown in equation (1).

(7)式に簡略化したエンベロープ付加演算式を示
す。
Equation (7) shows a simplified envelope addition calculation equation.

f(x,e)=f(x)/2q−1/2q+1・r/2R・f
(x) =f(x)−r/2f(x)1/2R/2q =(2R−r/2)−f(x)/2R/2q 上式の(2R−r/2)項は、 2R=1+R-1 〓i=0 1.2i=1+2R-1+R-2 〓i=0 1.2i ……(3) r/2=R-1 〓i=0 ri・2(r-1) ……(4) (r=rR-1……r1r0;2進整数(R=16))と表
現することができる。
f(x, e)=f(x)/2 q −1/2 q+1・r/2 R・f
(x) = f(x)-r/2f(x)1/2 R /2 q = (2 R -r/2)-f(x)/2 R /2 q (2 R -r /2) term is 2 R = 1 + R-1 〓 i=0 1.2 i = 1 + 2 R-1 + R-2 〓 i=0 1.2 i ...(3) r/2 = R-1 〓 i=0 It can be expressed as r i・2 (r-1) ...(4) (r=r R-1 ... r 1 r 0 ; binary integer (R=16)).

(4)式のr0・2-1(i=0)を無視すると r/2=R-1 〓i=0 ri・2(i-1)=R-2 〓i=0 ri+1・2i ……(5) となる。 Ignoring r 0・2 -1 (i=0) in equation (4), r/2= R-1 〓 i=0 r i・2 (i-1) = R-2 〓 i=0 r i+ 1・2 i ……(5).

(3)式と(5)式を用いて2R−r/2を表現すると、 2R−r/2=1+2R-1+R-2 〓i=0 1.2i −R-2 〓i=0 ri+1・2i =1+1.2R-1+R-2 〓i=0 (1−ri+1)・2i ……(6) となる。 Expressing 2 R − r/2 using equations (3) and (5), 2 R − r/2=1+2 R-1 + R-2 〓 i=0 1.2 i − R-2 〓 i= 0 r i+1・2 i =1+1.2 R-1 + R-2 〓 i=0 (1−r i+1 )・2 i ...(6).

(6)式のR-2 〓i=0 (1−ri+1)・2i項は、(R-1……2 1;
2進整数)と等価なものである。
The R-2 〓 i=0 (1−r i+1 )・2 i term in equation (6) is ( R-1 ... 2 1 ;
(binary integer).

この結果、f(x,e)は f(x,e)≒(1.2(R-1)+r/―′)・f(x)・1
/2R/2q
……(7) 〔′=R-1……2 1;2進整数〕 として、近似することができる。
As a result, f(x, e) is f(x, e)≒(1.2 (R-1) +r/-')・f(x)・1
/2 R /2 q
...(7) It can be approximated as [′= R-1 ... 2 1 ; binary integer].

第3図において、レジスタ2に格納しているエ
ンベロープ信号EDは一定時間ごとに加算器4に
おいて増分値ΔEDとの加算処理を行ない、歩進
する。
In FIG. 3, the envelope signal ED stored in the register 2 is added to the increment value ΔED in the adder 4 at regular intervals, and is incremented.

そして、下位エンベロープ信号EDL(16ビツト
構成は)反転ゲート9を介して乗算器6に供給し
ている。反転ゲート9の入・出力信号の関係は、
次のようになる。
The lower envelope signal EDL (16-bit configuration) is supplied to the multiplier 6 via the inverting gate 9. The relationship between the input and output signals of the inversion gate 9 is as follows:
It will look like this:

入力=r、出力=1・2(R-1)+′ すなわち、入力信号r(r15(MSB)、r14、r13、
……、r2、r1、r0(LSB)を右に1ビツトシフト
(r15→r14、r14→r13、r13→r12、……、r2→r1、r1
→r0、r0は切り捨て)する。そして、シフト結果
を反転(r→)し、最上位ビツトr15を常時
“1”(1・2(R-1))とすることにより、出力信号
(1・2(R-1)+′)を求める。
Input = r, output = 1・2 (R-1) +' In other words, input signal r(r 15 (MSB), r 14 , r 13 ,
..., r 2 , r 1 , r 0 (LSB) are shifted one bit to the right (r 15 → r 14 , r 14 → r 13 , r 13 → r 12 , ..., r 2 → r 1 , r 1
→ r 0 , r 0 is rounded down). Then, by inverting the shift result (r→) and keeping the most significant bit r 15 always at “1” (1·2 (R-1) ), the output signal (1·2 (R-1) +′ ).

乗算部6において、楽音発生部1で発生した楽
音信号f(x)と反転ゲート9の出力信号との乗
算を行ない、乗算結果の上位16ビツトをシフタ7
に供給する。乗算器6は16ビツト×16ビツト=32
ビツト構成となつており、上位16ビツトのみを使
用することにより(1/2R=1/216)の処理を行なう ことと等価になる。
The multiplier 6 multiplies the musical tone signal f(x) generated by the musical tone generating section 1 by the output signal of the inversion gate 9, and transfers the upper 16 bits of the multiplication result to the shifter 7.
supply to. Multiplier 6 is 16 bits x 16 bits = 32
It has a bit structure, and by using only the upper 16 bits, it is equivalent to performing (1/2 R = 1/2 16 ) processing.

そして、シフタ7において、乗算結果を、上位
エンベロープ信号EDU(4ビツト;1/20、1/21、… …、1/214、1/215=発音停止であり出力は常時すて “0”となる)に基づいてシフト処理を行ない、
減衰エンベロープ付加楽音波形f(x、e)を算
出する。
Then, the shifter 7 transmits the multiplication result to the upper envelope signal EDU (4 bits; 1/2 0 , 1/2 1 , ..., 1/2 14 , 1/2 15 = sound generation is stopped and the output is always discarded). Shift processing is performed based on the value (becomes “0”),
Calculate the attenuation envelope added musical sound waveform f(x, e).

第4図は、本発明の他の実施例の構成図であ
る。
FIG. 4 is a block diagram of another embodiment of the present invention.

第3図と同一機能のものには同一附号を付して
説明を省略する。
Components with the same functions as those in FIG. 3 are given the same reference numbers and their explanations are omitted.

第4図において、12は歩進データ発生部であ
る。
In FIG. 4, reference numeral 12 represents a step data generation section.

第3図の実施例の場合、エンベロープ信号ED
の歩進処理を行なう時に用いる増分値ΔEDは一
定であつたが、第4図の実施例では、レジスタ2
に格納している上位エンベロープ信号EDUを歩
進データ発生部12に供給し、信号EDUに基づ
いた増分値ΔED(q)が歩進データ発生部12から
加算器4に供給する構成となつており、増分値
ΔEDが信号EDUによつて変化することになる。
In the case of the embodiment shown in Fig. 3, the envelope signal ED
The increment value ΔED used when performing the increment process is constant, but in the embodiment shown in FIG.
The upper envelope signal EDU stored in the signal EDU is supplied to the incremental data generating section 12, and the incremental value ΔED (q) based on the signal EDU is supplied from the incremental data generating section 12 to the adder 4. , the increment value ΔED changes depending on the signal EDU.

この結果、第1図に示した減衰エンベロープの
傾向きが6dBステープごとに調整でき、折れ点を
有したエンベロープ特性などが実現できる。
As a result, the tendency of the attenuation envelope shown in FIG. 1 can be adjusted in steps of 6 dB, and an envelope characteristic with a break point can be realized.

第5図は、本発明の他の実施例の構成図であ
る。
FIG. 5 is a block diagram of another embodiment of the present invention.

第3図と同一機能のものには同一符号を付して
説明を省略する。
Components with the same functions as those in FIG. 3 are designated by the same reference numerals and their explanations will be omitted.

第5図において、13は楽音の振幅レベルを設
定するレベルデータを格納するレベルレジスタ、
14はゲートである。
In FIG. 5, 13 is a level register that stores level data for setting the amplitude level of musical tones;
14 is a gate.

第2図に示したゲート5は、鍵スイツチがオン
状態の場合、ゲート5の出力は常時(0)10とな
つていたが、ゲート14の場合は、レベルレジス
タ13に格納したレベルデータLDを常時選択す
るようになつている。この結果、エンベロープ信
号ED=レベルデータLDとなり、鍵スイツチがオ
ン状態の場合、レベルデータLDに対応す振幅レ
ベルの楽音信号がシフタ7の出力から得られる。
In the gate 5 shown in FIG. 2, when the key switch is in the on state, the output of the gate 5 is always (0) 10 , but in the case of the gate 14, the level data LD stored in the level register 13 is output. It has become a constant choice. As a result, the envelope signal ED=level data LD, and when the key switch is in the on state, a musical tone signal having an amplitude level corresponding to the level data LD is obtained from the output of the shifter 7.

そして、鍵スイツチがオンからオフへ変化する
と、ゲート5と同様に、エンベロープ信号の歩進
処理を行なう。この場合、レベルデータLDの設
定位置から歩進を行なう。
Then, when the key switch changes from on to off, the envelope signal is incremented similarly to the gate 5. In this case, stepping is performed from the position set by the level data LD.

そして、ゲート5と同様に、上位エンベロープ
信号EDUが(1111)2となるとそれ以後、エンベ
ロープ信号ED全ビツト(20ビツト)を常時“1”
とする。この結果、楽音信号の発生を停止するこ
とになる。
Then, similarly to gate 5, when the upper envelope signal EDU becomes (1111) 2 , from then on, all bits (20 bits) of the envelope signal ED are always set to "1".
shall be. As a result, generation of musical tone signals is stopped.

レベルデータLDと振幅レベルとの関係につい
て述べる。
The relationship between level data LD and amplitude level will be described.

レベルデータLDは、8ビツト構成(LD7
(MSB)、LD6、……、LD1、LD0(LSB)となつ
ており、エンベロープ信号EDとの関係は、LD7
=ED19、LD6=ED18、LD5=ED17、……LD1=
ED13、LD0=ED12となる。
The level data LD has an 8-bit configuration (LD 7
(MSB), LD 6 , ..., LD 1 , LD 0 (LSB), and the relationship with the envelope signal ED is LD 7
= ED 19 , LD 6 = ED 18 , LD 5 = ED 17 , ...LD 1 =
ED 13 , LD 0 =ED 12 .

ED19〜ED16は上位エンベロープ信号EDU(Q3、
Q1、Q2、Q0)に相当する。
ED 19 to ED 16 are upper envelope signals EDU (Q 3 ,
Q 1 , Q 2 , Q 0 ).

ED15〜ED12は、下位エンベロープ信号EDL
(R15(MSB)、R14、R13、……、R1、R0(LSB))
のR15〜R12のビツト位置に相当する。
ED 15 ~ ED 12 are lower envelope signals EDL
( R15 (MSB), R14 , R13 ,..., R1 , R0 (LSB))
Corresponds to bit positions R 15 to R 12 of .

この結果、振幅レベルの設定ステツプは、−
6dB/24=−0.375dBステツプとなる。このよう
に、鍵スイツチがオン状態時、エンベロープ信号
ED=レベルデータLDとしているので、振幅レベ
ル制御用に乗算器などを別に設けることなく、容
易に楽音の振幅レベルが制御できる。
As a result, the amplitude level setting step is -
6dB/2 4 = -0.375dB step. In this way, when the key switch is on, the envelope signal
Since ED=level data LD, the amplitude level of musical tones can be easily controlled without providing a separate multiplier or the like for amplitude level control.

第6図に鍵スイツチのオン/オフ状態とオルガ
ン型楽音、ピアノ型楽音のエンベロープ信号とを
示す。
FIG. 6 shows the on/off state of the key switch and the envelope signals of organ-type musical tones and piano-type musical tones.

第6図中、1は鍵スイツチのオン/オフ状態を
表わすものである。2はオルガン型エンベロープ
信号、3はピアノ型エンベロープ信号を表わすも
のである。
In FIG. 6, 1 represents the on/off state of the key switch. 2 represents an organ type envelope signal, and 3 represents a piano type envelope signal.

オルガン型の楽音の場合、鍵スイツチがオン状
態であれば、エンベロープ信号は常時(0)10あ
るいはレベルレジスタ14に格納したレベルデー
タLDとなる。そして、鍵スイツチがオンからオ
フ状態に変化すると、エンベロープ信号の歩進処
理を開始し、上位エンベロープ信号EDUが
(1111)2となると歩進処理を停止し楽音の発生を
停止するエンベロープ信号を発生する。
In the case of organ-type musical tones, if the key switch is on, the envelope signal is always (0) 10 or the level data LD stored in the level register 14. When the key switch changes from on to off, it starts stepping the envelope signal, and when the upper envelope signal EDU reaches (1111) 2 , it stops stepping and generates an envelope signal that stops the generation of musical tones. do.

ピアノ型楽音の場合は、鍵スイツチがオフ状態
からオン状態に変化すると、エンベロープ信号を
(0)10に初期設定あるいは、レベルレジスタ14
に格納しれレベルデータLDを設定し、その後、
エンベロープ信号の歩進処理を行ない、上位エン
ベロープ信号EDUが(1111)2となると、歩進処
理を停止し楽音の発生を停止する。エンベロープ
信号を発生する。
In the case of a piano-type musical tone, when the key switch changes from the off state to the on state, the envelope signal is initialized to (0) 10 or the level register 14 is set.
Set the level data LD to be stored, and then
Step processing of the envelope signal is performed, and when the upper envelope signal EDU reaches (1111) 2 , the step processing is stopped and the generation of musical tones is stopped. Generates an envelope signal.

なお、第2図〜第5図の実施例では、増分値
ΔEDは1種類あるいは、上位エンベロープ信号
EDUによつて変化するものであつたが、複数の
増分値ΔED1、ΔED2、……、ΔEDNを用意し、上
記増分値ΔED1〜ΔEDNから所定の増分値ΔEDを
選択し、歩進処理を行なうような構成とすること
により、減衰エンベロープの時間を制御すること
ができる。
In the embodiments shown in FIGS. 2 to 5, the increment value ΔED is of one type or the upper envelope signal.
Although it varies depending on the EDU, a plurality of increment values ΔED 1 , ΔED 2 , ..., ΔED N are prepared, and a predetermined increment value ΔED is selected from the above-mentioned increment values ΔED 1 to ΔED N. By adopting a configuration that performs advance processing, it is possible to control the time of the attenuation envelope.

また、増分レジスタ3に格納する増分値を減衰
エンベロープ特性に応じて異なるものを格納する
ことにより、上述と同様な減衰エンベロープの時
間を制御することができる。
Furthermore, by storing different increment values in the increment register 3 depending on the attenuation envelope characteristics, it is possible to control the attenuation envelope time in the same way as described above.

本発明の効果 以上説明したように、本発明のエンベロープ付
加装置は、楽音波形を生成する波形発生部と、所
定時間ごとに歩進処理を行ないエンベロープ信号
を発生するエンベロープ発生部と、乗算部と、シ
フタ部とを具備し、上記エンベロープ信号を上
位、下位の2グループに分け、上記乗算部で上記
波形発生部の出力信号と下位エンベロープ信号と
の乗算を行ない、上記乗算結果を上位エンベロー
プ信号に基づいて上記シフタ部でシフト処理を行
なうことにより、エンベロープを付加した楽音波
形を得るものであり、上記エンベロープ発生部
は、エンベロープ信号を格納するエンベロープレ
ジスタと増分値を格納する増分レジスタと加算器
などで構成し、所定時間ごとにエンベロープレジ
スタのエンベロープ信号と増分レジスタの増分値
とを加算処理を行なうことによりエンベロープ信
号の歩進処理を行ない、歩進処理したエンベロー
プ信号を用い、乗算部とシフタ部とで乗算、シフ
ト処理を行なつてエンベロープを付加するように
しているので、膨大なエンベロープが付加でき
る。また、波形発生部内に乗算手段が存在する場
合、乗算部をエンベロープ付加用と波形発生部用
とに時分割的に利用することにより、さらに回路
規模を小さくすることができ、LSI化に適した回
路構成となる。
Effects of the Present Invention As explained above, the envelope adding device of the present invention includes a waveform generation section that generates a musical sound waveform, an envelope generation section that performs stepping processing at predetermined time intervals to generate an envelope signal, and a multiplication section. , and a shifter section, divides the envelope signal into two groups, upper and lower, and multiplies the output signal of the waveform generator by the lower envelope signal in the multiplication section, and converts the multiplication result into the upper envelope signal. By performing shift processing on the basis of the envelope signal in the shifter section, a musical waveform with an envelope added is obtained.The envelope generating section includes an envelope register for storing an envelope signal, an increment register for storing an increment value, an adder, etc. The envelope signal is incremented by adding the envelope signal in the envelope register and the increment value in the increment register at predetermined time intervals. Since the envelope is added by performing multiplication and shift processing with , a huge amount of envelope can be added. In addition, if a multiplication means is present in the waveform generation section, the circuit size can be further reduced by using the multiplication section for adding an envelope and for the waveform generation section in a time-sharing manner, making it suitable for LSI implementation. This is the circuit configuration.

さらに本発明は、楽音波形を生成する波形発生
部と、所定時間ごとに歩進処理を行ないエンベロ
ープ信号を発生するエンベロープ発生部と、上記
エンベロープ信号に基づいた歩進データを発生す
る歩進データ発生部と、乗算部とシフタ部とを具
備し、上記エンベロープ信号を2グループに分け
(上位、下位)、上記乗算部で上記波形発生部の出
力信号と下位エンベロープ信号との乗算を行な
い、上記乗算結果を上位エンベロープ信号に基づ
いて上記シフタ部でシフト処理を行なうことによ
りエンベロープを付加した楽音波形を得るもので
あり、エンベロープ信号の内容に応じて歩進デー
タを調整できるようにしているので、折れ点を有
したエンベロープ特性を容易に実現できる。
Furthermore, the present invention includes a waveform generation section that generates a musical sound waveform, an envelope generation section that performs step processing at predetermined time intervals and generates an envelope signal, and a step data generator that generates step data based on the envelope signal. The envelope signal is divided into two groups (upper and lower), the multiplication section multiplies the output signal of the waveform generation section and the lower envelope signal, and the multiplication section includes a multiplication section, a multiplication section, and a shifter section. The result is shifted in the shifter section based on the upper envelope signal to obtain a musical sound waveform with an envelope added.Since the step data can be adjusted according to the contents of the envelope signal, there is no bending. Envelope characteristics with points can be easily realized.

さらに本発明は、楽音波形を生成する波形発生
部と、発音楽音波形の振幅レベルを設定するレベ
ル設定部と、所定時間ごとに歩進処理を行ない上
記レベル設定部で設定した振幅レベルに基づいた
エンベロープ信号を発生するエンベロープ発生部
と、乗算部と、シフタ部とを具備し、上記エンベ
ロープ信号を2グループに分け(上位、下位)上
記乗算部で上記波形発生部の出力信号と下位エン
ベロープ信号との乗算を行ない、上記乗算結果を
上位エンベロープ信号に基づいて上記シフタ部で
シフト処理を行なうことによりエンベロープを付
加した楽音波形を得るとともに、上記レベル設定
部で設定した振幅レベルの楽音波形を得るもので
あり、鍵スイツチがオン状態時、エンベロープ信
号をレベル設定部で設定した振幅レベルデータと
等しくし、その振幅レベルからエンベロープ信号
の歩進処理を行ない、振幅レベルに基づいたエン
ベロープ信号を発生しているので、振幅レベル制
御用に乗算器などを別に設ける必要がなく、容易
に楽音の振幅レベルが制御でき、振幅レベルに基
づいたエンベロープを付加できる。
Furthermore, the present invention includes a waveform generation section that generates a musical sound waveform, a level setting section that sets the amplitude level of the generated musical sound waveform, and a step-up process that is performed at predetermined time intervals based on the amplitude level set by the level setting section. The envelope signal is divided into two groups (upper and lower), and the multiplication section generates the output signal of the waveform generation section and the lower envelope signal. By performing a shift process on the multiplication result in the shifter section based on the upper envelope signal, a musical sound waveform with an envelope added is obtained, and a musical sound waveform having the amplitude level set in the level setting section is obtained. When the key switch is on, the envelope signal is made equal to the amplitude level data set in the level setting section, and the envelope signal is incremented from that amplitude level to generate an envelope signal based on the amplitude level. Therefore, there is no need to separately provide a multiplier or the like for amplitude level control, the amplitude level of musical tones can be easily controlled, and an envelope can be added based on the amplitude level.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図、第6図は本発明の動作説明図、第2
図、第3図、第4図、第5図はそれぞれ本発明の
実施例の構成図である。 1……波形発生部、2……レジスタ、3……増
分レジスタ、4……加算器、5……ゲート、6…
…乗算器、7,8……シフタ、9……反転ゲー
ト、10……キヤリー入力デンタ、11……加算
器、12……歩進データ発生部、13……レベル
レジスタ、14……ゲート。
1 and 6 are explanatory diagrams of the operation of the present invention, and
3, 4, and 5 are configuration diagrams of embodiments of the present invention, respectively. 1... Waveform generator, 2... Register, 3... Increment register, 4... Adder, 5... Gate, 6...
... Multiplier, 7, 8 ... Shifter, 9 ... Inversion gate, 10 ... Carry input data, 11 ... Adder, 12 ... Step data generation section, 13 ... Level register, 14 ... Gate.

Claims (1)

【特許請求の範囲】 1 楽音波形を生成する波形発生部と、所定時間
ごとに歩進処理を行ない20ビツトのエンベロープ
信号を発生するエンベロープ発生部と、乗算部
と、シフタ部とを具備し、上記エンベロープ信号
を上位4ビツトq、下位16ビツトγの2グループ
に分け、上記乗算部で上記波形発生部の出力信号
と下位エンベロープ信号との乗算を行ない、上記
乗算結果を上位エンベロープ信号に基づいて上記
シフタ部で1/2q+1倍を行なうことにより、エン ベロープを付加した楽音波形を得ることを特徴と
するエンベロープ付加装置。 2 楽音波形を生成する波形発生部と、所定時間
ごとに歩進処理を行ない20ビツトのエンベロープ
信号を発生するエンベロープ発生部と、上記エン
ベロープ信号に基づいた歩進データを発生する歩
進データ発生部と、乗算部とシフタ部とを具備
し、上記エンベロープ信号を上位4ビツトq、下
位16ビツトγの2グループに分け、上記乗算部で
上記波形発生部の出力信号と下位エンベロープ信
号との乗算を行ない、上記乗算結果を上位エンベ
ロープ信号に基づいて上記シフタ部で1/2q+1倍 を行なうことによりエンベロープを付加した楽音
波形を得るとともに、エンベロープ信号に基づい
た歩進データでエンベロープ信号の歩進処理を行
なうことにより折れ点を有するエンベロープ特性
を付加した楽音波形を得ることを特徴とするエン
ベロープ付加装置。 3 楽音波形を生成する波形発生部と、発音楽音
波形の振幅レベルを設定するレベル設定部と、所
定時間ごとに歩進処理を行ない上記レベル設定部
で設定した振幅レベルに基づいた20ビツトのエン
ベロープ信号を発生するエンベロープ発生部と、
乗算部と、シフタ部とを具備し、上記エンベロー
プ信号を上位4ビツトq、下位16ビツトγの2グ
ループに分け、上記乗算部で上記波形発生部の出
力信号と下位エンベロープ信号との乗算を行な
い、上記乗算結果を上位エンベロープ信号に基づ
いて上記シフタ部でシフト処理を行なうことによ
りエンベロープを付加した楽音波形を得るととも
に、上記レベル設定部で設定した振幅レベルの楽
音波形を得ることを特徴とするエンベロープ付加
装置。
[Scope of Claims] 1. A waveform generating section that generates a musical sound waveform, an envelope generating section that performs step processing at predetermined time intervals and generates a 20-bit envelope signal, a multiplier section, and a shifter section, The envelope signal is divided into two groups, the upper 4 bits q and the lower 16 bits γ, and the multiplication section multiplies the output signal of the waveform generation section and the lower envelope signal, and the multiplication result is multiplied based on the upper envelope signal. An envelope adding device characterized in that a musical sound waveform to which an envelope is added is obtained by multiplying by 1/2q+1 in the shifter section. 2. A waveform generation section that generates a musical sound waveform, an envelope generation section that performs step processing at predetermined time intervals and generates a 20-bit envelope signal, and a step data generation section that generates step data based on the envelope signal. , a multiplier section, and a shifter section, the envelope signal is divided into two groups of upper 4 bits q and lower 16 bits γ, and the multiplication section multiplies the output signal of the waveform generation section and the lower envelope signal. The above multiplication result is multiplied by 1/2q+1 based on the upper envelope signal in the shifter section to obtain a musical sound waveform with an envelope added, and stepwise processing of the envelope signal is performed using stepwise data based on the envelope signal. An envelope adding device characterized in that by doing so, a musical sound waveform having an envelope characteristic having a break point is obtained. 3. A waveform generation section that generates a musical sound waveform, a level setting section that sets the amplitude level of the generated musical sound waveform, and a 20-bit waveform generation section that performs step processing at predetermined time intervals and generates a 20-bit signal based on the amplitude level set by the level setting section. an envelope generator that generates an envelope signal;
It comprises a multiplier and a shifter, divides the envelope signal into two groups of upper 4 bits q and lower 16 bits γ, and multiplies the output signal of the waveform generator by the lower envelope signal in the multiplier. , by performing a shift process on the multiplication result in the shifter section based on the upper envelope signal, a musical sound waveform to which an envelope is added is obtained, and at the same time, a musical sound waveform having an amplitude level set in the level setting section is obtained. Envelope adding device.
JP58131266A 1983-07-18 1983-07-18 Envelope adding device Granted JPS6022187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58131266A JPS6022187A (en) 1983-07-18 1983-07-18 Envelope adding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58131266A JPS6022187A (en) 1983-07-18 1983-07-18 Envelope adding device

Publications (2)

Publication Number Publication Date
JPS6022187A JPS6022187A (en) 1985-02-04
JPH0254959B2 true JPH0254959B2 (en) 1990-11-26

Family

ID=15053903

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58131266A Granted JPS6022187A (en) 1983-07-18 1983-07-18 Envelope adding device

Country Status (1)

Country Link
JP (1) JPS6022187A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6274295U (en) * 1985-10-28 1987-05-12

Also Published As

Publication number Publication date
JPS6022187A (en) 1985-02-04

Similar Documents

Publication Publication Date Title
US4991218A (en) Digital signal processor for providing timbral change in arbitrary audio and dynamically controlled stored digital audio signals
JPS6029959B2 (en) electronic musical instruments
EP0454047B1 (en) Tone waveform generation apparatus
US4638709A (en) Electronic musical instrument with temporal variation data generating circuit and interpolation circuit
EP0235538B1 (en) Waveform generator for electronic musical instrument
US4562763A (en) Waveform information generating system
US4638706A (en) Electronical musical instrument with note frequency data setting circuit and interpolation circuit
JP2779983B2 (en) Electronic musical instrument
JPS5840199B2 (en) Denshigatsuki
JP2900082B2 (en) Music generator
JP2534636B2 (en) Music synthesizer
JP2571559B2 (en) Waveform signal processing method
JPS6322312B2 (en)
JP2833485B2 (en) Tone generator
JP2510090Y2 (en) Music signal generator
JPS6022187A (en) Envelope adding device
JPH04298790A (en) Stereophonic system
JP2678970B2 (en) Tone generator
JPH02125297A (en) Digital sound signal generating device
JPS61209496A (en) Electronic musical instrument
JP3059617B2 (en) Envelope signal generator and electronic musical instrument using the same
JPH045692A (en) Electronic musical instrument
JPH0340396B2 (en)
JPH0643863A (en) Effector
JPH07152380A (en) Musical sound control information generating device