JP2576614B2 - Processing equipment - Google Patents

Processing equipment

Info

Publication number
JP2576614B2
JP2576614B2 JP63334160A JP33416088A JP2576614B2 JP 2576614 B2 JP2576614 B2 JP 2576614B2 JP 63334160 A JP63334160 A JP 63334160A JP 33416088 A JP33416088 A JP 33416088A JP 2576614 B2 JP2576614 B2 JP 2576614B2
Authority
JP
Japan
Prior art keywords
data
program
waveform
address
tone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP63334160A
Other languages
Japanese (ja)
Other versions
JPH02179693A (en
Inventor
隆二 宇佐美
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP63334160A priority Critical patent/JP2576614B2/en
Publication of JPH02179693A publication Critical patent/JPH02179693A/en
Application granted granted Critical
Publication of JP2576614B2 publication Critical patent/JP2576614B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】 [発明の技術分野] この発明は処理装置に関し、特に処理装置の構造的な
アーキテクチャーに関する。
Description: TECHNICAL FIELD The present invention relates to a processing device, and more particularly to a structural architecture of the processing device.

[従来技術とその問題点] 近年、電子楽器はコンピュータ化されている。しか
し、大量で高速のデータ演算が必要な楽音の生成に係る
部分は音源回路と呼ばれる専用構造のハードウェアで行
われており、マイクロコンピュータは楽器への制御入力
(鍵盤やコンソールパネルからの入力、MIDIその他の外
部制御入力、内部または外部の演奏メモリからの入力
等)を処理し、音源回路に適したコマンドを音源回路に
転送するに留まっている。
[Prior art and its problems] In recent years, electronic musical instruments have been computerized. However, the part related to the generation of musical tones that require a large amount of high-speed data operation is performed by hardware of a special structure called a tone generator circuit, and the microcomputer controls input to the musical instrument (input from the keyboard or console panel, MIDI or other external control input, input from an internal or external performance memory, etc.) and only transfer commands appropriate for the tone generator circuit to the tone generator circuit.

音源回路は、楽音の合成の方式によりその構造は異な
るが、いずれの音源方式のものもその回路規模は大き
い。代表的には、マイクロコンピュータ(中央演算装
置)の回路規模の約2倍である。
The sound source circuit has a different structure depending on the method of synthesizing a musical tone, but any of the sound source methods has a large circuit scale. Typically, the circuit size is about twice as large as that of a microcomputer (central processing unit).

一例として、第11図にPCM音源タイプのブロック図を
示す。PCM音源100を制御するマイクロコンピュータ101
が存在し、PCM音源100で楽音の生成に必要な情報(コマ
ンド)がマイクロコンピュータ101よりPCM音源100に送
られる。マイクロコンピュータ101からのコマンドは音
源コマンド解析部102を介して音源の各部にセットされ
る。
As an example, FIG. 11 shows a block diagram of a PCM sound source type. Microcomputer 101 for controlling PCM sound source 100
Exists, and information (commands) necessary for generating a musical sound in the PCM sound source 100 is sent from the microcomputer 101 to the PCM sound source 100. A command from the microcomputer 101 is set in each part of the sound source via the sound source command analysis unit 102.

例えば、発音開始時には以下の手順で情報がセットさ
れる。
For example, at the start of sound generation, information is set in the following procedure.

(a)発音しようとする波形の入っている波形記憶装置
107に対するアドレス(通常、スタートアドレス、エン
ドアドレス、ループアドレスから成る)を送る。これら
のアドレスはアドレス制御部104内にセットされる。
(A) Waveform storage device containing waveform to be sounded
Send the address for 107 (usually consisting of start address, end address, loop address). These addresses are set in the address control unit 104.

(b)発音しようとする楽音のピッチデータを送る。ピ
ッチデータは音程制御部105にセットされる。
(B) Send pitch data of a musical tone to be sounded. The pitch data is set in the pitch control unit 105.

(c)エンベロープデータを送ってエンベロープ制御部
106にセットする。
(C) Envelope controller by sending envelope data
Set to 106.

(d)チャンネル制御をオンとする(チャンネルON/OFF
制御部103にセット)。
(D) Turn on channel control (Channel ON / OFF
Set in the control unit 103).

これらのデータはポリフォニック音源の場合にはチャ
ンネル番号を合わせる必要があり音源100の各部は時分
割で動作しなければならない。以上のデータがセットさ
れるとPCM音源100は次のようにして楽音を生成する。該
当チャンネルタイムで、アドレス制御部104は音程制御
部105からのピッチデータの累算結果に最も近い2つの
隣り合うアドレスにある波形データ(直前波形値と直後
波形値)を波形記憶装置107から読み出す。この波形デ
ータは波形処理部108に送られて、ここで、直前波形値
と直後波形値の差が演算される。この差と直前波形値は
補間回路109に送られ、ここで、隣り合う波形値の差に
波形記憶装置のアドレスの小数部PD(図では音程制御部
105から与えられる)を乗算し、それに直前波形値を加
算して補間値を得、この補間値にエンベロープ制御部10
6で生成したエンベロープ値EDを乗算してチャンネルの
楽音波形の瞬時値を得る。この瞬時値は加算器110です
べてのチャンネルについて累算され、その結果がD/A変
換器111に送られてアナログの楽音信号となる。
In the case of a polyphonic sound source, these data need to match the channel number, and each part of the sound source 100 must operate in a time division manner. When the above data is set, the PCM sound source 100 generates a musical sound as follows. At the corresponding channel time, the address control unit 104 reads from the waveform storage unit 107 the waveform data (the immediately preceding waveform value and the immediately following waveform value) at the two adjacent addresses closest to the pitch data accumulation result from the pitch control unit 105. . This waveform data is sent to the waveform processing unit 108, where the difference between the immediately preceding waveform value and the immediately following waveform value is calculated. This difference and the immediately preceding waveform value are sent to the interpolation circuit 109, where the difference between adjacent waveform values is added to the decimal part PD of the address of the waveform storage device (the pitch control unit in the figure).
105) and the immediately preceding waveform value is added thereto to obtain an interpolated value.
The instantaneous value of the musical tone waveform of the channel is obtained by multiplying the envelope value ED generated in step 6. This instantaneous value is accumulated for all the channels by the adder 110, and the result is sent to the D / A converter 111 to be an analog tone signal.

この例からもわかるように、音源回路のハードウェア
には、演算回路とデータを一時的に保持するための記憶
装置が処理段階の随所に必要であり、回路が大規模にな
る問題がある。また、特定の音源回路の構造は特定音源
方式、特定のポリフォニック数の楽音合成を実現するの
みであり、ポリフォニック数を変えるだけでも、大幅な
回路変更、追加を余儀なくされる。更には、マイクロコ
ンピュータから音源回路に送るコマンドのセットについ
ても音源に合わせて設計を行う必要があり、音源制御の
プログラムの開発に多大の時間と労力を必要とする。
As can be seen from this example, the hardware of the tone generator circuit requires an arithmetic circuit and a storage device for temporarily holding data at every stage of the processing, and there is a problem that the circuit becomes large-scale. Further, the structure of the specific tone generator circuit only realizes the tone synthesis with the specific tone generator method and the specific polyphonic number. Even if the polyphonic number is simply changed, a significant circuit change or addition is inevitable. Further, it is necessary to design a set of commands to be sent from the microcomputer to the tone generator circuit in accordance with the tone generator, which requires a great deal of time and effort to develop a tone control program.

次に、音源回路ハードウェアに組み込まれる音程制御
部について説明する。第11図の音程制御部105のハード
ウェア構成を第12図に示す。図の加算アドレスレジスタ
201にはマイクロコンピュータ101より音源コマンド解析
部102を介して、楽音の周波数を表わすピッチデータが
セットされる。このピッチデータは該当チャンネルタイ
ムにおいて、加算器202により補間用アドレスレジスタ2
03の出力に加算され、その和がゲートGを介して補間用
アドレスレジスタ203に入力される。加算器202のキャリ
ー端子は加算時のキャリー信号を出力し、この信号は第
1図のアドレス制御部104に入力される。アドレス制御
部104では加算器202からキャリーが出力されるときに波
形記憶装置107に対するアドレスをプラス1する。一
方、補間用アドレスレジスタ203の出力はアドレスの補
間値PDとして上記補間回路109に入力される。アドレス
補間値は波形記憶装置107から読み出す波形データのア
ドレスからの距離を示すもので、以下、このデータをア
ドレス小数部と呼ぶことにする。一方、波形記憶装置10
7の物理上の記憶場所に対するアドレスをアドレス整数
部と呼ぶことにする。つまり、アドレス整数部とアドレ
ス小数部とで楽音の波形の位相が定められるわけであ
る。デジタルの波形記憶装置107は任意の位相における
波形値をもつことはできないので、波形値の補間演算が
必要となる。
Next, a pitch control unit incorporated in the tone generator circuit hardware will be described. FIG. 12 shows a hardware configuration of the pitch control unit 105 in FIG. Addition address register shown
In the 201, pitch data representing the frequency of a musical tone is set from the microcomputer 101 via the sound source command analysis unit 102. This pitch data is added to the interpolation address register 2
03 is added to the output, and the sum is input to the interpolation address register 203 via the gate G. The carry terminal of the adder 202 outputs a carry signal at the time of addition, and this signal is input to the address control unit 104 in FIG. The address controller 104 increments the address of the waveform storage device 107 by one when the carry is output from the adder 202. On the other hand, the output of the interpolation address register 203 is input to the interpolation circuit 109 as an address interpolation value PD. The address interpolation value indicates the distance from the address of the waveform data read from the waveform storage device 107, and this data is hereinafter referred to as an address decimal part. On the other hand, the waveform storage device 10
The address for the physical storage location 7 is called an address integer part. That is, the phase of the waveform of the musical tone is determined by the address integer part and the address decimal part. Since the digital waveform storage device 107 cannot have a waveform value at an arbitrary phase, interpolation calculation of the waveform value is required.

第12図に例示するような音程制御部は広い音域にわた
って使用することができない。例えば原音と同じ高さの
音を波形記憶装置107に記録したサンプリング周波数の
倍で再生する場合を考えると、加算アドレスレジスタ20
1のデータ波形記憶装置107の隣り合うアドレスの距離の
半分に相当する0.5の大きさをもたなければならない。
加算アドレスレジスタを15ビットのサイズとし、2進で
表現すると、この0.5の大きさは、 10000 00000 00000 (データA) となる。このとき、加算器202から2回につき1回キャ
リーが出る。この場合、加算アドレスレジスタにセット
できる最大値は明らかに、 11111 11111 11111 (データB) である。これはデータAの示す原音の周波数のほぼ2倍
であるが1オクターブ上に達していない。これが第12図
の音程制御部で使用することのできる音域の上限であ
る。たしかにハードウェアを複雑化してこれより広い音
域で使用することもできるが、複雑な回路に見合うほど
の効果は生まれない。例えば、高品質の楽音が要求され
る高級なサンプリング電子楽器では、同じ音色(例えば
ピアノ)の楽音の波形データ(原音データ)を多数の音
高別に用意し、限られた音域でのみ再生する。明らかに
この方式は、莫大な記憶容量の犠牲があって初めて成り
立つものである。
The pitch control unit as exemplified in FIG. 12 cannot be used over a wide range. For example, consider a case where a sound having the same pitch as the original sound is reproduced at twice the sampling frequency recorded in the waveform storage device 107.
It must have a size of 0.5, which is half the distance between adjacent addresses in one data waveform storage device 107.
When the addition address register has a size of 15 bits and is expressed in binary, the size of 0.5 is 10000 00000 00000 (data A). At this time, a carry is output once every two times from the adder 202. In this case, the maximum value that can be set in the addition address register is clearly 11111 11111 11111 (data B). This is almost twice the frequency of the original sound indicated by data A, but does not reach one octave higher. This is the upper limit of the range that can be used by the pitch control unit in FIG. Certainly, the hardware can be complicated and used in a wider range, but it is not as effective as complex circuits. For example, in a high-grade sampling electronic musical instrument that requires high-quality musical sounds, waveform data (original sound data) of musical sounds of the same tone (for example, piano) are prepared for a large number of pitches and reproduced only in a limited range. Obviously, this method is only feasible at the expense of huge storage capacity.

[発明の目的] この発明は上述した音源回路ハードウェアの問題並び
にピッチ制御に関する原音の波形データからの狭い音域
での楽音再生能力の問題に鑑み、音源回路ハードウェア
なしでも楽音を生成でき、かつ記憶容量の増大や回路の
複雑化をまねくことなく、限られた楽音波形データから
広い音域あるいは所望の音域にわたって楽音を生成する
ことのできる処理装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problem of the sound source circuit hardware and the problem of the ability to reproduce a tone in a narrow range from the waveform data of the original sound relating to pitch control. It is an object of the present invention to provide a processing apparatus capable of generating a musical tone from a limited musical tone waveform data over a wide range or a desired range without increasing the storage capacity or complicating the circuit.

[発明の構成、作用] この発明によれば、上記の目的を達成するため、外部
より供給される制御信号入力を処理するための制御用プ
ログラム及び制御信号入力の処理結果に基づきポリフォ
ニックの楽音をリアルタイムで生成するための楽音生成
用プログラムを記憶するプログラム記憶手段と、上記プ
ログラム記憶手段に記憶されたプログラムを読み出すた
めのアドレスを制御するアドレス制御手段と、前記アド
レス制御手段により前記プログラム記憶手段から読み出
されたプログラムの各命令を解読する解読手段と、音波
形データを記憶する波形データ記憶手段と、前記解読手
段により解読された制御用プログラムの各命令に従って
生成された、楽音の生成に必要なデータを記憶するデー
タ記憶手段と、前記データ記憶手段に記憶されたデータ
及び前記波形データ記憶手段に記憶された波形データを
前記解読手段にて解読された楽音生成用プログラムの各
命令に従って演算処理して楽音信号を生成する演算処理
手段と、を備えるマイクロコンピュータからなり、この
マイクロコンピュータが前記制御用プログラムを実行す
るとともに、音高には依存しない所定のサンプリング周
期ごとに上記楽音生成用プログラムを起動し、実行する
ことにより、ポリフォニックの楽音信号をリアルタイム
で生成し、出力し、更に、このマイクロコンピュータが
前記楽音生成用プログラムの実行による機能として、楽
音の周波数を表わすピッチデータから楽音の波形の位相
を表わす整数部と小数部とから成る位相データを生成す
る手段と、前記整数部のデータに従って前記波形データ
記憶手段から複数のアドレス夫々にある波形データを読
み出す手段と、読み出された複数の波形データと上記小
数部のデータとから、上記位相データの示す位相におけ
る波形データの値を補間演算する手段と、を実現するこ
とを特徴とする処理装置が提供される。
According to the present invention, in order to achieve the above object, a polyphonic musical tone is generated based on a control program for processing a control signal input supplied from the outside and a processing result of the control signal input. A program storage means for storing a musical sound generation program for generating in real time; an address control means for controlling an address for reading out a program stored in the program storage means; and Decoding means for decoding each instruction of the read program, waveform data storage means for storing sound waveform data, and necessary for generating musical tones generated according to each instruction of the control program decoded by the decoding means. Data storage means for storing important data, and data stored in the data storage means. Arithmetic processing means for performing arithmetic processing on the waveform data stored in the waveform data storage means in accordance with each instruction of the musical tone generation program decoded by the decoding means to generate a musical tone signal. The microcomputer executes the control program, activates and executes the tone generation program at predetermined sampling intervals independent of pitch, and generates a polyphonic tone signal in real time, Means for generating phase data consisting of an integer part and a fractional part representing the phase of the waveform of the tone from the pitch data representing the frequency of the tone, as a function of the microcomputer executing the tone generating program. , From the waveform data storage means according to the data of the integer part. Means for reading the waveform data at each of the addresses, and means for interpolating the value of the waveform data at the phase indicated by the phase data from the plurality of read waveform data and the data of the decimal part. A processing device is provided.

この構成の場合、楽音の生成をマイクロコンピュータ
のプログラム制御によりマイクロコンピュータ自身が行
っているので、従来のような音源回路ハードウェアは不
必要となる。更に、楽音生成のサンプリングタイムごと
に楽音を生成するためのプログラムを実行することによ
り、その機能としてピッチデータからの位相データの演
算、位相データの整数部(上位ビット)に基づく波形デ
ータの読み出し、読み出した波形データと位相データの
小数部(下位ビット)とを用いる指示された位相におけ
る波形データの値の補間演算の各手段を実現しているの
で、ピッチデータに広い音域にわたる楽音周波数情報を
もたせても、それに対応する楽音の生成が可能となる。
そして、このために回路規模、記憶容量の面で大幅な追
加は必要としない。
In the case of this configuration, the tone generation is performed by the microcomputer itself under program control of the microcomputer, so that the conventional tone generator circuit hardware is unnecessary. Further, by executing a program for generating a musical tone at each sampling time of musical tone generation, functions such as calculation of phase data from pitch data, reading of waveform data based on an integer part (upper bits) of the phase data, Since the means for interpolating the value of the waveform data at the designated phase using the read waveform data and the fractional part (lower bit) of the phase data is realized, the pitch data is provided with tone frequency information over a wide range. However, it is possible to generate a corresponding musical tone.
For this reason, no significant addition is required in terms of circuit scale and storage capacity.

一構成例において、上記マイクロコンピュータは集積
回路チップで実現され、このチップ上に上記手段に加
え、生成したデジタル楽音信号をアナログ信号に変換す
るデジタル・アナログ(D/A)変換器と楽器を制御する
入力を受けるポートも実装される。
In one configuration example, the microcomputer is realized by an integrated circuit chip, on which a digital-to-analog (D / A) converter for converting a generated digital tone signal to an analog signal and a musical instrument are provided in addition to the above-mentioned means. A port to receive input is also implemented.

[実施例] 以下、図面を参照してこの発明の実施例を説明する。Embodiment An embodiment of the present invention will be described below with reference to the drawings.

本実施例に係る電子楽器の全体構成を第1図に示す。
装置全体の制御がマイクロコンピュータ1により行われ
る。特に、この発明に従い、楽器の制御入力の処理のみ
ならず、楽音を生成する処理もマイクロコンピュータ1
で実行され、楽音生成用の音源回路ハードウェアは必要
としない。鍵盤2と機能キー3とから成るスイッチ部4
は楽器の制御入力源であり、スイッチ部4から入力され
た情報はマイクロコンピュータ1で処理される。マイク
ロコンピュータ1の生成したアナログ変換後の楽音信号
はローパスフィルタ5でフィルタリングされ、アンプ6
で増幅され、スピーカ7を介して放音される。電源回路
8はマイクロコンピュータ1、ローパスフィルタ5、ア
ンプ6に必要な電源を供給する。
FIG. 1 shows the overall configuration of the electronic musical instrument according to the present embodiment.
The microcomputer 1 controls the entire apparatus. In particular, according to the present invention, the microcomputer 1 performs not only the processing of control input of the musical instrument but also the processing of generating musical tones.
, And does not require tone generator circuit hardware for musical tone generation. Switch section 4 composed of keyboard 2 and function keys 3
Is a control input source of the musical instrument, and information inputted from the switch unit 4 is processed by the microcomputer 1. The tone signal after analog conversion generated by the microcomputer 1 is filtered by the low-pass filter 5 and
And is emitted through the speaker 7. The power supply circuit 8 supplies necessary power to the microcomputer 1, the low-pass filter 5, and the amplifier 6.

上記マイクロコンピュータ1の内部構造を第2図にブ
ロック図で示す。図示の各要素はワンチップ上に実装さ
れている。実際に製作したものは5×5mmのチップサイ
ズで、8音ポリフォニックの同時発音数をもち、楽音合
成方式はPCM(波形読み出し方式)である。もちろん、
ポリフォニック数は楽音生成のサンプリング周波数を維
持する範囲内において、容易に変更することができる。
FIG. 2 is a block diagram showing the internal structure of the microcomputer 1. The illustrated elements are mounted on one chip. The actually produced one has a chip size of 5 x 5 mm, has eight tones of polyphonic polyphony, and the tone synthesis method is PCM (waveform readout method). of course,
The polyphonic number can be easily changed within a range that maintains the sampling frequency for musical tone generation.

制御用ROM31には楽器の各種制御入力を処理するプロ
グラムと楽音を生成するプログラムが記憶されており、
ROMアドレス制御部39からROMアドレスデコーダ32を介し
て指定されたアドレスのプログラム語(命令)を順次出
力していく。なお、具体的実験では、プログラム語長は
28ビットであり、プログラム語の一部が次に読み出され
るべきアドレスの下位部(ページ内アドレス)としてRO
Mアドレス制御部39に入力されるネクストアドレス方式
となっているが、プログラムカウンタ方式のものにも本
発明を適用し得る。RAMアドレス制御部33は制御用ROM31
からの命令のオペランドがレジスタを指定している場合
に、RAM34内の対応するレジスタのアドレスを指定す
る。RAM34はレジスタ群であり、汎用演算、フラグ演
算、楽音の演算等に使用される。加減算器及び論理演算
部35と乗算器36は制御用ROM32からの命令が演算命令の
ときに用いられる。特に乗算器36は楽音波形の演算に使
用しており、そのための最適化として第1と第2のデー
タ入力(例えば16ビットデータ)を乗算して入力と同じ
長さ(16ビット)のデータを出力するようになってい
る。上記RAM34、加減算器35、乗算器36により、演算回
路(AU)が構成される。制御データ兼波形用ROM37には
ピッチデータ、エンベロープデータ(レート、レベル)
などの各種楽音制御パラメータと、PCM(パルス符号変
調)の楽音波形データが記憶されている。エンベロープ
データと楽音波形データは楽音の音色ごとに用意され
る。オペレーション解析部(オペレーション制御回路)
38は制御用ROM31からの命令のオペコードを解読し、指
示されるオペレーションを実行するために、回路の各部
に制御信号を送る。
The control ROM 31 stores a program for processing various control inputs of the musical instrument and a program for generating musical sounds.
The program word (instruction) of the designated address is sequentially output from the ROM address control unit 39 via the ROM address decoder 32. In specific experiments, the program word length is
28 bits, part of the program word is RO as the lower part (address in page) of the address to be read next
Although the next address system is input to the M address control unit 39, the present invention can also be applied to a program counter system. The RAM address control unit 33 is a control ROM 31
If the operand of the instruction specifies a register, the address of the corresponding register in the RAM 34 is specified. The RAM 34 is a group of registers, and is used for general-purpose arithmetic, flag arithmetic, musical tone arithmetic, and the like. The adder / subtracter / logical operation unit 35 and the multiplier 36 are used when the instruction from the control ROM 32 is an operation instruction. In particular, the multiplier 36 is used for the calculation of the tone waveform, and as an optimization therefor, the first and second data inputs (for example, 16-bit data) are multiplied to obtain data having the same length (16 bits) as the input. Output. The RAM 34, the adder / subtractor 35, and the multiplier 36 constitute an arithmetic circuit (AU). Pitch data and envelope data (rate, level) in ROM 37 for control data and waveform
For example, various tone control parameters such as tone and tone waveform data of PCM (pulse code modulation) are stored. The envelope data and the tone waveform data are prepared for each tone color of the tone. Operation analysis unit (operation control circuit)
38 decodes the operation code of the instruction from the control ROM 31 and sends a control signal to each part of the circuit to execute the specified operation.

所定時間ごとに制御用ROM31の楽音生成プログラムを
実行するため、この実績例ではタイマーインタラプトを
採用している。すなわち、タイマーを有するインタラプ
ト制御部40により、一定時間ごとにROMアドレス制御部3
9は制御信号(割込要求信号)を送り、この信号によ
り、ROMアドレス制御部39は次に行うメインプログラム
の命令のアドレスを退避(保持)し、楽音の生成が行わ
れるインタラプト処理プログラム(サブルーチン)の先
頭アドレスを代りにセットする。これにより、インタラ
プト処理プログラムが開始される。インタラプト処理プ
ログラムの最後にはリターン命令があるので、このリタ
ーン命令がオペレーション解析部38で解読された時点
で、ROMアドレス制御部39は退避してあったアドレスを
再度セットし、メインプログラムに復帰する。
In order to execute the musical sound generation program in the control ROM 31 at predetermined time intervals, a timer interrupt is employed in this example. That is, the interrupt control unit 40 having a timer causes the ROM address control
9 transmits a control signal (interrupt request signal), and by this signal, the ROM address control unit 39 saves (holds) the address of the instruction of the next main program and generates an interrupt processing program (subroutine ) Is set instead. Thereby, the interrupt processing program is started. At the end of the interrupt processing program, there is a return instruction, and when this return instruction is decoded by the operation analysis unit 38, the ROM address control unit 39 sets the saved address again and returns to the main program. .

入力ポート41と出力ポート42は鍵盤2、機能キー3の
キースキャンのために使用される。インタラプト処理プ
ログラムにおいて生成された楽音はデジタル/アナログ
変換器43でアナログ信号に変換され、外部に出力され
る。
The input port 41 and the output port 42 are used for key scanning of the keyboard 2 and the function key 3. The tone generated in the interrupt processing program is converted into an analog signal by the digital / analog converter 43 and output to the outside.

第3図(A)に本実施例のマイクロコンピュータ1の
メインプログラムのフローを示す。A1は電源投入時のイ
ニシャル処理であり、マイクロコンピュータ1のRAM
(レジスタ群)34のクリアや、リズムテンポ等の初期値
の設定等を行う。A2でマイクロコンピュータ1は出力ポ
ート42からキー走査のための信号を出力し、スイッチ部
4の状態を入力ポート41から取り込むことにより、機能
キー、鍵盤キーの状態をRAM34のキーバッファエリアに
記憶する。A3ではA2で得た機能キー3の状態から、状態
の変化した機能キーを識別し、指示される機能の実行を
行う(例えば、楽音番号のセット、エンベロープ番号の
セット、リズム番号のセット等)。A4ではA2で得た鍵盤
2の状態から、変化した鍵(押鍵、離鍵)を識別する。
次のA5でA4の処理結果から、発音処理A9のためのキーア
サイン処理を行う。A6では機能キー3でデモ演奏キーが
押鍵されたとき制御データ兼波形用ROM37から、デモ演
奏データ(シーケンサデータ)を順次読み出し、処理す
ることにより、発音処理A9のためのキーアサイン処理等
を行う。A7ではリズムスタートキーが押鍵されたとき制
御データ兼波形用ROM37からリズムデータを順次読み出
し、発音処理A9のためのキーアサイン処理を行う。フロ
ー一周タイマー処理A8では、メインフローで必要なイベ
ントのタイミングを知るために、フロー一周時間(これ
は、フローを一周する間に実行されたタイマーインタラ
プトの回数を計数することで得られる。この計数処理は
後述のインタラプトタイマー処理B3で行われる。)を基
に演算を行い、エンベロープ用タイマー(エンベロープ
の演算周期)やリズム用の基準値を得る。発音処理A9で
はA5、A6、A7でセットされたデータから、実際に楽音を
発音させるための各種演算を行い、結果をRAM34内の音
源処理レジスタ(第6図)にセットする。A10は次のメ
インフローのパスのための準備処理であり、今回のパス
で得た押鍵状態への変化を示すNEW ON状態をON中にした
り、離鍵状態への変化を示すNEW OFF状態をOFF中に変え
る等の処理を行う。
FIG. 3A shows a flow of a main program of the microcomputer 1 of the present embodiment. A1 is the initial processing at the time of power-on,
(Register group) Clears 34 and sets initial values such as rhythm tempo. At A2, the microcomputer 1 outputs a signal for key scanning from the output port 42 and captures the state of the switch unit 4 from the input port 41 to store the state of the function keys and keyboard keys in the key buffer area of the RAM 34. . At A3, the function key whose state has changed is identified from the state of the function key 3 obtained at A2, and the designated function is executed (for example, a tone number set, an envelope number set, a rhythm number set, etc.). . In A4, the changed key (key pressed, key released) is identified from the state of the keyboard 2 obtained in A2.
In the next A5, a key assignment process for the sound generation process A9 is performed from the processing result of A4. In A6, when the demo performance key is pressed with the function key 3, the demo performance data (sequencer data) is sequentially read from the control data / waveform ROM 37 and processed, thereby performing key assignment processing for the sound generation processing A9. Do. At A7, when the rhythm start key is pressed, rhythm data is sequentially read from the control data / waveform ROM 37, and key assignment processing for sound generation processing A9 is performed. In the flow round timer processing A8, in order to know the timing of an event required in the main flow, the flow round time (this is obtained by counting the number of timer interrupts executed during one round of the flow. The process is performed in an interrupt timer process B3 described later.) To obtain an envelope timer (envelope calculation cycle) and a rhythm reference value. In the sound generation processing A9, various operations for actually generating a tone are performed from the data set in A5, A6, and A7, and the result is set in a tone generator processing register (FIG. 6) in the RAM 34. A10 is a preparation process for the pass of the next main flow, in which the NEW ON state indicating the change to the key pressed state obtained in this pass is set to ON or the NEW OFF state indicating the change to the key released state. Processing such as changing to OFF is performed.

楽音の生成が行われるインタラプト処理プログラムの
フローを第3B図に示す。B1で前回のインタラプトの音源
処理B2で生成してある楽音波形データ(8音分の累積波
形値)をD/A変換器43に送出する。これにより、一定周
期でD/A変換器43に楽音のサンプルが与えられることに
なる。次の音源処理B2は実施例のポイントであり、従来
はこの処理を音源回路ハードウェア上で行っていた。詳
細は後述する。次のインタラプトタイマー処理B3ではイ
ンタラプトが所定時間ごとにかかることを利用して、フ
ロー一周計時用のタイマーレジスタ(RAM34内)を通過
の都度、プラス1する。
FIG. 3B shows the flow of an interrupt processing program for generating a musical tone. In B1, the tone waveform data (cumulative waveform values for eight sounds) generated in the sound source processing B2 of the previous interrupt is sent to the D / A converter 43. As a result, a sample of a musical tone is given to the D / A converter 43 at a constant cycle. The following sound source processing B2 is a point of the embodiment. Conventionally, this processing is performed on the sound source circuit hardware. Details will be described later. In the next interrupt timer process B3, by taking advantage of the fact that an interrupt is taken at a predetermined time interval, the value is incremented by one every time the timer passes through the timer register (in the RAM 34) for counting one round of the flow.

なお、この実施例ではインタラプト処理プログラム内
ではメインプログラムで書込を行うレジスタについて
は、内容の書替を行わないようにしているので、通常の
インタラプト処理の開始時と終了時に行われるレジスタ
の退避と回復の処理は不要である。すなわち、RAM34上
のレジスタは楽音処理に関係するレジスタとその他の処
理に関係するレジスタとが独立しているので、メインプ
ログラムからインタラプト処理への移行が可及的に遅れ
なしで行われる。
In this embodiment, the contents of the registers to be written by the main program in the interrupt processing program are not rewritten. Therefore, the registers are saved at the start and end of the normal interrupt processing. No recovery process is required. That is, the registers on the RAM 34 are independent of the registers related to the tone processing and the registers related to other processing, so that the transition from the main program to the interrupt processing is performed with as little delay as possible.

音源処理B2の詳細を第3C図に示す。C1で波形加算用RA
M領域(第6図参照)をクリアした後、8チャンネル分
の処理C2〜C9を順番に行っている。各チャンネル処理の
最後で、チャンネルの楽音波形値が波形加算用RAM領域
のデータに加算される。
The details of the sound source processing B2 are shown in FIG. 3C. RA for waveform addition with C1
After clearing the M area (see FIG. 6), processing C2 to C9 for eight channels is performed in order. At the end of each channel processing, the tone waveform value of the channel is added to the data in the RAM area for waveform addition.

第4図は、時間に沿って実施例の動作の流れを描いた
ものである。A、B、C、D、E、Fはメインプログラ
ム(第3A図)の断片であり、一定時間ごとにインタラプ
ト処理(第3B図)が実行される。タイムチャートで示す
と第5図のようになる。図示のように、インタラプトに
入る都度、D/A変換器43に楽音波形信号が入力され、対
応するアナログ信号が外部に出力されていく。
FIG. 4 illustrates the flow of the operation of the embodiment over time. A, B, C, D, E, and F are fragments of the main program (FIG. 3A), and an interrupt process (FIG. 3B) is executed at regular intervals. FIG. 5 shows a time chart. As shown in the drawing, each time an interrupt occurs, a tone waveform signal is input to the D / A converter 43, and a corresponding analog signal is output to the outside.

第3C図のC2〜C9の処理を1チャンネル分について詳細
に示したのが第7図である。チャンネル処理は大きく分
けてエンベロープ処理(D1〜D7)と波形処理(D8〜D2
1)から成る。
FIG. 7 shows the processing of C2 to C9 in FIG. 3C in detail for one channel. Channel processing is roughly divided into envelope processing (D1 to D7) and waveform processing (D8 to D2).
Consisting of 1).

第8図はエンベロープ処理で生成されるエンベロープ
を示したものである。1つの楽音のエンベロープはいく
つかのステップ(セグメント)から成っている。図では
4セグメントで示してある。図中のΔxはエンベロープ
のサンプリング周期であり、Δyはエンベロープ値の変
化幅である。チャンネルのエンベロープ処理(D1〜D7)
では、サンプリングタイムごとのエンベロープの計算と
ステップの目標レベルに達したかどうかのチェックを行
っている。一致したときには現在エンベロープレジスタ
(第6図参照)に目標値が設定されるので、メインプロ
グラムの発音処理A9内でそれを検知して、次のステップ
のエンベロープのためのデータ(Δx、Δy、目標エン
ベロープ値)を各レジスタにセットしている。
FIG. 8 shows an envelope generated by the envelope processing. The envelope of one musical tone consists of several steps (segments). In the figure, it is shown by four segments. In the figure, Δx is the sampling period of the envelope, and Δy is the change width of the envelope value. Channel envelope processing (D1 to D7)
In, the calculation of the envelope for each sampling time and the check of whether the target level of the step has been reached are performed. When the values match, the target value is set in the current envelope register (see FIG. 6). Therefore, the target value is detected in the sound generation processing A9 of the main program, and data (Δx, Δy, target (Envelope value) is set in each register.

詳細に述べると、D1でエンベロープの演算周期Δxと
比較するためのタイマーレジスタをインタラプトごとに
インクリメントし、D2でΔxと一致したときD3でエンベ
ロープ変位分のデータΔyの加減算フラグ(符号ビッ
ト)をテストしてエンベロープが上昇中か下降中かを判
別し、D4、D5でそれぞれ現在エンベロープの減算または
加算を行う。D6で現在エンベロープが目標エンベロープ
値に達したかどうかをチェックし、達しておれば、現在
エンベロープに目標レベルをセットする。これによりメ
インプログラムの発音処理A9で次のエンベロープステッ
プのデータがセットされることになる。また発音処理A9
でゼロの現在エンベロープを読んだときには発音の終了
として処理される。
More specifically, the timer register for comparing with the operation period Δx of the envelope is incremented in D1 for each interrupt, and when the value matches Δx in D2, the addition / subtraction flag (sign bit) of the data Δy corresponding to the envelope displacement is tested in D3. Then, it is determined whether the envelope is rising or falling, and the current envelope is subtracted or added at D4 and D5, respectively. At D6, check whether the current envelope has reached the target envelope value, and if so, set the target level to the current envelope. As a result, the data of the next envelope step is set in the sound generation processing A9 of the main program. Also sound processing A9
When the current envelope of zero is read, it is treated as the end of sound generation.

次に、波形処理D8〜D21について述べる。波形処理で
は、現在アドレスの整数部を使って波形ROMから隣り合
う2つのアドレスの波形データを読み出し、(整数部+
小数部)で示される現在アドレスに対して想定される波
形値を補間で求めている。補間が必要な理由は、インタ
ラプトによる波形サンプリング周期が一定であり、アド
レスの加算値(ピッチデータ)が楽器への応用上、ある
音域にわたるためである(特にこの実施例では本発明に
従い、この音域が広くとれるようにしている)。補間に
よる音色の劣化、歪みは高音域の方が著しいため、通常
は、原音の記録サンプリング周期より高速の周期で原音
を再生する。この実施例では原音(A4)再生の周期を2
倍にしている(第9図)。したがって、アドレス加算値
が0.5のとき、A4の音が得られるようになっている。こ
の場合、A#4ではアドレス加算値は0.529となり、A3
のとき、1となる。これらのアドレス加算値はピッチデ
ータとして制御データ兼波形ROM37に記憶されており、
押鍵時には発音処理A9において、鍵に対応するピッチデ
ータと選択されている音色の波形スタートアドレス、波
形エンドアドレス及び波形ループアドレスがRAM34の対
応するレジスタ、すなわち、アドレス加算値レジスタ、
スタートアドレス兼現在アドレスレジスタ、エンドアド
レスレジスタ、ループアドレスレジスタにセットされ
る。
Next, the waveform processing D8 to D21 will be described. In the waveform processing, the waveform data of two adjacent addresses is read from the waveform ROM using the integer part of the current address, and (integer part +
The waveform value assumed for the current address indicated by the decimal part is obtained by interpolation. The reason why the interpolation is necessary is that the waveform sampling period due to the interrupt is constant, and the added value of the address (pitch data) covers a certain sound range for application to a musical instrument. Is widely available). Normally, the original sound is reproduced at a period faster than the recording sampling period of the original sound because the deterioration and distortion of the timbre due to interpolation are more remarkable in the high sound range. In this embodiment, the period of the original sound (A4) reproduction is set to 2
(Figure 9). Therefore, when the address addition value is 0.5, a sound of A4 can be obtained. In this case, in A # 4, the address addition value is 0.529, and A3
In the case of 1, it becomes 1. These address addition values are stored in the control data / waveform ROM 37 as pitch data.
When the key is depressed, in the tone generation process A9, the pitch data corresponding to the key and the waveform start address, waveform end address and waveform loop address of the selected timbre are stored in the corresponding register of the RAM 34, that is, an address addition value register,
It is set in the start address / current address register, end address register, and loop address register.

参考までに、第10図に時間に対する補間波形データを
示す。図中、白丸は波形ROMのアドレスにある波形デー
タ値、黒丸は補間値を示している。
For reference, FIG. 10 shows the interpolated waveform data with respect to time. In the figure, white circles indicate waveform data values at the address of the waveform ROM, and black circles indicate interpolation values.

補間の方式はいろいろあるが、ここでは直線補間を採
用している。第7図の波形生成処理D8〜D21を詳細に述
べると、まず、D8で現在アドレスにアドレス加算値を加
算して新しい現在アドレスを得る。D9で現在アドレスと
エンドアドレスを比較し、現在アドレス>エンドアドレ
スならば、D10、D11により、現在アドレス<エンドアド
レスのときはD12により、物理上(番地上)または論理
上(動作上)の次のアドレスを計算し、D14でその整数
部により波形ROMをアクセスして次回波形データを得
る。ループアドレスは動作上エンドアドレスの次のアド
レスである。すなわち、第9図の場合、図示の波形は繰
り返し読み出される。したがって、現在アドレス=エン
ドアドレスのときは次のアドレスとしてループアドレス
の波形データを読み出す(D13)。D15、D16により、現
在アドレスの整数部で波形ROMをアクセスして今回の波
形データを読み出す。次に、D17で次回波形値から今回
波形値を減算し、D18でその差に現在アドレスの小数部
を乗算し、その結果をD19で今回の波形値に加えること
により、波形の直線補間値を求める。この直線補間した
データに現在エンベロープ値を乗算してチャンネルの楽
音データ値を得(D20)、それを波形加算用レジスタの
内容に加えて楽音データを累算する(D21)。
Although there are various interpolation methods, linear interpolation is employed here. The waveform generation processing D8 to D21 in FIG. 7 will be described in detail. First, at D8, an address addition value is added to the current address to obtain a new current address. D9 compares the current address with the end address. If the current address is greater than the end address, then according to D10 and D11, and if the current address is less than the end address, according to D12. , And the waveform ROM is accessed by the integer part in D14 to obtain the next waveform data. The loop address is the address following the end address in operation. That is, in the case of FIG. 9, the illustrated waveform is repeatedly read. Therefore, when the current address = end address, the waveform data of the loop address is read as the next address (D13). According to D15 and D16, the waveform ROM is accessed with the integer part of the current address to read the current waveform data. Next, the current waveform value is subtracted from the next waveform value in D17, the difference is multiplied by the decimal part of the current address in D18, and the result is added to the current waveform value in D19 to obtain the linear interpolation value of the waveform. Ask. The linearly interpolated data is multiplied by the current envelope value to obtain a tone data value of the channel (D20), and the resultant value is added to the contents of the waveform addition register to accumulate the tone data (D21).

ここで、音源処理用RAMテーブル(第6図)に示すよ
うに、アドレス加算値レジスタのサイズをスタートアド
レス兼現在アドレスレジスタのアドレス小数部より大き
くとれば(図ではスタートアドレスまたは現在アドレス
のデータ長とアドレス加算値のデータ長は同じになって
いる)、アドレス加算値を整数まで広げることができ
る。これは、広い音域での楽音波形の生成を可能にす
る。更に、実際にアドレス加算値レジスタにセットする
データの値域についてはマイクロコンピュータのプログ
ラム制御により容易に変更することができる。例えば、
楽音によっては±1オクターブ以上の音域にわたり、楽
音として再生するのに不向きな音(クオリティの高い
音)がある。このような場合、記憶容量の犠牲や回路の
増設を行うことなく対応することができる。例えば、楽
音の音色のクオリティごとにピッチデータテーブル(制
御データ兼波形ROM37内)に対するアクセスの範囲のリ
ミットデータを制御データとして持たせ、制御用ROM31
のプログラム内の鍵の音階番号をピッチデータに変換す
る部分に、選択されている楽音のクオリティに対応する
リミットデータのロード命令、音階番号に対応するピッ
チデータテーブルアドレスとリミットデータとの比較ル
ーチン、比較結果に対するピッチデータの発行の有無あ
るいはピッチデータテーブルアドレスの再計算のルーチ
ンを設けておけばよい。
Here, as shown in the sound source processing RAM table (FIG. 6), if the size of the address addition value register is set to be larger than the address decimal part of the start address / current address register (the data length of the start address or the current address in the figure) And the data length of the address addition value are the same), and the address addition value can be extended to an integer. This allows the generation of musical tone waveforms over a wide range. Further, the value range of the data actually set in the address addition value register can be easily changed by program control of the microcomputer. For example,
Depending on the musical sound, there is a sound (high quality sound) that is not suitable for reproducing as a musical sound over a range of ± 1 octave or more. Such a case can be dealt with without sacrificing storage capacity or adding a circuit. For example, limit data for the range of access to the pitch data table (in the control data / waveform ROM 37) is provided as control data for each tone color quality, and the control ROM 31 is used.
In the part of the program that converts the scale number of the key to pitch data, a load command for limit data corresponding to the quality of the selected musical tone, a routine for comparing the pitch data table address corresponding to the scale number with the limit data, It is sufficient to provide a routine for determining whether pitch data is issued for the comparison result or for recalculating the pitch data table address.

最後に具体的実施例(8音ポリフォニックのPCM音源
方式)の回路規模と動作時間について述べると、制御用
ROMが112Kbit、RAM34が5.4Kbit、制御データ兼波形用RO
M37(音色は100音色分)は508Kbitである。1マシンサ
イクルは約276ナノ秒で、動作時のインタラプト処理プ
ログラムのサイクル数が最大で150程度である。インタ
ラプト処理の実行間隔(楽音の出力サンプリング周期)
は約47マイクロ秒である。
Finally, the circuit scale and operating time of a specific embodiment (8-tone polyphonic PCM sound source system) will be described.
112Kbit of ROM, 5.4Kbit of RAM34, RO for control data and waveform
M37 (100 tones) is 508Kbit. One machine cycle is about 276 nanoseconds, and the maximum number of interrupt processing program cycles during operation is about 150. Execution interval of interrupt processing (output sampling cycle of musical sound)
Is about 47 microseconds.

以上のように、実施例ではマイクロコンピュータのプ
ログラム制御で楽音の生成を行っており、楽音の生成サ
ンプリングタイムごとに、楽音の周波数に対応するピッ
チ制御された波形の補間演算を行っているので、従来の
ような音源回路ハードウェアは不要であり、ピッチにつ
いても広い音域にわたり、限られた波形データからの楽
音再生が可能である。
As described above, in the embodiment, the musical tone is generated by the program control of the microcomputer, and the interpolation calculation of the pitch-controlled waveform corresponding to the frequency of the musical tone is performed at each musical sound generation sampling time. The conventional tone generator circuit hardware is unnecessary, and the tone can be reproduced from limited waveform data over a wide range of pitch.

以上で実施例の説明を終えるが、この発明の範囲を逸
脱することなく種々の変形、変更が可能である。例え
ば、補間演算は直線補間には限られない。
The description of the embodiment is finished above, but various modifications and changes can be made without departing from the scope of the present invention. For example, the interpolation calculation is not limited to linear interpolation.

[発明の効果] 以上の説明から明らかなように、この発明では楽音の
生成をマイクロコンピュータのプログラム制御によりマ
イクロコンピュータ自身が行っているので従来のような
音源回路ハードウェアは不要となる。更に、楽音生成の
サンプリングタイムごとの楽音生成プログラムの実行に
よって、その機能としてピッチデータと現位相データと
の加算による次の位相データの生成手段、位相データの
整数部に従う隣り合う2つの波形データの読出手段、読
み出された波形データと位相データの小数部とに基づく
位相データの位置における波形データの値の補間演算の
手段を実現しているので、楽音周波数を表わすピッチデ
ータの取り得る範囲をプログラムレベルで自由に選択す
ることができ、広い音域にわたって楽音を生成する場合
にも、格別の記憶容量の増大や、回路構成の複雑化をま
ねかないという利点がある。
[Effects of the Invention] As is clear from the above description, in the present invention, the tone generation is performed by the microcomputer itself under the program control of the microcomputer, so that the conventional tone generator circuit hardware is not required. Further, by executing the tone generation program for each sampling time of the tone generation, its function is to generate the next phase data by adding the pitch data and the current phase data, and to generate two adjacent waveform data according to the integer part of the phase data. The reading means implements means for interpolating the value of the waveform data at the position of the phase data based on the read waveform data and the fractional part of the phase data. It can be freely selected at the program level, and has the advantage that it does not increase the storage capacity or complicate the circuit configuration even when generating musical tones over a wide range.

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

第1図はこの発明の実施例に係る電子楽器の全体構成
図、第2図は実施例のマイクロコンピュータの構成を示
すブロック図、第3A図はマイクロコンピュータのメイン
プログラムのフローを示す図、第3B図は楽音の生成が行
われるインタラプト処理のフローチャート、第3C図は第
3B図の音源処理の詳細なフローチャート、第4図は時間
に沿ったプログラムの流れを示す図、第5図は時間に沿
った処理の概要を示すタイムチャート、第6図は第2図
のRAM34内に置かれる楽音生成用RAMのテーブルを示す
図、第7図は第3C図の1つのチャンネル処理の詳細なフ
ローチャート、第8図はエンベロープを示す図、第9図
は波形ROMの波形データを示す図、第10図は時間に沿う
補間演算波形を示す図、第11図は従来の音源回路ハード
ウェアの一例を示すブロック図、第12図は音源回路ハー
ドウェアに組み込まれる音程制御部のブロック図であ
る。 1……マイクロコンピュータ、31……制御用ROM、34…
…RAM、35……加減算器及び論理演算部、36……乗算
器、37……制御データ兼波形ROM、38……オペレーショ
ン解析部、40……インタラプト制御部。
FIG. 1 is an overall configuration diagram of an electronic musical instrument according to an embodiment of the present invention, FIG. 2 is a block diagram showing a configuration of a microcomputer of the embodiment, FIG. 3A is a diagram showing a flow of a main program of the microcomputer, FIG. FIG. 3B is a flowchart of an interrupt process for generating a musical tone, and FIG. 3C is a flowchart of the interrupt process.
FIG. 3B is a detailed flowchart of the sound source processing, FIG. 4 is a diagram showing a flow of a program along time, FIG. 5 is a time chart showing an outline of the processing along time, and FIG. 6 is a RAM 34 in FIG. FIG. 7 is a detailed flowchart of one channel processing shown in FIG. 3C, FIG. 8 is a diagram showing an envelope, and FIG. 9 is a diagram showing waveform data of a waveform ROM. FIG. 10, FIG. 10 is a diagram showing an interpolation calculation waveform along time, FIG. 11 is a block diagram showing an example of conventional sound source circuit hardware, and FIG. 12 is a block of a pitch control unit incorporated in the sound source circuit hardware. FIG. 1 ... microcomputer, 31 ... control ROM, 34 ...
... RAM, 35... Adder / subtractor and logical operation unit, 36... Multiplier, 37... Control data and waveform ROM, 38... Operation analysis unit, 40.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】外部より供給される制御信号入力を処理す
るための制御用プログラム及び制御信号入力の処理結果
に基づきポリフォニックの楽音をリアルタイムで生成す
るための楽音生成用プログラムを記憶するプログラム記
憶手段と、 上記プログラム記憶手段に記憶されたプログラムを読み
出すためのアドレスを制御するアドレス制御手段と、 前記アドレス制御手段により前記プログラム記憶手段か
ら読み出されたプログラムの各命令を解読する解読手段
と、 音波形データを記憶する波形データ記憶手段と、 前記解読手段により解読された制御用プログラムの各命
令に従って生成された、楽音の生成に必要なデータを記
憶するデータ記憶手段と、 前記データ記憶手段に記憶されたデータ及び前記波形デ
ータ記憶手段に記憶された波形データを前記解読手段に
て解読された楽音生成用プログラムの各命令に従って演
算処理して楽音信号を生成する演算処理手段と、 を備えるマイクロコンピュータからなり、このマイクロ
コンピュータが前記制御用プログラムを実行するととも
に、音高には依存しない所定のサンプリング周期ごとに
上記楽音生成用プログラムを起動し、実行することによ
り、ポリフォニックの楽音信号をリアルタイムで生成
し、出力し、更に、このマイクロコンピュータが前記楽
音生成用プログラムの実行による機能として、 楽音の周波数を表わすピッチデータから楽音の波形の位
相を表わす整数部と小数部とから成る位相データを生成
する手段と、 前記整数部のデータに従って前記波形データ記憶手段か
ら複数のアドレス夫々にある波形データを読み出す手段
と、 読み出された複数の波形データと上記小数部のデータと
から、上記位相データの示す位相における波形データの
値を補間演算する手段と、 を実現することを特徴とする処理装置。
A program storage means for storing a control program for processing a control signal input supplied from the outside and a tone generation program for generating a polyphonic tone in real time based on a processing result of the control signal input. Address control means for controlling an address for reading a program stored in the program storage means; decoding means for decoding each instruction of the program read from the program storage means by the address control means; Waveform data storage means for storing shape data; data storage means for storing data necessary for generation of musical tones generated in accordance with each instruction of the control program decoded by the decoding means; storage in the data storage means Data and the waveform data stored in the waveform data storage means. Arithmetic processing means for generating a musical sound signal by performing arithmetic processing according to each instruction of the musical sound generating program decoded by the decoding means.The microcomputer executes the control program and By activating and executing the above-described tone generation program at predetermined sampling periods independent of pitch, a polyphonic tone signal is generated and output in real time. Means for generating phase data consisting of an integer part and a decimal part representing the phase of a musical tone waveform from pitch data representing the frequency of the musical tone as functions by executing the program; and from the waveform data storage means according to the data of the integer part. Means for reading waveform data at each of a plurality of addresses; Means for interpolating the value of waveform data at the phase indicated by the phase data from a plurality of read waveform data and the data of the decimal part.
【請求項2】請求項1記載の処理装置において、前記マ
イクロコンピュータは集積回路チップで構成され、この
チップ上にデジタルの音響信号をアナログ信号に変換す
るデジタル・アナログ変換器及び外部より供給される制
御信号入力を受けるポートが更に設けられることを特徴
とする処理装置。
2. The processing apparatus according to claim 1, wherein said microcomputer is constituted by an integrated circuit chip, and a digital-to-analog converter for converting a digital sound signal into an analog signal is provided on said chip and supplied from outside. A processing device, further comprising a port for receiving a control signal input.
JP63334160A 1988-12-29 1988-12-29 Processing equipment Expired - Lifetime JP2576614B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63334160A JP2576614B2 (en) 1988-12-29 1988-12-29 Processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63334160A JP2576614B2 (en) 1988-12-29 1988-12-29 Processing equipment

Publications (2)

Publication Number Publication Date
JPH02179693A JPH02179693A (en) 1990-07-12
JP2576614B2 true JP2576614B2 (en) 1997-01-29

Family

ID=18274211

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63334160A Expired - Lifetime JP2576614B2 (en) 1988-12-29 1988-12-29 Processing equipment

Country Status (1)

Country Link
JP (1) JP2576614B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008016459A (en) * 2006-06-30 2008-01-24 Kyocera Corp Deposition film forming apparatus, and forming method of the deposition film

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5283386A (en) * 1991-08-30 1994-02-01 Casio Computer Co., Ltd. Musical-tone signal generating apparatus and musical-tone controlling apparatus including delay means and automatic reset means
JP2768168B2 (en) * 1992-09-18 1998-06-25 ヤマハ株式会社 Music synthesizer

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6044674B2 (en) * 1978-04-14 1985-10-04 株式会社河合楽器製作所 Musical sound data processing device
JPS5917838A (en) * 1982-07-22 1984-01-30 Sony Corp Supporting structure of motor
JPS6033600A (en) * 1983-08-04 1985-02-20 松下電器産業株式会社 Light source unit
JPS629395A (en) * 1985-07-08 1987-01-17 ブラザー工業株式会社 Music synthesizer
JP2536493B2 (en) * 1986-09-18 1996-09-18 カシオ計算機株式会社 Waveform reading device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008016459A (en) * 2006-06-30 2008-01-24 Kyocera Corp Deposition film forming apparatus, and forming method of the deposition film

Also Published As

Publication number Publication date
JPH02179693A (en) 1990-07-12

Similar Documents

Publication Publication Date Title
US5319151A (en) Data processing apparatus outputting waveform data in a certain interval
US5831193A (en) Method and device for forming a tone waveform by combined use of different waveform sample forming resolutions
US5625158A (en) Musical tone generating apparatus
CA1076400A (en) Digital generator for musical notes
JPS616689A (en) Electronic musical instrument
JP2576614B2 (en) Processing equipment
EP0376342B1 (en) Data processing apparatus for electronic musical instruments
US5298672A (en) Electronic musical instrument with memory read sequence control
JP2576617B2 (en) Processing equipment
JP2576615B2 (en) Processing equipment
JP2619242B2 (en) Electronic musical instruments that generate musical tones with time-varying spectra
JP2576613B2 (en) Processing equipment
JP2576616B2 (en) Processing equipment
JP2576618B2 (en) Processing equipment
JPH07122796B2 (en) Processor
JP3832383B2 (en) Musical sound generating apparatus and program
JP2727089B2 (en) Electronic musical instrument sound generator
JP3543203B2 (en) Electronic musical instrument
JP3371643B2 (en) Signal processing device
JP3832382B2 (en) Musical sound generating apparatus and program
JP3651675B2 (en) Electronic musical instruments
JPH0743597B2 (en) Musical sound generator
GB2040537A (en) Digital electronic musical instrument
JP3337450B2 (en) Electronic musical instrument
JP2794561B2 (en) Waveform data generator

Legal Events

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

Free format text: PAYMENT UNTIL: 20071107

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20081107

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20081107

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20091107

Year of fee payment: 13

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091107

Year of fee payment: 13