JPH02179692A - Processor for electronic musical instrument - Google Patents

Processor for electronic musical instrument

Info

Publication number
JPH02179692A
JPH02179692A JP63334158A JP33415888A JPH02179692A JP H02179692 A JPH02179692 A JP H02179692A JP 63334158 A JP63334158 A JP 63334158A JP 33415888 A JP33415888 A JP 33415888A JP H02179692 A JPH02179692 A JP H02179692A
Authority
JP
Japan
Prior art keywords
address
program
processing
control
waveform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP63334158A
Other languages
Japanese (ja)
Other versions
JP2576613B2 (en
Inventor
Koichiro Oki
広一郎 太期
Kazuo Ogura
和夫 小倉
Ryuji Usami
隆二 宇佐美
Kosuke Shiba
斯波 康祐
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 JP63334158A priority Critical patent/JP2576613B2/en
Priority to KR8920242A priority patent/KR930005221B1/en
Priority to DE68917113T priority patent/DE68917113T2/en
Priority to EP89124128A priority patent/EP0376342B1/en
Publication of JPH02179692A publication Critical patent/JPH02179692A/en
Priority to US07/855,431 priority patent/US5319151A/en
Priority to US08/223,589 priority patent/US5726371A/en
Application granted granted Critical
Publication of JP2576613B2 publication Critical patent/JP2576613B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the circuit scale to reduce the cost by generating musical sounds by the program control of a microcomputer. CONSTITUTION:Information is inputted from a switch part consisting of function keys and keyboard keys and is stored in a RAM 34. A program to process the control input and a program to generate musical sounds are stored in a control ROM 31, and the instruction in an address designated by a ROM address control part 39 is outputted. When the operand of the instruction from the ROM 31 designates a register, a RAM address control part 33 designates an address of the RAM 34. The RAM 34, an adder/subtractor, and a multiplier 36 constitute an operation circuit. Envelope data and musical sound waveform data are stored in a ROM 37 for control data as well as waveform. An operation analyzing part 38 decodes the instruction from the ROM 31 to send a control signal to each part of the circuit. The control part 39 sends the control signal at intervals of a certain time by an interrupt control part 40 having a timer to generate musical sounds. Generated musical sounds are converted to an analog signal and are outputted to the external.

Description

【発明の詳細な説明】 [発明の技術分野] この発明は電子楽器用処理装置に関し、特に電子楽器用
処理装置の構造的なアーキテクチャ−に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a processing device for an electronic musical instrument, and more particularly to the structural architecture of a processing device for an electronic musical instrument.

[従来技術とその問題点] 近年、電子楽器はコンピユータ化されている。[Prior art and its problems] In recent years, electronic musical instruments have been computerized.

しかし、大量で高速のデータ演算が必要な楽音の生成に
係る部分は音源回路と呼ばれる専用構造のハードウェア
で行われており、マイクロコンピュータは楽器への制御
入力帽1やコンソールパネルからの入力、MIDIその
他の外部制御入力、内部または外部の演奏メモリからの
入力等)を処理し、音源回路に適したコマンドを音源回
路に転送するに留まっている。
However, the part related to the generation of musical tones, which requires large amounts of high-speed data calculation, is performed by dedicated hardware called a sound source circuit, and the microcomputer inputs control inputs to the musical instrument from the control input cap 1 and the console panel. It merely processes MIDI and other external control inputs, inputs from internal or external performance memories, etc.) and transfers appropriate commands to the tone generator circuit.

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

−例として、第15図にPCM音源タイプのブロック図
を示す、PCM音源lOOを制御するマイクロコンピュ
ータ101が存在し、PCM音源100で楽音の生成に
必要な情報(コマンド)がマイクロコンピュータ101
よりPCM音源100に送られる。マイクロコンピュー
タ101からのコマンドは音源コマンド解析部102を
介して音源の各部にセットされる。
- As an example, there is a microcomputer 101 that controls a PCM sound source lOO, whose block diagram of a PCM sound source type is shown in FIG.
The signal is then sent to the PCM sound source 100. Commands from the microcomputer 101 are set to each part of the sound source via the sound source command analysis section 102.

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

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

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

(C)エン< O−7’ 7”−夕を送ってエンベロー
プ制御部106にセットする。
(C) En<O-7'7''-Y is sent and set in the envelope control section 106.

(d)チャンネル制御をオンとする(チャンネルON1
0 F F制御部103にセット)。
(d) Turn on channel control (channel ON1
0FF set in the control unit 103).

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

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

[発明の目的] したがって、この発明の目的はマイクロコンピュータの
プログラム制御により、楽音の生成を可能とし、専用の
音源回路ハードウェアを必要としない新しい構造の電子
楽器用処理装置を提供することである。
[Object of the Invention] Therefore, the object of the present invention is to provide a processing device for an electronic musical instrument with a new structure that enables musical tones to be generated under program control of a microcomputer and does not require dedicated tone generator circuit hardware. .

[発明の構成1作用] この発明によれば、上記の目的を達成するため、楽器を
制御する入力を処理するためのプログラムと楽音を生成
するためのプログラムを記憶するプログラム記憶手段と
、このプログラム記憶手段のアドレスを制御するアドレ
ス制御回路手段と楽音の生成に必要なデータを記憶する
データ記憶手段と、各種演算を行う演算回路手段と、上
記プログラム記憶手段のプログラムの各命令を解読して
上記各手段の動作を制御するオペレーション制御回路手
段とを備えるマイクロコンピュータから成り、このマイ
クロコンピュータが上記プログラム記憶手段内の楽音を
生成するプログラムを実行することにより楽音を生成す
ることを特徴とする電子楽器用処理装置が提供される。
[Structure 1 of the Invention] According to the present invention, in order to achieve the above object, there is provided a program storage means for storing a program for processing an input to control a musical instrument and a program for generating musical tones, and the program. address control circuit means for controlling the address of the storage means; data storage means for storing data necessary for generating musical tones; arithmetic circuit means for performing various operations; An electronic musical instrument comprising a microcomputer comprising an operation control circuit means for controlling the operation of each means, the microcomputer generating musical tones by executing a program for generating musical tones in the program storage means. A processing device is provided.

以上のように、この発明にあっては、楽音を生成するた
めの音源回路ハードウェアは全く必要としない、この新
しいアーキテクチャ−の電子楽器用処理装置がもつ利点
は図り知れないものがある。第1は設計の自由度である
。すなわち1発音ポリフォニック数の変更、楽音合成方
式の変更をプログラムの設計変更で対応することができ
る。
As described above, in the present invention, there is an immeasurable advantage of the electronic musical instrument processing device of this new architecture, which does not require any sound source circuit hardware for generating musical tones. The first is the degree of freedom in design. In other words, changes in the number of polyphonic sounds per sound and changes in the tone synthesis method can be handled by changing the design of the program.

第2は音源回路ハードウェアが不要であるので、全体の
回路規模を大幅に縮少することができる。
Second, since no sound source circuit hardware is required, the overall circuit scale can be significantly reduced.

従来の場合、音源回路LSIチップの回路規模が大きい
ため、チップ製造における歩留りに限界がある(歩留り
はチップ面積にほぼ反比例する)。
In the conventional case, since the circuit scale of the sound source circuit LSI chip is large, there is a limit to the yield in chip manufacturing (the yield is almost inversely proportional to the chip area).

したがって、この発明は電子楽器の製造コストを大幅に
下げることができる。
Therefore, the present invention can significantly reduce the manufacturing cost of electronic musical instruments.

一構成例において、上記プログラム記憶手段は読出し専
用メモリ(1’lOM)で構成される。マイクロコンピ
ュータは集積回路チップで実現され、このチップ上に上
記手段に加え、生成したデジタル楽音信号をアナログ信
号に変換するデジタル・アナログ(D/A)変換器と楽
器を制御する入力を受けるポートも実装される。また、
演算回路手段には波形データの演算に使用する乗算回路
も加えられる。
In one configuration example, the program storage means comprises a read-only memory (1'lOM). The microcomputer is realized by an integrated circuit chip, and in addition to the above-mentioned means, this chip also includes a digital-to-analog (D/A) converter for converting the generated digital musical tone signal into an analog signal, and a port for receiving input for controlling the musical instrument. Implemented. Also,
A multiplication circuit used for calculating waveform data is also added to the calculation circuit means.

[実施例] 以下、図面を参照してこの発明の詳細な説明する。[Example] Hereinafter, the present invention will be described in detail with reference to the drawings.

本実施例に係る電子楽器の全体構成を第1図に示す、装
置全体の制御はマイクロコンピュータlにより行われる
。特に、この発明に従い、 51sの制御入力の処理の
みならず、楽音を生成する処理もマイクロコンピュータ
1で実行され、楽音生成用の音源回路ハードウェアは必
要としない、I!盤2とatrsキー3とから成るスイ
ッチ部4は楽器の制御入力源であり、スイッチ部4から
入力された情報はマイクロコンピュータlで処理される
。マイクロコンピュータ1の生成したアナログ変換後の
楽音信号はローパスフィルタ5でフィルタリングされ、
アンプ6で増幅され、スピーカ7を介して放音される。
The overall configuration of the electronic musical instrument according to this embodiment is shown in FIG. 1, and the entire device is controlled by a microcomputer l. In particular, according to the present invention, not only the processing of the control input of the I! A switch unit 4 consisting of a keyboard 2 and an atrs key 3 is a control input source for the musical instrument, and information input from the switch unit 4 is processed by a microcomputer l. The analog-converted musical tone signal generated by the microcomputer 1 is filtered by a low-pass filter 5,
The sound is amplified by an amplifier 6 and emitted through a speaker 7.

it源回路8はマイクロコンピュータl、ローパスフィ
ルタ5、アンプ6に必要な電源を供給する。
The IT source circuit 8 supplies the necessary power to the microcomputer 1, the low-pass filter 5, and the amplifier 6.

上記マイクロコンピュータlの内部構造を第2図にブロ
ック図で示す。図示の各要素はワンチップトに実装され
ている。実際に製作したものは5X5mmのチップサイ
ズで、8音ポリフオニツクの同時発音数をもち、楽音合
成方式はPCM(波形読み出し方式)であるが、本発明
は他のポリフォニック数2他の楽音合成方式にも適用で
きる。
The internal structure of the microcomputer I is shown in a block diagram in FIG. Each of the illustrated elements is mounted on a single chip. The actually manufactured chip has a chip size of 5 x 5 mm, has an eight-tone polyphonic simultaneous sound generation, and uses a PCM (waveform readout method) as the musical tone synthesis method, but the present invention can be applied to other polyphonic number 2 and other musical tone synthesis methods. can also be applied.

制御用ROM31には楽器の各種制御入力を処理するプ
ログラムと楽音を生成するプログラムが記憶されており
、ROMアドレス制御部39からROMアドレスデコー
ダ32を介して指定されたアドレスのプログラムM(命
令)を順次出力していく、なお、具体的実施例では、プ
ログラム語長は28ビツトであり、プログラム語の一部
が次に読み出されるべきアドレスの下位部(ページ内ア
ドレス)としてROMアドレス制御部39に入力される
ネタストアドレス方式となっているが、プログラムカウ
ンタ方式のものにも本発明を適用し得る。RAMアドレ
ス制御部33は制御用ROM31からの命令のオペラン
ドがレジスタを指定している場合に、RAM34内の対
応するレジスタのアドレスを指定する。RAM34はレ
ジスタ群であり、汎用演算、フラグ演算、楽音の演算等
に使用される。加減算器及び論理演算部35と乗算器3
6は制御用ROM32からの命令が演算命令のときに用
いられる。特に乗算器36は楽音波形の演算に使用して
おり、そのための最適化として第1と第2のデータ入力
(例えば16ビー7トデータ)を乗算して入力と同じ長
さ(16ビツト)のデータを出力するようになっている
。上記RAM34、加減算器351乗算器36により、
演算回路(A U)が構成される。制御データ葦波形用
ROM37にはピッチデータ、エンベロープデータ(レ
ート、レベル)などの各種楽音制御パラメータと、PC
M (パルス符号変調)の楽音波形データが記憶されて
いる。エンベロープデータと楽音波形データは楽音の音
色ごとに用意される。
The control ROM 31 stores programs for processing various control inputs of the musical instrument and programs for generating musical tones, and a program M (command) at a specified address is sent from the ROM address control unit 39 via the ROM address decoder 32. Note that in the specific embodiment, the program word length is 28 bits, and a part of the program word is sent to the ROM address control unit 39 as the lower part (in-page address) of the address to be read next. Although the system uses a netast address input method, the present invention can also be applied to a program counter system. The RAM address control unit 33 specifies the address of a corresponding register in the RAM 34 when an operand of an instruction from the control ROM 31 specifies a register. The RAM 34 is a group of registers and is used for general-purpose operations, flag operations, musical tone operations, and the like. Adder/subtractor and logic operation unit 35 and multiplier 3
6 is used when the instruction from the control ROM 32 is an arithmetic instruction. In particular, the multiplier 36 is used to calculate musical waveforms, and as an optimization for this purpose, it multiplies the first and second data inputs (for example, 16 beat 7 bit data) to obtain data of the same length (16 bits) as the input. It is designed to output . The RAM 34, adder/subtracter 351 and multiplier 36 allow
An arithmetic circuit (AU) is configured. The control data reed waveform ROM 37 contains various musical tone control parameters such as pitch data and envelope data (rate, level), and a PC.
M (pulse code modulation) tone waveform data is stored. Envelope data and musical waveform data are prepared for each musical tone.

オペレージ膚ン解析部(オペレージ、ン制御回路)38
は制御用ROM31からの命令のオペコードを解読し、
指示されるオペレーション解析部するために、回路の各
部に制御信号を送る。
Operation skin analysis section (operation control circuit) 38
decodes the operation code of the instruction from the control ROM 31,
The analyzer sends control signals to each part of the circuit in order to perform the instructed operation.

所定時間ごとに制御用ROM31の楽音生成プログラム
を実行するため、この実施例ではタイマーインタラブド
を採用している。すなわち、タイマーを有するインタラ
ブド制御1部40により、一定時間ごとにROMアドレ
ス制御部39は制御信号(割込要求信号)を送り、この
信号により、ROMアドレスrFAW部39は次に行う
メインプログラムの命令のアドレスを退避(保持)し、
楽音の生成が行われるインタラブド処理プログラム(サ
ブルーチン)の先頭アドレスを代りにセットする。これ
により、インタラブド処理プログラムが開始される。イ
ンタラブド処理プログラムの最後にはリターン命令があ
るので、このリターン命令がオペレーション解析部38
で解読された時点で、ROM7ドレス制御部39は退避
してあったアドレスを再度セットし、メインプログラム
に復帰する。
In order to execute the musical tone generation program in the control ROM 31 at predetermined intervals, this embodiment employs timer interaction. That is, the ROM address control unit 39 sends a control signal (interrupt request signal) at regular intervals by the interwoven control unit 40 having a timer, and in response to this signal, the ROM address rFAW unit 39 executes the command of the next main program. Save (retain) the address of
The start address of the interwoven processing program (subroutine) in which musical tones are generated is set instead. This starts the interwoven processing program. Since there is a return instruction at the end of the interwoven processing program, this return instruction is used by the operation analysis unit 38.
When the address is decoded, the ROM7 address control unit 39 sets the saved address again and returns to the main program.

人力ポート41と出力ポート42は#!12、機能キー
3のキースキャンのために使用される。インタラブド処
理プログラムにおいて生成された楽音はデジタル/アナ
ログ変換器43でアナログ信号に変換され、外部に出力
される。
The manual port 41 and output port 42 are #! 12. Used for key scanning of function key 3. The musical tones generated in the interwoven processing program are converted into analog signals by the digital/analog converter 43 and output to the outside.

第3図(A)に本実施例のマイクロコンピュータlのメ
インプログラムのフローを示す、AIは電源投入時のイ
ニシャル処理であり、マイクロコンピュータ1のRAM
 (レジスタ群)34のクリアや、リズムテンポ等の初
期値の設定等を行う。
FIG. 3(A) shows the flow of the main program of the microcomputer 1 of this embodiment. AI is the initial processing when the power is turned on, and the RAM of the microcomputer 1
Clears (register group) 34, sets initial values such as rhythm tempo, etc.

A2でマイクロコンピュータlは出力ポート42からキ
ー走査のための信号を出力し、スイッチ部4の状態を入
力ポート41から取り込むことにより、機能キー、tI
IIiキーの状態をRAM34のキーパ7フアエリアに
記憶する。A3ではA2で得た機能キー3の状態から、
状態の変化した機能キーを識別し、指示される機能の実
行を行う(例えば、楽音番号のセット、エンベロープ番
号のセット、リズム番号のセット等)、A4ではA2で
得た1IIi2の状態から、変化したI!(押鍵、離鍵
)を識別する0次のA5でA4の処理結果から、発音処
理A9のためのキーアサイン処理を行う、A6では機能
キー3でデモ演奏キーが押鍵されたとき制御データ兼波
形用ROM37から、デモ演奏データ(シーケンサデー
タ)を順次読み出し、処理することにより、発音処理A
9のためのキーアサイン処理等を行う、A7ではリズム
スタートキーが押鍵されたとき制御データ兼波形用RO
M37からリズムデータを順次読み出し、発汗処理A9
のためのキーアサイン処理を行う、フロー−周タイマー
処理へ8では、メインフローで必要なイベントのタイミ
ングを知るために、フロー−同時間(これは、フローを
一周する間に実行されたタイマーインタラブドの回数先
計数することで得られる。この計数処理は後述のインタ
ラブドタイマー処理B3で行われる。)を基に演算を行
い、エンベロープ川タイマー(エンベロープの演算周期
)やリズム用の基準値を得る1発音処理A9ではA5、
A6.A7でセットされたデータから、実際に楽音を発
音させるための各種演算を行い、結果をRAM34内の
音源処理レジスタ(第6vli)にセットする。AIO
は次のメインフローのパスのための準備処理であり、今
回のバスで得た押鍵状態への変化を示すNEW  ON
状態をON中にしたり、離鍵状態への変化を示すNEW
  OFF状態をOFF中に変える等の処理を行う。
At A2, the microcomputer 1 outputs a signal for key scanning from the output port 42, and takes in the state of the switch section 4 from the input port 41, so that the function key, tI
The state of the IIi key is stored in the keeper 7 area of the RAM 34. In A3, from the state of function key 3 obtained in A2,
Identify the function key whose state has changed and execute the instructed function (for example, set musical tone number, set envelope number, set rhythm number, etc.). In A4, change from the state 1IIi2 obtained in A2. I did it! (Key press, key release) is identified In the zero-order A5, from the processing result of A4, key assignment processing for sound generation processing A9 is performed.In A6, when the demo performance key is pressed with function key 3, control data The sound generation process A is performed by sequentially reading and processing the demo performance data (sequencer data) from the dual waveform ROM 37.
Performs key assignment processing etc. for A7, and when the rhythm start key is pressed, the control data and waveform RO
Sequentially read rhythm data from M37 and perform sweat processing A9
In step 8, in order to know the timing of events required in the main flow, we perform key assignment processing for the flow-period timer processing. It is obtained by pre-counting the number of rhabdos. This counting process is performed in the interwoven timer process B3 described later.), and the envelope river timer (envelope calculation period) and reference value for rhythm are calculated. Get 1 pronunciation processing A9 in A5,
A6. From the data set in A7, various calculations are performed to actually generate musical tones, and the results are set in the sound source processing register (sixth vli) in the RAM 34. AIO
is a preparation process for the next main flow pass, and NEW ON indicates the change to the key press state obtained in this bus.
NEW indicating that the status is ON or the key is released
Processing such as changing the OFF state to OFF is performed.

楽音の生成が行われるインタラブド処理プログラムのフ
ローを第3B図に示す、B1で前回のインタラブドの音
源処理B2で生成しである楽音波形データ(8音分の累
積波形値)をD/A変換器43に送出する。これにより
、一定周期でD/A変換器43に楽音のサンプルが与え
られることになる0次の音源処理B2は実施例のポイン
トであり、従来はこの処理を音源回路ハードウェア上で
行っていた。詳細は後述する0次のインタラブドタイマ
ー処理B3ではインタラブドが所定時間ごとにかかるこ
とを利用して、フロー−周計時用のタイマーレジスタ(
11AM34内)を通過の都度、プラス1する。
Figure 3B shows the flow of the interwoven processing program in which musical tones are generated.In B1, musical sound waveform data (cumulative waveform values for 8 tones) generated in the previous interwoven sound source processing B2 is transferred to a D/A converter. Send to 43. As a result, the zero-order sound source processing B2, in which musical tone samples are given to the D/A converter 43 at a constant cycle, is the key point of the embodiment, and conventionally this processing was performed on the sound source circuit hardware. . In the zero-order interwoven timer process B3, which will be described in detail later, the timer register for flow-cycle timing (
Add 1 each time you pass (within 11AM34).

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

音源処理B2の詳細を第3C図に示す、CIで波形加算
用RAM領域(R6図容重!!りをクリアした後、8チ
ャンネル分の処理02〜c9を順番に行っている。各チ
ャンネル処理の最後で、チャンネルの楽音波形値が波形
加算用RAM領域のデータに加算される。
The details of sound source processing B2 are shown in Figure 3C. After clearing the waveform addition RAM area (R6 diagram) in CI, processing 02 to c9 for 8 channels is performed in order. Finally, the tone waveform value of the channel is added to the data in the waveform addition RAM area.

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

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

第8図はエンベロープ処理で生成されるエンベロープを
示したものである。1つの楽音のエンベロープはいくつ
かのステップ(セグメント)から成っている0図では4
セグメントで示しである。
FIG. 8 shows an envelope generated by envelope processing. The envelope of one musical note consists of several steps (segments).
It is shown in segments.

図中のΔXはエンベロープのサンプリング周期であり、
Δyはエンベロープ値の変化幅である。
ΔX in the figure is the sampling period of the envelope,
Δy is the change width of the envelope value.

チャンネルのエンベロープ処IM (DI−07) −
cは、サンプリングタイムごとのエンベロープ処理算と
ステップの目標レベルに達したかどうかのチエツクを行
っている。一致したときには現在エンベロープレジスタ
(第6図参照)に目標値が設定されるので、メインプロ
グラムの発音処理A9内でそれを検知して、次のステッ
プのエンベロープのためのデータ(ΔX、Δy、目標エ
ンベロープ値)を各レジスタにセットしている。
Channel envelope processing IM (DI-07) -
c performs envelope processing calculations for each sampling time and checks whether the target level of the step has been reached. When they match, the target value is set in the current envelope register (see Figure 6), so this is detected in the main program's sound generation process A9 and the data (ΔX, Δy, target value) for the next step's envelope is set. envelope value) is set in each register.

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

次に、波形処理D8〜D21について述べる。Next, waveform processing D8 to D21 will be described.

波形処理では、現在アドレスのsa部を使って波形RO
Mから隣り合う2つアドレスの波形データを読み出し、
(整数部子小数部)で示される現在アドレスに対して想
定される波形値を補間で求めている。補間が必要な理由
は、インタラブドによる波形サンプリング周期が一定で
あり、アドレスの加算値(ピッチデータ)が楽器への応
用上、ある音域にわたるためである(音階音しか出力し
ない楽器で音階音ごとに波形データを用意すれば補間の
必要はないが許容できない記憶容量の増大となる)、補
間による音色の劣化、歪みは高音域の方が著しいため、
通常は、原音の記録サンプリング周期より高速の周期で
原音を再生する。この実施例では原音(A4)再生の周
期を2倍にしている(第9図)、シたがって、アドレス
加算値が0.5のとき、A4の音が得られるようになっ
ている。この場合、A#4ではアドレス加算値は0.5
29となり、A3のとき、lとなる。これらのアドレス
加算値はピッチデータとして8mデータ兼波形ROM3
7に記憶されており、押鍵時には発音処理A9において
、鍵に対応するピッチデータと選択されている音色の波
形スタートアドレス、波形エンドアドレス及び波形ルー
プアドレスがRAM34の対応するレジスタ、すなわち
、アドレス加算値レジスタ、スタートアドレス兼現在ア
ドレスレジスタ、エンドアドレスレジスタ、ループアド
レスレジスタにセットされる。
In waveform processing, the sa part of the current address is used to process the waveform RO.
Read the waveform data of two adjacent addresses from M,
The expected waveform value for the current address indicated by (integer part to decimal part) is obtained by interpolation. The reason why interpolation is necessary is that the waveform sampling period by Interabdo is constant, and the address addition value (pitch data) spans a certain range in application to musical instruments. If you prepare waveform data, there is no need for interpolation, but it will result in an unacceptable increase in storage capacity).Tone deterioration and distortion due to interpolation are more pronounced in the high range, so
Normally, the original sound is reproduced at a faster cycle than the recording sampling cycle of the original sound. In this embodiment, the reproduction cycle of the original sound (A4) is doubled (FIG. 9). Therefore, when the address addition value is 0.5, the A4 sound can be obtained. In this case, the address addition value for A#4 is 0.5
29, and when A3, it becomes l. These address addition values are stored as pitch data in 8m data/waveform ROM3.
7, and when a key is pressed, in the sound generation process A9, the pitch data corresponding to the key, the waveform start address, waveform end address, and waveform loop address of the selected tone are stored in the corresponding register of the RAM 34, that is, address addition Set in the value register, start address/current address register, end address register, and loop address register.

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

補則の方式はいろいろあるが、ここでは直線補+1JI
を採用している。第7図の波形生dt娼理D8〜D21
を詳細に述べると、まず、D8で現在アドレスにアドレ
ス加算値を加算して新しい現在アドレスを得る。D9で
現在アドレスとエンドアドレスを比較し、現在アドレス
〉エンドアドレスならば、010.011により、現在
アドレスくエンドアドレスのときは012により、物理
上(番地上)または論理上(動作上)の次のアドレスを
計算し、014でその整数部により波形ROMをアクセ
スして次回波形データを得る。ループアドレスは動作上
エンドアドレスの次のアドレスである。すなわち、第9
図の場合、図示の波形は繰り返し読み出される。したが
って、現在アドレス=エンドアドレスのときは次のアド
レスとしてループアドレスの波形データを読み出す(D
 13) 。
There are various methods of supplementary rules, but here we use linear supplement + 1JI
is adopted. Waveform raw dt flow D8 to D21 in Fig. 7
To describe this in detail, first, in D8, an address addition value is added to the current address to obtain a new current address. D9 compares the current address and the end address, and if the current address > the end address, 010.011 is used, and if the current address is less than the end address, 012 is used to specify the next physical (address) or logical (operational) address. The waveform ROM is accessed using the integer part at 014 to obtain the next waveform data. The loop address is operationally the next address after the end address. That is, the ninth
In the case of the figure, the illustrated waveform is read out repeatedly. Therefore, when the current address = end address, the waveform data of the loop address is read as the next address (D
13).

D15.D16により、現在アドレスの整数部で波形R
OMをアクセスして今回の波形データを読み出す0次に
、D17で次回波形値から今回波形値を減算し、018
でその差に現在アドレスの小数部を乗算し、その結果を
019で今回の波形値に加えることにより、波形の直線
補間値を求める。この直線補間したデータに現在エンベ
ロープ値を乗算してチャンネルの楽音データ値をm(D
20)、それを波形加算用レジスタの内容に加えて楽音
データを累算する(021)。
D15. D16 causes the waveform R to be generated at the integer part of the current address.
Access the OM and read the current waveform data. Next, subtract the current waveform value from the next waveform value in D17, and
By multiplying the difference by the decimal part of the current address at 019 and adding the result to the current waveform value at 019, the linearly interpolated value of the waveform is obtained. This linearly interpolated data is multiplied by the current envelope value to obtain the musical tone data value of the channel m(D
20), and adds it to the contents of the waveform addition register to accumulate musical tone data (021).

最後に具体的実施例(8音ポリフオニツクのPCM音源
方式)の回路規模と動作時間について述べると、制御用
ROMが112Kbit、RAM34が5.4 K b
 i t、制御データ兼波形用ROM37(音色は10
0音色分)は508Kbitである。1マシンサイクル
は約276ナノ秒で、動作時のインタラブド処理プログ
ラムのサイクル数が最大で150程度である。インタラ
ブド処理の実行間隔(楽音の出力サンプリング周期)は
約47マイクロ秒である。
Finally, to describe the circuit scale and operating time of a specific example (8-note polyphonic PCM sound source system), the control ROM is 112 Kbits, and the RAM 34 is 5.4 Kbits.
i t, control data/waveform ROM37 (tone is 10
0 tone) is 508 Kbits. One machine cycle is about 276 nanoseconds, and the maximum number of cycles of an interwoven processing program during operation is about 150. The execution interval (musical tone output sampling period) of the interwoven processing is approximately 47 microseconds.

以上のように、実施例ではタイマーインタラブド処理プ
ログラムにおい、てマイクロコンピュータ1が楽音の生
成を行っているので、従来のような音源回路ハードウェ
アは不要であり、回路規模の縮少化、歩留りの向上、コ
ストの低減、設計の高い自由度をもたらすことができる
As described above, in the embodiment, the microcomputer 1 generates musical tones in the timer-interrupted processing program, so conventional tone generator circuit hardware is not required, reducing the circuit scale and improving yield. This can lead to improved performance, reduced costs, and a high degree of freedom in design.

[変形例J 以上で実施例の説明を終えるが、この発明の範囲を逸脱
することなく種々の変形、変更が可能である。
[Modification J This concludes the description of the embodiment, but various modifications and changes are possible without departing from the scope of the present invention.

例えば上記実施例では所定時間ごとの楽音波形サンプル
の出力のため、タイマーインタラブドをかけ、インクラ
ブドプログラムを実行することにより、楽音を生成して
いるが、ダミー命令(N。
For example, in the above embodiment, musical tones are generated by applying a timer interlude and executing an included program in order to output musical waveform samples at predetermined time intervals.

P命令)をプログラムに組み込むことにより。By incorporating the P command) into the program.

定時間ごとに上述したインクラブド処理に代る処理(以
下、一定時間処理と呼ぶ)が実行されるようにしてもよ
い(第11図参照)、すなわち、プログラムの各命令の
実行時間はマスタークロックにより決められるので、一
定時量分のメインプログラムの間に楽音を生成する一定
時間処理プログラムをサブルーチンとして挿入すればよ
いわけである。
Processing instead of the included processing described above (hereinafter referred to as fixed time processing) may be executed at fixed time intervals (see Figure 11). In other words, the execution time of each instruction of the program is determined by the master clock. Since it can be determined, a fixed time processing program for generating musical tones can be inserted as a subroutine between the main program for a fixed amount of time.

一定時間を確保するには、メインプログラム及びサブル
ーチンの一定時間処理プログラム内のすべての分岐が同
じ時間で処理されなければならない。
In order to secure the fixed time, all branches in the fixed time processing program of the main program and subroutine must be processed in the same time.

例えば、メインプログラムのなかに第12図に示すよう
なフローがあるとし、その前後で一定時間処理を行うと
仮定する。簡単のため分岐命令は2の時間を要し2通常
の命令はlの時間を要するとしてみる。第12図のまま
では、最初の分岐から一定時間処理までの時間は、ルー
トaを通ったときは2.ルートbを通ったときは5、ル
ートCを通ったときは6.ルートdを通ったときは5と
なり、ルートによって異なる。ルー)aに4つのダミー
命令を入れ、ルートbに1つのダミー命令、ルートdに
1つのダミー命令を入れれば、すべてのルートの時間は
6に統一される(第13図)。
For example, assume that there is a flow as shown in FIG. 12 in the main program, and that processing is performed for a certain period of time before and after the flow. For simplicity, assume that a branch instruction takes 2 hours and 2 normal instructions takes 1 time. As shown in FIG. 12, the time from the first branch to the fixed time processing is 2. 5 when taking route B, 6 when taking route C. When passing through route d, the value is 5, which varies depending on the route. Route) If four dummy instructions are placed in route a, one dummy instruction is placed in route b, and one dummy instruction is placed in route d, the times of all routes are unified to 6 (Figure 13).

一定時間処理内部でも分岐によって処理時間が異なって
しまうと次に一定時間処理にジャンプするまでの時間が
一定でなくなる。そのため一定時間処理内部でもすべて
の分岐のルートに要する処理時間を一定にするためのダ
ミー命令を入れる必要がある。−例として、一定時間処
理内の楽音生成チャンネル処理にダミー命令を入れたも
のを第14図に示す。
Even within the fixed time process, if the processing time varies depending on the branch, the time until the next jump to the fixed time process will not be constant. Therefore, it is necessary to insert a dummy instruction to make the processing time required for all branch routes constant even within the fixed time processing. - As an example, FIG. 14 shows a case in which a dummy command is inserted into the musical tone generation channel processing within the fixed time processing.

実施例と上述の変形例では、楽音の生成のサンプリング
周期を常に一定に保っている。可変のサンプリング周期
の楽音生成も可能である0例えば、PCM音源方式を例
にとると、波形の補間処理を行う代りに、波形ROMの
各アドレスの波形データをそのまま使用し、lアドレス
分進む時間(あるアドレスの波形データの読出しから次
のアドレスの波形データの読出しまでの時間)を楽音の
周波a(ピッチデータ)に比例させる1例えば、A4の
とき、lの時間なら、A3のときは2の時間とする。こ
の時間間隔の制御は1例えば。
In the embodiment and the above-mentioned modification, the sampling period for musical tone generation is always kept constant. It is also possible to generate musical tones with a variable sampling period.0 For example, in the PCM sound source method, instead of performing waveform interpolation processing, the waveform data at each address in the waveform ROM is used as is, and the time that advances by l addresses is used. (the time from reading the waveform data of a certain address to reading the waveform data of the next address) is proportional to the frequency a (pitch data) of the musical tone 1 For example, for A4, time l, for A3, 2 The time shall be . The control of this time interval is 1 example.

タイマーインタラブド制w部の内部タイマーに楽音の周
波数に対応するデータをプリセットし、タイマーアウト
毎にインタラブドを行えば、実現できる。ただし、ポリ
フォニックに応用する場合、インタラブドの間隔は、各
々のチャンネル査使用する楽音の周波数で変化するので
、チャンネル別にタイマーインタラブド制御部とタイマ
ーインタラブド処理プログラムを設ける。また、D/A
変換器もチャンネル別に設け、その変換周期は対応する
チャンネルのタイマーインタラブド処理の周期と一致さ
せる。
This can be achieved by presetting data corresponding to the frequency of musical tones in the internal timer of the timer interworking section w and performing interworking every time the timer runs out. However, in the case of polyphonic application, the interval between interwovens changes depending on the frequency of the musical tone used in each channel, so a timer interwoven control section and a timer interwoven processing program are provided for each channel. Also, D/A
A converter is also provided for each channel, and its conversion period is made to match the period of timer interwoven processing of the corresponding channel.

以上の例は、いずれもマイクロコンピュータにおける楽
音生成の動作とD/A変換器の動作とが基本的に同期す
る関係にある。この代りに非同期の方式も考えられる0
例えば、マイクロコンピュータの楽音生成出力とD/A
変換器との間にバッファ機構を設ける。マイクロコンピ
ュータにD/Af#器の変換周期より高速で楽音のサン
プル列を生成する渣力をもたせる。これは、例えば、楽
音を生成するサブルーチンを多数メインプログラムに分
散配置することで実現できる。マイクロコンピュータか
らの楽音のサンプル列はバッファに書き込まれ、D/A
変換器の動作と同期して読み出され、D/A変換器に入
力される。楽音生成のサブルーチンから次のサブルーチ
ンまでの時間はプログラムの実行状態によって若干変動
するが、D/A変換器の変換周期より短いとすると、バ
ッファへの楽音サンプル列の書込により、バッファの残
りの容量が少なくなっていく、そこで、バッファの残存
容量に従ってマイクロコンピュータの楽音のサンプル列
の平均的な演算周期を変化させる。すなわち、楽音生成
のサブルーチン内に分岐命令をもたせ、バッファの残存
容量によって、楽音生成がサブルーチンにおいて選択的
に行われるようにする0例えば、残存容量が半分以下に
なったら、2つのサブルーチンごとに1回、楽音の生成
が行われるようにする。ある構成例ではバッファ機構と
D/A変換器を発音チャンネル別に用意し、D/A変換
器の変換速度を可変構成にする。これは、マイクロコン
ピュータの生成する楽音サンプル列のサンプル間の位相
の差と楽音の周波数との比が音質を高品位に保つため、
限られた音域(例えばlオクターブの音域)ごとに切り
かわるような場合に使用できる0重要なことは、サンプ
ル列の位相の差にかかわらずD/A変換器の出力が、意
図されている楽音周波数をもつことである。マイクロコ
ンピュータは1選択されている音域内ではサンプル間の
位相の差と楽音の周波数との比を保つものとする(例え
ば、!オターブの範囲内では楽音の周波数に比例する位
相の差を楽音サンプル間にもたせる)、この場合、マイ
クロコンピュータは、上記の比に相当するデータをD/
A変換器の変換周期(したがってバッファの読み出し周
期でもある)を制御する周波数制御回路(プログラマブ
ルタイマー等で構成できる)に与える。この回路は受は
取った比のデータに従って八ツファ読出しとD/A変換
のための制御タイミング信号を発生する。この結果、D
/A変換器の出力は楽音の周波数をもつアナログ信号と
なる。
In all of the above examples, the musical tone generation operation in the microcomputer and the operation of the D/A converter are basically in synchronization. Instead of this, an asynchronous method can also be considered.
For example, the musical tone generation output of a microcomputer and the D/A
A buffer mechanism is provided between the converter and the converter. To give a microcomputer the power to generate a sample sequence of musical tones at a higher speed than the conversion period of a D/Af# device. This can be achieved, for example, by distributing a large number of subroutines for generating musical tones in the main program. The sample sequence of musical tones from the microcomputer is written into a buffer, and the D/A
It is read out in synchronization with the operation of the converter and input to the D/A converter. The time from one musical sound generation subroutine to the next subroutine varies slightly depending on the execution state of the program, but assuming it is shorter than the conversion cycle of the D/A converter, writing a musical sound sample string to the buffer will fill the remaining buffer. As the capacity decreases, the average calculation cycle of the musical tone sample sequence of the microcomputer is changed according to the remaining capacity of the buffer. In other words, a branch instruction is provided in the musical tone generation subroutine so that musical tone generation is performed selectively in the subroutine depending on the remaining capacity of the buffer. The musical tone is generated twice. In one configuration example, a buffer mechanism and a D/A converter are prepared for each sound generation channel, and the conversion speed of the D/A converter is configured to be variable. This is because the ratio between the phase difference between the samples of the musical sound sample sequence generated by the microcomputer and the frequency of the musical sound maintains high quality sound.
This can be used when switching in a limited range (for example, an octave range).The important thing is that the output of the D/A converter will not match the intended musical tone, regardless of the phase difference between the sample sequences. It has a frequency. The microcomputer shall maintain the ratio between the phase difference between samples and the frequency of the musical tone within the selected range (for example, within the range of ! otaves, the microcomputer shall maintain the ratio of the phase difference between musical samples to the frequency of the musical tone). In this case, the microcomputer stores data corresponding to the above ratio in D/
It is applied to a frequency control circuit (which can be configured with a programmable timer or the like) that controls the conversion cycle of the A converter (and therefore also the read cycle of the buffer). This circuit generates control timing signals for eight-way reading and D/A conversion according to the received ratio data. As a result, D
The output of the /A converter becomes an analog signal having the frequency of the musical tone.

例えば、マイクロコンピュータの生成する楽音サンプル
間の位相の差が、楽音の一周期の17Nであるとし、楽
音の周期がPであるとすると、D/A変換器はP/Nの
時間で1つのデジタル楽音サンプルをアナログ信号に変
換する。したがってN個のデジタル楽音サンプルを変換
するのに要する時間は楽音の周期Pに等しくなり、楽音
の周波数(1/P)のアナログ信号が得られる。
For example, if the phase difference between musical tone samples generated by a microcomputer is 17N, which corresponds to one period of the musical tone, and the period of the musical tone is P, the D/A converter will generate one signal in a time of P/N. Convert digital musical sound samples to analog signals. Therefore, the time required to convert N digital tone samples is equal to the period P of the tone, and an analog signal having the frequency (1/P) of the tone is obtained.

その他、種々の変形が可泄である。In addition, various variations are excretable.

[発明の効果] 以上のように、この発明によれば、マイクロコンピュー
タが楽音を生成するプログラムを実行することにより、
楽音を生成しているので、従来のような音源回路ハード
ウェアは不要となる。したがって、装置全体の回路規模
を小さくでき、歩留りを上げ、コストを下げることがで
きる。更には、設計の自由度が増し、楽音合成方式の変
更、ポリフォニック数の変更などについて容易に対応す
ることができる0例えば、従来技術では4音ポリフオニ
シク、PCM音源方式を7X7mmのチップで実現して
いたのを、この発明の実施例では8音ポリフオニツク、
PCM音源方式(D/A変換器込み)を5X5mmのチ
ップで実現することができた。一般に、回路規模は半分
以下にすることができると考えられる。
[Effects of the Invention] As described above, according to the present invention, when a microcomputer executes a program for generating musical tones,
Since musical tones are generated, there is no need for conventional sound source circuit hardware. Therefore, the circuit scale of the entire device can be reduced, yield can be increased, and costs can be reduced. Furthermore, the degree of freedom in design is increased, and changes in musical tone synthesis methods and polyphonic numbers can be easily accommodated.For example, in the conventional technology, a four-tone polyphonic sound source system and a PCM sound source system were realized with a 7x7mm chip. However, in the embodiment of the present invention, an 8-tone polyphonic
We were able to realize the PCM sound source system (including a D/A converter) with a 5x5mm chip. Generally, it is considered that the circuit scale can be reduced by half or less.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の実施例に係る電子楽姦の全体構成図
、第2図は実施例のマイクロコンピュータの構成を示す
ブロック図、第3A図はマイクロコンピュータのメイン
プログラムのフローを示す図、第3B図は楽音の生成が
行われるインタラブド処理のフローチャート、第3C図
は第3B図の音源処理の詳細なフローチャート、第4図
は時間に沿ったプログラムの流れを示す図、第5図は時
間に沿った処理の概要を示すタイムチャート、第6図は
第2図のRAM34内に置かれる楽音生成用RAMのテ
ーブルを示す図、第7図は第3C図の1つのチャンネル
処理の詳細なフローチャート、第8図はエンベロープを
示す図、第9図は波形ROMの波形データを示す図、第
1O図は時間に沿う補間演算波形を示す図、第11図は
変形例としてタイマーインタラブド処理の代りに一定時
間処理サブルーチンを用いたときの動作の流れを示す図
、第12図はメインフローの一部を形式的に示す図、第
13図は一定時間処理のために第12図のフローを変形
した図、第14図は一定時間処理のためチャンネル処理
のフローを変形した図、第15図は従来の音源回路ハー
ドウェアの一例を示すブロック図である。 l・・・・・・マイクロコンピュータ、31・・・・・
・制御用ROM、34・・・・・・RAM、35・・・
・・・加減算器及び論理演算部、36・・・・・・乗算
器、37・・・・・・制御データ兼波形ROM、38・
・・・・・オペレーション解析部、40・・・・・・イ
ンタラブド制御部、41・旧・・入力ポート、42・・
・・・・出力ポート、43・・・・・・D/A変換器。 特 許 出 願 人 カシオ計算機株式会社 第3A図 メイ′/70− 手続補正歯(方式) 平成1年5月24日
FIG. 1 is an overall configuration diagram of an electronic entertainment device according to an embodiment of the present invention, FIG. 2 is a block diagram showing the configuration of a microcomputer according to the embodiment, and FIG. 3A is a diagram showing the flow of the main program of the microcomputer. Figure 3B is a flowchart of the interwoven processing in which musical tones are generated, Figure 3C is a detailed flowchart of the sound source processing in Figure 3B, Figure 4 is a diagram showing the flow of the program over time, and Figure 5 is a diagram showing the flow of the program over time. 6 is a diagram showing a table of the musical tone generation RAM placed in the RAM 34 of FIG. 2, and FIG. 7 is a detailed flowchart of one channel processing of FIG. 3C. , FIG. 8 is a diagram showing an envelope, FIG. 9 is a diagram showing waveform data of the waveform ROM, FIG. 10 is a diagram showing an interpolated calculation waveform along time, and FIG. Figure 12 is a diagram that formally shows a part of the main flow, and Figure 13 is a modification of the flow in Figure 12 for constant time processing. FIG. 14 is a diagram showing a modified flow of channel processing for fixed time processing, and FIG. 15 is a block diagram showing an example of conventional sound source circuit hardware. l...Microcomputer, 31...
・Control ROM, 34...RAM, 35...
. . . Adder/subtractor and logic operation unit, 36 . . . Multiplier, 37 . . . Control data/waveform ROM, 38.
...Operation analysis section, 40...Interfaced control section, 41.Old...Input port, 42..
...Output port, 43...D/A converter. Patent applicant Casio Computer Co., Ltd. Figure 3A May'/70- Procedural amendment tooth (method) May 24, 1999

Claims (4)

【特許請求の範囲】[Claims] (1)楽器を制御する入力を処理するためのプログラム
と楽音を生成するためのプログラムを記憶するプログラ
ム記憶手段と、 前記プログラム記憶手段のアドレスを制御するアドレス
制御回路手段と、 楽音の生成に必要なデータを記憶するデータ記憶手段と
、 演算処理回路手段と、 前記プログラム記憶手段のプログラムの各命令を解読し
て前記アドレス制御回路手段、前記データ記憶手段、前
記演算処理回路手段の動作を制御するオペレーション制
御回路手段と、 を備えるマイクロコンピュータから成り、このマイクロ
コンピュータが上記プログラム記憶手段内の楽音を生成
するプログラムを実行することにより楽音を生成するこ
とを特徴とする電子楽器用処理装置。
(1) Program storage means for storing a program for processing input to control a musical instrument and a program for generating musical tones, and address control circuit means for controlling the address of the program storage means, necessary for generating musical tones. a data storage means for storing data; an arithmetic processing circuit means for decoding each instruction of a program in the program storage means to control operations of the address control circuit means, the data storage means, and the arithmetic processing circuit means; 1. A processing device for an electronic musical instrument, comprising a microcomputer comprising: an operation control circuit means; and the microcomputer generates musical tones by executing a program for generating musical tones in the program storage means.
(2)請求項1記載の電子楽器用処理装置において、前
記プログラム記憶手段は読み出し専用メモリで構成され
ることを特徴とする電子楽器用処理装置。
(2) A processing device for an electronic musical instrument according to claim 1, wherein the program storage means is constituted by a read-only memory.
(3)請求項1記載の電子楽器用処理装置において、前
記マイクロコンピュータは集積回路チップで構成され、
このチップ上にデジタルの楽音信号をアナログ信号に変
換するデジタル・アナログ変換器と楽器を制御する入力
を受けるポートが更に設けられることを特徴とする電子
楽器用処理装置。
(3) The processing device for an electronic musical instrument according to claim 1, wherein the microcomputer is composed of an integrated circuit chip;
A processing device for an electronic musical instrument, characterized in that the chip is further provided with a digital-to-analog converter for converting a digital tone signal into an analog signal, and a port for receiving input for controlling the musical instrument.
(4)請求項1記載の電子楽器用処理装置において、前
記演算回路手段は波形データを演算するための乗算回路
を含むことを特徴とする電子楽器用処理装置。
(4) A processing device for an electronic musical instrument according to claim 1, wherein the arithmetic circuit means includes a multiplication circuit for calculating waveform data.
JP63334158A 1988-12-29 1988-12-29 Processing equipment Expired - Lifetime JP2576613B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP63334158A JP2576613B2 (en) 1988-12-29 1988-12-29 Processing equipment
KR8920242A KR930005221B1 (en) 1988-12-29 1989-12-29 Tone signal generating apparatus for electronic musical instrument
DE68917113T DE68917113T2 (en) 1988-12-29 1989-12-29 Data processing device for an electronic musical instrument.
EP89124128A EP0376342B1 (en) 1988-12-29 1989-12-29 Data processing apparatus for electronic musical instruments
US07/855,431 US5319151A (en) 1988-12-29 1992-03-23 Data processing apparatus outputting waveform data in a certain interval
US08/223,589 US5726371A (en) 1988-12-29 1994-04-06 Data processing apparatus outputting waveform data for sound signals with precise timings

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63334158A JP2576613B2 (en) 1988-12-29 1988-12-29 Processing equipment

Publications (2)

Publication Number Publication Date
JPH02179692A true JPH02179692A (en) 1990-07-12
JP2576613B2 JP2576613B2 (en) 1997-01-29

Family

ID=18274188

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JP2576613B2 (en)

Cited By (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
JPH09179558A (en) * 1995-12-21 1997-07-11 Yamaha Corp Musical tone generating method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54136818A (en) * 1978-04-14 1979-10-24 Kawai Musical Instr Mfg Co Musical tone data processor
JPS6033600A (en) * 1983-08-04 1985-02-20 松下電器産業株式会社 Light source unit
JPS629395A (en) * 1985-07-08 1987-01-17 ブラザー工業株式会社 Music synthesizer
JPS63280333A (en) * 1987-05-13 1988-11-17 Mitsubishi Electric Corp Microprogram controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54136818A (en) * 1978-04-14 1979-10-24 Kawai Musical Instr Mfg Co Musical tone data processor
JPS6033600A (en) * 1983-08-04 1985-02-20 松下電器産業株式会社 Light source unit
JPS629395A (en) * 1985-07-08 1987-01-17 ブラザー工業株式会社 Music synthesizer
JPS63280333A (en) * 1987-05-13 1988-11-17 Mitsubishi Electric Corp Microprogram controller

Cited By (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
JPH09179558A (en) * 1995-12-21 1997-07-11 Yamaha Corp Musical tone generating method

Also Published As

Publication number Publication date
JP2576613B2 (en) 1997-01-29

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
JP2785531B2 (en) Electronic musical instrument
EP0376342B1 (en) Data processing apparatus for electronic musical instruments
JPH02179692A (en) Processor for electronic musical instrument
JP2576616B2 (en) Processing equipment
JP2576617B2 (en) Processing equipment
JP2576614B2 (en) Processing equipment
JP2576615B2 (en) Processing equipment
JP2950461B2 (en) Tone generator
JP2576618B2 (en) Processing equipment
JP2797142B2 (en) Processing equipment for electronic musical instruments
JPS6330638B2 (en)
JP3610759B2 (en) Digital signal processor
JPH02179697A (en) Processor for electronic musical instrument
JP3543203B2 (en) Electronic musical instrument
JP2797138B2 (en) Processing equipment for electronic musical instruments
JP3651675B2 (en) Electronic musical instruments
JP3116447B2 (en) Digital signal processor
JPS6352399B2 (en)
JPH1097258A (en) Waveform memory sound source device and musical sound producing device
JP3217745B2 (en) Electronic musical instrument
JPH08234785A (en) Sound source device
JPH08234760A (en) Waveform memory sound source device
JPH0460724A (en) Digital microcomputer

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