JPS6027039B2 - key assigner - Google Patents
key assignerInfo
- Publication number
- JPS6027039B2 JPS6027039B2 JP51047557A JP4755776A JPS6027039B2 JP S6027039 B2 JPS6027039 B2 JP S6027039B2 JP 51047557 A JP51047557 A JP 51047557A JP 4755776 A JP4755776 A JP 4755776A JP S6027039 B2 JPS6027039 B2 JP S6027039B2
- Authority
- JP
- Japan
- Prior art keywords
- key
- circuit
- key code
- output
- master clock
- 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
Links
Landscapes
- Electrophonic Musical Instruments (AREA)
Description
【発明の詳細な説明】
本発明は電子楽器に使用するキーアサィナに関するもの
である。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a key assigner used in an electronic musical instrument.
従来のキーアサイナを有する電子オルガン等において、
押された鍵を検出する方法として、各キースィツチを時
分割に走査することによって押された鍵の情報をDTM
(時分割多量)信号、またPCM(パルス符号変調)信
号としてキーコード記憶袋直に送る時分割多重方式が一
般に用いられていた。In electronic organs etc. with conventional key assigners,
As a method of detecting a pressed key, each key switch is scanned in a time-sharing manner, and the information on the pressed key is collected using DTM.
Generally, a time division multiplexing method was used in which a key code storage bag is directly sent as a time division multiplex (time division multiplex) signal or a PCM (pulse code modulation) signal.
しかしこの方式において、キースィツチの押鍵と鍵鍵の
状態を時分割的に調べるため押されていないキースイッ
チの情報まで送る結果となり、必要な情報を送るために
は1走査区間を必要とし、押鍵と滋鍵に対する即答性を
高めるためには、非常に高い周波数のたとえば数百KH
Zのクロツクが必要であった。また押鍵、隣鍵時点と1
走査区間との関係により応答時間がずれること、たとえ
ば押鍵されたキースィツチが走査直後に離鍵されると応
答時間が1走査区間程度ずれることとなる。本発明の目
的はこれらの欠点を除去するものであり、押鍵、滋鍵に
対する即答性を高めキーコードデータを出力するに必要
なクロツク周波数を低くしたキーアサイナを提供するこ
とである。However, in this method, information on keyswitches that are not pressed is also sent because the state of keyswitch presses and keys is checked in a time-sharing manner, and one scanning period is required to send the necessary information. In order to improve the quick response to the key and key, it is necessary to use a very high frequency, for example several hundred KH.
A Z clock was required. Also, when the key is pressed, the time of the next key and 1
The response time may deviate depending on the relationship with the scanning interval. For example, if a key switch that has been pressed is released immediately after scanning, the response time will deviate by about one scanning interval. SUMMARY OF THE INVENTION An object of the present invention is to eliminate these drawbacks, and to provide a key assigner that improves immediate response to key presses and key presses and lowers the clock frequency required to output key code data.
前記目的を達成するため、本発明のキーアサイナは各キ
ースイツチの押鍵隣鍵の状態変化を同時に検出するたの
各キースィツチに並列にマスタクロックを供給するマス
タクロック発生器、前記マスタクロックの前半でキース
ィッチの状態を記憶する第1の記憶回路、該第1の記憶
回路の出力を前記マスタクロツクの後半で記憶する第2
の記憶回路、該第1、第2の記憶回路出力により前記各
キースィッチの押鍵鱗鍵の状態変化を検出する変イq険
出回路、該変イq険出回路の出力により前記キースィツ
チに対応したキーコードを発生する手段、前記マスタク
ロックと前記キーコードよりラッチパルスを出力する手
段、および前誌マスタクロツクと前記変イ○庚出回路の
出力により第2の記憶回路をリセットして出力発生を完
了する手段より成るキーコード発生回路を複数のキース
イツチに対応してそれぞれ設けたキーコード発生回磯群
、該キーコード発生回鱗群における前記変イリ簾出回路
出力で所定の優先順位に従い、高優先度のキーコード発
生回路から順次マスタクロックによりキーコード発生を
行ない、低優先度の変イq険出回路出力を一時禁止し、
キーコード発生を待機させる手段、およびキースイッチ
の隣鍵と他のキースィツチの押鍵の同時操作の場合押鍵
によるキーコード発生を禁止し磯鍵を優先するための第
1の制御回路を具えたことを特徴とするものである。す
なわち本発明はキースィッチの押鍵と離鍵の状態の変化
時点でそのキーコードを送るものであり、全キースィッ
チの状態を同時に調べるクロツクと、その間のキーコー
ドデータを送る時間のみで十分であり、極めて即答性の
高いものとなる。また同時にキーの状態変化が検出され
た場合には離鍵によるキーコード出力を優先し、さらに
キーコード出力に対しては定められた優先順位たとえば
高音優先に従って出力されるものである。以下本発明を
実施例につき詳述する。第1図において、各キースィッ
チSw,,Sw2・・・Sの,・・・Swnにマスタク
ロツクを並列に供給するマスタクロック発生器1が設け
られ、これらのキーの状態が同時に検出される。In order to achieve the above object, the key assigner of the present invention includes a master clock generator that supplies a master clock to each key switch in parallel in order to simultaneously detect a change in the state of the key next to the pressed key of each key switch; a first memory circuit that stores the state of the switch; a second memory circuit that stores the output of the first memory circuit in the second half of the master clock;
a memory circuit for detecting changes in the state of keys pressed and pressed in each key switch by the outputs of the first and second memory circuits; means for generating a corresponding key code, means for outputting a latch pulse from the master clock and the key code, and a second memory circuit reset by the output of the master clock and the output circuit to generate an output. a key code generating circuit group comprising key code generating circuits each provided corresponding to a plurality of key switches, and according to a predetermined priority order with the output of the variable screen output circuit in the key code generating circuit group, The key code is generated sequentially from the high priority key code generation circuit using the master clock, and the output of the low priority variable output circuit is temporarily prohibited.
A means for waiting for the generation of a key code, and a first control circuit for prohibiting the generation of the key code by the pressed key and giving priority to the Iso key when the key next to the key switch and the key of another key switch are pressed at the same time. It is characterized by this. In other words, the present invention sends the key code at the time of the change in the state of the key switch being pressed and released, and only requires a clock to check the state of all the key switches at the same time and the time to send the key code data during that time. Yes, the answer is extremely quick. If a change in the state of a key is detected at the same time, priority is given to key code output due to key release, and the key code output is output in accordance with a predetermined priority order, for example, giving priority to treble tones. The present invention will be described in detail below with reference to examples. In FIG. 1, a master clock generator 1 is provided which supplies master clocks in parallel to each of the key switches Sw, Sw2, . . . , S, .
マスタクロックの周波数は、最大1咳建が同時に押され
た場合、キーコード記憶回路に発生された全てのキーコ
ードが書き込まれるまでの時間を最大1′200〔秒〕
とするならば狐HZ以上であれば十分である。キーコー
ド発生回路群は破線で囲まれた代表的に示されるキーコ
ード発生回路2iがキースィッチ数n段設けられる。The frequency of the master clock is 1'200 seconds at the maximum when all key codes generated in the key code storage circuit are written when one key is pressed at the same time.
If so, it is sufficient if it is higher than the fox HZ. The key code generating circuit group includes key code generating circuits 2i, which are representatively shown surrounded by broken lines, and are provided in n stages of key switches.
これらの出力は全てワイアードオア(OR)とされてい
る。いまキーコード発生回路2iにおいて、キースィッ
チ(SWi)21が閉じられると、フリツブフロツプ(
FFI)22はマスタクロツク発生器1の出力Qによっ
てセットされQ端子から“1”を出力する。フリツプフ
ロツプ(FFI)22はDタイプフリツプフロツプを使
用する。AND1にはフリツプフロツプ(FFI)22
のQ出力“1”とフリツプフロツプ(FF2)23のQ
出力“1”が入力され、ANDIは“1”を出力する。
この時他のキーコード発生回路において、離鍵状態でな
ければ他の同様のAND3は“0”を出力し、相互にダ
ィオードDIを介して連結された線(1,)24は“0
”を出力する。AND2にはBNDIと線(1,)24
の反転出力“1”が入力され“1”を出力する。AND
2出力はOR1に入力し、ORIは“1”を出力する。
この時同時にキーコード発生回路2jより上の同回路2
p(2,≦2p<2i)が滋鍵あるし・は押鍵状態でな
ければ相互にィンバータを介してAND4にそれぞれ入
力するように接続された線(12)25には“0”が入
力され、従って、“1”をAND4に入力する。AND
4にはORIと線(12)25の出力“1”が入力され
た結果“1”を出力する。AND4出力はOR2に入力
し、OR2は“1”を出力する。これによってキーコー
ド発生回路2iより下の同回路2i十・〜2nでのキー
コード発生を禁止待機させる。さらにAND4の出力は
ダイオードマトリックス30に入力したとえばダイオー
ドD2〜05を通してキーコードデータを出力する。次
にマスタクロツク発生器1よりマスタクロツクQを単安
定マルチパイプレー夕(MMI)11に与え、遅延タイ
ミングをとったクロックが単安定マルチパイプレータ(
MMI)11より出力される。AND5には単安定マル
チパイプレータ(MMI)11の出力QとAND4出力
“1”が入力し、AND5はキーコードデータのラツチ
パルスを出力する。さらにマスタクロツク発生器1のQ
出力はAND7を通してAND6に入力される。AND
6にはBND4の出力“1”が入力されており、マスタ
クロツクQ出力がフリツプフロツプ(FF2)23のT
端子に入力される。フリツプフロツブ(FF2)23は
JKフリツプフロツプを使用し、いまJ端子にはフリツ
プフロツプ(FFI)22の出力Qの“1”、K端子に
はフリツプフロツプ(FFI)22の出力Qの“0”が
入力され、フリツプフロツプ(FF2)23はマスタク
。ツクQ出力の立ち上りでセットされる。これによりフ
リップフロツプ(FF2)23のQ出力は“0”となり
AND1,AND2,AND3,OR1,AND4,A
ND5,OR2,AND6の出力は“011となりキー
コード発生を停止し、他のキーコード発生回路への禁止
と待機を解除する。次にキースイツチ(Swi)21が
開かれると、フリツプフロツプ(FFI)22はマスタ
クロツクのQ出力の立上りによりリセットされる。All these outputs are wired-or (OR). Now, in the key code generation circuit 2i, when the key switch (SWi) 21 is closed, the flip-flop (
FFI) 22 is set by the output Q of the master clock generator 1 and outputs "1" from the Q terminal. The flip-flop (FFI) 22 uses a D type flip-flop. AND1 has flip-flop (FFI) 22
's Q output "1" and the Q of flip-flop (FF2) 23
Output "1" is input, and ANDI outputs "1".
At this time, in other key code generation circuits, if the key is not in the released state, another similar AND3 outputs "0", and the lines (1,) 24 connected to each other via the diode DI are "0".
” is output.AND2 is BNDI and line (1,)24
The inverted output "1" of is input and outputs "1". AND
The 2 outputs are input to OR1, and ORI outputs "1".
At this time, the same circuit 2 above the key code generation circuit 2j
If p(2, ≦2p<2i) is a key or is not pressed, "0" is input to the lines (12) 25 connected to each other through an inverter so as to input each to AND4. Therefore, "1" is input to AND4. AND
4 receives ORI and the output "1" of line (12) 25, and outputs "1" as a result. The AND4 output is input to OR2, and OR2 outputs "1". As a result, key code generation in the circuits 2i to 2n below the key code generating circuit 2i is prohibited and placed on standby. Furthermore, the output of AND4 is input to the diode matrix 30, and outputs key code data through diodes D2-05, for example. Next, the master clock Q is applied from the master clock generator 1 to the monostable multipipe layer (MMI) 11, and the delayed clock is applied to the monostable multipipe layer (MMI) 11.
MMI) 11. The output Q of the monostable multipipulator (MMI) 11 and the output "1" of AND4 are input to AND5, and AND5 outputs a latch pulse of key code data. Furthermore, the Q of master clock generator 1 is
The output is input to AND6 through AND7. AND
The output “1” of BND4 is input to 6, and the master clock Q output is input to T of flip-flop (FF2) 23.
input to the terminal. The flip-flop (FF2) 23 uses a JK flip-flop, and now the J terminal receives the output Q of the flip-flop (FFI) 22, which is "1", and the K terminal receives the output Q of the flip-flop (FFI) 22, which is "0". Flipflop (FF2) 23 is a mask. It is set at the rising edge of the TsukQ output. As a result, the Q output of the flip-flop (FF2) 23 becomes "0", and AND1, AND2, AND3, OR1, AND4, A
The outputs of ND5, OR2, and AND6 become "011", stopping key code generation and canceling the inhibition and standby for other key code generation circuits.Next, when the key switch (Swi) 21 is opened, the flip-flop (FFI) 22 is reset by the rising edge of the Q output of the master clock.
これによりフリツプフロツプ(FFI)22のQ出力が
“1”となり、AND3にはフリツブフロツプ(FFI
)22のQ出力‘11”とフリツプフロツブ(FF2)
23のQ出力“1”が入力され、その結果“1”を出力
する。この出力により他のキーコード発生回路の同様の
線(12)24に“1”を入力し、押鍵によるキーコー
ド発生を禁止し待機させる。AND3出力はORIに入
力しORIは“1”を出力する。いま同時にキーコード
発生回略2iより上の同回路2p(2,≦2p<2i)
が離鍵状態でなければ線(12)25には“0”が入力
し、反転されて“1”を出力する。AND4にはORI
と線(12)25の各出力“1”を入力して“1”を出
力し従ってOR2は“1”を出力する。これによりキー
コード回路2iより下の同回路2i+,〜2nでのキー
コード発生を禁止し待機させる。さらにAND4の出力
はダイオードマトリックス301こ入力し、線26によ
りキーコ−Nこ対応するたとえば8ビットをダィオ−ド
D2〜D5で符号化したデータが出力される。これとと
もに単安定マルチパイプレータ(MMI)出力QとAN
D4出力“1”をAND5に入力し、キ−コードデータ
のラツチパルス線27よりダイオ−ドD6を通して出力
する。さらにマスタクロック発生器1のQ端子より後述
のAND7を介してAND4出力“1”をAND6に入
力し、AND6よりマスタクロツクのQ出力をフリツプ
フロツプ(FF2)23のT端子に入力させる。As a result, the Q output of the flip-flop (FFI) 22 becomes "1", and the flip-flop (FFI)
)22 Q output '11' and flip-flop (FF2)
23's Q output "1" is input, and as a result "1" is output. Based on this output, "1" is input to the similar line (12) 24 of another key code generation circuit, thereby prohibiting key code generation by key depression and putting it on standby. The AND3 output is input to ORI, and ORI outputs "1". At the same time, the same circuit 2p (2, ≦2p<2i) above the key code generation circuit 2i
If the key is not in the released state, "0" is input to line (12) 25, which is inverted and "1" is output. ORI for AND4
Each output "1" of the line (12) 25 is inputted and "1" is outputted, so that OR2 outputs "1". This prohibits key code generation in the circuits 2i+, .about.2n below the key code circuit 2i and puts them on standby. Further, the output of AND4 is inputted to a diode matrix 301, and data obtained by encoding, for example, 8 bits corresponding to the key code N through a line 26 with diodes D2 to D5 is output. Along with this, the monostable multipipulator (MMI) output Q and AN
The output "1" of D4 is inputted to AND5, and output from the key code data latch pulse line 27 through diode D6. Further, the output "1" of AND4 is inputted from the Q terminal of the master clock generator 1 to AND6 via AND7, which will be described later, and the Q output of the master clock is inputted from AND6 to the T terminal of flip-flop (FF2) 23.
このフリツプフロツプ(FF2)23のJ端子にはフリ
ツプフロツプ(FFI)22の出力Qの“0”、K端子
には同出力Qの“1”が入力されており、フリツプフロ
ツプ(FF2)23のマスタクロツクQ出力の立上りで
リセットされ、フリツプフロツプ(FF2)23の出力
Qは“0”となりAND1,AND2,AND3,OR
1,AND4,AND5,OR2,AND6の出力は“
0”となりキーコード発生を完了し、他のキーコード発
生装置への禁止待機を解除する。2鍵以上のキースイッ
チが同時に隣鍵された場合、キーコード発生回路は各キ
ースィッチ段に設けられた同様のAND3、線(1,)
24により滋鍵は常に押鍵に対して優先され、上記と同
様キーコード発生はOR2、線(12)25、AND4
の構成により高音を優先する。The J terminal of this flip-flop (FF2) 23 receives the output Q of the flip-flop (FFI) 22 as "0", the K terminal receives the same output Q as "1", and the master clock Q output of the flip-flop (FF2) 23 is input. It is reset at the rising edge of , and the output Q of the flip-flop (FF2) 23 becomes "0" and the outputs of AND1, AND2, AND3, OR
The output of 1, AND4, AND5, OR2, AND6 is “
0'', the key code generation is completed and the prohibition standby for other key code generators is released.If two or more key switches are pressed next to each other at the same time, a key code generation circuit is installed in each key switch stage. Similar AND3, line (1,)
24, the main key always has priority over the pressed key, and the key code generation is OR2, line (12) 25, AND4 as above.
The configuration gives priority to treble.
2鍵以上のキースィツチで押鍵と磯鍵が同時の場合には
上記のように、キーコード発生は常に滋鍵が優先し、さ
らに隣鍵された中でも高音を優先する。When two or more keys are pressed and a key is pressed at the same time as a key, the highest key is always given priority in generating a key code, and even among the adjacent keys, the high key is given priority as described above.
このような優先順位に基いてキーコードは順次発生され
ていくから混乱は起らない。これらのキーコード発生回
路群より出力されるキーコードデー外ま第2図に示され
るキーコード記憶装置群に与えられる。Since key codes are generated sequentially based on such priority order, confusion does not occur. The key code data outputted from these key code generation circuit groups is also applied to the key code storage device group shown in FIG.
このキーコード記憶装魔3iはデータをそれぞれ並列に
入力するラツチパルス回略31と一致回路32を含み、
その他FF用クロツクがフリツプフロツプ(FF3)3
3に与えられ、ラツチパルスがラツチ禁止回路4iを介
してラッチ回路31に与えられる。第3図に各クロック
、データのタイミングを示す。第2図はキーコード記憶
装置1チャンネルにに対応するものを示し、同等の装置
を本実施例では10チャンネル有するものである。This key code memory device 3i includes a latch pulse circuit 31 and a coincidence circuit 32, each of which inputs data in parallel.
Other FF clocks are flip-flops (FF3) 3
3, and a latch pulse is applied to the latch circuit 31 via the latch inhibit circuit 4i. FIG. 3 shows the timing of each clock and data. FIG. 2 shows a key code storage device corresponding to one channel, and this embodiment has 10 channels of an equivalent device.
キーコード記憶菱贋3iをlq回路有し、キーコードデ
ータとFF用クロックは各チャンネルとも同様に入力し
、ラツチパルスは1チャンネル目においてはANDIO
を介してAND8,AND9に入力し、次のチャンネル
からは前のチャンネルのAND9の出力がAND8,A
ND9に入力する。It has an lq circuit with key code memory 3i, the key code data and FF clock are input in the same way to each channel, and the latch pulse is ANDIO in the 1st channel.
from the next channel, the output of AND9 of the previous channel is input to AND8, A
Input to ND9.
各チャンネルの一致回路32の出力はそれぞれラツチ制
御回路4iのNORIに入力する。押鍵によって送られ
るキーコードデータは第3図aのマスタクロツク、同図
bのリセツトFF用パルスに対する同図eの波形で示さ
れ、同図dのラツチパルスにより第2図のラツチ回路3
1に書き込まれる。いま第1図のキースィツチ(SWi
)21が押されるとキーコードデータがキーコード発生
回路群2iより出力される。データがラツチ回路31お
よび一致回路32に並列に入力し、それぞれの並列出力
をオアゲート(OR3)34に入力して、“0”を出力
し、これをDタイプフリツプフロツブ(FF3)33の
D端子に入力し、そのQ出力は“1”を出力する。次に
AND8にはこのフリツプフロツプ(FF3)31の出
力Qの“1”が入力しており、さらにラツチパルスをA
NDIOを介して入力してその出力をラツチ回路31に
与える。これによりキーコードデータがラツチ回路31
にラツチされる。キーコードがラツチされるとくOR3
)34は“1”を出力し、フリツプフロツプ(FF3)
33に与えられる。フリツプフロツプ(FF3)33は
マスタクロツクQによりセットされ、Q出力“1”を出
力する。さらに、Q出力は“0”となりAND8でラッ
チパルスがラッチ回路31に入力することを禁止する。
さらにフリツプフロップ(FF3)33のQ出力“1”
はAND9に与えられ、AND9より次にくるラツチバ
ルスを出力する。AND9の出力は次のチャンネルの同
様のAND8に入力させる。さらにフリツプフロツプ(
FF3)33の出力Qは一致検出回路32に入力し次に
送られるキーコードデータとラツチされたキーコードと
の一致を検出する。すなわちキースィツチ(SWi)2
1が磯鍵するとキーコード発生回路群2iより出力され
るキーコードデー外こより一致検出回路32は一致出力
を出す。この時の同一キーコードが他のチャンネルにラ
ツチされることを禁止するラッチ制御回路4iに示すよ
うに、一致検出回路32の一致出力をノアゲート(NO
RI)41に入れ、その出力をANDI0に入力してラ
ツチパルスをAND8を介してキーコード記憶装置3i
のラッチ回路31に入力することを禁止する。さらに一
致検出回路32の一致出力によりラッチ回路31がリセ
ットされる。リセットされると(OR3)34は‘‘0
”を出力しフリツプフロツプ(FF3)33はマスタク
ロツクQによりリセットされQ出力は“0”、Q出力は
“1”となり、次にくるラツチパルスAND8より出力
し、AND9で禁止し、次のチャンネルへ送らないよう
に動作する。このようにキーコードをラツチするとラツ
チパルスはAND9より次のチャンネルのAND8に与
えられ、次のチャンネルも同様に動作を行なつ。いまキ
ーコード記憶装置群のチャンネル数10以上のキースィ
ッチ21が押された場合、すなわち空きチャンネルがな
い時にさらにキーコードデータが出力された場合には、
このキーコードデータはオーバフローとなり空きチャン
ネルができるまで出力しつづける必要がある。The outputs of the matching circuits 32 of each channel are respectively input to the NORI of the latch control circuit 4i. The key code data sent by pressing the key is shown by the waveform of e in the same figure in response to the master clock in FIG.
Written to 1. Now the key switch (SWi) shown in Figure 1
) 21 is pressed, key code data is output from the key code generation circuit group 2i. Data is input to the latch circuit 31 and the match circuit 32 in parallel, and the respective parallel outputs are input to the OR gate (OR3) 34 to output "0", which is then input to the D type flip-flop (FF3) 33. It is input to the D terminal, and its Q output outputs "1". Next, "1" of the output Q of this flip-flop (FF3) 31 is input to AND8, and the latch pulse is
It is input via NDIO and its output is given to the latch circuit 31. This causes the key code data to be transferred to the latch circuit 31.
is latched to. When the key code is latched, OR3
)34 outputs “1” and flip-flop (FF3)
Given to 33. Flip-flop (FF3) 33 is set by master clock Q and outputs Q output "1". Further, the Q output becomes "0" and the input of the latch pulse to the latch circuit 31 is prohibited by AND8.
Furthermore, the Q output of flip-flop (FF3) 33 is “1”
is applied to AND9, which outputs the next latch pulse. The output of AND9 is input to a similar AND8 of the next channel. Furthermore, flip-flop (
The output Q of the FF3) 33 is input to a coincidence detection circuit 32 to detect a coincidence between the next sent key code data and the latched key code. In other words, Key Switch (SWi)2
When 1 is the key, the coincidence detection circuit 32 outputs a coincidence output from the key code data outputted from the key code generating circuit group 2i. As shown in the latch control circuit 4i that prohibits the same key code from being latched to other channels at this time, the coincidence output of the coincidence detection circuit 32 is
RI) 41, its output is input to ANDI0, and the latch pulse is sent to the key code storage device 3i via AND8.
input to the latch circuit 31 is prohibited. Furthermore, the latch circuit 31 is reset by the coincidence output of the coincidence detection circuit 32. When reset (OR3) 34 becomes ''0
” is output, the flip-flop (FF3) 33 is reset by the master clock Q, the Q output becomes “0”, the Q output becomes “1”, and the next latch pulse AND8 outputs it, and AND9 inhibits it and does not send it to the next channel. When the key code is latched in this way, the latch pulse is applied from AND9 to AND8 of the next channel, and the next channel operates in the same way.Now, if the key code storage device group has 10 or more channels, the latch pulse is applied from AND9 to AND8 of the next channel. If the switch 21 is pressed, that is, if further key code data is output when there is no empty channel,
This key code data overflows and must be continued to be output until an empty channel is available.
このため、本実施例ではアーバフローしたラッチパルス
を第1図の単安定マルチパイプレータ(MM2)12に
与え適当なパルス幅を持たせマスタクロックQがキーコ
ード発生回路のフリツブフロツプ(FF2)23のT端
子に入力することを禁止し、(FF2)23の状態を変
化させないことによりキーコードデータを空きチャンネ
ルができるまで、たとえば第3図にようにオーバフロー
信号を1回出力し、オーバフローのキーコードが発生さ
れる毎にオバーフロ信号を出力し、オバーフローが解消
されるまで出力しつづける。この時滋鍵によるキーコー
ド発生は前述のとおり、押鍵に対して優先するために麹
鍵によって空きチャンネルを先ず作り、それから後再び
オーバーフローしたキーコードを発生することになる。Therefore, in this embodiment, the arbor-flowed latch pulse is applied to the monostable multipipulator (MM2) 12 shown in FIG. By prohibiting input to the terminal and not changing the state of (FF2) 23, the overflow signal is output once until an empty channel is created, for example, as shown in Figure 3, and the overflow key code is An overflow signal is output every time an overflow occurs, and continues to be output until the overflow is eliminated. At this time, when generating a key code using the Shigeru key, as described above, an empty channel is first created using the Koji key in order to give priority to the pressed key, and then an overflowing key code is generated again.
上記本発明の実施例においてはキーコード記憶装置群を
10チャンネルとした場合について述べたが、これに限
定されることなく適宜の最大同時発音数だけ設ければよ
い。なおキーコード発生回路より出力される並列PCM
データは直列PCMデータとして出力ラインを減少する
ことも容易に可能となり、そのためにはキーコード発生
回路群とキーコード記憶装置との間に簡単な直並列変換
回路を付加することにより実現される。In the above embodiment of the present invention, a case has been described in which the key code storage device group has 10 channels, but the key code storage device group is not limited to this, and an appropriate maximum number of simultaneous sounds may be provided. Note that the parallel PCM output from the key code generation circuit
It is also possible to easily reduce the number of output lines as data as serial PCM data, and this can be achieved by adding a simple serial-to-parallel conversion circuit between the key code generation circuit group and the key code storage device.
この場合のクロツク周波数は上記実施例のクロック周波
数のデータビット数情になることは明らかである。以上
説明したように、本発明によれば、キースィッチの押鍵
と雛鍵の状態の変化時点でそのキーコードを送るもので
あり、全キースィッチの状態を同時に調べるクロツクと
その間のキーコードデーテを送る時間のみで十分であり
、極めて即答性の高いものとなる。It is clear that the clock frequency in this case corresponds to the number of data bits of the clock frequency in the above embodiment. As explained above, according to the present invention, the key code is sent when the state of the key switch is pressed and the state of the baby key changes, and the key code data between the clock and the time when the state of all the key switches is simultaneously checked. It only takes time to send a message, and the response is extremely fast.
また同時にキースィッチの状態変化が検出された場合に
は離鍵によるキーコード出力を優先し、さらにキーコー
ド出力に対しては定められた優先順位に従ってて出力さ
れ、出力されていないキースィツチに対しては状態変化
を保持し、待機し、順次優先順位に従ってキーコードが
出力される。たとえば実施例で示したように、高音での
即答性を高めるための高音優先が用いられる。キーコー
ドデータはたとえば8ビットの並列PCM信号とし、キ
ーコードを出力するにはクロックパルス1個で済むから
、1蟹鰹同時に押されてた場合でもクロック周波数をナ
HZとすれば10十1/ナ〔秒〕で済み、従釆の走査す
る方式に比べて応答時間が非常に遠くなり、しかもクロ
ック周波数も非常に低いもので済むことになる。本発明
の場合、従釆キースィッチを走査させてキーアサインを
行なうことにより生ずる押鍵、雛鍵の間の時間ずれの問
題も解決し、簡単な構成で既答性の高いキーァサィナな
実現できるものである。At the same time, if a change in the state of a key switch is detected, priority is given to the key code output due to key release, and furthermore, the key code output is output in accordance with the determined priority order, and the key switch that is not output is maintains the status change, waits, and outputs key codes in order of priority. For example, as shown in the embodiment, priority is given to high-pitched sounds in order to improve prompt response to high-pitched sounds. The key code data is, for example, an 8-bit parallel PCM signal, and one clock pulse is enough to output the key code, so even if one crab is pressed at the same time, if the clock frequency is set to NaHZ, the clock frequency will be 101/1/ The response time is much longer than that of the slave scanning method, and the clock frequency is also extremely low. In the case of the present invention, the problem of the time lag between key presses and key keys caused by scanning the slave key switch to perform key assignment is also solved, and a key assigner with a simple configuration and high responsiveness can be realized. It is.
第1図は本発明の係るキーコード発生装置の実施例を示
す回路図、第2図は第1図のキーコード発生回路に接続
されるキ−コード記憶装置の実施例を示す回路図、第3
図は本発明の上記実施例の動作を示すタイムチャートで
あり、図中、1はマスタクロック発生器、2iはキーコ
ード発生回絡、3iはキーコード記憶装置、4iはラッ
チ制御回路、11,12は単安定マルチパイプレータ、
21はキースイツチ、22,23,33はフリツプフロ
ツプ、30はダイオードマトリックス、31はラツチ回
路、32は一致検出回路、34はオアゲート、41‘ま
ノアゲートを示す。
第1図第2図
第3図FIG. 1 is a circuit diagram showing an embodiment of a key code generation device according to the present invention, FIG. 2 is a circuit diagram showing an embodiment of a key code storage device connected to the key code generation circuit of FIG. 1, and FIG. 3
The figure is a time chart showing the operation of the above embodiment of the present invention, in which 1 is a master clock generator, 2i is a key code generation circuit, 3i is a key code storage device, 4i is a latch control circuit, 11, 12 is a monostable multipipulator,
21 is a key switch, 22, 23, and 33 are flip-flops, 30 is a diode matrix, 31 is a latch circuit, 32 is a coincidence detection circuit, 34 is an OR gate, and 41' is a gate. Figure 1 Figure 2 Figure 3
Claims (1)
するため各キースイツチに並列にマスタクロツクを供給
するマスタクロツク発生器、前記マスタクロツクの前半
でキースイツチの状態を記憶する第1の記憶回路、該第
1の記憶回路の出力を前記マスタクロツクの後半で記憶
する第2の記憶回路、該第1、第2の記憶回路出力によ
り前記各キースイツチの押鍵離鍵の状態変化を検出する
変化検出回路、該変化検出回路の出力により前記キース
イツチに対応したキーコードを発生する手段、前記マス
タクロツクと前記キーコードよりラツチパルスを出力す
る手段、および前記マスタクロツクと前記変化検出回路
の出力により第2の記憶回路をリセツトして出力発生を
完了する手段より成るキーコード発生回路を複数のキー
スイツチに対応してそれぞれ設けたキースイツチ発生回
路群、該キーコード発生回路群における前記変化検出回
路の出力で所定の優先順位に従い、高優先度のキーコー
ド発生回路から順次マスタクロツクによりキーコード発
生を行ない、低優先度の変化検出回路出力を一時禁止し
、キーコード発生を待機させる手段、およびキースイツ
チの離鍵と他のキースイツチの押鍵の同時操作の場合押
鍵によるキーコード発生を禁止し離鍵を優先するための
第1の制御回路を具えたことを特徴とするキーアサイナ
。 2 各キースイツチの押鍵離鍵の状態変化を同時に検出
するため各キースイツチに並列にマスタクロツクを供給
するマスクロツク発生器、前記マスタクロツクの前半で
キースイツチの状態を記憶する第1の記憶回路、該第1
の記憶回路の出力を前記マスタクロツクの後半で記憶す
る第2の記憶回路、該第1,第2の記憶回路出力により
前記各キースイツチの押鍵離鍵の状態変化を検出する変
化検出回路、該変化検出回路の出力により前記キースイ
ツチに対応したキーコードを発生する手段、前記マスタ
クロツクと前記キーコードよりラツチパルスを出力する
手段、および前記マスタクロツクと前記変化検出回路の
出力により第2の記憶回路をリセツトして出力発生を完
了する手段より成るキーコード発生回路を複数のキース
イツチに対応してそれぞれ設けたキーコード発生回路群
、該キーコード発生回路群における前記変化検出回路出
力で所定の優先順位に従い、高優先度のキーコード発生
回路から順次マスタクロツクによりキーコード発生を行
ない、低優先度の変化検出回路出力を一時禁止し、キー
コード発生を待機させる手段、およびキースイツチの離
鍵と他のキースイツチの押鍵の同時操作の場合押鍵によ
るキーコード発生を禁止し離鍵を優先するための第1の
制御回路を具え、さらに前記キーコード発生回路群より
出力されるキーコードを記憶する第3の記憶回路、該記
憶されたキーコードと前記キーコード発生回路群より出
力されるキーコードを比較し一致を出力する一致検出回
路、該一致検出回路出力によりキーコードが前記第3の
記憶回路に記憶されたことを検出する回路およびラツチ
パルスを前記第3の記憶回路に与えることを禁止し次の
チヤンネルに与えるように動作する第2の制御回路より
成るキーコード記憶装置群を設けたことを特徴とするキ
ーアサイナ。 3 各キースイツチの押鍵離鍵の状態変化を同時に検出
するため各キースイツチに並列にマスタクロツクを供給
するマスタクロツク発生器、前記マスタクロツクの前半
でキースイツチの状態を記憶する第1の記憶回路と、該
第1の記憶回路の出力を前記マスタクロツクの後半で記
憶する第2の記憶回路、該第1、第2の記憶回路出力に
より前記各キースイツチの押鍵離鍵の状態変化を検出す
る変化検出回路、該変化検出回路の出力により前記キー
スイツチに対応したキーコードを発生する手段、前記マ
スタクロツクと前記キーコードよりラツチパルスを出力
する手段、および前記マスタクロツクと前記変化検出回
路の出力により第2の記憶回路をリセツトして出力発生
を完了する手段より成るキーコード発生回路を複数のキ
ースイツチに対応してそれぞれ設けたキーコード発生回
路群、該キーコード発生回路群における前記変化検出回
路出力で所定の優先順位に従い、高優先度のキーコード
発生回路から順次マスタクロツクによりキーコード発生
を行ない、低優先度の変化検出回路出力を一時禁止し、
キーコード発生を待機させる手段、およびキースイツチ
の離鍵と他のキースイツチの押鍵の同時操作の場合押鍵
によるキーコード発生禁止し離鍵を優先するための第1
の制御回路を具えるととともに、前記キーコード発生回
路群より出力されるキーコードを記憶する第3の記憶回
路、該記憶されたキーコードと前記キーコード発生回路
群より出力されるキーコードを比較し一致を出力する一
致検出回路、該一致検出回路出力によりキーコードが前
記第3の記憶回路に記憶されたことを検出する回路およ
びラツチパルスを前記第3の記憶回路に与えることを禁
止し次のチヤンネルに与えるように動作する第2の制御
回路より成るキーコード記憶装置群を設け、さらに該キ
ーコード記憶装置のチヤンネル数以上のキースイツチが
押された時記憶されないキーコードデータを再び記憶す
るまで出力し続けるように制御する回路を具えたことを
特徴とするキーアサイナ。[Scope of Claims] 1. A master clock generator that supplies a master clock to each key switch in parallel to simultaneously detect changes in the state of key depression and release of each key switch, and a first memory that stores the state of the key switch in the first half of the master clock. a second memory circuit that stores the output of the first memory circuit in the second half of the master clock; a change that detects a change in the state of key press and release of each of the key switches based on the outputs of the first and second memory circuits; a detection circuit, means for generating a key code corresponding to the key switch based on the output of the change detection circuit, means for outputting a latch pulse from the master clock and the key code, and a second memory based on the output of the master clock and the change detection circuit. A key switch generating circuit group comprising means for resetting the circuit to complete output generation, respectively, corresponding to a plurality of key switches; The key code generation circuit sequentially generates a key code using a master clock starting with the high priority key code generation circuit according to the order of priority, temporarily prohibits the output of the low priority change detection circuit, and waits for key code generation, and also controls the release of the key switch and other functions. A key assigner comprising a first control circuit for prohibiting key code generation due to key depression and giving priority to key release in the case of simultaneous key depression operations of a key switch. 2. A mask clock generator that supplies a master clock to each key switch in parallel in order to simultaneously detect changes in the state of key depression and release of each key switch; a first memory circuit that stores the state of the key switch in the first half of the master clock;
a second memory circuit that stores the output of the memory circuit in the second half of the master clock; a change detection circuit that detects a change in the state of a key press/release of each of the key switches based on the outputs of the first and second memory circuits; means for generating a key code corresponding to the key switch by the output of the detection circuit; means for outputting a latch pulse from the master clock and the key code; and means for resetting a second memory circuit by the output of the master clock and the change detection circuit. A key code generating circuit group comprising key code generating circuits each comprising means for completing output generation corresponding to a plurality of key switches; A key code generating circuit is generated sequentially by a master clock from a key code generating circuit at the same time, and a means for temporarily inhibiting the output of a low priority change detection circuit and waiting for key code generation is provided. a first control circuit for prohibiting key code generation due to key presses and prioritizing key release in the case of simultaneous operations; and a third storage circuit for storing key codes output from the key code generation circuit group; a coincidence detection circuit that compares the stored key code and the key code output from the key code generation circuit group and outputs a match; a key code is stored in the third storage circuit by the output of the coincidence detection circuit; A key assigner comprising a key code storage device group comprising a circuit for detecting the latch pulse and a second control circuit that operates to prohibit the application of the latch pulse to the third storage circuit and apply it to the next channel. 3. A master clock generator that supplies a master clock to each key switch in parallel to simultaneously detect changes in the state of key presses and release of each key switch; a first memory circuit that stores the state of the key switch in the first half of the master clock; a second memory circuit that stores the output of the memory circuit in the second half of the master clock; a change detection circuit that detects a change in the state of the key press/release of each of the key switches based on the outputs of the first and second memory circuits; means for generating a key code corresponding to the key switch by the output of the detection circuit; means for outputting a latch pulse from the master clock and the key code; and means for resetting a second memory circuit by the output of the master clock and the change detection circuit. A key code generating circuit group comprising key code generating circuits each comprising means for completing output generation corresponding to a plurality of key switches; The master clock generates key codes sequentially from the key code generating circuit of the second level, and temporarily prohibits the output of the low priority change detection circuit.
Means for waiting for key code generation, and first method for prohibiting key code generation due to key depression and giving priority to key release in the case of simultaneous operation of key release of one key switch and key depression of another key switch.
a third storage circuit for storing the key code output from the key code generation circuit group; and a third storage circuit for storing the stored key code and the key code output from the key code generation circuit group. A coincidence detection circuit that compares and outputs a coincidence, a circuit that detects that a key code is stored in the third storage circuit by the output of the coincidence detection circuit, and a circuit that prohibits applying a latch pulse to the third storage circuit. A key code storage device group consisting of a second control circuit that operates to apply data to the channels of the key code storage device is provided, and furthermore, when key switches greater than or equal to the number of channels of the key code storage device are pressed, the key code data that is not stored is stored again. A key assigner characterized by being equipped with a circuit that controls continuous output.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP51047557A JPS6027039B2 (en) | 1976-04-26 | 1976-04-26 | key assigner |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP51047557A JPS6027039B2 (en) | 1976-04-26 | 1976-04-26 | key assigner |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS52130620A JPS52130620A (en) | 1977-11-02 |
| JPS6027039B2 true JPS6027039B2 (en) | 1985-06-26 |
Family
ID=12778474
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP51047557A Expired JPS6027039B2 (en) | 1976-04-26 | 1976-04-26 | key assigner |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6027039B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4194425A (en) * | 1977-08-24 | 1980-03-25 | Kabushiki Kaisha Kawai Gakki Seisakusho | Key code generator |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5615520B2 (en) * | 1974-09-05 | 1981-04-10 |
-
1976
- 1976-04-26 JP JP51047557A patent/JPS6027039B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS52130620A (en) | 1977-11-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US3899951A (en) | Key switch scanning and encoding system | |
| US4141268A (en) | Keyboard apparatus for an electronic musical instrument | |
| JPS5936755B2 (en) | key assigner | |
| US4194425A (en) | Key code generator | |
| US4176573A (en) | Intrakeyboard coupling and transposition control for a keyboard musical instrument | |
| US4011784A (en) | Transposition apparatus for an electronic musical instrument | |
| JPS6027039B2 (en) | key assigner | |
| GB1559750A (en) | Elctronic musical instruments and demultiplexing audio waveshape generators for such instruments | |
| US4235142A (en) | Electronic musical instrument of time-shared digital processing type | |
| US4269102A (en) | Key assignor | |
| CA1082012A (en) | Device for automatic tonal accompaniment in electronic musical instruments | |
| JPS5847918B2 (en) | Time division switching line switch control device | |
| US4204452A (en) | Single key preferential selection device in electronic musical instrument | |
| US4085643A (en) | Truncated decay system | |
| US4144787A (en) | Keyer circuit for electronic organ | |
| JP2932841B2 (en) | Electronic musical instrument | |
| JP2599351B2 (en) | Waveform reading device | |
| JPS6021400B2 (en) | electronic musical instruments | |
| JPS6027040B2 (en) | key code generator | |
| JPS5937837B2 (en) | Key code detection circuit for electronic musical instruments | |
| US4321850A (en) | Electronic musical instrument with highest priority key tone production | |
| US4375176A (en) | Keyboard latch for electronic organ | |
| US4722259A (en) | Keyswitch actuation detector for an electronic musical instrument | |
| US4401005A (en) | Electronic keyboard-operated musical instrument | |
| JPS6068388A (en) | Electronic musical instrument |