JP2646760B2 - Performance data separation device - Google Patents

Performance data separation device

Info

Publication number
JP2646760B2
JP2646760B2 JP1223836A JP22383689A JP2646760B2 JP 2646760 B2 JP2646760 B2 JP 2646760B2 JP 1223836 A JP1223836 A JP 1223836A JP 22383689 A JP22383689 A JP 22383689A JP 2646760 B2 JP2646760 B2 JP 2646760B2
Authority
JP
Japan
Prior art keywords
hand
data
inference
performance data
register
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
Application number
JP1223836A
Other languages
Japanese (ja)
Other versions
JPH0385581A (en
Inventor
斉 古関
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP1223836A priority Critical patent/JP2646760B2/en
Publication of JPH0385581A publication Critical patent/JPH0385581A/en
Application granted granted Critical
Publication of JP2646760B2 publication Critical patent/JP2646760B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)
  • Devices For Executing Special Programs (AREA)
  • Auxiliary Devices For Music (AREA)

Description

【発明の詳細な説明】 (a)産業上の利用分野 この発明は、電子楽器等の分野において、右手で演奏
すべき右手パートの演奏データ(右手データ)と左手で
演奏すべき左手パートの演奏データ(左手データ)とが
混在した演奏データを、右手データと左手データとに分
離する演奏データ分離装置に関し、特に、演奏データの
分離にファジィ推論を応用した演奏データ分離装置に関
する。
DETAILED DESCRIPTION OF THE INVENTION (a) Industrial Field of the Invention The present invention relates to performance data (right hand data) of a right hand part to be played by a right hand and performance of a left hand part to be played by a left hand in a field of electronic musical instruments and the like. The present invention relates to a performance data separation device that separates performance data in which data (left hand data) is mixed into right hand data and left hand data, and more particularly to a performance data separation device that applies fuzzy inference to performance data separation.

(b)従来の技術 鍵盤楽器を両手で演奏した際に発生する演奏データ
は、右手パートの演奏データである右手データと左手パ
ートの演奏データである右手データとが混在した状態で
発生する。そのため、この演奏データを記録すると、1
つの記録トラックに右手データと左手データが混在した
状態で記録される。しかし、右手パートと左手パートを
別々に自動演奏させたいという目的から、右手パートの
演奏データと左手パートの演奏データを別々の記録トラ
ックに記録したいという要求が生じている。このため、
右手パートと左手パートを時間的に別々に演奏して記録
する方法、すなわち、まず一方のパートを一方の手で演
奏して記録し、次にそれを聞きながら他方のパートを他
方の手で演奏して記録するという方法が考えられる。あ
るいは、同時に両方の手で演奏し記録した演奏データ
を、あとから、人の手作業で1音ずつ左右パートに分離
して別々の記録トラックに編集しなおすという方法が考
えられる。
(B) Prior Art Performance data generated when a keyboard instrument is played with both hands is generated in a state where right-hand data, which is performance data of a right-hand part, and right-hand data, which is performance data of a left-hand part, are mixed. Therefore, when this performance data is recorded, 1
The right hand data and the left hand data are recorded on one recording track in a mixed state. However, there is a demand for recording the performance data of the right-hand part and the performance data of the left-hand part on separate recording tracks for the purpose of automatically performing the right-hand part and the left-hand part separately. For this reason,
The method of playing and recording the right hand part and the left hand part separately in time, i.e., playing and recording one part with one hand, then playing the other part with the other hand while listening to it It is conceivable to record by recording. Alternatively, a method is conceivable in which performance data recorded by playing with both hands at the same time is later manually separated by a human into sound and left and right parts and re-edited to separate recording tracks.

(c)発明が解決しようとする課題 しかし、前者の右手パートと左手パートを時間的に別
々に演奏して記録する方法は、右手パートと左手パート
を同時に演奏しないため、両手で演奏したときと比べて
演奏が不自然になってしまう。また、後者の後から人の
手作業で1音ずつ左右パートに分離して別々の記録トラ
ックにち編集しなおす方法は、大変な労力を必要とし
た。
(C) Problems to be Solved by the Invention However, the former method of recording the right hand part and the left hand part separately in time is different from the case of performing with both hands because the right hand part and the left hand part are not played simultaneously. The performance becomes unnatural in comparison. Also, after the latter, a method of manually separating the sound into left and right parts one by one manually and re-editing them on separate recording tracks requires a great deal of labor.

この発明は、このような課題に鑑み、両手パートが混
在した演奏データを、容易に右手パートと左手パートに
分離することができる演奏データ分離装置を提供するこ
とを目的とする。
An object of the present invention is to provide a performance data separation device capable of easily separating performance data in which both hand parts are mixed into a right hand part and a left hand part in view of such a problem.

(d)課題を解決するための手段 請求項1の発明は、演奏データを入力する入力手段
と、該入力手段から入力された演奏データをファジィ推
論によって右手で弾くべき演奏データである右手データ
および左手で弾くべき演奏データである左手データに分
離する分離手段とからなる演奏データ分離装置であっ
て、 前記分離手段は、入力された演奏データが右手データ
か左手データかをその音高に基づいて推論する第1の推
論手段と、入力された演奏が右手データか左手データか
をその前後の演奏データの関係に基づいて推論する第2
の推論手段を有することを特徴とする。
(D) Means for Solving the Problems According to the first aspect of the present invention, there is provided input means for inputting performance data, and right-hand data which is performance data to be played with the right hand by fuzzy inference on the performance data input from the input means. A performance data separating device for separating performance data to be played by the left hand into left hand data, wherein the separation means determines whether the input performance data is right hand data or left hand data based on the pitch thereof. First inference means for inferring, and second inference for inferring whether the inputted performance is right-hand data or left-hand data based on the performance data before and after the right-hand data.
The inference means is provided.

請求項2の発明は、前記第2の推論手段が前記第1の
推論手段によって演奏データの分離ができなかった場合
に動作することを特徴とする。
The invention according to claim 2 is characterized in that the second inference means operates when the performance data cannot be separated by the first inference means.

奏データ分離装置。 Performance data separation device.

請求項3の発明は、前記分離手段による演奏データの
分離結果の妥当性を判断する妥当性判断手段を設け、該
妥当性判断手段の判断結果に応じて前記分離手段のファ
ジィ推論の条件を変化させることを特徴とする。
According to a third aspect of the present invention, there is provided a validity judging means for judging the validity of the result of the separation of the performance data by the separating means, and the condition of the fuzzy inference of the separating means is changed according to the judgment result of the validity judging means. It is characterized by making it.

(e)作用 この発明の演奏データ分離装置では、例えば演奏デー
タとしてMIDIデータが入力され、入力されたMIDIデータ
の音高(キーコード)に基づいてこのデータが右手デー
タか左手データかをファジィ推論する(第1の推論手
段)。さらに、この入力されたMIDIデータの前後のデー
タの関係(例えば前の音が右手データか左手データか、
そして今回の音が前の音に近い音か、など)に基づいて
このデータが右手データか左手データかをファジィ推論
を実行する(第2の推論手段)。これにより、入力され
たMIDIデータを右手データ/左手データに分離する。
(E) Operation In the performance data separation device of the present invention, for example, MIDI data is input as performance data, and fuzzy inference is made based on the pitch (key code) of the input MIDI data to determine whether the data is right-hand data or left-hand data. (First inference means). Furthermore, the relationship between the data before and after the input MIDI data (for example, whether the previous sound is right-hand data or left-hand data,
Then, based on whether the current sound is a sound close to the previous sound, etc.), a fuzzy inference is performed as to whether this data is right-hand data or left-hand data (second inference means). This separates the input MIDI data into right-hand data / left-hand data.

また、請求項2の発明では、主として前記第1の推論
手段に基づいて演奏データを右手データ/左手データに
分離し、第1の推論手段によってこの分離ができなかっ
たとき、第2の推論手段によってこれを分離する。これ
により、演奏データが明らかに高い音高であったり、低
い音高である場合には速やかに分離ができ、中間的な音
高の場合でも確実な分離が可能になる。
Further, in the invention of claim 2, the performance data is separated into right-hand data / left-hand data mainly based on the first inference means, and if the separation cannot be performed by the first inference means, the second inference means To separate it. As a result, when the performance data has a clearly high pitch or a low pitch, separation can be quickly performed, and even in the case of an intermediate pitch, reliable separation becomes possible.

請求項3の発明では、分離手段の分離結果の妥当性を
妥当性判断手段が判断する。そして、妥当でない判断さ
れた場合には、前記ファジィ推論の条件を変化させる。
これにより、常に正確な分離が可能になる。
According to the third aspect of the present invention, the validity determination unit determines the validity of the separation result of the separation unit. If it is determined that the fuzzy inference is not appropriate, the condition of the fuzzy inference is changed.
This always allows accurate separation.

(f)実施例 第1図以下にこの発明の実施例を示す。この実施例は
ピアノの運指における左右手指の振り分けを推論する装
置である。第1図にこの装置の機能構成を示す。この装
置はMIDI方式で記憶されているピアノのキーコードデー
タを読み出して、それぞれの音楽を左右どちらの手で弾
けばよいかを推論する。推論結果は再度MIDIデータに変
換されて記憶される。MIDIデータにはキーコードデータ
に加えて各音楽のキーオン強度等のデータも記憶されて
いるため、この実施例ではMIDIデータ1から必要なキー
コードデータのみを抽出するデータ抽出2が行われる。
抽出されたキーコードデータは第1推論手段3,第2推論
手段4に入力される。第1推論手段3,第2推論手段4は
異なるファジィルール,メンバシップ関数に基づき入力
されたキーコードデータの各音楽がどちらの手指でキー
オンされるべきであるかを推論する。推論結果は妥当性
推論手段5に入力され、推論結果が入力条件等に照らし
て妥当であるかが判定される。推論結果が妥当と判定さ
れればデータ生成手段6に入力され、MIDIデータ1のキ
ーオン強度データ等が合成されて新たな右手パート,左
手パート別のMIDIデータ7(右手データ,左手データ)
として再構成されて記憶される。
(F) Embodiment FIG. 1 shows an embodiment of the present invention. This embodiment is an apparatus for inferring the distribution of right and left fingers in fingering of a piano. FIG. 1 shows the functional configuration of this device. This device reads the piano key code data stored in the MIDI format and infers which music should be played with the left or right hand. The inference result is converted to MIDI data again and stored. Since data such as the key-on intensity of each music is stored in the MIDI data in addition to the key code data, in this embodiment, data extraction 2 for extracting only necessary key code data from the MIDI data 1 is performed.
The extracted key code data is input to the first inference means 3 and the second inference means 4. The first inference means 3 and the second inference means 4 infer with which finger each music of the input key code data should be keyed on based on different fuzzy rules and membership functions. The inference result is input to the validity inference means 5, and it is determined whether the inference result is appropriate in light of input conditions or the like. If the inference result is determined to be valid, the result is input to the data generation means 6 and the key-on intensity data and the like of the MIDI data 1 are synthesized to create new right-hand part and left-hand part-specific MIDI data 7 (right-hand data, left-hand data).
Is reconstructed and stored.

第2図および第3図に第1推論手段3で用いられるフ
ァジィルールおよびメンバシップ関数を示す。第1推論
手段3においては鍵盤の左右の程度および中央(C4)よ
り右か左かに基づいて右手,左手を判断するようにして
いる。このためファジィルールはルール10〜ルール13の
4組が用いられる。
FIGS. 2 and 3 show fuzzy rules and membership functions used in the first inference means 3. FIG. In the first inference means 3, the right hand and the left hand are determined on the basis of the degree of left and right of the keyboard and whether it is right or left of the center (C4). Therefore, four sets of rules 10 to 13 are used as fuzzy rules.

また第4図,第5図に第2推論手段4で用いられるフ
ァジィルールおよびメンバシップ関数を示す。この推論
においてはキーオン中のキーの近傍は同じ手の指でキー
オンする場合が多いというアルゴリズムに基づいて右
手,左手を判断するようにしている。このためのファジ
ィルールはルール20〜ルール34の4組が用いられてい
る。
FIGS. 4 and 5 show fuzzy rules and membership functions used in the second inference means 4. FIG. In this inference, the right hand and the left hand are determined based on an algorithm that the key in the vicinity of the key being turned on is often keyed on by the finger of the same hand. For this purpose, four sets of rules 20 to 34 are used.

また、妥当性推論手段5においてもそれまでの推論結
果(左手レジスタ,右手レジスタの内容)と今回の推論
結果を入力条件としてファジィ推論を行う。この場合の
ファジィルールやメンバシップ関数は、 「右手でオンしている音の数が4未満であれば、KCを
右手でオン可能である。」 「左手でオンしている音の数が4未満であれば、KCを
左手でオン可能である。」 「右手でオンしている音とKCとの広がりが1オクター
ブよりも狭ければ右手でオンしやすい」 「右手でオンしている音とKCとの広がりが1オクター
ブよりも広ければ右手でオンしにくい」 「左手でオンしている音とKCとの広がりが1オクター
ブよりも狭ければ左手でオンしやすい」 「左手でオンしている音とKCとの広がりが1オクター
ブよりも広ければ左手でオンしにくい」 等である。
The validity inference means 5 also performs fuzzy inference using the inference results up to that time (the contents of the left-hand register and the right-hand register) and the current inference result as input conditions. The fuzzy rules and membership functions in this case are as follows: "If the number of sounds turned on with the right hand is less than 4, KC can be turned on with the right hand.""The number of sounds turned on with the left hand is 4 If it is less than, the KC can be turned on with the left hand. "" If the spread between the sound turned on with the right hand and KC is less than one octave, it is easy to turn on with the right hand. "" Sound turned on with the right hand If the spread of KC is wider than one octave, it is difficult to turn on with the right hand. "If the spread of the sound turned on with the left hand and KC is narrower than one octave, it is easy to turn on with the left hand." If the spread between the sound and the KC is wider than one octave, it is difficult to turn on with the left hand. "

ここで、KCとは推論実行のタイミングで取り込まれた
音のキーコードが記憶されているレジスタであり、ま
た、その内容を示している。
Here, KC is a register in which a key code of a sound taken in at the time of inference execution is stored, and indicates the contents thereof.

以上のファジィルールおよびメンバシップ関数はこの
実施例の説明を理解しやすくするため簡略化されてい
る。実際に各音楽を左右の手指に振り分けるためには左
右10本の各指について推論する必要がある。
The above fuzzy rules and membership functions have been simplified for ease of understanding the description of this embodiment. In order to actually distribute each music to the left and right fingers, it is necessary to make inferences about each of the left and right fingers.

第6図はこの右手/左手振り分け装置の制御部のブロ
ック図を示す。この装置はMIDI方式によりピアノの演奏
データが記憶されているマイクロフロッピィディスクを
受け付けて、CPUによるファジィ推論動作によってピア
ノの運指を検出する装置である。自動演奏ピアノや電子
楽器とは別体に用けられたスタンダローンの装置であ
る。このため装置構成は簡略化され、CPU10,ROM12,RAM1
3,マイクロフロッピィディスクドライブ14,表示器15お
よびハードディスク装置16がバス11を介して接続された
構成になっている。ROM12には基本動作プログラム等が
記憶されており、RAM13には第7図に示す記憶エリアが
設定される。
FIG. 6 is a block diagram of a control unit of the right / left hand sorting device. This device is a device that receives a micro floppy disk storing piano performance data by the MIDI method and detects fingering of the piano by a fuzzy inference operation by the CPU. This is a stand-alone device that is used separately from automatic performance pianos and electronic musical instruments. For this reason, the device configuration is simplified, and CPU10, ROM12, RAM1
3, a micro-floppy disk drive 14, a display 15, and a hard disk device 16 are connected via a bus 11. A basic operation program and the like are stored in the ROM 12, and a storage area shown in FIG. 7 is set in the RAM 13.

第7図に前記RAM13の一部構成図を示す。同図(A)
は立ち上げ散にハードディスク装置16からロードされる
データの記憶エリアを示す。M1は装置の動作を規定する
制御プログラム記憶エリア、M2,M3はCPU10によってファ
ジィ推論を実行するためのファジィルール記憶エリアお
よびメンバシッ関数記憶エリアである。M4は各ファジィ
ルールが推論結果に寄与する程度を調整する適合度係数
記憶エリアであり、その他左手側閾値Th1,右手側閾値Th
2がロードされる。
FIG. 7 shows a partial configuration diagram of the RAM 13. Figure (A)
Indicates a storage area for data loaded from the hard disk device 16 at startup. M1 is a control program storage area that defines the operation of the apparatus, and M2 and M3 are a fuzzy rule storage area and a membership function storage area for executing fuzzy inference by the CPU 10. M4 is a fitness coefficient storage area for adjusting the degree to which each fuzzy rule contributes to the inference result, and other left hand threshold Th1, right hand threshold Th
2 is loaded.

また、同図(B)はRAM13に設定されるレジスタを示
す。RAM13には左手レジスタM11,右手レジスタM12,ファ
ジィルールポインタi,前件部関数値レジスタV,後件部演
算値レジスタM,結論最大値レジスタMAX,重心レジスタG
および適合度係数補正値レジスタM14,メンバシップ関数
補正値レジスタM15が設定されている。左手レジスタM1
1,右手レジスタM12には各タイミングにおいて左手・右
手でオンしているべきと推論されたキーのキーコードが
記憶される。ファジィルールポインタiはCPU10が演算
するファジィルールの番号を指定する。CPU10では複数
のファジィルールを順次処理してゆくためこのポインタ
が必要となる。前件部関数値レジスタVおよび後件部演
算値レジスタMはファジィルールの演算値に算出された
値を記憶する。前件部関数値レジスタVはスカラー量で
あるが後件部演算値レジスタMの内容は2次元的広がり
のある量である。結論最大値レジスタMAXは複数のファ
ジィルールの演算値の論理和を記憶する。重心レジスタ
Gには最大値レジスタMAXの重心が記憶される。また、
ファジィ推論に伴って適合度および後件部メンバシップ
関数がより適当になるように補正をうけるこの補正内容
が適合度補正値レジスタM14,メンバシップ関数補正値レ
ジスタM15に記憶される。
FIG. 2B shows a register set in the RAM 13. The RAM 13 has a left-hand register M11, a right-hand register M12, a fuzzy rule pointer i, a consequent part function value register V, a consequent part operation value register M, a conclusion maximum value register MAX, and a center of gravity register G.
In addition, a fitness coefficient correction value register M14 and a membership function correction value register M15 are set. Left hand register M1
1. The right hand register M12 stores the key code of the key that is inferred to be turned on by the left hand and right hand at each timing. The fuzzy rule pointer i designates the number of a fuzzy rule calculated by the CPU 10. This pointer is necessary for the CPU 10 to sequentially process a plurality of fuzzy rules. The antecedent part function value register V and the consequent part operation value register M store the value calculated as the operation value of the fuzzy rule. The antecedent part function value register V is a scalar quantity, but the contents of the consequent part operation value register M are two-dimensionally spread quantities. Conclusion The maximum value register MAX stores the logical sum of the operation values of a plurality of fuzzy rules. The center of gravity of the maximum value register MAX is stored in the center of gravity register G. Also,
The contents of the correction, which are corrected so as to make the degree of conformity and the membership function of the consequent part more appropriate with the fuzzy inference, are stored in the degree-of-fit correction value register M14 and the membership function correction value register M15.

第8図は前記CPU10の動作を示すフローチャートであ
る。マイクロフロッピィディスクがドライブ装置14に挿
入されるとこの動作がスタートする。まずレジスタのリ
セット等のイニシャライズ動作を行い、このときマイク
ロフロッピィディスクからMIDIデータをすべてメモリ上
に読み込む(n1)。n2においては先頭から順にこのMIDI
データを取り込んでゆき、このとき取り込まれたキーコ
ードをキーコードレジスタKCに記憶する(n2′)。この
データがキーオフイベントであるかキーオンイベントで
あるかをn3,n4で判断する。キーオフイベントであればn
3→n5に進み、キーオンイベントであればn4→n10に進
む。
FIG. 8 is a flowchart showing the operation of the CPU 10. This operation starts when the micro floppy disk is inserted into the drive device 14. First, an initialization operation such as resetting a register is performed. At this time, all MIDI data is read from the micro floppy disk into the memory (n1). For n2, this MIDI
Data is fetched, and the fetched key code is stored in the key code register KC (n2 '). Whether this data is a key-off event or a key-on event is determined by n3 and n4. N for key-off event
Proceed to 3 → n5, and if it is a key-on event, proceed to n4 → n10.

n5ではオフされたキーのキーコードが左手レジスタに
記憶されているか右手レジスタに記憶されている(右手
でキーオンされているか左手でキーオンされているか)
を判断し、左手レジスタに記憶されている場合にはこの
キーコードのキーがオフされた旨のMIDIデータをチャン
ネル1にセットし(n6)、このキーに対応する左手レジ
スタのデータをクリアする(n7)。こののちn2にもど
る。一方キーオフイベントのキーコードが右手レジスタ
に記憶されている場合にはこのキーコードのキーがオフ
された旨のMIDIデータをチャンネル2にセットする(n
8)。こののちこれに対応する右手レジスタのデータを
クリアして(n9)、n2にもどる。
In n5, the key code of the key that was turned off is stored in the left-hand register or the right-hand register (whether the key is turned on with the right hand or the key is turned on with the left hand)
Is determined, and if the key code is stored in the left hand register, the MIDI data indicating that the key of this key code is turned off is set to channel 1 (n6), and the data of the left hand register corresponding to this key is cleared ( n7). Then return to n2. On the other hand, if the key code of the key-off event is stored in the right-hand register, MIDI data indicating that the key of this key code has been turned off is set to channel 2 (n
8). After that, the data of the corresponding right-hand register is cleared (n9), and the process returns to n2.

またキーオンイベントにより動作がn10に進むと、ま
ずファジィルールポインタiに0をセットし、以下の手
順でファジィ推論を実行する。
When the operation proceeds to n10 due to a key-on event, first, a fuzzy rule pointer i is set to 0, and fuzzy inference is executed in the following procedure.

キーコードレジスタKCの内容(以下「キーコードKC」
という:他のレジスタも同様)を入力値とした場合のル
ール(i)(ここで、ファジィルール10〜13,20〜23を
ルール(0)〜(7)とする。)の前件部メンバシップ
関数の関数値を求め関数値レジスタVに記憶する(n11:
第9図(A)参照)。
The contents of the key code register KC (hereinafter "key code KC"
: The same applies to other registers). Antecedent members of rule (i) when fuzzy rules 10 to 13 and 20 to 23 are rules (0) to (7) when input values are used as input values. The function value of the ship function is obtained and stored in the function value register V (n11:
(See FIG. 9 (A)).

関数値Vに適合度係数(i)を掛けて新たなVとする
(n12:第9図(B)参照)。
The function value V is multiplied by the fitness factor (i) to obtain a new V (n12: see FIG. 9B).

次に関数値Vでルール(i)の後件部メンバシップ関
数のいわゆる頭切演算を行い演算値レジスタMにセット
する(n13)。
Next, a so-called truncation operation of the membership function of the consequent part of the rule (i) is performed with the function value V and set in the operation value register M (n13).

演算値Mと最大値MAXの内容との和集合をとりこの集
合を最大値レジスタMAXにセットする(n14:第9図
(C)参照)。
The union of the operation value M and the contents of the maximum value MAX is taken and this set is set in the maximum value register MAX (n14: see FIG. 9 (C)).

iが0→3になるまでこの動作を繰り返し実行する
(n15,n16)。
This operation is repeatedly executed until i becomes 0 → 3 (n15, n16).

ルール(0)〜ルール(3)に関して以上の動作が完
了すると最大値MAXの重心Gを計算する(n17)。このG
が左手閾値Th1よりも小さければ左手指でキーオンすべ
き楽音であると判断してn18からn30に進み、Gが右手閾
値Th2よりも大きければ右手指でキーオンすべきもので
あるとしてn19からn36に進む。n30以下の動作,n36以下
の動作とともに妥当性推論手段である。Gが左手閾値Th
1の右手閾値Th2との間にあればこの推論では右手指/左
手指を判断することができないとして第2推論手段であ
るn20以下の動作に進む。
When the above operation is completed for the rules (0) to (3), the center of gravity G of the maximum value MAX is calculated (n17). This G
If G is smaller than the left hand threshold Th1, it is determined that the tone is a musical tone to be keyed on with the left finger, and the process proceeds from n18 to n30. . It is a validity inference means together with the operation below n30 and the operation below n36. G is left hand threshold Th
If it is between 1 and the right hand threshold value Th2, it is determined that the right hand / left finger cannot be determined by this inference, and the operation proceeds to n20 or less as the second inference means.

n20ではiをさらに進歩させる。このn20〜n25ではル
ール4〜ルール7についてn11〜n16と同様のファジィ推
論動作を実行する。n26で最大値MAXの重心Gを計算し、
この重心が0よりも大きければ右手で打鍵する楽音であ
るとしてn36に進み、Gが0よりも小さければ左手で打
鍵するものであるとしてn30に進む。
In n20, i is further advanced. In n20 to n25, the same fuzzy inference operation as in n11 to n16 is executed for rules 4 to 7. Calculate the center of gravity G of the maximum value MAX in n26,
If the center of gravity is larger than 0, the process proceeds to n36 as a tone to be played with the right hand, and if G is smaller than 0, the process proceeds to n30 as a tone to be played with the left hand.

n30以下は妥当性推論動作である。n30〜n33は楽音が
左手で打鍵すべきものであると判断された場合の動作で
ある。まず左手レジスタに記憶されているキーコード数
が4以下であるか、さらに、キーコードKCと左手レジス
タに記憶されているキーコードが全て1オクターブの範
囲内で納まっているかどうかを判断する(n30,n31)。
両方の条件が満たされていればキーコードKCおよびこれ
に付随するMIDIデータ(キーオン強度データ等)をチャ
ンネル1トラックにセットし(n32)、このキーコードK
Cを左手レジスタにセットする(n33)。次に第2推論手
段の前件部メンバシップ関数をKCに基づいて補正する
(n34)。この補正は入力値がKCのとき関数値が最大に
なるように補正する。全データの編集が終了したことを
n35で判断するまで、n2以下の動作を繰り返し実行す
る。
Below n30 is the validity inference operation. Steps n30 to n33 are operations performed when it is determined that the musical sound should be played with the left hand. First, it is determined whether the number of key codes stored in the left-hand register is four or less, and whether the key code KC and the key code stored in the left-hand register are all within one octave (n30). , n31).
If both conditions are satisfied, the key code KC and the accompanying MIDI data (key-on intensity data, etc.) are set in the channel 1 track (n32), and the key code KC is set.
Set C in the left hand register (n33). Next, the antecedent membership function of the second inference means is corrected based on KC (n34). This correction is performed so that the function value becomes maximum when the input value is KC. That all data has been edited
The operation of n2 or less is repeatedly executed until the judgment is made in n35.

一方n36〜n39は楽音が右手で打鍵すべきものであると
判断された場合の動作である。まず右手レジスタに記憶
されているキーコード数が4以下であるか、さらに、キ
ーコードKCと右手レジスタに記憶されているキーコード
が全て1オクターブの範囲内で納まっているかどうかを
判断する(n36,n37)。両方の条件が満たされていれば
キーコードKCおよびこれに付随するMIDIデータをチャン
ネル2にセットし(n38)、このキーコードKCを右手レ
ジスタにセットする(n39)。こののちn34に進む。
On the other hand, n36 to n39 are operations when it is determined that the musical tone should be hit with the right hand. First, it is determined whether the number of key codes stored in the right hand register is 4 or less, and whether the key code KC and the key code stored in the right hand register are all within one octave (n36). , n37). If both conditions are satisfied, the key code KC and its associated MIDI data are set on channel 2 (n38), and the key code KC is set on the right hand register (n39). Then, proceed to n34.

n31,n32およびn37,n38でこの推論に妥当性がないと判
断された場合(左手(右手)レジスタに記憶されている
キーコード数が4を超えている場合、または、左手(右
手)で打鍵すべきキーコードが1オクターブの範囲を超
えて広がっている場合にはn40に進む。n40ではファジィ
推論の推論結果に妥当性が生じるように適合度係数を補
正して第一推論手段(n10以下)から再度実行しなお
す。
If n31, n32 and n37, n38 determine that this inference is not valid (if the number of key codes stored in the left-hand (right-hand) register exceeds four, or tap with the left-hand (right-hand) If the key code to be spread is beyond the range of one octave, the process proceeds to n40. In n40, the fitness coefficient is corrected so that the inference result of the fuzzy inference becomes valid, and the first inference means (n10 or less) ) And execute again.

以上の実施例では説明および理解を容易にするために
ファジィルール,メンバシップ関数を簡略化したが、実
際にピアノ(鍵盤上)の運指を推論して左右に振り分け
るためには連続する楽音のつながりによる推論(たとえ
ば、「右手の上昇音階を演奏するためには中指から親指
に跨ぐ」)、指の機能的限界(たとえば、「トリルしな
がら、近くをキーをレガートで弾くことは困難であ
る。」)やテクニック等(たとえば「右手の小指の音を
消さずに右どなりの音を右小指でキーオンする場合に
は、指の置き換え(オンしているキーをオンのまま指を
換えること)をする。」)等を考慮して複雑なファジィ
ルールを構成してより推論する必要がある。
In the above embodiment, the fuzzy rules and the membership functions have been simplified for easy explanation and understanding. However, in order to infer fingering of the piano (on the keyboard) and actually distribute the fingering to the left and right, a continuous musical tone is used. Reasoning by connections (eg, “stretching from middle finger to thumb to play the rising scale of the right hand”), functional limitations of the finger (eg, “It is difficult to play keys close by legato while trilling .)) And techniques (for example, "If you turn on the right beating sound with the right little finger without erasing the sound of the little finger of the right hand, replace the finger (change the finger while keeping the key that is on)." It is necessary to construct a complicated fuzzy rule in consideration of the above) and make more inferences.

(g)発明の効果 以上のように請求項1の発明によれば、入力された演
奏データが第1の推論手段、第2の推論手段により右手
で演奏する右手データと左手で演奏する左手データとに
分離される。これにより、右手データと左手データが混
在した演奏データを、右手データのトラックと左手デー
タのトラックとに分離して再構成することができる。ま
た、ファジィ推論を用いて演奏データを分離するため、
分離のための複雑なアルゴリズムを必要としない。
(G) Effects of the Invention As described above, according to the first aspect of the present invention, the input performance data is converted by the first inference means and the second inference means into right hand data played by the right hand and left hand data played by the left hand. And separated. As a result, the performance data in which the right hand data and the left hand data are mixed can be separated and reconstructed into the right hand data track and the left hand data track. Also, in order to separate performance data using fuzzy inference,
Does not require complicated algorithms for separation.

また、請求項2の発明によれば、第1の推論手段で分
離可能な演奏データについては第2の推論手段を用いな
いことにより、分離作業を効率化することができ、ま
た、第1の推論手段で分離できないものについては第2
の推論手段を併用して右手データ,左手データの分離を
行うようにしたことにより、分離の正確性を確保するこ
とができる。
According to the second aspect of the present invention, the performance of the separation operation can be made more efficient by not using the second inference means for the performance data that can be separated by the first inference means. For those that cannot be separated by inference means,
By separating the right-hand data and the left-hand data using the inference means of the above, the accuracy of the separation can be ensured.

さらに、請求項3の発明によれば、妥当性判断手段に
より分離結果の妥当性が判断されるので、ファジィ推論
による分離の不完全さを補うことができ、分離精度を高
くすることができる。
Furthermore, according to the third aspect of the invention, the validity of the separation result is determined by the validity determination means, so that incomplete separation by fuzzy inference can be compensated for and the separation accuracy can be increased.

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

第1図はこの発明の実施例であるピアノの右手/左手振
り分け装置の機能ブロック図、第2図,第3図は同左手
/右手振り分け装置で実行される第1推論のファジィル
ールおよびメンバシップ関数を示す図、第4図,第5図
は同第2推論のファジィルールおよびメンバシップ関数
を示す図である。 第6図は同右手/左手振り分け装置の制御部のブロック
図、第7図は同制御部のメモリの構成を示す図、第8図
は同制御部の動作を示すフローチャート、第9図(A)
〜(C)は同制御部のファジィ推論手順を説明するため
の図である。 3……第1推論手段、4……第2推論手段、5……妥当
性推論手段。
FIG. 1 is a functional block diagram of a right / left hand sorting device for a piano according to an embodiment of the present invention. FIGS. 2 and 3 are fuzzy rules and membership of first inference executed by the left / right hand sorting device. FIGS. 4 and 5 are diagrams showing functions, and FIGS. 4 and 5 are diagrams showing fuzzy rules and membership functions of the second inference. 6 is a block diagram of a control unit of the right / left hand sorting device, FIG. 7 is a diagram showing a memory configuration of the control unit, FIG. 8 is a flowchart showing an operation of the control unit, and FIG. )
FIGS. 4C to 4C are diagrams for explaining a fuzzy inference procedure of the control unit. 3 ... first inference means, 4 ... second inference means, 5 ... validity inference means.

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】演奏データを入力する入力手段と、該入力
手段から入力された演奏データをファジィ推論によって
右手で弾くべき演奏データである右手データおよび左手
で弾くべき演奏データである左手データに分離する分離
手段とからなる演奏データ分離装置であって、 前記分離手段は、 入力された演奏データが右手データか左手データかをそ
の音高に基づいて推論する第1の推論手段と、 入力された演奏データが右手データか左手データかをそ
の前後の演奏データとの関係に基づいて推論する第2の
推論手段と、 を有することを特徴とする演奏データ分離装置。
An input means for inputting performance data, and the performance data input from the input means are separated by fuzzy inference into right hand data which is performance data to be played with the right hand and left hand data which is performance data to be played with the left hand. A first inference means for inferring whether the input performance data is right-hand data or left-hand data based on the pitch thereof; Second inference means for inferring whether the performance data is right-hand data or left-hand data based on the relationship with performance data before and after the right-hand data.
【請求項2】前記第2の推論手段は、前記第1の推論手
段によって演奏データの分離ができなかった場合に動作
することを特徴とする請求項1に記載の演奏データ分離
装置。
2. The performance data separating apparatus according to claim 1, wherein said second inference means operates when the performance data cannot be separated by said first inference means.
【請求項3】前記分離手段による演奏データの分離結果
の妥当性を判断する妥当性判断手段を設け、該妥当性判
断手段の判断結果に応じて前記分離手段のファジィ推論
の条件を変化させることを特徴とする請求項1に記載の
演奏データ分離装置。
3. An apparatus according to claim 1, further comprising a validity judging means for judging a validity of the performance data separation result by said separating means, and changing a fuzzy inference condition of said separating means according to the judgment result of said validity judging means. The performance data separation device according to claim 1, wherein:
JP1223836A 1989-08-30 1989-08-30 Performance data separation device Expired - Lifetime JP2646760B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1223836A JP2646760B2 (en) 1989-08-30 1989-08-30 Performance data separation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1223836A JP2646760B2 (en) 1989-08-30 1989-08-30 Performance data separation device

Publications (2)

Publication Number Publication Date
JPH0385581A JPH0385581A (en) 1991-04-10
JP2646760B2 true JP2646760B2 (en) 1997-08-27

Family

ID=16804483

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1223836A Expired - Lifetime JP2646760B2 (en) 1989-08-30 1989-08-30 Performance data separation device

Country Status (1)

Country Link
JP (1) JP2646760B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2950138B2 (en) * 1994-03-23 1999-09-20 ヤマハ株式会社 Fingering information analyzer and electronic musical instrument using the same

Also Published As

Publication number Publication date
JPH0385581A (en) 1991-04-10

Similar Documents

Publication Publication Date Title
US5990404A (en) Performance data editing apparatus
US5125315A (en) Electronic musical instrument with selection of standard sound pitch of a natural instrument upon selection of tone color
JP3099436B2 (en) Chord detection device and automatic accompaniment device
JPH0823746B2 (en) Automatic tone generator
JP2646760B2 (en) Performance data separation device
US5430244A (en) Dynamic correction of musical instrument input data stream
JPH07111629B2 (en) Electronic musical instrument
JP3237421B2 (en) Automatic performance device
JPH064080A (en) Musical sound waveform signal generating device
JP2940449B2 (en) Automatic performance device
JP4192936B2 (en) Automatic performance device
JP3336690B2 (en) Performance data processor
JP2560485B2 (en) Electronic musical instrument
JP2794730B2 (en) Electronic musical instrument
JP3791087B2 (en) Performance data editing device
JP2658629B2 (en) Electronic musical instrument
JP2621505B2 (en) Electronic musical instrument
JP3772430B2 (en) Performance data editing device
JP2500495B2 (en) Electronic keyboard instrument
JPH0385580A (en) Fuzzy inference device
JP2616072B2 (en) Music data processor
JP3082294B2 (en) Accompaniment sound signal forming device
JP3376616B2 (en) Automatic accompaniment device
JP2000163052A (en) Music generating device and recording medium which records music generating program
JP2500490B2 (en) Automatic accompaniment device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970408