JP2591001B2 - Electronic string instrument - Google Patents

Electronic string instrument

Info

Publication number
JP2591001B2
JP2591001B2 JP62336412A JP33641287A JP2591001B2 JP 2591001 B2 JP2591001 B2 JP 2591001B2 JP 62336412 A JP62336412 A JP 62336412A JP 33641287 A JP33641287 A JP 33641287A JP 2591001 B2 JP2591001 B2 JP 2591001B2
Authority
JP
Japan
Prior art keywords
pitch
amplitude
string
peak value
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
JP62336412A
Other languages
Japanese (ja)
Other versions
JPH01177084A (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.)
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 JP62336412A priority Critical patent/JP2591001B2/en
Publication of JPH01177084A publication Critical patent/JPH01177084A/en
Application granted granted Critical
Publication of JP2591001B2 publication Critical patent/JP2591001B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、電子ギターなどの電子弦楽器に係り、特
に入力波形信号のレベルが急激に減衰したことを検知し
て当該楽音をオフ(リラテイブオフ)することを可能と
する電子弦楽器に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic stringed instrument such as an electronic guitar, and more particularly, to detecting that the level of an input waveform signal has abruptly attenuated and turning off the musical tone (relative off). The present invention relates to an electronic stringed musical instrument that can perform

〔従来の技術〕[Conventional technology]

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

この種の電子楽器として電子ギターあるいはギターシ
ンセサイザといわれるものがあり、このような楽器にお
いて上述のリラテイブオフの機能を備えたものを、本特
許出願人は既に提案している(特願昭62−76453号、特
願昭62−258673号など。) さて、このリラテイブオフの処理は、フレツト操作し
ていた指を離すことによつて、音源装置に消音指示(ミ
ユート)を行うもので、入力波形信号のレベルが急激に
減衰変化したことを検知して、かかる指示を実行するこ
とになる。
As this kind of electronic musical instrument, there is an electronic guitar or a guitar synthesizer, and the present applicant has already proposed such an musical instrument having the above-described relaive-off function (Japanese Patent Application No. 62-76453). No., Japanese Patent Application No. 62-258673, etc.) In this relative-off process, the sound source device is instructed to mute the sound by releasing the finger on which the fret operation is performed. Such an instruction is executed by detecting that the level has rapidly changed in attenuation.

しかるに、先の提案によればピツチ抽出に基づき検出
される音高が如何なるものであつても、同じ条件で上記
リラテイブオフ処理を行つており、特に緩やかレベルの
減衰をもたらす場合、具体的には弦長の中央を指で押え
た状態(つまり開放弦音高の1オクターブ上の音高の指
定状態)から指を離したときは、振動がとまりにくく、
他の位置に比べて、上述の減衰変化の検出が困難となつ
て、演奏者の意図するオフ指示ができなくなるという問
題が生ずる。
However, according to the above proposal, regardless of the pitch detected based on the pitch extraction, the above-described relativ-off processing is performed under the same conditions. When the finger is released from the state in which the center of the long is pressed with the finger (that is, the pitch specified one octave above the open string pitch), the vibration is hard to stop,
As compared with other positions, it becomes more difficult to detect the above-mentioned attenuation change, and there arises a problem that the player cannot give an off instruction intended.

仮に、このような緩やかな減衰をも検知して、発音停
止するようにした場合は、グリツサンドやスラーの演奏
操作を行つたときでも、リラテイブオフとみなされて、
ノートオフしてしまうという問題が生ずることになる。
If such a gradual decay is also detected and sound is stopped, even when performing a grit sand or slur performance operation, it is regarded as a relative off,
The problem of note-off will occur.

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

この発明は、前記事情に鑑みてなされたもので弦振動
が長く続く開放弦音高の1オクターブ上の音高でミユー
ト操作をしたときでも、確実に消音指示が音源手段に対
して行えるようにした電子弦楽器を提出することを目的
とする。
The present invention has been made in view of the above circumstances, and is capable of surely instructing the sound source means to mute the sound even when a mute operation is performed at a pitch one octave higher than the open string pitch in which string vibration continues for a long time. The purpose is to submit electronic stringed instruments.

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

すなわち、この発明は上記目的を達成するために、弦
振動の振幅を検出する振幅検出手段と、前記弦振動のピ
ッチを検出するピッチ検出手段と、前記ピッチ検出手段
が検出したピッチに対応する音高の楽音の発生を指示す
る楽音発生指示手段と、前記ピッチ検出手段が検出する
ピッチが、開放弦の1オクターブ上の音高に略一致する
ピッチか否かを判定する判定手段と、前記楽音発生指示
手段の指示による楽音発生中に、前記判定手段が振動中
の弦のピッチが開放弦の1オクターブ上の音高に略一致
するピッチであると判定した場合、前記振幅検出手段が
検出する前記振幅の減衰率が第1の所定値以上になる
と、前記発生中の楽音の消音を指示すると共に、前記判
定手段が振動中の弦のピッチが開放弦の1オクターブ上
の音高に略一致するピッチでないと判定した場合、前記
振幅検出手段が検出する前記振幅の減衰率が第1の所定
値より大きい第2の所定値以上になると、前記発生中の
楽音の消音を指示する消音指示手段とを有するようにし
たことを要点とするものである。
That is, in order to achieve the above object, the present invention provides an amplitude detecting means for detecting an amplitude of a string vibration, a pitch detecting means for detecting a pitch of the string vibration, and a sound corresponding to the pitch detected by the pitch detecting means. Tone generating means for instructing generation of a high tone, determining means for determining whether or not the pitch detected by the pitch detecting means is substantially equal to a pitch one octave above the open string; and If the determining means determines that the pitch of the vibrating string is substantially equal to the pitch one octave higher than the open string during the generation of the musical tone by the instruction of the generating instruction means, the amplitude detecting means detects the pitch. When the amplitude decay rate is equal to or greater than a first predetermined value, the sounding tone being generated is instructed to be muted, and the pitch of the vibrating string substantially matches the pitch one octave above the open string. Pi And when the attenuation rate of the amplitude detected by the amplitude detection means is equal to or greater than a second predetermined value greater than a first predetermined value, the sound generation instructing means for instructing the sound generation to be silenced. The point is to have.

〔実施例〕〔Example〕

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

第1図は、全体の回路を示すブロツク図であり、ピツ
チ抽出アナログ回路PAは、図示しない例えば電子ギター
ボデイ上に張設された6つの弦に夫々設けられ、弦の振
動を電気信号に変換するヘキサピツクアツプと、このピ
ツクアツプからの出力からゼロクロス信号と波形信号Z
i、Wi(i=1〜6)を得るとともに、これらの信号を
時分割のシリアルゼロクロス信号ZCRおよびデジタル出
力(時分割波形信号)D1とに変換する変換手段例えば後
述するアナログ−デジタル変換器A/Dとを備えている。
FIG. 1 is a block diagram showing the entire circuit. A pitch extracting analog circuit PA is provided on each of six strings stretched on, for example, an electronic guitar body (not shown), and converts the vibration of the strings into an electric signal. And a zero-cross signal and a waveform signal Z from the output from this pickup.
i, Wi (i = 1 to 6) and conversion means for converting these signals into a time-division serial zero-cross signal ZCR and a digital output (time-division waveform signal) D1, for example, an analog-digital converter A described later / D.

ピツチ抽出デジタル回路PDは、本実施例において振幅
検出手段及びピッチ検出手段を構成するものであって、
第2図のようにピーク検出回路PEDT、時定数変換制御回
路TCC、波高値取込み回路PVS、ゼロクロス時刻取込回路
ZTSからなり、前記ピツチ抽出アナログ回路PAからのシ
リアルゼロクロス信号ZCRとデジタル出力D1とに基づき
最大ピーク点または最小ピーク点を検出し、MAXI、MINI
(I=1〜6)を発生するとともに、ゼロクロス点通
過、厳密には最大ピーク点、最小ピーク点直後のゼロク
ロス点通過でインターラプト(割込み)信号INTをマイ
コンMCPに出力し、またゼロクロス点の時刻情報とピー
ク値情報例えばMAX、MIN及び入力波形信号の瞬時値をそ
れぞれマイコンMCPに出力するものである。なお、ピー
ク検出回路PEDTの内部には、過去のピーク値を減算しな
がらホールドする回路を備えている。
The pitch extraction digital circuit PD constitutes amplitude detection means and pitch detection means in the present embodiment,
As shown in Fig. 2, peak detection circuit PEDT, time constant conversion control circuit TCC, peak value acquisition circuit PVS, zero cross time acquisition circuit
ZTS, the maximum peak point or the minimum peak point is detected based on the serial zero cross signal ZCR from the pitch extraction analog circuit PA and the digital output D1, and MAXI, MINI
(I = 1 to 6), and outputs an interrupt (interrupt) signal INT to the microcomputer MCP at the passage of the zero cross point, more precisely, at the zero cross point immediately after the maximum peak point and the minimum peak point. It outputs time information and peak value information, for example, MAX and MIN, and instantaneous values of input waveform signals to the microcomputer MCP. Note that a circuit is provided inside the peak detection circuit PEDT for holding while subtracting a past peak value.

そして、このピーク検出回路PEDTのピークホールド回
路の減衰率を変更するのが、時定数変換制御回路TCCで
あり、波形の例えば1周期の時間経過してもピークが検
知できないときは、急速に減衰するようにする。具体的
には、初期状態では速やかに波形の振動を検知すべく最
高音周期時間経過にて、急速減衰し、弦振動が検知され
ると倍音を拾わないために、当該弦の開放弦周期時間経
過にて同様に急速減衰するようにし、そして弦の振動周
期が抽出された後は、その周期にて急速減衰を行なうよ
うになる。
The time constant conversion control circuit TCC changes the decay rate of the peak hold circuit of the peak detection circuit PEDT. When a peak cannot be detected even after a lapse of, for example, one cycle of the waveform, the decay rate is rapidly reduced. To do it. Specifically, in the initial state, the waveform rapidly attenuates after the maximum sound period elapses in order to quickly detect the vibration of the waveform, and does not pick up harmonics when the string vibration is detected. Similarly, rapid decay is performed over time, and after the vibration period of the string is extracted, rapid decay 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, each string-independent counter in the time constant conversion control circuit TCC is compared with the set period information, and the time constant change signal is sent to the peak detection circuit PEDT after the period time elapses.

また、第2図における波高値取込み回路PVSは、上述
のとおり時分割的に送出されてくる波形信号(デジタル
出力)D1を、各弦毎の波高値にデマルチプレクス処理
し、ピーク検出回路PEDTからのピーク信号MAXI、MINI
(I=1〜6)に従つて、ピーク値をホールドする。そ
して、マイコンMCPがアドレスデコーダDCDを介してアク
セスしてきた弦についての最大ピーク値もしくは最小ピ
ーク値をマイコンバスへ出力する。また、この波高値取
込み回路PVSからは、各弦毎の振動の瞬時値も出力可能
になつている。
The peak value capturing circuit PVS in FIG. 2 performs a demultiplexing process on the waveform signal (digital output) D1 transmitted in a time-division manner as described above into a peak value for each string, and a peak detection circuit PEDT MAXI, MINI peak signals from
The peak value is held in accordance with (I = 1 to 6). Then, the microcomputer MCP outputs the maximum peak value or the minimum peak value of the string accessed through the address decoder DCD to the microcomputer bus. The peak value capturing circuit PVS can also output the instantaneous value of the vibration of each string.

ゼロクロス時刻取込回路ZTSは、各弦共通のタイムベ
ースカウンタ出力を、各弦のゼロクロス時点(厳密には
最大ピーク点及び最小ピーク点通過直後のゼロクロス時
点)でラツチするようになる。そして、マイコンMCPか
らの要求により、そのラツチした時刻情報をマイコンバ
スへ送出する。
The zero cross time acquisition circuit ZTS latches the output of the time base counter common to each string at the zero cross point of each string (strictly speaking, the zero cross point immediately after passing the maximum peak point and the minimum peak point). Then, in response to a request from the microcomputer MCP, the latched time information is transmitted to the microcomputer bus.

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

マイコンMCPには、メモリ例えばROMおよびRAMを有す
るとともに、タイマーTを有し、音源発生装置SOBに与
える為の信号を制御するものである。音源発生装置SOB
は音源SSとデジタル−アナログ変換器D/Aと、アンプAMP
と、スピーカSPとからなり、マイコンMCPからのノート
オン(発音)、ノートオフ(消音)、周波数を変える音
高指示信号に応じた音高の楽音を放音するものである。
なお、音源SSの入力側とマイコンMCPのデータバスBUSと
の間に、インターフエース(Musical Instrument Digit
al Interface)MIDIが設けられている。勿論、ギター本
体に音源SSを設けるときは、別のインターフエースを介
してもよい。アドレスデコーダーDCDは、マイコンMCPか
らのアドレス読み出し信号ARが入力されたとき、弦番号
の読込み信号RDI、時刻読込み信号RDj(j=1〜6)と
MAX、MINのピーク値及びその時点その時点の瞬時値読込
み信号RDAI(I=1〜18)をピツチ抽出デジタル回路PD
に出力する。
The microcomputer MCP has a memory, for example, a ROM and a RAM, and also has a timer T, and controls a signal to be supplied to the sound source generator SOB. Sound source generator SOB
Is sound source SS, digital-analog converter D / A, and amplifier AMP
And a speaker SP, and emits a musical tone having a pitch corresponding to a pitch instruction signal for changing the frequency from note-on (sound generation) to note-off (silence) from the microcomputer MCP.
Note that an interface (Musical Instrument Digit) is provided between the input side of the sound source SS and the data bus BUS of the microcomputer MCP.
al Interface) MIDI is provided. Of course, when the sound source SS is provided on the guitar main body, another interface may be used. When an address read signal AR from the microcomputer MCP is input, the address decoder DCD outputs a string number read signal RDI and a time read signal RDj (j = 1 to 6).
The peak value of MAX and MIN and the instantaneous value read signal RDAI (I = 1 to 18) at that time are pitch-extracted digital circuit PD
Output to

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

AD…第1図の瞬時値読込み信号RDA13〜18によりピツチ
抽出デジタル回路PDの入力波形を直接読んだ入力波高値
(瞬時値) AMP(0、1)…正又は負の前回(old)の波高値 AMRL1…振幅レジスタで記憶されているリラテイブ(rel
ative)オフ(off)のチエツクのための前回の振幅値で
ある。ここで、前記リラテイブオフとは波高値が急激に
減衰してきたことに基づき消音することで、フレツト操
作をやめて開放弦へ移つたときの消音処理に相当する。
AD: input peak value (instantaneous value) directly reading the input waveform of the pitch extraction digital circuit PD by the instantaneous value read signals RDA13 to RDA18 in FIG. 1 AMP (0, 1): positive or negative previous (old) wave High value AMRL1 ... Relative (rel) stored in the amplitude register
ative) The previous amplitude value for the off check. Here, the "relative off" corresponds 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…振幅レジスタで記憶されている前記リラテイブ
オフのための前々回の振幅値で、これにはAMRLIの値が
入力される。
AMRL2... The amplitude value of the last two times for the re-laive-off stored in the amplitude register, to which the value of AMRLI is input.

ANE…リラテイブオフのジヤツジのための定数1/40又は1
/20を記憶する。
ANE… Constant 1/40 or 1 for relative off-jazz
Remember / 20.

CHTIM…最高音フレツト(22フレツト)に対応する周期 CHTIO…開放弦フレツトに対応する周期 CHTRR…時定数変換レジスタで、上述の時定数変換制御
回路TCC(第2図)の内部に設けられている。
CHTIM: a cycle corresponding to the highest tone fret (22 fret) CHTIO: a cycle corresponding to the open string fret CHTRR: a time constant conversion register provided in the time constant conversion control circuit TCC (FIG. 2). .

DUB…波形が続けて同一方向に来たことを示すフラグ FOFR…リラテイブオフカウンタ HFOP……開放弦の1オクターブ上の音階に相当する周期
を示す定数 HNC…波形ナンバーカウンタ MT…これからピツチ抽出を行なう側のフラグ(正=1、
負=0) NCHLV…ノーチエンジレベル(定数) OFTIM…オフタイム(例えば当該弦の開放弦周期に相
当) OFPT…通常オフチエツク開始フラグ ONF…ノートオンフラグ RIV…後述のステツプ(STEP)4での処理ルートの切替
を行なうためのフラグ ROFCT…リラテイブオフのチエツク回数を定める定数 STEP…マイコンMCPのフロー動作を指定するレジスタ
(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の積) VEL…速度(ベロシテイー)を定める情報で、発音開始
時の波形の最大ピーク値にて定まる。
DUB: A flag indicating that the waveform has continuously come in the same direction FOFR: Relative off counter HFOP: A constant indicating the period corresponding to the scale one octave above the open string HNC: Waveform number counter MT: Pitch extraction from this Flag (positive = 1,
(Negative = 0) NCHLV: Notch level (constant) OFTIM: Off time (corresponding to, for example, the open string cycle of the string) OFPT: Normal off-check start flag ONF: Note-on flag RIV: Processing in step (STEP 4) described later Flag for switching the route ROFCT: A constant that determines the number of checks for the rela- tive-off STEP: Registers (1 to 5) that specify the flow operation of the microcomputer MCP TF: Previous zero-crossing time data that has become valid TFN (0, 1) … Previous zero-cross 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 TRLAB ( 0, 1)… positive or negative absolute trigger level (note-on threshold) TRLRL… relativ-on (start of re-generation) threshold TRLRS… resonance elimination threshold TTL IM: Lower frequency limit at the time of trigger TTP: Period data extracted last time TTR: Period register TTU: Constant (product of 17/32 and current period information tt) TTW: Constant (product of 31/16 and current period information tt) VEL: Information that determines the speed (velocity) and is determined by the maximum peak value of the waveform at the start of sound generation.

X…異常または正常状態を示すフラグ b…ワーキングレジスタBに記憶されている今回正負フ
ラグ(正ピークの次のゼロ点のとき1、負ピークの次の
ゼロ点のとき0) c…ワーキングレジスタレジスタCに記憶されている今
回波高値(ピーク値) e…ワーキングレジスタEに記憶されている前々回波高
値(ピーク値) h…ワーキングレジスタHに記憶されている前々回抽出
された周期データ t…ワーキングレジスタT0に記憶されている今回のゼロ
クロス時刻 tt…ワーキングレジスタTOTOに記載されている今回の周
期情報 第3図は、マイコンMCPへインタラプトがかけられた
ときの処理を示すインタラプトルーチンであり、I1にお
いて、マイコンMCPはアドレスデコーダDCDを介し、ゼロ
クロス時刻取込回路ZTSに対し、弦番号読み込み信号RDI
を与えてインタラプトを与えた弦を指定する弦番号を読
み込む。そして、その弦番号に対応する時刻情報つまり
ゼロクロス時刻情報をゼロクロス時刻取込回路ZTSへ時
刻読込み信号RD1〜RD6のいずれか対応するものを与えて
読込む。これをtとする。しかる後、I2において、同様
に波高値取込み回路PVSへピーク値読込み信号RDAI(I
=1〜12のうちのいずれか)を与えて、ピーク値を読取
る。これをcとする。
X: Flag indicating an abnormal or normal state b: Current positive / negative flag stored in working register B (1 at the next zero point after the positive peak, 0 at the next zero point after the negative peak) c: Working register register The current peak value (peak value) stored in C e... The pre-second peak value (peak value) stored in the working register E h... The periodic data extracted before and after the second time stored in the working register H t. The current zero-crossing time stored in T0 tt... The current cycle information described in the working register TOTO FIG. 3 is an interrupt routine showing a process when an interrupt is applied to the microcomputer MCP. The microcomputer MCP sends a string number read signal RDI to the zero-cross time acquisition circuit ZTS via the address decoder DCD.
To read the string number specifying the string that gave the interrupt. Then, the time information corresponding to the string number, that is, the zero-cross time information, is supplied to the zero-cross time fetch circuit ZTS by giving any one of the time read signals RD1 to RD6. This is defined as t. Thereafter, at I2, the peak value reading signal RDAI (I
= 1 to 12) and read the peak value. This is assumed to be c.

続くI3において、当該ピーク値は正、負のいずれかの
ピークであるのかを示す情報bを、ゼロクロス時刻取込
回路ZTSより得る。そして、I4にて、このようにして得
たt、c、bの値をマイコンMCP内のバツフアのレジス
タTO、C、Bにセツトする。このバツフアは、割込み処
理がなされる都度、このような時刻情報、ピーク値情
報、ピークの種類を示す情報がワンセツトとして書込ま
れていき、メインルーチンで、各弦毎にかかる情報に対
する処理がなされる。
In the following I3, information b indicating whether the peak value is a positive or negative peak is obtained from the zero-crossing time acquisition circuit ZTS. Then, at I4, the values of t, c and b obtained in this way are set in buffer registers TO, C and B in the microcomputer MCP. In this buffer, every time interrupt processing is performed, such time information, peak value information, and information indicating the type of peak are written as one set, and the main routine performs processing on the information for each string. You.

第4図は、メインルーチンを示すフローチヤートであ
る。パワーオンすることによりM1において、各種レジス
タやフラグがイニシヤライズされ、レジスタSTEPが0と
される。M2で上述したバツフアが空かどうかが判断さ
れ、ノー(以下、Nと称す)の場合にはM3に進み、バツ
フアよりレジスタB、C、TOの内容が読まれる。これに
より、M4において、レジスタSTEPはいくつか判断され、
M5ではSTEP0、M6ではSTEP1、M7ではSTEP2、M8ではSTEP
3、M9ではSTEP4の処理が順次おこなわれる。
FIG. 4 is a flowchart showing a main routine. When the power is turned on, various registers and flags are initialized in M1, and the register STEP is set to 0. At M2, it is determined whether or not the above-mentioned buffer is empty. If no (hereinafter, referred to as N), the process proceeds to M3, and the contents of the registers B, C, and TO are read from the buffer. Thereby, in M4, some registers STEP are determined,
STEP0 for M5, STEP1 for M6, STEP2 for M7, STEP for M8
3. In M9, the processing of STEP4 is sequentially performed.

M2でバツフアが空の場合すなわちイエス(以下、Yと
称する)の場合、M10〜M16へと順次に進み、ここで通常
のノートオフのアルゴリズムの処理が行なわれる。この
ノーオフのアルゴリズムは、オフ(OFF)レベル以下の
状態が所定のオフタイム時間続いたら、ノートオフする
アルゴリズムである。M10でSTEP=0かどうかが判断さ
れ、Nの場合には、M11に進む。M11Dでは、その時点の
入力波高値ADが直接読まれる。これは、波高値取込み回
路PVSへピーク値読込み信号RDA13〜RDA18のいずれかを
与えることで達成できる。そして、この値ADが、入力波
高値ADオフレベルかどうかが判断され、Yの場合には
M12に進む。M12では前回の入力波高値ADオフレベルか
どうかが判断され、Yの場合にはM13に進み、ここでタ
イマーTの値オフタイムOFTIM(例えば当然弦の開放
弦周期の定数)かどうかが判断される。Yの場合には、
M14に進み、レジスタSTEPに0が書きこまれ、M15ではノ
ートオンかどうかが判断され、Yの場合には、M16でノ
ートオフ処理され、M2の入側のMに戻る。M12でNの場
合にはM17に進み、マイコンMCP内部タイマーTをスター
トし、M2の入側Mに戻る。M10でYの場合、及びM11、M1
3、M15でNの場合には、いずれもM12の入側のMに戻
る。
If the buffer is empty at M2, that is, if the answer is yes (hereinafter, referred to as Y), the process sequentially proceeds to M10 to M16, where the normal note-off algorithm processing is performed. This no-off algorithm is an algorithm in which note-off is performed when a state below the off level (OFF) continues for a predetermined off-time period. In M10, it is determined whether or not STEP = 0, and in the case of N, the process proceeds to M11. In M11D, the input peak value AD at that time is directly read. This can be achieved by applying any one of the peak value reading signals RDA13 to RDA18 to the peak value capturing circuit PVS. Then, it is determined whether or not this value AD is the input peak value AD off level.
Proceed to M12. In M12, it is determined whether or not the previous input peak value AD off level. In the case of Y, the process proceeds to M13, where it is determined whether or not the value of the timer T is OFF time OFTIM (for example, a constant of the open string period of the strings). You. In the case of Y,
In M14, 0 is written in the register STEP. In M15, it is determined whether or not the note is on. In the case of Y, the note-off process is performed in M16, and the process returns to M on the input side of M2. In the case of N in M12, the process proceeds to M17, the microcomputer MCP internal timer T is started, and the process returns to the entry side M of M2. In case of Y in M10, and M11, M1
3. In the case of N in M15, all return to M on the entry side of M12.

このように、波形入力のレベルが減衰してきた場合、
オフレベル以下の入力波高値ADがオフタイムOFTIMに相
当する時間続くと、ノートオフの指示を音源SSに対しマ
イコンMCPは送出する。なお、ステツプM15において、通
常の状態ではYの判断がなされるが、後述するような処
理によつて、楽音の発生を指示していない場合でもレジ
スタSTEPは0以外の値をとつていることがあり、(例え
ばノイズの入力による。)そのようなときは、M14、M15
の処理後M2へ戻ることで、初期設定がなされることにな
る。
Thus, when the level of the waveform input is attenuated,
When the input peak value AD equal to or less than the off level continues for a time corresponding to the off time OFTIM, the microcomputer MCP sends a note-off instruction to the sound source SS. In step M15, the determination of Y is made in a normal state. However, the register STEP may take a value other than 0 even when the generation of a musical tone is not instructed by the processing described later. Yes (for example, due to noise input) In such a case, M14, M15
By returning to M2 after the processing of, the initial setting is performed.

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

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

第5図は、第4図のM5として示すステツプ0(STEP
0)のときのフローチヤートであり、S01で絶対トリガレ
ベル(ノートオンしきい値)TRLAB(b)<今回波高値
cがどかが判断され、Yの場合にはS02に進み共振除去
がチエツクされる。なお、このトリガーレベルは、正と
負との極性のピーク夫々についてのチエツクを行なうよ
うになつている。このTRLAB(0)とTRLAB(1)とは、
実験などによつて適切な値とすることになる。理想的な
システムではTRLAB(0)とTRLAB(1)とは同じでよ
い。S02では、共振除去しきい値TRLRS<〔今回波高値c
−前回波高値AMP(b)〕かどうか、すなわち今回波高
値と前回波高値の差が所定値以上か否かが判断される。
FIG. 5 shows step 0 (STEP 0) shown as M5 in FIG.
0), the absolute trigger level (note-on threshold) TRLAB (b) <the present peak value c is determined at S01. If Y, the process proceeds to S02 to check the resonance elimination. You. It should be noted that the trigger level checks the respective peaks of positive and negative polarities. These TRLAB (0) and TRLAB (1)
Appropriate values will be determined by experiments and the like. In an ideal system, TRLAB (0) and TRLAB (1) may be the same. In S02, the resonance removal threshold value TRLRS <[current peak value c
−previous peak value AMP (b)], that is, whether the difference between the current peak value and the previous peak value is equal to or greater than a predetermined value.

一つの弦をピツキングすることによつて他の弦が共振
を起こす場合、当該他の弦については、振動のレベルが
徐々に大きくなり、その結果前回と今回とのピーク値の
変化は微小なものとなつて、その差は共振除去しきい値
TRLRSを越えることはない。ところが、通常のピツキン
グでは、波形が急激に立上る(あるいは立ち下がる)こ
とになり、前記ピークの差は共振除去しきい値TRLRSを
越える。
When picking one string causes another string to resonate, the vibration level of the other string gradually increases, and as a result, the change in the peak value between the previous time and the current time is very small. The difference is the resonance rejection threshold
Never exceed TRLRS. However, in normal picking, the waveform suddenly rises (or falls), and the difference between the peaks exceeds the resonance removal threshold value TLRRS.

いま、このS02で、Yの場合つまり共振の場合でない
とみなした場合には、S03において次の処理が行なわれ
る。すなわち、今回正負フラグbがフラグMTに書込ま
れ、レジスタSTEPに1が書込まれ、さらに今回のゼロク
ロス時刻tが前回のゼロクロス時刻データTFN(b)と
して設定される。そして、S04では、その他フラグ類が
イニシヤライズされ、S05に進む。S05では、今回波高値
cが前回の波高値AMP(b)としてセツトされ、しかる
後第4図のメインフローへリターンする。
If it is determined in S02 that it is not the case of Y, that is, the case of resonance, the following processing is performed in S03. That is, the current positive / negative flag b is written into the flag MT, 1 is written into the register STEP, and the current zero-cross time t is set as the previous zero-cross time data TFN (b). Then, in S04, other flags are initialized, and the process proceeds to S05. In S05, the current peak value c is set as the previous peak value AMP (b), and thereafter, the process returns to the main flow of FIG.

第5図において、Aはリラテイブオン(再発音開始)
のエントリであり、後述するSTEP4のフローからこのS06
へジヤンプしてくる。そして、S06では今まで出力して
いる楽音を一度消去し、再発音開始のためにS03へ進行
する。この再発音開始のための処理は、通常の発音開始
のときと同様であり、以下に詳述するとおりとなる。
In FIG. 5, A is a relativity on (re-sound start).
The entry of S06 from the flow of STEP 4 described later
Hey jump. Then, in S06, the musical tone output so far is deleted once, 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 will be described in detail below.

そして、またS01でNの場合と、S02でNの場合(今回
波高値c−前回波高値AMP(b)が所定値以上ない場
合)には、S05に進む。従つて、発音開始のための処理
は進まないことになる。
Then, in the case of N in S01 and the case of N in S02 (when the current peak value c-the previous peak value AMP (b) is not equal to or more than the predetermined value), the process proceeds to S05. Accordingly, the process for starting sound generation does not proceed.

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

第6図は第4図にM6として示すSTEP1のフローチヤー
トの詳細を示すものであり、S11では、レジスタBの内
容(b)と、フラグMTが不一致かどうかが判断され、Y
の場合にはS12に進む。S12では、絶対トリガレベル(ノ
ートオンしきい値)TRLAB(b)<今回波高値cかどう
かが判断され、Yの場合にはS13に進む。S12でYの場合
にはレジスタSTEPに2がセツトされ、S14でレジスタTO
の内容(t)を前回のゼロクロス時刻データTFN(b)
としてセツトし、さらにS15で今回波高値cを、前回の
波高値AMP(b)へセツトする。S11において、Nの場合
すなわち入力波形信号が同一方向にきた場合S16に進
み、今回波高値c>前回波高値AMP(b)かどうかが判
断され、Yの場合すなわち今回の波高値cが前回の波高
値AMP(b)より大の場合には、S14に進む。一方、S12
においてNの場合には、S15に進み、これにより波高値
のみが更新される。また、S16において、Nの場合及
び、S15の処理の終了時にはメインフロー(第4図)へ
リターンする。
FIG. 6 shows the details of the flowchart of STEP 1 shown as M6 in FIG. 4. In S11, it is determined whether or not the content (b) of the register B and the flag MT do not match.
In the case of, the process proceeds to S12. In S12, it is determined whether or not the absolute trigger level (note-on threshold) TRLAB (b) <the current peak value c. If Y, the process proceeds to S13. In the case of Y in S12, 2 is set in the register STEP, and in S14, the register TO
(T) is replaced with the previous zero-cross time data TFN (b)
Then, in S15, the current peak value c is set to the previous peak value AMP (b). In S11, in the case of N, that is, when the input waveform signal comes in the same direction, the process proceeds to S16, and it is determined whether or not the current peak value c> the previous peak value AMP (b). If it is larger than the peak value AMP (b), the process proceeds to S14. Meanwhile, S12
In the case of N, the process proceeds to S15, whereby only the peak value is updated. In S16, if N, or at the end of the processing in S15, the process returns to the main flow (FIG. 4).

以上述べたSTEP1(第11図のSTEP1→2の間)では、今
回正負フラグb(=0)とフラグMT=1が不一致という
ことで、今回のゼロクロス時刻tを前回のゼロクロス時
刻データTFN(0)としてセツトし、さらに今回波高値
cを前回の波高値AMP(0)として書込む。
In STEP 1 described above (between STEP 1 and STEP 2 in FIG. 11), since the current positive / negative flag b (= 0) and the flag MT = 1 do not match, the current zero cross time t is set to the previous zero cross time data TFN (0 ), And the current peak value c is written as the previous peak value AMP (0).

第7図は、第4図にM7として示すSTEP2のフローチヤ
ートの詳細を示すもので、S20において、今回正負フラ
グb=フラグMTかどうかすなわちSTEP0の方向と同一の
ゼロクロス点の到来かどうかを判断し、Yの場合にはS2
1に進む。S21では、第2図の時定数変換制御回路TCC内
のレジスタCHTRRへ開放弦周期CHTIOをセツトし、S22に
進む。S22では、今回波高値c>(7/8)×前回の波高値
AMP(b)かどうか、つまり波高値が前回と今回とで略
同一かどうかをチエツクし、Yの場合つまり美しい自然
減衰の場合には、S23に進み、フラグDUBを0にセツト
し、S24に進む。S24では、周期計算を行ない、今回のゼ
ロクロス時刻t−前回のゼロクロス時刻データTFN
(b)を前回周期データTP(b)に入力し、今回のゼロ
クロス時刻tを前回ゼロクロス時刻データTFN(b)と
して入力する。S24におけるTP(b)は、STEP3でノート
オン(1.5波)の条件として使用される。また、S24で
は、レジスタSTEPが3とセツトされる。更に、今回波高
値cと、前回の波高値AMP(0)と、前回の波高値AMP
(1)の内、最も大きい値をベロシテイVELとして登録
する。また、今回波高値cを前回の波高値AMP(b)へ
書込む。
FIG. 7 shows the details of the flow chart of STEP 2 shown as M7 in FIG. 4. In S20, it is determined whether or not the current positive / negative flag b = flag MT, that is, whether or not the same zero-cross point as the direction of STEP0 has arrived. And in the case of Y, S2
Proceed to 1. In S21, the open chord cycle CHTIO is set in the register CHTRR in the time constant conversion control circuit TCC of FIG. 2, and the flow advances to S22. In S22, the current peak value c> (7/8) x the previous peak value
It is checked whether it is AMP (b), that is, whether the peak value is substantially the same between the previous time and this time, and in the case of Y, that is, in the case of beautiful natural attenuation, the process proceeds to S23, the flag DUB is set to 0, and the process proceeds to S24. move on. In S24, a cycle calculation is performed, and the current zero-cross time t−the previous zero-cross time data TFN is calculated.
(B) is input to the previous cycle data TP (b), and the current zero cross time t is input as the previous zero cross time data TFN (b). TP (b) in S24 is used as a note-on (1.5 wave) condition in STEP3. At S24, the register STEP is set to 3. Further, the present peak value c, the previous peak value AMP (0), and the previous peak value AMP
The largest value among (1) is registered as velocity VEL. Also, the current peak value c is written to the previous peak value AMP (b).

S20でNの場合に、S25に進み、フラグDUBすなわち同
一方向の入力波形がきたということを意味するフラグを
1にし、S26に進む。S26では、今回波高値c>前回の波
高値AMP(b)かどうかが判断され、Yの場合にはS29に
進む。S29では今回波高値cに前回の波高値AMP(b)が
書替えられ、レジスタTの内容tに前回のゼロクロス時
刻データTFN(b)が書替えられる。また、S22におい
て、Nの場合には、S27に進み、フラグDUB=1かどう
か、つまり前回STEP2を実行したとき、タブツたか否か
のチエツクを行ない、Yの場合つまりタブツていればS2
8に進む。S28では、フラグDUBを0にする。この場合に
はS29に進みメインルーチンにリターンする。S24の処理
の後、またS26のNのときも、同様にメインルーチンへ
リターン(RET)する。
In the case of N in S20, the process proceeds to S25, where the flag DUB, that is, the flag indicating that an input waveform in the same direction has arrived, is set to 1, and the process proceeds to S26. In S26, it is determined whether or not the present peak value c> the previous peak value AMP (b). If Y, the process proceeds to S29. In S29, the previous peak value AMP (b) is rewritten to the current peak value c, and the previous zero-cross time data TFN (b) is rewritten to the content t of the register T. In S22, in the case of N, the process proceeds to S27, and a check is performed to determine whether or not the flag DUB = 1, that is, when STEP2 was executed last time, whether or not a tab was found.
Proceed to 8. In S28, the flag DUB is set to 0. In this case, the process proceeds to S29 and returns to the main routine. After the processing in S24 and also in the case of N in S26, the process similarly returns to the main routine (RET).

以上述べたSTEP2(第11図のSTEP2→3の間)では、今
回正負フラグbとしてフラグMT=1が書替えられ、レジ
スタCHTRRに0フレツト周期すなわち開放弦周期CHTIOが
書替えられ、またフラグDUBが0にセツトされ、さらに
t−TFN(1)→TP(1)なる周期計算が行なわれ、ま
た今回ゼロクロス時刻tに前回のゼロクロス時刻データ
TFN(1)が書き替えられ、今回波高値c、前回波高値A
MP(0)、前回波高値AMP(1)の内最も大きい値がベ
ロシテイVELとしてセツトされ、更に今回波高値cとし
て前回波高値AMP(1)がセツトされる。
In the above-mentioned STEP 2 (between STEP 2 and STEP 3 in FIG. 11), the flag MT = 1 is rewritten as the positive / negative flag b, the 0-flet cycle, that is, the open string cycle CHTIO is rewritten in the register CHTRR, and the flag DUB is set to 0. Is set, and the cycle calculation of t−TFN (1) → TP (1) is performed.
TFN (1) is rewritten and the current crest value c and the previous crest value A
The largest value of MP (0) and the previous peak value AMP (1) is set as velocity VEL, and the previous peak value AMP (1) is set as the current peak value c.

第11図は、理想的な波形入力があつた場合の例である
が、DUB=1となる場合について次に説明する。第8図
は、そのような場合のSTEP2の動作を説明するための図
であり、(A)は一波をとばしてピーク検出した場合で
あり、入力波形が実線のときは後述するSTEP3の処理に
てノートオンし、入力波形が点線の時はノートオンしな
い。これはS26にてYとなるかNとなるかの違いからで
ある。また、STEP2からなかなかSTEP3に移行しないの
は、S20でb=MTが成立しても、S22でc>(7/8)×AMP
(b)がNと判断され、これがYとならない間は、STEP
2は繰返し実行されるからである。また、(B)は、オ
クターブ下の倍音を検知した場合であり、この場合に
は、C>(7/8)×AMP(b)のチエツク時、YとなりS2
3を経てS24に進み、STEP3に移る。
FIG. 11 shows an example in which there is an ideal waveform input. A case in which DUB = 1 will be described below. FIG. 8 is a diagram for explaining the operation of STEP 2 in such a case. FIG. 8 (A) shows a case where one wave is skipped and a peak is detected. And note-on does not occur when the input waveform is a dotted line. This is due to the difference between Y and N in S26. Also, the reason why it does not easily shift from STEP 2 to STEP 3 is that even if b = MT is satisfied in S20, c> (7/8) × AMP in S22.
As long as (b) is determined to be N and this is not Y, STEP
2 is executed repeatedly. (B) shows a case where an overtone lower than an octave is detected. In this case, when checking that C> (7/8) × AMP (b), Y becomes Y and S2
After 3, go to S24 and move to STEP3.

第9図は、第4図にM8として示すSTEP3のフローチヤ
ートであり、S30でフラグMT≠今回正負フラグbかどう
かが判断され、正常の場合すなわちYのときは、S31に
進む。S31では、(1/8)c<AMP(b)ならXが0、ま
た逆の場合にはX=1にセツトされ、S32に進む。S32で
は、今回波高値cとして前回の波高値AMP(b)が書替
えられる。
FIG. 9 is a flowchart of STEP 3 shown as M8 in FIG. 4. In S30, it is determined whether or not the flag MT ≠ the current positive / negative flag b. If the flag is normal, that is, if Y, the process proceeds to S31. In S31, if (1/8) c <AMP (b), X is set to 0, and if not, X = 1 is set, and the process proceeds to S32. In S32, the previous peak value AMP (b) is rewritten as the current peak value c.

そしてS33において、STEP2で得られたVELより今回波
高値cが大であれば、ベロシテイVELは今回波高値cが
入力される。もし逆ならば、このベロシテイVELは変化
しない。次に今回正負フラグbにフラグMTが書替えら
れ、これによりピツチ変更側が逆にされる。これは、後
述するSTEP4からフラグMTの意味が変り、ピツチ変更側
を意味している。そして、S34で〔t−TFN(b)→TP
(b)〕なる周期計算が行なわれる。また、今回のゼロ
クロス時刻tとして前回のゼロクロス時刻データTFN
(b)が書替えられる。
Then, in S33, if the current peak value c is larger than the VEL obtained in STEP2, the current peak value c is input as the velocity VEL. If vice versa, this velocity VEL will not change. Next, the flag MT is rewritten to the current positive / negative flag b, whereby the pitch change side is reversed. This means that the meaning of the flag MT is different from STEP 4 described later, and means a pitch change side. Then, in S34, [t-TFN (b) → TP
(B)]. The current zero-cross time t is used as the previous zero-cross time data TFN.
(B) is rewritten.

次に、S35において、X=0かどうかを判断し、Yの
場合にはS36に進み、周波数上限THLIM<前回の周期デー
タTP(b)かどうか、つまりピツチ抽出上限チエツクを
行ない、その結果、最高音の周期より大きな周期をもて
ば、許容範囲にあるということでYとなり、S37に進
む。S37では、トリガー時の周波数下限TTLIM>前回の周
期データTP(b)かどうか、つまりピツチ抽出下限チエ
ツクを行ない、最低音の周期より小の周期をもてば許容
範囲にあり、Yの判断をしてS38に進む。S37のピツチ抽
出下限は、後述するSTEP4のピツチ抽出下限とは定数が
異なる。
Next, in S35, it is determined whether or not X = 0, and in the case of Y, the flow proceeds to S36, and whether or not the frequency upper limit THLIM <the previous cycle data TP (b), that is, the pitch extraction upper limit check is performed. If the period is longer than the period of the highest sound, it is Y because it is within the allowable range, and the process proceeds to S37. In S37, whether the lower limit of the frequency at the time of triggering is TTLIM> the previous cycle data TP (b), that is, a pitch extraction lower limit check is performed, and if a cycle shorter than the cycle of the lowest tone is within the allowable range, the judgment of Y is made. And proceed to S38. The lower limit of the pitch extraction of S37 is different from the constant of the lower limit of the pitch extraction of STEP4 described later.

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

S38では、前回の周期データTP(b)を前回抽出され
た周期データTTPとしてセツトすなわち、ピツチ抽出側
で抽出されたピツチをセーブ(これは後述するSTEP4で
使用される)し、S39に進む。S39では、前回の周期デー
タTP(b)≒TP()かどうか、すなわち極性の違うゼ
ロクロス点間の周期の略一致のチエツクである1.5波ピ
ツチ抽出チエツクを行ない、Yの場合にはS301で次のよ
うな処理が行なわれる。すなわち、前回のゼロクロス時
刻データTFN()として時刻記憶レジスタTFRが書替え
られ、また今回のゼロクロス時刻tが前回のゼロクロス
時刻データをTFとしてセツトされ、波形ナンバーカウン
タHNCをクリアする。このカウンタHNCは後述するSTEP4
にて使用される。レジスタSTEPは4にセツトされ、ノー
トオンフラグONFは2(発音状態)にセツトされ、定数T
TUは0すなわち(MIN)にセツトされ、定数TTWは最高MA
Xにセツトされる。これらはいずれも後述するSTEP4にて
使用するものである。また、リラテイブオフの為の前回
波高値レジスタAMRL1がクリアされる。そして、最後のS
302で前回周期データTP(b)に対応した音高とベロシ
テイVELに対応した音量でノートオン処理が行なわれ
る。即ち、マイコンMCPは本実施例において楽音発生指
示手段として機能し、音源SSに対し発音開始の指示をす
る。
In S38, 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 is used in STEP 4 described later), and the flow proceeds to S39. In S39, whether or not the previous cycle data is TP (b) ≒ TP (), that is, a 1.5-wave pitch extraction check which is a check of the cycle between zero-cross points having different polarities is performed. In the case of Y, the next step is S301. The following processing is performed. That is, the time storage register TFR is rewritten as the previous zero-cross time data TFN (), the current zero-cross time t is set using the previous zero-cross time data as TF, and the waveform number counter HNC is cleared. This counter HNC is used in STEP4 described later.
Used in The register STEP is set to 4, the note-on flag ONF is set to 2 (sound generation state), and the constant T
TU is set to 0 or (MIN) and constant TTW is the highest MA
Set to X. These are all used in STEP 4 described later. Also, the previous peak value register AMRL1 for the relaive-off is cleared. And the last S
In 302, note-on processing is performed at a pitch corresponding to the previous cycle data TP (b) and a volume corresponding to the velocity VEL. That is, the microcomputer MCP functions as a musical sound generation instructing unit in this embodiment, and instructs the sound source SS to start sounding.

次に、S310においてマイコンMCPは本実施例における
判定手段として機能し、抽出周期TP(b)が、当該弦の
開放弦音高の1オクターブ上の音高に相当する周期HFOP
と略一致するか否か判断する。つまり、定数HFOPと求ま
つた周期TP(b)との差がHFOPの5%以内ならば、開放
弦音高の1オクターブ上の音高であるとみなし、レジス
タANEへ第1の所定値としての1/40をS311において入力
し、それ以外の音高であれば、第1の所定値(1/40)よ
り大きい第2の所定値である1/20をレジスタANEへS312
において入力する。なお、ANEにストアする値は1/40
(第1の所定値)又は1/20(第2の所定値)としている
が、これらは実験などによって最適な値とするればよ
い。
Next, in S310, the microcomputer MCP functions as the determination means in the present embodiment, and the extraction cycle TP (b) is set to a cycle HFOP corresponding to a pitch one octave above the open string pitch of the string.
It is determined whether or not they substantially match. That is, if the difference between the constant HFOP and the obtained period TP (b) is within 5% of HFOP, it is regarded as a pitch one octave higher than the open string pitch, and the register ANE is sent to the register ANE as the first predetermined value. 1/40 is input in S311. If the pitch is other than that, 1/20 which is a second predetermined value larger than the first predetermined value (1/40) is input to the register ANE in S312.
Enter in. The value stored in ANE is 1/40
Although they are set to (first predetermined value) or 1/20 (second predetermined value), these may be set to optimal values by experiments and the like.

S30において、Nの場合(同一方向のゼロクロス点検
出の場合)は、S303に進み、前回の波高値AMP(b)<
今回波高値cかどうかが判断され、Yの場合はS304に進
む。S304では、今回波高値cが前回の波高値AMP(b)
としてセツトされ、ベロシテイVELまたはレジスタCの
値cの内のいずれか大きい値がベロシテイVELにセツト
される。S303、S35、S36、S37、S39のいずれの場合もN
の場合には、メインルーチンへリターン(RET.)する。
In S30, in the case of N (in the case of zero-cross point detection in the same direction), the process proceeds to S303, and the previous peak value AMP (b) <
It is determined whether or not this time is the peak value c, and in the case of Y, the process proceeds to S304. In S304, the current peak value c is the previous peak value AMP (b)
And the larger of the velocity VEL and the value c of the register C is set to the velocity VEL. N in any of S303, S35, S36, S37, S39
In this case, return to the main routine (RET.).

第17図はS31において、X=1すなわち異常となる場
合の具体例を示す図であり、1/8b1<b0のときと、1/8a2
<a1のときのジヤツジではいずれもその条件を満足せ
ず、X=1となる。
FIG. 17 is a diagram showing a specific example of a case where X = 1, that is, an abnormality, in S31, wherein 1 / 8b 1 <b 0 and 1 / 8a 2
<Both in Jiyatsuji when the a 1 does not satisfy the condition, the X = 1.

すなわち、第17図の最初の3つの波形のピーク(a0
b0、a1)は、ノイズによるもので、これらのノイズの周
期を検出して発音開始を指示すると、全くおかしな音が
発生してしまう。そこで、S31では、波高値が大きく変
わつたことを検知して、X=1とし、S35でNの判断を
するようにする。そして、S31にて波形が正常な変化を
することが検知されてから、発音開始を指示するように
する。
That is, the peaks (a 0 ,
b 0 and a 1 ) are caused by noise. If the cycle of these noises is detected and the start of sound generation is instructed, a completely strange sound is generated. Therefore, in S31, it is detected that the peak value has changed greatly, X = 1, and N is determined in S35. Then, in S31, it is instructed to start sound generation after it is detected that the waveform changes normally.

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

以上述べたSTEP3(第11図のSTEP3→4の間)では、MT
=1≠b、AMP(0)←c、max〔VEL、c(のいずれか
の大きい方)〕→VEL、MT←b=0、TP(0)←〔t−T
FN(0)〕、TFN(0)←t、TTP←TP(0)、TFR←TFN
(1)、TF←t、HNC←0、ONF←2、TTU←0(MIN)、
TTW←MAX、AMRL1←0、ノートオン条件TP(o)≒TP
(1)についての処理及びANE←1/20又は1/40がなされ
る。そして、適切な波形入力に応答してこのSTEP3にお
いて、抽出されたピツチに従つた音高の楽音が発生開始
されることになる。第11図から判明するように、周期検
出を開始してから、1.5周期程度の時間経過で発音指示
が音源SSに対しなされることになる。勿論、諸条件を満
足しなければ、更におくれることは上述したとおりであ
る。
In STEP 3 described above (between STEP 3 and 4 in FIG. 11), the MT
= 1 ≠ b, AMP (0) ← c, max [VEL, c (whichever is greater)] → VEL, MT ← b = 0, TP (0) ← [t−T
FN (0)], TFN (0) ← t, TTP ← TP (0), TFR ← TFN
(1), TF ← t, HNC ← 0, ONF ← 2, TTU ← 0 (MIN),
TTW ← MAX, AMRL1 ← 0, note-on condition TP (o) ≒ TP
The processing of (1) and ANE ← 1/20 or 1/40 are performed. Then, in response to the appropriate waveform input, in STEP 3, generation of a musical tone having a pitch according to the extracted pitch is started. As can be seen from FIG. 11, a sound generation instruction is issued to the sound source SS about 1.5 cycles after the start of the cycle detection. Of course, if the various conditions are not satisfied, further delays are as described above.

第10図は、第4図のM9として示すSTEP4のフローチヤ
ートであり、この場合ピツチ抽出のみを行なうルート
、実際にピツチ変更を行なうルートがある。先ず、
S40、S41、S42、S63〜S67に示すルートについて説明
する。S40において、波形ナンバーカウンタHNC>3が判
断され、Yの場合にはS41に進む。S41では、リラテイブ
オンしきい値TRLRL<〔今回波高値c−前回の波高値AMP
(b)〕かどうかの判断が行なわれ、Nの場合にはS42
に進む。S42では今回正負フラグb=フラグMTつまりピ
ツチ変更側かどうかが判断され、Yの場合にはS43に進
む。
FIG. 10 is a flowchart of STEP 4 shown as M9 in FIG. 4. In this case, there is a route for only extracting the pitch and a route for actually changing the pitch. First,
The routes shown in S40, S41, S42, and S63 to S67 will be described. In S40, it is determined that the waveform number counter HNC> 3, and in the case of Y, the process proceeds to S41. In S41, the relative on threshold value TRLRL <[current crest value c−previous crest value AMP
(B)] is determined, and in the case of N, S42
Proceed to. In S42, it is determined whether or not this time the positive / negative flag b = flag MT, that is, whether or not the pitch is changed.

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

S63においては、同じ極性のピークが続けて入力され
てきているか(ダブリであるか)、否かチエツクするた
めに、レジスタRIV=1かどうかが判断され、Yの場合
にはS68に進み、また、Nの場合(ダブリでない場合)
にはS64に進み、ここで以下の処理が行なわれる。すな
わち、S64では今回波高値cが前回の波高値AMP(b)に
入力され、リラテイブオフ処理のために前回の振幅値AM
RL1が前々回の振幅値AMRL2に入力される。なお、いまの
場合はAMRL1の内容は0である(STEP3のS30参照)。さ
らにS64において、前回の波高値AMP()と今回波高値
cのうちいずれか大きい値が前回振幅値AMRL1に入力さ
れる。つまり、周期の中で2つある正、負のピーク値に
ついて大きい値のピーク値が振幅値AMRL1にセツトされ
る。そして、S65で波形ナンバーカウンタHNC>8かどう
かが判断され、ここで波形ナンバーカウンタ(ピツチ変
更側でないゼロクロスカウンタ)HNCが+1され、カウ
ントアツプされる。
In S63, it is determined whether the register RIV = 1 or not in order to check whether or not a peak having the same polarity is continuously input (whether it is double) or not. If Y, the process proceeds to S68. , N (if not double)
Proceeds to S64, where the following processing is performed. That is, in S64, the current peak value c is input to the previous peak value AMP (b), and the previous amplitude value AM is used for the relaive-off process.
RL1 is input to the amplitude value AMRL2 two times before. In this case, the content of AMRL1 is 0 (see S30 in STEP3). Further, in S64, the larger one of the previous peak value AMP () and the current peak value c is input to the previous amplitude value AMRL1. That is, the peak value having a large value among the two positive and negative peak values in the cycle is set to the amplitude value AMRL1. Then, in S65, it is determined whether or not the waveform number counter HNC> 8. Here, the waveform number counter (zero cross counter not on the pitch change side) HNC is incremented by one, and the count is incremented.

従つて、波形ナンバーカウンタHNCは、上限が9とな
る。そして、S65もしくはS66の処理の後S67へ進行す
る。S67では、レジスタRIVを1とし、今回のゼロクロス
時刻から時刻記憶レジスタTFRの内容を引算して、周期
レジスタTTRへ入力する。この周期レジスタTTRは、第11
図に示すような周期情報を示すようになる。そして、今
回のゼロクロス時刻tは、時刻記憶レジスタTFRへセー
ブされ、この後、メインルーチンにリターン(RET)す
る。
Therefore, the upper limit of the waveform number counter HNC is 9. Then, the process proceeds to S67 after the process of S65 or S66. 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, and the result is input to the period register TTR. This cycle register TTR is
The period information shown in FIG. Then, the current zero cross time t is saved in the time storage register TFR, and thereafter, the process returns (RET) to the main routine.

S63でYの場合は、S68に進み今回波高値c>前回の波
高値AMP(b)かどうかが判断され、Yの場合はS69に進
む。S69では、今回波高値cに前回の波高値AMP(b)が
書替えられ、S70に進む。S70では今回波高値C>前回の
振幅値AMRL1かどうかが判断され、Yの場合にはS71に進
み、ここで今回波高値cが前回の振幅値AMRL1に入力さ
れる。
In the case of Y in S63, the process proceeds to S68, and it is determined whether or not the current peak value c> the previous peak value AMP (b). In the case of Y, the process proceeds to S69. In S69, the previous peak value AMP (b) is rewritten to the current peak value c, and the process proceeds to S70. In S70, it is determined whether or not the current peak value C> the previous amplitude value AMRL1. If Y, the process proceeds to S71, where the current peak value c is input to the previous amplitude value AMRL1.

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

以上述べたようにルートは、第11図の例によれば以
下のような処理がなされる。MT=0≠b、RIV=0、AMP
(1)←c、AMRL2←AMRL1、AMRL1←max〔AMP(0)、
c(のいずれか大きい方)〕、HNC←(HNC+1)=1、
RIV←1、TTR←(t−TFR)、TFR←tが処理される。従
つて、周期レジスタTTRに前回の同極性のゼロクロス点
(STEP2→3のところ)から今回のゼロクロス点までの
時刻情報の差つまり、周期情報が求まつたことになる。
そして、メインルーチンへ戻り、次のゼロクロスインタ
ーラプトを待つ。
As described above, the route is subjected to the following processing according to the example of FIG. MT = 0 ≠ b, RIV = 0, AMP
(1) ← c, AMRL2 ← AMRL1, AMRL1 ← max [AMP (0),
c (whichever is greater)], HNC ← (HNC + 1) = 1,
RIV ← 1, TTR ← (t−TFR), TFR ← t are processed. Accordingly, the difference between the time information from the previous zero-cross point of the same polarity (at STEP 2 → 3) to the current zero-cross point, that is, the cycle information has been found in the cycle register TTR.
Then, the process returns to the main routine and waits for the next zero cross interrupt.

次に、S40〜S623に示すルートへ進んだ場合の説明
を行なう。いま、波形ナンバーカウンタHNC=1なので
(S66参照)、S40からS42へ進む。S42では、第11図のよ
うな場合、MT=0、b=0なのでYとなり、S43へ進
む。S43では、レジスタRIV=1かどうかが判断される。
既にルートにおいて、レジスタRIVは1とされている
(S67参照)ので、S43の判断はいまの場合Yとなり、S4
4へ進む。
Next, a description will be given of a case where the vehicle has proceeded to the route shown in S40 to S623. Now, since the waveform number counter HNC is 1 (see S66), the process proceeds from S40 to S42. In S42, in the case as shown in FIG. 11, since MT = 0 and b = 0, the result is Y, and the process proceeds to S43. In S43, it is determined whether or not the register RIV = 1.
Since the register RIV has already been set to 1 in the route (see S67), the determination in S43 is Y in this case, and S4
Proceed to 4.

S44では、レジスタSTEP=4かどうかが判断され、Y
の場合にはS45に進む。S45では、今回波高値c<60H
(Hは16進法表現を示す)かどうかが判断され、いま波
高値は大なのでYとなり、S46に進む。S46では、前々回
の振幅値AMRL2−前回の振幅値AMRL1≦ANE×前々回の振
幅値AMRL2がどうかが判断され、Yの場合にはS47に進
み、リラテイブオフカウンタFOFRが0にセツトされる。
このリラテイブオフの処理については後述する。そし
て、S48では周期計算がおこなれわれる。具体的には
(今回のゼロクロス時刻t−前回のゼロクロス時刻デー
タTF)が今回の周期情報ttとしてレジスタTOTOにセツト
される。そして、S49に進み、S49では、今回の周期情報
tt>周波数上限THLIM(発音開始後の上限)かどうかが
判断され、Yの場合にはS50に進む。
In S44, it is determined whether or not the register STEP = 4.
In the case of, go to S45. In S45, the peak value c <60H this time
(H indicates a hexadecimal expression) is determined, and since the peak value is large, it becomes Y, and the process proceeds to S46. In S46, it is determined whether or not the amplitude value AMRL2 of the previous time AMRL2−the previous amplitude value AMRL1 ≦ ANE × the amplitude value AMRL2 of the last time before the current value. If Y, the process proceeds to S47 and the relative off counter FOFR is set to 0.
The relaive-off process will be described later. Then, in S48, a cycle calculation is performed. Specifically, (the current zero-cross time t-the previous zero-cross time data TF) is set in the register TOTO as the current cycle information tt. Then, the process proceeds to S49, in which the present cycle information
It is determined whether tt> frequency upper limit THLIM (upper limit after the start of sound generation). If Y, the process proceeds to S50.

S49の周波数上限THLIMは、STEP3のS36で使用したトリ
ガー時(発音開始時)周波数の許容範囲の上限(従つて
周期として最小で、最高音フレツトの2〜3半音上の音
高周期に相当する)と同一のものである。
The frequency upper limit THLIM of S49 is the upper limit of the permissible range of the frequency at the time of triggering (at the start of sounding) used in S36 of STEP3 (therefore, it corresponds to the pitch period that is the minimum as a period and is two to three semitones above the maximum sound fret) ).

次に、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-crossing time t is input as the previous zero-crossing time data TF, the previous peak value AMP (b) is input as the immediately preceding peak value e, 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かどうかが判断され、Y
の場合すなわち今回の周期がノートオン中のピツチ抽出
音域下限以下になつた場合にはS52に進む。
Then, after the process of S50, the process proceeds to S51, and in S51, it is determined whether or not the frequency lower limit TLLIM> the present cycle information tt, and Y
In the case of, that is, when the current cycle becomes equal to or less than the lower limit of the pitch extraction sound range during note-on, the process proceeds to S52.

この場合、周波数下限TLLIMは、例えば、開放弦音階
の1オクターブ下にセツトされる。つまり、STEP3の周
波数下限TTLIM(S37参照)に比較して、許容範囲を広く
している。このようにすることで、トレモロアームの操
作などによる周波数変更に対応し得るようになる。
In this case, the lower frequency limit TLLIM is set, for example, one octave below the open string scale. In other words, the allowable range is wider than the frequency lower limit TTLIM (see S37) of STEP3. 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よりメインルーチンへリターンする。
Therefore, the process proceeds to S52 only when the upper and lower limits of the frequency fall within the allowable range, and otherwise, the process proceeds to S49.
Return from S51 to the main routine.

次に、S52では周期データTTPが前々回抽出された周期
データhに入力され、また、今回の周期情報ttが前回抽
出された周期データTTPに入力される。そして、S53で今
回波高値cがペロシテイVELに書込まれ、S54に進む。S5
4では、ノーチエンジレベルNCHLV>(前々回波高値e−
今回波高値c)かどうかの判断が行なわれ、Yの場合に
はS55に進む。
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. Then, in S53, the current peak value c is written to the perfority VEL, and the process proceeds to S54. S5
In the case of No.4, the no-chage level NCHLV> (the peak value e-
It is determined whether or not the current crest value is c), and in the case of Y, the process proceeds to S55.

すなわち、前回の同極性の波高値(e=AMP(b))
と今回の波高値cとが大きく変化している場合は、その
差がNCHLVを越えることになり、そのようなときに、抽
出された周期情報に基づきピツチ変更を行なうと、不自
然な音高変化を呈することになる可能性が高い。そこ
で、S54でNの判断がなされると、S55以降の処理をする
ことなく、メインルーチンへリターンする。
That is, the previous peak value of the same polarity (e = AMP (b))
When the peak value c greatly changes, the difference exceeds NCHLV. In such a case, if the pitch is changed based on the extracted period information, an unnatural pitch It is likely that it will change. Therefore, when the determination of N is made in S54, the process returns to the main routine without performing the processing of S55 and thereafter.

次に、S54でYの場合、リラテイブオフカウンタFOFR
=0か否かが判断される。後述するリラテイブオフ処理
を行なつているときは、リラソイブオフカウンタFOFRは
0でなくなくつており、そのような場合もピツチ変更
(S61を参照)の処理を行なうことなく、S55でNの判断
をしてメインルーチンへリターンする。そして、S55に
て、Yの判断をしたときは、S56、S57へと順次進む。
Next, in the case of Y in S54, the relative off counter FOFR
It is determined whether or not = 0. When the later-described relaive-off process is being performed, the relaisive-off counter FOFR is not 0, but in such a case, the determination of N is made in S55 without performing the pitch change process (see S61). To return to the main routine. Then, when the determination of Y is made in S55, the process sequentially proceeds to S56 and S57.

ここで2波3値一致条件が判断される。S56では今回
の周期情報tt×2-7<l今回の周期情報tt−前々回周期
データhlが判断され、Yの場合にはS57に進み、またS57
では今回の周期情報tt×2-7<l今回の周期情報tt−周
期レジスタTTRの内容lが判断され、Yの場合にはS58に
進む。
Here, the two-wave ternary coincidence condition is determined. In step S56, the current cycle information tt × 2 −7 <1 the current cycle information tt−the cycle data before the previous cycle hl is determined.
In this case, the current cycle information tt × 2 −7 <1 the current cycle information tt−the content 1 of the cycle register TTR is determined, and in the case of Y, the process proceeds to S58.

すなわち、S56では、第11図の今回の周期情報tt(S43
参照)が、前回の周期データh(=TTP)(S52参照)の
値と略一致するか否かを判断し、S57では、今回の周期
情報ttの値が、それに重なる周期TTRとほぼ一致するか
否かを判断する。なお、その限界範囲は、2-7×ttとし
て、周期情報に依存してその値が変わるようになつてい
る。勿論、これは固定の値としてもよいが、本実施例採
用技術の方が良好な結果を得ることができる。
That is, in S56, the current cycle information tt (S43
Is determined to be substantially equal to the value of the previous cycle data h (= TTP) (see S52), and in S57, the value of the current cycle information tt substantially matches the cycle TTR overlapping therewith. It is determined whether or not. The limit range is 2 −7 × tt, and the value changes depending on the period information. Of course, this may be a fixed value, but better results can be obtained with the technique of this embodiment.

次のS58では、今回の周期情報tt>定数TTUかどうかが
判断され、YならばS59へ進み、ここで今回の周期情報t
t<定数TTWかどうかが判断され、YならばS60へ進む。
なお、S58、S59は急激なピツチ変更を認めないための判
断である。
In the next S58, it is determined whether or not this cycle information tt> constant TTU. If Y, the process proceeds to S59, where the current cycle information t
It is determined whether or not t <constant TTW. If Y, the process proceeds to S60.
It should be noted that S58 and S59 are judgments for not allowing a sudden pitch change.

つまり、S58の定数TTUは、STEP3のS301でいま0とさ
れ、定数TTWは同様にMAXの値とされており、はじめてこ
のフローを通るときは必ずS58、S59でYの判断がなされ
るが、その後は後述するS62において、定数TTUには、
(17/32)tt(略1オクターブ高音の周期情報)がセツ
トされ、定数TTWには同様にS62にて(31/16)tt(ほぼ
1オクターブ低温の周期情報)がセツトされる。従つ
て、急激にオクターブアツプする(これは、フレツトを
離してミユート操作したときなどに生ずる)ことやオク
ターブダウンすること(これは波形のピークをとり逃し
たときなどに起る)があつたときは、ピツチ変更をする
と、不自然となるので、ピツチ変更をしないようにブラ
ンチする。
In other words, the constant TTU of S58 is now set to 0 in S301 of STEP3, and the constant TTW is similarly set to the value of MAX. When passing through this flow for the first time, Y is always determined in S58 and S59. After that, in S62 described later, the constant TTU includes:
(17/32) tt (period information of approximately one octave high tone) is set, and (31/16) tt (period information of approximately one octave low temperature) is similarly set in S62 for the constant TTW. Therefore, when there is a sudden octave up (this occurs when the mute operation is performed with the fret released) or an octave down (this occurs when the waveform peak is missed). Is unnatural if the pitch is changed, so branching is performed without changing the pitch.

もし、S58、S59でYの判断がなされたときは、次にS6
0へ進む。S60では、レジスタSTEP=4にされたかどうか
の判断が行なわれ、その場合にはS61に進む。S61では、
マイコンMCPから音源SSへピツチ変更(今回の周期情報t
tに基づく)が行なわれ、S62に進み、今回の周期情報tt
に対応して時定数チエンジをし、また定数TTUが(17/3
2)×今回の周期情報ttに書替えられ、さらに定数TTWが
(31/16)×今回の周期情報ttに書替えられる。
If Y is determined in S58 and S59, then S6
Go to 0. In S60, it is determined whether or not the register STEP = 4. In that case, the process proceeds to S61. In S61,
Change pitch from microcomputer MCP to sound source SS (this cycle information t
t), and proceeds to S62, where the current cycle information tt
The time constant is changed in response to the
2) x is rewritten to the current cycle information tt, and the constant TTW is rewritten to (31/16) x current cycle information tt.

つまり、後述するように、リラテイブオフの処理がな
されたときに限り、STEP=5となるが、そのときは、ピ
ツチ変更を行なうことなく時定数チエンジを行なう。こ
の時定数チエンジの処理とは、第2図の時定数変換制御
回路TTC内部のレジスタに今回の周期情報ttの値に基づ
くデータをマイコンMCPがセツトすることをいう。これ
は、既に説明したとおりである。
That is, as will be described later, STEP = 5 is obtained only when the rela- tive-off process is performed. In that case, the time constant change is performed without performing pitch change. The processing of the time constant change means that the microcomputer MCP sets data based on the value of the current cycle information tt in a register inside the time constant conversion control circuit TTC of FIG. This is as described above.

続くS621は、既に第9図のS310にて説明したものと同
じであつて、S621では、今回抽出した周期ttと定数HFOP
との差がHFOPの5%以内か否かジヤツジし、このS621で
Yならば、S622において、レジスタANEへ1/40の値をセ
ツトし、S621でNならば、S623において、レジスタANE
へ1/20の値をセツトする。そして、メインルーチンへリ
ターン(RET.)する。従つて以上述べたようにルーチン
は、第11図に示す通り次の処理がなされる。すなわ
ち、HNC=1、MT=0=b、RIV=1、FOFR←0、tt←
(t−TF)、RIV←0、TF←t、e←AMP(0)、AMP
(0)←c、h←TTP、TTP←tt、VEL←cであり、さら
に、 TTP≒TTR≒tt、 TTU<tt<TTW、 AMP(0)−c<NCHLV の3条件での満足で、ttに従つたピツチ変更を行なう。
しかる後、TTU←(17/32)×tt、TTW←(31/16)×ttが
なされる。そしてANE←1/20又は1/40を行う。
The following S621 is the same as that already described in S310 of FIG. 9, and in S621, the cycle tt extracted this time and the constant HFOP
Judge whether or not the difference is within 5% of HFOP. If Y in S621, set the value of 1/40 to register ANE in S622. If N in S621, set register ANE in S623.
Set the value of 1/20 to Then, the process returns to the main routine (RET.). Therefore, as described above, the routine performs the following processing as shown in FIG. That is, HNC = 1, MT = 0 = b, RIV = 1, FOFR ← 0, tt ←
(T-TF), RIV ← 0, TF ← t, e ← AMP (0), AMP
(0) ← c, h ← TTP, TTP ← tt, VEL ← c, and further satisfying the three conditions of TTP ≒ TTR ≒ tt, TTU <tt <TTW, AMP (0) −c <NCHLV, Make pitch change according to tt.
Thereafter, TTU ← (17/32) × tt and TTW ← (31/16) × tt are performed. Then, ANE ← 1/20 or 1/40 is performed.

従つて、ルートにて、実際の音源SSに対するピツチ
変更が行なわれ、続くゼロクロスインタラプトでルート
の処理、同様に、続くゼロクロスインタラプトで、ル
ートの処理が行なわれる。このようにして、ルート
では、単に周期を抽出(S67参照)し、ルートでは実
際のピツチ変更(S61参照)し、時定数チエンジ処理(S
62参照)が行なわれることになる。
Therefore, the pitch of the actual sound source SS is changed in the route, and the route processing is performed in the subsequent zero cross interrupt, and similarly, the route processing is performed in the subsequent zero cross interrupt. Thus, in the route, the period is simply extracted (see S67), and in the route, the actual pitch is changed (see S61), and the time constant change processing (S67) is performed.
62).

なお、STEP4におけるS40において、ルートのS66で
波形ナンバーカウンタHNCが3を越えるように、カウン
トアツプされた後は、Yの判断がなされ、次にS41へ行
き、リラテイブオンの条件を検出する。これ、c−AMP
(b)>TRLRLであり、前回の振幅値AMRL1に比べて今回
の振幅値がしきい値TRLRLを越えて増大したとき、つま
り、これは弦操作後に同じ弦を再度ピツキングしたとき
(トレモロ奏法などによる)にこのようなことがおき、
この場合はS41でリラテイブオンの処理をすべくS41から
S78へ進み、時定数変換制御回路TCCの時定数チエンジレ
ジスタCHTRRへ最高音フレツト(例えば22フレツト)の
周期CHTIMをセツトする。しかる後、第5図のS06へ進
み、当該発音中の楽音をノートオフした後、再発音開始
する。
In step S40 in step 4, after counting up so that the waveform number counter HNC exceeds 3 in step S66, a determination of Y is made, and then the process goes to step S41 to detect the condition of relative on. This, c-AMP
(B)> TRLRL, and when the current amplitude value exceeds the threshold value TRLRL as compared with the previous amplitude value AMRL1, that is, when the same string is picked again after the string operation (such as tremolo playing method) According to this)
In this case, from S41 to perform the relativity on processing in S41
Proceeding to S78, the cycle CHTIM of the highest tone fret (for example, 22 fret) is set in the time constant change register CHTRR of the time constant conversion control circuit TCC. Thereafter, the process proceeds to S06 in FIG. 5, and after note-off of the musical tone being sounded, re-sounding is started.

通常の演奏操作によれば、S40、S41、S42へ進み、上
述したルートもしくはルートへ進む。
According to the normal performance operation, the process proceeds to S40, S41, and S42, and proceeds to the above-described route or route.

次に第12図、第13図を参照し、リラテイブオン処理を
説明する。つまり、フレツト操作している状態から、開
放弦状態へ移行すると、波形の振幅レベルは急激に落ち
てきて、前々回の波高値AMRL2と前回の波高値AMRL1との
差がANE・AMRL2を越えるようになると、S46からS74へ進
む。ここでレジスタANEの値は、当該音高が開放弦の1
オクターブ上の音高であれば1/40であり、それ以外の場
合は1/20である。従つて、前者の方が、波形信号のゆる
やかな減衰についても、リラテイブオフの処理を行うこ
とになる。そして、リラテイブオンカウンタFOFRが定数
ROFCTを越えるまでカウントアツプするようにS74からS7
5へ進む。このとき、S75からS48へ行きS49〜S55の処理
を行なうが、FOFR=0でないので、リラテイブオン処理
に入る直前ではピツチ変更をおこなうことなくメインル
ーチンへ戻る。
Next, the relative-on process will be described with reference to FIGS. In other words, when shifting from the fret operation state to the open string state, the amplitude level of the waveform suddenly drops, and the difference between the previous peak value AMRL2 and the previous peak value AMRL1 exceeds ANEAMRL2. Then, the process proceeds from S46 to S74. Here, the value of the register ANE is such that the pitch is 1 for an open string.
If the pitch is one octave above, it is 1/40, otherwise it is 1/20. Therefore, the former performs relaive-off processing even for gentle attenuation of the waveform signal. And the relative on-counter FOFR is a constant
S74 to S7 to count up until ROFCT is exceeded
Proceed to 5. At this time, the process goes from S75 to S48 and performs the processes of S49 to S55. However, since FOFR is not 0, the process returns to the main routine without changing the pitch immediately before the start of the relativ-on process.

そして、S74でNと判断すると、つまり第13図の例で
は、FOFRの値が3となつたとき(ROFCTは2である)、S
74からS76へいく。
When it is determined as N in S74, that is, in the example of FIG. 13, when the value of FOFR becomes 3 (ROFCT is 2), S
Go from 74 to S76.

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

そして、S74からS76へ行くと、リラテイブオフカウン
タFOFRをリセツトし、レジスタSTEPを5とし、S77へ進
んで音源SSに対しノートオフを指示する。このSTEPが5
の状態では、ピツチ抽出処理をSTEP4の時と同様に実行
するが、S60からS61を介することなくS62へ進むので、
音源SSに対しては、ピツチ変更はされない。ただし、S6
2において抽出した周期に従つて時定数チエンジ処理を
行なう。
Then, when going from S74 to S76, the relative off counter FOFR is reset, the register STEP is set to 5, and the process proceeds to S77 to instruct the sound source SS to turn off the note. This STEP is 5
In the state of, the pitch extraction processing is executed in the same manner as in STEP 4, but since the processing proceeds from S60 to S62 without passing through S61,
The pitch is not changed for the sound source SS. However, S6
Time constant change processing is performed according to the cycle extracted in 2.

そして、STEPが5の状態では、リラテイブオンの処理
を受付けるが(S41、S78)、それ以外の場合では、第4
図のメインフローの中で、振動レベルが減少してきたこ
とが検知されることによりM14でSTEPが0となり、初期
状態にもどる。
Then, in the state of STEP 5, the relativity-on process is accepted (S41, S78).
In the main flow of 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周期の中でレベルが大な方のピーク(最大ピーク
と最小ピークとの一方)が、この値とされ、第13図の例
では、最大ピーク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 larger level (one of the maximum peak and the minimum peak) in one cycle is set to this value, and FIG. In the example, the maximum peak a k is always larger than the minimum peak b k −1, and an + 1 and an + 2, an + 2 and an + 3, an
Both the difference between +3 and an + 4 exceeds a predetermined value.

また、このときルートの処理においては、最小ピー
クbn+1、bn+2、bn+3が極端に減少してきているの
で、S54でNの判断が成されて、メインルーチンへリタ
ーンし、ピツチ変更処理はなされない。
At this time, in the route processing, since the minimum peaks bn + 1, bn + 2, and bn + 3 have been extremely reduced, the determination of N is made in S54, and the process returns to the main routine, and the pitch change processing is not performed.

次に、ピツチ抽出しているなかで、オクターブ関係に
ある倍温、つまりオクターブ高い音やオクターブ低い音
が続けて検出されたときの処理について説明する。
Next, a description will be given of a process performed when a double temperature having an octave relationship, that is, a high octave sound or a low octave sound is continuously detected during pitch extraction.

既に説明したように、S58ではttがTTUを越えなかつた
とき、つまり、前回抽出した周期の17/32倍した値TTUよ
り小になつたとき、S76へ進む。つまり、オクターブ高
い音が抽出されたときは、指定していたフレツトから指
を離してミユート操作をした場合とみなし、オクターブ
高い音を出力することなく、S58からS76へ行き、リラテ
イブオフ時同様S76、S77の処理によつて当該音の発音を
停止する。
As described above, in S58, when tt does not exceed the TTU, that is, when it 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 the finger has been released from the designated fret and the mute operation has been performed.Then, the output goes from S58 to S76 without outputting an octave higher sound, and S76, as in the case of relative off, is output. The sound generation of the sound is stopped by the processing of S77.

また、S59では、ttがTTWを越えなかつたとき、つまり
前回抽出した周期の31/16倍した値TTWより大となつたと
き、S60へ進むことなく、メインルーチンヘリターンす
る。
In S59, when tt does not exceed TTW, that is, when ttW is larger than the value TTW which is 31/16 times the previously extracted cycle, the process returns to the main routine without proceeding to S60.

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

このような場合、何等処理を施さないと、急にオクタ
ーブ下の音を出力してしまい、極めて不自然となる。そ
のために、S57、S56でTan+2≒Tan+3≒Tbn+2が検
出されても、Tan+3>Tan+1×(31/16)となるの
で、ピツチ変更することなく、S59からメインルーチン
へリターンする。
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 S57 and S56, since Tan + 3> Tan + 1 × (31/16), the process returns from S59 to the main routine without changing the pitch.

次に、ダブリの波形が抽出される場合つまり、同じ極
性のゼロクロス点が続けて到来する場合について説明す
る。第15図は、MT=1の場合の例を示しており、基本波
周期と倍音成分の周期が非整数倍の関係にあるので、倍
音の位相がずれて行き、同じ極性のゼロクロスを検出を
してしまうことになり、そのために誤つたピツチ変更を
しないようにしないといけない。
Next, a case where a doubled waveform is extracted, that is, a case where zero-cross points having the same polarity continuously arrive will be described. FIG. 15 shows an example in the case of MT = 1. Since the fundamental wave period and the period of the harmonic component are non-integer multiples, the phases of the harmonics are shifted, and the zero crossings of the same polarity are detected. You have to make sure you don't make the wrong pitch changes.

そこで、図のダブリと書いてあるゼロクロス時のSTEP
4の処理では、S42からS43へ行き、S43ではYの判断をし
てS72へ行く。ここで、(an+3)と(an+2)の大き
さが比較され、もし(an+3)が(an+2)より大であ
れば、S72でYの判断をし、AMP(1)に、(an+3)の
値をセツトし、もし逆の場合は何等変更処理をしない。
Therefore, STEP at the time of zero cross written as double in the figure
In the process of 4, the process goes from S42 to S43, and in S43, the determination of Y is made and the process goes to S72. Here, the magnitudes of (an + 3) and (an + 2) are compared. If (an + 3) is greater than (an + 2), a determination of Y is made in S72, and the value of (an + 3) is added to AMP (1). Is set, and if not, no change processing is performed.

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

同様に、第16図は波形のダブリの場合の例で、MT=0
の状態を示している。このときも、図中にダブリと示し
ているところで、ダブリの状態が生じている。このとき
は、S42からS63へ行き、Yの判断をしてS68へ行く。S68
では、いまの場合(an+2)と(an+3)との比較をし
て、(an+3)が(an+2)より大なときに限りS69へ
行き、AMP(1)を書替える。この場合は、更に前回の
振幅値AMRL1と今回の振幅情報(波高値c)の比較をS70
で行なつても、もしYならばS71へ進み、今回の振幅情
報cを前回の振幅値AMRL1へセツトする。
Similarly, FIG. 16 shows an example of the case of doubled waveform, where MT = 0.
The state of is shown. At this time as well, the state of double doubling occurs where double doubling is indicated in the figure. At this time, the process goes from S42 to S63, makes a Y determination, and goes to S68. S68
Then, in this case, (an + 2) is compared with (an + 3), and only when (an + 3) is larger than (an + 2), the flow goes to S69 to rewrite AMP (1). In this case, the comparison between the previous amplitude value AMRL1 and the current amplitude information (peak value c) is further performed in S70.
If Y, the process proceeds to S71, and the current amplitude information c is set to the previous amplitude value AMRL1.

このようにして、倍音の影響で、波形がダブつたとき
にも、S56、S57を満足しない限りピツチ変更処理はなさ
れないことになる。
In this way, even when the waveform is doubled due to the overtone, the pitch change processing is not performed unless S56 and S57 are satisfied.

このように、本実施例によれば、抽出されたピツチが
当該弦の開放弦音高の略1オクターブ上の音高(HFOP)
を示すものか否かをジヤツジし(第9図S310及び第10図
S621参照)、その結果フレツトから指を離しても減衰が
おそい前記開放弦音高の略1オクターブ上の音高である
ことがわかると、リラテイブオフをジヤツジする際の減
衰率を決める値を緩やかなもの、即ちANEを1/40とし
(同S311、同定S622)、その他の場合はANEを1/20とし
(同S312、同S623)とする。そして、リラテイブオフの
条件を、第10図のS46に示すとおり、AMRL2−AMRL1ANE
・AMRL2としている。
As described above, according to this embodiment, the extracted pitch is a pitch (HFOP) that is approximately one octave above the open string pitch of the string.
Judgment is made as to whether or not it indicates (FIGS. 9 S310 and FIG. 10)
As a result, even if the finger is released from the fret, it is found that the pitch is approximately one octave higher than the open string pitch, and if the pitch is determined to be approximately one octave higher than the open string pitch, the value that determines the damping rate when the relative off is judged is set to a gradual value. That is, ANE is set to 1/40 (S311, identification S622), and in other cases, ANE is set to 1/20 (S312, S623). Then, as shown in S46 of FIG. 10, the condition of the relaive off is set to AMRL2-AMRL1ANE.
・ AMRL2.

このようにすることで、開放弦音高の略1オクターブ
上の音高のフレツト操作をして弦をピツキングした状態
から、指をフレツトから離してミユートした状態に変化
したとしても、そのミユート操作は確実に検知でき、他
の音高のフレツト操作からミユート操作した場合同様の
結果を得ることが可能となる。
By doing so, even if the fret operation is performed at a pitch approximately one octave higher than the open string pitch and the string is picked, the finger is released from the fret and muted. It is possible to surely detect the same, and it is possible to obtain the same result when performing a muting operation from a fret operation of another pitch.

また、上記実施例によれば、入力波形信号の最大ピー
ク値の絶対値と最小ピーク値の絶対値の大きい方の波形
信号レベルの減衰率が所定割合量以上であれば、消音動
作を行なうようにしたので、片側の減衰した入力波形信
号(これはローパスフイルタを通つた波形は、一般に上
下対称でなくなることによる)や、波高値の小さな領域
の入力波形信号であつても、リラテイブオフの検出が可
能であり、演奏者がミユート指示した楽音が発音され続
けることがなくなる。
Further, according to the above embodiment, if the attenuation rate of the waveform signal level of the larger of the absolute value of the maximum peak value and the absolute value of the minimum peak value of the input waveform signal is greater than or equal to the predetermined ratio, the mute operation is performed. Therefore, even if the input waveform signal is attenuated on one side (this is because the waveform passing through a low-pass filter is generally not vertically symmetrical), or even if the input waveform signal is in an area where the peak value is small, the relative off detection can be performed. It is possible, and the tone which the player instructed to mute does not continue to be emitted.

すなわち、第10図のS64で示すように、前回の振幅値A
MRL1として一周期の内で一番大きな波高値が入力される
ようになつていて、一周期前のその値は、前々回の振幅
値AMRL2にしまわれるようになつていて、しかもS46に示
すように振幅値AMRL1とAMRL2の減衰割合からリラテイブ
オフを判断しており、この条件を所定回数連続して満足
すれば、消音操作がなされたものとして、S74、S76、S7
7へと進み、ノートオフする。この場合、減少の回数を
カウントするのが、リラテイブオフカウンタFOFRでは、
所定回数を定めているのが、定数ROFCTである。また、S
47で示すとおり一度でもANE・AMRL2以上の減少がなけれ
ば、カウンタFOFRはクリアされる(第13図参照)。
That is, as shown by S64 in FIG. 10, the previous amplitude value A
The largest peak value in one cycle is input as MRL1, the value one cycle before is stored in the amplitude value AMRL2 two times before, and as shown in S46 Relative off is determined from the attenuation ratio of the amplitude values AMRL1 and AMRL2, and if this condition is satisfied continuously for a predetermined number of times, it is determined that the mute operation has been performed, and S74, S76, S7
Go to 7 and take note off. In this case, it is the relative off counter FOFR that counts the number of reductions.
The constant ROFCT defines the predetermined number of times. Also, S
As shown by 47, the counter FOFR is cleared if there is no decrease of ANE AMRL2 or more even once (see FIG. 13).

このようなことから、この実施例によれば、片側の減
衰した入力波形信号や、波高値の小さな領域の入力波形
信号であつても、リラテイブオフの検出が可能である。
For this reason, according to this embodiment, it is possible to detect the relative off even if the input waveform signal is attenuated on one side or the input waveform signal is in an area where the peak value is small.

なお、波形信号のピーク値の減衰を検知するのは、上
記実施例に限らず他のやり方であつても良い。例えば、
弦操作にともない発生する波形信号の最大ピーク値(正
側のピーク値)と最小ピーク値(負側のピーク値)との
双方が、ともに所定レベル以上減衰したことを検知して
リラテイブオフ処理を行うようにする。
The detection of the peak value attenuation of the waveform signal is not limited to the above embodiment, but may be another method. For example,
When both the maximum peak value (positive peak value) and the minimum peak value (negative peak value) of the waveform signal generated by the string operation are both attenuated by a predetermined level or more, the relative off process is performed. To do.

この場合も、抽出したピツチが開放弦音高の略1オク
ターブ上の音高を示すときは、ピーク値の減衰割合の条
件を緩やかにして、他の音高に比して、少ない減衰割合
の検知にて消音指示を行うようにする。
Also in this case, if the extracted pitch indicates a pitch that is approximately one octave above the open string pitch, the condition of the peak value attenuation ratio is made milder, and a smaller attenuation ratio is detected as compared with other pitches. To give a mute instruction.

また、前記実施例においては、最大ピーク点、最小ピ
ーク点の次のゼロクロス点毎の間隔から周期抽出を行な
うようにしたが、その他の方式、例えば最大ピーク点間
や最小ピーク点間の時間間隔から周期抽出をおこなつて
もよい。また、それに合せて回路構成は種々変更し得
る。
Further, in the above-described embodiment, the period is extracted from the interval of each zero crossing point next to the maximum peak point and the minimum peak point. However, other methods, such as the time interval between the maximum peak point and the minimum peak point, are used. May be extracted. Further, the circuit configuration can be variously changed in accordance with it.

更に、前回実施例においては、この発明を電子ギター
(ギターシンセサイザ)に適用したものであつたが、そ
れに限らない。ピツチ抽出を行なつて、オリジナルの信
号とは別の音響信号を発生するタイプの楽器または装置
であれば、種々適用可能である。
Furthermore, in the previous embodiment, the present invention was applied to an electronic guitar (guitar synthesizer), but is not limited to this. The present invention is applicable to various types of musical instruments or devices that generate a sound signal different from the original signal by performing pitch extraction.

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

以上述べたとおり、本発明によれば、前記ピッチ検出
手段が検出する弦振動ピッチが、開放弦の1オクターブ
上の音高に略一致するピッチであるか否かを判定し、楽
音発生指示手段の指示による楽音発生中に、前記判定手
段が振動中の弦のピッチが開放弦の1オクターブ上の音
高に略一致するピッチであると判定した場合、振幅検出
手段が検出する弦振動の振幅が第1の所定値以上になる
と、前記発生中の楽音の消音を指示すると共に、前記判
定手段が振動中の弦のピッチが開放弦の1オクターブ上
の音高に略一致するピッチでないと判定した場合、前記
振幅検出手段が検出する前記振幅の減衰率が前記第1の
所定値より大きい第2の所定値以上にななると、前記発
生中の楽音の消音を消音指示 手段が指示するようにしたので、如何なる音高について
のミユート操作も確実に検知でき、演奏者の意図した消
音が行える。
As described above, according to the present invention, it is determined whether or not the string vibration pitch detected by the pitch detecting means is a pitch substantially matching the pitch one octave above the open string, and If the determining means determines that the pitch of the vibrating string is substantially equal to the pitch one octave above the open string during the generation of the musical tone according to the instruction of the above, the amplitude of the string vibration detected by the amplitude detecting means Is greater than or equal to a first predetermined value, the instructing means to mute the musical tone being generated and determine that the pitch of the vibrating string is not substantially equal to the pitch one octave above the open string. In this case, when the attenuation rate of the amplitude detected by the amplitude detection means becomes equal to or more than a second predetermined value larger than the first predetermined value, the mute instruction means instructs mute of the musical tone being generated. What pitch Can be reliably detected, and the sound intended by the player can be muted.

【図面の簡単な説明】 第1図は本発明による電子楽器の入力制御装置の全体の
構成を示すブロツク図、第2図は第1図のピツチ抽出デ
ジタル回路の一例を示すブロツク図、第3図は第2図の
マイコンの割込み処理ルーチンを示すフローチヤート、
第4図は第2図のマイコンのメイン処理ルーチンを示す
フローチヤート、第5図〜第7図および第9図、第10図
はいずれも第2図のマイコンの各ステツプの動作を説明
するためのフローチヤート、第8図、第11図〜第17図は
いずれも各ステツプの動作を説明するためのタイミング
チヤートである。 PA……ピツチ抽出アナログ回路、PD……ピツチ抽出デジ
タル回路、MCP……マイコン、SS……音源、PEDT……ピ
ーク検出回路、ZTS……ゼロクロス時刻取込回路、TCC…
…時定数変換制御回路、PVS……波高値取込み回路。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing the overall configuration of an electronic musical instrument input control device according to the present invention; FIG. 2 is a block diagram showing an example of a pitch extraction digital circuit shown in FIG. 1; FIG. 4 is a flowchart showing an interrupt processing routine of the microcomputer of FIG.
FIG. 4 is a flowchart showing a main processing routine of the microcomputer of FIG. 2, and FIGS. 5 to 7, 9 and 10 are for explaining the operation of each step of the microcomputer of FIG. 8 and FIGS. 11 to 17 are timing charts for explaining the operation of each step. 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 …… Crest value capture circuit.

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】弦振動の振幅を検出する振幅検出手段と、 前記弦振動のピッチを検出するピッチ検出手段と、 前記ピッチ検出手段が検出したピッチに対応する音高の
楽音の発生を指示する楽音発生指示手段と、 前記ピッチ検出手段が検出するピッチが、開放弦の1オ
クターブ上の音高に略一致するピッチか否かを判定する
判定手段と、 前記楽音発生指示手段の指示による楽音発生中に、前記
判定手段が振動中の弦のピッチが開放弦の1オクターブ
上の音高に略一致するピッチであると判定した場合、前
記振幅検出手段が検出する前記振幅の減衰率が第1の所
定値以上になると、前記発生中の楽音の消音を指示する
と共に、前記判定手段が振動中の弦のピッチが開放弦の
1オクターブ上の音高に略一致するピッチでないと判定
した場合、前記振幅検出手段が検出する前記振幅の減衰
率が第1の所定値より大きい第2の所定値以上になる
と、前記発生中の楽音の消音を指示する消音指示手段と を有することを特徴とする電子弦楽器。
1. An amplitude detecting means for detecting an amplitude of a string vibration; a pitch detecting means for detecting a pitch of the string vibration; and an instruction to generate a musical tone having a pitch corresponding to the pitch detected by the pitch detecting means. Musical tone generation instructing means; determining means for determining whether the pitch detected by the pitch detecting means is substantially equal to a pitch one octave above the open string; If the determining means determines that the pitch of the vibrating string is substantially equal to the pitch one octave above the open string, the amplitude detecting means determines that the attenuation rate of the amplitude is equal to the first pitch. When the predetermined value is equal to or greater than the predetermined value, the sound generation tone is instructed to be silenced, and when the determination unit determines that the pitch of the vibrating string is not substantially equal to the pitch one octave above the open string, Said shake And a mute instruction means for instructing mute of the musical tone being generated when an attenuation rate of the amplitude detected by the width detection means becomes equal to or more than a second predetermined value larger than a first predetermined value. String instruments.
【請求項2】前記振幅検出手段は、前記弦振動に対応す
る電気信号の振幅を前記弦振動の振幅として検出し、 前記消音指示手段は、前記振幅検出手段が検出する前記
振幅の正負の減衰率の少なくとも一方に基づいて前記消
音指示を行う ことを特徴とする請求項1記載の電子弦楽器。
2. The amplitude detecting means detects an amplitude of an electric signal corresponding to the string vibration as an amplitude of the string vibration, and the muffling instruction means includes a positive / negative decay of the amplitude detected by the amplitude detecting means. The electronic stringed musical instrument according to claim 1, wherein the mute instruction is performed based on at least one of the rates.
【請求項3】前記振幅検出手段は、前記弦振動に対応す
る電気信号の振幅を前記弦振動の振幅として検出し、 前記消音指示手段は、前記振幅検出手段が検出する前記
振幅の正負の減衰率の双方に基づいて前記消音指示を行
う ことを特徴とする請求項1記載の電子弦楽器。
3. The amplitude detecting means detects an amplitude of an electric signal corresponding to the string vibration as an amplitude of the string vibration, and the muffling instruction means includes a positive / negative decay of the amplitude detected by the amplitude detecting means. The electronic stringed musical instrument according to claim 1, wherein the mute instruction is performed based on both of the rates.
JP62336412A 1987-12-28 1987-12-28 Electronic string instrument Expired - Lifetime JP2591001B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62336412A JP2591001B2 (en) 1987-12-28 1987-12-28 Electronic string instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62336412A JP2591001B2 (en) 1987-12-28 1987-12-28 Electronic string instrument

Publications (2)

Publication Number Publication Date
JPH01177084A JPH01177084A (en) 1989-07-13
JP2591001B2 true JP2591001B2 (en) 1997-03-19

Family

ID=18298863

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62336412A Expired - Lifetime JP2591001B2 (en) 1987-12-28 1987-12-28 Electronic string instrument

Country Status (1)

Country Link
JP (1) JP2591001B2 (en)

Also Published As

Publication number Publication date
JPH01177084A (en) 1989-07-13

Similar Documents

Publication Publication Date Title
JP2615825B2 (en) Electronic string instrument
JP2805598B2 (en) Performance position detection method and pitch detection method
JP2734521B2 (en) Music control device
US5048391A (en) Electronic musical instrument for generating musical tones on the basis of characteristics of input waveform signal
EP0722160B1 (en) Method for recognition of the start and end of a note in the case of percussion or plucked musical instrument
US5147970A (en) Electronic musical instrument for generating musical tones on the basis of characteristics of input waveform signal
US4924746A (en) Input apparatus of electronic device for extracting pitch from input waveform signal
JP2591001B2 (en) Electronic string instrument
JP2661066B2 (en) Sound control device
JP2722584B2 (en) Music control device
JP2611263B2 (en) Sound control device
JP2775633B2 (en) Music control device
JP2591000B2 (en) Electronic string instrument
JP2661065B2 (en) Sound control device
JP2605773B2 (en) Electronic string instrument
JP2661481B2 (en) Electronic musical instrument
JP2530928Y2 (en) Electronic musical instrument level display
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
JP2005189600A (en) Electronic stringed instrument
JP2014153434A (en) Electronic stringed instrument, musical sound generation method and program
JPH01100597A (en) Electronic musical instrument
JP6361109B2 (en) Electronic stringed instrument, musical sound control method and program