[go: up one dir, main page]

JP2010015068A - Performance control device and program - Google Patents

Performance control device and program Download PDF

Info

Publication number
JP2010015068A
JP2010015068A JP2008176457A JP2008176457A JP2010015068A JP 2010015068 A JP2010015068 A JP 2010015068A JP 2008176457 A JP2008176457 A JP 2008176457A JP 2008176457 A JP2008176457 A JP 2008176457A JP 2010015068 A JP2010015068 A JP 2010015068A
Authority
JP
Japan
Prior art keywords
trigger signal
condition
acceleration
performance control
data
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.)
Withdrawn
Application number
JP2008176457A
Other languages
Japanese (ja)
Inventor
Yoshiki Nishitani
善樹 西谷
Mikio Kume
幹夫 久米
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 JP2008176457A priority Critical patent/JP2010015068A/en
Publication of JP2010015068A publication Critical patent/JP2010015068A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To prevent incorrect recognition of indication timing from a user without increasing an arithmetic amount, when an operator is operated by a user and performance control timing is determined on the basis of a signal waveform for indicating motion of the operator. <P>SOLUTION: A performance control program executed by a CPU 110 of a performance control device 100, includes an acceleration acquiring section 111, a trigger signal generation section 112 and a performance control section 113. The trigger signal generation section 112 calculates an acceleration data for indicating a size of the acquired acceleration, every time the acceleration of the operator 200 is acquired by the acceleration acquiring section 111, and generates a trigger signal for performance control, and sends it to the performance control section 113, when all trigger signal generation conditions including at least a first condition that a change tendency of the acceleration data changes from rising to falling, and a second condition that an integral value of the acceleration data after the acceleration data starts to rise is larger than a first threshold, are satisfied. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

この発明は、操作子の操作に応じて、演奏制御のためのトリガ信号を発生する演奏制御装置およびプログラムに関する。   The present invention relates to a performance control device and a program for generating a trigger signal for performance control in response to operation of an operator.

加速度センサが固定された操作子を有し、加速度センサによって検出される操作子の加速度の波形に基づいて、音源に対するノートオンイベントの供給タイミングの制御や自動演奏のテンポの制御等の演奏のタイミング制御を行う演奏システムが各種提案されている。この種の演奏システムによれば、ユーザは、特別な訓練を受けなくても、例えば操作子を振る、といった簡単な操作により、好みのタイミングにおいて楽音を鳴らして演奏を行うことができる。なお、この種の演奏システムは例えば特許文献1、2に開示されている。   Performance timing such as control of note-on event supply timing to the sound source and control of tempo of automatic performance based on the acceleration waveform of the operator detected by the acceleration sensor. Various performance systems that perform control have been proposed. According to this type of performance system, the user can perform a performance by playing a musical tone at a desired timing by a simple operation such as waving an operator, for example, without special training. This type of performance system is disclosed in, for example, Patent Documents 1 and 2.

この種の演奏システムにおいて、円滑な演奏を実現するためには、楽音の発音タイミング等を、ユーザが操作子の操作により意のままに制御することができるようにする必要がある。例えば、ユーザに、操作子を振らせて楽音の発音タイミングを指示させるような演奏システムの場合、ユーザは、楽音の発音タイミングとしたいタイミングを意識して操作子の振るが、この意識したタイミングにおいて楽音が発音されないと、演奏はぎこちないものになる。そこで、特許文献1、2に開示の技術を含む多くの従来技術では、加速度センサによって検出される操作子の加速度の波形にピークが生じるのを検出し、このピークの検出タイミングにおいて楽音の発音等の演奏制御を行うようにしている。   In order to realize a smooth performance in this type of performance system, it is necessary for the user to be able to control the tone generation timing of the musical tone at will by the operation of the operation element. For example, in the case of a performance system in which the user is instructed to sound the sound generation timing by oscillating the operation element, the user swings the operation element in consideration of the timing at which the sound generation timing is desired. If the tone is not pronounced, the performance will be awkward. Therefore, in many conventional techniques including the techniques disclosed in Patent Documents 1 and 2, it is detected that a peak occurs in the acceleration waveform of the operating element detected by the acceleration sensor, and a tone is generated at the detection timing of the peak. The performance control is performed.

ここで、ユーザが手で操作子を振るとき、操作子にはユーザの手からの力が与えられ、これが操作子に加速度を生じさせる。ユーザが、ある意識したタイミングにおいて操作子の振りを強めると、このタイミングにおいて、操作子に与えられる加速度も大きくなる。この意味において、操作子の加速度の波形がピークとなるタイミングをユーザの意識したタイミングと解釈することは理に適っている。   Here, when the user shakes the operation element with his / her hand, a force from the user's hand is given to the operation element, which causes the operation element to accelerate. If the user increases the swing of the operation element at a certain conscious timing, the acceleration given to the operation element also increases at this timing. In this sense, it is reasonable to interpret the timing at which the acceleration waveform of the operating element peaks as a timing that the user is aware of.

しかし、ユーザが手で操作子を振るとき、ユーザの手と操作子とからなる力学系では、手から操作子に一方的に力が与えられるのではなく、操作子からの手への反動も発生する。このため、操作子に発生する加速度に反動成分が生じ、ユーザが意識したタイミングの他、それよりも前のタイミングにおいて、操作子の加速度の波形にピークが発生する。従って、何ら策を講じないとすると、指示タイミングの誤認識の問題、すなわち、ユーザが意識したタイミングよりも前に発生する加速度のピークが検出され、このピークの発生タイミングがユーザによって指示された楽音の発音タイミングと誤認識される事態が生じる。
特開2001−195059号公報 特開平8−305355号公報
However, when the user shakes the operation element with his / her hand, in the dynamic system composed of the user's hand and the operation element, the force is not applied unilaterally from the hand to the operation element, and the reaction from the operation element to the hand is also caused. appear. For this reason, a reaction component is generated in the acceleration generated in the operation element, and a peak occurs in the acceleration waveform of the operation element at a timing earlier than the timing recognized by the user. Therefore, if no measures are taken, a problem of misrecognition of the instruction timing, i.e., an acceleration peak that occurs before the timing that the user is aware of, is detected, and a musical sound in which the peak generation timing is instructed by the user is detected. The situation is mistakenly recognized as the pronunciation timing.
JP 2001-195059 A JP-A-8-305355

上記のような指示タイミングの誤認識を減らすために、特許文献2に開示されているように、加速度センサから得られる操作子の加速度(特許文献2では角加速度)の移動平均を求め、さらにこの移動平均の移動平均を求めてダイナミック閾値とし、ダイナミック閾値を越えるピークであることを条件として、加速度のピークの発生タイミングを演奏制御のタイミング(特許文献2では拍のタイミング)として採用することが考えられる。   In order to reduce the misrecognition of the instruction timing as described above, as disclosed in Patent Document 2, the moving average of the acceleration of the operator (angular acceleration in Patent Document 2) obtained from the acceleration sensor is obtained. The moving average of the moving average is obtained as a dynamic threshold, and it is considered that the acceleration peak generation timing is adopted as the performance control timing (beat timing in Patent Document 2) on condition that the peak exceeds the dynamic threshold. It is done.

特許文献2に開示の技術によれば、加速度波形に生じるピークのうち瞬時的であり、かつ、小さなピークはダイナミック閾値に埋もれ、そのようなピークの発生タイミングは、演奏制御のタイミングとして採用されない。従って、指示タイミングの誤認識をある程度は改善することが可能である。   According to the technique disclosed in Patent Document 2, an instantaneous and small peak among peaks generated in an acceleration waveform is buried in a dynamic threshold, and the generation timing of such a peak is not adopted as a performance control timing. Accordingly, it is possible to improve the misrecognition of the instruction timing to some extent.

しかし、反動成分として発生するピークが大きく、ダイナミック閾値を越えるような場合には、依然として指示タイミングの誤認識が発生する。また、特許文献2に開示の技術では、ダイナミック閾値を得るために、加速度の移動平均を演算し、さらにこの移動平均の移動平均を演算する必要がある。このため、加速度センサから加速度のサンプルを取り込む時間間隔である1サンプリング周期内に実行すべき演算の量が多く、リアルタイムな演奏制御に支障が生じないようにするためには、演算のための装置規模を大きくせざるを得ないという問題があった。   However, when the peak generated as a reaction component is large and exceeds the dynamic threshold, erroneous recognition of the instruction timing still occurs. Further, in the technique disclosed in Patent Document 2, it is necessary to calculate a moving average of acceleration and further calculate a moving average of the moving average in order to obtain a dynamic threshold. For this reason, in order to prevent a large amount of calculation to be executed within one sampling period, which is a time interval for taking acceleration samples from the acceleration sensor, so as not to hinder real-time performance control, an apparatus for calculation is used. There was a problem that the scale had to be increased.

この発明は、以上説明した事情に鑑みてなされたものであり、ユーザに操作子を操作させ、この操作子の運動を示す信号の波形に基づいて演奏制御のタイミングを決定する演奏システムにおいて、演算量を増加させることなく、ユーザからの指示タイミングの誤認識を防止する技術的手段を提供することを目的とする。   The present invention has been made in view of the circumstances described above. In a performance system that allows a user to operate an operation element and determines the timing of performance control based on a waveform of a signal indicating the movement of the operation element. It is an object of the present invention to provide a technical means for preventing erroneous recognition of instruction timing from a user without increasing the amount.

この発明は、操作子の運動を示す動作検出信号を取得する動作検出信号取得手段と、前記動作検出信号取得手段により取得された動作検出信号から前記操作子の運動の大きさを示す運動データを算出し、運動データの変化の傾向が上昇傾向から下降傾向に変化した旨の第1の条件と、運動データが上昇し始めた以降の運動データの積分値が第1の閾値を越えている旨の第2の条件とを少なくとも含むトリガ信号発生条件の全てを満たしたときに、演奏制御のためのトリガ信号を発生するトリガ信号発生手段とを具備することを特徴とする演奏制御装置およびコンピュータを前記各手段として機能させるプログラムを提供する。   According to the present invention, motion detection signal acquisition means for acquiring a motion detection signal indicating the motion of the operating element, and motion data indicating the magnitude of the motion of the operating element from the motion detection signal acquired by the motion detection signal acquiring means. The first condition that the tendency of the change of the motion data to be calculated has changed from the upward trend to the downward trend, and that the integrated value of the motion data after the motion data starts to rise exceeds the first threshold A performance control apparatus and a computer comprising trigger signal generation means for generating a trigger signal for performance control when all of the trigger signal generation conditions including at least the second condition are satisfied A program that functions as each of the means is provided.

かかる発明によれば、第1の条件の他に第2の条件がトリガ信号発生条件に加わっているため、操作子を操作するユーザが意識したタイミングよりも前に発生する反動成分による運動データのピークを無視し、ユーザが意識したタイミングのピークを捉えてトリガ信号を発生し、演奏制御を行わせることができる。また、運動データの移動平均などの演算は不要であり、少ない演算量でトリガ信号を発生することができる。   According to this invention, since the second condition is added to the trigger signal generation condition in addition to the first condition, the motion data of the reaction component generated before the timing conscious of the user operating the operating element is recorded. It is possible to perform performance control by ignoring the peak and generating a trigger signal by catching the peak of timing recognized by the user. In addition, calculation such as moving average of motion data is unnecessary, and a trigger signal can be generated with a small amount of calculation.

以下、図面を参照し、この発明の実施の形態を説明する。
図1は、この発明の一実施形態である演奏制御装置100を含む演奏システムの構成を示すブロック図である。この演奏システムは、演奏制御装置100と、複数のバトン型の操作子200と、音源、電子楽器等、演奏のためのハードウェア資源(図示略)とにより構成されている。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of a performance system including a performance control apparatus 100 according to an embodiment of the present invention. The performance system includes a performance control device 100, a plurality of baton-type operating elements 200, and hardware resources (not shown) for performance such as a sound source and an electronic musical instrument.

操作子200は、ユーザが手に持って振る操作子であり、例えば何らかの楽音を発音させるタイミングや、拍としたいタイミング等、演奏制御のタイミングを指示するのに用いられる。操作子200は、加速度センサ201と無線通信部202を内蔵している。ここで、加速度センサ201は、操作子200の運動を示す動作検出信号として、操作子200に働く加速度ベクトルを互いに直交した3軸方向の各成分a、a、aに分解して検出し、これらの各成分を示す各アナログ信号を各々出力する。無線通信部202は、一定時間長(例えば5ms)のサンプリング周期毎に、加速度センサ201から出力される3種類のアナログ信号をサンプリングしてデジタル化することにより、加速度の3軸方向成分a、a、aを示すデータを生成し、このデータと操作子200を特定するIDとを含むパケットを、無線区間を介して演奏制御装置100に送信する。 The operation element 200 is an operation element that the user shakes with his / her hand. The operation element 200 is used, for example, to instruct the timing of performance control such as a timing for generating a certain musical sound or a timing for generating a beat. The operation element 200 includes an acceleration sensor 201 and a wireless communication unit 202. Here, the acceleration sensor 201 detects an acceleration vector acting on the operation element 200 by decomposing the acceleration vector acting on the operation element 200 into three orthogonal components a x , a y , and a z as motion detection signals indicating the movement of the operation element 200. Then, each analog signal indicating each of these components is output. The wireless communication unit 202 samples and digitizes three types of analog signals output from the acceleration sensor 201 at a sampling period of a certain length of time (for example, 5 ms), thereby obtaining a three-axis direction component a x of acceleration, Data indicating a y and a z is generated, and a packet including this data and an ID for specifying the operation element 200 is transmitted to the performance control apparatus 100 via the wireless section.

演奏制御装置100は、演奏システム全体の制御中枢として働くCPU110と、CPU110により実行される各種のプログラムを記憶したROM120と、CPU110によってワークエリアとして使用されるRAM130と、ユーザから各種の指示を受け取るとともにユーザに各種の情報を提供する操作表示部140と、操作子200から無線区間を介してパケットを受信する無線通信部150と、上述した演奏のためのハードウェア資源とCPU110との間の情報交換を中継するI/F(インタフェース)群160とを有する。   The performance control apparatus 100 receives various instructions from the CPU 110 that functions as a control center of the entire performance system, a ROM 120 that stores various programs executed by the CPU 110, a RAM 130 that is used as a work area by the CPU 110, and a user. Information exchange between the CPU 110 and the operation display unit 140 that provides various types of information to the user, the wireless communication unit 150 that receives packets from the operator 200 via the wireless section, and the hardware resources for the performance described above. And an I / F (interface) group 160 for relaying.

RAM130には、複数の操作子200に各々対応付けて加速度記憶エリアが設けられている。無線通信部150は、一定時間長のサンプリング周期(例えば5ms)毎に、全ての操作子200から1個ずつパケットを受信し、各パケットから操作子200のIDと加速度の3軸方向成分a、a、aを示すデータを取り出す。そして、各操作子200の加速度の3軸方向成分a、a、aを示すデータを各操作子200に対応付けられた各加速度記憶エリアに各々書き込む。すなわち、本実施形態では、1サンプリング周期毎に、全ての操作子200から加速度の3軸方向成分a、a、aを示すデータが取得され、これらのデータによりRAM130内の各操作子200に対応した加速度記憶エリアが書き換えられる。 In the RAM 130, an acceleration storage area is provided in association with each of the plurality of operators 200. The wireless communication unit 150 receives one packet from all the operating elements 200 every sampling period (for example, 5 ms) of a certain length of time, and from each packet, the ID and acceleration triaxial components a x of the operating element 200 , A y , a z indicating data are extracted. Then, data indicating the three-axis direction components a x , a y , and a z of the acceleration of each manipulator 200 is written in each acceleration storage area associated with each manipulator 200. That is, in the present embodiment, data indicating the three-axis direction components a x , a y , and a z of acceleration are acquired from all the operators 200 for each sampling period, and each operator in the RAM 130 is acquired by these data. The acceleration storage area corresponding to 200 is rewritten.

本実施形態において、ROM120には各種の演奏制御プログラムが記憶されている。CPU110は、これらの演奏制御プログラムのうち操作表示部140の操作により指示されたものをROM120からRAM130にロードして実行する。また、本実施形態において、CPU110は、操作表示部140の操作に従い、複数種類の演奏制御プログラムをROM120からRAM130にロードし、これらを並列に実行し、複数チャネルの演奏制御を行うことが可能である。図1には、CPU110がnチャネル分の演奏制御プログラムを実行している様子が示されている。CPU110が実行する演奏制御プログラムと、それらの演奏制御プログラムに従って行われる演奏制御のチャネルとの対応付けは、操作表示部140の操作により指定される。   In this embodiment, the ROM 120 stores various performance control programs. The CPU 110 loads those performance control programs instructed by the operation of the operation display unit 140 from the ROM 120 to the RAM 130 and executes them. Further, in the present embodiment, the CPU 110 can load a plurality of types of performance control programs from the ROM 120 to the RAM 130 in accordance with the operation of the operation display unit 140 and execute them in parallel to perform performance control of a plurality of channels. is there. FIG. 1 shows a state in which the CPU 110 is executing a performance control program for n channels. The association between the performance control programs executed by the CPU 110 and the channels of performance control performed according to the performance control programs is designated by the operation of the operation display unit 140.

各チャネルの演奏制御では、RAM130の各加速度記憶エリアのうち予め指定された1つの操作子200に対応した加速度記憶エリア内の加速度の3軸方向成分a、a、aのデータが用いられる。さらに詳述すると、本実施形態では、操作表示部140の操作により、演奏制御のチャネルと操作子200のIDとの対応付けが指定され、各チャネルの演奏制御では、この対応付けに従って、該当するIDの操作子200の加速度成分のデータが処理されるようになっている。 In the performance control of each channel, the data of the three-axis direction components a x , a y , and a z of the acceleration in the acceleration storage area corresponding to one operator 200 specified in advance in each acceleration storage area of the RAM 130 are used. It is done. More specifically, in the present embodiment, an association between the performance control channel and the ID of the operator 200 is designated by the operation of the operation display unit 140, and in the performance control of each channel, this corresponds according to this association. The acceleration component data of the ID operator 200 is processed.

本実施形態において、演奏制御プログラムは、加速度取得部111、トリガ信号発生部112および演奏制御部113の各ルーチンにより構成されており、サンプリング周期毎に1回起動される。加速度取得部111は、操作子200の運動を示す動作検出信号を取得する動作検出信号取得手段としての役割を担っており、演奏制御のチャネルに対応した操作子200の加速度の3軸方向成分a、a、aをRAM130内の該当する加速度記憶エリアから読み出すルーチンである。また、トリガ信号発生部112は、動作検出信号、すなわち、加速度取得部111により読み出される加速度の3軸方向成分a、a、aを処理し、演奏制御のタイミングを指示するトリガ信号を発生し、演奏制御部113に引き渡すルーチンである。そして、演奏制御部113は、トリガ信号発生部112からトリガ信号が引き渡されたとき、予め定められた演奏制御を行うルーチンである。例えば、ある演奏制御プログラムにおける演奏制御部113は、トリガ信号が与えられることにより、所定の音色のリズム音の楽音信号を形成し、I/F群160の中の適切なI/Fを介してサウンドシステム(図示略)にその楽音信号を送り、リズム音を放音させる。また、他の演奏制御プログラムにおける演奏制御部113は、例えばMIDIシーケンサであり、トリガ信号が与えられる毎に、序列化されたMIDIメッセージを例えばRAM130から順次読み出し、I/F群160の中の適切なI/Fを介してMIDI音源(図示略)に送り、楽音を放音させる。 In the present embodiment, the performance control program is composed of routines of the acceleration acquisition unit 111, the trigger signal generation unit 112, and the performance control unit 113, and is started once every sampling period. The acceleration acquisition unit 111 plays a role as an operation detection signal acquisition unit that acquires an operation detection signal indicating the motion of the operation element 200, and the three-axis direction component a of the acceleration of the operation element 200 corresponding to the channel for performance control. In this routine, x , a y and a z are read from the corresponding acceleration storage area in the RAM 130. The trigger signal generator 112 processes a motion detection signal, that is, a trigger signal for processing the three-axis direction components a x , a y and a z of the acceleration read by the acceleration acquisition unit 111 and instructing the timing of performance control. This routine is generated and delivered to the performance control unit 113. The performance controller 113 is a routine that performs predetermined performance control when a trigger signal is delivered from the trigger signal generator 112. For example, the performance control unit 113 in a certain performance control program forms a musical tone signal of a rhythm sound of a predetermined tone color by receiving a trigger signal, and passes through an appropriate I / F in the I / F group 160. The musical tone signal is sent to a sound system (not shown) to emit a rhythm sound. The performance control unit 113 in another performance control program is, for example, a MIDI sequencer. Each time a trigger signal is given, the ordered MIDI messages are sequentially read from, for example, the RAM 130, and the appropriate I / F group 160 is selected. A MIDI sound source (not shown) is sent via a simple I / F to emit a musical sound.

本実施形態の特徴は、演奏制御プログラムにおけるトリガ信号発生部112の処理内容にある。このトリガ信号発生部112は、加速度取得部111により加速度の3軸方向成分a、a、aのデータが取得される毎に、操作子200の運動の大きさを示す運動データとして、取得された加速度の大きさを示す加速度データを算出する。具体的には、本実施形態では、次式に示す加速度の2乗値ASを加速度データとして算出する。
AS=a +a +a ……(1)
The feature of this embodiment is the processing content of the trigger signal generator 112 in the performance control program. The trigger signal generation unit 112 obtains motion data indicating the magnitude of motion of the operator 200 every time the acceleration acquisition unit 111 acquires data of the three-axis direction components a x , a y , and a z of acceleration. Acceleration data indicating the magnitude of the acquired acceleration is calculated. Specifically, in this embodiment, the square value AS of acceleration shown in the following equation is calculated as acceleration data.
AS = a x 2 + a y 2 + a z 2 (1)

そして、この加速度データASを処理し、以下の各条件からなるトリガ信号発生条件の全てが満たされたとき、トリガ信号を発生して演奏制御部113に引き渡す。
第1の条件:加速度データASの変化の傾向が上昇傾向から下降傾向に変化したこと。すなわち、加速度データASの波形にピークが発生したこと。
第2の条件:加速度データASが上昇し始めた以降の加速度データASの積分値が閾値th1(第1の閾値)を越えていること。より具体的には、加速度データASが閾値th2(第2の閾値)以上になった時点以降の加速度データASの積分値が閾値th1を越えていること。
第3の条件:加速度データASの変化の傾向が上昇傾向から下降傾向に変化した場合において(すなわち、加速度データASの波形にピークが発生した場合において)、直前の加速度データASが閾値th3(第3の閾値)より大きいピーク判定領域内の値であること。
第4の条件:前回、トリガ信号を発生してから、少なくとも1回、加速度データASが閾値th2(第4の閾値。本実施形態では第4の閾値は第2の閾値と同じにしてある。)未満になったこと。
第5の条件:前回、トリガ信号を発生してからの経過時間が閾値th5(第5の閾値)を越えていること。
以上が本実施形態による演奏制御装置100の構成の詳細である。
Then, this acceleration data AS is processed, and when all the trigger signal generation conditions including the following conditions are satisfied, a trigger signal is generated and delivered to the performance control unit 113.
First condition: The change tendency of the acceleration data AS has changed from an upward tendency to a downward tendency. That is, a peak has occurred in the waveform of the acceleration data AS.
Second condition: The integrated value of the acceleration data AS after the acceleration data AS starts to rise exceeds the threshold th1 (first threshold). More specifically, the integrated value of the acceleration data AS after the time when the acceleration data AS becomes equal to or higher than the threshold th2 (second threshold) exceeds the threshold th1.
Third condition: When the tendency of change in the acceleration data AS changes from an upward tendency to a downward tendency (that is, when a peak occurs in the waveform of the acceleration data AS), the immediately preceding acceleration data AS is the threshold th3 (first The value in the peak determination region is greater than (threshold of 3).
Fourth condition: The acceleration data AS is the threshold th2 (fourth threshold. In the present embodiment, the fourth threshold is the same as the second threshold at least once since the trigger signal was generated last time. ) Less than.
Fifth condition: the time elapsed since the trigger signal was generated last time exceeds the threshold th5 (fifth threshold).
The above is the details of the configuration of the performance control apparatus 100 according to the present embodiment.

次に、本実施形態の動作を説明する。上述した通り、本実施形態では、1サンプリング周期毎に、全ての操作子200から加速度の3軸方向成分a、a、aを示すデータが取得され、これらのデータによりRAM130内の各操作子200に対応した加速度記憶エリアが書き換えられる。そして、1サンプリング周期毎に、各チャネルの演奏制御プログラムが実行される。各チャネルの演奏制御プログラムの加速度取得部111は、演奏制御のチャネルに対応した操作子200の加速度の3軸方向成分a、a、aをRAM130内の該当する加速度記憶エリアから読み出し、トリガ信号発生部112に引き渡す。図2および図3は、このトリガ信号発生部112の1サンプリング周期分の処理内容を示すフローチャートである。 Next, the operation of this embodiment will be described. As described above, in this embodiment, data indicating the three-axis direction components a x , a y , and a z of acceleration are acquired from all the operating elements 200 for each sampling period, and each data in the RAM 130 is acquired by these data. The acceleration storage area corresponding to the operator 200 is rewritten. Then, the performance control program for each channel is executed for each sampling period. The acceleration acquisition unit 111 of the performance control program for each channel reads the three-axis direction components a x , a y , and a z of the operation element 200 corresponding to the performance control channel from the corresponding acceleration storage area in the RAM 130, Delivered to the trigger signal generator 112. 2 and 3 are flowcharts showing the processing contents for one sampling period of the trigger signal generator 112. FIG.

このトリガ信号発生部112では、次のデータを取り扱う。
加速度データAS:現在のサンプリング周期において取得された加速度の3軸方向成分a、a、aから算出された加速度データである。
前加速度データASold:現在のサンプリング周期の直前のサンプリング周期において算出された加速度データASである。
上昇フラグUP:加速度データASの変化の傾向が上昇傾向である場合は“1”、下降傾向である場合は“0”とされるフラグである。
経過時間データT1:トリガ信号を発生してからの経過時間(サンプリング周期数)を示すデータである。
停止時間データT2:加速度データASが閾値th2未満になってからの経過時間(サンプリング周期数)を示すデータである。
積分値IAS:加速度データASが閾値th2以上になってからの加速度データASの積分値(より厳密には累算値)である。
以上を踏まえて、トリガ信号発生部112の処理内容を説明する。
The trigger signal generator 112 handles the following data.
Acceleration data AS: acceleration data calculated from the three-axis direction components a x , a y , a z of acceleration acquired in the current sampling period.
Previous acceleration data ASold: acceleration data AS calculated in the sampling period immediately before the current sampling period.
Up flag UP: This flag is set to “1” when the change tendency of the acceleration data AS is an upward trend, and is set to “0” when the trend is downward.
Elapsed time data T1: Data indicating the elapsed time (number of sampling cycles) since the trigger signal was generated.
Stop time data T2: Data indicating the elapsed time (sampling period number) after the acceleration data AS becomes less than the threshold value th2.
Integral value IAS: The integral value (more precisely, the accumulated value) of the acceleration data AS after the acceleration data AS becomes equal to or greater than the threshold th2.
Based on the above, the processing content of the trigger signal generator 112 will be described.

トリガ信号発生部112では、まず、ステップS1に進み、加速度取得部111から引き渡された加速度の3軸方向成分a、a、aを用いて前掲式(1)の演算を行い、加速度データASを算出する。 The trigger signal generation unit 112 first proceeds to step S1, performs the calculation of the above equation (1) using the three-axis direction components a x , a y , and a z of the acceleration delivered from the acceleration acquisition unit 111, and the acceleration Data AS is calculated.

次にステップS2に進み、上昇フラグUPが“1”か否かを判断する。この判断結果が「YES」である場合、ステップS3に進み、加速度データASと前加速度データASoldとを比較し、AS<ASoldか否かを判断する。この判断結果が「YES」の場合、加速度データASの変化の傾向が上昇傾向から下降傾向に変わったということであるから、上昇フラグUPを“0”とし(ステップS4)、ステップS5へ進む。これに対し、ステップS3の判断結果が「NO」の場合は、ステップS3からステップS10へ進む。   Next, the process proceeds to step S2, and it is determined whether or not the rising flag UP is “1”. If this determination is “YES”, the flow proceeds to step S 3, where the acceleration data AS and the previous acceleration data ASold are compared to determine whether AS <ASold. If this determination result is “YES”, it means that the tendency of change in the acceleration data AS has changed from an upward tendency to a downward tendency, so the upward flag UP is set to “0” (step S4), and the process proceeds to step S5. On the other hand, when the determination result of step S3 is “NO”, the process proceeds from step S3 to step S10.

ステップS5に進むと、トリガ信号発生条件の全てを満たしているか否かを判断する。ここで、ステップS5に進むためには、ステップS3の判断結果が「YES」であること、すなわち、加速度データASの変化の傾向が上昇傾向から下降傾向に変化したことが必要であるため、ステップS5に進んだときには、トリガ信号発生条件のうち第1の条件は既に満たされている。従って、ステップS5では、残りの第2〜第5の条件が満たされているか否かを判断することとなる。このステップS5の判断結果が「YES」の場合は、ステップS6に進んで、トリガ信号を発生して演奏制御部113に引き渡す。次にステップS7に進んで、経過時間データT1および停止時間データT2の両方を「0」にする。そして、ステップS10へ進む。これに対し、ステップS5の判断結果が「NO」の場合は、ステップS5からステップS10へ進む。   In step S5, it is determined whether all trigger signal generation conditions are satisfied. Here, in order to proceed to step S5, it is necessary that the determination result in step S3 is “YES”, that is, the change tendency of the acceleration data AS needs to be changed from an upward tendency to a downward tendency. When the process proceeds to S5, the first condition among the trigger signal generation conditions is already satisfied. Therefore, in step S5, it is determined whether or not the remaining second to fifth conditions are satisfied. If the determination result in step S5 is “YES”, the process proceeds to step S6, where a trigger signal is generated and delivered to the performance control unit 113. In step S7, both the elapsed time data T1 and the stop time data T2 are set to “0”. Then, the process proceeds to step S10. On the other hand, if the determination result of step S5 is “NO”, the process proceeds from step S5 to step S10.

一方、上昇フラグUPが“0”である場合はステップS2からステップS8に進む。このステップS8では、加速度データASを前加速度データASoldと比較し、AS>ASoldか否かを判断する。この判断結果が「YES」の場合、加速度データASの変化の傾向が下降傾向から上昇傾向に変わったということであるから、上昇フラグUPを“1”とし(ステップS9)、ステップS10へ進む。これに対し、ステップS8の判断結果が「NO」の場合は、ステップS8からステップS10へ進む。   On the other hand, when the rising flag UP is “0”, the process proceeds from step S2 to step S8. In step S8, the acceleration data AS is compared with the previous acceleration data ASold, and it is determined whether AS> ASold. If this determination result is “YES”, it means that the tendency of change in the acceleration data AS has changed from a downward trend to an upward trend, so the upward flag UP is set to “1” (step S9), and the process proceeds to step S10. On the other hand, if the determination result of step S8 is “NO”, the process proceeds from step S8 to step S10.

ステップS10では、加速度データASが閾値th2未満か否か、すなわち、操作子200が停止しているとみなせる停止判定領域内にあるか否かを判断する。この判断結果が「YES」の場合はステップS11に進み、上昇フラグUPを“0”とする。次にステップS12に進み、停止時間データT2が所定の閾値th5未満か否かを判断する。この判断結果が「YES」の場合はステップS13に進み、停止時間データT2を「1」だけ増加させ、ステップS14に進む。これに対し、ステップS12の判断結果が「NO」の場合はステップS17に進み、積分値IASを「0」に初期化し、ステップS14に進む。従って、本実施形態では、トリガ信号が発生して停止時間データT2が「0」に初期化された後(ステップS6、S7)、加速度データASが1回でも閾値th2未満になると、停止時間データT2は「0」より大きくなる(ステップS10、S12、S13)。また、加速度データASが閾値th2未満である状態の継続時間を示す停止時間データT2が閾値th5に達すると、積分値ASが「0」に初期化されることとなる(ステップS10、S12、S17)。   In step S10, it is determined whether or not the acceleration data AS is less than the threshold value th2, that is, whether or not the operating element 200 is within a stop determination area that can be considered to be stopped. If this determination is “YES”, the flow proceeds to step S11, and the rise flag UP is set to “0”. In step S12, it is determined whether the stop time data T2 is less than a predetermined threshold th5. If this determination is “YES”, the flow proceeds to step S13, the stop time data T2 is increased by “1”, and the flow proceeds to step S14. On the other hand, if the determination result in step S12 is “NO”, the process proceeds to step S17, the integral value IAS is initialized to “0”, and the process proceeds to step S14. Therefore, in this embodiment, after the trigger signal is generated and the stop time data T2 is initialized to “0” (steps S6 and S7), when the acceleration data AS becomes less than the threshold th2 even once, the stop time data T2 becomes larger than “0” (steps S10, S12, S13). Further, when the stop time data T2 indicating the duration of the state in which the acceleration data AS is less than the threshold value th2 reaches the threshold value th5, the integral value AS is initialized to “0” (steps S10, S12, S17). ).

一方、加速度データASが閾値th2以上である場合はステップS16に進み、積分値IASに加速度データASを加算し、その加算結果を積分値IASとし、ステップS14に進む。ここで、積分値IASは、閾値th5に相当する期間に亙って継続して加速度データASが閾値th2未満になると、「0」に初期化される(ステップS10、S12、S17)。従って、積分値IASは、加速度データASがこのような継続的に閾値th2未満の値を維持していた状態を脱し、閾値th2以上になった後の期間における加速度データASの積分値となる。   On the other hand, if the acceleration data AS is greater than or equal to the threshold th2, the process proceeds to step S16, the acceleration data AS is added to the integral value IAS, and the result of the addition is defined as the integral value IAS, and the process proceeds to step S14. Here, the integral value IAS is initialized to “0” when the acceleration data AS becomes less than the threshold th2 continuously over a period corresponding to the threshold th5 (steps S10, S12, and S17). Therefore, the integral value IAS is an integral value of the acceleration data AS in a period after the acceleration data AS is maintained at a value less than the threshold value th2 and becomes equal to or greater than the threshold value th2.

ステップS14およびS15は、トリガ信号発生部112が起動されるとき、毎回実行される処理である。まず、ステップS14では、経過時間データT1を「1」だけ増加させる。ここで、経過時間データT1は、トリガ信号が発生する毎に「0」に初期化される(ステップS6、S7)。従って、経過時間データT1は、トリガ信号の発生以後の経過時間(サンプリング周期数)を示すデータとなる。   Steps S14 and S15 are processes that are executed each time the trigger signal generator 112 is activated. First, in step S14, the elapsed time data T1 is increased by “1”. Here, the elapsed time data T1 is initialized to “0” every time a trigger signal is generated (steps S6 and S7). Therefore, the elapsed time data T1 is data indicating the elapsed time (sampling period number) after the trigger signal is generated.

次にステップS15では、次回のサンプリング周期において演奏制御プログラムが起動されたときのために加速度データASを前加速度データASoldに退避させる。このステップS15が終了することにより、トリガ信号発生部112の全処理が終了する。
以上がトリガ信号発生部112の処理内容である。
Next, in step S15, the acceleration data AS is saved in the previous acceleration data ASold for the time when the performance control program is started in the next sampling cycle. When this step S15 is completed, the entire processing of the trigger signal generator 112 is completed.
The above is the processing content of the trigger signal generation unit 112.

次に具体例を挙げ、トリガ信号発生部112の処理内容をさらに詳しく説明する。図4はトリガ信号発生部112において発生される加速度データASおよびその積分値IASの時間的変化を例示する図である。図4に示す例において、加速度データASは、閾値th2未満の停止判定領域内の値から上昇し、1つ目のピークに到達してから下降し、その後、停止判定領域に入ることなく、再び上昇し、2つ目のピークに到達してから下降している。そして、この例において、2つ目のピークのタイミングが、例えば楽音の発音をさせるべく操作子200を振るユーザが意識したタイミング(音を出したいタイミング)である。   Next, a specific example is given and the processing content of the trigger signal generation part 112 is demonstrated in detail. FIG. 4 is a diagram exemplifying temporal changes in the acceleration data AS generated in the trigger signal generator 112 and its integrated value IAS. In the example shown in FIG. 4, the acceleration data AS rises from the value in the stop determination area less than the threshold th2, falls after reaching the first peak, and then again without entering the stop determination area. It rises and then falls after reaching the second peak. In this example, the timing of the second peak is, for example, the timing when the user who shakes the operation element 200 to generate a musical sound is conscious (timing to make a sound).

加速度データASが閾値th2未満の停止判定領域内にある期間、トリガ信号発生部112では、ステップS10に進んだとき、AS<th2であることから、このステップS10の判断結果が「YES」となり、ステップS11に進む。従って、この間、ステップS16は実行されず、その代わりにステップS12を介して最初にステップS13が実行され、その後、停止時間データT2が閾値th5に達すると、ステップS12を介してステップS17が実行されるようになる。従って、加速度データASが閾値th2未満の停止判定領域内にある期間内に積分値IASは「0」に初期化される(ステップS17)。   In the period in which the acceleration data AS is within the stop determination area less than the threshold th2, the trigger signal generation unit 112, when proceeding to step S10, is AS <th2, so the determination result in step S10 is “YES”. Proceed to step S11. Therefore, during this time, step S16 is not executed, but instead, step S13 is executed first via step S12. After that, when the stop time data T2 reaches the threshold value th5, step S17 is executed via step S12. Become so. Accordingly, the integral value IAS is initialized to “0” within a period in which the acceleration data AS is within the stop determination region where the acceleration data AS is less than the threshold th2 (step S17).

加速度データASが上昇し始め、閾値th2以上になると、トリガ信号発生部112では、ステップS10に進んだとき、その判断結果が「NO」となるため、ステップS16、S14およびS15が実行される。従って、加速度データASが閾値th2以上になった以降の期間では、加速度データASを積分値IASに累積的に加える積分処理が繰り返される(ステップS16)。このため、図4に示すように、積分値IASは次第に上昇してゆく。   When the acceleration data AS starts to rise and becomes equal to or greater than the threshold th2, when the trigger signal generation unit 112 proceeds to step S10, the determination result is “NO”, so steps S16, S14, and S15 are executed. Therefore, in the period after the acceleration data AS becomes equal to or greater than the threshold th2, the integration process for cumulatively adding the acceleration data AS to the integral value IAS is repeated (step S16). For this reason, as shown in FIG. 4, the integral value IAS gradually increases.

また、加速度データASが閾値th2以上になると、トリガ信号発生部112では、ステップS10の判断結果が「NO」となって、ステップS11が実行されなくなる。従って、ステップS1からステップS2に進み、その判断結果が「NO」となってステップS8に進んだとき、加速度データASが前加速度データASoldより大きいと、上昇フラグUPが“1”とされる(ステップS9)。以降、加速度データASの変化の傾向が上昇傾向である期間は、トリガ信号発生部112では、ステップS1が実行された後、ステップS2の判断結果が「YES」、ステップS3の判断結果が「NO」となってステップS10以降の処理が実行されるため、上昇フラグUPは“1”を維持する。   When the acceleration data AS is equal to or greater than the threshold th2, the trigger signal generation unit 112 determines “NO” in step S10, and step S11 is not executed. Accordingly, the process proceeds from step S1 to step S2, and when the determination result is “NO” and the process proceeds to step S8, if the acceleration data AS is greater than the previous acceleration data ASold, the increase flag UP is set to “1” ( Step S9). Thereafter, during the period in which the change tendency of the acceleration data AS is an upward trend, the trigger signal generation unit 112 executes “S1” after the step S1, and “NO” as the determination result in Step S3 and “NO as the determination result in Step S3. ”And the processing after step S10 is executed, the rise flag UP is maintained at“ 1 ”.

そして、加速度データASが最初のピークに到達し、その直後のサンプリング周期において加速度データASとして図4に示すデータDが得られると、トリガ信号発生部112では、次のような処理が行われる。まず、ステップS1およびS2を介してステップS3に進んだとき、その判断結果は「YES」となる。何故ならば、この時点において、前加速度データASoldは、最初のピークとなるデータDk−1であるのに対し、加速度データASは、これより低いデータDだからである(図4参照)。 Then, when the acceleration data AS reaches the first peak and the data Dk shown in FIG. 4 is obtained as the acceleration data AS in the sampling period immediately after that, the trigger signal generator 112 performs the following processing. . First, when the process proceeds to step S3 via steps S1 and S2, the determination result is “YES”. This is because, at this point, the previous acceleration data ASold is the first peak data Dk-1 , whereas the acceleration data AS is lower than this data Dk (see FIG. 4).

ステップS3の判断結果が「YES」になると、トリガ信号発生部112では、上昇フラグUPが“0”とされ(ステップS4)、トリガ信号発生条件の全てを満たすか否か、より具体的には上記第2〜第4の条件を満たすか否かの判断が行われる(ステップS5)。この例では、ステップS5の判断結果は次のようになる。
第2の条件:この例では、積分値IASが閾値th1よりも小さい。従って、第2の条件を満たさない。
第3の条件:この例では、加速度データASの変化の傾向が上昇傾向から下降傾向に変化した直前の加速度データAS=Dk−1が閾値th3より大きい。従って、第3の条件を満たす。
第4の条件:この例では、停止時間データT2が「0」より大きな値となっており、前回、トリガ信号を発生してから、少なくとも1回、加速度データASが閾値th2未満になったといえる。従って、第4の条件を満たす。
第5の条件:この例では、前回、トリガ信号を発生してからの経過時間を示す経過時間データT1が閾値th5を越えている(図示略)。従って、第5の条件を満たす。
結局、この例において、最初のピークの直後の時点では、第2の条件を満たさないため、トリガ信号は発生されない。
When the determination result in step S3 is “YES”, the trigger signal generation unit 112 sets the increase flag UP to “0” (step S4), and more specifically, whether or not all the trigger signal generation conditions are satisfied. It is determined whether or not the second to fourth conditions are satisfied (step S5). In this example, the determination result in step S5 is as follows.
Second condition: In this example, the integral value IAS is smaller than the threshold value th1. Therefore, the second condition is not satisfied.
Third condition: In this example, the acceleration data AS = D k−1 immediately before the change tendency of the acceleration data AS changes from the upward tendency to the downward tendency is larger than the threshold th3. Therefore, the third condition is satisfied.
Fourth condition: In this example, the stop time data T2 has a value larger than “0”, and it can be said that the acceleration data AS has become less than the threshold th2 at least once since the trigger signal was generated last time. . Therefore, the fourth condition is satisfied.
Fifth condition: In this example, the elapsed time data T1 indicating the elapsed time since the trigger signal was generated last time exceeds the threshold th5 (not shown). Therefore, the fifth condition is satisfied.
Eventually, in this example, the trigger signal is not generated at the time immediately after the first peak because the second condition is not satisfied.

そして、この例において、加速度データASは、最初のピークを過ぎた後、下降するが、停止判定領域に入ることなく、再び上昇する。この過程では、加速度データASが停止判定領域に入らないため、ステップS10の判断結果が「NO」となり、ステップS16、S14、S15が実行される。従って、この間も、加速度データASの積分処理(ステップS16)は継続され、積分値IASは上昇し続ける。また、加速度データASが下降から上昇に転じると、その後のサンプリング周期において、トリガ信号発生部112では、ステップS1からステップS2に進み、その判断結果が「NO」となってステップS8に進んだとき、加速度データASが前加速度データASoldより大きくなることから、上昇フラグUPが“1”とされる(ステップS9)。以降、上昇フラグUPは“1”を維持する。   In this example, the acceleration data AS drops after passing the first peak, but rises again without entering the stop determination region. In this process, since the acceleration data AS does not enter the stop determination region, the determination result in step S10 is “NO”, and steps S16, S14, and S15 are executed. Accordingly, during this time, the integration process (step S16) of the acceleration data AS is continued, and the integral value IAS continues to increase. When the acceleration data AS changes from falling to rising, the trigger signal generation unit 112 proceeds from step S1 to step S2 in the subsequent sampling period, and the determination result is “NO” and the processing proceeds to step S8. Since the acceleration data AS becomes larger than the previous acceleration data ASold, the rising flag UP is set to “1” (step S9). Thereafter, the rising flag UP is maintained at “1”.

そして、加速度データASが2番目のピークに到達し、その直後のサンプリング周期において加速度データASとして図4に示すデータDが得られる。すると、トリガ信号発生部112では、最初のピークの場合と同様、ステップS1、S2を介してステップS3に進んだとき、ステップS3の判断結果が「YES」になり、上昇フラグUPが“0”とされ(ステップS4)、上記第2〜第4の条件を満たすか否かの判断が行われる(ステップS5)。この場合、積分値IASが閾値th1よりも大きいため、第2の条件を満たし、それ以外の第3〜第5の条件も満たす。すなわち、トリガ信号発生条件のすべてを満たす。この結果、ステップS5の判断結果が「YES」となり、操作子200を振るユーザが意識したタイミングにおいてトリガ信号が発生される(ステップS6)。また、経過時間データT1および停止時間データT2が「0」とされる(ステップS7)。 Then, the acceleration data AS reaches the second peak, and the data D m shown in FIG. 4 is obtained as the acceleration data AS in the sampling period immediately after that. Then, as in the case of the first peak, in the trigger signal generation unit 112, when the process proceeds to step S3 via steps S1 and S2, the determination result in step S3 is “YES” and the increase flag UP is “0”. (Step S4), it is determined whether or not the second to fourth conditions are satisfied (Step S5). In this case, since the integral value IAS is larger than the threshold value th1, the second condition is satisfied, and the other third to fifth conditions are also satisfied. That is, all the trigger signal generation conditions are satisfied. As a result, the determination result in step S5 is “YES”, and a trigger signal is generated at a timing conscious of the user who shakes the operation element 200 (step S6). Further, the elapsed time data T1 and the stop time data T2 are set to “0” (step S7).

その後、加速度データASが下降し、停止判定領域に入ると、トリガ信号発生部112では、ステップS10の判断結果が「YES」となり、ステップS11以降の処理が実行されるようになる。このため、上述したように積分値IASが「0」に初期化される(ステップS17)。
以上が本実施形態の動作である。
Thereafter, when the acceleration data AS falls and enters the stop determination area, the trigger signal generation unit 112 sets “YES” as the determination result in step S10, and the processes in and after step S11 are executed. Therefore, as described above, the integral value IAS is initialized to “0” (step S17).
The above is the operation of this embodiment.

以上説明したように、本実施形態によれば、積分値IASが閾値th1以上である旨の第2の条件がトリガ信号発生条件に加わっているため、操作子200を振るユーザが意識したタイミングよりも前に発生する反動成分による加速度データASのピーク(図4の例における最初のピーク)を無視し、ユーザが意識したタイミングのピークを捉えてトリガ信号を発生することができる。しかも、本実施形態では、上述した特許文献2の技術のように、ダイナミック閾値を発生する移動平均処理を実行せず、演算量が少ないため、装置規模を増大させることなく、トリガ信号を発生することができる。また、本実施形態では、加速度データASの変化の傾向が上昇傾向から下降傾向に変化した場合において、その直前の加速度データASが閾値th3より大きい旨の第3の条件がトリガ信号発生条件に加わっているため、操作子200を十分に強く振らないとトリガ信号が発生せず、トリガ信号の発生が不安定になるのを防止することができる。また、本実施形態では、前回、トリガ信号を発生してから、少なくとも1回、加速度データASが閾値th2未満になった旨の第4の条件と、前回、トリガ信号を発生してからの経過時間が閾値th5を越えている旨の第5の条件がトリガ信号発生条件に加わっている。この第4および第5の条件がトリガ信号発生条件に加わっていないと、例えば加速度データASがピークとなり、トリガ信号発生条件が満たされてトリガ信号が発生した後、加速度データASが十分に減衰することなく短時間のうちに上昇して再びピークとなった場合に、このピークのタイミングにおいてトリガ信号が発生される現象、すなわち、チャタリングが発生する可能性がある。本実施形態では、第4および第5の条件がトリガ信号発生条件に加わっているため、このようなチャタリングを防止することができる。また、本実施形態によれば、操作子200からユーザの手への反動やチャタリングによって誤ってトリガ信号が発生されるのを防止するだけでなく、操作子200の電気的あるいは機械的な特性に起因し、あるいはユーザの癖や誤操作によって意図しないトリガ信号が発生されるのを防止することができる。   As described above, according to the present embodiment, since the second condition that the integral value IAS is equal to or greater than the threshold th1 is added to the trigger signal generation condition, the timing is recognized by the user who shakes the operation element 200. In addition, the trigger signal can be generated by ignoring the peak of the acceleration data AS (the first peak in the example of FIG. 4) due to the reaction component that occurs before and capturing the peak of the timing that the user is aware of. Moreover, in the present embodiment, unlike the technique of Patent Document 2 described above, the moving average process for generating the dynamic threshold is not executed, and the calculation amount is small, so that the trigger signal is generated without increasing the apparatus scale. be able to. Further, in the present embodiment, when the tendency of change in the acceleration data AS changes from an upward tendency to a downward tendency, the third condition that the immediately preceding acceleration data AS is greater than the threshold th3 is added to the trigger signal generation condition. Therefore, if the operation element 200 is not shaken sufficiently strongly, a trigger signal is not generated and generation of the trigger signal can be prevented from becoming unstable. In the present embodiment, the fourth condition that the acceleration data AS has become less than the threshold th2 at least once since the last time the trigger signal was generated, and the time elapsed since the last time the trigger signal was generated. A fifth condition that the time exceeds the threshold th5 is added to the trigger signal generation condition. If the fourth and fifth conditions are not added to the trigger signal generation condition, for example, the acceleration data AS peaks, and after the trigger signal generation condition is satisfied and the trigger signal is generated, the acceleration data AS is sufficiently attenuated. When the peak rises again within a short time and peaks again, there is a possibility that a trigger signal is generated at the timing of this peak, that is, chattering may occur. In the present embodiment, since the fourth and fifth conditions are added to the trigger signal generation condition, such chattering can be prevented. Further, according to the present embodiment, not only the trigger signal is erroneously generated due to the reaction or chattering from the operator 200 to the user's hand, but also the electrical or mechanical characteristics of the operator 200 are improved. It is possible to prevent an unintended trigger signal from being caused by a user's habit or erroneous operation.

以上、この発明の一実施形態を説明したが、この発明には、他にも各種の実施形態が考えられる。例えば次の通りである。   Although one embodiment of the present invention has been described above, various other embodiments are conceivable for the present invention. For example:

(1)上記実施形態では、第1〜第5の条件からなるトリガ信号発生条件を用いたが、第1および第2の条件のみからなるトリガ信号発生条件を用いてもよい。あるいは、第1および第2の条件に対して、第3〜第5の条件の中の任意の1つまたは複数の条件を加えたものをトリガ信号発生条件として採用してもよい。以下、図5を参照し、その一態様を説明する。この図5は、トリガ信号発生部112において発生される加速度データASの時間的変化を例示する図である。 (1) In the above-described embodiment, the trigger signal generation condition including the first to fifth conditions is used. However, the trigger signal generation condition including only the first and second conditions may be used. Alternatively, a trigger signal generation condition that is obtained by adding one or more of the third to fifth conditions to the first and second conditions may be adopted. Hereinafter, with reference to FIG. 5, the one aspect | mode is demonstrated. FIG. 5 is a diagram exemplifying a temporal change in the acceleration data AS generated in the trigger signal generation unit 112.

この態様おいて、トリガ信号発生条件は、次の各条件により構成されている。
第1の条件:加速度データASの変化の傾向が上昇傾向から下降傾向に変化したこと。すなわち、加速度データASの波形にピークが発生したこと。
第2の条件:加速度データASが上昇し始めた以降の加速度データASの積分値が閾値th1(第1の閾値)を越えていること。より具体的には、加速度データASの変化の傾向が下降傾向から上昇傾向に転じた後における加速度データASの積分値が閾値th1を越えていること。
第3の条件:加速度データASの変化の傾向が上昇傾向から下降傾向に変化した場合において(すなわち、加速度データASの波形にピークが発生した場合において)、直前の加速度データASが閾値th3(第3の閾値)より大きいピーク判定領域内の値であること。
第5の条件:前回、トリガ信号を発生してからの経過時間が閾値th5(第5の閾値)を越えていること。
In this aspect, the trigger signal generation condition is constituted by the following conditions.
First condition: The change tendency of the acceleration data AS has changed from an upward tendency to a downward tendency. That is, a peak has occurred in the waveform of the acceleration data AS.
Second condition: The integrated value of the acceleration data AS after the acceleration data AS starts to rise exceeds the threshold th1 (first threshold). More specifically, the integrated value of the acceleration data AS after the change trend of the acceleration data AS changes from a downward trend to an upward trend exceeds the threshold th1.
Third condition: When the tendency of change in the acceleration data AS changes from an upward tendency to a downward tendency (that is, when a peak occurs in the waveform of the acceleration data AS), the immediately preceding acceleration data AS is the threshold th3 (first The value in the peak determination region is greater than (threshold of 3).
Fifth condition: the time elapsed since the trigger signal was generated last time exceeds the threshold th5 (fifth threshold).

この態様では、上記実施形態における第4の条件はトリガ信号発生条件に含まれていない。また、第4の条件をトリガ信号発生条件から除外したことに伴い、第2の条件のうち加速度データASの積分を行う期間の始期に関する条件が上記第1実施形態のものから変更されている。   In this aspect, the fourth condition in the above embodiment is not included in the trigger signal generation condition. Further, with the exclusion of the fourth condition from the trigger signal generation condition, the condition relating to the start of the period during which the acceleration data AS is integrated is changed from that of the first embodiment.

この態様においても上記実施形態と同様、操作子200を振るユーザが意図していないタイミングにおいてトリガ信号が発生されるのを防止することができる。図5に示す例では、加速度データASの波形において、大きなピークの間に符号※によって示す小さなピークが発生している。これらの小さなピークのタイミングは操作子200を振るユーザが意図していないタイミングである。これらのタイミングでは、加速度データASが下降傾向から上昇傾向に転じた後における加速度データASの積分値IASが閾値th1以上にならない。従って、トリガ信号が誤って発生されることはない。また、この態様では、第4の条件がトリガ信号発生要件に加わっていないため、例えばユーザが操作子200を途中で停止させることなく連続して複数回振るような場合においても、操作子200を振る毎にトリガ信号を発生させることができる。例えば図5では、左から2番目の大きなピークと3番目の大きなピークとの間は加速度データASが十分に減衰していない。しかし、この態様では、第4の条件がトリガ信号発生条件に加わっていないため、2番目の大きなピークのタイミングにおいてトリガ信号を発生させた後、3番目の大きなピークのタイミングにおいてもトリガ信号を発生させることができる。   Also in this aspect, the trigger signal can be prevented from being generated at a timing not intended by the user who shakes the operation element 200, as in the above embodiment. In the example shown in FIG. 5, in the waveform of the acceleration data AS, a small peak indicated by a symbol * occurs between large peaks. These small peak timings are timings that are not intended by the user who shakes the operation element 200. At these timings, the integrated value IAS of the acceleration data AS after the acceleration data AS changes from a downward trend to an upward trend does not exceed the threshold th1. Therefore, the trigger signal is not generated by mistake. In this aspect, since the fourth condition is not added to the trigger signal generation requirement, for example, even when the user shakes the operation element 200 a plurality of times continuously without stopping the operation element 200 in the middle, the operation element 200 is changed. A trigger signal can be generated each time it is shaken. For example, in FIG. 5, the acceleration data AS is not sufficiently attenuated between the second largest peak from the left and the third largest peak. However, in this aspect, since the fourth condition is not added to the trigger signal generation condition, the trigger signal is generated at the timing of the second largest peak after the trigger signal is generated at the timing of the second largest peak. Can be made.

(2)上記実施形態では、演算量を減らすため、操作子200の加速度の2乗値を加速度データASとして用いたが、演算量の制約が厳しくない場合には、前掲式の演算結果の平方根である加速度の絶対値を求め、加速度データASとして用いてもよい。 (2) In the above embodiment, the square value of the acceleration of the operation element 200 is used as the acceleration data AS in order to reduce the amount of computation. However, when the constraint on the amount of computation is not strict, the square root of the computation result of the above formula is used. The absolute value of the acceleration may be obtained and used as the acceleration data AS.

(3)上記実施形態では、操作子200の加速度の大きさのみを利用したが、加速度の3軸方向の成分のバランスに基づいて、操作子200の運動方向を推定し、この推定結果に基づいて、例えば発音する音色の変更等の多彩な演奏制御を行うようにしてもよい。 (3) In the above embodiment, only the magnitude of the acceleration of the operation element 200 is used. However, the movement direction of the operation element 200 is estimated based on the balance of the components in the three axial directions of the acceleration, and based on this estimation result. For example, various performance controls such as changing the tone color to be generated may be performed.

(4)ユーザの操作に基づく操作子200の運動を検出するセンサとして、加速度センサ以外のセンサ、例えば操作子200の角速度、変位、速度、圧力、傾き等を検出するセンサを操作子200に設け、このセンサから操作子200の運動を示す動作検出信号を取得してトリガ信号を発生するように演奏制御装置100を構成してもよい。 (4) A sensor other than an acceleration sensor, for example, a sensor that detects the angular velocity, displacement, speed, pressure, inclination, etc. of the operating element 200 is provided in the operating element 200 as a sensor that detects the movement of the operating element 200 based on the user's operation. The performance control apparatus 100 may be configured to acquire a motion detection signal indicating the movement of the operation element 200 from this sensor and generate a trigger signal.

この発明の一実施形態である演奏制御装置100を含む演奏システムの構成を示すブロック図である。It is a block diagram which shows the structure of the performance system containing the performance control apparatus 100 which is one Embodiment of this invention. 同実施形態におけるトリガ信号発生部112の処理内容を示すフローチャートである。It is a flowchart which shows the processing content of the trigger signal generation part 112 in the embodiment. 同実施形態におけるトリガ信号発生部112の処理内容を示すフローチャートである。It is a flowchart which shows the processing content of the trigger signal generation part 112 in the embodiment. 同トリガ信号発生部112において発生される加速度データASおよびその積分値の時間的変化を例示する図である。It is a figure which illustrates the time change of the acceleration data AS produced | generated in the trigger signal generation part 112, and its integral value. 同トリガ信号発生部112において発生される加速度データASの時間的変化を例示する図である。It is a figure which illustrates the time change of the acceleration data AS produced | generated in the trigger signal generation part.

符号の説明Explanation of symbols

200……操作子、201……加速度センサ、202……無線通信部、100……演奏制御装置、110……CPU、120……ROM、130……RAM、140……操作表示部、150……無線通信装置、160……I/F群、111……加速度取得部、112……トリガ信号発生部、113……演奏制御部。 200 ... Operator, 201 ... Acceleration sensor, 202 ... Wireless communication unit, 100 ... Performance control device, 110 ... CPU, 120 ... ROM, 130 ... RAM, 140 ... Operation display unit, 150 ... ... wireless communication device, 160 ... I / F group, 111 ... acceleration acquisition unit, 112 ... trigger signal generation unit, 113 ... performance control unit.

Claims (6)

操作子の運動を示す動作検出信号を取得する動作検出信号取得手段と、
前記動作検出信号取得手段により取得された動作検出信号から前記操作子の運動の大きさを示す運動データを算出し、運動データの変化の傾向が上昇傾向から下降傾向に変化した旨の第1の条件と、運動データが上昇し始めた以降の運動データの積分値が第1の閾値を越えている旨の第2の条件とを少なくとも含むトリガ信号発生条件の全てを満たしたときに、演奏制御のためのトリガ信号を発生するトリガ信号発生手段と
を具備することを特徴とする演奏制御装置。
Motion detection signal acquisition means for acquiring a motion detection signal indicating the motion of the manipulator;
Motion data indicating the magnitude of motion of the operating element is calculated from the motion detection signal acquired by the motion detection signal acquisition means, and a first change effect of the motion data changes from an upward trend to a downward trend. Performance control when the trigger signal generation condition including at least the second condition that the condition and the integral value of the exercise data after the exercise data starts to rise exceeds the first threshold is satisfied And a trigger signal generating means for generating a trigger signal for the performance control device.
前記トリガ信号発生手段は、運動データが第2の閾値以上になったとき、運動データが上昇し始めたとみなし、前記第2の条件に関する判定を行うことを特徴とする請求項1に記載の演奏制御装置。   2. The performance according to claim 1, wherein when the exercise data becomes equal to or greater than a second threshold value, the trigger signal generation unit considers that the exercise data has started to increase, and makes a determination regarding the second condition. Control device. 前記トリガ信号発生条件は、運動データの変化の傾向が上昇傾向から下降傾向に変化する直前の運動データが第3の閾値より大きい旨の第3の条件をさらに含むことを特徴とする請求項1または2に記載の演奏制御装置。   The trigger signal generation condition further includes a third condition that the exercise data immediately before the change tendency of the exercise data changes from an upward tendency to a downward tendency is larger than a third threshold value. Or the performance control apparatus of 2. 前記トリガ信号発生条件は、前回、トリガ信号を発生してから、少なくとも1回、運動データが第4の閾値未満になった旨の第4の条件をさらに含むことを特徴とする請求項1〜3のいずれか1の請求項に記載の演奏制御装置。   The trigger signal generation condition further includes a fourth condition that the motion data has become less than a fourth threshold value at least once since the trigger signal was generated last time. The performance control device according to any one of claims 3 to 4. 前記トリガ信号発生条件は、前回、トリガ信号を発生してからの経過時間が第5の閾値を越えている旨の第5の条件をさらに含むことを特徴とする請求項1〜4のいずれか1の請求項に記載の演奏制御装置。   The trigger signal generation condition further includes a fifth condition that an elapsed time since the trigger signal was generated last time exceeds a fifth threshold value. The performance control device according to claim 1. コンピュータを、
操作子の運動を示す動作検出信号を取得する動作検出信号取得手段と、
前記動作検出信号取得手段により取得された動作検出信号から前記操作子の運動の大きさを示す運動データを算出し、運動データの変化の傾向が上昇傾向から下降傾向に変化した旨の第1の条件と、
運動データが上昇し始めた以降の運動データの積分値が第1の閾値を越えている旨の第2の条件とを少なくとも含むトリガ信号発生条件の全てを満たしたときに、演奏制御のためのトリガ信号を発生するトリガ信号発生手段と
して機能させることを特徴とするプログラム。
Computer
Motion detection signal acquisition means for acquiring a motion detection signal indicating the motion of the manipulator;
Motion data indicating the magnitude of motion of the operating element is calculated from the motion detection signal acquired by the motion detection signal acquisition means, and a first change effect of the motion data changes from an upward trend to a downward trend. Condition and
The performance control is performed when all of the trigger signal generation conditions including at least the second condition that the integral value of the movement data after the movement data starts to rise exceeds the first threshold are satisfied. A program which functions as a trigger signal generating means for generating a trigger signal.
JP2008176457A 2008-07-07 2008-07-07 Performance control device and program Withdrawn JP2010015068A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008176457A JP2010015068A (en) 2008-07-07 2008-07-07 Performance control device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008176457A JP2010015068A (en) 2008-07-07 2008-07-07 Performance control device and program

Publications (1)

Publication Number Publication Date
JP2010015068A true JP2010015068A (en) 2010-01-21

Family

ID=41701216

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008176457A Withdrawn JP2010015068A (en) 2008-07-07 2008-07-07 Performance control device and program

Country Status (1)

Country Link
JP (1) JP2010015068A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012018334A (en) * 2010-07-09 2012-01-26 Casio Comput Co Ltd Player device and electric musical instrument
JP2012032682A (en) * 2010-08-02 2012-02-16 Casio Comput Co Ltd Performance device and electronic musical instrument
JP2012108362A (en) * 2010-11-18 2012-06-07 Nintendo Co Ltd Music performance program, music performance device, music performance method and music performance system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012018334A (en) * 2010-07-09 2012-01-26 Casio Comput Co Ltd Player device and electric musical instrument
JP2012032682A (en) * 2010-08-02 2012-02-16 Casio Comput Co Ltd Performance device and electronic musical instrument
JP2012108362A (en) * 2010-11-18 2012-06-07 Nintendo Co Ltd Music performance program, music performance device, music performance method and music performance system

Similar Documents

Publication Publication Date Title
US20180001174A1 (en) Wearable device, control method, and program
US11173393B2 (en) Operation device and control apparatus therefor
JP5182655B2 (en) Electronic percussion instruments and programs
TW201002397A (en) Game device, game control method, and information recording medium
EP3327725B1 (en) Running analysis device, running analysis method and running analysis program
JP2010015068A (en) Performance control device and program
EP3385816A1 (en) Sense of force presentation device, recognition device, control device, and sense of force presentation method
JP3598613B2 (en) Music parameter control device
TW200910165A (en) Method for adjusting sensing range and sensitivity and inertia interactive aparatus and system using thereof
CN115282589B (en) Somatosensory game method based on rope skipping action
JP5316816B2 (en) Input device and program
JP6233123B2 (en) Sensor device, sampling method and program
JP2019058330A (en) Motion correcting apparatus and motion correcting method
EP2128746A1 (en) Input device, input control device, information recording medium, and program
JP2010015073A (en) Performance control device and program
JP2018054617A (en) Sampling frequency control device, sampling frequency control method, and program
US11083396B2 (en) Portable electronic apparatus
JP2010015071A (en) Performance system
EP4578520A1 (en) Vibration control system, program, and method
EP4578521A1 (en) Vibration control system, program, and method
EP4578519A1 (en) Vibration control system, program, and method, and game controller
JP2010020145A (en) Performance control device, performance operator, program and performance control system
JP2010020140A (en) Musical performance controller, performance operation element, program, and performance control system
JP3627319B2 (en) Performance control device
JP5776439B2 (en) Operator and method

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20111004