JP2733938B2 - Melody analyzer - Google Patents
Melody analyzerInfo
- Publication number
- JP2733938B2 JP2733938B2 JP62332198A JP33219887A JP2733938B2 JP 2733938 B2 JP2733938 B2 JP 2733938B2 JP 62332198 A JP62332198 A JP 62332198A JP 33219887 A JP33219887 A JP 33219887A JP 2733938 B2 JP2733938 B2 JP 2733938B2
- Authority
- JP
- Japan
- Prior art keywords
- melody
- pitch difference
- line
- note
- progression
- 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 - Fee Related
Links
Landscapes
- Electrophonic Musical Instruments (AREA)
- Auxiliary Devices For Music (AREA)
Description
【発明の詳細な説明】
[発明の技術分野]
この発明はメロディを自動分析するメロディ分析機に
関し、特に和声進行を評価可能なメロディ分析機に関す
る。
[背 景]
複数のメロディライン(旋律線)から成る曲を作曲す
る場合には、単一のラインの作曲では不要あるいは意識
しなかった諸々の事項を配慮しなければならなくなる。
その1つとして曲が和声進行の規則を守っているかどう
かのチェックの作業が挙げられる。この作業は、相当熟
達した作曲者でない限り、容易でなく相当の時間と労力
を必要とする。
したがって、このような作業のために作曲者にかかる
負担を軽減することができるようなメロディ分析機を開
発することは非常に有意義なことである。
[発明の目的]
すなわち、この発明の目的は、曲の和声進行を自動的
に評価することのできるメロディ分析機を提供すること
である。
[発明の構成、展開]
上記の目的を達成するため、この発明によれば、乱数
的にメロディ特徴パラメータを生成し、メロディ特徴パ
ラメータとコード進行とに基づいて第1のメロディライ
ンと第2のメロディラインを生成する自動作曲手段と、
第1のメロディラインにおける現在と直前の音符の音高
差を算出する第1音高差算出手段と、第2のメロディラ
インにおける現在と直前の音符の音高差を算出する第2
音高差算出手段と、第1音高差算出手段からの音高差と
第2音高差算出手段からの音高差とを比較し、この比較
結果に応じて直行進行を検出する直行進行検出手段と、
第1のメロディラインにおける現在の音符と第2のメロ
ディラインにおける現在の音符との音高差を算出する第
3音高差算出手段と、上記直行進行が禁止直行進行か否
かを上記第3音高差算出手段からの音高差に基づいて判
別する禁止直行進行判別手段と、を有することを特徴と
するメロディ分析機が提供される。
この構成によれば、自動作曲手段の作曲した第1と第
2のメロディライン間に響きのよくない禁止直行進行が
含まれるかどうかを自動的に判定できる。
禁止直行進行を検出したときに、自動作曲手段を再起
動するようにすれば、禁止直行進行をもたない第1、第
2メロディラインを容易に自動作曲できることになる。
更に、この発明によれば、第1のメロディラインを表
わすデータと第2のメロディラインを表わすデータを付
与するメロディデータ付与手段と、各メロディラインの
音楽時間軸に沿って各メロディラインのデータを調べ、
第1と第2のメロディラインで新たな音符がともに開始
したときを検出する両ライン音符開始検出手段と、両ラ
イン音符開始検出手段の検出動作に応答して、第1のメ
ロディラインにおける新たな音符と直前の音符との音高
差を算出する第1音高差算出手段と、両ライン音符開始
検出手段の検出動作に応答して、第2のメロディライン
における新たな音符と直前の音符との音高差を算出する
第2音高差算出手段と、第1音高差算出手段からの音高
差と第2音高差算出手段からの音高差とを比較し、この
比較結果に応じて直行進行を検出する直行進行検出手段
と、両ライン音符開始検出手段の検出動作に応答して、
第1のメロディラインにおける新たな音符と第2のメロ
ディラインにおける新たな音符との音高差を算出する第
3音高差算出手段と、上記直行進行が禁止直行進行か否
かを上記第3音高差算出手段からの音高差に基づいて判
別する禁止直行進行判別手段と、を有することを特徴と
するメロディ分析機が提供される。
この構成によれば、音楽時間軸に沿って各メロディラ
インのデータを調べて、両ラインで同時に音符が開始し
た位置を検出し、その都度、その位置まわりの音高デー
タにアクセスして直行進行の有無をチェックし、直行進
行である場合にその直行進行が禁止直行進行かどうか
を、その位置でのライン間音高差を算出し、その算出結
果に基づいて判定しているので、簡単な構成でありなが
ら、確実に禁止直行進行を検出することができる。本構
成は、音楽的経験の豊かでない初心者や学習者に特に有
益であり、聴覚テストに先立って事前に響きに問題のあ
る禁止直行進行の箇所を学習者に知らせることができ
る。
[実施例]
以下、図面を参照して、この発明の実施例を説明す
る。
本実施例は、この発明を自動作曲機に適用したもの
で、その全体構成を第1図に示す。
メロディ1生成装置1とメロディ2生成装置2は、そ
れぞれメロディ1とメロディ2を生成するもので、本件
出願人による特願昭62−86571号、特願昭62−121037号
に示されるタイプの自動作曲機が使用できる。各メロデ
ィ生成装置1、2は、メロディ特徴パラメータとコード
進行とからメロディを生成し、使用するメロディ特徴パ
ラメータを変えることにより、生成するメロディを変え
ることができる。起動される都度、内部の乱数発生器
(図示せず)が動作して、変化したメロディ特徴パラメ
ータが生成されるようになっている。
和声進行/協和性評価部3は、メロディ1生成装置1
の生成したメロディ1とメロディ2生成装置2の生成し
たメロディ2とを評価するもので、この例では、協和性
メモリ4を使用してメロディ1とメロディ2との協和性
の度合を評価するとともに、禁止和声進行メモリ5を使
用して、メロディ1とメロディ2の和声進行のなかに禁
止される直行進行の和声進行が含まれるかどうかを検査
するように構成されている。
和声進行/協和性評価部3の評価結果はモニター6に
出力される。使用者は、評価結果が好ましくない場合に
は、入力装置(図示せず)を介して再度、メロディ1生
成装置1とメロディ2生成装置2を起動する。これによ
り、各生成装置1、2は前回とは異なったメロディ特徴
パラメータを乱数発生器によって生成する。
第2図に上記協和性メモリ4と禁止和声進行メモリ5
のデータ例を示す。
協和性メモリ4の先頭アドレスにはデータの数が格納
され、後続アドレスには2つの音の音程に対する協和性
データが記憶される。アドレスiは半音×(i−1)の
音程をもつ2つの音に対応しており、図の例では、半音
×0(同音)、半音×5(完全4度)、半音×7(完全
5度)に対して最も協和性が良いことを示す“3"の値が
割り当てられており、短2度、長2度、減5度、短7
度、長7度に対しては最も協和性が悪いことを示す“1"
の値が割り当てられており、その他の音程に対しては中
間の“2"の値が割り当てられている。
禁止和声進行メモリ5は、先頭アドレスにデータの数
が格納され、後続アドレスには、禁止される直行進行の
度数(音高差)を表わすデータが記憶される。例えば
“0"の値をもつデータは完全1度を表わしており、評価
部3との関係において、完全1度の直行進行は禁止され
る和声進行であることを意味している。
第3図に評価部3の構成を示す。前後音高差算出部31
はメロディ1の前後の音の音高差を算出し、前後音高算
出部32はメロディ2の前後の音の音高差を算出する。一
方、ライン間音高算出部33は同じ時間におけるメロディ
1とメロディ2の音の音高差を算出する。
ライン間音高差算出部33の算出した各時刻におけるメ
ロディ1とメロディ2の音高差は協和性累算部34に渡さ
れる。協和性累算部34は与えられた音高差に対応する協
和性データを協和性メモリ4から読み出して、それを累
算することによりメロディ1とメロディ2間の協和性を
算出する。
上記の要素31、32、33の算出結果により、メロディ1
とメロディ2とによる和声進行が表現される。直行進行
検出部35は、この和声進行のなかに含まれ得る直行進行
と、直行進行の度数を検出するところである。ここに、
直行進行とは、メロディ1の音高の変化の方向とメロデ
ィ2の音高の変化の方向が同じ方向の場合の進行であ
る。
直行進行検出部35からの直行進行とその度数は禁止和
声進行検出部36に送られる。禁止和声進行検出部36は、
与えられた度数の直行進行が、禁止された和声進行であ
るかどうかを調べるために、禁止和声進行メモリ5のデ
ータをサーチする。合致する度数のデータがあれば、禁
止される和声進行が検出されたことになる。
第4図に本実施例のゼネラルフローを示す。最初にメ
ロディ1生成装置1によりメロディ1を生成し(4−
1)、次に、メロディ2生成装置2によりメロディ2を
生成する(4−2)。続いて、和声進行/協和性評価部
3により、メロディ1とメロディ2に対する評価を実行
する。評価結果に対応するユーザーの入力を促し(4−
4)、OKでなければ、再度、4−1に戻ってメロディの
生成をやり直す。
第5図に評価4−3の詳細を示す。図中、iは、評価
対象の区間の先頭からの長さを基本単位時間のきざみで
計数するカウンタ、OC1(2)はメロディ1(2)の評
価区間内における音符番号を計数するカウンタ、lC1
(2)はメロディ1(2)の音符の長さを計数するカウ
ンタ、fl1(2)はメロディ1(2)の音符の開始位置
で“1"にセットされるフラグである(第5図参照)。
最初に協和性メモリ4と禁止和声進行メモリ5のデー
タが読み込まれる(5−1)。このデータ読み込みの詳
細は第7図に示される。この結果、hamoiのレジスタに
はiで示される音程に対する協和性データが格納され、
pallnには禁止される和声直行進行のパターンの数が格
納され、palliには各禁止パターンの度数が格納され
る。
次に初期設定5−2が行われる。この処理の詳細には
第8図に示される。ここで、メロディ1の全長Σmr1と
メロディ2の全長Σmr2が計算され、その短い方がレジ
スタlengthに格納される。このlengthのデータは第5図
の評価の処理の完了をチェックするのに用いられる。さ
らに、音符カウンタOC1、OC2、音長カウンタlC1、lC2、
評価値のレジスタが初期化される。
5−3で基準単位音長のカウンタiを“1"に初期化
し、5−17でi>lengthになるまで、5−4〜5−17の
ループをくり返す。
5−4で新しい音符に入ったかどうかを示すフラグfl
1、fl2を“0"にリセットし、5−5でメロディ1と2の
音符の音長カウンタlC1、lC2をインクリメントする。次
に、メロディ1の音符の音長カウンタlC1の値が、着目
しているメロディ1の音符の長さmr10Cに達したかどう
か、すなわちメロディ1の音符を次に進めるべきかどう
かをチェックし(5−6)、条件が成立すれば、メロデ
ィ1の音符カウンタOC1をインクリメントするととも
に、新しい音符に入ったことを示すためfl1を“1"にセ
ットする(5−8)。同様のことをメロディ2に対して
も行う(5−8、5−9)。
5−10で、着目しているメロディ1とメロディ2の音
符の音高差を計算してレジスタS1にセットし、着目して
いるメロディ1の音符とそれより1つ前の音符との音高
差を計算してレジスタS2にセットし、着目しているメロ
ディ2の音符とそれより1つ前の音符との音高差を計算
してレジスタS3にセットする。
続く、5−11で、レジスタS1の内容から対応する協和
性データを取り出して、それを協和性データの累算器に
加算する。
5−12で、メロディ1とメロディ2の音符がともに開
始位置であるかどうかをfl1=fl2=1によりチェック
し、成立するときは、5−13で直行関係かどうかをチェ
ックする。このチェックは、例えば|S2−S3|≦1、すな
わち、 メロディ1の音高変化とメロディ2の音高変化
との差が短2度以下かどうかを調べることにより行われ
る。この代りに、S2>0かつS3>0またはS2<0かつS3
<0の成立の有無を調べてもよい。
直行関係が成立するときは5−14に進み、ここで、そ
の直行関係が禁止の直行関係かどうかを検査する。これ
は、メロディ1とメロディ2の音の音高差S1と一致する
データが、禁止度数のデータpalliのセットのなかに含
まれているかどうかを調べることで行われる。成立する
ときには、禁止されるパターンがあることを後で通知す
るために、フラグNGを“1"にセットする(この代りに、
成立した回数をカウンタに計数させてもよい)。
基準音長のカウンタiをインクリメントし(5−1
6)、その値がlengthの値を越えるようになるまで、5
−4からの処理をくり返す。
なお、メロディ1生成装置1とメロディ2生成装置2
に関して、他の任意の適当なメロディ生成装置が利用で
きる。例えば、メロディ2生成装置2として、メロディ
1生成装置1の生成したメロディ1を1次変換する(例
えば、メロディ1を1小節後方にシフトして音高データ
を5度とか4度とかにシフトする)ものが使用できる。
また、本発明においては、メロディ生成装置は必ずし
も必要でなくメロディ1、2は使用者が作成してもよ
い。
[発明の効果]
以上詳細に説明したように、この発明によれば、自動
作曲手段にて乱数的にメロディ特徴パラメータを生成
し、メロディ特徴パラメータとコード進行とに基づいて
第1のメロディラインと第2のメロディラインを生成
し、生成した第1のメロディラインにおける現在と直前
の音符の音高差を第1音高差算出手段で算出し、生成し
た第2のメロディラインにおける現在と直前の音符の音
高差を第2音高差算出手段で算出し、第1音高差算出手
段からの音高差と第2音高差算出手段からの音高差とを
比較し、この比較結果に応じて直行進行を検出し(直行
進行検出手段)、第1のメロディラインにおける現在の
音符と第2のメロディラインにおける現在の音符との音
高差を算出し(第3音高差算出手段)、検出した直行進
行が禁止直行進行か否かを第3音高差算出手段からの音
高差に基づいて判別している(禁止直行進行判別手
段)。したがって、自動作曲手段の作曲したメロディラ
イン間に響きのよくない禁止直行進行が含まれるかどう
かを自動的に判定でき、また、禁止直行進行を検出した
ときに自動作曲手段を再び動作させることにより、禁止
直行進行のない複数のメロディラインを容易に作曲可能
となる。
更に、この発明によれば、第1のメロディラインを表
わすデータと第2のメロディラインを表わすデータが与
えられた(メロディデータ付与手段)場合に、各メロデ
ィラインの音楽時間軸に沿って各メロディラインのデー
タを調べ、第1と第2のメロディラインで新たな音符が
ともに開始したとき(位置)を検出し(両ライン音符開
始検出手段)、この検出動作に応答して、第1、第2の
メロディラインにおける新たな音符と直前の音符との音
高差を算出し(第1、第2音高差算出手段)、この第
1、第2音高差算出手段からの音高差を互に比較し、比
較結果に基づいて直行進行を検出し(直行進行検出手
段)、検出動作に応答して、第1のメロディラインの新
たな音符と第2のメロディラインの新たな音符との音高
差を算出し(第3音高差算出手段)、検出した直行進行
が禁止直行進行か否かを第3音高差算出手段からの音高
差に基づいて判別している(禁止直行進行判別手段)。
したがって、簡単な構成でありながら、確実に禁止直行
進行を検出することができる。本構成は、音楽的経験の
豊かでない初心者や学習者にとって特に有益であり、聴
覚テストに先立って事前に響きに問題のある禁止直行進
行の箇所を学習者にとって知らせることができる。した
がって、使用者は、この発明によるメロディ分析装置の
分析結果から、2つのメロディラインの和声進行に関す
る良否を容易に知ることができる。この結果、和声進行
のチェックに関する使用者の負担は大幅に軽減され、和
声進行の規則に従う曲がより少ない労力で作成可能にな
る。Description: TECHNICAL FIELD The present invention relates to a melody analyzer for automatically analyzing a melody, and more particularly to a melody analyzer capable of evaluating a harmony progress. [Background] When composing a song composed of a plurality of melody lines (melody lines), it is necessary to consider various matters that were unnecessary or unconscious in composing a single line.
One of the tasks is to check whether the song complies with the rules for harmony progression. This operation is not easy and requires a considerable amount of time and effort, unless you are a very skilled composer. Therefore, it is very significant to develop a melody analyzer that can reduce the burden on the composer for such work. [Object of the Invention] That is, an object of the present invention is to provide a melody analyzer capable of automatically evaluating the harmony progression of a song. According to the present invention, a melody feature parameter is generated at random, and a first melody line and a second melody line are generated based on a melody feature parameter and a chord progression. An automatic composition means for generating a melody line;
First pitch difference calculating means for calculating the pitch difference between the current and previous note on the first melody line, and second calculating the pitch difference between the current and previous note on the second melody line
A pitch difference calculating means for comparing a pitch difference from the first pitch difference calculating means with a pitch difference from the second pitch difference calculating means, and detecting a direct progress according to a result of the comparison; Detecting means;
Third pitch difference calculating means for calculating a pitch difference between a current note on the first melody line and a current note on the second melody line; A melody analyzer comprising: a prohibited straight-line progression determination unit that determines based on a pitch difference from a pitch difference calculation unit. According to this configuration, it is possible to automatically determine whether or not a prohibited straight line progression that does not sound well is included between the first and second melody lines composed by the automatic music composition means. If the automatic music composition means is restarted when the prohibited straight-line progression is detected, the first and second melody lines having no prohibited straight-line progression can be easily composed automatically. Further, according to the present invention, melody data providing means for providing data representing the first melody line and data representing the second melody line, and data of each melody line along the music time axis of each melody line. Check,
Both line note start detecting means for detecting when a new note starts on both the first and second melody lines, and a new note on the first melody line in response to the detecting operation of the both line note start detecting means. A first pitch difference calculating means for calculating a pitch difference between the note and the immediately preceding note; and a new note and a preceding note in the second melody line in response to the detecting operation of the both-line note start detecting means. The second pitch difference calculating means for calculating the pitch difference between the first pitch difference calculating means and the pitch difference from the second pitch difference calculating means are compared with each other. In response to the detection of the straight line progress detection means and the double line note start detection means for detecting the straight line progression,
Third pitch difference calculating means for calculating a pitch difference between a new note on the first melody line and a new note on the second melody line; and determining whether or not the straight-line progression is prohibited straight-line progression. A melody analyzer comprising: a prohibited straight-line progression determination unit that determines based on a pitch difference from a pitch difference calculation unit. According to this configuration, the data of each melody line is checked along the music time axis, the position at which a note starts simultaneously on both lines is detected, and each time, the pitch data around the position is accessed to go straight. Is checked, and if it is a straight line progression, whether or not the straight line progression is prohibited straight line progression is calculated by calculating the pitch difference between lines at that position and based on the calculation result, a simple In spite of the configuration, it is possible to reliably detect the forbidden straight line progress. This configuration is particularly useful for beginners and learners who are not rich in musical experience, and can inform the learner in advance of an acoustic test of a prohibited straight-ahead location that has sound problems. Hereinafter, an embodiment of the present invention will be described with reference to the drawings. In this embodiment, the present invention is applied to an automatic music composer, and its entire configuration is shown in FIG. The melody 1 generating device 1 and the melody 2 generating device 2 generate a melody 1 and a melody 2 respectively, and are of the type shown in Japanese Patent Application Nos. 62-86571 and 62-121037 by the present applicant. Composer can be used. Each of the melody generating devices 1 and 2 generates a melody from the melody characteristic parameter and the chord progression, and can change the melody to be generated by changing the melody characteristic parameter to be used. Each time it is started, an internal random number generator (not shown) operates to generate changed melody feature parameters. The harmony progression / concordance evaluation unit 3 includes the melody 1 generation device 1
The melody 1 and the melody 2 generated by the melody 2 generating device 2 are evaluated. In this example, the degree of compatibility between the melody 1 and the melody 2 is evaluated using the consonance memory 4. The harmony progression memory 5 is used to check whether or not the harmony progression of the melody 1 and the melody 2 includes the forbidden direct progression harmony progression. The evaluation result of the harmony progression / concordance evaluation section 3 is output to the monitor 6. If the evaluation result is not preferable, the user activates the melody 1 generation device 1 and the melody 2 generation device 2 again via the input device (not shown). As a result, each of the generating devices 1 and 2 generates a melody feature parameter different from the last time by the random number generator. FIG. 2 shows the consonance memory 4 and the forbidden harmony progression memory 5.
The following shows an example of data. The head address of the consonance memory 4 stores the number of data, and the subsequent address stores consonance data for two musical intervals. The address i corresponds to two tones having a pitch of semitone x (i-1), and in the example of the figure, a semitone x 0 (same tone), a semitone x 5 (complete fourth), and a semitone x 7 (complete 5) Degree), which is assigned a value of “3” indicating the best compatibility, is minor 2 degrees, major 2 degrees, reduced 5 degrees, and minor 7
"1", indicating that the concordance is the worst for degrees and degrees 7
, And an intermediate value of “2” is assigned to the other pitches. In the forbidden harmony progression memory 5, the number of data is stored at the head address, and the data indicating the frequency (pitch difference) of the forbidden straight-line progression is stored at the subsequent address. For example, data having a value of “0” represents perfect 1 degree, which means that perfect 1 degree straight progression is prohibited harmony progression in relation to the evaluation unit 3. FIG. 3 shows the configuration of the evaluation unit 3. Front-back pitch difference calculator 31
Calculates the pitch difference between the sounds before and after the melody 1, and the front and rear pitch calculating unit 32 calculates the pitch difference between the sounds before and after the melody 2. On the other hand, the inter-line pitch calculating unit 33 calculates the pitch difference between the melody 1 and the melody 2 at the same time. The pitch difference between the melody 1 and the melody 2 at each time calculated by the inter-line pitch difference calculation unit 33 is passed to the consonance accumulation unit 34. The consonance accumulating section 34 reads consonance data corresponding to the given pitch difference from the consonance memory 4 and accumulates the data to calculate the consonance between the melody 1 and the melody 2. Melody 1 is calculated based on the calculation results of the above elements 31, 32, and 33.
And melody 2 represent a harmony progress. The straight progress detection unit 35 is to detect the straight progress that can be included in the harmony progress and the frequency of the straight progress. here,
The straight progression is a progression when the direction of the change of the pitch of the melody 1 and the direction of the change of the pitch of the melody 2 are the same. The rectilinear progress from the rectilinear progress detection unit 35 and the frequency thereof are sent to the prohibition chord progress detection unit 36. The prohibition harmony progress detection unit 36
In order to check whether the straight progression of the given frequency is a prohibited harmony progression, the data in the prohibited harmony progression memory 5 is searched. If there is data of the matching frequency, it means that the prohibited harmony progress has been detected. FIG. 4 shows the general flow of the present embodiment. First, a melody 1 is generated by the melody 1 generation device 1 (4-
1) Next, the melody 2 is generated by the melody 2 generating device 2 (4-2). Subsequently, the harmony progression / concordance evaluation unit 3 executes the evaluation for the melody 1 and the melody 2. Prompts the user for input corresponding to the evaluation result (4-
4) If it is not OK, return to 4-1 and repeat the generation of the melody. FIG. 5 shows the details of the evaluation 4-3. In the figure, i is a counter for counting the length from the beginning of the section to be evaluated in increments of the basic unit time, OC1 (2) is a counter for counting note numbers in the evaluation section of melody 1 (2), lC1
(2) is a counter for counting the length of the note of melody 1 (2), and fl1 (2) is a flag set to "1" at the start position of the note of melody 1 (2) (see FIG. 5). ). First, the data of the consonance memory 4 and the forbidden harmony progression memory 5 are read (5-1). Details of this data reading are shown in FIG. As a result, the congruence data for the interval indicated by i is stored in the register of hamoi,
In palln, the number of prohibited harmony straight progress patterns is stored, and in palli, the frequency of each prohibited pattern is stored. Next, initialization 5-2 is performed. The details of this processing are shown in FIG. Here, the calculated total length Shigumamr 1 full length Shigumamr 2 melody 2 melody 1, the shorter is stored in the register length. This length data is used to check the completion of the evaluation processing of FIG. Furthermore, note counters OC1, OC2, pitch counters lC1, lC2,
The evaluation value register is initialized. At 5-3, the counter i of the reference unit tone length is initialized to "1", and at 5-17, the loop of 5-4 to 5-17 is repeated until i> length. A flag fl indicating whether a new note has been entered in 5-4.
1, fl2 is reset to "0", and the note length counters IC1 and IC2 of the notes of the melody 1 and 2 are incremented in 5-5. Next, it is checked whether or not the value of the note length counter lC1 of the note of melody 1 has reached the note length mr1 0C of the note of melody 1 of interest, that is, whether or not the note of melody 1 should be advanced to the next. (5-6) If the condition is satisfied, the note counter OC1 of melody 1 is incremented, and fl1 is set to "1" to indicate that a new note has been entered (5-8). The same operation is performed for the melody 2 (5-8, 5-9). In 5-10, the pitch difference between the notes of the melody 1 and the melody 2 of interest is calculated and set in the register S1, and the pitch of the note of the melody 1 of interest and the note immediately preceding it is calculated. The difference is calculated and set in the register S2, the pitch difference between the note of the melody 2 of interest and the note immediately before it is calculated and set in the register S3. At 5-11, the corresponding consonance data is extracted from the contents of the register S1 and added to the accordion data accumulator. At 5-12, it is checked whether or not the notes of the melody 1 and the melody 2 are both the starting positions by fl1 = fl2 = 1, and when they are satisfied, it is checked at 5-13 whether or not they are orthogonal. This check is performed by, for example, checking whether | S2−S3 | ≦ 1, that is, whether or not the difference between the pitch change of the melody 1 and the pitch change of the melody 2 is a minor second or less. Instead, S2> 0 and S3> 0 or S2 <0 and S3
Whether or not <0 may be established may be checked. When the orthogonal relationship is established, the process proceeds to 5-14, where it is checked whether the orthogonal relationship is a prohibited orthogonal relationship. This is performed by checking whether or not data matching the pitch difference S1 between the sounds of the melody 1 and the melody 2 is included in the set of the prohibited frequency data palli. When the condition holds, the flag NG is set to “1” to notify later that there is a prohibited pattern (instead of this,
The counter may count the number of times that the condition is satisfied.) Increment the counter i of the reference note length (5-1)
6), 5 until the value exceeds the value of length
-4 is repeated. The melody 1 generation device 1 and the melody 2 generation device 2
For, any other suitable melody generator can be used. For example, as the melody 2 generation device 2, the melody 1 generated by the melody 1 generation device 1 is first-order converted (for example, the melody 1 is shifted backward by one bar to shift the pitch data to 5 or 4 degrees). ) Things can be used. Further, in the present invention, the melody generating device is not always necessary, and the melody 1 and 2 may be created by the user. [Effects of the Invention] As described above in detail, according to the present invention, the melody feature parameter is randomly generated by the automatic music composition means, and the first melody line is generated based on the melody feature parameter and the chord progression. A second melody line is generated, a pitch difference between a current note and a previous note in the generated first melody line is calculated by first pitch difference calculating means, and a current pitch and a current pitch in the generated second melody line are calculated. The pitch difference of the note is calculated by the second pitch difference calculating means, and the pitch difference from the first pitch difference calculating means is compared with the pitch difference from the second pitch difference calculating means. (Linear progress detection means), and calculates the pitch difference between the current note on the first melody line and the current note on the second melody line (third pitch difference calculation means). ), Detected direct progress is prohibited Whether or not the vehicle travels straight is determined based on the pitch difference from the third pitch difference calculating means (prohibited straight-traveling determining means). Therefore, it is possible to automatically determine whether or not a forbidden straight-line progression is not included between the melody lines composed by the automatic music composition means, and by detecting the prohibited straight-line progression by operating the automatic music composition means again. In this way, it is possible to easily compose a plurality of melody lines without a prohibited straight line. Further, according to the present invention, when the data representing the first melody line and the data representing the second melody line are provided (melody data providing means), each melody along the music time axis of each melody line is provided. The data of the line is examined, and when a new note starts on both the first and second melody lines (position) is detected (both line note start detecting means), and in response to this detection operation, the first and second melody lines are detected. The pitch difference between the new note and the immediately preceding note in the second melody line is calculated (first and second pitch difference calculating means), and the pitch difference from the first and second pitch difference calculating means is calculated. Comparing with each other, detecting a straight-line progression based on the result of the comparison (direct-movement detecting means), and responding to the detection operation, by comparing the new note of the first melody line with the new note of the second melody line. Calculate the pitch difference (third pitch difference Detecting means) detecting the straight traveling is determined based on whether or not the prohibition Direct progresses to the pitch difference from the third pitch difference calculating means (prohibiting direct progress discriminating means).
Therefore, it is possible to reliably detect the prohibited straight-ahead progression with a simple configuration. This configuration is particularly useful for beginners and learners who are not rich in musical experience, and can inform the learner in advance of a sound-problematic prohibited straight line progression prior to the auditory test. Therefore, the user can easily know whether or not the melody progression of the two melody lines is good or bad from the analysis result of the melody analysis device according to the present invention. As a result, the burden on the user for checking the progress of the harmony is greatly reduced, and a song that complies with the rules for the progress of the harmony can be created with less effort.
【図面の簡単な説明】
第1図はこの発明を自動作曲機に適用した実施例の全体
構成図、第2図は協和性メモリと禁止和声進行メモリの
データ例を示す図、第3図は和声進行/協和性評価部の
構成図、第4図は実施例の全体の動作を示すフローチャ
ート、第5図は評価のフローチャート、第6図はカウン
タの動きを示す図、第7図はデータ読み込みのフローチ
ャート、第8図は初期設定のフローチャートである。
3……和声進行/協和性評価部、5……禁止和声進行メ
モリ、31、32……前後音高差算出部、33……ライン間音
高差算出部、35……直行進行検出部、36……禁止和声進
行検出部。BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is an overall configuration diagram of an embodiment in which the present invention is applied to an automatic composer, FIG. 2 is a diagram showing data examples of a consonance memory and a forbidden harmony progression memory, FIG. Is a block diagram of the harmony progression / concordance evaluation unit, FIG. 4 is a flowchart showing the overall operation of the embodiment, FIG. 5 is a flowchart of the evaluation, FIG. 6 is a diagram showing the operation of the counter, and FIG. FIG. 8 is a flowchart of data reading, and FIG. 8 is a flowchart of initialization. 3: Harmonic progression / concordance evaluation unit, 5: Prohibition harmony progression memory, 31, 32 ... Front-back pitch difference calculation unit, 33 ... Line-to-line pitch difference calculation unit, 35 ... Straight-line progression detection Section, 36 ... Prohibited harmony progress detection section.
Claims (1)
ィ特徴パラメータとコード進行とに基づいて第1のメロ
ディラインと第2のメロディラインを生成する自動作曲
手段と、 第1のメロディラインにおける現在と直前の音符の音高
差を算出する第1音高差算出手段と、 第2のメロディラインにおける現在と直前の音符の音高
差を算出する第2音高差算出手段と、 第1音高差算出手段からの音高差と第2音高差算出手段
からの音高差とを比較し、この比較結果に応じて直行進
行を検出する直行進行検出手段と、 第1のメロディラインにおける現在の音符と第2のメロ
ディラインにおける現在の音符との音高差を算出する第
3音高差算出手段と、 上記直行進行が禁止直行進行か否かを上記第3音高差算
出手段からの音高差に基づいて判別する禁止直行進行判
別手段と、 を有することを特徴とするメロディ分析機。 2.第1のメロディラインを表わすデータと第2のメロ
ディラインを表わすデータを付与するメロディデータ付
与手段と、 各メロディラインの音楽時間軸に沿って各メロディライ
ンのデータを調べ、第1と第2のメロディラインで新た
な音符がともに開始したときを検出する両ライン音符開
始検出手段と、 両ライン音符開始検出手段の検出動作に応答して、第1
のメロディラインにおける新たな音符と直前の音符との
音高差を算出する第1音高差算出手段と、 両ライン音符開始検出手段の検出動作に応答して、第2
のメロディラインにおける新たな音符と直前の音符との
音高差を算出する第2音高差算出手段と、 第1音高差算出手段からの音高差と第2音高差算出手段
からの音高差とを比較し、この比較結果に応じて直行進
行を検出する直行進行検出手段と、 両ライン音符開始検出手段の検出動作に応答して、第1
のメロディラインにおける新たな音符と第2のメロディ
ラインにおける新たな音符との音高差を算出する第3音
高差算出手段と、 上記直行進行が禁止直行進行か否かを上記第3音高差算
出手段からの音高差に基づいて判別する禁止直行進行判
別手段と、 を有することを特徴とするメロディ分析機。(57) [Claims] Automatic melody generating means for generating a melody feature parameter as a random number and generating a first melody line and a second melody line based on the melody feature parameter and the chord progression; current and previous notes in the first melody line First pitch difference calculating means for calculating the pitch difference between the first and second notes, second pitch difference calculating means for calculating the pitch difference between the current note and the immediately preceding note on the second melody line, and first pitch difference calculating means And a pitch difference from the second pitch difference calculation means, and based on the result of the comparison, a straight progress detection means for detecting a straight progress, and a current note in the first melody line. A third pitch difference calculating means for calculating a pitch difference from a current note in the second melody line; and a pitch difference from the third pitch difference calculating means for determining whether or not the straight-line progression is prohibited straight-line progression. Prohibition determined based on Melody analyzer characterized by having a a direct progress discriminating means. 2. Melody data assigning means for assigning data representing the first melody line and data representing the second melody line; and examining the data of each melody line along the music time axis of each melody line. A two-line note start detecting means for detecting when a new note starts at the melody line, and a first note in response to the detecting operation of the two-line note start detecting means.
A first pitch difference calculating means for calculating a pitch difference between a new note and a preceding note in the melody line of the second melody line;
A second pitch difference calculating means for calculating a pitch difference between a new note and the immediately preceding note in the melody line of the melody line, and a pitch difference from the first pitch difference calculating means and a second pitch difference calculating means. A linear progression detecting means for comparing the pitch difference with the pitch difference and detecting a linear progression according to the comparison result;
A third pitch difference calculating means for calculating a pitch difference between a new note in the melody line and a new note in the second melody line; and a third pitch determining whether or not the straight-line progression is prohibited straight-line progression. A melody analyzer comprising: a prohibition straight-line progression determination unit that determines based on a pitch difference from a difference calculation unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62332198A JP2733938B2 (en) | 1987-12-31 | 1987-12-31 | Melody analyzer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62332198A JP2733938B2 (en) | 1987-12-31 | 1987-12-31 | Melody analyzer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01179073A JPH01179073A (en) | 1989-07-17 |
| JP2733938B2 true JP2733938B2 (en) | 1998-03-30 |
Family
ID=18252269
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62332198A Expired - Fee Related JP2733938B2 (en) | 1987-12-31 | 1987-12-31 | Melody analyzer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2733938B2 (en) |
-
1987
- 1987-12-31 JP JP62332198A patent/JP2733938B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH01179073A (en) | 1989-07-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5003860A (en) | Automatic accompaniment apparatus | |
| US20040123726A1 (en) | Performance evaluation apparatus and a performance evaluation program | |
| JP2562370B2 (en) | Automatic accompaniment device | |
| US4704933A (en) | Apparatus for and method of producing automatic music accompaniment from stored accompaniment segments in an electronic musical instrument | |
| US4448104A (en) | Electronic apparatus having a tone generating function | |
| JP3196604B2 (en) | Chord analyzer | |
| JP3132099B2 (en) | Scale discriminator | |
| JP2733938B2 (en) | Melody analyzer | |
| JP3489503B2 (en) | Sound signal analyzer, sound signal analysis method, and storage medium | |
| JPH07129158A (en) | Instrument playing information analyzing device | |
| JP2661012B2 (en) | Automatic composer | |
| JP3271331B2 (en) | Melody analyzer | |
| JPH0816160A (en) | Performance analysis device | |
| JP2500879Y2 (en) | Melody analyzer | |
| US5512706A (en) | Automatic accompaniment device having a fill-in repeat function | |
| JP2560485B2 (en) | Electronic musical instrument | |
| JP3092197B2 (en) | Pitch extraction device | |
| JPS61156099A (en) | Automatic performancer | |
| JP3364940B2 (en) | Automatic composer | |
| JP2713053B2 (en) | Code display of electronic musical instrument | |
| JP3092198B2 (en) | Pitch extraction device | |
| JPS6019198A (en) | Electronic keyboard musical instrument | |
| JPH04163486A (en) | Regulating discriminating device | |
| JP2787723B2 (en) | Music part generator | |
| JP3376616B2 (en) | Automatic accompaniment device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |