JPH07111636B2 - Automatic code addition device - Google Patents
Automatic code addition deviceInfo
- Publication number
- JPH07111636B2 JPH07111636B2 JP63082884A JP8288488A JPH07111636B2 JP H07111636 B2 JPH07111636 B2 JP H07111636B2 JP 63082884 A JP63082884 A JP 63082884A JP 8288488 A JP8288488 A JP 8288488A JP H07111636 B2 JPH07111636 B2 JP H07111636B2
- Authority
- JP
- Japan
- Prior art keywords
- chord
- melody
- data
- scale
- note
- 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
【発明の詳細な説明】 [発明の技術分野] 本発明は与えられたメロディに対し自動的にコードを付
加することが可能な自動コード付加装置に関する。Description: TECHNICAL FIELD OF THE INVENTION The present invention relates to an automatic chord adding device capable of automatically adding a chord to a given melody.
[従来技術] 予め与えられたメロディに対しコードを自動的に付加す
る自動コード付加装置は既に知られている。[Prior Art] An automatic code adding device for automatically adding a code to a given melody is already known.
例えば、特開昭58−87593号に開示される自動コード付
加装置は次のようにしてコードを決定する。For example, the automatic code adding device disclosed in JP-A-58-87593 determines a code as follows.
(イ)12の調について、 Σ(音階音×音価)−Σ(音階外音×音価)を計算し、
最大となる調を採択する。(B) For 12 tones, calculate Σ (note scale × note value) -Σ (note outside note × note value),
Adopt the maximum tone.
(ロ)メロディの最終音により長調か短調かを決定する
(なお、(イ)では、平行調、例えばハ長調とイ短調は
区別しない)。(B) The final note of the melody is used to determine whether the key is a major key or a minor key (note that (a) does not distinguish parallel key, for example, c major and a minor key).
(ハ)上記(イ)、(ロ)により決定された調から7種
のコード(ダイアトニックコード)を選択する(例え
ば、ハ長調の場合、Cmaj、Dmin、Emin、Fmaj、Gmaj、Am
in、Bdimを選択する)。(C) Select seven chords (diatonic chords) from the keys determined in (A) and (B) above (for example, in C major, Cmaj, Dmin, Emin, Fmaj, Gmaj, Am
Select in, Bdim).
(ニ)ブロック(小節)毎に、7種の各コードの構成音
とメロディの音高との適合度(類似度)を計算する。(D) For each block (measure), the compatibility (similarity) between the constituent notes of each of the seven chords and the pitch of the melody is calculated.
(ホ)適合度に和音優先順位テーブル(隣り合う2つの
コードの推移頻度)による優先度を乗算する。(E) The fitness is multiplied by the priority according to the chord priority table (transition frequency of two adjacent chords).
(ヘ)7種のコードのうちで、評価値=適合度×優先度
を最大にするコードを決定する。(F) Of the seven types of codes, the code that maximizes the evaluation value = the goodness of fit × the priority is determined.
本件出願人も特開昭58−114097号において自動コード付
加装置を開示している。この自動コード付加装置は次の
ようにしてコードを付加する。The applicant of the present application also discloses an automatic code adding device in Japanese Patent Laid-Open No. 58-114097. This automatic code adding device adds a code as follows.
(a)最終音により調性を決定する。(A) Tonality is determined by the final tone.
(b)ブロック(小節)内のメロディにより支配的な音
(主音)を決定する。(B) The dominant sound (tongue) is determined by the melody in the block (measure).
(c)主音と前回のコードとにより、テーブルを参照し
てコードを決定する。(C) The chord is determined by referring to the table based on the tonic and the previous chord.
しかし、いずれの従来例も入力されるメロディに対する
暗黙の限定条件(曲の最後までメロディを入力しなけれ
ばならない。曲の途中で転調してはならない)がある。
また、出力としてのコード進行が1つしかないため他の
有力なコード進行が捨てられることになる、といった問
題点がある。However, in each of the conventional examples, there is an implicit limiting condition for the melody that is input (the melody must be input until the end of the song. Do not transpose in the middle of the song).
In addition, since there is only one chord progression as an output, other prominent chord progressions are discarded.
[発明の目的] したがって、本発明の目的は、入力されるメロディの長
さ、転調の有無等の限定条件なしに、また付加可能なコ
ードを捨てることなくより音楽的な根拠に基づいてメロ
ディ、特に調性音楽のメロディに適したコードを付加す
る自動コード付加装置を提供することである。[Object of the Invention] Accordingly, an object of the present invention is to provide a melody based on a more musical basis without limiting conditions such as the length of a melody to be input and the presence or absence of modulation, and without discarding chords that can be added. In particular, it is to provide an automatic chord adding device for adding a chord suitable for a melody of tonal music.
[発明の構成] 本発明は上記の目的を達成するため、与えられたコード
候補からアヴェイラブルノートスケールを生成する生成
手段と、生成されたアヴェイラブルノートスケールと与
えられたメロディとの関係を評価することにより、コー
ド候補がメロディに付加可能か否かを決定する決定手段
を有することを特徴とする(第1構成)。[Configuration of the Invention] In order to achieve the above object, the present invention relates to a relation between a generating unit that generates an available note scale from a given chord candidate and a generated melody note and a given melody. By determining whether or not the chord candidate can be added to the melody (first configuration).
本発明のもう1つの側面によれば、上記構成に加え、メ
ロディとコード候補に対し、非和声音を分類する知識を
適用してメロディに含まれる非和声音を分類することに
より、コード候補がメロディに付加可能か否かを検査す
る検査手段が設けられる。この場合、上記決定手段と検
査手段の両方の検査に合格したコード候補がメロディに
付加可能なコードと判定される(第2構成)。According to another aspect of the present invention, in addition to the above configuration, by applying knowledge for classifying nonharmonic sounds to a melody and chord candidates to classify nonharmonic sounds included in a melody, chord candidates can be obtained. Inspection means is provided to inspect whether or not the melody can be added. In this case, the chord candidates that have passed the inspections of both the determining means and the inspecting means are determined to be chords that can be added to the melody (second configuration).
[発明の作用] 上記第1構成よれば、コード候補が与えられた場合に生
成手段により、そのコード候補に対応するアヴェイラブ
ルノートスケールが生成される。生成されたアヴェイラ
ブルノートスケールは決定手段によりメロディと照合さ
れ、両者の関係(メロディの構成音とアヴェイラブルノ
ートスケールの構成音との関係)が決定され、この決定
に従って、コード候補がメロディに付加可能か否かが決
定される。アヴェイラブルノートスケール(特にダイア
トニックのタイプ)は調性と密接な関係があるため、本
発明の自動コード付加装置は、特に調性音楽のメロディ
のコード付けに有効である。また本発明では、付加する
コードを決定する上で、メロディに対する調(キー)を
特定しないので、誤った調判定に基づく誤ったコード付
けを回避でき、したがってコード付けを行うメロディの
長さも限定されないし、転調を含むメロディに対しても
対応できる。[Operation of the Invention] According to the first configuration, when the chord candidate is given, the generating unit generates the available note scale corresponding to the chord candidate. The generated available note scale is compared with the melody by the determining means, the relationship between them (the relationship between the melody constituent sound and the available note scale constituent sound) is determined, and the chord candidate is the melody according to this determination. It is determined whether or not it can be added to. Since the available note scale (particularly the diatonic type) is closely related to the tonality, the automatic chord adding device of the present invention is particularly effective for coding the melody of tonality music. Further, in the present invention, since the key (key) for the melody is not specified in determining the chord to be added, erroneous chording based on erroneous key decision can be avoided, and therefore the length of the melody to be chorded is not limited. However, it can handle melody including modulation.
一方、第2構成においては、コード候補とメロディの情
報を基にメロディの非和声音を分類する手段が設けられ
ている。この手段は非和声音を分類する知識を備えてお
り、与えられたコード候補の構成音と同音のメロディ音
を和声音とみて、残りのメロディ音の性格(非和声音の
種類)を分析する。この非和声音の分類はスケールを考
慮することなく行われる。結果として、検査手段が使用
可能としたコード候補はメロディに対する幅の広い連想
を表わしている。これに対し、決定手段は、この検査手
段の幅の広い連想を調性と関係するスケール(音階)の
面から絞り込むように作用する。On the other hand, in the second configuration, means is provided for classifying the non-harmonic tones of the melody based on the chord candidate and the melody information. This means has the knowledge to classify non-harmonic sounds, considers the melody sounds that are the same as the constituent sounds of the given chord candidate to be harmony sounds, and analyzes the character of the remaining melody sounds (type of non-harmonic sounds). . This non-harmonic classification is done without considering scale. As a result, the chord candidates that the checking means can use represent a wide range of associations with the melody. On the other hand, the deciding means acts so as to narrow down the wide association of the checking means from the aspect of scale (scale) related to tonality.
[実施例] 以下、図面を参照して本発明の一実施例について説明す
る。[Embodiment] An embodiment of the present invention will be described below with reference to the drawings.
〈全体構成〉 本実施例に係る自動コード付加装置の全体構成を第1図
に示す。1はCPUであり、コード付加のための全体的な
制御を行う。ワークメモリ2はコードデータ等を一時記
憶するのに用いられる。入力装置3はメロディデータの
入力等に用いられる。メロディ入力装置としては、例え
ば鍵盤(リアルタイム入力)が使用できる。モニター4
はCRT、楽音形成回路、サウンドシステム等から構成さ
れ、メロディとコード(伴奏)の表示、出力等を行う。
入力装置3から入力されたメロディデータはメロディデ
ータメモリ5に記憶される。プロダクションルールデー
タメモリ6には、コード候補とメロディの特徴(音程の
進行、和声音の位置等)が与えられたときにメロディに
含まれる非和声音を分類する音楽知識を表現するデータ
(プロダクションルール)が記憶される。コード構成音
メモリ7には各コードタイプのコード構成音データが記
憶される。<Overall Configuration> FIG. 1 shows the overall configuration of the automatic code adding apparatus according to the present embodiment. Reference numeral 1 is a CPU, which performs overall control for code addition. The work memory 2 is used to temporarily store code data and the like. The input device 3 is used for inputting melody data and the like. As the melody input device, for example, a keyboard (real time input) can be used. Monitor 4
Is composed of CRT, tone forming circuit, sound system, etc., and displays and outputs melody and chord (accompaniment).
The melody data input from the input device 3 is stored in the melody data memory 5. In the production rule data memory 6, data expressing musical knowledge for classifying non-harmonic sounds included in a melody (production rule when a chord candidate and melody characteristics (pitch progression, position of harmonic sound, etc.) are given. ) Is stored. The chord component sound memory 7 stores chord component sound data of each chord type.
本実施例の自動コード付加装置はメロディを区間(小
節)ごとに処理し、各小節のメロディに対するコードを
決定する。コード決定のため、本実施例では3つの手段
が用いられる。第1は、コード構成音とメロディとのマ
ッチングによるコード可否の判定、第2は非和声音の分
類によるコード判定、第3は音階(アヴェイラブルノー
トスケール)によるコード判定である。3つの判定に合
格したコードが最終的に付加可能とされる。第1の手段
は、プロダクションルールデータに依存せず、コード構
成音との一致度が低いメロディに対しては、そのコード
を付加できないコードと判定する。第2の手段(非和声
音の分類によるコード判定)は、与えられたコード候補
の構成音情報等を利用してメロディの音列の特徴を導出
し、この特徴にプロダクションルールデータメモリ6の
知識を適用してメロディの各音がどのような性格の音で
あるかを推論する。コード候補の仮定が正しいときに
は、メロディのすべての音についてその性格が判明す
る。しかし、コード候補の仮定に誤りがあるときには、
メロディのなかに分類できない音(違法な音)が検出さ
れる。したがって、推論結果のなかに違法な音が含まれ
るとき、仮定したコード候補はメロディに付加可能なコ
ードから除外される。第3の手段はコード候補からアヴ
ェイラブルノートスケールを生成する。その際、コード
の3大機能(トニック、ドミナント、サブドミナント)
の可能性を考慮する。例えば、アヴェイラブルノートス
ケールがダイアトニックスケールの場合、コード候補の
根音を主音(トニック)とするダイアトニックスケー
ル、コード候補の根音をドミナント音とするダイアトニ
ックスケール、コード候補の根音をサブドミナント音と
するダイアトニックスケールを生成する。そして、これ
らのアヴェイラブルノートスケールとメロディ構成音と
のマッチングをとり、メロディがアヴェイラブルノート
スケールの音から成り立つかどうかを調べる。メロディ
構成音がアヴェイラブルノートスケールの部分集合であ
るという関係が成立するときにのみ、コード候補はメロ
ディに付加可能なコードと判定される。The automatic chord adding device of this embodiment processes a melody for each section (measure) and determines a code for the melody of each measure. Three means are used in the present embodiment for code determination. The first is determination of whether or not a chord is possible by matching a chord constituent sound and a melody, the second is chord determination by classification of non-harmonic tones, and the third is chord determination by a scale (available note scale). A code that passes the three judgments can be finally added. The first means does not depend on the production rule data and determines that the chord cannot be added to a melody having a low degree of coincidence with the chord-constituting sound. The second means (chord determination by classification of non-harmonic tones) derives the characteristic of the melody tone sequence by using the constituent note information of the given chord candidates, and the knowledge of the production rule data memory 6 based on this characteristic. Is applied to infer what kind of character each sound of the melody is. When the assumptions of chord candidates are correct, the character of all the notes in the melody is known. However, when the assumption of the code candidate is incorrect,
Sounds that cannot be classified in the melody (illegal sounds) are detected. Therefore, when the inference result includes an illegal sound, the assumed chord candidate is excluded from the chords that can be added to the melody. The third means generates an available note scale from the chord candidates. At that time, the three major functions of the code (tonic, dominant, subdominant)
Consider the possibility of. For example, when the available note scale is the diatonic scale, the diatonic scale with the root note of the chord candidate as the tonic, the diatonic scale with the root note of the chord candidate as the dominant sound, and the root note of the chord candidate Generates a diatonic scale as a subdominant sound. Then, by matching these available note scales with the melody constituent sounds, it is checked whether or not the melody is composed of the sounds of the available note scales. The chord candidates are determined as chords that can be added to the melody only when the relationship that the melody constituent notes are a subset of the available note scale is established.
〈全体動作〉 第2図に本実施例のゼネラルフローを示す。<Overall Operation> FIG. 2 shows the general flow of this embodiment.
まず2−1でCPU1はメロディデータメモリ5からワーク
メモリ2にメロディデータを読み込む。2−2でプロダ
クションルールデータメモリ6よりプロダクションルー
ルデータを読み込む。次に分解能(BEAT)を決定する
(2−3)。この処理はユーザーに直接入力してもらう
か、またはメロディ入力をリズムに同期して行う場合に
は、メロディ入力で使用したリズムの選択情報から決定
することで実行される。BEATは1小節の長さを最短音符
の数で表現した値をもつ。次に初期設定2−4でメロデ
ィの区間(小節)の数を設定し、小節のカウンタbarを
1に初期化する。これは、本例では小節毎にメロディに
対するコード付与を行っているからであり、この小節の
総数 (ここにMDNOはメロディの音符の総数、MRiはi番目の
音符の長さである)の情報は2−10の終了条件に用いら
れる。次に2−5で小節カウンタbarの示す区間のメロ
ディを、その先頭のデータ番号Psと最後尾のデータ番号
Peを特定することにより選択する。First, in 2-1 the CPU 1 reads the melody data from the melody data memory 5 into the work memory 2. In 2-2, the production rule data is read from the production rule data memory 6. Next, the resolution (BEAT) is determined (2-3). This processing is executed by the user directly inputting it, or when the melody input is performed in synchronization with the rhythm, it is determined from the selection information of the rhythm used for the melody input. BEAT has a value in which the length of one bar is expressed by the number of shortest notes. Next, in the initial setting 2-4, the number of melody sections (bars) is set, and the bar counter bar for bars is initialized to 1. This is because, in this example, chords are added to the melody for each measure. The information (where MDNO is the total number of notes in the melody and MRi is the length of the i-th note) is used as the ending condition of 2-10. Next, in 2-5, the melody in the section indicated by the bar counter bar is set to the data number Ps at the beginning and the data number at the end.
Select by specifying Pe.
以上の処理が終了した後、各々のコード判定に入る。す
なわち、2−6でコード候補の構成音とメロディとのマ
ッチングをとって各コード候補の付加の可否を判別す
る。判別結果を記憶するため、例えば変数CHOi、j(i
はコードタイプ、jはコード根音を表わす)にコード付
加の可否を示す識別値を設定する。2−7では判定2−
6で付加可能と判定されたコード候補のみに対し、非和
声音分類によるコード可否の判定を行う。2−8では判
定2−7で合格したコード候補のみに対し、音階(アヴ
ェイラブルノートスケール)によるコード可否を判定す
る。2−9の処理は変数CHOi、jを変数CDbar、i、j
(第bar小節において、タイプi、根音jのコードが付
加可能か否かを表わす変数)にデータ移動する処理であ
る。2−10ですべての小節についてコード判定が完了し
たかどうかをチェックし、完了してなければ小節カウン
タをインクリメントして2−5に戻る。After the above processing is completed, each code judgment is started. That is, in 2-6, it is determined whether or not each chord candidate can be added by matching the constituent sounds of the chord candidate with the melody. In order to store the discrimination result, for example, the variables CHOi, j (i
Is a chord type and j is a chord root), and an identification value indicating whether or not a chord can be added is set. Judgment in 2-7 2-
Only with respect to the chord candidates determined to be addable in step 6, the chord propriety is determined by the non-harmonic sound classification. In 2-8, it is determined whether or not the chord is available on the scale (available note scale) only for the chord candidates that pass the decision 2-7. In the processing of 2-9, the variable CHOi, j is changed to the variable CDbar, i, j.
This is a process of moving data to (variable indicating whether chord of type i and root j can be added in bar bar). At 2-10, it is checked whether the chord judgment is completed for all measures, and if not completed, the measure counter is incremented and the process returns to 2-5.
〈データ形式〉 第3図は以下のフローで用いるメロディデータとコード
データのフォーマット例を示したものである。この例で
は、メロディデータは音高データと音長データの列で表
現され、音高データは、16ビット長で上位8ビットがオ
クターブを表わし、下位8ビットがCを“0"として半音
ごとに1インクリメントする整数値で表現される、音長
データは最短の音長を“1"とし、その倍の音長は“2"と
いうような整数値で表わされる。<Data Format> FIG. 3 shows a format example of melody data and chord data used in the following flow. In this example, the melody data is represented by a string of pitch data and pitch length data, and the pitch data is 16 bits long, the upper 8 bits represent an octave, and the lower 8 bits are C for each semitone. The sound length data represented by an integer value incremented by 1 is represented by an integer value such that the shortest sound length is "1" and the doubled sound length is "2".
一方、コードデータは16ビット長で上位8ビットが種類
(コードタイプ)を表わし、下位8ビットがコードの根
音を表わす。On the other hand, the code data is 16 bits long, and the upper 8 bits represent the type (code type) and the lower 8 bits represent the root note of the chord.
〈メロディデータ読み込み〉 第2図のゼネラルフローの2−1で実行されるメロディ
データの読み込みの詳細を第5図に示す。第4図はメロ
ディデータメモリ5に記憶されるメロディデータ例(ベ
ートーベンの喜びの歌)である。第5図の処理の結果、
i番目の音高データはMDiに格納され、i番目の音長デ
ータはMRiに格納され、メロディ音の総数はMDNOに格納
される。<Reading Melody Data> FIG. 5 shows the details of reading the melody data executed in 2-1 of the general flow of FIG. FIG. 4 shows an example of melody data (a song of Beethoven's joy) stored in the melody data memory 5. As a result of the processing of FIG.
The i-th pitch data is stored in MDi, the i-th pitch length data is stored in MRi, and the total number of melody sounds is stored in MDNO.
〈プロダクションルールデータの読み込み〉 ゼネラルフローの2−2で実行されるプロダクションル
ールデータの読み込みの詳細を第6B図に示す。第6A図の
(a)にはプロダクションルールデータメモリ6に記憶
されるプロダクションルールデータ例が示されている。<Reading production rule data> Figure 6B shows the details of reading the production rule data executed in 2-2 of the general flow. FIG. 6A shows an example of the production rule data stored in the production rule data memory 6.
プロダクションルールの全体は、メロディに含まれる非
和声音を分類するための音楽知識(第6A図(b)、
(c)参照)を表現したものであり、各プロダクション
ルールデータは、ルールの前提部を規定するデータとし
て下限データLi、関数の種類を指示する関数指示データ
Xi、上限データUiを有し、ルールの結論部としてデータ
YiとNiを有する。関数は分析するメロディの特徴を数値
表現したもので、その例は後述する第14図に示される。
データXiで示される関数の値FxiがLi以上でかつUi以下
である(Li≦Fxi≦Ui)というのがプロダクションルー
ルの前提部(命題)であり、この前提部が成立するとき
の結論がデータYiで示され、この前提部が不成立のとき
の結論がデータNiで示されている。そして、データYiま
たはNiが正の値をもつときは、その値が後述する前向推
論において次に参照すべきプロダクションルールの番号
を示し、負の値をもつときは、その絶対値によって非和
声音の種類が表現される。前向推論は必ず1つのルール
から開始され、このルールのことをルールと呼ぶ。負の
値をもつ結論YiまたはNiをみつけたときに前向推論は終
了する。この負の値のなかに、第6A図(a)にillで示
す違法な音(どの非和声音にも該当しない音)を表わす
データが含まれる。後述するように、このような違法な
音が推論の結論になったときは、推論の前提であるコー
ドの仮定に誤りがあると考えて、そのコードをメロディ
に付加できないコードと判定している。The entire production rule is based on music knowledge (FIG. 6A (b), for classifying non-harmonic sounds included in a melody,
(See (c)), and each production rule data is the lower limit data Li as the data that defines the preamble of the rule, and the function instruction data that indicates the type of function.
Xi, upper limit data Ui, and data as the conclusion part of the rule
It has Yi and Ni. The function is a numerical representation of the characteristics of the melody to be analyzed, an example of which is shown in FIG. 14 described later.
The premise (proposition) of the production rule is that the value Fxi of the function indicated by the data Xi is greater than or equal to Li and less than or equal to Ui (Li ≦ Fxi ≦ Ui), and the conclusion when this premise is satisfied is the data. It is shown by Yi, and the conclusion when this premise is not satisfied is shown by data Ni. When the data Yi or Ni has a positive value, that value indicates the number of the production rule to be referred to next in the forward inference described later, and when it has a negative value, it is not summed by its absolute value. The type of voice sound is expressed. Forward inference always starts with one rule, and this rule is called a rule. The forward inference ends when it finds a conclusion Yi or Ni with a negative value. This negative value includes data representing an illegal sound (sound that does not correspond to any non-harmonic sound) shown by ill in FIG. 6A (a). As will be described later, when such an illegal sound reaches the conclusion of the inference, it is considered that the assumption of the chord, which is the premise of the inference, is incorrect, and it is determined that the chord cannot be added to the melody. .
第6B図に示すプロダクションルールデータのアドレス割
当の場合、各プロダクションルールのデータは下限デー
タLiのアドレスを先頭として5つの連続するアドレス
に、記憶される。詳細には5で割り切れるアドレスにLi
が、5で割った余り1のアドレスにXiが、余り2のアド
レスにUiが、余り3のアドレスにYiが、余り4のアドレ
スにNiのデータが記憶される。In the case of the address assignment of the production rule data shown in FIG. 6B, the data of each production rule is stored in five consecutive addresses starting from the address of the lower limit data Li. In detail, the address divisible by 5 is Li
However, the data of Xi is stored in the address of remainder 1 divided by 5, Ui is stored in the address of remainder 2, Yi is stored in the address of remainder 3, and Ni is stored in the address of remainder 4.
なお、第6B図においてrulenoには、プロダクションルー
ルの総数がセットされる。Note that the total number of production rules is set in ruleno in FIG. 6B.
〈メロディ小節の選択〉 第2図の2−5で実行されるメロディの小節の選択の詳
細を第7図から第9図に示す。この処理により、Psに
は、着目している小節の最初の音符がメロディデータ
{MDi}、{MRi}の何番目のデータであるかが入り、Pe
には着目している小節の次の小節の最初の音符よりひと
つの前の音符がメロディデータの何番目のデータである
かが入る。このPsとPeの情報は、後に詳述する判定処理
内において、調査すべきメロディデータの範囲を規定す
る。<Selection of Melody Bar> Details of the selection of the bar of the melody executed in 2-5 of FIG. 2 are shown in FIGS. 7 to 9. By this process, Ps contains the number of the melody data {MDi}, {MRi} of the first note of the bar of interest, and Pe
Contains the order of the melody data, which is one note before the first note of the measure next to the measure of interest. The information of Ps and Pe defines the range of melody data to be investigated in the determination process described in detail later.
〈コード構成音とのマッチング〉 ゼネラルフローの2−6で実行されるコード構成音とメ
ロディとのマッチングによるコード付加の可否の判定フ
ローの詳細を第10図に示す。29−1でコードタイプのカ
ウタンを初期化し、29−2でコード根音のカウンタを初
期化する。29−3で、コードタイプカウタンの示すコー
ドタイプの構成音データをコード構成音メモリ7(根音
がCのときの構成音データが記憶されている)より読み
出し、読み出したデータを根音カウンタの示す値だけ左
に転回してタイプi、根音jのコード構成音を得る。例
えばメジャーのコードタイプに対するコード構成音メモ
リ7のデータ(ド、ミ、ソを表わす)は000010010001
(2進)=091(16進)であり、根音がC♯(j=1)で
あれば、000100100010が得られる。29−4では、第Ps番
目から第Pe番目までのメロディの音符に含まれる音高デ
ータ(メロディ構成音)をコード構成音CCと同じデータ
形式に変換している。すなわち、変換後のメロディ構成
音データmmは、 mm=2(MDpsΛooff)V……V2(MDpsΛooff) で与えられる(Λは論理積、Λは論理和)。例えば、
ミ、レ、ドのメロディに対するmmは、000000010101とな
る。29−5の一致度評価では、 により、メロディ構成音とコード構成音との一致の割合
を算出している。上記式の分子は(CCΛmm)の各ビット
に対し、1の桁の数をカウントすることにより得られ、
分母はmmの各ビットに対し1の桁の数をカウントするこ
とにより得られる。<Matching with chord constituent sounds> Fig. 10 shows the details of the chord addition possibility judgment flow based on the matching between the chord constituent sounds and the melody executed in 2-6 of the general flow. 29-1 initializes chord type cowton, and 29-2 initializes chord root counter. At 29-3, the constituent tone data of the chord type indicated by the chord type kautan is read from the chord constituent tone memory 7 (where the constituent tone data when the root note is C is stored), and the read data is read as a root note counter. By turning to the left by the value indicated by, the chord component sound of type i and root j is obtained. For example, the data (representing “do”, “mi”, “so”) in the chord component sound memory 7 for the major chord type is 000010010001.
If (binary) = 091 (hexadecimal) and the root note is C # (j = 1), 000100100010 is obtained. In 29-4, the pitch data (melody constituent sound) included in the notes of the Psth to Peth melodies is converted into the same data format as the chord constituent sound CC. That is, the converted melody component sound data mm is given by mm = 2 (MDpsΛooff) V ... V2 (MDpsΛooff) (Λ is a logical product, Λ is a logical sum). For example,
The mm for the melody of Mi, Le, and Do is 000000010101. In the 29-5 agreement evaluation, Thus, the proportion of coincidence between the melody constituent sound and the chord constituent sound is calculated. The numerator of the above equation is obtained by counting the number of digits of 1 for each bit of (CCΛmm),
The denominator is obtained by counting the number of ones digits for each bit of mm.
29−6で一致度が所定の割合(図では50%)以上かどう
かをチェックする。このチェックは、メロディ構成音と
の一致度が低いコード候補を付加不能なコードと判定
し、高いコード候補のみ選択するためにある。すなわち
チェック成立のときは、CHOij=1により使用可を設定
し(29−7)、チェック不成立のときはCHOij=0によ
り使用不可を設定する。その後、根音カウンタjをイン
クリメントし(29−9)、j=0〜ROOTN−1(ROOTN=
12)、すなわちすべての根音について29−2以下の処理
を繰り返す(29−10)。1つのコードタイプについてす
べての根音のコードに対する判定が完了したらコードタ
イプカウンタiをインクリメントし(29−11)、i=0
〜TYPEN−1(TYPENはコードタイプの総数)、すなわち
すべてのコードタイプについて判定処理を繰り返す(29
−12)。At 29-6, it is checked whether the degree of coincidence is a predetermined ratio (50% in the figure) or more. This check is for determining a chord candidate having a low degree of coincidence with the melody component sound as an unaddable chord and selecting only a chord candidate having a high degree. That is, when the check is established, the use is set by CHOij = 1 (29-7), and when the check is not established, the use is set by CHOij = 0. Then, the root note counter j is incremented (29-9), and j = 0 to ROOTN-1 (ROOTN =
12), that is, the processes of 29-2 and below are repeated for all roots (29-10). When the judgment for all root chords of one chord type is completed, the chord type counter i is incremented (29-11), and i = 0
~ TYPEN-1 (TYPEN is the total number of code types), that is, the determination process is repeated for all code types (29
-12).
第10図のマッチング処理の結果、全てのコード{i、
j}のうち、メロディ構成音とある程度以上一致するコ
ードのみが使用可と判定される。As a result of the matching process in FIG. 10, all codes {i,
Only the chords of j} that match the melody constituent sounds to some extent or more are determined to be usable.
〈非和声音の分類による判定〉 ゼネラルフローの2−7で実行される処理の詳細を第11
図に示す。<Judgment by classification of non-harmonic sounds> For details of the processing executed in 2-7 of the general flow, refer to Section 11
Shown in the figure.
30−1と30−2は29−1、29−2と同様でコードのタイ
プカウンタiと根音カウンタjの初期設定である。30−
3に示すように、非和声音の分類による判定を実際に行
うのは、CHOijが使用可(CHOij=1)のときのみであ
る。非和声音分類30−4の詳細については後で説明する
が、この処理で変数RSk(k=1〜RSNO)に非和声音ま
たは違法音(ill)の識別値が設定される。分類された
非和声音の数のカウンタkを1に初期化し(30−5)、
識別子RSk(k=1〜RSNO)のなかに1つでも違法な音
を表わすデータillが入っていればそのCHOijを使用不可
の値に書き換える(30−6、30−7、30−8、30−
9)。したがって、非和声音分類30−4により、すべて
のメロディ音の正確が特定できたときのみ、その前提で
あるコード候補をメロディに付加可能と判定している。
この判定処理を、すべてのコードタイプのすべての根音
に対して行う(30−10、30−11、30−12、30−13)。30-1 and 30-2 are the same as 29-1 and 29-2 and are the initial settings of the chord type counter i and the root note counter j. 30-
As shown in FIG. 3, the judgment based on the classification of non-harmonic sounds is actually made only when CHOij is available (CHOij = 1). The details of the non-harmonic sound classification 30-4 will be described later, but in this process, the discrimination value of the non-harmonic sound or the illegal sound (ill) is set in the variable RSk (k = 1 to RSNO). Initialize a counter k for the number of classified non-harmonic sounds to 1 (30-5),
If at least one of the identifiers RSk (k = 1 to RSNO) contains data ill representing an illegal sound, that CHOij is rewritten to an unusable value (30-6, 30-7, 30-8, 30). −
9). Therefore, it is determined that the chord candidate, which is the premise, can be added to the melody only when the accuracy of all the melody sounds can be specified by the non-harmonic sound classification 30-4.
This determination process is performed for all roots of all chord types (30-10, 30-11, 30-12, 30-13).
〈非和声音分類〉 第11図の30−4で実行される非和声音の分類の詳細を第
12図に示す。<Classification of nonharmonic sounds> The details of the classification of nonharmonic sounds executed in 30-4 of Fig. 11 are described in
Shown in Figure 12.
まず、33−2で非和声音のカウンタjを初期化し、33−
3でメロディデータの音符カウンタiを着目している小
節の先頭位置Psに設定する。33−4で、着目しているi
番目の音符が和声音か否かを判別する。コード候補の構
成音と同音のものは和声音とされる。和声音でないとき
は、非和声音カウンタをインクリメントし(33−5)、
着目している音符を中心とするメロディの特徴要素を表
わす関数Fを計算し(33−6)、プロダクションルール
による前向推論を実行して(33−7)、着目音符につい
ての結論をRSjに代入する(33−8)。音符カウンiを
インクリメントし(33−9)、着目している小節の最後
の音符に到達するまで(33−10)、33−4以降の処理を
繰り返す。First, in 33-2, the counter j for non-harmonic sound is initialized, and 33-
In step 3, the note counter i of the melody data is set to the head position Ps of the bar of interest. 33-4, i is paying attention
Determine if the th note is a chord. Harmonic sounds are the same as the constituent sounds of the chord candidate. If it is not a harmony tone, the non-harmonic tone counter is incremented (33-5),
The function F representing the characteristic element of the melody centering on the note of interest is calculated (33-6), the forward inference by the production rule is executed (33-7), and the conclusion about the note of interest is set to RSj. Substitute (33-8). The note count i is incremented (33-9), and the processes after 33-4 are repeated until the last note of the measure of interest is reached (33-10).
上記処理33−4の詳細は第13図に示される。34−1で
は、コードデータをコード構成音データに変換してい
る。この変換は、コードデータの種類データをポインタ
として、コード構成音メモリ7からC調で表わされた構
成音データ(例えば、メジャーであれば、00001001000
1)を読み出し、それをコードデータの根音データが示
す数だけ左に転回することで行われる。34−2では、34
−1で生成した構成音データCCと同一形式のデータにメ
ロディ音高データMDiを変換している。CCΛmm(論理
積)の結果が0でないときはコード構成音のなかにメロ
ディ音と同じ音が含まれる。すなわち、MDiは和声音で
ある(34−3、34−5)。CCΛmm=0のときはMDiは非
和声音である(34−3、34−4)。Details of the process 33-4 are shown in FIG. In 34-1, the chord data is converted into chord component sound data. This conversion is performed by using the type data of the chord data as a pointer, from the chord component tone memory 7 to the component tone data represented in the C tone (for example, 00001001000 in the case of major).
It is performed by reading 1) and turning it left by the number indicated by the root note data of the chord data. 34-2, 34
The melody pitch data MDi is converted into data of the same format as the constituent sound data CC generated in -1. When the result of CC Λ mm (logical product) is not 0, the same sound as the melody sound is included in the chord constituent sounds. That is, MDi is a harmony sound (34-3, 34-5). When CCΛmm = 0, MDi is a non-harmonic sound (34-3, 34-4).
第12図のFの計算33−6の詳細を第14図に示す。この例
では関数Fとして、 F1:着目している音符(非和声音)の何個先に和声音が
位置するか(後方和声音の位置) F2:着目している音符の何個手前に和声音が位置するか
(前方和声音の位置) F3:前方和声音から後方和声音までにある非和声音の数 F4:前方和声音と後方和声音との音高差 F5:前方和声音と後方和声音との間における非和声音の
高さの分布 F6:前方和声音から後方和声音までのメロディの音高が
単調に変化するか否か F7:後方和声音とその1つ前の音との音高差(後方和声
音への音程進行) F8:前方和声音とその1つ後の者との音高差(前方和声
音からの音程進行) を計算している。この他に、弱拍か強拍かを示す情報、
音長を区別する情報を関数Fのセットに加えてもよい。
個々の関数Fの算出のフローチャート(第15図〜第22
図)はそれ自体の記載から明らかであるので説明は省略
する。Details of calculation 33-6 of F in FIG. 12 are shown in FIG. In this example, the function F is as follows: F 1 : how many notes (non-harmonic) the note of interest is located before (harmonic position of the rear) F 2 : how many notes before the note of interest Is a chord in front (position of the front chord) F 3 : Number of non-harmonics between the front and rear chords F 4 : Difference in pitch between front and rear chords F 5 : Pitch distribution of non-harmonic tones between the front and rear chords F 6 : Whether the pitch of the melody from the front chord to the rear chord changes monotonically or not F 7 : The rear chord Pitch difference from the preceding note (pitch progression to the rear chord) F 8 : Calculate pitch difference between the front chord and the one after it (pitch progression from the front chord) ing. Besides this, information indicating weak or strong beats,
Information that distinguishes note lengths may be added to the set of functions F.
Flowchart of calculation of each function F (Figs. 15 to 22)
(Fig.) Is clear from the description of itself, and therefore its explanation is omitted.
第12図の33−7における前向推論の詳細を第23図に示
す。まず、ルールナンバーポインタPを、プロダクショ
ンルールのなかでルートとなっているルールを指示する
“1"にセットする(44−1)。しかる後、ルールナンバ
ーポインタPの示すルールの前提部(Lp≦Fxp≦Up)が
成立するかどうかをチェックし、成立するときはそのル
ールの肯定結論部のデータYpを次のルールへのポインタ
として使用し、不成立のときはそのルールの不定結論部
のデータNpを次のルールへのポインタとして使用する。
ただし、データYp、Npが、負の値のときは、最終結論に
達しているので、その絶対値(−Yp、−Np)を非和声音
の種類の識別子または違法な音の識別子として結論レジ
スタにセットする。フローに従うと、44−3の条件Lp>
Fxpか44−5の条件Fxp>Upが成立するとき、ルールPの
前提部Lp≦Fxp≦Upは不成立であるのでそのルールの否
定結論部のデータNpをaに代入し(44−4、44−6)、
それ以外の場合は前提部成立なので、aにはルールPの
肯定結論部のデータYpが入る(44−2)。このaをPに
代入し(44−7)、Pが正値のときは、次のルールナン
バーポインタとして次のルールの検査に戻り、Pの負の
ときは、は−Pを非和声音の分類結果とする(44−8、
44−9)。The details of the forward reasoning in 33-7 of FIG. 12 are shown in FIG. First, the rule number pointer P is set to "1" which indicates the root rule among the production rules (44-1). Then, it is checked whether or not the premise part (Lp ≦ Fxp ≦ Up) of the rule indicated by the rule number pointer P is satisfied, and when it is satisfied, the data Yp of the positive conclusion part of the rule is used as a pointer to the next rule. If it is not established, the data Np of the uncertain conclusion part of the rule is used as a pointer to the next rule.
However, when the data Yp and Np are negative values, the final conclusion has been reached, so the absolute value (−Yp, −Np) is used as the conclusion register as the non-harmonic type identifier or the illegal sound identifier. Set to. According to the flow, the condition Lp of 44-3>
When the condition Fxp> Up of Fxp or 44-5 is satisfied, the premise part Lp ≦ Fxp ≦ Up of the rule P is not satisfied, so the data Np of the negative conclusion part of the rule is substituted into a (44-4, 44 -6),
In other cases, since the premise part is established, the data Yp of the affirmative conclusion part of the rule P is entered in a (44-2). Substituting this a into P (44-7), when P is a positive value, it returns to the inspection of the next rule as the next rule number pointer, and when P is negative, is a non-harmonic sound. The classification result (44-8,
44-9).
〈音階による判定〉 ゼネラルフローの2−8で実行される音階(アヴェイラ
ブルノートスケール)による判定の詳細を第24図に示
す。<Judgment by scale> Figure 24 shows the details of the judgment by the scale (available note scale) executed in 2-8 of the general flow.
この説明に入る前にアヴェイラブルノートスケールに関
して簡単に説明する。一般に、あるコードタイプに対し
ては1ないし数種のスケールが想定される。一方、コー
ドについてはその機能からトニックコード、ドミナント
コード、サブドミナントコードとに分けることができ
る。アヴェイラブルノートスケールはコードとコードの
機能から決まる。例えばCのメジャーコードに対して
は、メジャーコードCがトニックコードとして機能して
いるならば、メジャーコードの根音(この場合C)を主
音とするドレミファソラシドのダイアトニックスケール
がアヴェイラブルノートスケールとなる。メジャーコー
ドCがドミナントコードのときは、コードの根音Cをド
ミナントとするダイアトニックスケールすなわちFを主
音とするダイアトニックスケールがアヴェイラブルノー
トスケールとなる。メジャーコードCがサブドミナント
コードのときはGを主音とするダイアトニックスケール
がアヴェイラブルノートスケールとなる。この点に鑑
み、第24図のフローでは、あるコード候補に対し、トニ
ック、ドミナント、サブドミナントの3つの可能性を考
慮して3つのアヴェイラブルノートスケールを生成して
いる。そして、この3つのアヴェイラブルノートスケー
ルのいずれかのノートスケールが構成する音以外の音を
メロディが含まなければ、アヴェイラブルノートの生成
原因であるコード候補をメロディに付加可能なコードと
している。Before going into this explanation, I will briefly explain the available note scale. Generally, one or several scales are envisioned for a given code type. On the other hand, the code can be divided into a tonic code, a dominant code, and a subdominant code according to its function. Available note scale is determined by chords and chord functions. For example, for the major chord of C, if the major chord C is functioning as a tonic chord, the diatonic scale of Dremi Fasolacid with the root of the major chord (in this case, C) as the tonic is the available note scale. Becomes When the major chord C is a dominant chord, the diatonic scale having the root note C of the chord as the dominant, that is, the diatonic scale having F as the tonic is the available note scale. When the major chord C is a subdominant chord, the diatonic scale with G as the tonic is the available note scale. In view of this point, in the flow of FIG. 24, three available note scales are generated for a certain chord candidate in consideration of the three possibilities of tonic, dominant, and subdominant. Then, if the melody does not include a sound other than the sound formed by any of the note scales of the three available note scales, the chord candidate causing the generation of the available note is set as a chord that can be added to the melody. .
ただし、図示のフローでは簡明を期すため、コードのセ
ットをメジャー系とマイナー系に限定するとともに、メ
ジャー系のコードに対するスケールをドレミファソラシ
ドのダイアトニックスケール(長音階)のみに限定し、
またマイナー系のコードに対するスケールをドレミbフ
ァソラbシbのダイアトニックスケール(自然短音階)
にのみ限定している。所望であれば、和声的短音階、旋
律的短音階等によりチェックする部分を追加してもよ
い。However, for the sake of simplicity in the illustrated flow, the chord set is limited to major and minor chords, and the scale for major chords is limited to the Dremi Fasolacid diatonic scale (long scale).
The scale for minor chords is the Doremi b fasola b si b diatonic scale (natural minor scale).
Limited to only. If desired, a part to be checked by a harmonic scale, a melody minor scale, etc. may be added.
第24図のフローに従うと、まず、45−1でコードのタイ
プカウンタを初期化し、45−2でコードの根音のカウン
タを初期化する。既に判定2−6または2−7において
使用不可(CHOij=0)と判定されたコードに対しては
音階による判定を行う必要がないのでスキップさせる
(45−3、45−7)。使用可となっているコードについ
てはいったんその可否の識別子を不可の値に設定する
(45−4)。次の45−5でコード根音と3度との音程が
長3度か否かをチェックすることでコード候補がメジャ
ー系かマイナー系かを判別する。メジャー系のときはSC
に(ab5)16(ドレミファソラシのスケールを表わす)
を代入し、マイナー系のときはSCに5ad(ドレミbファ
ソラbシbのスケールを表わす)を代入する(45−6、
45−7)。そして、SCを根音jだけ転回してSC1に代入
する(45−8)。このSC1はコード候補をトニックコー
ドと考えたときのアヴェイラブルノートスケールを表わ
している。45−7でメロディ構成音がアヴェイラブルノ
ートスケールSC1の部分集合(mm⊂SC1)か否かを判定す
る。これは(mmΛSC1)がmmと一致するか否かで行われ
る。一致するときは、対応するコード可否の識別子CHOi
jを使用可の値1にセットする(45−10)。45−11では
コード候補をドミナントコードを考えたときのアヴェイ
ラブルノートスケールを生成するため、SCを(j+7)
だけ転回してSC2に代入する。そしてmmがアヴェイラブ
ルノートスケールSC2の部分集合かどうかをチェック
し、部分集合であればCHOij=1を設定する(45−12、4
5−13)。45−14ではコード候補をサブドミナントコー
ドと考えたときのアヴェイラブルノートスケールを生成
するため、SCを(j+5)だけ転回してSC3に代入す
る、同様に、mmがアヴェイラブルノートスケールSC3の
部分集合かどうかを判定し、部分集合であればCHOij=
1を実行する(45−15、45−16)。したがって、コード
候補に対するいずれのアヴェイラブルノートスケールに
対しても、メロディのなかにスケール上にない音が含ま
れるときそのコード候補は使用不可(CHOij=0)とな
る。According to the flow of FIG. 24, first, 45-1 initializes the chord type counter, and 45-2 initializes the chord root counter. It is not necessary to perform the scale-based determination for chords that have already been determined to be unusable (CHOij = 0) in the determination 2-6 or 2-7, and therefore skipped (45-3, 45-7). For a code that is usable, the identifier indicating whether it is permitted is set to a value that is not permitted (45-4). In the next 45-5, it is determined whether the chord candidate is a major chord or a minor chord by checking whether the pitch of the chord root and the third chord is a major third. SC for major
To (ab5) 16 (representing the scale of Doremi Fasolasi)
Substituting 5ad (representing the scale of Doremi b Fasora b Si b ) into SC for the minor system (45-6,
45-7). Then, SC is rotated by the root j and substituted for SC1 (45-8). This SC1 represents the available note scale when the chord candidate is considered as a tonic chord. At 45-7, it is determined whether the melody constituent sounds are a subset (mm⊂SC1) of the available note scale SC1. This is done depending on whether (mmΛSC1) matches mm. When they match, the corresponding code availability identifier CHOi
Set j to a usable value of 1 (45-10). In 45-11, SC is set to (j + 7) in order to generate an available note scale when considering dominant chords as chord candidates.
Just rotate and substitute in SC2. Then, it is checked whether mm is a subset of the available note scale SC2, and if it is a subset, CHOij = 1 is set (45-12, 4
5-13). In 45-14, in order to generate an available note scale when the chord candidate is considered as a subdominant chord, SC is rotated by (j + 5) and substituted into SC3. Similarly, mm is available note scale SC3 Is a subset, and if it is a subset, CHOij =
1 is executed (45-15, 45-16). Therefore, for any available note scale for a chord candidate, when the melody contains a sound that is not on the scale, the chord candidate is disabled (CHOij = 0).
根音カウンタjをj=0〜ROOTN−1、タイプカウンタ
iをi=0〜TYPE−1動かして、判定ループを繰り返す
点は他の判定フローと同様である(45−17〜45−20)。The point where the root loop counter j is moved from j = 0 to ROOTN-1 and the type counter i is moved from i = 0 to TYPE-1 and the judgment loop is repeated is the same as the other judgment flows (45-17 to 45-20). .
なお、処置上は、すべてのスケールをメロディと照合し
ないで、一部のスケール(アヴェイラブルノートスケー
ル)のみについて調べているので処理量が節約できる利
点がある。In terms of treatment, all the scales are not collated with the melody, and only some of the scales (available note scales) are examined, which has the advantage of saving the processing amount.
〈データ移動〉 第2図のデータ移動2−9の詳細は第25図に示される。
図示のように、CHOijを検査した小節においてコードタ
イプi、根音jのコードが付加可能かどうかを表わす識
別子CDbar、i、jに移している。<Data migration> The details of the data migration 2-9 in Fig. 2 are shown in Fig. 25.
As shown in the figure, CHOij is moved to an identifier CDbar, i, j indicating whether or not a chord of chord type i and root note j can be added in the bar inspected.
〈動作例〉 本実施例の自動コード付加装置による動作例を第26図に
示してある。動作条件は次の通りである。コードのタイ
プはメジャーコードとマイナーコードのみである。プロ
ダクションルールは第6A図に示すものを使用した。評価
対象のメロディは第4図に示すベートーベンの喜びの歌
(4小節分)である。(音階)の欄に示すデータCDba
r、i、jのうち1になっているデータに対応するコー
ド(i、j)が最終的に付加可能となる。<Operation Example> FIG. 26 shows an operation example of the automatic code adding apparatus according to the present embodiment. The operating conditions are as follows. The chord types are only major chords and minor chords. The production rules used were those shown in Figure 6A. The melody to be evaluated is Beethoven's joy song (for four measures) shown in FIG. Data CDba shown in the (Scale) column
The code (i, j) corresponding to the data which is 1 out of r, i, j can be finally added.
別の動作例を第27図に示す。第27図の上方に示すデータ
が評価したメロディである。この例では、非和声音分類
による判定でC♯メジャーのコードが捨てられている。
メロディの第1音の“ド”が和声音でなく次に“ファ”
に飛躍したため、違法な音が検出されたことによる。Another operation example is shown in FIG. The data shown in the upper part of FIG. 27 is the evaluated melody. In this example, the chord of C # major is discarded in the judgment based on the non-harmonic classification.
The first "do" in the melody is not a harmony,
Because it leapt to, it is because an illegal sound was detected.
音階による判定でCメジャーとFメジャーが捨てられて
ている。Cメジャーについては、“ラb”の音が、 “ドレミファソラシ”(トニック) “ソラシドレミファ♯”(ドミナント) “ファソラシbドレミ”(サブドミナント) のいずれのアヴェイラブルノートスケールにも含まれな
いからである。Fメジャーについては“ラb”の音が “ファソラシbドレミ” “ドレミファソラシ” “シbドレミbファソラ” のいずれのアヴェイラブルノートスケールにも含まれな
いからである。C major and F major are abandoned according to the scale. For C major, the sound of "La b", "Do-Re-Mi Faso brush" (tonic) "Sorashido Remy file ♯" (dominant) "Fasorashi b Do Re Mi" not included in any of the available note scale (sub-dominant) Because. F for major is because not included in any of the available note scale of "La b" sound of "Fasorashi b Do Re Mi""Do Re Mi Faso brush""Death b Doremi b Fasora".
以上で実施例の説明を終えるが、本発明は上記実施例に
限定されず、種々の変形、変更が可能である。例えばコ
ード候補はユーザーが入力してもよい。これにより、コ
ード付けの学習機が提供されることになる。Although the description of the embodiment is completed above, the present invention is not limited to the above embodiment, and various modifications and changes can be made. For example, the code candidate may be input by the user. This will provide a learning machine for coding.
[発明の効果] 以上のように、本発明の自動コード付加装置では、与え
られたコード候補からアヴェイラブルノートスケールを
生成し、生成したアヴェイラブルノートスケールとメロ
ディ音との関係を評価することにより、コード候補がメ
ロディ付加可能なコードか否かを判定している。したが
って、入力されるメロディの長さに限定はなく、転調を
含むメロディに対しても有効なコード付けを行うことが
でき、特に調性感のあるコード付けが可能である。[Effects of the Invention] As described above, the automatic chord adding device of the present invention generates an available note scale from given chord candidates and evaluates the relationship between the generated available note scale and a melody note. By doing so, it is determined whether or not the chord candidate is a chord to which a melody can be added. Therefore, the length of the inputted melody is not limited, and effective coding can be performed even on a melody including transposition, and coding with a tonality is possible.
また、本発明のもう1つの構成では、上記の構成に加
え、コード候補とメロディとから非和声音を分類し、そ
の結果に従ってコード候補が付加可能かどうかを検査す
る手段を設け、この検査を有効なコード付けのための必
要条件としているのでより妥当性の高いコード付加が可
能となる。In addition, in another configuration of the present invention, in addition to the above configuration, means for classifying non-harmonic tones from chord candidates and melody and inspecting whether chord candidates can be added according to the result is provided. Since it is a necessary condition for effective coding, more appropriate code addition can be performed.
第1図は本発明の一実施例に係る自動コード付加装置の
全体構成図、第2図は実施例の動作を示すゼネラルフロ
ー、第3図はメロディとコードのデータ形式の例を示す
図、第4図はメロディデータ例を示す図、第5図はメロ
ディデータの読み込みのフローチャート、第6A図は非和
声音分類のためのプロダクションルールデータ例を示す
図、第6B図はプロダクションルールの読み込みのフロー
チャート、第7図は検査する区間のメロディデータの最
初(Ps)と最後(Pe)を求めるフローチャート、第8図
はPsを算出するフローチャート、第9図はPeを算出する
フローチャート、第10図はメロディ構成音とコード構成
音とのマッチングによる判定のフローチャート、第11図
は非和声音の分類によるコード候補の付加の可否を判定
するフローチャート、第12図は非和声音の分類のフロー
チャート、第13図は和声音、非和声音の判別のフローチ
ャート、第14図は分析対象のメロディの状況を表わす関
数Fを計算するフローチャート、第15図は関数F1の算出
のフローチャート、第16図は関数F2の算出のフローチャ
ート、第17図は関数F3の算出のフローチャート、第18図
は関数F4の算出のフローチャート、第19図は関数F5の算
出のフローチャート、第20図は関数F6の算出のフローチ
ャート、第21図は関数F7、F8の算出のフローチャート、
第22図は計算した関数Fを一時記憶するフローチャー
ト、第23図は非和声音の分類を前向推論により行うフロ
ーチャート、第24図はコード候補に対するアヴェイラブ
ルノートスケールによりメロディに対するコードの付加
の可否を判定するフローチャート、第25図はデータ移動
のフローチャート、第26図は実施例の動作例(1)を示
す図、第27図は実施例の動作例(2)を示す図である。 1……CPU、5……メロディデータメモリ、7……コー
ド構成音メモリ、6……プロダクションルールデータメ
モリ、RSi……非和声音の分類結果を示す識別子、ill…
…違法な音を表わす識別子、SC1、SC2、SC3……アヴェ
イラブルノートスケールデータ。FIG. 1 is an overall configuration diagram of an automatic chord adding device according to an embodiment of the present invention, FIG. 2 is a general flow showing the operation of the embodiment, and FIG. 3 is a diagram showing an example of a melody and chord data format, FIG. 4 is a diagram showing an example of melody data, FIG. 5 is a flow chart of reading melody data, FIG. 6A is a diagram showing an example of production rule data for classification of non-harmonic sounds, and FIG. 6B is a diagram showing production rule data being read. FIG. 7 is a flow chart, FIG. 7 is a flow chart for obtaining the first (Ps) and the last (Pe) of the melody data of the section to be inspected, FIG. 8 is a flow chart for calculating Ps, FIG. 9 is a flow chart for calculating Pe, and FIG. FIG. 11 is a flow chart of judgment by matching between melody constituent sounds and chord constituent sounds, FIG. FIG. 12 is a flowchart for classifying nonharmonic sounds, FIG. 13 is a flowchart for distinguishing harmonic sounds and nonharmonic sounds, FIG. 14 is a flowchart for calculating a function F representing the situation of a melody to be analyzed, and FIG. 15 is a function. F1 calculation flowchart, FIG. 16 is a function F2 calculation flowchart, FIG. 17 is a function F3 calculation flowchart, FIG. 18 is a function F4 calculation flowchart, FIG. 19 is a function F5 calculation flowchart, FIG. 20 is a flow chart for calculating the function F6, FIG. 21 is a flow chart for calculating the functions F7 and F8,
FIG. 22 is a flowchart for temporarily storing the calculated function F, FIG. 23 is a flowchart for classifying non-harmonic sounds by forward inference, and FIG. 24 is for adding chords to a melody by an available note scale for chord candidates. FIG. 25 is a flowchart showing data movement, FIG. 26 is a diagram showing an operation example (1) of the embodiment, and FIG. 27 is a diagram showing an operation example (2) of the embodiment. 1 ... CPU, 5 ... melody data memory, 7 ... chord composition sound memory, 6 ... production rule data memory, RSi ... identifier showing classification result of non-harmonic sound, ill ...
… Illegal sound identifiers, SC1, SC2, SC3… Available note scale data.
Claims (2)
ドを付加する自動コード付加装置において、 与えられたコード候補からアヴェイラブルノートスケー
ルを生成する生成手段と、 上記メロディと上記アヴェイラブルノートスケールとの
関係を評価することによって上記コード候補が上記メロ
ディに付加可能なコードか否かを決定する決定手段と、 を有することを特徴とする自動コード付加装置。1. An automatic chord adding device for automatically adding chords to a given melody, producing means for producing an available note scale from given chord candidates, said melody and said available An automatic chord adding device comprising: a deciding unit that decides whether or not the chord candidate is a chord that can be added to the melody by evaluating a relationship with a note scale.
ドを付加する自動コード付加装置において、 上記メロディとコード候補に対し、メロディに含まれる
非和声音を分類する知識を適用して上記メロディに含ま
れる非和声音を分類することにより、上記コード候補が
上記メロディに付加可能なコードか否かを検査する検査
手段と、 上記検査手段の検査に合格したコード候補からアヴェイ
ラブルノートスケールを生成する生成手段と、 上記メロディと上記アヴェイラブルノートスケールとの
関係を評価することによって上記検査手段の検査に合格
したコード候補が上記メロディに付加可能なコードか否
かを決定する決定手段と、 を有することを特徴とする自動コード付加装置。2. An automatic chord adding device for automatically adding a chord to a given melody, wherein the melody is applied to the melody and chord candidates by applying knowledge for classifying non-harmonic sounds contained in the melody. By classifying the non-harmonic sounds included in, the checking means for checking whether the chord candidate is a chord that can be added to the melody, and an available note scale from chord candidates that have passed the checking of the checking means. Generating means for generating, and determining means for determining whether or not a chord candidate that has passed the inspection of the inspecting means is a chord that can be added to the melody by evaluating the relationship between the melody and the available note scale. An automatic code adding device comprising:
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63082884A JPH07111636B2 (en) | 1988-04-06 | 1988-04-06 | Automatic code addition device |
| US07/335,213 US4951544A (en) | 1988-04-06 | 1989-04-06 | Apparatus for producing a chord progression available for a melody |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63082884A JPH07111636B2 (en) | 1988-04-06 | 1988-04-06 | Automatic code addition device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01255880A JPH01255880A (en) | 1989-10-12 |
| JPH07111636B2 true JPH07111636B2 (en) | 1995-11-29 |
Family
ID=13786700
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63082884A Expired - Fee Related JPH07111636B2 (en) | 1988-04-06 | 1988-04-06 | Automatic code addition device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07111636B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| ITBO20020691A1 (en) * | 2002-10-31 | 2004-05-01 | Roland Europ Spa | METHOD AND DEVICE FOR THE TREATMENT OF A FILE |
-
1988
- 1988-04-06 JP JP63082884A patent/JPH07111636B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH01255880A (en) | 1989-10-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5451709A (en) | Automatic composer for composing a melody in real time | |
| US4982643A (en) | Automatic composer | |
| US6747201B2 (en) | Method and system for extracting melodic patterns in a musical piece and computer-readable storage medium having a program for executing the method | |
| US5510572A (en) | Apparatus for analyzing and harmonizing melody using results of melody analysis | |
| JP2671495B2 (en) | Melody analyzer | |
| US4951544A (en) | Apparatus for producing a chord progression available for a melody | |
| US5525749A (en) | Music composition and music arrangement generation apparatus | |
| JP3099436B2 (en) | Chord detection device and automatic accompaniment device | |
| JP3132099B2 (en) | Scale discriminator | |
| US5763802A (en) | Apparatus for chord analysis based on harmonic tone information derived from sound pattern and tone pitch relationships | |
| JPH07111636B2 (en) | Automatic code addition device | |
| JP2900753B2 (en) | Automatic accompaniment device | |
| JP3271331B2 (en) | Melody analyzer | |
| JP2526830B2 (en) | Automatic chord adding device | |
| JP2715816B2 (en) | Key detection device and automatic arrangement device | |
| JP2615722B2 (en) | Automatic composer | |
| JP2958795B2 (en) | Melody analyzer | |
| JP2958794B2 (en) | Melody analyzer | |
| JP2615720B2 (en) | Automatic composer | |
| JP2615721B2 (en) | Automatic composer | |
| JP3088919B2 (en) | Tone judgment music device | |
| JP2638816B2 (en) | Accompaniment line fundamental tone determination device | |
| JPH05249974A (en) | Key detecting device | |
| JP2621266B2 (en) | Automatic composer | |
| JPH01296287A (en) | Automatic chord adding device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |