JP2775633B2 - Music control device - Google Patents

Music control device

Info

Publication number
JP2775633B2
JP2775633B2 JP63327042A JP32704288A JP2775633B2 JP 2775633 B2 JP2775633 B2 JP 2775633B2 JP 63327042 A JP63327042 A JP 63327042A JP 32704288 A JP32704288 A JP 32704288A JP 2775633 B2 JP2775633 B2 JP 2775633B2
Authority
JP
Japan
Prior art keywords
pitch
information
peak value
extracted
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP63327042A
Other languages
Japanese (ja)
Other versions
JPH02171798A (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.)
KASHIO KEISANKI KK
Original Assignee
KASHIO KEISANKI KK
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 KASHIO KEISANKI KK filed Critical KASHIO KEISANKI KK
Priority to JP63327042A priority Critical patent/JP2775633B2/en
Publication of JPH02171798A publication Critical patent/JPH02171798A/en
Application granted granted Critical
Publication of JP2775633B2 publication Critical patent/JP2775633B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、電子ギター等の電子弦楽器をはじめとする
シンセサイザータイプの電子楽器に係り、特に入力波形
信号からピッチ情報を抽出しそれに応じて楽音の音高を
制御する楽音制御装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a synthesizer-type electronic musical instrument such as an electronic stringed musical instrument such as an electronic guitar, and more particularly to extracting pitch information from an input waveform signal and playing a musical tone accordingly. The present invention relates to a musical tone control device for controlling the pitch of a musical tone.

〔従来の技術〕[Conventional technology]

ギター等を演奏操作することにより弦の振動等を電気
信号として検出し、その入力波形信号に従ってディジタ
ル回路等で構成された楽音発生回路を制御して、楽音を
合成し放音させるようにした電子楽器が開発されてい
る。
An electronic device that detects string vibrations and the like as electric signals by playing a guitar or the like and controls a tone generation circuit composed of a digital circuit or the like in accordance with the input waveform signal to synthesize and emit a tone. Musical instruments are being developed.

特に、ピッチ抽出回路が入力波形信号からピッチ周波
数を抽出し、楽音発生回路がそのピッチ周波数に対応し
た音高の楽音を発生するタイプのものは、楽音の音高等
が入力波形信号にダイレクトに応答するため、演奏者の
演奏に忠実な楽音合成を行うことができる。
In particular, in the case where the pitch extraction circuit extracts the pitch frequency from the input waveform signal and the tone generation circuit generates a tone with a pitch corresponding to the pitch frequency, the pitch of the tone directly responds to the input waveform signal. Therefore, it is possible to perform tone synthesis faithful to the performance of the player.

このようなタイプの電子楽器においては、楽音の音高
は発音開始時の入力波形信号のピッチ周波数によって決
定されるだけでなく、その後、入力波形信号のピッチ周
波数が変化した場合、前記ピッチ抽出回路がリアルタイ
ムでピッチ周波数を抽出し、それに応じた音高情報を生
成して発音中の楽音の音高を変更制御することができ
る。
In this type of electronic musical instrument, the pitch of a musical tone is not only determined by the pitch frequency of an input waveform signal at the start of sounding, but when the pitch frequency of the input waveform signal changes thereafter, the pitch extraction circuit Extracts a pitch frequency in real time, generates pitch information according to the pitch frequency, and can change and control the pitch of a musical tone being sounded.

従って、例えば電子ギターにおいて、演奏者がチョー
キング演奏(フレット上で弦を押圧している指をフレッ
トの長手方向もしくは直角の方向にスライドさせて弦の
張力を変化させる奏法)に行って、入力波形信号すなわ
ち弦振動波形信号のピッチ周波数を意図的に変化させた
ような場合に、該操作に応じて発音中の楽音の音高を変
化させることができ、大きな演奏効果を付加させること
ができる。
Therefore, for example, in the case of an electronic guitar, a player performs a choking performance (a playing technique in which a finger pressing a string on a fret slides in the longitudinal direction or a right angle direction of the fret to change the tension of the string) and performs an input waveform. When the pitch frequency of the signal, that is, the string vibration waveform signal is intentionally changed, the pitch of the musical tone being generated can be changed according to the operation, and a great performance effect can be added.

この場合、ピッチ周波数は一般にそれほど急激に変化
することはなく、従って、もしピッチ抽出回路から抽出
されるピッチ周波数が何らかの原因で急激に変化したよ
うな場合、これに基づいて音高を変更すると発音中の楽
音の音高変化が不自然になってしまう。上記要因として
は、例えばピッチ抽出回路がピッチの基本周波数成分
(いわゆるピッチ周波数に等しい)以外の倍音成分又は
ノイズ成分を抽出してしまうことが考えられる。
In this case, the pitch frequency generally does not change so rapidly. Therefore, if the pitch frequency extracted from the pitch extraction circuit changes suddenly for some reason, the pitch is changed based on this, and the sound is generated. The pitch change of the middle tone becomes unnatural. As the above factor, for example, it is conceivable that the pitch extraction circuit extracts a harmonic component or a noise component other than a fundamental frequency component of the pitch (equal to a so-called pitch frequency).

そこで、ピッチ周波数の誤抽出を防止するために、従
来のピッチ抽出タイプの電子楽器には、通常、抽出され
たピッチ周波数が正当に変化したものであるか否かを判
定する手段が備えられている。具体的には、例えば現在
抽出されたピッチ周波数(又はピッチ周期)が、前回及
び前々回に抽出された2つのピッチ周波数(又はピッチ
周期)の何れからも、あまり変化しない場合(例えば1
パーセント以下の変化の場合)にのみ、現在抽出された
ピッチ周波数(又はピッチ周期)に基づいて現在発音中
の音高を変更するように制御する手段が備えられてい
る。
Therefore, in order to prevent erroneous extraction of the pitch frequency, a conventional pitch extraction type electronic musical instrument is usually provided with means for determining whether or not the extracted pitch frequency is a legitimate change. I have. Specifically, for example, when the currently extracted pitch frequency (or pitch period) does not change much from either of the two previously extracted pitch frequencies (or pitch periods) (for example, 1).
Only when the change is equal to or less than a percentage, a means is provided for controlling to change the pitch currently being generated based on the currently extracted pitch frequency (or pitch cycle).

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

ここで、入力波形信号の強度(波高値)がかなり弱く
なった時点、すなわち例えば弦をピッキングしてからな
り時間が経過して、弦振動がかなり減衰した時点等にお
いても、ピッチを抽出しようとすると、ピックアップか
ら、基本波抽出用のフィルター、アンプ、更に後段のピ
ッチ抽出回路へと入力波形信号が流れる間に、各回路素
子のノイズ等が無視できなくなり、そのノイズを除去す
るためのノイズ除去対策が必要となる。
Here, even when the intensity (peak value) of the input waveform signal is considerably weakened, that is, when the string vibration has attenuated considerably after a lapse of time after picking a string, for example, the pitch is to be extracted. Then, while the input waveform signal flows from the pickup to the filter for fundamental wave extraction, the amplifier, and further to the subsequent stage pitch extraction circuit, noise of each circuit element cannot be ignored, and noise removal for removing the noise becomes impossible. Countermeasures are required.

前記従来例で、ノイズ除去を実現するためには、連続
するピッチ周波数間で許される変化幅(変化率)を厳し
い条件にすることが考えられる。
In the above-described conventional example, in order to realize noise removal, it is conceivable that a change width (change rate) allowed between successive pitch frequencies is set to a strict condition.

しかし、既に説明したように、例えば電子ギター等に
おいて、演奏者がチョーキング奏法を行って入力波形信
号のピッチ周波数を意図的に変更すると、かなりの範囲
でピッチ周波数が変化し得る。このような状態で、連続
するピッチ周波数間に許される変化幅の条件を厳しくす
ると、上記チョーキング奏法等に基づくピッチ周波数の
意図的な変更が、正当なピッチ周波数の変化とみなされ
ず、音高の変更がなされないという事態も起こり得る。
従って、上記のようなチョーキング操作に対して、発音
中の楽音の音高が追従しなくなり、演奏者の意図した通
り音高の変更を行えずに、不自然な演奏となってしまう
という問題点を有している。
However, as described above, for example, in an electronic guitar or the like, if the player intentionally changes the pitch frequency of the input waveform signal by performing the choking technique, the pitch frequency may change within a considerable range. In such a state, if the condition of the change width allowed between the continuous pitch frequencies is strict, the intentional change of the pitch frequency based on the above-described choking technique or the like is not regarded as a proper change in the pitch frequency, and the pitch is not changed. It can happen that no changes are made.
Therefore, the pitch of the tone being produced does not follow the choking operation as described above, and the pitch cannot be changed as intended by the player, resulting in an unnatural performance. have.

上記問題点は、例えば電子ギターの場合、チョーキン
グ奏法以外にも、グリッサンド、ハンマリングオン等の
奏法、トレモロアームによるアーミング等の操作を行う
ことにより、弦の張力を意図的に変化させたような場合
にも同様に起こり得る。また、電子ギターに限らず他の
電子楽器においても、演奏者の操作により入力波形のピ
ッチ周波数が意図的に変更されような場合が考えられ
る。
For example, in the case of an electronic guitar, in addition to choking, in addition to performing glissando, hammering-on and other playing techniques, and performing operations such as arming with a tremolo arm, string tension is intentionally changed. This can happen as well. Further, not only the electronic guitar, but also other electronic musical instruments, the pitch frequency of the input waveform may be intentionally changed by the operation of the player.

本発明の課題は、演奏者による入力波形信号のピッチ
周波数の意図的な変更操作に迅速に追従して楽音の音高
を変更することを可能にし、かつ、入力波形信号の強度
が弱くなってもノイズの影響を受けにくく安定した音高
の変更を可能とすることにある。
SUMMARY OF THE INVENTION An object of the present invention is to make it possible to change the pitch of a musical tone by quickly following the intentional operation of changing the pitch frequency of an input waveform signal by a player, and to reduce the intensity of the input waveform signal. Another object of the present invention is to enable stable pitch change that is less affected by noise.

〔課題を解決するための手段〕[Means for solving the problem]

本発明は、例えば金属弦振動をピックアップによって
入力波形信号として検出し、これからピッチ情報を抽出
し、該ピッチ情報により楽音の音高を制御するタイプの
電子弦楽器(電子ギター)等として実現される楽音制御
装置である。
According to the present invention, for example, a musical tone realized as an electronic stringed musical instrument (electronic guitar) of a type in which a metal string vibration is detected as an input waveform signal by a pickup, pitch information is extracted therefrom, and the pitch of the musical tone is controlled by the pitch information. It is a control device.

そして、まず、入力波形信号からピッチ情報を抽出す
るピッチ抽出手段を有する。同手段は、例えば予め求め
た入力波形信号をデジタル化し、そのデジタル波形から
有効なピーク値とその直後のゼロクロス時刻を順次検出
し、該有効なピーク値とその直後あるいはその直前のゼ
ロクロス時刻の組を判定することにより、各ゼロクロス
時刻の間隔としてピッチ情報すなわちピッチ周期を抽出
する手段である。或いは、各ピーク値の間隔としてピッ
チ周期を抽出する手段である。勿論、これ以外のピッチ
抽出技術によってもよい。
Then, first, there is provided a pitch extracting means for extracting pitch information from the input waveform signal. The means digitizes, for example, an input waveform signal obtained in advance, sequentially detects a valid peak value and a zero-cross time immediately after the digital signal from the digital waveform, and sets a set of the valid peak value and the zero-cross time immediately after or immediately before the valid peak value. Is a means for extracting pitch information, that is, a pitch cycle, as an interval between each zero crossing time. Alternatively, it is means for extracting a pitch cycle as an interval between each peak value. Of course, other pitch extraction techniques may be used.

次に、強度抽出手段は、上記ピッチ抽出手段から前記
ピッチ情報が順次抽出されるのに対応して前記入力波形
信号の強度情報を順次抽出する手段である。同手段は、
例えば前記ピッチ周期を抽出するもととなったゼロクロ
ス時刻の直線の有効なピーク値を抽出する手段である。
Next, the intensity extracting means is means for sequentially extracting the intensity information of the input waveform signal in response to the pitch information being sequentially extracted from the pitch extracting means. The means
For example, it is means for extracting a valid peak value of a straight line at a zero crossing time from which the pitch period is extracted.

更に、請求項1記載の発明では、前記ピッチ抽出手段
で抽出される今回のピッチ情報が、それ以前に抽出され
たピッチ情報に対して所定変動閾値で定まる変化幅以下
の変化である場合のみ、該今回のピッチ情報に応じた音
高情報を発生する音高情報発生手段と、前記今回のピッ
チ情報に対応する前記強度情報が所定強度閾値以下の強
度を示すのに応じて、前記所定変動閾値の値を減少させ
る変動閾値制御手段とを有する。具体的には、例えば今
回のピッチ周期が、前回及び前々回のピッチ周期に対し
て所定変動閾値以下の変化である場合のみ、今回のピッ
チ周期に対応した音高情報を発生する手段と、今回のピ
ッチ周期が検出された時点のピーク値が所定閾値以下の
場合には、前記所定変動閾値を所定の小さい値に変更す
る手段である。
Furthermore, according to the first aspect of the present invention, only when the current pitch information extracted by the pitch extracting means is a change smaller than a change width determined by a predetermined change threshold with respect to previously extracted pitch information, A pitch information generating means for generating pitch information according to the current pitch information; and the predetermined fluctuation threshold according to the intensity information corresponding to the current pitch information indicating an intensity equal to or less than a predetermined intensity threshold. And a variation threshold control means for decreasing the value of Specifically, for example, only when the current pitch cycle is a change equal to or less than a predetermined fluctuation threshold with respect to the previous and two previous pitch cycles, means for generating pitch information corresponding to the current pitch cycle, When the peak value at the time when the pitch cycle is detected is equal to or smaller than a predetermined threshold, the predetermined variation threshold is changed to a predetermined small value.

請求項第2項記載の発明では、音高情報発生手段は前
記ピッチ抽出手段で順次抽出されるピッチ情報に対応す
る音高情報を発生する手段である。
In the second aspect of the invention, the pitch information generating means is means for generating pitch information corresponding to pitch information sequentially extracted by the pitch extracting means.

ピッチ変更手段は、前記ピッチ抽出手段で抽出される
今回のピッチ情報に対応する前記強度情報が所定強度閾
値以上の強度を示すときは、発生されるべき音高情報を
今回抽出されたピッチ情報に対応してピッチ変更すると
共に、当該変更されたピッチ情報に対応する前記強度情
報を前記音高情報発生手段に出力し、今回のピッチ情報
に対応する前記強度情報が所定強度閾値以下の強度を示
すときは、発生される音高情報を今回抽出されたピッチ
情報とそれ以前に抽出されて変更されたピッチ情報とを
平均演算して前記音高情報発生手段に出力する手段であ
る。
Pitch changing means, when the intensity information corresponding to the current pitch information extracted by the pitch extracting means indicates an intensity equal to or greater than a predetermined intensity threshold, changes the pitch information to be generated to the currently extracted pitch information. The pitch is correspondingly changed, and the intensity information corresponding to the changed pitch information is output to the pitch information generating means, and the intensity information corresponding to the current pitch information indicates an intensity equal to or less than a predetermined intensity threshold. When the pitch information is generated, the pitch information extracted this time and the previously extracted and changed pitch information are averaged and output to the pitch information generating means.

そして、楽音制御手段は、上記楽音情報発生手段によ
り発生された音高情報に基づいて楽音の音高を制御する
手段である。
The musical tone control means is means for controlling the pitch of a musical tone based on the pitch information generated by the musical tone information generating means.

〔作用〕 本発明の作用は次の通りである。[Operation] The operation of the present invention is as follows.

例えばギターシンセサイザー等の電子弦楽器において
は、演奏者がチョーキング演法等によって入力波形信号
のピッチ周波数を意図的に変更する操作を行うのは、経
験的に、弦振動が大きい場合、すなわち入力波形信号の
強度が弱い場合に集中している。従って、請求項1記載
の発明において、強度抽出手段で抽出される強度情報に
よって、入力波形信号の強度が強い状態が検出されてい
る場合は、音高情報発生手段は、発生される音高情報に
対して前回の音向情報からの比較的大きな変化も許すよ
うな制御を行う。これによって、演奏者による意図的な
ピッチ周波数の変更操作にも迅速に追従することができ
る。
For example, in an electronic stringed musical instrument such as a guitar synthesizer, it is empirically performed that a player performs an operation of intentionally changing a pitch frequency of an input waveform signal by a choking manner or the like when the string vibration is large, that is, when the input waveform signal When the intensity is weak, it is concentrated. Therefore, according to the first aspect of the present invention, when a state in which the intensity of the input waveform signal is high is detected by the intensity information extracted by the intensity extracting means, the pitch information generating means outputs the generated pitch information. Control is performed to allow a relatively large change from the previous sound direction information. As a result, it is possible to quickly follow the intentional change operation of the pitch frequency by the player.

逆に、入力波形信号の強度が弱い状態が検出されてい
る場合は、音高情報発生手段は、発生される音高情報に
対して前回の音高情報からの変化は少ししか許さないよ
うな制御を行う。これにより、入力波形信号の強度が弱
くなってノイズ等の影響を受けやすくなった場合に、そ
の影響を効果的に取り除くことができる。
Conversely, when a state in which the intensity of the input waveform signal is weak is detected, the pitch information generating means may allow the generated pitch information to change only slightly from the previous pitch information. Perform control. This makes it possible to effectively remove the influence of the input waveform signal when the intensity of the input waveform signal becomes weak and the input waveform signal is easily affected by noise or the like.

すなわち、例えばピッチ抽出手段で抽出される今回の
ピッチ情報が、それ以前に抽出されたピッチ情報に対し
て所定変動閾値で定まる変化幅以下の変化である場合の
み、該今回のピッチ情報に応じた音高情報を発生する手
段において、今回のピッチ情報に対応する強度情報が所
定強度閾値以下の強度を示す場合には、上記所定変動閾
値を小さい値に減少することにより、ピッチ抽出条件を
厳しくして、ノイズの影響を除去できる。
That is, for example, only when the current pitch information extracted by the pitch extracting means is a change equal to or less than a change width determined by a predetermined change threshold with respect to previously extracted pitch information, the pitch information corresponding to the current pitch information is determined. In the means for generating pitch information, when the intensity information corresponding to the current pitch information indicates an intensity equal to or less than a predetermined intensity threshold, the predetermined fluctuation threshold is reduced to a small value, thereby making the pitch extraction condition strict. Thus, the effect of noise can be eliminated.

また、請求項第2項の発明において、ピッチ変更手段
は前記ピッチ抽出手段で抽出される今回のピッチ情報に
対応する前記強度情報が所定強度閾値以上の強度を示す
ときは、発生されるべき音高情報を今回抽出されたピッ
チ情報に対応してピッチ変更すると共に、当該変更され
たピッチ情報に対応する前記強度情報を前記音高情報発
生手段に出力し、今回のピッチ情報に対応する前記強度
情報が所定強度閾値以下の強度を示すときは、発生され
るべき音高情報を今回抽出されたピッチ情報とそれ以前
に抽出されて変更されたピッチ情報とを平均演算して得
られたピッチ情報に対応してピッチ変更し、当該変更さ
れたピッチ情報に対応する前記強度情報を前記音高情報
発生手段に出力するので、抽出されたピッチが変化すれ
ば直ちにピッチ情報を変更して、この情報に基づいた音
高情報を発生することによって、音高情報を自然に変化
させ、且つ、その変化を滑らかにすることにより、演奏
者の意図しない音高の発音を防止し、ノイズ等の影響で
音高の変化が急激になるのを防ぐことができる。
Further, in the invention according to claim 2, the pitch changing means is adapted to generate a sound to be generated when the intensity information corresponding to the current pitch information extracted by the pitch extracting means indicates an intensity not less than a predetermined intensity threshold. The pitch information is changed in pitch according to the pitch information extracted this time, and the intensity information corresponding to the changed pitch information is output to the pitch information generating means, and the intensity corresponding to the current pitch information is output. When the information indicates an intensity equal to or less than the predetermined intensity threshold, pitch information to be generated is obtained by averaging the pitch information extracted this time and the pitch information extracted and changed before that, and the pitch information obtained. And the intensity information corresponding to the changed pitch information is output to the pitch information generating means, so that if the extracted pitch changes, the pitch information is immediately changed. By generating the pitch information based on this information, the pitch information is naturally changed, and the change is smoothed, thereby preventing the unintended pitch generation of the player. It is possible to prevent a sudden change in pitch due to the influence of noise or the like.

このように、本発明では、演奏者によりピッチ周波数
が意図的に変更され得る場合と、ノイズ等の影響を受け
てピッチ抽出手段が誤ったピッチ周波数を抽出し得る場
合の入力波形信号の強度が異なるのを利用することで、
演奏者による意図的なピッチ周波数の変更操作に良く追
従して音高を変更できると共に、入力波形信号の強度が
弱い場合にもノイズ等の影響を受けにくく、安定して音
高を変更することができる。
As described above, according to the present invention, the intensity of the input waveform signal in the case where the pitch frequency can be intentionally changed by the player and in the case where the pitch extracting means can extract an erroneous pitch frequency due to the influence of noise or the like are reduced. By using different things,
The pitch can be changed by following the performer's intentional pitch frequency change operation, and the pitch can be changed stably even when the intensity of the input waveform signal is weak. Can be.

〔実施例〕〔Example〕

以下、本発明の実施例につき詳細に説明を行う。な
お、以下の説明においては、記号{}、()、《》で囲
まれ、アンダーラインを付した見出しの順に、順次項目
分けを行う。
Hereinafter, embodiments of the present invention will be described in detail. In the following description, items are sequentially classified in the order of headings surrounded by symbols {}, (), and <<>> and underlined.

{本発明による電子楽器の構成} 本実施例は、ボディー上に6本の金属弦が張られ、該
金属弦の下部に設けられたフレット(指板)を指で押さ
えながら、所望の弦をピッキングすることにより演奏を
行う電子ギターとして実現されている。なお、その外見
は省略する。
<< Structure of Electronic Musical Instrument According to the Present Invention >> In this embodiment, six metal strings are stretched on the body, and a desired string is pressed while pressing a fret (fingerboard) provided below the metal string with a finger. It is realized as an electronic guitar that performs by picking. The appearance is omitted.

第1図は、本実施例の全体の構成図である。 FIG. 1 is an overall configuration diagram of the present embodiment.

まず、ピッチ抽出アナログ回路1は、特には図示しな
い前記6本の弦毎にそれぞれ設けられ、各弦の動作を電
気信号に変換するヘキサピックアップからの各出力を、
特には図示しないローパスフィルタに通して高調波成分
を除去することにより、6種類の各波形信号Wi(i=1
〜6)を得る。更に、各波形信号Wiの振幅の符号が正又
は負に変化する毎に、ハイレベル又はローレベルとなる
パルス状のゼロクロス信号Zi(i=1〜6)を発生す
る。そして、これら6種類の波形信号Wi及びゼロクロス
信号Ziを、各々特には図示しないA/D変換器等により、
時分割のシリアリルゼロクロス信号ZCR及びディジタル
出力(時分割波形信号)D1に変換し、出力する。
First, the pitch extraction analog circuit 1 is provided for each of the six strings (not shown), and outputs each output from a hex pickup for converting the operation of each string to an electric signal.
In particular, by removing harmonic components through a low-pass filter (not shown), each of the six types of waveform signals Wi (i = 1
To 6). Further, each time the sign of the amplitude of each waveform signal Wi changes to positive or negative, a pulse-like zero-cross signal Zi (i = 1 to 6) which becomes high level or low level is generated. Then, these six types of waveform signals Wi and zero cross signals Zi are respectively converted by an A / D converter (not shown) and the like.
The signal is converted into a time-division serially-zero cross signal ZCR and a digital output (time-division waveform signal) D1 and output.

ピッチ抽出ディジタル回路2は、第2図に示すように
ピーク検出回路201、時定数変換制御回路202、波高値取
込み回路203、ゼロクロス時刻取込回路204からなる。こ
れら第2図の各回路は、前記ピッチ抽出アナログ回路1
(第1図)からの、6弦分を時分割したシリアルゼロク
ロス信号ZCR及びディジタル出力D1に基づいて、6弦分
を時分割処理する。以下の説明では説明を容易にするた
め1弦分の処理について説明し、シリアルゼロクロス信
号ZCR及びディジタル出力D1は1弦分の信号のイメージ
で説明するが、特に言及しないときには6弦分について
時分割処理が行われているものとする。
As shown in FIG. 2, the pitch extraction digital circuit 2 includes a peak detection circuit 201, a time constant conversion control circuit 202, a peak value capturing circuit 203, and a zero cross time capturing circuit 204. Each of the circuits shown in FIG.
Based on the serial zero-cross signal ZCR obtained by time-dividing the six strings from (FIG. 1) and the digital output D1, the six strings are time-divided. In the following description, the processing for one string will be described for ease of explanation, and the serial zero-cross signal ZCR and the digital output D1 will be described using the image of a signal for one string. It is assumed that processing is being performed.

第2図において、まず、ピーク検出回路201は、前記
シリアルゼロクロス信号ZCR及びディジタル出力D1に基
づいて、ディジタル出力D1の最大ピーク点及び最小ピー
ク点を検出する。そのために、同回路201の内部に、特
には図示しないが、過去のピーク値の絶対値を減算し
(減衰させ)ながらホールドするピークホールド回路を
有している。そして、ピーク検出回路201は前回のピー
ク値検出後、上記ピークホールド回路から出力されるピ
ークホールド信号をしきい値として、次のシリアルゼロ
クロス信号ZCRが発生した後にディジタル出力D1の絶対
値がこのしきい値を越えた時点でピーク値のタイミング
を検出する。なお、ピーク値のタイミング検出は、ディ
ジタル出力D1が正符号の場合と負符号の場合の各々につ
いて行われる。そして、上記ピーク値の検出タイミング
で、正符号の場合は最大ピーク値検出信号MAX、負符号
の場合は最小ピーク値検出信号MINを出力する。なお、
これらの各信号も実際には当然6弦分の時分割信号であ
る。
In FIG. 2, first, a peak detection circuit 201 detects a maximum peak point and a minimum peak point of the digital output D1 based on the serial zero cross signal ZCR and the digital output D1. For this purpose, the circuit 201 includes a peak hold circuit (not shown) for holding while subtracting (attenuating) the absolute value of the past peak value, although not particularly shown. After detecting the previous peak value, the peak detection circuit 201 sets the absolute value of the digital output D1 after the next serial zero-cross signal ZCR is generated, using the peak hold signal output from the peak hold circuit as a threshold. When the threshold value is exceeded, the timing of the peak value is detected. The detection of the peak value timing is performed for each of the case where the digital output D1 has a positive sign and the case where the digital output D1 has a negative sign. Then, at the peak value detection timing, a maximum peak value detection signal MAX is output for a positive sign, and a minimum peak value detection signal MIN is output for a negative sign. In addition,
Each of these signals is actually a time-division signal for six strings.

次に、時定数変換制御回路202は、上記ピーク検出回
路201内にピークホールド回路の減衰率を変更する回路
であり、ピーク検出回路201からの最大・最小ピーク値
検出信号MAX,MIN、及び第1図の中央制御装置(MCP、以
下同じ)3からの制御により動作する。これについては
後述する。
Next, the time constant conversion control circuit 202 is a circuit for changing the attenuation rate of the peak hold circuit in the peak detection circuit 201, and the maximum / minimum peak value detection signals MAX and MIN from the peak detection circuit 201, and the It operates under the control of a central control unit (MCP, hereinafter the same) 3 in FIG. This will be described later.

続いて、第2図における波高値取込回路203は、前記
ピーク抽出アナログ回路1より時分割的に送出されてく
るディジタル出力D1を、各弦毎の波高値にデマルチプレ
クス(分割)処理し、前記ピーク検出回路201からのピ
ーク値検出信号MAX,MINに従って、ピーク値をホールド
する。そして、MCP3(第1図)がアドレスデコーダ4
(第1図)を介してアクセスしたきた弦についての最大
ピーク値、もしくは最小ピーク値をバスBUSを介してMCP
3へ順次出力する。また、この波高値取込回路203から
は、上記ピーク値の他、各弦毎の振動の瞬時値も出力可
能になっている。
Subsequently, the peak value capturing circuit 203 in FIG. 2 performs a demultiplexing (division) process on the digital output D1 sent out in a time-sharing manner from the peak extraction analog circuit 1 into a peak value for each string. The peak value is held in accordance with the peak value detection signals MAX and MIN from the peak detection circuit 201. And MCP3 (FIG. 1) is the address decoder 4
The maximum peak value or the minimum peak value of the string accessed via (FIG. 1) is determined by the MCP via the bus BUS.
Output to 3 sequentially. In addition to the peak value, the peak value capturing circuit 203 can output the instantaneous value of the vibration of each string.

ゼロクロス時刻取込回路204は、前記ピッチ抽出アナ
ログ回路1(第1図)からのシリアルゼロクロス信号ZC
Rに従って、各弦共通のタイムベースカウンタ2041の出
力を、各弦のゼロクロス時点、厳密には、ピーク検出回
路201から出力される最大・最小ピーク値検出信号MAX、
MINで決定される最大ピーク点及び最小ピーク点の通過
タイミング直後のゼロクロス時点でラッチする。このラ
ッチ動作が行われると、ゼロクロス時刻取込回路204は
続いて、第1図のMCP3に割り込み信号INTを出力する。
これにより、MCP3からアドレスデコーダ4(第1図)を
介して出力される制御信号(後述する)に従って、ゼロ
クロスが発生した弦番号、ラッチした当該弦に対応する
ゼロクロス時刻及び正負情報(後述する)を、バスBUS
を介してMCP3へ順次出力する。
The zero-cross time acquisition circuit 204 is provided with a serial zero-cross signal ZC from the pitch extraction analog circuit 1 (FIG. 1).
According to R, the output of the time base counter 2041 common to each string is converted to the zero crossing point of each string, more precisely, the maximum / minimum peak value detection signal MAX output from the peak detection circuit 201,
Latch is performed at the zero crossing point immediately after the passage timing of the maximum peak point and the minimum peak point determined by MIN. When this latch operation is performed, the zero-cross time acquisition circuit 204 subsequently outputs an interrupt signal INT to the MCP3 in FIG.
Thus, in accordance with a control signal (described later) output from the MCP 3 via the address decoder 4 (FIG. 1), the string number at which the zero-cross occurred, the zero-cross time corresponding to the latched string, and positive / negative information (described later) The bus BUS
Are sequentially output to MCP3 via.

また、第2図のタイミングジェネレータ205からは、
第1図及び第2図に示す回路の処理動作のためのタイミ
ング信号が出力される。
Also, from the timing generator 205 in FIG.
Timing signals for processing operations of the circuits shown in FIGS. 1 and 2 are output.

次に、第1図に戻って、MCP3は、メモリ例えばROM301
及びRAM302を有するとともに、タイマ303を有する。ROM
301は後述する各種楽音制御用のプログラムを記憶して
いる不揮発メモリであり、RAM302は該制御時の各種変数
・データ用のワーク領域として用いられる書き替え可能
なメモリである。また、タイマ303は、後述するノート
オフ(消音)処理のために用いられる。
Next, returning to FIG. 1, the MCP 3 is
And a RAM 302, and a timer 303. ROM
Reference numeral 301 denotes a non-volatile memory that stores programs for controlling various musical sounds, which will be described later, and a RAM 302 is a rewritable memory used as a work area for various variables and data during the control. The timer 303 is used for a note-off (silence) process described later.

楽音発生部5は、楽音発生回路501とD/A変換器502、
アンプ503及びスピーカ504からなり、MCP3からの楽音制
御情報に応じた楽音を放音する。なお、楽音発生回路50
1の入力側に、インターフェイス(Musical Instrument
Digital Interface)MIDIが設けられており、楽音制御
情報伝送用の専用バスMIDI−BUSを介して、MCP3と接続
される。なお、ギター本体内に楽音発生部5を設けると
きは、別の内部インターフェイスを介してもよい。
The tone generator 5 includes a tone generator 501 and a D / A converter 502,
It comprises an amplifier 503 and a speaker 504, and emits a tone according to the tone control information from the MCP3. Note that the tone generation circuit 50
Interface (Musical Instrument)
A digital interface (MIDI) is provided, and is connected to the MCP 3 via a dedicated bus MIDI-BUS for transmitting tone control information. When the tone generator 5 is provided in the guitar body, another internal interface may be used.

アドレスデコーダ4は、前記したゼロクロス時刻取込
回路204(第2図)からの割り込み信号INTの発生の後、
MCP3(第1図)から発生するアドレス読み出し信号ARに
従って、ゼロクロス時刻取込回路204に、弦番号読込み
信号▲▼、続いて、時刻読込み信号▲
▼(i=1〜6)を供給する。また、同様に、波
高値取込み回路203(第2図)に波形読込み信号RDAj
(j=1〜18)を出力する。これらの動作の詳細につい
ては後述する。
After the generation of the interrupt signal INT from the above-mentioned zero-cross time acquisition circuit 204 (FIG. 2), the address decoder 4
In accordance with the address read signal AR generated from the MCP 3 (FIG. 1), the zero-crossing time reading circuit 204 sends a string number reading signal ▲ ▼, and then a time reading signal ▲.
▼ (i = 1 to 6) is supplied. Similarly, the waveform reading signal RDAj is supplied to the peak value capturing circuit 203 (FIG. 2).
(J = 1 to 18) is output. Details of these operations will be described later.

{本実施例の概略動作} 上記構成の実施例の動作につき以下に説明する。<< Schematic Operation of the Embodiment >> The operation of the embodiment having the above configuration will be described below.

まず、楽音発生までの本実施例の概略動作について説
明を行う。
First, a schematic operation of this embodiment up to generation of a musical tone will be described.

第10図のD1は、第1図のピック抽出アナログ回路1か
ら出力されるディジタル出力D1の1弦分についてアナロ
グ的に示したものである。この波形は、特には図示しな
いギターの6弦のうち1弦をピッキングすることによ
り、対応するピックアップから検出される電気信号をデ
ィジタル信号として出力したものであり、当該弦を特に
は図示しないフレット(指板)上で押さえる位置に従っ
て、第10図T0〜T5等に示すようなピッチ周期を有する波
形が発生する。
D1 in FIG. 10 is an analog representation of one string of the digital output D1 output from the pick extraction analog circuit 1 in FIG. This waveform is obtained by picking one string out of six strings of a guitar (not shown) and outputting an electric signal detected from a corresponding pickup as a digital signal. according to the position pressed on the fingerboard), a waveform having a pitch period as shown in FIG. 10 T 0 through T 5 and the like are generated.

本実施例では、このピッチ周期T0〜T5等をリアルタイ
ムで抽出することにより、第1図のMCP3がそれに対応す
る音高情報を生成し、第1図の楽音発生回路501でその
音高の楽音を発音させる。従って、特には図示しないト
レモロアームによって、演奏中に演奏者が弦の張力を変
化させたような場合、それに従ってディジタル出力D1の
ピッチ周期が変化するため、音高情報もそれに従ってリ
アルタイムで変化し、楽音に豊かな表現を付加すること
ができる。
In this embodiment, the pitch periods T 0 to T 5 and the like are extracted in real time, so that the MCP 3 in FIG. 1 generates pitch information corresponding to the pitch periods, and the pitch generation circuit 501 in FIG. To produce the musical tone of Therefore, especially when the player changes the tension of the string during the performance by a tremolo arm (not shown), the pitch period of the digital output D1 changes accordingly, and the pitch information also changes in real time accordingly. , Rich expressions can be added to musical sounds.

また、本実施例では、第10図のディジタル出力D1のピ
ーク値a0〜a3又はb0〜b3等を検出しており、特に第1図
のMCP3が立ち上がり時(弦のピッキング時)の最大ピー
ク値a0に基づいて音量情報を作成して楽音発生回路501
に転送することにより、弦をピッキングした強さに応じ
た音量の楽音を発音させることができる。
Further, in this embodiment, when and by detecting the peak value a 0 ~a 3 or b 0 ~b 3 like the tenth diagram of a digital output D1, MCP3 particularly in FIG. 1 rising (when strings Picking) tone generator 501 to create the volume information based on the maximum peak value a 0 for
, A musical tone having a volume corresponding to the strength of picking a string can be generated.

次に、本実施例では楽音の発音開始後に、順次抽出さ
れるピッチ周期(例えば第10図T2〜T5等)に基づいて楽
音の音高を変更する場合、まず、第1の実施例として、
各ピッチ周期の抽出と共に抽出されるピーク値が所定値
以上の場合は、演奏者による意図的なピッチ変化がなさ
れ得ると判定して、抽出されるピッチ周期に対応するピ
ッチ周波数の変化が前回及び前々回のピッチ周波数に比
較して、1/25程度までの変化であっても音高の変更を許
す。逆に、上記ピーク値が所定値以下の場合は、ノイズ
の影響を受けて誤ったピッチ抽出がなされ得ると判定し
て、抽出されるピッチ周期に対応するピッチ周波数の変
化が、前回及び前々回のピッチ周波数に比較して、1/27
以下になるまでは音高の変更を許さない。これによっ
て、演奏者による意図的なピッチ周波数の変更操作に迅
速に追従することができると共に、ディジタル出力D1の
ピーク値(強度)が弱くなってノイズ等の影響を受けや
すくなった場合、その影響を効果的に取り除くことがで
きる。
Then, after the start of sounding of a musical tone in this embodiment, when changing the tone pitch of the musical tone based on the pitch period are sequentially extracted (e.g. FIG. 10 T 2 through T 5, etc.), first, the first embodiment As
If the peak value extracted together with the extraction of each pitch cycle is equal to or greater than a predetermined value, it is determined that the intentional pitch change by the player can be made, and the change in the pitch frequency corresponding to the extracted pitch cycle is the same as the previous one. compared to the pitch frequency of the second last, 1/2 even change of up to about 5 allowing the pitch changes. Conversely, if the peak value is equal to or less than the predetermined value, it is determined that erroneous pitch extraction can be performed under the influence of noise, and the change in the pitch frequency corresponding to the extracted pitch cycle is the same as the previous one and the previous one. 1/2 7 compared to the pitch frequency
It does not allow pitch changes until it falls below. This makes it possible to quickly follow the intentional pitch frequency change operation performed by the player and, if the peak value (intensity) of the digital output D1 becomes weak and becomes susceptible to noise or the like, the effect is obtained. Can be effectively removed.

音高変更のための第2の実施例として、まず、抽出さ
れるピッチ周期に対応するピッチ周波数の変化が、前回
及び前々回のピッチ周波数に比較して、1/25以上の変化
に及ぶ場合は、一律に音高変更を認めない。そして、こ
の条件を満たす場合で、各ピッチ周期の抽出と共に抽出
されるピーク値が所定値以上の場合は、演奏者による意
図的なピッチ変化に追従するように、各ピッチ周期でそ
のまま音高の変更を行う。逆に、上記ピーク値が所定値
以下の場合は、ノイズ等の影響によるピッチ周期の変化
を吸収するため、前回の音高指定に用いたピッチ周期と
今回抽出されたピッチ周期との平均のピッチ周期を演算
し、その平均ピッチ周期によって音高の変更を行う。こ
れにより、ノイズ等の影響で音高の変化が急激になるの
を防ぐことができる。
As a second embodiment for the pitch change, first, the change of the pitch frequency corresponding to the pitch period is extracted, compared to the pitch frequency of the last and the second last, if up to 1/2 5 or more changes Does not uniformly accept pitch changes. When this condition is satisfied, and the peak value extracted together with the extraction of each pitch cycle is equal to or greater than a predetermined value, the pitch is directly changed at each pitch cycle so as to follow the intentional pitch change by the player. Make changes. Conversely, if the peak value is equal to or less than the predetermined value, the average pitch between the pitch cycle used for the previous pitch specification and the currently extracted pitch cycle is used to absorb the change in pitch cycle due to the influence of noise and the like. The period is calculated, and the pitch is changed according to the average pitch period. As a result, it is possible to prevent a sudden change in pitch due to the influence of noise or the like.

以上のように、演奏者による意図的なピッチ周波数の
変更操作に良く追従して音高を変更できると共に、ディ
ジタル出力D1のピーク値が小さい場合にもノイズ等の影
響を受けにくく、安定して音高を変更することができ
る。これが、本実施例の大きな特徴とする点である。
As described above, the pitch can be changed by following the intentional pitch frequency change operation performed by the performer well, and even when the peak value of the digital output D1 is small, the digital output D1 is not easily affected by noise and the like, and is stable. The pitch can be changed. This is a major feature of the present embodiment.

以上の動作は、ギターの6弦分の時分割ディジタル出
力D1について時分割処理されるため、楽音発生回路501
からは6弦分の楽音を聴覚的に同時に発音させることが
できる。そして、これらの楽音は、自由な音量・音色に
設定でき、電子的に各種の効果を付加できるため、極め
て大きな演奏効果が得られる。
The above operation is time-division-processed for the time-division digital output D1 for the six strings of the guitar, so that the tone generation circuit 501
Can sound the sound of six strings aurally simultaneously. These musical tones can be set to any volume and tone freely, and various effects can be electronically added, so that an extremely large performance effect can be obtained.

{ピッチ抽出ディジタル回路の動作} 上記動作を実現するための本実施例の動作について、
以下に詳細に説明を行ってゆく。
<< Operation of Pitch Extraction Digital Circuit >> Regarding the operation of the present embodiment for realizing the above operation,
The details will be described below.

(概略動作) まず、第1図又は第2図のピッチ抽出ディジタル回路
2の動作について説明を行う。なお、以下の説明におい
ても1弦分についてのみ説明し、シリアルゼロクロス信
号ZCR、ディジタル出力D1、最大・最小ピーク値検出信
号MAX,MINは1弦分のイメージで説明するが、実際には
6弦分について時分割処理されている。
(Schematic Operation) First, the operation of the pitch extraction digital circuit 2 shown in FIG. 1 or FIG. 2 will be described. In the following description, only one string is described, and the serial zero cross signal ZCR, the digital output D1, and the maximum / minimum peak value detection signals MAX and MIN are described using the image of one string. Time division processing has been performed for minutes.

同回路2では、各弦毎に第10図のディジタル出力D1か
ら、ピーク値a0〜a3又はb0〜b3等を抽出し、同時に各ピ
ーク値の直後のゼロクロス時刻t1〜t7等を抽出し、更
に、各ゼロクロス時刻の直前のピーク値が正か負により
1又は0を示す情報を抽出して、第1図のMCP3に供給す
る。これに基づいて、MCP3は前記ゼロクロス時刻の間隔
から第10図の各ピッチ周期T0〜T5等を抽出して、また、
その他前記各種楽音情報を生成し、更に、後述するよう
に必要に応じて、エラー処理、ノートオフ(消音)処
理、リフティブオン・オフの処理等を行う。
In the circuit 2, the digital output D1 of FIG. 10 for each chord, the peak value a 0 ~a 3 or b 0 extracts ~b 3, etc., the zero crossing time t 1 ~t 7 immediately after the respective peak values at the same time And the like, and further extracts information indicating whether the peak value immediately before each zero crossing time is 1 or 0 depending on whether the peak value is positive or negative, and supplies the information to the MCP3 in FIG. Based on this, MCP3 extracts the respective pitch period T 0 through T 5, etc. of FIG. 10 from the interval of the zero-crossing time, also,
In addition, the above-mentioned various musical tone information is generated, and further, as will be described later, error processing, note-off (silence) processing, lifting on / off processing, and the like are performed.

(詳細動作) そのために、第2図のピーク検出回路201では、第10
図のように入力してくるディジタル出力D1に対して、ま
ず、その値が負となる部分で、その絶対値が0を越えた
タイミングでx0で、第10図に示すような最小ピーク値検
出信号MINがハイレベルになる。
(Detailed Operation) To this end, the peak detection circuit 201 shown in FIG.
For the digital output D1 input as shown in the figure, first, in the part where the value becomes negative, x0 at the timing when the absolute value exceeds 0 , and the minimum peak value as shown in FIG. The detection signal MIN becomes high level.

これにより、第2図の波高値取込回路203は、上記最
小ピーク値検出信号MINがハイレベルとなった直後のタ
イミングx1で、別に入力するディジタル出力D1から最小
ピーク値(負側の波高値)b0(絶対値)を検出して特に
は図示しないラッチにホールドし、これと共に最小ピー
ク値検出信号MINをローレベルに戻す。
Thus, the peak value acquisition circuit 203 of FIG. 2 is a timing x 1 immediately after the minimum peak value detection signal MIN is at high level, the wave of the minimum peak value (negative from the digital output D1 to enter separately The high value b0 (absolute value) is detected and held in a latch (not shown), and the minimum peak value detection signal MIN is returned to a low level.

一方、第1図のピッチ抽出アナログ回路1から第2図
のゼロクロス時刻取込回路204には、第10図に示すよう
なシリアルゼロクロス信号ZCRが入力している。この信
号は、ピッチ抽出アナログ回路1内の特には図示しない
コンパレータがディジタル出力D1の正負を判定し、それ
に従って同コンパレータからハイレベル又はローレベル
の2値ディジタル信号として出力される信号である。
On the other hand, a serial zero-cross signal ZCR as shown in FIG. 10 is input from the pitch extraction analog circuit 1 in FIG. 1 to the zero-cross time acquisition circuit 204 in FIG. This signal is a signal which is output as a high-level or low-level binary digital signal from a comparator (not shown) in the pitch extraction analog circuit 1 which determines whether the digital output D1 is positive or negative.

そして、ゼロクロス時刻取込回路204では、前記ピー
ク検出回路201から出力される最小ピーク値検出信号MIN
がタイミングx0でハイレベルとなった直後に、シリアル
ゼロクロス信号ZCRが変化するエッジタイミング、すな
わち、ディジタル出力D1のゼロクロス時点で、第2図の
タイムベースカウンタ2041で計時されている時刻t0(第
10図)をラッチする。なお、このラッチデータの最上位
ビットに、直前のピーク値が正であるか負であるかを示
す1または0の正負フラグ(最小ピーク値b0に対しては
0となる)が付加される。
Then, the zero-crossing time acquisition circuit 204 outputs the minimum peak value detection signal MIN output from the peak detection circuit 201.
Immediately but that the high level at timing x 0, the edge timing of the serial zero-crossing signal ZCR is varied, i.e., at the zero crossing point of the digital output D1, time is counted by the time base counter 2041 of FIG. 2 t 0 ( No.
(Fig. 10). Note that a 1 or 0 positive / negative flag (which becomes 0 for the minimum peak value b0) indicating whether the immediately preceding peak value is positive or negative is added to the most significant bit of the latch data. .

更に、ゼロクロス時刻取込回路204は上記動作に連続
して第1図のMCP3に割り込み信号INTを出力する。これ
により、割り込み信号INTが発生した時点において、第
2図の波高値取込回路203には最小ピーク値b0(絶対
値)がホールドされ、ゼロクロス時刻取込回路204には
最小ピーク値b0の発生直後の前記正負フラグを含むゼロ
クロス時刻がラッチされている。
Further, the zero-cross time acquisition circuit 204 outputs an interrupt signal INT to the MCP3 in FIG. As a result, when the interrupt signal INT is generated, the peak value capturing circuit 203 shown in FIG. 2 holds the minimum peak value b 0 (absolute value), and the zero-cross time capturing circuit 204 stores the minimum peak value b 0. The zero-crossing time including the positive / negative flag immediately after the occurrence of is generated is latched.

そして、割り込み信号INTの出力の後、第1図のMCP3
からアドレスデコーダ4を介して行われるアクセス(後
述する)により、上記正負フラグを含むゼロクロス時刻
及び最小ピーク値b0が、バスBUSを介してMPC3に転送さ
れる。なお、以上の処理は6弦分について時分割処理さ
れているため、後述するように、上記各情報の出力の前
に、どの弦番号について上記割り込みが発生したのかを
示す情報を、ゼロクロス時刻取込回路204からMCP3に出
力する。
Then, after outputting the interrupt signal INT, MCP3 in FIG.
From the accesses made through the address decoder 4 (described later), the zero-crossing time and a minimum peak value b 0 containing the negative flag is transferred to MPC3 through the bus BUS. Since the above processing is time-division-processed for six strings, as described later, before the output of the above-mentioned information, information indicating which string number the interrupt has occurred is taken as a zero-crossing time. Output from the embedding circuit 204 to the MCP3.

次に、第2図のピーク検出回路201では、内部の特に
は図示しないピークホールド回路が、第10図の最小ピー
ク値b0(絶対値)をピークホールドし、第10図のピーク
ホールド信号q0を出力する。これにより、ピーク検出回
路201は上記ピークホールド信号(絶対値)をしきい値
として、ディジタル出力D1の負側についてその絶対値が
上記しきい値を越えたタイミングx2で、再び最小ピーク
値検出信号MINをハイレベルにする。
Next, in the peak detection circuit 201 of FIG. 2, an internal peak hold circuit (not shown) peak-holds the minimum peak value b 0 (absolute value) of FIG. Outputs 0 . Thus, the peak detection circuit 201 as a threshold for the peak hold signal (absolute value), the timing x 2 whose absolute value for the negative side exceeds the threshold value of the digital output D1, minimum peak value detected again Set signal MIN to high level.

これにより、前記と全く同様にして、第2図の波高値
取込回路203で、最小ピーク値検出信号MINがハイレベル
となった直後のタイミングx3で次の最小ピーク値b1(絶
対値)がホールドされ、第2図のゼロクロス時刻取込回
路204で、上記最小ピーク値b1の発生直後の正負フラグ
(この場合も0)を含むゼロクロス時刻t2がラッチさ
れ、割り込み信号INTの送出後、MCP3に転送される。
Thus, in the same manner as the second in peak value acquisition circuit 203 of Figure, the minimum peak value detection signal MIN following minimum peak value b 1 at a timing x 3 immediately after the high level (absolute value ) is held in a second view of the zero-crossing time acquisition circuit 204, the zero-crossing time t 2 that includes the minimum peak value b 1 of the immediately following generation negative flag (0 Again) is latched, sends the interrupt signal INT Later, it is transferred to MCP3.

上記に基づく、第10図のディジタル出力D1の負側に対
する最小ピーク値b0〜b3(絶対値)、ゼロクロス時刻
t0,t2,t4,t6等の検出、及びピークホールド信号q0〜q3
等の出力動作と全く同様にして、ディジタル出力D1の正
側に対して最大ピーク値a0〜a3等の検出、ゼロクロス時
刻t1,t3,t5,t7等の検出、及びピークホールド信号p0〜p
3等の出力動作が並列して行われる。なお、この場合
は、ピーク検出回路201から最大ピーク値検出信号MAXが
第10図に示すように出力され、第2図の波高値取込回路
203及びゼロクロス時刻取込回路204においては、この信
号MAXに基づいて最大ピーク値a0〜a3等、及び正負フラ
グ(この場合、正ピークであるから1)を含むゼロクロ
ス時刻t1,t3,t5,t7等がラッチされる。
Based on the above, the minimum peak value b 0 ~b 3 (absolute value) with respect to the negative side of the digital output D1 of FIG. 10, the zero-crossing time
t 0, t 2, t 4 , t 6 detects such, and the peak hold signal q 0 to q 3
Output operation in exactly the same manner etc., the detection of such a maximum peak value a 0 ~a 3 with respect to the positive side of the digital output D1, zero-crossing time t 1, t 3, t 5 , t 7 the detection of such, and peak Hold signals p 0 to p
Output operations such as 3 are performed in parallel. In this case, the maximum peak value detection signal MAX is output from the peak detection circuit 201 as shown in FIG. 10, and the peak value capturing circuit shown in FIG.
In the 203 and the zero-cross time acquisition circuit 204, the zero-cross times t 1 and t 3 including the maximum peak values a 0 to a 3 and the like and the positive / negative flag (in this case, 1 because it is a positive peak) based on the signal MAX. , t 5 , t 7 and the like are latched.

以上に示した動作により、第2図のゼロクロス時刻取
込回路204からは、第10図のゼロクロス時刻t0〜t7の各
時刻毎に割り込み信号INTが第1図のMCP3に出力され、
これに基づいた各時刻毎に、最小又は最大ピーク値(絶
対値)とゼロクロス時刻の組として、b0とt0、a0とt1
b1とt2、a1とt3,・・・等が順次MCP3へ出力される。こ
こでMCP3において、最小ピーク値(負側のピーク値)で
あるのか最大ピーク値(正側のピーク値)であるのかの
判定は、ゼロクロス時刻の最上位ビットに付加されてい
る前記正負フラグにより可能である。
The operation shown above, from the second view of the zero-crossing time acquisition circuit 204, an interrupt signal INT for each time of a 10 view of the zero-crossing time t 0 ~t 7 is output to MCP3 of Figure 1,
At each time based on this, as a set of the minimum or maximum peak value (absolute value) and the zero crossing time, b 0 and t 0 , a 0 and t 1 ,
b 1 and t 2, a 1 and t 3, · · · and the like are sequentially output to MCP3. Here, in MCP3, the determination as to whether the peak value is the minimum peak value (negative peak value) or the maximum peak value (positive peak value) is made by the positive / negative flag added to the most significant bit of the zero crossing time. It is possible.

なお、上記動作の他に、第2図の波高値取込回路203
はMCP3からのアクセスによりディジタル出力D1の瞬時値
を任意に出力できる。これについては後述する。
In addition to the above operation, the peak value capturing circuit 203 shown in FIG.
Can arbitrarily output the instantaneous value of the digital output D1 by accessing from the MCP3. This will be described later.

また、第2図のピーク検出回路201内のピークホール
ド回路で発生される第10図のピークホールド信号p0
p3,q0〜q3等の各減衰率(時定数)は、MCP3の制御下で
第2図の時定数変換制御回路202によって随時変更され
る。
Further, the peak hold signals p 0 to p 0 of FIG. 10 generated by the peak hold circuit in the peak detection circuit 201 of FIG.
Each of the decay rates (time constants) such as p 3 , q 0 to q 3 and the like is changed as needed by the time constant conversion control circuit 202 in FIG. 2 under the control of the MCP 3 .

基本的には、ディジタル出力D1の例えば1ピッチ周期
時間が経過した後に、上記ピークホールド信号が急速に
減衰するようにその時定数を変更する。そして、このと
きのピッチ周期情報の設定は、第1図のMCP3が後述する
動作により、各ピッチ周期の抽出を行った後にバスBUS
を介して、時定数変換制御回路202内の時定数変換レジ
スタCHTRR(後述する)にピッチ周期情報をセットして
行う。これにより、時定数変換制御回路202は、内部に
設けられた特には図示しない各弦独立のカウンタと、MC
P3から時定数変換レジスタCHTRRに設定されたピッチ周
期情報との一致比較を行い、ピッチ周期期間が経過して
一致出力が発生した時点で、時定数チェンジ信号を前記
ピーク検出回路201へ送出する。この動作により、ピー
クホールド信号は1ピッチ周期の時間が経過すると、急
速に減衰し、これにより次のピッチ周期のピークが適切
に検出される。
Basically, the time constant is changed so that the peak hold signal is rapidly attenuated after, for example, one pitch cycle time of the digital output D1 has elapsed. The pitch period information at this time is set by the MCP3 in FIG. 1 after extracting each pitch period by the operation described later.
, The pitch period information is set in a time constant conversion register CHTRR (described later) in the time constant conversion control circuit 202. Accordingly, the time constant conversion control circuit 202 includes a string independent counter (not shown) provided inside,
From P3, a match is made with the pitch cycle information set in the time constant conversion register CHTRR, and a time constant change signal is sent to the peak detection circuit 201 when a match output occurs after the pitch cycle period has elapsed. With this operation, the peak hold signal rapidly attenuates after the elapse of one pitch period, whereby the peak of the next pitch period is appropriately detected.

なお、1ピッチ周期が経過する前に、ピーク検出回路
201において次の最大又は最小ピーク値検出信号MAX又は
MINが検出された場合は、これらの信号の立ち下がりの
タイミングで上記カウンタをリセットし、次のピークホ
ールド信号を生成するようにしている。
Before the elapse of one pitch period, the peak detection circuit
At 201, the next maximum or minimum peak value detection signal MAX or
When MIN is detected, the counter is reset at the timing of the fall of these signals to generate the next peak hold signal.

また、各弦の振動周期は、演奏者がフレット上で当該
弦を押さえる位置によって幅広く変化するため、ディジ
タル出力D1の各弦に対応する波形の立ち上がり時には、
その波形の振動を速やかに検知すべく、各弦の最大音周
期時間経過にてピークホールド信号が急速減衰し、その
直後は、各ピッチ周期の倍音を拾わないように、各弦の
開放弦周期(最低音周期)時間経過にて急速減衰するよ
うに設定が行われる。そして、ピッチ周期が有効に抽出
された後は、当該ピッチ周期時間経過にて急速減衰する
ように設定が行れ、演奏操作によるディジタル出力D1の
各弦のピッチ周期の変化に追従する。
In addition, since the vibration cycle of each string varies widely depending on the position where the player presses the string on the fret, at the time of the rising of the waveform corresponding to each string of the digital output D1,
In order to quickly detect the vibration of the waveform, the peak hold signal rapidly attenuates when the maximum sound period of each string elapses, and immediately thereafter, the open string period of each string so as not to pick up harmonics of each pitch period. (Minimum sound period) The setting is performed so that the sound attenuates rapidly with the passage of time. Then, after the pitch cycle is effectively extracted, the setting is made so as to rapidly attenuate as the pitch cycle time elapses, and follows the change in the pitch cycle of each string of the digital output D1 due to the performance operation.

更に、ピッチ検出回路201において、正負どちらのピ
ーク値に対して上記ピークホールドの制御を行うかは、
シリアルゼロクロス信号ZCRがハイレベルであるかロー
レベルであるかによって判定するようにしている(第10
図参照)。
Further, in the pitch detection circuit 201, which of the positive and negative peak values is to be controlled for the peak hold is determined by
The determination is made based on whether the serial zero-cross signal ZCR is at a high level or a low level.
See figure).

{中央制御装置(MCP)の動作} 以上の動作により、第1図のピッチ抽出回路2から供
給される最大又は最小ピーク値、ゼロクロス時刻、およ
びピーク値の正負を示す正負フラグに基づいて、第1図
のMCP3が、ピッチ抽出及び音量・音色に関するパラメー
タの抽出を行うことにより、楽音発生回路501を制御す
るための楽音制御情報を発生する。なお、MCP3はROM301
に記憶されたプログラムに従って、以下に詳細に説明す
るように第3図〜第9A〜E図に示す動作フローチャート
を実行する。
<< Operation of Central Control Unit (MCP) >> By the above operation, the maximum or minimum peak value, the zero crossing time, and the positive / negative flag indicating the positive / negative of the peak value are supplied from the pitch extracting circuit 2 in FIG. The MCP 3 shown in FIG. 1 generates musical tone control information for controlling the musical tone generating circuit 501 by extracting pitch and extracting parameters relating to volume and timbre. MCP3 is ROM301
In accordance with the program stored in FIG. 3, the operation flowcharts shown in FIGS. 3 to 9A to 9E are executed as described in detail below.

(変数の説明) はじめに、後述する第3図〜第9A〜E図の動作フロー
チャートで示される制御プログラムにおいて用いられる
各変数について、以下に列挙しておく。
(Explanation of Variables) First, the variables used in the control programs shown in the operation flowcharts of FIGS. 3 to 9A to 9E to be described later are listed below.

AD・・・第1図のピッチ抽出ディジタル回路2への入力
波形D1を直接読んだ入力波高値(瞬時値) AMP(0,1)・・・正又は負の前回(old)の波高値(ピ
ーク値) AMRL1・・・振幅レジスタで記憶されているリラティブ
(relative)オフ(off)のチェックのための前回の振
幅値(ピーク値)である。ここで、前記リラティブオフ
とは波高値が急激に減衰してきたことに基づき消音する
ことで、フレット操作をやめて開放弦へ移ったときの消
音処理に相当する。
AD: input peak value (instantaneous value) directly reading the input waveform D1 to the pitch extraction digital circuit 2 in FIG. 1 AMP (0, 1): positive or negative previous (old) peak value (old) AMRL1... It is the previous amplitude value (peak value) for checking relative (off) off stored in the amplitude register. Here, the relative off is equivalent to a silencing process when the fret operation is stopped and the sound is shifted to an open string by canceling the sound based on a sudden decrease in the peak value.

AMRL2・・・振幅レジスタで記憶されている前記リラテ
ィブオフのための前々回の振幅値(ピーク値)で、これ
にはAMRL1の値が入力される。
AMRL2... The amplitude value (peak value) of the last two times for the relative-off stored in the amplitude register, to which the value of AMRL1 is input.

CHTIM・・・最高値フレット(22フレット目)に対応す
る周期 CHTIO・・・開放弦フレットに対応する周期 CHTRR・・・時定数変換レジスタで、上述の時定数変換
制御回路202(第2図)の内部に設けられている。
CHTIM: The cycle corresponding to the highest value fret (22nd fret) CHTIO: The cycle corresponding to the open string fret CHTRR: The time constant conversion register, and the time constant conversion control circuit 202 described above (FIG. 2) It is provided inside.

DUB・・・波形が続けて同一方向にきたことを示すフラ
グ、 FOFR・・・リラティブオフカウンタ、 HNC・・・波形ナンバーカウンタ MT・・・これからピッチ抽出を行う側のフラグ(正=
1、負=0) NCHLV・・・ノーチェンジレベル(定数) OFTIM・・・オフタイム(例えば当該弦の開放弦周期に
相当) OFPT・・・通常オフチェック開始フラグ ONF・・・ノートオンフラグ RIV・・・後述のステップ(STEP)4での処理ルートの
切替を行うためのフラグ ROFCT・・・リラティブオフのチェック回数を定める定
数 STEP・・・MCP3のフロー動作を指定するレジスタ(1〜
5の値をとる) TF・・・有効となった前回のゼロクロス時刻データ TFN(0,1)・・・正または負のピーク値直後の前回のゼ
ロクロス時刻データ TFR・・・時刻記憶レジスタ THLIM・・・周波数上限(定数) TLLIM・・・周波数下弦(定数) TP(0,1)・・・正または負の前回の周期データ TRLAB(0,1)・・・正または負の絶対トリガレベル(ノ
ートオンしきい値) TRLRL・・・リラティブオン(再発音開始)のしきい値 TRLRS・・・共振除去しきい値 TTLIM・・・トリガ時の周波数下限 TTP・・・前回抽出された周期データ TTR・・・周期レジスタ、 TTU・・・定数(17/32と今回の周期情報ttの積) TTW・・・定数(31/16と今回の周期情報ttの積) TX・・・ピッチ変更用ピッチ周期レジスタ VEL・・・速度(ベロシティ)を定める情報で、発音開
始時の波形の最大ピーク値にて定まる。
DUB: a flag indicating that the waveforms continuously came in the same direction, FOFR: a relative off counter, HNC: a waveform number counter MT: a flag from which the pitch is to be extracted (positive =
1, negative = 0) NCHLV: No change level (constant) OFTIM: Off time (e.g., corresponding to the open string cycle of the string) OFPT: Normal off check start flag ONF: Note on flag RIV ... Flag for switching the processing route in step (STEP) 4 described later ROFCT ... Constant that determines the number of relative off checks STEP: Registers (1 to 1) that specify the flow operation of MCP3
5) TF: Previous zero-cross time data that became valid TFN (0, 1): Previous zero-cross time data immediately after positive or negative peak value TFR: Time storage register THLIM・ ・ Frequency upper limit (constant) TLLIM ・ ・ ・ Frequency lower sine (constant) TP (0,1) ・ ・ ・ Positive or negative previous period data TRLAB (0,1) ・ ・ ・ Positive or negative absolute trigger level ( Note-on threshold value) TRLRL: Relativistic on (re-start) threshold TRLRS: Resonance removal threshold TTLIM: Lower frequency limit at trigger TTP: Previously extracted period data TTR・ ・ ・ Period register, TTU ・ ・ ・ Constant (product of 17/32 and current cycle information tt) TTW ・ ・ ・ Constant (product of 31/16 and current cycle information tt) TX ・ ・ ・ Pitch for pitch change Period register VEL: Information that determines the speed (velocity), the maximum peak of the waveform at the start of sound generation Determined at.

X・・・以上または正常状態を示すフラグ b・・・ワーキングレジスタBに記憶されている今回正
負フラグ(正ピークの次のゼロ点のとき1、負ピークの
次のゼロ点のとき0) c・・・ワーキングレジスタCに記憶されている今回波
高値(ピーク値) e・・・ワーキングレジスタEに記憶されている前々回
波高値(ピーク値) h・・・ワーキングレジスタHに記憶されている前々回
抽出された周期データ ottp・・・前回ピッチ変更用ピッチ周期レジスタ t・・・ワーキングレジスタT0に記憶されている今回の
ゼロクロス時刻 tt・・・ワーキングレジスタTOTOに記憶されている今回
の周期情報 (割り込み処理ルーチンの動作) 次に、第3図は、MCP3へピッチ抽出ディジタル回路2
内のゼロクロス時刻取込回路204(第2図)から、割り
込み信号INTにより割り込みがかけられたときの処理を
示す割り込み処理ルーチンの動作フローチャートを示し
た図である。
X: a flag indicating the normal state or more b: the current positive / negative flag stored in the working register B (1 at the next zero point after the positive peak, 0 at the next zero point after the negative peak) c ······························································································································································ Extracted cycle data ottp ... Pitch cycle register for previous pitch change t ... Current zero-cross time stored in working register T0 tt ... Current cycle information stored in working register TOTO (interrupt Operation of Processing Routine) Next, FIG.
3 is a diagram showing an operation flowchart of an interrupt processing routine showing a process when an interrupt is issued by an interrupt signal INT from a zero-cross time acquisition circuit 204 (FIG. 2).

前記したように、ゼロクロス時刻取込回路204から割
り込み信号INTが出力される時点においては、第2図の
波高値取込回路203には最大又は最小ピーク値(絶対
値)がホールドされ、ゼロクロス時刻取込回路204には
当該ピーク値発生直後のゼロクロス時刻、及び直前のピ
ーク値が最大(正の)ピーク値である場合1、最小(負
の)ピーク値である場合0を示す正負フラグがラッチさ
れている。
As described above, at the time when the interrupt signal INT is output from the zero-crossing time capturing circuit 204, the maximum or minimum peak value (absolute value) is held in the peak value capturing circuit 203 in FIG. The acquisition circuit 204 latches a zero-crossing time immediately after the occurrence of the peak value, and a positive / negative flag indicating 1 when the immediately preceding peak value is the maximum (positive) peak value and 0 when the immediately preceding peak value is the minimum (negative) peak value. Have been.

そこで、MCP3はまず第3図のI1において、アドレスデ
コーダ4に所定のアドレス読み出し信号ARをセットし、
第2図のゼロクロス時刻取込回路204に対して、弦番号
読込み信号▲▼を出力させる。これにより同
回路204からは、まずどの弦番号についての上記割り込
みが発生したのかを示す弦番号が、バスBUSを介してMCP
3に出力される。続いて、MCP3はアドレスデコーダ4の
別のアドレス読み出し信号ARをセットし、ゼロクロス時
刻取込回路204に対して時刻読込み信号▲
▼〜▲▼のうち上記弦番号に対応する信号
を出力させる。これにより同回路204からは、上記時刻
読み込み信号▲▼(i=1〜6のうちいず
れか)で指定される弦番号対応のラッチにセットされて
いるゼロクロス時刻情報が、バスBUSを介してMCP3に出
力される。これを第3図I1に示すように今回のゼロクロ
ス時刻tとする。
Therefore, MCP3 first sets a predetermined address read signal AR in the address decoder 4 in I1 of FIG.
A string number read signal ▼ is output to the zero cross time acquisition circuit 204 in FIG. As a result, from the circuit 204, the string number indicating which string number the interrupt has occurred is first sent to the MCP via the bus BUS.
Output to 3. Subsequently, the MCP 3 sets another address read signal AR of the address decoder 4 and sends the time read signal ▲ to the zero-cross time read circuit 204.
A signal corresponding to the string number among ▼ to ▲ ▼ is output. As a result, from the circuit 204, the zero-crossing time information set in the latch corresponding to the string number specified by the time reading signal ((i = 1 to 6) is transmitted via the bus BUS to the MCP3. Is output to This is defined as the current zero-cross time t as shown in FIG. 3 I1.

続いて、第3図I2において、前記「ピッチ抽出ディジ
タル回路の動作」の項で説明したように、ゼロクロス時
刻情報の最上位ビットに付加されている正負フラグを取
り出しこれを今回正負フラグbとする。
Subsequently, in FIG. 3 I2, the positive / negative flag added to the most significant bit of the zero-crossing time information is taken out and set as the current positive / negative flag b, as described in the section “Operation of the pitch extraction digital circuit”. .

その後、第3図のI3において、MCP3は前記と同様にア
ドレスデコーダ4を介して、第2図の波高値取込回路20
3に対して、ピーク値読み込み信号▲▼(j=
1〜12のうちいずれか)を出力させる。ここで、同回路
203内には、特には図示しないが、6弦分の最大ピーク
値及び最小ピーク値をホールドする12個のラッチがある
ため、MCP3は前記弦番号及び正負フラグbに基づいて、
上記ピーク値読み込み信号▲▼を選択して出力
させる。これにより同回路203からは、当該ピーク値読
み込み信号▲▼で指定されるラッチにセットさ
れている最大ピーク値または最小ピーク値(絶対値)
が、バスBUSを介してMCP3に出力される。これを第3図I
3に示すように、今回ピーク値cとする。
Thereafter, at I3 in FIG. 3, the MCP 3 is transmitted via the address decoder 4 in the same manner as described above to the peak value capturing circuit 20 in FIG.
For 3, the peak value read signal ▲ ▼ (j =
1 to 12) is output. Here, the same circuit
Although not shown, there are 12 latches in the 203 that hold the maximum peak value and the minimum peak value for 6 strings, so that the MCP3 determines the string number and the positive / negative flag b based on the string number and the positive / negative flag b.
Select and output the peak value read signal ▲ ▼. As a result, from the circuit 203, the maximum peak value or the minimum peak value (absolute value) set in the latch designated by the peak value read signal ▲ ▼
Is output to the MCP3 via the bus BUS. This is shown in Fig. 3 I
As shown in FIG. 3, the current peak value is c.

以上の動作の後、第3図のI4において、上記のように
して得たt,c,bの値をMCP3内の特には図示しないレジス
タT0,C,Bにセットする。このレジスタには、上記割込み
処理がなされる都度、このようなゼロクロス時刻情報、
ピーク値情報(絶対値)、ピークの種類を示す正負フラ
グの情報がワンセットとして書き込まれていき、後述す
るメインルーチンで、各弦毎にかかる情報に対する処理
がなされる。
After the above operation, the values of t, c, b obtained as described above are set in registers T0, C, B (not shown) in MCP3 at I4 in FIG. Each time the above interrupt processing is performed, this register stores such zero-crossing time information,
The peak value information (absolute value) and the information of the positive / negative flag indicating the type of the peak are written as one set, and the main routine described later processes the information for each string.

なお、上記レジスタT0,C,Bは、6弦に対応して6個ず
つあり、以下第4図〜第9図に説明する楽音制御の処理
は、6弦分について全て時分割で行われるが、これ以後
は簡単のため1弦分の処理について述べてゆく。
Note that there are six registers T0, C, and B corresponding to six strings, and the tone control processing described below with reference to FIGS. 4 to 9 is performed in a time-division manner for all six strings. Hereinafter, the processing for one string will be described for simplicity.

(メインルーチンの動作) 第4図は、メインルーチンの動作を示す動作フローチ
ャートである。ここでは、パワーON後の初期化(イニシ
ャライズ)、楽音のノートオフ(消音)処理、及びSTEP
0〜STEP4(又は5)の各処理の選択の処理を行う。本実
施例では、楽音制御の処理を後述するようにステップと
いう処理概念で行っており、後述するように、STEP0→S
TEP1→STEP2→STEP3→STEP4(→STEP5)→STEP0という
順で楽音制御を行ってゆく。
(Operation of Main Routine) FIG. 4 is an operation flowchart showing the operation of the main routine. Here, initialization after power-on (initialization), note-off (silence) processing of music, and STEP
A process of selecting each process from 0 to STEP 4 (or 5) is performed. In the present embodiment, the processing of the musical tone control is performed by a processing concept of a step as described later, and as described later, STEP0 → S
Tone control is performed in the order of TEP1, STEP2, STEP3, STEP4 (→ STEP5), and STEP0.

《基本動作》 第4図において、まず、パワーオン(電源投入)する
ことにより、M1において各種レジスタやフラグがイニシ
ャライズされ、レジスタSTEPが0とされる。またこの場
合、前記「ピッチ抽出ディジタル回路の動作」の項の時
定数変換制御回路202(第2図)の説明において述べた
ように、初期状態において、ピーク検出回路201(第2
図)がディジタル出力D1の波形の立ち上がり時の振動を
速やかに検知できるように、MCP3がバスBUSを介して時
定数変換制御回路202内の時定数変換レジスタCHTRRに最
高音フレット周期CHTIMをセットし、ピーク検出回路201
内のピークホールド回路から出力されるピークホールド
信号(第10図p0またはq0等)が、最高音周期時間経過に
て急速減衰するように制御される。
<< Basic Operation >> In FIG. 4, first, when power is turned on (power is turned on), various registers and flags are initialized in M1, and the register STEP is set to 0. In this case, as described in the description of the time constant conversion control circuit 202 (FIG. 2) in the section "Operation of the pitch extraction digital circuit", the peak detection circuit 201 (the second
MCP3 sets the highest tone fret cycle CHTIM to the time constant conversion register CHTRR in the time constant conversion control circuit 202 via the bus BUS so that the waveform at the rising edge of the waveform of the digital output D1 can be quickly detected. , Peak detection circuit 201
Peak hold signal outputted from the peak hold circuit of the inner (FIG. 10 p 0 or q 0, etc.) is controlled to rapidly attenuated at the highest sound period time.

続いて、第4図のM2で、前記「割り込み処理ルーチン
の動作」の項で説明したレジスタが空かどうかが判断さ
れ、ノー(以下、NO称す)の場合にはM3に進み、各レジ
スタB,C,T0の内容が読まれる。続いて、M4において、レ
ジスタSTEPの値はいつかが判断され、M5ではSTEP0,M6で
はSTEP1,M7ではSTEP2,M8ではSTEP3、M9ではSTEP4の処理
が順次実行される。なお、次のステップへの更新は、後
述するように各STEP0〜STEP4の処理において行われる。
Subsequently, at M2 in FIG. 4, it is determined whether or not the register described in the section "Operation of the interrupt processing routine" is empty. If NO (hereinafter referred to as NO), the process proceeds to M3, and each register B , C, T0 are read. Subsequently, in M4, it is determined when the value of the register STEP is, and the processing of STEP0 is performed in M5, the processing of STEP1 is performed in M6, the processing of STEP2 is performed in M7, the processing of STEP3 is performed in M8, and the processing of STEP4 is performed in M9. The update to the next step is performed in the processing of STEP0 to STEP4 as described later.

《ノートオフ動作》 前記M2でバッファが空の場合、すなわちイエス(以
下、YESと称する)の場合、M0〜M19への処理に進み、こ
こで通常のノートオフのアルゴリズムの処理が行われ
る。このノートオフのアルゴリズムは、ディジタル出力
D1(第1図)において、その波高値がオフ(OFF)レベ
ル以下の状態が所定のオフタイム時間続いたら、ノート
オフするアルゴリズムである。
<< Note-off operation >> When the buffer is empty in M2, that is, when the buffer is empty (hereinafter, referred to as YES), the process proceeds to M0 to M19, where the normal note-off algorithm is performed. This note-off algorithm uses a digital output
In D1 (FIG. 1), the note-off algorithm is performed when the peak value is equal to or less than the off (OFF) level for a predetermined off-time period.

まず、M10でSTEP=0かどうかが判断され、YESの場合
には、楽音を発生していない初期状態のため、ノートオ
フはする必要がなく、M2に戻る。一方、NOの場合には、
M11に進む。
First, it is determined in M10 whether or not STEP = 0, and in the case of YES, note-off does not need to be performed because the tone is in an initial state, and the process returns to M2. On the other hand, in the case of NO,
Proceed to M11.

M11では、その時点のディジタル出力D1の入力波高値
(瞬時値)ADが直接読まれる。これは、MCP3がアドレス
デコーダ4を介して、波高値取込み回路203(第2図)
へピーク値読み込み信号▲▼〜▲
▼のいずれかを与えることにより、同回路203がディジ
タル出力D1の現在の瞬時値を、バスBUSを介してMCP3に
出力することで達成できる。そして、この値ADが、予め
設定したオフレベル以下かどうかが判断され、NOの場合
はノートオフする必要がないためM2に戻り、YESの場合
にはM12に進む。
In M11, the input peak value (instantaneous value) AD of the digital output D1 at that time is directly read. This is because the MCP 3 receives the peak value capturing circuit 203 via the address decoder 4 (FIG. 2).
To read peak value ▲ ▼ ~ ▲
By providing any of the above, the circuit 203 can achieve this by outputting the current instantaneous value of the digital output D1 to the MCP3 via the bus BUS. Then, it is determined whether or not this value AD is equal to or less than a preset off level. If NO, the process returns to M2 because there is no need to perform note-off, and if YES, the process proceeds to M12.

M12では、前回の入力波高値ADがオフレベル以下かど
うかが判断され、NOの場合には、M17に進みMCP3内のタ
イマ303をスタートし、M2に戻る。そして、次に再びこ
の処理にきたときに、M12はYESとなるため、M13に進
み、ここでタイマ303の値がオフタイムOFTIMかどうかが
判断される。オフタイムOFTIMとしては例えば処理をし
ている弦の開放弦フラット周期CHTIOがセットされてお
り、M13でNOの場合にはM2に戻って処理が繰り返され、Y
ESとなるとM14に進み、レジスタSTEPに0を書き込み、
時定数変換レジスタCHTRRへ最高音フレート周期CHTIMを
セットした後、M15を介して(後述する)、M16に進む。
すなわち、ディジタル出力D1のレジスタが減衰してきた
場合、オフレベル以下の入力波高値ADがオフタイムOFTI
Mに相当する時間続くと、ディジタル出力D1が入力せず
弦が弾かれなくなったと判断できるため、M16に進んで
ノートオフの処理がされる。
In M12, it is determined whether or not the previous input peak value AD is equal to or less than the off level. If NO, the process proceeds to M17, starts the timer 303 in the MCP3, and returns to M2. Then, the next time the process comes again, since M12 becomes YES, the process proceeds to M13, where it is determined whether the value of the timer 303 is the off-time OFTIM. For example, the open string flat period CHTIO of the string being processed is set as the off time OFTIM, and if NO in M13, the process returns to M2 and the process is repeated, and Y
When it reaches ES, the process proceeds to M14, where 0 is written to the register STEP,
After setting the maximum tone freight period CHTIM in the time constant conversion register CHTRR, the process proceeds to M16 via M15 (described later).
That is, when the register of the digital output D1 is attenuated, the input peak value AD which is equal to or less than the off-level becomes the off-time OFTI.
If the time corresponding to M continues, it can be determined that the string is no longer played because the digital output D1 is not input, and the process proceeds to M16 to perform note-off processing.

M16ではMCP3が楽音発生回路501(第1図)に対して、
ノートオフの指示を送出し、これにより楽音の発音が停
止される。このようにノートオフされた場合には、必ず
STEP0に戻る。
In M16, MCP3 is used for the tone generator 501 (Fig. 1).
A note-off instruction is transmitted, thereby stopping the tone generation. If you take notes off like this,
Return to STEP0.

なお、ステップM15において、通常の状態ではYESの判
断がなされるが、後述するような処理によって、楽音の
発音を指示していない場合でもレジスタSTEPは0以外の
値をとっていることがあり(例えばノイズの入力によ
る)、そのようなときには、M14,M15の処理後M2へ戻る
ことで、STEP0へ初期設定される。
In step M15, a determination of YES is made in a normal state. However, the register STEP may take a value other than 0 even when the tone generation is not instructed by the processing described later ( In such a case, for example, due to the input of noise), in such a case, the process returns to M2 after the processes of M14 and M15, thereby being initialized to STEP0.

(STEP0の処理動作) 次に、第4図のメインルーチンにおいて分岐して対応
する処理を行う各ルーチンの詳細について説明を行う。
(Processing Operation of STEP 0) Next, details of each routine that branches and performs corresponding processing in the main routine of FIG. 4 will be described.

まず、第5図は、第4図のメインルーチンのM5として
示すステップ0(STEP0)の処理の動作フローチャート
である。この処理においては、ピッチ抽出処理等のため
の初期設定、及び次のSTEP1への移行処理を行う。以下
第11図の基本動作説明図を用いて説明を行う。なお、第
11図は第10図と同一の波形である。
First, FIG. 5 is an operation flowchart of the process of step 0 (STEP0) shown as M5 in the main routine of FIG. In this processing, initialization for pitch extraction processing and the like, and processing for transition to the next STEP 1 are performed. Hereinafter, description will be made with reference to the basic operation explanatory diagram of FIG. In addition,
FIG. 11 shows the same waveform as FIG.

《基本動作》 今、第4図のメインルーチンは、M2とM10のループの
繰り返しにより、前記「割り込み処理ルーチンの動作」
の項において説明したように、ピッチ抽出ディジタル回
路2(第1図)から割り込みが掛かって、レジスタT0、
C、Bにデータが入力するのを待っている。
<< Basic Operation >> Now, the main routine of FIG. 4 is performed by repeating the loop of M2 and M10 to execute the “operation of the interrupt processing routine”.
As described in the above section, the interrupt is issued from the pitch extraction digital circuit 2 (FIG. 1) and the registers T0,
Waiting for data to be input to C and B.

そして、データが入力し、第4図のM2からM3を経て上
記各レジスタの内容が読み込まれると、M4を介してM5、
即ち第5図のSTEP0に移る。この状態においては、例え
ば第11図に示すように、今回のゼロクロス時刻t=t0
今回正負フラグb=0、今回ピーク値cはb=0より最
小ピーク値でc=b0(絶対値)である。なお、第11図で
bとb0〜b3等は異なる記号である。
Then, when data is input and the contents of the above registers are read from M2 to M3 in FIG. 4, M5, M5,
That is, the process proceeds to STEP0 in FIG. In this state, for example, as shown in FIG. 11, the current zero-cross time t = t 0 ,
The current positive / negative flag b = 0 and the current peak value c are the minimum peak value c = b 0 (absolute value) from b = 0. In FIG. 11, b and b 0 to b 3 are different symbols.

まず、第5図のS01において、今回ピーク値cの値
が、絶対トリガレベル(ノートオンのための正の閾値)
TRLAB(b)より大きいか否かが判定される。なお、こ
の判定は、今回正負フラグbの値に基づき正と負の各極
性(最大ピーク値又は最小ピーク値)の各々について実
行され、正側の絶対トリガレベルTRLAB(1)と負側の
絶対トリガレベルTRLAB(0)は、ディジタル出力D1
(第1図)にオフセットが重畳された場合等を考慮し
て、経験的に別々の値に設定することができる。理想的
なシステムでは同じ値でよい。第11図の例では、今回最
小ピーク値c=b0(絶対値)とTRLAB(b)=TRLAB
(0)とが比較され、c=b0>TRLAB(0)、即ち判定
はYESとなる。
First, in S01 of FIG. 5, the value of the current peak value c is the absolute trigger level (positive threshold value for note-on).
It is determined whether it is larger than TRLAB (b). This determination is executed for each of the positive and negative polarities (maximum peak value or minimum peak value) based on the value of the positive / negative flag b this time, and the absolute trigger level TRLAB (1) on the positive side and the absolute trigger level on the negative side The trigger level TRLAB (0) is the digital output D1
Different values can be empirically set in consideration of the case where an offset is superimposed on (FIG. 1). The same value may be used in an ideal system. In the example of FIG. 11, the current minimum peak value c = b 0 (absolute value) and TRLAB (b) = TRLAB
(0) and c = b 0 > TRLAB (0), that is, the determination is YES.

次に、S02を経た後(後述する)、S03の処理が実行さ
れる。ここでは、まず、今回正負フラグbがフラグMTに
書き込まれ、レジスタSTEPに1が書き込まれて次のステ
ップへの移行準備がなされ、更に、今回のゼロクロス時
刻tが以降の処理のために前回のゼロクロス時刻データ
TFN(b)として設定される。第11図の例では、同図に
示すようにMT=b=0、TFN(b)=TFN(0)=t=t0
となる。
Next, after S02 (described later), the process of S03 is executed. Here, first, the current positive / negative flag b is written into the flag MT, 1 is written into the register STEP, and preparations are made for the transition to the next step. Zero cross time data
Set as TFN (b). In the example shown in FIG. 11, MT = b = 0, TFN (b) = TFN (0) = t = t 0 as shown in FIG.
Becomes

続いて、S04において、「変数の説明」の項に示した
上記フラグ以外のその他のフラグ類(定数値を除く)が
初期化される。
Subsequently, in S04, other flags (except for the constant value) other than the above-described flags described in the section of “variable description” are initialized.

更に、S05においては、今回ピーク値cが以降の処理
のために前回のピーク値AMP(b)(絶対値)としてセ
ットされ、第4図のメインルーチンのM2の処理に戻る。
第11図の例では、同図に示すようにAMP(b)=AMP
(0)=c=b0となる。
Further, in S05, the current peak value c is set as the previous peak value AMP (b) (absolute value) for the subsequent processing, and the process returns to the main routine M2 in FIG.
In the example of FIG. 11, AMP (b) = AMP as shown in FIG.
(0) = a c = b 0.

以上の処理により、第11図の例では、同図(STEP0→
1の間)に示すようにフラグMTにレジスタBの今回正負
フラグb=0が書き込まれ、負側の前回のゼロクロス時
刻のデータTFN(0)にレジスタT0の今回のゼロクロス
時刻データt=t0が書き込まれ、負側の前回のピーク値
AMP(0)にレジスタCの今回最小ピーク値c=b0が書
き込まれる。
By the above processing, the example of FIG. 11 (STEP0 →
This negative flag b = 0 in the register B flag MT as shown in the 1 between) is written, the current zero-crossing time data t = t 0 of the register T0 data of the previous zero-crossing time of the negative side TFN (0) Is written and the previous negative peak value
AMP (0) to the minimum peak value c = b 0 This register C is written.

《共振除去動作》 なお、第5図のS01において、今回ピーク値cの値が
絶対トリガレベルTRLAB(b)以下の場合は、発音(ノ
ートオン)の処理へは移行せず、S05において前回のピ
ーク値AMP(b)に今回ピーク値cの値をセットするだ
けで、第4図のメインルーチンへ戻る。ところが、1本
の弦をピッキングすることにより、他の弦が共振を起こ
すような場合、当該他の弦については振動のレベルが徐
々に大きくなり、やがて第5図のS01の判定結果がYESと
なり、S02の処理に移る。しかし、このような場合、正
規のピッキングを行った訳ではないので、発音(ノート
オン)の動作に移行するのは妥当ではない。そこで、S0
2の処理において上記共振の除去を行う。即ち、上記の
ような場合、今回ピーク値cは前回のピーク値AMP
(b)に比べてほとんど大きくなっていないため、その
差c−AMP(b)が共振除去しきい値TRLRSより大きくな
い場合には、上記共振状態が発生したと判定して、発音
処理へは移行せず、S05において前回のピーク値AMP
(b)に今回ピーク値cの値をセットするだけで、第4
図のメインルーチンに戻る。一方、第11図のような正常
なピッキングを行った場合に、波形が急激に立上ること
になり、前記ピーク値の差c−AMP(b)は共振除去閾
値TRLRSを越え、前記したようにS02からS03の処理へ移
行する。
<< Resonance Elimination Operation >> When the value of the current peak value c is equal to or lower than the absolute trigger level TRLAB (b) in S01 of FIG. Simply setting the value of the current peak value c to the peak value AMP (b) returns to the main routine of FIG. However, when picking one string causes another string to resonate, the vibration level of the other string gradually increases, and the determination result of S01 in FIG. 5 eventually becomes YES. Then, the process proceeds to S02. However, in such a case, since normal picking is not performed, it is not appropriate to shift to a sounding (note-on) operation. So, S0
In the process 2, the above-mentioned resonance is removed. That is, in the above case, the current peak value c is equal to the previous peak value AMP.
Since the difference c-AMP (b) is not larger than the resonance elimination threshold value TLRRS, it is determined that the resonance state has occurred, and the sound generation process is not started. Without shifting, the previous peak value AMP in S05
By setting the value of the current peak value c in (b), the fourth
It returns to the main routine of the figure. On the other hand, when normal picking as shown in FIG. 11 is performed, the waveform suddenly rises, and the difference c-AMP (b) between the peak values exceeds the resonance removal threshold value TRLRS. The process moves from S02 to S03.

《リラティブオンのエントリ動作》 第5図において、Aは後述するリラティブオン(再発
音開始)のエントリであり、後述するSTEP4のフローか
らこのS06へジャンプしてくる。そして、S06では今まで
出力している楽音を一度消去(ノートオフ)し、再発音
開始のためにS03へ進行する。この再発音開始のための
処理は、通常の発音開始のときと同様であり、前記した
とおりである。ここでS06のノートオフの処理は、第4
図の前記M16の処理と同じである。
<< Relative-On Entry Operation >> In FIG. 5, A is a relative-on (reproduction start) entry to be described later, and jumps to S06 from a flow of STEP 4 to be described later. Then, in S06, the musical tone output so far is once erased (note off), and the process proceeds to S03 to start re-sounding. The process for starting re-sound generation is the same as that for starting normal sound generation, and is as described above. Here, note-off processing in S06 is the fourth
This is the same as the process of M16 in the figure.

(STEP1の処理動作) 次に、第6図は、第4図のメインルーチンのM6として
示すステップ1(STEP1)の処理の動作フローチャート
である。この処理においては、前記STEP0に続くピッチ
抽出処理等のための初期設定とそれに続くSTEP2への移
行処理、又はおかしな波形が入力したときのダブリ処理
(エラー処理)等を行う。
(Processing Operation of STEP1) Next, FIG. 6 is an operation flowchart of the processing of Step 1 (STEP1) shown as M6 of the main routine of FIG. In this processing, initialization such as pitch extraction processing subsequent to STEP 0 and transition processing to STEP 2 subsequent thereto, or double processing (error processing) when a strange waveform is input is performed.

《基本動作》 まず、前記STEP0により、最初のデータに対する初期
設定が行われた後、第4図のメインルーチンでは、M2→
M10→M11→M2のループの繰り返しにより、前記ピッチ抽
出デジタル回路2(第1図)から再び割り込みがかかっ
て、レジスタT0、C、Bに次のデータが入力するのを待
っている。
<< Basic Operation >> First, after the initial setting for the first data is performed in STEP0, in the main routine of FIG.
Due to the repetition of the loop of M10 → M11 → M2, the pitch extraction digital circuit 2 (FIG. 1) interrupts again and waits for the next data to be input to the registers T0, C and B.

そして、データが入力し、第4図のM2からM3を経て上
記各レジスタの内容が読み込まれると、M4を介してM6、
即ち第6図のSTEP1に移る。この状態においては、例え
ば第11図に示すように、今回のゼロクロス時刻t=t1
今回正負フラグb=1、今回ピーク値はb=1より最大
ピーク値でc=a0である。
Then, when data is input and the contents of the above registers are read via M2 to M3 in FIG. 4, M6, M6,
That is, the process proceeds to STEP 1 in FIG. In this state, for example, as shown in FIG. 11, the current zero-cross time t = t 1 ,
The current positive / negative flag b = 1, and the current peak value is the maximum peak value c = a 0 from b = 1.

まず、第6図のS11を介して(後述する)、S12におい
て前記「STEP0の処理動作」の項における第5図のS01の
説明で述べたのと全く同様に、今回ピーク値cの値が、
絶対トリガレベルTRLAB(b)より大きいか否かが判定
される。第11図の例では、今回最大ピーク値c=a0とTR
LAB(b)=TRLAB(1)とが比較され、c=a0>TRLAB
(1)、即ち判定はYESとなる。
First, through S11 in FIG. 6 (described later), in S12, the value of the current peak value c is set to be exactly the same as described in the description of S01 in FIG. ,
It is determined whether or not the level is higher than the absolute trigger level TRLAB (b). In the example of FIG. 11, the maximum peak value c = a 0 this time and TR
LAB (b) = TRLAB (1) is compared and c = a 0 > TRLAB
(1), that is, the determination is YES.

次に、S13でレジスタSTEPに2が書き込まれ次のステ
ップへの移行準備がなされる。
Next, in step S13, 2 is written into the register STEP, and preparations are made for shifting to the next step.

続いて、S14において、レジスタT0の今回のゼロクロ
ス時刻tが以降の処理のために前回のゼロクロス時刻デ
ータTFN(b)として設定される。更に、S15において、
レジスタcの今回ピーク値cが以降の処理のために前回
のピーク値AMP(b)としてセットされ、第4図のメイ
ンルーチンのM2の処理に戻る。第11図の例では、同図に
示すようにTFN(1)=t=t1、AMP(1)=c=a0とな
る。なお、MTの内容は書き替えられず0のままである。
Subsequently, in S14, the current zero-cross time t in the register T0 is set as the previous zero-cross time data TFN (b) for the subsequent processing. Further, in S15,
The current peak value c of the register c is set as the previous peak value AMP (b) for the subsequent processing, and the process returns to the main routine M2 in FIG. In the example of FIG. 11, TFN (1) = t = t 1 and AMP (1) = c = a 0 as shown in FIG. The contents of the MT are not rewritten and remain at 0.

《ダブリ処理の動作》 第11図のような正常なデジタル出力D1が入力している
場合には、前記STEP0において負(正)側の最小(大)
ピーク値(絶対値)が抽出された後は、STEP1において
反対に正(負)側の最大(小)ピーク値が抽出される。
従って、第6図のS11においては、今回正負フラグb=
1(0)はSTEP0でセットされたフラグMT=0(1)と
異なるため、前記したようにS12に進む。
<< Operation of Dubbing Processing >> When the normal digital output D1 as shown in FIG. 11 is input, the minimum (large) on the negative (positive) side in STEP0 is described.
After the peak value (absolute value) is extracted, the maximum (small) peak value on the positive (negative) side is extracted in STEP1.
Therefore, in S11 of FIG. 6, the positive / negative flag b =
Since 1 (0) is different from the flag MT = 0 (1) set in STEP0, the process proceeds to S12 as described above.

ところが、場合により、STEP0の後にSTEP1で第12図
(a)又は(b)に示すような波形が入力することがあ
る。この場合、STEP0で負側の最小ピーク値b0が抽出さ
れた後、STEP1で再び負側の最小ピーク値b1がダブって
抽出される。従って、第6図のS11においては、今回正
負フラグはb=0となり、STEP0でセットされたフラグM
T=0と一致する。この場合は、第6図のS16に進み、ダ
ブリ処理(エラー処理)を行う。
However, in some cases, a waveform as shown in FIG. 12 (a) or (b) may be input in STEP1 after STEP0. In this case, after the minimum peak value b 0 of the negative side it is extracted with STEP0, the minimum peak value b 1 again negative in STEP1 is extracted I dub. Therefore, in S11 of FIG. 6, the positive / negative flag this time becomes b = 0, and the flag M set in STEP0 is set.
Matches T = 0. In this case, the process proceeds to S16 of FIG. 6, and the double processing (error processing) is performed.

S16では、ピーク値cの値が同じ符号の前回のピーク
値AMP(b)より大きいか否かが判定される。
In S16, it is determined whether the value of the peak value c is larger than the previous peak value AMP (b) of the same sign.

今、第12図(a)のような場合、c=b1>AMP(b)
=AMP(0)=b0は成立しない。このような場合は、今
回の最小ピーク値b1はおかしな波形として無視し(斜線
部)、STEPは更新せずに、第4図のメインルーチンのM2
の処理に戻り、次の正常なピークが入力されるのを待
つ。
Now, in the case of FIG. 12 (a), c = b 1 > AMP (b)
= AMP (0) = b 0 does not hold. In such a case, the minimum peak value b 1 of this ignores a funny waveform (hatched portion), STEP is not updated, the main routine of FIG. 4 M2
Return to the process of and wait for the next normal peak to be input.

一方、第12図(b)のような場合、c=b1>AMP
(b)=AMP(0)=b0は成立する。このような場合
は、前回のSTEP0で抽出した最小ピーク値b0の方をおか
しな波形として無視し(斜線部)、STEP0においてセッ
トされた負側の前回のゼロクロス時刻データTFN
(0)、及び負側の前回のピーク値AMP(0)の内容
を、第6図のS14、S15により今回のゼロクロス時刻t及
び今回ピーク値cと入れ替えて変更する。即ち、第12図
(b)の例では、TFN(0)=t=t1、AMP(0)=c=
b1となる。このダブリ処理の後、STEPは更新せずに(同
6図のS13を通らない)、第4図のメインルーチンのM2
の処理に戻り、次の正常なピークが入力されるのを待
つ。
On the other hand, in the case as shown in FIG. 12 (b), c = b 1 > AMP
(B) = AMP (0) = b 0 holds. In such cases, ignoring the direction of the minimum peak value b 0 extracted with previous STEP0 as strange waveform (hatched portion), the previous zero-crossing time data of negative side is set in STEP0 TFN
The contents of (0) and the previous peak value AMP (0) on the negative side are changed by replacing the current zero crossing time t and the current peak value c with S14 and S15 in FIG. That is, in the example of FIG. 12B, TFN (0) = t = t 1 and AMP (0) = c =
b becomes 1 . After this doubling process, the STEP is not updated (not through S13 in FIG. 6), and the M2 of the main routine in FIG.
Return to the process of and wait for the next normal peak to be input.

上記動作の後、正常なピーク値が入力すると、第6図
のS11→S12→S13→S14→S15により前記した処理が行わ
れ、例えば第11図に示すようにt=t1で、次のSTEP2の
処理への移行が行われる。
After the operation, entering the normal peak value, the sixth processing the by S11 → S12 → S13 → S14 → S15 in Figure is made, for example, t = t 1 as shown in FIG. 11, the following The transition to the processing of STEP2 is performed.

(STEP2の処理動作) 次に、第7図は、第4図のメインルーチンのM7として
示すステップ2(STEP2)の処理の動作フローチャート
である。この処理においては、ピッチ抽出のための第1
回目のピッチ周期の検出、ベロシティーの設定、及びST
EP3への移行処理、又はおかしな波形が入力したときの
エラー処理(ダブリ処理)等を行う。
(Processing Operation of STEP 2) Next, FIG. 7 is an operation flowchart of the processing of Step 2 (STEP 2) shown as M7 in the main routine of FIG. In this process, the first for the pitch extraction
Detection of the second pitch period, velocity setting, and ST
Performs transition to EP3 or error processing (doubble processing) when a strange waveform is input.

《基本動作》 まず、前記STEP1による処理が行われた後、第4図の
メインルーチンでは、M2→M10→M11→M2のループの繰り
返しにより、前記ピッチ抽出デジタル回路2(第1図)
から再び割り込みがかかって、レジスタT0、C、Bの次
のデータが入力するのを待っている。
<< Basic Operation >> First, after the processing in STEP 1 described above, in the main routine of FIG. 4, the pitch extraction digital circuit 2 (FIG. 1) is repeated by repeating a loop of M2 → M10 → M11 → M2.
Again, and waits for the next data of the registers T0, C, and B to be input.

そして、データが入力し、第4図のM2からM3を経て上
記各レジスタの内容が読み込まれると、M4を介してM7、
即ち第7図のSTEP2に移る。この状態においては、例え
ば第11図に示すように、今回のゼロクロス時刻t=t2
今回正負フラグb=0、今回ピーク値はb=0より最小
ピーク値でc=b1である。
Then, when data is input and the contents of the above registers are read through M2 to M3 in FIG. 4, M7, M7,
That is, the process proceeds to STEP 2 in FIG. In this state, for example, as shown in FIG. 11, the current zero-crossing time t = t 2 ,
This negative flag b = 0, the current peak value is c = b 1 at the minimum peak value than b = 0.

まず、第7図のS20を経た後(後述する)のS21におい
ては、MCP3がバスBUSを介して第2図の時定数変換制御
回路202内の時定数変換レジスタCHTRRに現在処理をして
いる弦の開放弦フレット周期CHTIOをセットする。これ
は、前記「ピッチ抽出デジタル回路の動作」の項の次定
数変換制御回路202の説明において述べたように、ピー
ク検出回路201(第2図)がデジタル出力D1の波形の立
ち上がり時の振動を検知した後は、各ピッチ周期の倍音
を拾わないように、ピーク検出回路201内のピークホー
ルド回路から出力されるピークホールド信号(第10図
p1、q2等)が各弦の開放弦周期、即ち最低音周期CHTIO
の時間経過にて急速減衰するようにしたものである。
First, in S21 after S20 in FIG. 7 (described later), the MCP 3 is currently processing the time constant conversion register CHTRR in the time constant conversion control circuit 202 in FIG. 2 via the bus BUS. Set the open string fret cycle CHTIO of the string. This is because, as described in the explanation of the next constant conversion control circuit 202 in the section “Operation of the pitch extraction digital circuit”, the peak detection circuit 201 (FIG. 2) detects the oscillation at the rising of the waveform of the digital output D1. After the detection, the peak hold signal (FIG. 10) output from the peak hold circuit in the peak detection circuit 201 so as not to pick up the overtone of each pitch cycle.
p 1 , q 2 etc.) is the open string period of each string, that is, the lowest sound period CHTIO
Rapidly attenuates as time elapses.

次に、S22において、今回ピーク値cの値が同じ符号
の前回のピーク値AMP(b)の7/8倍より大きいか否かが
判定される。この処理については後に詳述するが、通常
は弦をピッキングした波形はなめらかに自然減衰するた
めこの判定はYESとなり、次のS23を経て(後述する)S2
4に進む。
Next, in S22, it is determined whether or not the value of the current peak value c is greater than 7/8 times the previous peak value AMP (b) of the same sign. Although this processing will be described in detail later, usually, the waveform obtained by picking the strings smoothly attenuates smoothly, so this determination is YES, and the processing proceeds to S2 (described later) through the next S23.
Proceed to 4.

S24では、{(今回のゼロクロス時刻t)−(同じ符
号の前回のゼロクロス時刻データTFN(b))}を演算
することにより、第1回目のピッチ周期を検出する。そ
してこの結果を、後述するSTEP3でのノートオン(発音
開始)の条件として使用するために、前回周期データTP
(b)として設定する。第11図の例では、同図に示すよ
うにTP(0)=t−TFN(0)=t2−t0となる。
In S24, the first pitch period is detected by calculating {(current zero-cross time t)-(previous zero-cross time data TFN (b) of the same sign)}. Then, in order to use this result as a condition for note-on (start of sound generation) in STEP 3 described later, the previous cycle data TP
Set as (b). In the example of Figure 11, the TP (0) = t-TFN (0) = t 2 -t 0 as shown in FIG.

また、S24では、今回のゼロクロス時刻tが以降の処
理のために前回のゼロクロス時刻データTFN(b)とし
て設定される。第11図の例では、同図に示すようにTFN
(P)=t=t2となる。なお、STEP0で設鉄されたTFN
(0)=t0は、上記前回周期データTP(b)=TP(0)
が演算できたため必要なくなり消去される。
In S24, the current zero-cross time t is set as the previous zero-cross time data TFN (b) for the subsequent processing. In the example of FIG. 11, as shown in FIG.
(P) = t = t 2 . The TFN installed in STEP0
(0) = t 0 is the previous cycle data TP (b) = TP (0)
Is no longer needed because it can be calculated and is deleted.

同じく、S24では、レジスタSTEPに3が書き込まれて
次のSTEPへの移行準備がなされる。
Similarly, in S24, 3 is written in the register STEP, and preparation for transition to the next STEP is made.

更に、S24では、以降の処理のために、今回ピーク値
cと、前回のピーク値AMP(0)、AMP(1)のうち、最
も大きい値をベロシティVELとして設定する。なお、ベ
ロシティVELは、STEP3で後述するように楽音の音量を決
定するための値として用いられる。同様に、今回ピーク
値cを前回のピーク値AMP(b)として設定し、第4図
のメインルーチンのM2の処理に戻る。第11図の例では、
VEL=max{c、AMP(0)、AMP(1)}=max{b1
b0、a0}となり、AMP(0)=c=b1となる。なお、STE
P0で設定されたAMP(0)=b0は、上記ベロシティVELが
演算できたため必要なくなり消去される。
Further, in S24, the largest value among the current peak value c and the previous peak values AMP (0) and AMP (1) is set as the velocity VEL for the subsequent processing. It should be noted that the velocity VEL is used as a value for determining the volume of a musical tone as described later in STEP3. Similarly, the current peak value c is set as the previous peak value AMP (b), and the process returns to the process of M2 in the main routine of FIG. In the example of FIG. 11,
VEL = max {c, AMP (0), AMP (1)} = max {b 1 ,
b 0 , a 0 }, and AMP (0) = c = b 1 . In addition, STE
AMP (0) = b 0 set in P0 is unnecessary and is deleted because the velocity VEL can be calculated.

《ダブリ処理の動作》 第11図のような正常なデジタル出力D1が入力している
場合には、前記STEP1において正(負)側の最大(小)
ピーク値が抽出された後は、STEP2において反対に負
(正)側の最小(大)ピーク値が抽出される。従って、
この場合のSTEP2におけるピーク値の符号はSTEP1のとき
と逆であり、更に、STEP0のときと同じとなり、第7図
のS20においては、今回正負フラグb=0(1)はSTEP0
でセットされたフラグMT=0(1)と一致し、前記した
ようにS21に進む。
<< Operation of Dubble Processing >> When a normal digital output D1 as shown in FIG. 11 is input, the maximum (small) on the positive (negative) side in STEP1 described above.
After the peak value is extracted, the minimum (large) peak value on the negative (positive) side is extracted in STEP2. Therefore,
In this case, the sign of the peak value in STEP2 is opposite to that in STEP1, and is the same as that in STEP0. In S20 in FIG. 7, the positive / negative flag b = 0 (1) is set to STEP0 in this case.
Coincides with the flag MT = 0 (1) set in the step (1), and proceeds to S21 as described above.

ところが、前記「STEP1の処理動作」の「ダブリ処理
の動作」の項の説明において述べたのと同様に、場合に
より波形がダブって、STEP1の後に第13A図又は第13B図
に示すような波形が入力することがある。この場合、ST
EP1での正側の最大ピーク値a0が抽出された後、STEP2で
再び正側の最大ピーク値a1がダブって抽出される。従っ
て、第7図のS20においては、今回正負フラグはb=1
となり、STEP0でセットされたフラグMT=0と一致す
る。この場合は、第7図のS25に進み、ダブリ処理(エ
ラー処理)を行う。なお、第13A図、第13B図において単
純斜線のハッチを施したピークは、第2図のピーク検出
回路201内のピークホールド回路から発生される第13A図
又は第13B図のピークホールド信号p0、p1、q0等にひっ
かからなかったため、ピークとして検出されなかった部
分である。
However, in the same manner as described in the description of the “operation of the dub processing” of the “processing operation of STEP 1”, the waveform sometimes doubles, and after STEP 1, the waveform as shown in FIG. 13A or 13B is obtained. May be entered. In this case, ST
After the maximum peak value a 0 of the positive side is extracted in EP1, the maximum peak value a 1 again positive in STEP2 is extracted it dubs. Therefore, in S20 of FIG. 7, the current positive / negative flag is b = 1.
And matches the flag MT = 0 set in STEP0. In this case, the process proceeds to S25 in FIG. 7, and the double processing (error processing) is performed. 13A and 13B, the hatched peaks indicated by simple hatching are the peak hold signals p 0 in FIG. 13A or 13B generated from the peak hold circuit in the peak detection circuit 201 in FIG. , P 1 , q 0, etc., and were not detected as peaks.

S25では、まず、ダブリフラグDUBを1に設定した後
(後述する)、S26に進み、今回ピーク値cの値が同じ
符号の前回のピーク値AMP(b)より大きいか否かが判
定される。
In S25, first, the doubling flag DUB is set to 1 (described later), and the process proceeds to S26, where it is determined whether or not the value of the current peak value c is larger than the previous peak value AMP (b) of the same sign.

今、第13A図において、STEP0(t=t0)、STEP1(t
=t1)の処理の後、t=t2においてSTEP2が実行された
場合、c=a1>AMP(b)=AMP(1)=a0は成立しな
い。即ち、第7図のS26の判定結果はNOとなる。このよ
うな場合は、今回の最大ピーク値a1はおかしな波形とし
て無視し(同図のクロス斜線のハッチを施した部分)、
STEPは更新せずに、第4図のメインルーチンのM2の処理
に戻り、次に正常なピークが入力されるのを待つ。そし
て、t=t3において、最小ピーク値c=b1が入力するこ
とにより、第7図のS20がYESとなって、第11図の場合と
同様に、前記S21→S22→S23→S24の処理が行われ、第13
A図のt=t3で次のSTEP3の処理に進む。なお、第7図の
S24において設定される前回周期データTP(0)は、第1
3A図に示すように、今回のゼロクロス時刻t3と、STEP0
において設定された前回のゼロクロス時刻t0の差にな
る。また、後述するSTEP3において演算されるその次の
周期データTxの起点は、同図に示すようにクロス斜線の
ハッチを程したピーク(c=a1)が無視されるため、ST
EP1において設定された前回のゼロクロス時刻TFN(1)
=t1である。
Now, in FIG. 13A, STEP0 (t = t 0) , STEP1 (t
= T 1 ), when STEP 2 is executed at t = t 2 , c = a 1 > AMP (b) = AMP (1) = a 0 does not hold. That is, the determination result of S26 in FIG. 7 is NO. In such cases, the maximum peak value a 1 of this ignores a funny waveform (areas in a cross hatched hatch in the figure),
The STEP returns to the processing of M2 in the main routine of FIG. 4 without updating, and waits for the next input of a normal peak. At t = t 3, by the minimum peak value c = b 1 is inputted, S20 of FIG. 7 becomes YES, and as in the case of FIG. 11, the S21 → S22 → S23 → S24 Processing is performed and the thirteenth
In t = t 3 A Figure proceeds to the process in next STEP3. In addition, in FIG.
The previous cycle data TP (0) set in S24 is
As shown in Figure 3A, the current zero-crossing time t 3, STEP0
Made to the difference between the previous zero-crossing time t 0, which is set in. The starting point of the next periodic data Tx calculated in STEP 3 to be described later, since the cross hatched peak (c = a 1 ) is ignored as shown in FIG.
Previous zero crossing time TFN set in EP1 (1)
= Is t 1.

一方、第13B図の場合、上記とは逆にc=a1>AMP
(b)=AMP(1)=a0は成立しない。即ち、第7図のS
26の判定結果はYESとなる。このような場合は、前回のS
TEP1で抽出した最大ピーク値a0の方をおかしな波形とし
て無視し(同図のクロス斜線のハッチを施した部分)、
STEP1においてセットされた前回のゼロクロス時刻デー
タTFN(1)、及び正側の前回のピーク値AMP(1)の内
容を、第7図のS29により今回のゼロクロス時刻t及び
今回のピーク値cと入れ替えて変更する。即ち、第13B
図の例では、同図に示すようにTFN(1)=t=t2、AMP
(1)=c=a0となる。このダブリ処理の後、STEPは更
新せずに第4図のメインルーチンのM2の処理に戻り、次
の正常なピーク値が入力するのを待つ。以下、t=t3
おいて最小ピーク値c=b1が入力した後の処理は、前記
第13A図の場合と同じである。ただし、STEP1において抽
出されたピーク(第13B図のクロス斜線のハッチを施し
たピークc=a0)が無視され、c=a1のピークに変更さ
れているため、後述するSTEP3において演算されるTP
(0)の次の周期データTyの起点は、STEP2の前記ダブ
リ処理において設定された前回のゼロクロス時刻TFN
(1)=t2となり、第13A図の場合と異なる。
On the other hand, in the case of FIG. 13B, c = a 1 > AMP
(B) = AMP (1) = a 0 does not hold. That is, S in FIG.
The determination result of 26 is YES. In such a case, the previous S
Ignore towards maximum peak value a 0 extracted with TEP1 as strange waveform (areas in a cross hatched hatch in the figure),
The contents of the previous zero-cross time data TFN (1) set in STEP 1 and the previous peak value AMP (1) on the positive side are replaced with the current zero-cross time t and the current peak value c by S29 in FIG. Change. That is, 13B
In the example of the figure, as shown in the figure, TFN (1) = t = t 2 , AMP
(1) = c = a 0 After the dubbing process, the STEP returns to the process of M2 in the main routine of FIG. 4 without updating, and waits for the next normal peak value to be input. Hereinafter, processing after minimum peak value c = b 1 is inputted in t = t 3 is the same as in the FIG. 13A. However, the peaks extracted in STEP 1 (peaks c = a 0 hatched by cross hatching in FIG. 13B) are ignored, and the peaks are changed to c = a 1 , so that they are calculated in STEP 3 described later. TP
(0) of the origin of the next period data T y is the last zero crossing time TFN set in the doubling process STEP2
(1) = t 2 , which is different from the case of FIG. 13A.

以上、第13A図又は第13B図に示すように波形がダブっ
た場合は、ピーク値の小さい方のピークがおかしな波形
として無視され、エラー処理される。
As described above, when the waveform is doubled as shown in FIG. 13A or FIG. 13B, the peak having the smaller peak value is ignored as a strange waveform, and error processing is performed.

次に、ダブリ処理の他の場合の処理のための、第7図
のS22の分岐について説明を行う。
Next, a description will be given of the branch of S22 in FIG. 7 for the other case of the doubling processing.

今、第7図のSTEP2の処理が実行される場合、弦をピ
ッキングした正常な波形はなめらかに自然減衰するた
め、S22において今回ピーク値の値は同じ符号の前回の
ピーク値AMP(b)の7/8倍より大きい値となり、S22の
判定はYESとなって次のS23に進む。
Now, when the processing of STEP 2 in FIG. 7 is executed, the normal waveform obtained by picking the strings attenuates smoothly and naturally, so that the value of the current peak value is equal to the value of the previous peak value AMP (b) of the same sign in S22. The value becomes greater than 7/8, the determination in S22 is YES, and the process proceeds to the next S23.

ところが、場合によりc>(7/8)×AMP(b)が成立
しないことがある。第1の場合として、例えば弦をブリ
ッジに近いところでピッキングすることにより、波形は
正常だがなめらかな減衰波形とならず、S22の判定結果
がNOとなることがおこりうる。しかし、このような場合
においても、前記第7図のS24の処理を正常に行う必要
がある。そして、この場合、波形が正常であるため、前
記したようなダブリは発生しておらず、それ以前に第7
図のS20からS25へ分岐していないため、ダブリフラグDU
Bの値は0のままである。そこで、第7図のS27におい
て、DUB=1が成立しない場合は、S22の判定結果にかか
わらず、再びS24の処理に戻り、前記「基本動作」の項
で述べた処理を行う。なお、ダブリフラグDUBは、前記
第5図のSTEP0のS04の処理において、その値が0に初期
化されている。
However, in some cases, c> (7/8) × AMP (b) may not be satisfied. In the first case, for example, by picking a string near the bridge, the waveform may not be a normal but smooth attenuation waveform, and the determination result in S22 may be NO. However, even in such a case, the processing of S24 in FIG. 7 needs to be performed normally. In this case, since the waveform is normal, the above-mentioned double does not occur, and the seventh is performed before that.
Since it does not branch from S20 to S25 in the figure, the double flag DU
The value of B remains at 0. Therefore, if DUB = 1 does not hold in S27 of FIG. 7, the process returns to the process of S24 again, regardless of the determination result of S22, and performs the process described in the above-mentioned "basic operation". It should be noted that the value of the double flag DUB has been initialized to 0 in the processing of S04 in STEP0 of FIG.

一方、第7図のS22が成立しない第2の場合として、
波形に前記したようなダブリが発生した場合がある。こ
の場合について、第13C図を用いて以下に説明を行う。
On the other hand, as a second case where S22 in FIG. 7 is not satisfied,
The above-mentioned doubles may occur in the waveform. This case will be described below with reference to FIG. 13C.

今、第13B図で説明したのと同様に、第13C図に示すよ
うに、STEP0(t=t0)、STEP1(t=t1)の処理の後
に、t=t2において前記ダブリ処理が行われ、c=a0
ピーク(同図のクロス斜線のハッチを施したピーク)が
除去され、c=a1のピーク(同図の縦線のハッチを施し
たピーク)が残されたとする。なお、単純な斜線のハッ
チを施したピーク(c=a1)は、第13A図又は13B図と同
様、元々検出されないピークである。
Now, in the same way as described in FIG. 13B, as shown in 13C view, STEP0 (t = t 0) , after treatment STEP1 (t = t 1), said doubling processing at t = t 2 is performed, the peak of c = a 0 (peak subjected to cross-hatched hatch in the figure) is removed, and c = a 1 peak (peak hatched vertical bars in the figure) is left . It should be noted that the peak (c = a 1 ) hatched with a simple diagonal line is a peak that is not originally detected, as in FIG. 13A or 13B.

上記のようなダブリが発生すると、次のt=t3におい
ては第13C図に示すように正負フラグはb=0となるた
め、STEP0でセットされたフラグMT=0と一致する。従
って、第7図のS20からS21を介してS22の処理に進む。
ところが、t=t3において検出される今回の最小ピーク
値c=b1は、波形がダブったために同じ符号の前回の最
小ピーク値AMP(0)=b0からかなり離れており、減衰
も大きい。従って、第13図Cに示すように第7図のS22
の判定結果がNOとなる場合がある。
When doubling as described above occurs, the positive and negative flags as in the next t = t 3 shown in 13C diagram for the b = 0, coincides with the flag MT = 0 which is set in STEP0. Therefore, the process proceeds from S20 to S22 through S21 in FIG.
However, the minimum peak value c = b 1 of this detected at t = t 3, the waveform is considerably away from the previous minimum peak value AMP (0) of = b 0 with the same sign for the mapped twice, greater attenuation . Therefore, as shown in FIG. 13C, S22 in FIG.
May be NO.

上記のような場合は、それ以前のt=t2においてダブ
リ処理を行っているため、ダブリフラグDUBの値は1で
ある。従って、第7図のS27の判定結果はNOとなり、S28
を介して(後述する)S29に進む。
If as described above, because a duplication process in earlier t = t 2, the value of Daburifuragu DUB is 1. Therefore, the determination result of S27 in FIG. 7 is NO, and S28
Then, the process proceeds to S29 (to be described later).

S29においては、第13C図のt=t3以後に正常な波形を
獲得して新たに処理をやり直すために、STEP0において
セットされた前回のゼロクロス時刻データTFN(0)、
及び負側の前回のピーク値AMP(0)の内容を、第7図
のS29により今回のゼロクロス時刻t及び今回のピーク
値cと入れ替えて変更する。即ち、第13C図の例では、
同図に示すようにTFN(0)=t=t3、AMP(0)=c=
b1となり、結局、同図の横線のハッチを施したピーク
(c=b0)が無視される。なお、以降の処理のために、
第7図のS28でダブリフラグDUBは0にリセットされる。
これらの動作の後、STEPの値は更新せずに第4図のメイ
ンルーチンのM2の処理に戻り、次のピークの入力を待
つ。
In S29, the 13C view of t = to redo the acquired newly processed normal waveform t 3 after, set in STEP0 the previous zero-crossing time data TFN (0),
Then, the content of the previous peak value AMP (0) on the negative side is changed by replacing the current zero crossing time t and the current peak value c with S29 in FIG. That is, in the example of FIG. 13C,
As shown in the figure, TFN (0) = t = t 3 , AMP (0) = c =
b 1, and the end, the peak subjected to horizontal hatch in FIG (c = b 0) are ignored. In addition, for the following processing,
The double flag DUB is reset to 0 in S28 of FIG.
After these operations, the process returns to M2 of the main routine in FIG. 4 without updating the value of STEP, and waits for the input of the next peak.

そして、上記の場合、第13C図に示すようにt=t4
t=t5において、第7図のSTEP2が繰り返された後、STE
P3に移行する。このようなSTEP2の繰り返し動作につい
ては様々なパターンがあるため、その詳細な説明は省略
するが、全体の流れとしては正常な波形を獲得できるよ
うになって、次のSTEP3において用いるためのデータTFN
(0)、AMP(0)、及びTFN(1)、AMP(1)が有効
に決定されるように動作した後に、STEP3に移行する。
なお、第13C図のケースでは、TP(0)=t5−t3、後述
するSTEP3において演算されるその次の周期データTiの
起点は、TFN(1)=t4となる。
Then, in the above case, as shown in FIG. 13C, t = t 4 ,
In t = t 5, after the STEP2 of Figure 7 was repeated, STE
Move to P3. Since there are various patterns for such a repetition operation of STEP2, a detailed description thereof will be omitted, but a normal waveform can be obtained as a whole flow, and data TFN to be used in the next STEP3 is obtained.
After operating such that (0), AMP (0), TFN (1), and AMP (1) are effectively determined, the process proceeds to STEP3.
In the first 13C view of a case, TP (0) = t 5 -t 3, the starting point of the next period data Ti calculated in the later-described STEP3 becomes TFN (1) = t 4.

(STEP3の処理動作) 次に、第8図は、第4図のメインルーチンのM8として
示すステップ3(STEP3)の処理の動作フローチャート
である。この処理においては、ノートオン(発音開始)
処理、ノートオン時の音高設定のためのピッチ周期の抽
出、ベロシティの演算、STEP4への移行処理、及びおか
しな波形が入力したときのエラー処理等を行う。
(Processing Operation of STEP3) Next, FIG. 8 is an operation flowchart of the processing of Step 3 (STEP3) shown as M8 in the main routine of FIG. In this process, note-on (start of sound generation)
Processing, extraction of a pitch cycle for setting a pitch at the time of note-on, calculation of velocity, transition processing to STEP 4, error processing when a strange waveform is input, and the like are performed.

《基本動作》 まず、前記ステップ3による処理が行われた後、第4
図のメインルーチンでは、M2→M10→M11→M2のループの
繰り返しにより、前記ピッチ抽出デジタル回路2(第1
図)から再び割り込みがかかって、レジスタT0、C、B
の次のデータが入力するのを待っている。
<< Basic Operation >> First, after the processing in step 3 is performed,
In the main routine shown in the figure, the pitch extraction digital circuit 2 (first circuit) is repeated by repeating a loop of M2 → M10 → M11 → M2.
Interrupt) again, and registers T0, C, B
Waiting for the next data to be entered.

そして、データが入力し、第4図のM2からM3を経て上
記各レジスタの内容が読み込まれると、M4を介してM8、
即ち第8図のSTEP3に移る。この状態においては、例え
ば第11図に示すように、今回のゼロクロス時刻t=t3
今回正負フラグb=1、今回ピーク値はb=1より最大
ピーク値でc=a1である。
Then, when data is input and the contents of the above registers are read via M2 to M3 in FIG. 4, M8, M8,
That is, the process proceeds to STEP 3 in FIG. In this state, for example, as shown in FIG. 11, the current zero-cross time t = t 3 ,
This negative flag b = 1, this peak value is c = a 1 a maximum peak value from b = 1.

まず、第8図のS30、S31、S32を経た後(後述す
る)、S33においてベロシティVELを演算する。今、前記
「STEP2の処理動作」の「基本動作」の項で説明したよ
うに第7図のS24において、過去3回のピーク値、第11
図の例では、b0、a0、b1の各値(絶対値)のうち最大の
ものがベロシティVELに格納されている。そこで、第8
図のS33において、ベロシティVELと今回ピーク値cのう
ち大きい法を判定し、それを楽音発生回路501(第1
図)で楽音を発生するときの新たなベロシティVELとす
る。
First, after going through S30, S31, and S32 in FIG. 8 (described later), the velocity VEL is calculated in S33. Now, as described in the “Basic operation” section of the “processing operation of STEP 2”, in S24 of FIG.
In the example of the figure, the maximum value (absolute value) of each of b 0 , a 0 , and b 1 is stored in the velocity VEL. Therefore, the eighth
In S33 of the figure, a larger one of the velocity VEL and the current peak value c is determined, and the larger one is determined.
The new velocity VEL when generating a musical tone in (Fig.).

第11図の例では、VEL=a0、c=a1より、VEL=max〔a
0,a1〕=a0となる。
In the example of Figure 11, from VEL = a 0, c = a 1, VEL = max [a
0 , a 1 ] = a 0 .

上記動作の後、第8図の同じくS33において、MT←b
とした後(後述)する、S34において、{(今回のゼロ
クロス時刻t)−(同じ符号の前回のゼロクロス時刻デ
ータTFN(b))}を演算することにより、ピッチ周期
を検出し、前回周期データTP(b)として設定する。第
11図の例では、同図に示すようにTP(1)=t3−t1とな
る。
After the above operation, at S33 in FIG.
Then, in S34, which will be described later, the pitch cycle is detected by calculating {(current zero-cross time t)-(previous zero-cross time data TFN (b) of the same sign)}, and the previous cycle data is calculated. Set as TP (b). No.
In the example of Figure 11, as shown in FIG TP (1) = t 3 becomes -t 1.

続いて、第8図のS35〜S38を経た後(後述する)、S3
9において、上記S34で求まった前回周期データTP(b)
と、前記第7図のS24において設定された、上記TP
(b)とは異極性の前回周期データTP()とが、ほぼ
同一であるか否かを判定する。そして、その判定結果が
YESである場合には、ピッチ周期が安定に抽出され始め
たとして、S301を経た後(後述する)、S302においてノ
ートオン(発音開始)の処理を行う。第11図の例では、
負側の前回周期データTP(1)=t3−t1と正側の前回周
期データTP(0)=t2−t0が、ほぼ同一であると判定さ
れ、ノートオンの処理に移る。なお、判定結果がNOの場
合については後述する。
Subsequently, after S35 to S38 in FIG. 8 (described later), S3
In 9, the previous cycle data TP (b) obtained in S34 above
And the TP set in S24 of FIG.
It is determined whether or not the previous cycle data TP () having a different polarity from (b) is substantially the same. And the judgment result is
If YES, it is determined that the pitch cycle has started to be stably extracted, and after S301 (described later), a note-on (sound generation start) process is performed in S302. In the example of FIG. 11,
Previous period data TP (1) = t 3 -t 1 and the previous period data TP (0) of the positive = t 2 -t 0 negative side, it is determined to be substantially the same, proceeds to the processing of the note-on. The case where the determination result is NO will be described later.

次の、S302においては、第8図のS33で演算されたベ
ロシティVELに基づいて音量情報が生成されると共に、
前回ピッチ周期TP(b)に基づいて、対応する音高情報
が生成される。これらの所謂によって生成された音量情
報及び音高情報は、第1図のMIDI−BUS及びインタフェ
ースMIDIを介して楽音発生回路501に出力される。そし
て、同回路501では上記各情報に応じた音量及び音高の
楽音がリアルタイムで発生される。
In the next step S302, volume information is generated based on the velocity VEL calculated in step S33 in FIG.
Based on the previous pitch cycle TP (b), corresponding pitch information is generated. The volume information and the pitch information generated by these so-called are output to the tone generator 501 via the MIDI-BUS and the interface MIDI shown in FIG. Then, in the same circuit 501, a musical tone having a volume and a pitch corresponding to the above information is generated in real time.

なお、第8図の処理は、ギターの6弦各々について行
われるため、上記処理も6弦各々について独立になされ
ることになる。
Since the processing in FIG. 8 is performed for each of the six strings of the guitar, the above processing is also performed independently for each of the six strings.

上記ノートオンの処理と共に、第8図のS38及びS301
において、次のSTEP4において用いられるパラメータの
設定を行なった後、S302を経て第4図のメインルーチン
のM2の処理に戻り、次のSTEP4に移行する。即ち、S38に
おいてS34で抽出された前回の周期データTP(b)が前
回抽出された周期データTTPとしてセットされ、S301に
おいて第7図のSTEP2のS24において設定された前回のゼ
ロクロス時刻データTFN()が時刻記憶レジスタTFRに
セットされ、今回のゼロクロス時刻データtが有効とな
った前回のゼロクロス時刻データTFとしてセットされ、
波形ナンバーカウンタHNCが0にクリアされ、レジスタS
TEPの値が4に更新され、ノートオンフラグONFが2(発
音状態)にセットされ、定数TTUが0(最低MIN)にセッ
トされ、定数TTWが最高MAXにセットされ、リラティブオ
フチェックのための前回の振幅値AMRL1が0にクリアさ
れる。これらの各パラメータについては、STEP4で後述
する。
Along with the note-on processing, S38 and S301 in FIG.
After the parameters used in the next STEP 4 are set, the process returns to M2 of the main routine in FIG. 4 via S302, and proceeds to the next STEP 4. That is, in S38, the previous cycle data TP (b) extracted in S34 is set as the previously extracted cycle data TTP, and in S301, the previous zero-cross time data TFN () set in S24 of STEP2 in FIG. Is set in the time storage register TFR, and is set as the previous zero-crossing time data TF in which the current zero-crossing time data t becomes valid,
The waveform number counter HNC is cleared to 0 and the register S
The value of TEP is updated to 4, the note-on flag ONF is set to 2 (sound generation state), the constant TTU is set to 0 (minimum MIN), the constant TTW is set to maximum MAX, and the relative off check is performed. The previous amplitude value AMRL1 is cleared to 0. Each of these parameters will be described later in STEP4.

《周期不適切の場合の動作》 前記第8図のS34において、前回周期データTP(b)
が検出された場合、このピッチ周期は、対応する弦を最
高フレットで演奏したときの周期より大きい値を有し、
その弦の開放弦周期より小さい値を有するはずである。
<< Operation when cycle is inappropriate >> In S34 of FIG. 8, the previous cycle data TP (b)
Is detected, this pitch period has a value greater than the period when the corresponding string is played at the highest fret,
It should have a value less than the open string period of the string.

そこで、周波数上限THLIMという定数として、現在処
理をしている弦の最高音フレットで定まれ音高の2〜3
半音上の音高周期を設定し、周波数下限TTLIMという定
数として、同じ弦の開放弦状態で定まる音高の5半音程
度下の音高周期を設定し、第8図のS36、S37において、
S34で求まった前回周期データTP(b)がTHLIMより大き
く、かつ、TTLIMより小さいか否かが判定される。そし
て、上記判定結果が共にYESであれば、S39に進んで前記
した周期判定処理を行う。
Therefore, as a constant called the upper frequency limit THLIM, the pitch is determined by the highest note fret of the string currently being processed, and the pitch is 2-3
Set a pitch period on a semitone, and as a constant called frequency lower limit TTLIM, set a pitch period about 5 semitones lower than the pitch determined in the open string state of the same string, and in S36 and S37 in FIG.
It is determined whether the previous cycle data TP (b) obtained in S34 is larger than THLIM and smaller than TTLIM. If both the determination results are YES, the process proceeds to S39 and performs the above-described cycle determination process.

ここで、S36、S37の判定結果がNOの場合、S34で抽出
された前回周期データTP(b)は適切な値でないことに
なる。従って、このような場合は、S36又はS37から第4
図のメインルーチンのM2の処理に戻りSTEP3を繰り返
す。
Here, if the determination results in S36 and S37 are NO, the previous cycle data TP (b) extracted in S34 is not an appropriate value. Therefore, in such a case, the fourth from S36 or S37
Returning to the processing of M2 in the main routine in the figure, STEP3 is repeated.

次に、第8図のS39において、S34で求まった前回周期
データTP(b)と、これと異極性の前回周期データTP
()とが離れた値である場合には、倍音等を抽出して
しまった正確なピッチ周期の抽出を誤った可能性が高
く、ピッチ周期が安定に抽出されていないことになる。
従って、このような場合は、S39の判定結果がNOとな
り、第4図のメインルーチンのM2の処理に戻りSTEP3を
繰り返す。
Next, in S39 of FIG. 8, the previous cycle data TP (b) obtained in S34 and the previous cycle data TP
If () is a value apart from (), there is a high possibility that the correct pitch period from which harmonics or the like have been extracted is erroneously extracted, and the pitch period is not stably extracted.
Accordingly, in such a case, the determination result in S39 is NO, and the process returns to the process of M2 in the main routine of FIG. 4 and repeats STEP3.

ここで、上記動作によるSTEP3を繰り返す場合、通常
の波形においては、第4図のM2、M3を介して新たに検出
されるピークは、その極性が交互に切り替わってbの値
が0と1で交互に反転し、また、第8図のS33において
フラグMTの値が交互に変更され、同じくS34においてTP
(b)が新たに演算され、TFN(b)の内容も書き替え
られる。従って、S36、S37の判定は、最も新しく求まっ
たピッチ周期に対して行われ、更に、S39における判定
は、最も新しく求まったピッチ周期と、その1つ前(約
半周期前)の異極性側のピッチ周期とに対して行われ、
ピッチ周期が安定に抽出できた時点で前記ノートオンの
処理へ移行することになる。
Here, when STEP3 by the above operation is repeated, in a normal waveform, the peak newly detected via M2 and M3 in FIG. 4 has its polarity switched alternately and the value of b is 0 and 1, Alternatingly, the value of the flag MT is alternately changed in S33 of FIG.
(B) is newly calculated, and the contents of TFN (b) are also rewritten. Therefore, the determinations in S36 and S37 are made for the most recently obtained pitch cycle, and the determination in S39 is made for the most recently obtained pitch cycle and the immediately preceding (about half cycle) opposite polarity side. And the pitch period of
When the pitch period can be stably extracted, the processing shifts to the note-on processing.

また、その都度、第8図のS33において、ベロシティV
ELが、新しく検出されたピークに対応するように更新さ
れる。
Each time, at S33 in FIG. 8, the velocity V
The EL is updated to correspond to the newly detected peak.

《ノイズ除去処理の動作》 第8図のS31の処理は、波形の立ち上がり部分にノイ
ズが発生した場合に対処するための処理である。今、例
えば第14図に示すように、STEP0、1、2においてノイ
ズによるピークa0、b0、a1等が検出されてしまった場
合、これらのノイズの周期を検出して発音開始を指示す
ると、全くおかしな楽音を発音してしまう。
<< Operation of Noise Removal Process >> The process of S31 in FIG. 8 is a process for coping with a case where noise occurs at the rising portion of the waveform. Now, as shown in FIG. 14, for example, when peaks a 0 , b 0 , a 1, etc. due to noise are detected in STEPs 0 , 1 , and 2 , the period of these noises is detected and the sound generation start is instructed Then, a strange sound is produced.

そこで、第8図のS31においては、連続するピーク値
が大きく変化した場合には、ノイズが発生していると判
断して異常検知フラグXを1にセットし、S35においてO
Nの判定をさせることにより、ノイズ部分に基づいてノ
ートオンしないようにしている。
Therefore, in S31 of FIG. 8, when the continuous peak value changes greatly, it is determined that noise has occurred, and the abnormality detection flag X is set to 1, and in S35, O
By making a determination of N, note-on is prevented from occurring based on the noise portion.

具体的には、今回ピーク値cを1/8した値が、それと
同符号の前回ピーク値AMP(b)より小さければ正常で
あると判断してX=0とし、そうでなければX=1とす
る。そして、S35においてX=0でないと判定される場
合には、第4図のメインルーチンのM2の処理に戻りSTEP
3を繰り返す。この場合、第8図のS32において前回ピー
ク値AMP(b)が順次更新されるため、S31における処理
は、最も新しく検出されたピーク値とその直前の同符号
のピーク値とに対して行われ、連続するピーク値が大き
く変化しなくなった時点で前記ノートオンの処理へ移行
することになる。第14図の例では、t=t3、t=t4共に
S31でX=1となってしまうためノートオンせず、t=t
5において初めて正常なピークが入力したと判断される
ためX=0となり、t=t5でノートオンする。そして、
この場合は、連続するピッチ周期TP(b)とTP()は
正常な値となっている。
Specifically, if the value obtained by dividing the current peak value c by 1/8 is smaller than the previous peak value AMP (b) of the same sign, it is determined that the value is normal and X = 0, otherwise, X = 1 And If it is determined in step S35 that X is not 0, the process returns to step M2 of the main routine in FIG.
Repeat 3. In this case, since the previous peak value AMP (b) is sequentially updated in S32 of FIG. 8, the process in S31 is performed on the most recently detected peak value and the immediately preceding peak value of the same sign. When the continuous peak value does not change significantly, the processing shifts to the note-on processing. In the example of FIG. 14, both t = t 3 and t = t 4
Note that since X = 1 in S31, note-on is not performed and t = t
X = 0 becomes for the first time the normal peak is determined to have entered the 5 and note-on at t = t 5. And
In this case, the continuous pitch periods TP (b) and TP () have normal values.

《ダブリ処理の動作》 第8図のS30の判定処理は、ダブリ処理のための判定
である。今、第11図のような正常な波形D1が入力してい
る場合には、t=t3における今回正負フラグb=1は、
フラグMT=0と一致せず、前記したようなS31へ進む。
<< Operation of Double Duty Processing >> The determination processing of S30 in FIG. 8 is a determination for double doubling processing. Now, when a normal waveform D1 such as FIG. 11 is entered, the positive and negative flag b = 1 this at t = t 3, the
If the flag does not match with MT = 0, the process proceeds to S31 as described above.

ところが、前記「STEP1の処理動作」又は「STEP2の処
理動作」の「ダブリ処理の動作」の項の説明において述
べたのと同様に、波形がダブった場合、第8図のS30の
判定結果はNOとなる。
However, as described in the description of the “processing operation of STEP 1” or “processing operation of STEP 2” in the section “Operation of double processing”, when the waveform is doubled, the determination result of S30 in FIG. NO.

そして、ダブったピークのピーク値cの方が、それと
同符号の直前のピーク値AMP(b)より小さい場合は、
同8図のS303の判定結果がNOとなることによりそのダブ
ったピークを無視し、第4図のM2の処理に戻った後STEP
3を繰り返す。これは、第13A図の場合等と同様の考え方
による。
If the peak value c of the doubled peak is smaller than the peak value AMP (b) immediately before the same sign,
When the determination result in S303 in FIG. 8 is NO, the double peak is ignored, and after returning to the process of M2 in FIG.
Repeat 3. This is based on the same concept as in the case of FIG. 13A and the like.

これに対して、ダブったピークのピーク値cの方が大
きかった場合は、S303の判定結果はYESとなり、S304の
処理へ進む。そして、S304では直前のピークの方を無視
して、AMP(b)の内容をピーク値cに設定し直し、ベ
ロシティVELをその値を使って計算し直した後、第4図
のM2に戻ってSTEP3を繰り返す。これは、第13B図の場合
等と同様の考え方による。
On the other hand, when the peak value c of the doubled peak is larger, the determination result in S303 is YES, and the process proceeds to S304. Then, in S304, ignoring the immediately preceding peak, the content of AMP (b) is reset to the peak value c, the velocity VEL is recalculated using the value, and the process returns to M2 in FIG. Repeat STEP3. This is based on the same concept as in FIG. 13B and the like.

以上の処理の後、正常なピークが入力することによ
り、S30の判定結果がYESとなり、更に、S35、S36、S37
及びS39等の各判定結果がYESとなることにより、前記ノ
ートオンの処理が行われ、楽音の発音が開始されること
になる。
After the above processing, when a normal peak is input, the determination result of S30 becomes YES, and further, S35, S36, S37
When the determination results in steps S39 and S39 are YES, the note-on process is performed, and the tone generation starts.

(STEP4の処理動作) 次に、第9A図〜第9E図は、第4図のメインルーチンの
M9として示すステップ4(STEP4)の処理の動作フロー
チャートである。この処理においては、ピッチ抽出・変
更処理、リラティブオン・リラティブオフの処理、ピッ
チ周期不適時の処理、及びダブリ処理等を行う。まず、
ピッチ抽出・変更処理においては、ピッチ抽出のみを行
うルート、実際にピッチ変更を行うルートがあり、
通常は新たなピークが入力する毎に交互に繰り返す。こ
こで、本発明に特に関係するのは、ルートにおけるピ
ッチ変更時の処理である。
(Processing operation of STEP 4) Next, FIGS. 9A to 9E show the main routine of FIG.
It is an operation | movement flowchart of the process of step 4 (STEP4) shown as M9. In this processing, pitch extraction / change processing, relative-on / relative-off processing, processing when the pitch period is inappropriate, and double processing are performed. First,
In pitch extraction / change processing, there is a route that only performs pitch extraction, and a route that actually changes the pitch.
Usually, it repeats every time a new peak is input. Here, what is particularly relevant to the present invention is the processing at the time of changing the pitch in the route.

《ルートの動作》 先ず、S40、S41、S42、S63〜S67に示すルートにつ
いて説明する。S40において、波形ナンバーカウンタHNC
>3が判断され、YESの場合にはS41に進む。S41では、
リラティブオンしきい値TRLRL<(今回ピーク値c−同
じ符号の前回のピーク値AMP(b))かどうかが判断が
行われ、NOの場合にはS42に進む(YESの場合は後述す
る)。S42では、今回正負フラグb=フラグMTつまりピ
ッチ変更側かどうかが判断され、YESの場合にはS43に進
む。
<< Route Operation >> First, the routes shown in S40, S41, S42, and S63 to S67 will be described. In S40, the waveform number counter HNC
> 3, and in the case of YES, the process proceeds to S41. In S41,
It is determined whether or not the relative-on threshold value TRLRL <(current peak value c−previous peak value AMP (b) of the same sign). If NO, the process proceeds to S42 (if YES, the process will be described later). In S42, it is determined whether this time the positive / negative flag b = flag MT, that is, the pitch change side, and if YES, the process proceeds to S43.

ところで、初期状態では、前記波形ナンバーカウンタ
HNCは0である(第8図のS301参照)ので、S40ではNOの
判断をしてS42へ進む。そして、例えば第11図のような
波形入力の場合は、t=t4においてb=0でMT=1(第
8図のSTEP3のS33で書か替えられている)であるから、
S42からS63へ進む。
By the way, in the initial state, the waveform number counter
Since HNC is 0 (see S301 in FIG. 8), NO is determined in S40 and the process proceeds to S42. For example, in the case of a waveform input as shown in FIG. 11, since b = 0 at t = t 4 and MT = 1 (rewritten in S33 of STEP 3 in FIG. 8),
Proceed from S42 to S63.

S63においては、同じ極性のピークが続けて入力され
てきているか(ダブリであるか)、否かチェックするた
めに、レジスタRIV=1かどうかが判断され、YESの場合
(ピークがダブった場合)にはS68に進んでダブリ処理
を行い(後述する)、また、NOの場合(ダブリでない場
合)にはS64に進み、ここで以下の処理が行われる。
In S63, it is determined whether or not the register RIV = 1 to check whether or not a peak having the same polarity is continuously inputted (whether the peak is doubled). If YES (if the peak is doubled) In step S68, the doubling process is performed (to be described later). In the case of NO (non-doubling), the process proceeds to S64, where the following process is performed.

即ち、S64では今回ピーク値cが前回のピーク値AMP
(b)に入力され、リラティブオフ処理(後述する)の
ために前回の振幅値AMRL1が前々回の振幅値AMRL2に入力
される。なお、始めはAMRL1の内容は0である。(第8
図のSTEP3のS301参照)。
That is, in S64, the current peak value c is changed to the previous peak value AMP.
(B), and the previous amplitude value AMRL1 is input to the amplitude value AMRL2 two times before for the purpose of the relative-off process (described later). At first, the content of AMRL1 is 0. (Eighth
(See S301 of STEP3 in the figure).

更に、S64において、異符号の前回のピーク値AMP
()と今回のピーク値cのうちいずれか大きい値が前
回振幅値AMRL1に入力される。つまり、周期の中で2つ
ある正、負のピーク値について大きい値のピーク値が振
幅値AMRL1にセットされる。
Further, in S64, the previous peak value AMP of the opposite sign
The larger value between () and the current peak value c is input to the previous amplitude value AMRL1. That is, the peak value of the larger value of the two positive and negative peak values in the cycle is set to the amplitude value AMRL1.

そして、S65で波形ナンバンーカウンタHNC>8とどう
かが判断され、ここで波形ナンバーカウンタ(ピッチ変
更側でないゼロクロスカウンタ)HNCが+1され、カウ
ントアップされる。従って、波形ナンバーカウンタHNC
は、上限が9となる。そして、S65もしくはS66の処理の
後S67へ進行する。
Then, in S65, it is determined whether or not the waveform number counter HNC> 8. Here, the waveform number counter (zero cross counter on the non-pitch changing side) HNC is incremented by 1 and counted up. Therefore, the waveform number counter HNC
Has an upper limit of 9. Then, the process proceeds to S67 after the process of S65 or S66.

S67では、レジスタRIVを1とし、今回のゼロクロス時
刻tから時刻記憶レジスタTFRの内容を引算して、周期
レジスタTTRへ入力する。この周期レジスタTTRは、第11
図の例では周期情報TTR=t−TFR=t4−t2を示す。そし
て、今回のゼロクロス時刻tは、時刻記憶レジスタTFR
へセーブされ、この後、第4図のメインルーチンのM2の
処理に戻る。
In S67, the register RIV is set to 1, the content of the time storage register TFR is subtracted from the current zero crossing time t, and the result is input to the period register TTR. This cycle register TTR is
In the example of the figure, the period information TTR = t−TFR = t 4 −t 2 is shown. The current zero-crossing time t is stored in the time storage register TFR.
Then, the process returns to the process of M2 in the main routine of FIG.

以上述べたようにルートは、第11図の例によれば以
下のような処理がなされる。即ち、MT=1≠b、RIV=
0、AMP(0)←c=b2、AMRL2←AMRL1=0、AMRL1←ma
x{AMP(1)=a1、c=b2(のいずれか大きい方)}、
NCH←{HNC+1}=1、RIV←1、TTR←{t−TFR}=
{t4−t2}、TFR←t=t4となる。従って、周期レジス
タTTRに前回の同極性のゼロクロス点t=t2(STEP2→3
の変化時点)から今回のゼロクロス点t=t4までの時刻
情報の差つまり、周期情報が求まったことになる。そし
て、第4図のメインルーチンのM2の処理へ戻り、次のピ
ークが入力すのを待つ。
As described above, the route is subjected to the following processing according to the example of FIG. That is, MT = 1 ≠ b, RIV =
0, AMP (0) ← c = b 2 , AMRL2 ← AMRL1 = 0, AMRL1 ← ma
x {AMP (1) = a 1 , c = b 2 (whichever is greater)},
NCH ← {HNC + 1} = 1, RIV ← 1, TTR ← {t-TFR} =
{T 4 −t 2 }, and TFR ← t = t 4 . Therefore, the previous zero-cross point of the same polarity t = t 2 (STEP 2 → 3
The difference that is the variation time) of time information to the current zero cross point t = t 4, so that the cycle information is Motoma'. Then, the process returns to the process of M2 in the main routine of FIG. 4, and waits for the input of the next peak.

《ルートの動作》 次に、S40〜S62に示すルートへ進んだ場合の説明を
行なう。いま、波形ナンバーカウンタHNC=1なので(S
66参照)、S40からS42へ進む(S40については後述す
る)。
<< Route Operation >> Next, a description will be given of a case where the vehicle has proceeded to the route shown in S40 to S62. Now, since the waveform number counter HNC is 1, (S
66, and proceeds from S40 to S42 (S40 will be described later).

S42では、例えば第11図のような場合、MT=1、b=
1なのでYESとなり、S43へ進む。
In S42, for example, in the case of FIG. 11, MT = 1, b =
Since it is 1, it becomes YES and proceeds to S43.

S43では、レジスタRIV=1かどうかが判断される。既
にルートにおいて、レジスタRIVは1とされている(S
67参照)ので、S43の判断はYESとなり、S44へ進む。な
お、S43の判定結果がNOとなる場合のダブリ処理につい
ては後述する。
In S43, it is determined whether or not the register RIV = 1. Already in the route, the register RIV is set to 1 (S
67)), so the determination in S43 is YES, and the process proceeds to S44. It should be noted that the dubbing process performed when the determination result of S43 is NO will be described later.

S44では、レジスタSTEP=4かどうかが判断され、YES
の場合にはS45に進む(NOの場合については後述す
る)。S45では、今回ピーク値c<60H(Hは16進法表現
を示す)かどうかが判断され、値の大きなピーク値が入
力した場合は、この判定結果はNOとなり、S47に進む。
これに対して、値が60Hより小さい場合は、YESなりS46
に進む。
In S44, it is determined whether or not the register STEP = 4, and YES
In the case of, the process proceeds to S45 (the case of NO will be described later). In S45, it is determined whether or not the current peak value is c <60H (H indicates a hexadecimal notation). If a peak value having a large value is input, the determination result is NO, and the process proceeds to S47.
On the other hand, if the value is smaller than 60H, the result is YES and S46
Proceed to.

S46では、前々回の振幅値(ピーク値)AMRL2−前回の
振幅値(ピーク値)AMRL1≦(1/32)×前々回の振幅値
(ピーク値)AMRL2かどうかが判断され、YESの場合には
S47に進み、リラティブオフカウンタFOFRが0にセット
される。NOの場合には、S74に進みリラティブオフの処
理が行われる。このリラティブオフの処理については後
述する。
In S46, it is determined whether or not the amplitude value (peak value) AMRL2 of the previous time AMRL2−the previous amplitude value (peak value) AMRL1 ≦ (1/32) × the amplitude value (peak value) of the previous time AMRL2 (in the case of YES).
Proceeding to S47, the relative off counter FOFR is set to 0. In the case of NO, the process proceeds to S74 and the relative off process is performed. The relative off processing will be described later.

S48では周期計算がおこなわれる。具体的には(今回
のゼロクロス時刻t−前回のゼロクロス時刻データTF)
が今回の周期情報ttとしてレジスタTOTOにセットされ
る。そして、S49に進む。
In S48, a period calculation is performed. Specifically, (current zero-cross time t-previous zero-cross time data TF)
Is set in the register TOTO as the current cycle information tt. Then, the process proceeds to S49.

S49では、今回の周期情報tt>周波数上限THLIM(発音
開始後の上限)かどうかが判断され、YESの場合にはS50
に進む(NOの場合は後述する)。S49の周波数上限THLIM
は、第8図のSTEP3のS36で使用したトリガ時(発音開始
時)の周波数の許容範囲の上限(従って周期として最小
で、最高音フレットの2〜3半音上の音高周期に相当す
る)と同一のものである。
In S49, it is determined whether or not this cycle information tt> frequency upper limit THLIM (upper limit after the start of sound generation), and if YES, S50
(The case of NO will be described later.) S49 frequency upper limit THLIM
Is the upper limit of the allowable frequency range at the time of triggering (at the start of sound generation) used in S36 of STEP 3 in FIG. 8 (therefore, the period is the minimum and corresponds to the pitch period two to three semitones above the highest note fret) Is the same as

次に、S50では以下の処理が行われる。即ち、レジス
タRIVを0にし、今回のゼロクロス時刻tが前回のゼロ
クロス時刻データTFとして入力され、また前回のピーク
値AMP(b)が前々回ピーク値eに入力され、さらに今
回ピーク値cが前回のピーク値AMP(b)に入力され
る。
Next, the following processing is performed in S50. That is, the register RIV is set to 0, the current zero-cross time t is input as the previous zero-cross time data TF, the previous peak value AMP (b) is input as the peak value e twice before, and the current peak value c is set as the previous peak value c. It is input to the peak value AMP (b).

そして、S50の処理の後S51に進み、S51では、周波数
下限TLLIM>今回の周期情報ttかどうかが判断され、YET
の場合即ち今回の周期がノートオン中のピッチ抽出音域
下限以下になった場合にはS52に進む。この場合、周波
数下限TLLIMは、例えば、開放弦音階の1オクターブ下
にセットされる。つまり、第8図のSTEP3の周波数下限T
TLIM(S37参照)に比較して、許容範囲を広くしてい
る。このようにすることで、トレモロアームの操作など
による周波数変更に対応し得るようになる。
Then, after the process of S50, the process proceeds to S51, and in S51, it is determined whether or not frequency lower limit TLLIM> current cycle information tt, and YET
In other words, if the current cycle is equal to or less than the lower limit of the pitch extraction range during note-on, the process proceeds to S52. In this case, the lower frequency limit TLLIM is set, for example, one octave below the open string scale. That is, the lower frequency limit T of STEP3 in FIG.
The tolerance is wider than TLIM (see S37). By doing so, it becomes possible to cope with a frequency change due to operation of the tremolo arm or the like.

上記動作により、周波数の上限、下限について許容範
囲に入る場合についてのみS52まで進み、そうでない場
合はS49、S51より第4図のメインルーチンのM2の処理に
戻って次のピークの入力を待つ。
By the above operation, the process proceeds to S52 only when the upper and lower limits of the frequency fall within the allowable range. Otherwise, the process returns to M2 of the main routine of FIG. 4 from S49 and S51 and waits for the input of the next peak.

次に、S52では周期データTTPが前々回抽出された周期
データhに入力され、また、今回の周期情報ttが前回抽
出された周期データTTPに入力される。
Next, in S52, the cycle data TTP is input to the cycle data h extracted two times before, and the current cycle information tt is input to the cycle data TTP extracted last time.

そして、S53で今回ピーク値cがベロシティVELに書込
まれ、S54に進む。
Then, in S53, the current peak value c is written in the velocity VEL, and the flow proceeds to S54.

S54では、ノーチェンジレベルNCHLV>(前々回ピーク
値e−今回ピーク値c)かどうかの判断が行われ、YES
の場合にはS55に進む。即ち、前回の同極性のピーク値
(e=AMP.(b)と今回のピーク値cとが大きく変化し
ている場合は、その差がNCHLVを越えることになり、そ
のようなときに、抽出された集荷情報に基づきピッチ変
更を行なうと、不自然な音高変化を呈することになる可
能性が高い。そこで、S54でNOの判断がなされると、S55
以降の処理をすることなく、第4図のメインルーチンの
M2の処理へ戻り、次のピークの入力を待つ。
In S54, it is determined whether or not the no-change level NCHLV> (the peak value e before the previous time-the current peak value c).
In the case of, the process proceeds to S55. That is, if the previous peak value of the same polarity (e = AMP. (B) and the current peak value c greatly change, the difference exceeds NCHLV. If the pitch is changed based on the collected information, it is highly likely that the pitch will change unnaturally, so if NO is determined in S54, the process proceeds to S55.
Without performing the subsequent processing, the main routine of FIG.
Return to the processing of M2 and wait for the input of the next peak.

次に、S54でYESの場合は、リラティブオフカウンタFO
FR=0か否かが判断される。後述するリラティブオフ処
理を行っているときは、リラティブオフカウンタFOFRは
0でなくなっており、そのような場合はピッチ変更(S6
1を参照)の処理を行なうことなく、S55でNOの判断をし
て第4図のメインルーチンのM2の処理へリターンする。
そして、S55にて、YESの判断をしたときは、S56、S57へ
と順次進む。
Next, in the case of YES in S54, the relative off counter FO
It is determined whether FR = 0. When the relative off processing described later is being performed, the relative off counter FOFR is not 0, and in such a case, the pitch is changed (S6).
Without performing the process (see No. 1), a negative determination is made in S55, and the process returns to the process of M2 in the main routine of FIG.
Then, when a determination of YES is made in S55, the process proceeds to S56 and S57 sequentially.

S56では2波3値一致条件処理が行われる。この処理
は、S61のピッチ変更処理と共に、本発明に最も関連す
る処理であり、S56とS61とが組で、2つの実施例があ
る。以下、第1の実施例そして第2の実施例の順に説明
する。なお、都合により第9A図ではS57の処理はない。
In S56, a two-wave ternary match condition process is performed. This processing is the processing most relevant to the present invention together with the pitch changing processing in S61, and S56 and S61 are a group, and there are two embodiments. Hereinafter, the first embodiment and the second embodiment will be described in this order. Note that the processing of S57 is not performed in FIG. 9A for convenience.

ピッチ変更の第1の実施例の処理 まず、第9B図は、第1の実施例における第9A図S56の
2波3値一致条件処理の動作フローチャートである。
First, FIG. 9B is an operational flowchart of the two-wave ternary match condition processing of FIG. 9S S56 in the first embodiment.

同図において、S5601では最も最近に抽出されたピー
ク値AMP(b)の値が、所定の閾値より大きいか否かが
判断される。S5601の判定がYESの場合は、S5602に進
む。
In FIG. 5, in S5601, it is determined whether the value of the most recently extracted peak value AMP (b) is greater than a predetermined threshold. If the determination in S5601 is YES, the process proceeds to S5602.

S5602においては、今回の周期情報tt×2-5>|今回の
周期情報tt−前々回周期データh|が判断され、YESの場
合はS5603に進む。S5603では、今回の周期情報tt×2-5
>|今回の周期情報tt−周期レジスタTTRの内容|が判
断され、YESの場合には第9A図のS58に進む。
In S5602, the current cycle information tt × 2 −5 > | current cycle information tt−previous cycle data h | is determined, and in the case of YES, the process proceeds to S5603. In S5603, this cycle information tt × 2 -5
> | Current cycle information tt−contents of cycle register TTR |, and if YES, the process proceeds to S58 in FIG. 9A.

すなわち、上記S5602では、第11図の例の場合、今回
の周期情報tt=t5−t3(S48参照)が、前回の周期デー
タh=TTP=t3−t1(S52参照)の値とほぼ一致するか否
かを、また、S5603では、今回の周期情報tt=t5−t
3が、それに重なる周期TTR=t4−t2(S67参照)とほぼ
一致するか否かを判断し、そのときの許容変化幅は、今
回の周期情報ttの1/25として、比較的幅の広い変化を許
容させ、これらの条件を満たせば第9A図のS58〜S60を介
して後述するS61でピッチ変更を行う。
That is, in the S 5602, in the example of FIG. 11, the current cycle information tt = t 5 -t 3 (see S48) is the value of the last period data h = TTP = t 3 -t 1 ( see S52) Whether or not they almost match with each other, and in S5603, the current cycle information tt = t 5 −t
3, it is determined whether the substantially coincides with the period TTR = t 4 -t 2 (see S67) overlapping it, allowed range of variation of the time, as a half 5 of the current cycle information tt, relatively A wide change is allowed, and if these conditions are satisfied, the pitch is changed in S61 to be described later through S58 to S60 in FIG. 9A.

一方、S5601の判定がNOの場合、すなわち最も最近に
抽出されたピーク値AMP(b)の値が、所定の閾値より
小さいと判定された場合は、S5604に進む。
On the other hand, if the determination in S5601 is NO, that is, if it is determined that the value of the most recently extracted peak value AMP (b) is smaller than the predetermined threshold, the process proceeds to S5604.

S5604においては、今回の周期情報tt×2-7>|今回の
周期情報tt−前々回周期データh|が判断され、YESの場
合はS5605に進む。S5605では、今回の周期情報tt×2-7
>|今回の周期情報tt−周期レジスタTTRの内容|が判
断され、YESの場合には第9A図のS58に進む。
In S5604, current cycle information tt × 2 −7 > | current cycle information tt−previous cycle data h | is determined, and in the case of YES, the process proceeds to S5605. In S5605, this cycle information tt × 2 -7
> | Current cycle information tt−contents of cycle register TTR |, and if YES, the process proceeds to S58 in FIG. 9A.

すなわち、上記S5604及びS5605では、今回の周期情報
ttが前回・前々回の周期情報TTRとhの各々とほぼ一致
するか否かを判断し、そのときの許容変化幅は、今回の
周期情報ttの1/27として、わずかな変化しか許容させて
おらず、これらの条件を満たした場合に限り、第9A図の
S58〜S60を介して後述するS61でピッチ変更を行う。
That is, in S5604 and S5605, the current cycle information
tt is determined whether substantially coincides with the respective period information TTR and h of the last-time before last, the allowable variation width of the time, 1/2 7 of the current cycle information tt, only then allowed slight changes And only if these conditions are met, the
The pitch is changed in S61 to be described later through S58 to S60.

以上のように、最も最近に抽出されたピーク値AMP
(b)の値が小さい場合は、ピッチ変更を行わせるか否
かの条件を厳しくしている。これにより、演奏者による
意図的なピッチ周波数の変更操作が行われやすいディジ
タル出力D1のピーク値が大きい範囲では、ピッチ変更の
条件を緩くして当該操作に迅速に追従することができる
と共に、ディジタル出力D1のピーク値(強度)が弱くな
ってノイズ等の影響を受けやすくなった場合には、ピッ
チ変更の条件を厳しくしてノイズ等の影響を効果的に取
り除くことができる。
As described above, the most recently extracted peak value AMP
When the value of (b) is small, the condition for whether or not to change the pitch is strict. Thus, in the range where the peak value of the digital output D1 in which the player is liable to intentionally change the pitch frequency is large, the condition of the pitch change can be relaxed and the operation can be quickly followed. When the peak value (intensity) of the output D1 becomes weak and is easily affected by noise or the like, the influence of noise or the like can be effectively removed by strictly changing the pitch.

以上により、第9A図S56の2波3値一致条件処理が終
わった後、次のS58では、今回の周期情報tt>定数TTUか
どうかが判断され、YESならばS59へ進み、ここで今回の
周期情報tt<定数TTWかどうかが判断され、YESならばS6
0へ進む。なお、S58、S59でNOと判定される場合につい
ては後述する。
As described above, after the two-wave ternary matching condition processing of FIG. 9A S56 is completed, in the next S58, it is determined whether or not the current cycle information tt> constant TTU, and if YES, the process proceeds to S59. It is determined whether cycle information tt <constant TTW, and if YES, S6
Go to 0. The case where the determination is NO in S58 and S59 will be described later.

S60では、レジスタSTEP=4であるのかどうかの判断
が行われ、YESの場合にはS61に進む。
In S60, it is determined whether or not the register STEP = 4, and in the case of YES, the process proceeds to S61.

続くS61は、第9C図S6101に示すように、第1図のMCP3
から楽音発生回路501へ今回の周期情報ttに基づくピッ
チ変更が行われ、S62に進む。
Subsequently, as shown in S6101 in FIG. 9C, the MCP3 in FIG.
Then, the pitch change based on the current cycle information tt is performed to the tone generation circuit 501, and the process proceeds to S62.

S62では、今回の周期情報ttに対応して時定数チェン
ジをし、また定数TTUが(17/32)×今回の周期情報ttに
書替えられ、さらに定数TTWが(31/16)×今回の周期情
報ttに書き替えられる。
In S62, the time constant is changed in accordance with the current cycle information tt, and the constant TTU is rewritten to (17/32) × current cycle information tt, and furthermore, the constant TTW is (31/16) × current cycle Rewritten with information tt.

また、後述するように、リラティブオフの処理がなさ
れたときに限り、STEP=5となるが、そのときはS60か
らS62に直接進み、S61でピッチ変更を行なうことなく、
S62で時定数チェンジを行なう。
Also, as will be described later, only when the relative off process is performed, STEP = 5. In this case, the process directly proceeds from S60 to S62 without changing the pitch in S61.
The time constant is changed in S62.

上記時定数チェンジの処理とは、第2図の時定数変換
制御回路202内部の時定数変換レジスタCHTRRに今回の周
期情報ttの値に基づく周期データを第1図のMCP3がセッ
トすることをいう。これは、前記「ピッチ抽出デジタル
回路の動作」の「詳細動作」の項で既に説明したとおり
である。
The process of the time constant change means that the MCP3 in FIG. 1 sets the cycle data based on the value of the current cycle information tt in the time constant conversion register CHTRR in the time constant conversion control circuit 202 in FIG. . This is as already described in the section "Detailed operation" of the "Operation of the pitch extraction digital circuit".

そして、S62の処理の終了で第4図のメインルーチン
のM2の処理へ戻る。
Then, upon completion of the process in S62, the process returns to the process of M2 in the main routine of FIG.

ピッチ変更の第2の実施例の処理 次に、第9D図は、第2の実施例における第9A図S56の
2波3値一致条件処理の動作フローチャートである。
Next, FIG. 9D is an operation flowchart of the two-wave ternary match condition processing of FIG. 9S S56 in the second embodiment.

同図において、S5606では今回の周期情報tt×2-5>|
今回の周期情報tt−前々回周期データh|が判断され、YE
Sの場合はS5607に進む。S5607では、今回の周期情報tt
×2-5>|今回の周期情報tt−周期レジスタTTRの内容|
が判断され、YESの場合には第9A図のS58に進む。
In this figure, in S5606, the current cycle information tt × 2 -5 > |
The current cycle information tt-the cycle data h |
In the case of S, the process proceeds to S5607. In S5607, this cycle information tt
× 2 -5 > | Current cycle information tt-Contents of cycle register TTR |
Is determined, and in the case of YES, the process proceeds to S58 in FIG. 9A.

第9D図の第2の実施例では、第9B図の第1の実施例の
場合と異なり、今回の周期情報ttが前回・前々回の周期
情報TTRとhの各々とほぼ一致するか否かを判断する場
合、許容変化幅は、今回の周期情報ttの1/25として、一
律比較的幅の広い変化を許容させ、これらの条件を満た
せば第9A図のS58〜S60を介して後述するS61でピッチ変
更を行う。
In the second embodiment shown in FIG. 9D, unlike the first embodiment shown in FIG. 9B, it is determined whether or not the current cycle information tt substantially coincides with each of the previous and last two cycle information TTR and h. when determining the allowable variation width is 1/2 5 of the current cycle information tt, to permit a wide variation relatively wide uniform will be described later via a S58~S60 of Figure 9A satisfy these conditions The pitch is changed in S61.

以上により、第9A図S56の2波3値一致条件処理が終
わった後、S58〜S60の処理が行われるが、これらの前記
第1の実施例の場合と全く同様である。
As described above, after the two-wave ternary matching condition processing of FIG. 9A S56 is completed, the processing of S58 to S60 is performed, which is exactly the same as in the case of the first embodiment.

そして、第2の実施例では、S61のピッチ変更処理に
特徴がある。
The second embodiment is characterized in the pitch change processing in S61.

第9E図は、第2の実施例における第9A図S61のピッチ
変更処理の動作フローチャートである。
FIG. 9E is an operational flowchart of the pitch changing process in FIG. 9A, S61, in the second embodiment.

同図において、S6102では最も最近に抽出されたピー
ク値AMP(b)の値が、所定の閾値より大きいか否かが
判定される。S6102の判定がYESの場合は6103に進む。
In FIG. 12, in S6102, it is determined whether or not the value of the most recently extracted peak value AMP (b) is larger than a predetermined threshold. If the determination in S6102 is YES, the process proceeds to 6103.

S6103においては、今回の周期情報ttの値をピッチ変
更用ピッチ周期情報レジスタTXに格納する。また、次の
6104では次回の処理のためにTXの内容を前回ピッチ変更
用ピッチ周囲レジスタottpにコピーする。
In S6103, the value of the current cycle information tt is stored in the pitch change pitch cycle information register TX. Also,
At step 6104, the contents of TX are copied to the previous pitch change pitch surrounding register ottp for the next processing.

そして、続くS6501において、レジスタTXにセットさ
れたピッチ周期に従ってピッチ変更処理が行われる。
Then, in the following S6501, pitch change processing is performed in accordance with the pitch cycle set in the register TX.

上記とは逆に、S6102の判定がNOの場合、すなわち最
も最近に抽出されたピーク値AMP(b)の値が、所定の
閾値より小さいと判定された場合は、S6106に進む。
Conversely, if the determination in S6102 is NO, that is, if it is determined that the value of the most recently extracted peak value AMP (b) is smaller than the predetermined threshold, the flow proceeds to S6106.

S6106においては、今回の周期情報ttとレジスタottp
にセットされている前回ピッチ変更時のピッチ周期情報
(S6104参照)との平均ピッチ周期が演算され、その結
果がピッチ変更用ピッチ周期情報レジスタTXに格納され
る。
In S6106, the current cycle information tt and the register ottp
The average pitch cycle with the pitch cycle information (see S6104) at the time of the previous pitch change set in is calculated, and the result is stored in the pitch change pitch cycle information register TX.

そして、続くS6105において、レジスタTXにセットさ
れたピッチ周期に従ってピッチ変更処理が行われる。
Then, in the following S6105, a pitch changing process is performed according to the pitch cycle set in the register TX.

以上のように、最も最近に抽出されたピーク値AMP
(b)の値が大きい場合には、第9A図S56の2波3値一
致条件処理において緩い条件で判定された今回のピッチ
周期情報ttそのものによって直接ピッチ変更が行われ
る。逆に、ピーク値AMP(b)の値が小さい場合には、
前回のピッチ変更に用いられたピッチ周期との平均値が
用いられることによって、急激なピッチ変更が行われな
いようにしている。これにより、演奏者による意図的な
ピッチ周波数の変更操作が行われやすいディジタル出力
D1のピーク値が大きい範囲では、前記第1の実施例と同
様の効果が得られ、ディジタル出力D1のピーク値(強
度)が弱くなってノイズ等の影響を受けやすくなった場
合には、その影響で音高の変化が急激になるのを防ぐこ
とができる。
As described above, the most recently extracted peak value AMP
When the value of (b) is large, the pitch is directly changed by the current pitch cycle information tt itself determined under the loose condition in the two-wave ternary match condition processing of FIG. 9A S56. Conversely, when the value of the peak value AMP (b) is small,
By using the average value with the pitch cycle used for the previous pitch change, rapid pitch change is prevented from being performed. This makes it easy for the player to intentionally change the pitch frequency.
In the range where the peak value of D1 is large, the same effect as in the first embodiment can be obtained. When the peak value (intensity) of the digital output D1 becomes weak and the digital output D1 becomes susceptible to noise or the like, the effect is obtained. It is possible to prevent a sudden change in pitch due to the influence.

以上、第1又は2の実施例の処理を含むルートで
は、第11図の例では次の処理がなされる。すなわち、HN
C=1、MT=1=b、RIV=1と判定され、FOFR←0、tt
←t−TF=t5−t3、RIV←0、TF←t=t5、e←AMP
(1)=a1、AMP(1)←c=a2、h←TTP=TP(1)=
t3−t1、TTP←tt=t5−t3、VEL←c=a2となり、更に前
記第1又は第2の実施例に示した各条件の満足で、ピッ
チ変更を行なう。その後、TTU←(17/32)×tt、TTW←
(31/16)×ttの設定がなされる。
As described above, in the route including the processing of the first or second embodiment, the following processing is performed in the example of FIG. That is, HN
It is determined that C = 1, MT = 1 = b, RIV = 1, and FOFR ← 0, tt
← t−TF = t 5 −t 3 , RIV ← 0, TF ← t = t 5 , e ← AMP
(1) = a 1, AMP (1) ← c = a 2, h ← TTP = TP (1) =
t 3 −t 1 , TTP ← tt = t 5 −t 3 , VEL ← c = a 2 , and furthermore, the pitch is changed under the satisfaction of each of the conditions described in the first or second embodiment. Then, TTU ← (17/32) × tt, TTW ←
(31/16) × tt is set.

上記動作により、ルートにおいて、実際の楽音発生
回路501(第1図)に対するピッチ変更が行われ、続く
ゼロクロスインタラプト(次のピークの検出)でルート
処理、同様に、続くゼロクロスインタラプトで、ルー
トの処理が行われる。このようにして、ルートで
は、単に周期を抽出(S67を参照)し、ルートでは実
際のピッチ変更(S61参照)、時定数チェンジ処理(S62
参照)が行われることになる。
By the above-described operation, the pitch of the actual tone generation circuit 501 (FIG. 1) is changed in the route, and the route processing is performed in the subsequent zero-cross interrupt (detection of the next peak). Similarly, the route processing is performed in the subsequent zero-cross interrupt. Is performed. In this way, on the route, the period is simply extracted (see S67), on the route, the actual pitch change (see S61), the time constant change process (S62)
Reference).

《リラティブオンの処理動作》 第9A図のSTEP4におけるルートのS66で、波形ナンバ
ーカウンタHNCが3を越えるようにカウントアップされ
た後は、S40においてYESの判断がなされ、次にS41へ行
き、リラティブオンの条件を検出する。
<< Relative ON processing operation >> After the waveform number counter HNC is counted up to exceed 3 in the route S66 in STEP4 of FIG. 9A, a determination of YES is made in S40, and then the process goes to S41 and the relative Detect the ON condition.

これは、c−AMP(b)>TRLRLであり、前回のピーク
値AMP(b)に比べて今回のピーク値cがしきい値TRLRL
を越えて増大したとき、つまり、これは弦操作後に同じ
弦を再度ピッキングしたとき(トレモロ奏法などによ
る)にこのようなことがおき、この場合はS41の判定結
果がYESとなり、リラティブオンの処理をすべくS41から
S78へ進む。
This is because c-AMP (b)> TRLRL, and the current peak value c is smaller than the previous peak value AMP (b) by the threshold value TRLRL.
When the number exceeds the limit, that is, when the same string is picked again after string manipulation (such as by tremolo playing), such a case occurs. In this case, the determination result in S41 becomes YES, and the relative on process is performed. From S41 to do
Proceed to S78.

S78では、時定数変換制御回路202(第2図)の時定数
変換レジスタCHTRRへ最高音フレット(例えば22フレッ
ト)の周期CHTIMをセットする。
In S78, the period CHTIM of the highest tone fret (for example, 22th fret) is set in the time constant conversion register CHTRR of the time constant conversion control circuit 202 (FIG. 2).

上記処理の後、第5図のSTEP0のS06へ進み、当該発音
中の楽音をノートオフした後、再発音を開始する。な
お、通常の演奏操作によれば、第9A図のSTEP4のS41では
NOの判断がなされ、S42へ進み、上述したルートもし
くはルートへ進む。
After the above processing, the process proceeds to S06 of STEP0 in FIG. 5, and after note-off of the musical tone being sounded, re-sounding is started. According to the normal performance operation, in S41 of STEP 4 in FIG. 9A,
If the determination is NO, the process proceeds to S42 and proceeds to the above-described route or route.

《リラティブオフの処理動作》 次に、第15図を参照して、リラティブオフ処理を説明
する。リラティブオフとは、フレット操作をしている状
態から、ピッキングをしないで開放弦状態へ移行する操
作にともない消音動作を行うことをいう。
<< Relative Off Processing Operation >> Next, the relative off processing will be described with reference to FIG. Relative off means that a silencing operation is performed in accordance with an operation of shifting from a state in which the fret operation is being performed to an open string state without picking.

この場合、波形の振幅レベルは急激に落ちてきて、前
々回の波高値(ピーク値)AMRL2と前々回の波高値(ピ
ーク値)AMRL1との差が(1/32)・AMRL2を越えるように
なり、第9A図のSTEP4のS46からS74へ進む。
In this case, the amplitude level of the waveform suddenly drops, and the difference between the peak value (peak value) AMRL2 of the previous time and the peak value (peak value) AMRL1 of the previous time exceeds (1/32) · AMRL2, The process proceeds from S46 of STEP4 in FIG. 9A to S74.

そして、リラティブオフカウンタFOFRが定数ROFCTを
越えるまでカウントアップするようにS74からS75へ進
む。
Then, the process proceeds from S74 to S75 so as to count up until the relative off counter FOFR exceeds the constant ROFCT.

続けて、S75からS48へ行きS49〜S55の処理を行なう
が、FOFR=0でないので、S55の判定結果はNOとなり、
リラティブオフ処理に入る直前ではピッチ変更を行なう
ことなく第4図のメインルーチンのM2の処理へ戻る。
Subsequently, the process goes from S75 to S48 and performs the processing of S49 to S55. However, since FOFR is not 0, the determination result of S55 becomes NO,
Immediately before entering the relative off process, the process returns to the process of M2 in the main routine of FIG. 4 without changing the pitch.

そして、リラティブオフ時のピークが次々に入力し、
S74でNOと判断すると、つまり第15図の例では、FOFRの
値が3となったとき(ROFCTは2である)、S74からS76
へ移行する。
And the peak at the time of relative off enters one after another,
If NO is determined in S74, that is, in the example of FIG. 15, when the value of FOFR becomes 3 (ROFCT is 2), S74 to S76
Move to.

ただし、S46の判断でYESの判断が一度であると、S46
からS47へ進み、FOFRをリセットするように動作する。
従って、ROFCTで指定される回数だけ続けてS46の条件を
満足しなければ、リラティブオフの処理はなされない。
なお、ROFCTの値は、音高が高い弦について大きな値と
しておけば、ほぼ一定の時間経過で、いずれの弦につい
てもリラティブオフ処理ができる。
However, if the determination of YES is made once in S46, S46
The process proceeds from S47 to S47, and operates to reset FOFR.
Therefore, unless the condition of S46 is satisfied continuously for the number of times specified by ROFCT, the relative off processing is not performed.
If the value of ROFCT is set to a large value for a string having a high pitch, the relative off process can be performed for any of the strings after a lapse of a substantially constant time.

次に、S74からS76へ行くと、リラティブオフカウンタ
FOFRをリセットし、レジスタSTEPを5とし、S77へ進ん
で楽音発生回路501(第1図)に対しノートオフを指示
する。
Next, when going from S74 to S76, the relative off counter
The FOFR is reset, the register STEP is set to 5, and the flow advances to S77 to instruct the tone generation circuit 501 (FIG. 1) to perform note-off.

このSTEPが5の状態では、ピッチ抽出処理をSTEP4の
時と同様に実行するが、S60からS61を介することなくS6
2へ進むので、楽音発生回路501に対しては、ピッチ変更
は指示されない。ただし、S62において抽出した周期に
従って時定数チェンジ処理を行なう。
When the state of this STEP is 5, the pitch extraction processing is executed in the same manner as in STEP 4, but the processing of S6 is performed without going through S60 to S61.
Since the process proceeds to step 2, the tone change circuit 501 is not instructed to change the pitch. However, the time constant changing process is performed according to the cycle extracted in S62.

そして、STEPが5の状態では、リラティブオンの処理
を受付けるが(S41、S78)、それ以外の場合では、第4
図のメインルーチンの中で、振動レベルが減少してきた
ことが検知されることによりM14でSTEPが0となり、初
期状態にもどる。
Then, in the state of STEP 5, the relative-on process is accepted (S41, S78).
In the main routine shown in the figure, when it is detected that the vibration level has decreased, STEP becomes 0 in M14, and the process returns to the initial state.

なお、S46で使用するAMRL1、AMRL2はS64で作られてお
り、1周期の中でレベルが大きい方のピーク(最大ピー
クと最小ピークとのうちのいずれか一方)がこの値とさ
れ、第15図の最大ピークakが最大ピークbk−1より必ず
大である場合であって、an+1とan+2、an+2とan+
3、an+3とan+4の差がいずれも所定値を越えるよう
になっている。
Note that AMRL1 and AMRL2 used in S46 are made in S64, and the peak having the higher level (one of the maximum peak and the minimum peak) in one cycle is set to this value. This is a case where the maximum peak ak in the figure is always larger than the maximum peak bk-1, where an + 1 and an + 2, an + 2 and an +
3. The difference between an + 3 and an + 4 exceeds a predetermined value.

また、このときルートの処理においては、最小ピー
クbn+1、bn+2、bh+3が極端に減少してきているの
で、S54でNOの判断が成されて、第4図のメインルーチ
ンのM2の処理へ戻り、ピッチ変更処理はなされない。
At this time, in the route processing, since the minimum peaks bn + 1, bn + 2, bh + 3 are extremely reduced, a NO determination is made in S54, and the process returns to the processing of M2 in the main routine of FIG. No change is made.

《ピッチ周期不適切時の処理動作》 次に、ピッチ周期が不適切な場合、即ち、ピッチ抽出
している際に、S58又はS59でオクターブ関係にある倍
音、つまりオクターブ高い周期やオクターブ低い周期が
続けて検出されたときの処理について説明を行う。
<< Processing operation when pitch period is inappropriate >> Next, when the pitch period is inappropriate, that is, when the pitch is extracted, harmonics having an octave relationship in S58 or S59, that is, a period higher or lower than the octave, is generated. Next, the processing when the detection is performed will be described.

今、第9A図のSTEP4のS58の定数TTUは、第8図のSTEP3
のS301にて最小の値0とされ、定数TTWは同様に最大の
値MAXとされており、はじめてこのフローを通るときは
必ずS58、S59でYESの判断がなされるが、その後はS62に
おいて、定数TTUには、(17/32)・tt(ほぼ1オクター
ブ高音の周期情報)がセットされ、定数TTWには同様にS
62にて(31/16)・tt(ほぼ1オクターブ低音の周期情
報)がセットされる。
Now, the constant TTU of S58 in STEP4 of FIG.
In step S301, the minimum value is set to 0, and the constant TTW is also set to the maximum value MAX. When the flow passes for the first time, YES is always determined in steps S58 and S59. The constant TTU is set to (17/32) · tt (almost one octave higher pitch period information), and the constant TTW is similarly set to S
At 62, (31/16) · tt (almost one octave bass period information) is set.

従って、急激にオクターブアップする場合(これは、
振動弦を指で振動を止めるようにミュート操作したとき
などに生ずる)、又はオクターブダウンする場合(これ
は波形のピークを取り逃した時などに起る)が発生した
ときは、ピッチ変更をすると、不自然となるので、ピッ
チ変更をしないように分岐する。
Therefore, if the octave rises rapidly (this is
When the pitch changes, when the mute operation is performed to stop the vibration of the vibrating string with a finger, or when the octave goes down (this occurs when the waveform peak is missed, etc.), Since it becomes unnatural, branching is performed so as not to change the pitch.

即ち、S58ではttがTTUを越えなかったとき、つまり、
前回抽出した周期の17/32倍した値TTUより小になったと
き、S76へ進む。つまり、オクターブ高い音が抽出され
たときは、ミュート操作をした場合とみなし、オクター
ブ高い音を出力することなく、S58からS76へ行き、前記
リラティブオフ時同様S76、S77の処理によって当該音の
発音を停止する。
That is, when tt does not exceed TTU in S58, that is,
When the value becomes smaller than the value TTU obtained by multiplying the previously extracted cycle by 17/32, the process proceeds to S76. In other words, when an octave higher sound is extracted, it is considered that a mute operation has been performed, and the process goes from S58 to S76 without outputting an octave higher sound, and the sound is generated by the processing of S76 and S77 as in the case of the relative off. To stop.

また、S59では、ttがTTWを越えなかったとき、つまり
前回抽出した周期の31/16倍した値TTWより大となったと
き、S60へ進むことなく、第4図のメインルーチンのM2
の処理へ戻る。
In S59, when tt does not exceed TTW, that is, when ttW is larger than the value 31/16 times the previously extracted cycle, TTW, the process proceeds to S60 without proceeding to S60.
Return to the processing of.

この状態は第16図に示されている。通常ノートオフ近
辺の非常に波形が小さい場合は、他のピッキングによっ
てヘキサピックアップのクロストークやボディの共振に
よって波形が乗ってくる。すると、例えば、第16図のよ
うな入力波形となり、1オクターブ下の入力波形が続け
て検出されてしまうことがある。
This state is shown in FIG. Usually, when the waveform is very small near the note-off, the waveform picks up due to crosstalk of the hexa pickup and resonance of the body due to other picking. Then, for example, an input waveform as shown in FIG. 16 may be obtained, and an input waveform one octave lower may be continuously detected.

このような場合、何等処理を施さないと、急にオクタ
ーブ下の音を出力してしまい、極めて不自然となる。そ
のために、S56、S57でTan+2≒Tan+3≒Tbn+2が検
出されても、Tan+3>Tan+1×(31/16)となるの
で、ピッチ変更することなく、S59から第4図のメイン
ルーチンのM2の処理へ戻る。
In such a case, if no processing is performed, a sound immediately below the octave is output, which is extremely unnatural. Therefore, even if Tan + 2 ≒ Tan + 3 ≒ Tbn + 2 is detected in S56 and S57, since Tan + 3> Tan + 1 × (31/16), the process proceeds from S59 to the processing of M2 in the main routine of FIG. 4 without changing the pitch. Return.

《ダブリ処理の動作》 次に、波形がダブって抽出される場合、即ち、同じ極
性のピークが続けて検出される場合の処理について説明
を行う。
<< Operation of Dubbing Process >> Next, a process in a case where a waveform is extracted by dubbing, that is, a case where peaks having the same polarity are continuously detected will be described.

まず、第9A図のSTEP4のS42の判定結果がNOとなるルー
トにおいて、S63でYESの場合は、S68に進みダブリ処
理が行われる。
First, in the route in which the determination result in S42 of STEP4 in FIG. 9A is NO, if YES in S63, the process proceeds to S68 and the dubbing process is performed.

即ち、S63でYESの場合はS68に進み、今回ピーク値c
>同じ符号の前回のピーク値AMP(b)かどうかが判断
され、YESの場合はS69に進む。
That is, if YES in S63, the process proceeds to S68, where the current peak value c
> It is determined whether or not it is the previous peak value AMP (b) of the same sign, and if YES, the process proceeds to S69.

S69では、今回ピーク値cに前回のピーク値AMP(b)
が書き替えられ、S70に進む。
In S69, the current peak value c is replaced by the previous peak value AMP (b)
Is rewritten, and the process proceeds to S70.

S70では今回ピーク値c>前回の振幅値(ピーク値)A
MRL1かどうかが判断され、YESの場合にはS71に進み、こ
こで今回ピーク値cの前回の振幅値(ピーク値)AMRL1
とされる。
In S70, current peak value c> previous amplitude value (peak value) A
It is determined whether or not it is MRL1, and if YES, the process proceeds to S71, where the previous amplitude value (peak value) of the current peak value c (peak value) AMRL1
It is said.

もし、S68でNOの判断がなされるとすぐに、第4図の
メインルーチンのM2の処理に戻る。従って、新しい入力
波形のピークが大である場合についてのみ、倍音のピー
クをひろっていないと考えられるので、新しい波形のピ
ーク値が登録される。
As soon as NO is determined in S68, the process returns to the process of M2 in the main routine of FIG. Therefore, only when the peak of the new input waveform is large, it is considered that the peak of the overtone is not spread, and the peak value of the new waveform is registered.

また、S70でNOのときと、S71の処理の終了のときに
は、同様にメインルーチンへ戻る。
In addition, when the result of S70 is NO and when the processing of S71 ends, the process returns to the main routine in the same manner.

第17図に、上記ダブリ処理の例を示す。なお、この例
の場合はMT=0の状態を示している。一般に、基本波周
期と倍音成分の周期が非整数倍の関係にあるので、倍音
の位相がずれて行き、同じ極性のゼロクロスを検出して
しまうことになり、そのために誤ったピッチ変更をしな
いようにしないといけない。この図の例の場合では、
「ダブリ」と示しているところで、ダブリの状態が生じ
ている。
FIG. 17 shows an example of the above-described dubbing processing. In this case, the state of MT = 0 is shown. In general, since the fundamental wave period and the period of the harmonic component are non-integer multiples, the phases of the harmonics are shifted, and a zero-cross of the same polarity is detected. I have to do it. In the case of the example in this figure,
Where "double" is indicated, a double state occurs.

このときは、S42からS63へ行き、YESの判断をしてS68
へ行く。S68では、この場合、(an+2)と(an+3)
との比較をして、(an+3)が(an+2)より大なとき
に限りS69へ行き、AMP(1)を書替える。そして、更に
前回の振幅値(ピーク値)AMRL1と今回の振幅情報(ピ
ーク値c)の比較をS70で行って、もしYESならばS71へ
進み、今回のピーク値cを前回の振幅値(ピーク値)FM
RL1とする。
In this case, go from S42 to S63, make a determination of YES, and
Go to In S68, in this case, (an + 2) and (an + 3)
Then, only when (an + 3) is larger than (an + 2), go to S69 and rewrite AMP (1). Further, the previous amplitude value (peak value) AMRL1 is compared with the current amplitude information (peak value c) in S70. If YES, the process proceeds to S71, and the current peak value c is changed to the previous amplitude value (peak value c). Value) FM
RL1.

次に、第9A図のSTEP4のS42の判定結果がYESとなるル
ートにおいて、次のS43でNOとなる場合は、S72に進み
上記と同様にダブリ処理が行われる。
Next, in the route in which the determination result in S42 of STEP4 in FIG. 9A is YES, if the determination in the next S43 is NO, the process proceeds to S72, and the doubling process is performed as described above.

即ち、S34でNOの場合はS72に進み、今回ピーク値c>
同じ符号の前回のピーク値AMP(b)かどうかが判断さ
れ、YESの場合はS73に進み、今回ピーク値cに前回のピ
ーク値AMP(b)が書き替えられた後、第4図のメイン
ルーチンのM2の処理へ戻る。
That is, if NO in S34, the process proceeds to S72, where the current peak value c>
It is determined whether or not it is the previous peak value AMP (b) of the same sign. If YES, the process proceeds to S73, and after the previous peak value AMP (b) is rewritten to the current peak value c, the main routine of FIG. The process returns to the routine M2.

もし、S72でNOの判断がなさるとすぐに、第4図のメ
インルーチンのM2の処理に戻る。従って、この場合も、
新しい入力波形のピークが大である場合についてのみ、
新しい波形のピーク値が登録される。
As soon as NO is determined in S72, the process returns to the process of M2 in the main routine of FIG. Therefore, in this case as well,
Only when the new input waveform has a large peak,
A new waveform peak value is registered.

第18図に、その例を示す。この例ではMT=1の状態を
示している。この場合、図のダブリと書いてあるゼロク
ロス時のSTEP4の処理では、S42からS43へ行き、S43では
YESの判断をしてS72へ進む。ここで(an+3)と(an+
2)の大きさが比較され、もし(an+3)が(an+2)
より大であれば、S72でYESの判断をし、AMP(1)に、
(an+3)の値をセットし、もし逆の場合は何等変更処
理をしない。
FIG. 18 shows an example. In this example, a state where MT = 1 is shown. In this case, in the processing of STEP 4 at the time of zero cross which is written as double in the figure, go from S42 to S43, and in S43,
After the determination of YES, the process proceeds to S72. Where (an + 3) and (an +
The sizes of 2) are compared, and if (an + 3) is (an + 2)
If it is larger, a YES determination is made in S72, and AMP (1)
The value of (an + 3) is set, and if not, no change processing is performed.

ところで、上記のダブリ処理の場合、抽出している時
刻データは何等使用しないので、周期情報Tan+3は何
等変わらない。また、当然周期データに基づくピッチ変
更は行われない。
By the way, in the case of the above-mentioned double processing, since the extracted time data is not used at all, the cycle information Tan + 3 does not change at all. Also, the pitch is not changed based on the cycle data.

{本発明の他の実施例} 以上、本実施例においては、この発明を電子ギター
(ギターシンセサイザ)に適用したものであったが、そ
れに限らない。演奏操作を入力波形信号として検出し、
それに基づいてオリジナルの信号とは別の音響信号を発
生するタイプの楽音発生装置で、演奏者が意図的に入力
波形信号のピッチ周波数を変更できるようなタイプのも
のであれば、種々適用可能である。
<< Other Embodiments of the Present Invention >> As described above, in the present embodiment, the present invention is applied to an electronic guitar (guitar synthesizer), but is not limited thereto. The performance operation is detected as an input waveform signal,
Various types of tone generators that generate a sound signal different from the original signal based on the signal can be applied as long as the player can intentionally change the pitch frequency of the input waveform signal. is there.

〔発明の効果〕〔The invention's effect〕

本発明によれば、演奏者による意図的なピッチ周波数
の変更操作に迅速に追従することができると共に、入力
波形信号の強度が弱くなってノイズ等の影響を受けやす
くなった場合に、その影響を効果的に取り除くことがで
きる。
According to the present invention, it is possible to quickly follow an intentional pitch frequency change operation performed by a player, and when the intensity of an input waveform signal becomes weak and becomes susceptible to noise or the like, the influence is reduced. Can be effectively removed.

特に、請求項1記載の発明によれば、現在のピッチ情
報に対応する強度情報が所定強度閾値以下の弱い強度を
示す場合には、ピッチ変更に用いるピッチ情報に対し
て、その変動を許容する所定変動閾値を減少させること
により、ピッチ抽出条件を厳しくして、ノイズの影響を
除去できる。
In particular, according to the first aspect of the invention, when the intensity information corresponding to the current pitch information indicates a weak intensity equal to or less than a predetermined intensity threshold, the fluctuation is allowed for the pitch information used for changing the pitch. By reducing the predetermined fluctuation threshold, it is possible to tighten the pitch extraction condition and remove the influence of noise.

また、請求項第2項の発明によれば、ピッチ変更手段
は前記ピッチ抽出手段で抽出される今回のピッチ情報に
対応する前記強度情報が所定強度閾値以上の強度を示す
ときは、発生されるべき音高情報を今回抽出されたピッ
チ情報に対応してピッチ変更すると共に、当該変更され
たピッチ情報に対応する前記強度情報を前記音高情報発
生手段に出力し、今回のピッチ情報に対応する前記強度
情報が所定強度閾値以下の強度を示すときは、発生され
るべき音高情報を今回抽出されたピッチ情報とそれ以前
に抽出されて変更されたピッチ情報とを平均演算して得
られたピッチ情報に対応してピッチ変更し、当該変更さ
れたピッチ情報に対応する前記強度情報を前記音高情報
発生手段に出力するので、強度情報が所定強度閾値以上
の強度を示している状態であっては、抽出されたピッチ
が変化すれば直ちにピッチ情報を変更して、発音される
べき音高情報を今回抽出されたピッチ情報に対応してピ
ッチ変更することで、演奏者の意図的な音高変更を楽音
に反映させ、更に、この抽出される弦振動が自然減衰し
ていく過程にあっては、この強度情報が所定強度閾値以
下の強度を示すに至ったときは、今回抽出されたピッチ
情報とそれ以前に抽出されて変更されたピッチ情報とを
平均演算して、この平均演算されたピッチ情報に対応し
てピッチ変更するので、楽音の変化は滑らかになり、演
奏者の意図しない音高の発音を防止し、ノイズ等の影響
で音高の変化が急激になるのを防ぐことができる。
According to the second aspect of the present invention, the pitch changing means is generated when the strength information corresponding to the current pitch information extracted by the pitch extracting means indicates a strength not less than a predetermined strength threshold. The pitch information to be changed should be changed according to the pitch information extracted this time, and the intensity information corresponding to the changed pitch information should be output to the pitch information generating means to correspond to the current pitch information. When the intensity information indicates an intensity equal to or less than a predetermined intensity threshold, the pitch information to be generated is obtained by averaging the pitch information extracted this time and the pitch information extracted and changed before that. Since the pitch is changed in accordance with the pitch information and the intensity information corresponding to the changed pitch information is output to the pitch information generating means, the intensity information indicates an intensity not less than a predetermined intensity threshold. When the extracted pitch changes, the pitch information is changed immediately, and the pitch information to be pronounced is changed according to the pitch information extracted this time, so that the player's intention is changed. In the process of causing the extracted pitch vibration to naturally attenuate, when the intensity information indicates an intensity below a predetermined intensity threshold, The average of the extracted pitch information and the previously extracted and changed pitch information is averaged, and the pitch is changed in accordance with the averaged pitch information. Can be prevented from being generated unintentionally, and a sudden change in pitch due to the influence of noise or the like can be prevented.

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

第1図は、本発明による電子楽器の全体構成図、 第2図は、ピッチ抽出ディジタル回路の構成図、 第3図は、割込み処理ルーチンの動作フローチャートを
示した図、 第4図は、メインルーチンの動作フローチャートを示し
た図、 第5図は、STEP0の動作フローチャートを示した図、 第6図は、STEP1の動作フローチャートを示した図、 第7図は、STEP2の動作フローチャートを示した図、 第8図は、STEP3の動作フローチャートを示した図、 第9A図は、STEP4(5)の動作フローチャートを示した
図、 第9B図は、2波3値一致条件処理の第1の実施例の動作
フローチャートを示した図、 第9C図は、ピッチ変更処理の第1の実施例の動作フロー
チャートを示した図、 第9D図は、2波3値一致条件処理の第2の実施例の動作
フローチャートを示した図、 第9E図は、ピッチ変更処理の第2の実施例の動作フロー
チャートを示した図、 第10図は、本実施例の概略動作説明図、 第11図は、本実施例の基本動作説明図、 第12図(a)、(b)は、STEP1におけるダブリ処理の
動作説明図、 第13A図、第13B図、第13C図は、それぞれSTEP2における
ダブリ処理の動作説明図、 第14図は、STEP3におけるノイズ除去処理の動作説明
図、 第15図は、STEP4におけるリラティブオフ処理の動作説
明図、 第16図は、STEP4におけるピッチ周期不適切時の処理動
作説明図、 第17図は、ルートにおけるダブリ処理の動作説明図、 第18図は、ルートにおけるダブリ処理の動作説明図で
ある。 1……ピッチ抽出アナログ回路、 2……ピッチ抽出デジタル回路、 3……中央制御装置(MCP)、 4……アドレスデコーダ、 5……楽音発生部、 201……ピーク検出回路、 202……時定数変換制御回路、 203……波高値取込回路、 204……ゼロクロス時刻取込回路、 501……楽音発生回路、 D1……デジタル出力、
1 is an overall configuration diagram of an electronic musical instrument according to the present invention, FIG. 2 is a configuration diagram of a pitch extraction digital circuit, FIG. 3 is a diagram showing an operation flowchart of an interrupt processing routine, and FIG. FIG. 5 is a diagram showing an operation flowchart of STEP0, FIG. 6 is a diagram showing an operation flowchart of STEP1, and FIG. 7 is a diagram showing an operation flowchart of STEP2. 8 is a diagram showing an operation flowchart of STEP3, FIG. 9A is a diagram showing an operation flowchart of STEP4 (5), and FIG. 9B is a first embodiment of the two-wave ternary coincidence condition processing. FIG. 9C is a diagram showing an operation flowchart of the first embodiment of the pitch changing process, and FIG. 9D is a diagram showing the operation of the second embodiment of the two-wave ternary matching condition process. Diagram showing flowchart, ninth FIG. E is a diagram showing an operation flowchart of a second embodiment of the pitch changing process, FIG. 10 is a schematic operation explanatory diagram of this embodiment, FIG. 11 is a basic operation explanatory diagram of this embodiment, FIG. FIGS. 12 (a) and 12 (b) are explanatory diagrams of the operation of the doubling process in STEP1, FIGS. 13A, 13B, and 13C are explanatory diagrams of the operation of the doubling process in STEP2, and FIG. FIG. 15 is an explanatory diagram of the operation of the noise removal process, FIG. 15 is an explanatory diagram of the operation of the relative off process in STEP4, FIG. 16 is an explanatory diagram of the processing operation when the pitch cycle is inappropriate in STEP4, and FIG. FIG. 18 is an explanatory diagram of the operation of the doubling process in the route. 1 ... Pitch extraction analog circuit, 2 ... Pitch extraction digital circuit, 3 ... Central control unit (MCP), 4 ... Address decoder, 5 ... Tone generator, 201 ... Peak detection circuit, 202 ... Time Constant conversion control circuit, 203… Crest value capture circuit, 204… Zero cross time capture circuit, 501… Tone generation circuit, D1… Digital output,

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力波形信号からピッチ情報を順次抽出す
るピッチ抽出手段と、 該ピッチ抽出手段から前記ピッチ情報が順次抽出される
のに対応して、前記入力波形信号の強度情報を順次抽出
する強度抽出手段と、 前記ピッチ抽出手段で抽出される今回のピッチ情報が、
それ以前に抽出されたピッチ情報に対して、所定変動閾
値で定まる変化幅以下の変化である場合のみ、該今回の
ピッチ情報に応じた音高情報を発生する音高情報発生手
段と、 前記今回のピッチ情報に対応する前記強度情報が、所定
強度閾値以下の強度を示すのに応じて、前記所定変動閾
値を減少させる変動閾値制御手段と、 前記音高情報発生手段で発生される音高情報に基づい
て、楽音の音高を制御する音高制御手段と、 を有することを特徴とする楽音制御装置。
1. A pitch extracting means for sequentially extracting pitch information from an input waveform signal, and in response to the pitch information being sequentially extracted from the pitch extracting means, intensity information of the input waveform signal is sequentially extracted. Strength extraction means, the current pitch information extracted by the pitch extraction means,
Pitch information generating means for generating pitch information according to the current pitch information only when the change is equal to or less than a change width determined by a predetermined fluctuation threshold with respect to the pitch information extracted before that, The threshold information corresponding to the pitch information indicates a threshold value equal to or less than a predetermined threshold value, the threshold value control means for reducing the predetermined threshold value, and the pitch information generated by the pitch information generating means And a pitch control means for controlling the pitch of the musical tone based on the following.
【請求項2】入力波形信号からピッチ情報を順次抽出す
るピッチ抽出手段と、 該ピッチ抽出手段から前記ピッチ情報が順次抽出される
のに対応して、前記入力波形信号の強度情報を順次抽出
する強度抽出手段と、 前記ピッチ抽出手段で抽出されるピッチ情報に対応する
音高情報を発生する音高情報発生手段と、 前記ピッチ抽出手段で抽出される今回のピッチ情報に対
応する前記強度情報が所定強度閾値以上の強度を示すと
きは、発生されるべき音高情報を今回抽出されたピッチ
情報に対応してピッチ変更すると共に、当該変更された
ピッチ情報に対応する前記強度情報を前記音高情報発生
手段に出力し、今回のピッチ情報に対応する前記強度情
報が所定強度閾値以下の強度を示すときは、発生される
べき音高情報を今回抽出されたピッチ情報とそれ以前に
抽出されて変更されたピッチ情報とを平均演算して得ら
れたピッチ情報に対応してピッチ変更し、当該変更され
たピッチ情報に対応する前記強度情報を前記音高情報発
生手段に出力するピッチ変更手段と、 前記音高情報発生手段で発生される音高情報に基づい
て、楽音の音高を制御する音高制御手段と、 を有することを特徴とする楽音制御装置。
2. A pitch extracting means for sequentially extracting pitch information from an input waveform signal, and intensity information of the input waveform signal is sequentially extracted in response to the pitch information being sequentially extracted from the pitch extracting means. Intensity extracting means, pitch information generating means for generating pitch information corresponding to the pitch information extracted by the pitch extracting means, and the intensity information corresponding to the current pitch information extracted by the pitch extracting means is When indicating an intensity equal to or greater than the predetermined intensity threshold, the pitch information to be generated is changed in pitch according to the pitch information extracted this time, and the intensity information corresponding to the changed pitch information is changed to the pitch. The pitch information to be generated is output to the information generating means, and when the intensity information corresponding to the current pitch information indicates an intensity equal to or less than a predetermined intensity threshold, the pitch information to be generated is extracted from the pitch information extracted this time. And a pitch change corresponding to the pitch information obtained by averaging the extracted pitch information and the pitch information extracted and changed before, and changing the intensity information corresponding to the changed pitch information to the pitch information generating means. And a pitch control means for controlling a pitch of a musical tone based on pitch information generated by the pitch information generating means.
JP63327042A 1988-12-23 1988-12-23 Music control device Expired - Lifetime JP2775633B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63327042A JP2775633B2 (en) 1988-12-23 1988-12-23 Music control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63327042A JP2775633B2 (en) 1988-12-23 1988-12-23 Music control device

Publications (2)

Publication Number Publication Date
JPH02171798A JPH02171798A (en) 1990-07-03
JP2775633B2 true JP2775633B2 (en) 1998-07-16

Family

ID=18194660

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63327042A Expired - Lifetime JP2775633B2 (en) 1988-12-23 1988-12-23 Music control device

Country Status (1)

Country Link
JP (1) JP2775633B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2805598B2 (en) * 1995-06-16 1998-09-30 ヤマハ株式会社 Performance position detection method and pitch detection method
JP2007193222A (en) * 2006-01-20 2007-08-02 Casio Comput Co Ltd Melody input device and musical piece retrieval device
JP6387642B2 (en) * 2014-03-20 2018-09-12 カシオ計算機株式会社 Electronic stringed instrument, musical sound generation method and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5551189B2 (en) * 1974-05-20 1980-12-23

Also Published As

Publication number Publication date
JPH02171798A (en) 1990-07-03

Similar Documents

Publication Publication Date Title
JP2615825B2 (en) Electronic string instrument
JP2734521B2 (en) Music control device
US5048391A (en) Electronic musical instrument for generating musical tones on the basis of characteristics of input waveform signal
JP2775633B2 (en) Music control device
US5147970A (en) Electronic musical instrument for generating musical tones on the basis of characteristics of input waveform signal
JP3653854B2 (en) Stringed electronic musical instrument
JP2722584B2 (en) Music control device
US4924746A (en) Input apparatus of electronic device for extracting pitch from input waveform signal
JP2858313B2 (en) Pitch information generation device
JP2615946B2 (en) Music control device
JP2661481B2 (en) Electronic musical instrument
JP2958778B2 (en) Tone generator
JP2611263B2 (en) Sound control device
JP2661066B2 (en) Sound control device
JPH1039863A (en) Automatic accompaniment device
JP2591001B2 (en) Electronic string instrument
JP2661065B2 (en) Sound control device
JP2591000B2 (en) Electronic string instrument
JP6135312B2 (en) Electronic stringed instrument, musical sound control method and program
JP2605773B2 (en) Electronic string instrument
JP2530928Y2 (en) Electronic musical instrument level display
JP6361109B2 (en) Electronic stringed instrument, musical sound control method and program
JP2759149B2 (en) Music control device
JPH09258731A (en) Electronic musical instrument
JP2014153434A (en) Electronic stringed instrument, musical sound generation method and program