JPH0412557Y2 - - Google Patents
Info
- Publication number
- JPH0412557Y2 JPH0412557Y2 JP1985128040U JP12804085U JPH0412557Y2 JP H0412557 Y2 JPH0412557 Y2 JP H0412557Y2 JP 1985128040 U JP1985128040 U JP 1985128040U JP 12804085 U JP12804085 U JP 12804085U JP H0412557 Y2 JPH0412557 Y2 JP H0412557Y2
- Authority
- JP
- Japan
- Prior art keywords
- key
- information
- key information
- block
- key switch
- 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
Description
【考案の詳細な説明】
本考案は電子楽器の鍵盤スイツチのオンオフ状
態を検知してキースイツチ信号に対するチヤンネ
ルの割り当てまたは消去を行なう電子楽器の鍵盤
情報処理装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a keyboard information processing device for an electronic musical instrument that detects the on/off state of a keyboard switch of the electronic musical instrument and assigns or deletes a channel to a key switch signal.
従来、電子楽器の鍵盤回路は近年デジタル技術
により改良されてキースイツチを時分割走査して
キースイツチのオンオフ状態を“1”,“0”の時
分割キー信号として取り出し、該信号によりオン
状態のキースイツチに対してチヤンネルを割り当
てる方法が提案されている。さらにキースイツチ
をいくつかのブロツクに分け、各ブロツク毎に時
分割走査してオン状態のキースイツチを検出して
チヤンネルを割り当てる方法が提案されている。 Conventionally, keyboard circuits of electronic musical instruments have been improved by digital technology in recent years, and the key switch is scanned in a time-division manner to extract the on-off state of the key switch as a time-division key signal of "1" and "0". A method of allocating channels has been proposed. Furthermore, a method has been proposed in which the key switches are divided into several blocks and each block is time-divisionally scanned to detect the key switches in the on state and to allocate channels.
しかし、これら従来の方法はいずれもキースイ
ツチ走査回路が必要であり、また、従来例のうち
後者のキースイツチをブロツクに分ける方法は走
査時間の短縮のため改良されたものであるが、そ
の制御用の論理回路が複雑となり調整もかなり面
倒である。また自動演奏などの情報検出を行なわ
せようとすると極めて複雑となる。さらに鍵数や
チヤンネル数を拡張したい場合、または各種機能
を変更したい場合、鍵盤情報処理装置の構成は拡
張分または変更分に対応して大形化、複雑化し高
価格となるのを免れなかつた。 However, all of these conventional methods require a key switch scanning circuit, and among the conventional methods, the latter method of dividing the key switch into blocks has been improved to shorten the scanning time; The logic circuit becomes complicated and adjustment is quite troublesome. Furthermore, if you try to detect information such as automatic performance, it becomes extremely complicated. Furthermore, when it is desired to expand the number of keys or channels, or to change various functions, the configuration of the keyboard information processing device inevitably becomes larger, more complex, and more expensive to accommodate the expansion or change. .
本考案は上述の欠点を改善するもので、その目
的はキースイツチ走査回路を用いることなく簡単
な構成を有しかつ拡張、変更の自由度の高い電子
楽器の鍵盤情報処理装置を提供することである。 The present invention is intended to improve the above-mentioned drawbacks, and its purpose is to provide a keyboard information processing device for an electronic musical instrument that has a simple configuration without using a key switch scanning circuit and has a high degree of freedom in expansion and modification. .
前記目的を達成するため、本考案の鍵盤情報処
理装置は複数のキースイツチよりなるキーブロツ
クを複数個含み、前記キースイツチの現在の状態
を示すキー情報が前記キーブロツク毎に読み出さ
れるキースイツチ手段と、
複数チヤンネルの割当てキー情報を記憶するチ
ヤンネルレジスタ手段と、
前記キースイツチ手段のキースイツチの状態を
検出し、前記チヤンネルレジスタ手段への割当て
を行なうCPUと、
該CPUの処理プログラムを記憶する記憶手段
と、
前記キースイツチ手段のキーの情報を旧キー情
報として一時記憶する一時記憶手段とを有し、
前記記憶手段の処理プログラムにおいて、前記
CPUは前記キースイツチ手段から読み出された
キーブロツク毎のキー情報と前記一時記憶手段に
一時記憶されている対応するキーブロツクの旧キ
ー情報とを比較し、その比較結果が一致すれば前
記キースイツチ手段における次のキーブロツクの
キー情報を読み出し、一致しなければ前記キーブ
ロツク中に変化のあつたキーを検出し、この変化
のあつたキーに対応してそのキー情報のチヤンネ
ルレジスタ手段への割当てまたは消去を行なうと
共に、前記キー情報を前記一時記憶手段に記憶さ
れていた前記旧キー情報のアドレスに記憶された
後に次のキーブロツクのキー情報を読み出す処理
を行なうことを特徴とするものである。 In order to achieve the above object, the keyboard information processing device of the present invention includes a plurality of key blocks each consisting of a plurality of key switches, key switch means from which key information indicating the current state of the key switch is read out for each key block, and a plurality of channels. channel register means for storing assigned key information; a CPU for detecting the state of the key switch of the key switch means and performing assignment to the channel register means; storage means for storing a processing program for the CPU; temporary storage means for temporarily storing key information as old key information, and in the processing program of the storage means, the
The CPU compares the key information for each key block read from the key switch means with the old key information of the corresponding key block temporarily stored in the temporary storage means, and if the comparison results match, the next key information in the key switch means is reads the key information of the key block, and if they do not match, detects a changed key in the key block, and assigns or erases the key information to the channel register means in accordance with the changed key. , the key information of the next key block is read out after the key information is stored at the address of the old key information stored in the temporary storage means.
以下本考案を実施例につき詳述する。 The present invention will be described in detail below with reference to examples.
第1図は本考案の実施例の構成を示す概略説明
図である。 FIG. 1 is a schematic explanatory diagram showing the configuration of an embodiment of the present invention.
同図において、キースイツチ回路1は複数のキ
ースイツチより成るキーブロツクを複数個含み、
キーブロツク毎のキーのオンオフ情報はアドレス
指定回路2により一括してアドレス指定され、そ
のアドレス指定信号に同期してキーブロツク情報
がゲート回路3を介して共通バス7に送出され
る。これらのキーブロツク情報を共通バス7より
記憶回路5のランダムアクセスメモリ(RAM)
領域に記憶させ、さらにその固定メモリ
(ROM)領域に記憶されたプログラムを読み出
し共通バスを通して情報処理部(CPU)4を動
作させる。すなわち、CPU4に共通バス7を介
しキースイツチ回路1からの新しいブロツク情報
を取り入れ、そして記憶回路5のRAM領域に書
き込まれている旧いキーブロツク情報とを比較し
てキー状態に変化のあつたキー信号に対し必要に
応じてチヤンネル割り当てまたは消去を行なう。
そして各チヤンネルに対応するチヤンネルレジス
タ6に新しいキーデータを書き込む。以上の場
合、ゲート回路3のほか記憶回路5およびチヤン
ネルレジスタ6はそれぞれアドレスが割り当てら
れていて、アドレス指定回路2により指定され
る。 In the figure, a key switch circuit 1 includes a plurality of key blocks each consisting of a plurality of key switches.
The key on/off information for each keyblock is collectively addressed by the addressing circuit 2, and the keyblock information is sent to the common bus 7 via the gate circuit 3 in synchronization with the addressing signal. These key block information are sent to the random access memory (RAM) of the storage circuit 5 via the common bus 7.
Further, the program stored in the fixed memory (ROM) area is read out and the information processing unit (CPU) 4 is operated through the common bus. That is, the CPU 4 takes in new block information from the key switch circuit 1 via the common bus 7, compares it with the old key block information written in the RAM area of the memory circuit 5, and determines the key signal whose key state has changed. Channel assignment or deletion is performed as necessary.
Then, new key data is written into the channel register 6 corresponding to each channel. In the above case, in addition to the gate circuit 3, the memory circuit 5 and the channel register 6 are each assigned an address and designated by the addressing circuit 2.
第2図は第1図のキースイツチ回路1およびゲ
ート回路3の詳細説明図である。 FIG. 2 is a detailed explanatory diagram of the key switch circuit 1 and gate circuit 3 of FIG. 1.
電子楽器のキースイツチは少ないもので数十
個、多いもので数百個であるが、これをn個ずつ
のm個のブロツクに分ける。この時nはCPU4
のビツト数によつて定める。本実施例ではn=12
として1オクターブを1つのブロツクに対応させ
て、ブロツクコードとオクターブコードを一部に
おいて一致させて、後述するブロツクコードから
オクターブコードへの変換を容易にしたが、必ず
しもn=12にする必要はない。なお本実施例では
CPU4として12ビツトのマイクロコンピユータ
たとえば東芝社製TLCS−12Aを使用した。 The number of key switches in an electronic musical instrument is as few as several dozen, and as many as several hundred, and these are divided into m blocks of n keys each. At this time, n is CPU4
Determined by the number of bits. In this example, n=12
As a result, one octave corresponds to one block, and the block code and octave code are partially matched to facilitate the conversion from block code to octave code, which will be described later. However, it is not necessary to set n to 12. . Note that in this example
As the CPU 4, a 12-bit microcomputer such as TLCS-12A manufactured by Toshiba Corporation was used.
第2図に示すように、キースイツチ11は12個
毎に区切られていて各ブロツク毎にアドレスが割
り当てられる。同図において、たとえば、4080番
地、4081番地、4082番地を割り当てる。アドレス
指定回路2からラインl1を介してキースイツチ情
報の読出し命令により指定されたアドレス、たと
えば4080番地に“1”レベルの信号を与え、該信
号はキースイツチ11の共通バー11−1に与えら
れる。この時当該ブロツクのオン状態のキースイ
ツチ11よりラインl2を通しダイオード12を介
して共通ラインl3に接続し、共通ラインl3は3ス
テートゲート回路14を介してバスバーl4に接続
される。3ステートゲート回路14は各ブロツク
の何れかが読み出し指定される時にOR回路13
を介したアドレス指定信号により開かれる。 As shown in FIG. 2, the key switches 11 are divided into 12 blocks, and an address is assigned to each block. In the figure, for example, addresses 4080, 4081, and 4082 are assigned. A "1" level signal is applied from the addressing circuit 2 to the address specified by the key switch information read command, for example address 4080, via line l1 , and this signal is applied to the common bar 11-1 of the key switch 11. At this time, the key switch 11 of the block is turned on and the line l2 is connected to the common line l3 via the diode 12, and the common line l3 is connected to the bus bar l4 via the 3-state gate circuit 14. The 3-state gate circuit 14 outputs the OR circuit 13 when any one of the blocks is designated for reading.
Opened by addressing signals via.
すなわち、<4080>,<4081>,<4082>の各番
地の各ビツトがキースイツチ11に対応してい
て、読み出し命令によりCPU4に読み出される
ものである。なお、本実施例では3オクターブ36
鍵を図示しているが、さらに多くのブロツク数、
鍵数に適用できることはいうまでもない。 That is, each bit at each address <4080>, <4081>, and <4082> corresponds to the key switch 11, and is read out to the CPU 4 by a read command. In this example, 3 octaves 36
Although the key is shown in the diagram, there are many more blocks,
Needless to say, this can be applied to the number of keys.
第3図は本考案の実施例の情報処理部(CPU)
4の動作を示す流れ図である。以下第1図を参照
しつつ説明する。 Figure 3 shows the information processing unit (CPU) of the embodiment of this invention.
4 is a flowchart showing the operation of step 4. This will be explained below with reference to FIG.
第1図において、各ブロツクのキー情報は各ブ
ロツクに対応するアドレスを指定することによ
り、順次読み出されバスバーl4を介してCPU4に
与えられる。このCPU4は記憶回路5内の同一
ブロツクに対応するキー情報(以下旧キー情報と
称する。)と、ゲート回路3からのキー情報(以
下新キー情報と称する。)とを比較し、一致すれ
ば次のブロツクアドレス(+1)の読出しを行な
う。以上の手順は第3図の〜のプログラムの
ループで示される。一致しなければ以下のプロ
グラムに移る。すなわち、新キー情報と旧キー情
報の各ビツト毎に排他的論理和(EX−OR)を
計算し、キー情報に変化のあつたビツトを検出す
る()。そして該変化のあつたビツトと当該ブ
ロツクのアドレスコードからこの変化のあつたキ
ーの属するオクターブコード、ノートコードを算
出して一時記憶する()。次に新キー情報のう
ち上記の変化ビツトをチエツクすることにより、
キースイツチの変化を識別するオンオフビツトが
検出される()。 In FIG. 1, the key information of each block is sequentially read out by specifying the address corresponding to each block and is given to the CPU 4 via the bus bar l4. This CPU 4 compares the key information (hereinafter referred to as old key information) corresponding to the same block in the memory circuit 5 with the key information from the gate circuit 3 (hereinafter referred to as new key information), and if they match, The next block address (+1) is read. The above procedure is shown in the program loops . . . in FIG. 3. If they do not match, move on to the next program. That is, an exclusive OR (EX-OR) is calculated for each bit of the new key information and the old key information, and bits in which the key information has changed are detected (). Then, the octave code and note code to which the changed key belongs are calculated from the changed bit and the address code of the block and are temporarily stored (). Next, by checking the above change bits in the new key information,
An on-off bit is detected that identifies a key switch change ().
そして新キー情報を旧キー情報の記憶されてい
たRAM領域内のアドレスに転送する()。こ
のオンオフビツトキーコード(オクターブコー
ド、ノートコード)はチヤンネル割り当てプログ
ラムによりキーオンの場合は空き番地へ書き込ま
れ、キーオフの場合は該当するキーコードを有す
るチヤンネルのコードが消去される()。 Then, the new key information is transferred to the address in the RAM area where the old key information was stored (). This on/off bit key code (octave code, note code) is written to a vacant address when the key is on by the channel assignment program, and when the key is off, the code of the channel having the corresponding key code is erased ().
なおこのチヤンネル割り当てのプログラムにつ
いては特願昭52−13684号「電子楽器のチヤンネ
ル割りあて回路」と同等である。そしてチヤンネ
ル割り当てプログラムが終了すると、再び次のプ
ログラムの読み出しに移る。 Note that this channel assignment program is the same as that of Japanese Patent Application No. 13684/1984 ``Channel Allocation Circuit for Electronic Musical Instruments''. When the channel allocation program is finished, reading of the next program starts again.
以上説明したように、キースイツチ回路からの
新キー情報を記憶装置に記憶させた同一ブロツク
に対応する旧キー情報とを比較し、キー状態に変
化のあつたキー信号に対しチヤンネルの割り当て
または消去を行なう装置を具え、たとえばその機
能を記憶回路内の制御情報により動作する情報処
理部で行なわせるものであり、とくにこの情報処
理部としてマイクロコンピユータを用いることに
より、構成が簡単化、小形化され、しかも低価格
の鍵盤処理装置が得られる。さらに鍵数やチヤン
ネル数を拡張する場合でも情報処理部の改変、対
応が非常に容易であるし、またキースイツチに番
地が割り当てられているので、ある特定のスイツ
チだけを選択的に読み出すこともプログラムを変
更することも可能となる。このことは自動演奏に
おいて、たとえば伴奏用コードのアルペジオを決
定する部分のみを優先して読み出すことも可能で
あり、同様のことが他の効果にも適用される。 As explained above, the new key information from the key switch circuit is compared with the old key information corresponding to the same block stored in the storage device, and a channel is assigned or deleted for the key signal whose key state has changed. For example, by using a microcomputer as the information processing section, the configuration can be simplified and miniaturized. Moreover, a low-cost keyboard processing device can be obtained. Furthermore, even if the number of keys or channels is expanded, it is very easy to modify the information processing unit, and since addresses are assigned to key switches, it is also possible to selectively read out only a specific switch using a program. It is also possible to change. This means that in automatic performance, for example, only the part that determines the arpeggio of an accompaniment chord can be read out with priority, and the same thing can be applied to other effects as well.
第1図は本考案の実施例の構成を示す概略説明
図、第2図は第1図の実施例の要部の詳細説明
図、第3図は第1図の実施例の要部の動作を示す
流れ図であり、
図中、1はキースイツチ回路、2はアドレス指
定回路、3はゲート回路、4は情報処理部、5は
記憶回路、6はチヤンネルレジスタを示す。
Fig. 1 is a schematic explanatory diagram showing the configuration of an embodiment of the present invention, Fig. 2 is a detailed explanatory diagram of the main part of the embodiment of Fig. 1, and Fig. 3 is an operation of the main part of the embodiment of Fig. 1. In the figure, 1 is a key switch circuit, 2 is an addressing circuit, 3 is a gate circuit, 4 is an information processing section, 5 is a storage circuit, and 6 is a channel register.
Claims (1)
数個含み、前記キースイツチの現在の状態を示す
キー情報が前記キーブロツク毎に読み出されるキ
ースイツチ手段と、 複数チヤンネルの割当てキー情報を記憶するチ
ヤンネルレジスタ手段と、 前記キースイツチ手段のキースイツチの状態を
検出し、前記チヤンネルレジスタ手段への割当て
を行なうCPUと、 該CPUの処理プログラムを記憶する記憶手段
と、 前記キースイツチ手段のキーの情報を旧キー情
報として一時記憶する一時記憶手段とを有し、 前記記憶手段の処理プログラムにおいて、前記
CPUは前記キースイツチ手段から読み出された
キーブロツク毎のキー情報と前記一時記憶手段に
一時記憶されている対応するキーブロツクの旧キ
ー情報とを比較し、その比較結果が一致すれば前
記キースイツチ手段における次のキーブロツクの
キー情報を読み出し、一致しなければ前記キーブ
ロツク中に変化のあつたキーを検出し、この変化
のあつたキーに対応してそのキー情報のチヤンネ
ルレジスタ手段への割当てまたは消去を行なうと
共に、前記キー情報を前記一時記憶手段に記憶さ
れていた前記旧キー情報のアドレスに記憶された
後に次のキーブロツクのキー情報を読み出す処理
を行なうことを特徴とする電子楽器の鍵盤情報処
理装置。[Claims for Utility Model Registration] Key switch means that includes a plurality of key blocks each consisting of a plurality of key switches, from which key information indicating the current state of the key switch is read out for each key block, and a channel that stores assigned key information of a plurality of channels. register means; a CPU for detecting the key switch state of the key switch means and assigning it to the channel register means; a storage means for storing a processing program for the CPU; and storing key information of the key switch means as old key information. and a temporary storage means for temporarily storing the
The CPU compares the key information for each key block read from the key switch means with the old key information of the corresponding key block temporarily stored in the temporary storage means, and if the comparison results match, the next key information in the key switch means is reads the key information of the key block, and if they do not match, detects a changed key in the key block, and assigns or erases the key information to the channel register means in accordance with the changed key. A keyboard information processing device for an electronic musical instrument, characterized in that, after the key information is stored in the address of the old key information stored in the temporary storage means, a process of reading out the key information of the next key block is performed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1985128040U JPH0412557Y2 (en) | 1985-08-22 | 1985-08-22 |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1985128040U JPH0412557Y2 (en) | 1985-08-22 | 1985-08-22 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6150998U JPS6150998U (en) | 1986-04-05 |
| JPH0412557Y2 true JPH0412557Y2 (en) | 1992-03-26 |
Family
ID=30686672
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1985128040U Expired JPH0412557Y2 (en) | 1985-08-22 | 1985-08-22 |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0412557Y2 (en) |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US3899951A (en) * | 1973-08-09 | 1975-08-19 | Nippon Musical Instruments Mfg | Key switch scanning and encoding system |
| JPS5922238B2 (en) * | 1974-08-14 | 1984-05-25 | ヤマハ株式会社 | key assigner |
| JPS5383729A (en) * | 1976-12-29 | 1978-07-24 | Nippon Gakki Seizo Kk | Board key output detector for electronic insturment |
-
1985
- 1985-08-22 JP JP1985128040U patent/JPH0412557Y2/ja not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6150998U (en) | 1986-04-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5847302A (en) | Tone information processing device for an electronic musical instrument for generating sounds | |
| US4141268A (en) | Keyboard apparatus for an electronic musical instrument | |
| US4958346A (en) | Memory testing device | |
| JPH0412557Y2 (en) | ||
| US4911052A (en) | Key assigner system for electronic musical instrument | |
| JPH0762798B2 (en) | Keyboard information processing device for electronic musical instruments | |
| US4957031A (en) | Automatic music playing apparatus having plural tone generating channels separately assignable to the parts of a musical piece | |
| JP2006030517A (en) | Sounding allocating device | |
| JPH06175917A (en) | Flash memory | |
| US4515058A (en) | Adaptive tone generator assignment in a keyboard electronic musical instrument | |
| JPH055356B2 (en) | ||
| JPH07312096A (en) | Nonvolatile memory | |
| JP2563807Y2 (en) | Music information storage device | |
| JP2715833B2 (en) | Tone generator | |
| JPH07191675A (en) | Electronic musical instrument | |
| JPS6167895A (en) | electronic musical instruments | |
| JPH0827624B2 (en) | Automatic playing device | |
| JPS6227716B2 (en) | ||
| JPS60149092A (en) | Electronic musical instrument | |
| JPS60149091A (en) | Electronic musical instrument | |
| JPH1062491A (en) | Logic integrated circuit testing device | |
| JPH03255551A (en) | Storage device | |
| JPS6252319B2 (en) | ||
| JPH07160260A (en) | Musical sound generator | |
| JPH1185156A (en) | Data processing method, data processing apparatus, and storage medium for electronic musical instrument |