JPS63169696A - Musical sound generator - Google Patents

Musical sound generator

Info

Publication number
JPS63169696A
JPS63169696A JP62001211A JP121187A JPS63169696A JP S63169696 A JPS63169696 A JP S63169696A JP 62001211 A JP62001211 A JP 62001211A JP 121187 A JP121187 A JP 121187A JP S63169696 A JPS63169696 A JP S63169696A
Authority
JP
Japan
Prior art keywords
address
data
circuit
sample data
waveform sample
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.)
Pending
Application number
JP62001211A
Other languages
Japanese (ja)
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 JP62001211A priority Critical patent/JPS63169696A/en
Priority to EP87119422A priority patent/EP0274137B1/en
Priority to DE87119422T priority patent/DE3786654T2/en
Priority to US07/141,122 priority patent/US4947723A/en
Publication of JPS63169696A publication Critical patent/JPS63169696A/en
Priority to SG5995A priority patent/SG5995G/en
Priority to HK134395A priority patent/HK134395A/en
Pending 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 musical tones at a desired pitch, in particular, waveform sample data stored in a memory is read out in the forward or reverse direction with a predetermined reference address as the starting point or ending point. The present invention relates to a musical tone generating device in which the reference address can be adjusted arbitrarily by a performer.

〔従来の技術〕[Conventional technology]

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

このような従来のサンプリング方式の楽音発生装置にお
いては、メモリにおける1音分の楽音波形サンプルデー
タの記憶領域が予め定まっており、読出しの際には、こ
の一定の記憶領域の全アドレスを読み出すようになって
いる。
In such a conventional sampling-type musical tone generator, a storage area for musical waveform sample data for one tone is determined in advance in the memory, and when reading data, all addresses in this fixed storage area are read out. It has become.

また、特公昭61−47435号公報には、サンプリン
グした複数周期の波形データを繰返し読み出す際に、該
波形データの最初と最後に対応してスタートアドレスと
終了アドレスを検出し、終了アドレスまで到達したとき
スタートアドレスに戻って読出しを繰返すようにしてい
る。この場合、スタートアドレスと終了アドレスの検出
は、波形データのゼロクロスの検出に基づき行っている
In addition, Japanese Patent Publication No. 61-47435 discloses that when repeatedly reading sampled waveform data of multiple cycles, a start address and an end address are detected corresponding to the beginning and end of the waveform data, and the end address is reached. The system returns to the start address and repeats reading. In this case, the start address and end address are detected based on the detection of zero crossings of waveform data.

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

サンプリング方式の楽音発生装置においては、メモリに
記憶した波形データを順方向に1回読み出すばかりでな
く、順方向に何回も一繰返し読み出したり、逆方向に1
回読み出す、あるいは逆方向に何回も繰返し読み出す、
あるいは順方向に1回読み出した後、逆方向に1回読み
出す等、様々な態様で読み出しを行い、サンプリング音
に基づく楽音を様々なバリエーションで発音することが
考えられている。
In a sampling type musical tone generator, the waveform data stored in the memory is not only read out once in the forward direction, but also read out repeatedly in the forward direction many times, or read out once in the reverse direction.
read out multiple times, or read out in the opposite direction many times,
Alternatively, it has been considered to perform reading in various ways, such as reading once in the forward direction and then reading once in the reverse direction, to produce musical tones based on the sampled sounds in various variations.

その場合、前者のような従来技術ではメモリの一定の記
憶領域を全アドレスにわたって読み出すので、全アドレ
スにわたって決まったパターンでしか繰返すことができ
なかった。また、サンプリングした音が該記憶領域の一
部にしか記憶されていない場合は、繰返し読み出しの際
に波形データが記憶されていないアドレスも決まって読
み出されてしまい、発音の空白期間が長くなりすぎたり
、逆方向読み出の際に即座に発音が開始されない、等の
問題も生じる。
In this case, in the prior art such as the former, a fixed storage area of the memory is read over all addresses, and therefore it is possible to repeat only a fixed pattern over all addresses. In addition, if the sampled sound is stored in only a portion of the storage area, addresses where no waveform data is stored will be read out repeatedly during repeated reading, resulting in a long blank period for sound production. Problems also arise, such as when the sound is too long or when the sound is read out in the reverse direction, the sound does not start immediately.

後者のような従来技術においては、メモリに記憶した外
部音波形サンプルデータの最初と最後に対応してスター
トアドレスと終了アドレスを検出し、このスタートアド
レスと終了アドレスの間で繰返し読み出し制御を行うの
で、上述のような問題は起らないが、一旦検出したスタ
ートアドレスと終了アドレスは変更したり微調整したり
することはできなかったので、繰返し読み出しの態様を
自由に変更することはできなかった。
In the latter type of conventional technology, a start address and an end address are detected corresponding to the beginning and end of external sound waveform sample data stored in memory, and readout control is repeatedly performed between the start address and end address. , the above problem does not occur, but once the start address and end address have been detected, it is not possible to change or fine-tune them, so it is not possible to freely change the mode of repeated reading. .

また、例えば、終了アドレスの手前のアドレスに記憶し
た波形データにノイズが含まれているときこれをカット
することはできなかった。また、繰返し読み出しのつな
ぎ目で意識的に適当な長さの無音区間を作り、音が断続
的に繰返される特殊な演奏効果を作り出すこともできな
かった。
Further, for example, if the waveform data stored at an address before the end address contains noise, it is not possible to cut it. Furthermore, it was not possible to create a special performance effect in which the sound was repeated intermittently by intentionally creating a silent section of an appropriate length at the joint between repeated readings.

この発明は上述の点に鑑みてなされたもので、所定の基
準アドレスを起点又は終点としてメモリに記憶した波形
サンプルデータを順方向に又は逆方向に読み出す場合に
おいて、その基準アドレスを演奏者が任意に調整し得る
ようにすることにより、演奏性能を高めた楽音発生装置
を提供しようとするものである。
This invention has been made in view of the above points, and when reading out waveform sample data stored in memory in a forward or reverse direction using a predetermined reference address as a starting point or end point, a performer can freely select the reference address. The present invention aims to provide a musical tone generating device with improved performance performance by making it possible to adjust the performance.

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

この発明に係る楽音発生装置は、外部から入力された音
信号をサンプリングする外部音サンプリング手段と、波
形サンプルデータを記憶する読み書き可能な記憶手段と
、前記外部音サンプリング手段でサンプリングされた音
信号の波形サンプルデータを前記記憶手段に書き込む書
込み制御手段と、所定の基準アドレスを起点又は終点と
して前記記憶手段の波形サンプルデータを順方向に又は
逆方向に読み出す読出し制御手段と、前記基準アドレス
の値を増減変更する基準アドレス調整手段とを具え、前
記記憶手段から読み出された前記波形サンプルデータに
対応する楽音信号を発生するようにしたものである。
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. write control means for writing waveform sample data into the storage means; read control means for reading out the waveform sample data from the storage means in a forward or reverse direction using a predetermined reference address as a starting point or end point; and a reference address adjustment means for increasing or decreasing the reference address, and is adapted to generate a tone signal corresponding to the waveform sample data read from the storage means.

これを図によって示すと、第1図のようであり、1が外
部音サンプリング手段、2が記憶手段、3が書込み制御
手段、4が読み出し制御手段、5が基準アドレス調整手
段、である。
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, 4 is a read control means, and 5 is a reference address adjustment means.

〔作用〕[Effect]

外部から入力された音信号は外部音サンプリング手段1
によってサンプリングされ、サンプリングされた該音信
号の波形サンプルデータは書込み制御手段3の制御によ
り記憶手段2に書き込まれる。読出し制御手段4では、
所定の基準アドレスを起点又は終点として記憶手段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,
The waveform sample data in the storage means 2 is read out in the forward direction or in the reverse direction using a predetermined reference address as the starting point or ending point.

この基準アドレスの値は、基準アドレス調整手段5によ
り増減変更することがで、きる。記憶手段2から読み出
された波形サンプルデータに対応する楽音信号が発音さ
れる。
The value of this reference address can be increased or decreased by the reference address adjustment means 5. A musical tone signal corresponding to the waveform sample data read out from the storage means 2 is generated.

基準アドレス調整手段5により基準アドレスの値を変更
することにより、記憶手段2から波形サンプルデータを
順方向又は逆方向に読み出す際の起点又は終点のアドレ
スが変更される。読み出しの起点又は終点のアドレスが
変更されることにより、記憶手段2から読み出すべきア
ドレスの範囲が変更され、発生音の範囲が変更される。
By changing the value of the reference address by the reference address adjustment means 5, the address of the starting point or end point when reading the waveform sample data from the storage means 2 in the forward or reverse direction is changed. By changing the read start point or end point address, the range of addresses to be read from the storage means 2 is changed, and the range of generated sounds is changed.

これにより1例えば、本来の基準アドレスが波形サンプ
ルデータの最終アドレスに設定されている場合であって
、この最終アドレスの手前のアドレスに記憶した波形サ
ンプルデータにノイズが含まれているような場合は、基
準アドレスを手前のアドレス寄りに適宜調整することに
より、記憶手段2から読み出すべきアドレスの範囲内に
ノイズを含むアドレスが入らないようにすることができ
As a result, 1. For example, if the original reference address is set to the final address of the waveform sample data, and the waveform sample data stored at the address before this final address contains noise, By appropriately adjusting the reference address toward the nearer address, it is possible to prevent addresses containing noise from falling within the range of addresses to be read from the storage means 2.

こうしてノイズを含む波形サンプルデータの部分の発音
をカットすることができる。
In this way, it is possible to cut out the sound of the part of the waveform sample data that includes noise.

あるいは1本来の基準アドレスが波形サンプルデータの
最終アドレスに設定されている場合に、基準アドレスを
この最終アドレスよりも先のアドレスに適宜調整するこ
とにより、記憶手段2から読み出すべきアドレスの範囲
を波形サンプルデータが実際には記憶されていないアド
レスにまで拡大することができ、この拡大されたアドレ
ス範囲で繰返し読み出しを行うことにより、繰返し読み
出しのつなぎ目で意識的に適当な長さの無音区間を作り
、音が断続的に繰返される特殊な演奏効果を作り出すこ
ともできる。また、その他の調整の仕方によって、繰返
し読み出しの態様を自由に変更することができる。
Alternatively, when the original reference address of 1 is set to the final address of the waveform sample data, by appropriately adjusting the reference address to an address beyond this final address, the range of addresses to be read from the storage means 2 can be set to the waveform sample data. Sample data can be expanded to addresses where it is not actually stored, and by repeatedly reading in this expanded address range, a silent interval of an appropriate length can be intentionally created at the joint between repeated reads. It is also possible to create special performance effects in which sounds are repeated intermittently. Furthermore, the mode of repeated reading can be freely changed by other adjustment methods.

このように、メモリに記憶した波形サンプルデータを順
方向又は逆方向に読み出す際の起点又は終点となる基準
アドレスを演奏者が任意に調整し得るようにすることに
より、サンプリング方式の楽音発生装置としての演奏性
能を向上させることができる。
In this way, by allowing the performer to arbitrarily adjust the reference address that is the starting point or ending point when reading out the waveform sample data stored in the memory in the forward or reverse direction, it can be used as a sampling-type musical tone generator. performance performance can be improved.

〔実施例〕〔Example〕

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

第2図はこの発明に係る楽音発生装置を適用した電子楽
器の一実施例のハード構成を示すもので。
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.

この実施例の電子楽器においてはCPU (中央処理ユ
ニット)11、プログラムROM (リードオンリーメ
モリ)12及びデータ及びワーキングRAM(ランダム
アクセスメモリ)13を含むマイクロコンピュータ部に
よって各種の動作や処理が制御される。鍵盤14は、楽
音の音高を指定するための複数の鍵を具えている。
In the electronic musical instrument of this embodiment, various operations and processes are controlled by a microcomputer section including a CPU (Central Processing Unit) 11, 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とオーバーライドスイッチ○VRWR
は外部音の波形サンプルデータをトーンジェネレータ部
20内のデータメモリ21に書き込む制御を行うべきこ
とを指示するスイッチである。リバーススイッチRVR
8とUターンスイッチUTRNとループスイッチLOO
PとエコースイッチECHOは該メモリ21に記憶した
波形サンプルデータを読み出して演奏を行う際の演奏モ
ードを指示するスイッチである。
In the sampling control operator group 16, the sampling switch SMPL and the override switch ○VRWR
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
8 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.

リバーススイッチRVR8は、メモリ21に記憶した外
部音の波形サンプルデータを逆方向に読み出して行う演
奏を指示するとき操作するものである。このような読出
しを称して単に「リバース」という。なお、メモリ21
を逆方向に読み出すとは、アドレスの値の大きい方から
順に読み出すことである。これに対して、メモリ21を
順方向に読み出すとは、アドレスの値の小さい方から順
に読み出すことである。
The reverse switch RVR8 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ターン」と「リバース」を同時に選択
・指示することが可能であ゛す、その場合は、メモリ2
1に記憶した外部音の波形サンプルデータを逆方向に読
み出した後、順方向に折返して読み出すことを繰り返す
。これを称して「Uターン・リバース・ループ」という
It is possible to select and instruct "loop", "U-turn" and "reverse" at the same time. In that case, memory 2
After reading out the waveform sample data of the external sound stored in 1 in the backward direction, the process repeats the process of turning back and reading out the data in the forward direction. This is called a "U-turn reverse loop."

上述のような演奏モードの一覧が第3図に示されている
。演奏モードは8個あり、各モードを記号M1〜M8で
区別する。左欄は、モード名を示し、これは上述の名称
に対応している。従って、各モードが選択される条件は
上述から明らかであろう。なお、「ノーマル」モードM
1はメモリ21に記憶した外部音の波形サンプルデータ
を順方向に1回だけ読み出すモードであり、特別のモー
ドM2〜M8が選択されていないときこの「ノーマル」
モードとなる。右欄は、各モードにおけるメモリ21か
らの波形サンプルデータの読出し状態を模式的に示した
ものであり、矢印の方向が読出しの順方向又は逆方向の
別を示している。「ループ」に関連するモードM3.M
5.M6.M8では1図示のような読出しが繰返される
。順方向読出しにおける起点は所定のスタートアドレス
であり、終点は所定のエンドアドレスである。逆に、逆
方向読出しにおける起点はエンドアドレスであり、終点
はスタートアドレスである。
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 state of waveform sample data from the memory 21 in each mode, and the direction of the arrow indicates whether the readout is in the forward or reverse direction. Mode M3 related to “loop”. M
5. M6. In M8, reading as shown in FIG. 1 is repeated. The starting point in forward reading is a predetermined start address, and the ending point is a predetermined end address. Conversely, 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の操作に応じてアドレス値が減少する。こ
の実施例では。
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 example.

−例として、増加スイッチINCと減少スイッチDEC
によるエンドアドレスの増減変更は、1アドレス単位で
はなく、複数のアドレスからな、るブロック単位で行わ
れるようになっている。
- As an example, an increase switch INC and a decrease switch DEC
Increasing or decreasing the end address is performed not in units of one address, but in units of blocks made up 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 means that the performance mode is automatically set to "loop" and the release time of the volume envelope of the generated musical sound is automatically set to be long (for example, to the longest). The purpose is to repeatedly read data from a memory 21 and to cause the musical tone to be 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 sensor group 16 cancels all or predetermined data of various types set, selected, changed, and adjusted on the operation panel section 15 in relation to the sampled waveform sample data. It is operated to cancel and return the contents of these data to the state they were in when they were first sampled.

つまり、サンプリングした波形サシプルデータに関連し
て編集した様々のデータのt1g集内容をキャンセルし
、編集前の初期状態に戻すためのものである。このよう
に編集内容をキャンセルして編集前の初期状態に戻せる
ようにすることにより、失敗をおそれることなく、自由
な編集を行うことができるようになり、サンプリングし
た波形サンプルデータに関連する編集機能を向上させる
ことができる。
In other words, it is for canceling the contents of the t1g collection of various data edited in relation to the sampled waveform sasiple 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に書き込む機能と、鍵盤14での押鍵等に応じて
データメモリ21の波形サンプルデータを読み出す機能
と、読み出した波形サンプルデータの音量エンベロープ
を制御したり各種の楽音効果を付午する機能とを具えて
いる。トーンジェネレータ部20から発生されたディジ
タル楽音信号はアナログ変換された後、サウンドシステ
ム23に与えられる。
The tone generator section 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 a function of writing the sampled digital waveform sample data into the data memory 21. It has a function of reading waveform sample data from the data memory 21 in response to key presses, etc., 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に基づきト
ーンジェネレータ部2oではサンプリング動作を開始す
る。
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 2o starts a sampling operation.

鍵盤14における押鍵・離鍵検出のための鍵走査及び発
音割当て処理や、操作パネル部15におけるスイッチ等
の振作検出のための走査及び表示器等の点灯・消灯処理
や、トーンジェネレータ部20におけるサンプリングデ
ータの書込み・読出し制御、など各種の処理がマイクロ
コンピュータ部によって実行される。
Key scanning and sound generation assignment processing for detecting key presses and key releases on the keyboard 14, scanning for detecting shaking of switches and the like on the operation panel section 15, and lighting/extinguishing processing of 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.

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

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

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

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

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

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

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 force the contents of the loop flag LPFLG to 1''' when the echo effect is selected. 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 double 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 an area for storing operation detection data of the other operator group 19.

その他のデータ及びワーキング領域が設けられている。Other data and working areas are provided.

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

第6図のトーンジェネレータ部2℃において、データバ
ス25を介してマイクロコンピュータ部側とデータの授
受を行うために、インタフェース26が設けられている
。インタフェース26は、バッファレジスタを含むもの
である。マイクロコンピュータ部から与えられたデータ
はインタフェース26を介してトーンジェネレータ部2
0内の所定の回路に入力される。また、トーンジェネレ
ータ部20内の所定の回路から出力されたデータはイン
タフェース26及びデータバス25を介してマイクロコ
ンピュータ部に与えられる。
At the tone generator section 2° C. in 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.
It is input to a predetermined circuit within 0. 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”ならば読出しモード
となり、“0”ならば書込みモードとなる。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 "0", it will be a read mode, and if it is "0", it will be a write mode. AD is an address input, and DT is a data input/output terminal.

マイクロフォン22でピックアップした外部音′ の信
号はアナログ/ディジタル変換器27でクロックパルス
φ□に従ってサンプリングされ、ディジタル変換される
。ディジタル変換された波形サンプルデータは、重ね書
き用の加算器28、ラッチ回路29.ゲート30を介し
てデータメモリ21のデータ入出力端子DTに与えられ
る。また、アナログ/ディジタル変換器27から出力さ
れた波形サンプルデータは立上り検出回路31に与えら
れ、音の立上りが検出される。音の立上り検出に応じて
トリガパルスTRGが出力される。このトリガパルスT
RGは、データメモリ21への波形サンプルデー夕の書
込み開始タイミングを指示する信号として使用される。
The external sound signal picked up by the microphone 22 is sampled by the analog/digital converter 27 in accordance with the clock pulse φ□ and converted into a digital signal. The digitally converted waveform sample data is transferred to an adder 28 for overwriting, a latch circuit 29 . The signal is applied to the data input/output terminal DT of the data memory 21 via the gate 30. Further, the waveform sample data outputted from the analog/digital converter 27 is provided to a rising edge detection circuit 31, and the rising edge 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 T
RG is used as a signal to instruct the timing to start writing waveform sample data into the data memory 21.

また、アナログ/ディジタル変換器27から出力された
波形サンプルデータはゼロクロス検出回路32に与えら
れ、ゼロクロスが検出される。この実施例では、ゼロク
ロス検出回路32の構成の簡単化のために、波形サンプ
ルデータのレベルが所定のゼロ判定範囲(ゼロレベルの
±αの範囲:αは適宜のレベル)内に入ったか否かを検
出し、ゼロ判定範囲を外れたときゼロクロス検出パルス
ZCRを出力するようにしている。−ゼロクロス検出パ
ルスZCRはゼロクロスアドレスラッチ回路33のラッ
チ制御入力しに与えられ、ゼロクロスが検出されたとき
の書込みアドレスを該ラッチ回路33にラッチする。ゼ
ロクロス検出パルスZCRは波形サンプルデータのゼロ
クロス毎に発生されるので、ラッチ回路33のゼロクロ
スアドレスは、何度も書き換えられ、最後にラッチ回路
33に残されたデータが波形サンプルデータにおける最
終のゼロクロスアドレスである。
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 cross detection pulse ZCR is applied to the latch control input of the zero cross address latch circuit 33, and the write address when the zero cross is detected is latched into the latch circuit 33. Since the zero cross detection pulse ZCR is generated every 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. It is.

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

その読み書きモードを制御する。Control its read/write mode.

後述するように、サンプリングモード(通常のサンプリ
ングモード又はオーバーライド・サンプリングモード)
のとき、信号SMI又は5M2が“1″となり、オア回
路45からナンド回路44にIJ I IIが与えられ
る。これにより、ナンド回路44は遅相のノートクロッ
クパルスφ2を反転し、データメモリ21の読み書き制
御人力R/Wに加える。従って、データメモリ21は、
進相のノートクロックパルスφ、が“1”のとき読出し
モード、遅相のノートグロックパルスφ2が111 I
Iのとき書込みモードとなり、1アドレスの時間内で時
分割的に読み書きモードが切り換わる。これは、後述す
るオーバーライド・サンプリングモードのための処置で
ある。なお、各種の演奏モードM1〜M8のときは、信
号SMI及び5M2が0”であり、ナンド回路44は常
に“1”を出力し、データメモリ21は常時書込みモー
ドとなる。なお、1/2分周したノートクロックパルス
φ1をアドレスカウンタ37でカウントするので、ノー
トクロック発生回路34は目的のノードクロックパルス
φ□の2倍の周波数のノートクロックパルスφ。を発生
するものとする。
As described below, the sampling mode (normal sampling mode or override sampling mode)
At this time, the signal SMI or 5M2 becomes "1", and IJ I II is applied from the OR circuit 45 to the NAND circuit 44. 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
When the leading phase note clock pulse φ is “1”, the read mode is activated, and the slow phase note clock pulse φ2 is 111 I
When it is I, the write mode is entered, and the read/write mode is switched in a time-sharing manner within the time of one address. This is a procedure for the override sampling mode, which will be described later. In the various performance modes M1 to M8, the signals SMI and 5M2 are 0'', the NAND circuit 44 always outputs 1, and the data memory 21 is always in the write mode. Since the frequency-divided note clock pulse φ1 is counted by the address counter 37, the note clock generating circuit 34 is assumed to generate a note clock pulse φ having twice the frequency of the target node clock pulse φ□.

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

アドレスカウンタ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 the end point address register 40 The initial address data stored in this 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入力を選択し、0
”のときつまりアドレスの逆方向変化を指示していると
きは、A入力を選択する。
When this direction instruction signal DIR is "1", that is, when it instructs a forward change of the address, the B input is selected and 0
”, that is, when instructing to change the address in the opposite direction, select the A input.

なお、後述するようにエンドアドレスデータ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 address units, 8 bits of all "1" are added to the lower order of AD and the result is applied to the B input of the selector 39. Thereby, the end address data LPAD indicates the final address within the block.

アドレスカウンタ37のプリセットデータ入力PRDに
はセレクタ42の出力が加わる。このセレクタ42は、
上述のセレクタ39とは反対に。
The output of the selector 42 is added to the preset data input PRD of the address counter 37. This selector 42 is
In contrast to selector 39 described above.

方向指示信号DIRが“′1”のときつまりアドレスの
順方向変化を指示するとき、A入力に加わる全12ビツ
ト“O”の初期アドレスデータを選択し、60″のとき
つまりアドレスの逆方向変化を指示するときは、B入力
に加わるエンドアドレスデータLPADを選択する。こ
のエンドアドレスデータLPADもその下位に8ビツト
のオール“1”を追加してブロック内の最終アドレスを
示すものとされる。
When the direction instruction signal DIR is "1", that is, when instructing a forward change in address, the initial address data of all 12 bits "O" applied to the A input is selected, and when it is 60'', that is, when instructing a forward change in address, the initial address data is selected. When instructing, the end address data LPAD to be added to the B input is selected.This end address data LPAD also has 8 bits of all "1" added to its lower order to indicate the final address in the block.

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

セレクタ39からの終点アドレスデータをロードする。Load end point address data from selector 39.

方向指示信号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 input 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から読み出された波形サンプルデータ
は1乗算器46に入力され、エンベロープ発生器47か
ら与えられるエンベロープ波形データが乗算される。エ
ンベロープ発生器47は。
The waveform sample data read from the data memory 21 is input to the 1 multiplier 46, and is multiplied by the envelope waveform data provided from the envelope generator 47. The envelope generator 47 is.

マイクロコンピュータ部からインタフェース26を介し
て与えられるアタックタイムデータAT、ディケイタイ
ムデータDT、サスティンレベルデータSL、レリース
タイムデータRTに基づき設定される形状のエンベロー
プ波形を、キーオンパルスKONP、0KONP及びキ
ーオフパルスKOFP、0KOFPに応答して発生する
。周知のように、キーオンパルスに応答してアタック、
ディケイ、サスティンと続くエンベロープ波形部分を発
生し、キーオフパルスに応答してレリース部分を発生す
る。ここで、一方のキーオンパルスKONP及びキーオ
フパルスKOFPは、通常の押   2鍵操作に基づい
て与えられるものであり、もう一方のキーオンパルス0
KONP及びキーオフパルス0KOFFは、サンプリン
グしたばかりの楽音をオウム返しに即座に自動的に発音
するために与えられるものである。
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 is converted into key-on pulses KONP, 0KONP, and key-off pulses KOFP. , 0KOFP. As is well known, attack occurs in response to a key-on pulse.
It generates an envelope waveform section that continues with decay and sustain, and generates a release section in response to a key-off pulse. Here, one key-on pulse KONP and key-off pulse KOFP are given based on the normal press of two keys, and the other key-on pulse is 0.
KONP and key-off pulse 0KOFF are provided to immediately and automatically generate the musical tone that has just been sampled.

乗算器46で音量エンベロープが制御された波形サンプ
ルデータは、ディジタル/アナログ変換器48に与えら
れてアナログ信号に変換され、最終的にサウンドシステ
ム23に与えられる。また。
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. Also.

効果回路49にも適宜与えられ、リバーブ、トレモロ、
ビブラート等の楽音効果が付与される。
It is also applied to the effect circuit 49 as appropriate, reverb, tremolo,
Musical sound effects such as vibrato are added.

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

第8図は、メインルーチンを示すもので、まず。Figure 8 shows the main routine, first.

キースキャン処理においては、鍵盤14の各社を走査し
、押鍵及び離鍵を検出する。この検出に応じて所定の処
理を実行する。ここでは、新たな押鍵を検出したとき第
12図のキーオンイベントルーチンを実行し、新たな離
鍵を検出したとき第13図のキーオフイベントルーチン
を実行する。
In the key scanning process, each company 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図のサンプリングエンド
イベントルーチンを実行する。また、リバーススイッチ
RVR8,UターンスイッチUTRN、ループスイッチ
LOOP、エコースイッチE CHO1増加スイッチェ
NC1減少スイッチDEC。
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 RVR8, U-turn switch UTRN, loop switch LOOP, echo switch E CHO1 increase switch NC1 decrease switch DEC.

オールキャンセルスイッチCANSELが夫々オフから
オンに変わったことを検出したとき、第15回〜第19
図のリバースイベントルーチン、Uターンイベントルー
チン、ループイベントルーチン、エコーイベントルーチ
ン、増加イベントルーチン、減少イベントルーチン、オ
ールキャンセルイベントルーチンを夫々実行する。
When it is detected that the all cancel switch CANSEL changes from OFF to ON, the 15th to 19th
The reverse event routine, U-turn event routine, loop event routine, echo event routine, increase event routine, decrease event routine, and all-cancel event routine shown in the figure 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 [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をTOで示す。
Normal sampling operation - When performing normal sampling operation, first turn on the sampling switch SMPL. 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), and sends a start trigger signal to the timer beep circuit 24 to generate a beep sound (step 10).
3) In the flowchart, the tone generator section 20 is indicated by TO.

タイマビープ回路24では、このスタートトリガ信号に
応じて所定時間(例えば300m5)ビープ音を発音し
、この時間が経過すると、ビープエンドパルスBPEN
Dを出力する。
The timer beep circuit 24 emits a beep sound for a predetermined period of time (for example, 300m5) 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音)のノートクロ
ックパルスφ。を発生する。ビープ音の発音時間中に、
このノードクロックパルスが安定して発生されるように
なり、サンプリングの準備が完了する。このように、ビ
ープ音はサンプリングの4!!備完了を知らせる役割を
果す。
Referring to FIG. 6, in the tone generator section 20,
A note clock pulse φ of a reference pitch (A4 tone) is generated from the note clock generation circuit 34 in response to the given new key code NKC. occurs. During the beep sound,
This node clock pulse is now stably generated and preparation for sampling is completed. In this way, the beep sound is 4 samples! ! It plays the role of letting you know when preparations are complete.

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

次のステップ106では、トーンジェネレータ部20に
与えるべきデータを次のように初期設定してトーンジェ
ネレータ部20に送出する。演奏モードの各種モード信
号M1〜M8を0”にする、エンドアドレスデータLP
ADを最終ブロックを示す値「15」に設定する。アタ
ックタイムデータAT、ディケイタイムデータDT、レ
リースタイムデータRTを夫々rOJに設定し、サステ
ィンレベルデータSLを最大値rMAXJに設定する。
In the next step 106, data to be given to the tone generator section 20 is initialized as follows and sent to the tone generator section 20. End address data LP that sets various mode signals M1 to M8 of the performance mode to 0''
Set AD 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により所望の外r音をピックアップする。第6図
を参照すると、前述の通り、ピックアップされた信号は
アナログ/ディジタル変換器27でサンプリングされ、
ディジタル変換される。ディジタル変換された波形サン
プルデータの音の立上りが立上り検出回路31で検出さ
れ、音の立上り検出に応じてトリガパルスTRGが出力
される。このトリガパルスTRGは、アンド回路50に
入力される。アンド回路50の他の入力には、サンプリ
ングモード信号SM1の“1”がオア回路51を介して
与えられており、トリガパルスTRGに同期してアンド
回路50の出力が“1”となり、これがサンプリングス
タートパルスSMPSTとしてオア回路52を介してフ
リップフロップ43のセット人力Sに与えられると共に
、オア回路53を介してプリセットパルスPRPとして
アドレスカウンタ37のプリセット制御入力PRに与え
られ、かつ終点アドレスレジスタ40に与えられる。ま
た、サンプリングスタートパルスSMPSTがオア回路
54を介して、サンプリングモード信号SMIがオア回
路55を介して、夫々アンド回路56に入力され、該ア
ンド回路56の出カバ1”がT−フリップフロップ41
のセット入力Sに与えられる。
On the other hand, after confirming the beep sound, the performer uses the microphone 22 to pick up a desired external 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 an AND circuit 50. “1” of the sampling mode signal SM1 is applied to the other input of the AND circuit 50 via the OR circuit 51, and the output of the AND circuit 50 becomes “1” in synchronization with the trigger pulse TRG, which is the sampling mode signal SM1. It is applied as a 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 as a preset pulse PRP via the OR circuit 53, and to the end point address register 40. Given. 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.
is given to the set input S of .

これにより、T−フリップフロップ41から出力される
方向指示信号DIRが1′1”となり、セレクタ42で
初期アドレス(オール“0″)を選択してアドレスカウ
ンタ37にプリセットし、セレクタ39では最終ブロッ
クを示すエンドアドレスLPADを選択して終点アドレ
スレジスタ4oにロードし。
As a result, the direction instruction signal DIR output from the T-flip-flop 41 becomes 1'1'', the selector 42 selects the initial address (all 0's) and presets the address counter 37, and the selector 39 selects the final block. Select the end address LPAD indicating the end point address LPAD and load it into the end point address register 4o.

アドレスカウンタ37はアップカウントに設定される。Address counter 37 is set to count up.

そして、フリップフロップ43のセット出力1゛1“に
よりアンド回路36が可能化され、A4音に対応するレ
ートのノートクロックパルスφ、がアドレスカウンタ3
7に入力される。
Then, the AND circuit 36 is enabled by the set output 1"1" of the flip-flop 43, and the note clock pulse φ, whose rate corresponds to the A4 tone, is output to the address counter 3.
7 is input.

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

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

アナログ/ディジタル変換器27から出力される外部音
のディジタル波形サンプルデータは、加算器28の一方
入力に与えられる。加算器28の他方入力には上記ゲー
ト57の出力が与えられるが、これは上述のように11
0 ′1であるので、外部音のディジタル波形サンプル
データは加算器28を単に通過してラッチ回路29に与
えられる。ラッチ回路29は、書込みタイミングである
ノートグロックパルスφ□のタイミングでラッチ動作を
行う。なお、アナログ/ディジタル変換器27における
アナログ/ディジタル変換動作は、進相のノートクロッ
クパルスφ1のタイミングで行う。
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 11 as described above.
0 '1, 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 φ□, which is the write timing. 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及び8M2が110”であり、アンド回路59は
常に′0”を出力し、ゲート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 node clock pulse φ2 is 1'', that is, only at the write timing. In performance modes M1 to M8, the signals SMI and 8M2 are 110", the AND circuit 59 always outputs '0', and the gate 30 is always closed, so if noise is picked up by the microphone 22, You can also 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から出力された
ゼロクロス検出パルスZCRに応じて、ゼロクロスが検
出されたときの書込みアドレスがゼロクロスアドレスラ
ッチ回路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 ZCR 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からのサ
ンプリングモード信号SM1の“1”により可能化され
ているので、エンドパルスENDに対応するl(I I
tがアンド回路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. This AND circuit 60 is enabled by "1" of the sampling mode signal SM1 from the OR circuit 61, so that l(I I
t is from the AND circuit 60 to the OR circuit 62. It is inputted to the reset input R of the flip-flop 43 via the delay flip-flop 63. The delay flip-flop 63 delays the node clock pulse φ□ by one clock. As a result, one clock after the output 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. In particular, 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に対応する1”がアンド回路64
から出力され、これがサンプリングエンド信号SMPE
NDとしてマイクロコンピュータ部に送出される。また
、ゼロクロスアドレスラッチ回路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, the AND circuit 64
This is the sampling end signal SMPE.
It is sent to the microcomputer section as an ND. 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”にセットし、他のフラグを“0”にリセットす
る(ステップ101a)、これに続くステップ102a
Override sampling operation When writing waveform sample data of a newly sampled sound over the sampled sound in the light, 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 "0" (step 101a), followed by step 102a.
.

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では、サンプリングモード信号SM
1を0”にセットし、8M2を“1″にセットして、ト
ーンジェネレータ部2oに送出する。その−後、通常の
サンプリングモードと同様に、ステップ106゜107
.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 flag SMPFLG
is "0", so the determination is NO and the process goes to step 109. In step 109, the sampling mode signal SM
1 is set to "0", 8M2 is set to "1", and sent to the tone generator section 2o.After that, steps 106 and 107 are performed in the same way as in the normal sampling mode.
.. 108 processing is executed.

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

第6図を参照すると、サンプリングモード信号SM2が
、SMIと同様に、オア回路45.51゜55.58.
61.65に入力されており、この点に関しては、トー
ンジェネレータ部20は前述の通常のサンプリングモー
ドの場合と全く同様に動作する。異なる点は、信号SM
2がゲート57の制御入力に与えられていることである
。これにより、データメモリ21から読み出された波形
サンプルデータが加算器28に入力され、アナログ/デ
ィジタル変換器27から与えられる新たな波形サンプル
データと加算される。
Referring to FIG. 6, like SMI, the sampling mode signal SM2 is an OR circuit of 45.51°55.58.
61.65, and in this regard, 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 SM
2 is applied to the control input of 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に与えられる信号SM2の1”により、ノートクロッ
クパルスφ2を反転した信号がデータメモリ21の読み
書き制御入力R/Wに与えられ、該データメモリ21は
1アドレス時間の前半で読出しモードとなり、後半で書
込みモードとなる。1アドレス時間の前半でデータメモ
リ21から読み出された先にサンプリングされた音の波
形サンプルデータが、信号SM2の“1”によって開放
されたゲート57を通って加算器28に入力され、新た
にサンプリングされた外部音の波形サンプルデータと加
算される。加算された波形サンプルデータは、前述と同
様に、1アドレス時間の後半のタイミング(φ2が11
117のタイミング)でラッチ回路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 input R/W of the data memory 21, and the data memory 21 enters the read mode in the first half of one address time, and in the second half. The write mode is entered.The waveform sample data of the previously sampled sound read from the data memory 21 in the first half of one address time passes through the gate 57, which is opened by the signal SM2 being "1", and is added to the adder 28. and added to the newly sampled external sound waveform sample data.The added waveform sample data is added to the timing of the second half of one address time (φ2 is 11
117 timing) in the latch circuit 29,
The data is input to the data memory 21 via the gate 30 and written to the corresponding address.

こうして、既にサンプリングしである音の波形サンプル
データに新たにサンプリングした音の波形サンプルデー
タを加算したデータがメモリ21に書き込まれる。前述
と同様に、書込みアドレスが最終アドレスに到達すると
、アン゛ド回路64からサンプリングエンド信号SMP
ENDが発生される。また、前述と同様に、新たにサン
プリングした波形サンプルデータの最後のゼロクロスア
ドレスがラッチ回路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. Similarly to the above, when the write address reaches the final address, the sampling end signal SMP is output from the AND circuit 64.
END 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の押鍵によ
って適宜変更することができる。
Crossover of Sampling Rates 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), but 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つまりど
ちらかのサンプリングモードであれば、ステップ112
に行き、二ニーキーコードレジスタNKEYの内容をニ
ューキーコードNKCとしてトーンジェネレータ部20
に送出する。これに基づき、トーンジェネレータ部20
のノートクロック発生回路34から発生されるノードク
ロツタパルスφ。(つまりφ8.φ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 112
and input the contents of the second key code register NKEY to the tone generator section 20 as the new key code NKC.
Send to. Based on this, the tone generator section 20
The node clock pulse φ generated from the note clock generation circuit 34 of. (that is, φ8.φ2) corresponds to the pitch specified on the keyboard 14.

こうして、サンプリングレートを所望の音高に対応する
ものに変更してから、所望の外部音をサンプリングする
ようにしてもよい。
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音の音信号を外部か
ら入力してオーバーライ1−・サンプリングする。更に
次に、サンプリングレートをC4音に設定し、上記と同
じC4音の音信号を外部から入力してオーバーライド・
サンプリングする。こうして、C4,E4.G4の音高
の3音の波形サンプルデータを加算したものがデータメ
モリ21に記憶される。この場合、押鍵に応じた所望の
音高のレートで該データメモリ21から波形サンプルデ
ータを読み出せば、押圧鍵を根音とするメジャー和音の
楽音信号を発音することができる。
For example, in the case of a C major chord, the sampling rate is first set to the C4 note, and a sound signal of the C4 note of a 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 to perform override 1-sampling. Next, set the sampling rate to C4 sound and input the same C4 sound signal as above from the outside to override.
sample. 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.

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

サンプ1ング 了a・の」 前述のように、外部音波形サンプルデータの書込み終了
時にサンプリングエンド信号SMPENDが発生される
と、第14図のサンプリングエンドイベントルーチンが
実行される。
SAMPLING END A・NO 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が1”であるかを調べ、Noつまり
通常のサンプリングモードのときは、ステップ115に
進み、ゼロクロスアドレスバッファZ CRA D B
の内容をエンドアドレスバッファLPADBに記憶する
。こうして、波形サンプルデータの最後のゼロクロスア
ドレスデータがエンドアドレスデータとしてバッファL
PADBに記憶される。
In the next step 114, it is checked whether the override sampling flag 0VWFLG is 1", and if No, that is, normal sampling mode, the process proceeds to step 115, and the zero cross address buffer Z CRA D B
The contents of are stored in the end address buffer LPADB. In this way, the last zero cross address data of the waveform sample data is stored in the buffer L as the end address data.
Stored in PADB.

次に、サンプリングフラグSMPFLG及び0VWFL
Gを共に110”にリセットしくステップ116)、 
 トーンジェネレータ部20に送出する信号の内容を、
SMIと8M2が共ニ”O”、Mlが“1”、M2〜M
8を“□ IIに夫々設定し、かつバッファLPADH
の内容をエンドアドレスデータLPADとして送出する
(ステップ117)。
Next, the sampling flag SMPFLG and 0VWFL
Reset G to 110'' (step 116),
The content of the signal sent to the tone generator section 20 is
SMI and 8M2 are both “O”, Ml is “1”, M2~M
8 to “□ II” and the buffer LPADH
The content of is 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.

オーバーライド・サンプリング 7時の 環オーバーラ
イド・サンプリングが終了したときは、第14図のステ
ップ114がYESと判定され、ステップ119に進み
、現在のエンドアドレスバッファLPADBの内容(こ
れは前回サンプリングした波形サンプルデータの最終ゼ
ロクロスアドレスを示している)がゼロクロスアドレス
バッファZCRADBの内容(これは今回サンプリング
した波形サンプルデータの最終ゼロクロスアドレスを示
している)より小さいかを調べる。YESならば、ステ
ップ115に進み、バッファLPADHの内容を今回の
最終ゼロクロスアドレスデータに書き替える。NOなら
ば、ステップ115は行わずに、ステップ120を経由
してステップ116に行く。
Override Sampling 7 o'clock Ring When override sampling is completed, step 114 in FIG. (indicating the final zero-crossing address of) is 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 LPADH are rewritten to the current final zero-crossing address data. If NO, the process goes to step 116 via step 120 without performing step 115.

こうして、オーバーライドの場合は1重ね書きされた複
数の外部音サンプリングデータのうちアドレス長の最も
長いデータの最終ゼロクロスアドレスがエンドアドレス
データとしてバッファ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 as end address data in the buffer LPADB.

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

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

第6図を参照すると、トーンジェネレータ部20では、
このオウム返し発音用キーオンパルス0KONPがオア
回路66を介してエンベロープ発生器47に入力される
と共に、オア回路52,53.54及びフリップフロッ
プ67のセット人力Sにも入力される。
Referring to FIG. 6, in the tone generator section 20,
This parrot sounding key-on pulse 0KONP 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”となる、
また、キーオンパルスOKONPに応じてオア回路53
からプ1ノセットパルスPRPが出力される。これによ
り、セレクタ42で初期アドレスデータ(オール“0”
)が選択されてアドレスカウンタ37にプリセットされ
、セレクタ39でエンドアドレスデータLPADが選択
されてレジスタ40にロードされる。また。
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".
Also, in response to the key-on pulse OKONP, the OR circuit 53
The P1 no set pulse PRP is output from. As a result, the selector 42 selects the initial address data (all “0”).
) is selected and preset in the address counter 37, and end address data LPAD is selected by the selector 39 and loaded into the register 40. Also.

キーオンパルス0KONPに応じてフリップフロップ4
3がセットされ、アドレスカウンタ37がカウント動作
を開始する。この場合、ニューキーコードNKCは変更
されていないので、書込み時と同じレートのノートクロ
ックパルスφ1がカウントされるゆこうして、アドレス
カウンタ37は、アップカウントを行い、初期アドレス
を起点とし、エンドアドレスLPADを終点として順方
向にアドレス信号が変化する。
Flip-flop 4 according to key-on pulse 0KONP
3 is set, and the address counter 37 starts counting. In this case, since the new key code NKC has not been changed, the note clock pulse φ1 at the same rate as when writing is counted, and the address counter 37 counts up, starting from the initial address and reaching the end address LPAD. The address signal changes in the forward direction from the end point.

データメモリ21は信号SMI、SM2が共に′″0”
であることにより常時読出しモードとなる。
In the data memory 21, both signals SMI and SM2 are ``0''
By being in the constant read mode.

こうして、直前に書込んだばかりの波形サンプルデータ
が頭から読み出される。
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の出力“1″が与
えられているので、エンドパルスENDに応じてアンド
回路69の出力が“1″となり、これがオウム返し発音
用のキーオフパルスOK○FPとしてオア回路70を介
してエンベロープ発生器47に与えられる。このように
自動的に作成されたキーオフパルス○KOFFによって
、エンベロープ発生器47から発生していた直接キーイ
ング型のエンベロープ波形データがレベル0に立下がる
。こうして、オウム返しの自動発音が終了する。なお、
フリップフロップ67は、キーオフパルス○KOFFを
遅延フリップフロップ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. Since the other input of this AND circuit 69 is given the output "1" of the flip-flop 67 set by the key-on pulse 0KONP, the output of the AND circuit 69 becomes "1" in response to the end pulse END, and this It is applied to the envelope generator 47 via the OR circuit 70 as a key-off pulse OK○FP for parroting sound. Due to the key-off pulse ○KOFF automatically created 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 reset by a signal obtained by delaying the key-off pulse ○KOFF by a delay flip-flop 88.

ス遺モードの決定 前述の8種の演奏モードM1〜M8 (第3図参照)は
、各スイッチRVRS、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 RVRS, UTRN, and LOOP.

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

UターンスイッチUTRNがオンされると、第15図の
Uターンイベントルーチンが実行され、Uターンフラグ
UTFLGを0”から“1”に、又は“1″から“0”
に反転する(ステップ122)。次にステップ124に
行く。
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 1 or from 1 to 0.
(step 122). Next, go to step 124.

ループスイッチLOOPがオンされると、第15図のル
ープイベントルーチンが実行され、ループフラグLPF
LGを0”から“1″に、又はLl I ITから“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 0” to “1” or Ll I IT 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つのモード信号だけが1″1″であり、他のモード
信号は′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 1"1", and the other mode signals are set to '0'.

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

鍵が押圧されると、第12図のキーオンイベントルーチ
ンが実行され、押圧鍵のキーコードがニューキーコード
レジスタNKEYに取込まれる(ステップ110)、次
のステップ111では、演奏モード時にはサンプリング
フラグSMPFLG、0VWFLGが“0”であるため
、Noと判断され、ステップ126に行く。ステップ1
26では、所定の発音割当て処理、この実施例では単音
優先発音方式を採用するものとしているため単音優先処
理、を行う0次のステップ127では、前ステップでの
単音優先処理結果に従って新たな押鍵に係る楽音を発音
する必要があるか否かを判断し、発音の必要がなければ
リターンに行くが、必要があればステップ128に行く
、単音優先基準としては周知のように高音優先や後着優
先などを適宜採用すればよい、ステップ128では、ニ
ューキーコードを発音割当てするために、レジスタNK
EYの二ニーキーコードをレジスタKCODEに記憶す
る0次のステップ12白では、レジスタ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 new key code register NKEY (step 110). In the next step 111, the sampling flag SMPFLG is set in the performance mode. , 0VWFLG are "0", 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 judged whether or not it is necessary to produce the musical tone related to the note, and if there is no need to produce it, the process goes to return, but if it is necessary, it goes to step 128. In step 128, the register NK is used to allocate the new key code.
Store the second key code of EY in the register KCODE.0 In the next step 12 white, the tone generator uses the key code of the register KCODE (that is, the key code related to the new pressed key that has been newly assigned to generate the sound) as the new key code NKC. 20. Further step 13
At 0, the key-on pulse KONP is sent to the tone generator section 20.

押圧されていた鍵が離されたときは第13図のキーオフ
イベントルーチンが実行される。新たにamされた鍵の
キーコードを二ニーキーコードレジスタNKEYに取込
み(ステップ131)、サンプリングフラグSMPFL
G、0VWFLGが“1”であるかを調べ(ステップ1
32)、NOであることつまり演奏モードであることを
条件にステップ133に進み、離鍵された鍵が現在発音
中の鍵であるか(NKEY=KCODE)を調べる。そ
うであれば、キーオフパルスKOFFをトーンジェネレ
ータ部20に送出する。
When the pressed key is released, the key-off event routine shown in FIG. 13 is executed. The key code of the newly amned key is taken into the second key code register NKEY (step 131), and the sampling flag SMPFL is set.
Check whether G, 0VWFLG is “1” (step 1
32) If the answer is NO, 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). If so, a key-off pulse KOFF is sent to the tone generator section 20.

蓬ノu1住 次に、各演奏モードM1〜M8におけるトーンジェレー
タ部20の動作について説明する。
The operation of the tone gelator section 20 in each of the performance modes M1 to M8 will be explained by Sumiji Homono U1.

(各モード共通の説明) 鍵押圧に応じて、前述のようにして押圧鍵のキーコード
がニューキーコード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 note 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. In response to this, the counting direction of the address counter 37 is determined, the address signal changes in response to the node clock pulse φ1, and waveform sample data is read out 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が“1″のときは、オア回路54.55
を介して与えられるキーオンパルスKONPと信号M1
の“1”によってアンド回路56の条件が成立し、T−
フリップフロップ41がセットされ、方向指示信号DI
RがIt I IIとなる。
(Mode M1: Normal performance) When mode signal M1 is "1", OR circuit 54.55
key-on pulse KONP and signal M1 given via
is “1”, the condition of the AND circuit 56 is established, and T-
Flip-flop 41 is set and direction indication signal DI
R becomes It I II.

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

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

読出しアドレスがエンドアドレスLPADに到達すると
、比較器38からエンドパルスE N Dが発生される
。このエンドパルスENDは、アンド回路60,71,
72,73に加わる。アンド回路60の他の入力にはオ
ア回路61を介して信号M1の“1”が与えられており
、エンドパルスENDに応じてアンド回路60.オア回
路62.遅延フリップフロップ63を介してフリップフ
ロップ43のリセット入力Rに“1″が与えられる。
When the read address reaches the end address LPAD, the comparator 38 generates an end pulse E N D. This end pulse END is generated by AND circuits 60, 71,
Join 72 and 73. A signal M1 of "1" is applied to the other inputs of the AND circuit 60 via an OR circuit 61, and in response to the end pulse END, the AND circuit 60. OR circuit 62. “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”のときは動作しない。
This allows the read address to be changed to Entonadres 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が′1″のときは、オア回路54.74
を介して与えられるキーオンパルスKONPと信号M2
の“1″によってアンド回路75の条件が成立し、T−
フリップフロップ41のリセット人力Rに141 II
が与えられる。これにより。
(Mode M2: Reverse) When mode signal M2 is '1'', OR circuit 54.74
key-on pulse KONP and signal M2 given via
“1” satisfies the condition of the AND circuit 75, and T-
Resetting flip-flop 41 manually R to 141 II
is given. Due to this.

T−フリッププロップ41がリセットされ、方向指示信
号DIRがri O”となる。この方向指示信号DIR
の110 IIにより、セレクタ42では、エンドアド
レスデータLPADを選択し、セレクタ39では、初期
アドレスデータ(オール1′0″)を選択する。また、
キーオンパルスKONPに応じてオア回路53からプリ
セットパルスPRPが発生される。これにより、上述の
モードM1のときとは逆に、エンドアドレスLPADを
起点とし、初期アドレスを終点としてデータメモリ21
から逆方向に1回だけ波形サンプルデータが読み呂され
る。
The T-flip-prop 41 is reset and the direction indication signal DIR becomes ri O''.
110 II, the selector 42 selects the end address data LPAD, and the selector 39 selects the initial address data (all 1'0'').
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, data memory 21 starts from the end address LPAD and ends from the initial address.
The waveform sample data is read only once in the reverse direction.

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

このエンドパルスE N Dは、アンド回路60,71
.72,73に加わる。アンド回路60の他の入力には
オア回路61を介して信号M2のII I IIが与え
られており、エンドパルスENDに応じてアンド回路6
0.オア回路62.遅延フリップフロップ63を介して
フリップフロップ43のリセット人力Rに“1”が与え
られる。これにより、読出しアドレスが初期アドレスに
到達したとき、アドレスカウンタ37のカウントが停止
する。他のアンド回路71,72.73は、信号M2が
“1”のときは動作しない。
This end pulse END is generated by the AND circuits 60 and 71.
.. Join 72 and 73. The other inputs of the AND circuit 60 are given II II II of the signal M2 via the OR circuit 61, and the AND circuit 60 receives the signal M2 in response to the end pulse END.
0. 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 "1".

こうして、演奏モード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
is “1”, the condition of the AND circuit 56 is established, and T-
Flip-flop 41 is set and direction indication signal DI
R becomes Pa1''.

また、キーオンパルス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, as in 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が与えられてい
ないので、エンドパルス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 the mode signals M3 to M8 are not applied to the OR circuit 61, the end pulse END does not reset the flip-flop 43 and the address counter 37 does not stop counting.

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

アンド回路72の出力“1”はアンド回路77に加わる
。アンド回路77の他の入力であるインバータ83の出
力信号は信号M4.M7が“0”のときは常時“1”で
あるため、エンドパルスENDに応じてアンド回路77
の条件が成立し、アンド回路77の出力信号“1”に応
じて遅延フリップフロップ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. When M7 is “0”, it is always “1”, so the AND circuit 77
The following conditions are satisfied, and a preset pulse PRP is generated via the delay flip-flop 78 and the OR circuit 53 in response to the output signal "1" of the AND circuit 77.

一方、エンドパルスENDはアンド回路71にも加わる
が、オア回路79の出力がII Oljであるため、ア
ンド回路71の条件が成立せず、T−フリップフロップ
41の状態は変化しない。従って、方向指示信号DIR
は“1”のまま変化せず、読出しアドレスがエンドアド
レスLPADに到達したときに上述のように発生される
プリセットパルスPRPに応じて、再び、アドレスカウ
ンタ37に初期アドレスデータ(オール“0”)がプリ
セットされ、かつレジスタ40にはエンドアドレスデー
タLPADがロードされる。また、アドレスカウンタ3
7はアップカウントモードのままである。こうして、初
期アドレスを起点とし、エンドアドレス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 II_Olj, the condition of the AND circuit 71 is not satisfied and the state of the T-flip-flop 41 does not change. Therefore, direction signal DIR
remains "1" and does not change, and in response to the preset pulse PRP generated as described above when the read address reaches the end address LPAD, the initial address data (all "0") is stored in the address counter 37 again. is preset, and end address data LPAD is loaded into register 40. Also, address counter 3
7 remains in up count mode. In this way, the waveform sample data is read out from the data memory 21 again 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 a musical tone based on the sampled external sound is repeatedly produced many times. The sound generation can be ended by releasing the pressed key and attenuating the volume control envelope.

(モードM4:Uターン) モード信号M4が“1”のときは、オア回路54.55
を介して与えられるキーオンパルスKONPと信号M4
の“1”によってアンド回路56の条件が成立し、T−
フリップフロップ41がセットされ、方向指示信号DI
Rが“1”となる。
(Mode M4: U turn) When mode signal M4 is “1”, OR circuit 54.55
key-on pulse KONP and signal M4 given via
is “1”, the condition of the AND circuit 56 is established, and 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は、アンド回路60に加わるが、
オア回路61にはモード信号M3〜M8が与えられてい
ないので、アンド回路60の出力は“0”のままである
。また、エンドパルスENDは、アンド回路73に加わ
るが、この出力も“0”である、つまり、信号M4が“
1”のとき方向指示信号DIRが“1” (つまりアド
レスが順方向に変化している)ならば、該信号M4と方
向指示信号DIRの反転信号を入力したアンド回路85
の出力が“0”、信号M7と信号DIRが入力されたア
ンド回路86の出力も“O++であり、オア回路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". Further, the end pulse END is applied to the AND circuit 73, but this output is also "0", that is, the signal M4 is "
If the direction instruction signal DIR is "1" (that is, the address is changing in the forward direction), the AND circuit 85 inputs the signal M4 and an inverted signal of the direction instruction signal DIR.
The output of the AND circuit 86 to which the signal M7 and the signal DIR are input is also "O++", the signal applied from the OR circuit 87 to the AND circuit 73 is "0", and the conditions of the AND circuit 73 are Does not hold. Therefore, the AND circuit 60
, 73, the output of the OR circuit 62 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の140 ++によりオア回路6
8の出力が11 Q 71、これを反転したインバータ
76の出力が“1″となり、エンドパルスENDに応じ
てアンド回路72の出力が“1”となる。
On the other hand, OR circuit 6
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の出力“1”はアンド回路77に加わる
。信号M4が′1″のとき方向指示信号DIRが”1”
(つまりアドレスが順方向に変化している)ならば、該
信号M4と方向指示信号DIRの反転信号を入力したア
ンド回路8oの出力がI Q 71、信号M7と信号D
IRが入力されたアンド回路81の出力も“0″であり
1両アンド回路80.81の出力を入力したオア回路8
2の出力がl Q IT、これを反転したインバータ8
3の出力が“1”であり、これを入力したアンド回路7
7の出力が“1″となる。従って、アンド回路77の出
力信号111 PFに応じて遅延フリップフロップ78
、オア回路53を介してプリセットパルスPRPが発生
される。
The output “1” of the AND circuit 72 is applied to the AND circuit 77. When signal M4 is '1', direction indication signal DIR is '1'
(that is, the address is changing in the forward direction), the output of the AND circuit 8o inputting the signal M4 and the inverted signal of the direction instruction signal DIR is IQ 71, the signal M7 and the signal D
The output of the AND circuit 81 to which the IR is input is also "0", and the OR circuit 8 to which the output of the AND circuit 80 and 81 is input is also "0".
The output of 2 is lQIT, which is inverted by inverter 8.
The output of 3 is "1", and this is input to the AND circuit 7.
The output of 7 becomes "1". Therefore, depending on the output signal 111 PF of the AND circuit 77, the delay flip-flop 78
, a preset pulse PRP is generated via an OR circuit 53.

一方、エンドパルスENDはアンド回路71にも加わり
、信号M4の1”によりオア回路79の出力が“1”で
あるため、アンド回路71の条件が成立し、遅延フリッ
プフロップ84を介してT−フリップフロップ41のカ
ウント人力Cに“1″が加わり、該T−フリップフロッ
プ41の状態が“1”から1′0”に反転する。従って
、方向指示信号DIRは“0”となる。これにより、セ
レクタ42では、エンドアドレスデータLPADを選択
し、セレクタ39では、初期アドレスデータ(オール″
Orp )を選択し、上述のように発生したプリセット
パルスPRPにより、これらがカウンタ37にプリセッ
トされ、また、レジスタ40にロードされる。こうして
、前回とは逆に、エンドアドレスLPADを起点とし、
初期アドレスを終点としてデータメモリ21から逆方向
に波形サンプルデータが読み出される。
On the other hand, the end pulse END is also applied to the AND circuit 71, and since the output of the OR circuit 79 is "1" due to the signal M4 being "1", the condition of the AND circuit 71 is satisfied, and the T- "1" is added to the count C of the flip-flop 41, and the state of the T-flip-flop 41 is reversed from "1" to 1'0. Therefore, the direction indication signal DIR becomes "0". As a result, the selector 42 selects the end address data LPAD, and the selector 39 selects the initial address data (all "
Orp) and 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, starting from the end address LPAD,
Waveform sample data is read out from the data memory 21 in the reverse direction with the initial address as the end point.

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

今度は、方向指示信号DIRは“0”であり、その反転
信号は1”であり、アンド回路80と85の条件が成立
する。これにより、アンド回路73の出力が“1″とな
り、フリップフロップ43がリセットされる。これによ
り、読出しアドレスが初期アドレス(オール′″0″)
に到達したとき、アドレスカウンタ37のカウントが停
止する。また、アンド回路80の出力“I Itにより
アンド回路77の出力が“0″となり、プリセットパル
スPRPはもはや発生されない。
This time, the direction instruction signal DIR is "0" 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 becomes "1", and the flip-flop 43 is reset.This causes the read address to become the initial address (all ``0'').
When the address counter 37 reaches , the address counter 37 stops counting. Further, the output of the AND circuit 77 becomes "0" due to the output "I It" of the AND circuit 80, 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が“1“のときは、オア回路54.74
を介して与えられるキーオンパルスに○NPと信号M5
の“1″によってアンド回路75の条件が成立し、T−
フリップフロップ41のリセット人力Rに111”が与
えられる。これにより、T−フリップフロップ41がリ
セットされ、方向指示信号DIRが110 ++となる
。この方向指示信号DIRの“Onにより、上述のモー
ドM2のときと同様に、エンドアドレスLPADを起点
とし、初期アドレスを終点としてデータメモリ21から
逆方向に波形サンプルデータが読み出される。
(Mode M5: Reverse loop) When mode signal M5 is “1”, OR circuit 54.74
○NP and signal M5 to the key-on pulse given through
“1” satisfies the condition of the AND circuit 75, and T-
111" is applied to the reset human power R of the flip-flop 41. As a result, the T-flip-flop 41 is reset, and the direction indication signal DIR becomes 110++. By turning on the direction indication signal DIR, the above-mentioned mode M2 is set. As in the case of , 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.

モードM3 (ループ)のときと同様に、エンドパルス
ENDによってはフリップフロップ43がリセットされ
ず、アドレスカウンタ37のカウントは停止しない。ま
た、エンドパルスENDに応じてアンド回路77の条件
が成立し、プリセットパルスPRPが発生される。また
、エンドパルスENDが発生してもアンド回路71の条
件が成立せず、T−フリップフロップ41の状態は変化
しない。従って、方向指示信号DIRは“0”のまま変
化せず、読出しアドレスが初期アドレスに到達したとき
に上述のように発生されるプリセットパルスPRPに応
じて、再び、アドレスカウンタ37にエンドアドレスデ
ータLPADがプリセットされ、かつレジスタ40には
初期アドレスデータ(オール″0”)がロードされる。
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 at "0" and does not change, and the end address data LPAD is again sent to the address counter 37 in response to the preset pulse PRP generated as described above when the read address reaches the initial address. is preset, and initial address data (all "0") is loaded into the register 40.

また、アドレスカウンタ37はダウンカウントモードの
ままである。こうして、エンドアドレスLPADを起点
とし、初期アドレスを終点としてデータメモリ21から
再び逆方向に波形サンプルデータが読み出される。
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が“′1”のときは、オア回路54.5
5を介して与えられるキーオンパルスKONPと信号M
6の“1″によってアンド回路56の条件が成立し、T
−フリップフロップ41がセットされ、方向指示信号D
IRがパ1′″となる。
(Mode M6: U-turn loop) When mode signal M6 is "'1", OR circuit 54.5
key-on pulse KONP and signal M given via 5
6 is “1”, the condition of the AND circuit 56 is established, and T
- Flip-flop 41 is set and direction indicating signal D
IR becomes Pa1'''.

また、キーオンパルス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−フリップフロップ41のカウ
ント入力Cに“1”が加わり、該T−フリップフロップ
41の状態が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 conditions of the AND circuit 73 are not satisfied, the flip-flop 43 is not reset by the end pulse END, and the count of the address counter 37 is not stopped. Condition 77 is satisfied and the preset pulse PRP
is generated. Also, since the output of the OR circuit 79 is '1' due to the signal M6 being '1', the end pulse END
As a result, the condition of the AND circuit 71 is satisfied, and "1" is added to the count input C of the T-flip-flop 41 via the delay flip-flop 84, and the state of the T-flip-flop 41 is reversed from "1" to "0". Therefore, the direction instruction signal DIR becomes "0".As a result, the counting direction of the address counter 37 is reversed from the previous one, starting from the end address LPAD and ending at the initial address from the data memory 21 in the opposite direction. The waveform sample data is read out.

読出しアドレスが初期アドレスに到達すると、エンドパ
ルスENDが発生され、前述と同様に、アンド回路71
と77の条件が成立し、プリセットパルスPRPが発生
されると共に、T−フリップフロップ41の状態が“0
”から1”に反転して方向指示信号DIRが“1″とな
る。これにより、アドレスカウンタ37のカウント方向
が順方向に戻り、初期アドレスを起点とし、エンドアド
レスLPADを終点としてデータメモリ21から順方向
に波形サンプルデータが読み出される0次に、エンドパ
ルスENDが発生されると、アドレスカウンタ37のカ
ウント方向が逆方向にされる。
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 "0".
The direction indication signal DIR is inverted from "1" to "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. Then, an end pulse END is generated. Then, the counting direction of the address counter 37 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が“1”のときは、オア回路54.74
を介して与えられるキーオンパルスKONPと信号M7
の1”によってアンド回路75の条件が成立し、T−フ
リップフロップ41がリセットされ、方向指示信号DI
Rが410”となる。
(Mode M7: U-turn/reverse) When mode signal M7 is “1”, OR circuit 54.74
key-on pulse KONP and signal M7 given via
1'', the condition of the AND circuit 75 is satisfied, the T-flip-flop 41 is reset, and the direction indication signal DI
R becomes 410".

この方向指示信号DIRの“O”により、上述のモード
M2 (リバース)のときと同様に、エンドアドレスL
PADを起点とし、初期アドレスを終点としてデータメ
モリ21から逆方向に波形サンプルデータが読み出され
る。
By "O" of this direction instruction signal DIR, 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に加わるが
、この出力は“0”である。つまり、信号M7が′1″
のとき方向指示信号DIRが“0″(つまりアドレスが
逆方向に変化している)ならば、該信号M7と方向指示
信号DIRを入力したアンド回路86の出力が“0″、
アンド回路85の出力も0”であり、オア回路87から
アンド回路73に加わる信号は“0”であり、アンド回
路73の条件は成立しない、従って、モードM7のとき
は、逆方向のカウント動作中に発生されるエンドパルス
ENDによってはフリップフロップ43はリセットされ
ず、アドレスカウンタ37のカウントは停止しない。
This end pulse END is applied to the AND circuit 73, and its output is "0". In other words, the 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".
The output of the AND circuit 85 is also "0", the signal applied from the OR circuit 87 to the AND circuit 73 is "0", and the condition of the AND circuit 73 is not satisfied. Therefore, in mode M7, the count operation is performed in the opposite direction. The flip-flop 43 is not reset by the end pulse END generated during this period, and the address counter 37 does not stop counting.

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

一方、エンドパルスENDはアンド回路71にも加わり
、信号M7のit 1 tyによりオア回路79の出力
が“1”であるため、アンド回路71の条件が成立し、
遅延フリップフロップ84を介してT−フリップフロッ
プ41のカウント人力Cに“1″が加わり、該T−フリ
ップフロップ41の状態がパ0”から1”に反転する。
On the other hand, the end pulse END is also applied to the AND circuit 71, and the output of the OR circuit 79 is "1" due to it 1 ty of the signal M7, so the conditions of the AND circuit 71 are 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 is reversed from "0" to "1".

従って、方向指示信号DIRは“1”となる。これによ
り、セレクタ42では、初期アドレスデータ(オール“
0″)を選択し、セレクタ39では、エンドアドレスデ
ータLPADを選択し、上述のように発生したプリセッ
トパルスPRPにより、これらがカウンタ37にプリセ
ットされ、また、レジスタ40にロードされる。こうし
て、前回とは逆に、初期アドレスを起点とし、エンドア
ドレスLPADを終点としてデータメモリ21から順方
向に波形サンプルデータが読み出される。
Therefore, the direction instruction signal DIR becomes "1". As a result, the selector 42 selects the initial address data (all “
0''), the selector 39 selects the end address data LPAD, and these are preset in the counter 37 and loaded into the register 40 by the preset pulse PRP generated as described above. On the contrary, 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の出力が1”となり、フリ
ップフロップ43がリセットされる。これにより、読出
しアドレスがエンドアドレスLPADに到達したとき、
アドレスカウンタ37のカウントが停止する。また、ア
ンド回路81の出力It illによりアンド回路77
の出力がパO′″となり、プリセットパルスPRPはも
はや発生されない。
As a result, the output of the AND circuit 73 becomes 1'', 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. Furthermore, the output It ill of the AND circuit 81 causes the AND circuit 77
The output of P is O''', 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が“
071となる。
(Mode M8: U-turn reverse loop) When the mode signal M8 is "1", the key-on pulse KONP given via the OR circuit 54.74 and the "1" of the signal M8
As a result, the condition of the AND circuit 75 is satisfied, the T-flip-flop 41 is reset, and the direction indication signal DIR becomes “
It becomes 071.

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

読出しアドレスがエンドアドレスLPADに到達すると
、エンドパルスENDが発生され、前述と同様に、アン
ド回路71と77の条件が成立し、プリセットパルスP
RPが発生されると共に、T−フリップフロップ41の
状態がパ1”から“Onに反転して方向指示信号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.
RP is generated, and the state of the T-flip-flop 41 is inverted from "P1" to "ON" 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回発音する。という「
Uターン・リバース」を何回も繰返して新しい演奏効果
を実現することができる。押圧鍵を@IIして音量制御
エンベロープを減衰させることにより、この発音を終了
することができる。
As a result, after a musical tone in which the sampled external sounds are rearranged temporally backward is generated once, the sampled tone is rearranged temporally forward and generated once again. "
You can create new performance effects by repeating ``U-Turn Reverse'' many times. This sound generation can be ended by pressing the pressed key @II and attenuating the volume control envelope.

エンドアドレスの 8   理 前述の第14図のステップ115の処理により、マイク
ロコンピュータ部内のエンドアドレスバッファLPAD
Bに記憶するエンドアドレスデータとして、サンプリン
グした原波形における最終ゼロクロス部分のデータを記
憶しているアドレスつまり最終ゼロクロスアドレス(−
例としてブロック単位のアドレス)が初期設定される。
8 Processing of the end address By the process of step 115 in FIG. 14 described above, the end address buffer LPAD in the microcomputer section is
The end address data stored in B is the address that stores the data of the final zero cross portion of the sampled original waveform, that is, the final zero cross address (-
For example, an address in block units) is initially set.

前述の各演奏モードM1〜M8においてトーンジェネレ
ータ部20で利用されるエンドアドレスデータLPAD
はこのエンドアドレスバッファLPADBに記憶された
データであり、上記のように初期設定されたままである
とすると、前出のエンドアドレスデータLPADはサン
プリングした原波形における最終ゼロクロスアドレスそ
のもの(つまりゼロクロスアドレスバッファZCRAD
Bに記憶しているデータ)である。
End address data LPAD used by the tone generator section 20 in each of the above-mentioned performance modes M1 to M8
is the data stored in this end address buffer LPADB. Assuming that the initial settings remain as described above, the aforementioned end address data LPAD is the last zero-crossing address itself in the sampled original waveform (that is, the zero-crossing address buffer ZCRAD).
data stored in B).

このように、サンプリングした原波形における最終ゼロ
クロスアドレスデータそのものをエンドアドレスデータ
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の操作によって行うことができる。なお、この実施例
では、サンプリングした波形データを繰返し読み出して
発音するモードのとき、つまり「ループ」、「リバース
・ループ」。
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, the mode is a mode in which sampled waveform data is repeatedly read out and produced, that is, a "loop" or "reverse loop."

「Uターン・ループ」、又は「Uターン・リバース・ル
ープ」のとき、そのような変更処理が可能となっている
。これは、そのような繰返し演奏のときにエンドアドレ
スの調整により繰返しの1サイクル長を制御することは
かなり有効だからである。しかし、これに限らず、他の
演奏モードのときにもエンドアドレスデータL p n
 Dの増減変更が行えるようにしてもよい。
Such change processing is possible in the case of a "U-turn loop" or "U-turn 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 end address data L p n is not limited to this, and can also be used in other performance modes.
It may also be possible to increase or decrease D.

増加スイッチINCがオンされると、第17図の増加イ
ベントルーチンが実行される。ここでは、ステップ13
5においてループフラグLPFLGがIt I Itで
あるかを調べ、YESならステップ136に行くが、N
oならばリターンへ行く。これは、上述の「ループ」関
連の演奏モード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
5, it is checked whether the loop flag LPFLG is It I It, and if YES, the process goes to step 136, but N
If o, go 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.

前述の通すバッファLPADHに記憶されるデータはブ
ロック単位であるため、この増加もブロック単位で行わ
れる。この場合、最大値は「15」である。次のステッ
プ137では、エンドアドレスバッファLPADBの内
容をエンドアドレスデータLPADとしてトーンジェネ
レータ部20に送出する。
Since the data stored in the above-described passing buffer LPADH is in units of blocks, this increase is also performed in units of blocks. 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
、136a、137aの処理は第17図の各ステップ1
35,136,137の処理とほぼ同様であり、異なる
点は、ステップ136ではエンドアドレスバッファLP
ADBの内容を1増加したのに対して、ステップ136
aではこのバッファLPADBの内容を1減少する点だ
けである。
When the decrease switch DEC is turned on, the decrease event routine shown in FIG. 18 is executed. Step 135a here
, 136a, and 137a are each step 1 in FIG.
The process is almost the same as that of steps 35, 136, and 137, and the difference is that in step 136, the end address buffer LP
While the contents of ADB were increased by 1, step 136
The only point in a is that the contents of this buffer LPADB are decreased by 1.

こうして、エンドアドレスバッファL PA、 D B
の内容を増減変更することによりトーンジェネレータ部
20で利用するエンドアドレスデータLPADの値を増
減変更することができる。
Thus, the end address buffer LPA, DB
By increasing or decreasing the contents of , the value of the end address data LPAD used by the tone generator section 20 can be increased or decreased.

このようにエンドアドレスデータ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によ
って変更されるのはエンドアドレスバッファLPADB
の内容であり、ゼロクロスアドレスバッファZCRAD
Bに記憶した原波形における本来の最終ゼロクロスアド
レスは変更されない。
Note that the end address buffer LPADB is changed by the increase switch INC and decrease switch DEC.
is the contents of the zero-crossing address buffer ZCRAD
The original final zero-crossing address in the original waveform stored in B is not changed.

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

エコー舛來 エコースイッチECHOがオンされると、第16図のエ
コーイベントルーチンが実行される。ステップ138で
は、エコーフラグECFLGを110”から“1″に、
又は“1nから110”に、反転する。ステップ139
では、エコーフラグECFLGが“1″であるかを調べ
、1”であれば、ステップ140に行き、ループフラグ
LPFLGの内容をループフラグバッファLPFLGB
に保存してから該ループフラグLP″FLGを“1”に
セットする。こうして、演奏モードを「ループ」に関連
するモード、つまり「ループ」、[リバース・ループ」
、「Uターン・ループ」、又は「Uターン・リバース・
ループ」に自動的に設定する。
When the echo switch ECHO is turned on, the echo event routine shown in FIG. 16 is executed. In step 138, the echo flag ECFLG is changed from "110" to "1".
Or invert from "1n to 110". Step 139
Then, check whether the echo flag ECFLG is "1", and if it is 1, go to step 140 and save the contents of the loop flag LPFLG to the loop flag buffer LPFLGB.
, and then sets the loop flag LP"FLG to "1". In this way, the performance mode can be set to a mode related to "loop", that is, "loop" or "reverse loop".
, “U-turn loop” or “U-turn reverse
Loop” automatically.

次のステップ124a、L25aでは、第15図のステ
ップ124,125と同じ処理を行い、演奏モードをM
1〜M8の何れかに決定する。但し、この場合はループ
フラグLPFLGが“1”にセットされているので、「
ループ」関連の演奏モードM3.M5.M6.M8の何
れかに必ず決定される。
In the next steps 124a and L25a, 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, the loop flag LPFLG is set to "1", so "
Loop” related performance mode M3. M5. 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から発生されるエ
ンベロープ波形データのレリース時間が最長に設定され
1発生楽音は、離鍵後に極めて緩やかに減衰するように
なる。しかも、演奏モードは「ループ」関連のモードM
3.M5.M6.M8の何れかに設定されるので、デー
タメモリ21に記憶した波形サンプルデータ″が順方向
又は逆方向又は交互に順方向と逆方向に切り替わりなが
ら繰返し読み出され、それに対応する楽音が次第に小さ
くなる音量レベルで繰返し発音される。なお、繰返し読
み出される波形サンプルデータは外部音をサンプリング
したものであるため、一般に、それ自体で音の立上りか
ら立下りに至る振幅エンベロープを具備している。従っ
て、音の立上りから立下りに至る振幅エンベロープを具
備した音が何回も繰返し発音され、しかもその音量が次
第に減衰する、エコーのような効果を実現することがで
きる。しかも2単なる従来のエコーと異なる点は、「ル
ープ」関連の演奏モードM3.MS、M6゜M8による
発音制御によって、音がその本来の時系列とは逆に発音
されたり、本来の時系刺通りに発音されたり、その組合
せで交互に発音されたりすることである。しかも、上述
のようなエンドアドレスの増減調整制御と組合せること
により、従来全くなかった自由なエコー効果を実現する
こともできる。
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 first 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 repeatedly read out in the forward or reverse direction, or alternately switching between the forward and reverse directions, and the corresponding musical tone becomes gradually smaller. It is repeatedly sounded at the volume level.Since the waveform sample data that is repeatedly read out is a sample of an external sound, it generally has its own amplitude envelope extending from the rise to the fall of the sound.Therefore, It is possible to achieve an echo-like effect in which a sound with an amplitude envelope ranging from the rise to the fall of the sound is repeated many times, and the volume gradually attenuates.Moreover, it is different from a simple conventional echo. The point is "loop" related performance mode M3. As a result of the sound generation control by MS, M6 and M8, sounds may be pronounced in the opposite direction to their original chronological order, may be pronounced according to their original chronological order, or may be pronounced 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 applying the echo effect. 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で設定・選択・変更・調整した各種のデータ
の全て又は所定のものを、キャンセルし、2九らのデー
タの内容を最初に今ンプリングしたときの状態に戻した
い場合は、オールキャンセルスイッチCANSELを操
作する。すると、第19図のオールキャンセルイベント
ルーチンが実行される。
All cancel processing Cancels all or predetermined data set, selected, changed, or adjusted on the operation panel section 15 in relation to the sampled waveform sample data, and cancels the contents of the data in 29 first. If you want to return to the state when you sampled, operate the all cancel switch CANSEL. Then, the all cancel event routine shown in FIG. 19 is executed.

まず、ステップ146では、各フラグS M P F 
LG、0VWFLG、LPF、LG、UTFLG、RV
FLG、ECFLGti−”O”にリセットする。これ
は、操作パネル部15における各スイッチSMPL、0
VRWR,LO,○P、UTRN、RVR8,ECHO
の操作に応じて設定されたサンプリングモードや演奏モ
ードM2〜M8をキャンセルし、演奏モードM1に初期
設定するためである。
First, in step 146, each flag S M P F
LG, 0VWFLG, LPF, LG, UTFLG, RV
FLG, ECFLGti-reset to “O”. This corresponds to each switch SMPL, 0 on the operation panel section 15.
VRWR, LO, ○P, UTRN, RVR8, ECHO
This is to cancel the sampling mode and performance modes M2 to M8 that were set according to the operation, 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に送出する。サンプリングモード信号S M
 1及びSM2を“0”にする。
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 S M
1 and SM2 to "0".

演奏モード信号M1を111 ITにし、残りの演奏モ
ード信号M2〜M8を0″にする。エンドアドレスデー
タLPADを、エンドアドレスバッファLPADBに記
憶された最終ゼロクロスアドレスデータに設定する。ア
タックタイムデータAT、ディケイタイムデータDT、
サスティンレベルデータSL、レリースタイムデータR
Tとして、夫々上記バッファATB、DTB、SLB、
RTBの内容を設定する。次のステップ150では、各
種楽音効実用のデータも所定の内容に初期設定する。
Set the performance mode signal M1 to 111 IT and set the remaining performance mode signals M2 to M8 to 0''.Set the end address data LPAD to the final zero-cross address data stored in the end address buffer LPADB.Attack time data AT, Decay time data DT,
Sustain level data SL, release time data R
As T, the above buffers ATB, DTB, SLB,
Set the contents of RTB. In the next step 150, data for various musical sound effects are also initialized to predetermined contents.

このように、オールキャンセルスイッチCANSELが
操作されると、波形サンプルデータに関連して操作パネ
ル部15で設定・選択・変更・調整した各種のデータの
全て又は所定のものが、キャンセルされ、これらのデー
タの内容が最初にサンプリングしたときの状態に戻され
る。つまり、サンプリングした波形サンプルデータに関
連してg集した様々のデータの編集内容がキャンセルさ
れ、編集前の初期状態に戻されるのである。このように
JEm内容をキャンセルして編集前の初期状態に戻せる
ようにすることにより、失敗をおそれることなく、自由
な編集を行うことができるようになり、サンプリングし
た波形サンプルデータに関連する編集機能を向上させる
ことができる。
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 the various data collected in relation to the sampled waveform sample data are canceled and returned to the initial state before editing. By being able to cancel the JEm content and return it to its 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 addition, in the above embodiment, it is assumed that the waveform sample data stored in the data memory is expressed using the PCM (Pulse Code Modulation) method, but the present invention 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, normalization processing so that the amplitude level 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 device such as an LED that displays the contents of the data.

また、上記実施例では、3つのスイッチRVR3,UT
RN、LOOPの操作に応じて8つの演奏モードM1〜
M8を決定するようにしているが、各モードM1〜M8
を個別に選択するためのスイッチを別々に設けてもよい
Further, in the above embodiment, three switches RVR3, UT
8 performance modes M1~ depending on the operation of RN and LOOP
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をオウム返し用のキーオンパルス0KONPとし
てエンベロープ発生器47に入力すると共に、→ンプリ
ングモード信号SMI、SM2を夫々“Onにし、モー
ド信号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
It is preferable to input END to the envelope generator 47 as the key-on pulse 0KONP for parrot return, turn on the sampling mode signals SMI and SM2, and 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.

ゼロクロスの検出方法は上記実施例に示したものに限ら
ず、どのような方法でもよい6例えば、上記実施例のよ
うなある程度の幅のあるゼロ判定範囲を採用せずに、波
形サンプルデータのレベルが実際にプラスからマイナス
に又はマイナスからプラスに変化することを検出するよ
うにしてもよい。また、マイクロフォンによってピック
アップしたアナログの音信号においてゼロクロスを検出
するようにしてもよい。
The method of detecting zero cross is not limited to the one shown in the above embodiment, and any method may be used.6 For example, instead of adopting a zero judgment range with a certain width as in the above embodiment, It may also be possible to detect that the value actually changes from plus to minus or from minus to plus. 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 that case, it is preferable that the amount of increase and decrease when adjusting the increase/decrease of the end address data can also be finely adjusted for each address, and the reference address to which the increase/decrease is adjusted should be the end address as in the above example. Not limited to addresses,
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. It may also be possible to increase/decrease/adjust end address data (!! quasi-address data).

また、上記実施例ではオールキャンセル処理においては
操作パネル部で設定・制御した全てのデータをキャンセ
ルして所定の初期状態に戻すようにしているが、これは
サンプリングした外部音に密接に関連するデータのみキ
ャンセルして所定の初期状態に戻すようにしてもよい。
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 is also possible to cancel only this 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〕

以上の通り、この発明によれば、記憶手段に記憶した波
形サンプルデータを順方向又は逆方向に読み出す際の起
点又は終点となる基準アドレスを任意に調整し得るよう
にしたので、これに応じて記憶手段から読み出す入きア
ドレスの範囲が変更され、発生音の範囲を自由に変更す
ることができ、これにより、サンプリング方式の楽音発
生装置としての演奏性能を向上させることができる、と
いう優れた効果を奏する。
As described above, according to the present invention, the reference address serving as the starting point or ending point when reading out the waveform sample data stored in the storage means in the forward or reverse direction can be arbitrarily adjusted. The range of input addresses read from the storage means is changed, and the range of generated sounds can be changed freely, which has the excellent effect of improving performance performance as a sampling-based musical sound generation device. play.

例えば、本来の基準アドレスが波形サンプルデータの最
終アドレスに設定されている場合であって、この最終ア
ドレスの手前のアドレスに記憶した波形サンプルデータ
にノイズが含まれているような場合は、基準アドレスを
手前のアドレス寄りに適宜調整することにより、記憶手
段から読み出すべきアドレスの範囲内にノイズを含むア
ドレスが入らないようにすることができ、こうしてノイ
ズを含む波形サンプルデータの部分の発音をカットする
ことができる。あるいは、本来の基準アドレスが波形サ
ンプルデータの最終アドレスに設定されている場合に、
基準アドレスをこの最終アドレスよりも先のアドレスに
適宜調整することにより、記憶手段から読み出すべきア
ドレスの範囲を波形サンプルデータが実際には記憶され
ていないアドレスにまで拡大することができ、この拡大
されたアドレス範囲で繰返し読み出しを行うことにより
、繰返し読み出しのつなぎ目で意識的に適当な長さの無
音区間を作り、音が断続的に繰返される特殊な演奏効果
を作り出すこともできる。また、その他の調整の仕方に
よって、繰返し読み出しの態様を自由に変更することが
できる。
For example, if the original reference address is set to the final address of the waveform sample data, and the waveform sample data stored at an address before this final address contains noise, the reference address By appropriately adjusting the address toward the front, it is possible to prevent addresses containing noise from falling within the range of addresses to be read from the storage means, thereby cutting off the sound of the part of the waveform sample data containing noise. be able to. Or, if the original reference address is set to the final address of the waveform sample data,
By appropriately adjusting the reference address to an address beyond this final address, the range of addresses to be read from the storage means can be expanded to addresses where no waveform sample data is actually stored. By repeatedly reading in the specified address range, it is also possible to consciously create a silent section of an appropriate length at the joint between repeated reads, creating a special performance effect in which the sound is repeated intermittently. Furthermore, the mode of repeated reading can be freely changed by other adjustment methods.

【図面の簡単な説明】[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ターンイベンI−ルーチン及び
ループイベントルーチン、第16図はエコーイベントル
ーチン、第17図は増加イベントルーチン、第18図は
減少イベントルーチン、第19図はオールキャンセルイ
ベントルーチンを夫々示すもの、である。 1・・・外部音サンプリング手段、2・・・記憶手段、
3・・・書込み制御手段、4・・・読出し制御手段、1
4・・・鍵盤、15・・・操作パネル部、16・・・サ
ンプリング制御操作子群、17・・・エンベロープ制御
繰作子群、18・・・効果制御振作子群、2Q・・・ト
ーンジェネレータ部、21・・・データメモリ、22・
・・マイクロフォン、24・・・タイマビープ回路、2
7・・・アナログ/ディジタル変換器、28・・・重り
書き用の加算器、32・・・ゼロクロス検出回路、33
・・・ゼロクロスアドレスラッチ回路、34・・・ノー
トクロック発生回路、37・・・アドレスカウンタ、3
8・・・比較器、40・・・終点アドレスレジスタ、4
7・・・エンベロープ発生器。 特許出願人  日本楽器製造株式会社 代 理 人  弁理士 飯塚 蓋付 図面の浄2′1“’、”l; !二亡更なし)第1図 第18図 手続補正書(肱) 昭和62年4月14日 特許庁長官 黒 1)明 雄 殿 1、事件の表示 昭和62年特許願第1211号 2、発明の名称 楽音発生装置 3、補正をする者 事件との関係  特許出願人 (名称)   (407)日本楽器製造株式会社4、代
理人 昭和62年3月4日 (3月31日発送)別紙の通り(
内容に変更なし)
FIG. 1 is a functional block diagram showing an overview of a musical tone generating device according to the present invention, and 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. 3 is a diagram schematically showing the data memory readout format in various performance modes realized in the embodiment of FIG. 2, and FIG. 4 is a diagram showing the address structure of the data memory included in the tone generator section of FIG. 2. A diagram showing an example. 5 is a diagram showing an example of a memory map of data and working memory in the microcomputer section of FIG. 2, FIG. 6 is a block diagram showing a detailed example of the tone generator section of FIG. 2, and FIG. 7 is a diagram showing a detailed example of the tone generator section of FIG. FIGS. 8 to 19 are flowcharts showing examples of programs executed in the microcomputer section of FIG. 2; FIG. 8 is a main routine; Figure 10 shows the 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, Figure 15 shows the reverse event routine, U-turn event I-routine and loop event routine, Figure 16 shows the echo event routine, and Figure 17 shows the increase event routine. FIG. 18 shows a decrease event routine, and FIG. 19 shows an 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 repeater group, 18...Effect control pendulum group, 2Q...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 Nippon Musical Instruments Manufacturing Co., Ltd. Representative Patent attorney Iizuka 2'1"',"l; of the drawing with the lid! (2) Figure 1 Figure 18 Procedural Amendment (Archive) April 14, 1985 Commissioner of the Patent Office Kuro 1) Akio Yu 1, Indication of the case 1988 Patent Application No. 1211 2, Invention Name Musical Sound Generator 3, Relationship with the Amendment Person Case Patent Applicant (Name) (407) Nippon Gakki Mfg. Co., Ltd. 4, Agent March 4, 1985 (Shipped March 31) As shown in the attached sheet (
(No change in content)

Claims (5)

【特許請求の範囲】[Claims] (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. write control means for writing into the means; read control means for reading waveform sample data from the storage means in the forward or reverse direction using a predetermined reference address as a starting point or end point; and reference address adjustment for increasing or decreasing the value of the reference address. and generating a musical tone signal corresponding to the waveform sample data read from the storage means.
(2)前記読出し制御手段は、前記波形サンプルデータ
を繰返し読み出すか否かの選択が可能であり、前記基準
アドレス調整手段は、前記読出し制御手段で前記波形サ
ンプルデータを繰返し読み出すことが選択されていると
き前記基準アドレスの増減変更が可能である特許請求の
範囲第1項記載の楽音発生装置。
(2) The readout control means can select whether or not to repeatedly read out the waveform sample data, and the reference address adjustment means can select whether or not to repeatedly read out the waveform sample data by the readout control means. 2. The musical tone generating device according to claim 1, wherein the reference address can be increased or decreased when the reference address is present.
(3)前記書込み制御手段は、所定の先頭アドレスから
前記波形サンプルデータを書き込むものであり、前記基
準アドレスは、前記記憶手段に書き込まれた該波形サン
プルデータの最終アドレスである特許請求の範囲第1項
記載の楽音発生装置。
(3) The write control means writes the waveform sample data from a predetermined starting address, and the reference address is the final address of the waveform sample data written in the storage means. The musical tone generator according to item 1.
(4)前記基準アドレスは、前記記憶手段に書き込まれ
た該波形サンプルデータの先頭アドレス又は最終アドレ
スであり、前記基準アドレス調整手段は、この先頭アド
レス又は最終アドレスの少なくとも一方を変更するもの
である特許請求の範囲第1項記載の楽音発生装置。
(4) The reference address is the first address or the last address of the waveform sample data written in the storage means, and the reference address adjustment means changes at least one of the first address or the last address. A musical tone generating device according to claim 1.
(5)前記基準アドレス調整手段は、複数のアドレスか
らなるブロック単位で、前記基準アドレスの増減変更を
行うものである特許請求の範囲第1項記載の楽音発生装
置。
(5) The musical tone generating device according to claim 1, wherein the reference address adjustment means increases or decreases the reference address in units of blocks each consisting of a plurality of addresses.
JP62001211A 1987-01-07 1987-01-07 Musical sound generator Pending JPS63169696A (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP62001211A JPS63169696A (en) 1987-01-07 1987-01-07 Musical sound generator
EP87119422A EP0274137B1 (en) 1987-01-07 1987-12-31 Tone signal generation device having a tone sampling function
DE87119422T DE3786654T2 (en) 1987-01-07 1987-12-31 Sound signal generating device with a digital sound storage function.
US07/141,122 US4947723A (en) 1987-01-07 1988-01-05 Tone signal generation device having a tone sampling function
SG5995A SG5995G (en) 1987-01-07 1995-01-16 Tone signal generation device having a tone sampling function
HK134395A HK134395A (en) 1987-01-07 1995-08-24 Tone signal generation device having a tone sampling function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62001211A JPS63169696A (en) 1987-01-07 1987-01-07 Musical sound generator

Publications (1)

Publication Number Publication Date
JPS63169696A true JPS63169696A (en) 1988-07-13

Family

ID=11495133

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62001211A Pending JPS63169696A (en) 1987-01-07 1987-01-07 Musical sound generator

Country Status (1)

Country Link
JP (1) JPS63169696A (en)

Similar Documents

Publication Publication Date Title
EP0274137B1 (en) Tone signal generation device having a tone sampling function
US5111530A (en) Digital audio signal generating apparatus
GB2201539A (en) Tone information processing device for an electronic musical instrument
US7642445B2 (en) Music sound generator
GB2035624A (en) Electronic timepiece
JPH0789279B2 (en) Music signal generator
JPS63169696A (en) Musical sound generator
EP0653710A1 (en) Speech information processing
JP2613788B2 (en) Tone generator
JPS63289595A (en) Musical sound generator
JPS63169695A (en) Musical sound generator
JPS63169694A (en) Musical sound generator
JPS6068387A (en) Electronic musical instrument
JPH0664466B2 (en) Electronic musical instrument
JP2599357B2 (en) Waveform reading device
JPS599265Y2 (en) Performance sound setting device for electronic musical instruments
JPH063440Y2 (en) Reverberation device
JPS6158915B2 (en)
JPS599260Y2 (en) Tone setting device for electronic musical instruments
JP2754613B2 (en) Digital audio signal generator
JP3050055B2 (en) Music generator
JPH0125996Y2 (en)
JPS644157Y2 (en)
JP2853805B2 (en) Waveform data storage device for sound generator
JPH03267997A (en) Musical sound signal generating device