[go: up one dir, main page]

JPH09281963A - Music control device - Google Patents

Music control device

Info

Publication number
JPH09281963A
JPH09281963A JP8118233A JP11823396A JPH09281963A JP H09281963 A JPH09281963 A JP H09281963A JP 8118233 A JP8118233 A JP 8118233A JP 11823396 A JP11823396 A JP 11823396A JP H09281963 A JPH09281963 A JP H09281963A
Authority
JP
Japan
Prior art keywords
event
sensor
detection information
musical
musical tone
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
Application number
JP8118233A
Other languages
Japanese (ja)
Inventor
Kazuko Hayashi
加寿子 林
Tatsuya Dejima
達也 出嶌
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP8118233A priority Critical patent/JPH09281963A/en
Publication of JPH09281963A publication Critical patent/JPH09281963A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

(57)【要約】 【課題】 演奏者の体に検出装置を取り付けることな
く、演奏者の人体の動きを検出して再生する楽音を制御
する。 【解決手段】 入力装置6は、フォトセンサーからなり
上を通過する手の動きを非接触にて検出する。メインC
PU1は、RAM5に記憶されている曲の楽音データを
呼び出して楽音発生装置7に曲を自動的に再生させる際
に、この入力装置6からの検出情報に応じて曲のテン
ポ、音量、付加する効果の度合いを制御する。
(57) Abstract: A musical sound to be reproduced by controlling movement of a human body of a performer is controlled without attaching a detection device to the body of the performer. An input device 6 includes a photo sensor and detects a movement of a hand passing over it in a non-contact manner. Main C
The PU 1 adds the tempo, the volume, and the volume of the music according to the detection information from the input device 6 when the music data stored in the RAM 5 is called and the music generator 7 automatically reproduces the music. Control the degree of effect.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明が属する技術分野】この発明は、再生する楽音を
制御する楽音制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a tone control device for controlling a tone to be reproduced.

【0002】[0002]

【従来の技術】電子楽器の中には、演奏者の人体の動き
を検出して楽音を制御する楽音制御装置を備えたものが
ある。従来のこのような楽音制御装置を備えた電子楽器
においては、体に検出装置を装着するものが知られてい
る。例えば、シンサイザーのような鍵盤楽器を演奏する
際に、腕の動きを検出する検出装置を袖口等に取付け、
その検出装置の出力をケーブルで楽器本体に接続し、検
出装置から出力される検出信号を内部のCPUに入力し
て、腕の動きに応じて楽音データの制御を行っている。
2. Description of the Related Art Some electronic musical instruments are provided with a tone control device for detecting a movement of a player's human body to control a tone. In a conventional electronic musical instrument equipped with such a musical sound control device, one in which a detection device is attached to the body is known. For example, when playing a keyboard instrument such as a synthesizer, a detection device that detects the movement of the arm is attached to the cuffs,
The output of the detection device is connected to the musical instrument body with a cable, and the detection signal output from the detection device is input to the internal CPU to control the musical sound data according to the movement of the arm.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の楽音制御装置は、演奏者が検出装置を体に付
けたまま演奏しなければならず、物理的に演奏の妨げに
なるとともに、心理的にも演奏に集中できないという問
題があった。この発明の課題は、演奏者の体に検出装置
を取り付けることなく、演奏者の人体の動きを検出して
再生する楽音を制御することである。
However, in such a conventional tone control apparatus, the performer must perform the performance with the detector attached to his body, which physically interferes with the performance and psychologically. However, there was a problem that I could not concentrate on the performance. An object of the present invention is to detect the movement of the human body of the performer and control the musical sound to be reproduced, without attaching a detection device to the body of the performer.

【0004】[0004]

【課題を解決するための手段】この発明は、楽音データ
に基づいて自動的に楽音を再生させる自動演奏手段と、
人体若しくはその一部又は操作される物体の動きを非接
触で検出して検出情報を生成する動き検出手段と、検出
情報に応じて楽音データを制御する制御手段と、を備え
た構成になっている。したがってこの発明によれば、制
御手段は、自動演奏手段によって再生される楽音を、演
奏者の手や指揮棒等の動きに応じて制御する。したがっ
て、演奏者の体に検出装置を付けることなく、演奏者の
人体の動きを検出して再生する楽音を制御することがで
きる。
SUMMARY OF THE INVENTION The present invention comprises an automatic performance means for automatically reproducing a musical tone based on musical tone data,
It is configured to include a motion detection unit that detects the motion of the human body or a part thereof or an operated object in a non-contact manner to generate detection information, and a control unit that controls the musical sound data according to the detection information. There is. Therefore, according to the present invention, the control means controls the musical sound reproduced by the automatic performance means in accordance with the movement of the player's hand, baton, or the like. Therefore, it is possible to detect the movement of the human body of the performer and control the musical sound to be reproduced, without attaching the detection device to the body of the performer.

【0005】[0005]

【発明の実施の形態】以下、図1〜図23を参照して、
この発明における楽音制御装置の第1〜第10実施形態
を、鍵盤を有する電子楽器に適用した場合の例を説明す
る。図1に第5実施形態を除く各実施形態の電子楽器の
構成を示す。制御手段であるメインのCPU1は、バス
を介して接続された各部との間で情報の授受を行いこの
楽音制御装置を制御する。鍵盤2は、演奏者の押鍵操作
により音高データ及びベロシティデータをCPU1に入
力する。コントロールスイッチ群3は、操作に応じて演
奏モードの設定や音色の選択をCPU1に入力する。R
OM4は、CPU1の動作プログラムを記憶している
他、イニシャライズ時の初期値のデータを記憶してい
る。記憶手段であるRAM5は、鍵盤2の操作によって
入力された楽音データ、又は、外部装置から伝送された
シーケンスデータである楽音データをCPU1の書き込
み指令により一時的に記憶するとともに、CPU1の読
み出し指令によりその記憶した楽音データを出力する。
入力装置6は、フォトセンサーで構成された動き検出手
段であり、演奏者の手の動きを検出して、その検出信号
をCPU1に入力する。楽音発生装置7は、CPU1の
指示に基づいて発音処理又は消音処理を行う。すなわ
ち、CPU1は楽音データに基づいて楽音発生装置7に
対してその楽音の再生をさせる自動演奏手段を構成す
る。D/Aコンバータ8は、楽音発生装置7から出力さ
れるディジタル音響信号をアナログ音響信号に変換す
る。アンプ9はこの変換された音響信号を増幅してスピ
ーカ10に供給する。
DETAILED DESCRIPTION OF THE INVENTION Referring to FIGS.
An example in which the first to tenth embodiments of the musical sound control device according to the present invention are applied to an electronic musical instrument having a keyboard will be described. FIG. 1 shows a configuration of an electronic musical instrument of each embodiment except the fifth embodiment. The main CPU 1 which is the control means controls the musical tone control device by exchanging information with each unit connected via the bus. The keyboard 2 inputs pitch data and velocity data to the CPU 1 by a player's key depression operation. The control switch group 3 inputs to the CPU 1 the setting of the performance mode and the selection of the tone color in accordance with the operation. R
The OM 4 stores the operation program of the CPU 1 and also stores the initial value data at the time of initialization. The RAM 5, which is a storage unit, temporarily stores musical tone data input by operating the keyboard 2 or musical tone data that is sequence data transmitted from an external device by a write command of the CPU 1, and by a read command of the CPU 1. The stored tone data is output.
The input device 6 is a motion detecting unit composed of a photo sensor, detects the motion of the player's hand, and inputs the detection signal to the CPU 1. The musical tone generating device 7 performs sound generation processing or mute processing based on an instruction from the CPU 1. That is, the CPU 1 constitutes an automatic performance means for causing the musical sound generating device 7 to reproduce the musical sound based on the musical sound data. The D / A converter 8 converts the digital audio signal output from the musical sound generating device 7 into an analog audio signal. The amplifier 9 amplifies the converted acoustic signal and supplies it to the speaker 10.

【0006】図2は、各実施形態に共通するCPU1の
動作を示すメインフローである。電子楽器に電源が投入
されると、システムイニシャライズ処理を行った後(ス
テップS1)、鍵盤2の操作に基づいてイベント処理を
行う(ステップS2)。次に、このイベント処理に基づ
いて楽音発生装置7に指示を与える自動演奏処理を行う
(ステップS3)。さらに、コントロールスイッチ群3
の状態を検索するスイッチ処理を行う(ステップS
4)。この後その他の処理を行い(ステップS5)、ス
テップS2に移行してステップS5までの各処理を繰り
返し実行する。
FIG. 2 is a main flow showing the operation of the CPU 1 common to the respective embodiments. When the electronic musical instrument is powered on, system initialization processing is performed (step S1), and then event processing is performed based on the operation of the keyboard 2 (step S2). Next, an automatic performance process for giving an instruction to the musical sound generating device 7 is performed based on this event process (step S3). Furthermore, control switch group 3
Switch processing for searching the state of (step S
4). After that, other processing is performed (step S5), the process proceeds to step S2, and each processing up to step S5 is repeatedly executed.

【0007】イベント処理では、図3に示すように、セ
ンサーイベント処理(ステップS6)、発音/消音イベ
ント処理(ステップS7)、その他のイベント処理(ス
テップS8)を実行し、図2のメインフローに戻る。ま
た、スイッチ処理では、図4に示すように、コントロー
ルスイッチ群3を検索して、センサーモードスイッチ
(図示せず)の状態に変更があるか否かを判別する(ス
テップS9)。変更がある場合には、その変更がセンサ
ーモードをオンにする変更か否かを判別する(ステップ
S10)。そして、センサーモードをオフにする変更で
ある場合には、センサー無効の処理をし(ステップS1
1)、センサーモードをオンする変更である場合には、
センサー有効の処理をする(ステップS12)。一方、
ステップS9において、センサーモードスイッチの状態
に変更がない場合には、その他の処理を行う(ステップ
S13)。センサー無効処理、若しくはセンサー有効処
理、又はその他の処理の後は、図2のメインフローに戻
る。
In the event processing, as shown in FIG. 3, sensor event processing (step S6), sounding / silence event processing (step S7), and other event processing (step S8) are executed, and the main flow of FIG. Return. In the switch process, as shown in FIG. 4, the control switch group 3 is searched to determine whether or not the state of the sensor mode switch (not shown) has been changed (step S9). If there is a change, it is determined whether or not the change is to turn on the sensor mode (step S10). If the change is to turn off the sensor mode, the sensor invalid process is performed (step S1).
1) If the change is to turn on the sensor mode,
The sensor is validated (step S12). on the other hand,
If there is no change in the state of the sensor mode switch in step S9, other processing is performed (step S13). After the sensor invalid process, the sensor valid process, or other process, the process returns to the main flow of FIG.

【0008】図5は、第1実施形態における操作部を示
す図である。鍵盤2の近傍にはフォトセンサー11が設
けられている。演奏者の手がこのフォトセンサー11の
上を図の矢印の方向に往復して通過すると、フォトセン
サー11はその通過を検出して検出信号(検出情報)を
CPU1に入力する。この結果、CPU1は演奏者の手
の移動を認識することができる。
FIG. 5 is a view showing the operating section in the first embodiment. A photo sensor 11 is provided near the keyboard 2. When the player's hand passes the photo sensor 11 back and forth in the direction of the arrow in the figure, the photo sensor 11 detects the passing and inputs a detection signal (detection information) to the CPU 1. As a result, the CPU 1 can recognize the movement of the player's hand.

【0009】次に、図6及び図7を参照してこの発明の
第1実施形態を説明する。図6は、第1実施形態におけ
るセンサーイベント処理のフローである。この処理で
は、フォトセンサー11の上を演奏者の手が通過したイ
ベントが有るか否かを判別し(ステップS21)、通過
したときには、イベントフラグ(以下、単に「フラグ」
という)が「0」か否かを判別する(ステップS2
2)。フラグが「0」である場合には、手が最初にフォ
トセンサー11の上を通過した場合(往の場合)であ
り、タイマー計測処理を行う(ステップS23)。次に
図6において、フラグを「1」にセットし(ステップS
24)、このルーチンを抜ける。タイマー計測処理は、
図22に示す汎用タイマーインタラプトをイネーブルに
して、汎用タイムカウントを更新する処理である。した
がって、このルーチンを抜けた後も汎用タイムカウント
は更新される。次のイベントが有ったときに、ステップ
S22でフラグが「1」である場合には、手が2度目に
フォトセンサー11を通過した場合(復の場合)であ
る。この場合には、タイマー計測を終了して、手が最初
に通過したときから2度目に通過するまでの経過時間
(手の往復時間)t1を求める(ステップS25)。
Next, a first embodiment of the present invention will be described with reference to FIGS. 6 and 7. FIG. 6 is a flow of sensor event processing in the first embodiment. In this process, it is determined whether or not there is an event in which the player's hand passes over the photo sensor 11 (step S21), and when it passes, an event flag (hereinafter, simply “flag”).
Is "0" (step S2)
2). When the flag is "0", it means that the hand first passed over the photo sensor 11 (in the case of the forward movement), and the timer measurement process is performed (step S23). Next, in FIG. 6, the flag is set to "1" (step S
24) exit this routine. The timer measurement process is
This is processing for enabling the general-purpose timer interrupt shown in FIG. 22 and updating the general-purpose time count. Therefore, the general-purpose time count is updated even after exiting this routine. If the flag is "1" in step S22 when there is the next event, it means that the hand has passed the photo sensor 11 for the second time (in the case of returning). In this case, the timer measurement is ended, and the elapsed time (reciprocating time of the hand) t1 from the time when the hand first passes to the second time is obtained (step S25).

【0010】次に、60秒をt1で除算してテンポT1
を算出する(ステップS26)。そして、算出したテン
ポT1と現在設定されているテンポT0とを比較して、
T1とT0とが一致しているか否かを判別する(ステッ
プS28)。T1とT0とが一致しない場合には、テン
ポデータをT1に書き換えて(ステップS29)、タイ
マーをクリアし(ステップS30)、フラグを「0」に
リセットする(ステップS31)。この結果、図23に
示す自動演奏用タイマーインタラプトにおけるタイムカ
ウントの更新のインターバルが変わる。一方、T1とT
0とが一致した場合には、テンポデータを書き換えるこ
となくタイマーをクリアし(ステップS30)、フラグ
を「0」にリセットする(ステップS31)。フラグを
「0」にリセットした後は、図3のフローに戻る。ステ
ップS21において、フォトセンサー11の上を演奏者
の手が通過したイベントがない場合には、タイマー計測
処理をすることとなくこのルーチンを抜ける。
Next, 60 seconds is divided by t1 to obtain the tempo T1.
Is calculated (step S26). Then, the calculated tempo T1 is compared with the currently set tempo T0,
It is determined whether or not T1 and T0 match (step S28). If T1 and T0 do not match, the tempo data is rewritten to T1 (step S29), the timer is cleared (step S30), and the flag is reset to "0" (step S31). As a result, the time count update interval in the automatic performance timer interrupt shown in FIG. 23 changes. On the other hand, T1 and T
If 0 matches, the timer is cleared without rewriting the tempo data (step S30), and the flag is reset to "0" (step S31). After resetting the flag to "0", the process returns to the flow of FIG. If there is no event that the player's hand passes over the photo sensor 11 in step S21, this routine is exited without performing timer measurement processing.

【0011】図7は、第1実施形態及び後述する他の各
実施形態における発音/消音イベント処理のフローであ
る。この処理では、発音又は消音のイベントが有るか否
かを判別する(ステップS32)。イベントが有る場合
には、そのイベントが鍵盤イベントか否かを判別する
(ステップS33)。鍵盤イベントである場合には、さ
らにその鍵盤イベントが押鍵イベントであるか否かを判
別し(ステップS34)、押鍵イベントである場合には
RAM5から押鍵情報を読み出し(ステップS35)、
その押鍵情報に基づいて発音処理を行う(ステップS3
6)。ステップS34において押鍵イベントではない場
合には、離鍵イベントであるか否かを判別し(ステップ
S37)、離鍵イベントである場合にはRAM5から離
鍵情報を読み出し(ステップS38)、その離鍵情報に
基づいて消音処理を行う(ステップS39)。
FIG. 7 is a flow chart of sounding / silence event processing in the first embodiment and other embodiments described later. In this process, it is determined whether or not there is a sounding or mute event (step S32). If there is an event, it is determined whether the event is a keyboard event (step S33). If it is a keyboard event, it is further determined whether or not the keyboard event is a key pressing event (step S34), and if it is a key pressing event, the key pressing information is read from the RAM 5 (step S35),
Sound generation processing is performed based on the key depression information (step S3).
6). If it is not the key depression event in step S34, it is determined whether or not it is the key release event (step S37). If it is the key release event, the key release information is read from the RAM 5 (step S38), and the key release event is released. A muffling process is performed based on the key information (step S39).

【0012】ステップS33において、その発音/消音
イベントが鍵盤イベントでない場合には、ROM4、R
AM5又は外部装置等のメモリのデータに基づくシーケ
ンスイベントであるか否かを判別する(ステップS4
0)。シーケンスイベントである場合には、イベントタ
イミングか否かを判別して(ステップS41)、イベン
トタイミングの場合には発音イベントか否かを判別し
(ステップS42)、発音イベントである場合には該当
する音高情報をメモリから呼び出して(ステップS4
3)、その音高情報に基づいて発音処理を行う(ステッ
プS44)。ステップS42において、発音イベントで
はない場合には消音イベントか否かを判別する(ステッ
プS45)。消音イベントである場合には、該当する音
高情報をメモリから呼び出して(ステップS46)、そ
の音高情報の消音処理を行う(ステップS47)。ステ
ップS40において、シーケンスイベントでない場合に
は、電源がオフであるか否かを判別し(ステップS4
8)、オフである場合には発音中のすべての音の消音処
理を行う(ステップS49)。発音処理又は消音処理の
後は、このルーチンを抜ける。
In step S33, if the sounding / muting event is not a keyboard event, ROM4, R
It is determined whether or not the sequence event is based on the data in the memory such as AM5 or the external device (step S4).
0). If it is a sequence event, it is determined whether it is an event timing (step S41). If it is an event timing, it is determined whether it is a sounding event (step S42). If it is a sounding event, it is applicable. Call pitch information from the memory (step S4
3), the sounding process is performed based on the pitch information (step S44). If it is not a sounding event in step S42, it is determined whether or not it is a mute event (step S45). If it is a mute event, the corresponding pitch information is called from the memory (step S46), and the mute processing of the pitch information is performed (step S47). If it is not a sequence event in step S40, it is determined whether or not the power is off (step S4).
8) If it is off, muffling processing is performed on all the sounds being sounded (step S49). After the tone generation process or the mute process, this routine is exited.

【0013】次の各場合に該当するときは、発音処理及
び消音処理を行うことなくこのルーチンを抜ける。すな
わち、ステップS32において発音及び消音のイベント
ではない場合。ステップS34において押鍵イベントで
なく、かつ、ステップS37において離鍵イベントでも
ない場合。ステップS41においてイベントタイミング
ではない場合、若しくはイベントタイミングであっても
ステップS42において発音イベントでなく、かつ、ス
テップS45において消音イベントでない場合。ステッ
プS48において電源がオフでない場合。
When any of the following cases applies, this routine is exited without performing the tone generation processing and the mute processing. That is, when it is not the event of sounding and muffling in step S32. In the case where it is neither a key depression event in step S34 nor a key release event in step S37. If it is not the event timing in step S41, or if it is the event timing but not the sounding event in step S42 and is not the mute event in step S45. If the power is not turned off in step S48.

【0014】上記第1実施形態によれば、演奏者の体に
検出装置を取り付けることなく、あたかも指揮をするか
のごとく、フォトセンサー11に非接触でその上で手を
動かすことにより、曲のテンポを自在に制御することが
できる。また、安価なフォトセンサー11を使用するの
で、製品のコストを低減することができる。
According to the first embodiment described above, without attaching the detection device to the body of the performer, by moving the hand on the photosensor 11 without contacting the photosensor 11 as if conducting, the song The tempo can be controlled freely. Moreover, since the inexpensive photo sensor 11 is used, the cost of the product can be reduced.

【0015】なお、上記第1実施形態では、フォトセン
サー11によって演奏者の手の動きを検出するようにし
たが、動き検出手段としてはフォトセンサー11に限定
するものではない。例えば、CdS、PbS、PbSe
のように光導電現象を利用した光導電セル、超音波ドッ
プラー効果を利用した距離センサー、レーザー光を利用
したセンサー、手の近接で静電容量が変化することを利
用した静電容量検知センサーを動き検出手段としてもよ
い。
In the first embodiment described above, the movement of the player's hand is detected by the photo sensor 11, but the movement detecting means is not limited to the photo sensor 11. For example, CdS, PbS, PbSe
Like the photoconductive cell that uses the photoconductive phenomenon, the distance sensor that uses the ultrasonic Doppler effect, the sensor that uses the laser beam, and the capacitance detection sensor that uses the capacitance change due to the proximity of the hand. It may be a motion detecting means.

【0016】また、上記第1実施形態では、演奏者の手
がフォトセンサー11の上を通過することを検出する構
成にしたが、フォトセンサー11が検出する対象は手に
限らず、例えば体の他の一部若しくは体全体又は指揮棒
のような物体でもよい。
In the first embodiment, the player's hand detects that the player's hand passes over the photo sensor 11, but the object detected by the photo sensor 11 is not limited to the hand. It may be another part or the whole body or an object such as a baton.

【0017】次に、この発明の第2実施形態を説明す
る。図8は、第2実施形態における操作部を示し、鍵盤
2の上には2つのフォトセンサー12及び13が設けら
れている。各フォトセンサーの構成は第1実施形態の場
合と同じである。したがって、演奏者の手が図の矢印の
方向にフォトセンサー12及び13の上を通過すると、
2つのフォトセンサー12及び13がそれぞれ手の通過
を検出し、CPU1はこれら2つのフォトセンサー12
及び13からの検出信号により手の移動を認識できる。
Next, a second embodiment of the present invention will be described. FIG. 8 shows the operation unit in the second embodiment, and two photosensors 12 and 13 are provided on the keyboard 2. The configuration of each photosensor is the same as that of the first embodiment. Therefore, when the player's hand passes over the photosensors 12 and 13 in the direction of the arrow in the figure,
The two photosensors 12 and 13 detect the passage of the hand, respectively, and the CPU 1 determines that the two photosensors 12 and 13 have passed.
The movement of the hand can be recognized by the detection signals from 13 and 13.

【0018】図9は、第2実施形態におけるセンサーイ
ベント処理のフローである。この処理では、一方のフォ
トセンサー12又は13の上を演奏者の手が通過したイ
ベントが有るか否かを判別し(ステップS51)、通過
したときには、フラグが「0」か否かを判別する(ステ
ップS52)。フラグが「0」である場合には、手がい
ずれか一方のフォトセンサーの上を通過した場合であ
り、タイマー計測処理を実行し(ステップS53)、フ
ラグを「1」にセットする(ステップS54)。この
後、このルーチンを抜ける。なお、タイマー値は図22
に示す汎用タイマーインタラプトにより更新され、ルー
チンを抜けた後もタイマー値の更新は継続している。ス
テップS51で手がフォトセンサー11を通過したイベ
ントが有ったときに、ステップS52でフラグが「1」
である場合には、手がもう一方のフォトセンサー11を
通過した場合である。この場合には、タイマー計測を終
了して、手が一方のフォトセンサーを通過したときから
他方のフォトセンサーを通過するまでの経過時間(通過
時間)t1を求める(ステップS55)。
FIG. 9 is a flow of sensor event processing in the second embodiment. In this process, it is determined whether or not there is an event in which the player's hand passes over one of the photosensors 12 or 13 (step S51), and when it passes, it is determined whether or not the flag is "0". (Step S52). If the flag is "0", it means that the hand has passed over one of the photosensors, the timer measurement process is executed (step S53), and the flag is set to "1" (step S54). ). After this, this routine is exited. The timer value is shown in Fig. 22.
It is updated by the general-purpose timer interrupt shown in, and the timer value continues to be updated even after leaving the routine. When there is an event that the hand passes the photo sensor 11 in step S51, the flag is set to "1" in step S52.
The case is when the hand passes the other photo sensor 11. In this case, the timer measurement is ended and the elapsed time (passing time) t1 from when the hand passes one photo sensor to when the hand passes the other photo sensor is calculated (step S55).

【0019】次に、基準値t0とt1とを比較する。基
準値t0とは、下記の数式で得られる値である。 t0=60/T0×0.5 (ただし、T0は現在のテ
ンポ) この場合、手が2つのフォトセンサー15及び16を往
復する時間が1拍に相当する。したがって、求めた値t
1は片道の時間であり半拍に相当するので、この数式に
おいて「0.5」を乗ずるのである。そして、t1/t
0の逆数すなわちt0/t1を算出する(ステップS5
6)。次に、この算出した値とボリューム設定基準Vo
l.とを比較して該当するボリューム値を選択する。ボ
リューム設定基準Vol.は、以下のようになってい
る。 Vol.1 2.0以上 Vol.2 1.6〜2.0未満 Vol.3 1.2〜1.6未満 Vol.4 1.2未満
Next, the reference values t0 and t1 are compared. The reference value t0 is a value obtained by the following mathematical formula. t0 = 60 / T0 × 0.5 (where T0 is the current tempo) In this case, the time for the hand to reciprocate between the two photosensors 15 and 16 corresponds to one beat. Therefore, the calculated value t
Since 1 is a one-way time and corresponds to a half beat, it is multiplied by "0.5" in this mathematical expression. And t1 / t
The reciprocal of 0, that is, t0 / t1 is calculated (step S5).
6). Next, the calculated value and the volume setting reference Vo
l. And to select the corresponding volume value. Volume setting reference Vol. Is as follows. Vol. 1 2.0 or more Vol. 2 1.6-less than 2.0 Vol. 3 1.2 to less than 1.6 Vol. 4 less than 1.2

【0020】選択したボリューム値が現在の設定値と異
なるか否かを判別し(ステップS58)、異なる場合に
はボリューム値を新たな値に変更する(ステップS5
9)。次に、タイマーをクリアし(ステップS60)、
フラグを「0」にリセットする(ステップS61)。ス
テップS58において、選択したボリューム値が現在の
設定値と同じである場合には、現在のボリューム値を保
持し(ステップS62)、タイマーをクリアし(ステッ
プS60)、フラグを「0」にリセットする(ステップ
S61)。フラグをリセットした後は、このルーチンを
抜ける。ステップS51において、フォトセンサー12
及び13のいずれも手の通過を検出しない場合には、直
ちにこのルーチンを抜ける。
It is judged whether or not the selected volume value is different from the current setting value (step S58), and if different, the volume value is changed to a new value (step S5).
9). Next, clear the timer (step S60),
The flag is reset to "0" (step S61). If the selected volume value is the same as the current setting value in step S58, the current volume value is held (step S62), the timer is cleared (step S60), and the flag is reset to "0". (Step S61). After resetting the flag, exit this routine. In step S51, the photo sensor 12
If neither hand pass nor hand pass is detected, this routine is immediately exited.

【0021】このように、上記第2実施形態によれば、
演奏者の体に検出装置を取り付けることなく、あたかも
指揮をするかのごとく、フォトセンサー11に非接触で
その上で手を動かすことにより、発音の音量を自在に制
御することができる。この場合、2つのフォトセンサー
12及び13の間を手が通過する通過速度を求めること
により音量を制御する。通過速度が速いときには音量が
大きくなり、通過速度が緩やかなときは音量が小さくな
る。一般に、指揮するときの自然な動作は、音を大きく
するf(フォルテ)の時は手の振りが速く、音を小さく
するp(ピアノ)の時は手の振りが緩やかになる。した
がって、演奏者は2つのフォトセンサーの間で手を通過
させることにより、実際に指揮をするのと同じ自然な動
作で音量の制御を容易に行うことができる。
As described above, according to the second embodiment,
The sound volume can be freely controlled by moving the hand on the photosensor 11 without touching the photosensor 11 as if conducting, without attaching the detection device to the player's body. In this case, the volume is controlled by obtaining the passing speed at which the hand passes between the two photo sensors 12 and 13. The volume increases when the passing speed is fast, and decreases when the passing speed is slow. In general, the natural movement when conducting a command is that when f (forte) is set to increase the sound, the hand is swung fast, and when p (piano) is set to decrease the sound, the hand is swung gently. Therefore, the performer can easily control the sound volume by passing a hand between the two photosensors in the same natural motion as when actually conducting the command.

【0022】次に、第3実施形態について説明する。こ
の実施形態では、第1実施形態と同じく、1つのフォト
センサー11を用いて手の動きを検出する。ただし、フ
ォトセンサー11の上を通過する手がフォトセンサー1
1にどれだけ近いかを検出する。図10はフォトセンサ
ー11の構造を示す図である。フォトセンサー11は発
光部11a及び受光部11bで構成され、図10(A)
に示すように、通過する手の位置14がフォトセンサー
11に近い場合には、発光部11aから手に向けた照射
光15が手の位置14で反射し、反射量y1の大きい反
射光16が受光部11bに入射する。一方、通過する手
の位置14がフォトセンサー11から離れている場合に
は、図10(B)に示すように、受光部11bには反射
量y1の小さい反射光16が入射する。したがって、演
奏者が手を上下に動かすとフォトセンサー11からの距
離に応じた検出信号がCPU1に入力される。
Next, a third embodiment will be described. In this embodiment, as in the first embodiment, one photo sensor 11 is used to detect the movement of the hand. However, the hand passing over the photo sensor 11 is the photo sensor 1.
Detect how close to 1. FIG. 10 is a diagram showing the structure of the photo sensor 11. The photo sensor 11 includes a light emitting portion 11a and a light receiving portion 11b, and is shown in FIG.
As shown in, when the passing hand position 14 is close to the photo sensor 11, the irradiation light 15 directed from the light emitting unit 11a to the hand is reflected at the hand position 14, and the reflected light 16 having a large reflection amount y1 is generated. It is incident on the light receiving portion 11b. On the other hand, when the position 14 of the passing hand is distant from the photo sensor 11, as shown in FIG. 10B, the reflected light 16 having a small reflection amount y1 is incident on the light receiving unit 11b. Therefore, when the performer moves his hand up and down, a detection signal corresponding to the distance from the photo sensor 11 is input to the CPU 1.

【0023】図11は、第3実施形態におけるセンサー
イベント処理のフローである。この処理では、センサー
通過イベントが有るか否かを判別し(ステップS7
1)、通過イベントが有る場合には、受光部11bから
の検出信号によって光の反射量y1を測定する(ステッ
プS72)。その反射量y1と基準値Xとを比較し(ス
テップS73)、基準値Xと反射量y1とが一致するか
否かを判別する(ステップS74)。一致した場合に
は、現在のボリューム値を保持し(ステップS75)、
このルーチンを抜ける。一致しない場合には、X−y1
=Zを算出し、Zの値に当てはまるボリューム値を決定
する(ステップS76)。Zの値に対応するボリューム
値Vol.は、以下のようになっている。 Vol.1 Z<−5 Vol.2 −5≦Z<0 Vol.3 Z=X=0 Vol.4 0<Z<5 Vol.5 5≦Z Zの値に応じてボリューム値を更新して(ステップS7
7)、このルーチンを抜ける。ステップS71におい
て、センサー通過イベントがない場合には、直ちにこの
ルーチンを抜ける。
FIG. 11 is a flow chart of sensor event processing in the third embodiment. In this process, it is determined whether or not there is a sensor passing event (step S7).
1) If there is a passing event, the light reflection amount y1 is measured by the detection signal from the light receiving unit 11b (step S72). The reflection amount y1 is compared with the reference value X (step S73), and it is determined whether the reference value X and the reflection amount y1 match (step S74). If they match, the current volume value is held (step S75),
Exit this routine. If they do not match, X-y1
= Z is calculated, and the volume value corresponding to the value of Z is determined (step S76). The volume value Vol. Is as follows. Vol. 1 Z <-5 Vol. 2-5≤Z <0 Vol. 3 Z = X = 0 Vol. 40 <Z <5 Vol. The volume value is updated according to the value of 5 5 ≦ Z Z (step S7).
7) Exit this routine. In step S71, if there is no sensor passing event, this routine is immediately exited.

【0024】このように、上記第3実施形態によれば、
演奏者の体に検出装置を取り付けることなく、フォトセ
ンサー11に非接触で発音の音量を自在に制御すること
ができる。この場合、1つのフォトセンサーで音量を制
御するのでコストを低減することができる。さらに、フ
ォトセンサーの上で手や棒等の物を上下するだけでよい
ので、指揮をする動作に慣れていない場合でも容易に音
量を制御することができる。
As described above, according to the third embodiment,
It is possible to freely control the sound volume without contacting the photosensor 11 without attaching a detection device to the player's body. In this case, the cost can be reduced because the volume is controlled by one photo sensor. Furthermore, since it is only necessary to move an object such as a hand or a stick up and down on the photo sensor, it is possible to easily control the volume even if the user is not accustomed to the commanding operation.

【0025】次に、この発明の第4実施形態を説明す
る。この実施形態では、手や指揮棒を振ることによりシ
ーケンスデータのタイミングを制御する。図12は、第
4実施形態におけるセンサーイベント処理のフローであ
る。この処理では、センサー通過イベントが有るか否か
を判別し(ステップS81)、通過イベントが有る場合
には、現在発音中の音を消音するように楽音発生装置7
に指示する(ステップS82)。そして、次に発音する
ノート・オンイベントの該当アドレスの呼び出しをして
(ステップS83)、呼び出したノート・オンイベント
に基づく発音を楽音発生装置7に指示する(ステップS
84)。この後、次のノート・オンイベントのアドレス
にセットして(ステップS85)、このルーチンを抜け
る。ステップS81において、センサー通過イベントが
ない場合には、直ちにこのルーチンを抜ける。
Next explained is the fourth embodiment of the invention. In this embodiment, the timing of the sequence data is controlled by shaking the hand or baton. FIG. 12 is a flow of sensor event processing in the fourth embodiment. In this process, it is determined whether or not there is a sensor passing event (step S81), and if there is a passing event, the musical tone generating device 7 is so arranged as to mute the currently sounding sound.
(Step S82). Then, the corresponding address of the note-on event to be generated next is called (step S83), and the musical tone generator 7 is instructed to generate sound based on the called note-on event (step S83).
84). Thereafter, the address of the next note-on event is set (step S85), and this routine is exited. If there is no sensor passing event in step S81, this routine is immediately exited.

【0026】このように、上記第4実施形態によれば、
手又は指揮棒を振るタイミングに合わせて曲が再生され
るので、あたかも実際に演奏を指揮しているかのように
感じることができる。また、この場合もフォトセンサー
により非接触で手や指揮棒を振ることができるので、違
和感なく自由に指揮をすることができる。
As described above, according to the fourth embodiment,
Since the song is played back at the timing of swinging the hand or the baton, you can feel as if you were actually conducting the performance. Also in this case, the photo sensor allows the hands and batons to be shaken in a non-contact manner, so that the user can freely conduct the command without feeling discomfort.

【0027】なお、この場合において、ペダル操作で音
量を制御する構成にすることにより、演奏効果をより一
層上げることができる。
In this case, the performance effect can be further enhanced by controlling the volume by operating the pedal.

【0028】次に、この発明の第5実施形態について説
明する。図13に第5実施形態におけるシステム構成を
示す。鍵盤駆動装置17は、CPU1からの制御情報の
指令に応じて、鍵盤2に対して押鍵及び離鍵の駆動を行
う。他の構成部分については図1に示す他の実施形態の
システム構成と同じであるので、同じ符号で表すととも
にその説明は省略する。図14は、第5実施形態におけ
るセンサーイベント処理のフローである。この処理で
は、センサー通過イベントが有るか否かを判別し(ステ
ップS91)、通過イベントが有る場合には、現在発音
中の音を消音するように楽音発生装置7に指示する(ス
テップS92)。次に、現在押鍵中の音を離鍵するよう
に鍵盤駆動装置17に指示する(ステップS93)。そ
して、次に発音するノート・オンイベントの該当アドレ
スの呼び出しをして(ステップS94)、呼び出したノ
ート・オンイベントに基づく発音を楽音発生装置7に指
示する(ステップS95)。さらに、その発音を指示し
たノート・オンイベントに該当する音高の押鍵を鍵盤駆
動装置17に指示する(ステップS96)。この後、次
のノート・オンイベントのアドレスにセットして(ステ
ップS97)、このルーチンを抜ける。ステップS91
において、センサー通過イベントがない場合には、直ち
にこのルーチンを抜ける。
Next explained is the fifth embodiment of the invention. FIG. 13 shows the system configuration of the fifth embodiment. The keyboard driving device 17 drives the keyboard 2 to press and release keys in response to a command of control information from the CPU 1. Since the other components are the same as the system configuration of the other embodiment shown in FIG. 1, they are denoted by the same reference numerals and the description thereof will be omitted. FIG. 14 is a flow of sensor event processing in the fifth embodiment. In this process, it is determined whether or not there is a sensor passing event (step S91), and if there is a passing event, the musical tone generating device 7 is instructed to mute the sound currently being sounded (step S92). Next, the keyboard driving device 17 is instructed to release the currently depressed key (step S93). Then, the corresponding address of the note-on event to be generated next is called (step S94), and the musical tone generator 7 is instructed to generate sound based on the called note-on event (step S95). Further, the keyboard driving device 17 is instructed to press a key having a pitch corresponding to the note-on event instructing the pronunciation (step S96). Thereafter, the address of the next note-on event is set (step S97), and this routine is exited. Step S91
At, if there is no sensor passage event, this routine is immediately exited.

【0029】このように、上記第5実施形態によれば、
手又は指揮棒を振るタイミングに合わせて曲が再生され
るとともに、音の再生に同期してその音に対応する鍵が
押鍵又は離鍵するので、より一層、実際に演奏を指揮し
ているかのように感じることができる。また、この場合
もフォトセンサーにより非接触で手や指揮棒を振ること
ができるので、違和感なく自由に指揮をすることができ
る。
As described above, according to the fifth embodiment,
The song is played back in time with the hand or baton swing, and the key corresponding to that tone is pressed or released in synchronization with the playback of the sound. You can feel like. Also in this case, the photo sensor allows the hands and batons to be shaken in a non-contact manner, so that the user can freely conduct the command without feeling discomfort.

【0030】次に、この発明の第6実施形態について説
明する。この実施形態では、図8に示す第2実施形態の
構成と同様に、フォトセンサー(第1センサー)12及
びフォトセンサー(第2センサー)13の2つのフォト
センサーを用いて、再生する曲の拍子が異なる場合でも
指揮操作によりテンポを自在に変更する。この場合、2
拍子系又は3拍子系のいずれかをコントロールスイッチ
群(拍子選択手段)3で選択する。4拍子系は2拍子系
とし、6拍子系は3拍子系又は3連2拍子系として、ど
の曲も2拍子系又は3拍子系の2種類に大別する。
Next explained is the sixth embodiment of the invention. In this embodiment, as in the configuration of the second embodiment shown in FIG. 8, using two photosensors, a photosensor (first sensor) 12 and a photosensor (second sensor) 13, the time signature of the song to be reproduced. Even if is different, the tempo can be freely changed by conducting operations. In this case, 2
Either the beat system or the 3-beat system is selected by the control switch group (beat selecting means) 3. The 4-beat system is a 2-beat system, and the 6-beat system is a 3-beat system or a triple 2-beat system, and each song is roughly classified into a 2-beat system or a 3-beat system.

【0031】図15(A)は、第1センサー12及び第
2センサー13の上を通過する2拍子系の手の動きを矢
印で示したものである。ただし、後述するように、2拍
子系の場合には第2センサーのイベントは無効とする。
したがって、テンポの計測には、第1センサー12を手
が図の左から右に通過する1拍目から、右から左に通過
する2拍目までの往復する時間を計測する。図15
(B)は、第1センサー12及び第2センサー13の上
を通過する3拍子系の手の動きを矢印で示したものであ
る。この場合には、第1センサー12のイベントを最初
のイベントとする。したがって、最初のイベントが第2
センサー13のイベントである場合には、そのイベント
を無効とする。また、この場合のテンポの計測には、第
1センサー12を手が図の上から斜め左下に通過する1
拍目から、第1センサー12を左から右に通過する2拍
目までの時間、及び、第2センサー13を手が左から右
に通過する2拍目から、第2センサー13を下から斜め
左上に通過する3拍子までの時間を計測する。
FIG. 15 (A) shows the movement of the hand of the two-beat system passing over the first sensor 12 and the second sensor 13 by arrows. However, as will be described later, in the case of the two-beat system, the event of the second sensor is invalid.
Therefore, to measure the tempo, the time required for the hand to reciprocate from the first beat passing from the left to the right in the drawing to the second beat passing from the right to the left is measured. FIG.
(B) shows the movement of the 3-beat system hand passing over the first sensor 12 and the second sensor 13 by arrows. In this case, the event of the first sensor 12 is the first event. Therefore, the first event is the second
If it is an event of the sensor 13, the event is invalidated. Further, in measuring the tempo in this case, the hand passes the first sensor 12 obliquely from the upper left to the lower left.
From the beat to the second beat passing the first sensor 12 from the left to the right, and from the second beat when the hand passes the second sensor 13 from the left to the right, the second sensor 13 is slanted from the bottom. Measure the time to the third beat passing in the upper left.

【0032】図16は、第6実施形態におけるセンサー
イベント処理のフローである。この処理では、センサー
通過イベントが有るか否かを判別し(ステップS10
1)、イベントが有る場合にはその曲が3拍子系である
か否か(ステップS102)、2拍子系であるか否か
(ステップS103)をコントロールスイッチ群3の設
定によって判別する。3拍子系である場合には、第1セ
ンサーのイベントであるか否かを判別する(ステップS
104)。一方、2拍子系の場合には第2センサーの情
報を無効とするように設定した後(ステップS10
5)、ステップS104に移行して第1センサーのイベ
ントであるか否かを判別する。例えば、再生する曲が3
拍子系であるとする。この場合には、ステップS104
において、第1センサーのイベントであるか否かを判別
し、第1センサーのイベントである場合には、計測を開
始しているか否かを判別する(ステップS106)。ま
だ計測を開始していない最初のイベントである場合に
は、ステップS107に移行して1拍目の終了からの時
間の計測を開始する。次に、第1センサーフラグをオン
にして(ステップS108)、このルーチンを抜ける。
なお、タイマー値は図22に示す汎用タイマーインタラ
プトにより更新されるので、ルーチンを抜けた後もタイ
マー値の更新は継続している。
FIG. 16 is a flow of sensor event processing in the sixth embodiment. In this process, it is determined whether or not there is a sensor passing event (step S10).
1) If there is an event, it is determined by the setting of the control switch group 3 whether or not the tune is in the triple beat system (step S102) and in the double beat system (step S103). In the case of the 3-beat system, it is determined whether or not it is the event of the first sensor (step S
104). On the other hand, in the case of the 2-beat system, after setting the information of the second sensor to be invalid (step S10)
5) The process proceeds to step S104 to determine whether or not the event is the first sensor event. For example, there are 3 songs to play
It is assumed that it is a time signature. In this case, step S104
In, it is determined whether or not it is the event of the first sensor, and if it is the event of the first sensor, it is determined whether or not the measurement is started (step S106). If it is the first event for which the measurement has not started yet, the process proceeds to step S107 and the measurement of the time from the end of the first beat is started. Next, the first sensor flag is turned on (step S108), and this routine is exited.
Since the timer value is updated by the general-purpose timer interrupt shown in FIG. 22, the timer value continues to be updated even after the routine is exited.

【0033】次のセンサー通過イベントがあった場合に
は、ステップS104において第1センサーのイベント
か否かを判別する。第1センサーのイベントである場合
には、ステップS106において計測を開始しているか
否かを判別するが、この場合はすでに計測を開始してい
るので、1拍目終了から2拍目開始までの時間の計測を
終了し(ステップS109)、計測した時間によりテン
ポを計算してRAM5に記憶する(ステップS11
0)。テンポ計算の方法は、第1実施形態と同じであ
る。次に、すでにRAM5に記憶されている現在のテン
ポと比較して、異なるテンポである場合には新たなテン
ポに書き換える(ステップS111)。この結果、図2
3に示す自動演奏用タイマーインタラプトにおけるタイ
ムカウントの更新のインターバルが変わる。そして、テ
ンポを計測するためのタイマーをリセットし(ステップ
S112)、次の拍のために計測を開始し(ステップS
107)、第1センサーフラグをオンにして(ステップ
S108)、このルーチンを抜ける。
If there is a next sensor passing event, it is determined in step S104 whether or not it is the event of the first sensor. If it is the event of the first sensor, it is determined in step S106 whether or not the measurement is started. In this case, however, since the measurement is already started, from the end of the first beat to the start of the second beat. The time measurement is completed (step S109), the tempo is calculated based on the measured time, and the tempo is stored in the RAM 5 (step S11).
0). The tempo calculation method is the same as in the first embodiment. Next, as compared with the current tempo already stored in the RAM 5, if the tempo is different, it is rewritten to a new tempo (step S111). As a result, FIG.
The interval for updating the time count in the timer interrupt for automatic performance shown in 3 changes. Then, the timer for measuring the tempo is reset (step S112), and the measurement is started for the next beat (step S112).
107), the first sensor flag is turned on (step S108), and this routine exits.

【0034】次のセンサーイベントがあったとき、ステ
ップS106において第1センサー12のイベントであ
るか否かを判別する。第1センサー12のイベントでは
ない場合には、第2センサー13が無効であるか否かを
判別する(ステップS113)。この場合には3拍子で
あるので、第2センサー13は有効である。そこで、第
2センサー13のイベントか否かを判別する(ステップ
S114)。第2センサー13のイベントである場合に
は、第1センサーフラグがオンであるか否かを判別する
(ステップS115)。第1センサーフラグがオンであ
る場合には、直前のイベントは2拍目の第1センサー1
2のイベントであり、新たなイベントは第2センサー1
3を2拍目の手が通過したイベントである。この場合に
は、第1センサーフラグをオフにして(ステップS11
6)、計測をそのまま続行する(ステップS117)。
When the next sensor event occurs, it is determined in step S106 whether or not the event is the event of the first sensor 12. If it is not the event of the first sensor 12, it is determined whether or not the second sensor 13 is invalid (step S113). In this case, the second sensor 13 is effective because it has three beats. Therefore, it is determined whether or not the event is the second sensor 13 (step S114). If it is the event of the second sensor 13, it is determined whether or not the first sensor flag is on (step S115). If the first sensor flag is on, the immediately preceding event is the first sensor 1 of the second beat.
2nd event, new event is the 2nd sensor 1
It is an event in which the hand of the second beat passed 3. In this case, the first sensor flag is turned off (step S11
6), the measurement is continued as it is (step S117).

【0035】ステップS115において第1センサーフ
ラグがオフである場合には、直前のイベントは3拍目の
第2センサー12のイベントであり、新たなイベントは
第2センサー13を3拍目の手が通過したイベントであ
る。この場合には、2拍目終了から3拍目開始までの時
間の計測を終了し(ステップS109)、計測した時間
によりテンポ計算してRAM5に記憶する(ステップS
110)。次に、すでにRAM5に記憶されている現在
のテンポと比較して、異なるテンポである場合には新た
なテンポに書き換える(ステップS111)。そして、
テンポを計測するためのタイマーをリセットし(ステッ
プS112)、次の拍のために計測を開始し(ステップ
S107)、第1センサーフラグをオンにして(ステッ
プS108)、このルーチンを抜ける。
If the first sensor flag is off in step S115, the immediately preceding event is the event of the second sensor 12 at the third beat, and the new event is the event of the second sensor 13 at the third beat. It is an event that has passed. In this case, the measurement of the time from the end of the second beat to the start of the third beat is ended (step S109), the tempo is calculated according to the measured time, and the tempo is stored in the RAM 5 (step S).
110). Next, as compared with the current tempo already stored in the RAM 5, if the tempo is different, it is rewritten to a new tempo (step S111). And
The timer for measuring the tempo is reset (step S112), the measurement is started for the next beat (step S107), the first sensor flag is turned on (step S108), and the routine exits.

【0036】一方、曲が2拍子である場合には、ステッ
プS104において、第1センサーのイベントであるか
否かを判別し、第1センサーのイベントである場合に
は、計測を開始しているか否かを判別する(ステップS
106)。まだ計測を開始していない最初のイベントで
ある場合には、ステップS107に移行して1拍目の終
了からの時間の計測を開始する。次に、第1センサーフ
ラグをオンにして(ステップS108)、このルーチン
を抜ける。次にこのフローに入ったとき、ステップS1
04において第1センサーのイベントか否かを判別す
る。第1センサーのイベントである場合には、ステップ
S106において計測を開始しているか否かを判別する
が、この場合はすでに計測を開始しているので、1拍目
終了から2拍目開始までの時間の計測を終了し(ステッ
プS109)、計測した時間によりテンポ計算してRA
M5に記憶する(ステップS110)。
On the other hand, if the tune has two beats, it is determined in step S104 whether or not it is the event of the first sensor. If it is the event of the first sensor, the measurement is started. It is determined whether or not (step S
106). If it is the first event for which the measurement has not started yet, the process proceeds to step S107 and the measurement of the time from the end of the first beat is started. Next, the first sensor flag is turned on (step S108), and this routine is exited. Next, when this flow is entered, step S1
At 04, it is determined whether or not it is the event of the first sensor. If it is the event of the first sensor, it is determined in step S106 whether or not the measurement is started. In this case, however, since the measurement is already started, from the end of the first beat to the start of the second beat. The time measurement is completed (step S109), the tempo is calculated based on the measured time, and RA is calculated.
It is stored in M5 (step S110).

【0037】次に、すでにRAM5に記憶されている現
在のテンポと比較して、異なるテンポである場合には新
たなテンポに書き換える(ステップS111)。そし
て、テンポを計測するためのタイマーをリセットし(ス
テップS112)、次の拍のために計測を開始し(ステ
ップS107)、第1センサーフラグをオンにして(ス
テップS108)、このルーチンを抜ける。次のセンサ
ーイベントがあったとき、ステップS106において第
1センサー12のイベントであるか否かを判別する。第
1センサー12のイベントではない場合には、第2セン
サー13が無効であるか否かを判別する(ステップS1
13)。この場合には2拍子であるので、第2センサー
13は無効である。この場合には、このルーチンを抜け
る。
Next, as compared with the current tempo already stored in the RAM 5, if the tempo is different, it is rewritten to a new tempo (step S111). Then, the timer for measuring the tempo is reset (step S112), the measurement is started for the next beat (step S107), the first sensor flag is turned on (step S108), and the routine exits. When there is the next sensor event, it is determined in step S106 whether or not it is the event of the first sensor 12. If it is not the event of the first sensor 12, it is determined whether or not the second sensor 13 is invalid (step S1).
13). In this case, the second sensor 13 is invalid because it has two beats. In this case, this routine is exited.

【0038】このように、上記第6実施形態によれば、
フォトセンサーにより非接触で手や指揮棒を振ることが
できるので、違和感なく自由に指揮をして再生する曲の
テンポを制御することができる。特に、3拍子系の曲を
指揮する場合に、第2センサー13の1回目の通過を計
測終了のイベントから除くことにより、実際に指揮する
ときのように三角形の振り方で拍単位のテンポを制御す
ることができる。
As described above, according to the sixth embodiment,
Since the photo sensor allows you to swing your hands and baton without contact, you can freely control the tempo of the song to be played and played without any discomfort. In particular, when conducting a three-beat tune, by removing the first passage of the second sensor 13 from the event of measurement termination, the tempo in beats can be set in a triangular manner as when actually conducting. Can be controlled.

【0039】なお、この第6実施形態では、曲のテンポ
を制御するようにしたが、制御の対象としてはテンポに
限定されない。例えば、発音タイミング等の他の自動演
奏の要素を制御するようにしてもよい。
In the sixth embodiment, the tempo of the music is controlled, but the control target is not limited to the tempo. For example, other automatic performance elements such as sounding timing may be controlled.

【0040】次に、この発明の第7実施形態について説
明する。この実施形態では、センサーイベント処理とし
てある一定時間内に連続してイベントがあった場合は、
そのイベントの回数に応じて、通常処理とは異なる処理
を行う。この場合、通常処理以外の異なる処理として、
コントロールスイッチ群3の中の複数のスイッチ処理で
あるスイッチ処理A、スイッチ処理B、スイッチ処理C
があり、それぞれボリューム設定、プログラムチェンジ
設定、スタート・ストップ等があらかじめ定義され、あ
るいはユーザーの所望によりその都度定義される。ま
た、図には示さないが、RAM5にはカウンタとして用
いる3bitのシフトレジスタ、イベント時刻を記憶す
る時刻エリアが設けられている。なお、図2のステップ
S1のイニシャライズ処理において、カウンタは「00
0」にリセットされ、時刻エリアはクリアされている。
Next explained is the seventh embodiment of the invention. In this embodiment, if there are consecutive events within a certain time as sensor event processing,
A process different from the normal process is performed according to the number of times of the event. In this case, as a different process other than the normal process,
Switch process A, switch process B, and switch process C, which are a plurality of switch processes in the control switch group 3.
There is a volume setting, a program change setting, a start / stop, etc., respectively, or each time according to the user's desire. Although not shown in the figure, the RAM 5 is provided with a 3-bit shift register used as a counter and a time area for storing event time. In the initialization process of step S1 of FIG. 2, the counter is set to "00".
It is reset to "0" and the time area is cleared.

【0041】図17は、第7実施形態におけるセンサー
イベント処理のフローである。この処理では、センサー
通過イベントが有るか否かを判別し(ステップS12
1)、イベントが有った場合には、RAM5のカウンタ
が「000」すなわちリセット状態であるか否かを判別
する(ステップS122)。「000」である場合に
は、現在の時刻t0をRAM5に記憶する(ステップS
123)。次に、カウンタをインクリメントして(ステ
ップS124)、このルーチンを抜ける。
FIG. 17 is a flow of sensor event processing in the seventh embodiment. In this process, it is determined whether or not there is a sensor passing event (step S12).
1) If there is an event, it is determined whether or not the counter of the RAM 5 is "000", that is, the reset state (step S122). If it is “000”, the current time t0 is stored in the RAM 5 (step S
123). Next, the counter is incremented (step S124), and this routine exits.

【0042】次に、時刻t1に連続してイベントが有っ
た場合には、RAM5のカウンタが「001」か否かを
判別する(ステップS125)。「001」である場合
は、Ta=t1−t0を算出して(ステップS12
6)、Taがあらかじめ設定されている所定値Txより
小さいか否かを判別する(ステップS127)。Taが
Txより小さい場合は、通常処理を行い(ステップS1
28)、カウンタをクリアする(ステップS129)。
この後、このルーチンを抜ける。ステップS127にお
いてTaがTx以上である場合には、カウンタをインク
リメントして、次のイベントに対して待機して(ステッ
プS130)、このルーチンを抜ける。
Next, if there are consecutive events at time t1, it is determined whether or not the counter of the RAM 5 is "001" (step S125). If "001", Ta = t1-t0 is calculated (step S12).
6), it is determined whether Ta is smaller than a preset predetermined value Tx (step S127). If Ta is smaller than Tx, normal processing is performed (step S1).
28) and clear the counter (step S129).
After this, this routine is exited. If Ta is greater than or equal to Tx in step S127, the counter is incremented, the next event is waited for (step S130), and this routine exits.

【0043】次に、時刻t2に連続してイベントがあっ
た場合には、RAM5のカウンタが「010」か否かを
判別する(ステップS131)。「010」である場合
は、Tb=t2−t0を算出して(ステップS13
2)、Tbがあらかじめ設定されている所定値Txより
小さいか否かを判別する(ステップS133)。Tbが
Txより小さい場合は、スイッチA処理を行い(ステッ
プS134)、カウンタをクリアする(ステップS13
5)。この後、このルーチンを抜ける。ステップS13
3においてTbがTx以上である場合には、カウンタを
インクリメントして次のイベントに対して待機して(ス
テップS136)、このルーチンを抜ける。
Next, when there are consecutive events at time t2, it is determined whether the counter of the RAM 5 is "010" (step S131). If "010", Tb = t2-t0 is calculated (step S13).
2), it is determined whether Tb is smaller than a predetermined value Tx set in advance (step S133). If Tb is smaller than Tx, switch A processing is performed (step S134), and the counter is cleared (step S13).
5). After this, this routine is exited. Step S13
If Tb is greater than or equal to Tx in 3, the counter is incremented, the next event is waited for (step S136), and this routine is exited.

【0044】次に、時刻t3に連続してイベントがあっ
た場合には、RAM5のカウンタが「011」か否かを
判別する(ステップS137)。「011」である場合
は、Tc=t3−t0を算出して(ステップS13
8)、Tcがあらかじめ設定されている所定値Txより
小さいか否かを判別する(ステップS139)。Tcが
Txより小さい場合は、スイッチB処理を行い(ステッ
プS140)、カウンタをクリアする(ステップS14
1)。この後、このルーチンを抜ける。ステップS13
9においてTcがTx以上である場合には、カウンタを
インクリメントして次のイベントに対して待機して(ス
テップS142)、このルーチンを抜ける。
Next, if there are consecutive events at time t3, it is determined whether or not the counter of the RAM 5 is "011" (step S137). If “011”, Tc = t3−t0 is calculated (step S13).
8), it is determined whether Tc is smaller than a predetermined value Tx set in advance (step S139). If Tc is smaller than Tx, switch B processing is performed (step S140), and the counter is cleared (step S14).
1). After this, this routine is exited. Step S13
If Tc is greater than or equal to Tx in 9, the counter is incremented and the next event is waited for (step S142), and this routine is exited.

【0045】次に、時刻t4に連続してイベントがあっ
た場合には、RAM5のカウンタが「100」か否かを
判別する(ステップS143)。「100」である場合
は、Td=t4−t0を算出して(ステップS14
4)、Tdがあらかじめ設定されている所定値Txより
小さいか否かを判別する(ステップS145)。Tdが
Txより小さい場合は、スイッチC処理を行い(ステッ
プS146)、カウンタをクリアする(ステップS14
7)。この後、このルーチンを抜ける。ステップS14
5においてTdがTx以上である場合には、カウンタを
クリアして(ステップS148)、このルーチンを抜け
る。
Next, if there are consecutive events at time t4, it is determined whether or not the counter of the RAM 5 is "100" (step S143). If “100”, Td = t4−t0 is calculated (step S14).
4), it is determined whether Td is smaller than a preset predetermined value Tx (step S145). If Td is smaller than Tx, switch C processing is performed (step S146), and the counter is cleared (step S14).
7). After this, this routine is exited. Step S14
If Td is greater than or equal to Tx in 5, the counter is cleared (step S148) and the routine exits.

【0046】このように、上記第7実施形態によれば、
手や指揮棒等をフォトセンサーの上を通過させることに
より、上記した他の実施形態における通常の動作の制御
を非接触で行うとともに、コントロールスイッチ群3の
中の特定の複数のスイッチ処理をも非接触で行うことが
できる。
As described above, according to the seventh embodiment,
By passing a hand, a baton, or the like over the photo sensor, the normal operation control in the other embodiments described above is performed in a non-contact manner, and a plurality of specific switch processes in the control switch group 3 are performed. It can be performed without contact.

【0047】次に、この発明の第8実施形態について説
明する。この実施形態の特徴は、1つのセンサーの上を
手又は指揮棒等で2回通過させて任意の処理を行う場
合、ノイズやセンサーの誤動作等により発生する誤りを
回避することである。図18は、第8実施形態における
センサーイベント処理のフローである。この処理では、
センサー通過イベントが有るか否かを判別し(ステップ
S151)、イベントが有った場合には、フラグがオン
であるか否かを判別する(ステップS152)。このフ
ラグは図2のステップS1のイニシャライズ処理ではオ
フにリセットされている。フラグがオフである場合に
は、次のセンサーイベントまでの時間を計測するため
に、タイミングクロックTaのカウントを開始する(ス
テップS153)。すなわち、図22に示す汎用タイマ
ーインタラプトをイネーブルにする。次に、フラグをオ
ンにして(ステップS154)、このルーチンを抜け
る。なお、ルーチンを抜けた後もRAM5においてタイ
ミングクロックTaの更新は継続している。
Next explained is the eighth embodiment of the invention. A feature of this embodiment is to avoid an error caused by noise or a malfunction of the sensor when an arbitrary process is performed by passing the sensor over a single sensor twice with a hand or a baton. FIG. 18 is a flow of sensor event processing in the eighth embodiment. In this process,
It is determined whether there is a sensor passing event (step S151), and if there is an event, it is determined whether the flag is on (step S152). This flag is reset to off in the initialization processing of step S1 in FIG. If the flag is off, counting of the timing clock Ta is started in order to measure the time until the next sensor event (step S153). That is, the general-purpose timer interrupt shown in FIG. 22 is enabled. Next, the flag is turned on (step S154), and this routine is exited. Note that the timing clock Ta is continuously updated in the RAM 5 even after exiting the routine.

【0048】次のセンサー通過イベントが有った場合に
は、フラグがオンか否かを判別し(ステップS15
2)、フラグがオンであるときは現在のタイミングクロ
ックTaをRAM5から呼び出す(ステップS15
5)。そして、Taがあらかじめ設定した時間Tx以上
であるか否かを判別する(ステップS156)。このT
xは、手や指揮棒がフォトセンサーの上を通過する時間
より十分小さく設定されている。TaがTx以上である
場合には、カウントをストップして(ステップS15
7)、あらかじめそのイベントに対応して設定された通
常処理を実行する(ステップS158)。次に、カウン
ト値をクリアして(ステップS159)、フラグをオフ
にリセットし(ステップS160)、このルーチンを抜
ける。一方、ステップS156においてTaがTxより
小さい場合には、そのイベントをノイズやセンサーの誤
動作等により発生する偽のイベントとして無効して、通
常処理を行うことなく直ちにこのルーチンを抜ける。
If there is a next sensor passing event, it is determined whether or not the flag is on (step S15).
2) If the flag is on, the current timing clock Ta is called from the RAM 5 (step S15).
5). Then, it is determined whether or not Ta is equal to or longer than the preset time Tx (step S156). This T
x is set to be sufficiently smaller than the time for a hand or baton to pass over the photo sensor. When Ta is Tx or more, the count is stopped (step S15).
7) Then, the normal process set in advance corresponding to the event is executed (step S158). Next, the count value is cleared (step S159), the flag is reset to off (step S160), and this routine is exited. On the other hand, if Ta is smaller than Tx in step S156, the event is invalidated as a false event caused by noise, sensor malfunction, etc., and this routine is immediately exited without performing normal processing.

【0049】このように、上記第8実施形態によれば、
任意のセンサーイベントと次のセンサーイベントとの間
の時間を計測して、あらかじめ設定した所定時間より計
測した時間が小さい場合には、次のセンサーイベントを
無効とする。例えば、1つのフォトセンサーの上を手又
は指揮棒が2回通過したときは、図19(A)に示すよ
うに、最初のイベント入力信号E1の入力からTa経過
後に、次のイベント入力信号E2の入力がある。また、
このときのTaはTxより大きい値となっている。した
がって、この場合には図18のステップS158におけ
る通常処理を行う。しかし例えば、最初に手又は指揮棒
がフォトセンサーを通過したとき、ノイズその他の原因
により、図19(B)に示すように、イベント入力信号
E1の後に偽信号Enが入力される場合がある。この場
合には、TaはTxより小さいので、この偽信号Enを
無効とし、次のイベント入力信号E2を真のセンサーイ
ベントとして取り込む。
As described above, according to the eighth embodiment,
The time between an arbitrary sensor event and the next sensor event is measured, and if the measured time is shorter than a preset predetermined time, the next sensor event is invalidated. For example, when a hand or a baton passes over one photo sensor twice, as shown in FIG. 19A, after the passage of Ta from the input of the first event input signal E1, the next event input signal E2 Is input. Also,
Ta at this time is a value larger than Tx. Therefore, in this case, the normal process in step S158 of FIG. 18 is performed. However, for example, when the hand or baton first passes through the photo sensor, a false signal En may be input after the event input signal E1 due to noise or other causes, as shown in FIG. In this case, since Ta is smaller than Tx, this false signal En is invalidated and the next event input signal E2 is captured as a true sensor event.

【0050】なお、上記第8実施形態では、1つのセン
サーの上を手又は指揮棒等で2回通過させて任意の処理
を行う構成としたが、2つのセンサーの上をそれぞれ1
回通過させた構成の場合にも適用できる。
In the eighth embodiment, one sensor is passed twice with a hand or a baton to perform an arbitrary process.
It can also be applied to the case where the structure is made to pass twice.

【0051】次に、この発明の第9実施形態について説
明する。この実施形態では、手や指揮棒等を反射型フォ
トセンサーの上で動かして、光の反射量に応じてアフタ
ータッチの効果をリアルタイムで付加する。図20は、
第9実施形態におけるセンサーイベント処理のフローで
ある。光の反射があるか否かを判別して(ステップS1
61)、反射が有る場合にはその反射量Yを測定する
(ステップS162)。そして、測定した反射量Yをレ
ベル基準値Tx0、Tx1、Tx2と比較する(ステッ
プS163)。そして、Yの範囲に応じてレベルを設定
する。すなわち、Y<Tx0である場合には(ステップ
S164)、レベル0に決定する(ステップS16
5)。Tx0≦Y<Tx1である場合には(ステップS
166)、レベル1に決定する(ステップS167)。
Tx1≦Y<Tx2である場合には(ステップS16
8)、レベル2に決定する(ステップS169)。Y≧
Tx2の場合には(ステップS170)、レベル3に決
定する(ステップS171)。次に、その決定されたレ
ベル情報をRAM5に書き込み(ステップS172)、
このルーチンを抜ける。ステップS161において光の
反射がない場合には、レベル情報の書き込みを行うこと
なく直ちにこのルーチンを抜ける。レベル0の場合には
アフタータッチの効果ば付加せず、レベル1〜レベル3
の順に次第にアフタータッチの効果が大きくなる。
Next explained is the ninth embodiment of the invention. In this embodiment, a hand, baton, or the like is moved on the reflective photosensor to add the aftertouch effect in real time according to the amount of light reflection. 20
It is a flow of a sensor event process in the ninth embodiment. It is determined whether or not there is light reflection (step S1
61) If there is reflection, the reflection amount Y is measured (step S162). Then, the measured reflection amount Y is compared with the level reference values Tx0, Tx1, and Tx2 (step S163). Then, the level is set according to the range of Y. That is, when Y <Tx0 (step S164), the level 0 is determined (step S16).
5). If Tx0 ≦ Y <Tx1 (step S
166), and level 1 is determined (step S167).
If Tx1 ≦ Y <Tx2 (step S16)
8), the level 2 is decided (step S169). Y ≧
In the case of Tx2 (step S170), level 3 is determined (step S171). Next, the determined level information is written in the RAM 5 (step S172),
Exit this routine. If there is no light reflection in step S161, this routine is immediately exited without writing level information. In case of level 0, after touch effect is not added, level 1 to level 3
The effect of aftertouch gradually increases in the order of.

【0052】このように、上記第9実施形態によれば、
自動演奏を行っている際に、手や指揮棒等をセンサーの
上で上下することにより、リアルタイムでアフタータッ
チの効果を付加することができる。
As described above, according to the ninth embodiment,
While playing automatically, you can add aftertouch effect in real time by moving your hand, baton, etc. up and down on the sensor.

【0053】次に、この発明の第10実施形態について
説明する。この実施形態では、センサーの上で手又は指
揮棒等を通過させてセンサーイベントを検出する場合
に、イベント信号波形を分析して通過速度を検出し、そ
の通過速度に応じた処理を行う。図21(A)は、図1
0(A)と同じく、フォトセンサー11の上で手を通過
させる状態を示す図であり、発光部11aからの照射光
15が手で反射して反射光16が受光部11bに入射す
る。この場合において、通過する速度に応じて、CPU
1に取り込まれるイベント信号波形が異なる。比較的速
く通過させた場合には、図21(B)において、イベン
ト信号は(a)に示すように、立上り及び立ち下がりが
急峻な波形となる。この信号波形を微分すると、その絶
対値は(b)の波形となり、V1のレベルのパルス信号
になる。また、遅く通過させた場合には、イベント信号
は(c)に示すように、立上り及び立ち下がりがなだら
かな波形となる。この信号波形を微分すると、その絶対
値は(d)の波形となり、V1よりも小さいV2のレベ
ルのパルス信号になる。
Next explained is the tenth embodiment of the invention. In this embodiment, when a sensor event is detected by passing a hand, a baton, or the like over the sensor, the event signal waveform is analyzed to detect the passing speed, and processing according to the passing speed is performed. FIG. 21 (A) is shown in FIG.
Like FIG. 0 (A), it is a diagram showing a state in which a hand is passed over the photo sensor 11, the irradiation light 15 from the light emitting unit 11a is reflected by the hand, and the reflected light 16 is incident on the light receiving unit 11b. In this case, depending on the passing speed, the CPU
The event signal waveforms captured in 1 are different. When the event signal is passed relatively quickly, the event signal in FIG. 21B has steep rising and falling waveforms as shown in (a). When this signal waveform is differentiated, its absolute value becomes the waveform of (b), which is a pulse signal of V1 level. If the event signal is passed late, the event signal has a gentle rising and falling waveform as shown in (c). When this signal waveform is differentiated, its absolute value becomes the waveform of (d), which is a pulse signal of V2 level smaller than V1.

【0054】このように、上記第10実施形態によれ
ば、イベント信号波形の性質を利用して、微分波形のレ
ベルが大きい程設定値を上げるように設定すれば、手を
通過させる速度によって楽音のテンポ、音量又は楽音に
付加する効果の度合いを制御することができる。この場
合、1つのフォトセンサーによってセンサーイベントを
検出できるので、コストを低減する効果もある。
As described above, according to the tenth embodiment, if the set value is set to increase as the level of the differential waveform increases by utilizing the property of the event signal waveform, the musical tone is generated depending on the speed at which the hand passes. It is possible to control the tempo, the volume, or the degree of the effect added to the musical sound. In this case, the sensor event can be detected by one photo sensor, which has an effect of reducing the cost.

【0055】なお、上記実施形態では、イベント信号波
形を微分して楽音データを制御するようにしたが、信号
の立上り及び立ち下がりは必ずしも直線的ではない。こ
のため、複数回の微分処理を行って加速度や加加速度を
求めて楽音データを制御するようにしてもよい。
In the above embodiment, the tone data is controlled by differentiating the event signal waveform, but the rising and falling edges of the signal are not necessarily linear. Therefore, the tone data may be controlled by performing the differential processing a plurality of times to obtain the acceleration and jerk.

【0056】また、このイベント信号波形を分析して演
奏者の精神状態を分析するような構成にしてもよい。例
えば、イベント信号波形をフーリエ変換してパワースペ
クトルを求める。定常過程のパワースペクトルの最もレ
ベルの大きい周波数をfとしたとき、2fのレベルがf
のレベルの1/2である場合に、人(この場合は演奏
者)の精神状態が最もくつろいで安定した状態にあると
いわれている。そこで、パワースペクトルの平均値と観
測値との偏差である「ゆらぎ度」を求めて演奏者の精神
状態を分析する。分析した結果、不安定な精神状態と判
断した場合には、例えば楽音に付加するエコー効果を強
くしたり、高音域のレベルを下げたりして、演奏者の精
神状態を安定させるように楽音データを制御する。
Also, the event signal waveform may be analyzed to analyze the mental state of the performer. For example, the power spectrum is obtained by Fourier transforming the event signal waveform. When the frequency with the highest level of the power spectrum in the steady process is f, the level of 2f is f
It is said that the person's (the player in this case) mental state is in the most relaxed and stable state when it is 1/2 of the level. Therefore, the “fluctuation degree”, which is the deviation between the average value of the power spectrum and the observed value, is calculated to analyze the mental state of the performer. If it is determined that the mental state is unstable as a result of the analysis, for example, the echo effect added to the musical sound is strengthened or the level of the high range is lowered to stabilize the musical state of the performer. To control.

【0057】[0057]

【発明の効果】この発明によれば、制御手段は、自動演
奏手段によって再生される楽音を、演奏者の手や指揮棒
等の動きに応じて制御する。したがって、演奏者の体に
検出装置を付けることなく、演奏者の人体の動きを検出
して再生する楽音を制御することができる。
According to the present invention, the control means controls the musical sound reproduced by the automatic performance means in accordance with the movement of the player's hand, baton, or the like. Therefore, it is possible to detect the movement of the human body of the performer and control the musical sound to be reproduced, without attaching the detection device to the body of the performer.

【図面の簡単な説明】[Brief description of drawings]

【図1】この発明の第1〜第4実施形態及び第6〜第1
0実施形態におけるシステム構成を示すブロック図。
FIG. 1 is a first to a fourth embodiment and a sixth to a first embodiment of the present invention.
The block diagram which shows the system configuration | structure in 0 embodiment.

【図2】この発明の各実施形態に共通するCPUの動作
を示すメインフローチャート。
FIG. 2 is a main flowchart showing an operation of a CPU common to each embodiment of the present invention.

【図3】図2におけるイベント処理のフローチャート。FIG. 3 is a flowchart of event processing in FIG.

【図4】図2におけるスイッチ処理のフローチャート。FIG. 4 is a flowchart of a switch process in FIG.

【図5】第1実施形態における操作部を示す平面図。FIG. 5 is a plan view showing an operation unit according to the first embodiment.

【図6】第1実施形態におけるセンサーイベント処理の
フローチャート。
FIG. 6 is a flowchart of sensor event processing according to the first embodiment.

【図7】各実施形態における発音/消音イベント処理の
フローチャート。
FIG. 7 is a flowchart of sounding / silence event processing in each embodiment.

【図8】第2実施形態における操作部を示す図。FIG. 8 is a diagram showing an operation unit according to the second embodiment.

【図9】第2実施形態におけるセンサーイベント処理の
フローチャート。
FIG. 9 is a flowchart of sensor event processing according to the second embodiment.

【図10】第3実施形態におけるフォトセンサーの構造
を示す図。
FIG. 10 is a diagram showing a structure of a photo sensor according to a third embodiment.

【図11】第3実施形態におけるセンサーイベント処理
のフローチャート。
FIG. 11 is a flowchart of sensor event processing according to the third embodiment.

【図12】第4実施形態におけるセンサーイベント処理
のフローチャート。
FIG. 12 is a flowchart of sensor event processing according to the fourth embodiment.

【図13】この発明の第5実施形態におけるシステム構
成を示すブロック図。
FIG. 13 is a block diagram showing a system configuration according to a fifth embodiment of the present invention.

【図14】第5実施形態におけるセンサーイベント処理
のフローチャート。
FIG. 14 is a flowchart of sensor event processing according to the fifth embodiment.

【図15】第6実施形態においてフォトセンサーの上を
通過する手の動きを示す図。
FIG. 15 is a diagram showing the movement of a hand passing over a photo sensor in the sixth embodiment.

【図16】第6実施形態におけるセンサーイベント処理
のフローチャート。
FIG. 16 is a flowchart of sensor event processing according to the sixth embodiment.

【図17】第7実施形態におけるセンサーイベント処理
のフローチャート。
FIG. 17 is a flowchart of sensor event processing according to the seventh embodiment.

【図18】第8実施形態におけるセンサーイベント処理
のフローチャート。
FIG. 18 is a flowchart of sensor event processing according to the eighth embodiment.

【図19】第8実施形態におけるイベント入力信号を示
すタイミングチャート。
FIG. 19 is a timing chart showing an event input signal according to the eighth embodiment.

【図20】第9実施形態におけるセンサーイベント処理
のフローチャート。
FIG. 20 is a flowchart of sensor event processing according to the ninth embodiment.

【図21】第10実施形態におけるイベントを説明する
図であり、(A)はフォトセンサーの上で手を通過させ
る状態を示す図。(B)は通過によって生成される信号
波を示す図。
FIG. 21 is a diagram illustrating an event in the tenth embodiment, and FIG. 21A is a diagram showing a state in which a hand is passed over a photo sensor. FIG. 6B is a diagram showing a signal wave generated by passage.

【図22】汎用タイマーインタラプトのフローチャー
ト。
FIG. 22 is a flowchart of a general-purpose timer interrupt.

【図23】自動演奏用タイマーインタラプトのフローチ
ャート。
FIG. 23 is a flowchart of an automatic performance timer interrupt.

【符号の説明】[Explanation of symbols]

1 メインCPU 2 鍵盤 3 コントロールスイッチ群 4 ROM 5 RAM 7 楽音発生装置 11 フォトセンサー 12 フォトセンサー 13 フォトセンサー 14 照射光 15 反射光 1 Main CPU 2 Keyboard 3 Control Switch Group 4 ROM 5 RAM 7 Musical Sound Generator 11 Photo Sensor 12 Photo Sensor 13 Photo Sensor 14 Irradiated Light 15 Reflected Light

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 楽音データに基づいて自動的に当該楽音
を再生させる自動演奏手段と、 人体若しくはその一部又は操作される物体の動きを非接
触で検出して検出情報を生成する動き検出手段と、 前記検出情報に応じて前記楽音データを制御する制御手
段と、 を備えたことを特徴とする楽音制御装置。
1. An automatic performance means for automatically reproducing the musical sound based on the musical sound data, and a motion detecting means for non-contactly detecting the motion of a human body or a part thereof or an operated object to generate detection information. And a control means for controlling the musical sound data according to the detection information.
【請求項2】 前記動き検出手段は、前記人体若しくは
その一部又は物体の動きによって、遮断若しくは透過す
る光の変化又は反射する光の変化を検出して前記検出情
報を生成することを特徴とする請求項1記載の楽音制御
装置。
2. The movement detecting means generates the detection information by detecting a change in light that is blocked or transmitted or a light that is reflected by the movement of the human body, a part thereof, or an object. The musical sound control device according to claim 1.
【請求項3】 前記検出情報は、前記光の変化量を所定
の閾値と比較してオン又はオフのディジタル情報又は前
記光の変化量を示すアナログ情報であることを特徴とす
る請求項2記載の楽音制御装置。
3. The detection information is digital information on or off by comparing the amount of change of the light with a predetermined threshold value or analog information indicating the amount of change of the light. Tone control device.
【請求項4】 前記制御手段は、前記検出情報の信号
波形を分析する波形分析手段を備え、当該波形分析手段
によって分析された前記信号波形に応じて前記楽音デー
タを制御することを特徴とする請求項1又は2記載の楽
音制御装置。
4. The control means comprises a waveform analysis means for analyzing a signal waveform of the detection information, and controls the musical sound data according to the signal waveform analyzed by the waveform analysis means. The musical sound control device according to claim 1.
【請求項5】 前記波形分析手段は、前記信号波形を微
分して前記人体若しくはその一部又は物体の動きの速度
を分析し、 前記制御手段は、当該動きの速度に応じて前記楽音デー
タを制御することを特徴とする請求項4記載の楽音制御
装置。
5. The waveform analysis means differentiates the signal waveform to analyze the speed of movement of the human body or a part thereof or an object, and the control means analyzes the musical sound data according to the speed of movement. 5. The musical tone control device according to claim 4, which is controlled.
【請求項6】 前記波形分析手段は、前記信号波形をフ
ーリエ変換して前記人体若しくはその一部又は物体の動
きのパワースペクトルを求め、当該パワースペクトルの
ゆらぎ度によって演奏者の精神状態を分析し、 前記制御手段は、当該分析結果に応じて前記楽音データ
を制御することを特徴とする請求項4記載の楽音制御装
置。
6. The waveform analyzing means Fourier-transforms the signal waveform to obtain a power spectrum of movement of the human body or a part thereof or an object, and analyzes the mental state of the performer by the fluctuation degree of the power spectrum. 5. The musical tone control apparatus according to claim 4, wherein the control means controls the musical tone data according to the analysis result.
【請求項7】 前記制御手段は、前記検出情報に応じて
前記楽音データのテンポを制御することを特徴とする請
求項1〜6のいずれかに記載の楽音制御装置。
7. The musical tone control apparatus according to claim 1, wherein the control means controls the tempo of the musical tone data according to the detection information.
【請求項8】 前記自動演奏手段は、再生する曲を2拍
子系又は3拍子系として選択的に分類する拍子選択手段
を備え、 前記動き検出手段は、発光部及び受光部をそれぞれ有す
る2つの光センサーからなり、 前記制御手段は、前記再生する曲が前記3拍子系に分類
されているときは、指揮動作により各光センサーが生成
する2回の前記検出情報の周期に応じて前記楽音データ
のテンポを制御し、前記再生する曲が前記2拍子に分類
されているときは、いずれか一方のみの光センサーが生
成する2回の前記検出情報の周期に応じて前記楽音デー
タのテンポを制御することを特徴とする請求項7記載の
楽音制御装置。
8. The automatic playing means comprises a time signature selecting means for selectively classifying a music piece to be reproduced as a two-beat system or a three-beat system, and the motion detecting means has two light emitting parts and two light receiving parts. When the musical composition to be reproduced is classified into the three-beat system, the control means comprises the musical tone data according to two detection information cycles generated by each optical sensor by a conducting operation. The tempo of the musical sound data is controlled according to the cycle of the detection information generated twice by only one of the optical sensors when the music to be reproduced is classified into the two beats. 8. The musical sound control device according to claim 7, wherein
【請求項9】 前記制御手段は、前記検出情報に応じて
前記楽音データの音量を制御することを特徴とする請求
項1〜6のいずれかに記載の楽音制御装置。
9. The musical tone control apparatus according to claim 1, wherein the control means controls the volume of the musical tone data according to the detection information.
【請求項10】 前記制御手段は、前記検出情報に応じ
て前記楽音データに付加する効果の度合いを制御するこ
とを特徴とする請求項1〜6のいずれかに記載の楽音制
御装置。
10. The musical tone control apparatus according to claim 1, wherein the control means controls the degree of the effect added to the musical tone data according to the detection information.
【請求項11】 前記自動演奏手段は、楽音のシーケン
スデータを記憶する記憶手段を備え、 前記制御手段は、前記検出情報に応じて前記記憶手段か
ら前記楽音データを呼び出すタイミングを制御すること
を特徴とする請求項1〜6のいずれかに記載の楽音制御
装置。
11. The automatic performance means comprises a storage means for storing sequence data of musical tones, and the control means controls timing of calling the musical tone data from the storage means according to the detection information. 7. The musical sound control device according to claim 1.
【請求項12】 前記自動演奏手段は、操作に応じて音
高を決定する鍵盤、及び、制御情報に応じてこの鍵盤を
自動的に押鍵又は離鍵させる鍵盤駆動手段を備え、 前記制御手段は、前記検出情報に応じて前記楽音データ
を呼び出すタイミングを制御する際に、前記鍵盤駆動手
段に押鍵又は離鍵の制御情報を送出することを特徴とす
る請求項11記載の楽音制御装置。
12. The automatic playing means includes a keyboard for determining a pitch according to an operation, and a keyboard driving means for automatically pressing or releasing the keyboard according to control information. 12. The musical tone control apparatus according to claim 11, wherein when controlling the timing of calling the musical tone data according to the detection information, the musical tone control device sends control information of key depression or key release to the keyboard driving means.
【請求項13】 前記制御手段は、前記動き検出手段が
一定時間内に連続して複数の検出情報を生成したとき
は、通常処理及び当該通常処理以外の他の複数の処理を
行うことを特徴とする請求項1〜12のいずれかに記載
の楽音制御装置。
13. The control unit performs a normal process and a plurality of processes other than the normal process when the motion detecting unit continuously generates a plurality of pieces of detection information within a fixed time. 13. The musical sound control device according to claim 1.
【請求項14】 前記制御手段は、前記動き検出手段が
前記検出情報を生成した後にあらかじめ設定した時間内
に次の検出情報を生成したときは、当該次の検出情報を
無効にすることを特徴とする請求項1〜13のいずれか
に記載の楽音制御装置。
14. The control means invalidates the next detection information when the motion detection means generates the next detection information within a preset time after generating the detection information. The musical sound control device according to any one of claims 1 to 13.
JP8118233A 1996-04-17 1996-04-17 Music control device Pending JPH09281963A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8118233A JPH09281963A (en) 1996-04-17 1996-04-17 Music control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8118233A JPH09281963A (en) 1996-04-17 1996-04-17 Music control device

Publications (1)

Publication Number Publication Date
JPH09281963A true JPH09281963A (en) 1997-10-31

Family

ID=14731531

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8118233A Pending JPH09281963A (en) 1996-04-17 1996-04-17 Music control device

Country Status (1)

Country Link
JP (1) JPH09281963A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11242483A (en) * 1997-12-26 1999-09-07 Roland Corp Electronic musical device
GB2375430A (en) * 2001-02-23 2002-11-13 Yamaha Corp Tone generating controlling system employing a motion sensor
JP2003015648A (en) * 2001-06-28 2003-01-17 Kawai Musical Instr Mfg Co Ltd Electronic musical sound generating device and automatic playing method
WO2006043536A1 (en) * 2004-10-18 2006-04-27 Sony Corporation Content reproducing method and content reproducing device
US7161079B2 (en) 2001-05-11 2007-01-09 Yamaha Corporation Audio signal generating apparatus, audio signal generating system, audio system, audio signal generating method, program, and storage medium
JP2009122706A (en) * 2009-03-09 2009-06-04 Yamaha Corp Automatic music playing apparatus and program
CN103168317A (en) * 2010-10-26 2013-06-19 博泽哈尔施塔特汽车零件两合公司 Sensor unit for contactlessly actuating a vehicle door

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11242483A (en) * 1997-12-26 1999-09-07 Roland Corp Electronic musical device
US6897779B2 (en) 2001-02-23 2005-05-24 Yamaha Corporation Tone generation controlling system
GB2375430A (en) * 2001-02-23 2002-11-13 Yamaha Corp Tone generating controlling system employing a motion sensor
GB2375430B (en) * 2001-02-23 2003-12-17 Yamaha Corp Tone generatiion controlling system
US7161079B2 (en) 2001-05-11 2007-01-09 Yamaha Corporation Audio signal generating apparatus, audio signal generating system, audio system, audio signal generating method, program, and storage medium
JP2003015648A (en) * 2001-06-28 2003-01-17 Kawai Musical Instr Mfg Co Ltd Electronic musical sound generating device and automatic playing method
WO2006043536A1 (en) * 2004-10-18 2006-04-27 Sony Corporation Content reproducing method and content reproducing device
US8358906B2 (en) 2004-10-18 2013-01-22 Sony Corporation Content playback method and content playback apparatus
USRE47948E1 (en) 2004-10-18 2020-04-14 Sony Corporation Content playback method and content playback apparatus
JP2009122706A (en) * 2009-03-09 2009-06-04 Yamaha Corp Automatic music playing apparatus and program
CN103168317A (en) * 2010-10-26 2013-06-19 博泽哈尔施塔特汽车零件两合公司 Sensor unit for contactlessly actuating a vehicle door
JP2014500414A (en) * 2010-10-26 2014-01-09 ブローゼ・ファールツォイクタイレ・ゲーエムベーハー・ウント・コンパニ・コマンディットゲゼルシャフト・ハルシュタット Sensor unit for operating vehicle doors without contact
CN103168317B (en) * 2010-10-26 2016-05-04 博泽哈尔施塔特汽车零件两合公司 For activate the sensor unit of car door in contactless mode
US9707929B2 (en) 2010-10-26 2017-07-18 Brose Fahrzeugteile Gmbh & Co. Kommanditgesellschaft, Bamberg Sensor unit for actuating a vehicle door in a contactless fashion

Similar Documents

Publication Publication Date Title
US9761210B2 (en) Control methods for musical performance
US5094137A (en) Electronic stringed instrument with control of musical tones in response to a string vibration
US5670729A (en) Virtual music instrument with a novel input device
US20150279343A1 (en) Apparatus and method to enhance the expressive qualities of digital music
CA2243980A1 (en) Musical toy
JP2005526264A (en) Musical instrument apparatus and method
US7112738B2 (en) Electronic musical instrument
JP6149354B2 (en) Electronic keyboard instrument, method and program
JP3922225B2 (en) Pronunciation control program and electronic keyboard instrument using the same
JPH09281963A (en) Music control device
US9966051B2 (en) Sound production control apparatus, sound production control method, and storage medium
EP2084701A2 (en) Musical instrument
WO2011102744A1 (en) Dual theremin controlled drum synthesiser
JP3259602B2 (en) Automatic performance device
JP2891248B2 (en) Electronic keyboard instrument
JP2646812B2 (en) Electronic musical instrument
JP2668761B2 (en) Electronic musical instrument
JPH0715033Y2 (en) Electronic keyboard instrument
JPH0715034Y2 (en) Electronic keyboard instrument
JPH08717Y2 (en) Electronic keyboard instrument
JP2556370Y2 (en) Electronic keyboard instrument
JP4067399B2 (en) Glissando control device
EP0284047B1 (en) Electronic stringed instrument
JP2961675B2 (en) Electronic musical instrument
Goudard et al. Data anticipation for gesture recognition in the air percussion