JP2012032681A - Performance device and electronic musical instrument - Google Patents
Performance device and electronic musical instrument Download PDFInfo
- Publication number
- JP2012032681A JP2012032681A JP2010173267A JP2010173267A JP2012032681A JP 2012032681 A JP2012032681 A JP 2012032681A JP 2010173267 A JP2010173267 A JP 2010173267A JP 2010173267 A JP2010173267 A JP 2010173267A JP 2012032681 A JP2012032681 A JP 2012032681A
- Authority
- JP
- Japan
- Prior art keywords
- value
- predetermined
- volume level
- sound
- acceleration sensor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、演奏者が手で保持して、振ることにより楽音を発生させる演奏装置および電子楽器に関する。 The present invention relates to a performance apparatus and an electronic musical instrument that generate music by holding and shaking by a player.
従来、スティック状の部材にセンサを設け、演奏者が部材を手で保持して振ることで、センサが、当該部材の動きを検出し、楽音を発音するように構成された電子楽器が提案されている。特に、この電子楽器では、スティック状の部材は、ドラムのスティックや太鼓の撥のような形状を備え、演奏者があたかもドラムや太鼓をたたくような動作に応じて、打楽器音が発声されるようになっている。 Conventionally, there has been proposed an electronic musical instrument in which a sensor is provided on a stick-shaped member, and the player detects the movement of the member by holding the member by hand and shakes the member to generate a musical sound. ing. In particular, in this electronic musical instrument, the stick-shaped member has a shape like a drum stick or a drum repellent, so that a percussion instrument sound is uttered in response to the player's action of hitting the drum or drum. It has become.
たとえば、特許文献1には、スティック状の部材に加速度センサを設け、加速度センサからの出力(加速度センサ値)が、所定の閾値に達した後、所定時間が経過すると、楽音を発音するように構成された演奏装置が提案されている。 For example, in Patent Document 1, an acceleration sensor is provided on a stick-shaped member, and when a predetermined time elapses after the output from the acceleration sensor (acceleration sensor value) reaches a predetermined threshold value, a musical sound is generated. A configured performance device has been proposed.
特許文献1に開示された演奏装置では、スティック状の部材の加速度センサ値に基づいて楽音の発音が制御されるだけであり、演奏者の所望のような楽音の変化を実現するのが容易ではないという問題点があった。 In the performance device disclosed in Patent Document 1, only the sound generation of the musical tone is controlled based on the acceleration sensor value of the stick-shaped member, and it is not easy to realize the musical tone change as desired by the performer. There was no problem.
特許文献2には、複数の音色を発音可能として、地磁気センサを用いて、スティック状の部材が向けられる方向にしたがって、複数の音色のうち、何れかを発音する装置が提案されている。特許文献2に提案された装置では、演奏開始時、つまり、スティック状の部材を振るときの方向で、楽音を変化させる。特許文献2に開示された装置では、演奏開始時、つまり、スティック状の部材を振る時点で変化させる楽音は決まってしまう。 Patent Document 2 proposes an apparatus that can generate a plurality of timbres, and uses a geomagnetic sensor to generate one of a plurality of timbres according to the direction in which the stick-shaped member is directed. In the device proposed in Patent Document 2, the musical tone is changed at the start of performance, that is, in the direction in which the stick-shaped member is swung. In the apparatus disclosed in Patent Document 2, the musical sound to be changed is determined at the start of the performance, that is, at the time when the stick-shaped member is swung.
本発明は、スティック状の部材を振っている一定期間の動作で、演奏者による所望の楽音の変化が実現できる演奏装置および電子楽器を提供することを目的とする。 It is an object of the present invention to provide a performance device and an electronic musical instrument that can realize a desired change in musical tone by a performer with an operation for a certain period of time while waving a stick-shaped member.
本発明の目的は、演奏者が手で保持するための長手方向に延びる保持部材と、
前記保持部材内に配置された加速度センサと、
前記保持部材の前記長手方向の軸まわりの回転に伴う角速度を検出する角速度センサと、
所定の楽音を発音する楽音発生手段に対して発音の指示を与える制御手段と、を備え、
前記制御手段が、前記加速度センサ値に基づき取得した発音タイミングにて前記楽音発生手段に対して発音の指示を与える発音指示手段と、
前記角速度センサ値の変化に基づき前記軸まわりの回転角を算出し、前記加速度センサ値が上昇して所定の第1の値に達し、その後、下降して所定の第2の値に達するまで期間における、前記軸まわりの回転角であってその絶対値が最大値を示す所定値を検出する第1の回転角算出手段と、
前記所定値に基づき、前記発音すべき楽音の音量レベルを算出して、当該算出された音量レベルを前記発音指示手段に与える音量レベル算出手段と、を有することを特徴とする演奏装置により達成される。
An object of the present invention is to provide a holding member extending in a longitudinal direction for a player to hold by hand,
An acceleration sensor disposed in the holding member;
An angular velocity sensor for detecting an angular velocity associated with the rotation of the holding member around the longitudinal axis;
Control means for giving a sound generation instruction to a music sound generating means for generating a predetermined music sound,
A sounding instruction means for giving a sounding instruction to the music sound generating means at a sounding timing acquired based on the acceleration sensor value;
A rotation angle around the axis is calculated based on the change in the angular velocity sensor value, and the period until the acceleration sensor value increases to reach a predetermined first value and then decreases to reach a predetermined second value A first rotation angle calculating means for detecting a predetermined value which is a rotation angle around the axis and whose absolute value indicates a maximum value;
Based on the predetermined value, it is achieved by a performance device comprising: a sound volume level calculating means for calculating a sound volume level of the musical sound to be sounded and giving the calculated sound volume level to the sound generation instruction means. The
また、本発明の目的は、演奏者が手で保持するための長手方向に延びる保持部材と、
前記保持部材内に配置された加速度センサと、
前記保持部材の向けられた方向にしたがった直交する3つの軸のそれぞれの磁気センサ値を検出する3軸磁気センサと、
所定の楽音を発音する楽音発生手段に対して発音の指示を与える制御手段と、を備え、
前記制御手段が、前記加速度センサ値に基づき取得した発音タイミングにて前記楽音発生手段に対して発音の指示を与える発音指示手段と、
前記磁気センサ値の変化に基づき前記軸まわりの回転角を算出し、前記加速度センサ値が上昇して所定の第1の値に達し、その後、下降して所定の第2の値に達するまでの期間における、前記軸まわりの回転角であって、その絶対値が最大値を示す所定値を検出する第2の回転角算出手段と、
前記所定値に基づき、前記発音すべき楽音の音量レベルを算出して、当該算出された音量レベルを前記発音指示手段に与える音量レベル算出手段と、を有することを特徴とする演奏装置により達成される。
Further, the object of the present invention is to provide a holding member extending in the longitudinal direction for the performer to hold by hand,
An acceleration sensor disposed in the holding member;
A triaxial magnetic sensor for detecting magnetic sensor values of three orthogonal axes according to a direction in which the holding member is directed;
Control means for giving a sound generation instruction to a music sound generating means for generating a predetermined music sound,
A sounding instruction means for giving a sounding instruction to the music sound generating means at a sounding timing acquired based on the acceleration sensor value;
A rotation angle around the axis is calculated based on the change in the magnetic sensor value, and the acceleration sensor value increases to reach a predetermined first value, and then decreases to reach a predetermined second value. Second rotation angle calculation means for detecting a predetermined value, which is a rotation angle around the axis in a period and whose absolute value indicates a maximum value;
Based on the predetermined value, it is achieved by a performance device comprising: a sound volume level calculating means for calculating a sound volume level of the musical sound to be sounded and giving the calculated sound volume level to the sound generation instruction means. The
好ましい実施態様においては、前記音量レベル算出手段は、前記所定値に基づき、前記軸まわりの回転が、一方の方向への回転を示す場合に、前記音量レベルを所定の基準値から増大させ、前記軸まわりの回転が、他方の方向への回転を示す場合に、前記音量レベルを前記所定の基準値から減少させる。 In a preferred embodiment, the sound volume level calculating means increases the sound volume level from a predetermined reference value when rotation about the axis indicates rotation in one direction based on the predetermined value, and When the rotation around the axis indicates rotation in the other direction, the volume level is decreased from the predetermined reference value.
より好ましい実施態様においては、前記音量レベル算出手段は、前記軸まわりの回転が前記一方の方向への回転を示す場合に、前記所定値の絶対値が大きくなるのに従って、前記所定の基準値からの増加量が大きくなるように音量レベルを算出し、前記軸まわりの回転が前記他方の方向への回転を示す場合に、前記所定値の絶対値が大きくなるのに従って、前記所定の基準値からの減少量が大きくなるように音量レベルを算出する。 In a more preferred embodiment, the sound volume level calculating means is configured so that the predetermined reference value increases from the predetermined reference value as the absolute value of the predetermined value increases when rotation about the axis indicates rotation in the one direction. The volume level is calculated so that the amount of increase increases, and when the rotation around the axis indicates rotation in the other direction, the absolute value of the predetermined value increases from the predetermined reference value. The sound volume level is calculated so that the amount of decrease in the sound volume increases.
別の好ましい実施態様においては、前記発音指示手段は、前記加速度センサ値が、所定の第1の閾値を超えて、その後、前記第1の閾値より小さい第2の閾値より小さくなったタイミングを発音タイミングとして、前記楽音発生手段に対して発音の指示を与える。 In another preferred embodiment, the sound generation instructing unit generates a sound when the acceleration sensor value exceeds a predetermined first threshold and then becomes smaller than a second threshold smaller than the first threshold. As timing, an instruction for sound generation is given to the musical sound generating means.
より好ましい実施態様においては、前記所定の第1の値が前記第1の閾値であり、前記所定の第2の値が前記第2の閾値である。 In a more preferred embodiment, the predetermined first value is the first threshold value, and the predetermined second value is the second threshold value.
また、本発明の目的は、上記演奏装置と、
前記楽音発生手段を備えた楽器部と、を備え、
前記演奏装置と、前記楽器部とが、それぞれ、通信手段を備えたことを特徴とする電子楽器により達成される。
Another object of the present invention is to provide the above performance device,
A musical instrument unit comprising the musical sound generating means,
The performance device and the musical instrument unit are each achieved by an electronic musical instrument comprising a communication means.
本発明によれば、スティック状の部材を振っている一定期間の動作で、演奏者による所望の楽音の変化が実現できる演奏装置および電子楽器を提供することが可能となる。 ADVANTAGE OF THE INVENTION According to this invention, it becomes possible to provide the performance apparatus and electronic musical instrument which can implement | achieve the change of the desired musical tone by a player by the operation | movement of the fixed period which is shaking the stick-shaped member.
以下、添付図面を参照して、本発明の実施の形態について説明する。図1は、本発明の第1の実施の形態にかかる電子楽器の構成を示すブロックダイヤグラムである。図1に示すように、本実施の形態にかかる電子楽器10は、演奏者が手に持って振るための、長手方向に延びるスティック状の演奏装置本体11を有している。また、電子楽器10は、楽音を発生するための楽器部19を備え、楽器部19は、CPU12、インタフェース(I/F)13、ROM14、RAM15、表示部16、入力部17およびサウンドシステム18を有する。演奏装置本体11は、後述するように、演奏者が保持する根元側と反対側である先端側の付近に加速度センサ23と、角速度センサ22とを有する。
Embodiments of the present invention will be described below with reference to the accompanying drawings. FIG. 1 is a block diagram showing the configuration of the electronic musical instrument according to the first embodiment of the present invention. As shown in FIG. 1, an electronic
楽器部19のI/F13は、演奏装置本体11からのデータ(たとえばノートオンイベント)を受け入れて、RAM15に格納するとともに、CPU12にデータの受け入れを通知する。本実施の形態においては、たとえば、演奏装置本体11の根元側(図2の符号211参照)の端部に赤外線通信装置24が設けられ、I/F13にも赤外線通信装置33が設けられている。したがって、楽器部19は、演奏装置本体11の赤外線通信装置24が発した赤外線を、I/F13の赤外線通信装置33が受信することで、演奏装置本体11からのデータを受信することができる。
The I /
CPU12は、電子楽器10全体の制御、特に、電子楽器の楽器部19の制御、入力部17を構成するキースイッチ(図示せず)の操作の検出、I/F13を介して受信したノートオンイベントに基づく楽音の発生など、種々の処理を実行する。
The
ROM14は、電子楽器10全体の制御、特に、電子楽器の楽器部19の制御、入力部17を構成するキースイッチ(図示せず)の操作の検出、I/F13を介して受信したノートオンイベントに基づく楽音の発生など、種々の処理プログラムを格納する。また、ROM14は、種々の音色の波形データ、特に、バスドラム、ハイハット、スネア、シンバルなど打楽器の波形データを格納する波形データエリアを含む。無論、打楽器の波形データに限定されず、ROM22には、フルート、サックス、トランペットなどの管楽器、ピアノなどの鍵盤楽器、ギターなどの弦楽器の音色の波形データが格納されていても良い。
The
RAM15は、ROM14から読み出されたプログラムや、処理の過程で生じたデータやパラメータを記憶する。処理の過程で生じたデータには、入力部17のスイッチの操作状態、I/F13を介して受信したノートイベントや、楽音の発音状態などが含まれる。
The
表示部16は、たとえば、液晶表示装置(図示せず)を有し、選択された音色などを表示することができる。また、入力部17は、スイッチ(図示せず)を有し、音色の指定などを指示することができる。
The
サウンドシステム18は、音源部31、オーディオ回路32およびスピーカ35を備える。音源部31は、CPU12からの指示にしたがって、ROM15の波形データエリアから波形データを読み出して、楽音データを生成して出力する。オーディオ回路32は、音源部31から出力された楽音データをアナログ信号に変換し、変換されたアナログ信号を増幅してスピーカ35に出力する。これによりスピーカ35から楽音が出力される。
The
図2は、本実施の形態にかかる演奏装置本体の構成を示すブロックダイヤグラムである。図2に示すように、演奏装置本体11は、演奏者が保持する根元側(符号211参照)の反対側である先端側(符号212参照)に、角速度センサ22および加速度センサ23を有する。角速度センサ22の位置は、先端側に限定されず、根元側に配置されていても良い。角速度センサ22は、たとえば、ジャイロスコープを備えたセンサであり、演奏装置本体11の長手方向の軸(図2の符号200参照)を中心とした回転(符号201参照)における角速度を検出することができる。加速度センサ23は、たとえば、静電容量型或いはピエゾ抵抗素子型のセンサであり、生じた加速度を示すデータ値を出力することができる。本実施の形態にかかる加速度センサ23は、たとえば、演奏装置本体11の軸(:長手方向の軸:符号200参照)方向の加速度センサ値を出力する。
FIG. 2 is a block diagram showing the configuration of the performance device main body according to the present embodiment. As shown in FIG. 2, the performance device
演奏者が実際にドラムを演奏するときには、スティックの一端(根元側211)を手に持って、スティックに手首などを中心とした回転運動を生じさせる。したがって、この実施の形態では、回転運動に伴う遠心力を検知すべく、演奏装置本体11の軸200方向の加速度センサ値を取得する。無論、加速度センサとして3軸センサを用いても良い。また、本実施の形態においては、角速度センサ22により、演奏装置本体11の軸200まわりの変位(回転角)が取得される。
When the performer actually plays the drum, the player holds one end (base side 211) of the stick in his hand and causes the stick to rotate about the wrist or the like. Therefore, in this embodiment, an acceleration sensor value in the direction of the
図3は、本実施の形態にかかる演奏装置本体の外観を概略的に示す図である。図3では、根元側(符号211参照)を奥に、先端側(符号212参照)を手前となるように演奏装置本体11が描かれている。図3に示すように、先端側211から見て左回転(反時計まわりの回転:矢印A参照)のときの角速度ωを正としている。その一方、先端側211からみて右回転(時計まわりの回転:矢印B参照)のときの角速度ωを負としている。以下、演奏装置本体11の軸まわりの回転方向は、演奏装置本体11の先端側1102から見たときの回転方向を指す。上記定義は、本明細書における軸まわりの回転方向を明確にすることを意図している。同様に、演奏装置本体11の軸200まわりの変位(回転角)θについても、先端側211から見て左回転(反時計まわりの回転:矢印A参照)のときの変位θを正、右回転(矢印B)のときの変位θを負としている。本実施の形態においては、後述するように、軸200周りの変位(回転角)について、その絶対値が最大値を示す所定値θmaxが正であるときに音量レベルが増大し、上記所定値θmaxが負であるときに音量レベルが減少する。
FIG. 3 is a diagram schematically showing the appearance of the performance device main body according to the present embodiment. In FIG. 3, the performance device
また、演奏装置本体11は、CPU21、赤外線通信装置24、ROM25、RAM26、インタフェース(I/F)27および入力部28を有する。CPU21は、演奏装置本体11における加速度センサ値および角速度センサ値の取得、加速度センサ値にしたがった楽音の発音タイミングの検出、ノートオンイベントの生成、角速度センサ値にしたがった音量レベル修正値の算出、I/F27および赤外線通信装置24を介したノートオンイベントの送信制御などの処理を実行する。
The performance device
ROM25には、演奏装置本体11における加速度センサ値および角速度センサ値の取得、加速度センサ値にしたがった楽音の発音タイミングの検出、ノートオンイベントの生成、角速度センサ値にしたがった音量レベル修正値の算出、I/F27および赤外線通信装置24を介したノートオンイベントの送信制御などの処理プログラムが格納される。RAM26には、センサ値など、処理において取得され或いは生成された値が格納される。I/F27は、CPU21からの指示にしたがって赤外線通信装置24にデータを出力する。また、入力部28は、スイッチ(図示せず)を有する。
The
図4は、本実施の形態にかかる演奏装置本体において実行される処理の例を示すフローチャートである。図4に示すように、演奏装置本体11のCPU21は、RAM26のデータのクリアなどを含むイニシャライズ処理を実行する(ステップ401)。イニシャライズ処理(ステップ401)が終了すると、CPU21は、加速度センサ23のセンサ値(加速度センサ値)を取得して、RAM26に格納する(ステップ402)。上述したように、本実施の形態においては、加速度センサ値として、演奏装置本体11の軸200方向のセンサ値が採用される。また、CPU21は、角速度センサ22のセンサ値(角速度センサ値ω)を取得して、RAM26に格納する(ステップ403)。
FIG. 4 is a flowchart showing an example of processing executed in the performance apparatus main body according to the present embodiment. As shown in FIG. 4, the
次いで、CPU21は、発音タイミング検出処理を実行する(ステップ404)。図5は、本実施の形態にかかる発音タイミング検出処理の例を示すフローチャートである。図5に示すように、CPU21は、RAM26に格納された加速度センサ値および角速度センサ値ωを読み出す(ステップ501)。次いで、CPU21は、加速度センサ値が、所定の第1の閾値αより大きいかを判断する(ステップ502)。ステップ502でYesと判断された場合には、CPU21は、RAM26中の加速度フラグが「0」であるかを判断する(ステップ503)。ステップ503でYesと判断された場合には、CPU21は、RAM26中の加速度フラグに「1」をセットする(ステップ504)。また、CPU21は、回転角θを「0」に初期化する(ステップ505)。
Next, the
ステップ503でNoの場合、或いは、ステップ505の後、CPU21は、角速度センサ値ωに基づいて軸200まわりの変位Δθを算出する(ステップ506)。この変位Δθは、たとえば、前回の変位Δθの算出時刻と今回の変位Δθの算出時刻との時間差Δtと、角速度センサ値ωとを用いて算出することが可能である。CPU21は、ステップ505で算出された変位Δθを、回転角θに加算する(ステップ507)。前述したように、演奏装置本体11を先端側211から見て左回転(反時計まわりの回転:図2の矢印A参照)のときにΔθは正、右回転(時計回りの回転:図2の矢印B参照)のときのΔθは負となる。
In the case of No in
また、CPU21は、算出された回転角θの絶対値が、RAM26に格納された、回転角の所定値θmaxの絶対値より大きいかを判断する(ステップ508)。なお、この所定値θmaxは、その絶対値が最大である値を示し、負の値となる場合もある。ステップ508でYesと判断された場合には、CPU21は、RAM26中のθmaxとして、θを格納する(ステップ509)。すなわち、θmaxが、その絶対値が最大値を示す回転角に書き換えられる。
Further, the
ステップ502でNoと判断された場合には、CPU21は、RAM26中の加速度フラグが「1」であるかを判断する(ステップ510)。ステップ510でNoと判断された場合には、発音タイミング検出処理が終了される。ステップ510でYesと判断された場合には、CPU21は、加速度センサ値が所定の第2の閾値βより小さいかを判断する(ステップ511)。ステップ511でNoと判断された場合には、ステップ506に進む。ステップ511でYesと判断された場合には、CPU21は、ノートオンイベント生成処理を実行する(ステップ512)。
If it is determined No in
図6は、本実施の形態にかかるノートオンイベント生成処理の例を示すフローチャートである。図6に示すノートオンイベント生成処理により、ノートオンイベントが楽器部19に送信され、その後、楽器部19において発音処理(図7のステップ704)が実行されることにより、楽音データが生成され、スピーカ35から楽音が発音される。
FIG. 6 is a flowchart showing an example of note-on event generation processing according to the present embodiment. The note-on event is transmitted to the
ここに、ノートオンイベント生成処理の説明に先立ち、本実施の形態にかかる電子楽器10における発音タイミングについて説明する。図8は、演奏装置本体の加速度センサにより検出される加速度センサ値の例を模式的に示したグラフである。演奏者が、演奏装置本体11の一端(根元側)を持って振ることは、手首、ひじ、肩などを支点とした回転運動を演奏装置本体11に生じさせる。この回転運動に伴って、特に、遠心力により、演奏装置本体11の軸方向に加速度が生じる。
Here, prior to the description of the note-on event generation process, the sound generation timing in the electronic
演奏者が、演奏装置本体11を振ると、加速度センサ値は、次第に大きくなる(図8の曲線800における符号801参照)。演奏者がスティック状の演奏装置本体11を振るときに、一般には、ドラムを打つ動作と同様に動作する。したがって、演奏者は、仮想的に設定されたドラムの面にスティックを打ちつける寸前に、スティック(つまりスティック状の演奏装置本体11)の動作をとめていく。したがって、ある時刻から加速度センサ値は徐々に減少する(符号802参照)。演奏者は、仮想的なドラムの面にスティックを打ちつけた瞬間に楽音が発生することを想定している。したがって、演奏者が想定するタイミングで楽音を発生できるのが望ましい。
When the performer swings the performance apparatus
本発明では、演奏者が仮想的なドラムの面にスティックを打ちつける瞬間或いはそのわずかに前に楽音を発生すべく、以下に述べるようなロジックを採用する。発音タイミングは、加速度センサ値が減少して、「0」よりわずかに大きい第2の閾値βより小さくなったときとする。しかしながら、演奏者が予期していない動作により、加速度センサ値が振動して、上述した第2の閾値β前後に達する可能性もある。したがって、予期しない振動を排除するために、いったん、加速度センサ値が上昇して、所定の第1の閾値α(αはβより十分に大きい)を越えることを条件としている。すなわち、加速度センサ値がいったん第1の閾値αより大きくなり(時刻tα参照)、その後、加速度センサ値が減少して、第2の閾値βより小さくなったとき(時刻tβ参照)、時刻tβを発音タイミングとしている。上述したような発音タイミングが到来したと判断されると、演奏装置本体11においてノートオンイベントが生成され、楽器部10に送信される。また、これに応答して、楽器部19において、発音処理および音源処理が実行されて、楽音が発生する。
In the present invention, the logic described below is employed in order to generate a musical sound at the moment or slightly before the player strikes the virtual drum surface. The sound generation timing is when the acceleration sensor value decreases and becomes smaller than the second threshold value β slightly larger than “0”. However, there is a possibility that the acceleration sensor value vibrates and reaches around the above-described second threshold value β due to an operation unexpected by the performer. Therefore, in order to eliminate unexpected vibrations, it is a condition that the acceleration sensor value once rises and exceeds a predetermined first threshold value α (α is sufficiently larger than β). That is, (see time t alpha) acceleration sensor value becomes temporarily larger than the first threshold value alpha, then, with the acceleration sensor value is reduced, when it becomes less than the second threshold value beta (see time t beta), time t β is used as the sound generation timing. When it is determined that the sound generation timing as described above has arrived, a note-on event is generated in the
また、本実施の形態においては、加速度センサ値が上昇して第1の閾値αより大きくなったタイミング(時刻tα)と、加速度センサ値が下降して第2の閾値βより小さくなったタイミング(時刻tβ)との期間Tにおいて、演奏装置本体11の軸200まわりの回転角θについて、その絶対値が最大値を示すθmaxに基づいて、発音すべき楽音の音量レベルが調整される。
In the present embodiment, the timing when the acceleration sensor value increases and becomes larger than the first threshold value α (time t α ), and the timing when the acceleration sensor value decreases and becomes smaller than the second threshold value β. During the period T with (time tβ), the volume level of the musical sound to be generated is adjusted based on θmax, the absolute value of which is the maximum value of the rotation angle θ around the
図6に示すように、ノートオンイベント生成処理においては、CPU21は、RAM26に格納された音量レベルの初期値を取得する(ステップ601)。次いで、CPU21は、CPU21は、RAM26に格納された回転角の所定値θmaxに基づき、音量レベル修正値ΔLevを算出する(ステップ602)。たとえば、ΔLevは、以下のように求めることができる。
ΔLev=b・θmax (ただし、bは所定の正の係数)
As shown in FIG. 6, in the note-on event generation process, the
ΔLev = b · θmax (where b is a predetermined positive coefficient)
所定値θmaxが正であれば、ΔLevも正となり、所定値θmaxが負であれば、ΔLevも負となる。CPU21は、音量レベルの初期値に上記音量レベル修正値ΔLevを加算し、加算された値を音量レベルVelとする(ステップ603)。なお、音量レベルの初期値+ΔLev≧Vmax(Vmax:音量レベルの最大値)のときには、音量レベルVelはVmaxとなる。これにより、音量レベルVelは、演奏者による演奏装置本体11の軸200まわりの回転を考慮して値が増減されたものとなる。
If the predetermined value θmax is positive, ΔLev is also positive, and if the predetermined value θmax is negative, ΔLev is also negative. The
CPU21は、算出された音量レベル(ベロシティ)、所定の音色を示す情報を含むノートオンイベントを生成する(ステップ604)。なお、ノートオンイベント中に、音高を示す情報として所定値を含めても良い。
The
CPU21は、生成されたノートオンイベントをI/F27に出力する(ステップ605)。I/F27は、赤外線通信装置24にノートオンイベントを赤外線信号として送信させる。赤外線通信装置24からの赤外線信号は楽器部19の赤外線通信装置33に受信される。その後、CPU21は、RAM26中の加速度フラグを「0」にリセットする(ステップ606)。
The
発音タイミング検出処理(ステップ404)が終了すると、CPU21は、パラメータ通信処理を実行する(ステップ405)。パラメータ通信処理(ステップ405)については、後述する楽器部19におけるパラメータ通信処理(図7のステップ705)とともに説明する。
When the sound generation timing detection process (step 404) ends, the
次に、本実施の形態にかかる楽器部において実行される処理について説明する。図7は、本実施の形態にかかる楽器部において実行される処理の例を示すフローチャートである。楽器部19のCPU12は、RAM15のデータのクリア、表示部16の画面上に表示される画像のクリア、音源部31のクリアなどを含むイニシャライズ処理を実行する(ステップ701)。次いで、CPU12は、スイッチ処理を実行する(ステップ702)。スイッチ処理においては、たとえば、以下の処理を実行する。CPU12は、入力部17のスイッチ操作にしたがって、発音すべき楽音の音色の設定などを実行する。CPU12は、指定された音色の情報をRAM15に格納する。
Next, processing executed in the musical instrument unit according to the present embodiment will be described. FIG. 7 is a flowchart showing an example of processing executed in the musical instrument unit according to the present embodiment. The
次いで、CPU12は、I/F13が、新たにイベントを受信しているかを判断する(ステップ703)。ステップ703でYesと判断された場合には、CPU12は発音処理を実行する(ステップ704)。発音処理においては、CPU21は、I/F13が受信し、RAM26に格納したノートオンイベントを、音源部31に与えて発音を指示する。
Next, the
音源部31は、ノートオンイベントを受信すると、ROM14から、ノートオンイベントに示される音色にしたがった波形データを読み出す。また、波形データ読み出しの際の速度はノートオンイベントに含まれる音高に従う。次いで、音源部31は、ノートオンイベントに含まれる音量レベルと波形データとを乗じて、所定の音量レベルの楽音波形データを生成する。生成された楽音波形データは、オーディオ回路32に出力される。これにより、所定の音量の楽音がスピーカ35から発生される。
When receiving the note-on event, the
発音処理(ステップ704)の後、CPU12は、パラメータ通信処理を実行する(ステップ705)。パラメータ通信処理においては、CPU12の指示によって、たとえば、スイッチ処理(ステップ702)で設定された発音すべき楽音の音色が、I/F13を介して赤外線通信装置33から、演奏装置本体11に送信される。また、演奏装置本体11において、赤外線通信装置24が、データを受信すると、CPU21は、I/F27を介してデータを受け入れ、RAM26に格納する(図4のステップ405)。
After the sound generation process (step 704), the
パラメータ通信処理(ステップ705)が終了すると、CPU12は、その他の処理、たとえば、表示部16の画面上に表示される画像の更新などを実行する(ステップ706)。
When the parameter communication process (step 705) ends, the
本実施の形態においては、角速度センサ値ωを用いて、演奏装置本体11の振り始めに相当する所定の第1のタイミングから、降り終わりに相当する所定の第2のタイミングに至るまでの期間Tにおいて、演奏装置本体11の軸まわりの回転角について、その絶対値が最大値を示す所定値θmaxが取得される。演奏装置本体11のCPU21は、所定値θmaxにしたがって、回転の向きおよび大きさを算出し、これに基づき、音量レベルの増減および増減の修正値を算出して、音量レベルを修正する。本実施の形態によれば、演奏者の手首の捻りにしたがった、演奏者にとって所望の音量レベルの楽音を発生させることが可能となる。
In the present embodiment, using the angular velocity sensor value ω, a period T from a predetermined first timing corresponding to the start of swinging of the
また、本実施の形態においては、CPU21は、演奏装置本体11の軸200まわりの回転角について、その絶対値が最大値を示す所定値θmaxが、一方の方向(図2の符号A)の回転を示す場合には、音量レベルを増大し、他方の方向(図2の符号B)の回転を示す場合には、音量レベルを減少する。これにより、演奏者は、手首の捻りの方向によって所望の音量の増減を実現できる。
Further, in the present embodiment, the
さらに、本実施の形態においては、CPU21は、所定値θmaxが一方の回転への方向を示す場合に、その絶対値が大きくなるのに従って、所定の基準値からの増加量が大きくなるように音量レベルを算出し、所定値θmaxが前記他方の回転への方向を示す場合に、その絶対値が大きくなるのに従って、前記所定の基準値からの減少量が大きくなるように音量レベルを算出する。これにより、演奏者は手首の捻りの量にしたがって音量の増減のレベルを所望のように調整することが可能となる。
Further, in the present embodiment, when the predetermined value θmax indicates a direction toward one rotation, the
さらに、本実施の形態においては、CPU21は、加速度センサ23の加速度センサ値が、所定の第1の閾値αを超えて、その後、前記第1の閾値より小さい第2の閾値βより小さくなったタイミングを発音タイミングとして、ノートオンイベントを生成し、楽器部19に対して発音の指示を与える。したがって、演奏者が仮想的なドラムの面にスティックを打ちつけた瞬間に楽音が発生させることが可能となる。
Further, in the present embodiment, the
また、本実施の形態においては、上記所定の第1の値が第1の閾値であり、上記第2の値が前記第2の閾値として、加速度センサ値が上昇して、第1の閾値αに達してから、その後に下降し、第2の閾値βに達するまでの期間における、変位(回転角)の絶対値が最大値を示す所定値θmaxに基づいて、音量を修正している。したがって、演奏者による振り始めからその停止までの期間における演奏者による手首の捻りに基づく音量レベルの変化を実現することが可能となる。 In the present embodiment, the predetermined first value is the first threshold value, the second value is the second threshold value, and the acceleration sensor value is increased so that the first threshold value α The volume is corrected on the basis of a predetermined value θmax in which the absolute value of the displacement (rotation angle) indicates the maximum value in a period from when the value reaches the second threshold β until the second threshold value β is reached. Therefore, it is possible to realize a change in volume level based on wrist twisting by the performer during the period from the start of swinging by the performer to the stop thereof.
次に、本発明の第2の実施の形態について説明する。第1の実施の形態においては、演奏装置本体11に、角速度センサ22を配置し、角速度センサ22の角速度センサ値ωに基づいて、演奏装置本体11の軸まわりの回転角が取得されている。第2の実施の形態においては、演奏装置本体11に、角速度センサ22の代わりに、3軸(3次元)の磁気センサが配置され、磁気センサ値に基づき、演奏装置本体11の軸まわりの回転角が取得される。
Next, a second embodiment of the present invention will be described. In the first embodiment, the
図2において、3軸の磁気センサは、角速度センサ22と同様の位置に配置され得る。無論、磁気センサの配置位置は、演奏装置本体11の先端側212ではなく、根元側211であっても良い。3軸の磁気センサは、たとえば、演奏装置本体11の軸200の方向をY軸、Y軸と垂直で、かつ、演奏装置本体11の磁気センサが取り付けられた回路基板と平行なX軸、X軸およびY軸と垂直なZ軸のそれぞれについて、磁気センサ値(X、Y、Z)を取得することが可能である。
In FIG. 2, the triaxial magnetic sensor can be arranged at the same position as the
図9は、第2の実施の形態にかかる演奏装置本体において実行される処理の例を示すフローチャートである。図9において、ステップ901、902は、図4のステップ401、402に対応する。ステップ902が終了すると、CPU21は、磁気センサから、3軸磁気センサ値(X、Y、Z)を取得して、RAM26に格納する(ステップ903)。ステップ903が終了すると、CPU21は、発音タイミング検出処理を実行する(ステップ903)。図10は、第2の実施の形態にかかる発音タイミング検出処理の例を示すフローチャートである。
FIG. 9 is a flowchart illustrating an example of processing executed in the performance device main body according to the second embodiment. 9,
図10に示すように、CPU21は、CPU21は、RAM26に格納された加速度センサ値、および、3軸磁気センサ値を読み出す(ステップ1001)。次いで、CPU21は、加速度センサ値が、所定の第1の閾値αより大きいかを判断する(ステップ1002)。ステップ1002でYesと判断された場合には、CPU21は、RAM26中の加速度フラグが「0」であるかを判断する(ステップ1003)。ステップ503でYesと判断された場合には、CPU21は、RAM26中の加速度フラグに「1」をセットする(ステップ1004)。また、CPU21は、磁気センサから、3軸磁気センサ値の初期値(3軸磁気センサ初期値(X0、Y0、Z0))を取得して、RAM26に格納する(ステップ1005)。
As shown in FIG. 10, the
次いで、CPU21は、3軸磁気センサ値(X,Y,Z)および3軸磁気センサ初期値(X0,Y0,Z0)に基づき、演奏装置本体11の軸200まわりの回転角θを算出する(ステップ1006)。CPU21は、算出された回転角θの絶対値が、RAM26に格納された、回転角の所定値θmaxの絶対値より大きいかを判断する(ステップ1007)。ステップ1007でYesと判断された場合には、CPU21は、RAM26中のθmaxとして、θを格納する(ステップ1008)。すなわち、θmaxが、その絶対値が最大値となる回転角に書き換えられる。
Next, the
ステップ1002でYesと判断された場合には、CPU21は、RAM26中の加速度フラグが「1」であるかを判断する(ステップ1009)。ステップ1009でNoと判断された場合には、発音タイミング検出処理が終了される。ステップ1009でYesと判断された場合には、CPU21は、加速度センサ値が所定の第2の閾値βより小さいかを判断する(ステップ1010)。ステップ1007でNoと判断された場合にはステップ1006に進む。
If it is determined Yes in
ステップ1010でYesと判断された場合には、CPU21は、ノートオンイベント生成処理を実行する(ステップ1011)。ノートオンイベント生成処理は、第1の実施の形態のもの(図6)と同様である。ノートオンイベント生成処理により、音量レベル等を含むノートオンイベントが生成されて、楽器部19に送信される。
When it is determined Yes in
第2の実施の形態においては、3軸の磁気センサの磁気センサ値を用いて、演奏装置本体11の振り始めに相当する所定の第1のタイミングから、降り終わりに相当する所定の第2のタイミングに至るまでの期間Tにおいて、演奏装置本体11の軸まわりの回転角について、その絶対値の最大値を示す所定値θmaxが取得される。演奏装置本体11のCPU21は、所定値θmaxにしたがって、回転の向きおよび大きさを算出し、これらに基づき、音量レベルの増減および増減の修正値を算出して、音量レベルを修正する。本実施の形態によれば、演奏者の手首の捻りにしたがった、演奏者にとって所望の音量レベルの楽音を発生させることが可能となる。
In the second embodiment, using the magnetic sensor value of the three-axis magnetic sensor, from a predetermined first timing corresponding to the start of swinging of the performance apparatus
本発明は、以上の実施の形態に限定されることなく、特許請求の範囲に記載された発明の範囲内で、種々の変更が可能であり、それらも本発明の範囲内に包含されるものであることは言うまでもない。 The present invention is not limited to the above embodiments, and various modifications can be made within the scope of the invention described in the claims, and these are also included in the scope of the present invention. Needless to say.
前記実施の形態においては、演奏装置本体11のCPU21は、演奏者が演奏装置本体11を振ることによる加速度センサ値を検出して、加速度センサ値に基づき発音タイミングを検出する。その後、演奏装置本体11のCPU21は、上記発音タイミングで、ノートオンイベントを生成して、I/F27および赤外線通信装置24を介して楽器部19に送信している。その一方、楽器部19においては、ノートオンイベントを受信すると、CPU12が、受信したノートオンイベントを音源部31に出力して楽音を発生させている。上記構成は、楽器部19が、MIDIボードなどが取り付けられたパーソナルコンピュータやゲーム機など、楽音生成の専用機ではないときに好適である。
In the embodiment, the
しかしながら、演奏装置本体11における処理、および、楽器部19における処理の分担は、上記実施の形態のものに限定されない。
However, the processing in the musical instrument
たとえば、演奏装置本体11においては、加速度センサ値、および、角速度センサ値或いは3軸磁気センサ値を取得して、楽器部19に送信するように構成しても良い。この場合には、発音タイミング検出処理(図5)、ノートオンイベント生成処理(図6)は、楽器部19において実行される。上述した構成は、楽器部19が、楽音生成の専用機である電子楽器について好適である。
For example, the performance device
また、本実施の形態においては、演奏装置本体11と楽器部19との間は、赤外線通信装置24、33を用いて赤外線信号にてデータが通信されているが、これに限定されるものではない。たとえば、打楽器本体11と楽器部19とは他の無線通信でデータ通信してもよいし、ワイヤケーブルによって有線でデータ通信するように構成しても良い。
In the present embodiment, the performance device
さらに、前記実施の形態においては、演奏装置本体11のCPU21は、加速度センサ値が、所定の第1の閾値αを超えて、その後、前記第1の閾値より小さい第2の閾値βより小さくなったタイミングを発音タイミングとして、楽器部19に対して発音を指示している。しかしながら、発音タイミングは上述したものに限定されず、加速度センサ値が最大値になったとき、或いは、最大値になってから所定の時間が経過したときを、発音タイミングとしても良い。また、前記実施の形態において、その回転角の絶対値が最大値を示す回転角を検出するための期間を規定する2つのタイミングも上述したものに限定されず、加速度センサによる他の加速度センサ値を採用しても良い。
Further, in the embodiment, the
また、前記実施の形態において、音量レベル修正値ΔLevを算出するために、回転角の所定値θmaxに所定の正の係数を乗じている。しかしながら、これに限定されるものではなく、RAM26に、所定値θmaxの範囲と、音量レベル修正値ΔLevとを対応付けた音量修正テーブルを格納し、CPU21が、所定値θmaxに基づいて対応するΔLevを取得するように構成しても良い。
In the above embodiment, in order to calculate the volume level correction value ΔLev, the predetermined value θmax of the rotation angle is multiplied by a predetermined positive coefficient. However, the present invention is not limited to this, and the
10 電子楽器
11 演奏装置本体
12 CPU
13 I/F
14 ROM
15 RAM
16 表示部
17 入力部
18 サウンドシステム
19 楽器部
21 CPU
22 角速度センサ
23 加速度センサ
24 赤外線通信装置
25 ROM
26 RAM
27 I/F
31 音源部
32 オーディオ回路
33 赤外線通信装置
10
13 I / F
14 ROM
15 RAM
16 Display Unit 17
22
26 RAM
27 I / F
31
Claims (7)
前記保持部材内に配置された加速度センサと、
前記保持部材の前記長手方向の軸まわりの回転に伴う角速度を検出する角速度センサと、
所定の楽音を発音する楽音発生手段に対して発音の指示を与える制御手段と、を備え、
前記制御手段が、前記加速度センサ値に基づき取得した発音タイミングにて前記楽音発生手段に対して発音の指示を与える発音指示手段と、
前記角速度センサ値の変化に基づき前記軸まわりの回転角を算出し、前記加速度センサ値が上昇して所定の第1の値に達し、その後、下降して所定の第2の値に達するまで期間における、前記軸まわりの回転角であって、その絶対値が最大値を示す所定値を検出する第1の回転角算出手段と、
前記所定値に基づき、前記発音すべき楽音の音量レベルを算出して、当該算出された音量レベルを前記発音指示手段に与える音量レベル算出手段と、を有することを特徴とする演奏装置。 A longitudinally extending retaining member for the performer to hold by hand;
An acceleration sensor disposed in the holding member;
An angular velocity sensor for detecting an angular velocity associated with the rotation of the holding member around the longitudinal axis;
Control means for giving a sound generation instruction to a music sound generating means for generating a predetermined music sound,
A sounding instruction means for giving a sounding instruction to the music sound generating means at a sounding timing acquired based on the acceleration sensor value;
A rotation angle around the axis is calculated based on the change in the angular velocity sensor value, and the period until the acceleration sensor value increases to reach a predetermined first value and then decreases to reach a predetermined second value A first rotation angle calculating means for detecting a predetermined value which is a rotation angle around the axis and whose absolute value indicates a maximum value;
A performance apparatus comprising: a volume level calculating unit that calculates a volume level of the musical sound to be generated based on the predetermined value and gives the calculated volume level to the sound generation instruction unit.
前記保持部材内に配置された加速度センサと、
前記保持部材の向けられた方向にしたがった直交する3つの軸のそれぞれの磁気センサ値を検出する3軸磁気センサと、
所定の楽音を発音する楽音発生手段に対して発音の指示を与える制御手段と、を備え、
前記制御手段が、前記加速度センサ値に基づき取得した発音タイミングにて前記楽音発生手段に対して発音の指示を与える発音指示手段と、
前記磁気センサ値の変化に基づき前記軸まわりの回転角を算出し、前記加速度センサ値が上昇して所定の第1の値に達し、その後、下降して所定の第2の値に達するまでの期間における、前記軸まわりの回転角であって、その絶対値が最大値を示す所定値を検出する第2の回転角算出手段と、
前記所定値に基づき、前記発音すべき楽音の音量レベルを算出して、当該算出された音量レベルを前記発音指示手段に与える音量レベル算出手段と、を有することを特徴とする演奏装置。 A longitudinally extending retaining member for the performer to hold by hand;
An acceleration sensor disposed in the holding member;
A triaxial magnetic sensor for detecting magnetic sensor values of three orthogonal axes according to a direction in which the holding member is directed;
Control means for giving a sound generation instruction to a music sound generating means for generating a predetermined music sound,
A sounding instruction means for giving a sounding instruction to the music sound generating means at a sounding timing acquired based on the acceleration sensor value;
A rotation angle around the axis is calculated based on the change in the magnetic sensor value, and the acceleration sensor value increases to reach a predetermined first value, and then decreases to reach a predetermined second value. Second rotation angle calculation means for detecting a predetermined value, which is a rotation angle around the axis in a period and whose absolute value indicates a maximum value;
A performance apparatus comprising: a volume level calculating unit that calculates a volume level of the musical sound to be generated based on the predetermined value and gives the calculated volume level to the sound generation instruction unit.
前記楽音発生手段を備えた楽器部と、を備え、
前記演奏装置と、前記楽器部とが、それぞれ、通信手段を備えたことを特徴とする電子楽器。 The performance device according to any one of claims 1 to 6,
A musical instrument unit comprising the musical sound generating means,
An electronic musical instrument, wherein each of the performance device and the musical instrument unit includes a communication unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010173267A JP2012032681A (en) | 2010-08-02 | 2010-08-02 | Performance device and electronic musical instrument |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010173267A JP2012032681A (en) | 2010-08-02 | 2010-08-02 | Performance device and electronic musical instrument |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2012032681A true JP2012032681A (en) | 2012-02-16 |
Family
ID=45846135
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010173267A Pending JP2012032681A (en) | 2010-08-02 | 2010-08-02 | Performance device and electronic musical instrument |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012032681A (en) |
-
2010
- 2010-08-02 JP JP2010173267A patent/JP2012032681A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5067458B2 (en) | Performance device and electronic musical instrument | |
JP5029732B2 (en) | Performance device and electronic musical instrument | |
JP5712603B2 (en) | Performance device and electronic musical instrument | |
JP5099176B2 (en) | Performance device and electronic musical instrument | |
JP5664581B2 (en) | Musical sound generating apparatus, musical sound generating method and program | |
JP5338794B2 (en) | Performance device and electronic musical instrument | |
US8653350B2 (en) | Performance apparatus and electronic musical instrument | |
JP2013040991A (en) | Operator, operation method, and program | |
JP5088398B2 (en) | Performance device and electronic musical instrument | |
JP5668353B2 (en) | Performance device and electronic musical instrument | |
JP7140083B2 (en) | Electronic wind instrument, control method and program for electronic wind instrument | |
JP2012013725A (en) | Musical performance system and electronic musical instrument | |
JP2012032681A (en) | Performance device and electronic musical instrument | |
JP5029729B2 (en) | Performance device and electronic musical instrument | |
JP6111526B2 (en) | Music generator | |
JP2013044889A (en) | Music player | |
JP2011257509A (en) | Performance device and electronic musical instrument | |
JP6610120B2 (en) | Sound control apparatus, method, program, and electronic musical instrument | |
JP2013044951A (en) | Handler and player | |
JP2011237662A (en) | Electronic musical instrument | |
JP5942627B2 (en) | Performance device, method and program | |
JP6031801B2 (en) | Performance device, method and program | |
JP6031800B2 (en) | Performance device, method and program | |
JP2017016162A (en) | Musical performance device, method, and program | |
JP2013182224A (en) | Musical sound generator |