JP4229355B2 - Electronic musical instrument parameter setting device - Google Patents

Electronic musical instrument parameter setting device Download PDF

Info

Publication number
JP4229355B2
JP4229355B2 JP2000093784A JP2000093784A JP4229355B2 JP 4229355 B2 JP4229355 B2 JP 4229355B2 JP 2000093784 A JP2000093784 A JP 2000093784A JP 2000093784 A JP2000093784 A JP 2000093784A JP 4229355 B2 JP4229355 B2 JP 4229355B2
Authority
JP
Japan
Prior art keywords
value
parameter
current value
switch
speed
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
JP2000093784A
Other languages
Japanese (ja)
Other versions
JP2001282242A (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.)
Kawai Musical Instrument Manufacturing Co Ltd
Original Assignee
Kawai Musical Instrument Manufacturing Co Ltd
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 Kawai Musical Instrument Manufacturing Co Ltd filed Critical Kawai Musical Instrument Manufacturing Co Ltd
Priority to JP2000093784A priority Critical patent/JP4229355B2/en
Publication of JP2001282242A publication Critical patent/JP2001282242A/en
Application granted granted Critical
Publication of JP4229355B2 publication Critical patent/JP4229355B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、電子楽器にパラメータを設定するためのパラメータ設定装置に関し、特にパラメータ設定操作の操作性を向上させる技術に関する。
【0002】
【従来の技術】
従来、音量値、音色番号、リズム番号といったパラメータを電子楽器に設定するパラメータ設定装置が知られている。このパラメータ設定装置は、一般に、パラメータ入力スイッチとパラメータ表示器とから構成されている。パラメータ入力スイッチはパラメータを設定するための操作子であり、例えばアップスイッチとダウンスイッチとから構成されるアップダウンスイッチ、インクリメンタ、ベンダーホイール等が実用化されている。また、パラメータ表示器は、パラメータ入力スイッチで入力されたパラメータ値を表示する。
【0003】
以下、パラメータ入力スイッチとしてアップダウンスイッチが採用されたパラメータ設定装置について説明する。このパラメータ設定装置では、アップスイッチが単発的に押されると現在のパラメータ値が+1だけ増加される。一方、所定時間以上押し続けられると現在のパラメータ値から連続的に増加される。この場合、パラメータ値が増加する速度は、一定であったり、又は押し続ける時間の経過に連れて早くなるように制御される。
【0004】
同様に、ダウンスイッチが単発的に押されると現在のパラメータ値が−1だけ減少される。一方、所定時間以上押し続けられると現在のパラメータ値から連続的に減少される。この場合、パラメータ値が減少する速度は、一定であったり、又は押し続ける時間の経過に連れて早くなるように制御される。以上のような構成により、現在のパラメータ値から離れたパラメータ値を設定する場合に、迅速な設定ができるようになっている。
【0005】
【発明が解決しようとする課題】
しかしながら、上述した従来のパラメータ設定装置は、以下のような問題がある。即ち、パラメータ入力スイッチを所定時間以上押し続けた場合に、一定のスピードでパラメータ値が変化するパラメータ設定装置では、現在値から目標値に到達するまでに時間がかかる。一方、押し続ける時間の経過に連れて変化する速度が早くなるパラメータ設定装置では、目標値を通り過ぎてしまうことが多いのでパラメータ入力スイッチを操作して目標値に戻す必要がある。この場合、操作するスイッチを変更する必要があり、その操作が煩わしいという問題がある。
【0006】
例えば、現在値が「50」、目標値が「97」であって、パラメータ値の可変範囲が「0〜100」である場合に、アップスイッチを押し続けるとパラメータ値は「50」から徐々に変化速度を上げながら変化する。従って、目標値である「97」で停止することは困難であり、多くの場合「100」まで至ってしまう。この場合は、その後にダウンスイッチを単発的に3回操作して目標値の「97」まで戻すという操作が必要である。
【0007】
また、アップスイッチ及びダウンスイッチを備えたパラメータ設定装置には、可変範囲の最大値まで増加されると最小値にラウンドし、逆に、最小値まで減少されると最大値にラウンドするものも知られている。この場合、上記の例でいうと、アップスイッチを押し続けることによりパラメータ値は「50」から徐々に変化速度を上げながら変化し、目標値である「97」を通過し、更に最大値である「100」をもラウンドして最小値の近傍の値になることがある。この場合は、ダウンスイッチの操作回数も多くなり、パラメータの設定に時間がかかる。
【0008】
更に、アップスイッチ及びダウンスイッチの何れか一方のみを備えたパラメータ設定装置も知られている。このアップスイッチのみを備えたパラメータ設定装置では、可変範囲の最大値まで増加されると最小値にラウンドし、逆に、ダウンスイッチのみを備えたパラメータ設定装置では、最小値まで減少されると最大値にラウンドする。図14は、アップスイッチのみを備え、且つ一定のスピードでパラメータ値が変化するパラメータ設定装置の動作例を示す。
【0009】
このようなパラメータ設定装置では、目標値が現在の設定値より僅かに小さい場合(アップスイッチを備えたパラメータ設定装置)又は目標値が現在の設定値より僅かに大きい場合(ダウンスイッチを備えたパラメータ設定装置)に、目標値を通過してしまうと更に一周させなければならず、パラメータ値を所望値に設定するのが難しいという問題がある。特に、パラメータ値の変化速度を上げるように動作するパラメータ設定装置では目標値を通過してしまうことが多く、パラメータ設定操作が難しいという問題がある。
【0010】
本発明は、上述した諸問題を解消するためになされたもので、パラメータの設定を容易に行うことのできる電子楽器のパラメータ設定装置を提供することを目的とする。
【0011】
【課題を解決するための手段】
本発明に係るパラメータ設定装置は、上記目的を達成するために、パラメータの現在値を記憶する現在値記憶手段と、前記現在値記憶手段に記憶されているパラメータの現在値を変化させるためのパラメータ入力スイッチと、前記パラメータ入力スイッチが所定時間以上継続して押されたかどうかを判断する判断手段と、前記判断手段により前記パラメータ入力スイッチが所定時間以上継続して押されたことが判断された場合に、前記現在値記憶手段内の現在値を第1速度で連続的に変化させる速度制御手段と、前記速度制御手段によって第1速度で連続的に変化されている前記現在値記憶手段内の現在値が所定範囲の値になった場合に、前記現在値記憶手段内の現在値が前記第1速度より遅い第2速度で連続的に変化するように変更させる速度変更手段、とを備えている。
【0012】
この場合、前記パラメータは最小値から最大値までの範囲でのみ変化可能に構成し、前記所定範囲は、前記最大値から該最大値より小さい第1の値までの範囲及び前記最小値から該最小値より大きい第2の値までの範囲の少なくとも一方であるように構成できる。また、前記パラメータは最小値から最大値までの範囲で、前記最小値及び前記最大値をラウンドして変化可能に構成し、前記所定範囲は、前記最大値より小さい第1の値から前記最小値より大きい第2の値までの範囲であるように構成できる。これらの場合、パラメータ入力スイッチは、前記パラメータを増加させるアップスイッチと前記パラメータを減少させるダウンスイッチとから構成できる。
【0013】
また、このパラメータ設定装置におけるパラメータ入力スイッチを、前記パラメータを増加させるアップスイッチ又は前記パラメータを減少させるダウンスイッチから構成し、前記パラメータは最小値から最大値までの範囲で、前記最小値及び前記最大値をラウンドして変化可能であり、前記所定範囲は、前記パラメータ入力スイッチが押された時点で設定されているパラメータ値より小さい第1の値から前記パラメータ入力スイッチが押された時点で設定されているパラメータ値までの範囲であるように構成できる。
【0014】
上記のパラメータ設定装置は、前記所定時間として任意の値を設定するための入力手段を更に備えるように構成できる。また、前記第1速度及び第2速度を規定する値として任意の値を入力するための入力手段を更に備えるように構成できる。更に、前記所定範囲を規定する値として任意の値を入力するための入力手段を更に備えるように構成できる。
【0015】
【発明の実施の形態】
以下、本発明に係る電子楽器のパラメータ設定装置の実施の形態を図面を参照しながら詳細に説明する。以下では、パラメータ設定装置は電子楽器に組み込まれているものとする。従って、本発明の理解を容易にするために、電子楽器の全体の構成及び動作をも含めて説明する。なお、各実施の形態で同一又は相当部分には同一の符号を付して説明を省略又は簡略化する。
【0016】
(実施の形態1)
図1は、本発明に係るパラメータ設定装置が適用された電子楽器の構成を示すブロック図である。この電子楽器は、システムバス26で相互に接続された中央処理装置(以下、「CPU」という)10、プログラムメモリ11、ワークメモリ12、キースキャン回路13、パネルスキャン回路14及び楽音発生部15から構成されている。システムバス26は、上記各構成要素の間でアドレス信号、データ信号又は制御信号等を送受するために使用される。
【0017】
CPU10は、プログラムメモリ11に記憶されている制御プログラムに従って電子楽器の全体を制御する。このCPU10による制御の内容は、後にフローチャートを参照しながら詳細に説明する。
【0018】
プログラムメモリ11は、例えばリードオンリメモリ(ROM)から構成されており、上述した制御プログラムの他に、CPU10が使用する種々の固定データを記憶している。
【0019】
ワークメモリ12は、例えばランダムアクセスメモリ(RAM)で構成され、この電子楽器で処理が行われる際に、種々のデータが一時記憶される。このワークメモリ12には、電子楽器を制御するための各種レジスタ、フラグ、カウンタ等が定義されている。各種レジスタには、パラメータの現在値を記憶する現在値レジスタ、音量の現在値を記憶する音量レジスタ、現在選択されている音色番号を記憶する音色番号レジスタ、現在選択されているリズム番号を記憶するリズム番号レジスタ、新パネルデータレジスタ、旧パネルデータレジスタ、識別ナンバレジスタ等が含まれる。
【0020】
また、フラグには、所定時間以上連続して操作されたかどうかを示すタイムフラグTMFLGが含まれる。また、カウンタには、連続して操作された時間を計数するためのタイムカウンタTMCNT、ウェイト時間を計数するウエイトカウンタWTCNTが含まれる。
【0021】
キースキャン回路13には複数の鍵を有する鍵盤装置20が接続されている。この鍵盤装置20は、押鍵によって発音を指示し、離鍵によって消音を指示するために使用される。この鍵盤装置20としては、例えば、異なる押圧深さでそれぞれオンになる第1キースイッチSW1及び第2キースイッチSW2を各鍵に備えた2接点方式の鍵盤装置を用いることができる。
【0022】
このキースキャン回路13は、CPU10からの指令に応答して鍵盤装置20上の各キースイッチをスキャンする。そして、このスキャンにより得られた各キースイッチの開閉状態を示す信号に基づいて各鍵を1ビットに対応させたキーデータ及び押鍵の早さを示すタッチデータを作成する。これらのキーデータ及びタッチデータは、システムバス26を介してCPU10に送られる。
【0023】
パネルスキャン回路14には操作パネル21が接続されている。この操作パネル21には、パラメータ入力スイッチ30及びパラメータ表示器31が含まれる。パラメータ入力スイッチ30は、例えば図2(A)に示すような、アップスイッチUPとダウンスイッチDOWNとから構成されるアップダウンスイッチによって構成されている。
【0024】
アップスイッチUPは、パラメータ値を増加させるために使用される。このアップスイッチUPが単発的に押されると現在値レジスタに格納されている現在のパラメータ値が「+1」だけ増加され、所定時間以上押し続けられると現在のパラメータ値から連続的に増加される。また、ダウンスイッチDOWNは、パラメータ値を減少させるために使用される。このダウンスイッチDOWNが単発的に押されると現在値レジスタに格納されている現在のパラメータ値が「−1」だけ減少され、所定時間以上押し続けられると現在のパラメータ値から連続的に減少される。このようにして変更された現在値レジスタの内容がパラメータ、例えば音量値、音色番号、リズム番号等として使用される。
【0025】
パラメータ表示器31はLEDやLCDで構成されており、上記現在値レジスタの内容を表示する。従って、ユーザはこのパラメータ表示器31を見ながらパラメータ入力スイッチ30(アップスイッチUP及びダウンスイッチDOWN)を操作することにより、パラメータを所望の値に設定することができる。
【0026】
なお、バッファ入力スイッチ30としては、図2(B)に示すようなインクリメンタスイッチ、図2(C)に示すようなベンダーホイール等を用いることもできる。また、実際の電子楽器に設けられる操作パネルには、上記以外に、種々のパネルスイッチ、これらパネルスイッチの設定状態を表示するLED表示器等が設けられているが図示を省略してある。
【0027】
パネルスキャン回路14は、CPU10からの指令に応じて操作パネル21の各スイッチをスキャンする。そして、このスキャンにより得られた各スイッチの開閉状態を示す信号に基づいて、各スイッチを1ビットに対応させたパネルデータを作成する。各ビットは、例えば「1」でオン、「0」でオフ状態を表す。このパネルデータは、システムバス26を介してCPU10に送られ、パネルイベントが発生したかどうかを判断するために使用される。また、このパネルスキャン回路14は、操作されることによりイベントが発生したスイッチの識別ナンバを生成する。これらパネルデータ及び識別ナンバは、システムバス26を介してCPU10に送られる。また、パネルスキャン回路14は、CPU10から送られてきた表示データをパラメータ表示器31に送る。これにより、CPU10から送られてきた現在値レジスタの内容がパラメータ表示器31に表示される。
【0028】
楽音発生部15は、CPU10からの指示に応答してデジタル楽音信号を発生する。この楽音発生部で発生されたデジタル楽音信号は、D/A変換部22に送られる。D/A変換部22は、受け取ったデジタル楽音信号をアナログ楽音信号に変換してアナログ信号処理部23に送る。アナログ信号処理部23は、アナログ楽音信号に例えば音響効果信号を付加して増幅器24に送る。増幅器24は、アナログ信号処理部23からの信号を増幅してスピーカ25に送る。これにより、スピーカ25から楽音が発生される。
【0029】
次に、以上のように構成される電子楽器において、パラメータを設定する場合の操作を説明する。
【0030】
ユーザは、先ず、電子楽器に通常備えられているモード設定機能を用いて、電子楽器の動作モードをパラメータ設定モードに移行させる。このパラメータ設定モードに入ると、ユーザは、操作パネル21上の図示しないスイッチを操作して設定しようとするパラメータの種類、例えば、音量、音色番号、リズム番号等の中から1つを選択する。今、音量が選択されたとすると、音量レジスタの内容が現在値レジスタにコピーされる。
【0031】
この状態でパラメータ入力スイッチ30が操作されると、その操作に応答して現在値レジスタの内容が増減され、その増減結果がパラメータ表示器31に表示される。そして、パラメータ入力スイッチ30が一定時間以上操作されないと、その時点で現在値レジスタに格納されているパラメータの現在値が音量レジスタに格納され、パラメータ設定操作が完了する。
【0032】
次に、上記のように構成された、本発明の実施の形態1に係るパラメータ設定装置が適用された電子楽器の動作を図3〜図8に示したフローチャートを参照しながら説明する。なお、この実施の形態1に係るパラメータ設定装置では、パラメータは、最小値MINである「0」から最大値MAXである「100」までの範囲で変化するものとする。また、準最大値NMAXとして「90」が、準最小値NMINとして「10」がそれぞれ規定されているものとする。なお、これら最小値MIN、最大値MAX、準最大値NMAX及び準最小値NMINは、このパラメータ設定装置で設定可能なパラメータの各1つとして、ユーザがパラメータ入力スイッチ30を用いて任意に設定するように構成できる。
【0033】
(1)メイン処理
図3は本発明の実施の形態1に係るパラメータ設定装置が適用された電子楽器のメイン処理を示すフローチャートである。このメイン処理ルーチンは電源の投入により起動される。電源が投入されると、先ず、イニシャライズが行われる(ステップS10)。このイニシャライズでは、CPU10の内部のハードウエアが初期状態に設定されると共に、ワークメモリ12に定義されているレジスタ、カウンタ、フラグ等に初期値が設定される。
【0034】
このイニシャライズが終了すると、次いで、パネルスイッチのイベントが検出されたかどうかが調べられる(ステップS11)。即ち、CPU10は、パネルスキャン回路14からパネルデータ(以下、「新パネルデータ」という)を取り込み、新パネルデータレジスタに格納する。次いで、この新パネルデータと、前回にステップS11で取り込まれて既に旧パネルデータレジスタに記憶されているパネルデータ(以下、「旧パネルデータ」という)との排他的論理和をとってパネルイベントマップを作成する。このパネルイベントマップがゼロであればパネルスイッチイベントは検出されなかったものと、そうでなければパネルスイッチイベントが検出されたものとそれぞれ判断される。
【0035】
ここで、パネルスイッチイベントが検出されると、パネルスイッチイベントに対応するパネルスイッチに割り当てられている機能を実現するためのパネルスイッチイベント処理が実行される(ステップS12)。このパネルスイッチイベント処理の詳細は後述する。一方、上記ステップS11でパネルスイッチイベントが検出されなければ、ステップS12の処理はスキップされる。
【0036】
次いで、「その他の処理」が行われる(ステップS13)。この「その他の処理」では、鍵盤装置20の操作に基づいて生成されたキーデータ及びタッチデータに応じた発音処理及び消音処理、外部からの受信されたMIDIデータに応じたMIDI処理、自動演奏処理等が行われる。その後、シーケンスはステップS11に戻り、以下ステップS11〜S13の処理が繰り返される。この繰り返し実行の過程で、操作パネル21の操作、鍵盤装置20の操作、MIDIデータの受信といったイベントが発生すると、それらのイベントに応じた処理が行われ、以て電子楽器としての各種機能が発揮される。
【0037】
(2)パネルスイッチイベント処理
次に、上記メイン処理ルーチンのステップS12で行われるパネルスイッチイベント処理の詳細を、図4に示したフローチャートを参照しながら説明する。このパネルスイッチイベント処理では、先ず、操作パネル21から送られてくる識別ナンバが識別ナンバレジスタに格納される(ステップS20)。
【0038】
次いで、識別ナンバレジスタの内容がパネル入力スイッチ30に割り当てられた識別ナンバ、つまりアップスイッチUPの識別ナンバ又はダウンスイッチDOWNの識別ナンバであるかどうかが調べられる(ステップS21)。ここで、識別ナンバレジスタの内容がパネル入力スイッチ30に割り当てられた識別ナンバであることが判断されると、後述するパラメータ入力処理が行われ(ステップS22)、その後、シーケンスはステップS23に分岐する。一方、識別ナンバレジスタの内容がパネル入力スイッチ30に割り当てられた識別ナンバでないことが判断されると、その他のスイッチ処理が行われる(ステップS23)。この「その他のスイッチ処理」では、パラメータ入力スイッチ30以外のパネルスイッチ、例えば音色選択スイッチ、リズム選択スイッチ等のイベントに対する処理が行われる。その後、シーケンスはメイン処理ループにリターンする。
【0039】
(3)パラメータ入力処理
次に、上記パネルスイッチイベント処理ルーチンのステップS22で行われるパネル入力処理の詳細を、図5〜図8に示したフローチャートを参照しながら説明する。このパラメータ入力処理では、先ず、識別ナンバレジスタの内容がアップスイッチUPに割り当てられた識別ナンバであるかどうかが調べられる(ステップS30)。
【0040】
ここで、識別ナンバレジスタの内容がアップスイッチUPに割り当てられた識別ナンバであることが判断されると、以下、アップスイッチUPのイベントに対する処理が実行される。即ち、先ず、現在値レジスタの値Pがインクリメント(+1)される(ステップS31)。このステップS31では、インクリメントされた値Pを操作パネル21のパラメータ表示器31に表示させる処理も行われる。次いで、連続操作判定処理が行われる(ステップS32)。この連続操作判定処理では、アップスイッチUPが所定時間連続して押されたかどうかが判定され、連続して押されたことが判定された場合はタイムフラグTMFLGが「1」にセットされ、そうでない場合はタイムフラグTMFLGが「0」にセットされる。
【0041】
ここで、上記連続操作判定処理の詳細を図7のフローチャートを参照しながら説明する。この連続操作判定処理では、先ず、タイムフラグTMFLGが「0」にセットされると共に、タイムカウンタTMCNTの内容が「0」にクリアされる(ステップS50)。次いで、タイムカウンタTMCNTの内容がインクリメント(+1)される(ステップS51)。
【0042】
次いで、タイムカウンタTMCNTの内容が「50」より小さいかどうかが調べられ(ステップS52)、小さいことが判断されると、スイッチオフイベントが発生したかどうかが調べられる(ステップS54)。ここで調べられるスイッチは、この連続操作判定処理がステップS32からコールされた場合はアップスイッチUPであり、後述するステップS41からコールされた場合はダウンスイッチDOWNである。また、タイムカウンタTMCNTの内容と比較する値「50」はパラメータ入力スイッチが連続して押されたことを判定する時間を決定するための値である。このタイムカウンタTMCNTの内容と比較する値は「50」に限らず、CPU10の処理速度を勘案して任意に決定できる。このタイムカウンタTMCNTの内容と比較する値は、このパラメータ設定装置で設定可能なパラメータの1つとして、ユーザがパラメータ入力スイッチ30を用いて任意に設定するように構成できる。
【0043】
上記ステップS54でスイッチオフイベントがないことが判断されると、シーケンスはステップS51に戻り、以下、ステップS51→S52→S54を繰り返し実行する。そして、上記ステップS54でスイッチオフイベントがあることが判断されると、所定時間の間にアップスイッチUP又はダウンスイッチDOWNが離されたことが認識され、タイムフラグTMFLGが「0」にクリアされる(ステップS55)。
【0044】
上記ステップS52で、タイムカウンタTMCNTの内容が「50」以上になったことが判断されると、所定時間の間にアップスイッチUP又はダウンスイッチDOWNが離されなかったことが認識され、タイムフラグTMFLGが「1」にセットされる(ステップS53)。その後、シーケンスはパラメータ入力処理ルーチンにリターンする。
【0045】
パラメータ入力処理ルーチンでは、次いで、タイムフラグTMFLGが「1」であるかどうかが調べられる(ステップS33)。ここで、タイムフラグTMFLGが「0」であることが判断されると、アップスイッチUPが単発的に押されたことが判断され、シーケンスはパネルスイッチイベント処理ルーチンにリターンする。これにより、パラメータ値が「1」だけ増加されてパラメータ設定処理が終了する。
【0046】
一方、上記ステップS33で、タイムフラグTMFLGが「1」であることが判断されると、アップスイッチUPが所定時間以上連続して操作されていることが認識され、現在値レジスタの値Pがインクリメント(+1)される(ステップS34)。このステップS34では、インクリメントされた値Pを操作パネル21のパラメータ表示器31に表示させる処理も行われる。次いで、現在値レジスタの値Pが準最大値NMAXより小さいかどうかが調べられる(ステップS35)。
【0047】
ここで、現在値レジスタの値Pが準最大値NMAXより小さいことが判断されると、次いで、現在値レジスタの値Pが最大値MAXに等しくなったかどうかが調べられる(ステップS37)。この場合、つまりシーケンスがステップS35からステップS37へ進む場合、ステップS37では、必ず現在値レジスタの値Pが最大値MAXに等しくないことが判断されるので、次いで、アップスイッチUPのオフイベントがあるかどうかが調べられる(ステップS38)。
【0048】
ここでアップスイッチUPのオフイベントがないことが判断されるとシーケンスはステップS34に戻り、以下、ステップS34→S35→S37→S38の処理が繰り返される。これにより、パラメータ値は第1速度でインクリメントされる。上記ステップS34→S35→S37→S38の繰り返し実行の過程でステップS38でアップスイッチUPのオフイベントが発生したことが判断されると、シーケンスはパネルイベント処理ルーチンにリターンする。
【0049】
また、上記ステップS34→S35→S37→S38の繰り返し実行の過程でステップS35で、現在値レジスタの値Pが準最大値NMAX以上であることが判断されると、遅速化処理が実行される(ステップS36)。この遅速化処理では、一定時間だけシーケンスの進行が停止される。
【0050】
ここで、上記遅速化処理の詳細を図8のフローチャートを参照しながら説明する。この遅速化処理では、先ず、ウエイトカウンタWTCNTの内容が「0」にクリアされる(ステップS60)。次いで、ウエイトカウンタWTCNTの内容がインクリメント(+1)される(ステップS61)。次いで、ウエイトカウンタWTCNTの内容が「50」より小さいかどうかが調べられる(ステップS62)。ここで、ウエイトカウンタWTCNTの内容が「50」より小さいことが判断されると、シーケンスはステップS61に戻り、以下ステップS61とステップS62とを繰り返し実行する。
【0051】
そして、この繰り返し実行の過程で、ステップS62で、ウエイトカウンタWTCNTの内容が「50」以上になったことが判断されると、シーケンスはコールされたステップの次のステップ(この場合はパラメータ入力処理ルーチンのステップS37)にリターンする。以上の動作により、この遅速化処理ルーチンがコールされることにより所定時間だけシーケンスの進行が停止するという、所謂ウエイトがかけられることになる。なお、ウエイトカウンタWTCNTの内容と比較する値は「50」に限らず、CPU10の処理速度と必要なウエイト時間を勘案して任意に決定できる。ウエイトカウンタWTCNTの内容と比較する値は、このパラメータ設定装置で設定可能なパラメータの1つとして、ユーザがパラメータ入力スイッチ30を用いて任意に設定するように構成できる。
【0052】
パラメータ入力処理ルーチンでは、現在値レジスタの値Pが最大値MAXに等しくなったかどうかが調べられる(ステップS37)。そして、現在値レジスタの値Pが最大値MAXに等しくなければステップS38へ進む。以後は、ステップS34→S35→S36→S37→S38の処理が繰り返される。これにより、パラメータ値は上記第1速度より遅い第2速度でインクリメントされる。ステップS34→S35→S36→S37→S38の繰り返し処理の過程で、ステップS37で現在値レジスタの値Pが最大値MAXに等しくなったことが判断されると、シーケンスはパラメータスイッチイベント処理ルーチンにリターンする。従って、この実施の形態1では、アップスイッチUPの操作の結果、最大値MAXまで到達したら以後はアップスイッチUPが操作されてもパラメータ値は最大値MAXを保ったままである。
【0053】
上記ステップS30、識別ナンバレジスタの内容がダウンスイッチDOWNに割り当てられた識別ナンバであることが判断されると、以下、ダウンスイッチDOWNのイベントに対する処理が実行される。即ち、先ず、現在値レジスタの値Pがデクリメント(−1)される(ステップS40)。このステップS40では、デクリメントされた値Pを操作パネル21のパラメータ表示器31に表示させる処理も行われる。次いで、連続操作判定処理が行われる(ステップS41)。この連続操作判定処理では、上述したように、ダウンスイッチDOWNが所定時間連続して押されたかどうかが判定され、連続して押されたことが判定された場合はタイムフラグTMFLGが「1」にセットされ、そうでない場合はタイムフラグTMFLGが「0」にセットされる。
【0054】
次いで、タイムフラグTMFLGが「1」であるかどうかが調べられる(ステップS42)。ここで、タイムフラグTMFLGが「0」であることが判断されると、ダウンスイッチDOWNが単発的に押されたことが判断され、シーケンスはパネルスイッチイベント処理ルーチンにリターンする。これにより、パラメータ値が「1」だけ減少されてパラメータ設定処理が終了する。
【0055】
一方、上記ステップS42で、タイムフラグTMFLGが「1」であることが判断されると、ダウンスイッチDOWNが所定時間以上連続して操作されていることが認識され、現在値レジスタの値Pがデクリメント(−1)される(ステップS43)。このステップS43では、デクリメントされた値Pを操作パネル21のパラメータ表示器31に表示させる処理も行われる。次いで、現在値レジスタの値Pが準最小値NMINより大きいかどうかが調べられる(ステップS44)。
【0056】
ここで、現在値レジスタの値Pが準最小値NMINより大きいことが判断されると、次いで、現在値レジスタの値Pが最小値MINに等しくなったかどうかが調べられる(ステップS46)。この場合、つまりシーケンスがステップS44からステップS46へ進む場合、ステップS46では、必ず現在値レジスタの値Pが最小値MINに等しくないことが判断されるので、次いで、ダウンスイッチDOWNのオフイベントがあるかどうかが調べられる(ステップS47)。
【0057】
ここでダウンスイッチDOWNのオフイベントがないことが判断されるとシーケンスはステップS43に戻り、以下、ステップS43→S44→S46→S47の処理が繰り返される。これにより、パラメータ値は第1速度でデクリメントされる。上記ステップS43→S44→S46→S47の繰り返し実行の過程でステップS47でS43→S44→S46→S47のオフイベントが発生したことが判断されると、シーケンスはパネルイベント処理ルーチンにリターンする。
【0058】
また、上記ステップS43→S44→S46→S47の繰り返し実行の過程でステップS44で、現在値レジスタの値Pが準最小値NMINより大きいことが判断されると、遅速化処理が実行される(ステップS45)。この遅速化処理では、上述したように、一定時間だけシーケンスの進行が停止される。
【0059】
次いで、現在値レジスタの値Pが最小値MINに等しくなったかどうかが調べられる(ステップS46)。そして、現在値レジスタの値Pが最小値MINに等しくなければステップS47へ進む。以後は、ステップS43→S44→S45→S46→S47の処理が繰り返される。これにより、パラメータ値は上記第1速度より遅い第2速度でデクリメントされる。ステップS43→S44→S45→S46→S47の繰り返し処理の過程で、ステップS46で現在値レジスタの値Pが最小値MINに等しくなったことが判断されると、シーケンスはパラメータスイッチイベント処理ルーチンにリターンする。従って、この実施の形態1では、S43→S44→S45→S46→S47の操作の結果、最小値MINまで到達したら以後はダウンスイッチDOWNが操作されてもパラメータ値は最小値MINを保ったままである。
【0060】
以上説明したように、この実施の形態1に係るパラメータ設定装置によれば、パラメータ入力スイッチ30を押し続けることによりパラメータ値を第1速度で連続的に変更する際に、現在値レジスタに格納されているパラメータ値が、最大値MAXの近傍の値である準最大値NMAXより大きくなった場合及び最小値MINの近傍の値である準最小値NMINより小さくなった場合は、パラメータ値の変化速度を上記第1速度より遅い第2速度に変更するので、最大値MAX及び最小値MINの近辺のパラメータ値を設定する操作が容易になる。
【0061】
(実施の形態2)
本発明の実施の形態2に係るパラメータ設定装置では、パラメータは、最小値MINである「0」から最大値MAXである「100」までの範囲で変化するが、アップスイッチUPを操作することにより現在値レジスタの内容が最大値MAXを越えた場合は最小値MINにラウンドし、ダウンスイッチDOWNを操作することにより現在値レジスタの内容が最小値MINを越えた場合は最大値MAXにラウンドするものとする。また、準最大値NMAXとして「90」が、準最小値NMINとして「10」がそれぞれ規定されることは上述した実施の形態1と同じである。
【0062】
この実施の形態2に係るパラメータ設定装置の構成は、実施の形態1に係るパラメータ設定装置の構成と同じである。また、この実施の形態2に係るパラメータ設定装置の動作は、パラメータ入力処理の動作が上述した実施の形態1と相違するだけであるので、以下では、相違する点だけを説明する。
【0063】
図9及び図10は、この実施の形態2に係るパラメータ設定装置が適用された電子楽器のパラメータ入力処理を示すフローチャートである。図9に示すフローチャートでは、図5に示したフローチャートにステップS39の処理が追加され、図10に示すフローチャートでは、図6に示したフローチャートにステップS48の処理が追加されている。
【0064】
アップスイッチUPのイベントに対する処理では、ステップS37で、現在値レジスタの値Pが最大値MAXに等しくなったことが判断されると、最小値MINが現在値レジスタの値Pとして設定される(ステップS39)。その後、シーケンスはステップS38に分岐する。これにより、アップスイッチUPの操作の結果、最大値MAXまで到達したら最小値MINにラウンドする機能が実現されている。
【0065】
また、ダウンスイッチDOWNのイベントに対する処理では、ステップS46で、現在値レジスタの値Pが最小値MINに等しくなったことが判断されると、最大値MAXが現在値レジスタの値Pとして設定される(ステップS48)。その後、シーケンスはステップS47に分岐する。これにより、ダウンスイッチDOWNの操作の結果、最小値MINまで到達したら最大値MAXにラウンドする機能が実現されている。
【0066】
以上説明したように、この実施の形態2に係るパラメータ設定装置によれば、実施の形態1と同様の効果を奏する。また、可変範囲の最大値まで増加されると最小値にラウンドし、逆に、最小値まで減少されると最大値にラウンドするようなパラメータ設定装置であっても、従来のようにパラメータ入力スイッチの操作回数が多くなることがない。
【0067】
(実施の形態3)
本発明の実施の形態3に係るパラメータ設定装置が適用された電子楽器は、アップスイッチUPだけを備えている。また、パラメータは、最小値MINである「0」から最大値MAXである「100」までの範囲で変化するが、アップスイッチUPを操作することにより現在値レジスタの内容が最大値MAXを越えた場合は最小値MINにラウンドする。
【0068】
この実施の形態3に係るパラメータ設定装置の構成は、パラメータ入力スイッチ30がアップスイッチUPだけで構成されていることを除き、実施の形態1に係るパラメータ設定装置の構成と同じである。
【0069】
また、この実施の形態3に係るパラメータ設定装置の動作は、パラメータ入力処理の動作が上述した実施の形態1と相違するだけであるので、以下では、相違する点だけを説明する。
【0070】
図11は、この実施の形態3に係るパラメータ設定装置が適用された電子楽器のパラメータ入力処理を示すフローチャートである。
【0071】
このパラメータ入力処理では、先ず、ワークメモリ12に設けられたバッファBUFに現在値レジスタの値Pが格納される(ステップS70)。次いで、現在値レジスタの値Pがインクリメント(+1)される(ステップS71)。このステップS71では、インクリメントされた値Pを操作パネル21のパラメータ表示器31に表示させる処理も行われる。次いで、連続操作判定処理が行われる(ステップS72)。この連続操作判定処理では、アップスイッチUPが所定時間連続して押されたかどうかが判定され、連続して押されたことが判定された場合はタイムフラグTMFLGが「1」にセットされ、そうでない場合はタイムフラグTMFLGが「0」にセットされる。
【0072】
次いで、タイムフラグTMFLGが「1」であるかどうかが調べられる(ステップS73)。ここで、タイムフラグTMFLGが「0」であることが判断されると、アップスイッチUPが単発的に押されたことが判断され、シーケンスはパネルスイッチイベント処理ルーチンにリターンする。これにより、パラメータ値が「1」だけ増加されてパラメータ設定処理が終了する。
【0073】
一方、上記ステップS73で、タイムフラグTMFLGが「1」であることが判断されると、アップスイッチUPが所定時間以上連続して操作されていることが認識され、現在値レジスタの値Pがインクリメント(+1)される(ステップS74)。このステップS74では、インクリメントされた値Pを操作パネル21のパラメータ表示器31に表示させる処理も行われる。次いで、上記インクリメントの結果、現在値レジスタの値Pが最大値MAXに等しくなったかどうかが調べられる(ステップS75)。
【0074】
ここで、現在値レジスタの値Pが最大値MAXに等しくないことが判断されるとシーケンスはステップS77へ進み、等しいことが判断されると、最小値MINが現在値レジスタの値Pとして設定される(ステップS76)。これにより、アップスイッチUPの操作の結果、最大値MAXまで到達したら最小値MINにラウンドする機能が実現されている。その後、シーケンスはステップS77に分岐する。
【0075】
上記ステップS77では、現在値レジスタの値PがバッファBUFに格納された値から所定値Xを減算した値BUF−X以上になったかどうかが調べられる(ステップS77)。ここで、値BUF−Xより小さいことが判断されると、シーケンスはステップS80へ分岐する。
【0076】
一方、上記ステップS77で、現在値レジスタの値Pが、値BUF−X以上であることが判断されると、次いで、現在値レジスタの値PがバッファBUFに格納された値より小さいかどうかが調べられる(ステップS78)。ここで、現在値レジスタの値Pが、バッファBUFに格納された値より小さいことが判断されると、シーケンスはステップS80へ進み、そうでないことが判断されると遅速化処理が実行される(ステップS79)。この遅速化処理では、上述したように、一定時間だけシーケンスの進行が停止される。その後、シーケンスはステップS80へ分岐する。
【0077】
ステップS80では、アップスイッチUPのオフイベントがあるかどうかが調べられる。ここでアップスイッチUPのオフイベントがないことが判断されるとシーケンスはステップS74に戻り、以下、現在値レジスタの値Pが、値BUF−XからバッファBUFに格納された値までの範囲にないときは、ステップS74→S75→S77→S78→S80の処理が繰り返される。これにより、パラメータ値は第1速度でインクリメントされる。
【0078】
一方、現在値レジスタの値Pが、値BUF−XからバッファBUFに格納された値までの範囲にあるときは、ステップS74→S75→S77→S78→S79→S80の処理が繰り返される。これにより、パラメータ値は上記第1速度より遅い第2速度でインクリメントされる。上記何れかの繰り返し実行の過程でステップS80でアップスイッチUPのオフイベントが発生したことが判断されると、シーケンスはパネルイベント処理ルーチンにリターンする。
【0079】
以上の処理により、図12に示すようなパラメータ変更速度の変化が実現される。即ち、アップスイッチUPを押すことによりその時点での現在値レジスタの値がバッファBUFに格納され、更にアップスイッチUPを所定時間押し続けると、パラメータ変更速度は早くなる。そしてパラメータ値は増加し続け、上限値に達したら下限値にラウンドし、現在値レジスタの値Pが、バッファBUFに格納された値から所定値Xを減算した値BUF−X以上になった時点でパラメータ変更速度は遅くなる。そして、この遅くなった第2速度でパラメータ値は増加し続け、アップスイッチUPを所定時間押し続けて現在値レジスタの値がバッファBUFに格納された値になると、再びパラメータ変更速度は早くなり、第1速度になる。
【0080】
更に具体的な例を、図13を参照して説明する。アップスイッチUPを押すことによりその時点での現在値レジスタの値「50」がバッファBUFに格納され、更にアップスイッチUPを所定時間押し続けると、パラメータ変更速度は早くなる。そしてパラメータ値は増加し続け、上限値「100」に達したら下限値「0」にラウンドし、現在値レジスタの値が、バッファBUFに格納された値「50」から例えば所定値「10」を減算した値「40」以上になった時点でパラメータ変更速度は遅くなる。そして、この遅くなった速度でパラメータ値は増加し続け、現在値レジスタの値がバッファBUFに格納された値「50」になると、再びパラメータ変更速度は早くなる。
【0081】
以上説明したように、この実施の形態3に係るパラメータ設定装置によれば、パラメータ入力スイッチ30を押し続けることによりパラメータ値を第1速度で連続的に変化させる際に、現在値レジスタに格納されているパラメータ値が、パラメータ設定操作を開始した時点でのパラメータ値より所定値だけ小さな値になった時に、パラメータ値の変化速度を上記第1速度より遅い第2速度に変更し、現在値レジスタに格納されているパラメータ値が、パラメータ設定操作を開始した時点でのパラメータ値より大きくなった時に、パラメータ値の変化を上記第2速度から第1速度に戻すようにしている。
【0082】
その結果、図13に示すように、目標値「47」が現在の設定値「50」より僅かに小さい場合であっても、目標値「47」の近傍ではパラメータ値の変化速度は遅いので、パラメータ値を目標値に設定する操作が容易になる。
【0083】
なお、この実施の形態3ではアップスイッチUPだけを備えているものとしたが、ダウンスイッチDOWNだけを備えるように構成してもよく、この場合も上記と全く同様の効果を奏する。
【0084】
また、上記所定値Xは、このパラメータ設定装置で設定可能なパラメータの各1つとして、ユーザがパラメータ入力スイッチ30を用いて任意に設定するように構成できる。
【0085】
【発明の効果】
以上詳述したように、本発明によれば、パラメータの設定を容易に行うことのできる電子楽器のパラメータ設定装置を提供できる。
【図面の簡単な説明】
【図1】本発明の実施の形態1〜3に係るパラメータ設定装置が適用された電子楽器の構成を示すブロック図である。
【図2】図1に示した操作パネルの一例を示す図である。
【図3】図1に示した電子楽器のメイン処理を示すフローチャートである。
【図4】図1に示した電子楽器のパネルスイッチイベント処理を示すフローチャートである。
【図5】図1に示した電子楽器のパラメータ入力処理を示すフローチャート(その1)である。
【図6】図1に示した電子楽器のパラメータ入力処理を示すフローチャート(その2)である。
【図7】図5及び図6の連続操作判定処理の詳細を示すフローチャートである。
【図8】図5及び図6の遅速化処理の詳細を示すフローチャートである。
【図9】本発明の実施の形態2に係るパラメータ設定装置が適用された電子楽器のパラメータ入力処理を示すフローチャート(その1)である。
【図10】本発明の実施の形態2に係るパラメータ設定装置が適用された電子楽器のパラメータ入力処理を示すフローチャート(その2)である。
【図11】本発明の実施の形態3に係るパラメータ設定装置が適用された電子楽器のパラメータ入力処理を示すフローチャートである。
【図12】図11に示したフローチャートによって実現される動作を説明するための図である。
【図13】図11に示したフローチャートによって実現される動作を、更に詳しく説明するための図である。
【図14】従来のパラメータ設定装置の動作を説明するための図である。
【符号の説明】
10 CPU
11 プログラムメモリ
12 ワークメモリ
13 キースキャン回路
14 パネルスキャン回路
15 楽音発生部
20 鍵盤装置
21 操作パネル
22 D/A変換部
23 アナログ信号処理部
24 増幅器
25 スピーカ
26 システムバス
30 パラメータ入力スイッチ
31 パラメータ表示器
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a parameter setting device for setting parameters in an electronic musical instrument, and more particularly to a technique for improving the operability of parameter setting operations.
[0002]
[Prior art]
Conventionally, a parameter setting device for setting parameters such as a volume value, a timbre number, and a rhythm number in an electronic musical instrument is known. This parameter setting device generally includes a parameter input switch and a parameter display. The parameter input switch is an operator for setting a parameter. For example, an up / down switch composed of an up switch and a down switch, an incrementer, a bender wheel, and the like have been put into practical use. The parameter display displays the parameter value input by the parameter input switch.
[0003]
Hereinafter, a parameter setting apparatus in which an up / down switch is employed as a parameter input switch will be described. In this parameter setting device, when the up switch is pressed once, the current parameter value is increased by +1. On the other hand, if the button is kept pressed for a predetermined time or longer, the current parameter value is continuously increased. In this case, the speed at which the parameter value increases is constant or controlled so as to increase with the lapse of time for which the parameter value is kept pressed.
[0004]
Similarly, when the down switch is pressed once, the current parameter value is decreased by -1. On the other hand, if the button is kept pressed for a predetermined time or longer, the current parameter value is continuously decreased. In this case, the speed at which the parameter value decreases is constant or controlled so as to increase with the lapse of time for which the parameter value is kept pressed. With the above configuration, when setting a parameter value far from the current parameter value, a quick setting can be performed.
[0005]
[Problems to be solved by the invention]
However, the conventional parameter setting apparatus described above has the following problems. That is, in the parameter setting device in which the parameter value changes at a constant speed when the parameter input switch is continuously pressed for a predetermined time or longer, it takes time to reach the target value from the current value. On the other hand, in a parameter setting device in which the speed that changes as the time of pressing continues increases, the target value is often passed, so it is necessary to operate the parameter input switch to return to the target value. In this case, it is necessary to change the switch to be operated, and there is a problem that the operation is troublesome.
[0006]
For example, when the current value is “50”, the target value is “97”, and the variable range of the parameter value is “0 to 100”, the parameter value is gradually increased from “50” by continuously pressing the up switch. It changes while increasing the speed of change. Therefore, it is difficult to stop at the target value “97”, and often reaches “100”. In this case, it is necessary to thereafter operate the down switch once three times to return to the target value “97”.
[0007]
In addition, some parameter setting devices equipped with an up switch and a down switch round to the minimum value when increased to the maximum value of the variable range, and conversely round to the maximum value when decreased to the minimum value. It has been. In this case, in the above example, by continuously pressing the up switch, the parameter value changes from “50” while gradually increasing the change speed, passes through the target value “97”, and is the maximum value. “100” may be rounded to a value near the minimum value. In this case, the number of times the down switch is operated increases, and it takes time to set parameters.
[0008]
Furthermore, a parameter setting device having only one of an up switch and a down switch is also known. In the parameter setting device having only the up switch, when it is increased to the maximum value of the variable range, it rounds to the minimum value, and conversely, in the parameter setting device having only the down switch, the maximum value is reduced when it is decreased to the minimum value. Round to value. FIG. 14 shows an operation example of a parameter setting device that includes only an up switch and whose parameter value changes at a constant speed.
[0009]
In such a parameter setting device, the target value is slightly smaller than the current setting value (parameter setting device with an up switch) or the target value is slightly larger than the current setting value (a parameter with a down switch). If the setting device passes the target value, the setting device has to make a further round, and there is a problem that it is difficult to set the parameter value to a desired value. In particular, a parameter setting device that operates so as to increase the changing speed of the parameter value often passes the target value, and there is a problem that the parameter setting operation is difficult.
[0010]
The present invention has been made to solve the above-described problems, and it is an object of the present invention to provide a parameter setting device for an electronic musical instrument that can easily set parameters.
[0011]
[Means for Solving the Problems]
In order to achieve the above object, a parameter setting device according to the present invention includes a current value storage means for storing a current value of a parameter, and a parameter for changing the current value of the parameter stored in the current value storage means. An input switch, determination means for determining whether or not the parameter input switch is continuously pressed for a predetermined time or more, and when the determination means determines that the parameter input switch is continuously pressed for a predetermined time or more A speed control means for continuously changing the current value in the current value storage means at a first speed, and a current value in the current value storage means that is continuously changed at the first speed by the speed control means. When the value falls within a predetermined range, the current value in the current value storage means is changed so as to continuously change at a second speed that is slower than the first speed. Degree changing means, and a city.
[0012]
In this case, the parameter is configured to be changeable only in a range from a minimum value to a maximum value, and the predetermined range is a range from the maximum value to a first value smaller than the maximum value and the minimum value to the minimum value. It can be configured to be at least one of a range up to a second value greater than the value. The parameter is configured to be variable by rounding the minimum value and the maximum value in a range from a minimum value to a maximum value, and the predetermined range is from a first value smaller than the maximum value to the minimum value. It can be configured to be in a range up to a larger second value. In these cases, the parameter input switch can include an up switch that increases the parameter and a down switch that decreases the parameter.
[0013]
Further, the parameter input switch in the parameter setting device is configured by an up switch for increasing the parameter or a down switch for decreasing the parameter, and the parameter ranges from a minimum value to a maximum value, and the minimum value and the maximum value The predetermined range is set when the parameter input switch is pressed from a first value smaller than the parameter value set when the parameter input switch is pressed. It can be configured to be within the range up to the parameter value.
[0014]
The parameter setting device can be configured to further include an input unit for setting an arbitrary value as the predetermined time. Moreover, it can comprise further the input means for inputting arbitrary values as a value which prescribes | regulates the said 1st speed and 2nd speed. Furthermore, it can be configured to further include an input means for inputting an arbitrary value as a value defining the predetermined range.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of an electronic musical instrument parameter setting device according to the present invention will be described below in detail with reference to the drawings. In the following, it is assumed that the parameter setting device is incorporated in an electronic musical instrument. Therefore, in order to facilitate understanding of the present invention, the entire configuration and operation of the electronic musical instrument will be described. In the embodiments, the same or corresponding parts are denoted by the same reference numerals, and description thereof is omitted or simplified.
[0016]
(Embodiment 1)
FIG. 1 is a block diagram showing a configuration of an electronic musical instrument to which a parameter setting device according to the present invention is applied. The electronic musical instrument includes a central processing unit (hereinafter referred to as “CPU”) 10, a program memory 11, a work memory 12, a key scan circuit 13, a panel scan circuit 14, and a musical tone generator 15 connected to each other via a system bus 26. It is configured. The system bus 26 is used for transmitting and receiving address signals, data signals, control signals, and the like between the above-described components.
[0017]
The CPU 10 controls the entire electronic musical instrument according to a control program stored in the program memory 11. The contents of the control by the CPU 10 will be described in detail later with reference to a flowchart.
[0018]
The program memory 11 is composed of, for example, a read only memory (ROM), and stores various fixed data used by the CPU 10 in addition to the control program described above.
[0019]
The work memory 12 is composed of, for example, a random access memory (RAM), and various data are temporarily stored when processing is performed by the electronic musical instrument. In the work memory 12, various registers, flags, counters and the like for controlling the electronic musical instrument are defined. The various registers store a current value register that stores the current value of the parameter, a volume register that stores the current value of the volume, a timbre number register that stores the currently selected timbre number, and a rhythm number that is currently selected. A rhythm number register, a new panel data register, an old panel data register, an identification number register, and the like are included.
[0020]
Further, the flag includes a time flag TMFLG indicating whether or not it has been operated continuously for a predetermined time or more. Further, the counter includes a time counter TMCNT for counting continuously operated time and a wait counter WTCNT for counting wait time.
[0021]
A keyboard device 20 having a plurality of keys is connected to the key scan circuit 13. The keyboard device 20 is used for instructing sound generation by pressing a key and instructing mute by releasing a key. As the keyboard device 20, for example, a two-contact type keyboard device having a first key switch SW <b> 1 and a second key switch SW <b> 2 that are turned on at different pressing depths for each key can be used.
[0022]
The key scan circuit 13 scans each key switch on the keyboard device 20 in response to a command from the CPU 10. Then, based on the signal indicating the open / closed state of each key switch obtained by this scan, key data in which each key is associated with 1 bit and touch data indicating the speed of key pressing are created. These key data and touch data are sent to the CPU 10 via the system bus 26.
[0023]
An operation panel 21 is connected to the panel scan circuit 14. The operation panel 21 includes a parameter input switch 30 and a parameter display 31. The parameter input switch 30 is configured by an up / down switch composed of an up switch UP and a down switch DOWN as shown in FIG. 2A, for example.
[0024]
The up switch UP is used to increase the parameter value. When the up switch UP is pressed once, the current parameter value stored in the current value register is increased by “+1”, and when it is continuously pressed for a predetermined time or longer, the current parameter value is continuously increased. The down switch DOWN is used to decrease the parameter value. When the down switch DOWN is pressed once, the current parameter value stored in the current value register is decreased by “−1”, and when it is continuously pressed for a predetermined time or longer, it is continuously decreased from the current parameter value. . The contents of the current value register changed in this way are used as parameters such as a volume value, a timbre number, a rhythm number, and the like.
[0025]
The parameter display 31 is composed of an LED or LCD and displays the contents of the current value register. Accordingly, the user can set the parameter to a desired value by operating the parameter input switch 30 (up switch UP and down switch DOWN) while looking at the parameter display 31.
[0026]
As the buffer input switch 30, an incrementer switch as shown in FIG. 2B, a bender wheel as shown in FIG. 2C, or the like can be used. In addition to the above, an operation panel provided in an actual electronic musical instrument is provided with various panel switches, LED indicators for displaying the setting state of these panel switches, and the like, but not shown.
[0027]
The panel scan circuit 14 scans each switch of the operation panel 21 according to a command from the CPU 10. Based on the signal indicating the open / closed state of each switch obtained by this scan, panel data in which each switch is associated with 1 bit is created. Each bit represents, for example, “1” for an on state and “0” for an off state. This panel data is sent to the CPU 10 via the system bus 26 and used to determine whether a panel event has occurred. Further, the panel scan circuit 14 generates an identification number of a switch in which an event has occurred when operated. These panel data and identification number are sent to the CPU 10 via the system bus 26. Further, the panel scan circuit 14 sends the display data sent from the CPU 10 to the parameter display 31. As a result, the contents of the current value register sent from the CPU 10 are displayed on the parameter display 31.
[0028]
The tone generator 15 generates a digital tone signal in response to an instruction from the CPU 10. The digital musical tone signal generated by this musical tone generator is sent to the D / A converter 22. The D / A converter 22 converts the received digital tone signal into an analog tone signal and sends it to the analog signal processor 23. The analog signal processing unit 23 adds, for example, a sound effect signal to the analog musical sound signal and sends it to the amplifier 24. The amplifier 24 amplifies the signal from the analog signal processing unit 23 and sends it to the speaker 25. Thereby, a musical sound is generated from the speaker 25.
[0029]
Next, operations for setting parameters in the electronic musical instrument configured as described above will be described.
[0030]
First, the user shifts the operation mode of the electronic musical instrument to the parameter setting mode using a mode setting function normally provided in the electronic musical instrument. When entering the parameter setting mode, the user operates a switch (not shown) on the operation panel 21 to select one of the types of parameters to be set, for example, volume, tone number, rhythm number, and the like. If the volume is now selected, the contents of the volume register are copied to the current value register.
[0031]
When the parameter input switch 30 is operated in this state, the contents of the current value register are increased or decreased in response to the operation, and the increase / decrease result is displayed on the parameter display 31. If the parameter input switch 30 is not operated for a certain time or longer, the current value of the parameter stored in the current value register at that time is stored in the volume register, and the parameter setting operation is completed.
[0032]
Next, the operation of the electronic musical instrument to which the parameter setting device according to Embodiment 1 of the present invention configured as described above is applied will be described with reference to the flowcharts shown in FIGS. In the parameter setting device according to the first embodiment, it is assumed that the parameter changes in a range from “0” which is the minimum value MIN to “100” which is the maximum value MAX. Further, “90” is defined as the quasi-maximum value NMAX, and “10” is defined as the quasi-minimum value NMIN. The minimum value MIN, maximum value MAX, quasi-maximum value NMAX, and quasi-minimum value NMIN are arbitrarily set by the user using the parameter input switch 30 as each one of parameters that can be set by the parameter setting device. It can be configured as follows.
[0033]
(1) Main processing
FIG. 3 is a flowchart showing a main process of the electronic musical instrument to which the parameter setting device according to the first embodiment of the present invention is applied. This main processing routine is started by turning on the power. When the power is turned on, first, initialization is performed (step S10). In this initialization, the internal hardware of the CPU 10 is set to an initial state, and initial values are set to registers, counters, flags, and the like defined in the work memory 12.
[0034]
When this initialization is completed, it is then checked whether a panel switch event has been detected (step S11). That is, the CPU 10 fetches panel data (hereinafter referred to as “new panel data”) from the panel scan circuit 14 and stores it in the new panel data register. Next, the panel event map is obtained by taking an exclusive OR of the new panel data and the panel data (hereinafter referred to as “old panel data”) that was previously captured in step S11 and is already stored in the old panel data register. Create If this panel event map is zero, it is determined that a panel switch event has not been detected, and if not, it is determined that a panel switch event has been detected.
[0035]
Here, when a panel switch event is detected, a panel switch event process for realizing a function assigned to the panel switch corresponding to the panel switch event is executed (step S12). Details of the panel switch event processing will be described later. On the other hand, if a panel switch event is not detected in step S11, the process in step S12 is skipped.
[0036]
Next, “other processing” is performed (step S13). In this “other processing”, sound generation processing and mute processing according to key data and touch data generated based on the operation of the keyboard device 20, MIDI processing according to MIDI data received from the outside, and automatic performance processing Etc. are performed. Thereafter, the sequence returns to step S11, and the processes of steps S11 to S13 are repeated thereafter. If events such as operation of the operation panel 21, operation of the keyboard device 20, and reception of MIDI data occur in the process of repeated execution, processing corresponding to those events is performed, and various functions as an electronic musical instrument are exhibited. Is done.
[0037]
(2) Panel switch event processing
Next, details of the panel switch event process performed in step S12 of the main process routine will be described with reference to the flowchart shown in FIG. In this panel switch event process, first, the identification number sent from the operation panel 21 is stored in the identification number register (step S20).
[0038]
Next, it is checked whether or not the content of the identification number register is the identification number assigned to the panel input switch 30, that is, the identification number of the up switch UP or the identification number of the down switch DOWN (step S21). Here, when it is determined that the content of the identification number register is the identification number assigned to the panel input switch 30, a parameter input process described later is performed (step S22), and then the sequence branches to step S23. . On the other hand, if it is determined that the content of the identification number register is not the identification number assigned to the panel input switch 30, other switch processing is performed (step S23). In this “other switch process”, a process for an event such as a panel switch other than the parameter input switch 30 such as a tone color selection switch and a rhythm selection switch is performed. Thereafter, the sequence returns to the main processing loop.
[0039]
(3) Parameter input processing
Next, details of the panel input process performed in step S22 of the panel switch event process routine will be described with reference to the flowcharts shown in FIGS. In this parameter input process, first, it is checked whether or not the content of the identification number register is the identification number assigned to the up switch UP (step S30).
[0040]
Here, when it is determined that the content of the identification number register is the identification number assigned to the up switch UP, the processing for the event of the up switch UP is executed. That is, first, the value P of the current value register is incremented (+1) (step S31). In step S31, a process of displaying the incremented value P on the parameter display 31 of the operation panel 21 is also performed. Next, a continuous operation determination process is performed (step S32). In this continuous operation determination process, it is determined whether or not the up switch UP has been continuously pressed for a predetermined time. If it is determined that the up switch UP has been continuously pressed, the time flag TMFLG is set to “1”; In this case, the time flag TMFLG is set to “0”.
[0041]
Here, the details of the continuous operation determination process will be described with reference to the flowchart of FIG. In this continuous operation determination process, first, the time flag TMFLG is set to “0”, and the content of the time counter TMCNT is cleared to “0” (step S50). Next, the contents of the time counter TMCNT are incremented (+1) (step S51).
[0042]
Next, it is checked whether or not the content of the time counter TMCNT is smaller than “50” (step S52). If it is determined that the content is small, it is checked whether or not a switch-off event has occurred (step S54). The switch examined here is the up switch UP when this continuous operation determination process is called from step S32, and is the down switch DOWN when called from step S41 described later. The value “50” to be compared with the contents of the time counter TMCNT is a value for determining the time for determining that the parameter input switch has been continuously pressed. The value to be compared with the contents of the time counter TMCNT is not limited to “50”, and can be arbitrarily determined in consideration of the processing speed of the CPU 10. The value to be compared with the contents of the time counter TMCNT can be configured to be arbitrarily set by the user using the parameter input switch 30 as one of the parameters that can be set by the parameter setting device.
[0043]
If it is determined in step S54 that there is no switch-off event, the sequence returns to step S51, and thereafter, steps S51 → S52 → S54 are repeatedly executed. When it is determined in step S54 that there is a switch-off event, it is recognized that the up switch UP or the down switch DOWN has been released during a predetermined time, and the time flag TMFLG is cleared to “0”. (Step S55).
[0044]
If it is determined in step S52 that the content of the time counter TMCNT has reached "50" or more, it is recognized that the up switch UP or the down switch DOWN has not been released during a predetermined time, and the time flag TMFLG Is set to "1" (step S53). Thereafter, the sequence returns to the parameter input processing routine.
[0045]
Next, in the parameter input processing routine, it is checked whether or not the time flag TMFLG is “1” (step S33). Here, if it is determined that the time flag TMFLG is “0”, it is determined that the up switch UP has been pressed once, and the sequence returns to the panel switch event processing routine. As a result, the parameter value is increased by “1”, and the parameter setting process ends.
[0046]
On the other hand, if it is determined in step S33 that the time flag TMFLG is “1”, it is recognized that the up switch UP is continuously operated for a predetermined time or more, and the value P of the current value register is incremented. (+1) is performed (step S34). In step S34, a process of displaying the incremented value P on the parameter display 31 of the operation panel 21 is also performed. Next, it is checked whether or not the value P of the current value register is smaller than the quasi-maximum value NMAX (step S35).
[0047]
Here, if it is determined that the value P of the current value register is smaller than the quasi-maximum value NMAX, it is then checked whether or not the value P of the current value register is equal to the maximum value MAX (step S37). In this case, that is, when the sequence proceeds from step S35 to step S37, it is determined in step S37 that the value P of the current value register is not necessarily equal to the maximum value MAX. Whether or not is checked (step S38).
[0048]
Here, when it is determined that there is no off event of the up switch UP, the sequence returns to step S34, and the processes of steps S34 → S35 → S37 → S38 are repeated thereafter. Thereby, the parameter value is incremented at the first speed. If it is determined in step S38 that an off event of the up switch UP has occurred in the process of repeatedly executing steps S34, S35, S37, and S38, the sequence returns to the panel event processing routine.
[0049]
If it is determined in step S35 that the value P of the current value register is equal to or greater than the quasi-maximum value NMAX in the process of repeated execution of steps S34, S35, S37, and S38, the speed reduction process is executed ( Step S36). In this slowing process, the progression of the sequence is stopped for a certain time.
[0050]
Here, the details of the speed reduction processing will be described with reference to the flowchart of FIG. In this slowing process, first, the contents of the wait counter WTCNT are cleared to “0” (step S60). Next, the content of the wait counter WTCNT is incremented (+1) (step S61). Next, it is checked whether or not the content of the weight counter WTCNT is smaller than “50” (step S62). Here, if it is determined that the content of the weight counter WTCNT is smaller than “50”, the sequence returns to step S61, and thereafter, step S61 and step S62 are repeatedly executed.
[0051]
Then, in the process of this repeated execution, if it is determined in step S62 that the content of the wait counter WTCNT has reached “50” or more, the sequence is the next step after the called step (in this case, parameter input processing). Return to step S37) of the routine. By the above operation, a so-called wait is applied that the progress of the sequence is stopped for a predetermined time by calling this speed reduction processing routine. The value to be compared with the contents of the wait counter WTCNT is not limited to “50”, and can be arbitrarily determined in consideration of the processing speed of the CPU 10 and the necessary wait time. The value to be compared with the contents of the weight counter WTCNT can be configured to be arbitrarily set by the user using the parameter input switch 30 as one of the parameters that can be set by the parameter setting device.
[0052]
In the parameter input processing routine, it is checked whether or not the value P of the current value register is equal to the maximum value MAX (step S37). If the value P of the current value register is not equal to the maximum value MAX, the process proceeds to step S38. Thereafter, steps S34 → S35 → S36 → S37 → S38 are repeated. As a result, the parameter value is incremented at a second speed that is slower than the first speed. If it is determined in step S37 that the value P of the current value register is equal to the maximum value MAX in the process of repeating steps S34, S35, S36, S37, and S38, the sequence returns to the parameter switch event processing routine. To do. Therefore, in the first embodiment, when the maximum value MAX is reached as a result of the operation of the up switch UP, the parameter value remains at the maximum value MAX even if the up switch UP is operated thereafter.
[0053]
When it is determined in step S30 that the content of the identification number register is the identification number assigned to the down switch DOWN, the processing for the event of the down switch DOWN is executed. That is, first, the value P of the current value register is decremented (−1) (step S40). In this step S40, a process of displaying the decremented value P on the parameter display 31 of the operation panel 21 is also performed. Next, continuous operation determination processing is performed (step S41). In this continuous operation determination process, as described above, it is determined whether or not the down switch DOWN has been continuously pressed for a predetermined time. If it is determined that the down switch has been continuously pressed, the time flag TMFLG is set to “1”. Otherwise, the time flag TMFLG is set to “0”.
[0054]
Next, it is checked whether or not the time flag TMFLG is “1” (step S42). Here, if it is determined that the time flag TMFLG is “0”, it is determined that the down switch DOWN has been pressed once, and the sequence returns to the panel switch event processing routine. As a result, the parameter value is decreased by “1” and the parameter setting process ends.
[0055]
On the other hand, if it is determined in step S42 that the time flag TMFLG is “1”, it is recognized that the down switch DOWN has been continuously operated for a predetermined time or more, and the value P of the current value register is decremented. (-1) is performed (step S43). In step S43, a process of displaying the decremented value P on the parameter display 31 of the operation panel 21 is also performed. Next, it is checked whether or not the value P of the current value register is greater than the quasi-minimum value NMIN (step S44).
[0056]
Here, if it is determined that the value P of the current value register is greater than the quasi-minimum value NMIN, it is then checked whether or not the value P of the current value register is equal to the minimum value MIN (step S46). In this case, that is, when the sequence proceeds from step S44 to step S46, it is determined in step S46 that the value P of the current value register is not necessarily equal to the minimum value MIN, and then there is an off event of the down switch DOWN. Whether or not (step S47).
[0057]
Here, when it is determined that there is no down switch DOWN off event, the sequence returns to step S43, and the processing of steps S43 → S44 → S46 → S47 is repeated thereafter. Thereby, the parameter value is decremented at the first speed. If it is determined in step S47 that an off event of S43 → S44 → S46 → S47 has occurred in the process of repeated execution of steps S43 → S44 → S46 → S47, the sequence returns to the panel event processing routine.
[0058]
If it is determined in step S44 that the value P of the current value register is larger than the quasi-minimum value NMIN in the process of repeated execution of steps S43, S44, S46, and S47, the speed reduction process is executed (step S44). S45). In this slowing process, as described above, the progression of the sequence is stopped for a certain time.
[0059]
Next, it is checked whether or not the value P of the current value register is equal to the minimum value MIN (step S46). If the value P of the current value register is not equal to the minimum value MIN, the process proceeds to step S47. Thereafter, the process of steps S43 → S44 → S45 → S46 → S47 is repeated. As a result, the parameter value is decremented at a second speed slower than the first speed. If it is determined in step S46 that the value P of the current value register is equal to the minimum value MIN in the process of repeating steps S43, S44, S45, S46, and S47, the sequence returns to the parameter switch event processing routine. To do. Therefore, in the first embodiment, when the minimum value MIN is reached as a result of the operation of S43 → S44 → S45 → S46 → S47, the parameter value remains at the minimum value MIN even if the down switch DOWN is operated thereafter. .
[0060]
As described above, according to the parameter setting device of the first embodiment, when the parameter value is continuously changed at the first speed by continuously pressing the parameter input switch 30, it is stored in the current value register. When the parameter value is larger than the quasi-maximum value NMAX that is a value in the vicinity of the maximum value MAX or smaller than the quasi-minimum value NMIN that is a value in the vicinity of the minimum value MIN, the change rate of the parameter value Is changed to a second speed that is slower than the first speed, the operation of setting parameter values in the vicinity of the maximum value MAX and the minimum value MIN becomes easy.
[0061]
(Embodiment 2)
In the parameter setting device according to the second embodiment of the present invention, the parameter changes in the range from “0” which is the minimum value MIN to “100” which is the maximum value MAX, but by operating the up switch UP. When the value of the current value register exceeds the maximum value MAX, the value rounds to the minimum value MIN. When the value of the current value register exceeds the minimum value MIN by operating the down switch DOWN, the value rounds to the maximum value MAX. And Also, “90” is defined as the quasi-maximum value NMAX and “10” is defined as the quasi-minimum value NMIN, as in the first embodiment.
[0062]
The configuration of the parameter setting device according to the second embodiment is the same as the configuration of the parameter setting device according to the first embodiment. The operation of the parameter setting apparatus according to the second embodiment is only different from the first embodiment described above in the parameter input processing, and therefore only the differences will be described below.
[0063]
9 and 10 are flowcharts showing parameter input processing of the electronic musical instrument to which the parameter setting device according to the second embodiment is applied. In the flowchart shown in FIG. 9, the process of step S39 is added to the flowchart shown in FIG. 5, and in the flowchart shown in FIG. 10, the process of step S48 is added to the flowchart shown in FIG.
[0064]
In the process for the up switch UP event, if it is determined in step S37 that the value P in the current value register is equal to the maximum value MAX, the minimum value MIN is set as the value P in the current value register (step S37). S39). Thereafter, the sequence branches to step S38. As a result, the function of rounding to the minimum value MIN when the maximum value MAX is reached as a result of the operation of the up switch UP is realized.
[0065]
In the process for the event of the down switch DOWN, when it is determined in step S46 that the value P of the current value register is equal to the minimum value MIN, the maximum value MAX is set as the value P of the current value register. (Step S48). Thereafter, the sequence branches to step S47. As a result, the function of rounding to the maximum value MAX when the minimum value MIN is reached as a result of the operation of the down switch DOWN is realized.
[0066]
As described above, the parameter setting device according to the second embodiment has the same effects as those of the first embodiment. In addition, even in a parameter setting device that rounds to the minimum value when it is increased to the maximum value of the variable range and conversely decreases to the minimum value, the parameter input switch as in the past The number of operations does not increase.
[0067]
(Embodiment 3)
The electronic musical instrument to which the parameter setting device according to the third embodiment of the present invention is applied includes only the up switch UP. Further, the parameter changes in the range from “0” which is the minimum value MIN to “100” which is the maximum value MAX, but by operating the up switch UP, the content of the current value register exceeds the maximum value MAX. In this case, round to the minimum value MIN.
[0068]
The configuration of the parameter setting device according to the third embodiment is the same as the configuration of the parameter setting device according to the first embodiment, except that the parameter input switch 30 is configured only by the up switch UP.
[0069]
Further, since the operation of the parameter setting apparatus according to the third embodiment is only different from the first embodiment described above in the parameter input processing, only the differences will be described below.
[0070]
FIG. 11 is a flowchart showing parameter input processing of an electronic musical instrument to which the parameter setting device according to the third embodiment is applied.
[0071]
In this parameter input process, first, the value P of the current value register is stored in the buffer BUF provided in the work memory 12 (step S70). Next, the value P of the current value register is incremented (+1) (step S71). In step S71, a process of displaying the incremented value P on the parameter display 31 of the operation panel 21 is also performed. Next, a continuous operation determination process is performed (step S72). In this continuous operation determination process, it is determined whether or not the up switch UP has been continuously pressed for a predetermined time. If it is determined that the up switch UP has been continuously pressed, the time flag TMFLG is set to “1”; In this case, the time flag TMFLG is set to “0”.
[0072]
Next, it is checked whether or not the time flag TMFLG is “1” (step S73). Here, if it is determined that the time flag TMFLG is “0”, it is determined that the up switch UP has been pressed once, and the sequence returns to the panel switch event processing routine. As a result, the parameter value is increased by “1”, and the parameter setting process ends.
[0073]
On the other hand, if it is determined in step S73 that the time flag TMFLG is “1”, it is recognized that the up switch UP is continuously operated for a predetermined time or more, and the value P of the current value register is incremented. (+1) is performed (step S74). In step S74, a process of displaying the incremented value P on the parameter display 31 of the operation panel 21 is also performed. Next, as a result of the increment, it is checked whether or not the value P of the current value register is equal to the maximum value MAX (step S75).
[0074]
If it is determined that the value P of the current value register is not equal to the maximum value MAX, the sequence proceeds to step S77. If it is determined that the value P is equal, the minimum value MIN is set as the value P of the current value register. (Step S76). As a result, the function of rounding to the minimum value MIN when the maximum value MAX is reached as a result of the operation of the up switch UP is realized. Thereafter, the sequence branches to step S77.
[0075]
In step S77, it is checked whether or not the value P of the current value register is equal to or greater than the value BUF-X obtained by subtracting the predetermined value X from the value stored in the buffer BUF (step S77). Here, if it is determined that the value is smaller than the value BUF-X, the sequence branches to step S80.
[0076]
On the other hand, if it is determined in step S77 that the value P of the current value register is greater than or equal to the value BUF-X, then whether or not the value P of the current value register is smaller than the value stored in the buffer BUF. It is examined (step S78). Here, when it is determined that the value P of the current value register is smaller than the value stored in the buffer BUF, the sequence proceeds to step S80, and when it is determined that this is not the case, the speed reduction process is executed ( Step S79). In this slowing process, as described above, the progression of the sequence is stopped for a certain time. Thereafter, the sequence branches to step S80.
[0077]
In step S80, it is checked whether there is an off event of the up switch UP. If it is determined that there is no up-switch UP off event, the sequence returns to step S74, and the value P of the current value register is not in the range from the value BUF-X to the value stored in the buffer BUF. If so, the process of steps S74 → S75 → S77 → S78 → S80 is repeated. Thereby, the parameter value is incremented at the first speed.
[0078]
On the other hand, when the value P of the current value register is in the range from the value BUF-X to the value stored in the buffer BUF, the processes of steps S74 → S75 → S77 → S78 → S79 → S80 are repeated. As a result, the parameter value is incremented at a second speed that is slower than the first speed. If it is determined in step S80 that an up event of the up switch UP has occurred in any of the above repeated execution processes, the sequence returns to the panel event processing routine.
[0079]
With the above processing, a change in the parameter change speed as shown in FIG. 12 is realized. That is, when the up switch UP is pressed, the current value register value at that time is stored in the buffer BUF, and when the up switch UP is further pressed for a predetermined time, the parameter changing speed is increased. When the parameter value continues to increase and reaches the upper limit value, it rounds to the lower limit value. When the value P of the current value register becomes equal to or greater than the value BUF-X obtained by subtracting the predetermined value X from the value stored in the buffer BUF. The parameter change speed becomes slower. Then, the parameter value continues to increase at the second speed that has been slowed down, and when the value of the current value register reaches the value stored in the buffer BUF by continuously pressing the up switch UP for a predetermined time, the parameter changing speed becomes faster again, The first speed is reached.
[0080]
A more specific example will be described with reference to FIG. When the up switch UP is pressed, the value “50” of the current value register at that time is stored in the buffer BUF, and when the up switch UP is further pressed for a predetermined time, the parameter changing speed is increased. The parameter value continues to increase. When the upper limit value “100” is reached, the parameter value rounds to the lower limit value “0”, and the value of the current value register is changed from the value “50” stored in the buffer BUF to a predetermined value “10”, for example. When the subtracted value “40” or more is reached, the parameter change speed is reduced. Then, the parameter value continues to increase at this reduced speed, and when the value of the current value register reaches the value “50” stored in the buffer BUF, the parameter change speed is increased again.
[0081]
As described above, according to the parameter setting device of the third embodiment, when the parameter value is continuously changed at the first speed by continuously pressing the parameter input switch 30, it is stored in the current value register. The parameter value changing speed is changed to a second speed slower than the first speed when the parameter value being changed becomes a value that is smaller by a predetermined value than the parameter value at the time of starting the parameter setting operation, and the current value register When the parameter value stored in is larger than the parameter value at the time when the parameter setting operation is started, the change of the parameter value is returned from the second speed to the first speed.
[0082]
As a result, as shown in FIG. 13, even if the target value “47” is slightly smaller than the current set value “50”, the change speed of the parameter value is slow in the vicinity of the target value “47”. The operation for setting the parameter value to the target value becomes easy.
[0083]
In the third embodiment, only the up switch UP is provided. However, only the down switch DOWN may be provided. In this case, the same effect as described above can be obtained.
[0084]
The predetermined value X can be arbitrarily set by the user using the parameter input switch 30 as each one of parameters that can be set by the parameter setting device.
[0085]
【The invention's effect】
As described above in detail, according to the present invention, it is possible to provide a parameter setting device for an electronic musical instrument that can easily set parameters.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an electronic musical instrument to which a parameter setting device according to first to third embodiments of the present invention is applied.
FIG. 2 is a diagram showing an example of an operation panel shown in FIG.
FIG. 3 is a flowchart showing main processing of the electronic musical instrument shown in FIG. 1;
4 is a flowchart showing panel switch event processing of the electronic musical instrument shown in FIG. 1. FIG.
FIG. 5 is a flowchart (part 1) showing parameter input processing of the electronic musical instrument shown in FIG. 1;
6 is a flowchart (part 2) illustrating a parameter input process of the electronic musical instrument illustrated in FIG. 1;
7 is a flowchart showing details of the continuous operation determination process of FIGS. 5 and 6. FIG.
FIG. 8 is a flowchart showing details of the speed reduction processing of FIGS. 5 and 6;
FIG. 9 is a flowchart (No. 1) showing a parameter input process of the electronic musical instrument to which the parameter setting apparatus according to the second embodiment of the present invention is applied.
FIG. 10 is a flowchart (part 2) illustrating a parameter input process of the electronic musical instrument to which the parameter setting device according to the second embodiment of the present invention is applied.
FIG. 11 is a flowchart showing parameter input processing of an electronic musical instrument to which a parameter setting device according to Embodiment 3 of the present invention is applied.
12 is a diagram for explaining an operation realized by the flowchart shown in FIG. 11; FIG.
FIG. 13 is a diagram for explaining the operation realized by the flowchart shown in FIG. 11 in more detail.
FIG. 14 is a diagram for explaining the operation of a conventional parameter setting device.
[Explanation of symbols]
10 CPU
11 Program memory
12 Work memory
13 Key scan circuit
14 Panel scan circuit
15 Musical sound generator
20 Keyboard device
21 Operation panel
22 D / A converter
23 Analog signal processor
24 Amplifier
25 Speaker
26 System bus
30 Parameter input switch
31 Parameter display

Claims (5)

パラメータの現在値を記憶する現在値記憶手段と、
前記現在値記憶手段に記憶されているパラメータの現在値を増加させるためのパラメータ入力スイッチと、
前記パラメータ入力スイッチが所定時間以上継続して押されたかどうかを判断する判断手段と、
前記判断手段により前記パラメータ入力スイッチが所定時間以上継続して押されたことが判断された場合に、前記現在値記憶手段内の現在値を第1速度で連続的に増加させる速度制御手段と、
前記速度制御手段によって第1速度で連続的に増加している前記現在値記憶手段内の現在値が所定範囲の値になった場合に、前記現在値記憶手段内の現在値が前記第1速度より遅い第2速度で連続的に増加するように変更させる速度変更手段とを備え、
前記パラメータの現在値は、最小値から最大値までの範囲で変化可能であり、前記最大値に達すると前記最小値にラウンドし、
前記所定範囲は、前記パラメータ入力スイッチが押された時点で設定されているパラメータ値より所定値だけ小さい第1の値から前記パラメータ入力スイッチが押された時点で設定されているパラメータ値までの範囲である
電子楽器のパラメータ設定装置。
Current value storage means for storing the current value of the parameter;
A parameter input switch for increasing the current value of the parameter stored in the current value storage means;
Determining means for determining whether or not the parameter input switch is continuously pressed for a predetermined time;
A speed control means for continuously increasing the current value in the current value storage means at a first speed when it is determined by the determining means that the parameter input switch is continuously pressed for a predetermined time or more;
When the current value in the current value storage means continuously increasing at the first speed by the speed control means becomes a value within a predetermined range, the current value in the current value storage means is the first speed. Speed changing means for changing continuously to increase at a slower second speed,
The current value of the parameter can vary from a minimum value to a maximum value, and when reaching the maximum value, rounds to the minimum value,
The predetermined range is a range from a first value that is smaller by a predetermined value than a parameter value that is set when the parameter input switch is pressed to a parameter value that is set when the parameter input switch is pressed. An electronic musical instrument parameter setting device.
パラメータの現在値を記憶する現在値記憶手段と、
前記現在値記憶手段に記憶されているパラメータの現在値を減少させるためのパラメータ入力スイッチと、
前記パラメータ入力スイッチが所定時間以上継続して押されたかどうかを判断する判断手段と、
前記判断手段により前記パラメータ入力スイッチが所定時間以上継続して押されたことが判断された場合に、前記現在値記憶手段内の現在値を第1速度で連続的に減少させる速度制御手段と、
前記速度制御手段によって第1速度で連続的に減少している前記現在値記憶手段内の現在値が所定範囲の値になった場合に、前記現在値記憶手段内の現在値が前記第1速度より遅い第2速度で連続的に減少するように変更させる速度変更手段とを備え、
前記パラメータの現在値は、最小値から最大値までの範囲で変化可能であり、前記最小値に達すると前記最大値にラウンドし、
前記所定範囲は、前記パラメータ入力スイッチが押された時点で設定されているパラメータ値より所定値だけ大きい第1の値から前記パラメータ入力スイッチが押された時点で設定されているパラメータ値までの範囲である
電子楽器のパラメータ設定装置。
Current value storage means for storing the current value of the parameter;
A parameter input switch for decreasing the current value of the parameter stored in the current value storage means;
Determining means for determining whether or not the parameter input switch is continuously pressed for a predetermined time;
A speed control means for continuously decreasing the current value in the current value storage means at a first speed when it is determined by the determining means that the parameter input switch is continuously pressed for a predetermined time or more;
When the current value in the current value storage means continuously decreasing at the first speed by the speed control means reaches a value within a predetermined range, the current value in the current value storage means is the first speed. Speed changing means for changing continuously so as to decrease at a slower second speed,
The current value of the parameter can vary from a minimum value to a maximum value, and when reaching the minimum value, rounds to the maximum value,
The predetermined range is a range from a first value that is larger by a predetermined value than a parameter value set when the parameter input switch is pressed to a parameter value that is set when the parameter input switch is pressed. Is
Electronic musical instrument parameter setting device.
前記所定時間として任意の値を設定するための入力手段を更に備えた請求項1乃至2の何れか1項に記載の電子楽器のパラメータ設定装置。  The parameter setting apparatus for an electronic musical instrument according to any one of claims 1 to 2, further comprising input means for setting an arbitrary value as the predetermined time. 前記第1速度及び第2速度を規定する値として任意の値を入力するための入力手段を更に備えた請求項1乃至3の何れか1項に記載の電子楽器のパラメータ設定装置。  The electronic musical instrument parameter setting device according to any one of claims 1 to 3, further comprising input means for inputting arbitrary values as values defining the first speed and the second speed. 前記所定値として任意の値を入力するための入力手段を更に備えた請求項1乃至4の何れか1項に記載の電子楽器のパラメータ設定装置。Parameter setting apparatus for an electronic musical instrument according to any one of claims 1 to 4 further comprising an input means for inputting an arbitrary value as the plant value.
JP2000093784A 2000-03-30 2000-03-30 Electronic musical instrument parameter setting device Expired - Fee Related JP4229355B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000093784A JP4229355B2 (en) 2000-03-30 2000-03-30 Electronic musical instrument parameter setting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000093784A JP4229355B2 (en) 2000-03-30 2000-03-30 Electronic musical instrument parameter setting device

Publications (2)

Publication Number Publication Date
JP2001282242A JP2001282242A (en) 2001-10-12
JP4229355B2 true JP4229355B2 (en) 2009-02-25

Family

ID=18608920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000093784A Expired - Fee Related JP4229355B2 (en) 2000-03-30 2000-03-30 Electronic musical instrument parameter setting device

Country Status (1)

Country Link
JP (1) JP4229355B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4638694B2 (en) * 2003-08-21 2011-02-23 テルモ株式会社 Infusion device
JP6923373B2 (en) * 2017-06-26 2021-08-18 株式会社デンソーテン Content playback device and content playback method

Also Published As

Publication number Publication date
JP2001282242A (en) 2001-10-12

Similar Documents

Publication Publication Date Title
EP2866223B1 (en) Automated music performance time stretch using audio waveform data
JP2777348B2 (en) Electronic musical instrument parameter setting device
JP4229355B2 (en) Electronic musical instrument parameter setting device
JP2001215965A (en) Device and method for touch control
JP2876359B2 (en) Electronic musical instrument parameter setting device
US5864081A (en) Musical tone generating apparatus, musical tone generating method and storage medium
JP3019755B2 (en) Music sound generation method and music sound generation device
JPH0876760A (en) Tempo speed controller of automatic playing device
US5508471A (en) Automatic performance apparatus for an electronic musical instrument
JP4183354B2 (en) Electronic musical instruments
JP3271447B2 (en) Electronic musical instrument tempo setting device
JP2968911B2 (en) Electronic musical instrument parameter setting device
JP2677149B2 (en) Effect applying device
JP3496796B2 (en) Patch information setting device for electronic musical instruments
JP4093132B2 (en) Effect type selection device and program
JP2968912B2 (en) Electronic musical instrument parameter setting device
JP2000315083A (en) Electronic keyboard instrument
JP2809275B2 (en) Waveform signal output device
JP2590262Y2 (en) Key scaling data display device and tone generator
JPH07181966A (en) Data setting device of electronic musical instrument
JP3414188B2 (en) Display layout change device
JP3469717B2 (en) Electronic musical instrument and its key information assigning device
JPH07104751A (en) Electronic musical instrument
JPH10282961A (en) Musical sound controlling parameter generator
JP3843800B2 (en) Touch control device and touch control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070223

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080617

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080623

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080819

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080909

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081107

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

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

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20111212

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111212

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20121212

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20131212

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees