JPS63261390A - Input controller for electronic musical instrument - Google Patents

Input controller for electronic musical instrument

Info

Publication number
JPS63261390A
JPS63261390A JP62095442A JP9544287A JPS63261390A JP S63261390 A JPS63261390 A JP S63261390A JP 62095442 A JP62095442 A JP 62095442A JP 9544287 A JP9544287 A JP 9544287A JP S63261390 A JPS63261390 A JP S63261390A
Authority
JP
Japan
Prior art keywords
register
peak
pitch
value
cpu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP62095442A
Other languages
Japanese (ja)
Other versions
JP2581068B2 (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 JP62095442A priority Critical patent/JP2581068B2/en
Publication of JPS63261390A publication Critical patent/JPS63261390A/en
Application granted granted Critical
Publication of JP2581068B2 publication Critical patent/JP2581068B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [発明の技術分野] この発明は電子ギターなどの電子楽器の入力制御装置に
関し、特にトレモロ演奏を行わなくても、再発音が行わ
れてしまうような誤動作を防止するものに一関するもの
である。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention relates to an input control device for an electronic musical instrument such as an electronic guitar, and is intended to prevent malfunctions such as re-sounding even when no tremolo performance is performed. It has something to do with things.

[発明の背景] 従来より、自然楽器の演奏操作によって発生する波形信
号からピッチ(基本周波数)を抽出し、電子回路で構成
された音源装置を制御して1人工的に楽音等の音1を得
るようにしたものが種々開発されている。
[Background of the Invention] Conventionally, the pitch (fundamental frequency) is extracted from a waveform signal generated by the performance operation of a natural musical instrument, and a sound source device composed of an electronic circuit is controlled to artificially generate a sound 1 such as a musical tone. Various devices have been developed to achieve this goal.

この種の電子楽器では、入力波形信号のピッチを抽出し
てから音源装置に対し当該ピッチに対応する音階音を発
生するよう指示するのが一般的である。
In this type of electronic musical instrument, it is common to extract the pitch of an input waveform signal and then instruct the sound source device to generate a scale tone corresponding to the pitch.

このような電子楽器につき、トレモロ奏法のような演奏
操作をしたとき、つまり弦振動がなされている楽音の発
音中に、さらにピッキング操作をしたときに、再発音を
行うようにするため、本願出願人は、楽音の発音中に入
力波形信号のレベルが急激に増大したことを検知した場
合には、再度発音開始指令を与えてリラティブオン(r
elative on )処理を行い、音量や音色など
を変化することにより、実際の演奏操作に追従できるよ
うにしたものを出願した(特願昭61−285985号
)。
The present application has been filed in order to enable re-sounding when a picking operation is performed on such an electronic musical instrument when a performance operation such as a tremolo technique is performed, that is, when a musical tone is produced by string vibration, and when a picking operation is performed. If a person detects that the level of the input waveform signal has suddenly increased while a musical tone is being generated, the user issues a command to start generating the tone again and turns on the relative signal (r
An application was filed (Japanese Patent Application No. 61-285985) that was able to follow the actual performance operations by performing ``elative on'' processing and changing the volume, tone color, etc.

ところが、入力波形信号の波形の各部分は放音時間の経
過とともに除々に変化しており、特に第7図(a)に示
すような、−周期の中にαの山とβの山が混在する倍音
成分の多い入力波形信号の場合に、αの山が除々に小さ
くなっていくのに対し、βの山が除々に大きくなってい
くと、αの山のレベル値とβの山のレベルイ1が逆転す
るan・4〜an+5の付近で、波形のレベル値が増大
してしまい、トレモロ操作していないにもかかわらず。
However, each part of the waveform of the input waveform signal gradually changes as the sound emission time passes, and in particular, as shown in FIG. In the case of an input waveform signal with many overtone components, the peak of α gradually becomes smaller, but when the peak of β gradually increases, the level value of the peak of α and the level of the peak of β become smaller. The level value of the waveform increases near an-4 to an+5, where 1 is reversed, even though no tremolo operation is being performed.

リラティブオン(再発音)処理が行われて、新たな楽音
の放音が行われてしまうという問題があった。
There has been a problem in that relative-on (re-sounding) processing is performed and a new musical tone is emitted.

このことは、入力波形信号の一周期の中に存在する山や
谷の数がより多くなるほど多発していた。
This phenomenon occurred more frequently as the number of peaks and valleys that existed in one cycle of the input waveform signal increased.

[発明の目的] この発明は」二記事thに鑑みてなされたもので、倍音
成分の多い入力波形信号が放音時間の経過とともに除々
に変化していく場合に、トレモロ演奏がなされていなく
ても、再発音が行われてしまう誤動作を防止して、楽音
の発音処理をより確実なものにできる電子楽器の入力装
置を提供することを目的とする。
[Purpose of the Invention] This invention has been made in view of Article 2 th, and it is possible to perform a tremolo performance when an input waveform signal with many overtone components gradually changes as the sound emission time passes. Another object of the present invention is to provide an input device for an electronic musical instrument that can prevent malfunctions that result in re-sounding and can more reliably process musical tones.

[発明の要点] この目的を達成するため、本発明は、第711(d)に
示すように、入力波形信号の一周期内のαとβで示す各
部分のレベルが、放音時間の経過に従って除々に変化し
て逆転するとぎに、波形の一周期として抽出するピッチ
データが急激に小さくなることに着目し、過去のピッチ
データに対して現在のピッチデータが一致しなくなった
ときには、再発音の開示指示を行わないようにしたこと
を要点とするものである。
[Summary of the Invention] In order to achieve this object, the present invention provides that, as shown in Section 711(d), the level of each portion indicated by α and β within one period of an input waveform signal is We focused on the fact that when the waveform gradually changes and reverses, the pitch data extracted as one cycle of the waveform suddenly becomes smaller. The key point is that the disclosure instructions are not given.

[実施例] 以下、本発明を電子ギターに適応した一実施例について
図面を参照して詳述する。
[Embodiment] Hereinafter, an embodiment in which the present invention is applied to an electronic guitar will be described in detail with reference to the drawings.

本実施例では、以下に説明するとおりA/Dコンバータ
11、ラッチ12、オアゲート13、フリップフロップ
14.15、最大ピーク検出回路4、最小ピーク検出回
路5が検出手段に、ステップS35.58〜S目を実行
するCPU100が指示手段に、ステップ326、S2
1を実行するCPU100が測定手段に、ワークメモリ
101の0LDPレジスタが記憶手段に、ステップS3
4を実行するCPU100が判別手段及び指示禁止手段
に夫々対応する。
In this embodiment, as described below, the A/D converter 11, latch 12, OR gate 13, flip-flop 14.15, maximum peak detection circuit 4, and minimum peak detection circuit 5 serve as the detection means, and steps S35.58 to S35. The CPU 100, which executes
In step S3, the CPU 100 executing Step 1 serves as a measuring means, and the 0LDP register of the work memory 101 serves as a storage means.
The CPU 100 that executes step 4 corresponds to a determining means and an instruction inhibiting means, respectively.

全体回路構成 第1図は、同実施例の全体回路構成を示しており、6つ
の入力端子lの信号は、電子ギターボディ上に張設され
た6つの弦の夫々に設けられた、弦の振動を電気信号に
変換するピックアップからの信号である。
Overall circuit configuration Figure 1 shows the overall circuit configuration of the same embodiment. Signals from the six input terminals l are connected to the strings connected to each of the six strings strung on the electronic guitar body. This is a signal from a pickup that converts vibrations into electrical signals.

入力端子l・・・・・・からの楽音信号は、ピッチ抽出
回路Pi−P6(図では第1弦のPiについてのみその
内部構成を示している。)内部の夫々のアンプ2・・・
・・・で増幅され、ローパスフィルタ(LPF)3・・
・・・・で高周波成分がカットされて基本波形が抽出さ
れ、最大ピーク検出回路(MAX)4・・・・・・、最
小ピーク検出回路(MIN)5・・・・・・及びゼロク
ロス点検出回路(Zero)6・・・・・・に与えられ
る。ローパスフィルタ3・・・・・・は、各弦の開放弦
の振動音周波数fの4倍の4fにカットオフ周波数が設
定されている。これは、各弦の出力音の周波数が2オク
タ一ブ以内であることに基づくものである。最大ピーク
検出回路4・・・・・・では、楽音信号の最大ピーク点
が検出され、その検出パルス信号の立上りで後段に接続
されているフリップフロップ14・・・・・・のQ出力
がHighレベルとなり、このフリップフロップ14・
・・・・・の出力とゼロクロス点検出回路6・・・・・
・のインバータ30・・・・・・の反転出力とのアンド
出力がアンドゲート24・・・・・・を介して割り込み
指令信号I N Tag〜I N Ta6としてCPU
100に与えられ、同様に最小ピーク検出回路5・・・
・・・でも、楽音信号の最小ピーク点が検出され、その
検出パルス信号の立上りで後段に接続されているフリッ
プフロップ15・・・・・・のQ出力がHighレベル
となり、このフリップフロップ15・・・・・・の出力
とゼロクロス点検出回路6・・・・・・の出力とのアン
ド出力がアンドゲート25・・・・・・を介して割り込
み指令信号lNTb+〜lNTb6としてCPU100
に与えられる。
Musical tone signals from the input terminals l... are sent to the respective amplifiers 2...
It is amplified by... and low pass filter (LPF) 3...
The high frequency component is cut and the basic waveform is extracted, and the maximum peak detection circuit (MAX) 4..., the minimum peak detection circuit (MIN) 5... and zero cross point detection are performed. It is given to the circuit (Zero) 6... The cutoff frequency of the low-pass filter 3 is set to 4f, which is four times the vibration sound frequency f of the open string of each string. This is based on the fact that the frequency of the output sound of each string is within two octaves. The maximum peak detection circuit 4 detects the maximum peak point of the musical tone signal, and at the rising edge of the detected pulse signal, the Q output of the flip-flop 14 connected to the subsequent stage becomes High. level, this flip-flop 14.
Output of... and zero cross point detection circuit 6...
The AND output with the inverted output of the inverter 30... is sent to the CPU as an interrupt command signal I N Tag to I N Ta6 via the AND gate 24...
100, and similarly the minimum peak detection circuit 5...
. . . However, when the minimum peak point of the musical tone signal is detected, the Q output of the flip-flop 15 connected to the subsequent stage becomes High level at the rising edge of the detection pulse signal, and this flip-flop 15 . The AND output of the output of . . . and the output of the zero cross point detection circuit 6 .
given to.

即ち、最大ピーク点が検出されてフリップフロップ14
がHighレベルになっているときに、波形が正から負
へ横切ったとき割り込み指令信号I N Tag〜r 
N TabがCPU100に与えられ、逆に最小ピーク
点が検出されてフリップロップ15がHighレベルに
なっているときに、波形が負から正に変化したとき割り
込み指令信号lNTb+〜lNTb6がCPU100に
入力する。
That is, the maximum peak point is detected and the flip-flop 14
When the waveform crosses from positive to negative while is at High level, the interrupt command signal I N Tag~r
N Tab is given to the CPU 100, and when the minimum peak point is detected and the flip-flop 15 is at a high level, when the waveform changes from negative to positive, interrupt command signals lNTb+ to lNTb6 are input to the CPU 100. .

そして、CPU100は、これらの割り込み指令信号を
受付けた直後に、対応するフリー2プフロツプ14・・
・・・・、15・・・・・・に対しクリア信号CLa+
〜CLab、  CLb+ 〜CLb6を発生してリセ
ットする。従って、次に最大ピーク点あるいは最小ピー
ク点を検出するまで何度ゼロクロス点を通過しても対応
するフリップフロップ14・・・・・・、15・・・・
・・はリセット状態であるので、CPU100には割り
込みがかからないことになる。
Immediately after receiving these interrupt command signals, the CPU 100 executes the corresponding free 2 flop 14...
Clear signal CLa+ for ..., 15...
~CLab, CLb+ ~CLb6 is generated and reset. Therefore, no matter how many times the zero cross point is passed until the next maximum peak point or minimum peak point is detected, the corresponding flip-flops 14..., 15...
... is in a reset state, so no interrupt is applied to the CPU 100.

そして、CPU100では、当該弦の振動出力により割
り込み指令信号1NTa+〜lNTa6もしくはlNT
b+〜lNTb6が与えられて、夫々の時間間隔の少な
くとも一方の時間間隔に従った音階音を発生する。尚1
発音開始時においては開放弦の音階音を発生開始してピ
ッチ抽出の後で正しい周波数に修正してもよい、この発
音開始時の動作については後述する。
Then, in the CPU 100, an interrupt command signal 1NTa+ to lNTa6 or lNT is generated based on the vibration output of the string.
b+ to lNTb6 are given, and a scale tone according to at least one of the respective time intervals is generated. Sho 1
At the start of sound generation, the generation of open string scale tones may be started, and the frequency may be corrected after pitch extraction.The operation at the start of sound generation will be described later.

そして、上記時間間隔は、後述するようにカウンタ7と
、ワークメモリlotとを用いて求める。即ち、このワ
ークメモリ101には、最大ピーク点の直後あるいは最
小ピーク点の直後のゼロクロス点時のカウンタ7のカウ
ント値など各種データが記憶される。
The above-mentioned time interval is determined using a counter 7 and a work memory lot, as will be described later. That is, the work memory 101 stores various data such as the count value of the counter 7 at the zero cross point immediately after the maximum peak point or immediately after the minimum peak point.

そして、発音開始後は、順次求まる時間間隔データに従
って、発生中の楽音の周波数を可変制御してゆく、即ち
CPU100より音階を指定するデータを周波数ROM
8へ送出し、その結果対応する周波数を示す周波数デー
タが読み出され。
After the sound generation starts, the frequency of the musical tone being generated is variably controlled according to the time interval data determined sequentially. In other words, data specifying the scale is transferred from the CPU 100 to the frequency ROM.
8, and as a result, frequency data indicating the corresponding frequency is read out.

音源回路9に送られて楽音信号が生成され、サウンドシ
ステム10より放音出力される。
A musical tone signal is generated by being sent to the sound source circuit 9, and outputted from the sound system 10.

また、上記ローパスフィルタ3・・・・・・からの楽音
信号は、A/Dコン八−へ11・・・・・・に与えられ
、その波形レベルに応じたデジタルデータに変換される
Further, the musical tone signals from the low-pass filters 3, . . . are applied to A/D converters 11, . . ., and are converted into digital data according to the waveform level thereof.

そして、このA/Dコンバータ11・・・・・・の出力
はラッチ12・・・・・・にラッチされる。このラッチ
12・・・・・・に対するラッチ信号は、上記フリップ
フロップ14・・・・・・、15・・・・・・の出力が
オアゲート13・・・・・・を介することで生成され、
最大ピーク点もしくは最小ピーク点を通過する都度ラッ
チ12・・・・・・にはそのときの波形のレベルを示す
信号が記憶される。また、このオアゲート13・・・・
・・からのラッチ信号LINL6はCPU100にも与
えられる。
The outputs of the A/D converters 11... are latched by the latches 12.... The latch signal for this latch 12... is generated by the output of the flip-flops 14..., 15... via the OR gate 13...
Each time a maximum peak point or a minimum peak point is passed, a signal indicating the level of the waveform at that time is stored in the latch 12. Also, this orgate 13...
The latch signal LINL6 from . . . is also given to the CPU 100.

そして、ラッチ12・・・・・・出力はCPU100へ
与えられ、発音開始、停止、更には出力音の放音レベル
(音量)等の制御がこの宇−夕に従ってなされる。なお
、このラッチ12・・・・・・に記憶されるピーク値で
ある波高値は、ワークメモリ101に順次書込まれる。
The output from the latch 12 is then given to the CPU 100, and the start and stop of sound generation, as well as the control of the output level (volume) of the output sound, etc., are performed in accordance with this output. Note that the peak values stored in the latches 12 . . . are sequentially written into the work memory 101.

即ち、CPU100では、A/Dコンバータll・・・
・・・より与えられる波形レベルを示すデータの絶対値
が、予め決められた一定値以上になった時には、楽音の
発音を開始させるとともにピッチ(基本周波数)抽出も
開始させ、このデータが一定値以下になった時には、消
音指示をして放音を終了させる。その動作の詳細は後述
するとおりである。
That is, in the CPU 100, the A/D converter ll...
When the absolute value of the data indicating the waveform level given by ... exceeds a predetermined constant value, the sound generation of musical tones is started, and pitch (fundamental frequency) extraction is also started, and this data is set to a constant value. When the following occurs, a mute instruction is given to end the sound emission. The details of the operation will be described later.

なお、第1図には、A/Dコンバータ11が、ピッチ抽
出回路PI−P6に夫々独立に設けであるが、−個のA
/Dコンバータを時分割的に使用することも勿論可tt
である。
In FIG. 1, the A/D converters 11 are provided independently in the pitch extraction circuits PI-P6, but -
Of course, it is also possible to use the /D converter in a time-sharing manner.
It is.

そして、周波aROM8、音源回路9は時分割処理によ
り少なくとも6チヤンネルの楽音生成系が形成されてい
る。
The frequency aROM 8 and the tone generator circuit 9 form a musical tone generation system of at least 6 channels by time-division processing.

なお、第2図は、ピッチ抽出回路Pi内の各部の信号波
形のタイムチャートを表わしており、図の■は、ローパ
スフィルタ3の出力、■は最大ピーク検出回路4の出力
、■は最小ピーク検出回路5の出力、■はゼロクロス点
検出回路6の出力、■は割り込み指令信号I N Ta
l −I N Tab、■は割り込み指令信号I NT
b+−I NTbbである。
Note that FIG. 2 shows a time chart of signal waveforms at each part in the pitch extraction circuit Pi, where ■ in the figure indicates the output of the low-pass filter 3, ■ indicates the output of the maximum peak detection circuit 4, and ■ indicates the minimum peak. The output of the detection circuit 5, ■ is the output of the zero cross point detection circuit 6, and ■ is the interrupt command signal I N Ta
l -I N Tab, ■ is the interrupt command signal I NT
b+-I NTbb.

東−首 次に本実施例の動作について説明する。第3図はCPU
100の割り込みルーチンのフローであり、第4図はメ
インフローである。なお、この第3図及び第4図はひと
つの弦についての処理しか示してないが、全ての弦の処
理は全く同じなので、CPU100が夫々の弦について
の処理を時分、1的に実行すると考えれば良い。
The operation of this embodiment will now be explained. Figure 3 shows the CPU
100, and FIG. 4 is the main flow. Note that although FIGS. 3 and 4 only show the processing for one string, the processing for all strings is exactly the same, so if the CPU 100 executes the processing for each string at once, Just think about it.

ワークメモリ101内のレジスタ さて、CPU100の具体的な動作の説明の前に、ワー
クメモリ101の中の主なレジスタについて説明する。
Registers in Work Memory 101 Now, before explaining the specific operation of CPU 100, the main registers in work memory 101 will be explained.

5TEPレジスタは、0、l、2,3の4段階をとり、
弦振動がなされる(第5図(a)もしくは第6図(a)
参照)につれて、第5図(b)あるいは第6図(b)に
示すようにその内容は変化する。この5TEPレジスタ
がOのときは、ノートオフ(消音)状態を表わしている
The 5TEP register has four stages: 0, l, 2, and 3.
The string vibrates (Figure 5 (a) or Figure 6 (a))
(see), its contents change as shown in FIG. 5(b) or FIG. 6(b). When this 5TEP register is O, it represents a note-off (mute) state.

5IGNレジスタは、周期計測のためのゼロクロス点が
最大ピーク(MAX)点の次のゼロクロス点なのか、最
小ピーク(MIN)点の次のゼロクロス点なのかを示す
もので、lのとき前者、2のとき後者である。
The 5IGN register indicates whether the zero-crossing point for period measurement is the zero-crossing point next to the maximum peak (MAX) point or the zero-crossing point next to the minimum peak (MIN) point. The latter is the case.

RE V E RS E Iy シフ、 9は、上記5
IGNレジスタで表わされたゼロクロス点と反対側のピ
ーク点経過後のゼロクロス点の到来による割り込み処理
がなされたか否かをチェックするデータを記憶するレジ
スタであり、−周期ごとのピッチ(基本周波数)抽出制
御のチェックに用いられる。
RE V E R S E Iy Schiff, 9 is the above 5
This is a register that stores data for checking whether or not interrupt processing has been performed due to the arrival of a zero-crossing point after the peak point on the opposite side of the zero-crossing point indicated by the IGN register. Used to check extraction control.

Tレジスタは、入力波形の周期を計測するための特定点
のカウンタ7の値を記憶する。なお、カウンタ7は所定
のクロックでカウントするフリーランニング動作をして
いる。
The T register stores the value of the counter 7 at a specific point for measuring the period of the input waveform. Note that the counter 7 performs a free running operation of counting at a predetermined clock.

AMP(i)レジスタは、A/Dコンバータ11からう
、ツチ12にラッチされた最大もしくは最小ピーク値(
実際には絶対値)を記憶するレジスタで、AMP (1
)が最大ピーク用、AMP(2)が最小ピーク用のレジ
スタである。
The AMP(i) register stores the maximum or minimum peak value (
Actually, it is a register that stores the absolute value), and is a register that stores AMP (1
) is the register for the maximum peak, and AMP(2) is the register for the minimum peak.

PERIODレジスタは、計測した最新の周期をあられ
すピッチデータが入力され、このレジスタの内容を基に
、CPU100は、周波数ROM8、音源回路9に対し
周波数制御を行うものである。
The PERIOD register receives pitch data representing the latest measured period, and based on the contents of this register, the CPU 100 performs frequency control on the frequency ROM 8 and the tone generator circuit 9.

0LDPレジスタは、上記PERIODレジスタに新た
なピッチデータをセットするときに、それまでこのPE
RIODレジスタにセットされていた1つ前のピッチデ
ータと同じデータが記憶されるレジスタであり、この1
つ前のピッチデータと上記PERIODレジスタの最新
のピッチデータとが、略一致しなければ、入力波形信号
の前回のピークレベル値に対して今回のピークレベル値
が急激に大きくなっても再発音のため処理が行われない
ように制御される。
When setting new pitch data to the PERIOD register, the 0LDP register is set to the PERIOD register.
This register stores the same data as the previous pitch data set in the RIOD register.
If the previous pitch data and the latest pitch data in the PERIOD register do not substantially match, even if the current peak level value suddenly becomes larger than the previous peak level value of the input waveform signal, re-sounding will not be possible. Therefore, the process is controlled so that no processing is performed.

更に、後述するように本実施例は各種判断のために、3
つの定数(スレッシュホールドレベル)がCPU100
内に設定されている。
Furthermore, as will be described later, this embodiment uses three methods for various judgments.
One constant (threshold level) is CPU100
is set within.

先ず最初のものは0NLEVIであり、第5図(a)、
第6図(a)に示すように、いまノートオフの状態であ
り、この0NLEVIの値よりも大きなピーク値が検出
されたとき、弦がピッキング等されたとして、周期測定
のための動作をCPU100は実行開始する。
The first one is 0NLEVI, Fig. 5(a),
As shown in FIG. 6(a), when the current note-off state is detected and a peak value larger than this value of 0NLEVI is detected, it is assumed that the string has been picked, etc., and the CPU 100 executes an operation for period measurement. starts execution.

0NLEv■は、ノートオン(発音中)状yムであって
、前回の検出レベルと今回の検出レベルとの差がこの値
以上あれば、トレモロ奏法等による操作があったとして
、再度発音開始(リラティブオン、relative 
on )処理を行うためのものである。
0NLEv■ is a note-on (currently sounding) ym, and if the difference between the previous detection level and the current detection level is greater than this value, it is assumed that there has been an operation such as tremolo playing, and the sound is started again ( relative on, relative
on ) processing.

0FFLEVは、第8図(a)に示しであるように、ノ
ートオン(発音中)状態であって、この値以下のピーク
値が検知されると、ノートオフ(消音)処理をする。
As shown in FIG. 8(a), 0FFLEV is in a note-on (sounding) state, and when a peak value below this value is detected, note-off (mute) processing is performed.

以上の説明から、以下に述べる割り込みルーチン、メイ
ンルーチンの動作の理解は容易となろう。
From the above explanation, it will be easy to understand the operations of the interrupt routine and main routine described below.

ゼロクロス点での割り込み処理 さて、アンドゲート24もしくはアンドゲート25の出
力である割り込み指令信号I N T a、lNTbの
CPU100への到来によって、第3図の割り込み処理
を行う。
Interrupt Processing at Zero Cross Point Now, when the interrupt command signals INTa and INTb, which are the outputs of the AND gate 24 or the AND gate 25, arrive at the CPU 100, the interrupt process shown in FIG. 3 is performed.

即ち、割り込み指令信号I N T aの入力時には、
先ずステップP1の処理をし、CPU100内のCレジ
スタを1にし、割り込み指令信号lNTbの入力時には
、先ずステップP2の処理によって上記Cレジスタに2
をセットする。
That is, when the interrupt command signal I N T a is input,
First, the process of step P1 is performed, and the C register in the CPU 100 is set to 1. When the interrupt command signal lNTb is input, the C register is set to 2 by the process of step P2.
Set.

そして次にステップP3において、CPU100内のt
レジスタに、カウンタ7の値をプリセットする。続いて
実行するステップP4ではA/Dコンバータ11のピー
クレベルデータをラッチ12から読込み、CPU100
内のbレジスタに設定する。
Then, in step P3, t in the CPU 100
Preset the value of counter 7 in the register. In the next step P4, the peak level data of the A/D converter 11 is read from the latch 12, and the CPU 100 reads the peak level data of the A/D converter 11 from the latch 12.
Set in the b register within.

そして、ステップP5において、フリップフロップ14
もしくはフリップフロップ15をクリアする。
Then, in step P5, the flip-flop 14
Or clear flip-flop 15.

続くステップP6にて、上記a、b、tレジスタの内容
をワークメモリ101に転送記憶し割り込み処理を終了
する。
In the following step P6, the contents of the a, b, and t registers are transferred and stored in the work memory 101, and the interrupt processing is ended.

△エヱ31 メインルーチン(第4図)では、ステップSIにて、上
述したような割り込み処理によってワークメモリ101
にa′、b′、t′の内容(上記a、b、tと同じで前
回記録されたということでa′、b′、t′と示す、)
が書込まれているか否かジャッジし、何ら割り込み処理
はなされていないときはNOの判断をして、このステッ
プSlを繰返し実行する。
△E31 In the main routine (Fig. 4), in step SI, the work memory 101 is
The contents of a', b', and t' are shown as a', b', and t' because they are the same as a, b, and t above, and were recorded last time.
It is judged whether or not it has been written, and if no interrupt processing is being performed, a NO judgment is made and this step Sl is repeatedly executed.

そして、上記ステップ31 でYESの判断をすれば、
次のステップS2に進んでその内容a′。
Then, if you make a YES decision in step 31 above,
Proceed to the next step S2 and read its contents a'.

b′、t′を読出す0次にステップS3において、上記
AMP(a’)レジスタに記憶しである同じ種類(つま
り最大か最小)のピーク点のピーク値をCPU100内
のCレジスタに読出し、今回抽出したピーク値b′を上
記AMP(a’)レジスタに設定する。
Read out b', t' Next, in step S3, read out the peak value of the same type (that is, maximum or minimum) of the peak point stored in the AMP (a') register to the C register in the CPU 100; The peak value b' extracted this time is set in the AMP(a') register.

さて1次にステップ54〜S6において。Now, first, in steps 54 to S6.

5TEPレジスタの内容が夫々3.2,1であるか否か
ジャッジする。いま、最初の状態であるとしたら、5T
EPレジスタはOなので、ステップSa 、Ss 、S
b ともNoの判断がされる。そして1次にステップS
7で、今回検知したピーク値b′が0NLEVIより大
か否かジャッジする。
It is judged whether the contents of the 5TEP register are 3, 2, or 1, respectively. Now, if it is in the initial state, 5T
Since the EP register is O, steps Sa, Ss, S
A determination of No is made for both cases. And first step S
7, it is judged whether the peak value b' detected this time is greater than 0NLEVI.

もし、上記ピーク値b′が0NLEVIより小であれば
、まだ発音開始の処理をしないのでステップS1へもど
る。仮に、第5図(a)、第6図(a)のように0NL
EVIより大きな入力が得られたとすると、ステップS
ノの判断はYESとなり、ステップS8へ進む。
If the peak value b' is smaller than 0NLEVI, the process returns to step S1 since the process of starting sound generation is not yet performed. Suppose that 0NL as shown in Figures 5(a) and 6(a)
If an input larger than EVI is obtained, step S
The determination in step S8 is YES, and the process advances to step S8.

そしてステップS8で5TEPレジスタに1をセットし
1次にステップS9でREVER3EレジスタにOをセ
ットし、続けてステップSIOで、a’(つまり最大ピ
ーク点直後のゼロクロス点のとき1.最小ピーク点直後
のゼロクロス点のとき2)の値を5IGNレジスタに入
力する。
Then, in step S8, 1 is set in the 5TEP register, first, in step S9, O is set in the REVER3E register, and then in step SIO, a' (that is, 1 at the zero cross point immediately after the maximum peak point. 1 immediately after the minimum peak point). When the zero crossing point of 2) is reached, input the value of 2) to the 5IGN register.

そして、ステップSl+にて、t′の値をTレジスタに
セットする。その結果、a′の内容は5IGNレジスタ
に(第5図(a)、第6図(a)の場合は5IGNは1
となる)、b′(7)内容はAMPレジスタに、t′の
内容はTレジスタにセットされたことになる。そして再
びステップS+ にもどる。
Then, in step Sl+, the value of t' is set in the T register. As a result, the contents of a' are stored in the 5IGN register (5IGN is 1 in the case of Figures 5(a) and 6(a)).
), the contents of b'(7) are set in the AMP register, and the contents of t' are set in the T register. Then, return to step S+ again.

さて、以上の説明で第5図(a)、第6図(a)のゼロ
クロス点Zerolの直後のメインルーチンの処理を完
了することになる。
Now, with the above explanation, the processing of the main routine immediately after the zero cross point Zero in FIGS. 5(a) and 6(a) is completed.

さて、次に、ゼロクロス点Zero2の直後のメインル
ーチンでの処理を説明する。そのときは上記ステップS
1→S2→S3→S4→S5のデータセット処理と発音
段階制御処理とを実行し、次のステップS6にてYES
の判断がされ、次にステップS12にゆく。
Now, next, the processing in the main routine immediately after the zero cross point Zero2 will be explained. In that case, step S above
1→S2→S3→S4→S5 data set processing and sound generation stage control processing are executed, and YES in the next step S6.
A determination is made, and the process then proceeds to step S12.

いま、第5図(a)、第6図(a)のように波形が入力
時に正方向に変化したときは、5IGNレジスタは1で
あり、今回負方向のピークを経過してきているからaル
ジスタは2なので、NOの判断をする。尚、もし同じ極
性のピーク値直後のゼロクロス点到来時には、このステ
ップ512でYESの判断をして何ら続けて動作せずに
ステップS1へもどる。
Now, when the waveform changes in the positive direction at the time of input as shown in Fig. 5 (a) and Fig. 6 (a), the 5IGN register is 1, and since it has passed the peak in the negative direction this time, the a register is 2, so the decision is NO. Incidentally, if a zero cross point arrives immediately after the peak value of the same polarity, a YES determination is made in step 512 and the process returns to step S1 without any further operation.

さて、いまこのステップS12ではNoのジャッジがさ
れてステップ513へゆき、5TEPレジスタを2とす
る。(第5図(b)、第6図(b)参照)。
Now, in this step S12, the judgment is No, and the process goes to step 513, where the 5TEP register is set to 2. (See FIG. 5(b) and FIG. 6(b)).

そしてステップS13に続けてステップS1sを実行し
、前回のピーク値(AMP (S IGN))と今回の
ピーク値(b′)を比較する。いま、第5図(a)のよ
うに前回の値XOが今回の値より小(xl>xo)なら
ば、YESとなり、今回の時刻t′を周期の計測開始点
とすべく(t55図(C)参照)ステップ514からス
テップ510、Sl+を実行し、5IGNレジスタを2
とすると共にtルジスタの内容をTレジスタへ転送する
Subsequently to step S13, step S1s is executed to compare the previous peak value (AMP (S IGN)) and the current peak value (b'). Now, as shown in Fig. 5(a), if the previous value C)) Execute steps 514 to 510, Sl+, and set the 5IGN register to 2.
At the same time, the contents of the t register are transferred to the T register.

逆に、前回のピーク値が今回のピーク値よりも大きけれ
ば、つまり:f46図(a)のようにxl <Xaなら
ば、ステップS14でNoのジャッジをしステップ31
5にてREVER3Eレジスタをlとする。なお、5I
GNレジスタはいま前の値1を保つことになる。従って
、この場合は前のゼロクロス点(Zerol)が周期計
測の開始点となっている(第6図(c)参照)。
On the other hand, if the previous peak value is larger than the current peak value, that is, if xl <
At step 5, the REVER3E register is set to l. In addition, 5I
The GN register will now maintain its previous value of 1. Therefore, in this case, the previous zero cross point (Zerol) is the starting point for period measurement (see FIG. 6(c)).

そして1次のゼロクロス点(Zero3)の通過後、は
じめてメインフローを実行するときは、ステップS5で
YESのジャッジがされてステップ516へ進む、今回
a′はlであり、第5図の場合は、5IGNが2、第6
図の場合は5IGNが1なので、第5図の場合にあって
は、ステップS+6でNOのジャッジがされて、ステッ
プ315へゆきステップS】へもどる、つまり、周期計
測を開始し始めてからひとつ目のピーク(振幅X2)を
通過したことをCPU100は認識するJまた第6図の
場合にあっては、ステップ516ではYESの判断がさ
れて、ステップSuへゆきREVER3Eレジスタが1
か否かジッヤジする。もしlでなければNoの判断をし
ステップS+ へもどるが、上述したようにステップS
15の実行によってこのレジスタは1となっており、ス
テップSl+からステップ318へゆき5TEPレジス
タを3としく第6図(b)参照)、続けてステップSI
9にて、tルジスタにある今回の割り込みで受は付けた
カウンタ7の値からTレジスタにある値つまりゼロクロ
ス点Zerolの時刻を減算してピッチデータを求め、
PERIODレジスタにストアする。
When the main flow is executed for the first time after passing the first-order zero cross point (Zero3), a YES judgment is made in step S5 and the process proceeds to step 516. This time a' is l, and in the case of FIG. , 5IGN is 2nd, 6th
In the case shown in the figure, 5IGN is 1, so in the case of Fig. 5, a NO judgment is made at step S+6, and the process goes to step 315 and returns to step S]. The CPU 100 recognizes that the peak (amplitude X2) has passed, and in the case of FIG.
I wonder if it's true or not. If it is not l, it is determined No and returns to step S+, but as mentioned above, step S
15, this register becomes 1, and the process goes from step SI+ to step 318 where the 5TEP register is set to 3 (see FIG. 6(b)), and then step SI+ is set to 1.
At step 9, the pitch data is obtained by subtracting the value in the T register, that is, the time of the zero cross point Zero, from the value of counter 7, which is accepted by the current interrupt, in the t register.
Store in PERIOD register.

つまり第6図(C)に示す大きさが一周期の長さとなり
、続くステップ320でE′の内容をTレジスタに転送
して新たな周期計測の開始をする。
In other words, the length shown in FIG. 6(C) is the length of one cycle, and in the subsequent step 320, the contents of E' are transferred to the T register to start a new cycle measurement.

そしてステップ521において、上述のPERIODレ
ジスタの内容をもってCPU100は周波数ROM8、
音源回路9に発音指令を出す、従ってこの時点から楽音
の発生がなされる。続いて、CPU100はステップS
12でPERIODレジスタにセットされたピッチデー
タを0LDPレジスタにセットする。
Then, in step 521, the CPU 100 uses the contents of the above-mentioned PERIOD register to store the frequency ROM 8,
A sound generation command is issued to the sound source circuit 9, and therefore musical sounds are generated from this point onwards. Subsequently, the CPU 100 performs step S
At step 12, the pitch data set in the PERIOD register is set in the 0LDP register.

さて、上述した第5図の場合にあっては、再び次のゼロ
クロス点(Zero4)後のメインフローの処理で、ス
テップS5からステップS8ヘジヤンプする。いま、5
IGNレジスタは2なので、ステップS16ではYES
の判断をし、続けて上記同様にステップS17→518
→S19→S20→S月→332の発音開始処理を実行
し、今回は第5図(C)に示すゼロクロス点Zero2
がらZero4までを一周期としてCPU100は認識
し、この長さに基づく周波数の楽音を発音開始する(第
5図(d)参照)。
Now, in the case of FIG. 5 described above, the process jumps from step S5 to step S8 again in the main flow processing after the next zero cross point (Zero4). Now, 5
Since the IGN register is 2, the answer is YES in step S16.
Then, in the same manner as above, step S17 → 518
→ S19 → S20 → S month → Execute the sound generation start process of 332, and this time, the zero cross point Zero2 shown in FIG. 5(C) is executed.
The CPU 100 recognizes the period from zero to Zero4 as one cycle, and starts producing musical tones at a frequency based on this length (see FIG. 5(d)).

このようにして、値の大きいピーク点の次のゼロクロス
点から周期計測の処理を開始し、そのピーク点と同じ側
のピーク点の次のゼロクロス点でその計測を終了するよ
うにして、ローパスフィルタ3出力の波形の一周期を抽
出している。
In this way, period measurement processing starts from the zero-crossing point next to the peak point with a large value, and ends at the zero-crossing point next to the peak point on the same side as the peak point, and the low-pass filter One period of the waveform of 3 outputs is extracted.

そして、この発音開始処理の後、メインルーチンにおい
ては、ステップS4からステップS22へ進行し、今回
取り込んだピーク値であるb′の値が、第8図に示すよ
うに0FFLEV5i越えているか否かジャッジする。
After this sound generation start processing, the main routine proceeds from step S4 to step S22, where it is judged whether the value of b', which is the peak value captured this time, exceeds 0FFLEV5i as shown in FIG. do.

いま、このレベルを越えておればステップS24に進み
、a′の内容と5IGNレジスタの内容の一致比較をし
、一致しなければSI5へ進み次のゼロクロス点の割り
込み処理にそなえ、一致すれば、既に逆の特性をもった
ピーク(正/負のピーク)を夫々通過してきたので、ス
テップS25へ進み、REVER5Eレジスタが1か否
かジャッジし、もしNoならば何ら処理をすることなく
ステップSIへもどるが、もしこのステップS25でY
ESのr4断がなされたならば、ステップS25からス
テップS26へ進み新たな周期(ピッチ)を求めるべく
t’レジスタの内容からTレジスタの内容を引いて次の
ピッチデータを求め、PERIODレジスタにセットす
る。
If this level is exceeded, the process proceeds to step S24, where the contents of a' and the contents of the 5IGN register are compared for coincidence. If they do not match, the process proceeds to SI5 to prepare for interrupt processing at the next zero-crossing point; if they match, Since peaks with opposite characteristics (positive/negative peaks) have already been passed, the process proceeds to step S25, where it is judged whether the REVER5E register is 1 or not, and if No, the process proceeds to step SI without any processing. Returning, if in this step S25
If ES r4 is disconnected, the process advances from step S25 to step S26, and in order to obtain a new period (pitch), subtract the contents of the T register from the contents of the t' register to obtain the next pitch data, and set it in the PERIOD register. do.

そして、ステップS27においてtルジスタの内容IT
レジスタへ転送し、続くステップS33にてREVER
3Eレジスタの内容を0として、ステップS34で0L
DPレジスタの前回のピッチデータとPERIODレジ
スタの今回のピッチデータとがほぼ一致するか否か判断
する。
Then, in step S27, the content IT of t
Transfer to the register, and then REVER in step S33.
The contents of the 3E register are set to 0, and the contents are set to 0L in step S34.
It is determined whether the previous pitch data in the DP register and the current pitch data in the PERIOD register substantially match.

通常は一致するので、CPU100はステップS35へ
進み、リラティブオン(relative on )の
処理をするのか否かジャッジするようにする。即ち具体
的には今回のピーク値(b′)が前のピーク値(C)よ
り0NLEVUだけ大きいか、つまり発音中、に急激に
抽出ピーク値が大ごくなったか否かジャッジする。
Since they normally match, the CPU 100 proceeds to step S35 and judges whether relative on processing is to be performed. Specifically, it is judged whether the current peak value (b') is larger than the previous peak value (C) by 0NLEVU, that is, whether the extracted peak value suddenly became large during the sound generation.

通常弦を振動すれば、自然減衰を行うので、このステッ
プS35はNOの判断となるが、もしトレモロ奏法など
によって、前の弦振動が減衰し終わらないうちに、再び
弦が操作されて、このステップS35の判断がYESと
なることがある。
Normally, if the string is vibrated, natural damping will occur, so the answer to step S35 is NO. However, if the string is operated again before the previous string vibration has finished damping due to tremolo playing, etc. The determination in step S35 may be YES.

その場合は、ステップS35でYESのジャッジをしス
テップS8ヘジヤンプし、ステップ59〜ステツプSl
+の発音開始の準備処理を実行する。
In that case, a YES judgment is made in step S35, the process jumps to step S8, and steps 59 to SL
Execute the preparation process for starting the + sound.

その結果、5TEPレジスタはlとなり、上述した発音
開始時の動作と全く同じ動作をそれ以降実行する。つま
り、再びステップ316〜321.532の発音開始処
理をその後実行して再発音開始の処理をすることになる
As a result, the 5TEP register becomes 1, and the same operation as that at the start of sound generation described above is thereafter executed. In other words, the sound generation start processing of steps 316 to 321.532 is then executed again to perform the sound generation start processing again.

さて、通常状態では上述した如くステップS35に続け
てステップ536を行って、上記PERI ODレジス
タの値を基に周波数(ピッチ)制御をCPU100は周
波数ROM8、音源回路9に対して行う。
Now, in the normal state, as described above, step S35 is followed by step 536, and the CPU 100 performs frequency (pitch) control on the frequency ROM 8 and the tone generator circuit 9 based on the value of the PERI OD register.

つまり1本実施例にあっては、弦の振動周波数の変化を
時々刻々とらえて、それに応じた周波数制御をリアルタ
イムで行うようになる。
In other words, in this embodiment, changes in the vibration frequency of the string are detected moment by moment, and frequency control is performed in real time accordingly.

そして、ステップS36からステップS37へ進んでP
ERIODレジスタにセットされたピッチデータを0L
DPレジスタにセットする。
Then, the process advances from step S36 to step S37, and P
The pitch data set in the ERIOD register is set to 0L.
Set in DP register.

いま、入力波形信号の倍音成分が強く、第7図(a)に
示すように、−周期内のαとβで示す各部分のレベルが
、放音時間の経過に従って除々に変化して逆転するよう
になると、第7図(a)の点線で示す山型波形のαのピ
ークホールド部分を山型波形βのピーク点が大きく越え
る時点で、この山型波形βのピークレベル値an・5が
、1つ前の山型波形αのピークレベル値an−4に対し
、リラティブオン(rl+発音)のための0NLEVr
lを越えてしまうことが生じることになる。
Now, the overtone component of the input waveform signal is strong, and as shown in Figure 7(a), the levels of each part indicated by α and β within the - period gradually change and reverse as the sound emission time passes. Then, when the peak point of the chevron-shaped waveform β greatly exceeds the peak hold portion of α of the chevron-shaped waveform shown by the dotted line in FIG. 7(a), the peak level value an・5 of the chevron-shaped waveform β becomes , 0NLEVr for relative on (rl+pronunciation) for the peak level value an-4 of the previous chevron-shaped waveform α.
This may result in exceeding l.

しかし、このとぎ第7図(b)に示すように最大ピーク
検出回路4からの最大ピーク検出信号が一周期内に2つ
現れるようになる。そうすると、−周期内にステップ3
26、S27のピッチ抽出処理が2回行われてしまうこ
とになり、波形a n、3の直後のゼロクロス点での今
回のPERIODレジスタ内のピッチデータは、山型波
形のαからβまでの一周期より短かいTn・2となり、
前回の0LDPレジスタ内のピッチデータは山型波形の
αからαまでの一周期分の長さと等しいT n 、l 
 となる。
However, as shown in FIG. 7(b), two maximum peak detection signals from the maximum peak detection circuit 4 now appear within one cycle. Then, step 3 within - period
26, the pitch extraction process in S27 will be performed twice, and the pitch data in the PERIOD register this time at the zero-crossing point immediately after waveforms a n and 3 will be the same as the one from α to β of the chevron-shaped waveform. Tn・2 is shorter than the period,
The pitch data in the previous 0LDP register is equal to the length of one cycle from α to α of the chevron-shaped waveform T n , l
becomes.

このため、入力波形信号の一周期ごとに行われるステッ
プ524〜S31のピッチ抽出制御処理の中のステップ
S34で、上記PERIODレジスタの値と0LDPレ
ジスタの値が一致しないことが判別され、ステップS 
35. S 36の処理を飛び越すようになるので、ス
テップS35、S8〜S目のりラティブオン(再発音)
の処理とステップS36のピッチ制御処理とが行われな
くなる。この間、楽音は変化なく鳴り続けることになる
Therefore, in step S34 of the pitch extraction control process of steps 524 to S31 performed for each period of the input waveform signal, it is determined that the value of the PERIOD register and the value of the 0LDP register do not match, and step S
35. Since the process in S36 will be skipped, steps S35 and S8 to S will be turned on (re-sounding).
The processing in step S36 and the pitch control processing in step S36 are no longer performed. During this time, the musical tone continues to sound without change.

こうして、入力波形信号の一周期内のαとβとで示す各
部分のレベルが放音時間の経過に従って除々に変化して
逆転するときに、波形のレベルが急激に大きくなるよう
なことがあっても、再発音処理は行われず、ピッキング
操作が行われていなくても再発音が行われてしまうとい
う誤動作を防止することができる。また、一周期分より
短いT n 、2〜T I + 4に基づいたピッチ制
御も行われないので、本来の音と異なる音高の音が放音
されることもなくなる。
In this way, when the level of each part indicated by α and β within one period of the input waveform signal gradually changes and reverses as the sound emission time passes, the waveform level does not suddenly increase. Even if the picking operation is not performed, the re-sounding process is not performed, and it is possible to prevent an erroneous operation in which the re-sounding is performed even when no picking operation is performed. Further, since pitch control based on T n , 2 to T I + 4, which is shorter than one cycle, is not performed, a sound with a pitch different from the original sound is not emitted.

この後、山型波形βが山型波形αより十分大きくなり、
山型波形αが山型波形βのピークホールド部分の下に沈
んでしまうようになれば、最大ピーク検出回路4からの
最大ピーク検出信号が一周期内に1つだけとなり、ステ
ップ526、S2+のピッチ抽出処理は、−周期内に再
び1回だけとなり、PERIODレジスタの今回のピッ
チデータは、0LDPレジスタの前回のピッチデータに
一致するようになり、ステップS26のピッチ制御処理
が再開されることになる。
After this, the chevron-shaped waveform β becomes sufficiently larger than the chevron-shaped waveform α,
If the mountain waveform α sinks below the peak hold portion of the mountain waveform β, there will be only one maximum peak detection signal from the maximum peak detection circuit 4 in one cycle, and step 526, S2+ The pitch extraction process is performed once again within the - period, and the current pitch data in the PERIOD register matches the previous pitch data in the 0LDP register, and the pitch control process in step S26 is restarted. Become.

そして、上述したように、弦振動が減衰してきて、ピー
ク値が第8図に示すように0FFLEVを下まわるよう
になると、ステップ322からステップ5311へゆき
5TEPレジスタを0とし、続くステップS31にてノ
ートオフ処理(消音処理)を行い、これまで発音してい
た楽音を消音すべくCPU100は音源回路9へ指示す
るようになる。
Then, as described above, when the string vibration is attenuated and the peak value falls below 0FFLEV as shown in FIG. The CPU 100 instructs the sound source circuit 9 to perform a note-off process (mute process) and mute the musical tones that have been generated so far.

尚、上記ステップS34における前回の抽出ピッチデー
タと今回の抽出ピッチデータの比較は、ピッチデータが
16ビツトなら、上位14ビツトが一致するか否かとい
うかたちや1両ピッチデータの差が予め定められた一定
値以下となるか否かというかたちであってもよく、今回
の抽出ピッチデータの比較対象は前回のものではなく、
前々回のもの等、過去のものであればよい、また上記実
施例では、ステップ523では、今回のピーク値b′と
前回のピーク値Cとの差で、波形が急激に変化したのか
否かジャッジするようにしたが、例えばb’/c>S(
Sは1以上の所定値)のように波高値の比で、波形が急
激に変化したのか否かジャッジするようにしてもよい。
In addition, in the comparison of the previous extracted pitch data and the current extracted pitch data in step S34, if the pitch data is 16 bits, the form of whether the upper 14 bits match or not and the difference between the pitch data of one car and the other are predetermined. It may also be in the form of whether or not the pitch data is below a certain value, and the target of comparison of the extracted pitch data this time is not the previous one,
In the above embodiment, in step 523, it is determined whether or not the waveform has suddenly changed based on the difference between the current peak value b' and the previous peak value C. For example, b'/c>S(
S may be a predetermined value of 1 or more) to determine whether or not the waveform has suddenly changed based on the ratio of peak values.

また、前回の波高値と今回の波高値との比較で波形が急
激に変化したか否かジャッジするようにしたが、前々回
と今回との波高値の比較で行うようにしてもよい。
Furthermore, although the determination is made as to whether or not the waveform has suddenly changed by comparing the previous wave height value and the current wave height value, it may be determined by comparing the wave height values two times before and this time.

また、上記実施例のステップS34でNOと判断された
とき、b′とCの値を同じにしてからステップS35へ
進行し、結果的にリラティブオンの処理を行わないよう
にしてもよい。
Further, when it is determined NO in step S34 of the above embodiment, the value of b' and C may be made the same before proceeding to step S35, and as a result, the relative-on processing may not be performed.

その他の条件検出によって、波高値が楽音の発生中に急
激に増大したことを検知するようにしてもよい。
A sudden increase in the peak value during the generation of musical tones may be detected by detecting other conditions.

上記実施例にあっては、各ピーク点直後のゼロクロス点
でCPU100が割り込み処理をして、発汗開始、周期
計算、リラティブオン、消音開始等の処理を行うように
したが、各ピーク点検出時に直接これらの処理を行って
もよい、その場合も全く同じ結果を得ることができる。
In the above embodiment, the CPU 100 performs interrupt processing at the zero cross point immediately after each peak point to perform processes such as starting sweating, calculating period, turning on relative, and starting muting. However, when each peak point is detected, These processes may be performed directly, and in that case, exactly the same results can be obtained.

その他、例えばピーク点の直前のゼロクロス点の検出に
よつて、上記同様の処理を行ってもよい、その他、基準
となる点のとり方は種々変更できる。
In addition, for example, the same processing as described above may be performed by detecting a zero-crossing point immediately before the peak point, and the method of determining the reference point can be changed in various ways.

また、上記実施例では、メインフローのなかで各処理を
実行するようにしたが1割り込み処理のなかで同様の処
理を実行するようにしてもよい。
Further, in the above embodiment, each process is executed in the main flow, but similar processes may be executed in one interrupt process.

更に、上記実施例においては、本発明を電子ギターに適
用したものであったが、必ずしもそれに限られるもので
なく、マイクロフォン等から入力される音声信号あるい
は電気的振動信号からピッチ抽出を行って、rX音声信
号とは別の音響信号を、対応するピッチもしくは音階周
波数にて発生するシステムであれば、どのような形態の
ものであってもよい、具体的には、鍵盤を有するもの例
えば電子ピアノ、管楽器を電子化したもの、弦楽器、例
えばバイオリンや琴などを電子化したものにも同様に適
用できる。
Further, in the above embodiment, the present invention is applied to an electronic guitar, but the present invention is not necessarily limited thereto, and pitch extraction may be performed from an audio signal or an electrical vibration signal input from a microphone, etc. Any type of system may be used as long as it generates an acoustic signal other than the rX audio signal at a corresponding pitch or scale frequency. Specifically, a system with a keyboard, such as an electronic piano, may be used. The present invention can be similarly applied to electronic wind instruments and electronic string instruments such as violins and kotos.

[発明の効果] この発明は1以上詳述したように、入力波形信号の一周
期内の各部分のレベルが、倍音成分の影デで放rf時間
の経過に従って除々に変化して逆転する場合などにおい
て、波形の一周期として抽出するピッチデータが急激に
小さくなることに着目し、過去のピッチデータに対して
現在のピッチデータが一致しなくなったときには、再発
音の開示指示を行わないようにしたから、波形の各部分
のレベルが放音時間の経過に従って除々に変化して逆転
するようなときに、波形のレベルが急激に太きくなるよ
うなことがあっても、再発音処理は行われず、ピッキン
グ操作が行われていなくても再発音が行われてしまうと
いう誤動作を防止することができ、楽音の発音処理をよ
り確実なものにできる等の効果を奏する。
[Effects of the Invention] As described in detail above, the present invention provides a method in which the level of each part within one cycle of an input waveform signal gradually changes and reverses as the RF time elapses due to the influence of overtone components. In such cases, we focused on the fact that the pitch data extracted as one cycle of the waveform suddenly becomes smaller, and when the current pitch data no longer matches the past pitch data, the re-sound disclosure instruction is not issued. Therefore, even if the level of each part of the waveform gradually changes and reverses as the sound emission time passes, and the level of the waveform suddenly becomes thicker, re-sounding processing is not performed. Therefore, it is possible to prevent a malfunction in which re-sounding is performed even when no picking operation is performed, and effects such as making the sounding process of musical tones more reliable can be achieved.

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

第1図は1本発明を適応した一実施例である電子楽器の
入力制御装置の全体回路構成を示す図、第2図は、第1
図中の各部に表われる波形等を示すタイムチャート図、
第3図はCPUの割り込みルーチンのフローチャートを
示す図、第4図はCPUのメインルーチンのフローチャ
ートを示す図、第5図及び第6図は発音開始時の各部の
動作を示すタイムチャート図、第7図は倍音成分の強い
入力波形が放音時間の経過とともに変化していく例を示
すタイムチャート図、第8図は消音時の動作を示すタイ
ムチャート図である。 l・・・・・・入力端子、4・・・・・・最大ピーク検
出回路、5・・・・・・最小ピーク検出回路、6・・・
・・・ゼロクロス点検出回路、7・・・・・・カウンタ
、9・・・・・・音源回路、12・・・・・・ラッチ、
14.15・・・・・・フリップフロップ、100・・
・・・・CPU、101・・・・・・ワークメモリ、P
i−P6・・・・・・ピッチ抽出回路。 特許出願人  カシオ計′B機株式会社第 2 図 第3図 曽すリ↓ムノ+L−士ニノ (C1@題’al’a”         PERIO
D第5図 キ七闇胎筬 χoくχへの7ぎ
FIG. 1 is a diagram showing the overall circuit configuration of an input control device for an electronic musical instrument, which is an embodiment to which the present invention is applied, and FIG.
A time chart diagram showing waveforms etc. appearing in each part of the diagram,
3 is a flowchart of the CPU's interrupt routine, FIG. 4 is a flowchart of the CPU's main routine, FIGS. 5 and 6 are time charts showing the operation of each part at the start of sound generation, and FIG. FIG. 7 is a time chart showing an example in which an input waveform with a strong overtone component changes with the passage of sound emitting time, and FIG. 8 is a time chart showing the operation during muting. l...Input terminal, 4...Maximum peak detection circuit, 5...Minimum peak detection circuit, 6...
... Zero cross point detection circuit, 7 ... Counter, 9 ... Sound source circuit, 12 ... Latch,
14.15...Flip-flop, 100...
...CPU, 101...Work memory, P
i-P6...Pitch extraction circuit. Patent Applicant: Casio Kei' B Machine Co., Ltd. Figure 2 Figure 3
D Figure 5: The seventh stage of darkness

Claims (1)

【特許請求の範囲】 入力波形信号のピッチを抽出して、そのピッチに基づく
周波数をもつ楽音を発生する電子楽器において、 上記入力波形信号の波高値の変化を検出する検出手段と
、 この検出手段にて、上記波高値が上記楽音の発生中に急
激に増大したことを検知したとき再度当該楽音の発音開
始指令を与える指示手段と、上記入力波形信号の一周期
分の時間間隔を測定する測定手段と、 この測定手段で測定された時間間隔に対応するピッチデ
ータを記憶する記憶手段と、 この記憶手段に記憶されている過去のピッチデータと、
上記測定手段で測定された現在のピッチデータとを比較
して、ほぼ一致するか否かを判別する判別手段と、 この判別手段で一致しないことが判別されたとき、上記
指示手段の再発音の開始指示を行わせないようにする指
示禁止手段と を具備したことを特徴とする電子楽器の入力制御装置。
[Claims] In an electronic musical instrument that extracts the pitch of an input waveform signal and generates a musical tone having a frequency based on the pitch, a detection means for detecting a change in the peak value of the input waveform signal; , an instructing means for giving a command to start generating the musical tone again when it is detected that the peak value has suddenly increased during the generation of the musical tone; and a measurement device for measuring a time interval corresponding to one cycle of the input waveform signal. means; storage means for storing pitch data corresponding to time intervals measured by the measuring means; past pitch data stored in the storage means;
a determining means for comparing the current pitch data measured by the measuring means and determining whether or not they almost match; 1. An input control device for an electronic musical instrument, comprising instruction inhibiting means for preventing a start instruction from being issued.
JP62095442A 1987-04-20 1987-04-20 Waveform signal controller Expired - Fee Related JP2581068B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62095442A JP2581068B2 (en) 1987-04-20 1987-04-20 Waveform signal controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62095442A JP2581068B2 (en) 1987-04-20 1987-04-20 Waveform signal controller

Publications (2)

Publication Number Publication Date
JPS63261390A true JPS63261390A (en) 1988-10-28
JP2581068B2 JP2581068B2 (en) 1997-02-12

Family

ID=14137808

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62095442A Expired - Fee Related JP2581068B2 (en) 1987-04-20 1987-04-20 Waveform signal controller

Country Status (1)

Country Link
JP (1) JP2581068B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5587196A (en) * 1978-12-23 1980-07-01 Nippon Musical Instruments Mfg External music tone input type electronic musical instrument
JPS55159495A (en) * 1979-05-31 1980-12-11 Nippon Musical Instruments Mfg Musical sound input type electronic musical instrument

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5587196A (en) * 1978-12-23 1980-07-01 Nippon Musical Instruments Mfg External music tone input type electronic musical instrument
JPS55159495A (en) * 1979-05-31 1980-12-11 Nippon Musical Instruments Mfg Musical sound input type electronic musical instrument

Also Published As

Publication number Publication date
JP2581068B2 (en) 1997-02-12

Similar Documents

Publication Publication Date Title
JPH0196700A (en) Input controller for electronic musical instrument
JPH0413717B2 (en)
US5710387A (en) Method for recognition of the start of a note in the case of percussion or plucked musical instruments
JPS63261390A (en) Input controller for electronic musical instrument
JP2532424B2 (en) Waveform signal input controller
JP2765578B2 (en) Waveform signal controller
JP2792022B2 (en) Electronic musical instrument input control device
JP2508044B2 (en) Electronic musical instrument input control device
JPS63136088A (en) Input controller for electronic musical instrument
JP2605667B2 (en) Electronic musical instrument input control device
EP0264955B1 (en) Apparatus for determining the pitch of a substantially periodic input signal
JPH0727512Y2 (en) Input control device for electronic musical instruments
JP2508692B2 (en) Input waveform signal controller
JPS63139399A (en) Input controller for electronic musical instrument
JPH0431599B2 (en)
JPS63217397A (en) Input controller for electronic musical instrument
JPH041358B2 (en)
JPS63217398A (en) Input controller for electronic musical instrument
JPS63141099A (en) Input controller for electronic musical instrument
JPH0633515Y2 (en) Frequency control device for electronic stringed instruments
JP2555553B2 (en) Input waveform signal controller
JPS63296096A (en) Electronic stringed instrument
JPH0648556Y2 (en) Input control device for electronic musical instruments
JPS63136090A (en) Input controller for electronic musical instrument
JPS63223790A (en) Input controller for electronic musical instrument

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees