JPH06124088A - Melody analyzing device - Google Patents

Melody analyzing device

Info

Publication number
JPH06124088A
JPH06124088A JP4299267A JP29926792A JPH06124088A JP H06124088 A JPH06124088 A JP H06124088A JP 4299267 A JP4299267 A JP 4299267A JP 29926792 A JP29926792 A JP 29926792A JP H06124088 A JPH06124088 A JP H06124088A
Authority
JP
Japan
Prior art keywords
melody
note
key
passage
chord
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
JP4299267A
Other languages
Japanese (ja)
Other versions
JP3271331B2 (en
Inventor
Tetsuya Hayashi
林  哲也
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP29926792A priority Critical patent/JP3271331B2/en
Priority to US08/134,797 priority patent/US5510572A/en
Publication of JPH06124088A publication Critical patent/JPH06124088A/en
Application granted granted Critical
Publication of JP3271331B2 publication Critical patent/JP3271331B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Auxiliary Devices For Music (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

PURPOSE:To apply the melody analyzing device to a melody including modulation and detect the modulation included in the melody by providing a melody dividing means which divides the melody into passages and a key-by-passage deciding means which decides keys by the divided passages. CONSTITUTION:The melody division part 4 divides the given melody 2 into plural divisional melodies (passage) like passages 1-(n) shown by a reference number 6. The tonality analytic part 8 decides the keys by the passages. A matching part 24 retrieves the melody pattern of a rhythm style 10 specified from MPRB 22, matches it with classified data, and then gives a label for pattern matching to notes of the passages which accord with the rule of the melody pattern. An adequacy evaluation part 26 receives the result of the matching part 24 and calculates the rate of the notes, given the label for pattern matching, among notes of the passages to evaluate the adequacy of chord progression. Consequently, the modulation included in the melody can be detected.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は音楽装置に関し、特に
与えられたメロディを調性分析するメロディ分析装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a music apparatus, and more particularly to a melody analysis apparatus for tonally analyzing a given melody.

【0002】[0002]

【従来の技術】メロディの調を判定するメロディ分析装
置は既に知られている。この種のメロディ分析装置はメ
ロディに自動伴奏をつける自動伴奏装置にしばしば利用
される。代表的な従来のメロディ分析装置は、メロディ
に含まれる音の集合を主音が異なるスケールのピッチク
ラスセット(PCS)とマッチングすることによりメロ
ディの調を判定する。また、メロディの最後の音を手掛
りにしてメロディの調を判定するメロディ分析装置も知
られている。しかし、いずれの従来のメロディ分析装置
も、与えられたメロディは転調(調の変化)を含んでい
ないことを前提にしている。
2. Description of the Related Art Melody analyzers for determining the tone of a melody are already known. This type of melody analysis device is often used in an automatic accompaniment device that adds an automatic accompaniment to a melody. A typical conventional melody analysis device determines the tone of a melody by matching a set of sounds included in the melody with a pitch class set (PCS) of different tonic scales. There is also known a melody analysis device that determines the tone of a melody by using the last sound of the melody as a clue. However, each of the conventional melody analysis devices is based on the premise that the given melody does not include a transposition (change in key).

【0003】[0003]

【発明が解決しようとする課題】したがって、従来のメ
ロディ分析装置では、途中で転調しているメロディに対
しては、メロディの一部について正しくない調を判定す
ることとなり、満足のいく調性分析を行い得なかった。
したがって、この発明の目的は転調を含むメロディにも
対応できるメロディ分析装置を提供することである。更
に、この発明の目的はメロディに含まれる転調を検出可
能なメロディ分析装置を提供することである。
Therefore, in the conventional melody analysis device, for a melody that is transposed in the middle, an incorrect key is determined for a part of the melody, and a satisfactory tonality analysis is performed. Could not be done.
Therefore, an object of the present invention is to provide a melody analysis device which can deal with a melody including modulation. A further object of the present invention is to provide a melody analysis device capable of detecting the modulation included in a melody.

【0004】[0004]

【課題を解決するための手段、作用】この発明によれ
ば、メロディを付与するメロディ付与手段と、前記メロ
ディを楽節に分割するメロディ分割手段と、分割された
各楽節の調を判定する楽節別調判定手段とを有すること
を特徴とするメロディ分析装置が提供される。
According to the present invention, the melody assigning means for imparting a melody, the melody dividing means for dividing the melody into the passages, and the division by the passage for judging the key of each of the divided passages. There is provided a melody analysis device having a key determination means.

【0005】この構成によれば、メロディ分析手段の作
用により、分割された個々のメロディ部分(楽節)に
は、転調が含まれないようにすることが可能となる。例
えば、4番目の楽節までC調で、5番目と6番目はF調
で、7番目と8番目の楽節でC調に戻るメロディの場
合、メロディ全体としては転調を含むが、個々の楽節内
部では調は変わっていない。したがって、楽節別調判定
手段により、個々の楽節の調を判定することにより、メ
ロディの調の進行を正確に分析することができる。ま
た、運悪く、楽節の内部で突然の転調があるような場合
でも、調を誤って判定するメロディ部分の範囲を従来よ
り小さくすることができる。
According to this structure, due to the action of the melody analyzing means, it is possible to prevent each of the divided melody parts (syllables) from including modulation. For example, in the case of a melody that returns to C in the 4th syllable, F in the 5th and 6th, and returns to C in the 7th and 8th syllables, the entire melody includes the transposition, but inside each individual syllable. Then the tone has not changed. Therefore, the progression of the melody key can be accurately analyzed by determining the key of each phrase by the phrase-specific key determination means. In addition, even if, unfortunately, there is a sudden transposition inside the passage, the range of the melody part in which the key is erroneously determined can be made smaller than in the conventional case.

【0006】メロディ付与手段は、実時間でメロディの
データを入力する鍵盤手段と、入力されたメロディのデ
ータを記憶するメロディ記憶手段とで構成することがで
きる。これにより、ユーザーは、メロディ分析装置に分
析させるメロディを手軽に入力することができる。メロ
ディ分割手段は与えられたメロディのなかから楽節終了
音符(ケーデンスノート)を検出する手段を含み得る。
例えば、ケーデンスノートを比較的長い音符によって定
めることができる。
The melody adding means can be composed of keyboard means for inputting melody data in real time and melody storage means for storing the input melody data. This allows the user to easily input the melody to be analyzed by the melody analysis device. The melody dividing means may include means for detecting a syllable end note (cadence note) from the given melody.
For example, cadence notes can be defined by relatively long notes.

【0007】更に、メロディ分割手段は与えられたメロ
ディのなかから所定長(例えば4小節)のメロディ部分
を楽節として検出する手段を含み得る。更に、メロディ
分割手段は与えられたメロディの分割位置を指示入力す
る分割位置指示入力手段を含み得る。この構成は、ユー
ザーの意図に従うメロディ分割を可能にする。更に、メ
ロディ分割手段は与えられたメロディがアウフタクトで
開始するかどうかを検査するアウフタクト検査手段を含
み得る。
Further, the melody dividing means may include means for detecting a melody part having a predetermined length (for example, four measures) as a passage from the given melody. Further, the melody dividing means may include division position instruction input means for instructing and inputting the division position of the given melody. This configuration enables the melody division according to the user's intention. Further, the melody dividing means may include an aftact checking means for checking whether or not a given melody starts in aftact.

【0008】楽節別調判定手段は楽節のモーション(フ
レーズの動き、流れ)を分析するモーション分析手段
と、分析したモーションに基づいて楽節の主音を判定す
る主音判定手段とを有し得る。主音判定手段は、複数の
主音候補を生成する手段を含み得る。これは、音楽にお
いて複数の調の可能性をもつメロディが存在し得ること
を考慮したものである。これにより、柔軟性のあるメロ
ディ分析が達成できる。また、楽節別調判定手段は、現
楽節の調が前楽節の調と同じかどうかを検査する調維持
検査手段を含み得る。これは、音楽において調が維持さ
れる傾向に従うものである。
The phrase-based tone determination means may include a motion analysis means for analyzing a motion of a passage (movement of a phrase, a flow), and a tonic determination means for determining a tonic of a passage based on the analyzed motion. The tonic determining means may include a means to generate a plurality of tonic candidates. This takes into consideration that there may be a melody having a plurality of key possibilities in music. This makes it possible to achieve flexible melody analysis. Further, the phrase-by-sentence determination means may include a key-maintenance inspection means for inspecting whether the key of the current syllable is the same as the key of the previous syllable. This follows the tendency for tones to be maintained in music.

【0009】[0009]

【実施例】以下、図面を参照してこの発明を更に詳細に
説明する。図1はこの発明によるメロディ分析装置を組
み込んだ音楽装置の機能ブロック図である。2は与えら
れたメロディを表わす。メロディ分割部4は、この与え
られたメロディ2を参照番号6で示す楽節1〜楽節nの
ように、複数の分割メロディ(楽節)に分割する。調性
分析部8は各楽節の調を判定する。要素4〜8によりメ
ロディ分析装置が提供される。図1に示す音楽装置の全
体の目的は、与えられたメロディに対し、和音(コード
進行)付けを行うことである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in more detail below with reference to the drawings. FIG. 1 is a functional block diagram of a music apparatus incorporating the melody analysis apparatus according to the present invention. 2 represents the given melody. The melody dividing unit 4 divides the given melody 2 into a plurality of divided melody (syllables) like syllables 1 to n indicated by reference numeral 6. The tonality analysis unit 8 determines the key of each passage. Elements 4-8 provide a melody analyzer. The overall purpose of the music apparatus shown in FIG. 1 is to add chords (chord progressions) to a given melody.

【0010】この実施例の特徴に従い、音楽装置は、与
えられたメロディ2の各部分に対して1つずつコードを
付けるのでなく、楽節を単位として、各楽節に適したコ
ード進行を割り当て、決定する。このために、コード進
行データベース(CPDB)12が設けられる。コード
進行データベースは種々の音楽スタイルのコード進行の
データベースを記憶する。10は指定された音楽スタイ
ル(リズムスタイル)を表わす。属性テスト部14は、
指定リズムスタイルと、楽節の長さに適合するコード進
行(CP)をCPDB12のなかから検索する。CPD
B12に記憶されるコード進行はいずれも基準の調で書
かれている。そこで、移調部16は検索されたコード進
行を調性分析部8から与えられる楽節の調に移調する
According to the features of this embodiment, the music apparatus does not add one chord to each part of the given melody 2, but assigns chord progressions suitable for each syllable in units of syllables and makes a decision. To do. For this purpose, a chord progression database (CPDB) 12 is provided. The chord progression database stores a database of chord progressions for various musical styles. Reference numeral 10 represents a designated music style (rhythm style). The attribute test unit 14
A chord progression (CP) matching the designated rhythm style and the length of the phrase is searched from the CPDB 12. CPD
All chord progressions stored in B12 are written in the standard tone. Then, the transposing unit 16 transposes the retrieved chord progression to the musical key given by the tonality analyzing unit 8.

【0011】モーション分類部18と音種分類部20は
分割メロディ(楽節)の各音符の意味付けを行う。モー
ション分類部18は、隣り合う音符の音高差(音程)の
大きさに従って、音符間のモーションを分類する。音種
分類部20は調性分析部8から与えられる楽節の調とC
PDB12から検索されたコード進行(楽節のコード進
行の候補)の情報を基にして楽節の各音符の音種を分類
する。
The motion classifying section 18 and the sound type classifying section 20 assign meanings to each note of the divided melody (syllable). The motion classification unit 18 classifies motions between notes according to the pitch difference (pitch) between adjacent notes. The tone type classifying unit 20 receives the C and C of the phrase given from the tonality analyzing unit 8.
Based on the information on the chord progressions (candidates for chord progressions of passages) retrieved from the PDB 12, the note types of each note in the passages are classified.

【0012】メロディパターンルールベース(MPR
B)22は、個々の音楽スタイルで使用されるメロディ
パターンのルールベースを記憶する。マッチング部24
は、モーション分類部18と音種分類部20から与えら
れる各音符の分類データを受け、その分類データが、指
定されたスタイル10のメロディパターンに従うかどう
かを検査する。このために、マッチング部24はMPR
B22から指定されたリズムスタイル10のメロディパ
ターンを検索し、それを分類データと照合する。マッチ
ングの結果、メロディパターンのルールに従う楽節の音
符にはパターン適合のラベルが付けられる。
Melody pattern rule base (MPR
B) 22 stores the rule base of the melody pattern used in each musical style. Matching part 24
Receives the classification data of each note given from the motion classifying unit 18 and the sound type classifying unit 20, and checks whether the classification data follows the melody pattern of the designated style 10. For this reason, the matching unit 24 uses the MPR.
The melody pattern of the specified rhythm style 10 is searched from B22, and it is collated with the classification data. As a result of the matching, the musical notes in the syllables that follow the rules of the melody pattern are labeled as pattern matching.

【0013】音種分類部20による音種の分類は検索し
たコード進行に依存する。したがって、検索したコード
進行が楽節に合わない場合には、メロディパターンのル
ールに従わない音符が多くなる。いいかえると、パター
ン適合のラベルが付いた音符の割合は、検索したコード
進行が楽節に対しどの程度、適合するかを表わすCP適
合度の尺度である。同様に、音種分類部20の結果は調
性分析部8で判定した楽節の調にも依存する。つまり、
調性分析部8が判定した調が誤っている場合には、パタ
ーン適合のラベルが付いた音符の割合は少なくなる。
The classification of the sound type by the sound type classifying unit 20 depends on the retrieved chord progression. Therefore, when the retrieved chord progression does not match the passage, many notes do not follow the melody pattern rules. In other words, the proportion of notes labeled with pattern matching is a measure of the degree of CP matching that indicates how well the retrieved chord progression matches the passage. Similarly, the result of the sound type classifying unit 20 also depends on the tone of the passage determined by the tonality analyzing unit 8. That is,
When the key determined by the tonality analysis unit 8 is incorrect, the proportion of the notes with the pattern matching label decreases.

【0014】したがって、調性分析部8としては、楽節
がとり得る複数の調の可能性を考慮して、複数の調を楽
節の調の候補として判定できることがのぞましい。適合
度評価部26は、マッチング部24の結果を受けて楽節
の音符のなかでパターン適合のラベルが付いた音符の割
合を算出してコード進行の適合度を評価する。
Therefore, it is desirable that the tonality analysis unit 8 can determine a plurality of tones as candidates for the tones of the passage in consideration of the possibility of the plurality of tones that the passage can take. The conformity evaluation unit 26 receives the result of the matching unit 24, calculates the proportion of the notes with the pattern conformity label among the notes of the passage, and evaluates the conformity of the chord progression.

【0015】決定部28はCPDB12から検索したコ
ード進行のなかで最も適合度の高いコード進行を楽節の
コード進行として決定する。決定したコード進行を参照
番号30に示す。「決定CP1」は「楽節1」のコード
進行、……「決定CPn」は「楽節n」に対するコード
進行を表わしている。以上の説明からわかるように、メ
ロディ分割部4は、楽節の調性分析部8と組み合わせに
よって、メロディに含まれる転調の検出を可能とするも
のである。
The deciding unit 28 decides the chord progression having the highest matching degree among the chord progressions retrieved from the CPDB 12 as the chord progression of the passage. The chord progression determined is shown at reference numeral 30. "Decision CP1" represents the chord progression of "Sentence 1", ... "Decision CPn" represents the chord progression of "Sentence n". As can be seen from the above description, the melody dividing unit 4 is capable of detecting the modulation included in the melody in combination with the tonality analyzing unit 8 of the passage.

【0016】また、メロディ分割部4の結果である各楽
節にCPDB12からのコード進行(意味的にまとまっ
たコードのパターン)を割り当てることにより、従来の
ように1つずつコードをメロディの各部に割り当てる方
式では得られない、和音付けが可能である。
Also, by assigning chord progressions (semanticly organized chord patterns) from the CPDB 12 to each passage resulting from the melody dividing section 4, one chord is assigned to each section of the melody as in the conventional case. It is possible to add chords that cannot be obtained with the method.

【0017】図2は実施例に係る音楽装置(ここでは電
子鍵盤楽器を構成している)のハード構成のブロック図
である。CPU40はプログラムROM50に記憶され
るプログラムに従って動作してシステム全体を制御す
る。鍵盤60は通常の電子鍵盤楽器に使用される鍵盤と
同様の構成であり、音楽の演奏に使用される。操作パネ
ル70には、リズム(伴奏)スタイルを指定するための
リズム選択キー71、演奏速度を指定するテンポボリウ
ム72、メロディの分割位置を指示入力するためのフィ
ルインキー73、鍵盤60で演奏するメロディを音楽装
置に記録することを要求するメロディ記録キー74、記
録の終了を指示するストップキー75、記録したメロデ
ィのアレンジ(和音付、伴奏付)を要求するためのアレ
ンジキー76、アレンジしたものの演奏を指示するプレ
イキー77、演奏の停止を指示するストップキー78、
その他、音楽装置の操作に必要なキー、スイッチ類が設
けられる。
FIG. 2 is a block diagram of a hardware configuration of the music apparatus according to the embodiment (which constitutes an electronic keyboard instrument here). The CPU 40 operates according to a program stored in the program ROM 50 to control the entire system. The keyboard 60 has the same structure as a keyboard used for a normal electronic keyboard musical instrument and is used for playing music. On the operation panel 70, a rhythm selection key 71 for designating a rhythm (accompaniment) style, a tempo volume 72 for designating a playing speed, a fill-in key 73 for inputting a division position of a melody, and a melody played on the keyboard 60. A melody recording key 74 for requesting recording of the recorded melody, a stop key 75 for instructing the end of recording, an arrange key 76 for requesting an arrangement (with chords, accompaniment) of the recorded melody, and performance of the arranged one. Play key 77 for instructing, stop key 78 for instructing to stop playing,
In addition, keys and switches necessary for operating the music device are provided.

【0018】データROM80は調性判定に使用される
音の結合度テーブル81、和音付けにおいて使用される
コード進行データベース(CPDB)82、コードとテ
ンションの標準ピッチクラスセット(PCS)メモリ8
3、メロディパターンルールベース(MPRB)84、
各種のスタイルのリズムパターンを記憶するリズムデー
タメモリ85、各種スタイルの伴奏パターンを記憶する
伴奏パターンデータメモリ86、その他、所要の固定デ
ータを記憶する。
The data ROM 80 is a tone coupling table 81 used for tonality determination, a chord progression database (CPDB) 82 used for chording, and a standard pitch class set (PCS) memory 8 for chords and tensions.
3, melody pattern rule base (MPRB) 84,
A rhythm data memory 85 for storing rhythm patterns of various styles, an accompaniment pattern data memory 86 for storing accompaniment patterns of various styles, and other necessary fixed data are stored.

【0019】RAM90は鍵盤60で演奏されたメロデ
ィ(入力メロディ)を記憶する入力メロディメモリ9
1、入力メロディを量子化(音符化)した量子化メロデ
ィを記憶する量子化メロディメモリ92、分割メロディ
(楽節)の音符の結合ヒストグラムメモリ93、各楽節
の主音の候補を記憶するためのキーエントリテーブル9
4、楽節の分類データを記憶する分類データメモリ9
5、コード進行の適合度を記憶するCP適合度メモリ9
6、各楽節のコード進行の候補を記憶するCPエントリ
テーブル97を含む。
The RAM 90 is an input melody memory 9 for storing the melody (input melody) played on the keyboard 60.
1. Quantized melody memory 92 for storing a quantized melody obtained by quantizing (meshing) an input melody, combined histogram memory 93 of notes of divided melody (sentence), key entry for storing a candidate for a tonic of each sence Table 9
4. Classification data memory 9 for storing classification data of passages
5. CP fitness memory 9 for storing chord progress fitness
6. Includes a CP entry table 97 that stores chord progression candidates for each passage.

【0020】表示装置100は操作パネル上に配置され
るLED群、液晶パネルを含む。音源110はCPU4
0の制御の下に楽音信号を発生する。サウンドシステム
120は、アンプ、スピーカを含み、楽音信号を外部に
出力する。
The display device 100 includes an LED group arranged on the operation panel and a liquid crystal panel. Sound source 110 is CPU4
A tone signal is generated under the control of 0. The sound system 120 includes an amplifier and a speaker, and outputs a musical sound signal to the outside.

【0021】図3は鍵盤60から実時間で演奏されるメ
ロディをRAM90の入力メロディメモリ91に記録す
るルーチンのフローチャートである。メロディデータの
記録フォーマットを図4に示す。図示のように1つのメ
ロディデータは時間バイトTとコマンドバイトCDの2
バイトで構成される。時間バイトTはイベント間の時間
差を記憶する。コマンドバイトCDはイベントを記憶す
る。イベントには、鍵盤操作による押鍵(ノートオン)
イベントと離鍵(ノートオフ)イベント、フィルインキ
ー73操作によるフィルインイベント(CD=F0)、
タイムオーバーによるタイムオーバーイベント(F
E)、ストップキー75操作によるエンドイベント(F
F)がある。ノートオンとオフのイベントバイトのう
ち、下位5ビットはノートナンバー(音高)を表わす。
ビット6は“0”で、MSBはオンイベントなら
“0”、オフイベントなら“1”となる。
FIG. 3 is a flow chart of a routine for recording the melody played in real time from the keyboard 60 in the input melody memory 91 of the RAM 90. The recording format of the melody data is shown in FIG. As shown in the figure, one melody data consists of a time byte T and a command byte CD.
Composed of bytes. The time byte T stores the time difference between events. The command byte CD stores the event. For events, key presses (note on) by keyboard operation
Event and key release (note off) event, fill-in event by operating the fill-in key 73 (CD = F0),
Time-over event (F
E), end event by operating the stop key 75 (F
There is F). Of the note-on and off-event bytes, the lower 5 bits represent the note number (pitch).
Bit 6 is "0", and the MSB is "0" for an on event and "1" for an off event.

【0022】フィルインキー73はメロディの分割位置
を演奏者が指示入力するのに用いられる(なお、アレン
ジ演奏においては、フィルイン演奏を行うのに使用され
る)。メロディ記録キー74が押されると、CPU40
は図3に示す実時間メロディの記録ルーチンを実行す
る。初期化R1で入力メロディメモリ91の領域をRA
M90上に割り当て、長さカウンタLENGTHをクリ
アする。次にR2でリズムをスタートさせる。この結
果、図示しないリズム演奏ルーチンにより、リズムパタ
ーンデータメモリ84、音源110を介して指定スタイ
ルのリズムが演奏される。メロディ演奏者は、このよう
なリズムに合わせてメロディを演奏することになる。
The fill-in key 73 is used by the performer to input and input the division position of the melody (in the arrangement performance, it is used to perform the fill-in performance). When the melody recording key 74 is pressed, the CPU 40
Executes the real-time melody recording routine shown in FIG. The area of the input melody memory 91 is RA by initialization R1
Allocate on M90 and clear the length counter LENGTH. Then start the rhythm with R2. As a result, a rhythm of a designated style is played through the rhythm pattern data memory 84 and the sound source 110 by a rhythm playing routine (not shown). The melody player will play the melody in accordance with such a rhythm.

【0023】キー走査R3で鍵盤60、フィルインキー
73、ストップキー75の状態を読み込む。計測単位時
間(テンポに依存する音楽分解能時間)の経過後(R
5)、R20でフィルインキー73が押されたかどうか
を調べ、押されていればR21〜R23に示すフィルイ
ンデータの書込処理(時間バイトTへの長さLENGT
Hの書込、コマンドバイトCDへのフィルインフラグの
書込、長さカウンタLENGTHのクリア)を行う。
The states of the keyboard 60, the fill-in key 73, and the stop key 75 are read by key scanning R3. After the elapse of the measurement unit time (tempo-dependent music resolution time) (R
5) At R20, it is checked whether or not the fill-in key 73 is pressed, and if it is pressed, the fill-in data write processing shown in R21 to R23 is performed (length LENGT to time byte T).
H is written, the fill-in flag is written to the command byte CD, and the length counter LENGTH is cleared.

【0024】続いて、R6で鍵状態の変化の有無を調べ
る。鍵状態が変化していれば、時間バイトTに長さLE
NGTHを書き込み(R7)、押鍵か離鍵かをチェック
する(R8)。押鍵なら、コマンドバイトCD中にノー
トオンフラグを書き込み(R10)、離鍵ならコマンド
バイトCD中にノートオフフラグを書き込み(R9)。
そして、コマンドバイトCD中に押鍵または離鍵にかか
るノートナンバーを書き込み(R11)、長さカウンタ
LENGTHをクリアする(R12)。その後、計測単
位時間の経過待ちループR3〜R5のエントリであるキ
ー走査R3に戻る。
Next, at R6, it is checked whether or not the key state has changed. If the key state has changed, length LE in time byte T
NGTH is written (R7), and it is checked whether the key is pressed or released (R8). If the key is pressed, the note-on flag is written in the command byte CD (R10), and if the key is released, the note-off flag is written in the command byte CD (R9).
Then, the note number corresponding to the key depression or key release is written in the command byte CD (R11), and the length counter LENGTH is cleared (R12). After that, the process returns to the key scan R3 which is the entry of the loop waiting for the passage of the measurement unit time R3 to R5.

【0025】鍵状態に変化がなければ、LENGTHが
255(FF)に達しているかどうかを調べ、255に
達してなければ、長さカウンタLENGTHをインクリ
メントして(R14)キー走査R3に戻る。達していれ
ば、時間バイトTに255を書き込み(R15)、コマ
ンドバイトCDにタイムオーバーフラグを書き込み(R
16)、LENGTHをクリアして(R17)、キー走
査R3に戻る。
If there is no change in the key state, it is checked whether LENGTH has reached 255 (FF), and if it has not reached 255, the length counter LENGTH is incremented (R14) and the process returns to the key scan R3. If it has reached, 255 is written in the time byte T (R15), and the time over flag is written in the command byte CD (R15).
16), clear LENGTH (R17), and return to key scan R3.

【0026】メロディ演奏が終ったら演奏者はストップ
キー75を押す。これは、R4で検出される。これに対
し、時間バイトTにLENGTHを書き込み(R1
8)、コマンドバイトCDにエンドフラグを書き込んで
(R19)、実時間メロディの記録処理を終える。この
ようにして鍵盤60で演奏したメロディが入力メロディ
メモリ91に記録される。
When the melody performance is over, the player presses the stop key 75. This is detected at R4. On the other hand, write LENGTH to the time byte T (R1
8) Then, the end flag is written in the command byte CD (R19), and the real-time melody recording process is completed. In this way, the melody played on the keyboard 60 is recorded in the input melody memory 91.

【0027】次に、アレンジキー76を操作すると、入
力メロディメモリ91に記憶されたメロディに対するア
レンジ処理が実行される。アレンジ処理の前処理とし
て、入力メロディは量子化(音符化)され、量子化メロ
ディとして量子化メロディメモリ92に移される。
Next, when the arrange key 76 is operated, the arrangement process for the melody stored in the input melody memory 91 is executed. As a pre-process for the arranging process, the input melody is quantized (sounded) and transferred to the quantized melody memory 92 as a quantized melody.

【0028】量子化メロディメモリ92のフォーマット
を図5に示す。図示のように、量子化メロディメモリ9
2において1つの音符レコードはピッチクラスバイト、
長さバイト、音高バイト、フラグバイトの4バイトで構
成される。ピッチクラスバイトは通常、音符(ノート)
のピッチクラス(C〜Bのいずれかを00〜CBで表わ
す)を表わす。値0Fのピッチクラスバイトは休符を表
わす。値0Eのピッチクラスバイトはタイを表わす。長
さバイトは音符の長さ(量子化した音符長)を表わす。
音高バイトは音符のピッチを表わす。フラグバイトは、
フィルインや楽節終了を示すフラグとして用いられる。
フィルインのみのときは80、楽節終了のみのときは0
1、両方あるときは81、いずれもないときは80の値
をとる。量子化処理を完了した段階では、楽節終了フラ
グを除く情報が量子化メロディメモリ92に記憶され
る。楽節終了フラグは後述するメロディ分割処理におい
て書き込まれる。楽節終了フラグから次の楽節終了フラ
グまでが分割メロディ(楽節)を表わす。
The format of the quantized melody memory 92 is shown in FIG. As shown, the quantization melody memory 9
One note record in 2 is a pitch class byte,
It consists of 4 bytes: length byte, pitch byte, and flag byte. Pitch class bytes are usually notes
Pitch class (any one of CB is represented by 00 to CB). A pitch class byte with a value of 0F represents a rest. A pitch class byte with a value of 0E represents a tie. The length byte represents the length of a note (quantized note length).
The pitch byte represents the pitch of a note. The flag byte is
It is used as a flag to indicate the fill-in or end of a phrase.
80 for fill-in only, 0 for end of passage only
The value is 1, when both are present, the value is 81, and when neither is present, the value is 80. At the stage when the quantization process is completed, information excluding the phrase end flag is stored in the quantized melody memory 92. The passage end flag is written in the melody division process described later. A segment melody (a phrase) is shown from a phrase end flag to a next phrase end flag.

【0029】量子化処理の次に、メロディ全体に対する
調性判定処理が行われる。図6〜図8に調性判定処理ル
ーチンのフローを示す。調性判定処理ではメロディの各
音符についてそのまわりの音符との間で形成されるモー
ションを分析し、その分析結果に基づいて複数の主音候
補を生成する。モーションの分析のために図9に示すよ
うな結合度テーブル81が利用される。結合度テーブル
81は隣り合う2音間の結合度を2音間に形成される音
高差(音程)の関数として記憶している。
After the quantization process, a tonality determination process is performed on the entire melody. 6 to 8 show the flow of the tonality determination processing routine. In the tonality determination process, the motion formed between each note of the melody and the surrounding notes is analyzed, and a plurality of tonic candidates are generated based on the analysis result. A coupling degree table 81 as shown in FIG. 9 is used for analyzing the motion. The coupling degree table 81 stores the coupling degree between two adjacent notes as a function of the pitch difference (pitch) formed between the two notes.

【0030】調性判定処理ルーチンの初期化D1で、量
子化メロディの先頭(最初の音符レコード)をロケート
し、キーエントリ94をクリアする。D2で現音符と前
後の音符の音高を読み、D3で現音符の音長LENを読
み、D4で現音符のピッチクラスPCを読む。そして、
D5で前音符と現音符との音高差(前音程)fを算出
し、D6で現音符を次音符との音高差(後音程)tを算
出する。つづいて、D7で前音程fと後音程tにより結
合度テーブル81をルックアップして前結合度JOIN
T(f)と、後結合度1/JOINT(t)を得、これ
に、音長データLENを用いて、現音符の結合度CPL
を、 CPL=LEN×JOINT(f)/JOINT(t) 算出する。そしてこの結合度E、結合ヒストプラム93
における現音符のピッチクラスに対する要素W(PC)
に加える。以上の処理を、メロディのすべての音符につ
いて繰り返し実行する(D8、D9)。この結果、結合
ヒストプラムメモリ93には、メロディの各ピッチクラ
スについて結合度の累算値が記憶される。
At the initialization D1 of the tonality determination processing routine, the head (first note record) of the quantized melody is located and the key entry 94 is cleared. D2 reads the pitches of the current note and the preceding and following notes, D3 reads the note length LEN of the current note, and D4 reads the pitch class PC of the current note. And
At D5, a pitch difference (previous pitch) f between the previous note and the current note is calculated, and at D6, a pitch difference (rear pitch) t between the current note and the next note is calculated. Subsequently, in D7, the coupling degree table 81 is looked up by the front pitch f and the rear pitch t, and the front coupling degree JOIN
T (f) and the post-coupling degree 1 / JOINT (t) are obtained, and using this, the note length data LEN is used to obtain the coupling degree CPL of the current note.
Is calculated as CPL = LEN × JOINT (f) / JOINT (t). And this degree of coupling E, coupling histoplum 93
Element W (PC) for the pitch class of the current note in
Add to. The above process is repeatedly executed for all the notes of the melody (D8, D9). As a result, the combined hist plum memory 93 stores the accumulated value of the combined degree for each pitch class of the melody.

【0031】次に、結合ヒストプラムメモリ93を利用
して、メロディの第1の主音候補を決定する(D10〜
D15)。まず、D10でトニックのピッチクラスカウ
ンタiと最大値maxを“0”に初期化する。D11で
トニック(主音)をピッチクラスiとしたときのダイア
トニックスケールの評価値pointを次式に示すよう
に結合ヒストプラムメモリ93を用いて算出する。 point=W[(i+0)mod12] +W[(i+2)mod12] +W[(i+4)mod12] +W[(i+5)mod12] +W[(i+7)mod12] +W[(i+9)mod12] +W[(i+11)mod12] この評価値の算出はすべてのピッチクラスiのトニック
について行なわれる(D15、D16)。最も高い評価
値を与えたピッチクラスiをメロディの第1の主音候補
keyとしてキーエントリ94内にストアする(D1
2、D13)。また、最大の評価値maxもストアする
(D14)。
Next, the combined histoplum memory 93 is utilized to determine the first tonic candidate of the melody (D10-D10).
D15). First, at D10, the tonic pitch class counter i and the maximum value max are initialized to "0". An evaluation value point of the diatonic scale when the tonic (tonal tone) is set to the pitch class i in D11 is calculated using the combined histoplasm memory 93 as shown in the following equation. point = W [(i + 0) mod12] + W [(i + 2) mod12] + W [(i + 4) mod12] + W [(i + 5) mod12] + W [(i + 7) mod12] + W [(i + 9) mod12] + m [d12]) ] The evaluation value is calculated for all tonics of pitch class i (D15, D16). The pitch class i that gives the highest evaluation value is stored in the key entry 94 as the first tonic candidate key of the melody (D1).
2, D13). The maximum evaluation value max is also stored (D14).

【0032】次にD17〜D24において、最大の評価
値maxの90%以上の評価値を与えたピッチクラスに
ついても第2、第3……の主音候補cand key
[j]としてキーエントリ94内にストアする。メロデ
ィの全体に対する調性判定処理の結果は、後述する楽節
の調性判定処理において、最初と最後の楽節の調性判定
に利用される。なお、メロディの全体に対する調性判定
処理は、楽節の調性判定処理の前処理であり、所望であ
れば、省略することができる。メロディ全体の調性判定
処理の終了後、メロディを楽節に分割するメロディ分割
処理が行なわれる。
Next, in D17 to D24, the second and third tonic candidate cand key candidates are also applied to pitch classes to which an evaluation value of 90% or more of the maximum evaluation value max is given.
Store as [j] in the key entry 94. The result of the tonality determination processing for the entire melody is used for the tonality determination of the first and last syllables in the tonality determination processing of the passages described later. Note that the tonality determination process for the entire melody is a pre-process of the tonality determination process of the passage, and can be omitted if desired. After completion of the tonality determination process for the entire melody, a melody division process for dividing the melody into passages is performed.

【0033】メロディ分割処理のフローを図10に示
す。このメロディ分割処理ルーチンは、(A)メロディ
がアウフタクト(auftact)で始まるかどうかを
検査する機能、(B)4小節のメロディ部分を楽節とし
て検出する機能、(C)メロディのなかから楽節終了音
符(ケーデンスノート)を検出する機能、(D)フィル
インフラグを楽節の分割ポイントとして解釈する機能、
を備えている。
The flow of the melody division processing is shown in FIG. This melody division processing routine includes (A) a function for checking whether or not the melody starts with an aftact, (B) a function for detecting a melody portion of four measures as a passage, and (C) a melody end note from the melody. (Cadence note) detection function, (D) fill-in flag interpretation as passage division points,
Is equipped with.

【0034】例えば、図11の譜例(A)のメロディに
おける矢印151で示されるGの音符はアウフタクト音
符として検出される。その結果Gの音符の次の小節線1
52が第1楽節と第2楽節との分割点となる。また、譜
例(B)において、矢印153で示される音符C、矢印
155で示される音符Aはそれぞれケーデンスノートと
して検出される。その結果、ケーデンスノートCの次の
小節線154が第1と第2楽節との分割点となり、ケー
デンスノートAの次の小節線156が第2と第3楽節と
の分割点となる。いいかえると、第1小節が第1楽節、
第2と第3小節が第2楽節、第4小節以降が第3楽節と
なる。譜例(C)の場合、4小節の長さのメロディ部分
が検出され、小節線157が第1楽節と第2楽節との分
割ポイントとなる。
For example, a G note indicated by an arrow 151 in the melody of the musical score (A) of FIG. 11 is detected as an aftact note. As a result, the bar line 1 next to the G note
52 is the division point between the first and second verses. In the musical score (B), the note C indicated by the arrow 153 and the note A indicated by the arrow 155 are detected as cadence notes. As a result, the bar line 154 next to the cadence note C becomes the dividing point between the first and second verses, and the bar line 156 next to the cadence note A becomes the dividing point between the second and third verses. In other words, the first measure is the first movement,
The second and third measures are the second, and the fourth and subsequent measures are the third. In the case of the musical score (C), a melody part having a length of 4 bars is detected, and the bar line 157 serves as a division point between the first and second verses.

【0035】メロディ分割処理ルーチンの詳細を述べる
と、先ず初期化E1で量子化メロディの先頭をロケート
する。次にE2でメロディがアウフタクトで始まるかど
うかを判定する。これは、メロディの先頭の休符の長さ
で判定する。即ち、先頭の休符が1小節の半分以上あれ
ばアウフタクト開始メロディとして第1小節を第1楽節
として分割する(E9、E10)。
To describe the details of the melody division processing routine, first, at the initialization E1, the head of the quantized melody is located. Next, at E2, it is determined whether or not the melody begins with an overact. This is determined by the rest length at the beginning of the melody. That is, if the rest at the beginning is more than half of one measure, the first measure is divided as the first melody as the aftact start melody (E9, E10).

【0036】E3で楽節の長さカウンタall−len
を“0”に初期化し、ループE4〜E8のエントリE4
で音符長を読み、E5でそれをall−lenに足し込
む。音符が最初の音符でなければ(E6)、E7でal
l−lenが4小節を超えたかどうかを判定する。4小
節を超えていれば、E21で、p−len=4により、
楽節の長さとして4小節を設定する。E8ではケーデン
スノートかどうかを判定する。音符の長さ(ここでは、
音符から次の音符までの長さである。したがって音符の
次に休符がくる場合には休符の長さも加えたものにな
る。)が1小節の3/4以上であれば、ケーデンスノー
トと判定する。ケーデンスノートの検出に続く、E10
〜E13では、分割点を求めている。即ち、ケーデンス
ノートが終了する位置last−lenが小節内の半分
以上なら、その小節の終りをメロディの分割点として楽
節長p−lenを決め(E10、E13)、小節内の半
分以下で終っていればその小節より1つ前の小節の終り
をメロディ分割点として楽節長p−lenを定める(E
10)。
At E3, the phrase length counter all-len
Is initialized to “0”, and entry E4 of loops E4 to E8
Read the note length with and add it to all-len with E5. If the note is not the first note (E6), E7 al
It is determined whether l-len exceeds 4 bars. If it exceeds 4 bars, at E21, p-len = 4,
Set 4 measures as the length of the passage. At E8, it is determined whether it is a cadence note. Note length (here,
It is the length from one note to the next. Therefore, when a rest comes after a note, the rest length is also added. If) is 3/4 or more of one bar, it is determined as a cadence note. Following detection of cadence note, E10
At E13, division points are obtained. That is, if the last-len position where the cadence note ends is more than half of the measure, the end length of the measure is used as the melody division point to determine the p-lens length (E10, E13), and the end of the measure is less than half. If this is the case, the end of the measure immediately before that measure is used as the melody division point to determine the phrase length p-len (E
10).

【0037】E16では、p−lenで示されるメロデ
ィ部分内にフィルインがあるかどうかチェックする。フ
ィルインがあれば、フィルインフラグの位置に応じてメ
ロディ分割点を決める。即ち、フィルインフラグが小節
の3/4以前に立っておれば、その小節より1つ前の小
節の終りをメロディ分割点として楽節長p−lenを定
め、小節の3/4以降に立っておれば、その小節の終り
をメロディ分割点として楽節長p−lenを定める。以
上、フィルイン、ケーデンスノート、アウフタクト、ま
たは4小節の経過の検出に応じてメロディ分割点が決め
られる。そこで、E16ではメロディ分割点に相当する
量子化メロディメモリ92の位置に楽節終了フラグを書
き込むことにより、その位置で楽節が終了することを示
す。
At E16, it is checked whether or not there is a fill-in in the melody part indicated by p-len. If there is a fill-in, the melody division point is determined according to the position of the fill-in flag. In other words, if the fill-in flag stands before 3/4 of a bar, the measure length p-len is set with the end of the bar immediately before that bar as the melody division point, and stands at 3/4 or later of the bar. For example, the phrase length p-len is determined with the end of the measure as the melody dividing point. As described above, the melody division point is determined according to the detection of fill-in, cadence note, outfract, or progress of four measures. Therefore, at E16, the phrase end flag is written in the position of the quantized melody memory 92 corresponding to the melody division point, indicating that the phrase ends at that position.

【0038】E17とE18は楽節の調性判定処理であ
る。E16までで現楽節が決まったので、E17では、
前楽節(ただし、現楽節が最初の楽節のときはメロディ
全体)の調性判定結果を参照して、現楽節の調がそれと
同一になるかどうかを調べる。これは、現楽節のピッチ
内容が前楽節(またはメロディ全体)の主音から始まる
ダイアトニックスケールのPCSに含まれるかどうかを
みることで行う。含まれていれば、現楽節に対するキー
エントリ(第1、第2……の主音候補のテーブル)を前
楽節(またはメロディ全体)のものと同一にする。含ま
れていなければ、E18で現楽節に対して調性判定を行
う。これは、メロディ全体について述べた調性判定処理
(図6〜図8)と同じ処理を現楽節に対して行うことに
より達せられる。E20でメロディが終ったかどうかを
調べ、終ってなければ、E2に戻って、次の楽節の決
定、及び調性分析を繰り返す。以上の処理により、メロ
ディは、複数の楽節に分割され、量子化メロディメモリ
92(図5)において各楽節の終了位置には楽節終了フ
ラグが立てられる。また、キーエントリテーブル94に
は各楽節の主音候補がエントリされる。
E17 and E18 are the tonality determination processing of the passage. Since E16 has decided the current verse, at E17,
Refer to the tonality judgment result of the previous syllable (however, the whole melody when the current syllable is the first syllable) to see if the key of the current syllable is the same. This is done by looking at whether the pitch content of the current syllable is included in the PCS of the diatonic scale starting from the tonic of the previous syllable (or the entire melody). If it is included, the key entry (the table of the tonic candidates of the first, second, ...) For the current syllable is made the same as that of the previous syllable (or the entire melody). If it is not included, the tonality is judged for the present syllable in E18. This can be achieved by performing the same processing as the tonality determination processing (FIGS. 6 to 8) described for the entire melody on the current syllable. At E20, it is checked whether or not the melody ends, and if not, the process returns to E2 to repeat the determination of the next phrase and the tonality analysis. By the above processing, the melody is divided into a plurality of syllables, and a syllable end flag is set at the end position of each syllable in the quantized melody memory 92 (FIG. 5). Further, the key entry table 94 is entered with tonic candidates of each passage.

【0039】次にアレンジ処理は和音付(Melody Harm
onization)処理に進む。図12に和音付処理の概略フ
ローを示す。この処理の目的は各楽節に所望のコード進
行を割り当てることである。まず、初期化1(M1)で
量子化メロディ(既に楽節に分割されている)の最初の
楽節をロケートする。初期化2(M2)でCPDB82
の最初のコード進行をロケートし、キーエントリテーブ
ル94から最初の楽節の第1の主音(キー)候補を読み
込む。属性テストM3ではCPDB82から検索したコ
ード進行の属性(リズムスタイルと長さ)を検査する。
不合格(NG)ならCPDB82の次のコード進行(C
P)をロケートして(M8)、属性テストM3に戻る。
合格(OK)なら、モーション、音種分類M4に進む。
Next, the arrangement process is performed with chords (Melody Harm
onization) processing. FIG. 12 shows a schematic flow of chord addition processing. The purpose of this process is to assign each chord a desired chord progression. First, in initialization 1 (M1), the first phrase of the quantized melody (already divided into phrases) is located. CPDB82 with initialization 2 (M2)
The first chord progression of the first chord is read and the first tonic (key) candidate of the first passage is read from the key entry table 94. In the attribute test M3, the attributes (rhythm style and length) of the chord progression retrieved from the CPDB 82 are inspected.
If it fails (NG), the next chord progression in CPDB 82 (C
P) is located (M8), and the process returns to the attribute test M3.
If it passes (OK), the process proceeds to motion / tone type classification M4.

【0040】モーション、音種分類M4では現楽節の各
音符のモーションと音種を現主音候補と検索したコード
進行とに基づいて分類し、分類データ95を作成する。
マッチングM5では分類データ95をMPRB84に記
憶されるメロディパターンのルールによって検査し、メ
ロディパターンに適合する楽節の音符にパターン適合の
ラベルを付ける。判定M6では楽節の音符のなかでパタ
ーン適合のラベルが付いた音符の割合をCP適合度とし
て評価し、比較的高い適合度を与えたコード進行を楽節
のコード進行候補としてCPエントリテーブル97にス
トアする。
In the motion / tone type classification M4, the motion of each note in the current syllable and the tone type are classified based on the current tonic candidate and the retrieved chord progression, and classification data 95 is created.
In the matching M5, the classification data 95 is inspected according to the rule of the melody pattern stored in the MPRB 84, and the note of the syllable that matches the melody pattern is labeled as pattern matching. In the judgment M6, the proportion of the notes with the pattern matching label among the musical notes of the passage is evaluated as the CP matching degree, and the chord progression having a relatively high matching degree is stored in the CP entry table 97 as the chord progression candidate of the passage. To do.

【0041】M7でCPDB82の終りでなければ、C
PDB中の次のコード進行をロケートし(M8)、M3
に戻る。ループM3〜M8は、キーエントリテーブル9
4内の主音候補を主音としたときの楽節について、CP
DB82の全てのコード進行を検査するまで繰り返され
る。次にM9でキーエントリテーブル94に現楽節の主
音候補が残っているかどうかを調べ、残っていれば、テ
ーブル94から次の主音候補を選び(M10)、再びC
PDB82の先頭をロケートし、ループ処理M3〜M8
に戻る。このようにして、現楽節のすべての主音候補に
ついて、CPDB82のすべてのコード進行を検査す
る。
If it is not the end of CPDB82 in M7, C
Locate next chord progression in PDB (M8), M3
Return to. The loop M3 to M8 includes the key entry table 9
Regarding the passage when the tonic candidate in 4 is the tonic, CP
Repeated until all chord progressions in DB 82 have been examined. Next, in M9, it is checked whether or not there are any tonic candidates of the current syllable in the key entry table 94. If any, the next tonic candidate is selected from the table 94 (M10), and C is again selected.
Locate the top of PDB82 and loop processing M3 to M8
Return to. In this way, all chord progressions in the CPDB 82 are checked for all tonic candidates in the current syllable.

【0042】M11で現楽節のコード進行を決定する。
これは、例えば、CPエントリテーブル97にエントリ
した現楽節のコード進行候補のなかで最も高いCP適合
度をもつコード進行を選択することで行える。なお、コ
ード進行の決定ないし選択は、後述するようにアレンジ
の演奏要求の都度、行うようにしてもよい。M12でコ
ード進行を割り当てるべき楽節が残っているかどうか調
べ、残っていれば、次楽節をロケートし(M13)、初
期化2(M2)に戻って処理を続ける。このようにして
和音付処理ルーチンは、量子化メロディメモリ92にあ
るすべての楽節に対して所望のコード進行を割り当て
る。
At M11, the chord progression of the current verse is determined.
This can be done, for example, by selecting the chord progression having the highest CP conformity among the chord progression candidates of the current phrase entered in the CP entry table 97. The chord progression may be determined or selected each time an arrangement performance request is made, as will be described later. In M12, it is checked whether or not there are any syllables to which the chord progression should be assigned. If there are any, the next syllable is located (M13), and the process returns to the initialization 2 (M2) to continue the processing. In this way, the chord added processing routine assigns a desired chord progression to all the passages in the quantized melody memory 92.

【0043】図13にコード進行データベース(CPD
B)82のフォーマットを示す。CPDB82におい
て、各コード進行のレコードは、属性としてのリズム属
性とコード進行の長さ、本体としてのコードデータの
列、及び終了マークから成る。各コードデータは、ルー
ト、タイプ及び長さの情報をもっている。図14にメロ
ディパターンルールベース(MPRB)84のフォーマ
ットを示す。MDRB84において各メロディパターン
のコードは、リズム属性、メロディパターンデータの
列、及び終了マークから成る。メロディパターンデータ
は音符の機能を表わしたものであり、音種とモーション
タイプから成る。
FIG. 13 shows the chord progression database (CPD
B) shows the format of 82. In the CPDB 82, each chord progression record consists of a rhythm attribute as an attribute, a chord progression length, a chord data string as a body, and an end mark. Each code data has information of route, type and length. FIG. 14 shows the format of the melody pattern rule base (MPRB) 84. In the MDRB 84, the code of each melody pattern consists of a rhythm attribute, a sequence of melody pattern data, and an end mark. The melody pattern data represents the function of a note and is composed of a note type and a motion type.

【0044】図15に属性テストM3(図12)のフロ
ーを示す。F1で指定リズムスタイルを読む。ここに指
定リズムスタイルとは実時間メロディの記録(図3)に
おいて鍵盤60でのメロディ演奏を助けるために自動演
奏されたリズムのスタイルである。F2でCPDB82
からコード進行(CP)を読み、F3でコード進行のリ
ズム属性を指定リズムと比較する。一致すれば、F4で
楽節の長さを読み、F5で楽節の長さをコード進行の長
さと比較する、一致すれば、属性テストルーチンM3は
OKを返す。そうでなければ属性テストルーチンM3に
NGを返す。このようにして属性テストルーチンM3
は、CPDB82から楽節の長さと指定リズムのスタイ
ルに合うコード進行を検索する。
FIG. 15 shows a flow of the attribute test M3 (FIG. 12). Read the specified rhythm style with F1. Here, the designated rhythm style is a style of the rhythm automatically played to assist the melody playing on the keyboard 60 in the recording of the real-time melody (FIG. 3). CPDB82 in F2
The chord progression (CP) is read from and the rhythm attribute of the chord progression is compared with the designated rhythm in F3. If they match, the length of the phrase is read at F4, and the length of the phrase is compared with the length of the chord progression at F5. If they match, the attribute test routine M3 returns OK. Otherwise, it returns NG to the attribute test routine M3. In this way, the attribute test routine M3
Searches the chord progression that matches the length of the phrase and the style of the designated rhythm from the CPDB 82.

【0045】モーション、音種分類ルーチンM4(図
4)のフローを図16と図17に示す。このルーチンの
目的は楽節の各音符の音種とモーションを分類すること
である。分類結果は、分類データメモリ95にストアさ
れる。分類データメモリ95において各音符のレコード
は、音種バイト、モーションタイプバイト、及びパター
ンマッチング用のフラグバイトの計3バイトで構成され
る。このうち、フラグバイトへのフラグ書込は後のマッ
チングルーチンM5で実行される。音種は背景である調
とコードとによって意味づけられる音符の種類を表わ
し、コードトーン、スケールノート、テンションノー
ト、アヴェイラブルノート、アボイドノートのなかから
選択される。モーションタイプは次音符への音高の変化
の仕方によって分類され、終了モーション、同音進行、
上行跳躍進行、下行跳躍進行、上行順次進行、下行順次
進行のなかから選択される。
The flow of the motion / tone type classification routine M4 (FIG. 4) is shown in FIGS. The purpose of this routine is to classify the note type and motion of each note in the passage. The classification result is stored in the classification data memory 95. A record of each note in the classification data memory 95 is composed of a total of 3 bytes including a note type byte, a motion type byte, and a pattern matching flag byte. Of these, the flag writing to the flag byte is executed in the matching routine M5 described later. The tone type represents the type of note that is defined by the background key and chord, and is selected from chord tone, scale note, tension note, available note, and void note. Motion types are classified according to how the pitch changes to the next note, ending motion, homophone progression,
It is selected from among ascending jump progress, descending jump progress, ascending sequential progress, and descending sequential progress.

【0046】詳細に述べると、まず、初期化G1で分類
データメモリ95のクリア、先頭のロケート、検索した
コード進行の先頭ロケート、量子化メロディメモリ92
における現楽節の最初の音符のロケート、コードとメロ
ディの長さアキュームレータのクリアを行う。G2でコ
ード進行から次コードを読み出すべきかどうかをチェッ
クする。これは、分類対象の現音符と時間的に対応する
コード進行内のコードを決めるためのチェックであり、
具体的にはコード進行の先頭からの長さのアキュームレ
ータ(コード長)と楽節の先頭からの長さのアキューム
レータ(メロディ長)とを比較することで行われる。コ
ード長>メロディ長でなくなったらG6に進む前に、コ
ード進行から次のコードを読み、そのコードを用いて、
標準PCSメモリ83から、コードトーンPCSとテン
ションノートPCSを読み、そのコードの長さをコード
長のアキュームレータに加える(G3〜G5)。
More specifically, first, in the initialization G1, the classification data memory 95 is cleared, the head locate, the head locate of the retrieved chord progression, and the quantization melody memory 92.
Locating the first note of the current verse, clearing the chord and melody length accumulators. At G2 it is checked whether the next code should be read from the chord progression. This is a check to determine the chord in the chord progression that temporally corresponds to the current note to be classified,
Specifically, it is performed by comparing an accumulator having a length from the beginning of the chord progression (chord length) with an accumulator having a length from the beginning of the passage (melody length). If chord length> melody length is not satisfied, read the next chord from the chord progression and use that chord before proceeding to G6.
The chord tone PCS and tension note PCS are read from the standard PCS memory 83, and the chord length is added to the chord length accumulator (G3 to G5).

【0047】次にG6で現音符のピッチクラスPCを読
み、G7で現音符の長さを読み、G8でその長さをメロ
ディ長のアキュームレータに加える。次にPCが休符か
どうかを調べる(G9)。休符に対しては、分類処理は
行わないので、G35、G36を介して次音符をロケー
トし、G2に戻る。休符でなければ(音符なら)、現音
符のピッチクラスPC、現コードのルートROOT、現
主音候補KEYを用いて、 DROOT=(PC+24−KEY−ROOT)mod
12 DKEY=(PC+12−KEY)mod12 を求める(G10、G11)。
Next, the pitch class PC of the current note is read in G6, the length of the current note is read in G7, and the length is added to the melody length accumulator in G8. Next, it is checked whether the PC is a rest (G9). Since the rest is not classified, the next note is located via G35 and G36, and the process returns to G2. If it is not a rest (if it is a note), using the pitch class PC of the current note, the root ROOT of the current chord, and the current key candidate KEY, DROOT = (PC + 24-KEY-ROOT) mod
12 DKEY = (PC + 12-KEY) mod12 is calculated (G10, G11).

【0048】DROOTがコーントーンPCSの要素で
あれば現音符の音種(ノートタイプ)をコードトーンと
決定する(G12、G13)。DKEYがスケールノー
トPCS(主音Cのダイアトニックスケール)の要素で
あり(G14)、かつDROOTがテンションノートP
CSの要素であれば(G15)、音種をアヴェイラブル
ノートを決定する(G17)。DKEYがスケールノー
トPCSの要素であるがDROOTがテンションノート
PCSの要素でないなら、音種をスケールノートと決定
する(G19)。DKEYがスケールノートPCSには
含まれないがDROOTがテンションノートPCSの要
素であるなら(G16)、音種をテンションノートと決
定する(G18)。DKEYがスケールノートPCSの
要素でなく、またDROOTがテンションノートPCS
の要素でもないときは音種をアヴォイドノートと決定す
る(G20)。このようにして決定した音種を、分類デ
ータメモリ95の現音符レコードの音種バイトに書き込
む(G21)。
If DROOT is an element of the cone tone PCS, the note type of the current note is determined as the chord tone (G12, G13). DKEY is an element of scale note PCS (diatonic scale of tonic C) (G14), and DROOT is tension note P.
If it is an element of CS (G15), the note type is determined as an available note (G17). If DKEY is an element of scale note PCS but DROOT is not an element of tension note PCS, the note type is determined as a scale note (G19). If DKEY is not included in the scale note PCS but DROOT is an element of the tension note PCS (G16), the note type is determined to be the tension note (G18). DKEY is not an element of scale note PCS, and DROOT is tension note PCS
If it is not an element of, the note type is determined to be an void note (G20). The tone type thus determined is written in the tone type byte of the current note record of the classification data memory 95 (G21).

【0049】以上で現音符の音種分類処理が終了する。
次に現音符のモーションを分類する。即ち、現音符が楽
節の最終音符ならモーションタイプを終了モーションと
決定する(G22、G23)。最終音符でないなら、次
音符の音高NPと現音符の音高PPを読み現音符から次
音符への音高の変化幅(音程)NP−PPを算出する
(G24〜G26)。音程が“0”(同じ高さ)なら現
音符のモーションタイプを同音進行と決定する(G2
7)。音程が“1”か“2”(半音または全音の音高の
上昇)なら、モーションタイプを上行順次進行と決定す
る(G26、G28、G30)。音程が“2”より大き
いならモーションタイプを上行跳躍進行と決定する(G
26、G28、G29)。音程が“−1”か“−2”
(半音または全音の音高の下降)なら、モーションタイ
プを下行順次進行と決定する(G26、G31、G3
2)。音程が“−2”より小さい場合にはモーションタ
イプを下行跳躍進行と決定する(G26、G31、G3
3)。
This completes the note type classification process for the current note.
Next, the motion of the current note is classified. That is, if the current note is the last note of the passage, the motion type is determined to be the end motion (G22, G23). If it is not the last note, the pitch NP of the next note and the pitch PP of the current note are read to calculate the pitch change range (pitch) NP-PP from the current note to the next note (G24 to G26). If the pitch is “0” (same pitch), it is determined that the motion type of the current note is the same note progression (G2
7). If the pitch is "1" or "2" (the pitch of a semitone or a whole tone rises), the motion type is determined to be ascending sequential progression (G26, G28, G30). If the pitch is greater than “2”, the motion type is determined to be ascending jumping progress (G
26, G28, G29). The pitch is "-1" or "-2"
If it is (decrease of pitch of semitone or whole tone), it is determined that the motion type is descending sequential progression (G26, G31, G3).
2). When the pitch is smaller than "-2", the motion type is determined to be the downward jumping progress (G26, G31, G3).
3).

【0050】このようにして決定したモーションタイプ
を、分類データメモリ95の現音符のモーションバイト
に書き込む(G34)。そして、G35で楽節の終りに
達したかどうかをチェックし、達してなければ、次音符
をロケートし(G36)、G2に戻って分類処理を続け
る。このようにして、分類データメモリ95には、楽節
のすべての音符について、音種とモーションの分類結果
が記録されることになる。図18と図19にマッチング
処理ルーチンM5のフローを示す。このルーチンでは、
分類データメモリ95に書き込まれた楽節の音符分類デ
ータがMPRB84にあるメロディパターンに合うかど
うかを調べ、メロディパターンに一致した音符のフラグ
バイトにパターン適合フラグを立てる。
The motion type thus determined is written in the motion byte of the current note in the classification data memory 95 (G34). Then, in G35, it is checked whether or not the end of the phrase has been reached. If not, the next note is located (G36), and the process returns to G2 to continue the classification process. In this way, the classification data memory 95 stores the classification results of the sound type and the motion for all the notes of the passage. 18 and 19 show the flow of the matching processing routine M5. In this routine,
It is checked whether the note classification data of the passage written in the classification data memory 95 matches the melody pattern in the MPRB 84, and the pattern matching flag is set in the flag byte of the note matching the melody pattern.

【0051】初期化B1で分類データメモリ95の最初
の音符レコードをロケートする(ロケーション=LOC
1)。B2でMPRB84から指定リズムスタイルに属
する最初のメロディパターンをロケートする。B3でL
OC1が指す音符レコードの分類データを読む。楽節の
終り(B3で読んだデータ=終了マーク)でなく(B
4)、MPRB84の終りに達していなければ(B
5)、B6でLOC2にLOC1をセットする。これ
は、LOC1が指す分類データメモリ95上の音符をマ
ッチングのための先頭音符にすることを意味する。即
ち、以下ではこの先頭音符から始まる分類音符のパター
ンとMPRB84の各メロディパターンとの間で比較を
行う。即ち、B7でMPデータ(メロディパターンの音
符の音種とモーションタイプ)を読み、B8で分類デー
タ(分類音符の音種とモーションタイプ)を読む。音種
とモーションタイプの両方とも一致するなら(B9、B
11)、LOC2をインクリメントして次の分類音符を
ロケートし、検査しているメロディパターンの次の要素
をロケートし(B12)、B7に戻って両者の比較を続
ける。メロディパターンとの比較の途中で、音種、モー
ションタイプのどちらかでも不一致が検出されると、そ
のパターンは不適合とみて、MPRB84から指定リズ
ムに合う次のメロディパターンを検索し(B13)、B
5に戻る。
At the initialization B1, the first note record of the classification data memory 95 is located (location = LOC).
1). At B2, the first melody pattern belonging to the designated rhythm style is located from MPRB84. L at B3
Read the classification data of the note record pointed to by OC1. Not at the end of the passage (data read at B3 = end mark) (B
4) If the end of MPRB84 has not been reached (B
5) Set LOC1 to LOC2 at B6. This means that the note on the classification data memory 95 pointed to by LOC1 is made the leading note for matching. That is, in the following, a comparison is made between the pattern of classified notes starting from the first note and each melody pattern of MPRB84. That is, MP data (note type and motion type of notes of melody pattern) is read at B7, and classification data (note type and motion type of classified notes) is read at B8. If both the sound type and the motion type match (B9, B
11), LOC2 is incremented to locate the next classified note, the next element of the melody pattern being inspected is located (B12), and the process returns to B7 to continue the comparison between the two. If a mismatch is detected in either the sound type or the motion type during the comparison with the melody pattern, the pattern is considered to be incompatible and the MPRB 84 searches for the next melody pattern that matches the specified rhythm (B13), and B
Return to 5.

【0052】分類音符のパターンが検査したメロディパ
ターンに一致するときはB10でメロディパターンから
終了モーションが検出される。この場合、B14〜B1
6でLOC1〜LOC2までの分類音符のフラグバイト
にパターン適合フラグを立て、マッチングのための先頭
音符を次に進めて(B17)、B2に戻る。分類音符の
パターンがMPRB84のどのパターンとも一致しない
ときはB5でMPRBの終りが検出される。そこで、マ
ッチングのための先頭音符を次に進めて(B17)、B
2に戻る。このようにして、楽節のすべての音符をそれ
ぞれ先頭音符とみてMPRB84の各メロディパターン
とマッチングを行い、一致した音符群はパターン適合フ
ラグでラベル付けする。
When the pattern of the classified notes matches the inspected melody pattern, the end motion is detected from the melody pattern in B10. In this case, B14 to B1
At 6, the pattern matching flag is set in the flag bytes of the classification notes of LOC1 to LOC2, the leading note for matching is advanced (B17), and the process returns to B2. When the pattern of the classification note does not match any pattern of MPRB84, the end of MPRB is detected at B5. Therefore, the leading note for matching is advanced to the next (B17), and B
Return to 2. In this way, all the notes in the passage are regarded as the leading notes and matched with each melody pattern of the MPRB 84, and the matched notes are labeled with the pattern matching flag.

【0053】判定ルーチンM8のフローを図20と図2
1に示す。このルーチンはマッチング処理ルーチンによ
りパターン適合のラベルが付いた音符の割合を求めて楽
節に対するコード進行の適合度を評価する。そして、比
較的高い適合度を示したコード進行をCPエントリテー
ブル97に楽節のコード進行候補として記録する。J1
で初期化(量子化メロディメモリ92の現楽節の先頭ロ
ケート、分類データメモリ95の先頭ロケート、CP適
合度J−POINTのクリア)を行い、J2で休符のた
めのJ−FLAGを立てる。J3で音符のピッチクラス
PCを読み、J4で音符の長さLENを読む。休符(P
C=“休符”)でなければ、即ち音符なら、その音符の
パターン適合フラグを分類データメモリ95から読み込
む(J5、J6)。そして、パターン適合フラグが立っ
ていれば(J7)、CP評価値J−POINTに音長L
ENを加え(J8)、J−FLAGを立てる(J9)。
パターン適合フラグが立ってなければJ−FLAGを下
げる(J10)。このJ−FLAGの立て、下げは、パ
ターン適合ラベルが付いた音符の次に休符がくる場合に
は、その休符を適合とみなし、パターン不適合のラベル
が付いた音符の次にくる休符は不適合とみなすためであ
る。即ち、休符を検出したときは(J5)、J−FLA
Gが立っている場合に限り、その休符の長さLENをC
P適合度J−POINTに加える(J11、J12)。
The flow of the judgment routine M8 is shown in FIG. 20 and FIG.
Shown in 1. This routine evaluates the degree of conformity of chord progression with respect to a syllable by obtaining the proportion of the notes having the pattern conformity label by the matching processing routine. Then, the chord progression showing a relatively high degree of matching is recorded in the CP entry table 97 as a chord progression candidate of the passage. J1
Initializes (start locate of current phrase of quantized melody memory 92, start locate of classification data memory 95, clear CP conformity J-POINT), and sets J-FLAG for rest at J2. J3 reads the note pitch class PC and J4 reads the note length LEN. Rest (P
If C = “rest”), that is, if it is a note, the pattern matching flag of the note is read from the classification data memory 95 (J5, J6). If the pattern matching flag is set (J7), the CP evaluation value J-POINT is set to the tone length L.
EN is added (J8) and J-FLAG is set up (J9).
If the pattern matching flag is not set, J-FLAG is lowered (J10). This J-FLAG is set and lowered when a rest comes after a note with a pattern conforming label, the rest is regarded as conforming, and a rest next to the note with a pattern nonconforming label Is to be regarded as nonconforming. That is, when a rest is detected (J5), J-FLA
The rest length LEN is C only when G stands
It is added to the P compatibility J-POINT (J11, J12).

【0054】楽節の最後の音符に達してなければ(J1
3)、量子化メロディメモリ92にある楽節の次の音符
をロケートして(J14)、J3に戻る。楽節の最後の
音符にパターン適合フラグが付いていないときは(J1
3、J15)、その長さLENをCP適合度J−POI
NTから引く(J16)。これは、最後の音符が調性・
和音上、重要な音符であることを考慮したものである。
このようにして、CPDB82から検索したコード進行
のCP適合度が評価される。続いて、図21のフローに
従い、検査したコード進行を楽節のコード進行候補とし
てエントリするかどうかを決める。ここにCPエントリ
テーブル97は楽節別に用意される。図13では各楽節
のCPエントリ数を4としている(J17)。各エント
リのデータレコードはCP適合度ENTRY[i]、コ
ード進行のポインタCP[i]、及び主音KEY[i]
の3項目から成る。J18〜J23のループで現楽節の
CPエントリテーブルの要素を、検査したコード進行の
CP適合度が何番目になるかに従って、並びかえてい
る。J18においてJ−POINT>ENTRY[i]
が成立するときの(i+1)番目が、コード進行のCP
適合度の順位である。
If the last note of the passage is not reached (J1
3), locate the next note of the passage in the quantized melody memory 92 (J14), and return to J3. If the last note of the passage does not have a pattern matching flag (J1
3, J15), and the length LEN of the CP conformity J-POI
Subtract from NT (J16). This is the last note
This is because it is an important note in chords.
In this way, the CP suitability of the chord progression retrieved from the CPDB 82 is evaluated. Subsequently, according to the flow of FIG. 21, it is determined whether or not the inspected chord progression is entered as a chord progression candidate of the passage. Here, the CP entry table 97 is prepared for each passage. In FIG. 13, the number of CP entries in each passage is 4 (J17). The data record of each entry has a CP conformity ENTRY [i], a chord progression pointer CP [i], and a tonic KEY [i].
It consists of three items. In the loop of J18 to J23, the elements of the CP entry table of the current musical phrase are rearranged according to the degree of CP conformity of the inspected chord progression. At J18, J-POINT> ENTRY [i]
Is the (i + 1) -th time when is satisfied, the CP of chord progression
It is the order of suitability.

【0055】そこで、J24〜J27において、その順
位のCPエントリレコードに、今回のコード進行のCP
適合度J−POINT、CPDB82における今回のコ
ード進行のロケーション、現在の主音候補を記録してい
る。和音付処理(図12)の完了によりアレンジキー7
6に対するメロディアレンジ処理が終了する。その後、
プレイキー77が押されると、音楽装置(図2)はアレ
ンジの内容を自動演奏する。即ち、量子化メロディメモ
リ92にあるメロディデータの再生によるメロディ演
奏、決定したコード進行と指定スタイルの伴奏パターン
データとに基づく伴奏パートの作成と演奏、及び指定ス
タイルのリズム演奏を行う。
Therefore, in J24 to J27, the CP entry record of that rank is added to the CP of the current chord progression.
The goodness of fit J-POINT, the location of this chord progression in the CPDB 82, and the current tonic candidate are recorded. Arrange key 7 upon completion of chord processing (Fig. 12)
The melody arrangement process for 6 ends. afterwards,
When the play key 77 is pressed, the music device (FIG. 2) automatically plays the contents of the arrangement. That is, the melody performance is performed by reproducing the melody data in the quantized melody memory 92, the accompaniment part is created and played based on the determined chord progression and the accompaniment pattern data of the designated style, and the rhythm performance of the designated style is performed.

【0056】プレイキー77によるアレンジ演奏の都
度、和音付(メロディに対するコード進行)に変化を付
けるようにすれば、聞き手であるユーザーは種々のアレ
ンジ演奏を楽しむことができ、望ましい。これは、例え
ば、プレイキー77の操作に応答して、CPエントリテ
ーブル97から各楽節のコード進行を乱数で、あるい
は、エントリ順に選ぶことで実現できる(この場合、図
12のM11は省略される)。別の例を図22にフロー
で示す。この例では、各楽節について、前回の伴奏に使
用したコード進行のCP適合度が100%(J−POI
NT/楽節長=1)なら、CPエントリテーブル97か
ら次のCPエントリを選択し、それを今回の伴奏で使用
し、前回選択したコード進行のCP適合度が100%に
満たないときは順位1位のCPエントリを選択する。な
お、最初のアレンジ演奏のときは各楽節とも順位1位の
CPエントリを用いる。
It is desirable that the user, who is the listener, can enjoy various arrangement performances by changing the chord addition (chord progression for the melody) each time the arrangement performance by the play key 77 is performed. This can be realized, for example, in response to the operation of the play key 77, by selecting the chord progression of each passage from the CP entry table 97 by a random number or in the entry order (in this case, M11 in FIG. 12 is omitted. ). Another example is shown in the flow chart of FIG. In this example, the CP suitability of the chord progression used for the previous accompaniment is 100% (J-POI) for each passage.
If NT / section length = 1), select the next CP entry from the CP entry table 97, use it for this accompaniment, and rank 1 if the CP suitability of the chord progression selected last time is less than 100%. Select CP entry. At the time of the first arrangement performance, each entry uses the CP entry ranked first.

【0057】詳細に述べると、C1で演奏回数Mをイン
クリメントし、C2で最初の楽節をロケートする。C3
で現楽節のCPエントリテーブルから、適合度100%
のコード進行の候補数Aをカウントする。Aがエントリ
数(図21では4つ)ならそのまま、エントリ数より少
なければ、Aをプラス1する(C4、C5)。そして、
C6で、現楽節のCPエントリテーブルのMmodA番
目のCPエントリを選択し、そのコード進行と主音を演
奏用バッファ(図示せず)に書き込む。次に、次楽節を
ロケートし(CS)、以上のコード進行選択処理を、メ
ロディの全ての楽節について実行する(C7)。その
後、演奏用バッファに書かれた、各楽節のコード進行と
主音を用いて伴奏が行われる(図示せず)。常に満足の
いくアレンジ演奏を保証するために、CP適合度が10
0%に満たないコード進行をより高い適合度をもつよう
に修正する機能があると望ましい。
More specifically, the number of performances M is incremented at C1 and the first phrase is located at C2. C3
Then, from the CP entry table of the present music section, the matching rate is 100%
The number of candidates for chord progression A is counted. If A is the number of entries (4 in FIG. 21), it is unchanged, and if it is less than the number of entries, A is incremented by 1 (C4, C5). And
At C6, the MmodA-th CP entry in the CP entry table of the present syllable is selected, and its chord progression and tonic are written in a performance buffer (not shown). Next, the next phrase is located (CS), and the above chord progression selection processing is executed for all the phrases of the melody (C7). After that, an accompaniment is performed using chord progressions and tones of each passage written in the performance buffer (not shown). In order to guarantee a satisfactory arrangement performance, the CP conformance is 10
It would be desirable to have the ability to modify chord progressions below 0% to have a higher degree of conformance.

【0058】これは、例えば、図23に示すようなCP
合成ルーチンを設けることで実現できる。CP合成ルー
チンはS1でメロディの最初の楽節を現楽節としてロケ
ートする。S2で現楽節のCPエントリテーブルから適
当な方法(例えば、乱数、あるいは図21で述べた方
法)で1つのCPエントリを選ぶ。そのエントリのCP
適合度が100%なら(S3)、コード進行の修正なし
に処理を次楽節に進める(S16)。選んだCPエント
リの適合度が100%に満たなければ(S3)、S4に
進み、エントリのコード進行CP(i)の最初の小節を
K小節としてロケートする。S5でコード進行CP
(i)のK小節の適合度を評価し、100%なら(S
6)K小節を次小節に進める(S14)。
This is, for example, a CP as shown in FIG.
This can be achieved by providing a synthesis routine. The CP synthesis routine locates the first phrase of the melody as the current phrase in S1. In S2, one CP entry is selected from the CP entry table of the current musical phrase by an appropriate method (for example, a random number or the method described in FIG. 21). CP for that entry
If the compatibility is 100% (S3), the process proceeds to the next passage without modifying the chord progression (S16). If the degree of conformity of the selected CP entry is less than 100% (S3), the process proceeds to S4, and the first measure of the chord progression CP (i) of the entry is located as the K measure. Chord progression CP with S5
The conformity of the K measure in (i) is evaluated, and if it is 100% (S
6) Advance the K measure to the next measure (S14).

【0059】コード進行CP(i)のK小節の適合度が
100%に満たないときは、CPDB82にある、現楽
節長の長さで指定スタイルのコード進行DBのなかか
ら、K小節の適合度が100%となるコード進行CPを
捜し出し、そのLPのK小節の内容にコード進行CP
(i)のK小節を書きかえる(S6〜S12)。即ち、
CPDB12から現楽節長と長さが一致し、指定リズム
スタイルの属性のもつ最初のCPをロケート(S7)
し、そのK小節の適合度を評価し(S8)、100%な
らCP(i)のK小節=CPのK小節によりコード進行
CP(i)を修正する(S9、S12)。CPのK小節
の適合度が100%に満たなければ(S9)、CPDB
82から指定スタイル、現楽節の条件を満たす次のCP
をロケートし(S10)、S11を介してS5に戻る。
CPDB中に、K小節の適合度が100%のCPがなけ
れば(S11)、コード進行CP(i)のK小節は変更
せずに、次小節に進む(S14)。
When the degree of conformity of the K bar of the chord progression CP (i) is less than 100%, the degree of conformity of the K bar is determined from the chord progression DB of the style specified by the length of the current musical phrase in the CPDB 82. Find the chord progression CP that is 100%, and add the chord progression CP to the content of the K measure of the LP.
Rewrite the K measure of (i) (S6 to S12). That is,
Locate the first CP with the specified rhythm style attribute that has the same length as the current section length from the CPDB 12 (S7).
Then, the fitness of the K measure is evaluated (S8), and if it is 100%, the chord progression CP (i) is corrected by the K measure of CP (i) = K measure of CP (S9, S12). If the conformity of the K measure of CP is less than 100% (S9), CPDB
The next CP that meets the conditions of the specified style and the present music from 82
Is located (S10), and the process returns to S5 via S11.
If there is no CP in the CPDB having a K bar conformity of 100% (S11), the K bar of the chord progression CP (i) is not changed and the process proceeds to the next bar (S14).

【0060】この代りに、CP(i)のK小節を指定条
件(指定スタイル、楽節長)のCPDBのなかでK小節
の適合度が最も高いCPのK小節に差し替えるようにし
てもよい。以上の処理をコード進行CP(i)のすべて
の小節について行う(S13)。S15ですべての楽節
のコード進行の修正ないし合成処理が完了したかどうか
調べ、終ってなければ、現楽節を次楽節に進めて(S1
6)、処理を繰り返す。このようなCP合成処理は結果
として、CPDB82の仮想空間を拡大するものであ
る。また、従来の再和音付け技術のように、単にコード
を格別の音楽的な根拠なしに代理コードのような別のコ
ードに変更するのではなく、CPDB82に置かれ、ス
タイル属性と長さが同じコード進行同士を、適合度を合
成基準とし、かつ音楽的な時間対応をとって合成してい
る。したがって合成後のコード進行の自然さを保つもの
である。以上で実施例の説明を終えるがこの発明の範囲
内で種々の変更が可能である。
Alternatively, the K bar of CP (i) may be replaced with the K bar of the CP having the highest degree of conformity with the K bar in the CPDB of the specified condition (specified style, phrase length). The above processing is performed for all measures of the chord progression CP (i) (S13). In S15, it is checked whether the chord progression correction or composition processing of all the passages is completed, and if not completed, the current passage is advanced to the next passage (S1).
6), the process is repeated. As a result, such CP composition processing enlarges the virtual space of the CPDB 82. Further, instead of simply changing the chord to another chord such as a substitute chord without any special musical ground like the conventional re-chording technique, it is placed in the CPDB 82 and has the same style attribute and length. The chord progressions are synthesized by using the matching degree as a synthesis reference and taking musical time correspondence. Therefore, the natural progression of chords after synthesis is maintained. Although the description of the embodiment has been completed, various modifications can be made within the scope of the present invention.

【0061】[0061]

【発明の効果】以上、詳細に述べたように、この発明の
メロディ分析装置は与えられたメロディを音楽的に意味
をもつ構成単位である楽節に分割し、楽節ごとに調性を
判定している。したがって、メロディに内在する転調
(調の変化)を検出することができる。
As described above in detail, the melody analyzing apparatus of the present invention divides a given melody into musical passages, which are structural units having a musical meaning, and judges the tonality for each musical passage. There is. Therefore, it is possible to detect the modulation (change in key) inherent in the melody.

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

【図1】この発明のメロディ分析装置を組み込んだ音楽
装置の機能ブロック図。
FIG. 1 is a functional block diagram of a music apparatus incorporating the melody analysis apparatus of the present invention.

【図2】実施例の音楽装置のハードウェア構成のブロッ
ク図。
FIG. 2 is a block diagram of a hardware configuration of the music apparatus according to the embodiment.

【図3】実時間入力メロディの記録処理のフローチャー
ト。
FIG. 3 is a flowchart of recording processing of a real-time input melody.

【図4】入力メロディデータの記録フォーマットを示す
図。
FIG. 4 is a diagram showing a recording format of input melody data.

【図5】量子化メロディデータのデータフォーマットを
示す図。
FIG. 5 is a diagram showing a data format of quantized melody data.

【図6】調性判定処理の一部のフローチャート。FIG. 6 is a partial flowchart of tonality determination processing.

【図7】調性判定処理の一部のフローチャート。FIG. 7 is a partial flowchart of tonality determination processing.

【図8】調性判定処理の一部のフローチャート。FIG. 8 is a partial flowchart of tonality determination processing.

【図9】結合度テーブルのデータを示す図。FIG. 9 is a view showing data of a coupling degree table.

【図10】メロディ分割処理のフローチャート。FIG. 10 is a flowchart of melody division processing.

【図11】メロディ分割の譜例を示す図。FIG. 11 is a diagram showing a musical example of melody division.

【図12】和音付処理のフローチャート。FIG. 12 is a flowchart of processing with chords.

【図13】コード進行データベースのフォーマットを示
す図。
FIG. 13 is a diagram showing a format of a chord progression database.

【図14】メロディパターンルールベースのフォーマッ
トを示す図。
FIG. 14 is a diagram showing a format of a melody pattern rule base.

【図15】属性テストのフローチャート。FIG. 15 is a flowchart of an attribute test.

【図16】モーション、音種分類処理の一部を示すフロ
ーチャート。
FIG. 16 is a flowchart showing a part of motion / tone type classification processing.

【図17】モーション、音種分類処理の一部を示すフロ
ーチャート。
FIG. 17 is a flowchart showing a part of motion / tone type classification processing.

【図18】マッチング処理の一部を示すフローチャー
ト。
FIG. 18 is a flowchart showing a part of matching processing.

【図19】マッチング処理の一部を示すフローチャー
ト。
FIG. 19 is a flowchart showing a part of matching processing.

【図20】判定処理の一部を示すフローチャート。FIG. 20 is a flowchart showing a part of determination processing.

【図21】判定処理の一部を示すフローチャート。FIG. 21 is a flowchart showing a part of determination processing.

【図22】コード進行選択処理のフローチャート。FIG. 22 is a flowchart of chord progression selection processing.

【図23】コード進行合成処理のフローチャート。FIG. 23 is a flowchart of chord progression synthesis processing.

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

2 メロディ 4 メロディ分割 6 楽節 8 調性分析 2 melody 4 melody division 6 passage 8 tonality analysis

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】(A)メロディを付与するメロディ付与手
段と、(B)前記メロディを楽節に分割するメロディ分
割手段と、(C)分割された各楽節の調を判定する楽節
別調判定手段と、を有することを特徴とするメロディ分
析装置。
1. A melody imparting means for imparting a melody, (B) a melody dividing means for dividing the melody into passages, and (C) a tone-specific tone determining means for determining a tone of each of the divided passages. And a melody analysis device having:
【請求項2】請求項1記載のメロディ分析装置におい
て、前記メロディ付与手段は、(A)実時間でメロディ
のデータを入力する鍵盤手段と、(B)入力されたメロ
ディのデータを記憶するメロディ記憶手段と、を有する
ことを特徴とするメロディ分析装置。
2. The melody analyzing device according to claim 1, wherein the melody assigning means includes (A) keyboard means for inputting melody data in real time, and (B) melody for storing input melody data. A melody analysis device comprising: a storage unit.
【請求項3】請求項1記載のメロディ分析装置におい
て、前記メロディ分割手段は、前記メロディのなかから
楽節終了音符を検出する手段を含むことを特徴とするメ
ロディ分析装置。
3. The melody analyzing apparatus according to claim 1, wherein the melody dividing means includes means for detecting a phrase ending note from the melody.
【請求項4】請求項1記載のメロディ分析装置におい
て、前記メロディ分割手段は、前記メロディのなかから
所定長のメロディ部分を楽節として検出する手段を含む
ことを特徴とするメロディ分析装置。
4. The melody analyzing apparatus according to claim 1, wherein the melody dividing means includes means for detecting a melody portion of a predetermined length from the melody as a passage.
【請求項5】請求項1記載のメロディ分析装置におい
て、前記メロディ分割手段は、前記メロディの分割位置
を指示入力する分割位置指示入力手段を含むことを特徴
とするメロディ分析装置。
5. The melody analyzing apparatus according to claim 1, wherein the melody dividing means includes a division position instruction input means for instructing and inputting a division position of the melody.
【請求項6】請求項1記載のメロディ分析装置におい
て、前記メロディ分割手段は、前記メロディがアウフタ
クトで開始するかどうかを検査するアウフタクト検査手
段を含むことを特徴とするメロディ分析装置。
6. The melody analyzing apparatus according to claim 1, wherein the melody dividing means includes an outfact checking means for checking whether or not the melody starts with an outfract.
【請求項7】請求項1記載のメロディ分析装置におい
て、前記楽節別調判定手段は、(A)楽節のモーション
を分析するモーション分析手段と、(B)前記モーショ
ン分析手段の分析したモーションに基づいて楽節の主音
を判定する主音判定手段と、を有することを特徴とする
メロディ分析装置。
7. The melody analysis device according to claim 1, wherein the gradual note determination means is based on (A) a motion analysis means for analyzing a motion of a verse and (B) a motion analyzed by the motion analysis means. And a tonic determining unit that determines a tonic of a phrase.
【請求項8】請求項7記載のメロディ分析装置におい
て、前記主音判定手段は複数の異なる主音候補を生成す
る手段を含むことを特徴とするメロディ分析装置。
8. The melody analyzing apparatus according to claim 7, wherein the tonic determining means includes means for generating a plurality of different tonic candidates.
【請求項9】請求項1記載のメロディ分析装置におい
て、前記楽節別調判定手段は、現楽節の調が前楽節の調
と同じかどうかを検査する調維持検査手段を含むことを
特徴とするメロディ分析装置。
9. The melody analyzing apparatus according to claim 1, wherein the gradual note determination means includes a key maintenance checking means for checking whether the key of the current syllable is the same as the key of the preceding syllable. Melody analyzer.
JP29926792A 1992-01-12 1992-10-12 Melody analyzer Expired - Fee Related JP3271331B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP29926792A JP3271331B2 (en) 1992-10-12 1992-10-12 Melody analyzer
US08/134,797 US5510572A (en) 1992-01-12 1993-10-08 Apparatus for analyzing and harmonizing melody using results of melody analysis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29926792A JP3271331B2 (en) 1992-10-12 1992-10-12 Melody analyzer

Publications (2)

Publication Number Publication Date
JPH06124088A true JPH06124088A (en) 1994-05-06
JP3271331B2 JP3271331B2 (en) 2002-04-02

Family

ID=17870334

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29926792A Expired - Fee Related JP3271331B2 (en) 1992-01-12 1992-10-12 Melody analyzer

Country Status (1)

Country Link
JP (1) JP3271331B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6031171A (en) * 1995-07-11 2000-02-29 Yamaha Corporation Performance data analyzer
JP2004151688A (en) * 2002-10-31 2004-05-27 Roland Europ Spa Electronic instrument
CN113920969A (en) * 2021-10-09 2022-01-11 北京灵动音科技有限公司 Information processing method, information processing device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6031171A (en) * 1995-07-11 2000-02-29 Yamaha Corporation Performance data analyzer
JP2004151688A (en) * 2002-10-31 2004-05-27 Roland Europ Spa Electronic instrument
JP4632646B2 (en) * 2002-10-31 2011-02-16 ローランド エウローペ ソシエタ ペル アチオニ Electronic musical instruments and programs
CN113920969A (en) * 2021-10-09 2022-01-11 北京灵动音科技有限公司 Information processing method, information processing device, electronic equipment and storage medium

Also Published As

Publication number Publication date
JP3271331B2 (en) 2002-04-02

Similar Documents

Publication Publication Date Title
US5510572A (en) Apparatus for analyzing and harmonizing melody using results of melody analysis
US5889224A (en) Karaoke scoring apparatus analyzing singing voice relative to melody data
US5003860A (en) Automatic accompaniment apparatus
US5939654A (en) Harmony generating apparatus and method of use for karaoke
JP3807275B2 (en) Code presenting device and code presenting computer program
US6107557A (en) Chord display apparatus and storage medium
US7956275B2 (en) Music performance training apparatus and method
US20060150804A1 (en) Electronic musical apparatus for displaying score or fingering
JP3271331B2 (en) Melody analyzer
JPH0527763A (en) Phrase playing device
WO2023056004A1 (en) Method and system for automatic music transcription and simplification
JP3364941B2 (en) Automatic composer
JP3271332B2 (en) Chording device
GB2209425A (en) Music sequencer
JP2003186466A (en) Musical score generation processor and program
JP4089447B2 (en) Performance data processing apparatus and performance data processing program
JP3216143B2 (en) Score interpreter
JP3531507B2 (en) Music generating apparatus and computer-readable recording medium storing music generating program
JP3807333B2 (en) Melody search device and melody search program
JPH01179087A (en) Automatic playing device
JP3216529B2 (en) Performance data analyzer and performance data analysis method
JP3316547B2 (en) Chording device
JP3364940B2 (en) Automatic composer
JP2623175B2 (en) Automatic performance device
JPH0527757A (en) Electronic musical instrument

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090125

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090125

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100125

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110125

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110125

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120125

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees