JPS648356B2 - - Google Patents

Info

Publication number
JPS648356B2
JPS648356B2 JP58000771A JP77183A JPS648356B2 JP S648356 B2 JPS648356 B2 JP S648356B2 JP 58000771 A JP58000771 A JP 58000771A JP 77183 A JP77183 A JP 77183A JP S648356 B2 JPS648356 B2 JP S648356B2
Authority
JP
Japan
Prior art keywords
key
channel
circuit
musical tone
assignment
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
Application number
JP58000771A
Other languages
Japanese (ja)
Other versions
JPS59126596A (en
Inventor
Masanobu Chibana
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 JP58000771A priority Critical patent/JPS59126596A/en
Publication of JPS59126596A publication Critical patent/JPS59126596A/en
Publication of JPS648356B2 publication Critical patent/JPS648356B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 この発明はタツチレスポンス機能付きの電子楽
器に関し、特に、限られた数の楽音発生チヤンネ
ルに対して押圧鍵を割当てる発音割当て機能を有
する電子楽器において、異なる鍵押圧深さに対応
する2つのキースイツチ接点間の作動時間差を測
定することにより鍵タツチ情報を得る方式を適用
する場合の改良に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application This invention relates to an electronic musical instrument with a touch response function, and particularly to an electronic musical instrument having a sound generation assignment function of assigning pressed keys to a limited number of musical sound generation channels. The present invention relates to improvements in applying a method for obtaining key touch information by measuring the difference in actuation time between two key switch contacts corresponding to different key depression depths.

従来技術 各鍵毎に異なる鍵押圧深さに対応する2つのキ
ースイツチ接点を夫々具備し、各鍵毎に独立にそ
れらの2接点間の作動時間差を測定することによ
り、各鍵毎に独立に鍵タツチ(イニシヤルタツ
チ)を検出する技術は既によく知られている。他
方、複音電子楽器では、鍵の総数よりも十分に少
ない限られた数の楽音発生チヤンネルを具備し、
押圧された鍵をキーアサイナ(発音割当て回路)
によつていずれかのチヤンネルに適宜割当て、こ
の割当てに対応して各チヤンネルで楽音信号を発
生するようにすることが、現在では一般的となつ
ている。各鍵毎の上記接点作動時間差を測定する
ために、複音電子楽器では、上記キーアサイナに
よる割当て動作に対応して限られた構成の(すな
わち全鍵にではなく各チヤンネルにのみ対応する
構成の)時間カウント回路を利用するようにする
のが有利である。そのようにした電子楽器が特公
昭52−46088号に示されており、そこにおけるタ
ツチカウント関係の考え方を簡略化して示すと第
1図のようになる。
Prior Art Each key is equipped with two key switch contacts corresponding to different key depression depths, and by measuring the operating time difference between those two contacts independently for each key, each key is independently keyed. Techniques for detecting touches (initial touches) are already well known. On the other hand, polyphonic electronic musical instruments are equipped with a limited number of musical tone generation channels, which are sufficiently smaller than the total number of keys.
Key assigner (pronunciation assignment circuit) for the pressed key
It is now common practice to allocate appropriate signals to one of the channels according to the allocation, and to generate musical tone signals in each channel in accordance with this allocation. In order to measure the difference in the contact activation time for each key, in multitone electronic musical instruments, a limited configuration (i.e., a configuration corresponding only to each channel, not to all keys) corresponding to the assignment operation by the key assigner is used. It is advantageous to make use of a counting circuit. Such an electronic musical instrument is disclosed in Japanese Patent Publication No. 52-46088, and the concept of the touch count relationship therein is shown in a simplified manner as shown in FIG.

第1図において、鍵盤回路10は、ブレーク接
点K1とメーク接点K2を含むキースイツチKS
を各鍵毎に配列して成るものである。ブレー接点
K1は常時オンしており、鍵が所定の比較的浅い
深さより下に押し下げられたときオフする。メー
ク接点K2は常時オフしており、上記ブレーク接
点K1の作動深さよりも深い所定の深さより下に
鍵が押し下げられたときオフする。鍵走査カウン
タ11によつて回路10の各キースイツチが順次
繰返し走査され、この走査出力に応答して押鍵検
出回路12は時分割多重化された各鍵のキーデー
タKD1,KD2をブレーク接点K1及びメーク
接点K2に対応して夫々出力する。例えば、ブレ
ーク接点に対応する第1のキーデータKD1は、
ブレーク接点K1がオンしている鍵の走査タイム
スロツトで“0”、オフしている鍵の走査タイム
スロツトで“1”、である。また、メーク接点に
対応する第2のキーデータKD2は、メーク接点
K2がオフしている鍵の走査タイムスロツトで
“0”、オンしている鍵の走査タイムスロツトで
“1”、である。
In FIG. 1, the keyboard circuit 10 includes a key switch KS including a break contact K1 and a make contact K2.
are arranged for each key. Brake contact K1 is always on and turns off when the key is depressed below a predetermined relatively shallow depth. The make contact K2 is always off, and is turned off when the key is depressed below a predetermined depth that is deeper than the operating depth of the break contact K1. Each key switch of the circuit 10 is sequentially and repeatedly scanned by the key scanning counter 11, and in response to this scanning output, the key press detection circuit 12 transfers the time-division multiplexed key data KD1, KD2 of each key to the break contact K1 and The respective outputs correspond to the make contact K2. For example, the first key data KD1 corresponding to the break contact is
The break contact K1 is "0" in the scan time slot of the key that is on, and is "1" in the scan time slot of the key that is off. Further, the second key data KD2 corresponding to the make contact is "0" in the scan time slot of the key where the make contact K2 is off, and is "1" in the scan time slot of the key where the make contact K2 is on.

発音割当て回路13は、楽音信号発生回路14
における複数(N)の楽音発生チヤンネルのいず
れかに押圧鍵を割当てるための処理を、キーデー
タKD1,KD2及び鍵走査カウンタ11の出力
にもとづき行なう。各チヤンネルに対する割当て
内容を記憶するために各種のメモリKAM,
BUM,KOM,KFMが設けられており、これら
は例えばチヤンネル数Nに対応するステージ数を
持つシフトレジスタから成る。制御回路13aは
割当動作に従つて各メモリKAM〜KFMの書込
みまたはクリアを制御するものである。キーアド
レスメモリKAMは各チヤンネルに割当てられた
鍵を示す複数ビツトのキーコードを記憶するもの
であり、ビジイメモリBUMの書込み及びクリア
に対応して書込み及びクリアがなされる。ビジイ
メモリBUMは各チヤンネルに鍵が割当てられて
いるか否かを記憶するものである。発音割当て回
路13では、第1のキーデータKD1が“1”に
立上つたときつまりブレーク接点K1がオフした
とき、それに対応する鍵の割当て処理を行ない、
割当てるべきことが決定したチヤンネルに対応し
てビジイメモリBUMに“1”をセツトする。鍵
が割当てられていないチヤンネル(空白チヤンネ
ル)ではビジイメモリBUMの内容は“0”にリ
セツトされており、例えば、BUMの内容が
“0”のチヤンネル(空白チヤンネル)に対して
KD1が“1”に立上つた新たな押圧鍵を割当て
るように決定され、この決定にもとづきBUMの
当該チヤンネルに“1”がセツトされると共に
KAMの当該チヤンネルに該新たな押圧鍵を示す
キーコードが記憶される。キーオンメモリKOM
は、第2のキーデータKD2を記憶するものであ
り、メーク接点K2がオンしたときそれに対応す
る鍵が割当てられているチヤンネルに対応して
“1”を記憶する。キーオフメモリKFMは鍵が離
されたときから減衰発音(デイケイ)終了までの
間“1”を記憶するものであり、例えば、第1の
キーデータKD1が“1”から“0”に切換わつ
たときつまりブレーク接点K1がオフからオンに
切換わつたときそれに対応する鍵が割当てられて
いるチヤンネルに対応して“1”を記憶する。
尚、特に説明しないが、周知のトランケート制御
その他必要な機能を行なうための回路及びメモリ
が割当て回路13内に更に設けられている。
The sound generation assignment circuit 13 is connected to the musical tone signal generation circuit 14.
Processing for assigning a pressed key to one of a plurality (N) of musical tone generation channels is performed based on the key data KD1, KD2 and the output of the key scanning counter 11. Various types of memory KAM,
BUM, KOM, and KFM are provided, which consist of shift registers having a number of stages corresponding to the number of channels N, for example. The control circuit 13a controls writing or clearing of each memory KAM to KFM according to the allocation operation. The key address memory KAM stores a multi-bit key code indicating the key assigned to each channel, and is written and cleared in response to writing and clearing of the busy memory BUM. The busy memory BUM stores whether or not a key is assigned to each channel. In the sound generation assignment circuit 13, when the first key data KD1 rises to "1", that is, when the break contact K1 turns off, the corresponding key assignment process is performed,
The busy memory BUM is set to "1" corresponding to the channel that has been determined to be allocated. For channels to which no keys are assigned (blank channels), the contents of the busy memory BUM are reset to “0”. For example, for channels whose BUM contents are “0” (blank channels),
It is decided to allocate a new pressed key for which KD1 has risen to "1", and based on this decision, "1" is set to the corresponding channel of BUM, and
A key code indicating the newly pressed key is stored in the corresponding channel of KAM. Key-on memory KOM
is for storing second key data KD2, and when the make contact K2 is turned on, "1" is stored corresponding to the channel to which the corresponding key is assigned. The key-off memory KFM stores "1" from the time the key is released until the end of the decay sound. For example, when the first key data KD1 switches from "1" to "0". In other words, when the break contact K1 is switched from OFF to ON, "1" is stored corresponding to the channel to which the corresponding key is assigned.
Although not specifically described, the allocation circuit 13 is further provided with circuits and memories for performing well-known truncate control and other necessary functions.

楽音信号発生回路14の各チヤンネルで発生さ
れていた楽音の減衰発音が終了すると、そのチヤ
ンネルに対応してデイケイ終了信号DFが発音割
当て回路13に与えられる。このデイケイ終了信
号DFによつて、減衰発音が終了したチヤンネル
に対応するキーオフメモリKFM、ビジイメモリ
BUM、キーアドレスメモリKAMの内容が夫々
リセツト(クリア)される。キーオンメモリ
KOMの記憶内容は、第2のキーデータKD2が
“0”に立下つたときつまりメーク接点K2がオ
ンからオフに切換わつたときそれに対応する鍵が
割当てられているチヤンネルに関してリセツトさ
れる。
When the attenuation sound generation of the musical tone generated in each channel of the musical tone signal generation circuit 14 is completed, a decay end signal DF is applied to the sound generation allocation circuit 13 corresponding to that channel. This decay end signal DF causes the key-off memory KFM and busy memory corresponding to the channel in which the attenuation sound has ended.
The contents of BUM and key address memory KAM are reset (cleared). key on memory
The stored contents of KOM are reset with respect to the channel to which the corresponding key is assigned when the second key data KD2 falls to "0", that is, when the make contact K2 is switched from on to off.

各メモリKAM〜KFMの記憶内容は、各チヤ
ンネルの時分割タイムスロツトに同期して時分割
的に出力される。楽音信号発生回路14は、各メ
モリKAM〜KFMから時分割的に送出された各
チヤンネルの割当て鍵に関する情報を受入れ、こ
れにもとづき各楽音発生チヤンネルで夫々楽音信
号を発生する。つまり、個々のチヤンネルでは、
キーアドレスメモリKAMからのキーコードKC
にもとづき、このKCの値に従つて定まる音名及
びオクターブをもつ楽音信号を発生し、キーオン
メモリKOMからのキーオン信号KONとキーオ
フメモリKFMからのキーオフ信号KOFに従つて
エンベロープ信号を形成し、このエンベロープ信
号によつて前記楽音信号に振幅エンベロープを付
与する。
The stored contents of each memory KAM to KFM are output in a time-division manner in synchronization with the time-division time slots of each channel. The musical tone signal generation circuit 14 receives information regarding the assigned keys of each channel sent out in a time-divisional manner from each of the memories KAM to KFM, and generates a musical tone signal in each musical tone generation channel based on this information. In other words, for each channel,
Key code KC from key address memory KAM
Based on this, a musical tone signal with a note name and octave determined according to the value of KC is generated, an envelope signal is formed according to the key-on signal KON from the key-on memory KOM and the key-off signal KOF from the key-off memory KFM, and this An amplitude envelope is given to the musical tone signal by an envelope signal.

ブレーク接点K1とメーク接点K2の作動時間
差は、ビジイメモリBUMからのビジイ信号BUS
とキーオンメモリKOMからのキーオン信号
KONとを利用して測定される。キーオン信号
KONをインバータ16で反転した信号とビジイ
信号BUSとがアンド回路15に入力され、上記
2接点間の作動時間差をパルス幅によつて示す信
号TRSが各チヤンネル毎に時分割でアンド回路
15から出力される。前述の通り、ビジイメモリ
BUMの内容つまりビジイ信号BUSはブレーク接
点K1の作動(オフへの切換わり)によつて
“1”に立上り、キーオンメモリKOMの内容つ
まりキーオン信号KONはメーク接点K2の作動
(オンへの切換わり)によつて“1”に立上る。
従つて、ブレーク接点K1がオフに成つたときか
らメーク接点K2がオンするまでの間、つまり押
下げられた鍵が所定の第1の(浅い)深さからそ
れより深い第2の深さまで移動する間、アンド回
路15の出力信号TRSはその鍵が割当てられた
チヤンネルのタイムスロツトに対応して持続的に
“1”となる。
The difference in operating time between break contact K1 and make contact K2 is determined by the busy signal BUS from busy memory BUM.
and key-on signal from key-on memory KOM
Measured using KON. key on signal
A signal obtained by inverting KON by the inverter 16 and the busy signal BUS are input to the AND circuit 15, and a signal TRS indicating the operating time difference between the two contacts by pulse width is output from the AND circuit 15 in a time-division manner for each channel. be done. As mentioned above, busy memory
The contents of BUM, that is, the busy signal BUS, rises to "1" when the break contact K1 is activated (switched to OFF), and the contents of the key-on memory KOM, that is, the key-on signal KON, rises to "1" when the make contact K2 is activated (switched to ON). ) rises to “1”.
Therefore, during the period from when the break contact K1 is turned off until the make contact K2 is turned on, that is, the pressed key moves from a predetermined first (shallow) depth to a second, deeper depth. During this time, the output signal TRS of the AND circuit 15 remains "1" corresponding to the time slot of the channel to which the key is assigned.

タツチカウンタ17は、チヤンネル数Nに対応
するステージ数を持つ複数ビツトのシフトレジス
タ18とゲート及び加算器19とから成る。ビジ
イメモリBUMの内容をクリアするときに使用さ
れるクリア信号CCが発音割当て回路13から引
き出されて、ゲート及び加算器19のリセツト信
号として使用される。このクリア信号CCが発生
したチヤンネルに対応してシフトレジスタ18の
内容が後述のようにゼロにクリアされる。シフト
レジスタ18の出力はゲート及び加算器19を介
して自己の入力側に戻るようになつており、アン
ド回路20を介してタツチカウントクロツクパル
ス発生器21からのクロツクパルスが加算器19
に与えられる毎に該レジスタ18に戻るべき値が
増加され、こうしてカウントアツプがなされる。
シフトレジスタ18は2相のシステムクロツクパ
ルスφA,φBによつて発音割当て回路13内の各
チヤンネル時分割タイミングに同期してシフト制
御されるようになつており、タツチカウンタ17
において各チヤンネル別のタツチカウント動作が
時分割で行なわれる。クリア信号CCが発生した
チヤンネルではゲート及び加算器19でシフトレ
ジスタ18の出力の循環が絶たれ、これにより該
レジスタ18の内容がゼロにクリアされる。タツ
チカウンタ17で或るチヤンネルに関して接点時
間差をカウントする場合、それよりも前に、必ら
ずクリア信号CCによつて当該チヤンネルに関す
るシフトレジスタ18の内容がゼロにクリアされ
ている。
The touch counter 17 includes a multi-bit shift register 18 having a number of stages corresponding to the number of channels N, and a gate and an adder 19. A clear signal CC used to clear the contents of the busy memory BUM is drawn out from the sound generation allocation circuit 13 and used as a reset signal for the gate and adder 19. The contents of the shift register 18 are cleared to zero as described later in accordance with the channel in which the clear signal CC is generated. The output of the shift register 18 is returned to its own input side via a gate and an adder 19, and the clock pulse from the touch count clock pulse generator 21 is sent to the adder 19 via an AND circuit 20.
The value to be returned to the register 18 is incremented each time the register 18 is given, thus causing a count-up.
The shift register 18 is shift-controlled by two-phase system clock pulses φ A and φ B in synchronization with the time division timing of each channel in the sound generation allocation circuit 13 .
Touch counting operations for each channel are performed in a time-division manner. In the channel where the clear signal CC is generated, the gate and adder 19 stop the circulation of the output of the shift register 18, thereby clearing the contents of the register 18 to zero. Before the touch counter 17 counts the contact time difference for a certain channel, the contents of the shift register 18 for that channel are necessarily cleared to zero by the clear signal CC.

アンド回路15の出力信号TRSによつてアン
ド回路20が可能化されるようになつており、接
点時間差に対応する時間中だけ発生器21のカウ
ントクロツクパルスがアンド回路20を通り、加
算器19に与えられる。従つてこの時間中にカウ
ンタ17のカウント値は一定レート(カウントク
ロツクパルスのレート)でゼロから徐々に増加
し、最終的に上記接点時間差に対応するカウント
値となつたとき、カウント動作が停止する。つま
り、信号TRSが“0”に立下ることによりアン
ド回路20が不能化され、カウントクロツクパル
スがそれ以上与えられなくなる。以後はそのカウ
ント値つまり上記接点時間差すなわち鍵タツチの
強さ(押下速度)を示すタツチデータがシフトレ
ジスタ18で保持される。言うまでもなく、この
タツチカウント動作は、時分割的に発生する各チ
ヤンネル別の信号TRSに従つて各チヤンネル毎
に独立に時分割で行なわれる。尚、オール“1”
検出回路22はシフトレジスタ18の出力が全ビ
ツト“1”つまり最大値となつたことを検出する
ものであり、この検出がなされたとき“1”を出
力し、インバータ23の出力を“0”にしてアン
ド回路20を不能化する。これにより最大カウン
ト値を越える接点時間差に対応するタツチデータ
はすべて最大カウント値に制限される。
The AND circuit 20 is enabled by the output signal TRS of the AND circuit 15, and the count clock pulse of the generator 21 passes through the AND circuit 20 only during the time corresponding to the contact time difference, and the adder 19 given to. Therefore, during this time, the count value of the counter 17 gradually increases from zero at a constant rate (the rate of the count clock pulse), and when it finally reaches the count value corresponding to the contact time difference, the counting operation stops. do. That is, when the signal TRS falls to "0", the AND circuit 20 is disabled and no more count clock pulses are applied. Thereafter, the count value, that is, the contact time difference, that is, the touch data indicating the strength of key touch (pressing speed) is held in the shift register 18. Needless to say, this touch counting operation is performed independently and time-divisionally for each channel in accordance with the signal TRS for each channel that is generated time-divisionally. In addition, all “1”
The detection circuit 22 detects that all bits of the output of the shift register 18 have become "1", that is, the maximum value, and when this detection is made, it outputs "1" and changes the output of the inverter 23 to "0". to disable the AND circuit 20. As a result, all touch data corresponding to a contact time difference exceeding the maximum count value is limited to the maximum count value.

シフトレジスタ18から時分割的に出力された
各チヤンネルのタツチデータTDが楽音信号発生
回路14に与えられ、該回路14内の対応するチ
ヤンネルで発生すべき楽音信号の音量、音色、音
高、変調効果、エンベロープ等の楽音要素を制御
するために利用される。楽音信号発生回路14の
出力楽音信号はサウンドシステム24に与えられ
る。
The touch data TD of each channel output from the shift register 18 in a time-divisional manner is given to the musical tone signal generation circuit 14, and the volume, tone, pitch, and modulation of the musical tone signal to be generated in the corresponding channel in the circuit 14 are applied. Used to control musical tone elements such as effects and envelopes. The output musical tone signal of the musical tone signal generation circuit 14 is given to a sound system 24.

従来技術の問題点 上述のような従来技術において、鍵タツチの検
出分解能は、接点時間差を示す信号TRSの分解
能つまり可能な最小時間幅に依存し、これは発音
割当て回路13の各メモリKAM〜KFM間での
同じ鍵に関するデータ書き換え可能最小時間間隔
に依存し、これは鍵盤回路10における鍵の1走
査サイクル期間に依存する。つまり、或る鍵に関
するブレーク接点K1のオフが検出されたとき
(ビジイ信号BUSの立上り時)からその鍵のメー
ク接点K2のオンを検出するまで(キーオン信号
KONの立上りまで)には少なくとも1走査サイ
クル期間に相当する時間間隔が必要であり、それ
よりも速い変化つまり接点時間差には応答するこ
とができない。こうして、鍵の1走査サイクル期
間の長さによつて鍵タツチ検出分解能が決定され
る。タツチレスポンスの分解能を高めるためには
鍵走査サイクルはできるだけ短かい方が良い。し
かし、上述の従来技術では、鍵走査サイクルの長
さは発音割当て回路13における各チヤンネルの
時分割周期に関連し、これは楽音信号発生回路1
4における時分割楽音発生周期(サンプリング周
期)に関連しているので、鍵走査サイクルは楽音
発生周期によつて制御され、あまり短かくするこ
とはできなかつた。典型的には、1鍵分の走査時
間(キーデータKD1,KD2の1タイムスロツ
ト)が、発音割当て回路13における時分割チヤ
ンネル時間の1周期に相当し、この1周期間をチ
ヤンネル数Nで分割して各チヤンネル毎のタイム
スロツトが設けられている。発音割当て回路13
の時分割チヤンネル時間はそのまま楽音信号発生
回路14の時分割チヤンネル時間に対応してい
る。楽音信号発生回路14における1サンプル点
分の楽音発生演算速度(この演算とは単なる計算
のみならずメモリ読み出し等も含む)には自ら限
界があり、この限界に応じて1鍵分の走査時間
(従来はこれが楽音の1サンプリング周期に対応
している)が規定され、従つてこの1鍵分の走査
時間を一般に鍵数倍した時間長から成る鍵走査1
サイクルの長さも楽音発生演算速度の限界によつ
て規定され、あまり短かくすることはできなかつ
た。こうして、従来の電子楽器では、鍵走査1サ
イクルは例えば3ミリ程度に設定されていた。し
かし、実際の鍵演奏においてタツチを最高に効か
せる場合などは、接点時間差はそれよりもかなり
短かい時間、例えば0.5ミリ秒程度、になること
が確かめられており、従来の電子楽器はこのよう
な鍵タツチに応答することができなかつた。
Problems with the Prior Art In the prior art as described above, the detection resolution of a key touch depends on the resolution of the signal TRS indicating the contact time difference, that is, the minimum possible time width. This depends on the minimum time interval during which data can be rewritten regarding the same key, which in turn depends on the period of one scanning cycle of the key in the keyboard circuit 10. In other words, from when break contact K1 for a certain key is detected to be off (when the busy signal BUS rises) to when make contact K2 for that key is detected to be on (key on signal
(up to the rise of KON) requires a time interval corresponding to at least one scan cycle period, and cannot respond to faster changes, that is, contact time differences. In this way, the key touch detection resolution is determined by the length of one scanning cycle period of the key. In order to improve the resolution of the touch response, it is better to make the key scanning cycle as short as possible. However, in the above-mentioned prior art, the length of the key scanning cycle is related to the time division period of each channel in the tone generation allocation circuit 13, and this is
4, the key scanning cycle is controlled by the musical tone generation period and cannot be made too short. Typically, the scanning time for one key (one time slot of key data KD1, KD2) corresponds to one cycle of time-division channel time in the sound generation assignment circuit 13, and this one cycle period is divided by the number of channels N. A time slot is provided for each channel. Sound allocation circuit 13
The time division channel time directly corresponds to the time division channel time of the musical tone signal generation circuit 14. The musical tone generation calculation speed for one sample point in the musical tone signal generation circuit 14 (this calculation includes not only simple calculation but also memory reading, etc.) has its own limit, and the scanning time for one key ( Conventionally, this corresponds to one sampling period of a musical tone), and therefore, the key scan 1 consists of the scanning time for one key, which is generally multiplied by the number of keys.
The length of the cycle was also determined by the limit of musical sound generation calculation speed, and could not be made too short. Thus, in conventional electronic musical instruments, one key scanning cycle is set to, for example, about 3 mm. However, it has been confirmed that when the touch is most effective during actual key performance, the contact time difference is much shorter than that, for example, about 0.5 milliseconds, and conventional electronic musical instruments It was unable to respond to repeated key touches.

また別の問題として、上述のような従来の電子
楽器は、第1の接点の作動(ブレーク接点K1の
オフ)にもとづき割当てがなされ、この割当てが
楽音信号発生回路14の発音チヤンネルに直接関
連しているため、次のような問題があつた。すな
わち、押鍵ミスや震動によつて鍵のわずかな下降
が起きたときに第1の接点が作動し、これにもと
づき割当てがなされることにより発音チヤンネル
が実際には発音しない鍵によつて占有されてしま
い、本当の押圧鍵を割当てるべきときに支障をき
たすおそれがあつた。
Another problem is that in the conventional electronic musical instrument as described above, the assignment is made based on the operation of the first contact (the break contact K1 is turned off), and this assignment is directly related to the sound generation channel of the musical tone signal generation circuit 14. As a result, the following problems arose. In other words, when a slight downward movement of the key occurs due to a key press error or vibration, the first contact is activated, and assignments are made based on this, so that the sounding channel is occupied by a key that does not actually sound. There was a risk that this would cause trouble when the actual key to be pressed should be assigned.

発明の目的 この発明は上述の従来技術の欠点を克服するた
めになされたもので、第1には、鍵タツチの検出
分解能を高めることを目的とし、第2には、第1
の接点だけが誤作動したときに楽音発生チヤンネ
ルの無意味な点有が起らないようにすることを目
的とする。
Purpose of the Invention The present invention has been made to overcome the drawbacks of the above-mentioned prior art.Firstly, the purpose is to increase the detection resolution of a key touch, and secondly, the first purpose is to improve the detection resolution of a key touch.
It is an object of the present invention to prevent meaningless interruptions of a musical tone generation channel from occurring when only the contacts of the toner malfunction.

発明の概要 この発明に係る電子楽器は、異なる鍵押圧深さ
で順次作動する各鍵毎に設けられた第1の接点及
び第2の接点と、前記各鍵の第1の接点及び第2
の接点の作動を検出する押鍵検出手段と、前記各
鍵の押圧に伴なう前記第1の接点の作動に応答し
て当該押圧された鍵を所定数のチヤンネルのいず
れかに割り当てる第1の割当て手段と、前記第1
の割当て手段による割り当てに従つて、各チヤン
ネル毎に、そこに割り当てられた鍵に関する前記
第1の接点が作動してから前記第2の接点が作動
するまでの作動時間差を測定し、該測定結果をタ
ツチデータとするタツチ検出手段と、前記第1の
割当て手段で前記各チヤンネルに割り当てられた
鍵に関する前記第2の接点の作動に応答して当該
鍵を所定数の楽音発生チヤンネルのいずれかに割
り当て、かつ、割り当てた鍵を特定する情報およ
び前記タツチ検出手段で検出された当該鍵に関す
る前記タツチデータを、当該割り当てた楽音発生
チヤンネルに対応して出力する第2の割当て手段
と、前記各楽音発生チヤンネル毎にそれぞれ当該
楽音発生チヤンネルに対応する前記情報および前
記タツチデータに従つて楽音信号を発生する楽音
発生手段とを具えることを特徴とするものであ
る。
Summary of the Invention The electronic musical instrument according to the present invention includes a first contact point and a second contact point provided for each key that operate sequentially at different key pressing depths, and a first contact point and a second contact point of each key.
a key press detection means for detecting activation of a contact point; and a first key detecting means for detecting activation of a contact point of the key press, and a first key detecting means for allocating the pressed key to one of a predetermined number of channels in response to activation of the first contact point accompanying the press of each of the keys. allocating means, and said first
According to the assignment by the assigning means, for each channel, the difference in operating time from when the first contact is activated to when the second contact is activated regarding the key assigned thereto is measured, and the measurement result is touch detection means that uses as touch data; a second assigning means for assigning and outputting information specifying the assigned key and the touch data regarding the key detected by the touch detecting means in correspondence with the assigned musical tone generation channel; and each of the musical tones. The present invention is characterized in that it includes musical tone generating means for generating a musical tone signal for each generation channel in accordance with the information and the touch data corresponding to the musical tone generation channel.

鍵の押圧に伴ない第1の接点が作動すると、第
1の割当て手段では、これに応答して当該押圧さ
れた鍵を所定数のチヤンネルのいずれかに割り当
てる処理を行なう。タツチ検出手段では、この第
1の割当て手段による割り当てに従つて、各チヤ
ンネル毎に、そこに割り当てられた鍵に関する前
記第1の接点が作動してから前記第2の接点が作
動するまでの作動時間差を測定し、該測定結果を
タツチデータとする。
When the first contact point is actuated as a result of pressing a key, the first assigning means responds to this by assigning the pressed key to one of a predetermined number of channels. In the touch detection means, in accordance with the assignment by the first assignment means, the touch detection means operates for each channel from the activation of the first contact point to the activation of the second contact point related to the key assigned thereto. Measure the time difference and use the measurement results as touch data.

第1の割当て手段で各チヤンネルに割り当てら
れた鍵に関して第2の接点が作動すると、これに
応答して、第2の割当て手段では、当該鍵を所定
数の楽音発生チヤンネルのいずれかに割り当てる
処理を行ない、かつ、割り当てた鍵を特定する情
報および前記タツチ検出手段で検出された当該鍵
に関する前記タツチデータを、当該割り当てた楽
音発生チヤンネルに対応して出力する。楽音発生
手段では、各楽音発生チヤンネル毎にそれぞれ当
該楽音発生チヤンネルに対応して出力される前記
情報および前記タツチデータに従つて楽音信号を
発生する。
When the second contact is actuated with respect to the key assigned to each channel by the first assignment means, in response, the second assignment means assigns the key to one of a predetermined number of musical sound generation channels. and outputs information specifying the assigned key and the touch data regarding the key detected by the touch detection means in correspondence with the assigned tone generation channel. The musical sound generation means generates a musical sound signal for each musical sound generation channel in accordance with the information and the touch data outputted corresponding to the musical sound generation channel.

こうして、鍵タツチ検出は、第1の割当て手段
による割り当てに従つて、各チヤンネル毎に、そ
こに割り当てられた鍵に関して行われる。この第
1の割当て手段は、楽音発生チヤンネルに対する
割当てを行なうための第2の割当て手段とは別に
設けられているため、第1の割当て手段における
処理動作時間は、楽音発生チヤンネルの演算時間
による制限を受けず、高速で動作させることが可
能である。従つて、鍵タツチの検出分解能を高め
ることができる。また、第2の割当て手段では、
第1の割当て手段で各チヤンネルに割り当てられ
た鍵に関する第2の接点の作動に応答して当該鍵
の楽音発生チヤンネルへの割当て処理を行なうの
で、第1の接点だけが誤動作した場合は楽音発生
チヤンネルに対する割当て処理が行われず、楽音
発生チヤンネルの無意味な占有が起らなくなる。
In this way, key touch detection is performed for each channel with respect to the keys assigned thereto according to the assignment by the first assignment means. Since this first allocation means is provided separately from the second allocation means for allocating to musical sound generation channels, the processing operation time in the first allocation means is limited by the calculation time of the musical sound generation channels. It is possible to operate at high speed without being affected by Therefore, the detection resolution of key touches can be improved. Furthermore, in the second allocation means,
In response to the operation of the second contact regarding the key assigned to each channel by the first assignment means, the assignment process of the key to the musical tone generation channel is performed, so if only the first contact malfunctions, the musical tone is generated. Allocation processing for channels is not performed, and meaningless occupancy of musical sound generation channels does not occur.

実施例 以下添付図面を参照してこの発明の一実施例を
詳細に説明しよう。
Embodiment Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings.

第2図において、第1図と同一符号で示したも
のは同一物であり、その説明は以下では省略し、
第1図を参照して既に述べた説明を援用する。鍵
走査カウンタ11の出力及び押鍵検出回路12の
出力キーデータKD1,KD2が与えられた第1
の割当て回路25内に示されたキーアドレスメモ
リKAM、ビジイメモリBUM、制御回路25a
の働きも第1図のKAM,BUM,13aにほぼ
対応しており、既に述べたこれらの説明を一部援
用する。
In Fig. 2, the parts indicated by the same symbols as in Fig. 1 are the same, and the explanation thereof will be omitted below.
Reference is made to the explanation already given with reference to FIG. The first to which the output of the key scanning counter 11 and the output key data KD1, KD2 of the key press detection circuit 12 are given.
The key address memory KAM, busy memory BUM, and control circuit 25a shown in the allocation circuit 25 of
The functions of KAM, BUM, and 13a in Fig. 1 also roughly correspond, and some of the explanations for these already mentioned will be used.

第1の割当て回路25は、押鍵検出回路12及
び鍵走査カウンタ11から与えられる鍵走査結果
に応答して所定数(M)のチヤンネルに押圧鍵を
割当てるためのものであり、このチヤンネルはタ
ツチカウンタ17のチヤンネルに対応している
が、楽音信号発生回路14内の楽音発生チヤンネ
ルには直接的には対応していない。第2の割当て
回路26は、第1の割当て回路25の割当て結果
に応答して、この第1の割当て回路25で各チヤ
ンネル(タツチカウンタ17のチヤンネルと同
じ)に割当てられた鍵を所定数(N)の楽音発生
チヤンネルに割当てし直し、かつ、タツチカウン
タ17で求められたタツチデータTDをこの割当
てし直しに対応して各楽音発生チヤンネルに割当
てる。
The first assignment circuit 25 is for assigning a pressed key to a predetermined number (M) of channels in response to the key scanning results given from the pressed key detection circuit 12 and the key scanning counter 11. Although it corresponds to the channel of the counter 17, it does not directly correspond to the musical tone generation channel in the musical tone signal generation circuit 14. In response to the allocation result of the first allocation circuit 25, the second allocation circuit 26 assigns a predetermined number ( N), and the touch data TD obtained by the touch counter 17 is allocated to each musical tone generation channel corresponding to this reallocation.

タツチカウンタ17のシフトレジスタ18、第
1の割当て回路25内のキーアドレスメモリ
KAM、ビジイメモリBUM、キーオンイベント
メモリKOEM、キーオフイベントメモリKFEM
は、第1の割当て回路25で処理するチヤンネル
数(M)と同じステージ数(M)を夫々有する。
Shift register 18 of touch counter 17, key address memory in first allocation circuit 25
KAM, busy memory BUM, key-on event memory KOEM, key-off event memory KFEM
have the same number of stages (M) as the number of channels (M) processed by the first allocation circuit 25, respectively.

まず、第1の割当て回路25の割当て動作につ
いて説明すると、前述と同様に、第1のキーデー
タKD1が“1”に立上つたときつまりブレーク
接点K1がオフしたとき、それに対応する鍵の割
当て処理を行ない、割当てるべきことが決定した
チヤンネルに対応してビジイメモリBUMに
“1”をセツトすると共にキーアドレスメモリ
KAMに該キーデータKD1の走査タイミングに
対応するキーコードを記憶する。ただし、割当て
チヤンネル決定にあたつては、トランケート処理
等複雑な処理は全く不要であり、同一キーコード
が未だKAMに記憶されていないことを条件に
BUMによつて示された1つの空白チヤンネルに
対して上記決定を行なえばよい。メモリBUM,
KAMに記憶されたデータのクリアは、それに対
応する鍵が離されたときつまりブレーク接点K1
がオンに復帰したとき(KD1が“0”になつた
とき)行なえばよい。
First, to explain the assignment operation of the first assignment circuit 25, as described above, when the first key data KD1 rises to "1", that is, when the break contact K1 turns off, the corresponding key is assigned. Processing is performed, and the busy memory BUM is set to "1" corresponding to the channel that has been determined to be allocated, and the key address memory is set to "1".
A key code corresponding to the scanning timing of the key data KD1 is stored in KAM. However, when determining the allocated channel, there is no need for complicated processing such as truncation processing, and the condition is that the same key code is not yet stored in KAM.
The above determination may be made for one blank channel indicated by BUM. Memory BUM,
The data stored in KAM is cleared when the corresponding key is released, that is, break contact K1
This can be done when KD1 returns to on (when KD1 becomes "0").

キーオンイベントメモリKOEMは第2の接点
つまりメーク接点K2がオンしたことを記憶する
ためのものである。或る鍵のメーク接点K2がオ
ンしたときその鍵が割当てられたチヤンネルのタ
イミングで信号“1”が制御回路25aから与え
られ、オア回路27を介してシフトレジスタ28
に記憶される。シフトレジスタ28の出力はアン
ド回路29、オア回路27を介して循環保持され
る。キーオンイベントパルス発生回路30は、第
2の接点K2のオフからオンへの切換りに応答し
て第2の割当て回路26にキーオンイベントパル
スKOEVNを与えるためのものである。キーオン
イベントパルスKOEVNに対応してキーオンイベ
ントメモリKOEMにクリア信号が与えられ、こ
れによりアンド回路29を不能化する。従つて、
キーオンイベントパルスKOEVNが出されたと
き、それに対応するキーオンイベントメモリ
KOEMの記憶がクリアされる。R−Sフリツプ
フロツプ31は第2の割当て回路26がキーオン
イベント処理中のとき“0”にリセツトされ、そ
れ以外のとき“1”にセツトされる。このセツト
出力がアンド回路32に与えられ、第2の割当て
回路26がキーオンイベント処理中でないことを
条件に、キーオンイベントメモリKOEMの出力
“1”を選択する。このアンド回路32の出力
“1”がキーオンイベントパルスKOEVNとなる。
この出力“1”は遅延フリツプフロツプ33で1
チヤンネルタイミングだけ遅延され、R−Sフリ
ツプフロツプ31のリセツト入力に与えられる。
こうして、1つのキーオンイベントパルス
KOEVNが発生すると、フリツプフロツプ31が
リセツトされ、アンド回路32が不能化されて、
次のキーオンイベントパルスの発生が抑止され
る。第2の割当て回路26においてキーオンイベ
ントパルスKOEVNに応じた割当て処理が終了す
ると、キーオンイベント終了信号END1が出力
され、キーオンイベントパルス発生回路30内の
フリツプフロツプ31をセツトする。こうして、
アンド回路32が可能化され、次のキーオンイベ
ントパルスの発生が可能となる。
The key-on event memory KOEM is for storing that the second contact, that is, the make contact K2, has been turned on. When the make contact K2 of a certain key is turned on, a signal "1" is given from the control circuit 25a at the timing of the channel to which that key is assigned, and the signal is sent to the shift register 28 via the OR circuit 27.
is memorized. The output of the shift register 28 is circulated and held via an AND circuit 29 and an OR circuit 27. The key-on event pulse generating circuit 30 is for providing a key-on event pulse KOEVN to the second assignment circuit 26 in response to switching of the second contact K2 from off to on. A clear signal is applied to the key-on event memory KOEM in response to the key-on event pulse KOEVN, thereby disabling the AND circuit 29. Therefore,
When the key-on event pulse KOEVN is issued, the corresponding key-on event memory
KOEM's memory is cleared. The R-S flip-flop 31 is reset to "0" when the second assignment circuit 26 is processing a key-on event, and is set to "1" at other times. This set output is applied to the AND circuit 32, which selects the output "1" of the key-on event memory KOEM on the condition that the second assignment circuit 26 is not processing a key-on event. The output "1" of this AND circuit 32 becomes the key-on event pulse KOEVN.
This output “1” is output by the delay flip-flop 33.
It is delayed by the channel timing and applied to the reset input of the R-S flip-flop 31.
Thus, one key-on event pulse
When KOEVN occurs, flip-flop 31 is reset, AND circuit 32 is disabled, and
Generation of the next key-on event pulse is suppressed. When the second allocation circuit 26 completes the allocation process according to the key-on event pulse KOEVN, a key-on event end signal END1 is output, and the flip-flop 31 in the key-on event pulse generating circuit 30 is set. thus,
AND circuit 32 is enabled and the next key-on event pulse can be generated.

キーオフイベントメモリKFEMは鍵が離され
たことを記憶するためのものであり、メーク接点
K2のオンからオフへの切換りまたはブレーク接
点K1のオフからオンへの切換りに応答して対応
チヤンネルに“1”を記憶する、このメモリ
KFEMは上述のメモリKOEMと同様に構成され
ている。キーオフイベントパルス発生回路34
は、キーオフイベントメモリKFEMの出力にも
とづきキーオフイベントパルスKFEVNを発生す
るものであり、上述のキーオンイベントパルス発
生回路30と同様に構成されている。第2の割当
て回路26においてキーオフイベントパルス
KFEVNに応じた処理が終了すると、キーオフイ
ベント終了信号END2が出力され、キーオフイ
ベントパルス発生回路34内のR−Sフリツプフ
ロツプ(図示せず)をセツトする。また、キーオ
フイベントメモリKFEMは前述と同様にキーオ
フイベントパルスKFEVNによつてクリアされ
る。
The key-off event memory KFEM is for remembering that the key has been released, and is activated in the corresponding channel in response to the switching of the make contact K2 from on to off or the switching of the break contact K1 from off to on. This memory stores “1”
KFEM is configured similarly to the memory KOEM described above. Key-off event pulse generation circuit 34
generates a key-off event pulse KFEVN based on the output of the key-off event memory KFEM, and is configured similarly to the key-on event pulse generating circuit 30 described above. A key-off event pulse is generated in the second assignment circuit 26.
When the processing corresponding to KFEVN is completed, a key-off event end signal END2 is output, and an R-S flip-flop (not shown) in the key-off event pulse generation circuit 34 is set. Further, the key-off event memory KFEM is cleared by the key-off event pulse KFEVN as described above.

キーオンイベントメモリKOEMの出力がイン
バータ16を介してアンド回路15に与えられ
る。アンド回路15の他の入力にはビジイメモリ
BUMの出力が与えられる。前述と同様に、個々
のチヤンネルタイミングにおいて、第1の接点
(ブレーク接点)K1のオフから第2の接点(メ
ーク接点)K2のオンまでの間、アンド回路15
の出力TRSが“1”となる。従つて、第1図と
同様に、タツチカウンタ17で2接点間の作動時
間差を計数することが可能である。
The output of the key-on event memory KOEM is applied to an AND circuit 15 via an inverter 16. The other inputs of the AND circuit 15 have busy memory.
The output of BUM is given. Similarly to the above, at each channel timing, the AND circuit 15
The output TRS of becomes “1”. Therefore, as in FIG. 1, the touch counter 17 can count the difference in operating time between two contacts.

ところで、第1の割当て回路25は楽音信号発
生回路14とは直接関係していないため、楽音発
生演算時間の制限を受けることなく、高速で動作
させることが可能である。そのため、第1の割当
て回路25及びタツチカウンタ17における時分
割チヤンネルタイミングを設定するクロツクパル
スφ1,φ2は、第2の割当て回路26における時
分割チヤンネル時間を設定するクロツクパルス
φA,φBよりもはるかに高速にすることができる。
このクロツクパルスφ1,φ2の高速化に伴ない、
鍵走査1サイクル期間が短かくなり、高速の鍵タ
ツチにも十分応答し得るようになる。
By the way, since the first allocation circuit 25 is not directly related to the musical tone signal generation circuit 14, it is possible to operate at high speed without being limited by the musical tone generation calculation time. Therefore, the clock pulses φ 1 and φ 2 that set the time division channel timing in the first allocation circuit 25 and the touch counter 17 are faster than the clock pulses φ A and φ B that set the time division channel time in the second allocation circuit 26. It can be much faster.
As the clock pulses φ 1 and φ 2 become faster,
The period of one key scanning cycle is shortened, and it becomes possible to sufficiently respond to high-speed key touches.

第1の割当て回路25から出力されたキーオン
イベントパルスKOEVN、キーオフイベントパル
スKFEVN、キーアドレスメモリKAMからのキ
ーコードKC、タツチカウンタ17からのタツチ
データTDが、第2の割当て回路26に与えられ
る。第2の割当て回路26は第1の割当て回路2
5とは非同期であり、そのため、イベントパルス
KOEVN,KFEVNを用いて処理を行なうように
している。
The key-on event pulse KOEVN, the key-off event pulse KFEVN, the key code KC from the key address memory KAM, and the touch data TD from the touch counter 17 are applied to the second assignment circuit 26, which are output from the first assignment circuit 25. The second allocation circuit 26 is the first allocation circuit 2
5 is asynchronous, so the event pulse
Processing is performed using KOEVN and KFEVN.

第2の割当て回路26では、N個の楽音発生チ
ヤンネルに対応してキーコードメモリKCM、キ
ーオンメモリKONM、ビジイメモリBUSM、タ
ツチデータメモリTDMその他を含んでおり、第
1の割当て回路25から与えられたデータにもと
づき再割当て処理を行なうために制御回路26a
が動作し、この制御回路26aによつて各メモリ
の記憶が制御される。そして、クロツクパルス
φA,φBによつて設定された各楽音発生チヤンネ
ルの時分割タイミングに従つて、各チヤンネルに
割当られた鍵のキーコードKC′、キーオン信号
KON′、タツチデータTD′が各メモリKCM〜
TDMから読み出され、楽音信号発生回路14に
与えられる。
The second allocation circuit 26 includes a key code memory KCM, a key-on memory KONM, a busy memory BUSM, a touch data memory TDM, etc. corresponding to the N musical tone generation channels, and includes a key code memory KCM, a key-on memory KONM, a busy memory BUSM, a touch data memory TDM, etc. The control circuit 26a performs the reallocation process based on the data.
is operated, and storage in each memory is controlled by this control circuit 26a. Then, according to the time division timing of each musical tone generation channel set by clock pulses φ A and φ B , the key code KC′ of the key assigned to each channel and the key-on signal are
KON′, Touch Data TD′ are each memory KCM~
The signal is read from the TDM and applied to the musical tone signal generation circuit 14.

第2の割当て回路26の割当て動作(つまり制
御回路26aの動作)はマイクロコンピユータを
用いて実施することができる。その場合、第2の
割当て回路26においては、キーオンイベントパ
ルスKOEVN、キーオフイベントパルス
KFEVN、デイケイ終了信号DFに応答する処理
はインタラプト処理として行なう。
The assignment operation of the second assignment circuit 26 (that is, the operation of the control circuit 26a) can be performed using a microcomputer. In that case, in the second allocation circuit 26, the key-on event pulse KOEVN, the key-off event pulse
Processing in response to KFEVN and Decay end signal DF is performed as interrupt processing.

キーオンイベントパルスKOEVNが与えられた
とき、第3図に示すようなキーオンイベントルー
チンを行なう。まずブロツク35では、キーオン
イベントパルスKOEVNと同時に第1の割当て回
路25から与えられたキーコードKCをマイクロ
コンピユータ内部RAMの入力キーコードレジス
タKCODEの領域に一時記憶し、かつ同時に与え
られたタツチデータTDを該RAMの入力タツチ
データレジスタTDATAの領域に一時記憶する。
When the key-on event pulse KOEVN is applied, a key-on event routine as shown in FIG. 3 is performed. First, in block 35, the key code KC given from the first allocation circuit 25 at the same time as the key-on event pulse KOEVN is temporarily stored in the area of the input key code register KCODE of the internal RAM of the microcomputer, and the touch data TD given at the same time is stored. is temporarily stored in the input touch data register TDATA area of the RAM.

このRAMのメモリマツプの一例が第5図に示
されている。CHNはキーオンイベント処理用の
チヤンネル番号シリンダであり、Kはキーオフイ
ベント処理用のチヤンネル番号レジスタである。
KCM1〜KCM12は各楽音発生チヤンネルに対
応するキーコードレジスタであり、かつこ内の数
字はチヤンネル番号を示し、この例ではチヤンネ
ル数をN=12としている。KONM1〜KONM1
2はキーオンレジスタ、BUSM1〜BUSM12
はビジイレジスタ、TDM1〜TDM12はタツ
チデータレジスタ、であり、夫々各楽音発生チヤ
ンネルに対応している。
An example of the memory map of this RAM is shown in FIG. CHN is a channel number cylinder for key-on event processing, and K is a channel number register for key-off event processing.
KCM1 to KCM12 are key code registers corresponding to each tone generation channel, and the numbers in brackets indicate channel numbers, and in this example, the number of channels is N=12. KONM1~KONM1
2 is key-on register, BUSM1 to BUSM12
is a busy register, and TDM1 to TDM12 are touch data registers, each of which corresponds to each tone generation channel.

第3図に戻ると、ブロツク36では、チヤンネ
ル番号レジスタCHNによつて指定されたチヤン
ネルに対応するビジイレジスタBUSM(CHN)
の内容を引き出し、それが“0”であるか否かを
調べる。NOならばブロツク37でCHNのチヤ
ンネル番号を1増加し、ブロツク38ではこのル
ープをN(すなわち12)回繰返したかどうかを調
べる。NOならば、ブロツク36に戻り、1増加
したチヤンネル番号に関して再びBUSM(CHN)
=0?を調べる。CHNによつて指定されたチヤ
ンネルが空白であれば、ブロツク36がYESと
なり、ブロツク39に進み、CHNによつて指定
されたチヤンネルに対応するキーコードレジスタ
KCM CHNに入力キーコードレジスタKCODE
のキーコードKCを記憶し、対応するキーオンレ
ジスタKONM CHN及びビジイレジスタBUSM
CHNに夫々“1”を記憶し、対応するタツチデ
ータレジスタTDM CHNに入力タツチデータレ
ジスタTDATAのタツチデータTDを記憶する。
次のブロツク40ではCHNのチヤンネル番号を
1増加する。次のブロツク41でキーオンイベン
ト終了信号END1を出力した後、メインプログ
ラムにリターンする。
Returning to FIG. 3, block 36 registers the busy register BUSM (CHN) corresponding to the channel specified by the channel number register CHN.
Pull out the contents of and check whether it is "0". If NO, block 37 increments the CHN channel number by 1, and block 38 checks whether this loop has been repeated N (ie, 12) times. If NO, return to block 36 and BUSM(CHN) again for the channel number incremented by 1.
=0? Find out. If the channel specified by CHN is blank, block 36 becomes YES and the process proceeds to block 39, where the key code register corresponding to the channel specified by CHN is entered.
Input key code register KCODE to KCM CHN
Memorize the key code KC and set the corresponding key-on register KONM CHN and busy register BUSM.
"1" is stored in each CHN, and the touch data TD of the input touch data register TDATA is stored in the corresponding touch data register TDM CHN.
The next block 40 increments the CHN channel number by one. After outputting the key-on event end signal END1 in the next block 41, the program returns to the main program.

全チヤンネルが割当て済みである場合、ブロツ
ク36〜38のループがN回(12回)繰返された
ときブロツク38がYESとなる。その場合、ブ
ロツク42でトランケート処理を行なう。つま
り、キーオンレジスタKONM1〜12のうちそ
の内容が“0”(離鍵中)であつて、それに対応
する楽音信号振幅値が小さいものあるいは最も古
く離鍵されたもの等所定のトランケート条件を満
足するものをトランケートチヤンネルとして指定
し、そのチヤンネルに新たな押圧鍵を割当てる。
その次のブロツク43ではブロツク41と同様に
キーオンイベント終了信号END1を出力する。
こうして、第2の割当て回路26で1回のキーオ
ンイベントルーチンが完了する毎にキーオンイベ
ント終了信号END1を送出し、第1の割当て回
路25では次のキーオンイベントパルスKOEVN
を発生することが可能となる。
If all channels have been allocated, block 38 becomes YES when the loop of blocks 36-38 is repeated N times (12 times). In that case, block 42 performs truncation processing. In other words, among the key-on registers KONM1 to KONM12, the one whose content is "0" (key being released) and the corresponding musical tone signal amplitude value is small or the one whose key was released the earliest satisfies a predetermined truncation condition. designate it as a truncated channel and assign a new press key to that channel.
In the next block 43, similar to block 41, a key-on event end signal END1 is output.
In this way, the second allocation circuit 26 sends out the key-on event end signal END1 every time one key-on event routine is completed, and the first allocation circuit 25 sends out the next key-on event pulse KOEVN.
It becomes possible to generate.

キーオフイベントパルスKFEVNが与えられた
ときは第4図に示すようなキーオフイベントルー
チンを行なう。ブロツク44では、キーオフイベ
ントパルスKFEVNと同時に第1の割当て回路2
5から与えられたキーコードKCを入力キーコー
ドレジスタKCODEに記憶する。次にチヤンネル
番号レジスタKに「1」をセツトする(ブロツク
45)。ブロツク46では、レジスタKによつて
指定されたチヤンネル番号に対応するキーコード
レジスタKCM Kから記憶キーコードを引き出
し、それと入力キーコードレジスタKCODEのキ
ーコードとを比較し、両者が一致するかを調べ
る。NOならば、レジスタKのチヤンネル番号を
1増加し(ブロツク47)、次にK=12(つまり
N)であるかを調べる(ブロツク48)。ブロツ
ク48がNOならばブロツク46に戻る。レジス
タKの値が離鍵されたキーコードが割当てられて
いるチヤンネルを示すとき、ブロツク46が
YESとなり、ブロツク49で、それに対応する
キーオンレジスタKONM Kの内容を“0”にク
リアする。次のブロツク50ではキーオフイベン
ト終了信号END2を出力する。一般に、ブロツ
ク48がYESとなることは起らないが、これが
YESのときはブロツク51でキーオフイベント
終了信号END2を出力する。
When the key-off event pulse KFEVN is applied, a key-off event routine as shown in FIG. 4 is performed. In block 44, the first assignment circuit 2 is activated simultaneously with the key-off event pulse KFEVN.
The key code KC given from 5 is stored in the input key code register KCODE. Next, channel number register K is set to "1" (block 45). In block 46, the stored key code is retrieved from the key code register KCMK corresponding to the channel number specified by the register K, and it is compared with the key code of the input key code register KCODE to see if they match. . If NO, the channel number in register K is incremented by 1 (block 47), and then it is checked whether K=12 (that is, N) (block 48). If block 48 is NO, the process returns to block 46. When the value in register K indicates the channel to which the released key code is assigned, block 46 is activated.
YES, and in block 49, the contents of the corresponding key-on register KONMK are cleared to "0". In the next block 50, a key-off event end signal END2 is output. Generally, block 48 will not be YES, but this
If YES, block 51 outputs a key-off event end signal END2.

楽音信号発生回路14からデイケイ終了信号
DFが与えられたときはデイケイ終了ルーチンを
実行する。このデイケイ終了ルーチンは特に図示
しないが、第4図のキーオフイベントルーチンに
類似した手順で実行される。つまり、デイケイ終
了信号DFが与えられたチヤンネルを探し出し、
このチヤンネルに対応するビジイレジスタ
BUSM1〜12の内容を“0”にクリアする。
Decay end signal from musical tone signal generation circuit 14
When DF is given, execute the Decay termination routine. Although not particularly shown in the drawings, this Decay end routine is executed in a similar manner to the key-off event routine shown in FIG. In other words, find the channel to which the Decay end signal DF is given,
Busy register corresponding to this channel
Clear the contents of BUSM1 to 12 to “0”.

RAMの各レジスタKCM1〜12,KONM1
〜12,BUSM1〜12,TDM1〜12の内容
が出力メモリKCM,KONM,BUSM,TDMに
転送され、クロツクパルスφA,φBに従つて時分
割的に出力される。
RAM registers KCM1 to 12, KONM1
-12, BUSM1-12, and TDM1-12 are transferred to the output memories KCM, KONM, BUSM, and TDM, and are output in a time-divisional manner according to clock pulses φ A and φ B.

尚、各鍵に対応するキースイツチは、上述のよ
うなブレーク接点とメーク接点を持つものに限ら
ず、例えば特開昭53−139521号に示されたような
2段式キースイツチを用いることもでき、要する
に異なる押圧深さで作動する2つの接点を1鍵に
つき具えているものであればよい。
Note that the key switch corresponding to each key is not limited to one having a break contact and a make contact as described above, but a two-stage key switch such as that shown in Japanese Patent Application Laid-Open No. 139521/1982 may also be used. In short, it is sufficient that each key has two contacts that operate at different pressing depths.

発明の効果 以上の通りこの発明によれば、楽音発生チヤン
ネルに対する割当てを行なうための第2の割当て
手段とは別に鍵タツチ検出用の第1の割当て手段
を設け、この第1の割当て手段による割り当てに
従つて、各チヤンネル毎に、そこに割り当てられ
た鍵に関して鍵タツチ検出のための接点作動時間
差測定を行うようにしたので、この第1の割当て
手段における処理動作時間は、楽音発生チヤンネ
ルの演算時間による制限を受けず、高速で動作さ
せることが可能となり、従つて、鍵タツチの検出
分解能を高めることができるようになる、という
優れた効果を奏する。また、第2の割当て手段で
は、第1の割当て手段で各チヤンネルに割り当て
られた鍵に関する第2の接点の作動に応答して当
該鍵の楽音発生チヤンネルへの割当て処理を行な
うので、第1の接点だけが誤動作した場合は楽音
発生チヤンネルに対する割当て処理が行われず、
楽音発生チヤンネルの無意味な占有が起らなくな
る、という優れた効果を奏する。
Effects of the Invention As described above, according to the present invention, the first assignment means for key touch detection is provided separately from the second assignment means for assigning to musical sound generation channels, and the first assignment means performs the assignment. Therefore, for each channel, the contact activation time difference for key touch detection is measured for the keys assigned to it, so that the processing operation time in this first assignment means is equal to the calculation time for the musical sound generation channel. This has the excellent effect of being able to operate at high speed without being limited by time, and therefore increasing the detection resolution of key touches. Furthermore, the second assigning means performs the process of assigning the key to the musical sound generation channel in response to the operation of the second contact regarding the key assigned to each channel by the first assigning means. If only the contact malfunctions, the assignment process to the musical sound generation channel will not be performed.
This has the excellent effect of preventing meaningless occupation of musical sound generation channels.

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

第1図は各チヤンネル毎に鍵タツチカウント動
作を行なう複音電子楽器の従来技術を示すブロツ
ク図、第2図はこの発明に係る電子楽器の一実施
例を示すブロツク図、第3図は第2図の第2の割
当て回路で実行されるキーオンイベントルーチン
の一例を示すフローチヤート、第4図は同第2の
割当て回路で実行されるキーオフイベントルーチ
ンの一例を示すフローチヤート、第5図は同第2
の割当て回路として用いたマイクロコンピユータ
のRAMのメモリマツプの一例を示す図、であ
る。 10……鍵盤回路、KS……キースイツチ、K
1……ブレーク接点(第1の接点)、K2……メ
ーク接点(第2の接点)、11……鍵走査カウン
タ、12……押鍵検出回路、17……タツチカウ
ンタ、25……第1の割当て回路、26……第2
の割当て回路、KAM……キーアドレスメモリ、
BUM……ビジイメモリ、KOEM……キーオンイ
ベントメモリ、KFEM……キーオフイベントメ
モリ。
FIG. 1 is a block diagram showing a conventional technology of a multitone electronic musical instrument that performs a key touch counting operation for each channel, FIG. 2 is a block diagram showing an embodiment of an electronic musical instrument according to the present invention, and FIG. FIG. 4 is a flowchart showing an example of a key-on event routine executed in the second allocation circuit shown in the figure; FIG. 4 is a flowchart showing an example of a key-off event routine executed in the second allocation circuit shown in FIG. Second
FIG. 2 is a diagram showing an example of a memory map of a RAM of a microcomputer used as an allocation circuit. 10...Keyboard circuit, KS...Key switch, K
1...Break contact (first contact), K2...Make contact (second contact), 11...Key scanning counter, 12...Key press detection circuit, 17...Touch counter, 25...First allocation circuit, 26...second
assignment circuit, KAM...key address memory,
BUM...Busy memory, KOEM...Key-on event memory, KFEM...Key-off event memory.

Claims (1)

【特許請求の範囲】 1 異なる鍵押圧深さで順次作動する各鍵毎に設
けられた第1の接点及び第2の接点と、 前記各鍵の第1の接点及び第2の接点の作動を
検出する押鍵検出手段と、 前記各鍵の押圧に伴なう前記第1の接点の作動
に応答して当該押圧された鍵を所定数のチヤンネ
ルのいずれかに割り当てる第1の割当て手段と、 前記第1の割当て手段による割り当てに従つ
て、各チヤンネル毎に、そこに割り当てられた鍵
に関する前記第1の接点が作動してから前記第2
の接点が作動するまでの作動時間差を測定し、該
測定結果をタツチデータとするタツチ検出手段
と、 前記第1の割当て手段で前記各チヤンネルに割
り当てられた鍵に関する前記第2の接点の作動に
応答して当該鍵を所定数の楽音発生チヤンネルの
いずれかに割り当て、かつ、割り当てた鍵を特定
する情報および前記タツチ検出手段で検出された
当該鍵に関する前記タツチデータを、当該割り当
てた楽音発生チヤンネルに対応して出力する第2
の割当て手段と、 前記各楽音発生チヤンネル毎にそれぞれ当該楽
音発生チヤンネルに対応する前記情報および前記
タツチデータに従つて楽音信号を発生する楽音発
生手段と を具える電子楽器。 2 前記第1の割当て手段が前記第2の割当て手
段に比べて高速で割当て処理を行なうものである
特許請求の範囲第1項記載の電子楽器。
[Scope of Claims] 1. A first contact and a second contact provided for each key that operate sequentially at different key depression depths; a key press detection means for detecting a pressed key; and a first assignment means for allocating the pressed key to one of a predetermined number of channels in response to activation of the first contact in response to the pressing of each of the keys; According to the assignment by the first assigning means, for each channel, the first contact associated with the key assigned thereto is actuated and then the second
touch detection means for measuring the difference in operating time until the contacts are actuated and using the measurement result as touch data; In response, the key is assigned to one of a predetermined number of musical tone generation channels, and the information identifying the assigned key and the touch data regarding the key detected by the touch detection means are transferred to the assigned musical tone generation channel. The second output corresponding to
and musical tone generating means for generating a musical tone signal for each of the musical tone generating channels according to the information and the touch data corresponding to the musical tone generating channel. 2. The electronic musical instrument according to claim 1, wherein the first assignment means performs assignment processing at a higher speed than the second assignment means.
JP58000771A 1983-01-08 1983-01-08 Electronic musical instrument Granted JPS59126596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58000771A JPS59126596A (en) 1983-01-08 1983-01-08 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58000771A JPS59126596A (en) 1983-01-08 1983-01-08 Electronic musical instrument

Publications (2)

Publication Number Publication Date
JPS59126596A JPS59126596A (en) 1984-07-21
JPS648356B2 true JPS648356B2 (en) 1989-02-13

Family

ID=11482955

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58000771A Granted JPS59126596A (en) 1983-01-08 1983-01-08 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JPS59126596A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0351025A (en) * 1989-07-20 1991-03-05 Matsushita Electric Ind Co Ltd Floor nozzle for vacuum cleaner

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4620469A (en) * 1984-12-03 1986-11-04 Kawai Musical Instrument Mfg. Co., Ltd Key assignor for a touch responsive electronic musical instrument
JPH079581B2 (en) * 1985-02-28 1995-02-01 ヤマハ株式会社 Electronic musical instrument
JPS61273591A (en) * 1985-05-29 1986-12-03 松下電器産業株式会社 Keying speed detection circuit
JPS62294289A (en) * 1986-06-13 1987-12-21 ヤマハ株式会社 Electronic musical instrument

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS531653B2 (en) * 1974-08-12 1978-01-20
JPS5246088A (en) * 1975-10-09 1977-04-12 Dainippon Ink & Chem Inc Preparation of novel addition products
JPS5857119B2 (en) * 1978-04-10 1983-12-19 ヤマハ株式会社 Touch response device for electronic musical instruments

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0351025A (en) * 1989-07-20 1991-03-05 Matsushita Electric Ind Co Ltd Floor nozzle for vacuum cleaner

Also Published As

Publication number Publication date
JPS59126596A (en) 1984-07-21

Similar Documents

Publication Publication Date Title
US3610806A (en) Adaptive sustain system for digital electronic organ
GB1440488A (en) Electronic musical instrument
JPS642958B2 (en)
US4114497A (en) Electronic musical instrument having a coupler effect
US4332183A (en) Automatic legato keying for a keyboard electronic musical instrument
US4176573A (en) Intrakeyboard coupling and transposition control for a keyboard musical instrument
JPS59105694A (en) Electronic musical instrument
JPS648356B2 (en)
GB1580690A (en) Digital generator for musical notes
JP2650488B2 (en) Musical instrument control method for electronic musical instruments
JPH0213318B2 (en)
JP2548113B2 (en) Electronic musical instrument
JP2555310B2 (en) Touch response device for electronic musical instruments
US5959232A (en) Electronic musical instrument and a method of dynamic channel assignment for solo and non-solo tones
US4411185A (en) Touch responsive keyboard electronic musical instrument
US4159663A (en) Electronic musical instrument with different types of tone forming systems
US5198605A (en) Key touch data generation circuit of an electronic musical instrument
JPH0429249B2 (en)
US4337681A (en) Polyphonic sliding portamento with independent ADSR modulation
JPH0418320B2 (en)
JP3230265B2 (en) Sound channel assignment device for electronic musical instruments
US4429605A (en) Electronic musical instrument
JP2522651B2 (en) Electronic musical instrument
JPS644155Y2 (en)
JPS62111290A (en) Electronic musical apparatus