JPH09237090A - Sound effect adding device using dsp - Google Patents

Sound effect adding device using dsp

Info

Publication number
JPH09237090A
JPH09237090A JP8065197A JP6519796A JPH09237090A JP H09237090 A JPH09237090 A JP H09237090A JP 8065197 A JP8065197 A JP 8065197A JP 6519796 A JP6519796 A JP 6519796A JP H09237090 A JPH09237090 A JP H09237090A
Authority
JP
Japan
Prior art keywords
sound effect
signal
output
dsp
routine
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.)
Pending
Application number
JP8065197A
Other languages
Japanese (ja)
Inventor
Tsutomu Saito
勉 斉藤
Masayuki Suda
正行 須田
Mineo Kitamura
実音夫 北村
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 JP8065197A priority Critical patent/JPH09237090A/en
Priority to US08/806,920 priority patent/US6031916A/en
Publication of JPH09237090A publication Critical patent/JPH09237090A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a sound effect adding device which can increase a speed of switching a program at the time of adding plural sound effect and reduction of discrete parts. SOLUTION: This device has an instruction RAM storing a main routine including a program controlling input/output of a musical sound signal and plural sound effect selecting adding routine (fn) being capable of selecting which is operated by being transferred by a main CPU 10 at the time of necessity and being accessed from the main routine. The main routine has such a function that it distributes an input signal to the plural selected sound effect adding routine (fn) (callfn), while collects effect adding signals outputted from these sound effect adding routine (fn) and makes it an output signal. Also wiring change of input/output signals for adding plural sound effect is performed without changing the main routine at the time of distributing input signals and collecting effect adding signals by changing coefficient data transferred from the main CPU 10 and stored in DSP1a and 1b.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、複数の音響効果を
付加できるDSPを用いた音響効果付加装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sound effect adding device using a DSP capable of adding a plurality of sound effects.

【0002】[0002]

【従来の技術】所謂DSP(デジタル・シグナル・プロ
セッサ)を用いた音響効果付加装置としては、特開昭5
8−50595号に示されるように、1つのDSPで複
数の音響効果を時分割で付加するものがあった。
2. Description of the Related Art A sound effect adding apparatus using a so-called DSP (digital signal processor) is disclosed in Japanese Patent Laid-Open No.
As shown in No. 8-50595, some DSPs add a plurality of acoustic effects in a time division manner.

【0003】[0003]

【発明が解決しようとする課題】しかし上記構成では、
付加する音響効果毎にCPU等の主演算回路からDSP
に対し、それに対応するプログラムを転送しており、し
かもハンドシェイクによるシリアル転送であるため、ど
うしても転送スピードが遅くなるという問題があった。
またシステムにおける他の構成の制御との兼ね合いか
ら、転送スピードがあまりに遅いという場合には、付加
できる音響効果の数に限界を来たし、このような技術的
限界に基づいて音楽的表現が制限されてしまうといった
問題もあった。更に、上記構成は時分割処理によって複
数の音響効果の付加を行っているため、音響効果の変更
時には、データ記憶部のクリア等の事前処理がなされ、
その際に楽音信号の出力が途絶えたり、奇妙な楽音信号
が出力されたりすることがある。これを避けるため、特
開平1−198796号では、DSPを迂回する回路を
設けると共に、クロスフェード回路を別途設け、該迂回
回路の出力とDSPの出力とをクロスフェードさせて、
音響効果変更時に、楽音信号の出力の途絶えや奇妙な楽
音信号の出力が発生しないようにしている。しかしその
ためにクロスフェード回路というディスクリート部品が
必要になり、装置の小型化や生産時の工数の削減ができ
ないという問題があった。
However, in the above configuration,
From the main arithmetic circuit such as CPU to DSP for each added sound effect
On the other hand, there is a problem that the transfer speed is inevitably slow because the program corresponding to it is transferred and the serial transfer is performed by handshake.
In addition, if the transfer speed is too slow in consideration of the control of other components in the system, the number of sound effects that can be added is limited, and the musical expression is limited based on such a technical limit. There was also the problem of being lost. Further, in the above configuration, since a plurality of acoustic effects are added by time division processing, when the acoustic effects are changed, preprocessing such as clearing the data storage unit is performed,
At that time, the output of the musical tone signal may be interrupted or a strange musical tone signal may be output. In order to avoid this, in JP-A-1-198796, a circuit that bypasses the DSP is provided and a crossfade circuit is additionally provided, and the output of the bypass circuit and the output of the DSP are crossfaded,
When the sound effect is changed, the output of the musical tone signal is not interrupted and the strange musical tone signal is not output. However, this requires a discrete component called a cross-fade circuit, which causes a problem that the device cannot be downsized and man-hours at the time of production cannot be reduced.

【0004】本発明は従来技術の上記の問題を解決する
ため創案されたもので、複数の音響効果を付加する時の
プログラムの切替のスピードアップと、ディスクリート
部品の削減を達成できる音響効果付加装置を提供せんと
するものである。
The present invention was devised to solve the above-mentioned problems of the prior art, and a sound effect adding device capable of speeding up program switching when adding a plurality of sound effects and reducing discrete parts. Is intended to be provided.

【0005】[0005]

【課題を解決するための手段】そのため本発明は、主演
算回路の制御下で作動し、1つのDSPで複数の音響効
果が同時に選択処理可能な音響効果付加装置において、
楽音信号の入出力を制御するプログラムを含むメインル
ーチンと、必要な時に主演算回路により転送されて前記
メインルーチンからアクセスされることで作動する複数
の選択可能な音響効果付加ルーチンとを記憶する命令記
憶部を前記DSP内に有しており、前記メインルーチン
は、入力信号を複数の選択された音響効果付加ルーチン
に分配すると共に、これらの音響効果付加ルーチンから
出力される効果付加信号を収集して出力信号とする機能
を有し、且つ前記主演算回路から転送されてDSP内に
格納された係数データを変更することにより、入力信号
の分配及び効果付加信号の収集時に、前記メインルーチ
ンの変更なしに複数の音響効果の付加のための入出力信
号の結線変更を行うことを基本的特徴としている。
SUMMARY OF THE INVENTION Therefore, the present invention provides a sound effect adding apparatus which operates under the control of a main arithmetic circuit and which can simultaneously select and process a plurality of sound effects by one DSP.
Instructions for storing a main routine including a program for controlling the input / output of musical tone signals, and a plurality of selectable sound effect adding routines which are transferred by the main arithmetic circuit and are operated by being accessed from the main routine when necessary A storage unit is provided in the DSP, and the main routine distributes an input signal to a plurality of selected sound effect addition routines and collects effect addition signals output from these sound effect addition routines. By changing the coefficient data transferred from the main arithmetic circuit and stored in the DSP, the main routine is changed when the input signal is distributed and the effect addition signal is collected. The basic feature is to change the connection of input / output signals to add a plurality of sound effects.

【0006】該構成においては、メインルーチンによる
複数の音響効果付加ルーチンに対する入力信号の分配
と、単なる係数データ変更による結線変更とにより、複
数の音響効果の付加及びその変更が可能になるため、一
旦命令記憶部にメインルーチンが記憶され、任意の音響
効果付加ルーチンが選択されて同命令記憶部に記憶され
れば、該メインルーチンによる音響効果付加ルーチンの
組み合わせで目的とする音響効果の付加・変更が可能に
なり、命令記憶部の記憶をクリアする等の事前処理を行
う必要がなくなると共に、音響効果の付加・変更も、D
SP内の係数データのみを変更して出力すれば足り、新
たなプログラムの転送を行う必要がない。
In this configuration, since a plurality of acoustic effects can be added and changed by the distribution of the input signal to the plurality of acoustic effect adding routines by the main routine and the connection change by simply changing the coefficient data, When the main routine is stored in the command storage unit and an arbitrary sound effect addition routine is selected and stored in the command storage unit, the addition or modification of the target sound effect is performed by the combination of the sound effect addition routines by the main routine. It becomes possible to eliminate the need for pre-processing such as clearing the memory of the instruction storage unit, and to add / change the sound effect.
It is sufficient to change and output only the coefficient data in the SP, and it is not necessary to transfer a new program.

【0007】また上記構成において、係数データの変更
は、入力信号の各音響効果付加ルーチンへの分配係数デ
ータ及び/又は各音響効果付加ルーチンからの収集係数
データの変更によりなされることになる。
In the above structure, the coefficient data is changed by changing the distribution coefficient data of the input signal to each acoustic effect addition routine and / or the collection coefficient data from each acoustic effect addition routine.

【0008】更に係数データの変更により結線変更を行
う場合に、該係数データとして、DSP内で演算される
エンベロープ値を用い、この係数データを、徐々に目的
値に変更すれば、クロスフェード回路等を用いなくて
も、クロスフェードさせることが可能になる。
Further, when the connection is changed by changing the coefficient data, an envelope value calculated in the DSP is used as the coefficient data, and if the coefficient data is gradually changed to a target value, a crossfade circuit or the like can be obtained. It is possible to crossfade without using.

【0009】[0009]

【発明の実施の形態】図1は、本発明に係る音響効果付
加装置の1実施形態構成を備えた電子楽器のブロック図
を示している。同図において、100はパネル操作子・
パネル操作表示ブロックを示しており、電子楽器のパネ
ルにてユーザ(演奏者)が操作した内容を取り込むと同
時に、後述するマスタCPU10の指令に基づいてその
時の電子楽器の状態(例えば図3に示すようなエフェク
ト結線の状態)を表示する。鍵スイッチブロック101
は、キースイッチのオンオフ情報をキーベロシティと共
に取り込み、マスタCPU10に送る。MIDI入出力
ブロック102は、マスタCPU10が処理した内容
(キーオン・オフ、音色ナンバ変更やエフェクト変更等
の各種情報)を出力すると共に、MIDI入力された情
報をマスタCPU10に送る。FD入出力ブロック10
3は、マスタCPU10の所有する各種情報(演奏情
報、パネルレジスト情報、エフェクト情報等)を、フレ
キシブルディスク等の外部記憶媒体に保存したり、そこ
から読み出したりする。RAM104は、マスタCPU
10のワーキングRAMであると同時に、自動演奏パタ
ーンや自動伴奏パターンの格納エリアでもある。ROM
105は、マスタCPU10のプログラムを格納してお
くと同時に、後述するDSPのプログラムを記憶してお
く(もちろんDSPのプログラムは外部記憶媒体から読
み込まれてRAM104に記憶しておくことも可能であ
る)。他方DSPの各種効果プログラムに用いられる係
数データも、該ROM105に格納される。なお、この
ROM105は、フラッシュメモリ等で代用させること
もできる。マスタCPU10は、同実施形態構成におい
ては電子楽器の全てを統括する本発明の主演算回路を構
成しており、電源投入後のパネル初期設定、RAM10
4の初期設定、後述するDSP1a及び1bの初期設定
(イニシャルローダ)も行う。またパネルにて音色が変
更されれば、対応するパラメータを後述する音源回路1
06に送り、キーオンオフがあれば、そのアサイン結果
に基づき該音源回路106の対応するCHの状態を更新
させる。更にパネルにて新たな効果が選択され又は図3
に示されるような新たな効果の連結が選択された時も、
ROM105に記憶されている対応するプログラム(但
し後述するように連結変更の場合には係数データのみ)
や係数データをDSP1a及び1bへ転送する。音源回
路106は、前記マスタCPU10の制御下におかれ
て、同時に32DCO(デジタル・コントロールド・オ
シレータ)の発音が可能であり、波形生成方法に特に限
定はないが、例えばPCM波形読み出しによる方法やサ
イン合成法で発音が行われる。ここで作られた32音は
4つの出力系列に対し、夫々独立したミキシングレート
で乗算された後、系列毎に32DCO分加算されて、O
UT1〜OUT4から出力される。このOUT1〜OU
T4の出力は、シリアルのステレオ出力であり、一般的
にCD(コンパクトディスク)で使用されているCDF
フォーマットに準じている。従ってこれら出力OUT1
〜OUT4は、DSP1a乃至1bを介さずに、ミキシ
ングさえされれば、DAC(デジタル・アナログ・コン
バータ)107の入力フォーマットと同じなので、DA
C107に直接接続することができる。
FIG. 1 is a block diagram of an electronic musical instrument having an embodiment of a sound effect adding apparatus according to the present invention. In the figure, 100 is a panel operator
6 shows a panel operation display block, in which the contents operated by the user (player) on the panel of the electronic musical instrument are taken in, and at the same time, the state of the electronic musical instrument at that time (for example, as shown in FIG. 3) based on a command from the master CPU 10 described later. The effect connection status is displayed. Key switch block 101
Receives the on / off information of the key switch together with the key velocity and sends it to the master CPU 10. The MIDI input / output block 102 outputs the contents processed by the master CPU 10 (various kinds of information such as key-on / off, tone color number change, effect change, etc.), and sends the MIDI input information to the master CPU 10. FD input / output block 10
Reference numeral 3 stores or reads out various information (performance information, panel registration information, effect information, etc.) possessed by the master CPU 10 in an external storage medium such as a flexible disk. RAM 104 is a master CPU
At the same time as the 10 working RAMs, it is also a storage area for automatic performance patterns and automatic accompaniment patterns. ROM
Reference numeral 105 stores the program of the master CPU 10 and at the same time stores the program of the DSP described later (of course, the program of the DSP can be read from an external storage medium and stored in the RAM 104). . On the other hand, the coefficient data used for various effect programs of the DSP are also stored in the ROM 105. The ROM 105 can be replaced with a flash memory or the like. In the configuration of the embodiment, the master CPU 10 constitutes the main arithmetic circuit of the present invention that controls all the electronic musical instruments, and the panel initialization after the power is turned on, the RAM 10
4 and initial setting of DSPs 1a and 1b (initial loader) described later. When the tone color is changed on the panel, the corresponding parameter is set to the tone generator circuit 1 described later.
If the key is turned on and off, the state of the corresponding CH of the tone generator circuit 106 is updated based on the assignment result. In addition, a new effect is selected in the panel or Fig. 3
When a new effect chain as shown in is selected,
Corresponding program stored in ROM 105 (however, in the case of connection change as described later, only coefficient data)
And coefficient data are transferred to the DSPs 1a and 1b. The tone generator circuit 106, under the control of the master CPU 10, is capable of simultaneously producing 32 DCO (digital controlled oscillator) sounds, and there is no particular limitation on the waveform generation method. Pronunciation is performed by the sign synthesis method. The 32 sounds created here are multiplied by independent mixin grades for each of the four output sequences, and then 32 DCO is added to each sequence, and O is added.
It is output from UT1 to OUT4. This OUT1-OU
The output of T4 is a serial stereo output, which is a CDF generally used for CDs (compact discs).
It conforms to the format. Therefore, these outputs OUT1
..- OUT4 is the same as the input format of the DAC (digital-analog converter) 107 as long as it is mixed without going through the DSPs 1a and 1b.
It can be directly connected to C107.

【0010】DSP1a乃至1bは、同じ汎用のDSP
であり、外部RAM(例えば1MbitDRAM×2)
を制御下において、楽音信号に種々の音響効果を付加す
る。これらDSP1a乃至1bは2入力2出力からな
り、それぞれがステレオ信号である。このうちDSP1
bのSout1は外部出力につながっていない。これら
のDSPの内部構成は、一例として図2に示すようにな
っており、マスタCPU10から転送され、内部の命令
記憶部に相当する命令RAM2aに格納されるプログラ
ム及び係数RAM2bに格納される係数データに基づ
き、データRAM2c内に格納された楽音信号に対し、
1サンプルタイム(約44.1KHz)内に複数の効果
付加プログラムを時分割処理する。即ち命令RAM2a
に記憶されたプログラムは、デコーダで解読されて、D
SP内の制御が行なわれ、音源回路106から入力され
た楽音信号は、データRAM2c内に格納され、前述の
ように、マスタCPU10から転送された係数データは
係数RAM2bに格納される。そして前記制御命令によ
り、係数データがCレジスタ3aに、楽音信号のデータ
がDレジスタ3bに順次格納され、乗算器4で両レジス
タ内の積が求められ、一旦Pレジスタ5に格納される。
該乗算値は、Yレジスタ7に格納されゲート8を介して
戻された従前の加算値と共に、加算器6で加算され、Y
レジスタ7内に格納され、これらが必要な回数繰り返さ
れる。これらの乗算・加算処理の終了した信号は、選択
器9から上位24bitだけ(倍精度の場合だけ下位2
4bitも使用される)データRAM2cに格納され、
格納された信号に対し再び別の音響効果の付加処理が行
われるか、格納された信号とは別に他の楽音信号に対し
別の音響効果の付加処理が行われるか、更にはSIO
1、SIO2のSout1乃至Sout2から出力され
ることになる。このDSP1a乃至1bへの楽音信号の
入力は、SIO1乃至2を使用し、DSPからの効果付
加信号の出力はSIO1乃至2を使用して行われる。但
し、前述のようにDSP1bのSout1は外部出力に
つながっていない。なお、これらのDSP1a乃至1b
の出力段側にある○囲みの+は、加算器を意味してお
り、実際にはCDFフォーマットによりL/R時分割の
シリアル信号がくるので、加算器手前で一度シリアル−
パラレル変換し、加算を行った後、パラレル−シリアル
変換して再びシリアル信号にして出力することになる。
The DSPs 1a and 1b are the same general-purpose DSPs.
External RAM (for example, 1 Mbit DRAM x 2)
Under control, various sound effects are added to the tone signal. These DSPs 1a and 1b have two inputs and two outputs, and each is a stereo signal. Of these, DSP1
Sout1 of b is not connected to the external output. The internal configuration of these DSPs is as shown in FIG. 2 as an example, and the program transferred from the master CPU 10 and stored in the instruction RAM 2a corresponding to the internal instruction storage unit and the coefficient data stored in the coefficient RAM 2b. Based on the above, for the tone signal stored in the data RAM 2c,
A plurality of effect addition programs are time-divisionally processed within one sample time (about 44.1 KHz). That is, the instruction RAM 2a
The program stored in is decoded by the decoder and
The control in the SP is performed, the tone signal input from the tone generator circuit 106 is stored in the data RAM 2c, and the coefficient data transferred from the master CPU 10 is stored in the coefficient RAM 2b as described above. Then, the coefficient data is sequentially stored in the C register 3a and the data of the tone signal is sequentially stored in the D register 3b by the control command, and the product of both registers is obtained by the multiplier 4 and temporarily stored in the P register 5.
The multiplication value is added by the adder 6 together with the previous addition value stored in the Y register 7 and returned via the gate 8, and Y
Stored in register 7, these are repeated as many times as necessary. The signals for which the multiplication / addition processing has been completed are output from the selector 9 only in the upper 24 bits (the lower 2 bits only in the case of double precision).
4bit is also used) is stored in the data RAM 2c,
Whether another acoustic effect addition process is performed again on the stored signal, or another acoustic effect addition process is performed on another musical tone signal separately from the stored signal, and further, SIO
1, SIO1 and Sout2 of SIO2. The tone signals are input to the DSPs 1a and 1b using SIO1 and 2, and the effect added signals are output from the DSP using SIO1 and 2. However, as described above, Sout1 of the DSP 1b is not connected to the external output. In addition, these DSPs 1a to 1b
The + in the circle on the output stage side of means an adder, and since the L / R time-division serial signal actually comes in the CDF format, the serial-
After parallel conversion and addition are performed, parallel-serial conversion is performed and a serial signal is output again.

【0011】DAC107は、汎用のデジタルアナログ
変換器であり、その出力信号はアンプを通してスピーカ
から出力される。
The DAC 107 is a general-purpose digital-analog converter, and its output signal is output from a speaker through an amplifier.

【0012】図3は、音源回路106の出力OUT1〜
4が2つのDSP1a乃至1bを経由してDAC107
へ到達するまでの結線経路を示している。図中f1とf
2は、DSP1aで処理される2つの音響効果付加ルー
チン(処理)を示し、f3とf4は、DSP1bで処理
される2つの音響効果付加ルーチンを示している。結線
のパターンは、M1〜M5の5種類ある。
FIG. 3 shows outputs OUT1 to OUT1 of the tone generator circuit 106.
4 through the two DSPs 1a-1b to the DAC 107
It shows the connection route to reach. F1 and f in the figure
Reference numeral 2 indicates two acoustic effect addition routines (processing) processed by the DSP 1a, and f3 and f4 indicate two acoustic effect addition routines processed by the DSP 1b. There are five types of connection patterns M1 to M5.

【0013】そのうちM1の結線パターンでは、例えば
音源回路106のOUT1から出力された楽音信号に対
しf1でトレモロ効果をかけ、これに同OUT2からの
楽音信号を加算して、f2でコーラス効果をかけると共
に、それから出力された信号にOUT3から出力された
楽音信号を加算して、f3でそれにディレイ効果をか
け、更にOUT4から出力された楽音信号を加算して、
f4でリバーブ効果をかけて出力する。これらの結線の
変更は、後述する図4に示されるように、各DSP内の
メインフローの係数データを変更(例えば0H←→7F
FFH)することで行われる。またDSP1aとDSP
1bとを直列に結線するか並列に結線するかは、DSP
1aの出力をSout1にするかSout2にするかで
決定され、結局はDSP内の係数データ変更によるもの
となる。この係数データは、16bit2進数にて形成
され、2の補数として扱われるため、その取り得る値
は、下記表1に示す通りである。同表に示すように、そ
の最大値は7FFFHであり、その値を用いて乗算をし
た場合には、DSP内部にて、32767/32768
=0.99996948…という値を乗算したことにな
る。この値は略1であるため、本実施形態では7FFF
Hをもってスルーとしている。
In the connection pattern of M1 among them, for example, a tremolo effect is applied to the musical tone signal output from OUT1 of the sound source circuit 106 at f1, the musical tone signal from the same OUT2 is added to this, and a chorus effect is applied at f2. At the same time, the tone signal outputted from OUT3 is added to the signal outputted therefrom, the delay effect is applied to it at f3, and the tone signal outputted from OUT4 is further added,
The reverb effect is applied at f4 and output. To change these connections, as shown in FIG. 4, which will be described later, the coefficient data of the main flow in each DSP is changed (for example, 0H ← → 7F).
FFH). Also DSP1a and DSP
Whether 1b and 1b are connected in series or in parallel depends on the DSP.
It is determined by whether the output of 1a is set to Sout1 or Sout2, and eventually it depends on the coefficient data change in the DSP. Since this coefficient data is formed by a 16-bit binary number and is treated as a two's complement, its possible values are as shown in Table 1 below. As shown in the table, the maximum value is 7FFFH, and when multiplication is performed using that value, 32767/32768 is internally set in the DSP.
That is, the value is multiplied by 0.999996948. Since this value is approximately 1, 7FFF is used in this embodiment.
H is a through.

【0014】[0014]

【表1】 [Table 1]

【0015】またM2の結線パターンでは、音源回路1
06のOUT1から出力された楽音信号に対し音響効果
f1をかけ、また同OUT2から出力された楽音信号に
対し音響効果f2をかけ、これらの音響効果の付与され
た信号を加算すると共に、それから出力された信号にO
UT3から出力された楽音信号を加算して、音響効果f
3をかけ、更にOUT4から出力された楽音信号を加算
して、音響効果f4をかけて出力する。
In the connection pattern of M2, the tone generator circuit 1
The tone signal output from OUT1 of 06 is subjected to the acoustic effect f1 and the tone signal output from OUT2 thereof is applied to the acoustic effect f2, and the signals to which these acoustic effects are added are added and then output. O for the signal
Tone effect f is added by adding the tone signals output from UT3.
3 is added, the tone signals output from OUT4 are added, and the sound effect f4 is applied and output.

【0016】M3の結線パターンでは、音源回路106
のOUT1から出力された楽音信号に対し音響効果f1
をかけ、また同OUT2から出力された楽音信号に対し
音響効果f2をかけ、これらの音響効果の付与された信
号を加算すると共に、それから出力された信号にOUT
3から出力された楽音信号を加算して、音響効果f3を
かけ、他方OUT4から出力された楽音信号に対し音響
効果f4をかけた後、最後にこれらの信号を加算して出
力する。
In the wiring pattern of M3, the tone generator circuit 106
Sound effect f1 to the tone signal output from OUT1 of
In addition, the musical sound signal output from the same OUT2 is multiplied by the acoustic effect f2, the signals to which these acoustic effects are added are added, and the signal output from the OUT2 is output.
The musical tone signals output from No. 3 are added and the acoustic effect f3 is applied, and the musical tone signal output from OUT4 is applied with the acoustic effect f4. Finally, these signals are added and output.

【0017】M4の結線パターンでは、音源回路106
のOUT1から出力された楽音信号に対し音響効果f1
をかけ、それに同OUT2から出力された楽音信号を加
算して、更に音響効果f2をかけると共に、OUT3か
ら出力された楽音信号に対し音響効果f3をかけ、更に
OUT4から出力された楽音信号を加算して、音響効果
f4をかけ、最後に音響効果f2及びf4の付与された
信号を加算して出力する。
In the M4 connection pattern, the tone generator circuit 106
Sound effect f1 to the tone signal output from OUT1 of
, The musical tone signal output from OUT2 is added to it, and the acoustic effect f2 is further multiplied, and the musical tone signal output from OUT3 is multiplied by acoustic effect f3, and the musical tone signal output from OUT4 is further added. Then, the sound effect f4 is applied, and finally the signals to which the sound effects f2 and f4 are added are added and output.

【0018】M5の結線パターンでは、音源回路106
のOUT1から出力された楽音信号に対し音響効果f1
をかけ、また同OUT2から出力された楽音信号に対し
音響効果f2をかけ、これらの音響効果の付与された信
号を加算すると共に、OUT3から出力された楽音信号
に対し音響効果f3をかけ、また同OUT4から出力さ
れた楽音信号に対し音響効果f4をかけた後、最後に音
響効果f1及びf2の加算値と音響効果f3及びf4の
加算値を更に加算して出力する。
In the connection pattern of M5, the tone generator circuit 106
Sound effect f1 to the tone signal output from OUT1 of
, The sound signal output from OUT2 is multiplied by the sound effect f2, the signals to which these sound effects are added are added, and the sound signal output from OUT3 is applied the sound effect f3. After the acoustic effect f4 is applied to the musical tone signal output from the OUT4, the added value of the acoustic effects f1 and f2 and the added value of the acoustic effects f3 and f4 are further added and output.

【0019】図4は各DSPの後述するメインルーチン
のシグナルフローである。これらのDSPでは、2入力
(Sin1、Sin2)を得て、2つの効果付加(f1
とf2、又はf3とf4)を通して2出力(Sout1
〜Sout2)するものである。このフローに示された
ように、各DSPは、図3のM1〜M5の結線パターン
のいずれもが、係数データ(右向き矢視の△で示す)の
調整のみで行えるように汎用化したものが用いられてい
る(M1乃至M5では、DSP1a内のf1とf2、D
SP1b内のf3とf4内の夫々で係数データの調整に
より行われる)。図3で示された各DSP内の結線パタ
ーンは、2つのエフェクトファンクション(f1とf
2、f3とf4)が直列に結線されるか並列的に結線さ
れるかのいずれかになる。
FIG. 4 is a signal flow of a main routine, which will be described later, of each DSP. These DSPs obtain two inputs (Sin1, Sin2) and add two effects (f1
And f2, or f3 and f4), two outputs (Sout1
~ Sout2). As shown in this flow, each DSP is generalized so that all of the connection patterns of M1 to M5 in FIG. 3 can be performed only by adjusting coefficient data (shown by Δ in the right-pointing arrow). Used (in M1 to M5, f1 and f2 in DSP1a, D
This is performed by adjusting coefficient data in each of f3 and f4 in SP1b). The connection pattern in each DSP shown in FIG. 3 has two effect functions (f1 and f).
2, f3 and f4) are either connected in series or in parallel.

【0020】直列に結線される場合は、Sin1から入
力され、f1で所定の効果が付加された信号は、係数C
11を7FFFHとすることでスルーせしめられ、係数
C41及びC51を0Hと係数C21を7FFFHとす
ることで、f2の入力側に流れる。ここでSin2か
ら、係数C22を7FFFHとすることで入力されてき
た信号を、加算器で加算して、f2で更に音響効果を付
加する。次に係数C31と、係数C42か又は係数C5
2を、7FFFHとすると、Sout1又はSout2
から信号が出力される(但し係数C52又は係数C42
は0Hに変更される)。
When the signals are connected in series, the signal input from Sin1 and added with the predetermined effect at f1 is the coefficient C.
By setting 11 to 7FFFH, it is possible to pass through. By setting the coefficients C41 and C51 to 0H and the coefficient C21 to 7FFFH, the current flows to the input side of f2. Here, the signal input from Sin2 by setting the coefficient C22 to 7FFFH is added by the adder, and the acoustic effect is further added at f2. Next, coefficient C31 and coefficient C42 or coefficient C5
If 2 is 7FFFH, Sout1 or Sout2
The signal is output from (however, coefficient C52 or coefficient C42
Is changed to 0H).

【0021】他方並列に結線される場合は、係数C22
を7FFFH、係数C21を0Hとして、Sin1及び
Sin2から別個に入力された信号にf1及びf2の効
果をかけ、係数C11、C31、C51、C52(C1
1、C31、C41、C42)を7FFFHとし、係数
C41、C42(C51、C52)を0Hとすること
で、Sout2(Sout1)から信号が出力される。
On the other hand, when the wires are connected in parallel, the coefficient C22
Is 7FFFH and the coefficient C21 is 0H, the effects of f1 and f2 are applied to the signals separately input from Sin1 and Sin2, and the coefficients C11, C31, C51, C52 (C1
1, C31, C41, C42) is set to 7FFFH and the coefficients C41, C42 (C51, C52) are set to 0H, so that a signal is output from Sout2 (Sout1).

【0022】もちろん各音響効果処理をスルーさせるこ
ともできるが、その場合f1側の処理では係数C11を
0H、C12を7FFFHとすることで、またf2側の
処理では係数C31を0H、C32を7FFFHとする
ことで可能となる。この時係数C11とC12との間、
係数C31とC32との間で相補的に係数データの増減
を緩やかに行えば、音響効果処理のかけられた信号と該
処理のかけられていない信号とを、クロスフェードさせ
ることが可能となる(同様にスルー状態から新たな音響
効果が付加された楽音信号を出力する状態に変更する時
も、以上のようなクロスフェードを行うことが可能であ
る)。
Of course, each sound effect processing can be passed through, but in that case, the coefficient C11 is 0H and C12 is 7FFFH in the processing on the f1 side, and the coefficient C31 is 0H and C32 is 7FFFH in the processing on the f2 side. It becomes possible by At this time, between the coefficients C11 and C12,
By gently increasing and decreasing the coefficient data complementarily between the coefficients C31 and C32, it is possible to crossfade the signal subjected to the acoustic effect process and the signal not subjected to the process ( Similarly, when changing from the through state to the state of outputting a musical tone signal to which a new acoustic effect is added, the above crossfade can be performed).

【0023】また係数C11、C12、C31、C32
にてクロスフェードさせる場合、従来はマスタCPU1
0が係数C11、C12、C31、C32へ直接何度も
値を送出することで行っていたが、DSPの処理能力が
増すにつれ、次のようにDSP自体の演算によって係数
値をクロスフェードさせることも可能である。その場合
には、マスタCPU10は、上記各係数をどのくらい加
算値(または減算値)でクロスフェード演算させたいか
の値を係数としてDSPへ送出することになる。例えば
マスタCPU10がC'11=0001H(+1)、C'
12=FFFFH(−1)という係数データを送出する
と、DSPは、C11←C'11+C11、C12←C'
12+C12という演算をmax(7FFFH)または
min(000H)になるまで繰り返し演算して、その
演算結果を係数RAM2bに戻しておく。更に係数C2
1、C22の間やC41、C42の間、C51、C52
の間でも択一の場合は、上記クロスフェードを実行させ
ると良い。尚図4の中のt1〜t6は、DSPが演算結
果を一時的に格納するテンポラリレジスタを示してい
る。
Further, the coefficients C11, C12, C31, C32
If you want to crossfade with the master CPU1
0 has sent the value directly to the coefficients C11, C12, C31, C32 many times, but as the processing capability of the DSP increases, the coefficient value is cross-faded by the operation of the DSP itself as follows. Is also possible. In that case, the master CPU 10 sends to the DSP, as a coefficient, a value indicating how much the above coefficients should be added (or subtracted) for the crossfade operation. For example, if the master CPU 10 has C'11 = 0001H (+1), C '
When the coefficient data 12 = FFFFH (-1) is transmitted, the DSP causes C11 ← C'11 + C11, C12 ← C '.
The calculation of 12 + C12 is repeatedly calculated until max (7FFFH) or min (000H), and the calculation result is returned to the coefficient RAM 2b. Further coefficient C2
Between C1 and C22, between C41 and C42, C51 and C52
If there is an alternative between the two, it is advisable to execute the crossfade. Note that t1 to t6 in FIG. 4 represent temporary registers in which the DSP temporarily stores the calculation result.

【0024】図5は各DSPのメインフローをフローチ
ャート形式で表現したものである。ポーリング110
は、音源回路106の送出するWS(ワードセレクト)
信号の立ち上がりエッヂを検出し、楽音信号の1周期が
始まることを検出している。
FIG. 5 is a flow chart showing the main flow of each DSP. Polling 110
Is the WS (word select) sent by the tone generator circuit 106.
The rising edge of the signal is detected to detect the start of one cycle of the tone signal.

【0025】Rch入力120は、図4におけるSin
1及びSin2からの信号を、レジスタin1及びin
2へ、in1R+1、in2R+1として取り込み、R
ch出力130は、図4におけるSout1、Sout
2へ、出力側のテンポラリレジスタot1及びot2か
ら、ot1R−1、ot2R−1の信号データを出力す
る。
The Rch input 120 is the Sin in FIG.
The signals from 1 and Sin2 are transferred to registers in1 and in
2 is taken in as in1R + 1, in2R + 1 and R
The ch output 130 is Sout1 and Sout in FIG.
The signal data of ot1R-1 and ot2R-1 are output from the temporary registers ot1 and ot2 on the output side to 2.

【0026】f1スルー140は、音響効果付加ルーチ
ンf1のフローを通常通り通過させる(効果付加の処理
を行わせる)か、又はたまたま効果プログラムの転送中
(例えばパネル切り替えによりトレモロ効果からディス
トーション効果のプログラムへの切替のため該プログラ
ムを転送する)のため、該音響効果付加ルーチンf1を
スルーさせるか否かをチェックする。音響効果の変更に
よる効果プログラムの転送中には、命令RAM2aやデ
ータRAM2cのクリア等の事前処理がなされるため、
音響効果付加ルーチンf1の処理を行うと、該処理が暴
走するかまたは大きな雑音を発生する危険性があるから
である。このスルーさせるか否かを知らせる情報は、マ
スタCPU10が係数RAM2bのあるアドレスの値を
変更して行っても良いし、マスタCPU10からダイレ
クトに各DSPの汎用入力ポート(図示せず)へ信号を
送っても良い。
The f1 through 140 allows the flow of the sound effect adding routine f1 to pass through normally (performs the effect adding process), or happens to transfer the effect program (for example, the tremolo effect to the distortion effect program by switching the panel). Therefore, it is checked whether or not the sound effect adding routine f1 is to be passed. Since the instruction RAM 2a and the data RAM 2c are pre-processed during the transfer of the effect program due to the change of the acoustic effect,
This is because if the processing of the sound effect addition routine f1 is performed, there is a risk that the processing will run away or generate a large amount of noise. The information indicating whether or not to pass through may be performed by the master CPU 10 by changing the value of an address in the coefficient RAM 2b, or a signal may be directly sent from the master CPU 10 to a general-purpose input port (not shown) of each DSP. You can send it.

【0027】f1スルーでない通常の時は、callf
1(141)に進み、ここから音響効果付加ルーチンf1
をコールする。該音響効果付加ルーチンf1は、後述す
る図7のDSPの命令RAMのマップに示されるよう
に、命令RAM2aの後半に格納されている。この音響
効果付加ルーチンf1処理後の信号データの流れは、図
4に示すように、右入力については、テンポラリレジス
タt1に記憶された右信号データt1Rに係数C12の
データを乗算し、またテンポラリレジスタt2に記憶さ
れた右信号データt2Rに係数C11のデータを乗算し
て、両値を加算し、それをテンポラリレジスタt3の右
信号データt3Rとして記憶させる(t3R←t1R×
C12+t2R×C11)。左入力についても同様であ
る(t3L←t1L×C12+t2L×C11)。他方
テンポラリレジスタt3に記憶された信号データt3
R、t3Lは、更に係数C21のデータが乗算され、ま
た前記レジスタin2に記憶された信号データin2
R、in2Lに係数C22のデータを乗算して、両値を
加算し、それをテンポラリレジスタt4の信号データt
4R、t4Lとして記憶させる(t4R←t3R×C2
1+in2R×C22、t4L←t3L×C21+in
2L×C22)。
In the normal case where f1 through is not performed, callf
1 (141), from here, the sound effect addition routine f1
Call. The sound effect adding routine f1 is stored in the latter half of the instruction RAM 2a as shown in a map of the instruction RAM of the DSP of FIG. 7 described later. As shown in FIG. 4, the signal data flow after the processing of the sound effect adding routine f1 is, as shown in FIG. 4, for the right input, the right signal data t1R stored in the temporary register t1 is multiplied by the data of the coefficient C12. The right signal data t2R stored at t2 is multiplied by the data of the coefficient C11, both values are added and stored as the right signal data t3R of the temporary register t3 (t3R ← t1R ×
C12 + t2R × C11). The same applies to the left input (t3L ← t1L × C12 + t2L × C11). On the other hand, the signal data t3 stored in the temporary register t3
R and t3L are further multiplied by the data of the coefficient C21, and the signal data in2 stored in the register in2.
Multiply R and in2L by the data of the coefficient C22, add both values, and add the two values to the signal data t of the temporary register t4.
Store as 4R and t4L (t4R ← t3R × C2
1 + in2R × C22, t4L ← t3L × C21 + in
2L x C22).

【0028】またf1スルーの場合は、音響効果付加ル
ーチンf1をスルーする前に、f1と同程度のステップ
数だけウェイトをかけるために、f1相当delay1
42に進む。ここでは、例えばDSPに内蔵されたルー
プ命令を用いて必要なステップ数だけループさせる(係
数RAM2bに書かれているf1のステップ数をロード
し、その数だけディレイさせる)。このループはここで
使用したDSPが汎用であり、そのため冗長な機能が省
略されていて、R信号とL信号の入出力は同じポートに
て、図6のDSP入出力タイミングを表したタイムチャ
ートに示されるように、WS信号の立ち上がり(又は立
ち下がり)から所定時間(シリアルデータR0、L0処
理時間相当)内に行わなければならないことに起因す
る。
Further, in the case of f1 through, in order to apply the weight by the same number of steps as f1 before passing through the sound effect adding routine f1, delay1 corresponding to delay1
Proceed to 42. Here, for example, a loop instruction built in the DSP is used to perform a loop for a required number of steps (the number of steps of f1 written in the coefficient RAM 2b is loaded and delayed by that number). Since the DSP used here is general purpose in this loop, redundant functions are omitted, and the input and output of the R signal and L signal are at the same port, and the time chart showing the DSP input / output timing of FIG. 6 is shown. As shown, this is due to the fact that it must be performed within a predetermined time (corresponding to the serial data R0, L0 processing time) from the rising (or falling) of the WS signal.

【0029】次のf2スルー150とcallf2(1
51)、f2相当delay152については、f1の
それと同じなので、細かい部分は省略する。但し音響効
果付加ルーチンf2処理後の信号データの流れは、テン
ポラリレジスタt4に格納された信号データt4R、t
4Lに係数C32を乗算し、テンポラリレジスタt5に
格納された信号データt5R、t5Lに係数C31を乗
算して、両値を加算し、それをテンポラリレジスタt6
に、信号データt6R、t6Lとして記憶させる(t6
R←t4R×C32+t5R×C31、t6L←t4L
×C32+t5L×C31)。
The following f2 through 150 and callf2 (1
51) and the delay 152 corresponding to f2 are the same as those of f1, so the detailed parts are omitted. However, the flow of the signal data after the processing of the sound effect adding routine f2 is the signal data t4R, t4 stored in the temporary register t4.
4L is multiplied by the coefficient C32, the signal data t5R and t5L stored in the temporary register t5 are multiplied by the coefficient C31, both values are added, and the result is added to the temporary register t6.
And store as signal data t6R, t6L (t6R
R ← t4R × C32 + t5R × C31, t6L ← t4L
XC32 + t5LxC31).

【0030】テンポラリレジスタt3とt6に格納され
た信号データt3R、t6R、t3L、t6Lは、更に
所定の係数データが乗算されて、出力側のテンポラリレ
ジスタot1乃至ot2に格納されることになる。その
うち、最終的にSout1側出力となる分は、テンポラ
リレジスタt3に格納された信号データt3R、t3L
に係数C41を乗算し、テンポラリレジスタt6に格納
された信号データt6R、t6Lに係数C42を乗算し
て、両値を加算し、それを出力側のテンポラリレジスタ
ot1に、信号データot1R、ot1Lとして格納す
る(ot1R←t3R×C41+t6R×C42、ot
1L←t3L×C41+t6L×C42)。またSou
t2側出力となる分は、テンポラリレジスタt3に格納
された信号データt3R、t3Lに係数C51を乗算
し、テンポラリレジスタt6に格納された信号データt
6R、t6Lに係数C52を乗算して、両値を加算し、
それを出力側のテンポラリレジスタot2に、信号デー
タot2R、ot2Lとして格納する(ot2R←t3
R×C51+t6R×C52、ot2L←t3L×C5
1+t6L×C52)。
The signal data t3R, t6R, t3L, t6L stored in the temporary registers t3 and t6 are further multiplied by predetermined coefficient data and stored in the temporary registers ot1 and ot2 on the output side. Of these, the portion that finally becomes the Sout1 side output is the signal data t3R, t3L stored in the temporary register t3.
Is multiplied by a coefficient C41, the signal data t6R, t6L stored in the temporary register t6 is multiplied by a coefficient C42, both values are added, and the result is stored in the temporary register ot1 on the output side as the signal data ot1R, ot1L. Yes (ot1R ← t3R × C41 + t6R × C42, ot
1L ← t3L × C41 + t6L × C42). See you Sou
The signal to be output on the t2 side is obtained by multiplying the signal data t3R and t3L stored in the temporary register t3 by a coefficient C51, and the signal data t stored in the temporary register t6.
6R, t6L are multiplied by a coefficient C52, and both values are added,
It is stored in the temporary register ot2 on the output side as signal data ot2R and ot2L (ot2R ← t3
R × C51 + t6R × C52, ot2L ← t3L × C5
1 + t6L × C52).

【0031】次に、Lch入力160を行い、図4にお
けるSin1及びSin2からの信号を、レジスタin
1及びin2へ、in1L+1、in2L+1として取
り込み、Lch出力170は、図4におけるSout
1、Sout2へ、出力側のテンポラリレジスタot1
及びot2から、ot1L−1、ot2L−1の信号デ
ータを出力する。
Next, Lch input 160 is performed, and the signals from Sin1 and Sin2 in FIG.
1 and in2 are taken in as in1L + 1 and in2L + 1, and the Lch output 170 is Sout in FIG.
1, to Sout2, output side temporary register ot1
And ot2 output signal data of ot1L-1 and ot2L-1.

【0032】最後にデータRAMポインタ(DRP)の
値を+1してスタートに戻る。これは、次回のサンプリ
ングに基づくプログラムで、同じデータRAMアドレス
を指定しても、実際には自動的に+1のアドレスをアク
セスするためである。これにより前回(in1R/L+
1、in2R/L+1)に、格納した入力データは、今
回(in1R/L、in2R/L)として読み出すこと
になり、また今回(ot1R/L、ot2R/L)とし
て格納された出力データは、次回サンプリングタイムに
(ot1R/L−1、ot2R/L−1)として読み出
すことになる。
Finally, the value of the data RAM pointer (DRP) is incremented by 1 and the process returns to the start. This is because even if the same data RAM address is specified in the program based on the next sampling, the address of +1 is actually automatically accessed. As a result, the last time (in1R / L +
1, the input data stored in in2R / L + 1) will be read out this time (in1R / L, in2R / L), and the output data stored this time (ot1R / L, ot2R / L) will be read next time. It will be read as (ot1R / L-1, ot2R / L-1) at the sampling time.

【0033】上記図5のDSPプログラムは、1サンプ
リングタイム(44.1KHz)の間に前処理を済まし
て、またポーリング状態となり、次のWS信号の立ち上
がりを待つものである。この一連のプログラムは、相前
後する3つのサンプリングタイムを用いて、下記表2に
示すようにパイプライン処理している。即ちT−1時間
に、in1R+1←Sin1、in2R+1←Sin2
の処理と、in1L+1←Sin1、in2L+1←S
in2の処理を行う。次のT時間に、f1スルー?、c
allf1、f1相当delay、(t3R←t1R×
C12+t2R×C11、t3L←t1L×C12+t
2L×C11)、(t4R←t3R×C21+in2R
×C22、t4L←t3L×C21+in2L×C2
2)、f2スルー?、callf2、f2相当dela
y、(t6R←t4R×C32+t5R×C31、t6
L←t4L×C32+t5L×C31)、(ot1R←
t3R×C41+t6R×C42、ot1L←t3L×
C41+t6L×C42)、(ot2R←t3R×C5
1+t6R×C52、ot2L←t3L×C51+t6
L×C52)の各処理を行う。更にT+1時間に、So
ut1←ot1R−1、Sout2←ot2R−1の処
理と、Sout1←ot1L−1、Sout2←ot2
L−1の処理を行う。
The DSP program shown in FIG. 5 completes the preprocessing during one sampling time (44.1 KHz), enters the polling state, and waits for the next rise of the WS signal. This series of programs performs pipeline processing as shown in Table 2 below using three successive sampling times. That is, in T-1 time, in1R + 1 ← Sin1, in2R + 1 ← Sin2
Processing and in1L + 1 ← Sin1, in2L + 1 ← S
Perform in2 processing. F1 through at the next T time? , C
allf1, delay equivalent to f1, (t3R ← t1R ×
C12 + t2R × C11, t3L ← t1L × C12 + t
2L × C11), (t4R ← t3R × C21 + in2R
× C22, t4L ← t3L × C21 + in2L × C2
2), f2 through? , Callf2, f2 equivalent dela
y, (t6R ← t4R × C32 + t5R × C31, t6
L ← t4L × C32 + t5L × C31), (ot1R ←
t3R × C41 + t6R × C42, ot1L ← t3L ×
C41 + t6L × C42), (ot2R ← t3R × C5
1 + t6R × C52, ot2L ← t3L × C51 + t6
Each process of L × C52) is performed. Furthermore, at T + 1 hour, So
ut1 ← ot1R-1, Sout2 ← ot2R-1, and Sout1 ← ot1L-1, Sout2 ← ot2
The process of L-1 is performed.

【0034】[0034]

【表2】 [Table 2]

【0035】なお前述した図7のDSPの命令RAMの
マッピングについて説明する。同命令RAM2aの前半
は、楽音信号の入出力を制御するプログラム[Rch入
出力(in1R+1←Sin1、in2R+1←Sin
2、Sout1←ot1R−1、Sout2←ot2R
−1)、Lch入出力用(in1L+1←Sin1、i
n2L+1←Sin2、Sout1←ot1L−1、S
out2←ot2L−1)]を含むメインルーチンが、
またその後半には、前記メインルーチンからアクセスさ
れることによって作動する選択可能な音響効果付加ルー
チンf1及びf2(マスタCPU10がエフェクトファ
ンクション切替時に転送)が記憶されている。更に前記
メインルーチンは、入力信号(L&R入力信号)を選択
された音響効果付加ルーチンf1又はf2に分配する
(callf1乃至callf2)と共に、これらの音
響効果付加ルーチンf1及びf2から出力される効果付
加信号を収集(t3R←t1R×C12+t2R×C1
1、t3L←t1L×C12+t2L×C11、t4R
←t3R×C21+in2R×C22、t4L←t3L
×C21+in2L×C22、t6R←t4R×C32
+t5R×C31、t6L←t4L×C32+t5L×
C31、ot1R←t3R×C41+t6R×C42、
ot1L←t3L×C41+t6L×C42、ot2R
←t3R×C51+t6R×C52、ot2L←t3L
×C51+t6L×C52)して、出力信号(L&R出
力信号)とする機能を有している。その他該メインルー
チンには、前述のように、f1乃至f2スルーの分岐に
よって、これらのスルー時に、f1相当delay、f
2相当delay処理を行う命令を含んでいる。
The mapping of the instruction RAM of the DSP shown in FIG. 7 will be described. The first half of the instruction RAM 2a is a program [Rch input / output (in1R + 1 ← Sin1, in2R + 1 ← Sin for controlling input / output of a musical tone signal.
2, Sout1 ← ot1R-1, Sout2 ← ot2R
-1), for Lch input / output (in1L + 1 ← Sin1, i
n2L + 1 ← Sin2, Sout1 ← ot1L-1, S
out2 ← ot2L-1)] including the
Further, in the latter half thereof, selectable sound effect addition routines f1 and f2 (transferred when the master CPU 10 switches the effect function) stored by being accessed by the main routine are stored. Furthermore, the main routine distributes the input signal (L & R input signal) to the selected acoustic effect addition routine f1 or f2 (callf1 to callf2), and the effect addition signal output from these acoustic effect addition routines f1 and f2. Collect (t3R ← t1R × C12 + t2R × C1
1, t3L ← t1L × C12 + t2L × C11, t4R
← t3R × C21 + in2R × C22, t4L ← t3L
× C21 + in2L × C22, t6R ← t4R × C32
+ T5R × C31, t6L ← t4L × C32 + t5L ×
C31, ot1R ← t3R × C41 + t6R × C42,
ot1L ← t3L × C41 + t6L × C42, ot2R
← t3R × C51 + t6R × C52, ot2L ← t3L
XC51 + t6LxC52), and it has a function as an output signal (L & R output signal). In addition, in the main routine, as described above, by branching through f1 and f2 through, at the time of these through, delay corresponding to f1, f
It includes an instruction for performing a 2 equivalent delay process.

【0036】本実施形態の電子楽器は、次のようにして
使用される。まず、該電子楽器のスイッチをONとする
ことで、マスタCPU10は、パネル初期設定・RAM
104の初期設定・DSPの初期設定等を行う。そして
FD入出力ブロック103から必要な情報をRAM10
4に読み出す。演奏者のパネル操作により、マスタCP
U10は、RAM104及び/又はROM105から、
メインルーチン及び音響効果付加ルーチンをDSP1a
及びDSP1bの命令RAM2aに転送する。この時音
響効果付加ルーチンは、パネルで選択された音響効果の
種類により、それに対応したものが送られることにな
る。また同時に選択された音響効果の種類に対応した係
数データも、DSP内の係数RAM2bに転送される。
この時パネル操作で既に両DSP内及びDSP間の結線
パターンM1〜M5が決定されていることになる。
The electronic musical instrument of this embodiment is used as follows. First, by turning on the switch of the electronic musical instrument, the master CPU 10 sets the panel initial setting / RAM.
Initial settings of 104 and DSP are performed. Then, necessary information is input from the FD input / output block 103 to the RAM 10
Read to 4. Master CP by the player's panel operation
U10 is from RAM 104 and / or ROM 105
Main routine and sound effect addition routine
And to the instruction RAM 2a of the DSP 1b. At this time, depending on the type of the sound effect selected on the panel, the sound effect adding routine is sent as a corresponding one. At the same time, coefficient data corresponding to the selected acoustic effect type is also transferred to the coefficient RAM 2b in the DSP.
At this time, the connection patterns M1 to M5 in both DSPs and between the DSPs have already been determined by the panel operation.

【0037】次に演奏者の操作により、鍵スイッチブロ
ック101のキースイッチON・OFF情報を、キーベ
ロシティと共に、マスタCPU10に送ったり、MID
I入出力ブロック102から、或いはRAM104・R
OM105から演奏情報をマスタCPU10に送り、更
にマスタCPU10は、該演奏情報に基づき、対応する
音色のパラメータとキーON・OFFのアサイン結果
を、音源回路106に送り、該音源回路106のOUT
1〜OUT4から発音データが出力される。
Next, by the player's operation, the key switch ON / OFF information of the key switch block 101 is sent to the master CPU 10 together with the key velocity, and the MID is transmitted.
From the I / O block 102 or RAM 104 / R
The OM 105 sends performance information to the master CPU 10, and based on the performance information, the master CPU 10 sends the corresponding tone color parameter and key ON / OFF assignment result to the tone generator circuit 106, and the OUT of the tone generator circuit 106.
The pronunciation data is output from 1 to OUT4.

【0038】この発音データは、各DSPのSIO1乃
至2を経由してデータRAM2cに送られ、その結果前
記結線パターンM1〜M5のいずれかに基づく音響効果
付加処理がなされる(エフェクトがかけられる)。この
時の音響効果付加ルーチンfnは、命令RAM2aの後
半にマッピングされており、メインルーチンによりコー
ルされて実行されることになる。また結線パターンM1
〜M5の結線の仕方は、前述のように係数データにより
決定され、従って該係数データの変更のみで結線パター
ンの変更が可能となる(但し係数データの変更のみで
は、音響効果付加ルーチンの種類の変更はできない。そ
の場合はマスタCPU10の転送によることになる)。
そして所望の音響効果が付加された楽音信号は、DAC
107により出力されてアンプを介してスピーカから出
力される。
The sound data is sent to the data RAM 2c via the SIOs 1 and 2 of the DSPs, and as a result, the sound effect adding process based on any of the connection patterns M1 to M5 is performed (effect is applied). . The sound effect adding routine fn at this time is mapped in the latter half of the instruction RAM 2a, and is called and executed by the main routine. Also, the connection pattern M1
The way to connect M5 to M5 is determined by the coefficient data as described above. Therefore, the connection pattern can be changed only by changing the coefficient data (however, only changing the coefficient data is equivalent to the type of the sound effect adding routine). It cannot be changed. In that case, it depends on the transfer of the master CPU 10.)
Then, the musical tone signal to which the desired acoustic effect is added is the DAC.
It is output by 107 and is output from the speaker via the amplifier.

【0039】なお、パネルにて新たな効果が選択された
場合、マスタCPU10は、RAM104・ROM10
5からそれに対応するプログラムや係数データを、DS
P1a及び1bに転送する。またその際音響効果付加ル
ーチンfnをスルーさせることになるが、このスルーの
時と該スルー状態から新たな音響効果が付加された楽音
信号を出力する状態に変更する時に、前述のように、各
DSP内の係数C11とC12との間、係数C31とC
32との間で相補的に該係数データの増減を行うこと
で、音響効果処理のかけられた信号と該処理のかけられ
ていない信号とを、クロスフェードさせることが可能と
なる。
When a new effect is selected on the panel, the master CPU 10 determines the RAM 104 / ROM 10
From 5 to the corresponding program and coefficient data, DS
Transfer to P1a and 1b. Further, at that time, the sound effect adding routine fn is made to pass through. As described above, at the time of this through and at the time of changing from the through state to the state of outputting the tone signal to which the new sound effect is added, as described above, Between the coefficients C11 and C12 in the DSP, the coefficients C31 and C
By performing complementary increase / decrease of the coefficient data with 32, it is possible to crossfade the signal subjected to the acoustic effect process and the signal not subjected to the process.

【0040】即ち、マスタCPU10は、DSP1a及
びDSP1bのC11、C31を7FFFH→0Hへ、
C12、C32を0H→7FFFHへクロスフェードさ
せる。これによって音響効果付加ルーチンf1、f2と
も、効果が付加されずスルーとなる。マスタCPU10
はDSP1a及びDSP1bにジャンプ(f1及びf2
スルー)するように命じる。この命令伝達方法は、前述
のように、係数RAMの1つを書き替えて行っても良い
し、DSP1a及びDSP1bの汎用入力ポートに信号
を送っても良い。DSPは、この信号を受けている間は
命令RAM2aのf1及びf2プログラムエリアをアク
セスしないことになる。マスタCPU10は、DSP1
a及び1bの書き替えに必要な効果付加ルーチンのプロ
グラムのみを転送する。この転送中もDSP1a及び1
bは音源回路106からシリアルで送られてくる楽音信
号を、音響効果の付加なしに、各サンプリング毎に出力
している。その後マスタCPU10は、DSP1a及び
1bにジャンプ(f1スルーf2スルー)を解除(中
止)するように命じる。DSPはこのジャンプ解除で通
常の処理フローに戻り、音響効果付加ルーチンf1、f
2のプログラムもアクセスするようになる。但しまだC
11とC31は0H、C12とC32は7FFFHであ
るため、楽音信号はスルーの時と全く同じである。更に
マスタCPU10は、DSP1a及び1bに新たな音響
効果付加ルーチンの係数データを転送する。この期間は
各DSPが新たな係数データに対応した演算が軌道にの
るまで必要となる。一般的に外部RAMデータが書き替
えられる時間まで考慮すると、1msec〜50mse
cほど必要となる。その時間は外部RAMの容量に比例
する。新たな音響効果付加ルーチンが新たな係数データ
に基づいて正常に処理されるようになった時に、マスタ
CPU10は、DSP1a及び1bのC11、C31を
0H→7FFFHへ、C12、C32を7FFFH→0
Hへクロスフェードさせる。これによって新たな音響効
果の付加が可能となる。
That is, the master CPU 10 changes C11 and C31 of the DSP1a and DSP1b from 7FFFH to 0H.
Crossfade C12 and C32 from 0H to 7FFFH. As a result, no effect is added to both the sound effect adding routines f1 and f2, and the routine goes through. Master CPU 10
Jumps to DSP1a and DSP1b (f1 and f2
Through). This command transmission method may be performed by rewriting one of the coefficient RAMs, as described above, or by sending a signal to the general-purpose input ports of the DSP 1a and DSP 1b. The DSP will not access the f1 and f2 program areas of the instruction RAM 2a while receiving this signal. The master CPU 10 is the DSP 1
Only the program of the effect addition routine necessary for rewriting a and 1b is transferred. During this transfer, DSP1a and DSP1a
In b, the tone signal serially sent from the tone generator circuit 106 is output for each sampling without adding a sound effect. After that, the master CPU 10 commands the DSPs 1a and 1b to cancel (stop) the jump (f1 through f2 through). Upon canceling this jump, the DSP returns to the normal processing flow, and the sound effect adding routines f1 and f
The second program will also be accessed. But still C
Since 11 and C31 are 0H and C12 and C32 are 7FFFH, the tone signal is exactly the same as that in the through mode. Further, the master CPU 10 transfers the coefficient data of the new sound effect adding routine to the DSPs 1a and 1b. This period is required until each DSP puts a calculation corresponding to the new coefficient data on its orbit. Generally, considering the time for rewriting external RAM data, 1 msec to 50 mse
c is required. The time is proportional to the capacity of the external RAM. When the new sound effect adding routine is normally processed based on the new coefficient data, the master CPU 10 sets C11 and C31 of the DSPs 1a and 1b to 0H → 7FFFH and C12 and C32 to 7FFFH → 0.
Crossfade to H. This makes it possible to add new acoustic effects.

【0041】上記の例では、C11及びC31と、C1
2及びC32とを常にペアーでクロスフェードさせた
が、もし音響効果付加ルーチンf1のみを転送する場合
は、f2側はその効果が付加されたままで良いため、C
31とC32はクロスフェードさせる必要はない。また
上記のようにプログラムを転送する場合は、マスタCP
U10の処理が多少複雑になるが、係数データを転送す
る場合は、ただ単にマスタCPU10はただその係数デ
ータを送ればよいことになる。
In the above example, C11 and C31 and C1
2 and C32 were always cross-faded in a pair, but if only the sound effect adding routine f1 is transferred, the effect can be left added to the f2 side.
There is no need to crossfade 31 and C32. When transferring a program as described above, the master CP
Although the processing of U10 is somewhat complicated, the master CPU 10 only has to send the coefficient data when transferring the coefficient data.

【0042】[0042]

【発明の効果】以上詳述した本発明の構成を有する装置
によれば、メインルーチンによる複数の音響効果付加ル
ーチンに対する入力信号の分配と、単なる係数データ変
更による結線変更とにより、複数の音響効果の付加及び
その変更が可能になるため、一旦命令記憶部にメインル
ーチンが記憶され、任意の音響効果付加ルーチンが選択
されて同命令記憶部に記憶されれば、該メインルーチン
による音響効果付加ルーチンの組み合わせで目的とする
音響効果の付加・変更が可能になり、命令記憶部の記憶
をクリアする等の事前処理を行う必要がなくなると共
に、音響効果の付加・変更も、DSP内の係数データの
みを変更して出力すれば足り、新たなプログラムの転送
を行う必要がなくなる。従って複数の音響効果を付加す
る時のプログラムの切替のスピードアップと、ディスク
リート部品の削減ができるようになる。
According to the apparatus having the configuration of the present invention described in detail above, a plurality of acoustic effects can be obtained by distributing the input signal to the plurality of acoustic effect adding routines by the main routine and changing the connection by simply changing the coefficient data. Since the main routine is once stored in the command storage unit and any sound effect addition routine is selected and stored in the command storage unit, the sound effect addition routine by the main routine is added. With the combination of, it is possible to add / change the desired sound effect, and it is not necessary to perform pre-processing such as clearing the memory of the instruction storage unit. Also, addition / change of the sound effect can be done only by coefficient data in the DSP. It is sufficient to change and output, and there is no need to transfer a new program. Therefore, it is possible to speed up the program switching when adding a plurality of sound effects and reduce the number of discrete parts.

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

【図1】本発明に係る音響効果付加装置の1実施形態構
成を備えた電子楽器をブロック図である。
FIG. 1 is a block diagram of an electronic musical instrument having a configuration of an embodiment of a sound effect adding device according to the present invention.

【図2】DSPの内部構成を示すブロック図である。FIG. 2 is a block diagram showing an internal configuration of a DSP.

【図3】DSP部分のエフェクトファンクションfnの
結線図である。
FIG. 3 is a connection diagram of an effect function fn of a DSP part.

【図4】各DSPにおけるメインルーチンのシグナルフ
ローを示す説明図である。
FIG. 4 is an explanatory diagram showing a signal flow of a main routine in each DSP.

【図5】各DSPのメインフローを示すフローチャート
である。
FIG. 5 is a flowchart showing a main flow of each DSP.

【図6】DSP入出力タイミングを表したタイムチャー
トである。
FIG. 6 is a time chart showing DSP input / output timing.

【図7】DSPの命令RAMのマッピング状態を示す説
明図である。
FIG. 7 is an explanatory diagram showing a mapping state of a DSP instruction RAM.

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

1a、1b DSP 2a 命令RAM 2b 係数RAM 2c データRAM 3a Cレジスタ 3b Dレジスタ 4 乗算器 5 Pレジスタ 6 加算器 7 Yレジスタ 8 ゲート 9 選択器 10 マスタCPU 106 音源回路 1a, 1b DSP 2a Instruction RAM 2b Coefficient RAM 2c Data RAM 3a C register 3b D register 4 Multiplier 5 P register 6 Adder 7 Y register 8 Gate 9 Selector 10 Master CPU 106 Sound source circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 主演算回路の制御下で作動し、1つのD
SPで複数の音響効果が同時に選択処理可能な音響効果
付加装置において、楽音信号の入出力を制御するプログ
ラムを含むメインルーチンと、必要な時に主演算回路に
より転送されて前記メインルーチンからアクセスされる
ことで作動する複数の選択可能な音響効果付加ルーチン
とを記憶する命令記憶部を前記DSP内に有しており、
前記メインルーチンは、入力信号を複数の選択された音
響効果付加ルーチンに分配すると共に、これらの音響効
果付加ルーチンから出力される効果付加信号を収集して
出力信号とする機能を有し、且つ前記主演算回路から転
送されてDSP内に格納された係数データを変更するこ
とにより、入力信号の分配及び効果付加信号の収集時
に、前記メインルーチンの変更なしに複数の音響効果の
付加のための入出力信号の結線変更を行うことを特徴と
するDSPを用いた音響効果付加装置。
1. A D which operates under the control of a main arithmetic circuit.
In a sound effect adding apparatus capable of simultaneously selecting and processing a plurality of sound effects by an SP, a main routine including a program for controlling input / output of a musical sound signal, and a main operation circuit that transfers the sound signal when necessary and is accessed from the main routine. An instruction storage unit for storing a plurality of selectable sound effect addition routines operated by the above,
The main routine has a function of distributing an input signal to a plurality of selected sound effect adding routines, collecting the effect adding signals output from these sound effect adding routines, and making the output signals. By changing the coefficient data transferred from the main arithmetic circuit and stored in the DSP, it is possible to input a plurality of acoustic effects without changing the main routine when distributing the input signal and collecting the effect-added signal. A sound effect adding device using a DSP, characterized in that connection of an output signal is changed.
【請求項2】 請求項1記載のDSPを用いた音響効果
付加装置において、係数データの変更により結線変更を
行う場合に、該係数データとして、DSP内で演算され
るエンベロープ値を用い、この係数データを、徐々に目
的値に変更し、クロスフェードさせることを特徴とする
請求項1記載のDSPを用いた音響効果付加装置。
2. The sound effect adding apparatus using the DSP according to claim 1, wherein when the connection is changed by changing the coefficient data, an envelope value calculated in the DSP is used as the coefficient data, and the coefficient is calculated. The sound effect adding apparatus using a DSP according to claim 1, wherein the data is gradually changed to a target value and cross-faded.
JP8065197A 1996-02-28 1996-02-28 Sound effect adding device using dsp Pending JPH09237090A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP8065197A JPH09237090A (en) 1996-02-28 1996-02-28 Sound effect adding device using dsp
US08/806,920 US6031916A (en) 1996-02-28 1997-02-26 Sound effect adding device using DSP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8065197A JPH09237090A (en) 1996-02-28 1996-02-28 Sound effect adding device using dsp

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2002151890A Division JP2002351460A (en) 2002-05-27 2002-05-27 Sound effect adding device using dsp

Publications (1)

Publication Number Publication Date
JPH09237090A true JPH09237090A (en) 1997-09-09

Family

ID=13279962

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8065197A Pending JPH09237090A (en) 1996-02-28 1996-02-28 Sound effect adding device using dsp

Country Status (1)

Country Link
JP (1) JPH09237090A (en)

Similar Documents

Publication Publication Date Title
EP0698875B1 (en) Acoustic signal producing apparatus
EP0568789B1 (en) Digital signal processing apparatus employed in electronic musical instruments
JP4702392B2 (en) Resonant sound generator and electronic musical instrument
US5602358A (en) Effect imparting device and electronic musical instrument incorporating same
JP3358324B2 (en) Electronic musical instrument
US6031916A (en) Sound effect adding device using DSP
US20220199057A1 (en) Sound Signal Generation Method, Sound Signal Generation Device, Non-transitory Computer Readable Medium Storing Sound Signal Generation Program and Electronic Musical Apparatus
JP3305562B2 (en) Sound effect adding device using DSP
JP3179333B2 (en) Sound effect adding device using DSP
JPH09237090A (en) Sound effect adding device using dsp
JP2002351460A (en) Sound effect adding device using dsp
EP0529273B1 (en) Effect adding apparatus
JP3518716B2 (en) Music synthesizer
JPH09292879A (en) Digital signal processor
WO2020195041A1 (en) Filter effect imparting device, electronic musical instrument, and control method for electronic musical instrument
JP3223827B2 (en) Sound source waveform data generation method and apparatus
JP3016470B2 (en) Sound source device
JP3918309B2 (en) Effect device
JP3991475B2 (en) Audio data processing apparatus and computer system
JP3508139B2 (en) Digital signal processor
JP3104873B2 (en) Sound source device
JP2642092B2 (en) Digital effect device
JP2000172262A (en) Musical tone processor
JPH0777982A (en) Effect adding device
JP5035388B2 (en) Resonant sound generator and electronic musical instrument

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20020423