JPS63169695A - Musical sound generator - Google Patents

Musical sound generator

Info

Publication number
JPS63169695A
JPS63169695A JP62001210A JP121087A JPS63169695A JP S63169695 A JPS63169695 A JP S63169695A JP 62001210 A JP62001210 A JP 62001210A JP 121087 A JP121087 A JP 121087A JP S63169695 A JPS63169695 A JP S63169695A
Authority
JP
Japan
Prior art keywords
address
data
sample data
circuit
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.)
Granted
Application number
JP62001210A
Other languages
Japanese (ja)
Other versions
JPH07101351B2 (en
Inventor
進 河島
内山 泰次
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP62001210A priority Critical patent/JPH07101351B2/en
Priority to DE87119422T priority patent/DE3786654T2/en
Priority to EP87119422A priority patent/EP0274137B1/en
Priority to US07/141,122 priority patent/US4947723A/en
Publication of JPS63169695A publication Critical patent/JPS63169695A/en
Priority to SG5995A priority patent/SG5995G/en
Priority to HK134395A priority patent/HK134395A/en
Publication of JPH07101351B2 publication Critical patent/JPH07101351B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

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 them at a desired pitch, in particular, the present invention immediately detects the final address of waveform sample data stored in a memory, and uses the final address as an end point or a starting point. The present invention relates to a musical tone generating device that can immediately respond to readout control.

〔従来の技術〕[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号公報には、サンプリン
グした複数周期の波形データを繰返し読み出す際に、繰
返し読出しの頭においてノイズが出ないようにするため
に、該複数周期の最初の部分においてゼロクロスを検出
し、このゼロクロスのアドレスを繰返し読出しの際の基
点アドレスとして用いることが開示されている。そのた
めのゼロクロス検出の手法は、サンプリングした複数周
期の波形データをメモリに書き込んだ後に、これを読み
出して解析することにより検出するものであった。
Furthermore, in Japanese Patent Publication No. 61-47435, in order to prevent noise from appearing at the beginning of repeated reading when repeatedly reading out sampled waveform data of multiple periods, zero crossing is set at the beginning of the multiple periods. It has been disclosed that the zero-crossing address is detected and used as a base address for repeated reading. The zero-cross detection method for this purpose was to write sampled waveform data of multiple periods into a memory, and then read and analyze the 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 read out not only once in the forward direction, but also repeatedly read out in the forward direction many times, read out once in the reverse direction, or read out in the reverse direction many times. It has been considered to perform readout in various ways, such as repeated readout, or readout once in the forward direction and then readout once in the reverse direction, to produce musical tones based on sampled sounds in various variations. In that case, in the former technique, a certain storage area of the memory is read out over all addresses, so if the sampled sound is stored only in a part of the storage area, blanks in the pronunciation may occur during repeated reading. Problems arise, such as the period being too long and the sound generation not starting immediately during backward reading.

このような問題を解決するには、メモリに記憶した外部
音波形サンプルデータの実際の最終アドレスを検出し、
この最終アドレスを終点又は起点として該メモリの波形
サンプルデータを順方向に又は逆方向に読み出すように
することが望ましい。
To solve this problem, detect the actual final address of the external sound waveform sample data stored in memory,
It is desirable to read out the waveform sample data in the memory in the forward or reverse direction using this final address as the end or starting point.

その場合、波形データのゼロクロスを検出し、最後のゼ
ロクロス検出アドレスを最終アドレスとして検出するこ
とが考えられる。
In that case, it is conceivable to detect zero crossings of the waveform data and detect the last zero crossing detection address as the final address.

ところで、後者のような従来技術において示されたゼロ
クロス検出は、サンプリングした波形データをメモリに
書き込んだ後に、これを読み出して解析するものであっ
たため、時間がかかり、発音可能な状態にすぐに移行す
ることはできない。
By the way, the zero-crossing detection shown in the latter prior art involves writing the sampled waveform data into memory and then reading it out and analyzing it, which takes time and makes it difficult to immediately transition to a state where sound can be produced. I can't.

そのため、サンプリングした波形データをメモリに書き
込んだ直後に任意の読み出しモードで即座に読み出して
サンプリング音を確認しようとする場合は、これを行う
ことができなかった。
Therefore, if you want to check the sampled sound by immediately reading out the sampled waveform data in an arbitrary read mode immediately after writing it into the memory, this cannot be done.

この発明は上述の点に鑑みてなされたもので、メモリに
書き込んだ外部音波形サンプルデータの実際の最終アド
レスを書込み動作に並行して同時に検出し、この最終ア
ドレスを終点又は起点として該メモリの波形サンプルデ
ータを順方向に又は逆方向に読み出すようにする多様な
形態の読み出し制御を書込み後直ちに行えるようにする
楽音発生装置を提供しようとするものである。
This invention has been made in view of the above-mentioned points, and involves simultaneously detecting the actual final address of external sound waveform sample data written to the memory in parallel with the writing operation, and using this final address as the end or starting point of the memory. It is an object of the present invention to provide a musical tone generating device that can perform various types of read control such as reading waveform sample data in the forward direction or in the reverse direction immediately after writing.

〔問題点を解決するための手段〕[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; zero-crossing detection means for detecting zero-crossings of the sound signal or the waveform sample data; and writing control means for writing waveform sample data into the storage means every time a zero-crossing is detected by the zero-crossing detection means. final address detection means for storing a data write address and detecting the last address stored when writing is completed as the final address of the waveform sample data; and a final address detected by the final address detection means. readout control means for reading out the waveform sample data of the storage means in a forward or reverse direction as an end point or a starting point, and generating a musical tone signal corresponding to the waveform sample data read from the storage means. It is something.

これを図によって示すと、第1図のようであり、1が外
部音サンプリング手段、2が記憶手段、3が書込み制御
手段、4がゼロクロス検出手段、5が最終アドレス検出
手段、6が読み出し制御手段、である。
This is illustrated in Figure 1, where 1 is an external sound sampling means, 2 is a storage means, 3 is a write control means, 4 is a zero cross detection means, 5 is a final address detection means, and 6 is a readout control means. It is a means.

〔作用〕[Effect]

外部から入力された音信号は外部音サンプリング手段1
によってサンプリングされ、サンプリングされた該音信
号の波形サンプルデータは書込み制御手段3の制御によ
り記憶手段2に書き込まれる。この書込み動作の最中に
、これと並行して、ゼロクロス検出手段4により、外部
音サンプリング手段1から記憶手段2に与えられる波形
サンプルデータのゼロクロスが検出される。なお、これ
はサンプリングされた音信号そのものからゼロクロスを
検出するようにしても同じことである。最終アドレス検
出手段5では、このゼロクロス検出手段4によりゼロク
ロスが検出される毎に記憶手段2に対する波形サンプル
データの書込みアドレスを記憶し、該波形サンプルデー
タの書込みが終了したときに記憶されている最後のアド
レスを前記波形サンプルデータの最終アドレスとして検
出する。この最終アドレス検出手段5で検出された最終
アドレスは、この最終アドレスを終点又は起点として記
憶手段2の波形サンプルデータを順方向に又は逆方向に
読み出すために誂出し制御手段6で利用される。記憶手
段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. During and in parallel with this write operation, the zero cross detection means 4 detects the zero cross of the waveform sample data provided from the external sound sampling means 1 to the storage means 2. Note that this is the same even if zero crossings are detected from the sampled sound signal itself. The final address detection means 5 stores the write address of the waveform sample data in the storage means 2 every time a zero cross is detected by the zero cross detection means 4, and when the writing of the waveform sample data is completed, the last stored address is stored. is detected as the final address of the waveform sample data. The final address detected by the final address detection means 5 is used by the order control means 6 to read out the waveform sample data of the storage means 2 in the forward or reverse direction using this final address as the end point or starting point. A musical tone signal corresponding to the waveform sample data read out from the storage means 2 is generated.

このように、記憶手段2に書き込んだ外部音波形サンプ
ルデータの実際の最終アドレスを書込み動作に並行して
同時に検出するので、この最終アドレスを終点又は起点
として記憶手段2の波形サンプルデータを順方向に又は
逆方向に読み出すようにする多様な形態の読み出し制御
を書込み後直ちに行えるようになる。これにより、サン
プリング方式の楽音発生装置としての演奏性能を向上さ
せることができる。
In this way, since the actual final address of the external waveform sample data written in the storage means 2 is simultaneously detected in parallel with the writing operation, the waveform sample data of the storage means 2 can be forward-directed using this final address as the end point or starting point. Various types of read control such as reading in the opposite direction or in the reverse direction can be performed immediately after writing. As a result, performance performance as a sampling type musical tone generation device can be improved.

〔実施例〕〔Example〕

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

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

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

サンプリング制御操作子群16において、サンプリング
スイッチSMPLとオーバーライドスイッチ0VRWR
は外部音の波形サンプルデータをトーンジェネレータ部
2o内のデー′タメモリ21に書き込む制御を行うべき
ことを指示するスイッチである。リバーススイッチRV
R5とUターンスイッチUTRNとループスイッチLO
OPとエコースイッチECHOは該メモリ21に記憶し
た波形サンプルデータを読み出して演奏を行う際の演奏
モードを指示するスイッチである。
In the sampling control operator group 16, the sampling switch SMPL and the override switch 0VRWR
is a switch that instructs to write the external sound waveform sample data into the data memory 21 in the tone generator section 2o. reverse switch rv
R5 and U-turn switch UTRN and loop switch LO
OP and echo switch ECHO are switches for instructing the performance mode when reading out 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に記憶しである成る
外部音の波形サンプルデータに対して、そのデータを消
去せずに、別の外部音の波形サンプルデータを重ね書き
すること(これを「オーバーライド」という)を指示す
るとき操作するものである。これに対して、サンプリン
グスイッチ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 "override"). On the other hand, when sampling is instructed by the sampling switch SMPL, the previously stored external sound waveform sample data is erased.

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

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

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

ループスイッチLOOPは、メモリ21に記憶した外部
音の波形サンプルデータを繰返し読み出すことを指示す
るとき操作するものである。このような読出しを称して
単に「ループ」という0通常の「ループ」は、メモリ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 a memory 2
The external sound waveform sample data stored in step 1 is repeatedly read out in the forward direction.

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

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

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

「ループ」と「Uターン」と「リバース」を同時に選択
・指示することが可能であり、その場合は、メモリ21
に記憶した外部音の波形サンプルデータを逆方向に読み
出した後、順方向に折返して読み出すことを繰り返す、
これを称して[Uターン・リバース・ループ」という。
It is possible to select and instruct "loop", "U-turn" and "reverse" at the same time, in which case the memory 21
After reading out the external sound waveform sample data stored in the memory in the reverse direction, the data is repeated 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では、図示のような読出しが繰返される
。順方向読出しにおける起点は所定のスタート−アドレ
スであり、終点は所定のエンドアドレスである。逆に、
逆方向読出しにおける起点はエンドアドレスであり、終
点はスタートアドレスである。
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. Note that the "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. At M8, reading as shown is repeated. The starting point in forward reading is a predetermined start-address, and the ending point is a predetermined end address. vice versa,
The starting point in backward reading is the end address, and the ending point is the start address.

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

サンプリング制御操作子群16において、上述のエンド
アドレスの増減変更を指示するために。
In order to instruct the sampling control operator group 16 to increase or decrease the above-mentioned end address.

増加スイッチINCと減少スイッチDECが設けられて
いる。増加スイッチINCの操作に応じてアドレス値が
増加し、減少スイッチDECの操作に応じてアドレス値
が減少する。この実施例では、−例として、増加スイッ
チINCと減少スイッチDECによるエンドアドレスの
増減変更は、1アドレス単位ではなく、複数のアドレス
からなるブロック単位で行われるようになっている。
An increase switch INC and a decrease switch DEC are provided. The address value increases according to the operation of the increase switch INC, and the address value decreases according to the operation of the decrease switch DEC. In this embodiment, for example, the increase/decrease of the end address by the increase switch INC and the decrease switch DEC is performed not in units of one address but in units of blocks consisting of a plurality of 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 flexible 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は、エコー効果を選択するためのものであ
る。ここでいうエコー効果とは。
An echo switch ECHO provided in the sampling control operator group 16 is for selecting an echo effect. What is the echo effect here?

演奏モードを「ループ」に自動的に設定し、かつ発生楽
音の音量エンベロープのレリース時間を自動的に長く(
例えば最長に)設定し、これにより。
Automatically sets the performance mode to "Loop" and automatically lengthens the release time of the volume envelope of the generated musical sound (
For example, set this to the longest.

サンプリングされた波形データをメモリ21から繰返し
読み出し、読み出した波形データに対応する楽音信号の
音量エンベロープを緩やかに減衰させながら該楽音が繰
返し発音されるようにすることである。
The purpose is to repeatedly read out sampled waveform 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 out waveform data.

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

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

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

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

トーンジェネレータ部20は、マイクロフォン22を介
して外部から入力された音信号をサンプリングしてディ
ジタル波形サンプルデータに変換する機能と、サンプリ
ングされたディジタル波形サンプルデータをデータメモ
リ21に書き込む機能と、鍵盤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は、外部音のサンプリングを開始
するときに一定時間の間ビープ音を発生するための回路
である。ビープ音の発音時間は例えば300 m s程
度であり、サンプリングスイッチSMPLの操作に応じ
て発音開始し、終了したときビープエンドパルスBPE
NDを発生する。ビープエンドパルスBPENDに基づ
きトーンジェネレータ部20ではサンプリング動作を開
始する。
The timer beep circuit 24 is a circuit for generating a beep sound for a certain period of time when sampling of external sound is started. The beep sound generation time is, for example, about 300 ms, and the beep sound starts in response to the operation of the sampling switch SMPL, and when it ends, the beep end pulse BPE
Generates ND. Based on the beep end pulse BPEND, the tone generator section 20 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 operation 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.

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

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

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

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

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

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

L P F L G Bは、ループフラグバッファであ
り、エコー効果が選択されたときループフラグLPFL
Gの内容を強制的に“1″にするために、その直前のル
ープフラグLPFLGの内容を保存しておくためのもの
である。このバッファLPFLGBに保存した内容は、
エコー効果が選択されなくなったときループフラグLP
FLGに戻される。
L P F L G B is the loop flag buffer, and when the echo effect is selected, the loop flag LPFL
This is to save the immediately previous contents of the loop flag LPFLG in order to forcibly set the contents of G to "1". The contents saved in this buffer LPFLGB are
Loop flag LP when echo effect is no longer selected
Returned to FLG.

NKEYは、ニューキーコードレジスタであり、新たに
押鍵又はM鍵された鍵のキーコードを記憶するものであ
る。
NKEY is a new key code register, which stores the key code of a newly pressed or M-pressed 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はレリースタイムバッファ、であり1、エンベロー
プ制御操作子群17で設定・制御されたアタック時間、
ディケイ時間、サステインレベル、レリース時間のデー
タ゛を夫々記憶するものである。
ATB is attack time buffer, DTB is decay time buffer, SLB is sustain level buffer, R
TB is a release time buffer 1, an attack time set and controlled by an envelope control operator group 17;
It stores data on decay time, sustain level, and release time.

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

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

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

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

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

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

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

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

ゼロクロス検出パルスZCRは波形サンプルデータのゼ
ロクロス毎に発生されるので、ラッチ回路33のゼロク
ロスアドレスは、何度も書き換えられ、最後にラッチ回
路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図に示すような互いに逆相のノー
ドクロックパルスφ4.φ2が得られる。進相のノート
クロックパルスφ□がアンド回路36を介してアドレス
カウンタ37のカウントクロック人力CLKに入力され
る。遅相のノートクロックパルスφ2は、ナンド回路4
4を介してデータメモリ21の読み書き制御人力R/W
に加わり、その読み書きモードを制御する。
The note clock generation circuit 34 has a new key code NK.
Node clock pulse φ in response to C. occurs. The 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. Node clock pulse φ. are frequency-divided by a factor of 1 and 2 by the frequency divider 35, and the node clock pulses φ4. φ2 is obtained. The phase-advanced note clock pulse φ□ is inputted to the count clock CLK of the address counter 37 via the AND circuit 36. The slow phase note clock pulse φ2 is generated by the NAND circuit 4.
Human power R/W for reading and writing control of data memory 21 through 4
and control its read/write mode.

後述するように、サンプリングモード(通常のサンプリ
ングモード又はオーバーライド・サンプリングモード)
のとき、信号SMI又は8M2が“1”となり、オア回
路45からナンド回路44に111 ?+が与えられる
。これにより、ナンド回路44は遅相のノートクロック
パルスφ2を反転し、データメモリ21の読み書き制御
入力R/Wに加える。従って、データメモリ21は、進
相のノートクロックパルスφ□が11”のとき読出しモ
ード、遅相のノートクロックパルスφ2がパ1”のとき
書込みモードとなり、1アドレスの時間内で時分割的に
読み書きモードが切り換わる。これは、後述するオーバ
ーライド・サンプリングモードのための処置である。な
お、各種の演奏モードM1〜M8のときは、信号SMI
及び8M2がIt OIIであり、ナンド回路44は常
に51”を出力し、データメモリ21は常時書込みモー
ドとなる。なお、1/2分周したノートクロックパルス
φ□をアドレスカウンタ37でカウントするので、ノー
トクロック発生回路34は目的のノートクロックパルス
ψ□の2倍の周波数のノートクロックパルスφ。を発生
するものとする。− アドレスカウンタ37は、データメモリ21の読み書き
アドレスを指定するアドレス信号を発生するもので、プ
リセット制御入力PRに加わるプリセットパルスPRP
に応じてプリセットデータ入力PRDに加わるプリセッ
トデータをプリセットし、このプリセット値を起点とし
てカウントクロック入力CLKに加わるノードクロック
パルスφ、のカウントを行う。アドレスカウンタ37は
、アップ/ダウンカウンタであり、方向指示信号DIR
が1”のときアップカウント、パ0”のときダウンカウ
ントを行う。
As described below, the sampling mode (normal sampling mode or override sampling mode)
At this time, the signal SMI or 8M2 becomes "1" and the signal 111? is sent from the OR circuit 45 to the NAND circuit 44. + is given. As a result, the NAND circuit 44 inverts the delayed note clock pulse φ2 and applies it to the read/write control input R/W of the data memory 21. Therefore, the data memory 21 is in the read mode when the leading phase note clock pulse φ□ is 11", and in the write mode when the slow phase note clock pulse φ2 is 1", and is time-divisionally operated within the time of one address. The read/write mode switches. This is a procedure for the override sampling mode, which will be described later. In addition, in various performance modes M1 to M8, the signal SMI
and 8M2 is It OII, the NAND circuit 44 always outputs 51", and the data memory 21 is always in the write mode. Note that the address counter 37 counts the note clock pulse φ□ whose frequency is divided by 1/2. , the note clock generation circuit 34 generates a note clock pulse φ with twice the frequency of the target note clock pulse ψ The preset pulse PRP that is generated and applied to the preset control input PR
The preset data applied to the preset data input PRD is preset in accordance with the preset data input PRD, and the node clock pulses φ applied to the count clock input CLK are counted using this preset value as a starting point. The address counter 37 is an up/down counter and has a direction indication signal DIR.
When is 1'', up-counting is performed, and when pa is 0'', down-counting is performed.

アドレスカウンタ37の出力はデータメモリ21のアド
レス入力ADに加わると共に比較器38に加わり、更に
上位4ビツトがゼロクロスアドレスラッチ回路33に入
力される。アドレス信号は、12ビツトからなり、上位
4ビツトで0〜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ビツトが“Onである初期アドレスデータを選
択して終点アドレスレジスタ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 (
(set to “1”). On the other hand, when the address signal is progressing in the opposite direction (that is, decreasing), the selector 39 selects initial address data in which all 12 bits are "ON" and stores it in the end point address register 40. A comparator 38 compares the initial address data stored in the address signal with the address signal, and outputs an end pulse END when the two match.

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

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

なお、後述するようにエンドアドレスデータ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, an 8-bit all-par 1'' is added to the lower part of AD and is applied to the B input of the selector 39.As a result, the end address data LPAD indicates the final address in the block. shall be shown.

アドレスカウンタ37のプリセットデータ人力PRDに
はセレクタ42の出力が加わる。このセレクタ42は、
上述のセレクタ39とは反対に、方向指示信号DIRが
“1”のときつまりアドレスの順方向変化を指示すると
き、へ入力に加わる全12ビツト# Oj#の初期アド
レスデータを選択し、60″のときつまりアドレスの逆
方向変化を指示するときは、B入力に加わるエンドアド
レスデータLPADを選択する。このエンドアドレスデ
ータLPADもその下位に8ビツトのオールu l u
を追加してブロック内の最終アドレスを示すものとされ
る。
The output of the selector 42 is added to the preset data PRD of the address counter 37. This selector 42 is
Contrary to the selector 39 described above, when the direction instruction signal DIR is "1", that is, when instructing a forward change of the address, the initial address data of all 12 bits #Oj# added to the input to 60'' is selected. In other words, when instructing a reverse change in address, select the end address data LPAD that is added to the B input.This end address data LPAD also has 8 bits of all u l u in its lower order.
is added to indicate the final address within 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 37a 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 CLK of the address counter 37 is controlled in accordance with the output signal of the flip-flop 43. The state of this flip-flop 43 is controlled as described later in accordance with the sampling mode or various performance modes M1 to M8.

データメモリ21から読み出された゛波形サンプルデー
タは、乗算器46に入力され、エンベロープ発生器47
から与えられるエンベロープ波形データが乗算される。
The waveform sample data read from the data memory 21 is input to the multiplier 46, and the envelope generator 47
is multiplied by the envelope waveform data given from .

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

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

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

第8図は、メインルーチンを示すもので、まず、キース
キャン処理においては、tn盤14の各鍵を走査し、押
鍵及びM!Iを検出する。この検出に応じて所定の処理
を実行する。ここでは、新たな押鍵を検出したとき第1
2図のキーオンイベントルーチンを実行し、新たな離鍵
を検出したとき第13図のキーオフイベントルーチンを
実行する。
FIG. 8 shows the main routine. First, in the key scanning process, each key on the TN board 14 is scanned, and the pressed keys and M! Detect I. A predetermined process is executed in response to this detection. Here, when a new key press is detected, the first
The key-on event routine shown in FIG. 2 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から与えられるビープエンドパルスBP
ENDを検出し、この検出に応じて第11図のタイマビ
ープエンドイベントルーチンを実行する。また、外部音
のサンプリングが終了したときに後述のようにトーンジ
ェネレータ部20から与えられるサンプリングエンド信
号SMPENDに応じて、第14図のサンプリングエン
ドイベントルーチンを実行する。また、リバーススイッ
チRVR3,UターンスイッチUTRN、ループスイッ
チLOOP、エコースイッチECHO1増加スイッチl
NC1減少スイッチDEC、オールキャンセルスイッチ
CANSELが夫々オフからオンに変わったことを検出
したとき、第15図〜第19図のリバースイベントルー
チン、Uターンイベントルーチン、ループイベントルー
チン、エコーイベントルーチン、増加イベントルーチン
、減少イベントルーチン、オールキャンセルイベントル
ーチンを夫々実行する。
In the sampling control operator scanning process, the operation of each switch of the sampling control operator group 16 is detected, and a predetermined process is executed in response to this detection. here,
When it is detected that the sampling switch SMPL has changed from off to on, the sampling event routine shown in Figure 9 is executed and the override switch 0VRWR is turned on.
When detecting that the switch has changed from off to on, the override event routine shown in FIG. 10 is executed. Also,
Beep end pulse BP given from the timer beep circuit 24 when the beep sound at the start of sampling ends
END is detected, and in response to this detection, the timer beep end event routine of FIG. 11 is executed. Furthermore, when sampling of the external sound is completed, the sampling end event routine shown in FIG. 14 is executed in response to a sampling end signal SMPEND given from the tone generator section 20 as described later. Also, reverse switch RVR3, U-turn switch UTRN, loop switch LOOP, echo switch ECHO1 increase switch l
When it is detected that the NC1 decrease switch DEC and all cancel switch CANSEL have changed from OFF to ON, the reverse event routine, U-turn event routine, loop event routine, echo event routine, and increase event shown in FIGS. 15 to 19 are executed. A routine, a decrease event routine, and an all cancel event routine are executed.

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

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

Wへiンじ乙史ンノ]1供 通常のサンプリング動作を行う場合はまずサンプリング
スイッチSMPLをオンする。これに応じて第9図のサ
ンプリングイベントルーチンがスタートする。ここでは
サンプリングフラグSMPFLGを“1″にセットし、
他のフラグ0VWFLG−ECFLGを“0”にリセッ
トする(ステップ1o1)。次に、二ニーキーコードN
KCとして所定の基準音高(例えばA4音)のキーコー
ドをトーンジェネレータ部2oに送出する(ステップ1
02)。そして、タイマビープ回路24にスタートトリ
ガ信号を送出し、ビープ音を発音させる(ステップ10
3)。なお、フローチャートではトーンジェネレータ部
20をTGで示す。
When performing a 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 1o1). Next, the second key code N
A key code of a predetermined reference pitch (for example, A4 tone) is sent as KC to the tone generator section 2o (step 1).
02). Then, a start trigger signal is sent to the timer beep circuit 24 to generate a beep sound (step 10).
3). In addition, in the flowchart, the tone generator section 20 is indicated by TG.

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

第6図を参照すると、トーンジェネレータ部20では、
与えられたニューキーコードNKCに応じてノートクロ
ック発生回路34から基準音高(A4音)のノートクロ
ックパルスφ。を発生する。ビープ音の発音時間中に、
このノートクロックパルスが安定して発生されるように
なり、サンプリングの準備が完了する。このように、ビ
ープ音はサンプリングの準備完了を知らせる役割を果す
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 note clock pulse is now stably generated and preparation for sampling is completed. In this way, the beep serves to signal that sampling is ready.

ビープエンドパルスBPENDに応じて第11図のルー
チンがスタートする。ステップ104では、サンプリン
グフラグSMPFLGが“1″であることを確認して、
ステップ105に行く。ここでは1通常のサンプリング
モードに対応するサンプリングモード信号SMIを“1
”にし、オーバーライド・サンプリングモードに対応す
るサンプリングモード信号SM2を“O”にして、トー
ンジェネレータ部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 "1", and
Go to step 105. Here, the sampling mode signal SMI corresponding to 1 normal sampling mode is set to “1”.
”, and the sampling mode signal SM2 corresponding to the override sampling mode is set to “O” and sent to the tone generator section 20.

次のステップ106では、トーンジェネレータ部20に
与えるべきデータを次のように初期設定してトーンジェ
ネレータ部20に送出する。演奏モードの各種モード信
号M1〜M8を1′071にする。エンドアドレスデー
タLPADを一最終ブロックを示す値「15」に設定す
る。アタックタイムデータAT、ディケイタイムデータ
DT、レリースタイムデータRTを夫々「0」に設定し
、サスティンレベルデータ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. Various mode signals M1 to M8 of the performance mode are set to 1'071. The end address data LPAD is set to the value "15" indicating the final block. The attack time data AT, decay time data DT, and release time data RT are each set to "0", and the sustain level data SL is set to the 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の内容も上記と同様に直接キーイ
ング型のエンベロープ波形を設定するものに初期設定す
る0次のステップ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 zeroth step 108, data for various musical tone effects are also initialized to predetermined contents.

一方、演奏者はビープ音を確認してから、マイクロフォ
ン22により所望の外部音をピックアップする。第6図
を参照すると、前述の通り、ピックアップされた信号は
アナログ/ディジタル変換器27でサンプリングされ、
ディジタル変換される。ディジタル変換された波形サン
プルデータの音の立上りが立上り検出回路31で検出さ
れ、音の立上り検出に応じてトリガパルスTRGが出力
される。このトリガパルスTRGは、アンド回路50に
入力される。アンド回路50の他の入力には、サンプリ
ングモード信号SMIの“1”がオア回路51を介して
与えられており、トリガパルスTRGに同期してアンド
回路50の出力がl(1jjとなり、これがサンプリン
グスタートパルス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 SMI 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 l(1jj) in synchronization with the trigger pulse TRG, which is the sampling mode signal SMI. 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. 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-, and the output "1" of the AND circuit 56 is inputted to the T- It is applied to the set input S of the flip-flop 41.

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

こうして、トリガパルスTRGの発生に応じて。Thus, in response to the occurrence of trigger pulse TRG.

アドレスカウンタ37がA4音に対応するレートのノー
ドクロックパルスφ□のアップカウントを開始し、その
発生アドレス信号は、初期アドレス(オール“0”)を
起点とし、エンドアドレスLPADを終点として順方向
に変化する。
The address counter 37 starts counting up the node clock pulse φ□ at a rate corresponding to the A4 sound, and the generated address signal starts from the initial address (all "0") and starts at the end address LPAD in the forward direction. Change.

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

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

ラッチ回路29の出力はゲート30を通過してデータメ
モリ21のデータ入力DTに入る。ゲート30は、サン
プリングモード信号SMI及び8M2を入力したオア回
路58の出力とノー1〜クロツクパルスφ2とが入力さ
れるアンド回路59の出力によって制御される。これに
より、ゲート30は、サンプリングモード(通常のサン
プリングモード及びオーバーライド・サンプリングモー
ド)であって且つノートクロックパルスφ8が“1”の
ときのみ、つまり書込みタイミングにおいてのみ、開放
される。なお、各種の演奏モードM1〜M8のときは、
信号SM1及び8M2が“0”であり、アンド回路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 signals SMI and 8M2, and the output of an AND circuit 59 which receives the NO1 to clock pulses φ2. As a result, the gate 30 is opened only in the sampling mode (normal sampling mode and override sampling mode) and only when the note clock pulse φ8 is "1", that is, only at the write timing. In addition, when in various performance modes M1 to M8,
Signals SM1 and 8M2 are “0”, and the AND circuit 59
always outputs "0" and the gate 30 is always closed, so even if noise is picked up by the microphone 22, it can be cut here.

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

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

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

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

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

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

オーバーライド・サンプリング  先にサンプリングした音に重ねて新たにサンプリングし
た音の波形サンプルデータを書込む場合は、オーバーラ
イドスイッチ0VRWRをオンする。これに応じて、第
10図のオーバーライドイベントルーチンが実行される
。ここでは、まず、オーバーライドフラグ0VWFLG
を1”にセットし、他のフラグを′O″″にリセットす
る(ステップ101a)、これに続くステップ102a
Override Sampling To write waveform sample data of a newly sampled sound over the previously sampled sound, 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 'O'''' (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
Iを“0”にセットし、5M2を“1”にセットして、
トーンジェネレータ部20に送出する。その後、通常の
サンプリングモードと同様に、ステップ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
Set I to "0", set 5M2 to "1",
The signal is sent to the tone generator section 20. After that, steps 106 and 107 are performed as in the normal sampling mode.
.. 108 processing is executed.

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

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

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

サンプリングレートの 通常のサンプリングモード及びオーバーライド・サンプ
リングモードにおける波形サンプルデータの書込みレー
トは基準音高(A4音)に限らず、鍵盤14の押鍵によ
って適宜変更することができる。
The writing rate of waveform sample data in the normal sampling mode and the override sampling mode of the sampling rate 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から発生されるノードク
ロックパルスφ。(つまりφ工、φ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 write the contents of the new 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, φwork, φ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.

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

例えば、Cメジャー和音の場合、まず、サンプリングレ
ートを04音に設定し、所望の音色の04音の音信号を
外部からサンプリングする1次に。
For example, in the case of a C major chord, first, the sampling rate is set to 04 note, and the 04 note sound signal of the desired tone is sampled externally.

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

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

サンプリング 了、の 前述のように、外部音波形サンプルデータの書込み終了
時にサンプリングエンド信号SMPENDが発生される
と、第14図のサンプリングエンドイベントルーチンが
実行される。
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
に進み、ゼロクロスアドレスバッファZCRADBの内
容をエンドアドレスバッファLPADBに記憶する。こ
うして、波形サンプルデータの最後のゼロクロスアドレ
スデータがエンドアドレスデータとしてバッファLPA
DBに記憶される。
In the next step 114, it is checked whether the override sampling flag 0VWFLG is "1", and if No, that is, in the normal sampling mode, step 115
Then, the contents of the zero-crossing address buffer ZCRADB are stored in the end address buffer LPADB. In this way, the last zero cross address data of the waveform sample data is sent to the buffer LPA as end address data.
Stored in DB.

次に、サンプリングフラグSMPFLG及び0VWFL
Gを共に“0”にリセットしくステップ116)、トー
ンジェネレータ部20に送出する信号の内容を、SMI
と8M2が共に“0”、Mlが“1”、M2〜M8を6
′0”に夫々設定し。
Next, the sampling flag SMPFLG and 0VWFL
In order to reset both G to "0" (step 116), the contents of the signal sent to the tone generator section 20 are changed to SMI
and 8M2 are both “0”, Ml is “1”, M2 to M8 are 6
Set each to '0'.

かつバッファLPADBの内容をエンドアドレスデータ
LPADとして送出する(ステップ117)。
Then, the contents of the buffer LPADB are sent out 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 content.

オーバーライド・サンブリにグ糸了時の処理オーバーラ
イド・サンプリングが終了したときは、第14図のステ
ップ114がYESと判定され、ステップ119に進み
、現在のエンドアドレスバッファLPADBの内容(こ
れは前回サンプリングした波形サンプルデータの最終ゼ
ロクロスアドレスを示している)がゼロクロスアドレス
バッファZCRADBの内容(これは今回サンプリング
した波形サンプルデータの最終ゼロクロスアドレスを示
している)より小さいかを調べる。YESならば、ステ
ップ115に進み、バッファLPADBの内容を今回の
最終ゼロクロスアドレスデータに書き替える。NOなら
ば、ステップ115は行わずに、ステップ120を経由
してステップ116に行く。
Processing at the end of override sampling When override sampling is completed, step 114 in FIG. It is checked whether the contents of the zero-crossing address buffer ZCRADB (indicating the final zero-crossing address of the waveform sample data sampled this time) are smaller than the contents of the zero-crossing address buffer ZCRADB (indicating the final zero-crossing address of the waveform sample data sampled this time). If YES, the process advances to step 115 and the contents of the buffer LPADB are rewritten to the current final zero-crossing address data. If NO, 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
PADBの内容をゼロクロスアドレスバッファZCRA
DBにセットする。これは、重ね書きされた外部音サン
プリングデータのうち今回サンプリングしたデータの最
終ゼロクロスアドレス(これは前ステップ119の段階
ではバッファZCRADBに記憶されている)は、前回
サンプリングしたデータの最終ゼロクロスアドレスより
も小さいことにより、重ね書きされたデータ全体から見
れば最終ゼロクロスアドレスを特定しているものとはい
えないものであることが判明したため、重ね書きされた
波形サンプルデータ全体から見て真の最終ゼロクロスア
ドレスを特定しているバッファLPADBの内容をバッ
ファZCRADBに記憶させるためである。後述するよ
うに、オールキャンセル処理のとき、ゼロクロスアドレ
スバッファZCRADBの内容をエンドアドレスバッフ
ァLPADBに戻し、該バッファLPADBの内容を真
の最終ゼロクロスアドレスに戻してやる必要があるため
1重ね書き波形における真の最終ゼロクロスアドレスを
バッファZCRADBに保存しておく必要がある。その
ために、ステップ120の処理が挿入されている。
Note that in step 120, the end address buffer L
Transfer the contents of PADB to zero-cross address buffer ZCRA
Set it in DB. This means that among the overwritten external sound sampling data, the final zero-crossing address of the currently sampled data (this was stored in the buffer ZCRADB at the previous step 119) is higher than the final zero-crossing address of the previously sampled data. Because of the small size, it was found that the final zero-crossing address could not be specified from the perspective of the entire overwritten data, so the true final zero-crossing address was determined from the perspective of the entire overwritten waveform sample data. This is to store the contents of the buffer LPADB specifying the buffer ZCRADB. As will be described later, during all cancel processing, it is necessary to return the contents of the zero cross address buffer ZCRADB to the end address buffer LPADB, and return the contents of the buffer LPADB to the true final zero cross address. It is necessary to save the final zero-crossing address in the buffer ZCRADB. For this purpose, the process of step 120 is inserted.

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

第6図を参照すると、トーンジェネレータ部20では、
このオウム返し発音用キーオンパルス0KONPがオア
回路66を介してエンベロープ発生器47に入力される
と共に、オア回路52,53.54及びブリップフロッ
プ67のセット人力Sにも入力される。
Referring to FIG. 6, in the tone generator section 20,
This key-on pulse 0KONP for parroting sound 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の処理により。
Also, by the process of step 117 of the aforementioned sampling end event routine (FIG. 14).

演奏モード信号M1が1′1”とされており、この信号
M1はトーンジェネレータ部20のオア回路55.61
.68に入力される。
The performance mode signal M1 is set to 1'1'', and this signal M1 is applied to the OR circuits 55 and 61 of the tone generator section 20.
.. 68.

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

また、キーオンパルス0KONPに応じてオア回路53
からプリセットパルスPRPが出力される。これにより
、セレクタ42で初期アドレスデータ(オール゛’O”
)が選択されてアドレスカウンタ37にプリセットされ
、セレクタ39でエンドアドレスデータLPADが選択
されてレジスタ40にロードされる。また。
Also, in response to the key-on pulse 0KONP, the OR circuit 53
A preset pulse PRP is output from. As a result, the selector 42 selects the initial address data (all 'O').
) 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は変更
されていないので、書込み時と同じレートのノートクロ
ックパルスφ□がカウントされる。こうして、アドレス
カウンタ37は。
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, note clock pulses φ□ are counted at the same rate as when writing. In this way, the address counter 37.

アップカウントを行い、初期アドレスを起点とし、エン
ドアドレスLPADを終点として順方向にアドレス信号
が変化する。
Up-counting is performed, and the address signal changes in the forward direction starting from the initial address and ending at the end address LPAD.

データメモリ21は信号SMI、SM2が共に“0”で
あることにより常時読出しモードとなる。
The data memory 21 is always in the read mode because the signals SMI and SM2 are both "0".

こうして、直前に書込んだばがりの波形サンプルデータ
が頭から読み出される。
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に与えられる。このよう
に自動的に作成されたキーオフパルス0KOFFによっ
て、エンベロープ発生器47から発生していた直接キー
イング型のエンベロープ波形データがレベルOに立下が
る。こうして、オウム返しの自動発音が終了する。なお
、フリップフロップ67は、キーオフパルス0KOFF
を遅延フリップフロップ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. This is given to the envelope generator 47 via the OR circuit 70 as a key-off pulse OK○FP for parroting sound.The key-off pulse 0KOFF automatically created in this way eliminates the direct signal generated from the envelope generator 47. The keying type envelope waveform data falls to level O. In this way, the automatic sound generation with parrots is completed.Furthermore, the flip-flop 67 outputs a key-off pulse of
is reset by a signal delayed by a delay flip-flop 88.

慎重j:」9彰火定 前述の8種の演奏モードM1〜M8 (第3図参照)は
、各スイッチRVR8,UTRN、LO○Pの振作に応
じて決定される。
The aforementioned eight performance modes M1 to M8 (see FIG. 3) are determined according to the movements of the switches RVR8, UTRN, and LO○P.

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

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

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

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

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

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

第1表 次に、ステップ125では決定した演奏モードに応じた
内容のモード信号M1〜M8をトーンジェネレータ部2
0に送出する。すなわち、上記第1表に従って決定され
た1つのモード信号だけが“1″であり、他のモード信
号は5′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", and the other mode signals are set to 5'0".

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

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

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

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

(各モード共通の説明) 鍵押圧に応じて、前述のようにして押圧鍵のキーコード
がニューキーコードNKCとして与えられ、これに基づ
き、ノートクロック発生回路34から押圧鍵のノートク
ロックパルスφ。が発生される。また、キーオンパルス
KONPによりオア回路52を介してフリップフロップ
4゛3がセットされ、アドレスカウンタ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. Furthermore, the flip-flop 4'3 is set by the key-on pulse KONP via the OR circuit 52, and the note clock pulse φ□ is input to the count input CLK of the address counter 37, and counting of address signals is started. Ru.

T−フリップフロップ41から発生される方向指示信号
DIRの内容は、後述するように、各演奏モードに対応
する信号M1〜M8の状態に応じて異なる。これに応じ
てアドレスカウンタ37のカウント方向が決定され、ノ
ートクロックパルスφ□に応じてアドレス信号が変化し
、データメモリ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 note clock pulse φ□, 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によって設定された内容となっ
ており、これに応じて設定される適宜の形状のエンベロ
ープ波形によって波形サンプルデータの音量エンベロー
プが制御される・なお、比較器38からエンドパルスE
NDが発生されたときの処理は、後述するように、各演
奏モードに対応する信号M1〜M8の状態に応じて異な
る。
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.In addition, the end pulse E is output from the comparator 38.
The processing when an ND is generated 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が111 I+となる。
(Mode M1: Normal performance) When mode signal M1 is “1”, OR circuit 54.55
key oscilloscope pulse KONP and signal M1 given via
“1” satisfies the condition of the AND circuit 56, and T-
Flip-flop 41 is set and direction indication signal DI
R becomes 111 I+.

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

これにより、前述のオウム返し発音のときと同様に、初
期アドレス(オールII O”)を起点とし、エンドア
ドレス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 IIO'') and ending at the end address LPAD, as in the case of the above-mentioned parrot sound.

読出しアドレスがエンドアドレスLPADに到達すると
、比較器38からエンドパルスENDが発生される。こ
のエンドパルス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 END. This end pulse END is generated by AND circuits 60, 71, 72.
, 73. 1'' of the signal M1 is applied to the other input of the AND circuit 60 via the OR circuit 61, and in response to the end pulse END, the AND circuit 60.
.. “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′1”のときは動作しない。
As a result, the read address becomes the end address LPAD.
When the address counter 37 reaches , the address counter 37 stops counting. The other AND circuits 71, 72, 73 receive the signal M1
It does not work when is 1'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に“1″が与え
られる。これにより、T−フリップフロップ41がリセ
ットされ、方向指示信号DIRが“OI+となる。この
方向指示信号DIRの“O”により、セレクタ42では
、エンドアドレスデータLPADを選択し、セレクタ3
9では、初期アドレスデータ(オール“0”)を選択す
る。また、キーオンパルスKONPに応じてオア回路5
3からプリセットパルスPRPが発生される。これによ
り、上述のモ゛−ドM1のときとは逆に、エンドアドレ
スLPADを起点とし、初期アドレスを終点としてデー
タメモリ21から逆方向に1回だけ波形サンプルデータ
が読み出される。
(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-
“1” is applied to the reset input R of the flip-flop 41. As a result, the T-flip-flop 41 is reset, and the direction instruction signal DIR becomes "OI+." Due to "O" of the direction instruction signal DIR, the selector 42 selects the end address data LPAD, and the selector 3 selects the end address data LPAD.
In step 9, initial address data (all "0") is selected. Also, OR circuit 5 responds to key-on pulse KONP.
3, a preset pulse PRP is generated. As a result, contrary to the above mode M1, the waveform sample data is read out from the data memory 21 only once in the reverse direction starting from the end address LPAD and ending at the initial address.

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

このエンドパルスENDは、アンド回路60,71.7
2,73に加わる。アンド回路60の他の入力にはオア
回路61を介して信号M2の“1”が与えられており、
エンドパルスENDに応じてアンド回路60.オア回路
62.遅延フリップフロップ63を介してフリップフロ
ップ43のリセット人力Rに“1″が与えられる。これ
により。
This end pulse END is generated by AND circuits 60, 71.7
Join 2,73. “1” of the signal M2 is applied to the other input of the AND circuit 60 via the OR circuit 61.
AND circuit 60 in response to the end pulse END. OR circuit 62. “1” is applied to the reset input R of the flip-flop 43 via the delay flip-flop 63. Due to this.

読出しアドレスが初期アドレスに到達したとき、アドレ
スカウンタ37のカウントが停止する。他のアンド回路
71,72.73は、信号M2が“′1″のときは動作
しない。
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″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 roars 1"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が与えられてい
ないので、エンドパルス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の“0”によりオア回路68の出
力が41 Q u、これを反転したインバータ76の出
力が“1″となり、エンドパルスENDに応じてアンド
回路72の出力が“1”となる。
On the other hand, due to "0" of the signals Ml and M2, the output of the OR circuit 68 becomes 41 Q u, the output of the inverter 76 which inverts this becomes "1", and the output of the AND circuit 72 becomes "1" in response to the end pulse END. becomes.

アンド回路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. Since the output signal of the inverter 83, which is the other input of the AND circuit 77, is always "1" when the signals M4 and M7 are "0", the end signal is "1". AND circuit 77 according to pulse END
conditions are satisfied, and in response to the output signal "1" of the AND circuit 77, the delay flip-flop 78. ``A preset pulse PRP is generated via the OR circuit 53.

一方、エンドパルスENDはアンド回路71にも加わる
が、オア回路79の出力が0”であるため、アンド回路
71の条件が成立せず、T−フリップフロップ41の状
態は変化しない。従って。
On the other hand, the end pulse END is also applied to the AND circuit 71, but since the output of the OR circuit 79 is 0'', the condition of the AND circuit 71 is not satisfied, and the state of the T-flip-flop 41 does not change.

方向指示信号DIRは“1”のまま変化せず、読出しア
ドレスがエンドアドレスLPADに到達したときに上述
のように発生されるプリセットパルスPRPに応じて、
再び、アドレスカウンタ37に初期アドレスデータ(オ
ール“0″)がプリセットされ、かつレジスタ40には
エンドアドレスデータLPADがロードされる。また、
アドレスカウンタ37はアップカウントモードのままで
ある。こうして、初期アドレスを起点とし、エンドアド
レスLPADを終点としてデータメモリ21から再び順
方向に波形サンプルデータが読み出される。
The direction indication signal DIR remains at "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,
Again, the address counter 37 is preset with initial address data (all "0"), and the register 40 is loaded with end address data LPAD. Also,
Address counter 37 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
を介して与えられるキーオンパルスに○NPと信号M4
の“1”によってアンド回路56の条件が成立し、T−
フリップフロップ41がセットされ、方向指示信号DI
Rが“1nとなる。
(Mode M4: U turn) When mode signal M4 is “1”, OR circuit 54.55
○NP and signal M4 to the key-on pulse given through
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 "1n".

また、キーオンパルス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に加わ
るが、この出力も1′0”である。つまり、信号M4が
“1”のとき方向指示信号DIRが“1” (つまりア
ドレスが順方向に変化している)ならば、該信号M4と
方向指示信号DIRの反転信号を入力したアンド回路8
5の出力が“0”、信号M7と信号DIRが入力された
アンド回路86の出力も“0”であり、オア回路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 "0".Also, the end pulse END is applied to the AND circuit 73, but this output is also 1'0." In other words, if the direction indication signal DIR is "1" when the signal M4 is "1" (that is, the address is changing in the forward direction), the inverted signal of the signal M4 and the direction indication signal DIR is Input AND circuit 8
The output of the AND circuit 86 to which the signal M7 and the signal DIR are input is also "0", and the signal applied from the OR circuit 87 to the AND circuit 73 is "0", and the output of the AND circuit 73 is "0". The condition 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 the forward counting operation, and the address counter 37 does not stop counting.

一方、信号Ml、M2の“O”によりオア回路68の出
力が“0”、これを反転したインバータ76の出力が“
1”となり、エンドパルスENDに応じてアンド回路7
2の出力が“1”となる。
On the other hand, due to "O" of the signals Ml and M2, the output of the OR circuit 68 becomes "0", and the output of the inverter 76 which inverts this becomes "0".
1”, and AND circuit 7 responds to the end pulse END.
The output of 2 becomes "1".

アンド回路72の出力“1”はアンド回路77に加わる
。信号M4が“1”のとき方向指示信号DIRが#1j
l(つまりアドレスが順方向に変化している)ならば、
該信号M4と方向指示信号DIRの反転信号を入力し、
たアンド回路80の出力が640”、信号M7と信号D
IRが入力されたアンド回路81の出力も“O”であり
、両アンド回路80.81の出力を入力したオア回路8
2の出力が110”、これを反転したインバーター83
の出力が111 J+であり、これを入力したアンド回
路77の出力が“1”となる。従って、アンド回路77
の出力信号1(I Ifに応じて遅延フリップフロップ
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 #1j
l (that is, the address is changing in the forward direction), then
Inputting the signal M4 and an inverted signal of the direction instruction signal DIR,
The output of the AND circuit 80 is 640'', the signal M7 and the signal D
The output of the AND circuit 81 to which IR is input is also "O", and the OR circuit 8 to which the outputs of both AND circuits 80 and 81 are input is
The output of 2 is 110", and the inverter 83 inverts this.
The output of 111 J+ is 111 J+, and the output of the AND circuit 77 inputting this becomes "1". Therefore, AND circuit 77
A preset pulse PRP is generated via the delay flip-flop 78 and the OR circuit 53 in accordance with the output signal 1 (IIf) of the output signal 1 (IIf).

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

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

今度は、方向指示信号DIRは0”であり、その反転信
号は1”であり、アンド回路80と85の条件が成立す
る。これにより、アンド回路73の出力が“1”となり
、フリップフロップ43がリセットされる。これにより
、読出しアドレスが初期アドレス(オール゛’O”)に
到達したとき、アドレスカウンタ37のカウントが停止
する。また、アンド回路80の出力“1″によりアンド
回路77の出力が140 IPとなり、プリセットパル
スPRPはもはや発生されない。
This time, the direction instruction signal DIR is 0'', its inverted signal is 1'', and the conditions of AND circuits 80 and 85 are satisfied. 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 initial address (all 'O'), the address counter 37 stops counting.Furthermore, due to the output "1" of the AND circuit 80, the output of the AND circuit 77 becomes 140 IP, 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.7
4を介して与えられるキーオンパルスKONPと信号M
5の“1″によってアンド回路75の条件が成立し、T
−フリップフロップ41のリセット人力Rに1”が午え
られる。これにより、T−フリップフロップ41がリセ
ットされ、方向指示信号DIRがre Onとなる。こ
の方向指示信号DIRの“0”により、上述のモードM
2のときと同様に、エンドアドレスLPADを起点とし
、初期アドレスを終点としてデータメモリ21から逆方
向に波形サンプルデータが読み出される。
(Mode M5: Reverse loop) When mode signal M5 is "1", -OR circuit 54.7
The key-on pulse KONP and the signal M given through 4
5 is "1", the condition of the AND circuit 75 is established, and T
- Reset of the flip-flop 41 "1" is applied to the human power R. As a result, the T-flip-flop 41 is reset and the direction indication signal DIR is turned on. This "0" of the direction indication signal DIR causes the above-mentioned mode M
Similarly to 2, 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は“071のまま
変化せず、読出しアドレスが初期アドレスに到達したと
きに上述のように発生されるプリセットパルスPRPに
応じて、再び、アドレスカウンタ37にエンドアドレス
データLPADがプリセットされ、かつレジスタ40に
は初期アドレスデータ(オール“0”)がロードされる
。また、アドレスカウンタ37はダウンカウントモード
のままである。こうして、エンドアドレスLPADを起
点とし、初期アドレスを終点としてデータメモリ21か
ら再び逆方向に波形サンプルデータが読み出される。
As in mode M3 (loop), the flip-flop 43 is not reset by the end pulse END, and the address counter 37 does not stop counting. Further, the condition of the AND circuit 77 is satisfied in response to the end pulse END, and the preset pulse PRP is generated. Furthermore, 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 indication signal DIR remains "071" and does not change, and the read address is set to the initial value. In response to the preset pulse PRP generated as described above when the address is reached, the address counter 37 is again preset with end address data LPAD, and the register 40 is loaded with initial address data (all "0"). In addition, 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ターン・ループ)。(Mode M6: U-turn loop).

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

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

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

読出しアドレスがエンドアドレスLPADに到達すると
、比較器38からエンドパルスENDが発生される。信
号M6が“1”のときは、アンド回路73の条件は成立
せず、エンドパルスENDによってはフリップフロップ
43はリセットされず、アドレスカウンタ37のカウン
トは停止しない。また、エンドパルスENDによってア
ンド回路77の条件が成立し、プリセットパルスPRP
が発生される。また、信号M6の“1”によりオア回路
79の出力が“1”であるため、エンドパルスENDに
よってアンド回路71の条件が成立し、遅延フリップフ
ロップ84を介してT−フリップフロップ41のカウン
ト人力Cに1g 111が加わり、該T−フリップフロ
ップ41の状態が“1″から11 OIPに反転する。
When the read address reaches the end address LPAD, the comparator 38 generates an end pulse END. When the signal M6 is "1", the condition of the AND circuit 73 is not satisfied, the flip-flop 43 is not reset by the end pulse END, and the address counter 37 does not stop counting. Furthermore, the condition of the AND circuit 77 is satisfied by the end pulse END, and the preset pulse PRP
is generated. Further, since the output of the OR circuit 79 is "1" due to the signal M6 being "1", the condition of the AND circuit 71 is satisfied by the end pulse END, and the count power of the T-flip-flop 41 is passed through the delay flip-flop 84. 1g 111 is added to C, and the state of the T-flip-flop 41 is reversed from "1" to 11 OIP.

従って、方向指示信号DIRは“0”となる。これによ
り、アドレスカウンタ37のカウント方向が前回とは逆
になり、エンドアドレスLPADを起点とし、初期アド
レスを終点としてデータメモリ21から逆方向に波形サ
ンプルデータが読み出される。
Therefore, the direction indication signal DIR becomes "0". As a result, the counting direction of the address counter 37 is reversed from the previous time, and the waveform sample data is read out from the data memory 21 in the reverse direction starting from the end address LPAD and ending at the initial address.

読出しアドレスが初期アドレスに到達すると。When the read address reaches the initial address.

エンドパルスENDが発生され、前述と同様に。An end pulse END is generated, as before.

アンド回路71と77の条件が成立し、プリセットパル
スPRPが発生されると共に、T−フリップフロップ4
1の状態が“0”から“I IIに反転して方向指示信
号DIRが“1”となる。これにより。
The conditions of the AND circuits 71 and 77 are satisfied, the preset pulse PRP is generated, and the T-flip-flop 4
The state of 1 is inverted from "0" to "III" and the direction indication signal DIR becomes "1".As a result, the direction indication signal DIR becomes "1".

アドレスカウンタ37のカウント方向が順方向に戻り、
初期アドレスを起点とし、エンドアドレスLPADを終
点としてデータメモリー21から順方向に波形サンプル
データが読み出される6次に、エンドパルスENDが発
生されると、アドレスカウンタ37のカウント方向が逆
方向にされる。
The counting direction of the address counter 37 returns to the forward direction.
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.6Next, when the end pulse END is generated, 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がリセットされ、方向指示信号D
IRが“0”となる。
(Mode M7: U-turn/reverse) When mode signal M7 is "1", OR circuit 54.74
key-on pulse KONP and signal M7 given via
is “1”, the condition of the AND circuit 75 is established, and T-
The flip-flop 41 is reset and the direction indication signal D
IR becomes "0".

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

読出しアドレスが初期アドレスに到達すると。When the read address reaches the initial address.

比較器38からエンドパルスENDが発生される。An end pulse END is generated from the comparator 38.

このエンドパルスENDは、アンド回路73に加わるが
、この出力は0”である、つまり、信号M7が1”のと
き方向指示信号DIRが“O″(つまりアドレスが逆方
向に変化している)ならば、該信号M7と方向指示信号
DIRを入力したアンド回路86の出力が“0”、アン
ド回路85の出力も“0”であり、オア回路87からア
ンド回路73に加わる信号は0”であり、アンド回路7
3の条件は成立しない。従って、モードM7のときは、
逆方向のカウント動作中に発生されるエンドパルスEN
Dによってはフリップフロップ43はリセットされず、
アドレスカウンタ37のカウントは停止しない。
This end pulse END is applied to the AND circuit 73, but its output is 0'', that is, when the signal M7 is 1'', the direction instruction signal DIR is ``O'' (that is, the address is changing in the opposite direction). Then, 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", and the signal applied from the OR circuit 87 to the AND circuit 73 is "0". Yes, AND circuit 7
Condition 3 does not hold. Therefore, in mode M7,
End pulse EN generated during reverse direction counting operation
Depending on D, the flip-flop 43 is not reset;
The address counter 37 does not stop counting.

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

一方、エンドパルスENDはアンド回路71にも加わり
、信号M7の“1”によりオア回路79の出力が111
11であるため、アンド回路71の条件が成立し、遅延
フリップフロップ84を介してT−フリップフロップ4
1のカウント入力Cに1′1”が加わり、該T−フリッ
プフロップ41の状態が′0″から# I Itに反転
する。従って、方向指示信号DIRは“1”となる。こ
れにより、セレクタ42では、初期アドレスデータ(オ
ール“O″)を選択し、セレクタ39では、エンドアド
レスデータLPADを選択し、上述のように発生したプ
リセットパルスPRPにより、これらが ゛カウンタ3
7にプリセットされ、また、レジスタ40にロードされ
る。こうして、前回とは逆に、初期アドレスを起点とし
、エンドアドレスLPADを終点としてデータメモリ2
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 becomes 111 due to the signal M7 being "1".
11, the condition of the AND circuit 71 is satisfied, and the T-flip-flop 4 is passed through the delay flip-flop 84.
1'1'' is added to the count input C of 1, and the state of the T-flip-flop 41 is inverted from '0'' to #IIt. Therefore, the direction instruction signal DIR becomes "1". As a result, the selector 42 selects the initial address data (all "O"), the selector 39 selects the end address data LPAD, and the preset pulse PRP generated as described above causes these to be transferred to the counter 3.
7 and also loaded into register 40. In this way, contrary to the previous time, the data memory 2 starts from the initial address and ends from the end address LPAD.
Waveform sample data is read out in the forward direction from 1.

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

これにより、アンド回路73の出力が“1″となり、フ
リップフロップ43がリセットされる。これにより、読
出しアドレスがエンドアドレスLPADに到達したとき
、アドレスカウンタ37のカウントが停止する。また、
アンド回路81の出力“1″によりアンド回路77の出
力が10”となり、プリセットパルス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. Also,
Due to the output "1" of the AND circuit 81, the output of the AND circuit 77 becomes "10", and the preset pulse PRP is no longer generated.

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

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

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

この方向指示信号DIRの゛Oパにより、上述のモード
M7(Uターン・リバース)のときと同様に、エンドア
ドレスLPADを起点とし、初期アドレスを終点として
データメモリ21から逆方向に波形サンプルデータが読
み出される。
Due to the output of this direction instruction signal DIR, the waveform sample data is transferred from the data memory 21 in the reverse direction starting from the end address LPAD and ending at the initial address, as in the case of mode M7 (U-turn/reverse) described above. 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の条件が成立し、プリセットパルスPRP
が発生される。
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 count of the address counter 37 is not stopped. conditions are met, preset pulse PRP
is generated.

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

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

これにより、アドレスカウンタ37のカウント方向が逆
方向に戻り、エンドアドレスLPADを起点とし、初期
アドレスを終点としてデータメモリ21から逆方向に波
形サンプルデニタが読み出される。次に、エンドパルス
ENDが発生されると。
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.

アドレスカウンタ37のカウント方向が順方向にされる
The counting direction of the address counter 37 is set to the forward direction.

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

こうして、「リターン・リバース・ループJの場合は、
データメモリ21の波形サンプルデータを逆方向に読み
出した後、該データメモリ21の波形サンプルデータを
順方向に折返して読み出す「リターン・リバース」読出
しを何回も繰返す。
Thus, in the case of return reverse loop J,
After reading out the waveform sample data in the data memory 21 in the reverse direction, "return/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回発音する、という「
リターン・リバース」を何回も繰返して新しい演奏効果
を実現することができる。押圧鍵を離鍵して音量制御エ
ンベロープを減衰させることにより、この発音を終了す
ることができる。
As a result, 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.
You can achieve new performance effects by repeating ``Return/Reverse'' many times. This sound generation can be ended by releasing the pressed key and attenuating the volume control envelope.

エンドアドレスの ゛ ・  理 前述の第14図のステップ115の処理により。End address ゛ ・   ゛ By the process of step 115 in FIG. 14 described above.

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

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

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

増加スイッチINCがオンされると、第17図の増加イ
ベントルーチンが実行される。ここでは、ステップ13
5においてループフラグLPFLGが“1”であるかを
調べ、YESならステップ136に行くが、NOならば
リターンへ行く、これは、上述の「ループ」関連の演奏
モードM3.MS、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 "1", and if YES, the process goes to step 136, but if NO, the process goes to return. MS, M6. This is to perform this control at M8. In step 136, the contents of the end address buffer LPADB are incremented by one. Note that if the contents of the buffer LPADB reach the maximum value in this increment operation, the maximum value is held.

前述の通すバッファLPADBに記憶されるデータはブ
ロック単位であるため、この増加もブロック単位で行わ
れる。この場合、最大値は「15」である0次のステッ
プ137では、エンドアドレスバッファLPADBの内
容をエンドアドレスデータLPADとしてトーンジェネ
レータ部20に送出する。
Since the data stored in the above-mentioned passing buffer LPADB is in block units, this increase is also performed in block units. In this case, in the zero-th order step 137 where the maximum value is "15", the contents of the end address buffer LPADB are sent to the tone generator unit 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 I) A D 
Bの内容を増減変更することによりトーンジェネレータ
部20で利用するエンドアドレスデータLPADの値を
増減変更することができる。
Thus, the end address buffer L I) A D
By increasing or decreasing the contents of B, 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を0”から“1”に、又は
“1″から11011に、反転する。ステップ139で
は、エコーフラグECFLGが11”であるかを調べ、
1′I IIであれば、ステップ140に行き、ループ
フラグLPFLGの内容をループフラグバッファLPF
LGBに保存してから該ループフラグLPFLGをtt
 I IIにセットする。こうして、演奏モードを「ル
ープ」に関連するモード、つまり「ループ」、「リバー
ス・ループ」、「Uターン・ループ」、又は「Uターン
・リバース・ループ」に自動的に設定する。
Echo Switch 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 inverted from 0" to "1" or from "1" to 11011. In step 139, it is checked whether the echo flag ECFLG is 11".
1'I II, go to step 140 and save the contents of the loop flag LPFLG to the loop flag buffer LPF.
After saving it to LGB, set the loop flag LPFLG to tt
Set to I II. In this way, the performance mode is automatically set to a mode related to "loop", ie, "loop", "reverse loop", "U-turn loop", or "U-turn reverse loop".

次のステップ124a、125aでは、第15図のステ
ップ124,125と同じ処理を行い、演奏モードをM
1〜M8の何れかに決定する。但し、この場合はループ
フラグLPFLGが1″にセットされているので、「ル
ープ」関連の演奏モードM3.M5.M6.M8の何れ
かに必ず決定される。
In the next steps 124a and 125a, the same processing as steps 124 and 125 in FIG. 15 is performed, and the performance mode is set to M.
Decide on one from 1 to M8. However, in this case, since the loop flag LPFLG is set to 1'', the "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から発生されるエ
ンベロープ波形データのレリース時間が最長に設定され
、発生楽音は、離鍵後に極めて緩やかに減衰するように
なる。しかも、演奏モードは「ループ」関連のモードM
3.M5.M6.M8の何れかに設定されるので、デー
タメモリ21に記憶した波形サンプルデータが順方向又
は逆方向又は交互に順方向と逆方向に切り替わりながら
繰返し読み出され、それに対応する楽音が次第に小さく
なる音量レベルで繰返し発音される。なお、繰返し読み
出される波形サンプルデータは外部音をサンプリングし
たものであるため、一般に、それ自体で音の立上りから
立下りに至る振幅エンベロープを具備している。従って
、音の立上りから立下りに至る振幅エンベロープを具備
した音が何回も繰返し発音され、しかもその音量が次第
に減衰する、エコーのような効果を実現することができ
る。しかも、単なる従来のエコーと異なる点は、「ルー
プ」関連の演奏モードM3.M5.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 generated musical tone attenuates extremely slowly after the key is released. Moreover, the performance mode is “loop” related mode M
3. M5. M6. M8, the waveform sample data stored in the data memory 21 is read out repeatedly in the forward direction, reverse direction, or alternately switching between forward and reverse directions, and the volume of the corresponding musical tone gradually decreases. Repeatedly sounded at the level. Note that since the waveform sample data that is repeatedly read is a sample of external sound, it generally has its own amplitude envelope extending from the rise to the fall of the sound. Therefore, it is possible to realize an echo-like effect in which a sound with an amplitude envelope ranging from the rise to the fall of the sound is repeatedly produced many times, and the volume gradually attenuates. Moreover, the difference from a simple conventional echo is the "loop" related performance mode M3. M5. As a result of the sound generation control by 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がxt ’Otoになると、ス
テップ144の処理によりループフラグバッファLPF
LGBの内容をループフラグLPFLGにに戻すことに
より、該ループフラグLPFLGの内容をエコー効果を
かける前の状態に戻す。次のステップ124b、125
bでは、第15図のステップ124.125と同じ処理
を行い、演奏モードをM1〜M8の何れかに決定する。
When the echo flag ECFLG becomes xt'Oto, the loop flag buffer LPF is
By returning the contents of LGB to the loop flag LPFLG, the contents of the loop flag LPFLG are returned to the state before applying the echo effect. Next steps 124b, 125
At step b, the same processing as steps 124 and 125 in FIG. 15 is performed, and the performance mode is determined to be one of M1 to M8.

次のステップ145では、レリースタイム保存バッファ
RTBUFの内容をレリースタイムバッファRTBに戻
すことにより、該レリースタイムバッファRTBの内容
をエコー効果をかける前の状態に戻す。
In the next step 145, the contents of the release time storage buffer RTBUF are returned to the release time buffer RTB, thereby returning the contents of the release time buffer RTB to the state before the echo effect was applied.

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

まず、ステップ146では、各フラグS M P F 
LG、0VWFLG、LPFLG、UTFLG、RVF
LG、ECFLGを“O”にリセットする。これは、操
作パネル部15における各スイッチSMP L 、 O
V RW R、L OOP 、 U T RN 、 R
V R8,ECHOの操作に応じて設定されたサンプリ
ングモードや演奏モードM2〜M8をキャンセルし、演
奏モードM1に初期設定するためである。
First, in step 146, each flag S M P F
LG, 0VWFLG, LPFLG, UTFLG, RVF
Reset LG and ECFLG to “O”. This corresponds to each switch SMP L, O in the operation panel section 15.
V RW R, L OOP, U T RN, R
This is to cancel the sampling mode and performance modes M2 to M8 set according to the operations of VR8 and ECHO, and to initialize the performance mode M1.

次のステップ147では、ゼロクロスアドレスバッファ
ZCRADBに記憶している原波形における本来の最終
ゼロクロスアドレスデータをエンドアドレスバッファL
PADHに記憶する。これは、前述のようにエンドアド
レスバッファLPADBの内容は増加スイッチINC及
び減少スイッチDECの操作に応じて変更されることが
あるので、そのような変更をキャンセルして、″lll
+ンドアドレスバッファ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 PADH. This is because 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 as described above, so such changes are canceled and ``llll
This is to return the contents of the second address buffer LPADB to the original final zero-crossing address in the original waveform.

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

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

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

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

このように、オールキャンセルスイッチCANSELが
操作されると、波形サンプルデータに関連して操作パネ
ル部15で設定・選択・変更・調整した各種のデータの
全て又は所定のものが、キャンセルされ、これらのデー
タの内容が最初にサンプリングしたときの状態に戻され
る。つまり。
In this way, when the all cancel switch CANSEL is operated, all or predetermined data set, selected, changed, or adjusted on the operation panel section 15 in relation to the waveform sample data are canceled. The data contents are returned to the state they were in when they were first sampled. In other words.

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

又史匠 上記実施例では、データメモリに記憶する波形サンプル
データは、PCM (パルスコード変調)方式で表現さ
れているものとしているが、これに限らず、差分PCM
や適応差分PCM、デルタ変調(DM)、適応デルタ変
調(ADM)など、適宜のデータ圧縮方式を用いて表現
するようにしてもよい。また、サンプリングした波形サ
ンプルデータに対して適宜のデータ補正処理(例えばそ
の振幅レベルが全区間でほぼ一定になるように規格化す
る処理など)を行った後データメモリに書き込むように
してもよい。この場合、上記データ補正処理(レベル規
格化処理など)はマイクロフォンでピックアップしたア
ナログの音信号に対し行うようにしてもよい。
Furthermore, 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; however, 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 one software process 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つのスイッチRVRS、UT
RN、LOOPの繰作に応じて8つの演奏モードM1〜
M8を決定するようにしているが、各モードM1〜M8
を個別に選択するためのスイッチを別々に設けてもよい
In addition, in the above embodiment, three switches RVRS, UT
8 performance modes M1~ depending on the RN and LOOP repetitions
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. It is also possible to have a configuration in which the tone color can be selected as appropriate.

上記実施例では外部音をサンプリングした直後にサンプ
リングした音を自動釣にオウム返しに発音するためのト
リガとしてのキーオンパルス0KONPをソフトウェア
処理(第14図のステップ118)によって発生してい
るが、これは、トーンジェネレータ部における専用のハ
ードウェア回路によって発生するようにしてもよい。そ
のためには、例えば、サンプリングエンド信号SMPE
NDが出たときつまりエンドパルスENDが出たときに
アドレスカウンタ37のカウントを停止せずにオーバー
フ”ローにまかせてそのまま初期アドレスからのアップ
カウントを継続させ、かつサンプリングエンド信号SM
PENDをオウム返し用のキーオンパルス0KONPと
してエンベロープ発生器47に入力すると共に、サンプ
リングモード信号SMI、SM2を夫々“0″にし、モ
ード信号M1を“1”にするとよい。
In the above embodiment, immediately after sampling an external sound, a key-on pulse 0KONP is generated by software processing (step 118 in FIG. 14) as a trigger for automatically generating the sampled 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 letting the overflow occur, and the sampling end signal SM
It is preferable to input PEND to the envelope generator 47 as the key-on pulse 0KONP for parrot return, set the sampling mode signals SMI and SM2 to "0", and set the mode signal M1 to "1".

また、上記実施例では外部音をサンプリングした直後の
オウム返しの発音におけるデータメモリの読出しレート
は書込みレートと同じであるが。
Furthermore, in the above embodiment, the reading rate of the data memory is the same as the writing rate in the parrot sound generation immediately after sampling the external sound.

これは異ならせてもよい。This may be different.

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

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

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

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

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

また、上記実施例ではオールキャンセル処理においては
操作パネル部で設定・制御した全てのデータをキャンセ
ルして所定の初期状態に戻すようにしているが、これは
サンプリングした外部音に密接に関連するデータのみキ
ャンセルして所定の初期状態に戻すようにしてもよい。
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 actual final address of the external sound waveform sample data written in the storage means is simultaneously detected in parallel with the writing operation.
It is now possible to perform performances based on various readout formats in which the waveform sample data in the storage means is read out in the forward or reverse direction with this final address as the end or starting point immediately after writing, and this allows sampling-based musical tone generation. The performance performance of the device can be improved.
It has this excellent effect.

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

第1図はこの発明に係る楽音発生装置の概要を示す機能
ブロック図、 第2図はこの発明に係る楽音発生装置を適用した’l’
LA子楽器の子実器例を示すハード構成図。 第3図は第2図の実施例において実現される各種演奏モ
ードにおけるデータメモリの読出し形態を概略的に示す
図、 第4図は第2図のトーンジェネレータ部に含まれるデー
タメモリのアドレス構成の一例を示す図。 第5図は第2図のマイクロコンピュータ部におけるデー
タ及びワーキングメモリのメモリマツプの一例を示す図
。 第6図は第2園のトーンジェネレータ部の詳細例を示す
ブロック図、 第7図は第6図におけるノートクロックパルスの発生例
を示すタイミングチャート。 第8図乃至第19図は第2図のマイクロコンピュータ部
において実行されるプログラムの一例を示すフローチャ
ートであって、第8図はメインルーチン、第9図はサン
プリングイベントルーチン、第10図はオーバーライド
イベントルーチン、第11図はタイマビープエンドイベ
ントルーチン。 第12図はキーオンイベントルーチン、第13図はキー
オフイベントルーチン、第14図はサンプリングエンド
イベントルーチン、第15図はリバースイベントルーチ
ン及びUターンイベントルーチン及びループイベントル
ーチン、第16図はエコーイベントルーチン、第17図
は増加イベントルーチン、第18図は減少イベントルー
チン、第19図はオールキャンセルイベントルーチンを
夫々示すもの、である。 1・・・外部音サンプリング手段、2・・・記憶手段、
3・・・書込み制御手段、4・・・読出し制御手段、1
4・・・鍵盤、15・・・操作パネル部、16・・・サ
ンプリング制御操作子群、17・・・エンベロープ制御
操作子群、18・・・効果制御操作子群、20・・・ト
ーンジェネレータ部、21・・・データメモリ、22・
・・マイクロフォン、24・・・タイマビープ回路、2
7・・・アナログ/ディジタル変換器、28・・・重ね
書き用の加算器、32・・・ゼロクロス検出回路、−3
3・・・ゼロクロスアドレスラッチ回路、34・・・ノ
ートクロック発生回路、37・・・アドレスカウンタ、
38・・・比較器、40・・・終点アドレスレジスタ、
47・・・エンベロープ発生器。 特許出願人  日本楽器製造株式会社 代 理 人  弁理士 飯塚 蓋付 図面の浄書(内′aに変更なしン 第1図 Q欠D   第16図 第18図 手続補正書防式) %式% 1、事件の表示 昭和62年特許願第1210号 2、発明の名称 楽音発生装置 3、補正をする者 事件との関係  特許出願人 (名称)   (407)日本楽器製造株式会社4、代
理人 別紙の通り(内容に変更なし)
FIG. 1 is a functional block diagram showing an overview of the musical tone generating device according to the present invention, and FIG. 2 is a functional block diagram showing the outline of the musical tone generating device according to the present invention.
A hardware configuration diagram showing an example of a child instrument of an LA child instrument. 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. FIG. 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 the second garden, and FIG. 7 is a timing chart showing an example of generation of note clock pulses in FIG. 8 to 19 are flowcharts showing examples of programs executed in the microcomputer section of FIG. 2, in which FIG. 8 is a main routine, FIG. 9 is a sampling event routine, and FIG. 10 is an override event. Routine, FIG. 11 is a timer beep end event routine. FIG. 12 shows the key-on event routine, FIG. 13 shows the key-off event routine, FIG. 14 shows the sampling end event routine, FIG. 15 shows the reverse event routine, U-turn event routine, and loop event routine, and FIG. 16 shows the echo event routine. FIG. 17 shows an 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 operator group, 18...Effect control operator group, 20...Tone generator Part, 21... Data memory, 22.
...Microphone, 24...Timer beep circuit, 2
7... Analog/digital converter, 28... Adder for overwriting, 32... Zero cross detection circuit, -3
3... Zero cross address latch circuit, 34... Note clock generation circuit, 37... Address counter,
38... Comparator, 40... End point address register,
47...Envelope generator. Patent applicant: Nippon Musical Instruments Manufacturing Co., Ltd. Agent: Patent attorney: Iizuka Engraving of drawing with lid (No changes in 'a' Figure 1 Q missing D Figure 16 Figure 18 Procedural amendment form) % formula % 1, Indication of the case 1986 Patent Application No. 1210 2, Name of the invention Musical tone generator 3, Person making the amendment Relationship to the case Patent applicant (name) (407) Nippon Gakki Mfg. Co., Ltd. 4, Agent as per attached sheet (No change in content)

Claims (3)

【特許請求の範囲】[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. writing control means for writing into the storage means; zero-cross detection means for detecting zero-crossings of the sound signal or the waveform sample data; and storing a write address of the waveform sample data in the storage means each time a zero-crossing is detected by the zero-crossing detection means. final address detection means for detecting the last address stored when writing is completed as the final address of the waveform sample data; A musical tone generating device, comprising readout control means for reading waveform sample data of the means in a forward or reverse direction, and generating a musical tone signal corresponding to the waveform sample data read from the storage means.
(2)前記最終アドレス検出手段は、複数のアドレスか
らなるブロック単位で、ゼロクロスが検出されたアドレ
スに対応するブロックを記憶し、書込みが終了したとき
に記憶されている最後のブロック内の最後のアドレスを
前記波形サンプルデータの最終アドレスとして検出する
ものである特許請求の範囲第1項記載の楽音発生装置。
(2) The final address detection means stores a block corresponding to an address where a zero crossing is detected in block units consisting of a plurality of addresses, and when writing is completed, the last address in the last block stored is 2. The musical tone generating device according to claim 1, wherein the address is detected as the final address of the waveform sample data.
(3)前記ゼロクロス検出手段は、前記音信号又は波形
サンプルデータのレベルが所定のゼロ判定範囲内に入っ
たか否かを検出するものである特許請求の範囲第1項記
載の楽音発生装置。
(3) The musical tone generating device according to claim 1, wherein the zero cross detection means detects whether the level of the sound signal or waveform sample data falls within a predetermined zero determination range.
JP62001210A 1987-01-07 1987-01-07 Musical sound generator Expired - Lifetime JPH07101351B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP62001210A JPH07101351B2 (en) 1987-01-07 1987-01-07 Musical sound generator
DE87119422T DE3786654T2 (en) 1987-01-07 1987-12-31 Sound signal generating device with a digital sound storage function.
EP87119422A EP0274137B1 (en) 1987-01-07 1987-12-31 Tone signal generation device having a tone sampling 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
JP62001210A JPH07101351B2 (en) 1987-01-07 1987-01-07 Musical sound generator

Publications (2)

Publication Number Publication Date
JPS63169695A true JPS63169695A (en) 1988-07-13
JPH07101351B2 JPH07101351B2 (en) 1995-11-01

Family

ID=11495103

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62001210A Expired - Lifetime JPH07101351B2 (en) 1987-01-07 1987-01-07 Musical sound generator

Country Status (1)

Country Link
JP (1) JPH07101351B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5635192A (en) * 1979-08-31 1981-04-07 Nippon Musical Instruments Mfg Electronic musical instrument
JPS61245196A (en) * 1985-04-24 1986-10-31 ヤマハ株式会社 Musical sound generation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5635192A (en) * 1979-08-31 1981-04-07 Nippon Musical Instruments Mfg Electronic musical instrument
JPS61245196A (en) * 1985-04-24 1986-10-31 ヤマハ株式会社 Musical sound generation

Also Published As

Publication number Publication date
JPH07101351B2 (en) 1995-11-01

Similar Documents

Publication Publication Date Title
EP0274137B1 (en) Tone signal generation device having a tone sampling function
KR0160493B1 (en) Digital audio signal generating apparatus
GB2035624A (en) Electronic timepiece
US4054078A (en) Automatic arpeggio electronic musical instrument
JPS63169695A (en) Musical sound generator
JPS6031189A (en) Musical sound generator
JPS63289594A (en) Musical sound generator
JPS63289595A (en) Musical sound generator
JPS63169694A (en) Musical sound generator
JPS6057392A (en) Electronic musical instrument
JPS63169696A (en) Musical sound generator
JPH0115074B2 (en)
JPS5840199B2 (en) Denshigatsuki
JPS6248239B2 (en)
JPS599260Y2 (en) Tone setting device for electronic musical instruments
JPS6158915B2 (en)
JPS599265Y2 (en) Performance sound setting device for electronic musical instruments
JPS58126597A (en) Musical piece performer
JP3050055B2 (en) Music generator
JP2754613B2 (en) Digital audio signal generator
JPS5848718Y2 (en) Musical tone control device for electronic musical instruments
JPH0823752B2 (en) Waveform data loop method
JP2734024B2 (en) Electronic musical instrument
JPS61245196A (en) Musical sound generation
JPH0348640Y2 (en)