JPH0887271A - Compression method and expansion method for playing information - Google Patents

Compression method and expansion method for playing information

Info

Publication number
JPH0887271A
JPH0887271A JP6248875A JP24887594A JPH0887271A JP H0887271 A JPH0887271 A JP H0887271A JP 6248875 A JP6248875 A JP 6248875A JP 24887594 A JP24887594 A JP 24887594A JP H0887271 A JPH0887271 A JP H0887271A
Authority
JP
Japan
Prior art keywords
file
performance information
pointer
pitch
repetition
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.)
Granted
Application number
JP6248875A
Other languages
Japanese (ja)
Other versions
JP3322763B2 (en
Inventor
Kazuo Hikawa
和生 飛河
Toshio Kuroiwa
俊夫 黒岩
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan 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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP24887594A priority Critical patent/JP3322763B2/en
Publication of JPH0887271A publication Critical patent/JPH0887271A/en
Application granted granted Critical
Publication of JP3322763B2 publication Critical patent/JP3322763B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE: To compress playing information in order to reduce the data amount of playing information which specifies the interval of sound constituting musical tone and the sounding time by deleting a repeated part so as not to overlap the repetition part when the existence of a repetition is detected. CONSTITUTION: SMFs of many musics are stored in a memory. An SMF1 equivalent to one music specified by a control system is separated every channel by an MIDI CH separation block 2. A block 3 detects a (▵t+event) block repeat and when there exists a repetition in the playing information pattern, the block 3 detects the repetition. A block 4 performs an R(repeat) coding processing, deletes the repeated part detected by the block 3 so as not to overlap the repetition part and adds necessary signals. A merge processing block 5 merges the signals to which multi-channel R coding processings are performed into an original SMF format. Thus, ▵t is in integrated into one body and a compressed file 6 is produced.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は演奏情報の圧縮及び伸長
に関し、特に楽音を構成する音の音程と発音時間を指定
する演奏情報のデータ量を少なくするための圧縮と、一
旦圧縮された演奏情報の伸長に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to compression and decompression of performance information, and in particular, compression for reducing the amount of performance information data designating the pitches and durations of notes constituting musical tones and the performance once compressed. Regarding decompression of information.

【0002】[0002]

【従来の技術】楽音を構成する音の音程と発音時間を指
定する演奏情報として例えばMIDI信号がある。MI
DI信号はSMF(スタンダードMIDIファイル)と
いう形式でメモリ等に蓄積されたり、伝送されたりす
る。かかるMIDI信号は従来の光ディスク等の記憶媒
体に記録されたデータを読み出す方式のカラオケ装置に
代って通信カラオケといわれているシステムに用いられ
ている。
2. Description of the Related Art For example, a MIDI signal is used as performance information for designating a pitch and a tone generation time of notes constituting a tone. MI
The DI signal is stored in a memory or the like and transmitted in the form of SMF (standard MIDI file). Such a MIDI signal is used in a system called communication karaoke, instead of a karaoke device of the type that reads data recorded in a storage medium such as a conventional optical disk.

【0003】この通信カラオケはカラオケの音楽、歌
詞、関連する画像(動画又は静止画)等を光ディスク等
から出力された信号の情報の形態でそのまま送信する
と、データ量が膨大であることから、楽音情報について
はMIDI信号としてステーションから各ユーザーの使
用場所に設けた端末へ送信し、歌詞については文字コー
ドとして送信するもので、必要に応じて所望の曲のデー
タを配信するものである。かかる例として株式会社エク
シング製の「JOYSOUND」システムが知られてい
る。なお、音符、信号よりなるメロディの楽譜データに
ついて繰り返し部分を効率よく処理する技術が特公昭6
1−91697号公報に示されているが、これはMID
I信号を前提とするものではなく、繰り返し等の記号を
用いた楽譜が存在することを前提としたものであり、S
MFで表現されるような既にある演奏情報を圧縮する技
術ではない。さらに特開平4−147192号公報には
楽譜の繰り返し部分をパターン化する技術が示されてい
るが、十分なデータの圧縮は期待できない。
In this communication karaoke, if karaoke music, lyrics, related images (moving image or still image), etc. are transmitted as they are in the form of information of signals output from an optical disk or the like, the amount of data is enormous, so that a musical tone is generated. The information is transmitted as a MIDI signal from the station to a terminal provided at each user's place of use, and the lyrics are transmitted as a character code, and the data of a desired song is distributed as necessary. As such an example, the "JOYSOUND" system manufactured by EXXING Co., Ltd. is known. A technique for efficiently processing the repeated portion of the musical score data of a melody consisting of notes and signals is Japanese Patent Publication No.
1-91697, this is MID
It is not based on the I signal, but based on the existence of a musical score using symbols such as repetition, S
It is not a technique for compressing existing performance information expressed by MF. Further, Japanese Laid-Open Patent Publication No. 4-147192 discloses a technique for patternizing a repeated portion of a musical score, but sufficient data compression cannot be expected.

【0004】上記従来の通信カラオケシステムをはじ
め、これまでに提案されたシステムは次の表1のように
分類される。
The systems proposed so far, including the above-mentioned conventional online karaoke system, are classified as shown in Table 1 below.

【0005】[0005]

【表1】 [Table 1]

【0006】[0006]

【発明が解決しようとする課題】表1からわかるよう
に、MIDI信号を用いた場合、CD、LD等から再生
された音の品質とは同一ではないが、品質を向上させよ
うとすればデータ量が増大することがわかる。データ量
が多いと、ISDNのような高速デジタル回線を用いな
ければリアルタイム通信が不可能となり、またデータの
蓄積、保存の上でも必要メモリー容量が大きくなりコス
トの上昇につながってしまう。かかる問題は、通信カラ
オケシステムが一般家庭へ普及していくための障害とな
っている。また、通信上の問題とは別に、ハードディス
ク等の大容量メモリに多数の曲の演奏情報を蓄積してお
く、所謂パッケージカラオケシステムにおいても、デー
タ量の圧縮が求められている。
As can be seen from Table 1, when the MIDI signal is used, the quality of the sound reproduced from the CD, LD, etc. is not the same, but if the quality is improved, the data is not reproduced. It can be seen that the amount increases. If the amount of data is large, real-time communication cannot be performed unless a high-speed digital line such as ISDN is used, and the memory capacity required for storing and storing data also increases, leading to an increase in cost. This problem is an obstacle for the online karaoke system to spread to general households. In addition to communication problems, compression of data amount is also required in so-called package karaoke system in which performance information of many songs is stored in a large-capacity memory such as a hard disk.

【0007】音楽は繰り返しの芸術であると言われるよ
うに、演奏が一定のパターンで繰り返されることが多
い。ところがMIDI信号のような演奏情報では時間軸
上に発生する次々のイベントの順列をそのままの形で扱
っているので、一般的なデジタル信号の圧縮技術による
データ量の圧縮を行うにとどまっていた。このため演奏
情報を配信する通信カラオケやメモリに多数曲のデータ
を蓄積したパッケージ形式のカラオケシステム等では、
データ量の圧縮・削減によるコスト低減、通信時間の短
縮等が求められている。
As it is said that music is a repetitive art, performance is often repeated in a certain pattern. However, since performance information such as MIDI signals treats the sequence of events that occur on the time axis as they are, the compression of the amount of data is limited to the general digital signal compression technique. Therefore, in communication karaoke that distributes performance information and package type karaoke systems that store data of many songs in memory,
Cost reduction and communication time reduction by compressing / reducing data volume are required.

【0008】したがって、本発明は楽音を構成する音の
音程と発音時間を指定する演奏情報のデータ量を大幅に
削減すべく演奏情報を圧縮することのできる演奏情報圧
縮方法と、かかる方法で圧縮された演奏情報を伸張して
基の演奏情報を得ることのできる演奏情報伸張方法を提
供することを目的とする。
Therefore, according to the present invention, a performance information compression method capable of compressing performance information so as to significantly reduce the data amount of the performance information designating the pitches and onset times of notes constituting a musical tone, and the compression method. An object of the present invention is to provide a performance information expanding method capable of expanding the generated performance information to obtain basic performance information.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に本発明では、演奏情報が一定の時間単位で繰り返さ
れ、重複部分があることに着目し、かかる繰り返し部分
を検出し、これを削除するとともに、再生時に圧縮情報
を正しく再現できるよう、削除された繰り返し部分の位
置等を示す信号を挿入するようにし、再生時には、この
信号を用いて圧縮された演奏情報を伸張して、元の演奏
情報を得るようにしたものである。
In order to achieve the above-mentioned object, in the present invention, attention is paid to the fact that performance information is repeated in fixed time units and there is an overlapping portion, such a repeating portion is detected, and this is deleted. In addition, a signal indicating the position of the deleted repeated portion is inserted so that the compressed information can be correctly reproduced at the time of reproduction, and at the time of reproduction, the compressed performance information is decompressed using this signal to restore the original The performance information is obtained.

【0010】すなわち本発明によれば、楽音を構成する
音の音程と発音時間を指定する演奏情報を受けて、前記
演奏情報を所定時間単位のパート毎に分割するステップ
と、前記分割するステップにて得られた前記パート毎の
前記演奏情報を時系列順に比較し、前記演奏情報の時間
軸方向の変化のパターンが2パート以上連続し、前記演
奏情報に繰り返しがあるか否かを判断するステップと、
前記判断するステップにて繰り返しがあると判断された
とき、その繰り返しパート数を計数するステップと、前
記判断するステップにて繰り返しがあると判断されたと
き、繰り返しのパートが重複しないよう削除するステッ
プと、前記判断するステップにて繰り返しがあると判断
されたとき、前記削除する手段によって削除される部分
に、パターンの繰り返しが生じる旨を示す情報と、前記
計数するステップによって計数されたパターンの繰り返
し回数を示す情報を付加するステップとを、有する演奏
情報圧縮方法が提供される。
That is, according to the present invention, the step of dividing the performance information into parts of a predetermined time unit by receiving the performance information designating the pitch and the pronunciation time of the notes constituting the musical tone, and the step of dividing the performance information Comparing the performance information obtained for each part in chronological order, and determining whether or not the pattern of change in the performance information in the time axis direction is continuous for two or more parts and the performance information is repeated. When,
When it is determined that there is repetition in the determining step, a step of counting the number of repeated parts, and when it is determined that there is repetition in the determining step, deleting the repeated parts so that they do not overlap And, when it is determined that there is repetition in the determining step, information indicating that the pattern is repeated in the portion deleted by the deleting unit, and the repetition of the pattern counted in the counting step. And a step of adding information indicating the number of times, the method for compressing performance information is provided.

【0011】さらに本発明によれば、楽音を構成する音
の音程と発音時間を指定する演奏情報を受けて、前記演
奏情報を所定時間単位のパート毎に分割するステップ
と、前記分割するステップにて得られた前記パート毎の
前記演奏情報を時系列順に比較し、前記演奏情報の時間
軸方向の変化のパターンが一部の演奏情報を除いて、2
パート以上連続するとき、前記演奏情報に繰り返しがあ
ると判断するステップと、前記判断するステップにて繰
り返しがあると判断されたとき、その繰り返しパート数
を計数するステップと、前記判断するステップにて繰り
返しがあると判断されたとき、繰り返しのパート中、繰
り返しではない異なる部分を残して、他の部分が重複し
ないよう削除するステップと、前記判断するステップに
て繰り返しがあると判断されたとき、前記削除するステ
ップによって削除される部分に、パターンの繰り返しが
生じる旨を示す情報と、前記計数するステップによって
計数されたパターンの繰り返し回数を示す情報を付加す
るステップとを、有する演奏情報圧縮方法が提供され
る。
Further, according to the present invention, the step of dividing the performance information into parts of a predetermined time unit in response to the performance information designating the pitch and the pronunciation time of the notes constituting the musical tone, and the step of dividing the performance information The performance information obtained for each part is compared in chronological order, and a part of the performance information whose change pattern in the time axis direction is 2 is excluded.
When the performance information is repeated, the step of determining that the performance information is repeated, the step of counting the number of repeated parts when it is determined that the performance information is repeated, and the step of determining are performed. When it is determined that there is repetition, a step of deleting different portions that are not repeated in the repeated part so that other portions do not overlap, and when it is determined that there is repetition in the determining step, A performance information compression method comprising: information indicating that pattern repetition occurs in a portion deleted by the deleting step and information indicating the number of times the pattern is repeated counted by the counting step. Provided.

【0012】さらに本発明によれば、楽音を構成する音
の音程と発音時間を指定する演奏情報を受けて、前記演
奏情報を所定時間単位のパート毎に分割するステップ
と、前記分割するステップにて得られたパート列中の先
頭のパートからパート単位で順次データ比較を行い、実
質的に同一のデータのパートに同一パート番号を付与し
ファイルAを作成するステップと、前記ファイルAの先
頭からパート番号を調べ、重複する番号が出現したとき
は、それを削除した新たなファイルBを作成するステッ
プと、前記ファイルAとファイルBを先頭のパートから
パート単位でパート番号の比較を行い、互いに相違する
パート番号が出現したら、又は前記ファイルAのパート
と比較する前記ファイルBのパートが存在しないとき
は、挿入すべきジャンプマークとタグの各々における識
別のためのレベルをインクリメントし、前記ファイルB
中の相違するパート番号の直前に前記レベルのインクリ
メントされたジャンプマークを挿入し、かつ前記ファイ
ルA中の相違するパート番号と同一の前記ファイルB中
のパート番号の直前に前記レベルのインクリメントされ
たタグを挿入するステップと、前記ファイルA中の前記
相違するパート番号以後と前記ファイルBの前記タグの
挿入された直後のパート以後とをパート単位でパート番
号の比較を行い、互いに相違するパート番号が出現した
ら、前記挿入するステップと同様の挿入を行うステップ
とを、有する演奏情報圧縮方法が提供される。
Further, according to the present invention, the step of dividing the performance information into parts of a predetermined time unit in response to the performance information designating the pitches of the notes constituting the musical tone and the pronunciation time, and the step of dividing the performance information The data is sequentially compared on a part-by-part basis from the first part in the obtained part string, the same part number is assigned to the parts of substantially the same data, and the file A is created; The part numbers are checked, and when duplicate numbers appear, a step of creating a new file B by deleting them, and comparing the file A and the file B from the first part to the part number by part, If a different part number appears, or if there is no part in the file B to compare with the part in the file A, the jumper to be inserted. Incrementing the level for identification in each of the marks and tags, the file B
An incremented jump mark of the level is inserted immediately before a different part number in the file, and the level is incremented immediately before a part number in the file B that is the same as the different part number in the file A. The step of inserting a tag and the different part number in the file A and the part immediately after the tag in the file B immediately after the tag are inserted are compared on a part-by-part basis. , The performance information compression method is provided.

【0013】さらに本発明によれば、楽音を構成する音
の音程と発音時間を指定する演奏情報を受けて、前記演
奏情報を所定時間単位のパート毎に分割するステップ
と、当初内容のないファイルCを作成するステップと、
前記ファイルC内の位置を示すファイルCのポインタを
前記ファイルCの先頭に設定するステップと、当初内容
のないパートリストを作成するステップと、変数iに前
記ファイルAの最初のパート番号を設定するステップ
と、前記変数iが前記パートリストにあるか否かを判断
するパート番号確認ステップと、前記パート番号確認ス
テップで前記変数iで示されるパート番号がないとき
は、前記ポインタが前記ファイルCの末尾にあるか否か
を判断するポインタ位置第1判断ステップと、前記ポイ
ンタ位置が前記ファイルCの末尾以外のときは、前記ポ
インタが現在ある位置にジャンプマークJUMP(n)
を挿入し、次に前記ポインタを前記ファイルCの末尾へ
移動させ、その後前記ポインタの位置にタグTAG
(n)を挿入し、前記変数nを1つインクリメントする
ステップと、前記ポインタ位置が前記ファイルCの末尾
であるときは、前記ファイルCに前記ファイルAの前記
変数iで示されるパートの演奏情報を付加し、前記パー
トリストに前記変数iを付加し、前記ポインタを前記フ
ァイルCの末尾に移動させるステップと、前記パート番
号確認ステップで前記変数iで示されるパート番号があ
るときは、前記ポインタが前記ファイルCの変数iで示
されるパートの先頭にあるか否かを判断するポインタ位
置第2判断ステップと、前記ポインタ位置が前記ファイ
ルCの変数iで示されるパートの先頭以外のときは、前
記ポインタが現在ある位置にジャンプマークJUMP
(n)を挿入し、次に前記ポインタを前記ファイルCの
変数iで示されるパートの先頭位置へ移動させ、その後
前記ポインタの位置にタグTAG(n)を挿入し、前記
変数nを1つインクリメントするステップと、前記ポイ
ンタが前記ファイルCの変数iで示されるパートの先頭
であるときは、前記ポインタを次のパートの先頭位置へ
移動させるステップと、前記2つの移動させるステップ
一方の後に、前記ファイルAの中の次のパートを検索
し、存在する場合は前記変数iに前記ファイルAの次の
パート番号を設定する次パート番号設定ステップとを、
有し、以後前記ファイルAに次のパートがなくなるま
で、前記パート番号確認ステップ以降、前記次パート番
号設定ステップまでを繰り返し実行するようにした演奏
情報圧縮方法が提供される。
Further, according to the present invention, a step of receiving performance information designating a pitch and a pronunciation time of notes constituting a musical sound and dividing the performance information into parts of a predetermined time unit, and a file having no initial content Creating C, and
Setting a pointer of the file C indicating the position in the file C to the head of the file C, creating a part list initially having no content, and setting a variable i to the first part number of the file A Step, a part number confirmation step of determining whether or not the variable i is in the part list, and if there is no part number indicated by the variable i in the part number confirmation step, the pointer is stored in the file C. A first pointer position determining step of determining whether or not the pointer is at the end, and when the pointer position is other than the end of the file C, a jump mark JUMP (n) is set at the position where the pointer is currently.
, Then move the pointer to the end of the file C, and then tag TAG at the position of the pointer.
(N) is inserted, the variable n is incremented by one, and when the pointer position is the end of the file C, the performance information of the part indicated by the variable i of the file A is stored in the file C. Is added to the part list, the variable i is added to the part list, and the pointer is moved to the end of the file C. If there is a part number indicated by the variable i in the part number confirmation step, the pointer is added. Is at the beginning of the part indicated by the variable i of the file C, and a second pointer position determination step; and when the pointer position is other than the beginning of the part indicated by the variable i of the file C, Jump mark JUMP at the position where the pointer is currently
(N) is inserted, then the pointer is moved to the head position of the part indicated by the variable i in the file C, and then the tag TAG (n) is inserted at the position of the pointer, and the variable n is set to one. After the step of incrementing, when the pointer is the head of the part indicated by the variable i of the file C, after the step of moving the pointer to the head position of the next part, and the step of moving the two, A next part number setting step of searching the next part in the file A, and setting the next part number of the file A in the variable i if it exists,
A performance information compression method is provided in which the part number confirmation step and the next part number setting step are repeatedly performed until the file A has no next part.

【0014】さらに本発明によれば、演奏情報の繰り返
し部分を削除し、繰り返し部分を再生するために挿入さ
れたジャンプマークとタグであってレベルの付されたも
のを含む圧縮演奏情報ファイルをメモリにロードするス
テップと、前記メモリにロードされた前記圧縮演奏情報
ファイルについて前記タグを検出するステップと、前記
メモリにロードされた前記圧縮演奏情報ファイルについ
て前記ジャンプマークをそのレベル順に検出するステッ
プと、前記ジャンプマークが検出されたとき、先に検出
された前記タグのレベルと、その前記メモリのアドレス
を指定して前記メモリからのデータの読み出し制御を行
うステップとを有する演奏情報伸張方法が提供される。
Further, according to the present invention, a compressed performance information file including a jump mark and a tag, which is inserted to reproduce the repeated part and deletes the repeated part of the performance information and which has a level, is stored in the memory. The step of detecting the tag for the compressed performance information file loaded in the memory, the step of detecting the jump marks in the level order for the compressed performance information file loaded in the memory, There is provided a performance information decompression method, which comprises the step of, when the jump mark is detected, the level of the tag detected previously and the address of the memory for designating control of reading data from the memory. It

【0015】[0015]

【実施例】以下図面と共に本発明の好ましい実施例につ
いて説明する。図1は本発明の演奏情報圧縮方法の第1
実施例を示すフローチャートである。図1のフローチャ
ートについて説明する前に、本発明の適用される例とし
て通信カラオケシステムについて図2、図3を用いて説
明する。図2は本発明の演奏情報圧縮方法により、カラ
オケ情報としてのMIDI情報を圧縮してステーション
(ホスト)から各端末へ送信する通信カラオケシステム
の一例を示す模式ブロック図である。図3はステーショ
ンが圧縮しないデータと、本発明の演奏情報圧縮方法に
より事前に圧縮してあるデータの双方を送信/蓄積ファ
イルA、Bの2種類用意しておき、端末や回線の能力に
応じて2つのファイルを使い分ける構成例を示す模式ブ
ロック図である。どちらのファイルから読み出して送信
するかの判断は、通信回線(ネットワーク)がISDN
等の高速回線か一般公衆回線かを判断したり、端末側の
伸張能力を検出することにより行う。なお、図2、図3
いずれのシステムにおいても、端末側のハードディスク
等のメモリにパッケージとして予め数千曲分のカラオケ
情報を本発明の演奏情報圧縮方法により圧縮したMID
I情報として蓄積しておくことができる。この場合、新
譜やリクエスト頻度の低い曲で端末のメモリに蓄積され
ていない曲の情報を通信回線を用いてステーションから
端末へ送信することができる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows a first performance information compression method according to the present invention.
It is a flow chart which shows an example. Before explaining the flowchart of FIG. 1, a communication karaoke system as an example to which the present invention is applied will be described with reference to FIGS. 2 and 3. FIG. 2 is a schematic block diagram showing an example of a communication karaoke system in which MIDI information as karaoke information is compressed and transmitted from a station (host) to each terminal by the performance information compression method of the present invention. In FIG. 3, two types of transmission / accumulation files A and B are prepared for both the data that the station does not compress and the data that has been compressed in advance by the performance information compression method of the present invention, depending on the capabilities of the terminal and the line. 3 is a schematic block diagram showing a configuration example in which two files are selectively used. The communication line (network) uses ISDN to determine which file to read and transmit.
It is performed by determining whether the line is a high-speed line or a general public line, or by detecting the expansion capability on the terminal side. 2 and 3
In any of the systems, a MID obtained by previously compressing karaoke information for several thousand songs as a package in a memory such as a hard disk on the terminal side by the performance information compression method of the present invention.
It can be stored as I information. In this case, information about a new song or a song with a low request frequency that is not stored in the memory of the terminal can be transmitted from the station to the terminal using the communication line.

【0016】図4は1つの曲の演奏情報を記述したSM
Fを圧縮して圧縮ファイルを作成する手順の全体概念を
示すブロック図である。多数曲分のSMFは例えばハー
ドディスク等のメモリに記憶されており、この内、図示
しない制御系により指定された1曲分のSMF1がMI
DI CH (チャンネル)分離ブロック2にてチャン
ネル毎に分離される。すなわち演奏すべき楽器(音源)
に対応するチャンネル毎に以下の処理は行われる。ブロ
ック3は(△t+event)ブロックリピートを検出
するものである。すなわち、後述する演奏情報のパター
ンに繰り返し(リピート)があるとき、これを検出する
ものである。次のブロック4はR(リピート)符号化処
理を行うもので、ブロック3で検出された重複部分につ
いて重複しないよう削除して、かつ必要な信号を付加す
る処理が行われる。次のマージ処理ブロック5は多チャ
ンネル分のR符号化処理の行われた信号を元のSMF形
式のように合体するものであり、その結果△t(デルタ
タイム)が一本化されて、圧縮ファイル6が作られる。
FIG. 4 is an SM describing performance information of one song.
It is a block diagram which shows the whole concept of the procedure of compressing F and creating a compression file. The SMFs for many songs are stored in a memory such as a hard disk, and the SMF 1 for one song specified by a control system (not shown) is MI.
DI CH (channel) separation block 2 separates each channel. That is, the instrument (sound source) to be played
The following processing is performed for each channel corresponding to. Block 3 is for detecting a (Δt + event) block repeat. That is, when a pattern of performance information described later has a repeat (repeat), this is detected. The next block 4 is to perform R (repeat) coding processing, in which the overlapping portion detected in block 3 is deleted so as not to overlap and a necessary signal is added. The next merge processing block 5 combines the signals subjected to the R coding processing for multiple channels as in the original SMF format, and as a result, Δt (delta time) is unified and compressed. File 6 is created.

【0017】図5はSMFによる記述から繰り返し部分
を検出し、重複部分を削除して、圧縮した結果得られる
圧縮ファイルを作成する場合のデータ列の変化態様を示
す図である。図5中“EVENT”はMIDI信号の
“イベント”を示し、“T”は“△t”と同様の時間情
報を、“R”は“リピート(繰り返し)”を示してい
る。図6は図5に示した情報“T”又は“R”のフォー
マットを示している。このデータは図示のように8ビッ
ト構成であり、各ビットは図示の内容を示す。図7は1
つの例として、繰り返し部分のある楽譜を示している。
この例では第2小節と第3小節が同一のパターンとなっ
ている。
FIG. 5 is a diagram showing a change mode of a data string in the case where a repeated portion is detected from the SMF description, an overlapping portion is deleted, and a compressed file obtained as a result of compression is created. In FIG. 5, “EVENT” indicates “event” of the MIDI signal, “T” indicates time information similar to “Δt”, and “R” indicates “repeat”. FIG. 6 shows the format of the information “T” or “R” shown in FIG. This data has an 8-bit structure as shown in the drawing, and each bit indicates the shown contents. FIG. 7 shows 1
As an example, a score with repeating parts is shown.
In this example, the second bar and the third bar have the same pattern.

【0018】ここで図1のフローチャートに戻って本発
明の演奏情報圧縮方法の第1実施例について説明する。
このフローは図4で示したブロック3とブロック4に相
当する。ステップS1にてチャンネル単位で先頭から△
tで表記し、ステップS2で△t(e)の累計であるΣ
△t(e)と個々のイベントを示す変数eをそれぞれ0
にイニシャライズする。ステップS3では△t(e)を
読み込み、ステップS4では△t(e)だけインクリメ
ントし、ステップS5ではΣ△t(e)が1920を超
えたか否かを判断する。この数値1920は4分音符1
個あたりのティクス(Ticks)数を480とし、1
小節が4分音符4個分の長さ(すなわち拍子記号が4/
4)とした場合の1小節の長さに相当する。なおTic
kはSMFにおける最小時間単位である。このステップ
S5は演奏情報であるSMFを所定時間単位のパート
(この例では1小節)毎に分割するものである。ステッ
プS5で1小節が経過するまでの間にステップS6を繰
り返し実行し、イベントマップ(EVENT MAP)
iを作成する。イベントマップiはパート毎のイベント
の集合である。ステップS7ではeを1つインクリメン
トする。1小節が終了するとステップS8で△tの累計
から1920を減じ、次のステップS9で前の小節(i
−1)のイベントマップ(i−1)と、現在の小節iの
イベントマップiの内容が一致するか否かを判断する。
一致しないときはステップS11でiを1つインクリメ
ントする、一致するときはステップS10で重複データ
の後ろの方を削除し、リピートイベント(Repeat
Event)を作成する。リピートイベントは図5に
示す“R”に相当し、図6のデータフォーマットを有す
る。図6で(ID1,ID0)=(0,0)及び(ID
1,ID0)=(0,1)の場合がT、(ID1,ID
0)=(1,0)及び(ID1,ID0)=(1,1)
の場合がRである。単純リピート及び区間指定リピート
はチャンネル単位で行い、チャンネルはリピートバイト
の直前のイベントに基づいて決定される。図6の−△t
sはマイナス△t−start、−△teはマイナス△
t−endの意味であり、−△ts及び−△teはマイ
ナスを取って絶対値で表現している。なお、ステップS
10では、リピート検出回数を計数し、図6中のリピー
トイベント中のリピート回数として記述する。ステップ
S10の後はステップS11が実行される。ステップS
11の後にはステップS12にてeを0としてステップ
S6へ行く。なお、ステップS13では全データについ
てイベントマップが作成されたか否かを判断し、YES
ならこのフローを終了する。
Now, returning to the flow chart of FIG. 1, a first embodiment of the performance information compression method of the present invention will be described.
This flow corresponds to block 3 and block 4 shown in FIG. At the beginning of each channel in step S1, △
It is represented by t, and Σ is the cumulative total of Δt (e) in step S2.
Δt (e) and variable e indicating each event are 0
To initialize. In step S3, Δt (e) is read, in step S4, it is incremented by Δt (e), and in step S5, it is determined whether or not ΣΔt (e) exceeds 1920. This number 1920 is quarter note 1
The number of ticks per piece is 480, and 1
The measure is four quarter notes long (ie the time signature is 4 /
This corresponds to the length of one bar in the case of 4). Tic
k is the minimum time unit in SMF. This step S5 is to divide the performance information SMF into parts (one bar in this example) of a predetermined time unit. Step S6 is repeatedly executed until one bar has elapsed in step S5, and the event map (EVENT MAP) is executed.
Create i. The event map i is a set of events for each part. In step S7, e is incremented by 1. When one bar is completed, 1920 is subtracted from the total of Δt in step S8, and the previous bar (i
It is determined whether or not the event map (i-1) of -1) and the contents of the event map i of the current bar i match.
If they do not match, i is incremented by 1 in step S11. If they match, the latter part of the duplicated data is deleted in step S10, and the repeat event (Repeat) is repeated.
Event) is created. The repeat event corresponds to "R" shown in FIG. 5 and has the data format shown in FIG. In FIG. 6, (ID1, ID0) = (0,0) and (ID
1, ID0) = (0,1) is T, (ID1, ID
0) = (1,0) and (ID1, ID0) = (1,1)
Is R. The simple repeat and the section designation repeat are performed on a channel-by-channel basis, and the channel is determined based on the event immediately before the repeat byte. -Δt in FIG.
s is minus △ t-start,-△ te is minus △
It means t-end, and −Δts and −Δte are expressed as absolute values by subtracting minus. Note that step S
In 10, the number of repeat detections is counted and described as the number of repeats in the repeat event in FIG. After step S10, step S11 is executed. Step S
After 11, the e is set to 0 in step S12 and the process goes to step S6. In step S13, it is determined whether event maps have been created for all the data, and YES
Then, this flow ends.

【0019】図1のフローによって図7の譜例に示され
る曲の演奏情報を処理すると、イベントマップ同志の比
較から、同一の音程、同一の発音時間を示すパートの繰
り返しとして、第2小節と第3小節が検出される。図1
の実施例では演奏情報の時間軸方向の変化のパターンが
2パート以上連続したとき、すなわちイベントマップの
内容が完全に一致したとき、繰り返しがあると判断して
いるが、他の例として、部分的な一致を検出したとき
も、繰り返しとみなし、異なる部分はそのまま記述する
ようにすることもできる。
When the performance information of the piece of music shown in the musical notation of FIG. 7 is processed by the flow of FIG. 1, from the comparison of the event maps, it is determined that the second bar as the repetition of the parts having the same pitch and the same sounding time. The third measure is detected. FIG.
In the above embodiment, when the pattern of change in the performance information in the time axis direction is continuous for two or more parts, that is, when the contents of the event map completely match, it is judged that there is repetition, but as another example, When a specific match is detected, it can be regarded as a repetition and different parts can be described as they are.

【0020】さらに、パート同志の一致の有無の検出精
度を粗くし、すなわち音程と発音時間の照合において所
定の誤差許容範囲を設けるようにしてもよい。このよう
にすることにより、わずかなノイズや演奏ミスにより、
本来繰り返し部分であるのに、非同一パターンと認識さ
れてしまうことを防止でき、結果として繰り返しと認識
されるパート数を増加させることができ、圧縮効率を高
めることができる。さらに、演奏上の時間軸のゆらぎ、
あるいは演奏の強さのゆらぎなどの許容範囲を演奏再現
時(再生時)にあまり影響を与えない程度に広げること
により、圧縮効率を高めることもできる。また、パート
同志の比較の他に、同一パート内で所定の音程が繰り返
し出現するような場合、例えばドラムなどの打楽器の演
奏情報の場合、これを検出して重複しないよう削除し、
図1で示した処理と同様の処理にて音程単位で記述する
こともできる。本発明では所定時間単位のパート毎の検
出が行われるが、この1パートは必ずしも1小節と同一
である必要はなく、その数分の1としたり、数倍とする
こともできる。さらに、パートの時間を2種類以上設
け、例えば1小節単位の検出を行いつつ、その2分の1
の時間単位でも繰り返しの検出を行うようにすることも
できる。
Further, the detection accuracy of the presence / absence of coincidence between parts may be roughened, that is, a predetermined error allowable range may be provided in the matching between the pitch and the pronunciation time. By doing this, due to slight noise and playing mistakes,
It is possible to prevent the pattern from being recognized as a non-identical pattern even though it is originally a repeated part, and as a result, it is possible to increase the number of parts recognized as repeated and improve compression efficiency. Furthermore, the fluctuation of the time axis on the performance,
Alternatively, the compression efficiency can be increased by expanding the permissible range such as the fluctuation of the playing strength to such an extent that the playing (playback) is not affected so much. In addition to comparison of parts, if a certain pitch appears repeatedly in the same part, for example, in the case of performance information of a percussion instrument such as a drum, this is detected and deleted so as not to overlap,
It is also possible to describe in pitch units by the same processing as that shown in FIG. In the present invention, the detection is performed for each part in a predetermined time unit, but this one part does not necessarily have to be the same as one bar, and can be a fraction thereof or a multiple thereof. Furthermore, two or more types of part time are provided, and for example, while detecting in units of one bar, half of that time is detected.
It is also possible to perform repeated detection in the unit of time.

【0021】図1に示した第1実施例は、連続するパー
トの内容が一致している場合に繰り返しであると判断し
ているが、いくつかの小節にわたったメロディーが繰り
返される場合も多い。このような場合にも圧縮可能な手
法について第2実施例と第3実施例で説明する。 図2
3は圧縮前のSMFで8つのパートからなるものを模式
的に示した図である。図23において、第2番目乃至第
4番目のパートと第5番目乃至第7番目のパートが重複
している。したがって冗長性を除くために、考えられる
1つの手法として、重複する3つのパートを削除すると
図24に示すように5つのパートのみとなる。この場
合、「先頭から(t1+t2+t3+t4)の時間だけ
再生したら、先頭からt1経過時点までジャンプする」
という内容を記述しておくことになる。すなわち各パー
トの△tの総和をそれぞれ計算しておき、再生開始時点
からの経過時間によって再生位置を再設定するような記
述を設けている。しかし、この方法によると、パートの
再編集の必要性が生じた場合、記述部を同様に編集しな
くてはならない。また記述が複雑であるほど時間の再計
算も複雑化してしまう。
In the first embodiment shown in FIG. 1, it is judged to be repetitive when the contents of consecutive parts are the same, but the melody over several bars is often repeated. . A method capable of compressing even in such a case will be described in the second and third embodiments. Figure 2
3 is a diagram schematically showing an SMF before compression, which is composed of eight parts. In FIG. 23, the second to fourth parts and the fifth to seventh parts overlap. Therefore, in order to remove redundancy, one possible method is to delete three overlapping parts, leaving only five parts as shown in FIG. In this case, "after the reproduction for the time of (t1 + t2 + t3 + t4) from the beginning, jump to the time point t1 has elapsed from the beginning"
Will be described. That is, a description is provided in which the total sum of Δt of each part is calculated and the reproduction position is reset according to the elapsed time from the reproduction start point. However, according to this method, when it becomes necessary to re-edit a part, the description section must be similarly edited. Also, the more complicated the description, the more complicated the time recalculation.

【0022】前述の特開昭61−91697号公報で
は、楽譜の省略記号をコード化し、音符情報と共に記憶
し、再生時に省略記号に従って制御を行うようにしてい
る。これによれば冗長性の問題と再編集の問題は解決す
るものの、現代の楽曲は構成が複雑化しており、省略記
号を単にコード化しただけでは楽曲構成を正しく表記で
きない場合が生じてくる。図25に示した例のように、
D.S.(ダルセーニョ)によって戻って再度演奏する
場合に繰り返しを省くことがよく行われるが、このよう
に注釈によって指示される選択的な演奏情報を表記する
ことは上記公報の技術では不可能である。また、上記公
報の技術は前述のように繰り返し等の記号を用いた楽譜
を前提としいる。
In the above-mentioned Japanese Patent Laid-Open No. 61-91697, the abbreviation symbol of the score is coded and stored together with the note information, and control is performed in accordance with the abbreviation symbol at the time of reproduction. According to this, although the problem of redundancy and the problem of re-editing are solved, the composition of modern music becomes complicated, and there are cases where the composition of music cannot be represented correctly by simply coding the ellipsis. As in the example shown in FIG. 25,
D. S. It is common to omit repetition when returning and playing again by (Dalseño), but it is impossible to write selective performance information instructed by annotations in this way by the technique of the above publication. Further, the technique of the above publication presupposes a musical score using symbols such as repetition as described above.

【0023】したがって本発明の演奏情報圧縮方法の第
2実施例及び第3実施例では、複数回重複して記述され
る同一パートを含み直列状に記述されている演奏情報に
対して、演奏情報と識別可能なジャンプマークとタグを
設け、楽曲の繰り返しを示すことによって、少ない情報
量で記述するようにしている。また、ジャンプマークに
条件値(レベル)を含めることによって複雑な演奏情報
を記述することができる。
Therefore, in the second and third embodiments of the performance information compressing method of the present invention, the performance information is serially described with respect to the performance information that includes the same part described multiple times. By providing a jump mark and a tag that can be distinguished from each other and indicating the repetition of music, it is possible to describe with a small amount of information. In addition, complicated performance information can be described by including a condition value (level) in the jump mark.

【0024】図13はジャンプマークとタグの構成を示
す図である。いずれも、非演奏情報ID、チャンネルI
D、レベルIDを有している。レベルIDは同一マーク
の相互間の識別を行うか、又は順序を示すものである。
なお第2実施例と第3実施例は、共に複数のパート(各
実施例では小節)にわたる演奏情報が繰り返されるとき
に、繰り返しを削除してジャンプマークとタグを挿入
し、結果として同じ圧縮ファイルを作るものである。第
2実施例は元のファイルAの他に重複のないファイルB
を一旦作成する必要がある点で後述する第3実施例より
手順が多い。しかし、圧縮の手順を理解するためには適
当であるので、まず第2実施例について説明し、その
後、より利用価値の高い第3実施例について説明する。
図14と図15は同一パートの検出と削除の概念を示す
図である。図14の1部の楽譜に示すように7小節と省
略記号で記述された曲を展開すると図14の下部に示す
ようなものとなる。なお丸印の中の数字は便宜的に記入
したものであって、どの小節とどの小節の演奏情報が同
一であるのかは、この時点ではわかっていない。
FIG. 13 is a diagram showing the structure of jump marks and tags. Both are non-performance information ID, channel I
It has a D and a level ID. The level ID identifies the same marks or indicates the order.
In the second and third embodiments, when performance information over a plurality of parts (bars in each embodiment) is repeated, the repetition is deleted and jump marks and tags are inserted, resulting in the same compressed file. Is what makes In the second embodiment, in addition to the original file A, a file B without duplication
The number of steps is larger than that of the third embodiment described later in that it is necessary to create once. However, since it is suitable for understanding the procedure of compression, the second embodiment will be described first, and then the third embodiment having a higher utility value will be described.
14 and 15 are diagrams showing the concept of detecting and deleting the same part. As shown in the score of Part 1 of FIG. 14, when a music piece described by 7 bars and ellipses is expanded, it becomes as shown in the lower portion of FIG. Note that the numbers in the circles are entered for convenience, and it is not known at this point which bar and which bar have the same performance information.

【0025】図15は図14の下部に示されたような演
奏情報があるとき、このデータ列から重複部分を検出す
る手法を示す図である。演奏情報は小節単位で時間軸上
に図15の上段に示すように並んでいる。ここで先頭の
小節xから以降の小節に対してデータの比較を行う。一
致したなら若い順にパート番号(この場合1)をふる。
演奏情報の作成がパートのコピーによって行われない場
合は時間軸方向の揺らぎ等が含まれるため、データのフ
ァイリングやクォンタイズ、認識的手法が用いられる。
このようにしてパート番号のふられた情報を納めたファ
イルをA、重複したパートを削除した情報を納めたファ
イルをBとする。図16はこの2つのファイルA、Bと
本発明の演奏情報圧縮方法の第2実施例により最終的に
作成される圧縮ファイルを示している。両方のファイル
A、Bを読み進め、異なるパートが出現したら、レベル
nをインクリメントしファイルBにおいて、ジャンプマ
ークJ(n)を挿入しファイルAの次に出現するパート
に戻ってタグT(n)を挿入する。
FIG. 15 is a diagram showing a method for detecting an overlapping portion from this data string when there is performance information as shown in the lower part of FIG. The performance information is arranged in units of measures on the time axis as shown in the upper part of FIG. Here, the data is compared from the first bar x to the subsequent bars. If they match, give the part number (1 in this case) in ascending order.
When performance information is not created by copying parts, fluctuations in the time axis direction are included, so data filing, quantizing, and cognitive methods are used.
In this way, the file containing the information with the part numbers is A, and the file containing the information with the duplicated parts deleted is B. FIG. 16 shows these two files A and B and the compressed file finally created by the second embodiment of the performance information compression method of the present invention. When both the files A and B are read and different parts appear, the level n is incremented, the jump mark J (n) is inserted in the file B, and the part appearing next to the file A is returned to the tag T (n). Insert.

【0026】レベルnはジャンプマークJ及びタグTの
それぞれにおいて相互識別をするためのものであり、自
然数で1、2、3…とインクリメントする。図16の下
方には、ジャンプマークJとタグTを挿入する手法が示
されている。すなわち、ファイルAとファイルBを先頭
のパートからパート単位でパート番号の比較を行い、互
いに相違するパート番号が出現したら、又はファイルA
のパートと比較するファイルBのパートが存在しないと
きは、挿入すべきジャンプマークとタグの各々における
識別のためのレベルnをインクリメントし、ファイルB
中の相違するパート番号の直前にレベルのインクリメン
トされたジャンプマークを挿入し、かつ前記ファイルA
中の相違するパート番号と同一のファイルB中のパート
番号の直前にレベルのインクリメントされたタグを挿入
する。ファイルA中の相違するパート番号以後とファイ
ルBのタグの挿入された直後のパート番号とをパート単
位でパート番号の比較を行い、互いに相違するパート番
号が出現したら、上記の挿入動作と同様の挿入が行われ
る。
The level n is for mutually identifying each of the jump mark J and the tag T, and is incremented by 1, 2, 3, ... As a natural number. A method of inserting the jump mark J and the tag T is shown in the lower part of FIG. That is, the file A and the file B are compared with each other in the part number from the first part, and when different part numbers appear, the file A or the file A is compared.
When the part of the file B to be compared with the part of the file B does not exist, the level n for identifying the jump mark and the tag to be inserted is incremented, and the file B is incremented.
Insert a jump mark with incremented level immediately before the different part number in the
Insert the level-incremented tag immediately before the part number in the same file B as the different part number in. After the different part numbers in the file A are compared with the part numbers immediately after the tag of the file B is inserted, the part numbers are compared on a part-by-part basis. If different part numbers appear, the same insertion operation as above is performed. Insertion is done.

【0027】図17及び図18は上記第2実施例を用い
て複雑な繰り返しのある曲の演奏情報を圧縮することが
できる例を示す図であり、図17はかかる複雑構成の曲
の例を示し、図18は圧縮前のファイルA、Bと圧縮フ
ァイルを示す図である。
FIG. 17 and FIG. 18 are diagrams showing an example in which the performance information of a complicated repetitive piece of music can be compressed using the second embodiment. FIG. 17 shows an example of such a complicated piece of music. FIG. 18 is a diagram showing files A and B before compression and a compressed file.

【0028】ここでMIDI信号情報ファイルとしての
SMFとSMFを変形して上記ジャンプマーク、タグを
挿入してゆく手法について説明する。SMFは以下のも
のを含む。 ・MIDIイベント : 演奏情報 ・METAイベント : 非演奏情報 どちらのイベントも時間情報△tを持っているので、M
ETA(メタ)イベントは、MIDIイベントとの相対
的な時間的位置を指定して、挿入することができる。ま
た、METAイベントは、これが持つデータフォーマッ
トを規定することができる。通常のSMFでは、パート
の概念はないが、パートの先頭であるという識別子(P
ART ID)を持ったメタイベントを定義することに
よって、SMF中にパート番号を記述することができ
る。
A method of modifying SMF and SMF as the MIDI signal information file and inserting the jump mark and the tag will be described below. The SMF includes: -MIDI event: Performance information-META event: Non-performance information Both events have time information Δt, so M
The ETA (meta) event can be inserted by designating a time position relative to the MIDI event. In addition, the META event can define the data format that it has. In normal SMF, there is no concept of a part, but an identifier (P
The part number can be described in the SMF by defining a meta event having an ART ID).

【0029】次にパートの定義について説明する。例え
ば1小節に相当する各々のパートは図15に示されるよ
うにパート番号により指定される。したがって各パート
はMETAイベントから始る、SMF中の一連のMID
Iイベント群である。このMETAイベントを、MET
A(PART,x)と略記する。 META(PART,x)→△t:META ID:P
ART ID:PARTNO x とする。比較のため
に、MIDIイベントのNote on(打鍵)は、N
ote on→△t:MIDI Note on I
D:MIDIチャンネル:音程:音量 SMFの構成は図19に示すようになっている。
Next, the definition of the part will be described. For example, each part corresponding to one bar is designated by a part number as shown in FIG. Therefore each part starts with a META event and is a sequence of MIDs in the SMF.
It is an I event group. This MET event
Abbreviated as A (PART, x). META (PART, x) → Δt: META ID: P
ART ID: PARTNO x. For comparison, note on of MIDI event is N
ote on → △ t: MIDI Note on I
D: MIDI channel: Pitch: Volume SMF has the structure shown in FIG.

【0030】META(PART,x)の挿入位置は、
自由であるが、繰り返しの検出に用いるので、繰り返し
が予想される単位以下で挿入するのが良い。例えば、図
20に示すような楽譜をもとにSMFを作成する場合、
作成者は、“A,B,C,D,E”それぞれのMIDI
演奏情報を作成し、実際の演奏手順に従って、データの
コピーペースト等の手法で“A B C D A B
C E”となったMIDI演奏情報列をSMFに収める
が、楽譜上の繰り返し記号と、META(PART,
x)の入れ方の規約を作ることによって、図21に示す
ようなSMFを作成することが可能である。
The insertion position of META (PART, x) is
It is free, but since it is used for detection of repeats, it is better to insert it in a unit of less than expected repeats. For example, when creating an SMF based on the score as shown in FIG.
The creator is the MIDI of "A, B, C, D, E"
Create performance information, and follow the actual performance procedure by copying and pasting data, etc.
The MIDI performance information string that has become "CE" is stored in the SMF, but the repetition symbol on the score and META (PART,
It is possible to create an SMF as shown in FIG. 21 by creating a rule of how to put x).

【0031】あるいは作成者が以上のような、作成手順
に全く関知しない通常のSMFを作成する場合、繰り返
し部分を自動的に検出するためには、SMFを受け取っ
た側で1小節=1パートとなるように、META(PA
RT,x)を挿入するのが良い。SMF中の小節の切れ
目は既にSMFフォーマット中に定められている。ME
TA(time signature)等の情報を、S
MFから読み出すことによって、簡単に知ることができ
る。前出の例によれば、META(PART,x)が挿
入されたらSMFは図22に示すようになる。どちらの
場合でも、繰り返し部分の検出は問題なく行われる。ま
た、META(PART,x)は、検出のために挿入さ
れたものであるから、最終的に圧縮記述されたファイル
中に存在していなくても演奏の再生に対して、全く問題
がない。
Alternatively, when the creator creates an ordinary SMF that is completely unrelated to the creation procedure as described above, in order to automatically detect the repeated portion, one bar = 1 part on the side receiving the SMF. META (PA
RT, x) should be inserted. Bar breaks in SMF have already been defined in the SMF format. ME
Information such as TA (time signature), S
It can be easily known by reading from the MF. According to the above example, when META (PART, x) is inserted, the SMF becomes as shown in FIG. In either case, the repetitive part is detected without any problem. Further, since META (PART, x) is inserted for the purpose of detection, there is no problem in playing the performance even if it does not exist in the finally compressed file.

【0032】次に本発明の演奏情報圧縮方法の第3実施
例について説明する。前述の手順によりMETA(PA
RT,x)が挿入されたSMFをSMF Aとし、SM
FAを圧縮した圧縮ファイルをSMF Cとする。な
お、この圧縮ファイルSMFCは、スタンダードMID
Iファイルの形式とは異なるので、SMFと呼ぶことは
必ずしも適当ではないが、ここでは便宜的にSMF C
としておく。
Next, a third embodiment of the performance information compression method of the present invention will be described. META (PA
The SMF in which RT, x) is inserted is SMF A, and SM
The compressed file obtained by compressing FA is SMF C. This compressed file SMFC is a standard MID
Since it is different from the I file format, it is not always appropriate to call it SMF, but here, for convenience, SMF C
I will keep it.

【0033】次にいくつかの定義を行っておく。(a)
PART LIST(パートリスト):パート番号の列
である。 (b)fpC(ファイルポインタ):圧縮ファイルSM
F Cの内容の任意の位置を差し示すもの。
Next, some definitions will be made. (A)
PART LIST (Part list): A column of part numbers. (B) f p C (file pointer): compressed file SM
An indication of an arbitrary position in the contents of FC.

【0034】ジャンプマークJとタグTはMETAイベ
ントを用いて次のように記述する。 META(JUMP,Ch,y) META(TAG,Ch,z)
The jump mark J and the tag T are described as follows using the META event. META (JUMP, Ch, y) META (TAG, Ch, z)

【0035】これらを一組として圧縮ファイルSMF
Cに次のように記述する。 META(JUMP,Ch,y)→△t:META I
D:JUMP ID:MIDIチャンネル Ch:レベ
ルy META(TAG,Ch,z)→△t:META I
D:TAG ID:MIDIチャンネル Ch:レベル
A compressed file SMF including these as a set
Describe in C as follows. META (JUMP, Ch, y) → Δt: META I
D: JUMP ID: MIDI channel Ch: Level y META (TAG, Ch, z) → Δt: META I
D: TAG ID: MIDI channel Ch: Level z

【0036】なお、ジャンプマークとタグのそれぞれに
レベルを付加することによって、複雑な演奏手順に対し
ても、統一的な書式で記述し、正しく再生することがで
きる。
By adding a level to each of the jump mark and the tag, even a complicated performance procedure can be described in a unified format and correctly reproduced.

【0037】ここで、MIDIチャンネルについて説明
する。MIDIでは、複数の楽器が同時に演奏されてい
る情報を伝送できるように、MIDIのイベントに対し
て、MIDIチャンネル(Ch)が付加されている。例
えば、ピアノに関するイベントはCh=1、ベースはC
h=2とし、受信側ではチャンネルによってイベントを
分離し、それぞれを適切な音源へ転送することがなされ
ている。この概念は、SMFにおいても全く同様であ
る。楽器毎には、別の演奏を行うも、SMF上では、混
在しているため繰り返しの検出においてはSMF A中
のイベントをチャンネル毎に分離し、各チャンネル独立
に圧縮記述を行い、この後に、最終的なSMF Cへ、
合成しながら、記録することが望ましい。合成後にも、
各チャンネルのジャンプマークとタグが識別できるよう
に、各イベントにMIDIチャンネルを持つのである。
本明細書では説明の簡略のために、SMF Aは単一の
チャンネルのイベントのみを含むものとして説明してい
る。
Now, the MIDI channel will be described. In MIDI, a MIDI channel (Ch) is added to a MIDI event so that information that a plurality of musical instruments are playing simultaneously can be transmitted. For example, a piano-related event has Ch = 1 and a bass has C
With h = 2, the receiving side separates events by channel and transfers each to an appropriate sound source. This concept is exactly the same in SMF. Although different performances are performed for each musical instrument, since they are mixed on SMF, the events in SMF A are separated for each channel in repeated detection, and compression description is performed for each channel independently. To the final SMF C,
It is desirable to record while synthesizing. Even after synthesis
Each event has a MIDI channel so that the jump mark and tag of each channel can be identified.
For simplicity of description, SMF A is described herein as including only single channel events.

【0038】次に第3実施例の圧縮手順についてフロー
チャートを示す図8及び図9を用いて説明する。圧縮手
順のフローには2つのパスがある。1つめのパスは図8
に示すように、SMF A中の同一パートを検出し、M
ETA(PART,x)の書換を行うものである。2つ
のパートを同じものと見なすために、比較を行う段階で
MIDIフィルタリング、MIDIクォンタイズを用い
てもよい。これは、SMFの内容が演奏者の実演奏等を
記録したものであるとき、特に効果がある。すなわち、
同一パートを演奏しようとした場合でも、実演奏では全
く同じMIDIイベント群にはなり得ないため、MID
Iフィルタリング、MIDIクォンタイズを行い、同一
パートの検出率を向上させ、ひいては圧縮率を向上させ
るものである。MIDIフィルタリングは、演奏者が意
図しない、極めて短い音に対応するMIDIイベントを
削除すること等である。MIDIクォンタイズは発音の
時間的な揺れを、大きなタイムスロットに量子化し直す
ことによって、検出率を向上させるものである。また、
音量に対しても同様のことが適用できる。上記は、比較
の際に用いる手法であり、最終的に生成されるファイル
の内容に対しては用いられないのは当然である。2つ目
のパスは図9に示すように、SMF Aから、SMF
Cを生成するものである。
Next, the compression procedure of the third embodiment will be described with reference to the flow charts of FIGS. There are two passes in the flow of the compression procedure. The first pass is shown in Figure 8.
, The same part in SMF A is detected and M
The ETA (PART, x) is rewritten. MIDI filtering or MIDI quantizing may be used at the stage of comparison in order to regard the two parts as the same. This is particularly effective when the content of the SMF is a record of the actual performance of the performer. That is,
Even if you try to play the same part, the MIDI events cannot be exactly the same in the actual performance, so MID
I filtering and MIDI quantizing are performed to improve the detection rate of the same part and thus improve the compression rate. MIDI filtering is such as deleting MIDI events that are not intended by the performer and correspond to extremely short notes. MIDI Quantize improves the detection rate by requantizing the temporal fluctuations of pronunciation into large time slots. Also,
The same applies to volume. The above is the method used for comparison, and it is natural that it is not used for the contents of the finally generated file. The second path is from SMF A to SMF, as shown in Figure 9.
C is generated.

【0039】図8中“j++”“i++”は変数“j”
“i”をインクリメントするステップである。変数iは
比較する元のパートを示し、変数jは比較する対象のパ
ートを示している。このフローではパートiとパートj
の内容が一致したとき、繰り返しがあると判断しMET
A(PART,j)をMETA(PART,i)に変更
している。
In FIG. 8, "j ++" and "i ++" are variables "j".
This is the step of incrementing "i". The variable i indicates the original part to be compared, and the variable j indicates the part to be compared. In this flow, part i and part j
When the contents of the above match, it is judged that there is a repetition, and the MET
A (PART, j) is changed to META (PART, i).

【0040】次に図9に従って具体的圧縮手法について
説明する。この第3実施例では先の第2実施例で説明し
た図16に示すファイルBに相当するものは用いる必要
がない。すなわち、図16のファイルAに相当するSM
F AからファイルBを用いることなく最終的に圧縮さ
れた圧縮ファイルSMF Cを得るものである。
Next, a concrete compression method will be described with reference to FIG. In the third embodiment, it is not necessary to use the file corresponding to the file B shown in FIG. 16 described in the second embodiment. That is, the SM corresponding to the file A in FIG.
The final compressed file SMF C is obtained from F A without using the file B.

【0041】ステップS21で当初内容のないファイル
C(SMF C)を作成し、ファイルC内の位置を示す
ファイルCのポインタをファイルCの先頭に設定し、当
初内容のないパートリストを作成する。次のステップS
22で変数iにファイルAの最初のパート番号を設定
し、次のステップS23で変数iが前記パートリストに
あるか否かを判断する。変数iで示されるパート番号が
ないときは、ポインタf pCがファイルCの末尾にある
か否かをステップS24で判断し、ポインタfpC位置
が前記ファイルCの末尾以外のときは、ステップS25
でポインタfpCが現在ある位置にジャンプマーク
(n)を挿入し、次にポインタfpCをファイルCの末
尾へ移動させ、その後ポインタfpCの位置にタグTA
G(n)を挿入し、変数nを1つインクリメントする。
ポインタfpC位置がファイルCの末尾であるときは、
ステップS26でファイルCに前記ファイルAの変数i
で示されるパートの情報を付加し、パートリストに変数
iを付加し、ポインタを前記ファイルCの末尾に移動さ
せる。
File initially having no contents in step S21
Create C (SMF C) and indicate the position in file C
Set the pointer of file C to the beginning of file C,
Create a parts list without initial content. Next step S
Set the first part number of file A to variable i in 22
Then, in the next step S23, the variable i is added to the part list.
Determine if there is. The part number indicated by the variable i is
When there is no pointer f pC is at the end of file C
It is determined in step S24 whether or not the pointer fpC position
Is other than the end of the file C, step S25
And pointer fpJump mark at the current position of C
(N) is inserted, then pointer fpC is the end of file C
Move to the tail, then pointer fpTag TA at position C
Insert G (n) and increment the variable n by one.
Pointer fpWhen C position is the end of file C,
In step S26, the variable i of the file A is stored in the file C.
The information of the part indicated by is added and the variable is added to the part list.
i is added and the pointer is moved to the end of the file C.
Let

【0042】パート番号の確認ステップで変数iで示さ
れるパート番号があるときは、ポインタfpCがファイ
ルCの変数iで示されるパートの先頭にあるか否かをス
テップS29で判断する。次のステップS30でポイン
タfpCの位置が前記ファイルCの変数iで示されるパ
ートの先頭以外のときは、ポインタfpCが現在ある位
置にジャンプマークJUMP(n)を挿入し、次にポイ
ンタfpCをファイルCの変数iで示されるパートの先
頭位置へ移動させ、その後ポインタfpCの位置にタグ
TAG(n)を挿入し、変数nを1つインクリメントす
る。ポインタf pCが前記ファイルCの変数iで示され
るパートの先頭であるときは、ステップS31でポイン
タfpCを次のパートの先頭位置へ移動させる。この2
つの移動させるステップS28又はS31の一方の後
に、ステップS32でファイルAの中の次のパートを検
索し、存在する場合は、変数iにファイルAの次のパー
ト番号を設定する。以後、ファイルA中に次のパートが
なくなるまで、パート番号確認ステップS23以降、次
パート番号設定ステップS32までを繰り返し実行す
る。
In the confirmation step of the part number, it is indicated by the variable i.
Pointer fpC is Phi
Check whether it is at the beginning of the part indicated by variable i
The judgment is made in step S29. Point at the next step S30
FpThe position of C is indicated by the variable i in the file C.
Pointer f if not at the beginningpC is present
Insert the jump mark JUMP (n) in the position
Input fpC is the destination of the part indicated by variable i in file C
Move to the head position, then move the pointer fpTag at position C
Insert TAG (n) and increment variable n by one
It Pointer f pC is indicated by the variable i in file C above
If it is the beginning of the part,
FpMove C to the beginning of the next part. This 2
After one of the two moving steps S28 or S31
Then, in step S32, the next part in file A is detected.
And if it exists, the next par of file A is stored in variable i.
Set the phone number. After that, the next part in file A
After the part number confirmation step S23,
Repeat up to the part number setting step S32.
It

【0043】図10は図8に示すパス1の開始前のSM
F Aと、その終了後に得られるSMF Aを、さらに
図9に示すパス2の終了後に得られるSMF Cを示す
図である。図中、A、B、C…は各パートの内容を示
し、数字1、2、3…はパート番号を示している。また
SMF Cはジャンプマークとタグの付加された様子を
示している。
FIG. 10 shows the SM before the start of the path 1 shown in FIG.
FIG. 10 is a diagram showing F A, SMF A obtained after the end thereof, and SMF C obtained after the end of pass 2 shown in FIG. 9; In the figure, A, B, C ... Show the contents of each part, and the numbers 1, 2, 3 ... Show the part numbers. Further, SMF C shows a state in which a jump mark and a tag are added.

【0044】次に上記各実施例により圧縮された演奏情
報を、例えば通信カラオケの端末側等で再生するために
伸張する方法について説明する。図11は本発明の演奏
情報伸張方法を実現するために用いられる演奏情報再生
装置(伸張装置)の実施例を示すブロック図である。記
憶装置10は例えば大容量ハードディスクで、この中に
図10に示す圧縮ファイルSMF Cが多数格納されて
いるものとする。このうち所望の曲のSMF Cが図示
しない制御装置のアドレス指示に従って読み出され、メ
モリ12にロードされる。この後、再生に先立ち、SM
F C中のタグのサーチが行われる。すなわち、リーダ
ー14は、アドレスカウンタ16の指示に従ってメモリ
12の内容を読んで行き、タグのサーチを行う。分離器
18は、リーダー14の出力信号、すなわちSMF C
からMIDIイベント、ジャンプレベル値、タグレベル
値を分離抽出するものである。サーチの結果、タグを検
出する毎に、タグアドレスメモリ26は分離器18から
与えられるタグレベル値と、アドレスカウンタ16から
与えられるアドレスを関係付けて図12に示すテーブル
のような形で格納して行く。こうして、1つのSMF
Cを全部サーチして図12に示すテーブルを完成させ
る。
Next, a method of expanding the performance information compressed by each of the above-described embodiments so as to be reproduced on the terminal side of communication karaoke or the like will be described. FIG. 11 is a block diagram showing an embodiment of a performance information reproducing apparatus (expansion apparatus) used for realizing the performance information expanding method of the present invention. The storage device 10 is, for example, a large-capacity hard disk, in which a large number of compressed files SMF C shown in FIG. 10 are stored. Of these, the SMF C of the desired song is read out according to the address instruction of the control device (not shown) and loaded into the memory 12. After this, before playback, SM
A search for tags in FC is performed. That is, the reader 14 reads the contents of the memory 12 according to the instruction of the address counter 16 and searches for a tag. Separator 18 outputs the output signal of reader 14, namely SMF C
The MIDI event, the jump level value, and the tag level value are separated and extracted from. Each time a tag is detected as a result of the search, the tag address memory 26 stores the tag level value given from the separator 18 and the address given from the address counter 16 in association with each other in the form of a table shown in FIG. Go. Thus one SMF
All C are searched to complete the table shown in FIG.

【0045】その後、再生を開始するために、まずアド
レスカウンタ16とレベルカウンタ22を初期化する。
再生時には、分離器18からのタグレベル値はタグアド
レスメモリ26に書込まない(又は分離器18からタグ
レベル値を出力しない)。分離器18から出力されるM
IDIイベントは各対応する(チャンネル毎の)図示し
ない音源に与えられる。分離器18の出力信号の1つと
してレベル比較器20にはジャンプレベル値が与えられ
る。レベルカウンタ22はそのカウント値をレベル比較
器20へ出力し、レベル比較器20は2つの入力レベル
を比較し、一致するとレベルカウンタ22を1つインク
リメントさせる信号を出力するとともにゲート24へゲ
ート信号を与える。ゲート24はレベルカウンタ22の
出力カウント値、すなわち、検出されたジャンプマーク
のレベル値(一致レベル値)をゲート信号を受けたと
き、選択器28へ与える。選択器28はタグアドレスメ
モリ26からジャンプレベルに対応したタグのアドレス
を読み出して、アドレスカウンタ16にロードする。ア
ドレスカウンタ16は、ロードされたアドレスに従って
順次メモリ12内のデータを読み出して行く。
After that, in order to start reproduction, first, the address counter 16 and the level counter 22 are initialized.
During reproduction, the tag level value from the separator 18 is not written to the tag address memory 26 (or the tag level value is not output from the separator 18). M output from the separator 18
The IDI event is given to the corresponding sound source (not shown) (for each channel). A jump level value is given to the level comparator 20 as one of the output signals of the separator 18. The level counter 22 outputs the count value to the level comparator 20, the level comparator 20 compares the two input levels, and outputs a signal for incrementing the level counter 22 by 1 when the two input levels match, and outputs a gate signal to the gate 24. give. The gate 24 gives the output count value of the level counter 22, that is, the level value (match level value) of the detected jump mark to the selector 28 when receiving the gate signal. The selector 28 reads the address of the tag corresponding to the jump level from the tag address memory 26 and loads it into the address counter 16. The address counter 16 sequentially reads the data in the memory 12 according to the loaded address.

【0046】このようにして、メモリ12内の1つのS
MF Cの内容を読みながらMIDIイベントを順次出
力することにより伸張動作が行われ、SMF Cの全て
のデータを読み出すことにより一曲分の再生を終了す
る。
In this way, one S in the memory 12 is
The expansion operation is performed by sequentially outputting MIDI events while reading the contents of MF C, and the reproduction of one song is completed by reading all the data of SMF C.

【0047】図11に示した構成の上記説明では、再生
に先立ってタグの位置をサーチして、そのアドレスを予
めロードする方法を用いているが、伸張装置の処理能力
が十分なものであれば、予めタグを読み込まず、タグを
サーチしながら再生を同時に行うようにすることもでき
る。かかる構成の場合は、図11に示したタグアドレス
メモリ26は不要となる。
In the above description of the configuration shown in FIG. 11, a method of searching the position of the tag and preloading the address thereof before the reproduction is used, but if the decompressor has a sufficient processing capability. For example, without reading the tag in advance, it is possible to perform the reproduction at the same time while searching the tag. In the case of such a configuration, the tag address memory 26 shown in FIG. 11 becomes unnecessary.

【0048】[0048]

【発明の効果】以上詳細に説明したように、本発明の演
奏情報圧縮方法によれば、MIDI信号のように楽音を
構成する音の音程と発音時間を指定する演奏情報のデー
タ量を、メロディーの繰り返しを削除することにより、
大幅に削減することができ、また本発明の演奏情報伸張
方法によれば、かかる削減により圧縮された演奏情報を
伸張して元の繰り返しのある演奏情報を再生することが
でき、よって通信コストの削減、メモリ容量の問題の解
消がなされる。また、通信カラオケシステム等におい
て、画像情報や文字情報を本来の演奏情報信号とともに
送信したり、メモリに蓄積する場合に、演奏情報のデー
タ量が削減できるので、これらの付加的情報の取り扱い
が容易となる。
As described above in detail, according to the performance information compression method of the present invention, the data amount of the performance information for designating the pitch and the duration of the notes constituting the musical tone such as the MIDI signal is set to the melody. By removing the repetition of
According to the performance information decompression method of the present invention, the performance information compressed by such reduction can be decompressed to reproduce the original repetitive performance information, thereby reducing the communication cost. Reduction and elimination of memory capacity problems. In addition, in a communication karaoke system or the like, when image information and character information are transmitted together with the original performance information signal or are stored in a memory, the data amount of the performance information can be reduced, so that it is easy to handle these additional information. Becomes

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

【図1】本発明の演奏情報圧縮方法の第1実施例を示す
フローチャートである。
FIG. 1 is a flowchart showing a first embodiment of a performance information compression method of the present invention.

【図2】本発明の演奏情報圧縮方法及び演奏情報伸張方
法の適用される一例としての通信カラオケシステムのブ
ロック図である。
FIG. 2 is a block diagram of a communication karaoke system as an example to which the performance information compression method and the performance information decompression method of the present invention are applied.

【図3】本発明の演奏情報圧縮方法及び演奏情報伸張方
法の適用される一例としての通信カラオケシステムの他
の構成例を示すブロック図である。
FIG. 3 is a block diagram showing another configuration example of a communication karaoke system as an example to which the performance information compression method and the performance information decompression method of the present invention are applied.

【図4】本発明の演奏情報圧縮方法の概念を示すブロッ
ク図である。
FIG. 4 is a block diagram showing the concept of a performance information compression method of the present invention.

【図5】本発明の演奏情報圧縮方法の手法を説明する図
である。
FIG. 5 is a diagram illustrating a method of a performance information compression method of the present invention.

【図6】本発明の演奏情報圧縮方法の第1実施例で用い
られる信号のフォーマット図である。
FIG. 6 is a format diagram of a signal used in the first embodiment of the performance information compression method of the present invention.

【図7】本発明の演奏情報圧縮方法の第1実施例で圧縮
しようとする曲の一部の楽譜である。
FIG. 7 is a score of a part of a music piece to be compressed in the first embodiment of the performance information compression method of the present invention.

【図8】本発明の演奏情報圧縮方法の第3実施例の一部
を示すフローチャートである。
FIG. 8 is a flowchart showing a part of a third embodiment of the performance information compression method of the present invention.

【図9】本発明の演奏情報圧縮方法の第3実施例の他の
一部を示すフローチャートである。
FIG. 9 is a flowchart showing another portion of the third embodiment of the performance information compression method of the present invention.

【図10】本発明の演奏情報圧縮方法の第3実施例にお
ける圧縮ファイル作成過程を説明する図である。
FIG. 10 is a diagram illustrating a compressed file creation process in the third embodiment of the performance information compression method of the present invention.

【図11】本発明の演奏情報伸張方法を実現する再生器
の一例を示すブロック図である。
FIG. 11 is a block diagram showing an example of a reproducing device which realizes the performance information expanding method of the present invention.

【図12】図11におけるタグアドレスメモリの内容を
示す図である。
12 is a diagram showing the contents of a tag address memory in FIG.

【図13】本発明の演奏情報圧縮方法の第2実施例にお
けるジャンプマークとタグのデータ構成を示す図であ
る。
FIG. 13 is a diagram showing a data structure of a jump mark and a tag in the second embodiment of the performance information compression method of the present invention.

【図14】本発明の演奏情報圧縮方法の第2実施例の圧
縮手順を説明する図である。
FIG. 14 is a diagram illustrating a compression procedure of the second embodiment of the performance information compression method of the present invention.

【図15】本発明の演奏情報圧縮方法の第2実施例の圧
縮手順を説明する図である。
FIG. 15 is a diagram illustrating a compression procedure of the second embodiment of the performance information compression method of the present invention.

【図16】本発明の演奏情報圧縮方法の第2実施例の圧
縮手順を説明する図である。
FIG. 16 is a diagram illustrating a compression procedure of a second embodiment of the performance information compression method of the present invention.

【図17】本発明の演奏情報圧縮方法の第2実施例の圧
縮手順を説明する図である。
FIG. 17 is a diagram illustrating a compression procedure of the second embodiment of the performance information compression method of the present invention.

【図18】本発明の演奏情報圧縮方法の第2実施例の圧
縮手順を説明する図である。
FIG. 18 is a diagram illustrating a compression procedure of the second embodiment of the performance information compression method of the present invention.

【図19】本発明の演奏情報圧縮方法の第2実施例の圧
縮手順を説明する図である。
FIG. 19 is a diagram illustrating a compression procedure of the second embodiment of the performance information compression method of the present invention.

【図20】本発明の演奏情報圧縮方法の第2実施例の圧
縮手順を説明する図である。
FIG. 20 is a diagram illustrating a compression procedure of a second embodiment of the performance information compression method of the present invention.

【図21】本発明の演奏情報圧縮方法の第2実施例の圧
縮手順を説明する図である。
FIG. 21 is a diagram illustrating a compression procedure of the second embodiment of the performance information compression method of the present invention.

【図22】本発明の演奏情報圧縮方法の第2実施例の圧
縮手順を説明する図である。
FIG. 22 is a diagram illustrating a compression procedure of the second embodiment of the performance information compression method of the present invention.

【図23】本発明の演奏情報圧縮方法の圧縮前のSMF
を模式的に示す図である。
FIG. 23 is an SMF before compression according to the performance information compression method of the present invention.
It is a figure which shows typically.

【図24】本発明の演奏情報圧縮方法の図23のSMF
を圧縮する1つの手法を説明する図である。
FIG. 24 is an SMF of FIG. 23 of the performance information compression method of the present invention.
It is a figure explaining one method of compressing.

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

1 SMF(スタンダードMIDIファイル) 2 MIDIチャンネル分離ブロック 3 ブロックリピート検出ブロック 4 R(リピート)符号化処理ブロック 5 マージ処理ブロック 6 圧縮ファイル 10 SMF Cの記憶装置 12 メモリ 14 リーダー 16 アドレスカウンタ 18 分離器 20 レベル比較器 22 レベルカウンタ 24 ゲート 26 タグアドレスメモリ 28 選択器 1 SMF (Standard MIDI File) 2 MIDI Channel Separation Block 3 Block Repeat Detection Block 4 R (Repeat) Encoding Processing Block 5 Merge Processing Block 6 Compressed File 10 SMF C Storage Device 12 Memory 14 Reader 16 Address Counter 18 Separator 20 Level comparator 22 Level counter 24 Gate 26 Tag address memory 28 Selector

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成6年12月15日[Submission date] December 15, 1994

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】図25[Correction target item name] Fig. 25

【補正方法】追加[Correction method] Added

【補正内容】[Correction content]

【図25】D.S.(ダルセーニョ)を含んだ楽譜の例
を示す図である。
FIG. 25. S. It is a figure which shows the example of the score containing (Dalsegno).

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 楽音を構成する音の音程と発音時間を指
定する演奏情報を受けて、前記演奏情報を所定時間単位
のパート毎に分割するステップと、 前記分割するステップにて得られた前記パート毎の前記
演奏情報を時系列順に比較し、前記演奏情報の時間軸方
向の変化のパターンが2パート以上連続し、前記演奏情
報に繰り返しがあるか否かを判断するステップと、 前記判断するステップにて繰り返しがあると判断された
とき、その繰り返しパート数を計数するステップと、 前記判断するステップにて繰り返しがあると判断された
とき、繰り返しのパートが重複しないよう削除するステ
ップと、 前記判断するステップにて繰り返しがあると判断された
とき、前記削除する手段によって削除される部分に、パ
ターンの繰り返しが生じる旨を示す情報と、前記計数す
るステップによって計数されたパターンの繰り返し回数
を示す情報を付加するステップとを、 有する演奏情報圧縮方法。
1. A step of receiving performance information designating a pitch and a sounding time of notes constituting a musical sound and dividing the performance information into parts of a predetermined time unit, and the step of dividing the performance information. Comparing the performance information for each part in chronological order and determining whether or not the pattern of change in the performance information in the time axis direction is continuous for two or more parts and the performance information is repeated, When it is determined that there is repetition in the step, a step of counting the number of repeating parts, and when it is determined that there is repetition in the determining step, a step of deleting the repeated parts so that they do not overlap, When it is judged that there is repetition in the judgment step, it is indicated that the pattern is repeated in the part to be deleted by the deleting means. Information and, a step of adding information indicating the number of repetitions of counting pattern by the step of counting, performance information compression method having.
【請求項2】 楽音を構成する音の音程と発音時間を指
定する演奏情報を受けて、前記演奏情報を所定時間単位
のパート毎に分割するステップと、 前記分割するステップにて得られた前記パート毎の前記
演奏情報を時系列順に比較し、前記演奏情報の時間軸方
向の変化のパターンが一部の演奏情報を除いて、2パー
ト以上連続するとき、前記演奏情報に繰り返しがあると
判断するステップと、 前記判断するステップにて繰り返しがあると判断された
とき、その繰り返しパート数を計数するステップと、 前記判断するステップにて繰り返しがあると判断された
とき、繰り返しのパート中、繰り返しではない異なる部
分を残して、他の部分が重複しないよう削除するステッ
プと、 前記判断するステップにて繰り返しがあると判断された
とき、前記削除するステップによって削除される部分
に、パターンの繰り返しが生じる旨を示す情報と、前記
計数するステップによって計数されたパターンの繰り返
し回数を示す情報を付加するステップとを、 有する演奏情報圧縮方法。
2. A step of receiving performance information designating a pitch and a sounding time of notes constituting a musical tone and dividing the performance information into parts of a predetermined time unit, and the step of dividing the performance information. The performance information for each part is compared in chronological order, and when the change pattern of the performance information in the time axis direction is continuous for two or more parts except for some performance information, it is determined that the performance information is repeated. And, when it is determined that there is repetition in the determining step, the step of counting the number of repeated parts, and when it is determined that there is repetition in the determining step, during repeated parts, repeated If there is repetition in the step of deleting, leaving a different part not to overlap other parts, The portion to be removed by the step of deleting the information indicating that the repetition of the pattern occurs, and a step of adding information indicating the number of repetitions of patterns counted by the step of counting, performance information compression method having.
【請求項3】 前記判断するステップが前記演奏情報の
時間軸方向の変化のパターンを比較する際、音の音程と
発音時間の照合において所定の誤差許容範囲を設け、比
較精度を粗くするステップをさらに有する請求項1又は
2記載の演奏情報圧縮方法。
3. A step of roughening the comparison accuracy by providing a predetermined error allowable range in the matching of the pitch of the note and the pronunciation time when the pattern of the change of the performance information in the time axis direction is compared in the judging step. The performance information compression method according to claim 1 or 2, further comprising:
【請求項4】 前記分割するステップにてパートに分割
されて得られた前記各パート内において、所定の音程が
連続し、繰り返されているか否かを判断する連続音程検
出ステップと、 前記連続音程検出ステップにて繰り返しがあると判断さ
れたとき、その繰り返し音程の情報出現回数を計数する
同一音程計数ステップと、 前記連続音程検出ステップにて繰り返しがあると判断さ
れたとき、繰り返しの音程の情報が重複しないよう削除
する音程情報削除ステップと、 前記連続音程検出ステップにて繰り返しがあると判断さ
れたとき、前記音程情報削除ステップによって削除され
る部分に、音程の繰り返しが生じる旨を示す情報と、前
記同一音程計数ステップによって計数された音程の繰り
返し回数を示す情報を付加するステップとを、 さらに有する請求項1乃至3のいずれか1つに記載の演
奏情報圧縮方法。
4. A continuous pitch detecting step of judging whether or not a predetermined pitch is continuous and is repeated in each of the parts obtained by being divided into parts in the dividing step, and the continuous pitch. When it is determined that there is repetition in the detection step, the same pitch counting step that counts the number of times the information appearance of the repeated pitch, and when it is determined that there is repetition in the continuous pitch detection step, information of the repeated pitch And a pitch information deletion step of deleting so as not to overlap, and when it is determined that there is repetition in the continuous pitch detection step, information indicating that pitch repetition occurs in the portion deleted by the pitch information deletion step, and A step of adding information indicating the number of repetitions of the pitch counted in the same pitch counting step, Performance information compression method according to any one of claims 1 to 3.
【請求項5】 楽音を構成する音の音程と発音時間を指
定する演奏情報を受けて、前記演奏情報を所定時間単位
のパート毎に分割するステップと、 前記分割するステップにて得られたパート列中の先頭の
パートからパート単位で順次データ比較を行い、実質的
に同一のデータのパートに同一パート番号を付与しファ
イルAを作成するステップと、 前記ファイルAの先頭からパート番号を調べ、重複する
番号が出現したときは、それを削除した新たなファイル
Bを作成するステップと、 前記ファイルAとファイルBを先頭のパートからパート
単位でパート番号の比較を行い、互いに相違するパート
番号が出現したら、又は前記ファイルAのパートと比較
する前記ファイルBのパートが存在しないときは、挿入
すべきジャンプマークとタグの各々における識別のため
のレベルをインクリメントし、前記ファイルB中の相違
するパート番号の直前に前記レベルのインクリメントさ
れたジャンプマークを挿入し、かつ前記ファイルA中の
相違するパート番号と同一の前記ファイルB中のパート
番号の直前に前記レベルのインクリメントされたタグを
挿入するステップと、 前記ファイルA中の前記相違するパート番号以後と前記
ファイルBの前記タグの挿入された直後のパート以後と
をパート単位でパート番号の比較を行い、互いに相違す
るパート番号が出現したら、前記挿入するステップと同
様の挿入を行うステップとを、 有する演奏情報圧縮方法。
5. A step of receiving performance information designating a pitch and a sounding time of notes constituting a musical sound and dividing the performance information into parts of a predetermined time unit, and parts obtained by the dividing step. Data is sequentially compared from the first part in the sequence in units of parts, the same part number is given to the parts of substantially the same data, and the file A is created; and the part number is checked from the beginning of the file A. When duplicate numbers appear, a step of creating a new file B by deleting them and comparing the file A and the file B from the first part to the other part numbers are performed. When it appears, or when there is no part of the file B to be compared with the part of the file A, each of the jump mark and tag to be inserted Incrementing the level for identification in the file B, inserting the jump mark incremented by the level just before the different part number in the file B, and the same file B as the different part number in the file A. A step of inserting the level-increased tag immediately before the part number in the file, and a part after the different part number in the file A and a part immediately after the tag in the file B are inserted as a unit And comparing the part numbers with each other, and when different part numbers appear, performing the same insertion as the inserting step, the performance information compression method.
【請求項6】 楽音を構成する音の音程と発音時間を指
定する演奏情報を受けて、前記演奏情報を所定時間単位
のパート毎に分割するステップと、 当初内容のないファイルCを作成するステップと、 前記ファイルC内の位置を示すファイルCのポインタを
前記ファイルCの先頭に設定するステップと、 当初内容のないパートリストを作成するステップと、 変数iに前記ファイルAの最初のパート番号を設定する
ステップと、 前記変数iが前記パートリストにあるか否かを判断する
パート番号確認ステップと、 前記パート番号確認ステップで前記変数iで示されるパ
ート番号がないときは、前記ポインタが前記ファイルC
の末尾にあるか否かを判断するポインタ位置第1判断ス
テップと、 前記ポインタ位置が前記ファイルCの末尾以外のとき
は、前記ポインタが現在ある位置にジャンプマークJU
MP(n)を挿入し、次に前記ポインタを前記ファイル
Cの末尾へ移動させ、その後前記ポインタの位置にタグ
TAG(n)を挿入し、前記変数nを1つインクリメン
トするステップと、 前記ポインタ位置が前記ファイルCの末尾であるとき
は、前記ファイルCに前記ファイルAの前記変数iで示
されるパートの演奏情報を付加し、前記パートリストに
前記変数iを付加し、前記ポインタを前記ファイルCの
末尾に移動させるステップと、 前記パート番号確認ステップで前記変数iで示されるパ
ート番号があるときは、前記ポインタが前記ファイルC
の変数iで示されるパートの先頭にあるか否かを判断す
るポインタ位置第2判断ステップと、 前記ポインタ位置が前記ファイルCの変数iで示される
パートの先頭以外のときは、前記ポインタが現在ある位
置にジャンプマークJUMP(n)を挿入し、次に前記
ポインタを前記ファイルCの変数iで示されるパートの
先頭位置へ移動させ、その後前記ポインタの位置にタグ
TAG(n)を挿入し、前記変数nを1つインクリメン
トするステップと、 前記ポインタが前記ファイルCの変数iで示されるパー
トの先頭であるときは、前記ポインタを次のパートの先
頭位置へ移動させるステップと、 前記2つの移動させるステップ一方の後に、前記ファイ
ルAの中の次のパートを検索し、存在する場合は前記変
数iに前記ファイルAの次のパート番号を設定する次パ
ート番号設定ステップとを、 有し、以後前記ファイルAに次のパートがなくなるま
で、前記パート番号確認ステップ以降、前記次パート番
号設定ステップまでを繰り返し実行するようにした演奏
情報圧縮方法。
6. A step of receiving performance information designating a pitch and a sounding time of notes constituting a musical sound, dividing the performance information into parts of a predetermined time unit, and creating a file C having no initial content. A step of setting a pointer of the file C indicating the position in the file C to the head of the file C, a step of creating a part list having no initial content, and a variable i indicating the first part number of the file A. A step of setting, a part number confirmation step of determining whether or not the variable i is in the part list, and a part number indicated by the variable i in the part number confirmation step, when the pointer is the file C
Pointer position first determining step of determining whether the pointer is at the end of the file C, and when the pointer position is other than the end of the file C, the jump mark JU is present at the current position of the pointer.
Inserting MP (n), then moving the pointer to the end of the file C, then inserting the tag TAG (n) at the position of the pointer and incrementing the variable n by one; When the position is at the end of the file C, the performance information of the part indicated by the variable i of the file A is added to the file C, the variable i is added to the part list, and the pointer is set to the file. If there is a part number indicated by the variable i in the step of moving to the end of C and the part number confirmation step, the pointer is set to the file C.
Second pointer position determining step for determining whether or not it is at the beginning of the part indicated by the variable i, and when the pointer position is other than the beginning of the part indicated by the variable i in the file C, the pointer is currently set. A jump mark JUMP (n) is inserted at a certain position, then the pointer is moved to the head position of the part indicated by the variable i of the file C, and then a tag TAG (n) is inserted at the position of the pointer, Incrementing the variable n by one; moving the pointer to the head position of the next part when the pointer is the head of the part indicated by the variable i of the file C; After one of the steps, the next part in the file A is searched, and if it exists, the next part of the file A is stored in the variable i. And a next part number setting step for setting a number, and the performance information is configured to be repeatedly executed from the part number confirmation step to the next part number setting step until the file A has no next part. Compression method.
【請求項7】 演奏情報の繰り返し部分を削除し、繰り
返し部分を再生するために挿入されたジャンプマークと
タグであってレベルの付されたものを含む圧縮演奏情報
ファイルをメモリにロードするステップと、 前記メモリにロードされた前記圧縮演奏情報ファイルに
ついて前記タグを検出するステップと、 前記メモリにロードされた前記圧縮演奏情報ファイルに
ついて前記ジャンプマークをそのレベル順に検出するス
テップと、 前記ジャンプマークが検出されたとき、先に検出された
前記タグのレベルと、その前記メモリのアドレスを指定
して前記メモリからのデータの読み出し制御を行うステ
ップとを有する演奏情報伸張方法。
7. A step of deleting a repeated portion of the performance information and loading a compressed performance information file including jump marks and tags, which are inserted to reproduce the repeated portion, with levels, into a memory. Detecting the tag in the compressed performance information file loaded in the memory, detecting the jump marks in the level order of the compressed performance information file loaded in the memory, and detecting the jump mark A performance information decompressing method, which comprises a step of performing control of reading data from the memory by designating a level of the tag detected earlier and an address of the memory when the tag is detected.
JP24887594A 1994-09-17 1994-09-17 Performance information compression method Expired - Fee Related JP3322763B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24887594A JP3322763B2 (en) 1994-09-17 1994-09-17 Performance information compression method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24887594A JP3322763B2 (en) 1994-09-17 1994-09-17 Performance information compression method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2000127578A Division JP3219150B2 (en) 1994-09-17 2000-04-27 Performance information compression method

Publications (2)

Publication Number Publication Date
JPH0887271A true JPH0887271A (en) 1996-04-02
JP3322763B2 JP3322763B2 (en) 2002-09-09

Family

ID=17184732

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24887594A Expired - Fee Related JP3322763B2 (en) 1994-09-17 1994-09-17 Performance information compression method

Country Status (1)

Country Link
JP (1) JP3322763B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000054249A1 (en) * 1999-03-08 2000-09-14 Faith, Inc. Data reproducing device, data reproducing method, and information terminal
JP2010091745A (en) * 2008-10-07 2010-04-22 Kawai Musical Instr Mfg Co Ltd Electronic musical instrument and musical note information processing program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000054249A1 (en) * 1999-03-08 2000-09-14 Faith, Inc. Data reproducing device, data reproducing method, and information terminal
US6979769B1 (en) 1999-03-08 2005-12-27 Faith, Inc. Data reproducing device, data reproducing method, and information terminal
JP2010091745A (en) * 2008-10-07 2010-04-22 Kawai Musical Instr Mfg Co Ltd Electronic musical instrument and musical note information processing program

Also Published As

Publication number Publication date
JP3322763B2 (en) 2002-09-09

Similar Documents

Publication Publication Date Title
US5402339A (en) Apparatus for making music database and retrieval apparatus for such database
KR100245325B1 (en) Method of recording musical data and reproducing apparatus thereof
CA2259369A1 (en) Automatic improvisation system and method
US7169999B2 (en) Digital signal processing method and apparatus thereof, control data generation method and apparatus thereof, and program recording medium
US5672837A (en) Automatic performance control apparatus and musical data storing device
JPH11175062A (en) Information output device, information editing device and recording medium
JP3120675B2 (en) Performance information compression device
JP3322763B2 (en) Performance information compression method
JP3219150B2 (en) Performance information compression method
US6111182A (en) System for reproducing external and pre-stored waveform data
JP3180643B2 (en) Registration / deletion / setting change method of music data of communication karaoke device
US20030182133A1 (en) Music data compression method and program for executing the same
JPH0822281A (en) Musical tone information compressing and communicating device and its terminal device
JP3211646B2 (en) Performance information recording method and performance information reproducing apparatus
KR950010336B1 (en) Compression and reproducing method of music data
JPH11288282A (en) Performance information converting device
JP4307697B2 (en) Editing device and recording medium storing editing program
JP2707775B2 (en) Performance recording device
US7214869B2 (en) Method for generating and playing a musical file and a computer-readable media storing the musical file
JP3303765B2 (en) Digital signal processing method and digital signal processing device
JP2002091436A (en) Performance information recording medium and performance information compressing device and telephone terminal equipment
JP3533481B2 (en) Sequence data insertion processor
JP2000056759A (en) Sequence data processor and computer readable recording medium
JPH08185164A (en) Automatic playing controller and music data storage device used for the same
JP3758267B2 (en) Sound source circuit setting method, karaoke apparatus provided with sound source circuit set by the method, and recording medium

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000627

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090628

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090628

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100628

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110628

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120628

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120628

Year of fee payment: 10

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120628

Year of fee payment: 10

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: 20120628

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130628

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees