Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4985487B2 - Electronic musical instrument and its program - Google Patents
[go: Go Back, main page]

JP4985487B2 - Electronic musical instrument and its program - Google Patents

Electronic musical instrument and its program Download PDF

Info

Publication number
JP4985487B2
JP4985487B2 JP2008061313A JP2008061313A JP4985487B2 JP 4985487 B2 JP4985487 B2 JP 4985487B2 JP 2008061313 A JP2008061313 A JP 2008061313A JP 2008061313 A JP2008061313 A JP 2008061313A JP 4985487 B2 JP4985487 B2 JP 4985487B2
Authority
JP
Japan
Prior art keywords
slider
parameter
command
value
pseudo
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
JP2008061313A
Other languages
Japanese (ja)
Other versions
JP2009217026A (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.)
Yamaha Corp
Original Assignee
Yamaha 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 Yamaha Corp filed Critical Yamaha Corp
Priority to JP2008061313A priority Critical patent/JP4985487B2/en
Publication of JP2009217026A publication Critical patent/JP2009217026A/en
Application granted granted Critical
Publication of JP4985487B2 publication Critical patent/JP4985487B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

本発明は、外部通信コマンドで、電子楽器の操作子を操作したかのような状態を作る技術に関する。   The present invention relates to a technique for creating a state as if an operator of an electronic musical instrument was operated with an external communication command.

従来より、電子楽器には、音量レベルなどの各種のパラメータ値を設定/変更するためのスライダー(フェーダー)を備えたものが知られている。通常、外部パネル上のスライダーの数より設定/変更したいパラメータの数の方が多いため、1つのスライダーの機能を切り替えながら複数のパラメータ値を設定/変更できるようにしている。この場合、スライダーのつまみの位置と設定/変更するパラメータ値の現在値とが一致しない場合があるが、スライダーがいわゆるムービング機能(パラメータ値に応じた位置につまみを強制的に設定する駆動機構を備えたもの)を備えたスライダーであれば、パラメータ値の現在値に応じた位置にスライダーのつまみを強制的にセットすることができる。一方、ムービング機能を持たないスライダーの場合、(1)スライダー位置変更に伴いパラメータ値が即座に変更される方式、又は、(2)いわゆるピックアップ方式が適用される。   2. Description of the Related Art Conventionally, electronic musical instruments having a slider (fader) for setting / changing various parameter values such as a volume level are known. Usually, since the number of parameters to be set / changed is larger than the number of sliders on the external panel, a plurality of parameter values can be set / changed while switching the function of one slider. In this case, the position of the slider knob may not match the current value of the parameter value to be set / changed, but the slider has a so-called moving function (a drive mechanism that forcibly sets the knob to a position corresponding to the parameter value). If the slider is equipped with a slider), the slider knob can be forcibly set at a position corresponding to the current value of the parameter value. On the other hand, in the case of a slider that does not have a moving function, (1) a method in which a parameter value is immediately changed as the slider position is changed, or (2) a so-called pickup method is applied.

図9は、上記(1)の方式を採った場合のスライダー値とパラメータ値の変化例を示す。横軸が時間の経過を示し、縦軸がスライダー値及びパラメータ値を示す。「スライダー値」とは、スライダーのつまみの位置に対応するパラメータ値を言う。パラメータ値の現在値が点線911にあり、スライダー値が点線912にある状態で、時点901においてスライダー操作が開始したとする。このとき、スライダーの位置変更に伴い、点線913に示すように、パラメータの現在値はスライダー値へと急激に変化する。その後は、点線914に示すように、スライダーの操作に応じてパラメータ現在値も変化し、最終的に目標値915に到る。   FIG. 9 shows a change example of the slider value and the parameter value when the method (1) is adopted. The horizontal axis shows the passage of time, and the vertical axis shows the slider value and the parameter value. “Slider value” refers to a parameter value corresponding to the position of the slider knob. Assume that the slider operation starts at time 901 with the current value of the parameter value being on the dotted line 911 and the slider value being on the dotted line 912. At this time, as the position of the slider changes, the current value of the parameter changes rapidly to the slider value, as indicated by a dotted line 913. Thereafter, as indicated by a dotted line 914, the parameter current value also changes in accordance with the operation of the slider, and finally reaches the target value 915.

図10は、上記(2)の方式でのスライダー値とパラメータ値の変化例を示す。ピックアップ方式とは、スライダー値とパラメータ現在値とが異なる場合、いったんパラメータ現在値の位置までスライダーを操作した後、スライダー位置に応じてパラメータ値を変化させる方式である。図10では、パラメータ現在値が点線1011で、スライダー値が点線1012にある状態で、時点1001でスライダー操作を開始したとする。このとき、スライダー値を点線1013のように変化させても、未だパラメータ現在値に到っていないので、パラメータ現在値が変化することはない。スライダー値がパラメータ現在値に到った後は、点線1014に示すように、スライダー位置に応じてパラメータ値が変化する。その後、目標値1015にセットすればよい。   FIG. 10 shows a change example of the slider value and the parameter value in the method (2). The pickup method is a method of changing the parameter value according to the slider position after the slider is once operated to the position of the parameter current value when the slider value and the parameter current value are different. In FIG. 10, it is assumed that the slider operation is started at time 1001 in a state where the current parameter value is the dotted line 1011 and the slider value is the dotted line 1012. At this time, even if the slider value is changed as indicated by the dotted line 1013, the parameter current value does not change because the parameter current value has not yet been reached. After the slider value reaches the current parameter value, the parameter value changes according to the slider position as indicated by a dotted line 1014. Thereafter, the target value 1015 may be set.

一方、従来の電子楽器では、上述したように外部パネル上の操作子を操作して各種のパラメータ値を設定/変更するのに加え、外部機器からのコマンドを受けて各種のパラメータ値を設定/変更する技術も知られている。例えば、MIDI Contorol Changeや、MIDI SysExである。これらは、直接的にパラメータを特定して当該パラメータの値を変更するものであった。   On the other hand, in the conventional electronic musical instrument, in addition to setting / changing various parameter values by operating the controls on the external panel as described above, various parameter values can be set / received by receiving commands from an external device. The technology to change is also known. For example, MIDI Control Change or MIDI SysEx. These directly specify a parameter and change the value of the parameter.

上述したように、外部パネル上の操作子を操作する代わりに、通信コマンドでパラメータ値を設定/変更する場合、パラメータの値の操作はできるが、操作子そのものをコントロールすることはできなかった。例えば、楽器教室で先生の機器から生徒の機器をコントロールしたい場合などがあるが、通信コマンドを使用して先生の機器から生徒の機器のパラメータ値を直接的に設定/変更しても、生徒は、どのような操作をすればそのパラメータ値の変更が行われるか分からないことがある。   As described above, when the parameter value is set / changed by a communication command instead of operating the operator on the external panel, the parameter value can be manipulated, but the operator itself cannot be controlled. For example, you may want to control a student's device from a teacher's device in a musical instrument classroom, but if you use a communication command to set / change the parameter value of a student's device directly from the teacher's device, , You may not know what operation will change the parameter value.

本発明は、各種パラメータ値を設定/変更する操作子を備えた電子楽器において、外部から通信コマンドを使用して、操作子が操作された状態をリモートコントロールすることができる技術を提供することを目的とする。   The present invention provides a technique capable of remotely controlling an operating state of an operating element using an external communication command in an electronic musical instrument having an operating element for setting / changing various parameter values. Objective.

上記目的を達成するため、請求項1に係る発明は、各種パラメータ値を設定/変更する操作子を備えた電子楽器であって、通信コマンドを受信する手段と、受信した通信コマンドが、擬似的に操作子が操作されたかのようなイベントを発生させる擬似操作子操作コマンドであるか否か判定する手段と、受信した通信コマンドが擬似操作子操作コマンドであった場合は、該擬似操作子操作コマンドに応じた操作子操作イベントを発生する手段と、前記操作子操作イベントの発生から所定時間待機し、該所定時間の後に、パラメータの分解能に応じた度合いで、パラメータ現在値を前記操作子操作イベントに基づく目標値まで徐々に変化させ、前記操作子操作イベントに基づく目標値をパラメータ現在値として設定する手段とを備えることを特徴とする。また請求項3に係る発明は、コンピュータを前記電子楽器として機能させることを特徴とするプログラムである。 In order to achieve the above object, an invention according to claim 1 is an electronic musical instrument provided with an operator for setting / changing various parameter values, wherein the means for receiving a communication command and the received communication command are simulated. Means for determining whether or not it is a pseudo-manipulator operation command that generates an event as if the manipulator was operated, and if the received communication command is a pseudo-manipulator operation command, the pseudo-manipulator operation command Means for generating an operation element operation event corresponding to the operation element , and waits for a predetermined time from the occurrence of the operation element operation event , and after the predetermined time, the parameter current value is set to a degree according to the resolution of the parameter. gradually changed to a target value based on, characterized in that it comprises means for setting a target value based on the operator operation event parameters as the current value To. The invention according to claim 3 is a program for causing a computer to function as the electronic musical instrument.

前記擬似操作子操作コマンドが、ムービング機能付きのスライダーの操作を指示するコマンドであり、その擬似操作子操作コマンドに応じて、前記ムービング機能付きのスライダーの位置を設定するようにしてもよい。なお、前記操作子は、画面上にイメージを表示し、ポインティングデバイスなどで操作するものを含むものとする。また、画面上に当該操作子に対応するパラメータ値の表示が為されている場合は、その表示についても擬似操作子操作コマンドに応じて変更するものとする。   The pseudo operation element operation command is a command for instructing the operation of the slider with a moving function, and the position of the slider with the moving function may be set according to the pseudo operation element operation command. The operation element includes an image displayed on a screen and operated with a pointing device or the like. Further, when the parameter value corresponding to the operation element is displayed on the screen, the display is also changed according to the pseudo-operation element operation command.

本発明によれば、単にパラメータ値を変更するだけでなく、あたかもリモート先の操作子を操作したかのような遠隔操作ができる。そのため、先生の機器と生徒の機器とを接続してなるような電子楽器の教育システム、インターネットなどのネットを介して行う電子楽器のネットレッスンなどに有効である。例えば、先生の機器から生徒の機器へと擬似操作子操作コマンドを送れば、パラメータ値が変わるだけでなく、あたかも生徒側の機器の操作子を操作したような挙動になる。そのため、生徒は、どのような操作を行うべきなのかを明確に把握できるようになる。機器/操作子/対象パラメーターによっては、操作子の操作しても即座にパラメータ値に反映されず、一定時間おいてからパラメータ値が変更されるものがある。本発明は、このようなシチュエーションで有効に働くものである。   According to the present invention, it is possible not only to change the parameter value but also to perform remote operation as if the remote control is operated. Therefore, it is effective for an electronic musical instrument education system in which a teacher's device and a student's device are connected, and an electronic musical instrument net lesson performed via the Internet or the like. For example, if a pseudo-operation element operation command is sent from the teacher's device to the student's device, not only will the parameter value change, but the behavior will be as if the operation device of the student's device was operated. Therefore, the student can clearly grasp what operation should be performed. Some devices / operators / target parameters are not immediately reflected in the parameter value even when the operator is operated, and the parameter value is changed after a certain period of time. The present invention works effectively in such situations.

以下、図面を用いて本発明の実施の形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の実施の形態に係る電子楽器100のハードウェア構成例を示す。CPU(中央処理装置)101は、この電子楽器全体の動作を制御する処理装置である。RAM(ランダムアクセスメモリ)102は、CPU101が実行するプログラムのロード領域やワーク領域に使用する揮発性メモリである。ROM(リードオンリメモリ)103は、CPU101が実行する制御プログラムや各種のデータを格納する不揮発性メモリである。操作子105は、この電子楽器の外部パネルに設けられているスイッチやスライダーなどの操作子、及び鍵盤などの演奏操作子である。操作子105の操作は検出回路106により検出され、検出結果がCPU101に送られる。表示部107は、各種の情報を表示するディスプレイである。表示回路108は、CPU101からの指示に基づいて、与えられたデータを表示部107に表示する。通信インターフェース(I/F)109は、外部機器110や外部ネットワークと接続するためのインターフェースである。その接続方式はどのようなものでもよい。音源104は、CPU101からの指示に基づいて楽音信号を発生する。発生した楽音信号は、アナログの音響信号に変換され、増幅回路111で増幅された後、スピーカー112で放音される。   FIG. 1 shows a hardware configuration example of an electronic musical instrument 100 according to an embodiment of the present invention. A CPU (Central Processing Unit) 101 is a processing device that controls the operation of the entire electronic musical instrument. A RAM (random access memory) 102 is a volatile memory used for a load area and a work area of a program executed by the CPU 101. A ROM (read only memory) 103 is a nonvolatile memory that stores a control program executed by the CPU 101 and various data. The operation element 105 is an operation element such as a switch or a slider provided on the external panel of the electronic musical instrument, and a performance operation element such as a keyboard. The operation of the operation element 105 is detected by the detection circuit 106, and the detection result is sent to the CPU 101. The display unit 107 is a display that displays various types of information. The display circuit 108 displays given data on the display unit 107 based on an instruction from the CPU 101. A communication interface (I / F) 109 is an interface for connecting to an external device 110 or an external network. Any connection method may be used. The sound source 104 generates a musical sound signal based on an instruction from the CPU 101. The generated musical sound signal is converted into an analog acoustic signal, amplified by the amplifier circuit 111, and then emitted by the speaker 112.

図2は、図1の電子楽器100の外部パネルイメージ及び外部から通信コマンドを受信する様子を示すイメージ図である。電子楽器100の外部パネル上には、複数のスライダー201、その他のスイッチやボリューム202,203、及びディスプレイ204などが設けられている。スライダー201とスイッチ等202,203は図1の操作子105に対応し、ディスプレイ204は図1の表示部107に対応する。スイッチ等202,203の操作などでディスプレイ204に表示される画面を切り替え、これにより各スライダー201に割り当てるパラメータを切り替えることができる。もちろん画面の切り替えを伴わずに、各スライダー201へのパラメータの割り当てを変更できるようにしてもよい。   FIG. 2 is an image diagram showing an external panel image of the electronic musical instrument 100 of FIG. 1 and a state in which a communication command is received from the outside. On the external panel of the electronic musical instrument 100, a plurality of sliders 201, other switches and volumes 202 and 203, a display 204, and the like are provided. The slider 201 and switches 202 and 203 correspond to the operation element 105 in FIG. 1, and the display 204 corresponds to the display unit 107 in FIG. The screen displayed on the display 204 can be switched by operating the switches 202 and 203, and the parameters assigned to the sliders 201 can be switched accordingly. Of course, the parameter assignment to each slider 201 may be changed without switching the screen.

スライダー201も含めて外部パネル上の操作子を操作すると、内部でその操作に応じたイベントが発生し、そのイベントに応じた処理が実行される。これについては、図5などで後述する。また、本実施形態の電子楽器では、外部ネットワーク130や外部機器110から通信コマンドを入力し、該通信コマンドに応じた処理を実行する機能を備える。特に、通信コマンドは「擬似操作子操作コマンド」を含む。「擬似操作子操作コマンド」とは、当該電子楽器の操作子201〜203が操作されたかのようなイベントを発生させるコマンドである。「擬似操作子操作コマンド」を入力したときの処理については、図6などで後述する。   When an operator on the external panel including the slider 201 is operated, an event corresponding to the operation is generated inside, and processing corresponding to the event is executed. This will be described later with reference to FIG. In addition, the electronic musical instrument of the present embodiment has a function of inputting a communication command from the external network 130 or the external device 110 and executing processing according to the communication command. In particular, the communication command includes a “pseudo operator operation command”. The “pseudo operator operation command” is a command that generates an event as if the operators 201 to 203 of the electronic musical instrument were operated. Processing when the “pseudo-operator operation command” is input will be described later with reference to FIG.

図3は、本実施形態の電子楽器におけるスライダー値とパラメータ現在値の変化の例(その1)を示す。横軸は時間、縦軸はスライダー値とパラメータ現在値を示す。パラメータ現在値311とスライダー値312とが異なる状態で、時点301でユーザがスライダー操作を開始したとする。スライダー値は点線313に示すように変化するが、所定時間321(ここでは300msec程度)が経過するまでパラメータ現在値は変化しない。所定時間321が経過した時点302で、パラメータ現在値をスライダー値に応じて設定し、目標値314に至る。この方式では、所定時間の間にスライダー値とパラメータ現在値との差を小さくした上でパラメータ現在値をスライダー位置に応じて設定変更できるので、ノイズの低減を図ることができる。   FIG. 3 shows an example (part 1) of changes in the slider value and the current parameter value in the electronic musical instrument of the present embodiment. The horizontal axis represents time, and the vertical axis represents the slider value and parameter current value. It is assumed that the user starts the slider operation at the time point 301 in a state where the parameter current value 311 and the slider value 312 are different. The slider value changes as indicated by a dotted line 313, but the parameter current value does not change until a predetermined time 321 (here, about 300 msec) elapses. At the time 302 when the predetermined time 321 has elapsed, the current parameter value is set according to the slider value, and the target value 314 is reached. In this method, since the difference between the slider value and the parameter current value can be reduced during a predetermined time and the parameter current value can be set and changed according to the slider position, noise can be reduced.

図4は、図3の変形例を示す。パラメータ現在値411とスライダー値412に差がある状態で、時点401でスライダー操作が開始されたとする。このとき、所定時間421の間はスライダーの操作をパラメータ現在値に反映させない点は図3の例と同じである。図4では、所定時間421経過後の時点402から徐々にパラメータ現在値413をスライダー値414に合わせるように近づけ、目標値415に至るようにする。なお、時点402からパラメータ現在値をスライダー値に徐々に近づける方式は任意である。例えば、Nmsec毎にパラメータ現在値を所定値Mstepずつ変化させて徐々にスライダー値に近づけるようにすればよい。この方式によれば、ノイズ低減を図ることができると共に、直感的な操作が可能となる。   FIG. 4 shows a modification of FIG. It is assumed that the slider operation is started at the time point 401 in a state where there is a difference between the parameter current value 411 and the slider value 412. At this time, the slider operation is not reflected in the parameter current value during the predetermined time 421, which is the same as the example of FIG. In FIG. 4, the parameter current value 413 is gradually brought closer to the slider value 414 from the time point 402 after the predetermined time 421 has elapsed to reach the target value 415. Note that the method of gradually approaching the parameter current value to the slider value from the time point 402 is arbitrary. For example, the parameter current value may be changed by a predetermined value Mstep every Nmsec so as to gradually approach the slider value. According to this method, noise can be reduced and an intuitive operation can be performed.

図5(a)は、CPU101が実行するメインルーチンのフローチャートを示す。ステップ501でイベント検出を行い、検出されたらステップ502から503に進んで、当該イベントを対応するタスクに発行する。例えば、外部パネル上のスライダーが操作されたときには、スライダー操作イベントが検出され、該スライダー操作イベントが図5(b)のスライダータスクに送られる。他のイベントの場合も同様に、当該イベントがそのイベントに応じたタスクに送られ当該イベントに応じた処理が実行されるが、それについては説明を省略する。   FIG. 5A shows a flowchart of a main routine executed by the CPU 101. In step 501, an event is detected, and if detected, the process proceeds from step 502 to 503, and the event is issued to the corresponding task. For example, when a slider on the external panel is operated, a slider operation event is detected, and the slider operation event is sent to the slider task in FIG. Similarly, in the case of other events, the event is sent to a task corresponding to the event and processing corresponding to the event is executed, but the description thereof is omitted.

図5(b)は、スライダー操作イベントに応じて実行されるスライダータスクのフローチャートを示す。ステップ511で激変緩和タスク(図5(c)で後述する)が実行中か判別(後述するフラグを参照して判別する)し、実行中ならそのまま終了する。実行中でなければ、ステップ512でフラグをオンし、ステップ513で激変緩和タスクを起動する。上記フラグは、オンで激変緩和タスクが実行中であることを示し、オフで実行中でないことを示す。   FIG. 5B shows a flowchart of a slider task executed in response to a slider operation event. In step 511, it is determined whether the drastic change mitigation task (which will be described later with reference to FIG. 5C) is being executed (determined with reference to a flag which will be described later). If it is not being executed, the flag is turned on in step 512, and the sudden change mitigation task is activated in step 513. The above flag indicates that the sudden change mitigation task is being executed when it is on, and indicates that it is not being executed when it is off.

図5(c)は、ステップ513で起動される激変緩和タスクのフローチャートを示す。ステップ521で所定時間(300msec)だけ待つ。この待ち時間は、図3,4で説明した321,421に相当する。次に、ステップ522でオフセットの範囲内か判別する。これは、この時点のスライダー値とパラメータ現在値とを比較して、スライダー値がパラメータ現在値±3%の範囲に入っているかを判別するものである(パラメータ現在値がスライダー値±3%の範囲内かを判別してもよい)。スライダー値がこのオフセット範囲内にあるときは、スライダー値がパラメータ現在値に一致していると見なし、ステップ524に進む。オフセット範囲外のときは、ステップ523で、スライダー値に応じてパラメータ値をセットし、ステップ524に進む。ステップ524でフラグをオフして終了する。   FIG. 5C shows a flowchart of the sudden change mitigation task activated in step 513. In step 521, a predetermined time (300 msec) is waited. This waiting time corresponds to 321 and 421 described with reference to FIGS. Next, in step 522, it is determined whether the offset is within the range. This is to determine whether the slider value is within the range of the parameter current value ± 3% by comparing the slider value at this time and the parameter current value (the parameter current value is the slider value ± 3%). You may determine if it is within range). If the slider value is within this offset range, it is considered that the slider value matches the parameter current value, and the process proceeds to step 524. If it is outside the offset range, the parameter value is set in accordance with the slider value in step 523 and the process proceeds to step 524. In step 524, the flag is turned off and the process ends.

上記図5の処理により、図3の方式の動作が実現される。図5の処理は、いわゆるイベントドリブンの処理になっており、CPU101側の処理とスライダーその他の操作子側の処理とを切り離している。すなわち、スライダー(その他の操作子も同様)が操作開始され操作し続けられている間は、スライダー側から操作イベントが繰り返し発行される。CPU101側はそれらの操作イベントを全て受け取り、その操作イベントに応じた処理を実行するだけである。スライダー操作イベントでは、ステップ521で300msec待つ処理があり、その間にスライダー操作イベントが発行されてくる場合もあるが、その場合はステップ511で激変緩和タスク実行中と判別されて処理が終了するので問題はない。なお、上記のフローから分かるように、画面切り替えやシーンリコールなどでスライダーとパラメータとの割り当てが変更されただけでは、図5(c)の処理は実行されない。ユーザーが意図的にスライダーを操作した際、その操作開始の時点で起動するようになっている。   The operation of the method of FIG. 3 is realized by the processing of FIG. The process in FIG. 5 is a so-called event-driven process, and the process on the CPU 101 side is separated from the process on the slider and other control elements. That is, as long as the slider (same for other controls) is started and continuously operated, an operation event is repeatedly issued from the slider side. The CPU 101 only receives all of these operation events and simply executes a process according to the operation event. In the slider operation event, there is a process of waiting for 300 msec in step 521, and a slider operation event may be issued during that time. In this case, it is determined in step 511 that the sudden change mitigation task is being executed, and the process ends. There is no. As can be seen from the above flow, the processing of FIG. 5C is not executed only by changing the assignment of the slider and the parameter by screen switching or scene recall. When the user deliberately operates the slider, it starts when the operation starts.

図5では外部パネル上のスライダーの操作イベントを検出した場合で説明したが、本実施形態では、擬似操作子操作コマンドに応じた操作子操作イベントを検出した場合も同様の処理である。   Although FIG. 5 illustrates the case where the operation event of the slider on the external panel is detected, in the present embodiment, the same processing is performed when an operation element operation event corresponding to the pseudo operation element operation command is detected.

図6は、本実施形態の電子楽器において通信I/F109が実行するコマンド受信ルーチンのフローチャートである。図2で説明したように、外部ネットワーク130や外部機器110から通信コマンドを受信したとき、図6の処理が実行される。ステップ601で受信した通信コマンドのコマンド解析を行い、ステップ602で擬似操作子操作コマンドか判別し、そうであるときはステップ603でその擬似操作子操作コマンドに応じた操作子操作イベントをCPU101に通知する。擬似操作子操作コマンドでないときは、ステップ604でそのコマンドに応じた処理を実行する。   FIG. 6 is a flowchart of a command reception routine executed by the communication I / F 109 in the electronic musical instrument of this embodiment. As described with reference to FIG. 2, when a communication command is received from the external network 130 or the external device 110, the processing of FIG. 6 is executed. The command analysis of the communication command received in step 601 is performed. In step 602, it is determined whether it is a pseudo-manipulator operation command. If so, the CPU 101 is notified of the manipulator operation event corresponding to the pseudo-manipulator operation command in step 603. To do. If the command is not a pseudo-manipulator operation command, processing corresponding to the command is executed in step 604.

ステップ603でCPU101に通知されたイベントは、図5(a)のステップ501で検出され、当該イベントに応じたタスクに渡されて当該イベントに応じた処理が実行される。ステップ603でCPU101に通知された擬似操作子操作コマンドに応じた操作子操作イベントは、実際の外部パネル上の操作子が操作された場合に発行される操作子操作イベントと同じであるので、CPU101は、操作子が実際に操作された場合と外部から通信コマンドで入力した場合とを何ら区別することなく、何れの場合も指示された操作子操作コマンドに応じた処理を実行する。   The event notified to the CPU 101 in step 603 is detected in step 501 in FIG. 5A, is passed to a task corresponding to the event, and processing corresponding to the event is executed. The operation element operation event corresponding to the pseudo operation element operation command notified to the CPU 101 in step 603 is the same as the operation element operation event issued when the operation element on the actual external panel is operated. In any case, the process according to the instructed manipulator operation command is executed without distinguishing between the case where the manipulator is actually operated and the case where the manipulator is input from the outside with a communication command.

これにより、外部から通信コマンドを使用して、本実施形態の電子楽器に対して、あたかも操作子そのものが操作されたような状態をリモートコントロールできる。この機能は、例えば楽器教室で先生の機器から生徒の機器をコントロールしたい場合(インターネットなどを介してコントロールする場合も同様)などで有効である。従来技術でも電子楽器の各種のパラメータを外部から設定変更することは可能であったが、そのためにはパラメータとそのパラメータの値を指定したコマンドで行うしかなかった。そのように直接的にパラメータ値が変更されるのでは、生徒は、どのような操作をすればそのパラメータ値の変更が行われるか分からないことが多い。本実施形態では、先生の機器から生徒の機器に擬似操作子操作コマンドを送信することで、パラメータが変わるだけでなく、あたかも生徒側の機器の操作子を操作したような挙動を生徒に見せることができる。機器/操作子/対象パラメータによっては、操作子を操作しても即座にパラメータ値に反映されず、一定時間おいてからパラメータ値が変更されるものがある(例えば上述のスライダー)。本実施形態における外部からのコントロールは、このようなシチュエーションで有効に働く。   As a result, it is possible to remotely control the electronic musical instrument of this embodiment as if the operator itself was operated using a communication command from the outside. This function is effective, for example, when it is desired to control the student's device from the teacher's device in the musical instrument classroom (the same applies when controlling the student's device via the Internet or the like). Even in the prior art, various parameters of the electronic musical instrument can be set and changed from the outside. However, for that purpose, the parameter and the value of the parameter can only be set by a command. If the parameter value is directly changed in this way, the student often does not know what operation the parameter value will be changed. In this embodiment, by sending a pseudo controller operation command from the teacher's device to the student's device, not only the parameters are changed, but the behavior as if the operator of the student's device was operated is shown to the student. Can do. Some devices / operators / target parameters are not immediately reflected in the parameter value even if the operator is operated, and the parameter value is changed after a certain time (for example, the slider described above). The control from the outside in this embodiment works effectively in such a situation.

次に、上記実施形態の第1の変形例を説明する。第1の変形例は、上述した図4の方式である。これを実現するためには、図5のステップ523で、パラメータ現在値にスライダー値をセットする際、所定時間をかけて徐々に値を近づけるようにすればよい。なお、徐々に値を近づけるときには、ステップ522と同じ方式で、パラメータ現在値がスライダー値±3%の範囲内かを判別し、その範囲内に入ったら値を近づける処理を終了させればよい。   Next, a first modification of the above embodiment will be described. The first modification is the above-described method of FIG. In order to realize this, when setting the slider value to the parameter current value in step 523 of FIG. 5, it is sufficient to gradually bring the value close to each other over a predetermined time. When the values are gradually approached, it is determined in the same manner as in step 522 whether the current parameter value is within the range of the slider value ± 3%, and if it falls within that range, the process of approaching the value may be terminated.

上記実施形態及び第1の変形例(図3,4の方式)では、従来の操作に慣れているユーザーにも違和感なく受け入れてもらえる。また、特にストロークの小さい(短い)スライダーでは、わずかな位置の違いが大きなパラメータ値の差になることがある。このような場合でも、本願アルゴリズムを用いることで、パラメータ値の意図しない急激な変化を抑えることができる。   In the above-described embodiment and the first modification (the method shown in FIGS. 3 and 4), a user who is accustomed to the conventional operation can accept it without a sense of incongruity. In particular, for a slider with a small (short) stroke, a slight position difference may result in a large parameter value difference. Even in such a case, an unintended rapid change in the parameter value can be suppressed by using the algorithm of the present application.

上記実施形態の第2の変形例を説明する。図7は、図5(c)の激変緩和タスクルーチンの変形例を示す。ステップ521を、図7の手順に置き換えるものである。ステップ701でその時点のスライダー値を取得し、ステップ702で該スライダー値がパラメータ現在値をまたいだか判別する。またいでいなければステップ703で本ルーチンに入ってから300msec経ったか判別し、経っていなければステップ701に戻る。300msec経っていたら、ステップ522に進む。   A second modification of the above embodiment will be described. FIG. 7 shows a modification of the sudden change mitigation task routine of FIG. Step 521 is replaced with the procedure of FIG. In step 701, the slider value at that time is acquired, and in step 702, it is determined whether the slider value straddles the current parameter value. If not, it is determined in step 703 whether 300 msec has elapsed since entering this routine, and if not, the process returns to step 701. If 300 msec has elapsed, the process proceeds to step 522.

本第2の変形例により、スライダー操作が開始されてから300msecが経過する前でも、スライダー値がパラメータ現在値をまたげば、パラメータ値の設定へと進むようにできる。これにより、俊敏に操作した場合は300msec待つことなくパラメータ設定が実行されるようになるので、操作に対して機器が迅速に反応したような印象を与えることができる。   According to the second modification, even if 300 msec has elapsed since the start of the slider operation, if the slider value crosses the parameter current value, the parameter value can be set. As a result, when agile operation is performed, parameter setting is executed without waiting for 300 msec, so that an impression can be given as if the device responded quickly to the operation.

上記実施形態の第3の変形例を説明する。第3の変形例は、外部から擬似操作子操作コマンドを入力した場合の処理の改良である。上記実施形態では、スライダーはムービング機能を持たないものとしたが、第3の変形例ではムービング機能を持つものとする。また、図5で説明した処理に加えて、検出したイベントが擬似操作子操作コマンドに応じた操作子操作イベントであるときには、図8の操作子位置変更タスクを実行するものとする。図8では、ステップ801で、ムービング機能を利用して該当の操作子の位置を変更する。これにより、外部からの擬似操作子操作コマンドに応じて、操作子が実際に動く様子までコントロールできる。   A third modification of the above embodiment will be described. The third modification is an improvement in processing when a pseudo operator operation command is input from the outside. In the above embodiment, the slider does not have a moving function, but in the third modified example, it has a moving function. Further, in addition to the processing described with reference to FIG. 5, when the detected event is an operator operation event corresponding to the pseudo operator operation command, the operator position change task of FIG. 8 is executed. In FIG. 8, in step 801, the position of the corresponding operation element is changed using the moving function. As a result, it is possible to control the state in which the manipulator actually moves in accordance with a pseudo manipulator operation command from the outside.

なお、図3,4の方式では、パラメータの分解能に応じて、スライダー操作開始後の何もしない所定時間を決めるようにしてもよい。例えば、パラメータの分解能が0〜127であるとき(要するに当該パラメータの採りうる値が、0,1,…,127の何れかということ)には上記所定時間を300msecとし、分解能が0〜31であるときには上記所定時間を200msecとする、などである。また、パラメータの種類毎に、この所定時間を決めるようにしてもよい。   In the methods of FIGS. 3 and 4, a predetermined period of time after the start of the slider operation may be determined according to the parameter resolution. For example, when the resolution of a parameter is 0 to 127 (in short, the value that the parameter can take is any of 0, 1,..., 127), the predetermined time is 300 msec, and the resolution is 0 to 31. In some cases, the predetermined time is set to 200 msec. The predetermined time may be determined for each parameter type.

図4の方式では、パラメータの分解能に応じて、徐々に変更する度合いを決めるようにしてもよい。また、パラメータ毎に、(1)図9の方式、(2)図10の方式、(3)図3の方式、(4)図4の方式、を選択できるようにしてもよい。これらの4方式のうちの任意の複数の方式を選択できるようにしてもよい。   In the method of FIG. 4, the degree of gradual change may be determined according to the parameter resolution. For each parameter, (1) the method shown in FIG. 9, (2) the method shown in FIG. 10, (3) the method shown in FIG. 3, and (4) the method shown in FIG. 4 may be selected. Any of these four methods may be selected.

前記操作子は、図2のように外部パネル上にハードウエアとして備えられたものを例に説明したが、画面上に操作子の画像を表示し、ポインティングデバイスで操作するような操作子も含むものとする。   The operation element is described as an example of hardware provided on the external panel as shown in FIG. 2, but includes an operation element that displays an image of the operation element on the screen and is operated by a pointing device. Shall be.

本発明の実施の形態に係る電子楽器のハードウェア構成例を示す図The figure which shows the hardware structural example of the electronic musical instrument which concerns on embodiment of this invention 電子楽器の外部パネルイメージ及び外部から通信コマンドを受信する様子を示すイメージ図Image diagram showing external panel image of electronic musical instrument and communication command received from outside スライダー値とパラメータ現在値の変化の例(その1)を示す図A diagram showing an example (part 1) of changes in slider value and current parameter value スライダー値とパラメータ現在値の変化の例(その2)を示す図Diagram showing an example (part 2) of changes in slider value and parameter current value CPUが実行する各ルーチンのフローチャートFlow chart of each routine executed by CPU 通信I/Fが実行するコマンド受信ルーチンのフローチャートFlowchart of command reception routine executed by communication I / F 激変緩和タスクルーチンの変形例を示す図Figure showing a variation of the sudden change mitigation task routine 操作子位置変更タスクのフローチャートFlowchart of operator position change task 従来技術でのスライダー値とパラメータ現在値の変化の例(その1)を示す図The figure which shows the example (the 1) of a change of the slider value and parameter current value in a prior art 従来技術でのスライダー値とパラメータ現在値の変化の例(その2)を示す図The figure which shows the example (the 2) of a change of the slider value and parameter current value in a prior art

符号の説明Explanation of symbols

100…電子楽器、101…CPU(中央処理装置)、102…RAM(ランダムアクセスメモリ)、103…ROM(リードオンリメモリ)、104…音源、105…操作子、106…検出回路、107…表示部、108…表示回路、109…通信インターフェース(I/F)、110…外部機器、111…増幅回路、112…スピーカー。   DESCRIPTION OF SYMBOLS 100 ... Electronic musical instrument, 101 ... CPU (central processing unit), 102 ... RAM (random access memory), 103 ... ROM (read-only memory), 104 ... Sound source, 105 ... Operating element, 106 ... Detection circuit, 107 ... Display part 108, display circuit, 109, communication interface (I / F), 110, external device, 111, amplification circuit, 112, speaker.

Claims (3)

各種パラメータ値を設定/変更する操作子を備えた電子楽器であって、
通信コマンドを受信する手段と、
受信した通信コマンドが、擬似的に操作子が操作されたかのようなイベントを発生させる擬似操作子操作コマンドであるか否か判定する手段と、
受信した通信コマンドが擬似操作子操作コマンドであった場合は、該擬似操作子操作コマンドに応じた操作子操作イベントを発生する手段と、
前記操作子操作イベントの発生から所定時間待機し、該所定時間の後に、パラメータの分解能に応じた度合いで、パラメータ現在値を前記操作子操作イベントに基づく目標値まで徐々に変化させ、前記操作子操作イベントに基づく目標値をパラメータ現在値として設定する手段と
を備えることを特徴とする電子楽器。
An electronic musical instrument having an operator for setting / changing various parameter values,
Means for receiving a communication command;
Means for determining whether or not the received communication command is a pseudo-manipulator operation command that generates an event as if the manipulator was pseudo-operated;
If the received communication command is a pseudo-manipulator operation command, means for generating an operator operation event according to the pseudo-manipulator operation command;
Wait for a predetermined time from the occurrence of the operation element operation event , and after the predetermined time, gradually change the parameter current value to a target value based on the operation element operation event at a degree according to the resolution of the parameter, An electronic musical instrument comprising: means for setting a target value based on an operation event as a parameter current value .
請求項1に記載の電子楽器において、
前記擬似操作子操作コマンドが、ムービング機能付きのスライダーの操作を指示するコマンドであり、その擬似操作子操作コマンドに応じて、前記ムービング機能付きのスライダーの位置を設定することを特徴とする電子楽器。
The electronic musical instrument according to claim 1,
The pseudo-operator operation command is a command for instructing an operation of a slider with a moving function, and the position of the slider with a moving function is set according to the pseudo-operator operation command .
コンピュータを、各種パラメータ値を設定/変更する操作子を備えた電子楽器として動作させるプログラムであって、
前記コンピュータを、
通信コマンドを受信する手段と、
受信した通信コマンドが、擬似的に操作子が操作されたかのようなイベントを発生させる擬似操作子操作コマンドであるか否か判定する手段と、
受信した通信コマンドが擬似操作子操作コマンドであった場合は、該擬似操作子操作コマンドに応じた操作子操作イベントを発生する手段と、
前記操作子操作イベントの発生から所定時間待機し、該所定時間の後に、パラメータの分解能に応じた度合いで、パラメータ現在値を前記操作子操作イベントに基づく目標値まで徐々に変化させ、前記操作子操作イベントに基づく目標値をパラメータ現在値として設定する手段と
を備える電子楽器として機能させることを特徴とするプログラム。
A program for operating a computer as an electronic musical instrument having an operator for setting / changing various parameter values,
The computer,
Means for receiving a communication command;
Means for determining whether or not the received communication command is a pseudo-manipulator operation command that generates an event as if the manipulator was pseudo-operated;
If the received communication command is a pseudo-manipulator operation command, means for generating an operator operation event according to the pseudo-manipulator operation command;
Wait for a predetermined time from the occurrence of the operation element operation event , and after the predetermined time, gradually change the parameter current value to a target value based on the operation element operation event at a degree according to the resolution of the parameter, A program that functions as an electronic musical instrument comprising: means for setting a target value based on an operation event as a parameter current value .
JP2008061313A 2008-03-11 2008-03-11 Electronic musical instrument and its program Expired - Fee Related JP4985487B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008061313A JP4985487B2 (en) 2008-03-11 2008-03-11 Electronic musical instrument and its program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008061313A JP4985487B2 (en) 2008-03-11 2008-03-11 Electronic musical instrument and its program

Publications (2)

Publication Number Publication Date
JP2009217026A JP2009217026A (en) 2009-09-24
JP4985487B2 true JP4985487B2 (en) 2012-07-25

Family

ID=41188942

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008061313A Expired - Fee Related JP4985487B2 (en) 2008-03-11 2008-03-11 Electronic musical instrument and its program

Country Status (1)

Country Link
JP (1) JP4985487B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0648978Y2 (en) * 1989-03-20 1994-12-12 パイオニア株式会社 Volume control device
JP3525825B2 (en) * 1999-09-28 2004-05-10 ヤマハ株式会社 Mobile radio terminal with remote control function for electronic musical instruments
JP3882788B2 (en) * 2003-06-13 2007-02-21 ヤマハ株式会社 Application software remote control method and electronic keyboard instrument
JP4232685B2 (en) * 2004-05-07 2009-03-04 ヤマハ株式会社 Mixer device control method, mixer device, and program
JP2007025408A (en) * 2005-07-20 2007-02-01 Yamaha Corp Electronic musical instrument
JP4904868B2 (en) * 2006-03-20 2012-03-28 ヤマハ株式会社 Remote control device, acoustic device to be controlled, and remote control program
JP4572874B2 (en) * 2006-06-08 2010-11-04 ヤマハ株式会社 Electronic musical instrument main body apparatus and program thereof

Also Published As

Publication number Publication date
JP2009217026A (en) 2009-09-24

Similar Documents

Publication Publication Date Title
JP6214651B2 (en) Microphone array controller
JP4626453B2 (en) Parameter setting method
JP5214968B2 (en) Object discovery method and system, device control method and system, interface, and pointing device
DE102008020340B4 (en) Gesture-controlled MIDI instrument
JP5217526B2 (en) Amplifier control device, program and amplifier system
JP4985487B2 (en) Electronic musical instrument and its program
CN113556596A (en) Shortcut key control method, device, device and storage medium
JP4941673B2 (en) Electronic musical instrument and its program
JP5407965B2 (en) Acoustic adjustment console
JP2011103527A (en) Control apparatus
JP4210952B2 (en) Digital mixer
JP4958012B2 (en) Electronic musical instruments
JP4214777B2 (en) Help display device and program
US20220291747A1 (en) Input system, presentation device, and control method
WO2018043676A1 (en) Parameter setting device and method in signal processing device
JP5267274B2 (en) Electronic music equipment
JP2009180763A (en) Electronic musical device and program
JP4765494B2 (en) Acoustic signal processing device
JP4210951B2 (en) Digital mixer
JP4614146B2 (en) Mixer system
JP4471102B2 (en) Mixer and program
JP5077816B2 (en) Acoustic equipment with touch panel
KR101053568B1 (en) How to operate PAS button
CN118939117A (en) Operation feedback method and display device
JP2009239379A (en) Parameter access method for acoustic device, and acoustic device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110119

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110920

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111031

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111230

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

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

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

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees