JP4159715B2 - Keyboard device - Google Patents

Keyboard device Download PDF

Info

Publication number
JP4159715B2
JP4159715B2 JP37244699A JP37244699A JP4159715B2 JP 4159715 B2 JP4159715 B2 JP 4159715B2 JP 37244699 A JP37244699 A JP 37244699A JP 37244699 A JP37244699 A JP 37244699A JP 4159715 B2 JP4159715 B2 JP 4159715B2
Authority
JP
Japan
Prior art keywords
key
time
note
data
sound generation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP37244699A
Other languages
Japanese (ja)
Other versions
JP2001188527A (en
Inventor
信二 浅川
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 JP37244699A priority Critical patent/JP4159715B2/en
Publication of JP2001188527A publication Critical patent/JP2001188527A/en
Application granted granted Critical
Publication of JP4159715B2 publication Critical patent/JP4159715B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、鍵盤装置に関し、さらに詳細には、発音開始指示(押鍵指示)/発音停止指示(離鍵指示)を示す演奏データに応じて、鍵盤を押鍵動作/離鍵動作させる電子ピアノなどの鍵盤装置に関する。
【0002】
【従来の技術】
一般に、電子楽器の分野においては、自動演奏装置を搭載し、当該自動演奏装置が読み出す発音開始指示(押鍵指示)/発音停止指示(離鍵指示)を示す演奏データ(例えば、MIDIにおいては、発音開始指示(押鍵指示)を示す演奏データはノート・オンに対応し、発音停止指示(離鍵指示)を示す演奏データはノート・オフに対応する。)に応じて、鍵盤を押鍵動作/離鍵動作させる電子ピアノなどの電子楽器が知られている。
【0003】
このような電子ピアノなどの電子楽器の鍵盤装置は、演奏者によって操作される揺動可能な複数の鍵と、これら複数の鍵毎に配設されるソレノイドとを有して構成され、自動演奏装置などからの演奏データに応じてソレノイドを駆動して、鍵を押鍵動作/離鍵動作させるものである。
【0004】
具体的には、自動演奏装置などから出力される演奏データの発音開始指示(押鍵指示)のキー・ナンバーが示す鍵に対応するソレノイドに通電を行い、当該発音開始指示(押鍵指示)のキー・ナンバーが示す鍵が押鍵動作されて押鍵状態となり、また、自動演奏装置から出力される演奏データの発音停止指示(離鍵指示)のキー・ナンバーが示す鍵に対応するソレノイドへの通電を終了し、当該発音停止指示(離鍵指示)のキー・ナンバーが示す鍵が離鍵動作されて離鍵状態となる。
【0005】
従って、ソレノイドに十分な電力が供給されないような場合には、過負荷状態となりソレノイドによる鍵の押鍵動作が行われず、演奏データに応じた鍵の押鍵動作が実現されない恐れがある。
【0006】
しかしながら、上記したような電子楽器の鍵盤装置において、十分な電源容量を確保できるようにするためには容量の大きい電源が必要となるが、こうした容量の大きい電源は高価なものであり、当該容量の大きな電源を電子楽器の鍵盤装置に配設すると、製造コストなどが増大し、高価なものになるという問題点があった。
【0007】
また、演奏データに従い長時間にわたって所定のソレノイドに通電が行われ、当該ソレノイドに配設された鍵が長時間にわたって押鍵状態になるような場合には、当該ソレノイドが過熱して焼き付いてしまう恐れがある。
【0008】
そこで、所定のソレノイドに長時間にわたって通電が行われることを回避するためには、鍵が押鍵状態にある時間(なお、本明細書においては、「鍵が押鍵状態にある時間」を「押鍵時間」と適宜称することとする。)を検出して、当該押鍵時間が所定の時間以上にならないように制御すればよい。
【0009】
【発明が解決しようとする課題】
本発明は、上記したような従来の技術の有する種々の問題点に鑑みてなされたものであり、その目的とするところは、同時に押鍵状態になる鍵の数を制限するようにして、消費電流が電源の最大定格を越えないようにした鍵盤装置を提供しようとするものである。
【0010】
また、本発明の目的とするところは、鍵の押鍵時間を制限するようにして、消費電流が電源の最大定格を越えないようにした鍵盤装置を提供しようとするものである。
【0014】
【課題を解決するための手段】
上記目的を達成するために、本発明の請求項1に記載の発明は、演奏データの発音開始指示に応じて鍵盤を押鍵動作するとともに、演奏データの発音停止指示に応じて鍵盤を離鍵動作する鍵盤装置において、演奏データの発音開始指示から発音停止指示までの時間を検出する検出手段と、上記検出手段によって検出された発音開始指示から発音停止指示までの時間を所定の時間と比較する比較手段と、上記比較手段の比較結果が上記検出手段によって検出された発音開始指示から発音停止指示までの時間の方が上記所定の時間に比べて長い場合に、上記検出手段によって検出された発音開始指示から発音停止指示までの時間を上記所定の時間に一致させる制御手段とを有するようにしたものである。
【0015】
従って、本発明の請求項1に記載の発明によれば、鍵の押鍵時間を制限することが可能となるので、消費電流が電源の最大定格を越えることを防止することができる。
【0016】
【発明の実施の形態】
以下、添付の図面を参照しながら、本発明による鍵盤装置の実施の形態の一例を詳細に説明する。
【0017】
図1には、本発明による鍵盤装置の実施の形態の一例を備えた電子楽器のブロック構成図が示されており、この電子楽器は、その全体の動作の制御を中央処理装置(CPU)10を用いて制御するように構成されている。
【0018】
このCPU10には、バス12を介して、CPU10の動作を制御するためのプログラムなどが記憶されたリード・オンリ・メモリ(ROM)14と、CPU10によるプログラムの実行に必要な各種レジスタ群やフラグなどが設定されたランダム・アクセス・メモリ(RAM)16と、演奏データを記憶するとともにバス12を介して記憶した演奏データを出力する自動演奏装置(シーケンサー)18と、シーケンサー18からの演奏データに基づいて楽音信号を生成する音源20と、演奏データを入力して当該演奏データに応じた駆動信号を生成して後述する鍵盤装置26のソレノイド32に出力するソレノイド駆動制御部24と、演奏者によって操作される揺動可能な複数の鍵30と当該鍵30のそれぞれに配設されたソレノイド32と鍵30を動作させる鍵機構とを有する鍵盤装置26と、この鍵盤装置26に電源が投入されてからの経過時間を計数するととに所定の時間間隔でCPU10にタイマー割り込みをかけるためのタイマー34とが接続されている。
【0019】
また、音源20には、アンプやスピーカーなどにより構成され、音源20によって生成された楽音信号を聴取し得る楽音として空間に放音するサウンド・システム22が接続されている。
【0020】
また、符号28は、自動演奏装置(シーケンサー)などの外部のMIDI機器100が接続されるMIDIインターフェース(MIDI I/F)であり、外部のMIDI機器100によって生成された演奏データを入力したり、外部のMIDI機器100へ演奏データを出力したりするなどの制御を行うものである。
【0021】
ここで、この実施の形態に関する説明においては、説明を簡略化して本発明の理解を容易にするために、処理対象の演奏データとしては、シーケンサー18が予め記憶した演奏データを出力して用いるものとしたが、これに限られるものではないことは勿論であり、外部記憶手段に記憶された演奏データを読み出すようにしてもよい。
【0022】
また、この電子楽器においては、図示しない各種の操作子群を備えており、適宜の操作子を操作することにより、シーケンサー18から出力される演奏データや、MIDIインターフェース28から入力される演奏データを任意に選択することができるようになされているものとする。
【0023】
以下、上記した各構成のうち本発明の実施に関連するものについて、適宜に説明するものとする。
【0024】
まず、シーケンサー18は、上記したように演奏データを出力するものであり、当該シーケンサー18から出力される演奏データには、図2(a)に示す第1形式の演奏データと、図2(b)に示す第2の形式の演奏データとがある。
【0025】
この第1形式の演奏データは、押鍵される鍵を示す鍵番号データ(Key Number:キー・ナンバー)、押鍵指示を示す発音開始指示データ(NoteOn:ノート・オン)、鍵が押鍵される速度を示す押鍵速度データ(Velocity:ベロシティー)ならびに鍵が押鍵状態にある時間、即ち、発音中の時間を示す押鍵時間データ(Gate Time:ゲート・タイム)から構成されるものである。なお、この第1形式の演奏データにおいては、発音開始から押鍵時間データ(ゲート・タイム)に示す時間が経過すると、発音停止指示データ(Note Off:ノート・オフ)が出力されることになる。
【0026】
そして上記した第1形式の演奏データ(図2(a)参照)は、この電子楽器においては、発音開始指示データ(ノート・オン)および時間情報(Time)と当該発音開始指示データに対応する発音停止指示データ(Note Off:ノート・オフ)および時間情報(Time)との組により構成される第2形式の演奏データ(図2(b)参照)に変換されるものである。
【0027】
なお、第1形式の演奏データを変換して第2形式の演奏データを生成する処理は、従来より公知の処理であるのでその詳細な説明は省略するものとする。
【0028】
ソレノイド駆動制御部24は、発音開始指示データ(ノート・オン)に応じて駆動信号を生成して、当該生成された駆動信号を当該発音開始指示データ(ノート・オン)のキー・ナンバーが示す鍵30に配設されたソレノイド32に出力する。
【0029】
また、ソレノイド駆動制御部24は、発音停止指示データ(ノート・オフ)に応じて駆動信号の生成を停止するものである。
【0030】
そして、ソレノイド32は、ソレノイド駆動制御部24からの駆動信号が出力されて電力の供給が行なわれると、鍵30を押鍵状態とし、ソレノイド駆動制御部24からの駆動信号の出力が停止されて電力の供給が停止されると、鍵30を離鍵状態とする。
【0031】
また、タイマー34は、上記したようにこの電子楽器に電源が投入されてからの経過時間を計数するとともに所定の時間間隔でCPU10にタイマー割り込みをかけるものであり、当該所定の時間間隔でCPU10に対してタイマー割り込みがかけられると、後述する定期サービス処理ルーチン(図5)が実行されるものである。
【0032】
次に、RAM14には、図3に示すように、発音停止指示データ(ノート・オフ)を予約するためのテーブルが設定されており、このテーブルはキー・ナンバーを記憶する「鍵番号」の欄と、当該「鍵番号」に記憶されるキー・ナンバーの残り待ち時間を記憶する「残り待ち時間」の欄とによって構成されている。
【0033】
「鍵番号」の欄には、シーケンサー18から第1形式の演奏データの発音開始指示データ(ノート・オン)が出力されると、当該発音開始指示データ(ノート・オン)のキー・ナンバーが記憶されるものである。
【0034】
一方、「残り待ち時間」の欄には、「鍵番号」に記憶されたキー・ナンバーの押鍵時間データ(ゲート・タイム)が記憶され、タイマー34によりCPU10に対してタイマー割り込みがかけられて後述する定期サービス処理ルーチン(図5)が実行されると、当該押鍵時間データ(ゲート・タイム)から経過時間が減算された差、即ち、発音停止指示データ(ノート・オフ)を出力するまでの残りの待ち時間が記憶される。
【0035】
この「残り待ち時間」の欄に記憶される発音停止指示データ(ノート・オフ)を出力するまでの残りの待ち時間がマイナスの場合は、発音停止指示データ(ノート・オフ)の予約時間が過ぎたことになるので、後述する定期サービス処理ルーチンの処理によって、当該「残り待ち時間」の欄と対応する「鍵番号」の欄とが開放される。
【0036】
なお、開放された「鍵番号」の欄には「−1」が記憶され(図3参照)、このような「鍵番号」の欄に「−1」が記憶されている「鍵番号」の欄と当該「鍵番号」に対応する「残り待ち時間」の欄にのみ、新たにキー・ナンバーとその残り待ち時間とを記憶することができる。
【0037】
そして、この発音停止指示データ(ノート・オフ)を予約するためのテーブルには、この電子楽器において同時に押鍵状態となることが可能な鍵の数、即ち、最大押鍵数nと等しい数の「鍵番号」の欄と「残り待ち時間」の欄とが設定されている。なお、最大押鍵数nは、音源20の同時発音数よりも少ないものである。
【0038】
なお、図3には、シーケンサー18から第1形式の演奏データのキー・ナンバー64、キー・ナンバー66ならびにキー・ナンバー68の発音開始指示データ(ノート・オン)がそれぞれ出力されて、「鍵番号」の欄にキー・ナンバー64を示す「64」が記憶され、当該「鍵番号」に対応した「残り待ち時間」の欄にキー・ナンバー64の発音停止指示データ(ノート・オフ)までの残りの待ち時間である2000msecが記憶され、また、「鍵番号」の欄にキー・ナンバー66を示す「66」が記憶され、当該「鍵番号」に対応した「残り待ち時間」の欄にキー・ナンバー66の発音停止指示データ(ノート・オフ)までの残りの待ち時間である1500msecが記憶され、また、「鍵番号」の欄にキー・ナンバー68を示す「68」が記憶され、当該「鍵番号」に対応した「残り待ち時間」の欄にキー・ナンバー68の発音停止指示データ(ノート・オフ)までの残りの待ち時間である1950msecが記憶されている状態が示されている。
【0039】
以下、本発明による鍵盤装置の実施の形態の一例を備えた電子楽器の動作について、図4乃至図5に示すフローチャートを参照しながら説明することとする。
【0040】
まず、図4のフローチャートに示すシーケンサー18からのノート・イベントにより起動される処理ルーチンについて説明すると、このシーケンサー18からのノート・イベントにより起動される処理ルーチンは、この電子楽器にシーケンサー18からノート・イベント、即ち、第1形式の演奏データが出力されると起動される割り込みルーチンである。
【0041】
なお、このシーケンサー18からのノート・イベントにより起動される処理ルーチン(図4参照)と後述する定期サービス処理ルーチン(図5参照)とはともに、第1形式の演奏データから第2形式の演奏データへの変換処理を行う機構において実行されるものである。
【0042】
このシーケンサー18からのノート・イベントにより起動される処理ルーチンにおいては、シーケンサー18から第1形式の演奏データが出力され、発音停止指示データ(ノート・オフ)を予約するためのテーブル(図3参照)に開放されている「鍵番号」の欄と「残り待ち時間」の欄とがない場合に、優先順位の最も低い「鍵番号」の欄と「残り待ち時間」の欄とを開放する処理が行なわれ、また、「残り待ち時間」の欄に記憶される押鍵時間データ(ゲート・タイム)を所定の時間より短く制限する処理が行なわれ、また、「鍵番号」の欄と当該「鍵番号」に対応する「残り待ち時間」に演奏データのキー・ナンバーとその残り待ち時間とが記憶される処理が行われるものである。
【0043】
このシーケンサー18からのノート・イベントにより起動される処理ルーチンが起動されると、まず、ステップS402の処理において、シーケンサー18から出力された第1形式の演奏データの発音開始指示データ(ノート・オン)がソレノイド駆動制御部24に出力される。
【0044】
そして、当該出力された発音開始指示データ(ノート・オン)に応じてソレノイド駆動制御部24は駆動信号を生成し、当該生成された駆動信号が当該発音開始指示データ(ノート・オン)のキー・ナンバーが示す鍵30に配設されたソレノイド32に出力されて、ソレノイド32に電力の供給が行なわれ当該鍵30が押鍵状態となる。
【0045】
ステップS402に続いてステップS404においては、発音停止指示データ(ノート・オフ)を予約するためのテーブル(図3参照)において開放されている「鍵番号」の欄と「残り待ち時間」の欄との検出する空きメモリの検出処理を行なう。
【0046】
具体的には、最大押鍵数nと等しい数の設定されている「鍵番号」の欄のそれぞれに「−1」が記憶されているか否かを判断し、「鍵番号」の欄に「−1」が記憶されている場合には、当該「鍵番号」は開放されており、「鍵番号」の欄に「−1」が記憶されていない場合には、当該「鍵番号」は開放されていないものである。
【0047】
ステップS404を終了すると、ステップS406に進み、ステップS404の発音停止指示データ(ノート・オフ)を予約するためのテーブル(図3参照)における開放されている「鍵番号」の欄と「残り待ち時間」の欄との検出処理の結果、開放されている「鍵番号」の欄と「残り待ち時間」の欄との検出が行われか否かを判断し、開放されている「鍵番号」の欄と「残り待ち時間」の欄との検出が行われたと判断された場合には、ステップS414に進み、開放されている「鍵番号」の欄と「残り待ち時間」の欄との検出が行われないと判断された場合には、ステップS408に進む。
【0048】
ここで、ステップS406において、開放されている「鍵番号」の欄と「残り待ち時間」の欄との検出が行われたと判断された場合には、発音停止指示データ(ノート・オフ)を予約するためのテーブル(図3参照)は、「鍵番号」の欄と「残り待ち時間」の欄との全てに演奏データのキー・ナンバーとその残り待ち時間とは記憶されてなく、一方、ステップS406において開放されている「鍵番号」の欄と「残り待ち時間」の欄との検出が行われないと判断された場合には、発音停止指示データ(ノート・オフ)を予約するためのテーブル(図3参照)は、「鍵番号」の欄と「残り待ち時間」の欄との全てに演奏データのキー・ナンバーとその残り待ち時間とが最大押鍵数nと等しい数の記憶されるているものである。
【0049】
そして、ステップS408においては、優先順位の最も低い「鍵番号」の欄と「残り待ち時間」の欄との検出処理が行なわれる。
【0050】
なお、この実施の形態においては、「残り待ち時間」の欄に記憶されている発音停止指示データ(ノート・オフ)までの残りの待ち時間が最小値の「鍵番号」の欄と「残り待ち時間」の欄とを、優先順位の最も低い「鍵番号」の欄と「残り待ち時間」の欄とするように設定されている。
【0051】
従って、ステップS408においては、最大押鍵数nと等しい数の「残り待ち時間」の欄に全てに記憶されたn個の発音停止指示データ(ノート・オフ)までの残りの待ち時間の中から最小値を検出し、当該最小値が記憶された「鍵番号」の欄と「残り待ち時間」の欄とを、優先順位の最も低い「鍵番号」の欄と「残り待ち時間」の欄として検出してステップS410に進む。
【0052】
ステップS410においては、ステップS408の処理によって検出された優先順位の最も低い「鍵番号」の欄に記憶されたキー・ナンバーについて、発音停止指示データ(ノート・オフ)をソレノイド駆動制御部24に出力する。この結果、ソレノイド駆動制御部24における駆動信号の生成が停止されて、ソレノイド32への電力の供給は停止され鍵30は離鍵状態となる。
【0053】
ステップS410を終了するとステップS412に進み、ステップS408の処理によって検出された優先順位の最も低い「鍵番号」の欄と「残り待ち時間」の欄とに記憶された発音停止指示データ(ノート・オフ)の処理は、既にステップS410の処理によって本来のタイミングよりも先行して行なわれたので、ステップS408の処理によって検出された優先順位の最も低い「鍵番号」の欄と「残り待ち時間」の欄とを開放してステップS414に進む。
【0054】
ステップS414においては、所定の時間とステップS402においてシーケンサー18から入力された第1形式の演奏データの押鍵時間データ(ゲート・タイム)の示す押鍵時間との比較処理を行ない、所定の時間に比べて押鍵時間データ(ゲート・タイム)の示す押鍵時間が長い場合にはステップS416に進み、所定の時間に比べて押鍵時間データ(ゲート・タイム)の示す押鍵時間が短い場合にはステップS418に進む。
【0055】
なお、ステップS414における所定の時間とは、ソレノイド32の配設された鍵30が長時間にわたって押鍵状態となるような場合に、当該ソレノイド32が過熱して焼き付いてしまうことを回避することができる程度に予め設定された時間である。
【0056】
ステップS416においては、ステップS402においてシーケンサー18から入力された第1形式の演奏データの押鍵時間データ(ゲート・タイム)の示す押鍵時間を所定の時間に変更してステップS418に進む。
【0057】
そして、ステップS418においては、発音停止指示データ(ノート・オフ)を予約するためのテーブル(図3参照)の開放されている「鍵番号」の欄に、ステップS402においてシーケンサー18から入力された第1形式の演奏データの鍵番号データ(キー・ナンバー)を記憶し、当該「鍵番号」の欄に対応する「残り待ち時間」の欄に、ステップS402においてシーケンサー18から入力された第1形式の演奏データの押鍵時間データ(ゲート・タイム)を記憶する。
【0058】
この際、「残り待ち時間」の欄に記憶される押鍵時間データ(ゲート・タイム)の示す押鍵時間は、ステップS414乃至ステップS416の処理により所定の時間以下とされているものである。
【0059】
そして、このステップS418の処理を終了すると、このノート・イベントにより起動される処理ルーチンを終了する。
【0060】
次に、図5に示す定期サービス処理ルーチンについて説明すると、この定期サービス処理ルーチンは、CPU10がタイマー34から所定の時間間隔で出力される割り込み信号を入力する度に読み出され起動される割り込みルーチンである。即ち、定期サービス処理ルーチンは、所定の時間間隔で定期的に起動することになる。
【0061】
この定期サービス処理ルーチンが起動されると、まず、ステップS502において、発音停止指示データ(ノート・オフ)を予約するためのテーブル(図3参照)の「残り待ち時間」の欄に記憶されている発音停止指示データ(ノート・オフ)までの残りの待ち時間から、タイマー34によって計数されている経過時間を減算した差を新たな発音停止指示データ(ノート・オフ)までの残りの待ち時間として「残り待ち時間」の欄に記憶する。
【0062】
ステップS502を終了すると、ステップS504に進み、「残り待ち時間」に記憶される発音停止指示データ(ノート・オフ)までの残りの待ち時間がマイナスの場合は、発音停止指示データ(ノート・オフ)の予約時間が過ぎたことになるので、当該「残り待ち時間」の欄に対応する「鍵番号」の欄に記憶されているキー・ナンバーについて、発音停止指示データ(ノート・オフ)をソレノイド駆動制御部24に出力する。
【0063】
その結果、ソレノイド駆動制御部24における駆動信号の生成が停止されて、ソレノイド32への電力の供給は停止され鍵30は離鍵状態となる。一方、発音停止指示データ(ノート・オフ)を予約するためのテーブル(図3参照)の当該「残り待ち時間」の欄と対応する「鍵番号」の欄とは開放され、当該開放された「鍵番号」の欄に「−1」を記憶する。
【0064】
このステップS504の処理を終了すると、この定期サービス処理ルーチンを終了する。
【0065】
上記したようにして、本発明による電子楽器においては、シーケンサー18からの演奏データに応じて音源20が楽音信号を生成するとともに、当該演奏データに応じて同時に押鍵状態となる鍵の数が最大押鍵数n以下に制限されることになり、しかも、鍵30の押鍵時間が所定の時間より短く制限されるので、消費電流が電源の最大定格を越えることがなく、過負荷状態を回避してソレノイド32による鍵30の押鍵動作を行なうことができるとともに、当該ソレノイド32の配設された鍵30が長時間にわたって押鍵状態となり、当該ソレノイド32が過熱して焼き付いてしまうようなことを回避することができる。
【0066】
しかも、シーケンサー18から出力される発音開始指示データ(ノート・オン)および発音停止指示データ(ノート・オフ)は直接音源20に供給されるようになっているので、押鍵数が最大押鍵数nを越えて強制的に離鍵状態になった鍵があったとしても、音源20では演奏データ通りに楽音信号は生成されるようになっている。
【0067】
また、必要な電源容量が減少し容量の大きな電源を用いることがないので、製造コストなどが減少し安価なものとすることができる。
【0068】
そして、この電子楽器においては、上記したようにしてソレノイド駆動制御部24は、シーケンサー18から出力された第1形式の演奏データの発音開始指示データ(ノート・オン)に応じて駆動信号を生成して、当該駆動信号を当該発音開始指示データ(ノート・オン)のキー・ナンバーが示す鍵30に配設されたソレノイド32に出力するものであるが、当該駆動信号は図6(a)(b)に示すような2種類の波形を有するものである。
【0069】
より詳細には、駆動信号のソレノイド32への出力が開始されて170msecの間は、初期駆動波形(図6(a)ch2参照)の駆動信号がソレノイド駆動制御部24から出力され、当該初期駆動波形に対応した多量の電力がソレノイド32に供給されて、初期の大きな駆動力が得られる。
【0070】
そして、駆動信号のソレノイド32への出力が開始されて170msec以降は、保持波形(図6(a)ch1参照)の駆動信号がソレノイド駆動制御部24から出力され、当該保持波形に対応した電力がソレノイド32に供給されて保持力が得られる。
【0071】
ここで、図7に示すように、最大押鍵数nと等しい数だけ配設された出力ポート40に上記した初期駆動波形あるいは保持波形が出力され、電子スイッチ42によってソレノイド32への電力供給がオン・オフされ、インターフェース回路44によってソレノイド32への印加電圧が論理電圧レベルへ変換され、当該インターフェース回路44の出力のOR演算が論理和回路46によって行なわれて出力信号が生成されることになる。
【0072】
従って、位相0における出力ポート40のレベルは初期駆動波形であっても保持波形であってもLOWレベルなので(図6(a)参照)、このタイミングにおいて、ソレノイド32からのフィードバック信号である論理和回路46によって生成された出力信号の論理を検証して、電子スイッチ42の故障を検出することができる。
【0073】
このため、電子スイッチ42が導通状態で故障した場合でも、鍵30が押鍵されたままの状態となって過熱してしまい、ソレノイド32が破壊されるようなことを防止することができる。
【0074】
なお、上記した本発明による実施の形態においては、「残り待ち時間」の欄に記憶されている発音停止指示データ(ノート・オフ)までの残りの待ち時間が最小値の「鍵番号」の欄と「残り待ち時間」の欄とを、優先順位の最も低い「鍵番号」の欄と「残り待ち時間」の欄とするようにしたが、これに限られるものではないことは勿論であり、優先順位の最も低いメモリは、例えば、「残り待ち時間」の欄に記憶されている発音停止指示データ(ノート・オフ)までの残りの待ち時間の最大値の「鍵番号」の欄と「残り待ち時間」の欄としてもよいし、押鍵速度データ(ベロシティー)の最大値あるいは最小値としてもよいし、最も古い発音開始指示データ(ノート・オン)としてもよいし、最も新しい発音開始指示データ(ノート・オン)としてもよいし、現在発音中の出力レベルの最高レベルあるいは最低レベルとしてもよいし、最高の音高あるいは最低の音高としてもよい。
【0075】
この際、上記した優先順位の内容に応じて、ステップS418の処理において、発音停止指示データ(ノート・オフ)を予約するためのテーブル(図3参照)の「鍵番号」の欄と「残り待ち時間」の欄とに対応して押鍵速度データ(ベロシティー)や、記憶された順番を示す通し番号などを記憶する。
【0076】
また、上記した本発明による実施の形態において、発音停止指示データ(ノート・オフ)を予約するためのテーブル(図3参照)の「残り待ち時間」の欄に記憶される押鍵時間データ(ゲート・タイム)を、シーケンサー18で用いるTick数に換算して記憶するようにしてもよい。
【0077】
このTick数(Wait Tick)への変換は、押鍵時間データ(ゲート・タイム)の示す押鍵時間(Wait Sec)とテンポ(Tempo:1分間に進む四分音符の数)とTPQN(四分音符あたりのTick数)とを用いて、「Wait Tick=Wait Sec/(60/(Tempo×TPQN))」の演算により行うことができる。
【0078】
このようにして、Tick数に換算された押鍵時間データ(ゲート・タイム)を「残り待ち時間」の欄に記憶すると、タイマー・イベントがTickのタイミングで発生する場合に、通常は演奏データもTickの単位で時間を示すので、演算量が減少しCPU10の負荷を低減することができる。
【0079】
また、上記した本発明による実施の形態においては、ソレノイド駆動制御部24に発音停止指示データ(ノート・オフ)が出力されると、ソレノイド駆動制御部24における駆動信号の生成が停止されて、ソレノイド32への電力の供給が停止されるようにしたが、これに限られるものではないことは勿論でり、ソレノイド駆動制御部24に発音停止指示データ(ノート・オフ)ではなくトランケート要求が出力されるようにして、発音停止指示データ(ノート・オフ)の出力の後にソレノイド32への電力の供給が即座に停止するのではなく、例えば、鍵30が最も下方位置まで下がって押鍵状態となるのを待ってソレノイド32への電力の供給を停止するようにしてもよい。
【0080】
つまり、ソレノイド駆動制御部24にトランケート要求が出力されることによって、発音停止指示データ(ノート・オフ)を予約するためのテーブル(図3参照)の「鍵番号」の欄と「残り待ち時間」の欄との開放のタイミングに比べて、遅いタイミングでソレノイド32への電力の供給を停止することができるものである。
【0081】
また、上記した本発明による実施の形態においては、鍵盤装置を備えた電子楽器がシーケンサー18を内蔵しているようにしたが、シーケンサーを内蔵していない電子楽器においても、上記した本発明による鍵盤装置の実施は可能である。
【0082】
なお、その場合には、MIDIインターフェース28を介して外部に接続されたMIDI機器から、発音開始指示データ(ノート・オン)および発音停止指示データ(ノート・オフ)が入力されるようにすればよい。
【0083】
また、上記した本発明による実施の形態においては、鍵盤装置を備えた電子楽器が音源20を内蔵している電子楽器に一体化されたものとしたが、音源を内蔵していない単なる鍵盤装置としてもよいことは勿論である。
【0084】
また、上記した本発明による実施の形態においては、シーケンサー18から出力される発音開始指示データ(ノート・オン)および発音停止指示データ(ノート・オフ)は直接音源20に供給されるようになっているので、押鍵数が最大押鍵数nを越えて強制的に離鍵状態になった鍵があったとしても、音源20では演奏データ通りに楽音信号は生成されるようになっているが、これに代えて、離鍵された鍵に対応する楽音信号を停止させるように制御してもよい。
【0086】
【発明の効果】
本発明は、以上説明したように構成されているので、鍵の押鍵時間を制限することが可能となり、消費電流が電源の最大定格を越えないようにすることができるという優れた効果を奏する。
【図面の簡単な説明】
【図1】本発明による鍵盤装置の実施の形態の一例を備えた電子楽器を示すブロック構成図である。
【図2】(a)は第1形式の演奏データを示す説明図であり、(b)は第2形式の演奏データを示す説明図である。
【図3】発音停止指示データ(ノート・オフ)を予約するためのテーブルを模式的に示す説明図である。
【図4】シーケンサーからのノート・イベントにより起動される処理ルーチンのフローチャートである。
【図5】定期サービス処理ルーチンのフローチャートである。
【図6】(a)(b)は、ソレノイド駆動制御部から出力される駆動信号の初期駆動波形と保持波形とを示す波形図である。
【図7】電子スイッチの故障を検出の機構を示す回路図である。
【符号の説明】
10 中央処理装置(CPU)
12 バス
14 リード・オンリ・メモリー(ROM)
16 ランダム・アクセス・メモリー(RAM)
18 シーケンサー
20 音源
22 サウンド・システム
24 ソレノイド駆動制御部
26 鍵盤装置
28 MIDIインターフェース
30 鍵
32 ソレノイド
34 タイマー
100 外部のMIDI機器
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a keyboard device, and more specifically, an electronic piano that causes a keyboard to perform a key press operation / key release operation according to performance data indicating a sound generation start instruction (key press instruction) / sound generation stop instruction (key release instruction). It is related with a keyboard apparatus.
[0002]
[Prior art]
In general, in the field of electronic musical instruments, an automatic performance device is mounted, and performance data (for example, in MIDI, which indicates a sound generation start instruction (key press instruction) / a sound generation stop instruction (key release instruction) read by the automatic performance apparatus) (Performance data indicating a sounding start instruction (key press instruction) corresponds to note-on, and performance data indicating a sound generation stop instruction (key release instruction) corresponds to note-off). An electronic musical instrument such as an electronic piano that performs a key release operation is known.
[0003]
Such a keyboard device for an electronic musical instrument such as an electronic piano has a plurality of oscillating keys operated by a performer and a solenoid arranged for each of the plurality of keys. A solenoid is driven in accordance with performance data from a device or the like, and a key is pressed / released.
[0004]
Specifically, the solenoid corresponding to the key indicated by the key number of the sound generation start instruction (key press instruction) of the performance data output from the automatic performance device or the like is energized, and the sound generation start instruction (key press instruction) The key indicated by the key number is depressed to enter the depressed state, and the performance data output from the automatic performance device is output to the solenoid corresponding to the key indicated by the key number of the sound generation stop instruction (key release instruction). The energization is terminated, and the key indicated by the key number of the sound generation stop instruction (key release instruction) is released to enter the key release state.
[0005]
Therefore, when sufficient power is not supplied to the solenoid, there is a possibility that an overload condition occurs and the key pressing operation by the solenoid is not performed, and the key pressing operation according to the performance data may not be realized.
[0006]
However, in the above-described electronic musical instrument keyboard device, a large-capacity power source is necessary to ensure a sufficient power source capacity. However, such a large-capacity power source is expensive, and the capacity If a large power source is arranged in the keyboard device of the electronic musical instrument, there is a problem that the manufacturing cost increases and the cost becomes high.
[0007]
Also, if a predetermined solenoid is energized for a long time according to the performance data and the key disposed on the solenoid is depressed for a long time, the solenoid may be overheated and burned out. There is.
[0008]
Therefore, in order to avoid energizing a predetermined solenoid for a long time, the time during which the key is in the depressed state (in this specification, the “time during which the key is depressed” is referred to as “ The key pressing time is appropriately referred to as “key pressing time”), and control is performed so that the key pressing time does not exceed a predetermined time.
[0009]
[Problems to be solved by the invention]
The present invention has been made in view of the various problems of the prior art as described above, and the object of the present invention is to limit the number of keys that can be simultaneously depressed so that the consumption is reduced. It is an object of the present invention to provide a keyboard device in which the current does not exceed the maximum rating of the power supply.
[0010]
It is another object of the present invention to provide a keyboard device that limits the key pressing time so that the current consumption does not exceed the maximum rating of the power supply.
[0014]
[Means for Solving the Problems]
In order to achieve the above object, the invention according to claim 1 of the present invention provides:In a keyboard device that performs a key press operation in response to a performance data sounding start instruction and also releases a key in response to a performance data sounding stop instruction, the time from the performance data sounding start instruction to the sounding stop instruction is set. Detecting means for detecting, comparing means for comparing a time from a sounding start instruction to a sounding stop instruction detected by the detecting means with a predetermined time, and a sounding start in which the comparison result of the comparing means is detected by the detecting means Control means for matching the time from the sound generation start instruction detected by the detection means to the sound generation stop instruction to the predetermined time when the time from the instruction to the sound generation stop instruction is longer than the predetermined time; It is made to have.
[0015]
Therefore, according to the invention described in claim 1 of the present invention,Since the key pressing time can be limited, it is possible to prevent the current consumption from exceeding the maximum rating of the power supply.
[0016]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an example of an embodiment of a keyboard device according to the present invention will be described in detail with reference to the accompanying drawings.
[0017]
FIG. 1 shows a block diagram of an electronic musical instrument provided with an example of an embodiment of a keyboard apparatus according to the present invention. The electronic musical instrument controls the overall operation of the electronic musical instrument. It is comprised so that it may control using.
[0018]
The CPU 10 includes a read only memory (ROM) 14 in which a program for controlling the operation of the CPU 10 is stored via the bus 12 and various register groups and flags necessary for the CPU 10 to execute the program. Is set based on a random access memory (RAM) 16, an automatic performance device (sequencer) 18 for storing performance data and outputting the performance data stored via the bus 12, and performance data from the sequencer 18. A sound source 20 for generating a musical tone signal, a solenoid drive control unit 24 for inputting performance data, generating a drive signal corresponding to the performance data, and outputting it to a solenoid 32 of a keyboard device 26 described later, and a player A plurality of swingable keys 30 and solenoids 32 disposed on each of the keys 30 A keyboard device 26 having a key mechanism for operating the key 30, and a timer 34 for issuing a timer interrupt to the CPU 10 at a predetermined time interval when counting the elapsed time since the keyboard device 26 is powered on. Is connected.
[0019]
The sound source 20 is connected to a sound system 22 that is composed of an amplifier, a speaker, and the like, and emits the sound signal generated by the sound source 20 into the space as a sound that can be heard.
[0020]
Reference numeral 28 denotes a MIDI interface (MIDI I / F) to which an external MIDI device 100 such as an automatic performance device (sequencer) is connected, and performance data generated by the external MIDI device 100 is input. It performs control such as outputting performance data to an external MIDI device 100.
[0021]
Here, in the description of this embodiment, in order to simplify the description and facilitate understanding of the present invention, the performance data stored in advance by the sequencer 18 is used as performance data to be processed. However, the present invention is not limited to this, and the performance data stored in the external storage means may be read out.
[0022]
In addition, this electronic musical instrument is provided with various control elements (not shown). By operating appropriate control elements, performance data output from the sequencer 18 or performance data input from the MIDI interface 28 is obtained. It is assumed that it can be arbitrarily selected.
[0023]
In the following, the components related to the implementation of the present invention will be described as appropriate.
[0024]
First, the sequencer 18 outputs performance data as described above. The performance data output from the sequencer 18 includes performance data in the first format shown in FIG. 2A and FIG. The performance data in the second format shown in FIG.
[0025]
The performance data in the first format includes key number data (Key Number: key number) indicating a key to be pressed, sounding start instruction data (NoteOn: note on) indicating a key pressing instruction, and a key being pressed. The key press speed data (Velocity) indicating the speed to be played, and the key press time data (Gate Time) indicating the time during which the key is in the key press state, that is, the time during sound generation. is there. In the performance data in the first format, when the time indicated by the key pressing time data (gate time) elapses from the start of sound generation, sound generation stop instruction data (Note Off: note-off) is output. .
[0026]
In the electronic musical instrument, the performance data in the first format (see FIG. 2 (a)) is pronounced corresponding to the sounding start instruction data (note on) and time information (Time) and the sounding start instruction data. It is converted into performance data (see FIG. 2B) of the second format configured by a combination of stop instruction data (Note Off: note-off) and time information (Time).
[0027]
The process of converting the performance data in the first format to generate the performance data in the second format is a conventionally known process, and therefore detailed description thereof will be omitted.
[0028]
The solenoid drive control unit 24 generates a drive signal in accordance with the sound generation start instruction data (note-on), and the generated drive signal is a key indicated by the key number of the sound generation start instruction data (note-on). The power is output to the solenoid 32 arranged at 30.
[0029]
The solenoid drive control unit 24 stops the generation of the drive signal in accordance with the sound generation stop instruction data (note-off).
[0030]
When the drive signal from the solenoid drive control unit 24 is output and power is supplied to the solenoid 32, the key 30 is depressed, and the output of the drive signal from the solenoid drive control unit 24 is stopped. When the supply of power is stopped, the key 30 is brought into a key release state.
[0031]
The timer 34 counts the elapsed time since the power of the electronic musical instrument is turned on as described above, and interrupts the CPU 10 at a predetermined time interval, and the CPU 10 is interrupted at the predetermined time interval. On the other hand, when a timer interrupt is applied, a periodic service processing routine (FIG. 5) described later is executed.
[0032]
Next, as shown in FIG. 3, a table for reserving sound generation stop instruction data (note-off) is set in the RAM 14, and this table stores a key number column for storing key numbers. And a “remaining waiting time” field for storing the remaining waiting time of the key number stored in the “key number”.
[0033]
In the “key number” field, when the sequencer 18 outputs the sound generation start instruction data (note-on) of the performance data in the first format, the key number of the sound generation start instruction data (note-on) is stored. It is what is done.
[0034]
On the other hand, the key remaining time (gate time) stored in the “key number” is stored in the “remaining waiting time” column, and a timer interrupt is applied to the CPU 10 by the timer 34. When a routine service processing routine (FIG. 5) described later is executed, a difference obtained by subtracting the elapsed time from the key pressing time data (gate time), that is, until the sound generation stop instruction data (note off) is output. The remaining waiting time is stored.
[0035]
If the remaining waiting time until the sounding stop instruction data (note off) stored in the “Remaining wait time” column is negative, the reserved time of the sounding stop instruction data (note off) has passed. Therefore, the “remaining waiting time” field and the corresponding “key number” field are opened by the processing of the periodic service processing routine described later.
[0036]
Note that “−1” is stored in the opened “key number” field (see FIG. 3), and “−1” is stored in the “key number” field. Only in the column and the “remaining waiting time” column corresponding to the “key number”, the key number and the remaining waiting time can be newly stored.
[0037]
In the table for reserving the sound generation stop instruction data (note-off), the number of keys that can be simultaneously depressed in the electronic musical instrument, that is, the number equal to the maximum number n of key depressions. A “key number” field and a “remaining waiting time” field are set. Note that the maximum number n of keys pressed is smaller than the number of simultaneous sounds of the sound source 20.
[0038]
In FIG. 3, the sequencer 18 outputs key number 64, key number 66, and sound start instruction data (note-on) of the first number of performance data in the first format. "64" indicating the key number 64 is stored in the "" column, and the remaining until the sound generation stop instruction data (note off) of the key number 64 is stored in the "remaining waiting time" column corresponding to the "key number". Is stored in the “key number” column, “66” indicating the key number 66 is stored in the “remaining waiting time” column corresponding to the “key number”. 1500 msec which is the remaining waiting time until the sound generation stop instruction data (note-off) of number 66 is stored, and “68” indicating the key number 68 in the “key number” column. Is stored, and 1950 msec which is the remaining waiting time until the sound stop instruction data (note-off) of the key number 68 is stored in the “remaining waiting time” column corresponding to the “key number”. It is shown.
[0039]
Hereinafter, the operation of an electronic musical instrument provided with an example of an embodiment of a keyboard apparatus according to the present invention will be described with reference to the flowcharts shown in FIGS.
[0040]
First, the processing routine activated by the note event from the sequencer 18 shown in the flowchart of FIG. 4 will be described. The processing routine activated by the note event from the sequencer 18 is connected to the electronic musical instrument from the sequencer 18. This is an interrupt routine that is activated when an event, that is, performance data in the first format is output.
[0041]
Note that both the processing routine (see FIG. 4) activated by the note event from the sequencer 18 and the periodic service processing routine (see FIG. 5) to be described later are performed from the first format performance data to the second format performance data. It is executed in the mechanism that performs the conversion process.
[0042]
In the processing routine activated by the note event from the sequencer 18, the performance data in the first format is output from the sequencer 18, and a table for reserving sound generation stop instruction data (note off) (see FIG. 3). If there is no “key number” field and “remaining waiting time” field that are open, the process of releasing the lowest-priority “key number” field and “remaining waiting time” field In addition, a process of limiting the key pressing time data (gate time) stored in the “remaining waiting time” column to be shorter than a predetermined time is performed, and the “key number” column and the “key” The process of storing the key number of the performance data and the remaining waiting time in the “remaining waiting time” corresponding to “number” is performed.
[0043]
When the processing routine started by the note event from the sequencer 18 is started, first, in the processing of step S402, the sound generation start instruction data (note on) of the first format performance data output from the sequencer 18 is started. Is output to the solenoid drive control unit 24.
[0044]
Then, the solenoid drive control unit 24 generates a drive signal in accordance with the output sounding start instruction data (note-on), and the generated drive signal is the key of the sounding start instruction data (note-on). The power is supplied to the solenoid 32 arranged on the key 30 indicated by the number, and the solenoid 32 is supplied with power, and the key 30 enters the key depression state.
[0045]
In step S404 following step S402, the “key number” field and the “remaining waiting time” field that are opened in the table (see FIG. 3) for reserving sound generation stop instruction data (note-off) are displayed. Detecting free memory detected by
[0046]
Specifically, it is determined whether or not “−1” is stored in each of the set “key number” fields equal to the maximum number n of key presses. When “−1” is stored, the “key number” is released, and when “−1” is not stored in the “key number” field, the “key number” is released. Is not.
[0047]
When step S404 ends, the process proceeds to step S406, where the “key number” field and “remaining waiting time” in the table (see FIG. 3) for reserving the sound generation stop instruction data (note-off) in step S404 are reserved. As a result of the detection processing in the "" column, it is determined whether or not detection is performed in the "key number" field that is released and the "remaining waiting time" field. If it is determined that the column and the “remaining waiting time” column have been detected, the process proceeds to step S414, and detection of the opened “key number” column and the “remaining waiting time” column is performed. If it is determined not to be performed, the process proceeds to step S408.
[0048]
If it is determined in step S406 that the open “key number” field and the “remaining waiting time” field have been detected, the pronunciation stop instruction data (note-off) is reserved. In the table (see FIG. 3), the key number of the performance data and the remaining waiting time are not stored in all of the “key number” column and the “remaining waiting time” column. A table for reserving sound generation stop instruction data (note-off) when it is determined that the “key number” field and the “remaining waiting time” field that have been released are not detected in S406 In the “key number” column and the “remaining waiting time” column, the number of performance data key numbers and the remaining waiting time are stored in a number equal to the maximum number n of key presses (see FIG. 3). It is what.
[0049]
In step S408, the “key number” column and the “remaining waiting time” column having the lowest priority are detected.
[0050]
In this embodiment, the remaining time until the sound generation stop instruction data (note-off) stored in the “remaining wait time” column is the minimum value in the “key number” column and “remaining wait time”. The “time” field is set to be the “key number” field and the “remaining waiting time” field having the lowest priority.
[0051]
Accordingly, in step S408, from among the remaining waiting times up to n sounding stop instruction data (note-off) stored in all of the “remaining waiting time” fields equal to the maximum number of key depressions n. The minimum value is detected, and the “key number” field and the “remaining waiting time” field in which the minimum value is stored are used as the “key number” field and the “remaining waiting time” field with the lowest priority. Detect and proceed to step S410.
[0052]
In step S410, sound generation stop instruction data (note-off) is output to the solenoid drive control unit 24 for the key number stored in the “key number” field having the lowest priority detected by the process of step S408. To do. As a result, the generation of the drive signal in the solenoid drive control unit 24 is stopped, the supply of power to the solenoid 32 is stopped, and the key 30 is released.
[0053]
When step S410 is completed, the process proceeds to step S412, and the sound generation stop instruction data (note off) stored in the “key number” column and the “remaining waiting time” column with the lowest priority detected by the process of step S408 are stored. ) Has already been performed in advance of the original timing by the process of step S410, so that the “key number” column having the lowest priority detected by the process of step S408 and the “remaining waiting time” The field is released and the process proceeds to step S414.
[0054]
In step S414, a comparison process is performed between the predetermined time and the key pressing time indicated by the key pressing time data (gate time) of the first format performance data input from the sequencer 18 in step S402. If the key pressing time indicated by the key pressing time data (gate time) is longer than that, the process proceeds to step S416, and if the key pressing time indicated by the key pressing time data (gate time) is shorter than the predetermined time. Advances to step S418.
[0055]
The predetermined time in step S414 is to prevent the solenoid 32 from overheating and burning when the key 30 provided with the solenoid 32 is depressed for a long time. It is a preset time as much as possible.
[0056]
In step S416, the key pressing time indicated by the key pressing time data (gate time) of the performance data of the first format input from the sequencer 18 in step S402 is changed to a predetermined time, and the process proceeds to step S418.
[0057]
In step S418, the “key number” field opened in the table (see FIG. 3) for reserving the sound generation stop instruction data (note-off) is input to the first input from the sequencer 18 in step S402. The key number data (key number) of the performance data in one format is stored, and the first format input from the sequencer 18 in step S402 in the “remaining waiting time” column corresponding to the “key number” column. Stores key press time data (gate time) of performance data.
[0058]
At this time, the key pressing time indicated by the key pressing time data (gate time) stored in the “remaining waiting time” column is set to a predetermined time or less by the processing of steps S414 to S416.
[0059]
When the processing in step S418 is completed, the processing routine activated by this note event is terminated.
[0060]
Next, the periodic service processing routine shown in FIG. 5 will be described. This periodic service processing routine is read and activated every time the CPU 10 inputs an interrupt signal output from the timer 34 at a predetermined time interval. It is. That is, the regular service processing routine is periodically started at a predetermined time interval.
[0061]
When this periodic service processing routine is started, first, in step S502, it is stored in the “remaining waiting time” column of the table (see FIG. 3) for reserving sound generation stop instruction data (note-off). The difference obtained by subtracting the elapsed time counted by the timer 34 from the remaining waiting time until the sound generation stop instruction data (note off) is set as the remaining waiting time until the new sound generation stop instruction data (note off). Store in the “Remaining wait time” column.
[0062]
When step S502 ends, the process proceeds to step S504, and when the remaining waiting time until the sounding stop instruction data (note-off) stored in the “remaining waiting time” is negative, the sounding stop instruction data (note-off) Since the reserved time has passed, the sound generation stop instruction data (note off) is solenoid driven for the key number stored in the “key number” field corresponding to the “remaining waiting time” field. Output to the control unit 24.
[0063]
As a result, the generation of the drive signal in the solenoid drive control unit 24 is stopped, the supply of power to the solenoid 32 is stopped, and the key 30 is released. On the other hand, the “remaining waiting time” column and the “key number” column corresponding to the table (see FIG. 3) for reserving the pronunciation stop instruction data (note off) are opened, and the released “ “−1” is stored in the “key number” field.
[0064]
When the process of step S504 is completed, the regular service process routine is terminated.
[0065]
As described above, in the electronic musical instrument according to the present invention, the tone generator 20 generates a musical tone signal according to the performance data from the sequencer 18, and the number of keys that are simultaneously depressed according to the performance data is maximum. The number of key presses is limited to n or less, and the key press time of the key 30 is limited to be shorter than a predetermined time, so that the current consumption does not exceed the maximum rating of the power source and an overload state is avoided. As a result, the key 30 can be depressed by the solenoid 32, and the key 30 provided with the solenoid 32 is depressed for a long time, and the solenoid 32 is overheated and burned. Can be avoided.
[0066]
In addition, since the sounding start instruction data (note on) and sounding stop instruction data (note off) output from the sequencer 18 are directly supplied to the sound source 20, the number of key presses is the maximum number of key presses. Even if there is a key that is forcibly released beyond n, the tone generator 20 generates a tone signal according to the performance data.
[0067]
In addition, since a necessary power source capacity is reduced and a power source having a large capacity is not used, the manufacturing cost and the like can be reduced and the cost can be reduced.
[0068]
In this electronic musical instrument, as described above, the solenoid drive control unit 24 generates a drive signal in accordance with the sound generation start instruction data (note-on) of the performance data in the first format output from the sequencer 18. The drive signal is output to the solenoid 32 disposed on the key 30 indicated by the key number of the sound generation start instruction data (note-on). The drive signal is shown in FIGS. It has two types of waveforms as shown in FIG.
[0069]
More specifically, a drive signal having an initial drive waveform (see ch2 in FIG. 6A) is output from the solenoid drive control unit 24 for 170 msec after the output of the drive signal to the solenoid 32 is started, and the initial drive is performed. A large amount of electric power corresponding to the waveform is supplied to the solenoid 32 to obtain a large initial driving force.
[0070]
Then, after 170 msec after the output of the drive signal to the solenoid 32 is started, the drive signal of the holding waveform (see ch1 in FIG. 6A) is output from the solenoid drive control unit 24, and the electric power corresponding to the holding waveform is generated. It is supplied to the solenoid 32 to obtain a holding force.
[0071]
Here, as shown in FIG. 7, the initial drive waveform or the holding waveform described above is output to the output port 40 arranged in a number equal to the maximum number of key depressions n, and the electronic switch 42 supplies power to the solenoid 32. The interface circuit 44 converts the voltage applied to the solenoid 32 to a logic voltage level, and the OR operation of the output of the interface circuit 44 is performed by the OR circuit 46 to generate an output signal. .
[0072]
Accordingly, the level of the output port 40 at the phase 0 is the LOW level regardless of whether it is the initial drive waveform or the hold waveform (see FIG. 6A), and at this timing, the logical sum that is the feedback signal from the solenoid 32 is obtained. The logic of the output signal generated by the circuit 46 can be verified to detect a failure of the electronic switch 42.
[0073]
For this reason, even when the electronic switch 42 fails in the conductive state, it is possible to prevent the solenoid 32 from being destroyed because the key 30 remains pressed and overheated.
[0074]
In the embodiment according to the present invention described above, the “key number” column in which the remaining waiting time until the sound generation stop instruction data (note-off) stored in the “remaining waiting time” column is the minimum value. And the “Remaining wait time” field are the lowest-priority “Key number” field and “Remaining wait time” field, but it is of course not limited to this, The memory with the lowest priority is, for example, the “key number” column and the “remaining remaining time” maximum value of the remaining waiting time until the sound generation stop instruction data (note-off) stored in the “remaining waiting time” column. "Waiting time" column, maximum or minimum key pressing speed data (velocity), oldest pronunciation start instruction data (note-on), or newest pronunciation start instruction Data (note on) May be, may be as the highest level or the lowest level of the output level of the current sounding may be best pitch or minimum pitch.
[0075]
At this time, according to the contents of the above priority order, in the process of step S418, the “key number” column and “waiting for remaining” in the table (see FIG. 3) for reserving the sound generation stop instruction data (note-off) Corresponding to the “Time” field, key pressing speed data (velocity), a serial number indicating the stored order, and the like are stored.
[0076]
In the above-described embodiment according to the present invention, the key pressing time data (gate) stored in the “remaining waiting time” column of the table (see FIG. 3) for reserving the sound generation stop instruction data (note-off) (Time) may be converted into the number of ticks used in the sequencer 18 and stored.
[0077]
The conversion to the number of ticks (Wait Tick) is performed by the key pressing time (Wait Sec) indicated by the key pressing time data (gate time), the tempo (Tempo: the number of quarter notes going to one minute), and TPQN (quarter The number of ticks per note) can be used to calculate “Wai Tick = Wai Sec / (60 / (Tempo × TPQN))”.
[0078]
In this way, when the key pressing time data (gate time) converted into the number of ticks is stored in the “remaining waiting time” column, when the timer event occurs at the timing of the ticks, usually the performance data is also stored. Since time is indicated in units of Tick, the amount of calculation is reduced, and the load on the CPU 10 can be reduced.
[0079]
In the embodiment according to the present invention described above, when the sound generation stop instruction data (note-off) is output to the solenoid drive control unit 24, the generation of the drive signal in the solenoid drive control unit 24 is stopped, and the solenoid The power supply to the power supply 32 is stopped. However, the present invention is not limited to this, and a truncation request is output to the solenoid drive control unit 24 instead of the sound generation stop instruction data (note-off). Thus, the power supply to the solenoid 32 is not immediately stopped after the output of the sound generation stop instruction data (note-off), but, for example, the key 30 is lowered to the lowest position to enter the key depression state. The supply of power to the solenoid 32 may be stopped after waiting.
[0080]
That is, when the truncation request is output to the solenoid drive control unit 24, the “key number” column and the “remaining waiting time” in the table (see FIG. 3) for reserving the sound generation stop instruction data (note off) are reserved. The supply of power to the solenoid 32 can be stopped at a later timing than the timing of opening with the column.
[0081]
In the embodiment according to the present invention described above, the electronic musical instrument provided with the keyboard device has the sequencer 18 incorporated therein, but the electronic musical instrument without the sequencer incorporated also in the keyboard according to the present invention described above. Implementation of the device is possible.
[0082]
In this case, sound generation start instruction data (note on) and sound generation stop instruction data (note off) may be input from a MIDI device connected to the outside via the MIDI interface 28. .
[0083]
Further, in the above-described embodiment of the present invention, the electronic musical instrument provided with the keyboard device is integrated with the electronic musical instrument incorporating the sound source 20, but as a simple keyboard device not incorporating the sound source. Of course, it is also good.
[0084]
In the above-described embodiment according to the present invention, the sound generation start instruction data (note on) and the sound generation stop instruction data (note off) output from the sequencer 18 are directly supplied to the sound source 20. Therefore, even if there is a key that is forcibly released when the number of key presses exceeds the maximum key press number n, the tone generator 20 generates a tone signal according to the performance data. Instead of this, the musical tone signal corresponding to the released key may be controlled to stop.
[0086]
【The invention's effect】
The present inventionSince it is configured as described above, it is possible to limit the key pressing time, and there is an excellent effect that current consumption can be prevented from exceeding the maximum rating of the power source.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an electronic musical instrument provided with an example of an embodiment of a keyboard device according to the present invention.
FIG. 2A is an explanatory diagram showing performance data in the first format, and FIG. 2B is an explanatory diagram showing performance data in the second format.
FIG. 3 is an explanatory diagram schematically showing a table for reserving sound generation stop instruction data (note-off).
FIG. 4 is a flowchart of a processing routine activated by a note event from a sequencer.
FIG. 5 is a flowchart of a regular service processing routine.
6A and 6B are waveform diagrams showing an initial drive waveform and a holding waveform of a drive signal output from a solenoid drive control unit. FIG.
FIG. 7 is a circuit diagram showing a mechanism for detecting a failure of an electronic switch.
[Explanation of symbols]
10 Central processing unit (CPU)
12 Bus
14 Read-only memory (ROM)
16 Random access memory (RAM)
18 Sequencer
20 sound sources
22 Sound system
24 Solenoid drive controller
26 Keyboard device
28 MIDI interface
30 keys
32 Solenoid
34 timer
100 External MIDI equipment

Claims (1)

演奏データの発音開始指示に応じて鍵を押鍵状態に駆動するとともに、演奏データの発音停止指示に応じて鍵を離鍵動作する鍵盤装置において、
演奏データの発音開始指示から発音停止指示までの時間を検出する検出手段と、
前記検出手段によって検出された発音開始指示から発音停止指示までの時間を所定の時間と比較する比較手段と、
前記比較手段の比較結果が前記検出手段によって検出された発音開始指示から発音停止指示までの時間の方が前記所定の時間に比べて長い場合に、前記検出手段によって検出された発音開始指示から発音停止指示までの時間を短くする制御手段とを有する鍵盤装置。
In a keyboard device that drives a key in a depressed state in response to an instruction to start sounding performance data, and releases the key in response to an instruction to stop sounding performance data,
Detecting means for detecting the time from the sounding start instruction of the performance data to the sounding stop instruction;
Comparison means for comparing a time from a sound generation start instruction detected by the detection means to a sound generation stop instruction with a predetermined time;
When the comparison result of the comparing means is longer than the predetermined time from the sounding start instruction detected by the detecting means to the sounding stop instruction, the sounding is started from the sounding start instruction detected by the detecting means. A keyboard device having control means for shortening the time until the stop instruction.
JP37244699A 1999-12-28 1999-12-28 Keyboard device Expired - Fee Related JP4159715B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP37244699A JP4159715B2 (en) 1999-12-28 1999-12-28 Keyboard device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP37244699A JP4159715B2 (en) 1999-12-28 1999-12-28 Keyboard device

Publications (2)

Publication Number Publication Date
JP2001188527A JP2001188527A (en) 2001-07-10
JP4159715B2 true JP4159715B2 (en) 2008-10-01

Family

ID=18500459

Family Applications (1)

Application Number Title Priority Date Filing Date
JP37244699A Expired - Fee Related JP4159715B2 (en) 1999-12-28 1999-12-28 Keyboard device

Country Status (1)

Country Link
JP (1) JP4159715B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5062401B2 (en) * 2007-03-23 2012-10-31 ヤマハ株式会社 Instrument control device
JP2008233828A (en) * 2007-03-23 2008-10-02 Yamaha Corp Controller of musical instrument

Also Published As

Publication number Publication date
JP2001188527A (en) 2001-07-10

Similar Documents

Publication Publication Date Title
JP2001195063A (en) Musical performance support device
US5069104A (en) Automatic key-depression indication apparatus
JP4159715B2 (en) Keyboard device
JPS62157098A (en) Electronic percussion instrument
JP2629891B2 (en) Music signal generator
JP3835290B2 (en) Electronic music apparatus and program applied to the apparatus
JP2001166773A (en) Electronic musical instrument
JP3055554B2 (en) Operation instruction device
JP2692024B2 (en) Automatic piano playing device
JP2574964B2 (en) Automatic performance device
JP3609045B2 (en) Automatic performance device
JPH0375874B2 (en)
JP3567513B2 (en) Electronic musical instrument with performance operation instruction function
JP2770770B2 (en) Electronic musical instrument
JP5318460B2 (en) Resonant sound generator
JP4214845B2 (en) Automatic arpeggio device and computer program applied to the device
JP3543680B2 (en) Electronic keyboard instrument with performance guide
JP2578327B2 (en) Automatic performance device
JPH11219175A (en) Automatic music playing device
JP3671236B2 (en) Keyboard drive device
JPH0547838B2 (en)
JPH06202651A (en) Sound generation controller for musical sound generating device
JPS648358B2 (en)
JP2008152054A (en) Electronic instrument with performance recording function
JPH05204378A (en) Automatic playing device of piano

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061120

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080423

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080507

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080616

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: 20080715

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: 20080716

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: 20110725

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120725

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120725

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130725

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees