JP5846288B2 - Phrase data search device and program - Google Patents

Phrase data search device and program Download PDF

Info

Publication number
JP5846288B2
JP5846288B2 JP2014264033A JP2014264033A JP5846288B2 JP 5846288 B2 JP5846288 B2 JP 5846288B2 JP 2014264033 A JP2014264033 A JP 2014264033A JP 2014264033 A JP2014264033 A JP 2014264033A JP 5846288 B2 JP5846288 B2 JP 5846288B2
Authority
JP
Japan
Prior art keywords
phrase
phrase data
data
deviation
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.)
Expired - Fee Related
Application number
JP2014264033A
Other languages
Japanese (ja)
Other versions
JP2015111271A (en
Inventor
山内 明
明 山内
崇 守尾
崇 守尾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP2014264033A priority Critical patent/JP5846288B2/en
Publication of JP2015111271A publication Critical patent/JP2015111271A/en
Application granted granted Critical
Publication of JP5846288B2 publication Critical patent/JP5846288B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

この発明は、楽曲の或る区間を作編曲するために、元の楽曲データから収集されたフレーズデータ群を参照して所望のフレーズデータを検索するフレーズデータ検索システムに関する。   The present invention relates to a phrase data search system for searching for desired phrase data with reference to a phrase data group collected from original music data in order to compose and arrange a certain section of music.

従来より、楽曲データを複数の区間に分け各区間のデータをフレーズデータとして抽出する装置が知られている。例えば、特許文献1に開示された音楽情報分析装置では、音楽情報として入力された所望の曲のメロディ情報について音符情報の長さや休符の長さを分析してフレーズ分けが行われる。また、既存の楽曲からフレーズを収集してデータベース化し楽曲生成に利用する技術も知られている。例えば、特許文献2に開示された楽曲生成システムでは、既製の楽曲から小節単位で抽出した各フレーズに、キー、コード、出だし、終了、最初のフレーズ音、最後のフレーズ音、拍子、許容テンポの範囲などの属性を付与してデータベース化している。   2. Description of the Related Art Conventionally, an apparatus that divides music data into a plurality of sections and extracts data of each section as phrase data is known. For example, in the music information analyzing apparatus disclosed in Patent Document 1, the melody information of a desired song input as music information is analyzed for the length of the note information and the length of the rest to perform phrase division. In addition, a technique is also known in which phrases are collected from existing music pieces and converted into a database for use in music generation. For example, in the music generation system disclosed in Patent Document 2, each phrase extracted from a ready-made music in bar units has a key, chord, start, end, first phrase sound, last phrase sound, time signature, allowable tempo. A database is created by assigning attributes such as range.

特開平8−292762号公報JP-A-8-292762 特開2006−178104号公報JP 2006-178104 A

しかしながら、従来のフレーズ分け技術では、所定の小節数や音符列の区切りなどでフレーズを抽出した場合、それぞれのフレーズが元の曲で使われていた位置関係が分らない。また、特許文献2のように抽出したフレーズに属性が付与されている場合、楽曲の出だし或いは終了に使うのに適しているかどうかは判別することができるが、その属性が付与されていないフレーズについて元の楽曲で使われていた位置関係は分らないし、楽曲の出だしや終了という属性では、小節内の位置までは判断することができない。さらに、楽曲の或る区間を作編曲するために、データベースから或るフレーズを使った場合、元の楽曲で強拍だった音符が弱拍で使われる、或いは、その逆に、元の楽曲で弱拍だった音符が強拍で使われる、といったことが起こり、再生時にビート感がフレーズの前後でずれたり他のパートとずれたような気持ちの悪い聴こえ方になることがある。   However, in the conventional phrase dividing technique, when a phrase is extracted with a predetermined number of measures or a note string delimiter, the positional relationship in which each phrase is used in the original song cannot be known. Moreover, when the attribute is given to the extracted phrase like patent document 2, it can be discriminate | determined whether it is suitable to use for the start or the end of a music, About the phrase to which the attribute is not given The positional relationship used in the original music is not known, and the position within the bar cannot be determined from the attributes of the start and end of the music. In addition, when using a phrase from the database to compose and arrange a section of music, notes that were strong beats in the original music are used in weak beats, or vice versa. When a note with a weak beat is used as a strong beat, the sense of beat may be misaligned before and after the phrase or during playback, resulting in an uncomfortable hearing.

この発明は、このような事情に鑑み、元の楽曲におけるフレーズデータの小節線或いは拍位置からのずれを考慮してフレーズ検索を行うことにより元々のフレーズデータが持っていたビート感を損なうことなく作編曲に活用することができるフレーズデータ検索システムを提供することを目的とする。   In view of such circumstances, the present invention performs the phrase search in consideration of the deviation from the bar line or the beat position of the phrase data in the original music without impairing the beat feeling that the original phrase data had. An object of the present invention is to provide a phrase data search system that can be used for composition and arrangement.

上記目的を達成するために、本発明のフレーズデータ検索装置は、元楽曲データから抽出された複数のフレーズデータを記憶すると共に、該フレーズデータの属性を表す属性情報を該フレーズデータに対応付けて記憶するフレーズ記憶手段と、編集対象とする楽曲データを取得する対象楽曲取得手段と、該対象楽曲取得手段により取得された楽曲データ内において編集範囲の先頭となる音符予定位置を指定する予定位置指定手段と、該予定位置指定手段により指定された音符予定位置の、音符予定位置直後の小節線又は拍位置のタイミングである基準タイミングに対するずれを検出し、検出されたずれを表わす指定ずれ情報を生成するずれ検出手段と、前記フレーズ記憶手段からフレーズデータを読み込むフレーズデータ読込み手段と、該フレーズデータ読込み手段により読み込まれたフレーズデータに対応する属性情報を前記フレーズ記憶手段から読み出し、読み出した属性情報から元楽曲データにおける先頭音符の、先頭音符直後の小節線及び拍タイミングである基準タイミングに対するずれを表わす参照ずれ情報を抽出するずれ情報抽出手段と、該ずれ情報抽出手段により抽出された前記参照ずれ情報を前記ずれ検出手段により生成された前記指定ずれ情報と比較し、両ずれ情報が一致する場合に、前記フレーズデータ読込み手段により読み込まれたフレーズデータを編集範囲の候補フレーズデータとして検出する候補検出手段とを具備することを最も主要な特徴としている。   In order to achieve the above object, a phrase data search device of the present invention stores a plurality of phrase data extracted from original music data, and associates attribute information representing the attributes of the phrase data with the phrase data. Phrase storage means for storing, target music acquisition means for acquiring music data to be edited, and planned position specification for designating a planned note position at the beginning of the editing range in the music data acquired by the target music acquisition means And a deviation of the planned note position designated by the planned position designation means with respect to a reference timing which is a timing of a bar line or a beat position immediately after the planned note position, and generates designated deviation information representing the detected deviation Deviation detecting means, phrase data reading means for reading phrase data from the phrase storage means, The attribute information corresponding to the phrase data read by the phrase data reading means is read from the phrase storage means, and the deviation of the first note in the original music data from the read attribute information with respect to the reference timing which is the bar line and beat timing immediately after the first note The deviation information extracting means for extracting the reference deviation information representing the difference between the reference deviation information extracted by the deviation information extracting means and the specified deviation information generated by the deviation detecting means, and the deviation information matches. In this case, the main feature is that it includes candidate detection means for detecting the phrase data read by the phrase data reading means as candidate phrase data in the editing range.

また、本発明のフレーズデータ検索装置において、前記ずれ情報抽出手段において読み出された属性情報に、前記参照ずれ情報が含まれていない場合は、前記ずれ情報抽出手段において前記参照ずれ情報を検出するようにしてもよい。
さらに、本発明のフレーズデータ検索装置において、前記属性情報に、音符の分解能の情報が含まれていたり、前記属性情報に、拍子の情報が含まれていてもよい。
In the phrase data search device of the present invention, when the reference information is not included in the attribute information read by the deviation information extraction unit, the reference information is detected by the deviation information extraction unit. You may do it.
Furthermore, in the phrase data search device of the present invention, the attribute information may include note resolution information, or the attribute information may include time signature information.

上記した本発明のフレーズデータ検索装置によれば、指定された音符予定位置の、音符予定位置直後の小節線又は拍位置のタイミングである基準タイミングに対するずれを表わす指定ずれ情報を生成すると共に、フレーズデータに対応する属性情報を前記フレーズ記憶手段から読み出し、読み出した属性情報から元楽曲データにおける先頭音符の、先頭音符直後の小節線及び拍タイミングである基準タイミングに対するずれを表わす参照ずれ情報を抽出して、指定ずれ情報に一致する参照ずれ情報のフレーズデータを候補フレーズデータとして検出している。   According to the phrase data search device of the present invention described above, the designated deviation information that represents the deviation of the designated scheduled note position from the reference timing that is the timing of the bar line or beat position immediately after the scheduled note position is generated, and the phrase The attribute information corresponding to the data is read from the phrase storage means, and reference deviation information representing the deviation of the first note in the original music data from the reference timing that is the bar line and beat timing immediately after the first note is extracted from the read attribute information. Thus, the phrase data of the reference deviation information that matches the designated deviation information is detected as candidate phrase data.

従って、本発明のフレーズデータ検索装置によれば、フレーズ検索時に元楽曲におけるフレーズの小節線或いは拍位置(基準タイミング)からのずれを考慮することにより、元々のフレーズが有するビート感(強弱、間の取り方など)を再現してより自然なフレーズ合成を行うことができ、元々のフレーズデータが持っていたビート感を損なうことなく作編曲に活用することができる。また、元々のフレーズが持っていた強拍と弱拍の関係が作編曲後も維持されるので、安定した聴感を得ることができる。さらに、アウフタクト(弱起)の曲を作りたいときは、小節線からのずれ情報により元々アウフタクトであったフレーズが検索し易くなる。   Therefore, according to the phrase data search device of the present invention, the beat feeling (strength, interval) of the original phrase can be obtained by considering the deviation from the bar line or beat position (reference timing) of the phrase in the original music during phrase search. Can be used to compose and arrange music without compromising the beat feeling of the original phrase data. Moreover, since the relationship between the strong beat and the weak beat that the original phrase had is maintained after the composition and arrangement, a stable audibility can be obtained. Furthermore, when making an aftertact song, it becomes easier to search for the phrase that was originally an outfact, based on the deviation information from the bar line.

また、本発明のフレーズデータ検索装置において、ずれ情報抽出手段において読み出された属性情報に、参照ずれ情報が含まれていない場合は、ずれ情報抽出手段において参照ずれ情報を検出することにより、属性情報に参照ずれ情報が含まれていない場合にも、指定ずれ情報に一致するフレーズデータを候補フレーズデータとして検出することができるようになる。   Further, in the phrase data search device of the present invention, when the reference information is not included in the attribute information read by the deviation information extraction unit, the attribute information is detected by detecting the reference deviation information in the deviation information extraction unit. Even when the reference deviation information is not included in the information, the phrase data matching the designated deviation information can be detected as candidate phrase data.

この発明の一実施例によるフレーズデータ検索システムの構成例を示す。1 shows a configuration example of a phrase data search system according to an embodiment of the present invention. この発明の一実施例によるフレーズデータのイメージ例を示す。The example of the image of phrase data by one Example of this invention is shown. この発明の一実施例によるフレーズデータ検索処理フロー例の一部である。It is a part of example of a phrase data search process flow by one Example of this invention. この発明の一実施例によるフレーズデータ検索処理フロー例の他部である。It is the other part of the example of a phrase data search processing flow by one Example of this invention. この発明の一実施例による候補フレーズ抽出処理フロー例の一部である。It is a part of example of a candidate phrase extraction process flow by one Example of this invention. この発明の一実施例による候補フレーズ抽出処理フロー例の他部である。It is the other part of the example of a candidate phrase extraction process flow by one Example of this invention.

〔システム構成の概要〕
図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 is a diagram showing a configuration example of a phrase data search system according to an embodiment of the present invention, and FIG. 1 (1) shows a hardware configuration example of a phrase data search device according to an embodiment of the present invention. This phrase data search device is a kind of computer having an electronic music information processing function. For example, an electronic music device such as an electronic musical instrument is used, and a phrase data search system is constructed in the phrase data search mode. This phrase data search 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, a sound source 7, a 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は、これらの処理に際して必要な各種データを一時記憶するためのワーク領域として用いられ、例えば、フレーズデータ検索モード時には、編集対象である楽曲データ(Ms)を保持するための対象楽曲記憶領域や、候補抽出のために参照されるフレーズデータ(Pr)を保持するための参照フレーズ記憶領域、抽出された候補フレーズデータ(Prs)を格納するための「候補リスト」と呼ばれる候補フレーズ記憶領域などが設けられる。また、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 phrase data search processing according to a predetermined control program including a phrase data search processing program. The RAM 2 is used as a work area for temporarily storing various data necessary for these processes. For example, in the phrase data search mode, the RAM 2 is a target music storage area for holding music data (Ms) to be edited, A reference phrase storage area for holding phrase data (Pr) referenced for candidate extraction, a candidate phrase storage area called a “candidate list” for storing extracted candidate phrase data (Prs), and the like 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(デジタル多目的ディスク)、フラッシュメモリ等の半導体メモリなどの記憶媒体と、その駆動装置を含む。制御プログラムや種々の楽曲データ等、任意の情報を任意の記憶媒体に記憶することができ、所定の記憶媒体には、種々のフレーズデータ(Pr:Pr1,Pr2,…)を管理するためのフレーズデータベースPBが構築され、フレーズデータ作成モードでフレーズデータをフレーズデータベースPBに記憶することができる。また、記憶媒体は、着脱可能であってもよいし、このフレーズデータ検索装置に内蔵されていてもよく、着脱可能な記録媒体には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 music data can be stored in an arbitrary storage medium, and phrases for managing various phrase data (Pr: Pr1, Pr2,...) Are stored in a predetermined storage medium. The database PB is constructed, and the phrase data can be stored in the phrase database PB in the phrase data creation mode. Further, the storage medium may be detachable or may be built in the phrase data search device, and the detachable recording medium includes a USB memory.

入力操作部5は、鍵盤などの演奏操作子やキースイッチなどの設定操作子と、これら操作子の操作を検出して検出内容に対応する操作情報をデータ処理部(1〜3)に導入する操作検出回路とにより構成される。データ処理部は、これら操作情報に基づきフレーズデータ検索装置各部を制御し、例えば、演奏操作子の操作に応じて演奏操作入力に対応する演奏情報を音源7に送り或いはRAM2の対象楽曲記憶領域に書き込み、また、設定操作子中のモード設定ボタンの操作に応じてフレーズデータ検索モード等で動作させる。表示部6は、演奏や設定に必要な各種情報を表示するLCD等のディスプレイや、入力操作部5中のスイッチ類に併設した内蔵ランプ等を備え、これらの表示・点灯内容をデータ処理部からの指令で制御し、演奏操作や設定操作などに関する表示援助を行う。   The input operation unit 5 detects performance operations such as a keyboard, setting operations such as a key switch, and the operation of these operations and introduces operation information corresponding to the detected contents to the data processing units (1 to 3). And an operation detection circuit. The data processing unit controls each part of the phrase data search device based on the operation information, and for example, sends performance information corresponding to the performance operation input to the sound source 7 or in the target music storage area of the RAM 2 according to the operation of the performance operator. The operation is performed in the phrase data search mode or the like according to the writing or the operation of the mode setting button in the setting operator. 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から読み出される楽曲データに基づいて、楽音信号を生成すると共にこの楽音信号に所定の効果を付与する。音源7に接続されるサウンドシステム10は、D/A変換部やアンプ、スピーカ等を備え、音源7から出力される楽音信号に基づく楽音を発生する。   The sound source 7 includes a sound source unit and a DSP, and generates a musical sound signal based on actual performance information obtained from performance operation information from the input operation unit 5 or based on music data read from the external storage device 4. At the same time, a predetermined effect is given to the 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形式の楽曲データを取得し、外部記憶装置4に記憶しておくことができる。   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. it can. For example, MIDI format music data can be acquired from the external electronic music device MM and stored in the external storage device 4.

〔フレーズデータ検索システムの概要〕
図1(2)は、この発明の一実施例によるフレーズデータ検索システムの機能ブロック図である。このフレーズデータ検索装置(電子音楽装置)のCPU1を含むデータ処理部(1〜3)は、フレーズデータ作成モードで動作するフレーズデータ抽出部Aと、フレーズデータ検索モードで動作する検索条件設定部B、候補フレーズ抽出部C及びフレーズ選択部Dとして機能することができる。外部記憶装置4に設けられたフレーズデータ記憶部PBには、フレーズデータ検索の際に参照される多数のフレーズデータPr:Pr1,Pr2,…が記憶され、フレーズデータベースが構築される。なお、参照記号「Pr」は、フレーズデータを総称的に表わし、フレーズデータベースは、フレーズデータ記憶部と同じ参照記号「PB」を付記して説明される。
[Outline of phrase data search system]
FIG. 1 (2) is a functional block diagram of a phrase data search system according to an embodiment of the present invention. The data processing units (1-3) including the CPU 1 of the phrase data search device (electronic music device) include a phrase data extraction unit A that operates in the phrase data creation mode and a search condition setting unit B that operates in the phrase data search mode. , Can function as a candidate phrase extraction unit C and a phrase selection unit D. The phrase data storage unit PB provided in the external storage device 4 stores a large number of phrase data Pr: Pr1, Pr2,... That are referred to when searching for phrase data, and a phrase database is constructed. The reference symbol “Pr” generically represents the phrase data, and the phrase database is described with the same reference symbol “PB” as the phrase data storage unit.

フレーズデータ抽出部Aは、フレーズデータ作成モードにおいて、フレーズデータ作成元になる楽曲データ(元楽曲データと呼ばれる)Mrから、フレーズを構成する音符列を時系列的に表わす音符列情報及び基準タイミング情報(tr)を含むフレーズデータPrを抽出し、抽出したフレーズデータPrの種々の属性を表わす属性情報(フレーズ属性情報ともいう)Arを付記してフレーズデータベースPBに送る。フレーズデータベースPBは、フレーズデータ抽出部AからのフレーズデータPrを記憶すると共に、属性に従って検索できるようにフレーズデータPrに対応付けて属性情報Arを記憶する。   The phrase data extraction unit A, in the phrase data creation mode, from the song data (referred to as original song data) Mr that is the phrase data creation source, the note string information and the reference timing information that represent the note strings that constitute the phrase in time series Phrase data Pr including (tr) is extracted, and attribute information (also referred to as phrase attribute information) Ar representing various attributes of the extracted phrase data Pr is added and sent to the phrase database PB. The phrase database PB stores the phrase data Pr from the phrase data extraction unit A, and stores attribute information Ar in association with the phrase data Pr so that it can be searched according to the attribute.

ここで、フレーズデータPrの音符列情報は、発音タイミング及び音高情報から成る複数の音符イベントで構成され、基準タイミング情報(tr)は、先頭音符イベントの直後の小節線及び拍タイミングを表わす情報である。属性情報Arは、フレーズデータPrの本体に付加して記憶してもよいし、フレーズデータPr本体とは別にフレーズデータPrに対応(リンク)させて記憶してもよい。また、属性情報(フレーズ属性情報ともいう)Arには、元楽曲データMrにおける基準タイミング(tr)に対する「ずれ」を表わすずれ情報Grを含ませることができ、このずれ情報Grは参照ずれ情報とも呼ばれる。   Here, the note string information of the phrase data Pr is composed of a plurality of note events composed of sounding timing and pitch information, and the reference timing information (tr) is information indicating the bar line and beat timing immediately after the head note event. It is. The attribute information Ar may be added to the main body of the phrase data Pr and stored, or may be stored in association with (linked to) the phrase data Pr separately from the phrase data Pr main body. Further, the attribute information (also referred to as phrase attribute information) Ar can include deviation information Gr indicating “deviation” with respect to the reference timing (tr) in the original music data Mr, and this deviation information Gr is also referred to as reference deviation information. be called.

<フレーズデータの抽出例>
図2は、この発明の一実施例によるフレーズデータの例のイメージ的に説明するための図であり、図2(1),(2)は、それぞれ、元楽曲データMr及び抽出されたフレーズデータPrを構成する音符列を示す。図2(1),(2)において、横軸は、右矢印の方向に時間が推移する時間軸を示し、「1:1」、「2:1」、…は「小節:拍」を表わし(1小節=4拍)、実線は小節線位置或いは小節線タイミングを表わし、破線は拍位置或いは拍タイミングを表わす。また、縦軸は、音高変化の傾向を大まかに示し、元楽曲データMr或いはフレーズデータPrを構成する音符イベントが、ブロックN1,N2,…で表わされる。なお、図2(1)では、前後の音符表記が省略されている。
<Example of phrase data extraction>
FIG. 2 is a diagram for conceptually explaining an example of phrase data according to an embodiment of the present invention. FIGS. 2 (1) and 2 (2) show original music data Mr and extracted phrase data, respectively. The note string which comprises Pr is shown. 2 (1) and 2 (2), the horizontal axis indicates a time axis in which time moves in the direction of the right arrow, and “1: 1”, “2: 1”,... Indicate “bar: beat”. (1 bar = 4 beats), a solid line represents bar line position or bar line timing, and a broken line represents beat position or beat timing. The vertical axis roughly indicates the tendency of pitch change, and note events constituting the original music data Mr or the phrase data Pr are represented by blocks N1, N2,. In FIG. 2 (1), the notation of preceding and following notes is omitted.

所定の外部記憶装置4から元楽曲データMrを読み出し、ユーザ操作により、元楽曲データMrに対して抽出しておきたい所望のフレーズを構成する音符列の始終端(例えば音符イベントN1〜音符イベントN7)が指定されると〔図2(1)〕、フレーズデータ抽出部Aは、指示された始終端間の音符列(例えば、音符イベントN1,N2,…,N7)のデータを、始端(音符イベントN1)直後の小節線タイミング或いは拍タイミングを表わす基準タイミングtrと共に、フレーズデータPrとして抽出し〔図2(2)〕、抽出したフレーズデータPrをフレーズデータベースPBに記憶する。その際、フレーズデータPrに対応してフレーズ属性情報Arも記憶される。   The original music data Mr is read from a predetermined external storage device 4, and the start / end of a note string (for example, a note event N1 to a note event N7) constituting a desired phrase to be extracted from the original music data Mr by a user operation. ) Is specified [FIG. 2 (1)], the phrase data extraction unit A converts the data of the instructed note sequence (for example, note events N1, N2,..., N7) to the start end (note note). The phrase data Pr is extracted together with the reference timing tr representing the bar line timing or beat timing immediately after the event N1) [FIG. 2 (2)], and the extracted phrase data Pr is stored in the phrase database PB. At that time, phrase attribute information Ar is also stored corresponding to the phrase data Pr.

フレーズ属性情報Arは、図2(3)に示すように、小節線及び拍位置からのずれ情報Grや、拍子、元楽曲情報(元楽曲データに関する名称等の項目情報)、分解能、その他フレーズ検索に必要な項目情報〔例えば、コードやキー(調)、拍子、テンポ等〕で構成される。例えば、図2において、(1)に示す元楽曲データMrから(2)に示す音符列N1〜N7から成るフレーズデータPraが抽出された場合、(3A)に示すように、基準タイミングtrに相当する第2小節線からのずれ情報=「1拍(480クロック)」、同拍位置「2:1」からのずれ情報=「1拍(480クロック)」となり、拍子は「4/4」、元楽曲情報は「○○○」、分解能は「16分音符(120クロック)」、…、となる。また、この例で音符N1が無く、音符列N2〜N7から成るフレーズデータPrbが抽出された場合には、(3B)に示すように、基準タイミングtrに相当する第1小節線からのずれ情報=「1/2拍(240クロック)」、同拍位置「2:1」からのずれ情報=「1/2拍(240クロック)」となり、拍子は「4/4」、元楽曲情報は「○○○」、分解能は「16分音符(120クロック)」、…、となる。   Phrase attribute information Ar, as shown in FIG. 2 (3), includes deviation information Gr from bar line and beat position, time signature, original music information (item information such as name related to original music data), resolution, and other phrase search. Required item information [for example, chords, keys (keys), time signature, tempo, etc.]. For example, in FIG. 2, when the phrase data Pra including the note strings N1 to N7 shown in (2) is extracted from the original music data Mr shown in (1), it corresponds to the reference timing tr as shown in (3A). Deviation information from the second bar line = “1 beat (480 clocks)”, deviation information from the same beat position “2: 1” = “1 beat (480 clocks)”, the time signature is “4/4”, The original music information is “XX”, the resolution is “16th notes (120 clocks)”, and so on. In this example, when there is no note N1 and the phrase data Prb consisting of the note strings N2 to N7 is extracted, as shown in (3B), the deviation information from the first bar line corresponding to the reference timing tr is shown. = “1/2 beat (240 clocks)”, deviation information from the same beat position “2: 1” = “1/2 beat (240 clocks)”, the time signature is “4/4”, and the original music information is “ OO "and the resolution is" 16th notes (120 clocks) ".

さて、図1(2)に戻ると、検索条件設定部Bは、フレーズデータ検索モードにおいて、外部記憶装置4又は入力操作部5から楽曲データMsを編集対象として取得し、取得した楽曲データ(対象楽曲データという)Ms内の編集したい区間(編集範囲という)について種々の検索条件を設定する。ここで、対象楽曲データMsは、外部記憶装置4に予め記憶されている制作済み又は制作途中の楽曲データ、或いは、入力操作部5から演奏操作に応じて入力された演奏情報をRAM2の対象楽曲記憶領域に読み込むことによって、取得することができる。また、検索条件には、ビート感再現方式で検索する場合に備えて、対象楽曲データMsにおける基準タイミングに対するずれを表わす「指定ずれ情報」Gsを含ませることができ、指定ずれ情報Gsは、参照ずれ情報Grと同様の方法で抽出される。つまり、ユーザ操作により、編集範囲の先頭となる音符予定位置が指定されると、指定された音符予定位置の基準タイミング(楽曲データMsにおける音符予定位置直後の小節線又は拍タイミング)に対するずれを表わす指定ずれ情報Gsが生成される。   Now, returning to FIG. 1 (2), the search condition setting unit B acquires the music data Ms as an edit target from the external storage device 4 or the input operation unit 5 in the phrase data search mode, and acquires the acquired music data (target Various search conditions are set for a section to be edited in Ms (referred to as music data) (referred to as edit range). Here, the target music data Ms is the music data that has been produced or is being produced previously stored in the external storage device 4 or the performance information that is input from the input operation unit 5 according to the performance operation. It can be obtained by reading into the storage area. Further, the search condition can include “designated deviation information” Gs that represents a deviation from the reference timing in the target music data Ms in preparation for a search by a beat feeling reproduction method. It is extracted by the same method as the deviation information Gr. In other words, when the planned note position that is the head of the editing range is designated by the user operation, it represents a deviation from the reference timing (the bar line or beat timing immediately after the planned note position in the music data Ms). Designated deviation information Gs is generated.

候補フレーズ抽出部Cは、フレーズデータベースPBにアクセスし、検索条件設定部Bで設定された検索条件に従ってフレーズデータPr:Pr1,Pr2,…を参照し、これらの中から検索条件に合うフレーズデータを抽出し、抽出されたフレーズデータPrを候補フレーズデータPrsとしてRAM2内の候補リスト内に記憶していく。このフレーズ検索には、コードやキー(調)、拍子、テンポ等の検索キーで候補をサーチする一般的なキー検索方式の外に、ずれ情報を利用するビート感再現方式を用いることができ、ビート感再現方式で検索する場合は、指定ずれ情報Gsに合う参照ずれ情報Grを有する候補フレーズデータPrsが抽出され、両ずれ情報Gs,Grが表わすずれの差「Gs−Gr」(参照記号「Gs」,「Gr」は、「ずれ」そのものを表わす場合もある)が、抽出された候補フレーズデータPrsに対応付けて記憶される。なお、指定ずれGsが参照ずれGrよりも小さく、且つ、対象楽曲データMs中における「基準タイミングより参照ずれGr分だけ遡った位置」から音符予定位置までの範囲に先行音符イベントが存在する場合、この参照ずれGrを持つフレーズデータPrは、先行音符イベントに重なることになるので、候補フレーズPrsから削除される(図4のステップR12を参照)。   The candidate phrase extraction unit C accesses the phrase database PB, refers to the phrase data Pr: Pr1, Pr2,... According to the search conditions set by the search condition setting unit B, and selects phrase data that matches the search conditions from these. The extracted phrase data Pr is stored in the candidate list in the RAM 2 as candidate phrase data Prs. For this phrase search, in addition to a general key search method that searches for candidates with search keys such as chord, key (tone), time signature, tempo, etc., a beat feeling reproduction method using deviation information can be used, When searching with the beat feeling reproduction method, candidate phrase data Prs having reference deviation information Gr that matches the designated deviation information Gs is extracted, and the difference “Gs−Gr” (reference symbol “ Gs ”and“ Gr ”may represent“ deviation ”itself), and are stored in association with the extracted candidate phrase data Prs. When the specified deviation Gs is smaller than the reference deviation Gr and there is a preceding note event in the range from the “position going back by the reference deviation Gr from the reference timing” to the scheduled note position in the target music data Ms, Since the phrase data Pr having the reference deviation Gr overlaps the preceding note event, it is deleted from the candidate phrase Prs (see step R12 in FIG. 4).

フレーズ選択部Dは、候補リスト内に蓄積された候補フレーズデータPrsの中から最適なフレーズデータPrdを選択し、選択された最適フレーズデータPrdは、対象楽曲データMsの編集範囲に適用されて対象楽曲Ms内に組み込まれる。この場合、ユーザ操作に応じて最適なフレーズデータPrdが選択されるが、ビート感再現方式を用いた場合には、ずれの差「Gs−Gr」の大きさに応じた自動的な選択手法により候補フレーズデータPrsの数を絞ることができ、絞られた1つの候補フレーズデータ、或いは、絞られた複数の候補フレーズデータPrsから更にユーザ操作に応じて選択された1つの候補フレーズデータが、最適なフレーズデータPrdに決定される。そして、決定された最適フレーズデータPrdが基準タイミングを合わせて対象楽曲データMsに上書きされる。   The phrase selection unit D selects the optimal phrase data Prd from the candidate phrase data Prs accumulated in the candidate list, and the selected optimal phrase data Prd is applied to the editing range of the target music data Ms and is the target. It is incorporated in the music Ms. In this case, the optimum phrase data Prd is selected according to the user operation. However, when the beat feeling reproduction method is used, an automatic selection method according to the magnitude of the difference “Gs−Gr” is used. The number of candidate phrase data Prs can be narrowed down, and one candidate phrase data narrowed down or one candidate phrase data selected according to user operation from a plurality of narrowed down candidate phrase data Prs is optimal. Phrase data Prd is determined. Then, the determined optimum phrase data Prd is overwritten on the target music data Ms in accordance with the reference timing.

以上のように、この発明の一実施例によるビート感再現方式のフレーズデータ検索システムでは、予め元楽曲データMrから抽出された複数のフレーズデータPr:Pr1,Pr2,…がフレーズ記憶部PBに用意されており、対象楽曲データMsに対して編集範囲が設定されると、編集範囲の先頭音符の発音位置が音符予定位置に指定され、指定された音符予定位置の基準タイミング(音符予定位置の直後に現われる小節線又は拍位置)に対するずれを表わす指定ずれ情報Gsが生成される(B)。次いで、フレーズ記憶部PBから順次フレーズデータPrが読み込まれ、読み込まれた各フレーズデータについて、元楽曲データMrにおける基準タイミングtrに対するずれを表わす参照ずれ情報Grが抽出され、両ずれ情報Gr,Gsが一致すると、当該フレーズデータが、設定された編集範囲に適した候補フレーズデータPrsとして検出される(C)。   As described above, in the phrase data retrieval system of the beat feeling reproduction method according to one embodiment of the present invention, a plurality of phrase data Pr: Pr1, Pr2,... Previously extracted from the original music data Mr are prepared in the phrase storage unit PB. When the editing range is set for the target music data Ms, the pronunciation position of the first note in the editing range is specified as the planned note position, and the reference timing of the specified planned note position (immediately after the planned note position) Designated deviation information Gs representing a deviation from a bar line or beat position appearing in (b) is generated (B). Next, the phrase data Pr is sequentially read from the phrase storage unit PB, and for each read phrase data, reference deviation information Gr representing a deviation with respect to the reference timing tr in the original music data Mr is extracted, and both deviation information Gr, Gs is obtained. If they match, the phrase data is detected as candidate phrase data Prs suitable for the set editing range (C).

〔処理フロー例〕
図3〜図4は、この発明の一実施例によるフレーズデータ検索処理の動作例を表わすフローチャートである。このフレーズデータ検索装置は、待機モードや実演奏モード、自動演奏モード等で動作しているときに、検索モード設定ボタンを操作することにより、フレーズデータ検索モードで動作し、図3のフレーズデータ検索処理を行うことができる。フレーズデータ検索処理がスタートすると、CPU1は、まず、ステップR1で、編集対象となる楽曲データ即ち対象楽曲データMsをRAM2の対象楽曲記憶領域に用意する。つまり、対象楽曲データMsを外部記憶装置4等から読み込み、必要な表示処理を行い、対象楽曲データMsが複数パートから成る場合は編集対象となるパート(対象パートという)を設定し、必要に応じて、対象楽曲データMsをクオンタイズしたり、入力操作部5から音符情報を入力するなどの処理を行い、検索画面を表示部6のディスプレイに表示する。
[Example of processing flow]
3 to 4 are flowcharts showing an operation example of phrase data search processing according to one embodiment of the present invention. This phrase data search device operates in the phrase data search mode by operating the search mode setting button when operating in the standby mode, actual performance mode, automatic performance mode, etc., and the phrase data search of FIG. Processing can be performed. When the phrase data search process starts, the CPU 1 first prepares music data to be edited, that is, target music data Ms, in the target music storage area of the RAM 2 in step R1. In other words, the target music data Ms is read from the external storage device 4 or the like, and necessary display processing is performed. Then, the target music data Ms is quantized or the note information is input from the input operation unit 5, and the search screen is displayed on the display unit 6.

次のステップR2では、例えば、図2(1)のように音符列で検索画面に表示されている対象楽曲データMs(複数パートから成る場合は対象パートのデータを意味する)に対するユーザ操作に応じて、当該対象楽曲データMs中のフレーズ検索を行う区間即ち編集範囲を指定し、続くステップR3で、フレーズ検索方式を選択し、ステップR4に進む。ステップR4では、選択されたフレーズ検索方式がビート感再現方式であるか否かを判定し、ビート感再現方式であれば(R4=YES)、ステップR5〜R12(図4)のビート感再現方式による検索処理ルーチンを実行してフレーズデータベースPBから候補フレーズデータPrsを抽出する。一方、ステップR4で、選択された検索方式がビート感再現方式でないと判定したときには(R4=NO)、ステップR13に進んで、ステップR3で選択された別のフレーズ検索方式に従い、候補フレーズデータPrsを抽出する。例えば、コード、キー、拍子或いはテンポ等の検索キーを用いてフレーズデータベースPBをサーチし、所望の候補フレーズデータPrsを抽出する。   In the next step R2, for example, in response to a user operation on the target music data Ms displayed on the search screen with a note string as shown in FIG. Then, an interval for performing phrase search in the target music data Ms, that is, an edit range is designated, and a phrase search method is selected in the subsequent step R3, and the process proceeds to step R4. In step R4, it is determined whether or not the selected phrase search method is a beat feeling reproduction method, and if it is a beat feeling reproduction method (R4 = YES), the beat feeling reproduction method in steps R5 to R12 (FIG. 4). The candidate phrase data Prs is extracted from the phrase database PB by executing the search processing routine according to the above. On the other hand, when it is determined in step R4 that the selected search method is not the beat feeling reproduction method (R4 = NO), the process proceeds to step R13, and the candidate phrase data Prs is followed according to another phrase search method selected in step R3. To extract. For example, the phrase database PB is searched using a search key such as chord, key, time signature, or tempo, and desired candidate phrase data Prs is extracted.

ビート感再現方式による検索処理については、まず、ステップR5(図4)で、ビート感再現検索画面を表示部6のディスプレイに表示し、同画面に対するレベル設定操作に応じて検索レベルを設定する。このシステム例では、検索レベルには、「完全一致」、「1/2拍以内」及び「レベル無し」があり、レベル設定操作がない場合は「レベル無し」が設定され、この場合、システムは、所定の許容上限値(例えば、1拍)以内の参照ずれ情報Grを持つフレーズデータPrを抽出するように動作する。   Regarding the search processing by the beat feeling reproduction method, first, in step R5 (FIG. 4), the beat feeling reproduction search screen is displayed on the display of the display unit 6, and the search level is set according to the level setting operation for the screen. In this system example, search levels include “complete match”, “within 1/2 beat”, and “no level”. If there is no level setting operation, “no level” is set. The phrase data Pr having the reference deviation information Gr within a predetermined allowable upper limit value (for example, one beat) is extracted.

次のステップR6では、必要に応じて、対象楽曲データMs(或いは対象パート)内に指定された区間(編集範囲)への音符イベントデータの入力を受け付ける。つまり、ビート感再現方式では、指定された音符の位置から始まるフレーズデータPrを抽出するので、指定区間(編集範囲)の開始位置(先頭)に音符が無い場合は、ユーザに音符入力を促し、音符入力操作があると、これに応じて音符イベントデータ入力が受け付けられる。続いて、ステップR7で、指定区間内の最初の音符イベントデータを抽出し、その発音タイミングを音符予定位置に指定する。   In the next step R6, the input of the note event data to the section (editing range) designated in the target music data Ms (or target part) is accepted as necessary. That is, in the beat feeling reproduction method, the phrase data Pr starting from the position of the designated note is extracted. Therefore, if there is no note at the start position (start) of the designated section (editing range), the user is prompted to input the note, If there is a note input operation, note event data input is accepted accordingly. Subsequently, in step R7, the first note event data in the designated section is extracted, and the sound generation timing is designated as the note planned position.

次いで、ステップR8で、ユーザ操作に応じて、音符予定位置の基準タイミングにつき小節線を基準にするか拍位置を基準にするかを選択し、次のステップR9において、小節線を基準にする場合は、音符予定位置直後の小節線位置を探し、拍位置を基準にする場合には、音符予定位置直後の拍位置を探し、探した小節線位置或いは拍位置を基準タイミングに設定する。さらに、ステップR10では、音符予定位置のタイミング基準情報に対するずれ(クロック数など)を検出し、検出したずれ(指定ずれ)を表わす対象楽曲データMs側のずれ情報即ち指定ずれ情報Gsを得る。そして、ステップR11に進む。   Next, in step R8, according to the user operation, it is selected whether the reference line of the planned note position is based on the bar line or the beat position, and in the next step R9, the bar line is used as a reference. Searches for the bar position immediately after the planned note position, and when using the beat position as a reference, searches for the beat position immediately after the planned note position and sets the searched bar line position or beat position as the reference timing. Further, in step R10, a deviation (number of clocks, etc.) of the scheduled note position with respect to the timing reference information is detected, and deviation information on the target music data Ms side indicating the detected deviation (designated deviation), that is, designated deviation information Gs is obtained. Then, the process proceeds to Step R11.

ステップR11では、フレーズデータベースPBにアクセスし、ずれ情報Gs,Grが(レベルに応じて)一致するフレーズデータPrを検索して候補Prsとする「候補フレーズ抽出処理」を実行する。候補フレーズ抽出処理の後は、ステップR12に進み、候補フレーズ抽出処理で候補Prsとされた各フレーズデータPrについて小節線或いは拍位置からのずれ情報Grを参照し、対象楽曲データMs中の基準タイミングの位置から参照したずれ情報Gr分だけ遡った範囲内に、音符予定位置よりも早い発音タイミングを持つ音符イベントが存在するか否かをチェックし、かかる音符イベントが存在する場合は当該フレーズデータPrを候補Prsから削除する。   In step R11, the phrase database PB is accessed, and the “candidate phrase extraction process” is executed by searching for phrase data Pr in which the deviation information Gs and Gr match (according to the level) and setting it as a candidate Prs. After the candidate phrase extraction process, the process proceeds to step R12, and the reference timing in the target music data Ms is referred to with reference to the deviation information Gr from the bar line or beat position for each phrase data Pr determined as the candidate Prs in the candidate phrase extraction process. It is checked whether or not there is a note event having a sounding timing earlier than the expected note position within a range that is traced back by the shift information Gr referred to from the position, and if such a note event exists, the phrase data Pr Is deleted from the candidate Prs.

ステップR12(図4)或いはステップR13(図3)の処理の後は、ステップR14(図3)に進んで、検索方式を変更するか否かをユーザに打診し、検索方式を変更する場合は(R14=YES)、ステップR3に戻り、ステップR3〜R14の処理を繰り返し、検索方式を変更しない場合は(R14=NO)、ステップR15に進む。   After the process of step R12 (FIG. 4) or step R13 (FIG. 3), the process proceeds to step R14 (FIG. 3) to ask the user whether to change the search method and to change the search method. (R14 = YES), the process returns to step R3, the processes of steps R3 to R14 are repeated, and if the search method is not changed (R14 = NO), the process proceeds to step R15.

ステップR15では、ユーザの選択操作乃至自動的な所定の選択手法に従って、R3〜R13の処理で得られた各候補フレーズデータPrsの中から所望のフレーズデータPrdを選択し、対象楽曲データMs中の指定区間(編集範囲)に適用する。ここで、ビート感再現方式(R5〜R12)で得られた候補フレーズデータPrsから所望のフレーズデータPrdが選択された場合、所望フレーズデータPrd中における冒頭音符イベントの直後の小節線或いは拍位置を対象楽曲データMs中の基準タイミングの位置に合わせて、所望フレーズデータPrdを上書きで適用する。   In step R15, desired phrase data Prd is selected from the candidate phrase data Prs obtained by the processing of R3 to R13 according to the user's selection operation or automatic predetermined selection method, and the desired phrase data Prd is selected from the target song data Ms. Applies to the specified section (edit range). Here, when the desired phrase data Prd is selected from the candidate phrase data Prs obtained by the beat feeling reproduction method (R5 to R12), the bar line or beat position immediately after the opening note event in the desired phrase data Prd is determined. The desired phrase data Prd is applied by overwriting in accordance with the position of the reference timing in the target music data Ms.

ステップR15でのフレーズデータの選択及び適用処理の後は、ステップR16で、別の区間(編集範囲)についてフレーズ検索を行うか否かをユーザに打診し、別区間につきフレーズ検索を行う旨のユーザ入力があったときは(R16=YES)、ステップR2に戻り、ステップR2〜R16の処理を繰り返す。そして、ステップR16で、フレーズ検索を行わない旨のユーザ入力があったと判定すると(R16=NO)、このフレーズデータ検索処理を終了し、元のモードに戻る。   After the phrase data selection and application process in step R15, in step R16, the user is asked whether or not to perform phrase search for another section (editing range), and the user performs a phrase search for another section. When there is an input (R16 = YES), the process returns to step R2, and the processes of steps R2 to R16 are repeated. If it is determined in step R16 that there is a user input indicating that the phrase search is not performed (R16 = NO), the phrase data search process is terminated and the original mode is restored.

<候補フレーズ抽出処理>
図5及び図6は、この発明の一実施例による候補フレーズ抽出処理の例を表わすフローチャートである。この候補フレーズ抽出処理は、フレーズデータ検索処理のステップR11で実行され、最初のステップP1で、CPU1は、フレーズデータベースPBを参照し、対象楽曲データの現在の分解能に合うフレーズデータPrを新たに1つ参照すべき対象としてRAM2の参照フレーズ記憶領域に読み込む。次のステップP2では、参照対象としたフレーズデータPrの属性情報Arに参照ずれ情報Grが含まれているか否かを判定し、属性情報Arに参照ずれ情報Grが含まれていないときは(P2=NO)、ステップP3〜P4に順次進み、フレーズデータPrの基準タイミングからのずれ(参照ずれ)Grを検出する。つまり、ステップP3では、フレーズデータPr内の先頭音符イベントの発音タイミング情報及び基準タイミング情報trに基づいて、先頭音符から直後の小節線までの時間を抽出し、このフレーズデータPrの「小節線からのずれ情報Gr」としてRAM2の第1参照ずれ記憶領域に記憶する。また、ステップP3では、フレーズデータPr内の先頭音符イベントの発音タイミング情報及び基準タイミング情報trに基づいて、先頭音符から直後の拍位置までの時間を抽出し、このフレーズデータの「拍位置からのずれ情報Gr」としてRAM2の第2参照ずれ記憶領域に記憶する。
<Candidate phrase extraction processing>
5 and 6 are flowcharts showing an example of candidate phrase extraction processing according to one embodiment of the present invention. This candidate phrase extraction process is executed in step R11 of the phrase data search process. In the first step P1, the CPU 1 refers to the phrase database PB and newly sets the phrase data Pr that matches the current resolution of the target music data to 1 The data is read into the reference phrase storage area of the RAM 2 as an object to be referred to. In the next step P2, it is determined whether or not the reference deviation information Gr is included in the attribute information Ar of the phrase data Pr to be referred to. When the reference deviation information Gr is not included in the attribute information Ar (P2 = NO), the process proceeds sequentially to steps P3 to P4, and the deviation (reference deviation) Gr of the phrase data Pr from the reference timing is detected. That is, in step P3, the time from the first note to the immediately following bar line is extracted based on the sounding timing information and the reference timing information tr of the first note event in the phrase data Pr. Is stored in the first reference shift storage area of the RAM 2 as “shift information Gr”. In step P3, the time from the first note to the immediately following beat position is extracted based on the sounding timing information and the reference timing information tr of the first note event in the phrase data Pr, and the phrase data “from the beat position” is extracted. It is stored in the second reference shift storage area of the RAM 2 as “shift information Gr”.

ステップP2で属性情報Arに参照ずれ情報Grが含まれていると判定したとき(P2=YES)或いはステップP4の参照ずれ検出処理の後は、ステップP5に進み、現在、小節線を基準にすると選択(設定)されているか否かを判定する。ここで、小節線が基準に設定されているときは(P5=YES)、ステップP6で、対象楽曲データMs側で抽出した指定ずれ情報GsとフレーズデータPrの「拍位置からのずれ情報Gr」との差を検出した後、ステップP8に進み、拍位置が基準に設定されているときには(P5=NO)、ステップP7で、対象楽曲データMs側の指定ずれ情報GsとフレーズデータPrの「拍位置からのずれ情報Gr」との差を検出した後、ステップP8に進む。   When it is determined in step P2 that the reference deviation information Gr is included in the attribute information Ar (P2 = YES) or after the reference deviation detection process in step P4, the process proceeds to step P5, where the current bar line is used as a reference. It is determined whether it is selected (set). Here, when the bar line is set as a reference (P5 = YES), in step P6, the designated deviation information Gs extracted on the target music data Ms side and the phrase data Pr "deviation information Gr from beat position". After the difference is detected, the process proceeds to step P8, and when the beat position is set as a reference (P5 = NO), in step P7, the designated beat information Ms on the target music data Ms side and the phrase data Pr After detecting the difference from the position deviation information Gr ", the process proceeds to Step P8.

ステップP8では、検索レベルに「完全一致」が設定されているか否かを判定し、「完全一致」が設定されているときは(P8=YES)、ステップP9で、ずれ情報Gs,Grの差が「0」であるか否かを判定し、ずれ情報の差=「0」のときに(P9=YES)ステップP13(図6)に進む。また、「完全一致」が設定されていないときは(P8=NO)、ステップP10(図6)で、検索レベルに「1/2拍以内」が設定されているか否かを判定し、「1/2拍以内」が設定されているときは(P10=YES)、ステップP11で、ずれ情報Gs,Grの差が1/2拍以内であるか否かを判定し、ずれ情報の差≦「1/2拍」のときに(P11=YES)ステップP13に進む。さらに、検索レベルに「1/2拍以内」も設定されていない「レベル無し」のときは(P10=NO)、ステップP12で、ずれ情報Gs,Grの差が許容上限値(例えば、1拍)以内であるか否かを判定し、ずれ情報の差≦許容上限値のときに(P12=YES)ステップP13に進む。そして、ステップ13では、参照対象のフレーズデータPrを候補Prsに選定し、RAM2の候補リストに記録する。なお、候補リストに候補フレーズデータPrsを記録する際には、併せて、ずれ情報Gs,Grの差も、夫々の候補フレーズデータPrsに関連付けて記録しておく。   In step P8, it is determined whether or not “complete match” is set as the search level. If “complete match” is set (P8 = YES), the difference between the deviation information Gs and Gr is determined in step P9. Is “0” or not, and when the difference in the deviation information = “0” (P9 = YES), the process proceeds to Step P13 (FIG. 6). If “complete match” is not set (P8 = NO), it is determined in step P10 (FIG. 6) whether “within 1/2 beat” is set as the search level. If "/ 2 beats or less" is set (P10 = YES), it is determined in step P11 whether or not the difference between the deviation information Gs and Gr is within 1/2 beat, and the difference between the deviation information ≦ “ When it is “1/2 beat” (P11 = YES), the process proceeds to Step P13. Further, when “no level” is not set for the search level (P10 = NO), in step P12, the difference between the deviation information Gs and Gr is an allowable upper limit value (for example, 1 beat). ) Or not, and if the difference in deviation information ≦ the allowable upper limit value (P12 = YES), the process proceeds to Step P13. In step 13, the phrase data Pr to be referenced is selected as a candidate Prs and recorded in the candidate list in the RAM 2. When the candidate phrase data Prs is recorded in the candidate list, the difference between the deviation information Gs and Gr is also recorded in association with each candidate phrase data Prs.

ステップP9で、ずれ情報Gs,Grの差が「0」でない、ステップP11で、ずれ情報Gs,Grの差が1/2拍を超えている、或いは、ステップP12で、ずれ情報Gs,Grの差が許容上限値を超えていると判定したとき(P9=NO、P11=NO或いはP12=NO)、若しくは、ステップ13のリスト記録処理をした後は、ステップP14に進んで、参照可能なフレーズデータPrが未だ残っているか否かを判定する。ここで、参照可能フレーズデータPrが残っているときは(P14=YES)、ステップP1に戻り、ステップP1〜P14の処理を繰り返す。そして、参照可能フレーズデータPrが残っていないときは(P14=NO)、ステップP15で、候補となったフレーズデータPrsのずれ情報Grに差がある場合、この差の少ない順に候補Prsを並べ替え、この候補フレーズ抽出処理を終了し、フレーズデータ検索処理のステップR12にリターンする。   In step P9, the difference between the deviation information Gs, Gr is not “0”, in step P11, the difference between the deviation information Gs, Gr exceeds 1/2 beat, or in step P12, the difference information Gs, Gr When it is determined that the difference exceeds the allowable upper limit value (P9 = NO, P11 = NO or P12 = NO), or after the list recording process in step 13, the process proceeds to step P14 and can be referred to. It is determined whether or not the data Pr still remains. Here, when the referenceable phrase data Pr remains (P14 = YES), the process returns to step P1 and the processes of steps P1 to P14 are repeated. If the referenceable phrase data Pr does not remain (P14 = NO), if there is a difference in the deviation information Gr of the candidate phrase data Prs in step P15, the candidate Prs are rearranged in the order of the small difference. The candidate phrase extraction process is terminated, and the process returns to step R12 of the phrase data search process.

〔種々の実施態様〕
以上、図面を参照しつつこの発明の好適な実施の一形態について説明したが、これは単なる一例であり、この発明は、発明の精神を逸脱しない範囲で種々の変更が可能である。例えば、対象楽曲データ内の編集の先頭となる音符予定位置については、ユーザがその都度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, the user may specify the scheduled note position at the beginning of editing in the target music data, each time, for example, when the music data is automatically or manually divided into several sections. You may make it detect automatically, for example using the note position of the head in each area. For example, it is effective to utilize this function at key points in the composition of music, such as the start of rust and the start of the main melody.

対象楽曲データ(Ms)と参照フレーズデータ(Pr)で拍子が異なる場合は、例えば、フレーズデータの基準タイミングである小節線或いは拍位置を対象楽曲データの対応する位置に合わせて対象楽曲側の拍子で調整する。   When the time signature is different between the target music data (Ms) and the reference phrase data (Pr), for example, the bar time or beat position as the reference timing of the phrase data is matched with the corresponding position of the target music data, and the time signature on the target music data side Adjust with.

ずれ情報については、クロック数でもよいし、4分音符や8分音符などの音符長で表わしてもよい。或いは、拍数であってもよい。また、基準タイミングが小節線の場合は、拍数とクロック数の組み合わせでもよい。また、ずれ情報を参照する際には、実際のクロック数で一致を調べてもよいが、予め対象楽曲データと検索対象である各フレーズデータを同じ分解能でクオンタイズしておき、その状態でのずれ情報を参照するようにすれば、検索により候補として抽出されるフレーズデータの種類が豊富になる。   The shift information may be the number of clocks or may be expressed by a note length such as a quarter note or an eighth note. Alternatively, it may be a beat number. When the reference timing is a bar line, a combination of the number of beats and the number of clocks may be used. When referring to the deviation information, the match may be checked with the actual number of clocks, but the target music data and each phrase data to be searched are previously quantized with the same resolution, and the deviation in that state is determined. If the information is referred to, the types of phrase data extracted as candidates by the search become rich.

フレーズデータは、クオンタイズの分解能ごとに記憶されていてもよいし、検索毎に指定の分解能でクオンタイズするようにしてもよい。分解能の指定は、複数種類選択できるようになっていればよい。また、候補フレーズデータが抽出された後、何れかのフレーズデータが最適フレーズに選択された場合、そのフレーズデータを元に基準の小節線か拍位置を合わせて音符データ列を生成する。その際の各音高変換は、例えば、各音符位置に有効な対象楽曲側に用意されたコードに合わせて行う、各音符の前後の音域に合わせて行う、ユーザ指定の音高に合わせて行う、或いは、調性に合わせて行う等の方法が採られる。   The phrase data may be stored for each quantizing resolution, or may be quantized with a specified resolution for each search. It is sufficient that a plurality of types of resolutions can be selected. Further, when any phrase data is selected as the optimum phrase after the candidate phrase data is extracted, a note data string is generated by matching the reference bar line or beat position based on the phrase data. Each pitch conversion at that time is performed in accordance with the chord prepared on the target musical piece side effective at each note position, in accordance with the range of sound before and after each note, or in accordance with the user-specified pitch. Or the method of performing according to tonality etc. is taken.

参照するフレーズデータ群は、装置内に記憶されていてもよいし、ネットワーク接続された外部の記憶装置に記憶されていてもよい。また、個々のフレーズデータには、音符イベントだけでなく、ピッチベンドデータ等の表情付けに関するイベントも含まれる。   The phrase data group to be referenced may be stored in the device, or may be stored in an external storage device connected to the network. Each phrase data includes not only a note event but also an event related to expression such as pitch bend data.

フレーズデータに属性情報として小節線からのずれ情報と拍位置からのずれ情報が記憶されている場合、フレーズ検索の際、各フレーズの属性情報を参照すればよい。また、属性情報にずれ情報が記憶されていない場合、フレーズデータ内の最初の音符イベントデータとその直後に来る小節線および拍位置からのずれ情報を算出してそれぞれ属性情報として記憶するようにしてもよい。ずれ情報算出時の分解能も共に記憶しておくようにしてもよい。さらに、フレーズデータにずれ情報が属性情報として付加されていない場合、フレーズデータの元になった楽曲データが特定でき参照できるようであれば、元楽曲データを参照し、元楽曲データに対するフレーズデータの最初の音符位置のその音符直後の小節線もしくは拍位置からのずれ情報を算出し、フレーズデータの属性情報として記憶するようにしてもよい。   If the phrase data stores deviation information from the bar line and deviation information from the beat position as attribute information, the attribute information of each phrase may be referred to when searching for the phrase. Also, if no deviation information is stored in the attribute information, the first note event data in the phrase data and the deviation information from the bar line and beat position that comes immediately after it are calculated and stored as attribute information. Also good. You may make it memorize | store together the resolution | decomposability at the time of deviation | shift information calculation. Furthermore, if the shift information is not added to the phrase data as attribute information, if the music data that is the source of the phrase data can be identified and referenced, the original music data is referred to and the phrase data of the original music data is referred to. Deviation information from the first note position from the bar line or beat position immediately after the note may be calculated and stored as phrase data attribute information.

Mr,Ms 元楽曲データ及び対象楽曲データ
Pr:Pr1,Pr2,…;Pra,Prb フレーズデータ(フレーズともいう)
Prs,Prd 候補[フレーズデータ]及び最適フレーズデータ
Ar;Ara,Arb [フレーズ]属性情報、
Gr,Gs [参照]ずれ情報及び指定ずれ情報(ずれ自体を示すこともある)
N1,N2,… 音符イベント
tr 基準タイミング[情報]
Mr, Ms Original music data and target music data Pr: Pr1, Pr2,...; Pra, Prb Phrase data (also called phrase)
Prs, Prd candidate [phrase data] and optimum phrase data Ar; Ara, Arb [phrase] attribute information,
Gr, Gs [Reference] Deviation information and designated deviation information (may indicate deviation itself)
N1, N2,... Note event tr Reference timing [information]

Claims (5)

元楽曲データから抽出された複数のフレーズデータを記憶すると共に、該フレーズデータの属性を表す属性情報を該フレーズデータに対応付けて記憶するフレーズ記憶手段と、
編集対象とする楽曲データを取得する対象楽曲取得手段と、
該対象楽曲取得手段により取得された楽曲データ内において編集範囲の先頭となる音符予定位置を指定する予定位置指定手段と、
該予定位置指定手段により指定された音符予定位置の、音符予定位置直後の小節線又は拍位置のタイミングである基準タイミングに対するずれを検出し、検出されたずれを表わす指定ずれ情報を生成するずれ検出手段と、
前記フレーズ記憶手段からフレーズデータを読み込むフレーズデータ読込み手段と、
該フレーズデータ読込み手段により読み込まれたフレーズデータに対応する属性情報を前記フレーズ記憶手段から読み出し、読み出した属性情報から元楽曲データにおける先頭音符の、先頭音符直後の小節線及び拍タイミングである基準タイミングに対するずれを表わす参照ずれ情報を抽出するずれ情報抽出手段と、
該ずれ情報抽出手段により抽出された前記参照ずれ情報を前記ずれ検出手段により生成された前記指定ずれ情報と比較し、両ずれ情報が一致する場合に、前記フレーズデータ読込み手段により読み込まれたフレーズデータを編集範囲の候補フレーズデータとして検出する候補検出手段と、
を具備することを特徴とするフレーズデータ検索装置。
Phrase storage means for storing a plurality of phrase data extracted from the original music data and storing attribute information representing attributes of the phrase data in association with the phrase data;
Target music acquisition means for acquiring music data to be edited;
Planned position designation means for designating a planned note position that is the head of the editing range in the music data acquired by the target music acquisition means;
Deviation detection for detecting a deviation of a planned note position designated by the planned position designation means with respect to a reference timing which is a timing of a bar line or a beat position immediately after the planned note position, and generating designated deviation information representing the detected deviation. Means,
Phrase data reading means for reading phrase data from the phrase storage means;
Attribute information corresponding to the phrase data read by the phrase data reading means is read from the phrase storage means, and the reference timing is the bar line and beat timing immediately after the first note of the first note in the original music data from the read attribute information Deviation information extracting means for extracting reference deviation information representing deviation from
The reference deviation information extracted by the deviation information extraction means is compared with the specified deviation information generated by the deviation detection means, and when both deviation information matches, the phrase data read by the phrase data reading means Candidate detecting means for detecting as candidate phrase data in the editing range;
A phrase data search device comprising:
前記ずれ情報抽出手段において読み出された属性情報に、前記参照ずれ情報が含まれていない場合は、前記ずれ情報抽出手段において前記参照ずれ情報を検出することを特徴とする請求項1に記載のフレーズデータ検索装置。   2. The reference deviation information is detected by the deviation information extraction unit when the reference deviation information is not included in the attribute information read by the deviation information extraction unit. Phrase data search device. 前記属性情報に、音符の分解能の情報が含まれていることを特徴とする請求項1または2に記載のフレーズデータ検索装置。   The phrase data search device according to claim 1, wherein the attribute information includes information on a resolution of a note. 前記属性情報に、拍子の情報が含まれていることを特徴とする請求項1ないし3のいずれかに記載のフレーズデータ検索装置。   4. The phrase data search device according to claim 1, wherein the attribute information includes time signature information. 元楽曲データから抽出された複数のフレーズデータを記憶すると共に、該フレーズデータの属性を表す属性情報を該フレーズデータに対応付けて記憶するフレーズ記憶手段を具備し、フレーズデータ検索装置として機能するコンピュータに、
編集対象とする楽曲データを取得する対象楽曲取得ステップと、
該対象楽曲取得ステップで取得された楽曲データ内において編集範囲の先頭となる音符予定位置を指定する予定位置指定ステップと、
該予定位置指定ステップで指定された音符予定位置の、音符予定位置直後の小節線又は拍位置のタイミングである基準タイミングに対するずれを検出し、検出されたずれを表わす指定ずれ情報を生成するずれ検出ステップと、
前記フレーズ記憶手段からフレーズデータを読み込むフレーズデータ読込みステップと、
該フレーズデータ読込みステップで読み込まれたフレーズデータに対応する属性情報を前記フレーズ記憶手段から読み出し、読み出した属性情報から元楽曲データにおける先頭音符の、先頭音符直後の小節線及び拍タイミングである基準タイミングに対するずれを表わす参照ずれ情報を抽出するずれ情報抽出ステップと、
該ずれ情報抽出ステップで抽出された前記参照ずれ情報を前記ずれ検出ステップで生成された前記指定ずれ情報と比較し、両ずれ情報が一致する場合に、前記フレーズデータ読込みステップで読み込まれたフレーズデータを編集範囲の候補フレーズデータとして検出する候補検出ステップと、
から成る手順を実行させるフレーズデータ検索プログラム。
A computer that stores a plurality of phrase data extracted from the original music data and includes phrase storage means that stores attribute information representing the attributes of the phrase data in association with the phrase data, and functions as a phrase data search device In addition,
A target music acquisition step for acquiring music data to be edited;
A planned position designating step for designating a planned note position that is the head of the editing range in the music data acquired in the target music acquisition step;
Deviation detection that detects a deviation of the planned note position designated in the scheduled position designation step with respect to a reference timing that is a timing of a bar line or a beat position immediately after the planned note position, and generates designated deviation information representing the detected deviation. Steps,
A phrase data reading step of reading phrase data from the phrase storage means;
Attribute information corresponding to the phrase data read in the phrase data reading step is read from the phrase storage means, and the reference timing is the bar line and beat timing immediately after the first note of the first note in the original music data from the read attribute information A deviation information extraction step for extracting reference deviation information representing deviations relative to
The reference deviation information extracted in the deviation information extraction step is compared with the specified deviation information generated in the deviation detection step, and the phrase data read in the phrase data reading step when both deviation information matches. A candidate detection step for detecting as a candidate phrase data of the editing range;
A phrase data search program that executes a procedure consisting of:
JP2014264033A 2014-12-26 2014-12-26 Phrase data search device and program Expired - Fee Related JP5846288B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014264033A JP5846288B2 (en) 2014-12-26 2014-12-26 Phrase data search device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014264033A JP5846288B2 (en) 2014-12-26 2014-12-26 Phrase data search device and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2010123612A Division JP5678343B2 (en) 2010-05-28 2010-05-28 Phrase data search device and program

Publications (2)

Publication Number Publication Date
JP2015111271A JP2015111271A (en) 2015-06-18
JP5846288B2 true JP5846288B2 (en) 2016-01-20

Family

ID=53526079

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014264033A Expired - Fee Related JP5846288B2 (en) 2014-12-26 2014-12-26 Phrase data search device and program

Country Status (1)

Country Link
JP (1) JP5846288B2 (en)

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02157799A (en) * 1988-12-09 1990-06-18 Nec Corp Melody analyzing system
JP3307156B2 (en) * 1995-04-24 2002-07-24 ヤマハ株式会社 Music information analyzer
JP3775004B2 (en) * 1997-08-12 2006-05-17 ヤマハ株式会社 Automatic composer and recording medium
JP4671373B2 (en) * 1999-01-28 2011-04-13 ローランド株式会社 Waveform playback device
JP2000315081A (en) * 2000-01-01 2000-11-14 Yamaha Corp Device and method for automatically composing music and storage medium therefor
JP3823928B2 (en) * 2003-02-27 2006-09-20 ヤマハ株式会社 Score data display device and program
JP2006178104A (en) * 2004-12-21 2006-07-06 Yoshihiko Sano Method, apparatus and system for musical piece generation
JP5259075B2 (en) * 2006-11-28 2013-08-07 ソニー株式会社 Mashup device and content creation method
JP5135931B2 (en) * 2007-07-17 2013-02-06 ヤマハ株式会社 Music processing apparatus and program

Also Published As

Publication number Publication date
JP2015111271A (en) 2015-06-18

Similar Documents

Publication Publication Date Title
US9117432B2 (en) Apparatus and method for detecting chord
WO2018207936A1 (en) Automatic sheet music detection method and device
JP2007072023A (en) Information processing apparatus and method
JP3484719B2 (en) Performance guide device with voice input function and performance guide method
JP5846288B2 (en) Phrase data search device and program
JP5678343B2 (en) Phrase data search device and program
JP5092589B2 (en) Performance clock generating device, data reproducing device, performance clock generating method, data reproducing method and program
JP4175208B2 (en) Music score display apparatus and program
JP5504857B2 (en) Music generation apparatus and program
JP3733866B2 (en) Performance information retrieval device
JP5085577B2 (en) Playlist creation device, music playback device, playlist creation method, and playlist creation program
JP2007156187A (en) Music processing device
JP3879524B2 (en) Waveform generation method, performance data processing method, and waveform selection device
JP4740583B2 (en) Music data processing apparatus and program
JP5338312B2 (en) Automatic performance synchronization device, automatic performance keyboard instrument and program
JP4595852B2 (en) Performance data processing apparatus and program
JP5888295B2 (en) Performance information display device, program
JP5509961B2 (en) Phrase data extraction device and program
JP4315116B2 (en) Electronic music equipment
JP5012269B2 (en) Performance clock generating device, data reproducing device, performance clock generating method, data reproducing method and program
JP4062193B2 (en) Automatic accompaniment playback position detection device, automatic accompaniment device, automatic accompaniment playback position detection program, and automatic accompaniment control program
JP2007171772A (en) Music information processing device, music information processing method, and control program
JP3488037B2 (en) Automatic performance device
JP2005106989A (en) Musical score-corresponding data generating device and program
KR19990070912A (en) How to display a singer&#39;s photo of a song half cycle

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151023

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: 20151027

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151109

R151 Written notification of patent or utility model registration

Ref document number: 5846288

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees