JPH02287599A - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JPH02287599A
JPH02287599A JP1110736A JP11073689A JPH02287599A JP H02287599 A JPH02287599 A JP H02287599A JP 1110736 A JP1110736 A JP 1110736A JP 11073689 A JP11073689 A JP 11073689A JP H02287599 A JPH02287599 A JP H02287599A
Authority
JP
Japan
Prior art keywords
note
mode
sound source
localization
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.)
Pending
Application number
JP1110736A
Other languages
Japanese (ja)
Inventor
Tsunehisa Nogimura
恒久 野木村
Naoaki Matsumoto
松本 直明
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP1110736A priority Critical patent/JPH02287599A/en
Publication of JPH02287599A publication Critical patent/JPH02287599A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PURPOSE:To obtain stereophonic effect that a player intends by providing a sound source means and changing localization according to whether the note number of note-on information is even or odd. CONSTITUTION:A sound source 9 is a sound source means, timbre is set according to control data inputted from a CPU 1 through a bus 2, and a musical sound is generated while the sounding state is controlled. Then, the sound source 9 decides by time-division processing whether the note number of the inputted note-on information is even or odd by using the least significant digit bit of a note number stored in a RAM 8. The musical sound is assigned to a right or left channel according to whether the note number is even or odd. Here, a MIDI circuit 5 transfers a signal which controls a sound source module to the CPU 1 or receives the signal from the CPU 1 and changes the localization of the musical sound between the right and left channels to generate the musical sound based upon the note-on information. Consequently, the player obtains the intended stereophonic effect by changing the localization of the musical sound according to whether the note number is even or odd.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、楽音の定位を制御しながら発音制御を行う電
子楽器に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an electronic musical instrument that controls sound production while controlling the localization of musical tones.

〔従来の技術〕[Conventional technology]

近年の電子楽器において、楽音の出力をモノラルのみで
なくステレオで出力できるものが開発されている。そし
てこのような場合にミ左右チャネルへの楽音の振り分け
を行う装置が開発されている。
BACKGROUND ART In recent years, electronic musical instruments that can output musical tones not only in monaural but also in stereo have been developed. In such a case, a device has been developed that allocates musical tones to left and right channels.

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

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

しかし、上記従来例は、演奏操作によって楽音を左右チ
ャネルに振り分ける動作を行うものではなく、演奏者の
意思とは無関係に左右チャネルへの振り分けが行われ、
演奏者の意図したようなステレオ効果を得ることができ
ないという問題点を有している。
However, in the conventional example described above, the musical tones are not distributed to the left and right channels by the performance operation, but are distributed to the left and right channels regardless of the performer's intention.
This has the problem that it is not possible to obtain the stereo effect intended by the performer.

本発明の課題は、演奏者による演奏操作に基づいて楽音
の定位を制御可能とし、これによって演奏者が意図した
ようなステレオ効果を得られるようにすることにある。
An object of the present invention is to make it possible to control the localization of musical tones based on the player's performance operations, thereby making it possible to obtain the stereo effect intended by the player.

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

本発明は、まず、2つの定位の各々で楽音信号を独立に
発音する音源手段を有する。同手段は、例えば周波数変
調タイプ又は位相変調タイプのデジタル音源、PCM音
源等種々のタイプの音源が適用できる。そして、例えば
ステレオの左チャネル及び右チャネルの各定位で、楽音
信号を例えば時分割処理によって独立に発音する手段で
ある。
The present invention first includes sound source means that independently generates musical tone signals in each of two localizations. This means can be applied to various types of sound sources, such as a frequency modulation type or phase modulation type digital sound source, a PCM sound source, etc. And, for example, it is a means for independently generating musical tone signals in each localization of the left channel and right channel of stereo, for example, by time-division processing.

この場合、左右チャネルの各々で例えば4音、8音等の
ポリフォニック数で楽音信号を独立に発音する。
In this case, musical tone signals are generated independently in each of the left and right channels in a polyphonic number such as 4 tones, 8 tones, etc.

次に、入力するノートオン情報のノートナンバーが偶数
か奇数かによって前記音源手段において前記定位を変更
しながら前記ノートオン情報に基づく楽音を発音させる
定位制御手段を有する。この場合、ノートオン情報は、
例えばMIDI (MusicalInstrumen
t Digital Interface)規格に基づ
いて鍵盤楽器等から入力し、又は、内蔵の鍵盤部から押
鍵された鍵に対応して入力する。また、ノートナンバー
は、例えば0−127の値をとる。そして、上記定位制
御手段は、上記ノートナンバーが偶数か奇数かによって
、前記音源手段における例えば左右チャネルへの発音割
り当てを交互に変更しながら、各ノートオンコマンドに
基づいて音高・音量・音色等を制御して楽音を発音させ
る手段である。ここで、好ましき構成例によれば、各ノ
ートオン情報の人力に対応して所定の定位を決定したと
きに、前記音源手段における前記所定の定位で前記所定
のポリフォニック数の楽音が発音されている場合、前記
定位制御手段は前記音源手段において前記所定の定位以
外のもう一方の定位で前記ノートオン情報に基づく楽音
を発音させる。
Next, the apparatus includes localization control means for generating a musical tone based on the note-on information while changing the localization in the sound source means depending on whether the note number of the input note-on information is an even number or an odd number. In this case, the note-on information is
For example, MIDI (Musical Instrument
Input from a keyboard instrument or the like based on the Digital Interface standard, or input in response to keys pressed from a built-in keyboard section. Further, the note number takes a value of 0-127, for example. Then, the localization control means alternately changes the sound generation assignment to, for example, the left and right channels in the sound source means depending on whether the note number is an even number or an odd number, and controls the pitch, volume, timbre, etc. based on each note-on command. This is a means of controlling the sound to produce musical tones. Here, according to a preferred configuration example, when a predetermined localization is determined in accordance with the human power of each note-on information, the predetermined polyphonic number of musical tones are produced at the predetermined localization in the sound source means. If so, the localization control means causes the sound source means to generate a musical tone based on the note-on information at a localization other than the predetermined localization.

また、同じく所定の定位を決定したときに、前記音源手
段における前記2つの定位の両方で前記所定のポリフォ
ニック数の楽音が発音されている場合、前記定位制御手
段は前記音源手段において前記所定の定位で発音されて
いる楽音のうち最も古く発音開始された楽音を消音して
前記ノートオン情報に基づく楽音を発音させる。
Similarly, when the predetermined localization is determined, if the predetermined polyphonic number of musical tones are being produced at both of the two localizations in the sound source means, the localization control means determines the predetermined localization in the sound source means. Among the musical tones being sounded, the musical tone whose sounding was started earliest is muted, and a musical tone based on the note-on information is generated.

(作  用〕 演奏者が内蔵の又はMIDI等を介して外部に接続され
たキーボード楽器等を用いて、鍵盤等の押鍵操作を繰り
返して演奏を行った場合、押鍵した鍵番号が偶数か奇数
かによって音源手段から発音される楽音の定位が例えば
左右チャネル交互に変化する。すなわち、演奏者は鍵番
号を偶数鍵と奇数鍵とから選択することにより発音され
る楽音の定位を変更できる。また、偶数鍵と奇数鍵にま
たがった和音を演奏することによって、例えば左右チャ
ネルで広がった定位の楽音を発音でき、演奏者の意図に
基づくステレオ効果を得ることができる。
(Function) When a performer uses a built-in keyboard instrument, etc. or is connected to an external device via MIDI, etc., and performs a performance by repeatedly pressing keys on the keyboard, etc., whether the pressed key number is an even number or not. Depending on whether the number is an odd number, the localization of the musical tones produced by the sound source means changes alternately between the left and right channels, for example.In other words, the performer can change the localization of the musical tones produced by selecting the key number from even-numbered keys and odd-numbered keys. Furthermore, by playing chords spanning even-numbered keys and odd-numbered keys, for example, it is possible to produce a musical sound with a wide localization in the left and right channels, and it is possible to obtain a stereo effect based on the performer's intention.

なお、鍵盤操作に限られるものではなく、シーケンサ−
等を用いて自動演奏を行う場合にもノートオン情報が入
力に同期させて楽音の定位を制御できる。
Note that this is not limited to keyboard operations, but also sequencer operations.
Even when automatic performance is performed using, for example, note-on information can control the localization of musical tones in synchronization with the input.

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

更に、両方の定位の楽音のポリフォニック数が一杯にな
ってしまった場合には、定位制御手段で指定された定位
において、後着優先で楽音を発音させることができ、こ
の場合も適切な制御を行うことができる。
Furthermore, if the polyphonic number of musical tones in both localizations is full, the musical tones can be played with priority given to the last sound in the localization specified by the localization control means, and in this case as well, appropriate control can be performed. It can be carried out.

〔実  施  例〕〔Example〕

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

木尖指勇■構威 第1図は、本発明による電子楽器の構成図である。本実
施例は、外部からのMIDIコマンド(データを含む。
Fig. 1 is a block diagram of an electronic musical instrument according to the present invention. This embodiment uses external MIDI commands (including data).

以下同じ。)を受信し、それに基づいて音源を制御して
対応する楽音を発音する音源モジュールタイプの電子楽
器として実現されるが、同図に示すように鍵盤部16又
はコントローラー17を有するキーボード楽器等の一部
として実現することも可能である。なお、コントローラ
ー17としては、例えば演奏時の音高を任意に変更する
ためのペングーホイール(Bender圓heel)、
トレモロの深さ等を任意に変更できるモジュレーション
ホイール(Modulation wheel)、予め
設定された楽音構成要素の1つ又は複数に対して任意に
データを変更させることのできるディファイナプルホイ
ーノ喧Definable cuheel)等の操作子
がある。以下の説明では、特に言及しない限り外部から
のMIDIコマンドに基づいて制御される音源モジュー
ルとして説明を行う。
same as below. ) and controls the sound source based on it to produce the corresponding musical tone. However, as shown in the same figure, it is realized as a keyboard instrument having a keyboard section 16 or a controller 17. It is also possible to realize it as a part. Note that the controller 17 may include, for example, a Bender wheel for arbitrarily changing the pitch during performance;
A modulation wheel that allows you to arbitrarily change the depth of tremolo, etc., and a Definable cuheel that allows you to arbitrarily change data for one or more of the preset musical tone components. There are other operators such as In the following description, unless otherwise specified, the sound source module will be described as being controlled based on external MIDI commands.

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

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

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

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

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

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

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

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

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

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

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

i!盤郡部16よびコントローラ17は、はじめに説明
したように本実施例をキーボード楽器の一部として実現
する場合の構成例であり、本発明には直接は関係しない
ため、その動作説明は省略する。
i! As described at the beginning, the keyboard section 16 and the controller 17 are an example of the configuration when this embodiment is implemented as part of a keyboard instrument, and are not directly related to the present invention, so a description of their operation will be omitted.

1の  ゛ フロー 上記構成の電子楽器の動作を以下に説明する。1. Flow The operation of the electronic musical instrument having the above configuration will be explained below.

なお、以下に示す各動作フローチャートは、第1図のc
puiがROM7に記憶されているプログラムに従って
動作することにより実行される。
Note that each operation flowchart shown below is based on c in Fig. 1.
This is executed by pui operating according to a program stored in the ROM 7.

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

まず、本実施例の基本動作フローにつき第2図〜第5図
の動作フローチャートに従って説明する。
First, the basic operation flow of this embodiment will be explained according to the operation flowcharts of FIGS. 2 to 5.

なお、随時第1図の各処理部を参照しながら説明を行う
The explanation will be given with reference to each processing unit shown in FIG. 1 from time to time.

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

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

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

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

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

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

上記判別によりスイッチ状態に変化があれば、5503
において、スイッチ変化処理を行う。ここでは、演奏モ
ードの設定のほか、音色データの設定、MIDI制御デ
ータの設定、パンニング(PAN)制御データの設定及
び各データの変更、音源9に対する楽音制御用データの
設定、表示部4へのデータ設定、コントロールデータの
初期設定、パンニング効果発生器11に対する制御、外
部インタフェース6を介してのICカード等とのデータ
又はプログラムの授受、MIDIの制御等、システム状
態に応じて必要な全ての処理がなされる。なお、この動
作については後に詳述する。以上の動作の後は5504
の処理に移る。
If there is a change in the switch state as a result of the above determination, 5503
At , switch change processing is performed. Here, in addition to setting the performance mode, setting tone data, setting MIDI control data, setting panning (PAN) control data, changing each data, setting musical tone control data for the sound source 9, and setting the display section 4. All necessary processing depending on the system status, such as data settings, initial settings of control data, control over the panning effect generator 11, exchange of data or programs with an IC card etc. via the external interface 6, and MIDI control. will be done. Note that this operation will be detailed later. After the above operation, 5504
Move on to processing.

一方、前記5502の判別によりスイッチ状態に変化が
なければ、5503のスイッチ変化処理は実行せず、5
504の処理に移る。
On the other hand, if there is no change in the switch state as determined in step 5502, the switch change process in step 5503 is not executed, and
The process moves to step 504.

続いて5504では、旧DI回路5を介してMIDIコ
マンドの入力がなされたか否かが判別される。
Subsequently, in step 5504, it is determined whether a MIDI command has been input via the old DI circuit 5.

なお、ここでMIDI入力の有無を判別するためのフラ
グは、前記したように第3図に示した割り込み処理によ
ってRAM8にセットされる。
Note that the flag for determining the presence or absence of MIDI input is set in the RAM 8 by the interrupt processing shown in FIG. 3, as described above.

上記判別により)IIIDI入力が有れば、5505の
MIDI IN処理を実行する。ここでは入力したMI
DIコマンドを識別し、該データに対応して内部演奏モ
ードの変更、音色データの変更、PAN制御データの変
更、楽音制御データの変更、及びこれらに対する全ての
処理、また、楽音の制御、表示データの制御、MIDI
の制御等がシステム状態及び設定データに応じて処理さ
れる。なお、ここは本発明に特に関係する部分であり、
本発明に係る動作については後に詳述する。以上の動作
の後は5506の処理に移る。
If there is a IIIDI input (based on the above determination), the MIDI IN process of 5505 is executed. Here, the entered MI
Identify the DI command, change the internal performance mode, change the tone data, change the PAN control data, change the musical tone control data, and all processes related to these, as well as control the musical tone and display data. control, MIDI
control etc. are processed according to the system status and configuration data. Note that this is a part particularly related to the present invention,
The operation according to the present invention will be explained in detail later. After the above operations, the process moves to step 5506.

一方、前記5504の判別によりMIDI人力がなけれ
ば、5505のMIDI IN処理は実行せず、550
6の処理に移る。
On the other hand, if there is no MIDI manual power as determined in 5504, the MIDI IN process in 5505 is not executed, and the MIDI IN process in 550 is not executed.
Proceed to step 6.

3506では、鍵盤部16において押鍵変化の有無が判
別される。この処理は、「本実施例の構成」の項で説明
したように、本実施例をキーボード楽器の一部として実
現し鍵盤部16を有する場合に実行される処理で、自己
の鍵盤操作も楽音の発音制御に反映させるために、35
06の押鍵変化の有無の判別を行う。
At 3506, it is determined whether or not there is a change in key depression in the keyboard section 16. As explained in the section "Configuration of this embodiment," this process is executed when this embodiment is realized as a part of a keyboard instrument and has the keyboard section 16, and the own keyboard operation also produces musical sounds. In order to reflect this in the sound production control, 35
It is determined whether or not there is a change in key depression in step 06.

そして、押離鍵操作がなされた場合には、5507にお
いて、押鍵変化処理を行う。この処理は、押離鍵操作に
伴うデータの変更、発音の割り当て、発音処理、消音処
理、MIDI制御等の処理であるが、通常のキーボード
楽器の動作と同じであり、また、本発明に直接は関係し
ないため、その詳細は省略する。
If a key press/release operation is performed, key press change processing is performed in 5507. This processing involves changing data in response to key press/release operations, assigning sounds, producing sounds, muting, MIDI control, etc., and is the same as the operation of a normal keyboard instrument, and is directly related to the present invention. Since it is not relevant, its details will be omitted.

上記処理の後又は5506の判別により押鍵変化がなか
った場合は、3502の処理に戻ることにより、550
2〜5507の処理を繰り返し実行する。
After the above processing or if there is no change in the key press as determined in step 5506, return to step 3502 to determine step 550.
Processes 2 to 5507 are repeatedly executed.

なお、本実施例を鍵盤部16を持たない音源モジュール
タイプの電子楽器として実現する場合には、5506及
び5507の処理は実行する必要はない。
Note that if this embodiment is implemented as a sound source module type electronic musical instrument that does not have the keyboard section 16, it is not necessary to execute the processes 5506 and 5507.

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

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

そして、ノーマルモード(NORMAL MODE) 
、コンビネーションモード(COMBINATION 
MODE)、及びマルチポリフォニックモード(MLI
LTl、POLY MODE)の3つの演奏モードを有
する。NORMAL MODEにおいては、■音色で8
音Po1yの楽音を発音可能である。
And NORMAL MODE
, combination mode
MODE), and multi-polyphonic mode (MLI
It has three performance modes: LTl, POLY MODE). In NORMAL MODE, the tone is 8.
It is possible to produce musical tones of the tone Po1y.

COMBINATION MODEでは、発音エリアを
2つもち各エリアに対し1音色で4音Po1yを割り当
て可能である。すなわち、4音Po1yで2音色混合の
楽音を発音可能である。MULTl、POLY MOD
Eでは、発音工リアを8つもち各エリアに対して1音色
で0〜8音Po1yを割り当て可能である。但し、にU
LTl、POLYMODEの全エリアのPo1y数の合
計が8音より大きくなることはない。
In the COMBINATION MODE, there are two sound generation areas, and each area can be assigned one timbre of four tones Po1y. That is, it is possible to generate musical tones with a mixture of two tones using four tones Po1y. MULTl, POLY MOD
E has eight sound generator areas, and it is possible to allocate 0 to 8 tones Po1y of one tone to each area. However, in
The total number of Po1y in all areas of LTl and POLYMODE will never be larger than 8 notes.

更に、上記3つの演奏モードの各々に対して、NORM
AL MODE及びCOMBINATION MODE
では、各々、キーボードモード(Key Board 
Mode)、ギターモード(Guitar  Mode
)及び管楽器モード(Wind Mode)を択一的に
選択可能で、MULTl、POLY MODEでは、K
ey Board Modeが固定的に設定される。
Furthermore, for each of the above three performance modes, NORM
AL MODE and COMBINATION MODE
Now, each keyboard mode (Key Board
Mode), Guitar Mode
) and wind instrument mode (Wind Mode) can be selected alternatively.
The ey Board Mode is fixedly set.

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

第6図で、第1演奏モードとしてNORMAL MOD
EでKey Board Modeが選択されている場
合、Noteonloff、 Pitch Bende
r及びAfter Touch 、音色チェンジ及びコ
ントロールチェンジの全てのコマンドに対して、固定さ
れた所定のMIDIID法ルが指定されている場合のみ
動作し、他のMIDIID法ルのコマンドは無視される
In Figure 6, NORMAL MOD is selected as the first performance mode.
If Key Board Mode is selected in E, Noteonloff, Pitch Bende
r, After Touch, Tone Change, and Control Change commands operate only when a fixed predetermined MIDI ID code is specified, and commands in other MIDI ID codes are ignored.

第2演奏モードとして、NORMAL MODEでGu
iむarModeが選択されている場合は、Note 
onloff及びPitch Benderの各コマン
ドに対しては、固定された所定のMIDIID法ルから
5だけ加算したチャネルまで、各MIDIID法ルに独
立に対応して動作する。例えば所定のMIDIID法ル
が1のときには、1+5=6チヤネルまで独立に動作す
る。これはギター等の弦楽器より入力されるコマンドの
MIDIID法ルが弦毎に独立に設定され、例えば第1
弦〜第6弦がチャネル1〜6に割り当てられるような場
合が多く、各弦毎にNote onloff  (各弦
毎のピッキングに対応)及びPitch Render
 (各弦毎のチョーキング奏法等に対応)の各指示がな
されるためである。これに対して、After Tou
ch 、音色チェンジ及びコントロールチェンジの各コ
マンドは、上記6チヤネルのうち最低位チャネルの固定
された所定のMIDIID法ルが指定されている場合の
み該コマンドを受は付け、該チャネルから+5したチャ
ネルに対応する6弦分に対して同時に該コマンドを実行
する。これは、音色チェンジ等は6弦に対して同時に指
示されるため、最低位に対応するMIDIID法ルのみ
を用いてコマンドを送ることにより、6弦共通に命令が
実行されるようにし、これにより各弦別々に命令を転送
してしまうような冗長を防いでいる。
As the second performance mode, play Gu in NORMAL MODE.
If imarMode is selected, Note
For each command of onloff and Pitch Bender, it operates independently corresponding to each MIDI ID code from a fixed predetermined MIDI ID code to a channel added by 5. For example, when the predetermined MIDI ID modulus is 1, up to 1+5=6 channels can be operated independently. This is because the MIDI ID modulus of commands input from a stringed instrument such as a guitar is set independently for each string.
In many cases, the strings to 6th strings are assigned to channels 1 to 6, and Note onloff (corresponds to picking for each string) and Pitch Render are set for each string.
This is because each instruction (corresponding to the bending playing method, etc. for each string) is given. On the other hand, After Tou
ch, tone change, and control change commands will only be accepted if a fixed predetermined MIDI ID code for the lowest channel among the six channels is specified, and the command will be accepted on the channel +5 from the above channel. The command is executed simultaneously for the corresponding six strings. This is because timbre changes, etc. are instructed to all 6 strings at the same time, so by sending commands using only the lowest MIDI ID modulus, commands can be executed for all 6 strings. This prevents redundancy such as transferring commands to each string separately.

第3演奏モードとして、NORMAL MODEでWi
ndModeが選択されている場合は、Key Boa
rd Modeが選択されている場合と同様であるが、
After Touchコマンドが入力した場合は、A
fter Toucbコマンドのデータを楽音の音量・
音色のパラメータに変換する場合の変換カーブ(以下、
アフターカーブと呼ぶ)を管楽器特有のアフターカーブ
を設定する。なお、第6図のようにGuitar Mo
deの場合はKey Board Modeと同様のア
フターカーブとして設定している。このように、Win
d Modeのみ設定を変えるのは、管楽器の場合、ア
フタータッチにより音量等を制御することが多いが、音
の立ち上がり時には必ずアフタータッチのデータが小さ
く、Key Board Modeのアフタータッチと
同様に制御すると、音の立ち上がりが常に遅くなって、
不自然な演奏になってしまうためである。なお、Gui
tarModeのアフタータッチは、ギター本体に設け
られる専用のタッチキー等によって付加させることが考
えられる。ここでアフターカーブあるいはそれを決める
アルゴリズムは、例えば第1図のROM7に記憶され、
CPUIが入力したAfter Touchコマンドの
データに基づいて同カーブを参照し、楽音の音量・音色
のパラメータに変換して音源9に出力する。
As the third performance mode, Wi
If ndMode is selected, Key Boa
Same as when rd Mode is selected, but
If the After Touch command is input, A
The fter Toucb command data can be used to change the volume of the musical tone.
Conversion curve for converting to tone parameters (hereinafter referred to as
Sets the after curve unique to wind instruments. Furthermore, as shown in Fig. 6, the Guitar Mo
In case of de, it is set as an after curve similar to Key Board Mode. In this way, Win
The reason for changing only the d Mode setting is that in the case of wind instruments, aftertouch is often used to control the volume, etc., but at the beginning of the sound, the aftertouch data is always small, so if you control it in the same way as aftertouch in Key Board Mode, The rise of the sound is always slow,
This is because the performance becomes unnatural. In addition, Gui
The tarMode aftertouch may be added using a dedicated touch key provided on the guitar body. Here, the aftercurve or the algorithm for determining it is stored, for example, in the ROM 7 in FIG.
The CPU refers to the same curve based on the data of the After Touch command inputted, converts it into parameters of the volume and timbre of the musical tone, and outputs the parameters to the sound source 9.

以上のNOHMAL MODEに対し、第4演奏モード
であるCOMBrNATION MODEテは、第6図
ニ示スヨウニ、2音色が同時に発音され、Po1y数が
4音になる以外はNORMAL MODEの第1〜第3
の各演奏モードの場合と全く同様である。但し、Key
 BoardにodeではNORMAL MODEのK
ey Board Modeの場合と異なり、後述する
ように、ノートオン時には本発明に関連する左右振り分
は発音処理は行わない。
In contrast to the above NOHMAL MODE, the fourth performance mode, COMBrNATION MODE, is the first to third performance mode of NORMAL MODE, as shown in Figure 6, except that two tones are sounded at the same time and the number of polyphony is four.
This is exactly the same as in each performance mode. However, the key
K in NORMAL MODE on board
Unlike the case of the ey Board Mode, as will be described later, when a note is turned on, no sound generation processing is performed for the left and right allocation related to the present invention.

第5演奏モードとして、MULTl、POLY MOD
Eでは、シーケンサ(自動演奏袋W)の音源として使用
するという仮定で、本実施例ではKey Board 
Modeのみを設定可能としており、Note onl
off 、 PitchBender、 After 
Touch 、音色チェンジ及びコントロールチェンジ
の各コマンドは、各MIDIチャネル毎に独立で、8つ
の発音エリアに独立に設定されているMIDIチャネル
と等しいチャネルの発音エリアに対して動作する。
As the fifth performance mode, MULTl, POLY MOD
E is assumed to be used as a sound source for a sequencer (automatic performance bag W), and in this embodiment the Key Board
Only Mode can be set, Note onl
off, PitchBender, After
The Touch, Tone Change, and Control Change commands are independent for each MIDI channel, and operate on the sound generation area of the same channel as the MIDI channel independently set for the eight sound generation areas.

以上水したように本実施例では、NORMAL MOD
E 。
As mentioned above, in this example, NORMAL MOD
E.

COMBINATION MODE又はM[ILTl、
POLY MODEの各演奏モードを選択可能とすると
共に、外部に接続される電子楽器が、例えばキーボード
か電子ギターか電子管楽器か等により、各装置に最適な
楽音の発音制御を行えることが大きな特徴である。
COMBINATION MODE or M [ILTl,
In addition to being able to select each POLY MODE performance mode, the main feature is that it is possible to control the production of musical tones that are optimal for each device, depending on whether the externally connected electronic musical instrument is a keyboard, electronic guitar, electronic wind instrument, etc. be.

スイッチ・ 几 のφ 以下、前記第5図のジェネラル動作フローチャートの3
503のスイッチ変化処理及び5505のMIDI I
N処理及び割り込みによるコントロールデータの変化処
理について順次説明を行ってゆく。
φ of the switch 几 Below, 3 of the general operation flowchart in Figure 5 above.
503 switch change processing and 5505 MIDI I
The N process and the control data change process due to interrupts will be sequentially explained.

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

第7図は、第1図のスイッチ部3の一部であり、各演奏
モードを設定するためのキースイッチである。同図の1
8.19及び20は、各々NORMALMODE、、C
OMBINATION MODE及びMULTl、PO
LY MODEを設定するスイッチであり、21はKe
y Board Mode。
FIG. 7 shows a part of the switch unit 3 shown in FIG. 1, and is a key switch for setting each performance mode. 1 in the same figure
8.19 and 20 are NORMALMODE, , C
OMBINATION MODE and MULTl, PO
This is a switch to set LY MODE, and 21 is Ke
y Board Mode.

Guitar Mode又はWind Modeを選択
するセレクトキーである。
This is a select key for selecting Guitar Mode or Wind Mode.

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

同図(a)〜(C)は、NORMAL MODEが選択
され、かつ、Key Board Mode、 Gui
tar Mode及びWind Modeが選択された
場合の表示例であり、「K」、rQJ、「W」の文字の
下のアンダーラインはカーソルで点滅している。そして
、第7図のセレクトキー21を押す毎に、第8図(a)
−ら)−(C)−(a)というように表示が変化し、K
ey Board Mode−=Guitar Mod
e−Wind Mode −+Key Board M
odeというように演奏モードが変化する。
In the figures (a) to (C), NORMAL MODE is selected and Key Board Mode, Gui
This is a display example when tar Mode and Wind Mode are selected, and the underlines under the characters "K", rQJ, and "W" are blinking with a cursor. 8(a) each time the select key 21 in FIG. 7 is pressed.
- et al) - (C) - (a), and the display changes as follows.
ey Board Mode-=Guitar Mod
e-Wind Mode −+Key Board M
The performance mode changes like ode.

第8図(d)〜(f)は、COMBINATTON M
ODEで、かつ、Key Board Mode、、G
uitar Mode及びWind Modeが選択さ
れた場合の表示例であり、NORMAL MODEの場
合と同様に第7図のセレクトキー21で各演奏モードを
選択できる。
FIG. 8(d) to (f) are COMBINATTON M
ODE and Key Board Mode, ,G
This is a display example when uitar mode and wind mode are selected, and each performance mode can be selected using the select key 21 in FIG. 7, as in the case of NORMAL MODE.

第8図(6)は、MULTl、POLY MODEの表
示であり、前記したようにKey Board Mod
e固定であるから、rKuの表示は省略されている。
FIG. 8 (6) shows the display of MULTl and POLY MODE, and as mentioned above, Key Board Mod
Since e is fixed, the display of rKu is omitted.

なお、第8図(a)〜(8)で、画面1行目のrPST
1ノの文字は、プリセットバンク1の略で、2行目のr
A−IJ、rA−2J、rA−3J等は音色バンクAの
1.2.3を示し、両者とも音色データが格納される領
域を示している。また、「■Z  EPJ、rVZ  
BASSJ、rVZ  TRUMPETJ等の文字は、
音色名を示している。
In addition, in FIGS. 8(a) to (8), rPST in the first line of the screen
The letter 1 stands for preset bank 1, and the letter r on the second line
A-IJ, rA-2J, rA-3J, etc. indicate 1.2.3 of tone bank A, and both indicate areas where tone data is stored. Also, “■Z EPJ, rVZ
Characters such as BASSJ, rVZ TRUMPETJ, etc.
Indicates the tone name.

更に、第8図(d)〜(f)の、r 1 +l]Jは2
音色同時発音という意味で、口で囲まれた発音エリアの
音色バンク、音色名が表示されていることを示す。
Furthermore, in FIG. 8(d) to (f), r 1 +l]J is 2
In the sense of simultaneous sound pronunciation, this indicates that the sound bank and sound name of the sound production area surrounded by the mouth are displayed.

第8図(匂の1行目の「11111111」の文字は、
8つの発音エリア1〜8のPo1y数を、左から順に表
示している。なお、同図((至)は全てl Po1yを
示している。そして、口で囲まれた発音エリアの音色バ
ンク、音色名が表示されていることを示す。
Figure 8 (The characters “11111111” in the first line of the scent are
The Po1y numbers of eight sound production areas 1 to 8 are displayed in order from the left. In addition, the figure ((to) all indicates l Po1y. It also shows that the tone bank and tone name of the sound production area surrounded by the mouth are displayed.

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

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

状態が変化したキースイッチが新しく押された場合、5
902〜5905の各判別処理で、各々、第7図の各キ
ースイッチ18 (NORMAL MODE)、19 
(COMBINATION MODE)、20 (MU
LTl、POLY MODE)、21 (セレクトキー
)が押されたか否かを判別し、YESなら5907〜5
910の各処理を行い、上記いずれでもない場合は59
11で対応するスイッチ変更する処理を行う。なお、5
911の処理は本発明には直接は関係しないため、その
詳細は省略する。
If a key switch whose state has changed is pressed anew, 5
In each of the determination processes 902 to 5905, each key switch 18 (NORMAL MODE) and 19 in FIG.
(COMBINATION MODE), 20 (MU
LTl, POLY MODE), 21 Determine whether or not (select key) is pressed, and if YES, 5907~5
Perform each process in 910, and if none of the above is the case, return 59.
At step 11, processing for changing the corresponding switch is performed. In addition, 5
Since the process of 911 is not directly related to the present invention, its details will be omitted.

第7図18のNORMAL MODEの設定スイッチが
押された場合、3902から5907に進みNORMA
LMODE設定処理が行われる。ここでは、第1図の音
源9で発音されている楽音を全て消音し、NORMAL
MODEの専用RAM (第1図RAM8の一部)であ
る第10図(b)に示されるフラグNORMFGを読み
出すことにより、Key Board Mode、 G
uitar Mode又はWind Modeのいずれ
かを判別する。フラグNORMFGは、第10図(ロ)
に示されるように、bito〜4まで未使用で、bit
5.6.7は、Key BoardMode、、Gui
tar Mode及びWind Modeのときに各々
「1」にセットされ、各モードは排他的であるから、ど
れか1つのビットが必ずrlJになる。上記判別の後、
発音制御用RAM (第1図RAM8の一部)である第
10図(a)のフラグMODEFGに情報をセットした
後、第6図で既に説明したNORMALMODEの発音
態様の動作を行うために、第1図RAMB上の発音制御
に必要な特には図示しない記憶領域を全てイニシャライ
ズする。ここで、フラグMODEFGは、第10図(a
)に示すように1バイトのRAMであって、bito、
1.2は、各々NORMALMODE、 COMBIN
ATION MODE、 MULTl、POLY MO
DEであるときに「1」にセットされ、各モードは互い
に排他的であるから、3ビツトのうち「1」であるのは
必ず1つのビットで、かつどれかのビットは「1」にな
っている。従って、上記NORMAL MODE設定処
理で、フラグMODEFGのbito、1.2は、各々
’IJ  ’OJ  ’OJにセットされる。なお、フ
ラグMODEFGのbit3.4は未使用である。また
、bit5.6.7はKey Board Mode、
、GuitarMode及びWind Modeのとき
各々「1」にセットされ、これら各モードも排他的であ
るから、どれか1つのビットが必ず「1」になっている
When the NORMAL MODE setting switch in Figure 7 18 is pressed, the process advances from 3902 to 5907 and the
LMODE setting processing is performed. Here, all the musical tones being produced by the sound source 9 in Fig. 1 are muted, and the NORMAL
Key Board Mode, G
Determine either uitar mode or wind mode. The flag NORMFG is shown in Figure 10 (b).
As shown in the figure, bits from bit to 4 are unused.
5.6.7 is Key BoardMode, Gui
Each bit is set to "1" in tar mode and wind mode, and each mode is exclusive, so any one bit is always rlJ. After the above determination,
After setting information to the flag MODEFG in FIG. 10(a), which is the sound generation control RAM (part of the RAM 8 in FIG. 1. Initialize all storage areas (not shown) necessary for sound generation control on the RAMB. Here, the flag MODEFG is
) as shown in 1-byte RAM, bito,
1.2 are NORMALMODE and COMBIN, respectively.
ATION MODE, MULTl, POLY MO
It is set to ``1'' when the mode is DE, and each mode is mutually exclusive, so only one of the 3 bits is ``1'', and any bit is ``1''. ing. Therefore, in the NORMAL MODE setting process described above, bito and 1.2 of the flag MODEFG are set to 'IJ', 'OJ', and 'OJ', respectively. Note that bit 3.4 of the flag MODEFG is unused. Also, bit5.6.7 is Key Board Mode,
, GuitarMode, and Wind Mode, and each of these modes is exclusive, so one of the bits is always set to "1".

次に、第7図19のCOMBINATION MODE
の設定スイッチが押された場合、第9図の3903から
3908に進みCOMBINATION MODE設定
処理が行われる。ここでは、第1図の音源9で発音され
ている楽音を全て消音し、COMBINATION M
ODEの専用RAM(第1図RAM8の一部)である第
10図(C)に示されるフラグCOMBFGを読み出し
て、Key BoardModeSGuitar Mo
de又はWind Modeのいずれかを判別する。フ
ラグCOMBFGは、第10図(C)に示されるように
、第10図(a)のフラグNORMFGと全く同様の構
成である。上記判別の後、前記NORMAL MODE
設定処理と同様、第10図(a)のフラグMODEFG
に情報をセットした後、第6図で既に説明したCOMB
■−NATION MODEの発音態様の動作を行うた
めに、第1図RAMB上の発音制御に必要な特には図示
しない記憶領域を全てイニシャライズする。
Next, COMBINATION MODE in Figure 7 19
When the setting switch is pressed, the process proceeds from 3903 to 3908 in FIG. 9, and the COMBINATION MODE setting process is performed. Here, all the musical tones being produced by the sound source 9 in FIG. 1 are muted, and the COMBINATION M
Read out the flag COMBFG shown in FIG. 10 (C), which is a dedicated RAM of ODE (part of RAM 8 in FIG. 1), and set Key BoardModeSGuitarMo
Determine either de or Wind Mode. The flag COMBFG, as shown in FIG. 10(C), has exactly the same configuration as the flag NORMFG in FIG. 10(a). After the above determination, the NORMAL MODE
Similar to the setting process, the flag MODEFG in FIG. 10(a)
After setting the information to COMB, which was already explained in Figure 6.
- In order to perform the operation in the sound generation mode of NATION MODE, all storage areas (not shown) necessary for sound generation control on the RAMB in FIG. 1 are initialized.

続いて、第7図20のMULTl、POLY MODE
の設定スイッチが押された場合、第9図の5904から
5909に進みMULTl、POLY MODE設定処
理が行われる。ここでは、第1図の音源9で発音されて
いる楽音を全て消音し、第10図(a)のフラグMOD
EFGのbitoS 1.2を各々「0」 「0」 「
l」に、bit5.6.7を各々「l」 「0」 「0
」にセットする。これは、MULTl、POLY MO
DEでは第6図で既に説明したように、Key Boa
rd Modeに固定されるためである。
Next, MULTl and POLY MODE in Figure 7 20
When the setting switch is pressed, the process proceeds from 5904 to 5909 in FIG. 9, where MULT1 and POLY MODE setting processing is performed. Here, all the musical tones being produced by the sound source 9 in FIG. 1 are muted, and the flag MOD in FIG.
Set EFG's bitoS 1.2 to "0", "0" and "
l”, and set bits 5, 6, and 7 to “l”, “0”, and “0” respectively.
”. This is MULTl, POLY MO
In DE, as already explained in Fig. 6, Key Boa
This is because it is fixed to rd Mode.

一方、第7図21のセレクトキーが押された場合、第9
図の5905から5910に進みに、G、W変更処理が
行われる。この処理は、MLILTl、POLYMOD
Eが選択されている場合には、何も処理を行わず終了す
る。NORMAL MODEが選択されている場合には
、まず、第10図ら)のフラグNORMFGにおいて、
bit5が「1」のとき、bit6が「1」のとき、b
iL7が「1」のときには、各々bit5.6.7を「
O」「l」「0」、「0」「0」「1」、rl、r□、
r□、にセットした後に、前記5907と同様のNOR
MAL MODE設定処理を実行する。
On the other hand, if the select key in Fig. 7 21 is pressed, the 9th
Proceeding from 5905 to 5910 in the figure, G and W change processing is performed. This process is performed by MLILTl, POLYMOD
If E is selected, the process ends without performing any processing. When NORMAL MODE is selected, first, in the flag NORMFG in Fig. 10 et al.
When bit5 is “1”, when bit6 is “1”, b
When iL7 is “1”, each bit5.6.7 is set to “1”.
O” “l” “0”, “0” “0” “1”, rl, r□,
After setting r□, NOR similar to the above 5907
Executes MAL MODE setting processing.

COMBINATION MODEが選択されている場
合には、まず、第10図(C)のフラグCOMBFGに
おいて、bit5が「1」のとき、bit6が「1」の
とき、bit7が「1」のときには、各々bit5.6
.7を「0」「1」「0」、「0」「0」「1」、「1
」 「0」 「0」にセットした後、前記3908と同
様のCOMBINATION MODE設定処理を実行
する。
When COMBINATION MODE is selected, first, in the flag COMBFG in FIG. 10(C), when bit5 is "1", when bit6 is "1", and when bit7 is "1", bit5 .6
.. 7 as “0”, “1”, “0”, “0”, “0”, “1”, “1”
” “0” After setting to “0”, the COMBINATION MODE setting process similar to 3908 above is executed.

MIDI  IN   几   の 以上のようにして、第5図8503でスイッチ変化処理
が行われ演奏モードが設定された後、第1図のMIDI
回路5を介して外部機器からNote onloff 
、 Pitch Bender、 After Tou
ch 、音色チェンジの各MIDIコマンドが入力され
たときの動作を以下に説明する。なお、本発明に特に関
連するのは、NORMAL MODEでKey Boa
rd Modeが選択されているときに、Note o
nコマンドが入力した場合の処理動作であり、後述する
ようにステレオの左右チャネルに楽音を振り分けながら
発音動作を行うことを特徴とする。
MIDI IN 几 After the switch change processing is performed at 8503 in FIG. 5 and the performance mode is set as described above, the MIDI IN in FIG.
Note onloff from external equipment via circuit 5
, Pitch Bender, After Tou
The operation when the MIDI commands ch and tone change are input will be described below. Note that the Key Boa mode in NORMAL MODE is particularly relevant to the present invention.
When rd Mode is selected, Note o
This is a processing operation when the n command is input, and is characterized by performing a sound generation operation while distributing musical tones to the left and right stereo channels, as will be described later.

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

同図においては、51101〜51104において、各
々Note onloff 、 Pitch Bend
er、 After Touch又は音色チェンジの何
れのコマンドであるかを判別している。上記コマンド以
外でコントロールチェンジコマンドの場合は、後述する
ように一定周期毎の割り込みに基づくコントロールデー
タの変化処理で処理されるため、31113の判別によ
りMIDIIN処理では何も行わずに処理を終了する。
In the same figure, Note onloff and Pitch Bend are shown in 51101 to 51104, respectively.
It is determined whether the command is er, After Touch, or tone change. If the command is a control change command other than the above command, as will be described later, it is processed by control data change processing based on interrupts at regular intervals, so the MIDIIN processing ends without performing anything according to the determination at 31113.

更に、これら以外のコマンドの場合は、S 1114で
無効にするものと有効なものとを判別した後、有効なも
ののコマンドの処理を実行する。該当するコマンドとし
ては、例えばMIDI規格に基づくエクスクル−シブメ
ツセージ・コモンメツセージ・リアルタイムメツセージ
等のMIDIチャネルに関係ないシステムメツセージが
ある。
Furthermore, in the case of commands other than these, it is determined in step S1114 which ones are invalidated and which ones are valid, and then the processing of the valid commands is executed. Applicable commands include system messages that are not related to the MIDI channel, such as exclusive messages, common messages, and real-time messages based on the MIDI standard.

続いて、Note onloff 、 Pitch B
ender、 AfterTouch又は音色チェンジ
の何れかのコマンドが入力した場合について説明する。
Next, Note onloff, Pitch B
A case where any one of the commands ender, AfterTouch, or tone change is input will be described.

なお、以下の説明は、既に「本実施例における発音態様
の概要」の項で第6図を用いて説明した第1〜第5の各
演奏モードでの概要動作に対応している。
Note that the following explanation corresponds to the general operations in each of the first to fifth performance modes already explained in the section "Summary of sound production mode in this embodiment" using FIG. 6.

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

まず、本発明に特に関連する第1演奏モードでNote
 on10ffコマンドが入力した場合は、第11図3
1101の判別がY E S−となり、51105のチ
ャネル判断lが実行される。チャネル判断1の詳細を第
12図に示す。第1演奏モードの場合、第12図312
01、S 1203の判別がNOとなり、S 1205
の判別処理が実行されることにより、入力したコマンド
に指定されているMIDIチャネル(以下、単にMID
Iチャネルと呼ぶ)が、固定された所定の[Drチャネ
ル(以下、固定チャネルと呼ぶ)に等しい場合のみ、S
 1205の判別がYESとなり、第11図31106
のNote on10ff処理に進む。この処理を第1
4図に示す。第1演奏モードの場合、S 1401、S
 1402の判別がNoとなり、S 1403に進む。
First, note in the first performance mode that is particularly relevant to the present invention.
If the on10ff command is input, Figure 11 3
The determination at 1101 becomes YES-, and the channel determination I at 51105 is executed. Details of channel determination 1 are shown in FIG. In the case of the first performance mode, Fig. 12 312
01, the determination in S 1203 is NO, and S 1205
By executing the determination process, the MIDI channel (hereinafter simply referred to as MID) specified in the input command is
S
The determination in 1205 is YES, and 31106 in FIG.
Proceed to the Note on10ff process. This process is the first
Shown in Figure 4. In the case of the first performance mode, S1401, S
The determination in step 1402 is No, and the process advances to step S1403.

そして、コマンドがNote onコマンドの場合はS
 1414に進み、更に、S 1414の判定がYES
、続く81415の判定もYESとなって、S 141
6の左右振り分は発音処理に進む。
If the command is a Note on command, select S
Proceed to 1414, and further, if the determination in S 1414 is YES
, the subsequent determination of 81415 is also YES, and S 141
6 left and right portions proceed to sound generation processing.

ここで本実施例では、第1図の音源9は、時分割処理に
より8音ポリフオニツクで並列して発音可能であり、第
19図に示すように8つのモジュールを有する。すなわ
ち、各モジュールは上記8音に対応する各時分割タイミ
ングを意味する。更に、モジュール1〜4の出力は1つ
に累算されてステレオの右チャネルの楽音(同図R)と
して出力され、モジュール5〜8の出力も1つに累算さ
れてステレオの左チャネルの楽音(同図L)として出力
される。そして、本実施例では、31416においてN
ote onコマンドによって指定されるノートナンバ
ーが偶数か奇数かによって左右チャネルが入れ替わって
発音が行われることが大きな特徴である。第18図に第
14図31416の左右振り分は発音処理の詳細を示す
In this embodiment, the sound source 9 in FIG. 1 is capable of producing sounds in parallel in eight-note polyphony through time-sharing processing, and has eight modules as shown in FIG. 19. That is, each module means each time division timing corresponding to the above eight sounds. Furthermore, the outputs of modules 1 to 4 are accumulated into one and output as the stereo right channel musical tone (R in the figure), and the outputs of modules 5 to 8 are also accumulated into one and output as the stereo left channel tone. It is output as a musical tone (L in the same figure). In this example, at 31416, N
A major feature is that the left and right channels are switched and sound is produced depending on whether the note number specified by the ote on command is an even number or an odd number. In FIG. 18, the left and right portions of 31416 in FIG. 14 show details of the sound generation process.

まず、31801では、Note on コア 7ドに
よッテ指定されるノートナンバーが偶数か奇数かが判別
される。今、Note onコマンドはMIDIコマン
ドとして入力するが、MIDIコマンドが入力した場合
、既に説明したようにMIDI回路5からの割り込みに
基づいて、第3図の動作フローチャートが実行され、M
IDI回路5で受信されたMIDIコマンドすなわちN
ote onコマンドはRAM8に取り込まれている。
First, in 31801, it is determined whether the note number specified by Note on Core 7 is an even number or an odd number. Now, the Note on command is input as a MIDI command, but when a MIDI command is input, the operation flowchart in FIG. 3 is executed based on the interrupt from the MIDI circuit 5 as described above, and the
The MIDI command received by the IDI circuit 5, namely N
The ote on command is stored in RAM8.

具体的には、Note onすべきノートナンバーがR
AMB内に記憶される。そして、このノートナンバーが
偶数か奇数かは、RAM8に記憶されているノートナン
バーの最下位ビットが、「1」か「0」かによって判別
することができる。
Specifically, the note number to be Note on is R.
Stored in AMB. Whether this note number is an even number or an odd number can be determined based on whether the least significant bit of the note number stored in the RAM 8 is "1" or "0".

上記判別の結果、ノートナンバーが偶数であった場合に
は、S 1802〜S 1807の処理で基本的に左チ
ャネルに発音させる処理を行い、ノートナンバーが奇数
であった場合には、31808〜31813の処理で基
本的に右チャネルに発音させる処理を行う。
As a result of the above determination, if the note number is an even number, processing is performed in steps S1802 to S1807 to basically make the left channel sound, and if the note number is an odd number, the steps 31808 to 31813 are performed. This process basically causes the right channel to produce sound.

ノートナンバーが偶数であった場合には、まず、318
02において、第19図の音源(第1図の音源9に相当
、以下同じ)内の左チャネルに対応するモジュール5〜
8のうち発音されていないモジュールがあれば、そのモ
ジエール番号(5〜8)を第1図のCPUI内の特には
図示しないアキュムレータに書き込み、なければアキュ
ムレータを0にする。
If the note number is an even number, first, 318
In 02, modules 5 to 5 corresponding to the left channel in the sound source in FIG. 19 (corresponding to sound source 9 in FIG. 1, the same applies hereinafter)
If there is a module out of 8 that is not being sounded, its module number (5 to 8) is written into an accumulator (not shown) in the CPUI of FIG. 1, and if there is no module, the accumulator is set to 0.

続<31803では、上記アキュムレータの内容により
、左チャネルへの振り分けが可能か否かを判別し、可能
ならば31804においてアキュムレータの内容に対応
した音源のモジュールに発音指示を行う。
At step 31803, it is determined whether distribution to the left channel is possible based on the contents of the accumulator, and if possible, at step 31804, a sound generation instruction is issued to the sound source module corresponding to the contents of the accumulator.

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

そして、31806で上記アキエムレータの内容により
、右チャネルへの振り分けが可能か否かを判別し、可能
ならば31804においてアキュムレータの内容に対応
した音源のモジュールに発音指示を行う。
Then, in 31806, it is determined whether distribution to the right channel is possible based on the contents of the accumulator, and if possible, in 31804, a sound generation instruction is given to the sound source module corresponding to the contents of the accumulator.

S 1806の判別により右チャネルへの振り分けも不
可能の場合すなわちアキュムレータの内容が0の場合は
、31807に進み、第19図の音源内の左チャネルに
対応するモジュール5〜8のうち、最も最初に発音され
たモジュールに発音指示を行う。
If distribution to the right channel is also not possible as determined in S1806, that is, if the contents of the accumulator are 0, the process proceeds to 31807, and the first one of modules 5 to 8 corresponding to the left channel in the sound source in FIG. Gives pronunciation instructions to the module that is pronounced.

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

上記動作に対して、ノートナンバーが奇数であった場合
には、S 1808〜S 1813の処理で右チャネル
に発音させる処理を行うが、これらは前記31802〜
31807の処理と左右が逆になるだけで、全く同様の
処理である。
Regarding the above operation, if the note number is an odd number, the processing of S1808 to S1813 causes the right channel to sound.
The processing is exactly the same as that of 31807, except that the left and right sides are reversed.

以上の処理により、Note onコマンドが入力する
毎に、同コマンドで指定されるノートナンバーが偶数か
奇数かによって左右チャネルに別れて楽音が発生される
Through the above processing, each time a Note on command is input, musical tones are generated for the left and right channels depending on whether the note number specified by the command is an even number or an odd number.

次に、第14図のNote on10ff処理の314
03に戻り、入力したコマンドがNote offコマ
ンドの場合はS 1405に進み、音源9で現在発音中
のものでノートナンバー(以下、Note No、と呼
ぶ)が等しい音を消音させる。
Next, 314 of the Note on10ff process in Figure 14
Returning to step 03, if the input command is a note off command, the process advances to step S1405, where the notes currently being produced by the sound source 9 and having the same note number (hereinafter referred to as Note No.) are muted.

次に、第1演奏モードでPitch Benderコマ
ンドが入力した場合、第11図31101の判別がNO
となった後、31102の判別がYESとなり、311
07のチャネル判断1が実行される。これは前記Not
eon10ff :2 ?ンドの場合と同様、第12図
S 1201、S 1203の判別がNoとなった後、
MIDIチャネルと固定チャネルが等しい場合のみS 
1205の判別がYESとなり、第11図31108の
Pitch Bender処理に進む。この処理を第1
5図に示す。第1演奏モードの場合、S 1501、S
 1502の判別がNOとなり、S 1503に進む。
Next, when the Pitch Bender command is input in the first performance mode, the determination in 31101 in FIG. 11 is NO.
After that, the determination of 31102 becomes YES, and 311
Channel determination 1 of 07 is executed. This is the above-mentioned Not
eon10ff :2? As in the case of the command, after the determinations in S 1201 and S 1203 in FIG. 12 are No,
S only if MIDI channel and fixed channel are equal
The determination at 1205 is YES, and the process proceeds to Pitch Bender processing at 31108 in FIG. 11. This process is the first
It is shown in Figure 5. In the case of the first performance mode, S 1501, S
The determination in step 1502 is NO, and the process advances to step S1503.

ここでは、発音可能な8音全てに同時にピッチベンダー
のデータを反映させる。
Here, the pitch bender data is reflected on all eight sounds that can be produced at the same time.

第1演奏モードでAfter Touchコマンドが入
力した場合、第11図51101及び31102の判別
がNOとなった後、51103の判別がYESとなり、
51109のチャネル判断2が実行される。この処理を
第13図に示す。すなわち、MIDIチャネルと固定チ
ャネルが等しい場合のみS 1301の判別がYESと
なり、第11図5IIIOのAfter Touch処
理に進む。この処理を第16図に示す。第1演奏モード
の場合、S 1601及びS 1602(7)判別がN
oとな#)、S 1603に進む。ここでは、キーボー
ド楽器に適したアフタータッチ処理を行う。具体的には
、入力したアフタータッチのデータを第1図のROM7
に記憶されているキーボード楽器に適した変換カーブに
基づいて楽音の音量・音色のパラメータに変換し、音源
9にそのパラメータを転送して音源の特性を変更させる
When the After Touch command is input in the first performance mode, after the determinations at 51101 and 31102 in FIG. 11 become NO, the determination at 51103 becomes YES,
Channel determination 2 of 51109 is executed. This process is shown in FIG. That is, only when the MIDI channel and the fixed channel are equal, the determination in S1301 becomes YES, and the process proceeds to After Touch processing in FIG. 5IIIO. This process is shown in FIG. In the case of the first performance mode, S 1601 and S 1602 (7) discrimination is N.
otona#), proceed to S1603. Here, we perform aftertouch processing suitable for keyboard instruments. Specifically, the input aftertouch data is stored in ROM7 in Figure 1.
The parameters of the volume and timbre of musical tones are converted based on the conversion curve suitable for the keyboard instrument stored in the keyboard, and the parameters are transferred to the sound source 9 to change the characteristics of the sound source.

第1演奏モードで音色チェンジコマンドが入力した場合
、第11図S 1101〜S 11030)判別がN。
When a tone change command is input in the first performance mode, the determination is N (S1101 to S11030 in FIG. 11).

となった後、51104の判別がYESとなり、5ll
11のチャネル判断2が実行される。すなわち、前記A
fter Touchコマンドの場合と同様、MIDI
チャネルと固定チャネルが等しい場合のみ第13図31
301の判別がYESとなり、第11図31112の音
色チェンジ処理に進む。この処理を第17図に示す。第
1演奏モードの場合、S 1701の判別がNOとなり
S 1702に進み、発音中の音が全て消音される。続
いてS 1703で第1図のRAMB内の発音制御用の
RA M 9M域をイニシャライズし、更に、5170
4で音源9に入力した音色データを転送して、音源9で
発音すべき音色を切り替えさせる。
After that, the determination of 51104 becomes YES, and 5ll
11 channel decisions 2 are performed. That is, the above A
As with the fter Touch command, MIDI
Figure 13 31 only if the channel and the fixed channel are equal.
The determination at step 301 is YES, and the process proceeds to tone color change processing at step 31112 in FIG. This process is shown in FIG. In the case of the first performance mode, the determination in S1701 is NO, and the process advances to S1702, where all the sounds being produced are muted. Next, in step S1703, the RAM 9M area for sound generation control in RAMB in FIG. 1 is initialized, and then in step S1703,
In step 4, the tone data inputted to the sound source 9 is transferred, and the tone to be produced by the sound source 9 is switched.

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

第2演奏モードでNote on10ffコマンドが入
力した場合、第11図31101の判別がYESとなり
、51105のチャネル判断1が実行される。すなわち
、第12図31201の判別がNOとなった後、S 1
203の判別がYESとなり、S 1204の判別処理
が実行されることにより、MIDIチャネルが固定チャ
ネルから該固定チャネル+5チヤネルまでの6チヤネル
の範囲内に入っている場合のみ、S 1204の判別が
YESとなり、第11図31106すなわち第14図の
Note on10ff処理に進む。第2演奏モードの
場合、S 1401の判別がNoとなった後、S 14
02の判別がYESとなり、S 1409に進む。そし
て、コマンドがNote onコマンドの場合はS 1
411に進み、まず、第1図の音源9のMIDIチャネ
ルと等しいチャネルが割り当てられている発音中のモジ
ュールがある場合、それを消音させる。なお、チャネル
の判別は後述する51413で第1図のRAMB内に記
憶されるチャネルデータに基づき行われる。次に、51
412で音源9の空モジュールに対して発音開始を指示
する。更に、S 1413でRAM8に発音を開始した
モジュールとMIDIチャネルを記憶させる。以上のよ
うに、同一チャネルの音を消音させてから新たに発音開
始を行わせるのは、ギター等の弦楽器より入力されるコ
マンドのMIDIチャネルが弦毎に独立に設定されてい
るため、同−弦の音が複数同時に発音されることはあり
得ないためである。なお、余韻を残すため消音は適当な
エンベロープを付加させて行ってもよい。
When the Note on10ff command is input in the second performance mode, the determination at 31101 in FIG. 11 becomes YES, and channel determination 1 at 51105 is executed. That is, after the determination in FIG. 12 31201 becomes NO, S 1
If the determination in S 203 is YES and the determination process in S 1204 is executed, the determination in S 1204 is YES only if the MIDI channel is within the range of 6 channels from the fixed channel to the fixed channel + 5 channels. Then, the process proceeds to 31106 in FIG. 11, that is, the Note on 10ff process in FIG. 14. In the case of the second performance mode, after the determination in S1401 becomes No, S14
The determination in step 02 is YES, and the process advances to S1409. Then, if the command is a Note on command, S1
Proceeding to step 411, first, if there is a module currently producing sound to which the same channel as the MIDI channel of the sound source 9 in FIG. 1 is assigned, it is muted. Note that the channel determination is performed in step 51413, which will be described later, based on channel data stored in the RAMB of FIG. Next, 51
At step 412, an empty module of the sound source 9 is instructed to start generating sound. Furthermore, in S1413, the module and MIDI channel that started generating sound are stored in the RAM 8. As mentioned above, the reason why the sound of the same channel is muted and then a new sound is started is because the MIDI channel of the command input from a stringed instrument such as a guitar is set independently for each string. This is because it is impossible for multiple string sounds to be sounded at the same time. In addition, in order to leave a lingering sound, the sound may be muted by adding an appropriate envelope.

一方、コマンドがNote offコマンドの場合は、
S 1410に進み、音源9で現在発音中のものでMI
DIチャネルが等しい音を消音させる。
On the other hand, if the command is a Note off command,
Proceed to S1410 and MI with the sound source 9 currently producing.
Mute sounds with the same DI channel.

第2演奏モードでPitch Benderコマンドが
入力した場合、第11図31101の判別がNOとなっ
た後、51102の判別がYESとなり、31107の
チャネル判断1が実行される。これは、前記Note 
on10ffコマンドの場合と同様、第12図3120
1の判別がNOとなった後、S 1203の判別がYE
Sとなり、MIDIチャネルが固定チャネルから該固定
チャネル+5チヤネルまでの6チヤネルの範囲内に入っ
ている場合のみ、S 1204の判別がYESとなり、
第11図31108すなわち第15図のPitch B
ender処理に進む。第2演奏モードの場合、S 1
501の判別がNOとなった後、S 1502の判別が
YESとなり、S 1504に進む。ここでは、以前に
発音したチャネル(発音中のチャネル)とMIDIチャ
ネルが等しい音に対してのみピッチベンダーのデータを
反映させる。すなわち、例えばチョーキング等がなされ
た弦に対応する音にのみ、独立してピッチベンドがかか
ることになる。
When a Pitch Bender command is input in the second performance mode, after the determination at 31101 in FIG. 11 becomes NO, the determination at 51102 becomes YES, and channel determination 1 at 31107 is executed. This is the same as the above Note
As with the on10ff command, 3120 in Figure 12
After the determination in S1203 is NO, the determination in S1203 is YE.
S, and 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,
Figure 11 31108, ie Pitch B in Figure 15
Proceed to ender processing. In the case of the second performance mode, S 1
After the determination in S 501 becomes NO, the determination in S 1502 becomes YES and the process advances to S 1504. Here, the pitch bender data is reflected only for sounds whose MIDI channel is the same as the previously produced channel (currently producing channel). In other words, pitch bending is applied independently only to the notes corresponding to the strings that have been bent, for example.

第2演奏モードでAfter Touchコマンドが入
力した場合、第11図S 1101及び51102の判
別がNOとなった後、51103の判別がYESとなり
、51109のチャネル判断2すなわち第13図が実行
され、前記第1演奏モードでAfter Touchコ
マンドが入力した場合と全く同様に、MIDIチャネル
と固定チャネルが等しい場合のみS 1301の判別が
YESとなり、第11図S 1110のAfter T
oucl+処理すなわち第16図のAfter Tou
ch処理に進む。すなわち第2演奏モードの場合、Af
ter Touchコマンドに対しては前記Note 
on10ffコマンド又はPi tchBenderコ
マンドとは異なり、6チヤネルのうち最低弦チャネルの
固定された所定のMIDIチャネルが指定されている場
合のみ該コマンドを受は付けるように動作する。第16
図でのAfter Touch処理は第1演奏モードの
場合と同様、S 1601→S 1602→S 160
3と進んでキーボード楽器に適したアフタータッチ処理
が行われるが、この場合、固定チャネルから+5したチ
ャネルに対応する6弦分のチャネルに対して同時に上記
コマンドが実行される。
When the After Touch command is input in the second performance mode, after the determinations in S 1101 and 51102 in FIG. Just like when the After Touch command is input in the first performance mode, the determination in S1301 becomes YES only when the MIDI channel and the fixed channel are equal, and the After Touch command in S1110 in FIG.
oucl+ processing, that is, After Tou in Figure 16
Proceed to ch processing. In other words, in the case of the second performance mode, Af
For the ter Touch command, see the above Note.
Unlike the on10ff command or the PitchBender command, this command is accepted only when a fixed predetermined MIDI channel, which is the lowest string channel among the six channels, is specified. 16th
The After Touch processing in the figure is the same as in the first performance mode, S 1601 → S 1602 → S 160
3, aftertouch processing suitable for keyboard instruments is performed, but in this case, the above command is simultaneously executed for channels for six strings corresponding to channels +5 from the fixed channel.

これにより、1弦分に対するAfter Touchコ
マンドの転送で、6弦に対して同時にアフタータッチの
効果をかけることができる。
Thereby, by transferring the After Touch command for one string, it is possible to simultaneously apply the aftertouch effect to six strings.

第2演奏モードで音色チェンジコマンドが入力した場合
、第11図5IIOI〜S 1103の判別がN。
When a tone change command is input in the second performance mode, the determination in steps 5IIOI to S 1103 in FIG. 11 is N.

となった後、51104の判別がYESとなり、5l1
11のチャネル判断2すなわち第13図が実行され、前
記After Touchコマンドの場合と同様、MI
DIチャネルと固定チャネルすなわち最低弦チャネルが
等しい場合のみ第13図31301の判別がYESとな
って該コマンドを受は付け、第11図51112の音色
チェンジ処理すなわち第17図に進む。ここでは、第1
演奏モードの場合と同様、S 1701→51702と
進んで発音中の音が全て消音され、S 1703で第1
図のRAMB内の発音制御用のRA M 領域をイニシ
ャライズし、S 1704で音源9に人力した音色デー
タを転送して、音源9で発音すべき音色を切り替えさせ
る。この場合も、固定チャネルから+5したチャネルに
対応する6弦分のチャネルに対して同時に上記コマンド
が実行されることにより、1弦分に対するAfter 
Touchコマンドの転送で、6弦に対して同時に音色
チェンジが行える。
After that, the determination of 51104 becomes YES, and 5l1
11 channel determination 2, that is, FIG. 13, is executed, and as in the case of the After Touch command, the MI
Only when the DI channel and the fixed channel, that is, the lowest string channel are equal, the determination at 31301 in FIG. 13 becomes YES, the command is accepted, and the process proceeds to the tone change process at 51112 in FIG. 11, ie, FIG. 17. Here, the first
As in the performance mode, all the notes being sounded are muted in steps S 1701 → 51702, and the first note is muted in S 1703.
The RAM area for sound generation control in the RAMB shown in the figure is initialized, and in step S1704, the manually inputted tone data is transferred to the sound source 9, and the tone to be produced by the sound source 9 is switched. In this case as well, the above command is executed simultaneously for 6 strings of channels corresponding to the channel +5 from the fixed channel, so that the After for 1 string is
By transferring Touch commands, you can change the tone of 6 strings at the same time.

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

第3演奏モードでNote on10ffコマンドが入
力した場合は、第1演奏モードすなわちKey Boa
rdModeが選択されている場合と同様、第11図5
l101の判別がYESとなり、31105のチャネル
判断1が実行され、第12図でS 1201、S 12
03の判別がNoとなり、更にMIDIチャネルが固定
チャネルに等しい場合のみS 1205の判別がYES
となって、第11図31106すなわち第14図のNo
te on10ff処理に進む。第14図では、第3演
奏モードの場合、S 1401、S 1402の判別が
NOとなり、S 1403に進む。そして、コマンドが
Note onコマンド゛の場合はS 1414に進む
がこの判別はNoとなるため、S 1404に進む。そ
してここでは、第1図の音源9の発音中でない空モジュ
ールに対して発音開始を指示する。なお、この場合は前
記Key Board Modeの場合と異なり、左右
チャネルへの振り分けは行わない。
If the Note on10ff command is input in the third performance mode, the Key Boa
As in the case where rdMode is selected, FIG.
The determination in l101 is YES, and channel determination 1 in 31105 is executed, and in FIG.
Only when the determination of 03 is No and the MIDI channel is equal to the fixed channel, the determination of S1205 is YES.
31106 in Fig. 11, that is, No. 31106 in Fig. 14.
Proceed to te on10ff processing. In FIG. 14, in the case of the third performance mode, the determinations in S1401 and S1402 are NO, and the process advances to S1403. If the command is a Note on command, the process advances to S1414, but since this determination is No, the process advances to S1404. Here, the empty module of the sound source 9 in FIG. 1 which is not currently producing sound is instructed to start producing sound. Note that in this case, unlike the case of the above-mentioned Key Board Mode, distribution to the left and right channels is not performed.

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

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

第3演奏モードでAfter Touchコマンドが入
力した場合は、第1演奏モードと同様に第11図511
03− S 1109− S 1110と進むが、第1
6図で51601の判別がNoとなった後はS 160
2の判別がYESとなる。これによりS 1604に進
み、管楽器特有のアフタータッチ処理が行われる。具体
的には、入力したアフタータッチのデータを第1図のR
OM7に記憶されている管楽器に適した変換カーブある
いは変換アルゴリズムに基づいて楽音の音量・音色のパ
ラメータに変換し、音源9にそのパラメータを転送して
音源の特性を変更させる。これにより、アフタータッチ
により音量等を制御するという管楽器特有の制御形態に
おいて、音の立ち上がり時にアフタータッチのデータが
必ず小さ(なるという動作に自然に対応することができ
る。
If the After Touch command is input in the third performance mode, the command 511 in Fig. 11 is input as in the first performance mode.
03-S 1109-S 1110, but the first
In Figure 6, after the determination of 51601 becomes No, S 160
The determination in step 2 is YES. The process then proceeds to S1604, where aftertouch processing unique to wind instruments is performed. Specifically, the input aftertouch data is converted to R in Figure 1.
Based on a conversion curve or conversion algorithm suitable for the wind instrument stored in the OM 7, the volume and timbre parameters of musical tones are converted, and the parameters are transferred to the sound source 9 to change the characteristics of the sound source. As a result, in a control mode unique to wind instruments in which the volume and the like are controlled by aftertouch, it is possible to naturally cope with the operation in which the aftertouch data always becomes small (becomes small) at the beginning of the sound.

以上のNORMAL MODEに対し、第4演奏モード
であるCOMBINATION MODEでは、2音色
が同時に発音され、各音色でのPo1y数が4音になる
以外は、第11図〜第17図の各動作フローチャートで
は、前記NORMAL MODEの第1〜第3の各演奏
モードの場合と同様の処理が行われる。但し、Key 
BoardModeでNote on10fコマンドが
入力した場合は、第14図31414の判別がYESと
なった後、S 1415の判別はNOとなるため、左右
振り分は発音処理は行わずに、S 1404で通常の発
音処理を行う。また、COMBINAT−1ON MO
DEのGuiLarModeでNote on10fコ
マンドが入力した場合は、各音色で6弦に対して4音P
o1yで動作するため、後から入力したノートオンによ
り最も古く発音されている楽音データが消音されながら
発音制御が行われることになる。
In contrast to the above NORMAL MODE, in the fourth performance mode, COMBINATION MODE, two tones are sounded at the same time, and the number of Po1y in each tone is four. , the same processing as in each of the first to third performance modes of NORMAL MODE is performed. However, the key
When the Note on10f command is input in BoardMode, the determination in S1415 becomes NO after the determination in 31414 in FIG. Performs pronunciation processing. Also, COMBINAT-1ON MO
If the Note on10f command is input in GUILarMode of DE, each tone will have 4 notes P for 6 strings.
Since it operates in o1y, the sound generation control is performed while the oldest sound data is muted by the later inputted note-on.

最後に第5演奏モードとしてMtlLTl、POLY 
MODEが選択されている場合の動作について説明する
Finally, the fifth performance mode is MtlLTl, POLY.
The operation when MODE is selected will be explained.

この場合は、各処理がMIDIチャネルと等しいチャネ
ルが割り当てられている発音エリアに音に対してのみ実
行される以外は、前記第1演奏モードの場合と全く同様
に動作する。この場合、発音エリアとは、例えば第1発
音エリアはチャネル番号が1で2音Po1y、第2発音
エリアはチャネル番号が2で3音Po1y、第3発音エ
リアはチャネル番号が3で3音Po1yというように、
各MIDIチャネルに対応して独立した楽器として振る
舞うよう割り当てられた領域をいう。
In this case, the operation is exactly the same as in the first performance mode, except that each process is executed only for sounds in the sound generation area to which a channel equal to the MIDI channel is assigned. In this case, the sound generation areas are, for example, the first sound generation area has channel number 1 and 2 sounds Po1y, the second sound generation area has channel number 2 and 3 sound Po1y, and the third sound generation area has channel number 3 and 3 sound Po1y. As in,
This refers to an area allocated to each MIDI channel so that it behaves as an independent musical instrument.

第5演奏モードでNote on10ffコマンドが入
力した場合、第11図51101→51105と進み、
第12図31201の判別がYESとなり、S 120
2の判別処理が実行されることにより、MIDIチャネ
ルが割り当てられている発音エリアのPo1y数がOで
ないときに限り、判別がYESとなり、第11図5l1
06のNote on10ff処理すなわち第14図に
進む。
When the Note on10ff command is input in the 5th performance mode, the process proceeds from 51101 to 51105 in Figure 11.
The determination in FIG. 12 31201 is YES, and S 120
By executing the determination process in step 2, the determination becomes YES only when the Po1y number of the sound generation area to which the MIDI channel is assigned is not O, and the result is 5l1 in FIG.
The process proceeds to the Note on10ff process of 06, ie, FIG.

ここでは、S 1401の判別がYESとなり、MID
Iチャネルが割り当てられている発音エリアに対しての
み、前記第1演奏モードのS 1403〜S 1405
の処理に対応する3 1406〜3140Bの処理が実
行される。
Here, the determination in S1401 is YES, and the MID
S1403 to S1405 of the first performance mode are applied only to the sound generation area to which the I channel is assigned.
Processes 3 1406 to 3140B corresponding to the process 1406 to 3140B are executed.

第5演奏モードでPitch Benderコマンドが
入力した場合、第11図S 1101→51102→5
1107と進み、前記Note on10ffコマンド
の場合と全く同様のチャネル判断lが実行され、第11
図31108のPitch Bender処理すなわち
第15図に進む。ここでは、S 1501の判別がYE
Sとなって、MIDIチャネルが割り当てられている発
音エリアに対してのみ、前記第1演奏モードの3150
3の処理に対応するS 1505の処理が実行される。
When the Pitch Bender command is input in the 5th performance mode, S 1101 → 51102 → 5 in Figure 11
1107, the same channel judgment l as in the case of the Note on10ff command is executed, and the 11th
The process proceeds to the Pitch Bender process in FIG. 31108, that is, FIG. Here, the determination of S1501 is YE.
3150 in the first performance mode only for the sound generation area to which the MIDI channel is assigned.
The process of S1505 corresponding to the process of 3 is executed.

第5演奏モードでAfter Touchコマンドが入
力した場合、第11図51101→51102→311
03→51109と進み、第13図のチャネル判断2が
前記第1演奏モードの場合と全く同様に実行される。す
なわち、MIDIチャネルと各発音エリアのいずれかの
固定チャネルが等しい場合のみS 1301の判別がY
ESとなり、第11図5IIIOのAfter Tou
ch処理すなわち第16図に進む。ここでは、5160
1の判別がYESとなって、MIDIチャネルが割り当
てられている発音エリアに対してのみ、前記第1演奏モ
ードの31603の処理に対応するS 1605の処理
が実行される。
When the After Touch command is input in the 5th performance mode, 51101 → 51102 → 311 in Figure 11
03→51109, and channel determination 2 in FIG. 13 is executed in exactly the same manner as in the first performance mode. In other words, the determination in S1301 is Y only when the MIDI channel and one of the fixed channels of each sound generation area are equal.
ES, and After Tou in Figure 11 5IIIO
The process proceeds to channel processing, that is, to FIG. Here, 5160
1 is YES, and the process of S1605 corresponding to the process of 31603 of the first performance mode is executed only for the sound generation area to which the MIDI channel is assigned.

第5演奏モードで音色チェンジコマンドが入力した場合
、第11図S 1101→51102→31103−3
1104−31111と進み、前記After Tou
ch :1 ?ンドの場合と全く同様のチャネル判断2
が実行され、第11図31112の音色チェンジ処理す
なわち第17図に進む。ここでは、51701の判別が
YESとなって、MIDIチャネルが割り当てられてい
る発音エリアに対してのみ、前記第1演奏モードの51
702〜S 1704の処理に対応するS 1705〜
S 1707の処理が実行される。
When a tone change command is input in the 5th performance mode, S 1101 → 51102 → 31103-3 in Figure 11
1104-31111 and the After Tou
ch:1? Channel judgment 2 is exactly the same as in the case of
is executed, and the process proceeds to the tone color change process 31112 of FIG. 11, that is, FIG. 17. Here, the determination in 51701 is YES, and only the sound generation area to which the MIDI channel is assigned is 51701 in the first performance mode.
S1705~corresponding to the processing of 702~S1704
The process of S1707 is executed.

以上のようにして、NORMAL MODE 、、CO
MBINATIONMODE又はMULTl、POLY
 MODEの各演奏モードが選択され、更に、Key 
Board ModeSGuitar Mode又はW
ind Modeが選択されることにより、外部に接続
される電子楽器が、例えばキーボードか電子ギターか電
子管楽器か等により、各装置に最適な楽音の発音制御を
行うことが可能となる。特に、本実施例では、NORM
AL MODEでKey Board Modeの場合
に、ノートナンバーが偶数か奇数かによって楽音がステ
レオの左右チャネルに振り分けられる発音処理が行われ
ることが大きな特徴である。この場合、第1図のMID
1回路5を介して同図の音源モジュールの外部に接続さ
れる電子楽器が例えば鍵盤楽器であれば、押鍵された鍵
が偶数鍵か奇数鍵かによって、ノートナンバーが偶数又
は奇数になるため、押鍵する鍵によって楽音の定位が左
右チャネルの間で変化するという効果が得られる。
As described above, NORMAL MODE, CO
MBINATIONMODE or MULTl, POLY
Each performance mode of MODE is selected, and the Key
Board ModeSGuitar Mode or W
By selecting the ind Mode, it becomes possible to control the production of tones optimally for each device, depending on whether the externally connected electronic musical instrument is, for example, a keyboard, an electronic guitar, or an electronic wind instrument. In particular, in this example, NORM
In the case of AL MODE and Key Board Mode, a major feature is that a sound generation process is performed in which musical tones are distributed to the left and right stereo channels depending on whether the note number is an even number or an odd number. In this case, the MID in Figure 1
If the electronic musical instrument connected to the outside of the sound source module in the figure via the circuit 5 is, for example, a keyboard instrument, the note number will be an even number or an odd number depending on whether the pressed key is an even numbered key or an odd numbered key. , an effect can be obtained in which the localization of musical tones changes between the left and right channels depending on the key pressed.

コントローラーータの    の 最後に、第1図の旧DI回路5を介して外部機器からコ
ントロールチェンジコマンドが入力されたときの動作を
、第20図の動作フローチャートに沿って説明する。
The operation of the controller when a control change command is input from an external device via the old DI circuit 5 of FIG. 1 at the end of the operation will be explained along the operation flowchart of FIG. 20.

第20図の動作フローチャートは、第2図のスイッチ状
態取り込み動作等と同様、CPUIが特には図示しない
タイマーからの一定周期毎の割り込みに基づいて、第5
図のジェネラル動作フローチャートに優先して実行され
る。従って、コントロールチェンジコマンドが入力した
場合は、上記一定周期単位で処理されることになる。
The operation flowchart in FIG. 20 is similar to the switch state capture operation in FIG.
This is executed in priority to the general operation flowchart shown in the figure. Therefore, when a control change command is input, it is processed in units of the above-mentioned fixed period.

まず、コントロールチェンジコマンドが入力した場合、
既に説明したようにMIDI回路5からの割り込みに基
づいて、第3図の動作フローチャートが実行され、[D
I回路5で受信されたMIDIコマンドはRAM8に取
り込まれている。そして、この状態は、第20図520
01及びS 2002の判別処理で検出される0MID
Iコマンドの入力が発生していない場合又は入力したM
IDIコマンドがコントロールチェンジコマンドでない
場合は、32001及び又はS 2002の判別がNO
となり、S 2004に進む。これについては後述する
First, if a control change command is input,
As already explained, the operation flowchart in FIG. 3 is executed based on the interrupt from the MIDI circuit 5, and the [D
The MIDI command received by the I circuit 5 is captured in the RAM 8. This state is shown in FIG. 20 at 520.
0MID detected in the discrimination process of 01 and S 2002
If no I command has been input or if the M command has been input
If the IDI command is not a control change command, the determination of 32001 and/or S 2002 is NO.
Therefore, the process proceeds to S2004. This will be discussed later.

コントロールチェンジコマンドが検出されると、まず、
MIDIチャネル(入力した同コマンドに指定されてい
るMIDIチャネル)が固定チャネルに等しい場合のみ
、S 2003の判別がYESとなり、32004のコ
ントロールデータ変化処理に進む。ここでは、外部機器
での例えばモジュレーションホイール、フットボリュー
ム、マスターボリューム、フットスイッチ、ポルタメン
トタイム変更スイッチ、ボルタメント0N10FFスイ
ツチ等の操作に基づいて入力したコントロールチェンジ
のデータに対応する制御を、第1図の音源9に対して行
う。なお、MIDI IN処理の項で説明したようにG
uitar Mode(NORMAL MODE又はC
OMBINATION MODE)では、MIDIチャ
ネルが最低弦に対応する固定チャネルに等しい場合のみ
上記コマンドを受は付け、実際の制御は固定チャネルか
ら該チャネル+5チヤネルまでの6弦に対応するチャネ
ルまで同時に制御を行う。
When a control change command is detected, first
Only when the MIDI channel (MIDI channel specified in the same input command) is equal to the fixed channel, the determination in S2003 becomes YES, and the process proceeds to control data change processing in S32004. Here, the control corresponding to the control change data input based on the operation of the modulation wheel, foot volume, master volume, foot switch, portamento time change switch, voltamento 0N10FF switch, etc. on an external device is shown in Figure 1. This is done for sound source 9. Furthermore, as explained in the MIDI IN processing section, the G
uitar Mode (NORMAL MODE or C
In OMBINATION MODE), the above command is accepted only when the MIDI 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 6th string up to the channel + 5 channels. .

また、M[ILTl、POLY MODEでは、各発音
エリアに対応する固定チャネルのいずれかに等しい場合
に対応する発音エリアに対してのみ制御を行う。
Furthermore, in M[ILT1, POLY MODE, control is performed only for the corresponding sound generation area when it is equal to one of the fixed channels corresponding to each sound generation area.

上記のようにMIDIコマンドとして入力するコントロ
ールチェンジの命令に加えて、S 2005では第1図
のコントローラー17が操作され、その状態が前回判別
時から変化したか否かが判別される。
In addition to the control change command input as a MIDI command as described above, in S2005, the controller 17 shown in FIG. 1 is operated, and it is determined whether or not its state has changed since the previous determination.

この処理は、1本実施例の構成」の項で説明したように
、本実施例をキーボード楽器の一部として実現しコント
ローラー17を有する場合に実行される処理で、自己の
コントローラーの操作も楽音の発音制御に反映させるた
めに、S 2005のコントローラーの状態変化の判別
を行う。
As explained in section 1, "Configuration of this Embodiment," this process is executed when this embodiment is realized as a part of a keyboard instrument and has a controller 17, and the operation of its own controller also produces musical sounds. In order to reflect the change in the sound generation control, the change in the state of the controller is determined in S2005.

そして、コントローラー操作がなされた場合には、S 
2006において、対応するコントロールデータの変化
処理を行う。この処理は前記S 2004の処理と同様
である。なお、本実施例をコントローラ−17を持たな
い音源モジュールタイプの電子楽器として実現する場合
には、S 2005及びS 2006の処理は実行する
必要はない。
Then, when a controller operation is performed, S
In 2006, the corresponding control data is changed. This process is similar to the process in S2004 above. Note that if this embodiment is implemented as a sound source module type electronic musical instrument that does not have the controller 17, it is not necessary to execute the processes of S2005 and S2006.

次の32007では、LFOビブラートを実現するため
のデータの演算がなされる。LFOビブラートとは、L
FO(低周波発振器)の出力によって楽音の音高を低周
波数で周期的に振らせる効果であり、第1図のCPtJ
lが対応する音高変更データを作成して音源9に転送す
ることにより実現する。なおここでは、MIDIコマン
ド又は第1図のコントローラ17の操作に基づいて、前
記S 2004又はS 2006で演算されたコントロ
ールデータにより、LFOビブラートに対して変調がか
けられる場合のデータ演算処理もなされる。
In the next step 32007, data calculations are performed to realize LFO vibrato. What is LFO vibrato?
This is an effect that causes the pitch of a musical tone to vary periodically at a low frequency by the output of a FO (low frequency oscillator).
This is achieved by creating pitch change data corresponding to l and transmitting it to the sound source 9. Note that data calculation processing is also performed here when the LFO vibrato is modulated by the control data calculated in S 2004 or S 2006 based on the MIDI command or the operation of the controller 17 in FIG. .

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

52009テは、LFO)L/−1−1:+(グロール
)を実現するためのデータの演算がなされる。これは、
LFOの出力によって楽音の音量・音色を低周波数で周
期的に振らせる効果であり、第1図のCPU1が対応す
る音量又は音色の変更データを作成して音源9に転送す
ることにより実現する。なおここでは、MIDIコマン
ド又は第1図のコントローラ17の操作に基づいて、前
記S 2004又はS 2006で演算されたコントロ
ールデータにより、LF○トレモロ(グロール)に対し
て変調がかけられる場合のデータ演算処理もなされる。
In 52009, data calculation is performed to realize LFO) L/-1-1:+(growl). this is,
This is an effect in which the volume and timbre of musical tones are periodically varied at a low frequency by the output of the LFO, and is achieved by the CPU 1 in FIG. 1 creating corresponding volume or timbre change data and transmitting it to the sound source 9. Here, data calculation is performed when the LF○ tremolo (growl) is modulated by the control data calculated in S 2004 or S 2006 based on the MIDI command or the operation of the controller 17 in FIG. Processing is also done.

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

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

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

弛a 以上の実施例では、NORMAL MODEでKey 
BoardModeの場合に、楽音の振り分けはノート
ナンバーが偶数か奇数かによって左右に振り分けられる
ように制御したが、左右の定位に躍られるものではなく
、例えば左と中央又は右と中央となるように振り分けを
制御してもよく、更には左右への混合度が連続的に変化
するように制御してもよい。この場合、パンニング効果
発生器11によりパンニング制御を行うことになる。
Relaxation a In the above example, the Key
In the case of BoardMode, the distribution of musical tones was controlled so that they were distributed to the left and right depending on whether the note number was an even number or an odd number, but the distribution was not determined based on the left and right localization, but instead, for example, distributed to the left and center or right and center. may be controlled, or furthermore, the degree of mixing to the left and right may be controlled to change continuously. In this case, the panning effect generator 11 performs panning control.

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

また、前記実施例において、演奏モードの変更は第1図
のスイッチ部3内の第7図の各スイッチで行うようにし
たが、外部機器からMIDIコマンドによって変更でき
るようにしてもよい。
Further, in the embodiment described above, the performance mode was changed using the switches shown in FIG. 7 in the switch section 3 shown in FIG. 1, but it may be possible to change the performance mode using MIDI commands from an external device.

また、第1図の音源9の最大同時発音可能数は8音とし
たが、これに限られるものではなく16音、24音、3
2音等に増加させてもよい。加えて、Guitar M
odeの場合の対応可能位数を6弦としたが、それ以上
にしてもよい。
Furthermore, although the maximum number of sounds that can be produced simultaneously by the sound source 9 in FIG. 1 is eight, it is not limited to this;
The number may be increased to 2 tones, etc. In addition, Guitar M
Although the possible order in the case of ode is set to 6 strings, it may be larger than that.

加えて、COMBINATION MODEでは、発音
エリアを2を越える数設けるようにして、1つのNot
e onで同時に発音する異なる音色の楽音の数を3以
上にすることも可能であり、更には、発音エリアを2.
4.8等と切換るようにしてもよい。その場合は、同時
発音のPo1y数が変化することになる。
In addition, in COMBINATION MODE, more than two sound areas are provided, so that one Not
It is also possible to increase the number of tones of different tones to be sounded simultaneously with e on to 3 or more, and furthermore, it is possible to increase the number of musical tones with different tones to 3 or more.
It may be possible to switch to 4.8, etc. In that case, the Po1y number of simultaneous sounds will change.

更に、MULTl、POLY MODEではKey B
oard Modeのみを固定的に設定したが、Gui
tar ModeあるいはWtnd Mode等を設定
できるようにしてもよい。
Furthermore, Key B in MULTl and POLY MODE
Although only the oard Mode was set fixedly, the GUI
It may also be possible to set tar Mode or Wtnd Mode.

[発明の効果〕 本発明によれば、演奏操作に基づいて入力するノートオ
ン情報のノートナンバーが偶数か奇数かによって、音源
手段から発音される楽音の定位を可変させることができ
る。これにより、演奏者は例えば内蔵の又はMIDI等
を介して外部に接続されたキーボード楽器等を用いて、
鍵盤等の押鍵操作を繰り返して演奏を行った場合、押鍵
した鍵番号が偶数か奇数かによって音源手段から発音さ
れる楽音の定位を例えば左右チャネル交互に変化させる
ことが可能となる。すなわち、演奏者は鍵番号を偶数鍵
と奇数鍵とから選択することにより発音される楽音の定
位を変更できる。また、偶数鍵と奇数鍵にまたがった和
音を演奏することによって、例えば左右チャネルで広が
った定位の楽音を発音でき、演奏者の意図に基づくステ
レオ効果を得ることが可能となる。
[Effects of the Invention] According to the present invention, the localization of musical tones produced from the sound source means can be varied depending on whether the note number of note-on information input based on a performance operation is an even number or an odd number. As a result, the performer can use, for example, a built-in keyboard instrument or the like connected externally via MIDI, etc.
When a performance is performed by repeatedly pressing a key on a keyboard or the like, the localization of musical tones generated from a sound source means can be changed alternately between, for example, left and right channels depending on whether the pressed key number is an even number or an odd number. That is, the performer can change the localization of the musical tones to be produced by selecting the key number from even-numbered keys and odd-numbered keys. Furthermore, by playing chords spanning even-numbered keys and odd-numbered keys, for example, it is possible to produce a musical sound with a wide localization in the left and right channels, and it is possible to obtain a stereo effect based on the performer's intention.

この場合、ある定位における楽音のポリフォニック数が
一杯になってしまった場合には、例えばもう一方の定位
に振り分けることにより、適切な制御を行うことができ
、音源を効率的に使用することが可能となる。
In this case, if the polyphonic number of musical tones in one localization becomes full, for example, by distributing them to the other localization, appropriate control can be performed and the sound source can be used efficiently. becomes.

更に、両方の定位の楽音のポリフォニック数が一杯にな
ってしまった場合には、後着優先で楽音を発音させるこ
とにより、音源を効率的に使用しながら適切なステレオ
効果等を得ることが可能となる。
Furthermore, if the polyphonic number of tones in both stereo locations is full, by giving priority to the last tones, it is possible to use the sound source efficiently and obtain an appropriate stereo effect. becomes.

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

第1図は、本発明による電子楽器の構成図、第2図は、
スイッチ状態取り込みの動作フローチャート、 第3図は、にIDI入力時の動作フローチャート、第4
図は、MIDIID時の動作フローチャート、第5図は
、ジェネラル動作フローチャート、第6図は、発音態様
表、 第7図は、発音態様設定キースイッチの構成図、第8図
(a)〜(椋は、各モードの表示例を示した図、第9図
は、スイッチ変化処理の動作フローチャート、 第10図(a)〜(C)は、発音態様メモリの構成図、
第11図は、MIDI IN処理の動作フローチャート
、 第12図は、チャネル判断1の動作フローチャート、 第13図は、チャネル判断2の動作フローチャート、 第14図は、Note an10ff処理の動作フロー
チャート、 第15図は、ピッチベンダー処理の動作フローチャート
、 第16図は、アフタータッチ処理の動作フローチャート
、 第17図は、音色切り替え処理の動作フローチャート、 第18図は、左右振り分は発音処理の動作フローチャー
ト、 第19図は、音源の構成図、 第20図は、コントロールデータの変化処理の動作フロ
ーチャート、 第21図は、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, and FIG.
Figure 3 is an operation flowchart for capturing the switch status.
5 is a general operation flowchart, FIG. 6 is a sound generation mode table, FIG. 7 is a configuration diagram of the sound generation mode setting key switch, and FIGS. 9 is an operation flowchart of switch change processing; FIGS. 10(a) to 10(C) are configuration diagrams of sound generation mode memory;
11 is an operation flowchart of MIDI IN processing, FIG. 12 is an operation flowchart of channel determination 1, FIG. 13 is an operation flowchart of channel determination 2, FIG. 14 is an operation flowchart of Note an10ff processing, and 15. Figure 16 is an operation flowchart of pitch bender processing, Figure 16 is an operation flowchart of aftertouch processing, Figure 17 is an operation flowchart of tone switching processing, Figure 18 is an operation flowchart of sound generation processing for left and right distribution, FIG. 19 is a configuration diagram of the sound source, FIG. 20 is an operational flowchart of control data change processing, and FIG. 21 is an operational flowchart of PAN control processing. 1... Central control unit (CPU), 2... Bus, 5... MIDI circuit, 7... ROM. 8...RAM. 9...Sound source,

Claims (1)

【特許請求の範囲】 1)2つの定位の各々で楽音信号を独立に発音する音源
手段と、 入力するノートオン情報のノートナンバーが偶数か奇数
かによって前記音源手段において前記定位を変更しなが
ら前記ノートオン情報に基づく楽音を発音させる定位制
御手段と、 を有することを特徴とする電子楽器。 2)前記音源手段は前記2つの定位の各々で所定のポリ
フォニック数で楽音信号を独立に発音することを特徴と
する請求項1記載の電子楽器。 3)前記ノートオン情報が入力する毎に前記定位制御手
段が所定の定位を決定したときに、前記音源手段におけ
る前記所定の定位で前記所定のポリフォニック数の楽音
が発音されている場合、前記定位制御手段は前記音源手
段において前記所定の定位以外のもう一方の定位で前記
ノートオン情報に基づく楽音を発音させることを特徴と
する請求項2記載の電子楽器。 4)前記ノートオン情報が入力する毎に前記定位制御手
段が所定の定位を決定したときに、前記音源手段におけ
る前記2つの定位の両方で前記所定のポリフォニック数
の楽音が発音されている場合、前記定位制御手段は前記
音源手段において前記所定の定位で発音されている楽音
のうち最も古く発音開始された楽音を消音して前記ノー
トオン情報に基づく楽音を発音させることを特徴とする
請求項3記載の電子楽器。
[Scope of Claims] 1) sound source means for independently producing a musical tone signal in each of two localizations; An electronic musical instrument comprising: localization control means for generating musical tones based on note-on information. 2) The electronic musical instrument according to claim 1, wherein the sound source means independently generates a musical tone signal with a predetermined polyphonic number in each of the two localization positions. 3) When the localization control means determines a predetermined localization each time the note-on information is input, if musical tones of the predetermined polyphonic number are being produced at the predetermined localization in the sound source means, the localization control means determines the predetermined localization. 3. The electronic musical instrument according to claim 2, wherein the control means causes the sound source means to generate musical tones based on the note-on information at a localization other than the predetermined localization. 4) When the localization control means determines a predetermined localization each time the note-on information is input, the predetermined polyphonic number of musical tones are being produced in both of the two localizations in the sound source means; 3. The localization control means is characterized in that the sound source means mutes the musical tone that was started earliest among the musical tones being produced at the predetermined localization, and generates a musical tone based on the note-on information. Electronic musical instruments listed.
JP1110736A 1989-04-28 1989-04-28 Electronic musical instrument Pending JPH02287599A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1110736A JPH02287599A (en) 1989-04-28 1989-04-28 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1110736A JPH02287599A (en) 1989-04-28 1989-04-28 Electronic musical instrument

Publications (1)

Publication Number Publication Date
JPH02287599A true JPH02287599A (en) 1990-11-27

Family

ID=14543218

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1110736A Pending JPH02287599A (en) 1989-04-28 1989-04-28 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JPH02287599A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1992009070A1 (en) * 1990-11-19 1992-05-29 Kabushiki Kaisha Kawai Gakki Seisakusho Electronic musical instrument controller
JPH04306697A (en) * 1991-04-03 1992-10-29 Kawai Musical Instr Mfg Co Ltd Stereo system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1992009070A1 (en) * 1990-11-19 1992-05-29 Kabushiki Kaisha Kawai Gakki Seisakusho Electronic musical instrument controller
JPH04306697A (en) * 1991-04-03 1992-10-29 Kawai Musical Instr Mfg Co Ltd Stereo system

Similar Documents

Publication Publication Date Title
AU757577B2 (en) Automatic music generating method and device
US5192824A (en) Electronic musical instrument having multiple operation modes
JP2565069B2 (en) Electronic musical instrument
JPH02287599A (en) Electronic musical instrument
JPH08234731A (en) Electronic musical instrument
JPH02188795A (en) Electronic musical instrument
JPS6340319B2 (en)
JPH02188793A (en) Electronic musical instrument
JP2797109B2 (en) Tone generator
JPH02287600A (en) Electronic musical instrument
JPH0638192B2 (en) Musical sound generator
JP2797363B2 (en) Electronic musical instrument
JPH02188792A (en) Electronic musical instrument
JPH02188798A (en) Electronic musical instrument
JP3318790B2 (en) Sound image localization control device
JP3241832B2 (en) Music generator
JP2817521B2 (en) Electronic musical instrument
JPH02188799A (en) Electronic musical instrument
JP3700605B2 (en) Music signal processor
JP3606176B2 (en) Music performance device
JP3057854B2 (en) Electronic musical instrument
JP3119162B2 (en) Music performance equipment
JPH03293698A (en) Musical sound generating device
JPH0460698A (en) Musical sound waveform generator
JP2972364B2 (en) Musical information processing apparatus and musical information processing method