JPS63289594A - Musical sound generator - Google Patents

Musical sound generator

Info

Publication number
JPS63289594A
JPS63289594A JP63086124A JP8612488A JPS63289594A JP S63289594 A JPS63289594 A JP S63289594A JP 63086124 A JP63086124 A JP 63086124A JP 8612488 A JP8612488 A JP 8612488A JP S63289594 A JPS63289594 A JP S63289594A
Authority
JP
Japan
Prior art keywords
address
data
sample data
waveform sample
circuit
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
JP63086124A
Other languages
Japanese (ja)
Other versions
JP2613788B2 (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.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP63086124A priority Critical patent/JP2613788B2/en
Publication of JPS63289594A publication Critical patent/JPS63289594A/en
Application granted granted Critical
Publication of JP2613788B2 publication Critical patent/JP2613788B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、外部から入力された音信号をサンプリング
してメモリに記憶し、その後このメモリに記憶した波形
サンプルデータを鍵操作等に応じて所望の音高で読み出
すことにより楽音を発生するようにしたサンプリング方
式の楽音発生装置に関し、特に、メモリに記憶した波形
サンプルデータを最初は逆方向に読み出し次に続いて順
方向に読み出すことにより、新しい演奏効果を実現し得
るようにした楽音発生装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] This invention samples a sound signal input from the outside and stores it in a memory, and then samples the waveform sample data stored in this memory in response to a key operation, etc. Regarding a sampling type musical tone generation device that generates musical tones by reading out at a desired pitch, in particular, by first reading out waveform sample data stored in a memory in a backward direction and then reading out in a forward direction, The present invention relates to a musical tone generator capable of realizing new performance effects.

〔従来の技術〕[Conventional technology]

サンプリング方式の楽音発生装置として、従来は例えば
特公昭61−47435号公報に示されたものがある。
As a sampling type musical tone generator, there is one disclosed in Japanese Patent Publication No. 47435/1983, for example.

そこでは、サンプリングした複数周期の波形データを繰
返し読み出すことが開示されている。
There, it is disclosed that sampled waveform data of a plurality of periods is repeatedly read out.

その場合、該波形データの最初と最後に対応してスター
トアドレスと終了アドレスを検出し、スタートアドレス
から読出しを開始して終了アドレスまで到達したとき再
びスタートアドレスに戻って読出しを繰返すようにして
いる。従って、外部からサンプリングした音信号を再生
発音する場合、サンプリングした音信号を繰返し発音す
ることはできても、サンプリングしたときの時間順序に
従って当り前に発音することしかできなかった。
In that case, a start address and an end address are detected corresponding to the beginning and end of the waveform data, reading is started from the start address, and when it reaches the end address, it returns to the start address and repeats reading. . Therefore, when reproducing and producing sound signals from externally sampled sound signals, although the sampled sound signals can be repeatedly produced, they can only be produced regularly according to the time order in which they were sampled.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述のように従来のサンプリング方式の楽音発生装置に
おいては、メモリに記憶した波形データを順方向に1回
読み出したり、順方向に何回も繰返し読み出すことは可
能であったが、その他の多様なバリエーションでサンプ
リング音に基づく楽音を発音することはできなかった。
As mentioned above, in conventional sampling-type musical tone generators, it is possible to read the waveform data stored in the memory in the forward direction once or repeatedly in the forward direction many times. It was not possible to produce musical tones based on sampled sounds in variations.

この発明は上述の点に鑑みてなされたもので、メモリに
記憶した波形サンプルデータを最初に逆方向に1回読み
出した後続いて順方向に1回読み出すことからなるシー
ケンスを少なくとも1回行うことにより新規な演奏効果
を実現するようにした楽音発生装置を提供しようとする
ものである。
The present invention has been made in view of the above-mentioned points, and is achieved by performing at least one sequence of first reading the waveform sample data stored in the memory once in the reverse direction and then reading it once in the forward direction. It is an object of the present invention to provide a musical tone generating device that realizes new performance effects.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係る楽音発生装置は、外部から入力された音
信号をサンプリングする外部音サンプリング手段と、波
形サンプルデータを記憶する読み書き可能な記憶手段と
、前記外部音サンプリング手段でサンプリングされた音
信号の波形サンプルデータを前記記憶手段に書き込む書
込み制御手段と、楽音を発生すべきときに、最初に前記
記憶手段の波形サンプルデータを前記書込み時のアドレ
ス順序とは逆方向に読み出し、続いて該記憶手段の波形
サンプルデータを前記書込み時のアドレス順序に順方向
に読み出すことからなるシーケンスを少なくとも1回行
う読出し制御手段とを具え、前記記憶手段から読み出さ
れた前記波形サンプルデータに対応する楽音信号を発生
するようにしたものである。
A musical sound generation device according to the present invention includes an external sound sampling means for sampling a sound signal inputted from the outside, a readable and writable storage means for storing waveform sample data, and a sound signal sampled by the external sound sampling means. a write control means for writing waveform sample data into the storage means; and when a musical tone is to be generated, the waveform sample data of the storage means is first read out in a direction opposite to the address order at the time of writing, and then the storage means readout control means for performing at least one sequence of reading out the waveform sample data in the forward direction in the address order at the time of writing, the musical tone signal corresponding to the waveform sample data read from the storage means; It is designed to occur.

これを図によって示すと、第1図のようであり、1が外
部音サンプリング手段、2が記憶手段、3が書込み制御
手段、4が読み出し制御手段、である。
This is illustrated in FIG. 1, where 1 is an external sound sampling means, 2 is a storage means, 3 is a write control means, and 4 is a read control means.

〔作用〕[Effect]

外部から入力された音信号は外部音サンプリング手段1
によってサンプリングされ、サンプリングされた該音信
号の波形サンプルデータは書込み制御手段3の制御によ
り記憶手段2に書き込まれる。読出し制御手段4では、
楽音を発生すべきときに、最初に記憶手段2の波形サン
プルデータを書込み時のアドレス順序とは逆方向に読み
出し、続いて該記憶手段2の波形サンプルデータを書込
み時のアドレス順序に順方向に読み出すことからなるシ
ーケンスを少なくとも1回行う、記憶手段2から読み出
された波形サンプルデータに対応する楽音信号が発音さ
れる。
The sound signal input from the outside is sent to external sound sampling means 1.
The waveform sample data of the sampled sound signal is written into the storage means 2 under the control of the write control means 3. In the read control means 4,
When a musical tone is to be generated, the waveform sample data of the storage means 2 is first read out in the reverse direction of the address order at the time of writing, and then the waveform sample data of the storage means 2 is read out in the forward direction of the address order at the time of writing. A musical tone signal corresponding to the waveform sample data read out from the storage means 2 is generated by performing a sequence consisting of reading out at least once.

これにより、サンプリングした外部音を時間的に逆方向
に並べ替えた楽音を最初に1回発音した後、引き続いて
、該サンプリング音を時間的に順方向に直してもう1回
発音する、という新しい演奏効果を実現することができ
る。
As a result, a musical tone obtained by rearranging sampled external sounds in the backward direction in time is played once, and then the sampled sound is rearranged in the forward direction in time and played again. Performance effects can be achieved.

実施例においては、逆方向読出しと順方向読出しとから
なる前記シーケンスを1回のみ行うかまたは複数回繰返
し行うかの選択が可能である。該シーケンスを1回のみ
行うことを以下では「Uターン・リバース」という。ま
た、該シーケンスを複数回繰返し行うことを以下では「
Uターン・リバース・ループ」という。「Uターン・リ
バース・ループ」によれば、上記「Uターン・リバース
」を何回も繰返して新しい演奏効果を実現することがで
きる。
In the embodiment, it is possible to select whether the sequence consisting of backward reading and forward reading is performed only once or repeatedly. Performing this sequence only once is hereinafter referred to as "U-turn/reverse." In addition, repeating the sequence multiple times is hereinafter referred to as "
It's called a U-turn reverse loop. According to the "U-turn reverse loop", the above-mentioned "U-turn reverse" can be repeated many times to realize a new performance effect.

〔実施例〕〔Example〕

以下、添付図面を参照してこの発明の実施例を詳細−に
説明しよう。
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

第2図はこの発明に係る楽音発生装置を適用した電子楽
器の一実施例のハード構成を示すもので、この実施例の
電子楽器においてはCPU (中央処理ユニット)11
、プログラムROM (リードオンリーメモリ)12及
びデータ及びワーキングRAM (ランダムアクセスメ
モリ)13を含むマイクロコンピュータ部によって各種
の動作や処理が制御される。鍵盤14は、楽音の音高を
指定するための複数の鍵を具えている。
FIG. 2 shows the hardware configuration of an embodiment of an electronic musical instrument to which the musical tone generator according to the present invention is applied.
Various operations and processes are controlled by a microcomputer section including a program ROM (read only memory) 12 and a data and working RAM (random access memory) 13. The keyboard 14 includes a plurality of keys for specifying pitches of musical tones.

操作パネル部15には、外部音のサンプリング動作及び
その読出し動作を制御するためのサンプリング制御操作
子群16と、楽音のエンベロープ波形を設定・制御する
ためのエンベロープ制御操作子群17と、各種の楽音効
果の設定・制御を行うための効果制御操作子群18と、
その他種々の楽音設定・制御用の操作子群19とが設け
られている。
The operation panel unit 15 includes a sampling control operator group 16 for controlling the external sound sampling operation and its readout operation, an envelope control operator group 17 for setting and controlling the envelope waveform of musical tones, and various types of controls. an effect control operator group 18 for setting and controlling musical tone effects;
A group of operators 19 for setting and controlling various musical tones are also provided.

サンプリング制御操作子群16において、サンプリング
スイッチSMPLとオーバーライドスイッチ0VRWR
は外部音の波形サンプルデータをトーンジェネレータ部
20内のデータメモリ21に書き込む制御を行うべきこ
とを指示するスイッチである。リバーススイッチRVR
5とUターンスイッチUTRNとループスイッチLOO
PとエコースイッチECHOは該メモリ21に記憶した
波形サンプルデータを読み出して演奏を行う際の演奏モ
ードを指示するスイッチである。
In the sampling control operator group 16, the sampling switch SMPL and the override switch 0VRWR
is a switch that instructs to write the external sound waveform sample data into the data memory 21 in the tone generator section 20. reverse switch rvr
5 and U-turn switch UTRN and loop switch LOO
P and the echo switch ECHO are switches for instructing the performance mode when reading the waveform sample data stored in the memory 21 and performing the performance.

サンプリングスイッチSMPLは、外部音のサンプリン
グを行うべきことを指示するとき操作するものである。
The sampling switch SMPL is operated to instruct that external sound sampling should be performed.

オーバーライドスイッチ0VRWRは、上記と同様に外
部音のサンプリングを行うべきことを指示するとき操作
するものであるが、既にメモリ21に記憶しである成る
外部音の波形サンプルデータに対して、そのデータを消
去せずに、別の外部音の波形サンプルデータを重ね書き
すること(これをrオーバーライド」という)を指示す
るとき操作するものである。これに対して、サンプリン
グスイッチSMPLによりサンプリングが指示されたと
きは、前に記憶した外部音の波形サンプルデータは消去
される。
The override switch 0VRWR is operated to instruct that external sound sampling should be performed in the same way as described above, but it is used to override external sound waveform sample data that has already been stored in the memory 21. This operation is used to instruct to overwrite waveform sample data of another external sound without erasing it (this is called r override). On the other hand, when sampling is instructed by the sampling switch SMPL, the previously stored external sound waveform sample data is erased.

リバーススイッチRVR3は、メモリ21に記憶した外
部音の波形サンプルデータを逆方向に読み出して行う演
奏を指示するとき操作するものである。このような読出
しを称して単に「リバース」という。なお、メモリ21
を逆方向に読み出すとは、アドレスの値の大きい方から
順に読み出すことである。これに対して、メモリ21を
順方向に読み出すとは、アドレスの値の小さい方から順
に読み出すことである。
The reverse switch RVR3 is operated to instruct a performance to be performed by reading out the external sound waveform sample data stored in the memory 21 in the reverse direction. This kind of reading is simply called "reverse". In addition, the memory 21
Reading in the reverse direction means reading in order from the address with the largest value. On the other hand, reading the memory 21 in the forward direction means reading data in order from the address with the smallest value.

UターンスイッチUTRNは、メモリ21に記憶した外
部音の波形サンプルデータを順方向に読み出した後、逆
方向に折返して読み出す演奏を指示するとき操作するも
のである。このような読出しを称して単に「Uターン」
という。
The U-turn switch UTRN is operated to instruct a performance in which the external sound waveform sample data stored in the memory 21 is read out in the forward direction and then turned back and read out in the reverse direction. This type of readout is simply called a "U-turn".
That's what it means.

なお、「Uターン」と「リバース」を同時に選択・指示
することが可能であり、その場合は、メモリ21に記憶
した外部音の波形サンプルデータを逆方向に読み出した
後、順方向に折返して読み出す。これを称して「Uター
ン・リバース」という。
In addition, it is possible to select and instruct "U-turn" and "reverse" at the same time. In that case, after reading out the external sound waveform sample data stored in the memory 21 in the reverse direction, the data is turned back in the forward direction. read out. This is called a "U-turn reverse."

ループスイッチLOOPは、メモリ21に記憶した外部
音の波形サンプルデータを繰返し読み出すことを指示す
るとき操作するものである。このような読出しを称して
単に「ループ」という。通常の「ループ」は、メモリ2
1に記憶した外部音の波形サンプルデータを順方向に繰
返し読み出す。
The loop switch LOOP is operated to instruct repeated reading of external sound waveform sample data stored in the memory 21. This kind of reading is simply called a "loop." A normal "loop" is memory 2
The external sound waveform sample data stored in step 1 is repeatedly read out in the forward direction.

これを称して「ノーマル・ループ」という。This is called a "normal loop."

「ループ」と「リバース」を同時に選択・指示すること
が可能であり、その場合は、メモリ21に記憶した外部
音の波形サンプルデータを逆方向に繰返し読み出す。こ
れを称して「リバース・ループ」という。
It is possible to select and instruct "loop" and "reverse" at the same time, and in that case, the external sound waveform sample data stored in the memory 21 is repeatedly read out in the reverse direction. This is called a "reverse loop."

「ループ」と「Uターン」を同時に選択・指示すること
が可能であり、その場合は、メモリ21に記憶した外部
音の波形サンプルデータを順方向に読み出した後、逆方
向に折返して読み出すことを繰り返す。これを称して「
Uターン・ループ」という。
It is possible to select and instruct "loop" and "U-turn" at the same time. In that case, after reading out the waveform sample data of the external sound stored in the memory 21 in the forward direction, it is read out in the reverse direction. repeat. This is called “
It's called a U-turn loop.

「ループ」と「Uターン」と「リバース」を同時に選択
・指示することが可能であり、その場合は、メモリ21
に記憶した外部音の波形サンプルデータを逆方向に読み
出した後、順方向に折返して読み出すことを繰り返す。
It is possible to select and instruct "loop", "U-turn" and "reverse" at the same time, in which case the memory 21
After reading out the waveform sample data of the external sound stored in the memory in the backward direction, the process repeats the process of reading it back in the forward direction.

これを称して「Uターン・リバース・ループ」という。This is called a "U-turn reverse loop."

上述のような演奏モードの一覧が第3図に示されている
。演奏モードは8個あり、各モードを記号M1〜M8で
区別する。左欄は、モード名を示し、これは上述の名称
に対応している。従って、各モードが選択される条件は
上述から明らかであろう。なお、「ノーマル」モードM
1はメモリ21に記憶した外部音の波形サンプルデータ
を順方向に1回だけ読み出すモードであり、特別のモー
ドM2〜M8が選択されていないときこの「ノーマル」
モードとなる。右欄は、各モードにおけるメモリ21か
らの波形サンプルデータの読出し状悪を模式的に示した
ものであり、矢印の方向が読出しの順方向又は逆方向の
別を示している。「ループ」に関連するモードM3.M
5.M6.M8では、図示のような読出しが繰返される
。順方向読出しにおける起点は所定のスタートアドレス
であり、終点は所定のエンドアドレスである。逆に。
A list of performance modes as described above is shown in FIG. There are eight performance modes, and each mode is distinguished by symbols M1 to M8. The left column shows the mode name, which corresponds to the names mentioned above. Therefore, the conditions under which each mode is selected will be clear from the above description. In addition, "Normal" mode M
1 is a mode in which the external sound waveform sample data stored in the memory 21 is read out only once in the forward direction, and this "normal" mode is selected when no special modes M2 to M8 are selected.
mode. The right column schematically shows the readout condition of the waveform sample data from the memory 21 in each mode, and the direction of the arrow indicates whether the readout is forward or backward. Mode M3 related to “loop”. M
5. M6. At M8, reading as shown is repeated. The starting point in forward reading is a predetermined start address, and the ending point is a predetermined end address. vice versa.

逆方向読出しにおける起点はエンドアドレスであり、終
点はスタートアドレスである。
The starting point in backward reading is the end address, and the ending point is the start address.

このスタートアドレスとエンドアドレスが、順方向又は
逆方向読出しにおける起点又は終点を指示する基準アド
レスとなっている。この実施例では、一方の基準アドレ
スつまりスタートアドレスは、常に所定の初期アドレス
(例えばアドレス0)に固定されており、他方の基準ア
ドレスつまりエンドアドレスがサンプリングされた波形
データの最終のゼロクロスアドレスに対応して適宜変動
するようになっている。また、この基準アドレスつまり
エンドアドレスの値は演奏者によって適宜増減変更でき
るようになっている。なお、この実施例では、エンドア
ドレスの値の増減変更は、上述の「ループ」に関連する
モードM3.M5.M6゜M8のときに可能である。
The start address and end address serve as reference addresses that indicate the starting point or ending point in forward or backward reading. In this embodiment, one reference address, or start address, is always fixed at a predetermined initial address (for example, address 0), and the other reference address, or end address, corresponds to the final zero-crossing address of the sampled waveform data. It is designed to change as appropriate. Further, the value of this reference address, that is, the end address, can be increased or decreased as appropriate by the performer. In this embodiment, the value of the end address is increased or decreased in mode M3. M5. This is possible when M6° to M8.

サンプリング制御操作子群16において、上述のエンド
アドレスの増減変更を指示するために、増加スイッチI
NCと減少スイッチDECが設けられている。増加スイ
ッチINCの操作に応じてアドレス値が増加し、減少ス
イッチDECの操作に応じてアドレス値が減少する。こ
の実施例では、−例として、増加スイッチINCと減少
スイッチDECによるエンドアドレスの増減変更は、1
アドレス単位ではなく、複数のアドレスからなるブロッ
ク単位で行われるようになっている。
In the sampling control operator group 16, an increase switch I is used to instruct increase/decrease change of the above-mentioned end address.
NC and a reduction switch DEC are provided. The address value increases according to the operation of the increase switch INC, and the address value decreases according to the operation of the decrease switch DEC. In this embodiment, - As an example, the increase or decrease of the end address by the increment switch INC and the decrement switch DEC is 1
This is done not in units of addresses, but in units of blocks consisting of multiple addresses.

ここで、トーンジェネレータ部20内のデータメモリ2
1におけるアドレス構成の一例を第4図により説明する
。1音分の外部音の波形サンプルデータを記憶するアド
レスの全範囲はO〜15の16ブロツクからなり、1ブ
ロツクは256アドレスからなる。この全アドレス範囲
の先頭のアドレスがスタートアドレスであり、アドレス
値Oである。エンドアドレスは、サンプリングされた波
形データの最終のゼロクロスアドレスに対応して適宜変
動する。この実施例では、このエンドアドレスもブロッ
ク単位で決定されるようになっている。このエンドアド
レスの値が増加スイッチINCと減少スイッチDECの
操作に応じて増減変更される。
Here, the data memory 2 in the tone generator section 20
An example of the address structure in No. 1 will be explained with reference to FIG. The entire range of addresses for storing waveform sample data of external sound for one tone consists of 16 blocks from 0 to 15, and one block consists of 256 addresses. The first address of this entire address range is the start address, and has an address value of O. The end address changes as appropriate in response to the final zero-crossing address of the sampled waveform data. In this embodiment, this end address is also determined on a block-by-block basis. The value of this end address is increased or decreased according to the operation of the increase switch INC and decrease switch DEC.

サンプリング制御操作子群16に設けられたエコースイ
ッチECHOは、エコー効果を選択するためのものであ
る。ここでいうエコー効果とは、  ゛演奏モードを「
ループ」に自動的に設定し、かつ発生楽音の音量エンベ
ロープのレリース時間を自動的に長く(例えば最長に)
設定し、これにより、サンプリングされた波形データを
メモリ21から繰返し読み出し、読み出した波形データ
に対応する楽音信号の音量エンベロープを緩やかに減衰
させながら該楽音が繰返し発音されるようにすることで
ある。
An echo switch ECHO provided in the sampling control operator group 16 is for selecting an echo effect. The echo effect referred to here is when the performance mode is set to
Loop” and automatically lengthen the release time of the volume envelope of the generated musical note (for example, to the longest)
By this, sampled waveform data is repeatedly read out from a memory 21, and the musical tone is repeatedly sounded while gently attenuating the volume envelope of the musical tone signal corresponding to the read waveform data.

サンプリング制御操作子群16に設けられたオールキャ
ンセルスイッチCANSELは、サンプリングした波形
サンプルデータに関連して操作パネル部15で設定・選
択・変更・調整した各種のデータの全て又は所定のもの
を、キャンセルし、これらのデータの内容を最初にサン
プリングしたときの状態に戻すために操作されるもので
ある。
The all-cancel switch CANSEL provided in the sampling control operator group 16 cancels all or predetermined various data set, selected, changed, or adjusted on the operation panel section 15 in relation to the sampled waveform sample data. However, the contents of these data are manipulated to return them to the state they were in when they were first sampled.

つまり、サンプリングした波形サンプルデータに関連し
て編集した様々のデータの編集内容をキャンセルし、編
集前の初期状態に戻すためのものである。このように編
集内容をキャンセルして編集前の初期状態に戻せるよう
にすることにより、失敗をおそれることなく、自由な編
集を行うことができるようになり、サンプリングした波
形サンプルデータに関連する編集機能を向上させること
ができる。
In other words, it is for canceling the edited contents of various data edited in relation to the sampled waveform sample data and returning to the initial state before editing. By being able to cancel the edited content and return to the initial state before editing, it becomes possible to freely edit without fear of failure, and editing functions related to sampled waveform sample data are now available. can be improved.

操作パネル部15におけるエンベロープ制御操作子群1
7は、データメモリ21から読み出した波形サンプルデ
ータに付与する音量エンベロープ波形の特性を設定・制
御する操作子からなり、例えば、A、D、S、R,特性
を決定するアタック時間、ディケイ時間、サスティンレ
ベル、レリース時間を夫々設定・制御する操作子からな
る。
Envelope control operator group 1 in operation panel section 15
Reference numeral 7 includes operators for setting and controlling the characteristics of the volume envelope waveform to be applied to the waveform sample data read from the data memory 21, such as A, D, S, R, attack time, decay time, which determines the characteristics, It consists of operators that set and control the sustain level and release time, respectively.

操作パネル部15における効果制御操作子群18は、例
えば、ビブラート、トレモロ、リバーブ等の楽音効果の
設定・制御を行うための操作子からなる。
The effect control operator group 18 on the operation panel section 15 includes operators for setting and controlling musical sound effects such as vibrato, tremolo, and reverb, for example.

トーンジェネレータ部20は、マイクロフォン22を介
して外部から入力された音信号をサンプリングしてディ
ジタル波形サンプルデータに変換する機能と、サンプリ
ングされたディジタル波形サンプルデータをデータメモ
リ21に書き込む機能と、!I盤14での押鍵等に応じ
てデータメモリ21の波形サンプルデータを読み出す機
能と、読み出した波形サンプルデータの音量エンベロー
プを制御したり各種の楽音効果を付与する機能とを具え
ている。トーンジェネレータ部20から発生されたディ
ジタル楽音信号はアナログ変換された後、サウンドシス
テム23に与えられる。
The tone generator unit 20 has a function of sampling a sound signal input from the outside through a microphone 22 and converting it into digital waveform sample data, a function of writing the sampled digital waveform sample data into the data memory 21, and! It has a function of reading waveform sample data from the data memory 21 in response to key presses on the I board 14, and a function of controlling the volume envelope of the read waveform sample data and adding various musical sound effects. The digital musical tone signal generated from the tone generator section 20 is converted into an analog signal and then provided to the sound system 23.

タイマビープ回路24は、外部音のサンプリングを開始
するときに一定時間の間ビープ音を発生するための回路
である。ビープ音の発音時間は例えば300m5程度で
あり、サンプリングスイッチSMPLの操作に応じて発
音開始し、終了したときビープエンドパルスBPEND
を発生する。ビープエンドパルスBPENDに基づきト
ーンジェネレータ部20ではサンプリング動作を開始す
る。
The timer beep circuit 24 is a circuit for generating a beep sound for a certain period of time when sampling of external sound is started. The beep sound generation time is, for example, about 300 m5, and the sound starts in response to the operation of the sampling switch SMPL, and when it ends, the beep end pulse BPEND is generated.
occurs. Based on the beep end pulse BPEND, the tone generator section 20 starts a sampling operation.

@fi14における押鍵・離鍵検出のための鍵走査及び
発音割当て処理や、操作パネル部15におけるスイッチ
等の操作検出のための走査及び表示器等の点灯・消灯処
理や、トーンジェネレータ部20におけるサンプリング
データの書込み・読出し制御、など各種の処理がマイク
ロコンピュータ部によって実行される。
Key scanning and sound generation assignment processing for detecting key presses and key releases in @fi14, scanning for detecting operation of switches and the like on the operation panel section 15, and lighting/extinguishing processing for indicators, etc., and processing on the tone generator section 20. Various processes such as writing and reading control of sampling data are executed by the microcomputer section.

マイクロコンピュータ部によって実行される処理のうち
、この発明に関連する処理のフローチャートの一例が第
8図〜第19図に示されている。
Among the processes executed by the microcomputer unit, examples of flowcharts of processes related to the present invention are shown in FIGS. 8 to 19.

この処理に関連して使用されるデータ及びワーキングR
AM13内の記憶内容の一例が第5図に示されている。
Data and working R used in connection with this process
An example of the contents stored in AM13 is shown in FIG.

SMPFLGは、サンプリングフラグであり、通常のサ
ンプリングモードのとき1”となる。
SMPFLG is a sampling flag and becomes 1'' in normal sampling mode.

0VWFLGは、オーバーライドサンプリングフラグで
あり、オーバーライドモードのとき“1”となる。
0VWFLG is an override sampling flag and becomes "1" in override mode.

RVFLGは、リバースフラグであり、「リバース」の
演奏モードのとき1”となる。このフラグはリバースス
イッチRVR3がオンされる毎に1”から“0″に又は
“0”から“1″に反転する。
RVFLG is a reverse flag, and becomes 1 when in the "reverse" performance mode.This flag is reversed from 1 to 0 or from 0 to 1 every time the reverse switch RVR3 is turned on. do.

UTFLGは、Uターンフラグであり、「Uターン」の
演奏モードのとき“1”となる。このフラグはUターン
スイッチUTRNがオンされる毎に1”から“0”に又
は“O”から“1″に反転する。
UTFLG is a U-turn flag, and becomes "1" in the "U-turn" performance mode. This flag is inverted from 1 to 0 or from O to 1 every time the U-turn switch UTRN is turned on.

LPFLGは、ループフラグであり、「ループ」の演奏
モードのとき“1”となる、このフラグはループスイッ
チLOOPがオンされる毎に“1”から“0”に又は1
10”から“1″に反転する。
LPFLG is a loop flag, which becomes "1" in the "loop" performance mode. This flag changes from "1" to "0" or to "1" each time the loop switch LOOP is turned on.
10” is inverted to “1”.

ECFLGは、エコーフラグであり、エコー効果が選択
されたとき“1”となる。このフラグはエコースイッチ
ECHOがオンされる毎に“1″から“0”に又は“0
”から“1”に反転する。
ECFLG is an echo flag, and becomes "1" when an echo effect is selected. This flag changes from “1” to “0” or “0” every time the echo switch ECHO is turned on.
” to “1”.

LPFLGBは、ループフラグバッファであり、エコー
効果が選択されたときループフラグLPFLGの内容を
強制的に“1″にするために、その直前のループフラグ
LPFLGの内容を保存しておくためのものである。こ
のバッファLPFLGBに保存した内容は、エコー効果
が選択されなくなったときループフラグLPFLGに戻
される。
LPFLGB is a loop flag buffer, and is used to store the contents of the immediately preceding loop flag LPFLG in order to forcibly set the contents of the loop flag LPFLG to "1" when an echo effect is selected. be. The contents stored in this buffer LPFLGB are returned to the loop flag LPFLG when the echo effect is no longer selected.

NKEYは、ニューキーコードレジスタであり、新たに
押鍵又は離鍵された鍵のキーコードを記憶するものであ
る。
NKEY is a new key code register, which stores the key code of a newly pressed or released key.

KCODEは、キーコードレジスタであり、現在発音中
の楽音に対応するキーコードを記憶するものである。
KCODE is a key code register that stores the key code corresponding to the musical tone currently being produced.

ZCRADBは、ゼロクロスアドレスバッファであり、
外部からサンプリングした波形サンプルデータの最終の
ゼロクロスアドレスを記憶するものである。
ZCRADB is a zero-crossing address buffer,
It stores the final zero-crossing address of waveform sample data sampled externally.

LPADBは、エンドアドレスバッファであり、前述の
エンドアドレスを記憶するものである。
LPADB is an end address buffer that stores the aforementioned end address.

ATBはアタックタイムバッファ、DTBはディケイタ
イムバッファ、SLBはサスティンレベルバッファ、R
TBはレリースタイムバッファ、であり、エンベロープ
制御操作子群17で設定・制御されたアタック時間、デ
ィケイ時間、サスティンレベル、レリース時間のデータ
を夫々記憶するものである。
ATB is attack time buffer, DTB is decay time buffer, SLB is sustain level buffer, R
TB is a release time buffer, which stores data on the attack time, decay time, sustain level, and release time set and controlled by the envelope control operator group 17, respectively.

RTBUFは、レリースタイム保存バッファであり、エ
コー効果が選択されたときレリースタイムバッファRT
Bの内容を強制的に最長時間にするために、その直前の
レリースタイムバッファRTBの内容を保存しておくた
めのものである。このバッファRTBUFに保存した内
容は、エコー効果が選択されなくなったときレリースタ
イムバッファRTBに戻される。
RTBUF is the release time storage buffer, when the echo effect is selected the release time buffer RT
This is to save the immediately preceding contents of the release time buffer RTB in order to forcibly set the contents of B to the longest time. The contents saved in this buffer RTBUF are returned to the release time buffer RTB when the echo effect is no longer selected.

上述のようなレジスタ、フラグ、あるいはバッファのた
めの領域が、データ及びワーキングRAM13内に設け
られている。また、データ及びワーキングRAM13内
には、操作パネル部15における効果制御操作子群18
及びその他の操作子群19の操作検出データを記憶する
ための領域や、その他のデータ及びワーキング領域が設
けられている。
Areas are provided in the data and working RAM 13 for registers, flags, or buffers as described above. Also, in the data and working RAM 13, there is a group of effect control operators 18 in the operation panel section 15.
and other areas for storing operation detection data of the operator group 19, and other data and working areas.

トーンジェネレータ部20の詳細例は第6図に示されて
いる。
A detailed example of the tone generator section 20 is shown in FIG.

第6図のトーンジェネレータ部20において、データバ
ス25を介してマイクロコンピュータ部側とデータの授
受を行うために、インタフェース26が設けられている
。インタフェース26は、バッファレジスタを含むもの
である。マイクロコンピュータ部から与えられたデータ
はインタフェース26を介してトーンジェネレータ部2
0内の所定の回路に入力される。また、トーンジェネレ
ータ部20内の所定の回路から出力されたデータはイン
タフェース26及びデータバス25を介してマイクロコ
ンピュータ部に与えられる。
In the tone generator section 20 of FIG. 6, an interface 26 is provided to exchange data with the microcomputer section via the data bus 25. Interface 26 includes a buffer register. The data given from the microcomputer section is sent to the tone generator section 2 via the interface 26.
0 to a predetermined circuit. Furthermore, data output from a predetermined circuit within the tone generator section 20 is given to the microcomputer section via an interface 26 and a data bus 25.

トーンジェネレータ部20内の主要な回路について簡単
に説明すると、データメモリ21は前述した第4図のよ
うなアドレス構成からなるものであり、読み書き制御人
力R/Wに与えられる信号が“1″ならば読出しモード
となり、40″ならば書込みモードとなる。ADはアド
レス入力、DTはデータ入出力端子、である。
To briefly explain the main circuits in the tone generator section 20, the data memory 21 has an address structure as shown in FIG. If it is 40'', it is a read mode, and if it is 40'', it is a write mode. AD is an address input, and DT is a data input/output terminal.

マイクロフォン22でピックアップした外部音の信号は
アナログ/ディジタル変換器27でクロックパルスφ□
に従ってサンプリングされ、ディジタル変換される。デ
ィジタル変換された波形サンプルデータは、重ね書き用
の加算器28、ラッチ回路29、ゲート3oを介してデ
ータメモリ21のデータ入出力端子DTに与えられる。
The external sound signal picked up by the microphone 22 is converted into a clock pulse φ□ by the analog/digital converter 27.
sampled and digitally converted. The digitally converted waveform sample data is applied to the data input/output terminal DT of the data memory 21 via an adder 28 for overwriting, a latch circuit 29, and a gate 3o.

また、アナログ/ディジタル変換器27から出力された
波形サンプルデータは立上り検出回路31に与えられ、
音の立上りが検出される。音の立上り検出に応じてトリ
ガパルスTRGが出力される。このトリガパルスTRG
は、データメモリ21への波形サンプルデータの書込み
開始タイミングを指示する信号として使用される。
Further, the waveform sample data output from the analog/digital converter 27 is given to a rising edge detection circuit 31,
The rise of the sound is detected. A trigger pulse TRG is output in response to the detection of the rise of the sound. This trigger pulse TRG
is used as a signal to instruct the timing to start writing waveform sample data to the data memory 21.

また、アナログ/ディジタル変換器27から出力された
波形サンプルデータはゼロクロス検出回路32に与えら
れ、ゼロクロスが検出される。この実施例では、ゼロク
ロス検出回路32の構成の簡単化のために、波形サンプ
ルデータのレベルが所定のゼロ判定範囲(ゼロレベルの
±αの範囲:αは適宜のレベル)内に入ったか否かを検
出し、ゼロ判定範囲を外れたときゼロクロス検出パルス
ZCRを出力するようにしている。ゼロクロス検出パル
スZCRはゼロクロスアドレスラッチ回路33のラッチ
制御人力りに与えられ、ゼロクロスが検出されたときの
書込みアドレスを該ラッチ回路33にラッチする。ゼロ
クロス検出パルスZCRは波形サンプルデータのゼロク
ロス毎に発生されるので、ラッチ回路33のゼロクロス
アドレスは、何度も書き換えられ、最後にラッチ回路3
3に残されたデータが波形サンプルデータにおける最終
のゼロクロスアドレスである。
Further, the waveform sample data output from the analog/digital converter 27 is provided to a zero cross detection circuit 32, and zero crosses are detected. In this embodiment, in order to simplify the configuration of the zero cross detection circuit 32, the level of the waveform sample data is determined to be within a predetermined zero judgment range (range of ±α of the zero level, where α is an appropriate level). is detected, and a zero cross detection pulse ZCR is output when the zero determination range is exceeded. The zero-crossing detection pulse ZCR is applied to the latch control of the zero-crossing address latch circuit 33, and the write address when the zero-crossing is detected is latched into the latch circuit 33. Since the zero-crossing detection pulse ZCR is generated every zero-crossing of the waveform sample data, the zero-crossing address of the latch circuit 33 is rewritten many times, and finally, the zero-crossing address of the latch circuit 33 is
The data left at 3 is the final zero-crossing address in the waveform sample data.

ノートクロック発生回路34は、ニューキーコードNK
Cに応じてノードクロックパルスφ。を発生する。二ニ
ーキーコードNKCは、データメモリ21の書込みレー
ト又は読出しレートを指定するためのものであり、サン
プリング時において所定の基準音高(例えばA4音)の
キーコードに設定され、鍵盤14における押鍵に応じて
変更される。ノードクロックパルスφ。は分周器35で
1/2分周され、第7図に示すような互いに逆相のノー
トクロックパルスφ0.φ2が得られる。進相のノート
クロックパルスφ、がアンド回路36を介してアドレス
カウンタ37のカウントクロック人力CLKに入力され
る。遅相のノートクロックパルスφ2は、ナンド回路4
4を介してデータメモリ21の読み書き制御入力R/W
に加わり、その読み書きモードを制御する。
The note clock generation circuit 34 has a new key code NK.
Node clock pulse φ in response to C. occurs. The two-knee key code NKC is for specifying the write rate or read rate of the data memory 21, and is set to a key code of a predetermined standard pitch (for example, A4 tone) at the time of sampling, and is set to a key code of a predetermined standard pitch (for example, A4 note), and is used to specify the write rate or read rate of the data memory 21. will be changed accordingly. Node clock pulse φ. are divided by 1/2 by the frequency divider 35, and the note clock pulses φ0 . φ2 is obtained. The phase-advanced note clock pulse φ is inputted to the count clock CLK of the address counter 37 via the AND circuit 36. The slow phase note clock pulse φ2 is generated by the NAND circuit 4.
Read/write control input R/W of data memory 21 via 4
and control its read/write mode.

後述するように、サンプリングモード(通常のサンプリ
ングモード又はオーバーライド・サンプリングモード)
のとき、信号SMI又は5M2が1”となり、オア回路
45からナンド回路44に111 P+が与えられる。
As described below, the sampling mode (normal sampling mode or override sampling mode)
At this time, the signal SMI or 5M2 becomes 1'', and 111 P+ is applied from the OR circuit 45 to the NAND circuit 44.

これにより、ナンド回路44は遅相のノートクロックパ
ルスφ2を反転し、データメモリ21の読み書き制御人
力R/Wに加える。従って、データメモリ21は、進相
のノートクロックパルスφ、が“′1”のとき読出しモ
ード、遅相のノードクロックパルスφ2が1″のとき書
込みモードとなり、1アドレスの時間内で時分割的に読
み書きモードが切り換わる。これは、後述するオーバー
ライド・サンプリングモードのための処置である。なお
、各種の演奏モードM1〜M8のときは、信号SMI及
び8M2が“OF+であり、ナンド回路44は常に11
1 JPを出力し、データメモリ21は常時書込みモー
ドとなる。なお、1/2分周したノートクロックパルス
φ1をアドレスカウンタ37でカウントするので、ノー
トクロック発生回路34は目的のノートクロックパルス
φ1の2倍の周波数のノートクロックパルスφ。を発生
するものとする。
As a result, the NAND circuit 44 inverts the delayed note clock pulse φ2 and applies it to the manual read/write control R/W of the data memory 21. Therefore, the data memory 21 is in the read mode when the leading phase node clock pulse φ is "1", and in the write mode when the slow phase node clock pulse φ2 is 1", and is time-divisionally operated within the time of one address. The read/write mode is switched to "OF+", and the NAND circuit 44 is set to "OF+" in the various performance modes M1 to M8. always 11
1 JP is output, and the data memory 21 is always in write mode. Note that since the address counter 37 counts the note clock pulse φ1 whose frequency is divided by 2, the note clock generation circuit 34 generates the note clock pulse φ with twice the frequency of the target note clock pulse φ1. shall occur.

アドレスカウンタ37は、データメモリ21の読み書き
アドレスを指定するアドレス信号を発生するもので、プ
リセット制御入力PRに加わるプリセットパルスPRP
に応じてプリセットデータ人力PRDに加わるプリセッ
トデータをプリセットし、このプリセット値を起点とし
てカウントクロック人力CLKに加わるノートクロック
パルスφ□のカウントを行う。アドレスカウンタ37は
、アップ/ダウンカウンタであり、方向指示信号DIR
が“1″のときアップカウント、(l OHのときダウ
ンカウントを行う。
The address counter 37 generates an address signal specifying a read/write address of the data memory 21, and is a preset pulse PRP applied to the preset control input PR.
The preset data added to the preset data human power PRD is preset according to the preset data, and the note clock pulse φ□ added to the count clock human power CLK is counted using this preset value as a starting point. The address counter 37 is an up/down counter and has a direction indication signal DIR.
When is "1", it counts up, and when (l OH) it counts down.

アドレスカウンタ37の出力はデータメモリ21のアド
レス入力ADに加わると共に比較器38に加わり、更に
上位4ビツトがゼロクロスアドレスラッチ回路33に入
力される。アドレス信号は、12ビツトからなり、上位
4ビツトでO〜15の各ブロックを識別し、下位8ビツ
トで1ブロツク内の256アドレスを識別する。ゼロク
ロスアドレスラッチ回路33にアドレス信号の上位4ビ
ツトがラッチされることにより、ゼロクロスアドレスは
ブロック単位で検出されることになる。ラッチ回路33
にラッチされたゼロクロスアドレスデータZCRADは
、インタフェース26を介してマイクロコンピュータ部
に供給される。
The output of the address counter 37 is applied to the address input AD of the data memory 21 and also to the comparator 38, and the higher 4 bits are input to the zero-cross address latch circuit 33. The address signal consists of 12 bits, the upper 4 bits identify each block from 0 to 15, and the lower 8 bits identify 256 addresses within one block. By latching the upper four bits of the address signal in the zero-crossing address latch circuit 33, the zero-crossing address is detected in block units. Latch circuit 33
The zero-crossing address data ZCRAD latched in is supplied to the microcomputer section via the interface 26.

比較器38は、アドレスカウンタ37から発生されたア
ドレス信号が終点に到達したかを検出するためのもので
ある。アドレス信号が順方向に進んでいる(つまり増加
している)ときは、セレクタ39によりエンドアドレス
データLPADを選択して終点アドレスレジスタ40に
記憶し、このレジスタ40に記憶されたエンドアドレス
データLPADとアドレス信号とを比較器38で比較し
、両者が一致したときエンドパルスENDを出力する(
′°1”にする)。一方、アドレス信号が逆方向に進ん
でいる(つまり減少している)ときは、セレクタ39に
より全12ビツトが“0″である初期アドレスデータを
選択して終点アドレスレジスタ40に記憶し、このレジ
スタ40に記憶された初期アドレスデータとアドレス信
号とを比較器38で比較し、両者が一致したときエンド
パルスENDを出力する。
Comparator 38 is for detecting whether the address signal generated from address counter 37 has reached the end point. When the address signal is progressing in the forward direction (that is, increasing), the end address data LPAD is selected by the selector 39 and stored in the end point address register 40, and the end address data LPAD stored in this register 40 and The comparator 38 compares the address signal with the address signal, and when the two match, outputs the end pulse END (
On the other hand, when the address signal is progressing in the opposite direction (that is, decreasing), the selector 39 selects the initial address data in which all 12 bits are "0" and sets the end point address. The initial address data stored in the register 40 and the address signal are compared by the comparator 38, and when the two match, an end pulse END is output.

セレクタ39の選択制御は、T−フリップフロップ41
から出力される方向指示信号DIRに応じてなされる。
Selection control of the selector 39 is performed by a T-flip-flop 41
This is done in response to the direction instruction signal DIR output from the.

この方向指示信号DIRが“′1″のときつまりアドレ
スの順方向変化を指示しているとき、B入力を選択し、
60″のときつまりアドレスの逆方向変化を指示してい
るときは、六入力を選択する。
When this direction instruction signal DIR is "'1", that is, when it instructs a forward change of the address, the B input is selected,
60'', that is, when instructing a reverse change in address, select 6 inputs.

なお、後述するようにエンドアドレスデータLPADは
、前述のゼロクロスアドレスデータZCRADに基づい
てマイクロコンピュータ部から与えられるもので、ブロ
ック単位でエンドアドレスを指示する4ビツトのデータ
である。このブロック単位のエンドアドレスデータLP
ADをアドレス単位に直すために、その下位に8ビツト
のオール“1°′を追加したものをセレクタ39のB入
力に与えるようにしている。これにより、エンドアドレ
スデータLPADは、ブロック内の最終アドレスを示す
ものとされる。
As will be described later, the end address data LPAD is given from the microcomputer section based on the above-mentioned zero-cross address data ZCRAD, and is 4-bit data that indicates the end address in units of blocks. This block unit end address data LP
In order to convert AD into an address unit, 8 bits of all "1°'" are added to the lower part of AD and the result is applied to the B input of the selector 39.As a result, the end address data LPAD is the last address in the block. It is assumed to indicate an address.

アドレスカウンタ37のプリセットデータ入力PRDに
はセレクタ42の出力が加わる。このセレクタ42は、
上述のセレクタ39とは反対に、方向指示信号DIRが
“1”のときつまりアドレスの順方向変化を指示すると
き、A入力に加わる全12ビツト“0″の初期アドレス
データを選択し u Q PIのときつまりアドレスの
逆方向変化を指示するときは、B入力に加わるエンドア
ドレスデータLPADを選択する。このエンドアドレス
データLPADもその下位に8ビツトのオールLL I
 I+を追加してブロック内の最終アドレスを示すもの
とされる。
The output of the selector 42 is added to the preset data input PRD of the address counter 37. This selector 42 is
Contrary to the selector 39 described above, when the direction instruction signal DIR is "1", that is, when instructing a forward change of the address, the initial address data of all 12 bits "0" applied to the A input is selected. In other words, when instructing a reverse change in address, end address data LPAD to be applied to the B input is selected. This end address data LPAD also has 8 bits of all LL I in its lower order.
I+ is added to indicate the final address within the block.

なお、終点アドレスレジスタ40は、アドレスカウンタ
37のプリセット制御入力PRに加わるプリセットパル
スPRPと同じパルスPRPにより、アドレスカウンタ
37のプリセットと同時に、セレクタ39からの終点ア
ドレスデータをロードする。
Note that the end point address register 40 loads the end point address data from the selector 39 at the same time as the address counter 37 is preset by the same pulse PRP as the preset pulse PRP applied to the preset control input PR of the address counter 37.

方向指示信号DIRを発生するT−フリップフロップ4
1は、サンプリングモードあるいは各種の演奏モードM
1〜M8に応じて後述するように制御される。
T-flip-flop 4 for generating direction indication signal DIR
1 is sampling mode or various performance modes M
1 to M8, as will be described later.

アドレスカウンタ37のプリセット制御を行うプリセッ
トパルスPRPも、サンプリングモードあるいは各種の
演奏モードM1〜M8に応じて後述するようにその発生
条件が制御される。
The generation conditions of the preset pulse PRP for presetting the address counter 37 are also controlled in accordance with the sampling mode or various performance modes M1 to M8, as will be described later.

アドレスカウンタ37のカウントクロック人力CLKに
ノートクロックパルスφ□を加える制御を行うアンド回
路36は、フリップフロップ43の出力信号に応じて制
御される。このフリップフロップ43の状態は、サンプ
リングモードあるいは各種の演奏モードM1〜M8に応
じて後述するように制御される。
The AND circuit 36 which controls adding the note clock pulse φ□ to the count clock CLK of the address counter 37 is controlled in accordance with the output signal of the flip-flop 43. The state of this flip-flop 43 is controlled as described later in accordance with the sampling mode or various performance modes M1 to M8.

データメモリ21から読み出された波形サンプルデータ
は、乗算器46に入力され、エンベロープ発生器47か
ら与えられるエンベロープ波形データが乗算される。エ
ンベロープ発生器47は、マイクロコンピュータ部から
インタフェース26を介して与えられるアタックタイム
データAT、ディケイタイムデータDT、サスティンレ
ベルデータSL、レリースタイムデータRTに基づき設
定される形状のエンベロープ波形を、キーオンパルスK
ONP、0KONP及びキーオフパルスKOFP、0K
OFPに応答して発生する。周知のように、キーオンパ
ルスに応答してアタック、ディケイ、サスティンと続く
エンベロープ波形部分を発生し、キーオフパルスに応答
してレリース部分を発生する。ここで、一方のキーオン
パルスKONP及びキーオフパルスKOFPは、通常の
押鍵操作に基づいて与えられるものであり、もう一方の
キーオンパルス0KONP及びキーオフパルス0KOF
Fは、サンプリングしたばかりの楽音をオウム返しに即
座に自動的に発音するために与えられるものである。
The waveform sample data read from the data memory 21 is input to a multiplier 46 and multiplied by envelope waveform data provided from an envelope generator 47. The envelope generator 47 generates an envelope waveform having a shape set based on attack time data AT, decay time data DT, sustain level data SL, and release time data RT given from the microcomputer section via the interface 26, and generates it as a key-on pulse K.
ONP, 0KONP and key-off pulse KOFP, 0K
Occurs in response to OFP. As is well known, an envelope waveform portion consisting of attack, decay, and sustain is generated in response to a key-on pulse, and a release portion is generated in response to a key-off pulse. Here, one key-on pulse KONP and key-off pulse KOFP are given based on normal key pressing operations, and the other key-on pulse 0KONP and key-off pulse 0KOF
F is given to immediately and automatically generate the musical tone that has just been sampled.

乗算器46で音量エンベロープが制御された波形サンプ
ルデータは、ディジタル/アナログ変換器48に与えら
れてアナログ信号に変換され、最終的にサウンドシステ
ム23に与えられる。また、効果回路49にも適宜与え
られ、リバーブ、トレモロ、ビブラート等の楽音効果が
付与される。
The waveform sample data whose volume envelope has been controlled by the multiplier 46 is supplied to the digital/analog converter 48, where it is converted into an analog signal, and finally supplied to the sound system 23. It is also applied to an effect circuit 49 as appropriate to provide musical sound effects such as reverb, tremolo, and vibrato.

次に、第8図〜第19図を参照して、この電子楽器の各
種動作について説明する。
Next, various operations of this electronic musical instrument will be explained with reference to FIGS. 8 to 19.

第8図は、メインルーチンを示すもので、まず、キース
キャン処理においては、鍵盤14の各鍵を走査し、押鍵
及び離鍵を検出する。この検出に応じて所定の処理を実
行する。ここでは、新たな押鍵を検出したとき第12図
のキーオンイベントルーチンを実行し、新たな離鍵を検
出したとき第13図のキーオフイベントルーチンを実行
する。
FIG. 8 shows the main routine. First, in the key scan process, each key on the keyboard 14 is scanned to detect key presses and key releases. A predetermined process is executed in response to this detection. Here, when a new key press is detected, the key-on event routine shown in FIG. 12 is executed, and when a new key release is detected, the key-off event routine shown in FIG. 13 is executed.

サンプリング制御操作子スキャン処理においては、サン
プリング制御操作子群16の各スイッチの操作を検出し
、この検出に応じて所定の処理を実行する。ここでは、
サンプリングスイッチSMPLがオフからオンに変わっ
たことを検出したとき第9図のサンプリングイベントル
ーチンを実行し、オーバーライドスイッチ0VRWRが
オフからオンに変わったことを検出したとき第10図の
オーバーライドイベントルーチンを実行する。また、サ
ンプリング開始時のビープ音が終了したときにタイマビ
ープ回路24から与えられるビープエンドパルスBPE
NDを検出し、この検出に応じて第11図のタイマビー
プエンドイベントルーチンを実行する。また、外部音の
サンプリングが終了したときに後述のようにトーンジェ
ネレータ部20から与えられるサンプリングエンド信号
SMPENDに応じて、第14図のサンプリングエンド
イベントルーチンを実行する。また、リバーススイッチ
RVR3,UターンスイッチUTRN、ループスイッチ
LOOP、エコースイッチECHO1増加スイッチlN
C1減少スイッチDEC、オールキャンセルスイッチC
ANSELが夫々オフからオンに変わったことを検出し
たとき、第15図〜第19図のリバースイベントルーチ
ン、Uターンイベントルーチン、ループイベントルーチ
ン、エコーイベントルーチン、増加イベントルーチン、
減少イベントルーチン、オールキャンセルイベントルー
チンを夫々実行する。
In the sampling control operator scanning process, the operation of each switch of the sampling control operator group 16 is detected, and a predetermined process is executed in response to this detection. here,
When it detects that the sampling switch SMPL has changed from off to on, the sampling event routine in Figure 9 is executed, and when it detects that the override switch 0VRWR has changed from off to on, the override event routine in Figure 10 is executed. do. Also, a beep end pulse BPE given from the timer beep circuit 24 when the beep sound at the start of sampling ends.
ND is detected, and in response to this detection, the timer beep end event routine of FIG. 11 is executed. Furthermore, when sampling of the external sound is completed, the sampling end event routine shown in FIG. 14 is executed in response to a sampling end signal SMPEND given from the tone generator section 20 as described later. Also, reverse switch RVR3, U-turn switch UTRN, loop switch LOOP, echo switch ECHO1 increase switch IN
C1 reduction switch DEC, all cancel switch C
When it is detected that ANSEL changes from off to on, the reverse event routine, U-turn event routine, loop event routine, echo event routine, increase event routine, and
A decrease event routine and an all cancel event routine are executed respectively.

エンベロープ制御操作子スキャン処理においては、エン
ベロープ制御操作子群17の各操作子の操作を検出し、
この検出に応じて所定の処理を実行する。ここでは、エ
ンベロープ制御操作子群17で設定・制御されたアタッ
ク時間、ディケイ時間、サスティンレベル、レリース時
間のデータをアタックタイムバッファATB、ディケイ
タイムバッファDTB、サスティンレベルバッファSL
B、レリースタイムバッファRTBに夫々記憶する。
In the envelope control operator scanning process, the operation of each operator of the envelope control operator group 17 is detected,
A predetermined process is executed in response to this detection. Here, the attack time, decay time, sustain level, and release time data set and controlled by the envelope control operator group 17 are stored in the attack time buffer ATB, decay time buffer DTB, and sustain level buffer SL.
B and release time buffer RTB.

効果制御操作子スキャン処理においては、効果制御操作
子群18の各操作子の操作を検出し、この検出に応じて
所定の処理を実行する。その他の操作子スキャン処理に
おいては、その他の操作子群19の各操作子の操作を検
出し、この検出に応じて所定の処理を実行する。
In the effect control operator scanning process, the operation of each operator of the effect control operator group 18 is detected, and a predetermined process is executed in response to this detection. In the other operator scanning process, the operation of each operator of the other operator group 19 is detected, and a predetermined process is executed in response to this detection.

通常のサンプリング動作 通常のサンプリング動作を行う場合はまずサンプリング
スイッチSMPLをオンする。これに応じて第9図のサ
ンプリングイベントルーチンがスタートする。ここでは
サンプリングフラグSMPFLGを“1″にセットし、
他のフラグ0VWFLG−ECFLGを“0″にリセッ
トする(ステップ101)。次に、ニューキーコードN
KCとして所定の基準音高(例えばA4音)のキーコー
ドをトーンジェネレータ部20に送出する(ステップ1
02)。そして、タイマビープ回路24にスタートトリ
ガ信号を送出し、ビープ音を発音させる(ステップ10
3)。なお、フローチャートではトーンジェネレータ部
20をTGで示す。
Normal Sampling Operation When performing a normal sampling operation, the sampling switch SMPL is first turned on. In response to this, the sampling event routine of FIG. 9 starts. Here, the sampling flag SMPFLG is set to "1",
Other flags 0VWFLG-ECFLG are reset to "0" (step 101). Next, new key code N
A key code of a predetermined reference pitch (for example, A4 pitch) is sent to the tone generator section 20 as KC (step 1).
02). Then, a start trigger signal is sent to the timer beep circuit 24 to generate a beep sound (step 10).
3). In addition, in the flowchart, the tone generator section 20 is indicated by TG.

タイマビープ回路24では、このスタートトリガ信号に
応じて所定時間(例えば300m5)ビープ音を発音し
、この時間が経過すると、ビープエンドパルスBPEN
Dを出力する。
The timer beep circuit 24 emits a beep sound for a predetermined period of time (for example, 300 m5) in response to this start trigger signal, and when this time elapses, a beep end pulse BPEN is emitted.
Output D.

第6図を参照すると、トーンジェネレータ部20゛では
、与えられたニューキーコードNKCに応じてノートク
ロック発生回路34から基準音高(A4音)のノードク
ロックパルスφ。を発生する。ビープ音の発音時間中に
、このノートクロックパルスが安定して発生されるよう
になり、サンプリングの準備が完了する。このように、
ビープ音はサンプリングの4gB完了を知らせる役割を
果す。
Referring to FIG. 6, the tone generator unit 20' generates a node clock pulse φ of the reference pitch (A4 tone) from the note clock generation circuit 34 in response to the given new key code NKC. occurs. This note clock pulse is now stably generated during the beep sound generation time, and preparation for sampling is completed. in this way,
The beep serves to signal completion of 4gB sampling.

ビープエンドパルスE3PENDに応じて第11図のル
ーチンがスタートする。ステップ104では、サンプリ
ングフラグSMPFLGが1″であることを確認して、
ステップ105に行く。ここでは、通常のサンプリング
モードに対応するサンプリングモード信号SMIを11
1 IIにし、オーバーライド・サンプリングモードに
対応するサンプリングモード信号SM2をLI OII
にして、トーンジェネレータ部20に送出する。
The routine of FIG. 11 starts in response to the beep end pulse E3PEND. In step 104, it is confirmed that the sampling flag SMPFLG is 1'', and
Go to step 105. Here, the sampling mode signal SMI corresponding to the normal sampling mode is set to 11.
1 II and set the sampling mode signal SM2 corresponding to the override sampling mode to LI OII.
and sends it to the tone generator section 20.

次のステップ106では、トーンジェネレータ部2oに
与えるべきデータを次のように初期設定してトーンジェ
ネレータ部20に送出する。演奏モードの各種モード信
号M1〜M8を110 J+にする。エンドアドレスデ
ータLPADを最終ブロックを示す値「15」に設定す
る。アタックタイムデータAT、ディケイタイムデータ
DT、レリースタイムデータRTを夫々rOJに設定し
、サスティンレベルデータSLを最大値rMAXJに設
定する。これは、キーオンからキーオフまで一定のエン
ベロープレベルを維持する直接キーイング型のエンベロ
ープ波形を設定するものである。この直接キーイング型
のエンベロープ波形では、サンプリングしたままの音量
レベルで楽音が発音される。
In the next step 106, data to be given to the tone generator section 2o is initialized as follows and sent to the tone generator section 20. The various mode signals M1 to M8 of the performance mode are set to 110 J+. The end address data LPAD is set to the value "15" indicating the final block. Attack time data AT, decay time data DT, and release time data RT are each set to rOJ, and sustain level data SL is set to maximum value rMAXJ. This sets a direct keying type envelope waveform that maintains a constant envelope level from key-on to key-off. With this direct keying type envelope waveform, musical tones are produced at the same volume level as sampled.

次のステップ107では、マイクロコンピュータ部内の
アタックタイムバッファATB、ディケイタイムバッフ
ァDTB、サスティンレベルバッファSLB、レリース
タイムバッファRTBの内容も上記と同様に直接キーイ
ング型のエンベロープ波形を設定するものに初期設定す
る。次のステップ108では、各種楽音効果用のデータ
も所定の内容に初期設定する。
In the next step 107, the contents of the attack time buffer ATB, decay time buffer DTB, sustain level buffer SLB, and release time buffer RTB in the microcomputer section are also initialized to those for setting a direct keying type envelope waveform in the same way as above. . In the next step 108, data for various musical tone effects are also initialized to predetermined contents.

一方、演奏者はビープ音を確認してがら、マイクロッオ
ン22により所望の外部音をピックアップする。第6図
を参照すると、前述の通り、ピックアップされた信号は
アナログ/ディジタル変換器27でサンプリングされ、
ディジタル変換される。ディジタル変換された波形サン
プルデータの音の立上りが立上り検出回路31で検出さ
れ、音の立上り検出に応じてトリガパルスTRGが出力
される。このトリガパルスTRGは、アンド回路5oに
入力される。アンド回路5oの他の入力には、サンプリ
ングモード信号SMIの“′1″がオア回路51を介し
て与えられており、トリガパルスT、RGに同期してア
ンド回路50の出力が“1”となり、これがサンプリン
グスタートパルスSMPSTとしてオア回路52を介し
てフリップフロップ43のセット人力Sに与えられると
共に、オア回路53を介してプリセットパルスPRPと
してアドレスカウンタ37のプリセット制御入力PRに
与えられ、かつ終点アドレスレジスタ40に与えられる
。また、サンプリングスタートパルスSMPSTがオア
回路54を介して、サンプリングモード信号SMIがオ
ア回路55を介して、夫々アンド回路56に入力され、
該アンド回路56の出力111 IIがT−フリップフ
ロップ41のセット入力Sに与えられる。
Meanwhile, the performer picks up a desired external sound using the micro-on 22 while checking the beep sound. Referring to FIG. 6, as mentioned above, the picked up signal is sampled by the analog/digital converter 27,
converted to digital. A rising edge of the sound of the digitally converted waveform sample data is detected by a rising edge detection circuit 31, and a trigger pulse TRG is output in response to the detection of the rising edge of the sound. This trigger pulse TRG is input to the AND circuit 5o. "'1" of the sampling mode signal SMI is applied to the other input of the AND circuit 5o via the OR circuit 51, and the output of the AND circuit 50 becomes "1" in synchronization with the trigger pulses T and RG. , which is applied as a sampling start pulse SMPST to the set input S of the flip-flop 43 via the OR circuit 52, and is applied to the preset control input PR of the address counter 37 via the OR circuit 53 as a preset pulse PRP, and is also applied to the end point address. applied to register 40. Further, the sampling start pulse SMPST is inputted to the AND circuit 56 via the OR circuit 54, and the sampling mode signal SMI is inputted to the AND circuit 56 via the OR circuit 55.
The output 111 II of the AND circuit 56 is applied to the set input S of the T-flip-flop 41.

これにより、T−フリップフロップ41から出力される
方向指示信号DIRがl(171となり、セレクタ42
で初期アドレス(オール110 II )を選択してア
ドレスカウンタ37にプリセットし、セレクタ39では
最終ブロックを示すエンドアドレスLPADを選択して
終点アドレスレジスタ40にロードし、アドレスカウン
タ37はアップカウントに設定される。そして、フリッ
プフロップ43のセット出力“1”によりアンド回路3
6が可能化され、A4音に対応するレートのノートクロ
ックパルスφ、がアドレスカウンタ37に入力される。
As a result, the direction indicating signal DIR output from the T-flip-flop 41 becomes l (171), and the selector 42
The selector 39 selects the initial address (all 110 II) and presets it in the address counter 37. The selector 39 selects the end address LPAD indicating the final block and loads it into the end point address register 40, and the address counter 37 is set to count up. Ru. Then, by the set output "1" of the flip-flop 43, the AND circuit 3
6 is enabled, and a note clock pulse φ, at a rate corresponding to the A4 tone, is input to the address counter 37.

こうして、トリガパルスTRGの発生に応じて、アドレ
スカウンタ37、がA4音に対応するレートのノートク
ロックパルスφ、のアップカウントを開始し、その発生
アドレス信号は、初期アドレス(オール″0”)を起点
とし、エンドアドレスLPADを終点として順方向に変
化する。
In this way, in response to the generation of the trigger pulse TRG, the address counter 37 starts counting up the note clock pulse φ at a rate corresponding to the A4 tone, and the generated address signal is set to the initial address (all "0"). It changes in the forward direction with the start point as the end point and the end address LPAD as the end point.

一方、サンプリングモード信号SMIが“1″となるこ
とにより、前述の通り、ノートクロックパルスφ2を反
転した信号がナンド回路44からデータメモリ21の読
み書き制御人力R/Wに加えられ、データメモリ21は
、進相のノートクロックパルスφ□が“1”のとき読出
しモード、遅相のノートクロックパルスφ2が“1″の
とき書込みモードとなり、1アドレスの時間内で時分割
的に読み書きモードが切り換わる。しかし、サンプリン
グモード信号SMIが“1”のときは、サンプリングモ
ード信号SM2が“0″であり、データメモリ21の読
出し信号を加算器28に加えるためのゲート57が閉じ
られており、かつ、エンベロープ発生器47からエンベ
ロープ波形データを発生させるためのキーオンパルスも
発生されていない(従って乗算器46はデータメモリ2
1の読出し信号をカットする)ので、読出しは意味を持
たない。
On the other hand, when the sampling mode signal SMI becomes "1", a signal obtained by inverting the note clock pulse φ2 is applied from the NAND circuit 44 to the read/write control manual R/W of the data memory 21, and the data memory 21 , when the leading phase note clock pulse φ□ is “1”, it is the read mode, and when the slow phase note clock pulse φ2 is “1”, it is the write mode, and the read/write mode is switched in a time-division manner within the time of one address. . However, when the sampling mode signal SMI is "1", the sampling mode signal SM2 is "0", the gate 57 for adding the read signal of the data memory 21 to the adder 28 is closed, and the envelope A key-on pulse for generating envelope waveform data from the generator 47 is also not generated (therefore, the multiplier 46 is not connected to the data memory 2).
1 readout signal is cut), the readout has no meaning.

アナログ/ディジタル変換器27から出力される外部音
のディジタル波形サンプルデータは、加算器28の一方
入力に与えられる。加算器28の他方入力には上記ゲー
ト57の出力が与えられるが、これは上述のように′0
”であるので、外部音のディジタル波形サンプルデータ
は加算器28を単に通過してラッチ回路29に与えられ
る。ラッチ回路29は、書込みタイミングであるノート
クロックパルスφ2のタイミングでラッチ動作を行う。
Digital waveform sample data of the external sound output from the analog/digital converter 27 is applied to one input of the adder 28 . The output of the gate 57 is given to the other input of the adder 28, which is '0' as described above.
'', the digital waveform sample data of the external sound simply passes through the adder 28 and is applied to the latch circuit 29. The latch circuit 29 performs a latch operation at the timing of the note clock pulse φ2, which is the write timing.

なお、アナログ/ディジタル変換器27におけるアナロ
グ/ディジタル変換動作は、進相のノートクロックパル
スφ1のタイミングで行う。
Note that the analog/digital conversion operation in the analog/digital converter 27 is performed at the timing of the advanced note clock pulse φ1.

ラッチ回路29の出力はゲート30を通過してデータメ
モリ21のデータ入力DTに入る。ゲート30は、サン
プリングモード信号SMI及び8M2を入力したオア回
路58の出力とノートクロックパルスφ2とが入力され
るアンド回路59の出力によって制御される。これによ
り、ゲート30は、サンプリングモード(通常のサンプ
リングモード及びオーバーライド・サンプリングモード
)であって且つノートグロックパルスφ2が“1″のと
きのみ、つまり書込みタイミングにおいてのみ、開放さ
れる。なお、各種の演奏モードM1〜M8のときは、信
号SMI及び3M2が“Ol+であり、アンド回路59
は常に“O”を出力し、ゲート30は常に閉じているの
で、もし、マイクロフォン22によりノイズをピックア
ップしたとしてもここでカットすることができる。
The output of latch circuit 29 passes through gate 30 and enters data input DT of data memory 21. The gate 30 is controlled by the output of an OR circuit 58 which receives the sampling mode signal SMI and 8M2, and the output of an AND circuit 59 which receives the note clock pulse φ2. As a result, the gate 30 is opened only in the sampling mode (normal sampling mode and override sampling mode) and only when the note clock pulse φ2 is "1", that is, only at the write timing. In addition, in various performance modes M1 to M8, the signals SMI and 3M2 are "Ol+", and the AND circuit 59
always outputs "O" and the gate 30 is always closed, so even if noise is picked up by the microphone 22, it can be cut here.

こうして、外部音のディジタル波形サンプルデータが、
書込みタイミングにおいてデータメモリ21のデータ入
力DTに入力され、アドレスカウンタ37から与えられ
るアドレス信号によって指定されたアドレスに書き込ま
れる。
In this way, the digital waveform sample data of the external sound is
At the write timing, the data is input to the data input DT of the data memory 21 and written to the address specified by the address signal given from the address counter 37.

一方、アナログ/ディジタル変換器27から出力された
波形サンプルデータはゼロクロス検出回路32に与えら
れ、前述のように、書込み動作に並行して、ゼロクロス
が検出される。ゼロクロス検出回路32から出力された
ゼロクロス検出パルスZCHに応じて、ゼロクロスが検
出されたときの書込みアドレスがゼロクロスアドレスラ
ッチ回路33にラッチされる。ゼロクロス検出パルスZ
CRは波形サンプルデータのゼロクロス毎に発生される
ので、ラッチ回路33のゼロクロスアドレスは、何度も
書き換えられ、最後にラッチ回路33に残されたデータ
が波形サンプルデータにおける最終のゼロクロスアドレ
スである。従って、サンプリングが終了したときには、
最終のゼロクロスアドレスが既に判明している。
On the other hand, the waveform sample data output from the analog/digital converter 27 is given to the zero cross detection circuit 32, and as described above, zero crosses are detected in parallel with the write operation. In response to the zero-crossing detection pulse ZCH output from the zero-crossing detection circuit 32, the write address when the zero-crossing is detected is latched in the zero-crossing address latch circuit 33. Zero cross detection pulse Z
Since the CR is generated for each zero cross of the waveform sample data, the zero cross address of the latch circuit 33 is rewritten many times, and the data finally left in the latch circuit 33 is the final zero cross address of the waveform sample data. Therefore, when the sampling is finished,
The final zero-crossing address is already known.

書込みアドレスがメモリ21の最終アドレスまで到達す
ると、終点アドレスレジスタ40に記憶されている最終
ブロックの最終アドレスを示すエンドアドレスLPAD
と一致し、比較器38からエンドパルスENDが出力さ
れる。このエンドパルスENDはアンド回路60に入力
される。このアンド回路60は、オア回路61からのサ
ンプリングモード信号SMIの1”により可能化されて
いるので、エンドパルスENDに対応する111 II
がアンド回路60からオア回路62.遅延フリップフロ
ップ63を介してフリップフロップ43のリセット人力
Rに入力される。遅延フリップフロップ63はノートク
ロックパルスφ、の1クロック分の遅延を行う。これに
より、カウント値が最終アドレスに到達した1クロツク
後に、フリップフロップ43がリセットされ、アンド回
路36が閉じて、ノートクロックパルスφ、が止められ
る。
When the write address reaches the final address of the memory 21, the end address LPAD indicating the final address of the final block stored in the end point address register 40 is
The comparator 38 outputs an end pulse END. This end pulse END is input to the AND circuit 60. Since this AND circuit 60 is enabled by 1'' of the sampling mode signal SMI from the OR circuit 61, 111 II corresponding to the end pulse END
is from the AND circuit 60 to the OR circuit 62. It is input to the reset manual power R of the flip-flop 43 via the delay flip-flop 63. The delay flip-flop 63 delays the note clock pulse φ by one clock. As a result, one clock after the count value reaches the final address, the flip-flop 43 is reset, the AND circuit 36 is closed, and the note clock pulse φ is stopped.

こうして、アドレスカウンタ37のカウントが停止する
。因に、このときは、プリセット操作が行われないので
、カウント値は最終値に保持される。
In this way, the address counter 37 stops counting. Incidentally, since no preset operation is performed at this time, the count value is held at the final value.

このように、サンプリングモード時は、データメモリ2
1の初期アドレスから最終アドレスまで全アドレス範囲
にわたって書込みが行われる。
In this way, in the sampling mode, data memory 2
Writing is performed over the entire address range from the initial address of 1 to the final address.

エンドパルスENDはアンド回路64に与えられる。こ
のアンド回路64は、オア回路65からのサンプリング
モード信号SMIの“1”により可能化されているので
、エンドパルスENDに対応するII I IIがアン
ド回路64から出力され、これがサンプリングエンド信
号SMPENDとしてマイクロコンピュータ部に送出さ
れる。また、ゼロクロスアドレスラッチ回路33にラッ
チされたゼロクロスアドレスデータZCRADもマイク
ロコンピュータ部に送出される。
End pulse END is applied to AND circuit 64. Since this AND circuit 64 is enabled by "1" of the sampling mode signal SMI from the OR circuit 65, II II II corresponding to the end pulse END is output from the AND circuit 64, and this is used as the sampling end signal SMPEND. Sent to the microcomputer section. Further, the zero-cross address data ZCRAD latched in the zero-cross address latch circuit 33 is also sent to the microcomputer section.

オーバーライド・サンプリング 先にサンプリングした音に重ねて新たにサンプリングし
た音の波形サンプルデータを書込む場合は、オーバーラ
イドスイッチ0VRWRをオンする。これに応じて、第
10図のオーバーライドイベントルーチンが実行される
。ここでは、まず、オーバーライドフラグ0VWFLG
を1”にセットし、他のフラグを11011にリセット
する(ステップ101a)、これに続くステップ102
a。
If you want to write waveform sample data of a newly sampled sound superimposed on the sampled sound at the override sampling destination, turn on the override switch 0VRWR. In response, the override event routine of FIG. 10 is executed. Here, first, override flag 0VWFLG
is set to 1'' and other flags are reset to 11011 (step 101a), followed by step 102.
a.

103aの処理は第9図のステップ102,103と同
じであり、ニューキーコードNKCとしてA4音のキー
コードを設定し、タイマビープ音を発音する。
The process at step 103a is the same as steps 102 and 103 in FIG. 9, and an A4 key code is set as the new key code NKC, and a timer beep sound is generated.

ビープ音が終了すると、前述と同様に第11図のタイマ
ビープエンドイベントルーチンが実行される。ここで、
ステップ104では、サンプリングプラグSMPFLG
が0”なので、NOと判断され、ステップ109に行く
。ステップ109では、サンプリングモード信号SMI
を0”にセットし、3M2を111 Itにセットして
、トーンジェネレータ部20に送出する。その後、通常
のサンプリングモードと同様に、ステップ106.10
7.108の処理を実行する。
When the beep ends, the timer beep end event routine of FIG. 11 is executed as described above. here,
In step 104, the sampling plug SMPFLG
is 0'', the determination is NO and the process goes to step 109. In step 109, the sampling mode signal SMI
is set to 0", 3M2 is set to 111 It, and sent to the tone generator section 20. Thereafter, in the same way as in the normal sampling mode, step 106.10
7. Execute the process in 108.

このように、オーバーライド・サンプリングモードの場
合は、サンプリングモード信号SMIがO”、3M2が
111 IIとなる点が通常のサンプリングモードの場
合と反対であり、その他は通常のサンプリングモードの
場合と同様である。
In this way, the override sampling mode is opposite to the normal sampling mode in that the sampling mode signal SMI is O" and 3M2 is 111 II, and the other points are the same as in the normal sampling mode. be.

第6図を参照すると、サンプリングモード信号S M 
2が、S M 1と同様に、オア回路45.51.55
.58.61.65に入力されており、この点に関して
は、トーンジェネレータ部20は前述の通常のサンプリ
ングモードの場合と全く同様に動作する。異なる点は、
信号SM2がゲート57の制御入力に与えられているこ
とである。これにより、データメモリ21から読み出さ
れた波形サンプルデータが加算器28に入力され、アナ
ログ/ディジタル変換器27から与えられる新たな波形
サンプルデータと加算される。
Referring to FIG. 6, the sampling mode signal S M
2 is the OR circuit 45.51.55 as in S M 1.
.. 58, 61, and 65, and in this respect, the tone generator section 20 operates in exactly the same manner as in the normal sampling mode described above. The difference is that
The signal SM2 is applied to the control input of the gate 57. As a result, the waveform sample data read from the data memory 21 is input to the adder 28 and added to new waveform sample data provided from the analog/digital converter 27.

すなわち、前述の通り、オア回路45からナンド回路4
4に与えられる信号S M 2のII I T)により
、ノートクロックパルスφ2を反転した信号がデータメ
モリ21の読み書き制御人力R/Wに与えられ、該デー
タメモリ21は1アドレス時間の前半で読出しモードと
なり、後半で書込みモードとなる。1アドレス時間の前
半でデータメモリ21から読み出された先にサンプリン
グされた音の波形サンプルデータが、信号SM2の11
1 IIによって開放されたゲート57を通って加算器
28に入力され、新たにサンプリングされた外部音の波
形サンプルデータと加算される。加算された波形サンプ
ルデータは、前述と同様に、1アドレス時間の後半のタ
イミング(φ2がr+ 111のタイミング)でラッチ
回路29にラッチされ、ゲート30を介してデータメモ
リ21に入力され、該当アドレスに書き込まれる。
That is, as mentioned above, from the OR circuit 45 to the NAND circuit 4
4, a signal obtained by inverting the note clock pulse φ2 is applied to the read/write control manual R/W of the data memory 21, and the data memory 21 is read out in the first half of one address time. mode, and then enters write mode in the latter half. The waveform sample data of the previously sampled sound read from the data memory 21 in the first half of one address time is 11 of the signal SM2.
The signal is input to the adder 28 through the gate 57 opened by 1 II, and is added to the newly sampled external sound waveform sample data. As described above, the added waveform sample data is latched by the latch circuit 29 at the timing in the second half of one address time (timing when φ2 is r+111), inputted to the data memory 21 via the gate 30, and stored at the corresponding address. will be written to.

こうして、既にサンプリングしである音の波形サンプル
データに新たにサンプリングした音の波形サンプルデー
タを加算したデータがメモリ21に書き込まれる。前述
と同様に、書込みアドレスが最終アドレスに到達すると
、アンド回路64からサンプリングエンド信号SMPE
NDが発生される。また、前述と同様に、新たにサンプ
リングした波形サンプルデータの最後のゼロクロスアド
レスがラッチ回路33に最終的にラッチされる。
In this way, data obtained by adding the waveform sample data of the newly sampled sound to the waveform sample data of the already sampled sound is written into the memory 21. As described above, when the write address reaches the final address, the AND circuit 64 outputs the sampling end signal SMPE.
ND is generated. Further, as described above, the last zero-crossing address of the newly sampled waveform sample data is finally latched by the latch circuit 33.

サンプリングレートの変 通常のサンプリングモード及びオーバーライド・サンプ
リングモードにおける波形サンプルデータの書込みレー
トは基準音高(A4音)に限らず、鍵盤14の押鍵によ
って適宜変更することができる。
Changing the Sampling Rate The writing rate of waveform sample data in the normal sampling mode and the override sampling mode is not limited to the standard pitch (A4 tone), and can be changed as appropriate by pressing keys on the keyboard 14.

サンプリングレートとして設定したい所望の音高の鍵を
鍵盤14で押鍵すると、マイクロコンピュータ部におい
て新たな押鍵が検出され、第12図のキーオンイベント
ルーチンが実行される。ステップ110では、新たな押
鍵に係るキーコードをニューキーコードレジスタNKE
Yに記憶する。
When a key of a desired pitch desired to be set as the sampling rate is pressed on the keyboard 14, the microcomputer section detects the new pressed key and executes the key-on event routine shown in FIG. 12. In step 110, the key code related to the new key press is stored in the new key code register NKE.
Store in Y.

次のステップ111では、通常のサンプリングフラグS
MPFLG又はオーバーライド・サンプリングフラグ0
VWFLGが“1′″であるかを調べる。YESつまり
どちらかのサンプリングモードであれば、ステップ11
2に行き、ニューキーコードレジスタNKEYの内容を
ニューキーコードNKCとしてトーンジェネレータ部2
0に送出する。これに基づき、トーンジェネレータ部2
0のノートクロック発生回路34から発生されるノード
クロックパルスφ。(つまりφ1.φ2)が、鍵盤14
で指定された音高に対応するものとなる。
In the next step 111, the normal sampling flag S
MPFLG or override sampling flag 0
Check whether VWFLG is "1'". If YES, that is, either sampling mode, step 11
2, and set the contents of the new key code register NKEY as the new key code NKC to the tone generator section 2.
Send to 0. Based on this, the tone generator section 2
The node clock pulse φ generated from the note clock generation circuit 34 of 0. (that is, φ1.φ2) is the keyboard 14
It corresponds to the pitch specified by .

こうして、サンプリングレートを所望の音高に対応する
ものに変更してから、所望の外部音をサンプリングする
ようにしてもよい。
In this way, the desired external sound may be sampled after changing the sampling rate to one corresponding to the desired pitch.

オーバーライド・サンプリングの使用例演奏者の望みに
応じて様々な重ね書きの態様が可能であるが、−例とし
て、次のようなハーモニーサンプリングについて説明す
る。
Example of Use of Override Sampling Various overwriting modes are possible depending on the wishes of the performer, but as an example, the following harmony sampling will be explained.

例えば、Cメジャー和音の場合、まず、サンプ ・リン
グレートをC4音に設定し、所望の音色のC4行の音信
号を外部からサンプリングする。次に、サンプリングレ
ートをE4音に設定し、上記と同じC4音の音信号を外
部から入力してオーバーライド・サンプリングする。更
に次に、サンプリングレートを04音に設定し、上記と
同じC4音の音信号を外部から入力してオーバーライド
・サンプリングする。こうして、C4,E4.G4の音
高の3音の波形サンプルデータを加算したものがデータ
メモリ21に記憶される。この場合、押鍵に応じた所望
の音高のレートで該データメモリ21から波形サンプル
データを読み出せば、押圧鍵を根音とするメジャー和音
の楽音信号を発音することができる。
For example, in the case of a C major chord, first, the sampling rate is set to the C4 note, and a tone signal of the C4 line of the desired tone is sampled externally. Next, the sampling rate is set to E4 sound, and the same C4 sound signal as above is input from the outside for override sampling. Furthermore, the sampling rate is set to 04 tone, and the same C4 tone sound signal as above is input from the outside for override sampling. In this way, C4, E4. The sum of the waveform sample data of the three tones of pitch G4 is stored in the data memory 21. In this case, by reading out the waveform sample data from the data memory 21 at a desired pitch rate corresponding to the pressed key, a musical tone signal of a major chord having the pressed key as the root note can be generated.

このように、−例として、オーバーライド・サンプリン
グは簡単な押鍵操作で和音演奏を行おうとする場合に便
利である。例えば、鍵盤14を鍵域分割して一部の鍵域
で和音演奏を行おうとする場合など、和音演奏用鍵域の
押鍵に対応してデータメモリ21を読み出すようにすれ
ば、上述のように簡便な和音演奏が行える。
In this way, for example, override sampling is useful when attempting to play chords with simple key press operations. For example, when the keyboard 14 is divided into key ranges and a chord is to be played in a part of the key range, if the data memory 21 is read in response to a key press in the chord performance key range, the above-mentioned method can be used. You can play simple chords.

サンプリング終了時の処理 前述のように、外部音波形サンプルデータの書込み終了
時にサンプリングエンド信号SMPENDが発生される
と、第14図のサンプリングエンドイベントルーチンが
実行される。
Processing at the end of sampling As described above, when the sampling end signal SMPEND is generated at the end of writing the external sound waveform sample data, the sampling end event routine shown in FIG. 14 is executed.

ここでは、まず、トーンジェネレータ部20のゼロクロ
スアドレスラッチ回路33にラッチされているゼロクロ
スアドレスデータZCRADをマイクロコンピュータ部
内のゼロクロスアドレスバッファZCRADBに取り込
む(ステップ113)。
Here, first, the zero-crossing address data ZCRAD latched in the zero-crossing address latch circuit 33 of the tone generator section 20 is taken into the zero-crossing address buffer ZCRADB in the microcomputer section (step 113).

前述のように、このデータZCRADは、メモリ21に
おいてサンプリングした音の最後のサンプルデータを記
憶しているアドレスを示している。
As described above, this data ZCRAD indicates the address where the last sample data of the sampled sound is stored in the memory 21.

次のステップ114ではオーバーライド・サンプリング
フラグ0VWFLGが141 I?であるかを調べ、N
Oつまり通常のサンプリングモードのときは、ステップ
115に進み、ゼロクロスアドレスバッファZC:RA
DBの内容をエンドアドレスバッファLPADBに記憶
する。こうして、波形サンプルデータの最後のゼロクロ
スアドレスデータがエンドアドレスデータとしてバッフ
ァLPADBに記憶される。
In the next step 114, the override sampling flag 0VWFLG is set to 141 I? Check whether N
O, that is, in the normal sampling mode, the process proceeds to step 115, and the zero cross address buffer ZC:RA
Store the contents of DB in the end address buffer LPADB. In this way, the last zero-crossing address data of the waveform sample data is stored in the buffer LPADB as end address data.

次に、サンプリングフラグSMPFLG及び0VWFL
Gを共に“0″にリセットしくステップ116)、トー
ンジェネレータ部20に送出する信号の内容を、S M
 1と3M2が共に“0”、Mlが”1”、M2〜M8
を11011に夫々設定し、かつバッファLPADBの
内容をエンドアドレスデータLPADとして送出する(
ステップ117)。
Next, the sampling flag SMPFLG and 0VWFL
In step 116), the content of the signal sent to the tone generator unit 20 is set to S M
1 and 3M2 are both “0”, Ml is “1”, M2 to M8
are set to 11011, respectively, and the contents of buffer LPADB are sent as end address data LPAD (
Step 117).

そして、オウム返し発音用のキーオンパルス0KONP
をトーンジェネレータ部20に送出する(ステップ11
8)。このキーオンパルス0KONPは、サンプリング
した波形サンプルデータに対応する楽音をサンプリング
直後に即座に発音させ、その内容を確認するためのもの
である。
And key-on pulse 0KONP for parrot sound.
is sent to the tone generator section 20 (step 11
8). This key-on pulse 0KONP is used to immediately generate a musical tone corresponding to the sampled waveform sample data immediately after sampling, and to confirm its contents.

オ:ツむ二芝イ」−工之2り]じこグ薯1」1欠外1゜
オーバーライド・サンプリングが終了したときは、第1
4図のステップ114がYESと判定され、ステップ1
19に進み、現在のエンドアドレスバッファLPADB
の内容(これは前回サンプリングした波形サンプルデー
タの最終ゼロクロスアドレスを示している)がゼロクロ
スアドレスバッファZCRADBの内容(これは今回サ
ンプリングした波形サンプルデータの最終ゼロクロスア
ドレスを示している)より小さいかを調べる。YESな
らば、ステップ115に進み、バッファLPADBの内
容を今回の最終ゼロクロスアドレスデータに書き替える
。Noならば、ステップ115は行わずに、ステップ1
20を経由してステップ116に行く。
O: Tsumu Nishibai' - Kono 2ri] Jikogu 薯1'1 omission 1゜When override sampling is completed, the first
Step 114 in Figure 4 is determined to be YES, and Step 1
Proceed to step 19 and save the current end address buffer LPADB.
Check whether the contents of ZCRADB (which indicates the final zero-crossing address of the waveform sample data sampled last time) are smaller than the contents of the zero-crossing address buffer ZCRADB (which indicates the final zero-crossing address of the waveform sample data sampled this time). . If YES, the process advances to step 115 and the contents of the buffer LPADB are rewritten to the current final zero-crossing address data. If No, step 115 is not performed and step 1
20 to step 116.

こうして、オーバーライドの場合は、重ね書きされた複
数の外部音サンプリングデータのうちアドレス長の最も
長いデータの最終ゼロクロスアドレスがエンドアドレス
データとしてバッファLPADBに記憶される。
In this manner, in the case of overwriting, the final zero-crossing address of the data with the longest address length among the plurality of overwritten external sound sampling data is stored in the buffer LPADB as end address data.

なお、ステップ120では、エンドアドレスバッファL
PADBの内容をゼロクロスアドレスバッファZCRA
DBにセットする。これは、重ね書きされた外部音サン
プリングデータのうち今回サンプリングしたデータの最
終ゼロクロスアドレス(これは前ステップ119の段階
ではバッファZCRADBに記憶されている)は、前回
サンプリングしたデータの最終ゼロクロスアドレスより
も小さいことにより、重ね書きされたデータ全体から見
れば最終ゼロクロスアドレスを特定しているものとはい
えないものであることが判明したため、重ね書きされた
波形サンプルデータ全体から見て真の最終ゼロクロスア
ドレスを特定しているバッファLPADBの内容をバッ
ファZCRADBに記憶させるためである。後述するよ
うに、オールキャンセル処理のとき、ゼロクロスアドレ
スバッファZCRADBの内容をエンドアドレスバッフ
ァLPADBに戻し、該バッファLPADBの内容を真
の最終ゼロクロスアドレスに戻してやる必要があるため
、重ね書き波形における真の最終ゼロクロスアドレスを
バッファZCRADBに保存しておく必要がある。その
ために、ステップ120の処理が挿入されている。
Note that in step 120, the end address buffer L
Transfer the contents of PADB to zero-cross address buffer ZCRA
Set it in DB. This means that among the overwritten external sound sampling data, the final zero-crossing address of the currently sampled data (this was stored in the buffer ZCRADB at the previous step 119) is higher than the final zero-crossing address of the previously sampled data. Because of the small size, it was found that the final zero-crossing address could not be specified from the perspective of the entire overwritten data, so the true final zero-crossing address was determined from the perspective of the entire overwritten waveform sample data. This is to store the contents of the buffer LPADB specifying the buffer ZCRADB. As will be described later, during all cancel processing, it is necessary to return the contents of the zero-crossing address buffer ZCRADB to the end address buffer LPADB, and return the contents of the buffer LPADB to the true final zero-crossing address. It is necessary to save the final zero-crossing address in the buffer ZCRADB. For this purpose, the process of step 120 is inserted.

サンプリング直後の自動発音動作 外部からサンプリングした波形サンプルデータの書込み
が終了すると、前述のように、第14図のステップ11
8によりオウム返し発音用のキーオンパルス0KONP
が自動的に発生される。
Automatic sound generation operation immediately after sampling When writing of externally sampled waveform sample data is completed, step 11 in FIG. 14 is completed as described above.
Key-on pulse 0KONP for parrot sound by 8
is generated automatically.

第6図を参照すると、トーンジェネレータ部20では、
このオウム返し発音用キーオンパルス○KONPがオア
回路66を介してエンベロープ発生器47に入力される
と共に、オア回路52,53.54及びフリップフロッ
プ67のセット人力Sにも入力される。
Referring to FIG. 6, in the tone generator section 20,
This parrot sounding key-on pulse KONP is input to the envelope generator 47 via the OR circuit 66, and is also input to the OR circuits 52, 53, 54 and the set manual S of the flip-flop 67.

また、前述のサンプリングエンドイベントルーチン(第
14図)のステップ117の処理により、演奏モード信
号M1が“1”とされており、この信号M1はトーンジ
ェネレータ部20のオア回路55.61.68に入力さ
れる。
Furthermore, the performance mode signal M1 is set to "1" by the processing in step 117 of the sampling end event routine (FIG. 14) described above, and this signal M1 is sent to the OR circuits 55, 61, and 68 of the tone generator section 20. is input.

キーオンパルス0KONPと信号M1の“1″によりア
ンド回路56の条件が成立し、T−フリップフロップ4
1がセットされ、方向指示信号DIRが“1”となる。
The condition of the AND circuit 56 is established by the key-on pulse 0KONP and the signal M1 being "1", and the T-flip-flop 4
1 is set, and the direction indication signal DIR becomes "1".

また、キーオンパルス0KONPに応じてオア回路53
からプリセットパルスPRPが出力される。これにより
、セレクタ42で初期アドレスデータ(オール“0″)
が選択されてアドレスカウンタ37にプリセットされ、
セレクタ39でエンドアドレスデータLPADが選択さ
れてレジスタ40にロードされる。また、キーオンパル
ス0KONPに応じてフリップフロップ43がセットさ
れ、アドレスカウンタ37がカウント動作を開始する。
Also, in response to the key-on pulse 0KONP, the OR circuit 53
A preset pulse PRP is output from. As a result, the initial address data (all “0”) is set in the selector 42.
is selected and preset in the address counter 37,
End address data LPAD is selected by selector 39 and loaded into register 40 . Further, the flip-flop 43 is set in response to the key-on pulse 0KONP, and the address counter 37 starts counting operation.

この場合、ニューキーコードNKCは変更されていない
ので、書込み時と同じレートのノートクロックパルスφ
1がカウントされる。こうして、アドレスカウンタ37
は、アップカウントを行い、初期アドレスを起点とし、
エンドアドレスLPADを終点として順方向にアドレス
信号が変化する。
In this case, the new key code NKC has not been changed, so the note clock pulse φ has the same rate as when writing.
1 is counted. In this way, the address counter 37
performs an up-count, starting from the initial address,
The address signal changes in the forward direction with the end address LPAD as the end point.

データメモリ21は信号SMI、SM2が共に110 
++であることにより常時読出しモードとなる。
In the data memory 21, the signals SMI and SM2 are both 110.
By being ++, the mode is always read.

こうして、直前に書込んだばかりの波形サンプルデータ
が頭から読み出される。
In this way, the waveform sample data that was just written is read from the beginning.

一方、エンベロープ発生器47は、キーオンパルス0K
ONPに応じてエンベロープ波形データの発生を行う。
On the other hand, the envelope generator 47 generates a key-on pulse of 0K.
Envelope waveform data is generated according to ONP.

この場合、エンベロープ波形設定用の各データAT、D
T、SL、RTは、前述の通り、タイマビープエンドイ
ベントルーチン(第11図)のステップ106で直接キ
ーイング型のエンベロープ波形を設定する内容に初期設
定されているので、キーオンからキーオフまで一定レベ
ルのエンベロープ波形データが発生される。これにより
、サンプリングした波形サンプルデータがそのままの音
量レベルで発音される。こうして、サンプリングした外
部音信号の状態を即座に確認することができる。読出し
アドレスがエンドアドレスデータLPADに対応する値
になると、比較器38からエンドパルスENDが発生さ
れ、これがアンド回路69に与えられる。このアンド回
路69の他の入力にはキーオンパルス0KONPによっ
てセットされたフリップフロップ67の出力11117
が与えられているので、エンドパルスENDに応じてア
ンド回路69の出力が“1″となり、これがオウム返し
発音用のキーオフパルスOKOFPとしてオア回路70
を介してエンベロープ発生器47に与えられる。このよ
うに自動的に作成されたキーオフパルス0KOFFによ
って、エンベロープ発生器47から発生していた直接キ
ーイング型のエンベロープ波形データがレベル0に立下
がる。こうして、オウム返しの自動発音が終了する。な
お、フリップフロップ67は、キーオフパルス○KOF
Fを遅延フリップフロップ88で遅延した信号によりリ
セットされる。
In this case, each data AT, D for envelope waveform setting
As mentioned above, T, SL, and RT are initially set to the contents that set the direct keying type envelope waveform in step 106 of the timer beep end event routine (Figure 11), so they are set at a constant level from key-on to key-off. Envelope waveform data is generated. As a result, the sampled waveform sample data is produced at the same volume level. In this way, the state of the sampled external sound signal can be immediately confirmed. When the read address reaches a value corresponding to the end address data LPAD, the comparator 38 generates an end pulse END, which is applied to the AND circuit 69. The other input of this AND circuit 69 is the output 11117 of the flip-flop 67 set by the key-on pulse 0KONP.
is given, the output of the AND circuit 69 becomes "1" in response to the end pulse END, and this is sent to the OR circuit 70 as the key-off pulse OKOFP for parroting sound.
is applied to the envelope generator 47 via. Due to the key-off pulse 0KOFF automatically generated in this way, the direct keying type envelope waveform data generated from the envelope generator 47 falls to level 0. In this way, the automatic pronunciation of parrots ends. In addition, the flip-flop 67 is a key-off pulse ○KOF
It is reset by a signal obtained by delaying F by a delay flip-flop 88.

演奏モードの決定 前述の8種の演奏モードM1〜M8 (第3図参照)は
、各スイッチRVR8,UTRN、LOOPの操作に応
じて決定される。
Determination of performance mode The aforementioned eight performance modes M1 to M8 (see FIG. 3) are determined according to the operation of each switch RVR8, UTRN, and LOOP.

リバーススイッチRVR8がオンされると、第15図の
リバースオンイベントルーチンが実行され、リバースフ
ラグRVFLGを“O”から“1″に、又は′1″から
tg Oytに反転する(ステップ121)。次にステ
ップ124に行く。
When the reverse switch RVR8 is turned on, the reverse on event routine shown in FIG. 15 is executed, and the reverse flag RVFLG is inverted from "O" to "1" or from '1' to tg Oyt (step 121). Next Then go to step 124.

UターンスイッチUTRNがオンされると、第15図の
Uターンイベントルーチンが実行され、Uターンフラグ
UTFLGを“0”から11”に、又は′1″から1(
Oljに反転する(ステップ122)。次にステップ1
24に行く。
When the U-turn switch UTRN is turned on, the U-turn event routine shown in FIG. 15 is executed, and the U-turn flag UTFLG is changed from "0" to 11" or from '1" to 1 (
Olj (step 122). Next step 1
Go to 24th.

ループスイッチLOOPがオンされると、第15図のル
ープイベントルーチンが実行され、ループフラグLPF
LGを110 I+から“1″に、又は“′1”から0
′″に反転する(ステップ123)。
When the loop switch LOOP is turned on, the loop event routine shown in FIG. 15 is executed, and the loop flag LPF is
LG from 110 I+ to “1” or “’1” to 0
'' (step 123).

次にステップ124に行く。Next, go to step 124.

ステップ124では、上記各フラグRVFLG。In step 124, each of the above flags RVFLG.

UTFLG、LPFLGの内容に基づき、下記テーブル
に従って演奏モードM1〜M8を決定する。
Based on the contents of UTFLG and LPFLG, performance modes M1 to M8 are determined according to the table below.

第1表 次に、ステップ125では決定した演奏モードに応じた
内容のモード信号M1〜M8をトーンジェネレータ部2
0に送出する。すなわち、上記第1表に従って決定され
た1つのモード信号だけが111 I+であり、他のモ
ード信号は0”とされる。
Table 1 Next, in step 125, mode signals M1 to M8 having contents corresponding to the determined performance mode are sent to the tone generator section.
Send to 0. That is, only one mode signal determined according to Table 1 above is 111 I+, and the other mode signals are 0''.

演奏モード時のキーオン・オフ処理 データメモリ21に記憶した波形サンプルデータを読み
出して発音する場合は、鍵盤14で所望の鍵を押圧する
When reading out the waveform sample data stored in the key-on/off processing data memory 21 in the performance mode and generating a sound, a desired key on the keyboard 14 is pressed.

鍵が押圧されると、第12図のキーオンイベントルーチ
ンが実行され、押圧鍵のキーコードが二ニーキーコード
レジスタNKEYに取込まれる(ステップ110)。次
のステップ111では、演奏モード時にはサンプリング
フラグSMPFLG、0VWFLGが10″であるため
、NOと判断され、ステップ126に行く。ステップ1
26では、所定の発音割当て処理、この実施例では単音
優先発音方式を採用するものとしているため単音優先処
理、を行う0次のステップ127では、前ステップでの
単音優先処理結果に従って新たな押鍵に係る楽音を発音
する必要があるが否かを判断し、発音の必要がなければ
リターンに行くが、必要があればステップ128に行く
。単音優先基準としては周知のように高音優先や後着優
先などを適宜採用すればよい。ステップ128では、ニ
ューキーコードを発音割当てするために、レジスタNK
EYのニューキーコードをレジスタKCODEに記憶す
る。次のステップ129では、レジスタKCODEのキ
ーコード(つまり新たに発音割当てされた新たな押圧鍵
に係るキーコード)をニューキーコードNKCとしてト
ーンジェネレータ部20に送出する。更にステップ13
0ではキーオンパルスKONPをトーンジェネレータ部
20に送出する。
When a key is pressed, the key-on event routine shown in FIG. 12 is executed, and the key code of the pressed key is taken into the second key code register NKEY (step 110). In the next step 111, since the sampling flags SMPFLG and 0VWFLG are 10'' in the performance mode, the determination is NO and the process goes to step 126.Step 1
In step 26, a predetermined pronunciation assignment process is performed, which is a single note priority process since the single note priority pronunciation method is adopted in this embodiment.In the 0th order step 127, a new key press is performed according to the result of the single note priority process in the previous step. It is determined whether or not it is necessary to generate the musical tone related to the tone. If it is not necessary to generate the tone, the process goes to return, but if it is necessary, the process goes to step 128. As the single note priority criteria, as is well known, high note priority, late arrival priority, etc. may be adopted as appropriate. In step 128, register NK is used to allocate the new key code.
Store the new key code of EY in register KCODE. In the next step 129, the key code of the register KCODE (that is, the key code related to the newly pressed key to which the sound generation has been assigned) is sent to the tone generator section 20 as the new key code NKC. Further step 13
At 0, the key-on pulse KONP is sent to the tone generator section 20.

押圧されていた鍵が離されたときは第13図のキーオフ
イベントルーチンが実行される。新たに離鍵された鍵の
キーコードをニューキーコードレジスタNKEYに取込
み(ステップ131)、サンプ+J ’7グフラグSM
PFLG、0VWFLGが111”であるかを調べ(ス
テップ132)、N。
When the pressed key is released, the key-off event routine shown in FIG. 13 is executed. Load the key code of the newly released key into the new key code register NKEY (step 131), and set the SAMP+J'7 flag SM.
It is checked whether PFLG and 0VWFLG are 111" (step 132), and N.

であることつまり演奏モードであることを条件にステッ
プ133に進み、離鍵された鍵が現在発音中の鍵である
か(NKEY=KCODE)を調べる。そうであれば、
キーオフパルスKOFPをトーンジェネレータ部20に
送出する。
If this is the case, that is, the performance mode is set, the process proceeds to step 133, and it is checked whether the released key is the key currently being sounded (NKEY=KCODE). in that case,
A key-off pulse KOFP is sent to the tone generator section 20.

瑣】d1作 次に、各演奏モードM1〜M8におけるトーンジェレー
タ部20の動作について説明する。
4) d1 operation Next, the operation of the tone gelator section 20 in each of the performance modes M1 to M8 will be explained.

(各モード共通の説明) 鍵押圧に応じて、前述のようにして押圧鍵のキーコード
がニューキーコードNKCとして与えられ、これに基づ
き、ノートクロック発生回路34がら押圧鍵のノートク
ロックパルスφ。が発生される。また、キーオンパルス
KONPによりオア回路52を介してフリップフロップ
43がセットされ、アドレスカウンタ37のカウント入
力CLKに対してノードクロックパルスφ、が入力され
る状態となり、アドレス信号のカウントが開始される。
(Common explanation for each mode) In response to a key press, the key code of the pressed key is given as the new key code NKC as described above, and based on this, the note clock generation circuit 34 generates the note clock pulse φ of the pressed key. is generated. Further, the flip-flop 43 is set by the key-on pulse KONP via the OR circuit 52, and the node clock pulse φ is inputted to the count input CLK of the address counter 37, and counting of address signals is started.

T−フリップフロップ41から発生される方向指示信号
DIRの内容は、後述するように、各演奏モードに対応
する信号M1〜M8の状態に応じて異なる。これに応じ
てアドレスカウンタ37のカウント方向が決定され、ノ
ートクロックパルスφ1に応じてアドレス信号が変化し
、データメモリ21から波形サンプルデータが読み出さ
れる。
The contents of the direction indicating signal DIR generated from the T-flip-flop 41 differ depending on the states of the signals M1 to M8 corresponding to each performance mode, as will be described later. Accordingly, the counting direction of the address counter 37 is determined, the address signal changes according to the note clock pulse φ1, and the waveform sample data is read from the data memory 21.

また、前述のようにして鍵押圧及び離鍵に対応して発生
されるキーオンパルスKONPとキーオフパルスKOF
Pがオア回路66.70を介してエンベロープ発生器4
7に与えられ、これに応じてエンベロープ波形データが
発生され。データメモリ21から読み出された波形サン
プルデータの音量エンベロープがこのエンベロープ波形
データに応じて制御されて発音される。なお、エンベロ
ープ波形設定用の各データAT、DT、SL、RTはエ
ンベロープ操作子群17によって設定された内容となっ
ており、これに応じて設定される適宜の形状のエンベロ
ープ波形によって波形サンプルデータの音量エンベロー
プが制御される。
Furthermore, the key-on pulse KONP and key-off pulse KOF generated in response to key presses and key releases as described above are also used.
P passes through OR circuit 66.70 to envelope generator 4
7, and envelope waveform data is generated accordingly. The volume envelope of the waveform sample data read from the data memory 21 is controlled in accordance with this envelope waveform data, and the sound is generated. Note that the envelope waveform setting data AT, DT, SL, and RT are set by the envelope operator group 17, and the waveform sample data is controlled by the envelope waveform of an appropriate shape set accordingly. The volume envelope is controlled.

なお、比較器38からエンドパルスENDが発生された
ときの処理は、後述するように、各演奏モードに対応す
る信号M1〜M8の状態に応じて異なる。
Note that the processing performed when the end pulse END is generated from the comparator 38 differs depending on the state of the signals M1 to M8 corresponding to each performance mode, as will be described later.

(モードM1:通常演奏) モード信号M1が141 PIのときは、オア回路54
.55を介して与えられるキーオンパルスKONPと信
号M1の11”によってアンド回路56の条件が成立し
、T−フリップフロップ41がセットされ、方向指示信
号I0Rが“1”となる。
(Mode M1: Normal performance) When mode signal M1 is 141 PI, OR circuit 54
.. The condition of the AND circuit 56 is satisfied by the key-on pulse KONP applied through the input signal 55 and the signal M1 of 11'', the T-flip-flop 41 is set, and the direction indicating signal I0R becomes "1".

また、キーオンパルスKONPに応じてオア回路53か
らプリセットパルスPRPが発生される。
Further, a preset pulse PRP is generated from the OR circuit 53 in response to the key-on pulse KONP.

これにより、前述のオウム返し発音のときと同様に、初
期アドレス(オール“0″)を起点とし、エンドアドレ
スLPADを終点としてデータメモリ21から順方向に
1回だけ波形サンプルデータが読み出される。
As a result, the waveform sample data is read out from the data memory 21 only once in the forward direction starting from the initial address (all "0") and ending at the end address LPAD, as in the case of the above-mentioned parrot sound generation.

読出しアドレスがエンドアドレスLPADに到達すると
、比較器38からエンドパルスENDが発生される。こ
のエンドパルスENDは、アンド回路60,71,72
,73に加わる。アンド回路60の他の入力にはオア回
路61を介して信号M1の“1″が与えられており、エ
ンドパルスENDに応じてアンド回路60.オア回路6
2.遅延フリップフロップ63を介してフリップフロッ
プ43のリセット人力Rに′1″が与えられる。
When the read address reaches the end address LPAD, the comparator 38 generates an end pulse END. This end pulse END is generated by AND circuits 60, 71, 72.
, 73. "1" of the signal M1 is applied to the other input of the AND circuit 60 via the OR circuit 61, and in response to the end pulse END, the AND circuit 60. OR circuit 6
2. '1'' is applied to the reset input R of the flip-flop 43 via the delay flip-flop 63.

これにより、読出しアドレスがエンドアドレスLPAD
に到達したとき、アドレスカウンタ37のカウントが停
止する。他のアンド回路71,72゜73は、信号M1
が“1″のときは動作しない。
As a result, the read address becomes the end address LPAD.
When the address counter 37 reaches , the address counter 37 stops counting. The other AND circuits 71, 72, 73 receive the signal M1
It does not work when is "1".

こうして、演奏モードM1つまり通常のメモリ読出しモ
ードの場合は、データメモリ21を順方向に1回だけ読
み出して発音する。
In this manner, in the performance mode M1, that is, the normal memory read mode, the data memory 21 is read out only once in the forward direction to generate sound.

(モードM2:リバース) モード信号M2が111 fi+のときは、オア回路5
4.74を介して与えられるキーオンパルスKONPと
信号M2の“1”によってアンド回路75の条件が成立
し、T−フリップフロップ41のリセット人力Rに“1
”が与えられる。これにより、T−フリップフロップ4
1がリセットされ、方向指示信号DIRが0″となる。
(Mode M2: Reverse) When mode signal M2 is 111 fi+, OR circuit 5
The condition of the AND circuit 75 is established by the key-on pulse KONP given through the circuit 4.74 and the signal M2 being "1", and the reset force R of the T-flip-flop 41 is set to "1".
” is given. This gives T-flip-flop 4
1 is reset, and the direction indication signal DIR becomes 0''.

この方向指示信号DIRのN″OI+により、セレクタ
42では、エンドアドレスデータLPADを選択し、セ
レクター39では、初期アドレスデータ(オール“0”
)を選択する。また、キーオンパルスKONPに応じて
オア回路53からプリセットパルスPRPが発生される
。これにより、上述のモードM1のときとは逆に、エン
ドアドレスLPADを起点とし、初期アドレスを終点と
してデータメモリ21から逆方向に1回だけ波形サンプ
ルデータが読み出される。
The selector 42 selects the end address data LPAD in response to N″OI+ of the direction instruction signal DIR, and the selector 39 selects the initial address data (all “0”).
). Further, a preset pulse PRP is generated from the OR circuit 53 in response to the key-on pulse KONP. As a result, contrary to the mode M1 described above, waveform sample data is read out from the data memory 21 only once in the reverse direction starting from the end address LPAD and ending at the initial address.

読出しアドレスが初期アドレスに到達すると、比較器3
8からエンドパルスENDが発生される。
When the read address reaches the initial address, comparator 3
An end pulse END is generated from 8.

このエンドパルスENDは、アンド回路60,71.7
2,73に加わる。アンド回路60の他の入力にはオア
回路61を介して信号M2の′1″が与えられており、
エンドパルスENDに応じてアンド回路60.オア回路
62.遅延フリップフロップ63を介してフリップフロ
ップ43のリセット入力Rに“1″が与えられる。これ
により、読出しアドレスが初期アドレスに到達したとき
、アドレスカウンタ37のカウントが停止する。他のア
ンド回路71,72.73は、信号M2がR1)lのと
きは動作しない。
This end pulse END is generated by AND circuits 60, 71.7
Join 2,73. '1'' of the signal M2 is applied to the other input of the AND circuit 60 via the OR circuit 61.
AND circuit 60 in response to the end pulse END. OR circuit 62. “1” is applied to the reset input R of the flip-flop 43 via the delay flip-flop 63. Thereby, when the read address reaches the initial address, the address counter 37 stops counting. The other AND circuits 71, 72, and 73 do not operate when the signal M2 is R1)l.

こうして、演奏モードM2つまり「リバース」モードの
場合は、データメモリ21を逆方向に1回だけ読み出し
て発音する。
In this way, in the performance mode M2, that is, the "reverse" mode, the data memory 21 is read out only once in the reverse direction to generate sound.

(モードM3:ループ) モード信号M3が“1”のときは、オア回路54.55
を介して与えられるキーオンパルスKONPと信号M3
の“1′によってアンド回路56の条件が成立し、T−
フリップフロップ41がセットされ、方向指示信号DI
Rが“1″となる。
(Mode M3: Loop) When mode signal M3 is “1”, OR circuit 54.55
key-on pulse KONP and signal M3 given via
The condition of the AND circuit 56 is satisfied by “1” of T-
Flip-flop 41 is set and direction indication signal DI
R becomes "1".

また、キーオンパルスKONPに応じてオア回路53か
らプリセットパルスPRPが発生される。
Further, a preset pulse PRP is generated from the OR circuit 53 in response to the key-on pulse KONP.

これにより、モードM1のときと同様に、初期アドレス
を起点とし、エンドアドレスLPADを終点としてデー
タメモリ21から順方向に波形サンプルデータが読み出
される。
As a result, similarly to mode M1, waveform sample data is read out from the data memory 21 in the forward direction starting from the initial address and ending at the end address LPAD.

読出しアドレスがエンドアドレスLPADに到達すると
、比較器38からエンドパルスENDが発生される。こ
のエンドパルスENDは、アンド回路6oに加わるが、
オア回路61にはモード信号M3〜M8が与えられてい
ないので、エンドパルスE N Dによってはフリップ
フロップ43がリセットされず、アドレスカウンタ37
0カウントは停止しない。
When the read address reaches the end address LPAD, the comparator 38 generates an end pulse END. This end pulse END is applied to the AND circuit 6o,
Since mode signals M3 to M8 are not applied to the OR circuit 61, the flip-flop 43 is not reset by the end pulse END, and the address counter 37 is not reset.
0 count does not stop.

一方、信号Ml、M2の110 I+によりオア回路6
8の出力が41 Q Tl、これを反転したインバータ
76の出力が1”となり、エンドパルスENDに応じて
アンド回路72の出力が“1″となる。
On the other hand, due to 110 I+ of signals Ml and M2, OR circuit 6
The output of 8 is 41 Q Tl, the output of inverter 76 which inverts this becomes 1", and the output of AND circuit 72 becomes "1" in response to end pulse END.

アンド回路72の出力“1”はアンド回路77に加わる
。アンド回路77の他の入力であるインバータ83の出
力信号は信号M4.M7が“O”のときは常時“1″で
あるため、エンドパルスENDに応じてアンド回路77
の条件が成立し、アンド回路77の出力信号1411j
に応じて遅延フリップフロップ78、オア回路53を介
してプリセットパルスPRPが発生される。
The output “1” of the AND circuit 72 is applied to the AND circuit 77. The output signal of inverter 83, which is the other input of AND circuit 77, is signal M4. Since it is always "1" when M7 is "O", the AND circuit 77
The condition is satisfied, and the output signal 1411j of the AND circuit 77
A preset pulse PRP is generated via the delay flip-flop 78 and the OR circuit 53 in response to the delay flip-flop 78 and the OR circuit 53.

一方、エンドパルスENDはアンド回路71にも加わる
が、オア回路79の出力が′0″であるため、アンド回
路71の条件が成立せず、T−フリップフロップ41の
状態は変化しない。従って、方向指示信号DIRは′″
1″のまま変化せず、読出しアドレスがエンドアドレス
LPADに到達したときに上述のように発生されるプリ
セットパルスPRPに応じて、再び、アドレスカウンタ
37に初期アドレスデータ(オールLL O11)がプ
リセットされ、かつレジスタ40にはエンドアドレスデ
ータLPADがロードされる。また、アドレスカウンタ
37はアップカウントモードのままである。こうして、
初期アドレスを起点とし、エンドアドレスLPADを終
点としてデータメモリ21から再び順方向に波形サンプ
ルデータが読み出される。
On the other hand, the end pulse END is also applied to the AND circuit 71, but since the output of the OR circuit 79 is '0'', the condition of the AND circuit 71 is not satisfied and the state of the T-flip-flop 41 does not change. Therefore, The direction signal DIR is '''
The initial address data (all LL O11) is preset in the address counter 37 again in response to the preset pulse PRP generated as described above when the read address reaches the end address LPAD. , and the end address data LPAD is loaded into the register 40. Also, the address counter 37 remains in the up-count mode.
The waveform sample data is read out again from the data memory 21 in the forward direction starting from the initial address and ending at the end address LPAD.

こうして、「ループ」の場合は、データメモリ21の波
形サンプルデータが順方向に繰返し読み出され、サンプ
リングした外部音に基づく楽音が何回も繰返し発音され
るや押圧鍵を離鍵して音量制御エンベロープを減衰させ
ることにより、発音を終了することができる。
In this way, in the case of "loop", the waveform sample data in the data memory 21 is repeatedly read out in the forward direction, and when a musical tone based on the sampled external sound is repeatedly produced, the pressed key is released and the volume is controlled. The sound generation can be ended by attenuating the envelope.

(モードM4:Uターン) モード信号M4が“1”のときは、オア回路54.55
を介して与えられるキーオンパルスに○NPと信号M4
の1′1”によってアンド回路56の条件が成立し、T
−フリップフロップ41がセットされ、方向指示信号D
IRがLL I 11となる。
(Mode M4: U turn) When mode signal M4 is “1”, OR circuit 54.55
○NP and signal M4 to the key-on pulse given through
1'1'', the condition of the AND circuit 56 is established, and T
- Flip-flop 41 is set and direction indicating signal D
IR becomes LL I 11.

また、キーオンパルスKONPに応じてオア回路53か
らプリセットパルスPRPが発生される。
Further, a preset pulse PRP is generated from the OR circuit 53 in response to the key-on pulse KONP.

これにより、モードM1のときと同様に、初期アドレス
を起点とし、エンドアドレスLPADを終点としてデー
タメモリ21から順方向に波形サンプルデータが読み出
される。
As a result, similarly to mode M1, waveform sample data is read out from the data memory 21 in the forward direction starting from the initial address and ending at the end address LPAD.

読出しアドレスがエンドアドレスLPADに到達すると
、比較器38からエンドパルスENDが発生される。こ
のエンドパルスENDは、アンド回路60に加わるが、
オア回路61にはモード信号M3〜M8が与えられてい
ないので、アンド回路60の出力は“0”のままである
。また、エンドパルスENDは、アンド回路73に加わ
るが、この出力も“0″である。つまり、信号M4が1
111#のとき方向指示信号DIRが′41” (つま
りアドレスが順方向に変化している)ならば、該信号M
4と方向指示信号DIRの反転信号を入力したアンド回
路85の出力がII O”、信号M7と信号DIRが入
力されたアンド回路86の出力もrto”であり、オア
回路87からアンド回路73に加わる信号は“0”であ
り、アンド回路73の条件は成立しない。従って、アン
ド回路60,73の出力を入力したオア回路62の出力
は“0”であり、順方向のカウント動作中に発生される
エンドパルスENDによってはフリップフロップ43は
リセットされず、アドレスカウンタ37のカウントは停
止しない。
When the read address reaches the end address LPAD, the comparator 38 generates an end pulse END. This end pulse END is applied to the AND circuit 60, but
Since mode signals M3 to M8 are not applied to the OR circuit 61, the output of the AND circuit 60 remains at "0". Furthermore, the end pulse END is applied to the AND circuit 73, and its output is also "0". In other words, signal M4 is 1
111#, if the direction indication signal DIR is '41' (that is, the address is changing in the forward direction), the signal M
The output of the AND circuit 85 to which the signal M7 and the inverted signal of the direction instruction signal DIR are input is II O'', and the output of the AND circuit 86 to which the signal M7 and the signal DIR are input is also rto'', and from the OR circuit 87 to the AND circuit 73. The applied signal is "0", and the condition of the AND circuit 73 is not satisfied. Therefore, the output of the OR circuit 62 inputting the outputs of the AND circuits 60 and 73 is "0", and the flip-flop 43 is not reset by the end pulse END generated during forward counting operation, and the address counter 37 does not stop counting.

一方、信号Ml、M2の110 jlによりオア回路6
8の出力が11 Q PI、これを反転したインバータ
76の出力が“1″となり、エンドパルスENDに応じ
てアンド回路72の出力が“1″となる。
On the other hand, OR circuit 6 is activated by 110 jl of signals Ml and M2.
The output of the inverter 76 becomes "1", and the output of the AND circuit 72 becomes "1" in response to the end pulse END.

アンド回路72の出力It 199はアンド回路77に
加わる。信号M4が“′1″のとき方向指示信号DIR
が“”1”(つまりアドレスが順方向に変化している)
ならば、該信号M4と方向指示信号DIRの反転信号を
入力したアンド回路80の出力が410”、信号M7と
信号DIRが入力されたアンド回路81の出力も′0″
であり、両アンド回路80.81の出力を入力したオア
回路82の出力が“O″、これを反転したインバータ8
3の出力が11117であり、これを人力したアンド回
路77の出力が“1″となる。従って、アンド回路77
の出力信号II I Nに応じて遅延フリップフロップ
78、オア回路53を介してプリセットパルスPRPが
発生される。
The output It 199 of AND circuit 72 is applied to AND circuit 77. Direction indication signal DIR when signal M4 is "'1"
is “”1” (that is, the address is changing in the forward direction)
Then, the output of the AND circuit 80 to which the signal M4 and the inverted signal of the direction instruction signal DIR are input is 410'', and the output of the AND circuit 81 to which the signal M7 and the signal DIR are input is also '0''.
The output of the OR circuit 82 which inputs the outputs of the AND circuits 80 and 81 is "O", and the output of the inverter 8 which inverts this is "O".
The output of 3 is 11117, and the output of the AND circuit 77 which is manually generated is "1". Therefore, AND circuit 77
A preset pulse PRP is generated via the delay flip-flop 78 and the OR circuit 53 in response to the output signal II I N of.

一方、エンドパルスENDはアンド回路71にも加わり
、信号M4の“1″によりオア回路79の出力が“1”
であるため、アンド回路710条件が成立し、遅延フリ
ップフロップ84を介してT−フリップフロップ41の
カウント人力Cに′“1″が加わり、該T−フリップフ
ロップ41の状態が′1″から“′O″に反転する。従
って、方向指示信号DIRは“O”となる、これにより
、セレクタ42では、エンドアドレスデータLPADを
選択し、セレクタ39では、初期アドレスデータ(オー
ル“’ o ” )を選択し、上述のように発生したプ
リセットパルスPRPにより、これらがカウンタ37に
プリセットされ、また、レジスタ40にロードされる。
On the other hand, the end pulse END is also applied to the AND circuit 71, and the output of the OR circuit 79 becomes "1" due to the signal M4 being "1".
Therefore, the AND circuit 710 condition is satisfied, ``1'' is added to the count C of the T-flip-flop 41 via the delay flip-flop 84, and the state of the T-flip-flop 41 changes from ``1'' to ``. Therefore, the direction instruction signal DIR becomes "O". As a result, the selector 42 selects the end address data LPAD, and the selector 39 selects the initial address data (all "'o"). These are selected and preset into the counter 37 and loaded into the register 40 by the preset pulse PRP generated as described above.

こうして、前回とは逆に、エンドアドレスLPADを起
点とし、初期アドレスを終点としてデータメモリ21か
ら逆方向に波形サンプルデータが読み出される。
In this way, contrary to the previous time, waveform sample data is read out from the data memory 21 in the reverse direction starting from the end address LPAD and ending at the initial address.

読出しアドレスが初期アドレスに到達すると、比較器3
8からエンドパルスENDが発生される。
When the read address reaches the initial address, comparator 3
An end pulse END is generated from 8.

今度は、方向指示信号DIRは1(OIIであり、その
反転信号は“1″であり、アンド回路80と85の条件
が成立する。これにより、アンド回路73の出力が1″
となり、フリップフロップ43がリセットされる。これ
により、読出しアドレスが初期アドレス(オール110
0 )に到達したとき、アドレスカウンタ37のカウン
トが停止する。また、アンド回路80の出力“1″によ
りアンド回路77の出力が1(OIIとなり、プリセッ
トパルスPRPはもはや発生されない。
This time, the direction indication signal DIR is 1 (OII), and its inverted signal is "1", and the conditions of AND circuits 80 and 85 are satisfied. As a result, the output of AND circuit 73 is "1".
Therefore, the flip-flop 43 is reset. This changes the read address to the initial address (all 110
0 ), the address counter 37 stops counting. Further, due to the output "1" of the AND circuit 80, the output of the AND circuit 77 becomes 1 (OII), and the preset pulse PRP is no longer generated.

こうして、「Uターン」の場合は、データメモリ21の
波形サンプルデータを順方向に1回読み出した後、該デ
ータメモリ21の波形サンプルデータを逆方向に折返し
て1回読み出す。
In this manner, in the case of a "U turn", the waveform sample data in the data memory 21 is read out once in the forward direction, and then the waveform sample data in the data memory 21 is turned around in the reverse direction and read out once.

(モードM5:リバース・ループ) モード信号M5がII I IIのときは、オア回路5
4.74を介して与えられるキーオンパルスKONPと
信号MSの“′11′によってアンド回路75の条件が
成立し、T−フリップフロップ41のリセット人力Rに
1111+が与えられる。これにより、T−フリップフ
ロップ41がリセットされ、方向指示信号DIRがii
 Onとなる。この方向指示信号DIRの“O)lによ
り、上述のモードM2のときと同様に、エンドアドレス
LPADを起点とし、初期アドレスを終点としてデータ
メモリ21から逆方向に波形サンプルデータが読み出さ
れる。
(Mode M5: Reverse loop) When mode signal M5 is II I II, OR circuit 5
The condition of the AND circuit 75 is satisfied by the key-on pulse KONP applied through the signal 4.74 and the signal MS "'11", and 1111+ is applied to the reset force R of the T-flip-flop 41. As a result, the T-flip-flop 41 is reset and the direction indication signal DIR is set to ii.
It turns on. With this direction instruction signal DIR "O)l", waveform sample data is read out from the data memory 21 in the reverse direction starting from the end address LPAD and ending at the initial address, as in the above-described mode M2.

読出しアドレスが初期アドレスに到達すると、比較器3
8からエンドパルスENDが発生される。
When the read address reaches the initial address, comparator 3
An end pulse END is generated from 8.

モードM3 (ループ)のときと同様に、エンドパルス
ENDによってはフリップフロップ43がリセットされ
ず、アドレスカウンタ37のカウントは停止しない。ま
た、エンドパルスENDに応じてアンド回路77の条件
が成立し、プリセットパルスPRPが発生される。また
、エンドパルスENDが発生してもアンド回路71の条
件が成立せず、T−フリップフロップ41の状態は変化
しない。従って、方向指示信号DIRは“0′のまま変
化せず、読出しアドレスが初期アドレスに到達したとき
に上述のように発生されるプリセットパルスPRPに応
じて、再び、アドレスカウンタ37にエンドアドレスデ
ータLPADがプリセットされ、かつレジスタ40には
初期アドレスデータ(オール゛’O”)がロードされる
。また、アドレスカウンタ37はダウンカウントモード
のままである。こうして、エンドアドレスLPADを起
点とし、初期アドレスを終点としてデータメモリ21か
ら再び逆方向に波形サンプルデータが読み出される。
As in mode M3 (loop), the flip-flop 43 is not reset by the end pulse END, and the address counter 37 does not stop counting. Further, the condition of the AND circuit 77 is satisfied in response to the end pulse END, and the preset pulse PRP is generated. Further, even if the end pulse END occurs, the condition of the AND circuit 71 is not satisfied, and the state of the T-flip-flop 41 does not change. Therefore, the direction instruction signal DIR remains "0" and does not change, and in response to the preset pulse PRP generated as described above when the read address reaches the initial address, the end address data LPAD is sent to the address counter 37 again. is preset, and initial address data (all 'O's) is loaded into the register 40. Further, the address counter 37 remains in the down count mode. In this way, the waveform sample data is read out again from the data memory 21 in the reverse direction starting from the end address LPAD and ending at the initial address.

こうして、「リバース・ループ」の場合は、データメモ
リ21の波形サンプルデータが逆方向に繰返し読み出さ
れ、サンプリングした外部音を時間的に逆方向に並べ替
えた楽音が何回も繰返し発音される。押圧鍵を離鍵して
音量制御エンベロープを減衰させることにより、この発
音を終了することができる。
In this way, in the case of "reverse loop", the waveform sample data in the data memory 21 is repeatedly read out in the reverse direction, and musical tones obtained by rearranging the sampled external sounds in the reverse direction in time are repeatedly produced. . This sound generation can be ended by releasing the pressed key and attenuating the volume control envelope.

(モードM6:Uターン・ループ) モード信号M6が61”のときは、オア回路54.55
を介して与えられるキーオンパルスKONPと信号M6
の1”によってアンド回路56の条件が成立し、T−フ
リップフロップ41がセットされ、方向指示信号DIR
が1”となる。
(Mode M6: U-turn loop) When mode signal M6 is 61", OR circuit 54.55
key-on pulse KONP and signal M6 given via
1'', the condition of the AND circuit 56 is established, the T-flip-flop 41 is set, and the direction indication signal DIR
becomes 1”.

また、キーオンパルスKONPに応じてオア回路53か
らプリセットパルスPRPが発生される。
Further, a preset pulse PRP is generated from the OR circuit 53 in response to the key-on pulse KONP.

これにより、モードM1のときと同様に、初期アドレス
を起点とし、エンドアドレスLPADを終点としてデー
タメモリ21から順方向に波形サンプルデータが読み出
される。
As a result, similarly to mode M1, waveform sample data is read out from the data memory 21 in the forward direction starting from the initial address and ending at the end address LPAD.

読出しアドレスがエンドアドレスLPADに到達すると
、比較器38からエンドパルスENDが発生される。信
号M6が“1″のときは、アンド回路73の条件は成立
せず、エンドパルスENDによってはフリップフロップ
43はリセットされず、アドレスカウンタ37のカウン
トは停止しない。また、エンドパルスENDによってア
ンド回路77の条件が成立し、プリセットパルスPRP
が発生される。また、信号M6の“1”によりオア回路
79の出力が“1″であるため、エンドパルスENDに
よってアンド回路71の条件が成立し、遅延フリップフ
ロップ84を介してT−フリップフロップ410カウン
ト入力Cに“1″が加わり、該T−フリップフロップ4
1の状態が“1″から“0″に反転する。従って、方向
指示信号DIRは“0”となる。これにより、アドレス
カウンタ37のカウント方向が前回とは逆になり、エン
ドアドレスLPADを起点とし、初期アドレスを終点と
してデータメモリ21から逆方向に波形サンプルデータ
が読み出される。
When the read address reaches the end address LPAD, the comparator 38 generates an end pulse END. When the signal M6 is "1", the condition of the AND circuit 73 is not satisfied, the flip-flop 43 is not reset by the end pulse END, and the address counter 37 does not stop counting. Furthermore, the condition of the AND circuit 77 is satisfied by the end pulse END, and the preset pulse PRP
is generated. Furthermore, since the output of the OR circuit 79 is "1" due to the signal M6 being "1", the condition of the AND circuit 71 is satisfied due to the end pulse END, and the count input signal of the T-flip-flop 410 is passed through the delay flip-flop 84. "1" is added to the T-flip-flop 4.
The state of 1 is reversed from "1" to "0". Therefore, the direction indication signal DIR becomes "0". As a result, the counting direction of the address counter 37 is reversed from the previous time, and the waveform sample data is read out from the data memory 21 in the reverse direction starting from the end address LPAD and ending at the initial address.

読出しアドレスが初期アドレスに到達すると、エンドパ
ルスENDが発生され、前述と同様に、アンド回路71
と77の条件が成立し、プリセットパルスPRPが発生
されると共に、T−フリップフロップ41の状態が46
0 I+から1″に反転して方向指示信号DIRが“1
″となる。これにより、アドレスカウンタ37のカウン
ト方向が順方向に戻り、初期アドレスを起点とし、エン
ドアドレスLPADを終点としてデータメモリ21から
順方向に波形サンプルデータが読み出される0次に、エ
ンドパルスENDが発生されると、アドレスカウンタ3
7のカウント方向が逆方向にされる。
When the read address reaches the initial address, an end pulse END is generated, and as described above, the AND circuit 71
and 77 are satisfied, the preset pulse PRP is generated, and the state of the T-flip-flop 41 becomes 46.
0 I+ is inverted to 1'' and the direction indication signal DIR is “1”.
As a result, the counting direction of the address counter 37 returns to the forward direction, and the waveform sample data is read out from the data memory 21 in the forward direction starting from the initial address and ending at the end address LPAD. When END is generated, address counter 3
The counting direction of 7 is reversed.

以後、同様に、エンドパルスENDが発生される毎に、
Uターン読出しを繰返す。
Thereafter, similarly, every time the end pulse END is generated,
Repeat U-turn reading.

こうして、「Uターン・ループ」の場合は、データメモ
リ21の波形サンプルデータを順方向に読み出した後、
該データメモリ21の波形サンプルデータを逆方向に折
返して読み出すUターン読出しを何回も繰返す。
In this way, in the case of "U-turn loop", after reading the waveform sample data in the data memory 21 in the forward direction,
A U-turn reading operation in which the waveform sample data in the data memory 21 is read out by turning it in the opposite direction is repeated many times.

(モードM7:Uターン・リバース) モード信号M7が111 IPのときは、オア回路54
.74を介して与えられるキーオンパルスKONPと信
号M7の“12′によってアンド回路75の条件が成立
し、T−フリップフロップ41がリセットされ、方向指
示信号DIRが“0”となる。
(Mode M7: U-turn/reverse) When mode signal M7 is 111 IP, OR circuit 54
.. The condition of the AND circuit 75 is satisfied by the key-on pulse KONP applied via the signal M74 and "12'" of the signal M7, the T-flip-flop 41 is reset, and the direction indicating signal DIR becomes "0".

この方向指示信号DIRの“0″により、上述のモード
M2 (リバース)のときと同様に、エンドアドレスL
PADを起点とし、初期アドレスを終点としてデータメ
モリ21から逆方向に波形サンプルデータが読み出され
る。
With this direction indication signal DIR of "0", the end address L
Waveform sample data is read from the data memory 21 in the reverse direction starting from PAD and ending at the initial address.

読出しアドレスが初期アドレスに到達すると、比較器3
8からエンドパルスENDが発生される。
When the read address reaches the initial address, comparator 3
An end pulse END is generated from 8.

このエンドパルスENDは、アンド回路73に加わるが
、この出力は“O”である。つまり、信号M7が“1″
のとき方向指示信号DIRが0″(つまりアドレスが逆
方向に変化している)ならば、該信号M7と方向指示信
号DIRを入力したアンド回路86の出力が“0”、ア
ンド回路85の出力も“O”であり、オア回路87から
アンド回路73に加わる信号は“O”であり、アンド回
路73の条件は成立しない。従って、モードM7のとき
は、逆方向のカウント動作中に発生されるエンドパルス
ENDによってはフリップフロップ43はリセットされ
ず、アドレスカウンタ37のカウントは停止しない。
This end pulse END is applied to the AND circuit 73, and its output is "O". In other words, signal M7 is "1"
If the direction instruction signal DIR is 0'' (that is, the address is changing in the opposite direction), the output of the AND circuit 86 inputting the signal M7 and the direction instruction signal DIR is "0", and the output of the AND circuit 85 is "0". is also "O", the signal applied from the OR circuit 87 to the AND circuit 73 is "O", and the condition of the AND circuit 73 is not satisfied.Therefore, in mode M7, the signal applied to the AND circuit 73 is "O". The flip-flop 43 is not reset by the end pulse END, and the address counter 37 does not stop counting.

また、信号M7の111 Plと方向指示信号DIRの
“0″によりアンド回路81及びオア回路82の出力が
110 Nであり、エンドパルスENDに応じてアンド
回路77の出力が111”となり、遅延フリップフロッ
プ78、オア回路53を介してプリセットパルスPRP
が発生される。
Furthermore, the output of the AND circuit 81 and the OR circuit 82 is 110 N due to 111 Pl of the signal M7 and "0" of the direction indicating signal DIR, and the output of the AND circuit 77 is 110 N in response to the end pulse END, and the delay flip-flop preset pulse PRP via the OR circuit 53
is generated.

一方、エンドパルスENDはアンド回路71にも加わり
、信号M7の“1”によりオア回路79の出力が“1”
であるため、アンド回路71の条件が成立し、遅延フリ
ップフロップ84を介してT−フリップフロップ41の
カウント人力Cに“1”が加わり、該T−フリップフロ
ップ41の状態が10”から“1″に反転する。従って
、方向指示信号DIRは“1″となる。これにより、セ
レクタ42では、初期アドレスデータ(オールIO”)
を選択し、セレクタ39では、エンドアドレスデータL
PADを選択し、上述のように発生したプリセットパル
スPRPにより、これらがカウンタ37にプリセットさ
れ、また、レジスタ40にロードされる。こうして、前
回とは逆に、初期アドレスを起点とし、エンドアドレス
LPADを終点としてデータメモリ21から順方向に波
形サンプルデータが読み出される。
On the other hand, the end pulse END is also applied to the AND circuit 71, and the output of the OR circuit 79 becomes "1" due to the signal M7 being "1".
Therefore, the condition of the AND circuit 71 is satisfied, "1" is added to the count C of the T-flip-flop 41 via the delay flip-flop 84, and the state of the T-flip-flop 41 changes from "10" to "1". Therefore, the direction instruction signal DIR becomes "1". As a result, the selector 42 selects the initial address data (all IO).
is selected, and the selector 39 selects the end address data L.
PAD is selected and these are preset into the counter 37 and loaded into the register 40 by the preset pulse PRP generated as described above. In this way, contrary to the previous time, the waveform sample data is read out from the data memory 21 in the forward direction starting from the initial address and ending at the end address LPAD.

読出しアドレスがエンドアドレスLPADに到達すると
、比較器38からエンドパルスENDが発生される。今
度は、方向指示信号DIRは“1”であり、アンド回路
81と86の条件が成立する。
When the read address reaches the end address LPAD, the comparator 38 generates an end pulse END. This time, the direction instruction signal DIR is "1" and the conditions of AND circuits 81 and 86 are satisfied.

これにより、アンド回路73の出力がii 1 ytと
なり、フリップフロップ43がリセットされる。これに
より、読出しアドレスがエンドアドレスLPADに到達
したとき、アドレスカウンタ37のカウントが停止する
。また、アンド回路81の出力“1”によりアンド回路
77の出力が“0″となり、プリセットパルスPRPは
もはや発生されない。
As a result, the output of the AND circuit 73 becomes ii 1 yt, and the flip-flop 43 is reset. As a result, when the read address reaches the end address LPAD, the address counter 37 stops counting. Further, the output of the AND circuit 77 becomes "0" due to the output "1" of the AND circuit 81, and the preset pulse PRP is no longer generated.

こうして、「Uターン・リバース」の場合は、データメ
モリ21の波形サンプルデータを逆方向に1回読み出し
た後、該データメモリ21の波形サンプルデータを順方
向に折返して1回読み出す。
In this way, in the case of "U-turn reverse", the waveform sample data in the data memory 21 is read out once in the reverse direction, and then the waveform sample data in the data memory 21 is turned around in the forward direction and read out once.

これにより、サンプリングした外部音を時間的に逆方向
に並べ替えた楽音を1回発音した後、該サンプリング音
を時間的に順方向に直してもう1回発音する、という新
しい演奏効果を実現することができる。
As a result, a new performance effect is realized in which a musical tone in which the sampled external sounds are rearranged temporally backward is produced once, and then the sampled tone is rearranged temporally in the forward direction and produced once again. be able to.

(モードM8:Uターン・リバース・ループ)モー′ド
信号M8が“1”のときは、オア回路54.74を介し
て与えられるキーオンパルスKONPと信号M8の“1
”によってアンド回路75の条件が成立し、T−フリッ
プフロップ41がリセットされ、方向指示信号DIRが
0”となる。
(Mode M8: U-turn reverse loop) When the mode signal M8 is "1", the key-on pulse KONP given through the OR circuit 54.74 and the "1" of the signal M8
``, the condition of the AND circuit 75 is satisfied, the T-flip-flop 41 is reset, and the direction instruction signal DIR becomes 0''.

この方向指示信号DIRの“0″により、上述のモード
M7(Uターン・リバース)のときと同様に、エンドア
ドレスLPADを起点とし、初期アドレスを終点として
データメモリ21から逆方向に波形サンプルデータが読
み出される。
With this direction instruction signal DIR being "0", the waveform sample data is sent from the data memory 21 in the reverse direction starting from the end address LPAD and ending at the initial address, as in the above-mentioned mode M7 (U-turn/reverse). Read out.

読出しアドレスが初期アビレスに到達すると、比較器3
8からエンドパルスE N Dが発生される。
When the read address reaches the initial aviles, comparator 3
An end pulse E ND is generated from 8.

信号M8が“1″のときは、アンド回路73の条件は成
立せず、エンドパルスENDによってはフリップフロッ
プ43はリセットされず、アドレスカウンタ37のカウ
ントは停止しない。また、エンドパルスENDによって
アンド回路77の条件が成立し、プリセットパルスPR
Pが発生される。
When the signal M8 is "1", the condition of the AND circuit 73 is not satisfied, the flip-flop 43 is not reset by the end pulse END, and the address counter 37 does not stop counting. Furthermore, the condition of the AND circuit 77 is satisfied by the end pulse END, and the preset pulse PR
P is generated.

また、信号M8の“1”によりオア回路79の出力が′
1”であるため、エンドパルスENDによってアンド回
路71の条件が成立し、遅延フリップフロップ84を介
してT−フリップフロップ41のカウント入力Cに′″
1″が加わり、該T−フリップフロップ41の状態が“
0”から“1”に反転する。従って、方向指示信号DI
Rは“1′″となる。これにより、アドレスカウンタ3
7のカウント方向が前回とは逆になり、初期アドレス(
オール“0″)を起点とし、エンドアドレスLPADを
終点としてデータメモリ21から順方向に波形サンプル
データが読み出される。
Furthermore, the output of the OR circuit 79 is set to ``1'' by the signal M8.
1'', the condition of the AND circuit 71 is satisfied by the end pulse END, and the count input C of the T-flip-flop 41 is input to the count input C of the T-flip-flop 41 through the delay flip-flop 84.
1'' is added, and the state of the T-flip-flop 41 becomes “
0” to “1”. Therefore, the direction indication signal DI
R becomes "1'". As a result, address counter 3
The counting direction of 7 is reversed from the previous time, and the initial address (
Waveform sample data is read out from the data memory 21 in the forward direction starting from all "0") and ending at the end address LPAD.

読出しアドレスがエンドアドレスLPADに到達すると
、エンドパルスENDが発生され、前述と同様に、アン
ド回路71と77の条件が成立し、プリセットパルスP
RPが発生されると共に、T−フリップフロップ41の
状態がパ1”から“0”に反転して方向指示信号DIR
が0″となる。
When the read address reaches the end address LPAD, the end pulse END is generated, and the conditions of the AND circuits 71 and 77 are satisfied as described above, and the preset pulse P is generated.
At the same time that RP is generated, the state of the T-flip-flop 41 is inverted from "P1" to "0" and the direction indicating signal DIR is generated.
becomes 0″.

これにより、アドレスカウンタ37のカウント方向が逆
方向に戻り、エンドアドレスLPADを起点とし、初期
アドレスを終点としてデータメモリ21から逆方向に波
形サンプルデータが読み出される。次に、エンドパルス
ENDが発生されると、アドレスカウンタ37のカウン
ト方向が順方向にされる。
As a result, the counting direction of the address counter 37 returns to the opposite direction, and the waveform sample data is read out from the data memory 21 in the reverse direction starting from the end address LPAD and ending at the initial address. Next, when the end pulse END is generated, the counting direction of the address counter 37 is set to the forward direction.

以後、同様に、エンドパルスENDが発生される毎に、
「Uターン・リバース」読出しを繰返す。
Thereafter, similarly, every time the end pulse END is generated,
Repeat the "U-turn/reverse" reading.

こうして、「Uターン・リバース・ループ」の場合は、
データメモリ21の波形サンプルデータを逆方向に読み
出した後、該データメモリ21の波形サンプルデータを
順方向に折返して読み出す「Uターン・リバース」読出
しを何回も繰返す。
In this way, in the case of "U-turn reverse loop",
After reading out the waveform sample data in the data memory 21 in the reverse direction, "U-turn reverse" reading is repeated many times, in which the waveform sample data in the data memory 21 is turned around and read out in the forward direction.

これにより、サンプリングした外部音を時間的に逆方向
に並べ替えた楽音を1回発音した後、該サンプリング音
を時間的に順方向に直してもう1回発音する、というr
Uターン・リバース」を何回も繰返して新しい演奏効果
を実現することができる。押圧鍵を離鍵して音量制御エ
ンベロープを減衰させることにより、この発音を終了す
ることができる。
As a result, a musical tone in which the sampled external sounds are rearranged temporally backwards is produced once, and then the sampled sounds are rearranged temporally in the forward direction and produced once again.
You can create new performance effects by repeating ``U-Turn Reverse'' many times. This sound generation can be ended by releasing the pressed key and attenuating the volume control envelope.

エンドアドレスの増減 ゛処理 前述の第14図のステップ115の処理により。Increase/decrease end address゛Processing By the process of step 115 in FIG. 14 described above.

マイクロコンピュータ部内のエンドアドレスバッファL
PADBに記憶するエンドアドレスデータとして、サン
プリングした原波形における最終ゼロクロス部分のデー
タを記憶しているアドレスつまり最終ゼロクロスアドレ
ス(−例としてブロック単位のアドレス)が初期設定さ
れる。前述の各演奏モードM1〜M8においてトーンジ
ェネレータ部20で利用されるエンドアドレスデータL
PADはこのエンドアドレスバッファLPADBに記憶
されたデータであり、上記のように初期設定されたまま
であるとすると、前出のエンドアドレスデータLPAD
はサンプリングした原波形における最終ゼロクロスアド
レスそのもの(つまりゼロクロスアドレスバッファZC
RADBに記憶しているデータ)である。
End address buffer L in the microcomputer section
As the end address data stored in the PADB, the address storing the data of the final zero-crossing portion of the sampled original waveform, that is, the final zero-crossing address (for example, an address in block units) is initially set. End address data L used by the tone generator section 20 in each of the aforementioned performance modes M1 to M8.
PAD is the data stored in this end address buffer LPADB, and if the initial settings remain as described above, the end address data LPAD described above
is the final zero-crossing address itself in the sampled original waveform (that is, the zero-crossing address buffer ZC
data stored in RADB).

このように、サンプリングした原波形における最終ゼロ
クロスアドレスデータそのものをエンドアドレスデータ
LPADとして使用した場合は、外部からサンプリング
した原波形全部に対応する楽音が演奏モード時に発音さ
れる。しかし、前述の各演奏モードM1〜M8において
トーンジェネレータ部20で利用するエンドアドレスデ
ータLPADを、サンプリングした原波形における最終
ゼロクロスアドレスデータそのものに限定せずに、適宜
変更できるようにすれば、演奏効果を更に高めることが
できる。
In this way, when the final zero cross address data itself in the sampled original waveform is used as the end address data LPAD, musical tones corresponding to all the original waveforms sampled from the outside are produced in the performance mode. However, if the end address data LPAD used by the tone generator section 20 in each of the above-mentioned performance modes M1 to M8 is not limited to the final zero cross address data itself in the sampled original waveform, but can be changed as appropriate, the performance effect can be improved. can be further increased.

そのために、このエンドアドレスデータLPADを変更
することは、増加スイッチINC及び減少スイッチDE
Cの操作によって行うことができる。なお、この実施例
では、サンプリングした波形データを繰返し読み出して
発音するモードのとき、つまりrループ」、「リバース
・ループ」、「リターン・ループ」、又は「リターン・
リバース・ループ」のとき、そのような変更処理が可能
となっている。これは、そのような繰返し演奏のときに
エンドアドレスの調整により繰返しの1サイクル長を制
御することはかなり有効だからである。しかし、これに
限らず、他の演奏モードのときにもエンドアドレスデー
タLPADの増減変更が行えるようにしてもよい。
To that end, changing this end address data LPAD requires an increment switch INC and a decrement switch DE
This can be done by operating C. In this embodiment, when the sampled waveform data is repeatedly read out to produce sound, that is, when the mode is set to "r loop", "reverse loop", "return loop", or "return loop",
Such changes are possible during the "reverse loop." This is because during such repeated performances, it is quite effective to control the length of one repetition cycle by adjusting the end address. However, the present invention is not limited to this, and the end address data LPAD may be increased or decreased in other performance modes as well.

増加スイッチINCがオンされると、第17図の増加イ
ベントルーチンが実行される。ここでは、ステップ13
5においてループフラグLPFLGが“1”であるかを
調べ、YESならステップ136に行くが、Noならば
リターンへ行く。これは、上述の「ループ」関連の演奏
モードM3.M5、M6.M8のときにこの制御を行う
ためである。ステップ136においては、エンドアドレ
スバッファLPADBの内容を1増加する。なお、この
増加演算でバッファLPADBの内容が最大値に達した
場合は最大値を保持するものとする。
When the increment switch INC is turned on, the increment event routine shown in FIG. 17 is executed. Here, step 13
In Step 5, it is checked whether the loop flag LPFLG is "1", and if YES, the process goes to step 136, but if No, the process goes to return. This is the above-mentioned “loop” related performance mode M3. M5, M6. This is to perform this control at M8. In step 136, the contents of the end address buffer LPADB are incremented by one. Note that if the contents of the buffer LPADB reach the maximum value in this increment operation, the maximum value is held.

前述の通すバッファLPADBに記憶されるデータはブ
ロック単位であるため、この増加もブロック単位で行わ
れる。この場合、最大値は「15」である。次のステッ
プ137では、エンドアドレスバッファLPADBの内
容をエンドアドレスデータLPADとしてトーンジェネ
レータ部20に送出する。
Since the data stored in the above-mentioned passing buffer LPADB is in block units, this increase is also performed in block units. In this case, the maximum value is "15". In the next step 137, the contents of the end address buffer LPADB are sent to the tone generator section 20 as end address data LPAD.

減少スイッチDECがオンされると、第18図の減少イ
ベントルーチンが実行される。ここのステップ135a
t 136a、137aの処理は第17図の各ステップ
135,136,137の処理とほぼ同様であり、異な
る点は、ステップ136ではエンドアドレスバッファL
PADBの内容を1増加したのに対して、ステップ13
6aではこのバッファLPADBの内容を1減少する点
だけである。
When the decrease switch DEC is turned on, the decrease event routine shown in FIG. 18 is executed. Step 135a here
The processing at steps 136a and 137a is almost the same as the processing at steps 135, 136, and 137 in FIG.
While the content of PADB was increased by 1, step 13
6a only decrements the contents of this buffer LPADB by 1.

こうして、エンドアドレスバッファLPADBの内容を
増減変更することによりトーンジェネレータ部20で利
用するエンドアドレスデータLPADの値を増減変更す
ることができる。
In this way, by increasing or decreasing the contents of the end address buffer LPADB, it is possible to increase or decrease the value of the end address data LPAD used by the tone generator section 20.

このようにエンドアドレスデータLPADの値を増減変
更することにより、順方向読み出しにおいては終点のア
ドレスを、逆方向読み出しにおいては起点のアドレスを
夫々変更・調整することができ、ループ演奏における繰
返しの基点アドレスを自由に変更することができる。従
って、このエンドアドレスデータLPADの増減変更の
調整の仕方によって、繰返し読み出しの態様を自由に変
更することができる。
By increasing/decreasing the value of the end address data LPAD in this way, it is possible to change and adjust the end point address in forward reading and the starting point address in backward reading, and the starting point of repetition in loop performance. You can change the address freely. Therefore, the mode of repeated reading can be freely changed by adjusting the increase/decrease change of the end address data LPAD.

例えば、波形サンプルデータの最終アドレスの手前のア
ドレスに記憶した波形サンプルデータ部分にノイズが含
まれているような場合は、エンドアドレスデータLPA
Dの値を減少して手前のアドレス寄りに適宜調整するこ
とにより、演奏時にデータメモリ21から読み出すべき
アドレスの範囲内にノイズを含むアドレスが入らないよ
うにすることができ、こうしてノイズを含む波形サンプ
ルデータの部分の発音をカットすることができる。
For example, if noise is included in the waveform sample data stored at an address before the final address of the waveform sample data, the end address data LPA
By decreasing the value of D and adjusting the address closer to the front, it is possible to prevent addresses containing noise from falling within the range of addresses to be read from the data memory 21 during performance. You can cut the pronunciation of the sample data part.

あるいは、エンドアドレスデータLPADの値を増加し
て波形サンプルデータの最終アドレスよりも先のアドレ
スに適宜調整することにより、演奏時にデータメモリ2
1から読み出すべきアドレスの範囲を波形サンプルデー
タが実際には記憶されていないアドレスにまで拡大する
ことができ、この拡大されたアドレス範囲で繰返し読出
しを行うことにより、繰返し読出しのつなぎ目で意識的
に適当な長さの無音区間を作り、この無音区間の存在に
より音が断続的に繰返される特殊な演奏効果を作り出す
こともできる。
Alternatively, by increasing the value of the end address data LPAD and adjusting it to an address beyond the final address of the waveform sample data, the data memory
The range of addresses to be read from 1 can be expanded to addresses where waveform sample data is not actually stored, and by repeatedly reading in this expanded address range, you can consciously read out data at the joints of repeated reading. It is also possible to create a special performance effect in which the sound is repeated intermittently by creating a silent section of an appropriate length.

なお、増加スイッチINC及び減少スイッチDECによ
って変更されるのはエンドアドレスバッフ7LPADB
の内容であり、ゼロクロスアドレスバッファZC:RA
DBに記憶した原波形における本来の最終ゼロクロスア
ドレスは変更されない。
Note that the end address buffer 7LPADB is changed by the increase switch INC and decrease switch DEC.
is the content of zero-crossing address buffer ZC:RA
The original final zero-crossing address in the original waveform stored in the DB is not changed.

これは、後述するオールキャンセル処理のとき、エンド
アドレスバッファLPADHの内容を原波形における本
来の最終ゼロクロスアドレスに戻すために利用される。
This is used to return the contents of the end address buffer LPADH to the original final zero-crossing address in the original waveform during all cancel processing to be described later.

エコー効果 エコースイッチECHOがオンされると、第16図のエ
コーイベントルーチンが実行される。ステップ138で
は、エコーフラグECFLGを“0”から“1”に、又
は“1”から“O”に、反転する。ステップ139では
、エコーフラグECFLGが“1″であるかを調べ、“
1”であれば、ステップ140に行き、ループフラグL
PFLGの内容をループフラグバッファLPFLGBに
保存してから該ループフラグLPFLGを“1”にセッ
トする。こうして、演奏モードを「ループ」に関連する
モード、つまりrループ」、「リバース・ループ」、「
Uターン・ループ」、又は「Uターン・リバース・ルー
プ」に自動的に設定する。
When the echo effect echo switch ECHO is turned on, the echo event routine shown in FIG. 16 is executed. In step 138, the echo flag ECFLG is inverted from "0" to "1" or from "1" to "O". In step 139, it is checked whether the echo flag ECFLG is "1" and "
1”, go to step 140 and set the loop flag L.
After saving the contents of PFLG in the loop flag buffer LPFLGB, the loop flag LPFLG is set to "1". In this way, the performance mode can be changed to modes related to "loop", i.e. "r loop", "reverse loop", "
Automatically set to ``U-turn loop'' or ``U-turn reverse loop.''

次のステップ124a、125aでは、第15図のステ
ップ124,125と同じ処理を行い、演奏モードをM
1〜M8の何れかに決定する。但し、この場合はループ
フラグLPFLGが“1″にセットされているので、r
ループ」関連の演奏モードM3.MS、M6.M8の何
れかに必ず決定される。
In the next steps 124a and 125a, the same processing as steps 124 and 125 in FIG. 15 is performed, and the performance mode is set to M.
Decide on one from 1 to M8. However, in this case, since the loop flag LPFLG is set to "1", r
Loop” related performance mode M3. MS, M6. It is always determined to be one of M8.

次に、ステップ141ではレリースタイムバッファRT
Bの内容をレリースタイム保存バッファRTBUFに記
憶し、ステップ142ではレリースタイムバッファRT
Bの内容を最大値MAXに設定する。そして、ステップ
143ではレリースタイムバッファRTBの内容をトー
ンジェネレータ部20に対してレリースタイムデータR
Tとして送出する。
Next, in step 141, the release time buffer RT
The contents of B are stored in the release time storage buffer RTBUF, and in step 142, the contents of the release time buffer RTBUF are stored in the release time storage buffer RTBUF.
Set the contents of B to the maximum value MAX. Then, in step 143, the contents of the release time buffer RTB are sent to the tone generator section 20 as release time data R.
Send as T.

これにより、エンベロープ発生器47から発生されるエ
ンベロープ波形データのレリース時間が最長に設定され
、発生楽音は、離鍵後に極めて緩やかに減衰するように
なる。しかも、演奏モードは「ループ」関連のモードM
3.M5.M6.M8の何れかに設定されるので、デー
タメモリ21に記憶した波形サンプルデータが順方向又
は逆方向又は交互に順方向と逆方向に切り替わりながら
繰返し読み出され、それに対応する楽音が次第に小さく
なる音量レベルで繰返し発音される。なお、繰返し読み
出される波形サンプルデータは外部音をサンプリングし
たものであるため、一般に、それ自体で音の立上りから
立下りに至る振幅エンベロープを具備している。従って
、音の立上りから立下りに至る振幅エンベロープを具備
した音が何回も繰返し発音され、しかもその音量が次第
に減衰する、エコーのような効果を実現することができ
る。しかも、単なる従来のエコーと異なる点は、「ルー
プ」関連の演奏モードM3.M5.M6゜M8による発
音制御によって、音がその本来の時系列とは逆に発音さ
れたり1本来の時系開通りに発音されたり、その組合せ
で交互に発音されたりすることである。しかも、上述の
ようなエンドアドレスの増減調整制御と組合せることに
より、従来全くなかった自由なエコー効果を実現するこ
ともできる。
As a result, the release time of the envelope waveform data generated by the envelope generator 47 is set to be the longest, and the generated musical tone attenuates extremely slowly after the key is released. Moreover, the performance mode is “loop” related mode M
3. M5. M6. M8, the waveform sample data stored in the data memory 21 is read out repeatedly in the forward direction, reverse direction, or alternately switching between forward and reverse directions, and the volume of the corresponding musical tone gradually decreases. Repeatedly sounded at the level. Note that since the waveform sample data that is repeatedly read is a sample of external sound, it generally has its own amplitude envelope extending from the rise to the fall of the sound. Therefore, it is possible to realize an echo-like effect in which a sound with an amplitude envelope ranging from the rise to the fall of the sound is repeatedly produced many times, and the volume gradually attenuates. Moreover, the difference from a simple conventional echo is the "loop" related performance mode M3. M5. By controlling the sound production by M6 and M8, sounds may be produced in the opposite direction to their original chronological order, may be produced according to the original chronological order, or may be produced alternately in a combination thereof. Furthermore, by combining this with the above-mentioned end address increase/decrease adjustment control, it is possible to realize a free echo effect that was completely absent in the past.

エコーフラグECFLGが“0”になると、ステップ1
44の処理によりループフラグバッファLPFLGBの
内容をループフラグLPFLGにに戻すことにより、該
ループフラグLPFLGの内容をエコー効果をかける前
の状態に戻す。次のステップ124b、125bでは、
第15図のステップ124,125と同じ処理を行い、
演奏モードをM1〜M8の何れかに決定する。次のステ
ップ145では、レリースタイム保存バッファRTBU
Fの内容をレリースタイムバッファRTBに戻すことに
より、該レリースタイムバッファRTBの内容をエコー
効果をかける前の状態に戻す。
When the echo flag ECFLG becomes “0”, step 1
By returning the contents of the loop flag buffer LPFLGB to the loop flag LPFLG through the process of 44, the contents of the loop flag LPFLG are returned to the state before the echo effect was applied. In the next steps 124b and 125b,
Perform the same processing as steps 124 and 125 in FIG.
The performance mode is determined to be one of M1 to M8. In the next step 145, the release time storage buffer RTBU
By returning the contents of F to the release time buffer RTB, the contents of the release time buffer RTB are returned to the state before the echo effect was applied.

オールキャンセル 理 サンプリングした波形サンプルデータに関連して操作パ
ネル部15で設定・選択・変更・調整した各種のデータ
の全て又は所定のものを、キャンセルし、これらのデー
タの内容を最初にサンプリングしたときの状態に戻した
い場合は、オールキャンセルスイッチCANSELを操
作する。すると、第19図のオールキャンセルイベント
ルーチンが実行される。
All Cancel When all or certain data set, selected, changed, or adjusted on the operation panel unit 15 in relation to sampled waveform sample data is canceled and the contents of these data are sampled for the first time. If you want to return to the previous state, operate the all cancel switch CANSEL. Then, the all cancel event routine shown in FIG. 19 is executed.

まず、ステップ146では、各フラグSMPFLG、0
VWFLG、LPFLG、UTFLG、RVFLG、E
CFLGを“0”にリセットする。これは、操作パネル
部15における各スイッチSMPL、0VRWR,LO
OP、UTRN、RVR3,ECHOの操作に応じて設
定されたサンプリングモードや演奏モードM2〜M8を
キャンセルし、演奏モードM1に初期設定するためであ
る。
First, in step 146, each flag SMPFLG, 0
VWFLG, LPFLG, UTFLG, RVFLG, E
Reset CFLG to “0”. This corresponds to each switch SMPL, 0VRWR, LO on the operation panel section 15.
This is to cancel the sampling mode and performance modes M2 to M8 set according to the operations of OP, UTRN, RVR3, and ECHO, and to initialize the performance mode M1.

次のステップ147では、ゼロクロスアドレスバッファ
ZCRADBに記憶している原波形における本来の最終
ゼロクロスアドレスデータをエンドアドレスバッファL
PADBに記憶する。これは、前述のようにエンドアド
レスバッファLPADBの内容は増加スイッチINC及
び減少スイッチDECの操作に応じて変更されることが
あるので、そのような変更をキャンセルして、エンドア
ドレスバッファLPADBの内容を原波形における本来
の最終ゼロクロスアドレスに戻すためである。
In the next step 147, the original final zero cross address data in the original waveform stored in the zero cross address buffer ZCRADB is transferred to the end address buffer L.
Store in PADB. This is because, as mentioned above, the contents of the end address buffer LPADB may be changed depending on the operation of the increase switch INC and the decrease switch DEC, so such changes can be canceled and the contents of the end address buffer LPADB can be changed. This is to return to the original final zero cross address in the original waveform.

ステップ148では、アタックタイムバッファATB、
ディケイタイムバッファDTB、サスティンレベルバッ
ファSLB、レリースタイムバッファRTBの内容を前
述の直接キーイング型のエンベロープ波形を設定する内
容に初期設定する。
In step 148, the attack time buffer ATB,
The contents of the decay time buffer DTB, sustain level buffer SLB, and release time buffer RTB are initialized to the contents for setting the above-mentioned direct keying type envelope waveform.

これは、エンベロープ制御操作子群17の操作に応じて
変更された各バッファATB、DTB、SLB、RTB
の内容をキャンセルして、直接キーイング型のエンベロ
ープ波形を設定する内容に初期設定するためである。
This corresponds to each buffer ATB, DTB, SLB, RTB changed according to the operation of the envelope control operator group 17.
This is to cancel the contents of , and initialize the contents of the direct keying type envelope waveform.

ステップ149では、トーンジェネレータ部20に与え
るべきデータを次のように初期設定してトーンジェネレ
ータ部20に送出する。サンプリングモード信号SMI
及び8M2を“O”にする。
In step 149, data to be given to the tone generator section 20 is initialized as follows and sent to the tone generator section 20. Sampling mode signal SMI
and set 8M2 to “O”.

演奏モード信号M1を“1”にし、残りの演奏モード信
号M2〜M8を“O”にする、エンドアドレスデータL
PADを、エンドアドレスバッファLPADBに記憶さ
れた最終ゼロクロスアドレスデータに設定する。アタッ
クタイムデータAT、ディケイタイムデータDT、サス
ティンレベルデータSL、レリースタイムデータRTと
して、夫々上記バッファATB、DTB、SLB、RT
Bの内容を設定する0次のステップ150では、各種楽
音効果用のデータも所定の内容に初期設定する。
End address data L that sets the performance mode signal M1 to "1" and sets the remaining performance mode signals M2 to M8 to "O"
Set PAD to the last zero-crossing address data stored in the end address buffer LPADB. As attack time data AT, decay time data DT, sustain level data SL, and release time data RT, the above buffers ATB, DTB, SLB, RT are used, respectively.
In the next step 150 for setting the contents of B, data for various musical tone effects are also initialized to predetermined contents.

このように、オールキャンセルスイッチCANSELが
操作されると、波形サンプルデータに関連して操作パネ
ル部15で設定・選択・変更・調整した各種のデータの
全て又は所定のものが、キャンセルされ、これらのデー
タの内容が最初にサンプリングしたときの状態に戻され
る。つまり、サンプリングした波形サンプルデータに関
連して編集した様々のデータの編集内容がキャンセルさ
れ、編集前の初期状態に戻されるのである。このように
編集内容をキャンセルして編集前の初期状態に戻せるよ
うにすることにより、失敗をおそれることなく、自由な
編集を行うことができるようになり、サンプリングした
波形サンプルデータに関連する編集機能を向上させるこ
とができる。
In this way, when the all cancel switch CANSEL is operated, all or predetermined data set, selected, changed, or adjusted on the operation panel section 15 in relation to the waveform sample data are canceled. The data contents are returned to the state they were in when they were first sampled. In other words, the edited contents of various data edited in relation to the sampled waveform sample data are canceled, and the initial state before editing is returned. By being able to cancel the edited content and return to the initial state before editing, it becomes possible to freely edit without fear of failure, and editing functions related to sampled waveform sample data are now available. can be improved.

衾丈史 上記実施例では、データメモリに記憶する波形サンプル
データは、PCM (パルスコード変調)方式で表現さ
れているものとしているが、これに限らず、差分PCM
や適応差分PCM、デルタ変調(DM)、適応デルタ変
調(ADM)など、適宜のデータ圧縮方式を用いて表現
するようにしてもよい。また、サンプリングした波形サ
ンプルデータに対して適宜のデータ補正処理(例えばそ
の振幅レベルが全区間でほぼ一定になるように規格化す
る処理など)を行った後データメモリに書き込むように
してもよい、この場合、上記データ補正処理(レベル規
格化処理など)はマイクロフォンでピックアップしたア
ナログの音信号に対し行うようにしてもよい。
In the embodiment of Fumiyoshi Kenjo, it is assumed that the waveform sample data stored in the data memory is expressed using the PCM (Pulse Code Modulation) method, but the method is not limited to this.
The data may be expressed using an appropriate data compression method, such as adaptive differential PCM, delta modulation (DM), or adaptive delta modulation (ADM). Alternatively, the sampled waveform sample data may be written into the data memory after being subjected to appropriate data correction processing (for example, processing to normalize the amplitude level so that it is approximately constant over the entire interval). In this case, the data correction process (level standardization process, etc.) may be performed on an analog sound signal picked up by a microphone.

マイクロコンピュータ部におけるソフトウェア処理によ
って実行する第8図〜第19図の処理は、専用のハード
ウェア回路によって実施してもよい。
The processes shown in FIGS. 8 to 19 executed by software processing in the microcomputer section may be executed by a dedicated hardware circuit.

反対に、トーンジェネレータ部におけるデータメモリの
読み書き制御回路は、第6図では専用のハードウェア回
路によって構成しているが、これはマイクロコンピュー
タ部におけるソフトウェア処理によって実行するように
することもできる。また、第6図では読み書き制御に一
部共通の回路(例えばアドレスカウンタなど)が用いら
れているが、書込み制御と読出し制御を別々の回路で行
ってもよい。
On the other hand, although the data memory read/write control circuit in the tone generator section is constituted by a dedicated hardware circuit in FIG. 6, it can also be executed by software processing in the microcomputer section. Further, in FIG. 6, some common circuits (such as an address counter) are used for read/write control, but write control and read control may be performed by separate circuits.

上記実施例では、単音発音方式であるが、複音発音方式
であってもよいのは勿論である。その場合は、周知の複
数チャンネルに対する発音割当て処理技術を用いればよ
い。
In the above embodiment, a single tone pronunciation method is used, but it goes without saying that a multiple tone pronunciation method may also be used. In that case, a well-known technique for processing sound generation assignment for multiple channels may be used.

また、上記実施例では、鍵盤を具えた電子楽器において
この発明の楽音発生装置が適用されているが、これに限
らず、その他の電気又は電子楽器、若しくは、モジュー
ル化された鍵盤あるいは適宜の入力機器や、サウンドシ
ステム、効果装置あるいは汎用コンピュータなどと適宜
選択的に接続して使用される音源装置モジュールにおい
てこの発明の楽音発生装置を適用するようにしてもよい
Further, in the above embodiment, the musical tone generating device of the present invention is applied to an electronic musical instrument equipped with a keyboard, but the present invention is not limited to this, but it is applicable to other electric or electronic musical instruments, a modular keyboard, or an appropriate input device. The musical sound generating device of the present invention may be applied to a sound source device module that is used by selectively connecting to equipment, a sound system, an effect device, a general-purpose computer, etc. as appropriate.

また、上記実施例では特に示さなかったが、操作パネル
部において、現在選択されている演奏モードや、現在設
定されているエンドアドレスデータLPADの内容、各
種のエンベロープ設定データの内容、その他の各種設定
データの内容、などを表示するLED等からなる表示泰
を設けるとよい。
Although not specifically shown in the above embodiment, the operation panel section also displays the currently selected performance mode, the contents of the currently set end address data LPAD, the contents of various envelope setting data, and other various settings. It is preferable to provide a display consisting of an LED or the like to display the contents of data, etc.

また、上記実施例では、3つのスイッチRVR3,UT
RN、LQOPの操作に応じて8つの演奏モードM1〜
M8を決定するようにしているが、各モードM1〜M8
を個別に選択するためのスイッチを別々に設けてもよい
Further, in the above embodiment, three switches RVR3, UT
Eight performance modes M1~ depending on the operation of RN and LQOP
M8 is determined, but each mode M1 to M8
A separate switch may be provided for individually selecting the .

第6図のトーンジェネレータ部においては外部からサン
プリングした音だけを音源としているが、これに限らず
、他に適宜の音源を有し、既成の複数の音色と外部サン
プリング音の音色の中から所望の音色を適宜選択できる
構成としてもよい。
Although the tone generator section in Figure 6 uses only externally sampled sounds as its sound source, it is not limited to this, and may have other appropriate sound sources, and can select desired tones from among a plurality of ready-made tones and externally sampled tones. The configuration may be such that the tone color can be selected as appropriate.

上記実施例では外部音をサンプリングした直後にサンプ
リングした音を自動的にオウム返しに発音するためのト
リガとしてのキーオンパルス0KONPをソフトウェア
処理(第14図のステップ118)によって発生してい
るが、これは、トーンジェネレータ部における専用のハ
ードウェア回路によって発生するようにしてもよい。そ
のためには、例えば、サンプリングエンド信号SMPE
NDが出たときつまりエンドパルスENDが出たときに
アドレスカウンタ37のカウントを停止せずにオーバー
フローにまかせてそのまま初期アドレスからのアップカ
ウントを継続させ、かつサンプリングエンド信号SMP
ENDをオウム返し用のキーオンパルスに)KONPと
してエンベロープ発生器47に入力すると共に、サンプ
リングモード信号SMI、SM2を夫々“091にし、
モード信号M1を1″にするとよい。
In the above embodiment, a key-on pulse 0KONP is generated by software processing (step 118 in FIG. 14) as a trigger for automatically reproducing the sampled sound immediately after sampling the external sound. may be generated by a dedicated hardware circuit in the tone generator section. For that purpose, for example, the sampling end signal SMPE
When ND is output, that is, when the end pulse END is output, the address counter 37 does not stop counting, but continues to count up from the initial address by allowing the overflow, and the sampling end signal SMP
Input END to the envelope generator 47 as KONP (as a key-on pulse for parrot return), and set the sampling mode signals SMI and SM2 to "091", respectively.
It is preferable to set the mode signal M1 to 1''.

また、上記実施例では外部音をサンプリングした直後の
オウム返しの発音におけるデータメモリの読出しレート
は書込みレートと同じであるが、これは異ならせてもよ
い。
Furthermore, in the embodiment described above, the read rate of the data memory in the parrot pronunciation immediately after sampling the external sound is the same as the write rate, but this may be different.

ゼロクロスの検出方法は上記実施例に示したものに限ら
ず、どのような方法でもよい。例えば、上記実施例のよ
うなある程度の幅のあるゼロ判定範囲を採用せずに、波
形サンプルデータのレベルが実際にプラスからマイナス
に又はマイナスからプラスに変化することを検出するよ
うにしてもよい。また、マイクロフォンによってピック
アップしたアナログの音信号においてゼロクロスを検出
するようにしてもよい。
The method of detecting a zero cross is not limited to the one shown in the above embodiment, and any method may be used. For example, it may be possible to detect that the level of the waveform sample data actually changes from plus to minus or from minus to plus, instead of adopting the zero judgment range with a certain width as in the above embodiment. . Alternatively, zero crossings may be detected in an analog sound signal picked up by a microphone.

また、上記実施例では検出したゼロクロスに対応するア
ドレスはブロック単位のデータで記憶しているが、これ
はアドレス単位のデータで記憶するようにしてもよい。
Further, in the above embodiment, the addresses corresponding to the detected zero crosses are stored as data in block units, but this may be stored as data in address units.

同様に、最終ゼロクロスアドレスに対応するエンドアド
レスデータ(LPAD)もブロック単位のデータに限ら
ず、アドレス単位のデータで記憶するようにしてもよい
。その場合、エンドアドレスデータを増減調整する際の
増加量及び減少量もアドレス単位で細かに調整し得るよ
うにするとよい。また、増減調整の対象とする基準アド
レスは、上記実施例のようなエンドアドレスに限らず、
初期アドレスであってもよく、また両方であってもよい
Similarly, the end address data (LPAD) corresponding to the final zero-crossing address is not limited to data in units of blocks, but may be stored in data in units of addresses. In this case, it is preferable that the amount of increase and decrease when increasing or decreasing the end address data can also be finely adjusted for each address. In addition, the reference address to be subject to increase/decrease adjustment is not limited to the end address as in the above example.
It may be the initial address or both.

また、各ブロック毎に実際の最終ゼロクロスアドレスを
夫々記憶しておき、エンドアドレスデータをブロック単
位で増減調整した場合、エンドアドレスとして定められ
たブロックにおける実際の最終ゼロクロスアドレスをエ
ンドアドレス(12ビツトのアドレス単位のエンドアド
レス)とするようにしてもよい。
In addition, if the actual final zero-crossing address is stored for each block and the end address data is increased or decreased in block units, the actual final zero-crossing address in the block defined as the end address is stored as the end address (12-bit (end address in address units).

また、上記実施例ではエンドアドレスデータの増減調整
はループフラグが立っているとき、つまりサンプリング
した外部音に対応する楽音を繰返し発音するときに可能
であるが、これに限らず、他の場合においてもエンドア
ドレスデータ(基準アドレスデータ)の増減変更・調整
が行えるようにしてもよい。
Furthermore, in the above embodiment, the increase/decrease adjustment of the end address data is possible when the loop flag is set, that is, when the musical tone corresponding to the sampled external sound is repeatedly sounded, but this is not limited to this, and in other cases. Alternatively, the end address data (reference address data) may be increased, decreased, or adjusted.

また、上記実施例ではオールキャンセル処理においては
操作パネル部で設定・制御した全てのデータをキャンセ
ルして所定の初期状態に戻すようにしているが、これは
サンプリングした外部音に密接に関連するデータのみキ
ャンセルして所定の初期状態に戻すようにしてもよい0
例えば、各種楽音効果用のデータはキャンセルしなくて
もよい。
Furthermore, in the above embodiment, in the all-cancel process, all data set and controlled by the operation panel are canceled and returned to a predetermined initial state, but this is based on data closely related to the sampled external sound. It may be possible to cancel only 0 and return to a predetermined initial state.
For example, it is not necessary to cancel data for various musical tone effects.

〔発明の効果〕〔Effect of the invention〕

以上の通り、この発明によれば、外部から入力した音信
号の波形サンプルデータを記憶した記憶手段から該波形
サンプルデータを書込み時のアドレス順序とは逆方向に
読み出し続いて該波形サンプルデータを書込み時のアド
レス順序に順方向に読み出すことからなるシーケンスを
少なくとも1回行うようにしたので、サンプリングした
外部音を時間的に逆方向に並べ替えた楽音を最初に1回
発音した後、引き続いて、該サンプリング音を時間的に
順方向に直してもう1回発音する、という新しい演奏効
果を実現することができる。また、このシーケンスを複
数回繰返し行うことによっても新しい演奏効果を実現す
ることができる。従って、サンプリング方式の楽音発生
装置としての演奏性能を向上させることができる、とい
う優れた効果を奏する。
As described above, according to the present invention, the waveform sample data of a sound signal inputted from the outside is read out from the storage means in the opposite direction to the address order at the time of writing, and then the waveform sample data is written. Since the sequence consisting of forward reading in the address order of the time is performed at least once, after the first sound of the musical tone in which the sampled external sounds are rearranged in the backward temporal direction, It is possible to realize a new performance effect in which the sampled sound is adjusted forward in time and sounded again. Also, new performance effects can be achieved by repeating this sequence multiple times. Therefore, an excellent effect can be achieved in that the performance performance as a sampling type musical tone generating device can be improved.

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

第1図はこの発明に係る楽音発生装置の概要を示す機能
ブロック図、 第2図はこの発明に係る楽音発生装置を適用した電子楽
器の一実施例を示すハード構成図、第3図は第2図の実
施例において実現される各種演奏モードにおけるデータ
メモリの読出し形態を概略的に示す図、 第4図は第2図のトーンジェネレータ部に含まれるデー
タメモリのアドレス構成の一例を示す図、第5図は第2
図のマイクロコンピュータ部におけるデータ及びワーキ
ングメモリのメモリマツプの一例を示す図、 第6図は第2図のトーンジェネレータ部の詳細例を示す
ブロック図、 第7図は第6図におけるノートクロックパルスの発生例
を示すタイミングチャート。 第8図乃至第19図は第2図のマイクロコンピュータ部
において実行されるプログラムの一例を示すフローチャ
ートであって、第8図はメインルーチン、第9図はサン
プリングイベントルーチン。 第10図はオーバーライドイベントルーチン、第11図
はタイマビープエンドイベントルーチン、第12図はキ
ーオンイベントルーチン、第13図はキーオフイベント
ルーチン、第14図はサンプ゛リングエンドイベントル
ーチン、第15図はリバースイベントルーチン及びUタ
ーンイベントルーチン及びループイベントルーチン、第
16図はエコーイベントルーチン、第17図は増加イベ
ントルーチン、第18図は減少イベントルーチン、第1
9図はオールキャンセルイベントルーチンを夫々示すも
の、である。 1・・・外部音サンプリング手段、2・・・記憶手段、
3・・・書込み制御手段、4・・・読出し制御手段、1
4・・・鍵盤、15・・・操作パネル部、16・・・サ
ンプリング制御操作子群、17・・・エンベロープ制御
抛作子群、18・・・効果制御操作子群、20・・・ト
ーンジェネレータ部、21・・・データメモリ、22・
・・マイクロフォン、24・・・タイマビープ回路、2
7・・・アナログ/ディジタル変換器、28・・・重ね
書き用の加算器、32・・・ゼロクロス検出回路、33
・・・ゼロクロスアドレスラッチ回路、34・・・ノー
トクロック発生回路、37・・・アドレスカウンタ、3
8・・・比較器、40・・・終点アドレスレジスタ、4
7・・・エンベロープ発生器。 特許出願人  ヤ マ ハ 株式会社 代 理 人  弁理士 飯塚 義仁 第1図 第2図 第17図 第18又 第19図
FIG. 1 is a functional block diagram showing an overview of a musical tone generating device according to the present invention, FIG. 2 is a hardware configuration diagram showing an embodiment of an electronic musical instrument to which the musical tone generating device according to the present invention is applied, and FIG. 2 is a diagram schematically showing the data memory read format in various performance modes realized in the embodiment of FIG. 2; FIG. 4 is a diagram showing an example of the address structure of the data memory included in the tone generator section of FIG. 2; Figure 5 is the second
Figure 6 is a block diagram showing a detailed example of the tone generator unit in Figure 2. Figure 7 is the generation of note clock pulses in Figure 6. Timing chart showing an example. 8 to 19 are flowcharts showing examples of programs executed in the microcomputer section of FIG. 2, in which FIG. 8 shows a main routine and FIG. 9 shows a sampling event routine. Figure 10 shows the override event routine, Figure 11 shows the timer beep end event routine, Figure 12 shows the key-on event routine, Figure 13 shows the key-off event routine, Figure 14 shows the sampling end event routine, and Figure 15 shows the reverse. Event routine, U-turn event routine, and loop event routine, FIG. 16 is an echo event routine, FIG. 17 is an increase event routine, FIG. 18 is a decrease event routine,
FIG. 9 shows the all cancel event routine. 1...External sound sampling means, 2...Storage means,
3...Write control means, 4...Read control means, 1
4...Keyboard, 15...Operation panel section, 16...Sampling control operator group, 17...Envelope control operator group, 18...Effect control operator group, 20...Tone Generator section, 21... data memory, 22.
...Microphone, 24...Timer beep circuit, 2
7... Analog/digital converter, 28... Adder for overwriting, 32... Zero cross detection circuit, 33
. . . Zero cross address latch circuit, 34 . . Note clock generation circuit, 37 . . . Address counter, 3
8... Comparator, 40... End point address register, 4
7...Envelope generator. Patent applicant Yamaha Co., Ltd. Representative Patent attorney Yoshihito Iizuka Figure 1 Figure 2 Figure 17 Figure 18 and Figure 19

Claims (4)

【特許請求の範囲】[Claims] (1)外部から入力された音信号をサンプリングする外
部音サンプリング手段と、 波形サンプルデータを記憶する読み書き可能な記憶手段
と、 前記外部音サンプリング手段でサンプリングされた音信
号の波形サンプルデータを前記記憶手段に書き込む書込
み制御手段と、 楽音を発生すべきときに、最初に前記記憶手段の波形サ
ンプルデータを前記書込み時のアドレス順序とは逆方向
に読み出し、続いて該記憶手段の波形サンプルデータを
前記書込み時のアドレス順序に順方向に読み出すことか
らなるシーケンスを少なくとも1回行う読出し制御手段
と を具え、前記記憶手段から読み出された前記波形サンプ
ルデータに対応する楽音信号を発生する楽音発生装置。
(1) External sound sampling means for sampling a sound signal input from the outside; readable/writable storage means for storing waveform sample data; and said storage for storing the waveform sample data of the sound signal sampled by said external sound sampling means. a write control means for writing into the means; when a musical tone is to be generated, the waveform sample data of the storage means is first read out in a direction opposite to the address order at the time of writing, and then the waveform sample data of the storage means is written to the A musical tone generating device, comprising a read control means for performing at least one sequence of reading forward in the address order at the time of writing, and generating a musical tone signal corresponding to the waveform sample data read from the storage means.
(2)前記書込み制御手段は、所定の初期アドレスを起
点として前記音信号の波形サンプルデータを前記記憶手
段に書き込むものであり、 前記読出し制御手段は、前記記憶手段において前記音信
号の波形サンプルデータの最終部分が書き込まれている
アドレスに対応するエンドアドレスを特定し、前記逆方
向読出しでは該エンドアドレスを起点とし前記初期アド
レスを終点として読出しを行い、前記順方向読出しでは
前記初期アドレスを起点とし前記エンドアドレスを終点
として読出しを行うものである特許請求の範囲第1項記
載の楽音発生装置。
(2) The write control means writes waveform sample data of the sound signal into the storage means starting from a predetermined initial address, and the read control means writes waveform sample data of the sound signal in the storage means. The end address corresponding to the address to which the final part of 2. The musical tone generating device according to claim 1, wherein reading is performed with the end address as the end point.
(3)前記読出し制御手段は、前記シーケンスを1回の
み行うかまたは複数回繰返し行うかの選択が可能な手段
を含むものである特許請求の範囲第1項記載の楽音発生
装置。
(3) The musical tone generating device according to claim 1, wherein the readout control means includes means for selecting whether to perform the sequence only once or to repeat it a plurality of times.
(4)前記読出し制御手段は、前記記憶手段に記憶した
波形サンプルデータを順方向に読み出し、その後続けて
該波形サンプルデータを逆方向に読み出すことを選択す
るUターン読出し選択手段と、前記記憶手段に記憶した
波形サンプルデータを逆方向に読み出すことを選択する
リバース読出し選択手段と、前記記憶手段からの波形サ
ンプルデータの読出しを繰り返し行うことを選択するル
ープ読出し選択手段とを含み、前記Uターン読出し選択
手段とリバース読出し選択手段によりUターン読出しと
リバース読出しが同時に選択されたとき、波形サンプル
データを最初に逆方向に読み出し、その後続けて該波形
サンプルデータを順方向に読み出すシーケンスを1回を
行い、前記Uターン読出し選択手段とリバース読出し選
択手段によるUターン読出しとリバース読出しの選択に
加えて前記ループ読出し選択手段により繰り返し読出し
が選択されたとき、前記シーケンスを複数回繰り返し実
行するものである特許請求の範囲第1項記載の楽音発生
装置。
(4) The readout control means includes U-turn readout selection means for selecting to read the waveform sample data stored in the storage means in the forward direction and then read out the waveform sample data in the reverse direction, and the storage means a reverse read selection means for selecting to read out the waveform sample data stored in the storage means in the reverse direction; and a loop read selection means for selecting to repeatedly read out the waveform sample data from the storage means; When U-turn readout and reverse readout are simultaneously selected by the selection means and the reverse readout selection means, a sequence of first reading out the waveform sample data in the reverse direction and then reading out the waveform sample data in the forward direction is performed once. , the above-mentioned sequence is repeatedly executed a plurality of times when, in addition to the selection of U-turn readout and reverse readout by the U-turn readout selection means and reverse readout selection means, repeat readout is selected by the loop readout selection means. A musical tone generator according to claim 1.
JP63086124A 1988-04-07 1988-04-07 Tone generator Expired - Fee Related JP2613788B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63086124A JP2613788B2 (en) 1988-04-07 1988-04-07 Tone generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63086124A JP2613788B2 (en) 1988-04-07 1988-04-07 Tone generator

Publications (2)

Publication Number Publication Date
JPS63289594A true JPS63289594A (en) 1988-11-28
JP2613788B2 JP2613788B2 (en) 1997-05-28

Family

ID=13877954

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63086124A Expired - Fee Related JP2613788B2 (en) 1988-04-07 1988-04-07 Tone generator

Country Status (1)

Country Link
JP (1) JP2613788B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111754962A (en) * 2020-05-06 2020-10-09 华南理工大学 Folk song intelligent auxiliary composition system and method based on up-down sampling

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54161313A (en) * 1978-06-09 1979-12-20 Nippon Gakki Seizo Kk Electronic instrument
JPS6033399U (en) * 1983-08-15 1985-03-07 株式会社ケンウッド Recording and playback device
JPS61245196A (en) * 1985-04-24 1986-10-31 ヤマハ株式会社 Musical sound generation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54161313A (en) * 1978-06-09 1979-12-20 Nippon Gakki Seizo Kk Electronic instrument
JPS6033399U (en) * 1983-08-15 1985-03-07 株式会社ケンウッド Recording and playback device
JPS61245196A (en) * 1985-04-24 1986-10-31 ヤマハ株式会社 Musical sound generation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111754962A (en) * 2020-05-06 2020-10-09 华南理工大学 Folk song intelligent auxiliary composition system and method based on up-down sampling
CN111754962B (en) * 2020-05-06 2023-08-22 华南理工大学 Intelligent auxiliary music composing system and method based on lifting sampling

Also Published As

Publication number Publication date
JP2613788B2 (en) 1997-05-28

Similar Documents

Publication Publication Date Title
US4947723A (en) Tone signal generation device having a tone sampling function
GB2201539A (en) Tone information processing device for an electronic musical instrument
US4054078A (en) Automatic arpeggio electronic musical instrument
JPS63289594A (en) Musical sound generator
JPS6068387A (en) Electronic musical instrument
JP2754646B2 (en) Electronic musical instrument
JPS63289595A (en) Musical sound generator
JPH0664466B2 (en) Electronic musical instrument
JPS63169695A (en) Musical sound generator
JPS63169694A (en) Musical sound generator
JPH0318197B2 (en)
JPS63169696A (en) Musical sound generator
US5116192A (en) Tone generation device capable of generating a special tone
US5185492A (en) Electronic musical instrument having multivoice function for generating musical tones of plural tone colors
JPS6158915B2 (en)
JP2666762B2 (en) Electronic musical instrument
JP2768241B2 (en) Signal processing device
JP3508139B2 (en) Digital signal processor
JP3050055B2 (en) Music generator
JP2754613B2 (en) Digital audio signal generator
JPH063440Y2 (en) Reverberation device
JPS599260Y2 (en) Tone setting device for electronic musical instruments
JP2666764B2 (en) Electronic musical instrument
JPS644157Y2 (en)
JP2734024B2 (en) Electronic musical instrument

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees