JP2011018066A - Key information detecting device of electronic musical instrument - Google Patents
Key information detecting device of electronic musical instrument Download PDFInfo
- Publication number
- JP2011018066A JP2011018066A JP2010190736A JP2010190736A JP2011018066A JP 2011018066 A JP2011018066 A JP 2011018066A JP 2010190736 A JP2010190736 A JP 2010190736A JP 2010190736 A JP2010190736 A JP 2010190736A JP 2011018066 A JP2011018066 A JP 2011018066A
- Authority
- JP
- Japan
- Prior art keywords
- key
- switch
- musical instrument
- electronic musical
- pressing
- 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.)
- Pending
Links
Images
Abstract
Description
本発明は電子楽器の鍵情報検出装置に関し、特に、鍵ごとに設けられていて、押圧度合いに応じて状態が順次変化する2つのスイッチを用いて押鍵速度を計測する鍵タッチセンサに用いて好適なものである。 The present invention relates to a key information detection apparatus for an electronic musical instrument, and more particularly, to a key touch sensor that measures a key pressing speed using two switches that are provided for each key and that change in order according to the degree of pressing. Is preferred.
従来、電子ピアノ等の電子鍵盤楽器においては、アコースティックピアノの鍵タッチ感に近似した鍵タッチ感を得ることができるようにするために、鍵の下方に所定の重量を有するハンマーアームを上下方向に回動自在に設け、鍵の押下に伴ってハンマーアームがそれ自身の重量に抗して回動変位することにより、鍵に所定のアクション荷重を付与するようにしたものが実用化されている。 Conventionally, in an electronic keyboard instrument such as an electronic piano, in order to obtain a key touch feeling similar to the key touch feeling of an acoustic piano, a hammer arm having a predetermined weight is placed vertically below the key. A device that is provided so as to be pivotable and that applies a predetermined action load to the key by causing the hammer arm to rotationally displace against its own weight as the key is pressed has been put into practical use.
このような従来の鍵盤装置にあっては、前述のように押鍵の中期段階において、鍵の下降変位に先行して、ハンマーアームが慣性回動すると、ハンマーアームの被押圧部材の上面が鍵の側板の下面から離間することとなる。したがって、この時点で瞬時に押鍵を解除して再度押鍵する動作、つまり瞬時に複数回同一鍵を押鍵する演奏を行うと、2回目以降の押鍵を行った際に、ハンマーアームを回動させることはできない不都合が発生する。 In such a conventional keyboard device, as described above, when the hammer arm is inertially rotated prior to the downward movement of the key in the middle stage of the key pressing, the upper surface of the pressed member of the hammer arm is the key. It will be separated from the lower surface of the side plate. Therefore, at this point in time, when the key release is instantaneously released and the key is pressed again, that is, when the performance of pressing the same key multiple times instantly is performed, the hammer arm is released when the key is pressed for the second and subsequent times. Inconvenience that cannot be rotated occurs.
このような問題点を解決するために、例えば、特許文献1に記載の電子楽器の鍵盤装置の場合は、鍵の押下に伴って初期位置から最終位置まで回動変位するとともに、自重により前記最終位置から前記初期位置に回動復帰するハンマーアームと、前記ハンマーアームの前記最終位置への回動変位を検出して、発音の開始を指示するためのキーオン信号を出力する第1のキーオン信号出力手段と、前記ハンマーアームの前記初期位置への回動復帰の有無を検出する検出手段と、前記検出手段の検出結果に基づき、前記ハンマーアームが前記最終位置から初期位置に回動復帰していない状態で、前記鍵が押下されたとき、前記鍵の押下を検出して前記キーオン信号を出力する第2のキーオン信号出力手段とを設けている。 In order to solve such a problem, for example, in the case of the keyboard device of the electronic musical instrument described in Patent Document 1, the final displacement is performed from the initial position to the final position when the key is pressed, and the final weight is caused by its own weight. A hammer arm that rotates back from the position to the initial position, and a first key-on signal output that detects a rotational displacement of the hammer arm to the final position and outputs a key-on signal for instructing the start of sound generation Means, detecting means for detecting whether or not the hammer arm has returned to the initial position, and based on the detection result of the detecting means, the hammer arm has not been returned from the final position to the initial position. And a second key-on signal output means for detecting the depression of the key and outputting the key-on signal when the key is depressed.
特許文献1に記載の電子楽器の鍵盤装置の場合には、複数組の2接点スイッチを設けたり、前記ハンマーアームが初期位置に復帰したことを検出した機構を設けたりして、多様な押鍵状態のタッチ検出を行うようにしていので、構成が大掛かりとなりコストがアップしてしまう問題があった。 In the case of a keyboard device for an electronic musical instrument described in Patent Document 1, a plurality of sets of two-contact switches are provided, or a mechanism for detecting that the hammer arm has returned to the initial position is provided. Since the touch detection of the state is performed, there is a problem that the configuration becomes large and the cost increases.
また、複数組の2接点スイッチを配設したり、ハンマーアームまたは鍵盤の初期位置復を検出するためのセンサを取り付けたりしなければならないことにより、それまで製造していた電子楽器の構成を大幅に変更しなければならない問題点があった。 In addition, the configuration of electronic musical instruments manufactured so far has been greatly increased by arranging multiple sets of two-contact switches and attaching sensors to detect the initial position of the hammer arm or keyboard. There was a problem that had to be changed.
本発明は前述の問題点に鑑みてなされたものであり、同一鍵を瞬時に複数回押鍵する連打演奏を行うことが可能な電子楽器を簡略に構成できるようにすることを目的とする。 The present invention has been made in view of the above-described problems, and an object of the present invention is to enable a simple configuration of an electronic musical instrument that can perform a repetitive performance in which the same key is instantaneously pressed a plurality of times.
本発明の電子楽器の鍵情報検出装置は、押鍵位置に応じて開閉する複数のスイッチの開閉状態及び開閉時間差に応じて該スイッチの単独及び連続の押離鍵と該押離鍵の速度を検出する電子楽器の鍵情報検出装置において、上記時間差を検出するクロックカウンタと、
上記カウンタのカウントストップを指示する指示手段と、上記指示手段に拠るカウントストップ指示が為された場合に、上記カウント値と共に該カウント値に関連する鍵に関する情報を記憶する記憶手段と、上記カウント値及び該カウント値に関連する鍵に関する情報が上記記憶手段に記憶されたことを、上記鍵情報を処理する処理手段に割込信号として通知する通知手段と、を備え、上記鍵情報が発生したことをイベントとして処理できるようにしたことを特徴とする。
The key information detecting device for an electronic musical instrument according to the present invention is configured to change the single and continuous keys of the switch and the speed of the keys to be pressed according to the open / closed state and the open / close time difference of the switches that open and close according to the key pressing position. In the key information detection device of the electronic musical instrument to be detected, a clock counter for detecting the time difference,
An instruction means for instructing to stop counting the counter; a storage means for storing information related to a key related to the count value together with the count value when a count stop instruction is made by the instruction means; and the count value And notifying means for notifying the processing means for processing the key information as an interrupt signal that information relating to the key related to the count value is stored in the storage means, and that the key information has been generated. Can be processed as an event.
本発明によれば、鍵盤毎に設けられていて、押圧度合いに応じて順次変化する第1のスイッチ及び第2のスイッチを用いて押鍵速度を計測する鍵タッチセンサを有する電子楽器に、前記第2のスイッチが押圧状態から定常状態に変化した時から計測を開始し、前記第2のスイッチが定常状態から押圧状態に変化したら計測を停止する計測手段と、前記第1のスイッチが押圧状態において、前記第2のスイッチが定常状態から押圧状態へと変化したら連打演奏であると検出する連打演奏検出手段とを設けたので、同一鍵を瞬時に複数回押鍵する連打演奏を行うことが可能な電子楽器を簡略に構成することができる。 According to the present invention, an electronic musical instrument having a key touch sensor that is provided for each keyboard and that measures a key pressing speed by using a first switch and a second switch that sequentially change according to the degree of pressing is described above. Measurement means that starts measurement when the second switch changes from the pressed state to the steady state, stops the measurement when the second switch changes from the steady state to the pressed state, and the first switch is in the pressed state In this case, the continuous hit performance detecting means for detecting that the continuous hit performance is detected when the second switch changes from the steady state to the pressed state is provided. Possible electronic musical instruments can be configured simply.
(第1の実施形態)
以下、図面を参照しながら本発明の電子楽器の第1の実施形態を説明する。
図1は、本発明の実施形態を示し、電子楽器のタッチセンサの電子回路部の構成例を説明するブロック図である。
(First embodiment)
Hereinafter, a first embodiment of an electronic musical instrument of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram illustrating an exemplary configuration of an electronic circuit unit of a touch sensor of an electronic musical instrument according to an embodiment of the present invention.
図1において、10はクロックジェネレータ、11はスキャンジェネレータ、12はキースイッチマトリックス、13はチャタリングフィルタ、14はイベントジェネレータ、15はカウントレジスタ、16はMPUインタフェースである。 In FIG. 1, 10 is a clock generator, 11 is a scan generator, 12 is a key switch matrix, 13 is a chattering filter, 14 is an event generator, 15 is a count register, and 16 is an MPU interface.
クロックジェネレータ10は、マスタークロック信号MCKを分周して任意のスピードのクロックを生成するための分周器であり、任意の周波数のクロック信号を生成する。クロックジェネレータ10により生成されたクロック信号はスキャンジェネレータ11、チャタリングフィルタ13、イベントジェネレータ14、カウントレジスタ15、MPUインタフェース16等に与えられる。
The
前記スキャンジェネレータ11、チャタリングフィルタ13、イベントジェネレータ14、カウントレジスタ15及びMPUインタフェース16には、リセット信号RSTが与えられるように構成されており、これらの装置はリセット信号RSTが供給されると初期状態にリセットされる。
The scan generator 11, the
図2に、本実施形態のクロックジェネレータ10の構成例を示す。
本実施形態のクロックジェネレータ10は、第1のJKフリップフロップ100、第2のJKフリップフロップ101、第3のJKフリップフロップ103等により構成されている。これらのJKフリップフロップ101〜103は、クロック端子CKに入力されたマスタークロック信号MCKの立ち上がりに同期して、その時点での入力の値を出力する。
FIG. 2 shows a configuration example of the
The
このような動作を行うことにより、クロック端子CKに入力される同期信号を2分周して下位のカウンタに出力する。本実施形態においては、第1のJKフリップフロップ100によりマスタークロック信号MCKを2分周したクロック信号CK0(MCK/2)が得られる。
By performing such an operation, the synchronization signal input to the clock terminal CK is divided by two and output to the lower counter. In the present embodiment, a clock signal CK0 (MCK / 2) obtained by dividing the master clock signal MCK by 2 is obtained by the first JK flip-
また、第1のJKフリップフロップ100の出力端子Qから出力される信号が同期信号SYNCとして第2のJKフリップフロップ101の入力端子J及び入力端子Kに与えられている。前記第2のJKフリップフロップ101のクロック端子CKにはマスタークロック信号MCKが与えられている。したがって、第2のJKフリップフロップ101からは前記第1のJKフリップフロップ100の出力クロック信号CK0を2分周したクロック信号CK1(MCK/4)が得られる。
Further, a signal output from the output terminal Q of the first JK flip-
第1のJKフリップフロップ100の出力端子Qから出力される信号がアンド回路103を介して、第3のJKフリップフロップ102の入力端子J及び入力端子Kに同期信号SYNCとして与えられている。前記第3のJKフリップフロップ102のクロック端子CKにはマスタークロック信号MCKが与えられている。したがって、第3のJKフリップフロップ102からは前記第1のJKフリップフロップ100の出力クロック信号CK0を4分周したクロック信号CK2(MCK/8)が得られる。
A signal output from the output terminal Q of the first JK flip-
また、第1のJKフリップフロップ100の出力端子Qから出力される信号をアンド回路104を通した信号が下位のカウンタの同期信号SYNCとしてクロックジェネレータ10から出力される。
Further, the signal output from the output terminal Q of the first JK flip-
スキャンジェネレータ11は、鍵盤をスキャンするためのタイミング信号を生成するための回路であり、図3の回路図に示すように、クロックジェネレータ10と同様にJKフリップフロップを順次接続して構成されている。本実施形態においては5つのJKフリップフロップ110〜114を接続して、5つのスキャン信号SA0〜SA4を生成している。また、スキャンジェネレータ11に入力された同期信号SYNCを、アンド回路115〜119を通して、スキャンジェネレータ11の出力同期信号SYNCを生成している。前記スキャン信号SA0は「MCK/16」である。また、SA1は「MCK/32」、SA2は「MCK/64」、SA3は「MCK/128」、SA4は「MCK/256」の周波数となっている。
The scan generator 11 is a circuit for generating a timing signal for scanning the keyboard, and is configured by sequentially connecting JK flip-flops as in the
次に、図4を参照しながらマトリックス回路12の構成例を説明する。
前述した各スキャン信号SA0〜SA4はアドレスデコーダ120に入力される。本実施形態においては、4鍵を1ブロックとしてスキャンするようにしている。図4に示したアドレスデコーダ120は、第1のスイッチ部SW1と第2のスイッチ部SW2に対応して配設されている各スイッチ(マトリックスの交点に示している)をスキャンする信号SC0〜SC31を生成している。
Next, a configuration example of the
Each of the scan signals SA0 to SA4 is input to the
なお、図4には、各スイッチとして押しボタンスイッチを示しているが、スイッチの種類は任意である。電子楽器の全体については、128鍵に対応して256個の押しボタンスイッチの接点をスキャンするための信号を生成している。そして、これらの押しボタンスイッチの接点状態をスキャン信号SC0〜SC31でスキャンして、鍵操作検出信号KD10〜KD13及び鍵操作検出信号KD20〜KD23を生成している。 In FIG. 4, push button switches are shown as the switches, but the types of switches are arbitrary. For the entire electronic musical instrument, signals for scanning the contacts of 256 push button switches corresponding to 128 keys are generated. The contact states of these push button switches are scanned with the scan signals SC0 to SC31 to generate the key operation detection signals KD10 to KD13 and the key operation detection signals KD20 to KD23.
次に、図5を参照しながらチャタリングフィルタ13の構成例を説明する。
図5に示したように、本実施形態のチャタリングフィルタ13は第1のスイッチ部SW1に入力される鍵操作検出信号KD10〜KD13、及び第2のスイッチ部SW2に入力される鍵操作検出信号KD20〜KD23に対応する複数のフィルタ回路が設けられている。
Next, a configuration example of the
As shown in FIG. 5, the
各フィルタ回路の構成を説明すると、第1のセレクタ131a(131b〜131h)、第1のフリップフロップ132a(132b〜132h)、排他的論理和回路133a(133b〜133h)、第2のセレクタ134a(134b〜134h)、第2のフリップフロップ135a(135b〜135h)等により構成されている。なお、第1のフリップフロップ132a(132b〜132h)及び第2のフリップフロップ135a(135b〜135h)はクロック信号ck2により同期して動作している。このような構成により、鍵状態検出信号S1n0〜S1n3、S2n0〜S2n3が生成される。
The configuration of each filter circuit will be described. The
次に、図6を参照しながらイベントジェネレータ14の構成例を説明する。
図6(a)に示すように、本実施形態のイベントジェネレータ14は、セレクタ140、排他的論理和回路141、論理和回路142等により構成されている。このような構成により、鍵状態検出信号S1ij、S2ijの状態に応じて、カウントクロック信号CTij及びリセット(カウントストップ)信号RSijが生成される。
また、図6(b)に示すように、Dフリップフロップ150、排他的論理和回路151により、イベント検出信号EVkijが生成される。
Next, a configuration example of the
As shown in FIG. 6A, the
Further, as shown in FIG. 6B, an event detection signal EVkij is generated by the D flip-
図7に示すように、イベントジェネレータ14において生成されたカウントクロック信号CTij及びリセット信号RSijは、カウントレジスタ15及びMPUインタフェース16に与えられる。カウントレジスタ15は、カウントクロック信号CTijが入力されたらカウントを開始し、リセット信号RSijが入力される度にカウントを再開する動作を行う。
As shown in FIG. 7, the count clock signal CTij and the reset signal RSij generated by the
前記MPUインタフェース16は、「First In, First Out(先入れ先出し)」と呼ば
れる転送方法を実施する回路であり、本実施形態においては、複数段のステージのメモリからなり、格段のステージは入力されたデータを次のデータが入力するまで保持し、次のデータが入力されたときにはそれまで保持していたデータを次のステージに送出する機能を有している。
The
このような構成により、EV100、EV200、EV101、EV201、・・・EVkij、・・・EV11F3、EV21F3等のイベントが発生したときに、中央処理装置(MPU)がMPUインタフェース16に保持されている値を読み出すことによりイベント発生に係わるカウント値、及びカウント値に関するk、i、jの各値を中央処理装置が認識することができる。
With this configuration, when an event such as EV100, EV200, EV101, EV201, ... EVkij, ... EV11F3, EV21F3 occurs, the value held by the
前述したような構成により、図8に示すように、本実施形態の電子楽器のタッチセンサにおいては、2接点型のタッチ検出スイッチを用いて、第1のスイッチ部SW1が開放される前に第2のスイッチ部SW2が再度閉じられるような押鍵があった場合に、その押鍵速度(押鍵強度)を確実に検出することができる。 With the configuration as described above, as shown in FIG. 8, in the touch sensor of the electronic musical instrument of the present embodiment, the two-contact type touch detection switch is used before the first switch unit SW1 is opened. When there is a key depression that causes the second switch unit SW2 to be closed again, the key depression speed (key depression strength) can be reliably detected.
すなわち、図8の特性図に示すような押鍵状態を確実に検出することができる。
図8において、期間t1は第1のスイッチ部SW1がオンとなり、それに続いて第2のスイッチ部SW2がオンとなっているので押鍵の開始時(キーオンタッチ)として検出される。
That is, it is possible to reliably detect the key depression state as shown in the characteristic diagram of FIG.
In FIG. 8, the first switch part SW1 is turned on and the second switch part SW2 is subsequently turned on during the period t1, and is detected as the start of key pressing (key-on touch).
次に、各期間t2、t3、t4は、第2のスイッチ部SW2が開放されたが第1のスイッチ部SW1が開放されていない状態であり、この後、第1のスイッチ部SW1が開放される前に第2のスイッチ部SW2が再度閉じられた状態を示している。本実施形態のカウントレジスタ15は、各期間t2、t3、t4の長さをカウントすることにより、第1のスイッチ部SW1が開放される前に第2のスイッチ部SW2が再度閉じられる押鍵を検出することができる。また、各期間t2、t3、t4の長さをカウントすることにより連続押鍵時の強度を検出するようにしている。
Next, in each of the periods t2, t3, and t4, the second switch unit SW2 is opened, but the first switch unit SW1 is not opened. Thereafter, the first switch unit SW1 is opened. 2 shows a state in which the second switch unit SW2 is closed again before the operation. The
期間t5は、リリースタッチを示しており、第2のスイッチ部SW2が開放されてから第1のスイッチ部SW1が開放されるまでの長さに応じて離鍵時の強さ(オフベロシティ)が検出される。 A period t5 indicates a release touch, and the strength (off velocity) at the time of key release depends on the length from the opening of the second switch unit SW2 to the opening of the first switch unit SW1. Detected.
前述したように、本実施形態の電子楽器のタッチセンサによれば、第1のスイッチ部SW1が開放される前に第2のスイッチ部SW2が再度閉じられる押鍵動作、すなわち、連打を2接点型スイッチを用いて確実に検出することができる。 As described above, according to the touch sensor of the electronic musical instrument of the present embodiment, the key pressing operation in which the second switch unit SW2 is closed again before the first switch unit SW1 is opened, that is, the two hits are repeated. It can be reliably detected using a mold switch.
次に、本実施形態の電子楽器のタッチセンサが電子鍵盤楽器に実際に配設されている様子を説明する。
図9は、本実施形態の電子楽器のタッチセンサが配設される電子鍵盤楽器の概略構成を説明する図である。図9に示すように、鍵盤シャーシ3に回動自在に取り付けられた鍵1及びハンマー10と、鍵1に回動自在に取り付けられ、鍵1の押鍵時にハンマー当接部13aがハンマー10を押圧することによりハンマー10を回動させるジャック13と、ジャック13とハンマー10復帰方向に付勢するとともに、ジャック13を介して鍵1を復帰方向に付勢するばね18とを備えている。
Next, how the touch sensor of the electronic musical instrument of this embodiment is actually disposed on the electronic keyboard musical instrument will be described.
FIG. 9 is a diagram illustrating a schematic configuration of an electronic keyboard musical instrument in which a touch sensor of the electronic musical instrument of the present embodiment is provided. As shown in FIG. 9, the key 1 and the
そして、鍵1の押鍵によるジャック13の回動経路に配置され、ジャック13が当接したときに、ハンマー当接部13aがハンマー10から外れる方向に、ジャック13を鍵1に対して回動させるジャックストッパ20を鍵盤シャーシ3に形成している。
And it arrange | positions in the rotation path | route of the
このような構成において、鍵スイッチ7は1の回動経路に配置されており、鍵1に対する押鍵操作が終了して、鍵1が図9中の時計方向に回動する途中(第1のスイッチ部SW1がオンの状態)において、瞬時に同一鍵を複数回押鍵する連打演奏が行われると、鍵1がばね18の反力に抗して再度下降する。これにより、スイッチ押圧部が鍵スイッチ7を押圧し、第2のスイッチ部SW2が2回目以降のオンとなる。本実施形態の電子楽器のタッチセンサは、このような押鍵操作が行なわれた場合においても確実に検出して押鍵の連打性を向上させることができる。
In such a configuration, the key switch 7 is arranged in one rotation path, and the key pressing operation on the key 1 is completed, and the key 1 is rotated in the clockwise direction in FIG. In the state in which the switch part SW1 is turned on), when a continuous playing performance is performed in which the same key is pressed several times instantaneously, the key 1 descends again against the reaction force of the
(第2の実施形態)
次に、図10〜図15のフローチャートを参照しながら本発明の第2の実施形態を説明する。本実施形態は、最初に押鍵された強度を基準として、2回目以後の押鍵強度補正してより忠実に押鍵強度を算出することができるようにした例を示している。
(Second Embodiment)
Next, a second embodiment of the present invention will be described with reference to the flowcharts of FIGS. This embodiment shows an example in which the key pressing strength can be calculated more faithfully by correcting the key pressing strength for the second and subsequent times based on the strength of the key pressed first.
図10は、初期化処理の手順を説明するフローチャートである。
先ず、ステップS1001においてスキャン対象の鍵盤を初期化する。
次に、ステップS1002において、スキャン対象の鍵盤のキーベロシティを初期化する。
FIG. 10 is a flowchart for explaining the procedure of the initialization process.
First, in step S1001, a keyboard to be scanned is initialized.
Next, in step S1002, the key velocity of the keyboard to be scanned is initialized.
次に、ステップS1003において、スキャン対象の鍵盤に対してフラグをオフにする処理を行う。次に、ステップS1004において、スキャン対象の鍵盤の値を1つインクリメントする処理を行う。 Next, in step S1003, a process for turning off the flag for the keyboard to be scanned is performed. In step S1004, a process of incrementing the value of the keyboard to be scanned by one is performed.
次に、ステップS1005において、鍵盤の値が最大値(例えば、i=128)であるか否かを判断する。この判断の結果、最大値でない場合はステップS1002に戻って前述した処理を繰り返し行う。また、ステップS1005の判断の結果、鍵盤の値が最大値である場合にはステップS1006に進み、その他の初期化処理を行い、その後、メインルーチンにリターンする。 Next, in step S1005, it is determined whether or not the keyboard value is the maximum value (for example, i = 128). If the result of this determination is not the maximum value, the process returns to step S1002 to repeat the above-described processing. If it is determined in step S1005 that the keyboard value is at the maximum value, the process proceeds to step S1006 to perform other initialization processes, and then returns to the main routine.
次に、図11のフローチャートを参照しながらイベント処理について説明する。
最初に、ステップS1101において、発生したイベントが鍵イベントであるか否かを判定する。この判定の結果、鍵イベントであった場合にはステップS1102に進み、鍵処理を行う。その後、メインルーチンにリターンする。
Next, event processing will be described with reference to the flowchart of FIG.
First, in step S1101, it is determined whether the event that has occurred is a key event. If the result of this determination is a key event, processing proceeds to step S1102, where key processing is performed. Thereafter, the process returns to the main routine.
一方、ステップS1101の判定の結果、鍵イベントではなかった場合にはステップS1103に進み、パネルイベントであるか否かを判定する。この判定の結果、パネルイベントである場合にはステップS1104に進んでパネル処理を行う。その後、メインルーチンにリターンする。 On the other hand, if the result of determination in step S1101 is not a key event, processing proceeds to step S1103, where it is determined whether or not it is a panel event. If the result of this determination is a panel event, the process proceeds to step S1104 to perform panel processing. Thereafter, the process returns to the main routine.
また、ステップS1103の判定の結果、パネル処理ではなかった場合にはステップS1105に進んでその他のイベントであるか否かを判定する。この判定の結果、その他のイベントであった場合にはステップS1106に進んでその他のイベント処理を行う。また、ステップS1105の判定の結果、その他のイベントではなかった場合にはメインルーチンにリターンする。 If the result of determination in step S1103 is not panel processing, the process proceeds to step S1105 to determine whether the event is another event. If the result of this determination is another event, the process proceeds to step S1106 to perform other event processing. If the result of determination in step S1105 is not any other event, the process returns to the main routine.
次に、図12のフローチャートを参照しながら鍵処理について説明する。
先ず、ステップS1201において押鍵であるか否かを判定する。この判定の結果、押鍵でなかった場合にはステップS1202に進み、離鍵処理を行う。また、ステップS1201の判定の結果、押鍵であった場合にはステップS1203に進んで鍵フラグはオフか否かを判定する。
Next, key processing will be described with reference to the flowchart of FIG.
First, in step S1201, it is determined whether or not the key is depressed. If the result of this determination is that the key has not been pressed, the process proceeds to step S1202 to perform key release processing. If it is determined in step S1201 that the key has been depressed, the process proceeds to step S1203 to determine whether the key flag is off.
ステップS1203の判定の結果、鍵フラグがオフであった場合にはステップS1204に進み、単独押鍵処理を行う。その後、メインルーチンにリターンする。また、ステップS1203の判定の結果、鍵フラグがオフでなかった場合にはステップS1205に進んで連続押鍵処理を行い、その後、メインルーチンにリターンする。 If the result of determination in step S1203 is that the key flag is off, processing proceeds to step S1204 and single key pressing processing is performed. Thereafter, the process returns to the main routine. If the result of determination in step S1203 is that the key flag is not off, processing advances to step S1205 to perform continuous key pressing processing, and then returns to the main routine.
次に、図13を参照しながら離鍵処理を行う。
先ず、ステップS1301において、第1のスイッチSW1はオフであるか否かを判定する。この判定の結果、第1のスイッチSW1はオンであった場合にはステップS1302に進み鍵フラグをオンにする処理を行う。その後、メインルーチンにリターンする。
Next, a key release process is performed with reference to FIG.
First, in step S1301, it is determined whether or not the first switch SW1 is off. If the result of this determination is that the first switch SW1 is on, processing advances to step S1302 to perform processing for turning on the key flag. Thereafter, the process returns to the main routine.
また、ステップS1301の判定の結果、第1のスイッチSW1がオフであった場合にはステップS1303に進み、鍵フラグをオフにする処理を行う。次に、ステップS1304に進み、消音処理を行い、その後、メインルーチンにリターンする。 If the result of determination in step S1301 is that the first switch SW1 is off, processing proceeds to step S1303 and processing for turning off the key flag is performed. Next, the process proceeds to step S1304 to perform a silencing process, and then returns to the main routine.
次に、図14を参照しながら連続押鍵処理を説明する。
連続押鍵が行われたたら、先ず、ステップS1401でキーベロシティ値を加工する。この加工は、連続押鍵が行なわれた場合のカウント値を調整することにより、自然楽器において行なわれる連続押鍵に近い楽音を発生できるようにするものである。
Next, the continuous key pressing process will be described with reference to FIG.
If continuous key pressing is performed, first, the key velocity value is processed in step S1401. In this process, by adjusting the count value when continuous key pressing is performed, it is possible to generate a musical tone close to that of continuous key pressing performed in a natural musical instrument.
本実施形態においては、下記の「式1」を用いてカウント値を加工するようにしている。
T=T1+A×{(T2−CV(T2)+B)} ・・・(式1)
ただし、T:加工された時間、CV(T2):T2の定義域の中央の値(定義域が128の場合には64)、A:乗算定数、B:加算定数、を夫々示している。なお、キーベロシティ値を加工する方法は前述した方法に限らず種々のアルゴリズムを用いて行うことができる。
In the present embodiment, the count value is processed using the following “Formula 1”.
T = T1 + A × {(T2-CV (T2) + B)} (Formula 1)
However, T: the processing time, CV (T2): the central value of the definition area of T2 (64 when the definition area is 128), A: multiplication constant, and B: addition constant, respectively. The method for processing the key velocity value is not limited to the method described above, and can be performed using various algorithms.
ステップS1401においてカウント値の加工処理が終了したら、次に、ステップS1402に進み、ステップS1401で加工された時間Tに応じた発音処理を行う。このように、加工された時間Tに応じた発音処理を行うことにより、最初に弾かれた鍵のベロシティを基準にして、2回目以後の押鍵の値をプラスマイナスした楽音で発音することが可能となり、自然楽器による連続押鍵に近づけることができる。その後、メインルーチンにリターンする。 When the processing of the count value is completed in step S1401, the process proceeds to step S1402, where sound generation processing corresponding to the time T processed in step S1401 is performed. In this way, by performing the sound generation process according to the processed time T, it is possible to generate a tone with a plus or minus value of the key depression after the second time on the basis of the velocity of the key played first. It becomes possible, and it can be approximated to a continuous key press by a natural musical instrument. Thereafter, the process returns to the main routine.
次に、図15を参照しながら単独押鍵処理について説明する。
先ず、ステップS1501において、キーベロシティをメモリに記憶する。このキーベロシティは発音処理に使用される。次に、ステップS1502において、メモリに記憶しているキーベロシティに基づいて発音処理を行う。
Next, the single key pressing process will be described with reference to FIG.
First, in step S1501, the key velocity is stored in the memory. This key velocity is used for sound generation processing. Next, in step S1502, sound generation processing is performed based on the key velocity stored in the memory.
10 クロックジェネレータ
11 スキャンジェネレータ
12 キースイッチマトリックス
13 チャタリングフィルタ
14 イベントジェネレータ
15 カウントレジスタ
16 MPUインタフェース
10 clock generator 11
Claims (2)
上記時間差を検出するクロックカウンタと、
上記カウンタのカウントストップを指示する指示手段と、
上記指示手段に拠るカウントストップ指示が為された場合に、上記カウント値と共に該カウント値に関連する鍵に関する情報を記憶する記憶手段と、
上記カウント値及び該カウント値に関連する鍵に関する情報が上記記憶手段に記憶されたことを、上記鍵情報を処理する処理手段に割込信号として通知する通知手段と、
を備え、
上記鍵情報が発生したことをイベントとして処理できるようにしたことを特徴とする電子楽器の鍵情報検出装置。 In a key information detecting device for an electronic musical instrument that detects a single key and a continuous key of the switch and a speed of the key to be pressed according to a switching time and a switching time difference of a plurality of switches that are opened and closed according to a key pressing position
A clock counter for detecting the time difference;
Instruction means for instructing to stop the counting of the counter;
Storage means for storing information related to the key associated with the count value together with the count value when a count stop instruction is made by the instruction means;
Notification means for notifying the processing means for processing the key information as an interrupt signal that information relating to the count value and the key related to the count value is stored in the storage means;
With
An apparatus for detecting key information of an electronic musical instrument, wherein the occurrence of the key information can be processed as an event.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010190736A JP2011018066A (en) | 2010-08-27 | 2010-08-27 | Key information detecting device of electronic musical instrument |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010190736A JP2011018066A (en) | 2010-08-27 | 2010-08-27 | Key information detecting device of electronic musical instrument |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006036698A Division JP2007218991A (en) | 2006-02-14 | 2006-02-14 | Electronic musical instrument |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2011018066A true JP2011018066A (en) | 2011-01-27 |
Family
ID=43595840
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010190736A Pending JP2011018066A (en) | 2010-08-27 | 2010-08-27 | Key information detecting device of electronic musical instrument |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2011018066A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05165475A (en) * | 1991-12-11 | 1993-07-02 | Yamaha Corp | Keyboard unit for electronic musical instrument |
JPH05289669A (en) * | 1992-04-08 | 1993-11-05 | Kawai Musical Instr Mfg Co Ltd | Electronic musical instrument |
JPH06230782A (en) * | 1993-01-29 | 1994-08-19 | Kawai Musical Instr Mfg Co Ltd | Electronic musical instrument |
JPH06274165A (en) * | 1993-03-24 | 1994-09-30 | Roland Corp | Keying detecting device |
JPH11352958A (en) * | 1998-06-11 | 1999-12-24 | Casio Comput Co Ltd | Automatic play device |
JP2000187488A (en) * | 1998-10-15 | 2000-07-04 | Yamaha Corp | Keyboard device and electronic keyboard instrument having this keyboard device |
-
2010
- 2010-08-27 JP JP2010190736A patent/JP2011018066A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05165475A (en) * | 1991-12-11 | 1993-07-02 | Yamaha Corp | Keyboard unit for electronic musical instrument |
JPH05289669A (en) * | 1992-04-08 | 1993-11-05 | Kawai Musical Instr Mfg Co Ltd | Electronic musical instrument |
JPH06230782A (en) * | 1993-01-29 | 1994-08-19 | Kawai Musical Instr Mfg Co Ltd | Electronic musical instrument |
JPH06274165A (en) * | 1993-03-24 | 1994-09-30 | Roland Corp | Keying detecting device |
JPH11352958A (en) * | 1998-06-11 | 1999-12-24 | Casio Comput Co Ltd | Automatic play device |
JP2000187488A (en) * | 1998-10-15 | 2000-07-04 | Yamaha Corp | Keyboard device and electronic keyboard instrument having this keyboard device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2772903A1 (en) | Electroacoustic signal emitter device and electroacoustic signal emitter method | |
JP6232850B2 (en) | Touch detection device, touch detection method, electronic musical instrument, and program | |
JP7306402B2 (en) | SOUND SIGNAL GENERATOR, KEYBOARD INSTRUMENT AND PROGRAM | |
JP5652415B2 (en) | Touch detection device, touch detection method, and electronic musical instrument | |
JP2014059534A (en) | Musical sound generator, musical sound generating method, and program | |
JP6825718B2 (en) | Sound output device | |
US8785759B2 (en) | Electric keyboard musical instrument, method executed by the same, and storage medium | |
JP3561947B2 (en) | Performance detection device and electronic musical instrument | |
JPWO2019092775A1 (en) | Sound sources, keyboard instruments and programs | |
JP2007218991A (en) | Electronic musical instrument | |
JP2011018066A (en) | Key information detecting device of electronic musical instrument | |
JP5976362B2 (en) | Electronic keyboard instrument | |
JP2010072417A (en) | Electronic musical instrument and musical sound creating program | |
JP2019168517A5 (en) | ||
JP5949879B2 (en) | Touch detection device, touch detection method, and electronic musical instrument | |
JP5821170B2 (en) | Electronic music apparatus and program | |
JPS6334473B2 (en) | ||
JP2016038544A (en) | Touch detection device, method and program and electronic musical instrument | |
JPH0417986Y2 (en) | ||
JP2001312279A (en) | Keyboard device for electronic musical instrument | |
TW201833733A (en) | Method For Operating An Active Input Element And Corresponding Input Element, Input Arrangement And Computer Program Product | |
JP5434395B2 (en) | Electronic percussion instrument | |
JP2008096526A (en) | Electronic keyboard instrument | |
JP2008286858A (en) | Electronic music sound generator | |
JP4935348B2 (en) | Musical sound control device and musical sound control processing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120521 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120529 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120730 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120904 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121105 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130212 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130412 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20130521 |