JP2968455B2 - Method and apparatus for forming repetitive waveform of electronic musical instrument - Google Patents

Method and apparatus for forming repetitive waveform of electronic musical instrument

Info

Publication number
JP2968455B2
JP2968455B2 JP7146887A JP14688795A JP2968455B2 JP 2968455 B2 JP2968455 B2 JP 2968455B2 JP 7146887 A JP7146887 A JP 7146887A JP 14688795 A JP14688795 A JP 14688795A JP 2968455 B2 JP2968455 B2 JP 2968455B2
Authority
JP
Japan
Prior art keywords
loop
waveform
address
repetitive
loop length
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
JP7146887A
Other languages
Japanese (ja)
Other versions
JPH08314464A (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.)
Kawai Musical Instrument Manufacturing Co Ltd
Original Assignee
Kawai Musical Instrument Manufacturing Co Ltd
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 Kawai Musical Instrument Manufacturing Co Ltd filed Critical Kawai Musical Instrument Manufacturing Co Ltd
Priority to JP7146887A priority Critical patent/JP2968455B2/en
Priority to US08/647,566 priority patent/US5672836A/en
Publication of JPH08314464A publication Critical patent/JPH08314464A/en
Application granted granted Critical
Publication of JP2968455B2 publication Critical patent/JP2968455B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、例えばシンセサイザ、
電子ピアノ、電子オルガン、シングルキーボード等の電
子楽器に記憶され、繰り返し読み出しに用いられる繰返
し波形を形成する方法及び繰返し波形の形成装置に関す
る。
BACKGROUND OF THE INVENTION The present invention relates to, for example, synthesizers,
The present invention relates to a method and apparatus for forming a repetitive waveform stored in an electronic musical instrument such as an electronic piano, an electronic organ, a single keyboard and used for repeated reading.

【0002】[0002]

【従来の技術】従来、電子楽器では予め波形メモリに所
要の楽音波形データを記憶しておき、パネル設定ならび
にキー操作等に対応する楽音波形データを順次読み出
し、この波形データを楽音信号に再生することにより楽
音を発生するようにした、いわゆる読み出し方式を採用
するものが知られている。一般に、楽音波形は、楽音発
生初期の激しい波形変化を示す立ち上がり部分と、これ
に続く比較的滑らかな波形変化を示す持続(エンベロー
プ)部分とに大別される。楽音の最も顕著な特徴は、激
しい波形変化を示す立ち上がり部にあり、その後に続く
エンベロープ部分では少なくなる。実際の楽音のエンベ
ロープ部分は長く継続するため、全体をそのまま記憶す
るには膨大なメモリ容量が必要となり装置全体に占める
メモリ価格が上昇し、非現実的なものとなる。
2. Description of the Related Art Conventionally, in an electronic musical instrument, required musical tone waveform data is stored in a waveform memory in advance, and tone waveform data corresponding to panel settings and key operations are sequentially read out, and this waveform data is reproduced as a musical tone signal. A so-called read-out system that generates a musical tone by using such a method is known. Generally, a musical sound waveform is roughly divided into a rising portion showing a sharp waveform change at the beginning of musical tone generation and a continuous (envelope) portion showing a relatively smooth waveform change following the rising portion. The most prominent feature of a musical tone is a rising portion showing a sharp waveform change, and it is less in a subsequent envelope portion. Since the envelope portion of an actual musical tone lasts for a long time, an enormous memory capacity is required to store the entire tone as it is, and the memory price occupying the entire apparatus increases, which is impractical.

【0003】かかる事情を考慮して、主としてメモリ容
量の節約を目的として、楽音を、激しい波形変化を示す
立ち上がり(アタック)部分と、これに続く比較的変化
の少ない持続(エンベロープ)部分の所定区間を取り出
した部分と、をそれぞれ記憶しておき、楽音の再生にあ
たっては、キー操作によって指定された楽音に該当する
立ち上がり部分を読み出し、それに続いて持続部分の所
定区間のデータを必要な長さに相当するまで繰り返し読
み出して、持続する一連の楽音信号を生成するようにし
たものがある。(例えば、特開平2−146097)
[0003] In consideration of such circumstances, mainly for the purpose of saving the memory capacity, a musical tone is converted into a predetermined section between a rising (attack) portion showing a sharp waveform change and a continuous (envelope) portion having a relatively small change. Is stored, and when playing a musical tone, the rising portion corresponding to the musical tone specified by the key operation is read out, and then the data of the predetermined section of the continuous portion is reduced to a required length. There is one in which a series of tone signals are read out repeatedly to generate a continuous series of tone signals. (For example, JP-A-2-146097)

【0004】かかる方式において、繰り返し読み出す部
分(以下ループという)の波形は変化は少ないとはいう
ものの、その波頭と波尾とでは差異があるため、読み出
したものをそのままつなぎ合わせると差異のある部分を
つなぎ合わせるため不自然となり楽音としては不適切な
ものとなる。かかる事情を踏まえて、図5の(A)のよ
うな元の波形に対して自然なループ波形を形成するため
のクロスフェードループ処理について説明する。図5
(A)のような楽音の元の波形においてループを開始す
る位置に相当するループトップアドレスLTとループ処
理を行う長さであるループレングスLLとを指定してい
る。その結果、ループエンドアドレスLEは“LT+L
E”、フェードインアドレスFIは“LT−LL”とし
て求められる。このような状態で、先ずループトップア
ドレスLTからループエンドアドレスLEまでの区間の
波形をフェードアウト(図中に破線で示すように、元の
波形の音量から0まで次第に音量を減少させる処理)を
行う。これとは別に、フェードインアドレスFIからル
ープトップアドレスLTまでの区間の波形をフェードイ
ン(図中に破線で示すように、音量を0から元の信号の
音量まで徐々に増加させる処理)させる。このように、
前述のようにフェードインさせた波形とフェードアウト
させた波形とを加え合わせたものをループ波形とするク
ロスフェードループ方式が知られている。なお、再生す
る場合は、図5(B)のように、元の波形の先頭からル
ープトップアドレスまでは太線矢印で示した元の波形O
を再生し、これに続いてループトップアドレス以降は、
前述のようにして得られたループ波形が、1、2、3、
・・・nのように所要回数繰り返し再生され、全体とし
て聴感上も違和感のない楽音が得られるものである。
In such a system, although the waveform of a portion to be repeatedly read (hereinafter referred to as a loop) has little change, there is a difference between the crest and the tail of the waveform. Are unnatural and unsuitable as a musical sound. Based on such circumstances, a cross-fade loop process for forming a natural loop waveform with respect to the original waveform as shown in FIG. FIG.
A loop top address LT corresponding to a position at which a loop is started in an original waveform of a musical tone as shown in (A) and a loop length LL which is a length for performing loop processing are designated. As a result, the loop end address LE becomes “LT + L
E "and the fade-in address FI are obtained as" LT-LL. "In such a state, first, the waveform in the section from the loop top address LT to the loop end address LE is faded out (as indicated by the broken line in the figure, In addition, the waveform of the section from the fade-in address FI to the loop top address LT is fade-in (as indicated by a broken line in the figure). (A process of gradually increasing the volume from 0 to the volume of the original signal).
As described above, there is known a cross-fade loop method in which a waveform obtained by adding a waveform that has been faded in and a waveform that has been faded out is used as a loop waveform. In the case of reproduction, as shown in FIG. 5B, the original waveform O indicated by a thick arrow extends from the beginning of the original waveform to the loop top address.
, And after this, after the loop top address,
The loop waveform obtained as described above is 1, 2, 3,
.. Are reproduced repeatedly a required number of times as shown in FIG.

【0005】しかしながら、この方式では、クロスフェ
ードさせる部分の波形の位相が合っていないと、繰り返
し部分の楽音波形データを繰り返し読み出す際に、音の
つながりが不自然になり不要な高次倍音が発生したり、
また、不自然な唸りを発生し、楽音の質を著しく損なう
ことが少なくなかった。
[0005] However, in this method, if the waveforms of the cross-fade portions are not in phase, the tone connection becomes unnatural when repeatedly reading out the musical tone waveform data of the repetitive portions, and unnecessary higher harmonics are generated. Or
In addition, unnatural groans often occurred, and the quality of musical sounds was often significantly impaired.

【0006】このような問題を解決するために、従来
は、操作者がループトップアドレスとループレングス
(その他、ループエンドアドレスとループレングス、ま
たはループトップアドレスとループエンドアドレス、の
いずれでもよい)のようなポイントを何種類か与えて、
クロスフェードループを作成し、得られたループ波形の
再生音を聞いて、不自然な唸りや高次倍音が少なく、で
きるだけ自然なループになる組み合わせを探すようにし
ていた。したがって、このようなポイントの発見に手間
取ったり、調整が微妙であり、位相を完全に合わせるこ
とが難しい場合が多かった。
Conventionally, in order to solve such a problem, the operator has to use a loop top address and a loop length (in addition, either a loop end address and a loop length or a loop top address and a loop end address may be used). Give some kind of points like this,
He created a cross-fade loop, listened to the reproduced sound of the obtained loop waveform, and searched for a combination that would produce as natural a loop as possible with less unnatural groans and higher harmonics. Therefore, it often takes time to find such a point, or the adjustment is delicate, and it is often difficult to completely match the phases.

【0007】そこで、繰返し波形の作成が容易で、質の
高い繰返し波形の作成可能な繰返し波形の形成方法が求
められていた。
Therefore, there has been a need for a method of forming a repetitive waveform that can easily generate a repetitive waveform and that can generate a high-quality repetitive waveform.

【0008】[0008]

【発明が解決しようとする課題】本発明は、係る事情に
鑑みなされたものであり、質の高い繰返し波形を迅速、
かつ簡単に作成可能な繰返し波形の形成方法、及び該波
形の形成装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and has been developed to quickly and efficiently produce high-quality repetitive waveforms.
It is another object of the present invention to provide a method for forming a repetitive waveform that can be easily created and a device for forming the waveform.

【0009】[0009]

【課題を解決するための手段】本発明は、電子楽器に用
いられる繰返し波形を作成する際に、ループトップアド
レス(LT)及びループレングスの初期値(LL)と、
ループレングス変化幅(WD)とを与え、ループレング
スを、ループレングスの初期値から“(ループレングス
初期値LL)+(ループレングス変化幅WD)”まで変
化させ、それぞれのループレングスに応じて、繰り返し
波形を作成する元となる波形のフェードインアドレス
“(ループトップアドレスLT)−(ループレングスL
L)”からループトップアドレスまでの区間をフェード
インさせた波形と、そして、ループトップアドレスから
ループエンドアドレス“(ループトップアドレスLT)
+(ループレングスLL)”の区間をフェードアウトさ
せた波形を加え合わせた波形と、をクロスフェードされ
た繰り返し波形として生成し、前記クロスフェードされ
た繰り返し波形と、前記元となる波形のループトップア
ドレスからループエンドアドレスの区間の波形との相関
係数を求め、該相関係数の高い波形から順次所定数のク
ロスフェードされた繰り返し波形が選択され、該選択さ
れた波形の中からユーザーが実際に使用する波形を決定
するようにした、ことを特徴とする電子楽器における繰
り返し波形の形成方法である。
According to the present invention, a loop top address (LT) and an initial value (LL) of a loop length are generated when a repetitive waveform used for an electronic musical instrument is created.
A loop length change width (WD) is given, and the loop length is changed from an initial value of the loop length to “(loop length initial value LL) + (loop length change width WD)”, and according to each loop length, Fade-in address “(loop top address LT) − (loop length L) of a waveform from which a repetitive waveform is created
L) ”to a waveform obtained by fading in the section from the loop top address, and from the loop top address to the loop end address“ (loop top address LT).
+ (Loop length LL) "is generated as a cross-faded repetitive waveform, and a waveform obtained by adding a waveform obtained by fading out a section of" + (loop length LL) "is obtained. The cross-faded repetitive waveform and the loop top address of the original waveform are generated. From the waveform in the section of the loop end address, a predetermined number of cross-fade repetitive waveforms are sequentially selected from the waveform having a high correlation coefficient, and the user actually selects the selected waveform from the selected waveforms. A method for forming a repetitive waveform in an electronic musical instrument, wherein a waveform to be used is determined.

【0010】また、本発明は、指定されたループトップ
アドレス、ループレングスの初期値、ループレングス変
化幅にしたがって、ループレングスをループレングス初
期値から“(ループレングス初期値)+(ループレング
ス変化幅)”まで変化させ、その時のループトップアド
レス、ループエンドアドレス“(ループトップアドレ
ス)+(ループレングス)”、フェードインアドレス
“(ループトップアドレス)−(ループレングス)”を
それぞれ算出するアドレス算出器と、前記アドレス算出
器の出力に基づき、繰り返し波形を作成する元となる波
形の前記フェードインアドレスからループトップアドレ
スまでの区間をフェードインさせた波形と、ループトッ
プアドレスからループエンドアドレスまでの区間をフェ
ードアウトさせた波形と、を加え合わせた波形をクロス
フェードされた繰り返し波形として生成するループ処理
器と、前記ループ処理器により作成された各繰返し波形
と元となる波形のループトップアドレスからループエン
ドアドレスまでの区間の波形との相関係数を算出する相
関係数算出器と、前記相関係数算出器により算出された
相関係数の極大となる点を検出するピーク検出器と、前
記ピーク検出器の出力から相関係数の高い順に所定数の
波形を選択する選択器と、前記選択器による選択結果を
表示する表示器と、からなることを特徴とする電子楽器
の繰返し波形形成装置である。
Further, according to the present invention, the loop length can be changed from the loop length initial value to "(loop length initial value) + (loop length change width) in accordance with the designated loop top address, loop length initial value, and loop length change width. )) And an address calculator that calculates the loop top address, the loop end address “(loop top address) + (loop length)”, and the fade-in address “(loop top address) − (loop length)” at that time. And a waveform in which a section from the fade-in address to the loop top address of the waveform from which the repetitive waveform is to be created is faded in based on the output of the address calculator, and a section from the loop top address to the loop end address. Waveform faded out , A loop processor for generating a cross-fade repetitive waveform as a cross-fade repetitive waveform, and a waveform in a section from the loop top address to the loop end address of each repetitive waveform created by the loop processor and the original waveform A correlation coefficient calculator for calculating a correlation coefficient between the peak detector, a peak detector for detecting a point at which the correlation coefficient calculated by the correlation coefficient calculator reaches a maximum, A repetitive waveform forming apparatus for an electronic musical instrument, comprising: a selector for selecting a predetermined number of waveforms in descending order of number; and a display for displaying a selection result by the selector.

【0011】[0011]

【作用】本発明によれば、汎用計算機やシンセサイザー
のサンプラー等を用いて、クロスフェードされた繰り返
し波形を作成する際に、ループトップアドレスLTとル
ープレングスの初期値LLおよびレングス変化幅WDを
与え、該レングス変化幅の範囲内でクロスフェードされ
る波形のループレングスを逐次自動的に変化させて、各
ループレングスに対応する繰り返し波形を作成すること
ができる。
According to the present invention, a loop top address LT, a loop length initial value LL and a length change width WD are given when a cross-faded repetitive waveform is created by using a general-purpose computer or a sampler of a synthesizer. The loop length of the waveform that is cross-fade within the range of the length change width can be automatically and automatically changed sequentially to create a repetitive waveform corresponding to each loop length.

【0012】次いで、作成された各繰返し波形と、元波
形の該波形と同一部位との相関係数を求め、相関度の高
い繰返し波形から順次所定数の波形を選択して繰返し波
形を決定するものである。
Next, a correlation coefficient between each of the generated repetitive waveforms and the same portion of the original waveform as that of the original waveform is obtained, and a predetermined number of waveforms are sequentially selected from the repetitive waveforms having a high degree of correlation to determine the repetitive waveform. Things.

【0013】これにより、元波形に近いクロスフェード
ループが得られ、楽音のつながりが自然になるととも
に、不要な高次倍音の発生を防止することができ、高音
質の楽音が得られる。
As a result, a cross-fade loop close to the original waveform is obtained, and the connection of musical tones becomes natural, and unnecessary high-order harmonics can be prevented from being generated, so that high-quality musical tones can be obtained.

【0014】さらに、本発明によれば、繰返し波形の作
成が自動的に行われるので、確実性があり、操作が容易
で短時間に繰返し波形の作成が可能である。
Furthermore, according to the present invention, since a repetitive waveform is automatically created, the repetitive waveform can be created in a short time with certainty and ease of operation.

【0015】[0015]

【実施例】図1は本発明に係る繰返し波形形成装置の概
略構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a repetitive waveform forming apparatus according to the present invention.

【0016】図に示すように本発明の繰返し波形形成装
置は、アドレス算出器1、ループ処理器2、相関係数算
出器3、ピーク検出器4、選択器5、表示器6で構成さ
れる。
As shown in the figure, the repetitive waveform forming apparatus of the present invention comprises an address calculator 1, a loop processor 2, a correlation coefficient calculator 3, a peak detector 4, a selector 5, and a display 6. .

【0017】このような構成において、操作者がループ
トップアドレスLTとループレングスの初期値LLおよ
びシミュレートするために変化させるループレングス変
化幅WDを入力すると、これら入力値はアドレス算出器
1に読み取られ、アドレス算出器1はそれぞれの入力値
に基づき繰り返し波形としてクロスフェードされる元波
形の各アドレス値を逐次算出してループ処理器2に送
る。
In such a configuration, when the operator inputs the loop top address LT, the initial value LL of the loop length and the loop length change width WD to be changed for simulation, these input values are read by the address calculator 1. Then, the address calculator 1 sequentially calculates each address value of the original waveform that is cross-fade as a repetitive waveform based on the respective input values, and sends it to the loop processor 2.

【0018】なお、レングス変化幅WDは、シミュレー
トされるループレングスLLの範囲を規定するものであ
り、このようなレングス変化幅の範囲内については計算
機が自動的にループレングスを変化させて各アドレスを
算出し、得られた算出結果をループ処理器2に送り出す
ように構成されている。
The length change width WD defines a range of the loop length LL to be simulated, and within such a range of the length change width, the computer automatically changes the loop length to change each loop length. It is configured to calculate an address and send the obtained calculation result to the loop processor 2.

【0019】一方、ループ処理器2には元波形が入力さ
れるので、該ループ処理器2は前記アドレス算出器1よ
り送られたデータに基づき、それぞれのループレングス
に対応するクロスフェードされた波形を算出し、その結
果を相関係数算出器3に送る。
On the other hand, since the original waveform is input to the loop processor 2, the loop processor 2 performs cross-fading waveforms corresponding to the respective loop lengths based on the data sent from the address calculator 1. And sends the result to the correlation coefficient calculator 3.

【0020】相関係数算出器3は、上記ループ処理器2
により作成された各繰返し波形と元波形の同一部位との
相関係数を算出する。
The correlation coefficient calculator 3 includes the loop processor 2
The correlation coefficient between each repetitive waveform created by the above and the same part of the original waveform is calculated.

【0021】なお、上記相関係数算出器3で算出される
相関係数は、元波形のデータ系列を{Xn }、クロスフ
ェードループのデータ系列を{Yn }とすると次式で表
される。
The correlation coefficient calculated by the correlation coefficient calculator 3 is expressed by the following equation, where {Xn} is the data sequence of the original waveform and {Yn} is the data sequence of the cross-fade loop.

【0022】 [0022]

【0023】 ただし、m :ループトップアドレス(=LT) L :ループレングス(=LL) σX :Xm 〜Xm+L-1 の標準偏差 σY :Ym 〜Ym+L-1 の標準偏差Here, m: loop top address (= LT) L: loop length (= LL) σ X : standard deviation of X m to X m + L -1 σ Y : Y m to Y m + L -1 standard deviation

【0024】ピーク検出器4は、相関係数算出器3より
送られた各波形ごとの相関係数の大小を比較してピーク
値(極大点)を検出するものであり、該ピーク検出器4
の結果は選択器5に送られる。
The peak detector 4 detects the peak value (maximum point) by comparing the magnitude of the correlation coefficient for each waveform sent from the correlation coefficient calculator 3.
Is sent to the selector 5.

【0025】選択器5は上記ピーク検出器4より送られ
た結果に基づき、所定数の繰返し波形を選択するもので
あり、該選択器5により相関度の高いものから順次所定
数の繰返し波形が選択され、選択された結果は表示器6
に表示される。
The selector 5 selects a predetermined number of repetitive waveforms based on the result sent from the peak detector 4, and the selector 5 sequentially generates a predetermined number of repetitive waveforms in descending order of correlation. The selected result is displayed on the display 6
Will be displayed.

【0026】従って、操作者は、該表示器6に表示され
た結果を見ながら好適な繰返し波形を選択決定する。
Therefore, the operator selects and determines a suitable repetitive waveform while watching the result displayed on the display 6.

【0027】なお、上記所定数とは、繰返し波形を何個
作成するかを規定するものであり、操作者により予めセ
ットされている。
The predetermined number defines the number of repetitive waveforms to be created, and is set in advance by the operator.

【0028】係る構成により、本発明によれば、操作者
が繰返し波形の設定条件を入力することにより、計算機
あるいはサンプラーが相関度の高い繰返し波形から順次
所定数の波形を自動的に作成する。
According to the present invention, according to the present invention, a computer or a sampler automatically creates a predetermined number of waveforms sequentially from a repetitive waveform having a high degree of correlation when an operator inputs a setting condition of the repetitive waveform.

【0029】従って、繰返し波形の作成が迅速容易とな
り、しかも自然で質の高い繰り返し波形が提供できる。
Therefore, it is possible to quickly and easily create a repetitive waveform, and to provide a natural and high-quality repetitive waveform.

【0030】なお、本発明の繰返し波形の作成を、例え
ば汎用計算機を用いて行う場合、上記アドレス算出器
1、ループ処理器2、相関係数算出器3、ピーク検出器
4、選択器5等の機能はプログラムにより実現すること
も可能である。
When the repetitive waveform of the present invention is created using, for example, a general-purpose computer, the address calculator 1, the loop processor 2, the correlation coefficient calculator 3, the peak detector 4, the selector 5, etc. This function can be realized by a program.

【0031】図2は、本発明の繰返し波形形成装置の動
作を説明するメインフローチャートである。以下図面を
参照しながら本実施例の動作について説明する。
FIG. 2 is a main flowchart for explaining the operation of the repetitive waveform forming apparatus of the present invention. Hereinafter, the operation of this embodiment will be described with reference to the drawings.

【0032】先ずパラメータの読み込みが行われる(ス
テップS11)。これは操作者が入力したループトップ
アドレス(LT)及びループレングスの初期値(LL)
と、レングス変化幅(WD)をアドレス算出器1に取り
込む処理である。
First, parameters are read (step S11). This is the loop top address (LT) and the initial value of the loop length (LL) input by the operator.
And the process of taking the length change width (WD) into the address calculator 1.

【0033】次いで、ループ処理器2に元波形の読み込
みが行われるとともに(ステップS12)、シミュレー
トの終了条件を示すループレングスLEがセットされる
(ステップS13)。シミュレートの終了条件LEはル
ープレングスの初期値LLにレングスの変化幅WDを加
算したものである。
Next, the original waveform is read into the loop processor 2 (step S12), and a loop length LE indicating the end condition of the simulation is set (step S13). The simulation end condition LE is obtained by adding the length change width WD to the loop length initial value LL.

【0034】次いで、アドレス算出器1より送られたク
ロスフェイド波形算出のためのデータがセットされる
(ステップS14)。即ち、変数AD1、AD2には、
クロスフェードされるそれぞれの波形のループトップア
ドレス、即ち、LT、及びLT−LLがセットされる。
Next, data for calculating the cross-fade waveform sent from the address calculator 1 is set (step S14). That is, the variables AD1 and AD2 include
The loop top address of each cross-fade waveform, that is, LT and LT-LL is set.

【0035】ループ処理器2は、これに基づいてループ
処理を行う(ステップS15)。ループ処理は、ステッ
プS14で設定された初期値に基づいて、それぞれのク
ロスフェイド波形を作成する処理であり、細部は図3の
説明で詳述する。
The loop processor 2 performs a loop process based on this (step S15). The loop process is a process of creating each cross-fade waveform based on the initial value set in step S14, and details will be described in detail with reference to FIG.

【0036】続いて、相関係数算出器3により、作成さ
れた各クロスフェイド波形の元波形との相関係数の算出
が行われ(ステップS16)、算出された結果はピーク
検出器4に送られ記憶される。なお、相関係数の算出に
ついては図4の相関係数算出のサブルーチンの説明で詳
述する。
Subsequently, the correlation coefficient calculator 3 calculates a correlation coefficient between each created cross-fade waveform and the original waveform (step S16), and sends the calculated result to the peak detector 4. And stored. The calculation of the correlation coefficient will be described in detail in the description of the correlation coefficient calculation subroutine in FIG.

【0037】次いで、次回のシミュレートのため、ルー
プレングスLLをインクリメントし(ステップS1
7)、さらにシミュレートを続けるか否かを調べる(ス
テップS18)。これは上記ステップS17でセットさ
れたループレングスLLが、ステップS13でセットさ
れたシミュレートの終了条件LEに達しているか否かを
調べる処理である。
Next, the loop length LL is incremented for the next simulation (step S1).
7) It is checked whether or not to continue the simulation (step S18). This is a process for checking whether or not the loop length LL set in step S17 has reached the simulation end condition LE set in step S13.

【0038】上記ステップS18で、ループレングスL
Lが未だ終了条件LEに達していない場合は、ステップ
S14に戻り、ステップS17でインクリメントされた
次のループレングスでシミュレートを繰り返す。
In step S18, the loop length L
If L has not yet reached the end condition LE, the process returns to step S14, and the simulation is repeated with the next loop length incremented in step S17.

【0039】一方、上記ステップS18でループレング
スLLが終了条件LEに達した場合、即ち全てのループ
レングスについてのシミュレートが終了した場合、ピー
ク検出器4は、全ての波形について上記シミュレートの
結果を比較し、ピーク(極大点)を検出する(ステップ
S19)。
On the other hand, if the loop length LL has reached the termination condition LE in step S18, that is, if the simulation has been completed for all the loop lengths, the peak detector 4 determines the result of the simulation for all the waveforms. And a peak (maximum point) is detected (step S19).

【0040】続いて、選択器5が前記ピーク検出器4に
より検出され記憶されている波形から、相関度の高い順
に所定数の波形を選択し(ステップS20)、これを表
示器6に送り、該表示器6で所定数の波形を表示する
(ステップS21)。
Subsequently, the selector 5 selects a predetermined number of waveforms in descending order of correlation from the waveforms detected and stored by the peak detector 4 (step S 20), and sends them to the display 6. A predetermined number of waveforms are displayed on the display 6 (step S21).

【0041】従って、操作者は、該表示器6に表示され
た結果を見ながら繰返し波形を選択決定する。
Accordingly, the operator repeatedly selects and determines the waveform while viewing the result displayed on the display 6.

【0042】このように、本発明によれば、与えられた
初期値を初期条件として、レングス変化幅の範囲内で、
作成されたクロスフェード波形と元波形の相関係数が自
動的にシミュレートされ、最適な繰返し波形が選択され
る。
As described above, according to the present invention, using the given initial value as an initial condition, within the range of the length change width,
The correlation coefficient between the created cross-fade waveform and the original waveform is automatically simulated, and an optimal repetitive waveform is selected.

【0043】従って、精度の高い繰返し波形を自動的に
作成することが可能となる。
Therefore, it is possible to automatically create a highly accurate repetitive waveform.

【0044】次に、図3を参照しながらループ処理器2
の繰返し波形の作成処理動作について説明する。
Next, referring to FIG.
Will be described.

【0045】ループ処理においては、先ず、初期値設定
が行われる(ステップS31)。初期値設定において、
変数PO1、PO2には、クロスフェード波形を作成す
るために使用される2波形の先頭アドレスAD1、AD
2が、カウンタCOには0が設定される。
In the loop process, first, an initial value is set (step S31). In the initial value setting,
Variables PO1 and PO2 have head addresses AD1 and AD2 of two waveforms used for creating a cross-fade waveform.
2 is set to 0 and the counter CO is set to 0.

【0046】続いて、クロスフェードされる2波形のサ
ンプルポイントにおける振幅値から、クロスフェードさ
れた波形の当該サンプルポイントにおける振幅値Y(P
O1)が求められる(ステップS32)。
Subsequently, based on the amplitude values at the sample points of the two cross-fade waveforms, the amplitude values Y (P
O1) is obtained (step S32).

【0047】次いで、クロスフェードされる2波形の各
サンプルポイントPO1、PO2、及びカウンタCOが
インクリメントされる(ステップS33)。
Next, the sample points PO1 and PO2 of the two cross-fade waveforms and the counter CO are incremented (step S33).

【0048】さらに、インクリメントされたサンプルポ
イントが、クロスフェードされる波形のループレングス
の範囲内にあるか否かが調べられ(ステップS34)、
範囲内にある場合はステップS32に戻り、次のサンプ
ルポイントにおけるクロスフェード波形の振幅の計算を
繰り返す。
Further, it is checked whether or not the incremented sample point is within the loop length range of the waveform to be cross-fade (step S34).
If it is within the range, the process returns to step S32, and the calculation of the amplitude of the crossfade waveform at the next sample point is repeated.

【0049】一方、範囲外の場合は、当該波形に関する
クロスフェード波形の算出は終了したのでメインルーチ
ンのステップS16に戻る。
On the other hand, if it is out of the range, the calculation of the cross-fade waveform related to the waveform is completed, and the process returns to step S16 of the main routine.

【0050】このようにして、本発明においては、レン
グス変化幅の範囲内でループレングスを変化させながら
クロスフェードされた波形を形成し、該波形と元波形と
の相関係数を求め、相関度が調べられる。
As described above, according to the present invention, a cross-faded waveform is formed while changing the loop length within the range of the length change width, and the correlation coefficient between the waveform and the original waveform is obtained. Is examined.

【0051】なお、本実施例のステップS32では直線
クロスフェードの場合の計算式を例示しているが、この
他、クロスフェードの方法としては、対数、指数関数、
Sinカーブ、Cosカーブ等の方法がある。
In step S32 of this embodiment, a calculation formula in the case of a linear crossfade is illustrated. In addition, as a method of crossfade, a logarithmic, exponential function,
There are methods such as Sin curve and Cos curve.

【0052】図4は上記メインフローチャートのステッ
プS16の相関係数算出のサブルーチンの動作を説明す
る図である。以下、図面を参照しながら相関係数算出の
動作について説明する。
FIG. 4 is a diagram for explaining the operation of the subroutine for calculating the correlation coefficient in step S16 of the main flowchart. Hereinafter, the operation of calculating the correlation coefficient will be described with reference to the drawings.

【0053】相関係数の算出においては、先ず初期値の
設定が行われる(ステップS41)。初期値の設定にお
いては、累計値を入力する変数SUMには0を、PO1
には元波形及びクロスフェードされた波形のループトッ
プを示すループトップアドレス(AD1)がセットされ
る。
In calculating the correlation coefficient, first, an initial value is set (step S41). In setting the initial value, 0 is set for the variable SUM for inputting the total value, and PO1 is set for the variable SUM.
, A loop top address (AD1) indicating the loop top of the original waveform and the cross-fade waveform is set.

【0054】次いで、SUM=SUM+X(PO1)*
Y(PO1)が求められる(ステップS42)。なお、
X(PO1)は元波形の振幅値であり、Y(PO1)は
クロスフェードされた波形の振幅値である。
Next, SUM = SUM + X (PO1) *
Y (PO1) is obtained (step S42). In addition,
X (PO1) is the amplitude value of the original waveform, and Y (PO1) is the amplitude value of the cross-fade waveform.

【0055】次に、クロスフェード波形の算出に使用さ
れるサンプルポイントPO1の値をインクリメントする
(ステップS43)。
Next, the value of the sample point PO1 used for calculating the crossfade waveform is incremented (step S43).

【0056】続いて、PO1<LT+LLであるか否か
が調べられる(ステップS44)。これは、インクリメ
ントされたサンプルポイントが作成される波形のループ
レングスの範囲内にあるか否かを調べる処理である。
Subsequently, it is checked whether or not PO1 <LT + LL (step S44). This is a process for checking whether or not the incremented sample point is within the loop length range of the waveform to be created.

【0057】サンプルポイントPO1の値が未だループ
エンドアドレスに達していない場合は、ステップS42
に戻り、次のデータ値について同様の処理を繰り返す。
If the value of the sample point PO1 has not yet reached the loop end address, step S42
And the same processing is repeated for the next data value.

【0058】一方、PO1の値がループエンド値を越え
た場合は、該波形に関するサンプルポイントの抽出は終
りであるので、次のステップに進み、X,Yの標準偏差
σx、σy を求める(ステップS45、46)。標準偏
差σx 、σy を求めるのは、異なるループレングスの波
形を正規化して比較可能にするためである。
On the other hand, if the value of PO1 exceeds the loop end value, the extraction of the sample points relating to the waveform has been completed, so the process proceeds to the next step to obtain the standard deviations σ x and σ y of X and Y. (Steps S45 and S46). The reason why the standard deviations σ x and σ y are obtained is to normalize waveforms having different loop lengths and make them comparable.

【0059】次いで、上記標準偏差σx 、σy と前述の
相関係数の算定式を用い、 に基づき相関係数が求める(ステップS47)。
Next, using the standard deviations σ x , σ y and the above-described equation for calculating the correlation coefficient, A correlation coefficient is obtained based on the above (Step S47).

【0060】このようにして、当該サンプル波形の相関
係数の算出が終了するとメインルーチンに戻り、次のサ
ンプル波形の相関係数の算出を繰り返す。
When the calculation of the correlation coefficient of the sample waveform is completed, the process returns to the main routine, and the calculation of the correlation coefficient of the next sample waveform is repeated.

【0061】[0061]

【発明の効果】以上詳述したように、本発明によれば、
予めクロスフェードされた波形と元波形の同一部位の相
関係数が求められ、相関度の高い波形が選択されるの
で、元波形に近い質の高い繰返し波形が得られ、楽音の
つながりが自然になるとともに、不要な高次倍音や唸り
の発生を防止することができる。
As described in detail above, according to the present invention,
The correlation coefficient of the same part of the cross-fade waveform and the original waveform is calculated in advance, and a waveform with a high degree of correlation is selected. At the same time, it is possible to prevent the generation of unnecessary higher harmonics and growls.

【0062】さらに、繰返し波形の作成が自動的にでき
るので、波形の作成が迅速容易で、各種のループレング
スについて容易にシミュレート可能となる。
Further, since the repetitive waveform can be created automatically, the waveform can be created quickly and easily, and various loop lengths can be easily simulated.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の波形形成装置の概略構成を示すブロッ
ク図である。
FIG. 1 is a block diagram showing a schematic configuration of a waveform forming apparatus according to the present invention.

【図2】本発明の波形形成装置の動作を説明するメイン
フローチャートである。
FIG. 2 is a main flowchart for explaining the operation of the waveform forming apparatus of the present invention.

【図3】ループ処理の動作を説明するフローチャートで
ある。
FIG. 3 is a flowchart illustrating an operation of a loop process.

【図4】相関係数算出の動作を説明するフローチャート
である。
FIG. 4 is a flowchart illustrating an operation of calculating a correlation coefficient.

【図5】クロスフェードループ作成方法を説明するため
の図である。
FIG. 5 is a diagram for explaining a crossfade loop creation method.

【符号の説明】[Explanation of symbols]

1 アドレス算出器 2 ループ処理器 3 相関係数算出器 4 ピーク検出器 5 選択器 6 表示器 DESCRIPTION OF SYMBOLS 1 Address calculator 2 Loop processor 3 Correlation coefficient calculator 4 Peak detector 5 Selector 6 Display

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 電子楽器に用いられる繰返し波形を作成
する際に、ループトップアドレス(LT)及びループレ
ングスの初期値(LL)と、ループレングス変化幅(W
D)とを与え、 ループレングスを、ループレングスの初期値から“(ル
ープレングス初期値)+(ループレングス変化幅)”ま
で変化させ、 それぞれのループレングスに応じて、繰り返し波形を作
成する元となる波形のフェードインアドレス“(ループ
トップアドレス)−(ループレングス)”からループト
ップアドレスまでの区間をフェードインさせた波形と、
そして、ループトップアドレスからループエンドアドレ
ス“(ループトップアドレス)+(ループレングス)”
の区間をフェードアウトさせた波形を加え合わせた波形
と、をクロスフェードされた繰り返し波形として生成
し、 前記クロスフェードされた繰り返し波形と、前記元とな
る波形のループトップアドレスからループエンドアドレ
スの区間の波形との相関係数を求め、該相関係数の高い
波形から順次所定数のクロスフェードされた繰り返し波
形が選択され、該選択された波形の中からユーザーが実
際に使用する波形を決定するようにしたことを特徴とす
る、電子楽器における繰り返し波形の形成方法。
When a repetitive waveform used for an electronic musical instrument is created, a loop top address (LT) and an initial value (LL) of a loop length and a loop length change width (W) are set.
D), and the loop length is changed from the initial value of the loop length to “(initial value of loop length) + (loop length change width)”. According to each loop length, an original waveform is generated. A waveform in which the section from the fade-in address “(loop top address) − (loop length)” to the loop top address is faded in;
Then, from the loop top address to the loop end address “(loop top address) + (loop length)”
A waveform obtained by adding a waveform obtained by fading out the section of the section is generated as a cross-fade repetitive waveform, and the cross-faded repetitive waveform and the section of the section from the loop top address to the loop end address of the original waveform are generated. A correlation coefficient with a waveform is obtained, and a predetermined number of cross-fade repetitive waveforms are sequentially selected from a waveform having a high correlation coefficient, and a waveform actually used by a user is determined from the selected waveforms. A method for forming a repetitive waveform in an electronic musical instrument, characterized in that:
【請求項2】 指定されたループトップアドレス、ルー
プレングスの初期値、ループレングス変化幅にしたがっ
て、ループレングスをループレングス初期値から“(ル
ープレングス初期値)+(ループレングス変化幅)”ま
で変化させ、その時のループトップアドレス、ループエ
ンドアドレス“(ループトップアドレス)+(ループレ
ングス)”、フェードインアドレス“(ループトップア
ドレス)−(ループレングス)”をそれぞれ算出するア
ドレス算出器と、 前記アドレス算出器の出力に基づき、繰り返し波形を作
成する元となる波形の前記フェードインアドレスからル
ープトップアドレスまでの区間をフェードインさせた波
形と、ループトップアドレスからループエンドアドレス
までの区間をフェードアウトさせた波形と、を加え合わ
せた波形をクロスフェードされた繰り返し波形として生
成するループ処理器と、 前記ループ処理器により作成された各繰返し波形と元と
なる波形のループトップアドレスからループエンドアド
レスまでの区間の波形との相関係数を算出する相関係数
算出器と、 前記相関係数算出器により算出された相関係数の極大と
なる点を検出するピーク検出器と、 前記ピーク検出器の出力から相関係数の高い順に所定数
の波形を選択する選択器と、 前記選択器による選択結果を表示する表示器と、 からなることを特徴とする電子楽器の繰返し波形形成装
置。
2. The loop length changes from the loop length initial value to “(loop length initial value) + (loop length change width)” according to the designated loop top address, loop length initial value, and loop length change width. An address calculator that calculates a loop top address, a loop end address “(loop top address) + (loop length)”, and a fade-in address “(loop top address) − (loop length)” at that time; Based on the output of the calculator, the waveform from which the section from the fade-in address to the loop top address of the waveform from which the repeated waveform is to be created is faded in, and the section from the loop top address to the loop end address is faded out. Add the waveform and A loop processor that generates the crossed waveform as a cross-fade repetitive waveform, and a phase relationship between each repetitive waveform created by the loop processor and a waveform in a section from the loop top address to the loop end address of the original waveform A correlation coefficient calculator that calculates the number, a peak detector that detects a point at which the correlation coefficient calculated by the correlation coefficient calculator reaches a maximum, and an ascending correlation coefficient from the output of the peak detector. A repetitive waveform forming device for an electronic musical instrument, comprising: a selector for selecting a predetermined number of waveforms; and a display for displaying a result of the selection by the selector.
JP7146887A 1995-05-23 1995-05-23 Method and apparatus for forming repetitive waveform of electronic musical instrument Expired - Fee Related JP2968455B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP7146887A JP2968455B2 (en) 1995-05-23 1995-05-23 Method and apparatus for forming repetitive waveform of electronic musical instrument
US08/647,566 US5672836A (en) 1995-05-23 1996-05-14 Tone waveform production method for an electronic musical instrument and a tone waveform production apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7146887A JP2968455B2 (en) 1995-05-23 1995-05-23 Method and apparatus for forming repetitive waveform of electronic musical instrument

Publications (2)

Publication Number Publication Date
JPH08314464A JPH08314464A (en) 1996-11-29
JP2968455B2 true JP2968455B2 (en) 1999-10-25

Family

ID=15417830

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7146887A Expired - Fee Related JP2968455B2 (en) 1995-05-23 1995-05-23 Method and apparatus for forming repetitive waveform of electronic musical instrument

Country Status (1)

Country Link
JP (1) JP2968455B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5130809B2 (en) * 2007-07-13 2013-01-30 ヤマハ株式会社 Apparatus and program for producing music
JP7343320B2 (en) * 2019-07-23 2023-09-12 株式会社コーエーテクモゲームス Information processing device, information processing method, and program

Also Published As

Publication number Publication date
JPH08314464A (en) 1996-11-29

Similar Documents

Publication Publication Date Title
US6838608B2 (en) Lyric display method, lyric display computer program and lyric display apparatus
JP3209156B2 (en) Automatic accompaniment pattern generator and method
JP2906970B2 (en) Sound analysis and synthesis method and apparatus
JPS6052895A (en) Electronic musical instrument
EP1729283A1 (en) Tone synthesis apparatus and method
US20070000371A1 (en) Tone synthesis apparatus and method
JP2567717B2 (en) Musical sound generator
JP3489503B2 (en) Sound signal analyzer, sound signal analysis method, and storage medium
JP2968455B2 (en) Method and apparatus for forming repetitive waveform of electronic musical instrument
JP3601373B2 (en) Waveform editing method
US5672836A (en) Tone waveform production method for an electronic musical instrument and a tone waveform production apparatus
JP3037861B2 (en) Waveform forming device and electronic musical instrument using the output waveform
JPH05281970A (en) Automatic music arranging device and electronic musical instrument
JP3428230B2 (en) Method and apparatus for forming repetitive waveform of electronic musical instrument
JPH07325579A (en) Device for allocating register of waveform data
JP2559209B2 (en) Music signal generator
JPH09127940A (en) Automatic rendition device
JP3802293B2 (en) Musical sound processing apparatus and musical sound processing method
JP3620405B2 (en) Musical sound fluctuation information generating method, musical sound fluctuation information generating apparatus, and recording medium
JP2008058796A (en) Playing style deciding device and program
JPH0633517Y2 (en) Envelope approximation device
JP3308557B2 (en) Music signal generator
JP2833485B2 (en) Tone generator
JP3716701B2 (en) Sound channel assignment method and apparatus
JP3636056B2 (en) Waveform data processing method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070820

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080820

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090820

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090820

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100820

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110820

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120820

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120820

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130820

Year of fee payment: 14

LAPS Cancellation because of no payment of annual fees