JP2001209379A - Electronic instrument - Google Patents

Electronic instrument

Info

Publication number
JP2001209379A
JP2001209379A JP2000017909A JP2000017909A JP2001209379A JP 2001209379 A JP2001209379 A JP 2001209379A JP 2000017909 A JP2000017909 A JP 2000017909A JP 2000017909 A JP2000017909 A JP 2000017909A JP 2001209379 A JP2001209379 A JP 2001209379A
Authority
JP
Japan
Prior art keywords
key
instruction
sounding
sound generation
stop
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2000017909A
Other languages
Japanese (ja)
Other versions
JP4170549B2 (en
JP2001209379A5 (en
Inventor
Shinji Asakawa
信二 浅川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Roland Corp
Original Assignee
Roland Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Roland Corp filed Critical Roland Corp
Priority to JP2000017909A priority Critical patent/JP4170549B2/en
Publication of JP2001209379A publication Critical patent/JP2001209379A/en
Publication of JP2001209379A5 publication Critical patent/JP2001209379A5/ja
Application granted granted Critical
Publication of JP4170549B2 publication Critical patent/JP4170549B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an electronic instrument capable of visually satisfying a listener even when sounding start information and sounding halt information are given to a key during operation of the key. SOLUTION: This electronic instrument receives instructions to start and stop sounding from an external sequencer by a MIDI interface 14, and performs automatic playing by producing musical sound by a sound production control part 16 and emitting the sound from a loudspeaker 17, and makes a key drive control part 15 operate keys 21a in synchronism with the emission of the musical sound by solenoids 23 and detects key press action and completion of key release action of the keys in operation by a key switch 21b, and when it is instructed to stop sounding during key press action, the instrument stores the sounding stop instruction in a RAM, and performs key release action by executing the stored sounding stop instruction in timing of the end of the key press action.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、複数の鍵が配列さ
れた鍵盤を備えた電子楽器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument having a keyboard on which a plurality of keys are arranged.

【0002】[0002]

【従来の技術】従来より、鍵盤の各鍵をソレノイドで駆
動する電子楽器が知られている。このような電子楽器で
は、外部のシーケンサ等から楽音の発音開始指示および
発音停止指示を入力し、入力された発音開始指示,発音
停止指示に基づいてソレノイドをオン,オフすることに
より鍵を駆動するとともに、その鍵の、ソレノイドのス
トローク等の機械的な応答遅れによる遅延時間を見込ん
で、所定時間遅延された楽音指示情報で音源を駆動する
ということが行なわれている。
2. Description of the Related Art Conventionally, there has been known an electronic musical instrument in which each key of a keyboard is driven by a solenoid. In such an electronic musical instrument, a key is driven by inputting a tone generation start instruction and a sound generation stop instruction from an external sequencer or the like, and turning on and off a solenoid based on the input sound generation start instruction and sound generation stop instruction. At the same time, in consideration of a delay time due to a mechanical response delay such as a stroke of a solenoid of the key, a sound source is driven by musical sound instruction information delayed for a predetermined time.

【0003】[0003]

【発明が解決しようとする課題】ところが、ある鍵の動
作中に、その鍵に関し、比較的短い時間で発音開始情報
と発音停止情報とがあった場合、その鍵が完全に押鍵さ
れる前に離鍵が開始されたり、あるいはその鍵が完全に
離鍵される前に押鍵が開始されるため、鍵の動きが不完
全に再現されるという不都合がある。
However, if there is sounding start information and sounding stop information in a relatively short time during the operation of a certain key, the key is not completely depressed. Since the key release is started or the key press is started before the key is completely released, there is a disadvantage that the movement of the key is incompletely reproduced.

【0004】特に、トリル奏法のように、ある鍵が動作
中に、その鍵に関し、比較的短い時間で発音開始情報と
発音停止情報とが複数回あった場合、その鍵が完全に押
鍵される前に離鍵が開始される動作と、その鍵が完全に
離鍵される前に押鍵が開始される動作とが短時間で繰り
返し行なわれるため、その鍵が短いストロークでブルブ
ルと震える状態になり非常にぎごちなく見苦しい動作を
してしまう。
[0004] In particular, when a key is operated multiple times in a relatively short time while the key is operating, such as in a trill playing technique, the key is completely depressed. Key release before the key is completely released and key depression before the key is completely released are repeated in a short time, so that the key trembles with a short stroke And behaves very ugly and unsightly.

【0005】本発明は、上記事情に鑑み、ある鍵の動作
中に、その鍵に関し、比較的短い時間で発音開始情報と
発音停止情報があった場合でも、聴者を視覚的に満足さ
せることのできる電子楽器を提供することを目的とす
る。
[0005] In view of the above circumstances, the present invention is intended to visually satisfy the listener even when there is sounding start information and sounding stop information in a relatively short time during operation of a certain key. It is intended to provide an electronic musical instrument that can be used.

【0006】[0006]

【課題を解決するための手段】上記目的を達成する本発
明の電子楽器は、上下に動作可能な鍵が複数配列されて
いる鍵盤と、押鍵指示に応じて対応する鍵を押鍵動作さ
せ、離鍵指示に応じて対応する鍵を離鍵動作させる鍵駆
動手段を備え、その鍵駆動手段は、押鍵指示に応じて対
応する鍵を押鍵動作している途中でその鍵に対する離鍵
指示があった場合、離鍵指示があったことを記憶し、そ
の鍵が所定の位置まで押鍵動作した後、その記憶に基づ
いて離鍵動作に移行するよう鍵を駆動するものであるこ
とを特徴とする。
According to the present invention, there is provided an electronic musical instrument in which a plurality of vertically operable keys are arranged on a keyboard, and a corresponding key is depressed in response to a key depression instruction. Key driving means for releasing a corresponding key in response to a key release instruction, wherein the key driving means releases the key in response to the key pressing instruction while the corresponding key is being pressed. When an instruction is given, the key release operation is stored, and after the key is pressed to a predetermined position, the key is driven to shift to the key release operation based on the storage. It is characterized by.

【0007】本発明の電子楽器では、押鍵指示に応じて
対応する鍵を押鍵動作している途中でその鍵に対する離
鍵指示があった場合、離鍵指示があったことを記憶し、
その鍵が所定の位置まで押鍵動作した後、その記憶に基
づいて離鍵動作に移行するよう鍵を駆動するものである
ため、鍵が完全に押鍵されてから離鍵動作を開始するこ
とができる。従って、従来の電子楽器のように、鍵が完
全に押鍵される前に離鍵動作が開始されて鍵の動きが小
さくなり非常にぎごちなく見苦しい動作を行なうという
ようなことはなく、鍵の動きが自然であり聴者を視覚的
に満足させることができる。
In the electronic musical instrument of the present invention, when a key release instruction is given to a corresponding key while the corresponding key is being pressed in response to the key press instruction, the fact that the key release instruction is issued is stored.
After the key is depressed to a predetermined position, the key is driven to shift to the key release operation based on the memory, so the key release operation must be started after the key is completely depressed. Can be. Therefore, unlike a conventional electronic musical instrument, the key release operation is started before the key is completely depressed, and the key movement is reduced, so that the operation is not very ugly and unsightly. The movement is natural and can visually satisfy the listener.

【0008】ここで、本発明の電子楽器は、以下のよう
に把握することもできる。すなわち、本発明の電子楽器
は、 (1)上下に動作可能な鍵が複数配列されてなる鍵盤 (2)各鍵それぞれに対応した各楽音の発音開始指示お
よび発音停止指示を取得する発音指示取得手段 (3)上記発音指示取得手段からの発音開始指示および
発音停止指示に応じて、それぞれ、その発音開始指示に
応じた鍵を押鍵動作させ、およびその発音停止指示に応
じた鍵を離鍵動作させる鍵駆動手段 (4)鍵が駆動されている途中でその駆動されている鍵
に関する新たな発音開始指示あるいは発音停止指示があ
った場合に、その新たな発音開始指示あるいは発音停止
指示を記憶する記憶手段 (5)動作中の鍵の一回の押鍵動作あるいは離鍵動作が
終了したタイミングにおける上記記憶手段に記憶されて
いる内容に応じて、その鍵の次の動作を制御する鍵駆動
制御手段 を備えたことを特徴とする。
Here, the electronic musical instrument of the present invention can be understood as follows. That is, the electronic musical instrument of the present invention comprises: (1) a keyboard in which a plurality of vertically operable keys are arranged; (2) a sounding instruction acquisition for acquiring a sounding start instruction and a sounding stop instruction for each musical tone corresponding to each key. Means (3) In response to a sounding start instruction and a sounding stop instruction from the sounding instruction acquisition means, a key corresponding to the sounding start instruction is depressed, and a key corresponding to the sounding stop instruction is released. Key driving means to be operated (4) When a new sound generation start instruction or sound generation stop instruction is issued for the driven key while the key is being driven, the new sound generation start instruction or sound generation stop instruction is stored. (5) The next operation of the key in operation is controlled according to the contents stored in the storage unit at the timing when one key press operation or key release operation is completed. Characterized by comprising the key driving control means for.

【0009】本発明の電子楽器は、鍵が駆動中に新たな
発音開始情報あるいは発音停止情報があった場合、その
新たな発音開始指示あるいは発音停止指示を記憶してお
き、動作中の鍵の一回の押鍵動作あるいは離鍵動作が終
了したタイミングにおける上記記憶手段に記憶されてい
る内容に応じて、その鍵の次の動作を制御するものであ
るため、押鍵動作が終了したタイミングで離鍵動作を行
なったり、あるいは離鍵動作が終了したタイミングで押
鍵動作を行なったりすることができる。従って、鍵が動
作中に、比較的短い時間で発音開始情報と発音停止情報
があった場合でも、鍵が完全に押鍵され、あるいは鍵が
完全に離鍵されてから、その鍵に関する次の動作が行な
われる。
In the electronic musical instrument according to the present invention, when there is new tone generation start information or tone stop information while the key is being driven, the new tone generation start instruction or tone stop instruction is stored, and the key of the key being operated is stored. Since the next operation of the key is controlled in accordance with the contents stored in the storage means at the timing when one key pressing operation or key releasing operation is completed, the timing at which the key pressing operation is completed is determined. A key release operation can be performed, or a key press operation can be performed at the timing when the key release operation is completed. Therefore, even if there is sound generation start information and sound generation stop information in a relatively short time during the operation of the key, the next time the key is completely depressed or the key is completely released, The operation is performed.

【0010】ここで、本発明の電子楽器において、上記
鍵駆動制御手段は、動作中の鍵の一回の押鍵動作あるい
は離鍵動作が終了した時点でのその鍵に関する最終の指
示が発音開始指示あるいは発音停止指示であった場合
に、その鍵が、それぞれ押鍵状態あるいは離鍵状態で停
止するようにその鍵の次の動作を制御するものであるこ
とが好ましい。
Here, in the electronic musical instrument according to the present invention, the key drive control means outputs a final instruction relating to the key at the time when one key-pressing operation or key-release operation of the operating key is completed. It is preferable that the next operation of the key is controlled so that when the instruction is the instruction or the sound generation stop instruction, the key stops in the key pressed state or the key released state, respectively.

【0011】鍵駆動制御手段が、動作中の鍵を、上記の
ように制御するものであると、鍵が押鍵動作中に複数回
の発音開始指示および発音停止指示があり最終の指示が
発音停止指示であった場合、その鍵に関し押鍵動作を完
全に終了してから離鍵動作を開始させることができる。
また、鍵が離鍵動作中に複数回の発音開始指示および発
音停止指示があり最終の指示が発音開始指示であった場
合、その鍵に関し離鍵動作を完全に終了してから押鍵動
作を開始させることができる。従って、トリル奏法に代
表されるように、比較的短い時間で発音開始情報と発音
停止情報とが複数回あった場合であっても、鍵が完全に
押鍵される前に離鍵が開始される動作と、鍵が完全に離
鍵される前に押鍵が開始される動作とが短時間で繰り返
し行なわれるようなことはなく、聴者を視覚的に満足さ
せることができる。
If the key drive control means controls the operating key as described above, there are a plurality of sounding start instructions and sounding stop instructions during the key pressing operation, and the final instruction is sounding. In the case of a stop instruction, the key release operation can be started after the key pressing operation for the key has been completely completed.
If a key is released multiple times during the key release operation and there is a sound generation stop instruction and the final instruction is a sound generation start instruction, the key release operation is completed after the key release operation is completed for that key. You can get started. Therefore, even when the sound generation start information and the sound generation stop information occur a plurality of times in a relatively short time, as represented by the trill playing method, the key release is started before the key is completely pressed. This operation and the operation of starting key depression before the key is completely released are not repeated in a short time, and the listener can be visually satisfied.

【0012】また、本発明の電子楽器において、上記鍵
駆動制御手段は、動作中の鍵に関しその動作開始後所定
時間経過したことをもってその鍵の一回の押鍵動作ある
いは離鍵動作が終了したものとみなして、その鍵に関す
る次の動作を制御するものであることも好ましい態様で
ある。
Further, in the electronic musical instrument according to the present invention, the key drive control means terminates a single key-pressing operation or a key-release operation when a predetermined time has elapsed after the operation of the operating key. It is also preferable that the next operation related to the key is controlled.

【0013】鍵の動作時間は、その鍵を駆動する鍵駆動
手段固有の特性に応じて定まるため、その特性に基づい
て所定時間を測定しておき、動作中の鍵に関しその動作
開始後その所定時間経過したことをもって、その鍵に関
する次の動作を制御すると、制御を簡単に行なうことが
できる。
Since the operation time of the key is determined according to the characteristic of the key driving means for driving the key, a predetermined time is measured on the basis of the characteristic, and after the operation of the key is started, the predetermined time is measured. If the next operation related to the key is controlled after the passage of time, the control can be easily performed.

【0014】さらに、本発明の電子楽器において、上記
鍵盤が、各鍵の押鍵動作および離鍵動作完了を検出する
センサを備え、上記鍵駆動制御手段は、動作中の鍵に関
し、その動作開始後のセンサの動作完了検出状態に基づ
いてその鍵の一回の押鍵動作あるいは離鍵動作が終了し
たことを認識して、その鍵に関する次の動作を制御する
ものであってもよい。
Further, in the electronic musical instrument of the present invention, the keyboard includes a sensor for detecting completion of a key press operation and a key release operation of each key, and the key drive control means relates to a key in operation and starts operation of the key. The next operation related to the key may be controlled by recognizing that one key press operation or key release operation of the key has been completed based on the operation completion detection state of the subsequent sensor.

【0015】このように構成すると、動作中の鍵に関
し、その鍵の一回の押鍵動作および離鍵動作完了に基づ
いて、その鍵に関する次の動作を制御することができ
る。
With this configuration, the next operation of the key in operation can be controlled based on the completion of one key press operation and the key release operation of the key.

【0016】また、本発明の電子楽器において、上記鍵
盤が、各鍵の押鍵動作を検出するセンサを備え、上記鍵
駆動制御手段が、各鍵の押鍵動作がその各鍵の発音開始
指示の有無と上記センサの検出状態とに応じて、その各
鍵が発音開始指示に応じて行なわれたものか否かを判定
し、その各鍵が発音開始指示によらずに押鍵されていた
ときはその各鍵の駆動を停止するものであってもよい。
Further, in the electronic musical instrument of the present invention, the keyboard includes a sensor for detecting a key pressing operation of each key, and the key drive control means determines that the key pressing operation of each key is a sounding start instruction of each key. In accordance with the presence / absence and the detection state of the sensor, it is determined whether or not each key is performed in response to the sound generation start instruction, and each key is depressed regardless of the sound generation start instruction. At that time, the driving of each key may be stopped.

【0017】このようにすると、発音開始指示による鍵
動作よりも演奏者により押鍵される鍵動作の方を優先さ
せることができる。
With this configuration, it is possible to give priority to the key operation pressed by the player over the key operation in accordance with the tone generation start instruction.

【0018】[0018]

【発明の実施の形態】以下、本発明の実施形態について
説明する。
Embodiments of the present invention will be described below.

【0019】図1は、本発明の電子楽器の一実施例の回
路ブロック図である。
FIG. 1 is a circuit block diagram of one embodiment of the electronic musical instrument of the present invention.

【0020】図1に示す電子楽器10には、ROM11
と、RAM12と、CPU13と、MIDIインターフ
ェース14と、鍵盤装置20と、鍵駆動制御部15と、
発音制御部16と、スピーカ17とが備えられている。
ROM11,RAM12,CPU13,MIDIインタ
ーフェース14,鍵盤装置20,鍵駆動制御部15,発
音制御部16は、バス18によって互いに接続されてい
る。また、鍵駆動制御部15には鍵盤装置20が接続さ
れ、発音制御部16にはスピーカ17が接続されてい
る。
The electronic musical instrument 10 shown in FIG.
RAM 12, CPU 13, MIDI interface 14, keyboard device 20, key drive control unit 15,
A sound control unit 16 and a speaker 17 are provided.
The ROM 11, the RAM 12, the CPU 13, the MIDI interface 14, the keyboard device 20, the key drive control unit 15, and the tone generation control unit 16 are connected to each other by a bus 18. Further, a keyboard device 20 is connected to the key drive control unit 15, and a speaker 17 is connected to the sound generation control unit 16.

【0021】ROM11には、この図1に示す電子楽器
10全体の制御を行なうためのプログラムが格納されて
いる。
The ROM 11 stores a program for controlling the entire electronic musical instrument 10 shown in FIG.

【0022】RAM12は、後述するテーブルを記憶す
る領域や、上述のプログラム等を実行する際に必要な作
業領域を有する。
The RAM 12 has an area for storing a table to be described later and a work area necessary for executing the above-described programs and the like.

【0023】CPU13は、ROM11に格納されたプ
ログラムを読み出して実行することによりこの電子楽器
10全体の制御を行なう。
The CPU 13 controls the entire electronic musical instrument 10 by reading and executing a program stored in the ROM 11.

【0024】MIDIインターフェース14は、外部の
シーケンサから出力される、後述する各鍵21それぞれ
に対応した各楽音の発音開始指示および発音停止指示を
取得する。取得された発音開始指示および発音停止指示
は、CPU13で実行されるプログラムを介してRAM
12に格納され、あるいは発音制御部16に入力され
る。
The MIDI interface 14 obtains a tone generation start instruction and a tone generation stop instruction of each musical tone corresponding to each key 21 described later, which are output from an external sequencer. The acquired sound generation start instruction and sound generation stop instruction are stored in a RAM via a program executed by the CPU 13.
12 or input to the sound control unit 16.

【0025】鍵盤装置20には、鍵盤21と、鍵操作検
出部22と、ソレノイド23とが備えられている。
The keyboard device 20 includes a keyboard 21, a key operation detecting unit 22, and a solenoid 23.

【0026】鍵盤21には、上下に動作可能な鍵21a
が複数配列されている。また、この鍵盤21には、各鍵
21aの押鍵動作および離鍵操作完了を検出する鍵スイ
ッチ21bが備えられている。
The keyboard 21 has a key 21a which can be moved up and down.
Are arranged in a plurality. The keyboard 21 is provided with a key switch 21b for detecting a key press operation and a key release operation completion of each key 21a.

【0027】鍵操作検出部22は、各鍵21aの押鍵,
離鍵の各タイミングおよび各速度を検出して、バス18
を経由してCPU13に通知する。
The key operation detecting section 22 detects the key depression of each key 21a,
Detecting each timing and each speed of key release, the bus 18
Is notified to the CPU 13 via.

【0028】ソレノイド23は、本発明にいう鍵駆動手
段に相当し、MIDIインターフェース14からの発音
開始指示および発音停止指示に応じて、それぞれ、発音
開始指示に応じた鍵21aを押鍵動作させ、および発音
停止指示に応じた鍵21aを離鍵動作させる。
The solenoid 23 corresponds to a key driving means according to the present invention. In response to a sound generation start instruction and a sound generation stop instruction from the MIDI interface 14, each of the solenoids 23 presses a key 21a corresponding to the sound generation start instruction. And the key 21a in response to the sound generation stop instruction is released.

【0029】鍵駆動制御部15は、詳細は後述するが、
動作中の鍵21aの、その鍵21aの次の動作を制御す
る。
The key drive controller 15 will be described in detail later.
Controls the next operation of the key 21a in operation.

【0030】発音制御部16には、図示しない音源が備
えられており、この音源では発音制御部16に入力され
た発音開始指示および発音停止指示に基づいて楽音が生
成される。生成された楽音は、図示しない増幅器により
増幅された後スピーカ17から放音され、これにより自
動演奏が行なわれる。この自動演奏時には、発音開始指
示および発音停止指示が鍵駆動制御部15にも入力さ
れ、鍵駆動制御部15は、入力された発音開始指示,発
音停止指示に基づいてソレノイド23への電力の供給,
遮断を行なうことによりそのソレノイド23をオン,オ
フさせる。このようにして、スピーカ17からの楽音の
放音とタイミングを合わせて鍵21aが自動操作され
る。
The sound control unit 16 includes a sound source (not shown). The sound source generates a tone based on a sound start instruction and a sound stop instruction input to the sound control unit 16. The generated musical tone is amplified by an amplifier (not shown) and then emitted from the speaker 17, whereby an automatic performance is performed. At the time of this automatic performance, a sound generation start instruction and a sound generation stop instruction are also input to the key drive control unit 15, and the key drive control unit 15 supplies power to the solenoid 23 based on the input sound generation start instruction and sound generation stop instruction. ,
By shutting off, the solenoid 23 is turned on and off. In this manner, the key 21a is automatically operated in synchronism with the emission of the musical sound from the speaker 17.

【0031】図2は、図1に示す鍵盤のある1つの鍵に
おける、押鍵動作および離鍵動作を示す図である。
FIG. 2 is a diagram showing a key pressing operation and a key releasing operation for one key having the keyboard shown in FIG.

【0032】図2の横軸は時間を示し、縦軸は鍵の上下
の高さを示す。鍵21aは、時刻t1以前では完全な離
鍵状態にある。時刻t1において発音開始指示がある
と、鍵駆動制御部15は、ソレノイド23を駆動させて
鍵21aを押下する。時刻t1から押鍵動作が開始され
た鍵21aは、ソレノイド23のストローク等によるタ
イムラグにより、図2の実線Aで示すように完全な押鍵
状態に向けて押下されていく。ここで、鍵21aが押下
されている途中の時刻t2においてその鍵21aに関す
る新たな発音停止指示があった場合に、鍵駆動制御部1
5は、その鍵21aに関する時刻t1における発音開始
指示に応じた動作終了時刻t3を待って、その鍵21a
に、時刻t2における新たな発音停止指示に応じた動作
を行なわせる。従って、鍵21aは、時刻t3で完全に
押鍵状態にされてから離鍵動作が開始される。完全に押
鍵状態になった鍵の位置が、本発明における「所定の位
置」に相当する。
In FIG. 2, the horizontal axis represents time, and the vertical axis represents the vertical height of the key. The key 21a is in a completely released state before time t1. At time t1, when there is a sound generation start instruction, the key drive control unit 15 drives the solenoid 23 to depress the key 21a. The key 21a whose key pressing operation is started from the time t1 is pressed down toward a complete key pressing state as shown by a solid line A in FIG. 2 due to a time lag due to a stroke of the solenoid 23 or the like. Here, at time t2 when the key 21a is being depressed, if there is a new sound generation stop instruction for the key 21a, the key drive control unit 1
5 waits for an operation end time t3 according to the sound generation start instruction at time t1 relating to the key 21a, and waits for the key 21a.
At a time t2. Therefore, the key release operation is started after the key 21a is completely depressed at time t3. The position of the key in the completely depressed state corresponds to the "predetermined position" in the present invention.

【0033】時刻t3で離鍵動作が開始された鍵21a
は、やはりソレノイド23のストローク等によるタイム
ラグにより、図2の実線Aで示すように完全な離鍵状態
に向けて上方に移動していく。ここで、時刻t2におけ
る発音停止指示に応じて鍵21aが上方に移動している
途中の時刻t4においてその鍵21aに関する新たな発
音開始指示があった場合に、鍵駆動制御部15は、その
鍵21aに関する時刻t2における発音停止指示に応じ
た動作終了時刻t5を待って、その鍵21aに、時刻t
4における新たな発音開始指示に応じた動作を行なわせ
る。従って、鍵21aは、時刻t5で完全に離鍵状態に
されてから押鍵動作が開始される。
The key 21a whose key release operation has started at time t3
Also moves upward toward the complete key release state as shown by the solid line A in FIG. 2 due to the time lag due to the stroke of the solenoid 23 and the like. Here, when there is a new sounding start instruction related to the key 21a at time t4 while the key 21a is moving upward in response to the sounding stop instruction at time t2, the key drive control unit 15 sets the key Waiting for the operation end time t5 in response to the sound generation stop instruction at time t2 relating to the key 21a, the key 21a stores the
4 to perform an operation according to the new tone generation start instruction. Therefore, the key pressing operation is started after the key 21a is completely released at time t5.

【0034】一方、従来の電子楽器では、破線Bに示す
ように、時刻t1で押鍵動作が開始された鍵21aは、
完全に押鍵される前に時刻t2で離鍵動作が開始される
ため、鍵21aの動きが小さくなり非常にぎごちなく見
苦しい動作をしてしまう。本実施形態では、鍵21aが
完全に押鍵されてから離鍵が開始され、また鍵21aが
完全に離鍵されてから押鍵が開始されるため、鍵21a
の動きが自然であり聴者を視覚的に満足させることがで
きる。
On the other hand, in the conventional electronic musical instrument, as indicated by a broken line B, the key 21a whose key pressing operation is started at time t1 is:
Since the key release operation is started at time t2 before the key is completely depressed, the movement of the key 21a becomes small, resulting in a very ugly and unsightly operation. In the present embodiment, the key release is started after the key 21a is completely released, and the key release is started after the key 21a is completely released.
Is natural and can satisfy the listener visually.

【0035】図3は、ある鍵の押鍵動作中に、発音開始
指示と発音停止指示があった場合の、その鍵の押鍵動作
および離鍵動作を示す図である。
FIG. 3 is a diagram showing a key-pressing operation and a key-release operation of a key when a sound-generation start instruction and a sound-generation stop instruction are issued during the key depression operation of the key.

【0036】図3に示す時刻t1における発音開始指示
により、鍵21aは、実線Aで示すように押鍵状態に向
けて押下されていく。ここで、鍵21aが押下されてい
る途中の時刻t2において発音停止指示があり、次いで
時刻t3において発音開始指示がある。鍵駆動制御部1
5では、押鍵中の鍵21aの一回の押鍵動作が終了した
時点での鍵21aに関する最終の指示が発音開始指示で
あるため、鍵21aが、押鍵状態で停止するように鍵2
1aの次の動作を制御する。一方、従来の電子楽器で
は、破線Bに示すように、時刻t1で押鍵動作が開始さ
れた鍵21aは、完全に押鍵される前に時刻t2で離鍵
動作が開始され、次いで時刻t3で押鍵動作が開始する
ため、鍵21aが小さな動きを行ない見た目に悪い。
In response to the tone generation start instruction at time t1 shown in FIG. 3, the key 21a is depressed toward the depressed state as indicated by the solid line A. Here, there is a sound emission stop instruction at time t2 while the key 21a is being pressed, and then there is a sound generation start instruction at time t3. Key drive control unit 1
In No. 5, since the last instruction related to the key 21a at the time when one key pressing operation of the key 21a being pressed is completed is the sounding start instruction, the key 2a is stopped so that the key 21a stops in the key pressed state.
The next operation of 1a is controlled. On the other hand, in the conventional electronic musical instrument, as shown by the broken line B, the key 21a whose key pressing operation is started at time t1 starts the key releasing operation at time t2 before the key is completely pressed, and then at time t3. , The key pressing operation is started, so that the key 21a makes a small movement and the appearance is bad.

【0037】尚、図3に示す例では、発音開始指示→発
音停止指示→発音開始指示の3つの指示の場合である
が、5つ以上の指示の場合(押鍵動作中に、複数の発音
開始指示および発音停止指示があり、最終の指示が発音
開始指示であった場合は、必ず奇数の指示となる)であ
っても、全ての指示には追従することなく、最終の発音
開始指示に従って押鍵状態で停止するように鍵21aの
次の動作が制御される。このように、本実施形態では、
ある鍵21aの押鍵動作中に、複数の発音開始指示およ
び発音停止指示があり、最終の指示が発音開始指示であ
った場合は、その鍵21aが完全に押鍵状態になるよう
に、その鍵21aの次の動作が制御される。従って、そ
の鍵21aの動きは自然であり聴者を視覚的に満足させ
ることができる。
In the example shown in FIG. 3, there are three instructions of a sound generation start instruction → a sound generation stop instruction → a sound generation start instruction. However, in the case of five or more instructions (a plurality of sounds are generated during a key pressing operation). If there is a start instruction and a sound stop instruction, and the final instruction is a sound start instruction, the instruction will always be an odd number). The next operation of the key 21a is controlled so as to stop in the key pressed state. Thus, in the present embodiment,
If there are a plurality of sounding start instructions and sounding stop instructions during a key pressing operation of a key 21a, and if the final instruction is a sounding starting instruction, the key 21a is depressed so that the key 21a is completely depressed. The next operation of the key 21a is controlled. Therefore, the movement of the key 21a is natural and the listener can be visually satisfied.

【0038】図4は、ある鍵の押鍵動作中に、複数の発
音開始指示および発音停止指示があり、最終の指示が発
音停止指示であった場合の、その鍵の押鍵動作および離
鍵動作を示す図である。
FIG. 4 shows a key-pressing operation and a key-release operation of a key when there are a plurality of sounding start instructions and sounding stop instructions during a key-pressing operation of a key, and the final instruction is a sounding stop instruction. It is a figure showing an operation.

【0039】図4に示す時刻t1における発音開始指示
により、鍵21aは、実線Aで示すように押鍵状態に向
けて押下されていく。ここで、鍵21aが押下されてい
る途中の時刻t2において発音停止指示があり、次いで
時刻t3において発音開始指示があり、さらに時刻t4
において発音停止指示がある。鍵駆動制御部15では、
押鍵中の鍵21aの一回の押鍵動作が終了した時点での
鍵21aに関する最終の指示が発音停止指示であるた
め、その鍵21aの一回の押鍵動作が終了したタイミン
グから、鍵21aの離鍵状態が開始するようにその鍵2
1aの次の動作を制御する。一方、従来の電子楽器で
は、破線Bに示すように、時刻t1で押鍵動作が開始さ
れた鍵21aは、完全に押鍵される前に時刻t2で離鍵
動作が開始され、さらに時刻t3で今度は押鍵動作が開
始され、次いで時刻t4で再び離鍵動作が開始されるた
め、鍵21aが短いストロークでブルブルと震えて非常
にぎごちなく見苦しい動作となってしまう。
In response to the tone generation start instruction at time t1 shown in FIG. 4, the key 21a is depressed toward the depressed state as indicated by the solid line A. Here, at time t2 while the key 21a is being pressed, a sound generation stop instruction is issued, then at time t3, a sound generation start instruction is issued, and further at time t4.
There is an instruction to stop sounding. In the key drive control unit 15,
Since the final instruction related to the key 21a at the time when the single key-pressing operation of the key 21a during the key-depressing is completed is the sound generation stop instruction, the key 21a is changed from the timing at which the single key-pressing operation is completed. Key 2 so that the key release state of 21a starts.
The next operation of 1a is controlled. On the other hand, in the conventional electronic musical instrument, as shown by the broken line B, the key 21a whose key pressing operation is started at the time t1 starts the key releasing operation at the time t2 before the key is completely depressed, and further at the time t3. This time, the key pressing operation is started, and then the key releasing operation is started again at time t4, so that the key 21a trembles with a short stroke and becomes a very ugly and unsightly operation.

【0040】尚、図4に示す例では、発音開始指示→発
音停止指示→発音開始指示→発音停止指示の4つの指示
の場合であるが、6つ以上の指示の場合(押鍵動作中
に、複数の発音開始指示および発音停止指示があり、最
終の指示が発音停止指示であった場合は、必ず偶数の指
示となる)であっても、全ての指示には追従することな
く、最終の発音停止始指示に従って離鍵状態が開始する
ように鍵21aの次の動作が制御される。従って、鍵2
1aの押鍵動作中に、複数の発音開始指示および発音停
止指示があった場合であっても、従来の電子楽器のよう
に、その鍵21aが短いストロークでブルブルと震える
という不自然な状態になることが防止されて、聴者を視
覚的に満足させることができる。
In the example shown in FIG. 4, there are four instructions of a sound generation start instruction → a sound generation stop instruction → a sound generation start instruction → a sound generation stop instruction. If there are a plurality of sounding start instructions and sounding stop instructions, and the final instruction is a sounding stop instruction, the instruction always becomes an even number), it does not follow all the instructions, The next operation of the key 21a is controlled so that the key release state starts in accordance with the instruction to start sounding. Therefore, key 2
Even if a plurality of sounding start instructions and sounding stop instructions are issued during the key pressing operation of the key 1a, the key 21a is unnaturally trembling with a short stroke like a conventional electronic musical instrument. This prevents the listener from visually becoming happy.

【0041】図5は、図1に示すRAMのワーキングエ
リアに記憶されるテーブルを示す図である。
FIG. 5 is a diagram showing a table stored in the working area of the RAM shown in FIG.

【0042】RAM12のワーキングエリアには、各鍵
番号に対応して、発音指示フラグ1,発音指示フラグ
2,停止フラグ,演奏者押鍵フラグが記憶される。
The working area of the RAM 12 stores a sounding instruction flag 1, a sounding instruction flag 2, a stop flag, and a player key depression flag corresponding to each key number.

【0043】発音指示フラグ1は、鍵21aが動作中か
否かを示すフラグであり、この発音指示フラグ1がセッ
ト(‘1’)されている場合は鍵21aが動作中である
ことを示す。
The sounding instruction flag 1 is a flag indicating whether or not the key 21a is operating. When the sounding instruction flag 1 is set ('1'), it indicates that the key 21a is operating. .

【0044】発音指示フラグ2は、動作中の鍵21aを
最終的に押鍵状態にすることを示すフラグであり、この
発音指示フラグ2がセット(‘1’)されている場合、
動作中の鍵21aは最終的に押鍵状態にされる。
The sounding instruction flag 2 is a flag indicating that the operating key 21a is finally set to the key pressed state. When the sounding instruction flag 2 is set ('1'),
The operating key 21a is finally set to the key pressed state.

【0045】停止指示フラグは、動作中の鍵21aを最
終的に離鍵状態にすることを示すフラグであり、この停
止指示フラグがセット(‘1’)されている場合、動作
中の鍵21aは最終的に離鍵状態にされる。
The stop instruction flag is a flag indicating that the operating key 21a is finally released from the key. If the stop instruction flag is set ('1'), the operating key 21a Is finally released.

【0046】演奏者押鍵フラグは、演奏者により鍵21
aが押鍵されているか否かを示すフラグであり、この演
奏者押鍵フラグがセット(‘1’)されている場合は演
奏者により鍵21aが押鍵されていることを示す。
The performer key depression flag indicates that key 21
"a" is a flag indicating whether or not the key is pressed. When the player key pressing flag is set ("1"), it indicates that the key 21a is pressed by the player.

【0047】図6は、発音開始イベントが発生した場合
に起動されるルーチンのフローチャートである。
FIG. 6 is a flowchart of a routine started when a sound generation start event occurs.

【0048】外部のシーケンサから発音開始イベント
(発音開始指示)が送られてくると、このルーチンが起
動される。
When a sound generation start event (sound generation start instruction) is sent from an external sequencer, this routine is started.

【0049】先ず、ステップS100において、RAM
12のワーキングエリアを参照し、送られてきた発音開
始イベントの鍵番号に対応する演奏者押鍵フラグがセッ
トされているか否かが判定される。演奏者押鍵フラグが
セットされていると判定された場合は、その鍵21aは
演奏者によって既に押鍵されており、鍵駆動制御部15
でその鍵21aをさらに押鍵する必要もないため、何も
せずこのルーチンを終了する。一方、演奏者押鍵フラグ
がリセットされていると判定された場合は、ステップS
102に進む。
First, in step S100, the RAM
Referring to the 12 working areas, it is determined whether or not the player key depression flag corresponding to the key number of the sent sound generation start event is set. If it is determined that the player key depression flag is set, the key 21a has already been depressed by the player and the key drive control unit 15
Since there is no need to further depress the key 21a, the routine is terminated without doing anything. On the other hand, if it is determined that the performer key depression flag has been reset, step S
Proceed to 102.

【0050】ステップS102では、RAM12のワー
キングエリアを参照し、発音指示フラグ1がセットされ
ているか否かが判定される。発音指示フラグ1がセット
されていると判定された場合は、鍵21aの動作が開始
されており、その鍵21aに対する発音開始指示である
ため、ステップS110に進み、最終的に押鍵状態にす
るための発音指示フラグ2をセットして、このルーチン
を終了する。一方、発音指示フラグ1がリセットされて
いると判定された場合は、ステップS104に進む。
In step S102, it is determined whether or not the tone generation instruction flag 1 is set by referring to the working area of the RAM 12. If it is determined that the sound generation instruction flag 1 is set, the operation of the key 21a has been started, and since it is a sound generation start instruction for the key 21a, the process proceeds to step S110, and finally the key is pressed. The sound generation instruction flag 2 is set, and this routine ends. On the other hand, when it is determined that the sounding instruction flag 1 has been reset, the process proceeds to step S104.

【0051】ステップS104では、停止指示フラグが
セットされているか否かが判定される。停止指示フラグ
がセットされていると判定された場合は、鍵21aを最
終的に離鍵状態にするために、このルーチンを終了す
る。一方、停止指示フラグがリセットされていると判定
された場合は、ステップS106に進む。
In step S104, it is determined whether a stop instruction flag has been set. If it is determined that the stop instruction flag has been set, this routine ends to finally put the key 21a in the key release state. On the other hand, when it is determined that the stop instruction flag has been reset, the process proceeds to step S106.

【0052】ステップS106では、鍵21aの動作が
開始されていることを示すための発音指示フラグ1をセ
ットして、鍵駆動制御部15を駆動させて鍵21aの押
鍵動作を実行する。次に、ステップS108において、
発音指示を実行してこのルーチンを終了する。
In step S106, the sound generation instruction flag 1 for indicating that the operation of the key 21a has been started is set, and the key drive control unit 15 is driven to execute the key pressing operation of the key 21a. Next, in step S108,
The sounding instruction is executed and this routine ends.

【0053】図7は、発音停止イベントが発生した場合
に発生するルーチンのフローチャートである。
FIG. 7 is a flowchart of a routine that occurs when a sound generation stop event occurs.

【0054】外部のシーケンサから発音停止イベント
(発音停止指示)が送られてくると、このルーチンが起
動される。
When a sound generation stop event (sound generation stop instruction) is sent from an external sequencer, this routine is started.

【0055】先ず、ステップS200において、RAM
12のワーキングエリアを参照し、送られてきた発音停
止イベントの鍵番号に対応する演奏者押鍵フラグがセッ
トされているか否かが判定される。演奏者押鍵フラグが
セットされていると判定された場合は、その鍵21aは
演奏者によって既に押鍵されているため、何もせずこの
ルーチンを終了する。一方、演奏者押鍵フラグがリセッ
トされていると判定された場合は、ステップS202に
進む。
First, in step S200, the RAM
Referring to the 12 working areas, it is determined whether or not the player key depression flag corresponding to the key number of the sent sound generation stop event is set. If it is determined that the performer's key press flag is set, the key 21a has already been pressed by the performer, so this routine ends without performing any operation. On the other hand, if it is determined that the player key depression flag has been reset, the process proceeds to step S202.

【0056】ステップS202では、鍵21aが最終的
に押鍵状態にされることを防止するために発音指示フラ
グ2をリセットする。次に、ステップS204に進む。
In step S202, the tone generation instruction flag 2 is reset to prevent the key 21a from being finally depressed. Next, the process proceeds to step S204.

【0057】ステップS204では、鍵番号に対応する
停止指示フラグがセットされているか否かが判定され
る。停止指示フラグがセットされていると判定された場
合は、何もせずこのルーチンを終了する。一方、停止指
示フラグがリセットされていると判定された場合は、ス
テップS206に進み、動作中の鍵21aを最終的に離
鍵状態にするために停止指示フラグをセットする。
In step S204, it is determined whether a stop instruction flag corresponding to the key number has been set. If it is determined that the stop instruction flag has been set, this routine ends without doing anything. On the other hand, if it is determined that the stop instruction flag has been reset, the process proceeds to step S206, and the stop instruction flag is set to finally bring the operating key 21a into the key release state.

【0058】次に、ステップS207において、鍵番号
に対応する発音指示フラグ1がセットされているか否か
が判定される。発音指示フラグ1がセットされていると
判定された場合は、何もせずこのルーチンを終了する。
一方、発音指示フラグ1がリセットされていると判定さ
れた場合は、ステップS208において停止指示を実行
してこのルーチンを終了する。これにより、鍵駆動制御
部15が駆動して鍵21aの離鍵動作が実行される。
Next, in step S207, it is determined whether or not the tone generation instruction flag 1 corresponding to the key number has been set. If it is determined that the sounding instruction flag 1 is set, this routine is terminated without doing anything.
On the other hand, if it is determined that the tone generation instruction flag 1 has been reset, a stop instruction is executed in step S208, and this routine ends. As a result, the key drive control unit 15 is driven to perform the key release operation of the key 21a.

【0059】図8は、鍵盤押下イベントが発生した場合
に起動されるルーチンのフローチャートである。
FIG. 8 is a flowchart of a routine started when a keyboard press event occurs.

【0060】鍵盤押下イベントは、演奏者、もしくは鍵
駆動制御部15によりソレノイド23を経由して鍵21
aの鍵スイッチ21bがオンされた場合に発生する。
The key depression event is performed by the player or the key drive control unit 15 via the solenoid 23 by the key 21.
This occurs when the key switch 21b of a is turned on.

【0061】先ず、ステップS300において、RAM
12のワーキングエリアを参照し、押鍵された鍵21a
の鍵番号に対応する発音指示フラグ1がセットされてい
るか否かが判定される。発音指示フラグ1がリセットさ
れていると判定された場合は、シーケンサから発音指示
がされていないのにもかかわらず、その鍵21aの鍵ス
イッチ21bがオンされたため、演奏者により押鍵とみ
なしてステップS302に進む。ステップS302で
は、鍵番号に対応する演奏者押鍵フラグをセットしてこ
のルーチンを終了する。
First, in step S300, the RAM
12 working area, and depressed key 21a
It is determined whether or not the sound generation instruction flag 1 corresponding to the key number is set. If it is determined that the sounding instruction flag 1 is reset, the key switch 21b of the key 21a is turned on even though the sounding instruction is not issued from the sequencer. Proceed to step S302. In step S302, the performer key depression flag corresponding to the key number is set, and this routine ends.

【0062】一方、ステップS300において、発音指
示フラグ1がセットされていると判定された場合は、シ
ーケンサによる発音指示によって鍵21aが駆動され、
その結果鍵スイッチ21bがオンしたため、その鍵21
aが完全に押鍵されたものと見なしてステップS304
に進み、鍵21aが動作中であることを示す発音指示フ
ラグ1をリセットする。次に、ステップS306に進
む。
On the other hand, if it is determined in step S300 that the sound generation instruction flag 1 is set, the key 21a is driven by the sound generation instruction from the sequencer, and
As a result, the key switch 21b is turned on, so that the key 21
a is regarded as being completely depressed, and step S304 is performed.
To reset the sounding instruction flag 1 indicating that the key 21a is operating. Next, the process proceeds to step S306.

【0063】ステップS306では、鍵番号に対応する
停止指示フラグがセットされているか否かが判定され
る。停止指示フラグがリセットされていると判定された
場合は、何もせずこのルーチンを終了する。一方、停止
指示フラグがセットされていると判定された場合は、ス
テップS308において停止指示を実行してこのルーチ
ンを終了する。これにより、鍵駆動制御部15が駆動し
て鍵21aの離鍵動作が実行される。
In step S306, it is determined whether a stop instruction flag corresponding to the key number has been set. If it is determined that the stop instruction flag has been reset, this routine ends without doing anything. On the other hand, if it is determined that the stop instruction flag has been set, a stop instruction is executed in step S308, and this routine ends. As a result, the key drive control unit 15 is driven to perform the key release operation of the key 21a.

【0064】図9は、鍵盤離鍵イベントが発生した場合
に起動されるルーチンのフローチャートである。
FIG. 9 is a flowchart of a routine that is started when a key release event occurs.

【0065】尚、ここでは、鍵21aの離鍵中に新たな
発音開始情報があったものとして説明する。
Here, the description will be made on the assumption that there is new tone generation start information while the key 21a is released.

【0066】鍵盤離鍵イベントは、演奏者、もしくは鍵
駆動制御部15によりソレノイド23を経由して鍵21
aの鍵スイッチ21bがオフされた場合に発生する。
The key release event is performed by the player or the key drive control unit 15 via the solenoid 23 by the key 21.
This occurs when the key switch 21b of a is turned off.

【0067】先ず、ステップS400において、RAM
12のワーキングエリアを参照し、押鍵された鍵21a
の鍵番号に対応する停止指示フラグがセットされている
か否かが判定される。停止指示フラグがリセットされて
いると判定された場合は、シーケンサから発音停止指示
がされていないのにもかかわらず、その鍵21aの鍵ス
イッチ21bがオフされたため、演奏者により離鍵され
たものとみなしてステップS402に進み、演奏者押鍵
フラグをリセットしてこのルーチンを終了する。
First, in step S400, the RAM
12 working area, and depressed key 21a
It is determined whether or not the stop instruction flag corresponding to the key number is set. If it is determined that the stop instruction flag has been reset, the key switch 21b of the key 21a has been turned off even though no sound generation stop instruction has been issued from the sequencer. Then, the process proceeds to step S402, where the performer key depression flag is reset, and this routine ends.

【0068】一方、ステップS400において、停止指
示フラグがセットされていると判定された場合は、シー
ケンサからの発音停止指示によって鍵21aが離鍵が開
始され、その結果鍵スイッチ21bがオフしたため、鍵
21aが完全に離鍵されたものと見なしてステップS4
04に進み、停止指示フラグをリセットしてステップS
406に進む。
On the other hand, if it is determined in step S400 that the stop instruction flag is set, the key 21a is released by the sound generation stop instruction from the sequencer, and as a result, the key switch 21b is turned off. 21a is considered to have been completely released and the process proceeds to step S4.
04, the stop instruction flag is reset, and step S
Proceed to 406.

【0069】ステップS406では、鍵番号に対応する
発音指示フラグ2がセットされているか否かが判定され
る。発音指示フラグ2がリセットされていると判定され
た場合は、何もせずこのルーチンを終了する。一方、発
音指示フラグ2がセットされていると判定された場合
は、ステップS408に進む。ステップS408では、
発音指示フラグ2をリセットし、また鍵21aの離鍵中
に新たな発音開始指示があったため発音指示フラグ1を
セットする。次に、ステップS410に進み、発音指示
を実行してこのルーチンを終了する。このようにして、
鍵駆動制御部15により鍵21aの離鍵動作が完全に実
行され、次いで新たな発音開始指示によりその鍵21a
の押鍵動作が行われる。
In step S406, it is determined whether or not the sound generation instruction flag 2 corresponding to the key number has been set. If it is determined that the sounding instruction flag 2 has been reset, this routine is terminated without doing anything. On the other hand, when it is determined that the sound generation instruction flag 2 is set, the process proceeds to step S408. In step S408,
The sounding instruction flag 2 is reset, and the sounding instruction flag 1 is set because there is a new sounding start instruction while the key 21a is being released. Next, the process proceeds to step S410, in which a sound generation instruction is executed, and this routine ends. In this way,
The key release operation of the key 21a is completely executed by the key drive control unit 15, and then the key 21a is released by a new sound generation start instruction.
Is performed.

【0070】上述した、図6〜図9に示す各ルーチン
は、それぞれ、発音開始イベント,発音停止イベント,鍵
盤押下イベント,鍵盤離鍵イベントにより制御されるも
のである。つまり押鍵動作および離鍵動作が完了したか
否かの判定を、鍵21aの鍵スイッチ21bによって検
出して制御するものであり、本発明にいう、動作中の鍵
に関し、その動作開始後のセンサの動作完了検出状態に
基づいてその鍵の一回の押鍵動作あるいは離鍵動作が終
了したことを認識して、その鍵に関する次の動作を制御
するものに相当する。
Each of the routines shown in FIGS. 6 to 9 is controlled by a sound generation start event, a sound generation stop event, a key press event, and a key release event. That is, the determination as to whether or not the key pressing operation and the key releasing operation are completed is detected and controlled by the key switch 21b of the key 21a. Based on the operation completion detection state of the sensor, it is recognized that one key press operation or key release operation of the key has been completed, and the next operation corresponding to the key is controlled.

【0071】ここで、鍵21aの、ソレノイド23のス
トローク等により定まる機械的な動作特性を予め測定し
ておき、その測定結果に基づいて、鍵駆動制御部15
が、動作中の鍵21aに関し、その鍵21aに関する次
の動作を制御するものであってもよい。即ち、本発明に
いう、鍵駆動制御手段が、動作中の鍵に関し、その動作
開始後所定時間経過したことをもってその鍵の一回の押
鍵動作あるいは離鍵動作が終了したものとみなして、そ
の鍵に関する次の動作を制御するものであってもよい。
このようにすると、各鍵スイッチ21bのオン,オフを
検出するためのスキャンニングが不要になる。以下、詳
細に説明する。尚、発音開始イベント,発音停止イベン
トが発生した場合に起動されるルーチンは、前述した図
6,図7に示すものと同じであるため、説明は省略し、
ここでは、鍵盤押下イベントおよび鍵盤離鍵イベントが
発生した場合に起動されるルーチンについて説明する。
Here, the mechanical operation characteristics of the key 21a determined by the stroke of the solenoid 23 and the like are measured in advance, and based on the measurement result, the key drive controller 15
May control the next operation of the key 21a in operation. That is, the key drive control means according to the present invention regards a key in operation assuming that a single key press operation or key release operation has ended when a predetermined time has elapsed after the start of the operation, The next operation related to the key may be controlled.
This eliminates the need for scanning for detecting whether each key switch 21b is on or off. The details will be described below. The routine started when the sound generation start event and the sound generation stop event occur is the same as that shown in FIGS.
Here, a routine started when a keyboard press event and a keyboard release event occur will be described.

【0072】仮に押鍵駆動開始から押鍵完了までに時間
ΔT_ONだけかかるとし、離鍵駆動開始から離鍵完了
までに、時間ΔT_OFFだけかかるとすると、シーケ
ンサから送られてくるノートオン(発音開始指示)を時
間ΔT_ONだけ遅延させ、その遅延させたイベント
(遅延発音実行イベントと称する)が発生した際に、以
下に説明する図10のルーチンを実行し、またノートオ
フ(発音停止指示)を時間ΔT_OFFだけ遅延させ、
その遅延させたイベント(遅延発音停止イベントと称す
る)が発生した際に、以下に説明する図11のルーチン
を実行すればよい。
Assuming that it takes a time ΔT_ON from the start of the key-pressing drive to the completion of the key-depression, and if it takes a time ΔT_OFF from the start of the key-release drive to the completion of the key-release, a note-on (sound-start instruction) sent from the sequencer is assumed. ) Is delayed by a time ΔT_ON, and when the delayed event (referred to as a delayed sound generation execution event) occurs, a routine of FIG. 10 described below is executed, and a note-off (sound generation stop instruction) is performed for a time ΔT_OFF. Just delay,
When the delayed event (called a delayed sounding stop event) occurs, the routine of FIG. 11 described below may be executed.

【0073】図10は、鍵盤押下イベントおよび遅延発
音実行イベントが発生した場合に起動されるルーチンの
フローチャートである。
FIG. 10 is a flowchart of a routine which is started when a keyboard press event and a delayed sound execution event occur.

【0074】先ず、ステップS500において、押鍵さ
れた鍵21aの鍵番号に対応する発音指示フラグ1がセ
ットされているか否かが判定される。発音指示フラグ1
がリセットされていると判定された場合は、演奏者によ
る押鍵とみなしてステップS502に進む。ステップS
502では、鍵番号に対応する演奏者押鍵フラグをセッ
トしてこのルーチンを終了する。
First, in step S500, it is determined whether or not the tone generation instruction flag 1 corresponding to the key number of the pressed key 21a is set. Pronunciation instruction flag 1
Is determined to have been reset, the process proceeds to step S502, assuming that the key is pressed by the player. Step S
At 502, the player key depression flag corresponding to the key number is set, and this routine ends.

【0075】一方、ステップS500において、発音指
示フラグ1がセットされていると判定された場合は、シ
ーケンサからの発音開始指示によりその鍵21aが動作
中であり、後述する遅延発音実行イベントを待つために
このルーチンを終了する。
On the other hand, if it is determined in step S500 that the sound generation instruction flag 1 has been set, the key 21a is being operated according to the sound generation start instruction from the sequencer, and it is necessary to wait for a delayed sound generation execution event to be described later. This routine ends.

【0076】ここで、シーケンサから送られてくる発音
開始指示が時間ΔT_ONだけ遅延されてなる遅延発音
実行イベントが発生する。すると、先ずステップS50
4において、その鍵21aが動作中であることを示す発
音指示フラグ1をリセットしてステップS506に進
む。
Here, a sound generation execution event occurs in which the sound generation start instruction sent from the sequencer is delayed by the time ΔT_ON. Then, first, step S50
In step 4, the sound generation instruction flag 1 indicating that the key 21a is operating is reset, and the flow advances to step S506.

【0077】ステップS506では、鍵番号に対応する
停止指示フラグがセットされているか否かが判定され
る。停止指示フラグがリセットされていると判定された
場合は、動作中の鍵21aを最終的に離鍵する必要もな
いため、何もせずこのルーチンを終了する。一方、停止
指示フラグがセットされていると判定された場合は、ス
テップS508において停止指示を実行してこのルーチ
ンを終了する。これにより、鍵駆動制御部15が駆動し
て鍵21aの離鍵動作が実行される。
In step S506, it is determined whether a stop instruction flag corresponding to the key number has been set. If it is determined that the stop instruction flag has been reset, there is no need to finally release the operating key 21a, so this routine is terminated without any operation. On the other hand, if it is determined that the stop instruction flag is set, a stop instruction is executed in step S508, and this routine ends. As a result, the key drive control unit 15 is driven to perform the key release operation of the key 21a.

【0078】図11は、鍵盤離鍵イベントおよび遅延発
音停止イベントが発生した場合に起動されるルーチンの
フローチャートである。
FIG. 11 is a flowchart of a routine started when a key release event and a delayed sound generation stop event occur.

【0079】尚、ここでは、鍵21aの離鍵中に新たな
発音開始情報があったものとして説明する。
Here, the description will be made on the assumption that there is new tone generation start information during the release of the key 21a.

【0080】先ず、ステップS600において、押鍵さ
れた鍵21aの鍵番号に対応する停止指示フラグがセッ
トされているか否かが判定される。停止指示フラグがリ
セットされていると判定された場合は、演奏者による離
鍵とみなしてステップS602に進む。ステップS60
2では、鍵番号に対応する演奏者押鍵フラグをリセット
してこのルーチンを終了する。一方、ステップS600
において、停止指示フラグがセットされていると判定さ
れた場合は、シーケンサから既に発音停止指示があり、
後述する遅延発音停止実行イベントを待つためにこのル
ーチンを終了する。
First, in step S600, it is determined whether or not the stop instruction flag corresponding to the key number of the pressed key 21a is set. If it is determined that the stop instruction flag has been reset, the process proceeds to step S602 assuming that the key has been released by the player. Step S60
In step 2, the performer key depression flag corresponding to the key number is reset, and this routine ends. On the other hand, step S600
In, when it is determined that the stop instruction flag is set, the sequencer has already issued a sound generation stop instruction,
This routine ends to wait for a delayed sound generation stop execution event to be described later.

【0081】ここで、シーケンサから送られてくる発音
停止指示が時間ΔT_OFFだけ遅延されてなる遅延発
音停止イベントが発生する。すると、先ずステップS6
04において、停止指示フラグをリセットしてステップ
S606に進む。
Here, a delay sound generation stop event occurs in which the sound generation stop instruction sent from the sequencer is delayed by the time ΔT_OFF. Then, first, step S6
At 04, the stop instruction flag is reset, and the process proceeds to step S606.

【0082】ステップS606では、鍵番号に対応する
発音指示フラグ2がセットされているか否かが判定され
る。発音指示フラグ2がリセットされていると判定され
た場合は、何もせずこのルーチンを終了する。一方、発
音指示フラグ2がセットされていると判定された場合
は、ステップS608においてその発音指示フラグ2を
リセットし、また鍵21aの離鍵中に新たな発音開始指
示があったため発音指示フラグ1をセットする。次に、
ステップS610に進み、発音指示を実行してこのルー
チンを終了する。このようにして、鍵21aの離鍵動作
が完全に実行され、次いで新たな発音開始指示によりそ
の鍵21aの押鍵動作が行なわれる。
In step S606, it is determined whether or not the sound generation instruction flag 2 corresponding to the key number has been set. If it is determined that the sounding instruction flag 2 has been reset, this routine is terminated without doing anything. On the other hand, if it is determined that the sounding instruction flag 2 is set, the sounding instruction flag 2 is reset in step S608, and the sounding instruction flag 1 is set because there is a new sounding start instruction while the key 21a is released. Is set. next,
Proceeding to step S610, a sound generation instruction is executed, and this routine ends. In this way, the key release operation of the key 21a is completely executed, and then the key depressing operation of the key 21a is performed by a new sound generation start instruction.

【0083】尚、本実施形態では、互いに異なる時間Δ
T_ONと時間ΔT_OFFだけ遅延させた遅延発音実
行イベント,遅延発音停止イベントの例で説明したが、
ともに同じ時間だけ遅延させた遅延発音実行イベント,
遅延発音停止イベントを発生させて図10、図11に示
すルーチンを実行してもよい。
In the present embodiment, different times Δ
The delay sounding execution event delayed by T_ON and the time ΔT_OFF and the delay sounding stop event have been described as examples.
A delayed sounding execution event both delayed by the same time,
The routine shown in FIGS. 10 and 11 may be executed by generating a delayed sounding stop event.

【0084】[0084]

【発明の効果】以上説明したように、本発明によれば、
ある鍵の動作中に、その鍵に関し、比較的短い時間で発
音開始情報と発音停止情報があった場合でも、聴者を視
覚的に満足させることのできる電子楽器を提供すること
ができる。
As described above, according to the present invention,
It is possible to provide an electronic musical instrument that can visually satisfy a listener even when there is sounding start information and sounding stop information in a relatively short time during operation of a key.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の電子楽器の一実施例の回路ブロック図
である。
FIG. 1 is a circuit block diagram of an electronic musical instrument according to an embodiment of the present invention.

【図2】図1に示す鍵盤のある1つの鍵における、押鍵
動作および離鍵動作を示す図である。
FIG. 2 is a diagram showing a key pressing operation and a key releasing operation of one key having a keyboard shown in FIG. 1;

【図3】ある鍵の押鍵動作中に、発音開始指示と発音停
止指示があった場合の、その鍵の押鍵動作および離鍵動
作を示す図である。
FIG. 3 is a diagram showing a key pressing operation and a key releasing operation of a key when a sound generation start instruction and a sound generation stop instruction are issued during the key pressing operation of the key;

【図4】ある鍵の押鍵動作中に、複数の発音開始指示お
よび発音停止指示があり、最終の指示が発音停止指示で
あった場合の、その鍵の押鍵動作および離鍵動作を示す
図である。
FIG. 4 shows a key-pressing operation and a key-release operation of a key when there are a plurality of sounding start instructions and a sounding stop instruction during a key-pressing operation of a key and the final instruction is a sounding stop instruction. FIG.

【図5】図1に示すRAMのワーキングエリアに記憶さ
れるテーブルを示す図である。
FIG. 5 is a diagram showing a table stored in a working area of a RAM shown in FIG. 1;

【図6】発音開始イベントが発生した場合に起動される
ルーチンのフローチャートである。
FIG. 6 is a flowchart of a routine that is started when a sound generation start event occurs.

【図7】発音停止イベントが発生した場合に発生するル
ーチンのフローチャートである。
FIG. 7 is a flowchart of a routine that occurs when a sound generation stop event occurs.

【図8】鍵盤押下イベントが発生した場合に起動される
ルーチンのフローチャートである。
FIG. 8 is a flowchart of a routine started when a keyboard press event occurs.

【図9】鍵盤離鍵イベントが発生した場合に起動される
ルーチンのフローチャートである。
FIG. 9 is a flowchart of a routine that is started when a key release event occurs.

【図10】鍵盤押下イベントおよび遅延発音実行イベン
トが発生した場合に起動されるルーチンのフローチャー
トである。
FIG. 10 is a flowchart of a routine that is started when a keyboard press event and a delayed sound execution event occur.

【図11】鍵盤離鍵イベントおよび遅延発音停止イベン
トが発生した場合に起動されるルーチンのフローチャー
トである。
FIG. 11 is a flowchart of a routine that is started when a key release event and a delayed sound generation stop event occur.

【符号の説明】[Explanation of symbols]

10 電子楽器 11 ROM 12 RAM 13 CPU 14 MIDIインターフェース 15 鍵駆動制御部 16 発音制御部 17 スピーカ 20 鍵盤装置 21 鍵盤 21a 鍵 21b 鍵スイッチ 22 鍵操作検出部 23 ソレノイド DESCRIPTION OF SYMBOLS 10 Electronic musical instrument 11 ROM 12 RAM 13 CPU 14 MIDI interface 15 Key drive control part 16 Sound emission control part 17 Speaker 20 Keyboard device 21 Keyboard 21a Key 21b Key switch 22 Key operation detection part 23 Solenoid

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 上下に動作可能な鍵が複数配列されてい
る鍵盤と、 押鍵指示に応じて対応する鍵を押鍵動作させ、離鍵指示
に応じて対応する鍵を離鍵動作させる鍵駆動手段を備
え、 該鍵駆動手段は、押鍵指示に応じて対応する鍵を押鍵動
作している途中でその鍵に対する離鍵指示があった場
合、離鍵指示があったことを記憶し、該鍵が所定の位置
まで押鍵動作した後、該記憶に基づいて離鍵動作に移行
するよう鍵を駆動するものであることを特徴とする電子
楽器。
A key on which a plurality of vertically operable keys are arranged; a key for operating a corresponding key in response to a key-depression instruction; and a key for releasing the corresponding key in response to a key-release instruction. The key driving means stores a key release instruction when a key release instruction is given to the corresponding key during the key pressing operation in response to the key depression instruction. An electronic musical instrument characterized in that, after the key has been depressed to a predetermined position, the key is driven to shift to a key release operation based on the storage.
JP2000017909A 2000-01-24 2000-01-24 Electronic musical instruments Expired - Fee Related JP4170549B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000017909A JP4170549B2 (en) 2000-01-24 2000-01-24 Electronic musical instruments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000017909A JP4170549B2 (en) 2000-01-24 2000-01-24 Electronic musical instruments

Publications (3)

Publication Number Publication Date
JP2001209379A true JP2001209379A (en) 2001-08-03
JP2001209379A5 JP2001209379A5 (en) 2008-05-08
JP4170549B2 JP4170549B2 (en) 2008-10-22

Family

ID=18544835

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000017909A Expired - Fee Related JP4170549B2 (en) 2000-01-24 2000-01-24 Electronic musical instruments

Country Status (1)

Country Link
JP (1) JP4170549B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008233825A (en) * 2007-03-23 2008-10-02 Yamaha Corp Control device of musical instrument

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008233825A (en) * 2007-03-23 2008-10-02 Yamaha Corp Control device of musical instrument

Also Published As

Publication number Publication date
JP4170549B2 (en) 2008-10-22

Similar Documents

Publication Publication Date Title
JP2007256360A (en) Keyboard instrument
JP5228667B2 (en) Electronic keyboard instrument
JPH08221063A (en) Automatic music player
JP2001209379A (en) Electronic instrument
JP3398554B2 (en) Automatic arpeggio playing device
JP3844286B2 (en) Automatic accompaniment device for electronic musical instruments
JP2003295863A (en) Key depression information detecting device for keyboard musical instrument
JP3192579B2 (en) Automatic performance device and automatic performance method
JP4214845B2 (en) Automatic arpeggio device and computer program applied to the device
JP3319043B2 (en) Automatic performance device
JP4424310B2 (en) Electronic musical instruments
JP2009025503A (en) Electronic musical instrument
JP4412618B2 (en) Electronic musical instrument demo song playing apparatus and demo song playing method
JP2001265335A (en) Device and method for inputting performance information
JP2003122355A (en) Electronic musical instrument
JP3862988B2 (en) Electronic musical instruments
JPH0822282A (en) Automatic accompaniment device for guitar
JP3837994B2 (en) Musical score data conversion apparatus and recording medium
JP3375220B2 (en) Electronic musical instrument
JP2016045254A (en) Sound preview device and program
JP3356326B2 (en) Electronic musical instrument
JP2004361528A (en) Musical tone signal generator and legato processing program
JP2001125572A (en) Electronic musical instrument, musical sound generation control method and storage medium
JP3498968B2 (en) Electronic musical instrument
JP3476863B2 (en) Automatic accompaniment device for electronic musical instruments

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061218

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080324

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080522

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080527

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080702

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080805

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080807

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110815

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120815

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120815

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130815

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees