JPH05289670A - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JPH05289670A
JPH05289670A JP4089107A JP8910792A JPH05289670A JP H05289670 A JPH05289670 A JP H05289670A JP 4089107 A JP4089107 A JP 4089107A JP 8910792 A JP8910792 A JP 8910792A JP H05289670 A JPH05289670 A JP H05289670A
Authority
JP
Japan
Prior art keywords
tone
musical
sound
channel
sounds
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.)
Granted
Application number
JP4089107A
Other languages
Japanese (ja)
Other versions
JP3190103B2 (en
Inventor
Yasushi Sakurai
康 桜井
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.)
Yamaha Corp
Original Assignee
Yamaha Corp
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 Yamaha Corp filed Critical Yamaha Corp
Priority to JP08910792A priority Critical patent/JP3190103B2/en
Publication of JPH05289670A publication Critical patent/JPH05289670A/en
Application granted granted Critical
Publication of JP3190103B2 publication Critical patent/JP3190103B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To carry out a truncating processing of many series of sounds without generating any sense of musical incompatibility. CONSTITUTION:Information CK(i) (i=1-k) specifying sounds to be truncated at the same time among respective sounds in many series is set in a ROM. When many series of sounds are generated, the numbers of sound generation channels to be truncated associatively as to respective sound generation channels to which the sound generation of the series of sounds is assgined are calculated according to the CK(i) (i=1-k) and written in areas CC(ch) prepared for the respective sound generation channels ch. For the truncating process, the contents of the areas CC are referred to and when some part of sounds constituting the series of sounds is to be truncated, other sounds in associative relation with it are all truncated.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は複数系列の音色を同時
に発音することができる電子楽器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument capable of simultaneously producing a plurality of tone colors.

【0002】[0002]

【従来の技術】複数の発音チャネルを備えた複音式音源
を有し、複数の発音チャネルを同時に利用することによ
り、複数の音色を含んだ楽音を形成し得るようにした電
子楽器が知られている。この種の電子楽器によれば、多
重混合音色音、ステレオ音、コーラス音等の発音を含ん
だ多彩な演奏を行うことができる。
2. Description of the Related Art There is known an electronic musical instrument having a polyphonic sound source having a plurality of tone generation channels and capable of forming a musical tone containing a plurality of tone colors by simultaneously utilizing the plurality of tone generation channels. There is. According to this type of electronic musical instrument, it is possible to perform a variety of performances including pronunciation of multiple mixed tone colors, stereo tones, chorus tones and the like.

【0003】[0003]

【発明が解決しようとする課題】ところで、上述した従
来の電子楽器において新たな発音指示が発生した場合
に、すべての発音チャネルが発音処理に割り当てられて
いたり、あるいは発音指示に対応した発音処理に必要と
される数の発音チャネルが空き状態となっていないこと
がある。この場合、その時点において発音処理を行って
いる発音チャネルのうち必要数のものを選択し、それら
の発音チャネルによる発音処理を強制終了させる、いわ
ゆるトランケート処理が行われ、新たな発音指示を割り
当てる発音チャネルが用意される。しかし、このトラン
ケート処理は、例えば全発音チャネルのうち最も減衰の
進んだ楽音を発音中の発音チャネルを選択する、といっ
た発音中の各楽音の相互関係を一切考慮しない方法によ
り機械的に行われていた。このため、トランケート処理
が行われることにより、それまで1個のグループをなし
て発音されていた各楽音のうち一部の楽音のみが途中か
ら欠落することとなり、音楽的違和感が生じるという問
題があった。このように1部の楽音が途中から欠落する
と音楽的違和感が生じる場合の例として以下のような場
合が挙げられる。 (1)ステレオ発音を行っている際、片方のチャネルの
楽音が途中から欠落する場合。 (2)同一音色あるいは類似音色の複数系列の楽音に対
して各々異なったモジュレーション(振幅変調または周
波数変調)を付与し、複数の発音チャネルを介して同時
に発音し、コーラス音を発生する場合。 (3)デュアル音色音または3以上の音色数の多重混合
音色音を発生する場合。 この場合、混合した後の音色が目的とする音色となるよ
うに各系列の音色設定が行われているので、混合音色音
の一部が途中から欠落すると、その時点において全く別
の音色に切り換わってしまう。
By the way, when a new pronunciation instruction is generated in the above-mentioned conventional electronic musical instrument, all the pronunciation channels are assigned to the pronunciation processing, or the pronunciation processing corresponding to the pronunciation instruction is performed. The required number of pronunciation channels may not be empty. In this case, a so-called truncation process is performed in which the required number of sounding channels that are currently sounding are selected and the sounding processing by those sounding channels is forcibly terminated. A channel is prepared. However, this truncate processing is performed mechanically by a method that does not consider the mutual relationship between the musical tones during pronunciation, for example, selecting the musical tone channel that is producing the most attenuated musical tone among all the musical tone channels. It was Therefore, by performing the truncation process, only some of the musical tones that have been pronounced in a group up to that point are missing from the middle of the musical tones, which causes a musical discomfort. It was The following cases can be given as examples of the case where a feeling of musical incongruity is generated when a part of the musical sound is lost in the middle. (1) When the stereo sound is being generated, the musical sound of one channel is missing from the middle. (2) In the case where different modulations (amplitude modulation or frequency modulation) are applied to a plurality of musical tones of the same tone color or similar tone colors, and a chorus tone is generated by simultaneously producing sounds through a plurality of tone generation channels. (3) When a dual tone color tone or a multiple mixed tone color tone having three or more tone colors is generated. In this case, the tone colors of each series are set so that the mixed tone will be the desired tone, so if a part of the mixed tone is missing from the middle, it will be switched to a completely different tone at that point. Will be replaced.

【0004】この発明は上述した事情に鑑みてなされた
ものであり、グループをなす複数の楽音を同時に発音す
ることができると共にこれらの楽音を消音する必要が生
じた場合には音楽的違和感を生じない態様でこれらの楽
音のトランケート処理を行うことができる電子楽器を提
供することを目的とする。
The present invention has been made in view of the above-mentioned circumstances, and a plurality of musical tones forming a group can be simultaneously pronounced, and when it is necessary to mute these musical tones, a musical discomfort occurs. It is an object of the present invention to provide an electronic musical instrument capable of performing truncate processing of these musical sounds in a non-conforming manner.

【0005】[0005]

【課題を解決するための手段】この発明は、演奏情報を
発生する演奏情報発生手段と、楽音を形成する複数の楽
音形成手段と、前記演奏情報に応答し、(a)該演奏情
報に対応した楽音を形成するのに充分な数の前記楽音形
成手段に対して形成中の楽音の消音を指示し、かつ、
(b)該消音の指示を行った楽音形成手段のうち該演奏
情報に対応した楽音を形成するのに必要な数の楽音形成
手段に対して該演奏情報に対応した楽音の形成を指示す
る手段であって、(c)前記楽音形成手段の1つに前記
消音の指示を行うことを決定し、かつ、その楽音形成手
段が形成している楽音と同時に消音すべき楽音を他の楽
音形成手段が形成している場合には、これらの同時に消
音すべき各楽音を形成しているすべての楽音形成手段に
前記消音の指示を行う発音割当手段とを具備することを
特徴としている。
The present invention responds to performance information generating means for generating performance information, a plurality of musical sound forming means for forming musical sounds, and the performance information, and (a) corresponds to the performance information. A sufficient number of the musical tone forming means to form the musical tone that has been formed,
(B) Means for instructing, to the musical sound forming means that has instructed to mute, the necessary number of musical sound forming means for forming musical tones corresponding to the performance information, to form musical tones corresponding to the performance information. (C) It is determined that one of the musical tone forming means is instructed to mute, and the musical tone to be silenced at the same time as the musical tone formed by the musical tone forming means is formed by another musical tone forming means. In this case, all the musical tone forming means forming the musical tones to be silenced at the same time are provided with a sound generation assigning means for instructing the silencing.

【0006】[0006]

【作用】上記構成によれば、同時に消音すべき関係にあ
る複数の楽音が楽音形成手段によって形成されている期
間に新たな演奏情報が発生し、それに伴って、上記複数
の楽音のうちの一部を消音する必要が生じた場合、この
一部の楽音のみならず、これと同時に消音すべきである
他の楽音もすべて消音される。従って、消音処理の際に
音楽的違和感が生じるのを防止することができる。
According to the above construction, new performance information is generated during a period in which a plurality of musical tones, which are in a relation to be muted at the same time, are formed by the musical tone forming means, and accordingly, one of the plurality of musical tones is generated. When it becomes necessary to mute a part, not only this part of the musical sound but also all other musical sounds that should be muted at the same time are muted. Therefore, it is possible to prevent a sense of musical incongruity from occurring during the muffling process.

【0007】[0007]

【実施例】以下、図面を参照し、本発明の一実施例を説
明する。図1はこの発明の一実施例による音源ユニット
1の構成を示すブロック図である。この音源ユニット1
は、外部装置から与えられるMIDIイベントに従って
楽音を形成する。図1には、外部装置としてキーボード
2およびシーケンサ3がMIDIケーブルを介して音源
ユニット1に接続された状態が示されている。また、音
源ユニット1は、128種類の楽音を形成し得るように
構成されており、これらの各楽音には音色番号TCが割
り当てられている。音源ユニット1によって形成される
これらの楽音には、1つの音色しか含んでいない単系列
音と、音色の異なった複数の楽音からなる多系列音とが
含まれる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a sound source unit 1 according to an embodiment of the present invention. This sound source unit 1
Forms a musical sound according to a MIDI event given from an external device. FIG. 1 shows a state in which a keyboard 2 and a sequencer 3 are connected as external devices to the sound source unit 1 via a MIDI cable. Further, the tone generator unit 1 is configured so as to be able to form 128 kinds of musical tones, and a tone color number TC is assigned to each of these musical tones. These musical tones formed by the sound source unit 1 include a single sequence tone containing only one tone color, and a multi-sequence tone consisting of a plurality of tone colors having different tone colors.

【0008】次に音源ユニット1の内部の構成について
説明する。11はCPU(中央処理ユニット)であり、
音源ユニット1内の各部の動作を制御する。12はRO
M(リードオンリメモリ)であり、CPU11が実行す
る各種制御プログラムの他、制御に必要な各種制御情報
が記憶されている。また、13はRAM(ランダムアク
セスメモリ)であり、CPU11が行う制御に使用され
る制御データの記憶エリアとして使用される。14はM
IDIインターフェースであり、音源ユニット1におい
て発生したMIDIイベントをMIDI−OUT端子か
ら外部装置へ送信する処理、および外部装置からMID
I−IN端子を介し供給されるMIDIイベントを受信
する処理を行う。外部装置からのMIDIイベントを受
信した場合、MIDIインターフェース14は、CPU
11に対し割込信号IRを出力する。15は音源ユニッ
ト1のパネル面に配備された各種演奏制御用のパネルス
イッチである。また、16はこの音源ユニット1の状態
を表示する表示器である。17は28チャネルの発音チ
ャネルを有するトーンジェネレータ(以下、TGと略
す。)であり、各発音チャネルにおいて各々独立に楽音
信号を形成する。多系列音を発音する場合、多系列音を
構成する各音色の楽音信号は各々別個の発音チャネルを
利用して形成される。TG17によって形成された楽音
信号は音源ユニット1の外部のサウンドシステムSSに
より楽音として発音される。以上説明した各要素11〜
17はバスラインBを介し相互に接続されている。
Next, the internal structure of the sound source unit 1 will be described. 11 is a CPU (central processing unit),
The operation of each unit in the sound source unit 1 is controlled. 12 is RO
M (read only memory) stores various control programs executed by the CPU 11 and various control information necessary for control. Reference numeral 13 denotes a RAM (random access memory), which is used as a storage area for control data used for control performed by the CPU 11. 14 is M
The IDI interface is a process of transmitting a MIDI event generated in the sound source unit 1 from the MIDI-OUT terminal to an external device, and MID from the external device.
Processing for receiving a MIDI event supplied via the I-IN terminal is performed. When a MIDI event from an external device is received, the MIDI interface 14
An interrupt signal IR is output to 11. Reference numeral 15 is a panel switch provided on the panel surface of the sound source unit 1 for controlling various performances. 16 is a display for displaying the state of the sound source unit 1. Reference numeral 17 denotes a tone generator (hereinafter abbreviated as TG) having 28 tone generation channels, which independently form tone signals in each tone generation channel. In the case of producing a multi-sequence sound, the musical tone signals of the respective tone colors forming the multi-sequence sound are formed by using separate tone generation channels. The tone signal formed by the TG 17 is sounded as a tone by the sound system SS outside the sound source unit 1. Each element 11 described above
17 are mutually connected via a bus line B.

【0009】次にROM12内に記憶された制御データ
について説明する。まず、ROM12内の所定の記憶エ
リアには、音源ユニット1において発音される128種
類の楽音に対応した音色データTD(TC)(TC=0
〜127)が図2に示すように記憶されている。これら
の各音色データTD(TC)は、以下説明する各データ
によって構成されている。 系列数データK:この系列数データKは、音色番号TC
に対応した楽音に含まれる音色の数(以下、系列数とい
う)を表す。 チェイン系列データCK(i)(i=1〜K):チェイ
ン系列データCK(i)は音色番号TCに対応した系列
数と同数のものが記憶される。これらのチェイン系列デ
ータCK(i)(i=1〜K)により当該多系列音を構
成する各系列の楽音のトランケート処理の際の連動関係
が指定される。すなわち、各チェイン系列データCK
(i)は、第i番目の楽音がトランケートされる場合に
それと連動してトランケートすべき楽音の番号を指定す
るものである。図2は系列数が「3」である場合を例示
したものであり、その場合に必要とされるチェイン系列
データCK(1)〜CK(3)が記憶された状態が示さ
れている。 系列対応音色データTKD(i)(i=1〜K):この
系列対応音色データも当該音色番号TCに対応した系列
数と同数のものが記憶される。図2には3系列の音色制
御に必要とされる系列対応音色データTKD(1)〜T
KD(3)が記憶された状態が示されている。なお、単
系列音に対する音色データは、系列数データKとして1
が記憶されており、1個のチェイン系列データおよび1
音色分の系列対応音色データが記憶されている。
Next, the control data stored in the ROM 12 will be described. First, in a predetermined storage area in the ROM 12, tone color data TD (TC) (TC = 0) corresponding to 128 types of musical tones produced by the tone generator unit 1 is stored.
To 127) are stored as shown in FIG. Each of these tone color data TD (TC) is composed of each data described below. Sequence number data K: This sequence number data K is a tone color number TC
Represents the number of timbres included in the musical sound corresponding to (hereinafter referred to as the number of sequences). Chain series data CK (i) (i = 1 to K): The same number of chain series data CK (i) as the number of series corresponding to the tone color number TC are stored. These chain series data CK (i) (i = 1 to K) specify the interlocking relationship at the time of the truncation process of the musical tones of the respective series constituting the multi-sequence sound. That is, each chain series data CK
(I) designates the number of the musical sound to be truncated in conjunction with the i-th musical sound when it is truncated. FIG. 2 exemplifies a case where the number of series is “3”, and shows a state in which chain series data CK (1) to CK (3) required in that case are stored. Series-corresponding tone color data TKD (i) (i = 1 to K): This series-corresponding tone color data is stored in the same number as the number of sequences corresponding to the tone color number TC. FIG. 2 shows the sequence-corresponding tone color data TKD (1) to TKD required for tone control of three sequences.
The state in which KD (3) is stored is shown. Note that the tone color data for a single sequence sound is 1 as the sequence number data K.
Are stored, and one chain series data and 1
Stored is tone-color-based tone color data.

【0010】図3(a)〜(d)はチェイン系列データ
の内容を例示したものであり、図4(a)〜(d)はこ
れらのチェイン系列データによって指定された各楽音の
トランケート時の連動関係を示すものである。まず、図
3(a)に示す場合、すべてのチェイン系列データCK
(i)(i=1〜4)の内容が異なっており、かつ、各
チェイン系列データCK(i)は1〜4のうちいずれか
の値となっている。この場合、図4(a)に示すよう
に、第1番目〜第4場目の各楽音のうちいずれの楽音が
最初にトランケートされたとしても、すべての楽音がト
ランケートされる。図3(b)に示すようにチェイン系
列データが記憶されている場合には、図4(b)に示す
ように、いずれの楽音が最初にトランケートされようと
も、第2番目〜第4番目の楽音は必ずトランケートされ
る。しかし、第1番目の楽音は、それが最初にトランケ
ートされる場合のみトランケートされ、他の楽音が最初
にトランケートされる場合にはトランケートされない。
また、図3(c)および(d)に示すようにチェイン系
列データが記憶されている場合についても、上述と同様
な原理に従ってトランケート処理が行われる。
FIGS. 3 (a) to 3 (d) exemplify the contents of the chain series data, and FIGS. 4 (a) to 4 (d) show the case of truncating each tone specified by these chain series data. It shows the interlocking relationship. First, in the case of FIG. 3A, all chain series data CK
(I) (i = 1 to 4) have different contents, and each chain series data CK (i) is one of the values 1 to 4. In this case, as shown in FIG. 4A, all the musical tones are truncated even if any of the first to fourth musical tones is first truncated. When the chain series data is stored as shown in FIG. 3B, as shown in FIG. 4B, whichever tone is first truncated, the second to fourth Music sounds are always truncated. However, the first musical note is truncated only if it is truncated first, and not if the other musical notes are truncated first.
Further, also in the case where the chain series data is stored as shown in FIGS. 3C and 3D, the truncation process is performed according to the same principle as described above.

【0011】次にRAM13内の所定の記憶エリアには
以下列挙する各テーブルが設定されている。図5はこれ
らのテーブルのRAM13内での記憶フォーマットを図
示したものである。 音色番号テーブルT(MC)(MC=0〜15):この
音色番号テーブルT(MC)(MC=0〜15)の各エ
リアには各MIDIチャネルMCに割り当てられた音色
番号が記憶される。 MIDIチャネルデータテーブルM(ch)(ch=0
〜27):これらのMIDIチャネルデータテーブルM
(ch)(ch=0〜27)の各エリアには、各々第0
〜第27発音チャネルに発音が割り当てられた楽音のM
IDIチャネルの番号が記憶される。 ノートナンバデータテーブルN(ch)(ch=0〜2
7):これらのノートナンバデータテーブルN(ch)
(ch=0〜27)の各エリアには、各々第0〜第27
発音チャネルに発音が割り当てられた楽音のノートナン
バが記憶される。なお、系列によってはトランスポーズ
(移調)が行われる場合もあるが、その場合、トランス
ポーズ以前の元のノートナンバがこのテーブルに書き込
まれる。 チェインデータテーブルCC(ch)(ch=0〜2
7):これらのチェインデータテーブルCC(i=0〜
27)の各エリアは、各々第0〜第27発音チャネルに
対応したエリアであり、各エリアには対応する発音チャ
ネルのトランケートが行われる場合にそれと連動してト
ランケートを行うべき発音チャネルの番号が書き込まれ
る。図6はチェインデータテーブルCC(i)(ch=
0〜27)の各エリアにトランケートすべき発音チャネ
ルの番号が書き込まれた状態を例示したものである。同
図において、〜は各々連動してトランケート処理が
施され得る発音チャネルのグループを示している。RA
M13には以上のテーブルの他、所定の記憶エリアを利
用し、MIDIインターフェースを介して受信されるM
IDIイベントを記憶する受信バッファ、受信MIDI
イベントから取り出される各種データを記憶するための
レジスタ類が設定されている。
Next, each table listed below is set in a predetermined storage area in the RAM 13. FIG. 5 illustrates the storage format of these tables in the RAM 13. Tone number table T (MC) (MC = 0 to 15): Tone number assigned to each MIDI channel MC is stored in each area of the tone color table T (MC) (MC = 0 to 15). MIDI channel data table M (ch) (ch = 0
~ 27): These MIDI channel data tables M
In each area of (ch) (ch = 0 to 27), 0th area
~ M of the musical sound whose pronunciation is assigned to the 27th pronunciation channel
The IDI channel number is stored. Note number data table N (ch) (ch = 0 to 2
7): These note number data tables N (ch)
The areas (ch = 0 to 27) have 0th to 27th areas, respectively.
The note number of the musical tone whose pronunciation is assigned to the pronunciation channel is stored. Note that transposition may be performed depending on the series, but in that case, the original note number before transposition is written in this table. Chain data table CC (ch) (ch = 0 to 2
7): These chain data tables CC (i = 0 to 0)
Each area of 27) is an area corresponding to each of the 0th to 27th sounding channels, and in each area, when the truncation of the corresponding sounding channel is performed, the number of the sounding channel to be truncated in conjunction with it is set. Written. FIG. 6 shows the chain data table CC (i) (ch =
0 to 27), an example is shown in which the numbers of tone generation channels to be truncated are written. In the same figure, symbols (1) to (5) indicate groups of tone generation channels that can be subjected to truncate processing in conjunction with each other. RA
In addition to the above table, M13 uses a predetermined storage area and is received via the MIDI interface.
Receive buffer for storing IDI events, receive MIDI
Registers for storing various data taken out from the event are set.

【0012】次に音源ユニット1の動作を説明する。音
源ユニット1の図示しない電源スイッチがオン状態にさ
れると、CPU3は図7にフローを示すメインルーチン
を実行する。まず、ステップS1に進んで初期設定処理
を行い、RAM5内の制御データの記憶エリアに初期値
を書き込む。次にステップS2に進み、図8にフローを
示す受信バッファ処理ルーチンを開始し、そのステップ
S101においてRAM13内の受信バッファにMID
Iインターフェース14を介して受信したMIDIイベ
ントが登録されているか否かを判断する。この判断結果
が「YES」の場合はステップS102以降へ進み、ノ
ートオン処理ルーチン(図9および図10)、ノートオ
フ処理ルーチン(図11)等、受信したMIDIイベン
トに応じた処理を実行してメインルーチンに戻る。一
方、受信バッファにMIDIイベントが登録されておら
ず、ステップS101の判断結果が「NO」となった場
合はそのままメインルーチンに戻る。次にメインルーチ
ンに戻るとステップS3に進み、パネルスイッチ15の
状態を走査し、いずれかのパネルスイッチのオン/オフ
状態の変化を検知した場合にはそれに対応した処理を行
う。具体的には、例えば音色番号テーブルのエディット
処理等が行われる。以後、CPU11は、ステップS2
およびS3を繰り返す。
Next, the operation of the sound source unit 1 will be described. When a power switch (not shown) of the sound source unit 1 is turned on, the CPU 3 executes a main routine whose flow is shown in FIG. First, in step S1, initial setting processing is performed, and initial values are written in the storage area for control data in the RAM 5. Next, in step S2, the reception buffer processing routine whose flow is shown in FIG. 8 is started, and in step S101, the MID is set in the reception buffer in the RAM 13.
It is determined whether the MIDI event received via the I interface 14 is registered. If the result of this determination is "YES", the flow proceeds to step S102 and subsequent steps to execute processing corresponding to the received MIDI event, such as the note-on processing routine (FIGS. 9 and 10) and the note-off processing routine (FIG. 11). Return to the main routine. On the other hand, if no MIDI event is registered in the reception buffer and the result of the determination in step S101 is "NO", the process directly returns to the main routine. Next, returning to the main routine, the process proceeds to step S3, the state of the panel switch 15 is scanned, and if any change in the on / off state of the panel switch is detected, the corresponding process is performed. Specifically, for example, a tone color number table edit process or the like is performed. After that, the CPU 11 executes step S2.
And S3 are repeated.

【0013】<割込処理>外部からのMIDIイベント
がMIDIインタフェース14によって受信されると、
MIDIインターフェース14からCPU11に対し割
込信号IRが出力される。この結果、CPU11は、そ
の時点において実行していた処理を中断し、図12にフ
ローを示す割込処理ルーチンを実行する。まず、ステッ
プS401に進み、受信したMIDIイベントをMID
Iインターフェース14内のバッファレジスタBUFに
保持させる。次いでステップS402に進み、CPU1
1は、バッファレジスタBUFからMIDIイベントを
取り込む。次にステップS403に進み、バッファレジ
スタBUF内から取り込んだMIDIイベントをRAM
13内の受信バッファに書き込む。そして、CPU11
は割込処理ルーチンを終了し中断していた処理を再開す
る。
<Interrupt Processing> When an external MIDI event is received by the MIDI interface 14,
An interrupt signal IR is output from the MIDI interface 14 to the CPU 11. As a result, the CPU 11 suspends the process being executed at that time and executes the interrupt process routine whose flow is shown in FIG. First, in step S401, the received MIDI event is MID
It is held in the buffer register BUF in the I interface 14. Next, in step S402, the CPU 1
1 captures a MIDI event from the buffer register BUF. Next, in step S403, the MIDI event fetched from the buffer register BUF is stored in the RAM.
Write to the receive buffer in 13. And the CPU 11
Terminates the interrupt processing routine and restarts the interrupted processing.

【0014】<受信バッファ処理>MIDIイベントが
受信されて受信バッファに書き込まれると、メインルー
チンのステップS2から受信バッファ処理ルーチンに進
んだ時、そのステップS101の判断結果が「YES」
となってステップS102に進む。そして、受信したM
IDIイベントを受信バッファから取り出す。次にステ
ップS103に進み、受信したMIDIイベントの種類
を判別し、判別結果に基づいて分岐先を決定する。受信
バッファからノートオンイベントを取り出した場合には
ステップS104に進む。そして、ノートオンイベント
に含まれるMIDIチャネル番号およびノートナンバを
各々チャネル番号レジスタMCおよびノートナンバレジ
スタNCに書き込む。次にステップS105に進み、図
9および図10にフローを示すノートオン処理ルーチン
を実行し、メインルーチンに戻る。また、ステップS1
02において受信バッファからノートオフイベントを取
り出した場合にはステップS106に進む。そして、ノ
ートオンイベントに含まれるMIDIチャネル番号およ
びノートナンバを各々チャネル番号レジスタMCおよび
ノートナンバレジスタNCに書き込む。次にステップS
107に進み、図11にフローを示すノートオフ処理ル
ーチンを実行し、メインルーチンに戻る。また、受信バ
ッファから取り出したイベントがプログラムチェンジイ
ベント(音色変更イベント)である場合にはステップS
108に進む。そして、プログラムチェンジイベントに
含まれるMIDIチャネル番号およびプログラム番号
(音色番号)を各々チャネル番号レジスタMCおよびプ
ログラム番号レジスタPCに書き込む。そして、メイン
ルーチンに戻る。また、受信バッファから取り出したイ
ベントがその他のイベントである場合はそれに対応した
処理を行い(ステップS110)、メインルーチンに戻
る。
<Reception Buffer Processing> When a MIDI event is received and written in the reception buffer, when the process proceeds from step S2 of the main routine to the reception buffer processing routine, the determination result of step S101 is "YES".
Then, the process proceeds to step S102. And the received M
Retrieve the IDI event from the receive buffer. Next, proceeding to step S103, the type of the received MIDI event is discriminated and the branch destination is decided based on the discrimination result. When the note-on event is extracted from the reception buffer, the process proceeds to step S104. Then, the MIDI channel number and the note number included in the note-on event are written in the channel number register MC and the note number register NC, respectively. Next, the process proceeds to step S105, the note-on process routine whose flow is shown in FIGS. 9 and 10 is executed, and the process returns to the main routine. Also, step S1
When the note-off event is extracted from the reception buffer in 02, the process proceeds to step S106. Then, the MIDI channel number and the note number included in the note-on event are written in the channel number register MC and the note number register NC, respectively. Then step S
In step 107, the note-off process routine whose flow is shown in FIG. 11 is executed, and the process returns to the main routine. If the event extracted from the reception buffer is a program change event (tone change event), step S
Proceed to 108. Then, the MIDI channel number and the program number (tone color number) included in the program change event are written in the channel number register MC and the program number register PC, respectively. Then, the process returns to the main routine. If the event extracted from the reception buffer is another event, the corresponding process is performed (step S110), and the process returns to the main routine.

【0015】<ノートオン処理>次にノートオンイベン
トが受信され、CPU11がノートオン処理ルーチンを
実行する場合の動作を説明する。まず、ステップS20
1に進み、音色番号テーブルにおいてチャネル番号レジ
スタMCによって指定されるエリアT(MC)の内容、
すなわち、受信したノートイベントのMIDIチャネル
に対して設定されている音色番号を読み出し、音色番号
レジスタTCに書き込む。次にノートオンイベントに対
応した発音に割り当てる発音チャネルを確保するための
トランケート処理を実行する。
<Note-On Processing> Next, the operation when the note-on event is received and the CPU 11 executes the note-on processing routine will be described. First, step S20
1, the contents of the area T (MC) designated by the channel number register MC in the tone color number table,
That is, the tone color number set for the MIDI channel of the received note event is read and written in the tone color number register TC. Next, a truncation process is executed to secure a sound generation channel assigned to the sound corresponding to the note-on event.

【0016】<トランケート処理>ここで、図6に示す
ようにチェインデータテーブルCC(k)(k=0〜2
7)にデータが記憶されていた場合を例にトランケート
処理について説明する。まず、ステップS202に進
み、制御変数iに初期値「1」を書き込む。次にステッ
プS203に進み、TG17の各発音チャネルにおいて
形成されている楽音のエンベロープの値を検出し、最も
減衰の進んだ楽音を発音中の発音チャネルの番号を発音
割当レジスタA(i)に書き込む。なお、楽音の発音を
行っていない発音チャネルは、上記エンベロープの値が
「0」となっており、最も減衰の進んだ楽音を発音中の
発音チャネルであると見なされる。以下では、ステップ
S203において、最も減衰の進んだ発音チャネルとし
て第0チャネルが検出され、「0」が発音割当レジスタ
A(1)に書込まれたものと仮定し、動作説明を行う。
次にステップS204に進むと、その時点までに発音チ
ャネル番号が書き込まれた各発音割当レジスタA(x)
(x=1〜i)の内容(この場合はA(1)のみ)を、
チェインデータテーブルのエリアCC(A(i))の内
容と順次比較し、一致するものがあるか否かを判断す
る。この場合、チェインデータテーブルのエリアCC
(A(i))=CC(A(1))=CC(0)には図6
に示すようにデータ「3」が書き込まれており、かつ、
発音割当レジスタA(1)の内容は「0」であるので、
ステップS204の判断結果は「NO」となり、ステッ
プS205に進む。そして、制御変数iをインクリメン
トして内容を「2」とする。次にステップS206に進
み、チェインデータテーブルのエリアCC(A(i−
1))、すなわち、この場合、エリアCC(A(1))
=CC(0)の内容「3」を発音チャネル割当レジスタ
A(i)=A(2)に書き込む。
<Truncate Processing> Here, as shown in FIG. 6, the chain data table CC (k) (k = 0 to 2)
The truncate processing will be described by taking the case where the data is stored in 7) as an example. First, in step S202, an initial value "1" is written in the control variable i. Next, proceeding to step S203, the envelope value of the musical tone formed in each tone generation channel of the TG 17 is detected, and the number of the tone generation channel that is producing the tone with the most attenuated tone is written in the tone generation assignment register A (i). .. It should be noted that the tone generation channel that is not producing a musical tone has the envelope value of "0" and is regarded as the tone generation channel that is producing the most attenuated musical tone. In the following, the operation will be described on the assumption that the 0th channel is detected as the most attenuated tone generation channel and "0" is written in the tone generation assignment register A (1) in step S203.
Next, when proceeding to step S204, each tone generation assignment register A (x) in which the tone generation channel number has been written up to that point.
(X = 1 to i) contents (in this case, only A (1))
The contents of area CC (A (i)) of the chain data table are sequentially compared to determine whether there is a match. In this case, area CC of the chain data table
(A (i)) = CC (A (1)) = CC (0)
Data “3” is written as shown in, and
Since the content of the pronunciation assignment register A (1) is "0",
The determination result of step S204 is “NO”, and the process proceeds to step S205. Then, the control variable i is incremented to set the content to "2". Next, in step S206, the area CC (A (i-
1)), that is, in this case area CC (A (1))
= CC (0) content "3" is written to the tone generation channel assignment register A (i) = A (2).

【0017】そして、再びステップS204に戻り、そ
の時点において発音チャネル番号の書き込まれた各発音
割当レジスタA(x)(x=1〜i)の内容(この場合
はA(1)およびA(2))を、チェインデータテーブ
ルのエリアCC(A(i))=CC(A(2))と順次
比較し、一致するものがあるか否かを判断する。この場
合、A(1)=「0」、A(2)=「3」であり、か
つ、CC(A(2))=CC(3)=「4」であるた
め、ステップS204の判断結果は「NO」となり、ス
テップS205に進む。そして、制御変数iをインクリ
メントして内容を「3」とする。次にステップS206
に進み、チェインデータテーブルのエリアCC(A(i
−1))=CC(A(2))=CC(3)の内容「4」
を発音チャネル割当レジスタA(i)=A(3)に書き
込む。そして、再びステップS204に戻り、その時点
において発音チャネル番号の書き込まれた各発音割当レ
ジスタA(x)(x=1〜i)の内容(この場合はA
(1)、A(2)およびA(3))を、チェインデータ
テーブルのエリアCC(A(i))=CC(A(3)と
順次比較し、一致するものがあるか否かを判断する。こ
の場合、A(1)=「0」、A(2)=「3」、A
(3)=「4」であり、かつ、CC(A(3))=CC
(4)=「3」であるため、ステップS204の判断結
果は「YES」となり、ステップS207に進む。この
ようにしてノートオンイベントに対応した発音を行うた
めの発音チャネルの番号として、「0」、「3」および
「4」が発音割当チャネルレジスタA(x)(x=1〜
3)内に得られる。
Then, the process returns to step S204 again, and at that time, the contents of the tone generation assignment registers A (x) (x = 1 to i) in which tone generation channel numbers are written (in this case, A (1) and A (2)). )) Is sequentially compared with the area CC (A (i)) = CC (A (2)) of the chain data table to determine whether there is a match. In this case, since A (1) = “0”, A (2) = “3”, and CC (A (2)) = CC (3) = “4”, the determination result of step S204 Is “NO”, and the process proceeds to step S205. Then, the control variable i is incremented to set the content to "3". Next in step S206
Area of the chain data table CC (A (i
-1)) = CC (A (2)) = Content of CC (3) "4"
Is written in the tone generation channel allocation register A (i) = A (3). Then, the process returns to step S204 again, and at that time, the contents (A in this case A) of the respective tone generation assignment registers A (x) (x = 1 to i) in which the tone generation channel number is written
(1), A (2) and A (3)) are sequentially compared with the area CC (A (i)) = CC (A (3)) of the chain data table to determine whether there is a match. In this case, A (1) = “0”, A (2) = “3”, A
(3) = “4” and CC (A (3)) = CC
Since (4) = “3”, the determination result of step S204 is “YES”, and the process proceeds to step S207. In this way, as the sound generation channel numbers for performing sound generation corresponding to the note-on event, "0", "3" and "4" are sound generation assignment channel registers A (x) (x = 1 to 1).
Obtained within 3).

【0018】次にステップS207に進むと、制御変数
iの値が音色番号KCの楽音に対応した系列数K(T
C)以上であるか否か、すなわち、その時点までに確保
された発音チャネルの数がノートオンイベントに対応し
た楽音の全系列の音を発音するのに充分な数であるか否
かを判断する。この判断結果が「YES」の場合はステ
ップS209に進み、「NO」の場合はステップS20
8に進む。
Next, in step S207, the value of the control variable i is the sequence number K (T
C) It is judged whether or not it is the above, that is, whether or not the number of sound generation channels secured up to that point is sufficient to sound the entire series of musical tones corresponding to the note-on event. To do. If this determination result is “YES”, the process proceeds to step S209, and if “NO”, the step S20.
Go to 8.

【0019】次にステップS208に進むと、制御変数
iをインクリメントし、次いでステップS203に戻
り、最も減衰の進んだ発音チャネルの番号を求めて発音
割当レジスタA(i)に書き込む。ここで、ステップS
203において最も減衰の進んだ発音チャネルの番号を
求める際、常に「i−1」番目までの発音割当レジスタ
(例えばi=4のときはA(1),A(2),A
(3))に書き込まれた発音チャネル以外のチャネルの
なかで最も減衰の進んだ発音チャネルの番号を求めるよ
うにする。そして、上述と同様にステップS204〜S
206の各処理を実行し、制御変数iをインクリメント
しつつ、発音チャネルA(i)と連動してトランケート
されるべきすべての発音チャネルの番号を発音割当レジ
スタA(i)に順次書き込み、すべての該当発音チャネ
ルの番号の書き込みが終了した時点でステップS207
に進む。
Next, in step S208, the control variable i is incremented, and then the process returns to step S203 to obtain the number of the sounding channel with the most advanced attenuation and write it in the sounding assignment register A (i). Here, step S
When the number of the most attenuated tone generation channel in 203 is determined, the tone generation allocation registers up to the "i-1" th (for example, when i = 4, A (1), A (2), A
Among the channels other than the tone generation channel written in (3)), the number of the tone generation channel with the most attenuation is obtained. Then, similarly to the above, steps S204 to S204
Each processing of 206 is executed, while incrementing the control variable i, the numbers of all the tone generation channels to be truncated in synchronization with the tone generation channel A (i) are sequentially written into the tone generation assignment register A (i), When the writing of the number of the corresponding sounding channel is finished, step S207
Proceed to.

【0020】ノートオンイベントに対応した楽音の全系
列の音を発音するのに充分な数の発音チャネルが確保さ
れると、ステップS207の判断結果が「YES」とな
ってステップS209に進む。そして、発音割当レジス
タA(x)(x=1〜i)によって指定された各発音チ
ャネルにおいて発音中の各楽音を急速減衰すべき旨の指
示をTG17に与える。この結果、ノートオンイベント
に対応した発音を行うために最初に確保された発音チャ
ネルの楽音、およびこの楽音と連動関係にある各楽音が
すべて消音される。
When a sufficient number of sound generation channels have been secured for sounding the entire series of musical tones corresponding to the note-on event, the result of the determination in step S207 is "YES", and the flow advances to step S209. Then, the TG 17 is instructed to rapidly attenuate each musical tone being sounded in each sounding channel designated by the sounding allocation register A (x) (x = 1 to i). As a result, all the musical tones of the sound generation channel that is initially secured for performing the sound corresponding to the note-on event and all musical tones that are linked to the musical tones are muted.

【0021】さて、図6に示すようにチェインデータテ
ーブルCC(k)(k=0〜27)にデータが記憶され
ていた場合に、ステップS203において第3発音チャ
ネルがトランケートすべきチャネルとして検出されたと
する。この場合の動作を以下説明する。まず、ステップ
S203において、発音割当レジスタA(1)に「3」
を書き込む。次に、i=「1」であり、かつ、CC(A
(i))=CC(A(1))=CC(3)=「4」、A
(1)=「3」であるため、iが「2」とされ(ステッ
プS205)、発音割当レジスタA(2)にCC(A
(i−1))=CC(A(1))=CC(3)=「4」
が書き込まれる(ステップS206)。そして、ステッ
プS204に戻ると、この場合、発音割当レジスタA
(1)およびA(2)に「3」および「4」が書き込ま
れており、これらのうち「4」がチェインデータテーブ
ルのエリアCC(A(i))=CC(A(2))=CC
(4)の内容「4」と一致する。従って、ステップS2
04の結果が「Yes」となってステップS207へ進
む。このように、図6に示すようにチェーンデータテー
ブルCC(k)(k=0〜27)の内容が設定されてお
り、第3発音チャネルが最初にトランケート処理の対象
となった場合には、第3および第4発音チャネルのみが
トランケート処理の対象とされ、第0発音チャネルはト
ランケート処理の対象から外れる。また、第4発音チャ
ネルが最初にトランケート処理の対象となった場合も、
上記と同様な結果が得られる。
Now, as shown in FIG. 6, when the data is stored in the chain data table CC (k) (k = 0 to 27), the third tone generation channel is detected as the channel to be truncated in step S203. Suppose The operation in this case will be described below. First, in step S203, "3" is set in the pronunciation assignment register A (1).
Write. Next, i = “1” and CC (A
(I)) = CC (A (1)) = CC (3) = “4”, A
Since (1) = “3”, i is set to “2” (step S205), and CC (A
(I-1)) = CC (A (1)) = CC (3) = “4”
Is written (step S206). Then, returning to step S204, in this case, the pronunciation assignment register A
"3" and "4" are written in (1) and A (2), of which "4" is the area of the chain data table CC (A (i)) = CC (A (2)) = CC
It matches the content “4” of (4). Therefore, step S2
The result of 04 is "Yes" and the process proceeds to step S207. In this way, when the contents of the chain data table CC (k) (k = 0 to 27) are set as shown in FIG. 6 and the third tone generation channel is the target of the truncation process first, Only the third and fourth sounding channels are targeted for truncate processing, and the zeroth sounding channel is excluded from the target of truncate processing. Also, if the 4th sounding channel is the first subject to the truncation process,
Similar results are obtained as above.

【0022】<発音割当処理>次にトランケート処理に
よって確保された発音チャネルに対し、ノートオンイベ
ントに対応した楽音を構成する各音色の発音処理を割り
当てる発音割当処理が行われる。以下、上述のトランケ
ート処理によって第0、第3および第4発音チャネルが
ノートオンイベントに対応した発音を行うための発音チ
ャネルとして確保され、発音割当レジスタA(1)〜A
(3)にそれぞれチャネル番号「0」、「3」および
「4」が書き込まれている場合を例に発音割当処理に係
る動作を説明する。また、以下では発音すべき音色TC
に対応した楽音が系列数Kが「3」の3系列音であり、
3系列の各音のトランケート時の連動関係を指定するチ
ェイン系列データCK(1)〜CK(3)として図3
(d)に示すように「2」、「3」、「2」が各々RO
M12に記憶されている場合を例に説明する。
<Sound Generation Assignment Process> Next, a sound generation assignment process for assigning the sound generation process of each tone color forming the tone corresponding to the note-on event to the sound generation channel secured by the truncation process. Hereinafter, the above-described truncation process secures the 0th, 3rd and 4th sound generation channels as sound generation channels for sounding corresponding to the note-on event, and the sound generation allocation registers A (1) to A (1) -A
The operation related to the sound generation assignment processing will be described by taking the case where the channel numbers “0”, “3” and “4” are written in (3), respectively. In the following, the tone color TC to be pronounced
The musical tones corresponding to are three-sequence sounds with a sequence number K of "3",
As chain series data CK (1) to CK (3) that specify the interlocking relationship of each sound of the three series during truncation, FIG.
As shown in (d), “2”, “3”, and “2” are RO
The case of being stored in M12 will be described as an example.

【0023】まず、ステップS210に進み、制御変数
kに「1」を設定する。次にステップS211に進み、
発音すべき音色TCに対応した音色データTD(TC)
のうちk番目の系列の音色データTKD(k)(この場
合、TKD(1))をROM12から読み出し、ノート
ナンバNCと共に、発音割当レジスタA(k)(この場
合、A(1))によって指定される発音チャネルに対応
した発音データとしてTG17に設定する。次にステッ
プS212に進み、音色データTD(TC)におけるk
番目の系列のチェイン系列データCK(k)、すなわ
ち、この場合、図3(d)に示すCK(1)=「2」を
変数レジスタjに書き込む。次にステップS213に進
み、発音割当レジスタA(j)=A(2)の内容、すな
わち、トランケート処理によって確保された3チャネル
分の発音チャネルのうち第2番目の発音チャネルの番号
「3」をチェインデータテーブルのエリアCC(A
(k))=CC(A(1))=CC(0)に書き込む。
また、MIDIチャネルレジスタMCおよびノートナン
バレジスタNCの各々の内容を発音割当レジスタA
(1)によって指定されるMIDIチャネルデータテー
ブルおよびノートナンバデータテーブルの各エリアM
(A(1))およびN(A(1))、すなわち、第0発
音チャネルに対応した各エリアM(0)およびN(0)
に各々書き込む。このようにしてトランケート処理によ
って確保された第1番目の発音チャネルに対応した制御
データの書き込みが終了する。次にステップS214に
進み、音色データTD(TC)における系列数データK
が制御変数kの値と一致したか否かを判断する。この場
合、K=「3」であり、かつ、k=「1」であるためス
テップS214の判断結果は「No」となり、制御変数
kをインクリメントし(ステップS215)、ステップ
S211に戻る。
First, in step S210, "1" is set in the control variable k. Next, in step S211,
Tone color data TD (TC) corresponding to the tone color TC to be generated
Of the tone color data TKD (k) (in this case, TKD (1)) of the k-th series is read out from the ROM 12 and specified together with the note number NC by the tone allocation register A (k) (in this case, A (1)). It is set in the TG 17 as sound generation data corresponding to the sound generation channel. Next, in step S212, k in the tone color data TD (TC)
The chain series data CK (k) of the th series, that is, CK (1) = “2” shown in FIG. 3D is written in the variable register j in this case. Next, in step S213, the contents of the tone generation assignment register A (j) = A (2), that is, the number "3" of the second tone generation channel among the three tone generation channels secured by the truncation process is set. Area CC (A in the chain data table
Write (k)) = CC (A (1)) = CC (0).
In addition, the contents of the MIDI channel register MC and the note number register NC are stored in the tone generation assignment register A.
Each area M of the MIDI channel data table and note number data table specified by (1)
(A (1)) and N (A (1)), that is, areas M (0) and N (0) corresponding to the 0th tone generation channel.
Write in each. In this way, the writing of the control data corresponding to the first tone generation channel secured by the truncation process is completed. Next, proceeding to step S214, the sequence number data K in the tone color data TD (TC)
Is determined to match the value of the control variable k. In this case, since K = “3” and k = “1”, the determination result of step S214 is “No”, the control variable k is incremented (step S215), and the process returns to step S211.

【0024】次にステップS211に戻ると、発音すべ
き音色TCに対応した音色データTD(TC)のうち2
番目の系列の音色データTKD(2)をROM12から
読み出し、ノートナンバNCと共に、発音割当レジスタ
A(k)(この場合、A(2))によって指定される発
音チャネルに対応した発音データとしてTG17に設定
する。次にステップS212に進み、図3(d)に示す
CK(2)=「3」を変数レジスタjに書き込む。次に
ステップS213に進み、発音割当レジスタA(j)=
A(3)の内容、すなわち、トランケート処理によって
確保された3チャネル分の発音チャネルのうち第3番目
の発音チャネルの番号「4」をチェインデータテーブル
のエリアCC(A(k))=CC(A(2))=CC
(3)に書き込む。また、MIDIチャネルレジスタM
CおよびノートナンバレジスタNCの各々の内容を発音
割当レジスタA(2)によって指定されるMIDIチャ
ネルデータテーブルおよびノートナンバデータテーブル
の各エリアM(A(2))およびN(A(2))、すな
わち、第3発音チャネルに対応した各エリアM(3)お
よびN(3)に各々書き込む。このようにしてトランケ
ート処理によって確保された第2番目の発音チャネルに
対応した制御データの書き込みが終了する。次にステッ
プS214に進み、音色データTD(TC)における系
列数データKが制御変数kの値と一致したか否かを判断
する。この場合、K=「3」であり、かつ、k=「2」
であるためステップS214の判断結果は「No」とな
り、制御変数kをインクリメントし(ステップS21
5)、ステップS211に戻る。
Next, returning to step S211, 2 out of the tone color data TD (TC) corresponding to the tone color TC to be produced.
The tone color data TKD (2) of the th series is read from the ROM 12 and, together with the note number NC, is stored in the TG 17 as the tone generation data corresponding to the tone generation channel designated by the tone generation allocation register A (k) (A (2) in this case). Set. Next, in step S212, CK (2) = “3” shown in FIG. 3D is written in the variable register j. Next, in step S213, the pronunciation assignment register A (j) =
The content of A (3), that is, the number "4" of the third tone generation channel among the tone generation channels for the three channels secured by the truncation process is indicated by the area CC (A (k)) = CC (of the chain data table. A (2)) = CC
Write in (3). Also, the MIDI channel register M
The contents of each of the C and note number registers NC are designated by the pronunciation assignment register A (2), and the areas M (A (2)) and N (A (2)) of the MIDI channel data table and the note number data table are designated. That is, writing is performed in each of the areas M (3) and N (3) corresponding to the third tone generation channel. In this way, the writing of the control data corresponding to the second tone generation channel secured by the truncation process is completed. Next, in step S214, it is determined whether the sequence number data K in the tone color data TD (TC) matches the value of the control variable k. In this case, K = “3” and k = “2”
Therefore, the determination result of step S214 is “No”, and the control variable k is incremented (step S21
5) and returns to step S211.

【0025】再びステップS211に戻ると、発音すべ
き音色TCに対応した音色データTD(TC)のうち3
番目の系列の音色データTKD(3)をROM12から
読み出し、ノートナンバNCと共に、発音割当レジスタ
A(k)(この場合、A(1))によって指定される発
音チャネルに対応した発音データとしてTG17に設定
する。図3(d)に示すCK(3)=「2」を変数レジ
スタjに書き込む。次にステップS213に進み、発音
割当レジスタA(j)=A(2)の内容、すなわち、ト
ランケート処理によって確保された3チャネル分の発音
チャネルのうち第2番目の発音チャネルの番号「3」を
チェインデータテーブルのエリアCC(A(k))=C
C(A(3))=CC(4)に書き込む。また、MID
IチャネルレジスタMCおよびノートナンバレジスタN
Cの各々の内容を発音割当レジスタA(3)によって指
定されるMIDIチャネルデータテーブルおよびノート
ナンバデータテーブルの各エリアM(A(3))および
N(A(3))、すなわち、第4発音チャネルに対応し
た各エリアM(4)およびN(4)に各々書き込む。こ
のようにしてトランケート処理によって確保された第3
番目の発音チャネルに対応した制御データの書き込みが
終了する。次にステップS214に進み、音色データT
D(TC)における系列数データKが制御変数kの値と
一致したか否かを判断する。この場合、ステップS21
4の判断結果は「Yes」となり、ステップS216に
進む。
Returning to step S211, 3 out of the tone color data TD (TC) corresponding to the tone color TC to be produced.
The tone color data TKD (3) of the th series is read from the ROM 12 and, together with the note number NC, is output to the TG 17 as the tone generation data corresponding to the tone generation channel designated by the tone generation assignment register A (k) (A (1) in this case). Set. CK (3) = “2” shown in FIG. 3D is written in the variable register j. Next, in step S213, the contents of the tone generation assignment register A (j) = A (2), that is, the number "3" of the second tone generation channel among the three tone generation channels secured by the truncation process is set. Area CC (A (k)) = C of the chain data table
Write to C (A (3)) = CC (4). Also, MID
I channel register MC and note number register N
The respective contents of C are designated by the pronunciation assignment register A (3) in the areas M (A (3)) and N (A (3)) of the MIDI channel data table and the note number data table, that is, the fourth pronunciation. Writing is performed in each area M (4) and N (4) corresponding to the channel. In this way, the third secured by the truncation process
Writing of the control data corresponding to the th tone generation channel is completed. Next, in step S214, the tone color data T
It is determined whether or not the sequence number data K in D (TC) matches the value of the control variable k. In this case, step S21
The determination result of 4 is "Yes", and the process proceeds to step S216.

【0026】次にステップS216に進むと、発音割当
の行われた各発音チャネル、すなわち、発音割当レジス
タA(x)(x=1〜k)によって指定される各発音チ
ャネル(上記例の場合は第0、第3、第4発音チャネ
ル)へノートオン信号を送る。この結果、TG17によ
り、上記のようにして設定された発音データに対応した
多系列音が発音される。そして、ノートオン処理ルーチ
ンが終了し、メインルーチンに戻る。
Next, in step S216, each tone generation channel to which tone generation is assigned, that is, each tone generation channel designated by the tone generation assignment register A (x) (x = 1 to k) (in the above example, The note-on signal is sent to the 0th, 3rd and 4th sound generation channels. As a result, the TG 17 produces a multi-sequence sound corresponding to the pronunciation data set as described above. Then, the note-on processing routine ends, and the process returns to the main routine.

【0027】<ノートオフ処理>ノートオフイベントが
受信され、RAM13内の受信バッファに取り込まれる
と、受信バッファ処理ルーチンを介し図11にフローを
示すノートオフ処理ルーチンが実行される。まず、ステ
ップS301に進み、ノートオフイベントに対応したM
IDIチャネル番号MCをMIDIチャネルレジスタM
(m)(m=0〜27)の各内容と順次比較し、M
(m)=MCであるM(m)を捜す。次にステップS3
02に進み、ステップS301においてM(m)=MC
であるM(m)が1個でも見つかったか否かを判断す
る。この判断結果が「Yes」の場合はステップS30
3に進み、ステップS301において見つけられた全発
音チャネルにノートオフ信号を送り、それらの発音チャ
ネルにおける発音処理を停止させる。そして、メインル
ーチンに戻る。一方、ステップS302の判断結果が
「No」の場合はステップS303を実行することなく
メインルーチンに戻る。
<Note-Off Processing> When a note-off event is received and taken into the reception buffer in the RAM 13, a note-off processing routine whose flow is shown in FIG. 11 is executed via the reception buffer processing routine. First, in step S301, the M corresponding to the note-off event
IDI channel number MC to MIDI channel register M
(M) (m = 0 to 27) is compared sequentially with each content, and M
Search for M (m) where (m) = MC. Then step S3
02, and in step S301 M (m) = MC
It is determined whether or not even one M (m) is found. If the result of this determination is "Yes", then step S30.
In step 3, the note-off signal is sent to all the sound generation channels found in step S301 to stop the sound generation processing in those sound generation channels. Then, the process returns to the main routine. On the other hand, if the determination result in step S302 is "No", the process returns to the main routine without executing step S303.

【0028】以上説明したように本実施例によれば、多
系列音を構成する音の一部のみが発音途中においてトラ
ンケートされるという不具合が解消される。また、上記
実施例によれば、多系列音を構成する1つの音をトラン
ケートする場合、多系列音を構成する他の音のうちチェ
イン系列データCKによって連動関係の規定された音の
みをトランケートするようにしたので、必要以上に多く
の音がトランケートされることのない、柔軟性に富んだ
トランケート処理を行うことができるという利点があ
る。以下、図13を参照し、この利点について説明す
る。図13(a)および(b)は各々2系列音のトラン
ケートが行われる場合の各系列の音のエンベロープ波形
を例示したものである。まず、2系列音が周期成分およ
び雑音成分からなる混合音色音である場合、雑音成分の
みがトランケートされたとしても何等音楽的違和感を生
じない。そこで、このような場合には、周期成分に対応
した系列を1、雑音成分に対応した系列を2とすると、
チェイン系列データCK(1)およびCK(2)として
「2」、「2」をROM12に設定しておく。このよう
にすることで、系列2の音がトランケートすべき音とし
て先に決定された場合には、図13(a)に示すように
系列2の音(雑音成分)のみがトランケートされ、系列
1の音(周期成分)はトランケートされることなく持続
する。逆に系列1の音がトランケートすべき音として先
に決定された場合には系列1および2の各音が共にトラ
ンケートされる。また、2系列音のうちいずれが途中か
ら欠けたとしても音楽的違和感が生じてしまう場合に
は、CK(1)=「2」、CK(2)=「1」とする。
このような設定を行うことで、系列1あるいは2のうち
いずれがトランケートすべき音として先に決定されたと
しても、図13(b)に示すように系列1および2の各
音が共にトランケートされる。
As described above, according to this embodiment, the problem that only a part of the sounds constituting the multi-sequence sound is truncated during the sound generation is solved. Further, according to the above-described embodiment, when truncating one sound forming a multi-sequence sound, only the sound having the interlocking relationship defined by the chain sequence data CK among other sounds constituting the multi-sequence sound is truncated. Since this is done, there is the advantage that it is possible to perform highly flexible truncation processing in which more sounds are not truncated. Hereinafter, this advantage will be described with reference to FIG. FIGS. 13A and 13B exemplify envelope waveforms of sounds of each series when two series of sounds are truncated. First, in the case where the two-sequence sound is a mixed tone color sound composed of a periodic component and a noise component, no musical discomfort will occur even if only the noise component is truncated. Therefore, in such a case, if the sequence corresponding to the periodic component is 1, and the sequence corresponding to the noise component is 2,
“2” and “2” are set in the ROM 12 as the chain series data CK (1) and CK (2). By doing so, when the sound of the sequence 2 is previously determined as the sound to be truncated, only the sound (noise component) of the sequence 2 is truncated as shown in FIG. Sound (periodic component) continues without being truncated. On the contrary, when the sound of the series 1 is previously determined as the sound to be truncated, the sounds of the series 1 and 2 are both truncated. Further, if any of the two series sounds is missing in the middle, a musical uncomfortable feeling is generated, CK (1) = “2” and CK (2) = “1”.
By making such a setting, no matter which one of the series 1 or 2 is determined as the sound to be truncated first, both the sounds of the series 1 and 2 are truncated as shown in FIG. 13B. It

【0029】なお、多系列音の各音のトランケート制御
は上記実施例において説明した制御方法に限定されるも
のではない。例えば、図14に示すように各発音チャネ
ルchについてフラグR(ch)を用意する。そして、
発音割当処理の際、発音チャネルchに割り当てた音を
トランケートする場合に同時にトランケートせねばなら
ない他の音がある場合には、フラグR(ch)の各ビッ
トのうち、発音チャネルchに対応した音と同時にトラ
ンケートすべき音の割り当てられた発音チャネルに対応
したビット位置に“ 1”にセットする。このようにす
ることで、発音チャネルchにトランケート処理が施さ
れる場合には、フラグR(ch)において“1”がセッ
トされている各ビットに対応した発音チャネルに対して
も同時にトランケート処理が施される。図14に示す例
では、第0発音チャネルがトランケート処理の対象とな
るのに伴って第5および第6発音チャネルがトランケー
ト処理の対象となる。一方、第5あるいは第6発音チャ
ネルが先にトランケート処理の対象となる場合には、第
5および第6発音チャネルのみのトランケート処理が行
われ、第0発音チャネルに対するトランケート処理は行
われない。また、上記実施例では、ある発音チャネルc
hに割り当てられた音と連動してトランケートすべき音
がある場合にはその音の発音チャネルの番号ch’をチ
ェインデータテーブルCC(ch)に書き込むようにし
たが、ch’−chをCC(ch)に書き込むようにし
てもよい。
The truncation control of each sound of the multi-sequence sound is not limited to the control method described in the above embodiment. For example, as shown in FIG. 14, a flag R (ch) is prepared for each tone generation channel ch. And
In the sound assignment process, if there is another sound that must be truncated at the same time when the sound assigned to the sound generation channel is truncated, the sound corresponding to the sound generation channel ch among the bits of the flag R (ch) is generated. At the same time, "1" is set to the bit position corresponding to the sounding channel to which the sound to be truncated is assigned. By doing so, when the truncation process is performed on the tone generation channel ch, the truncation process is simultaneously performed on the tone generation channel corresponding to each bit for which "1" is set in the flag R (ch). Is given. In the example shown in FIG. 14, the fifth and sixth tone generation channels are subject to truncate processing as the 0th tone generation channel is subject to truncate processing. On the other hand, if the fifth or sixth tone generation channel is the target of the truncation process first, only the fifth and sixth tone generation channels are truncated, and the zeroth tone generation channel is not truncated. In the above embodiment, a certain sounding channel c
When there is a sound that should be truncated in association with the sound assigned to h, the tone generation channel number ch 'of that sound is written in the chain data table CC (ch), but ch'-ch is changed to CC ( ch).

【0030】[0030]

【発明の効果】以上説明したように、この発明によれ
ば、演奏情報を発生する演奏情報発生手段と、楽音を形
成する複数の楽音形成手段と、前記演奏情報に応答し、
(a)該演奏情報に対応した楽音を形成するのに充分な
数の前記楽音形成手段に対して形成中の楽音の消音を指
示し、かつ、(b)該消音の指示を行った楽音形成手段
のうち該演奏情報に対応した楽音を形成するのに必要な
数の楽音形成手段に対して該演奏情報に対応した楽音の
形成を指示する手段であって、(c)前記楽音形成手段
の1つに前記消音の指示を行うことを決定し、かつ、そ
の楽音形成手段が形成している楽音と同時に消音すべき
楽音を他の楽音形成手段が形成している場合には、これ
らの同時に消音すべき各楽音を形成しているすべての楽
音形成手段に前記消音の指示を行う発音割当手段とを設
けたので、複数系列の音色を含んだ多系列音を発生する
ことができると共に、音楽的違和感を生じることなく、
多系列音の消音処理を行うことができ、従来にない高い
演奏効果が得られるという効果がある。
As described above, according to the present invention, performance information generating means for generating performance information, a plurality of musical sound forming means for forming musical sounds, and response to the performance information,
(A) Instructing the tone forming means of a sufficient number to form a tone corresponding to the performance information to mute the tone being formed, and (b) forming a tone by instructing the tone mute. Of the means, means for instructing the formation of the musical sound corresponding to the performance information to the necessary number of musical sound forming means for forming the musical sound corresponding to the performance information, comprising: (c) the musical sound forming means. If it is decided to give one of the above-mentioned mute instructions, and the tone to be silenced is simultaneously formed by the other tone forming means at the same time as the tone formed by the tone forming means, these are simultaneously formed. Since all the tone forming means forming each tone to be muted is provided with a sound allocating means for instructing the muting, it is possible to generate a multi-sequence sound including a plurality of timbres and to generate music. Without feeling uncomfortable,
There is an effect that it is possible to perform muffling processing of multi-series sound and obtain a high performance effect that has not been obtained in the past.

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

【図1】 この発明の一実施例による電子楽器の構成を
示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an electronic musical instrument according to an embodiment of the present invention.

【図2】 同実施例におけるROM12に記憶された音
色データテーブルを示す図である。
FIG. 2 is a diagram showing a tone color data table stored in a ROM 12 in the same embodiment.

【図3】 同実施例におけるチェイン系列データを例示
する図である。
FIG. 3 is a diagram showing an example of chain series data in the embodiment.

【図4】 図3に示されたチェイン系列データによって
指定された多系列音の各音のトランケート時の連動関係
を示す図である。
FIG. 4 is a diagram showing an interlocking relationship at the time of truncation of each sound of a multi-sequence sound designated by the chain sequence data shown in FIG.

【図5】 同実施例におけるRAM13内に設定された
各テーブルを示す図である。
FIG. 5 is a diagram showing each table set in a RAM 13 in the embodiment.

【図6】 同実施例におけるチェインデータテーブルの
内容を例示する図である。
FIG. 6 is a diagram showing an example of contents of a chain data table in the embodiment.

【図7】 同実施例の動作を説明するフローチャートで
ある。
FIG. 7 is a flowchart illustrating the operation of the embodiment.

【図8】 同実施例の動作を説明するフローチャートで
ある。
FIG. 8 is a flowchart illustrating the operation of the embodiment.

【図9】 同実施例の動作を説明するフローチャートで
ある。
FIG. 9 is a flowchart illustrating the operation of the embodiment.

【図10】 同実施例の動作を説明するフローチャート
である。
FIG. 10 is a flowchart illustrating the operation of the embodiment.

【図11】 同実施例の動作を説明するフローチャート
である。
FIG. 11 is a flowchart illustrating the operation of the embodiment.

【図12】 同実施例の動作を説明するフローチャート
である。
FIG. 12 is a flowchart illustrating the operation of the embodiment.

【図13】 同実施例の効果を説明する図である。FIG. 13 is a diagram for explaining the effect of the same embodiment.

【図14】 同実施例の変形例を説明する図である。FIG. 14 is a diagram illustrating a modified example of the same embodiment.

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

11……CPU、12……ROM、13……RAM、1
7……音源。
11 ... CPU, 12 ... ROM, 13 ... RAM, 1
7 ... Sound source.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 演奏情報を発生する演奏情報発生手段
と、 楽音を形成する複数の楽音形成手段と、 前記演奏情報に応答し、(a)該演奏情報に対応した楽
音を形成するのに充分な数の前記楽音形成手段に対して
形成中の楽音の消音を指示し、かつ、(b)該消音の指
示を行った楽音形成手段のうち該演奏情報に対応した楽
音を形成するのに必要な数の楽音形成手段に対して該演
奏情報に対応した楽音の形成を指示する手段であって、
(c)前記楽音形成手段の1つに前記消音の指示を行う
ことを決定し、かつ、その楽音形成手段が形成している
楽音と同時に消音すべき楽音を他の楽音形成手段が形成
している場合には、これらの同時に消音すべき各楽音を
形成しているすべての楽音形成手段に前記消音の指示を
行う発音割当手段とを具備することを特徴とする電子楽
器。
1. A musical performance information generating means for generating musical performance information, a plurality of musical sound forming means for forming musical tones, and (a) sufficient to form musical tones corresponding to the musical performance information in response to the musical performance information. Necessary to instruct a large number of the musical tone forming means to mute the musical tone being formed, and (b) form the musical tone corresponding to the performance information among the musical tone forming means that has issued the mute instruction. Means for instructing a number of musical tone forming means to form musical tones corresponding to the performance information,
(C) It is determined that one of the musical tone forming means is instructed to mute, and another musical tone forming means forms a musical tone to be muted at the same time as the musical tone formed by the musical tone forming means. If there is, the electronic musical instrument is provided with a tone generation assigning means for instructing the tone generation to all the tone forming means forming each tone to be silenced at the same time.
JP08910792A 1992-04-09 1992-04-09 Music synthesizer Expired - Fee Related JP3190103B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08910792A JP3190103B2 (en) 1992-04-09 1992-04-09 Music synthesizer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08910792A JP3190103B2 (en) 1992-04-09 1992-04-09 Music synthesizer

Publications (2)

Publication Number Publication Date
JPH05289670A true JPH05289670A (en) 1993-11-05
JP3190103B2 JP3190103B2 (en) 2001-07-23

Family

ID=13961674

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08910792A Expired - Fee Related JP3190103B2 (en) 1992-04-09 1992-04-09 Music synthesizer

Country Status (1)

Country Link
JP (1) JP3190103B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6419393A (en) * 1987-07-14 1989-01-23 Roland Kk Automatic performer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6419393A (en) * 1987-07-14 1989-01-23 Roland Kk Automatic performer

Also Published As

Publication number Publication date
JP3190103B2 (en) 2001-07-23

Similar Documents

Publication Publication Date Title
CN108630178B (en) Musical tone generating apparatus, musical tone generating method, recording medium, and electronic musical instrument
US5206446A (en) Electronic musical instrument having a plurality of tone generation modes
JP2623878B2 (en) Electronic musical instrument
JP3694172B2 (en) Reverberation resonance apparatus and reverberation resonance method
US5074183A (en) Musical-tone-signal-generating apparatus having mixed tone color designation states
US10026386B2 (en) Apparatus, method and computer program for memorizing timbres
US5338892A (en) Musical tone generation apparatus utilizing pitch dependent timing delay
JP3190103B2 (en) Music synthesizer
JP3518716B2 (en) Music synthesizer
JP2698942B2 (en) Tone generator
US6414232B2 (en) Tone generation method and apparatus based on software
JP4306138B2 (en) Musical sound generator and musical sound generation processing program
JP6851578B2 (en) Musical tone generator, musical tone generator, musical tone generator and electronic musical instrument
JP3278857B2 (en) Musical tone generator
JPH096343A (en) Musical tone signal generator
JP3508139B2 (en) Digital signal processor
JP3660125B2 (en) Electronic musical instrument sound image localization control device
JP3334483B2 (en) Waveform memory type tone generator that can input external waveform
JPH1049159A (en) Musical tone generator of electronic musical instrument
JPH05210385A (en) Electronic musical instrument
JPH02136895A (en) Electronic musical instrument
JP2529227Y2 (en) Electronic musical instrument
JPH0764553A (en) Electronic musical instrument
JPH11282468A (en) Musical sound generator and musical sound generation method
JPH0727374B2 (en) Electronic musical instrument

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090518

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees