JPH0334799Y2 - - Google Patents

Info

Publication number
JPH0334799Y2
JPH0334799Y2 JP1987132346U JP13234687U JPH0334799Y2 JP H0334799 Y2 JPH0334799 Y2 JP H0334799Y2 JP 1987132346 U JP1987132346 U JP 1987132346U JP 13234687 U JP13234687 U JP 13234687U JP H0334799 Y2 JPH0334799 Y2 JP H0334799Y2
Authority
JP
Japan
Prior art keywords
block
key
bit
key switch
code
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
JP1987132346U
Other languages
Japanese (ja)
Other versions
JPS6349600U (en
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 filed Critical
Priority to JP1987132346U priority Critical patent/JPH0334799Y2/ja
Publication of JPS6349600U publication Critical patent/JPS6349600U/ja
Application granted granted Critical
Publication of JPH0334799Y2 publication Critical patent/JPH0334799Y2/ja
Expired legal-status Critical Current

Links

Description

【考案の詳細な説明】 本考案は多数のスイツチを複数のブロツクに分
け各ブロツクを走査してオン状態のキースイツチ
に対応するキーコードを簡単な手順により発生出
力する電子楽器のキーコード発生回路に関するも
のである。
[Detailed description of the invention] The present invention relates to a key code generation circuit for an electronic musical instrument that divides a large number of switches into a plurality of blocks, scans each block, and generates and outputs a key code corresponding to a key switch that is in an on state through a simple procedure. It is something.

従来鍵盤スイツチ、音色選択スイツチ、音量選
択スイツチ等多くのスイツチ(以下キースイツチ
という)を有する電子楽器においては各キースイ
ツチのオンオフ状態は各キースイツチ毎に配線を
行ない検出していた。しかしこの方法は多くの配
線を必要とするため不経済であり複雑であつた。
近年デジタル技術を利用したオルガンシステムが
提案される中でキースイツチをマトリツクス回路
の行ライン、列ラインに配列して全てのキースイ
ツチを1つずつ順次走査することにより時分割多
重化されたキースイツチのオンオフ信号を得る方
法が提案されたが、この方法では全てのキースイ
ツチを順次走査するために、キースイツチのオン
オフ動作と走査のタイミングにより不均一な時間
のずれを生じてしまう。この時間のずれを小さく
しようとすれば走査速度を上げねばならなかつ
た。また、使用しているキースイツチの数にかか
わらず、全てのキースイツチを走査するから走査
時間が全キースイツチの数で定まり、キースイツ
チのオンオフ動作と検出の時間のおくれが大きく
なつた。このおくれを小さくするには走査速度を
上げる必要があつた。この点を改善するために各
種の走査方法が提案されたが、たとえば全キース
イツチをマトリツクス回路の行ライン、列ライン
に配しておき、行ラインの全てに同時に信号を与
え、オン状態のキースイツチが含まれる行ライン
の列ラインを1つずつ順次走査し、オン状態キー
スイツチを検出する方法である。しかしこの方法
は行ラインと列ラインと2度検出する方法であ
り、いわばキースイツチの状態を2度サンプリン
グするものである。2度のサンプリングの間でキ
ースイツチの状態が変化すれば、不要なキースイ
ツチを検出したり、時間の無駄を生じたり場合に
よつては誤つた検出をすることも考えられる。
Conventionally, in electronic musical instruments having many switches (hereinafter referred to as keyswitches) such as a keyboard switch, tone selection switch, volume selection switch, etc., the on/off state of each key switch has been detected by wiring each key switch. However, this method is uneconomical and complicated because it requires a lot of wiring.
In recent years, organ systems using digital technology have been proposed, and key switch on/off signals are time-division multiplexed by arranging key switches in row lines and column lines of a matrix circuit and sequentially scanning all the key switches one by one. However, in this method, all the key switches are sequentially scanned, resulting in uneven time lag due to the on/off operation of the key switches and the timing of scanning. In order to reduce this time difference, it was necessary to increase the scanning speed. In addition, since all the key switches are scanned regardless of the number of key switches in use, the scanning time is determined by the number of all the key switches, and the time lag between key switch on/off operation and detection becomes large. To reduce this lag, it was necessary to increase the scanning speed. Various scanning methods have been proposed to improve this point, but for example, all the key switches are arranged in row lines and column lines of a matrix circuit, and signals are applied to all row lines at the same time. In this method, the included row lines and column lines are sequentially scanned one by one to detect an on-state key switch. However, this method detects the row line and column line twice, so to speak, the state of the key switch is sampled twice. If the state of the key switch changes between two samplings, it is possible that an unnecessary key switch will be detected, time will be wasted, or in some cases, an erroneous detection will occur.

本考案の目的はキースイツチを複数回サンプリ
ングすることなく短時間でオン状態のキースイツ
チに対応するキーコードを発生出力する電子楽器
のキーコード発生回路を提供することである。
An object of the present invention is to provide a key code generation circuit for an electronic musical instrument that generates and outputs a key code corresponding to an on-state key switch in a short time without sampling the key switch multiple times.

前記目的を達成するため、本考案の電子楽器の
キーコード発生回路はマトリツクスキースイツチ
を複数行のブロツクに分け各ブロツクに順次ブロ
ツクコードを与えて走査するマトリツクス回路
と、 あるブロツク内にオン状態のキースイツチが1
つまたはそれ以上ある時にブロツクの走査を一時
停止する手段と、 該ブロツク内のキースイツチに付与された優先
順位に従いオン状態を示す信号を並列直列変換し
て出力し該ブロツク内のオン状態キースイツチに
対応するビツトコードを順次発生するシフトレジ
スタ回路と、 該ブロツク内のオン状態キースイツチに対応す
るビツトコードを全て発生したことを検出し、残
りのオフ状態のキースイツチの処理を中止し次の
ブロツクの走査に移る手段とを具え、 前記シフトレジスタ回路からのビツトコードと
対応するブロツクコードを組合わせてキーコード
として出力することを特徴とするものである。
In order to achieve the above object, the key code generation circuit of the electronic musical instrument of the present invention includes a matrix circuit that divides a matrix key switch into blocks of multiple lines and sequentially applies a block code to each block for scanning, and a matrix circuit that scans a matrix key switch by sequentially applying a block code to each block. key switch is 1
means for temporarily stopping the scanning of a block when there is one or more keyswitches; and a means for parallel-to-serial converting a signal indicating an on state according to the priority given to the key switch in the block and outputting the signal corresponding to the on state key switch in the block. a shift register circuit that sequentially generates bit codes corresponding to the on-state key switches in the block; and means for detecting that all the bit codes corresponding to the on-state key switches in the block have been generated, and stopping processing of the remaining off-state key switches and moving to scanning of the next block. The bit code from the shift register circuit and the corresponding block code are combined and output as a key code.

以下本考案を実施例につき詳述する。 The present invention will be described in detail below with reference to examples.

第1図は本考案の実施例の概略説明図である。
同図において、キースイツチマトリツクス1は複
数のキースイツチがたとえばn行m列に配置され
る。行のラインをブロツクライン、列のラインを
ビツトラインとする。ブロツクデコーダ2はブロ
ツクカウンタ3からのブロツクコードに従い、n
本のブロツクラインのうち1本のブロツクライン
に信号を与える。指定されたブロツクラインに配
され1つのブロツクを形成するm個のキースイツ
チ群のうちオン状態のキースイツチはそれぞれの
ビツトラインにキーオン信号を出力する。クロツ
ク発生器4からのクロツクφは論理ゲート5に与
えられる。論理ゲート5はキースイツチマトリツ
クス回路1からのm本のビツトラインにキーオン
信号のないときはクロツクφをブロツクカウンタ
3に与える。ブロツクカウンタ3はクロツクφが
入力されると、1,2,3,4,…,nの順に繰
返し計数出力する。またキースイツチマトリツク
ス回路1からのm本のビツトラインのうち、1本
またはそれ以上のビツトラインにキーオン信号が
あれば、次のクロツクφをブロツクカウンタ3に
与えることを一時停止する。そしてキースイツチ
マトリツクス回路1からのブロツク内のキーオン
信号をシフトレジスタに並列入力して書込んだ
後、直列出力し該ブロツク内のオン状態キースイ
ツチに対応するキーコードを順次出力する。そし
て全てのビツトのキーオン信号をビツトコードと
して出力し終ると、論理ゲート5はクロツクφを
ブロツクカウンタ3に与えることを展開する。そ
して論理ゲート5を通してオン状態キースイツチ
に対応するブロツクコードとビツトコードより成
るキーコードを出力する。
FIG. 1 is a schematic explanatory diagram of an embodiment of the present invention.
In the figure, a key switch matrix 1 has a plurality of key switches arranged in, for example, n rows and m columns. The row lines are block lines and the column lines are bit lines. The block decoder 2 follows the block code from the block counter 3 and
A signal is applied to one of the block lines of the book. Of a group of m key switches arranged on a designated block line and forming one block, the key switches in the on state output key-on signals to the respective bit lines. Clock φ from clock generator 4 is applied to logic gate 5. Logic gate 5 supplies clock φ to block counter 3 when there is no key-on signal on the m bit lines from key switch matrix circuit 1. When the clock φ is input, the block counter 3 repeatedly counts and outputs in the order of 1, 2, 3, 4, . . . , n. Furthermore, if there is a key-on signal on one or more of the m bit lines from the key switch matrix circuit 1, the application of the next clock φ to the block counter 3 is temporarily stopped. Then, the key-on signals in the block from the key switch matrix circuit 1 are input in parallel to the shift register and written therein, and then output in series to sequentially output the key codes corresponding to the on-state key switches in the block. When the key-on signals of all bits have been output as bit codes, the logic gate 5 applies the clock φ to the block counter 3. Then, a key code consisting of a block code and a bit code corresponding to the on-state key switch is outputted through the logic gate 5.

第2図は第1図の実施例の詳細説明図である。
第4図a〜mはその動作を示すタイムチヤートで
ある。
FIG. 2 is a detailed explanatory diagram of the embodiment of FIG. 1.
Figures 4a to 4m are time charts showing the operation.

第2図において、キースイツチマトリツクス回
路1はn=m=8とする。キースイツチマトリツ
クス回路1において、ブロツクラインとビツトラ
インの白丸印で示す交差点は引出し円30内に拡
大して示すように、キースイツチとダイオードよ
り構成されている。該ダイオードはORゲートを
形成するものであるから、各ビツトライン毎に8
入力ORゲートで置換することができる。論理ゲ
ート5は本考案の要部となる各ブロツクのオン状
態のキースイツチビツトを並列入力し直列シフト
するシフトレジスタ16と該ビツトコードのタイ
ミングを与えるビツトカウンタ18を含むゲート
回路の組合わせで構成される。すなわち、キース
イツチマトリツクス回路1からの8ビツトライン
の並列信号をシフトレジスタ16に並列入力し、
後述するANDゲート15からのP/S信号で切
換え並直列変換し、クロツク発生器4からのクロ
ツクにより直列信号を出力する。
In FIG. 2, the key switch matrix circuit 1 has n=m=8. In the key switch matrix circuit 1, the intersection of the block line and the bit line indicated by a white circle is composed of a key switch and a diode, as shown enlarged in the drawing circle 30. Since the diodes form an OR gate, there are 8
It can be replaced with an input OR gate. The logic gate 5 is constituted by a combination of a gate circuit including a shift register 16 which inputs the on-state key switch bits of each block in parallel and shifts them in series, and a bit counter 18 which provides the timing of the bit code, which is the essential part of the present invention. Ru. That is, 8-bit line parallel signals from the key switch matrix circuit 1 are input in parallel to the shift register 16,
Switching and parallel-to-serial conversion are performed using a P/S signal from an AND gate 15, which will be described later, and a serial signal is output using a clock from a clock generator 4.

シフトレジスタ16はたとえば第3図に回路例
を示すように、P1〜P8はキースイツチマトリツ
クス1のビツトラインからの並列入力を縦続接続
した8個のデータセレクタSELに入れ、P/S信
号がHレベルの時P1〜P8を選択し、Lレベルの
時は前段DEF出力を選択する。なお、直列入力
端子は接地(低レベル)に接続される。
In the shift register 16, for example, as shown in the circuit example shown in FIG. 3, P1 to P8 input parallel inputs from the bit lines of the key switch matrix 1 to eight data selectors SEL connected in cascade, and output the P/S signal. When is at H level, selects P1 to P8 , and when is at L level, selects the previous stage DEF output. Note that the series input terminal is connected to ground (low level).

次に、ビツトラインにオン状態キースイツチ信
号があるかないかに応じブロツク走査を制御する
ため、8ビツトラインの途中からそれぞれ分岐し
てOR回路10に入力させ、あるブロツクにオン
状態のキースイツチがない時は低Lレベル出力の
反転信号によりORゲート11を介してANDゲー
ト12を開け、クロツク発生器4からのクロツク
φをブロツクカウンタ3に与えてカウントを歩進
させ、ブロツクデコーダ2を介して次のブロツク
走査に移る。もし、ブロツクにオン状態のキース
イツチがある場合には、ORゲート10の高Hレ
ベル出力によりブロツク走査を一時停止する。そ
して、該Hレベル出力をD形フリツプフロツプ
DFF13のD端子に与え、そのQ出力の反転信
号とORゲート10の出力をANDゲート15に入
力させることにより、ORゲート10のHレベル
出力より1クロツク遅延させたP/S信号をシフ
トレジスタ16に与えて前述の直並列切換えを行
なわせる。また同時にORゲート10のHレベル
出力によりビツトカウンタ18をリセツトすると
ともに、ANDゲート17を開け、クロツク発生
器4からのクロツクφでビツトラインのビツトコ
ードに対応するタイミングンを発生してANDゲ
ート202に与え、シフトレジスタ16からの直
列出力との論理積をとりビツトコードを出力す
る。一方、その時のブロツクカウンタ3の出力を
ANDゲート201に入れ同じシフトレジスタ16
からの直列出力との論理積をとりブロツクコード
を出力する。これらのブロツクコードとビツトコ
ードの組合わせによりオン状態のキースイツチに
対応するキーコードが得られる。
Next, in order to control block scanning depending on whether or not there is an on-state key switch signal on the bit line, each branch is branched from the middle of the 8-bit line and inputted to the OR circuit 10, and when there is no on-state key switch signal in a certain block, a low The AND gate 12 is opened via the OR gate 11 by the inverted level output signal, and the clock φ from the clock generator 4 is applied to the block counter 3 to increment the count, and then to the next block scan via the block decoder 2. Move. If the block has a key switch in the on state, the block scanning is temporarily stopped by the high H level output of the OR gate 10. Then, the H level output is transferred to a D-type flip-flop.
By applying the inverted signal of the Q output to the D terminal of the DFF 13 and inputting the output of the OR gate 10 to the AND gate 15, a P/S signal delayed by one clock from the H level output of the OR gate 10 is sent to the shift register 16. is applied to perform the above-mentioned series-to-parallel switching. At the same time, the bit counter 18 is reset by the H level output of the OR gate 10, and the AND gate 17 is opened, and a timing signal corresponding to the bit code of the bit line is generated using the clock φ from the clock generator 4, and is sent to the AND gate 202. and the serial output from the shift register 16 to output a bit code. On the other hand, the output of block counter 3 at that time is
Same shift register 16 put in AND gate 20 1
It performs a logical product with the serial output from and outputs a block code. The combination of these block codes and bit codes provides a key code corresponding to the key switch in the on state.

さらに、本実施例ではシフトレジスタ16に並
列入力されたビツトコードがシフトされて直列出
力する場合、オン状態のキースイツチに対応する
Hレベルビツトのうち最終のビツトが出力された
後は残つた低レベルビツトは不必要であるから、
これを検知して直ちにブロツクカウンタ3を歩進
させて次のブロツク走査に移るように構成され
る。そのため、シフトレジスタ16の並列ビツト
出力をNORゲート19に入れ、全部Lレベルと
なつた時Hレベル出力をDFF13のQ出力とと
もにANDゲート14を通してブロツクカウンタ
3を歩進させる。このようにして、キースイツチ
マトリツクス回路1のブロツク走査の1巡に必要
なクロツク数を減少することができ、キーコード
検出時間の短縮を図ることができる。
Furthermore, in this embodiment, when the bit codes input in parallel to the shift register 16 are shifted and output in series, after the final bit of the H level bits corresponding to the key switch in the on state is output, the remaining low level bits are left unused. Because it is necessary
When this is detected, the block counter 3 is immediately incremented to move on to the next block scan. Therefore, the parallel bit output of the shift register 16 is input to the NOR gate 19, and when all the bits are at the L level, the H level output is passed along with the Q output of the DFF 13 to the AND gate 14 to increment the block counter 3. In this way, the number of clocks required for one round of block scanning of the key switch matrix circuit 1 can be reduced, and the key code detection time can be shortened.

第4図は、第2図の実施例において、第5ブロ
ツクの第3、第5ビツトおよび第7ブロツクの第
6ビツトに相当するキースイツチのみオン状態
(第2図で黒丸印で示す)と仮定した場合のタイ
ムチヤートを示す。
FIG. 4 assumes that, in the embodiment of FIG. 2, only the key switches corresponding to the third and fifth bits of the fifth block and the sixth bit of the seventh block are in the on state (indicated by black circles in FIG. 2). The following is a time chart for when this happens.

いま、ブロツクカウンタ3の計数に伴いブロツ
クデコーダ2がキースイツチマトリツクス回路1
のブロツクラインに1,2,3,4の順にHレベ
ル信号を与える。第1ブロツクから第4ブロツク
までのキースイツチにオン状態のキースイツチは
ないからORゲート10はLレベルであり、OR
ゲート11は反転されてHレベルであり、AND
ゲート12は開いている。そして第4番目のクロ
ツクφ4がANDゲート12を介しブロツクカウン
タ3に与えられ、ブロツクカウンタ3の計数値
(以下ブロツクコードという)を「5」としてブ
ロツクデコーダ2は第5ブロツクラインにHレベ
ル信号を与える〔第4図a,b〕。第5ブロツク
は第3、第5ビツトのキースイツチはオン状態で
あるから第3、第5ビツトのビツトラインはHレ
ベルとなり、ORゲート10はHレベルとなる
〔第4図c〕。この時DFF13は1クロツク分だ
け遅延したのと等しくそのQ出力はLレベル〔第
4図f〕、従つてORゲート15の出力はHレベ
ル〔第4図h〕であり、一方ORゲート11の出
力はLレベル〔第4図d〕、従つてANDゲート1
2は閉じられる〔第4図e〕。次のクロツクφ5
らはブロツクカウンタ3には与えられず、ブロツ
クコードは「5」の状態を維持する。クロツク
φ5はANDゲート15を介してシフトレジスタ1
6にP/S信号を与え、キースイツチマトリツク
ス回路1からの8ビツトラインの並列信号を書込
んだ後、クロツクφ5〜φ10により直列信号として
オン信号ビツトを出力する〔第4図i〕。そして
ORゲート10のHレベルでビツトカウンタ18
がリセツトされ、ANDゲート17の出力〔第4
図j〕によりビツトカウンタ18よりタイミング
信号が与えられANDゲート202よりビツトコー
ドが取出される〔第4図k〕。次にシフトレジス
タ16の各ビツトを入力するNORゲート19の
出力はビツトコードが全部0を検知するクロツク
φ10の後Hレベルを出力し〔第4図l〕、ANDゲ
ート14、ORゲート11、ANDゲート12を介
し〔第4図g,d,e〕、ブロツクカウンタ3を
歩進させ、クロツクφ11で第6ブロツクを走査す
る。第6ブロツクにはオン状態のキースイツチは
ないから、前述のφ1〜φ4と同じ手順を経てクロ
ツクφ12において第7ブロツクの走査に移り、オ
ン状態のキースイツチに対応する第6ビツトに対
し第5ブロツクと同じ手順がとられる。そして第
8ブロツクにはオン状態のキースイツチはないか
らφ1〜φ4と同じ手順がとられる。そして全ブロ
ツクの走査1周期に図示のようにクロツク数は21
個用いられる。第4図mの出力コード20は同図
bのブロツクコードと同図kのビツトコードを組
合せたものである。
Now, as the block counter 3 counts, the block decoder 2 turns on the key switch matrix circuit 1.
H level signals are applied to the block lines 1, 2, 3, and 4 in this order. Since there is no key switch in the on state among the key switches from the first block to the fourth block, the OR gate 10 is at the L level, and the OR gate 10 is at the L level.
Gate 11 is inverted and at H level, AND
Gate 12 is open. Then, the fourth clock φ4 is applied to the block counter 3 via the AND gate 12, and the count value of the block counter 3 (hereinafter referred to as block code) is set to "5", and the block decoder 2 sends an H level signal to the fifth block line. [Figure 4 a, b]. In the fifth block, the key switches for the third and fifth bits are in the on state, so the bit lines for the third and fifth bits go to H level, and the OR gate 10 goes to H level (FIG. 4c). At this time, the DFF 13 is delayed by one clock, and its Q output is at the L level (FIG. 4f), and therefore the output of the OR gate 15 is at the H level (FIG. 4h). The output is L level [Fig. 4 d], therefore AND gate 1
2 is closed [Fig. 4e]. From the next clock φ5 , no clock is applied to the block counter 3, and the block code maintains the state of "5". Clock φ5 is connected to shift register 1 via AND gate 15.
After applying the P/S signal to the key switch matrix circuit 6 and writing the 8-bit line parallel signal from the key switch matrix circuit 1, the ON signal bit is output as a serial signal by the clocks φ 5 to φ 10 [Fig. 4 i] . and
Bit counter 18 at H level of OR gate 10
is reset, and the output of AND gate 17 [4th
A timing signal is applied from the bit counter 18 and a bit code is taken out from the AND gate 202 [Fig. 4k]. Next, the output of the NOR gate 19, which inputs each bit of the shift register 16, outputs an H level after the clock φ10 detects that all bit codes are 0 [Fig. 4l], and the AND gate 14, the OR gate 11, and the The block counter 3 is incremented through the gate 12 [FIG. 4g, d, e], and the sixth block is scanned with the clock φ11 . Since there is no key switch in the ON state in the 6th block, the scanning of the 7th block is started at clock φ 12 through the same procedure as φ 1 to φ 4 described above, and the 6th bit corresponding to the key switch in the ON state is scanned. The same procedure as for block 5 is followed. Since there is no key switch in the on state in the eighth block, the same procedure as φ 1 to φ 4 is followed. The number of clocks in one scanning cycle of all blocks is 21 as shown in the figure.
Used individually. The output code 20 of FIG. 4m is a combination of the block code of FIG. 4b and the bit code of FIG. 4k.

この実施例では各ブロツクの走査1周期に用い
るクロツク数は前述のように21個であるが、一般
にはオン状態キースイツチのあるブロツク毎に
(ビツト値が最大のオン状態キースイツチのビツ
ト値+1)を加算しさらに(ブロツク数)を加算
したもので表わされる。
In this embodiment, the number of clocks used in one scanning cycle of each block is 21 as described above, but generally, the number of clocks used for one scanning cycle of each block is 21 (the bit value of the on-state key switch with the largest bit value + 1) for each block with an on-state key switch. It is expressed as the result of adding and then adding (number of blocks).

第5図は本考案の他の実施例の構成を示す説明
図である。第6図a〜lはその動作を示すタイム
チヤートである。
FIG. 5 is an explanatory diagram showing the configuration of another embodiment of the present invention. FIGS. 6a to 6l are time charts showing the operation.

第5図において、第2図と異なる点はオン状態
のキースイツチに対応するキーコードを検出する
ためのブロツク走査1周期に用いるクロツク数を
減少するためのとくに設けたNOR回路19と、
この出力信号をブロツクカウンタ3に送るための
ANDゲート14を省略し、その代りにビツトカ
ウンタ18の最終ビツトの送出を示す第4ビツト
をANDゲート11の片方の入力としたものであ
る。これにより、シフトレジスタ16に並列入力
したオン状態のキースイツチに対応するキーコー
ドは全8ビツトが出力した後次のブロツクに走査
が移ることになる。そのため走査1周期のクロツ
ク数はこの場合第6図に示すように24個必要とな
る。一般には(オン状態キースイツチのあるブロ
ツク数)×8に(ブロツク数)を加算したクロツ
ク数となる。
5 differs from FIG. 2 in that a NOR circuit 19 is specially provided to reduce the number of clocks used in one block scanning cycle to detect the key code corresponding to the key switch in the on state.
to send this output signal to block counter 3.
The AND gate 14 is omitted, and instead, the fourth bit indicating the output of the final bit of the bit counter 18 is used as one input of the AND gate 11. As a result, scanning moves to the next block after all 8 bits of the key code corresponding to the on-state key switch inputted in parallel to the shift register 16 have been output. Therefore, in this case, the number of clocks for one scanning cycle is 24 as shown in FIG. Generally, the number of clocks is the sum of (number of blocks with on-state key switches) x 8 and (number of blocks).

第6図のタイムチヤートは第4図からgAND
ゲート14とlNORゲート19を除去しその代り
にgビツトカウンタ第4ビツト14′を付加した
ものである。また第5ブロツク、第7ブロツクの
シフト期間がそれぞれ8クロツク必要であり、各
最終ビツトに対応してビツトカウンタ第4ビツト
14′により次のブロツクに走査が進められてい
る。その他は第4図と同様である。
The time chart in Figure 6 is gAND from Figure 4.
The gate 14 and the lNOR gate 19 are removed, and a fourth bit 14' of a g-bit counter is added in their place. Further, the shift period of the fifth block and the seventh block each requires eight clocks, and scanning is advanced to the next block by the fourth bit 14' of the bit counter corresponding to each final bit. Other details are the same as in FIG. 4.

このように第2図の実施例に比べて走査1周期
のクロツク数は多くなるが、構成は明らかに簡略
化される。
Although the number of clocks per scanning period is greater than that of the embodiment shown in FIG. 2, the structure is clearly simplified.

以上説明したように、本考案によれば、多数の
キースイツチを複数のブロツクに分け、各ブロツ
クを順次走査し、ブロツク内にオン状態のキース
イツチが1つまたはそれ以上ある時にブロツクの
走査を一時停止し、シフトレジスタのような並直
列変換回路に並列入力し直列出力しオン状態キー
スイツチに対応するキーコードを出力し、これを
全て発生した時次のブロツクの走査に移るように
制御される。このような構成により極めて少ない
クロツク数で全キースイツチを走査できることと
なり、キーコードの検出、発生時間が大幅に短縮
できる。また、オン状態のキースイツチとブロツ
ク数に関連して検出時間が決まり、不要なキース
イツチの走査を極力省き時間的の無駄を排除する
ことができる。
As explained above, according to the present invention, a large number of key switches are divided into a plurality of blocks, each block is sequentially scanned, and when one or more key switches in the block are in the on state, scanning of the block is temporarily stopped. Then, they are inputted in parallel to a parallel-to-serial conversion circuit such as a shift register, outputted in series, and outputted a key code corresponding to an on-state key switch. When all of these are generated, the scanning of the next block is started. With this configuration, all the key switches can be scanned with an extremely small number of clocks, and the key code detection and generation time can be significantly shortened. Furthermore, the detection time is determined in relation to the key switch in the on state and the number of blocks, and unnecessary key switch scanning can be avoided as much as possible, thereby eliminating wasted time.

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

第1図は本考案の実施例の概略説明図、第2図
は本考案の実施例の構成を示す説明図、第3図は
第2図の実施例の要部の具体回路例、第4図a〜
mは第2図の実施例の動作を示すタイムチヤー
ト、第5図は本考案の他の実施例の構成を示す説
明図、第6図a〜lは第5図の実施例の動作を示
すタイムチヤートであり、図中、1はキースイツ
チマトリツクス回路、2はブロツクデコーダ、3
はブロツクカウンタ、4はクロツク発生器、5は
論理ゲート、16はシフトレジスタ、18はビツ
トカウンタを示す。
FIG. 1 is a schematic explanatory diagram of an embodiment of the present invention, FIG. 2 is an explanatory diagram showing the configuration of an embodiment of the present invention, FIG. 3 is a specific circuit example of the main part of the embodiment of FIG. Figure a~
m is a time chart showing the operation of the embodiment of FIG. 2, FIG. 5 is an explanatory diagram showing the configuration of another embodiment of the present invention, and FIGS. 6 a to l show the operation of the embodiment of FIG. 5. This is a time chart. In the figure, 1 is the key switch matrix circuit, 2 is the block decoder, and 3 is the key switch matrix circuit.
4 is a block counter, 4 is a clock generator, 5 is a logic gate, 16 is a shift register, and 18 is a bit counter.

Claims (1)

【実用新案登録請求の範囲】 マトリツクスキースイツチを複数行のブロツク
に分け各ブロツクに順次ブロツクコードを与えて
走査するマトリツクス回路1〜4と、 あるブロツク内にオン状態のキースイツチが1
つまたはそれ以上ある時にブロツクの走査を一時
停止する手段10〜14と、 該ブロツク内のキースイツチに付与された優先
順位に従いオン状態を示す信号を並列直列変換し
て出力し該ブロツク内のオン状態キースイツチに
対応するビツトコードを順次発生するシフトレジ
スタ回路15,16と、 該ブロツク内のオン状態キースイツチに対応す
るビツトコードを全て発生したことを検出し、残
りのオフ状態のキースイツチの処理を中止し次の
ブロツクの走査に移る手段14,19とを具え、 前記シフトレジスタ回路からのビツトコードと
対応するブロツクコードを組合せてキーコードと
して出力することを特徴とする電子楽器のキーコ
ード発生回路。
[Claims for Utility Model Registration] Matrix circuits 1 to 4 that divide a matrix key switch into blocks of multiple lines and sequentially give a block code to each block for scanning, and one key switch that is in an on state in a certain block.
means 10 to 14 for temporarily stopping the scanning of a block when there is one or more keys; Shift register circuits 15 and 16 sequentially generate bit codes corresponding to the key switches, detect that all bit codes corresponding to the on-state key switches in the block have been generated, stop processing of the remaining off-state key switches, and start the next one. 1. A key code generation circuit for an electronic musical instrument, comprising means 14 and 19 for moving to block scanning, and for outputting a combination of a bit code from the shift register circuit and a corresponding block code as a key code.
JP1987132346U 1987-08-31 1987-08-31 Expired JPH0334799Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1987132346U JPH0334799Y2 (en) 1987-08-31 1987-08-31

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1987132346U JPH0334799Y2 (en) 1987-08-31 1987-08-31

Publications (2)

Publication Number Publication Date
JPS6349600U JPS6349600U (en) 1988-04-04
JPH0334799Y2 true JPH0334799Y2 (en) 1991-07-23

Family

ID=31031644

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1987132346U Expired JPH0334799Y2 (en) 1987-08-31 1987-08-31

Country Status (1)

Country Link
JP (1) JPH0334799Y2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5377515A (en) * 1976-12-20 1978-07-10 Kawai Musical Instr Mfg Co Electronic musical instrument
JPS547923A (en) * 1977-06-20 1979-01-20 Matsushita Electric Ind Co Ltd Key assignor for electronic instrument

Also Published As

Publication number Publication date
JPS6349600U (en) 1988-04-04

Similar Documents

Publication Publication Date Title
US3743755A (en) Method and apparatus for addressing a memory at selectively controlled rates
US3844379A (en) Electronic musical instrument with key coding in a key address memory
USRE32069E (en) Device for detecting a key switch operation
GB1440488A (en) Electronic musical instrument
JP2571911B2 (en) Music signal generator
US3972031A (en) Variable length shift register alternately operable to store and recirculate data and addressing circuit therefor
GB1150603A (en) Electronic Musical Instrument
US4176573A (en) Intrakeyboard coupling and transposition control for a keyboard musical instrument
JPH0760310B2 (en) Touch control device
US4033221A (en) Key switch system
JPH0334799Y2 (en)
US4184402A (en) Electronic musical instrument
SU1285514A1 (en) Device for conducting orchestra
KR100345327B1 (en) Scan conversion circuit
JP2532092B2 (en) State holding circuit scanning method
JPS6215876B2 (en)
KR100238295B1 (en) Horizontal data expanding circuit for display
JPS6154236B2 (en)
SU1543232A1 (en) Multichannel device for recording signals
SU1104578A1 (en) Device for generating symbols
RU1837336C (en) Device for tracing contours and their elements in object images
KR0123068B1 (en) Random generator
JPS6315913Y2 (en)
SU1682999A1 (en) Device for video signal deforming
RU1791809C (en) Device for entry of information