JP3918826B2 - Music data playback device - Google Patents
Music data playback device Download PDFInfo
- Publication number
- JP3918826B2 JP3918826B2 JP2004097383A JP2004097383A JP3918826B2 JP 3918826 B2 JP3918826 B2 JP 3918826B2 JP 2004097383 A JP2004097383 A JP 2004097383A JP 2004097383 A JP2004097383 A JP 2004097383A JP 3918826 B2 JP3918826 B2 JP 3918826B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- compressed
- reading
- musical sound
- output
- 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.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 claims description 25
- 238000001514 detection method Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 14
- 238000013139 quantization Methods 0.000 description 8
- 230000006835 compression Effects 0.000 description 5
- 238000007906 compression Methods 0.000 description 5
- 230000006837 decompression Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000015572 biosynthetic process Effects 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000010606 normalization Methods 0.000 description 2
- 238000001228 spectrum Methods 0.000 description 2
- 238000003786 synthesis reaction Methods 0.000 description 2
- 238000009432 framing Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
Images
Landscapes
- Electrophonic Musical Instruments (AREA)
Description
本発明は、圧縮され記憶媒体に記憶された楽音データを再生する楽音データ再生装置に関する。 The present invention relates to a musical sound data reproducing apparatus for reproducing musical sound data compressed and stored in a storage medium.
近年、オーディオの分野においては、ディジタル楽音データを圧縮する方式(規格)として、MPEG、MP3、AAC、WMA等種々の方式が開発され、これに伴い、圧縮楽音データを再生する再生装置も種々実用化されている(特許文献1参照)。
ところで、パチンコ等のゲーム機の分野においては、同じ楽曲を続けて繰り返し再生するループ再生がしばしば行われる。しかしながら、上述した圧縮楽音データをゲーム機において使用する場合、例えばMPEGは1152サンプル、AACは1024サンプルを1フレームとし、このフレーム単位で再生処理を行うようになっているので、曲の最後のフレームが規定数のサンプルを含まない場合にフレームの後部に無音部分が含まれることになる。このため、繰り返し再生において曲の終端部と先頭部との間に無音部分が生じてしまう問題があった。
By the way, in the field of game machines such as pachinko machines, loop reproduction is often performed in which the same music is repeatedly reproduced continuously. However, when the above-mentioned compressed musical tone data is used in a game machine, for example, 1152 samples for MPEG and 1024 samples for AAC are used as one frame, and playback processing is performed in units of this frame. Will not contain a specified number of samples, a silence will be included at the rear of the frame. For this reason, there has been a problem that a silent portion is generated between the end portion and the beginning portion of the music piece during repeated reproduction.
本発明は上記事情を考慮してなされたもので、その目的は、無音部分を作ることなくループ再生を行うことができる楽音データ再生装置を提供することにある。 The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a musical sound data reproducing apparatus that can perform loop reproduction without creating a silent portion.
この発明は上記の課題を解決するためになされたもので、請求項1に記載の発明は、圧縮楽音データと非圧縮楽音データとから構成される楽音データが記憶された記憶媒体から前記楽音データを圧縮楽音データ、非圧縮楽音データの順に読み出して再生する楽音データ再生装置であって、前記記憶媒体から前記非圧縮楽音データを読み出すとともに、前記非圧縮楽音データの読み出しを終了した時点で読み出し終了通知を出力する第1の読出手段と、前記記憶媒体から前記圧縮楽音データを読み出す第2の読出手段と、前記第2の読出手段によって読み出された圧縮楽音データを伸張して出力するデコーダと、前記第1の読出手段の出力と前記デコーダの出力とを切り換える切換手段と、前記第1の読出手段、前記第2の読出手段、および前記切換手段を制御する制御手段とを具備し、前記圧縮楽音データは、楽音データの再生における所定の再生処理単位の整数倍のデータサイズを有し、前記制御手段は、ループ再生指示を受けて、前記第2の読出手段へ前記圧縮楽音データの読み出し指令を出力するとともに前記切換手段を前記デコーダの出力に切り換える第1手順、前記デコーダによる前記圧縮楽音データの伸張および出力が終了した時点で前記第1の読出手段へ前記非圧縮楽音データの読み出し指令を出力するとともに前記切換手段を前記第1の読出手段の出力に切り換える第2手順、を順に実行し、前記第1の読出手段から出力される前記読み出し終了通知を受けて再び前記第1手順を実行することにより、前記楽音データをループ再生させることを特徴とする楽音データ再生装置である。
The present invention has been made in order to solve the above-mentioned problems, and the invention according to
請求項2に記載の発明は、非圧縮楽音データと、圧縮楽音データと、前記非圧縮楽音データおよび圧縮楽音データに含まれるデータ単位の総数を示すサンプル数情報と、から構成される楽音データが記憶された記憶媒体から前記楽音データを読み出して再生する楽音データ再生装置であって、前記圧縮楽音データは、楽音データの再生における所定の再生処理単位の整数倍のデータサイズとなるように無音データを含んでおり、前記記憶媒体から前記サンプル数情報を読み出す第1の読出手段と、前記第1の読出手段によって読み出されたサンプル数情報に基づいて前記非圧縮楽音データおよび前記圧縮楽音データによる楽音の再生終了を検出する検出手段と、前記記憶媒体から前記非圧縮楽音データを読み出す第2の読出手段と、前記記憶媒体から前記圧縮楽音データを読み出す第3の読出手段と、前記第3の読出手段によって読み出された圧縮楽音データを伸張して出力するデコーダと、前記第2の読出手段の出力と前記デコーダの出力とを切り換える切換手段と、ループ再生指示を受けて、前記第1〜第3の読出手段へ読み出し指令を出力するとともに前記切換手段を前記第2の読出手段の出力に切り換える手順、前記第2の読出手段による前記非圧縮楽音データの読み出しが終了した時点で前記切換手段を前記デコーダの出力に切り換える手順、を順に実行し、前記検出手段によって前記非圧縮楽音データおよび前記圧縮楽音データによる楽音の再生終了が検出されたことを受けて前記第2および第3の読出手段に再び前記非圧縮楽音データおよび前記圧縮楽音データの読み出しを開始させることにより、前記楽音データをループ再生させる制御手段と、を具備することを特徴とする楽音データ再生装置である。 According to a second aspect of the present invention, there is provided musical tone data comprising non-compressed musical tone data, compressed musical tone data, and sample number information indicating the total number of data units included in the non-compressed musical tone data and the compressed musical tone data. A musical tone data reproducing apparatus for reading out and reproducing the musical tone data from a stored storage medium, wherein the compressed musical tone data is silence data so that the data size is an integral multiple of a predetermined reproduction processing unit in the reproduction of musical tone data. First reading means for reading out the number-of-samples information from the storage medium, and based on the non-compressed musical tone data and the compressed musical tone data based on the number-of-samples information read by the first reading means Detection means for detecting the end of reproduction of a musical sound; second reading means for reading out the uncompressed musical sound data from the storage medium; and the storage Third reading means for reading the compressed musical tone data from the body, a decoder for decompressing and outputting the compressed musical tone data read by the third reading means, an output of the second reading means, and an output of the decoder Switching means for switching between outputs, a procedure for receiving a loop reproduction instruction, outputting a read command to the first to third reading means, and switching the switching means to the output of the second reading means; A step of switching the switching means to the output of the decoder when reading of the non-compressed musical tone data by the reading means is completed in order, and the detecting means performs a step of switching the musical tone based on the non-compressed musical tone data and the compressed musical tone data. When the end of reproduction is detected, the second and third reading means read the uncompressed musical tone data and the compressed musical tone data again. By starting out a tone data reproducing apparatus characterized by comprising a control means for looping the musical sound data.
請求項3に記載の発明は、請求項2に記載の楽音データ再生装置において、前記非圧縮楽音データは、前記圧縮楽音データの伸張を開始しその出力が開始されるまでに要する時間に対応したデータサイズを有することを特徴とする。 According to a third aspect of the present invention, in the musical sound data reproducing apparatus according to the second aspect, the uncompressed musical sound data corresponds to a time required for starting the decompression of the compressed musical sound data and starting the output thereof. It has a data size .
請求項4に記載の発明は、請求項1から請求項3のいずれかの項に記載の楽音データ再生装置において、前記非圧縮楽音データに代えてADPCM方式によって圧縮された圧縮楽音データを用いることを特徴とする。 According to a fourth aspect of the present invention, in the musical sound data reproducing apparatus according to any one of the first to third aspects, the compressed musical sound data compressed by the ADPCM method is used instead of the uncompressed musical sound data. It is characterized by .
この発明によれば、楽音データの終了部に非圧縮データを配置したので、圧縮楽音データを、無音部分を作ることなく任意の箇所でループ再生することができる効果が得られる。また、この発明によれば、楽音データの先頭部に非圧縮データを配置したので、圧縮楽音データのデコードによる遅れの影響を無くし、無音部分のないループ再生をすることができる効果がある。 According to the present invention, since the uncompressed data is arranged at the end portion of the musical sound data, it is possible to obtain an effect that the compressed musical sound data can be loop-reproduced at an arbitrary place without creating a silent portion. In addition, according to the present invention, since the uncompressed data is arranged at the head portion of the musical tone data, there is an effect that the influence of the delay due to the decoding of the compressed musical tone data can be eliminated and the loop reproduction without the silent portion can be performed.
以下、図面を参照し、この発明の実施の形態について説明する。図1はこの発明の第1の実施の形態による楽音データ再生装置の構成を示すブロック図、図2は、(a)楽音データのフォーマット、(b)楽音データのデコードタイミング、(c)楽音データの出力タイミングを各々示す図である。図2(a)に示すように、この実施形態においては、楽曲の先頭部と終了部が圧縮されていないPCM(Pulse Code Moduration)楽音データ(以下、PCMデータという)であり、中央部が圧縮楽音データ(以下、圧縮データという)という構成の楽音データが使用される。また、圧縮データはMPEG規格によって圧縮されている。 Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a musical tone data reproducing apparatus according to the first embodiment of the present invention. FIG. 2 shows (a) musical tone data format, (b) musical tone data decoding timing, and (c) musical tone data. It is a figure which shows each output timing. As shown in FIG. 2 (a), in this embodiment, the beginning and end of music are PCM (Pulse Code Moduration) musical sound data (hereinafter referred to as PCM data), and the center is compressed. Musical tone data having a configuration called musical tone data (hereinafter referred to as compressed data) is used. The compressed data is compressed according to the MPEG standard.
図3は、図2(a)に示す楽音データの生成過程を示すフローチャート、図4は楽音データ生成過程の説明図、図5は圧縮データを生成する回路の構成を示すブロック図である。以下、これらの図を参照して楽音データの生成過程を説明する。なお、この処理はコンピュータシステムによって行われる。 FIG. 3 is a flowchart showing a musical sound data generation process shown in FIG. 2A, FIG. 4 is an explanatory diagram of the musical sound data generation process, and FIG. 5 is a block diagram showing a configuration of a circuit for generating compressed data. Hereinafter, the process of generating musical tone data will be described with reference to these drawings. This process is performed by a computer system.
まず、素材となるオーディオデータ(PCMデータ)を準備する(図3のステップS1)。次に、フレーズ(先頭サンプル/最終サンプル)を指定する(ステップS2)。次に、総サンプル数N(図4参照)を算出する(ステップS3)。次に、先頭のMサンプルをPCMデータによってハードディスク等の記憶媒体に記憶させる(ステップS4)。ここで、Mサンプルとは、図2(b)、(c)に示すように、圧縮データの伸張を開始してから第1番目の伸張済みサンプルを出力するまでに要する時間に対応するサンプル数である。次に、上記Mサンプルに続くINT{(N−M)/1152}×1152サンプル、すなわち、1フレームのサンプル数である1152で割り切れる数のサンプルを圧縮して記憶媒体に記憶させる(ステップS5;図4、図5参照)。次に、最後に残ったMOD{(N−M)/1152}サンプルをPCMデータによって記憶媒体に記憶させる。以上が楽音データの生成過程であり、実用時においては、このようにして記憶媒体内に作成したデータをROM11(図4参照)に焼き付け、そのROM11をゲーム機等に設置して使用する。
First, audio data (PCM data) as material is prepared (step S1 in FIG. 3). Next, a phrase (first sample / last sample) is designated (step S2). Next, the total number of samples N (see FIG. 4) is calculated (step S3). Next, the top M sample is stored in a storage medium such as a hard disk by PCM data (step S4). Here, as shown in FIGS. 2B and 2C, the M sample is the number of samples corresponding to the time required from the start of decompression of compressed data until the output of the first decompressed sample. It is. Next, INT {(N−M) / 1152} × 1152 samples following the M samples, that is, the number of samples divisible by 1152 that is the number of samples in one frame are compressed and stored in the storage medium (step S5; (See FIGS. 4 and 5). Next, the last remaining MOD {(NM) / 1152} sample is stored in the storage medium by PCM data. The above is the generation process of the musical sound data. In practical use, the data created in the storage medium in this way is burned into the ROM 11 (see FIG. 4), and the
次に、図5に示す圧縮データ生成回路について説明する。
PCMオーディオデータDaは、フレーム化回路1によって1152サンプル数毎にフレーム化され、2つのパスに分かれて処理される。まず、一方のパスにおけるサブバンド解析フィルタバンク2は、入力データを等しい帯域幅を持つ32バンドのサブバンドデータに分割する。この場合、各々のサブバンドデータは1/32のサンプリング周波数にダウンサンプルされる。スケールファクタ抽出・正規化回路3は、1フレームにおける各々のサブバンドデータに対し、最大絶対値を持つサンプルを検出する。その値を量子化したものをスケールファクタと呼ぶ。そして、このスケールファクタによって各サブバンドサンプルを除算し、それらの値を±1の範囲内に正規化する。
Next, the compressed data generation circuit shown in FIG. 5 will be described.
The PCM audio data Da is framed every 1152 samples by the
一方、心理聴覚分析部4は、FFT(高速フーリエ変換)による周波数スペクトルの計算を行い、それに基づき各サブバンド毎のマスキングしきい値、すなわち、許容量子化雑音電力を計算して出力する。ビット割当部5は心理聴覚分析部4の出力と、ビットレートで決まる1フレームで使用可能なビット数の制限の下で反復ループ処理により各サブバンド毎の量子化ビット数を決定する。量子化部6は、各サブバンド毎に設定された量子化ビット数でスケールファクタ抽出・正規化回路3から出力されるサブバンドデータを量子化する。フォーマット化回路7は、量子化されたサブバンドサンプル、各サブバンドに対するビット割当情報およびスケールファクタをマルチプレックスし、それにヘッダを付けてビットストリームを作成し、出力する。図5に1フレームに対応するビットストリーム(符号B)を示す。
なお、上述した圧縮データ生成回路はハードウエアによって構成してもよく、また、コンピュータ処理でもよい。
On the other hand, the
Note that the compressed data generation circuit described above may be configured by hardware or may be a computer process.
次に、上述した楽音データを再生する再生装置について図1、図6、図7を参照して説明する。
図1はこの発明の一実施形態による楽音データ再生装置の構成を示すブロック図である。この図において、11は前述した楽音データが記憶されたROM、12はROM11から楽音データの先頭部および終了部に設けられたPCMデータを読み出すPCMデータ読出部、13はROM11からMPEG規格によって圧縮された圧縮データを読み出す圧縮データ読出部、14は圧縮データ読出部13によって読み出された圧縮データを伸張(デコード)するデコーダ、15はPCMデータ読出部12の出力と、デコーダ14の出力のいずれか一方を選択して出力する切換部、16は切換部15の出力をアナログ信号に変換するD/A(ディジタル/アナログ)変換器、17は各部を制御する制御部である。
Next, a playback apparatus that plays back the above-described musical sound data will be described with reference to FIGS. 1, 6, and 7. FIG.
FIG. 1 is a block diagram showing the configuration of a musical sound data reproducing apparatus according to an embodiment of the present invention. In this figure, 11 is a ROM in which the above-mentioned musical tone data is stored, 12 is a PCM data reading unit for reading PCM data provided at the beginning and end of musical tone data from the
また、図6はデコーダ14の構成を示すブロック図である。この図において、21は、逆フォーマット回路であり、圧縮データ読出部13から出力される圧縮データ(図5の符号B参照)から量子化されたサブバンドサンプル、ビット割当情報およびスケールファクタを分離し、サブバンドサンプルを逆量子化回路22へ出力すると共に、ビット割当情報を同じ逆量子化回路22へ出力する。また、スケールファクタを逆スケーリング回路23へ出力する。逆量子化回路22は、サブバンドサンプルをビット割当情報を用いて逆量子化し、逆スケーリング回路23へ出力する。逆スケーリング回路23はスケールファクタに基づいて逆量子化回路の出力データのスケールを元に戻し、サブバンド合成フィルタバンク24へ出力する。サブバンド合成フィルタバンク24は、逆スケーリング回路23から出力されるサブバンドデータを合成して圧縮前のPCMデータに戻す。このPCMデータは出力バッファ25に一時記憶された後、図1の切換部15へ出力される。
FIG. 6 is a block diagram showing the configuration of the
次に、図1に示す楽音データ再生装置の動作を図7を参照して説明する。
ループ再生の指示を受けた制御部17は、まず、楽音データの先頭アドレスをPCMデータ読出部12へ出力してPCMデータの読み出しを指示し、次に、圧縮データの先頭アドレスを圧縮データ読出部13へ出力して圧縮データの読み出しを指示し、次いで、切換部15をPCMデータ読出部12の出力に切り換える(図7の時刻t1)。制御部17から読み出し指示を受けたPCMデータ読出部12は、ROM11から楽音データの先頭部のPCMデータを順次読み出し、切換部15を介してD/A変換器16へ出力する。D/A変換器16はそのPCMデータをアナログ楽音信号に変換し、スピーカユニット(図示略)へ出力する。これにより、楽音データの先端部のPCMデータに基づく楽音が発生する。PCMデータ読出部12は、楽音データの先頭部のPCMデータを全て出力した時点で、制御部17へ出力終了を通知する(時刻t2)。制御部17はこの終了通知を受け、切換部15をデコーダ14の出力に切り換える(図7(c)参照)。
Next, the operation of the musical sound data reproducing apparatus shown in FIG. 1 will be described with reference to FIG.
Receiving the loop reproduction instruction, the
一方、圧縮データ読出部13は、制御部17からの読み出し指示を受け、ROM11から圧縮データを順次読み出し、デコーダ14へ出力する。デコーダ14はその圧縮データを伸張し、伸張済みデータを切換部15へ出力する。ここで、前述したように、先頭部のPCMデータのサンプル数Mは、その読み出し時間が、デコーダ14が圧縮データ読出部13から最初のデータを受けた時点から第1番目の伸張済みデータを出力するまでの時間に一致するように決められている。したがって、制御部17がPCMデータ読出部12から終了通知を受けて切換部15を切り換えた時点に一致するタイミングで、デコーダ14から第1番目の伸張済みデータが出力される。以後、デコーダ14から順次伸張済みデータが出力され、切換部15を介してD/A変換器16へ出力される。D/A変換器16はその伸張済みデータをアナログ楽音信号に変換し、スピーカユニットへ出力する。これにより、ROM11内の圧縮データに基づく楽音が発生する。
On the other hand, the compressed
次に、圧縮データ読出部13は、ROM11内の圧縮データを全て読み出した時点で制御部17へ読み出し終了を通知する(時刻t3)。制御部17はこの通知を受け、予め設定されている一定時間Tが経過後、PCMデータ読出部12へ楽音データの後部のPCMデータの先頭アドレスを出力してPCMデータの読み出しを指示し、次いで、切換部15をPCMデータ読出部12の出力に切り換える(時刻t4)。ここで、時間Tとは、圧縮データの最後のデータがROM11から読み出されデコーダ14へ入力された時点から、その最後のデータが伸張されデコーダ14から出力されるまでの時間である。
Next, the compressed
制御部17から読み出し指示を受けたPCMデータ読出部12は、ROM11から楽音データの終了部のPCMデータを順次読み出し、切換部15を介してD/A変換器16へ出力する。これにより、楽音データの終了部のPCMデータに基づく楽音が発生する。そして、PCMデータ読出部12は、楽音データの終了部のPCMデータを全て出力した時点で、制御部17へ出力終了を通知し(時刻t5)、次いで、再び楽音データの先頭部のPCMデータを順次読み出し、切換部15を介してD/A変換器16へ出力する。これにより、楽音データの最後の音と最初の音が連続した状態で楽音再生が再び行われる。
Upon receiving a read instruction from the
一方、PCMデータ読出部12から楽音データの終了部のPCMデータの出力終了通知を受けた制御部17は、圧縮データ読出部13へ読み出し指令を出力する。圧縮データ読出部13はこの指令を受け、再び圧縮データを順次読み出し、デコーダ14へ出力する。そして、制御部17はPCMデータ読出部12から楽音データの先頭部の読み出し終了通知を受けて切換部15を切り換える(時刻t6)。以下、上述した動作と同様の動作が繰り返され、ROM11の楽音データのループ再生が行われる。
On the other hand, the
なお、上記の実施形態において、楽音データの先頭部および終了部にPCMデータ、すなわち圧縮されていないディジタル楽音データを配置したが、これに代えて、例えばADPCM等の圧縮手法を用いた、伸張が短時間で行えるディジタル楽音データを配置してもよい。
また、上記実施形態は、圧縮データの先頭部および終了部にPCMデータを配置しているが、これに代えて、終了部にのみ配置してもよい。この場合、ループ再生を行うには、制御部17が後部のPCMデータの再生終了時点より一定時間前に圧縮データ読出部13へ読み出し開始を指示する必要がある。
In the above embodiment, PCM data, that is, uncompressed digital musical sound data, is arranged at the beginning and end of the musical sound data. Instead, for example, compression using a compression method such as ADPCM is performed. Digital musical tone data that can be performed in a short time may be arranged.
Moreover, although the said embodiment has arrange | positioned PCM data in the head part and end part of compression data, it may replace with this and may arrange | position only in an end part. In this case, in order to perform loop reproduction, the
次に、この発明の第2の実施形態について図8〜図11を参照して説明する。図8は同実施形態による楽音データ再生装置の構成を示すブロック図、図9はその動作を説明するためのタイミング図、図10は同楽音データ再生装置において用いられる圧縮楽音データの生成過程を示す流れ図、図11は同圧縮楽音データの生成過程を説明するための説明図である。 Next, a second embodiment of the present invention will be described with reference to FIGS. FIG. 8 is a block diagram showing the configuration of the musical sound data reproducing apparatus according to the embodiment, FIG. 9 is a timing diagram for explaining the operation, and FIG. 10 shows the generation process of compressed musical sound data used in the musical sound data reproducing apparatus. FIG. 11 is a flowchart for explaining the generation process of the compressed musical tone data.
最初に、圧縮楽音データの生成過程について図10、図11を参照して説明する。まず、PCMデータによるオーディオデータ(素材)の準備をし(ステップSa1)、次に、準備したオーディオデータにおいてフレーズ(先頭サンプル/最終サンプル)を指定し(ステップSa2)、次に、そのフレーズの総サンプル数(N)を算出する(ステップSa3、図11参照)。以上の処理は図3のステップS1〜S3と同じである。次にフレーズヘッダを生成し、生成したヘッダに総サンプル数Nを加えてハードディスク等の記憶媒体に記憶させる(ステップSa4、図11のヘッダH参照)。次に、フレーズの先頭のMサンプルをPCMデータによって記憶媒体に記憶させる(ステップS5)。ここで、Mサンプルは、図2において説明したものと同じである。次に、残りの(N−M)サンプルをMPEG規格に基づいて圧縮して記憶媒体に記憶させる(ステップSa6)。この場合、MPEG規格の1フレームが1152サンプルであることから、最後のフレームに無音サンプルが追加され、圧縮データの総サンプル数は、
INT{(N−M)/1152}×1152+1152
となる(図11参照)。そして、記憶媒体内に作成された各データがROM31(図11)に焼き付けられる。
First, the generation process of compressed musical tone data will be described with reference to FIGS. First, audio data (material) using PCM data is prepared (step Sa1). Next, a phrase (first sample / final sample) is designated in the prepared audio data (step Sa2). The number of samples (N) is calculated (step Sa3, see FIG. 11). The above processing is the same as steps S1 to S3 in FIG. Next, a phrase header is generated, and the total number of samples N is added to the generated header and stored in a storage medium such as a hard disk (see step Sa4, header H in FIG. 11). Next, the first M sample of the phrase is stored in the storage medium as PCM data (step S5). Here, the M samples are the same as those described in FIG. Next, the remaining (NM) samples are compressed based on the MPEG standard and stored in the storage medium (step Sa6). In this case, since one frame of the MPEG standard is 1152 samples, a silence sample is added to the last frame, and the total number of samples of the compressed data is
INT {(N−M) / 1152} × 1152 + 1152
(See FIG. 11). Each data created in the storage medium is burned into the ROM 31 (FIG. 11).
次に、この発明の第2の実施形態による楽音データ再生装置を図8、図9を参照して説明する。
図8は同楽音データ再生装置の構成を示すブロック図であり、この図において図1の各部に対応する部分には同一の符号を付し、説明を省略する。この図において、符号33はヘッダ読出部であり、制御部17aから指示を受けてROM31からヘッダHを読み出し、読み出したヘッダHに含まれている総サンプル数Nをダウンカウンタ34にプリセットする。ダウンカウンタ34は、総サンプル数Nがプリセットされた時点以後、クロックパルスfsをダウンカウントする。ここで、クロックパルスfsは、PCMデータ読出部12のデータ読出タイミングを規定するクロックパルスと同一のクロックパルスである。このダウンカウンタ34のカウント出力が0検出回路35へ供給される。0検出回路35はダウンカウンタ34のカウント出力が「0」となった時、検出信号を制御部17aへ出力する。
Next, a musical sound data reproducing apparatus according to the second embodiment of the present invention will be described with reference to FIGS.
FIG. 8 is a block diagram showing the configuration of the musical sound data reproducing apparatus. In this figure, parts corresponding to the respective parts in FIG. In this figure,
次に、図8の楽音データ再生装置の動作を説明する。
制御部17aへループ再生指示が供給されると、制御部17はヘッダ読出部33、PCMデータ読出部12および圧縮データ読出部13へ、順次、読出指令を出力し、次いで、切換部15をPCMデータ読出部12側へ切り換える。ヘッダ読出部33へ読出指令が出力されると、ヘッダ読出部33がROM31からヘッダHを読み出し、ヘッダHに含まれる総サンプル数Nをダウンカウンタ34へプリセットする。以後、ダウンカウンタ34がクロックパルスfsをダウンカウントする。
Next, the operation of the musical sound data reproducing apparatus in FIG. 8 will be described.
When a loop reproduction instruction is supplied to the
また、PCMデータ読出部12および圧縮データ読出部13へ読出指令が出力されると、上述した第1の実施形態と同様に、まず、ROM31内のPCMデータに基づく楽音が発生し(図9の時刻t1〜t2)、次いで圧縮データに基づく楽音が発生する(時刻t2〜t3)。そして、時刻t3において、ROM31内の圧縮データの最後のサンプルに基づく楽音が発生すると、同一タイミングで0検出回路35から検出信号が制御部17aへ出力される。制御部17aはこの検出信号を受け、再び、ヘッダ読出部33、PCMデータ読出部12および圧縮データ読出部13へ、順次、読出指令を出力し、次いで、切換部15をPCMデータ読出部12側へ切り換える。以後、再び上記の過程で楽音再生が行われる。
When a read command is output to the PCM
上記の説明から明らかなように、この第2実施形態においては、最終フレームの無音部の直前で楽音再生が終了し、PCMデータの先頭に楽音再生が戻る。これにより、切れ目のないループ再生が行われる。 As is apparent from the above description, in the second embodiment, the musical tone reproduction ends just before the silent portion of the final frame, and the musical tone reproduction returns to the beginning of the PCM data. As a result, continuous loop playback is performed.
なお、図12(a)に示すように、M以上の数のPCMデータを先頭部に配置し、Mデータ内を除く任意の位置にフィードバックすることも可能である。但し、この場合、PCMデータの再生状況をチェックし、M個のデータの発音開始時点tmにおいて圧縮データの読出指令を出力することが必要である。また、図12(b)に示すように、予め複数のフィードバック位置を決めておき、そのフィードバック位置にM個のPCMデータを配置し、それ以外を圧縮データとしてもよい。この場合、予め決められたフィードバック位置へ任意に戻ることができる。 Note that, as shown in FIG. 12A, it is possible to place M or more PCM data at the head and feed it back to any position other than the M data. However, in this case, it is necessary to check the reproduction status of the PCM data and output a compressed data read command at the sound generation start time tm of the M data. Also, as shown in FIG. 12B, a plurality of feedback positions may be determined in advance, M pieces of PCM data may be arranged at the feedback positions, and the rest may be compressed data. In this case, it is possible to arbitrarily return to a predetermined feedback position.
例えば、パチンコ等のゲーム機の効果ミュージックに用いられる。 For example, it is used for effect music of game machines such as pachinko.
11、31…ROM、12…PCMデータ読出部、13…圧縮データ読出部、14…デコーダ、15…切換部、16…D/A変換器、17…制御部、33…ヘッダ読出部、34…ダウンカウンタ、35…0検出回路。
DESCRIPTION OF
Claims (4)
前記記憶媒体から前記非圧縮楽音データを読み出すとともに、前記非圧縮楽音データの読み出しを終了した時点で読み出し終了通知を出力する第1の読出手段と、
前記記憶媒体から前記圧縮楽音データを読み出す第2の読出手段と、
前記第2の読出手段によって読み出された圧縮楽音データを伸張して出力するデコーダと、
前記第1の読出手段の出力と前記デコーダの出力とを切り換える切換手段と、
前記第1の読出手段、前記第2の読出手段、および前記切換手段を制御する制御手段とを具備し、
前記圧縮楽音データは、楽音データの再生における所定の再生処理単位の整数倍のデータサイズを有し、
前記制御手段は、ループ再生指示を受けて、前記第2の読出手段へ前記圧縮楽音データの読み出し指令を出力するとともに前記切換手段を前記デコーダの出力に切り換える第1手順、前記デコーダによる前記圧縮楽音データの伸張および出力が終了した時点で前記第1の読出手段へ前記非圧縮楽音データの読み出し指令を出力するとともに前記切換手段を前記第1の読出手段の出力に切り換える第2手順、を順に実行し、前記第1の読出手段から出力される前記読み出し終了通知を受けて再び前記第1手順を実行することにより、前記楽音データをループ再生させる
ことを特徴とする楽音データ再生装置。 A musical sound data reproducing device that reads out and reproduces the musical sound data in the order of compressed musical data and non-compressed musical sound data from a storage medium storing musical sound data composed of compressed musical sound data and non-compressed musical sound data ,
First reading means for reading out the non -compressed musical tone data from the storage medium and outputting a reading completion notice when reading of the non-compressed musical tone data is completed ;
Second reading means for reading the compressed musical sound data from the storage medium;
A decoder for decompressing and outputting the compressed musical sound data read by the second reading means ;
Switching means for switching between the output of the first reading means and the output of the decoder ;
A control means for controlling the first reading means, the second reading means, and the switching means;
The compressed musical sound data has a data size that is an integral multiple of a predetermined reproduction processing unit in reproduction of musical sound data,
The control means receives the loop reproduction instruction, the second when the outputs read instruction of the compressed musical data to the reading means first steps Ru switched together before Symbol switching means to an output of said decoder, said by the decoder the with stretching and output of compressed musical data outputs said Shi output readings uncompressed music data command Previous Symbol first reading means upon completion switch the switching means to the output of said first reading means The musical sound data is characterized in that the musical sound data is loop-reproduced by executing two steps in order and receiving the reading completion notification output from the first reading means and executing the first procedure again. Playback device.
前記圧縮楽音データは、楽音データの再生における所定の再生処理単位の整数倍のデータサイズとなるように無音データを含んでおり、
前記記憶媒体から前記サンプル数情報を読み出す第1の読出手段と、
前記第1の読出手段によって読み出されたサンプル数情報に基づいて前記非圧縮楽音データおよび前記圧縮楽音データによる楽音の再生終了を検出する検出手段と、
前記記憶媒体から前記非圧縮楽音データを読み出す第2の読出手段と、
前記記憶媒体から前記圧縮楽音データを読み出す第3の読出手段と、
前記第3の読出手段によって読み出された圧縮楽音データを伸張して出力するデコーダと、
前記第2の読出手段の出力と前記デコーダの出力とを切り換える切換手段と、
ループ再生指示を受けて、前記第1〜第3の読出手段へ読み出し指令を出力するとともに前記切換手段を前記第2の読出手段の出力に切り換える手順、前記第2の読出手段による前記非圧縮楽音データの読み出しが終了した時点で前記切換手段を前記デコーダの出力に切り換える手順、を順に実行し、前記検出手段によって前記非圧縮楽音データおよび前記圧縮楽音データによる楽音の再生終了が検出されたことを受けて前記第2および第3の読出手段に再び前記非圧縮楽音データおよび前記圧縮楽音データの読み出しを開始させることにより、前記楽音データをループ再生させる制御手段と、
を具備することを特徴とする楽音データ再生装置。 The musical tone data from a storage medium storing musical tone data composed of non-compressed musical tone data, compressed musical tone data, and sample number information indicating the total number of data units included in the non-compressed musical tone data and the compressed musical tone data Is a musical sound data reproducing device for reading out and reproducing
The compressed musical sound data includes silent data so as to have a data size that is an integral multiple of a predetermined reproduction processing unit in the reproduction of musical sound data,
First reading means for reading the sample number information from the storage medium;
Detecting means for detecting the end of reproduction of the musical sound by the non-compressed musical tone data and the compressed musical tone data based on the number-of-samples information read by the first reading means ;
A second reading unit for to read out the uncompressed music data from the storage medium,
Third reading means for reading the compressed musical sound data from the storage medium;
A decoder for decompressing and outputting the compressed musical sound data read by the third reading means;
Switching means for switching between the output of the second reading means and the output of the decoder;
Receiving loop reproduction instruction, the first to third switching procedure step to the output of said second reading means said switching means Shi out readings to reading means together and outputs the command, the second readout means switching procedure step, it was executed in order to pre-Symbol changeover means to the output of the decoder at the time when the uncompressed tone data read is completed by, the tone by the uncompressed tone data and the compressed musical data by the detecting means Control means for causing the second and third reading means to start reading the non-compressed musical tone data and the compressed musical tone data again in response to the detection of the end of reproduction, and to reproduce the musical tone data in a loop ;
A musical sound data reproducing apparatus comprising:
ことを特徴とする請求項2に記載の楽音データ再生装置。 The uncompressed musical tone data has a data size corresponding to the time required to start decompressing and outputting the compressed musical tone data.
3. A musical sound data reproducing apparatus according to claim 2, wherein
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004097383A JP3918826B2 (en) | 2004-03-30 | 2004-03-30 | Music data playback device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004097383A JP3918826B2 (en) | 2004-03-30 | 2004-03-30 | Music data playback device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005283944A JP2005283944A (en) | 2005-10-13 |
JP3918826B2 true JP3918826B2 (en) | 2007-05-23 |
Family
ID=35182391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004097383A Expired - Lifetime JP3918826B2 (en) | 2004-03-30 | 2004-03-30 | Music data playback device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3918826B2 (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02146599A (en) * | 1988-11-29 | 1990-06-05 | Sony Corp | Sound source data compressing and encoding method |
JPH06167978A (en) * | 1992-11-30 | 1994-06-14 | Yamaha Corp | Sound source device of electronic musical instrument |
JPH07181975A (en) * | 1993-12-21 | 1995-07-21 | Yamaha Corp | Waveform generation device and waveform storage device |
JPH08328566A (en) * | 1995-06-02 | 1996-12-13 | Roland Corp | Musical sound generating device |
JPH11288285A (en) * | 1999-01-29 | 1999-10-19 | Yamaha Corp | Method and device for generating musical sound |
WO1999059133A1 (en) * | 1998-05-14 | 1999-11-18 | Sony Computer Entertainment Inc. | Musical sound generating device and method, providing medium, and data recording medium |
JP2002341896A (en) * | 2001-05-11 | 2002-11-29 | Yamaha Corp | Digital audio compression circuit and expansion circuit |
-
2004
- 2004-03-30 JP JP2004097383A patent/JP3918826B2/en not_active Expired - Lifetime
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02146599A (en) * | 1988-11-29 | 1990-06-05 | Sony Corp | Sound source data compressing and encoding method |
JPH06167978A (en) * | 1992-11-30 | 1994-06-14 | Yamaha Corp | Sound source device of electronic musical instrument |
JPH07181975A (en) * | 1993-12-21 | 1995-07-21 | Yamaha Corp | Waveform generation device and waveform storage device |
JPH08328566A (en) * | 1995-06-02 | 1996-12-13 | Roland Corp | Musical sound generating device |
WO1999059133A1 (en) * | 1998-05-14 | 1999-11-18 | Sony Computer Entertainment Inc. | Musical sound generating device and method, providing medium, and data recording medium |
JPH11288285A (en) * | 1999-01-29 | 1999-10-19 | Yamaha Corp | Method and device for generating musical sound |
JP2002341896A (en) * | 2001-05-11 | 2002-11-29 | Yamaha Corp | Digital audio compression circuit and expansion circuit |
Also Published As
Publication number | Publication date |
---|---|
JP2005283944A (en) | 2005-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100473889B1 (en) | Method of editing audio data and recording medium thereof and digital audio player | |
JP4760278B2 (en) | Interpolation device, audio playback device, interpolation method, and interpolation program | |
JP2008268969A (en) | Digital data player, and data processing method and recording medium thereof | |
US7840290B2 (en) | Encoded digital audio reproducing apparatus | |
JPH09263010A (en) | Code printing apparatus | |
EP1953751A2 (en) | Reproduction device, reproduction method and computer usable medium having computer readable reproduction embodied therein | |
JP4639966B2 (en) | Audio data compression method, audio data compression circuit, and audio data expansion circuit | |
JP3918826B2 (en) | Music data playback device | |
JP4311541B2 (en) | Audio signal compression device | |
JP2009075280A (en) | Content playback device | |
JP4618634B2 (en) | Compressed audio data processing method | |
JPH07307674A (en) | Compressed information reproducing device | |
JP4222250B2 (en) | Compressed music data playback device | |
JP2006030577A (en) | Method and device for coded transmission of music | |
JP2001222300A (en) | Voice reproducing device and recording medium | |
JP2003280691A (en) | Voice processing method and voice processor | |
JP2005114813A (en) | Audio signal reproducing device and reproducing method | |
JP2009122609A (en) | Acoustic signal coder and acoustic signal decoder, their method, program and recording medium | |
JPWO2018198788A1 (en) | Signal processing device, signal processing method, and program | |
JP2010123225A (en) | Record reproducing apparatus and record reproducing method | |
JP2003271198A (en) | Compressed data processor, method and compressed data processing program | |
JP2003091294A (en) | Device and method for decoding speech, and speech decoding program | |
JP4940875B2 (en) | Audio data compression method and apparatus, and decompression method and apparatus | |
JP2002268689A (en) | Digital music recorder, digital music reproducing device and their method | |
JP2011209412A (en) | Compressing device, compressing method, reproducing device, and reproducing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20061018 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20061031 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070104 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20070123 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070205 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 3918826 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313532 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110223 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110223 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120223 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130223 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130223 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140223 Year of fee payment: 7 |