JP2008242285A - Performance device and program for attaining its control method - Google Patents

Performance device and program for attaining its control method Download PDF

Info

Publication number
JP2008242285A
JP2008242285A JP2007085507A JP2007085507A JP2008242285A JP 2008242285 A JP2008242285 A JP 2008242285A JP 2007085507 A JP2007085507 A JP 2007085507A JP 2007085507 A JP2007085507 A JP 2007085507A JP 2008242285 A JP2008242285 A JP 2008242285A
Authority
JP
Japan
Prior art keywords
tempo
music
exercise
data
cpu
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
JP2007085507A
Other languages
Japanese (ja)
Inventor
Michihiko Sasaki
道彦 佐々木
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 JP2007085507A priority Critical patent/JP2008242285A/en
Publication of JP2008242285A publication Critical patent/JP2008242285A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a performance device and a program for attaining its control method, by which a user can perform exercise or dance in accordance with a music piece, even when music whose tempo is hard to understand is reproduced, when exercise or dance is performed. <P>SOLUTION: An acceleration value which is output from an acceleration detection circuit is read for each predetermined period, and the read acceleration value is accumulated in an acceleration history buffer. When a music piece data is selected and a user performs exercise or dance in accordance with the reproduced music piece, a detected acceleration value comes to have a cycle according to the tempo of the music piece (music tempo). By calculating a time interval between zero crossing points of the acceleration value on a center value of variation, which is accumulated in an acceleration history buffer, the cycle (exercise tempo) of the acceleration value is calculated. When difference of the exercise tempo and the music tempo is a predetermined value or more, guide sound is uttered, and when the difference is within the predetermined value, utterance of the guide sound is stopped. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、演奏データを再生し、再生された演奏データのテンポに合わせて運動やダンスなどを行うときに使用される演奏装置およびその制御方法を実現するプログラムに関する。   The present invention relates to a performance apparatus used when playing performance data and performing exercise or dance in accordance with the tempo of the played performance data, and a program for realizing the control method thereof.

演奏データを再生し、再生された演奏データのテンポに合わせて運動やダンスなどを行うときに使用される演奏装置は、従来から知られている。   2. Description of the Related Art Conventionally, a performance apparatus used for reproducing performance data and performing exercise or dance in accordance with the tempo of the reproduced performance data is known.

このような演奏装置として、入力された条件に基づいて、ユーザの運動開始時点から終了時点に至るまでの目標脈拍数の時間的パターンを作成し、選択された音楽データの再生に合わせて運動を行ったときのユーザの脈拍数を検出し、前記目標脈拍数と前記検出された脈拍数との差およびユーザの運動テンポに基づいて、補正すべき音楽データのテンポを算出し、この算出されたテンポで、選択された音楽データのテンポを補正するようにしたものがある(たとえば、特許文献1参照)。   As such a performance device, based on the input conditions, a temporal pattern of a target pulse rate from the exercise start point to the end point of the user is created, and the exercise is performed in accordance with the reproduction of the selected music data. The user's pulse rate when detected is detected, and the tempo of the music data to be corrected is calculated based on the difference between the target pulse rate and the detected pulse rate and the user's exercise tempo. There is one in which the tempo of selected music data is corrected with the tempo (see, for example, Patent Document 1).

ところで、この従来の演奏装置では、ビート感のない曲や、倍のテンポなのか半分のテンポなのか判断し辛い曲であっても、選択された音楽データのテンポは、算出されたテンポで補正されるので、目標テンポに正確に近づいたテンポの音楽データが再生される。しかし、音楽データのテンポが目標テンポにいくら近づいたとしても、それを聴取するユーザにとっては、元の音楽データがテンポを判断し辛い曲である限り、再生された音楽データは相変わらず、テンポを判断し辛い。   By the way, with this conventional performance device, the tempo of the selected music data is corrected with the calculated tempo, even if it is a song that does not have a sense of beat or a song that is difficult to judge whether it is double or half tempo. As a result, music data having a tempo accurately approaching the target tempo is reproduced. However, no matter how close the tempo of the music data is to the target tempo, for the user who listens to it, as long as the original music data is a song for which it is difficult to determine the tempo, the reproduced music data will still be judged It ’s painful.

テンポを判断し辛い曲のテンポを、その聴取者に分からせるようにする装置として、再生中の楽音に合わせてメトロノーム音を再生するようにした電子楽器がある(たとえば、特許文献2参照)。
特開2001−299980号公報 特開平5−108067号公報
As an apparatus that allows the listener to know the tempo of a song whose tempo is difficult to determine, there is an electronic musical instrument that reproduces a metronome sound in accordance with the musical sound being reproduced (see, for example, Patent Document 2).
JP 2001-299980 A Japanese Patent Laid-Open No. 5-108067

しかし、上記従来の電子楽器では、メトロノーム音は、ユーザの操作に応じて発音状態と消音状態とが切り替わるだけであり、テンポを判断し辛い曲についてのみ、自動的に鳴らすことはできなかった。また、メトロノーム音は、演奏の歩調を合わせるために鳴らすものであり、運動やダンスを行う際のテンポを知らせるために鳴らすものではなかった。したがって、この従来の電子楽器を、運動やダンスなどを行うときに使用される演奏装置に適用した場合には、メトロノーム音を鳴らすかどうかを、運動やダンスを行う前に、あるいは、運動やダンス中に、一々選択指定する必要があり、運動やダンス時には、煩わしくて利用できなかった。   However, in the above-described conventional electronic musical instrument, the metronome sound is simply switched between the sound generation state and the mute state in accordance with the user's operation, and cannot be automatically played only for a song whose tempo is difficult to judge. Also, the metronome sound is played to keep pace with the performance, not to inform the tempo when performing exercise or dance. Therefore, when this conventional electronic musical instrument is applied to a performance device that is used when exercising or dancing, whether or not the metronome sound is sounded before or after exercising or dancing. During the exercise and dance, it was bothersome and unavailable.

本発明は、この点に着目してなされたものであり、運動やダンスなどを行っているときに、テンポを判断し辛い曲が再生されたとしても、ユーザはその曲に合わせて運動やダンスなどを行うことが可能となる演奏装置およびその制御方法を実現するプログラムを提供することを目的とする。   The present invention has been made paying attention to this point, and even if a song that is difficult to judge when the tempo is played while exercising or dancing, the user can exercise or dance according to the song. An object of the present invention is to provide a performance apparatus that can perform the above and the like and a program that realizes the control method thereof.

上記目的を達成するため、請求項1に記載の演奏装置は、演奏データの音楽テンポを取得する音楽テンポ取得手段と、前記演奏データを再生する再生手段と、ユーザが行う反復運動の運動テンポを検出する運動テンポ検出手段と、前記音楽テンポ取得手段によって取得された音楽テンポと前記運動テンポ検出手段によって検出された運動テンポとの差が所定の値より大きい場合には、前記取得された音楽テンポで、前記再生手段によって再生された演奏データの拍に合わせて、ガイド音を発音させる一方、前記取得された音楽テンポと前記検出された運動テンポとの差が前記所定の値以下である場合には、前記ガイド音を発音させないように制御する制御手段とを有することを特徴とする。   In order to achieve the above object, a performance device according to claim 1 is provided with a music tempo acquisition means for acquiring a music tempo of performance data, a reproduction means for reproducing the performance data, and an exercise tempo of repetitive exercise performed by a user. If the difference between the motion tempo detection means to detect and the music tempo acquired by the music tempo acquisition means and the exercise tempo detected by the exercise tempo detection means is greater than a predetermined value, the acquired music tempo In the case where the guide sound is generated in accordance with the beat of the performance data reproduced by the reproducing means, and the difference between the acquired music tempo and the detected exercise tempo is equal to or less than the predetermined value. Comprises control means for controlling so as not to generate the guide sound.

また、請求項2に記載の演奏装置は、請求項1の演奏装置において、前記反復運動の停止を検出する運動停止検出手段をさらに有し、前記制御手段は、前記運動停止検出手段によって前記反復運動の停止が検出されたときには、前記ガイド音を発音させないように制御することを特徴とする。   The performance device according to claim 2 further includes motion stop detection means for detecting stop of the repetitive motion in the performance device according to claim 1, wherein the control means is configured to perform the repetition by the motion stop detection means. Control is performed so as not to generate the guide sound when the stop of the movement is detected.

上記目的を達成するため、請求項3に記載のプログラムは、請求項1と同様の技術的思想によって実現できる。   In order to achieve the above object, the program according to claim 3 can be realized by the same technical idea as claim 1.

請求項1または3に記載の発明によれば、取得された音楽テンポと検出された運動テンポとの差が所定の値より大きい場合には、前記取得された音楽テンポで、再生された演奏データの拍に合わせて、ガイド音が発音されるので、運動やダンスなどを行っているときに、テンポを判断し辛い曲が再生されたとしても、ユーザはその曲に合わせて運動やダンスなどを行うことが可能となる。また、一旦ガイド音が発音されたとしても、前記取得された音楽テンポと前記検出された運動テンポとの差が前記所定の値以下になれば、そのガイド音は発音されなくなる。つまり、音楽テンポから運動テンポがすれたときにのみ、自動的にガイド音が発音されるので、ユーザは、運動やダンスなどを行っているときに、ボタンなどの操作をすることなく、音楽テンポに合った運動を継続して行うことができる。   According to the first or third aspect of the present invention, when the difference between the acquired music tempo and the detected exercise tempo is larger than a predetermined value, the performance data reproduced at the acquired music tempo Since the guide sound is pronounced according to the beat of the song, even if a tune that is difficult to judge is played while exercising or dancing, the user can do exercise or dance according to the song. Can be done. Even if a guide sound is once generated, if the difference between the acquired music tempo and the detected exercise tempo is equal to or less than the predetermined value, the guide sound is not generated. In other words, since the guide sound is automatically generated only when the exercise tempo deviates from the music tempo, the user can operate the music tempo without operating buttons or the like during exercise or dance. You can continue to exercise that suits your needs.

請求項2に記載の発明によれば、ユーザの反復運動の停止が検出されたときには、前記ガイド音は発音されなくなるので、ユーザにとっては、運動を故意に止めたときでもガイド音が発音されるという煩わしさが解消される。   According to the second aspect of the present invention, when the stop of the repetitive motion of the user is detected, the guide sound is not sounded, so that the user can sound the guide sound even when the motion is intentionally stopped. The annoyance is eliminated.

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

図1は、本発明の一実施の形態に係る演奏装置を適用した携帯型音楽プレーヤMPの概略構成を示すブロック図である。   FIG. 1 is a block diagram showing a schematic configuration of a portable music player MP to which a performance device according to an embodiment of the present invention is applied.

同図に示すように、音楽プレーヤMPは、ユーザの脈拍を検出するための脈拍センサ1と、ユーザの運動状態を検出するための加速度センサ2と、複数のスイッチからなる設定操作子3と、ヘッドフォン4と、脈拍センサ1からのセンサ出力に基づいて脈拍を検出する脈拍検出回路5と、加速度センサ2からのセンサ出力に基づいてx軸、y軸およびz軸方向の加速度をそれぞれ検出する加速度検出回路6と、設定操作子3の各スイッチの操作状態を検出する操作状態検出回路7と、装置全体の制御を司るCPU8と、該CPU8が実行する制御プログラムや各種テーブルデータ等を記憶するROM9と、曲データ、各種入力情報および演算結果等を一時的に記憶するRAM10と、タイマ割込み処理における割込み時間や各種時間を計時するタイマ11と、各種情報等を表示する、たとえば液晶ディスプレイ(LCD)および発光ダイオード(LED)等からなる表示器12と、前記制御プログラムを含む各種アプリケーションプログラムや各種曲データ、各種データ等を記憶するフラッシュメモリ13と、PC(パーソナルコンピュータ)100を接続し、PC100とデータの送受信を行うUSB(universal serial bus)インターフェース(I/F)14と、前記記憶された曲データのうち、MIDIデータによって形成される曲データを楽音信号に変換するMIDI音源回路15と、前記記憶された曲データのうち、圧縮音声データによって形成される曲データを伸長して楽音信号に変換する圧縮音声デコーダ16と、MIDI音源回路15および圧縮音声デコーダ16からそれぞれ出力される各楽音信号に各種効果を付与するための効果回路17と、該効果回路17からの楽音信号を増幅するアンプ18とにより構成されている。   As shown in the figure, the music player MP includes a pulse sensor 1 for detecting the user's pulse, an acceleration sensor 2 for detecting the user's movement state, a setting operator 3 including a plurality of switches, Headphone 4, pulse detection circuit 5 that detects a pulse based on the sensor output from pulse sensor 1, and acceleration that detects acceleration in the x-axis, y-axis, and z-axis directions based on the sensor output from acceleration sensor 2. A detection circuit 6, an operation state detection circuit 7 for detecting an operation state of each switch of the setting operator 3, a CPU 8 for controlling the entire apparatus, and a ROM 9 for storing a control program executed by the CPU 8, various table data, and the like. RAM 10 for temporarily storing song data, various input information, calculation results, etc., and interrupt time and various times in timer interrupt processing A timer 11, a display 12 for displaying various information, for example, a liquid crystal display (LCD), a light emitting diode (LED), and the like, and various application programs including the control program, various music data, various data, and the like are stored. The flash memory 13 is connected to a PC (personal computer) 100, and a USB (universal serial bus) interface (I / F) 14 for transmitting / receiving data to / from the PC 100 and MIDI data among the stored music data are formed. A MIDI sound source circuit 15 for converting the music data to be converted into a musical sound signal, a compressed audio decoder 16 for expanding the music data formed by the compressed audio data from the stored music data and converting it into a musical sound signal, and MIDI From the sound source circuit 15 and the compressed audio decoder 16 The circuit includes an effect circuit 17 for imparting various effects to each musical tone signal output and an amplifier 18 for amplifying the musical tone signal from the effect circuit 17.

上記構成要素5〜18は、バス19を介して相互に接続され、MIDI音源回路15および圧縮音声デコーダ16には効果回路17が接続され、効果回路17にはアンプ18が接続され、アンプ18にはヘッドフォン4が接続されている。   The above components 5 to 18 are connected to each other via a bus 19, an effect circuit 17 is connected to the MIDI sound source circuit 15 and the compressed audio decoder 16, an amplifier 18 is connected to the effect circuit 17, and the amplifier 18 is connected to the amplifier 18. Is connected to headphones 4.

脈拍センサ1は、ユーザの耳たぶや腕、指などに装着して脈拍に同期した信号を出力するものである。本実施の形態では、脈拍センサ1は、ヘッドフォン4の耳当て部分に設けられて、ユーザの脈拍数を検出するが、もちろん、ユーザの運動の邪魔にならないようにして脈拍を検出できるものであれば、これに限らないことは言うまでもない。   The pulse sensor 1 is attached to a user's earlobe, arm, finger, or the like and outputs a signal synchronized with the pulse. In the present embodiment, the pulse sensor 1 is provided in the ear pad portion of the headphone 4 and detects the user's pulse rate. Of course, the pulse sensor 1 can detect the pulse without disturbing the user's movement. Needless to say, this is not a limitation.

加速度センサ2は、音楽プレーヤMPの筐体内に設けられている。音楽プレーヤMPは、後述するように、ユーザの腰に装着されるので、ユーザが運動すると、音楽プレーヤMPには、その運動に応じた垂直方向および水平方向の加速度が生じる。加速度センサ2は、この垂直方向および水平方向の加速度を検出する。なお、加速度センサ2は、音楽プレーヤMPに内蔵されるものに限らず、音楽プレーヤMPと別体で構成するようにしてもよい。   The acceleration sensor 2 is provided in the housing of the music player MP. As will be described later, since the music player MP is mounted on the user's waist, when the user exercises, the music player MP generates vertical and horizontal accelerations corresponding to the exercise. The acceleration sensor 2 detects the acceleration in the vertical direction and the horizontal direction. The acceleration sensor 2 is not limited to the one built in the music player MP, and may be configured separately from the music player MP.

フラッシュメモリ13には、前述のように、CPU8が実行する制御プログラムも記憶でき、ROM9に制御プログラムが記憶されていない場合には、このフラッシュメモリ13に制御プログラムを記憶させておき、それをRAM10に読み込むことにより、ROM9に制御プログラムを記憶している場合と同様の動作をCPU8にさせることができる。このようにすると、制御プログラムの追加やバージョンアップ等が容易に行える。   As described above, the flash memory 13 can also store a control program to be executed by the CPU 8. When the control program is not stored in the ROM 9, the flash memory 13 stores the control program and stores it in the RAM 10. The CPU 8 can be caused to perform the same operation as when the control program is stored in the ROM 9. In this way, control programs can be easily added and upgraded.

図2は、音楽プレーヤMPの外観((a))とその装着例((b))を示す図である。   FIG. 2 is a diagram showing an external appearance ((a)) of the music player MP and an example of mounting ((b)).

図2(a)に示すように、音楽プレーヤMPのパネル面には、複数のスイッチ3a〜3dとLCD12aが設けられている。スイッチ3aは、電源のオン/オフを指示するための電源ボタンであり、スイッチ3bは、曲のテンポをアップさせて運動のペースをアップさせるためのペースアップボタンであり、スイッチ3cは、曲のテンポをダウンさせて運動のペースをダウンさせるためのペースダウンボタンであり、スイッチ3dは、LCD12a上にメニューを表示させるためのメニューボタンである。なお、スイッチ3bおよび3cは、メニュー項目やパラメータを選択したり、両スイッチ3bおよび3cの同時押しで、確定、再生および停止などを指示したりすることもできる。また、ヘッドフォン4は、ケーブル4aを介してヘッドフォンジャック(図示せず)に接続され、ヘッドフォンジャックは、前記アンプ18に接続されている。   As shown in FIG. 2A, a plurality of switches 3a to 3d and an LCD 12a are provided on the panel surface of the music player MP. The switch 3a is a power button for instructing to turn on / off the power, the switch 3b is a pace-up button for increasing the tempo of the song and increasing the pace of the exercise, and the switch 3c is a song button. It is a pace down button for lowering the tempo and the pace of exercise, and the switch 3d is a menu button for displaying a menu on the LCD 12a. Note that the switches 3b and 3c can select menu items and parameters, and can instruct confirmation, reproduction, stop, and the like by simultaneously pressing both switches 3b and 3c. The headphone 4 is connected to a headphone jack (not shown) via a cable 4 a, and the headphone jack is connected to the amplifier 18.

ユーザは、音楽プレーヤMPを、たとえばベルトを介して腰に装着する。図2(b)は、この装着状態の一例を示している。もちろん、音楽プレーヤMPを装着する体の部位は、腰に限らず、他のどの部位でもよいが、本実施の形態では、音楽プレーヤMPをユーザの運動支援に用いているので、少なくとも運動の邪魔にならない部位に装着すべきである。   The user wears the music player MP on his / her waist via, for example, a belt. FIG. 2B shows an example of this wearing state. Of course, the body part to which the music player MP is attached is not limited to the waist and may be any other part. However, in the present embodiment, the music player MP is used for assisting the user's exercise, so at least an obstacle to the exercise. Should be worn on the part that does not become.

図3は、前記フラッシュメモリ13に記憶されたデータの一部を示す図である。同図には、一部データとして、プレイリスト(PlayList)ファイル13a、個人情報(PersonalInfo)ファイル13b、音楽情報(MusicInfo)ファイル13cおよび圧縮オーディオ演奏ファイル13dn(n=1,2,…)が記載されている。   FIG. 3 is a view showing a part of data stored in the flash memory 13. In the figure, a playlist (PlayList) file 13a, a personal information (PersonalInfo) file 13b, a music information (MusicInfo) file 13c, and a compressed audio performance file 13dn (n = 1, 2,...) Are described as partial data. Has been.

プレイリスト・ファイル13aは、歩行(WALK)用プレイリスト13a1とジョギング(JOG)用プレイリスト13a2を備えている。ここで、プレイリストとは、再生(演奏)可能な曲の一覧表(リスト)である。他の携帯音楽プレーヤでは、プレイリストは、再生可能な曲とその再生順序を示しているが、本実施の形態では、プレイリストは、再生可能な曲だけ示し、その再生順序を示していない。歩行用プレイリスト13a1は、歩行(WALK)モード用に選曲された曲の一覧表であり、ジョギング用プレイリスト13a2は、ジョギング(JOG)モード用に選曲された曲の一覧表である。プレイリストには、本実施の形態では、各曲(圧縮オーディオ演奏ファイル13dn)にそれぞれ付与されたIDが登録されるが、これに限らず、各曲を特定できるものであれば、名称など、どのようなものであってもよい。なお、本実施の形態では、動作モードとして、歩行モードとジョギングモードの2種類モードしか備わっていないが、これは、専ら説明を簡単化するためであり、実際には、運動の種類(通常、10種類程度)に応じた数の動作モードが備わっている。   The playlist file 13a includes a walking (WALK) playlist 13a1 and a jogging (JOG) playlist 13a2. Here, the play list is a list (list) of songs that can be played (played). In other portable music players, the playlist indicates reproducible songs and their reproduction order, but in this embodiment, the playlist shows only reproducible songs and does not indicate the reproduction order. The walking playlist 13a1 is a list of songs selected for the walking (WALK) mode, and the jogging playlist 13a2 is a list of songs selected for the jogging (JOG) mode. In the present embodiment, an ID assigned to each song (compressed audio performance file 13dn) is registered in the playlist. However, the present invention is not limited to this. Any thing is acceptable. In this embodiment, there are only two types of operation modes, a walking mode and a jogging mode, but this is only for the sake of simplifying the explanation. In practice, the type of exercise (usually, There are a number of operation modes corresponding to about 10 types).

個人情報ファイル13bも、プレイリスト・ファイル13aと同様に、動作モードに応じた種類の個人情報を備えており、本実施の形態では、歩行モード用の個人情報13b1とジョギングモード用の個人情報13b2を備えている。個人情報とは、具体的には、テンポ範囲であり、このテンポ範囲を規定する最小テンポ値と最大テンポ値が記載される。このテンポ範囲、つまり最小テンポ値と最大テンポ値は、プレイリストに登録する演奏ファイル13dnを決定するために使用される。具体的には、歩行用プレイリスト13a1には、80bpm(=歩行モード最小テンポ値)から140bpm(=歩行モード最大テンポ値)までのテンポ値(=メインテンポのテンポ値)の演奏ファイル13dnが選曲されて登録され、ジョギング用プレイリスト13a2には、140bpm(=ジョギングモード最小テンポ値)から190bpm(=ジョギングモード最大テンポ値)までのテンポ値(=メインテンポのテンポ値)の演奏ファイル13dnが選曲されて登録される。   Similarly to the playlist file 13a, the personal information file 13b also includes personal information of a type corresponding to the operation mode. In this embodiment, the personal information 13b1 for the walking mode and the personal information 13b2 for the jogging mode are provided. It has. Specifically, the personal information is a tempo range, and a minimum tempo value and a maximum tempo value that define the tempo range are described. This tempo range, that is, the minimum tempo value and the maximum tempo value are used to determine the performance file 13dn to be registered in the playlist. Specifically, a performance file 13dn having a tempo value (= tempo value of the main tempo) from 80 bpm (= walking mode minimum tempo value) to 140 bpm (= walking mode maximum tempo value) is selected in the playlist 13a1 for walking. The performance file 13dn having a tempo value (= tempo value of main tempo) from 140 bpm (= jogging mode minimum tempo value) to 190 bpm (= jogging mode maximum tempo value) is selected in the jogging playlist 13a2. To be registered.

音楽情報ファイル13cは、各演奏ファイル13dnにそれぞれ対応するメタデータ13cn(n=1,2,…)を備えている。メタデータ13cnとしては、曲中で持続しているメインテンポ(MAIN TEMPO)、曲中で刻々と変わるテンポ(TEMPO)、拍位置(BEAT)、フェード位置(FADE)、音量(VOLUME)、曲の雰囲気(ATMOSPHERE)などが登録されている。メインテンポは、曲全体を通じて最も持続するテンポを表す値で、曲全体を代表するテンポ値であり、前記プレイリストに曲データを登録するために選曲したり、プレイリストに登録された曲データを再生のために選曲したりするときに用いられる。テンポは、検出された運動テンポと比較され、その比較結果に応じて、ガイド音を発音させるかどうかを判別するときに用いられる。拍位置は、曲の始めから終わりまでの各拍の位置を曲の先頭を基準に時間で表したものであり、ガイド音を発音するときの発音位置とするために用いられる。典型的には、1拍ずつであるが、複数拍(たとえば、4拍)間隔で、時間的位置を保持するようにしてもよい。なお、フェード位置以降のデータは、本発明とは直接関係しない。   The music information file 13c includes metadata 13cn (n = 1, 2,...) Corresponding to each performance file 13dn. The metadata 13cn includes the main tempo (MAIN TEMPO) that continues in the song, the tempo (TEMPO) that changes every moment in the song, the beat position (BEAT), the fade position (FADE), the volume (VOLUME), the volume Atmosphere (ATMOSPHERE) is registered. The main tempo is a value that represents the most sustained tempo throughout the entire song, and is a tempo value that represents the entire song. The main tempo is selected to register song data in the playlist or the song data registered in the playlist. Used when selecting music for playback. The tempo is compared with the detected exercise tempo, and is used when determining whether or not to generate a guide sound according to the comparison result. The beat position represents the position of each beat from the beginning to the end of the music in terms of time with respect to the beginning of the music, and is used as a sounding position when a guide sound is generated. Typically, it is one beat at a time, but the temporal position may be held at intervals of a plurality of beats (for example, four beats). The data after the fade position is not directly related to the present invention.

演奏ファイル13dnは、圧縮されたオーディオ演奏データによって形成される演奏ファイルである。圧縮方法は、どのようなものを用いてもよいが、たとえば、MP3(MPEG audio layer 3),WMA(Windows(登録商標) media audio),AAC(advanced audio coding)などを挙げることができる。演奏ファイル13dnの基となる圧縮オーディオ演奏データは、図8を用いて後述するように、PC100によって取得される。PC100は、圧縮オーディオ演奏データを取得すると同時に、その圧縮オーディオ演奏データの内容を解析し、その圧縮オーディオ演奏データに対応するメタデータを生成する。   The performance file 13dn is a performance file formed by compressed audio performance data. Any compression method may be used, and examples thereof include MP3 (MPEG audio layer 3), WMA (Windows (registered trademark) media audio), and AAC (advanced audio coding). The compressed audio performance data which is the basis of the performance file 13dn is acquired by the PC 100 as will be described later with reference to FIG. The PC 100 obtains the compressed audio performance data and simultaneously analyzes the contents of the compressed audio performance data, and generates metadata corresponding to the compressed audio performance data.

図4は、MIDI演奏データのデータフォーマットの一例を示す図である。   FIG. 4 is a diagram showing an example of the data format of the MIDI performance data.

同図に示すように、各MIDI演奏データ(各トラックチャンクに含まれるMIDI演奏データ)は、イベントデータ(キーオンイベントデータまたはキーオフイベントデータ)と、その読み出しタイミングを示すタイミングデータとを1組のデータとして、複数組のデータによって構成されている。なお、図示例では、SMF(standard MIDI file)のフォーマットが採用されているが、フォーマットは、これに限られない。   As shown in the figure, each MIDI performance data (MIDI performance data included in each track chunk) is a set of data including event data (key-on event data or key-off event data) and timing data indicating the read timing. As shown in FIG. In the illustrated example, the SMF (standard MIDI file) format is adopted, but the format is not limited to this.

なお、本実施の形態では、音楽プレーヤMPが再生可能な曲データとして、圧縮オーディオ演奏データとMIDI演奏データの2種類を採用しているが、いずれか一方のみでもよいし、これより多くてもよい。   In the present embodiment, two types of music data that can be played back by the music player MP are used: compressed audio performance data and MIDI performance data. However, either one or more may be used. Good.

以上のように構成された音楽プレーヤMPが実行する制御処理を、まず図5を参照してその概要を説明し、次に図6〜図12を参照して詳細に説明する。   The control process executed by the music player MP configured as described above will be described first with reference to FIG. 5 and then in detail with reference to FIGS.

図5は、加速度センサ2および加速度検出回路6によって検出された加速度の履歴を示す図である。同図において、縦軸が加速度を示し、横軸が時間を示している。そして、各四角形が、図9を用いて後述するように、40msec毎に検出された加速度値を示している。   FIG. 5 is a diagram showing the history of acceleration detected by the acceleration sensor 2 and the acceleration detection circuit 6. In the figure, the vertical axis represents acceleration and the horizontal axis represents time. Each square indicates an acceleration value detected every 40 msec, as will be described later with reference to FIG.

ユーザが前記電源ボタン3aを操作することで、音楽プレーヤMPの電源をオンすると、前記CPU8は、所定の時間(たとえば、40msec)毎に、加速度検出回路6から出力された加速度値を読み取り、その読み取った加速度値を前記RAM10の所定位置に確保された加速度履歴バッファ(図示せず)に蓄積して行く。加速度センサ2は、前述のように、3軸方向のそれぞれの加速度を検出可能に構成されているが、本実施の形態では、CPU8は、そのうちの重力方向(重力加速度が定常的にかかる方向)の加速度のみを加速度検出回路6から読み取るようにしている。これは、専ら制御処理を簡単化するためであるので、3軸方向のすべての加速度を読み取り、制御処理に用いるようにしてもよい。   When the user turns on the power of the music player MP by operating the power button 3a, the CPU 8 reads the acceleration value output from the acceleration detection circuit 6 every predetermined time (for example, 40 msec). The read acceleration value is accumulated in an acceleration history buffer (not shown) secured at a predetermined position in the RAM 10. As described above, the acceleration sensor 2 is configured so as to be able to detect the respective accelerations in the three-axis directions. In the present embodiment, the CPU 8 has the gravitational direction (direction in which the gravitational acceleration is constantly applied). Only the acceleration is read from the acceleration detection circuit 6. Since this is exclusively for simplifying the control process, all the accelerations in the three axis directions may be read and used for the control process.

次に、曲データが選択されて、その再生が指示されると、CPU8は、その曲データの再生を開始する。ユーザが再生された曲に合わせて運動やダンスなど(以下、これらを一纏めにして「運動」という)を行うと、ユーザは通常、曲のテンポ(音楽テンポ)に合わせて運動を行うので、検出された加速度値は、曲のテンポに応じた周期を持つようになる。CPU8は、加速度値の周期を、図5に示すように、加速度値が変動の中心値を下から上に突き抜けた時点(ゼロクロス点)から、次に加速度値が変動の中心値を下から上に突き抜けた時点(ゼロクロス点)までの時間として検出する。このようにして検出された加速度値の周期を、運動テンポと言うことにする。   Next, when music data is selected and its reproduction is instructed, the CPU 8 starts reproduction of the music data. When a user performs exercise, dance, etc. (hereinafter referred to as “exercise” collectively) according to the played music, the user usually exercises according to the tempo of the song (music tempo), so detection The acceleration value thus obtained has a period corresponding to the tempo of the song. As shown in FIG. 5, the CPU 8 sets the cycle of the acceleration value from the time when the acceleration value penetrates the fluctuation center value from the bottom to the top (zero cross point), and then the acceleration value changes from the bottom to the center value of the fluctuation. Detected as the time until the point of time (zero cross point) that penetrated. The period of the acceleration value detected in this way is called an exercise tempo.

音楽テンポと運動テンポとの間には相関関係があり、音楽テンポが速くなれば、運動テンポも速くなる。したがって、ユーザが音楽テンポを理解して運動を行っているときには、音楽テンポと運動テンポとの差分は、常に所定値内に収まることになる。しかし、再生された曲が音楽テンポの分かり辛い曲であるときには、ユーザの中には、その音楽テンポが分からずに運動を続ける人もあり得る。このようなユーザの行った運動から検出される運動テンポは、再生曲の音楽テンポと相関のないものになるので、音楽テンポと運動テンポとの差分は、前記所定値を超えてしまう。このとき、CPU8は、ガイド音をMIDIデータで生成し、再生曲の拍位置で、そのガイド音を発音させるように、MIDI音源回路15に指示する。これにより、ユーザは、ガイド音から再生曲のテンポが分かるので、再生曲の音楽テンポに合った運動を行うことができる。   There is a correlation between the music tempo and the exercise tempo, and the faster the music tempo, the faster the exercise tempo. Accordingly, when the user is exercising while understanding the music tempo, the difference between the music tempo and the exercise tempo is always within a predetermined value. However, when the reproduced song is a song whose music tempo is difficult to understand, some users may continue to exercise without knowing the music tempo. Since the exercise tempo detected from the exercise performed by the user is not correlated with the music tempo of the reproduced music, the difference between the music tempo and the exercise tempo exceeds the predetermined value. At this time, the CPU 8 generates a guide sound with MIDI data and instructs the MIDI sound source circuit 15 to generate the guide sound at the beat position of the reproduced music. As a result, the user can know the tempo of the reproduced music from the guide sound, and thus can perform an exercise that matches the music tempo of the reproduced music.

ユーザが、ガイド音に従って、再生曲の音楽テンポに合った運動を行うようになると、音楽テンポと運動テンポとの差分は再度、前記所定値内に収まることになる。このときCPU8は、ガイド音の発音を停止する。ユーザが再生曲の音楽テンポに合った運動をしているにも拘わらず、ガイド音が発音されるのは、ユーザにとって煩わしいからである。   When the user performs an exercise according to the music tempo of the reproduced music according to the guide sound, the difference between the music tempo and the exercise tempo is again within the predetermined value. At this time, the CPU 8 stops generating the guide sound. This is because it is bothersome for the user that the guide sound is pronounced even though the user is exercising at the music tempo of the reproduced music.

一方、ユーザが運動を止めたときには、加速度値の周期は検出されなくなり、その結果、運動テンポは“0”に近づくので、音楽テンポと運動テンポとの差分は、前記所定値を超えてしまう。しかし、この場合は、ユーザが故意に運動を停止した場合であるので、CPU8は、ガイド音を発音させない。   On the other hand, when the user stops exercising, the period of the acceleration value is not detected, and as a result, the exercise tempo approaches “0”, so the difference between the music tempo and the exercise tempo exceeds the predetermined value. However, in this case, since the user intentionally stops the exercise, the CPU 8 does not sound the guide sound.

このように、本実施の形態では、運動を行っているときに、音楽テンポを判断し辛い曲が再生され、運動がその曲に合わなくなったときには、その曲の音楽テンポに従ったガイド音が発音されるので、ユーザはその曲に合わせて運動を行うことができる。また、一旦ガイド音が発音されるようになっても、ユーザがその曲の音楽テンポが分かり、その音楽テンポに合った運動を行うようになると、ガイド音は発音されなくなるので、ユーザは煩わしいガイド音を聴かなくて済むようになる。さらに、ユーザが運動を停止したときには、その運動停止を検出し、ガイド音を発音しないようにしたので、ユーザの思い通りにガイド音の発音を制御することができる。   As described above, in this embodiment, when exercising, a song whose music tempo is difficult to determine is reproduced, and when the exercise does not match the song, a guide sound according to the music tempo of the song is generated. Since it is pronounced, the user can exercise according to the song. Also, once the guide sound is pronounced, the user can know the music tempo of the song, and when the user starts exercising according to the music tempo, the guide sound is no longer pronounced, so the user is troublesome to guide You don't have to listen to the sound. Furthermore, when the user stops exercising, the cessation of motion is detected and the guide sound is not generated, so that the sound of the guide sound can be controlled as the user desires.

次に、この制御処理を詳細に説明する。   Next, this control process will be described in detail.

図6は、音楽プレーヤMP、特にCPU8が実行するメインルーチンの手順を示すフローチャートである。   FIG. 6 is a flowchart showing the procedure of the main routine executed by the music player MP, particularly the CPU 8.

本メインルーチンでは、CPU8は、主として、
(1)初期設定処理(ステップS1)
(2)PC100との通信処理(ステップS3)
(3)MIDI演奏/オーディオ演奏の割り込み許可処理(ステップS5)
の各処理を行う。本メインルーチンは、前記電源ボタン3aによって電源がオンされたときに起動される。起動後、前記(1)の初期設定処理が1回実行され、これに続いて、前記(2)および(3)の各処理が順次実行される。そして(3)の処理が終了すると、(2)の処理に戻って、(2)および(3)の処理が、電源ボタン3aによって電源がオフされるまで、繰り返し実行される。
In this main routine, the CPU 8 mainly
(1) Initial setting process (step S1)
(2) Communication processing with PC100 (step S3)
(3) MIDI performance / audio performance interrupt permission processing (step S5)
Each process is performed. This main routine is started when the power is turned on by the power button 3a. After startup, the initial setting process (1) is executed once, and subsequently, the processes (2) and (3) are sequentially executed. When the process (3) is completed, the process returns to the process (2), and the processes (2) and (3) are repeatedly executed until the power is turned off by the power button 3a.

前記(1)の初期設定処理では、CPU8は、RAM6をクリアしたり、各種パラメータの値をデフォルト値に設定したりする等の初期設定を行う。この(1)初期設定処理ではさらに、ガイド音を発音するときにセット(“1”)され、発音しないときにリセット(“0”)されるガイドフラグをリセットし、MIDI演奏およびオーディオ演奏の各割り込みを禁止し、運動テンポ割り込み処理の割り込みを許可する設定も行われる。   In the initial setting process (1), the CPU 8 performs initial settings such as clearing the RAM 6 and setting various parameter values to default values. This (1) initial setting process further resets the guide flag which is set ("1") when a guide sound is generated and reset ("0") when the guide sound is not generated. Settings are also made to prohibit interruption and allow interruption of exercise tempo interruption processing.

ユーザが、前記USBI/F14とPC100とを、たとえばUSBケーブル(図示せず)を介して接続すると、CPU8は、USBI/F14にPC100が接続されたことを検知し、処理を前記(2)の通信処理に進める。   When the user connects the USB I / F 14 and the PC 100 via, for example, a USB cable (not shown), the CPU 8 detects that the PC 100 is connected to the USB I / F 14 and performs the processing of (2). Proceed to the communication process.

図7は、この通信処理の詳細な手順を示すフローチャートであり、同図には、音楽プレーヤMP側の通信処理、つまり前記(2)通信処理とPC100側の通信処理が示されている。なお、USBケーブルで接続された音楽プレーヤMPは、PC100側から外部記憶装置(ストレージ)と認識されるので、PC100は、音楽プレーヤMPの前記フラッシュメモリ13の記憶内容を自由に読み書きすることができる。   FIG. 7 is a flowchart showing the detailed procedure of this communication process, and shows the communication process on the music player MP side, that is, the (2) communication process and the communication process on the PC 100 side. Since the music player MP connected with the USB cable is recognized as an external storage device (storage) from the PC 100 side, the PC 100 can freely read and write the stored contents of the flash memory 13 of the music player MP. .

音楽プレーヤMPの記憶容量は、PC100の記憶容量に比べて、極めて少ないので、あらゆる動作モード(本実施の形態では、2種類の動作モードが例示されているが、実際には、前述のように10種類程度)で必要なすべての曲データ(前記圧縮オーディオ演奏ファイル13dnを含む)を音楽プレーヤMP(のフラッシュメモリ13)に記憶させることはできない。そこで、PC100に曲データを蓄えておき、その中から、当面必要な一部の曲データを選択して、フラッシュメモリ13に記憶させるようにしている。そして、当面必要な曲データであるかどうかの判断、必要な曲データのフラッシュメモリ13への記憶、不必要な曲データのフラッシュメモリ13からの削除および前記プレイリスト・ファイル13aなどの更新などは、すべてPC100側で行うようにしている。このためPC100と音楽プレーヤMPとの間の通信処理が必要となる。   Since the storage capacity of the music player MP is extremely small compared to the storage capacity of the PC 100, all the operation modes (in this embodiment, two types of operation modes are illustrated, but actually, as described above, It is impossible to store all music data (including the compressed audio performance file 13dn) necessary for about 10 types in the music player MP (the flash memory 13). Therefore, music data is stored in the PC 100, and a part of music data that is necessary for the time being is selected and stored in the flash memory 13. Determination of whether or not the song data is necessary for the time being, storage of the required song data in the flash memory 13, deletion of unnecessary song data from the flash memory 13 and update of the playlist file 13a, etc. All of these are performed on the PC 100 side. For this reason, communication processing between the PC 100 and the music player MP is required.

PC100側の通信処理では、PC100のCPU(図示せず)は、次の処理を行う。すなわち
(101)音楽プレーヤMPに個人情報(PersonalInfo)ファイル13bを要求して受信する処理(ステップS101)
(102)個人情報ファイル13bから、各動作モードにおけるテンポ範囲を取得する処理(ステップS102)
(103)上記(102)の処理で取得した各動作モードにおけるテンポ範囲に応じて、曲データを選曲する処理(ステップS103)
(104)上記(103)の選曲結果に応じて、音楽情報(MusicInfo)ファイル13cおよびプレイリスト(PlayList)ファイル13aを生成する処理(ステップS104)
(105)音楽プレーヤMP(のフラッシュメモリ13)内の圧縮オーディオ演奏ファイル13dn、音楽情報(MusicInfo)ファイル13cおよびプレイリスト(PlayList)ファイル13aを更新する処理
である。
In the communication processing on the PC 100 side, the CPU (not shown) of the PC 100 performs the following processing. That is, (101) Processing for requesting and receiving the personal information (PersonalInfo) file 13b from the music player MP (step S101).
(102) Processing for obtaining the tempo range in each operation mode from the personal information file 13b (step S102)
(103) A process of selecting music data according to the tempo range in each operation mode acquired in the process of (102) (step S103)
(104) Processing for generating a music information (MusicInfo) file 13c and a playlist (PlayList) file 13a in accordance with the music selection result of (103) (step S104)
(105) A process of updating the compressed audio performance file 13dn, the music information (MusicInfo) file 13c, and the playlist (PlayList) file 13a in the music player MP (the flash memory 13 thereof).

前記(103)の選曲処理では、各動作モードの個人情報に記載された最小テンポ値と最大テンポ値によって規定されるテンポ範囲に応じて、曲データを選択するが、「テンポ範囲に応じて」とは、このテンポ範囲を少しでも超えたテンポの曲データは選曲しないという意味ではなく、多少の余裕、たとえば10%程度の余裕を持って選曲するという意味である。したがって、個人情報に、最小テンポ値として90bpm、最大テンポ値として140bpmが記載されていたときには、81bpmから154bpmまでの範囲のテンポの曲データが選曲されることになる。   In the music selection process of (103), music data is selected according to the tempo range defined by the minimum tempo value and the maximum tempo value described in the personal information of each operation mode. This does not mean that song data with a tempo that exceeds this tempo range even a little is selected, but means that the song is selected with some margin, for example, about 10% margin. Therefore, when the personal information includes 90 bpm as the minimum tempo value and 140 bpm as the maximum tempo value, music data having a tempo in the range from 81 bpm to 154 bpm is selected.

上記(103)選曲処理によって、プレイリストに登録すべき曲データが動作モード毎に選曲されるので、前記(104)の処理では、まず、動作モード毎のプレイリストを生成した後、すべてのプレイリストをまとめて、1つのプレイリスト・ファイルを生成する。次に、選曲された曲データには必ず、対応するメタデータが存在する(図7を用いて後述するように、曲データを取得するときには、同時にメタデータが生成されるし、そもそも、前記(103)の選曲処理は、各曲データに対応付けられたメタデータの内容に基づいてなされるから)ので、選曲されたすべての曲データに対応するすべてのメタデータをまとめて、1つの音楽情報ファイルを生成する。ただし、選曲された曲データとその曲データに対応するメタデータとが、保存先がPC100側から音楽プレーヤMPに変わったとしても、1対1の対応関係が変わらないように、曲データに付与されたIDを当該メタデータにも付与しておく。   Since the music data to be registered in the playlist is selected for each operation mode by the above (103) music selection process, in the process of (104), first, a playlist for each operation mode is generated, and then all the playlists are played. The list is put together to generate one playlist file. Next, there is always metadata corresponding to the selected song data (as will be described later with reference to FIG. 7, when acquiring song data, metadata is generated at the same time. 103) is selected based on the content of the metadata associated with each piece of music data), so that all the metadata corresponding to all the selected piece of music data are put together into one piece of music information. Generate a file. However, the selected song data and the metadata corresponding to the song data are added to the song data so that the one-to-one correspondence does not change even if the storage destination is changed from the PC 100 side to the music player MP. The assigned ID is also given to the metadata.

前記(101)の処理に応じて、CPU8は、フラッシュメモリ13に記憶されている個人情報ファイル13bを、前記USBI/F14を介してPC100に送信する(ステップS11)。また、上記(105)の処理に応じて、CPU8は、フラッシュメモリ13内に記憶されている、圧縮オーディオ演奏ファイル13dn、音楽情報(MusicInfo)ファイル13cおよびプレイリスト(PlayList)ファイル13aを更新する(ステップS12)。   In response to the process (101), the CPU 8 transmits the personal information file 13b stored in the flash memory 13 to the PC 100 via the USB I / F 14 (step S11). Further, in accordance with the process (105), the CPU 8 updates the compressed audio performance file 13dn, the music information (MusicInfo) file 13c, and the playlist (PlayList) file 13a stored in the flash memory 13 ( Step S12).

図8は、圧縮オーディオ演奏ファイル13dnの基になる圧縮オーディオ演奏データを取得するPC100側の処理の手順を示すフローチャートである。   FIG. 8 is a flowchart showing the procedure of the process on the PC 100 side for acquiring the compressed audio performance data that is the basis of the compressed audio performance file 13dn.

PC100の前記CPUはまず、たとえばユーザの指示に応じて、圧縮オーディオ演奏データを取得し、HDD(ハードディスク装置)などの外部記憶装置(図示せず)に保存する(ステップS111)。圧縮オーディオ演奏データの取得先としては、いくつか考えられるが、たとえばインターネット上の圧縮オーディオ演奏データ提供サイトを挙げることができる。もちろん、これに限らず、非圧縮オーディオ演奏データを圧縮して、圧縮オーディオ演奏データを生成するソフトウェアを用いて、オーディオ演奏データのソース(音楽CDなど)から得たオーディオ演奏データを圧縮して取得するようにしてもよい。   First, the CPU of the PC 100 acquires compressed audio performance data, for example, in accordance with a user instruction, and stores it in an external storage device (not shown) such as an HDD (hard disk device) (step S111). There are several possible sources for obtaining compressed audio performance data. For example, a site for providing compressed audio performance data on the Internet can be cited. Of course, the present invention is not limited to this, and the audio performance data obtained from the audio performance data source (such as a music CD) is compressed and acquired using software that compresses uncompressed audio performance data and generates compressed audio performance data. You may make it do.

次にCPUは、取得した圧縮オーディオ演奏データを解析し、メタデータを生成する(ステップS112)。具体的には、圧縮オーディオ演奏データを解析して、メインテンポ、テンポ、拍位置、フェード位置などを検出し、これらを記載したメタデータを生成する。圧縮オーディオ演奏データを解析する方法としては、たとえば、信号処理を施すことにより、音量の時間的変化を検出したり、音量の時間的変化の周期性を検出したり、それらの検出を特定の周波数帯域の信号について行うようにしたりする方法が考えられる。特に、低い周波数帯域の音量変化の周期性を検出することにより、バスドラムで刻まれた拍やテンポを検出することができる。また、人間が、圧縮オーディオ演奏データを伸長したものを実際に聴いて、メタデータを作成したり修正したりしてもよい。   Next, the CPU analyzes the acquired compressed audio performance data and generates metadata (step S112). Specifically, the compressed audio performance data is analyzed, main tempo, tempo, beat position, fade position, etc. are detected, and metadata describing these is generated. As a method of analyzing the compressed audio performance data, for example, by performing signal processing, the temporal change of the volume is detected, the periodicity of the temporal change of the volume is detected, or the detection is performed at a specific frequency. A method for performing the processing on a band signal is conceivable. In particular, by detecting the periodicity of the volume change in the low frequency band, it is possible to detect the beat and tempo carved by the bass drum. Further, a human may actually listen to a decompressed compressed audio performance data to create or modify metadata.

さらにCPUは、生成したメタデータを当該圧縮オーディオ演奏データに関連付けて前記外部記憶装置に保存する(ステップS113)。   Further, the CPU stores the generated metadata in the external storage device in association with the compressed audio performance data (step S113).

前記図6に戻り、演奏データの選曲操作がなされたときには、CPU8は、処理を前記(3)のMIDI演奏/オーディオ演奏の割り込み許可処理に進める(ステップS4→S5)。ここで、演奏データの選曲操作には、ユーザが、たとえば前記メニューボタン3dを操作することで、前記LCD12a上にメニューを表示させ、そのメニューの中から、演奏データを選曲する項目を選択し、それに応じて一覧表示された、選曲可能な演奏データの名称の一覧からいずれかを選択するという、ユーザの積極的な選曲操作や、前記プレイリスト・ファイル13a中のいずれかのプレイリスト(実際には、選択されている動作モードに対応するもの)に登録された圧縮オーディオ演奏データの中から、所定の条件に基づいてCPU8が選択するという、ユーザの消極的な選曲操作などが含まれる。そして、選曲される演奏データも、上記圧縮オーディオ演奏データの他に、MIDI演奏データが含まれる。また、本実施の形態では、圧縮オーディオ演奏データは、前述のように、PC100から音楽プレーヤMPのフラッシュメモリ13に転送されたものであるが、これは、CPU8として、圧縮オーディオ演奏データを解析できる程、演算能力の高いものを採用したくないからである。したがって、CPU8として、演算能力の高いものを採用してもよいのであれば、圧縮オーディオ演奏データのみ、外部から取り込み、音楽プレーヤMP内で、つまり、CPU8が、その圧縮オーディオ演奏データを解析して、対応するメタデータを作成するようにしてもよい。また、MIDI演奏データは、圧縮オーディオ演奏データと同様に、PC100から転送されたものであってもよいし、CPU8が自動的に生成したものであってもよい。MIDI演奏データは、演算能力の低いCPU8であっても、生成することができるからである。   Returning to FIG. 6, when the music performance music selection operation is performed, the CPU 8 advances the process to the MIDI performance / audio performance interrupt permission process (3) (steps S4 to S5). Here, in the music data selection operation, for example, the user operates the menu button 3d to display a menu on the LCD 12a, and selects an item for selecting performance data from the menu. In response to this, the user's active music selection operation of selecting one from the list of performance data names that can be selected, or any playlist in the playlist file 13a (actually Includes a negative music selection operation of the user that the CPU 8 selects based on a predetermined condition from the compressed audio performance data registered in the one corresponding to the selected operation mode). The performance data to be selected includes MIDI performance data in addition to the compressed audio performance data. In the present embodiment, the compressed audio performance data is transferred from the PC 100 to the flash memory 13 of the music player MP as described above, but this can be analyzed by the CPU 8 as the compressed audio performance data. This is because it is not desirable to use a computer with a high computing ability. Therefore, if a CPU 8 having a high computing capability may be adopted, only compressed audio performance data is taken in from the outside, and the music player MP, that is, the CPU 8 analyzes the compressed audio performance data. Corresponding metadata may be created. Similarly to the compressed audio performance data, the MIDI performance data may be transferred from the PC 100 or may be automatically generated by the CPU 8. This is because the MIDI performance data can be generated even by the CPU 8 having a low calculation capability.

前記(3)MIDI演奏/オーディオ演奏の割り込み許可処理では、CPU8は、選曲された演奏データの種類に応じて、MIDI演奏あるいはオーディオ演奏のいずれかの割り込みを許可する。つまり、選曲された演奏データがMIDI演奏データであるときには、CPU8は、MIDI演奏割り込み処理の割り込みを許可する一方、選曲された演奏データが圧縮オーディオ演奏データであるときには、CPU8は、オーディオ演奏割り込み処理の割り込みを許可する。   In the (3) MIDI performance / audio performance interruption permission process, the CPU 8 permits interruption of either MIDI performance or audio performance according to the type of performance data selected. In other words, when the selected performance data is MIDI performance data, the CPU 8 permits interruption of the MIDI performance interrupt process. On the other hand, when the selected performance data is compressed audio performance data, the CPU 8 performs the audio performance interrupt process. Allow interrupts.

図11は、上記オーディオ演奏割り込み処理の手順を示すフローチャートであり、本オーディオ演奏割り込み処理は、上述のように、CPU8によって割り込みが許可されると、割り込みが禁止されるまで、前記タイマ11が、たとえば12msec毎に発生する割り込み信号に応じて、起動される。   FIG. 11 is a flowchart showing the procedure of the audio performance interrupt process. When the interrupt is permitted by the CPU 8 as described above, the timer 11 is set until the interrupt is prohibited. For example, it is activated in response to an interrupt signal generated every 12 msec.

本オーディオ演奏割り込み処理では、CPU8は、選曲された圧縮オーディオ演奏データを所定サンプル数分読み出して、前記圧縮音声デコーダ16に出力する(ステップS51)。これにより、圧縮音声デコーダ16は、供給された所定サンプル数分の圧縮オーディオ演奏データを伸長して楽音信号に変換し、所定のタイミングで、前記効果回路17に出力する。たとえば、サンプリング周波数を48kHzとした場合には、1回の割り込みで、576サンプル分の圧縮オーディオ演奏データがデコードされることになる。   In the audio performance interrupt process, the CPU 8 reads out the selected compressed audio performance data for a predetermined number of samples and outputs it to the compressed audio decoder 16 (step S51). As a result, the compressed audio decoder 16 decompresses the supplied compressed audio performance data for a predetermined number of samples and converts it into a musical sound signal, and outputs it to the effect circuit 17 at a predetermined timing. For example, when the sampling frequency is 48 kHz, compressed audio performance data for 576 samples is decoded by one interruption.

図12は、前記MIDI演奏割り込み処理の手順を示すフローチャートであり、本MIDI演奏割り込み処理も、オーディオ演奏割り込み処理と同様に、CPU8によって割り込みが許可されると、割り込みが禁止されるまで、タイマ11が、たとえば1msec毎に発生する割り込み信号に応じて、起動される。   FIG. 12 is a flowchart showing the procedure of the MIDI performance interrupt process. Similarly to the audio performance interrupt process, the MIDI performance interrupt process is performed until the interrupt is disabled when the CPU 8 permits the interrupt. For example, in response to an interrupt signal generated every 1 msec.

MIDI演奏データは、前記図4中の1つのトラックチャンクに記憶されたデータに相当する。つまり、MIDI演奏データは、タイミングデータとイベントデータを1組のデータとするデータシーケンスによって形成される。そして、タイミングデータは、イベントの発生時刻を1つ前のイベントからの時間、つまり「イベント+相対時間」で表すものであり、その直後のイベントデータの発生タイミングを規定するので、本MIDI演奏割り込み処理では、CPU8は、まず現在時刻を取得し(ステップS61)、次に取得した現在時刻とタイミングデータで指定されたイベントの発生時刻とを比較する(ステップS62)。この比較の結果、両者が一致した場合には、CPU8は、続くイベントデータの内容を解析し、そのイベントデータがキーオンイベント(つまり、発音すべきイベント)であるときには、前記MIDI音源回路15に、キーオンイベントで指定される楽音の発音を指示する(ステップS62→S63)。   The MIDI performance data corresponds to data stored in one track chunk in FIG. That is, the MIDI performance data is formed by a data sequence in which timing data and event data are a set of data. The timing data represents the time of occurrence of the event as the time from the previous event, that is, “event + relative time”, and defines the timing of event data generation immediately thereafter. In the process, the CPU 8 first acquires the current time (step S61), and then compares the acquired current time with the occurrence time of the event specified by the timing data (step S62). As a result of the comparison, if the two match, the CPU 8 analyzes the contents of the subsequent event data. When the event data is a key-on event (that is, an event to be sounded), the CPU 8 An instruction is given to sound the musical tone designated by the key-on event (steps S62 → S63).

図9は、運動テンポ割り込み処理の手順を示すフローチャートであり、本運動テンポ割り込み処理も、オーディオ演奏割り込み処理と同様に、CPU8によって割り込みが許可されると、割り込みが禁止されるまで、タイマ11が、たとえば40msec毎に発生する割り込み信号に応じて、起動される。なお、運動テンポ割り込み処理の割り込みは、前述のように、前記(1)初期設定処理で許可される。   FIG. 9 is a flowchart showing the procedure of the exercise tempo interrupt process. In the exercise tempo interrupt process, as with the audio performance interrupt process, when the interrupt is permitted by the CPU 8, the timer 11 is set until the interrupt is prohibited. For example, it is activated in response to an interrupt signal generated every 40 msec. Note that the interruption of the exercise tempo interruption process is permitted in the (1) initial setting process as described above.

本運動テンポ割り込み処理は、主として
(11)運動テンポの周期を検出する運動テンポ周期検出処理(ステップS21,S22)
(12)運動テンポの平均値を算出する運動テンポ平均値算出処理(ステップS24,S25)
(13)上記(12)の運動テンポ平均値算出処理で算出された運動テンポ平均値と音楽テンポとの差分を算出する差分算出処理(ステップS27)
(14)上記(12)の差分算出処理で算出された差分に基づいて、ガイド音の発音を制御するガイド音制御処理(ステップS27〜S31,S34〜S36)
(15)ユーザの運動停止を検出する運動停止検出処理(ステップS32,S33)
を行う。
This exercise tempo interruption process mainly includes (11) exercise tempo cycle detection processing (steps S21 and S22) for detecting the cycle of exercise tempo.
(12) Exercise tempo average value calculation processing for calculating an average value of exercise tempo (steps S24 and S25)
(13) Difference calculation process for calculating a difference between the exercise tempo average value calculated in the above (12) exercise tempo average value calculation process and the music tempo (step S27).
(14) Guide sound control processing (steps S27 to S31, S34 to S36) for controlling the pronunciation of the guide sound based on the difference calculated in the difference calculation processing of (12) above.
(15) Exercise stop detection process for detecting a user stop motion (steps S32 and S33)
I do.

運動テンポ割り込み処理に対する割り込みが発生し、運動テンポ割り込み処理が起動されると、CPU8は、処理を前記(11)の運動テンポ周期検出処理に進める。この(11)運動テンポ周期検出処理では、まずCPU8は、前述のように、加速度検出回路6から出力された加速度値を読み取り、前記加速度履歴バッファに蓄積する(ステップS21)。次にCPU8は、運動テンポの周期を検出する処理を行う(ステップS22)。運動テンポの周期は、図5を用いて前述したように、変動の中心値に対するゼロクロス点を観測することによって検出している。本実施の形態では、CPU8に過剰な負荷がかからないように、運動テンポ割り込み処理に対する割り込み時間を40msecにしている。つまり、この割り込み時間を短くすればする程、加速度値はより細かく検出できるので、運動テンポの周期の検出精度が向上する。しかし、検出精度に比例して演算処理が増大するので、CPU8への負荷は増大する。そして、CPU8としては、製造コストの関係上、演算能力の低いものを採用しているので、むやみに検出精度を向上させることができない。そこで、CPU8の能力と検出精度との調和を取って、割り込み時間を40msecに制限している。この状況で、運動テンポの周期の検出精度を向上させる処理として、スプライン処理が知られているので、加速度履歴バッファに蓄積された加速度値にスプライン処理を施すことで、割り込み時間を40msecに制限しながら、より短い時間単位の加速度値の履歴を求めるようにしてもよい。   When an interruption for the exercise tempo interruption process occurs and the exercise tempo interruption process is activated, the CPU 8 advances the process to the exercise tempo cycle detection process of (11). In this (11) exercise tempo cycle detection process, first, as described above, the CPU 8 reads the acceleration value output from the acceleration detection circuit 6 and stores it in the acceleration history buffer (step S21). Next, the CPU 8 performs processing for detecting the period of the exercise tempo (step S22). The period of the exercise tempo is detected by observing the zero cross point with respect to the center value of the fluctuation as described above with reference to FIG. In the present embodiment, the interrupt time for the exercise tempo interrupt process is set to 40 msec so that the CPU 8 is not overloaded. In other words, the shorter the interruption time is, the more accurately the acceleration value can be detected, so that the accuracy of detecting the period of the exercise tempo is improved. However, since the calculation processing increases in proportion to the detection accuracy, the load on the CPU 8 increases. Since the CPU 8 employs a CPU having a low computing capacity due to manufacturing costs, the detection accuracy cannot be improved unnecessarily. Therefore, the interrupt time is limited to 40 msec in harmony with the capability of the CPU 8 and the detection accuracy. In this situation, spline processing is known as a process for improving the detection accuracy of the period of the exercise tempo, so that the interrupt time is limited to 40 msec by performing spline processing on the acceleration value accumulated in the acceleration history buffer. However, a history of acceleration values in shorter time units may be obtained.

この(11)運動テンポ周期検出処理が終了すると、運動テンポの新たな周期が検出されたかどうか分かるので、新たな周期が検出されたときには、CPU8は、処理を前記(12)の運動テンポ平均値算出処理に進める一方、新たな周期が検出されないときには、CPU8は、処理を前記(15)の運動停止検出処理に進める。   When this (11) exercise tempo cycle detection process is completed, it is known whether or not a new cycle of the exercise tempo has been detected. Therefore, when a new cycle is detected, the CPU 8 performs the process of the exercise tempo average value of (12). On the other hand, when a new cycle is not detected, the CPU 8 advances the process to the motion stop detection process (15).

この(12)運動テンポ平均値算出処理では、まずCPU8は、新たに検出された周期を、前記RAM10の所定位置に確保された運動テンポ履歴バッファ(図示せず)に蓄積する(ステップS24)。次にCPU8は、過去の所定周期分(たとえば、6周期分)の運動テンポの周期を平均し、運動テンポ平均値を算出する(ステップS25)。   In this (12) exercise tempo average value calculation process, the CPU 8 first accumulates the newly detected cycle in an exercise tempo history buffer (not shown) secured at a predetermined position in the RAM 10 (step S24). Next, the CPU 8 averages the period of the exercise tempo for a predetermined period (for example, six periods) in the past, and calculates an average value of the exercise tempo (step S25).

そしてCPU8は、処理を前記(13)の差分算出処理に進める。この(13)差分算出処理では、まずCPU8は、現在時刻における音楽テンポを取得する(ステップS26)。この音楽テンポを取得する取得先は、選曲された演奏データの種類に応じて異なっている。具体的には、選曲された曲データが圧縮オーディオ演奏データである場合には、その圧縮オーディオ演奏データに対応付けられたメタデータが必ずフラッシュメモリ13内に記憶されているので、そのメタデータ内に記載された音楽テンポ(前記図3参照)が取得される。一方、選曲された曲データがMIDI演奏データである場合には、そのヘッダチャンク(前記図4参照)内に記載されている音楽テンポが取得される。次にCPU8は、このように取得された音楽テンポと前記算出された運動テンポ平均値との差分を算出する(ステップS27)。   Then, the CPU 8 advances the process to the difference calculation process (13). In this (13) difference calculation process, first, the CPU 8 acquires the music tempo at the current time (step S26). The acquisition destination for acquiring this music tempo differs depending on the type of performance data selected. Specifically, when the selected song data is compressed audio performance data, the metadata associated with the compressed audio performance data is always stored in the flash memory 13, so 3 is obtained (see FIG. 3). On the other hand, if the selected music data is MIDI performance data, the music tempo described in the header chunk (see FIG. 4) is acquired. Next, the CPU 8 calculates a difference between the music tempo acquired in this way and the calculated exercise tempo average value (step S27).

次にCPU8は、処理を前記(14)のガイド音制御処理に進める。この(14)ガイド音制御処理では、まずCPU8は、前記算出された差分が所定値以上かどうか判別し(ステップS27)、差分が所定値以上のとき、つまり、音楽テンポの分からない状態でユーザが運動を行っているときには、CPU8は、前記ガイドフラグの値をチェックする(ステップS28)。ガイドフラグは、前述のように、ガイド音を発音するときにセットされ、ガイド音を発音しないときにリセットされるフラグである。メインルーチンが開始してから最初に、処理が上記ステップS28に進んだ場合には、ガイドフラグはリセット状態であるので、CPU8は、ガイドフラグをセットした(ステップS28→S29)後、現在時刻より遅い拍位置であって、最初に現れる拍位置を取得する(ステップS30)。この拍位置を取得する取得先も、前記音楽テンポと同様に、選曲された曲データに応じて異なっている。ただし、拍位置と音楽テンポとでデータの種類は異なるものの、拍位置の取得先は、音楽テンポの取得先と同じであるので、その説明は省略する。CPU8は、目的の拍位置を取得すると、図10を用いて後述するガイド割り込み処理の割り込みを発生させる時刻を格納するために前記タイマ11に設けられた割り込み時刻バッファ(図示せず)に、上記取得した拍位置の時刻を設定する(ステップS30)。そしてCPU8は、ガイド割り込み処理に対する割り込み(ガイド割り込み)を許可する(ステップS31)。   Next, the CPU 8 advances the process to the guide sound control process (14). In this (14) guide sound control process, first, the CPU 8 determines whether or not the calculated difference is greater than or equal to a predetermined value (step S27), and when the difference is greater than or equal to a predetermined value, that is, in a state where the music tempo is unknown. When is moving, the CPU 8 checks the value of the guide flag (step S28). As described above, the guide flag is a flag that is set when a guide sound is generated and reset when a guide sound is not generated. When the process proceeds to step S28 for the first time after the main routine is started, the guide flag is in a reset state, so the CPU 8 sets the guide flag (steps S28 → S29) and then starts from the current time. A beat position that appears late and appears first (step S30). The acquisition destination for acquiring the beat position is also different according to the selected music data, like the music tempo. However, although the type of data differs between the beat position and the music tempo, the beat position acquisition source is the same as the music tempo acquisition destination, and thus the description thereof is omitted. When the CPU 8 obtains the target beat position, the CPU 8 stores the above-described time in an interrupt time buffer (not shown) provided in the timer 11 for storing the time for generating an interrupt of the guide interrupt processing described later with reference to FIG. The time of the acquired beat position is set (step S30). Then, the CPU 8 permits an interrupt (guide interrupt) for the guide interrupt process (step S31).

割り込み時刻バッファに設定された前記拍位置と現在時刻とが一致すると、タイマ11は、ガイド割り込み信号を発生する。これに応じて、ガイド割り込み処理が起動する。   When the beat position set in the interrupt time buffer matches the current time, the timer 11 generates a guide interrupt signal. In response to this, the guide interruption process is activated.

図10は、ガイド割り込み処理の手順を示すフローチャートである。   FIG. 10 is a flowchart showing the procedure of the guide interruption process.

本ガイド割り込み処理では、まずCPU8は、MIDI音源回路15にガイド音の発音を指示する(ステップS41)。ここで、ガイド音として、どのような音色の音を発音するかであるが、ガイド音は主として、運動を行っているユーザに、曲のテンポと運動がずれているという警告を与える目的で発音するものであるので、曲と同時にガイド音を再生した場合に、曲の音とガイド音とをはっきり区別することができる音色であることが好ましい。しかし、ユーザの運動を妨げるような、ひどく耳障りな音色は避けた方がよい。具体的には、メトロノーム音のようなピッピッピッや、バスドラム音、シンパル音などを挙げることができる。もちろん、これに限られる訳ではない。   In this guide interruption process, first, the CPU 8 instructs the MIDI sound source circuit 15 to generate a guide sound (step S41). Here, what kind of sound is generated as the guide sound, but the guide sound is mainly generated for the purpose of giving a warning to the user who is exercising that the tempo of the song is out of motion. Therefore, it is preferable that the timbre can clearly distinguish between the sound of the song and the guide sound when the guide sound is reproduced simultaneously with the song. However, it is better to avoid harsh and harsh sounds that hinder the user's movement. Specific examples include a beeping sound such as a metronome sound, a bass drum sound, and a sympal sound. Of course, it is not limited to this.

次にCPU8は、次に現れる拍位置を取得し、前記割り込み時刻バッファに設定する(ステップS42)。この拍位置の取得は、前記ステップS30で説明した拍位置の取得とほぼ同じであるので、これ以上の説明は省略する。   Next, the CPU 8 acquires the beat position that appears next and sets it in the interrupt time buffer (step S42). Since the acquisition of the beat position is substantially the same as the acquisition of the beat position described in step S30, further description is omitted.

このように、ガイド割り込みが一旦許可されると、ガイド割り込みが禁止されるまで、曲の再生に従ってその曲の拍位置でガイド音が発音されることになる。したがって、ユーザは、自身の運動が曲のテンポと合っていないことを知るとともに、ガイド音に運動テンポを合わせることで、運動を曲のテンポに合わせることができる。   As described above, once the guide interruption is permitted, the guide sound is generated at the beat position of the music according to the reproduction of the music until the guide interruption is prohibited. Therefore, the user knows that his / her exercise does not match the tempo of the song, and can match the exercise to the tempo of the song by matching the exercise tempo to the guide sound.

なお、一旦ガイドフラグがセットされると、その後、音楽テンポと運動テンポ平均値との差分が相変わらず前記所定以上であれば、前記(14)ガイド音制御処理では、何の制御もなされない(ステップS27→S28→終了)。つまり、前記ガイド割り込み処理が所定のタイミングで起動されるだけである。   Once the guide flag is set, after that, if the difference between the music tempo and the exercise tempo average value is still greater than or equal to the predetermined value, no control is performed in the (14) guide sound control process (step S14). S27 → S28 → End). That is, the guide interrupt process is only activated at a predetermined timing.

ユーザがガイド音に従って、運動テンポを音楽テンポに合わせて行くと、音楽テンポと運動テンポ平均値との差分はいずれ、前記所定値以内に収まることになる。このとき、ガイドフラグはセット状態であるので、CPU8は、ガイドフラグをリセットし(ステップS34→S35)、さらにガイド割り込みを禁止する(ステップS36)。これにより、ガイド音の発音は停止する。   When the user adjusts the exercise tempo to the music tempo according to the guide sound, the difference between the music tempo and the average exercise tempo will fall within the predetermined value. At this time, since the guide flag is in the set state, the CPU 8 resets the guide flag (step S34 → S35), and further prohibits the guide interruption (step S36). Thereby, the pronunciation of the guide sound is stopped.

前記(15)の運動停止検出処理では、まずCPU8は、運動テンポの周期が検出されない期間が所定時間(たとえば、5秒間)以上となっているかどうか判別し(ステップS32)、その期間が所定時間以上となっているときには、ユーザの運動は停止状態と判断する。次にCPU8は、前記加速度履歴バッファおよび運動テンポ履歴バッファをクリアした(ステップS33)後、前記ステップS34に処理を進める。ステップS34以降の処理では、CPU8は、ガイド音が発音されているときには、その発音を停止する。   In the exercise stop detection process (15), first, the CPU 8 determines whether or not the period during which the period of the exercise tempo is not detected is equal to or longer than a predetermined time (for example, 5 seconds) (step S32). When it is above, it is determined that the user's exercise is stopped. Next, after clearing the acceleration history buffer and the exercise tempo history buffer (step S33), the CPU 8 advances the process to step S34. In the processing after step S34, when the guide sound is being generated, the CPU 8 stops the sound generation.

このようにして、ユーザが運動を停止したときには、その運動停止を検出し、ガイド音が発音されているときでも、その発音を停止するようにしたので、ユーザにとって煩わしさが解消される。   In this way, when the user stops exercising, the cessation of motion is detected, and even when the guide sound is sounded, the sound generation is stopped, so the troublesomeness for the user is eliminated.

なお、上述した実施の形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムまたは装置に供給し、そのシステムまたは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても、本発明の目的が達成されることは言うまでもない。   A program in which a storage medium that records a program code of software that realizes the functions of the above-described embodiments is supplied to a system or apparatus, and a computer (or CPU or MPU) of the system or apparatus is stored in the storage medium. It goes without saying that the object of the present invention can also be achieved by reading and executing the code.

この場合、記憶媒体から読出されたプログラムコード自体が本発明の新規な機能を実現することになり、そのプログラムコードおよび該プログラムコードを記憶した記憶媒体は本発明を構成することになる。   In this case, the program code itself read from the storage medium realizes the novel function of the present invention, and the program code and the storage medium storing the program code constitute the present invention.

プログラムコードを供給するための記憶媒体としては、たとえば、フレキシブルディスク、ハードディスク、光磁気ディスク、CD−ROM、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW、磁気テープ、不揮発性のメモリカード、ROMなどを用いることができる。また、通信ネットワークを介してサーバコンピュータからプログラムコードが供給されるようにしてもよい。   As a storage medium for supplying the program code, for example, a flexible disk, hard disk, magneto-optical disk, CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW, magnetic A tape, a non-volatile memory card, a ROM, or the like can be used. Further, the program code may be supplied from a server computer via a communication network.

また、コンピュータが読出したプログラムコードを実行することにより、上述した実施の形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOSなどが実際の処理の一部または全部を行い、その処理によって上述した実施の形態の機能が実現される場合も含まれることは言うまでもない。   Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also the OS running on the computer based on the instruction of the program code performs the actual processing. It goes without saying that a case where the functions of the above-described embodiment are realized by performing part or all of the above and the processing thereof is included.

さらに、記憶媒体から読出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって上述した実施の形態の機能が実現される場合も含まれることは言うまでもない。   Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

本発明の一実施の形態に係る演奏装置を適用した携帯型音楽プレーヤの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the portable music player to which the performance apparatus which concerns on one embodiment of this invention is applied. 図1の音楽プレーヤの外観とその装着例を示す図である。It is a figure which shows the external appearance of the music player of FIG. 1, and its example of installation. 図1中のフラッシュメモリに記憶されたファイルの一部を示す図である。It is a figure which shows a part of file memorize | stored in the flash memory in FIG. MIDI演奏データのデータフォーマットの一例を示す図である。It is a figure which shows an example of the data format of MIDI performance data. 図1中の加速度センサおよび加速度検出回路によって検出された加速度の履歴を示す図である。It is a figure which shows the log | history of the acceleration detected by the acceleration sensor and acceleration detection circuit in FIG. 図1の音楽プレーヤ、特にCPUが実行するメインルーチンの手順を示すフローチャートである。2 is a flowchart showing a procedure of a main routine executed by the music player of FIG. 1, particularly a CPU. 図6中の通信処理の詳細な手順を示すフローチャートである。It is a flowchart which shows the detailed procedure of the communication process in FIG. 圧縮オーディオ演奏ファイルの基になる圧縮オーディオ演奏データを取得するPC側の処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the process by the side of PC which acquires the compression audio performance data used as the basis of a compression audio performance file. 運動テンポ割り込み処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of an exercise | movement tempo interruption process. ガイド割り込み処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a guide interruption process. オーディオ演奏割り込み処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of an audio performance interruption process. MIDI演奏割り込み処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a MIDI performance interruption process.

符号の説明Explanation of symbols

2…加速度センサ(運動テンポ検出手段),6…加速度検出回路(運動テンポ検出手段),8…CPU(音楽テンポ取得手段、再生手段、運動テンポ検出手段、制御手段、運動停止検出手段),15…MIDI音源回路(再生手段),16…圧縮音声デコーダ(再生手段) 2 ... acceleration sensor (exercise tempo detection means), 6 ... acceleration detection circuit (exercise tempo detection means), 8 ... CPU (music tempo acquisition means, reproduction means, exercise tempo detection means, control means, exercise stop detection means), 15 ... MIDI sound source circuit (reproducing means), 16 ... compressed audio decoder (reproducing means)

Claims (3)

演奏データの音楽テンポを取得する音楽テンポ取得手段と、
前記演奏データを再生する再生手段と、
ユーザが行う反復運動の運動テンポを検出する運動テンポ検出手段と、
前記音楽テンポ取得手段によって取得された音楽テンポと前記運動テンポ検出手段によって検出された運動テンポとの差が所定の値より大きい場合には、前記取得された音楽テンポで、前記再生手段によって再生された演奏データの拍に合わせて、ガイド音を発音させる一方、前記取得された音楽テンポと前記検出された運動テンポとの差が前記所定の値以下である場合には、前記ガイド音を発音させないように制御する制御手段と
を有することを特徴とする演奏装置。
Music tempo acquisition means for acquiring music tempo of performance data;
Reproducing means for reproducing the performance data;
An exercise tempo detection means for detecting an exercise tempo of repetitive exercise performed by a user;
When the difference between the music tempo acquired by the music tempo acquisition means and the exercise tempo detected by the exercise tempo detection means is larger than a predetermined value, the reproduction is reproduced by the reproduction means at the acquired music tempo. The guide sound is generated in accordance with the beat of the performance data, and the guide sound is not generated when the difference between the acquired music tempo and the detected exercise tempo is equal to or less than the predetermined value. And a control means for controlling the performance.
前記反復運動の停止を検出する運動停止検出手段をさらに有し、
前記制御手段は、前記運動停止検出手段によって前記反復運動の停止が検出されたときには、前記ガイド音を発音させないように制御することを特徴とする請求項1に記載の演奏装置。
Motion stop detecting means for detecting stop of the repetitive motion,
2. The performance apparatus according to claim 1, wherein the control unit controls the guide sound not to be generated when the stop of the repetitive motion is detected by the motion stop detection unit.
演奏データの音楽テンポを取得する音楽テンポ取得手順と、
前記演奏データを再生する再生手順と、
ユーザが行う反復運動の運動テンポを検出する運動テンポ検出手順と、
前記音楽テンポ取得手順によって取得された音楽テンポと前記運動テンポ検出手順によって検出された運動テンポとの差が所定の値より大きい場合には、前記取得された音楽テンポで、前記再生手順によって再生された演奏データの拍に合わせて、ガイド音を発音させる一方、前記取得された音楽テンポと前記検出された運動テンポとの差が前記所定の値以下である場合には、前記ガイド音を発音させないように制御する制御手順と
をコンピュータに実行させるプログラム。
Music tempo acquisition procedure for acquiring music tempo of performance data,
A playback procedure for playing back the performance data;
An exercise tempo detection procedure for detecting the exercise tempo of the repetitive exercise performed by the user;
When the difference between the music tempo acquired by the music tempo acquisition procedure and the exercise tempo detected by the exercise tempo detection procedure is larger than a predetermined value, the music tempo is reproduced by the reproduction procedure at the acquired music tempo. The guide sound is generated in accordance with the beat of the performance data, and the guide sound is not generated when the difference between the acquired music tempo and the detected exercise tempo is equal to or less than the predetermined value. And a program for causing a computer to execute a control procedure for controlling the program.
JP2007085507A 2007-03-28 2007-03-28 Performance device and program for attaining its control method Pending JP2008242285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007085507A JP2008242285A (en) 2007-03-28 2007-03-28 Performance device and program for attaining its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007085507A JP2008242285A (en) 2007-03-28 2007-03-28 Performance device and program for attaining its control method

Publications (1)

Publication Number Publication Date
JP2008242285A true JP2008242285A (en) 2008-10-09

Family

ID=39913691

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007085507A Pending JP2008242285A (en) 2007-03-28 2007-03-28 Performance device and program for attaining its control method

Country Status (1)

Country Link
JP (1) JP2008242285A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011087794A (en) * 2009-10-23 2011-05-06 Sony Corp Motion-related operation device and method, program, and motion-related reproduction system
JP2012192126A (en) * 2011-03-18 2012-10-11 Brother Industries Ltd Device, method and program for playback of musical piece information for exercise
JP2015160120A (en) * 2014-02-28 2015-09-07 ブラザー工業株式会社 Information processing device and program
CN107633852A (en) * 2017-10-26 2018-01-26 四川云玦科技有限公司 System is realized in a kind of more time dimension Broadcast Controls
CN107680620A (en) * 2017-10-26 2018-02-09 四川云玦科技有限公司 A kind of implementation method of more time dimension Broadcast Controls

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03114954U (en) * 1990-03-07 1991-11-27
JPH04238384A (en) * 1991-01-22 1992-08-26 Brother Ind Ltd Electronic music reproducing device with practicing function
JPH06273546A (en) * 1993-03-22 1994-09-30 Seiko Instr Inc Pace generator
JP2001337675A (en) * 2000-05-25 2001-12-07 Yamaha Corp Playing support device and playing support method
JP2002341863A (en) * 2001-05-11 2002-11-29 Yamaha Corp Musical sound control system, musical sound control device and annunciation device
JP2003185467A (en) * 2001-12-21 2003-07-03 Tanita Corp Pedometer with pitch generating function
JP2004216142A (en) * 2002-12-24 2004-08-05 Combi Corp Exercise assistance method and audio data record for exercise assistance used therein
JP2004287049A (en) * 2003-03-20 2004-10-14 Yamaha Corp Musical sound playing instrument
JP2006239398A (en) * 2005-02-03 2006-09-14 Sony Corp Sound reproducer, sound reproduction method and sound reproduction processing program
JP2006308650A (en) * 2005-04-26 2006-11-09 Yamaha Corp Singing support device
JP2007007100A (en) * 2005-06-29 2007-01-18 Yoshihiko Sano Method and device for reproducing musical piece for supporting exercise
JP2007020977A (en) * 2005-07-20 2007-02-01 Yamaha Corp Exercise assisting apparatus and exercise instrument
JP2008538295A (en) * 2005-01-10 2008-10-23 アイポイント リミテッド Music pacemaker for physical fitness training

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03114954U (en) * 1990-03-07 1991-11-27
JPH04238384A (en) * 1991-01-22 1992-08-26 Brother Ind Ltd Electronic music reproducing device with practicing function
JPH06273546A (en) * 1993-03-22 1994-09-30 Seiko Instr Inc Pace generator
JP2001337675A (en) * 2000-05-25 2001-12-07 Yamaha Corp Playing support device and playing support method
JP2002341863A (en) * 2001-05-11 2002-11-29 Yamaha Corp Musical sound control system, musical sound control device and annunciation device
JP2003185467A (en) * 2001-12-21 2003-07-03 Tanita Corp Pedometer with pitch generating function
JP2004216142A (en) * 2002-12-24 2004-08-05 Combi Corp Exercise assistance method and audio data record for exercise assistance used therein
JP2004287049A (en) * 2003-03-20 2004-10-14 Yamaha Corp Musical sound playing instrument
JP2008538295A (en) * 2005-01-10 2008-10-23 アイポイント リミテッド Music pacemaker for physical fitness training
JP2006239398A (en) * 2005-02-03 2006-09-14 Sony Corp Sound reproducer, sound reproduction method and sound reproduction processing program
JP2006308650A (en) * 2005-04-26 2006-11-09 Yamaha Corp Singing support device
JP2007007100A (en) * 2005-06-29 2007-01-18 Yoshihiko Sano Method and device for reproducing musical piece for supporting exercise
JP2007020977A (en) * 2005-07-20 2007-02-01 Yamaha Corp Exercise assisting apparatus and exercise instrument

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011087794A (en) * 2009-10-23 2011-05-06 Sony Corp Motion-related operation device and method, program, and motion-related reproduction system
JP2012192126A (en) * 2011-03-18 2012-10-11 Brother Industries Ltd Device, method and program for playback of musical piece information for exercise
JP2015160120A (en) * 2014-02-28 2015-09-07 ブラザー工業株式会社 Information processing device and program
CN107633852A (en) * 2017-10-26 2018-01-26 四川云玦科技有限公司 System is realized in a kind of more time dimension Broadcast Controls
CN107680620A (en) * 2017-10-26 2018-02-09 四川云玦科技有限公司 A kind of implementation method of more time dimension Broadcast Controls

Similar Documents

Publication Publication Date Title
JP4311466B2 (en) Performance apparatus and program for realizing the control method
US7956274B2 (en) Performance apparatus and storage medium therefor
JP4839853B2 (en) Music playback control device and music playback device
JP4052274B2 (en) Information presentation device
US7737353B2 (en) Apparatus for controlling music reproduction and apparatus for reproducing music
JP4067372B2 (en) Exercise assistance device
JP4415946B2 (en) Content playback apparatus and playback method
JP2005156641A (en) Playback mode control device and method
JP4311467B2 (en) Performance apparatus and program for realizing the control method
JP4697165B2 (en) Music playback control device
JP4702071B2 (en) Music playback control device and music playback device
JP2008242285A (en) Performance device and program for attaining its control method
JP2006251053A (en) Musical sound controller
JP2007250053A (en) Contents reproducing device and contents reproducing method
JP2006251376A (en) Musical sound controller
JP4311468B2 (en) Performance apparatus and program for realizing the control method
KR100500424B1 (en) Intelligent music player capable of automatically selecting music
JP2007156280A (en) Sound reproduction device, sound reproduction method, and sound reproduction program
JP5109426B2 (en) Electronic musical instruments and programs
JP2008242064A (en) Music reproduction controller
JP2003114682A (en) Sound generating device
JP2007164932A (en) Reproduction device, method for reproducing, and program
JP5259111B2 (en) Music playback control device
JP2007164020A (en) Music reproducing device and musical piece selecting reproducing method
JP4816534B2 (en) Music playback control device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100803

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100930

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110329