JP2011118221A - Musical piece creation device and program - Google Patents

Musical piece creation device and program Download PDF

Info

Publication number
JP2011118221A
JP2011118221A JP2009276473A JP2009276473A JP2011118221A JP 2011118221 A JP2011118221 A JP 2011118221A JP 2009276473 A JP2009276473 A JP 2009276473A JP 2009276473 A JP2009276473 A JP 2009276473A JP 2011118221 A JP2011118221 A JP 2011118221A
Authority
JP
Japan
Prior art keywords
phrase
data
section
target
performance information
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
JP2009276473A
Other languages
Japanese (ja)
Other versions
JP5504857B2 (en
Inventor
Akira Yamauchi
明 山内
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP2009276473A priority Critical patent/JP5504857B2/en
Publication of JP2011118221A publication Critical patent/JP2011118221A/en
Application granted granted Critical
Publication of JP5504857B2 publication Critical patent/JP5504857B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To automatically create musical piece data of high quality to which expression is imparted, the musical piece data being rich in variety. <P>SOLUTION: In this musical piece creation system, a plurality of reference parts Rp are obtained by dividing a reference section data Rt for reference (RD) to provide them in a phrase data RB and a target section St which is to be arranged in a target song So is divided into a plurality of target parts Tp by referring to performance information included in the section St (PD). A reference part Rp which satisfies a predetermined compatibility condition is retrieved from the database RB for each target part Tp. When the compatible reference part Rp is retrieved, the target part Tp is written again with performance information based on the reference part Rp (PR). When the reference part Rp which is compatible until the middle of the target part Tp is retrieved, it is replaced with the performance information based on the reference part Rp to the middle, and the database RP is retrieved again, for the rest part. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

この発明は、表情付けがなされバリエーションに富んだ楽曲データを自動的に生成することができる楽曲生成システムに関する。   The present invention relates to a music generation system capable of automatically generating music data with a variety of expressions and rich variations.

従来より、楽曲データを自動的に生成する楽曲生成装置が種々提案されている。例えば、特許文献1に開示された自動作曲装置では、全体作曲条件テンプレートが選択され、全体作曲条件に適したメロディテンプレートが検索される。メロディテンプレートには、メロディ骨格、コード進行、メロディピッチ及びメロディ打点(打点は、メロディの発音タイミングであり、1小節中の打点数は1小節中の音符数に相当する)などのデータが記憶されており、これらのデータはユーザ設定に応じて変形される。メロディテンプレート中の打点データ(リズムパターン)については、ユーザ設定に基づいて1小節毎のリズムパターン特徴連結データが1小節毎に読み出され、リズムパターンデータベースが検索されて1小節分のリズムパターンが選択される。そして、各小節のリズムパターンを曲全体にわたってつなぎ合わせることにより、曲全体のリズムパターンデータが生成される。特許文献2の電子楽器では、メロディパターンに対して、コード進行とキーを指定することによって、コードに対応するスケールが選択され、メロディパターンの各音に対してコードに対応した移調が行われ、スケールに合うようにピッチの補正が行われる。   Conventionally, various music generation apparatuses that automatically generate music data have been proposed. For example, in the automatic composition apparatus disclosed in Patent Document 1, an overall composition condition template is selected, and a melody template suitable for the entire composition condition is searched. The melody template stores data such as the melody skeleton, chord progression, melody pitch, and melody hit points (the hit point is the melody pronunciation timing, and the number of dots in one measure corresponds to the number of notes in one measure). These data are transformed according to user settings. For the dot data (rhythm pattern) in the melody template, the rhythm pattern feature connection data for each measure is read for each measure based on the user setting, the rhythm pattern database is searched, and the rhythm pattern for one measure is found. Selected. Then, the rhythm pattern data of the entire song is generated by connecting the rhythm patterns of each measure throughout the song. In the electronic musical instrument of Patent Document 2, by specifying a chord progression and a key for a melody pattern, a scale corresponding to the chord is selected, and transposition corresponding to the chord is performed for each sound of the melody pattern, The pitch is corrected to match the scale.

特許文献3の楽曲生成装置では、複数個のフレーズを既存の楽曲から抽出してデータベース化し、これを利用してフレーズを並べ変えて簡便に楽曲を作成することができる。ここで、フレーズを既存の楽曲から抽出する際は、キーやコード、最初の音、最後の音などを抽出した各フレーズに固有の属性を付与してデータベース化する。さらに、特許文献4の旋律生成方式では、楽曲生成のためのフレーズデータベースを作成しておき、楽譜情報からフレーズデータを切出す。フレーズデータの切出しには固定長の切出し方式と可変長の切出し方式があり、固定長の場合は、1から4小節の長さで切出し位置を1小節ずつずらしながらフレーズデータを切り出し、可変長の場合は、楽譜情報を休符と休符の間で切り出し、切り出したフレーズデータが1小節未満の場合は、切り出したフレーズデータの前或いは後ろのフレーズデータのうち短い方と結合させたり、切り出したフレーズデータが4小節以上の場合は、小節内で最長の音価の後で分割させる。   In the music generation device of Patent Literature 3, a plurality of phrases can be extracted from existing music and converted into a database, and the music can be easily created by rearranging the phrases using this. Here, when a phrase is extracted from an existing musical piece, a unique attribute is assigned to each phrase from which a key, chord, first sound, last sound, and the like are extracted, and a database is created. Furthermore, in the melody generation method of Patent Document 4, a phrase database for music generation is created, and phrase data is cut out from musical score information. There are two types of phrase data extraction: fixed-length extraction and variable-length extraction. In the case of fixed-length, the phrase data is extracted by shifting the extraction position by one measure at a length of 1 to 4 measures. In this case, the musical score information is cut out between rests, and when the extracted phrase data is less than one measure, it is combined with the shorter one of the phrase data before or after the extracted phrase data, or cut out When the phrase data is 4 bars or more, the phrase data is divided after the longest note value in the bar.

特開2000−99015号公報JP 2000-99015 A 特開平6−222764号公報Japanese Patent Laid-Open No. 6-2222764 特開2006−178104号公報JP 2006-178104 A 特開2007−219139号公報JP 2007-219139 A

しかしながら、特許文献1のように作曲条件を多く指定する自動作曲装置には、手軽さがなく、基本的に、小節単位での設定及び編集操作を行うことになって煩雑である。特許文献2の電子楽器は、打点、音高及び音長の決定が目標であり、表情付けなどの高品質な演奏データの生成を期待することはできない。また、特許文献3の楽曲生成装置では、既存の楽曲から抽出したフレーズをつなぎ合わせた場合、出来上がりにオリジナリティが欠けてしまう可能性がある。特許文献4に開示されたフレーズの抽出方法では、何れも1小節以上となり、やはり、出来上がりにオリジナリティが欠けてしまう可能性がある。さらに、これらの従来技術を組み合わせたとしても、手軽な操作でオリジナリティのある高品質な楽曲データを生成することは難しい。   However, the automatic composition apparatus that designates a lot of composition conditions as in Patent Document 1 is not easy and basically requires complicated setting and editing operations in units of measures. The electronic musical instrument of Patent Document 2 has a goal of determining the hit point, pitch, and pitch, and cannot expect generation of high-quality performance data such as facial expression. Moreover, in the music production | generation apparatus of patent document 3, when the phrase extracted from the existing music is connected, there is a possibility that originality may be lacking in the completion. In the phrase extraction method disclosed in Patent Document 4, all of them are one measure or more, and there is a possibility that the originality is lacking in the finished product. Furthermore, even if these conventional techniques are combined, it is difficult to generate high-quality music data with originality by a simple operation.

この発明は、このような事情に鑑み、元楽曲データ中のアレンジ指定区間について、分解したフレーズ区間毎にフレーズデータベースを参照して最適なフレーズデータを選択し順次合成することにより、表情付けがなされバリエーションに富んだ高品質な楽曲データを自動的に生成することができる楽曲生成システムを提供することを目的とする。   In view of such circumstances, the present invention adds a facial expression by arranging and sequentially synthesizing optimum phrase data for each phrase section disassembled with reference to the phrase database for the arrangement designation section in the original music data. It is an object of the present invention to provide a music generation system capable of automatically generating high-quality music data rich in variations.

この発明の主たる特徴に従うと、楽曲生成のために参照される演奏データ(リファレンス区間データRt:Rtj;Rtk)から分割された複数のフレーズデータ(リファレンスパーツRp:…,Rpb,…;…,Rpa,…)を記憶するフレーズ記憶手段(RB)と、元楽曲データ(ターゲットソングSo)について楽曲生成対象区間(ターゲット区間St)を指定する対象区間指定手段(TS)と、対象区間指定手段(TS)により指定された楽曲生成対象区間(St)に含まれる演奏情報を参照して該楽曲生成対象区間(St)を複数のフレーズ区間(ターゲットパーツTp:Tpa,Tpb,…)に分割するフレーズ分割手段(PD;P1〜P5)と、フレーズ分割手段(PD;P1〜P5)により分割されたフレーズ区間(Tp)毎に、打点が適合するフレーズデータ(Rp)をフレーズ記憶手段(RB)から検索するフレーズ検索手段(PS;P6)と、フレーズ検索手段(PS;P6)による検索の結果、当該フレーズ区間(Tp)に適合したフレーズデータ(Rp)が検索された場合に(P7=YES)、検索されたフレーズデータ(Rp)に基づき生成された演奏情報を当該フレーズ区間(Tp)に書き込む第1演奏情報変換手段(PR;P8)と、フレーズ検索手段(PS;P6)による検索の結果、当該フレーズ区間(Tp)の途中までに適合したフレーズデータ(Rp)が検索された場合に(P7=NO,P9=YES)、検索されたフレーズデータ(Rp)に基づき生成された演奏情報を当該フレーズ区間(Tp)の途中までの部分に書き込むと共に(P10)、当該フレーズ区間(Tp)の残り部分について、打点が適合するフレーズデータ(Rp)をフレーズ記憶手段(RB)から検索し(P13)、その検索結果に応じて、対応する演奏情報を生成し当該残り部分に書き込む(P10)第2演奏情報変換手段(PS,PR;P9〜P13)とを具備する楽曲生成装置〔請求項1〕が提供され、楽曲生成のために参照される演奏データ(リファレンス区間データRt:Rtj;Rtk)から分割された複数のフレーズデータ(リファレンスパーツRp:…,Rpb,…;…,Rpa,…)を記憶するフレーズ記憶手段(RB)を具備し、楽曲生成装置として機能するコンピュータに、元楽曲データ(ターゲットソングSo)について楽曲生成対象区間(ターゲット区間St)を指定する対象区間指定ステップ(TS)と、対象区間指定ステップ(TS)で指定された楽曲生成対象区間(St)に含まれる演奏情報を参照して該楽曲生成対象区間(St)を複数のフレーズ区間(ターゲットパーツTp:Tpa,Tpb,…)に分割するフレーズ分割ステップ(PD;P1〜P5)と、フレーズ分割ステップ(PD;P1〜P5)で分割されたフレーズ区間(Tp)毎に、打点が適合するフレーズデータ(Rp)をフレーズ記憶手段(RB)から検索するフレーズ検索ステップ(PS;P6)と、フレーズ検索ステップ(PS;P6)における検索の結果、当該フレーズ区間(Tp)に適合したフレーズデータ(Rp)が検索された場合に(P7=YES)、検索されたフレーズデータ(Rp)に基づき生成された演奏情報を当該フレーズ区間(Tp)に書き込む第1演奏情報変換ステップ(PR;P8)と、フレーズ検索ステップ(PS;P6)における検索の結果、当該フレーズ区間(Tp)の途中までに適合したフレーズデータ(Rp)が検索された場合に(P7=NO,P9=YES)、検索されたフレーズデータ(Rp)に基づき生成された演奏情報を当該フレーズ区間(Tp)の途中までの部分に書き込むと共に(P10)、当該フレーズ区間(Tp)の残り部分について、打点が適合するフレーズデータ(Rp)をフレーズ記憶手段(RB)から検索し(P13)、その検索結果に応じて、対応する演奏情報を生成し当該残り部分に書き込む(P10)第2演奏情報変換ステップ(PS,PR;P9〜P13)とから成る手順を実行させる楽音生成プログラム〔請求項3〕が提供される。なお、括弧書きは、理解の便のために付記した実施例の参照記号や用語等を表わし、以下においても同様である。   According to the main feature of the present invention, a plurality of phrase data (reference parts Rp:..., Rpb,..., Rpa) divided from performance data (reference section data Rt: Rtj; Rtk) referenced for music generation. ,..., A target section specifying means (TS) for specifying a music generation target section (target section St) for the original music data (target song So), and a target section specifying means (TS Phrase division that divides the music generation target section (St) into a plurality of phrase sections (target parts Tp: Tpa, Tpb,...) With reference to performance information included in the music generation target section (St) specified by The phrase section (Tp) divided by the means (PD; P1 to P5) and the phrase dividing means (PD; P1 to P5) As a result of the search by the phrase search means (PS; P6) and the phrase search means (PS; P6) for searching the phrase data (Rp) that matches the hit point from the phrase storage means (RB), the phrase section (Tp) First performance information conversion means for writing performance information generated based on the retrieved phrase data (Rp) into the phrase section (Tp) when the phrase data (Rp) conforming to is retrieved (P7 = YES) (PR; P8) and when the phrase data (Rp) suitable for the middle of the phrase section (Tp) is searched as a result of the search by the phrase search means (PS; P6) (P7 = NO, P9 = (YES), and the performance information generated based on the searched phrase data (Rp) is written in the middle part of the phrase section (Tp) ( 10) For the remaining part of the phrase section (Tp), the phrase data (Rp) matching the hit point is searched from the phrase storage means (RB) (P13), and corresponding performance information is generated according to the search result. And a musical piece generating apparatus (Claim 1) provided with second performance information converting means (PS, PR; P9 to P13) to be written in the remaining portion (P10), and performance data referred to for musical piece generation (Phrase storage means (RB) for storing a plurality of phrase data (reference parts Rp:..., Rpb,..., Rpa,...) Divided from (reference section data Rt: Rtj; Rtk), and music generation A target for specifying a music generation target section (target section St) for the original music data (target song So) to a computer functioning as a device The music generation target section (St) is referred to as a plurality of phrase sections (targets) with reference to performance information included in the section specifying step (TS) and the music generation target section (St) specified in the target section specifying step (TS). The hit points are suitable for each of the phrase division steps (PD; P1 to P5) divided into parts Tp: Tpa, Tpb,..., And the phrase sections (Tp) divided in the phrase division steps (PD; P1 to P5). A phrase search step (PS; P6) for searching the phrase data (Rp) from the phrase storage means (RB), and a phrase data (phrase data (Tp) adapted to the phrase section (Tp) as a result of the search in the phrase search step (PS; P6)) Rp) is retrieved (P7 = YES), the performance information generated based on the retrieved phrase data (Rp) As a result of the search in the first performance information conversion step (PR; P8) and the phrase search step (PS; P6) to be written in the phrase interval (Tp), the phrase data (Rp) adapted to the middle of the phrase interval (Tp) ) Is retrieved (P7 = NO, P9 = YES), the performance information generated based on the retrieved phrase data (Rp) is written to the middle part of the phrase section (Tp) (P10). For the remaining portion of the phrase section (Tp), the phrase data (Rp) matching the hit point is searched from the phrase storage means (RB) (P13), and corresponding performance information is generated according to the search result. A musical tone generation program for executing a procedure comprising a second performance information conversion step (PS, PR; P9 to P13) to be written in the remaining part (P10). [Claim 3] is provided. Note that the parentheses indicate reference symbols, terms, and the like of the embodiments added for convenience of understanding, and the same applies to the following.

この発明による楽曲生成装置については、フレーズ分割手段(PD;P1〜P5)により分割された複数のフレーズ区間(Tp)の夫々には、打点毎に音符の状態を示す音符状態情報(和音ステート)が記録され(P4)、フレーズ記憶手段(RB)に記憶された複数のフレーズデータ(Rp)の夫々には、打点毎に音符の状態を示す音符状態情報(和音ステート)が記録され(R4)、フレーズ検索手段(PS;P6)及び第2演奏情報生成手段(PS,PR;P9〜P13)は、打点の適合に加えて音符状態情報(和音ステート)の適合をチェックする〔請求項2〕ように構成することができ、この発明による楽曲生成プログラムについては、フレーズ分割ステップ(PD;P1〜P5)で分割された複数のフレーズ区間(Tp)の夫々には、打点毎に音符の状態を示す音符状態情報(和音ステート)が記録され(P4)、フレーズ記憶手段(RB)に記憶された複数のフレーズデータ(Rp)の夫々には、打点毎に音符の状態を示す音符状態情報(和音ステート)が記録され(R4)、フレーズ検索ステップ(PS;P6)及び第2演奏情報生成ステップ(PS,PR;P9〜P13)では、打点の適合に加えて音符状態情報(和音ステート)の適合をチェックする〔請求項4〕ように構成することができる。   In the music generating device according to the present invention, in each of the plurality of phrase sections (Tp) divided by the phrase dividing means (PD; P1 to P5), note state information (chord state) indicating a note state for each hit point. Is recorded (P4), and each of the plurality of phrase data (Rp) stored in the phrase storage means (RB) is recorded with note state information (chord state) indicating the state of the note at each hit point (R4). The phrase searching means (PS; P6) and the second performance information generating means (PS, PR; P9 to P13) check not only the hit points but also the note state information (chord state). In the music generation program according to the present invention, each of the plurality of phrase sections (Tp) divided in the phrase dividing step (PD; P1 to P5) is used. Is recorded with note state information (chord state) indicating the state of the note for each hit point (P4), and each of the plurality of phrase data (Rp) stored in the phrase storage means (RB) includes a note for each hit point. Note state information (chord state) is recorded (R4), and the phrase search step (PS; P6) and second performance information generation step (PS, PR; P9 to P13) It can be configured to check the conformity of the note state information (chord state).

この発明の主たる特徴による楽曲生成システムでは(請求項1,3)、楽曲生成のために参照される高品質の演奏データ(リファレンス区間データRt:Rtj;Rtk)から分割(分解)された複数のフレーズデータ(リファレンスパーツRp:…,Rpb,…;…,Rpa,…)がフレーズ記憶手段(RB)に用意されている。元楽曲データ(ターゲットソングSo)について、ユーザ操作により、楽曲生成対象区間(ターゲット区間St)即ちアレンジしたい区間を指定すると(TS)、指定された楽曲生成対象区間(St)に含まれる演奏情報を参照して該楽曲生成対象区間(St)が複数のフレーズ区間(ターゲットパーツTp:Tpa,Tpb,…)に分割(分解)される(PD;P1〜P5)。次いで、分割されたフレーズ区間(Tp)毎に、打点(リズム位置)が適合(一致)する〔ここで、「一致」とは、少なくとも、全リズム位置を含んでいる(=「完全に含んでいる」という)ことをいう〕フレーズデータ(Rp)をフレーズ記憶手段(RB)から検索(探索)するフレーズ検索(PS;P6)が行われ、フレーズ検索(PS;P6)の結果、当該フレーズ区間(Tp)に適合したフレーズデータ(Rp)が検索された場合は(P7=YES)、検索されたフレーズデータ(Rp)に基づき生成された演奏情報を当該フレーズ区間(Tp)に書き込んで(上書きして)、フレーズ区間(Tp)の演奏情報を書き換える(PR;P8)。一方、フレーズ検索(PS;P6)の結果、当該フレーズ区間(Tp)の途中までに適合したフレーズデータ(Rp)しか検索されなかった場合には(P7=NO,P9=YES)、検索されたフレーズデータ(Rp)に基づき生成された演奏情報を当該フレーズ区間(Tp)の途中までの部分に書き込む(上書きする)と共に(P10)、当該フレーズ区間(Tp)の残り部分について、打点が適合するフレーズデータ(Rp)をフレーズ記憶手段(RB)から再検索(再探索)し(P13)、再検索の結果に応じて、対応する演奏情報を生成し当該残り部分に書き込む(P10)。   In the music generation system according to the main feature of the present invention (Claims 1 and 3), a plurality of quality data (reference section data Rt: Rtj; Rtk) referred to for music generation are divided (decomposed). Phrase data (reference parts Rp:..., Rpb,..., Rpa,...) Are prepared in the phrase storage means (RB). With respect to the original music data (target song So), when a music generation target section (target section St), that is, a section to be arranged is designated by user operation (TS), performance information included in the designated music generation target section (St) is displayed. The music generation target section (St) is divided (decomposed) into a plurality of phrase sections (target parts Tp: Tpa, Tpb,...) (PD; P1 to P5). Next, for each divided phrase section (Tp), the hit points (rhythm positions) match (match) [Here, “match” includes at least all rhythm positions (= “completely includes”) Phrase search (PS; P6) for searching (searching) the phrase data (Rp) from the phrase storage means (RB) is performed, and as a result of the phrase search (PS; P6), the phrase section When phrase data (Rp) conforming to (Tp) is searched (P7 = YES), performance information generated based on the searched phrase data (Rp) is written in the phrase section (Tp) (overwriting) Then, the performance information of the phrase section (Tp) is rewritten (PR; P8). On the other hand, as a result of the phrase search (PS; P6), when only the phrase data (Rp) that fits in the middle of the phrase section (Tp) is searched (P7 = NO, P9 = YES), the search is performed. The performance information generated based on the phrase data (Rp) is written (overwritten) in the middle part of the phrase section (Tp) (P10), and the remaining points of the phrase section (Tp) match. The phrase data (Rp) is re-searched (re-searched) from the phrase storage means (RB) (P13), and corresponding performance information is generated and written in the remaining part according to the result of the re-search (P10).

つまり、この発明では、例えば、表情付け等がなされた高品位の演奏データ(Rt)を予め複数のフレーズデータ(Rp)に分割してフレーズデータベース(RB)に用意しておき、元楽曲データ(So)の指定区間(St)を複数のフレーズ区間(Tp)に分解し、フレーズ区間(Tp)毎に、フレーズデータベース(RB)を参照し、リズム位置が一致するか否かを適合条件としてフレーズデータ(Rp)を検索し、各フレーズ区間(Tp)においてリズム位置が一致する(少なくとも全リズム位置を含んでいる)フレーズデータ(Rp)を検索した場合は(P7=YES)、検索したフレーズデータ(Rp)を当該フレーズ区間(Tp)に採用し、フレーズ区間(Tp)全体に対してリズム位置が完全には一致しない場合には(P7=NO,P9=YES)、フレーズ区間(Tp)の途中までは、リズム位置が一致するフレーズ部分を採用し、途中以降の残り部分については再検索(再探索)を行う(P13)、というようにして、元楽曲データ(So)の指定区間(St)につき、フレーズデータベース(RB)を参照して自動的にアレンジする(AR)。   In other words, in the present invention, for example, high-quality performance data (Rt) that has been subjected to facial expression or the like is divided into a plurality of phrase data (Rp) in advance and prepared in the phrase database (RB), and the original music data ( So) the designated section (St) is decomposed into a plurality of phrase sections (Tp), and the phrase database (RB) is referred to for each phrase section (Tp), and the phrase is used as a matching condition whether or not the rhythm positions match. When the data (Rp) is searched and the phrase data (Rp) having the same rhythm position (including at least all rhythm positions) in each phrase section (Tp) is searched (P7 = YES), the searched phrase data When (Rp) is adopted for the phrase section (Tp) and the rhythm position does not completely match the entire phrase section (Tp) (P7 = O, P9 = YES), the phrase portion having the same rhythm position is adopted until the middle of the phrase section (Tp), and the re-search (re-search) is performed for the remaining portion after the middle (P13). Thus, the designated section (St) of the original music data (So) is automatically arranged with reference to the phrase database (RB) (AR).

従って、この発明によれば、元楽曲データの指定された区間についてフレーズ区間に分割し、フレーズデータベースに用意された複数のフレーズデータから、各フレーズ区間毎に、そのリズム位置に合う最適なフレーズデータを選択し順次合成してゆくことにより、新規なフレーズを生成し、表情付けがなされた高品質な演奏データを簡単に自動生成することができる。ここで、新たに生成されるフレーズは、予め用意されたフレーズデータを単純にコード対応化するものではないので、バリエーションに富んだ作曲が可能となる。また、フレーズデータは、数小節にわたるものから1小節未満の短いものまで、多種の多様のものが数多く用意されるので、組合せが多様でオリジナリティのある曲を生成することができる。さらに、フレーズの長さに関わらず、フレーズの途中までを採用するということも可能になるので、用意されたフレーズデータを無駄なく活用することができる。   Therefore, according to the present invention, the optimal phrase data that matches the rhythm position for each phrase section is divided from the plurality of phrase data prepared in the phrase database for the specified section of the original music data. By selecting and sequentially synthesizing, a new phrase can be generated, and high-quality performance data with a facial expression can be easily and automatically generated. Here, since the newly generated phrase is not simply code-corresponding to the phrase data prepared in advance, it is possible to compose music rich in variations. Also, since there are many different types of phrase data, ranging from several measures to short ones less than one measure, it is possible to generate songs with various combinations and originality. Furthermore, since it is possible to adopt the middle of the phrase regardless of the length of the phrase, the prepared phrase data can be utilized without waste.

この発明による楽曲生成システムにおいては(請求項2,4)、分割された複数のフレーズ区間(Tp)の夫々には、打点毎に音符の状態を示す音符状態情報(和音ステート)が記録され(P4)、フレーズ記憶手段(RB)に記憶された複数のフレーズデータ(Rp)の夫々にも、打点毎に音符の状態を示す音符状態情報(和音ステート)が記録され(R4)、フレーズ検索(P6)或いは残り部分の再検索(P13)の際には(PS)、適合条件として、打点(リズム位置)の適合(一致)に加えて音符状態情報(和音ステート)の適合(一致)をチェックするようにしている。従って、この発明によれば、元楽曲データの指定された区間における各フレーズ区間の音楽的特徴に対応した最適なフレーズデータをフレーズデータベースから選択することができる。   In the music generating system according to the present invention (Claims 2 and 4), note state information (chord state) indicating the state of a note for each hit point is recorded in each of a plurality of divided phrase sections (Tp) ( P4), note state information (chord state) indicating the state of the note for each striking point is also recorded in each of the plurality of phrase data (Rp) stored in the phrase storage means (RB) (R4), and the phrase search ( In the case of P6) or the re-search of the remaining part (P13) (PS), in addition to the matching (matching) of the hit point (rhythm position), the matching (matching) of the note state information (chord state) is checked as the matching condition. Like to do. Therefore, according to this invention, the optimal phrase data corresponding to the musical feature of each phrase section in the specified section of the original music data can be selected from the phrase database.

この発明の一実施例による楽曲生成システムの構成例を示す。1 shows a configuration example of a music generation system according to an embodiment of the present invention. この発明の一実施例による楽曲生成の原理を説明するための図である。It is a figure for demonstrating the principle of the music production | generation by one Example of this invention. この発明の一実施例による和音ステートの例を説明するための図である。It is a figure for demonstrating the example of the chord state by one Example of this invention. この発明の一実施例によるリファレンス登録処理フロー例である。It is an example of a reference registration process flow by one Example of this invention. この発明の一実施例によるフレーズ変換処理フロー例の一部である。It is a part of example of a phrase conversion process flow by one Example of this invention. この発明の一実施例によるフレーズ変換処理フロー例の他部である。It is the other part of the example of a phrase conversion process flow by one Example of this invention. この発明の一実施例によるリファレンス採用処理フロー例である。It is a reference adoption processing flow example by one Example of this invention.

〔システム構成の概要〕
図1は、この発明の一実施例による楽曲生成システムの構成例を示し、図1(1)は、この発明の一実施例による楽曲生成装置のハードウエア構成例を示す。この発明の一実施例による楽曲生成装置は、電子的な音楽情報処理機能を有する一種のコンピュータであり、例えば、電子楽器のような電子音楽装置が用いられ、楽曲生成モード時に楽曲生成装置として機能し、楽曲生成システムが構築される。この楽曲生成装置は、図1(1)のように、中央処理装置(CPU)1、ランダムアクセスメモリ(RAM)2、読出専用メモリ(ROM)3、外部記憶装置4、入力操作部5、表示部6、音源7、通信インターフェース(I/F)8などを備え、これらの要素1〜8はバス9を介して互いに接続される。
[Overview of system configuration]
FIG. 1 shows a configuration example of a music generation system according to an embodiment of the present invention, and FIG. 1 (1) shows a hardware configuration example of a music generation device according to an embodiment of the present invention. A music generation device according to an embodiment of the present invention is a kind of computer having an electronic music information processing function, and for example, an electronic music device such as an electronic musical instrument is used and functions as a music generation device in a music generation mode. Thus, a music generation system is constructed. As shown in FIG. 1 (1), the music generating device includes a central processing unit (CPU) 1, a random access memory (RAM) 2, a read only memory (ROM) 3, an external storage device 4, an input operation unit 5, a display. Unit 6, sound source 7, communication interface (I / F) 8, and the like, and these elements 1 to 8 are connected to each other via a bus 9.

CPU1は、RAM2及びROM3と共にデータ処理部を構成し、「フレーズ変換処理」と呼ばれる楽曲生成処理プログラムを含む所定の制御プログラムに従って、楽曲生成処理を含む種々の音楽情報処理を実行する。RAM2は、これらの処理に際して必要な各種データを一時記憶するためのワーク領域として用いられ、例えば、楽曲生成モード時には、外部記憶装置4に設けられたフレーズデータ記憶部(フレーズデータベース)RBから設定に応じて選択的に読み出されたフレーズデータ群(Rp)を保持するためのフレーズデータ保持領域が設けられる。また、ROM3には、これらの処理を実行するために、各種制御プログラムや必要な各種制御データが予め記憶される。   The CPU 1 constitutes a data processing unit together with the RAM 2 and the ROM 3, and executes various music information processing including music generation processing according to a predetermined control program including a music generation processing program called “phrase conversion processing”. The RAM 2 is used as a work area for temporarily storing various data necessary for these processes. For example, in the music generation mode, the RAM 2 is set from a phrase data storage unit (phrase database) RB provided in the external storage device 4. Accordingly, a phrase data holding area for holding a phrase data group (Rp) selectively read out is provided. In addition, various control programs and various control data necessary for executing these processes are stored in the ROM 3 in advance.

外部記憶装置4は、HD(ハードディスク)、FD(フレキシブルディスク)、CD(コンパクトディスク)、DVD(デジタル多目的ディスク)、フラッシュメモリ等の半導体メモリなどの記憶媒体と、その駆動装置を含む。制御プログラムや、種々の自動演奏データ等、任意の情報を任意の記憶媒体に記憶することができ、所定の記憶媒体には、種々のフレーズデータ(Rp)を記憶し管理するためのフレーズデータベースRBが構築される。また、記憶媒体は、着脱可能であってもよいし、この楽曲生成装置に内蔵されていてもよく、着脱可能な記録媒体にはUSBメモリが含まれる。   The external storage device 4 includes a storage medium such as a semiconductor memory such as an HD (hard disk), an FD (flexible disk), a CD (compact disk), a DVD (digital multipurpose disk), and a flash memory, and a driving device thereof. Arbitrary information such as a control program and various automatic performance data can be stored in an arbitrary storage medium, and a phrase database RB for storing and managing various phrase data (Rp) in a predetermined storage medium Is built. Further, the storage medium may be detachable or may be built in the music generation device, and the detachable recording medium includes a USB memory.

入力操作部5は、鍵盤などの演奏操作子やキースイッチなどの設定操作子と、これらの操作子の操作を検出して検出内容に対応する操作情報をデータ処理部(1〜3)に導入する操作検出回路とにより構成される。データ処理部は、これら操作情報に基づき楽曲生成装置各部を制御し、例えば、演奏操作子の操作に応じて演奏操作入力に対応する演奏情報を音源7に送ったり、設定操作子中のモード設定ボタンの操作により楽曲生成モードで動作させたりすることができる。表示部6は、演奏や設定に必要な各種情報を表示するLCD等のディスプレイや、入力操作部5中のスイッチ類に併設した内蔵ランプ等を備え、これらの表示・点灯内容をデータ処理部からの指令で制御し、演奏操作や設定操作などに関する表示援助を行う。   The input operation unit 5 introduces operation information corresponding to the detected contents to the data processing units (1 to 3) by detecting performance operations such as a keyboard and setting operations such as a key switch and operations of these operations. And an operation detection circuit. The data processing unit controls each unit of the music generation device based on the operation information, for example, sends performance information corresponding to the performance operation input to the sound source 7 according to the operation of the performance operator, or mode setting in the setting operator It can be operated in the music generation mode by operating the buttons. The display unit 6 includes a display such as an LCD for displaying various information necessary for performance and setting, a built-in lamp attached to the switches in the input operation unit 5, and the like. Controls with commands, provides display support for performance and setting operations.

音源7は、音源部やDSPを有し、入力操作部5からの演奏操作情報から得られる実演奏情報に基づく楽音信号を生成したり、記憶装置4又は通信I/F8からの自動演奏データに基づく楽音信号を生成すると共に、生成される楽音信号に所定の効果を付与する。音源7に接続されるサウンドシステム10は、D/A変換部やアンプ、スピーカ等を備え、音源7から出力される楽音信号に基づく楽音を発生する。   The sound source 7 includes a sound source unit and a DSP, generates a musical sound signal based on actual performance information obtained from the performance operation information from the input operation unit 5, or generates automatic performance data from the storage device 4 or the communication I / F 8. A musical tone signal based on the generated musical tone signal is generated, and a predetermined effect is given to the generated musical tone signal. The sound system 10 connected to the sound source 7 includes a D / A converter, an amplifier, a speaker, and the like, and generates a musical sound based on a musical sound signal output from the sound source 7.

通信I/F8は、MIDI等の音楽用有線I/F、USB等の汎用ネットワークI/F或いは無線Lan等の汎用近距離無線I/F等を含み、外部電子音楽装置MMと交信することができ、例えば、外部電子音楽装置MMの外部記憶装置にには、MIDI演奏データやフレーズデータ(Rp)等の音楽情報が記憶され、この楽曲生成装置からこれらの音楽情報源にアクセスし、所望の音楽情報をこの楽曲生成装置で利用することができる。   The communication I / F 8 includes a music wired I / F such as MIDI, a general-purpose network I / F such as USB, or a general-purpose short-range wireless I / F such as wireless Lan, and can communicate with the external electronic music apparatus MM. For example, music information such as MIDI performance data and phrase data (Rp) is stored in the external storage device of the external electronic music device MM. Music information can be used in this music generation device.

〔楽曲生成システムの概要〕
図1(2)は、この発明の一実施例による楽曲生成システムの機能ブロック図である。この楽曲生成装置(電子音楽装置)のCPU1を含むデータ処理部(1〜3)は、楽曲生成モードでは、図1(2)に示すように、ターゲット区間指定部TS、アレンジ部AR及びリファレンスフレーズ分割部RDとして機能し、楽曲生成装置(電子音楽装置)の外部記憶装置4に設けられたフレーズデータ記憶部RBには、「リファレンスパーツ」と呼ばれる多種多様なフレーズデータRpが記憶され、リファレンスフレーズデータベースが構築される。なお、リファレンスフレーズデータベースは、単にフレーズデータベースとも呼ばれ、フレーズデータ記憶部と同じ参照記号「RB」を付記して説明される。
[Outline of music generation system]
FIG. 1 (2) is a functional block diagram of a music generation system according to an embodiment of the present invention. In the music generation mode, the data processing units (1 to 3) including the CPU 1 of the music generation device (electronic music device), as shown in FIG. 1 (2), the target section specifying unit TS, the arrangement unit AR, and the reference phrase. The phrase data storage unit RB that functions as the division unit RD and is provided in the external storage device 4 of the music generation device (electronic music device) stores a wide variety of phrase data Rp called “reference parts”. A database is built. The reference phrase database is also simply referred to as a phrase database, and is described with the same reference symbol “RB” as the phrase data storage unit.

フレーズデータRpは、「ターゲットソング」又は「ターゲットソングデータ」と呼ばれ楽曲生成の元になる元楽曲データSoから新楽曲データSoaを生成する際に参照される高品質の参照楽曲データRsから作成することができる。参照楽曲データRsは、リファレンスソング又はリファレンスソングデータとも呼ばれ、フレーズデータ作成時には、まず、リファレンス区間切出し部(図示せず)により、参照楽曲データRsのうち楽曲生成の際に参照したい区間のデータ(リファレンス区間データと呼ばれる)Rtが参照演奏データとして切り出される。次いで、リファレンスフレーズ分割部RDにより、リファレンス区間データ(参照演奏データ)Rtに含まれる音符や休符などの演奏情報の内容に従ってリファレンス区間データRtが複数のリファレンスフレーズ区間Rpに分割(分解)され、分割された各リファレンスフレーズ区間Rpのデータがフレーズデータ(リファレンスパーツ)としてフレーズデータベースRBに記憶され(リファレンスフレーズ区間には、フレーズデータと同じ参照記号「Rp」が付記される)、フレーズデータベースRBは、多数のフレーズデータRpを、例えば、参照楽曲データRs別に整理して記憶する。   The phrase data Rp is called “target song” or “target song data” and is created from high-quality reference song data Rs that is referred to when the new song data Soa is generated from the original song data So that is the source of the song generation. can do. The reference song data Rs is also referred to as reference song or reference song data. When creating phrase data, first, reference zone data is extracted from the reference song data Rs by the reference segment extraction unit (not shown). Rt (referred to as reference section data) is cut out as reference performance data. Then, the reference phrase dividing unit RD divides (decomposes) the reference interval data Rt into a plurality of reference phrase intervals Rp according to the contents of performance information such as notes and rests included in the reference interval data (reference performance data) Rt. Data of each divided reference phrase section Rp is stored as phrase data (reference parts) in the phrase database RB (the reference phrase “RB” is added to the reference phrase section), and the phrase database RB is A large number of phrase data Rp are organized and stored, for example, by reference music data Rs.

さて、ターゲットソング(元楽曲データ)Soについては、まず、ターゲット区間指定部TSにより、ユーザによる対象区間指定操作に応じて楽曲生成対象区間即ちアレンジしたい区間(ターゲット区間)が指定され、指定された楽曲生成対象区間のデータ(ターゲット区間データと呼ばれる)Stはアレンジ部ARに導入される。   With respect to the target song (original music data) So, first, the target section designating unit TS designates and designates a music generation target section, that is, a section (target section) to be arranged according to a target section specifying operation by the user. Data of the music generation target section (called target section data) St is introduced into the arrangement unit AR.

アレンジ部ARは、主として、ターゲットフレーズ分割部PD、フレーズ検索部PS及びデータ変換部PRで構成され、各機能部PD,PS,PRは、予め設定(指定)された分解能(クォンタイズ長或いはクォンタイズ値とも呼ばれる)、休符長(休符区間の長さ)、最大小節長、調、拍子、テンポ、コードなどのパラメータPrに従って対応する機能を実行する。ターゲットフレーズ分割部PDは、入力されたターゲット区間データStに含まれる音符や休符などの演奏情報の内容に従って、当該ターゲット区間データStを複数のターゲットフレーズ区間(単にフレーズ区間ともいう)Tpに分割(分解)すると共に、分割されたターゲットフレーズ区間Tp毎に、リズム位置(打点)と、各リズム位置における音符(音高指定情報)の状態を示す「和音ステート」とを求め、求められたリズム位置及び和音ステートの情報を付加した各ターゲットフレーズ区間Tpのデータを「ターゲットパーツ」としてフレーズ検索部PSに出力する。なお、ターゲットパーツには、ターゲットフレーズ区間と同じ参照記号「Tp」が付記される。   The arrangement unit AR is mainly composed of a target phrase division unit PD, a phrase search unit PS, and a data conversion unit PR, and each functional unit PD, PS, PR has a preset resolution (quantized length or quantized value). The corresponding function is executed according to parameters Pr such as rest length (rest section length), maximum measure length, key, time signature, tempo, chord, and the like. The target phrase dividing unit PD divides the target section data St into a plurality of target phrase sections (also simply referred to as phrase sections) Tp according to the contents of performance information such as notes and rests included in the input target section data St. (Decomposition), and for each divided target phrase section Tp, a rhythm position (batting point) and a “chord state” indicating the state of a note (pitch designation information) at each rhythm position are obtained, and the obtained rhythm The data of each target phrase section Tp to which the position and chord state information is added is output as a “target part” to the phrase search unit PS. In addition, the same reference symbol “Tp” as the target phrase section is appended to the target part.

フレーズ検索部PSは、ユーザによる検索対象指定操作に応じて指定されたフレーズデータベースRB内の所定のフレーズデータ群(リファレンスパーツ群)に対して、分割されたターゲットフレーズ区間即ちターゲットパーツTp毎に所定の条件に適合するフレーズデータ即ちリファレンスパーツRpを検索(探索)し、検索されたリファレンスパーツRpのデータをターゲットパーツTpのデータと共にデータ変換部PRに送る。なお、この検索処理では、適合条件(検索条件)としてリズム位置(打点)及び和音ステートの情報が利用され、各ターゲットパーツTpのリズム位置が一致する、つまり、少なくとも、ターゲットパーツTpの全リズム位置がリファレンスパーツRpのリズム位置に含まれる(「完全にリズム位置が含まれる」という)だけでなく、一致するリズム位置(即ち、含まれるリズム位置)の和音ステートが一致するリファレンスパーツRpが、フレーズデータベースRBから順次探索される。   The phrase search unit PS is predetermined for each divided target phrase section, that is, for each target part Tp, with respect to a predetermined phrase data group (reference parts group) in the phrase database RB specified in accordance with a search target specifying operation by the user. Phrase data that meets the above condition, that is, the reference part Rp is searched (searched), and the data of the searched reference part Rp is sent to the data converter PR together with the data of the target part Tp. In this search process, information on the rhythm position (batting point) and chord state is used as the matching condition (search condition), and the rhythm positions of the respective target parts Tp match, that is, at least all the rhythm positions of the target parts Tp. Is included in the rhythm position of the reference part Rp (referred to as “completely including the rhythm position”), and the reference part Rp in which the chord state of the matching rhythm position (ie, included rhythm position) matches is a phrase A search is sequentially performed from the database RB.

データ変換部PRは、ノート調整部とも呼ばれ、検索されたリファレンスパーツRpの各音高について、ターゲットパーツTpのコードや調に合うように、また、ターゲットパーツTpの元々の音域に合うように変更する等の、ノート調整を行い、これにより、検索されたリファレンスパーツRpに基づいてターゲットパーツTpに合う演奏情報を生成し、生成された演奏情報で各ターゲットパーツTpの演奏情報を順次書き換えていく。同時に、検索されたリファレンスパーツRpに含まれる表情付けデータ(コントロールデータ)などをターゲットパーツTpに書き込む。そして、全ターゲット区間データSt内のターゲットパーツTpを書き換えることにより、アレンジされたターゲット区間データStaが生成され、さらに、アレンジされたターゲット区間データStaを元楽曲データSoのターゲット区間Stに組み込むことによって、アドリブ付きの新たなソングデータ(新楽曲データ)Soaが生成される。   The data converter PR is also referred to as a note adjuster, so that each pitch of the searched reference part Rp matches the chord and key of the target part Tp, and matches the original range of the target part Tp. Performing note adjustment such as changing, thereby generating performance information suitable for the target part Tp based on the retrieved reference part Rp, and sequentially rewriting the performance information of each target part Tp with the generated performance information. Go. At the same time, expression data (control data) included in the retrieved reference part Rp is written in the target part Tp. Then, by rewriting the target part Tp in the entire target section data St, the arranged target section data Sta is generated, and further, the arranged target section data Sta is incorporated into the target section St of the original music data So. New song data with ad lib (new music data) Soa is generated.

図2は、この発明の一実施例による楽曲生成の仕組みを原理的に説明するための図であり、ターゲットソングSo中のターゲット区間データStは、図2(1)に示すように、ターゲットフレーズ分割部PDにより所定長の休符区間(△印)で複数のターゲットパーツTp:…,Tpa,Tpb,…に分割される。これに対して、フレーズ検索部PSは、ユーザによる参照データ選択操作に応じて所望のリファレンスソングRsを選択し、図2(2)に示すように、フレーズデータベースRBから、選択されたリファレンスソングRsに対応して記憶された2つのリファレンス区間データRtj,Rtkに含まれるリファレンスパーツ(群)RpをRAM2のフレーズデータ保持領域にロードする。フレーズ検索部PSは、ユーザによる検索開始操作に応じてフレーズ検索の開始が指示されると、フレーズ区間指定手段PSsによりターゲット区間データSt内のターゲットパーツTpを先頭(図示せず)から順に指定し、指定されたターゲットパーツTpに適合するリファレンスパーツRpをリファレンス区間データRtj,Rtkから、順次、探索する。   FIG. 2 is a diagram for explaining in principle the mechanism of music generation according to one embodiment of the present invention. The target section data St in the target song So is a target phrase as shown in FIG. The dividing unit PD divides the target parts Tp:..., Tpa, Tpb,. On the other hand, the phrase search unit PS selects a desired reference song Rs according to the reference data selection operation by the user, and the selected reference song Rs is selected from the phrase database RB as shown in FIG. The reference part (group) Rp included in the two reference section data Rtj and Rtk stored corresponding to is loaded into the phrase data holding area of the RAM 2. When the phrase search unit PS is instructed to start a phrase search in response to a search start operation by the user, the phrase search unit PSs sequentially specifies the target parts Tp in the target section data St from the top (not shown). The reference part Rp that matches the specified target part Tp is sequentially searched from the reference section data Rtj and Rtk.

例えば、或るターゲットパーツTpaについて、その適合条件に従いリファレンス区間データRtj,Rtk内をサーチし、その結果、図2(2)下段のように、リファレンス区間データRtk内からターゲットパーツTpaに対応するリファレンスパーツRpaが見つかると、このターゲットパーツTpaを対応するリファレンスパーツRpaで置換する。次のターゲットパーツTpbについても同様にサーチし、その結果、図2(2)上段のように、リファレンス区間データRtj内からリファレンスパーツRpbが見つかると、このターゲットパーツTpbを対応するリファレンスパーツRpbで置換する。このようにして、順次、各ターゲットパーツTp:…,Tpa,Tpb,…に対応するリファレンスパーツ(フレーズデータ)Rp:…,Rpa,Rpb,…を参照してフレーズを合成してゆくことで、新たなターゲット区間データStaを生成することができる。   For example, for a certain target part Tpa, the reference section data Rtj and Rtk are searched according to the matching conditions. As a result, as shown in the lower part of FIG. 2 (2), the reference corresponding to the target part Tpa from the reference section data Rtk. When the part Rpa is found, the target part Tpa is replaced with the corresponding reference part Rpa. The same search is performed for the next target part Tpb. As a result, when the reference part Rpb is found in the reference interval data Rtj as shown in the upper part of FIG. 2 (2), the target part Tpb is replaced with the corresponding reference part Rpb. To do. In this way, by sequentially synthesizing phrases with reference to reference parts (phrase data) Rp:..., Rpa, Rpb,... Corresponding to each target part Tp:..., Tpa, Tpb,. New target section data Sta can be generated.

ターゲットフレーズ分割では、ターゲット区間データStを休符情報などに基づき複数のターゲットパーツ(フレーズ区間)Tpに分割する。すなわち、図2(1)に“△”で示すように、ターゲット区間データSt中の所定長の休符区間がある位置或いは所定の最大小節長になる位置(△)でターゲットパーツ(例えば、Tpa,Tpb)を分ける。分割後は、ユーザ設定で指定された所定の分解能(例えば、4分音符長)で各ターゲットパーツTpをクォンタイズして分析し、リズム位置及び和音ステート情報を求めておく。   In the target phrase division, the target section data St is divided into a plurality of target parts (phrase sections) Tp based on rest information or the like. That is, as indicated by “Δ” in FIG. 2 (1), the target part (for example, Tpa) is located at a position where there is a rest section of a predetermined length in the target section data St or a position (Δ) at which a predetermined maximum bar length is reached. , Tpb). After the division, each target part Tp is quantized and analyzed with a predetermined resolution (for example, quarter note length) designated by the user setting to obtain rhythm position and chord state information.

和音ステートは、各打点(リズム位置)における音符(音高指定情報)の状態を表わす情報であり、図3は、この発明の一実施例による和音ステートの例を示す。この例では、ステート値が「1」〜「5」である5種類の和音ステートがあり、ステート値=「1」の和音ステートは、「単音」と呼ばれ、リズム位置にノートオンが1つだけ存在する状態を表わし、ステート値=「2」の和音ステートは、「速弾き」と呼ばれ、リズム位置にノートオンが2つ以上存在し、そのうち少なくとも1つがクォンタイズ長(分解能)の1/2未満の音長である状態を表わす。また、ステート値=「3」の和音ステートは、「コード演奏」と呼ばれ、リズム位置にノートオンが2つ以上存在し、その全てがクォンタイズ長の1/2以上の音長である状態を表わす。さらに、ステート値=「4」の和音ステートは、「PBによる音程変更(Single)」と呼ばれ、リズム位置にピッチベンド(PB)による音程変更が1つだけ存在し、その他に通常のノートオンは存在しない状態を表わし、ステート値=「5」の和音ステートは、「PBによる音程変更(Multi)」と呼ばれ、リズム位置にピッチベンド(PB)による音程変更が少なくとも1つ存在し、加えて、通常のノートオン又はピッチベンド(PB)による音程変更が1つ以上存在する場合を表わしている。なお、例えば、ステート値=「3」のケースを、ノートオンが2つの場合、3つの場合など、更に細かくステート値を設定してもよい。   The chord state is information representing the state of the note (pitch designation information) at each striking point (rhythm position), and FIG. 3 shows an example of the chord state according to one embodiment of the present invention. In this example, there are five types of chord states with state values “1” to “5”. A chord state with a state value = “1” is called a “single note” and has one note-on at the rhythm position. A chord state with a state value = “2” is called “quick playing”, and there are two or more note-ons at the rhythm position, at least one of which is 1 / of the quantization length (resolution). This represents a state in which the sound length is less than 2. A chord state with a state value = “3” is called “chord performance”, and there are two or more note-ons at the rhythm position, all of which have a tone length that is ½ or more of the quantize length. Represent. Further, a chord state with a state value = “4” is called “pitch change by PB (single)”, and there is only one pitch change by pitch bend (PB) at the rhythm position. A chord state having a state value = “5”, which represents a non-existing state, is called “pitch change by PB (Multi)”, and there is at least one pitch change by pitch bend (PB) at the rhythm position. This represents a case where there is one or more pitch changes due to normal note-on or pitch bend (PB). Note that the state value may be set more finely, for example, in the case where the state value = “3”, two note-on cases, and three note-on cases.

フレーズ検索(PS)においては、リズム位置及び和音ステートがターゲットパーツTpと一致することを適合条件にしてリファレンスパーツRpが検索される。その際、和音ステートの一致による対応リファレンスパーツRpの検索は、和音ステートのステート値が同じ値であることを条件として行われる。   In the phrase search (PS), the reference part Rp is searched on the condition that the rhythm position and the chord state coincide with the target part Tp. At that time, the search for the corresponding reference part Rp by matching the chord states is performed on condition that the state values of the chord states are the same value.

各ターゲットパーツTpのフレーズ検索(PS)において、当該ターゲットパーツTpに完全に適合したリファレンスパーツRpは検索されず、当該ターゲットパーツTpの途中まで適合したリファレンスパーツRpが検索された場合は、データ変換部PRにより、検索されたリファレンスパーツRpに基づいて、当該ターゲットパーツTpの途中までに合う演奏情報を生成し、この演奏情報で当該ターゲットパーツTpの途中までを書き換える。また、書き換え途中以降の当該ターゲットパーツTpの残り部分については、リズム位置及び和音ステートが適合するリファレンスパーツRpを、フレーズ保持領域に保持されているリファレンスパーツ群から再検索(再探索)し、再検索の結果に応じて、対応する演奏情報を生成し当該残り部分を書き換える。なお、再検索でも、当該ターゲットパーツTpの残り部分の途中までしか適合リファレンスパーツRpが検索されなかった場合は、適合リファレンスパーツRpに対応する演奏情報で当該ターゲットパーツTpの残り部分の途中までを書き換え、それ以降について、同様の処理を繰り返す。   In the phrase search (PS) of each target part Tp, the reference part Rp that perfectly matches the target part Tp is not searched, and if the reference part Rp that matches partway through the target part Tp is searched, data conversion is performed. The part PR generates performance information suitable for the middle of the target part Tp based on the retrieved reference part Rp, and rewrites the middle of the target part Tp with the performance information. For the remaining part of the target part Tp after rewriting, the reference part Rp that matches the rhythm position and chord state is re-searched (re-searched) from the reference part group held in the phrase holding area, and re-searched. According to the search result, corresponding performance information is generated and the remaining portion is rewritten. Even in the re-search, when the matching reference part Rp is searched only halfway through the remaining part of the target part Tp, the performance information corresponding to the matching reference part Rp is used until the middle of the remaining part of the target part Tp. The same processing is repeated for the rewriting and thereafter.

また、各ターゲットパーツTpのフレーズ検索(PS)において、当該ターゲットパーツTpに適合したリファレンスパーツRpも当該ターゲットパーツTpの途中までに適合したリファレンスパーツRpも検索されない場合、当該ターゲットパーツTpの先頭音(ノートオン)位置の演奏情報を「未対応」とし、第2音(ノートオン)位置以降について再検索(再探索)を行う。さらに、再検索でも、何ら適合したリファレンスパーツRpが検索されない場合は、再検索した先頭音(ノートオン)の演奏情報を「未対応」とし、更に次の音(ノートオン)以降について同様の処理を繰り返す。ここで、「未対応」としたターゲットパーツTp内の演奏情報については、別途、例えば、そのままの音符情報で残すようにする等、何らかの演奏情報を生成する処理が行われる。   In addition, in the phrase search (PS) of each target part Tp, if neither the reference part Rp that matches the target part Tp nor the reference part Rp that matches the target part Tp is searched, the leading sound of the target part Tp The performance information at the (note-on) position is set to “unsupported”, and the second sound (note-on) position and subsequent positions are re-searched (re-searched). Further, if no suitable reference part Rp is found even after re-searching, the performance information of the re-searched first note (note-on) is set to “unsupported”, and the same processing is performed for the next sound (note-on) and thereafter. repeat. Here, with respect to the performance information in the target part Tp that is set to “unsupported”, some performance information is generated separately, for example, the musical information is left as it is.

以上のように、この発明の一実施例による楽曲生成システムでは、楽曲生成のために参照される高品質のリファレンス区間データ(演奏データ)Rtから複数のリファレンスパーツ(フレーズデータ)Rpに分割され(RD)フレーズデータベース(フレーズデータ記憶部)RBに用意される。ターゲットソング(元楽曲データ)Soのアレンジしたいターゲット区間(楽曲生成対象区間)Stは、該区間Stに含まれる演奏情報を参照することにより複数のターゲットパーツ(フレーズ区間)Tpに分割され(PD)、各ターゲットパーツTp毎に所定の適合条件を満足するリファレンスパーツRpをフレーズデータベースRBから検索(探索)するフレーズ検索PSが行われる。フレーズ検索PSにおける適合条件としては、少なくとも打点(リズム位置)が一致することが必要であり、さらに、「和音ステート」と呼ばれる各打点における音符の状態が一致することが好ましい。フレーズ検索PSの結果、当該ターゲットパーツTpに適合したリファレンスパーツRpが検索された場合、検索されたリファレンスパーツRpに基づき生成される演奏情報で当該ターゲットパーツTpが書き換えられる(PR)。一方、フレーズ検索PSの結果、当該ターゲットパーツTpの途中までに適合するリファレンスパーツRpしか検索されなかった場合は、当該ターゲットパーツTpの途中までの部分は、検索されたリファレンスパーツRpに基づき生成された演奏情報で書き換えられ、途中以降の残り部分については、所定の適合条件を満足するリファレンスパーツRpがフレーズデータベースRBから再検索(再探索)される。従って、このシステムによれば、ターゲットソングSoのアレンジしたい部分Stが、ターゲットパーツTp毎にリズムや音節などが近似し品質の良いリファレンスパーツRpで変換され、所望のアドリブ部分を作成することができる。   As described above, in the music generation system according to one embodiment of the present invention, the high-quality reference section data (performance data) Rt referred to for music generation is divided into a plurality of reference parts (phrase data) Rp ( RD) prepared in a phrase database (phrase data storage unit) RB. A target section (song generation target section) St to be arranged for the target song (original music data) So is divided into a plurality of target parts (phrase sections) Tp by referring to the performance information included in the section St (PD) For each target part Tp, a phrase search PS for searching (searching) a reference part Rp satisfying a predetermined matching condition from the phrase database RB is performed. As the matching conditions in the phrase search PS, it is necessary that at least the hit points (rhythm positions) match, and it is preferable that the note states at the respective hit points called “chord states” match. As a result of the phrase search PS, when a reference part Rp suitable for the target part Tp is searched, the target part Tp is rewritten with performance information generated based on the searched reference part Rp (PR). On the other hand, as a result of the phrase search PS, when only the reference part Rp that matches the target part Tp is searched, the part of the target part Tp is generated based on the searched reference part Rp. The reference part Rp that satisfies the predetermined matching condition is re-searched (re-searched) from the phrase database RB for the remaining part after the performance information. Therefore, according to this system, the portion St desired to be arranged in the target song So is converted by the reference part Rp having a good quality that approximates the rhythm and syllable for each target part Tp, and a desired ad-lib portion can be created. .

〔処理フロー例〕
図4は、この発明の一実施例によるリファレンス登録処理の動作例を表わすフローチャートである。この楽曲生成装置では、待機モードや実演奏モード、自動演奏モード等の任意の動作モードで動作しているときに、モード設定ボタンを操作してリファレンス登録モードの動作状態にすることができる。リファレンス登録モードでは、図4に示されるリファレンス登録処理によって、楽曲生成処理(フレーズ変換処理)に先立ち、リファレンスソング(参照楽曲データ)Rs中のリファレンス区間データ(参照演奏データ)RtをRAM2内の所定記憶領域にロードして分析し、分析結果をフレーズデータベースRBにリファレンスパーツRpとして蓄積しておくことができる。
[Example of processing flow]
FIG. 4 is a flowchart showing an example of the operation of reference registration processing according to one embodiment of the present invention. In this music generation device, when operating in an arbitrary operation mode such as a standby mode, an actual performance mode, or an automatic performance mode, the operation mode of the reference registration mode can be set by operating the mode setting button. In the reference registration mode, the reference section data (reference performance data) Rt in the reference song (reference song data) Rs is stored in the RAM 2 in a predetermined manner prior to the music generation process (phrase conversion process) by the reference registration process shown in FIG. The analysis result can be loaded into the storage area and the analysis result can be stored in the phrase database RB as a reference part Rp.

図4において、CPU1は、まず、ステップR1で、基になるリファレンス区間データRtに含まれる演奏情報を先頭ノート(少なくともタイミング及び音高情報を持つ)から順に評価(分析)することができるように読み込み、ユーザ操作により分解能を指定(決定)する。続くステップR2では、リファレンス区間データRtについて、ユーザ操作により指定された長さ(指定休符長)以上の休符区間〔図2(2)の“△”〕を検出する度に、その位置でリファレンスパーツRpに分割してゆく。休符長についても、予め定められた複数の指定長で分析しておくことが好ましい。また、分割するリファレンスパーツRpの区間幅について、上限を例えば2小節などの最大小節長に予め指定しておき、上限(最大小節長)を超えないように休符区間を検出して分割していくのがよい。つまり、リファレンス区間データRt内に含まれる休符情報に基づき、指定長以上の休符区間が検出されたときにリファレンスパーツRpに分割し、分割されるリファレンスパーツRpの長さを、指定された最大小節長で、長くても最大小節長(例えば、2小節長)に制限する。   In FIG. 4, first, in step R <b> 1, the CPU 1 can evaluate (analyze) the performance information included in the reference section data Rt as a base in order from the first note (having at least timing and pitch information). Read and specify (determine) resolution by user operation. In the subsequent step R2, every time a rest section [“Δ” in FIG. 2 (2)] longer than the length (designated rest length) designated by the user operation is detected in the reference section data Rt, at that position. Divide into reference parts Rp. The rest length is preferably analyzed with a plurality of predetermined lengths. In addition, for the section width of the reference part Rp to be divided, an upper limit is specified in advance as a maximum measure length such as two bars, and a rest section is detected and divided so as not to exceed the upper limit (maximum measure length). It is good to go. That is, based on the rest information included in the reference section data Rt, when a rest section of a specified length or more is detected, the reference section Rp is divided and the length of the divided reference part Rp is designated. The maximum bar length is limited to the maximum bar length (for example, two bar lengths) at the longest.

ステップR2のリファレンスパーツ分割の後は、分割された複数のリファレンスパーツRpに含まれる演奏情報について、先頭のリファレンスパーツRpから順に、ステップR3,R4の処理を順次行う。つまり、ステップR3では、各リファレンスパーツRp毎に、指定された分解能(指定分解能という。例えば、4分、4分3連、8分、8分3連、16分、16分3連など。)でそれぞれクォンタイズしてリズム位置を求め(クォンタイズは、複数種類、前もって行ってもよい)、求められた各音符のリズム位置を表わすリズム位置情報をRAM2内の所定記憶領域に元のリファレンスパーツRpと対応付けて保持する。ステップR4では、求められた各リズム位置における和音ステートを求め、求められた和音ステートをステート値で表わした和音ステート情報をRAM2内の所定記憶領域にリズム位置情報と対応付けて保持する。次のステップR5では、リファレンス区間データRt内の全てのリファレンスパーツRpについてリズム位置情報及び和音ステート情報を求める処理が終了したか否かを判定し、全リファレンスパーツRpの処理が終了していないときは(R5=NO)、ステップR3に戻り、次のリファレンスパーツRpにつきステップR3,R4の処理を繰り返す。   After the reference part division in step R2, the processing of steps R3 and R4 is sequentially performed on the performance information included in the plurality of divided reference parts Rp in order from the top reference part Rp. That is, in step R3, the specified resolution for each reference part Rp (referred to as the specified resolution. For example, 4 minutes, 4 minutes, 3 stations, 8 minutes, 8 minutes, 3 stations, 16 minutes, 16 minutes, 3 stations, etc.) Quantize each to obtain a rhythm position (a plurality of types of quantization may be performed in advance), and obtain rhythm position information representing the rhythm position of each calculated note in the predetermined storage area in the RAM 2 and the original reference part Rp. Hold in association. In step R4, a chord state at each obtained rhythm position is obtained, and chord state information representing the obtained chord state as a state value is stored in a predetermined storage area in the RAM 2 in association with the rhythm position information. In the next step R5, it is determined whether or not the processing for obtaining the rhythm position information and chord state information has been completed for all the reference parts Rp in the reference section data Rt, and the processing of all the reference parts Rp has not been completed. (R5 = NO), the process returns to step R3, and the processing of steps R3 and R4 is repeated for the next reference part Rp.

そして、全てのリファレンスパーツRpについて処理が終了すると(R5=YES)、ステップR6に進み、各リファレンスパーツRp毎に、ステップR3,R4で得られRAM2内に保持されたリズム位置情報及び和音ステート情報を各リファレンスパーツRpの演奏情報と対応付けたものを、リファレンスソングRs別かつリファレンス区間データRt別のリファレンスパーツRpとして、フレーズデータベースRBに記憶し登録する。そして、このリファレンス登録処理を終了し、元の動作モードに戻る。なお、フレーズデータベースRBへの登録に際し、各リファレンスパーツRpは、分析に用いたクォンタイズ長別及び休符長別に複数種類分登録しておくことが好ましい。   When the processing is completed for all the reference parts Rp (R5 = YES), the process proceeds to step R6, and the rhythm position information and chord state information obtained in steps R3 and R4 and stored in the RAM 2 for each reference part Rp. Is stored in the phrase database RB and registered as reference parts Rp for each reference song Rs and for each reference section data Rt. Then, the reference registration process is terminated, and the original operation mode is restored. In addition, when registering in the phrase database RB, it is preferable that each reference part Rp is registered for a plurality of types according to the quantize length and rest length used in the analysis.

図5〜図7は、この発明の一実施例によるフレーズ変換処理(楽曲生成処理)の動作例を表わすフローチャートである。モード設定ボタンを操作してフレーズ変換モードの動作状態にすると、図5〜図7に示されるフレーズ変換処理によって、ターゲットソング(元楽曲データ)So中のターゲット区間データStをRAM2内の所定記憶領域にロードし、フレーズデータベースRBのリファレンスパーツRpを参照しつつ新たなターゲット区間データStaを生成することができる。   5 to 7 are flowcharts showing an operation example of phrase conversion processing (music generation processing) according to one embodiment of the present invention. When the mode setting button is operated to enter the phrase conversion mode operation state, the target section data St in the target song (original music data) So is stored in a predetermined storage area in the RAM 2 by the phrase conversion processing shown in FIGS. The new target section data Sta can be generated while referring to the reference part Rp of the phrase database RB.

図5〜図6において、CPU1は、まず、ステップP1〜P5の分析処理により、前述したリファレンス登録処理(図4)のステップR1〜R5と同様の手順で、ターゲット区間データStを分析し、分析結果をターゲットパーツTpとしてステップP6〜P15の検索及び変換処理に利用することができる。つまり、ステップP1では、ターゲット区間データStの演奏情報を先頭ノート(少なくともタイミング及び音高情報を持つ)から順に評価(分析)することができるように読み込み、ユーザ操作により分解能を指定(決定)する。次のステップP2では、ターゲット区間データStに含まれる休符情報に基づき指定長以上の休符区間〔図2(1)の“△”〕を検出し、最大小節長以下のターゲットパーツTpに分割してゆく。つまり、ステップR2と同様に、指定長以上の休符区間が検出されたとき、或いは、このような休符区間が検出されなくても、予め指定された最大小節長(例えば、2小節長)になったときに、ターゲットパーツTpに分割する。次いで、ステップP3にて、各ターゲットパーツTp毎に指定分解能でクォンタイズしてリズム位置情報を求め(クォンタイズは、前もって実施しておいてもよい)、続くステップP4で、ターゲットパーツTp内の各リズム位置における和音ステート(ステート値)を求め、リズム位置情報に対応付けてRAM2の所定領域に記憶する。そして、ステップP5で、全てのリファレンスパーツRpについて分析処理が終了しないと判定している間は(P5=NO)、ステップP3,P4の処理を繰り返す。なお、ターゲット区間データStを分析する場合には、複数種類の分解能のうちユーザ操作で指定された何れか1種類の指定分解能でクォンタイズされ(P3)、休符区間の長さについても、予め定められた複数の休符長からユーザ操作で指定された何れか1種類の休符長でフレーズ分割される(P4)。また、休符区間が最大小節長を超える毎に、休符のみの区間として分割しておいてもよい。   5 to 6, the CPU 1 first analyzes the target section data St by the same procedure as the steps R1 to R5 of the reference registration process (FIG. 4) described above by the analysis process of steps P1 to P5. The result can be used as the target part Tp for the search and conversion processing in steps P6 to P15. That is, in step P1, the performance information of the target section data St is read so that it can be evaluated (analyzed) sequentially from the first note (having at least timing and pitch information), and the resolution is designated (determined) by the user operation. . In the next step P2, a rest section [“Δ” in FIG. 2 (1)] of a specified length or more is detected based on rest information included in the target section data St, and divided into target parts Tp of the maximum measure length or less. I will do it. That is, as in step R2, when a rest interval of a specified length or longer is detected, or even if such a rest interval is not detected, a maximum bar length specified in advance (for example, two bar lengths). Is divided into target parts Tp. Next, in step P3, each target part Tp is quantized with a designated resolution to obtain rhythm position information (quantization may be performed in advance), and in subsequent step P4, each rhythm in the target part Tp. A chord state (state value) at the position is obtained and stored in a predetermined area of the RAM 2 in association with the rhythm position information. And while it determines with the analysis process not being complete | finished about all the reference parts Rp by step P5 (P5 = NO), the process of step P3, P4 is repeated. When analyzing the target section data St, it is quantized with any one of the specified resolutions specified by the user operation among a plurality of resolutions (P3), and the length of the rest section is also determined in advance. The phrase is divided by any one type of rest length designated by the user operation from the plurality of rest lengths (P4). Further, every time the rest section exceeds the maximum measure length, it may be divided as a rest-only section.

ステップP1〜P5のターゲット区間データ分析処理の後は(P5=YES)、ステップP6の検索処理を行い、フレーズ区間指定手段PSsにより指定されるターゲットパーツTp毎に、リズム位置及び和音ステートが一致するリファレンスパーツ、即ち、リズム位置を完全に含み、含まれているリズム位置に対応する和音ステートが同じであるリファレンスパーツRpを探す。この場合、指定されたターゲットソングSoと、ターゲット区間データ分析処理で用いた分解能及び休符長と同一の分解能及び休符長とに対応するリファレンスパーツ群を検索対象の範囲とし、当該リファレンスパーツ群をフレーズデータベースRBから読み出しRAM2のフレーズデータ保持領域にロードする。従って、例えば、ステップP2で基準となる指定休符長を変更した場合、検索対象の範囲は、変更後の休符長に対応するリファレンスパーツ群が選択される。なお、ターゲットパーツTpが休符のみの場合は、設定に応じて何れかのリファレンスパーツを採用するようにすればよい。   After the target section data analysis process of steps P1 to P5 (P5 = YES), the search process of step P6 is performed, and the rhythm position and the chord state match for each target part Tp specified by the phrase section specifying means PSs. A reference part, that is, a reference part Rp that completely includes the rhythm position and has the same chord state corresponding to the included rhythm position is searched for. In this case, a reference part group corresponding to the designated target song So and the same resolution and rest length as the resolution and rest length used in the target section data analysis processing is set as a search target range, and the reference part group Is read from the phrase database RB and loaded into the phrase data holding area of the RAM 2. Therefore, for example, when the designated rest length serving as a reference is changed in step P2, the reference part group corresponding to the rest length after the change is selected as the search target range. In addition, when the target part Tp is only a rest, any reference part may be adopted according to the setting.

次のステップP7では、検索処理の結果、完全に一致するリファレンスパーツRp、即ち、「それぞれのターゲットパーツTpについて、全フレーズ区間にわたり、少なくとも完全にリズム位置情報を含み(当該ターゲットパーツの全てのリズム位置情報を含み)、含まれている各リズム位置に対応する和音ステートが同じである(一致する)リファレンスパーツRp」が見つかったか否かを判定し、完全に一致するリファレンスパーツRpが見つかったときは(P7=YES)、ステップP8でリファレンス採用処理を行い、見つかったリファレンスパーツRpを当該ターゲットパーツTpの変換用データに採用する。   In the next step P7, as a result of the search process, the reference parts Rp that completely match, that is, “each target part Tp includes at least completely the rhythm position information over all phrase sections (all rhythms of the target part). When a reference part Rp having the same (matching) chord state corresponding to each included rhythm position is found and a completely matching reference part Rp is found. (P7 = YES), a reference adoption process is performed in step P8, and the found reference part Rp is adopted as conversion data for the target part Tp.

一方、完全に(=全フレーズ区間にわたって)一致するリファレンスパーツRpが見つからないときは(P7=NO)、ステップP9(図6)に進み、和音ステートを含めリズム位置がフレーズ区間の途中まで一致するリファレンスパーツRp、即ち、リズム位置が途中まで一致し、一致しているリズム位置に対応する和音ステートがそれぞれ一致するリファレンスパーツRpが見つかったか否かを判定し、見つかったときは(S9=YES)、ステップP10に進み、途中までのリファレンス採用処理を行い、見つかったリファレンスパーツRpを当該ターゲットパーツTpの一致区間(先頭から途中まで)の変換用データに採用する。なお、リファレンスパーツRpが複数見つかった場合は、長い区間で(より後方の位置まで)一致するものを採用する。これに対して、途中まで一致するリファレンスパーツさえ見つからないときは(P9=NO)、ステップP11に進んで、現在、一致判定の対象となっているターゲットパーツTp或いは「残り区間」に決定されているターゲットパーツ部分について、先頭の1音を「未対応」に決定し、先頭から2音目以降を新たに「残り区間」に決定し、2音目以降がない場合は「残り区間なし」に決定する。   On the other hand, when the reference part Rp that completely matches (= over all phrase sections) is not found (P7 = NO), the process proceeds to step P9 (FIG. 6), and the rhythm position including the chord state matches to the middle of the phrase section. It is determined whether or not a reference part Rp, that is, a reference part Rp in which the rhythm positions coincide with each other and the chord states corresponding to the coincident rhythm positions coincide with each other is found (S9 = YES). Then, the process proceeds to Step P10, where the reference adoption process is performed halfway, and the found reference part Rp is employed as conversion data in the matching section (from the beginning to the middle) of the target part Tp. When a plurality of reference parts Rp are found, the one that matches in a long section (up to a later position) is adopted. On the other hand, if even a reference part that matches partway is not found (P9 = NO), the process proceeds to step P11, where the target part Tp or the “remaining section” that is currently subject to matching is determined. For the target part part, the first note is determined as “unsupported”, the second and subsequent sounds from the beginning are newly determined as “remaining sections”, and if there are no second and subsequent sounds, “no remaining sections” are selected. decide.

ステップP10或いはステップP11の処理の後は、ステップP12で、「残り区間」があるか否かを判定し、「残り区間」があるときは(S12=YES)、ステップP13に進み、「残り区間」について、対応するリファレンスパーツを探す処理を行う。ステップP13の残り区間検索処理の後は、ステップP9に戻り、和音ステートを含めリズム位置が全部或いは途中まで一致するリファレンスパーツ、即ち、リズム位置が全部或いは途中まで一致し、一致しているリズム位置に対応する和音ステートにそれぞれ一致するリファレンスパーツRpが見つかったか否かを判定し、判定結果に応じてステップP10或いはステップP11の処理を行い、残り区間がある間は(S12=YES)、ステップP13,P9〜P12の処理を繰り返す。なお、ステップP11で「未対応」に決定された音については、例えば、前述したように、元の音符情報をそのまま残すようにしてもよいし、また、「未対応」がある期間連続するようであれば、「休符のみの区間」と同様に処理するようにしてもよい。   After the process of step P10 or step P11, it is determined in step P12 whether or not there is a “remaining section”. If there is a “remaining section” (S12 = YES), the process proceeds to step P13. ”Is searched for a corresponding reference part. After the remaining section search process in step P13, the process returns to step P9, where the rhythm positions including the chord state are all or halfway matched, that is, the rhythm positions are all or halfway matched, and the rhythm positions are the same. It is determined whether or not a reference part Rp corresponding to each chord state corresponding to is found, and the process of step P10 or step P11 is performed according to the determination result. While there is a remaining section (S12 = YES), step P13 is performed. , P9 to P12 are repeated. For the sound determined to be “unsupported” in step P11, for example, as described above, the original note information may be left as it is, or it may be continued for a period of “unsupported”. If so, the processing may be performed in the same manner as the “rest-only section”.

ステップP8(図5)のリファレンス採用処理の後或いはステップP12(図6)で「残り区間」がないと判定した後は(S12=NO)、ステップP14(図5)で、当該ターゲットパーツTpの検索及び変換処理を終了したと判断し、次のステップP15に進む。ステップP15では、全てのターゲットパーツTpについて検索及び変換処理が終了したか否かを判定し、検索及び変換処理が終了していないときは(S15=NO)、ステップP6に戻り、フレーズ区間指定手段PSsにより指定される次のターゲットパーツTpについて、ステップP6〜P15の処理を繰り返す。そして、全てのターゲットパーツTpについて検索及び変換処理が終了すると(S15=YES)、このフレーズ変換処理(楽曲生成処理)を終了し、元の動作モードに戻る。   After the reference adoption process in step P8 (FIG. 5) or after determining that there is no “remaining section” in step P12 (FIG. 6) (S12 = NO), in step P14 (FIG. 5), the target part Tp It is determined that the search and conversion process has been completed, and the process proceeds to the next step P15. In step P15, it is determined whether or not the search and conversion process has been completed for all target parts Tp. If the search and conversion process has not been completed (S15 = NO), the process returns to step P6, and phrase section specifying means The processing of steps P6 to P15 is repeated for the next target part Tp specified by PSs. When the search and conversion process is completed for all target parts Tp (S15 = YES), the phrase conversion process (music generation process) is terminated and the original operation mode is restored.

図7は、この発明の一実施例によるリファレンス採用処理の例を示すフローチャートであり、リファレンス採用処理は、フレーズ変換処理(楽曲生成処理)のステップP8(図5)或いはステップP10(図6)で実行される。リファレンス採用処理の最初のステップS1では、フレーズ区間指定手段PSsにより現在処理対象に指定されているターゲットパーツTpについて、見つかったリファレンスパーツRpにリズム位置が完全に含まれ、含まれているリズム位置に対応する和音ステートがそれぞれ一致する区間のイベントリスト(演奏情報)を作成する。次のステップS2では、当該リファレンスパーツRpの全部或いは途中までの一致区間について、イベントリスト(演奏情報)を作成する。このとき、区間外であっても、区間内のノート情報に有効なコントロールデータなどの有効情報がある場合は、一緒にイベントリスト内に追加しておく。   FIG. 7 is a flowchart showing an example of a reference adoption process according to an embodiment of the present invention. The reference adoption process is performed in step P8 (FIG. 5) or step P10 (FIG. 6) of the phrase conversion process (music generation process). Executed. In the first step S1 of the reference adoption process, the rhythm position is completely included in the found reference part Rp for the target part Tp currently designated as the processing target by the phrase section specifying means PSs. Create an event list (performance information) for the sections where the corresponding chord states match. In the next step S2, an event list (performance information) is created for the entire reference part Rp or the matching section up to the middle. At this time, even if outside the section, if there is valid information such as valid control data in the note information within the section, it is added together in the event list.

続くステップS3では、当該ターゲットパーツTpから作成したイベントリストに基づいて、当該リファレンスパーツRpから作成したイベントリストにおけるノート情報を調整する。例えば、ターゲットパーツTpのコード情報や調情報に合うように、また、該ターゲットパーツTpの元々の音域に合うように、リファレンスパーツRpのノート音高を変更する。また、次のステップS4では、当該ターゲットパーツTpの一致区間について、その演奏情報を消去した上、ノート情報が調整されたリファレンスパーツRpのイベントリストより、演奏情報をコピーし、必要に応じて、更にノートイベントデータ以外のコントロールデータ(例えば、メインボリュームやアフタータッチなど)もコピーする。そして、このコピー処理の後はリファレンス採用処理を終了し、フレーズ変換処理(楽曲生成処理)のステップP14(図5)或いはステップP12(図6)にリターンする。   In subsequent step S3, note information in the event list created from the reference part Rp is adjusted based on the event list created from the target part Tp. For example, the note pitch of the reference part Rp is changed so as to match the chord information and key information of the target part Tp and so as to match the original range of the target part Tp. In the next step S4, the performance information is deleted for the matching section of the target part Tp, and the performance information is copied from the event list of the reference part Rp in which the note information is adjusted. Furthermore, control data other than the note event data (for example, main volume, aftertouch, etc.) is also copied. After the copy process, the reference adoption process is terminated, and the process returns to step P14 (FIG. 5) or step P12 (FIG. 6) of the phrase conversion process (music generation process).

〔種々の実施態様〕
以上、図面を参照しつつこの発明の好適な実施の一形態について説明したが、これは単なる一例であり、この発明は、発明の精神を逸脱しない範囲で種々の変更が可能である。例えば、実施例では、予めリファレンスパーツ(Rp)をフレーズデータベースに登録しておき、指定された区間のターゲットソング(St)を楽曲生成の都度解析してターゲットパーツ(Tp)としたが、指定された区間のリファレンスソング(Rp)についても、その都度解析してリファレンスパーツを作成してもよい。また、楽曲生成の際に参照される参照楽曲データ(Rs)については、実施例では1曲としたが、複数曲でもよい。
[Various Embodiments]
The preferred embodiment of the present invention has been described above with reference to the drawings. However, this is merely an example, and the present invention can be variously modified without departing from the spirit of the invention. For example, in the embodiment, the reference part (Rp) is registered in the phrase database in advance, and the target song (St) in the specified section is analyzed every time the music is generated and is used as the target part (Tp). The reference song (Rp) in the section may be analyzed each time to create a reference part. In addition, the reference music data (Rs) that is referred to when the music is generated is one song in the embodiment, but may be a plurality of songs.

Rs リファレンスソング[データ](参照楽曲データ)、
Rt:Rtj,Rtk リファレンス区間データ(参照演奏データ)、
RB [リファレンス]フレーズデータベース又はフレーズデータ記憶部、
Rp:Rpa,Rpb リファレンスパーツ(フレーズデータ)、
So ターゲットソング[データ](元楽曲データ)、
St ターゲット区間[データ](楽曲生成対象区間又はアレンジ区間[データ])、
Tp:Tpa,Tpb ターゲットパーツ(フレーズ区間[データ])。
Rs Reference song [data] (reference song data),
Rt: Rtj, Rtk Reference section data (reference performance data),
RB [Reference] Phrase database or phrase data storage unit,
Rp: Rpa, Rpb Reference parts (phrase data),
So target song [data] (original song data),
St target section [data] (music generation target section or arrangement section [data]),
Tp: Tpa, Tpb Target parts (phrase interval [data]).

Claims (4)

楽曲生成のために参照される演奏データから分割された複数のフレーズデータを記憶するフレーズ記憶手段と、
元楽曲データについて楽曲生成対象区間を指定する対象区間指定手段と、
対象区間指定手段により指定された楽曲生成対象区間に含まれる演奏情報を参照して該楽曲生成対象区間を複数のフレーズ区間に分割するフレーズ分割手段と、
フレーズ分割手段により分割されたフレーズ区間毎に、打点が適合するフレーズデータをフレーズ記憶手段から検索するフレーズ検索手段と、
フレーズ検索手段による検索の結果、当該フレーズ区間に適合したフレーズデータが検索された場合に、検索されたフレーズデータに基づき生成された演奏情報を当該フレーズ区間に書き込む第1演奏情報変換手段と、
フレーズ検索手段による検索の結果、当該フレーズ区間の途中までに適合したフレーズデータが検索された場合に、検索されたフレーズデータに基づき生成された演奏情報を当該フレーズ区間の途中までの部分に書き込むと共に、当該フレーズ区間の残り部分について、打点が適合するフレーズデータをフレーズ記憶手段から検索し、その検索結果に応じて、対応する演奏情報を生成し当該残り部分に書き込む第2演奏情報変換手段と
を具備することを特徴とする楽曲生成装置。
Phrase storage means for storing a plurality of phrase data divided from performance data referred to for music generation;
A target section specifying means for specifying a music generation target section for the original music data;
Phrase dividing means for dividing the music generation target section into a plurality of phrase sections with reference to performance information included in the music generation target section specified by the target section specifying means;
For each phrase section divided by the phrase dividing means, a phrase searching means for searching phrase data matching phrase data from the phrase storage means;
As a result of the search by the phrase search means, when phrase data suitable for the phrase section is searched, first performance information conversion means for writing performance information generated based on the searched phrase data in the phrase section;
As a result of the search by the phrase search means, when phrase data suitable for the middle of the phrase section is searched, the performance information generated based on the searched phrase data is written to the middle part of the phrase section. The phrase storage means searches for the phrase data that matches the hit point for the remaining part of the phrase section, and according to the search result, the corresponding performance information is generated and the second performance information conversion means for writing in the remaining part. A music generation device comprising the music generation device.
フレーズ分割手段により分割された複数のフレーズ区間の夫々には、打点毎に音符の状態を示す音符状態情報が記録され、
フレーズ記憶手段に記憶された複数のフレーズデータの夫々には、打点毎に音符の状態を示す音符状態情報が記録され、
フレーズ検索手段及び第2演奏情報生成手段は、打点の適合に加えて音符状態情報の適合をチェックする
ことを特徴とする請求項1に記載の楽曲生成装置。
In each of the plurality of phrase sections divided by the phrase dividing means, note state information indicating a note state is recorded for each hit point,
In each of the plurality of phrase data stored in the phrase storage means, note state information indicating the state of the note for each hit point is recorded,
2. The music generating apparatus according to claim 1, wherein the phrase searching unit and the second performance information generating unit check the matching of the note state information in addition to the matching of the hit points.
楽曲生成のために参照される演奏データから分割された複数のフレーズデータを記憶するフレーズ記憶手段を具備し、楽曲生成装置として機能するコンピュータに、
元楽曲データについて楽曲生成対象区間を指定する対象区間指定ステップと、
対象区間指定ステップで指定された楽曲生成対象区間に含まれる演奏情報を参照して該楽曲生成対象区間を複数のフレーズ区間に分割するフレーズ分割ステップと、
フレーズ分割ステップで分割されたフレーズ区間毎に、打点が適合するフレーズデータをフレーズ記憶手段から検索するフレーズ検索ステップと、
フレーズ検索ステップにおける検索の結果、当該フレーズ区間に適合したフレーズデータが検索された場合に、検索されたフレーズデータに基づき生成された演奏情報を当該フレーズ区間に書き込む第1演奏情報変換ステップと、
フレーズ検索ステップにおける検索の結果、当該フレーズ区間の途中までに適合したフレーズデータが検索された場合に、検索されたフレーズデータに基づき生成された演奏情報を当該フレーズ区間の途中までの部分に書き込むと共に、当該フレーズ区間の残り部分について、打点が適合するフレーズデータをフレーズ記憶手段から検索し、その検索結果に応じて、対応する演奏情報を生成し当該残り部分に書き込む第2演奏情報変換ステップと
から成る手順を実行させる楽音生成プログラム。
A computer comprising phrase storage means for storing a plurality of phrase data divided from performance data referred to for music generation, and functioning as a music generation device,
A target section specifying step for specifying a music generation target section for the original music data;
A phrase dividing step of dividing the music generation target section into a plurality of phrase sections with reference to performance information included in the music generation target section specified in the target section specifying step;
For each phrase section divided in the phrase dividing step, a phrase searching step for searching phrase data with matching hit points from the phrase storage means;
As a result of the search in the phrase search step, when phrase data suitable for the phrase section is searched, a first performance information conversion step for writing performance information generated based on the searched phrase data in the phrase section;
As a result of the search in the phrase search step, when the phrase data suitable for the middle of the phrase section is searched, the performance information generated based on the searched phrase data is written to the middle of the phrase section. From the second performance information conversion step, the phrase data corresponding to the hit point is searched from the phrase storage means for the remaining portion of the phrase section, and corresponding performance information is generated and written in the remaining portion according to the search result. A musical sound generation program that executes a procedure consisting of
フレーズ分割ステップで分割された複数のフレーズ区間の夫々には、打点毎に音符の状態を示す音符状態情報が記録され、
フレーズ記憶手段に記憶された複数のフレーズデータの夫々には、打点毎に音符の状態を示す音符状態情報が記録され、
フレーズ検索ステップ及び第2演奏情報生成ステップでは、打点の適合に加えて音符状態情報の適合をチェックする
請求項3に記載の楽音生成プログラム。
In each of the plurality of phrase sections divided in the phrase dividing step, note state information indicating the state of the note for each hit point is recorded,
In each of the plurality of phrase data stored in the phrase storage means, note state information indicating the state of the note for each hit point is recorded,
The musical tone generation program according to claim 3, wherein in the phrase search step and the second performance information generation step, in addition to the hit point match, the note state information match is checked.
JP2009276473A 2009-12-04 2009-12-04 Music generation apparatus and program Expired - Fee Related JP5504857B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009276473A JP5504857B2 (en) 2009-12-04 2009-12-04 Music generation apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009276473A JP5504857B2 (en) 2009-12-04 2009-12-04 Music generation apparatus and program

Publications (2)

Publication Number Publication Date
JP2011118221A true JP2011118221A (en) 2011-06-16
JP5504857B2 JP5504857B2 (en) 2014-05-28

Family

ID=44283624

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009276473A Expired - Fee Related JP5504857B2 (en) 2009-12-04 2009-12-04 Music generation apparatus and program

Country Status (1)

Country Link
JP (1) JP5504857B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015169970A (en) * 2014-03-04 2015-09-28 ヤマハ株式会社 Music generating system
WO2022249402A1 (en) * 2021-05-27 2022-12-01 AlphaTheta株式会社 Acoustic device, music track reproduction method, and program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06222764A (en) * 1992-10-05 1994-08-12 Kawai Musical Instr Mfg Co Ltd Electronic musical instrument
JP2000099015A (en) * 1998-09-24 2000-04-07 Yamaha Corp Automatic music composing device and storage medium
JP2000148141A (en) * 1998-09-09 2000-05-26 Yamaha Corp Automatic composing device and storage medium
JP2000276166A (en) * 1999-03-19 2000-10-06 Yamaha Corp Rhythm pattern generating device and its recording medium
JP2006178104A (en) * 2004-12-21 2006-07-06 Yoshihiko Sano Method, apparatus and system for musical piece generation
JP2007219139A (en) * 2006-02-16 2007-08-30 Hiroshima Industrial Promotion Organization Melody generation system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06222764A (en) * 1992-10-05 1994-08-12 Kawai Musical Instr Mfg Co Ltd Electronic musical instrument
JP2000148141A (en) * 1998-09-09 2000-05-26 Yamaha Corp Automatic composing device and storage medium
JP2000099015A (en) * 1998-09-24 2000-04-07 Yamaha Corp Automatic music composing device and storage medium
JP2000276166A (en) * 1999-03-19 2000-10-06 Yamaha Corp Rhythm pattern generating device and its recording medium
JP2006178104A (en) * 2004-12-21 2006-07-06 Yoshihiko Sano Method, apparatus and system for musical piece generation
JP2007219139A (en) * 2006-02-16 2007-08-30 Hiroshima Industrial Promotion Organization Melody generation system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015169970A (en) * 2014-03-04 2015-09-28 ヤマハ株式会社 Music generating system
WO2022249402A1 (en) * 2021-05-27 2022-12-01 AlphaTheta株式会社 Acoustic device, music track reproduction method, and program

Also Published As

Publication number Publication date
JP5504857B2 (en) 2014-05-28

Similar Documents

Publication Publication Date Title
US20130305907A1 (en) Accompaniment data generating apparatus
JP3528654B2 (en) Melody generator, rhythm generator, and recording medium
US8791350B2 (en) Accompaniment data generating apparatus
JP4274272B2 (en) Arpeggio performance device
JP5504857B2 (en) Music generation apparatus and program
JP5821229B2 (en) Accompaniment data generation apparatus and program
JP5061926B2 (en) Electronic music apparatus and performance data editing display program
JP2005107029A (en) Musical sound generating device, and program for realizing musical sound generating method
JP4740583B2 (en) Music data processing apparatus and program
JP5598397B2 (en) Accompaniment data generation apparatus and program
JP3709821B2 (en) Music information editing apparatus and music information editing program
JP2004258564A (en) Score data editing device, score data display device, and program
JP4305315B2 (en) Automatic performance data characteristic changing device and program thereof
JP5846288B2 (en) Phrase data search device and program
JP6424907B2 (en) Program for realizing performance information search method, performance information search method and performance information search apparatus
JP5678343B2 (en) Phrase data search device and program
JP3775039B2 (en) Melody generator and recording medium
JP3797180B2 (en) Music score display device and music score display program
JP3709820B2 (en) Music information editing apparatus and music information editing program
JP6183002B2 (en) Program for realizing performance information analysis method, performance information analysis method and performance information analysis apparatus
JP4067007B2 (en) Arpeggio performance device and program
JP4595851B2 (en) Performance data editing apparatus and program
JP4835433B2 (en) Performance pattern playback device and computer program therefor
JP2004198574A (en) Performance support device and performance support program
JP2005010462A (en) Device and program for automatic musical performance, and computer-readable recording medium where automatic musical performance pattern data are recorded

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121022

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140218

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140303

R150 Certificate of patent or registration of utility model

Ref document number: 5504857

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees