JP2010217476A - Waveform data generating method - Google Patents

Waveform data generating method Download PDF

Info

Publication number
JP2010217476A
JP2010217476A JP2009063948A JP2009063948A JP2010217476A JP 2010217476 A JP2010217476 A JP 2010217476A JP 2009063948 A JP2009063948 A JP 2009063948A JP 2009063948 A JP2009063948 A JP 2009063948A JP 2010217476 A JP2010217476 A JP 2010217476A
Authority
JP
Japan
Prior art keywords
waveform data
waveform
component
decay
sound
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2009063948A
Other languages
Japanese (ja)
Other versions
JP5493408B2 (en
Inventor
Toshifumi Kunimoto
利文 国本
Kiyoshi Hagino
潔 萩野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP2009063948A priority Critical patent/JP5493408B2/en
Publication of JP2010217476A publication Critical patent/JP2010217476A/en
Application granted granted Critical
Publication of JP5493408B2 publication Critical patent/JP5493408B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To separate and obtain low-speed attenuation waveform data and high-speed attenuation waveform data from original waveform data representing waveform of musical instrument sound. <P>SOLUTION: A plurality of peaks corresponding to harmonic components are detected from a spectral distribution obtained by performing Fourier transform of the whole original waveform data collectively, and a plurality of spectrum components corresponding to the plurality of peaks are specified. The plurality of specified spectrum components and spectrum components adjacent thereto from the spectrum components obtained by performing the collective Fourier transform are extracted and subjected to inverse Fourier transform to obtain the low-speed attenuation waveform data. The high-speed attenuation waveform data is obtained by subtracting the low-speed attenuation waveform data from the original waveform data. Also, the low-speed attenuation component waveform data may be obtained by detecting a peak locus with slow attenuation from a plurality of peak loci of the spectrum components over the whole original waveform and using the detected peak locus. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、電子楽器、シーケンサなどに適用される楽音信号発生装置において、楽音信号の発生のために利用する波形データを生成する波形データ生成方法に関する。   The present invention relates to a waveform data generation method for generating waveform data used for generating a musical tone signal in a musical tone signal generating apparatus applied to an electronic musical instrument, a sequencer, and the like.

従来から、例えば下記特許文献1に示すように、減衰系の楽音波形を表す波形データを鍵音高ごとにメモリに記憶しておき、押鍵に応答して、押鍵された鍵に対応した波形データを時間経過に従って読出し、楽音信号を発生する楽音信号発生装置は知られている。そして、この楽音信号発生装置においては、鍵タッチに応じて波形データの読出し位置を異ならせている。すなわち、鍵タッチが強いときには先頭から波形データを読出し、鍵タッチが弱くなるに従ってその読出し位置を後方にずらすことにより、鍵タッチに応じた振幅を有する楽音信号を発生するようにしている。また、この特許文献1には、打楽器音に関しても、その楽音波形を表す波形データをメモリに記憶しておいて、前記と同様に波形データの読出し位置を打撃強度に応じて異ならせることにより、打撃強度に応じた楽音信号を発生することも示されている。   Conventionally, for example, as shown in Patent Document 1 below, waveform data representing a decaying musical tone waveform is stored in a memory for each key pitch, and in response to a key depression, the corresponding key is depressed. 2. Description of the Related Art Music signal generators that read waveform data over time and generate music signals are known. In this musical tone signal generator, the waveform data read position is varied according to the key touch. That is, when the key touch is strong, the waveform data is read from the head, and the reading position is shifted backward as the key touch becomes weak, so that a tone signal having an amplitude corresponding to the key touch is generated. Further, in this Patent Document 1, also for percussion instrument sounds, waveform data representing the musical sound waveform is stored in a memory, and the reading position of the waveform data is made different according to the impact strength in the same manner as described above. It is also shown that a musical sound signal corresponding to the hitting intensity is generated.

特公平3−5758号公報Japanese Patent Publication No. 3-5758

一般的に、種々の音高を有する減衰系の楽器音及び打楽器音においては、演奏音の強弱(鍵タッチ強さ又は打撃強度)が異なると、時間的に変化する楽音波形も微妙に異なる。しかし、上記従来技術においては、発生楽音の異なる強弱に対して、読出し位置こそ異なるが、同一波形データが読出されるので、発生楽音の強弱に応じてリアル感のある楽音信号を発生することができない。これを解消するためには、強弱の異なる複数の楽音波形をそれぞれ表す複数の波形データをメモリに記憶しておいて、発生楽音の強弱に応じて、読出す波形データを切換えるようにすればよい。しかし、強弱の異なる複数の波形データを用意すると、波形データの量が多くなり、大きな容量のメモリを必要とするという問題がある。特に、音階を構成する多数の音高を有する楽器音においては、波形データを音高ごと又は所定の音域ごとに用意する必要があり、波形データの量が極めて多くなる。   In general, attenuation-type instrument sounds and percussion instrument sounds having various pitches have subtle differences in musical sound waveforms that change with time if the performance sound intensity (key touch strength or impact strength) differs. However, in the above-described prior art, although the reading position differs with respect to the intensity of the generated musical sound, the same waveform data is read out, so that a realistic musical sound signal can be generated according to the intensity of the generated musical sound. Can not. In order to solve this problem, a plurality of waveform data respectively representing a plurality of musical sound waveforms having different strengths may be stored in a memory, and the waveform data to be read out may be switched according to the strength of the generated musical sound. . However, when a plurality of waveform data having different strengths are prepared, there is a problem that the amount of waveform data increases and a large capacity memory is required. In particular, in the case of an instrument sound having a large number of pitches constituting a scale, it is necessary to prepare waveform data for each pitch or for each predetermined pitch range, and the amount of waveform data is extremely large.

このような事情に鑑み、本発明者らは、数々の実験を行ってきた結果、次のようなことを発見した。図6(A)に示すように、発音開始直後の減衰系の楽音波形には基本波成分及び高調波成分に加えて、それら以外の周波数成分及びノイズ成分(非調和成分)が含まれており、波形自体が時間的に変動して安定しない。一方、発音開始から時間が経過すると、すなわち安定ポイント以降では、図6(B)に示すように、減衰系の楽音波形はほとんど基本波成分及び高調波成分で構成されて安定したものとなる。これに基づき、本発明者らは、図7に示すように、減衰系の楽音波形を減衰の速い成分波形(高速減衰成分波形)と減衰の遅い成分波形(低速減衰成分波形)に分けると、高速減衰成分波形は発生楽音の強弱に応じて変化するが、低速減衰成分波形は発生楽音の強弱が異なってもほとんど変化しないことを発見した。図7(A)は楽音の原波形全体を模擬的に示し、図7(B)は高速減衰成分波形を模擬的に示し、かつ図7(C)は低速減衰成分波形を模擬的に示している。本発明者らの実験では、電気ピアノ、タム、ティンパニーなどの楽音波形に関して、この傾向が強いことを発見した。   In view of such circumstances, the present inventors have discovered the following as a result of conducting a number of experiments. As shown in FIG. 6A, the decaying musical tone waveform immediately after the start of sound generation includes a frequency component and a noise component (anharmonic component) other than the fundamental component and the harmonic component in addition to the fundamental component and the harmonic component. The waveform itself fluctuates with time and is not stable. On the other hand, when time elapses from the start of sound generation, that is, after the stable point, as shown in FIG. 6B, the musical tone waveform of the attenuation system is almost composed of fundamental wave components and harmonic components and becomes stable. Based on this, the present inventors, as shown in FIG. 7, divide the musical sound waveform of the attenuation system into a component waveform (fast decay component waveform) with fast decay and a component waveform (slow decay component waveform) with slow decay, We found that the high-speed decay component waveform changes according to the intensity of the generated musical sound, but the low-speed attenuation component waveform hardly changes even if the intensity of the generated musical sound is different. FIG. 7A schematically shows the entire original tone waveform, FIG. 7B schematically shows the fast decay component waveform, and FIG. 7C schematically shows the slow decay component waveform. Yes. In our experiments, we have found that this tendency is strong for musical sound waveforms such as electric pianos, toms, and timpani.

そして、本発明者らは、複数段階の強度で演奏された演奏音から抽出された複数の波形データからなる高速減衰波形データと、強い強度で演奏された演奏音から抽出された1つの波形データからなる低速減衰波形データとを波形メモリに記憶しておいて、複数の高速減衰波形データの中から発生楽音の強弱に応じて少なくとも1つの高速減衰波形データを選択して読出すとともに、1つの低速減衰波形データを読出し、これらの読出された高速減衰波形データと低速減衰波形データとを混合して出力するようにした楽音信号発生装置を開発した。また、この楽音信号発生装置における低速減衰波形データの読出しにおいては、発生楽音の強弱が弱くなるに従って、波形データの先頭アドレスから遠くなるアドレスを読出し開始アドレスとして時間経過に従って読出すことにより、発生楽音の強弱が弱くなるに従って、楽音の発生開始から終了までの時間が短くなる減衰系の楽器音と一致させるようにした。これによれば、発生開始から短い時間で終了する高速減衰成分波形を表す複数の高速減衰波形データと、発生開始から長い時間の経過後に終了する低速減衰成分波形を表す1つの低速減衰波形データとからなる少ない量の波形データを波形メモリに記憶しておくだけで、発生楽音の強弱に応じてリアル感のある楽音信号を発生させることができる。   Then, the inventors of the present invention provide fast decay waveform data composed of a plurality of waveform data extracted from a performance sound played at a plurality of levels of intensity and one waveform data extracted from a performance sound played at a high intensity. Is stored in a waveform memory, and at least one fast decay waveform data is selected from a plurality of fast decay waveform data according to the strength of the generated musical sound and read out. A musical tone signal generator has been developed that reads out low-speed decay waveform data and mixes and outputs the read out high-speed decay waveform data and low-speed decay waveform data. Further, in reading out the low-speed decay waveform data in this musical tone signal generator, the generated musical tone is read by reading the address farther from the top address of the waveform data as the reading start address with the passage of time as the strength of the generated musical tone becomes weaker. The time from the start to the end of the musical sound becomes shorter as the intensity of the instrument becomes weaker. According to this, a plurality of fast decay waveform data that represents a fast decay component waveform that ends in a short time from the start of generation, and one slow decay waveform data that represents a slow decay component waveform that ends after a long time has elapsed since the start of generation, Only by storing a small amount of waveform data consisting of the above in the waveform memory, a real tone signal can be generated according to the strength of the tone to be generated.

本発明の目的は、上記のような楽音信号発生装置に利用される波形データの生成に適した波形データ生成方法を提供するものである。   An object of the present invention is to provide a waveform data generation method suitable for generating waveform data used in the musical tone signal generator as described above.

上記目的を達成するために、第1の発明に係る波形データ生成方法は、楽器音波形を表す原波形データの全体を一括してフーリエ変換し、前記楽器音波形全体のスペクトル成分を生成する工程(ステップS104)と、前記生成された楽器音波形全体のスペクトル成分によって表されるスペクトル分布中から前記楽器音波形の基本波成分及び倍音成分に対応した複数のピークを検出して、前記複数のピークに対応した複数のスペクトル成分を特定する工程(ステップS106)と、前記生成された楽器音波形全体のスペクトル成分のうちで、前記特定された複数のスペクトル成分及びそれらの近傍のスペクトル成分に関するスペクトル成分を抽出する工程(ステップS108,S110)と、前記抽出されたスペクトル成分を逆フーリエ変換して低速減衰成分波形を表す低速減衰波形データを生成する工程(ステップS112)と、前記原波形データから前記生成された低速減衰波形データを減算して、高速減衰成分波形を表す高速減衰波形データを生成する工程(ステップSS116)とを含む。   In order to achieve the above object, a waveform data generation method according to a first aspect of the present invention includes a step of collectively Fourier-transforming the entire original waveform data representing an instrument sound waveform to generate a spectrum component of the entire instrument sound waveform. (Step S104) and detecting a plurality of peaks corresponding to a fundamental wave component and a harmonic component of the instrument sound waveform from a spectrum distribution represented by a spectrum component of the entire generated instrument sound waveform, A step of identifying a plurality of spectral components corresponding to a peak (step S106), and a spectrum relating to the plurality of identified spectral components and spectral components in the vicinity thereof among the spectral components of the generated instrument sound waveform as a whole. A component extracting step (steps S108 and S110) and an inverse Fourier transform of the extracted spectral component; A step of generating low-speed attenuation waveform data representing a low-speed attenuation component waveform (step S112), and subtracting the generated low-speed attenuation waveform data from the original waveform data to obtain high-speed attenuation waveform data representing a high-speed attenuation component waveform. Generating (step SS116).

前記第1の発明によれば、原波形を表す原波形データから、基本波成分及び倍音成分からなる調和成分に対応した低速減衰成分波形を表す低速減衰波形データを取得することができるとともに、前記調和成分に含まれない非調和成分に対応した高速減衰成分波形を表す高速減衰波形データを取得することができる。また、低速減衰波形データの取得においては、楽器音波形を表す原波形データの全体を一括してフーリエ変換して得た楽器音波形全体のスペクトル分布から、楽器音波形の基本波成分及び倍音成分に対応した複数のピークを検出することによって複数のピークに対応した複数のスペクトル成分を特定した。そして、この特定した複数のスペクトル成分を用いて、調和成分を表す減衰波形データを取得するようにしたので、低速減衰波形データを比較的に簡単かつ短時間で生成することができる。   According to the first invention, from the original waveform data representing the original waveform, it is possible to obtain the slow decay waveform data representing the slow decay component waveform corresponding to the harmonic component composed of the fundamental wave component and the harmonic component, and It is possible to acquire fast decay waveform data representing a fast decay component waveform corresponding to an anharmonic component not included in the harmonic component. Also, in acquiring the slow decay waveform data, the fundamental wave component and the overtone component of the instrument sound waveform are obtained from the spectrum distribution of the entire instrument sound waveform obtained by performing Fourier transform on the entire original waveform data representing the instrument sound waveform. A plurality of spectral components corresponding to a plurality of peaks were identified by detecting a plurality of peaks corresponding to Since attenuation waveform data representing a harmonic component is acquired using the plurality of specified spectral components, low-speed attenuation waveform data can be generated in a relatively simple and short time.

また、第2の発明に係る波形データ生成方法は、楽器音波形を表す原波形データに対して時間窓を移動しながら、前記時間窓によって規定されるフレームごとに原波形データを順次フーリエ変換して、前記原波形データの全体にわたる複数のフレームのスペクトル成分をそれぞれ取得する工程(ステップS204〜S212)と、前記複数のフレームにわたって前記取得されたスペクトル成分の複数のピークをそれぞれ結ぶ複数のピーク軌跡を検出する工程(S214)と、前記検出された複数のピーク軌跡の中から、減衰の遅いピーク軌跡を抽出する工程(S216)と、前記抽出されたピーク軌跡に関するスペクトル成分を逆フーリエ変換して低速減衰成分波形を表す低速減衰波形データを生成する工程(ステップS218)と、前記原波形データから前記生成された低速減衰波形データを減算して、高速減衰成分波形を表す高速減衰波形データを生成する工程(S222)とを含む。   The waveform data generation method according to the second invention sequentially Fourier transforms the original waveform data for each frame defined by the time window while moving the time window with respect to the original waveform data representing the instrument sound waveform. A plurality of peak trajectories connecting the plurality of peaks of the acquired spectral components over the plurality of frames, respectively, and obtaining the spectral components of the plurality of frames over the whole of the original waveform data (steps S204 to S212). (S214), a step (S216) of extracting a slow-decaying peak trajectory from the detected plurality of peak trajectories, and an inverse Fourier transform of the spectral components related to the extracted peak trajectory. A step of generating slow decay waveform data representing a slow decay component waveform (step S218); By subtracting the slow decay waveform data said generated from the shape data, and a step (S222) for generating a fast decay waveform data representative of the fast decay component waveform.

前記第2の発明によれば、減衰の遅いピーク軌跡は原波形の基本波成分及び倍音成分からなる調和成分に対応するので、原波形を表す原波形データから、調和成分に対応した低速減衰成分波形を表す低速減衰波形データが取得することができるとともに、前記調和成分に含まれない非調和成分に対応した高速減衰成分波形を表す高速減衰波形データを棕櫚得することができる。また、この場合、複数のフレームにわたって取得されたスペクトル成分の複数のピークをそれぞれ結ぶ複数のピーク軌跡を検出し、前記検出した複数のピーク軌跡の中から減衰の遅いピーク軌跡を抽出することにより、調和成分に対応したスペクトル成分を取得するようにしたので、上記第1の発明に比べて、処理が複雑であるとともに処理時間が比較的長くなるが、低速減衰波形データを高精度で生成することができる。   According to the second aspect of the invention, the slow decay peak locus corresponds to the harmonic component composed of the fundamental wave component and the harmonic component of the original waveform, so that the low-speed decay component corresponding to the harmonic component is obtained from the original waveform data representing the original waveform. Low-speed decay waveform data representing a waveform can be acquired, and fast decay waveform data representing a fast decay component waveform corresponding to an anharmonic component not included in the harmonic component can be obtained. Further, in this case, by detecting a plurality of peak trajectories respectively connecting a plurality of peaks of spectral components acquired over a plurality of frames, by extracting a peak trajectory with slow decay from the detected plurality of peak trajectories, Since the spectral component corresponding to the harmonic component is acquired, the processing is complicated and the processing time is relatively long as compared with the first invention, but the slow decay waveform data is generated with high accuracy. Can do.

さらに、上記第1及び第2の発明のような波形データ生成方法を、1種類の楽器に関する原波形であって強弱の異なる複数の原波形に対して適用すれば、1種類の楽器における強弱の異なる複数の楽器音波形に対応した複数組の高速減衰波形データ及び低速減衰波形データを用意することができる。そして、用意された複数組の高速減衰波形データ及び低速減衰波形データの中から複数の高速減衰波形データ及び1つの低速減衰波形データを必要に応じて選択することにより、上述した楽音信号発生装置における楽音信号の生成に利用できるようになる。   Furthermore, if the waveform data generation method as in the first and second inventions is applied to a plurality of original waveforms having different strengths, which are related to one type of musical instrument, the strength of one type of musical instrument is reduced. A plurality of sets of high-speed attenuation waveform data and low-speed attenuation waveform data corresponding to a plurality of different instrument sound waveforms can be prepared. Then, by selecting a plurality of high-speed attenuation waveform data and one low-speed attenuation waveform data from a plurality of sets of prepared high-speed attenuation waveform data and low-speed attenuation waveform data as required, It can be used to generate musical sound signals.

波形データ生成装置の全体ブロック図である。It is a whole block diagram of a waveform data generation device. 第1の波形データ生成方法のための波形データ生成プログラムを示すフローチャートである。It is a flowchart which shows the waveform data generation program for the 1st waveform data generation method. (A)は原波形データを一括してFFT処理した結果を概略的に示す図であり、(B)は抽出窓を概念的に示す図であり、(C)は抽出される成分を概略的に示す図である。(A) is a figure which shows roughly the result of carrying out FFT processing of the original waveform data collectively, (B) is a figure which shows an extraction window notionally, (C) is a figure showing the component extracted. FIG. 第2の波形データ生成方法のための波形データ生成プログラムを示すフローチャートである。It is a flowchart which shows the waveform data generation program for the 2nd waveform data generation method. (A)は原波形のピーク軌跡を概略的に示す図であり、(B)は低速減衰成分波形のピーク軌跡を概略的に示す図である。(A) is a figure which shows roughly the peak locus | trajectory of an original waveform, (B) is a figure which shows roughly the peak locus | trajectory of a slow decay component waveform. (A)は発音開始直後の減衰系の楽音波形を模擬的に示す図であり、(B)は発音開始から時間を経て安定した状態における減衰系の楽音波形を模擬的に示す図である。(A) is a diagram schematically showing a decaying tone waveform immediately after the start of sound generation, and (B) is a diagram schematically showing a decaying tone waveform in a stable state over time from the start of tone generation. (A)は減衰系の楽音波形の全体を模擬的に示す図であり、(B)は前記楽音波形中の高速減衰成分波形を模擬的に示す図であり、かつ(C)は前記楽音波形中の低速減衰成分波形を模擬的に示す図である。(A) is a diagram schematically showing the whole attenuation-type musical sound waveform, (B) is a diagram schematically showing a high-speed attenuation component waveform in the musical sound waveform, and (C) is the musical sound waveform. It is a figure which shows the inside low-speed decay component waveform in simulation. 生成された波形データを用いて楽音信号を発生する楽音信号発生装置の適用された電子楽器の全体ブロック図である。It is the whole block diagram of the electronic musical instrument to which the musical tone signal generator which generates a musical tone signal using the generated waveform data was applied. 図8の音源回路の具体的構成を示すブロック図である。FIG. 9 is a block diagram showing a specific configuration of the tone generator circuit of FIG. 8. 波形メモリの構成を示すメモリマップである。It is a memory map which shows the structure of a waveform memory. 音色パラメータメモリの構成を示すメモリマップである。It is a memory map which shows the structure of a timbre parameter memory. (A)は波形メモリに記憶されている複数の高速減衰波形データの波形を表す概略図であり、(B)は波形メモリに記憶されている1つの低速減衰波形データの波形を表す概略図である。(A) is the schematic showing the waveform of the several high-speed decay waveform data memorize | stored in the waveform memory, (B) is the schematic showing the waveform of one slow decay waveform data memorize | stored in the waveform memory. is there. ノートオンイベント処理プログラムを示すフローチャートである。It is a flowchart which shows a note-on event processing program. 他のノートオンイベント処理プログラムを示すフローチャートである。It is a flowchart which shows another note-on event processing program.

以下、本発明について説明するが、最初に本発明に係る波形データ生成方法について説明し、その後に、前記波形データ生成方法によって生成した波形データを用いて楽音信号を発生するための楽音信号発生装置について説明する。   Hereinafter, the present invention will be described. First, a waveform data generation method according to the present invention will be described, and then a tone signal generator for generating a tone signal using the waveform data generated by the waveform data generation method. Will be described.

a1.波形データ生成装置
まず、本発明の波形データ生成方法に用いる波形データ生成装置について説明する。波形データ生成装置は、図1に示すように、複数のパネルスイッチ11、表示器12、波形メモリ13、書込み回路14、バッファ回路15、音源回路16及びアクセス管理回路17を備えている。
a1. Waveform Data Generation Device First, a waveform data generation device used for the waveform data generation method of the present invention will be described. As shown in FIG. 1, the waveform data generation apparatus includes a plurality of panel switches 11, a display 12, a waveform memory 13, a writing circuit 14, a buffer circuit 15, a sound source circuit 16, and an access management circuit 17.

複数のパネルスイッチ11は、操作パネル上に設けられており、作業者によって操作されて波形データ生成装置の作動を指示する。表示器12は、操作パネル上に設けられた液晶ディスプレイで構成され、文字、数字、図形、特に楽音波形及び波形解析結果などを表示する。これらのパネルスイッチ11及び表示器12は、バス20に接続されている。   The plurality of panel switches 11 are provided on the operation panel, and are operated by an operator to instruct the operation of the waveform data generation device. The display device 12 is composed of a liquid crystal display provided on the operation panel, and displays characters, numbers, figures, particularly musical sound waveform and waveform analysis results. The panel switch 11 and the display device 12 are connected to the bus 20.

波形メモリ13は、書込み及び読出し可能なメモリで構成され、原波形(楽器音波形)を表す波形データ及びこの波形データ生成装置内で生成された波形データを記憶する。書込み回路14は、波形データの波形メモリ13への書込みを制御する。この書込み回路14には、種々の楽器音波形を所定のサンプリングレートでサンプリングしてA/D変換された、楽器音波形を表す波形データを入力するための入力端子14aが接続されている。バッファ回路15は、波形メモリ13から他の回路への波形データの転送、及び他の回路から波形メモリ13への波形データの転送を制御する。音源回路16は、波形メモリ13から読出した波形データを用いてディジタル楽音信号を生成し、生成したディジタル楽音信号をサウンドシステム18に出力する。サウンドシステム18は、D/A変換器、アナログ増幅器及びスピーカを含み、音源回路16から供給されたディジタル楽音信号に対応した楽音を放音する。これらの書込み回路14、バッファ回路15及び音源回路16も、バス20に接続されている。アクセス管理回路17は、波形メモリ13と、書込み回路14、バッファ回路15及び音源回路16との間に接続され、書込み回路14による波形メモリ13への波形データの書込み、バッファ回路15による波形メモリ13に対する波形データの転送、及び音源回路16による波形メモリ13からの波形データの読出しが衝突しないように、波形メモリ13に対するアクセスタイムスロットを管理する。   The waveform memory 13 is composed of a writable and readable memory, and stores waveform data representing an original waveform (instrument sound waveform) and waveform data generated in the waveform data generating apparatus. The writing circuit 14 controls writing of waveform data to the waveform memory 13. The writing circuit 14 is connected to an input terminal 14a for inputting waveform data representing the instrument sound waveform obtained by sampling various instrument sound waveforms at a predetermined sampling rate and A / D converting. The buffer circuit 15 controls the transfer of waveform data from the waveform memory 13 to other circuits and the transfer of waveform data from other circuits to the waveform memory 13. The tone generator circuit 16 generates a digital tone signal using the waveform data read from the waveform memory 13 and outputs the generated digital tone signal to the sound system 18. The sound system 18 includes a D / A converter, an analog amplifier, and a speaker, and emits a musical sound corresponding to the digital musical sound signal supplied from the sound source circuit 16. These writing circuit 14, buffer circuit 15 and tone generator circuit 16 are also connected to the bus 20. The access management circuit 17 is connected between the waveform memory 13, the write circuit 14, the buffer circuit 15, and the sound source circuit 16, writes waveform data into the waveform memory 13 by the write circuit 14, and the waveform memory 13 by the buffer circuit 15. The access time slot for the waveform memory 13 is managed so that the transfer of the waveform data with respect to and the readout of the waveform data from the waveform memory 13 by the sound source circuit 16 do not collide.

また、この波形データ生成装置は、バス20にそれぞれ接続されたCPU31、ROM32、RAM33、タイマ34、ドライブ回路35及び外部インターフェース回路36も備えている。CPU31、ROM32、RAM33及びタイマ34は、コンピュータ本体部を構成するもので、特に、CPU31は、後述する波形データ生成プログラムを実行する。ドライブ回路35は、ハードディスクHD、フラッシュメモリ、コンパクトディスクCDなどの外部記録装置37に対する各種データ及びプログラムの記憶及び読出しを制御する。外部インターフェース回路36は、電子楽器、シーケンサなどの外部MIDI機器との接続を可能としているとともに、通信ネットワークを介してサーバとの接続を可能としている。前述した波形データ生成プログラムは、外部記録装置37に記憶され、又は外部インターフェース回路36を介してRAM33若しくは外部記録装置37に取込まれるようになっている。以下、この波形データ生成装置を用いた第1及び第2の波形データ生成方法について説明する。   The waveform data generation apparatus also includes a CPU 31, a ROM 32, a RAM 33, a timer 34, a drive circuit 35, and an external interface circuit 36 connected to the bus 20. The CPU 31, the ROM 32, the RAM 33, and the timer 34 constitute a computer main body. In particular, the CPU 31 executes a waveform data generation program to be described later. The drive circuit 35 controls the storage and reading of various data and programs with respect to the external recording device 37 such as the hard disk HD, the flash memory, and the compact disk CD. The external interface circuit 36 can be connected to an external MIDI device such as an electronic musical instrument or a sequencer, and can be connected to a server via a communication network. The waveform data generation program described above is stored in the external recording device 37 or taken into the RAM 33 or the external recording device 37 via the external interface circuit 36. Hereinafter, the first and second waveform data generation methods using this waveform data generation apparatus will be described.

a2.第1の波形データ生成方法
第1の波形データ生成方法について説明する。まず、作業者は、所望の楽器種類、所望の音高、及び所望の強さの減衰系の楽器音波形を表すディジタル波形データ(以下、このディジタル波形データを原波形データという)を用意する。ただし、打楽器音の場合には、所望の楽器種類及び所望の強さの原波形データを用意する。この原波形データは、1つの楽器音の発音開始から発音終了までの楽器音波形を表すものである。この原波形データの用意においては、原波形データを予め記憶した装置を入力端子14aに接続する。また、原波形データを外部記録装置37に予め記録しておいたり、原波形データを外部インターフェース回路36から取込むようにしてもよい。
a2. First Waveform Data Generation Method A first waveform data generation method will be described. First, an operator prepares digital waveform data (hereinafter, this digital waveform data is referred to as original waveform data) representing an instrumental sound waveform of an attenuation system having a desired instrument type, a desired pitch, and a desired intensity. However, in the case of percussion instrument sounds, original waveform data having a desired instrument type and a desired strength is prepared. This original waveform data represents an instrument sound waveform from the start of sound generation to the end of sound generation of one instrument sound. In preparing the original waveform data, a device that stores the original waveform data in advance is connected to the input terminal 14a. Further, the original waveform data may be recorded in advance in the external recording device 37, or the original waveform data may be taken in from the external interface circuit 36.

この原波形データの用意後、作業者は、パネルスイッチ11を操作することにより、図2の波形データ生成プログラムの実行開始を指示する。この波形データ生成プログラムの実行はステップS100にて開始され、CPU31は、ステップS102にて、書込み回路14を制御して前記所望とする原波形データを波形メモリ13に書込む。この書込みにおいては、書込み回路14により、前述のような入力端子14a及び外部インターフェース回路36を介して入力される原波形データ、又は外部記録装置37に記録された原波形データが波形メモリ13に書き込まれる。   After preparing the original waveform data, the operator operates the panel switch 11 to instruct the start of execution of the waveform data generation program of FIG. The execution of this waveform data generation program is started in step S100, and the CPU 31 controls the writing circuit 14 to write the desired original waveform data in the waveform memory 13 in step S102. In this writing, the original waveform data input through the input terminal 14 a and the external interface circuit 36 as described above or the original waveform data recorded in the external recording device 37 is written into the waveform memory 13 by the writing circuit 14. It is.

前記ステップS102の処理後、CPU31は、ステップS104にて、発音開始から発音終了までの全範囲にわたる原波形データを一括して高速フーリエ変換処理(以下、単にFFT処理という)を実行する。この一括FFT処理の結果、全範囲にわたる原波形データに関して、周波数、振幅及び位相の時間経過に従った情報(スペクトル成分)、すなわち周波数、振幅及び位相の時間変化を含む情報(スペクトル成分)が取出される。次に、CPU31は、ステップS106にて、前記FFT処理により得られた原波形データの全範囲にわたるスペクトル成分を用いて、振幅値が所定値を超える複数のピークにそれぞれ対応した複数のスペクトル成分(周波数成分)を検出する。この場合、前記FFTの結果により得られた全ての情報(スペクトル成分)中、原波形データの全範囲にわたる周波数及び振幅の情報を用いて、時間経過とは無関係に、全範囲にわたる原波形データに関するスペクトル分布を導出する。その後、前記導出されたスペクトル分布を用いて、振幅値が所定値を超える複数のピークにそれぞれ対応した複数のスペクトル成分(周波数成分)を検出する。図3(A)は、前記導出されたスペクトル分布を示している。図中のピーク部Aは楽器音の基本周波数及び倍音周波数(調和成分)に対応し、ピーク部Aの下部分Bは、周波数が安定しないノイズを含む非調和成分に対応する。この図3(A)のスペクトル分布からも考察されるように、前記複数のピーク(複数のスペクトル成分)の検出に用いる所定値は、図3(A)のB部分を超える程度の大きさであって、周波数が高くなるに従って徐々に小さくなる関数値であることが好ましい。   After the process of step S102, in step S104, the CPU 31 collectively performs fast Fourier transform processing (hereinafter simply referred to as FFT processing) on the original waveform data over the entire range from the start of sound generation to the end of sound generation. As a result of the collective FFT processing, information (spectral component) according to the time lapse of frequency, amplitude and phase, that is, information (spectral component) including time change of frequency, amplitude and phase is extracted from the original waveform data over the entire range. Is done. Next, in step S106, the CPU 31 uses a plurality of spectral components corresponding to a plurality of peaks whose amplitude values exceed a predetermined value using spectral components over the entire range of the original waveform data obtained by the FFT process (step S106). Frequency component) is detected. In this case, the frequency and amplitude information over the entire range of the original waveform data is used for all the information (spectral components) obtained from the FFT result, and the original waveform data over the entire range is used regardless of the passage of time. A spectral distribution is derived. Thereafter, a plurality of spectrum components (frequency components) respectively corresponding to a plurality of peaks whose amplitude values exceed a predetermined value are detected using the derived spectrum distribution. FIG. 3A shows the derived spectral distribution. The peak part A in the figure corresponds to the fundamental frequency and harmonic frequency (harmonic component) of the musical instrument sound, and the lower part B of the peak part A corresponds to an anharmonic component including noise whose frequency is not stable. As is also considered from the spectrum distribution of FIG. 3A, the predetermined value used for detecting the plurality of peaks (plural spectrum components) has a magnitude exceeding the B portion of FIG. It is preferable that the function value gradually decreases as the frequency increases.

次に、CPU31は、ステップS108にて、前記検出した複数のピークに対応したスペクトル成分(周波数成分)をそれぞれ中心とした所定の小さな幅の複数の抽出窓を表す窓関数を生成する。この窓関数は、前記複数のスペクトル成分及びそれらの近傍のスペクトル成分を抽出するためのもので、周波数軸上において所定幅を有する複数の周波数領域を規定する。図3(B)は、この窓関数を表している。   Next, in step S108, the CPU 31 generates a window function representing a plurality of extraction windows having a predetermined small width, each centered on a spectrum component (frequency component) corresponding to the detected plurality of peaks. This window function is for extracting the plurality of spectral components and spectral components in the vicinity thereof, and defines a plurality of frequency regions having a predetermined width on the frequency axis. FIG. 3B shows this window function.

前記ステップS108の処理後、CPU31は、ステップS110にて、前記ステップS104のFFT処理によって得られた原波形データに関する全ての情報(スペクトル成分)の中から、前記ステップS108の処理によって生成された窓関数によって規定されるスペクトル成分を抽出する。すなわち、前記原波形データに関する全てスペクトル成分から、前記窓関数によって規定される複数の周波数領域内に属する周波数に関係したスペクトル成分を抽出する。次に、CPU31は、ステップS112にて、前記抽出したスペクトル成分を逆高速フーリエ変換処理(以下、単に逆FFT処理という)して低速減衰成分波形を表す波形データを加算合成する。そして、CPU31は、ステップS114にて、書込み回路54を制御して、前記加算合成波形データを低速減衰波形データとして波形メモリ13に書込む。   After the process of step S108, the CPU 31 generates the window generated by the process of step S108 from all the information (spectral components) regarding the original waveform data obtained by the FFT process of step S104 in step S110. Extract the spectral components defined by the function. That is, spectral components related to frequencies belonging to a plurality of frequency regions defined by the window function are extracted from all spectral components related to the original waveform data. Next, in step S112, the CPU 31 performs inverse fast Fourier transform processing (hereinafter simply referred to as inverse FFT processing) on the extracted spectral component to add and synthesize waveform data representing a slow decay component waveform. In step S114, the CPU 31 controls the writing circuit 54 to write the added combined waveform data into the waveform memory 13 as low-speed decay waveform data.

前記ステップS114の処理後、CPU31は、ステップS116にて、波形メモリ13に記憶されている原波形データから前記新たに波形メモリ13に記憶した低速減衰波形データを、両波形データの先頭から末尾にわたって順次減算する。この減算結果は、原波形データから低速減衰波形データを除いた本発明の高速減衰波形データに対応する。次に、CPU31は、ステップS118にて、前記減算結果である波形データを高速減衰波形データとして波形メモリ13に書込み、ステップS120にてこの波形データ生成プログラムの実行を終了する。これにより、1組の低速減衰波形データと高速減衰波形データが波形メモリ13に記憶される。   After the process of step S114, the CPU 31 changes the slow decay waveform data newly stored in the waveform memory 13 from the original waveform data stored in the waveform memory 13 from the beginning to the end of both waveform data in step S116. Subtract sequentially. This subtraction result corresponds to the fast decay waveform data of the present invention obtained by removing the slow decay waveform data from the original waveform data. Next, in step S118, the CPU 31 writes the waveform data as the subtraction result into the waveform memory 13 as fast decay waveform data, and in step S120, the execution of this waveform data generation program is terminated. As a result, a set of slow decay waveform data and fast decay waveform data is stored in the waveform memory 13.

このようにして1組の低速減衰波形データと高速減衰波形データが波形メモリ13に記憶された後、前記と同じ楽器種類及び音高(打楽器の場合には、前記と同じ楽器種類)であって、前記とは異なる強さの楽器音波形を表す原波形データを用意して、前述した図2の波形データ生成プログラムを再度実行する。これにより、前記と同じ楽器種類及び音高(打楽器の場合には、前記と同じ楽器種類)であって、前記とは異なる強さの楽器音波形を表す1組の低速減衰波形データと高速減衰波形データが波形メモリ13に記憶される。このような処理を繰返し行うことにより、一つの楽器種類及び音高(打楽器の場合には、一つの楽器種類)であって、前記とは異なる強さの楽器音波形を表す1組の低速減衰波形データと高速減衰波形データが波形メモリ13に順次記憶されていく。例えば、後述する楽音信号発生装置(電子楽器)で利用される場合には、鍵タッチ強さVEL及び操作子タッチ強さVELが「127」、「80」、「48」、「16」(又は「127」、「85」、「43」、「1」)に対応した低速減衰波形データと高速減衰波形データが波形メモリ13に順次記憶される。なお、後述する楽音信号発生装置において楽音合成に必要な波形データは、複数の鍵タッチ強さVEL又は操作子タッチ強さVEL(例えば、「127」、「80」、「48」、「16」又は「127」、「85」、「43」、「1」)に対応した複数の高速減衰波形データと、最も大きな鍵タッチ強さVEL又は操作子タッチ強さVEL(例えば、「127」)の1つの低速減衰波形データであるので、それら以外の波形データを波形メモリ13から消去してもよいし、前記ステップS122,S126の記憶処理時に波形メモリ13に記憶させなくてもよい。   After a pair of low-speed decay waveform data and high-speed decay waveform data is stored in the waveform memory 13 in this way, the same instrument type and pitch (in the case of percussion instruments, the same instrument type as described above) 2 is prepared, and the waveform data generation program of FIG. 2 described above is executed again. As a result, a set of low-speed attenuation waveform data and high-speed attenuation that represent the same instrument type and pitch (in the case of percussion instruments, the same instrument type as described above), and represent an instrument sound waveform having a strength different from that described above. Waveform data is stored in the waveform memory 13. By repeating such a process, a set of slow decays representing a musical instrument sound waveform of one instrument type and pitch (one instrument type in the case of percussion instruments) with a strength different from that described above. Waveform data and fast decay waveform data are sequentially stored in the waveform memory 13. For example, when used in a musical sound signal generator (electronic musical instrument) described later, the key touch strength VEL and the operator touch strength VEL are “127”, “80”, “48”, “16” (or Low-speed attenuation waveform data and high-speed attenuation waveform data corresponding to “127”, “85”, “43”, “1”) are sequentially stored in the waveform memory 13. Note that waveform data necessary for tone synthesis in a tone signal generator to be described later includes a plurality of key touch strengths VEL or operator touch strengths VEL (for example, “127”, “80”, “48”, “16”). Or a plurality of fast decay waveform data corresponding to “127”, “85”, “43”, “1”) and the largest key touch strength VEL or operator touch strength VEL (for example, “127”). Since it is one low-speed decay waveform data, other waveform data may be deleted from the waveform memory 13 or may not be stored in the waveform memory 13 during the storage processing in steps S122 and S126.

さらに、前記1つの楽器種類及び音高に関する複数の高速減衰波形データと少なくとも1つの低速減衰波形データからなる波形セットの波形メモリ13への記憶後、前記と同じ楽器種類であって異なる音高に関する前記波形セットを、前記と同様な処理により、波形メモリ13に記憶させる。そして、全ての音高又は全ての音域に関する前記波形セットの波形メモリ13の記憶後には、異なる楽器種類に関する波形セットを、前記と同様な処理により、波形メモリ13に記憶させる。その結果、このような波形データ生成処理により、波形メモリ13には、所望の複数の楽器種類、必要な音高、及び複数の強さの減衰系の楽器音に関する波形セットが波形メモリ13に用意されることになる。   Furthermore, after storing in the waveform memory 13 a waveform set consisting of a plurality of fast decay waveform data and at least one slow decay waveform data related to the one instrument type and pitch, the same instrument type and different pitches are used. The waveform set is stored in the waveform memory 13 by the same processing as described above. Then, after storing the waveform set of the waveform set for all pitches or all ranges, the waveform set for different instrument types is stored in the waveform memory 13 by the same processing as described above. As a result, by such waveform data generation processing, the waveform memory 13 prepares a waveform set related to a desired plurality of instrument types, necessary pitches, and a plurality of attenuation-type instrument sounds in the waveform memory 13. Will be.

この第1の波形データ生成方法によれば、比較的簡単かつ短時間で、原波形データから複数の高速減衰波形データと1つの低速減衰波形データを生成することができる。この第1の波形データ生成方法は、種々の減衰系の楽器音に関する複数の高速減衰波形データと1つの低速減衰波形データを生成する際に利用可能であるが、各種メーカの電気ピアノ音に関する複数の高速減衰波形データと1つの低速減衰波形データを生成するのに最適である。   According to this first waveform data generation method, it is possible to generate a plurality of fast decay waveform data and one slow decay waveform data from the original waveform data in a relatively simple and short time. This first waveform data generation method can be used to generate a plurality of high-speed attenuation waveform data and one low-speed attenuation waveform data related to various instrument sounds of attenuation systems. It is most suitable for generating one fast decay waveform data and one slow decay waveform data.

a3.第2の波形データ生成方法
次に、第2の波形データ生成方法について説明する。この場合も、作業者は、上記第1の波形データ生成方法の場合と同様にして、所望の楽器種類、所望の音高、及び所望の強さの減衰系の原波形データ(打楽器音の場合には、所望の楽器種類及び所望の強さの原波形データ)を用意する。そして、作業者は、パネルスイッチ11を操作することにより、図4の波形データ生成プログラムの実行開始を指示する。この波形データ生成プログラムの実行はステップS200にて開始され、CPU31は、ステップS202にて、上記第1の波形データ生成方法の場合と同様に、書込み回路14を制御して原波形データを波形メモリ13に書込む。
a3. Second Waveform Data Generation Method Next, a second waveform data generation method will be described. In this case as well, the operator, in the same way as in the first waveform data generation method, is the original waveform data of the attenuation system having the desired instrument type, desired pitch, and desired intensity (in the case of percussion instrument sounds). For the desired instrument type and original waveform data of desired strength). Then, the operator instructs the start of execution of the waveform data generation program of FIG. 4 by operating the panel switch 11. The execution of the waveform data generation program is started in step S200, and the CPU 31 controls the write circuit 14 in step S202 to control the writing circuit 14 to store the original waveform data in the waveform memory, as in the case of the first waveform data generation method. Write to 13.

前記ステップS202の処理後、CPU31は、ステップS204にて、原波形データの先頭から1つの時間窓を設定して、この時間窓に含まれる最初の1フレーム分の原波形データを取出す。この時間窓の幅は、例えば基本周波数成分の周期の8倍程度である。次に、CPU31は、ステップS206にて、前記取出した1フレーム分の原波形データをFFT処理して1フレーム分のスペクトル情報を取得する。このスペクトル情報には、1フレーム分の原波形データに関する周波数、振幅及び位相の3つの情報が含まれている。次に、CPU31は、ステップS208にて、前記スペクトル情報をスペクトル解析し、スペクトル分布のピークを検出し、検出した各ピークの周波数、振幅及び位相の3つの情報を検出する。次に、CPU31は、ステップS210にて、原波形データの末尾すなわち最後の1フレーム分の波形データの取出しが終了したかを判定する。最後の1フレーム分の波形データの取出しが終了していなければ、CPU31は、ステップS210にて「No」と判定し、ステップS212にて時間窓を移動させて次の1フレーム分の波形データを取出してステップS206に戻る。この時間窓の移動時間は、例えば基本周波数成分の周期の8分の1程度である。そして、CPU31は、前述したステップS206,S208の処理を実行して、次の1フレーム分の原波形データに関する複数のピークを検出するとともに、複数のピークに関する周波数、振幅及び位相の3つの情報をそれぞれ検出する。このようなステップS206〜S212からなる循環処理を繰返し実行することにより、原波形データの先頭から末尾までの複数のフレームにわたって、各フレームごとに原波形データの複数のピークに関する周波数、振幅及び位相を表す3つの情報をそれぞれ取得する。   After the process of step S202, in step S204, the CPU 31 sets one time window from the beginning of the original waveform data, and extracts the original waveform data for the first frame included in this time window. The width of this time window is, for example, about 8 times the period of the fundamental frequency component. Next, in step S206, the CPU 31 performs FFT processing on the extracted original waveform data for one frame to acquire spectrum information for one frame. This spectrum information includes three pieces of information on frequency, amplitude, and phase regarding the original waveform data for one frame. Next, in step S208, the CPU 31 performs spectrum analysis on the spectrum information, detects a peak of the spectrum distribution, and detects three pieces of information on the frequency, amplitude, and phase of each detected peak. Next, in step S210, the CPU 31 determines whether the end of the original waveform data, that is, the extraction of the last one frame of waveform data has been completed. If the extraction of the waveform data for the last frame has not been completed, the CPU 31 determines “No” in step S210, moves the time window in step S212, and acquires the waveform data for the next frame. It takes out and returns to step S206. The moving time of this time window is about 1/8 of the period of the fundamental frequency component, for example. Then, the CPU 31 executes the above-described processing of steps S206 and S208 to detect a plurality of peaks related to the original waveform data for the next one frame, and to obtain three pieces of information on the frequency, amplitude and phase related to the plurality of peaks. Detect each. By repeatedly executing the cyclic processing composed of steps S206 to S212, the frequency, amplitude, and phase relating to a plurality of peaks of the original waveform data are obtained for each frame over a plurality of frames from the beginning to the end of the original waveform data. Three pieces of information to be represented are respectively acquired.

最後の1フレーム分の波形データの取出しが終了すると、CPU31は、前記ステップS210にて「Yes」と判定し、ステップS214にて複数のピーク軌跡をそれぞれ検出する。ピーク軌跡の検出においては、隣合うフレームのピークに関する周波数、振幅及び位相が滑らかに繋がっているピークのみを抽出する。すなわち、隣合う1つのフレームのピークに関する周波数、振幅及び位相と、他方のフレームのピークに関する周波数、振幅及び位相とを比較して、それらの変化が最も小さいピークのみを抽出して、最初から最後までのフレーム内のピークを周波数ごとに繋げる。これにより、ノイズ及び非調和成分が除去される。図5(A)は、原波形に対する前記ピーク軌跡を概略的に示している。   When the extraction of the last one frame of waveform data is completed, the CPU 31 determines “Yes” in step S210 and detects a plurality of peak loci in step S214. In the detection of the peak trajectory, only the peaks in which the frequency, amplitude and phase relating to the peaks of adjacent frames are smoothly connected are extracted. That is, the frequency, amplitude, and phase related to the peak of one adjacent frame are compared with the frequency, amplitude, and phase related to the peak of the other frame, and only the peak having the smallest change is extracted. The peaks in the previous frames are connected for each frequency. Thereby, noise and anharmonic components are removed. FIG. 5A schematically shows the peak locus with respect to the original waveform.

前記ステップS214の処理後、CPU31は、ステップS216にて、前記検出した複数のピーク軌跡の中から減衰の遅いピーク軌跡を抽出する。具体的には、波形データの先頭から予め決めた所定時間を越えて残っており、かつ予め決めた所定時間以上持続するピーク軌跡のみを取出す。図5(B)は、図5(A)に示す複数のピーク軌跡からその一部の複数のピーク軌跡のみを取出した状態を示している。そして、この図5(B)に示されたピーク軌跡は、減衰の遅い低速減衰成分(調和成分)のピーク軌跡である。なお、前記減衰の遅いピーク軌跡の抽出においては、前記のようにコンピュータ処理によって自動的にピーク軌跡を検出するのに代えて、図5(A)に示すピーク軌跡を表示器12に表示し、パネルスイッチ11を用いた作業者による選択操作により、前記減衰の遅いピーク軌跡を抽出するようにしてもよい。   After the process of step S214, the CPU 31 extracts a slow-decayed peak locus from the detected plurality of peak loci in step S216. Specifically, only the peak trajectory remaining beyond a predetermined time from the beginning of the waveform data and lasting for a predetermined time is extracted. FIG. 5B shows a state where only some of the plurality of peak loci are extracted from the plurality of peak loci shown in FIG. The peak locus shown in FIG. 5B is a peak locus of a slow decay component (harmonic component) that is slowly attenuated. In the extraction of the slowly decaying peak locus, instead of automatically detecting the peak locus by computer processing as described above, the peak locus shown in FIG. The peak locus with slow decay may be extracted by a selection operation by an operator using the panel switch 11.

次に、CPU31は、ステップS218にて、原波形データの先頭から末尾までにわたる全てのフレームに対して、前記抽出した複数のピーク軌跡に対応したスペクトル情報を逆FFT処理して低速減衰成分波形を表す波形データを加算合成する。そして、CPU31は、ステップS220にて、書込み回路14を制御して、前記合成波形データを低速減衰波形データとして波形メモリ13に書込む。なお、前述したフレームごとのFFT処理、複数のピークの検出処理、及び複数のピーク軌跡の検出処理、逆FFT処理(正弦波合成処理)は、例えば特開2000−10565号公報、特開2000−056774号公報、特開2001−100763号公報、特開2003−263170号公報などに記載されている周知の技術であるので、より詳しい説明は省略する。   Next, in step S218, the CPU 31 performs inverse FFT processing on the spectrum information corresponding to the plurality of extracted peak trajectories for all frames extending from the beginning to the end of the original waveform data to generate a slow decay component waveform. Add and synthesize the waveform data to represent. In step S220, the CPU 31 controls the writing circuit 14 to write the combined waveform data into the waveform memory 13 as the slow decay waveform data. The above-described FFT processing for each frame, detection processing for a plurality of peaks, detection processing for a plurality of peak trajectories, and inverse FFT processing (sinusoidal wave synthesis processing) are disclosed in, for example, Japanese Patent Laid-Open Nos. 2000-10565 and 2000-. Since this is a well-known technique described in Japanese Patent Laid-Open No. 056774, Japanese Patent Laid-Open No. 2001-1000076, Japanese Patent Laid-Open No. 2003-263170, and the like, detailed description thereof is omitted.

次に、CPU31は、ステップS222にて、波形メモリ13に記憶されている原波形データから前記新たに波形メモリ13に記憶した低速減衰波形データを、両波形データの先頭から末尾にわたって順次減算する。この減算結果は、原波形データから低速減衰波形データを除いた本発明の高速減衰波形データに対応する。そして、CPU31は、ステップS224にて、前記減算結果である波形データを高速減衰波形データとして波形メモリ13に書込み、ステップS226にてこの波形データ生成プログラムの実行を終了する。これにより、1組の低速減衰波形データと高速減衰波形データが波形メモリ13に記憶される。   Next, in step S222, the CPU 31 sequentially subtracts the slow decay waveform data newly stored in the waveform memory 13 from the original waveform data stored in the waveform memory 13 from the beginning to the end of both waveform data. This subtraction result corresponds to the fast decay waveform data of the present invention obtained by removing the slow decay waveform data from the original waveform data. In step S224, the CPU 31 writes the waveform data as the subtraction result into the waveform memory 13 as the fast decay waveform data, and in step S226, the execution of the waveform data generation program ends. As a result, a set of slow decay waveform data and fast decay waveform data is stored in the waveform memory 13.

このようにして1組の低速減衰波形データと高速減衰波形データが波形メモリ13に記憶された後、前記第1の波形データ生成方法の場合と同様に、異なる強度の楽器音、異なる音高の楽器音及び異なる楽器種類に対して、前述した波形データ生成処理を実行して、所望の複数の楽器種類、必要な音高、及び複数の強さの減衰系の楽器音に関する1組の低速減衰波形データと高速減衰波形データからなる波形セットを波形メモリ13に記憶する。なお、複数の鍵タッチ強さVEL又は操作子タッチ強さVELに対応した複数の高速減衰波形データ、及び最も大きな鍵タッチ強さVEL又は操作子タッチ強さVELの1つの低速減衰波形データを波形メモリ13に残し、それら以外の波形データを波形メモリ13から消去してもよいし、波形メモリ13に記憶させなくてもよい点も、上記第1の波形データ生成方法の場合と同じである。   After a set of low-speed decay waveform data and high-speed decay waveform data is stored in the waveform memory 13 in this way, as in the case of the first waveform data generation method, different instrument sounds and different pitches are used. The waveform data generation process described above is executed for instrument sounds and different instrument types, and a set of low-speed attenuations for a desired plurality of instrument types, required pitches, and a plurality of intensity attenuation instrument sounds. A waveform set including waveform data and fast decay waveform data is stored in the waveform memory 13. It should be noted that a plurality of fast decay waveform data corresponding to a plurality of key touch strengths VEL or operation element touch strengths VEL and one slow decay waveform data of the largest key touch strength VEL or operation element touch strengths VEL are waveformd. The remaining waveform data in the memory 13 may be deleted from the waveform memory 13 or may not be stored in the waveform memory 13 as in the case of the first waveform data generation method.

この第2の波形データ生成方法においては、上記第1の波形データ生成方法に比べると、ピーク軌跡の検出処理のために、高速減衰波形データと低速減衰波形データの生成が複雑であると同時に、前記両波形データの生成に長時間を要する。しかし、この第2の波形データ生成方法によれば、上記第1の波形データ生成方法に比べて、高速減衰波形データと低速減衰波形データを高精度で生成し得る。この第2の波形データ生成方法も、種々の減衰系の楽器音に関する複数の高速減衰波形データと1つの低速減衰波形データを生成する際に利用可能であるが、各種メーカの電気ピアノ音に関する複数の高速減衰波形データと1つの低速減衰波形データを生成するのに最適である。   In the second waveform data generation method, compared to the first waveform data generation method, the generation of the fast decay waveform data and the slow decay waveform data is complicated because of the peak locus detection process, It takes a long time to generate both waveform data. However, according to the second waveform data generation method, the high-speed decay waveform data and the low-speed decay waveform data can be generated with higher accuracy than the first waveform data generation method. This second waveform data generation method can also be used to generate a plurality of high-speed attenuation waveform data related to various attenuation-type instrument sounds and a single low-speed attenuation waveform data. It is most suitable for generating one fast decay waveform data and one slow decay waveform data.

b.生成された波形データの適用される楽音信号発生装置
以下、上記第1及び第2の波形データ生成方法によって生成された高速減衰波形データ及び低速減衰波形データからなる波形データを用いて、楽音信号を発生する楽音信号発生装置について説明する。図8は、この楽音信号発生装置の適用された電子楽器の全体ブロック図である。この電子楽器は、鍵盤51、複数の演奏操作子52、複数のパネル操作子53、表示器54及び音源回路55を備えている。
b. A musical tone signal generator to which the generated waveform data is applied Hereinafter, a musical tone signal is generated using waveform data composed of the fast decay waveform data and the slow decay waveform data generated by the first and second waveform data generation methods. A musical tone signal generator that generates the sound signal will be described. FIG. 8 is an overall block diagram of an electronic musical instrument to which the musical tone signal generator is applied. This electronic musical instrument includes a keyboard 51, a plurality of performance operators 52, a plurality of panel operators 53, a display 54, and a tone generator circuit 55.

鍵盤51は、演奏者によって操作されて、それぞれ発生楽音の音高を指定するとともに楽音の発生を指示する複数の白鍵及び黒鍵からなる。鍵盤51は、押鍵速度、押鍵圧力等の鍵タッチ強さVELを検出するための鍵タッチ検出機構も備えている。この鍵盤51の各鍵の押離鍵操作及び鍵タッチ強さVELは、バス56に接続された検出回路51aによって検出される。検出回路51aは、各鍵の押離鍵操作を表すキーオン信号KON及びキーオフ信号KOF、押離鍵操作された鍵を表すノートナンバNN、並びに鍵タッチ強さVELを表す鍵タッチ信号をバス56に出力する。複数の演奏操作子52は、演奏者によって操作されて、打楽器音の発生を指示するための複数種類の打楽器にそれぞれ対応した複数のスイッチである。複数の演奏操作子52にも、それらの押圧速度、押圧圧力等の操作子タッチ強さVELを検出するための操作子タッチ検出機構が設けられている。この複数の演奏操作子52の押圧操作及び操作子タッチ強さVELは、バス56に接続された検出回路52aによって検出される。検出回路52aは、各演奏操作子52の押圧操作を表すスイッチオン信号SWON、押圧操作された演奏操作子52に対応した打楽器種類を表す楽器種類情報IN、及び操作子タッチ強さVELを表す操作子タッチ信号をバス56に出力する。   The keyboard 51 is composed of a plurality of white keys and black keys which are operated by the performer and each designates the pitch of the generated musical sound and instructs the generation of the musical sound. The keyboard 51 also includes a key touch detection mechanism for detecting a key touch strength VEL such as a key pressing speed and a key pressing pressure. The key pressing operation and key touch strength VEL of each key on the keyboard 51 are detected by a detection circuit 51 a connected to the bus 56. The detection circuit 51a provides a key touch signal representing a key-on signal KON and a key-off signal KOF representing a key pressing / release operation of each key, a key number NN representing a key that has been depressed / released, and a key touch signal representing a key touch strength VEL. Output. The plurality of performance operators 52 are a plurality of switches respectively corresponding to a plurality of types of percussion instruments that are operated by the performer to instruct the generation of percussion instrument sounds. The plurality of performance operators 52 are also provided with an operator touch detection mechanism for detecting an operator touch strength VEL such as a pressing speed and a pressing pressure thereof. The pressing operation of the plurality of performance operators 52 and the operator touch strength VEL are detected by a detection circuit 52 a connected to the bus 56. The detection circuit 52a is a switch-on signal SWON indicating the pressing operation of each performance operator 52, instrument type information IN indicating the percussion instrument type corresponding to the pressed performance operator 52, and an operation indicating the operator touch strength VEL. The child touch signal is output to the bus 56.

複数のパネル操作子53は、電子楽器の操作パネル上に設けられた複数のスイッチ、ボリュームなどからなり、演奏者によって操作されて、楽音信号の発生態様を含む電子楽器の各種動作を指示する。この複数のパネル操作子53の操作は、バス56に接続された検出回路53aによって検出される。検出回路53aは、複数のパネル操作子53の操作を表す検出信号をバス56に出力する。表示器54は、操作パネル上に設けられた液晶ディスプレイ、CRTなどで構成され、文字、数字、図形などを表示する。この表示器54には、バス56に接続された表示回路54aが接続されている。表示回路54aは、バス56を介して供給される画像データに従って表示器54の表示を制御する。   The plurality of panel operators 53 are composed of a plurality of switches, volumes, and the like provided on the operation panel of the electronic musical instrument, and are operated by the performer to instruct various operations of the electronic musical instrument including a musical sound signal generation mode. The operation of the plurality of panel operators 53 is detected by a detection circuit 53 a connected to the bus 56. The detection circuit 53 a outputs a detection signal indicating the operation of the plurality of panel operators 53 to the bus 56. The display unit 54 is composed of a liquid crystal display, CRT, or the like provided on the operation panel, and displays characters, numbers, figures, and the like. The display 54 is connected to a display circuit 54 a connected to the bus 56. The display circuit 54 a controls display on the display device 54 in accordance with image data supplied via the bus 56.

音源回路55は、バス56に接続されていて、バス56を介して供給される各種制御信号に応じてディジタル楽音信号を生成して効果回路57に出力する。音源回路55は、図9に示すように、複数の発音チャンネルch1,ch2・・・chnを備えている。複数の発音チャンネルch1,ch2・・・chnはそれぞれ同様に構成されており、各チャンネルは、所定のサンプリング周期ごとにディジタル楽音信号の生成のための処理をそれぞれ行う、読出し回路55a、ディジタル制御フィルタ55b及びディジタル制御増幅器55cを備えている。読出し回路55aは、後述するコンピュータ本体部からの制御パラメータ(読出し開始アドレス、読出し終了アドレス、ピッチシフト量など)及び発音開始指示に応じて、後述する波形メモリWMに記憶されている波形データを読出してディジタル楽音信号を生成し、生成したディジタル楽音信号をディジタル制御フィルタ55bに出力する。また、この読出し回路55aは、必要に応じて、前記波形メモリWMから読出した波形データに補間演算を施したり、波形メモリWMに記憶されている波形データが圧縮されていれば解凍したりする。   The tone generator 55 is connected to the bus 56, generates a digital musical tone signal according to various control signals supplied via the bus 56, and outputs the digital musical tone signal to the effect circuit 57. As shown in FIG. 9, the tone generator circuit 55 includes a plurality of tone generation channels ch1, ch2,... Chn. The plurality of tone generation channels ch1, ch2,... Chn are configured in the same manner, and each channel performs processing for generating a digital musical tone signal for each predetermined sampling period, a readout circuit 55a, a digital control filter 55b and a digital control amplifier 55c. The read circuit 55a reads waveform data stored in a waveform memory WM, which will be described later, in accordance with control parameters (read start address, read end address, pitch shift amount, etc.) and a sound generation start instruction from the computer main body, which will be described later. The digital musical tone signal is generated, and the generated digital musical tone signal is output to the digital control filter 55b. Further, the read circuit 55a performs an interpolation operation on the waveform data read from the waveform memory WM as necessary, or decompresses the waveform data stored in the waveform memory WM if it is compressed.

ディジタル制御フィルタ55bは、後述するコンピュータ本体部からの制御パラメータ(フィルタ制御パラメータ群など)、発音開始指示、リリース開始指示及び急速減衰指示に応じて、読出し回路55aから出力される波形データからなるディジタル楽音信号の周波数特性を制御してディジタル制御増幅器55cに出力する。ディジタル制御増幅器55cは、後述するコンピュータ本体部からの制御パラメータ(振幅制御パラメータ群など)、発音開始指示、リリース開始指示及び急速減衰指示に応じて、ディジタル制御フィルタ55bから出力される波形データからなるディジタル楽音信号の振幅特性(振幅エンベロープ)を制御してチャンネル累算回路55dに出力する。チャンネル累算回路55dは、複数の発音チャンネルch1,ch2・・・chnからのディジタル楽音信号を累算すなわち混合して出力する。   The digital control filter 55b is a digital signal composed of waveform data output from the readout circuit 55a in response to control parameters (filter control parameter group, etc.), sound generation start instruction, release start instruction, and rapid attenuation instruction from the computer main body, which will be described later. The frequency characteristic of the tone signal is controlled and output to the digital control amplifier 55c. The digital control amplifier 55c is composed of waveform data output from the digital control filter 55b in response to control parameters (amplitude control parameter group, etc.), a sounding start instruction, a release start instruction, and a rapid attenuation instruction from a computer main body to be described later. The amplitude characteristic (amplitude envelope) of the digital musical tone signal is controlled and output to the channel accumulation circuit 55d. The channel accumulating circuit 55d accumulates, ie, mixes and outputs digital musical tone signals from a plurality of tone generation channels ch1, ch2,... Chn.

効果回路57は、音源回路55から出力されるディジタル楽音信号に、後述するコンピュータ本体部からの制御パラメータに従ったコーラス、リバーブなどの効果を付与してサウンドシステム58に出力する。なお、この効果の付与においても、効果回路57は、所定のサンプリング周期ごとにディジタル楽音信号を処理する。サウンドシステム58は、D/A変換器、アナログ増幅器及びスピーカを含み、効果回路57から供給されたディジタル楽音信号に対応した楽音を放音する。   The effect circuit 57 gives effects such as chorus and reverb according to control parameters from a computer main body, which will be described later, to the digital musical tone signal output from the tone generator circuit 55 and outputs the result to the sound system 58. Even in the application of this effect, the effect circuit 57 processes the digital musical tone signal every predetermined sampling period. The sound system 58 includes a D / A converter, an analog amplifier, and a speaker, and emits a musical sound corresponding to the digital musical sound signal supplied from the effect circuit 57.

また、この電子楽器は、バス56にそれぞれ接続されたCPU61、ROM62、RAM63、タイマ64、外部記憶装置65、MIDIインターフェース回路66及び外部インターフェース回路67を備えている。CPU61、ROM62、RAM63及びタイマ64は、コンピュータ本体部を構成するもので、特に、CPU61は、図12に示すノートオンイベント処理プログラムを実行する。外部記憶装置65は、この電子楽器に予め組み込まれているハードディスクHD及びフラッシュメモリ、同電子楽器に装着可能なコンパクトディスクCD及びフレキシブルディスクFDなどの種々の記録媒体と、各記録媒体に対するドライブユニットを含むものであり、各種データ及びプログラムの記憶及び読出しを可能にしている。   The electronic musical instrument also includes a CPU 61, a ROM 62, a RAM 63, a timer 64, an external storage device 65, a MIDI interface circuit 66, and an external interface circuit 67 connected to the bus 56, respectively. The CPU 61, the ROM 62, the RAM 63, and the timer 64 constitute a computer main body. In particular, the CPU 61 executes a note-on event processing program shown in FIG. The external storage device 65 includes various recording media such as a hard disk HD and a flash memory that are pre-installed in the electronic musical instrument, a compact disc CD and a flexible disc FD that can be mounted on the electronic musical instrument, and a drive unit for each recording medium. It is possible to store and read various data and programs.

ROM62又は外部記憶装置65には、詳しくは後述する波形データを記憶した波形メモリWM及び音色制御パラメータを記憶した音色パラメータメモリPMが設けられているとともに、自動演奏データ及び自動リズムデータを含む各種データ及び前記ノートオンイベント処理プログラムを含む各種プログラムを記憶している。自動演奏データとは、1つ楽曲に関する鍵演奏音に関する鍵演奏イベントデータ(鍵タッチ強さVELを含むキーオン及びキーオフイベント)及び打楽器音に関する打楽器演奏イベントデータ(操作子タッチ強さVELを含む打楽器操作イベント)を楽曲の進行に従って時系列に記憶したデータである。また、自動リズムデータとは、マーチ、ワルツなどのリズムパターン種類ごとに打楽器音に関する打楽器演奏イベントデータ(操作子タッチ強さVELを含む打楽器操作イベント)を時間経過に従って複数小節にわたって記憶したデータである。なお、これらのデータ及びプログラムは予めROM62又は外部記憶装置65に記憶されていてもよいし、MIDIインターフェース回路66又は外部インターフェース回路67を介して外部から取り込んでもよい。MIDIインターフェース回路66には、他の電子楽器、シーケンサなどの外部MIDI機器71が接続可能となっている。外部インターフェース回路67は、通信ネットワーク72を介してサーバ73との接続を可能としている。そして、前述した各種データ及びプログラムが、外部MIDI機器71又はサーバ73から電子楽器に取込まれる。   The ROM 62 or the external storage device 65 is provided with a waveform memory WM storing waveform data, which will be described in detail later, and a timbre parameter memory PM storing timbre control parameters, and various data including automatic performance data and automatic rhythm data. And various programs including the note-on event processing program. Automatic performance data refers to key performance event data (key-on and key-off events including key touch strength VEL) and percussion instrument performance event data (operator touch strength VEL including operator touch strength VEL) related to percussion sound. Event) is stored in time series as the music progresses. Further, the automatic rhythm data is data in which percussion instrument performance event data (percussion instrument operation event including operator touch strength VEL) related to percussion instrument sounds is stored over a plurality of measures over time for each rhythm pattern type such as march and waltz. . These data and programs may be stored in advance in the ROM 62 or the external storage device 65, or may be taken in from the outside via the MIDI interface circuit 66 or the external interface circuit 67. An external MIDI device 71 such as another electronic musical instrument or a sequencer can be connected to the MIDI interface circuit 66. The external interface circuit 67 can be connected to the server 73 via the communication network 72. Then, the various data and programs described above are taken into the electronic musical instrument from the external MIDI device 71 or the server 73.

次に、波形メモリWM及び音色パラメータメモリPMについて説明する。波形メモリWMは、図10Aに示すように、複数の音色にそれぞれ対応した複数の記憶領域に分割されている。複数の音色の中には持続系の楽音も含まれているが、持続系の楽音は本発明には直接関係しないので、以降の説明においては減衰系の楽音についてのみ説明する。音色に対応した前記各記憶領域には、複数の鍵(複数の鍵音高)にそれぞれ対応した波形データ群からなる複数の波形セットが記憶されている。各波形セットは、複数の高速減衰波形データ及び1つの低速減衰波形データからなる。   Next, the waveform memory WM and the timbre parameter memory PM will be described. As shown in FIG. 10A, the waveform memory WM is divided into a plurality of storage areas respectively corresponding to a plurality of timbres. The plurality of timbres include a continuous tone, but since the continuous tone is not directly related to the present invention, only the decaying tone will be described in the following description. In each of the storage areas corresponding to timbres, a plurality of waveform sets made up of waveform data groups respectively corresponding to a plurality of keys (a plurality of key pitches) are stored. Each waveform set includes a plurality of fast decay waveform data and one slow decay waveform data.

高速減衰波形データは、上述した第1及び第2の波形データ生成方法によって生成した減衰系の楽音波形から減衰の速い成分波形のみを抽出した1秒程度にわたる高速減衰成分波形を表す波形データである。複数の高速減衰波形データは、発生楽音の異なる強弱(鍵タッチ強さVEL)にそれぞれ対応しており、この場合、4つの異なる強度に対応している。例えば、鍵タッチ強さVELが「1」〜「127」で表されるとすると、図11(A)の左側に上から順に示すように、鍵タッチ強さVELが「127」、「80」、「48」及び「16」である演奏音から抽出した高速減衰成分波形を表す4つの波形データが複数の高速減衰波形データとして記憶されている。値「127」は鍵タッチ強さVELの全範囲「1」〜「127」の最大値であり、値「80」、「48」及び「16」は、それぞれ前記鍵タッチ強さVELの全範囲をほぼ4分割した下側の3つの領域のほぼ中央値である。鍵タッチ強さ「127」に対応した高速減衰波形データを採用した理由は、次の低速減衰波形データと同じ鍵タッチ強さを採用することにより、波形データの用意のための処理を簡単にするためである。なお、前記値「127」に代えて、前記4分割した最上領域の中央値「112」を採用してもよい。さらに、鍵タッチ強さVELは、絶対的な尺度ではなく、相対的な尺度であるので、前記値「80」、「48」及び「16」に関しても、他の値を用いてもよい。前記「127」、「80」、「48」及び「16」の4段階に限らず、3段階又は5段階以上であってもよい。1つの低速減衰波形データは、最も強い強度で演奏された演奏音から抽出した10秒程度にわたる低速減衰成分波形を表す波形データである。例えば、この低速減衰波形データは、鍵タッチ強さVELが「127」である演奏音から抽出した低速減衰成分波形を表す波形データである。   The high-speed attenuation waveform data is waveform data representing a high-speed attenuation component waveform over about 1 second obtained by extracting only the fast decay component waveform from the attenuation-type musical sound waveform generated by the first and second waveform data generation methods described above. . The plurality of high-speed decay waveform data respectively correspond to different strengths (key touch strength VEL) of the generated musical sound, and in this case, correspond to four different strengths. For example, if the key touch strength VEL is represented by “1” to “127”, the key touch strength VEL is “127” and “80” as shown in order from the top on the left side of FIG. , “48” and “16”, four pieces of waveform data representing the fast decay component waveforms extracted from the performance sounds are stored as a plurality of fast decay waveform data. The value “127” is the maximum value of the entire range “1” to “127” of the key touch strength VEL, and the values “80”, “48”, and “16” are the entire range of the key touch strength VEL, respectively. Is approximately the median value of the three lower regions divided into four. The reason why the fast decay waveform data corresponding to the key touch strength “127” is adopted is that the same key touch strength as that of the next slow decay waveform data is adopted, thereby simplifying the processing for preparing the waveform data. Because. Instead of the value “127”, the median value “112” of the uppermost area divided into four may be adopted. Furthermore, since the key touch strength VEL is not an absolute scale but a relative scale, other values may be used for the values “80”, “48”, and “16”. It is not limited to the four stages “127”, “80”, “48”, and “16”, and may be three stages or five or more stages. One slow decay waveform data is waveform data representing a slow decay component waveform over about 10 seconds extracted from a performance sound played with the strongest intensity. For example, the slow decay waveform data is waveform data representing a slow decay component waveform extracted from a performance sound having a key touch strength VEL of “127”.

また、打楽器音に関する波形データも波形メモリWMに記憶されているが、打楽器音に関しては、複数の鍵(複数の鍵音高)ごとに用意する必要がなく1つのみで足りるので、1つの音色に対応した記憶領域には1つの波形セットしか記憶されていない。ただし、この場合も、1つの波形セット中には、前記と同様に、操作子タッチ強さVELが「127」、「80」、「48」及び「16」である演奏音(打楽器音)から抽出した高速減衰成分波形を表す4つの波形データが複数の高速減衰波形データとして含まれている。また、前記1つの波形セット中には、操作子タッチVELが「127」である演奏音(打楽器音)から抽出した低速減衰成分波形を表す1つの波形データも含まれている。この場合も、前述のように、前記操作子タッチ強さVELの値は「127」、「80」、「48」及び「16」に限られないと同時に、その数も適宜変更され得るものである。なお、複数の鍵音高に対応した減衰音及び打楽器音の前記高速減衰波形データ及び低速減衰波形データの生成方法に関しては、前述した通りである。これらの高速減衰波形データ及び低速減衰波形データを、波形メモリWMにそのまま記憶しておいてもよいが、圧縮して記憶しておくようにしてもよい。また、波形メモリWMに記憶されている複数の異なる鍵タッチ強さVEL(又は操作子タッチ強さVEL)に対応した複数の高速減衰波形データに関しては、それらの振幅(音量レベル)を鍵タッチ強さVEL(又は操作子タッチ強さVEL)にそれぞれ対応させてもよいが、本実施形態では、鍵タッチ強さVEL(又は操作子タッチ強さVEL)が異なっていても、複数の高速減衰波形データの振幅をほぼ同じにしている。これは、小さな鍵タッチ強さVEL(又は操作子タッチ強さVEL)に対応した高速減衰波形データの振幅を大きくすることにより、高精度で波形データを記憶しておくことができるからである。   Waveform data related to percussion instrument sounds is also stored in the waveform memory WM, but percussion instrument sounds need not be prepared for each of a plurality of keys (a plurality of key pitches), and only one is required. Only one waveform set is stored in the storage area corresponding to. However, also in this case, during one waveform set, from the performance sound (percussion instrument sound) whose operation element touch strength VEL is “127”, “80”, “48”, and “16”, as described above. Four waveform data representing the extracted fast decay component waveform are included as a plurality of fast decay waveform data. The one waveform set also includes one waveform data representing a low-speed decay component waveform extracted from a performance sound (percussion instrument sound) whose operation element touch VEL is “127”. Also in this case, as described above, the value of the operator touch strength VEL is not limited to “127”, “80”, “48”, and “16”, and at the same time, the number can be changed as appropriate. is there. The method for generating the high-speed attenuation waveform data and the low-speed attenuation waveform data of the attenuation sound and percussion instrument sound corresponding to a plurality of key pitches is as described above. These fast decay waveform data and slow decay waveform data may be stored in the waveform memory WM as they are, or may be compressed and stored. For a plurality of high-speed decay waveform data corresponding to a plurality of different key touch strengths VEL (or operation element touch strength VEL) stored in the waveform memory WM, the amplitude (volume level) thereof is set to the key touch strength. However, in this embodiment, even if the key touch strength VEL (or the manipulator touch strength VEL) is different, a plurality of high-speed decay waveforms are possible. The amplitude of the data is almost the same. This is because the waveform data can be stored with high accuracy by increasing the amplitude of the fast decay waveform data corresponding to the small key touch strength VEL (or the operator touch strength VEL).

音色パラメータメモリPMも、図10Bに示すように、複数の音色にそれぞれ対応した複数の記憶領域に分割されている。この場合も、持続系の楽音は本発明には直接関係しないので、以降の説明においては減衰系の楽音についてのみ説明する。音色に対応した前記各記憶領域には、音色名を表す音色名情報を含むヘッダを先頭にして、波形セット制御パラメータ群、フィルタ制御パラメータ群、振幅制御パラメータ群、その他の制御パラメータ群、及び複数の波形セットに関する選択情報が記憶されている。波形セット制御パラメータ群、フィルタ制御パラメータ群及び振幅制御パラメータ群は、音源回路55内の読出し回路55a、ディジタル制御フィルタ55b及びディジタル制御増幅器55cにそれぞれ供給されて、読出し回路55a、ディジタル制御フィルタ55b及びディジタル制御増幅器55cにてディジタル楽音信号の生成に利用される1つの音色に関するパラメータ群である。その他の制御パラメータ群は、音源回路55及び効果回路57に供給されて1つの音色のディジタル楽音信号の生成に利用されるその他のパラメータである。   The timbre parameter memory PM is also divided into a plurality of storage areas respectively corresponding to a plurality of timbres, as shown in FIG. 10B. Also in this case, since the continuous tone is not directly related to the present invention, only the decaying tone will be described in the following description. Each storage area corresponding to a timbre includes a head including a timbre name information representing a timbre name, a waveform set control parameter group, a filter control parameter group, an amplitude control parameter group, other control parameter groups, and a plurality of Selection information relating to the waveform set is stored. The waveform set control parameter group, the filter control parameter group, and the amplitude control parameter group are supplied to the readout circuit 55a, the digital control filter 55b, and the digital control amplifier 55c in the sound source circuit 55, respectively, and the readout circuit 55a, the digital control filter 55b, and This is a parameter group relating to one tone color used for generating a digital musical tone signal in the digital control amplifier 55c. The other control parameter groups are other parameters that are supplied to the tone generator circuit 55 and the effect circuit 57 and used to generate a digital tone signal of one tone color.

複数の波形セットに関する選択情報は、図10Aの複数の波形セットにそれぞれ対応している。各波形セットに関する選択情報は、元ピッチ、高速減衰波形選択情報及び低速減衰波形選択情報からなる。元ピッチは、波形データを用いたディジタル楽音信号の生成時におけるピッチシフト用のパラメータであり、波形データの生成時に録音した演奏音のピッチ、前記演奏音の録音時のサンプリング周波数などを表す情報からなる。そして、説明を簡単化するために鍵ごと波形データを用意するようにした本実施形態であって、波形データの生成時おけるサンプリング周波数と、音源回路55におけるディジタル楽音信号の生成のためのサンプリング周波数とが同じである場合に限り、波形データを生成した際の演奏音のピッチ(鍵音高)のみを表す情報を元ピッチとして採用することができる。なお、前述したコンピュータ本体部から読出し回路55aに供給されるピッチシフト量は、押鍵された鍵の音高と波形データを生成するために採用された録音時における演奏音のピッチとの差である。高速減衰波形選択情報は、各波形セット内の複数の高速減衰波形データの各記憶領域の先頭及び末尾のアドレスをそれぞれ表す複数組の先頭アドレス情報及び末尾アドレス情報である。これらの複数組の先頭アドレス情報及び末尾アドレス情報は、鍵タッチの強い順に配列されている。低速減衰波形選択情報は各波形セット内の1つの低速減衰波形データの記憶領域の先頭及び末尾のアドレスをそれぞれ表す1組の先頭アドレス情報及び末尾アドレス情報である。   The selection information related to the plurality of waveform sets corresponds to the plurality of waveform sets in FIG. 10A, respectively. The selection information related to each waveform set includes original pitch, fast decay waveform selection information, and slow decay waveform selection information. The original pitch is a parameter for pitch shifting when generating a digital musical sound signal using waveform data. From the information indicating the pitch of the performance sound recorded when generating the waveform data, the sampling frequency when recording the performance sound, etc. Become. In this embodiment, waveform data for each key is prepared to simplify the explanation, and the sampling frequency for generating waveform data and the sampling frequency for generating a digital musical tone signal in the tone generator circuit 55 are described. Is the same as the original pitch, the information representing only the pitch (key pitch) of the performance sound when the waveform data is generated can be used. Note that the pitch shift amount supplied from the computer main unit to the readout circuit 55a is the difference between the pitch of the key pressed and the pitch of the performance sound at the time of recording employed to generate the waveform data. is there. The fast decay waveform selection information is a plurality of sets of start address information and tail address information representing the start and end addresses of each storage area of a plurality of fast decay waveform data in each waveform set. The plurality of sets of head address information and tail address information are arranged in order of strong key touch. The slow decay waveform selection information is a set of head address information and tail address information representing the start and end addresses of one slow decay waveform data storage area in each waveform set, respectively.

また、音色パラメータメモリPMには、打楽器音に関しても、前述の場合と同様に、ヘッダ、波形セット制御パラメータ群、フィルタ制御パラメータ群、振幅制御パラメータ群、その他の制御パラメータ群、及び波形セットに関する選択情報が記憶されている。しかし、基本的には、打楽器音に関しては、各楽器種類ごとに1つの波形セットが用意されているので、波形セットに関する選択情報は、波形データの生成時におけるサンプリング周波数と、音源回路55におけるディジタル楽音信号の生成のためのサンプリング周波数が同じである場合に限り、1つの波形セットに関する高速減衰波形選択情報及び低速減衰波形選択情報のみでよい。しかしながら、ティンパニーのように、1種類の打楽器に対して、複数の異なるピッチの打楽器音信号を発生させる場合には、複数のピッチに対応した複数の波形データを用意するか、1つの波形データのみを用意して再生ピッチを変更する。複数の波形データを用意する場合には、前述のように、波形データの生成時におけるサンプリング周波数と、音源回路55におけるディジタル楽音信号の生成のためのサンプリング周波数が同じである場合に限り、元ピッチは不要となる。しかし、1つの波形データのみを用意する場合には、波形データの生成のために録音した演奏音のピッチに関する情報は必要である。高速減衰波形選択情報及び低速減衰波形選択情報は、前述した押鍵によって発生される減衰音の場合と同じである。   In the timbre parameter memory PM, as to the percussion instrument sound, as in the case described above, the selection related to the header, waveform set control parameter group, filter control parameter group, amplitude control parameter group, other control parameter group, and waveform set is selected. Information is stored. However, basically, for percussion instrument sounds, one waveform set is prepared for each instrument type, so selection information related to the waveform set includes the sampling frequency at the time of waveform data generation and the digital in the tone generator circuit 55. Only when the sampling frequency for generating a musical sound signal is the same, only the fast decay waveform selection information and the slow decay waveform selection information for one waveform set are required. However, when generating percussion instrument sound signals having a plurality of different pitches for one type of percussion instrument, such as timpani, a plurality of waveform data corresponding to a plurality of pitches is prepared, or only one waveform data is prepared. Prepare and change the playback pitch. When preparing a plurality of waveform data, as described above, only when the sampling frequency when generating the waveform data and the sampling frequency for generating the digital musical tone signal in the tone generator circuit 55 are the same, the original pitch is used. Is no longer necessary. However, when only one waveform data is prepared, information on the pitch of the performance sound recorded for generating the waveform data is necessary. The fast decay waveform selection information and the slow decay waveform selection information are the same as in the case of the decay sound generated by the key depression described above.

次に、上記のように構成した電子楽器の動作について説明する。演奏者が複数のパネル操作子53のいずれかを操作して、鍵盤51の演奏操作によって発生される減衰系の楽音の音色(例えば、電気ピアノ)を選択すると、CPU61は、図示しないプログラムの実行により、音色パラメータメモリPM内の選択された音色に対応した記憶領域から波形セット制御パラメータ群、フィルタ制御パラメータ群、振幅制御パラメータ群及びその他の制御パラメータ群を読出してRAM63内に一時的に記憶しておく。   Next, the operation of the electronic musical instrument configured as described above will be described. When the performer operates one of the plurality of panel operators 53 and selects a tone of a decaying musical tone (for example, an electric piano) generated by the performance operation of the keyboard 51, the CPU 61 executes a program (not shown). Thus, the waveform set control parameter group, the filter control parameter group, the amplitude control parameter group, and other control parameter groups are read from the storage area corresponding to the selected tone color in the tone color parameter memory PM, and temporarily stored in the RAM 63. Keep it.

この状態で、演奏者が鍵盤51のいずれかの鍵を押鍵操作すると、CPU61は、図12のノートオンイベント処理プログラムの実行をステップS300にて開始する。このノートオンイベント処理プログラムの実行開始後、CPU61は、ステップS302にて検出回路51aによって検出された押鍵された鍵を表すノートナンバNN及び鍵タッチ強さVELを表す鍵タッチ信号を入力する。次に、CPU61は、ステップS304にて、この押鍵された鍵に関する楽音信号を生成するために、前記鍵に対して音源回路55の複数の発音チャンネル1ch〜nchのうちの空いている2つの発音チャンネルを第1及び第2の発音チャンネルとして割当てる。   In this state, when the performer presses any key on the keyboard 51, the CPU 61 starts executing the note-on event processing program of FIG. 12 in step S300. After starting execution of the note-on event processing program, the CPU 61 inputs a note number NN representing the depressed key detected by the detection circuit 51a in step S302 and a key touch signal representing the key touch strength VEL. Next, in step S304, the CPU 61 generates two musical tone signals related to the depressed key, and two free sound channels 1ch to nch of the tone generator circuit 55 are generated for the key. Assign sound generation channels as first and second sound generation channels.

前記ステップS304の処理後、CPU61は、ステップS306にて、音色パラメータメモリ内の前記選択された音色に対応した記憶領域に記憶されている複数の波形セット1,2・・に関する複数の選択情報の中から、前記選択情報中の元ピッチと前記入力したノートナンバNNを比較して、押鍵された鍵に対応する選択情報を指定、すなわちノートナンバNNに対応した波形セットNNに関する選択情報を指定する。次に、CPU61は、ステップS308にて、前記選択情報中に含まれる複数の高速減衰波形データの各記憶領域の先頭及び末尾の記憶アドレスをそれぞれ表す複数組のアドレス情報の中から、鍵タッチ強さVELに対応した1つの高速減衰波形データの記憶領域の先頭及び末尾の記憶アドレスをそれぞれ表す1組のアドレス情報を選択する。この1組のアドレス情報の選択においては、複数の高速減衰波形データにそれぞれ対応した複数の鍵タッチ強さ(この場合には、「127」、「80」、「48」、「16」)のうちの、鍵タッチ強さVELに最も近い1つの鍵タッチ強さに対応した1つの高速減衰波形データに関する高速減衰波形選択情報(1組の先頭アドレス情報及び末尾アドレス情報)を選択する。   After the processing in step S304, in step S306, the CPU 61 stores a plurality of selection information related to the plurality of waveform sets 1, 2,... Stored in the storage area corresponding to the selected timbre in the timbre parameter memory. Compares the original pitch in the selection information with the inputted note number NN, and specifies selection information corresponding to the key pressed, that is, specifies selection information related to the waveform set NN corresponding to the note number NN To do. Next, in step S308, the CPU 61 selects a key touch strength from among a plurality of sets of address information respectively representing the beginning and end storage addresses of each storage area of the plurality of fast decay waveform data included in the selection information. A set of address information respectively representing the storage addresses at the beginning and end of one storage area of one fast decay waveform data corresponding to the length VEL is selected. In selecting this set of address information, a plurality of key touch strengths (in this case, “127”, “80”, “48”, “16”) respectively corresponding to a plurality of fast decay waveform data. Of these, fast decay waveform selection information (a set of head address information and tail address information) relating to one fast decay waveform data corresponding to one key touch strength closest to the key touch strength VEL is selected.

次に、CPU61は、ステップS310にて前記割当てられた第1の発音チャンネルに対して、高速減衰成分波形の発生のための準備処理を行う。この高速減衰成分波形の準備処理においては、CPU61は、前記選択した1組の先頭アドレス情報及び末尾アドレス情報をそれぞれ読出し開始アドレス及び読出し終了アドレスとして音源回路55の第1の発音チャンネルに出力するとともに、前記図示しないプログラム処理によってRAM63に一時的に記憶しておいた波形セット制御パラメータ群、フィルタ制御パラメータ群、振幅制御パラメータ群及びその他の制御パラメータ群を前記第1の発音チャンネルに出力する。また、この高速減衰成分波形の発生のための準備処理においては、CPU61は、鍵タッチ強さVELに応じて、音量レベルを計算、すなわち第2の発音チャンネルで生成されるディジタル楽音信号の音量レベルとバランスがとれた音量レベルを計算して、計算した音量レベルを表す制御パラメータを第1の発音チャンネルに出力する。これは、波形メモリWMに記憶されている複数の異なる鍵タッチ強さに対応した複数の高速減衰波形データの各最大振幅は、本実施形態ではほぼ同じであり、鍵タッチ強さVELに対応していないからである。前記第1の発音チャンネルは、前記出力された読出し開始アドレス、読出し終了アドレス、及び音量レベルを表す制御パラメータを含む各種制御パラメータを一時的に記憶して、ディジタル楽音信号の生成のための準備を行う。   Next, in step S310, the CPU 61 performs a preparation process for generating a fast decay component waveform for the assigned first sound generation channel. In this high-speed attenuation component waveform preparation process, the CPU 61 outputs the selected set of head address information and tail address information to the first tone generation channel of the tone generator 55 as a read start address and a read end address, respectively. The waveform set control parameter group, the filter control parameter group, the amplitude control parameter group, and other control parameter groups temporarily stored in the RAM 63 by the program processing (not shown) are output to the first tone generation channel. In the preparation process for generating the fast decay component waveform, the CPU 61 calculates the volume level according to the key touch strength VEL, that is, the volume level of the digital musical tone signal generated in the second tone generation channel. And a balanced volume level is calculated, and a control parameter representing the calculated volume level is output to the first tone generation channel. This is because each maximum amplitude of a plurality of fast decay waveform data corresponding to a plurality of different key touch strengths stored in the waveform memory WM is substantially the same in this embodiment, and corresponds to the key touch strength VEL. Because it is not. The first tone generation channel temporarily stores various control parameters including the output readout start address, readout end address, and control parameter indicating the volume level, and prepares for generation of a digital musical tone signal. Do.

前記ステップS310の処理後、CPU61は、ステップS312にて、鍵タッチ強さVELを用いて、鍵タッチ強さVELが小さくなるに従って、前記選択した先頭アドレス情報によって表される記憶アドレスから前記選択した末尾アドレス情報によって表される記憶アドレスに近づくアドレスを低速減衰波形データの読出し開始アドレスとして決定する。具体的には、例えば、図11(B)に示すように、先頭及び末尾の記憶アドレスをそれぞれADtop,ADendとすると、読出し開始アドレスADstartは下記式1の演算により計算される。
ADstart=ADtop+(ADend−ADtop−INTmin)・{1−(VEL−1)/126} …式1
なお、前記式1中のINTminは、鍵タッチ強さVELが最小の「1」であるときの読出し開始アドレスADstartから末尾の記憶アドレスADendまでのアドレス間隔に等しい値を表す固定値である。ただし、前記式1の演算結果が小数部を含む場合には、四捨五入により演算結果は整数化される。
After the processing in step S310, the CPU 61 uses the key touch strength VEL in step S312, and selects the storage address represented by the selected head address information as the key touch strength VEL decreases. The address approaching the storage address represented by the tail address information is determined as the reading start address of the slow decay waveform data. Specifically, for example, as shown in FIG. 11B, if the top and end storage addresses are ADtop and ADend, respectively, the read start address ADstart is calculated by the following equation 1.
ADstart = ADtop + (ADend−ADtop−INTmin) · {1− (VEL−1) / 126} Equation 1
Note that INTmin in Equation 1 is a fixed value representing a value equal to the address interval from the read start address ADstart to the end storage address ADend when the key touch strength VEL is the minimum “1”. However, when the calculation result of Equation 1 includes a decimal part, the calculation result is converted to an integer by rounding off.

前記式1によれば、鍵タッチ強さVELが最大の「127」であるときには、読出し開始アドレスADstartは先頭の記憶アドレスADtopに設定される。鍵タッチ強さVELが小さくなるに従って、読出し開始アドレスADstartは先頭の記憶アドレスADtopから末尾の記憶アドレスADendに向かって変化する。そして、鍵タッチ強さVELが最小の「1」であるときには、読出し開始アドレスADstartは末尾の記憶アドレスADendからアドレス間隔INTminだけ先頭の記憶アドレスADtop側のアドレスに設定される。   According to Equation 1, when the key touch strength VEL is the maximum “127”, the read start address ADstart is set to the top storage address ADtop. As the key touch strength VEL decreases, the read start address ADstart changes from the top storage address ADtop to the end storage address ADend. When the key touch strength VEL is the minimum “1”, the read start address ADstart is set to the address on the top storage address ADtop side by the address interval INTmin from the end storage address ADend.

ただし、前記式1は本実施形態を理解し易くするために単純化されたモデルに基づく式であり、一般化できる式ではない。ここでは、算出される数値に注目すべきではなく、むしろ算出される数値の傾向に注目すべきである。また、式1の先頭アドレスADtopに関しては、必ずしも先頭の記憶アドレスでなくてもよい。すなわち、読出し開始アドレスADstartは、鍵タッチ強さVELが最大値「127」であるとき最も先頭に近いアドレスに設定され、鍵タッチ強さVELが小さくなるに従って前記最も先頭に近いアドレスから後方に変化するアドレスに設定されればよい。そして、この読出し開始アドレスADstartの計算においては、楽器の種類に応じて、種々の関数、テーブルが利用され得る。特に、この読出し開始アドレスADstartはリニアスケールで規定され、またディジタル楽音信号の音量レベル(鍵タッチ強さVEL)はデシベルスケールで規定されているので、デシベルスケール上で鍵タッチ強さVELが減少すると、この読出し開始アドレスADstartは先頭の記憶アドレスADtopから後方にリニアに変化する。そして、このような読出し開始アドレスADstartの決定により、波形データの読出しによって生成されるディジタル楽音信号の音量レベルを制御しなくても、前記生成されるディジタル楽音信号の音量レベルは鍵タッチ強さVELに対応したものとなる。   However, the formula 1 is based on a model simplified for easy understanding of the present embodiment, and is not a formula that can be generalized. Here, attention should not be paid to the calculated numerical value, but rather the tendency of the calculated numerical value. Further, the top address ADtop in Equation 1 is not necessarily the top storage address. That is, the read start address ADstart is set to the address closest to the top when the key touch strength VEL is the maximum value “127”, and changes backward from the address closest to the top as the key touch strength VEL decreases. It may be set to the address to be. In calculating the read start address ADstart, various functions and tables can be used depending on the type of musical instrument. In particular, the read start address ADstart is defined by a linear scale, and the volume level (key touch strength VEL) of the digital musical tone signal is defined by a decibel scale. Therefore, when the key touch strength VEL decreases on the decibel scale. The read start address ADstart linearly changes backward from the top storage address ADtop. By determining the read start address ADstart, the volume level of the generated digital tone signal can be controlled by the key touch strength VEL without controlling the volume level of the digital tone signal generated by reading the waveform data. It becomes a thing corresponding to.

次に、CPU61は、ステップS314にて前記割当てられた第2の発音チャンネルに対して、低速減衰成分波形の発生のための準備処理を行う。この低速減衰成分波形の準備処理においては、CPU61は、前記決定した読出し開始アドレスADstartと共に、低速減衰波形データの末尾アドレス情報を読出し終了アドレスとして音源回路55の第2の発音チャンネルに出力するとともに、前記図示しないプログラム処理によってRAM63に一時的に記憶しておいた波形セット制御パラメータ群、フィルタ制御パラメータ群、振幅制御パラメータ群及びその他の制御パラメータ群を前記第2の発音チャンネルに出力する。前記第2の発音チャンネルは前記出力された読出し開始アドレス、読出し終了アドレス及び各種制御パラメータを一時的に記憶して、ディジタル楽音信号の生成のための準備を行う。なお、この第2の発音チャンネルについては、第1の発音チャンネルで生成されるディジタル楽音信号と音量バランスがとれるように音量レベルを制御しなければならないが、鍵タッチ強さVELに応じた音量レベル制御は不要である。   Next, in step S314, the CPU 61 performs a preparation process for generating a slow decay component waveform for the assigned second tone generation channel. In the preparation process of the slow decay component waveform, the CPU 61 outputs the tail address information of the slow decay waveform data together with the determined read start address ADstart to the second tone generation channel of the tone generator circuit 55 as a read end address. The waveform set control parameter group, the filter control parameter group, the amplitude control parameter group, and other control parameter groups temporarily stored in the RAM 63 by the program process (not shown) are output to the second tone generation channel. The second tone generation channel temporarily stores the output read start address, read end address, and various control parameters, and prepares for generation of a digital musical tone signal. For the second tone generation channel, the volume level must be controlled so that the volume balance is achieved with the digital tone signal generated by the first tone generation channel, but the volume level corresponding to the key touch strength VEL is required. No control is necessary.

前記ステップS314の処理後、CPU61は、ステップS316にて、前記第1及び第2の発音チャンネルに発音開始を指示して、ステップS318にてこのノートオンイベント処理プログラムの実行を終了する。前記第1及び第2の発音チャンネルは、この発音開始の指示に応答して、ディジタル楽音信号を生成し始める。前記第1の発音チャンネルにおいては、その読出し回路55aが読出し開始アドレスから時間経過に従ってアドレスを歩進させながら、波形メモリWMに記憶されている高速減衰波形データを順次読出して、高速減衰波形データにより表される高速減衰成分波形からなるディジタル楽音信号を生成して出力する。この場合、本実施形態では、波形データの生成時における演奏音のサンプリング周波数と、音源回路55によるディジタル楽音信号の生成のためのサンプリング周波数が同じであり、かつ各鍵ごとに波形セットが用意されているので、ピッチシフトを必要とせず、アドレスの歩進量は各サンプリング周期ごとに「1」である。しかし、これ以外の場合には、ピッチシフト制御を行う必要がある。そして、この高速減衰波形データの読出しは、前記アドレスの歩進が読出し終了アドレスに達した時点で終了する。この高速減衰波形データの読出しが終了した時点で、第1の発音チャンネルは解放されて空きチャンネルとされる。その結果、ノートナンバNN及び鍵タッチVELにより指定された高速減衰波形データに基づく高速減衰成分波形が生成される。   After the processing in step S314, the CPU 61 instructs the first and second sound generation channels to start sounding in step S316, and ends the execution of the note-on event processing program in step S318. The first and second sound generation channels start to generate a digital musical tone signal in response to the sound generation start instruction. In the first tone generation channel, the readout circuit 55a sequentially reads out the high-speed decay waveform data stored in the waveform memory WM while stepping up the address as time elapses from the read start address. Generates and outputs a digital musical tone signal composed of a high-speed decay component waveform represented. In this case, in this embodiment, the sampling frequency of the performance sound when generating the waveform data is the same as the sampling frequency for generating the digital musical tone signal by the tone generator circuit 55, and a waveform set is prepared for each key. Therefore, pitch shift is not required, and the address increment is “1” for each sampling period. However, in other cases, it is necessary to perform pitch shift control. The reading of the high-speed decay waveform data ends when the address step reaches the read end address. When the reading of the high-speed decay waveform data is completed, the first tone generation channel is released to become an empty channel. As a result, a fast decay component waveform based on the fast decay waveform data specified by the note number NN and the key touch VEL is generated.

この読出し回路55aから出力されたディジタル楽音信号は、ディジタル制御フィルタ55bにより周波数特性が制御され、ディジタル制御増幅器55cにより振幅特性が制御されてチャンネル累算回路55dに出力される。特に、この第1の発音チャンネルにおける振幅特性の制御に関しては、前記ステップS20の処理により音源回路55に供給された音量レベルを表す制御パラメータを用いて、ディジタル制御型増幅器55cはディジタル楽音信号の定常的な音量レベルを鍵タッチ強さVELに応じて制御する。なお、ディジタル制御増幅器55cは、この場合、後述するようにリリース開始の指示及び急速減衰の指示を受けない限り、基本的には、読出された高速減衰波形データに基づくディジタル楽音信号の振幅特性を時間変化させることはない。     The digital musical tone signal output from the readout circuit 55a is frequency-controlled by the digital control filter 55b, and the amplitude characteristic is controlled by the digital control amplifier 55c, and is output to the channel accumulation circuit 55d. In particular, regarding the control of the amplitude characteristic in the first tone generation channel, the digital control type amplifier 55c uses the control parameter indicating the volume level supplied to the tone generator circuit 55 by the processing of step S20, so that the digital control type amplifier 55c is in a steady state of the digital tone signal. The volume level is controlled according to the key touch strength VEL. In this case, the digital control amplifier 55c basically changes the amplitude characteristic of the digital musical tone signal based on the read high-speed decay waveform data unless a release start instruction and a rapid decay instruction are received as will be described later. There is no time change.

一方、前記第2の発音チャンネルにおいても、その読出し回路55aが読出し開始アドレスから時間経過に従ってアドレスを歩進させながら、波形メモリWMに記憶されている低速減衰波形データを順次読出して、低速減衰波形データにより表される低速減衰成分波形からなるディジタル楽音信号を生成して出力する。この場合も、本実施形態では、波形データの生成時における演奏音のサンプリング周波数と、音源回路55によるディジタル楽音信号の生成ためのサンプリング周波数が同じであり、かつ各鍵ごとに波形セットが用意されているので、ピッチシフトを必要とせず、アドレス歩進量は各サンプリング周期ごとに「1」である。しかし、これ以外の場合には、ピッチシフト制御を行う必要がある。そして、この低速減衰波形データの読出しも、前記アドレスの歩進が読出し終了アドレスに達した時点で終了する。この場合も、低速減衰波形データの読出しが終了した時点で、第2の発音チャンネルは解放されて空きチャンネルとなる。その結果、ノートナンバNNにより指定された低速減衰波形データが鍵タッチ強さVELにより指定された読出し開始アドレスから読出され始め、読出された低速減衰波形データに基づいて低速減衰成分波形が生成される。   On the other hand, also in the second tone generation channel, the readout circuit 55a sequentially reads out the low-speed decay waveform data stored in the waveform memory WM while stepping up the address as time elapses from the read-out start address. A digital musical tone signal composed of a slow decay component waveform represented by data is generated and output. Also in this case, in this embodiment, the sampling frequency of the performance sound when generating the waveform data is the same as the sampling frequency for generating the digital musical tone signal by the tone generator circuit 55, and a waveform set is prepared for each key. Therefore, no pitch shift is required, and the address increment is “1” for each sampling period. However, in other cases, it is necessary to perform pitch shift control. Then, the reading of the low-speed decay waveform data also ends when the address step reaches the read end address. Also in this case, when the reading of the slow decay waveform data is completed, the second sound generation channel is released and becomes an empty channel. As a result, the slow decay waveform data designated by the note number NN starts to be read from the readout start address designated by the key touch strength VEL, and the slow decay component waveform is generated based on the read slow decay waveform data. .

この読出し回路55aから出力されたディジタル楽音信号も、ディジタル制御フィルタ55bにより周波数特性が制御され、ディジタル制御増幅器55cにより振幅特性が制御されてチャンネル累算回路55dに出力される。この第2の発音チャンネルにおける振幅特性の制御に関しては、前記第1の発音チャンネルとは異なり、鍵タッチ強さVELに応じたディジタル楽音信号の定常的な音量レベルは前述した低速減衰波形データの読出し開始アドレスADstartに依存するので、鍵タッチ強さVELに応じた音量レベルの制御は行われず、必要に応じた他の音量レベルの制御が行われる。なお、この場合も、ディジタル制御増幅器55cは、後述するようにリリース開始の指示及び急速減衰の指示を受けない限り、基本的には、読出された高速減衰波形データに基づくディジタル楽音信号の振幅特性を時間変化させることはない。   The frequency characteristic of the digital musical tone signal output from the readout circuit 55a is also controlled by the digital control filter 55b, the amplitude characteristic is controlled by the digital control amplifier 55c, and is output to the channel accumulation circuit 55d. Regarding the control of the amplitude characteristic in the second tone generation channel, unlike the first tone generation channel, the steady volume level of the digital musical tone signal corresponding to the key touch strength VEL is read out from the low-speed decay waveform data described above. Since it depends on the start address ADstart, the volume level is not controlled in accordance with the key touch strength VEL, and other volume levels are controlled as necessary. Also in this case, the digital control amplifier 55c basically has an amplitude characteristic of the digital musical tone signal based on the read high-speed decay waveform data unless receiving a release start instruction and a rapid decay instruction as will be described later. The time is not changed.

チャンネル累算回路55dは、前記第1の発音チャンネルから出力された高速減衰成分波形からなるディジタル楽音信号と、前記第2の発音チャンネルから出力された低速減衰成分波形からなるディジタル楽音信号とを加算することにより混合し、混合したディジタル楽音信号を効果回路57に出力する。効果回路57は、図示しないプログラム処理により供給された効果制御用パラメータに基づく効果を付与してサウンドシステム58に出力する。サウンドシステム58は、前記出力されたディジタル楽音信号をアナログ楽音信号に変換して、スピーカを介して放音する。   The channel accumulation circuit 55d adds the digital musical tone signal composed of the fast decay component waveform output from the first tone generation channel and the digital musical tone signal composed of the slow decay component waveform output from the second tone generation channel. The mixed digital musical tone signal is output to the effect circuit 57. The effect circuit 57 gives an effect based on an effect control parameter supplied by program processing (not shown) and outputs the effect to the sound system 58. The sound system 58 converts the output digital musical sound signal into an analog musical sound signal and emits the sound through a speaker.

上記のような楽音信号の発生においては、演奏者による鍵の押鍵時間が充分長く、音源回路55の発音チャンネル内の読出し回路55aにて低速減衰波形データの読出し用のアドレスが読出し終了アドレスまで達した場合には、全ての高速減衰波形データ及び低速減衰波形データがディジタル楽音信号として出力される。しかし、ディジタル楽音信号の発生中に、押鍵されていた鍵が離鍵されると、CPU61は、図示しないプログラムの実行により、離鍵された鍵に対して楽音の発生が割当てられていた音源回路55内の2つの発音チャンネルに対してリリース開始を指示する指示信号を出力する。前記2つの発音チャンネル内のディジタル制御増幅器55cはディジタル制御フィルタ55bからのディジタル楽音信号の振幅を比較的急速に減衰させる。すなわち、ディジタル制御増幅器55cはディジタル制御フィルタ55bからのディジタル楽音信号をリリース処理する。ディジタル制御フィルタ55bも、前記リリース処理と同期して、ディジタル楽音信号の周波数特性を必要に応じて多少変化させる。そして、リリース処理によりディジタル楽音信号が減衰し終えた発音チャンネルは解放されて空きチャンネルとされる。   In the generation of the tone signal as described above, the key pressing time by the performer is sufficiently long, and the reading circuit 55a in the tone generation channel of the tone generator circuit 55 reads the address for reading the slow decay waveform data up to the reading end address. When it reaches, all the high-speed decay waveform data and the low-speed decay waveform data are output as digital musical tone signals. However, if the key that has been pressed is released while the digital musical tone signal is being generated, the CPU 61 executes a program (not shown) to generate a tone generator to which generation of musical tone has been assigned to the released key. An instruction signal for instructing the start of release is output to the two sound generation channels in the circuit 55. The digital control amplifier 55c in the two sound generation channels attenuates the amplitude of the digital musical tone signal from the digital control filter 55b relatively rapidly. That is, the digital control amplifier 55c releases the digital musical tone signal from the digital control filter 55b. The digital control filter 55b also slightly changes the frequency characteristic of the digital musical tone signal as required in synchronization with the release process. Then, the tone generation channel in which the digital musical tone signal has been attenuated by the release process is released to be an empty channel.

さらに、鍵盤51にて多数の鍵が短時間内に押離鍵されて発音チャンネルが不足する場合には、CPU61は、図示しないプログラムの実行により、離鍵された鍵に関する発音チャンネルのうちで最も振幅レベルが小さなディジタル楽音信号を発生している発音チャンネルに対して、急速減衰開始を指示する指示信号を出力する。この指示信号を受取った発音チャンネル内のディジタル制御増幅器55cはディジタル制御フィルタ55bからのディジタル楽音信号の振幅を急速に減衰させる。この場合も、ディジタル制御フィルタ55bは、前記ディジタル制御増幅器55cの急速減衰処理と同期して、ディジタル楽音信号の周波数特性を必要に応じて多少変化させる。また、この場合も、ディジタル楽音信号が減衰し終えた発音チャンネルは解放されて空きチャンネルとされる。これにより、多数の鍵が短時間内に押離鍵されても、新たに押鍵された鍵の楽音を発生するための発音チャンネルが確保される。   Further, when a large number of keys are pressed and released on the keyboard 51 within a short period of time, and the number of sound generation channels is insufficient, the CPU 61 executes the program (not shown) to generate the most sound generation channels related to the released keys. An instruction signal for instructing the start of rapid attenuation is output to a sound generation channel generating a digital musical tone signal having a small amplitude level. The digital control amplifier 55c in the tone generation channel that has received this instruction signal rapidly attenuates the amplitude of the digital musical tone signal from the digital control filter 55b. Also in this case, the digital control filter 55b slightly changes the frequency characteristic of the digital musical tone signal as needed in synchronization with the rapid attenuation processing of the digital control amplifier 55c. Also in this case, the tone generation channel after the digital musical tone signal has been attenuated is released to be an empty channel. As a result, even when a large number of keys are pressed and released within a short time, a tone generation channel for generating a tone of a newly pressed key is secured.

次に、複数の演奏操作子52のいずれかが操作されて打楽器音を発音する場合について説明する。CPU61は、上述した図12のノートオンイベント処理プログラムを変形した図示しない変形プログラムを実行して、打楽器音の発音を制御する。この変形プログラムの実行は、検出回路52aからのスイッチオン信号SWONの入力に応答して開始される。そして、図12のステップS302におけるノートナンバNN及び鍵タッチ強さVELの入力に代えて、検出回路52aから楽器種類情報IN及び操作子タッチ強さVELを入力する。また、ステップS306におけるノートナンバNNに対応した波形セットNNに関する選択情報の指定に代えて、音色パラメータメモリPM内の複数の記憶領域のうちで、前記入力した楽器種類情報INによって表される打楽器音色に対応した記憶領域を指定する。そして、指定した記憶領域内の波形セット制御パラメータ群、フィルタ制御パラメータ群、振幅制御パラメータ群及びその他の制御パラメータ群を読出してRAM63内に一時的に記憶しておく。また、この場合、前記記憶領域に1つのみ記憶されている選択情報(高速減衰波形選択情報及び低速減衰波形選択情報)を指定する。図12の他のステップS304,S308〜S316の処理に関しては、押鍵による楽音信号の発生のための制御処理と同じである。   Next, a case where any one of the plurality of performance operators 52 is operated to generate a percussion instrument sound will be described. The CPU 61 executes a modified program (not shown) obtained by modifying the above-described note-on event processing program shown in FIG. 12, and controls the pronunciation of percussion instrument sounds. The execution of the deformation program is started in response to the input of the switch-on signal SWON from the detection circuit 52a. Then, instead of the input of the note number NN and the key touch strength VEL in step S302 of FIG. 12, the instrument type information IN and the operator touch strength VEL are input from the detection circuit 52a. Further, instead of specifying the selection information regarding the waveform set NN corresponding to the note number NN in step S306, the percussion instrument timbre represented by the input instrument type information IN among the plurality of storage areas in the timbre parameter memory PM. Specify the storage area corresponding to. Then, the waveform set control parameter group, filter control parameter group, amplitude control parameter group and other control parameter groups in the designated storage area are read out and temporarily stored in the RAM 63. In this case, only one selection information (high-speed attenuation waveform selection information and low-speed attenuation waveform selection information) stored in the storage area is designated. The other processes in steps S304 and S308 to S316 in FIG. 12 are the same as the control process for generating a tone signal by pressing the key.

その結果、複数の演奏操作子52のいずれかがオン操作された場合にも、複数の高速減衰波形データのうちの1つの高速減衰波形データが、操作子タッチ強さVELに応じて指定される。また、1つの低速減衰波形データの読出し開始アドレスが操作子タッチ強さVELに応じて決定される。したがって、演奏操作子52のオン操作による打楽器音の発生においても、前記押鍵による場合と同様に、操作子タッチ強さVELによって指定される1つの高速減衰波形データに基づくディジタル楽音信号と、操作子タッチ強さVELによって読出し開始アドレスの指定された低速減衰波形データに基づくディジタル楽音信号が混合されて出力される。また、この打楽器音に関するディジタル楽音信号の場合も、前述した鍵音高に対応した音高を有するディジタル楽音信号の場合と同様に、混合される高速減衰波形データの音量レベルは操作子タッチ強さVELに応じた音量レベルに制御される。   As a result, even when any one of the plurality of performance operators 52 is turned on, one fast decay waveform data among the plurality of fast decay waveform data is designated according to the operator touch strength VEL. . Further, the read start address of one low-speed decay waveform data is determined according to the operator touch strength VEL. Accordingly, in the generation of a percussion instrument sound by turning on the performance operator 52, as in the case of the key depression, a digital musical tone signal based on one fast decay waveform data designated by the operator touch strength VEL, and the operation A digital musical tone signal based on the low-speed decay waveform data in which the reading start address is designated by the child touch strength VEL is mixed and output. Also, in the case of the digital musical tone signal related to the percussion instrument sound, the volume level of the mixed high-speed decay waveform data is determined by the operator touch strength as in the case of the digital musical tone signal having a pitch corresponding to the key pitch described above. The volume level is controlled according to VEL.

さらに、図示しない自動演奏プログラムの実行により、自動演奏データの再生によって鍵演奏イベントデータ及び打楽器演奏イベントデータが読出された場合にも、上記図12のノートオンイベント処理プログラム及びその変形プログラムの実行により、上述した鍵演奏による減衰系の楽音及び打楽器音が発生される。すなわち、自動演奏データは、鍵タッチ強さVEL及びノートナンバNNを含むキーオン及びキーオフイベントからなる鍵演奏イベントデータと、操作子タッチ強さVEL及び楽器種類情報INを含む打楽器操作イベントからなる打楽器演奏イベントデータとを時間経過に従って記憶したものである。自動リズムデータは、操作子タッチ強さVEL及び楽器種類情報INを含む打楽器操作イベントからなる打楽器演奏イベントデータを時間経過に従って記憶したものである。そして、これらの鍵演奏イベントデータ及び打楽器演奏イベントデータは、上記実施形態の検出回路51a,52aから出力されるキーオン信号KON、キーオフ信号KOF、ノートナンバNN、鍵タッチ強さVEL,スイッチオン信号SWON、操作子タッチ強さVEL,楽器種類情報INなどと同じである。したがって、自動演奏データ及び自動リズムデータの再生時に出力される鍵演奏イベントデータ及び打楽器演奏イベントデータを用いて上述したように楽音の発生を制御すれば、自動演奏及び自動リズムによって発生される楽音は、鍵盤51及び複数の演奏操作子52による発生される楽音と全く同じとなる。   Further, even when the key performance event data and the percussion instrument performance event data are read out by the reproduction of the automatic performance data by the execution of the automatic performance program (not shown), the note-on event processing program of FIG. Attenuation-type musical sounds and percussion instrument sounds are generated by the key performance described above. That is, the automatic performance data includes percussion instrument performances including key performance event data including key-on and key-off events including key touch strength VEL and note number NN, and percussion instrument operation events including operator touch strength VEL and instrument type information IN. Event data is stored over time. The automatic rhythm data is obtained by storing percussion instrument performance event data including a percussion instrument operation event including an operator touch strength VEL and instrument type information IN as time passes. These key performance event data and percussion instrument performance event data are the key-on signal KON, key-off signal KOF, note number NN, key touch strength VEL, and switch-on signal SWON output from the detection circuits 51a and 52a of the above embodiment. This is the same as the operator touch strength VEL, instrument type information IN, and the like. Therefore, if the generation of musical sounds is controlled as described above using the key performance event data and the percussion instrument performance event data output during the reproduction of the automatic performance data and the automatic rhythm data, the musical sounds generated by the automatic performance and the automatic rhythm are not generated. The musical tone generated by the keyboard 51 and the plurality of performance operators 52 is exactly the same.

上記楽音信号発生装置によれば、波形メモリWMには、複数段階の強度で演奏された演奏音から抽出された複数の波形データからなる高速減衰波形データと、強い強度で演奏された演奏音から抽出された1つの波形データからなる低速減衰波形データとが記憶されている。音源回路55内の発音の割当てられた第1の発音チャンネルは、高速減衰波形データとしての複数の波形データの中から強弱情報(鍵タッチ強さVEL及び操作子タッチ強さVEL)に応じて1つの波形データを選択して読出し、読出した高速減衰波形データに基づいて高速減衰成分波形であるディジタル楽音信号を生成する。このとき、高速減衰成分波形であるディジタル楽音信号は、その音量レベルが鍵タッチ強さVEL及び操作子タッチ強さVELに応じて制御されたものである。音源回路55内の発音の割当てられた第2の発音チャンネルは、低速減衰波形データとしての1つの波形データを読出して、読出した低速減衰波形データに基づいて低速減衰成分波形であるディジタル楽音信号を生成する。そして、チャンネル累算回路55dは、第1の発音チャンネルによって生成されたディジタル楽音信号と、第2の発音チャンネルによって生成されたディジタル楽音信号とを混合して出力する。   According to the above musical sound signal generator, the waveform memory WM includes fast decay waveform data composed of a plurality of waveform data extracted from performance sounds played at a plurality of levels of intensity and performance sounds played at a high intensity. Low-speed decay waveform data including one extracted waveform data is stored. The first tone generation channel to which the tone generation in the tone generator circuit 55 is assigned is 1 according to strength information (key touch strength VEL and operator touch strength VEL) from among a plurality of waveform data as fast decay waveform data. One waveform data is selected and read, and a digital musical tone signal that is a high-speed attenuation component waveform is generated based on the read high-speed attenuation waveform data. At this time, the volume level of the digital musical tone signal, which is a fast decay component waveform, is controlled according to the key touch strength VEL and the operator touch strength VEL. The second tone generation channel to which the tone generation in the tone generator circuit 55 is assigned reads one waveform data as the slow decay waveform data, and based on the read slow decay waveform data, the digital tone signal that is the slow decay component waveform is read out. Generate. Then, the channel accumulation circuit 55d mixes and outputs the digital musical tone signal generated by the first tone generation channel and the digital musical tone signal generated by the second tone generation channel.

高速減衰成分波形は発生楽音の強弱に応じて変化するが、低速減衰成分波形は発生楽音の強弱によってほとんど変化しないので、混合されたディジタル楽音信号は、強弱に応じて変化する発生楽音波形を高精度で表すことになる。したがって、上記楽音信号発生装置によれば、リアル感のある楽音信号を発生することができる。また、波形メモリWMは、発生の開始から短い時間で終了する高速減衰成分波形を表す複数の高速減衰波形データと、発生の開始から長い時間の経過後に終了する1つの低速減衰波形を表す低速減衰波形データとを記憶しているだけであるので、楽音信号を発生するための波形データの量を少なく抑えることができ、波形メモリWMとしても大きな容量を必要としない。また、高速減衰成分波形であるディジタル楽音信号の生成のために第1の発音チャンネルを使用する時間は、楽音信号の発生開始直後の短い時間に限られる。したがって、1つの楽音の発生のために2つの発音チャンネルを使用しても、1つの楽音の発生のために1つの発音チャンネルしか使用しない方式に比べて、発音チャンネルの占有時間はそれほど長くならない。   The fast decay component waveform changes according to the strength of the generated musical tone, but the slow decay component waveform hardly changes depending on the strength of the generated musical tone, so the mixed digital musical tone signal increases the generated musical tone waveform that changes according to the strength. It will be expressed with accuracy. Therefore, according to the above musical tone signal generator, a realistic musical tone signal can be generated. The waveform memory WM also includes a plurality of fast decay waveform data representing a fast decay component waveform that ends in a short time from the start of generation, and a slow decay that represents one slow decay waveform that ends after a long time has passed since the start of generation. Since only waveform data is stored, the amount of waveform data for generating a musical sound signal can be reduced, and the waveform memory WM does not require a large capacity. Further, the time for using the first tone generation channel to generate the digital musical tone signal that is the fast decay component waveform is limited to a short time immediately after the start of the generation of the musical tone signal. Therefore, even if two sound generation channels are used for generating one musical sound, the occupied time of the sound generation channel is not so long as compared with a method using only one sound generation channel for generating one musical sound.

また、第2の発音チャンネルは、波形メモリWMに記憶されている低速減衰波形データとしての波形データを、強弱情報によって表された楽音信号の強弱が弱くなるに従って、波形データの先頭アドレスから遠くなるアドレスを読出し開始アドレスとして時間経過に従って読出す。したがって、発生される楽音信号の強弱が弱くなるに従って、波形データの読出し開始から終了までの時間が短くなり、楽音信号の発生開始から終了までの時間が短くなる。このことは、発生楽音の強弱が弱くなるに従って、楽音の発生開始から終了までの時間が短くなる減衰系の楽器音の特性と一致している。したがって、前記強弱情報に応じて読出し開始アドレスを変更するという簡単な方法により、減衰系の楽音をより良好に模倣することができる。   Further, the second tone generation channel becomes farther from the top address of the waveform data as the intensity of the musical sound signal represented by the strength information becomes weaker as the waveform data as the slow decay waveform data stored in the waveform memory WM. The address is read out as time elapses with the reading start address. Therefore, as the intensity of the generated tone signal becomes weaker, the time from the start to the end of waveform data reading becomes shorter and the time from the start to the end of generation of the tone signal becomes shorter. This coincides with the characteristics of the attenuation-type musical instrument sound in which the time from the start to the end of the musical sound becomes shorter as the strength of the generated musical sound becomes weaker. Therefore, it is possible to better mimic the decaying tone by a simple method of changing the read start address according to the strength information.

また、第1の発音チャンネルにおいては、高速減衰成分波形であるディジタル楽音信号の生成時に、鍵タッチ強さVEL及び操作子タッチ強さVELに応じてディジタル楽音信号の音量レベルを制御するようにした。したがって、楽音信号の強弱が弱い高速減衰波形データあっても、波形メモリWMに記憶しておく際には、その振幅レベルを大きくしておくことができ、高精度の高速減衰波形データの再生が可能となる。   In the first tone generation channel, the volume level of the digital tone signal is controlled according to the key touch strength VEL and the operator touch strength VEL when generating the digital tone signal which is a high-speed decay component waveform. . Therefore, even if there is high-speed decay waveform data with weak and weak musical tone signals, the amplitude level can be increased when storing it in the waveform memory WM, and high-precision high-speed decay waveform data can be reproduced. It becomes possible.

また、上記楽音信号発生装置においては、波形メモリWM内の高速減衰波形データを指定する際に、鍵タッチ強さVELに最も近い鍵タッチ強さに対応した1つの高速減衰波形データを選択して、選択した1つの高速減衰波形データを用いてディジタル楽音信号を生成するようにした。しかし、これに代えて、複数の高速減衰波形データにそれぞれ対応した複数の鍵タッチ強さのうちの、鍵タッチ強さVELを挟む2つの鍵タッチ強さに対応した2つの高速減衰波形データを選択して、選択した2つの高速減衰波形データを補間(クロスフェード)処理してディジタル楽音信号を生成するようにしてもよい。   In the above musical tone signal generator, when the fast decay waveform data in the waveform memory WM is designated, one fast decay waveform data corresponding to the key touch strength closest to the key touch strength VEL is selected. The digital musical tone signal is generated using the selected one high-speed decay waveform data. However, instead of this, two high-speed attenuation waveform data corresponding to two key touch strengths sandwiching the key touch strength VEL among a plurality of key touch strengths respectively corresponding to the plurality of high-speed attenuation waveform data. It is also possible to generate a digital tone signal by selecting and interpolating (cross-fading) the two selected fast decay waveform data.

この場合、図12のノートオンイベント処理プログラムを変形した図13のノートオンイベント処理プログラムをROM62又は外部記憶装置65に記憶しておき、CPU61は、この図13のノートオンイベント処理プログラムを実行する。図13のノートオンイベント処理プログラムにおいては、図12のノートオンイベント処理プログラムと同一部分に関しては同一の符号を付し、それらの説明を省略する。   In this case, the note-on event processing program of FIG. 13 modified from the note-on event processing program of FIG. 12 is stored in the ROM 62 or the external storage device 65, and the CPU 61 executes the note-on event processing program of FIG. . In the note-on event processing program of FIG. 13, the same parts as those of the note-on event processing program of FIG. 12 are denoted by the same reference numerals, and description thereof is omitted.

図13のノートオンイベント処理プログラムにおいては、図12のステップS304に代わるステップS304aにて、CPU61は、押鍵された鍵に関する楽音信号を生成するために、前記鍵に対して音源回路55の複数の発音チャンネルのうちの空いている3つの発音チャンネルを第1乃至第3の発音チャンネルとして割当てる。また、図12のステップS308に代わるステップS308aにて、CPU61は、選択情報中に含まれる複数の高速減衰波形データの各記憶領域の先頭及び末尾の記憶アドレスをそれぞれ表す複数組のアドレス情報の中から、鍵タッチ強さVELを挟む2つの鍵タッチ強さに対応した2つの高速減衰波形データの記憶領域の先頭及び末尾の記憶アドレスをそれぞれ表す2組のアドレス情報(先頭アドレス情報及び末尾アドレス情報)を選択する。   In the note-on event processing program of FIG. 13, in step S304a instead of step S304 of FIG. 12, the CPU 61 generates a plurality of tone generator circuits 55 for the key in order to generate a tone signal related to the key that has been pressed. Of these sound generation channels, three free sound generation channels are assigned as first to third sound generation channels. In step S308a instead of step S308 in FIG. 12, the CPU 61 includes a plurality of sets of address information representing the storage addresses at the beginning and end of each storage area of the plurality of fast decay waveform data included in the selection information. 2 sets of address information (start address information and end address information) respectively representing the storage addresses at the beginning and end of the storage areas of the two fast decay waveform data corresponding to the two key touch strengths sandwiching the key touch strength VEL. ) Is selected.

そして、CPU61は、ステップS320にて、前記選択した2つの高速減衰波形データによって表される2つの高速減衰成分波形の混合比率を計算する。この場合、前記鍵タッチ強さVELを挟む2つ鍵タッチ強さをそれぞれVEL1,VEL2とするとともに、鍵タッチ強さVEL1,VEL2にそれぞれ対応した高速減衰成分波形の混合比率をMIX1,MIX2とそれぞれすると、混合比率MIX1,MIX2は下記式2,3の演算により決定される。
MIX1=|VEL2−VEL|/|VEL1−VEL2| …式2
MIX2=|VEL1−VEL|/|VEL1−VEL2| …式3
これによれば、比例配分により、2つの高速減衰成分波形の混合比率がMIX1,MIX2に決定されることになり、2つの高速減衰成分波形の混合により、鍵タッチ強さVELに応じて補間された合成波形が得られることになる。この決定された混合比率MIX1,MIX2は、音源回路55内の前記割当てられた第1及び第2の発音チャンネルにそれぞれ出力される。
In step S320, the CPU 61 calculates the mixing ratio of the two high-speed attenuation component waveforms represented by the selected two high-speed attenuation waveform data. In this case, the two key touch strengths sandwiching the key touch strength VEL are VEL1 and VEL2, respectively, and the mixing ratios of the fast decay component waveforms corresponding to the key touch strengths VEL1 and VEL2 are MIX1 and MIX2, respectively. Then, the mixing ratios MIX1 and MIX2 are determined by the calculations of the following formulas 2 and 3.
MIX1 = | VEL2-VEL | / | VEL1-VEL2 |
MIX2 = | VEL1-VEL | / | VEL1-VEL2 |
According to this, the mixing ratio of the two high-speed attenuation component waveforms is determined as MIX1 and MIX2 by the proportional distribution, and the two high-speed attenuation component waveforms are interpolated according to the key touch strength VEL. A synthesized waveform can be obtained. The determined mixing ratios MIX1 and MIX2 are output to the assigned first and second sound generation channels in the tone generator circuit 55, respectively.

なお、前記式2,3も、前記式1の場合と同様に、本実施形態を理解し易くするために単純化されたモデルに基づく式であり、一般化できる式ではない。ここでも、算出される数値に注目すべきでなく、むしろ算出される数値の傾向に注目すべきである。特に、混合比率MIX1,MIX2は、実際にはリニアスケールでなくデシベルスケールで表されるものである。そして、混合比率MIX1,MIX2には、実際には、式2,3に示されたクロスフェードの要素以外にも、鍵タッチ強さVELに応じた音量レベルの制御の要素も必要であり、混合比率MIX1,MIX2のデシベル値は、混合後の高速減衰成分波形の音量が鍵タッチ強さVELに応じた音量レベルになるように調整された値である必要がある。具体的には、式2,3の右辺に前述した低速減衰成分波形であるディジタル楽音信号の音量レベル(デシベル値)を加算するとよい。   As in the case of Equation 1, Equations 2 and 3 are also equations based on a simplified model for easy understanding of the present embodiment, and are not equations that can be generalized. Here too, attention should not be paid to the calculated numerical value, but rather the tendency of the calculated numerical value. In particular, the mixing ratios MIX1 and MIX2 are actually expressed in decibel scales instead of linear scales. In addition, the mixing ratios MIX1 and MIX2 actually require an element for controlling the volume level in accordance with the key touch strength VEL in addition to the crossfade element shown in Equations 2 and 3. The decibel values of the ratios MIX1 and MIX2 need to be values adjusted so that the volume of the fast decay component waveform after mixing has a volume level corresponding to the key touch strength VEL. Specifically, the volume level (decibel value) of the digital musical tone signal that is the low-speed decay component waveform described above may be added to the right side of Equations 2 and 3.

図12のステップS310に代わるステップS310aにて、CPU61は、前記割当てられた第1及び第2の発音チャンネルに対して、前記選択された2つの高速減衰成分波形の発生のための準備処理を行う。この高速減衰成分波形の準備処理においては、前記選択した2組のアドレス情報のうちの1組のアドレス情報を読出し開始アドレス及び読出し終了アドレスとして音源回路55の第1の発音チャンネルに出力する。また、前記選択した2組のアドレス情報のうちの他の1組のアドレス情報を読出し開始アドレス及び読出し終了アドレスとして音源回路55の第2の発音チャンネルに出力する。波形セット制御パラメータ群、フィルタ制御パラメータ群、振幅制御パラメータ群及びその他の制御パラメータ群を前記第1及び第2の発音チャンネルに出力する点については、上記実施形態の場合と同様である。第1及び第2の発音チャンネルは前記出力された読出し開始アドレス、読出し終了アドレス及び各種制御パラメータを一時的に記憶して、ディジタル楽音信号の生成のための準備を行う。   In step S310a instead of step S310 in FIG. 12, the CPU 61 performs a preparation process for generating the two selected fast decay component waveforms for the assigned first and second sound generation channels. . In the preparation processing of the high-speed attenuation component waveform, one set of address information of the selected two sets of address information is output to the first tone generation channel of the tone generator circuit 55 as a read start address and a read end address. The other set of address information of the selected two sets of address information is output to the second tone generation channel of the tone generator circuit 55 as a read start address and a read end address. The point that the waveform set control parameter group, the filter control parameter group, the amplitude control parameter group, and other control parameter groups are output to the first and second sound generation channels is the same as in the above embodiment. The first and second tone generation channels temporarily store the output read start address, read end address, and various control parameters, and prepare for generation of a digital musical tone signal.

図12のステップS314に代わるステップS314aにて、CPU61は、前記割当てられた第3の発音チャンネルに対して、低速減衰成分波形の発生のための上記実施形態と同様な準備処理を行う。そして、図12のステップS316に代わるステップS316aにて、CPU61は、前記第1乃至第3の発音チャンネルに発音開始を指示する。他の処理に関しては、図12の各処理と同じである。   In step S314a instead of step S314 in FIG. 12, the CPU 61 performs a preparation process similar to that in the above-described embodiment for generating a slow decay component waveform for the assigned third sounding channel. In step S316a instead of step S316 in FIG. 12, the CPU 61 instructs the first to third sound generation channels to start sound generation. Other processes are the same as those in FIG.

上記変形例に係るノートオンイベント処理プログラムの実行により、音源回路55内の前記第1乃至第3の発音チャンネルは、この発音開始の指示に応答して、ディジタル楽音信号を生成し始める。この場合、第1及び第2の発音チャンネルは、2つの異なる高速減衰波形データに従って2つの高速減衰成分波形をそれぞれ表すディジタル楽音信号をそれぞれ生成して出力する。第1の発音チャンネルにおいては、ディジタル制御増幅器55cが、ディジタル制御フィルタ55bから出力されるディジタル楽音信号に、前記ステップS320の処理によって出力された混合比率MIX1を乗算することにより、前記ディジタル楽音信号の振幅を混合比率MIX1に比例して制御する。また、第2の発音チャンネルにおいては、ディジタル制御増幅器55cが、ディジタル制御フィルタ55bから出力されるディジタル楽音信号に、前記ステップS320の処理によって出力された混合比率MIX2を乗算することにより、前記ディジタル楽音信号の振幅を混合比率MIX2に比例して制御する。   By executing the note-on event processing program according to the modified example, the first to third sound generation channels in the tone generator circuit 55 start to generate a digital musical tone signal in response to the sound generation start instruction. In this case, the first and second sound generation channels generate and output digital musical tone signals respectively representing two high-speed attenuation component waveforms according to two different high-speed attenuation waveform data. In the first tone generation channel, the digital control amplifier 55c multiplies the digital musical tone signal output from the digital control filter 55b by the mixing ratio MIX1 output in the process of step S320, thereby obtaining the digital musical tone signal. The amplitude is controlled in proportion to the mixing ratio MIX1. In the second tone generation channel, the digital control amplifier 55c multiplies the digital musical tone signal output from the digital control filter 55b by the mixing ratio MIX2 output by the process of step S320, thereby obtaining the digital musical tone. The amplitude of the signal is controlled in proportion to the mixing ratio MIX2.

第3の発音チャンネルは、低速減衰波形データに従って低速減衰成分波形を表すディジタル楽音信号を生成して出力する。なお、第1乃至第3の発音チャンネル内におけるディジタル楽音信号の生成処理に関しては、上述した場合と同様である。そして、第1乃至第3の発音チャンネルから出力されるディジタル楽音信号は、チャンネル累算回路55dにそれぞれ出力される。チャンネル累算回路55dは、これらの第1乃至第3の発音チャンネルから出力されるディジタル楽音信号を加算して出力する。これにより、第1及び第2の発音チャンネルから出力された2つの高速減衰成分波形は前記混合比率MIX1、MIX2で混合されるとともに、第3の発音チャンネルから出力された低速減衰成分波形と混合される。   The third tone generation channel generates and outputs a digital musical tone signal representing a slow decay component waveform according to the slow decay waveform data. The digital musical tone signal generation process in the first to third sound generation channels is the same as that described above. The digital musical tone signals output from the first to third sound generation channels are output to the channel accumulation circuit 55d. The channel accumulation circuit 55d adds the digital musical tone signals output from these first to third tone generation channels and outputs the result. As a result, the two high-speed attenuation component waveforms output from the first and second sound generation channels are mixed at the mixing ratios MIX1 and MIX2, and are mixed with the low-speed attenuation component waveform output from the third sound generation channel. The

この変形例による2つの高速減衰波形成分に関しては、複数の演奏操作子52による打楽器音の発生、自動演奏データに基づく自動演奏音の発生、及び自動リズムデータに基づく自動リズム音(打楽器音)の発生にも適用される。   With respect to two high-speed decay waveform components according to this modification, percussion instrument sounds are generated by a plurality of performance operators 52, automatic performance sounds are generated based on automatic performance data, and automatic rhythm sounds (percussion instrument sounds) are generated based on automatic rhythm data. It also applies to outbreaks.

その結果、この変形例に係る楽音信号発生装置によれば、最終的に混合される高速減衰波形データは、強弱情報(鍵タッチ強さVEL及び操作子タッチ強さVEL)によって表された楽音信号の強弱及び前記強弱を挟む2つの強度段階に応じて、前記強弱を挟む2つの強度段階の波形データを補間(クロスフェード)したものとなる。したがって、波形メモリWMに記憶する高速減衰波形データとしての強度段階に対応した波形データの数を少なくしても、強弱情報によって表された楽音信号の強弱に応じた高速減衰波形データを高精度で得ることができる。   As a result, according to the musical tone signal generating apparatus according to this modification, the fast-decay waveform data to be finally mixed is a musical tone signal represented by strength information (key touch strength VEL and operator touch strength VEL). And the waveform data of the two intensity steps sandwiching the strength are interpolated (cross-fade) in accordance with the strength of the two and the two strength steps sandwiching the strength. Therefore, even if the number of waveform data corresponding to the intensity level as the high-speed attenuation waveform data stored in the waveform memory WM is reduced, the high-speed attenuation waveform data corresponding to the strength of the musical sound signal represented by the strength information can be obtained with high accuracy. Obtainable.

また、上記楽音信号発生装置においては、図12及び図13のステップS312の処理により、低速減衰波形データの読出し開始アドレスとして、鍵タッチ強さVEL(又は操作子タッチ強さVEL)が最小値「1」から最大値「127」まで変化するに従って、アドレスADend−INTminからアドレスADtopまで線形変化するアドレス値を計算するようにした。しかし、これに代えて、鍵タッチ強さVELが最小値「1」から最大値「127」まで変化するに従って、アドレスADend−INTminからアドレスADstartまで非線形変化するアドレス値を規定する関数を用意しておいて、前記関数を用いて、鍵タッチ強さVEL及び操作子タッチ強さVELの変化に対して非線形変化するアドレス値を計算するようにしてもよい。   In the musical tone signal generating apparatus, the key touch strength VEL (or the operator touch strength VEL) is set to the minimum value “VEL” as the read start address of the low-speed decay waveform data by the processing in step S312 of FIGS. The address value linearly changing from the address ADend-INTmin to the address ADtop as the value changes from “1” to the maximum value “127” is calculated. However, instead of this, a function is provided that defines an address value that changes nonlinearly from the address ADend-INTmin to the address ADstart as the key touch strength VEL changes from the minimum value “1” to the maximum value “127”. In this case, an address value that changes nonlinearly with respect to changes in the key touch strength VEL and the operator touch strength VEL may be calculated using the function.

また、複数の鍵タッチ強さVEL(又は操作子タッチ強さVEL)に対応させて複数の読出し開始位置を記憶しておいて、図12及び図13のステップS312の処理により、前記記憶しておいた複数の読出し開始位置を用いて低速減衰波形データの読出し開始アドレスを決定するようにしてもよい。この場合、各波形セットに関する低速減衰波形選択情報として、低速減衰波形データの記憶領域の先頭及び末尾のアドレスに加えて、これらの先頭及び末尾の記憶アドレスの間のアドレスであって、発生楽音信号の強度に応じた複数の読出し開始アドレスを表す複数の中間アドレス情報を記憶しておけばよい。この中間アドレス情報は、図11(B)に示すように、例えば鍵タッチ強さVEL「96」、「64」、「32」、「1」に対応させた読出し開始アドレスを表している。なお、鍵タッチ強さVELが最大値「127」である読出し開始位置を「0秒」として、波形データの読出しに関する時間に換算すると、前記4つの中間アドレスは、先頭側から「2秒」、「4秒」、「6秒」、「8秒」の位置にそれぞれ対応している。   Also, a plurality of read start positions are stored in correspondence with a plurality of key touch strengths VEL (or operation element touch strengths VEL), and are stored by the processing of step S312 in FIGS. The read start address of the slow decay waveform data may be determined using a plurality of read start positions. In this case, as the slow decay waveform selection information for each waveform set, in addition to the start and end addresses of the storage area of the slow decay waveform data, it is an address between these start and end storage addresses, and the generated musical tone signal It is sufficient to store a plurality of pieces of intermediate address information representing a plurality of read start addresses corresponding to the intensity of the. As shown in FIG. 11B, the intermediate address information represents a read start address corresponding to, for example, key touch strengths VEL “96”, “64”, “32”, “1”. When the reading start position where the key touch strength VEL is the maximum value “127” is set to “0 seconds” and converted into time related to reading waveform data, the four intermediate addresses are “2 seconds” from the head side, The positions correspond to “4 seconds”, “6 seconds”, and “8 seconds”, respectively.

そして、図12及び図13のステップS312の処理においては、前記ステップS302の処理により入力した鍵タッチ強さVELが最大の鍵タッチ(すなわち「127」)であれば、前記ステップS306の処理によって指定された選択情報中の低速減衰波形選択情報に含まれる低速減衰波形データの先頭アドレスを読出し開始アドレスとして決定する。また、鍵タッチ強さVELが、複数の鍵タッチ強さ「96」、「64」、「32」、「1」のうちのいずれかと一致すれば、一致した鍵タッチ強さVELに対応した中間アドレス情報を読出し開始アドレスとして決定する。鍵タッチ強さVELが複数の鍵タッチ強さ「127」、「96」、「64」、「32」及び「1」のいずれとも一致しなければ、前記複数の鍵タッチ強さのうちで、前記ステップS302の処理により入力した鍵タッチ強さVELが挟まれる両側の2つの鍵タッチ強さを選択する。この選択された2つの鍵タッチ強さをVEL1,VEL2(VEL1>VEL2)とし、鍵タッチ強さVEL1,VEL2に対応した2つの中間アドレスAD1,AD2(AD2>AD1)とすると、読出し開始アドレスADstartは下記式4の補間演算により計算される。ただし、式4も、前記式1〜3と同様に、本実施形態を理解し易くするために単純化されたモデルに基づく式であり、一般化できる式ではない。ここで、算出される数値に注目すべきではなく、むしろ算出される数値の傾向に注目すべきである。
ADstart=AD1+(AD2−AD1)・ (VEL−VEL1)/(VEL2−VEL1) …式4
In the process of step S312 of FIGS. 12 and 13, if the key touch strength VEL input by the process of step S302 is the maximum key touch (ie, “127”), the process is specified by the process of step S306. The start address of the slow decay waveform data included in the slow decay waveform selection information in the selected information is determined as the read start address. Further, if the key touch strength VEL matches any one of the plurality of key touch strengths “96”, “64”, “32”, “1”, an intermediate corresponding to the matched key touch strength VEL. Address information is determined as a read start address. If the key touch strength VEL does not match any of the plurality of key touch strengths “127”, “96”, “64”, “32”, and “1”, among the plurality of key touch strengths, Two key touch strengths on both sides between which the key touch strength VEL input by the process of step S302 is sandwiched are selected. Assuming that the two selected key touch strengths are VEL1, VEL2 (VEL1> VEL2), and two intermediate addresses AD1, AD2 (AD2> AD1) corresponding to the key touch strengths VEL1, VEL2, read start address ADstart Is calculated by the interpolation calculation of the following equation 4. However, Formula 4 is also a formula based on a model simplified for easy understanding of the present embodiment, and is not a formula that can be generalized. Here, the calculated numerical value should not be noted, but rather the tendency of the calculated numerical value should be noted.
ADstart = AD1 + (AD2−AD1) ・ (VEL−VEL1) / (VEL2−VEL1)… Equation 4

なお、前記のように、鍵タッチ強さ「96」、「64」、「32」、「1」に対応した複数の読出し開始アドレスを複数の中間アドレス情報とした場合には、複数の鍵タッチ強さVELの間隔が「31」又は「32」とほぼ均一であるために、読出し開始アドレスは鍵タッチ強さVEL(又は操作子強さVEL)に応じてほぼ線形的に変化する。しかし、前記複数の中間アドレスによって表されるアドレスの間隔を異ならせるようにすれば、例えば徐々に大きくなるようにすれば、読出し開始アドレスは鍵タッチ強さVELの変化に対して非線形に変化する。   As described above, when a plurality of read start addresses corresponding to the key touch strengths “96”, “64”, “32”, and “1” are set as a plurality of intermediate address information, a plurality of key touches are provided. Since the interval of the strength VEL is substantially uniform as “31” or “32”, the read start address changes substantially linearly according to the key touch strength VEL (or the operator strength VEL). However, if the intervals of the addresses represented by the plurality of intermediate addresses are made different, for example, if the addresses are gradually increased, the read start address changes nonlinearly with respect to the change in the key touch strength VEL. .

また、上記楽音信号発生装置においては、鍵音高に応じて周波数の変化する減衰系の楽音波形に関して、波形メモリWM内の音色ごとの波形セットを鍵音高(ノートナンバNN)ごとに用意するようにした。しかし、これに代えて、前記減衰系の楽音波形に関して、波形メモリWM内の音色ごとの波形セットとして、複数の鍵音高を含む鍵音域(例えば、半オクターブ)ごとに波形セットを用意するようにしてもよい。この場合、複数の鍵音域にそれぞれ対応した複数の波形セットが波形メモリWMに記憶される。そして、音色パラメータメモリPMの各音色に対応した記憶領域には、ヘッダ及び各種制御パラメータに加えて、前記複数の波形セットに対応した複数の波形セットに関する選択情報が記憶される。各波形セットに関する選択情報は、上記実施形態と同様に構成され、その中の元ピッチには波形セットに係る波形データを生成した際の元の演奏音のピッチを表す情報も含まれている。そして、この変形例においては、押鍵された鍵のノートナンバNNにより指定される鍵音高(ピッチ)と、元ピッチに含まれる前記演奏音のピッチとの差に応じて、ノートナンバNNにより指定される鍵音高のディジタル楽音信号(高速減衰成分波形及び低速減衰成分波形であるディジタル楽音信号)を生成する。   Further, in the musical tone signal generating apparatus, a waveform set for each tone color in the waveform memory WM is prepared for each key pitch (note number NN) with respect to a decaying musical tone waveform whose frequency changes according to the key pitch. I did it. However, instead of this, a waveform set is prepared for each key tone range (for example, a half octave) including a plurality of key pitches as a waveform set for each tone color in the waveform memory WM for the attenuation-type musical sound waveform. It may be. In this case, a plurality of waveform sets respectively corresponding to a plurality of key ranges are stored in the waveform memory WM. In addition to the header and various control parameters, selection information regarding a plurality of waveform sets corresponding to the plurality of waveform sets is stored in the storage area corresponding to each tone color of the tone color parameter memory PM. The selection information regarding each waveform set is configured in the same manner as in the above embodiment, and the original pitch in the selection information includes information indicating the pitch of the original performance sound when the waveform data related to the waveform set is generated. In this modification, the key number (pitch) specified by the note number NN of the pressed key and the note number NN according to the difference between the pitch of the performance sound included in the original pitch. A digital musical tone signal (a digital musical tone signal having a fast decay component waveform and a slow decay component waveform) having a specified key pitch is generated.

具体的には、まず、CPU61は、押鍵された鍵が属する鍵音域の波形セットに関する選択情報を音色パラメータメモリPMから選択して、前記選択された選択情報中の高速減衰波形データ及び低速減衰波形データに関するアドレス情報を前記押鍵されて鍵の割当てられた第1及び第2の発音チャンネル(又は第1乃至第3の発音チャンネル)にそれぞれ出力する。ただし、高速減衰波形データに関するアドレス情報に関しては、上記実施形態の場合と同様に、鍵タッチ強さVELに対応した1つ(又は2つ)の高速減衰波形データのアドレス情報が選択される。また、CPU61は、このアドレス情報の出力と同時に、前記押鍵された鍵に対応した鍵音高(ピッチ)と、前記選択された選択情報中の元ピッチにより表されたピッチとの差を、ピッチシフト量(セント)として前記第1及び第2の発音チャンネル(又は第1乃至第3の発音チャンネル)に出力する。   Specifically, first, the CPU 61 selects, from the timbre parameter memory PM, selection information related to the waveform set of the key range to which the pressed key belongs, and the fast decay waveform data and the slow decay in the selected selection information. Address information relating to the waveform data is output to the first and second tone generation channels (or the first to third tone generation channels) to which the keys have been pressed and assigned keys, respectively. However, regarding the address information related to the fast decay waveform data, the address information of one (or two) fast decay waveform data corresponding to the key touch strength VEL is selected as in the case of the above embodiment. At the same time as the output of the address information, the CPU 61 calculates the difference between the key pitch (pitch) corresponding to the pressed key and the pitch represented by the original pitch in the selected selection information. The pitch shift amount (cent) is output to the first and second tone generation channels (or the first to third tone generation channels).

第1及び第2の発音チャンネル(又は第1乃至第3の発音チャンネル)内の読出し回路55aは、前記ピッチシフト量に応じて波形データの読出しレートを決定して、前記アドレス情報によって指定される高速減衰波形データ及び低速減衰波形データを読出す。これにより、読出し回路55aは、ノートナンバNNに対応した鍵音高のディジタル楽音信号を生成して、ディジタル制御フィルタ55bに出力する。ただし、前記ピッチシフト量に応じて決定される読出しレートは、通常、小数部を含むので、前記波形データの読出しアドレスも整数部と小数部からなる。そこで、この波形データの読出しでは、前記整数部を用いて波形データの複数のサンプル値を読出し、小数部を用いた補間演算により最終的なディジタル楽音信号を生成する。このディジタル楽音信号の生成後の処理に関しては、上記実施形態の場合と同じである。なお、この変形例においても、波形データの生成時におけるサンプリング周波数と、音源回路55のディジタル楽音信号の生成時におけるサンプリング周波数が同じであることを前提としている。これらの両者のサンプリング周波数が異なる場合には、このサンプリング周波数の差も考慮してピッチシフト量を決定する必要がある。   The readout circuit 55a in the first and second tone generation channels (or the first to third tone generation channels) determines the waveform data read rate according to the pitch shift amount and is designated by the address information. Read high-speed decay waveform data and low-speed decay waveform data. As a result, the reading circuit 55a generates a digital musical tone signal having a key pitch corresponding to the note number NN and outputs the digital musical tone signal to the digital control filter 55b. However, since the reading rate determined according to the pitch shift amount normally includes a decimal part, the reading address of the waveform data also includes an integer part and a decimal part. Therefore, in reading out the waveform data, a plurality of sample values of the waveform data are read out using the integer part, and a final digital musical tone signal is generated by interpolation calculation using the decimal part. The processing after the generation of the digital tone signal is the same as in the above embodiment. In this modification as well, it is assumed that the sampling frequency at the time of waveform data generation and the sampling frequency at the time of generation of the digital tone signal of the tone generator circuit 55 are the same. When these two sampling frequencies are different, it is necessary to determine the pitch shift amount in consideration of the difference between the sampling frequencies.

11…パネルスイッチ、12…表示器、13…波形メモリ、14…書込み回路、16…音源回路、18…サウンドシステム、31…CPU、51…鍵盤、52…演奏操作子、55…音源回路。 DESCRIPTION OF SYMBOLS 11 ... Panel switch, 12 ... Display, 13 ... Waveform memory, 14 ... Write circuit, 16 ... Sound source circuit, 18 ... Sound system, 31 ... CPU, 51 ... Keyboard, 52 ... Performance operator, 55 ... Sound source circuit

Claims (2)

楽器音波形を表す原波形データの全体を一括してフーリエ変換し、前記楽器音波形全体のスペクトル成分を生成する工程と、
前記生成された楽器音波形全体のスペクトル成分によって表されるスペクトル分布中から前記楽器音波形の基本波成分及び倍音成分に対応した複数のピークを検出して、前記複数のピークに対応した複数のスペクトル成分を特定する工程と、
前記生成された楽器音波形全体のスペクトル成分のうちで、前記特定された複数のスペクトル成分及びそれらの近傍のスペクトル成分に関するスペクトル成分を抽出する工程と、
前記抽出されたスペクトル成分を逆フーリエ変換して低速減衰成分波形を表す低速減衰波形データを生成する工程と、
前記原波形データから前記生成された低速減衰波形データを減算して、高速減衰成分波形を表す高速減衰波形データを生成する工程と
を含む波形データ生成方法。
Fourier transforming the whole of the original waveform data representing the instrument sound waveform, and generating a spectral component of the entire instrument sound waveform;
Detecting a plurality of peaks corresponding to a fundamental wave component and a harmonic overtone component of the instrument sound waveform from a spectrum distribution represented by a spectrum component of the entire generated instrument sound waveform, and a plurality of peaks corresponding to the plurality of peaks. Identifying a spectral component;
A step of extracting spectral components related to the identified plurality of spectral components and spectral components in the vicinity thereof among spectral components of the generated instrument sound waveform; and
A step of generating a slow decay waveform data representing a slow decay component waveform by performing an inverse Fourier transform on the extracted spectral component;
Subtracting the generated slow decay waveform data from the original waveform data to generate fast decay waveform data representing a fast decay component waveform.
楽器音波形を表す原波形データに対して時間窓を移動しながら、前記時間窓によって規定されるフレームごとに原波形データを順次フーリエ変換して、前記原波形データの全体にわたる複数のフレームのスペクトル成分をそれぞれ取得する工程と、
前記複数のフレームにわたって前記取得されたスペクトル成分の複数のピークをそれぞれ結ぶ複数のピーク軌跡を検出する工程と、
前記検出された複数のピーク軌跡の中から、減衰の遅いピーク軌跡を抽出する工程と、
前記抽出されたピーク軌跡に関するスペクトル成分を逆フーリエ変換して低速減衰成分波形を表す低速減衰波形データを生成する工程と、
前記原波形データから前記生成された低速減衰波形データを減算して、高速減衰成分波形を表す高速減衰波形データを生成する工程と
を含む波形データ生成方法。
While moving the time window with respect to the original waveform data representing the musical instrument sound waveform, the original waveform data is sequentially Fourier transformed for each frame defined by the time window, and the spectrum of a plurality of frames over the entire original waveform data is obtained. Obtaining each of the components;
Detecting a plurality of peak loci respectively connecting a plurality of peaks of the acquired spectral components over the plurality of frames;
Extracting a slowly decaying peak trajectory from the detected plurality of peak trajectories;
A process of generating a slow decay waveform data representing a slow decay component waveform by performing an inverse Fourier transform on a spectrum component relating to the extracted peak locus;
Subtracting the generated slow decay waveform data from the original waveform data to generate fast decay waveform data representing a fast decay component waveform.
JP2009063948A 2009-03-17 2009-03-17 Waveform data generation method Expired - Fee Related JP5493408B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009063948A JP5493408B2 (en) 2009-03-17 2009-03-17 Waveform data generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009063948A JP5493408B2 (en) 2009-03-17 2009-03-17 Waveform data generation method

Publications (2)

Publication Number Publication Date
JP2010217476A true JP2010217476A (en) 2010-09-30
JP5493408B2 JP5493408B2 (en) 2014-05-14

Family

ID=42976412

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009063948A Expired - Fee Related JP5493408B2 (en) 2009-03-17 2009-03-17 Waveform data generation method

Country Status (1)

Country Link
JP (1) JP5493408B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011247921A (en) * 2010-05-24 2011-12-08 Nippon Telegr & Teleph Corp <Ntt> Signal synthesizing method, signal synthesizing apparatus, and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0535278A (en) * 1991-07-26 1993-02-12 Yamaha Corp Storing method and synthesizing method for waveform
JP2000010565A (en) * 1998-04-23 2000-01-14 Yamaha Corp Waveform data forming method and device, storage medium with waveform data forming program recorded and recording medium with waveform data recorded
JP2003263170A (en) * 2003-02-21 2003-09-19 Yamaha Corp Method for analyzing waveform of musical sound and method for analyzing and synthesizing waveform of musical sound
JP2004013179A (en) * 2003-10-14 2004-01-15 Yamaha Corp Sound source waveform synthesizer using analysis result

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0535278A (en) * 1991-07-26 1993-02-12 Yamaha Corp Storing method and synthesizing method for waveform
JP2000010565A (en) * 1998-04-23 2000-01-14 Yamaha Corp Waveform data forming method and device, storage medium with waveform data forming program recorded and recording medium with waveform data recorded
JP2003263170A (en) * 2003-02-21 2003-09-19 Yamaha Corp Method for analyzing waveform of musical sound and method for analyzing and synthesizing waveform of musical sound
JP2004013179A (en) * 2003-10-14 2004-01-15 Yamaha Corp Sound source waveform synthesizer using analysis result

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011247921A (en) * 2010-05-24 2011-12-08 Nippon Telegr & Teleph Corp <Ntt> Signal synthesizing method, signal synthesizing apparatus, and program

Also Published As

Publication number Publication date
JP5493408B2 (en) 2014-05-14

Similar Documents

Publication Publication Date Title
EP3882906A1 (en) Electronic keyboard musical instrument and method of generating musical sound
US20070000371A1 (en) Tone synthesis apparatus and method
US7432435B2 (en) Tone synthesis apparatus and method
US8106287B2 (en) Tone control apparatus and method using virtual damper position
JP4274272B2 (en) Arpeggio performance device
US7626113B2 (en) Tone data generation method and tone synthesis method, and apparatus therefor
US7557288B2 (en) Tone synthesis apparatus and method
EP3882905A1 (en) Electronic musical instrument, electronic keyboard musical instrument, and method of generating musical sound
US8389845B2 (en) Apparatus for generating musical tone signals based on mixing different decay waveform data
JP5493408B2 (en) Waveform data generation method
JP3835443B2 (en) Music generator
EP1391873A1 (en) Rendition style determination apparatus and method
JP3279861B2 (en) Music signal generator
JP5655273B2 (en) Waveform data generation method
JP4614307B2 (en) Performance data processing apparatus and program
JP4238807B2 (en) Sound source waveform data determination device
JP2722482B2 (en) Tone generator
JP3666346B2 (en) Musical sound generator and storage medium
JP2023067673A (en) musical tone generator
JP3674154B2 (en) Music synthesizer
JP5151523B2 (en) Electronic musical instruments
JP2915753B2 (en) Electronic musical instrument
JP2003323177A (en) Waveform reproducing device
JPH0876764A (en) Musical sound generating device
JPH10240245A (en) Automatic playing device with sound source

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120120

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130426

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130521

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130712

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140217

R150 Certificate of patent or registration of utility model

Ref document number: 5493408

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees