JP2007147818A - Musical piece reproducing device, musical piece reproducing method, and program - Google Patents

Musical piece reproducing device, musical piece reproducing method, and program Download PDF

Info

Publication number
JP2007147818A
JP2007147818A JP2005339812A JP2005339812A JP2007147818A JP 2007147818 A JP2007147818 A JP 2007147818A JP 2005339812 A JP2005339812 A JP 2005339812A JP 2005339812 A JP2005339812 A JP 2005339812A JP 2007147818 A JP2007147818 A JP 2007147818A
Authority
JP
Japan
Prior art keywords
music data
music
loop
buffer
timing
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
JP2005339812A
Other languages
Japanese (ja)
Inventor
Yuichi Asami
祐一 浅見
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.)
Konami Digital Entertainment Co Ltd
Original Assignee
Konami Digital Entertainment 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 Konami Digital Entertainment Co Ltd filed Critical Konami Digital Entertainment Co Ltd
Priority to JP2005339812A priority Critical patent/JP2007147818A/en
Publication of JP2007147818A publication Critical patent/JP2007147818A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To reproduce a part of one musical piece at desired timing by adjusting the reproduction time of the one musical piece. <P>SOLUTION: A musical piece reproducing device which reproduces first musical piece data representing the part from the starting timing of the musical piece to specified loop timing and second musical piece data representing the part after the specified loop timing includes a ring buffer 52a in which the first musical piece data are partially stored in order from the beginning, an auxiliary buffer 52b in which at least the head part of the second musical piece data is stored, a first musical piece data loop reproduction unit 54 which performs loop reproduction of the first musical piece data according to the storage contents of the ring buffer 52a, an operation detection unit 60 which detects a specified operation by a user during the loop reproduction of the first musical piece data, a loop timing standby unit 56 which suspends arrival of the specified loop timing of the musical piece when the operation detection unit 60 detects the specified operation, and a second musical piece data reproduction unit 58 which starts the reproduction of the second musical piece data according to the storage contents of the auxiliary buffer 52b when the specified loop timing comes. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は楽曲再生装置、楽曲再生方法及びプログラムに関する。   The present invention relates to a music playback device, a music playback method, and a program.

各種ゲームプログラムでは、プレイヤ(ユーザ)の操作に応じてゲームが進行し、それに伴ってBGM等の楽曲が変化するようになっていることが多い。こうしたゲームプログラムでは、複数の楽曲データが予め用意されており、ゲーム進行に伴って再生楽曲が切り替えられる。   In various game programs, a game progresses according to an operation of a player (user), and music such as BGM is often changed accordingly. In such a game program, a plurality of music data is prepared in advance, and the playback music is switched as the game progresses.

なお、下記特許文献1には、ゲームイベントの発生に応じて再生楽曲を切り替える際、その遅延時間を短縮する構成、切り替えの際にフェードイン処理やフェードアウト処理を行う構成が開示されている。また、下記特許文献2には、ゲームイベントの発生に応じて、再生中の楽曲の小節の切れ目で次の楽曲へと再生曲の切り替えを行う構成が開示されている。
特開2005−21597号公報 特開平11−231872号公報
Patent Document 1 below discloses a configuration for shortening the delay time when switching a playback music piece according to the occurrence of a game event, and a configuration for performing a fade-in process and a fade-out process at the time of switching. Patent Document 2 below discloses a configuration in which the playback music is switched to the next music at the break of the music being played in response to the occurrence of a game event.
Japanese Patent Laid-Open No. 2005-21597 Japanese Patent Application Laid-Open No. 11-231872

しかしながら、上記背景技術では、ある楽曲の再生中に全く別の楽曲の再生を開始することを前提としており、1つの楽曲の再生時間を調整して、その一部が所望のタイミングで再生されるようにするようになっていなかった。このため、例えばゲーム進行に併せて楽曲のサビ部分が再生される等の演出が困難であった。   However, in the above background art, it is assumed that playback of a completely different piece of music is started during the playback of a certain piece of music, and the playback time of one piece of music is adjusted and a part of it is played back at a desired timing. It was not supposed to be. For this reason, for example, it is difficult to produce an effect such that the climax part of the music is played as the game progresses.

本発明は上記課題に鑑みてなされたものであって、1つの楽曲の再生時間を調整して、その一部を所望のタイミングで再生できる楽曲再生装置、楽曲再生方法及びプログラムを提供することにある。   The present invention has been made in view of the above problems, and provides a music playback device, a music playback method, and a program that can adjust the playback time of a piece of music and play a part of it at a desired timing. is there.

上記課題を解決するために、本発明に係る楽曲再生装置は、楽曲の開始タイミングから所定のループタイミングまでの部分を示す第1楽曲データと、該所定のループタイミング以降の部分を示す第2楽曲データと、を再生する楽曲再生装置において、前記第1楽曲データが部分的に先頭から順に格納される第1のバッファと、前記第2楽曲データの少なくとも先頭部分が格納される第2のバッファと、前記第1のバッファの記憶内容に従って、前記第1楽曲データをループ再生する第1楽曲データループ再生手段と、前記第1楽曲データのループ再生中にユーザによる所定操作を検知する操作検知手段と、前記操作検知手段により前記所定操作が検知される場合に、前記楽曲の前記所定のループタイミングの到来を待機するループタイミング待機手段と、前記所定のループタイミングが到来した場合に、前記第2のバッファの記憶内容に従って、前記第2楽曲データの再生を開始する第2楽曲データ再生手段と、を含むことを特徴とする。この楽曲再生装置は、ゲーム装置の一部として構成されてもよい。   In order to solve the above-described problem, a music playback device according to the present invention includes a first music data indicating a portion from a music start timing to a predetermined loop timing, and a second music indicating a portion after the predetermined loop timing. A first buffer in which the first music data is partially stored in order from the beginning, and a second buffer in which at least the first portion of the second music data is stored. , First music data loop playback means for loop playback of the first music data according to the stored contents of the first buffer, and operation detection means for detecting a predetermined operation by the user during loop playback of the first music data. Loop timing for waiting for arrival of the predetermined loop timing of the music piece when the predetermined operation is detected by the operation detecting means And second music data playback means for starting playback of the second music data according to the stored contents of the second buffer when the predetermined loop timing has arrived. . This music reproducing device may be configured as a part of the game device.

また、本発明に係る楽曲再生方法は、楽曲の開始タイミングから所定のループタイミングまでの部分を示す第1楽曲データと、該所定のループタイミング以降の部分を示す第2楽曲データと、を再生する楽曲再生方法において、第1のバッファに前記第1楽曲データを部分的に先頭から順に格納するステップと、第2のバッファに前記第2楽曲データの少なくとも先頭部分を格納するステップと、前記第1のバッファの記憶内容に従って、前記第1楽曲データをループ再生するステップと、前記第1楽曲データのループ再生中にユーザによる所定操作を検知するステップと、前記第1楽曲データのループ再生中に前記所定操作が検知される場合に、前記楽曲の前記所定のループタイミングの到来を待機するステップと、前記所定のループタイミングが到来した場合に、前記第2のバッファの記憶内容に従って、前記第2楽曲データの再生を開始するステップと、を含むことを特徴とする。   The music playback method according to the present invention plays back first music data indicating a part from a music start timing to a predetermined loop timing, and second music data indicating a part after the predetermined loop timing. In the music reproducing method, a step of partially storing the first music data in a first buffer in order from the head, a step of storing at least a head portion of the second music data in a second buffer, and the first buffer In accordance with the stored contents of the buffer, the step of loop-reproducing the first music data, the step of detecting a predetermined operation by the user during the loop reproduction of the first music data, and the loop music during the loop reproduction of the first music data When a predetermined operation is detected, waiting for the music to arrive at the predetermined loop timing; and If the ring has come, in accordance with the stored contents of said second buffer, characterized in that it comprises the steps of: initiating playback of the second song data.

さらに、本発明に係るプログラムは、楽曲の開始タイミングから所定のループタイミングまでの部分を示す第1楽曲データが部分的に先頭から順に格納される第1のバッファ、前記楽曲のうち前記所定のループタイミング以降の部分を示す第2楽曲データの少なくとも先頭部分が格納される第2のバッファ、前記第1のバッファの記憶内容に従って、前記第1楽曲データをループ再生する第1楽曲データループ再生手段、前記第1楽曲データのループ再生中にユーザによる所定操作を検知する操作検知手段、前記操作検知手段により前記所定操作が検知される場合に、前記楽曲の前記所定のループタイミングの到来を待機するループタイミング待機手段、及び前記所定のループタイミングが到来した場合に、前記第2のバッファの記憶内容に従って、前記第2楽曲データの再生を開始する第2楽曲データ再生手段としてコンピュータを機能させるためのプログラムである。コンピュータは、例えば家庭用ゲーム機、業務用ゲーム機、携帯ゲーム機、携帯電話機、携帯情報端末、パーソナルコンピュータ、サーバコンピュータ等である。このプログラムは、CD−ROMやDVD−ROM等のコンピュータ読み取り可能な情報記憶媒体に格納されてもよい。   Furthermore, the program according to the present invention includes a first buffer in which first music data indicating a portion from a music start timing to a predetermined loop timing is partially stored in order from the top, and the predetermined loop of the music A second buffer for storing at least the first part of the second music data indicating a part after the timing; a first music data loop playback means for loop-playing the first music data according to the stored contents of the first buffer; Operation detecting means for detecting a predetermined operation by a user during loop reproduction of the first music data, and a loop for waiting for the arrival of the predetermined loop timing of the music when the predetermined operation is detected by the operation detecting means When the timing waiting means and the predetermined loop timing arrive, the contents stored in the second buffer What is a program for causing a computer to function as a second music data reproducing means to start playing the second song data. The computer is, for example, a home game machine, an arcade game machine, a portable game machine, a mobile phone, a portable information terminal, a personal computer, a server computer, or the like. This program may be stored in a computer-readable information storage medium such as a CD-ROM or DVD-ROM.

本発明によれば、楽曲の開始タイミングからループタイミングまでの部分がループ再生され、ループ再生中に所定の操作がされると、そのままループタイミングまで再生が継続され、続いてループタイミング以降の部分の再生が開始されるので、1つの楽曲の再生時間を調整して、その一部を所望のタイミングで再生できるようになる。   According to the present invention, the portion from the start timing of the music to the loop timing is played back in a loop, and when a predetermined operation is performed during the loop playback, the playback is continued until the loop timing, and then the portion after the loop timing is continued. Since reproduction is started, it is possible to adjust the reproduction time of one piece of music and reproduce a part of it at a desired timing.

なお、前記第1のバッファは、同一サイズの2つのバッファから構成されてよい。また、前記第1楽曲データのサイズは、前記第1のバッファを構成する前記バッファのサイズの整数倍に調整されると好適である。   The first buffer may be composed of two buffers having the same size. In addition, it is preferable that the size of the first music data is adjusted to an integral multiple of the size of the buffer constituting the first buffer.

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

図1は、本発明の実施形態に係るゲーム装置の構成を示す図である。同図に示すゲーム装置10は、家庭用ゲーム機11に情報記憶媒体たるDVD−ROM25及びメモリカード28が装着され、さらにモニタ18及びスピーカ22が接続されることによって構成されるものであり、例えば、モニタ18には家庭用テレビ受像機が用いられ、スピーカ22にはその内蔵スピーカが用いられる。このゲーム装置10は、本発明の実施形態に係る楽曲再生装置として動作するものである。   FIG. 1 is a diagram showing a configuration of a game device according to an embodiment of the present invention. The game apparatus 10 shown in the figure is configured by attaching a DVD-ROM 25 and a memory card 28 as information storage media to a consumer game machine 11, and further connecting a monitor 18 and a speaker 22, for example. The monitor 18 is a home television receiver, and the speaker 22 is a built-in speaker. This game apparatus 10 operates as a music reproducing apparatus according to the embodiment of the present invention.

家庭用ゲーム機11は、バス12、マイクロプロセッサ14、画像処理部16、音声処理部20、DVD−ROM再生部24、主記憶26、入出力処理部30及びコントローラ32を含んで構成される公知のコンピュータゲームシステムである。コントローラ32以外の構成要素は筐体内に収容される。   The home game machine 11 includes a bus 12, a microprocessor 14, an image processing unit 16, an audio processing unit 20, a DVD-ROM playback unit 24, a main memory 26, an input / output processing unit 30, and a controller 32. It is a computer game system. Components other than the controller 32 are accommodated in a housing.

バス12はアドレス及びデータを家庭用ゲーム機11の各部でやり取りするためのものである。マイクロプロセッサ14、画像処理部16、主記憶26及び入出力処理部30は、バス12によって相互データ通信可能に接続される。   The bus 12 is for exchanging addresses and data among the units of the consumer game machine 11. The microprocessor 14, the image processing unit 16, the main memory 26, and the input / output processing unit 30 are connected by the bus 12 so that mutual data communication is possible.

マイクロプロセッサ14は、図示しないROMに格納されるオペレーティングシステム、DVD−ROM25から読み出されるプログラムや、メモリカード28から読み出されるデータに基づいて、家庭用ゲーム機11の各部を制御する。主記憶26は、例えばRAMを含んで構成されるものであり、DVD−ROM25から読み出されたプログラムやメモリカード28から読み出されたデータが必要に応じて書き込まれる。主記憶26はマイクロプロセッサ14の作業用としても用いられる。   The microprocessor 14 controls each part of the consumer game machine 11 based on an operating system stored in a ROM (not shown), a program read from the DVD-ROM 25, and data read from the memory card 28. The main memory 26 is configured to include, for example, a RAM, and a program read from the DVD-ROM 25 and data read from the memory card 28 are written as necessary. The main memory 26 is also used for work of the microprocessor 14.

画像処理部16はVRAMを含んで構成されており、マイクロプロセッサ14から送られる画像データに基づいてVRAM上にスクリーン画像を描画する。そして、その内容をビデオ信号に変換して所定のタイミングでモニタ18(ゲーム画面)に出力する。   The image processing unit 16 includes a VRAM, and draws a screen image on the VRAM based on the image data sent from the microprocessor 14. Then, the content is converted into a video signal and output to the monitor 18 (game screen) at a predetermined timing.

入出力処理部30は、マイクロプロセッサ14が音声処理部20、DVD−ROM再生部24、メモリカード28及びコントローラ32にアクセスするためのインタフェースである。入出力処理部30には、音声処理部20、DVD−ROM再生部24、メモリカード28及びコントローラ32が接続される。   The input / output processing unit 30 is an interface for the microprocessor 14 to access the audio processing unit 20, the DVD-ROM playback unit 24, the memory card 28, and the controller 32. An audio processing unit 20, a DVD-ROM playback unit 24, a memory card 28 and a controller 32 are connected to the input / output processing unit 30.

音声処理部20はサウンドバッファを含んで構成されており、DVD−ROM25から読み出され、該サウンドバッファに記憶されたゲーム音楽、ゲーム効果音、メッセージ等の各種音声データを再生してスピーカ22から出力する。具体的には、音声処理部20は、所定数のチャネルを処理可能であり、各チャネルに割り当てられた音データをミキシング再生し、スピーカ22から出力する。また、音声処理部20は、DVD−ROM25に格納された楽曲データのうち、マイクロプロセッサ14から指示された箇所を読み出し、サウンドバッファに格納することができる。   The sound processing unit 20 is configured to include a sound buffer, and reproduces various sound data such as game music, game sound effects, and messages read from the DVD-ROM 25 and stored in the sound buffer, from the speaker 22. Output. Specifically, the audio processing unit 20 can process a predetermined number of channels, mixes and reproduces sound data assigned to each channel, and outputs the sound data from the speaker 22. In addition, the audio processing unit 20 can read a part instructed by the microprocessor 14 from the music data stored in the DVD-ROM 25 and store it in the sound buffer.

DVD−ROM再生部24は、マイクロプロセッサ14からの指示に従ってDVD−ROM25に記録されたプログラムを読み取る。なお、ここではプログラムを家庭用ゲーム機11に供給するためにDVD−ROM25を用いることとするが、CD−ROMやROMカード等、他のあらゆるコンピュータ読み取り可能な情報記憶媒体を用いるようにしてもよい。また、インターネット等のデータ通信網を介して遠隔地からプログラムを家庭用ゲーム機11に供給するようにしてもよい。   The DVD-ROM playback unit 24 reads a program recorded on the DVD-ROM 25 in accordance with an instruction from the microprocessor 14. Here, the DVD-ROM 25 is used to supply the program to the consumer game machine 11, but any other computer-readable information storage medium such as a CD-ROM or a ROM card may be used. Good. Further, the program may be supplied to the consumer game machine 11 from a remote place via a data communication network such as the Internet.

メモリカード28は、不揮発性メモリ(例えばEEPROM等)を含んで構成される。家庭用ゲーム機11は、メモリカード28を装着するための複数のメモリカードスロットを備えており、複数のメモリカード28を同時に装着可能となっている。メモリカード28は、このメモリカードスロットに対して脱着可能に構成され、例えばセーブデータなどの各種ゲームデータを記憶させるために用いられる。   The memory card 28 includes a nonvolatile memory (for example, EEPROM). The home-use game machine 11 includes a plurality of memory card slots for mounting the memory card 28, and the plurality of memory cards 28 can be mounted simultaneously. The memory card 28 is configured to be removable from the memory card slot, and is used for storing various game data such as saved data.

コントローラ32は、プレイヤが各種ゲーム操作の入力をするための汎用操作入力手段である。入出力処理部30は一定周期毎(例えば1/60秒毎)にコントローラ32の各部の状態をスキャンし、そのスキャン結果を表す操作信号を、バス12を介してマイクロプロセッサ14に渡す。マイクロプロセッサ14は、その操作信号に基づいてプレイヤのゲーム操作を判定する。家庭用ゲーム機11は複数のコントローラ32を接続可能に構成されており、各コントローラ32から入力される操作信号に基づいて、マイクロプロセッサ14がゲーム制御を行うようになっている。   The controller 32 is general-purpose operation input means for the player to input various game operations. The input / output processing unit 30 scans the state of each unit of the controller 32 at regular intervals (for example, every 1/60 seconds), and passes an operation signal representing the scan result to the microprocessor 14 via the bus 12. The microprocessor 14 determines the player's game operation based on the operation signal. The home game machine 11 is configured so that a plurality of controllers 32 can be connected, and the microprocessor 14 performs game control based on an operation signal input from each controller 32.

以下、上述のハードウェア構成を有する家庭用ゲーム機11により、楽曲データの再生時間を調整し、プレイヤが所定操作を行った場合に、それに応じて楽曲データのサビ部分の再生が始まるようにする技術について説明する。   In the following, the home game machine 11 having the hardware configuration described above is used to adjust the playback time of the music data, and when the player performs a predetermined operation, the playback of the chorus portion of the music data starts accordingly. The technology will be described.

図2は、ゲーム装置10のモニタ18に表示されるゲーム画面の推移例を示している。同図(a)は、ゲームのエンディングに表示されるゲーム画面であり、ゲームストーリの終わりの部分を示す文章が表示されている。また、同画面の表示中、スピーカ22からはエンディング用の楽曲の前奏部分が繰り返して再生(ループ再生)されている。同ゲーム画面にはコントローラ32の所定ボタンの押下が案内されており、コントローラ32の同ボタンを押下すると、同図(b)のゲーム画面にモニタ18の表示が切り替わる。このとき、エンディング用の前奏部分のループ再生が終了し、前奏部分に続く部分(サビ部分を含む)の再生が開始される。本ゲーム装置10では、このように構成されているので、同図(a)のゲーム画面の表示中にスピーカ22からサビ部分が流れる、といった不都合を防止することができる。また、同図(a)のゲーム画面の表示中にスピーカ22から楽曲が流れなくなる、といった不都合も防止することができる。   FIG. 2 shows a transition example of the game screen displayed on the monitor 18 of the game apparatus 10. FIG. 5A shows a game screen displayed at the ending of the game, in which a sentence indicating the end of the game story is displayed. In addition, during the display of the same screen, the prelude portion of the ending music is repeatedly played (loop playback) from the speaker 22. On the game screen, pressing of a predetermined button of the controller 32 is guided. When the button on the controller 32 is pressed, the display of the monitor 18 is switched to the game screen of FIG. At this time, the loop playback of the ending prelude portion is completed, and the playback of the portion (including the chorus portion) following the prelude portion is started. Since the game apparatus 10 is configured as described above, it is possible to prevent the inconvenience that a rust portion flows from the speaker 22 during the display of the game screen of FIG. In addition, it is possible to prevent the inconvenience that music does not flow from the speaker 22 during the display of the game screen of FIG.

図3は、図2(a)及び(b)のゲーム画面の表示中の楽曲再生手順を示す図である。同図に示すように、ゲームのエンディング用の楽曲の開始タイミング40sから終了タイミング40eまでは、その間のループタイミング40rにより2分割されている。そして、開始タイミング40sからループタイミング40rまでの部分は第1楽曲データに収録されており、ループタイミング40rから終了タイミング40eまでの部分は第2楽曲データに収録されている。   FIG. 3 is a diagram showing a music playback procedure during display of the game screens of FIGS. 2 (a) and 2 (b). As shown in the figure, the start timing 40s to the end timing 40e of the music for ending the game are divided into two by a loop timing 40r therebetween. A portion from the start timing 40s to the loop timing 40r is recorded in the first music data, and a portion from the loop timing 40r to the end timing 40e is recorded in the second music data.

図2(a)のゲーム画面の表示中は、図3に示すように、第1楽曲データが繰り返して再生される。すなわち、第1楽曲データの開始タイミング40sからループタイミング40rまでの部分が再生されると、再び第1楽曲データの開始タイミング40sからループタイミング40rまでの部分が再生され、これが繰り返される。第1楽曲データのループ再生中にコントローラ32の所定ボタンが押下(所定操作)されると、ループタイミング40rまで第1楽曲データの再生が継続され、続いて第2楽曲データが再生される。第1楽曲データ及び第2楽曲データは、1つの楽曲の前奏部分及びそれに続く部分を示しており、第1楽曲データの終わりの部分と第2楽曲データの始まりの部分とは、滑らかに繋がるようになっている。このため、図2(a)のゲーム画面の表示中に所定操作がされ、第1楽曲データの再生から第2楽曲データの再生に移行しても、不連続な音が再生されるという不具合を生じない。図4は、かかる楽曲データの構成を示しており、楽曲データはヘッダデータとしてループタイミング40rを示すデータを含んでおり、さらにそれに続く部分に第1楽曲データ及び第2楽曲データを含んでいる。   During the display of the game screen of FIG. 2A, the first music data is repeatedly reproduced as shown in FIG. That is, when the part from the start timing 40s of the first music data to the loop timing 40r is reproduced, the part from the start timing 40s to the loop timing 40r of the first music data is reproduced again, and this is repeated. When the predetermined button of the controller 32 is pressed (predetermined operation) during the loop reproduction of the first music data, the reproduction of the first music data is continued until the loop timing 40r, and then the second music data is reproduced. The first music data and the second music data indicate the prelude part and the subsequent part of one music, and the end part of the first music data and the start part of the second music data are smoothly connected. It has become. For this reason, even if a predetermined operation is performed during the display of the game screen of FIG. 2A and a transition is made from the reproduction of the first music data to the reproduction of the second music data, a discontinuous sound is reproduced. Does not occur. FIG. 4 shows the composition of such music data. The music data includes data indicating the loop timing 40r as header data, and further includes first music data and second music data in the subsequent portion.

図5は、以上の動作をするゲーム装置10の機能ブロック図である。同図に示すように、ゲーム装置10は、機能的には楽曲データ記憶部50、サウンドバッファ52、第1楽曲データループ再生部54、ループタイミング待機部56、第2楽曲データ再生部58、操作検知部60を含んでいる。これらの機能は、DVD−ROM25に格納されたゲームプログラムがマイクロプロセッサ14により実行されることで実現されるものである。   FIG. 5 is a functional block diagram of the game apparatus 10 that operates as described above. As shown in the figure, the game apparatus 10 functionally includes a music data storage unit 50, a sound buffer 52, a first music data loop playback unit 54, a loop timing standby unit 56, a second music data playback unit 58, and an operation. A detection unit 60 is included. These functions are realized by executing a game program stored in the DVD-ROM 25 by the microprocessor 14.

楽曲データ記憶部50は、DVD−ROM25及びDVD−ROM再生部24を中心に構成されており、エンディング用の楽曲の開始タイミングから所定のループタイミングまでの部分を示す第1楽曲データと、該所定のループタイミング以降の部分を示す第2楽曲データと、ループタイミングを示すヘッダデータと、を含む楽曲データを記憶している。   The music data storage unit 50 is configured around the DVD-ROM 25 and the DVD-ROM playback unit 24, and includes first music data indicating a portion from the start timing of the ending music to a predetermined loop timing, and the predetermined music data. Music data including second music data indicating a portion after the loop timing and header data indicating the loop timing is stored.

サウンドバッファ52は、音声処理部20に内蔵されるサウンドバッファを中心に構成されており、同一サイズ(例えば16k)の3つのバッファ(バッファA〜C)を含んでいる。そして、バッファA及びバッファBによりリングバッファ52a(第1のバッファ)が構成されており、バッファCにより補助バッファ52b(第2のバッファ)が構成されている。ここで、前記第1楽曲データのサイズは、例えばサンプリングレートを調整する等してバッファAやバッファBのサイズの整数倍にされている。これにより、リングバッファ52aを用いた第1楽曲データの再生と、補助バッファ52bを用いた第2楽曲データの頭の部分の再生と、を滑らかに接続することができる。   The sound buffer 52 is configured with a sound buffer built in the sound processing unit 20 as a center, and includes three buffers (buffers A to C) having the same size (for example, 16k). The buffer A and the buffer B constitute a ring buffer 52a (first buffer), and the buffer C constitutes an auxiliary buffer 52b (second buffer). Here, the size of the first music data is made an integral multiple of the sizes of the buffer A and the buffer B, for example, by adjusting the sampling rate. Thereby, the reproduction of the first music data using the ring buffer 52a and the reproduction of the head portion of the second music data using the auxiliary buffer 52b can be smoothly connected.

第1楽曲データループ再生部54は、マイクロプロセッサ14及び音声処理部20を中心に構成されるものであり、ゲームのエンディングが到来した場合に、楽曲データ記憶部50に記憶されたエンディング用の楽曲のデータのうち、ヘッダデータであるループタイミングを読み出すとともに、第1楽曲データを先頭から順に部分的に(バッファA及びBのサイズ分だけ)読み出し、バッファA及びバッファBに交互に格納しながら、第1楽曲データを再生し、その楽音をスピーカ22から出力する。そして、開始タイミング40sからループタイミング40rまでの再生が完了し、ヘッダデータに示されるループタイミングが到来すると、再び第1楽曲データを先頭から順に部分的に読み出し、再度その楽音をスピーカ22から出力する。こうして、第1楽曲データが示す楽音を繰り返して再生する。また、第1楽曲データループ再生部54は、ゲームのエンディングが到来した場合に、第1楽曲データの再生を開始するとともに、第2楽曲データの先頭部分(バッファCのサイズ分)を読み出し、それをバッファC(補助バッファ52b)に格納するようにしている。   The first music data loop playback unit 54 is configured with the microprocessor 14 and the sound processing unit 20 as the center. When the game ending arrives, the music for ending stored in the music data storage unit 50 is stored. While reading the loop timing, which is the header data, the first music data is partially read from the beginning (by the size of the buffers A and B) and stored alternately in the buffers A and B. The first music data is reproduced and the musical sound is output from the speaker 22. When the reproduction from the start timing 40s to the loop timing 40r is completed and the loop timing indicated by the header data arrives, the first music data is partially read again from the beginning again, and the musical sound is output from the speaker 22 again. . In this way, the musical sound indicated by the first music data is repeatedly reproduced. In addition, when the game ending has arrived, the first music data loop playback unit 54 starts playback of the first music data and reads out the head portion (the size of the buffer C) of the second music data. Is stored in the buffer C (auxiliary buffer 52b).

操作検知部60は、マイクロプロセッサ14を中心に構成されるものであり、第1楽曲データループ再生部54により第1楽曲データのループ再生が開始されると、コントローラ32の所定ボタンが押下されるか否かを監視するようになっている。そして、所定ボタンが押下されると、その旨をループタイミング待機部56に通知する。ループタイミング待機部56は、第1楽曲データループ再生部54による第1楽曲データの現再生タイミング(現在再生されている箇所)を監視し、第1楽曲データのループタイミング40rに現再生タイミングが一致すると(すなわち、ループタイミング40rが到来すると)、第1楽曲データループ再生部54による第1楽曲データのループ再生を停止するとともに、第2楽曲データ再生部58による第2楽曲データの再生を開始する。   The operation detection unit 60 is configured with the microprocessor 14 as the center, and when the first music data loop playback unit 54 starts loop playback of the first music data, a predetermined button of the controller 32 is pressed. Whether or not to monitor. When the predetermined button is pressed, the loop timing standby unit 56 is notified of this. The loop timing standby unit 56 monitors the current playback timing (the part currently being played back) of the first music data by the first music data loop playback unit 54, and the current playback timing matches the loop timing 40r of the first music data. Then (that is, when the loop timing 40r comes), the first music data loop playback unit 54 stops the loop playback of the first music data and the second music data playback unit 58 starts to play the second music data. .

第2楽曲データ再生部58は、マイクロプロセッサ14及び音声処理部20を中心に構成されるものであり、ループタイミング待機部56から第2楽曲データの再生が指示されると、バッファC(補助バッファ52b)に格納された第2楽曲データの先頭部分を再生し、スピーカ22から出力させるとともに、楽曲データ記憶部50に記憶されたエンディング用の楽曲のデータのうち、第2楽曲データの先頭部分に続く部分を順に部分的に(バッファA及びBのサイズ分だけ)読み出し、バッファA及びバッファBに交互に格納する。そして、バッファCに格納されたデータの再生が終了すると、直ちにバッファA及びバッファBに格納されたデータの再生を開始し、その後、第2楽曲データの続く部分を順に部分的に(バッファA及びBのサイズ分だけ)読み出しながら、第2楽曲データを再生し、その楽音をスピーカ22から出力する。こうして、バッファA〜Cを用いて、第1楽曲データに続いて、直ちに第2楽曲データの再生を行っている。   The second music data playback unit 58 is configured with the microprocessor 14 and the sound processing unit 20 as the center, and when the playback of the second music data is instructed from the loop timing standby unit 56, the buffer C (auxiliary buffer) 52b) is reproduced at the head portion of the second music data and output from the speaker 22, and the data of the music for ending stored in the music data storage unit 50 is added to the head portion of the second music data. Subsequent portions are read partially in order (by the size of buffers A and B), and stored alternately in buffer A and buffer B. Then, when the reproduction of the data stored in the buffer C is completed, the reproduction of the data stored in the buffer A and the buffer B is started immediately. While reading, the second music data is reproduced and the musical sound is output from the speaker 22. Thus, using the buffers A to C, the second music data is reproduced immediately after the first music data.

図6は、ゲーム装置10による楽曲再生処理を示すフロー図である。この処理は、ゲームのエンディングが到来し、エンディング用の楽曲の再生開始がゲームプログラムにより判断された場合に実行されるものである。同図に示すように、この処理では、まず第1楽曲データループ再生部54が楽曲データ記憶部50に記憶された第2楽曲データの先頭部分を読み出し、それを補助バッファ52bに格納する(S100)。続いて、第1楽曲データループ再生部54は楽曲データ記憶部50に記憶された第1楽曲データのループ再生を開始する(S101)。第1楽曲データのループ再生では、第1楽曲データが先頭(開始タイミング40s)から順に部分的に読み出され、それらが交互にリングバッファ52aに格納される。そして、リングバッファ52aの記憶内容に基づいて第1楽曲データが再生される。そして、第1楽曲データのループタイミング40rが到来すると、再度第1楽曲データが先頭から再生される。   FIG. 6 is a flowchart showing music reproduction processing by the game apparatus 10. This process is executed when the game ending arrives and the game program determines the start of playing the ending music. As shown in the figure, in this process, first, the first music data loop reproduction unit 54 reads the head portion of the second music data stored in the music data storage unit 50 and stores it in the auxiliary buffer 52b (S100). ). Subsequently, the first music data loop reproduction unit 54 starts loop reproduction of the first music data stored in the music data storage unit 50 (S101). In the loop reproduction of the first music data, the first music data is partially read in order from the head (start timing 40s) and stored alternately in the ring buffer 52a. Then, the first music data is reproduced based on the contents stored in the ring buffer 52a. When the loop timing 40r of the first music data arrives, the first music data is reproduced again from the beginning.

こうして第1楽曲データのループ再生が行われている間、操作検知部60はコントローラ32の所定ボタンが押下されたか否かを監視する(S102)。そして、所定ボタンが押下されれば、続いてループタイミング待機部56は、第1楽曲データのループタイミング40rが到来したか否かを監視する(S103)。ループタイミング40rが到来すると、第1楽曲データループ再生部54による第1楽曲データのループ再生を終了し(S104)、第2楽曲データ再生部58は、補助バッファ52bに格納された第2楽曲データの先頭部分を再生する(S105)。その後、第2楽曲データ再生部58は、続きの部分を、リングバッファ52aを用いて再生する(S106)。   While the first music data is being loop-reproduced in this way, the operation detection unit 60 monitors whether a predetermined button of the controller 32 has been pressed (S102). If the predetermined button is pressed, the loop timing standby unit 56 then monitors whether or not the loop timing 40r of the first music data has arrived (S103). When the loop timing 40r arrives, the first music data loop playback unit 54 finishes loop playback of the first music data (S104), and the second music data playback unit 58 stores the second music data stored in the auxiliary buffer 52b. Is reproduced (S105). Thereafter, the second music data playback unit 58 plays back the subsequent portion using the ring buffer 52a (S106).

以上説明したゲーム装置10(楽曲再生装置)によれば、1つの楽曲を第1の部分及び第2の部分に分割し、コントローラ32の所定ボタンが押下されるまで第1の部分を示す第1楽曲データをループ再生し、押下されれば、続いて第2の部分を示す第2楽曲データを再生するので、第2の部分に楽曲のサビ部分が含まれていても、それが所定ボタンが押下される前に再生されてしまうことを防止できる。   According to the game apparatus 10 (music reproducing apparatus) described above, a first piece that divides one piece of music into a first part and a second part and shows the first part until a predetermined button of the controller 32 is pressed. When the music data is loop-played and pressed, the second music data indicating the second part is subsequently played back. Even if the second part contains the chorus part of the music, the predetermined button is It can be prevented from being played before being pressed.

本発明の実施形態に係るゲーム装置(楽曲再生装置)のハードウェア構成を示す図である。It is a figure which shows the hardware constitutions of the game device (music reproduction | regeneration apparatus) which concerns on embodiment of this invention. ゲーム画面の推移例を示す図である。It is a figure which shows the example of a transition of a game screen. 楽曲データの再生手順を示す図である。It is a figure which shows the reproduction | regeneration procedure of music data. 楽曲データの構成を示す図である。It is a figure which shows the structure of music data. 本発明の実施形態に係るゲーム装置の機能ブロック図である。It is a functional block diagram of the game device concerning the embodiment of the present invention. 本発明の実施形態に係るゲーム装置における楽曲再生処理を示すフロー図である。It is a flowchart which shows the music reproduction process in the game device which concerns on embodiment of this invention.

符号の説明Explanation of symbols

10 ゲーム装置、11 家庭用ゲーム機、12 バス、14 マイクロプロセッサ、16 画像処理部、18 モニタ、20 音声処理部、22 スピーカ、24 DVD−ROM再生部、25 DVD−ROM、26 主記憶、28 メモリカード、30 入出力処理部、32 コントローラ、50 楽曲データ記憶部、52 サウンドバッファ、52a リングバッファ(第1のバッファ)、52b 補助バッファ(第2のバッファ)、54 第1楽曲データループ再生部、56 ループタイミング待機部、58 第2楽曲データ再生部、60 操作検知部。   10 game machines, 11 consumer game machines, 12 buses, 14 microprocessors, 16 image processing units, 18 monitors, 20 audio processing units, 22 speakers, 24 DVD-ROM playback units, 25 DVD-ROMs, 26 main memories, 28 Memory card 30 Input / output processing unit 32 Controller 50 Music data storage unit 52 Sound buffer 52a Ring buffer (first buffer) 52b Auxiliary buffer (second buffer) 54 First music data loop playback unit 56 Loop timing standby unit, 58 Second music data playback unit, 60 Operation detection unit.

Claims (5)

楽曲の開始タイミングから所定のループタイミングまでの部分を示す第1楽曲データと、該所定のループタイミング以降の部分を示す第2楽曲データと、を再生する楽曲再生装置において、
前記第1楽曲データが部分的に先頭から順に格納される第1のバッファと、
前記第2楽曲データの少なくとも先頭部分が格納される第2のバッファと、
前記第1のバッファの記憶内容に従って、前記第1楽曲データをループ再生する第1楽曲データループ再生手段と、
前記第1楽曲データのループ再生中にユーザによる所定操作を検知する操作検知手段と、
前記操作検知手段により前記所定操作が検知される場合に、前記楽曲の前記所定のループタイミングの到来を待機するループタイミング待機手段と、
前記所定のループタイミングが到来した場合に、前記第2のバッファの記憶内容に従って、前記第2楽曲データの再生を開始する第2楽曲データ再生手段と、
を含むことを特徴とする楽曲再生装置。
In a music playback device for playing back first music data indicating a part from the start timing of music to a predetermined loop timing and second music data indicating a part after the predetermined loop timing,
A first buffer in which the first music data is partially stored in order from the beginning;
A second buffer for storing at least a head portion of the second music data;
First music data loop playback means for loop playback of the first music data according to the stored contents of the first buffer;
Operation detecting means for detecting a predetermined operation by a user during loop reproduction of the first music data;
Loop timing waiting means for waiting for the arrival of the predetermined loop timing of the music when the predetermined operation is detected by the operation detecting means;
Second music data playback means for starting playback of the second music data in accordance with the stored contents of the second buffer when the predetermined loop timing has arrived;
A music playback device comprising:
請求項1に記載の楽曲再生装置において、
前記第1のバッファは、同一サイズの2つのバッファから構成される、
ことを特徴とする楽曲再生装置。
The music player according to claim 1,
The first buffer is composed of two buffers of the same size.
A music reproducing apparatus characterized by the above.
請求項2に記載の楽曲再生装置において、
前記第1楽曲データのサイズは、前記第1のバッファを構成する前記バッファのサイズの整数倍に調整される、
ことを特徴とする楽曲再生装置。
The music playback device according to claim 2,
The size of the first music data is adjusted to an integral multiple of the size of the buffer constituting the first buffer.
A music reproducing apparatus characterized by the above.
楽曲の開始タイミングから所定のループタイミングまでの部分を示す第1楽曲データと、該所定のループタイミング以降の部分を示す第2楽曲データと、を再生する楽曲再生方法において、
第1のバッファに前記第1楽曲データを部分的に先頭から順に格納するステップと、
第2のバッファに前記第2楽曲データの少なくとも先頭部分を格納するステップと、
前記リ第1のバッファの記憶内容に従って、前記第1楽曲データをループ再生するステップと、
前記第1楽曲データのループ再生中にユーザによる所定操作を検知するステップと、
前記第1楽曲データのループ再生中に前記所定操作が検知される場合に、前記楽曲の前記所定のループタイミングの到来を待機するステップと、
前記所定のループタイミングが到来した場合に、前記第2のバッファの記憶内容に従って、前記第2楽曲データの再生を開始するステップと、
を含むことを特徴とする楽曲再生方法。
In a music playback method for playing back first music data indicating a part from the start timing of music to a predetermined loop timing and second music data indicating a part after the predetermined loop timing,
Storing the first music data in the first buffer partially in order from the beginning;
Storing at least a top portion of the second music data in a second buffer;
Replaying the first music data in a loop according to the stored contents of the first buffer;
Detecting a predetermined operation by a user during loop reproduction of the first music data;
Waiting for the arrival of the predetermined loop timing of the music when the predetermined operation is detected during loop playback of the first music data;
Starting the reproduction of the second music data according to the content stored in the second buffer when the predetermined loop timing has arrived;
A method of reproducing music, comprising:
楽曲の開始タイミングから所定のループタイミングまでの部分を示す第1楽曲データが部分的に先頭から順に格納される第1のバッファ、
前記楽曲のうち前記所定のループタイミング以降の部分を示す第2楽曲データの少なくとも先頭部分が格納される第2のバッファ、
前記第1のバッファの記憶内容に従って、前記第1楽曲データをループ再生する第1楽曲データループ再生手段、
前記第1楽曲データのループ再生中にユーザによる所定操作を検知する操作検知手段、
前記操作検知手段により前記所定操作が検知される場合に、前記楽曲の前記所定のループタイミングの到来を待機するループタイミング待機手段、及び
前記所定のループタイミングが到来した場合に、前記第2のバッファの記憶内容に従って、前記第2楽曲データの再生を開始する第2楽曲データ再生手段
としてコンピュータを機能させるためのプログラム。
A first buffer in which first music data indicating a part from a music start timing to a predetermined loop timing is partially stored in order from the head;
A second buffer for storing at least a head portion of second music data indicating a portion of the music after the predetermined loop timing;
First music data loop playback means for loop playback of the first music data according to the stored contents of the first buffer;
Operation detecting means for detecting a predetermined operation by a user during loop reproduction of the first music data;
When the predetermined operation is detected by the operation detection unit, a loop timing standby unit that waits for the arrival of the predetermined loop timing of the music, and the second buffer when the predetermined loop timing has arrived A program for causing a computer to function as second music data playback means for starting playback of the second music data according to the stored contents.
JP2005339812A 2005-11-25 2005-11-25 Musical piece reproducing device, musical piece reproducing method, and program Pending JP2007147818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005339812A JP2007147818A (en) 2005-11-25 2005-11-25 Musical piece reproducing device, musical piece reproducing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005339812A JP2007147818A (en) 2005-11-25 2005-11-25 Musical piece reproducing device, musical piece reproducing method, and program

Publications (1)

Publication Number Publication Date
JP2007147818A true JP2007147818A (en) 2007-06-14

Family

ID=38209317

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005339812A Pending JP2007147818A (en) 2005-11-25 2005-11-25 Musical piece reproducing device, musical piece reproducing method, and program

Country Status (1)

Country Link
JP (1) JP2007147818A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015136370A (en) * 2014-01-20 2015-07-30 株式会社ユニバーサルエンターテインメント Game machine
JP2017012861A (en) * 2016-10-24 2017-01-19 株式会社ユニバーサルエンターテインメント Game machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015136370A (en) * 2014-01-20 2015-07-30 株式会社ユニバーサルエンターテインメント Game machine
JP2017012861A (en) * 2016-10-24 2017-01-19 株式会社ユニバーサルエンターテインメント Game machine

Similar Documents

Publication Publication Date Title
JP4719250B2 (en) Screen recording apparatus, screen recording method, screen recording program, and information storage medium
JP6282684B2 (en) Information processing program, information processing apparatus, and information processing method
JP2007147818A (en) Musical piece reproducing device, musical piece reproducing method, and program
JP5109496B2 (en) Data distribution apparatus, data distribution method and program
JP3819916B2 (en) GAME DEVICE AND PROGRAM
JP2000089789A (en) Voice recognition device and recording medium
JP2014002581A (en) Data output device, control method, and control program
JP3881361B1 (en) Sound output device, sound output method and program
JP2008112495A (en) Recording and reproducing device
JP5181685B2 (en) Multiple recording device
JP4924575B2 (en) Karaoke equipment
JP4333653B2 (en) Reproduction method and reproduction apparatus
JP7353130B2 (en) Audio playback systems and programs
JP7131449B2 (en) Karaoke device and karaoke program
JP2007079084A (en) Sound data reproducing device, method, and program
JP2006139818A (en) Reproducing apparatus
JP4340205B2 (en) Content playback device
JP2006245899A (en) Playback device, content playback system and program
JP2004354921A (en) Speech recording and reproducing device and additive speech information recording method
JP3811765B2 (en) GAME DEVICE, GAME DEVICE CONTROL METHOD, AND PROGRAM
JP5674408B2 (en) Karaoke lyrics character size control system
JP2006042265A (en) Multimedia distribution system, its distribution server, and communication terminal
KR100706398B1 (en) Method for wipi contents service in the mobile communication terminal
JP2008198315A (en) Information managing device
JP2001353366A (en) Function control method for game machine, game machine and recording medium

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080321

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080422

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080620

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080715

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20081111