JP2001100756A - Method for waveform editing - Google Patents
Method for waveform editingInfo
- Publication number
- JP2001100756A JP2001100756A JP27663599A JP27663599A JP2001100756A JP 2001100756 A JP2001100756 A JP 2001100756A JP 27663599 A JP27663599 A JP 27663599A JP 27663599 A JP27663599 A JP 27663599A JP 2001100756 A JP2001100756 A JP 2001100756A
- Authority
- JP
- Japan
- Prior art keywords
- waveform
- target
- correlation
- reference waveform
- timing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000005314 correlation function Methods 0.000 abstract description 47
- 238000010586 diagram Methods 0.000 description 24
- 239000002131 composite material Substances 0.000 description 11
- 238000001228 spectrum Methods 0.000 description 10
- 230000001965 increasing effect Effects 0.000 description 6
- 230000000630 rising effect Effects 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 5
- 230000002596 correlated effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 101150065817 ROM2 gene Proteins 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 230000000875 corresponding effect Effects 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000002123 temporal effect Effects 0.000 description 2
- ZVQOOHYFBIDMTQ-UHFFFAOYSA-N [methyl(oxido){1-[6-(trifluoromethyl)pyridin-3-yl]ethyl}-lambda(6)-sulfanylidene]cyanamide Chemical compound N#CN=S(C)(=O)C(C)C1=CC=C(C(F)(F)F)N=C1 ZVQOOHYFBIDMTQ-UHFFFAOYSA-N 0.000 description 1
- 230000002238 attenuated effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 230000008034 disappearance Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000005562 fading Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
- 230000002459 sustained effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Landscapes
- Electrophonic Musical Instruments (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、複数の波形の相関
性が高くなるように相互のタイミングを合わせる波形編
集方法に関するものである。特に、電子楽器において、
関連性のある複数の波形を混合して音源波形とする際の
波形編集に好適なものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a waveform editing method for adjusting timings of a plurality of waveforms so as to increase the correlation between the waveforms. Especially in electronic musical instruments,
This is suitable for waveform editing when a plurality of related waveforms are mixed to form a sound source waveform.
【0002】[0002]
【従来の技術】電子楽器の波形メモリ音源においては、
発生源を同じくする2波形を混合して音源波形とする場
合がある。しかし、2波形のタイミング(時間軸上の位
置あるいは位相)がずれると、混合波形にノイズが発生
したり波形が歪むことがある。したがって、波形同士の
相関性が高くなるように2波形のタイミング合わせを行
う必要がある。従来は、発生源を同じくする2波形の相
関性を高くするタイミング合わせ(位相合わせ)を自動
的に行う方法がなかった。ユーザは、ディスプレイに表
示された2波形を見ながら操作子を操作し、波形を相対
的に少しずつ動かして2波形のタイミング合わせをして
いた。2. Description of the Related Art In a waveform memory sound source of an electronic musical instrument,
In some cases, two waveforms having the same generation source are mixed to form a sound source waveform. However, if the timing (position or phase on the time axis) of the two waveforms is shifted, noise may occur in the mixed waveform or the waveform may be distorted. Therefore, it is necessary to adjust the timing of the two waveforms so that the correlation between the waveforms is high. Conventionally, there has been no method for automatically performing timing adjustment (phase adjustment) for increasing the correlation between two waveforms having the same generation source. The user operates the operator while watching the two waveforms displayed on the display, and moves the waveforms little by little to adjust the timing of the two waveforms.
【0003】一方、波形を部分的に間引いたり繰り返し
たりすることにより、波形の時間軸を圧縮/伸張する時
間軸圧縮伸長技術がある。この場合、間引きの前後の波
形の接続、ないし、波形の繰り返し部分の接続を滑らか
にするために、接続部の波形同士で相互相関(Cross C
orrelation)関数を計算し、相互相関関数値の高い部分
で接続を行っていた。この場合、接続すべき位置が確定
しているために、相互相関値の算出が可能であった。On the other hand, there is a time axis compression / expansion technique for compressing / expanding the time axis of a waveform by partially thinning out or repeating the waveform. In this case, in order to smooth the connection of the waveforms before and after thinning or the connection of the repeated parts of the waveform, the cross-correlation (Cross C
orrelation) function, and the connection was made at the part where the cross-correlation function value was high. In this case, the cross-correlation value could be calculated because the position to be connected was determined.
【0004】それに対し、上述したような混合しようと
する2波形のタイミング合わせでは、相互相関関数を計
算すべき比較範囲があらかじめ特定されていない。例え
ば、楽音の立ち上がり部(アタック部)で2波形のタイ
ミングを合わせるのに、楽音の立ち上がりから立下りま
での全体波形の相互相関関数を計算したのでは効率が悪
い。また、楽音の立ち上がり部の波形の相関性を高める
のに有効なタイミング合わせができるとも限らない。On the other hand, in the timing adjustment of two waveforms to be mixed as described above, a comparison range in which a cross-correlation function is to be calculated is not specified in advance. For example, it is inefficient to calculate the cross-correlation function of the entire waveform from the rising edge to the falling edge of the musical tone to match the timing of the two waveforms at the rising portion (attack portion) of the musical tone. Further, it is not always possible to perform effective timing adjustment for enhancing the correlation of the waveform of the rising portion of the musical sound.
【0005】[0005]
【発明が解決しようとする課題】本発明は、上述した問
題点を解決するためになされたもので、対象波形と参照
波形との相関性が高くなるように、対象波形と参照波形
のタイミング合わせを自動的に行う波形編集方法を提供
することを目的とするものである。SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and is intended to adjust the timing of a target waveform and a reference waveform so as to increase the correlation between the target waveform and the reference waveform. It is an object of the present invention to provide a waveform editing method for automatically performing the above.
【0006】[0006]
【課題を解決するための手段】本発明は、請求項1に記
載の発明においては、対象波形と参照波形との相関性が
高くなるように、前記対象波形と前記参照波形とのタイ
ミングを合わせる波形編集方法であって、前記対象波形
および前記参照波形について、ある1つの波形パラメー
タのエンベロープを検出するステップと、前記対象波形
および前記参照波形の前記エンベロープを基準に、前記
対象波形および前記参照波形に比較範囲を設定するステ
ップと、前記比較範囲において、前記対象波形と前記参
照波形との相関度を算出し、前記相関度を最大とすると
きの前記対象波形と前記参照波形との時間差を算出する
ステップ、前記対象波形を前記参照波形に対し前記時間
差だけ相対的にシフトさせる処理をするステップを有す
るものである。したがって、対象波形と参照波形の相関
性が高くなるように、両波形のタイミングを自動的に合
わせることができる。その際、波形の特徴が良く反映さ
れている、波形パラメータのエンベロープを基準に比較
範囲を設定しているため、相関性が高いと推定される比
較範囲をあらかじめ設定できるので、正確に、かつ、少
ない処理データ量で相関度の算出を行うことができる。According to the present invention, the timing of the target waveform and the reference waveform are adjusted so that the correlation between the target waveform and the reference waveform is increased. A waveform editing method, comprising: detecting an envelope of a certain waveform parameter for the target waveform and the reference waveform; and detecting the target waveform and the reference waveform based on the envelopes of the target waveform and the reference waveform. Setting a comparison range, calculating a correlation between the target waveform and the reference waveform in the comparison range, and calculating a time difference between the target waveform and the reference waveform when the correlation is maximized. And shifting the target waveform relative to the reference waveform by the time difference. Therefore, the timing of both waveforms can be automatically adjusted so that the correlation between the target waveform and the reference waveform is high. At that time, the comparison range is set based on the envelope of the waveform parameter, which reflects the characteristics of the waveform well, so that the comparison range estimated to have high correlation can be set in advance, so that it is accurate and The degree of correlation can be calculated with a small amount of processing data.
【0007】請求項2に記載の発明においては、対象波
形と参照波形の相関性が高くなるように、前記対象波形
と前記参照波形とのタイミングを合わせる波形編集方法
であって、前記対象波形および前記参照波形について、
ある1つの波形パラメータのエンベロープを検出するス
テップと、前記対象波形および前記参照波形の前記エン
ベロープを基準に、前記対象波形および前記参照波形に
比較範囲を設定するステップと、前記比較範囲におい
て、前記対象波形と前記参照波形、および、前記対象波
形を極性反転させた極性反転波形と前記参照波形、につ
いて相関度を算出し、前記相関度を最大とするときの、
前記対象波形または前記極性反転波形と前記参照波形と
の時間差を算出するステップと、前記対象波形と前記参
照波形との前記相関度の方が前記相関度を最大とすると
きには、前記対象波形を前記参照波形に対して前記時間
差だけ相対的にシフトさせるとともに、前記極性反転波
形と前記参照波形との相関度の方が前記相関度を最大と
するときには、前記対象波形を前記極性反転波形に置き
換えるとともに、前記参照波形に対し前記時間差だけ相
対的にシフトさせる処理をするステップを有するもので
ある。したがって、請求項1に記載の発明と同様な作用
効果に加えて、対象波形と参照波形との極性が逆であっ
ても、極性反転を検出した上でタイミング合わせができ
る。According to a second aspect of the present invention, there is provided a waveform editing method for adjusting the timing of the target waveform and the reference waveform so that the correlation between the target waveform and the reference waveform is high. Regarding the reference waveform,
Detecting an envelope of a certain waveform parameter; setting a comparison range for the target waveform and the reference waveform with reference to the envelopes of the target waveform and the reference waveform; The waveform and the reference waveform, and the polarity inversion waveform and the reference waveform, the polarity of the target waveform and the reference waveform, calculate the degree of correlation, when the correlation degree is maximized,
Calculating a time difference between the target waveform or the polarity-reversed waveform and the reference waveform, and when the correlation between the target waveform and the reference waveform has the maximum correlation, the target waveform is While relatively shifting the reference waveform by the time difference, and when the degree of correlation between the polarity-reversed waveform and the reference waveform maximizes the degree of correlation, the target waveform is replaced with the polarity-reversed waveform. , A step of performing a process of relatively shifting the reference waveform by the time difference. Therefore, in addition to the same operation and effect as the first aspect, even if the polarity of the target waveform and the reference waveform is opposite, the timing can be adjusted after detecting the polarity inversion.
【0008】[0008]
【発明の実施の形態】図1は、本発明の波形編集方法を
実行する波形編集装置のブロック図である。図中、1は
波形編集装置全体の制御を行うCPU(Central Proces
sing Unit)、2は制御プログラムなどの各種プログラム
および各種の制御情報などが格納されるROM、3はワ
ークエリアやバッファ領域あるいは各種プログラムを格
納する領域として使用されるRAM、4は計時動作やC
PU1に対するタイマ割込を行うためのタイマ、5は各
種の操作スイッチが配備されたパネルスイッチ、6は処
理対象波形などの各種の表示を行うパネル表示器であ
る。7は外部MIDI(Musical Instrument Digital I
nterface)機器との間でMIDIイベントの授受を行う
ためのMIDIインターフェース、8はCD−ROM
(Compact Disk-Read Only Memory)、HD(ハード磁
気ディスク)、FD(フレキシブル磁気ディスク)等の
記録媒体9にアクセスするための駆動装置である。FIG. 1 is a block diagram of a waveform editing apparatus for executing a waveform editing method according to the present invention. In the figure, reference numeral 1 denotes a CPU (Central Processes) for controlling the entire waveform editing apparatus.
sing unit), 2 is a ROM for storing various programs such as control programs and various control information, 3 is a RAM used as a work area or a buffer area or an area for storing various programs, 4 is a clocking operation or C
A timer for interrupting the PU 1 with a timer, 5 is a panel switch provided with various operation switches, and 6 is a panel display for displaying various types of processing target waveforms and the like. 7 is an external MIDI (Musical Instrument Digital I
nterface) MIDI interface for exchanging MIDI events with devices, 8 is a CD-ROM
(Compact Disk-Read Only Memory), a drive device for accessing a recording medium 9 such as an HD (hard magnetic disk) and an FD (flexible magnetic disk).
【0009】10は波形メモリであり、入力波形データ
や生成波形データを記憶するもので、複数の波形データ
の書き込み読み出しが可能である。11はアクセス管理
部であり、波形メモリ10に対する、書込回路13、バ
ッファ14、あるいは、音源部15からのアクセスが互
いに衝突しないように、波形メモリ10のアクセスタイ
ムスロットを管理する。12は外部波形入力端子、13
は書込回路であって、外部波形入力端子12から入力さ
れる対象波形をサンプリングして、波形メモリ10に書
き込む。14はバッファであって、記録媒体9やRAM
3から波形メモリ10に書き込まれる波形データ、ある
いは、波形メモリ10から読み出される波形データを転
送する。15は音源部であって、波形メモリ10から読
み出された波形データを用いて楽音信号を生成する。1
6はサウンドシステムであって、音源部15から出力さ
れた楽音信号を出力する。17はバスラインであって、
上述した各要素間の情報の授受に使用される。A waveform memory 10 stores input waveform data and generated waveform data, and is capable of writing and reading a plurality of waveform data. An access management unit 11 manages access time slots of the waveform memory 10 so that accesses from the writing circuit 13, the buffer 14, or the tone generator 15 to the waveform memory 10 do not collide with each other. 12 is an external waveform input terminal, 13
Is a writing circuit which samples a target waveform inputted from the external waveform input terminal 12 and writes it in the waveform memory 10. Reference numeral 14 denotes a buffer, which is a recording medium 9
3 is transferred to the waveform memory 10 or the waveform data read from the waveform memory 10 is transferred. Reference numeral 15 denotes a tone generator, which generates a tone signal using the waveform data read from the waveform memory 10. 1
Reference numeral 6 denotes a sound system, which outputs a tone signal output from the sound source unit 15. 17 is a bus line,
Used for exchanging information between the above-described elements.
【0010】ここで、ROM2あるいはRAM3には、
全般的な制御を行うプログラムに加えて、外部入力され
た対象波形を分析し、波形を編集して音源波形を作成す
る音源波形作成プログラム、および、音源波形を用いて
波形メモリ音源として機能させるための演奏処理プログ
ラムなどが含まれる。CPU1は、ROM2あるいはR
AM3に記憶された各種制御プログラムに従い、パネル
スイッチ5やMIDIインターフェース7からの入力等
に応じて、各種の制御を行う。また、波形編集処理時お
よび音源波形作成処理時においては、バッファ14を介
して波形メモリ10のデータの読み書きを行い、波形デ
ータを読み出して分析、加工し、再度波形メモリ10に
書き込んだり、記録媒体9や図示しない通信ネットワー
クから供給された波形データを波形メモリ10に書き込
んだり、逆に波形メモリ10から前記記録媒体9や通信
ネットワークに波形データを供給したりする。Here, ROM2 or RAM3 contains:
In addition to a program that performs general control, it analyzes a target waveform that is input externally and edits the waveform to create a sound source waveform. Performance processing program. CPU1 is ROM2 or R
In accordance with various control programs stored in the AM 3, various controls are performed according to inputs from the panel switch 5 and the MIDI interface 7. In addition, during the waveform editing processing and the sound source waveform creation processing, the data in the waveform memory 10 is read / written via the buffer 14, the waveform data is read out, analyzed and processed, and written again in the waveform memory 10 or the recording medium. 9 and the waveform data supplied from a communication network (not shown) is written into the waveform memory 10, and conversely, the waveform data is supplied from the waveform memory 10 to the recording medium 9 and the communication network.
【0011】さらに、CPU1は、演奏処理実行時にお
いて、MIDIインターフェース7、記録媒体9あるい
はRAM3などから供給される演奏情報に応じて、音源
部15の発音チャンネルの楽音生成状態を制御する。例
えば、MIDIインターフェース7から発音開始を示す
ノートオン信号が入力された場合、音源部15の発音チ
ャンネルの1つにその楽音の発生を割り当て、割り当て
られた発音チャンネルに楽音パラメータ(ピッチ情報、
波形選択情報、音量エンベロープ制御情報、エフェクト
情報等)を供給するとともに、発音開始の指示を与え
る。これに応じて、音源部15では、割り当てられた発
音チャンネルを用いて、波形選択情報に応じて波形メモ
リ10から読み出された楽音波形データを使用して上述
した楽音パラメータに対応した楽音信号を生成する。Further, the CPU 1 controls the tone generation state of the tone generation channel of the tone generator 15 according to the performance information supplied from the MIDI interface 7, the recording medium 9 or the RAM 3 when performing the performance processing. For example, when a note-on signal indicating the start of sound generation is input from the MIDI interface 7, the generation of the musical tone is assigned to one of the sound channels of the sound source unit 15, and the tone parameters (pitch information, pitch information,
Waveform selection information, volume envelope control information, effect information, etc.) and an instruction to start sounding. In response to this, the tone generator 15 uses the assigned sounding channel to generate a tone signal corresponding to the tone parameter described above using the tone waveform data read from the waveform memory 10 in accordance with the waveform selection information. Generate.
【0012】なお、図示を省略したが、LANあるいは
インターネットなどの通信ネットワークに接続するため
の通信インターフェース回路を設け、通信ネットワーク
を介してサーバから波形データや各種プログラムなどを
ダウンロードしてもよい。さらにまた、鍵盤操作子を設
け、この鍵盤操作子を用いて演奏することもできる。上
述した説明では、波形編集方法や演奏処理方法をCPU
1に実行させるプログラムは、CD−ROM等の記録媒
体9により供給を受け、ハード磁気ディスク等の記録媒
体9にインストールされて実行されてもよい。また、プ
ログラムは、ネットワーク上のサーバから記録媒体9に
ダウンロードされて実行されてもよい。Although not shown, a communication interface circuit for connecting to a communication network such as a LAN or the Internet may be provided, and waveform data and various programs may be downloaded from a server via the communication network. Furthermore, a keyboard operator can be provided, and the user can perform using this keyboard operator. In the above description, the waveform editing method and the performance processing method
1 may be supplied from a recording medium 9 such as a CD-ROM, and may be installed and executed on the recording medium 9 such as a hard magnetic disk. Further, the program may be downloaded from a server on the network to the recording medium 9 and executed.
【0013】図2は、図1に示した波形編集装置を用い
て波形を分析し、分析結果を用いて波形を加工して音源
波形を作成し、人(操作者)が演奏をするまでの処理の
概要を示したフローチャートである。S21において、
元となる原波形データが用意される。図1に示したパネ
ルスイッチ5の録音スイッチ操作に応じて、原波形デー
タが、例えば、外部波形入力端子12から書込回路13
に入力されてサンプリングされ、アクセス管理部11を
介して、波形メモリ10に書き込まれる。あるいは、記
録媒体9に記憶された原波形データを駆動装置8で読み
込み、バッファ14、アクセス管理部11を経由して波
形メモリ10に記録する。FIG. 2 shows a waveform analysis using the waveform editing apparatus shown in FIG. 1, processing of the waveform using the analysis result to create a sound source waveform, and a process until a person (operator) plays. It is a flowchart showing an outline of the processing. In S21,
The original original waveform data is prepared. In response to the recording switch operation of the panel switch 5 shown in FIG.
And is sampled and written to the waveform memory 10 via the access management unit 11. Alternatively, the original waveform data stored in the recording medium 9 is read by the driving device 8 and recorded in the waveform memory 10 via the buffer 14 and the access management unit 11.
【0014】次のS22において、波形メモリ10の原
波形データから音源波形データを作成する。すなわち、
パネルスイッチ5の編集スイッチ操作に応じて、原波形
データを分析して加工し、音源波形データを合成して、
再び、波形メモリ10に書き込む。S23においては、
音源波形データを使用して演奏する。すなわち、パネル
スイッチ5の演奏スイッチ操作に応じて音源波形データ
を選択する。次に、音源波形データを使用し、MIDI
インターフェース7、記録媒体9、あるいは、図示しな
い通信ネットワークから入力されるMIDIデータ等の
演奏データに基づいて演奏する。In the next step S22, sound source waveform data is created from the original waveform data in the waveform memory 10. That is,
According to the operation of the edit switch of the panel switch 5, the original waveform data is analyzed and processed, and the sound source waveform data is synthesized.
The data is written into the waveform memory 10 again. In S23,
Perform using the sound source waveform data. That is, the sound source waveform data is selected in accordance with the performance switch operation of the panel switch 5. Next, using sound source waveform data, MIDI
The performance is performed based on performance data such as MIDI data input from the interface 7, the recording medium 9, or a communication network (not shown).
【0015】本発明の波形編集方法の実施の形態によれ
ば、上述したS22において、2波形のエンベロープの
レベルに基づいて、所望の波形部分において大ざっぱに
相関性の高い範囲を設定し、この範囲において相関度を
算出することにより、相関性の高いタイミング合わせを
正確に行うものである。2波形の一方を対象波形(ター
ゲット)とし、他方を参照波形(リファレンス)として
説明する。According to the embodiment of the waveform editing method of the present invention, in the above-mentioned S22, based on the envelope levels of the two waveforms, a roughly correlated range is set in a desired waveform portion, and this range is set. By calculating the degree of correlation in (1), timing adjustment with high correlation is accurately performed. One of the two waveforms will be described as a target waveform (target), and the other will be described as a reference waveform (reference).
【0016】処理ステップの概要は、一例として次の通
りである。第1に、タイミング合わせを行いたい楽音波
形の部分波形、例えば、楽音波形の立上り部分(アタッ
ク部)において、参照波形および対象波形のエンベロー
プのレベルに基づいて相関性が高いと推定される比較範
囲を決定する。第2に、その比較範囲において、対象波
形と参照波形との相関度を、例えば、相互相関関数を用
いて算出する。第3に、参照波形と、対象波形を極性反
転した波形との相関度を算出する。第4に、第2,第3
のステップで算出した双方の相関度の最大値をそれそれ
検索する。第5に、双方の相関度の最大値を比較し、対
象波形および極性反転波形のうち、相関度の最大値が高
い方を採用する。The outline of the processing steps is as follows as an example. First, a comparison range in which it is estimated that the correlation is high based on the envelope levels of the reference waveform and the target waveform in the partial waveform of the musical sound waveform whose timing is to be adjusted, for example, in the rising portion (attack portion) of the musical sound waveform. To determine. Second, in the comparison range, the degree of correlation between the target waveform and the reference waveform is calculated using, for example, a cross-correlation function. Third, the degree of correlation between the reference waveform and a waveform obtained by inverting the polarity of the target waveform is calculated. Fourth, second and third
The maximum value of both correlation degrees calculated in the step is searched. Fifth, the maximum values of the correlations are compared, and the waveform having the highest correlation is adopted from the target waveform and the inverted polarity waveform.
【0017】第6に、採用された対象波形または極性反
転波形が、相関度の最大値を与えたときの時間差(位相
差)だけ、対象波形を参照波形に対して相対的にシフト
させる処理をする。ここで、相対的にシフトさせる処理
とは、例えば、対象波形の比較範囲の開始位置に上述し
た時間差を加算して新たに開始位置として、ここを切り
出し開始位置として、前記対象波形を波形メモリ記憶し
直すことである。あるいは、対象波形と参照波形とを同
時に読み出して波形データを利用する際に、対象波形の
読み出し開始タイミングを上述した時間差だけ遅らせる
(時間差が負の場合には進ませる)ような読み出し制御
情報をメモリに記憶しておくことを意味する。Sixth, a process of shifting the target waveform relative to the reference waveform by a time difference (phase difference) when the adopted target waveform or polarity-inverted waveform gives the maximum value of the correlation degree. I do. Here, the process of relatively shifting is, for example, adding the above-described time difference to the start position of the comparison range of the target waveform as a new start position, setting this as a cutout start position, and storing the target waveform in a waveform memory. It is to do again. Alternatively, when the target waveform and the reference waveform are simultaneously read and the waveform data is used, read control information for delaying the read start timing of the target waveform by the above-described time difference (advancing when the time difference is negative) is stored in the memory. Means to memorize it.
【0018】上述した相対シフト処理により、自動的
に、2波形の相関性が高くなるようにタイミング合わせ
をすることができる。その際、エンベロープのレベルに
基づいて相関度が高いと推定される比較範囲を設定する
ため、有効なタイミング合わせを行うことができる。以
後、フローチャートおよび波形図を参照し、この実施の
形態の動作を具体的に説明する。By the above-described relative shift processing, the timing can be automatically adjusted so that the correlation between the two waveforms is increased. At this time, since a comparison range in which the degree of correlation is estimated to be high is set based on the envelope level, effective timing adjustment can be performed. Hereinafter, the operation of this embodiment will be specifically described with reference to flowcharts and waveform diagrams.
【0019】図3は、本発明の波形編集方法の実施の形
態の動作を説明するための第1のフローチャートであ
る。相互相関関数値を算出する比較範囲を設定する。図
4は、本発明の波形編集方法の実施の一形態の動作を説
明するための第2のフローチャートである。相互相関関
数値が最大となる時間差を算出し、対象波形と参照波形
の相互相関関数値が最も高くなるように、対象波形と参
照波形とのタイミング合わせをする。図5〜図10は、
波形編集処理時の各段階における、対象波形、参照波
形、エンベロープ、および、相互相関関数値を示す説明
図である。これらは、編集処理時において、図1のパネ
ル表示器6の画面上に表示される。FIG. 3 is a first flowchart for explaining the operation of the embodiment of the waveform editing method according to the present invention. A comparison range for calculating a cross-correlation function value is set. FIG. 4 is a second flowchart for explaining the operation of one embodiment of the waveform editing method of the present invention. The time difference at which the cross-correlation function value becomes the maximum is calculated, and the timing of the target waveform and the reference waveform is adjusted so that the cross-correlation function value of the target waveform and the reference waveform becomes the highest. 5 to 10
FIG. 7 is an explanatory diagram showing a target waveform, a reference waveform, an envelope, and a cross-correlation function value at each stage during a waveform editing process. These are displayed on the screen of the panel display 6 in FIG. 1 during the editing process.
【0020】図5は、対象波形Aおよび参照波形Bの波
形図である。図5(a)は対象波形、図5(b)は参照
波形の波形図である。横軸は時間軸に相当するが、サン
プル番号で表している。縦軸は振幅である。図3のフロ
ーチャートから説明する。S31においては、タイミン
グを合わせたい対象波形A、参照波形Bの各音量エンベ
ロープを検出する。次のS32において、各音量エンベ
ロープのレベルに基づいて、タイミングを合わせたい部
分波形、この具体例では、アタック部を検出する。FIG. 5 is a waveform diagram of the target waveform A and the reference waveform B. FIG. 5A is a waveform diagram of a target waveform, and FIG. 5B is a waveform diagram of a reference waveform. The horizontal axis corresponds to the time axis and is represented by a sample number. The vertical axis is the amplitude. Description will be made from the flowchart of FIG. In S31, the respective volume envelopes of the target waveform A and the reference waveform B whose timing is to be matched are detected. In the next step S32, based on the level of each volume envelope, a partial waveform whose timing is to be matched, in this specific example, an attack portion is detected.
【0021】図6は、対象波形Aおよび参照波形Bの音
量エンベロープを示す線図である。図6(a)は対象波
形の音量エンベロープ(部分)、図6(b)は参照波形
の音量エンベロープ(部分)を示す線図である。横軸は
サンプル番号で表している。縦軸は音量エンベロープで
ある。音量エンベロープは、入力波形に対して、例え
ば、時定数が比較的短いピークホールドを行うことによ
り検出される。ここでは、楽音波形の立ち上がりから終
了までの間における音量エンベロープの最大値が100
になるように正規化している。FIG. 6 is a diagram showing the volume envelopes of the target waveform A and the reference waveform B. FIG. 6A is a diagram illustrating the volume envelope (part) of the target waveform, and FIG. 6B is a diagram illustrating the volume envelope (portion) of the reference waveform. The horizontal axis is represented by the sample number. The vertical axis is the volume envelope. The volume envelope is detected by, for example, performing peak hold with a relatively short time constant on the input waveform. Here, the maximum value of the volume envelope from the rise to the end of the musical tone waveform is 100.
Is normalized so that
【0022】アタック部は、通常、楽音波形の先頭位置
(音量エンベロープの先頭位置でもある)から楽音波形
が最大値を取る(音量エンベロープも最大値を取る)と
きまでの期間であるとされている。しかし、この定義に
従えば、対象波形Aのアタック部の時間長と、参照波形
Bのアタック部の時間長とは必ずしも一致しない。しか
し、相関度を算出するには、同じ時間長の比較範囲で行
う。また、波形の先頭位置の近傍は、ノイズ等の影響に
より不確定さがあるから、対象波形Aの先頭位置と参照
波形Bの先頭位置のタイミングを揃えた場合には、必ず
しも相関性が高くならない。The attack portion is usually considered to be a period from the head position of the musical tone waveform (which is also the head position of the volume envelope) to the time when the musical tone waveform takes the maximum value (the volume envelope also takes the maximum value). . However, according to this definition, the time length of the attack portion of the target waveform A does not always match the time length of the attack portion of the reference waveform B. However, the calculation of the degree of correlation is performed in the comparison range having the same time length. In addition, since the vicinity of the leading position of the waveform has uncertainty due to the influence of noise or the like, if the timings of the leading position of the target waveform A and the leading position of the reference waveform B are aligned, the correlation is not necessarily high. .
【0023】次のS33において、対象波形Aおよび参
照波形Bのそれぞれに比較範囲を設定する。音量エンベ
ロープには、楽音波形が端的に反映されているから、音
量エンベロープに基づいて、対象波形Aと参照波形Bの
相関性が高いと推定される比較範囲を設定する。参照波
形B側の比較範囲の開始位置は先頭位置そのものとす
る。対象波形側Aの比較範囲の開始位置は、対象波形A
と参照波形Bの音量エンベロープのレベルを基準として
決定する。In the next step S33, a comparison range is set for each of the target waveform A and the reference waveform B. Since the tone waveform is simply reflected in the volume envelope, a comparison range in which the correlation between the target waveform A and the reference waveform B is estimated to be high is set based on the volume envelope. The start position of the comparison range on the reference waveform B side is the head position itself. The start position of the comparison range on the target waveform side A is the target waveform A
And the level of the volume envelope of the reference waveform B.
【0024】まず、図6(b)に示す参照波形Bの音量
エンベロープのレベルが、その最大値に対するある閾値
(例えば、最大値の25%)を超えるレベルとなる基準
位置を検出する。参照波形Bの先頭位置から基準位置ま
での時間長をt0とする。一方、図6(a)に示す対象
波形Aの音量エンベロープのレベルが、同様に、その最
大値に対する同じ閾値(最大値の25%)を超えるレベ
ルの基準位置を検出する。この基準位置から波形の先頭
側に、上述した時間長t0だけ遡ったタイミングを仮の
先頭位置とし、ここを対象波形A側における比較範囲の
開始位置とする。First, a reference position at which the level of the volume envelope of the reference waveform B shown in FIG. 6B exceeds a certain threshold value (for example, 25% of the maximum value) for the maximum value is detected. Time length from the start position to the reference position of the reference waveform B to the t 0. On the other hand, a reference position where the level of the volume envelope of the target waveform A shown in FIG. 6A exceeds the same threshold value (25% of the maximum value) for the maximum value is similarly detected. The timing which is traced back from the reference position to the beginning of the waveform by the above-described time length t 0 is set as a temporary start position, and this is set as the start position of the comparison range on the target waveform A side.
【0025】なお、上述した時間長t0は、対象波形A
の音量エンベロープが上述した最大値に対する閾値(最
大値の25%)を超える基準位置から、対象波形Aの実
際の先頭位置までの時間長であると定義してもよい。こ
の場合、この時間長t0を用いて、参照波形B側に仮の
先頭位置を設定する。あるいは、上述した時間長t
0を、参照波形B、対象波形Aの実際の先頭位置に関わ
れず、一定値に設定するようにしてもよい。The above-mentioned time length t 0 depends on the target waveform A
May be defined as the time length from the reference position where the volume envelope of the target waveform exceeds the above-described threshold value (25% of the maximum value) to the actual start position of the target waveform A. In this case, a temporary head position is set on the reference waveform B side using the time length t 0 . Alternatively, the time length t described above
0 may be set to a constant value regardless of the actual start positions of the reference waveform B and the target waveform A.
【0026】ところで、参照波形Bの先頭位置から音量
エンベロープが最大となるまでのアタック部の時間長
(TB)と、対象波形Aの上述した仮の先頭位置から対
象波形の音量エンベロープが最大となるまでのアタック
部の時間長(TA)とは必ずしも一致しない。したがっ
て、時間長(TA)、時間長(TB)のいずれか短い方、
あるいは、これよりさらに短い所定の時間を比較範囲の
時間長とする。By the way, the time length (T B ) of the attack portion from the top position of the reference waveform B until the volume envelope becomes maximum, and the case where the volume envelope of the target waveform from the above-mentioned provisional top position of the target waveform A is maximum. The time length of the attack portion (T A ) until the attack portion does not always match. Therefore, the shorter of the time length (T A ) and the time length (T B ),
Alternatively, a predetermined time shorter than this is set as the time length of the comparison range.
【0027】エンベロープの最大値によって決まる所定
レベルの時点を基準位置として、両波形の比較範囲を決
定しているので、参照波形Bと対象波形Aとは、ラフで
はあるが相関性の高い比較範囲を設定できる。さらに、
基準位置から先頭側の時間長を一定にしているために、
先頭近傍の不確定性の影響が軽減された相関性の高い比
較範囲を設定できる。従って、この後で行う、相関度の
厳密な算出において、参照波形Bと対象波形Aとの相関
度が最もとれる時間差の算出誤差を少なくすることがで
きる。Since the comparison range of the two waveforms is determined using the time point of the predetermined level determined by the maximum value of the envelope as the reference position, the reference waveform B and the target waveform A have a rough but highly correlated comparison range. Can be set. further,
Because the time length from the reference position to the beginning is fixed,
A highly correlated comparison range in which the influence of uncertainty near the head is reduced can be set. Therefore, in the strict calculation of the degree of correlation performed later, it is possible to reduce the calculation error of the time difference at which the degree of correlation between the reference waveform B and the target waveform A is maximized.
【0028】なお、比較範囲の設定は、上述した例に限
られない。参照波形B,対象波形Aの音量エンベロープ
が、それぞれ最大となる位置から時間を遡って、所定の
時間長となる範囲を、参照波形B,対象波形Aの比較範
囲とすることができる。この所定の時間長は、より好ま
しくは、参照波形B,対象波形Aの各先頭位置の近傍に
なるようにする。また、上述した参照波形Bの音量エン
ベロープが、最大値に対するある閾値(例えば、最大値
の25%)を超える基準位置を参照波形側の比較範囲の
開始位置とし、対象波形の音量エンベロープが、同様
に、最大値に対する同じ閾値(最大値の25%)を超え
る基準位置を対象波形側の比較範囲の開始位置とし、い
ずれも、比較範囲の時間長を一定とする。この所定の時
間長は、より好ましくは、参照波形B,対象波形Cの各
音量エンベロープの最大値の近傍になるようにする。The setting of the comparison range is not limited to the above example. A range in which the volume envelopes of the reference waveform B and the target waveform A go back from the positions where the volume envelopes are maximum and have a predetermined time length can be set as a comparison range of the reference waveform B and the target waveform A. This predetermined time length is more preferably set near each of the head positions of the reference waveform B and the target waveform A. Also, a reference position where the volume envelope of the reference waveform B exceeds a certain threshold value (for example, 25% of the maximum value) with respect to the maximum value is set as the start position of the comparison range on the reference waveform side, and the volume envelope of the target waveform is similarly set. Then, a reference position exceeding the same threshold value (25% of the maximum value) with respect to the maximum value is set as the start position of the comparison range on the target waveform side, and in each case, the time length of the comparison range is fixed. It is more preferable that the predetermined time length be close to the maximum value of each volume envelope of the reference waveform B and the target waveform C.
【0029】図7は、対象波形Aおよび参照波形Bの拡
大波形図である。図6(a)は対象波形A(部分)、図
6(b)は参照波形B(部分)を示す波形図である。図
中、横軸はサンプル番号、縦軸は振幅である。参照波形
Bと対象波形Aとのタイミング合わせは、相関度を計算
することにより行う。この具体例では、参照波形Bと対
象波形Aの相関度の計算は、FFT(Fast Fourier Tra
nsform)を用いて相互相関関数(厳密には、離散相互相
関関数であるが、略して、相互相関関数という)を計算
することにより行う。FIG. 7 is an enlarged waveform diagram of the target waveform A and the reference waveform B. FIG. 6A is a waveform diagram showing a target waveform A (part), and FIG. 6B is a waveform diagram showing a reference waveform B (part). In the figure, the horizontal axis is the sample number, and the vertical axis is the amplitude. The timing of the reference waveform B and the target waveform A is adjusted by calculating the degree of correlation. In this specific example, the calculation of the degree of correlation between the reference waveform B and the target waveform A is performed by FFT (Fast Fourier Tra
nsform) to calculate a cross-correlation function (strictly, a discrete cross-correlation function, but abbreviated to a cross-correlation function).
【0030】ここで、FFTを用いた相互相関関数の算
出法について説明しておく。波形x(t)とy(t)とがあった
場合、その相互相関関数c(Δt)は、Here, a method of calculating a cross-correlation function using FFT will be described. If there is a waveform x (t) and y (t), the cross-correlation function c (Δt) is
【数1】 波形x(t)とy(t)とは、それぞれ同じ周期の周期関数であ
るとし、その1周期につき、相互相関関数c(Δt)をフー
リエ変換する。 C(ω)= X(ω)* × Y(ω) ここで、C(ω)はc(Δt)のフーリエ変換F(c(ω))、X
(ω)*はX(ω)の複素共役、X(ω)は x(t) のフーリエ変
換F(x(t))、Y(ω)は y(t) のフーリエ変換F(y(t))で
ある。すなわち、相互相関関数c(Δt)のフーリエ変換
は、x(t)をフーリエ変換したものの複素共役と、y(t)を
フーリエ変換したものとを乗算した値となる。それを逆
変換すれば、 F-1( C(ω) )= c(Δt) =F-1( X(ω)*×Y(ω) ) したがって、相互相関関数を得ることができる。(Equation 1) The waveforms x (t) and y (t) are assumed to be periodic functions having the same period, and the cross-correlation function c (Δt) is Fourier-transformed for each period. C (ω) = X (ω) * × Y (ω) where C (ω) is the Fourier transform of c (Δt) F (c (ω)), X
(ω) * is the complex conjugate of X (ω), X (ω) is the Fourier transform F (x (t)) of x (t), and Y (ω) is the Fourier transform F (y (t )). That is, the Fourier transform of the cross-correlation function c (Δt) is a value obtained by multiplying the complex conjugate of the Fourier transform of x (t) by the Fourier transform of y (t). By inversely transforming it, F −1 (C (ω)) = c (Δt) = F −1 (X (ω) * × Y (ω)) Therefore, a cross-correlation function can be obtained.
【0031】上述した波形x(t)とy(t)とが、サンプリン
グ波形x(n)とy(n)(t=n×ts:tsはサンプリング周
期)の場合には、Δt=Δn×tsとして、その相互相関
関数c(Δn)は、The above-mentioned waveform x and (t) and y (t), but sampling waveform x (n) and y (n) (t = n × t s: t s is the sampling period) in the case of, Delta] t = as [Delta] n × t s, the cross-correlation function c ([Delta] n) is
【数2】 これを、FFT処理すると、 Cm=Xm *×Ym ここで、Cmはc(Δn)のFFT、Xm *はXmの複素共役、Xm
はx(n)のFFT、Ymはy(n)のFFTである。Cmを逆変換
すれば、(Equation 2) This, when FFT processing, C m = X m * × Y m where, C m is the FFT c ([Delta] n), the complex conjugate of X m * is X m, X m
The FFT of x (n), Y m is the FFT of y (n). By inverting C m ,
【数3】 したがって、参照波形をx(n)とし、対象波形をy(n)とし
て、相互相関関数の値RABをFFT処理を用いて算出す
ることができる。ただし、参照波形,対象波形は非周期
波形であるが、比較範囲を1周期とする周期関数である
として、相互相関関数を算出している。(Equation 3) Therefore, the value R AB of the cross-correlation function can be calculated using the FFT process, where x (n) is the reference waveform and y (n) is the target waveform. However, the cross-correlation function is calculated assuming that the reference waveform and the target waveform are aperiodic waveforms, but are periodic functions having a comparison range of one cycle.
【0032】図4のフローチャートを参照してタイミン
グ合わせを説明する。S41において、対象波形Aと参
照波形Bとの各比較範囲を、それぞれ、FFT処理(FF
TA,FFTB)する。次に、S42において、FFT処理
(FFTA,FFTB)の結果に基づいて、対象波形Aと参照波
形Bとの相互相関関数の値RABを算出する。S43にお
いては、相互相関関数の値RABが最大となる値と、その
ときのΔtの値を検出する。図8は、対象波形Aと参照
波形Bとの相互相関関数RABを示す線図である。図中、
横軸はサンプル数で表した時間差Δtであり、縦軸は相
互相関関数RABの値(%)である。図示の例では、Δt
が、わずかに正の値をとるときに、相互相関関数RABの
値が最大値をとることがわかる。The timing adjustment will be described with reference to the flowchart of FIG. In S41, each comparison range between the target waveform A and the reference waveform B is subjected to FFT processing (FF
TA, FFTB). Next, in S42, a value R AB of a cross-correlation function between the target waveform A and the reference waveform B is calculated based on the result of the FFT processing (FFTA, FFTB). In S43, the value at which the value R AB of the cross-correlation function becomes maximum and the value of Δt at that time are detected. FIG. 8 is a diagram showing a cross-correlation function R AB between the target waveform A and the reference waveform B. In the figure,
The horizontal axis is the time difference Δt expressed by the number of samples, and the vertical axis is the value (%) of the cross-correlation function R AB . In the illustrated example, Δt
Takes a slightly positive value, the value of the cross-correlation function R AB takes the maximum value.
【0033】次のS44において、対象波形Aの極性を
反転した極性反転波形Cについて、対象波形Aと同じ比
較範囲でFFT処理(FFTC)する。S45においては、
参照波形BのFFT処理(FFTB)と極性反転波形CのF
FT処理(FFTC)の結果に基づいて、相互相関関数RCB
の値を算出する。図9は、対象波形Aを極性反転させた
極性反転波形Cと参照波形Bとの相互相関関数RCBを示
す線図である。図中、横軸はサンプル数で表した時間差
であり、縦軸は相互相関関数RCBの値(%)である。な
お、図8に比べて横軸が半分に圧縮されている。S46
において、相互相関関数値RCBが最大となる値と、その
ときのΔtの値とを検出する。In the next step S44, FFT processing (FFTC) is performed on the polarity-reversed waveform C obtained by inverting the polarity of the target waveform A in the same comparison range as the target waveform A. In S45,
FFT processing of reference waveform B (FFTB) and F of polarity inverted waveform C
Based on the result of the FT processing (FFTC), the cross-correlation function R CB
Is calculated. FIG. 9 is a diagram showing a cross-correlation function R CB between a polarity inverted waveform C obtained by inverting the polarity of the target waveform A and a reference waveform B. In the figure, the horizontal axis is the time difference represented by the number of samples, and the vertical axis is the value (%) of the cross-correlation function RCB . Note that the horizontal axis is compressed by half compared to FIG. S46
In, the value at which the cross-correlation function value R CB is the maximum and the value of Δt at that time are detected.
【0034】S47においては、S43において得られ
た相互相関関数値RABの最大値と、S46において得ら
れた、相互相関関数値RCBの最大値とを比較して、相互
相関関数の最大値が大きい方について、その最大値をと
るときの時間差Δtに応じて、対象波形Aの移動量Δtを
決定する。図9の例では、相互相関関数RCBの値の最大
値は、図8に示した相互相関関数RABの最大値よりも小
さい。そのため、相互相関関数RABの値が最大となる時
間差Δtに応じて、対象波形Aの移動量Δtを決定する。In S47, the maximum value of the cross-correlation function value R AB obtained in S43 is compared with the maximum value of the cross-correlation function value R CB obtained in S46, and the maximum value of the cross-correlation function is obtained. Is larger, the moving amount Δt of the target waveform A is determined according to the time difference Δt when the maximum value is obtained. In the example of FIG. 9, the maximum value of the cross-correlation function R CB is smaller than the maximum value of the cross-correlation function R AB shown in FIG. Therefore, the moving amount Δt of the target waveform A is determined according to the time difference Δt at which the value of the cross-correlation function R AB becomes maximum.
【0035】ここで、対象波形Aの極性反転波形Cに対
しても、参照波形Bとの離散相互相関関数の算出をする
理由を説明する。マイクロホンの出力特性や、対象波形
A,参照波形Bの録音時のケーブル接続のセッティング
状況、コネクタの接続特性等により、対象波形Aと参照
波形Bの極性が反転している(逆位相)場合がある。し
たがって、上述したように対象波形Aとその極性反転波
形の両方について相互相関関数を算出しているので、逆
位相になっている場合でも問題なく自動的にタイミング
合わせができる。Here, the reason for calculating the discrete cross-correlation function with the reference waveform B for the polarity inverted waveform C of the target waveform A will be described. The polarity of the target waveform A and the reference waveform B may be reversed (opposite phase) due to the output characteristics of the microphone, the setting of the cable connection when recording the target waveform A and the reference waveform B, and the connection characteristics of the connector. is there. Therefore, as described above, since the cross-correlation function is calculated for both the target waveform A and its polarity-inverted waveform, the timing can be automatically adjusted without any problem even when the phases are opposite.
【0036】次のS48においては、S47において、
相互相関関数の最大値が大きい方が相互相関関数値RCB
の方であったときには、対象波形Aの極性を反転させた
極性判定波形Cを対象波形Aと置き換え、改めて対象波
形Aとする。次のS49においては、S47において決
定された移動量Δtにしたがい、対象波形Aの開始アド
レスを仮の先頭位置からシフトさせる。対象波形Aと参
照波形Bとの相対時間差に意味があるので、相対時間差
をΔtに保ったまま、対象波形Aおよびまたは参照波形
Bの開始アドレスをシフトさせてもよい。In the next S48, in S47,
The larger the maximum value of the cross-correlation function is the cross-correlation function value R CB
, The polarity determination waveform C obtained by inverting the polarity of the target waveform A is replaced with the target waveform A, and is set as the target waveform A again. In the next S49, the start address of the target waveform A is shifted from the tentative head position in accordance with the movement amount Δt determined in S47. Since the relative time difference between the target waveform A and the reference waveform B is significant, the start address of the target waveform A and / or the reference waveform B may be shifted while keeping the relative time difference at Δt.
【0037】図10は、対象波形Aの開始アドレスを時
間差Δtだけずらせてタイミング合わせをした後の対象
波形Aと参照波形Bとの比較図である。上段がタイミン
グ合わせ後の対象波形A、下段が参照波形Bの波形図で
ある。横軸はサンプル数で表した時間、縦軸は振幅であ
る。この具体例では、対象波形Aの開始アドレス(切り
出し位置)のシフトによって、対象波形Aは、波形の先
頭位置から波形の終了位置までの全データをシフトさせ
る。シフトさせた対象波形Aと参照波形Bとは、アタッ
ク部の比較範囲において相関性が最も高いものとなる。
対象波形Aおよび参照波形Bのタイミング合わせをした
後に、両波形をそれぞれの開始アドレス(切り出し位
置)から読み出せば、両波形は、アタック部内の比較範
囲において、最も相関性の高いタイミングで同時再生さ
れることになる。なお、対象波形Aの開始アドレスを移
動させない場合には、上述した時間差Δtを記憶してお
き、両波形を読み出す際に、時間差Δtに応じて両波形
の読み出し開始タイミングをずらせればよい。FIG. 10 is a comparison diagram of the target waveform A and the reference waveform B after the start address of the target waveform A is shifted by the time difference Δt and the timing is adjusted. The upper part is a waveform diagram of the target waveform A after the timing adjustment, and the lower part is a waveform diagram of the reference waveform B. The horizontal axis represents time represented by the number of samples, and the vertical axis represents amplitude. In this specific example, by shifting the start address (cutout position) of the target waveform A, the target waveform A shifts all data from the start position of the waveform to the end position of the waveform. The shifted target waveform A and reference waveform B have the highest correlation in the comparison range of the attack portion.
If both waveforms are read from their respective start addresses (cutout positions) after the timing of the target waveform A and the reference waveform B are adjusted, both waveforms are reproduced simultaneously at the timing with the highest correlation in the comparison range in the attack section. Will be done. If the start address of the target waveform A is not moved, the above-mentioned time difference Δt is stored, and when both waveforms are read, the read start timing of both waveforms may be shifted according to the time difference Δt.
【0038】上述した具体例では、FFT処理によっ
て、対象波形Aおよび参照波形Bの相互相関関数を算出
しているが、相互相関関数を、実時間軸上で波形振幅を
乗算して相互相関関数の本来の定義通りに算出してもよ
い。上述した説明では、相互相関関数の値にもとづい
て、対象波形Aおよび参照波形Bの相関性が高くなるよ
うに開始タイミングをずらせた。これに代えて、他の方
法で、対象波形Aおよび参照波形Bの相関度を算出して
もよい。例えば、参照波形Bに対して、対象波形Aを時
間軸上でずらしていったときに、両波形の振幅の差の絶
対値の、比較期間における総和が最小となるときの時間
差を検出する。また、両波形の振幅差の自乗の値の、比
較期間における総和が最小となるときの時間差を検出す
ることもできる。これらの例は、総和が最小となるとき
に相関度が最も高くなる。In the specific example described above, the cross-correlation function of the target waveform A and the reference waveform B is calculated by the FFT processing, but the cross-correlation function is multiplied by the waveform amplitude on the real time axis. May be calculated as originally defined. In the above description, the start timing has been shifted based on the value of the cross-correlation function so that the correlation between the target waveform A and the reference waveform B is high. Instead, the correlation between the target waveform A and the reference waveform B may be calculated by another method. For example, when the target waveform A is shifted on the time axis with respect to the reference waveform B, a time difference when the sum of the absolute values of the amplitude differences between the two waveforms in the comparison period becomes minimum is detected. Further, it is also possible to detect a time difference when the sum of the squares of the amplitude difference between the two waveforms in the comparison period becomes minimum. In these examples, the correlation degree is highest when the sum is minimum.
【0039】この実施の形態では、相関性が高くなるよ
うにタイミング合わせする部分を波形のアタック部に設
定した。しかし、タイミング合わせする部分は、波形編
集の目的に応じて、楽音波形の持続部、立ち下がり部、
アタック部を含めたこれらの相互の過渡的な接続部等に
設定することもできる。いずれの場合も、両波形が大体
において相関性が高いと推定される比較範囲を設定して
から、相関度の算出を行うことにより、タイミング合わ
せの正確性が高まる。In this embodiment, a portion where timing is adjusted so as to increase the correlation is set in the attack portion of the waveform. However, depending on the purpose of waveform editing, the part that adjusts the timing is the continuation part, falling part,
It is also possible to set these mutually transient connection parts including the attack part. In any case, by setting a comparison range in which both waveforms are estimated to have generally high correlation, and then calculating the degree of correlation, the accuracy of timing adjustment is improved.
【0040】上述した説明では、対象波形および参照波
形を楽音波形の立ち上がりから立下りまでの全期間とし
た。しかし、波形編集の目的に応じて、楽音波形の一部
の期間、例えば、アタック部の波形部分を対象波形Aお
よび参照波形Bとして、この波形部分でのみ、タイミン
グ合わせをすることもできる。なお、波形を記憶する際
に、波形の立ち上がり前に無音期間を記憶しておきたい
場合がある。このような場合には、無音期間の時間長を
時間単位で設定できるようにして、参照波形Bと対象波
形Aとをタイミング合わせした後に、両波形の先頭部分
に無音期間を加えればよい。あるいは、タイミング合わ
せの前に、参照波形Bの先頭部分に加えてから対象波形
Aとタイミング合わせをすることも可能である。In the above description, the target waveform and the reference waveform are the entire period from the rise to the fall of the musical tone waveform. However, according to the purpose of the waveform editing, the timing can be adjusted only for a part of the musical tone waveform, for example, the waveform portion of the attack portion as the target waveform A and the reference waveform B. When storing a waveform, there is a case where it is desired to store a silent period before the rising of the waveform. In such a case, the time length of the silence period can be set in units of time, and after the timing of the reference waveform B and the target waveform A is adjusted, a silence period may be added to the leading portions of both waveforms. Alternatively, before the timing adjustment, it is also possible to add the timing to the target waveform A after adding to the head portion of the reference waveform B.
【0041】上述した説明では、2波形の相関性を高く
するように2波形のタイミング合わせを行った。3以上
の波形について相関性を高くするようにタイミング合わ
せをするには、1つを参照波形Bと決め、この参照波形
Bと他の対象波形Aとを2つずつ比較することにより、
参照波形Bを基準に、他の対象波形Aのタイミングを合
わせればよい。また、上述した説明では、モノラル波形
として説明した。ステレオ波形の場合には、対象波形A
と参照波形Bとを、左右の一方のチャンネルに関して対
象波形Aと参照波形Bとの相関度を計算し、相関度が最
も高くなる時間差を検出し、対象波形Aの左右それぞれ
のチャンネルを、その時間差だけ、共にシフトさせれば
よい。In the above description, the timing of the two waveforms is adjusted so as to increase the correlation between the two waveforms. In order to adjust the timing so as to increase the correlation for three or more waveforms, one is determined as a reference waveform B, and this reference waveform B is compared with the other target waveforms A by two.
The timing of the other target waveform A may be adjusted based on the reference waveform B. In the above description, a monaural waveform has been described. In the case of a stereo waveform, the target waveform A
And the reference waveform B, calculating the degree of correlation between the target waveform A and the reference waveform B with respect to one of the left and right channels, detecting the time difference at which the degree of correlation is the highest, and dividing the left and right channels of the target waveform A into the respective channels. It is only necessary to shift together by the time difference.
【0042】次に、上述した対象波形Aおよび参照波形
Bのタイミング合わせの第1の応用例を説明する。図1
1は、タッチコントロール用の音源波形の作成の第1の
例を示すフローチャートである。この第1の応用例で
は、アタック部に着目して対象波形Aと参照波形Bのタ
イミング合わせを行った上で、対象波形Aのフーリエ成
分(非倍音を含む周波数成分)の各位相(位相角)を、
参照波形Bの同じ周波数のフーリエ成分の位相(位相
角)に合わせることにより、合成波形Aを作成するもの
である。そして、楽音波形の全期間において、合成波形
A,参照波形Bを混合して音源波形とするものである。Next, a first application example of the above-described timing adjustment of the target waveform A and the reference waveform B will be described. FIG.
FIG. 1 is a flowchart illustrating a first example of generating a sound source waveform for touch control. In the first application example, the timing of the target waveform A and the reference waveform B is adjusted by focusing on the attack portion, and then the phases (phase angles) of the Fourier components (frequency components including non-overtones) of the target waveform A are adjusted. ),
The composite waveform A is created by matching the phase (phase angle) of the Fourier component of the same frequency of the reference waveform B. Then, the combined waveform A and the reference waveform B are mixed to form a sound source waveform in the entire period of the musical tone waveform.
【0043】図11のS51において、対象波形A,参
照波形Bの比較範囲を設定し、S52に処理を進める。
この比較範囲がアタック部であるときは、図3に示した
処理を実行する。次にS52において、対象波形A,参
照波形Bのタイミングを、比較範囲において、両波形の
相関性が高くなるように合わせるために、図4に示した
処理を実行する。次のS53において、対象波形Aをそ
の波形の全期間において、FFT処理して得られたフー
リエ成分Aを検出する。主要なフーリエ成分について、
対応する複数の周波数の正弦波を加算(正弦波加算合
成)することにより、波形を合成する。この合成波形を
対象波形Aから減算し、その残差成分Aを検出する。S
52において、FFTを用いて相互相関関数を算出する
場合には、このS52のステップで、波形の全期間にお
いてフーリエ成分Aを算出しておき、これを使用しても
よい。In S51 of FIG. 11, the comparison range of the target waveform A and the reference waveform B is set, and the process proceeds to S52.
When the comparison range is the attack portion, the processing shown in FIG. 3 is executed. Next, in S52, the processing shown in FIG. 4 is executed in order to match the timings of the target waveform A and the reference waveform B so that the correlation between the two waveforms is high in the comparison range. In the next step S53, a Fourier component A obtained by subjecting the target waveform A to FFT processing over the entire period of the waveform is detected. For the main Fourier components,
Waveforms are synthesized by adding (sine wave addition synthesis) corresponding sine waves of a plurality of frequencies. This composite waveform is subtracted from the target waveform A, and the residual component A is detected. S
In the case where the cross-correlation function is calculated using the FFT in 52, the Fourier component A may be calculated in the entire period of the waveform in step S52, and this may be used.
【0044】次のS54においては、S53と同様に、
参照波形Bをその波形の全期間において、FFT処理し
て得られたフーリエ成分B、および、このフーリエ成分
Bから合成された波形を参照波形Bから減算し、その残
差成分Bを検出する。S52のステップにおいて、FF
Tを用いて相互相関関数を算出する場合には、このS5
2のステップにおいて、波形の全期間におけるフーリエ
成分Bを算出しておき、これを使用してもよい。次に、
S55において、フーリエ成分Aの各周波数の位相を同
じ周波数のフーリエ成分Bの位相で置換することによ
り、フーリエ成分A’を作成する。次に、S56におい
て、フーリエ成分A’および残差成分Aから合成波形A
を合成する。この合成波形Aは、対象波形Aとは異なる
ものとなる。参照波形Bはそのまま使用する。In the next S54, as in S53,
For the entire period of the reference waveform B, the Fourier component B obtained by performing the FFT processing and the waveform synthesized from the Fourier component B are subtracted from the reference waveform B, and the residual component B is detected. In the step of S52, FF
When calculating the cross-correlation function using T, this S5
In the second step, the Fourier component B for the entire period of the waveform may be calculated and used. next,
In S55, a Fourier component A 'is created by replacing the phase of each frequency of the Fourier component A with the phase of the Fourier component B of the same frequency. Next, in S56, a composite waveform A is obtained from the Fourier component A ′ and the residual component A.
Are synthesized. This composite waveform A is different from the target waveform A. The reference waveform B is used as it is.
【0045】合成波形Aおよび参照波形Bをキータッチ
に応じて混合して音源波形とする。ノートオン(発音指
示信号)に応じて、波形メモリに記憶された合成波形
A,参照波形Bの再生を同時にスタートさせる。その
際、ノートオン情報に含まれるベロシティ(キータッチ
データ)の値に応じ、合成波形A,参照波形Bの混合率
(重み係数)を制御する。ピアノ音色の場合、対象波形
Aとしてフォルテッシモ(ff)で弾かれたものを用
い、参照波形Bとしてメゾフォルテ(mf)で弾かれた
ものを用いるとよい。The composite waveform A and the reference waveform B are mixed according to a key touch to form a sound source waveform. The reproduction of the composite waveform A and the reference waveform B stored in the waveform memory is simultaneously started according to the note-on (sound generation instruction signal). At this time, the mixing ratio (weight coefficient) of the composite waveform A and the reference waveform B is controlled according to the value of the velocity (key touch data) included in the note-on information. In the case of a piano tone, it is preferable to use a target waveform A that is played with fortessimo (ff) and a reference waveform B that is played with mesoforte (mf).
【0046】上述した合成波形Aを用いれば、目的とす
るアタック部において合成波形A,参照波形Bの相関性
が高くなるように、タイミングが合わされるから、合成
波形A,参照波形Bを混合したときに、ノイズが発生し
たり波形が歪んだりすることが少ない。加えて、合成波
形Aの位相スペクトルを参照波形Bの位相スペクトルに
揃えているので、混合により特定のスペクトルの消失や
減衰の可能性が少なくなる。その結果、ベロシティによ
る音色の変化に違和感が少なくなる。When the synthesized waveform A is used, the timing is adjusted so that the correlation between the synthesized waveform A and the reference waveform B becomes high in the target attack portion. Occasionally, noise or distortion of the waveform is rare. In addition, since the phase spectrum of the composite waveform A is aligned with the phase spectrum of the reference waveform B, the possibility of disappearance or attenuation of a specific spectrum due to mixing is reduced. As a result, the timbre change due to the velocity is less uncomfortable.
【0047】上述した説明では、メゾフォルテ(mf)
として弾かれた参照波形Bの位相スペクトルに一致する
ように、他方の合成波形Aの位相スペクトルを置き換え
ている。しかし、フォルテッシモ(ff)として弾かれ
た対象波形Aの位相スペクトルに一致するように、他方
の参照波形Bの位相スペクトルを置き換えることも可能
である。ただし、通常の演奏では、メゾフォルテ(m
f)として弾かれる参照波形Bの混合率の方が大きくな
るから、参照波形Bの方をそのまま使用する方が違和感
が少ない。In the above description, the mesoforte (mf)
Thus, the phase spectrum of the other synthesized waveform A is replaced so as to match the phase spectrum of the reference waveform B flipped. However, it is also possible to replace the phase spectrum of the other reference waveform B so as to match the phase spectrum of the target waveform A played as fortissimo (ff). However, in a normal performance, mesoforte (m
Since the mixing ratio of the reference waveform B played as f) becomes larger, the use of the reference waveform B as it is is less uncomfortable.
【0048】上述した第1の応用例は、キータッチのベ
ロシティに応じて、混合率を制御するものであった。こ
れに代えて、ノートオン(発音指示信号)に応じて、合
成波形A,参照波形Bのいずれか一方を選択的に再生し
てもよい。どちらの波形を選択するかは、上述したベロ
シティに応じて決定される。つまり、ベロシティが所定
値より大きいときは合成波形A、小さいときは参照波形
Bを選択する。合成波形A,参照波形Bの相関性が高く
なるように合成波形A,参照波形Bのタイミングを揃え
ているため、違和感の少ない波形切換ができる。In the first application example described above, the mixing ratio is controlled according to the velocity of the key touch. Instead of this, one of the composite waveform A and the reference waveform B may be selectively reproduced according to the note-on (sound generation instruction signal). Which waveform is selected depends on the above-mentioned velocity. That is, when the velocity is larger than the predetermined value, the synthesized waveform A is selected, and when the velocity is smaller, the reference waveform B is selected. Since the timings of the composite waveform A and the reference waveform B are aligned so that the correlation between the composite waveform A and the reference waveform B is high, the waveform can be switched with less discomfort.
【0049】上述した説明では、強タッチ(ff)と中
タッチ(mf)の2段階の波形を用意したが、3段階以
上のタッチで弾き分けられた3以上の波形データを混合
して音源波形を作成してもよい。ノートオン情報に含ま
れるベロシティに応じて、3以上の波形データの混合率
を変更したり、3以上の波形データの1つを選択するこ
とができる。In the above description, two-stage waveforms of strong touch (ff) and middle touch (mf) are prepared, but three or more waveform data separated by three or more touches are mixed to generate a sound source waveform. May be created. According to the velocity included in the note-on information, the mixing ratio of three or more waveform data can be changed or one of the three or more waveform data can be selected.
【0050】次に、上述した対象波形Aおよび参照波形
Bのタイミング合わせの第2の応用例を説明する。図1
2は、タッチコントロール用音源波形の作成の第2の例
を示すフローチャートである。この例では、アタック部
から持続部の導入部分まで、対象波形Aの部分波形A,
参照波形Bの部分波形Bをベロシティの値に応じて混合
して用いる。そして、持続部では、部分波形Dを用い、
持続部の導入部分では、部分波形Aおよび部分波形Bの
混合波形と部分波形Dとをクロスフェードして用いる。Next, a second applied example of the timing adjustment of the target waveform A and the reference waveform B will be described. FIG.
2 is a flowchart illustrating a second example of creating a touch control sound source waveform. In this example, from the attack part to the introduction part of the sustain part, the partial waveforms A,
The partial waveform B of the reference waveform B is mixed and used according to the velocity value. Then, in the sustain part, using the partial waveform D,
In the introduction part of the continuation part, the mixed waveform of the partial waveforms A and B and the partial waveform D are used by cross-fading.
【0051】図12のS61において、対象波形Aから
「アタック部〜持続部の導入部分」の部分波形Aを作成
し、次のS62において、参照波形Bから「アタック部
〜持続部の導入部分」の部分波形Bを作成する。通常
は、対象波形A,参照波形Bの各「アタック部〜持続部
の導入部分」を、そのまま切り出せばよいが、波形を加
工してもよい。次に、S63において、対象波形Aおよ
びまたは参照波形Bから、「持続部〜リリース部」の部
分波形Dを作成する。通常は、参照波形Bの「持続部〜
リリース部」を用いればよい。持続部のサステイン部分
をループ波形として繰り返し再生する場合には、ループ
波形のつなぎ目の前後の部分において周波数スペクトル
上で急激な変化がないように波形処理をするとよい。In S61 of FIG. 12, a partial waveform A of the "introduction portion of the attack portion to the sustain portion" is created from the target waveform A, and in the next S62, the "introduction portion of the attack portion to the sustain portion" is formed from the reference waveform B. Is created. Normally, the “introduction portion of the attack portion to the sustain portion” of the target waveform A and the reference waveform B may be cut out as it is, but the waveform may be processed. Next, in S63, a partial waveform D of "continuation portion to release portion" is created from the target waveform A and / or the reference waveform B. Normally, the reference waveform B “
Release section ”may be used. When the sustain portion of the sustain portion is repeatedly reproduced as a loop waveform, it is preferable to perform the waveform processing so that there is no rapid change in the frequency spectrum in the portion before and after the joint of the loop waveform.
【0052】次のS64において、図3のフローに示さ
れたように、部分波形Aのアタック部と部分波形Bのア
タック部との比較範囲を設定する。次のS65におい
て、図4のフローに示されたように、部分波形Aと部分
波形Bのタイミングを合わせる。なお、図11の例と同
様に、位相スペクトルを置き換えた部分合成波形Aを作
成してもよい。次のS66において、部分波形Aおよび
部分波形Bの混合波形(適当な混合率にする)と部分波
形Dとの比較範囲を設定する。比較範囲は、混合波形と
部分波形Dのそれぞれについて、例えば、音量エンベロ
ープが最大値になってから、この最大値の所定比率にな
る基準位置までの期間とする。混合波形の比較範囲およ
び部分波形Dの比較範囲の時間長が異なる場合には、例
えば、短い方の時間長に合わせて比較範囲の開始点側を
ずらせる。In the next step S64, as shown in the flowchart of FIG. 3, a comparison range between the attack portion of the partial waveform A and the attack portion of the partial waveform B is set. In the next S65, the timings of the partial waveform A and the partial waveform B are matched as shown in the flow of FIG. Note that, similarly to the example of FIG. 11, a partially synthesized waveform A in which the phase spectrum is replaced may be created. In the next step S66, a comparison range between the mixed waveform of the partial waveform A and the partial waveform B (an appropriate mixing ratio) and the partial waveform D is set. The comparison range is, for example, a period from the time when the volume envelope reaches the maximum value to the reference position at which a predetermined ratio of the maximum value is reached for each of the mixed waveform and the partial waveform D. When the time lengths of the comparison range of the mixed waveform and the comparison range of the partial waveform D are different, for example, the start point side of the comparison range is shifted in accordance with the shorter time length.
【0053】次のS67においては、混合波形と部分波
形Dのタイミング合わせを行う。図4を参照して説明し
たタイミング合わせは、アタック部に関するものであっ
たが、これと同様な方法で相互相関関数を算出し、S6
6において設定された比較範囲において、混合波形と部
分波形Dとの相関性が高くなるように、部分波形Dをず
らせる。In the next S67, the timing of the mixed waveform and the partial waveform D is adjusted. Although the timing adjustment described with reference to FIG. 4 relates to the attack part, the cross-correlation function is calculated by the same method as this, and
In the comparison range set in 6, the partial waveform D is shifted so that the correlation between the mixed waveform and the partial waveform D becomes high.
【0054】波形再生は次のようにして行う。ノートオ
ンに応じて、「アタック部〜持続部の導入部分」の部分
波形A,Bの再生を同時スタートさせる。その際、ノー
トオン情報に含まれるベロシティの値に応じて、部分波
形Aと部分波形Bの混合率を制御する。部分波形A,B
のアタック部終了時に「持続部〜リリース部」の部分波
形Dの再生をスタートさせる。部分波形Aおよび部分波
形Bの混合波形から部分波形Dへは、持続部の導入部に
おいてクロスフェードされる。このクロスフェード用の
音量変化は、波形メモリに記憶する部分波形A,B,D
に最初から付けておく。あるいは、タイミング合わせさ
れた部分波形A,B,Dをメモリに記憶しておいて、再
生時のクロスフェード期間において、クロスフェード用
の重み付け係数を用いて、各部分波形の音量エンベロー
プを制御してもよい。The waveform reproduction is performed as follows. In response to the note-on, the reproduction of the partial waveforms A and B of "the attack part to the introduction part of the sustain part" is started simultaneously. At this time, the mixing ratio of the partial waveform A and the partial waveform B is controlled according to the velocity value included in the note-on information. Partial waveforms A and B
At the end of the attack section, the reproduction of the partial waveform D of "continuation section to release section" is started. From the mixed waveform of the partial waveform A and the partial waveform B to the partial waveform D, it is cross-faded at the introduction part of the sustain part. The change in the volume for the crossfade is based on the partial waveforms A, B, and D stored in the waveform memory.
From the beginning. Alternatively, the synchronized partial waveforms A, B, and D are stored in a memory, and the volume envelope of each partial waveform is controlled using a weighting coefficient for crossfading during a crossfade period during reproduction. Is also good.
【0055】先に説明したように、「アタック部〜持続
部の導入部」については、部分波形Aと部分波形Bの混
合率が制御された波形とする。「持続部〜リリース部」
の部分波形Dとは、持続部の導入部分において、部分波
形A,Bの混合波形と部分波形Dとがクロスフェード的
に接続される。その際、部分波形A,Bの混合波形およ
び部分波形Dのタイミングが、相関度が最も高くなるよ
うに揃えられるため、混合によってノイズが発生したり
波形が歪んだりすることが少ない。As described above, the “introduction portion from the attack portion to the sustain portion” is a waveform in which the mixing ratio of the partial waveform A and the partial waveform B is controlled. "Continuation department-release department"
In the partial waveform D, the mixed waveform of the partial waveforms A and B and the partial waveform D are connected in a cross-fade manner in the introduction portion of the sustaining portion. At this time, since the timing of the mixed waveform of the partial waveforms A and B and the timing of the partial waveform D are aligned so that the degree of correlation is the highest, noise or distortion of the waveform due to mixing is less likely.
【0056】なお、上述した説明では、第1の応用例に
おいて、波形のアタック部(立ち上がり部)の波形の相
関性が高くなるようにして、対象波形Aと参照波形Bと
のタイミング合わせを行った。また、第2の応用例にお
いては、加えて、音量エンベロープが最大となった後の
持続部の導入部分において波形の相関が高くなるように
部分波形A,Bの混合波形と部分波形Dのタイミングを
合わせた。しかし、部分波形を使用する目的によって
は、上述した波形部分に限らず、波形がほぼ平坦になっ
たところの持続部あるいは波形のリリース部において、
相関性が高くなるようにタイミング合わせをしてもよ
い。リリース部でタイミング合わせする場合に、相関性
の算出を行う比較範囲を設定するには、両波形の音量エ
ンベロープにおいて、最後に減衰速度が加速した時点を
検出し、その近傍ないし前後に所定の比較範囲を設定す
ればよい。In the above description, in the first applied example, the timing of the target waveform A and the reference waveform B are adjusted so that the correlation between the waveforms in the attack portion (rising portion) of the waveform is increased. Was. In addition, in the second application example, in addition, the timing of the mixed waveform of the partial waveforms A and B and the timing of the partial waveform D is increased so that the correlation between the waveforms becomes high in the introduction portion of the sustain portion after the volume envelope becomes maximum. Was combined. However, depending on the purpose of using the partial waveform, the waveform is not limited to the above-described waveform portion, but may be a sustained portion where the waveform is substantially flat or a release portion of the waveform.
The timing may be adjusted so as to increase the correlation. To set the comparison range for calculating the correlation when timing is adjusted in the release section, the last time the decay rate accelerated is detected in the volume envelope of both waveforms, and a predetermined comparison What is necessary is just to set a range.
【0057】また、上述した説明では、音量エンベロー
プに注目して、相関性の高い、おおよその比較範囲を設
定していた。それに加えて、ないし、その代わりに、ピ
ッチエンベロープ(基音の周波数の時間的変化)やスペ
クトルエンベロープ(特定の条件を満たす周波数成分の
各レベルの総和とった値の時間的変化)を比較範囲の設
定の根拠としてもよい。例えば、ピッチが1発音期間中
に過渡的に変化するスラー波形,グライド波形,ビブラ
ート波形等のタイミングを、対象波形Aと参照波形Bと
の間で揃えようとする場合には、ピッチエンベロープに
基づいて比較範囲を設定するのが好適である。また、ア
タック部は非調和成分が多く、アタック部が終了すると
非調和成分が減衰することから、非調和成分のスペクト
ルエンベロープに基づいて、アタック部の比較範囲を設
定することができる。In the above description, an approximate comparison range having a high correlation is set by paying attention to the volume envelope. In addition, or in lieu of that, the pitch envelope (the temporal change of the fundamental frequency) and the spectral envelope (the temporal change of the sum of the levels of the frequency components satisfying the specific conditions) are set for the comparison range. May be the basis for For example, when the timing of a slur waveform, a glide waveform, a vibrato waveform, etc., whose pitch changes transiently during one tone generation period, is to be aligned between the target waveform A and the reference waveform B, the timing is based on the pitch envelope. It is preferable to set the comparison range by using the following. Further, since the attack portion has many anharmonic components and the anharmonic component is attenuated when the attack portion ends, the comparison range of the attack portion can be set based on the spectrum envelope of the anharmonic component.
【0058】[0058]
【発明の効果】本発明は、上述した説明から明らかなよ
うに、2波形の相関性が高くなるようなタイミング合わ
せを自動的に行なえるという効果がある。あらかじめ、
波形パラメータのエンベロープを基準に、比較範囲を適
切に設定できるため、相関度の算出において、タイミン
グ合わせを有効に行えるという効果がある。また、入力
された対象波形Aと参照波形Bとが極性反転した関係に
あったとしても、自動的に極性反転を検出してタイミン
グ合わせができるという効果がある。As apparent from the above description, the present invention has an effect that the timing can be automatically adjusted so that the correlation between the two waveforms is increased. in advance,
Since the comparison range can be appropriately set based on the envelope of the waveform parameter, there is an effect that the timing can be effectively adjusted in the calculation of the degree of correlation. Further, even if the input target waveform A and the reference waveform B are in a relationship where the polarity is inverted, there is an effect that the polarity can be automatically detected and the timing can be adjusted.
【図1】 本発明の波形編集方法を実行する波形編集装
置のブロック図である。FIG. 1 is a block diagram of a waveform editing apparatus that executes a waveform editing method according to the present invention.
【図2】 図1に示した波形編集装置を用いて波形を分
析し、人が演奏をするまでの処理の概要を示したフロー
チャートである。FIG. 2 is a flowchart showing an outline of a process of analyzing a waveform by using the waveform editing apparatus shown in FIG. 1 and performing a performance by a person;
【図3】 本発明の波形編集方法の実施の形態の動作を
説明するための第1のフローチャートである。FIG. 3 is a first flowchart for explaining the operation of the embodiment of the waveform editing method of the present invention.
【図4】 本発明の波形編集方法の実施の一形態の動作
を説明するための第2のフローチャートである。FIG. 4 is a second flowchart for explaining the operation of the waveform editing method according to the embodiment of the present invention;
【図5】 対象波形Aおよび参照波形Bの波形図であ
る。FIG. 5 is a waveform diagram of a target waveform A and a reference waveform B.
【図6】 対象波形Aおよび参照波形Bの音量エンベロ
ープを示す波形図である。FIG. 6 is a waveform diagram showing a volume envelope of a target waveform A and a reference waveform B;
【図7】 対象波形Aおよび参照波形Bの拡大波形図で
ある。FIG. 7 is an enlarged waveform diagram of a target waveform A and a reference waveform B.
【図8】 対象波形Aと参照波形Bとの相互相関関数R
ABを示す線図である。FIG. 8 is a cross-correlation function R between a target waveform A and a reference waveform B;
It is a diagram showing AB .
【図9】 対象波形Aを極性反転させた極性反転波形C
と参照波形Bとの相互相関関数RCBを示す線図である。FIG. 9 shows a polarity inverted waveform C obtained by inverting the polarity of the target waveform A.
FIG. 7 is a diagram showing a cross-correlation function R CB between a reference waveform B and a reference waveform B;
【図10】 対象波形Aの開始アドレスを時間差Δtだ
けずらせてタイミング合わせをした後の対象波形Aと参
照波形Bとの比較図である。FIG. 10 is a comparison diagram of the target waveform A and the reference waveform B after the start address of the target waveform A is shifted by the time difference Δt and the timing is adjusted.
【図11】 タッチコントロール用の音源波形の作成の
第1の例を示すフローチャートである。FIG. 11 is a flowchart illustrating a first example of creating a sound source waveform for touch control.
【図12】 タッチコントロール用音源波形の作成の第
2の例を示すフローチャートである。FIG. 12 is a flowchart illustrating a second example of generating a touch control sound source waveform.
1 CPU、2 ROM、3 RAM、4 タイマ、5
パネルスイッチ、6パネル表示器、7 MIDIイン
ターフェース、8 駆動装置、10 波形メモリ、11
アクセス管理部、12 外部波形入力端子、13 書
込回路、14バッファ、15 音源部、16 サウンド
システム、17 バスライン1 CPU, 2 ROM, 3 RAM, 4 timer, 5
Panel switch, 6 panel display, 7 MIDI interface, 8 driving device, 10 waveform memory, 11
Access management unit, 12 external waveform input terminal, 13 writing circuit, 14 buffer, 15 sound source unit, 16 sound system, 17 bus line
Claims (2)
るように、前記対象波形と前記参照波形とのタイミング
を合わせる波形編集方法であって、 前記対象波形および前記参照波形について、ある1つの
波形パラメータのエンベロープを検出するステップと、 前記対象波形および前記参照波形の前記エンベロープを
基準に、前記対象波形および前記参照波形に比較範囲を
設定するステップと、 前記比較範囲において、前記対象波形と前記参照波形と
の相関度を算出し、前記相関度を最大とするときの前記
対象波形と前記参照波形との時間差を算出するステッ
プ、 前記対象波形を前記参照波形に対し前記時間差だけ相対
的にシフトさせる処理をするステップ、 を有することを特徴とする波形編集方法。1. A waveform editing method for adjusting the timing of the target waveform and the reference waveform so that the correlation between the target waveform and the reference waveform is high, wherein: Detecting an envelope of two waveform parameters; setting a comparison range for the target waveform and the reference waveform based on the envelopes of the target waveform and the reference waveform; and Calculating the degree of correlation with the reference waveform, calculating the time difference between the target waveform and the reference waveform when the degree of correlation is maximized, relative to the target waveform by the time difference with respect to the reference waveform Performing a shifting process.
ように、前記対象波形と前記参照波形とのタイミングを
合わせる波形編集方法であって、 前記対象波形および前記参照波形について、ある1つの
波形パラメータのエンベロープを検出するステップと、 前記対象波形および前記参照波形の前記エンベロープを
基準に、前記対象波形および前記参照波形に比較範囲を
設定するステップと、 前記比較範囲において、前記対象波形と前記参照波形、
および、前記対象波形を極性反転させた極性反転波形と
前記参照波形、について相関度を算出し、前記相関度を
最大とするときの、前記対象波形または前記極性反転波
形と前記参照波形との時間差を算出するステップと、 前記対象波形と前記参照波形との前記相関度の方が前記
相関度を最大とするときには、前記対象波形を前記参照
波形に対して前記時間差だけ相対的にシフトさせるとと
もに、前記極性反転波形と前記参照波形との相関度の方
が前記相関度を最大とするときには、前記対象波形を前
記極性反転波形に置き換えるとともに、前記参照波形に
対し前記時間差だけ相対的にシフトさせる処理をするス
テップ、を有することを特徴とする波形編集方法。2. A waveform editing method for adjusting the timing of the target waveform and the reference waveform so that the correlation between the target waveform and the reference waveform is high, wherein a certain one of the target waveform and the reference waveform is provided. Detecting an envelope of the waveform parameter; setting a comparison range for the target waveform and the reference waveform based on the envelopes of the target waveform and the reference waveform; and Reference waveform,
And calculating a degree of correlation for the polarity-reversed waveform obtained by inverting the polarity of the target waveform and the reference waveform, and when the correlation is maximized, a time difference between the target waveform or the polarity-reversed waveform and the reference waveform. When calculating the correlation degree between the target waveform and the reference waveform, the correlation degree is maximized, while shifting the target waveform relative to the reference waveform by the time difference, When the degree of correlation between the polarity-reversed waveform and the reference waveform is the largest, the processing of replacing the target waveform with the polarity-reversed waveform and relatively shifting the reference waveform by the time difference. A waveform editing method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP27663599A JP3601373B2 (en) | 1999-09-29 | 1999-09-29 | Waveform editing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP27663599A JP3601373B2 (en) | 1999-09-29 | 1999-09-29 | Waveform editing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2001100756A true JP2001100756A (en) | 2001-04-13 |
| JP3601373B2 JP3601373B2 (en) | 2004-12-15 |
Family
ID=17572203
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP27663599A Expired - Fee Related JP3601373B2 (en) | 1999-09-29 | 1999-09-29 | Waveform editing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3601373B2 (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007295470A (en) * | 2006-04-27 | 2007-11-08 | Fujitsu Ten Ltd | Digital data receiver |
| US7579545B2 (en) | 2001-09-13 | 2009-08-25 | Yamaha Corporation | Apparatus and method for synthesizing a plurality of waveforms in synchronized manner |
| JP2011257512A (en) * | 2010-06-08 | 2011-12-22 | Dainippon Printing Co Ltd | Method for creating differential code data and apparatus creating the same |
| JP2012093094A (en) * | 2010-10-22 | 2012-05-17 | Chugoku Electric Power Co Inc:The | Apparatus, system, method and program for supporting acoustic diagnosis |
| US8208648B2 (en) | 2007-03-09 | 2012-06-26 | Pioneer Corporation | Sound field reproducing device and sound field reproducing method |
| JP2017049067A (en) * | 2015-08-31 | 2017-03-09 | 株式会社小野測器 | Device state determination device, device state determination method, and knock determination device |
| JP2019133456A (en) * | 2018-01-31 | 2019-08-08 | オムロン株式会社 | Control unit and control method |
| CN112741598A (en) * | 2019-10-30 | 2021-05-04 | 株式会社理光 | Waveform generation recognition method and computer readable medium |
| EP4047595A1 (en) | 2021-02-23 | 2022-08-24 | e-instruments lab GmbH | Method for generating a group of phase-coherent samples for a virtual instrument |
-
1999
- 1999-09-29 JP JP27663599A patent/JP3601373B2/en not_active Expired - Fee Related
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7579545B2 (en) | 2001-09-13 | 2009-08-25 | Yamaha Corporation | Apparatus and method for synthesizing a plurality of waveforms in synchronized manner |
| JP2007295470A (en) * | 2006-04-27 | 2007-11-08 | Fujitsu Ten Ltd | Digital data receiver |
| US8208648B2 (en) | 2007-03-09 | 2012-06-26 | Pioneer Corporation | Sound field reproducing device and sound field reproducing method |
| JP2011257512A (en) * | 2010-06-08 | 2011-12-22 | Dainippon Printing Co Ltd | Method for creating differential code data and apparatus creating the same |
| JP2012093094A (en) * | 2010-10-22 | 2012-05-17 | Chugoku Electric Power Co Inc:The | Apparatus, system, method and program for supporting acoustic diagnosis |
| JP2017049067A (en) * | 2015-08-31 | 2017-03-09 | 株式会社小野測器 | Device state determination device, device state determination method, and knock determination device |
| JP2019133456A (en) * | 2018-01-31 | 2019-08-08 | オムロン株式会社 | Control unit and control method |
| CN112741598A (en) * | 2019-10-30 | 2021-05-04 | 株式会社理光 | Waveform generation recognition method and computer readable medium |
| EP4047595A1 (en) | 2021-02-23 | 2022-08-24 | e-instruments lab GmbH | Method for generating a group of phase-coherent samples for a virtual instrument |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3601373B2 (en) | 2004-12-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TW502248B (en) | Method of modifying harmonic content of a complex waveform | |
| US7396992B2 (en) | Tone synthesis apparatus and method | |
| KR100256718B1 (en) | Pitch pitch converter | |
| JP2001188544A (en) | Audio waveform reproducing device | |
| Jensen | The timbre model | |
| JP3601373B2 (en) | Waveform editing method | |
| JP7359164B2 (en) | Sound signal synthesis method and neural network training method | |
| JP3775319B2 (en) | Music waveform time stretching apparatus and method | |
| JPH11259066A (en) | Music sound signal separation method, device thereof and program recording medium thereof | |
| JP2004021027A (en) | Method and device for playing sound control | |
| JP3534012B2 (en) | Waveform analysis method | |
| JP3733964B2 (en) | Sound source waveform synthesizer using analysis results | |
| JP3428230B2 (en) | Method and apparatus for forming repetitive waveform of electronic musical instrument | |
| JP4168391B2 (en) | Karaoke apparatus, voice processing method and program | |
| JP3062392B2 (en) | Waveform forming device and electronic musical instrument using the output waveform | |
| JP3752855B2 (en) | Waveform data creation method | |
| JP3744315B2 (en) | Waveform analysis method and waveform analysis apparatus | |
| JP3095018B2 (en) | Music generator | |
| JP3885803B2 (en) | Performance data conversion processing apparatus and performance data conversion processing program | |
| US6235980B1 (en) | Apparatus and method for generating waveform data for musical tone signal generating apparatus | |
| JP2003255951A (en) | Waveform processing method and apparatus | |
| JP3636056B2 (en) | Waveform data processing method | |
| JP3802293B2 (en) | Musical sound processing apparatus and musical sound processing method | |
| JP2003099039A (en) | Music data editing device and program | |
| JP2734797B2 (en) | Electronic musical instrument |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040330 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040507 |
|
| 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: 20040831 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20040913 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313532 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071001 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081001 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091001 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101001 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101001 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111001 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111001 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121001 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121001 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131001 Year of fee payment: 9 |
|
| LAPS | Cancellation because of no payment of annual fees |