JPS59126596A - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JPS59126596A
JPS59126596A JP58000771A JP77183A JPS59126596A JP S59126596 A JPS59126596 A JP S59126596A JP 58000771 A JP58000771 A JP 58000771A JP 77183 A JP77183 A JP 77183A JP S59126596 A JPS59126596 A JP S59126596A
Authority
JP
Japan
Prior art keywords
key
channel
circuit
touch
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP58000771A
Other languages
Japanese (ja)
Other versions
JPS648356B2 (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.)
Nippon Gakki Co Ltd
Original Assignee
Nippon Gakki Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Gakki Co Ltd filed Critical Nippon Gakki Co Ltd
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)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

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 tone 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接点間
の作動時間差を測定することにより、各鍵毎に独立に鍵
タッチ(イニシャルタッチ)を検出する技術は既によく
知られている。他方、複音電子楽器では、鍵の総数よシ
も十分に少ない限られた数の楽音発生チャンネルを具備
し、押圧された鍵をキーアサイナ(発音割当て回路)に
よっていずれかのチャンネルに適宜割当て、この割当て
に対応して各チャンネルで楽音信号を発生するようにす
ることが、現在では一般的となっている。各鍵毎の上記
接点作動時間差を測定するため゛に、複音電子楽器では
、上記キーアサイナによる割当て動作に対応して限られ
た構成の(すなわち全鍵にではなく各チャンネルにのみ
対応する構成の)時間カウント回路を利用するようにす
るのが有利である。そのようにした電子楽器が特公昭5
2−46088号に示されており、そこにおけるタッチ
カウント関係の考え方を簡略化して示すと第1図のよう
になる。
Prior Art Each key is equipped with two key switch contacts that correspond to different key depression depths, and the operating time difference between those two contacts is measured independently for each key. Techniques for detecting key touches (initial touches) are already well known. On the other hand, multitone electronic musical instruments are equipped with a limited number of musical tone generation channels, which is sufficiently smaller than the total number of keys, and a key assigner (sounding assignment circuit) assigns a pressed key to one of the channels as appropriate. It is now common practice to generate musical tone signals in each channel in response to each channel. In order to measure the contact activation time difference for each key, multitone electronic musical instruments have a limited configuration (i.e., a configuration that corresponds only to each channel instead of all keys) corresponding to the assignment operation by the key assigner. Advantageously, a time counting circuit is used. An electronic musical instrument made in this way was created in the 5th year of the special public
2-46088, and the concept of the touch count relationship therein is shown in a simplified manner as shown in FIG.

第1図において、鍵盤回路10は、ブレーク接点に1と
メーク接点に2を含むキースイッチKSを各鍵毎に配列
して成るものである。プレー接点に1は常時オンしてお
シ、鍵が所定の比較的浅い深さよυ下に押し下げられた
ときオフする。メーク接点に2は常時オフしており、上
記ブレーク接点に1の作動深さよりも深い所定の深さよ
υ下に鍵が押し下げられたときオフする。鍵走査カウン
タ11によって回路10の各キースイッチが順次繰返し
走査され、この走査出力に応答して押鍵検出回路12は
時分割多重化された各鍵のキーデータKD1.KD2を
ブレーク接点に1及びメーク接点に2に対応して夫々出
力する。例えば、ブレーク接点に対応する第1のキーデ
ータKD1は、ブレーク接点に1がオンしている鍵の走
査タイムスロットで“I Q I+、オフしている鍵の
走査タイムスロットで°“1″、である。また、メーク
接点に対応する第2のキーデータKD2は、メーク接点
に2がオフしている鍵の走査タイムスロットで′0″、
オンしている鍵の走査タイムスロットで1″、である。
In FIG. 1, a keyboard circuit 10 is constructed by arranging key switches KS including 1 as a break contact and 2 as a make contact for each key. The play contact 1 is always on and turns off when the key is pushed down to a predetermined relatively shallow depth υ. The make contact 2 is always off, and the break contact 1 is turned off when the key is pressed down to a predetermined depth υ deeper than the operating depth of the break contact 1. Each key switch of the circuit 10 is sequentially and repeatedly scanned by the key scanning counter 11, and in response to the scanning output, the key press detection circuit 12 generates time-division multiplexed key data KD1. KD2 is outputted corresponding to 1 to the break contact and 2 to the make contact, respectively. For example, the first key data KD1 corresponding to the break contact is "I Q I+" in the scanning time slot of a key whose break contact is turned on, "1" in the scanning time slot of a key whose break contact is turned off, In addition, the second key data KD2 corresponding to the make contact is '0'' in the scanning time slot of the key in which 2 is turned off for the make contact.
1'' in the scan time slot of the key that is on.

発音割当て回路16ば、楽音信号発生回路14における
複数(N)の楽音発生チャンネルのいずれかに押圧鍵を
割当てるための処理を、キーデータKD 1.KD2及
°び鍵走査カウンタ11の出力にもとづき行なう。各チ
ャンネルに対する割当て内容を記憶するために各種のメ
モ’JKAM、BUM。
The sound generation assignment circuit 16 performs processing for assigning a pressed key to one of a plurality of (N) musical tone generation channels in the musical tone signal generation circuit 14 using key data KD1. This is done based on the outputs of KD2 and key scanning counter 11. Various memos 'JKAM, BUM' are provided to memorize the assignment details for each channel.

KOM、KFMが設けられており、これらは例えばチャ
ンネル数Nに対応するステージ数を持つシフトレジスタ
から成る。制御回路13aは割当動作に従って各メモI
JKAM−KFMの書込みまたはクリアを制御するもの
である。キーアドレスメモリKAMは各チャンネルに割
当てられた鍵を示す複数ビットのキーコードを記憶する
ものであり、ビジィメモリB、UMの書込み及びクリア
に対応して書込み及びクリアがなされる。ビジィメモリ
BUMは各チャンネルに鍵が割当てられているか否かを
記憶するものである。発音割当て回路16では、第1の
キーデータKD1が°1′″に立上ったときつま9ブレ
一ク接点に1がオフしたとき、それに対応する鍵の割当
て処理を行ない、割当てるべきことが決定したチャンネ
ルに対応してビジィメモリBUMに” 1 ”をセット
する。鍵が割当てられていないチャンネル(空白チャン
ネル)ではビジィメモリBUMの内容は“0゛にリセッ
トされており、例えば、BUMの内容が°′0″のチャ
ンネル(空白チャンネル)に対してKDjが1″に立上
った新たな押圧鍵を割当てるように決定され、この決定
にもとづきBUMの当該チャンネルに1゛がセントされ
ると共にKAMの当該チャンネルに該新たな押圧鍵を示
すキーコードが記憶される。キーオンメモリROMは、
第2のキーデータKD2を記憶するものであり、メーク
接点に2がオンしたときそれに対応する鍵が割当てられ
ているチャンネルに対応して°“1″を記憶する。キー
オフメモIJ K F Mは鍵が離されたときから減衰
発音(ディケイ)゛終了までの間II 111を記憶す
るものであシ、例えば、第1のキーデータKDiが“°
1″から′0″に切換わったときつまpブレーク接点に
1がオフからオンに切換わったときそれに対応する鍵が
割当てられているチャンネルに対応して1″を記憶する
。尚、特に説明しないが、周知のトランケート制御その
他必要な機能を行なうための回路及びメモリが割当て回
路16内に更に設けられている。
A KOM and a KFM are provided, which consist of shift registers having a number of stages corresponding to the number N of channels, for example. The control circuit 13a assigns each memo I according to the allocation operation.
It controls writing or clearing of JKAM-KFM. 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 memories B and UM. The busy memory BUM stores whether or not a key is assigned to each channel. In the sound generation assignment circuit 16, when the first key data KD1 rises to °1'' and 1 is turned off at the toe 9 break contact, the corresponding key assignment process is performed and the key to be assigned is determined. Set "1" in the busy memory BUM corresponding to the determined channel.For channels to which no keys are assigned (blank channels), the contents of the busy memory BUM are reset to "0". It is decided to allocate a new pressed key with KDj rising to 1'' to the '0'' channel (blank channel), and based on this decision, 1'' is sent to the corresponding channel of BUM and KAM is A key code indicating the new pressed key is stored in the channel. The key-on memory ROM is
The second key data KD2 is stored, and when the make contact 2 is turned on, ``1'' is stored corresponding to the channel to which the corresponding key is assigned. The key-off memo IJKFM stores II 111 from the time the key is released until the end of the decay sound. For example, if the first key data KDi is "°
When switching from 1'' to '0'', 1'' is stored in the p-break contact corresponding to the channel to which the corresponding key is assigned when 1 is switched from OFF to ON. However, circuitry and memory are further provided within the allocation circuit 16 to perform well-known truncation control and other necessary functions.

楽音信号発生回路14の各チャンネルで発生されていた
楽音の減衰発音が終了すると、そのチャンネルに対応し
てディケイ終了信号DFが発音割当て回路16に与えら
れる。このディケイ終了信号DFによって、減衰発音が
終了したチャンネルに対応するキーオフメモリKFM、
ビジィメモリBUM、キーアドレスメモリKAMの内容
が夫々リセット(クリア)される。キーオンメモリKO
Mの記憶内容は、第2のキーデータKD2が′O″に立
下ったときつま9メ一ク接点に2がオンからオフに切換
わったときそれに対応する鍵が割当てられているチャン
ネルに関してリセットされる。
When the decay 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 16 corresponding to that channel. The key-off memory KFM corresponding to the channel in which the decay sound has been completed by this decay end signal DF;
The contents of busy memory BUM and key address memory KAM are respectively reset (cleared). Key on memory KO
The memory contents of M are reset with respect to the channel to which the corresponding key is assigned when the second key data KD2 falls to ``O'' and 2 switches from ON to OFF at the 9-pin contact. be done.

各メモ+)Kpyr’−KFMの記憶内容は、各チャン
ネルの時分割タイムスロットに同期して時分割的に出力
される。楽音信号発生回路14は、各メモリK A M
 −K F Mから時分割的に送出された各チャンネル
の割当て鍵に関する情報を受入れ、これにもとづき各楽
音発生チャンネルで夫々楽音信号を発生する。つまシ、
個々のチャンネルでは、キーアドレスメモリKAMから
のキーコードKCにもとづき、このKCの値に従って定
まる音名及びオクターブをもつ楽音信号を発生し、キー
オンメモリKOMからのキーオン信号KONとキーオフ
メモ!J K F Mからのキーオフ信号KOFに従っ
てエンベロープ信号を形成し、このエンベロープ信号に
よって前記楽音信号に振幅エンベロープを付与する。。
The stored contents of each memo +)Kpyr'-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 is connected to each memory K.A.M.
- Receives information regarding the assigned keys for each channel transmitted from KFM in a time-divisional manner, and generates musical tone signals in each musical tone generation channel based on this information. Tsumashi,
In each channel, based on the key code KC from the key address memory KAM, a musical tone signal having a note name and octave determined according to the value of this KC is generated, and the key-on signal KON from the key-on memory KOM and the key-off memo! An envelope signal is formed according to the key-off signal KOF from JKFM, and this envelope signal gives an amplitude envelope to the musical tone signal. .

ブレーク接点に1とメーク接点に2の作動時間差は、ビ
ジィメモリBUMからのビジィ信号BUSとキーオンメ
モリROMからのキーオン信号KC)Nとを利用して測
定される。キーオン信号KONをインバータ16で反転
した信号とビジィ信号BUSとがアンド回路15に入力
され、上記2接点間の作動時間差をパルス幅によって示
す信号TR8が各チャンネル毎に時分割でアンド回路1
5から出力される。前述の通り、ビジィメモリBUMの
内容つま9ビジィ信号BUSはブレーク接点に1の作動
(オフへの切換わj))によって1″に立上り、キーオ
ンメモリKOMの内容っ−1キーオン信号KONはメー
ク接点に2の作動(オンへの切換わシ)によって“1”
に立上る。従って、ブレーク接点に1がオフに成ったと
きからメーク接点に2がオンするまでの間、っまり押下
げられた鍵が所定の第1の(浅い)深さからそれより保
い第2の深さまで移動する間、アンド回路15の出力信
号TR8はその鍵が割当てられたチャンネルのタイムス
ロットに対応して持続的に1″′となる。
The operating time difference between the break contact 1 and the make contact 2 is measured using the busy signal BUS from the busy memory BUM and the key-on signal KC)N from the key-on memory ROM. A signal obtained by inverting the key-on signal KON by the inverter 16 and the busy signal BUS are input to the AND circuit 15, and a signal TR8 indicating the operating time difference between the two contacts by pulse width is sent to the AND circuit 1 in a time-division manner for each channel.
Output from 5. As mentioned above, the contents of the busy memory BUM, or the busy signal BUS, rises to 1'' due to the operation of 1 (switching to OFF) at the break contact, and the contents of the key-on memory KOM, or the 9-busy signal BUS, rises to 1'' when the break contact is activated (switching to OFF), and the contents of the key-on memory KOM-1 key-on signal KON goes to the make contact. “1” by the operation of 2 (switching on)
stand up. Therefore, from the time the break contact 1 turns off until the make contact 2 turns on, the fully depressed key is kept from a predetermined first (shallow) depth to a second depth. During the movement to the depth, the output signal TR8 of the AND circuit 15 is continuously 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
に戻るべき値が増加され、こうしてカウントアンプがな
される。
The touch color register 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 when clearing the contents of the busy memory BUM is pulled out from the sound generation allocation circuit 13 and sent to the gate and adder 19.
used as a reset signal. This clear signal CC
The contents of the shift register 18 are cleared to zero as will be described later, corresponding to the channel in which the error occurred. The output of the shift register 18 is returned to its input side via a gate and an adder 19, and a clock pulse from a touch count clock pulse generator 21 is applied to the adder 19 via an AND circuit 20. register 18 for each
The value to be returned to is incremented, thus creating a count amplifier.

シフトレジスタ18は2相のシステムクロックパルスφ
3.φBによって発音割当て回路16内の各チャンネル
時分割り一イミングに同期してシフト制御されるように
なってお9、タッチカウンタ17において各チャンネル
別のタッチカウント動作が時分割で行なわれる。クリア
信号CCが発生したチャンネルではゲート及び加算器1
9でシフトレジスタ18の出力の循環が絶たれ、これに
よp該しジスタ18の内容がゼロにクリアされる。タッ
チカウンタ17で成るチャンネルに関して接点時間差を
カウントする場合、それよシも前に、必らずクリア信号
CCによって当該チャンネルに関する77トレジスタ1
8の内容がゼロにクリアされている。
The shift register 18 receives two-phase system clock pulses φ
3. Each channel in the sound generation allocation circuit 16 is time-divisionally shifted in synchronization with one timing by φB, and the touch counter 17 performs a touch count operation for each channel in a time-division manner. In the channel where the clear signal CC is generated, the gate and adder 1
At 9, the circulation of the output of the shift register 18 is stopped, and the contents of the register 18 are cleared to zero. When counting the contact time difference with respect to a channel consisting of the touch counter 17, the 77 register 1 associated with the channel must be counted by the clear signal CC beforehand.
The contents of 8 have been cleared to zero.

アンド回路15の出力信号TR8によってアンド回路2
0が可能化されるようになっておシ、接点時間差に対応
する時間中だけ発生器21のカウントクロックパルスが
アンド回路20を通り、加算器19に与えられる。従っ
てこの時間中にカウンタ17のカウント値は一定レート
(カウントクロックパルスのレート)でゼロから徐々に
増加し、最終的に上記接点時間差に対応するカウント値
となったとき、カウント動作が停止する。っ1す、信号
TR8が0“′に立下ることによりアンド回路20が不
能化され、カウントクロックパルスがそれ以上与えられ
なくなる。以後はそのカウント値つま9上記接点時間差
すなわち鍵タッチの強さく押下速度)を示すタッチデー
タがシフトレジスタ18で保持される。言うまでもなく
、このタッチカウント動作は、時分割的に発生する各チ
ャンネル別の信号TR8に従って各チャンネル毎に独立
に時分割で行なわれる。尚、オール“1″検出路22は
シフトレジスタ18の出力が全ビットII I TTっ
まシ最大値となったことを検出するものであシ、この検
出がなされたときII I IIを出方し、インバータ
23の出力を“O″′にしてアンド回路20を不能化す
る。これによシ最犬カウント値を越える接点時間差に対
応するタッチデータはすべて最大カウント値に制限され
る。
AND circuit 2 by output signal TR8 of AND circuit 15.
0 is enabled, the count clock pulse of the generator 21 passes through the AND circuit 20 and is applied to the adder 19 only during the time corresponding to the contact time difference. 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. 1. When the signal TR8 falls to 0"', the AND circuit 20 is disabled and no more count clock pulses are applied. From then on, the count value to 9 is determined by the contact time difference, that is, by the force of the key touch. Touch data indicating the speed) is held in the shift register 18. Needless to say, this touch counting operation is performed independently and time-divisionally for each channel according to the signal TR8 for each channel, which is generated time-divisionally. , the all "1" detection path 22 detects that the output of the shift register 18 has reached the maximum value for all bits, and when this detection is made, outputs II I II. , the output of the inverter 23 is set to "O"' 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-sharing manner is given to the musical tone signal generation circuit 14, and the volume, timbre, 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 generating circuit 14 is applied to a sound system 24 for listening.

従来技術の問題点 上述のような従来技術において、鍵タッチの検出分解能
は、接点時間差を示す信号TR8の分解能つtり可能な
最小時間幅に依存し、これは発音割当て回路13の各メ
モリK A M −K F M間での同じ鍵に関するデ
ータ書き換え可能最小時間間隔に依存し、これは鍵盤回
路10における鍵の1走査サイクル期間に依存する。つ
まシ、成る鍵に関するブレーク接点に1のオフが検出さ
れたとき(ビジィ信号BUSの立上シ時)からその鍵の
メーク接点に2のオンを検出するまで(キーオン信号K
OHの立上りまで)には少なくとも1走査サイクル期間
に相当する時間間隔が必要であり、それよりも速い変化
つまシ接点時間差には応答することができない。こうし
て、鍵の1走査サイクル期間の長さによって鍵タツチ検
出分解能が決定される。タッチレスポンスの分解能を高
めるためには鍵走査サイクルはできるだけ短かい方カニ
良い。しかし、上述の従来技術では、鍵走査サイクルの
長さは発音割当て回路16における各チャンネルの時分
割周期に関連し、これは楽音信号発生回路14における
時分割楽音発生周期(サンプリング周期)に関連してい
るので、鍵走査サイクルは楽音発生周期によって制御さ
れ、あまシ短かくすることはできなかった。典型的には
、1鍵分の走査時間(キーデータKD 1 、KD2の
1タイムスロツト)が、発音割当て回路16における時
分割チャンネル時間の1周期に相当し、この1周期間を
チャンネル数Nで分割して各チャンネル毎のタイムスロ
ットが設けられている。発音割当て回路130時分割チ
ャンネル一時間はそのまま楽音信号発生回路140時分
割チャンネル時間に対応している。楽音信号発生回路1
4における1サンプル点分の楽音発生演算速度(この演
算とは単なる計算のみならずメモリ読み出し等も含む)
には自ら限界があり、この限界に応じて1鍵分の走査時
間(従来はこれが楽音の1サンプリング周期に対応して
いる)が規定され、従ってこの1鍵分の走査時間を一般
に鍵数倍した時間長から成る鍵走査1サイクルの長さも
楽音発生演算速度の限界によって規定され、あまり短か
くすることはできなかった。こうして、従来の電子楽器
では、鍵走査1サイクルは例えば3ミリ程度に設定され
ていた。しかし、実際の鍵演奏においてタッチを最高に
効かせる場合などは、接点時間差はそれよりもかなシ短
かい時間、例えば0.5ミリ秒程度、になることが確か
められておシ、従来の電子楽器はこのような鍵タッチに
応答することができなかった。
Problems with the Prior Art In the prior art as described above, the key touch detection resolution depends on the resolution of the signal TR8 indicating the contact time difference and the possible minimum time width. It depends on the minimum time interval during which data can be rewritten regarding the same key between AM and KFM, and this depends on the period of one scanning cycle of the key in the keyboard circuit 10. From the time when OFF of 1 is detected at the break contact for the key (when the busy signal BUS rises) until the ON of 2 is detected at the make contact of the key (key-on signal K
(to the rising edge of OH) requires a time interval corresponding to at least one scan cycle period, and cannot respond to faster changing contact time differences. In this way, the key touch detection resolution is determined by the length of one key scanning cycle period. In order to improve the resolution of touch response, it is best to keep the key scanning cycle as short as possible. However, in the above-mentioned conventional technology, the length of the key scanning cycle is related to the time division cycle of each channel in the sound generation assignment circuit 16, which in turn is related to the time division musical tone generation cycle (sampling cycle) in the musical tone signal generation circuit 14. Therefore, the key scanning cycle was controlled by the tone generation period, and could not be made much shorter. Typically, the scanning time for one key (one time slot of key data KD 1 and KD2) corresponds to one cycle of time-sharing channel time in the sound generation allocation circuit 16, and this one cycle period is divided into the number of channels N. It is divided into time slots for each channel. One hour of the time division channel of the sound generation allocation circuit 130 directly corresponds to the time of the time division channel of the musical tone signal generation circuit 140. Musical tone signal generation circuit 1
Musical sound generation calculation speed for one sample point in 4 (this calculation includes not only simple calculation but also memory read etc.)
has its own limit, and the scanning time for one key (conventionally, this corresponds to one sampling period of a musical tone) is defined according to this limit. Therefore, the scanning time for one key is generally multiplied by the number of keys. The length of one key scanning cycle, which consists of the time length, was also determined by the limit of musical sound generation calculation speed, and could not be made much shorter. 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, compared to the conventional electronic The instrument was unable to respond to such key touches.

また別の問題として、上述のような従来の電子楽器は、
第1の接点の作動(ブレーク接点に1のオフ)にもとづ
き割当てがなされ、この割当てが楽音信号発生回路14
の発音チャンネルに直接関連しているため、次のような
問題があった。すなわち、押鍵ミスや震動によって鍵の
わずかな下降が起きたときに第1の接点が作動し、これ
にもとづき割当てがなされることにより°発音チャンネ
ルが実際には発音しない鍵によって占有されてしまい、
本当の押圧鍵を割当てるべきときに支障をきたすおそれ
があった。
Another problem is that conventional electronic musical instruments such as those mentioned above,
The assignment is made based on the operation of the first contact (1 off at the break contact), and this assignment is made to the musical tone signal generation circuit 14.
Because it is directly related to the pronunciation channel, there were the following problems. 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, resulting in the sound generation channel being occupied by keys that do not actually produce sound. ,
There was a risk that problems would occur 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 above-mentioned drawbacks of the prior art.Firstly, the purpose is to increase the detection resolution of key touches, and secondly, the present invention is aimed at increasing the detection resolution of key touches. The purpose is to prevent meaningless occupation of a musical sound generation channel when malfunction occurs.

発明の概要 これらの目的の達成のために、この発明では、タッチカ
ウント(接点時間差測定)用のチャンネルと楽音発生チ
ャンネルとを区別して考え、各々に対応する割当1手段
を設けることが提案される。
Summary of the Invention In order to achieve these objectives, the present invention proposes to consider the touch count (contact time difference measurement) channel and the musical sound generation channel separately, and to provide one allocation means corresponding to each channel. .

タッチカウント用のチャンネルへの割当てを行なう第1
の割当て回路は、各鍵毎の2つの接点のオン・オフ状態
に対応する鍵情報を鍵走査及び押鍵検出のための回路か
ら受入れて、これらに応じて割当て動作を行なう。この
第1の割当て回路による割当てに従って、タッチ検出手
段では、各チャンネル毎に、そこに割当てられた鍵に関
する2接点間の作動時間差を夫々測定してタッチデータ
を求める。楽音発生チキンネルへの割当てを行なう第2
の割当て回路は、第1の割当て回路で各チャンネルに割
当てられた鍵を楽音発生チャンネルに割当てし直し、か
つ、これに対応してタッチ検出手段で求められたタッチ
データを楽音発生チャンネルに割当てる。
The first step is to assign channels for touch counting.
The assignment circuit receives key information corresponding to the on/off state of two contacts for each key from the key scanning and key press detection circuit, and performs an assignment operation in accordance with the key information. According to the assignment by the first assignment circuit, the touch detection means measures the operating time difference between two contacts related to the key assigned to each channel to obtain touch data. The second section performs the assignment to the musical sound generation channel.
The assignment circuit reallocates the keys assigned to each channel by the first assignment circuit to the musical tone generation channels, and correspondingly assigns the touch data obtained by the touch detection means to the musical tone generation channels.

実施例 以下添付図面を参照してこの発明の一実施例を詳細に説
明しよう。
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.KD
2が与えられた第1の割当て回路25内に示されたキー
アドレスメモリKAM、ビジィメモリBUM1制御回路
25aの働きも第1図のKAM、BUM、13aにt’
i IY対応しておジ、既に述べたこれらの説明を一部
援用する。
In FIG. 2, the parts indicated by the same reference numerals as in FIG. 1 are the same, and the explanation thereof will be omitted below, and the explanation already given with reference to FIG. 1 will be used. The output of the key scanning counter 11 and the output key data KD1 of the key press detection circuit 12. KD
The functions of the key address memory KAM and busy memory BUM1 control circuit 25a shown in the first allocation circuit 25 to which 2 is given are also t' for KAM, BUM, 13a in FIG.
In response to IY, some of the explanations 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 key pressing detection circuit 12 and the key scanning counter 11, and this channel is used for touch detection. 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. The second allocation circuit 26 responds to the allocation result of the first allocation circuit 25, and in response to the allocation result of the first allocation circuit 25, each channel (
The key assigned to the same channel of the touch counter 17) is reallocated to a predetermined number (N) of musical tone generation channels, and the touch data TD obtained by the touch counter 17 is Assign to musical sound generation channel.

タッチカウンタ17のシフトレジスタ18、第1の割当
て回路25内のキーアドレスメモIJ K A M。
Shift register 18 of touch counter 17, key address memo IJKAM in first allocation circuit 25.

ビジィメモリB ’U M、キーオンイベントメモリK
OEM、キーオフイベントメモリKFEMは、第1の割
当て回路25で処理するチャンネル数(M)と同じステ
ージ数(M)を夫々有する。
Busy memory B'U M, key-on event memory K
The OEM and key-off event memories KFEM each have the same number of stages (M) as the number of channels (M) processed by the first allocation circuit 25.

まず、第1の割当て回路25の割当て動作について説明
すると、前述と同様に、第1のキーデータKD1が1″
に立上ったときっt、bブレーク接点に1がオフ[7た
とき、それに対応する鍵の割当て処理を行ない、割当て
るべきことが決定したチャンネルに対応してビジィメモ
リB U M K ” 1 ”をセットすると共にキー
アドレスメモリKAMに該キーデータKD1の走査タイ
ミングに対応するキーコードを記憶する。ただし、割当
てチャンネル決定にあたっては、トランケート処理等複
雑な処理は全く不要であり、同一キーコードが未だKA
Mに記憶されていないことを条件にBUMによって示さ
れた1つの空白チャンネルに対して上記決定を行なえば
よい。メモIJBUM、KAMに記    憶されたデ
ータのクリアは、それに対応する鍵が離されたときり!
、りブレーク接点に1がオンに復帰したとき(KDlが
OI+になったとき)行なえばよい。
First, the allocation operation of the first allocation circuit 25 will be explained. As described above, the first key data KD1 is 1''.
When 1 is turned off at the break contact b, the corresponding key is assigned, and the busy memory BU MK ``1'' corresponds to the channel to which it has been determined that the key should be assigned. is set, and a key code corresponding to the scanning timing of the key data KD1 is stored in the key address memory KAM. However, when determining the assigned channel, complicated processing such as truncation processing is not necessary at all, and the same key code is still available.
The above determination may be made for one blank channel indicated by BUM, provided that it is not stored in M. The data stored in the memo IJBUM and KAM will be cleared when the corresponding key is released!
This can be done when 1 returns to the on state at the break contact (when KDl becomes OI+).

キーオンイベントメモリKOEMは第2の接点つまりメ
ーク接点に2がオンしたことを記憶するためのものであ
る。成る鍵のメーク接点に2がオンしたときその鍵が割
当てられたチャンネルのタイミングで信号11 、71
が制御回路25aから与えられ、オア回路27を介して
シフトレジスタ28に記憶される。シフトレジスタ28
の出力はアンド回路2?、オア回路27を介して循環保
持される。キーオンイベントパルス発生回路30H1i
2の接点に2のオフからオンへの切換りに応答して第2
の割当て回路26にキーオンイベントパルスKOEVN
を与えるためのものである。キーオンイベントパルスK
OEVNに対応してキーオンイベントメモIJ K O
E Mにクリア信号が与えられ、これによシアンド回路
29を不能化する。従って、キーオンイベントパルスK
OEVNが出されたとき、それに対応するキーオンイベ
ントメモリKOEMの記憶がクリアされる。R−Sフリ
ップフロップ31は第2の割当て回路26がキーオンイ
ベント処理中のとき°0″′にリセットされ、それ以外
のとき°′1″にセットされる。このセット出力がアン
ド回路62に与えられ、第2の割当て回路26がキーオ
ンイベント処理中でないことを条件に、キーオンイベン
トメモリKOEMの出力゛′1″を選択する。このアン
ド回路62の出力゛′1″がキーオンイベントパルスK
OEVNとなる。この出力TI 、 11は遅延フリッ
プ70ツブ63で1チヤンネルタイミングだけ遅延され
、R−Sフリップフロップ61のリセット入力に与えら
れる。こうして、1つのキーオンイベントパルスKOE
VNが発生すると、フリップフロップ61がリセットさ
れ、アンド回路32が不能化されて、次のキーオンイベ
ントパルスの発生が抑止される。第2の割当て回路26
においてキーオンイベントパルスKOEVNに応じた割
当て処理が終了すると、キーオンイベント終了信号EN
D iが出力され、キーオフイベントパルス発生回路6
0内のフリップフロップ61をセントする。こうして、
アンド回路62が可能化され、次のキーオンイベントパ
ルスの発生が可能となる。
The key-on event memory KOEM is for storing that the second contact, that is, the make contact, is turned on. When 2 is turned on at the make contact of a key, signals 11 and 71 are generated at the timing of the channel to which that key is assigned.
is given from the control circuit 25a and stored in the shift register 28 via the OR circuit 27. shift register 28
Is the output of AND circuit 2? , are held in circulation via the OR circuit 27. Key-on event pulse generation circuit 30H1i
In response to the switching from off to on of contact 2, the second
The key-on event pulse KOEVN is applied to the assignment circuit 26 of
It is intended to give Key-on event pulse K
Key-on event memo IJ K O corresponding to OEVN
A clear signal is applied to EM, thereby disabling the cyanand circuit 29. Therefore, key-on event pulse K
When OEVN is issued, the corresponding key-on event memory KOEM 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 given to the AND circuit 62, and on the condition that the second allocation circuit 26 is not processing a key-on event, the output "'1" of the key-on event memory KOEM is selected.The output "'1" of the AND circuit 62 is selected. 1″ is the key-on event pulse K
Becomes OEVN. This output TI, 11 is delayed by one channel timing by the delay flip 70 tube 63 and is applied to the reset input of the R-S flip-flop 61. Thus, one key-on event pulse KOE
When VN occurs, flip-flop 61 is reset, AND circuit 32 is disabled, and generation of the next key-on event pulse is suppressed. Second allocation circuit 26
When the assignment processing according to the key-on event pulse KOEVN is completed, the key-on event end signal EN
D i is output, and the key-off event pulse generation circuit 6
Cent the flip-flop 61 in 0. thus,
AND circuit 62 is enabled and the next key-on event pulse can be generated.

キーオフイベントメモリKFEMは鍵が離されたことを
記憶するためのものであり、メーク接点に2のオンから
オフへの切換りまたはブレーク接点に1のオフからオン
への切換シに応答して対応チャンネルに“1″を記憶す
る。このメモリKFEMは上述のメモIJ K OE 
Mと同様に構成されている。キーオフイベントパルス発
生回路34は、キーオフイベントメモリKFEMの出力
にもとづきキーオフイベントパルスKFEVNを発生ス
るもので1、上述のキーオンイベントパルス発生回路3
0と同様に構成されている。第2の割当て回路26にお
いてキーオフイベントパルスに、FEVNに応じた処理
が終了すると、キーオフイベント終了信号E N D 
2が出力され、キーオフイベントパルス発生[[34内
のR−Sフリップフロップ(図示せず)をセットする。
The key-off event memory KFEM is for remembering that the key has been released, and responds to a 2 on-to-off transition on the make contact or a 1 off-to-on transition on the break contact. Store “1” in the channel. This memory KFEM is the memory IJ KOE mentioned above.
It is configured similarly to M. The 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 1 and the key-on event pulse generation circuit 3 described above.
It is configured in the same way as 0. When the second allocation circuit 26 finishes processing the key-off event pulse according to FEVN, a key-off event end signal E N D is generated.
2 is output, and a key-off event pulse generation [[ sets an R-S flip-flop (not shown) in 34.

また、キーオフイベントメモIJ K F E Mは前
述と同様にキーオフイベントパルスKFEVNによって
クリアされる。
Further, the key-off event memo IJKFEM is cleared by the key-off event pulse KFEVN as described above.

キーオンイベントメモリKOEMの出力がインバータ1
6を介してアンド回路15に与えられる。
The output of key-on event memory KOEM is inverter 1
6 to the AND circuit 15.

アンド回路15の他の入力にはビジィメモリBUMの出
力が与えられる。前述と同様に、個々のチャンネルタイ
ミングにおいて、第1の接点(ブレーク接点)K1のオ
フから第2の接点(メーク接点)K2のオンまでの間、
アンド回路15の出力TR8が°′1″となる。従って
、第1図と同様に、タッチカウンタ17で2接点間の作
動時間差を計数することが可能である。
The other input of the AND circuit 15 is given the output of the busy memory BUM. As described above, in each channel timing, from the time when the first contact (break contact) K1 turns off to the time when the second contact (make contact) K2 turns on,
The output TR8 of the AND circuit 15 becomes °'1''. Therefore, as in FIG. 1, the touch counter 17 can count the operating time difference between the two contacts.

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

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

第2の割当て回路26では、N個の楽音発生チャンネル
に対応してキーコードメモリKCM、キーオンメモリK
ONM、ビジィメモリBUSM。
In the second allocation circuit 26, a key code memory KCM and a key-on memory K correspond to N musical tone generation channels.
ONM, busy memory BUSM.

タッチデータメモ!J T D Mその他を含んでおシ
、第1の割当て回路25から与えられたデータにもとづ
き再割当て処理を行なうために制御回路26aが動作し
、この制御回路26aによって各メモリの記憶が制御さ
れる。そして、クロックパルスφA1φBによって設定
された各楽音発生チャンネル時ンネルタイミングに従っ
て、各チャンネルに割当られた鍵のキーコードKC’、
キーオン信号KoN′、タッチデータ TD’が各メモ
リKCM−TDMから読み出され、楽音信号発生回路1
4に与えられる。
Touch data memo! The control circuit 26a operates to perform reallocation processing based on the data given from the first allocation circuit 25, and the storage of each memory is controlled by the control circuit 26a. Ru. Then, according to the channel timing of each musical tone generation channel set by the clock pulse φA1φB, the key code KC' of the key assigned to each channel,
The key-on signal KoN' and the touch data TD' are read out from each memory KCM-TDM, and the musical tone signal generation circuit 1
given to 4.

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

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

このRAMのメモリマツプの一例が第5図に示されてい
る。CHNはキーオンイベント処理用のチャンネル番号
レジスタであり、Kはキーオフイベント処理用のチャン
ネル番号レジスタである。
An example of the memory map of this RAM is shown in FIG. CHN is a channel number register for key-on event processing, and K is a channel number register for key-off event processing.

KCM(1)〜KCM (12)は各楽音発生チャンネ
ルに対応するキーコードレジスタであり、かっこ内の数
字はチャンネル番号を示し、この例ではチャンネル数を
N=12としている。KONM(1)〜KONM(1,
2)はキーオンレジスタ、BUSM(1)〜BUSM(
12>はビジィレジスタ、TDM(1)〜TDM(12
)はタッチデータレジスタ、であり、夫々各楽音発生チ
ャンネルに対応している。
KCM(1) to KCM(12) are key code registers corresponding to each tone generation channel, and the numbers in parentheses indicate channel numbers, and in this example, the number of channels is N=12. KONM(1)~KONM(1,
2) are key-on registers, BUSM(1) to BUSM(
12> are busy registers, TDM(1) to TDM(12
) are touch data registers, each corresponding to each musical tone generation channel.

第3図に戻ると、ブロック36では、チャンネル番号レ
ジスタCHNによって指定されたチャンネルに対応する
ビジィレジスタEUSMCCHN)の内容を引き出し、
それが“O″であるか否かを調へる。Noならばブロッ
ク67でCHNのチャンネル番号を1増加し、ブロック
38ではこのループをN(すなわち12)回繰返したか
どうかを調べる。Noならば、ブロック66に戻シ、1
増加したチャンネル番号に関して再びBUSM(CHN
)=0.?を調べる。CHNによって指定されたチャン
ネルが空白であれば、ブロックろ6がYESとなり、ブ
ロック69に進み、CHNによって指定されたチャンネ
ルに対応するキーコードレジスタKCM(CHN)に入
力キーコードレジスタKCODEのキーコードKCを記
憶し、対応するキーオンレジスタKONM(CHN)及
びビジィレジスタBUSM(CHN)に夫々II I 
I+を記憶し、対応するタッチデータレジスタTDM(
CHN)に入力タッチデータレジスタTDATAのタッ
チデータTDを記憶する。次のブロック40ではCHN
のチャンネル番号を1増加する。次のブロック41でキ
ーオンイベント終了信号END1を出力した後、メイン
プログラムにリターンする。
Returning to FIG. 3, block 36 retrieves the contents of the busy register (EUSMCCHN) corresponding to the channel specified by the channel number register CHN;
Check whether it is "O" or not. If No, the channel number of CHN is incremented by 1 in block 67, and it is checked in block 38 whether this loop has been repeated N (that is, 12) times. If no, return to block 66, 1
BUSM(CHN
)=0. ? Find out. If the channel specified by CHN is blank, block 6 becomes YES, and the process proceeds to block 69, where the key code KC of the key code register KCODE is input to the key code register KCM (CHN) corresponding to the channel specified by CHN. is stored in the corresponding key-on register KONM (CHN) and busy register BUSM (CHN), respectively.
I+ and the corresponding touch data register TDM (
Touch data TD of input touch data register TDATA is stored in CHN). In the next block 40, CHN
Increase the channel number by 1. After outputting the key-on event end signal END1 in the next block 41, the process returns to the main program.

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

キーオンイベントパルスKFEVNが与、tられたとき
は第4図に示すようなキーオフイベントルーチンを行な
う。ブロック44では、キーオンイベントパルスKFE
VNと同時に第1の割当て回路25から与えられたキー
コードKCを入力キーコードレジスタKCODEに記憶
する。次にチャンネル番号レジスタKに11」をセット
する(ブロック45)。ブロック46では、レジスタK
によって指定されたチャンネル番号に対応するキーコー
ドレジスタKCM(K)から記憶キーコードを引き出し
、それと入力キーコードレジスタKCODEのキーコー
ドとを比較し、両者が一致するかを調べる。Noならば
、レジスタにのチャンネル番号を1増加しくブロック4
7)、次にに=12(つまりN)であるかを調べる(ブ
ロック48)。
When the key-on event pulse KFEVN is applied, a key-off event routine as shown in FIG. 4 is performed. In block 44, the key-on event pulse KFE
At the same time as VN, the key code KC given from the first allocation circuit 25 is stored in the input key code register KCODE. Next, the channel number register K is set to "11" (block 45). In block 46, register K
The memory key code is extracted from the key code register KCM(K) corresponding to the channel number specified by and is compared with the key code of the input key code register KCODE to see if they match. If no, increment the channel number in the register by 1 and block 4.
7), then check whether =12 (that is, N) (block 48).

ブロック48がNoならばブロック46に戻る。If block 48 is No, the process returns to block 46.

レジスタにの値が離鍵されたキーコードが割当てられて
いるチャンネルを示すとき、ブロック46がYESとな
シ、ブロック49で、それに対応するキーオンレジスタ
KONM(K)の内容を+ OH″にクリアする。次の
ブロック50ではキーオフイベント終了信号END2を
出力する。一般に、ブロック48がYESとなることは
起らないが、これがYESのときはブロック51でキー
オフイベント終了信号END2を出力する。
When the value in the register indicates the channel to which the released key code is assigned, block 46 is YES, and block 49 clears the contents of the corresponding key-on register KONM(K) to +OH''. In the next block 50, a key-off event end signal END2 is output.Generally, YES does not occur in block 48, but when this is YES, a key-off event end signal END2 is output in block 51.

楽音信号発生回路14からディケイ終了信号DFが与え
られたときはディケイ終了ルーチンを実行する。このデ
ィケイ終了ルーチンは特に図示しないが、第4図のキー
オフイベントルーチンに類似した手順で実行される。つ
まり、ディケイ終了信号DFが与えられたチャンネルを
探し出し、このチャンネルに対応するビジィレジスタB
USM(1)〜(12)の内容を0′″にクリアする。
When a decay end signal DF is applied from the musical tone signal generating circuit 14, a decay end routine is executed. Although this decay end routine is not particularly shown, it is executed in a procedure similar to the key-off event routine of FIG. 4. In other words, the channel to which the decay end signal DF is given is searched, and the busy register B corresponding to this channel is searched.
Clear the contents of USM (1) to (12) to 0''.

RAMの各レジスタKCM(1)〜(12)、KONM
(1)〜(12)、BUSM(1)〜(12)、TDM
 (1)〜(12)の内容が出力メモリKCM、KON
M、BUSM、TDMに転送され、クロックパルスφA
、φBに従って時分割的に出力される。
RAM registers KCM (1) to (12), KONM
(1) to (12), BUSM (1) to (12), TDM
The contents of (1) to (12) are the output memories KCM and KON.
Clock pulse φA is transferred to M, BUSM, and TDM.
, φB in a time-divisional manner.

尚、各鍵に対応するキースイッチは、上述のようなブレ
ーク接点とメーク接点を持つものに限らず、例えば特開
昭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 other words, it is sufficient that each key has two contacts that operate at different depression depths.

発明の効果 以上の通りこの発明によれば、鍵タツチ検出用の第1の
割当て回路は、発音チャンネルの演算時間による制限を
受けないので、高速で動作させることができ、これによ
シ鍵タッチの検出分解能を高めることができる。また、
発音割当て用の第2の割当て回路は、第1の割当て回路
で鍵押圧が確実に確かめられたとき(つまり第2の接点
の作動にもとづきキーオンイベントパルスが発生したと
き)割当て動作を開始するので、第1の接点だけが誤動
作した場合は楽音発生チャンネルに対する割当て動作が
行なわれず、従って、楽音発生チャンネルの無意味な占
有は起らない。
Effects of the Invention As described above, according to the present invention, the first assignment circuit for key touch detection is not limited by the calculation time of the sound generation channel, so it can operate at high speed. The detection resolution can be increased. Also,
The second assignment circuit for assigning sound generation starts the assignment operation when the first assignment circuit reliably confirms that a key is pressed (that is, when a key-on event pulse is generated based on the actuation of the second contact). , if only the first contact malfunctions, the allocation operation to the musical tone generation channel is not performed, and therefore, meaningless occupation of the musical tone generation channel does not occur.

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

第1図は各チャンネル毎に鍵タツチカウント動作を行な
う複音電子楽器の従来技術を示すブロック図、第2図は
この発明に係る電子楽器の一実施例を示すブロック図、
第3図は第2図の第2の割当て回路で実行されるキーオ
ンイベントルーチンの一例を示すフローチャート、第4
図は同第2の割当て回路で実行されるキーオフイベント
ルーチンの一例を示すフローチャート、第5図は同第2
の割当て回路として用いたマイクロコンビーータのRA
Mのメモリマツプの一例を示す図、である。 10 鍵盤回路、KS  キースイッチ、K1ブレーク
接点(第1の接点)、K2 メーク接点(第2の接点)
、11・・・鍵走査カウンタ、12・・押鍵検出回路、
17・・タッチカウンタ、25・・・第1の割当て回路
、26・・・第2の割当て回路、RAM・キーアドレス
メモリ、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, and FIG. 2 is a block diagram showing an embodiment of an electronic musical instrument according to the present invention.
FIG. 3 is a flowchart showing an example of a key-on event routine executed in the second allocation circuit of FIG.
The figure is a flowchart showing an example of the key-off event routine executed in the second allocation circuit, and FIG.
The RA of the microcombeater used as the allocation circuit for
FIG. 3 is a diagram showing an example of a memory map of M. 10 Keyboard circuit, KS key switch, K1 break contact (first contact), K2 make contact (second contact)
, 11...key scanning counter, 12...key press detection circuit,
17...Touch counter, 25...First assignment circuit, 26...Second assignment circuit, RAM/key address memory, BUM/busy memory, KOEM key-on event memory, KFEM...key-off event memory. Patent applicant Yoshihito Iizuka, agent of Nippon Musical Instruments Manufacturing Co., Ltd.

Claims (1)

【特許請求の範囲】 1、異なる鍵押圧深さで作動する第1の接点と第2の接
点とを各鍵毎に具え、両接点間の作動時間差を測定する
ことにより各鍵毎のタッチデータを得る電子楽器におい
て、各鍵毎の前記各接点の出力に対応する鍵情報に応じ
て所定数のチャンネルのいずれかに押圧鍵を割当てる第
1の割当て手段と、この第1の割当て手段による割当て
に従って、各チャンネル毎に、そこに割当てられた鍵に
関する前記両接点間の作動時間差を測定して前記タッチ
データを求めるタッチ検出手段と、前記第1の割当て手
段で前記各チャンネルに割当てられた鍵を所定数の楽音
発生チャンネルに対応して割当てし直し、かつ、これに
対応して前記タッチ検出手段で求められた前記タッチデ
ータを前記楽音発生チャンネルに割当てる第2の割当て
手段と、前記第2の割当て手段による割当てに従って前
記楽音発生チャンネルで楽音信号を発生する楽音発生手
段とを具えることを特徴とする電子楽器。 2、前記第1の割当て手段が、前記割当てに従って、各
チャンネル毎に、そこに割当てられた鍵に関する前記第
1の接点の作動に応答する第1の鍵信号と前記第2の接
点の作動に応答する第2の鍵信号とを夫々出力し、前記
タッチ検出手段が、前記第1の鍵信号と第2の鍵信号の
発生開始時間差を前記作動時間差として測定するもので
あり、前記第2の割当て手段が、前記第1の割当て手段
から与えられた前記第2の鍵信号に応答して前記割当て
し直しを行なうものである特許請求の範囲第1項記載の
電子楽器。 6、前記第1の割当て手段が前記第2の割当て手段に比
べて高速で割当て処理を行なうものである特許請求の範
囲第2項記載の電子楽器。 4、前記第1の割当て手段が、各チャンネルの前記第2
の鍵信号を夫々記憶する記憶手段と、記憶した第2の鍵
信号を1つ選択してそのチャンネルに対応してイベント
パルスを供給する供給手段とを含み、前記第2の割当て
手段が、前記イベントパルスに応答して割当て動作を行
ない、このイベントパルスに対応する鍵を割当てるべき
楽音発生チャンネルが決定されたとき前記供給手段にイ
ベント終了信号を与えて該供給手段で別の第2の鍵信号
を選択することを可能にする手段を含むものである特許
請求の範囲第6項記載の電子楽器。
[Claims] 1. Touch data for each key is obtained by providing a first contact point and a second contact point for each key, which operate at different key pressing depths, and measuring the difference in operating time between both contacts. In an electronic musical instrument that obtains a Accordingly, for each channel, a touch detection means for determining the touch data by measuring the difference in actuation time between the two contacts with respect to the key assigned thereto, and a key assigned to each channel by the first assignment means. a second allocating means for allocating the touch data obtained by the touch detecting means to a predetermined number of musical sound generating channels, and correspondingly allocating the touch data obtained by the touch detecting means to the musical sound generating channels; and musical tone generating means for generating a musical tone signal in the musical tone generating channel according to the assignment by the assigning means. 2. The first assigning means, in accordance with the assignment, for each channel, transmitting a first key signal responsive to actuation of the first contact with respect to the key assigned thereto and actuation of the second contact. and the touch detection means measures a generation start time difference between the first key signal and the second key signal as the activation time difference, and 2. The electronic musical instrument according to claim 1, wherein the allocating means performs the reallocation in response to the second key signal given from the first allocating means. 6. The electronic musical instrument according to claim 2, wherein the first allocation means performs allocation processing at a higher speed than the second allocation means. 4. The first allocating means may assign the second allocating means to each channel.
and supply means for selecting one of the stored second key signals and supplying an event pulse corresponding to that channel; An assignment operation is performed in response to an event pulse, and when a tone generation channel to which a key corresponding to this event pulse is to be assigned is determined, an event end signal is given to the supply means, and the supply means generates another second key signal. 7. The electronic musical instrument according to claim 6, further comprising means for making it possible to select.
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 true JPS59126596A (en) 1984-07-21
JPS648356B2 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61133991A (en) * 1984-12-03 1986-06-21 株式会社河合楽器製作所 Key allotter for touch key response electronic musical instrument
JPS61198298A (en) * 1985-02-28 1986-09-02 ヤマハ株式会社 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

Families Citing this family (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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5120815A (en) * 1974-08-12 1976-02-19 Nippon Musical Instruments Mfg
JPS5246088A (en) * 1975-10-09 1977-04-12 Dainippon Ink & Chem Inc Preparation of novel addition products
JPS54134414A (en) * 1978-04-10 1979-10-18 Nippon Gakki Seizo Kk Touch response device for electronic instrument

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5120815A (en) * 1974-08-12 1976-02-19 Nippon Musical Instruments Mfg
JPS5246088A (en) * 1975-10-09 1977-04-12 Dainippon Ink & Chem Inc Preparation of novel addition products
JPS54134414A (en) * 1978-04-10 1979-10-18 Nippon Gakki Seizo Kk Touch response device for electronic instrument

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61133991A (en) * 1984-12-03 1986-06-21 株式会社河合楽器製作所 Key allotter for touch key response electronic musical instrument
JPS61198298A (en) * 1985-02-28 1986-09-02 ヤマハ株式会社 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

Also Published As

Publication number Publication date
JPS648356B2 (en) 1989-02-13

Similar Documents

Publication Publication Date Title
US3882751A (en) Electronic musical instrument employing waveshape memories
GB1420085A (en) Electronic musical instrument
US4114497A (en) Electronic musical instrument having a coupler effect
GB2047999A (en) Digital waveform generating apparatus
JPS59105694A (en) Electronic musical instrument
GB1580690A (en) Digital generator for musical notes
JPS59126596A (en) Electronic musical instrument
US5321198A (en) Tone signal generator utilizing ancillary memories for electronic musical instrument
US4103581A (en) Constant speed portamento
JPS6114518B2 (en)
JP2548113B2 (en) Electronic musical instrument
US3969969A (en) Musical instrument with means for scanning keys
US4411185A (en) Touch responsive keyboard electronic musical instrument
US4337681A (en) Polyphonic sliding portamento with independent ADSR modulation
US4338844A (en) Tone source circuit for electronic musical instruments
US5198605A (en) Key touch data generation circuit of an electronic musical instrument
US3969968A (en) Musical instrument with means for scanning keys
JP3024191B2 (en) Music signal generator
US3968716A (en) Musical instrument with means for scanning keys
JP2621373B2 (en) Modulation effect device
US3968717A (en) Musical instrument with means for scanning keys
JPH0680479B2 (en) Touch detection device for electronic musical instruments
JPS603892U (en) electronic musical instruments
JP2522651B2 (en) Electronic musical instrument
JPS644155Y2 (en)