JP2643405B2 - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JP2643405B2
JP2643405B2 JP1009436A JP943689A JP2643405B2 JP 2643405 B2 JP2643405 B2 JP 2643405B2 JP 1009436 A JP1009436 A JP 1009436A JP 943689 A JP943689 A JP 943689A JP 2643405 B2 JP2643405 B2 JP 2643405B2
Authority
JP
Japan
Prior art keywords
mode
sound
tone
channel
command
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
JP1009436A
Other languages
Japanese (ja)
Other versions
JPH02188795A (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 JP1009436A priority Critical patent/JP2643405B2/en
Publication of JPH02188795A publication Critical patent/JPH02188795A/en
Application granted granted Critical
Publication of JP2643405B2 publication Critical patent/JP2643405B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、楽音の音像位置を制御しながら発音制御を
行う電子楽器に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument that controls sound generation while controlling a sound image position of a musical sound.

〔従来の技術〕[Conventional technology]

近年の電子楽器において、楽音の出力をモノラルのみ
でなくステレオで出力できるものが開発されている。そ
してこの場合、左右チャネルへの楽音の振り分けを行う
装置が開発されている。
2. Description of the Related Art In recent years, electronic musical instruments capable of outputting not only monaural sound but also stereo sound have been developed. In this case, a device for distributing musical sounds to left and right channels has been developed.

このような装置の従来例として、例えば楽音に各々異
なったLFOビブラート又はLFOトレモロ等の効果を付加し
て2種類の楽音出力を生成し、これらの楽音を例えば演
奏者によってあらかじめ設定された音像位置で左右チャ
ネルい振り分けるものがある。又は、左右チャネルの間
で上記2種類の楽音がランダムに振り分けられるように
制御するものもある。
As a conventional example of such a device, for example, two different tone outputs are generated by adding different LFO vibrato or LFO tremolo effects to a tone, and these tone are output to a sound image position preset by a player, for example. There is something to sort left and right channels. Alternatively, there is a control method in which the above two types of musical tones are randomly distributed between the left and right channels.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

しかし、上記従来例は、演奏操作によって楽音を左右
チャネルに振り分けるものではなく、演奏者の意志とは
無関係に左右チャネルへの振り分けが行われ、演奏者の
意図したようなステレオ効果を得ることができないとい
う問題点を有している。
However, in the above-mentioned conventional example, the musical sound is not distributed to the left and right channels by the performance operation, but is distributed to the left and right channels irrespective of the performer's will, and the stereo effect as intended by the performer can be obtained. There is a problem that it cannot be done.

本発明の課題は、演奏者による演奏操作に基づいて楽
音の音像位置を制御可能とし、これによって演奏者が意
図したような効果(エフェクト)を得られるようにする
ことにある。
An object of the present invention is to make it possible to control a sound image position of a musical tone based on a performance operation by a player, thereby obtaining an effect intended by the player.

〔課題を解決するための手段〕[Means for solving the problem]

本発明は、まず、複数の音像位置の各々で所定のポリ
フォニック数で楽音信号を独立に発生する音源手段を有
する。同手段は、例えば周波数変調タイプ又は位相変調
タイプのデジタル音源、PCM音源等種々のタイプの音源
が適用できる。そして、例えばステレオの左チャネル及
び右チャネルの各音像位置で、楽音信号を例えば時分割
処理によって独立に発音する手段である。又は、左右の
中央の音像位置あるいは連続的に左右の混合率が変化す
る音像位置で楽音信号を発音させるようにしてもよい。
また、この場合、左右チャネルの各々で例えば4音、8
音等のポリフォニック数で楽音信号を独立に発音する。
First, the present invention has a sound source means for independently generating a tone signal with a predetermined polyphonic number at each of a plurality of sound image positions. As the means, various types of sound sources such as a frequency modulation type or a phase modulation type digital sound source and a PCM sound source can be applied. For example, a tone signal is generated independently at, for example, a sound image position of a left channel and a right channel of a stereo by time division processing. Alternatively, the tone signal may be generated at the center of the left or right sound image or at the position of the sound image in which the mixing ratio of the left and right continuously changes.
Also, in this case, for example, four sounds, eight
A tone signal is generated independently with a polyphonic number of sounds or the like.

次に、ノートオン情報が入力する毎に音源手段におい
て音像位置を変更しながらノートオン情報に基づく楽音
を発音させるとともに、この楽音を発音させる音像位置
で既に所定のポリフォニック数で楽音が発音されている
場合、この音像位置以外の音像位置でノートオン情報に
基づく楽音を発音させる音像位置制御手段を有する。こ
の場合、ノートオン情報は、例えばMIDI(Musical Inst
rument Digital Interfece)規格に基づいて鍵盤楽器等
から入力し、又は、内蔵の鍵盤部から押鍵された鍵に対
応して入力する。そして、上記音像位置制御手段は、上
記ノートオン情報が入力する毎に、前記音源手段におけ
る例えば左右チャネルへの発音割り当てを交互に変更し
ながら、各ノートオンコマンドに基づいて音高・音量・
音色等を制御して楽音を発音させる手段である。ここ
で、好ましき構成例によれば、各ノートオン情報の入力
に対応して所定の音像位置を決定したときに、前記音源
手段における前記所定の音像位置で前記所定のポリフォ
ニック数の楽音が発音されている場合、前記音像位置制
御手段は前記音源手段において前記所定の音像位置以外
の音像位置で前記ノートオン情報に基づく楽音を発音さ
せる。また、同じく所定の音像位置を決定したときに、
前記音源手段における前記複数の音像位置の全てで前記
所定のポリフォニック数の楽音が発音されている場合、
前記定位置制御手段は前記音源手段において前記所定の
音像位置で発音されている楽音のうち最も古く発音開始
された楽音を消音して前記ノートオン情報に基づく楽音
を発音させる。
Next, each time the note-on information is input, a tone based on the note-on information is emitted while changing the sound image position in the sound source means, and the tone is already emitted at a predetermined polyphonic number at the sound image position at which the tone is emitted. If there is, a sound image position control means for producing a musical tone based on the note-on information at a sound image position other than the sound image position is provided. In this case, the note-on information is, for example, MIDI (Musical Inst.
rument Digital Interface) Input from a keyboard instrument or the like based on the standard, or input corresponding to a key pressed from a built-in keyboard. Then, every time the note-on information is input, the sound image position control means alternately changes the sound assignment to, for example, the left and right channels in the sound source means, and based on each note-on command,
This is a means for controlling a tone and the like to generate a musical tone. Here, according to the preferred configuration example, when the predetermined sound image position is determined in response to the input of each note-on information, the musical sound of the predetermined polyphonic number is generated at the predetermined sound image position in the sound source means. If it is sounded, the sound image position control means causes the sound source means to generate a musical tone based on the note-on information at a sound image position other than the predetermined sound image position. Also, when the predetermined sound image position is determined,
When the tone of the predetermined polyphonic number is generated at all of the plurality of sound image positions in the sound source means,
The fixed position control means silences the oldest one of the musical sounds generated at the predetermined sound image position in the sound source means and generates a musical sound based on the note-on information.

〔作用〕[Action]

演奏者が内蔵の又はMIDI等を介して外部に接続された
キーボード楽器等を用いて、鍵盤等の押鍵操作を繰り返
して演奏を行った場合、押鍵毎に音源手段から発音され
る楽音の音像位置が例えば左右チャネル交互に変化す
る、すなわち、演奏者は押鍵操作を単音ずつ行うことに
よって発音される楽音の音像位置を変更できる。また、
和音を演奏することによって、例えば左右チャネルで広
がった音像の楽音を発音でき、演奏者の意図に基づく効
果(エフェクト)を得ることができる。なお、鍵盤操作
に限られるものではなく、シーケンサー等を用いて自動
演奏を行う場合にもノートオン情報が入力に同期させて
楽音の音像位置を制御できる。
When a performer repeatedly performs a key press operation on a keyboard or the like using a built-in keyboard instrument or the like connected externally via MIDI or the like, the musical tone generated by the tone generator means for each key press is performed. The sound image position changes, for example, alternately between the left and right channels, that is, the player can change the sound image position of a musical tone that is produced by performing a single key press operation. Also,
By playing a chord, for example, a musical tone of a sound image spread in the left and right channels can be generated, and an effect (effect) based on the intention of the player can be obtained. Note that the present invention is not limited to keyboard operation, and even when an automatic performance is performed using a sequencer or the like, the sound image position of a musical tone can be controlled in synchronization with the input of note-on information.

この場合、ある音像位置における楽音のポリフォニッ
ク数が一杯になってしまった場合には、例えば他の音像
位置に振り分けることにより、適切な制御を行える。
In this case, when the polyphonic number of musical tones at a certain sound image position becomes full, appropriate control can be performed by, for example, distributing to another sound image position.

更に、全ての音像位置の楽音のポリフォニック数が一
杯になってしまった場合には、音像位置制御手段で指定
された音像位置において、後着優先で楽音を発音させる
ことができ、この場合も適切な制御を行うことができ
る。
Further, when the polyphonic number of musical tones at all the sound image positions becomes full, it is possible to cause the musical sound to be generated with the later arrival priority at the sound image position designated by the sound image position control means. Control can be performed.

〔実施例〕〔Example〕

以下、図面を参照しながら本発明の実施例を説明す
る。本実施例は、複数の演奏モードのうちから任意の演
奏モードを選択できる電子楽器として実現され、そのう
ち本発明に関連する部分は、演奏モードとしてノーマル
モード(NORMAL MODE)でキーボードモード(Key Board
Mode)が選択された場合のノートオンの制御処理(後
述する)に関するものである。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. The present embodiment is realized as an electronic musical instrument capable of selecting an arbitrary performance mode from a plurality of performance modes. Among them, a portion related to the present invention is a normal mode (NORMAL MODE) as a performance mode and a keyboard mode (Key Board).
Mode) is related to a note-on control process (described later) when (Mode) is selected.

本実施例の構成 第1図は、本発明による電子楽器の構成図である。本
実施例は、外部からのMIDIコマンド(データを含む。以
下同じ。)を受信し、それに基づいて音源を制御して対
応する楽音を発音する音源モジュールタイプの電子楽器
として実現されるが、同図に示すように鍵盤部16又はコ
ントローラー17を有するキーボード楽器等の一部として
実現することも可能である。なお、コントローラ17とし
ては、例えば演奏時の音高を任意に変更するためのベン
ダーホイール(Bender wheel)、トレモロの深さ等を任
意に変更できるモジュレーションホイール(Modulation
wheel)、予め設定された楽音構成要素の1つ又は複数
に対して任意にデータを変更させることのできるディフ
ァイナブルホイール(Definable wheel)等の操作子が
ある。以下の説明では、特に言及しない限り外部からの
MIDIコマンドに基づいて制御される音源モジュールとし
て説明を行う。
FIG. 1 is a configuration diagram of an electronic musical instrument according to the present invention. The present embodiment is realized as a tone generator module type electronic musical instrument that receives a MIDI command (including data, the same applies hereinafter) from the outside, controls a tone generator based on the command, and generates a corresponding musical tone. As shown in the figure, it can be realized as a part of a keyboard musical instrument or the like having a keyboard section 16 or a controller 17. As the controller 17, for example, a bender wheel for arbitrarily changing the pitch at the time of performance, a modulation wheel (Modulation wheel) for arbitrarily changing the depth of tremolo and the like can be used.
wheel), and an operator such as a definable wheel that can arbitrarily change data for one or a plurality of preset tone components. In the following description, unless otherwise stated,
The description will be given as a tone generator module controlled based on a MIDI command.

中央制御装置(以下、CPUと呼ぶ)1は、後述する各
処理部からのデータ処理及び各処理部を制御するための
制御データの送出等を行い、電子楽器全体の制御を行
う。
A central control device (hereinafter, referred to as a CPU) 1 performs data processing from each processing unit described later, sends control data for controlling each processing unit, and the like, and controls the entire electronic musical instrument.

スイッチ部3は各種スイッチ群であり、音色を切り換
えるためのスイッチ、演奏モード(後述する)を切り換
えるためのスイッチ、各種制御データ・演奏モード設定
データ・音色データ等の設定状態を変更するためのスイ
ッチ、又はデータの値を変更するためのボリューム等か
らなり、これらのスイッチ情報はバス2を介してCPU1に
取り込まれて処理された後、各処理形にデータが設定又
は送出される。
The switch unit 3 is a group of various switches, a switch for switching a tone color, a switch for switching a performance mode (described later), and a switch for changing setting states of various control data, performance mode setting data, tone color data, and the like. , Or a volume for changing the value of data. After these pieces of switch information are fetched into the CPU 1 via the bus 2 and processed, data is set or transmitted to each processing form.

表示部4は、LED又はLCDディスプレイ等により、現在
の演奏状態、設定データ値、システムの設定状態等が、
CPU1からバス2を介して送られてくるデータに対応して
表示される。
The display unit 4 displays the current performance state, setting data value, system setting state, and the like by using an LED or an LCD display.
The data is displayed corresponding to the data sent from the CPU 1 via the bus 2.

MIDI回路5は、MIDI規格に従って外部から入力する本
音源モジュールを制御する信号を受信してバス2を介し
てCPU1に転送し、或いは逆にCPU1からバス2を介して出
力される外部の電子楽器を制御するための信号をMIDI規
格に従って送信するためのインタフェース回路である。
The MIDI circuit 5 receives a signal for controlling the tone generator module input from the outside according to the MIDI standard and transfers the signal to the CPU 1 via the bus 2, or conversely, an external electronic musical instrument output from the CPU 1 via the bus 2 Is an interface circuit for transmitting a signal for controlling the communication according to the MIDI standard.

外部インタフェース6は、ICカードの記憶されたデー
タ・プログラム等を取り込み、逆にICカードにデータ・
プログラム等を書き込むためのインタフェース回路であ
る。なお、この回路は本発明には特には関係しない。
The external interface 6 takes in the data program and the like stored in the IC card, and
This is an interface circuit for writing a program or the like. This circuit is not particularly relevant to the present invention.

ROM7は、本音源モジュールを動作させるためのプログ
ラムや音色データ、演奏データ等が記憶されている読み
出し専用メモリである。
The ROM 7 is a read-only memory that stores a program for operating the tone generator module, tone color data, performance data, and the like.

RAM8は、上記プログラム中で使用されるデータ、音色
データ、音色制御用データ、演奏データ又は演奏状態デ
ータ等を一時的に記憶する書き換え可能なメモリであ
る。
The RAM 8 is a rewritable memory that temporarily stores data, tone color data, tone color control data, performance data, performance state data, and the like used in the program.

音源9は、CPU1からバス2を介して入力する制御デー
タに基づき、音色がセットされ発音状態が制御されなが
ら楽音を発音する回路であり、PCM音源タイプ、周波数
変調タイプ、位相変調タイプ等、種々のデジタル音源回
路が適用できる。
The tone generator 9 is a circuit that emits a musical tone while the tone is set and the tone generation state is controlled based on control data input from the CPU 1 via the bus 2, and includes various types such as a PCM tone generator type, a frequency modulation type, and a phase modulation type. Digital sound source circuit can be applied.

D/A変換器10は、音源9からのデジタル楽音データを
ステレオのアナログ楽音信号に変換する変換回路であ
る。
The D / A converter 10 is a conversion circuit that converts digital musical sound data from the sound source 9 into a stereo analog musical sound signal.

パンニング効果発生器11は、D/A変換器10からのステ
レオのアナログ楽音信号に対して、左右チャネルの音像
位置を自動的に変化させるパンニング効果を付加する回
路である。このパンニング効果の状態は、CPU1からバス
2を介して入力する制御信号により制御される。なお、
本発明は楽音信号をステレオの左右チャネルの間で振り
分ける一種のパンニング処理に関するものであるが、パ
ンニング効果発生器11はアナログ楽音信号になってから
パンニング効果を一定音像位置又はランダムに付加させ
る回路であり、本実施例には特には関連しない。勿論、
それは、本実施例に関してのことであって、このような
パンニング効果発生器11によって、本発明の音像位置制
御を行ってもよいことは明らかである。
The panning effect generator 11 is a circuit for adding a panning effect to the stereo analog tone signal from the D / A converter 10 to automatically change the sound image positions of the left and right channels. The state of the panning effect is controlled by a control signal input from the CPU 1 via the bus 2. In addition,
The present invention relates to a kind of panning processing for distributing a tone signal between left and right channels of a stereo.A panning effect generator 11 is a circuit for adding a panning effect at a fixed sound image position or at random at an analog tone signal. There is no particular relation to this embodiment. Of course,
This is for the present embodiment, and it is clear that the sound image position control of the present invention may be performed by such a panning effect generator 11.

フィルター12は、パンニング効果発生器11からのステ
レオ楽音信号に対して、必要以外の周波数成分を除去す
るための左右チャネル独立のフィルターである。
The filter 12 is a left and right channel independent filter for removing unnecessary frequency components from the stereo tone signal from the panning effect generator 11.

アンプ13は、上記ステレオ出力を左右チャネル独立に
増幅し、このようにして増幅されたステレオ楽音信号は
各スピーカ14、15から放音される。なお、本実施例を音
源モジュールとして実現する場合、アンプ13及びスピー
カ14、15を省略し、フィルター12からのスレテオ楽音信
号を音源モジュールに接続される外部オーディオシステ
ムに出力するようにしてもよい。
The amplifier 13 amplifies the stereo output independently for the left and right channels, and the amplified stereo tone signal is emitted from the speakers 14 and 15. When the present embodiment is implemented as a sound source module, the amplifier 13 and the speakers 14 and 15 may be omitted, and the stereo tone signal from the filter 12 may be output to an external audio system connected to the sound source module.

鍵盤部16およびコントローラ17は、はじめに説明した
ように本実施例をキーボード楽器の一部として実現する
場合の構成例であり、本発明には直接は関係しないた
め、その動作説明は省略する。
As described above, the keyboard section 16 and the controller 17 are configuration examples in the case where the present embodiment is realized as a part of a keyboard musical instrument. Since the keyboard section 16 and the controller 17 are not directly related to the present invention, the description of the operation thereof is omitted.

本実施例の基本動作フロー 上記構成の電子楽器の動作を以下に説明する。なお、
以下に示す各動作フローチャートは、第1図のCPU1がRO
M7に記憶されているプログラムに従って動作することに
より実行される。
Basic operation flow of the present embodiment The operation of the electronic musical instrument having the above configuration will be described below. In addition,
In the operation flowcharts shown below, the CPU 1 in FIG.
It is executed by operating according to the program stored in M7.

本実施例による電子楽器は、電源オンと同時に第5図
のジェネラル動作フローチャートをスタートさせ繰り返
し実行するが、そのほか第2図〜第4図及び第21図、第
22図の各動作フローチャートを割り込み処理によって実
行する。なお、第9図及び第11図〜第18図は、第5図の
ジェネラル動作フローチャートの各部の詳細である。
The electronic musical instrument according to the present embodiment starts and executes the general operation flowchart of FIG. 5 as soon as the power is turned on. In addition, FIG. 2 to FIG. 4, FIG.
Each operation flowchart of FIG. 22 is executed by an interrupt process. FIGS. 9 and 11 to 18 show the details of each part of the general operation flowchart of FIG.

まず、本実施例の基本動作フローにつき第2図〜第5
図の動作フローチャートに従って説明する。なお、随時
第1図の各処理部を参照しながら説明を行う。
First, the basic operation flow of this embodiment will be described with reference to FIGS.
The operation will be described according to the operation flowchart shown in FIG. The description will be given with reference to each processing unit in FIG. 1 as needed.

第2図は、CPU1内の特には図示しないタイマーからの
一定周期毎の割り込みに基づいて、第5図のジェネラル
動作フローチャートに優先して実行される処理フローで
あり、S201において、スイッチ部3の各スイッチの状態
のRAM8の特には図示しないエリアに取り込む処理を行
う。この処理を実行した後は、再び第5図のジェネラル
動作フローチャートでの処理に戻る。
FIG. 2 is a processing flow that is executed prior to the general operation flowchart of FIG. 5 based on an interrupt from the timer (not shown) in the CPU 1 at regular intervals. A process is performed to capture the state of each switch into an area (not shown) of the RAM 8. After executing this processing, the processing returns to the processing in the general operation flowchart of FIG. 5 again.

第3図は、MIDI回路5が特には図示しない外部機器か
らのMIDIコマンドを受信した場合に、MIDI回路5からの
割り込みに基づいて、第5図のジェネラル動作フローチ
ャートに優先して実行される処理フローであり、S301に
おいて、MIDI回路5で受信されたMIDIコマンドをRAM8の
特には図示しないエリアに取り込む処理及びMIDI入力が
発生したことを示すフラグをRAM8内の特には図示しない
エリアにセットする処理を行う。この処理を実行した後
は、再び第5図のジェネラル動作フローチャートでの処
理に戻る。
FIG. 3 is a flowchart showing a process executed when the MIDI circuit 5 receives a MIDI command from an external device (not shown) based on an interrupt from the MIDI circuit 5 in preference to the general operation flowchart of FIG. This is a flow, in S301, a process of taking in a MIDI command received by the MIDI circuit 5 in an area (not shown) of the RAM 8 and a process of setting a flag indicating that a MIDI input has occurred in an area (not shown) in the RAM 8 I do. After executing this processing, the processing returns to the processing in the general operation flowchart of FIG. 5 again.

第4図は、本実施例がキーボード楽器の一部として実
現され、鍵盤部16及びコントローラ17等を具備するよう
な場合に、これらが操作されたときに該操作データを外
部機器に出力するための処理フローであり、S401におい
て、上記操作に基づく割り込み処理によりMIDI回路5を
介してMIDIコマンドとして出力する処理を行う。なお、
この動作は通常のMIDIコマンドの出力処理であり、本発
明に直接は関連しない。
FIG. 4 shows a case where the present embodiment is realized as a part of a keyboard musical instrument and includes a keyboard section 16 and a controller 17 and the like, and when these are operated, the operation data is output to an external device. In S401, a process of outputting as a MIDI command via the MIDI circuit 5 by an interrupt process based on the above operation is performed in S401. In addition,
This operation is a normal MIDI command output process and is not directly related to the present invention.

第5図は、CPU1によって繰り返し実行されるジェネラ
ル動作フローチャートである。
FIG. 5 is a general operation flowchart repeatedly executed by the CPU 1.

始めに電源が投入されると、S501において、音源9に
対する初期設定、表示部4への初期表示データの設定、
RAM8における各制御データ・コントロールデータ・演算
用データ等の初期化等のイニシャライズ処理が行われ
る。
When the power is first turned on, in S501, initial settings for the sound source 9, setting of initial display data for the display unit 4,
Initialization processing such as initialization of each control data, control data, operation data, and the like in the RAM 8 is performed.

次に、S502において、スイッチ部3の状態変化の有無
が判別される。なお、ここで判別されるスイッチデータ
は、第2図に示した割り込み処理によって検出されRAM8
に取り込まているスイッチデーアを用いる。
Next, in S502, it is determined whether or not the state of the switch unit 3 has changed. The switch data determined here is detected by the interrupt processing shown in FIG.
Use the switch data incorporated in the.

上記判別によりスイッチ状態に変化があれば、S503に
おいて、スイッチ変化処理を行う。ここでは、演奏モー
ドの設定のほか、音色データの設定、MIDI制御データの
設定、パンニング(PAN)制御データの設定及び各デー
タの変更、音源9に対する楽音制御用データの設定、表
示部4へのデータ設定、コントロールデータの初期設
定、パンニング効果発生器11に対する制御、外部インタ
フェース6を介してのICカード等とのデータ又はプログ
ラムの授受、MIDIの制御等、システム状態に応じて必要
な全ての処理がなされる。なお、この動作については後
に詳述する。以上の動作の後はS504の処理に移る。
If there is a change in the switch state according to the above determination, a switch change process is performed in S503. Here, in addition to the setting of the performance mode, the setting of the tone data, the setting of the MIDI control data, the setting of the panning (PAN) control data and the change of each data, the setting of the tone control data for the tone generator 9, the setting of the display unit 4 Data processing, initial setting of control data, control of panning effect generator 11, transfer of data or program with IC card or the like via external interface 6, control of MIDI, etc., all necessary processing according to the system state Is made. This operation will be described later in detail. After the above operation, the process moves to S504.

一方、前記S502の判別によりスイッチ状態に変化がな
ければ、S503のスイッチ変化処理は実行せず、S504の処
理に移る。
On the other hand, if there is no change in the switch state according to the determination in S502, the switch change process in S503 is not executed, and the process proceeds to S504.

続いてS504では、MIDI回路5を介してMIDIコマンドの
入力がなされたか否かが判別される。なお、ここでMIDI
入力の有無を判別するためのフラグは、前記したように
第3図に示した割り込み処理によってRAM8にセットされ
る。
Subsequently, in S504, it is determined whether or not a MIDI command has been input via the MIDI circuit 5. Note that MIDI
The flag for determining the presence or absence of an input is set in the RAM 8 by the interrupt processing shown in FIG. 3 as described above.

上記判別によりMIDI入力が有れば、S505のMIDI IN処
理を実行する。ここでは入力したMIDIコマンドを識別
し、該データに対応して内部演奏モードの変更、音色デ
ータの変更、PAN制御データの変更、楽音制御データの
変更、及びこれらに対する全ての処理、また、楽音の制
御、表示データの制御、MIDIの制御等がシステム状態及
び設定データに応じて処理される。なお、ここは本発明
に特に関係する部分であり、本発明に係る動作について
は後に詳述する。以上の動作の後はS506の処理に移る。
If there is a MIDI input according to the above determination, the MIDI IN process of S505 is executed. Here, the input MIDI command is identified, and corresponding to the data, the internal performance mode is changed, the tone data is changed, the PAN control data is changed, the tone control data is changed, and all processes for these are performed. Control, control of display data, control of MIDI, and the like are processed according to the system state and setting data. Note that this is a portion particularly related to the present invention, and the operation according to the present invention will be described later in detail. After the above operation, the process moves to S506.

一方、前記S504の判別によりIMIDI入力がなければ、S
505のMIDI IN処理が実行せず、S506の処理に移る。
On the other hand, if there is no IMIDI input in the determination of S504, S
The MIDI IN process of 505 is not executed, and the process proceeds to S506.

S506では、鍵盤部16において押鍵変化の有無が判別さ
れる。この処理は、「本実施例の構成」の項で説明した
ように、本実施例をキーボード楽器の一部として実現し
鍵盤部16を有する場合に実行される処理で、自己の鍵盤
操作も楽音の発音制御に反映させるために、S506の押鍵
変化の有無の判別を行う。
In S506, it is determined whether or not there is a key depression change in the keyboard unit 16. As described in the section of “Configuration of the present embodiment”, this process is executed when the present embodiment is implemented as a part of a keyboard instrument and the keyboard unit 16 is provided. In step S506, the presence / absence of a key depression change is determined in order to reflect the sound generation control.

そして、押離鍵操作がなされた場合には、S507におい
て、押鍵変化処理を行う。この処理は、押離鍵操作に伴
うデータの変更、発音の割り当て、発音処理、消音処
理、MIDI制御等の処理であるが、通常のキーボード楽器
の動作と同じであり、また、本発明に直接は関係しない
ため、その詳細は省略する。
If a key press / release operation has been performed, a key press change process is performed in S507. This processing is processing such as data change, sound generation assignment, sound generation processing, mute processing, MIDI control, etc., associated with a key press and release operation, but is the same as the operation of a normal keyboard instrument. Does not matter, and the details are omitted.

上記処理の後又はS506の判別により押鍵変化がなった
場合は、S502の処理に戻ることにより、S502〜S507の処
理を繰り返し実行する。
After the above processing or when the key depression has changed by the determination in S506, the processing returns to S502, and the processing in S502 to S507 is repeatedly executed.

なお、本実施例を鍵盤部16を持たない音源モジュール
タイプの電子楽器として実現する場合には、S506及びS5
07の処理は実行する必要はない。
When the present embodiment is realized as a tone generator module type electronic musical instrument having no keyboard section 16, S506 and S5
It is not necessary to execute the process of 07.

本実施例における発音態様の概要 以上説明した本実施例の基本動作フローにおいて、本
発明に特に関係する部分は、第5図のジェネラル動作フ
ローチャートのS505のMIDI IN処理であるが、これらの
詳細について説明する前に、本実施例による電子楽器の
発音態様の概要を説明する。
Outline of pronunciation mode in this embodiment In the basic operation flow of this embodiment described above, a part particularly relevant to the present invention is the MIDI IN process of S505 in the general operation flowchart of FIG. Prior to the description, an outline of the pronunciation mode of the electronic musical instrument according to the present embodiment will be described.

本実施例では、最大同時発音数(以下、ポリフォニッ
ク(Poly)数又は単にPolyと呼ぶ)が8音、最大8音色
同時発音可能な音源として実現される。
In the present embodiment, the maximum number of polyphonic sounds (hereinafter referred to as polyphonic (Poly) number or simply Poly) is realized as a sound source capable of simultaneously generating eight sounds and a maximum of eight timbres.

そして、ノーマルモード(NORMAL MODE)、コンビネ
ーションモード(COMBINATION MDDE)、及びマルチポリ
フオォニックモード(MULTI.POLY MODE)の3つの演奏
モードを有する。NORMAL MODEにおいては、1音色で8
音Polyの楽音を発音可能である。COMBINATION MODEて
は、発音エリアを2つもち各エリアに対し1音色で4音
Polyを割り当て可能である。すなわち、4音Polyで2音
混合の楽音を発音可能である、MULTI.POLY MODEでは、
発音エリアを8つもち各エリアに対して1音色で0〜8
音Polyを割り当て可能である。但し、MULTI.POLY MODE
の全エリアのPoly数の合計が8音より大きくなることは
ない。
It has three performance modes: a normal mode (NORMAL MODE), a combination mode (COMBINATION MDDE), and a multi-polyphonic mode (MULTI.POLY MODE). In NORMAL MODE, 8 for one tone
The sound of the sound Poly can be pronounced. COMBINATION MODE has two sounding areas and four tones per tone for each area
Poly can be assigned. That is, in the MULTI.POLY MODE, it is possible to produce a two-tone mixed tone with four-tone Poly.
Eight sounding areas, one tone for each area 0-8
Sound Poly can be assigned. However, MULTI.POLY MODE
The total number of Poly in all areas will not be greater than 8 sounds.

更に、上記3つの演奏モードの各々に対して、NORMAL
MODE及びCOMBINATION MODEでは、各々、キーボードモ
ード(Key Board Mode)、キダーモード(Guitar Mod
e)及び管楽器モード(Wind Mode)を択一的に選択可能
で、MULTI.POLY MODEでは、Key Board Modeが固定的に
設定される。
Further, for each of the three performance modes, NORMAL
In MODE and COMBINATION MODE, respectively, Keyboard Mode (Key Board Mode), Kidder Mode (Guitar Mod)
e) and wind instrument mode (Wind Mode) can be selected alternatively. In the MULTI.POLY MODE, the Key Board Mode is fixedly set.

上記各演奏モードにおいて、第1図のMIDI回路5を介
して各MIDIコマンドが入力した場合の本実施例の発音態
様を第6図に示す。同図の表において、Note on/offコ
マンドは発音開始又は発音終了を指示する命令であり、
Pitch Denderコマンドはピッチベンド(音高変更)を指
示する命令であり、また、After Touchコマンドはアフ
タータッチ(押鍵後の鍵圧力)を指示する命令である。
更に、音色チェンジコマンドは発音すべき音色の変更を
指示する命令であり、コントロールチェンジコマンドは
モジュレーションホイール、フットボリューム、ポルタ
メントデータ、マスターポリューム、フットスイッチ等
の各種コントロールの変更を指示する命令である。
FIG. 6 shows a tone generation mode of this embodiment when each MIDI command is input via the MIDI circuit 5 in FIG. 1 in each of the performance modes. In the table shown in the figure, the Note on / off command is a command for instructing the start or end of sounding.
The Pitch Dender command is a command for instructing pitch bend (pitch change), and the After Touch command is a command for instructing after touch (key pressure after a key is pressed).
Further, the tone change command is a command for instructing a change of a tone to be generated, and the control change command is a command for instructing a change of various controls such as a modulation wheel, a foot volume, portamento data, a master volume, and a foot switch.

第6図で、第1演奏モードとしてNORMAL MODEでKey B
oard Modeが選択されている場合、Note on/off、Pitch
Bender及びAfter Touch、音色チェンジ及びコントロー
ルチェンジの全てのコマンドに対して、固定された所定
のMIDIチャネルが指定されている場合のみ動作し、他の
MIDIチャネルのコマンドは無視される。
In Figure 6, Key B in NORMAL MODE as the first performance mode
If oard Mode is selected, note on / off, pitch
For all commands of Bender and After Touch, tone change and control change, it works only when a fixed predetermined MIDI channel is specified, other
MIDI channel commands are ignored.

第2演奏モードとして、NORMAL MODEでGuitar Modeが
選択されている場合は、Note on/off及びPitch Bender
の各コマンドに対しては、固定された所定のMIDIチャネ
ルから5だけ加算したチャネルまで、各MIDIチャネルに
独立に対応して動作する。例えば所定のMIDIチャネルが
1のときには、1+5=6チャネルまで独立に動作す
る。これはギター等の弦楽器より入力されるコマンドの
MIDIチャネルが弦毎に独立に設定され、例えば第1弦〜
第6弦がチャネル1〜6に割り当てられるような場合が
多く、各弦毎のNote on/off(各弦毎のピッキングに対
応)及びPitcp Bender(各弦毎のチョーキング奏法等に
対応)の各指示がなされるためである。これに対して、
After Touch、音色チェンジ及びコントロールチェンジ
の各コマンドは、上記6チャネルのうち最低弦チャネル
の固定された所定のMIDIチャネルが指定されている場合
のみ該コマンドを受け付け、該チャネルから+5したチ
ャネルに対応する6弦分に対して同時に該コマンドを実
行する。これは、音色チェンジ等は6弦に対して同時に
指示されてるため、最低弦に対応するMIDIチャネルのみ
を用いてコマンドを送ることにより、6弦共通に命令が
実行されるようにし、これにより各弦別々に命令を転送
してしまうような冗長を防いでいる。
If Guitar Mode is selected in NORMAL MODE as the second performance mode, note on / off and Pitch Bender
, Each of the commands operates independently from the fixed predetermined MIDI channel to a channel obtained by adding 5 to each MIDI channel. For example, when the predetermined MIDI channel is 1, up to 1 + 5 = 6 channels operate independently. This is a command input from a stringed instrument such as a guitar.
The MIDI channel is set independently for each string, for example,
In many cases, the sixth string is assigned to channels 1 to 6, and note on / off for each string (corresponding to picking for each string) and Pitcp Bender (corresponding to chalking technique etc. for each string) This is because an instruction is given. On the contrary,
Each command of After Touch, tone change, and control change is accepted only when a fixed predetermined MIDI channel of the lowest string channel among the six channels is designated, and corresponds to a channel +5 from the channel. The command is executed simultaneously for six strings. This is because a tone change or the like is instructed for the 6th string at the same time, so by sending a command using only the MIDI channel corresponding to the lowest string, the command is executed commonly for the 6th string, thereby It prevents redundancy, such as transferring instructions separately for each string.

第3演奏モードとして、NORMAL MODEでWind Modeが選
択されている場合は、Key Board Modeが選択されている
場合と同様であるが、After touchコマンドが入力した
場合は、After Tcuchコマンドのデータを楽音の音量・
音色のパラメータに変換する場合の変換カーブ(以下、
アフターカーブと呼ぶ)を管楽器特有のアフターカーブ
を設定する。なお、第6図のようにGuitar Modeの場合
はKey Board Modeと同様のアフターカーブとして設定し
ている。このように、Wind Modeのみ設定を変えるの
は、管楽器の場合、アフタータッチにより音量等を制御
することが多いが、音の立ち上がり時には必ずアフター
タッチのデータが小さく、Key Board Modeのアフタータ
ッチと同様に制御すると、音の立ち上がりが常に遅くな
って、不自然な演奏になってしまうためである。なお、
Guitar Modeのアフタータッチは、ギター本体に設けら
れる専用のタッチキー等によって付加させることが考え
られう。ここでアフターカーブあるいはそれを決めるア
ルゴリズムは、例えば第1図のROM7に記憶され、CPU1が
入力したAfter Touchコマンドのデータに基づいて同カ
ープを参照し、楽音の音量・音色のパラメータに変換し
て音源9に出力する。
When Wind Mode is selected in NORMAL MODE as the third performance mode, it is the same as when Key Board Mode is selected, but when the After touch command is input, the data of the After Tcuch command is used as the tone. Volume
Conversion curves for converting to timbre parameters (hereinafter referred to as
(Referred to as an after curve). In the case of the Guitar Mode as shown in FIG. 6, the after curve is set as in the case of the Key Board Mode. In this way, changing the setting only in Wind Mode is often used for wind instruments to control the volume etc. by aftertouch, but the aftertouch data is always small at the onset of the sound, similar to the aftertouch in Key Board Mode. This is because, if the control is performed, the rise of the sound is always delayed, resulting in an unnatural performance. In addition,
It is conceivable that the after touch of Guitar Mode is added by a dedicated touch key provided on the guitar body. The after curve or an algorithm for determining the after curve is stored in, for example, the ROM 7 of FIG. 1, and is referred to the carp based on the data of the After Touch command input by the CPU 1 and converted into parameters of the volume and tone of the musical tone. Output to the sound source 9.

以上のNORMAL MODEに対し、第4演奏モードであるCOM
BINATION MODEでは、第6図に示すように、2音色が同
時に発音され、Poly数が4音になる以外はNORMAL MODE
の第1〜第3の各演奏モードの場合と全く同様である。
但し、Key Board ModeではNORMAL MODEのKey Board Mod
eの場合と異なり、後述するように、ノートオン時には
本発明に関連する左右振り波け発音処理は行わない。
In contrast to the NORMAL MODE, the fourth performance mode, COM
In BINATION MODE, as shown in Fig. 6, two tones are simultaneously generated and the normal mode is changed except that the number of Poly becomes four.
Are exactly the same as in the first to third performance modes.
However, in Key Board Mode, Key Board Mod of NORMAL MODE
Unlike in the case of e, as will be described later, the left and right waving sound generation processing related to the present invention is not performed at the time of note-on.

第5演奏モードとして、MULTI.POLY MODEでは、シー
ケンサ(自動演奏装置)の音源として使用するという仮
定で、本実施例ではKey Board Modeのみを設定可能とし
ており、Note on/off、Pitch Bender,After Touch、音
色チェンジ及びコントロールチェンジの各コマンドは、
各MIDIチャネル毎に独立で、8つの発音エリアに独立に
設定されているMIDIチャネルと等しいチャネルの発音エ
リアに対して動作する。
In the fifth performance mode, in the MULTI.POLY MODE, only the Key Board Mode can be set in this embodiment on the assumption that the MULTI.POLY MODE is used as the sound source of a sequencer (automatic performance device). Note on / off, Pitch Bender, After Touch, tone change and control change commands are
It operates independently for each MIDI channel and operates on the sounding area of the same channel as the MIDI channel set independently for the eight sounding areas.

以上示したように本実施例では、NORMAL MODE、COMBI
NATION MODE又はMULTI.POLY MODEの各演奏モードを選択
可能とすると共に、外部に接続される電子楽器が、例え
ばキーボードが電子ギターか電子管楽器か等により、各
装置に最適な楽音の発音制御を行えることが大きな特徴
である。
As described above, in this embodiment, NORMAL MODE, COMBI
NONE MODE or MULTI.POLY MODE each play mode can be selected, and the externally connected electronic musical instrument, for example, whether the keyboard is an electronic guitar or an electronic wind instrument, etc., can perform optimal tone generation control for each device. This is a major feature.

スイッチ変化処理の動作 以下、前記第5図のジェネラル動作フローチャートの
S503のスイッチ変化処理及びS505のMIDI IN処理及び割
り込みによるコントロールデータの変化処理について順
次説明を行ってゆく。
Operation of Switch Change Processing Hereinafter, the general operation flowchart of FIG. 5 will be described.
The switch change processing of S503, the MIDI IN processing of S505, and the control data change processing by interruption will be sequentially described.

まず、始めに第5図の第1図のスイッチ部3で前記各
演奏モードを設定した場合のスイッチ変化処理を説明す
る。
First, a description will be given of a switch changing process when each of the performance modes is set by the switch section 3 in FIG. 1 of FIG.

第7図は、第1図のスイッチ部3の一部であり、各演
奏モードを設定すうためのキースイッチである。同図の
18、19及び20は、各々NORMAL MODE、COMBINATION MODE
及びMULTI.POLY MODEを設定するスイッチであり、21はK
ey Board Mode、Guutar Mode又はWind Modeを選択する
セレクトキーである。
FIG. 7 is a part of the switch section 3 of FIG. 1, and is a key switch for setting each performance mode. In the same figure
18, 19 and 20 are NORMAL MODE, COMBINATION MODE respectively
And MULTI.POLY MODE switch, 21 is K
A select key for selecting ey Board Mode, Guutar Mode or Wind Mode.

各演奏モードが選択された場合の第1図の表示部4の
表示例を第8図に示す。この例の場合、表示部4は、16
文字×2行のLCDモジュールによって構成されている。
FIG. 8 shows a display example of the display unit 4 in FIG. 1 when each performance mode is selected. In the case of this example, the display unit 4
It consists of an LCD module of characters x 2 lines.

同図(a)〜(c)は、NORMAL MODEが選択され、か
つ、Key Board Mode、Guitar Mode及びWind Modeが選択
された場合の表示例であり、「K」、「G」、「W」の
文字の下のアンダーラインはカーソルで点滅している。
そして、第7図のセレクトキー21を押す毎に、第8図
(a)→(b)→(c)→(a)というように表示が変
化し、Key Board Mode→Guitar Mode→Wind Mode→Key
Board Modeというように演奏モードが変化する。
FIGS. 7A to 7C are display examples when NORMAL MODE is selected and Key Board Mode, Guitar Mode, and Wind Mode are selected, and "K", "G", and "W". The underline under the character is blinking with the cursor.
Every time the select key 21 in FIG. 7 is pressed, the display changes in the order of FIG. 8 (a) → (b) → (c) → (a), and Key Board Mode → Guitar Mode → Wind Mode → Key
The performance mode changes like Board Mode.

第8図(d)〜(f)は、COMBINATION MODEで、か
つ、Key Board Mode、Guitar Mode及びWind Modeが選択
された場合の表示例であり、NORMAL MODEの場合と同様
に第7図のセレクトキー21で各演奏モードを選択でき
る。
FIGS. 8 (d) to 8 (f) are display examples when the COMBINATION MODE is selected and the Key Board Mode, Guitar Mode, and Wind Mode are selected. As in the case of the NORMAL MODE, the selection in FIG. Each performance mode can be selected with the key 21.

第8図(g)は、MULTI.POLY MODEの表示であり、前
記したようにKey Board Mode固定であるから、「K」の
表示は省略されている。
FIG. 8 (g) shows the display of MULTI.POLY MODE. Since the key board mode is fixed as described above, the display of "K" is omitted.

なお、第8図(a)〜(g)で、画面1行目の「PST
1」の文字は、プリセットバンク1の略で、2行目の
「A−1」、「A−2」、「A−3」等は音色バンクA
の1、2、3を示し、両者とも音色データが格納される
領域を示している。また、「VZ EP」、「VZ BASS」、
「VZ TRUMPET」等の文字は、音色名を示している。
In FIGS. 8A to 8G, “PST” on the first line of the screen
The character "1" is an abbreviation of Preset Bank 1, and "A-1", "A-2", "A-3", etc. on the second line indicate the tone bank A.
1, 2, and 3, both of which indicate areas in which timbre data is stored. Also, "VZ EP", "VZ BASS",
Characters such as "VZ TRUMPET" indicate a tone color name.

更に、第8図(d)〜(f)の、 は2音色同時発音という意味で、□で囲まれた発音エリ
アの音色バンク、音色名が表示されていることを示す。
第8図(g)の1行目の「11111111」の文字は、8つの
発音エリア1〜8のPoly数を、左から順に表示してい
る。なお、同図(g)は全て1Polyを示している。そし
て、□で囲まれた発音エリアの音色バンク、音色名が表
示されていることを示す。
Further, in FIGS. 8 (d) to 8 (f), Means that two timbres are simultaneously produced, and indicates that the timbre bank and timbre name of the vocal area enclosed by □ are displayed.
The character “11111111” on the first line in FIG. 8 (g) indicates the Poly numbers of the eight sounding areas 1 to 8 in order from the left. Note that (g) in the figure shows 1Poly. Then, it indicates that the tone bank and the tone name of the tone generation area surrounded by □ are displayed.

第9図は、第1図のスイッチ部3の各スイッチ(第7
図の各スイッチ18〜21を含む)が押されたときに実行さ
れるプログラムを動作フローチャートである。この動作
フローチャートは、第5図のジェネラル動作フローチャ
ートにおけるS503のスイッチ変化処理の詳細である。
FIG. 9 is a view showing each switch (7th switch) of the switch section 3 shown in FIG.
It is an operation flowchart showing a program executed when each of the switches 18 to 21 in the figure is pressed. This operation flowchart is a detail of the switch change processing in S503 in the general operation flowchart of FIG.

第9図で、S901では、状態が変化したキースイッチが
新しく押されたか、逆に離されたかを判別し、離された
場合にはs906に進んでスイッチOFF処理を行う。但し、
第7図の各スイッチ18〜21では、スイッチのOFF状態は
ないため、なにも処理をせずに終了する。
In FIG. 9, in S901, it is determined whether the key switch whose state has changed is newly pressed or released, and if released, the process proceeds to s906 to perform a switch OFF process. However,
In each of the switches 18 to 21 in FIG. 7, since there is no switch OFF state, the process ends without performing any processing.

状態が変化したキースイッチが新しく押された場合、
S902〜S905の各判別処理で、各々、第7図の各キースイ
ッチ18(NORMAL MODE)、19(COMBINATION MODE)、20
(MULTI.POLY MODE)、21(セレクトキー)が押された
か否かを判別し、YESならS0907〜S910の各処理を行い、
上記いずれでもない場合はS911で対応するスイッチ変更
する処理を行う。なお、S911の処理は本発明には直接は
関係しないため、その詳細は省略する。
When a key switch whose state has changed is newly pressed,
In each discrimination process of S902 to S905, each key switch 18 (NORMAL MODE), 19 (COMBINATION MODE), 20
(MULTI.POLY MODE), it is determined whether or not 21 (select key) is pressed, and if YES, each process of S0907 to S910 is performed,
If none of the above, the corresponding switch is changed in S911. Note that the processing of S911 is not directly related to the present invention, and thus details thereof are omitted.

第7図18のNORMAL MODEの設定スイッチが押された場
合、S902からS907に進みNORMAL MODE設定処理が行われ
る。ここでは、第1図の音源9で発音されている楽音を
全て消音し、NORMAL MODEの専用RAM(第1図RAM8の一
部)である第10図(b)に示されるフラグNORMFGを読み
出すことにより、Key Board Mode、Guitar Mode又はWin
d Modeのいずれかを判別する。フラグNORMFGは、第10図
(b)に示されるように、bit0〜4まで未使用で、bit
5、6、7は、Key Board Mode、Guitar Mode及びWind M
odeのときに各々「1」にセットされ、各モードは排他
的であるから、どれか1つのビットが必ず「1」にな
る。上記判別の後、発音制御用RAM(第1図RAM8の一
部)である第10図(a)のフラグMODEFGに情報をセット
した後、第6図で既に説明したNORMAL MODEの発音態様
の動作を行うために、第1図RAM8上の発音制御に必要な
特には図示しない記憶領域を全てイニシャライズする。
ここで、フラグMODEFGは、第10図(a)に示すように1
バイトのRAMであって、bit0、1、2は、各々NORMAL MO
DE、COMBINATION MODE、MULTI.POLY MODEであるときに
「1」にセットされ、各モードは互いに排他的であるか
ら、3ビットのうち「1」であるのは必ず1つのビット
で、かつどれかのビットは「1」になっている。従っ
て、上記NORMAL MODE設定処理で、フラグMODEFGのbit
0、1、2は、各々「1」「0」「0」にセットされ
る。なお、フラグMODEFGのbit3、4は未使用である。ま
た、bit5、6、7はKey Board Mode、Guitar Mode及びW
ind Modeのときに各々「1」にセットされ、これら各モ
ードは排他的であるから、どれか1つのビットが必ず
「1」になっている。
When the NORMAL MODE setting switch of FIG. 7 is pressed, the process proceeds from S902 to S907, and the NORMAL MODE setting process is performed. Here, all the musical tones generated by the sound source 9 in FIG. 1 are silenced, and the flag NORMFG shown in FIG. 10B, which is a dedicated RAM of NORMAL MODE (part of the RAM 8 in FIG. 1), is read out. Depending on Key Board Mode, Guitar Mode or Win
Determine one of d Mode. As shown in FIG. 10 (b), the flag NORMFG is unused for bits 0 to 4,
5, 6 and 7 are Key Board Mode, Guitar Mode and Wind M
In the case of ode, each bit is set to "1", and each mode is exclusive, so any one bit is always "1". After the above determination, information is set in the flag MODEFG of FIG. 10 (a) which is a sound control RAM (a part of the RAM 8 of FIG. 1), and then the operation of the sound mode of the NORMAL MODE already described with reference to FIG. In this case, all the storage areas (not shown) necessary for the tone control on the RAM 8 in FIG. 1 are initialized.
Here, the flag MODEFG is set to 1 as shown in FIG.
Byte RAM, bits 0, 1, and 2 are NORMAL MO
It is set to “1” when the mode is DE, COMBINATION MODE, MULTI.POLY MODE, and each mode is mutually exclusive. Therefore, “1” is always one bit out of three bits, and which one is Is "1". Therefore, in the NORMAL MODE setting process, the bit of the flag MODEFG is set.
0, 1, and 2 are set to "1", "0", and "0", respectively. Bits 3 and 4 of the flag MODEFG are not used. Also, bits 5, 6, and 7 are for Key Board Mode, Guitar Mode, and W
In the ind mode, each bit is set to "1", and since each of these modes is exclusive, any one bit is always "1".

次に、第7図19のCOMBINATION MODEの設定スイッチが
押された場合、第9図のS903からS908に進みCOMBINATIO
N MODE設定処理が行われる。ここでは、第1図の音源9
で発音されている楽音を全て消音し、COMBINATION MODE
専用RAM(第1図絵RAM8の一部)である第10図(c)に
示されるフラグCOMBFGを読み出して、Key Board Mode、
Guitar Mode又はWind Modeのいずれかを判別する。フラ
グCOMBFGは、第10図(c)に示されるように、第10図
(b)のフラグNORMFGと全く同様の構成である。上記判
別の後、前記NORMAL MODE設定処理と同様、第10図
(a)のフラグMODEFGに情報をセットした後、第6図で
既に説明したCOMBINATION MODEの発音態様の動作を行う
ために、第1図RAM8上の発音制御に必要な特には図示し
ない記憶領域を全てイニシャライズする。
Next, when the COMBINATION MODE setting switch in FIG. 19 is pressed, the process proceeds from S903 to S908 in FIG.
N MODE setting processing is performed. Here, the sound source 9 of FIG.
Silences all tones pronounced in
The flag COMBFG shown in FIG. 10 (c), which is a dedicated RAM (part of the picture RAM 8 in FIG. 1), is read out, and the key board mode,
Determines either Guitar Mode or Wind Mode. As shown in FIG. 10 (c), the flag COMBFG has exactly the same configuration as the flag NORMFG in FIG. 10 (b). After the above determination, as in the NORMAL MODE setting process, after setting information in the flag MODEFG of FIG. 10 (a), the first operation is performed to perform the operation of the sound mode of the COMBINATION MODE already described in FIG. Initialize all storage areas (not shown) necessary for tone generation control on the figure RAM 8.

続いて、第7図20のMULTI.POLY MODEの設定スイッチ
が押された場合、第9図のS904からS909に進みMULTI.PO
LY MODE設定処理が行われる。ここでは、第1図の音源
9で発音されている楽音を全て消音し、第10図(a)の
フラグMODEFGのbit0、1、2を各々「0」「0」「1」
に、bit5、6、7を各々「1」「0」「0」にセットす
る。これは、MULTI.POLY MODEでは第6図で既に説明し
たように、Key Board Modeに固定されるためである。
Subsequently, when the MULTI.POLY MODE setting switch in FIG. 7 is pressed, the process proceeds from S904 to S909 in FIG.
LY MODE setting processing is performed. Here, all the musical tones generated by the sound source 9 in FIG. 1 are muted, and bits 0, 1, and 2 of the flag MODEFG in FIG. 10A are set to "0", "0", and "1", respectively.
, Bits 5, 6, and 7 are set to "1", "0", and "0", respectively. This is because the MULTI.POLY MODE is fixed to the Key Board Mode as already described with reference to FIG.

一方、第7図21のセレクトキーが押された場合、第9
図のS905からS910に進みK、G、W変更処理が行われ
る。この処理は、MULTI.POLY MODEが選択されている場
合には、何も処理を行わず終了する。NORMAL MODEが選
択されている場合には、まず、第10図(b)のフラグNO
RMFGにおいて、bit5が「1」のとき、bit6が「1」のと
き、bit7が「1」のときには、各々bit5、6、7を
「0」「1」「0」、「0」「0」「1」、「1」
「0」「0」にセットした後に、前記S907と同様のNORM
AL MODE設定処理を実行する。COMBINATION MODEが選択
されている場合には、まず、第10図(c)のフラグCOMB
FGにおいて、bit5が「1」のとき、bit6が「1」のと
き、bit7が「1」のときには、各々bit5、6、7を
「0」「1」「0」「0」「0」「1」、「1」「0」
「0」にセットした後、前記S908と同様のCOMBINATION
MODE設定処理を実行する。
On the other hand, when the select key shown in FIG.
The process proceeds from step S905 to step S910, where K, G, and W change processing is performed. This process ends without performing any process when MULTI.POLY MODE is selected. When the NORMAL MODE is selected, first, the flag NO in FIG.
In the RMFG, when bit5 is "1", bit6 is "1", and bit7 is "1", bits 5, 6, and 7 are set to "0", "1", "0", "0" and "0", respectively. "1", "1"
After setting to “0” and “0”, the same NORM as in S907
Execute AL MODE setting processing. When COMBINATION MODE is selected, first, the flag COMB shown in FIG.
In the FG, when bit5 is "1", bit6 is "1", and bit7 is "1", bits 5, 6, and 7 are set to "0", "1", "0", "0", "0", and "0", respectively. 1 "," 1 "," 0 "
After setting to “0”, the same COMBINATION
Execute the MODE setting process.

MIDI IN処理の動作 以上のようにして、第5図S503でスイッチ変化処理が
行われ演奏モードが設定された後、第1図のMIDI回路5
を介して外部機器からNote on/off、Pitch Bender、Aft
er Touch、音色チェンジの各MIDIコマンドが入力された
ときの動作を以下に説明する。なお、本発明に特に関連
するのは、NORMAL MODEでKey Board Modeが選択されて
いるときに、Note onコマンドが入力した場合の処理動
作であり、後述するようにステレオの左右チャネルに楽
音を振り分けながら発音動作を行うことを特徴とする。
Operation of MIDI IN Process As described above, after the switch change process is performed in S503 in FIG. 5 and the performance mode is set, the MIDI circuit 5 in FIG.
Note on / off, Pitch Bender, Aft from external devices via
The operation when the er Touch and tone change MIDI commands are input will be described below. Of particular relevance to the present invention is the processing operation when a Note on command is input when Keyboard Mode is selected in NORMAL MODE.As described later, musical sounds are distributed to the left and right stereo channels. It is characterized by performing a sounding operation while performing.

上記各MIDIコマンドが入力した場合、既に説明したよ
うにMIDI回路5からの割り込みに基づいて、第3図の動
作フローチャートが実行され、MIDI回路5で受信された
MIDIコマンドはRAM8に取り込まれている。そして、この
状態は、第5図S504の判別処理で検出され、S505のMIDI
IN処理が実行される。この処理の詳細を第11図に示
す。
When each of the above MIDI commands is input, the operation flowchart of FIG. 3 is executed based on the interrupt from the MIDI circuit 5 and the MIDI command is received by the MIDI circuit 5 as described above.
MIDI commands are stored in RAM8. Then, this state is detected in the determination processing of S504 in FIG.
IN processing is executed. The details of this process are shown in FIG.

同図においては、S1101〜S1104において、各々Note o
n/off、Pitch Bender、After Touch又は音色チェンジの
何れのコマンドであるかを判別している。上記コマンド
以外でコントロールチェンジコマンドの場合は、後述す
るように一定周期毎の割り込みに基づくコントロールデ
ータの変化処理で処理されるため、S1113の判別によりM
IDI IN処理では何も行わずに処理を終了する。更に、こ
れら以外のコマンドの場合は、S1114で無効にするもの
と有効なものとを判別した後、有効なもののコマンドの
処理を実行する。当該するコマンドとしては、例えばMI
DI規格に基づくエクスクルーシブメッセージ・コモンメ
ッセージ・リアルタイムメッセージ等のMIDIチャネルに
関係ないシステムメッセージがある、 続いて、Note on/off、Pitch Bender、After Touch又
は音色チェンジの何れかのコマンドが入力した場合につ
いて説明する。なお、以下の説明は、既に「本実施例に
おける発音態様の概要」の項で第6図を用いて説明した
第1〜第5の各演奏モードでの概要動作に対応してい
る。
In the figure, in S1101 to S1104,
It is determined whether the command is n / off, Pitch Bender, After Touch, or tone change. In the case of a control change command other than the above-mentioned command, since it is processed by control data change processing based on interrupts at fixed intervals as described later, M is determined by the determination in S1113.
In the IDI IN process, the process ends without performing anything. Further, in the case of a command other than these, after discriminating in S1114 the command to be invalidated and the command valid, the command processing of the command valid is executed. The relevant command is, for example, MI
There are system messages that are not related to the MIDI channel, such as exclusive messages, common messages, and real-time messages based on the DI standard. Then, when any of the following commands is entered: Note on / off, Pitch Bender, After Touch, or tone change explain. The following description corresponds to the general operation in each of the first to fifth performance modes already described with reference to FIG. 6 in the section “Overview of pronunciation mode in this embodiment”.

まず、第1演奏モードとして、NORMAL MODEでKey Bor
d Modeが選択されている場合について説明する。
First, as the first performance mode, the Key Born in NORMAL MODE
The case where d Mode is selected will be described.

まず、本発明に特に関連する第1演奏モードでNote o
n/offコマンドが入力した場合は、第11図S1101の判別が
YESとなり、S1105のチャネル判断1が実行される。チャ
ネル判断1の詳細を第12図に示す。第1演奏モードの場
合、第12図S1201、S1203の判別がNOとなり、S1205の判
別処理が実行されることにより、入力したコマンドに指
定されているMIDIチャネル(以下、単にIMIDIチャネル
と呼ぶ)が、固定された所定のMIDIチャネル(以下、固
定チャネルと呼ぶ)に等しい場合のみ、S1205の判別がY
ESとなり、第11図S1106のNote on/off処理に進む。この
処理を第14図に示す。第1演奏モードの場合、S1401、S
1402の判別がNOとなり、S1403に進む。そして、コマン
ドがNote onコマンドの場合はS1414に進み、更に、S141
4の判定がYES、続くS1415の判定もYESとなって、S1416
の左右振り分け発音処理に進む。
First, note o in the first performance mode particularly related to the present invention.
When the n / off command is input, the determination in S1101 in FIG.
If YES, the channel judgment 1 of S1105 is executed. The details of channel determination 1 are shown in FIG. In the case of the first performance mode, the discrimination in S1201 and S1203 in FIG. 12 is NO, and the discrimination processing in S1205 is executed, whereby the MIDI channel (hereinafter simply referred to as IMIDI channel) specified in the input command is set. , Only when it is equal to a fixed predetermined MIDI channel (hereinafter, referred to as a fixed channel), the determination in S1205 is Y
It becomes ES, and proceeds to the Note on / off process of S1106 in FIG. This process is shown in FIG. In the case of the first performance mode, S1401, S
The determination in 1402 is NO, and the process proceeds to S1403. If the command is a Note on command, the process proceeds to S1414, and furthermore, S141
The determination at 4 is YES, the determination at S1415 that follows is also YES, and S1416
The process proceeds to the left-right distribution sound processing.

ここで本実施例では、第1図の音源9は、時分割処理
により8音ポリフォニックで並列して発音可能であり、
第19図に示すように8つのモジュールを有する。すなわ
ち、各モジュールは上記8音に対応する各時分割タイミ
ングを意味する。更に、モジュール1〜4の出力は1つ
に累算されてステレオの右チャネルの楽音(同図R)と
して出力され、モジュール5〜8の出力も1つに累算さ
れてステレオの左チャネルの楽音(同図L)として出力
される。そして、本実施例では、S1416において発音毎
に左右チャネルが交互に入れ替わりながら発音が行われ
ることが大きな特徴である。第18図に第14図S1416の左
右振り分け発音処理の詳細を示す。
Here, in the present embodiment, the sound source 9 of FIG. 1 can generate eight sounds polyphonically in parallel by time-division processing.
It has eight modules as shown in FIG. That is, each module means each time-division timing corresponding to the eight sounds. Further, the outputs of the modules 1 to 4 are accumulated into one and output as a stereo right channel tone (R in the figure), and the outputs of the modules 5 to 8 are also accumulated and output as a stereo left channel. It is output as a musical sound (L in the figure). In the present embodiment, a major feature is that the sound is generated while the left and right channels are alternately switched for each sound generation in S1416. FIG. 18 shows the details of the left-right distribution sound generation process in FIG. 14 S1416.

まず、S1801では、前回発音された楽音が右チャネル
か左チャネルかが判別される。今、第1図のRAM8内に
は、第20図に示すような左右フラグRTLFが記憶されてい
る。前回のNote onコマンドによって発音された楽音が
右チャネルに発音された場合は後述するようにbit0に
「0」が記憶され、左チャネルに発音された場合は
「1」が記憶される。従って、S1801では上記左右フラ
グRTLFのbitの0の内容により、前回発音された楽音が
右チャネルか左チャネルかが判別される。
First, in S1801, it is determined whether the previously generated musical tone is a right channel or a left channel. Now, a right and left flag RTLF as shown in FIG. 20 is stored in the RAM 8 of FIG. If the musical tone generated by the previous Note on command is generated on the right channel, "0" is stored in bit0 as described later, and if it is generated on the left channel, "1" is stored. Therefore, in step S1801, it is determined whether the tone generated last time is the right channel or the left channel based on the content of bit 0 of the left and right flags RTLF.

上記判別の結果、前回が右チャネルであった場合に
は、S1802〜S1807の処理で基本的に左チャネルに発音さ
せる処理を行い、前回が左右チャネルであった場合に
は、S1808〜S8183の降で基本的に右チャネルに発音させ
る処理を行う。
As a result of the above discrimination, if the previous time was the right channel, the process of sounding the left channel is basically performed in the processes of S1802 to S1807, and if the previous time was the left and right channels, the process of S1808 to S8183 is performed. Basically performs a process of sounding the right channel.

前回が右チャネルであった場合には、まず、S1802に
おいて、第19図の音源(第1図の音源9に相当、以下同
じ)内の左チャネルに対応するモジュール5〜8のうち
発音されていなモジュールがあれば、そのモジュール番
号(5〜8)を第1図のCPU1内の特には図示しないアキ
ュムレータに書き込み、なければアキュムレータを0に
する。
If the previous time was the right channel, first of all, in S1802, the sound is emitted from the modules 5 to 8 corresponding to the left channel in the sound source of FIG. 19 (corresponding to the sound source 9 of FIG. 1, and the same hereinafter). If there is a module, the module number (5 to 8) is written into an accumulator (not shown) in the CPU 1 in FIG. 1; otherwise, the accumulator is set to 0.

続くS1803では、上記アキュムレータの内容により、
左チャネルへの振り分けが可能か否かを判別し、可能な
らばS1804においてアキュムレータの内容に対応した音
源のモジュールに発音指示を行うと共に、第20図の左右
フラグRTLFのbit0に「1」を書き込む。
In the following S1803, according to the contents of the accumulator,
It is determined whether or not distribution to the left channel is possible, and if possible, in S1804, a sound generation instruction is issued to the sound source module corresponding to the contents of the accumulator, and "1" is written to bit0 of the left and right flag RTLF in FIG. .

S1803の判別の結果、左チャネルへの振り分けが不可
能な場合すなわちアキュムレータの内容が0の場合は、
右チャネルへの振り分けを行う。すなわち、S1805にお
いて、第19図の音源内の右チャネルに対応するモジュー
ル1〜4のうち発音されていないモジュールがあれば、
そのモジュール番号(1〜4)をアキュムレータに書き
込み、なければアキュムレータを0にする。
As a result of the determination in S1803, if it is impossible to assign to the left channel, that is, if the accumulator content is 0,
Assign to the right channel. That is, in S1805, if there is a module that is not sounded among the modules 1 to 4 corresponding to the right channel in the sound source in FIG.
The module numbers (1 to 4) are written in the accumulator, and if not, the accumulator is set to 0.

そして、S1806で上記アキュムレータの内容により、
右チャネルへの振り分けが可能か否かを判別し、可能な
らばS1804においてアキュムレータの内容に対応した音
源のモジュールに発音指示を行うと共に、第20図の左右
フラグRTLFのbit0に「0」を書き込む。
Then, in S1806, according to the contents of the accumulator,
It is determined whether or not distribution to the right channel is possible, and if possible, in S1804, a sound generation instruction is issued to the sound source module corresponding to the contents of the accumulator, and "0" is written to bit0 of the left and right flag RTLF in FIG. .

S1806の判別により右チャネルへの振り分けも不可能
の場合すなわちアキュムレータの内容が0の場合は、S1
807に進み、第19図の音源内の左チャネルに対応するモ
ジュール5〜8のうち、最も最初に発音されたモジュー
ルに発音指示を行うと共に、第20図の左右フラグRTLFの
bit0に「1」を書き込む。
If the assignment to the right channel is not possible due to the determination in S1806, that is, if the content of the accumulator is 0, S1806
Proceeding to 807, the sounding instruction is given to the module that has sounded first among the modules 5 to 8 corresponding to the left channel in the sound source in FIG. 19, and the left and right flags RTLF in FIG.
Write "1" to bit0.

このように、まず、左チャネルへの振り分けが不可能
の場合は、右チャネルへの振り分けを行い、右チャネル
への振り分けも不可能の場合は、左チャネルで後着優先
の発音制御を行う。なお、先着優先の発音制御を行って
もよく、その場合にはS1807の処理を省略すればよい。
As described above, first, when the distribution to the left channel is impossible, the distribution to the right channel is performed, and when the distribution to the right channel is also impossible, the sound control of the left arrival priority is performed on the left channel. Note that sound control may be performed on a first-come, first-served basis, and in that case, the process of S1807 may be omitted.

上記動作に対して、前回が左チャネルであった場合に
は、S1808〜S1813の右チャネルに発音させる処理を行う
が、これらは前記S1802〜S1807の処理と左右が逆になる
だけで、全く同様の処理である。
In contrast to the above operation, if the previous time was the left channel, processing to sound the right channel in S1808 to S1813 is performed, but these are exactly the same as those in S1802 to S1807, except that the left and right are reversed. This is the process.

以上の処理により、Note onコマンドが入力する毎
に、原則手に左右チャネル交互に楽音が発生される。
Through the above processing, each time a Note On command is input, a tone is generated alternately in the left and right channels in principle.

次に、第14図のNote on/off処理の1403に戻り、入力
したコマンドがNote offコマンドの場合はs1405に進
み、音源9で現在発音中のものでノートナンバー(以
下、Note No.と呼ぶ)が等しい音を消音させる。
Next, returning to the Note on / off processing 1403 in FIG. 14, if the input command is a Note off command, the process proceeds to s1405, and the note number currently being produced by the sound source 9 (hereinafter referred to as Note No.) Mute) sounds that are equal.

次に、第1演奏モードでPitch Benderコマンドが入力
した場合、第11図S1101の判別がNOとなった後、S1102の
判別がYESとなり、S1107のチャネル判断1が実行され
る。これは前記Note on/offコマンドの場合と同様、第1
2図S1201、S1203の判別がNOとなった後、MIDIチャネル
と固定チャネルが等しい場合のみS1205の判別がYESとな
り、第11図S1108のPitch Bender処理に進む。この処理
を第15図に示す。第1演奏モードの場合、S1501、S1502
の判別がNOとなり、S1503に進む。ここでは、発音可能
な8音全てに同時にピッチベンダーのデータを反映させ
る。
Next, when the Pitch Bender command is input in the first performance mode, the determination in S1101 in FIG. 11 becomes NO, then the determination in S1102 becomes YES, and the channel determination 1 in S1107 is executed. This is the same as the Note on / off command above.
2 After the determinations in S1201 and S1203 in FIG. 2 are NO, the determination in S1205 is YES only when the MIDI channel and the fixed channel are equal, and the process proceeds to the Pitch Bender process in S1108 in FIG. This process is shown in FIG. In the case of the first performance mode, S1501, S1502
Is NO, and the process proceeds to S1503. Here, pitch bender data is simultaneously reflected on all eight sounds that can be produced.

第1演奏モードでAfter Touchコマンドが入力した場
合、第11図S1101及びS1102の判別がNOとなった後、S110
3の判別がYESとなり、S1109のチャネル判断2が実行さ
れる。この処理を第13図に示す。すなわち、MIDIチャネ
ルと固定チャネルが等しい場合のみS1301の判別がYESと
なり、第11図S1110のAfter Touch処理に進む。この処理
を第16図に示す。第1演奏モードの場合、S160及びS160
2の判別がNOとなり、S1603に進む。ここでは、キーボー
ド楽器に適したアフタータッチ処理を行う。具体的に
は、入力したアフタータッチのデータを第1図のROM7に
記憶されているキーボード楽器に適した変換カーブに基
づいて楽音の音量・音色のパラメータに変換し、音源9
にそのパラメータを転送して音源の特性を変更させる。
When the After Touch command is input in the first performance mode, after the determination of S1101 and S1102 in FIG.
The determination at 3 is YES, and the channel determination 2 at S1109 is executed. This process is shown in FIG. That is, only when the MIDI channel is equal to the fixed channel, the determination in S1301 is YES, and the process proceeds to the After Touch process in S1110 in FIG. This process is shown in FIG. In the case of the first performance mode, S160 and S160
The determination at 2 is NO, and the flow proceeds to S1603. Here, aftertouch processing suitable for a keyboard instrument is performed. Specifically, the input aftertouch data is converted into musical tone volume / tone parameters based on a conversion curve suitable for a keyboard instrument stored in the ROM 7 of FIG.
To transfer the parameters to change the characteristics of the sound source.

第1演奏モードで音色チェンジコマンドが入力した場
合、第11図S1101〜S1103の判別がNOとなった後、S1104
の判別がYESとなり、S1111のチャネル判断2が実行され
る。すなわち、前記After Touchコマンドの場合と同
様、MIDIチャネルと固定チャネルが等しい場合のみ第13
図S1301の判別がYESとなり、第11図S1112の音色チェン
ジ処理に進む。この処理を第17図に示す。第1演奏モー
ドの場合、S1701の判別がNOとなりS1702に進み、発音中
の音が全て消音される。続いてS1703で第1図のRAM8内
の発音制御用のRAM領域をイニシャライズし、更に、S17
04で音弦に入力した音色データを転送して、音源9で発
音すべき音色を切り替えさせる。
When a tone change command is input in the first performance mode, after the determination of S1101 to S1103 in FIG.
Is YES, and the channel judgment 2 of S1111 is executed. That is, similar to the case of the above-mentioned After Touch command, only when the MIDI channel and the fixed channel are equal, the 13th
The determination in FIG. S1301 is YES, and the flow proceeds to the timbre change process in FIG. 11 S1112. This process is shown in FIG. In the case of the first performance mode, the determination in S1701 is NO, and the process proceeds to S1702, in which all sounds being sounded are muted. Subsequently, in S1703, a RAM area for sound generation control in the RAM 8 of FIG. 1 is initialized.
The tone data input to the tone string in 04 is transferred, and the tone to be emitted by the sound source 9 is switched.

次に、第2演奏モードとして、NORMAL MODEでGlitar
Modeが選択されている場合について説明する。
Next, as the second performance mode, Glitar in NORMAL MODE
The case where Mode is selected will be described.

第2演奏モードでNote on/offコマンドが入力した場
合、第11図S1101の判別がYESとなり、S1105がチャネル
判断1が実行される。すなわち、第12図S1201の判別がN
Oとなった後、S1203の判別がYESとなり、S1204の判別距
離が実行されることにより、MIDIチャネルが固定チャネ
ルから該固定チャネル+5チャネルまでの6チャネルの
範囲内に入っている場合のみ、S1204の判別がYESとな
り、第11図S1106すなわち第14図のNote on/off処理に進
む。第2演奏モードの場合、S1401の判別がNOとなった
後、S1402の判別がYESとなり、S1409に進む。そして、
コマンドがNote onコマンドの場合はS1411に進み、ま
ず、第1図の音源9のMIDIチャネルと等しいチャネルが
割り当てられている発音中のモジュールがある場合、そ
れを消音させる。なお、チャネルの判別は後述するS141
3で第1図のRAM8内に記憶されるチャネルデータに基づ
き行われる。次に、S1412で音源9の空モジュールに対
して発音開始を指示する、更に、S1413でRAM18に発音を
開始したモジュールとMIDIチャネルを記憶させる。以上
のように、同一チャネルの音を消音させてから新たに発
音開始を行わせるのは、ギター等の弦楽器より入力され
るコマンドのMIDIチャネルが弦毎に独立に設定されてい
るため、同一弦の音が複数同時に発音されることはあり
得ないためである。なお、余韻を残すため消音は適当な
エンベポールを付加させて行ってもよい。
When the Note on / off command is input in the second performance mode, the determination in S1101 in FIG. 11 becomes YES, and the channel determination 1 is performed in S1105. That is, the determination in S1201 in FIG.
After becoming O, the determination in S1203 becomes YES, and the determination distance in S1204 is executed, so that only when the MIDI channel is within the range of six channels from the fixed channel to the fixed channel + 5 channels, S1204 is determined. Is YES, and the process proceeds to S1106 in FIG. 11, that is, the note on / off process in FIG. In the case of the second performance mode, after the determination in S1401 is NO, the determination in S1402 is YES, and the process proceeds to S1409. And
If the command is a note-on command, the process advances to step S1411. First, if there is a sounding module to which a channel equal to the MIDI channel of the sound source 9 in FIG. 1 is assigned, it is muted. Note that the determination of the channel is made in S141 described later.
This is performed in step 3 based on the channel data stored in the RAM 8 of FIG. Next, in step S1412, an instruction to start sound generation is issued to the empty module of the sound source 9. Further, in step S1413, the RAM 18 and the module that started sound generation are stored in the RAM 18. As described above, the reason why the sound of the same channel is muted and the sound is newly started is that the MIDI channel of the command input from the string instrument such as the guitar is set independently for each string, so that the same string is used. This is because a plurality of sounds cannot be simultaneously generated. In order to leave a lingering sound, silencing may be performed by adding an appropriate envelope.

一方、コマンドがNote offコマンドの場合は、S1401
に進み、音源9で現在発音中のものでMIDIチャネルが等
しい音を消音させる。
On the other hand, if the command is a Note off command, S1401
To mute the sound currently being produced by the sound source 9 and having the same MIDI channel.

第2演奏モードでPitch Benderのコマンドが入力した
場合、第11図S1101の判別がNOとなった後、S1102の判別
がYESとなり、S1107のチャネル判断1が実行される。こ
れば、前記Note on/offコマンドの場合と同様、第12図S
1201の判別がNOとなった後、S1203の判別がYESとなり、
MIDIチャネルが固定チャネルから該固定チャネル+5チ
ャネルまでの6チャネルの範囲内に入っている場合の
み、S1204の判別がYESとなり、第11図S1108すなわち第1
5図のPitch Bender処理に進む。第2演奏モードの場
合、S1501の判別がNOとなった後、S1502の判別がYESと
なり、S1504に進む。ここでは、以前に発音したチャネ
ル(発音中のチャネル)とMIDIチャネルが等しい音に対
してのみピッチベンダーのデータを反映させる。すなわ
ち、例えばチョーキング等がなされた弦に対応する音に
のみ、独立してピッチベンドがかかることになる。
When a Pitch Bender command is input in the second performance mode, the determination in S1101 in FIG. 11 becomes NO, then the determination in S1102 becomes YES, and channel determination 1 in S1107 is executed. As in the case of the Note on / off command, FIG.
After the determination of 1201 is NO, the determination of S1203 is YES,
Only when the MIDI channel is within the range of 6 channels from the fixed channel to the fixed channel + 5 channels, the determination in S1204 becomes YES, and S1108 in FIG.
Proceed to Pitch Bender processing in FIG. In the case of the second performance mode, after the determination in S1501 is NO, the determination in S1502 is YES, and the process proceeds to S1504. Here, the pitch bender data is reflected only on the sound whose MIDI channel is equal to the previously sounded channel (the sounding channel). That is, pitch bend is applied independently only to a sound corresponding to, for example, a chorded string.

第2演奏モードでAfter Touchコマンドが入力した場
合、第11図S1101及びS1102の判別がNOとなった後、S110
3の判別がYESとなり、S1109のチャネル判断2すなわち
第13図が実行され、前記第1演奏モードでAfter Touch
コマンドが入力した場合と全く同様に、MIDIチャネルと
固定チャネルが等しい場合のみS1301の判別がえYESとな
り、第11図S1110のAfter Touch処理すなわち第16図のAf
ter Touch処理に進む。すなわち第2演奏モードの場
合、After Touchコマンドに対しては前記Note on/offコ
マンド又はPitch Benderコマンドとは異なり、6チャネ
ルのうち最低弦チャネルの固定された所定MIDIチャネル
が指定されている場合のみ該コマンドを受け付けるよう
に動作する。第16図でのAfer Touch処理は第1演奏モー
ドの場合と同様、S1602→S1602→S1603と進んでキーボ
ード楽器に適したアフタータッチ処理が行われるが、こ
の場合、固定チャネルから+5したチャネルに対応する
6弦分のチャネルに対して同時に上記コマンドが実行さ
れる。これにより、1弦分に対するAfter Touchコマン
ドの転送で、6弦に対して同時にアフタータッチの効果
をかけることができる。
When the After Touch command is input in the second performance mode, after the determination of S1101 and S1102 in FIG.
3 is YES, the channel judgment 2 of S1109, that is, FIG. 13 is executed, and in the first performance mode, the After Touch
Just as in the case where the command is input, the determination in S1301 is YES only when the MIDI channel and the fixed channel are equal, and the After Touch process in S1110 in FIG. 11, that is, Af in FIG.
Proceed to ter Touch processing. In other words, in the case of the second performance mode, unlike the Note on / off command or the Pitch Bender command for the After Touch command, only when the predetermined MIDI channel with the lowest string channel fixed among the six channels is designated. It operates to receive the command. The Afer Touch process in FIG. 16 proceeds from S1602 to S1602 to S1603 as in the case of the first performance mode, and aftertouch processing suitable for a keyboard instrument is performed. In this case, the channel corresponding to +5 from the fixed channel is supported. The above commands are executed simultaneously for the channels of six strings. Thus, by transmitting the After Touch command for one string, an after touch effect can be simultaneously applied to six strings.

第2演奏モードで音色チェンジコマンドが入力した場
合、第11図S1101〜S1103の判別がNOとなった後、S1104
の判別がYESとなり、S1111のチャネル判断2すなわち第
13図が実行され、前記After Touchコマンドの場合と同
様、MIDIチャネルと固定チャネルすなわち最低弦チャネ
ルが等しい場合のみ第13図S1301の判別がYESとなって該
コマンドを受け付け、第11図S1112の音色チェンジ処理
すなわち第17図に進む。ここでは、第1演奏モードの場
合と同様、ST1701→S1702と進んで発音中の音が全て消
音され、S1703で第1図のRAM8内の発音制御用のRAM領域
をイニシャライズし、S1704で音源9に入力した音色デ
ータを転送して、音源9で発音すべき音色を切り替えさ
せる。この場合も、固定チャネルから+5したチャネル
に対応する6弦分のチャネルに対して同時に上記コマン
ドが実行されることにより、1弦分の対するAfter Touc
hコマンドの転送で、6弦に対して同時に音色チェンジ
が行える。
When a tone change command is input in the second performance mode, after the determination of S1101 to S1103 in FIG.
Is YES, the channel judgment 2 of S1111, that is, the
FIG. 13 is executed, and as in the case of the After Touch command, only when the MIDI channel and the fixed channel, that is, the lowest string channel are equal, the determination in S1301 in FIG. 13 is YES and the command is accepted, and the timbre in S1112 in FIG. The process proceeds to the change process, that is, FIG. Here, as in the case of the first performance mode, the process proceeds from ST1701 to S1702 to mute all sounds being generated, and in S1703 the RAM area for sound control in the RAM 8 in FIG. 1 is initialized. Is transferred to the tone generator 9 to switch the tone to be generated. Also in this case, the above command is executed simultaneously for the six strings corresponding to the channel +5 from the fixed channel.
By transferring the h command, the timbre can be changed simultaneously for the 6th string.

続いて、第3演奏モードとして、NORMAL MODEでWind
Modeが選択されている場合について説明する。
Next, as the third performance mode, set the NORMAL MODE to Wind
The case where Mode is selected will be described.

第3演奏モードでNote on/offコマンドが入力した場
合は、第1演奏モードすなわちKey Board Modeが選択さ
れている場合と同様、第11図S1101の判別がYESとなり、
S1105のチャネル判断1が実行され、第12図でS1201、S1
203の判別がNOとなり、更にMIDIチャネルが固定チャネ
ルに等しい場合のみS1205の判別がYESとなって、第11図
S1106すなわち第14図のNote on/OFF処理に進む。第14図
では、第3演奏モードの場合、S1401、S1402の判別がNO
となり、S1403に進む。そして、コマンドがNote onコマ
ンドの場合はS1414に進むがこの判別はNOとなるため、S
1404に進む。そしてここでは、第1図の音源9の発音中
ではい空モジュールに対して発音開始を指示する。な
お、この場合は前記Key Board Modeの場合と異なり、左
右チャネルへの振り分けは行わない。
When the Note on / off command is input in the third performance mode, the determination in S1101 in FIG. 11 becomes YES as in the case where the first performance mode, that is, the Key Board Mode is selected.
Channel determination 1 of S1105 is executed, and S1201, S1 in FIG.
The determination of 203 is NO, and the determination of S1205 is YES only when the MIDI channel is equal to the fixed channel.
The process advances to S1106, that is, the Note on / OFF process in FIG. In FIG. 14, in the case of the third performance mode, the determination of S1401 and S1402 is NO.
And proceed to S1403. If the command is a Note on command, the process proceeds to S1414, but since this determination is NO, S
Proceed to 1404. In this case, the sound source 9 shown in FIG. Note that, in this case, unlike the case of the Key Board Mode, the assignment to the left and right channels is not performed.

一方、コマンドがNote offコマンドの場合は、S1403
→S1405に進み、音源9で現在発音中のものでノートナ
ンバー(以下、Note No.と呼ぶ)が等しい音を消音させ
る。
On the other hand, if the command is a Note off command, S1403
Proceeding to S1405, the sound being generated by the sound source 9 and having the same note number (hereinafter referred to as Note No.) is muted.

次に、第3演奏モードでPitch Bender及び音色チェン
ジの各コマンドが入力した場合の動作は、前記第1演奏
モードの場合と全く同様である。
Next, the operation when the commands of Pitch Bender and tone change are input in the third performance mode is exactly the same as that in the first performance mode.

第3演奏モードでAfter Touchコマンドが入力した場
合は、第1演奏モードと同様に第11図S1103→1109→S11
10と進むが、第16図でS11の判別がNOとなった後はS1602
の判別がYESとなる。これによりS1604に進み、管楽器特
有のアフタータッチ処理が行われる。具体的には、入力
したアフタータッチのデータを第1図のROM7に記憶され
ている管楽器に適した変換カーブあるいは変換アルゴリ
ズムに基づいて楽音の音量・音色のパラメータに変換
し、音源9にそのパラメータを転送して音源の特性を変
更させる。これにより、アフタータッチにより音量等を
制御するという管楽器特有の制御形態において、音の立
ち揚がり時にアフタータッチのデータが必ず小さくなる
という動作に自然に対応することができる。
When the After Touch command is input in the third performance mode, as in the first performance mode, S1103 → 1109 → S11 in FIG.
Proceeds to 10, but after the determination of S11 is NO in FIG. 16, S1602
Is YES. Accordingly, the process proceeds to S1604, where after-touch processing unique to wind instruments is performed. Specifically, the input aftertouch data is converted into tone volume and tone parameters based on a conversion curve or a conversion algorithm suitable for wind instruments stored in the ROM 7 of FIG. To change the characteristics of the sound source. This makes it possible to naturally cope with an operation in which after-touch data always decreases when a sound rises, in a control mode peculiar to a wind instrument in which volume and the like are controlled by after-touch.

以上のNORMAL MODEに対し、第4演奏モードであるCOM
BINATION MODEでは、2音色が同時に発音され、各音色
でのPoly数が4音になる以外は、第11図〜第17図の各動
作フローチャートでは、前記NORMAL MODEの第1〜第3
の各演奏モードの場合と同様の処理が行われる。但し、
Key Board ModeでNote on/offコマンドが入力した場合
は、第14図S1414の判別がYESとなった後、S1415の判別
はNOとなるため、左右張り分け発音処理のは行わずに、
S1404で通常の発音処理を行う。また、COMBINATION MOD
EのGuitar ModeでNote on/offコマンドが入力した場合
は、各音色で6弦に対して4音Polyで動作するため、後
から入力したノートオンにより最も古く発音されている
楽音データが消音されながら発音制御が行われることに
なる。
In contrast to the NORMAL MODE, the fourth performance mode, COM
In the BINATION MODE, except that two tones are generated simultaneously and the number of Poly in each tone becomes four, in the operation flowcharts of FIGS.
The same processing as in the case of each performance mode is performed. However,
When the Note on / off command is input in the Key Board Mode, after the determination in S1414 in FIG. 14 is YES, the determination in S1415 is NO, so the left and right split sound processing is not performed,
In S1404, normal sound generation processing is performed. Also, COMBINATION MOD
If the Note on / off command is input in Guitar Mode of E, the tone data that is the oldest sounded by the later input note-on will be muted because each tone will operate with 4 notes Poly for 6 strings. The sound control is performed while the sound is being generated.

最後に第5演奏モードとしてMULTI.POLY MODEが選択
されている場合の動作について説明する。この場合は、
各処理がMIDIチャネルと等しいチャネルが割り当てられ
ている発音エリアの音に対してのみ実行される以外は、
前記第1演奏モードの場合と全く同様に動作する。この
場合、発音エリアとは、例えば第1発音エリアはチャネ
ル番号が1で2音Poly、第2発音エリアはチャネル番号
が2で4音Poly、第3発音エリアはチャネル番号が3で
3音Polyというように、各MIDIチャネルに対応して独立
した楽器として振る舞うように割り当てられた領域をい
う。
Finally, the operation in the case where MULTI.POLY MODE is selected as the fifth performance mode will be described. in this case,
Except that each process is performed only on the sound in the sounding area to which the channel equal to the MIDI channel is assigned.
The operation is exactly the same as in the first performance mode. In this case, the sounding area is, for example, the first sounding area has a channel number of 1 and two sounds Poly, the second sounding area has a channel number of 2 and four sounds Poly, and the third sounding area has a channel number of 3 and three sounds Poly. Such an area is assigned to behave as an independent instrument corresponding to each MIDI channel.

第5演奏モードでNote on/offコマンドが入力した場
合、第11図S1101→S1105と進み、第12図S1201の判別がY
ESとなり、S1202の判別処理が実行されることにより、M
IDIチャネルが割り当てられている発音エリアのPoly数
が0でないときに限り、判別がYESとなり、第11図S1106
のNote on/off処理すなわち第14図に進む。ここでは、S
1401の判別がYESとなり、MIDIチャネルが割り当てられ
ている発音エリアに対してのみ、前記第1演奏モードの
S1403〜S1405の処理に対応するS1406〜S1408の処理が実
行される。
When the Note on / off command is input in the fifth performance mode, the process proceeds from S1101 to S1105 in FIG. 11, and the determination in S1201 in FIG.
ES, and the discrimination process of S1202 is executed, whereby M
Only when the Poly number of the sounding area to which the IDI channel is assigned is not 0, the determination becomes YES, and FIG.
Note on / off processing, ie, proceed to FIG. Where S
The determination in 1401 is YES, and only the sounding area to which the MIDI channel is assigned is set to the first performance mode.
The processing of S1406 to S1408 corresponding to the processing of S1403 to S1405 is executed.

第5演奏モードでPitch Benderコマンドが入力した場
合、第11図S1101→S1102→S1107と進み、前記Note on/o
ffコマンドの場合と全く同様のチャネル判断1が実行さ
れ、第11図S1108のPitch Bender処理すなわち第15図に
進む。ここでは、S1501の判別がYESとなって、MIDIチャ
ネルが割り当てられている発音エリアに対してのみ、前
記第1演奏モードのS1503の処理に対応するS1505の処理
が実行される。
When the Pitch Bender command is input in the fifth performance mode, the process proceeds from S1101 to S1102 to S1107 in FIG.
Channel determination 1 exactly the same as in the case of the ff command is executed, and the process proceeds to Pitch Bender processing in FIG. Here, the determination in S1501 is YES, and the processing in S1505 corresponding to the processing in S1503 in the first performance mode is executed only for the sounding area to which the MIDI channel is assigned.

第5演奏モードでAfter Touchコマンドが入力した場
合、第11図S1101→S1102→S1103→S1109と進み、第13図
のチャネル判断2が前記第1演奏モードの場合と全く同
様に実行される。すなわち、MIDIチャネルトと各発音エ
リアのいずれかの固定チャネルが等しい場合にもS1301
の判別がYESとなり、第11図S1110のAfter Touch処理す
なわち第16図に進む。ここでは、S1601の判別がYESとな
って、MIDIチャネルが割り当てられている発音エリアに
対してのみ、前記第1演奏モードのS1603の処理に対応
するS1605の処理が実行される。
When the After Touch command is input in the fifth performance mode, the process proceeds to S1101 → S1102 → S1103 → S1109 in FIG. 11, and the channel judgment 2 in FIG. 13 is executed exactly in the same manner as in the first performance mode. In other words, even when the MIDI channel is equal to one of the fixed channels in each sounding area, S1301
Is YES, and the flow proceeds to the After Touch process in FIG. 11 S1110, that is, FIG. Here, the determination in S1601 is YES, and the processing in S1605 corresponding to the processing in S1603 in the first performance mode is executed only for the sounding area to which the MIDI channel is assigned.

第5演奏モードで音色ニェンジコマンドが入力した場
合、第11図S1101→S1102→S1103→S1104→S1111と進
み、前記After Touchコマンドの場合と全く同様のチャ
ネル判断2が実行され、第11図S1112の音色チェンジ処
理すなわち第17図に進む。ここでは、S1701の判別がYES
となって、MIDIチャネルが割り当てられている発音エリ
アに対してのみ、前記第1演奏モードのS1702〜S1704の
処理に対応するS1705〜S1707の処理が実行される。
When the timbre change command is input in the fifth performance mode, the process proceeds to S1101 → S1102 → S1103 → S1104 → S1111 in FIG. 11, and the same channel determination 2 as in the case of the After Touch command is executed. The process proceeds to FIG. Here, the determination in S1701 is YES
As a result, the processes of S1705 to S1707 corresponding to the processes of S1702 to S1704 in the first performance mode are executed only for the sounding area to which the MIDI channel is assigned.

以上のようにして、NORMAL MODE、COMBINATION MODE
又はMULTI.POLY MODEの各演奏モードが選択され、更
に、Key Board、Guitar Mode又はWind Modeが選択され
ることにより、外部に接続される電子楽器が、例えばキ
ーボードか電子ギターか電子管楽器か等により、各装置
に最適な楽音の発音制御を行うことが可能となる。特
に、本実施例では、NORMAL MODEでKey Board Modeの場
合に、発音動作毎に楽音がステレオの左右チャネルに効
果に振り分けられる発音処理が行われることが大きな特
徴である。
As described above, NORMAL MODE, COMBINATION MODE
Or, when each performance mode of MULTI.POLY MODE is selected, and furthermore, by selecting Key Board, Guitar Mode or Wind Mode, an externally connected electronic musical instrument is, for example, a keyboard, an electronic guitar, an electronic wind instrument, or the like. In addition, it is possible to perform tone control of a musical tone optimal for each device. Particularly, in the present embodiment, in the case of the NORMAL MODE and the Key Board Mode, a great feature is that a tone generation process is performed in which a tone is distributed to the left and right channels of the stereo for each tone generation operation.

コントロールデータの変化処理の動作 最後に、第1図のMIDIチャネル回路5を介して外部機
器からコントロールチェンジコマンドが入力されたとき
の動作を、第21図の動作フローチャートに沿って説明す
る。
Operation of Control Data Change Processing Lastly, an operation when a control change command is input from an external device via the MIDI channel circuit 5 of FIG. 1 will be described with reference to an operation flowchart of FIG.

第21図の動作フローチャートは、第2図のスイッチ状
態取り込み動作等と同様、CPU1が特には図示しないタイ
マーからの一定周期毎の割り込みに基づいて、第5図の
シェネラル動作フローチャートに優先して実行される。
従って、コントロールチェンジコマンドが入力した場合
は、上記一定周期単位で処理されることになる。
The operation flowchart of FIG. 21 is executed by the CPU 1 prior to the general operation flowchart of FIG. 5 based on an interrupt from a timer (not shown) at regular intervals, similarly to the switch state fetch operation of FIG. Is done.
Therefore, when the control change command is input, the processing is performed in the unit of the fixed cycle.

まず、コントローラチェンジコマンドが入力した場
合、既に説明したようにMIDI回路5からの割り込みに基
づいて、第3図の動作フローチャートが実行され、MIDI
回路5で受信されたMIDIコマンドはRAM8に取り込まれて
いる。そして、この状態は、第21図S2101及びS2102の判
別処理で検出される。MIDIコマンドの入力が発生してい
ない場合又は入力したMIDIコマンドがコントロールチェ
ンジコマンドでない場合は、S2101及び又はS2192の判別
がNOとなり、S2105に進む。これについては後述する。
First, when a controller change command is input, the operation flowchart of FIG. 3 is executed based on the interrupt from the MIDI circuit 5 as described above, and the MIDI
The MIDI command received by the circuit 5 is stored in the RAM 8. Then, this state is detected in the determination processing of S2101 and S2102 in FIG. If no MIDI command has been input or the input MIDI command is not a control change command, the determination in S2101 and / or S2192 is NO, and the process proceeds to S2105. This will be described later.

コントロールチェンジコマンドが検出されると、ま
ず、MIDIチャネル(入力した動コマンドに指定されてい
るMIDIチャネル)が固定チャネルに等しい場合のみ、21
93の判別がYESとなり、S2104のコントロールデータ変化
処理に進む。ここでは、外部機器での例えばモジュレー
ションホイール、フットボリューム、マスターボリュー
ム、フットスイッチ、ポルタメントタイム変更スイッ
チ、ポルタメントON/OFFスイッチ等の操作に基づいて入
力したコントロールチェンジのデータに対応する制御
を、第1図の音源9に対して行う。なお、MIDI IN処理
の項で説明したようにGuitar Mode(NORMAL MODE又はCO
MBINATION MODE)では、MIDチャネルが最低弦に対応す
る固定チャネルに等しい場合のみ上記コマンドを受け付
け、実際の制御は固定チャネルから該チャネル+5チャ
ネルまでの6弦に対応するチャネルまで同時に制御を行
う。また、MULTI.POLY MODEでは、各発音エリアに対応
する固定チャネルのいずれかに等しい場合に対応する発
音エリアに対してのみ制御を行う。
When a control change command is detected, first, if the MIDI channel (the MIDI channel specified in the input dynamic command) is equal to the fixed channel, the
The determination at 93 is YES, and the flow proceeds to control data change processing at S2104. Here, the control corresponding to the control change data input based on the operation of the external device such as a modulation wheel, a foot volume, a master volume, a foot switch, a portamento time change switch, a portamento ON / OFF switch, etc. This is performed for the sound source 9 in the figure. As described in the section on MIDI IN processing, Guitar Mode (NORMAL MODE or CO
In the MBINATION MODE, the above command is accepted only when the MID channel is equal to the fixed channel corresponding to the lowest string, and the actual control is performed simultaneously from the fixed channel to the channel corresponding to the sixth string from the channel +5. In the MULTI.POLY MODE, control is performed only on the sounding area corresponding to one of the fixed channels corresponding to each sounding area.

上記のようにKIDIコマンドとして入力するコントロー
ルチェンジの命令に加えて、S2105では第1図のコント
ローラー17が操作され、その状態が前回判別時から変化
したか否かが判別される。この処理は、「本実施例の構
成」の項で説明したように、本実施例をキーボード楽器
の一部として実現しコントローラ17を有する場合に実行
される処理で、自己のコントローラーの操作も楽音の発
音制御に反映させるために、S2105のコントローラーの
状態変化の判別を行う。
In addition to the control change command input as a KIDI command as described above, in S2105, the controller 17 of FIG. 1 is operated to determine whether or not the state has changed from the previous determination. This processing is executed when the present embodiment is implemented as a part of the keyboard instrument and the controller 17 is provided, as described in the section “Configuration of the present embodiment”. In step S2105, a change in the state of the controller is determined in order to reflect the change in the sound generation control.

そして、コントローラー操作がなされた場合には、S2
106において、対応するコントロールデータの変化処理
を行う。この処理は前記S2104の処理と同様である。な
お、本実施例をコントローラー17を持たない音源モジュ
ールタイプの電子楽器として実現する場合には、S2105
及び2106の処理は実行する必要はない。
If the controller operation is performed, S2
At 106, the corresponding control data is changed. This process is the same as the process of S2104. When the present embodiment is realized as a tone generator module type electronic musical instrument having no controller 17, S2105
And 2106 need not be executed.

次のS2107では、LFOビブラートを実現するためのデー
タの演算がなされる。LFOビブラートとは、LFO(低周波
発振器)の出力によって楽音の音高を低周波数で周期的
に振らせる効果であり、第1図のCPU1が対応する音項変
更データを作成して音源9に転送することにより実現す
る。なおここでは、MIDIコマンド又は第1図のコントロ
ーラ17の操作に基づいて、前記S2104又はS2106で演算さ
れたコントロールデータにより、LFOビブラートに対し
て変調がかけられる場合のデータ演算処理もなされる。
In the next step S2107, data calculation for realizing the LFO vibrato is performed. The LFO vibrato is an effect in which the pitch of a musical tone is periodically fluctuated at a low frequency by the output of an LFO (low frequency oscillator). The CPU 1 shown in FIG. It is realized by transferring. Here, based on the MIDI command or the operation of the controller 17 shown in FIG. 1, a data calculation process is also performed when the LFO vibrato is modulated by the control data calculated in S2104 or S2106.

続くS2108では、上記処理で演算されたLFOビブラート
のデータに基づいて、第1図の音源9に対して実際に楽
音の音高(ピッチ)を変更する指示を行う。
In S2108, an instruction is issued to the sound source 9 shown in FIG. 1 to actually change the pitch of the musical tone based on the LFO vibrato data calculated in the above processing.

S2109では、LFOトレモロ(グロール)を実現するため
のデータの演算がなされる。これは、LFOの出力によっ
て楽音の音量・音色を低周波数で周期的に振らせる効果
であり、第1図のCPU1が対応する音量又は音色の変更デ
ータを作成して音源9に転送することにより実現する。
なおここでは、MIDコマンド又は第1図のコントローラ1
7の操作に基づいて、前記2104又はS2106で演算されたコ
ントロールデータにより、LFOトレモロ(グロール)に
対して変調がかけられる場合のデータ演算処理もなされ
る。
In S2109, data calculation for realizing LFO tremolo (growl) is performed. This is an effect of periodically varying the volume and tone of the musical tone at a low frequency by the output of the LFO. The CPU 1 of FIG. 1 creates corresponding volume or tone change data and transfers it to the sound source 9. Realize.
Here, the MID command or the controller 1 in FIG.
On the basis of the operation of 7, the data calculation processing when the LFO tremolo (growl) is modulated by the control data calculated in 2104 or S2106 is also performed.

続くS2110では、上記処理で演算されたLFOトレモロ
(グロール)のデータに基づいて、第1図の音源9に対
して実際に楽音の音量・音色を変更する指示を行う。
In S2110, an instruction to actually change the volume and tone of the musical tone is issued to the sound source 9 in FIG. 1 based on the LFO tremolo (growl) data calculated in the above processing.

そして、S2111ではパンニング効果を発生させるため
のデータの演算処理を行う。ここでいうパンニング効果
とは、既に説明したようにパンニング効果発生器11にお
いて、D/A変換器10からのステレオのアナトグ楽音信号
に対して付加される、左右チャンルの定位を一定又はラ
ンダムに変化させる効果である。
Then, in S2111, data computation processing for generating a panning effect is performed. As described above, the panning effect means that the panning effect generator 11 constantly or randomly changes the localization of the left and right channels added to the stereo anatog tone signal from the D / A converter 10 as described above. The effect is

そして、実際のパンニング効果は、第21図の動作フロ
ーチャートとは異なる一定周期毎のタイマー割り込みで
実行される第22図の動作フローチャートのS2201の処理
において、第1図のCPU1がバス2を介してパンニング効
果発生器9に制御信号を出力することにより発生・付加
される。
Then, in the process of S2201 of the operation flowchart of FIG. 22, which is executed by a timer interrupt at a fixed period different from the operation flowchart of FIG. 21, the actual panning effect is performed by the CPU 1 of FIG. It is generated and added by outputting a control signal to the panning effect generator 9.

他の実施例 以上の実施例では、NORMAL MODEでKey Board Modeの
場合に、楽音の振り分けは発音毎に左右交互に振り分け
られるように制御したが、左右の定位に限られるもので
はなく、例えば発音毎に左→中央→右→中央→日溜里あ
るように振り分け制御してもよく、更には左右への混合
度が連続的に変化するように制御してもよい。この場
合、パンニング効果発生器11によりパンニング制御を行
うことになる。
Other Embodiments In the above embodiment, in the case of the NORMAL MODE and the Key Board Mode, the distribution of musical tones is controlled so that the left and right are alternately distributed for each sound.However, the present invention is not limited to the left and right localization. Each time, the control may be performed in such a manner that there is left → center → right → center → jitsuri, and furthermore, the mixing degree to the left and right may be controlled to change continuously. In this case, panning control is performed by the panning effect generator 11.

一方、左右チャネルへの楽音の振り分けは、第19図に
示すように第1図の音源9の8つのモジュールを左右各
々4つずつに分割して行ったが、モジュールは左右区別
せずに、モジュールを発音させる段階では各モジュール
に左右のフラグのみ立てておき、最後に累算する段階で
上記フラグに基づいて左右チャネルに振り分けるように
してもよい。
On the other hand, the distribution of musical tones to the left and right channels was performed by dividing the eight modules of the sound source 9 of FIG. 1 into four for each of the left and right as shown in FIG. At the stage of sounding the module, only the left and right flags may be set for each module, and at the last stage of accumulation, the left and right channels may be allocated based on the flag.

また、前記実施例において、演奏モードの変更は第1
図のスイッチ部3内の第7図の各スイッチで行うように
したが、外部機器からMIDIコマンドによって変更できる
ようにしてもよい。
In the above embodiment, the change of the performance mode is the first mode.
Although the operation is performed by the respective switches shown in FIG. 7 in the switch unit 3 shown in FIG. 7, the change may be made by a MIDI command from an external device.

また、第1図の音源9の最大同時発音可能数は8音と
したが、これに限られるものではなく16音、24音、32音
等に増加させてもよい。加えて、Guitar Modeの場合の
対応可能弦数を6弦としたが、それ以上にしてもよい。
In addition, the maximum number of simultaneous sounds that can be generated from the sound source 9 in FIG. 1 is eight, but the number is not limited to eight and may be increased to 16, 24, 32, or the like. In addition, the number of strings that can be supported in the Guitar Mode is six, but may be more.

加えて、COMBINATION MODEでは、発音エリアを2を越
える数設けるようにして、1つのNote onで同時に発音
する異なる音色の楽音の数を3以上にすることも可能で
あり、更には、発音エリアを2、4、8等と切換えるよ
うにしてもよい。その場合は、同時発音のPoly数が変化
することになる。
In addition, in the COMBINATION MODE, it is possible to provide more than two sounding areas so that the number of musical tones of different timbres that are simultaneously sounded by one note-on can be three or more. It may be switched to 2, 4, 8, etc. In that case, the Poly number of simultaneous sounds changes.

更に、MULTI.POLY MODEではKey Board Modeのみを固
定的に設定したが、Guitar ModeあるいはWind Mode等を
設定できるようにしてもよい。
Further, in the MULTI.POLY MODE, only the Key Board Mode is fixedly set, but the Guitar Mode or the Wind Mode may be set.

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

本発明によれば、演奏操作に基づくノートオン情報の
入力毎に、音源手段から発音される楽音の音像位置を可
変させることができる。これにより、演奏者は例えば単
音ずつ演奏することによって発音される楽音の音像位置
を順次変更できる。また、例えば和音を演奏することに
よって、音像が広がった楽音を発音できる。このよう
に、本発明では、演奏者の意図に基づく効果(エフェク
ト)を得ることができる。
According to the present invention, each time note-on information is input based on a performance operation, the sound image position of a musical tone generated by the sound source means can be varied. As a result, the player can sequentially change the sound image position of a musical tone generated by playing a single note, for example. Also, by playing a chord, for example, a musical tone with a widened sound image can be produced. As described above, according to the present invention, it is possible to obtain an effect based on the intention of the player.

この場合、ある音像位置における楽音のポリフォニッ
ク数が一杯になってしまった場合には、他の音像位置に
振り分けることにより、適切な制御を行うことができ、
音源を効率的に使用することが可能となる。
In this case, when the polyphonic number of musical tones at a certain sound image position becomes full, appropriate control can be performed by allocating to another sound image position,
The sound source can be used efficiently.

更に、全ての音像位置の楽音のポリフォニック数が一
杯になってしまった場合には、後着優先で楽音を発音さ
せることにより、音源を効率的に使用しながら適切なス
テレオ効果等を得ることが可能となる。
Furthermore, when the polyphonic number of musical tones at all sound image positions becomes full, it is possible to obtain an appropriate stereo effect while efficiently using a sound source by generating musical tones with priority for later arrival. It becomes possible.

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

第1図は、本発明による電子楽器の構成図、 第2図は、スイッチ状態取り込みの動作フローチャー
ト、 第3図は、MIDI入力時の動作フローチャート、 第4図は、MIDI出力時の動作フローチャート、 第5図は、ジェネラル動作フローチャート、 第6図は、発音態様表、 第7図は、発音態様設定キースイッチの構成図、 第8図(a)〜(g)は、各モードの表示例を示した
図、 第9図は、スイッチ変化処理の動作フローチャート、 第10図(a)〜(c)は、発音態様メモリの構成図、 第11図は、MIDI IN処理の動作フローチャート、 第12図は、チャネル判断1の動作フローチャート、 第13図は、チャネル判断2の動作フローチャート、 第14図は、Note on/off処理の動作フローチャート、 第15図は、ピッチベンダー処理の動作フローチャート、 第16図は、アフタータッチ処理の動作フローチャート、 第17図は、音色切り替え処理の動作フローチャート、 第18図は、左右振り分け発音処理の動作フローチャー
ト、 第19図は、音源の構成図、 第20図は、左右フラグの構成図、 第21図は、コントロールデータの変化処理の動作フロー
チャート、 第22図は、PAN制御処理の動作フローチャートである。 1……中央制御装置(CPU)、 2……バス、 5……MIDI回路、 7……ROM、 8……RAM、 9……音源、
FIG. 1 is a configuration diagram of an electronic musical instrument according to the present invention, FIG. 2 is an operation flowchart for capturing switch states, FIG. 3 is an operation flowchart for MIDI input, FIG. 4 is an operation flowchart for MIDI output, FIG. 5 is a general operation flowchart, FIG. 6 is a tone generation mode table, FIG. 7 is a configuration diagram of a tone generation mode setting key switch, and FIGS. 8 (a) to (g) show display examples of each mode. FIG. 9, FIG. 9 is an operation flowchart of a switch change process, FIGS. 10A to 10C are configuration diagrams of a sound generation mode memory, FIG. 11 is an operation flowchart of a MIDI IN process, FIG. Is an operation flowchart of channel judgment 1, FIG. 13 is an operation flowchart of channel judgment 2, FIG. 14 is an operation flowchart of note on / off processing, FIG. 15 is an operation flowchart of pitch bender processing, FIG. Is 17, an operation flowchart of an after touch process, FIG. 17 is an operation flowchart of a tone switching process, FIG. 18 is an operation flowchart of a left and right distribution sound generation process, FIG. 19 is a configuration diagram of a sound source, and FIG. FIG. 21 is an operation flowchart of a control data change process, and FIG. 22 is an operation flowchart of a PAN control process. 1 ... Central control unit (CPU), 2 ... Bus, 5 ... MIDI circuit, 7 ... ROM, 8 ... RAM, 9 ... Sound source,

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数の音像位置の各々で所定のポリフォニ
ック数で楽音信号を独立に発生する音源手段と、 ノートオン情報が入力する毎に前記音源手段において音
像位置を変更しながら前記ノートオン情報に基づく楽音
を発音させるとともに、該楽音を発音させる音像位置で
既に前記所定のポリフォニック数で楽音が発音されてい
る場合、この音像位置以外の音像位置で前記ノートオン
情報に基づく楽音を発音させる音像位置制御手段と、 を有することを特徴とする電子楽器。
1. A sound source means for independently generating a tone signal with a predetermined polyphonic number at each of a plurality of sound image positions, and the note-on information is changed in the sound source means every time note-on information is inputted. If a musical tone based on the note-on information is generated at a sound image position other than the predetermined sound image position at a sound image position at which the musical sound is to be generated and the predetermined polyphonic number has already been generated, the sound image based on the note-on information is generated. An electronic musical instrument comprising: a position control unit.
【請求項2】前記ノートオン情報が入力する毎に前記音
像位置制御手段が所定の音像位置を決定したときに、前
記音源手段における前記複数の音像位置の全てで前記所
定のポリフォニック数の楽音が発音されている場合、前
記音像位置制御手段は前記音源手段において前記所定の
音像位置で発音されている楽音のうち最も古く発音開始
された楽音を消音して前記ノートオン情報に基づく楽音
を発音させることを特徴とする請求項1記載の電子楽
器。
2. When the sound image position control means determines a predetermined sound image position each time the note-on information is input, the sound of the predetermined polyphonic number is generated at all of the plurality of sound image positions in the sound source means. In the case of being pronounced, the sound image position control means silences the oldest sound-started sound among the sounds sounded at the predetermined sound image position in the sound source means and sounds a sound based on the note-on information. The electronic musical instrument according to claim 1, wherein:
JP1009436A 1989-01-18 1989-01-18 Electronic musical instrument Expired - Lifetime JP2643405B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1009436A JP2643405B2 (en) 1989-01-18 1989-01-18 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1009436A JP2643405B2 (en) 1989-01-18 1989-01-18 Electronic musical instrument

Publications (2)

Publication Number Publication Date
JPH02188795A JPH02188795A (en) 1990-07-24
JP2643405B2 true JP2643405B2 (en) 1997-08-20

Family

ID=11720267

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1009436A Expired - Lifetime JP2643405B2 (en) 1989-01-18 1989-01-18 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JP2643405B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04306697A (en) * 1991-04-03 1992-10-29 Kawai Musical Instr Mfg Co Ltd Stereo system
JP2998612B2 (en) 1995-06-06 2000-01-11 ヤマハ株式会社 Music generator

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4826285A (en) * 1971-08-09 1973-04-06
JPS554012A (en) * 1978-06-22 1980-01-12 Casio Computer Co Ltd Musical tone generator in electronic instrument
JPS57122495A (en) * 1981-01-23 1982-07-30 Nippon Musical Instruments Mfg Electronic musical instrument
JPS5839000A (en) * 1981-09-02 1983-03-07 ヤマハ株式会社 Electronic musical instrument
JPS59102292A (en) * 1982-12-03 1984-06-13 カシオ計算機株式会社 Electronic musical instrument
JPS6029792A (en) * 1983-07-28 1985-02-15 株式会社河合楽器製作所 Allotment of keyboard circuit
JPS61173297A (en) * 1985-01-29 1986-08-04 ヤマハ株式会社 Electronic musical instrument
JPS62135892A (en) * 1985-12-10 1987-06-18 ヤマハ株式会社 Electronic musical apparatus with sound generation allottingfunction
JPS63261396A (en) * 1987-04-20 1988-10-28 松下電器産業株式会社 Electronic musical instrument

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59166293U (en) * 1983-04-21 1984-11-07 ヤマハ株式会社 electronic musical instruments
JPS62116299U (en) * 1986-01-16 1987-07-23
JPS62181998U (en) * 1986-05-09 1987-11-18

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4826285A (en) * 1971-08-09 1973-04-06
JPS554012A (en) * 1978-06-22 1980-01-12 Casio Computer Co Ltd Musical tone generator in electronic instrument
JPS57122495A (en) * 1981-01-23 1982-07-30 Nippon Musical Instruments Mfg Electronic musical instrument
JPS5839000A (en) * 1981-09-02 1983-03-07 ヤマハ株式会社 Electronic musical instrument
JPS59102292A (en) * 1982-12-03 1984-06-13 カシオ計算機株式会社 Electronic musical instrument
JPS6029792A (en) * 1983-07-28 1985-02-15 株式会社河合楽器製作所 Allotment of keyboard circuit
JPS61173297A (en) * 1985-01-29 1986-08-04 ヤマハ株式会社 Electronic musical instrument
JPS62135892A (en) * 1985-12-10 1987-06-18 ヤマハ株式会社 Electronic musical apparatus with sound generation allottingfunction
JPS63261396A (en) * 1987-04-20 1988-10-28 松下電器産業株式会社 Electronic musical instrument

Also Published As

Publication number Publication date
JPH02188795A (en) 1990-07-24

Similar Documents

Publication Publication Date Title
AU757577B2 (en) Automatic music generating method and device
US5521322A (en) Tone information processing device for an electronic musical instrument for generating sounds
US5206446A (en) Electronic musical instrument having a plurality of tone generation modes
US5044251A (en) Timbre setting device for an electronic musical instrument
JP2643405B2 (en) Electronic musical instrument
US6958442B2 (en) Dynamic microtunable MIDI interface process and device
JP2565069B2 (en) Electronic musical instrument
JP2797109B2 (en) Tone generator
JP2819609B2 (en) Sound image localization control device
JP2797363B2 (en) Electronic musical instrument
US5177314A (en) Timbre setting device for an electronic musical instrument
CN109559717B (en) Electronic musical instrument, method executed by electronic musical instrument, and storage medium
JPH0968980A (en) Timbre controller for electronic keyboard musical instrument
JP3005986B2 (en) Automatic accompaniment device
JP2737169B2 (en) Automatic accompaniment device
JP2983122B2 (en) Electronic musical instrument
JPH02188793A (en) Electronic musical instrument
JPH02287599A (en) Electronic musical instrument
JP3318790B2 (en) Sound image localization control device
JP2734560B2 (en) Automatic accompaniment device
JP3557647B2 (en) Electronic musical instruments and network performance systems
JP2570819B2 (en) Electronic musical instrument
JPH02188792A (en) Electronic musical instrument
JP2734559B2 (en) Automatic accompaniment device
JPH05181470A (en) One-minus-one playing device