JP3048526B2 - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JP3048526B2
JP3048526B2 JP8192399A JP19239996A JP3048526B2 JP 3048526 B2 JP3048526 B2 JP 3048526B2 JP 8192399 A JP8192399 A JP 8192399A JP 19239996 A JP19239996 A JP 19239996A JP 3048526 B2 JP3048526 B2 JP 3048526B2
Authority
JP
Japan
Prior art keywords
tone
performance
assigned
group
sound
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP8192399A
Other languages
Japanese (ja)
Other versions
JPH096355A (en
Inventor
敏 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP8192399A priority Critical patent/JP3048526B2/en
Publication of JPH096355A publication Critical patent/JPH096355A/en
Application granted granted Critical
Publication of JP3048526B2 publication Critical patent/JP3048526B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

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 generating a melody sound, a percussion instrument sound and a sound effect.

【0002】[0002]

【従来の技術】演奏操作子として、鍵盤の他にパッドを
備え、パッドの操作に応じて打楽器音を発生するように
した電子楽器が知られている。また、発音する打楽器音
の種類(例えば、ハイハット、シングル、バスドラム、
トライアングル等)を各パッド毎にプログラムすること
ができるようにした電子楽器が、例えば特願昭62−3
32271号において提案されている。この種の電子楽
器の中には、ホールドモード機能を有するものがあり、
そのような電子楽器においては、パッドまたは鍵を操作
すると、そのパッドまたは鍵に対応した楽音情報に基づ
いて楽音を発生し、また、パッドまたは鍵がOFFされ
た後もその楽音情報を保持して、発音を持続させること
ができる。
2. Description of the Related Art As musical performance operators, there are known electronic musical instruments having a pad in addition to a keyboard, and generating percussion sounds in accordance with the operation of the pad. Also, the type of percussion instrument sound (for example, hi-hat, single, bass drum,
For example, Japanese Patent Application No. Sho 62-3 discloses an electronic musical instrument in which a triangle or the like can be programmed for each pad.
No. 32271. Some electronic musical instruments of this type have a hold mode function.
In such an electronic musical instrument, when a pad or key is operated, a tone is generated based on tone information corresponding to the pad or key, and the tone information is retained even after the pad or key is turned off. , Can sustain pronunciation.

【0003】[0003]

【発明が解決しようとする課題】ところで、従来のホー
ルドモード機能付き電子楽器においては、発音された楽
音が減衰音である場合、その楽音は所定のエンベロープ
波形に従って減衰してしまうため、楽音情報を保持して
も発音が持続しないという問題があった。
In a conventional electronic musical instrument with a hold mode function, when a generated tone is an attenuated tone, the tone is attenuated according to a predetermined envelope waveform. There was a problem that pronunciation was not maintained even if it was held.

【0004】この発明は上述した事情に鑑みてなされた
もので、発音する楽音が減衰音である場合でも、演奏操
作子の操作後にその発音を持続することができる電子楽
器を提供することを目的としている。また、この発明の
さらなる目的は、発音可能な楽音の種類が豊富で、多彩
な演奏効果を奏することができる電子楽器を提供するこ
とにある。
[0004] The present invention has been made in view of the above circumstances, and has as its object to provide an electronic musical instrument that can maintain sound generation after operation of a performance operation element even when a musical sound to be generated is an attenuated sound. And In addition, the present invention
A further purpose is that there are a wide variety of
To provide electronic musical instruments that can produce
And there.

【0005】[0005]

【課題を解決するための手段】請求項1に記載の発明
は、複数の演奏操作子と、この複数の演奏操作子の各々
について、複数の音色のうちの任意の音色を割り当てる
割当手段と、この複数の演奏操作子の操作に応じて、各
演奏操作子に割り当てられた音色の楽音信号を発生する
複数の発音チャネルを有した楽音発生手段と、前記演奏
操作子に割り当てられた音色の楽音信号を、前記演奏操
作子の1回の操作に対して、前記音色毎に定められた所
定時間間隔で複数繰り返し発生させるように前記楽音発
生手段を制御する制御手段であって、前記発生している
楽音毎に前記時間間隔を管理し、前記楽音信号の発生を
複数の音色について複数の発音チャネルで同時に、かつ
独立した時間間隔で繰り返し可能にするものと、ホール
ドモードと非ホールドモードを指定する指定手段とを具
備し、前記制御手段は、前記指定手段でホールドモード
が指定された場合には、前記楽音信号を前記楽音発生手
段で前記演奏操作子の1回の操作に対して所定時間間隔
で複数発生させ、前記指定手段で非ホールドモードが指
定された場合には、前記楽音信号を前記楽音発生手段で
前記演奏操作子の1回の操作に対して1つ発生させるも
のであることを特徴とする電子楽器である。また、請求
項2に記載の発明は、複数の演奏操作子と、この複数の
演奏操作子の各々について、複数の音色のうちの任意の
音色を割り当てる割当手段と、この複数の演奏操作子の
操作に応じて、各演奏操作子に割り当てられた音色の楽
音信号を発生する複数の発音チャネルを有した楽音発生
手段と、前記演奏操作子に割り当てられた音色の楽音信
号を、前記演奏操作子の1回の操作に対して、前記音色
毎に定められた所定時間間隔で複数繰り返し発生させる
ように前記楽音発生手段を制御する制御手段であって、
前記発生している楽音毎に前記時間間隔を管理し、前記
楽音信号の発生を複数の音色について複数の発音チャネ
ルで同時に、かつ独立した時間間隔で繰り返し可能にす
るものとを具備してなり、前記割当手段は、前記複数の
演奏操作子の各々について第1グループの音色または第
2グループの音色のうちのいずれか一方のグループの音
色を任意に割り当てるものであり、前記制御手段は、前
記複数の演奏操作子のうちの操作された演奏操作子に割
当てられた音色が前記第1グループの音色であるか前
記第2グループの音色であるかを判断し、前記操作され
た演奏操作子に割り当てられた音色が前記第1グループ
の音色である場合には、該演奏操作子に割り当てられた
音色の楽音信号を前記楽音発生手段で持続して発生さ
せ、前記操作された演奏操作子に割り当てられた音色が
前記第2グループの音色である場合には、該演奏操作子
に割り当てられた音色の楽音信号を前記楽音発生手段で
該演奏操作子の1回の操作に対して所定時間間隔で複数
発生させるものであることを特徴とする電子楽器であ
る。また、請求項3に記載の発明は、請求項1に記載の
電子楽器において、前記割当手段は、前記複数の演奏操
作子の各々について第1グループの音色または第2グル
ープの音色のうちのいずれか一方のグループの音色を任
意に割り当てるものであり、前記制御手段は、前記複数
の演奏操作子のうちの操作された演奏操作子に割り当て
られた音色が前記第1グループの音色であるか前記第2
グループの音色であるかを判断し、前記操作された演奏
操作子に割り当てられた音色が前記第1グループの音色
である場合には、該演奏操作子に割り当てられた音色の
楽音信号を前記楽音発生手段で持続して発生させ、前記
操作された演奏操作子に割り当てられた音色が前記第2
グループの音色である場合には、該演奏操作子に割り当
てられた音色の楽音信号を前記楽音発生手段で該演奏操
作子の1回の操作に対して所定時間間隔で複数発生させ
るものであることを特徴としている。
According to a first aspect of the present invention, there are provided a plurality of performance operators, and an allocating means for assigning an arbitrary one of a plurality of timbres to each of the plurality of performance operators. A musical tone generating means having a plurality of tone generation channels for generating musical tone signals of the tone assigned to each of the performance operators in response to the operation of the plurality of performance operators; and a musical tone of the tone assigned to the performance operator. Control means for controlling the musical tone generating means so as to repeatedly generate a plurality of signals at a predetermined time interval determined for each timbre for one operation of the performance operation element; A method of managing the time interval for each musical tone that is present , enabling the generation of the musical tone signal to be repeated simultaneously at a plurality of tone generation channels for a plurality of tone colors at independent time intervals, and
And a specifying means for specifying the non-hold mode and the non-hold mode.
Wherein the control means is in the hold mode by the designation means.
Is specified, the tone signal is converted to the tone generator.
A predetermined time interval for one operation of the performance operator in a row
And the non-hold mode is specified by the
If it is set, the musical tone signal is generated by the musical tone generating means.
One is generated for each operation of the performance operator.
It is an electronic musical instrument, characterized in that the at is. Further, the invention according to claim 2 includes a plurality of performance operators and the plurality of performance operators.
For each of the performance controls, select one of the
Assigning means for assigning a tone;
Depending on the operation, the tone of the tone assigned to each performance
Tone generation with multiple sound channels for generating sound signals
Means and a tone signal of a tone assigned to the performance operator.
Signal for one operation of the performance operator.
Generate multiple times at predetermined time intervals determined for each
Control means for controlling the musical tone generating means,
Managing the time intervals for each of the musical tones generated,
Generates a tone signal for multiple timbres using multiple pronunciation channels.
At the same time and at independent time intervals.
And the allocating means comprises:
For each of the performance operators, the first group of timbres or
One of the two groups of sounds
The color is arbitrarily assigned, and the control means
Assigned to the operated performance operator among the plurality of performance operators.
Ri or against was tone is tone of the first group before
It is determined whether the tone belongs to the second group.
The tone assigned to the performance operator is the first group.
Is assigned to the performance operator.
A tone signal of a tone is continuously generated by the tone generating means.
And the tone assigned to the operated performance operator is
If the tone belongs to the second group, the performance operator
The tone signal of the tone assigned to
Multiple times at a predetermined time interval for one operation of the performance operator
An electronic musical instrument characterized by being generated
You. Further, the invention according to claim 3, an electronic musical instrument according to claim 1, wherein the allocation means, any of the tone of the tone color or the second group of the first group for each of the plurality of performance operators Arbitrarily assigning one of the groups of timbres, and the control means determines whether the timbre assigned to the operated one of the plurality of performance operators is the timbre of the first group. Second
It is determined whether the tone is a group tone. If the tone assigned to the operated performance operator is the tone of the first group, the tone signal of the tone assigned to the performance operator is converted to the tone tone. The tone generated continuously by the generating means and assigned to the operated performance operator is the second tone.
When the tone is a group tone, a plurality of tone signals of the tone assigned to the performance operator are generated by the tone generator at a predetermined time interval for one operation of the performance operator. It is characterized by.

【0006】[0006]

【発明の実施の形態】以下、図面を参照して本発明の一
実施形態について説明する。かかる実施形態は、本発明
の一態様を示すものであり、この発明を限定するもので
はなく、本発明の範囲内で任意に変更可能である。この
実施形態では、各パッドは、予めファクトリセットされ
ている打楽器音、アサインされた打楽器音、アサインさ
れた効果音のいずれかの発音に選択的に使用される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. Such an embodiment shows one aspect of the present invention, does not limit the present invention, and can be arbitrarily changed within the scope of the present invention. In this embodiment, each pad is selectively used for producing any one of a preset percussion instrument sound, an assigned percussion instrument sound, and an assigned effect sound.

【0007】図1はこの発明の一実施形態による電子楽
器の構成を示すブロック図である。この図において、1
は多数の鍵を備えた鍵盤、2はパッドPA1〜PAMを備
えたパッド操作部であり、これらにより演奏操作部3が
構成されている。また、4は、プログラムモードスイッ
チ4a、パッドモードスイッチ4b、ホールドモードス
イッチ4cおよびその他のスイッチ群を装備してなるス
イッチ部である。また、5は楽音形成部であり、メロデ
ィ音の楽音信号を形成するトーンジェネレータTG1
と、打楽器音および効果音の楽音信号を形成するトーン
ジェネレータTG2とからなる。この楽音形成部5から
出力される各楽音信号は、合成部6によって合成され、
合成された楽音信号がサウンドシステム7に供給され、
楽音が発生される。
FIG. 1 is a block diagram showing the configuration of an electronic musical instrument according to one embodiment of the present invention. In this figure, 1
The keyboard with multiple keys, 2 is a pad operation unit having a pad PA 1 ~PA M, the performance operation portion 3 is composed of these. Reference numeral 4 denotes a switch unit including a program mode switch 4a, a pad mode switch 4b, a hold mode switch 4c, and other switch groups. Reference numeral 5 denotes a tone generator which generates a tone signal of a melody tone.
And a tone generator TG2 for forming musical sound signals of percussion sounds and sound effects. Each tone signal output from the tone generator 5 is synthesized by the synthesizer 6,
The synthesized tone signal is supplied to the sound system 7,
A tone is generated.

【0008】8はこの電子楽器全体を制御するCPU
(中央演算処理装置)、9は制御プログラムおよび各種
データテーブルの記憶されたROM(リードオンリメモ
リ)、10は一時記憶エリアと各種レジスタおよびフラ
グが設定されているRAM(ランダムアクセスメモリ)
である。また、11はタイマであり、設定された時間を
計時した場合にCPU8に割り込み信号を出力する。以
上説明した演奏操作部3、スイッチ部4、楽音形成部
5、CPU8、ROM9、RAM10およびタイマ11
はバスBを介し相互接続されている。
A CPU 8 controls the entire electronic musical instrument.
(Central processing unit), 9 is a ROM (read only memory) in which a control program and various data tables are stored, and 10 is a RAM (random access memory) in which a temporary storage area and various registers and flags are set.
It is. Reference numeral 11 denotes a timer, which outputs an interrupt signal to the CPU 8 when a set time is counted. The above-described performance operation unit 3, switch unit 4, tone generation unit 5, CPU 8, ROM 9, RAM 10, and timer 11
Are interconnected via a bus B.

【0009】次に、RAM10に設定された各種レジス
タおよびフラグと、ROM9に記憶された各種データテ
ーブルを以下に列挙して説明する。なお、これらRAM
10内の各種レジスタおよびフラグの代表的なものと、
ROM9内の各種データテーブルの代表的なものは、各
々図2および図3に示されている。
Next, various registers and flags set in the RAM 10 and various data tables stored in the ROM 9 will be listed and described below. Note that these RAMs
Representatives of various registers and flags in 10,
Representative data tables in the ROM 9 are shown in FIGS. 2 and 3, respectively.

【0010】<RAM10内のレジスタおよびフラグ> ◇プログラムモードフラグPGM:プログラムスイッチ
4aが押される毎に内容が反転する。このフラグの内容
に対応して以下のように動作モードが切り換えられる。 PGM=“0”……通常演奏モード。 PGM=“1”……プログラムモード。
<Registers and Flags in RAM 10> Program mode flag PGM: The contents are inverted each time the program switch 4a is pressed. The operation mode is switched as follows according to the content of this flag. PGM = "0" ... Normal performance mode. PGM = "1" ... Program mode.

【0011】◇パッドモードフラグPMD:パッドモー
ドスイッチ4bが押される毎に内容が反転する。このフ
ラグの内容に対応して以下のように動作モードが切り換
えられる。 PMD=“0”……パッドPA1〜PAMがONされた場
合、後述するパッド音源テーブルPET(i)(i=1
〜M)に従って打楽器音あるいは効果音が発生される。 PMD=“1”……パッドPA1〜PAMがONされた場
合、後述するパッドアサインテーブルPAST(i)
(i=1〜M)に従って打楽器音あるいは効果音が発生
される。
(4) Pad mode flag PMD: The contents are inverted each time the pad mode switch 4b is pressed. The operation mode is switched as follows according to the content of this flag. PMD = "0" If you ...... pad PA 1 ~PA M is ON, which will be described later pad sound source table PET (i) (i = 1
~ M), a percussion instrument sound or a sound effect is generated. If the PMD = "1" ...... pad PA 1 ~PA M is ON, which will be described later pad assigning table PAST (i)
A percussion instrument sound or a sound effect is generated according to (i = 1 to M).

【0012】◇ホールドモードフラグHLD:ホールド
モードスイッチ4cが押される毎に内容が反転する。こ
のフラグの内容に対応して以下のように打楽器音および
効果音の形成制御が切り換えられる。 HLD=“0”……PEN情報(後述)の上位2ビット
を無効とする。この場合、効果音も打楽器音と同様、ア
タック後は所定のカーブに従って減衰するように楽音信
号が形成される。 HLD=“1”……PEN情報(後述)の上位2ビット
を有効とする。
(2) Hold mode flag HLD: The contents are inverted each time the hold mode switch 4c is pressed. In accordance with the content of this flag, the control of forming percussion instrument sounds and sound effects is switched as follows. HLD = “0”... The upper two bits of PEN information (described later) are invalidated. In this case, similarly to the percussion instrument sound, the tone signal is formed such that it attenuates according to a predetermined curve after the attack. HLD = “1”... The upper two bits of PEN information (described later) are made valid.

【0013】◇音源指定レジスタPEN:音の種類を指
定するPEN(パーカッション・エフェクト・ナンバ)
情報を格納する8ビット構成のレジスタ。PEN情報の
上位2ビットは、以下に示すような形成すべき楽音の区
分を指定する。 上位2ビット=00……打楽器音。 (例)ハイハット、シンバル、バスドラム、トライアン
グル 上位2ビット=01……持続性を持った効果音。 (例)波、ブレーキ音、爆発音 上位2ビット=10…一所定時間間隔毎にアタックを繰
り返す効果音。 (例)列車の音、教会の鐘、ピストル 上位2ビット=11……ランダムな時間間隔でアタック
を繰り返す効果音。 (例)雷、鳥のさえずり、風、川のせせらぎ また、PEN情報の下位6ビットは詳細な音の種類を指
定する。
(4) Sound source specification register PEN: PEN (percussion effect number) for specifying the type of sound
An 8-bit register for storing information. The upper two bits of the PEN information specify a musical tone section to be formed as shown below. Upper 2 bits = 00 percussion instrument sound. (Example) Hi-hat, cymbal, bass drum, triangle High-order 2 bits = 01 ... Sound effect with persistence. (Example) Wave, brake sound, explosion sound High-order 2 bits = 10 ... sound effect that repeats the attack at one predetermined time interval. (Example) Train sound, church bell, pistol Upper 2 bits = 11 ... Sound effect that repeats the attack at random time intervals. (Example) Thunder, birdsong, wind, river babble The lower 6 bits of the PEN information specify a detailed sound type.

【0014】◇パッドONフラグPON(i)(i=1
〜M):パッドPA1〜PAMがON状態か否かを示すフ
ラグ。パッドPAiがON状態の場合にフラグPON
(i)は“1”となる。
(4) Pad ON flag PON (i) (i = 1
To M): Flags indicating whether the pads PA 1 to PA M are ON. Flag PON when the pad PA i is ON
(I) becomes "1".

【0015】◇チャネルONフラグCHON(j)(j
=1〜N):トーンジェネレータTG2の各発音チャネ
ルが使用中であるか否かを示すフラグ。第j番目の発音
チャネルが使用中の場合にCHON(j)は“1”とな
る。
Channel ON flag CHON (j) (j
= 1 to N): Flag indicating whether or not each tone generation channel of tone generator TG2 is in use. CHON (j) becomes "1" when the j-th sounding channel is in use.

【0016】◇チャネルテーブルCHPEN(j)(j
=1〜N):トーンジェネレータTG2の各発音チャネ
ルにおいて発音中の音源の種類を示すテーブル。このテ
ーブルには上述したPEN情報が格納される。
{Channel table CHPEN (j) (j)
= 1 to N): A table indicating the type of sound source that is sounding in each sounding channel of the tone generator TG2. This table stores the PEN information described above.

【0017】◇パッドアサインテーブルPAST(i)
(i=1〜M):パッドPA1〜PAMの各々に対応する
音源の種類を示すテーブル。このテーブルには、上述し
たPEN情報が書き込まれる。
(4) Pad assignment table PAST (i)
(I = 1 to M ): a table indicating the type of sound source corresponding to each of the pads PA 1 to PA M. The PEN information described above is written in this table.

【0018】◇チャネル毎の待ち時間テーブルWTD
(j)(j=1〜N):アタックを繰り返す効果音を発
生する場合のアタックから次のアタックまでの待ち時間
を各発音チャネル対応で記憶するテーブル。トーンジェ
ネレータTG2の第j番目の発音チャネルにおいてアタ
ックを繰り返す効果音を発音する場合、その待ち時間は
WTD(j)に格納される。
(4) Wait time table WTD for each channel
(J) (j = 1 to N): A table for storing the waiting time from the attack to the next attack when a sound effect that repeats an attack is generated, for each sounding channel. When producing a sound effect that repeats an attack in the j-th sounding channel of the tone generator TG2, the waiting time is stored in WTD (j).

【0019】<ROM9内テーブル> ◇音源種類テーブルKPC(k)(k=1〜NK):本
電子楽器は、鍵盤1の各鍵毎に打楽器音あるいは効果音
が割り当てられている。このテーブルには、各鍵に割り
当てられた音の種類を示すPEN情報が記憶されてい
る。
<Table in ROM 9> ◇ Sound source type table KPC (k) (k = 1 to NK): In this electronic musical instrument, percussion sounds or sound effects are assigned to each key of the keyboard 1. This table stores PEN information indicating the type of sound assigned to each key.

【0020】◇パッド音源テーブル:PET(i)(i
=1〜M):このテーブルには、打楽器音あるいは効果
音の種類を指定するPEN情報が、パッドPA1〜PAM
に対応してファクトリセットされている。
(2) Pad sound source table: PET (i) (i
= 1 to M): This table is PEN information specifying the type of percussion instrument sounds or sound effects, pads PA 1 ~PA M
The factory set corresponding to.

【0021】◇待ち時間テーブルWT(n)(n=1〜
NP):このテーブルには、効果音におけるアタック部
の発生間隔を指定する情報が、PEN情報対応で記憶さ
れている。
{Wait time table WT (n) (n = 1 to 1)
NP): In this table, information designating the interval of occurrence of an attack portion in a sound effect is stored in correspondence with PEN information.

【0022】◇スケーリングテーブルWTSP(n)
(n=1〜NP):このテーブルには、待ち時間テーブ
ルWT(n)の各要素に対応したスケーリングパラメー
タが記憶されている。アタック間隔がランダムな効果音
を発生する場合は、乱数を発生し、これに対してスケー
リングパラメータを乗じ、さらに待ち時間テーブルWT
(n)の内容を加算することにより次アタックまでの待
ち時間が算出される。
(2) Scaling table WTSP (n)
(N = 1 to NP): This table stores scaling parameters corresponding to each element of the waiting time table WT (n). When a sound effect with a random attack interval is generated, a random number is generated, multiplied by a scaling parameter, and the waiting time table WT
By adding the contents of (n), the waiting time until the next attack is calculated.

【0023】以下、この電子楽器の動作を説明する。こ
の電子楽器のCPU8は、図4にそのジェネラルフロー
を示したメインルーチンを実行する。この図に示すよう
に、この電子楽器の電源が投入されると、CPU8は初
期設定処理を実行し(ステップS1)、これによりRA
M10内のレジスタおよびフラグがクリアされる。そし
て、CPU8は、以後、鍵処理(ステップS2)、パッ
ド処理(ステップS3)、スイッチ処理(ステップS
4)を繰り返す。
Hereinafter, the operation of the electronic musical instrument will be described. The CPU 8 of the electronic musical instrument executes a main routine whose general flow is shown in FIG. As shown in the figure, when the power of the electronic musical instrument is turned on, the CPU 8 executes an initial setting process (step S1).
The registers and flags in M10 are cleared. Then, the CPU 8 thereafter performs key processing (step S2), pad processing (step S3), and switch processing (step S2).
Repeat 4).

【0024】ここで、鍵盤1が操作されてキーONイベ
ントが検出された場合、ステップS2の鍵盤処理では図
5のキーON処理ルーチンが起動される。また、キーO
FFイベントが検出された場合は図6のキーOFF処理
ルーチンが起動される。また、パッドPA1〜PAMが操
作された場合、ステップS3では、図7のパッドON処
理ルーチンあるいは図8のパッドOFF処理ルーチンが
起動される。また、スイッチ部4の各スイッチが押され
た場合、ステップS4では、以下説明するように、各ス
イッチに対応する処理ルーチンが起動され、実行され
る。
Here, when the key 1 is operated and a key ON event is detected, the key ON processing routine of FIG. 5 is started in the keyboard processing of step S2. Also, key O
When the FF event is detected, the key OFF processing routine of FIG. 6 is started. Also, if the pad PA 1 ~PA M is operated, in step S3, the pad OFF processing routine of the pad ON process routine or 8 of FIG. 7 is started. When each switch of the switch unit 4 is pressed, a processing routine corresponding to each switch is started and executed in step S4, as described below.

【0025】〔スイッチ操作に対する処理〕プログラム
モードスイッチ4aが押された場合、図9のプログラム
モードスイッチ処理ルーチンが起動される。まず、ステ
ップS11では、CPU8はRAM10内のプログラム
モードフラグPGMの内容を反転させる。次にステップ
S12に進むと、CPU8はトーンジェネレータTG1
の全発音チャネルにキーOFF信号を出力する。この結
果、メロディ音が停止される。
[Processing for Switch Operation] When the program mode switch 4a is pressed, a program mode switch processing routine shown in FIG. 9 is started. First, in step S11, the CPU 8 inverts the contents of the program mode flag PGM in the RAM 10. Next, proceeding to step S12, the CPU 8 sets the tone generator TG1.
Output a key-off signal to all the sounding channels of. As a result, the melody sound is stopped.

【0026】次いでステップS13に進むと、CPU8
はトーンジェネレータTG2の全発音チャネルにサウン
ドOFF信号を出力する。この結果、打楽器音および効
果音が停止される。そして、このルーチンにおける処理
は終わり、起動元のメインルーチン(図4)に復帰す
る。
Next, when the operation proceeds to step S13, the CPU 8
Outputs a sound OFF signal to all tone generation channels of the tone generator TG2. As a result, the percussion instrument sound and the sound effect are stopped. Then, the processing in this routine ends, and the process returns to the main routine (FIG. 4) of the activation source.

【0027】一方、パッドモードスイッチ4bが押され
た場合、図10のパッドモードスイッチ処理ルーチンが
起動される。まず、ステップS21では、RAM10内
のパッドモードフラグPMDの内容を反転させる。次に
ステップS22に進むと、ホールドモードフラグHLD
の内容が“0”か否かを判断する。そして、判断結果が
「YES」の場合はメインルーチンに復帰し、判断結果
が「NO」の場合はステップS23に進んで、トーンジ
ェネレータTG2にサウンドOFF信号を送って楽音を
停止させた後、メインルーチンに復帰する。
On the other hand, when the pad mode switch 4b is pressed, a pad mode switch processing routine shown in FIG. 10 is started. First, in step S21, the contents of the pad mode flag PMD in the RAM 10 are inverted. Next, when the process proceeds to step S22, the hold mode flag HLD
Is determined as to whether or not the content is “0”. If the result of the determination is "YES", the process returns to the main routine. If the result of the determination is "NO", the flow proceeds to step S23 to send a sound OFF signal to the tone generator TG2 to stop the musical sound. Return to routine.

【0028】ここで、ホールドモードフラグHLDが
“0”の場合には、効果音も打楽器音と同様に、所定の
減衰カーブに従って減衰する(この動作については後述
する)ので、サウンドOFF信号を送る必要がない。従
って、このルーチンは、ホールドモードフラグHLDが
“1”の場合に限り、ステップS23を実行するように
なっている。
Here, when the hold mode flag HLD is "0", the sound effect is attenuated according to a predetermined attenuation curve similarly to the percussion instrument sound (this operation will be described later), so that a sound OFF signal is sent. No need. Therefore, this routine executes step S23 only when the hold mode flag HLD is "1".

【0029】ホールドモードスイッチ4cが押された場
合、図11のホールドモードスイッチ処理ルーチンが起
動される。まず、ステップS31では、ホールドモード
フラグHLDの内容を反転させる。次にステップS32
に進むと、トーンジェネレータTG2の全発音チャネル
にサウンドOFF信号を送り、楽音を停止させる。次い
でステップS33に進むと、トーンジェネレータTG2
の全発音チャネルに対応する待ち時間テーブルWTD
(j)(j=1〜N)にデータ「0」を書き込む。次い
でステップS34に進んで、トーンジェネレータTG2
の全発音チャネルに対応するチャネルテーブルCHON
(j)(j=1〜N)にデータ「0」を書き込む。そし
て、メインルーチンに復帰する。
When the hold mode switch 4c is pressed, a hold mode switch processing routine shown in FIG. 11 is started. First, in step S31, the contents of the hold mode flag HLD are inverted. Next, step S32
Then, a sound OFF signal is sent to all tone generation channels of the tone generator TG2 to stop the musical sound. Next, when the process proceeds to step S33, the tone generator TG2
Waiting time table WTD corresponding to all sounding channels
(J) Write data “0” to (j = 1 to N). Next, proceeding to step S34, the tone generator TG2
Channel table CHON corresponding to all sounding channels of
(J) Write data “0” to (j = 1 to N). Then, the process returns to the main routine.

【0030】このように、スイッチ部4の操作に応じ
て、フラグPGM、PMDおよびHLDが切り換えら
れ、これによってこの電子楽器の動作モードが切り換え
られる。以下、パッドPA1〜PAMに所望の打楽器音お
よび効果音を割り当てるプログラムモードおよび通常演
奏モードの動作を説明する。
As described above, the flags PGM, PMD, and HLD are switched in accordance with the operation of the switch section 4, whereby the operation mode of the electronic musical instrument is switched. Hereinafter, the operation of the program mode and the normal performance mode assigning a pad PA 1 ~PA M to a desired percussion sounds and sound effects.

【0031】〔プログラムモード〕前述したように、演
奏者がプログラムモードスイッチ4aを押し、プログラ
ムモードフラグPGMに“1”をセットすることによ
り、CPU8の動作モードはプログラムモードとなる。
このモードにおいて、演奏者が鍵盤1の鍵を押すと、図
4のメインルーチンのステップS2において、図5のキ
ーON処理ルーチンが起動される。
[Program Mode] As described above, when the player presses the program mode switch 4a and sets the program mode flag PGM to "1", the operation mode of the CPU 8 becomes the program mode.
In this mode, when the player presses a key on the keyboard 1, the key ON processing routine of FIG. 5 is started in step S2 of the main routine of FIG.

【0032】まず、CPU8は、鍵盤1においてキーO
Nイベントの発生した鍵のキーコードをキーコードバッ
ファKCDに格納する(ステップS101)。次いでス
テップS102に進むと、キーONフラグKONに
“1”をセットする。次にステップS103に進むと、
プログラムモードフラグPGMが“1”か否かを判断す
る。この場合、判断結果は「YES」となり、ステップ
S104に進む。
First, the CPU 8 sets the key O on the keyboard 1
The key code of the key in which the N event has occurred is stored in the key code buffer KCD (step S101). Next, in step S102, the key ON flag KON is set to "1". Next, proceeding to step S103,
It is determined whether or not the program mode flag PGM is "1". In this case, the determination result is “YES”, and the process proceeds to step S104.

【0033】ステップS104に進むと、CPU8は、
ROM9内の音源種類テーブルKPC(k)(k=1〜
NK)に記憶されたPEN情報の中の、キーコードKC
Dに対応するデータKPC(KCD)を読み取り、RA
M10内の音源指定レジスタPENに格納する。次にス
テップS105に進むと、図12のPE発音ルーチンが
起動され、この結果、レジスタPEN内のPEN情報に
対応した打楽器音あるいは効果音がトーンジェネレータ
TG2によって発生される。
When proceeding to step S104, the CPU 8
Sound source type table KPC (k) in ROM 9 (k = 1 to
NK), the key code KC in the PEN information stored in
The data KPC (KCD) corresponding to D is read and RA
It is stored in the sound source designation register PEN in M10. Next, proceeding to step S105, the PE sound generation routine of FIG. 12 is started, and as a result, a percussion instrument sound or a sound effect corresponding to the PEN information in the register PEN is generated by the tone generator TG2.

【0034】なお、このPE発音ルーチンの詳細な内容
については、「通常演奏モード」の説明の際に後述す
る。次いでステップS106に進むと、パッドONフラ
グPON(i)(i=1〜M)のいずれかが“1”であ
り、かつ、パッドモードフラグPMDが“1”であるか
否かを判断し、判断結果が「NO」の場合はメインルー
チンに復帰する。一方、この時点で、あるパッドPAi
のパッドONイベントが検出されている場合は、パッド
ONフラグPON(i)は“1”となっている。
The details of the PE sounding routine will be described later in the description of the "normal performance mode". Next, in step S106, it is determined whether any of the pad ON flags PON (i) (i = 1 to M) is "1" and the pad mode flag PMD is "1". If the determination is "NO", the process returns to the main routine. On the other hand, at this time, a certain pad PA i
Is detected, the pad ON flag PON (i) is "1".

【0035】また、この状態であり、かつ、パッドモー
ドフラグPMDに“1”がセットされていたとすると、
ステップS106の判断結果は「YES」となり、ステ
ップS107に進む。ステップS107に進むと、CP
U8は、パッドモードフラグPON(i)が“1”とな
っているパッドの番号iを求めて、この番号iに対応す
るパッドアサインテーブル内の記憶領域PAST(i)
にPEN情報を書き込む。そして、メインルーチンに復
帰する。
In this state, if "1" is set in the pad mode flag PMD,
The result of the determination in step S106 is "YES", and the flow proceeds to step S107. Proceeding to step S107, the CP
U8 determines the number i of the pad for which the pad mode flag PON (i) is "1", and determines the storage area PAST (i) in the pad assignment table corresponding to this number i.
Write PEN information to Then, the process returns to the main routine.

【0036】次に、このプログラムモードにおいて、鍵
盤1のキーOFFイベントが検出された場合、メインル
ーチンのステップS2を介し、図6のキーOFF処理ル
ーチンが起動される。まず、ステップS201に進み、
キーOFFイベントのあった鍵のキーコードをバッファ
BUFに取り込む。次いで、ステップS202に進み、
プログラムモードフラグPGMが“1”か否かを判断す
る。
Next, in this program mode, when a key OFF event of the keyboard 1 is detected, the key OFF processing routine of FIG. 6 is started via step S2 of the main routine. First, proceed to step S201,
The key code of the key having the key OFF event is taken into the buffer BUF. Next, the process proceeds to step S202,
It is determined whether or not the program mode flag PGM is "1".

【0037】この場合、判断結果は「YES」となり、
ステップS203に進んで、この時点で他にキーON状
態の鍵がないか否かを求める。そして、判断結果が「N
O」の場合はステップS204に進んで、キーONフラ
グKONをクリアし、メインルーチンに復帰する。一
方、判断結果が「YES」の場合はステップS205に
進み、現時点までで最も遅くONされた鍵をサーチし
て、その鍵のキーコードKCDを得る。
In this case, the judgment result is "YES",
Proceeding to step S203, it is determined whether there is any other key in the key ON state at this time. Then, the judgment result is “N
In the case of "O", the process proceeds to step S204, the key ON flag KON is cleared, and the process returns to the main routine. On the other hand, if the result of the determination is "YES", the flow proceeds to step S205, in which the key that has been turned ON the latest until now is searched for, and the key code KCD of that key is obtained.

【0038】また、この場合、キーONフラグKONは
クリアされない。すなわち、いずれかの鍵がONである
限り、キーONフラグKONは“1”を保持すると共
に、現在押鍵中の鍵の中で最も遅くONされた鍵に対応
したキーコードがKCDに保持される。この場合には、
後述のパッドONイベントによりパッドにアサインされ
ることとなる。そして、このルーチンの処理が終わる
と、メインルーチンに復帰する。
In this case, the key ON flag KON is not cleared. That is, as long as one of the keys is ON, the key ON flag KON holds “1”, and the key code corresponding to the latest turned ON key among the keys currently being pressed is held in the KCD. You. In this case,
A pad is assigned to the pad by a pad ON event described later. Then, when the processing of this routine ends, the process returns to the main routine.

【0039】一方、このプログラムモードにおいて、パ
ッドPA1〜PAMのいずれかがONとされた場合は、メ
インルーチンのステップS3において図7のパッドON
処理ルーチンが起動される。まず、ステップS301に
進むと、CPU8はON状態のパッドPAi の番号iを
求める。
On the other hand, in this program mode, if any of the pads PA 1 to PA M is turned on, the pad ON of FIG. 7 is turned on in step S3 of the main routine.
A processing routine is started. First, the flow proceeds to step S301, CPU 8 obtains the number i of the pad PA i in the ON state.

【0040】次いでステップS302に進み、そのパッ
ド番号iに対応するパッドONフラグPON(i)に
“1”をセットする。次いでステップS303に進む
と、プログラムモードフラグPGMが“1”か否かを判
断し、この場合、判断結果は「YES」となってステッ
プS304に進む。ステップS304に進むと、キーO
NフラグKONが“1”か否かを判断する。そして、判
断結果が「YES」である場合、すなわち、この時点で
鍵盤1のキーONが検出されている場合は、ステップS
305に進む。
Then, the process proceeds to a step S302, where "1" is set to a pad ON flag PON (i) corresponding to the pad number i. Next, when the process proceeds to step S303, it is determined whether or not the program mode flag PGM is "1". In this case, the determination result is "YES" and the process proceeds to step S304. In step S304, the key O
It is determined whether the N flag KON is "1". If the result of the determination is "YES", that is, if the key ON of the keyboard 1 has been detected at this time, step S
Proceed to 305.

【0041】ステップS305に進むと、キーコードK
CDの内容を参照し、ROM9の音源種類テーブルKP
C(k)(k=1〜NK)に記憶されたPEN情報の
内、キーコードKCDに対応するデータKPC(KC
D)をレジスタPENに格納する。次いでステップS3
06に進み、パッドアサインテーブルPAST(i)
(i=1〜M)の内、パッドONイベントの検出された
パッドに対応する記憶領域PAST(i)に、レジスタ
PEN内のPEN情報を書き込む。そして、メインルー
チンに復帰する。
At step S305, the key code K
Referring to the contents of the CD, the sound source type table KP in the ROM 9 is referred to.
Among the PEN information stored in C (k) (k = 1 to NK), data KPC (KC) corresponding to the key code KCD
D) is stored in the register PEN. Next, step S3
06, the pad assignment table PAST (i)
Of (i = 1 to M), the PEN information in the register PEN is written to the storage area PAST (i) corresponding to the pad where the pad ON event is detected. Then, the process returns to the main routine.

【0042】一方、キーONフラグKONが“0”の場
合はアサインされるべき鍵の押圧がないのでステップS
303の判断結果が「NO」となり、本ルーチンのステ
ップS307以降の処理を行い、この結果、トーンジェ
ネレータTG2において、打楽器音あるいは効果音が発
生される。そして、メインルーチンに復帰する。なお、
このステップS307以降の処理については、「通常演
奏モード」において説明するので、ここでは重複を避け
るため、説明を省略する。
On the other hand, if the key ON flag KON is "0", there is no pressing of a key to be assigned, so that step S
The result of the determination in step 303 is "NO", and the processing after step S307 in this routine is performed. As a result, a percussion instrument sound or a sound effect is generated in the tone generator TG2. Then, the process returns to the main routine. In addition,
Since the processing after step S307 will be described in the “normal performance mode”, the description will be omitted here to avoid duplication.

【0043】次に、プログラムモードにおいて、パッド
OFFイベントが検出されると、図8のパッドOFF処
理ルーチンが起動される。このルーチンでは、OFFさ
れたパッドの番号iを検出し(ステップS401)、次
いでパッドONフラグ(i)をクリアする。従って、パ
ッドPAi がONされ(パッドON処理ルーチン起動)
てから、OFFされる(パッドOFFルーチン起動)ま
での期間、パッドONフラグPON(i)は“1”を保
持する。
Next, when a pad OFF event is detected in the program mode, a pad OFF processing routine shown in FIG. 8 is started. In this routine, the number i of the pad that has been turned off is detected (step S401), and then the pad ON flag (i) is cleared. Therefore, the pad PA i is turned on (the pad ON processing routine is started).
After that, the pad ON flag PON (i) holds “1” until the pad is turned off (start of the pad OFF routine).

【0044】このように、プログラムモードでは、鍵盤
1においてキーONイベントが検出されると共に、パッ
ドPA1〜PAMのいずれかのパッドONイベントが検出
された場合に、ONされたパッドに対応するパッドアサ
インテーブルPAST(i)に、ONされた鍵に対応す
るPEN情報(KPCテーブルから読み取られたもの)
が割り当られる。また、このパッドアサインテーブルP
AST(i)にPEN情報を書き込む処理は、キーON
処理ルーチンおよびパッドON処理ルーチンの両方に含
まれている。従って、どちらのルーチンが先に起動され
ても、パッドアサインテーブルPAST(i)ヘのPE
N情報の割り当てが正常に行われる。
[0044] In this manner, the program mode, the key ON event is detected in the keyboard 1, when one of the pad ON event of the pad PA 1 ~PA M is detected, corresponding to the pads which are ON PEN information (read from the KPC table) corresponding to the key that was turned on, in the pad assignment table PAST (i)
Is assigned. Also, this pad assignment table P
The process of writing PEN information to AST (i) is key ON
It is included in both the processing routine and the pad ON processing routine. Therefore, regardless of which routine is activated first, the PE in the pad assignment table PAST (i) is
N information is normally assigned.

【0045】〔通常演奏モード〕 プログラムモードスイッチ4aを押してプログラムモー
ドフラグPGMを“0”にすると、動作モードは通常演
奏モードとなる。以下、このモードおいて、鍵盤操作
が行われた場合およびパッド操作が行われた場合におけ
るCPU8の動作を説明する。
[Normal Performance Mode] When the program mode switch 4a is pressed to set the program mode flag PGM to "0", the operation mode becomes the normal performance mode. Hereinafter, Oite in this mode, the operation of CPU8 when the case key operation is performed and the pad operation is performed.

【0046】<鍵盤操作があった場合の動作>鍵盤1が
操作され、キーONイベントが検出されると、メインル
ーチンのステップS2において、図5のキーON処理ル
ーチンが起動される。この場合、ステップS101にお
いてキーONイベントのあった鍵のキーコードKCDを
取り込み、ステップS102において、キーONフラグ
KONに“1”をセットする。そして、ステップS10
3の判断結果は「NO」となり、ステップS108に進
む。
<Operation When Keyboard Operation is Performed> When the keyboard 1 is operated and a key ON event is detected, the key ON processing routine of FIG. 5 is started in step S2 of the main routine. In this case, the key code KCD of the key having the key ON event is fetched in step S101, and "1" is set in the key ON flag KON in step S102. Then, step S10
The determination result of 3 is “NO”, and the process proceeds to step S108.

【0047】ステップS108に進むと、トーンジェネ
レータTG1の中の空いている発音チャネルの番号jを
求める。次いでステップS109に進み、トーンジェネ
レータTG1の第j番目の発音チャネルにキーコードK
CDとキーON信号を送出する。この結果、トーンジェ
ネレータTG1によって、キーコードKCDに対応する
メロディ音が発生される。そして、メインルーチンに復
帰する。
In step S108, the number j of a vacant sound channel in the tone generator TG1 is determined. Then, the process proceeds to a step S109, wherein the key code K is assigned to the j-th sounding channel of the tone generator TG1.
The CD and the key ON signal are transmitted. As a result, the melody sound corresponding to the key code KCD is generated by the tone generator TG1. Then, the process returns to the main routine.

【0048】一方、鍵盤1のキーOFFイベントが検出
されると、メインルーチンのステップS2を介し、図6
のキーOFF処理ルーチンが起動される。まず、ステッ
プS201において、キーOFFイベントのあった鍵の
キーコードをバッファBUFに取り込む。次いで、ステ
ップS202の判断結果が「NO」となって、ステップ
S206に進み、トーンジェネレータTG1内の現時点
で発音中の発音チャネルの内、バッファBUF内のキー
コードと一致する楽音を発生しているものをサーチす
る。
On the other hand, when the key OFF event of the keyboard 1 is detected, the process proceeds to step S2 of the main routine and the process proceeds to step S2 of FIG.
Is started. First, in step S201, a key code of a key having a key OFF event is taken into a buffer BUF. Next, the determination result in step S202 becomes "NO", and the process proceeds to step S206, in which a tone corresponding to the key code in the buffer BUF is generated among the currently sounding channels in the tone generator TG1. Search for things.

【0049】次いでステップS207に進んで該当する
発音チャネルが有るか否かを判断し、「NO」の場合は
メインルーチンに復帰する。一方、「YES」の場合、
すなわち、バッファBUFのキーコードと一致する楽音
を発生中の発音チャネルがあった場合は、その発音チャ
ネルにキーOFF信号を送出する(ステップS20
8)。これにより、トーンジェネレータTG1では、キ
ーOFFされた鍵に対応するメロディ音が停止される。
Then, the process proceeds to step S207 to determine whether or not there is a corresponding sounding channel. If "NO", the process returns to the main routine. On the other hand, if "YES",
That is, when there is a tone generation channel that is generating a tone corresponding to the key code of the buffer BUF, a key OFF signal is transmitted to the tone generation channel (step S20).
8). As a result, in the tone generator TG1, the melody sound corresponding to the key that has been turned off is stopped.

【0050】<パッド操作があった場合の動作>パッド
PA1〜PAMが操作され、パッドONイベントが検出さ
れると、メインルーチンのステップS3において、図7
のパッドON処理ルーチンが起動される。この場合、ス
テップS301においてパッドONイベントのあったパ
ッドの番号iを求め、ステップS302において、当該
パッドONフラグPON(i)をセットする。
<Operation when Pad Operation is Performed> When the pads PA 1 to PA M are operated and a pad ON event is detected, in step S3 of the main routine, FIG.
Is started. In this case, the number i of the pad having the pad ON event is obtained in step S301, and the pad ON flag PON (i) is set in step S302.

【0051】なお、このパッドONフラグPON(i)
は、パッドPAi がOFFされ、パッドOFF処理ルー
チン(図8)が起動されるまでの間、“1”を保持す
る。そして、ステップS303の判断結果が「NO」と
なってステップS307に進み、パッドモードフラグP
MDが“1”か否かを判断する。そして、判断結果が
「YES」の場合はステップS308に進み、「NO」
の場合はステップS309に進む。
The pad ON flag PON (i)
The pad PA i is OFF, until pad OFF processing routine (FIG. 8) is activated, to retain the "1". Then, the result of the determination in step S303 is "NO", the flow advances to step S307, and the pad mode flag P
It is determined whether or not MD is "1". If the result of the determination is "YES", the flow proceeds to step S308, and "NO"
In the case of, the process proceeds to step S309.

【0052】次にステップS308に進むと、パッドア
サインテーブルPAST(i)(i=1〜M)内の、番
号iに対応するデータPAST(i)をレジスタPEN
に書き込み、ステップS310に進む。一方、ステップ
S309に進むと、パッド音源テーブルPET(i)
(i=1〜M)内の番号iに対応するデータPET
(i)をレジスタPENに書き込み、ステップS310
に進む。そして、ステップS310では、図12のPE
発音ルーチンが起動される。
Next, in step S308, the pad address is
The number in the signature table PAST (i) (i = 1 to M)
The data PAST (i) corresponding to the signal i is stored in the register PEN.
And the process proceeds to step S310. Meanwhile, step
In step S309, the pad sound source table PET (i)
Data corresponding to the number i in (i = 1 to M)PET
(I) is written into the register PEN, and step S310
Proceed to. Then, in step S310, the PE in FIG.
The sounding routine is started.

【0053】以下、PE発音ルーチンの処理フローを説
明する。まず、ステップS501において、PEN情報
の上位2ビットが“00”であるか否かを判断する。そ
して、判断結果が「YES」の場合、すなわち、発生す
べき楽音が打楽器音である場合はステップS502に進
む。
Hereinafter, the processing flow of the PE sounding routine will be described. First, in step S501, it is determined whether or not the upper two bits of the PEN information are “00”. If the result of the determination is "YES", that is, if the musical sound to be generated is a percussion instrument sound, the flow proceeds to step S502.

【0054】ステップS502に進むと、トーンジェネ
レータTG2内の空いている発音チャネルの番号jを求
めると共に当該チャネルONフラグCHON(j)をセ
ットする。次いでステップS503に進み、トーンジェ
ネレータTG2の第j番目の発音チャネルにPEN情報
に対応する音源データおよびサウンドON信号を送出す
る。この結果、PEN情報に対応した打楽器音が発生さ
れる。次いでステップS504に進んで、チャネルON
フラグCHON(j)をクリアし、起動元に復帰する。
In step S502, the number j of a vacant sounding channel in the tone generator TG2 is determined, and the channel ON flag CHON (j) is set. Next, the process proceeds to step S503, where sound source data and a sound ON signal corresponding to the PEN information are transmitted to the j-th sounding channel of the tone generator TG2. As a result, a percussion instrument sound corresponding to the PEN information is generated. Next, the process proceeds to step S504 to turn on the channel.
The flag CHON (j) is cleared, and the process returns to the activation source.

【0055】次に、PEN情報の上位2ビットが“0
1”の場合、すなわち、発生すべき楽音が持続性を待っ
た効果音である場合は、ステップS501の判断結果が
「NO」となり、次いで、ステップS505における判
断結果が「YES」となって、ステップS506に進
む。そして、ホールドモードフラグHLDが“1”か否
かを判断する。そして、判断結果が「NO」の場合はス
テップS507に進んで、PEN情報に対応したエンベ
ロープの第2ディケイレートを求め、これをバッファ2
DRに取り込む。
Next, the upper two bits of the PEN information are set to "0".
In the case of 1 ", that is, when the musical sound to be generated is a sound effect waiting for continuity, the result of the determination in step S501 is" NO ", and the result of determination in step S505 is" YES ". Proceed to S506. Then, it is determined whether or not the hold mode flag HLD is "1". If the result of the determination is "NO", the flow advances to step S507 to find the second decay rate of the envelope corresponding to the PEN information,
Import to DR.

【0056】次いでステップS508に進み、トーンジ
ェネレータTG2内の空いている発音チャネルの番号j
を求めると共に当該チャネルONフラグCHON(j)
をセットする。次いでステップS509に進み、トーン
ジェネレータTG2の第j番目の発音チャネルにPEN
情報に対応する音源データ、バッファ2DRの格納情報
およびサウンドON信号を送出する。この結果、PEN
情報に対応した効果音が発生される。
Next, the process proceeds to step S508, in which the number j of the vacant sound channel in the tone generator TG2 is set.
And the corresponding channel ON flag CHON (j)
Is set. Next, in step S509, the PEN is set to the j-th sounding channel of the tone generator TG2.
It sends out sound source data corresponding to the information, information stored in the buffer 2DR, and a sound ON signal. As a result, PEN
A sound effect corresponding to the information is generated.

【0057】この場合、図13に示すように、発生する
効果音のエンベロープは、所定のアタックレイトARで
立ち上がった後、第1ディケイレート1DRで立ち下が
り、以後、バッファ2DRが示す第2ディケイレート、
すなわち、PEN情報に対応した第2ディケイレートで
減衰する。このため、トンジェネレーダTG2で発生さ
れる効果音は、打楽器の場合と同様に持続性のない効果
音となる。次いで処理はステップS510に進み、チャ
ネルONフラグCHON(j)をクリアし、起動元に復
帰する。
In this case, as shown in FIG. 13, the envelope of the sound effect generated rises at a predetermined attack rate AR, falls at a first decay rate 1DR, and thereafter, at a second decay rate indicated by a buffer 2DR. ,
That is, it attenuates at the second decay rate corresponding to the PEN information. For this reason, the sound effect generated by the ton generator TG2 is an unsustainable sound effect as in the case of the percussion instrument. Next, the process proceeds to step S510, clears the channel ON flag CHON (j), and returns to the start source.

【0058】これに対し、ホールドフラグHLDが
“1”の場合は、ステップS506の判断結果が「YE
S」となってステップS511に進む。そして、バッフ
ァ2DRにデータ「0」を格納する。次いでステップS
512に進み、チャネルテーブルCHPEN(j)(j
=1〜N)の中にPEN情報と一致するものが含まれて
いるか否かを判断する。そして、判断結果が「YES」
の場合、ステップS513に進んで該当する発音チャネ
ルの番号jを取り込み、次いでステップS514に進ん
でトーンジェネレータTG2の第j番目の発音チャネル
にサウンドOFF信号を送って当該楽音を消音し、次い
でチャネルONフラグCHON(j)をクリアする(ス
テップS510)。
On the other hand, if the hold flag HLD is "1", the result of the determination in step S506 is "YE
S ", and proceeds to step S511. Then, data “0” is stored in the buffer 2DR. Then step S
Proceeding to 512, the channel table CHPEN (j) (j
= 1 to N), it is determined whether or not there is one that matches the PEN information. And the judgment result is “YES”
In step S513, the process proceeds to step S513 to capture the number j of the corresponding sounding channel, and then proceeds to step S514 to send a sound OFF signal to the j-th sounding channel of the tone generator TG2 to mute the tone, and then turn the channel ON The flag CHON (j) is cleared (step S510).

【0059】これは1回目のパッドONイベントにより
発生した持続性を持つ効果音を2回目のパッドONイベ
ントにより消音する処理に相当する。なお、この1回目
のパッドONイベントにより持続性を持った効果音を発
生する処理については後述する。ステップS510が終
了すると、処理は起動元に復帰する。
This corresponds to a process of silencing a sound effect having persistence generated by the first pad ON event by the second pad ON event. The process of generating a lasting sound effect by the first pad ON event will be described later. When step S510 ends, the process returns to the activation source.

【0060】一方、ステップS512の判断結果が「N
O」の場合、すなわち、チャネルテーブルCHPEN
(j)(j=1〜N)の中にPEN情報と一致するもの
が含まれていない場合は、上述したステップS508〜
S510を実行して効果音を発生し、起動元に復帰す
る。
On the other hand, if the result of the determination in step S512 is “N
O ”, that is, the channel table CHPEN
(J) If there is no information matching the PEN information in (j = 1 to N), the above-described steps S508 to S508 are performed.
Step S510 is executed to generate a sound effect, and the process returns to the activation source.

【0061】ただし、この場合、バッファ2DRの内容
は「0」となっているので、トーンジェネレータTG2
で発生される効果音のエンベロープは、図13に示すよ
うに、第2ディケイ部に持続性を持ったものとなる。こ
れは前述の1回目のパッドONイベントにより持続性を
持つ効果音を発生する処理に相当する。
However, in this case, since the content of the buffer 2DR is "0", the tone generator TG2
As shown in FIG. 13, the envelope of the sound effect generated by the second decay section has persistence. This corresponds to a process of generating a sound effect having a sustainability by the first pad ON event described above.

【0062】次に、PEN情報の上位2ビットが“1
0”あるいは“11”である場合は、ステップS501
およびS505を介し、ステップS515に進む。そし
て、ホールドモードフラグHLDが“1”か否かを判断
し、判断結果が「NO」の場合はステップS516に進
む。ステップS516に進むと、トーンジェネレータT
G2内の空いている発音チャネルの番号jを求める。
Next, the upper two bits of the PEN information are set to “1”.
If it is “0” or “11”, step S501
The process proceeds to step S515 via steps S505 and S505. Then, it is determined whether or not the hold mode flag HLD is “1”. If the determination result is “NO”, the process proceeds to step S516. In step S516, the tone generator T
The number j of the vacant sound channel in G2 is obtained.

【0063】次いでステップS517に進み、トーンジ
ェネレーダTG2の第j番目の発音チャネルにPEN情
報に対応する音源データおよびサウンドON信号を送出
する。この結果、PEN情報に対応した打楽器音が発生
される。さらにチャネルテーブル内の番号jに対応する
記憶領域CHPEN(j)にPEN情報を格納する。次
いでステップS518に進み、図14のWTD(j)設
定ルーチンを起動する。
Then, the flow advances to step S517 to transmit sound source data and a sound ON signal corresponding to the PEN information to the j-th sounding channel of the tone generator TG2. As a result, a percussion instrument sound corresponding to the PEN information is generated. Further, the PEN information is stored in the storage area CHPEN (j) corresponding to the number j in the channel table. Next, the routine proceeds to step S518, where the WTD (j) setting routine of FIG. 14 is started.

【0064】このルーチンのステップS601に進む
と、CPU8は、チャネルテーブルの記憶領域CHPE
N(j)に記憶されたPEN情報を読み取り、ROM9
内の待ち時間テーブルWT(n)(n=1〜N)の中か
らPEN情報に対応する待ち時間情報WT(PEN)を
読み取り、バッファWBUFに格納する。
At step S601 of this routine, the CPU 8 sets the channel table storage area CHPE
The PEN information stored in N (j) is read,
The waiting time information WT (PEN) corresponding to the PEN information is read from the waiting time table WT (n) (n = 1 to N) in the table and stored in the buffer WBUF.

【0065】次いでステップS602に進み、PEN情
報の第2ビットが“1”か否かを判断する。そして、判
断結果が「NO」の場合、すなわち、PEN情報の上位
2ビットが“10”の場合はステップS603に進み、
バッファWBUF内の待ち時間情報を第j番目の発音チ
ャネルに対応する待ち時間テーブルの記憶領域WTD
(j)に書き込む。そして、このルーチンの起動元(こ
の場合はPE発音ルーチン)に復帰する。
Then, the flow advances to step S602 to determine whether the second bit of the PEN information is "1". If the determination result is “NO”, that is, if the upper two bits of the PEN information are “10”, the process proceeds to step S603,
The waiting time information in the buffer WBUF is stored in a waiting time table storage area WTD corresponding to the j-th sounding channel.
Write to (j). Then, the process returns to the start source of this routine (in this case, the PE sound generation routine).

【0066】一方、ステップS602の判断結果が「Y
ES」の場合、すなわち、PEN情報の上位2ビットが
“11”の場合は、ステップS604に進み、乱数を発
生してバッファRDMに格納する。そして、ステップS
605に進んで、PEN情報に対応したROM9内から
の待ち時間情報WT(PEN)、スケーリングパラメー
タWTSP(PEN)および乱数RDMから、下記式
(1)に従って待ち時間を求め、待ち時間テーブルの発
音チャネルjに対応した記憶領域WTD(j)に書き込
む。
On the other hand, if the result of the determination in step S 602 is “Y
In the case of “ES”, that is, when the upper two bits of the PEN information are “11”, the process proceeds to step S604, where a random number is generated and stored in the buffer RDM. And step S
Proceeding to 605, the waiting time is obtained from the waiting time information WT (PEN), the scaling parameter WTSP (PEN) and the random number RDM from the ROM 9 corresponding to the PEN information, and the waiting time is obtained according to the following equation (1). Write to the storage area WTD (j) corresponding to j.

【0067】 WTD(j)←WT(PEN)+RDM*WTSP(PEN)……(1) そして、起動元(この場合、PE発音ルーチン)に復帰
する。そして、PE発音ルーチンのステップS519に
進み、チャネルONフラグCHON(j)をセットし、
起動元であるパッドON処理ルーチンに復帰する。
WTD (j) ← WT (PEN) + RDM * WTSP (PEN) (1) Then, the process returns to the activation source (PE sounding routine in this case). Then, the process proceeds to step S519 of the PE sound generation routine, in which a channel ON flag CHON (j) is set.
The process returns to the pad ON processing routine that is the activation source.

【0068】一方、PE発音ルーチンのステップS51
5の判断結果が「YES」の場合、すなわち、ホールド
モードフラグHLDが“1”の場合は、ステップS52
0に進み、チャネルテーブルCHPEN(j)(j=1
〜N)の中にPEN情報と一致するものが含まれている
か否かを判断する。そして、判断結果が「NO」の場合
は、上述したステップS516〜S519を実行してパ
ッドON処理ルーチンに復帰する。また、ステップS5
20の判断結果が「YES」の場合は該当するチャネル
のチャネルONフラグCHON(j)をクリアする。
On the other hand, step S51 of the PE sound generation routine
If the determination result of step 5 is "YES", that is, if the hold mode flag HLD is "1", step S52 is executed.
0, the channel table CHPEN (j) (j = 1
-N) is determined whether or not any of the information matching the PEN information is included. If the determination result is "NO", the above-described steps S516 to S519 are executed, and the process returns to the pad ON processing routine. Step S5
If the determination result in step 20 is "YES", the channel ON flag CHON (j) of the corresponding channel is cleared.

【0069】さて、この電子楽器では、タイマ11が一
定の時間間隔毎にCPU8に割り込み信号を出力する。
これにより、CPU8は現在実行中の処理を中断し、図
15に示すタイマ割り込みルーチンを起動する。まず、
ステップS701に進むと、ホールドモードフラグHL
Dが“1”か否かを判断する。そして、判断結果が「N
O」の場合はこのルーチンを抜け、中断していた処理を
再開する。
In this electronic musical instrument, the timer 11 outputs an interrupt signal to the CPU 8 at regular time intervals.
As a result, the CPU 8 interrupts the currently executing process and starts the timer interrupt routine shown in FIG. First,
In step S701, the hold mode flag HL
It is determined whether D is "1". Then, the judgment result is “N
In the case of "O", this routine is exited and the interrupted processing is resumed.

【0070】これに対し、ステップS701の判断結果
が「YES」の場合はステップS702に進み、変数j
を1に初期設定する。次いでステップS703に進み、
チャネルONフラグCHON(j)が“1”であるか否
かを判断する。ここで、チャネルONフラグCHON
(j)=1という状態は、該チャネルにはアタックを繰
り返す効果音が割り当てられていることを示す。
On the other hand, if the decision result in the step S701 is "YES", the process advances to a step S702 to change the variable j
Is initially set to 1. Next, the process proceeds to step S703.
It is determined whether or not the channel ON flag CHON (j) is “1”. Here, the channel ON flag CHON
The state of (j) = 1 indicates that a sound effect that repeats an attack is assigned to the channel.

【0071】そして、その判断結果が「NO」の場合は
ステップS708に進み、「YES」の場合はステップ
S704に進む。次にステップS704に進むと、トー
ンジェネレータTG2の第j番目の発音チャネルに対応
した待ち時間テーブルの内容WTD(j)をデクリメン
トする。そして、ステップS705に進んで、テーブル
の内容WTD(j)が「0」になったか否かを判断す
る。そして、判断結果が「NO」の場合はステップS7
08に進み、「YES」の場合はステップS706に進
む。
If the determination is "NO", the flow proceeds to step S708, and if "YES", the flow proceeds to step S704. Next, in step S704, the content WTD (j) of the waiting time table corresponding to the j-th sounding channel of the tone generator TG2 is decremented. Then, the process proceeds to step S705 to determine whether or not the content WTD (j) of the table has become “0”. If the result of the determination is "NO", step S7 is executed.
08, and if “YES”, the flow proceeds to step S706.

【0072】次にステップS706に進むと、トーンジ
ェネレータの第j番目の発音チャネルにサウンドON信
号を送る。この結果、当該発音チャネル(番号j)にお
いて発音中の効果音が再度アタックされる。次いでステ
ップS707に進み、上述したWTD(j)設定ルーチ
ンを起動し、これにより、発音チャネル(番号j)にお
ける次回のアタックまでの待ち時間が演算され、該演算
結果に従って待ち時間テーブルの内容WTD(j)が更
新される。
Next, in step S706, a sound ON signal is sent to the j-th sounding channel of the tone generator. As a result, the sound effect that is sounding in the sounding channel (number j) is attacked again. Next, in step S707, the above-described WTD (j) setting routine is started, whereby the waiting time until the next attack on the sounding channel (number j) is calculated, and the contents WTD ( j) is updated.

【0073】ここで、待ち時間テーブルの内容WTD
(j)は、上述した説明で分かるように、発音チャネル
(番号j)に対応するPEN情報、すなわち、チャネル
テーブルの内容CHPEN(j)の第2ビットが“0”
の場合は常にPEN情報に対応した一定の値となり、一
方、第2ビットが“1”の場合はその時発生された乱数
に応じた値となる。次にステップS708に進むと、変
数jをインクリメントする。そして、ステップS709
において変数jが発音チャネル番号の最大値Nを越えた
か否かを判断し、「NO」の場合はステップS703に
戻り、「YES」の場合はタイマ割り込みルーチンを終
了して中断中の処理を再開する。
Here, the contents WTD of the waiting time table
(J), as can be understood from the above description, the PEN information corresponding to the sounding channel (number j), that is, the second bit of the channel table content CHPEN (j) is “0”.
Is always a constant value corresponding to the PEN information, while if the second bit is "1", the value is a value corresponding to the random number generated at that time. Next, in step S708, the variable j is incremented. Then, step S709
It is determined whether or not the variable j has exceeded the maximum value N of the tone generation channel number. If "NO", the process returns to the step S703. If "YES", the timer interrupt routine is terminated and the interrupted process is resumed. I do.

【0074】上述したように、ホールドモードフラグH
LDが“1”の時、上位2ビットが“10”あるいは
“11”であるPEN情報の割り当てられたパッド(こ
のパッドを例えばパッドAとする)がONされ、しか
も、そのPEN情報のパッドONイベントが第1回目で
ある場合、図12のPE発音ルーチンではステップS5
16〜S519が実行され、割り当てられた発音チャネ
ル(第j番目)にPEN情報が登録されると共に、チャ
ネルONフラグCHON(j)がセットされる。
As described above, the hold mode flag H
When the LD is "1", a pad to which PEN information whose upper 2 bits are "10" or "11" is assigned (this pad is referred to as a pad A, for example) is turned on, and the pad of the PEN information is turned on. If the event is the first time, the PE sounding routine of FIG.
Steps S16 to S519 are executed, PEN information is registered in the assigned sounding channel (jth), and the channel ON flag CHON (j) is set.

【0075】そして、このようにチャネルONフラグC
HON(j)がセットされると、以後、当該発音チャネ
ル(番号j)では、タイマ割り込み処理ルーチンが起動
されて待ち時間WTD(j)が「0」となる毎に効果音
の再アタックが繰り返される。この状態において、再
度、前述のパッドAがONされたとする。この場合、P
E発音ルーチンのステップS520の判断結果は「YE
S」となり、処理はステップS521に進む。
Then, as described above, the channel ON flag C
When HON (j) is set, a timer interrupt processing routine is started in the sounding channel (number j), and a re-attack of the sound effect is repeated every time the waiting time WTD (j) becomes "0". It is. In this state, it is assumed that the pad A is turned on again. In this case, P
The determination result of step S520 of the E sound generation routine is “YE
S ", and the process proceeds to step S521.

【0076】そして、パッドAに対応するPEN情報の
効果音を発音中の発音チャネルの番号jを求め(ステッ
プS521)、チャネルONフラグCHON(j)をク
リアし(ステップS522)、パッドON処理ルーチン
に復帰する。これにより、以後、発音チャネル(番号
j)では、パッドAに対応する効果音は停止される。こ
のように、ONされたパッドのPEN情報の上位2ビッ
トが“10”あるいは“11”であり、かつ、ホールド
モードフラグHLDが“1”である場合は、パッドの第
1回目のONで、アタックを繰り返す効果音がトーンジ
ェネレータにおいて発生され、再度そのパッドをONす
ると効果音が停止される。
Then, the number j of the sounding channel which is sounding the sound effect of the PEN information corresponding to the pad A is determined (step S521), the channel ON flag CHON (j) is cleared (step S522), and the pad ON processing routine is performed. Return to. As a result, the sound effect corresponding to the pad A is stopped in the sound channel (number j). As described above, when the upper two bits of the PEN information of the pad that has been turned on are “10” or “11” and the hold mode flag HLD is “1”, the pad is turned on for the first time, A sound effect that repeats the attack is generated in the tone generator, and when the pad is turned on again, the sound effect is stopped.

【0077】[0077]

【発明の効果】以上説明したように、この発明によれ
ば、複数の音色のうち任意の音色が各々割り当てられた
複数の演奏操作子が操作されると、操作された演奏操作
子に割り当てられた音色が1回の操作に対して各音色毎
に予め定められている所定時間間隔で繰り返し、かつ、
同時に複数発音することが可能となるので、例えば、減
衰音系の音色を繰返し発音させてあたかも持続音である
かのように発音させることができ、さらには、発音可能
な楽音の種類が豊富となり、また、多彩な演奏効果をも
たらすことができる。 また、ホールドモードおよび非ホ
ールドモードが設けられ、ホールドモードが指定された
場合は、上記演奏操作子の1回の操作に対して、操作さ
れた演奏操作子に割り当てられた音色が、その音色に定
められている所定時間間隔で繰り返し発音され、非ホー
ルドモードが指定された場合は、1回の操作に対して操
作された演奏操作子に割り当てられた音色が1回だけ発
音されるので、状況に応じて楽音の発音形態の切り換え
を容易に行うことができる。 さらに、各演奏操作子に割
り当てられている音色が属するグループに応じて、演奏
操作子の1回の操作に対し、その演奏操作子に割り当て
られた音色が1回だけ発音されるか、または、その演奏
操作子に割り当てられた音色に定められている所定時間
間隔で繰り返し発音されるので、例えば、減衰音系の音
色を繰返し発音させてあたかも持続音であるかのように
発音させ、また、持続音系の音色については持続発音さ
せるといったことが可能となり、複数の演奏操作子の各
々に対して任意に音色を設定することを可能にするとと
もに、操作された演奏操作子に応じて持続して発音させ
るか、繰返し発音させるかを切り換えることができる。
As described above, according to the present invention, any of a plurality of timbres is assigned.
When multiple performance controls are operated, the performance
The tone assigned to the child for each tone for one operation
Is repeated at a predetermined time interval that is set in advance, and
Since it is possible to pronounce multiple sounds at the same time, for example,
It is as if it is a continuous sound by repeatedly producing a decay tone
Can be pronounced as if, and even possible
Rich variety of musical tones, and a variety of performance effects
You can drop it. Hold mode and non-
Hold mode is specified and hold mode is specified.
In this case, one operation of the performance
The tone assigned to the selected performance control is assigned to that tone.
Is repeatedly sounded at predetermined time intervals
If the default mode is specified, one operation
The tone assigned to the created performance control is emitted only once.
Since the sound is played, switch the tone generation mode according to the situation
Can be easily performed. Furthermore, depending on the group to which belongs tone assigned to each performance operators, the performance
One operation of the control is assigned to the performance control
The tone is pronounced only once or played
The specified time specified for the tone assigned to the control
Since the sound is repeated at intervals, for example, it is possible to repeatedly sound the decay tone and sound as if it were a continuous sound, and it is possible to continuously sound the sustained sound. It is possible to arbitrarily set a tone color for each of the plurality of performance operators, and it is possible to switch between continuous sound generation and repeated sound generation according to the operated performance operators.

【図面の簡単な説明】[Brief description of the 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】 同電子楽器におけるRAM10内のレジスタ
およびフラグ構成を説明するための説明図である。
FIG. 2 is an explanatory diagram illustrating a configuration of a register and a flag in a RAM 10 in the electronic musical instrument.

【図3】 同電子楽器におけるROM9内のテーブル構
成を説明するための説明図である。
FIG. 3 is an explanatory diagram for explaining a table configuration in a ROM 9 in the electronic musical instrument.

【図4】 同電子楽器におけるメインルーチンの処理手
順を示すフローチャートである。
FIG. 4 is a flowchart showing a processing procedure of a main routine in the electronic musical instrument.

【図5】 同電子楽器におけるキーON処理ルーチンの
処理手順を示すフローチャートである。
FIG. 5 is a flowchart showing a processing procedure of a key ON processing routine in the electronic musical instrument.

【図6】 同電子楽器におけるキーOFF処理ルーチン
の処理手順を示すフローチャートである。
FIG. 6 is a flowchart showing a processing procedure of a key OFF processing routine in the electronic musical instrument.

【図7】 同電子楽器におけるパッドON処理ルーチン
の処理手順を示すフローチャートである。
FIG. 7 is a flowchart showing a processing procedure of a pad ON processing routine in the electronic musical instrument.

【図8】 同電子楽器におけるパッドOFF処理ルーチ
ンの処理手順を示すフローチャートである。
FIG. 8 is a flowchart showing a processing procedure of a pad OFF processing routine in the electronic musical instrument.

【図9】 同電子楽器におけるプログラムモードスイッ
チ処理ルーチンの処理手順を示すフローチャートであ
る。
FIG. 9 is a flowchart showing a processing procedure of a program mode switch processing routine in the electronic musical instrument.

【図10】 同電子楽器におけるパッドモードスイッチ
処理ルーチンの処理手順を示すフローチャートである。
FIG. 10 is a flowchart showing a processing procedure of a pad mode switch processing routine in the electronic musical instrument.

【図11】 同電子楽器におけるホールドモードスイッ
チ処理ルーチンの処理手順を示すフローチャートであ
る。
FIG. 11 is a flowchart showing a processing procedure of a hold mode switch processing routine in the electronic musical instrument.

【図12】 同電子楽器におけるPE発音ルーチンの処
理手順を示すフローチャートである。
FIG. 12 is a flowchart showing a processing procedure of a PE sounding routine in the electronic musical instrument.

【図13】 同電子楽器におけるエンベロープ波形を示
す図である。
FIG. 13 is a diagram showing an envelope waveform in the electronic musical instrument.

【図14】 同電子楽器におけるWTD(j)設定ルー
チンの処理手順を示すフローチャートである。
FIG. 14 is a flowchart showing a processing procedure of a WTD (j) setting routine in the electronic musical instrument.

【図15】 同電子楽器におけるタイマ割込ルーチンの
処理手順を示すフローチャートである。
FIG. 15 is a flowchart showing a processing procedure of a timer interrupt routine in the electronic musical instrument.

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

1……鍵盤、2……パッド操作部、PA1〜PAM……パ
ッド、3……演奏操作部、4……スイッチ部、5……楽
音形成部、8……CPU、9……ROM、10……RA
M、11……タイマ。
1 ...... keyboard, 2 ...... pad operation unit, PA 1 ~PA M ...... pad, 3 ...... performance operation unit, 4 ...... switch unit, 5 ...... tone formation portion, 8 ...... CPU, 9 ...... ROM 10, RA
M, 11 ... timer.

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数の演奏操作子と、 この複数の演奏操作子の各々について、複数の音色のう
ちの任意の音色を割り当てる割当手段と、 この複数の演奏操作子の操作に応じて、各演奏操作子に
割り当てられた音色の楽音信号を発生する複数の発音チ
ャネルを有した楽音発生手段と、 前記演奏操作子に割り当てられた音色の楽音信号を、前
記演奏操作子の1回の操作に対して、前記音色毎に定め
られた所定時間間隔で複数繰り返し発生させるように前
記楽音発生手段を制御する制御手段であって、前記発生
している楽音毎に前記時間間隔を管理し、前記楽音信号
の発生を複数の音色について複数の発音チャネルで同時
に、かつ独立した時間間隔で繰り返し可能にするもの
ホールドモードと非ホールドモードを指定する指定手段
とを具備し、 前記制御手段は、 前記指定手段でホールドモードが指定された場合には、
前記楽音信号を前記楽音発生手段で前記演奏操作子の1
回の操作に対して所定時間間隔で複数発生させ、 前記指定手段で非ホールドモードが指定された場合に
は、前記楽音信号を前記楽音発生手段で前記演奏操作子
の1回の操作に対して1つ発生させるもの である ことを
特徴とする電子楽器。
1. A plurality of performance operators; an assigning means for assigning an arbitrary tone color among a plurality of tone colors to each of the plurality of performance operators; A musical tone generating means having a plurality of sounding channels for generating musical tone signals of a tone assigned to the performance operator; and a tone signal of the tone assigned to the performance operator being operated by one operation of the performance operator. Control means for controlling the tone generating means so as to generate a plurality of repetitions at predetermined time intervals determined for each of the timbres, wherein the control means controls the time interval for each of the generated tone sounds; at the same time a plurality of sound channels for a plurality of tone generation signal, and the one which allows repeated in separate time intervals, specifying means for specifying a hold mode and a non-hold mode
The control means , when a hold mode is designated by the designation means,
The musical tone signal is transmitted to one of the performance operators by the musical tone generating means.
When a non-hold mode is designated by the designating means, a
Transmits the musical tone signal to the musical performance
Electronic musical instrument, characterized in that with respect to a single operation of those which generate one.
【請求項2】 複数の演奏操作子と、 この複数の演奏操作子の各々について、複数の音色のう
ちの任意の音色を割り当てる割当手段と、 この複数の演奏操作子の操作に応じて、各演奏操作子に
割り当てられた音色の楽音信号を発生する複数の発音チ
ャネルを有した楽音発生手段と、 前記演奏操作子に割り当てられた音色の楽音信号を、前
記演奏操作子の1回の操作に対して、前記音色毎に定め
られた所定時間間隔で複数繰り返し発生させるように前
記楽音発生手段を制御する制御手段であって、前記発生
している楽音毎に前記時間間隔を管理し、前記楽音信号
の発生を複数の音色について複数の発音チャネルで同時
に、かつ独立した時間間隔で繰り返し可能にするものと
を具備してなり、前記割当手段は、 前記複数の演奏操作子の各々について第1グループの音
色または第2グループの音色のうちのいずれか一方のグ
ループの音色を任意に割り当てるものであり、 前記制御手段は、前記複数の演奏操作子のうちの操作さ
れた演奏操作子に割り当てられた音色が前記第1グルー
プの音色であるか前記第2グループの音色であるかを判
断し、 前記操作された演奏操作子に割り当てられた音色が前記
第1グループの音色である場合には、該演奏操作子に割
り当てられた音色の楽音信号を前記楽音発生手段で持続
して発生させ、 前記操作された演奏操作子に割り当てられた音色が前記
第2グループの音色である場合には、該演奏操作子に割
り当てられた音色の楽音信号を前記楽音発生手段で該演
奏操作子の1回の操作に対して所定時間間隔で複数発生
させる ものであることを特徴とする 電子楽器。
2. A plurality of performance operators and a plurality of tone colors for each of the plurality of performance operators.
Assigning means for assigning the desired tone, and assigning each of the performance operators according to the operation of the plurality of performance operators.
Multiple tone generators that generate tone signals of the assigned tone
A tone generator having a channel and a tone signal of a tone assigned to the performance operator.
For each operation of the performance operator, the tone is determined for each tone.
So that multiple occurrences occur at predetermined time intervals.
Control means for controlling a musical sound generating means,
Managing the time interval for each musical tone
Generation of multiple tones simultaneously on multiple sound channels
And repeatable at independent time intervals
Wherein the allocating means includes a first group of sounds for each of the plurality of performance operators.
One of the colors or the second group of tones
The tone of the loop is arbitrarily assigned, and the control means controls an operation of the plurality of performance operators.
The tone assigned to the selected performance operator is the first group.
The tone of the second group or the tone of the second group.
And the tone assigned to the operated performance operator is
If the tone belongs to the first group, assign it to the performance operator.
The tone signal of the assigned tone is maintained by the tone generator.
Generated and the tone assigned to the operated performance operator is
If the tone belongs to the second group, assign it to the performance operator.
The tone signal of the assigned tone is played by the tone generator.
Multiple occurrences at a predetermined time interval for one operation of the playing operator
An electronic musical instrument characterized in that the electronic musical instrument is adapted to cause
【請求項3】 前記割当手段は、 前記複数の演奏操作子の各々について第1グループの音
色または第2グループの音色のうちのいずれか一方のグ
ループの音色を任意に割り当てるものであり、 前記制御手段は、前記複数の演奏操作子のうちの操作さ
れた演奏操作子に割り当てられた音色が前記第1グルー
プの音色であるか前記第2グループの音色であるかを判
断し、 前記操作された演奏操作子に割り当てられた音色が前記
第1グループの音色である場合には、該演奏操作子に割
り当てられた音色の楽音信号を前記楽音発生手段で持続
して発生させ、 前記操作された演奏操作子に割り当てられた音色が前記
第2グループの音色である場合には、該演奏操作子に割
り当てられた音色の楽音信号を前記楽音発生手段で該演
奏操作子の1回の操作に対して所定時間間隔で複数発生
させるものであることを特徴とする請求項1に記載の電
子楽器。
3. The allocating means arbitrarily allocates one of a first group of timbres and a second group of timbres to each of the plurality of performance operators, and The means determines whether the tone assigned to the operated performance operator of the plurality of performance operators is the tone of the first group or the tone of the second group, and When the tone assigned to the performance operator is the tone of the first group, a tone signal of the tone assigned to the performance operator is continuously generated by the tone generator, and When the tone assigned to the operator is the tone of the second group, the tone signal of the tone assigned to the performance operator is used by the tone generator to perform one operation of the performance operator. Electronic musical instrument according to claim 1, characterized in that for a plurality occur at predetermined time intervals in.
JP8192399A 1996-07-22 1996-07-22 Electronic musical instrument Expired - Fee Related JP3048526B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8192399A JP3048526B2 (en) 1996-07-22 1996-07-22 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8192399A JP3048526B2 (en) 1996-07-22 1996-07-22 Electronic musical instrument

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP1018553A Division JP2586630B2 (en) 1989-01-27 1989-01-27 Electronic musical instrument

Publications (2)

Publication Number Publication Date
JPH096355A JPH096355A (en) 1997-01-10
JP3048526B2 true JP3048526B2 (en) 2000-06-05

Family

ID=16290671

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8192399A Expired - Fee Related JP3048526B2 (en) 1996-07-22 1996-07-22 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JP3048526B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55113092A (en) * 1979-02-23 1980-09-01 Nippon Musical Instruments Mfg Effect circuit for electronic musical instrument
JP2522794Y2 (en) * 1986-08-18 1997-01-16 カシオ計算機株式会社 Electronic musical instrument

Also Published As

Publication number Publication date
JPH096355A (en) 1997-01-10

Similar Documents

Publication Publication Date Title
US5247128A (en) Electronic musical instrument with selectable rhythm pad effects
JP2746157B2 (en) Electronic musical instrument
JP3372124B2 (en) Electronic musical instrument
JP2655905B2 (en) Electronic musical instrument channel assignment device
JPH0125078B2 (en)
JP3139923B2 (en) Automatic accompaniment device
JP6455189B2 (en) Waveform reading apparatus, method, program, and electronic musical instrument
JP3048526B2 (en) Electronic musical instrument
JP3398554B2 (en) Automatic arpeggio playing device
JP2692675B2 (en) Electronic musical instrument
JP2586630B2 (en) Electronic musical instrument
JP2692354B2 (en) Electronic musical instrument
JP3329176B2 (en) Pronunciation assignment device
JPH06259064A (en) Electronic musical instrument
JP2692675C (en)
JP2009186632A (en) Temperament control method, computer program for controlling temperament, and temperament control device
JP3581465B2 (en) Electronic musical instrument
JP2570819B2 (en) Electronic musical instrument
JPH09244660A (en) Automatic player
JP3673388B2 (en) Musical sound channel assignment apparatus and musical sound channel assignment method
JP3034398B2 (en) Electronic musical instrument controller
JP2814479B2 (en) Electronic musical instrument
JP4306138B2 (en) Musical sound generator and musical sound generation processing program
JP3190103B2 (en) Music synthesizer
JP3282254B2 (en) Tone generator

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970729

LAPS Cancellation because of no payment of annual fees