JPH01100596A - Input controller for electronic musical instrument - Google Patents

Input controller for electronic musical instrument

Info

Publication number
JPH01100596A
JPH01100596A JP62258669A JP25866987A JPH01100596A JP H01100596 A JPH01100596 A JP H01100596A JP 62258669 A JP62258669 A JP 62258669A JP 25866987 A JP25866987 A JP 25866987A JP H01100596 A JPH01100596 A JP H01100596A
Authority
JP
Japan
Prior art keywords
pitch
pitch data
extracted
time
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.)
Pending
Application number
JP62258669A
Other languages
Japanese (ja)
Inventor
Hitoshi Ando
仁 安藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP62258669A priority Critical patent/JPH01100596A/en
Publication of JPH01100596A publication Critical patent/JPH01100596A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PURPOSE: To easily soften a change in the pitch of a musical sound before and after muting by muting a musical sound by the frequency based upon pitch data extracted before a prescribed period out of stored pitch data at the time of instructing the muting of a generated musical sound. CONSTITUTION: Pitch data are successively extracted and stored, and when muting is detected, the muting is executed by the frequency based upon pitch data extracted before a prescribed period. Since a frequency change at the time of muting is set up to a suitable value, an unconsciously generated frequency change in a musical sound can be suppressed, and when control can be executed in accordance with various performance operation, more desirable performance can be attained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、電子ギターなどの電子楽器の入力制御装置に
係シ、特に、消音時の発生楽音の周波数制御を最適とす
るようにした電子楽器の入力制御装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an input control device for an electronic musical instrument such as an electronic guitar, and more particularly, to an input control device for an electronic musical instrument such as an electronic guitar. The present invention relates to an input control device for a musical instrument.

〔従来の技術〕[Conventional technology]

従来より、自然楽器の演奏操作によって発生する波形信
号からピッチ(基本周波数)を抽出し、電子回路で構成
された音源装置を制御して、人工的に楽音等の音響を得
るようにしたものが種々開発されている。
Traditionally, instruments have been used to extract the pitch (fundamental frequency) from the waveform signal generated by playing a natural musical instrument and control a sound source device composed of an electronic circuit to artificially obtain sounds such as musical tones. Various types have been developed.

この種の電子楽器のひとつとして電子ギターあるいはギ
ターシンセサイザと称されるタイプの電子楽器がある。
One of these types of electronic musical instruments is a type of electronic musical instrument called an electronic guitar or a guitar synthesizer.

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

このような電子楽器の場合、消音の際に抽出されるピッ
チがそれまで抽出していたピッチに比べて大きく変動す
ることがある。これは、弦のフレットから指を放して開
放弦の状態に移行することで消音する場合に生じること
が多く、その場合は、弦の振動の一方の支点が、それま
で操作されていたフレットから、指へ移ることに原因が
ある。
In the case of such electronic musical instruments, the pitch extracted at the time of muting may vary greatly compared to the pitch extracted up to that point. This often occurs when the sound is muted by removing a finger from a fret of a string and transitioning to an open string state, in which case one fulcrum of string vibration is shifted away from the fret that was previously being manipulated. The cause is that it transfers to the fingers.

ところで、弦の振動により生ずる音響(これを生音とい
うことにする)は、減衰がはやくリリース時間が短かい
ため、上述のような周波数変化は聴きとれにくいが、こ
のような生音からピッチを抽出して人工的に楽音を発生
するような場合、特にIJIJ−スの長い音を発生する
と、顕著に現れ、演奏上の大きな妨げとなっている。
By the way, the sound produced by the vibration of strings (we will call this raw sound) decays quickly and has a short release time, so it is difficult to hear the frequency changes mentioned above. However, it is possible to extract pitch from such raw sound. When musical tones are artificially generated, especially when long tones such as IJIJ-s are generated, this problem becomes noticeable and becomes a major hindrance to performance.

更に、ギターの場合特有の奏法、例えばチョーキング(
音高がなめらかに上がる)、ノーンマリングオン、プリ
ングオア(音高が半音単位で上、下する)などによれば
、周波数の変動が大きく、そのような奏法を行った直後
に消音操作を行ったときには、最終の消音操作時の周波
数をもって、消音を行うべきであシ、適切な周波数制御
を行うことが望まれる。
Furthermore, there are playing techniques specific to the guitar, such as bending (
According to methods such as (the pitch rises smoothly), non-maring-on, and pull-or (the pitch rises or falls in semitone steps), the frequency fluctuates greatly, and the mute operation is performed immediately after performing such a playing method. Sometimes, it is necessary to mute the sound using the frequency at the time of the final mute operation, and it is desirable to perform appropriate frequency control.

〔発明の目的〕[Purpose of the invention]

そこで、本発明は、先ず演奏上の大きな妨げである無意
識におこる消音前後の楽音のピッチの変化を比較的簡単
に柔げることの可能な電子楽器の入力制御装置を提供す
ることを目的とする。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide an input control device for an electronic musical instrument that can relatively easily soften the change in pitch of musical tones before and after muting, which occurs unconsciously and is a major hindrance to musical performance. do.

更に、本発明は、各種演奏操作に対しても、演奏者の意
図する消音時の楽音のピッチの制御を可能とする電子楽
器の入力制御装置を提供することを目的とする。
A further object of the present invention is to provide an input control device for an electronic musical instrument that enables the player to control the pitch of a musical tone when muting as intended by the player, even in various performance operations.

〔発明の要点〕[Key points of the invention]

本発明は、上述の目的を達成するためにガされたもので
、まず第1発明は、ピッチデータを順次抽出して記憶し
てゆき、消音が検知されると、所定期間前に抽出したピ
ッチデータに従った周波数にて消音を行うようにするこ
とを要点とする。
The present invention has been developed to achieve the above-mentioned object.First, the pitch data is sequentially extracted and stored, and when muting is detected, the pitch data extracted a predetermined period before is extracted and stored. The key point is to mute the sound at a frequency according to the data.

また、第2発明は、第1発明を更に展開して、演奏操作
にあった消音動作を行うようにしたものである。つまり
、上述したように、例えば電子ギターの場合、チョーキ
ングは既に発音している楽音の音高(基準音高という)
を高くする操作であシ、またハンマリングオンやプリン
グオフは、基準音高に対してクロマチックな、半音単位
の上下動変化であシ、通常の消音操作では、基準音高よ
り下がる音高変化をするもので、それもほとんどが半音
以内であることに着目してなされたものである。
Furthermore, the second invention is a further development of the first invention, in which a muting operation is performed in accordance with the performance operation. In other words, as mentioned above, for example, in the case of an electronic guitar, bending is based on the pitch of the musical note that has already been sounded (referred to as the standard pitch).
In addition, hammer-on and pull-off are chromatic vertical changes in semitone units relative to the standard pitch, and normal muting operations are pitch changes that are lower than the standard pitch. This was done by focusing on the fact that most of these are within a semitone.

具体的には、この第2発明は、消音の際(消音直前)に
抽出したピッチデータにて指定される周波数が、所定期
間前に抽出したピッチデータにて指定される周波数より
も半音内で低層場合忙限シ、第1発明同様、所定期間前
のピッチデータに従った周波数で消音を行うようKし、
それ以外の条件を満足する場合、つまシ、消音の際(消
音直前)に抽出したピッチデータにて指定される周波数
が、所定期間前に抽出したピッチデータにて指定される
周波数より高いときあるいは、半音を越えて低いとき、
消音の際(消音直前)に抽出したピッチデータにて指定
される周波数で消音を行うようにすることをその要点と
する。
Specifically, in the second invention, the frequency specified by the pitch data extracted at the time of muting (immediately before muting) is within a semitone from the frequency specified by the pitch data extracted a predetermined period of time before. When the low-rise building is busy, as in the first invention, the sound is muted at a frequency according to the pitch data of a predetermined period of time before,
If other conditions are satisfied, the frequency specified by the pitch data extracted at the time of muting (immediately before muting) is higher than the frequency specified by the pitch data extracted a predetermined period of time before, or , when it is lower than a semitone,
The key point is to mute the sound at a frequency specified by the pitch data extracted at the time of muting (immediately before muting).

〔実施例〕〔Example〕

以下、この発明の実施例について図面を参照して説明す
るが、ここではこの発明を電子ギターに適用した場合を
例にあげて説明するが、これに限らず他のタイプの電子
楽器であっても同様に適用できる。
Embodiments of the present invention will be described below with reference to the drawings. Here, the case where the present invention is applied to an electronic guitar will be described as an example, but the present invention is not limited to this and can be applied to other types of electronic instruments. can be similarly applied.

第1図は、全体の回路を示すブロック図であシ、ピッチ
抽出アナログ回路PAは、図示しない例えば電子ギター
ボディ上援張設された6つの弦に夫夫設けられ、弦の振
動を電気信号に変換するヘキサピックアップと、このピ
ックアップからの出力からゼロクロス信号と波形信号z
t、wt (i=i〜6)を得るとともK、これらの信
号を時分割のシリアルゼロクロス信号ZCRおよびデジ
タル出力(、時分割波形信号)DIとに変換する変換手
段例えば後述するアナログ−デジタル変換器めとを備え
ている。
FIG. 1 is a block diagram showing the entire circuit. The pitch extraction analog circuit PA is installed on six strings (not shown) that are stretched on the body of an electronic guitar, for example, and converts the vibrations of the strings into electrical signals. A hex pickup that converts into a zero cross signal and a waveform signal z from the output from this pickup.
t, wt (i=i to 6) and converting these signals into a time-division serial zero-cross signal ZCR and a digital output (time-division waveform signal) DI, such as an analog-to-digital converter to be described later. Equipped with converter eyelet.

ピッチ抽出デジタル回路FDは、第2図のようにピーク
検出回路PEDT 、時定数変換制御回路TCC1波高
値取込み回路PVS、ゼロクロス時刻取込回路ZTSか
らなシ、前記ピッチ抽出アナログ回路PAからのシリア
ルゼロクロス信号ZCRとデジタル出力D1とに基づき
最大ピーク点または最小ピーク点を検出し、ぬIaI 
、 MINI (I=1〜6)を発生するとともに1ゼ
ロクロス点通過、厳密には最大ピーク点、最小ピーク点
直後のゼロクロス点通過でインターラブド(割込み)信
号INTをマイコンMCPに出力し、またゼロクロス点
の時刻情報とピーク値情報例えばMAX 、 MIN及
び入力波形信号の瞬時値をそれぞれマイコンMCPに出
力するものである。なお、ピーク検出回路PEDTの内
部には、過去のピーク値を減算しながらホールドする回
路を備えている。
As shown in Fig. 2, the pitch extraction digital circuit FD includes a peak detection circuit PEDT, a time constant conversion control circuit TCC1, a peak value acquisition circuit PVS, a zero cross time acquisition circuit ZTS, and a serial zero cross detection circuit from the pitch extraction analog circuit PA. The maximum peak point or minimum peak point is detected based on the signal ZCR and the digital output D1, and the
, MINI (I=1 to 6) is generated, and at the same time passing one zero cross point, strictly speaking, when passing the zero cross point immediately after the maximum peak point and minimum peak point, an interlaced (interrupt) signal INT is output to the microcomputer MCP, and also at the zero cross point. Point time information, peak value information such as MAX, MIN, and the instantaneous value of the input waveform signal are respectively output to the microcomputer MCP. Note that the peak detection circuit PEDT includes a circuit that holds the past peak value while subtracting it.

そして、このピーク検出回路PEDTのピークホールド
回路の減衰率を変更するのが、時定数変換制御回路TC
Cであシ、波形の例えば1周期の時間経過してもピーク
が検知できないときは、急速に減衰するようにする。具
体的には、初期状態では速やかに波形の振動を検知すべ
く最高音周期時間経過にて、急速減衰し、弦振動が検知
されると倍音を捨わ々いために、当該法の開放弦周期時
間経過にて同様に急速減衰するようにし、そして弦の振
動周期が抽出された後は、その周期にて急速減衰を行な
うようになる。
The time constant conversion control circuit TC changes the attenuation rate of the peak hold circuit of the peak detection circuit PEDT.
If the peak of the waveform cannot be detected even after one cycle of the waveform has elapsed, the waveform is made to attenuate rapidly. Specifically, in the initial state, in order to quickly detect waveform vibration, the maximum sound period decays rapidly as time elapses, and when string vibration is detected, overtones are discarded, so the open string period of the method is Similarly, rapid damping is performed over time, and after the vibration period of the string is extracted, rapid damping is performed at that period.

この時定数変換制御回路TCCに対するかかる周期情報
の設定は、マイコンMCPが行なう。そして、この時定
数変換制御回路TCC内部の各弦独立のカウンタと、こ
の設定された周期情報との一致比較を行ない、周期時間
経過で時定数チェンジ信号をピーク検出回路PEDTへ
送出する。
The setting of the cycle information for the time constant conversion control circuit TCC is performed by the microcomputer MCP. Then, a counter independent of each string in the time constant conversion control circuit TCC is compared with the set cycle information, and a time constant change signal is sent to the peak detection circuit PEDT when the cycle time has elapsed.

また、第2図における波高値取込み回路pvsは、上述
のとおシ時分割的に送出されてくる波形信号(デジタル
出力)DJを、各弦毎の波高値にデマルチプレクス処理
し、ピーク検出回路PEDTからのピーク信号MAX 
、 MINに従って、ピーク値をホールドする。そして
、マイコンMCPがアドレスデコーダDCDを介してア
クセスしてきた弦についての最大ピーク値もしくは最小
ピーク値をマイコンベスヘ出力する。また、この波高値
取込み回路pvsからは、各弦毎の振動の瞬時値も出力
可能になりている。
In addition, the peak value acquisition circuit pvs in FIG. Peak signal MAX from PEDT
, hold the peak value according to MIN. Then, the microcomputer MCP outputs the maximum peak value or minimum peak value of the string accessed via the address decoder DCD to the microcomputer Bethesda. Moreover, the instantaneous value of vibration for each string can also be output from this peak value acquisition circuit pvs.

ゼロクロス時刻取込回路ZTSは、各弦共通のタイムペ
ースカウンタ出力を、各弦のゼロクロス時点(厳密には
最大ピーク点及び最小ピーク点通過直後のゼロクロス時
点)でラッチするようになる。
The zero-crossing time acquisition circuit ZTS latches the time pace counter output common to each string at the zero-crossing point of each string (strictly speaking, the zero-crossing point immediately after passing the maximum peak point and the minimum peak point).

そして、マイコンMCPからの要求により、そのラッチ
した時刻情報をマイコンパスへ送出する。
Then, in response to a request from the microcomputer MCP, the latched time information is sent to the microcomputer path.

また、図のタイミングソエネレータTGからは、第1図
及び第2図に示す各回路の処理動作のためのタイミング
信号を出力する。
Further, the timing generator TG shown in the figure outputs a timing signal for the processing operation of each circuit shown in FIGS. 1 and 2.

マイコンMCPには、メモリ例えばROMおよびRAM
を有するとともに、タイマーTを有し、音源発生装置S
OBに与える為の信号を制御するものである。音源発生
装置SOBは音源SSとデジタル−アナログ変換器D/
Aと、アンプ甚と、スピーカSPとからなシ、マイコン
MCPからのノートオン(発音)、ノートオフ(消音)
、周波数を変える音高指示信号に応じた音高の楽音を放
音するものである。なお、音源SSの入力側とマイコン
MCPのデータバスBUSとの間に、インターフェース
(Musical  Inatrument Digi
tal Interface) MIDIが設けられて
いる。勿論、ギター本体に音源SSを設けるときは、別
のインターフェースを介してもよい。アドレスデコーダ
ーDCDは、マイコンMCPからのアドレス読み出し信
号ARが入力されたとき、弦番号の読込み信号RDI 
、時刻読込み信号RDj(j=1〜6)とぬu 、 M
INのピーク値及びその時点その時点の瞬時値読込み信
号RDAI (I=1〜18)をピッチ抽出デジタル回
路PDに出力する。
The microcomputer MCP has memory such as ROM and RAM.
It also has a timer T, and a sound source generator S.
It controls the signals given to the OB. The sound source generator SOB includes a sound source SS and a digital-to-analog converter D/
Note-on (sounding) and note-off (muting) from A, amplifier, speaker SP, and microcomputer MCP
, which emits a musical tone with a pitch corresponding to a pitch instruction signal that changes frequency. Note that an interface (Musical Inatrument Digi) is connected between the input side of the sound source SS and the data bus BUS of the microcomputer MCP.
tal Interface) MIDI is provided. Of course, when the sound source SS is provided in the guitar body, it may be provided through another interface. When address read signal AR from microcomputer MCP is input, address decoder DCD outputs string number read signal RDI.
, time reading signal RDj (j=1 to 6) and u, M
The peak value of IN and the instantaneous value read signal RDAI (I=1 to 18) at that point in time are output to the pitch extraction digital circuit PD.

以下、マイコンMCPの動作についてフローチャートや
波形を示す図面を参照して説明するが、はじめに図面の
符号について説明する。
The operation of the microcomputer MCP will be described below with reference to flowcharts and drawings showing waveforms, but first, reference numerals in the drawings will be explained.

AD・・・第1図の瞬時値読込み信号RDA 13〜1
8によりビッチ抽出デジタル回路PDの入力波形t−直
接読んだ入力波高値(瞬時値)AMP (0、1) ・
・・正又は負の前回(old )の波高値 AMRL 1・・・振幅レジスタで記憶されているリラ
ティブ(relatlve )オフ(off)のチxツ
クのための前回の振幅値である。ここで、前記リラティ
ブオフとは波高値が急激に減衰してきたことく基づき消
音することで、フレット操作をやめて開放弦へ移ったと
きの消音処理に相当する。
AD...Instantaneous value read signal RDA 13-1 in Figure 1
8, the input waveform t of the bit extraction digital circuit PD - directly read input wave height value (instantaneous value) AMP (0, 1)
. . . Positive or negative old peak value AMRL 1 . . . The previous amplitude value for the relative off tick stored in the amplitude register. Here, the above-mentioned relative off refers to muting the sound based on the sudden attenuation of the peak value, and corresponds to the muting process when the fret operation is stopped and the string is moved to an open string.

AMRL 2・・・振幅レジスタで記憶されている前記
リラティブオフのだめの前々回の振幅値で、これKはA
MRL lの値が入力される・ CHTIM・・・最高音フレット(227レツト)に対
応する周期 CRT I O・・・開放弦フレットに対応する周期C
HTRR・・・時定数変換レジスタで、上述の時定数変
換制御回路TCC(第2図)の内部に設けられている。
AMRL 2...The amplitude value of the relative off stop stored in the amplitude register, this K is A
The value of MRL l is input. CHTIM...Period CRT corresponding to the highest fret (227th ret) O...Period C corresponding to the open string fret
HTRR: Time constant conversion register, provided inside the above-mentioned time constant conversion control circuit TCC (FIG. 2).

DUB・・・波形が続けて同一方向に来たことを示すフ
ラグ FOFR・・・リラティブオフカウンタHNC・・・波
形ナンバーカウンタ MT・・・これからピッチ抽出を行なう側のフラグ(正
=1.負=0) NCHLV・・・ノーチェンジレベル(定数)OFTI
M・・・オフタイム(例えば当該弦の開放弦層期に相当
) OFPT・・・通常オフチエツク開始フラグONF・・
・ノートオンフラグ RIv・・・後述のステップ(5TEP ) 4での処
理ルートの切替を行なうためのフラグ ROFCT・・・リラティブオフのチエツク回数を定め
る定数 5TEP・・・マイコンMCPの70−動作を指定する
レジスタ(1〜5) TF・・・有効となった前回のゼロクロス時刻データ TFN (0、1)・・・正または負のピーク値直後の
前回のゼロクロス時刻データ TFR・・・時刻記憶レジスタ THLIM・・・周波数上限(定数) TLLIM・・・周波数下限(定数) TP(0,1)・・正また負の前回の周期データTRL
AB(0,1)・・・正または負の絶対トリガーレベル
(ノートオンしきい値) TRLRL・・・リラティブオン(再発音開始)のしき
い値 TRLR8・・・共撮除去しきい値 TTLIM・・・トリガー時の周波数下限TTP・・・
前回抽出された周期データTTR・・・周期レジスタ TTU・・・定数(17/32と今回の周期情報11の
積) TTW・・・定数(31/16と今回の周期情報11の
積) VEL・・・速度(ベロシティ−)を定める情報で、発
音開始時の波形の最大ピーク値にて定まる。
DUB: Flag indicating that waveforms have come in the same direction FOFR: Relative off counter HNC: Waveform number counter MT: Flag from which pitch will be extracted from now on (positive = 1, negative = 0) NCHLV...No change level (constant) OFTI
M...Off time (e.g. corresponds to the open string phase of the string) OFPT...Normal off-check start flag ONF...
・Note-on flag RIv...Flag ROFCT for switching the processing route in step (5TEP) 4 described later...Constant 5TEP that determines the number of times the relative off is checked...Specifies the 70-operation of the microcomputer MCP Registers (1 to 5) TF...Previous zero-crossing time data that became valid TFN (0, 1)...Previous zero-crossing time data immediately after the positive or negative peak value TFR...Time storage register THLIM ...Frequency upper limit (constant) TLLIM...Frequency lower limit (constant) TP (0, 1)...Positive or negative previous cycle data TRL
AB(0,1)...Positive or negative absolute trigger level (note-on threshold) TRLRL...Relative-on (re-sounding start) threshold TRLR8...Co-photography removal threshold TTLIM・・Frequency lower limit TTP when triggering...
Previously extracted cycle data TTR...Cycle register TTU...Constant (product of 17/32 and current cycle information 11) TTW...Constant (product of 31/16 and current cycle information 11) VEL・...Information that determines the speed (velocity), determined by the maximum peak value of the waveform at the start of sound generation.

X・・・異常または正常状態を示すフラグb・・・ワー
キングレジスタBに記憶されている今回正負フラグ(正
ピークの次のゼロ点のとき1、負ピークの次のゼロ点の
ときo) C・・・ワーキングレジスタレジスタCに記憶されてい
る今回波高値(ピーク値) e・・・ワーキングレジスタEに記憶されている前前回
波高値(ピーク値) h・・・ワーキングレジスタHに記憶されている前前回
抽出された周期データ t・・・ワーキングレジスタTOに記憶されている今回
のゼロクロス時刻 11・・・ワーキングレジスタTOTOに記憶されてい
る今回の周期情報 ttold・・・最も古くピッチ抽出して得た周期デー
タ′(リングバッファに記憶) ttnew・・・最も新しくピッチ抽出して得た周期デ
ータ(リング・々ツファに記憶) 第3図は、マイコンMCPへインタラブドがかけられた
ときの処理を示すインタラシトルーチンであシ、IIに
おいて、マイコンMCPはアドレスデコーダDCDを介
し、ゼロクロス時刻取込回路ZTSに対し、弦番号読み
込み信号RDIを与えてインタラブドを与えた弦を指定
する弦番号を読み込む。
X: Flag indicating abnormality or normal state b: Current positive/negative flag stored in working register B (1 when the zero point is next to a positive peak, o when the zero point is next to a negative peak) C ...Current wave height value (peak value) stored in working register C e...Previous wave height value (peak value) stored in working register E h...Stored in working register H Previously extracted cycle data t...Current zero cross time 11 stored in the working register TO...Current cycle information stored in the working register TOTO ttold...The oldest pitch extracted Obtained periodic data' (stored in the ring buffer) ttnew...Periodical data obtained by the latest pitch extraction (stored in the ring buffer) Figure 3 shows the processing when an interband is applied to the microcomputer MCP. In the interlace routines II and II, the microcomputer MCP supplies a string number read signal RDI to the zero-crossing time acquisition circuit ZTS via the address decoder DCD to read the string number specifying the string to which interleaved is applied.

そして、その弦番号に対応する時刻情報つまりゼロクロ
ス時刻情報をゼロクロス時刻取込回路ZTSへ時刻読込
み信号RDI〜RD6のいずれか対応するものを与えて
読込む。これをtとする。しかる後、工2において、同
様に波高値取込み回路pvsヘビーり値読込み信号RD
AI (I = 17〜12のうちのいずれか)を与え
て、ピーク値を読取る。これをCとする。
Then, the time information corresponding to the string number, that is, the zero-crossing time information, is read into the zero-crossing time acquisition circuit ZTS by giving one of the corresponding time reading signals RDI to RD6. Let this be t. After that, in Step 2, similarly, the peak value acquisition circuit pvs heavy value reading signal RD is
Give AI (I = any of 17 to 12) and read the peak value. Let this be C.

読(1,9において、当該ピーク値は正、負のいずれか
のピークであるのかを示す情報すを、ゼロクロス時刻取
込回路ZTSより得る。そして、工4にて、このように
して得たt、e、bの値をマイコンMCP内のバッファ
のレジスタTo、C,Bにセットする。このバッファに
は、割込み処理がなされる都度、このような時刻情報、
ピーク値情報、ピークの種類を示す情報がワンセットと
して書込まれていき、メインルーチンで、各弦毎にかか
る情報に対する処理がなされる。
(In steps 1 and 9, information indicating whether the peak value is a positive or negative peak is obtained from the zero cross time acquisition circuit ZTS. Then, in step 4, the information obtained in this way is obtained. Set the values of t, e, and b in the registers To, C, and B of the buffer in the microcomputer MCP.This buffer stores such time information,
Peak value information and information indicating the type of peak are written as a set, and the information is processed for each string in the main routine.

第4図は、メインルーチンを示すフローチャートである
。)母ワーオンすることによF)Mlにおいて、各種レ
ジスタやフラグがイニシャライズされ、レジスタ5TE
PがOとされる。M2で上述したバッファが空かどうか
が判断され、ノー(以下、Nと称す)の場合にはM3に
進み、バッファよりレジスタB。
FIG. 4 is a flowchart showing the main routine. ) By turning on the motherboard, various registers and flags are initialized in F) Ml, and register 5TE is initialized.
P is assumed to be O. In M2, it is determined whether the above-mentioned buffer is empty, and if the answer is NO (hereinafter referred to as N), the process advances to M3, where register B is transferred from the buffer.

C,Toの内容が読まれる。これにより、M4において
、レジスタ5TEPはいくつか判断され、M5では5T
EPO、M 6では5TEPI 、 M 7では5TE
P2 。
The contents of C and To are read. As a result, in M4, register 5TEP is determined several times, and in M5, 5T
EPO, 5TEPI in M6, 5TE in M7
P2.

M8では5TEP3 、 M 9では5TEP4の処理
が順次おこなわれる。
Processing of 5TEP3 is sequentially performed in M8 and processing of 5TEP4 is performed in M9.

M2でバッファが9の場合すなわちイエス(以下、Yと
称する)の場合、MIO〜M16へと順次に進み、ここ
で通常のノートオフのアルゴリズムの処理が行なわれる
。このノートオフのアルゴリズムは、オフ(OFF )
レベル以下の状態が所定のオフタイム時間読いたら、ノ
ートオフするアルゴリズムである。M10ヤ5TEP=
0どうかが判断され、ノー(以下、Nと称する)の場合
には、Mllに進む。MIXでは、その時点の入力波高
値ADが直接読まれる。これは、波高値取込み回路Pv
Sヘピーク値読込み信号RDA 13〜RDA 1 &
のいずれかを与えることで達成できる。そして、この値
ADが、入力波高値AD<オフレベルかどうかが判断さ
れ、Yの場合にはMl2に進む。
If the buffer is 9 in M2, that is, if the answer is YES (hereinafter referred to as Y), the process proceeds sequentially from MIO to M16, where normal note-off algorithm processing is performed. This note-off algorithm is OFF
This is an algorithm that notes off when the state remains below the level for a predetermined off time. M10ya 5TEP=
It is determined whether the number is 0 or not, and if the result is no (hereinafter referred to as N), the process proceeds to Mll. In MIX, the input peak value AD at that point in time is directly read. This is the peak value acquisition circuit Pv
Peak value read signal to S RDA 13 to RDA 1 &
This can be achieved by giving one of the following. Then, it is determined whether this value AD satisfies the input peak value AD<off level, and if Y, the process proceeds to M12.

Ml2では前回の入力波高値AD<オフレベルかどうか
が判断され、Yの場合にはMl3に進み、ここでタイマ
ーTの値≧オフタイムOFTIM (例えば当該弦の開
放弦周期の定数)かどうかが判断される。Yの場合には
、Ml4に進み、レジスタ5TEP K Oが書きこま
れ、Ml5ではノートオンかどうかが判断され、Yの場
合には、Ml6でノートオフ処理され、M2の入側のM
K戻る。Ml2でNの場合にはMl7に進み、マイコン
MCP内部タイマーTをスタートし、M2の入側Mに戻
る。
In Ml2, it is determined whether the previous input wave height value AD<off level, and in the case of Y, the process proceeds to Ml3, where it is determined whether the value of timer T ≥ off time OFTIM (for example, the constant of the open string period of the string). be judged. In the case of Y, the process advances to Ml4, register 5TEP KO is written, and in Ml5 it is determined whether note-on or not. In the case of Y, note-off processing is performed in Ml6, and the M on the input side of M2 is
K Go back. If N in M12, the process advances to M17, starts the microcomputer MCP internal timer T, and returns to the input side M of M2.

Mloでその場合、及びMll、、Ml3.Ml5はN
の場合には、いずれもMl2の入側のMに戻る。
In that case, Mlo, and Mll, , Ml3. Ml5 is N
In both cases, the signal returns to M on the input side of M12.

このように、波形入力のレベルが減衰してきた場合、オ
フレベル以下の入力波高値ADがオフタイムOFTIM
K相蟲する時間続くと、ノートオフの指示を音源SSに
対しマイコンMCPは送出する。
In this way, when the level of the waveform input is attenuated, the input peak value AD below the off level becomes the off time OFTIM.
When the time period continues, the microcomputer MCP sends a note-off instruction to the sound source SS.

なお、ステップM15において、通常の状態ではYの判
断がなされるが、後述するような処理によって、楽音の
発生を指示していない場合でもレジスタ5TEPはO以
外の値をとっていることがあシ、(例えばノイズの入力
による。)そのようなときは、Ml 4 、 Ml 5
の処理後M2へ戻ることで、初期設定がなされることに
なる。
Note that in step M15, a determination of Y is made under normal conditions, but due to the processing described later, register 5TEP may take a value other than O even when generation of a musical tone is not instructed. , (for example, due to noise input). In such a case, Ml 4 , Ml 5
By returning to M2 after processing, initial settings are made.

なお、第4図では、一つの弦についての処理しか示して
いないが、この図に示した如き処理を弦の数に相当する
6回分、多重化してマイコンMCPは実行することにな
る。勿論、プロセッサを複数個設けて、別個独立して同
等の処理を実行してもよい。
Although FIG. 4 only shows the processing for one string, the microcomputer MCP multiplexes and executes the processing shown in this figure six times, which corresponds to the number of strings. Of course, a plurality of processors may be provided to independently execute equivalent processing.

次に、M4にて分岐して対応する処理を行なう各ルーチ
ンの詳細について説明する。
Next, details of each routine that branches at M4 and performs corresponding processing will be explained.

第5図は、第4図のM5として示すステップ0(5TE
PO)のときのフローチャートであシ、S01で絶対ト
リガレベル(ノートオンしきい値)TRLAB(b) 
(今回波高値Cかどうかが判断され、Yの場合には80
2に進み共振除去がチエツクされる。なお、このトリが
一レベルは、正と負との極性のピーク夫々についてのチ
エツクを行なうようになっている。このTRLAB (
0)とTRLAB (1)とは、実験などによって適切
な値とすることになる。理想的なシステムではTRLA
B (0)とTRLAB (1)とは同じでよい。80
2では、共振除去しきい値TRLR8([今回波高値C
−前回波高値AMP (b )]かどうか、すなわち今
回波高値と前回波高値の差が所定値以上か否かが判断さ
れる。
FIG. 5 shows step 0 (5TE) shown as M5 in FIG.
PO), the absolute trigger level (note-on threshold) TRLAB(b) is shown in S01.
(It is judged whether the wave height value is C this time, and if it is Y, it is 80
Proceed to step 2 and check resonance removal. Note that, at one level, this bird checks each of the positive and negative polarity peaks. This TRLAB (
0) and TRLAB (1) are determined to be appropriate values through experiments and the like. In an ideal system, TRLA
B (0) and TRLAB (1) may be the same. 80
2, resonance removal threshold TRLR8 ([this time peak value C
- previous peak value AMP (b)], that is, whether the difference between the current peak value and the previous peak value is greater than or equal to a predetermined value.

一つの弦をピッキングすることによって他の弦が共振を
起こす場合、当該他の弦については、摂動のレベルが徐
々に大きくなシ、その結果前回とのピーク値の変化は微
小なものとなりて、その差は共振除去しきい値TRLR
8を越えることはない。
When picking one string causes other strings to resonate, the level of perturbation for those other strings gradually increases, and as a result, the change in peak value from the previous time becomes small. The difference is the resonance removal threshold TRLR
It never exceeds 8.

ところが、通常のピッキングでは、波形が急激に立上る
(あるいは立ち下がる)ことKなシ、前記ピークの差は
共振除去しきい値TRLR8を越える。
However, in normal picking, the waveform does not rise (or fall) rapidly, and the difference between the peaks exceeds the resonance removal threshold TRLR8.

いま、この802で、Yの場合つまシ共振の場合でない
とみなした場合には、SOJにおいて次の処理が行なわ
れる。すなわち、今回正負フラグbがフラグMTに書込
まれ、レジスタ5TEPに1が書込まれ、さらに今回の
ゼロクロス時刻tが前回のゼロクロス時刻データTFN
(b)として設定される。そして、804では、その他
フラグ類がイニシャライズされ、805に進む。S05
では、今同波高値Cが前回の波高値AMP(b)として
セットされ、しかる後第4図のメインフローへリターン
する。
Now, in this step 802, if it is determined that the case of Y is not a case of thumb resonance, the following processing is performed in the SOJ. That is, the current positive/negative flag b is written to the flag MT, 1 is written to the register 5TEP, and the current zero-crossing time t is the previous zero-crossing time data TFN.
(b). Then, in 804, other flags are initialized, and the process proceeds to 805. S05
Now, the same wave height value C is set as the previous wave height value AMP(b), and then the process returns to the main flow of FIG. 4.

第5図において、Aはりラティプオン(再発音開始)の
エントリであり、後述する5TEP4の70−からこの
806ヘジヤンプしてくる。そして、806では今まで
出力している楽音を一度消去し、再発音開始のためにS
O3へ進行する。この再発音開始のための処理は、通常
の発音開始のときと同様であ)、以下に詳述するとおシ
となる。
In FIG. 5, A is an entry for latipeon (start of re-sounding), and jumps to this 806 from 70- of 5TEP4, which will be described later. Then, in 806, the musical tones that have been output so far are erased, and the S
Proceed to O3. The process for starting the sound again is the same as that for starting the normal sound, and will be explained in detail below.

そして、また801でNの場合と、802でNの場合(
今回波高値C−前回波高値AMP (b)が所定値以上
ない場合)には、S05に進む。従って、発音開始のた
めの処理は進まないことになる。
And again, in the case of N in 801 and in the case of N in 802 (
If the current peak value C-previous peak value AMP (b) is not greater than or equal to the predetermined value, the process proceeds to S05. Therefore, the process for starting sound generation will not proceed.

以上述べた5TEPO(第11図の5TEPO→1の間
)では、フラグMTにBレジスタの内容(b=1)が書
込まれ、レジスタToの内容(1)が前回ゼロクロス時
刻データTFN (1)に書込まれ、レジスタCの波高
値(c)が前回の波高値AMP (1)に書込まれる。
At 5TEPO (between 5TEPO and 1 in Figure 11) described above, the contents of the B register (b = 1) are written to the flag MT, and the contents (1) of the register To are changed to the previous zero-crossing time data TFN (1). The peak value (c) of register C is written to the previous peak value AMP (1).

第6図は第4図にM6として示す5TEPIの70−チ
ャートの詳細を示すものであシ、811では、レジスタ
Bの内容(b)と、フラグMTが不一致かどうかが判断
され、Yの場合には812に進む。
FIG. 6 shows the details of the 70-chart of 5TEPI shown as M6 in FIG. Proceed to 812.

812では、絶対トリがレベル(ノートオンLtiい値
) TRLAB (b) <今回波高値Cかどうかが判
断され、Yの場合には813に進む。812でYの場合
にはレジスタ5TEP K 2がセットされ、814で
レジスタToの内容(1)を前回のゼロクロス時刻デー
タTFN (b)としてセットし、さらにF315で今
回波高値Cを、前回の波高値AMP (b)ヘセットす
る。811において、Nの場合すなわち入力波形信号が
同一方向にきた場合816に進み、今回波高値C〉前回
波高値AMP(b)かどうかが判断され、Yの場合すな
わち今回の波高値Cが前回の波高値AMP (b)より
大の場合には、S14に進む。
In 812, it is determined whether the absolute tri is level (note-on Lti low value) TRLAB (b) <current peak value C, and in the case of Y, the process proceeds to 813. If 812 is Y, register 5TEPK2 is set, 814 sets the contents (1) of register To as the previous zero-crossing time data TFN (b), and further, in F315, the current peak value C is set as the previous wave peak value. High value AMP (b) Set to high value. In 811, if N, that is, the input waveform signals come in the same direction, the process proceeds to 816, where it is determined whether the current wave height value C>the previous wave height value AMP(b), and if Y, that is, the current wave height value C is the same as the previous wave height value. If it is greater than the peak value AMP (b), the process advances to S14.

一方、812におりてNの場合には、S15に進み、こ
れにより波高値のみが更新される。また、F316にお
いて、Nの場合及び、S15の処理の終了時にはメイン
フロー(第4図)ヘリターンするO 以上述べた5TEP1(第11図の5TIDPI→2の
間)では、今回正負7ラグb (=o )とフラグMT
=1が不一致ということで、今回のゼロクロス時刻tを
前回のゼロクロス時刻r〜りTFN (0)としてセッ
トし、さらに今回波高値Cを前回の波高値AMP (0
)として書込む。
On the other hand, in the case of N at 812, the process advances to S15, whereby only the peak value is updated. In addition, in the case of N in F316 and when the processing in S15 ends, return to the main flow (Fig. 4). o) and flag MT
= 1 is a mismatch, so the current zero-crossing time t is set as the previous zero-crossing time r~riTFN (0), and the current peak value C is set as the previous peak value AMP (0).
).

第7図は、第4図にM7として示す5TEP2のフロー
チャートの詳細を示すもので、820において、今回正
負フラグb=フラグMTかどうかすなわち5TEPOの
方向と同一のゼロクロス点の到来かどうかを判断し、Y
の場合には821に進む。
FIG. 7 shows the details of the flowchart of 5TEP2 shown as M7 in FIG. 4. At 820, it is determined whether this time the positive/negative flag b=flag MT, that is, whether the zero cross point has arrived in the same direction as 5TEPO. ,Y
In this case, the process proceeds to 821.

821では、第2図の時定数変換制御回路TCC内のレ
ジスタC)(TRRへ開放弦周期CRT I Oをセッ
トし、822に進む。822では、今回波高値e > 
(7/8)×前回の波高値AMP(b)かどうか、つま
シ波高値が前回と今回fpとで路間−かどうかをチエツ
クし、Yの場合つまり美し一自然減衰の場合に。
In 821, the open string period CRT I O is set in the register C (TRR) in the time constant conversion control circuit TCC in FIG. 2, and the process proceeds to 822. In 822, the current peak value e
Check whether (7/8) x previous wave height value AMP (b) and whether or not the wave height value is between the previous time and this time fp, and in the case of Y, that is, in the case of beautiful and natural attenuation.

は、823に進み、フラグDUBをOにセットし、82
4に進む。824では、周期計算を行ない、今回のゼロ
クロス時刻を一前回のゼロクロス時刻データTFN (
b)を前回周期データT P (b)に入力し、今回の
ゼロクロス時刻tを前回ゼロクロス時刻データTFN 
(b)として入力する。824におけるrp(b)は、
5TEF!3でノートオン(1,5波)の条件として使
用される。また、S24では、レジスタ5TEPが3と
セットされる。更に、今回波高値Cと、間口の波高値A
MP(0)と、前回の波高値AMP(1)の内、最も大
きい値をベロシティVELとして登録する。また、今回
波高値Cを前回の波高値AMP (b)へ書込む。
proceeds to 823, sets flag DUB to O, and 82
Proceed to step 4. In step 824, periodic calculation is performed, and the current zero-crossing time is calculated based on the previous zero-crossing time data TFN (
b) is input into the previous cycle data T P (b), and the current zero cross time t is input into the previous zero cross time data TFN.
Input as (b). rp(b) in 824 is
5 TEF! 3 is used as a note-on condition (waves 1 and 5). Further, in S24, the register 5TEP is set to 3. Furthermore, the current wave height value C and the frontage wave height value A
The largest value between MP(0) and the previous wave height value AMP(1) is registered as the velocity VEL. Also, the current wave height value C is written into the previous wave height value AMP (b).

S2θでNの場合には、825に進み、7ラグDUBす
なわち同一方向の入力波形がきたということを意味する
フラグをIKt、826に進む。
If S2θ is N, the process proceeds to 825, where a flag indicating that a 7-lag DUB, that is, an input waveform in the same direction has arrived, is set as IKt, and the process proceeds to 826.

826では、今回波高値C〉前回の波高値AMP (b
)かどうかが判断され、Yの場合には829に進む。
In 826, current wave height C>previous wave height AMP (b
), and in the case of Y, the process advances to 829.

829では今回波高値Cに前回の波高値AMP (b)
を書替え、レジスタTの内容tに前回のゼロクロス時刻
データTFN(b)が書替えられる。また、822にお
いて、Nの場合には、827に進み、フラグDUB =
 1かどうか、つまシ前回5TEP2を実行したとき、
ダブラたか否かのチエツクを行ない、Yの場合つまシダ
ブッでいれば82Bに進む。
In 829, the current wave height value C is the previous wave height value AMP (b)
is rewritten, and the previous zero-crossing time data TFN(b) is rewritten to the contents t of the register T. Further, in 822, in the case of N, the process advances to 827, and the flag DUB=
1 or not, when I executed 5TEP2 last time,
A check is made to see if it is a double or not, and if the result is Y, if it is a double, proceed to 82B.

82Bでは、フラグDUBをOにする。この場合には8
29に進みメインルーチンにリターンする。
At 82B, the flag DUB is set to O. In this case 8
Step 29 returns to the main routine.

824の処理の後、また826のNのときも、同様にメ
インルーチンへリターン(RET )する。
After the process at 824, and also at N at 826, the process similarly returns to the main routine (RET).

以上述べた5TEP2 (第11図の5TEP2→3の
間)では、今回正負フラグbとしてフラグMT=1が書
替えられ、レジスタCHTRRK Oフレット周期すな
わち開放弦周期CRTIOが書替えられ、またフラグD
UBがOにセットされ、さらにt −TFN (1)→
TP(1)なる周期計算が行なわれ、また今回ゼロクロ
ス時刻tに前回のゼロクロス時刻データTFN(1)が
書き替えられ、今回波高値C5前回波高値AMP (0
) 、前回波高値AMP(1)の内最も大きい値がベロ
シティVELとしてセットされ、更に今回波高値Cとし
て前回波高値AMP (1)がセットされる。
In 5TEP2 (between 5TEP2 and 3 in Figure 11) described above, the flag MT=1 is rewritten as the positive/negative flag b this time, the register CHTRRK O fret period, that is, the open string period CRTIO is rewritten, and the flag D
UB is set to O, and t −TFN (1)→
A cycle calculation called TP(1) is performed, and the previous zero-crossing time data TFN(1) is rewritten at the current zero-crossing time t, and the current peak value C5 is the previous peak value AMP (0
), the largest value among the previous wave height values AMP(1) is set as the velocity VEL, and furthermore, the previous wave height value AMP(1) is set as the current wave height value C.

第11図は、理想的な波形入力があった場合の例である
が、DUB = 1となる場合について一次に説26一 明する。第8図は、そのような場合の5TEP2の動作
を説明するための図であシ、(A)は−波をとばしてピ
ーク検出した場合であシ、入力波形が実線のときは後述
するSTgP3の処理にてノートオンし、入力波形が点
線の時はノートオンしない。これは、826にてYとな
るかNとなるかの違いからである。また、5TEP2か
らなかなかS TEP 3に移行しないのは、820で
b=MTが成立しても、822でc>(7/8 ) X
AMP (b)がNと判断され、これがYとならない間
は、S TEP 2は繰返し実行されるからである。ま
た、(B)は、オクターブ下の倍音を検知した場合であ
シ、この場合には、C〉(7/8 ) XAMP (b
)のチエツク時、Yとなり823を経て824に進み、
5TEP3 K移る。
FIG. 11 shows an example where there is an ideal waveform input, and the case where DUB=1 will be explained first. FIG. 8 is a diagram for explaining the operation of 5TEP2 in such a case. (A) shows the case where peak detection is performed by skipping the - wave, and when the input waveform is a solid line, STgP3 described later The note-on is performed by the process of , and the note-on is not performed when the input waveform is a dotted line. This is due to the difference in whether the result at 826 is Y or N. Also, the reason why it is difficult to move from 5 TEP 2 to STEP 3 is that even if b=MT holds at 820, c > (7/8) X at 822
This is because S TEP 2 is repeatedly executed until AMP (b) is determined to be N and does not become Y. In addition, (B) is the case where overtones below the octave are detected, in this case, C〉(7/8) XAMP (b
), it becomes Y and goes to 824 via 823,
5TEP3 K move.

第9図は、第4図にM8として示す5TEP3のフロー
チャートであシ、S30でフラグMTメ今回正負フラグ
bかどうかが判断され、正常の場合すなわちYのときは
、831に進む。831では、(1/ 8 ) c (
AMP (b)ならXが0、また逆の場合に#′i、X
=1にセットされ、832に進む。832では、今回波
高値Cとして前回の波高値AMP(b)が書替えられる
FIG. 9 is a flowchart of 5TEP3 shown as M8 in FIG. 4. In S30, it is determined whether the flag MT is positive or negative this time, and if it is normal, that is, if it is Y, the process proceeds to 831. In 831, (1/8) c (
If AMP (b), then X is 0, and vice versa, #'i, X
= 1, and the process proceeds to 832. At 832, the previous peak value AMP(b) is rewritten as the current peak value C.

そして833において、5TEP2で得られたVELよ
り今回波高値Cが大であれば、ベロシティVELは今回
波高値Cが入力される。もし逆ならば、このベロシティ
VELは変化しない。次に今回正負フラグbにフラグM
Tが書替えられ、これによりピッチ変更側が逆にされる
。これは、後述する5TEP4からフラグMTの意味が
変り、ピッチ変更側を意味している。そして、834で
[t −TFN (b)→T P (b) )なる周期
計算が行なわれる。また、今回のゼロクロス時刻tとし
て前回のゼロクロス時刻データTFN (b)が書替え
られる。
Then, in 833, if the current peak value C is greater than the VEL obtained in 5TEP2, the current peak value C is input as the velocity VEL. If the opposite is true, this velocity VEL will not change. Next, flag M is set to positive/negative flag B this time.
T is rewritten, thereby reversing the pitch change side. This is because the meaning of the flag MT changes from 5TEP4, which will be described later, and means the pitch change side. Then, in 834, a cycle calculation of [t - TFN (b) -> T P (b)) is performed. Furthermore, the previous zero-crossing time data TFN (b) is rewritten as the current zero-crossing time t.

次に、S35において、X=0かどうかを判断し、Yの
場合には836に進み、周波数上限THLIM <前回
の周期データT P (b)かどうか、つまシビッチ抽
出上限チエツクを行ない、その結果、最高音の周期より
大きな周期をもてば、許容範囲にあるということでYと
なシ、837に進む。
Next, in S35, it is determined whether or not X=0, and in the case of Y, the process proceeds to 836, where the upper limit of frequency extraction THLIM is checked to see if the previous cycle data T P (b), and the result is , if the period is greater than the period of the highest note, it is within the permissible range, and the process goes to 837.

837では、トリガー時の周波数下限TTLIM )前
回の周期データT P (b)かどうか、つまシピッチ
抽出下限チエツクを行ない、最低音の周期より小の周期
をもてば許容範囲にあシ、Yの判断をして83Bに進む
。837のピッチ抽出下限は、後述する5TEP4のピ
ッチ抽出下限とは定数が異なる。
In 837, the lower limit of frequency at trigger time (TTLIM) is checked to see if it is the previous cycle data T P (b), and if the cycle is smaller than the cycle of the lowest note, it is within the permissible range, and Y. Make a decision and proceed to 83B. The pitch extraction lower limit of 837 has a different constant from the pitch extraction lower limit of 5TEP4, which will be described later.

具体的には、周波数上限THLIMは、最高音フレット
の2〜3半音上の音高周期に相当し、トリガー時の周波
数下限TTLIMは、開放弦の開放弦フレットの5半音
下の音高周期に相当するものとする。
Specifically, the upper frequency limit THLIM corresponds to the pitch period 2 to 3 semitones above the highest fret, and the lower frequency limit TTLIM when triggering corresponds to the pitch period 5 semitones below the open string fret. shall be equivalent.

83Bでは、前回の周期データTP(b)を前回抽出さ
れた周期データTTPとしてセットすなわち、ピッチ抽
出側で抽出されたピッチをセーブ(これは後述する5T
EP4で使用される)し、839に進む。S39では、
前回の周期データT P (b) 勾T P (=)か
どうか、すなわち極性の違うゼロクロス点間の周期の略
一致のチエツクである1、5波ピツチ抽出チエツクを行
ない、Yの場合には5301で次のような処理が行なわ
れる。すなわち、前回のゼロクロス時刻データTFN 
(b)として時刻記憶レジスタTFRが書替えられ、ま
た今回のゼロクロス時刻tが前回のゼロクロス時刻デー
タTFとしてセットされ、波形ナンバーカウンターHN
Cをクリアする。このカウンターHNCは後述する5T
EP4にて使用される。レジスタ5TEPは4にセット
され、ノートオンフラグONFは2(発音状態)にセッ
トされ、定数TTUはOすなわち(MIN )にセット
され、定数TTWは最高MAXにセットされる。これら
はいずれも後述する5TEP4にて使用するものである
。また、リラティブオフの為の前回波高値レジスタAM
RLIがクリアされる。そして、最後の8302で前回
周期データTP(b)に対応した音高とベロシティVE
Lに対応した音量でノートオン処理が行なわれる。即ち
、マイコンMCPは音源SSに対し発音開始の指示をす
る。
In 83B, the previous cycle data TP(b) is set as the previously extracted cycle data TTP, that is, the pitch extracted on the pitch extraction side is saved (this will be explained later in 5T).
(used in EP4) and proceed to 839. In S39,
Performs a 1st and 5th wave pitch extraction check, which is a check to see if the slope of the previous period data T P (b) is T P (=), that is, if the periods between zero crossing points with different polarities are approximately the same, and in the case of Y, 5301 The following processing is performed. In other words, the previous zero cross time data TFN
As shown in (b), the time memory register TFR is rewritten, the current zero-crossing time t is set as the previous zero-crossing time data TF, and the waveform number counter HN
Clear C. This counter HNC is 5T, which will be described later.
Used in EP4. The register 5TEP is set to 4, the note-on flag ONF is set to 2 (sounding state), the constant TTU is set to O, that is, (MIN), and the constant TTW is set to the maximum MAX. All of these are used in 5TEP4, which will be described later. Also, the previous wave high value register AM for relative off.
RLI is cleared. Then, in the last step 8302, the pitch and velocity VE corresponding to the previous cycle data TP(b) are
Note-on processing is performed at a volume corresponding to L. That is, the microcomputer MCP instructs the sound source SS to start generating sound.

830において、Nの場合(同一方向のゼロクロス点検
出の場合)は、8303に進み、前回の波高値AMP 
(b) <今回波高値Cかどうかが判断され、Yの場合
は5304に進む。5304では、今回波高値Cが前回
の波高値AMP (b)としてセットされ、ベロシティ
VELまたはレジスタCの値Cの内のいずれか大きい値
がベロシティ■LiCセットされる。8303,835
,836,837,83.9のいずれの場合もNの場合
には、メインルーチンへリターン(RET、)する。
In 830, if N (zero cross point detection in the same direction), the process advances to 8303 and the previous peak value AMP is determined.
(b) <It is determined whether the current wave height value is C, and if Y, the process proceeds to 5304. In 5304, the current wave height value C is set as the previous wave height value AMP (b), and the larger value of the velocity VEL or the value C of the register C is set to the velocity ■LiC. 8303,835
, 836, 837, and 83.9, if the result is N, the process returns to the main routine (RET).

第17図はssiにおいて、X=1すなわち異常となる
場合の具体例を示す図であり、1/8b。
FIG. 17 is a diagram showing a specific example when X=1, that is, abnormality occurs in ssi, and is 1/8b.

くす。のときと、1/8a2くa、のときのジャッジで
はいずれもその条件を満足せず、X=1となる。
Kusu. In the case of 1/8a2×a, neither the judge satisfies the condition, and X=1.

すなわち、第17図の最初の3つの波形のピーク(’o
 r bo + ”1)は、ノイズによるもので、これ
らのノイズの周期を検出して発音開始を指示すると、全
くおかしな音が発生してしまう。そこで、831では、
波高値が大きく変わったことを検知して、X=1とし、
835でNの判断をするようにする。そして、831に
て波形が正常な変化をすることが検知されてから、発音
開始を指示するようにする。
That is, the peaks ('o
r bo + "1) is caused by noise, and if we detect the period of these noises and instruct them to start sounding, a completely strange sound will be generated. Therefore, in 831,
Detecting that the wave height value has changed significantly, set X = 1,
At step 835, a determination of N is made. Then, after a normal change in the waveform is detected at 831, an instruction is given to start sound generation.

第17図の場合TPI;TP(E)の検出がなされたと
きにノートオンとする。
In the case of FIG. 17, note-on is determined when TPI; TP(E) is detected.

以上述べた5TEP3 (第11図(7) 5TEP3
 →4 (7)間)では、MT=1〆b 、 AMP 
(0)←c、 max [VEL 、 c(ノイずれカ
ッ大きい方) ) −+ VEL 、 MT4−b=0
、TP(0)←[t −TFN (o))、TFN (
0)←t%TTP+−TP (0)、TFR4−TFN
 (1)、TF 4− t 、 HNC←0、ONF←
2、TTU←Q (MIN )、TTW 4− MAX
 、 AMRLI←0、ノートオン条件TP (0) 
# TP (1)についての処理がなされる。そして、
適切な波形入力に応答してこの5TEP3において、抽
出されたピッチに従った音高の楽音が発生開始されるこ
とになる。第11図から判明するように、周期検出を開
始してから、1.5周期程度の時間経過で発音指示が音
源SSに対しなされることになる。勿論、諸条件を満足
しなければ、更におくれることは上述したとお)である
5TEP3 mentioned above (Figure 11 (7) 5TEP3
→4 (between (7)), MT=1〆b, AMP
(0)←c, max [VEL, c (larger noise deviation)) -+ VEL, MT4-b=0
, TP(0)←[t −TFN (o)), TFN (
0)←t%TTP+-TP (0), TFR4-TFN
(1), TF4-t, HNC←0, ONF←
2, TTU←Q (MIN), TTW 4-MAX
, AMRLI←0, note-on condition TP (0)
#Processing for TP (1) is performed. and,
In response to an appropriate waveform input, at this 5TEP3, a musical tone having a pitch according to the extracted pitch is started to be generated. As can be seen from FIG. 11, a sound generation instruction is issued to the sound source SS after approximately 1.5 cycles have elapsed since the start of cycle detection. Of course, if the various conditions are not satisfied, it will be delayed even further (as mentioned above).

第10図は、第4図のM9として示す5TEP4のフロ
ーチャートであシ、この場合ピッチ抽出のみを行なうル
ート■、実際にピッチ変更を行なうルート■がある。先
ず、S40,841.S42゜S63〜S68に示すル
ート■について説明する。
FIG. 10 is a flowchart of 5TEP4 shown as M9 in FIG. 4. In this case, there are route (2) in which only pitch extraction is performed and route (2) in which pitch is actually changed. First, S40,841. S42° Route (2) shown in S63 to S68 will be explained.

S40において、波形ナンバーカウンタHNC) 3が
判断され、Yの場合には54JK進む。S41では、リ
ラティブオンしきい値TRLRL < C今回波高値C
−前回の波高値AMP (b) )かどうかが判断が行
なわれ、Nの場合には842に進む、S42では今回正
負7ラグb=フラグMTっまシピッチ変更側かどうかが
判断され、Yの場合には54JK進む。
At S40, the waveform number counter HNC)3 is determined, and in the case of Y, advances by 54JK. In S41, relative-on threshold value TRLRL < C current wave peak value C
- It is determined whether it is the previous wave height value AMP (b)), and in the case of N, the process advances to 842. In S42, it is determined whether this time positive/negative 7 lag b = flag MT is on the pitch change side, and if Y. In that case, proceed 54JK.

ところで、初期状態では、前記波形ナンバーカウンタH
NCは0である(第9図の8301参照)ので、840
ではNの判断をして1342へ進む。
By the way, in the initial state, the waveform number counter H
Since NC is 0 (see 8301 in Figure 9), 840
Then, make a determination of N and proceed to step 1342.

そして、例えば、第11図のような波形入力の場合は、
b=1fMT=0であるから、842から863へ進む
For example, in the case of waveform input as shown in Figure 11,
Since b=1fMT=0, the process proceeds from 842 to 863.

863においては、同じ極性のピークが続けて入力され
てきているか(ダブりであるか)、否かチエツクするた
めに、レジスタRIV=1かどうかが判断され、Yの場
合には868に進み、また、Nの場合(ダブりでない場
合)には864に進み、ここで以下の処理が行なわれる
。すなわち、864では今回波高値Cが前回の波高値A
MP (b)に入力され、リラティブオフ処理のために
前回の振幅値AMRLIが前々回の振幅値AMRL2に
入力される。なお、いまの場合はAMRLIの内容はO
である(STEP3のBso参照)。さらにS64にお
いて、前回の波高値AMP <’i)と今回波高値Cの
うちいずれか大きい値が前回振幅値AMRLIに入力さ
れる。つまシ、周期の中で2つある正、負のピーク値に
ついて大きい値のピーク値が振幅値AMRL1にセット
される。
In 863, in order to check whether peaks of the same polarity are being input consecutively (duplicate), it is determined whether register RIV=1, and in the case of Y, the process proceeds to 868, and , N (if there is no duplicate), the process advances to 864, where the following processing is performed. That is, in 864, the current wave height value C is the previous wave height value A.
MP (b), and the previous amplitude value AMRLI is input to the previous amplitude value AMRL2 for relative off processing. In this case, the contents of AMRLI are O.
(See Bso in STEP 3). Furthermore, in S64, the larger value of the previous peak value AMP<'i) and the current peak value C is input as the previous amplitude value AMRLI. Of the two positive and negative peak values in the period, the larger peak value is set to the amplitude value AMRL1.

そして、865で波形ナンバーカウンタHNC> sか
どうかが判断され、ここで波数ナンバーカウンタ(ピッ
チ変更側でないゼロクロスカウンター)HNC’が+1
され、カウントアツプされる。
Then, in 865, it is determined whether the waveform number counter HNC>s, and here the wavenumber number counter (zero cross counter not on the pitch change side) HNC' increases by +1.
and is counted up.

従って、波形ナンバーカウンタHNCは、上限が9とな
る。そして、865もしくは866の処理の後867へ
進行する。S67では、レジスタRIVを1とし、今回
のゼロクロス時刻から時刻記憶レジスタTFRの内容を
引算して、周期レジスタTTRへ入力する。この周期レ
ジスタTTRは、第11図に示すような周期情報を示す
ようになる。
Therefore, the upper limit of the waveform number counter HNC is 9. After processing 865 or 866, the process advances to 867. In S67, the register RIV is set to 1, the contents of the time storage register TFR are subtracted from the current zero-crossing time, and the result is input to the period register TTR. This period register TTR comes to show period information as shown in FIG.

そして、今回のゼロクロス時刻tは、時刻記憶し〜34
− ジスタTFRヘセーブされ、この後、メインルーチンに
リターン(RET )する。
Then, the current zero-crossing time t is time memorized ~34
- It is saved to the register TFR, and then returns (RET) to the main routine.

863でYの場合は、86&に進み今回波高値C〉前回
の波高値AMP (b)かどうかが判断され、Yの場合
はS69に進む。869では、今回波高値Cに前回の波
高値AMP (b)が書替えられ、870に進む。87
0では今回波高値C〉前回の振幅値AMRLIかどうか
が判断され、Yの場合には871に進み、ここで今回波
高値Cが前回の振幅値AMRL1に入力される。
In the case of Y in 863, the process proceeds to 86&, where it is determined whether the current wave height value C>the previous wave height value AMP (b), and in the case of Y, the process proceeds to S69. In 869, the previous peak value AMP (b) is rewritten to the current peak value C, and the process proceeds to 870. 87
If 0, it is determined whether the current peak value C>the previous amplitude value AMRLI, and in the case of Y, the process advances to 871, where the current peak value C is input as the previous amplitude value AMRL1.

もし、868でNの判断がなされるとすぐにメインルー
チンへリターンする。従って、新しい入力波形のピーク
が大である場合についてのみ、新しい波形の振幅値が登
録される。(その場合は、倍音のピークをひろっていな
いと考えられるので。)また、8711)でNのときと
、871の処理の終了のときには、同様にメインルーチ
ンへリターンする。
If a determination of N is made at 868, the process immediately returns to the main routine. Therefore, the amplitude value of the new input waveform is registered only when the peak of the new input waveform is large. (In that case, it is considered that the peak of the harmonics has not been detected.) Also, when N is determined in 8711) and when the process in 871 is completed, the process similarly returns to the main routine.

以上述べたようにルートのは、第11図の例によれば以
下のような処理がなされる。MT=O)b。
As described above, according to the example of FIG. 11, the following processing is performed for the root. MT=O)b.

RIV = 0、AMP (1)4− c 、AMRL
24− AMRLI 、MRLI4− max (AM
P (0) 、c (のいずれか大きい方)〕、HNC
←(HNC+ 1 ) = 1、RIV、 TTR←(
1−TFR)、TFR−tが処理される。従って、周期
レジスタTTRに前回の同極性の、ゼロクロス点(5T
EP2→3のところ)から今回のゼロクロス点までの時
刻情報の差つまシ、周期情報が求まったことになる。そ
して、メインルーチンへ戻ジ、次のゼロクロスインター
ラゾトを待つ。
RIV = 0, AMP (1) 4-c, AMRL
24- AMRLI, MRLI4- max (AM
P (0), c (whichever is larger)], HNC
←(HNC+1) = 1, RIV, TTR←(
1-TFR), TFR-t is processed. Therefore, the zero crossing point (5T) of the previous same polarity is stored in the period register TTR.
This means that the difference in time information and cycle information from EP2→3) to the current zero crossing point have been found. Then, return to the main routine and wait for the next zero cross interrazoto.

次に、840〜862に示すルート■へ進んだ場合の説
明を行なう。いま、波形ナンバーカウンタHNC= 1
なので(S66参照)、S4θから842へ進む。S4
2では、第11図のような場合、MT=O1b=oなの
でYとなシ、843へ進む。
Next, a description will be given of the case where the process proceeds to route (2) shown at 840-862. Now, waveform number counter HNC = 1
Therefore, the process proceeds to 842 from S4θ (see S66). S4
2, in the case as shown in FIG. 11, MT=O1b=o, so the process goes to 843.

843では、レジスタRIV = 1かどうかが判断さ
れる。既にルート■において、レジスタRIVは1とさ
れている(S62参照)ので、843の判断はいまの場
合Yとなり、S44へ進む。
At 843, it is determined whether register RIV=1. Since the register RIV has already been set to 1 in route (2) (see S62), the determination at 843 is Y in this case, and the process advances to S44.

844では、レジスタ5TEP = 4かどうかが判断
され、Yの場合には845に進む。S45では、今回波
高値c (60H(Hは16進法表現を示す)かどうか
が判断され、いま波高値は大なのでYとなシ、846に
進む、S46では、前々回の振幅値AMRL2−前回の
振幅値AMRLI≦(1/32)X前々回の振幅値AM
RL2かどうかが判断され、Yの場合には847に進み
、リラティブオフカウンタFOFRが0にセットされる
。このリラティブオフの処理については後述する。そし
て、84gでは周期計算がおこなわれる。具体的には(
今回のゼロクロス時刻を一前回のゼロクロス時刻データ
TF)が今回の周期情報11としてレジスタTOTOに
セットされる。そして、S49に進み、849では、今
回の周波数情報11)周波数上限THLIM (発音開
始後の上限)かどうかが判断され、Yの場合には850
に進む。
At 844, it is determined whether register 5TEP=4, and if Y, the process proceeds to 845. In S45, it is determined whether the current wave height value c (60H (H indicates hexadecimal notation)), and since the current wave height value is large, it is determined as Y, and the process proceeds to 846. In S46, the amplitude value AMRL2 of the time before the previous time - the previous time is determined. Amplitude value AMRLI ≦ (1/32)
It is determined whether it is RL2 or not, and if it is Y, the process proceeds to 847, where the relative off counter FOFR is set to 0. This relative-off processing will be described later. Then, in 84g, period calculation is performed. in particular(
The current zero-crossing time and the previous zero-crossing time data TF) are set in the register TOTO as the current cycle information 11. Then, the process advances to S49, and in 849, it is determined whether the current frequency information 11) is the frequency upper limit THLIM (the upper limit after the start of sound generation), and in the case of Y, 850
Proceed to.

849の周波数上限THLIMは、5TEP3の836
で使用したトリガー時(発音開始時)周波数の許容範囲
の上限(従って周期として最小で、最高音フレツトの2
〜3半音上の音高周期に相当する)と同一のものである
The upper frequency limit THLIM of 849 is 836 of 5TEP3
The upper limit of the permissible range of the trigger (starting sound) frequency used in
(equivalent to a pitch period of ~3 semitones).

次に、850では次の処理が行なわれる。すなわち、レ
ジスタRIVをOにし、今回のゼロクロス時刻tが前回
のゼロクロス時刻データTFとして入力され、また前回
の波高値AMP (b)が前々回波高値eに入力され、
さらに今回波高値Cが前回の波高値AMP (b)に入
力される。
Next, at 850, the following processing is performed. That is, the register RIV is set to O, the current zero-crossing time t is input as the previous zero-crossing time data TF, and the previous peak value AMP (b) is input as the previous peak value e.
Further, the current wave height value C is inputted to the previous wave height value AMP (b).

そして、SSOの処理の後851に進み、851では、
周波数下限TLLIM )今回の周期情報11かどうか
が判断され、Yの場合すなわち今回の周期がノートオン
中のピッチ抽出音域下限以下になった場合には852に
進む。
After the SSO processing, the process proceeds to 851, and in 851,
Frequency lower limit TLLIM) It is determined whether the current cycle information is 11, and if Y, that is, if the current cycle is below the lower limit of the pitch extraction range during note-on, the process proceeds to 852.

この場合、周波数下限TLLIMは、例えば、開放弦音
階の1オクターブ下にセットされる。つまシ、5TEP
3の周波数下限TTLIM (S 37参照)に比較し
て、許容範囲を広くしている。このようにすることで、
トレモロアームの操作などによる周波数変更に対応し得
るようになる。
In this case, the lower frequency limit TLLIM is set, for example, one octave below the open string scale. Tsumashi, 5TEP
The allowable range is wider than the frequency lower limit TTLIM (see S37) of No. 3. By doing this,
It becomes possible to respond to frequency changes by operating the tremolo arm, etc.

従って、周波数の上限、下限につbて許容範囲に入る場
合についてのみ852まで進み、そうでない場合は84
9,851よりメインルーチンへリターンする。
Therefore, the process proceeds to 852 only when the upper and lower limits of the frequency are within the permissible range, and if not, 84
9,851 returns to the main routine.

次に、852では周期データTTPが前々回抽出された
周期データhに入力され、また、今回の周期情報11が
前回抽出された周期データTTPに入力される。そして
、853で今回波高値Cがペロシ? 4 VEL Kt
込すれ、S 5 ’に進tr。S 54−’Cは、ノー
チェンジレベルNCHLV > (前々回波高値C−今
回波高値C)かどうかの判断が行なわれ、Yの場合には
855に進む。
Next, at 852, the cycle data TTP is input to the cycle data h extracted two times before, and the current cycle information 11 is input to the cycle data TTP extracted last time. And, at 853, the peak value C this time is Pelosi? 4 VEL Kt
and proceed to S5'. In S54-'C, it is determined whether the no-change level NCHLV>(peak value C of the previous time - peak value C of this time), and in the case of Y, the process proceeds to 855.

すなわち、前回の同極性の波高値(e=AMP (b)
)と今回の波高値Cとが大きく変化している場合は、そ
の差がNCHLVを越えることになシ、そのようなとき
に、抽出された周期情報に基づきピッチ変更を行なうと
、不自然な音高変化を呈することになる可能性が高い。
In other words, the previous wave height value of the same polarity (e=AMP (b)
) and the current wave height value C, the difference will not exceed NCHLV.In such a case, if the pitch is changed based on the extracted period information, an unnatural result will occur. There is a high possibility that the pitch will change.

そこで、S54でNO判断されると、S55以降の処理
をすることなく、メインルーチンへリターンする。
Therefore, if a NO determination is made in S54, the process returns to the main routine without performing the processes from S55 onwards.

次に、S54でYの場合、リラティブオフカウンタFO
FR= 0か否かが判断される。後述するりラティプオ
フ処理を行なっているときは、リラティブオンカウンタ
FOFRは0でなくなっておシ、そのような場合もピッ
チ変更(861を参照)の処理を行なうことなく、85
5でNの判断をしてメインルーチンへリターンする。そ
して、S55にて、Yの判断をしたときは、856.8
57へと順次進む〇 ここで2波3値一致条件が判断される。856では今回
の周期情報ttX2  (l今回の周期情報11−前々
回周期データh1・が判断され、Yの場合には857に
進み、また857では今回の周期情報ttx2  <l
今回の周期情報11−周期レジスタTTRの内容1が判
断され、Yの場合には85Bに進む。
Next, if Y in S54, relative off counter FO
It is determined whether FR=0 or not. When the relative on counter FOFR is not 0, as will be described later, the relative on counter FOFR is no longer 0, and even in such a case, the pitch change (see 861) is not performed, and 85
At step 5, a negative decision is made and the process returns to the main routine. Then, when the judgment is Y in S55, 856.8
Proceed sequentially to step 57. Here, the two-wave three-value matching condition is determined. In 856, the current cycle information ttX2 (l current cycle information 11 - the cycle data h1 before the previous time) is determined, and in the case of Y, the process advances to 857, and in 857, the current cycle information ttx2 <l
The current cycle information 11 - the content 1 of the cycle register TTR is determined, and in the case of Y, the process advances to 85B.

すなわち、856では、第11図の今回の周期情報tt
(s43参照)が、前回の周期データh(=TTP)(
S52参照)の値と略一致するか否かを判断し、857
では、今回の周期情報11の値が、それに重なる周期T
TRとほぼ一致するか否かを判断する。なお、その限界
範囲は、2  xttとして、周期情報に依存してその
値が変わるようになっている。勿論、これは固定の値と
してもよいが、本実施例採用技術の方が良好な結果を得
るどうかが判断され、Yならば859へ進み、ここで今
回の周期情報11(定数Tffかどうがが判断され、Y
ならば860へ進む。なお、858゜S59は急激なピ
ッチ変更を認めないための判断である。
That is, in 856, the current cycle information tt in FIG.
(see s43) is the previous cycle data h (=TTP) (
857).
Then, the value of the current cycle information 11 is the cycle T that overlaps with it.
It is determined whether or not it almost matches TR. Note that the limit range is set to 2 xtt, and the value changes depending on the period information. Of course, this may be a fixed value, but it is determined whether or not the technique adopted in this embodiment yields better results. is determined, Y
If so, proceed to 860. Note that 858°S59 is a judgment for not allowing sudden pitch changes.

つまシ、S58の定数TTUは、5TEP3の8301
でいま0とされ、定数TTWは同様にぬ■の値とされて
おシ、はじめてこのフローを通るときは必ずBss、s
ssでYの判断がなされるが、その後は後述する862
において、定数TTUには、(17/32)tt(略1
オクターブ高音の周期情報)がセットされ、定数TTW
には同様に862にて(31/16)tt (#まはl
オクターブ低音の周期情報)がセットされる。従って、
急激にオクターブアップする(これは、フレットを離し
てミュート操作したときなどに生ずる)ことやオクター
ブダランすること(これは波形のピークをとシ逃したと
きなどに起る)があったときは、ピッチ変更をすると、
不自然となるので、ピッチ変更をしないようにブランチ
するり もし、858,859でYの判断がなされたときは、次
に860へ進む。S60では、レジスタ5TEP = 
4にされたかどうかの判断が行なわれ、その場合には8
61に進む。861では、マイコンMCPから音源SS
ヘピッチ変更(今回の周期情報11に基づく)が行なわ
れ、862に進み、今回の周期情報11に対応して時定
数チェンジをし、また定数TTUが(17/32)X今
回の周期情報11に書替見られ、さらに定数TTWが(
31/16)X今回の周期情報11に書替見られる。
Tsumashi, the constant TTU of S58 is 8301 of 5TEP3
is now set to 0, and the constant TTW is similarly set to the value of ■.When passing through this flow for the first time, Bss, s
A determination of Y is made in ss, but after that, 862 will be described later.
, the constant TTU is (17/32)tt (approximately 1
octave treble period information) is set, and the constant TTW
Similarly, in 862 (31/16) tt (#maha l
octave bass period information) is set. Therefore,
If there is a sudden octave up (this happens when you release a fret to mute) or an octave run (this happens when you miss the peak of the waveform), When you change the pitch,
Since this would be unnatural, a branch may be taken so as not to change the pitch, and when a Y decision is made in steps 858 and 859, the process proceeds to step 860. In S60, register 5TEP =
A judgment is made as to whether it has been set to 4, in which case it is set to 8.
Proceed to step 61. In 861, the sound source SS is sent from the microcomputer MCP.
The pitch is changed (based on the current cycle information 11), and the process proceeds to 862, where the time constant is changed in accordance with the current cycle information 11, and the constant TTU becomes (17/32) x the current cycle information 11. The rewriting is seen, and the constant TTW is also changed (
31/16)X The rewrite can be seen in the current cycle information 11.

つまり、後述するように、リラティブオフの処理がなさ
れたときに限シ、5TEP = 5となるが、そのとき
は、ピッチ変更を行なうことなく時定数チェンジを行な
う。この時定数チェンジの処理とは、第2図の時定数変
換制御回路TCC内部のレジスタに今回の周期情報11
の値に基づくデータをマイコンMCPがセットすること
をいう。これは、既に説明したとおシである。
That is, as will be described later, 5TEP=5 only when relative off processing is performed, but in that case, the time constant is changed without changing the pitch. This time constant change process means that the current period information 11 is stored in the register inside the time constant conversion control circuit TCC in FIG.
This means that the microcomputer MCP sets data based on the value of . This has already been explained.

861のピッチ変更処理の際の詳細フローが第18図に
示されておp8611では、今回のピッチ抽出結果11
(これはTOTOレジスタにセットされている)K従っ
て、音源SSへピッチ変更指示をする。
The detailed flow of the pitch change process in 861 is shown in Figure 18. On page 8611, the current pitch extraction result 11 is shown.
(This is set in the TOTO register)K Therefore, a pitch change instruction is given to the sound source SS.

そして8612へ進み、抽出されたピッチデータ11を
リングバッファの最新データとしてセットする。第19
図はその状態を示しておシ、このリンクバッファはマイ
コンMCP内のレジスタで構成され、k個までの11の
値が古いもの順に記憶される。
The process then proceeds to 8612 and sets the extracted pitch data 11 as the latest data in the ring buffer. 19th
The figure shows the state. This link buffer is made up of registers in the microcomputer MCP, and up to k 11 values are stored in chronological order.

すなわち、いま、す/グパッファに” n+k(ttn
ew) 〜ttn(ttold)までの値が入っている
とき、新たにEjn+に+1が8612にて与えられる
と、最新のピッチデータがjtn+に+1となシ、最古
のピッチデータがjjn+1となる。
In other words, I'm now in the /gpuffer" n+k(ttn
ew) When the value up to ~ttn(ttold) is entered, if +1 is newly given to Ejn+ at 8612, the latest pitch data will be +1 to jtn+, and the oldest pitch data will be jjn+1. .

そして、862の処理の終了でメインルーチンへリター
ンする。従って、以上述べたようにルート■は、第11
図に示す通シ次の処理がなされる。
Then, at the end of the process at 862, the process returns to the main routine. Therefore, as stated above, route ■ is the 11th
As shown in the figure, the following processing is performed.

すなわち、)INC= 1、MT=0=b、RIV=l
That is, )INC=1, MT=0=b, RIV=l
.

pOFR4−0,tt←(t −TF )、Rff4−
0.TF4−tle 4−AMP (0) 、 AMP
 (0)+e 、 h4−TTP、 TTP4−tt 
、 VEL 4− cであり、さらに、■TTP # 
TTR# tt。
pOFR4-0, tt←(t-TF), Rff4-
0. TF4-tle 4-AMP (0), AMP
(0)+e, h4-TTP, TTP4-tt
, VEL 4-c, and ■TTP #
TTR# tt.

■TTU (tt (TTW 、■AMP (0) −
c (NCHLV (03条件の満足で、11に従って
ピッチ変更を行なう。
■TTU (tt (TTW, ■AMP (0) −
c (NCHLV (03 conditions are satisfied, the pitch is changed according to 11.

しかる後、TTU ←(17/32 ) X tt、 
TTW←(31/16)Xttがなされる。
After that, TTU ←(17/32) X tt,
TTW←(31/16)Xtt is performed.

従って、ルート■にて、実際の音源Ssに対するピッチ
変更が行なわれ、続くゼロクロスインタラシトでルート
■の処理、同様に、続くゼロクロスインタラブドで、ル
ート■の処理が行なわれる。
Therefore, the pitch of the actual sound source Ss is changed in the route (2), the process of the root (2) is performed in the following zero-cross intersect, and similarly, the process of the root (2) is performed in the next zero-cross interlude.

このようにして、ルート■では、単に周期を抽出(S6
7を参照)し、ルート■では実際のピッチ変更(861
参照)、時定数チェンジ処理(S62参照)が行なわれ
ることになる。
In this way, in route ■, the period is simply extracted (S6
7), and the actual pitch change (see 861) in route ■.
(see S62) and time constant change processing (see S62).

−lオ、5TEP4におけるS4θにおいて、ルート■
の866で波形ナンノぐ−カウンタI(NCが3を越え
るように、カウントアツプされた後は、Yの判断がなさ
れ、次に841へ行き、リラティブオンの条件を検出す
る。これは、c−AMP (b) )TRLRLであシ
、前回の振幅値AMRL1に比べて今回の振幅値がしき
い値TRLRLを越えて増大したとき、つまシ、これは
弦操作後に同じ弦を再度ピッキングしたとき(トレモロ
奏法などKよる)にこのようなことがおき、この場合は
841でリラティブオンの処理をすべくS41から87
8へ進み、時定数変換制御回路TCCの時定数チェンジ
レジスタCHTRRへ最高音フレット(例えば22フレ
ツト)の周期CHTIMをセットする。しかる後、第5
図のS06へ進み、当該発音中の楽音をノートオフした
後、再発音開始する。
-lO, in S4θ in 5TEP4, root ■
After the waveform counter I (NC) is counted up to exceed 3 at 866, a determination of Y is made, and the process then goes to 841 to detect a relative on condition. AMP (b)) When the current amplitude value increases by more than the threshold value TRLRL compared to the previous amplitude value AMRL1, this occurs when the same string is picked again after the string operation ( (depending on K, such as tremolo playing), in this case, in order to process the relative on at 841, steps S41 to 87 are performed.
8, the cycle CHTIM of the highest fret (for example, the 22nd fret) is set in the time constant change register CHTRR of the time constant conversion control circuit TCC. After that, the fifth
Proceeding to S06 in the figure, after note-off of the musical tone being sounded, the sounding starts again.

通常の演奏操作によれば、840,841 。According to normal performance operation, 840,841.

842へ進み、上述したルートのもしくはルート■へ進
む。
Proceed to 842 and proceed to the above-mentioned route or route ■.

次に第12図、第13図を参照して、リラティブオフ処
理を説明する。つま如、フレット操作している状態から
、開放弦状態へ移行すると、波形の振幅レベルは急激に
落ちてきて、前々回の波高値AMRL2と前回の波高値
AMRL1との差が(1/32)AMRL2を越えるよ
うになると、846から874へ進む。そして、リラテ
ィブオフカウンタFOFRが定数ROFCTを越えるま
でカウントアツプするように874から875へ進む。
Next, relative off processing will be explained with reference to FIGS. 12 and 13. When the state of fret operation changes to the open string state, the amplitude level of the waveform drops rapidly, and the difference between the previous wave height value AMRL2 and the previous wave height value AMRL1 becomes (1/32) AMRL2. When the value exceeds the value, the process proceeds from 846 to 874. Then, the process proceeds from 874 to 875 so that the relative off counter FOFR counts up until it exceeds the constant ROFCT.

このとき、S75からS48へ行きS49〜855の処
理を行なうが、FOFR= Oでないので、リラティブ
オフ処理に入る直前ではピッチ変更をおこなうことなく
メインルーチンへ戻る。
At this time, the process goes from S75 to S48 and processes from S49 to S855 are performed, but since FOFR=O is not established, the process returns to the main routine without changing the pitch immediately before entering the relative off process.

そして、S74でYと判断すると、っ−t、b第13図
の例では、FOFRの値が3となったとき(ROFCT
は2である)、874から875へいく。
Then, if it is determined to be Y in S74, -t, b In the example of Fig. 13, when the value of FOFR becomes 3 (ROFCT
is 2), go from 874 to 875.

ただし、S46のジャッジでYの判断が一度でもあると
、846から847へ進み、FOFRをリセットするよ
うになる。従って、ROFCTで指定される回数だけ続
けて846の条件を満足しなければ、リラティブオフの
処理はなされない。なお、ROFCTO値は、音高が高
い弦について大きな値としておけば、略一定の時間経過
で、いずれの弦についてもリラティブオフ処理ができる
However, if the judgment in S46 is Y even once, the process proceeds from 846 to 847 and the FOFR is reset. Therefore, unless the condition 846 is satisfied the number of times specified by ROFCT, relative off processing is not performed. Note that if the ROFCTO value is set to a large value for strings with high pitches, relative off processing can be performed for any string after a substantially constant period of time has elapsed.

そして、874から876へ行くと、リラティブオフカ
ウンタFOFRをリセットし、レジスタ5TEPを5と
し、877へ進んで音源SSに対しノートオフを指示す
る。この5TEPが5の状態では、ピッチ抽出処理をS
TgP4の時と同様に実行するが、860から861を
介することなくS62へ進むので、音源SSに対しては
、ピッチ変更はされない。ただし、862において抽出
した周期に従って時定数チェンジ処理を行なう。
Then, when the process goes from 874 to 876, the relative off counter FOFR is reset, the register 5TEP is set to 5, and the process goes to 877, where a note-off instruction is given to the sound source SS. When this 5TEP is 5, the pitch extraction process is
The process is executed in the same manner as in TgP4, but the process proceeds to S62 without going through steps 860 and 861, so no pitch change is made to the sound source SS. However, the time constant change process is performed according to the period extracted at 862.

そして、5TEPが5の状態では、リラティブオンの処
理を受付けるが(841,878)、それ以外の場合で
は、第4図のメインフローの中で、振動レベルが減少し
てきたことが検知されることによj5Mノ4で5TEP
が0となシ、初期状態にもどる。
When 5TEP is 5, the relative-on process is accepted (841, 878), but in other cases, it is detected that the vibration level has decreased in the main flow of Fig. 4. Yoj5Mno4 5TEP
When becomes 0, it returns to the initial state.

なお、846で使用するAMRLI 、 AMRL2は
S64で作られておシ、1周期の中でレベルが大な方の
ピーク(最大ピークと最小ピークとの一方)が、この値
とされ、第13図の例では、最大ピークILkが最小ピ
ークbk−1より必ず大である場合であって・”n+1
とan+2 r an+2と’n+5 * an+5と
an+4の差がいずれも所定値を越えるようになってい
る。
Note that AMRLI and AMRL2 used in the 846 are created in the S64, and the peak with the higher level in one cycle (one of the maximum peak and the minimum peak) is set to this value, as shown in Fig. 13. In the example, the maximum peak ILk is always larger than the minimum peak bk-1, and ``n+1
and an+2 r an+2 and 'n+5 * The differences between an+5 and an+4 are all set to exceed a predetermined value.

また、このときルート■の処理において、最小ピークb
n+1.bn+2.bn+3が極端に減少してきている
ので、854でNの判断が成されて、メインルーチンへ
リターンし、ピッチ変更処理はなされない。
In addition, at this time, in the process of route ■, the minimum peak b
n+1. bn+2. Since bn+3 has decreased extremely, a determination of N is made at 854, the process returns to the main routine, and no pitch change processing is performed.

第20図は、上述した5TEP4の877の詳細を示し
ておシ、第19図に示すリングバッフ丁のなかの最も古
い、つま、9に個前のピッチデータに従って、8711
において音源SSに対しピッチ変更処理を行い、しかる
後5772において、音源SSに対しノートオフ指令を
行っている。
FIG. 20 shows the details of 877 of 5TEP4 mentioned above, and 8711 according to the pitch data of the oldest one of the ring buffs shown in FIG.
At step 5772, a pitch change process is performed on the sound source SS, and then at step 5772, a note-off command is issued to the sound source SS.

従って、ノートオフ直前に、その時点で検出されている
周波数で周波数変更がなされて、その後そのピッチデー
タに従って楽音が消音してしまうと、極めて不自然な感
じとなるが、このように、すこし前のピッチデータjt
oldに従って周波数制御がなされるようにすると、無
意識におこる消音前後のピッチの変化を比較的簡単に柔
らげることができ−る。
Therefore, if the frequency is changed at the frequency detected at that point just before note-off, and then the musical tone is muted according to the pitch data, it will feel extremely unnatural. pitch data jt
If the frequency is controlled according to "old", it is possible to relatively easily soften the pitch change that occurs unconsciously before and after muting.

次に、ピッチ抽出しているなかで、オクターブ関係にあ
る倍音、つまシオクターブ高い音やオクターブ低い音が
続けて検出されたときの処理について説明する。
Next, we will explain the process to be performed when overtones in an octave relationship, such as a tone higher in octave or a tone lower in octave, are successively detected during pitch extraction.

既に説明したように、85Bでは11がTTUを越えな
かったとき、つまシ、前回抽出した周期の17732倍
した値TTUより小になりたとき、876へ進む。つま
シ、オクターブ高い音が抽出されたときは、指定して・
いたフレットから指を離してミュート操作をした場合と
みなし、オクターブ高い音を出力することなく、85B
からS’16へ行き、リラティブオフ時同様876.8
77の処理によって当該音の発音を停止する。
As already explained, in 85B, when 11 does not exceed TTU, or when it becomes smaller than TTU, which is 17732 times the previously extracted cycle, the process advances to 876. When an octave higher note is extracted, specify
85B without outputting an octave higher note.
Go to S'16, 876.8 like when relative off.
The process in step 77 stops the production of the sound.

また、S59では、11がTTWを越えなかったとき、
つまシ前回抽出した周期の31716倍した値TTWよ
υ大となったとき、860へ進むことなく、メインルー
チンへリターンする。
Also, in S59, when 11 does not exceed TTW,
When the value TTW, which is 31716 times the previously extracted period, becomes greater than υ, the process returns to the main routine without proceeding to 860.

この状態は第14図に示されている。通常ノートオフ近
辺の非常に波形が小さい場合、他の一ツキングによって
ヘキサピックアップのクロストオークやがデイの共振に
よって波形が乗ってくる。
This state is shown in FIG. Normally, when the waveform near note-off is very small, the waveform will be superimposed by the resonance of the cross-oak or day of the hex pickup due to other pickups.

すると、例えば、第14図のような入力波形となシ、1
オクターブ下の入力波形が続けて検出されてしまうこと
がある。
Then, for example, the input waveform as shown in FIG.
Input waveforms an octave lower may be detected continuously.

このような場合、同等処理を施さないと、急にオクター
ブ下の音を出力してしまい、極めて不自然となる。その
ために、S5’l、856でTan+2″″=”n+5
   bn+2が検出されても・Ta n + 5 >
 T a n+1#T X(31/16)となるので、ピッチ変更することなく
、S59からメインルーチンへリターンする。
In such a case, if equivalent processing is not applied, the sound will suddenly be output an octave lower, resulting in an extremely unnatural sound. Therefore, in S5'l, 856 Tan+2""="n+5
Even if bn+2 is detected, Ta n + 5 >
Since T a n+1#T X (31/16), the process returns to the main routine from S59 without changing the pitch.

次に、ダブリの波形が抽出される場合つまり、同じ極性
のゼロクロス点が続けて到来する場合について説明する
。第15図は、MT=1の場合の例を示しておシ、基本
波周期と倍音成分の周期が非整数倍の関係にあるので、
倍音の位相がずれて行き、同じ極性のゼロクロスを検出
をしてしまうことにな9、そのために誤ったピッチ変更
をしないようにしないといけない。
Next, a case where a double waveform is extracted, that is, a case where zero-crossing points of the same polarity arrive one after another will be explained. FIG. 15 shows an example when MT=1. Since the fundamental wave period and the period of the overtone component are in a non-integer multiple relationship,
The phase of the overtones will shift, and zero crossings of the same polarity will be detected9, so you must be careful not to change the pitch incorrectly.

そこで、図のダブりと畜いであるゼロクロス時の5TE
P4 (7)処理では、S42から843へ行き、84
3ではYの判断をして872へ行く。ここで、(輻+3
)と(an+□)の大きさが比較され、もしく’n+3
)が(”n+2)より大であれば、S72でYの判断を
し、AMP(])に、  (an+5)の値をセットし
、もし逆の場合は同等変更処理をしない。
Therefore, 5TE at zero cross, which is the double slaughter in the diagram.
In the P4 (7) process, go to 843 from S42, and go to 84
At 3, make a Y decision and go to 872. Here, (radius +3
) and (an+□) are compared, or 'n+3
) is greater than ("n+2), a determination of Y is made in S72, and the value of (an+5) is set in AMP(]), and if the opposite is the case, no equivalent change processing is performed.

ところで、このダブリの場合抽出している時刻データは
同等使用しないので、周期情報”n+5は何等変わらな
い。また、当然周期データに基づくピッチ変更は行なわ
れない。
By the way, in the case of this double, the extracted time data is not used equally, so the cycle information "n+5" does not change at all. Also, naturally, the pitch is not changed based on the cycle data.

同様に、第16図は波形のダブリの場合の例で、MT=
Oの状態を示している。このときも、図中に/プリと示
しているところで、ダブリの状態が生じている。このと
きは、842から863へ行き、Yの判断をして868
へ行く。86Bでは、いまの場合(’n+2)と(an
+3)との比較をして、(’n+4)が(’n+2)よ
)大なときに限1)1369へ行き、贋(1)を着替え
る。この場合は、更に前回の振幅値AMRLIと今回の
振幅情報(波高値C)の比較を870で行なって、もし
Yならば871へ進み、今回の振幅情報Cを前回の振幅
値AMRL1ヘセットする。、 このようにして、倍音の影響で、波形がダブったときに
本、856,857を満足しない限シピッチ変更処理は
なされないことになる。
Similarly, FIG. 16 shows an example of waveform duplication, where MT=
The state of O is shown. Also at this time, a double state occurs at the location indicated by /Pri in the figure. In this case, go from 842 to 863, make a Y decision, and go to 868.
go to In 86B, in the present case ('n+2) and (an
+3), and if ('n+4) is larger than ('n+2), then 1) Go to 1369 and change the fake (1). In this case, the previous amplitude value AMRLI and the current amplitude information (peak value C) are further compared at 870, and if Y, the process advances to 871 and the current amplitude information C is set to the previous amplitude value AMRL1. In this way, when the waveform is duplicated due to the influence of overtones, the pitch change process will not be performed unless the equations 856 and 857 are satisfied.

以上説明したように、本実施例によれば、電子ギターで
、消音時に周波数変更を生じてしまうということがなく
なシ、ギターの半音のもつエンベロープとは別のIJ 
IJ−ス部が高いエンベロープの楽音を生成しても、無
意識のうちに周波数変更がなされて、不自然な演奏音が
生じるといったことはなくなる。
As explained above, according to this embodiment, it is possible to eliminate the frequency change that occurs when muting the electronic guitar, and to use an IJ that is different from the envelope of the semitone of the guitar.
Even if the IJ bass section generates a musical tone with a high envelope, the frequency will not be changed unconsciously and an unnatural performance sound will be produced.

次に、第21図を参照して、第10図の5TEP4のs
yyの処理の他の実施例について説明する。
Next, referring to FIG. 21, s of 5TEP4 in FIG.
Another example of processing yy will be described.

まず5773において、抽出されている11の値(84
B)をttnewとし、第19図に示すに個前の周期を
に、taldとして、ttold > ttnew ’
! *はtjiew −Ho1d≧半音のジャッジをし
、Nの判断をしたら、5774にゅきttoldにて音
源ssへピッチ変更指令をし、しかる後5775へゆく
。また5273でYのときは直接5775へ進む。そし
て5775においてノートオフ処理をする。
First, in 5773, the extracted 11 values (84
B) is ttnew, the period shown in Fig. 19 is ttold, and ttold >ttnew'.
! * judges that tjiew −Ho1d≧halftone, and if the judgment is N, it issues a pitch change command to the sound source ss at 5774 Nyukittold, and then goes to 5775. If the answer is Y in 5273, proceed directly to 5775. Then, in 5775, note-off processing is performed.

その結果、ノートオフ検出時に、一番古いピッチデータ
と一番新しいピッチデータとを比較して、音程が上がっ
た場合(ハンマリングオン操作がなされたとみなす。)
または、半音以上音程が下がった場合(シリングオフ操
作がなされたとみなも)はそのまま一番新しいピッチデ
ータに従いノートオフし、そうでない場合(通常の開放
弦消音がなされたとみなす。)は、一番古いピッチデー
タに従ってノートオフするようになシ、その結果、演奏
者の意図する自然な消、音を行うようにすることが可能
となる。
As a result, when note-off is detected, the oldest pitch data and the newest pitch data are compared, and if the pitch rises (it is assumed that a hammer-on operation has been performed).
Alternatively, if the pitch drops by more than a semitone (it is considered that a shilling-off operation has been performed), note-off is performed according to the newest pitch data; otherwise (it is considered that normal open string muting has been performed), note-off is performed according to the latest pitch data. The note-off is performed according to the pitch data, and as a result, it is possible to produce the natural sound intended by the performer.

もし、第2実施例のような改良にょらな、ければ、ギタ
ー特有の上述したチョーキング、ハンマリングオン、ブ
リングオフの操作の直後に消音をした場合に、音高かも
とにもどってしまう(最も古いピッチデータにて消音す
るから)が、このようなことは完全に防止できる。
If there were no improvement as in the second embodiment, if the sound is muted immediately after the above-mentioned bending, hammer-on, and bring-off operations unique to guitars, the pitch will return to its original value ( (The oldest pitch data is used to mute the sound), but this kind of thing can be completely prevented.

このようK、ノートオフ直前にピッチの変動がはげしい
各種弦楽器において本発明を適用すれば良好な効果をあ
げることができる。
If the present invention is applied to various stringed instruments such as these, in which the pitch fluctuates rapidly just before note-off, good effects can be achieved.

なお、上記実施例においては、最大ピーク点。In addition, in the above example, the maximum peak point.

最小ピーク点の次のゼロクロス点毎の間隔から周期抽出
を行うようにしたが、その他の方式、例えば最大ピーク
点間や最小ピーク点間の時間間隔から周期抽出を行って
もよい。また、それにあわせて、回路構成は種々変更し
得る。
Although the period is extracted from the interval between each zero cross point following the minimum peak point, other methods may be used, for example, the period may be extracted from the time interval between the maximum peak points or between the minimum peak points. Further, the circuit configuration can be variously changed accordingly.

また、上記実施例においては、本発明を電子ギター(ギ
ターシンセサイザ)に適用したものであったが、それに
限らない。ピッチ抽出を行って、オリジナルの信号とは
別の音響信号を発生するタイプ楽器であれば種々適用可
能である。
Further, in the above embodiment, the present invention is applied to an electronic guitar (guitar synthesizer), but the present invention is not limited thereto. Various types of musical instruments can be applied as long as the pitch is extracted and an acoustic signal different from the original signal is generated.

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

以上詳述した如く、消音時の周波数変化を適切なものと
したから、無意識のうちに生じる楽音の周波数変化がお
さえられ、また、消音直前でなされる種々の演奏操作に
あわせた制御も可能としたときは、より好ましい演奏が
行えるという効果を奏する。
As detailed above, since the frequency change during muting is made appropriate, it is possible to suppress the frequency change of musical tones that occurs unconsciously, and it is also possible to control according to various performance operations performed immediately before muting. When this happens, the effect is that a more favorable performance can be performed.

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

第1図は本発明による電子楽器の入力制御装置の全体の
構成を示すブロック図、第2図は第1図のピッチ抽出デ
ジタル回路の一例を示すブロック図、第3図は第2図の
マイコンの割込み処理ルーチンを示すフローチャート、
第4図は第2図のマイコンのメイン処理ルーチンを示す
フローチャート、第5図〜第7図および第9図、第10
図はいずれも第2図のマイコンの各ステップの動作を説
明するだめのフローチャート、第8図、第11図〜第1
7図はいずれも各ステップの動作を説明するためのタイ
ミングチャート、第18図、第20図は第10図のフロ
ーチャートの要部のフローチャートを示す図、第19図
はリングバッファの内容の変化を示す図、第21図は他
の実施例の要部のフローチャートを示す図である。 PA・・・ピッチ抽出アナログ回路、PD・・・ピッチ
抽出デジタル回路、MCP・・・マイコン、SS・・・
′音源、PEDT・・・ピーク検出回路、ZTS・・・
ゼロクロス時刻取込回路、TCC・・・時定数変換制御
回路、pvs・・・波高値取込み回路。 出願人代理人  弁理士 鈴 江 武 彦↓ FIET 第 5 図 第 6 ツj (S61n群劇) 第(9図 (577畜ν1(ン 第21図 ノートオフ丸理り 4色0欠ン巴賛」
FIG. 1 is a block diagram showing the overall configuration of an input control device for an electronic musical instrument according to the present invention, FIG. 2 is a block diagram showing an example of the pitch extraction digital circuit shown in FIG. 1, and FIG. 3 is a block diagram showing the microcomputer shown in FIG. 2. a flowchart showing the interrupt handling routine of
Figure 4 is a flowchart showing the main processing routine of the microcomputer in Figure 2, Figures 5 to 7, Figures 9 and 10.
The figures are all flowcharts that explain the operation of each step of the microcomputer in Figure 2, Figures 8 and 11 to 1.
Figure 7 is a timing chart for explaining the operation of each step, Figures 18 and 20 are flowcharts showing the main parts of the flowchart in Figure 10, and Figure 19 is a diagram showing changes in the contents of the ring buffer. FIG. 21 is a diagram showing a flowchart of the main part of another embodiment. PA...Pitch extraction analog circuit, PD...Pitch extraction digital circuit, MCP...Microcomputer, SS...
'Sound source, PEDT...Peak detection circuit, ZTS...
Zero cross time acquisition circuit, TCC...time constant conversion control circuit, pvs...peak value acquisition circuit. Applicant's representative Patent attorney Takehiko Suzue ↓ FIET Figure 5 Figure 6 Tsuj (S61n group drama) Figure 9 (577 animals ν1 (Figure 21 Notes off, 4 colors, 0 missing)

Claims (4)

【特許請求の範囲】[Claims] (1)入力波形信号からピッチ抽出手段によりピッチデ
ータを抽出して、該ピッチデータに基づく周波数を有す
る楽音を楽音発生手段から発生するようにした電子楽器
において、前記入力波形信号から順次前記ピッチ抽出手
段により抽出される前記ピッチデータを記憶してゆく記
憶手段と、前記入力波形信号のレベル変動に応じて前記
楽音発生手段に対し、それまで発生している楽音の消音
を指示する際、前記記憶手段に記憶されている前記ピッ
チデータのなかで、所定期間前に抽出したピッチデータ
に従った周波数にて消音するように指示する制御手段と
、を具備したことを特徴とする電子楽器の入力制御装置
(1) In an electronic musical instrument in which pitch data is extracted by a pitch extraction means from an input waveform signal, and a musical tone having a frequency based on the pitch data is generated from a musical sound generation means, the pitch is extracted sequentially from the input waveform signal. storage means for storing the pitch data extracted by the means; and storage means for storing the pitch data extracted by the means; An input control for an electronic musical instrument, characterized in that the control means instructs to mute the sound at a frequency according to pitch data extracted a predetermined period of time out of the pitch data stored in the means. Device.
(2)前記記憶手段は、前記ピッチ抽出手段より抽出さ
れる前記ピッチデータを所定個数分だけ順番に記憶でき
るエリアを有し、前記制御手段は前記楽音発生手段に対
し楽音の消音を指示する際、前記記憶手段に記憶されて
いる最も古く抽出されたピッチデータに従った周波数に
て消音を行わせるようにしたことを特徴とする特許請求
の範囲第1項記載の電子楽器の入力制御装置。
(2) The storage means has an area capable of sequentially storing a predetermined number of the pitch data extracted by the pitch extraction means, and when the control means instructs the musical tone generation means to mute the musical tone, 2. The input control device for an electronic musical instrument according to claim 1, wherein muting is performed at a frequency according to the oldest extracted pitch data stored in the storage means.
(3)入力波形信号からピッチ抽出手段によりピッチデ
ータを抽出して、該ピッチデータに基づく周波数を有す
る楽音を楽音発生手段から発生するようにした電子楽器
において、前記入力波形信号から順次前記ピッチ抽出手
段により抽出される前記ピッチデータを記憶してゆく記
憶手段と、前記入力波形信号のレベル変動に応じて前記
楽音発生手段に対し、それまで発生している楽音の消音
を指示する際、前記記憶手段に記憶されている前記ピッ
チデータのなかで、所定期間前に抽出したピッチデータ
と、消音すべきことを検出したときに抽出したピッチデ
ータとの比較を行ない、前記消音すべきことを検知した
ときに抽出したピッチデータにて指定される周波数が前
記所定期間前に抽出したピッチデータにて指定される周
波数よりも半音内で低い場合、前記所定期間前に抽出し
たピッチデータに従った周波数にて消音するように指示
し、且つ、前記消音すべきことを検知したときに抽出し
たピッチデータにて指定される周波数が前記所定期間前
に抽出したピッチデータにて指定される周波数よりも高
いときあるいは半音を越えて低いときには、前記消音す
べきことを検知したときに抽出したピッチデータにて指
定される周波数にて消音するように指示する制御手段と
、を具備したことを特徴とする電子楽器の入力制御装置
(3) In an electronic musical instrument in which pitch data is extracted by a pitch extraction means from an input waveform signal, and a musical tone having a frequency based on the pitch data is generated from a musical sound generation means, the pitch is extracted sequentially from the input waveform signal. storage means for storing the pitch data extracted by the means; and storage means for storing the pitch data extracted by the means; Among the pitch data stored in the means, the pitch data extracted a predetermined period ago is compared with the pitch data extracted when the need to mute is detected, and the need to mute is detected. If the frequency specified by the pitch data extracted is within a semitone lower than the frequency specified by the pitch data extracted before the predetermined period, then the frequency specified by the pitch data extracted before the predetermined period is changed to the frequency specified by the pitch data extracted before the predetermined period. when the user instructs the user to mute the sound, and the frequency specified by the pitch data extracted when the need to mute is detected is higher than the frequency specified by the pitch data extracted before the predetermined period. Alternatively, the electronic musical instrument is characterized by comprising a control means for instructing to mute the sound at a frequency specified by the pitch data extracted when the need for muting is detected when the sound is lower than a semitone. input control device.
(4)前記記憶手段は、前記ピッチ抽出手段より抽出さ
れる前記ピッチデータを所定個数分だけ順番に記憶でき
るエリアを有し、前記制御手段は前記所定期間前に抽出
したピッチデータに従った周波数にて消音することを前
記楽音発生手段に対し指示する際、前記記憶手段に記憶
されている最も古く抽出されたピッチデータに従った周
波数にて消音を行わせるようにしたことを特徴とする特
許請求の範囲第3項記載の電子楽器の入力制御装置。
(4) The storage means has an area capable of sequentially storing a predetermined number of the pitch data extracted by the pitch extraction means, and the control means controls the frequency according to the pitch data extracted before the predetermined period. A patent characterized in that when instructing the musical sound generation means to mute the sound at a frequency according to the oldest extracted pitch data stored in the storage means. An input control device for an electronic musical instrument according to claim 3.
JP62258669A 1987-10-14 1987-10-14 Input controller for electronic musical instrument Pending JPH01100596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62258669A JPH01100596A (en) 1987-10-14 1987-10-14 Input controller for electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62258669A JPH01100596A (en) 1987-10-14 1987-10-14 Input controller for electronic musical instrument

Publications (1)

Publication Number Publication Date
JPH01100596A true JPH01100596A (en) 1989-04-18

Family

ID=17323454

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62258669A Pending JPH01100596A (en) 1987-10-14 1987-10-14 Input controller for electronic musical instrument

Country Status (1)

Country Link
JP (1) JPH01100596A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7470851B2 (en) 2003-12-26 2008-12-30 Roland Corporation Electronic stringed instrument, system, and method with note height control
JP2009183798A (en) * 2009-05-29 2009-08-20 Namco Bandai Games Inc Computer readable record medium
JP2020154333A (en) * 2016-03-25 2020-09-24 カシオ計算機株式会社 Musical sound controller, electric musical instrument, method of controlling musical sound controller, and program for musical sound controller

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60158493A (en) * 1984-01-27 1985-08-19 カシオ計算機株式会社 Error remover
JPS6153797B2 (en) * 1980-07-31 1986-11-19 Fujitsu Ltd

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6153797B2 (en) * 1980-07-31 1986-11-19 Fujitsu Ltd
JPS60158493A (en) * 1984-01-27 1985-08-19 カシオ計算機株式会社 Error remover

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7470851B2 (en) 2003-12-26 2008-12-30 Roland Corporation Electronic stringed instrument, system, and method with note height control
JP2009183798A (en) * 2009-05-29 2009-08-20 Namco Bandai Games Inc Computer readable record medium
JP2020154333A (en) * 2016-03-25 2020-09-24 カシオ計算機株式会社 Musical sound controller, electric musical instrument, method of controlling musical sound controller, and program for musical sound controller

Similar Documents

Publication Publication Date Title
JP2615825B2 (en) Electronic string instrument
US5014589A (en) Control apparatus for electronic musical instrument for generating musical tone having tone pitch corresponding to input waveform signal
US5710387A (en) Method for recognition of the start of a note in the case of percussion or plucked musical instruments
US5048391A (en) Electronic musical instrument for generating musical tones on the basis of characteristics of input waveform signal
JP3653854B2 (en) Stringed electronic musical instrument
JPH01100596A (en) Input controller for electronic musical instrument
US4924746A (en) Input apparatus of electronic device for extracting pitch from input waveform signal
US5147970A (en) Electronic musical instrument for generating musical tones on the basis of characteristics of input waveform signal
JP2611263B2 (en) Sound control device
JP2661065B2 (en) Sound control device
JP2661066B2 (en) Sound control device
JP2722584B2 (en) Music control device
JP2775633B2 (en) Music control device
JP2605773B2 (en) Electronic string instrument
JP2661481B2 (en) Electronic musical instrument
JP6135312B2 (en) Electronic stringed instrument, musical sound control method and program
JP2858313B2 (en) Pitch information generation device
JP2958778B2 (en) Tone generator
JP2615946B2 (en) Music control device
JP2591000B2 (en) Electronic string instrument
JP2591001B2 (en) Electronic string instrument
JPH01100597A (en) Electronic musical instrument
Watson The computer analysis of polyphonic music
JP2530928Y2 (en) Electronic musical instrument level display
JPH01100594A (en) Input controller for electronic musical instrument