Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH07109558B2 - Electronic musical instrument - Google Patents
[go: Go Back, main page]

JPH07109558B2 - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JPH07109558B2
JPH07109558B2 JP62303204A JP30320487A JPH07109558B2 JP H07109558 B2 JPH07109558 B2 JP H07109558B2 JP 62303204 A JP62303204 A JP 62303204A JP 30320487 A JP30320487 A JP 30320487A JP H07109558 B2 JPH07109558 B2 JP H07109558B2
Authority
JP
Japan
Prior art keywords
key
sound
register
envelope
tone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62303204A
Other languages
Japanese (ja)
Other versions
JPH01198798A (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.)
Roland Corp
Original Assignee
Roland 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 Roland Corp filed Critical Roland Corp
Priority to JP62303204A priority Critical patent/JPH07109558B2/en
Publication of JPH01198798A publication Critical patent/JPH01198798A/en
Publication of JPH07109558B2 publication Critical patent/JPH07109558B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、一旦離鍵された鍵の押鍵に対応する発音にそ
の発音が重なるように再度同一鍵が押鍵されるような同
一鍵の連打を処理する電子楽器に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Industrial field of use) The present invention relates to the same key in which the same key is pressed again so that the pronunciation corresponds to the pronunciation corresponding to the key depression of a key once released. The present invention relates to an electronic musical instrument that processes continuous tapping.

(従来の技術) 従来、前述されたような電子楽器においては、同一鍵が
再度新たに押鍵された場合には、先の押鍵によって楽音
が割当てられた楽音発生チャネルとは別の楽音発生チャ
ンネルにその新たな押鍵に対して単に楽音を割当てるだ
けの処理が行なわれていた。
(Prior Art) Conventionally, in the electronic musical instrument as described above, when the same key is newly pressed again, a tone generation different from the tone generation channel to which the tone is assigned by the previous key depression is generated. A process of simply assigning a musical sound to the new key depression was performed on the channel.

また、他には、前述されたような処理に引き続いて、新
たな押鍵による楽音発生チャネルの楽音の発音開始後
に、先の押鍵による楽音発生チャネルの楽音の発音を急
速減衰させるような処理が行なわれていた。
Further, in addition to the above-described processing, processing for rapidly attenuating the tone generation of the tone generation channel by the previous key depression after the start of the tone generation of the tone generation channel by the new key depression Was being conducted.

(発明が解決しようとする問題点) しかしながら、前者によれば発音量がいたずらに増加し
たり、連打が続くと楽音発生チャネルが不足して現在発
音中の他の鍵の発音が停止するという問題点がある。
(Problems to be Solved by the Invention) However, according to the former, there is a problem that the amount of pronunciation increases unnecessarily, or the number of musical tone generation channels becomes insufficient and the pronunciation of other keys that are currently sounding stops when continuous tapping continues. There is a point.

また、後者によれば、前述されたような前者の問題点は
解消されるが、強い押鍵の後に弱い押鍵を行なう場合に
は急に音が小さくなるという問題点がある。
Further, according to the latter, the above-mentioned problems of the former are solved, but there is a problem that when the weak key is pressed after the strong key is pressed, the sound suddenly becomes small.

本発明は、このような問題点を解消する目的でなされた
ものである。
The present invention has been made for the purpose of solving such a problem.

(問題点を解決するための手段) 前述された目的を達成するために、本発明による電子楽
器の構成上の特徴は、第1図に示すように、 (a)新たに押鍵された鍵と同一鍵の楽器が既に楽音発
生チャネルに割当てられているか否かを検出する連打検
出手段(1)、 (b)前記新たな押鍵によって発音されるべき楽音の第
1の発音量またはその発音量に相当する値と、既に前記
楽音発生チャネルに割当てられた同一鍵による前記新た
な押鍵により発音されるべき時点に対応する楽音の第2
の発音量またはその発音量に相当する鍵とを検知する検
知手段(2)および (c)これら第1および第2の発音量またはそれら発音
量に相当する値を比較して、前記連打検出手段により連
打が検出される場合に大なる発音量またはその発音量に
相当する値を有する側を選択して優先させて発音させる
比較選択手段(3) を具えることである。
(Means for Solving the Problems) In order to achieve the above-mentioned object, the constitutional features of the electronic musical instrument according to the present invention are, as shown in FIG. 1, (a) a newly depressed key Continuous hit detection means (1) for detecting whether or not a musical instrument having the same key as that already assigned to a tone generation channel, (b) a first tone amount of a tone to be sounded by the new key depression or its pronunciation A second value of the tone corresponding to the value corresponding to the amount and the time point to be sounded by the new key depression by the same key already assigned to the tone generation channel.
Detecting means (2) and (c) for detecting the sound output amount of the key or the key corresponding to the sound output amount, and comparing the first and second sound output amounts or the values corresponding to the sound output amounts, and the continuous hit detecting means. Is provided with comparison and selection means (3) for selecting a side having a large sound generation amount or a value corresponding to the sound generation amount to give priority to sound generation when a continuous stroke is detected.

(作用) 同一鍵における大きな発音量またはその発音量に相当す
る値を有する側が選択されて楽音発生チャネルから発音
され、一方他の小さな発音量またはその発音量に相当す
る値を有する側は急速減衰処理等がされることにより楽
音発生チャネルの占有が速やかに解放されるようにな
る。
(Operation) A side having a large sound amount or a value corresponding to the sound amount of the same key is selected and sounded from the tone generation channel, while a side having another small sound amount or a value corresponding to the sound amount is rapidly attenuated. As a result of processing and the like, the occupation of the tone generation channel can be released quickly.

(発明の効果) したがって、連打時にいたずらに発音量が増大するよう
なことがなく、また楽音発生チャネルの占有がむやみに
行なわれないために、他の鍵の発音を停止させることを
極力避けることができる。
(Effect of the invention) Therefore, it is possible to prevent the sound generation amount from being unnecessarily increased at the time of repeated hits, and to avoid stopping the sound generation of other keys as much as possible because the tone generation channel is not unnecessarily occupied. You can

さらに、連打時に発音中の音と、新しい音とが自然な感
じで無理なくつながる。
Furthermore, the sound being sounded at the time of repeated hits and the new sound are naturally connected without any difficulty.

(実施例) 次に、本発明による電子楽器の具体的実施例につき、図
面を参照しつつ説明する。
(Examples) Next, specific examples of the electronic musical instrument according to the present invention will be described with reference to the drawings.

第1実施例: 第2図には、本発明は適用された減衰音系(パーカッシ
ブ系)の楽音を発生する電子楽器、言い換えれば電子鍵
盤楽器が概略的に示されている。この第2図において、
発音される発音の音高を指定するための複数個の鍵より
構成されている鍵盤20に対する各鍵の押鍵または離鍵操
作にもとづいて、鍵操作検出回路22はいずれの鍵が鍵操
作されているか、さらには押鍵または離鍵状態にあるか
を検出して、内蔵されているバッファに鍵操作されてい
る鍵の音高を表わす音高情報および押鍵・離鍵状態を表
わす押鍵・離鍵情報を蓄積する。これら蓄積された情報
は、マイコン21の制御のもとに、キーコードBKYC、キー
状態フラグBKYSおよびその蓄積期間において変化が生じ
た鍵数を示す変化キーの総数KENのデータとしてバス23
を介してマイコン21に供給される。同様に、鍵操作にも
とづく押鍵の速さ、押鍵圧力の鍵タッチ強さ等がタッチ
レスポンス検出回路24に検出されてそのタッチレスポン
ス検出回路24に内蔵されているバッファにタッチレスポ
ンス情報として蓄積され、これら蓄積された情報はマイ
コン21の制御のもとに前述されたデータBKYC,BKYS等に
対応するタッチレスポンスデータBKTDとしてバス23を介
してマイコン21に供給される。さらには、このマイコン
21には、例えばピアノ、ハープシコード等の音色および
発生される音量等を切換えもしくは調節する操作子群25
の操作状態が操作子検出回路26に検出されて操作子デー
タMNPhとして供給される。また、楽音の減衰を早めるダ
ンプ処理を踏込み操作により禁止して減衰時間を長くす
るダンパーペダルと、踏込み時点における押鍵中の鍵の
ダンプ処理を禁止して楽音の急速な減衰を阻止するとと
もに、離鍵後に踏込み操作を解除することによりダンプ
処理によって楽音が急速減衰するようになるソステヌー
トペダルとより構成されるペダル群27の踏込み状態がペ
ダル検出回路28に検出されてダンパー状態フラグFCDSお
よびソステヌート状態フラグが供給される。これら操作
子データMNPhおよびダンパー状態フラグFCDS等は、マイ
コン21の制御におけるそのマイコン21への供給時点での
操作子状態および踏込み状態を表わしている。また、前
述されたキーコードBKYC、キー状態フラグBKYSおよびタ
ッチレスポンスデータBKTDはキーデータBKYDを構成して
いる。
First Embodiment: FIG. 2 schematically shows an electronic musical instrument, in other words, an electronic keyboard musical instrument, for producing a musical sound of a damped sound system (percussive system) to which the present invention is applied. In FIG. 2,
The key operation detection circuit 22 operates which of the keys is operated based on the operation of pressing or releasing each key on the keyboard 20 which is composed of a plurality of keys for designating the pitch of the pronunciation to be emitted. Whether or not the key is pressed or released. The pitch information indicating the pitch of the key operated in the built-in buffer and the key press indicating the key pressed / released state are detected.・ Accumulate key release information. Under the control of the microcomputer 21, the stored information is stored in the bus 23 as data of the key code BKYC, the key status flag BKYS, and the total number KEN of changed keys indicating the number of keys that have changed during the storage period.
Is supplied to the microcomputer 21 via. Similarly, the key pressing speed based on the key operation, the key touch strength of the key pressing force, etc. are detected by the touch response detection circuit 24 and stored as touch response information in the buffer built in the touch response detection circuit 24. The accumulated information is supplied to the microcomputer 21 via the bus 23 as touch response data BKTD corresponding to the above-mentioned data BKYC, BKYS, etc. under the control of the microcomputer 21. Furthermore, this microcomputer
21 includes an operator group 25 for switching or adjusting the tones of the piano, harpsichord, etc., and the generated volume.
The operation state of is detected by the operator detection circuit 26 and supplied as operator data MNPh. In addition, a damper pedal that prohibits the dumping process that accelerates the decay of the musical sound by the depression operation to lengthen the decay time, and a dumping process of the key during key depression at the time of depression to prevent the rapid decay of the musical sound, The pedal detection circuit 28 detects the stepping state of the pedal group 27 composed of the sostenuto pedals in which the musical tone is rapidly attenuated by the dump process by releasing the stepping operation after releasing the key, and the damper state flag FCDS and the sostenuto state are detected. The flag is supplied. The manipulator data MNPh, the damper state flag FCDS, and the like represent the manipulator state and the stepped state at the time of supply to the microcomputer 21 in the control of the microcomputer 21. The key code BKYC, the key status flag BKYS, and the touch response data BKTD described above form the key data BKYD.

なお、ソステヌート状態フラグおよびそれに関する処理
等の詳細については公知の文献等にゆだねて説明の簡略
化のために省略する。
The details of the sostenuto state flag and the processing related thereto are left to the publicly known documents and the like, and are omitted for simplification of description.

前記マイコン21は、所定プログラムを実行する中央処理
装置(CPU)21Aと、このプログラムを記憶する読出し専
用メモリー(ROM)21Bと、このプログラムを実行するに
必要なワーキングメモリとして、また前述された操作子
データMNPh,ダンパー状態フラグFCDS,キーデータBKYD等
を記憶するに割当てられる各種レジスタとしての書込み
可能メモリー(RAM)21Cと、このプログラム中の時間を
計測するタイマ回路21Dとより構成されている。そし
て、前述された操作子データMNPh,ダンパー状態フラグF
CDS,キーデータBKYD等にもとづき前記プログラムを実行
することにより、本実施例においては16個の楽音発生チ
ャネルを有する楽音発生回路29を制御して、所定の割当
てられた楽音発生チャネルにより所望の楽音信号を生成
し、増巾器30を介してスピーカ31から楽音として発生さ
せている。
The microcomputer 21 has a central processing unit (CPU) 21A for executing a predetermined program, a read-only memory (ROM) 21B for storing the program, a working memory necessary for executing the program, and the operations described above. It is composed of a writable memory (RAM) 21C as various registers assigned to store the child data MNPh, damper status flag FCDS, key data BKYD, etc., and a timer circuit 21D for measuring the time during this program. Then, the manipulator data MNPh and the damper state flag F described above are used.
By executing the program based on the CDS, the key data BKYD, etc., in the present embodiment, the musical tone generating circuit 29 having 16 musical tone generating channels is controlled, and the desired musical tone is generated by the predetermined musical tone generating channels. A signal is generated and generated as a musical sound from the speaker 31 via the amplifier 30.

次に、前述のように構成された本発明による電子楽器の
基本的動作について、第3図の基本プログラムのフロー
チャートにもとづき各ステップ毎に詳述する。
Next, the basic operation of the electronic musical instrument according to the present invention configured as described above will be described in detail for each step based on the flowchart of the basic program of FIG.

A 電源の投入により所定プログラムの実行を開始し
て、各種レジスタとして割当てられる等のマイコン21に
おけるRAM21Cの内容をクリヤするとともに、鍵操作検出
回路22、タッチレスポンス検出回路24、操作子検出回路
26およびペダル検出回路28、さらには楽音発生回路29に
対して所期設定を指令する。
A When the power is turned on, a predetermined program is started to clear the contents of the RAM 21C in the microcomputer 21 such as allocated as various registers, and the key operation detection circuit 22, the touch response detection circuit 24, and the operator detection circuit
26, the pedal detection circuit 28, and further, the musical tone generation circuit 29 are instructed to perform the desired setting.

B 操作子検出回路26から操作子データMNPhを読込み、
この操作子データMNPhによりROM21Bに記憶されている所
定のテーブルからパラメータを読出して楽音発生に関す
るパラメータ群GTEmに変換し、この変換されたパラメー
タ群GTEmを所定のレジスタGTEmRに書込む。このレジス
タGTEmRは楽音発生回路29を構成する16個の楽音発生チ
ャネル夫々に対応して、言い換えればそれら各楽音発生
チャネルに対応されるエンベロープ波形生成チャネル夫
々に対応して設けられている。
B Read the manipulator data MNPh from the manipulator detection circuit 26,
With the manipulator data MNPh, parameters are read from a predetermined table stored in the ROM 21B and converted into a parameter group GTEm relating to musical tone generation, and the converted parameter group GTEm is written into a predetermined register GTEmR. The register GTEmR is provided corresponding to each of the 16 tone generation channels constituting the tone generation circuit 29, in other words, corresponding to each envelope waveform generation channel corresponding to each tone generation channel.

C ペダル検出回路28からペダル群27のダンパーペダル
の踏込み状態を“1"で示すダンパー状態フラグFCDSを読
込み、レジスタFCDSRに書込む。
The damper state flag FCDS, which indicates the state of depression of the damper pedals of the pedal group 27 by "1", is read from the C pedal detection circuit 28 and written in the register FCDSR.

D 鍵操作検出回路22からの前回の読込み時点以降にお
いてバッファに蓄積された音高情報および押鍵・離鍵情
報にもとづくキーコードBKYCと押鍵状態を“1"で示すキ
ー状態フラグBKYSとを生起した時間順序にしたがって読
込むととにも、これら押鍵・離鍵情報にもとづき前回の
読込み時点以降において変化が生じた鍵数を示す変化キ
ーの総数KENを読込む。また、同様にタッチレスポンス
検出回路24から生起した時間順序にしたがってタッチレ
スポンスデータBKTDを読込む。これらのキーコードBKY
C,キー状態フラグBKYSおよびタッチレスポンスデータBK
TDを前述されたように互いに対応されたキーデータBKYD
に構成して、レジスタBKYRの対応する領域に生起した時
間順序にしたがって書込む。
D The key code BKYC based on the pitch information and the key depression / key release information accumulated in the buffer after the last reading from the key operation detection circuit 22 and the key state flag BKYS indicating the key depression state as "1" In addition to reading in the time sequence that occurred, the total number KEN of change keys indicating the number of keys that have changed since the last read time is read based on these key press / key release information. Similarly, the touch response data BKTD is read according to the time sequence generated from the touch response detection circuit 24. These key codes BKY
C, key status flag BKYS and touch response data BK
Key data BKYD corresponding to each other as described above in TD
And write to the corresponding area of register BKYR according to the time sequence that occurred.

また、変化キーの総数KENを新たな処理待ちキーの数BKE
NとしてレジスタBKENRに書込む。
In addition, the total number of changed keys KEN is calculated as the number of new pending keys BKE
Write to register BKENR as N.

E レジスタBKENRに書込まれている処理待ちキーの数B
KEN“0"であるか否かによって押鍵または離鍵にもとづ
く鍵操作の処理が終了したか否かを判断する。処理待ち
キーの数BKENが“1"以上で鍵操作の処理が終了していな
い場合にはステップGに行く。
E Number of pending keys written in register BKENR B
Depending on whether or not KEN is "0", it is determined whether or not the key operation processing based on the key depression or key release is completed. When the number of processing waiting keys BKEN is “1” or more and the processing of the key operation is not completed, the process goes to step G.

F ステップEにおける判断において処理待ちキーの数
BKENが“0"で鍵操作の処理が終了している場合には、各
エンベロープ波形生成チャネルにおいて、順次に次のよ
うに所定のエンベロープの処理を行なう。
F The number of keys waiting to be processed in the judgment in step E
When the BKEN is "0" and the key operation processing is completed, the predetermined envelope processing is sequentially performed in each envelope waveform generation channel as follows.

i)ROM21Bに記憶されたエンベロープ波形の所定テーブ
ルを読出し、対応するレジスタGTEmRに書込まれている
楽音発生に関するパラメータ群GTEm、さらには後述され
る同様に対応するレジスタKYCR,KTDRに書込まれている
キーコードKYC,タッチレスポンスデータKTDにもとづい
て、所定時間当りのエンベロープの変化値(エンベロー
プの増盛および減衰に応じて正負を含む。)を示すレー
トRTおよび累算されるそのレートRT値が変わるエンベロ
ープの傾きの変化点を示すブレークポイントLBPの夫々
より構成されるレートRTj群およびブレークポイントLBP
j群を演算生成する。
i) A predetermined table of envelope waveforms stored in the ROM 21B is read out, and is written in the corresponding tone register parameter GTE m written in the corresponding register GTE m R, and similarly in the corresponding registers KYCR, KTDR described later. Based on the embedded key code KYC and touch response data KTD, the rate RT indicating the change value of the envelope (including positive and negative depending on the increase and decrease of the envelope) per predetermined time and its accumulated rate. The rate RT j group and the breakpoint LBP each consisting of the breakpoint LBP indicating the change point of the envelope slope at which the RT value changes
Compute and generate group j .

ii)算出された所定のレートRTj群およびブレークポイ
ントLBPj群にもとづきエンベロープレベルLEVを演算,
言い換えればエンベロープ波形を演算する(このエンベ
ロープレベルLEVの演算は、まず算出されたレートRTj
のうちの所定のレートRTで累算して、この累算値が同様
に算出されたブレークポイントLBPj群のうちの所定のブ
レークポイントLBPに到達したならばその次の所定のレ
ートRTで累算する等を繰り返すことによって行な
う。)。
ii) Calculate the envelope level LEV based on the calculated predetermined rate RT j group and breakpoint LBP j group,
In other words, the envelope waveform is calculated (this envelope level LEV is calculated by first accumulating at a predetermined rate RT of the calculated rate RT j group and calculating the accumulated value similarly at the breakpoint LBP. When a predetermined break point LBP in the j- group is reached, it is repeated by accumulating at the next predetermined rate RT, etc.).

iii)前項のようにして生成されるエンベロープ波形に
おいて、いわゆるADSR表現におけるアタック部Aを終了
(アタック部Aの終了に対応するブレークポイントLBP
“−AT"にエンベロープレベルLEVが到達したか否かによ
って判断)するとアタック終了フラグEV“−AT"を“0"
にし、またディケイ部Dを終了(ディケイ部Dの終了に
対応するブレークポイントLBP“−DK"にエンベロープレ
ベルLEVが到達したか否かによって判断)するとディケ
イ終了フラグEV“−DK"を“0"にする。さらに、リリー
ス部Rを終了(リリース部Rの終了に対応するブレーク
ポイントLBP“−END"にエンベロープレベルLEVが到達し
たか否かによって判断)するとエンベロープ終了フラグ
EV“−END"を“0"にする。このエンベロープ終了フラグ
EV“−END"の“0"により対応する楽音発生チャネルが解
放される。
iii) In the envelope waveform generated as described in the previous section, the attack part A in the so-called ADSR expression ends (breakpoint LBP corresponding to the end of the attack part A).
When it is judged whether the envelope level LEV has reached "-AT"), the attack end flag EV "-AT" is set to "0".
And when the decay section D is terminated (determined by whether or not the envelope level LEV reaches the breakpoint LBP "-DK" corresponding to the termination of the decay section D), the decay end flag EV "-DK" is set to "0". To Further, when the release section R is ended (determined by whether or not the envelope level LEV reaches the breakpoint LBP “-END” corresponding to the end of the release section R), the envelope end flag
Set EV "-END" to "0". This envelope end flag
The corresponding tone generation channel is released by EV "-END""0".

(これらレートRT3群,ブレークポイントLBPj群、演算
対象のレートRTおよびブレークポイントLBP、エンベロ
ープレベルLEVおよび各種フラグEV“−AT",EV“−DK",E
V“−END"は、後述される消音処理要求フラグDMPQおよ
び消音処理中フラグRDMPを含めて各エンベロープ波形生
成チャネル毎に対応して設定される。したがって、これ
らのデータを書込みおよび/または読出すレジスタRT
jR,LBPjR,RTR,LBPR,LEVR,EV−ATR,EV−DKR,EV−ENDR,DM
PQR,RDMPRも各エンベロープ波形生成チャネル毎に設け
られている。そして、これらは各エンベロープ波形生成
チャネル毎に一群を構成し、一群として取り扱われ
る。) レジスタRKOFRに書込まれる離鍵エンベロープの処理中
フラグRKOF“1"に設定されて後述される離鍵の処理(ス
テップK)が開始される場合に、レジスタFCDSRに書込
まれているダンパー状態フラグFCDSがペダル群27のダン
パーペダルの踏込み状態にない“0"を示している場合に
は、対応するレジスタEV−ATRに書込まれているアタッ
ク終了フラグEV“−AT"がアタック部Aの終了“0"を示
した後において、離鍵エンベロープ処理中フラグRKOFを
“0"に設定し直してエンベロープ波形を所定の離鍵エン
ベロープに変更する。さらに、対応するレジスタDMPQR
に書込まれた消音処理要求フラグDMPQが消音処理の要求
“1"を示している場合には、この消音処理要求フラグDM
PQを“0"に設定し直して、アタックを特徴づける音を発
生させてアタック感を与えるために、同様にアタック終
了フラグEV“−AT"がアタック部Aの終了を示した後に
おいて、所定の消音エンベロープに変更する。これら離
鍵エンベロープおよび消音エンベロープの生成方法は前
述された生成方法に準じている。
(These rates RT 3 groups, breakpoint LBP j group, target rate RT and breakpoint LBP, envelope level LEV and various flags EV "-AT", EV "-DK", E
V "-END" is set corresponding to each envelope waveform generation channel including a silence processing request flag DMPQ and a silence processing in progress flag RDMP which will be described later. Therefore, the register RT that writes and / or reads these data
j R, LBP j R, RTR, LBPR, LEVR, EV-ATR, EV-DKR, EV-ENDR, DM
PQR and RDMPR are also provided for each envelope waveform generation channel. Then, these form a group for each envelope waveform generation channel and are handled as a group. ) When the key release envelope processing flag RKOF written in register RKOFR is set to “1” and the key release processing (step K) described later is started, the damper state written in register FCDSR is written. When the flag FCDS indicates "0" that the damper pedal of the pedal group 27 is not depressed, the attack end flag EV "-AT" written in the corresponding register EV-ATR indicates that the attack portion A After indicating the end "0", the key release envelope processing flag RKOF is reset to "0" and the envelope waveform is changed to a predetermined key release envelope. In addition, the corresponding register DMPQR
If the mute processing request flag DMPQ written in the field indicates the mute processing request “1”, this mute processing request flag DM
In order to reset the PQ to "0" and generate a sound characterizing the attack to give an attack feeling, similarly, after the attack end flag EV "-AT" indicates the end of the attack part A, a predetermined value is set. Change to the muffling envelope of. The method of generating the key release envelope and the muffling envelope conforms to the above-described method of generation.

エンベロープ処理後はステップBに戻る。After the envelope processing, the process returns to step B.

G ステップEにおける判断において鍵操作の処理が終
了していない場合には、レジスタBKYRに書込まれている
キーデータBKYDのうち最も古いキーデータBKYDを読出し
て(先入先出法)、このキーデータBKYDに含まれるキー
状態フラグBKYSにより読出されたキーデータBKYDに対応
する鍵が押鍵状態であるか否かを判断する。キー状態フ
ラグBKYSが“0"を示して押鍵状態にない離鍵状態の場合
にはステップKに行く。
G If the key operation processing is not completed in the judgment at step E, the oldest key data BKYD among the key data BKYD written in the register BKYR is read (first-in first-out method), and this key data is read. It is determined whether or not the key corresponding to the key data BKYD read by the key status flag BKYS included in BKYD is in the depressed state. When the key status flag BKYS indicates "0" and the key is not in the key released state, the process goes to step K.

H ステップGの判断においてキー状態フラグBKYSが
“1"を示して押鍵状態にある場合には、レジスタBKENR
に書込まれている処理待ちキーの数BKENから“1"を減算
して。この減算後の数を新たな処理待ちキーの数BKENと
してレジスタBKENRに書込む。
If the key state flag BKYS indicates "1" in the key depression state in the judgment of H step G, the register BKENR
Subtract "1" from the number of pending keys BKEN written in. The number after this subtraction is written in the register BKENR as the number of new waiting keys BKEN.

(楽音の割当ては、各楽音発生チャネル夫々に、対応さ
せて設けられている楽音割当チャネル毎に、設定される
キーコードKYC,キー状態フラグKYS,タッチレスポンスデ
ータKTDおよびピッチデータFQYのうち、キーコードKYC,
キー状態フラグKYSおよびタッチレスポンスデータKTDに
対するレジスタKYCR,KYSR,KTDR夫々にレジスタBKYRから
読出される所定のキーデータBKYDのキーコードBKYC,
“1"であるキー状態フラグBKYSおよびタッチレスポンス
データBKTDをキーデータKYDのキーコードKYC,キー状態
フラグKYSおよびタッチレスポンスデータKTDとして書込
むことで、さらにレジスタFQYRへ対応するレジスタGTEm
Rに書込まれている楽音発生に関するパラメータ群GTEm
とレジスタKYCRに書込まれているキーコードKYCとによ
り演算生成されたピッチデータFQYを書込むことで行な
われる。さらに、対応するエンベロープ波形生成チャネ
ルに対応して、消音処理要求フラグDMPQ,消音処理中フ
ラグRDMPおよび離鍵エンベロープ処理中フラグRKOFを
“0"に設定し直して所定レジスタDMPQR,RDMPR,RKOFRに
書込み、エンベロープレベルLEVのレジスタLEVRをクリ
アすることで行なわれる。また、前述されたレジスタRT
jR,LBPjRにレートRTj群およびブレイクポイントLBPj
を書込み、さらにレジスタEV−ATR,EV−DKR,EV−ENDRの
各種フラグを“1"に設定することで行なわれる。) 楽音発生チャネルへの割当ては、次のように行なう。
(Musical tone is assigned to each tone generation channel by the key code KYC, key status flag KYS, touch response data KTD, and pitch data FQY set for each musical tone generation channel. Code KYC,
Key code BKYC, of the predetermined key data BKYD read from register BKYR in registers KYCR, KYSR, and KTDR for key status flag KYS and touch response data KTD, respectively
By writing the key status flag BKYS and touch response data BKTD that are "1" as the key code KYC, key status flag KYS and touch response data KTD of the key data KYD, the register GTE m corresponding to the register FQYR is further written.
Parameter group for tone generation written in R GTE m
And the pitch data FQY calculated by the key code KYC written in the register KYCR. Further, the mute processing request flag DMPQ, the mute processing flag RDMP, and the key release envelope processing flag RKOF are reset to “0” and written to the predetermined registers DMPQR, RDMPR, and RKOFR corresponding to the corresponding envelope waveform generation channel. , The envelope level LEV is cleared by clearing the register LEVR. Also, the above-mentioned register RT
This is performed by writing the rate RT j group and the breakpoint LBP j group to j R and LBP j R, and setting various flags of the registers EV-ATR, EV-DKR and EV-ENDR to "1". ) The assignment to the tone generation channel is performed as follows.

i)各楽音割当チャネルのレジスタKYSRに書込まれてい
るキー状態フラグKYSおよび各エンベロープ波形生成チ
ャネルのレジスタEV−ENDRに書込まれているエンベロー
プ終了フラグEV“−END"より発音を終了し解放されてい
る楽音発生チャネルを検出して前述のようにして割当て
て発音の開始を指示する。また、割当てた楽音発生チャ
ネルの番号をレジスタANCHRに新押鍵のチャネル番号ANC
Hとして、さらに割当てによりレジスタKYCRに書込まれ
るキーコードBKYCをレジスタANKCRに新押鍵のキーコー
ドANKCとして書込む。この楽音割当チャネルに対応して
夫々設けられているレジスタTSTRに書込まれる発音開始
よりの時間タイマTSTをリセットして、次のステップI
に行く。
i) Ending and releasing the sound from the key status flag KYS written in the register KYSR of each tone allocation channel and the envelope end flag EV "-END" written in the register EV-ENDR of each envelope waveform generation channel. The generated tone generation channels are detected and assigned as described above to instruct the start of sound generation. The assigned tone generation channel number is stored in the register ANCHR as the new key press channel number ANC.
Further, as H, the key code BKYC written in the register KYCR by allocation is written in the register ANKCR as the key code ANKC of the new key depression. The time timer TST from the start of sounding, which is written in the register TSTR provided for each of the musical tone allocation channels, is reset and the next step I
go to.

ii)解放されている楽音発生チャネルは検出されなかっ
た場合には、各エンベロープ波形生成チャネルのレジス
タLEVR,EV−ATR夫々に書込まれているエンベロープレベ
ルLEVおよびアタック終了フラグEV“−AT"にもとづき発
音中でアタック部Aを終了したエンベロープレベルLEV
の最も小さい楽音発生チャネルを検出する。そして、前
述のようにして割当てて発音の開始を指示する。割当て
た楽音発生チャネルの番号をレジスタANCHRに、またレ
ジスタKYCRに書込まれるキーコードBKYCをレジスタANKC
Rに書込む。さらに、発音開始よりの時間タイマTSTをリ
セットして、次のステップIに行く。なお、この場合に
はレジスタLEVRをリセットして発音を停止する処理を行
なったが、急速減衰処理を施すのが望ましい。
ii) If no released tone generation channel is detected, the envelope level LEV and attack end flag EV “-AT” written in the registers LEVR, EV-ATR of each envelope waveform generation channel are set. Envelope level LEV that has finished attack part A while producing sound
Detects the smallest tone generation channel of. Then, as described above, it is assigned and the start of sounding is instructed. The assigned tone generation channel number is stored in register ANCHR, and the key code BKYC written in register KYCR is stored in register ANKC.
Write to R. Further, the time timer TST from the start of sound generation is reset and the process goes to the next step I. In this case, although the register LEVR is reset to stop the sound generation, it is preferable to perform the rapid attenuation process.

I 連打の検出ルーチン。詳細は第4図に示されている
連打の検出ルーチンのフローチャートにより後述する。
I Continuous hit detection routine. Details will be described later with reference to the flowchart of the continuous hit detection routine shown in FIG.

J 消音処理対象の検出および指示ルーチン。詳細は第
5図に示されている消音処理対象の検出および指示ルー
チンのフローチャートにより後述する。
J A mute processing target detection and instruction routine. The details will be described later with reference to the flowchart of the detection and instruction routine of the noise reduction processing target shown in FIG.

K ステップGの判断においてキー状態フラグBKYSが
“0"を示して押鍵状態にない離鍵状態の場合には、レジ
スタBKENRに書込まれている処理待ちキーの数BKENから
“1"を減算して、この減算後の数を新たな処理待ちキー
の数BKENとしてレジスタBKENRに書込む。
If the key state flag BKYS indicates "0" in the judgment of step G and the key is not in the key release state, "1" is subtracted from the number of waiting keys BKEN written in the register BKENR. Then, the number after this subtraction is written in the register BKENR as the number of new waiting keys BKEN.

レジスタBKYRに書込まれているキーデータBKYDに含まれ
ているキーコードBKYCにより、各楽音割当チャネルにお
けるレジスタKYCR,KYSR夫々に書込まれているキーコー
ドKYCおよびキー状態フラグKYSにおいてキーコードBKY
C,KYCが同じでキー状態フラグKYSが押鍵中の“1"を示す
楽音割当チャネルを検出して、離鍵エンベロープ処理中
フラグRKOFを離鍵エンベロープ処理中の“1"に設定する
とともに、キー状態フラグKYSを離鍵状態の“0"に変更
して、離鍵処理の開始を指示してステップEに戻る。
By the key code BKYC contained in the key data BKYD written in the register BKYR, the key code KYC written in each of the registers KYCR and KYSR in each tone allocation channel and the key code BKY in the key status flag KYS.
C and KYC are the same, and the key status flag KYS detects a tone allocation channel that indicates "1" during key depression, and sets the key release envelope processing flag RKOF to "1" during key release envelope processing. The key state flag KYS is changed to "0" indicating that the key has been released, the start of the key release process is instructed, and the process returns to step E.

前述のような楽音発生チャネルが検出されない場合には
そのままステップEに戻る。
When the tone generation channel as described above is not detected, the process directly returns to step E.

次に、連打の検出ルーチン(ステップI)について、第
4図を参照しつつステップ毎に詳述する。
Next, the continuous hit detection routine (step I) will be described step by step with reference to FIG.

I−1 レジスタnRに書込まれるループ数nを“1"に、
またレジスタDMPFRに書込まれる消音処理開始フラグDMP
Fを消音処理の開始を示さない“0"に初期設定する。
Set the number of loops n written in the I-1 register nR to "1",
Also, the mute processing start flag DMP written in the register DMPFR.
Initialize F to "0", which does not indicate the start of mute processing.

1−2 レジスタFCDSRに書込まれているダンパー状態
フラグFCDSにより、離鍵されてもペダル群27のダンパー
ペダルが踏込まれてダンプ処理が禁止されているか否か
を判断する。ダンバーペダルが踏込み状態になくてダン
パー状態フラグFCDSが“0"を示してダンプ処理が禁止さ
れていない場合には、ダンプ処理の対象となっている楽
音発生チャネルにおける発音継続時間は短くて格別の処
理を行なわなくても支障をきたす恐れがないためにルー
チンを終了する。
1-2 With the damper state flag FCDS written in the register FCDSR, it is determined whether or not the damper pedal of the pedal group 27 is depressed and the dump processing is prohibited even if the key is released. If the damper pedal is not in the depressed state and the damper state flag FCDS is "0" indicating that dump processing is not prohibited, the duration of sound generation in the tone generation channel subject to dump processing is short and exceptional. The routine is terminated because there is no danger of causing trouble even if the processing is not performed.

I−3 ステップI−2における判断においてダンパー
状態フラグFCDSが“1"を示してダンプ処理が禁止されて
いる場合には、レジスタANCHRに書込まれている新押鍵
のチャネル番号ANCHがレジスタnRに書込まれているルー
プ数nに等しいか否かを判断する。ループ数nに等しく
ない場合にはステップI−6に行く。
I-3 If the damper state flag FCDS indicates "1" and the dump processing is prohibited in the judgment in step I-2, the channel number ANCH of the newly depressed key written in the register ANCHR is the register nR. It is determined whether or not it is equal to the loop number n written in If the number of loops is not equal to n, go to step I-6.

I−4 ステップI−3における判断において新押鍵の
チャネル番号ANCHがループ数nに等しい場合には、ルー
プ数nに“1"を加算して、新たなループ数nとしてレジ
スタnRに書込む。
I-4 If the channel number ANCH of the newly depressed key is equal to the loop number n in the judgment in step I-3, "1" is added to the loop number n and the new loop number n is written in the register nR. .

このステップI−4は、連打検出の相手先が自己の楽音
発生チャネルであるという矛盾を避けるためである。
This step I-4 is for avoiding the contradiction that the partner of the repeated hit detection is the own tone generation channel.

I−5 ROM21Bに記憶されている本実施例においては16
の楽音発生チャネル数NをレジスタnRに書込まれている
ループ数nと比較してループ数nが大きくなければステ
ップI−3に戻り繰り返し、またループ数nが大きけれ
ば全ての楽音発生チャネルに対応する連打先がなかった
ことによりルーチンを終了する。
In the present embodiment stored in the I-5 ROM 21B, 16
The number N of musical tone generation channels is compared with the number n of loops written in the register nR, and if the number n of loops is not large, the process returns to step I-3 and repeats. The routine ends because there is no corresponding continuous hit point.

I−6 ステップI−3における判断においてループ数
nが新押鍵のチャネル番号ANCHに等しくない場合には、
レジスタANKCRに書込まれている新押鍵のキーコードANK
Cと、レジスタnRに書込まれているループ数nに対応す
るチャネル番号の楽音発生チャネルに対する楽音割当チ
ャネルのレジスタKYCRに書込まれているキーコードKYC
と同一であるか否かを判断する。新押鍵のキーコードAN
KCとキーコードKYCとが同一でない場合には他を探すた
めにステップI−4に行く。
I-6 If the number of loops n is not equal to the channel number ANCH of the new key depression in the determination in step I-3,
Key code ANK of new key pressed written in register ANKCR
C and the key code KYC written in the register KYCR of the musical tone allocation channel for the musical tone generation channel of the channel number corresponding to the loop number n written in the register nR.
It is determined whether or not Key code for new key press AN
If KC and the key code KYC are not the same, go to step I-4 to search for another.

I−7 ステップI−6における判断において新押鍵の
キーコードANKCとキーコードKYCとが同一である場合に
は、ループ数nに対応するチャネル番号の前記楽音発生
チャネルに対する楽音割当チャネルのレジスタRDMPRに
書込まれている消音処理中フラグRDMPが消音処理中を示
す“1"であるか否かを判断する。消音処理中フラグRDMP
が“1"を示して消音処理中である場合には前回の連打検
出によってその同一鍵の連打処理のために消音処置され
ていることから他を探すためにステップI−4に行く。
なお、ステップHの押鍵の処理における楽音発生チャネ
ルへの割当て、ii)において急速減速処理をする場合
に、急速減衰処理中である場合には同様の処理とする。
I-7 If the key code ANKC and key code KYC of the newly depressed key are the same in the judgment in step I-6, the register RDMPR of the tone allocation channel for the tone generation channel of the channel number corresponding to the loop number n It is determined whether or not the silencing processing flag RDMP written in “1” is “1” indicating that the silencing processing is in progress. Silent processing flag RDMP
Indicates "1" and the mute processing is being performed, the mute processing has been performed for the same key repeated hit processing by the previous repeated hit detection, so the process goes to step I-4 to search for another.
When the key is depressed in step H, it is assigned to a tone generation channel, and when the rapid deceleration process is performed in ii), the same process is performed when the rapid decay process is in progress.

I−8 ステップI−7における判断において消音処理
中フラグRDMPが“0"を示して消音処理中でない場合に
は、適切な連打関係にある先に押鍵された同一鍵の旧押
鍵(以後においては「旧押鍵」と称する。)として、そ
の旧押鍵のチャネル番号を表わすループ数nを旧押鍵の
チャネル番号AOCHとしてレジスタAOCHRに書込む。ま
た、消音処理開始フラグDMPFを消音処理開始を示す“1"
にして、レジスタDMPFRに書込む。
I-8 If the mute processing flag RDMP indicates "0" in the judgment in step I-7 and the mute processing is not in progress, the previous key depression of the same key (hereinafter referred to as the previous key depression) having an appropriate repeated hitting relationship In the register AOCHR), the loop number n representing the channel number of the old key depression is written in the register AOCHR as the channel number AOCH of the old key depression. Further, the muffling process start flag DMPF is set to "1" indicating that the muffling process is started.
And write to register DMPFR.

以上の連打の検出ルーチンは、要するに同一鍵が既に楽
音発生チャネルのいずれかに割当てられており、かつ有
効発音中の楽音発生チャネルを検索して、その楽音発生
チャネルのチャネル番号をレジスタAOCHRに書込み、消
音処理開始フラグDMPFを消音開始処理を示す“1"に設定
することである。したがって、同一鍵であっても発音継
続時間の短い、連打処理において既に消音処理の開始が
指示された楽音発生チャネルは除かれる。なお、新たな
押鍵毎に前述されたように連打の検出が行なわれるの
で、有効発音中の楽音発生チャネルは最大1つしか生じ
ない。
In the above-mentioned repeated hit detection routine, in short, the same key is already assigned to one of the tone generation channels, and the tone generation channel that is in the active tone generation is searched, and the channel number of that tone generation channel is written to the register AOCHR. The mute processing start flag DMPF is set to "1" indicating the mute start processing. Therefore, even if the same key is used, the musical tone generation channel for which the mute processing has already been instructed to start in the repeated hitting processing, which has a short sounding duration, is excluded. It should be noted that since the repeated hits are detected as described above for each new key depression, only one musical tone generation channel is being generated during effective sound generation.

次に、消音処理対象の検出および指示ルーチン(ステッ
プJ)について、第5図を参照しつつステップ毎に詳述
する。
Next, the muffling process target detection and instruction routine (step J) will be described step by step with reference to FIG.

J−1 レジスタDMPFRに書込まれている消音処理開始
フラグDMPFが消音処理開始を示す“1"であるか否かを判
断する。消音処理開始フラグDMPFが“0"を示して消音処
理開始がされていない場合にはルーチンを終了する。
It is determined whether or not the silencing process start flag DMPF written in the J-1 register DMPFR is "1" indicating the silencing process start. When the muffling process start flag DMPF indicates "0" and the muffling process has not been started, the routine ends.

J−2 ステップJ−1における判断において消音処理
開始フラグDMPFが“1"を示して消音処理開始がされてい
る場合には、次のようにエンベロープ波形をシミュレー
トして残存発音量の演算を行なう。なお、エンベロープ
波形のシミュレートは、ROM21Bのテーブルからキーコー
ドBKYC(KYC)、タッチレスポンスデータBKTD(KTD)お
よび操作子データMNPhにもとづき所定のエンベロープ波
形の生成に必要なレートRTj群およびブレークポイント
レベルLBPj群を演算作成し、エンベロープ波形の生成動
作を高速にシミュレートして、実際の所定時間間隔(例
えば1msec)のエンベロープレベルLEVを短時間に逐次演
算することで行なう。
J-2 When the mute processing start flag DMPF indicates "1" and the mute processing is started in the judgment at step J-1, the envelope waveform is simulated as follows to calculate the remaining tone generation amount. To do. Incidentally, simulation of the envelope waveform, the key code BKYC (KYC) from ROM21B table, touch response data BKTD (KTD) and rate RT j group and breakpoints required to generate a predetermined envelope waveform based on operator data MNPh The level LBP j group is calculated and created, the generation operation of the envelope waveform is simulated at high speed, and the envelope level LEV at an actual predetermined time interval (for example, 1 msec) is sequentially calculated in a short time.

1)新たに押鍵された鍵により発音されるべき音量WNL 新押鍵のエンベロープ波形をシミュレートし、新押鍵の
エンベロープ波形がサステイン部Sに到達してから新押
鍵による発音が終了するまでの所定時間間隔のエンベロ
ープレベルLEVを累積加算する次式により、レジスタWNL
Rに書込まれる新押鍵の発音量WNLを求める。
1) Volume WNL to be sounded by the newly pressed key Simulates the envelope waveform of the newly pressed key, and after the envelope waveform of the newly pressed key reaches the sustain section S, the pronunciation by the newly pressed key ends. To the register WNL according to the following formula that cumulatively adds the envelope level LEV for a predetermined time interval up to
Obtain the pronunciation WNL of the new keypress written in R.

2)旧押鍵の発音されるべき音量WOL 旧押鍵のエンベロープ波形をシミュレートし、新押鍵の
エンベロープ波形がサステイン部Sに到達してから旧押
鍵が発音を終了するまでの所定時間間隔のエンベロープ
レベルLEVを累算加算する次式により、レジスタWOLRに
書込まれる旧押鍵の発音量WOLを求める。
2) Volume to be played by the old key press WOL Simulating the envelope waveform of the old key press, and the predetermined time from when the envelope waveform of the new key press reaches the sustain section S until the old key press finishes sounding. The tone generation amount WOL of the old key depression written in the register WOLR is obtained by the following equation for cumulatively adding the envelope level LEV of the interval.

なお、 V(t) t時のエンベロープレベルLEV T1 新押鍵の発音開始からそのエンベロープ波形
がディケイ部Dを終了するまでの時間 T2 旧押鍵の発音開始から新押鍵が発音開始する
までの時間 TN−END 新押鍵の発音開始からそのエンベロープ波形
がリリース部Rを終了するまでの時間 TO−END 旧押鍵の発音開始からそのエンベロープ波形
がリリース部Rを終了するまでの時間 である。
Envelope level at V (t) t LEV T1 Time from start of new key press to end of decay waveform D of envelope waveform T2 From start of old key press to start of new key press Time TN-END Time from the start of sounding a new key press to the end of the release section R of the envelope waveform TO-END Time from the start of sounding of the old key press to the end of the release section R of the envelope waveform.

(これらの時間T1,TN−END,TO−ENDはエンベロープ波形
をシミュレートして求め、時間T2は旧押鍵の発音開始よ
りの経過時間を示す対応するレジスタTSTRに書込まれて
いる発音開始よりの経過時間タイマTSTの現在値を読取
ることにより得る。) J−3 レジスタWNLRに書込まれている新押鍵の発音量
WNLがレジスタWOLRに書込まれている旧押鍵の発音量WOL
より大であるか否かを判断する。
(These times T1, TN-END, TO-END are obtained by simulating the envelope waveform, and time T2 is the start of sounding that is written in the corresponding register TSTR that indicates the elapsed time from the start of sounding the old key. It is obtained by reading the current value of the elapsed time timer TST.) J-3 Sound volume of new keypress written in register WNLR
WNL is the pronunciation amount WOL of the old keypress written in the register WOLR.
Determine if it is greater.

J−4 ステップJ−3における判断において新押鍵の
発音量WNLが大である場合には、レジスタAOCHRに書込ま
れている旧押鍵チャネル番号AOCHを消音処理対象チャネ
ル番号WDCHとしてレジスタWDCHRに書込む。
J-4 If the pronunciation amount WNL of the new key depression is large in the judgment in step J-3, the old key depression channel number AOCH written in the register AOCHR is set in the register WDCHR as the mute processing target channel number WDCH. Write.

J−5 ステップJ−3における判断において新押鍵の
発音量WNLが大でない場合には、レジスタANCHRに書込ま
れている新押鍵のチャネル番号ANCHを消音処理対象チャ
ネル番号WDCHとしてレジスタWDCHRに書込む。
J-5 If the pronunciation amount WNL of the new key depression is not large in the judgment in step J-3, the channel number ANCH of the new key depression written in the register ANCHR is set in the register WDCHR as the mute processing target channel number WDCH. Write.

J−6 レジスタWDCHRに書込まれている消音処理対象
チャネル番号WDCHに対応するエンベロープ波形生成チャ
ネルの消音処理要求フラグDMPQおよび消音処理中フラグ
RDMPを消音処理要求または消音処理中を示す“1"に設定
する。
J-6 Mute processing request flag DMPQ and mute processing flag of the envelope waveform generation channel corresponding to the mute target channel number WDCH written in register WDCHR
Set RDMP to "1", which indicates that the mute processing request or mute processing is in progress.

以上の消音処理対象の検出および指示ルーチンは、要す
るにエンベロープ波形のアタック部Aがアタック感を与
えサステイン部S以降が主に音量感に寄与するために、
新押鍵のエンベロープ波形がサステイン部Sに到達する
べき時点以降における新旧両押鍵夫々が発音終了するま
での各予定発音量を演算して、発音量の多い押鍵を優先
して発音量の少ない押鍵の割当てられている楽音発生チ
ャネルを解放しようとするものである。なお、消音処理
に用いられる減衰レートは楽音発生チャネルの割当てに
おける急速減衰レートより緩やかな値に設定し自然な感
じでつながるようにする。
In the above-described detection and instruction routines for the sound deadening processing target, in short, the attack portion A of the envelope waveform gives an attack feeling, and the sustain portion S and subsequent parts mainly contribute to the volume feeling.
After the time when the envelope waveform of the new key press should reach the sustain section S, the expected sound generation amount until the sound generation of both the old and new key generation is finished is calculated, and the sound generation amount is prioritized by the key generation with the larger sound generation amount. It is intended to release the tone generation channel to which a small number of key depressions are assigned. It should be noted that the attenuation rate used for the sound deadening process is set to a value gentler than the rapid attenuation rate in allocating the tone generation channel so that the sound is naturally connected.

なお、旧押鍵がアタック部Aを終了してなければ新旧両
押鍵の発音量WNL,WOLと、例えば第6図に示されている
タッチレスポンスデータKTD−アタックレベルLATK変換
グラフに対応してROM21Bに前もって記憶されているその
変換テーブルにより変換されたアタックレベルLATKとの
比率はほぼ同じなので発音量WNL,WOLの比較に換えてア
タックレベルLATKを比較してもよい。
If the old key press has not finished the attack portion A, it corresponds to the pronunciation amounts WNL and WOL of both the old and new key presses and the touch response data KTD-attack level LATK conversion graph shown in FIG. 6, for example. Since the ratio with the attack level LATK converted by the conversion table stored in advance in the ROM 21B is almost the same, the attack level LATK may be compared instead of comparing the sound production amounts WNL and WOL.

さらに、新押鍵のアタックレベルLATKが旧押鍵のアタッ
クレベルLATKよりも大きければ新押鍵の発音量WNLは旧
押鍵の発音量WOLより必ず大きいので、まずアタックレ
ベルLATKを比較して、新押鍵のアタックレベルLATKが旧
押鍵のアタックレベルLATKより大きければ新押鍵の発音
量WNLが大とし、逆に新押鍵のアタックレベルLATKが大
きくなければ、前記ステップJ−2およびJ−3によっ
て処理を行なうようにすればよい。
Furthermore, if the attack level LATK of the new key press is larger than the attack level LATK of the old key press, the pronunciation amount WNL of the new key press is always larger than the pronunciation amount WOL of the old key press, so first compare the attack level LATK, If the attack level LATK of the new key depression is larger than the attack level LATK of the old key depression, the pronunciation amount WNL of the new key depression is large, and conversely, if the attack level LATK of the new key depression is not large, the steps J-2 and J are performed. The process may be performed by -3.

本実施例によれば、同一鍵が連打されて新押鍵の発音量
WNLが大となる場合には第7図に示されるように発音さ
れ、また旧押鍵の発音量WOLが大なる場合には第8図に
示されるように発音されて、連打時に発音中の音と、新
しい音とが自然な感じで無理なくつながるようになる。
なお、第6図および第7図夫々の下部に示されている矩
形波形は同一鍵に対する旧押鍵および新押鍵の押鍵・離
鍵状態を示している。
According to the present embodiment, the same key is repeatedly struck and the pronunciation amount of a new key press.
When WNL is large, it is pronounced as shown in FIG. 7, and when the pronunciation amount WOL of the old key is large, it is pronounced as shown in FIG. Sounds and new sounds are naturally connected.
The rectangular waveforms shown in the lower part of each of FIGS. 6 and 7 show the key press / release states of the old key press and the new key press for the same key.

次に、実施例の変形例を順次に説明する。Next, modifications of the embodiment will be sequentially described.

−実施例1− 処理の簡略化と高速化とを図るための変形例を説明す
る。
-Embodiment 1- A modified example for simplifying and speeding up the processing will be described.

エンベロープ波形のサステイン部S以降に関しては、同
一鍵の新押鍵および旧押鍵夫々の発音量WNL.WOLはエン
ベロープレベルLEVに密接な相関関係を有している。言
い換えれば、同一鍵に関してサステイン部S以降の各エ
ンベロープ波形における所定時間当りのエンベロープの
変化値はほぼ同じとなり、これらサステイン部S以降の
エンベロープ波形は相似形状にあると見倣される。した
がって、サステイン部S以降のエンベロープレベルLEV
にもとづき発音量に相当する値WNL′,WOL′を次のよう
に得ることができる。
After the sustain portion S of the envelope waveform, the pronunciation amounts WNL.WOL of the new key depression and the old key depression of the same key have a close correlation with the envelope level LEV. In other words, with respect to the same key, the change value of the envelope per predetermined time in each envelope waveform after the sustain portion S is almost the same, and it is considered that the envelope waveforms after the sustain portion S have similar shapes. Therefore, the envelope level LEV after the sustain section S
Based on this, the values WNL ′, WOL ′ corresponding to the pronunciation amount can be obtained as follows.

1)新たに押鍵された鍵により発音されるべき音量に相
当する値WNL′ 新押鍵のエンベロープ波形をシミュレートし、新押鍵の
発音開始からそのエンベロープ波形がサステイン部Sに
到達した時間またはその時間から所定時間経過した時間
T3における時点でのエンベロープレベルLEVを求め、こ
のエンベロープレベルLEVを新押鍵の発音量に相当する
値WNL′とする。
1) A value corresponding to the volume that should be sounded by the newly pressed key WNL ′ The time when the envelope waveform of the new key is simulated and the envelope waveform reaches the sustain section S from the start of sounding the new key. Or the time when a predetermined time has passed from that time
The envelope level LEV at the time point of T3 is obtained, and this envelope level LEV is set to the value WNL ′ corresponding to the sound generation amount of the new key depression.

2)旧押鍵により発音されるべき音量に相当する値WO
L′ 旧押鍵のエンベロープ波形をシミュレートし、新押鍵の
エンベロープ波形がサステイン部Sに到達した時間また
はその時間から所定時間経過した旧押鍵の対応する時間
T2+T3における時点でのエンベロープレベルLEVを求
め、このエンベロープレベルLEVを旧押鍵の発音量に相
当する値WOL′とする。
2) Value WO corresponding to the volume that should be produced by pressing the old key
L ′ Simulates the envelope waveform of the old key depression, and the time when the envelope waveform of the new key depression reaches the sustain section S or the corresponding time of the old key depression after a predetermined time has elapsed from that time.
The envelope level LEV at the time point of T2 + T3 is obtained, and this envelope level LEV is set to the value WOL 'corresponding to the pronunciation amount of the old key depression.

−変形例2− 例えば、発音される楽音がピアノ音のように、ハンマー
音と打鍵直後の高周波成分の多い打弦音とより成る初期
部分(アタック部Aおよびディケイ部D)を主として構
成する第1構成音Aと、この初期部分に続く高周波成分
の少ない音色変化の少ない弦音より成る持続部分(サス
テイン部Sおよびリリース部R)を主として構成して音
量感を与える第2構成音Bとよりなる場合についての変
形例を説明する。
-Variation 2-For example, a musical tone to be produced is mainly composed of an initial portion (attack portion A and decay portion D) consisting of a hammer sound and a string-striking sound with a high frequency component immediately after keystroke, such as a piano sound. In the case where it is composed of the constituent sound A and the second constituent sound B which is mainly composed of the continuous portion (the sustain portion S and the release portion R), which is subsequent to the initial portion and is composed of the string sound with less high-frequency component and less timbre change, and which gives a volume feeling. A modified example will be described.

第9図のエンベロープ波形図において、発音される楽音
のエンベロープ波形は、第1構成音Aのエンベロープ波
形と第2構成音Bのエンベロープ波形との合成樹脂形に
なる。これらエンベロープ波形夫々を対数表現で表わし
た第10図から明らかなように、第2構成音Bに関して言
えば、ディケイ部D以降の各エンベロープ波形における
所定時間当りのエンベロープの変形値はほぼ同じとな
り、同一鍵においては第2構成音Bのディケイ部D以降
のエンベロープ波形は相似形状であると見倣される。な
お、第2構成音Bのディケイ部D以降、特にディケイ部
Dにおけるエンベロープレベルは、発音される楽音(合
成音)のエンベロープレベルLEVから変換テーブル等に
よって求めることができる。
In the envelope waveform diagram of FIG. 9, the envelope waveform of the generated musical tone is a synthetic resin shape of the envelope waveform of the first component sound A and the envelope waveform of the second component sound B. As is apparent from FIG. 10 in which each of these envelope waveforms is expressed in a logarithmic expression, regarding the second constituent sound B, the deformation values of the envelope per predetermined time in each envelope waveform after the decay portion D are substantially the same, With the same key, the envelope waveforms of the second component sound B after the decay portion D are regarded as having similar shapes. It should be noted that the envelope level of the second component sound B after the decay portion D, particularly in the decay portion D, can be obtained from the envelope level LEV of the musical tone (synthesized sound) to be produced, by a conversion table or the like.

したがって、変形例1のようにして、前述のように第2
構成音Bのディケイ部D以降のエンベロープレベルによ
り、新旧押鍵夫々の発音量に相当する値WNL′,WOL′を
得る。
Therefore, as in the first modification, as described above, the second
Values WNL 'and WOL' corresponding to the sound generation amounts of the old and new key depressions are obtained from the envelope level of the constituent tone B after the decay portion D.

第2実施例: 発音される楽音が前述されたように第1構成音Aおよび
第2構成音Bより構成されるが、前述の場合とは異なり
第1構成音Aおよび第2構成音B夫々が別個の楽音発生
チャネルによって楽音信号が生成される場合における別
実施例について説明する。なお、特に第1実施例と相異
する部分についてだけ説明して、重複する部分の説明等
は省略する。
Second Example: The tones to be sounded are composed of the first constituent sound A and the second constituent sound B as described above, but unlike the above-mentioned case, the first constituent sound A and the second constituent sound B respectively. Another embodiment in which a tone signal is generated by a different tone generation channel will be described. It should be noted that only the parts that are different from the first embodiment will be described, and the description of the overlapping parts will be omitted.

本実施例においては、楽音発生回路29は第1番目から第
32番目までの32個の楽音発生チャネルから構成され、第
1番目と第2番目、第3番目と第4番目、…、第31番目
と第32番目夫々が所望の楽音を発音する組を形成する。
また、偶数番目の楽音発生チャネルには第1構成音A
が、奇数番目の楽音発生チャネルには第2構成音Bが割
当てられて楽音信号を生成する。こうして、基本的に
は、この第2構成音Bにもとづいて、同一鍵の有効発音
中の楽音発生チャネルを検索することにより連打の検出
を行ない、また消音処理対象の検出および指示を行なっ
て発音量の多い押鍵を優先して発音量の少ない押鍵が割
当てられている楽音発生チャネルを解放する。
In the present embodiment, the tone generating circuit 29 is arranged from the first to
It consists of 32 musical tone generation channels up to the 32nd, and the 1st and 2nd, 3rd and 4th, ..., 31st and 32nd, respectively, form the set which produces the desired musical tone. To do.
Further, the first constituent sound A is assigned to the even-numbered tone generation channels.
However, the second component sound B is assigned to the odd-numbered tone generation channels to generate a tone signal. In this way, basically, based on the second constituent sound B, repeated hits are detected by searching the tone generation channel during the effective sounding of the same key, and detection and instruction of the sound deadening processing target are performed. The tone generation channel to which the key with a small amount of sound generation is assigned is released by giving priority to the key with a large amount of keys.

次に、第1実施例で説明された第3図乃至第5図のフロ
ーチャートにもとづいて、前述された以外の主だった相
違点について説明する。
Next, based on the flowcharts of FIGS. 3 to 5 described in the first embodiment, the main differences other than those described above will be described.

ステップHにおける楽音発生チャネルの割当は組単
位の楽音発生チャネルによって行なわれ、まず組を構成
する各楽音発生チャネルのキー状態フラグKYSおよびエ
ンベロープ終了フラグEV″−END″より解放されている
楽音発生チャネルの組を検出して、新押鍵による割当て
を行なう。また、解放されている楽音発生チャネルの組
が検出されなかった場合には、各第2構成音Bに対応す
るエンベロープレベルおよび各第1構成音A、第2構成
音Bのアタック終了フラグにもとづき発音中でアタック
部Aを終了してそのエンベロープレベルの最も小さい楽
音発生チャネルの組を検出して新押鍵による割当てを行
なう。なお、割当てにより第2構成音Bが割当てられる
楽音発生チャネルの番号をレジスタANCHRに書込む。
The tone generation channels are allocated in step H by tone generation channels in units of groups. First, the tone generation channels released from the key status flag KYS and the envelope end flag EV "-END" of each tone generation channel forming the group. The key combination is detected and the new key is assigned. Further, when the set of released tone generation channels is not detected, based on the envelope level corresponding to each second component sound B and the attack end flag of each first component sound A and second component sound B. The attack portion A is terminated during sound generation, the set of tone generation channels having the smallest envelope level is detected, and new key depression is performed. The number of the tone generation channel to which the second component sound B is assigned by the assignment is written in the register ANCHR.

ステップI−4においては、楽音発生チャネルの2
個が一組に構成されることからループ数nに“2"が加算
されてレジスタnRに書込まれる。また、同様の理由によ
り、ステップI−5においては、楽音発生チャネル数N
から“1"を減算した数、言い換えれば本実施例では32か
ら“1"を減算した数とループ数nとが比較される。
In step I-4, the tone generation channel 2
Since the number is set to one, "2" is added to the loop number n and written in the register nR. Further, for the same reason, in step I-5, the number N of musical sound generation channels is increased.
Is subtracted from "1", in other words, the number obtained by subtracting "1" from 32 is compared with the loop number n in this embodiment.

ステップJ−5においては、新押鍵の第2構成音B
の発音は不要となるために、新押鍵の第2構成音Bを発
音させない。言い換えれば、レジスタANCHRに書込まれ
ている新押鍵のチャネル番号ANCHに対応するレジスタRT
jR,LBPjR,EV−ATR,EV−DKR,EV−ENDの内容を全てクリヤ
する。なお、第1構成音Aについての消音処理は行なわ
なくてもよい。他は旧押鍵の第1構成音Aがその第2構
成音Bとともに消音されるということ等の相違はあるが
ほぼ第1実施例と同様である。
At step J-5, the second key B of the new key press.
Therefore, the second constituent sound B of the new key depression is not sounded. In other words, the register RT corresponding to the channel number ANCH of the new keypress written in the register ANCHR.
j R, LBP j R, EV-ATR, EV-DKR, EV-END contents are all cleared. Note that the muffling process for the first component sound A may not be performed. Others are substantially the same as those in the first embodiment, except that the first constituent sound A of the old key depression is muted together with the second constituent sound B.

前記第1実施例における第7図および第8図に対応する
本実施例による楽音の発音のエンベロープを示す波形図
は、第11図および第12図である。
11 and 12 are waveform charts showing envelopes of musical sound according to the present embodiment corresponding to FIGS. 7 and 8 in the first embodiment.

本実施例においては、楽音発生チャネルを組に形成し
て、この組の楽音発生チャネルに第1構成音Aおよび第
2構成音Bを割当てたが、第1構成音Aが割当てられた
楽音発生チャネルは第10図から明らかなように第2構成
音Bが割当てられた楽音発生チャネルより早く解放され
るために、組を形成せずに個別に割当て処理等を行なえ
ば楽音発生チャネルを有効に利用できる。なお、本実施
例においては、前記第1実施例の第1および第2の変形
例も、説明は省略するが少しの変更により適用できるこ
とは言うまでもない。
In the present embodiment, the tone generation channels are formed into a set, and the first component sound A and the second component sound B are assigned to the tone generation channels of this set. However, the tone generation to which the first component sound A is assigned is generated. As is clear from FIG. 10, the channels are released earlier than the tone generation channels to which the second constituent sound B is assigned. Therefore, if the assignment process is performed individually without forming a set, the tone generation channels will be effective. Available. In the present embodiment, it is needless to say that the first and second modified examples of the first embodiment can be applied with a slight modification, though the description thereof is omitted.

次に、本実施例の変形例を説明する。Next, a modification of this embodiment will be described.

−変形例1− 発音される楽音の持続部分の音色変化をさらに豊かにす
るために、複数の第2構成音Bにより持続部分を構成す
る場合に、例えば第13図に示されているように強打鍵時
の持続部分の高周波成分が多くエンベロープの比較的短
い音の第2構成音B1と、弱打鍵時の持続部分の高周波成
分が少なくエンベロープの比較的長い音の第2構成音B2
とより構成される場合の変形例について説明する。
-Modification 1-In order to further enrich the timbre change of the continuous portion of the musical tone to be sounded, when the continuous portion is composed of a plurality of second constituent sounds B, as shown in FIG. 13, for example. The second constituent sound B1 which has a high frequency high frequency component of the keystroke and has a relatively short envelope, and the second constituent sound B2 which has a low frequency high frequency component of the keystroke and a relatively long envelope.
A modified example in the case of being composed of

本変形例においては、楽音発生回路29は第1番目から第
48番目までの48個の楽音発生チャネルから構成され、第
1番目から第3番目まで、第4番目から第6番目まで、
…、第46番目から第48番目まで夫々が所望の楽音を発音
する組を形成する。また、第1番目、第4番目、…には
第2構成音B1が、第2番目、第5番目、…には第2構成
音B2が、第3番目、第6番目、…には第1構成音Aが割
当てられて楽音信号を生成する。こうして、このエンベ
ロープの比較的長い音の第2構成音B2にもとづいて、同
一鍵の有効発音中の楽音発生チャネルを検索することに
より連打の検出を行ない、また消音処理対象の検出およ
び指示を第2構成音B1および第2構成音B2の発音量の和
にもとづいて行なって、発音量の多い押鍵を優先して発
音量の少ない押鍵の割当てられている楽音発生チャネル
を解放する。他に基本的には前述した本実施例と同様で
ある。本実施例による第1実施例の第7図および第8図
に対応する楽音の発音のエンベロープを示す波形図は第
14図および第15図である。
In the present modification, the tone generation circuit 29 is arranged from the first to
It consists of 48 tone generation channels up to the 48th, from the 1st to the 3rd, from the 4th to the 6th,
.., from the 46th to the 48th, form a set in which the desired musical tones are pronounced. The second component sound B1 is assigned to the first, fourth, ..., The second component sound B2 is assigned to the second, fifth, ..., The second component sound B2 is assigned to the third, sixth ,. One constituent sound A is assigned to generate a musical tone signal. In this way, based on the second constituent sound B2 having a relatively long envelope sound, repeated hits are detected by searching the tone generation channel during the effective sounding of the same key, and the detection and instruction of the mute processing target are performed. This is performed based on the sum of the pronunciation amounts of the two component sounds B1 and B2, and the tone generation channel to which the key with the smaller amount of sound is assigned is released by giving priority to the key with the larger amount of sound. Other than that, it is basically the same as this embodiment described above. The waveform diagram showing the envelope of the pronunciation of the musical sound corresponding to FIGS. 7 and 8 of the first embodiment according to the present embodiment is shown in FIG.
FIG. 14 and FIG. 15.

−変形例2− 持続部分の音色変化が得られるように、また構成音数を
少なくするために、発音される楽音が前述されたような
第1構成音Aおよび第2構成音Bではなくて、初期部分
の音と持続部分の音とを異なる割合で含む変形例につい
て説明する。
-Modification 2- In order to obtain a timbre change in the continuous portion and to reduce the number of constituent tones, the musical tones to be generated are not the first and second constituent tones A and B as described above. A modified example in which the sound of the initial part and the sound of the continuous part are included in different ratios will be described.

第16図に示されているように発音される楽音は、タッチ
の強弱によってあまり音質が変わらなく、高周波成分の
少ない丸い感じの弱い押鍵の初期部分を主として構成す
る第1構成音A′と、強いタッチの時により多く発音さ
れ、ピアノの場合には高周波成分を多く含んだ固い感じ
の強い押鍵の持続部分を主として構成する第2構成音
B′とよりなる。ところで、前述した第6図に相当する
タッチレスポンスデータKTDとアタックレベルLATKとの
関係を示すタッチレスポンスデータKTD−アタックレベ
ルLATK変換テーブルは第17図に示されるようになる。し
たがって、弱押鍵時には第2構成音B′は発音されずに
第1構成音A′に支配されることになる。
The tone sounded as shown in FIG. 16 has the same tone quality as the first component sound A'which mainly constitutes the initial part of the round key-sensitive keystroke with few high-frequency components, whose sound quality does not change much depending on the strength of the touch. , A second constituent sound B'which mainly produces a continuous portion of a hard key depression that is more pronounced when a strong touch is made and, in the case of a piano, contains a large amount of high frequency components. Incidentally, the touch response data KTD-attack level LATK conversion table showing the relationship between the touch response data KTD and the attack level LATK corresponding to FIG. 6 described above is as shown in FIG. Therefore, when the key is depressed, the second constituent sound B'is not sounded and is dominated by the first constituent sound A '.

なお、消音処理対象の検出および指示を第1構成音A′
と第2構成音B′との発音量の和に基づいて第1実施例
と同様な処理を行なうとともに、また、新押鍵の発音量
WNLが旧押鍵の発音量WOLより大でない場合には第1構成
音A′と第2構成音B′とはともに消音処理を行なうよ
うになる。
It should be noted that the first constituent sound A ′ is used for the detection and instruction of the sound deadening target.
And the second constituent sound B ', the same processing as in the first embodiment is performed on the basis of the sum of the sound generation quantities, and the sound generation quantity of the new key depression is performed.
When WNL is not larger than the sound generation amount WOL of the old key depression, both the first constituent sound A ′ and the second constituent sound B ′ are subjected to the muffling process.

第3実施例: 次に、楽音発生チャネルを有効に利用するために、新押
鍵の発音量WNLが旧押鍵の発音量WOLより大なる場合には
旧押鍵に替えて新押鍵にもとづいて楽音を発音させる実
施例を第18図乃至第20図にもとづいて説明する。なお、
前記第1実施例と同一符号は同一内容を示すとともに、
特にその第1実施例と相異する部分についてのみ説明し
て、重複する部分等の説明等は省略する。
Third Embodiment: Next, in order to effectively use the tone generation channel, when the pronunciation amount WNL of the new key depression is larger than the pronunciation amount WOL of the old key depression, the old key depression is replaced with the new key depression. An embodiment for producing a musical sound will be described based on FIGS. 18 to 20. In addition,
The same reference numerals as those in the first embodiment indicate the same contents,
In particular, only the parts different from the first embodiment will be described, and the description of the overlapping parts will be omitted.

本実施例における第18図に示されている基本ブログラム
のフローチャートは、前記第1実施例の第3図に示され
ている基本プログラムのフローチャートと較べて、ステ
ップA乃至ステップGおよびステップKの各ステップは
第1実施例の各ステップA〜G、Kに対応して同一であ
り、ステップH′、ステップH″、ステップI′、ステ
ップLおよびステップJ′は次の通りである。
The flow chart of the basic program shown in FIG. 18 in this embodiment is different from the flow chart of the basic program shown in FIG. 3 of the first embodiment in steps A to G and step K. The steps are the same corresponding to the steps A to G and K of the first embodiment, and the steps H ′, H ″, step I ′, step L and step J ′ are as follows.

H′ステップGの判断においてキー状態フラグBKYSが
“1"を示して押鍵状態にある場合には、レジスタBKENR
に書込まれている処理待ちキーの数BKENから“1"を減算
して、この減算後の数を新たな処理待ちキーの数BKENと
してレジスタBKENRに書込む。
If the key state flag BKYS indicates "1" in the key depression state in the judgment of H'step G, the register BKENR
"1" is subtracted from the number of pending keys BKEN written in the register BKENR and the number after the subtraction is written in the register BKENR as the number of new pending keys BKEN.

I′ 連打の検出ルーチン。詳細は第19図に示されてい
るフローチャートにより後述する。
I'Continuous hit detection routine. Details will be described later with reference to the flowchart shown in FIG.

L レジスタDMPFRに書込まれている消音処理開始フ
ラグDMPFが消音処理開始を示す“1"であるか否かを判断
して連打を判断する。消音処理開始フラグDMPFが“0"で
消音処理開始が示されておらず連打でない場合にはステ
ップH″に行く。
It is judged whether the mute processing start flag DMPF written in the L register DMPFR is "1" indicating the start of the mute processing or not, and continuous hits are judged. If the muffling process start flag DMPF is "0" and the muffling process start is not indicated, and if the consecutive hits are not made, the process proceeds to step H ".

J′ ステップLにおける判断において消音処理開始フ
ラグDMPFが“1"で消音処理開始が示されて連打である場
合には、消音処理対象の検出および指示ルーチンに入
る。この消音処理対象の検出および指示ルーチンの詳細
は、第20図に示されているフローチャートにより後述す
る。なお、消音処理対象の検出および指示ルーチンが終
了すればステップEに戻る。
J'When the mute processing start flag DMPF is "1" in the judgment in step L and the sound mute processing start is indicated and there is continuous hitting, the mute processing target detection and instruction routine is entered. Details of this mute processing target detection and instruction routine will be described later with reference to the flowchart shown in FIG. When the mute processing target detection and instruction routine ends, the process returns to step E.

H″ ステップLにおける判断において消音処理開始フ
ラグDMPFが“0"で消音処理開始が示されておらず連打で
ない場合は、前記第1実施例のステップHにおいて行な
う楽音発生チャネルへの割当て等を行なって(ステップ
Hにおける括弧書きを含むその括弧書き以下の説明)、
ステップEに戻る。
H ″ If the mute processing start flag DMPF is “0” and the mute processing start is not indicated in the judgment at the step L, and continuous hitting is not performed, allocation to the tone generation channel is performed at the step H of the first embodiment. (The following description including parentheses in Step H),
Return to step E.

次に、連打の検出ルーチン(ステップI′)について、
第19図を参照しつつ説明する。
Next, regarding the continuous hit detection routine (step I ′),
This will be described with reference to FIG.

本実施例における連打の検出ルーチンは、前記第1実施
例の第4図に示されている連打の検出ルーチンと較べ
て、ステップI′−1,ステップI′−2,ステップI′−
4,ステップI′−5,ステップI′−7およびステップ
I′−8は第1実施例の各ステップI−1,I−2,I−4,I
−5,I−7およびI−8に対応して同一であり、またス
テップI−6は削除されてステップI′−9は次の通り
である。
The continuous hit detection routine in this embodiment is different from the continuous hit detection routine shown in FIG. 4 of the first embodiment in steps I'-1, I'-2 and I'-.
4, step I'-5, step I'-7 and step I'-8 are steps I-1, I-2, I-4, I of the first embodiment.
-5, I-7 and I-8 are the same, step I-6 is deleted and step I'-9 is as follows.

I′−9 ステップI′−2における判断においてダン
パー状態フラグFCDSが“1"を示してダンプ処理が禁止さ
れている場合には、レジスタBKYCRに書込まれている新
押鍵のキーコードBKYCと、レジスタnRに書込まれている
ループ数nに対応するチャネル番号の発音発生チャネル
のレジスタKYCRに書込まれているキーコドKYCと同一で
あるか否かを判断する。新押鍵のキーコードBKYCにもと
づいて判断するのは、第1実施例におけるステップI−
6とは異なりまだ新押鍵のチャネル番号が定まっていな
いためである。他は、第1実施例の連打の検出ルーチン
と同様である。
I'-9 If the damper state flag FCDS indicates "1" and the dump processing is prohibited in the judgment in step I'-2, the key code BKYC of the new key pressed written in the register BKYCR is detected. , It is determined whether or not it is the same as the key code KYC written in the register KYCR of the sound generation channel of the channel number corresponding to the loop number n written in the register nR. The judgment based on the key code BKYC of the new key depression is made in step I- in the first embodiment.
This is because unlike 6 the channel number of the new key press has not been determined yet. Others are the same as the continuous hit detection routine of the first embodiment.

次に、消音処理対象の検出および指示ルーチン(ステッ
プJ′)について、第20図を参照しつつ説明する。
Next, the mute processing target detection and instruction routine (step J ') will be described with reference to FIG.

本実施例における消音処理対象の検出および指示ルーチ
ンは、前記第1実施例の第5図に示されている消音処理
対象の検出および指示ルーチンと較べて、ステップJ′
−1乃至ステップJ′−3は第1実施例の各ステップJ
−1〜J−3に対応して同一であり、またステップJ−
6は削除されてステップJ′−4およびステップJ′−
5は次の通りである。
The noise reduction processing target detection and instruction routine in this embodiment is different from the noise reduction processing target detection and instruction routine shown in FIG. 5 of the first embodiment in step J ′.
-1 to step J'-3 are the steps J of the first embodiment.
-1 to J-3 are the same, and step J-
6 is deleted and steps J'-4 and J'-
5 is as follows.

J′−4 ステップJ′−3(J−3)における判断に
おいて新押鍵の発音量WNLは大である場合には、ステッ
プHにおいて行なう楽音発生チャネルへの割当て等を新
押鍵に対して行なう。この際に旧押鍵が割当てられてい
る楽音発生チャネルに優先的に割当てるようにする。解
放されている楽音発生チャネルがない場合にだけ旧押鍵
の楽音発生チャネルに優先的に割当てるようにするもよ
く、また音のつながりを優先して別の楽音発生楽音発生
チャネルに割当てるのもよい。なお、別の楽音発生チャ
ネルに割当てる場合には、レジスタAOCHRに書込まれて
いる旧押鍵のチャネル番号AOCHを消音処理対象チャネル
番号WDCHとしてレジスタWDCHRに書込む。そして、レジ
スタWDCHRに書込まれている消音処理対象チャネル番号W
DCHに対応するエンベロープ波形生成チャネルの消音処
理要求フラグDMPQおよび消音処理中フラグRDMPを消音処
理要求または消音処理中を示す“1"に設定する。
J'-4 When the tone generation amount WNL of the new key depression is large in the judgment in step J'-3 (J-3), the allocation to the tone generation channel performed in step H is performed for the new key depression. To do. At this time, the tone generation channel to which the old key depression is assigned is preferentially assigned. The tone generation channel of the old key depression may be preferentially assigned only when there is no tone generation channel released, or the tone connection may be preferentially assigned to another tone generation tone generation channel. . When assigning to another tone generation channel, the channel number AOCH of the old key depression written in the register AOCHR is written in the register WDCHR as the mute processing target channel number WDCH. Then, the mute processing target channel number W written in the register WDCHR
The mute processing request flag DMPQ and the mute processing flag RDMP of the envelope waveform generation channel corresponding to the DCH are set to “1” indicating the mute processing request or the mute processing.

J′−5 ステップJ′−3(J−3)における判断に
おいて新押鍵の発音量WNLが大でない場合には、旧押鍵
が割当てられている楽音発生チャネルに割当てられない
ようにしてステップHにおいて行なう楽音発生チャネル
への割当て等を行なう。したがって、解放されている楽
音発生チャネルが検出されなかった場合に旧押鍵の楽音
発生チャネルが選択されたならば、次の順位の楽音発生
チャネルに割当てるようにする。新押鍵の消音指示につ
いては、割当ての際に消音処理要求フラグDMPQおよび消
音処理中フラグRDMPを“0"とせず“1"に設定する。他
は、第1実施例の消音処理対象の検出および指示ルーチ
ンと同様である。
J'-5 If the tone generation amount WNL of the new key depression is not large in the judgment in the step J'-3 (J-3), the old key depression is prevented from being assigned to the assigned tone generation channel. The assignment to the musical tone generation channel at H is performed. Therefore, if the released tone generation channel is not detected and the tone generation channel of the old key depression is selected, it is assigned to the tone generation channel of the next rank. Regarding the mute instruction for a new key depression, the mute processing request flag DMPQ and the mute processing flag RDMP are set to "1" instead of "0" at the time of allocation. Others are the same as the detection and instruction routine of the sound deadening process target of the first embodiment.

本実施例においても、第1実施例の各変形例を適用でき
ることは言うまでもなく、また第2実施例の場合におい
ても適宜変更することにより本実施例の特徴を損なうこ
となく採用することができる。
It is needless to say that each modification of the first embodiment can be applied to the present embodiment as well, and in the case of the second embodiment, the features of the present embodiment can be adopted without deteriorating by appropriately modifying.

次に、前記第2実施例の変形例2に適用して、さらに楽
音発生チャネルを有効に利用する場合について説明す
る。
Next, a case where the tone generation channel is further effectively used by applying it to the second modification of the second embodiment will be described.

新押鍵の発音量WNLが旧押鍵の発音量WOLより大でない場
合には、第2構成音B′の割当てをせず、第1構成音
A′を旧押鍵の第1構成音A′が割当てられている楽音
発生チャネルに割当てる。なお、第1構成音A′と第2
構成音B′とは組を形成せずに個別に割当て処理を行な
うとよい。
When the pronunciation amount WNL of the new key depression is not larger than the pronunciation amount WOL of the old key depression, the second component sound B'is not assigned and the first component sound A'is changed to the first component sound A of the old key depression. 'Is assigned to the tone generation channel to which it is assigned. The first constituent sound A'and the second
It is advisable to perform assignment processing individually without forming a set with the constituent sound B '.

なお、新押鍵のタッチが弱ければ第21図に示されるよう
に第2構成音B′は置き換わらず、一方第1構成音A′
は置き換わってアタック感は得られるもののエンベロー
プ波形が点線Xで示されるようになり、階段状になる。
これを解消するには、第1構成音A′の割当てに際し
て、連打時に新押鍵のアタックレベルLATKが新押鍵の押
鍵時の旧押鍵のエンベロープレベルより小さい場合に
は、新押鍵のアタックレベルLATKを実線Yで示されるよ
うに旧押鍵のエンベロープレベルに変更すればよい。
If the touch of the new key is weak, the second component sound B'is not replaced as shown in FIG. 21, while the first component sound A'is not replaced.
Are replaced with each other and an attack feeling is obtained, but the envelope waveform becomes as shown by the dotted line X, and becomes stepwise.
In order to solve this, when assigning the first constituent sound A ′, if the attack level LATK of a new key depression is smaller than the envelope level of the old key depression at the time of a new key depression at the time of continuous tapping, a new key depression is performed. The attack level LATK may be changed to the envelope level of the old key depression as shown by the solid line Y.

なお、各実施例等中に用いられている全てのレジスタは
前述されたようにマイコン21のRAM21Cに仮想的に割当て
られた領域によって設けられている。
Note that all the registers used in each of the embodiments and the like are provided by an area virtually assigned to the RAM 21C of the microcomputer 21 as described above.

また、各実施例においては、電子鍵盤楽器を取り上げて
説明したが、この電子鍵盤楽器以外の減衰音系の他の電
子楽器、例えば同一発音体(膜、打面等)を連打する電
子ドラム等においても本発明を適用できることは言うま
でもない。この場合には、各実施例中の同一鍵(同一
弦)を同一発音体と読み換えて他の電子楽器の固有処理
については対応するように変更すればよい。
Further, in each of the embodiments, the electronic keyboard musical instrument has been described, but other electronic musical instruments of attenuating sound system other than the electronic keyboard musical instrument, for example, an electronic drum that continuously strikes the same sounding body (film, striking surface, etc.) Needless to say, the present invention can also be applied to. In this case, the same key (same string) in each embodiment may be read as the same sounding body, and the unique processing of other electronic musical instruments may be changed accordingly.

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

第1図は特許請求の範囲に記載した本発明の構成に対応
するブロック図であるとともに、 第2図乃至第10図は本発明による電子楽器の第1実施例
を説明するための図面であって、 第2図は概略図、 第3図乃至第5図夫々はマイコンで実行されるプログラ
ムの基本プログラム、連打の検出ルーチンおよび消音処
理対象の検出および指示ルーチンのフローチャート図、 第6図は本実施例に関するタッチレスポンスデーターア
タックレベル変換グラフ図、 第7図および第8図夫々は第3図乃至第5図のフローチ
ャートにもとづいて処理された楽音の発音のエンベロー
プを示す波形図、 第9図および第10図夫々は本実施例の変形例2に関する
エンベロープ波形図、 第11図乃至第17図は本実施例による電子楽器の第2実施
例を説明する図面であって、 第11図および第12図夫々は第1実施例の第7図および第
8図に対応する楽音の発音のエンベロープを示す波形
図、 第13図は本実施例の変形例1に関する第1構成音A、第
2構成音B1および第2構成音B2のエンベロープ波形図、 第14図および第15図夫々は本実施例の変形例1に関する
第1実施例の第7図および第8図に対応する楽音の発音
のエンベロープを示す波形図、 第16図および第17図夫々は本実施例の変形例3における
第1構成音A′および第2構成音B′のエンベロープ波
形、第1実施例の第6図に対応するタッチレスポンスデ
ーターアタックレベル変換グラフ図、 第18図乃至第21図は本発明による電子楽器の第3実施例
を説明するための図面であって第1実施例の第3図乃至
第5図夫々に対応するフローチャート図、および本実施
例を第2実施例の変形例2に適用した場合の第1実施例
の第8図に対応する楽音の発音のエンベロープを示す波
形図である。 20…鍵盤、21…マイコン 21A…中央処理装置 21B…読出し専用メモリー 21C…書込み可能メモリー 21D…タイマー回路、22…鍵操作検出回路 23…バス 24…タッチレスポンス検出回路 25…操作子群、26…操作子検出回路 27…ぺダル群、28…ペダル検出回路 29…楽音発生回路、30…増巾器 31…スピーカ
FIG. 1 is a block diagram corresponding to the configuration of the present invention described in the claims, and FIGS. 2 to 10 are drawings for explaining a first embodiment of an electronic musical instrument according to the present invention. FIG. 2 is a schematic diagram, FIGS. 3 to 5 are flowcharts of a basic program of a program executed by a microcomputer, a repeated hit detection routine, and a mute processing target detection and instruction routine, and FIG. Touch response data attack level conversion graph for the embodiment, FIG. 7 and FIG. 8 are waveform charts showing the envelope of the pronunciation of the musical sound processed according to the flowcharts of FIG. 3 to FIG. 5, FIG. FIG. 10 is an envelope waveform diagram relating to the second modification of the present embodiment, and FIGS. 11 to 17 are drawings for explaining the second embodiment of the electronic musical instrument according to the present embodiment. FIG. 11 and FIG. 12 are waveform diagrams showing envelopes of the pronunciation of musical tones corresponding to FIGS. 7 and 8 of the first embodiment, respectively, and FIG. 13 is a first constituent sound according to the modified example 1 of the present embodiment. A, envelope waveform diagrams of the second component sound B1 and the second component sound B2, FIG. 14 and FIG. 15 respectively correspond to FIG. 7 and FIG. 8 of the first embodiment relating to the modified example 1 of the present embodiment. FIG. 16 is a waveform diagram showing the envelope of a musical sound, and FIG. 16 and FIG. 17 are envelope waveforms of the first constituent sound A ′ and the second constituent sound B ′ in the modification 3 of the present embodiment, respectively. Touch response data / attack level conversion graphs corresponding to FIG. 6, FIGS. 18 to 21 are drawings for explaining a third embodiment of the electronic musical instrument according to the present invention, and FIGS. FIG. 5 is a flow chart corresponding to each of them, and the present embodiment Is a waveform diagram showing the envelope of the sound of a musical tone corresponding to Figure 8 of the first embodiment when applied to a second modification of the embodiment. 20 ... keyboard, 21 ... microcomputer 21A ... central processing unit 21B ... read-only memory 21C ... writable memory 21D ... timer circuit, 22 ... key operation detection circuit 23 ... bus 24 ... touch response detection circuit 25 ... operator group, 26 ... Operator detection circuit 27 ... Pedal group, 28 ... Pedal detection circuit 29 ... Musical sound generation circuit, 30 ... Magnifier 31 ... Speaker

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】一旦離鍵された鍵の押鍵に対応する発音に
その発音が重なるように再度同一鍵が押鍵されるような
同一鍵の連打を処理する電子楽器において、 (a)新たに押鍵された鍵と同一鍵の楽音が既に楽音発
生チャネルに割当てられているか否かを検出する連打検
出手段、 (b)前記新たな押鍵によって発音されるべき楽音の第
1の発音量またはその発音量に相当する値と、既に前記
楽音発生チャネルに割当てられた同一鍵による前記新た
な押鍵により発音されるべき時点に対応する楽音の第2
の発音量またはその発音量に相当する値とを検知する検
知手段および (c)これら第1および第2の発音量またはそれら発音
量に相当する値を比較して、前記連打検出手段により連
打が検出される場合に大なる発音量またはその発音量に
相当する値を有する側を選択して優先させて発音させる
比較選択手段 を具えることを特徴とする電子楽器。
1. An electronic musical instrument which processes repeated hits of the same key such that the same key is pressed again so that the sound corresponding to the sound of a key released once is overlapped. A continuous hit detecting means for detecting whether or not a musical tone having the same key as the depressed key has already been assigned to the musical tone generating channel, (b) a first sound generation amount of the musical tone to be generated by the new key depression. Alternatively, the second value of the tone corresponding to the value corresponding to the sound amount and the time point to be sounded by the new key depression by the same key already assigned to the tone generation channel.
And (c) the first and second sounding amounts or the values corresponding to these sounding amounts are compared with each other, and consecutive hitting is performed by the consecutive hitting detecting means. An electronic musical instrument characterized by comprising a comparison / selection means for selecting a side having a large amount of sound emission or a value corresponding to the amount of sound generation and giving priority to sound when detected.
JP62303204A 1987-10-05 1987-12-02 Electronic musical instrument Expired - Lifetime JPH07109558B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62303204A JPH07109558B2 (en) 1987-10-05 1987-12-02 Electronic musical instrument

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP24998287 1987-10-05
JP62-249982 1987-10-05
JP62303204A JPH07109558B2 (en) 1987-10-05 1987-12-02 Electronic musical instrument

Publications (2)

Publication Number Publication Date
JPH01198798A JPH01198798A (en) 1989-08-10
JPH07109558B2 true JPH07109558B2 (en) 1995-11-22

Family

ID=26539583

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62303204A Expired - Lifetime JPH07109558B2 (en) 1987-10-05 1987-12-02 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JPH07109558B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4525201B2 (en) * 2004-06-22 2010-08-18 ブラザー工業株式会社 SINGING SOUND SYNTHESIS DEVICE AND SINGING SOUND SYNTHESIS METHOD

Also Published As

Publication number Publication date
JPH01198798A (en) 1989-08-10

Similar Documents

Publication Publication Date Title
JP2714954B2 (en) Sound control device
JP2525853B2 (en) Continuous hit processing device for electronic musical instruments
JP2500489B2 (en) Electronic musical instrument
JPH07109558B2 (en) Electronic musical instrument
JP3235160B2 (en) Music control device
JPH0572596B2 (en)
JP3419563B2 (en) Tone signal level control device
JP2698942B2 (en) Tone generator
JPH04131899A (en) musical tone generator
JP3530600B2 (en) Frequency characteristic control apparatus and frequency characteristic control method for musical tone signal
JPH06138876A (en) Electronic musical instrument
JP2640267B2 (en) Electronic musical instrument
JPH07210157A (en) Electronic musical instrument
JPH01169497A (en) Electronic musical instrument
JP3067145B2 (en) Envelope generation control device, sound emission form control device, envelope generation control method, and sound emission form control method
JP2985427B2 (en) Electronic percussion instrument
JPH01169496A (en) Electronic musical instrument
JP3706371B2 (en) Musical signal frequency characteristic control device and frequency characteristic control method
JP3673388B2 (en) Musical sound channel assignment apparatus and musical sound channel assignment method
JP3646611B2 (en) Music generator
JP3673384B2 (en) Musical sound channel assignment apparatus and musical sound channel assignment method
JP2002366147A (en) Electronic musical instrument
JP3673387B2 (en) Musical sound channel assignment apparatus and musical sound channel assignment method
JPH0635465A (en) Musical sound generating device
JP2739244B2 (en) Electronic musical instrument