JP2005165119A - Automatic music composition apparatus - Google Patents

Automatic music composition apparatus Download PDF

Info

Publication number
JP2005165119A
JP2005165119A JP2003406001A JP2003406001A JP2005165119A JP 2005165119 A JP2005165119 A JP 2005165119A JP 2003406001 A JP2003406001 A JP 2003406001A JP 2003406001 A JP2003406001 A JP 2003406001A JP 2005165119 A JP2005165119 A JP 2005165119A
Authority
JP
Japan
Prior art keywords
music
template
tempo
song
composition
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.)
Pending
Application number
JP2003406001A
Other languages
Japanese (ja)
Inventor
Eiichiro Aoki
栄一郎 青木
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 JP2003406001A priority Critical patent/JP2005165119A/en
Publication of JP2005165119A publication Critical patent/JP2005165119A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To easily compose a naturally audible music which has a music length according with a user's desired time length without largely shifting a tempo of the music. <P>SOLUTION: A music progress template is adjusted in accordance with acquired prescribed standard tempo and standard musical time pattern and a set time length after being read out, and a music is automatically composed on the basis of the adjusted music progress template. In adjustment of the music progress template, partial measures in the music progress template are changed from the standard musical time pattern to a modified musical time pattern. Since the music can be composed per beat more finely than music per measure by changing partial measures of the music progress template from the standard musical time pattern to the modified musical time pattern to modify the music progress template itself, a music having a designated time length is easily composed without largely shifting the tempo of the music. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

この発明は、自動作曲用の曲進行テンプレートに基づき自動的に曲を生成する自動作曲装置に関する。特に、指定時間長に応じてその有する情報の一部を変更した曲進行テンプレートに基づいて自動作曲を行うことにより、容易にユーザ所望の時間長にあった曲長さを持つ自然な聴感の曲を生成することのできるようにした自動作曲装置に関する。   The present invention relates to an automatic music apparatus that automatically generates music based on a music progression template for automatic music. In particular, by performing an automatic song based on a song progression template in which part of the information it has changed according to the specified time length, it is easy to have a natural audible song with a song length that matches the user's desired time length. The present invention relates to an automatic music composition apparatus that can generate a song.

従来から、予め用意されている自動作曲用の曲進行テンプレート(以下、単に作曲用テンプレートと呼ぶ)を用いて曲(例えばメロディ)を自動的に生成する自動作曲装置が知られている。例えば、本発明人が既に出願済みの以下に示す特許文献1又は特許文献2に記載の自動作曲装置においては、ユーザが指定した時間長やテンポあるいは拍子などの作曲条件に一致又は類似する作曲用テンプレートをユーザに対して1乃至複数提示し、ユーザが提示されたこれらの作曲用テンプレートの中から所望の作曲用テンプレートを選択することによって、該選択した作曲用テンプレートに基づきメロディの自動作曲が行われるようになっている。なお、本明細書において「作曲用テンプレート」とは、1曲分のメロディ構成やピッチパターン及びリズムパターンなどのメロディを生成するために必要な各種情報を定義したメロディの雛型となるデータであり、例えば曲構成情報、各小節情報、コード進行情報などの各種情報を、上位から楽曲全体(ブロック)、楽節、小節などという順序で階層化された構造により有しているものである(後述の図3参照)。
特開平11-119774号公報 特開2003-029749号公報
2. Description of the Related Art Conventionally, there has been known an automatic music composition apparatus that automatically generates a music (for example, a melody) using a music progression template for automatic music prepared in advance (hereinafter simply referred to as a composition template). For example, in the automatic composition apparatus described in Patent Document 1 or Patent Document 2 shown below, which has already been filed by the present inventor, for composition that is similar to or similar to the composition conditions such as time length, tempo or time signature specified by the user One or a plurality of templates are presented to the user, and the user selects a desired composition template from the composition templates presented by the user, so that the automatic composition of the melody is performed based on the selected composition template. It has come to be. In this specification, the “composition template” is data that forms a melody template that defines various information necessary for generating a melody such as a melody structure, pitch pattern, and rhythm pattern for one song. For example, it has various information such as song composition information, each bar information, chord progression information, etc. in a hierarchical structure in the order of the whole music (block), music section, bar, etc. (described later) (See FIG. 3).
JP-A-11-119774 JP 2003-029749 A

ところで、予め用意されている作曲用テンプレートは生成可能な曲長さがそれぞれ決まっているものであって、ユーザは指定した時間長に一致する曲長さを持つ曲を自動生成する作曲用テンプレートを選択しなければならないが、ユーザが必要とするそうした作曲用テンプレートが必ずしも常に十分に用意されているとは限らない。そこで、指定した時間長に一致する曲長さを持つ曲を自動生成する作曲用テンプレートがない場合には、ユーザは提示された候補の中から指定した時間長に近い曲長さを持つ曲を自動生成する作曲用テンプレートを選択することができるようになっている。ただし、そうした場合、該選択した作曲用テンプレートに基づき生成される曲はそのままではユーザが指定した時間長と一致しない異なる曲長さを持つ曲であることから、指定した時間長に適合するよう生成した曲のテンポを微調整する必要がある。したがって、選択した作曲用テンプレートによってはテンポを大幅にずらさないとユーザが指定した時間長と一致する曲長さを持つ曲を生成することができないが、あまりに大きくテンポをずらしてしまうと不自然な聴感の曲が生成されてしまい都合が悪い、という問題点があった。また、自動生成できる曲の長さがどうしても限定されてしまうので、多様な時間長の曲を容易に生成することができなかった。   By the way, the composition templates prepared in advance have a predetermined length that can be generated, and the user can create a composition template for automatically generating a song having a song length that matches the specified time length. Although it must be selected, such a composition template required by the user is not always sufficiently prepared. Therefore, if there is no composition template that automatically generates a song with a song length that matches the specified time length, the user selects a song with a song length close to the specified time length from the presented candidates. The composition template for automatic generation can be selected. However, in such a case, the song generated based on the selected composition template is a song having a different song length that does not match the time length specified by the user as it is, so that the song is generated to fit the specified time length. You need to fine-tune the tempo of the song. Therefore, depending on the selected composition template, it is not possible to generate a song having a song length that matches the time length specified by the user unless the tempo is significantly shifted, but it is unnatural if the tempo is shifted too much. There was a problem that an audible song was generated, which was inconvenient. In addition, since the length of music that can be automatically generated is inevitably limited, it is not possible to easily generate music having various time lengths.

本発明は上述の点に鑑みてなされたもので、指定した時間長に対応していない作曲用テンプレートが選択された場合に、一部の小節を変拍子にするなど指定時間長に応じて該作曲用テンプレートを適宜に自動調整することによって、曲のテンポを大きくずらすことなく指定時間長の曲を容易に生成することのできるようにした自動作曲装置を提供しようとするものである。   The present invention has been made in view of the above points, and when a composition template that does not correspond to a specified time length is selected, a part of the bars are changed to a different time signature. It is an object of the present invention to provide an automatic song apparatus that can easily generate a song having a specified time length without greatly shifting the tempo of the song by automatically adjusting the composition template appropriately.

本発明に係る自動作曲装置は、曲進行テンプレートを読み出す読み出し手段と、所定の標準テンポ及び標準拍子を取得する取得手段と、生成すべき曲の時間長を設定する時間設定手段と、前記取得した所定の標準テンポ及び標準拍子と前記設定された時間長とに応じて前記読み出した曲進行テンプレートを調整する曲進行テンプレート調整手段と、前記調整された曲進行テンプレートに基づき曲を自動生成する生成手段とを具える。
本発明の好ましい実施例として、前記曲進行テンプレート調整手段は、曲進行テンプレート内の一部の小節を標準拍子から変拍子に変更して曲進行テンプレートを調整することを特徴とする。
The automatic music composition apparatus according to the present invention includes a reading means for reading a music progression template, an acquisition means for acquiring a predetermined standard tempo and standard time signature, a time setting means for setting a time length of a music to be generated, and the acquired A music progress template adjusting means for adjusting the read music progress template according to a predetermined standard tempo and standard time signature and the set time length, and a generating means for automatically generating a music based on the adjusted music progress template With.
As a preferred embodiment of the present invention, the music progression template adjusting means adjusts the music progression template by changing some measures in the music progression template from a standard time signature to a variable time signature.

本発明によると、曲進行テンプレートを読み出した後に、取得した所定の標準テンポ及び標準拍子と設定された時間長とに応じて曲進行テンプレートの調整を行い、該調整された曲進行テンプレートに基づき曲を自動生成する。曲進行テンプレートの調整は、曲進行テンプレート内の一部の小節を標準拍子から変拍子に変更する。このように曲進行テンプレートの一部の小節を標準拍子から変拍子に変更して曲進行テンプレート自体を変更すると、小節単位よりも細かく拍単位での曲生成を行うことができることから、曲のテンポを大きくずらすことなく指定時間長の曲を容易に生成することができるようになる。   According to the present invention, after the music progression template is read out, the music progression template is adjusted according to the acquired predetermined standard tempo and standard time signature and the set time length, and the music progression template is adjusted based on the adjusted music progression template. Is automatically generated. The adjustment of the song progression template is to change some measures in the song progression template from standard time signature to variable time signature. In this way, changing some of the measures in the song progress template from the standard time signature to the odd time signature and changing the song progress template itself allows the song to be generated in units of beats finer than the measure unit. It is possible to easily generate a song having a specified time length without greatly shifting the.

本発明は、装置の発明として構成し実施することができるのみならず、方法の発明として構成し実施することができる。また、本発明は、コンピュータまたはDSP等のプロセッサのプログラムの形態で実施することができるし、そのようなプログラムを記憶した記憶媒体の形態で実施することもできる。   The present invention may be constructed and implemented not only as an apparatus invention but also as a method invention. Further, the present invention can be implemented in the form of a program of a processor such as a computer or a DSP, or can be implemented in the form of a storage medium storing such a program.

この発明によれば、指定した時間長に対応していない曲進行テンプレート(作曲用テンプレート)が選択された場合であっても、該作曲用テンプレート内の一部の小節を変拍子にするなど指定時間に応じて該作曲用テンプレートを適宜に調整して自動作曲を行うことから、曲のテンポを大きくずらすことなくユーザ所望の時間長にあった曲長さを持つ自然な聴感の曲を容易に生成することができるようになる、という効果を得る。   According to this invention, even when a music progression template (composition template) that does not correspond to the specified time length is selected, a part of the bars in the composition template is designated as an odd time signature. Since the composition template is adjusted appropriately according to the time and the automatic composition is performed, it is easy to make a natural audible song having a song length that matches the user's desired time length without greatly shifting the tempo of the song. The effect that it becomes possible to produce | generate is acquired.

以下、この発明の実施の形態を添付図面に従って詳細に説明する。   Embodiments of the present invention will be described below in detail with reference to the accompanying drawings.

図1は、この発明に係る自動作曲装置の実施の形態を示すハード構成ブロック図である。本実施例に示す自動作曲装置は、マイクロプロセッサユニット(CPU)1、リードオンリメモリ(ROM)2、ランダムアクセスメモリ(RAM)3からなるマイクロコンピュータによって制御されるようになっている。CPU1は、この自動作曲装置全体の動作を制御する。このCPU1に対して、通信バス1D(例えばデータ及びアドレスバス)を介してROM2、RAM3、通信インタフェース(I/F)4、入力操作部5、表示部6、外部記憶装置7、音源8がそれぞれ接続されている。更に、CPU1には図示しないタイマが接続されており、このタイマは自動作曲した曲を伴奏などと共に自動演奏する際に用いるテンポを設定するのに必要なクロックパルスを発生する。また、タイマからのクロックパルスはCPU1に対して処理タイミング命令やインタラプト命令として与えられ、CPU1ではこれらの命令に従って各種処理を実行する。   FIG. 1 is a block diagram of a hardware configuration showing an embodiment of an automatic musical composition apparatus according to the present invention. The automatic musical composition apparatus shown in this embodiment is controlled by a microcomputer comprising a microprocessor unit (CPU) 1, a read only memory (ROM) 2, and a random access memory (RAM) 3. The CPU 1 controls the operation of the entire automatic music composition apparatus. For this CPU 1, ROM 2, RAM 3, communication interface (I / F) 4, input operation unit 5, display unit 6, external storage device 7, and sound source 8 are respectively connected via a communication bus 1D (for example, data and address bus). It is connected. Further, a timer (not shown) is connected to the CPU 1, and this timer generates a clock pulse necessary for setting a tempo used for automatically performing an automatically tuned music together with accompaniment. The clock pulse from the timer is given to the CPU 1 as a processing timing command or an interrupt command, and the CPU 1 executes various processes according to these commands.

ROM2は、CPU1により実行あるいは参照される各種制御プログラムや各種データ等を格納するものである。RAM3は、作曲した曲を自動演奏する際に用いる自動演奏情報やCPU1が所定の制御プログラムを実行する際に発生する各種データなどを一時的に記憶するワーキングメモリとして、あるいは現在実行中の制御プログラムやそれに関連するデータを記憶するメモリ等として使用される。RAM3の所定のアドレス領域がそれぞれの機能に割り当てられ、レジスタやフラグ、テーブル、メモリなどとして利用される。外部インターフェース(I/F)4は当該自動作曲装置と外部機器4Aなどとの間で各種制御プログラムや各種データ等を送受信するための、例えば通信インターフェースなどである。すなわち、通信インターフェースは例えばLANやインターネット、電話回線等の有線あるいは無線の通信ネットワークに接続されており、該通信ネットワークを介してパーソナルコンピュータやサーバコンピュータ等の外部機器4Aと接続され、当該外部機器4Aで生成した各種制御プログラムや各種データ等を自動作曲装置側に取り込むためのものである。   The ROM 2 stores various control programs to be executed or referred to by the CPU 1, various data, and the like. The RAM 3 is a working program that temporarily stores automatic performance information used when automatically playing the composed music, various data generated when the CPU 1 executes a predetermined control program, or a control program currently being executed. And a memory for storing data related thereto. A predetermined address area of the RAM 3 is assigned to each function and used as a register, flag, table, memory, or the like. The external interface (I / F) 4 is, for example, a communication interface for transmitting / receiving various control programs, various data, and the like between the automatic musical composition apparatus and the external device 4A. That is, the communication interface is connected to a wired or wireless communication network such as a LAN, the Internet, or a telephone line, and is connected to an external device 4A such as a personal computer or a server computer via the communication network. This is for fetching the various control programs, various data, etc. generated in the above to the automatic musical composition apparatus side.

入力操作部5は、自動作曲の際に用いる各種作曲条件を入力するためのスイッチ又は操作子類である。勿論、入力操作部5はこれら以外にも数値データ入力用のテンキーや文字データ入力用のキーボード、ディスプレイ6Aに表示される所定のポインタを操作するために用いるポインティングデバイス(例えばマウス)などの各種操作子を含んでいてもよい。表示部6は例えば液晶表示パネル(LCD)やCRT等から構成されるディスプレイ6Aに、ユーザが入力した作曲条件、ユーザに対して提示される作曲用テンプレートや伴奏スタイルデータ等の自動作曲に関する各種情報を表示したりするのは勿論のこと、自動演奏に関する自動演奏情報やCPU1の制御状態などを表示したりもする。   The input operation unit 5 is a switch or an operator for inputting various composition conditions used for automatic composition. Of course, in addition to these, the input operation unit 5 performs various operations such as a numeric keypad for inputting numeric data, a keyboard for inputting character data, and a pointing device (for example, a mouse) used for operating a predetermined pointer displayed on the display 6A. May contain children. The display unit 6 is a display 6A composed of, for example, a liquid crystal display panel (LCD), a CRT, or the like, and various kinds of information related to automatic composition such as composition conditions input by the user, composition templates and accompaniment style data presented to the user. Of course, automatic performance information relating to automatic performance, the control state of the CPU 1, and the like are also displayed.

外部記憶装置7はCPU1が実行する各種制御プログラム(例えば、後述する自動作曲処理など)や各種データ(例えば作曲用テンプレートや伴奏スタイルデータ、あるいは生成したメロディデータや伴奏データ)などを記憶する。前記ROM2に制御プログラムが記憶されていない場合、この外部記憶装置7(例えばハードディスク)に制御プログラムを記憶させておき、それを前記RAM3に読み込むことにより、ROM2に制御プログラムを記憶している場合と同様の動作をCPU1にさせることができる。このようにすると、制御プログラムの追加やバージョンアップ等が容易に行える。なお、外部記憶装置7はハードディスク(HD)に限られず、フレキシブルディスク(FD)、コンパクトディスク(CD−ROM・CD−RAM)、光磁気ディスク(MO)、あるいはDVD(Digital Versatile Disk)等の着脱自在な様々な形態の外部記録媒体を利用する記憶装置であってもよい。あるいは、半導体メモリなどであってもよい。   The external storage device 7 stores various control programs executed by the CPU 1 (for example, automatic composition processing described later), various data (for example, composition templates and accompaniment style data, or generated melody data and accompaniment data). When the control program is not stored in the ROM 2, the control program is stored in the external storage device 7 (for example, a hard disk), and is read into the RAM 3 to store the control program in the ROM 2. A similar operation can be performed by the CPU 1. In this way, control programs can be easily added and upgraded. The external storage device 7 is not limited to a hard disk (HD), but a flexible disk (FD), a compact disk (CD-ROM / CD-RAM), a magneto-optical disk (MO), a DVD (Digital Versatile Disk), etc. It may be a storage device that uses various external recording media. Alternatively, a semiconductor memory or the like may be used.

音源8は複数のチャンネルで楽音信号の同時発生が可能であり、通信バス1Dを経由して与えられたメロディデータや伴奏データ等の各種演奏情報を入力し、これらの演奏情報に基づいて楽音信号を発生する。音源8から発生された楽音信号は、アンプやスピーカなどを含むサウンドシステム8Aから発音される。この音源8から発生された楽音信号に対して、効果回路など(図示せず)を用いて所定の効果を付与するようにしてもよい。前記メロディデータや伴奏データの形式はMIDI形式のようなディジタル符号化されたものであってもよいし、PCM、DPCM、ADPCMのような波形サンプルデータ方式からなるものであってもよい。この音源8とサウンドシステム8Aの構成には、従来のいかなる構成を用いてもよい。例えば、音源8はFM、PCM、物理モデル、フォルマント合成等の各種楽音合成方式のいずれを採用してもよく、また専用のハードウェアで構成してもよいし、CPU1によるソフトウェア処理で構成してもよい。   The tone generator 8 can simultaneously generate music signals on a plurality of channels, and inputs various performance information such as melody data and accompaniment data given via the communication bus 1D, and based on these performance information, Is generated. A musical sound signal generated from the sound source 8 is generated from a sound system 8A including an amplifier and a speaker. A predetermined effect may be applied to the musical sound signal generated from the sound source 8 using an effect circuit or the like (not shown). The format of the melody data or accompaniment data may be digitally encoded such as MIDI format, or may be composed of a waveform sample data system such as PCM, DPCM, or ADPCM. Any conventional configuration may be used for the configuration of the sound source 8 and the sound system 8A. For example, the sound source 8 may employ any of various tone synthesis methods such as FM, PCM, physical model, formant synthesis, etc., or may be constituted by dedicated hardware, or by software processing by the CPU 1. Also good.

なお、上述した自動作曲装置は入力操作部5やディスプレイ6Aあるいは音源8などを1つの装置本体に内蔵したものに限らず、それぞれが別々に構成され、各種インタフェースや各種ネットワーク等の通信手段を用いて各装置を接続するように構成されたものであってもよいことは言うまでもない。さらに、本発明に係る自動作曲装置を適用する装置は、電子楽器、パーソナルコンピュータ、PDAや携帯電話等の携帯型通信端末、あるいはカラオケ装置やゲーム装置など、どのような形態の装置・機器に適用してもよい。   Note that the above-described automatic musical composition device is not limited to one in which the input operation unit 5, the display 6A, the sound source 8, and the like are built in one device body, but each is configured separately and uses communication means such as various interfaces and various networks. Needless to say, each device may be configured to be connected. Furthermore, the apparatus to which the automatic musical composition apparatus according to the present invention is applied is applicable to any type of apparatus / equipment such as an electronic musical instrument, a personal computer, a portable communication terminal such as a PDA or a mobile phone, or a karaoke apparatus or a game apparatus. May be.

次に、ユーザが設定した作曲条件に応じて曲を自動作曲する「自動作曲処理」について、図2及び図3を用いて説明する。図2は、「自動作曲処理」の一実施例を示すフローチャートである。図3は、上記「自動作曲処理」に基づき一部が変更される前後の作曲用テンプレートのデータ構造を示す概念図である。図3上段に変更前の作曲用テンプレートのデータ構造を、図3下段に変更後の作曲用テンプレートのデータ構造をそれぞれ概念的に示している。図3下段に示す変更後の作曲用テンプレートにおいて、変更した箇所は斜線を施してある。なお、ここでは説明を理解し易くするために、標準テンポが4分音符=118、標準拍子が4分の4(4/4)拍子である場合に、図3上段に示す6小節24拍からなる作曲用テンプレートを用いて時間長11秒の曲を生成する動作を具体例として説明する。   Next, “automatic music processing” in which the music is automatically set according to the composition conditions set by the user will be described with reference to FIGS. FIG. 2 is a flowchart showing an example of “automatic music processing”. FIG. 3 is a conceptual diagram showing a data structure of a composition template before and after a part is changed based on the above “automatic composition process”. The upper part of FIG. 3 conceptually shows the data structure of the composition template before the change, and the lower part of FIG. 3 conceptually shows the data structure of the composition template after the change. In the composition template after change shown in the lower part of FIG. 3, the changed part is hatched. In order to make the explanation easier to understand, when the standard tempo is a quarter note = 118 and the standard time signature is 4/4 (4/4) time, from the 6th measure 24 beats shown in the upper part of FIG. An operation of generating a song with a time length of 11 seconds using a composition template will be described as a specific example.

ステップS1では、曲生成のための各種パラメータ設定を行う。すなわち、ユーザによる入力操作部5からの設定入力に応じて、作曲用テンプレートを用いた自動作曲に必要とされる作曲条件を設定する。ユーザにより設定入力される作曲条件としては、例えばジャンル(8ビートやクラシックなど)、調(長調/短調)、メロディック(流れるようなメロディ)/リズミック(刻むようなメロディ)の別、生成する曲の長さ(時間長)などがある。また、作曲条件として、自動作曲した曲に付する伴奏を生成するための伴奏スタイルの設定も行う。ステップS2では、上記設定した伴奏スタイルに従い外部記憶装置7(スタイルデータベース)から該当する伴奏スタイルデータを取得し、該取得した伴奏スタイルデータ中に定義されている標準テンポ(例えば、4分音符=118)と作曲条件として設定された時間長(例えば、11秒)とを用いて生成すべき曲全体の拍数を算出する。この曲全体の拍数は、以下に示す数1により算出される。ただし、曲にあっては拍数は整数でなければならないことから、この実施例においては算出した必要拍数が小数である場合に小数部を四捨五入して必要拍数を整数とする。
(数1)
必要拍数=指定時間/(60/標準テンポ)
したがって、標準テンポが4分音符=118である場合に11秒の時間長の曲全体に必要な拍数は22拍となる(11/(60/118)=21.63、四捨五入して22)。
In step S1, various parameters are set for music generation. That is, in accordance with the setting input from the input operation unit 5 by the user, the composition condition required for the automatic composition using the composition template is set. Composition conditions set and input by the user include, for example, genres (8 beats, classical, etc.), key (major / minor), melodic (flowing melody) / rhythmic (engraved melody), and songs to be generated Length (time length). In addition, an accompaniment style for generating an accompaniment attached to the automatically composed music is also set as a composition condition. In step S2, the corresponding accompaniment style data is acquired from the external storage device 7 (style database) according to the set accompaniment style, and the standard tempo defined in the acquired accompaniment style data (for example, quarter note = 118). ) And the time length (for example, 11 seconds) set as the composition condition, the number of beats of the entire song to be generated is calculated. The number of beats of the entire song is calculated by the following formula 1. However, since the number of beats must be an integer in a music piece, in this embodiment, when the calculated required number of beats is a decimal, the decimal part is rounded off to make the necessary number of beats an integer.
(Equation 1)
Required beats = specified time / (60 / standard tempo)
Therefore, when the standard tempo is a quarter note = 118, the number of beats required for the entire song having a time length of 11 seconds is 22 (11 / (60/118) = 21.63, rounded to 22).

ステップS3では、上記ステップS2で読み出された伴奏スタイルデータ中に定義されている標準拍子と上記数1に従って算出された必要拍数とにより、標準拍子の小節数と変拍子の小節数とを求める。すなわち、曲全体の拍数(必要拍数)を標準拍子で構成する小節と変拍子で構成する小節とに分けた場合に、それぞれ必要とされる小節の数を求める。例えば、標準拍子が4分の4拍子である場合に必要拍数22拍からなる曲を生成するのに必要な標準拍子の小節数と変拍子の小節数を求める場合には、4の倍数であって且つ必要拍数の22拍を超えて最も近い拍数は24拍であり、これは標準拍子の4分の4拍子で構成される小節の6小節分に該当する。したがって、この場合には標準拍子で構成される小節として5小節分(20拍)、2拍の変拍子で構成される小節として1小節分(2拍)が必要とされる。なお、この標準拍子の小節数と変拍子の小節数とを求める際には、標準拍子で構成される小節として4小節分(16拍)、2拍の変拍子で構成される小節として3小節分(6拍)などのように適宜に分けるようにしてもよいが、標準拍子で構成される小節をなるべく多く使用して、変拍子の多用による音楽的な聴感の喪失を招くことのないようにするのがよい。   In step S3, the standard time signature defined in the accompaniment style data read in step S2 and the required number of beats calculated according to the above equation 1 are used to calculate the standard time signature and the variable time measure. Ask. That is, when the number of beats (necessary number of beats) of the entire music is divided into a bar composed of standard time signatures and a bar composed of variable time signatures, the number of bars required for each is obtained. For example, when the standard time signature is 4/4 time, when calculating the number of bars of standard time and the number of bars of variable time required to generate a song consisting of 22 beats, it is a multiple of 4. The closest number of beats exceeding the required number of beats of 22 is 24, which corresponds to 6 bars of a bar composed of 4/4 time signatures. Therefore, in this case, one bar (2 beats) is required as a bar composed of 5 bars (20 beats) and 2 beats as a bar composed of standard time signatures. When obtaining the number of measures of the standard time signature and the number of measures of the variable time signature, four measures (16 beats) are defined as the measures composed of the standard time signature, and three measures are defined as the measures composed of the two beats. It may be divided as appropriate, such as a set segment (6 beats), etc., but use as many bars as possible with standard time signatures so as not to cause loss of musical hearing due to heavy use of variable time signatures. It is good to make it.

ステップS4では、上記ステップS3において求めた標準拍子の小節数と変拍子の小節数とを加算し、外部記憶装置7などから該当する小節数に対応している作曲用テンプレートを選択してRAM3などに読み込む。この際に、標準拍子の小節数と変拍子の小節数とを加算して求めた曲全体の小節数に対応している作曲用テンプレートが複数ある場合には、該当する作曲用テンプレートを候補としてユーザに対して提示し、ユーザが提示された候補の中から適宜に選択するようにしてよい。このようにして、自動作曲に用いる作曲用テンプレートとして、図3上段に示す6小節に対応している作曲用テンプレートが読み出される。   In step S4, the number of measures of the standard time signature and the number of measures of the variable time signature obtained in step S3 are added, and a composition template corresponding to the corresponding number of measures is selected from the external storage device 7 or the like to select the RAM 3 or the like. Read in. At this time, if there are multiple composition templates that correspond to the number of measures of the entire song obtained by adding the number of measures of the standard time signature and the number of measures of the variable time signature, the corresponding composition template is selected as a candidate. It may be presented to the user and appropriately selected from the candidates presented by the user. In this way, a composition template corresponding to the six bars shown in the upper part of FIG. 3 is read out as a composition template used for the automatic composition.

ステップS5では、変拍子の小節を曲中のどの位置に割り当てるかを自動判断する。例えば、作曲用テンプレートにおいて曲の先頭と最後及びブロックの先頭と最後の小節を避け、その他の小節の中からランダムに変拍子にする小節を決定する。こうした自動判断は、例えばアルゴリズムにより実行する。図3の例では、2小節目に変拍子を割り当てている。ステップS6では、変拍子が入ることにより影響を受ける楽節情報(楽節種類)を修正する。すなわち、変拍子に変更された小節を含む楽節の楽節種類が曲中に他に存在する場合、拍子が変更されるとメロディも異なるものとなることから影響を受ける楽節の楽節種類を変更する。ただし、変拍子を同一種類楽節の同一箇所に割り当てたような場合には、こうした楽節種類の変更を行わなくてもよいことは言うまでもない。図3の例においては第1楽節「a」に含まれる2小節目が変拍子に変更されることから、変更前に同一の楽節種類「a」が付されていた後出の第3楽節を楽節種類「a」と異なる楽節種類「c」に修正する。なお、変拍子に変更された小節を含む楽節の楽節種類が当該楽節よりも前に存在していた場合には、変拍子に変更された小節を含む楽節の楽節種類を修正する。   In step S5, it is automatically determined to which position in the music the measure of odd time signature is assigned. For example, in the composition template, the beginning and end of the song and the beginning and end of the block are avoided, and the measure to be randomly selected from other measures is determined. Such automatic determination is executed by an algorithm, for example. In the example of FIG. 3, an odd time signature is assigned to the second measure. In step S6, the passage information (section type) affected by the introduction of an odd time signature is corrected. In other words, if there are other passage types in the song that include measures that have been changed to variable time signatures, the melody will change when the time signature is changed. However, it is needless to say that when the odd time signature is assigned to the same part of the same type of passage, it is not necessary to change the type of the passage. In the example of FIG. 3, the second measure included in the first passage “a” is changed to an odd time signature. The section type “c” is different from the section type “a”. If the passage type of the passage including the measure changed to the variable time is present before the relevant passage, the passage type of the passage including the measure changed to the variable time is corrected.

ステップS7では、変拍子の小節のコード進行情報を調整する。このコード進行情報を調整するためのルールの一例としては、例えばコード数が同じ場合には各コードの長さのみを変更する、コード数が多い場合には元のコードの2、3、1、4拍にあるコードから削除していく、コード数が少ない場合には元のコードの4、1、2、3拍にあるコードから追加していく、などの数々のルールがある。図3の例では、コード数が「G7」と「C」の2つで変更前と同じ数であることから、各コードの長さをそれぞれ2拍分から1拍分へと変更することによって変拍子の小節のコード進行情報を調整している。   In step S7, the chord progression information of the measure of odd time signature is adjusted. As an example of a rule for adjusting this chord progression information, for example, when the number of chords is the same, only the length of each chord is changed, and when the number of chords is large, 2, 3, 1, There are a number of rules such as deleting from chords at 4 beats, and adding from chords at 4, 1, 2, 3 of the original chord when the number of chords is small. In the example of FIG. 3, the number of chords is “G7” and “C”, which is the same as before the change, so the length of each chord is changed by changing from 2 beats to 1 beat. The chord progression information of the measure of the time signature has been adjusted.

上記処理に従うと、図3上段に示す6小節24拍からなる作曲用テンプレートを用いて時間長11秒の曲を生成する場合には、図3下段に示す作曲用テンプレートが新たに生成される。すなわち、標準拍子で構成される小節として5小節分(20拍)、2拍の変拍子で構成される小節として1小節分(2拍)の6小節計22拍で全体が構成されており、2小節目に2拍子からなる変拍子で構成される小節を有した作曲用テンプレートが生成される。ステップS8では、上記新たに生成された作曲用テンプレートに基づきメロディデータを作成する。すなわち、新たに生成された作曲用テンプレートを用いて曲(メロディ)を自動的に生成する。ステップS9では、上記ステップS2で取得した伴奏スタイルデータとコード進行情報とに基づき伴奏データを作成する。   According to the above processing, when a song having a time length of 11 seconds is generated using a song template composed of 24 beats of six measures shown in the upper part of FIG. 3, the song template shown in the lower part of FIG. 3 is newly generated. That is, the entire bar is composed of 6 bars of 6 bars of 5 bars (20 beats) and 2 bars of 1 bar (2 beats) as a bar composed of standard beats, A composition template having a measure composed of variable time signatures having two time signatures in the second measure is generated. In step S8, melody data is created based on the newly generated composition template. That is, a song (melody) is automatically generated using a newly generated composition template. In step S9, accompaniment data is created based on the accompaniment style data and chord progression information acquired in step S2.

ステップS10では、必要に応じてテンポ調整を行う。ステップS11では、該調整されたテンポなどに従い生成したメロディデータおよび伴奏データを再生することによって、メロディ及び伴奏の自動演奏を実行する。ここで、上記テンポ調整について簡単に説明する。現在のテンポでの曲の再生時間(曲の長さ)が指定時間と異なる場合には、次の方法にてテンポを調整することにより曲の再生時間を指定時間にあわせることが考えられる。例えば、ユーザ自身の手入力による方法、指定時間に最も近くなるテンポを自動検出する方法などがある。自動検出する方法の一例としては、以下に示す数2を用いて補正テンポを決定する。
(数2)
補正テンポ=(必要拍数*60)/生成時間
なお、上記した各方法のいずれかにより調整された補正テンポが標準テンポから大きく外れてしまい音楽的に不自然な聴感となるような場合には、曲の最後のテンポを加工するとよい。例えば、現在のテンポでは長くかかる場合には、曲の最後にリタルダンド的な処理を加えたり、あるいはフェルマータやフェードアウトなどを適用して時間内に収めるようにしてよい。
In step S10, tempo adjustment is performed as necessary. In step S11, the melody data and the accompaniment data generated according to the adjusted tempo and the like are reproduced to execute an automatic performance of the melody and the accompaniment. Here, the tempo adjustment will be briefly described. If the playback time (music length) of the song at the current tempo is different from the specified time, it is possible to adjust the playback time of the song to the specified time by adjusting the tempo by the following method. For example, there are a method by manual input by the user and a method for automatically detecting a tempo that is closest to a specified time. As an example of the automatic detection method, the correction tempo is determined using the following equation (2).
(Equation 2)
Corrected tempo = (required beats * 60) / generation time Note that if the corrected tempo adjusted by any of the above-mentioned methods greatly deviates from the standard tempo, resulting in a musically unnatural sensation. It is better to process the last tempo of the song. For example, if it takes a long time at the current tempo, a ritardando process may be added to the end of the song, or fermata or fade-out may be applied to keep it within the time.

上述の実施例に示したように、作曲用テンプレートの一部を変拍子に替えてテンポ調整を行う場合には、従来に比べて標準テンポからのずれを小さくすることができる。すなわち、この実施例の場合には補正テンポは120((22*60)/11)となる。一方、従来においてテンポを補正した場合には補正テンポは131((24*60)/11)となる。これから理解できるように、この実施例における補正テンポ120は従来の補正テンポ131に比べて標準テンポ118からのずれが小さい。したがって、本発明に係る自動作曲装置においては標準テンポに近いテンポで指定時間にあった曲長さを持つ曲を容易に生成することができる。   As shown in the above-described embodiment, when the tempo adjustment is performed by replacing a part of the composition template with an odd time signature, the deviation from the standard tempo can be reduced as compared with the conventional case. That is, in this embodiment, the correction tempo is 120 ((22 * 60) / 11). On the other hand, when the tempo is corrected conventionally, the corrected tempo is 131 ((24 * 60) / 11). As can be understood from the above, the correction tempo 120 in this embodiment is less shifted from the standard tempo 118 than the conventional correction tempo 131. Therefore, in the automatic musical composition apparatus according to the present invention, it is possible to easily generate a musical piece having a musical piece length corresponding to the designated time at a tempo close to the standard tempo.

なお、作曲用テンプレートは、図3に示すように曲構成情報、各小節情報、コード進行情報などの各種情報を含むものであるがこれに限らず、例えばコード進行情報を別のファイルに記憶しておき、作曲用テンプレートから当該ファイルを参照することによってコード進行情報を得ることができるようにしてあってもよい。
なお、基準とする標準テンポは作曲用テンプレート内に含まれているものを用いてもよいし、選択した伴奏スタイルデータの標準テンポを読み出して用いるようにしてもよい。あるいは、ユーザが指定したものを用いてもよい。
The composition template includes various pieces of information such as song composition information, each bar information, and chord progression information as shown in FIG. 3, but is not limited to this. For example, chord progression information is stored in a separate file. The chord progression information may be obtained by referring to the file from the composition template.
Note that the standard tempo used as a reference may be the one included in the composition template, or the standard tempo of the selected accompaniment style data may be read and used. Or what the user specified may be used.

なお、求めた曲全体の小節数に対応している作曲用テンプレートがない場合には、必要拍数よりも多くて最も近い小節数に対応している作曲用テンプレートを選択して読み出し、一部小節の拍を削除することによって(当該小節は変拍子で構成される小節になる)必要な拍数を得るようにしてもよい。あるいは、必要拍数よりも少なくて最も近い小節数に対応している作曲用テンプレートを選択して読み出し、一部小節に拍数を付加することによって必要な拍数を得るようにしてもよい。さらに、変拍子で構成される小節のテンプレートを予め用意しておき、変拍子を割り当てるべき小節に前記変拍子小節テンプレートを置き換えしてもよい。
なお、作曲終了時には新たに生成された変更後の作曲用テンプレートに対して新たなテンプレート名を付して外部記憶装置7などに記憶するようにしてよい。あるいは、作曲終了時には新たに生成された変更後の作曲用テンプレートを自動的に削除するようにしてもよい。
If there is no composition template that corresponds to the number of measures for the entire song, select a composition template that corresponds to the nearest number of measures that is greater than the required number of beats, It is also possible to obtain the required number of beats by deleting the beat of the measure (the measure becomes a measure composed of variable time signatures). Alternatively, a composition template corresponding to the nearest number of measures that is smaller than the required number of beats may be selected and read out, and the required number of beats may be obtained by adding the number of beats to some measures. Further, a measure template composed of variable time signatures may be prepared in advance, and the variable time measure template may be replaced with a measure to which a variable time signature is to be assigned.
At the end of the composition, a new template name may be assigned to the newly created composition template after the change and stored in the external storage device 7 or the like. Alternatively, the newly created composition template after change may be automatically deleted at the end of the composition.

この発明に係る自動作曲装置の実施の形態を示すハード構成ブロック図である。1 is a hardware configuration block diagram showing an embodiment of an automatic music composition apparatus according to the present invention. 自動作曲処理の一実施例を示すフローチャートである。It is a flowchart which shows one Example of an automatic music composition process. 自動作曲処理に基づき一部が変更される前後の作曲用テンプレートのデータ構造を示す概念図である。It is a conceptual diagram which shows the data structure of the template for composition before and after a part is changed based on an automatic composition process.

符号の説明Explanation of symbols

1…CPU、2…ROM、3…RAM、4…通信インタフェース、4A…外部機器、5…入力操作部、6…表示部、6A…ディスプレイ、7…外部記憶装置、8…音源、8A…サウンドシステム、1D…通信バス DESCRIPTION OF SYMBOLS 1 ... CPU, 2 ... ROM, 3 ... RAM, 4 ... Communication interface, 4A ... External device, 5 ... Input operation part, 6 ... Display part, 6A ... Display, 7 ... External storage device, 8 ... Sound source, 8A ... Sound System, 1D ... communication bus

Claims (3)

曲進行テンプレートを読み出す読み出し手段と、
所定の標準テンポ及び標準拍子を取得する取得手段と、
生成すべき曲の時間長を設定する時間設定手段と、
前記取得した所定の標準テンポ及び標準拍子と前記設定された時間長とに応じて前記読み出した曲進行テンプレートを調整する曲進行テンプレート調整手段と、
前記調整された曲進行テンプレートに基づき曲を自動生成する生成手段と
を具えた自動作曲装置。
Reading means for reading the song progression template;
Obtaining means for obtaining a predetermined standard tempo and standard time signature;
A time setting means for setting the time length of the song to be generated;
Song progression template adjustment means for adjusting the read song progression template according to the acquired predetermined standard tempo and standard time signature and the set time length;
A self-composing music apparatus comprising generating means for automatically generating music based on the adjusted music progression template.
前記曲進行テンプレート調整手段は、曲進行テンプレート内の一部の小節を標準拍子から変拍子に変更して曲進行テンプレートを調整することを特徴とする請求項1に記載の自動作曲装置。   The automatic music composition apparatus according to claim 1, wherein the music progression template adjusting means adjusts the music progression template by changing a part of bars in the music progression template from a standard time signature to a variable time signature. 前記取得した所定の標準テンポを補正する補正手段を具えてなり、前記補正したテンポに従って曲進行テンプレートに基づき自動生成された曲を再生できるようにしたことを特徴とする請求項1又は2に記載の自動作曲装置。   The correction means for correcting the acquired predetermined standard tempo is provided, and a music automatically generated based on a music progression template according to the corrected tempo can be reproduced. Automatic music composition device.
JP2003406001A 2003-12-04 2003-12-04 Automatic music composition apparatus Pending JP2005165119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003406001A JP2005165119A (en) 2003-12-04 2003-12-04 Automatic music composition apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003406001A JP2005165119A (en) 2003-12-04 2003-12-04 Automatic music composition apparatus

Publications (1)

Publication Number Publication Date
JP2005165119A true JP2005165119A (en) 2005-06-23

Family

ID=34728508

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003406001A Pending JP2005165119A (en) 2003-12-04 2003-12-04 Automatic music composition apparatus

Country Status (1)

Country Link
JP (1) JP2005165119A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100710709B1 (en) 2006-03-24 2007-04-24 이기녕 Module for composing write electron music

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100710709B1 (en) 2006-03-24 2007-04-24 이기녕 Module for composing write electron music

Similar Documents

Publication Publication Date Title
JP3707364B2 (en) Automatic composition apparatus, method and recording medium
US6175072B1 (en) Automatic music composing apparatus and method
JP3637775B2 (en) Melody generator and recording medium
JP3528654B2 (en) Melody generator, rhythm generator, and recording medium
JP3239897B1 (en) Songwriting device and program
JP2006084774A (en) Playing style automatic deciding device and program
JP2006126710A (en) Playing style determining device and program
JP4670686B2 (en) Code display device and program
JP3671788B2 (en) Tone setting device, tone setting method, and computer-readable recording medium having recorded tone setting program
JP2005165119A (en) Automatic music composition apparatus
JP3709821B2 (en) Music information editing apparatus and music information editing program
JP2000112472A (en) Automatic music composing device, and recording medium
JP3835131B2 (en) Automatic composition apparatus and method, and storage medium
JP3775249B2 (en) Automatic composer and automatic composition program
JP5104414B2 (en) Automatic performance device and program
JP3812519B2 (en) Storage medium storing score display data, score display apparatus and program using the score display data
JP3933070B2 (en) Arpeggio generator and program
JP4144488B2 (en) Accompaniment data generation apparatus and program
JP2011197564A (en) Electronic music device and program
JP2008102349A (en) Automatic accompaniment device and program
JP2003233376A (en) Device and method for electronic musical sound generation
JP3797180B2 (en) Music score display device and music score display program
JP3752940B2 (en) Automatic composition method, automatic composition device and recording medium
JP3669301B2 (en) Automatic composition apparatus and method, and storage medium
JP5659501B2 (en) Electronic music apparatus and program