JP2959018B2 - LFO generator for electronic musical instruments - Google Patents

LFO generator for electronic musical instruments

Info

Publication number
JP2959018B2
JP2959018B2 JP2025021A JP2502190A JP2959018B2 JP 2959018 B2 JP2959018 B2 JP 2959018B2 JP 2025021 A JP2025021 A JP 2025021A JP 2502190 A JP2502190 A JP 2502190A JP 2959018 B2 JP2959018 B2 JP 2959018B2
Authority
JP
Japan
Prior art keywords
signal
rate
lfo
circuit
waveform
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
JP2025021A
Other languages
Japanese (ja)
Other versions
JPH03230195A (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.)
KASHIO KEISANKI KK
Original Assignee
KASHIO KEISANKI KK
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 KASHIO KEISANKI KK filed Critical KASHIO KEISANKI KK
Priority to JP2025021A priority Critical patent/JP2959018B2/en
Publication of JPH03230195A publication Critical patent/JPH03230195A/en
Application granted granted Critical
Publication of JP2959018B2 publication Critical patent/JP2959018B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [発明の技術分野] この発明は電子楽器に関し、特に、音量、音色、ピッ
チ等に周期的なモジュレーションを付加するためのLFO
信号(低周波発振信号)を発生するLFO発生装置に関す
る。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument, and more particularly, to an LFO for adding a periodic modulation to volume, tone, pitch, etc.
The present invention relates to an LFO generator that generates a signal (low-frequency oscillation signal).

[従来技術とその問題点] 従来のLFO発生装置としてアップダウンカウンタを用
いて三角波を生成するものや、正弦波等のLFO波形メモ
リを備え、メモリのデータを周期的に読み出すもの等が
知られている。前者のアップダウンカウンタ方式のLFO
発生装置は構成が簡単ではあるが、生成されるLFO波形
が最大値の最小値のところで急激に変化するため、LFO
効果が付加された楽音が不自然で機械的な音になってし
まうという欠点がある。一方、後者の波形読出し方式の
LFO発生装置はメモリのデータ如何によって所望のLFO波
形を発生できるが、そのためには記憶容量が犠牲とな
り、回路規模が大きくなる問題がある。
[Prior art and its problems] There are known conventional LFO generators that generate a triangular wave using an up / down counter and those that have an LFO waveform memory such as a sine wave and periodically read data from the memory. ing. The former up-down counter type LFO
Although the generator is simple in configuration, the LFO waveform generated changes abruptly at the minimum value of the maximum value.
There is a disadvantage that the musical tone to which the effect is added becomes an unnatural and mechanical sound. On the other hand, the latter
Although the LFO generator can generate a desired LFO waveform depending on the data in the memory, the storage capacity is sacrificed and the circuit scale is increased.

[発明の目的] したがって、この発明の目的は、比較的簡単な構成で
自然に均いなめらかなLFO波形を発生することができるL
FO発生装置を提供することである。
[Object of the Invention] Accordingly, an object of the present invention is to provide an L signal which can generate a naturally smooth LFO waveform with a relatively simple configuration.
To provide a FO generator.

[発明の構成] 上記の目的を達成するため、この発明によればLFO信
号の変化分を示すレート信号を受けてLFO信号を計数す
る計数手段と、LFO信号の上昇と下降方向に対する目標
値を示す目標データを記憶する目標データ記憶手段と、
LFO信号の設定レートデータを記憶する設定レートデー
タ記憶手段と、上記計数手段からのLFO信号を上記目標
データ記憶手段に記憶される目標値と比較する比較手段
と、上記比較手段からの比較信号に基づいてLFO信号の
上昇、下降の方向を制御する方向制御手段と、上記設定
レートデータ記憶手段からの設定レートを所定の漸化式
に従って変更して、上記方向制御手段によるLFO信号の
方向の切換の際に値がなめらかに変化する信号を上記レ
ート信号として生成するレート変更手段とを有すること
が特徴とする電子楽器のLFO発生装置が提供される。
[Constitution of the Invention] In order to achieve the above object, according to the present invention, a counting means for receiving a rate signal indicating a change in an LFO signal and counting the LFO signal, and a target value for the rising and falling directions of the LFO signal are determined. Target data storage means for storing target data to be indicated,
Setting rate data storage means for storing set rate data of the LFO signal; comparison means for comparing the LFO signal from the counting means with a target value stored in the target data storage means; and a comparison signal from the comparison means. A direction control means for controlling the rising and falling directions of the LFO signal based on the change rate of the LFO signal by the direction control means by changing a set rate from the set rate data storage means according to a predetermined recurrence formula; An LFO generator for an electronic musical instrument, characterized by having a rate changing means for generating, as the rate signal, a signal whose value changes smoothly at the time of (1).

この構成において、レート変更手段は一種のレートフ
ィルタとして機能し、LFO信号の方向切換時に、計数手
段に差分値として入力するレート信号を、従来のアップ
ダウンカウンタ方式のように急に切り換えるのではな
く、徐々に変化させる。このなめらかなレート変化に対
応してLFO信号にもなめらかな変化が生じる。また、波
形読出し方式のようにLFO波形を記憶するメモリは不要
なので比較的小さな回路規模でLFO発生装置を実現でき
る。
In this configuration, the rate changing means functions as a kind of rate filter, and when the direction of the LFO signal is switched, the rate signal input as a difference value to the counting means is not suddenly switched as in the conventional up / down counter method. , Gradually change. In response to this smooth rate change, a smooth change occurs in the LFO signal. Further, since a memory for storing the LFO waveform is not required unlike the waveform reading method, an LFO generator can be realized with a relatively small circuit scale.

一構成例では、設定レート記憶手段には1つの設定レ
ートデータが記憶され、方向制御手段において生成され
るLFO信号の方向を示す方向信号がレート変更手段に入
力される。レート変更手段内には、設定レート記憶手段
の1つの設定レートデータから方向信号によって正と負
と設定レートデータを交互に生成する切換手段が設けら
れ、この切換手段からの正または負の設定レートデータ
がレート変更手段内の漸化式演算手段で使用され、その
結果、設定レートデータが正のときにはその正値に向っ
てレート信号出力が除去に変化し、設定レートデータが
負のときにはその負値を収束値としてレート信号が徐々
に変化する。この繰り返しにより、周期的に正から負、
負から正に変化するレート信号が生成され、それを差分
とする周期的な変化がLFO信号に生じる。
In one configuration example, one set rate data is stored in the set rate storage means, and a direction signal indicating the direction of the LFO signal generated by the direction control means is input to the rate change means. In the rate changing means, there is provided switching means for alternately generating positive, negative and set rate data by a direction signal from one set rate data of the set rate storage means. The data is used by the recurrence calculation means in the rate changing means. As a result, when the set rate data is positive, the rate signal output changes toward the positive value to remove, and when the set rate data is negative, the rate signal output becomes negative. The rate signal gradually changes with the value as the convergence value. By this repetition, periodically from positive to negative,
A rate signal that changes from negative to positive is generated, and a periodic change having the difference as a difference occurs in the LFO signal.

更に、レート信号の再現精度を高めるために、比較手
段からの目標値到達を示す比較信号に応答して漸化式演
算手段における方向切換後の最初のレート信号を正と負
の設定レートデータのような設定データのみから演算す
るようにしてもよい。
Further, in order to enhance the accuracy of the reproduction of the rate signal, the first rate signal after the direction switching in the recurrence calculating means is responsive to the comparison signal indicating the arrival of the target value from the comparing means. The calculation may be performed only from such setting data.

別の構成例では、設定レート記憶手段には、方向制御
手段からの方向信号が上昇方向のときに出力される正の
設定レートデータと方向信号が下降方向のときに出力さ
れる負の設定レートデータと記憶される。この場合、レ
ート変更手段には上述した切換手段は不要となり、設定
レート記憶手段の出力が直接的に漸化式演算手段に入力
される。
In another configuration example, the set rate storage means stores a positive set rate data output when the direction signal from the direction control means is in the upward direction and a negative set rate data output when the direction signal is in the downward direction. Stored with data. In this case, the rate changing means does not need the above-mentioned switching means, and the output of the set rate storing means is directly input to the recurrence calculating means.

更に別の構成例は上述した構成例を組み合わせたもの
であり、設定レート記憶手段には2つの設定レートデー
タが記憶されるがともに正値をもち、レート変更手段内
の切換手段においてLFO信号の方向によって設定レート
データが選択的に反転される。この場合、記憶される2
つの設定レートデータに異なる大きさをもたせることに
より、非対称なLFO波形を得ることができる。
Still another configuration example is a combination of the above-described configuration examples. Two set rate data are stored in the set rate storage means, both of which have positive values, and the switching means in the rate change means switches the LFO signal. The set rate data is selectively inverted depending on the direction. In this case, the stored 2
By giving different magnitudes to the two set rate data, an asymmetric LFO waveform can be obtained.

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

第1図から第4図に示す実施例において、LFO波形信
号は、その傾きの設定値である設定レートデータと、最
大、最小値を示す目標データに基づいて生成される。こ
の発明に従い、LFO波形信号の差分値としてのレート信
号は設定レートデータをそのまま使用するのではなく、
所定の漸化式に従って、設定レートデータを変更するこ
とによって生成される。この実施例では、漸化式は Rn=(Rn-1+Rc)/2 (1) (n=1、2、……) で与えられる。ここに、RnはLFO波形が最大値または最
小値を折り返してからn回目のLFO波形信号演算で使用
されるレート信号を表わし、RcはLFO波形の折り返し後
の変化方向(上昇、下降)に対して設定された設定レー
トを表わす。式(1)を変形すると、 Rn−Rc=(Rn-1−Rc)/2 したがって Rn=Rc−(Rc−R0)/2n (2) となる。ここに、R0はLFO波形の折り返し前の変化方向
(下降、上昇)に対して設定された設定レートである。
したがって、LFO波形の折り返し後のレート信号の系列R
1、R2、……は折り返し後の設定レートRcを収束値とし
て徐々に設定レートRcに近づいていくことになる。例え
ば、R0=1、Rc=−1のとき、R1=0、R2=−1/2、R3
=−3/4、R4=−7/8、R5=−15/16、R6=−31/32とな
り、第5図に示すように、折り返しの際になめらかに変
化するLFO波形が得られる。第5図(a)において点線
は従来のアップダウンカウンタ方式のLFO発生装置から
得られるLFO波形の折返しを示し、実線が、本発明によ
って得られるなめらかなLFOの折返し波形である。
In the embodiment shown in FIGS. 1 to 4, the LFO waveform signal is generated based on set rate data which is a set value of the slope and target data indicating the maximum and minimum values. According to the present invention, the rate signal as the difference value of the LFO waveform signal does not use the set rate data as it is,
It is generated by changing the set rate data according to a predetermined recurrence formula. In this embodiment, the recurrence formula is given by R n = (R n-1 + R c ) / 2 (1) (n = 1, 2,...). Here, R n represents the rate signal used in the n-th LFO waveform signal calculation after the LFO waveform has turned the maximum or minimum value, and R c is the change direction (up, down) of the LFO waveform after the return. Represents the set rate set for. When the equation (1) is modified, R n −R c = (R n−1 −R c ) / 2 Therefore, R n = R c − (R c −R 0 ) / 2 n (2). Here, R0 is a set rate set for the change direction (fall, rise) of the LFO waveform before the return.
Therefore, the sequence R of the rate signal after the LFO waveform is folded back
1, R 2, ...... would gradually approaches the set rate R c of the set rate R c after folding as convergent value. For example, when R 0 = 1 and R c = −1, R 1 = 0, R 2 = −1 / 2, R 3
= −3 / 4, R 4 = −7 / 8, R 5 = −15 / 16, R 6 = −31 / 32, and as shown in FIG. 5, the LFO waveform that changes smoothly at the time of folding is can get. In FIG. 5 (a), the dotted line shows the return of the LFO waveform obtained from the conventional LFO generator of the up-down counter system, and the solid line shows the return waveform of the smooth LFO obtained by the present invention.

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

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

第2図はLFO発生回路6の詳細なブロック図である。
レートメモリ8にはLFO波形の変化方向(上昇、下降)
の各々に対して設定された傾きを表わす正値を設定レー
トデータが記憶され、レベルメモリ9にはLFO波形の変
化方向に各々に対する目標値(最大値、最小値)を表わ
す目標データが記憶される。両メモリは、LFO波形信号
の変化方向を制御するアップ/ダウン制御回路13からの
方向信号/Dによりアドレッシングされ、対応する設定
データを出力する。レートメモリ8の設定レート出力R
はこの発明に従い、レート変更回路10に入力され、ここ
で上述した漸化式に従うフィルタリングが施され、LFO
波形信号の差分値としての変更レート信号R′が生成さ
れる。この変更レート信号R′はLFOカウンタ11に入力
される。LFOカウンタ11はLFO波形の現在値に変更レート
信号R′を加減算してLFO波形信号の値を更新する。更
新されたLFO波形の値LW0は比較回路12で、レベルメモリ
9からの目標値Lと比較される。比較回路12はLFO波形
の値LW0が目標値Lに到達したときに“1"の比較信号RH
を出力する。詳細には、比較回路12は、アップ/ダウン
制御回路13からの方向信号/Dの示すLFO波形の方向に
従い、 (a)/D=0(上昇中)かつLW0≧Lまたは、 (b)/D=1(下降中)かつLW0≦L のときに“1"の比較信号RHを出力する。出力された比較
信号RHは後で詳述するレート変更回路10に入力され、ま
た、LFO波形の方向切換のため、アップ/ダウン制御回
路13にも入力される。
FIG. 2 is a detailed block diagram of the LFO generation circuit 6.
LFO waveform change direction (up, down) in rate memory 8
The set rate data is stored as a positive value representing the gradient set for each of the above, and the target data representing the target values (maximum value, minimum value) for each of them in the direction of change of the LFO waveform is stored in the level memory 9. You. Both memories are addressed by the direction signal / D from the up / down control circuit 13 for controlling the changing direction of the LFO waveform signal, and output the corresponding setting data. Set rate output R of rate memory 8
Is input to the rate change circuit 10 according to the present invention, where it is filtered according to the recurrence formula described above, and the LFO
A change rate signal R 'is generated as a difference value of the waveform signal. This change rate signal R 'is input to the LFO counter 11. The LFO counter 11 updates the value of the LFO waveform signal by adding / subtracting the change rate signal R 'to / from the current value of the LFO waveform. The updated value LW 0 of the LFO waveform is compared with the target value L from the level memory 9 in the comparison circuit 12. When the value LW 0 of the LFO waveform reaches the target value L, the comparison circuit 12 outputs a comparison signal RH of “1”.
Is output. In detail, the comparison circuit 12 determines (a) / D = 0 (during rising) and LW 0 ≧ L or (b) according to the direction of the LFO waveform indicated by the direction signal / D from the up / down control circuit 13. When / D = 1 (during falling) and LW 0 ≦ L, the comparison signal RH of “1” is output. The output comparison signal RH is input to a rate changing circuit 10 described later in detail, and is also input to an up / down control circuit 13 for switching the direction of the LFO waveform.

アップ/ダウン制御回路13は第3図のように構成され
ている。まず、キーアサイナ2からのキーオン信号KNが
“1"になるとORゲート15、ANDゲート16により、FF18に
クロックφが入力される。このとき、KH=“1"がNORゲ
ート17に入力されるので、FF18は“0"にリセットされる
ことになる。更に、“1"のKH信号により、インバータ1
9、ANDゲート20を介して方向信号/Dが上昇を示す“0"
となる。その後、KN信号が“0"になってからは、NORゲ
ート17はFF18の出力を反転させるインバータとして機能
し、ANDゲート20はFF18の出力を/D信号として通すゲ
ートとして機能する。この状態の下で、比較回路12から
目標値到達を示す“1"の比較信号RHがORゲート15に入力
される場合、FF18の状態にしたがって/D信号は0→1
→0……というように反転を繰り返す。
The up / down control circuit 13 is configured as shown in FIG. First, when the key-on signal KN from the key assigner 2 becomes “1”, the clock φ is input to the FF 18 by the OR gate 15 and the AND gate 16. At this time, since KH = "1" is input to the NOR gate 17, FF18 is reset to "0". In addition, the inverter 1
9. “0” indicating that the direction signal / D rises via the AND gate 20
Becomes Thereafter, after the KN signal becomes “0”, the NOR gate 17 functions as an inverter that inverts the output of the FF18, and the AND gate 20 functions as a gate that passes the output of the FF18 as the / D signal. Under this state, when the comparison signal RH of “1” indicating the arrival of the target value from the comparison circuit 12 is input to the OR gate 15, the / D signal changes from 0 to 1 according to the state of FF18.
→ Inversion is repeated, such as 0.

第1図はレート変更回路10の詳細なブロック図であ
る。2の複数回路21は信号/Dの示すLFO波形の方向に
よって、レートメモリ8からの正値の設定レートRを選
択的に反転するためのものであり、信号/Dが“0"(上
昇中)のときは設定レートRをそのまま通し、信号/D
が“1"(下降中)のときは設定レートRの2の補数を生
成する(なお、下降方向に対するレートメモリ8の設定
レートを負値にしておけばこの2の補数回路21は省略で
きる)。選択回路23はフリップフロップ(FF)24に取り
込むデータ、即ち、上記式(1)におけるRn-1の値を選
択するためのものであり、キーオン信号KNか比較信号RH
が“1"のときは、ORゲート22から与えられる“1"の選択
信号により、2の補数回路21の出力である設定レート
(式(2)のR0に相当するデータ)を選択し、この他の
通常時ではシフト回路26の出力である前回の変更レート
R′(=Rn-1)を選択する。式(1)のRn-1に相当する
FF24の出力と式(1)のRcに相当する2の補数回路を21
の出力とを加算器25で加算し、加算結果をシフト回路26
で1/2にすることにより、式(1)に従う変更レートRn
が得られる。シフト回路26の出力はLFO波形の差分値R
としてLFOカウンタ11に送られる。
FIG. 1 is a detailed block diagram of the rate changing circuit 10. The plurality of circuits 21 are provided for selectively inverting the positive set rate R from the rate memory 8 in accordance with the direction of the LFO waveform indicated by the signal / D. ), The set rate R is passed as it is, and the signal / D
Is "1" (falling), a 2's complement of the set rate R is generated (note that the 2's complement circuit 21 can be omitted if the set rate of the rate memory 8 in the descending direction is set to a negative value). . The selection circuit 23 selects data to be taken into the flip-flop (FF) 24, that is, the value of R n-1 in the above equation (1), and selects the key-on signal KN or the comparison signal RH.
Is "1", the set rate (data corresponding to R0 in equation (2)) which is the output of the two's complement circuit 21 is selected by the "1" selection signal given from the OR gate 22, In other normal times, the previous change rate R '(= R n-1 ) which is the output of the shift circuit 26 is selected. Equivalent to R n-1 in equation (1)
The output of FF24 and the 2's complement circuit corresponding to R c in equation (1) are
Is added by an adder 25, and the result of the addition is shifted by a shift circuit 26.
, The change rate R n according to equation (1)
Is obtained. The output of the shift circuit 26 is the difference value R of the LFO waveform.
Is sent to the LFO counter 11.

以下、動作を述べると、最初にキーアサイナ2からの
キーオン信号KNにより、LFOカウンタ11は“0"に初期化
され、アップ/ダウン制御回路13は/D信号を“0"(上
昇中)にセットする。更にレート変更回路10では、FF24
に/Dが“0"のときの設定レートの値R(0)が取り込
まれ、加算器25、シフト回路26により、最初の変更レー
トR1(=R′)として、 R1=(R(0)+R(0))/2=R(0) が算出される。その後の変更レートR2、R3……も同様に
して演算される。これによりLFOカウンタ11の出力であ
るLFO信号波形はR(0)の傾きで上昇し、やがて、目
標値L(0)に到達する。この目標値到達が比較回路12
で検出され、比較信号出力RHが“1"となる。これによ
り、レート変更回路10のFF24には選択回路23で選択され
た/Dが“0"のときの設定レートR(0)が取り込まれ
る。更に、“1"の比較信号によりアップ/ダウン制御回
路13の方向信号/Dが下降中を示す“1"に切り換わる。
The operation will be described below. First, the LFO counter 11 is initialized to "0" by the key-on signal KN from the key assigner 2, and the up / down control circuit 13 sets the / D signal to "0" (rising). I do. Further, in the rate change circuit 10, FF24
The value R (0) of the set rate when / D is "0" is fetched, and the adder 25 and the shift circuit 26 set the first change rate R 1 (= R ') as R 1 = (R ( 0) + R (0)) / 2 = R (0). Subsequent change rates R 2 , R 3 ... Are similarly calculated. As a result, the LFO signal waveform output from the LFO counter 11 rises with a slope of R (0) and eventually reaches the target value L (0). The arrival of this target value is determined by the comparison circuit 12.
And the comparison signal output RH becomes "1". As a result, the set rate R (0) when / D selected by the selection circuit 23 is "0" is taken into the FF 24 of the rate change circuit 10. Further, the direction signal / D of the up / down control circuit 13 is switched to "1" indicating that the direction is falling by the comparison signal of "1".

これにより、レート変更回路10でLFO波形に折り返し
後の変更レート演算が開始する。即ち、下降に移行後の
最初の変更レートR1は R1=(R(0)−R(1))/2 で演算される。ここに−R(1)は2の補数回路21にお
いて/D=1に従って生成したLFO波形下降に対する負
の設定レート(レートメモリ8の設定レートR(1)の
2の補数)である。以下、同様にして、下降に移行後の
n番目の変更レートRnは Rn=(Rn-1)−R(1))/2 で演算され、徐々に値が−R(1)の値に近づいていく
(第5図参照)。
Thereby, the change rate calculation after the return to the LFO waveform in the rate change circuit 10 is started. That is, first change rate R 1 after the transition to the falling is calculated by R 1 = (R (0) -R (1)) / 2. Here, -R (1) is a negative set rate (two's complement of the set rate R (1) of the rate memory 8) with respect to the falling of the LFO waveform generated according to / D = 1 in the two's complement circuit 21. Thereafter, in the same manner, the n-th change rate R n after the transition to the lowered being calculated by R n = (R n-1) -R (1)) / 2, gradually value -R (1) It approaches the value (see Fig. 5).

これにより、LFO信号波形は減少し、負の目標値(最
小値)L(1)に到達すると、再び、比較回路12から
“1"の比較信号RHが発生する。これにより、レート変更
回路6のFF24には選択回路23を介して下降に対する設定
レート−R(1)がセットされ、続いて、アップ/ダウ
ン制御回路13からの“0"(上昇中)に切り換わった方向
信号/Dに従って、上昇モードでの変更レートの演算が
始まる。即ち、上昇モードでは、 R1=(−R(1)+R(0))/2 Rn=(Rn-1+R(0))/2 により変更レートが演算さえる。R(0)は不動作中の
2の補数回路21を介してレートメモリ8から与えられる
上昇方向に対する設定レート値を示す。
As a result, the LFO signal waveform decreases, and when it reaches the negative target value (minimum value) L (1), the comparison circuit 12 again generates the comparison signal RH of “1”. As a result, the set rate -R (1) for the falling is set in the FF 24 of the rate changing circuit 6 through the selecting circuit 23, and subsequently, it is switched to "0" (during the rising) from the up / down control circuit 13. According to the changed direction signal / D, the calculation of the change rate in the ascending mode starts. That is, in the rise mode, R 1 = (- R ( 1) + R (0)) / 2 R n = (R n-1 + R (0)) / 2 by changing rate feel more alert operation. R (0) indicates a set rate value in the ascending direction given from the rate memory 8 via the inactive two's complement circuit 21.

この繰り返しにより、第5図に例示するような折返し
のなめらかなLFO波形が生成される。
By this repetition, a folded LFO waveform as illustrated in FIG. 5 is generated.

レート変更回路の別の構成例を第6図に示す。このレ
ート変更回路10Mでは、 Rn=αRn-1+(1+α)Rc (3) で示される漸化式に従って、変更レートRnを演算する。
ここに、αは0≦α≦1をとる収束速度係数である。
FIG. 6 shows another configuration example of the rate changing circuit. This rate change circuit 10M, according recurrence formula represented by R n = αR n-1 + (1 + α) R c (3), calculates a change rate R n.
Here, α is a convergence speed coefficient that satisfies 0 ≦ α ≦ 1.

式(3)を変形すると、 Rn−Rc=α(Rn-1−Rc) したがって、 Rn=Rc+α(R0−Rc) (4) となる。したがって、R0、R1、R2……Rnのレート系列は
R0の値からRcの値に向って収束速度係数αに従う速度で
収束していく。例えば、R0=2、R1=−1、α=3/4を
例にとると、R1=5/4、R2=11/16、R3=17/64、R4=−1
3/256、R5=−295/1024……となり第7図に実線で示す
ようなLFOの折り返し波形が得られる。なお点線は従来
のアップダウンカウンタによるものである。収束速度係
数αを1/2にした場合、式(3)は式(1)と等価にな
る。収束速度係数αを1に近づける程、LFO波形の折り
返しは緩かになる。
By transforming equation (3), thus R n -R c = α (R n-1 -R c), the R n = R c + α n (R 0 -R c) (4). Therefore, the rate sequence of R 0, R 1, R 2 ...... R n is
Converges at a rate that follows from the values of R 0 in convergence rate coefficient towards the value of R c alpha. For example, R 0 = 2, R 1 = -1, α = 3/4 a Taking as an example, R 1 = 5/4, R 2 = 11/16, R 3 = 17/64, R 4 = -1
3/256, R 5 = −295 / 1024..., And a folded waveform of the LFO as shown by the solid line in FIG. 7 is obtained. The dotted line is based on a conventional up / down counter. When the convergence speed coefficient α is halved, Expression (3) is equivalent to Expression (1). As the convergence speed coefficient α approaches 1, the return of the LFO waveform becomes gentler.

第6図のレート変更回路10Mにおいて、2の補数回路2
1、ORゲート22、選択回路23、FF24は、第1図の対応要
素と同様である。収束速度係数αはレートメモリ8のデ
ータ下位ビットで与えられる。一方設定レートはレート
メモリデータの上位ビットで与えられ、これが2の補数
回路21に入力される。式(3)に示した漸化式演算を行
うため、減算器30でFF24の出力Rn-1から2の補数回路21
の設定レート出力Rcが差し引かれ、乗算器31で減算器30
の出力に収束速度係数αが乗算され、加算器32により乗
算器31の乗算出力に2の補数回路21の出力が加算され
る。加算器32の出力はLFOカウンタ11にLFO波形信号の差
分値として入力されるとともに選択回路23を介してFF24
に戻される。
In the rate changing circuit 10M in FIG. 6, a two's complement circuit 2
1, OR gate 22, selection circuit 23 and FF24 are the same as corresponding elements in FIG. The convergence speed coefficient α is given by the lower bits of the data in the rate memory 8. On the other hand, the set rate is given by the upper bits of the rate memory data, and this is input to the two's complement circuit 21. In order to perform the recurrence equation operation shown in the equation (3), the subtractor 30 outputs the two's complement circuit 21 from the output R n-1 of the FF 24
Subtracted set rate output R c of the subtractor 30 by the multiplier 31
Is multiplied by the convergence speed coefficient α, and the output of the two's complement circuit 21 is added to the multiplied output of the multiplier 31 by the adder 32. The output of the adder 32 is input to the LFO counter 11 as the difference value of the LFO waveform signal, and is output to the FF 24 via the selection circuit 23.
Is returned to.

以上で、実施例の説明を終えるがこの発明の範囲内で
種々の変形が可能である。例えば、第1図、第6図のレ
ート変更回路10、10Mは、比較回路12からの比較信号PH
を受けるように構成され、目標値(折返し点)到達の都
度、“1"の比較信号RHにて、折返し前の設定レートでFF
24を再設定しているが、この時点においてはレート変更
回路10は、折返し前の設定レートに十分近い変更レート
を生成しているので、所望であれば、この再設定手段は
不要である。また、レート変更回路の目的は、LFO波形
の折返し点における設定レートの切換に対し、実際のLF
O波形の傾きが急激に変化しないようにレート変化をな
めらかにすることであるので、上述した漸化式には限ら
ず、他の適当な漸化式演算によって変更レート信号を生
成するようにしてもよい。例えば、 (Wc,Wiは重み係数、Rn-kiはサンプル点nよりkiだけ過
去のサンプル点の変更レート)示されるような漸化式に
従って変更レートRnを演算することができる。
This concludes the description of the embodiments, but various modifications are possible within the scope of the present invention. For example, the rate change circuits 10 and 10M shown in FIGS.
Each time the target value (return point) is reached, the FF is set at the set rate before the return by the comparison signal RH of "1".
24 is reset, but at this point, the rate changing circuit 10 has generated a change rate sufficiently close to the set rate before the return, so that this resetting means is unnecessary if desired. The purpose of the rate change circuit is to change the set rate at the turning point of the LFO waveform,
O It is to smooth the rate change so that the slope of the waveform does not change suddenly, so it is not limited to the above-mentioned recurrence formula, but to generate a change rate signal by other appropriate recurrence formula operation Is also good. For example, (W c and W i are weighting factors, and R n-ki is a change rate of a sample point in the past by ki from sample point n). The change rate R n can be calculated according to a recurrence formula as shown.

[発明の効果] 以上、詳細に説明したように、この発明によれば、基
本的には設定レートと設定目標値とによってLFO波形を
生成するアップダウンカウンタ方式を使用するが、設定
レートをそのまま計数手段に入力するのではなく、レー
トフィルタとして機能するレート変更手段において設定
レートを所定の漸化式に従って変更してから計数手段に
入力しているので、LFO波形の折返し部がなめらかにな
る利点がある。したがって、従来のアップダウンカウン
タ方式のような急激なLFO波形の変化を除去でき、ま
た、従来の波形読出方式のLFO発生装置のようなLFO波形
メモリは不要である。
[Effects of the Invention] As described above in detail, according to the present invention, basically, an up-down counter method of generating an LFO waveform based on a set rate and a set target value is used, but the set rate is not changed. Since the set rate is changed in accordance with a predetermined recurrence formula in the rate changing means functioning as a rate filter instead of being input to the counting means and then input to the counting means, an advantage that the folded portion of the LFO waveform becomes smoother There is. Therefore, a sudden change in the LFO waveform as in the conventional up / down counter method can be removed, and an LFO waveform memory as in the conventional waveform reading LFO generator is unnecessary.

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

第1図はこの発生の実施例のLFO発生回路で使用される
レート変更回路のブロック図、 第2図は実施例に係るLFO発生回路のブロック図、 第3図は第2図のアップ/ダウン制御回路の詳細なブロ
ック図、 第4図は第2図に示すLFO発生回路を組み込んだ電子楽
器のブロック図、 第5図は実施例の生成するLFO波形を例示する図、 第6図はレート変更回路の変形例を示すブロック図、 第7図は第6図のレート変更回路を用いたときに得られ
るLFO波形の折返し部を例示する図である。 6……LFO発生回路、8……レートメモリ、 9……レベルメモリ、10……レート変更回路、 11……LFOカウンタ、12……比較回路、 13……アップ/ダウン制御回路。
FIG. 1 is a block diagram of a rate changing circuit used in the LFO generating circuit of this embodiment, FIG. 2 is a block diagram of an LFO generating circuit according to the embodiment, and FIG. 3 is an up / down diagram of FIG. FIG. 4 is a block diagram of an electronic musical instrument incorporating the LFO generating circuit shown in FIG. 2, FIG. 5 is a diagram illustrating an LFO waveform generated by the embodiment, and FIG. 6 is a rate. FIG. 7 is a block diagram showing a modification of the change circuit, and FIG. 7 is a diagram illustrating a folded portion of the LFO waveform obtained when the rate change circuit of FIG. 6 is used. 6 LFO generation circuit, 8 rate memory, 9 level memory, 10 rate change circuit, 11 LFO counter, 12 comparison circuit, 13 up / down control circuit.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】LFO信号の変化分を示すレート信号を受け
てLFO信号を計数する計数手段と、 LFO信号の上昇と下降方向に対する目標値を示す目標デ
ータを記憶する目標データ記憶手段と、 LFO信号の設定レートデータを記憶する設定レートデー
タ記憶手段と、 上記計数手段からのLFO信号を上記目標データ記憶手段
に記憶される目標値と比較する比較手段と、 上記比較手段からの比較信号に基づいてLFO信号の上
昇、下降の方向を制御する方向制御手段と、 上記設定レートデータ記憶手段からの設定レートを所定
の漸化式に従って変更して、上記方向制御手段によるLF
O信号の方向の切換の際に値がなめらかに変化する信号
を上記レート信号として生成するレート変更手段と、 を有することを特徴とする電子楽器のLFO発生装置。
1. A counting means for receiving a rate signal indicating a variation of an LFO signal and counting the LFO signal; a target data storage means for storing target data indicating a target value for the rising and falling directions of the LFO signal; Setting rate data storing means for storing setting rate data of a signal; comparing means for comparing the LFO signal from the counting means with a target value stored in the target data storing means; based on a comparison signal from the comparing means Direction control means for controlling the rising and falling directions of the LFO signal, and changing the set rate from the set rate data storage means according to a predetermined recurrence formula.
An LFO generator for an electronic musical instrument, comprising: rate changing means for generating, as the rate signal, a signal whose value changes smoothly when the direction of the O signal is switched.
JP2025021A 1990-02-06 1990-02-06 LFO generator for electronic musical instruments Expired - Lifetime JP2959018B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2025021A JP2959018B2 (en) 1990-02-06 1990-02-06 LFO generator for electronic musical instruments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2025021A JP2959018B2 (en) 1990-02-06 1990-02-06 LFO generator for electronic musical instruments

Publications (2)

Publication Number Publication Date
JPH03230195A JPH03230195A (en) 1991-10-14
JP2959018B2 true JP2959018B2 (en) 1999-10-06

Family

ID=12154258

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2025021A Expired - Lifetime JP2959018B2 (en) 1990-02-06 1990-02-06 LFO generator for electronic musical instruments

Country Status (1)

Country Link
JP (1) JP2959018B2 (en)

Also Published As

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

Similar Documents

Publication Publication Date Title
US4246823A (en) Waveshape generator for electronic musical instruments
JPS5919356B2 (en) electronic musical instruments
JP2567717B2 (en) Musical sound generator
US4200021A (en) Electronic musical instruments which form musical tones by repeatedly generating musical tone waveform elements
JP2959018B2 (en) LFO generator for electronic musical instruments
JP2628401B2 (en) Tone generator
US5185491A (en) Method for processing a waveform
JPH0225515B2 (en)
JPS6211357B2 (en)
JP2699287B2 (en) Envelope generator
JP2508167B2 (en) Waveform data creation device
JPH0131638B2 (en)
JP2640991B2 (en) Tone generator
JPS6023358B2 (en) electronic musical instruments
JPH03230199A (en) Envelope generating device of electronic musical instrument
JP2819820B2 (en) Electronic musical instrument waveform generator
JP2699886B2 (en) Music control information generator
JPH0679227B2 (en) Electronic musical instrument
JPH0740191B2 (en) Envelope generator
JPS623299A (en) Tone signal generation
JP2621234B2 (en) Electronic musical instrument control signal generator
JPS5921038B2 (en) electronic musical instruments
JPH0727384B2 (en) Music signal generator
JPS6325697A (en) Electronic musical instrument
JP3588815B2 (en) Sound source device