JPH08152886A - Musical sound signal generating device - Google Patents

Musical sound signal generating device

Info

Publication number
JPH08152886A
JPH08152886A JP6319021A JP31902194A JPH08152886A JP H08152886 A JPH08152886 A JP H08152886A JP 6319021 A JP6319021 A JP 6319021A JP 31902194 A JP31902194 A JP 31902194A JP H08152886 A JPH08152886 A JP H08152886A
Authority
JP
Japan
Prior art keywords
data
waveform
speed
tone signal
waveform data
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.)
Withdrawn
Application number
JP6319021A
Other languages
Japanese (ja)
Inventor
Eiji Matsuda
英治 松田
Kazunori Matsuda
寿徳 松田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kawai Musical Instrument Manufacturing Co Ltd
Original Assignee
Kawai Musical Instrument Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kawai Musical Instrument Manufacturing Co Ltd filed Critical Kawai Musical Instrument Manufacturing Co Ltd
Priority to JP6319021A priority Critical patent/JPH08152886A/en
Publication of JPH08152886A publication Critical patent/JPH08152886A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PURPOSE: To generate a musical without generating a buzzing sound. CONSTITUTION: The device consists of a waveform memory 19 which stores plural waveform data generated by sampling at different sampling frequencies, plural speed data storage means 100 and 101 which are provided corresponding to the plural waveform data and stored speed data that prescribes the reading speed in accordance with the sampling frequencies of each waveform data, an instructing means which gives instruction for generation of a sound, a selecting means 102 which selects one of the plural speed data storage means in accordance with the instruction, a reading speed deciding means 103 which decides the reading speed of the waveform data based on the speed data stored in the means 100 and 101 selected by the means 102 in accordance with the instruction of the instruction means and a musical sound signal generating means which reads the waveform data from the waveform memory based on the speed data decided by the means 103 and generates musical sound signals.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、波形メモリに記憶され
た波形データに基づいて楽音信号を発生する楽音信号発
生装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a musical tone signal generator for generating a musical tone signal based on waveform data stored in a waveform memory.

【0002】[0002]

【従来の技術】従来、例えばシンセサイザ、電子ピア
ノ、電子オルガン、シングルキーボード、音源モジュー
ル等の電子楽器に適用され、楽音信号を発生する楽音信
号発生装置が知られている。このような楽音信号発生装
置は、例えば自然楽器で放音された音を電気信号に変換
し、これを所定のサンプリング周波数でサンプリングし
て予め波形メモリに記憶しておき、発音指示がなされた
際に、波形メモリから波形データを読み出して楽音信号
を生成し、これを例えばスピーカに供給することにより
楽音を発生する。
2. Description of the Related Art Heretofore, there has been known a musical tone signal generator which is applied to an electronic musical instrument such as a synthesizer, an electronic piano, an electronic organ, a single keyboard, a sound source module and the like to generate a musical tone signal. Such a musical tone signal generator converts, for example, a sound emitted by a natural musical instrument into an electric signal, samples the electric signal at a predetermined sampling frequency, and stores it in a waveform memory in advance. Then, the waveform data is read from the waveform memory to generate a tone signal, and the tone signal is supplied to, for example, a speaker to generate a tone.

【0003】上記波形メモリに記憶される波形データ
は、人間の可聴周波数の上限である20KHz近傍の周
波数成分を含む楽音を完全に再生するために、標本化定
理に則り、例えば44.1KHzのサンプリング周波数
でサンプリングを行って作成されている。
The waveform data stored in the waveform memory is sampled at 44.1 KHz, for example, in accordance with the sampling theorem in order to completely reproduce musical tones including frequency components near 20 KHz which is the upper limit of human audible frequency. It is created by sampling at frequency.

【0004】ところで、従来の楽音信号発生装置では、
例えば打鍵強度に応じて音色変化を可能ならしめるため
に、放音された自然楽器の音を複数の周波数帯域に分割
して各周波数帯域毎に波形データを作成しておき、楽音
信号を発生する際には、各周波数帯域の楽音を打鍵強度
に応じた割合で混合して出力するようにしている。
By the way, in the conventional tone signal generator,
For example, in order to change the timbre according to the strength of keystrokes, the sound of the emitted natural musical instrument is divided into multiple frequency bands, waveform data is created for each frequency band, and a musical tone signal is generated. At this time, the musical tones of each frequency band are mixed and output at a ratio according to the keystroke strength.

【0005】より具体的には、例えば、放音された自然
楽器の音を例えばマイクロフォン等を用いて電気信号に
変換し、この電気信号を、それぞれハイパスフィルタ、
バンドパスフィルタ、ローパスフィルタを通すことによ
り、高域楽音信号、中域楽音信号及び低域楽音信号とい
った3種類の楽音信号に分離する。次いで、これら各楽
音信号をサンプリングして3種類の波形データを作成す
る。
More specifically, for example, the emitted sound of a natural musical instrument is converted into an electric signal by using, for example, a microphone, and the electric signal is converted into a high-pass filter and a high-pass filter, respectively.
By passing through a band pass filter and a low pass filter, it is separated into three types of tone signals such as a high tone signal, a middle tone signal and a low tone signal. Next, these tone signals are sampled to create three types of waveform data.

【0006】この際、例えば高域楽音信号及び中域楽音
信号は、再生時の忠実度を損なわれないように、例えば
44.1KHzのサンプリング周波数でサンプリングし
て波形データが作成される。しかし、低域楽音信号には
高域成分は含まれないので20KHz近傍までの高域の
楽音が再生されることがなく、従って、44.1KHz
の高いサンプリング周波数でサンプリングする必要がな
い。そこで、従来は、低域楽音信号については例えば3
3KHzのサンプリング周波数を用いてサンプリングす
ることにより波形データを作成している。このように、
サンプリング周波数が低くなれば生成される波形データ
の数も少なくなり、ひいては波形メモリを小さくするこ
とができるという利点がある。
At this time, for example, the high-frequency tone signal and the middle-range tone signal are sampled at a sampling frequency of, for example, 44.1 KHz to create waveform data so as not to impair the fidelity at the time of reproduction. However, since the high frequency component is not included in the low frequency musical tone signal, the high frequency musical tone up to around 20 KHz is not reproduced. Therefore, 44.1 KHz
There is no need to sample at a high sampling frequency of. Therefore, in the past, for example, for the low frequency tone signal,
Waveform data is created by sampling using a sampling frequency of 3 KHz. in this way,
The lower the sampling frequency is, the smaller the number of waveform data to be generated is, which in turn has the advantage that the waveform memory can be made smaller.

【0007】上記のようにして作成された波形データ
は、所定音域に属する複数音高の楽音を生成するために
共用される。そして、上記所定音域内の音高を規定する
データとして周波数ナンバ(以下、「Fナンバ」とい
う。)が用いられる。このFナンバは、波形メモリから
波形データをシーケンシャルに読み出す際に、波形メモ
リに与えるアドレスの増分値である。例えば、音名C4
の音に基づいて波形データが作成されている場合は、F
ナンバ=1として波形データを読み出せば音名C4の音
高の音が再生される。Fナンバ<1として波形データを
読み出せば音名C4の音高より低い音の楽音が再生さ
れ、Fナンバ>1として波形データを読み出せば音名C
4の音高より高い音の楽音が再生される。
The waveform data created as described above is commonly used to generate musical tones having a plurality of pitches belonging to a predetermined musical range. Then, a frequency number (hereinafter referred to as "F number") is used as data for defining the pitch within the predetermined tone range. This F number is an increment value of an address given to the waveform memory when sequentially reading the waveform data from the waveform memory. For example, note name C4
If the waveform data is created based on the sound of
If the waveform data is read out with the number = 1, the pitch of the pitch C4 is reproduced. If the waveform data is read with F number <1, a musical tone with a pitch lower than the pitch of the note name C4 is reproduced, and if the waveform data is read with F number> 1, the tone name C4 is reproduced.
Music tones higher than the pitch of 4 are reproduced.

【0008】上記Fナンバは、予め作成されたFナンバ
テーブルと呼ばれるテーブルに、各キーナンバ(又はノ
ートナンバ)及びチューンデータに対応して格納されて
いる。かかるFナンバテーブルの一例を図9に示す。例
えばキーナンバ60の音の発音が指示されるとFナンバ
データ「a1」が取り出され、キーナンバ61の音の発
音が指示されるとFナンバデータ「b1」が取り出さ
れ、それぞれ波形メモリの読出アドレスの増分値として
使用される。また、Fナンバテーブルには、チューンを
変更するためのFナンバデータも格納されている。即
ち、半音(=100セント)を例えば64分割し、10
0/64セント毎にFナンバデータ(a2〜a64、b
2、b3等)が用意されている。従って、チューンが変
更された場合は、チューンデータに対応するFナンバデ
ータが読み出されて波形メモリの読出アドレスの増分値
として使用される。
The F number is stored in a table called an F number table created in advance in association with each key number (or note number) and tune data. An example of such an F number table is shown in FIG. For example, when the sound of the key number 60 is instructed, the F number data "a1" is extracted, and when the sound of the key number 61 is instructed, the F number data "b1" is extracted and the read address of the waveform memory is read out. Used as an increment value. The F number table also stores F number data for changing the tune. That is, a semitone (= 100 cents) is divided into, for example, 64 and 10
F number data (a2 to a64, b
2, b3, etc.) are prepared. Therefore, when the tune is changed, the F number data corresponding to the tune data is read and used as the increment value of the read address of the waveform memory.

【0009】[0009]

【発明が解決しようとする課題】ところで、上記Fナン
バテーブルは、例えばサンプリング周波数44.1KH
zでサンプリングして作成された波形データ(以下、
「44.1KHz用波形データ」という。)に対応して
作成されている。従って、高域楽音信号及び中域楽音信
号を再生する際は、上記Fナンバテーブルを参照してF
ナンバデータを決定することができる。
The F number table is, for example, a sampling frequency of 44.1 KH.
Waveform data created by sampling at z (hereinafter,
This is referred to as "44.1 KHz waveform data". ) Has been created corresponding to. Therefore, when reproducing the high-range tone signal and the middle-range tone signal, the F number table is referred to for the F number.
Number data can be determined.

【0010】しかしながら、33KHzのサンプリング
周波数でサンプリングして作成された波形データ(以
下、「33KHz用波形データ」という。)では、上記
Fナンバテーブルをそのまま使用することはできない。
そこで、従来は、33KHz用波形データのFナンバデ
ータを求める際は、44.1KHZ用波形データのFナ
ンバテーブルの中から、33KHz用波形データに対応
するFナンバデータを読み出して波形メモリの読出アド
レスの増分値としていた。
However, with waveform data created by sampling at a sampling frequency of 33 KHz (hereinafter referred to as "33 KHz waveform data"), the F number table cannot be used as it is.
Therefore, conventionally, when obtaining the F number data of the 33 KHz waveform data, the F number data corresponding to the 33 KHz waveform data is read out from the F number table of the 44.1 KHZ waveform data, and the read address of the waveform memory is read. Was used as an increment value.

【0011】ところが、Fナンバテーブル中に33KH
z用波形データに対応するFナンバデータが存在する場
合はそれをそのまま使用し、対応するFナンバデータが
ない場合は、Fナンバテーブル中の最も近いFナンバデ
ータを使用していた。従って、高域楽音信号又は中域楽
音信号に基づく楽音と、低域楽音信号に基づく楽音との
間に僅かな周波数の差が生じ、これらが同時に発音され
るとうなりを生じてしまうという問題があった。
However, 33KH in the F number table
When the F number data corresponding to the z waveform data exists, it is used as it is, and when there is no corresponding F number data, the closest F number data in the F number table is used. Therefore, there is a problem that a slight frequency difference occurs between the musical sound based on the high-range musical tone signal or the middle-range musical tone signal and the musical tone based on the low-range musical tone signal, and when these are sounded at the same time, a beat occurs. there were.

【0012】本発明は、かかる問題を解消するためにな
されたものであり、うなりを生じることのない楽音信号
を発生できる楽音信号発生装置を提供することを目的と
する。
The present invention has been made in order to solve such a problem, and an object of the present invention is to provide a musical tone signal generator capable of generating a musical tone signal without causing a beat.

【0013】[0013]

【課題を解決するための手段】本発明の第1の態様に係
る楽音信号発生装置は、上記目的を達成するために、そ
れぞれが異なるサンプリング周波数でサンプリングして
作成された複数の波形データを記憶した波形メモリと、
該波形メモリ内の前記複数の波形データに対応して設け
られ、各波形データのサンプリング周波数に応じて読出
速度を規定する速度データが記憶された複数の速度デー
タ記憶手段と、発音を指示する指示手段と、該指示手段
の指示に応じて前記複数の速度データ記憶手段の中の1
つを選択する選択手段と、前記指示手段の指示に応じて
該選択手段で選択された速度データ記憶手段に記憶され
ている速度データに基づき波形データの読出速度を決定
する読出速度決定手段と、該読出速度決定手段で決定さ
れた速度データに基づき前記波形メモリから波形データ
を読み出して楽音信号を生成する楽音信号生成手段、と
備えたことを特徴とする。
In order to achieve the above object, a musical tone signal generator according to a first aspect of the present invention stores a plurality of waveform data which are created by sampling at different sampling frequencies. Waveform memory,
A plurality of speed data storage means provided corresponding to the plurality of waveform data in the waveform memory, storing speed data defining a reading speed according to the sampling frequency of each waveform data, and an instruction to instruct sound generation. Means and one of the plurality of speed data storage means according to the instruction of the instruction means.
Selecting means for selecting one of the two, and reading speed determining means for determining the reading speed of the waveform data based on the speed data stored in the speed data storage means selected by the selecting means in response to the instruction from the instructing means. Musical tone signal generating means for generating the musical tone signal by reading the waveform data from the waveform memory on the basis of the speed data determined by the reading speed determining means.

【0014】本発明の第2の態様に係る楽音信号発生装
置は、上記と同様の目的で、それぞれが異なるサンプリ
ング周波数でサンプリングして作成された複数の波形デ
ータを記憶した波形メモリと、該波形メモリ内の前記複
数の波形データに対応して設けられ、波形データの読出
速度を規定する速度データが記憶された複数の速度デー
タ記憶手段と、発音を指示する指示手段と、前記複数の
速度データ記憶手段に対応して設けられ、該指示手段の
指示に応じて、それぞれが対応する速度データ記憶手段
に記憶されている速度データに基づき波形データの読出
速度を決定する複数の読出速度決定手段と、前記指示手
段の指示に応じて該複数の読出速度決定手段の中の1つ
を選択する選択手段と、該選択手段で選択された読出速
度決定手段で決定された速度データに基づき前記波形メ
モリから波形データを読み出して楽音信号を生成する楽
音信号生成手段、とを備えたことを特徴とする。
For the same purpose as described above, a tone signal generator according to a second aspect of the present invention has a waveform memory storing a plurality of waveform data created by sampling at different sampling frequencies, and the waveform memory. A plurality of speed data storing means provided corresponding to the plurality of waveform data in the memory, storing speed data defining a reading speed of the waveform data, instructing means for instructing sound generation, and the plurality of speed data A plurality of read speed determination means provided corresponding to the storage means and determining the read speed of the waveform data based on the speed data stored in the corresponding speed data storage means according to the instruction of the instruction means. Selecting means for selecting one of the plurality of read speed determining means in response to an instruction from the instructing means, and read speed determining means selected by the selecting means. Tone signal generation means for generating a musical tone signal by reading the waveform data from said waveform memory on the basis of the velocity data, characterized by comprising and.

【0015】[0015]

【作用】本発明の第1の態様に係る楽音信号発生装置に
おいては、それぞれが異なるサンプリング周波数でサン
プリングして作成された複数の波形データを波形メモリ
に記憶しておくと共に、波形データの読出速度を規定す
る速度データ、例えばFナンバデータを上記各波形デー
タに対応して設けられた複数の速度データ記憶手段に記
憶しておく。
In the tone signal generator according to the first aspect of the present invention, a plurality of waveform data created by sampling at different sampling frequencies are stored in the waveform memory and the reading speed of the waveform data is increased. Is stored in a plurality of speed data storage means provided corresponding to each of the above waveform data.

【0016】また、指示手段による発音指示は、より具
体的には、例えばサンプリング周波数データ、音色ナン
バ、キーナンバ等のデータを例えば外部から本楽音信号
発生装置に与えることにより実現される。ここに、サン
プリング周波数データとしては、何れのサンプリング周
波数でサンプリングして作成された波形データを用いる
かを指示するデータを用いることができる。音色ナンバ
としては波形メモリから読み出すべき波形データを指定
するデータを用いることができる。また、キーナンバと
しては、波形メモリから波形データを読み出す速度を指
示するデータを用いることができる。
Further, more specifically, the sounding instruction by the instructing means is realized by, for example, externally giving data such as sampling frequency data, tone color number, key number and the like to the tone signal generator. Here, as the sampling frequency data, it is possible to use data which indicates at which sampling frequency the waveform data created by sampling is used. Data specifying waveform data to be read from the waveform memory can be used as the timbre number. Further, as the key number, data instructing the speed of reading the waveform data from the waveform memory can be used.

【0017】指示手段によって例えばサンプリング周波
数データが与えられると、このサンプリング周波数デー
タに応じて複数の速度データ記憶手段の中の1つが選択
される。これにより、波形メモリ内の読み出すべき波形
データと、その際に使用すべき速度データ(Fナンバデ
ータ)とが一意的に対応付けられる。このようにして選
択された速度データ記憶手段に記憶された複数の速度デ
ータの中から、例えば指示手段で与えられた音色ナンバ
又はキーナンバ等に対応して決定された1つの速度デー
タが波形メモリから波形データを読み出す際に使用され
る。即ち、上記決定された速度データを用いて波形メモ
リから波形データが読み出されて楽音信号が生成され
る。
When, for example, the sampling frequency data is given by the instructing means, one of the plurality of speed data storage means is selected according to the sampling frequency data. Thereby, the waveform data to be read in the waveform memory and the velocity data (F number data) to be used at that time are uniquely associated with each other. From the plurality of speed data stored in the speed data storage means thus selected, for example, one speed data determined corresponding to the tone color number or key number given by the instructing means is stored in the waveform memory. Used when reading waveform data. That is, the waveform data is read from the waveform memory by using the speed data determined above, and the musical tone signal is generated.

【0018】従って、発音指示に際してどのサンプリン
グ周波数でサンプリングして作成された波形データを使
用するかをサンプリング周波数データとして与えてやれ
ば、波形メモリから波形データを読み出すに際して、当
該波形データをサンプリングする際に使用されたサンプ
リング周波数に応じた速度データ記憶手段が選択され、
且つ、その速度データ記憶手段の中から発音指示に応じ
た速度データが決定される。これにより、従来の技術の
欄で説明したような速度データの微少な差が生じること
がないので、例えば高域楽音信号又は中域楽音信号に基
づく楽音と、低域楽音信号に基づく楽音との間に周波数
の差が生じることがなく、これらが同時に発音されても
うなりを生じることがない。
Therefore, when the waveform data created by sampling at which sampling frequency is used when giving a sounding instruction is given as sampling frequency data, when the waveform data is read from the waveform memory, the waveform data is sampled. The speed data storage means is selected according to the sampling frequency used for
In addition, speed data according to the sounding instruction is determined from the speed data storage means. As a result, a slight difference in velocity data as described in the section of the conventional technique does not occur, and therefore, for example, a musical tone based on a high-range musical tone signal or a mid-range musical tone signal and a musical tone based on a low-range musical tone signal. There is no difference in frequency between them, and these are not sounded at the same time and cause a flutter.

【0019】本発明の第2の態様に係る楽音信号発生装
置は、上記第1の態様に係る楽音信号発生装置が、複数
の速度データ記憶手段から1つの速度データ記憶手段を
選択した後に、その選択された速度データ記憶手段に基
づいて1つの速度データを決定し、その決定された速度
データに基づいて楽音信号を生成するのに対し、複数の
速度データ記憶手段に対応して読出速度決定手段を備
え、各読出速度決定手段で決定された速度データを選択
手段で選択して1つの速度データを決定し、その決定さ
れた速度データに基づいて楽音信号を生成する点で、上
述した第1の態様に係る楽音信号発生装置と異なる。
In the tone signal generator according to the second aspect of the present invention, after the tone signal generator according to the first aspect selects one speed data storage means from a plurality of speed data storage means, One speed data is determined based on the selected speed data storage means, and the tone signal is generated based on the determined speed data, whereas the read speed determination means is associated with the plurality of speed data storage means. The speed data determined by each read speed determination means is selected by the selection means to determine one speed data, and a tone signal is generated based on the determined speed data. This is different from the musical tone signal generator according to the embodiment.

【0020】この発明によっても、上記第1の態様に係
る楽音信号発生装置と同様に、従来の技術の欄で説明し
たような速度データの微少な差が生じることがないの
で、例えば高域楽音信号又は中域楽音信号に基づく楽音
と、低域楽音信号に基づく楽音との間に周波数の差が生
じることがなく、これらが同時に発音されてもうなりを
生じることがない。
According to the present invention as well, similar to the tone signal generator according to the first aspect, there is no slight difference in velocity data as described in the section of the prior art, so that, for example, a high frequency tone is generated. There is no frequency difference between the musical tone based on the signal or the midrange tone signal and the musical tone based on the low-range tone signal, and these are sounded at the same time without any harshness.

【0021】[0021]

【実施例】以下、本発明の実施例につき図面を参照しな
がら詳細に説明する。以下の実施例では、本発明の速度
データ記憶手段としてFナンバテーブルを2個有する場
合について説明するが、Fナンバテーブルは2個に限定
されることなく、異なるサンプリング周波数でサンプリ
ングして作成された波形データの種類に応じて任意の数
のFナンバテーブルを用いることができる。
Embodiments of the present invention will now be described in detail with reference to the drawings. In the following embodiments, a case will be described in which two F number tables are provided as the speed data storage means of the present invention. However, the number of F number tables is not limited to two, and it is created by sampling at different sampling frequencies. Any number of F number tables can be used according to the type of waveform data.

【0022】(実施例1)図1は、本発明の楽音信号発
生装置が適用された電子楽器の概略的な構成を示すブロ
ック図である。本楽音信号発生装置は電子楽器と一体に
構成されているが、楽音信号発生装置としての機能は、
主として中央処理装置(以下、「CPU」という。)1
0、リードオンリメモリ(以下、「ROM」という。)
11及び音源18により実現されている。
(Embodiment 1) FIG. 1 is a block diagram showing a schematic configuration of an electronic musical instrument to which the musical tone signal generator of the present invention is applied. This tone signal generator is configured integrally with the electronic musical instrument, but the function as the tone signal generator is
Mainly a central processing unit (hereinafter referred to as "CPU") 1
0, read only memory (hereinafter referred to as "ROM")
11 and the sound source 18.

【0023】本楽音信号発生装置が適用された電子楽器
は、CPU10、ROM11、ランダムアクセスメモリ
(以下、「RAM」という。)12、鍵盤スキャン回路
16及び音源18がシステムバス30で相互に接続され
て構成されている。システムバス30は、例えばアドレ
ス信号、データ信号又は制御信号等を送受するバスライ
ンである。
In an electronic musical instrument to which the tone signal generator of the present invention is applied, a CPU 10, a ROM 11, a random access memory (hereinafter referred to as "RAM") 12, a keyboard scanning circuit 16 and a tone generator 18 are interconnected by a system bus 30. Is configured. The system bus 30 is a bus line that transmits and receives, for example, an address signal, a data signal or a control signal.

【0024】CPU10は、ROM11に記憶されてい
る制御プログラムに従って当該電子楽器の全体を制御す
る。本発明の指示手段の一部、選択手段及び読出速度決
定手段はこのCPU10の処理により実現されている。
このCPU10が行う処理の詳細については後述する。
また、CPU10には操作パネル13、ペダル14及び
MIDIインタフェース15が接続されている。
The CPU 10 controls the entire electronic musical instrument according to a control program stored in the ROM 11. A part of the instructing means, the selecting means and the reading speed determining means of the present invention are realized by the processing of the CPU 10.
Details of the processing performed by the CPU 10 will be described later.
Further, an operation panel 13, a pedal 14 and a MIDI interface 15 are connected to the CPU 10.

【0025】操作パネル13には、図示は省略されてい
るが、当該電子楽器を制御するための各種スイッチ及び
表示器が設けられている。例えば、操作パネル13に
は、複数音色の中から1つの音色を選択するための音色
選択スイッチが設けられている。この音色選択スイッチ
で選択された音色は、音色ナンバとして後述するRAM
12に設けられた音色番号レジスタに格納される。
Although not shown, the operation panel 13 is provided with various switches and a display for controlling the electronic musical instrument. For example, the operation panel 13 is provided with a tone color selection switch for selecting one tone color from a plurality of tones. The timbre selected by this timbre selection switch is a timbre number which will be described later in RAM.
12 is stored in the tone color number register.

【0026】ペダル14には、図示は省略されている
が、例えばダンパペダル、ソフトペダル、ソステヌート
ペダル等が設けられている。これらのペダルは、それぞ
れ所定の音響効果を発揮させるために使用される。
Although not shown, the pedal 14 is provided with, for example, a damper pedal, a soft pedal, a sostenuto pedal, or the like. Each of these pedals is used to exert a predetermined acoustic effect.

【0027】MIDIインタフェース15は、当該電子
楽器と外部装置との間のMIDIデータの送受を制御す
る。外部装置としては、例えば他の電子楽器、コンピュ
ータ、シーケンサ等を用いることができる。演奏者が鍵
盤17を弾いたり、あるいは操作パネル13を操作する
ことにより発生される演奏データは、MIDIインタフ
ェース15を介して外部装置に送信される。また、外部
装置から送られてきたMIDIデータはMIDIインタ
フェース15で受信される。そして、この受信されたM
IDIデータに基づいて当該電子楽器で楽音が発生され
る。
The MIDI interface 15 controls transmission / reception of MIDI data between the electronic musical instrument and an external device. As the external device, for example, another electronic musical instrument, computer, sequencer or the like can be used. Performance data generated by a player playing the keyboard 17 or operating the operation panel 13 is transmitted to an external device via the MIDI interface 15. The MIDI data sent from the external device is received by the MIDI interface 15. And this received M
A musical tone is generated by the electronic musical instrument based on the IDI data.

【0028】ROM11には、上述したCPU10の制
御プログラムの他に、CPU10が各種処理に使用する
種々の固定データが記憶されている。また、このROM
11には、所定の音色を有する楽音を発生させるための
音色パラメータが音色・音域毎に記憶されている。より
具体的には、音色ナンバ及び所定範囲のキーナンバ毎に
音色パラメータが作成されROM11に記憶されてい
る。音色パラメータは、例えば図8に示されるように、
エンベロープデータ、波形アドレス、チューニング情
報、フラグ等で構成されている。図8は1つの音域の1
つの音色に対応する音色パラメータを示しており、低音
域、中音域及び高音域といった3種類のパラメータで構
成されている。楽音発生時は、これら3種類のパラメー
タに応じて3個のオシレータが駆動されることにより1
つの楽音が発生される。
The ROM 11 stores various fixed data used by the CPU 10 for various processes, in addition to the control program for the CPU 10 described above. Also, this ROM
A tone color parameter 11 for storing a tone having a predetermined tone color is stored for each tone color and tone range. More specifically, tone color parameters are created and stored in the ROM 11 for each tone color number and key number within a predetermined range. The timbre parameters are, for example, as shown in FIG.
It is composed of envelope data, waveform address, tuning information, flag and the like. Fig. 8 shows 1 of one range
A tone color parameter corresponding to one tone color is shown, and is composed of three types of parameters such as a low tone range, a middle tone range, and a high tone range. When a musical tone is generated, the three oscillators are driven according to these three types of parameters, and
Two musical tones are generated.

【0029】エンベロープデータには、例えばアタッ
ク、ディケイの各レベルデータ及び速度データ並びにリ
リースの速度データ等が含まれている。また、波形アド
レスには、例えばスタートアドレス、ループトップアド
レス及びループエンドアドレス等が含まれている。チュ
ーニング情報は、当該波形データが使用される音域の基
本となる音を規定するFナンバデータである。例えば、
当該波形データが音名C3から音名B4までの1オクタ
ーブの各音を発生するために使用される場合は、最低音
である音名C3がチューニング情報として記憶される。
The envelope data includes, for example, attack and decay level data, velocity data, release velocity data, and the like. Further, the waveform address includes, for example, a start address, a loop top address, a loop end address and the like. The tuning information is F number data that defines the sound that is the basis of the sound range in which the waveform data is used. For example,
When the waveform data is used to generate each note of one octave from note name C3 to note name B4, note name C3, which is the lowest note, is stored as tuning information.

【0030】フラグ領域にはサンプリング周波数データ
が含まれている。このサンプリング周波数データは、こ
れから読み出そうとする波形データが、何れのサンプリ
ング周波数でサンプリングされて作成されたものである
かを指定するために使用される。より具体的には、4
4.1KHzのサンプリング周波数でサンプリングされ
た波形データであるか、33KHzのサンプリング周波
数でサンプリングされた波形データであるかを指定する
ために使用される。
The flag area contains sampling frequency data. This sampling frequency data is used to specify at which sampling frequency the waveform data to be read is sampled and created. More specifically, 4
It is used to specify whether the waveform data is sampled at the sampling frequency of 4.1 KHz or the waveform data sampled at the sampling frequency of 33 KHz.

【0031】更に、このROM11には、第1のFナン
バテーブル100及び第2のFナンバテーブル101が
記憶されている(図2参照)。これら第1及び第2のF
ナンバテーブル100及び101は、本発明の速度デー
タ記憶手段に対応し、それぞれ速度データとして使用さ
れるFナンバデータが音色及び音域(音色ナンバ及びキ
ーナンバ)毎に記憶されている。本実施例1では、第1
のFナンバテーブル100には、例えば44.1KHz
のサンプリング周波数でサンプリングして作成された波
形データを読み出す際に使用される複数のFナンバデー
タが記憶されているものとする。同様に、第2のFナン
バテーブル101には、例えば33KHzのサンプリン
グ周波数でサンプリングして作成された波形データを読
み出す際に使用される複数のFナンバデータが記憶され
ているものとする。これら第1及び第2のFナンバテー
ブル100及び101は、例えば図9に示される形式で
構成することができる。
Further, the ROM 11 stores a first F number table 100 and a second F number table 101 (see FIG. 2). These first and second F
The number tables 100 and 101 correspond to the velocity data storage means of the present invention, and F number data used as velocity data are stored for each tone color and tone range (tone color number and key number). In the first embodiment, the first
In the F number table 100 of, for example, 44.1 KHz
It is assumed that a plurality of F number data used when reading the waveform data sampled at the sampling frequency of 1 are stored. Similarly, it is assumed that the second F number table 101 stores a plurality of F number data used when reading waveform data created by sampling at a sampling frequency of 33 KHz, for example. The first and second F number tables 100 and 101 can be constructed in the format shown in FIG. 9, for example.

【0032】RAM12は、CPU10が各種処理に使
用するデータを一時的に記憶するために使用される。こ
のRAM12には、当該電子楽器を制御するための各種
レジスタ、カウンタ、フラグ等が定義されている。例え
ば、本実施例1で使用される音色番号レジスタはこのR
AM12に定義されている。
The RAM 12 is used to temporarily store data used by the CPU 10 for various processes. Various registers, counters, flags, etc. for controlling the electronic musical instrument are defined in the RAM 12. For example, the tone color number register used in the first embodiment is R
It is defined in AM12.

【0033】鍵盤17は指示手段の一部に対応するもの
であり、音程を指示するための複数の鍵を有している。
この鍵盤17としては、例えば2接点方式の鍵盤を用い
ることができる。2接点方式の鍵盤17の各鍵は、押鍵
・離鍵動作に連動して異なる押圧深さで開閉される2個
のキースイッチを有している。これにより、キータッチ
(ベロシティ)の検出が可能になっている。この鍵盤1
7は鍵盤スキャン回路16に接続されている。
The keyboard 17 corresponds to a part of the instructing means, and has a plurality of keys for instructing a pitch.
As the keyboard 17, for example, a two-contact type keyboard can be used. Each key of the two-contact type keyboard 17 has two key switches that are opened and closed at different pressing depths in association with key pressing / key releasing operations. This enables detection of key touch (velocity). This keyboard 1
Reference numeral 7 is connected to the keyboard scan circuit 16.

【0034】鍵盤スキャン回路16は、鍵盤17とCP
U10との間のデータ送受を制御する。即ち、鍵盤スキ
ャン回路16は、鍵盤17に対してスキャン信号を送出
し、鍵盤17は、このスキャン信号に応答して第1及び
第2のキースイッチの開閉状態を示すキー信号を鍵盤ス
キャン回路16に送る。鍵盤スキャン回路16は、この
キー信号から、押鍵又は離鍵された鍵のキーナンバを検
出してCPU10に送る。また、鍵盤スキャン回路16
は、上記キー信号から鍵のオンイベント又はオフイベン
トの有無を示すイベント信号を作成してCPU10に送
る。更に、鍵盤スキャン回路16は、上記キー信号を受
け取って第1のキースイッチがオンになってから第2の
キースイッチがオンになるまでの時間を計測することに
より、押鍵の速度を示すタッチデータを生成してCPU
10に送る。
The keyboard scanning circuit 16 includes a keyboard 17 and a CP.
Controls data transmission / reception to / from U10. That is, the keyboard scan circuit 16 sends a scan signal to the keyboard 17, and the keyboard 17 responds to the scan signal by sending a key signal indicating the open / closed state of the first and second key switches to the keyboard scan circuit 16. Send to. The keyboard scan circuit 16 detects the key number of the depressed or released key from this key signal and sends it to the CPU 10. Also, the keyboard scan circuit 16
Generates an event signal indicating the presence or absence of a key on event or off event from the key signal and sends it to the CPU 10. Further, the keyboard scan circuit 16 measures the time from when the first key switch is turned on to when the second key switch is turned on after receiving the above-mentioned key signal, and thereby touches the key pressing speed. CPU to generate data
Send to 10.

【0035】波形メモリ19には、例えば楽音信号を4
4.1KHzのサンプリング周波数でサンプリングして
作成された波形データ及び33KHzのサンプリング周
波数でサンプリングして作成された波形データが記憶さ
れている。この波形メモリ19は音源18に接続されて
いる。
The waveform memory 19 stores, for example, 4 tone signals.
Waveform data created by sampling at a sampling frequency of 4.1 KHz and waveform data created by sampling at a sampling frequency of 33 KHz are stored. The waveform memory 19 is connected to the sound source 18.

【0036】音源18は、複数のオシレータを備えてお
り、CPU10から音色パラメータを受け取ることによ
りデジタル楽音信号の生成を開始する。この音源の詳細
については後述する。この音源18で生成されたデジタ
ル楽音信号はD/A変換器20に送られる。
The sound source 18 is provided with a plurality of oscillators, and receives a tone color parameter from the CPU 10 to start generation of a digital tone signal. Details of this sound source will be described later. The digital musical tone signal generated by the sound source 18 is sent to the D / A converter 20.

【0037】D/A変換器20は、音源18が出力する
デジタル楽音信号をアナログ楽音信号に変換して増幅器
21に送る。増幅器21はD/A変換器20から送られ
てきたアナログ楽音信号を所定の増幅率で増幅してスピ
ーカ22に送る。スピーカ22は、アナログ楽音信号を
音響信号に変換する周知のものである。このスピーカ2
2により鍵盤17の操作に応じた楽音が放音される。
The D / A converter 20 converts the digital musical tone signal output from the sound source 18 into an analog musical tone signal and sends it to the amplifier 21. The amplifier 21 amplifies the analog musical tone signal sent from the D / A converter 20 at a predetermined amplification rate and sends it to the speaker 22. The speaker 22 is a well-known speaker that converts an analog musical tone signal into an acoustic signal. This speaker 2
By 2, the musical sound corresponding to the operation of the keyboard 17 is emitted.

【0038】次に、音源18の詳細について、図2を参
照しながら説明する。図2において、第1及び第2のF
ナンバテーブル100及び101は、上述したように、
ROM11に形成される。また、セレクタ102及びF
ナンバ決定部103は、CPU10の処理により実現さ
れるものである。また、オシレータ180、181及び
182、並びに加算器183は、それぞれ音源18の一
部である。
Next, details of the sound source 18 will be described with reference to FIG. In FIG. 2, the first and second F
The number tables 100 and 101 are, as described above,
It is formed in the ROM 11. Also, the selectors 102 and F
The number determination unit 103 is realized by the processing of the CPU 10. Further, the oscillators 180, 181, and 182, and the adder 183 are each a part of the sound source 18.

【0039】セレクタ102は、本発明の選択手段に対
応するものであり、サンプリング周波数データに応じて
第1のFナンバテーブル100又は第2のFナンバテー
ブル101の何れかを選択する。このセレクタ102に
より選択された第1のFナンバテーブル100又は第2
のFナンバテーブル101は、Fナンバ決定部103に
おいてFナンバデータを決定するために使用される。
The selector 102 corresponds to the selecting means of the present invention, and selects either the first F number table 100 or the second F number table 101 according to the sampling frequency data. The first F number table 100 or the second F number table selected by the selector 102.
The F number table 101 of is used for determining the F number data in the F number determining unit 103.

【0040】Fナンバ決定部103は、本発明の読出速
度決定手段に対応するものであり、その時点で選択され
ている音色ナンバ(その時点で音色番号レジスタに記憶
されている音色ナンバ)と鍵盤17から送られてくるキ
ーナンバに基づき音色パラメータを選択し、更にチュー
ニング情報を考慮してFナンバデータを決定するもので
ある。このFナンバ決定部103の詳細は後述する。
The F number determining unit 103 corresponds to the reading speed determining means of the present invention, and the tone color number selected at that time (the tone color number stored in the tone color number register at that time) and the keyboard. The timbre parameter is selected based on the key number sent from 17, and the F number data is determined in consideration of the tuning information. Details of the F number determination unit 103 will be described later.

【0041】図2においては、音源18として、1つの
音に対応するデジタル楽音信号を生成するために使用さ
れる3個のオシレータ180、181及び182並びに
加算器183しか示されていないが、音源18には、3
個のでなるオシレータのセットがポリフォニック数分だ
け設けられている。本実施例1では、例えばオシレータ
180は高域楽音信号を生成するために使用され、オシ
レータ181は中域楽音信号を生成するために使用さ
れ、オシレータ182は低域楽音信号を生成するために
使用される。なお、加算器183は、全オシレータに対
して1個だけ設けることができる。
In FIG. 2, as the sound source 18, only three oscillators 180, 181, 182 and an adder 183 used to generate a digital musical tone signal corresponding to one sound are shown, but the sound source 18 is not shown. 3 in 18
There are as many sets of oscillators as polyphonic. In the first embodiment, for example, the oscillator 180 is used to generate a high frequency tone signal, the oscillator 181 is used to generate a middle frequency tone signal, and the oscillator 182 is used to generate a low frequency tone signal. To be done. Note that only one adder 183 can be provided for all oscillators.

【0042】各オシレータは、図2に示されるように、
波形読出部200、エンベロープ作成部201及び乗算
器202により構成されている。
Each oscillator, as shown in FIG.
The waveform reading unit 200, the envelope creating unit 201, and the multiplier 202 are included.

【0043】波形読出部200は、音色パラメータに含
まれる波形アドレスに基づいて読出アドレスを生成して
波形メモリ19に送る。即ち、現在の読出アドレス(初
期値は「スタートアドレス」)にFナンバデータを加算
して読出アドレスを生成し、これを波形メモリ19に送
る。これにより、波形メモリ19から波形データが読み
出されて乗算器202に送られる。かかる動作が順次繰
り返されることにより、波形メモリ19から順次波形デ
ータが読み出される。
The waveform reading section 200 generates a read address based on the waveform address included in the tone color parameter and sends it to the waveform memory 19. That is, the F number data is added to the current read address (initial value is “start address”) to generate a read address, which is sent to the waveform memory 19. As a result, the waveform data is read from the waveform memory 19 and sent to the multiplier 202. By repeating this operation sequentially, the waveform data is sequentially read from the waveform memory 19.

【0044】エンベロープ作成部201は、発音開始信
号が与えられた際に、音色パラメータに含まれるエンベ
ロープデータに基づいてエンベロープデータの作成を行
う。このエンベロープデータは、乗算器202に送られ
る。また、エンベロープ作成部201は、同期信号SY
NCを波形読出部200に送る。波形読出部200で
は、この同期信号SYNCに同期して、波形メモリ19
から波形データの読出動作が行われる。従って、波形読
出部200から出力される波形データとエンベロープ作
成部201から出力されるエンベロープデータは、同一
タイミングで乗算器202に与えられることになる。
The envelope creating section 201 creates envelope data based on the envelope data included in the tone color parameter when the tone generation start signal is given. This envelope data is sent to the multiplier 202. In addition, the envelope creating unit 201 uses the synchronization signal SY.
NC is sent to the waveform reading unit 200. In the waveform reading section 200, the waveform memory 19 is synchronized with the synchronization signal SYNC.
The waveform data read operation is performed from. Therefore, the waveform data output from the waveform reading unit 200 and the envelope data output from the envelope creating unit 201 are applied to the multiplier 202 at the same timing.

【0045】乗算器202は、波形読出部200から出
力される波形データとエンベロープ作成部201から出
力されるエンベロープデータとを乗算する。これによ
り、波形データにエンベロープが付加される。この乗算
器202から出力されたエンベロープ付の波形データは
加算器183に送られる。加算器183は、各オシレー
タ180、181及び182で生成された各デジタル楽
音信号(高域楽音信号、中域楽音信号、低域楽音信号)
を加算する。この加算器183の出力が1つの楽音に対
応するデジタル楽音信号としてD/A変換器20に供給
される。
The multiplier 202 multiplies the waveform data output from the waveform reading section 200 and the envelope data output from the envelope creating section 201. As a result, the envelope is added to the waveform data. The waveform data with the envelope output from the multiplier 202 is sent to the adder 183. The adder 183 generates digital tone signals (high-range tone signals, middle-range tone signals, and low-range tone signals) generated by the oscillators 180, 181, and 182.
Is added. The output of the adder 183 is supplied to the D / A converter 20 as a digital musical tone signal corresponding to one musical tone.

【0046】次に、上記構成において、図3〜図5に示
したフローチャートを参照しながら本楽音信号発生装置
が適用された電子楽器の動作について説明する。なお、
上記フローチャートに示された動作は、何れもCPU1
0の処理により実現されるものである。
Next, the operation of the electronic musical instrument to which the present tone signal generating apparatus is applied will be described with reference to the flow charts shown in FIGS. In addition,
The operations shown in the above flowcharts are all performed by the CPU 1
It is realized by the processing of 0.

【0047】図3は本楽音信号発生装置が適用された電
子楽器のメインルーチンを示すフローチャートであり、
電源の投入により起動される。即ち、電源が投入される
と、先ず、初期化処理が行われる(ステップS10)。
この初期化処理では、CPU10の内部のハードウエア
が初期状態に設定されると共に、RAM12に定義され
ているレジスタ、カウンタ或いはフラグ等が初期状態に
設定される。また、この初期化処理では、音源18に所
定のデータを送ることにより、電源投入時に不要な音が
発生されるのを防止するための処理が行われる。
FIG. 3 is a flow chart showing a main routine of an electronic musical instrument to which the musical tone signal generator is applied.
It is started by turning on the power. That is, when the power is turned on, first, initialization processing is performed (step S10).
In this initialization processing, the internal hardware of the CPU 10 is set to the initial state, and the registers, counters, flags, etc. defined in the RAM 12 are set to the initial state. Further, in this initialization processing, processing for preventing generation of unnecessary sound when the power is turned on is performed by sending predetermined data to the sound source 18.

【0048】この初期化処理が終了すると、次いで、パ
ネルイベント処理が行われる(ステップS11)。この
パネルイベント処理では、操作パネル13に設けられて
いる各スイッチの操作に対応した処理が行われる。例え
ば、操作パネル13上の音色選択スイッチが操作される
と、その操作により選択された音色に対応する音色番号
が、音色番号レジスタに格納される。この音色番号レジ
スタの内容は、後述する鍵盤イベント処理において発音
処理を行う際に参照される。
Upon completion of this initialization processing, panel event processing is then carried out (step S11). In this panel event process, a process corresponding to the operation of each switch provided on the operation panel 13 is performed. For example, when the tone color selection switch on the operation panel 13 is operated, the tone color number corresponding to the tone color selected by the operation is stored in the tone color number register. The contents of the tone color number register are referred to when the tone generation process is performed in the keyboard event process described later.

【0049】次いで、ペダルイベント処理が行われる
(ステップS12)。このペダルイベント処理では、図
示しない各ペダルの操作に対応した処理が行われる。例
えば、ダンパペダルが操作されると、発音中の音のリリ
ース時間を長くする処理が行われる。
Next, pedal event processing is performed (step S12). In this pedal event processing, processing corresponding to the operation of each pedal (not shown) is performed. For example, when the damper pedal is operated, processing for extending the release time of the sound being sounded is performed.

【0050】次いで、鍵盤イベント処理が行われる(ス
テップS13)。この鍵盤イベント処理では、押鍵に伴
う発音処理又は離鍵に伴う消音処理等が行われる。これ
らの詳細については後述する。この鍵盤イベント処理が
終了すると、ステップS11に戻って、以下同様の処理
が繰り返される。このようにして、ステップS11〜S
13の繰り返し実行の過程で、パネル操作又は鍵盤操作
に基づくイベントが発生すると、そのイベントに対応し
た処理を行うことにより電子楽器の各種機能が実現され
ている。
Next, keyboard event processing is performed (step S13). In this keyboard event process, a sounding process associated with a key depression or a mute process associated with a key release is performed. Details of these will be described later. When this keyboard event process ends, the process returns to step S11 and the same process is repeated. In this way, steps S11 to S
When an event based on a panel operation or a keyboard operation occurs in the process of repetitive execution of 13, various functions of the electronic musical instrument are realized by performing processing corresponding to the event.

【0051】次に、上記ステップS13で行われる鍵盤
イベント処理の詳細について、図4のフローチャートを
参照しながら説明する。
Next, the details of the keyboard event process performed in step S13 will be described with reference to the flowchart of FIG.

【0052】鍵盤イベント処理では、先ず、オンイベン
トがあったかどうかが調べられるステップS20)。こ
れは鍵盤スキャン回路16から送られてくるイベント信
号を調べることにより行われる。ここで、オンイベント
があることが判断されると、次いで、Fナンバ設定処理
が行われる(ステップS21)。このFナンバ設定処理
は、Fナンバデータを決定して音源18にロードする処
理である。このFナンバ設定処理の詳細は、図5のフロ
ーチャートに示されている。
In the keyboard event processing, it is first checked whether or not there is an on event (step S20). This is done by examining the event signal sent from the keyboard scan circuit 16. Here, if it is determined that there is an on event, then an F number setting process is performed (step S21). This F number setting process is a process of determining the F number data and loading it into the sound source 18. Details of the F number setting process are shown in the flowchart of FIG.

【0053】Fナンバ設定処理では、先ず、音色ナンバ
及びキーナンバからサンプリング周波数データを得る
(ステップS30)。即ち、音色ナンバ及びキーナンバ
で決定される音色パラメータがROM11から読み出さ
れ、その音色パラメータに含まれるフラグ領域に格納さ
れているサンプリング周波数データが取り出される。
In the F number setting process, first, sampling frequency data is obtained from the tone color number and the key number (step S30). That is, the tone color parameter determined by the tone color number and the key number is read from the ROM 11, and the sampling frequency data stored in the flag area included in the tone color parameter is taken out.

【0054】次いで、音色ナンバ、キーナンバ、チュー
ニング情報、サンプリング周波数データからFナンバデ
ータの格納アドレスが算出される(ステップS31)。
このステップS31では、セレクタ102及びFナンバ
決定部103を実現するための処理が行われる。即ち、
上記ステップS30で取り出されたサンプリング周波数
データに基づいて、第1又は第2のFナンバテーブル1
00又は101の何れかが選択される。そして、選択さ
れた第1又は第2のFナンバテーブル100又は101
におけるFナンバデータの格納アドレスが算出される。
このFナンバデータの格納アドレスは、例えばチューニ
ング情報にキーナンバに応じて作成された所定の値を加
算することにより算出することができる。なお、チュー
ンを変更すべき旨が、例えばRAM12に設けられたチ
ューンバッファで指定されている場合は、そのチューン
バッファの内容も加算されてFナンバデータの格納アド
レスが算出される。
Next, the storage address of the F number data is calculated from the tone color number, key number, tuning information, and sampling frequency data (step S31).
In step S31, processing for implementing the selector 102 and the F number determining unit 103 is performed. That is,
Based on the sampling frequency data extracted in step S30, the first or second F number table 1
Either 00 or 101 is selected. Then, the selected first or second F number table 100 or 101.
The storage address of the F number data in is calculated.
The storage address of the F number data can be calculated, for example, by adding a predetermined value created according to the key number to the tuning information. Note that if the tune buffer provided in the RAM 12 specifies that the tune should be changed, the contents of the tune buffer are also added to calculate the storage address of the F number data.

【0055】次いで、算出されたFナンバデータの格納
アドレスからFナンバデータが読み出される(ステップ
S32)。このようにして得られたFナンバデータは、
音源18に送られる(ステップS33)。その後、この
Fナンバ設定処理ルーチンからリターンして、鍵盤イベ
ント処理ルーチンに戻る。
Next, the F number data is read from the calculated storage address of the F number data (step S32). The F number data obtained in this way is
It is sent to the sound source 18 (step S33). After that, the process returns from this F number setting process routine and returns to the keyboard event process routine.

【0056】鍵盤イベント処理ルーチンでは、次いで、
その他の音色パラメータ(波形アドレス、エンベロープ
データ)が音源にロードされる(ステップS22)。次
いで、発音処理が行われる(ステップS23)。この発
音処理では、発音開始信号が音源18に送られる。これ
により、音源18でば、Fナンバ決定部103から送ら
れてきたFナンバデータ(上記Fナンバ設定処理により
設定されたFナンバデータ)、波形アドレス及びエンベ
ロープデータに基づいてデジタル楽音信号の生成が開始
される。
In the keyboard event processing routine,
Other tone color parameters (waveform address, envelope data) are loaded into the tone generator (step S22). Next, a tone generation process is performed (step S23). In this sound generation process, a sound generation start signal is sent to the sound source 18. As a result, the sound source 18 can generate a digital musical tone signal based on the F number data (F number data set by the F number setting process), the waveform address and the envelope data sent from the F number determining unit 103. Be started.

【0057】一方、上記ステップS20でオンイベント
がないことが判断されると、オフイベントがあるかどう
かが調べられる(ステップS24)。これも、上記オン
イベントの場合と同様に、イベント信号を調べることに
より行われる。ここでオフイベントがないことが判断さ
れると、この鍵盤イベント処理ルーチンからリターンし
てメインルーチンに戻る。このステップS20→ステッ
プS24→リターンというシーケンスは、鍵盤操作がな
かった時の処理の流れである。
On the other hand, if it is determined in step S20 that there is no on event, it is checked whether or not there is an off event (step S24). This is also performed by checking the event signal, as in the case of the on event. If it is determined that there is no off event, the control returns from this keyboard event processing routine to the main routine. The sequence of step S20 → step S24 → return is the flow of processing when there is no keyboard operation.

【0058】上記ステップS24でオフイベントがある
ことが判断されると、消音処理が行われる(ステップS
25)。この消音処理では、生成中の楽音信号を所定速
度で減衰させるべく、所定のリリースの速度データが音
源18に送られると共に、発音終了信号が音源18に送
られる。これにより、その時点で発生されている楽音が
消音される。その後、この鍵盤イベント処理ルーチンか
らリターンして、メインルーチンに戻る。
When it is determined that there is an off event in step S24, the muffling process is performed (step S).
25). In this mute processing, speed data of a predetermined release is sent to the sound source 18 and a sounding end signal is sent to the sound source 18 in order to attenuate the musical tone signal being generated at a predetermined speed. As a result, the musical sound generated at that time is muted. After that, the process returns from this keyboard event processing routine and returns to the main routine.

【0059】以上説明したように、本実施例1によれ
ば、44.1KHzと33KHzのサンプリング周波数
でサンプリングして作成された2つの波形データを波形
メモリ19に記憶しておくと共に、各サンプリング周波
数に対応した第1及び第2のFナンバテーブル100及
び101をROM11に記憶しておく。そして、発音指
示に伴って上記何れのFナンバテーブルを用いるかがサ
ンプリング周波数データによって指示されると、上記第
1又は第2のFナンバテーブル100又は101の何れ
かが選択され、キーナンバ及びチューニング情報に応じ
て1つのFナンバデータが得られる。そして、このFナ
ンバデータを用いて波形メモリ19から波形データが読
み出されて楽音信号が生成される。
As described above, according to the first embodiment, two waveform data created by sampling at the sampling frequencies of 44.1 KHz and 33 KHz are stored in the waveform memory 19 and the sampling frequencies are different. The first and second F number tables 100 and 101 corresponding to are stored in the ROM 11. When the sampling frequency data indicates which F number table to use in accordance with the sounding instruction, either the first or second F number table 100 or 101 is selected, and the key number and tuning information are selected. One F number data is obtained according to Then, using this F number data, the waveform data is read from the waveform memory 19 and a tone signal is generated.

【0060】従って、音色パラメータ中のサンプリング
周波数データとして、当該波形データをサンプリングす
る際に使用されたサンプリング周波数に対応するデータ
を格納しておけば、波形メモリ19から波形データを読
み出すに際して、当該波形データのサンプリング時に使
用されたサンプリング周波数に応じたFナンバデータを
使用することができるので、従来の技術の欄で説明した
ようなFナンバの微少な差が生じることがない。従っ
て、高域楽音信号又は中域楽音信号に基づく楽音と、低
域楽音信号に基づく楽音との間に周波数の差が生じるこ
とがなく、これらが同時に発音されてもうなりを生じる
ことがない。
Therefore, if the data corresponding to the sampling frequency used when sampling the waveform data is stored as the sampling frequency data in the tone color parameter, the waveform is read from the waveform memory 19 when the waveform data is read. Since the F number data corresponding to the sampling frequency used at the time of data sampling can be used, a slight difference in F number as described in the section of the related art does not occur. Therefore, there is no difference in frequency between the musical sound based on the high-range tone signal or the middle-range tone signal and the musical tone based on the low-range tone signal, and these are simultaneously sounded and do not cause any harshness.

【0061】なお、この実施例1においては、セレクタ
102及びFナンバ決定部103はCPU10の処理に
より実現したが、これらの機能はハードウエアで実現し
ても良い。
In the first embodiment, the selector 102 and the F number determining unit 103 are realized by the processing of the CPU 10, but these functions may be realized by hardware.

【0062】(実施例2)この実施例2は、第1及び第
2のFナンバテーブル100及び101のそれぞれに対
応して第1及び第2のFナンバ決定部103A及び10
3Bを設け、これら第1及び第2のFナンバ決定部10
3A及び103Bで決定されたFナンバデータの何れか
をセレクタ102で選択して音源18の波形読出部20
0に供給するようにしたものである。
(Second Embodiment) In the second embodiment, the first and second F number determining units 103A and 103 are provided corresponding to the first and second F number tables 100 and 101, respectively.
3B is provided, and the first and second F number determining units 10 are provided.
One of the F number data determined by 3A and 103B is selected by the selector 102 and the waveform reading unit 20 of the sound source 18 is selected.
It is designed to be supplied to 0.

【0063】本実施例2に係る楽音信号発生装置のブロ
ック図を図6に示す。図6において、セレクタ102及
び第1及び第2のFナンバ決定部103A及び103B
は、CPU10の処理により実現されるものである。そ
れ以外の部分は、実施例1(図2)で説明したものと同
じである。
FIG. 6 shows a block diagram of the tone signal generating apparatus according to the second embodiment. In FIG. 6, the selector 102 and the first and second F number determining units 103A and 103B.
Are realized by the processing of the CPU 10. The other parts are the same as those described in the first embodiment (FIG. 2).

【0064】第1及び第2のFナンバ決定部103A及
び103Bは、本発明の読出速度決定手段に対応するも
のであり、その時点で選択されている音色ナンバ(その
時点で音色番号レジスタに記憶されている音色ナン
バ)、鍵盤17から送られてくるキーナンバ及びチュー
ニング情報に基づきFナンバデータを決定するものであ
る。これら第1及び第2のFナンバ決定部103A及び
103Bで決定されたFナンバデータは、それぞれセレ
クタ102に送られる。
The first and second F number determining units 103A and 103B correspond to the reading speed determining means of the present invention, and the tone color number selected at that time (stored in the tone color number register at that time). Tone number), the key number sent from the keyboard 17 and the tuning information, to determine the F number data. The F number data determined by the first and second F number determining units 103A and 103B are sent to the selector 102, respectively.

【0065】セレクタ102は、本発明の選択手段に対
応するものであり、第1又は第2のFナンバ決定部10
3A又は103Bから送られてくるFナンバデータの何
れかを、サンプリング周波数データに応じて選択して音
源18の波形読出部200に送る。
The selector 102 corresponds to the selecting means of the present invention, and is the first or second F number determining section 10
Either the F number data sent from 3A or 103B is selected according to the sampling frequency data and sent to the waveform reading section 200 of the sound source 18.

【0066】次に、上記構成において、図7に示したフ
ローチャートを参照しながら本楽音信号発生装置が適用
された電子楽器の動作について説明する。なお、上記フ
ローチャートに示された動作は、何れもCPU10の処
理により実現されるものである。また、メインルーチン
及び鍵盤イベント処理ルーチンは、実施例1で説明した
ものと同じであるので説明は省略する。
Next, the operation of the electronic musical instrument to which the musical tone signal generating apparatus of the present invention is applied will be described with reference to the flow chart shown in FIG. The operations shown in the above flow charts are all realized by the processing of the CPU 10. Further, the main routine and the keyboard event processing routine are the same as those described in the first embodiment, and the description thereof will be omitted.

【0067】本実施例2のFナンバ設定処理の詳細は、
図7のフローチャートに示されている。即ち、Fナンバ
設定処理では、先ず、サンプリング周波数データから第
1のFナンバ決定部103A又は第2のFナンバ決定部
103Bの何れかを選択する(ステップS40)。サン
プリング周波数データは、上述した実施例1の場合と同
様に、音色ナンバ及びキーナンバで決定される音色パラ
メータをROM11から読み出し、その音色パラメータ
に含まれるフラグ領域に格納されているサンプリング周
波数データを取り出すことにより得ることができる。
Details of the F number setting processing of the second embodiment will be described below.
This is shown in the flow chart of FIG. That is, in the F number setting process, first, either the first F number determining unit 103A or the second F number determining unit 103B is selected from the sampling frequency data (step S40). As the sampling frequency data, as in the case of the above-described first embodiment, the tone color parameters determined by the tone color number and the key number are read from the ROM 11, and the sampling frequency data stored in the flag area included in the tone color parameter is extracted. Can be obtained by

【0068】次いで、上記のようにして選択された第1
のFナンバ決定部103A又は第2のFナンバ決定部1
03Bにおいて、音色ナンバ、キーナンバ及びチューニ
ング情報からFナンバデータの格納アドレスが算出され
る(ステップS41)。このFナンバデータの格納アド
レスは、上記実施例1の場合と同様に、例えばチューニ
ング情報にキーナンバに応じて作成された所定の値を加
算することにより算出することができる。なお、チュー
ンを変更すべき旨が、例えばRAM12に設けられたチ
ューンバッファで指定されている場合は、そのチューン
バッファの内容も加算されてFナンバデータの格納アド
レスが算出される。上述のステップS40及びS41に
より、セレクタ102及びFナンバ決定部103A及び
103Bの機能が実現されている。
Then, the first selected as described above
F number determining unit 103A or the second F number determining unit 1 of
In 03B, the storage address of the F number data is calculated from the tone color number, key number and tuning information (step S41). The storage address of the F number data can be calculated, for example, by adding a predetermined value created according to the key number to the tuning information, as in the case of the first embodiment. Note that if the tune buffer provided in the RAM 12 specifies that the tune should be changed, the contents of the tune buffer are also added to calculate the storage address of the F number data. The functions of the selector 102 and the F number determining units 103A and 103B are realized by steps S40 and S41 described above.

【0069】次いで、算出されたFナンバデータの格納
アドレスからFナンバデータが読み出される(ステップ
S42)。このようにして得られたFナンバデータは、
音源18に送られる(ステップS33)。その後、この
Fナンバ設定処理ルーチンからリターンして、鍵盤イベ
ント処理ルーチンに戻る。
Then, the F number data is read from the calculated storage address of the F number data (step S42). The F number data obtained in this way is
It is sent to the sound source 18 (step S33). After that, the process returns from this F number setting process routine and returns to the keyboard event process routine.

【0070】以上説明したように、本実施例2によれ
ば、44.1KHzと33KHzのサンプリング周波数
でサンプリングして作成された2つの波形データを波形
メモリ19に記憶しておくと共に、各サンプリング周波
数に対応した第1及び第2のFナンバテーブル100及
び101をROM11に記憶しておく。そして、発音指
示に伴ってサンプリング周波数データが与えられると、
このサンプリング周波数データに応じて、第1のFナン
バ決定部103A又は第2のFナンバ決定部103Bの
何れかが選択される。そして、選択された第1又は第2
のFナンバ決定部103A又は103Bは、対応する第
1又は第2のFナンバテーブル100又は101からF
ナンバデータを読み出し、このFナンバデータを用いて
波形メモリ19から波形データが読み出されて楽音信号
が生成される。
As described above, according to the second embodiment, two waveform data created by sampling at the sampling frequencies of 44.1 KHz and 33 KHz are stored in the waveform memory 19 and the sampling frequencies are different. The first and second F number tables 100 and 101 corresponding to are stored in the ROM 11. Then, when the sampling frequency data is given along with the pronunciation instruction,
Either the first F number determination unit 103A or the second F number determination unit 103B is selected according to the sampling frequency data. And the selected first or second
F number determination unit 103A or 103B of the corresponding F number determination unit 103A or 103B from the corresponding first or second F number table 100 or 101.
The number data is read out, the waveform data is read out from the waveform memory 19 using this F number data, and a musical tone signal is generated.

【0071】従って、この実施例2においても、上記実
施例1の場合と同様に、音色パラメータ中のサンプリン
グ周波数データとして、当該波形データをサンプリング
する際に使用されたサンプリング周波数に対応するデー
タを格納しておけば、波形メモリ19から波形データを
読み出すに際して、当該波形データのサンプリング時に
使用されたサンプリング周波数に応じたFナンバデータ
を使用することができるので、うなりを生じることがな
い。
Therefore, also in the second embodiment, as in the case of the first embodiment, the data corresponding to the sampling frequency used when sampling the waveform data is stored as the sampling frequency data in the timbre parameter. Then, when the waveform data is read from the waveform memory 19, the F number data corresponding to the sampling frequency used when the waveform data is sampled can be used, so that no beat occurs.

【0072】なお、上記実施例1及び実施例2では、上
記Fナンバテーブル100及び101をROM11に記
憶した例を示したが、これらはRAM12に設けるよう
に構成しても良い。この場合、Fナンバテーブル100
及び101を外部装置、例えばフロッピーディスク装
置、CD−ROM等に記憶しておき、所定のタイミン
グ、例えば電源投入時や操作パネル13からの指示があ
った時等に外部装置からRAM12にロードするように
構成すれば良い。
In the first and second embodiments, the F number tables 100 and 101 are stored in the ROM 11, but they may be provided in the RAM 12. In this case, the F number table 100
And 101 are stored in an external device, for example, a floppy disk device, a CD-ROM, etc., and loaded into the RAM 12 from the external device at a predetermined timing, for example, when the power is turned on or when there is an instruction from the operation panel 13. It should be configured to.

【0073】また、実施例2においては、セレクタ10
2及びFナンバ決定部103A及び103BはCPU1
0の処理により実現したが、これらの機能はハードウエ
アで実現しても良い。
Further, in the second embodiment, the selector 10
2 and F number determination units 103A and 103B are the CPU 1
Although it is realized by the processing of 0, these functions may be realized by hardware.

【0074】[0074]

【発明の効果】以上詳述したように、本発明によれば、
うなりを生じることのない楽音信号を発生できる楽音信
号発生装置を提供できる。
As described in detail above, according to the present invention,
It is possible to provide a musical tone signal generator capable of generating a musical tone signal without causing a beat.

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

【図1】本発明の楽音信号発生装置が適用された電子楽
器の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an electronic musical instrument to which a musical tone signal generator of the present invention is applied.

【図2】本発明の実施例1の楽音信号発生装置の構成を
示すブロック図である。
FIG. 2 is a block diagram showing a configuration of a musical tone signal generator according to a first embodiment of the present invention.

【図3】本発明の実施例1及び実施例2のメインルーチ
ンを示すフローチャートである。
FIG. 3 is a flowchart showing a main routine of Embodiments 1 and 2 of the present invention.

【図4】本発明の実施例1及び実施例2の鍵盤イベント
処理を示すフローチャートである。
FIG. 4 is a flowchart showing keyboard event processing according to the first and second embodiments of the present invention.

【図5】本発明の実施例1のFナンバ設定処理を示すフ
ローチャートである。
FIG. 5 is a flowchart showing an F number setting process according to the first embodiment of the present invention.

【図6】本発明の実施例2の楽音信号発生装置の構成を
示すブロック図である。
FIG. 6 is a block diagram showing a configuration of a musical tone signal generator according to a second embodiment of the present invention.

【図7】本発明の実施例2のFナンバ設定処理を示すフ
ローチャートである。
FIG. 7 is a flowchart showing an F number setting process according to the second embodiment of the present invention.

【図8】本発明の実施例1及び実施例2に用いられる音
色パラメータの例を示す図である。
FIG. 8 is a diagram showing an example of tone color parameters used in the first and second embodiments of the present invention.

【図9】従来の楽音信号発生装置及び本発明の実施例に
用いられるFナンバテーブルを説明するための図であ
る。
FIG. 9 is a diagram for explaining an F number table used in a conventional tone signal generator and an embodiment of the present invention.

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

10 CPU 11 ROM 12 RAM 13 操作パネル 14 ペダル 15 MIDIインタフェース 16 鍵盤スキャン回路 17 鍵盤 18 音源 19 波形メモリ 20 D/A変換器 21 増幅器 22 スピーカ 30 システムバス 100 第1のFナンバテーブル 101 第2のFナンバテーブル 102 セレクタ 103 Fナンバ決定部 103A 第1のFナンバ決定部 103B 第2のFナンバ決定部 180〜182 オシレータ 183 加算器 200 波形読出部 201 エンベロープ作成部 202 乗算器 10 CPU 11 ROM 12 RAM 13 Operation Panel 14 Pedal 15 MIDI Interface 16 Keyboard Scan Circuit 17 Keyboard 18 Sound Source 19 Waveform Memory 20 D / A Converter 21 Amplifier 22 Speaker 30 System Bus 100 First F Number Table 101 Second F Number table 102 Selector 103 F number determining unit 103A First F number determining unit 103B Second F number determining unit 180 to 182 Oscillator 183 Adder 200 Waveform reading unit 201 Envelope creating unit 202 Multiplier

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 それぞれが異なるサンプリング周波数で
サンプリングして作成された複数の波形データを記憶し
た波形メモリと、 該波形メモリ内の前記複数の波形データに対応して設け
られ、各波形データのサンプリング周波数に応じて読出
速度を規定する速度データが記憶された複数の速度デー
タ記憶手段と、 発音を指示する指示手段と、 該指示手段の指示に応じて前記複数の速度データ記憶手
段の中の1つを選択する選択手段と、 前記指示手段の指示に応じて該選択手段で選択された速
度データ記憶手段に記憶されている速度データに基づき
波形データの読出速度を決定する読出速度決定手段と、 該読出速度決定手段で決定された速度データに基づき前
記波形メモリから波形データを読み出して楽音信号を生
成する楽音信号生成手段、 とを備えたことを特徴とする楽音信号発生装置。
1. A waveform memory storing a plurality of waveform data, each of which is created by sampling at a different sampling frequency, and a waveform memory provided in association with the plurality of waveform data in the waveform memory. A plurality of speed data storage means for storing speed data defining a read speed according to a frequency; an instruction means for instructing sounding; and one of the plurality of speed data storage means in response to an instruction from the instruction means. Selecting means for selecting one of the two, and a reading speed determining means for determining the reading speed of the waveform data based on the speed data stored in the speed data storage means selected by the selecting means in response to the instruction of the instructing means. A tone signal generating means for reading waveform data from the waveform memory based on the speed data determined by the reading speed determining means to generate a tone signal. A musical tone signal generating device comprising:
【請求項2】 それぞれが異なるサンプリング周波数で
サンプリングして作成された複数の波形データを記憶し
た波形メモリと、 該波形メモリ内の前記複数の波形データに対応して設け
られ、波形データの読出速度を規定する速度データが記
憶された複数の速度データ記憶手段と、 発音を指示する指示手段と、 前記複数の速度データ記憶手段に対応して設けられ、該
指示手段の指示に応じて、それぞれが対応する速度デー
タ記憶手段に記憶されている速度データに基づき波形デ
ータの読出速度を決定する複数の読出速度決定手段と、 前記指示手段の指示に応じて該複数の読出速度決定手段
の中の1つを選択する選択手段と、 該選択手段で選択された読出速度決定手段で決定された
速度データに基づき前記波形メモリから波形データを読
み出して楽音信号を生成する楽音信号生成手段、 とを具備したことを特徴とする楽音信号発生装置。
2. A waveform memory storing a plurality of waveform data each sampled at a different sampling frequency, and a waveform data read speed provided corresponding to the plurality of waveform data in the waveform memory. A plurality of speed data storage means for storing speed data for defining the above, an instruction means for instructing sound generation, and a plurality of speed data storage means are provided corresponding to the plurality of speed data storage means. A plurality of read speed determining means for determining the read speed of the waveform data based on the speed data stored in the corresponding speed data storing means, and one of the plurality of read speed determining means according to the instruction of the instructing means. Selecting means for selecting one of the waveform data, and reading the waveform data from the waveform memory based on the speed data determined by the reading speed determining means selected by the selecting means. Tone signal generation means for generating a musical tone signal Te, the musical tone signal generating apparatus being characterized in that comprises a city.
JP6319021A 1994-11-29 1994-11-29 Musical sound signal generating device Withdrawn JPH08152886A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6319021A JPH08152886A (en) 1994-11-29 1994-11-29 Musical sound signal generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6319021A JPH08152886A (en) 1994-11-29 1994-11-29 Musical sound signal generating device

Publications (1)

Publication Number Publication Date
JPH08152886A true JPH08152886A (en) 1996-06-11

Family

ID=18105627

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6319021A Withdrawn JPH08152886A (en) 1994-11-29 1994-11-29 Musical sound signal generating device

Country Status (1)

Country Link
JP (1) JPH08152886A (en)

Similar Documents

Publication Publication Date Title
EP3882906A1 (en) Electronic keyboard musical instrument and method of generating musical sound
EP3882905A1 (en) Electronic musical instrument, electronic keyboard musical instrument, and method of generating musical sound
JPH06259065A (en) Electronic musical instrument
US5074183A (en) Musical-tone-signal-generating apparatus having mixed tone color designation states
JPH06195075A (en) Musical tone generating device
JPH06332449A (en) Singing voice reproducing device for electronic musical instrument
JPH09330079A (en) Music sound signal generation device and music sound signal generation method
JPH06259064A (en) Electronic musical instrument
JPH08152886A (en) Musical sound signal generating device
JP3933070B2 (en) Arpeggio generator and program
JP4094441B2 (en) Electronic musical instruments
JPH06242781A (en) Electronic musical instrument
JP2888712B2 (en) Music generator
JPH10319949A (en) Electronic musical instrument
JPH06348258A (en) Automatic playing device of electronic musical instrument
JP2005017676A (en) Automatic music player and program
JP2953217B2 (en) Electronic musical instrument
JP3532047B2 (en) Tone signal generator and tone signal generation method
JP3129119B2 (en) Envelope waveform generator
JP2730549B2 (en) Electronic musical instrument
JP4186855B2 (en) Musical sound control device and program
JPH06289860A (en) Electronic musical instrument
JPH0627946A (en) Electronic keyboard musical instrument
JP2715038B2 (en) Automatic performance device
JPH06250650A (en) Electronic musical instrument

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020205