JPH041358B2 - - Google Patents

Info

Publication number
JPH041358B2
JPH041358B2 JP62076453A JP7645387A JPH041358B2 JP H041358 B2 JPH041358 B2 JP H041358B2 JP 62076453 A JP62076453 A JP 62076453A JP 7645387 A JP7645387 A JP 7645387A JP H041358 B2 JPH041358 B2 JP H041358B2
Authority
JP
Japan
Prior art keywords
register
value
peak
sound
peak 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
JP62076453A
Other languages
Japanese (ja)
Other versions
JPS63243997A (en
Inventor
Katsuhiko Obata
Shigeru Uchama
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 JP62076453A priority Critical patent/JPS63243997A/en
Publication of JPS63243997A publication Critical patent/JPS63243997A/en
Priority to US07/478,759 priority patent/US5018428A/en
Publication of JPH041358B2 publication Critical patent/JPH041358B2/ja
Granted legal-status Critical Current

Links

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. This invention relates to an improvement in a device that can reliably perform the action of removing a finger from a fret to muffle sound.

[従来技術] 従来より、自然楽器の演奏操作によつて発生す
る波形信号からピツチ(基本周波数)を抽出し、
電子回路で構成された音源装置を制御して、人工
的に楽音等の音響を得るようにしたものが種々開
発されている。
[Prior art] Conventionally, the pitch (fundamental frequency) is extracted from the waveform signal generated by playing a natural musical instrument.
2. Description of the Related Art Various devices have been developed that control sound source devices composed of electronic circuits to artificially produce sounds such as musical tones.

この種の電子楽器では、入力波形信号が減衰し
て、これに応じた消音を行うには、波形のレベル
を検出して、このレベルが所定値以下になれば、
消音処理を行うようにしている。
In this type of electronic musical instrument, the input waveform signal is attenuated, and in order to mute the sound accordingly, the level of the waveform is detected, and when this level falls below a predetermined value,
I'm trying to mute the sound.

ところで、通常のギターの演奏にあつては、フ
レツトボードの特定のフレツトを押さえて、弦を
はじくことにより、音を出した場合、上記フレツ
トより押さえていた指を離すことによつて、消音
を行うことがある。このような場合には、音量レ
ベルはかなり小さくなつたにもかかわらず、実際
には弦は、この後もしばらく上記消音を行う所定
値以上で振動を続けていることが多い。
By the way, when playing a normal guitar, when a sound is produced by pressing a specific fret on the fretboard and plucking the string, the sound is silenced by releasing the finger from the fret. Sometimes. In such a case, even though the volume level has decreased considerably, the strings often continue to vibrate at a predetermined value or higher for some time after this.

このため、演奏者は消音を意図したにもかかわ
らず、電子楽器はなお鳴り続けてしまい、実際の
演奏とずれが生じてしまつたり、このフレツトを
離したときの音は開放弦の音に変つており、フレ
ツトを離す前の音とは音高がちがつており、演奏
上好ましくない音の変化が生じてしまうほか、こ
のフレツトを離したときの音のピツチ(基本周波
数)抽出も引き続き行われ、無駄な処理が行われ
てしまう。上記のような電子楽器において、上述
したような不都合を解消するため、フレツトから
指を離した時に弦振動のピーク値が急激に小さく
なる事実に着目し、今回検出した弦振動のピーク
値が前回検出したピーク値が所定レートで減衰し
た値より所定値以上小さくなつた場合に消音指示
を行うようにしたものもある(実開昭56−164294
号公報)。
For this reason, even though the performer intended to mute the sound, the electronic instrument continues to sound, resulting in a discrepancy from the actual performance, and the sound when the fret is released is the same as the sound of an open string. The pitch of the sound is different from the sound before the fret is released, resulting in an undesirable change in the sound when playing.In addition, the pitch (fundamental frequency) of the sound when the fret is released continues to be extracted. However, unnecessary processing is performed. In order to solve the above-mentioned problems in electronic musical instruments, we focused on the fact that the peak value of string vibration suddenly decreases when you take your finger off the fret. There is also a system that issues a mute instruction when the detected peak value becomes smaller than the value attenuated at a predetermined rate by a predetermined value (Utility Model No. 56-164294)
Publication No.).

[従来技術の問題点] 上記公報に記載されたものにおいては、入力波
形信号の最大ピーク値と最小ピーク値との夫々に
ついて、所定値以上の減衰を調べ、いずれか一方
のピーク値が所定値以上減衰した場合に消音指示
を行うような構成になつている。
[Problems with the prior art] In the method described in the above publication, the attenuation of the maximum peak value and the minimum peak value of the input waveform signal, each of which exceeds a predetermined value, is checked, and one of the peak values is determined to be a predetermined value. The configuration is such that a mute instruction is given when the sound has attenuated more than that.

このような構成により、上述したような従来技
術における不都合をある程度解消することはでき
るが、実際の自然楽器の波形というものは複雑に
変化するため、片方のピーク値のみが所定値以上
の減衰を示しても、波形全体(最大ピーク−最小
ピーク)が必ずしも大きな減衰を示しているとは
限らない。
Although such a configuration can eliminate the above-mentioned disadvantages of the conventional technology to some extent, since the waveform of an actual natural musical instrument changes complexly, it may be possible for only one peak value to attenuate more than a predetermined value. Even if shown, the entire waveform (maximum peak - minimum peak) does not necessarily indicate large attenuation.

従つて、上記公報に記載されたものにあつて
は、通常の発音状態からユーザーの意図に反した
タイミングで突然消音指示がなされ、楽音の消音
が行われてしまう危険性が高い。
Therefore, in the case described in the above-mentioned publication, there is a high risk that a mute instruction is suddenly given at a timing contrary to the user's intention from a normal sound production state, and the musical tone is muted.

[発明の目的] 本発明は、上述したような電子楽器の入力制御
装置において、指をフレツトから離して消音する
動作を誤りなく行うことができるようにすること
を目的とする。
[Object of the Invention] It is an object of the present invention to provide an input control device for an electronic musical instrument as described above, in which the operation of removing a finger from a fret to mute the sound can be performed without error.

[発明の要点] 本発明は、上述した目的を達成するため、入力
波形信号の最大ピーク値と最小ピーク値との双方
が前回の最大ピーク値と最小ピーク値とから夫々
所定値以上減衰したことを検出して初めて、楽音
の消音指示を行うようにしたことを要点とする。
[Summary of the Invention] In order to achieve the above-mentioned object, the present invention provides that both the maximum peak value and the minimum peak value of an input waveform signal are attenuated by a predetermined value or more from the previous maximum peak value and minimum peak value, respectively. The main point is that the instruction to mute the musical tone is issued only after the detection of the tone.

[実施例] 本発明を電子ギターに適用した下記の実施例を
図面を参照しながら説明する。
[Example] The following example in which the present invention is applied to an electronic guitar will be described with reference to the drawings.

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

入力端子1……からの楽音信号は、ピツチ抽出
回路P1〜P6(図では第1弦のP1についての
みその内部構成を示している。)内部の夫々のア
ンプ2……で増幅され、ローパスフイルタ
(LPF)3……で高周波成分がカツトされて基本
波形が抽出され、最大ピーク検出回路(MAX)
4……、最小ピーク検出回路(MIN)5……及
びゼロクロス点検出回路(Zero)6……に与え
られる。ローパスフイルタ3……は、各弦の開放
弦の振動音周波数fの4倍の4fにカツトオフ周波
数が設定されている。これは、各弦の出力音の周
波数が2オクターブ以内であることに基づくもの
である。最大ピーク検出回路4……では、楽音信
号の最大ピーク点が検出され、その検出パルス信
号の立上りで後段に接続されているフリツプフロ
ツプ14……のQ出力がHighレベルとなり、こ
のフリツプフロツプ14……の出力とゼロクロス
点検出回路6……のインバータ30……の反転出
力とのアンド出力がアンドゲート24……を介し
て割り込み指令信号INTa1〜INTa6としてCPU1
00に与えられ、同様に最小ピーク検出回路5…
…でも、楽音信号の最小ピーク点が検出され、そ
の検出パルス信号の立上りで後段に接続されてい
るフリツプフロツプ15……のQ出力がHighレ
ベルとなり、このフリツプフロツプ15……の出
力とゼロクロス点検出回路6……の出力とのアン
ド出力がアンドゲート25……を介して割り込み
指令信号INTb1〜INTb6としてCPU100に与え
られる。
The musical tone signal from the input terminal 1 is amplified by each amplifier 2 in the pitch extraction circuits P1 to P6 (the figure shows the internal configuration of only the first string P1), and then passed through a low-pass filter. (LPF) 3... cuts high frequency components and extracts the basic waveform, and maximum peak detection circuit (MAX)
4..., minimum peak detection circuit (MIN) 5... and zero cross point detection 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. In the maximum peak detection circuit 4..., the maximum peak point of the musical tone signal is detected, and at the rising edge of the detection pulse signal, the Q output of the flip-flop 14... connected to the subsequent stage becomes High level, and the Q output of the flip-flop 14... is connected to the subsequent stage. The AND output between the output and the inverted output of the inverter 30 of the zero-cross point detection circuit 6 is sent to the CPU 1 as interrupt command signals INT a1 to INT a6 via the AND gate 24...
00, and similarly the minimum peak detection circuit 5...
...However, the minimum peak point of the musical tone signal is detected, and at the rising edge of the detection pulse signal, the Q output of the flip-flop 15 connected to the subsequent stage becomes High level, and the output of this flip-flop 15 ... and the zero-crossing point detection circuit The AND outputs with the outputs of 6... are given to the CPU 100 as interrupt command signals INT b1 to INT b6 via AND gates 25 .

即ち、最大ピーク点が検出されてフリツプフロ
ツプ14がHighレベルになつているときに、波
形が正から負へ横切つたとき割り込み指令信号
INTa1〜INTa6がCPU100に与えられ、逆に最
小ピーク点が検出されてフリツプフロツプ15が
Highレベルになつているときに、波形が負から
正に変化したとき割り込み指令信号INTb1
INTb6がCPU100に入力する。
That is, when the maximum peak point is detected and the flip-flop 14 is at a high level, when the waveform crosses from positive to negative, an interrupt command signal is generated.
INT a1 to INT a6 are given to the CPU 100, and conversely, the minimum peak point is detected and the flip-flop 15 is
When the waveform changes from negative to positive while at High level, interrupt command signal INT b1 ~
INT b6 is input to CPU100.

そして、CPU100は、これらの割り込み指
令信号を受付けた直後に、対応するフリツプフロ
ツプ14……,15……に対しクリア信号CLa1
〜CLa6、CLb1〜CLb6を発生してリセツトする。
従つて、次に最大ピーク点あるいは最小ピーク点
を検出するまで何度ゼロクロス点を通過しても対
応するフリツプフロツプ14……,15……はリ
セツト状態であるので、CPU100には割り込
みがかからないことになる。
Immediately after receiving these interrupt command signals, the CPU 100 issues a clear signal CL a1 to the corresponding flip-flops 14..., 15...
~CL a6 , CL b1 ~CL b6 are 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, etc. will remain in the reset state, so no interrupt will be applied to the CPU 100. Become.

そして、CPU100では、当該弦の振動出力
により割り込み指令信号INTa1〜INTa6もしくは
INTb1〜INTb6が与えられて、夫々の時間間隔の
少なくとも一方の時間間隔に従つた音階音を発生
する。尚、発音開始時においては開放弦の音階音
を発生開始してピツチ抽出の後で正しい周波数に
修正してもよい。この発音開始時の動作について
は後述する。
Then, in the CPU 100, an interrupt command signal INT a1 to INT a6 or
INT b1 to INT b6 are given to generate a scale tone according to at least one of the respective time intervals. Incidentally, at the start of sound generation, the generation of scale tones of open strings may be started, and the frequency may be corrected after pitch extraction. The operation at the time of starting the sound generation will be described later.

そして、上記時間間隔は、後述するようにカウ
ンタ7と、ワークメモリ101とを用いて求め
る。即ち、このワークメモリ101には、最大ピ
ーク点の直後あるいは最小ピーク点の直後のゼロ
クロス点時のカウンタ7のカウント値など各種デ
ータが記憶される。
The above-mentioned time interval is determined using the counter 7 and the work memory 101, 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より音階を指定する
データを周波数ROM8へ送出し、その結果対応
する周波数を示す周波数データが読み出され、音
源回路9に送られて楽音信号が生成され、サウン
ドシステム10より放音出力される。
After the start of sound generation, the frequency of the musical tone being generated is variably controlled in accordance with the time interval data determined in sequence. That is, data specifying a musical scale is sent from the CPU 100 to the frequency ROM 8, and as a result, frequency data indicating the corresponding frequency is read out and sent to the sound source circuit 9 to generate a musical tone signal, which is output from the sound system 10. Ru.

また、上記ローパスフイルタ3……からの楽音
信号は、A/Dコンバータ11……に与えられ、
その波形レベルに応じたデジタルデータに変換さ
れる。
Further, the musical tone signal from the low-pass filter 3... is given to the A/D converter 11...
It is converted into digital data according to the waveform level.

そして、このA/Dコンバータ11……の出力
はラツチ12……にラツチされる。このラツチ1
2……に対するラツチ信号は、上記フリツプフロ
ツプ14……,15……の出力がオアゲート13
……を介することで生成され、最大ピーク点もし
くは最小ピーク点を通過する都度ラツチ12……
にはそのときの波形のレベルを示す信号が記憶さ
れる。また、このオアゲート13……からのラツ
チ信号L1〜L6はCPU100にも与えられる。
The output of this A/D converter 11... is latched into a latch 12.... This latch 1
The latch signal for 2... is the output of the flip-flop 14..., 15... from the OR gate 13.
It is generated by passing through the maximum peak point or the minimum peak point, and the latch 12 is generated each time the maximum peak point or minimum peak point is passed.
A signal indicating the level of the waveform at that time is stored. Further, the latch signals L 1 to L 6 from the OR gates 13 . . . are also given to the CPU 100.

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

即ち、CPU100では、A/Dコンバータ1
1……より与えられる波形レベルを示すデータの
絶対値が、予め決められた一定値以上になつた時
には、楽音の発音を開始させるとともにピツチ
(基本周波数)抽出も開始させ、このデータが一
定値以下になつた時には、消音指示をして放音を
終了させる。その動作の詳細は後述するとおりで
ある。
That is, in the CPU 100, the A/D converter 1
1. When the absolute value of the data indicating the waveform level given by ... exceeds a predetermined constant value, the 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, issue a mute instruction and end the sound emission. The details of the operation will be described later.

なお、第1図には、A/Dコンバータ11が、
ピツチ抽出回路P1〜P6に夫々独立に設けてあ
るが、一個のA/Dコンバータを時分割的に使用
することも勿論可能である。
In addition, in FIG. 1, the A/D converter 11 is
Although the pitch extraction circuits P1 to P6 are provided independently, it is of course possible to use one A/D converter in a time-division manner.

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

なお、第2図は、ピツチ抽出回路P1内の各部
の信号波形のタイムチヤートを表わしており、図
のは、ローパスフイルタ3の出力、は最大ピ
ーク検出回路4の出力、は最小ピーク検出回路
5の出力、はゼロクロス点検出回路6の出力、
は割り込み指令信号INTa1〜INTa6、は割り
込み指令信号INTb1〜INTb6である。
In addition, FIG. 2 shows a time chart of signal waveforms at various parts in the pitch extraction circuit P1. The output of is the output of the zero crossing point detection circuit 6,
are interrupt command signals INT a1 to INT a6 and are interrupt command signals INT b1 to INT b6 .

動 作 次に本実施例の動作について説明する。第3図
はCPU100の割り込みルーチンのフローであ
り、第4図はメインフローである。なお、この第
3図及び第4図はひとつの弦についての処理しか
示してないが、全ての弦の処理は全く同じなの
で、CPU100が夫々の弦についての処理を時
分割的に実行すると考えれば良い。
Operation Next, the operation of this embodiment will be explained. FIG. 3 shows the flow of the interrupt routine of the CPU 100, and FIG. 4 shows the main flow. Although Figures 3 and 4 only show the processing for one string, the processing for all strings is exactly the same, so if we consider that the CPU 100 executes the processing for each string in a time-sharing manner, good.

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

FLAG(i)レジスタは、最大ピーク値又は最小ピ
ーク値が前回の各ピーク値より、後述する
OFFLEVのレベル値以上小さくなつていれば、
「1」がセツトされるレジスタで、FLAG(1)が最
大ピーク用、FLAG(2)が最小ピーク用であり、両
レジスタともに「1」がセツトされたときには、
両ピーク値がOFFLEV以下になつていなくて
も消音処理が実行される。
The FLAG(i) register has a maximum peak value or minimum peak value greater than each previous peak value, which will be described later.
If it is smaller than the OFFLEV level value,
Among the registers that are set to ``1'', FLAG(1) is for the maximum peak and FLAG(2) is for the minimum peak, and when both registers are set to ``1'',
The silencing process is executed even if both peak values are not lower than OFFLEV.

STEPレジスタは、0、1、2、3の4段階を
とり、第5図a又は第6図aに示すように弦振動
がなされるにつれて、第5図b又は第6図bに示
すようにその内容は変化する。このSTEPレジス
タが0のときは、波形のピーク値が後述する
OFFLEV以下となるノーオフ(消音)状態の
ときであり、3のときは、上述したように波形の
ピーク値が前回のピーク値よりOFFLEVのレ
ベル値以上小さくなりノーオフ(消音)指令を出
力した後の状態のときであり、1、2のときは、
通常の放音状態のときである。
The STEP register takes four stages of 0, 1, 2, and 3, and as the string vibrates as shown in Fig. 5a or 6a, it changes as shown in Fig. 5b or 6b. Its contents change. When this STEP register is 0, the peak value of the waveform will be explained later.
This is a no-off (silence) state in which the value is below OFFLEV, and when it is 3, the peak value of the waveform is smaller than the previous peak value by more than the level value of OFFLEV, and the no-off (silence) command is output. When the state is 1 or 2,
This is when the sound is being emitted normally.

PERIODレジスタは、計測した周期をあらわ
すデータが入力され、このレジスタの内容を基
に、CPU100は、周波数ROM8、音源回路9
に対し周波数制御を行うものである。
Data representing the measured period is input to the PERIOD register, and based on the contents of this register, the CPU 100 selects the frequency ROM 8, the sound source circuit 9,
frequency 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 in which it counts at a predetermined clock.

SIGNレジスタは、周期計測のためのゼロクロ
ス点が最大ピーク(MAX)点の次のゼロクロス
点なのか、最小ピーク(MIN)点の次のゼロク
ロス点なのかを示すもので、1のとき前者、2の
とき後者である。
The SIGN 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.

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

更に、後述するように本実施例は各種判断のた
めに、4つの定数(スレツシユホールドレベル)
がCPU100内に設定されている。
Furthermore, as will be described later, this embodiment uses four constants (threshold levels) for various judgments.
is set in the CPU 100.

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

ONLEVは、ノートオン(発音中)状態であ
つて、前回の検出レベルに対する今回の検出レベ
ルの差がこの値以上大きくなつていれば、トレモ
ロ奏法等による操作があつたとして、再度発音開
始(リラテイブオン、relative on)処理を行う
ためのものである。
ONLEV is in the note-on state (sounding) and if the difference between the current detection level and the previous detection level is greater than this value, it is assumed that an operation such as tremolo has been performed and the sound starts again (relative on). , relative on) processing.

OFFLEVは、第6図aに示してあるように、
ノートオン(発音中)状態であつて、この値以下
のピーク値が検知されると、ノートオフ(消音)
処理をする。
OFFLEV is, as shown in Figure 6a,
If a peak value below this value is detected while the note is on (sounding), the note will turn off (mute).
Process.

OFFLEVは、第6図aに示してあるように、
ノートオン(発音中)状態であつて、前回の最大
ピーク値又は最小ピーク値に対する今回の各ピー
ク値の差がこの値以上小さくなつていれば、指を
フレツトから離すことによる消音操作があつたと
して、消音処理を行うためのものである。
OFFLEV is, as shown in Figure 6a,
If the note is on (currently sounding) and the difference between the current peak value and the previous maximum or minimum peak value is smaller than this value, a mute operation was performed by removing the finger from the fret. This is for performing sound silencing processing.

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

ゼロクロス点での割り込み処理 さて、アンドゲート24もしくはアンドゲート
25の出力である割り込み指令信号INTa,INTb
のCPU100への到来によつて、第3図の割り
込み処理を行う。
Interrupt processing at zero cross point Now, the interrupt command signals INT a , INT b which are the output of AND gate 24 or AND gate 25
When the interrupt occurs at the CPU 100, the interrupt processing shown in FIG. 3 is performed.

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

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

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

続くステツプP6にて、上記a、b、tレジス
タの内容をワークメモリ101に転送記憶し割り
込み処理を終了する。
At the subsequent 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.

メイン処理 メインルーチン(第4図)では、まず、ステツ
プS1〜S3でFLAG(1)、FLAG(2)、STEPの各レジ
スタをクリアした後、ステツプS4にて、上述した
ような割り込み処理によつてワークメモリ101
にa′、b′、t′の内容(上記a、b、tと同じで前
回記録されたということでa′、b′、t′と示す。)が
書込まれているか否かをジヤツジし、何ら割り込
み処理はなされていないときはNOの判断をし
て、このステツプS4を繰返し実行する。
Main processing In the main routine (Figure 4), first, in steps S1 to S3 , the FLAG(1), FLAG(2), and STEP registers are cleared, and then in step S4 , the above-mentioned interrupt is cleared. The work memory 101 is
Check whether the contents of a', b', and t' (shown as a', b', and t' because they are the same as a, b, and t above and were recorded last time) have been written. However, if no interrupt processing is being performed, the determination is NO and this step S4 is repeatedly executed.

そして、上記ステツプS4でYESの判断をすれ
ば、次のステツプS5に進んでその内容a′、b′、
t′を読出す。次にステツプS6において、上記
AMP(a′)レジスタに記憶してある同じ種類(つ
まり最大又は最小)のピーク点のピーク値を
CPU100内のcレジスタに読出し、今回抽出
したピーク値b′を上記AMP(a′)レジスタに設定
する。
If YES is determined in step S4 above, the process proceeds to the next step S5 and the contents a', b',
Read t′. Next, in step S6 , the above
The peak value of the same type (i.e. maximum or minimum) peak point stored in the AMP (a′) register
The peak value b' extracted this time is read into the c register in the CPU 100 and set in the AMP (a') register.

さて、次にステツプS7〜S9において、STEPレ
ジスタの内容が夫々1、2、3であるか否か、ジ
ヤツジする。いま、最初の状態であるとしたら、
STEPレジスタは0なので、ステツプS7、S8、S9
ともNOの判断がなされる。そして、次のステツ
プS10にて、今回検出したピーク値b′が上記
ONLEVより大か否かジヤツジする。
Next, in steps S7 to S9 , it is checked whether the contents of the STEP register are 1, 2, or 3, respectively. If we are in the initial state now,
Since the STEP register is 0, steps S 7 , S 8 , S 9
In both cases, the judgment is NO. Then, in the next step S10 , the peak value b′ detected this time is
Check whether it is greater than ONLEV.

もし、このステツプS10の判断がNOならば、
まだ発音開始の処理をしないのでステツプS4へも
どる。仮に、第5図aのようにONLEVより大
きな入力がローパスフイルタ3より与えられたと
すると、ステツプS10の判断はYESとなつていて、
ステツプS11へ進む。
If the judgment in step S10 is NO,
Since the pronunciation start process has not yet been performed, the process returns to step S4 . If an input larger than ONLEV is given from the low-pass filter 3 as shown in FIG. 5a, the judgment in step S10 would be YES,
Proceed to step S11 .

ステツプS11においては、STEPレジスタに1
をセツトし、次にステツプS12でSIGNレジスタ
に、a′(つまり最大ピーク点直後のゼロクロス点
のとき1、最小ピーク点直後のゼロクロス点のと
き2)の値をSIGNレジスタに入力する。
In step S11 , 1 is set in the STEP register.
Then, in step S12 , the value a' (that is, 1 when the zero cross point is immediately after the maximum peak point, and 2 when the zero cross point is immediately after the minimum peak point) is input into the SIGN register.

そして、ステツプS13にて、t′の値つまりゼロ
クロス点Zero1の時刻をTレジスタにセツトす
る。
Then, in step S13 , the value of t', that is, the time of zero cross point Zero1, is set in the T register.

このようにして、a′の内容(第5図aの場合
1)がSIGNレジスタに、b′の内容はAMP(1)レジ
スタに、t′の内容(上述のとおりゼロクロス点
Zero1の時刻)はTレジスタにセツトされたこと
になる。そして、再びステツプS4へもどる。
In this way, the contents of a' (1 in the case of a in Figure 5) are stored in the SIGN register, the contents of b' are stored in the AMP(1) register, and the contents of t' (zero crossing point as described above) are stored in the SIGN register.
Zero1 time) is set in the T register. Then, return to step S4 again.

以上で、第5図aのゼロクロス点Zero1の直後
のメインルーチンの処理を完了する。さて、次
に、ゼロクロス点Zero2の直後のメインルーチン
の処理においては、上記ステツプS4〜S6のデータ
セツト処理を実行し、次のステツプS7でYESの
判断をして、ステツプS14へゆく。
This completes the processing of the main routine immediately after the zero cross point Zero1 in FIG. 5a. Now, next, in the main routine processing immediately after the zero cross point Zero2, the data set processing in steps S4 to S6 is executed, a YES decision is made in the next step S7 , and the process proceeds to step S14 . go.

いま、第5図aのように、入力波形が立上つて
(つまり正方向へ変化して)与えられたとき、
SIGNレジスタは1になつており、今回負のピー
ク点つまり最小ピーク点を透過してきているの
で、a′レジスタは2となつていて、このステツプ
S14ではNOの判断をし、ステツプS4へ何ら処理
をすることなくもどる。
Now, as shown in Figure 5a, when the input waveform is given with a rising edge (that is, changing in the positive direction),
The SIGN register is set to 1, and this time the negative peak point, that is, the minimum peak point, has been passed through, so the a' register is set to 2, and this step
In S14 , a NO judgment is made and the process returns to step S4 without any processing.

次に、ゼロクロス点Zero3の到来時には、再び
ステツプS4〜S7、S14を実行し、今回はステツプ
S14でYESの判断がなされ、ステツプS15に進み、
第5図bに示すようにSTEPレジスタの内容を2
とし、次のステツプS16においてt′レジスタにあ
る今回の割り込み時刻からTレジスタにあるゼロ
クロス点Zero1の時刻を減算し、その差つまり第
5図cに示す長さつまり波形一周期である値を
PERIODレジスタにストアする。
Next, when the zero cross point Zero3 arrives, steps S 4 to S 7 and S 14 are executed again, and this time
A YES judgment is made in S14 , and the process proceeds to step S15 .
As shown in Figure 5b, the contents of the STEP register are set to 2.
Then, in the next step S16 , subtract the time of zero cross point Zero1 in the T register from the current interrupt time in the t' register, and calculate the difference, which is the length shown in Figure 5c, or a value that is one cycle of the waveform.
Store in PERIOD register.

次にステツプS17にゆきt′の内容をTレジスタ
に転送して新たな周期計測の開始をする。ステツ
プS18では、上記PERIODレジスタの内容に応じ
た周波数をもつ楽音を、音源回路から発生させる
ようにノートオンの指示をし、第5図dの如く、
このタイミングから発音開始をするようになる。
Next, the process goes to step S17 , where the contents of t' are transferred to the T register and a new cycle measurement is started. In step S18 , a note-on instruction is given so that the tone generator circuit generates a musical tone with a frequency corresponding to the contents of the PERIOD register, as shown in FIG. 5d.
The sound will start from this timing.

さて、次のゼロクロス点Zero4(第5図a参照)
の直後のメインルーチンの処理では、ステツプS4
〜S8を実行し、ステツプS8でSTEPレジスタの内
容が2であるからYESの判断をし、続いてステ
ツプS19へゆき、b′の値がOFFLEV(第6図a
参照)の値を越えているかジヤツジし、まだピー
クレベルは大きいので、このステツプS19では
YESの判断をし、ステツプS20へ進む。
Now, the next zero cross point Zero4 (see Figure 5 a)
In the main routine processing immediately after
~ S8 is executed, and in step S8 , the content of the STEP register is 2, so it is determined as YES, and then the process goes to step S19 , where the value of b' becomes OFFLEV (Fig. 6a).
), and the peak level is still large, so in this step S19
Decide YES and proceed to step S20 .

ステツプS20では、リフテイブオン
(relativeon)の処理をするか否かのジヤツジを
するようにする。即ち、今回のピーク値b′が前回
のピーク値cよりもONLEVだけ大きいか、つ
まり発音中に急激に抽出ピーク値が大きくなつた
か否かジヤツジする。
In step S20 , a decision is made as to whether or not to perform relativeon processing. That is, it is determined whether the current peak value b' is larger than the previous peak value c by ONLEV, that is, whether the extracted peak value suddenly increases during sound generation.

通常弦を振動すれば、自然減衰を行うもので、
ステツプS20ではNOの判断をするか、もしトレ
モロ奏法などによつて、前の弦振動が減衰し終ら
ないうちに、再び弦が操作されて、このステツプ
S20の判断がYESとなることがある。
Normally, when you vibrate a string, it naturally damps.
At step S 20 , either a NO judgment is made, or if the string is operated again before the previous string vibration has finished damping due to tremolo playing, etc., this step is performed.
The judgment of S 20 may be YES.

このときは、ステツプS20からステツプS11へジ
ヤンプし、ステツプS12、S13を実行し、その結果
STEPレジスタは1となり、上述した発音開始時
の動作と全く同じ動作をそれ以降実行する。つま
り、その後ステツプS7→S14→S15→S16→S17→S18
の発音開始処理を実行し、再発音処理をする。こ
のときは、アタツク部をもつ再発音開始がなされ
る。
In this case, jump from step S 20 to step S 11 , execute steps S 12 and S 13 , and
The STEP register becomes 1, and from then on, exactly the same operation as that at the start of sound generation described above is executed. That is, then the steps S 7 →S 14 →S 15 →S 16 →S 17 →S 18
Executes the pronunciation start process and performs the re-pronunciation process. At this time, re-sounding with the attack part is started.

さて、通常状態では、ステツプS20に続けてス
テツプS21へゆき、今回のピーク値b′が前回のピ
ーク値cよりもOFFLEVだけ小さいか、つま
り発音中に指をフレツトから離す消音操作がなさ
れたか否かジヤツジする。
Now, in the normal state, following step S20 , the process goes to step S21 , and it is determined whether the current peak value b' is smaller than the previous peak value c by OFFLEV, or in other words, a muting operation is performed by removing the finger from the fret during sound production. I wonder if it's true or not.

ここで、指がフレツトを押さえたままであつた
とすると、このステツプS21ではNOの判断をし、
ステツプS22でFLAG(3−a′)レジスタをクリア
する。3−a′は直前のピーク点と反対側のピーク
点についてのFLAGレジスタを示すもので、現時
点がa′=1で最大ピーク点直後のゼロクロス点な
ら最小ピーク点側のFLAG(2)がクリアされ、現時
点がa′=2で最小ピーク点直後のゼロクロス点な
ら最大ピーク点側のFLAG(1)がクリアされる。い
ま最小ピーク点直後のゼロクロス点Zero4である
ので、FLAG(1)がクリアされることになる。
Here, if the finger is still pressing the fret, the judgment of NO is made in this step S21 ,
At step S22 , the FLAG (3-a') register is cleared. 3-a' indicates the FLAG register for the peak point on the opposite side of the previous peak point, and if the current moment is a' = 1 and the zero cross point immediately after the maximum peak point, FLAG (2) on the minimum peak point side is cleared. If the current point is a' = 2 and the zero cross point immediately after the minimum peak point, FLAG(1) on the maximum peak point side is cleared. Since it is now the zero cross point Zero4 immediately after the minimum peak point, FLAG(1) will be cleared.

続いて、CPU100は、ステツプS23で、
SIGNレジスタとa′レジスタの内容が一致するか
否かジヤツジする。いまゼロクロス点Zero4であ
るので、SIGNレジスタは1、a′レジスタは2な
ので、このステツプS23ではNOのジヤツジをし、
ステツプS4へもどる。
Next, in step S23 , the CPU 100
Check whether the contents of the SIGN register and the a' register match. Since the current zero crossing point is Zero4, the SIGN register is 1 and the a' register is 2, so in this step S23 , make a NO change.
Return to step S 4 .

次のゼロクロス点Zero5の検出時には、ステツ
プS4〜S8、S19〜S23を実行し、ステツプS23
YESの判断をして、ステツプS24、S25、S26を行
い、新たな周期つまり、Zero3からZero5までの
時間をPERIODレジスタへセツトして、t′の内容
をTレジスタに転送して新たな周期計測の開始を
行ない、上記PERIODレジスタ内の今回検出し
たピツチに従つて、周波数ROM8、音源回路9
に対して、周波数変更の指示をする。
When the next zero cross point Zero5 is detected, steps S 4 to S 8 and S 19 to S 23 are executed, and in step S 23
Make a YES judgment, perform steps S24 , S25 , and S26 , set a new period, that is, the time from Zero3 to Zero5, in the PERIOD register, transfer the contents of t' to the T register, and write a new period. The frequency ROM 8 and the sound source circuit 9 are started according to the pitch detected this time in the above PERIOD register.
Instructs the user to change the frequency.

いま、指をフレツトより離す消音操作を行つた
ものとすると、第6図aに示すように、最大及び
最小の各ピーク値が小さくなり始め、前回の各ピ
ーク値に対する今回の各ピーク値の差が
OFFLEVの値以上に小さくなる。すると、
CPU100は、ステツプS4〜S8、S19〜S21を実行
し、ステツプS21でYESの判断をして、ステツプ
S27で今回の直前のピーク点と反対側のピーク点
を示すd=3−a′を求め、ステツプS28でこのd
に応じた側のFLAG(d)が1となつているか否か判
断する。
Now, if we perform a mute operation by removing our finger from the fret, the maximum and minimum peak values will start to decrease, as shown in Figure 6a, and the difference between each current peak value and each previous peak value will increase. but
It becomes smaller than the value of OFFLEV. Then,
The CPU 100 executes steps S 4 to S 8 and S 19 to S 21 , determines YES in step S 21 , and executes steps S 4 to S 8 and S 19 to S 21.
In step S27 , d=3-a', which indicates the peak point on the opposite side to the previous peak point, is obtained, and in step S28 , this d
Determine whether FLAG(d) on the corresponding side is 1 or not.

いま、FLAG(i)レジスタはどちらもまだ0であ
るから、ステツプS29に進み今回の直前のピーク
点側のFLAG(a′)レジスタを1とし、ステツプ
S4に戻る。
Now, both FLAG(i) registers are still 0, so proceed to step S29 , set the FLAG(a') register on the previous peak point side to 1, and proceed to step S29.
Return to S4 .

続いて、反対側のピーク点を通過して、次のゼ
ロクロス点に到達すると、CPU100は、上述
のステツプS4〜S8、S19〜S21を行い、ステツプ
S27、S28で反対側のピーク点についてのFLAG(i)
レジスタが1となつているか否かジヤツジする。
Subsequently, when passing through the peak point on the opposite side and reaching the next zero crossing point, the CPU 100 performs the above-mentioned steps S 4 to S 8 and S 19 to S 21 and then returns to step S 4 .
FLAG(i) for opposite peak points at S 27 and S 28
Check whether the register is set to 1 or not.

今度は1となつているから、ステツプS30、S31
でこの反対側のFLAG(i)レジスタをクリアして、
STEPレジスタの値を3とし、ステツプS32でノ
ートオフ処理を行い、それまで音源回路9から出
力していた楽音の発生を停止するよう音源回路9
に指示する。
This time it is 1, so steps S 30 and S 31
Clear the FLAG(i) register on the other side of this,
The value of the STEP register is set to 3, note-off processing is performed in step S32 , and the tone generator circuit 9 is configured to stop generating the musical tone that has been output from the tone generator circuit 9 up to that point.
instruct.

こうして、これ以降の楽音の放音はなくなり、
指をフレツトら離すことにより、確実に消音を行
うことができるし、ステツプS24〜S26のピツチ抽
出処理も行わないで済むようになる。
In this way, no further musical tones will be emitted,
By removing the finger from the fret, the sound can be surely muted, and the pitch extraction processing in steps S24 to S26 can be omitted.

この場合もし、第7図に示すように、一方のピ
ークレベルについてのみOFFLEV以上小さく
なつたときには、ステツプS21、S27〜S29で一方
のFLAG(i)レジスタに1がセツトされるが、次の
ステツプS21のピークレベルがOFFLEV以上小
さくなつたか否かの判別処理でNOと判断される
ので、ステツプS22で上記1にセツトされた
FLAG(i)レジスタはクリアされ、引き続きステツ
プS23〜S26の発音継続処理が行われていくことに
なる。
In this case, as shown in FIG. 7, if only one peak level becomes smaller than OFFLEV, one of the FLAG(i) registers is set to 1 in steps S21 , S27 to S29 . In the next step S21, the determination process of whether the peak level has become smaller than OFFLEV or not is determined as NO, so the above value is set to 1 in step S22 .
The FLAG(i) register is cleared, and the sound generation continuation processing in steps S23 to S26 continues.

以上要約すると、第6図の場合には、ステツプ
S21、S27〜S29で、一方のピークレベルについて
OFFLEV以下になつたことによつて、まずフ
ラグセツト処理が行われ、続いてステツプS21
S27、S28、S30〜S32で、他方のピークレベルも
OFFLEV以下になつたことによつて、はじめ
て消音処理が行われる。一方、第7図の場合に
は、ステツプS21、S27〜S29で、一方のピークレ
ベルについてOFFLEV以下になつたことによ
つて、まずフラグセツト処理が行われるが、ステ
ツプS21、S22で、他方のピークレベルが
OFFLEV以下になつていないことにより、上
記フラグはクリアされ、引き続きステツプS23
S26の発音継続処理が続行される。
To summarize above, in the case of Figure 6, the steps
For S 21 , S 27 to S 29 , one peak level
Since the value is less than OFFLEV, flag setting processing is performed first, followed by step S21 .
At S 27 , S 28 , S 30 ~ S 32 , the other peak level is also
Silence processing is performed only when the value becomes lower than OFFLEV. On the other hand, in the case of FIG. 7, in steps S 21 and S 27 to S 29 , flag setting processing is performed first because one of the peak levels has fallen below OFFLEV, but in steps S 21 and S 22 And the other peak level is
Since the value does not fall below OFFLEV, the above flag is cleared and the process continues from step S23 to
The sound generation continuation process of S26 continues.

このように、STEPレジスタが3となつて消音
された後においては、CPU100は、ステツプ
S1〜S8の後、ステツプS9でYESの判断をし、ス
テツプS33でピークレベル値b′がOFFLEV以下
となつたか否かジヤツジする。STEPレジスタが
3となつた直後は、ピーク値はOFFLEV以下
にはなつていないので、ステツプS36に進み、上
記ステツプS20と同じく、リラテイブオンの処理
をするか否かのジヤツジをし、今回のピーク値
b′が前回のピーク値cよりもONLEVだけ大き
ければ、ステツプS11〜S13の発音開始処理を行
い、小さければそのままステツプS4に戻る。
In this way, after the STEP register becomes 3 and the sound is muted, the CPU 100
After steps S1 to S8 , a YES determination is made in step S9 , and a check is made in step S33 to see if the peak level value b' has become less than OFFLEV. Immediately after the STEP register reaches 3, the peak value has not fallen below OFFLEV, so proceed to step S36 , and as in step S20 above, decide whether or not to perform relative-on processing. peak value
If b' is greater than the previous peak value c by ONLEV, the sound generation start process of steps S11 to S13 is performed, and if it is smaller, the process returns to step S4 .

そして、ピーク値がOFFLEVを下まわるよ
うになると、ステツプS33でNOの判断がなされ、
ステツプS34でSTEPレジスタの内容も0とされ
る。
Then, when the peak value becomes lower than OFFLEV, a NO judgment is made in step S33 .
In step S34 , the contents of the STEP register are also cleared to 0.

また、STEPレジスタが2のときの通常の発音
状態において、ピーク値がOFFLEVを下まわ
るようになると、ステツプS19でNOの判断をし、
続いてステツプS35へゆきSTEPレジスタの内容
を0とし、ノートオフ処理をステツプS36にて行
い、それまで音源回路9から出力していた楽音の
発生を停止する。
Also, in the normal sound generation state when the STEP register is set to 2, if the peak value becomes lower than OFFLEV, a NO judgment is made in step S19 .
Next, the program goes to step S35 , where the contents of the STEP register are set to 0, and note-off processing is performed at step S36 , stopping the generation of musical tones that have been output from the tone generator circuit 9 up to that point.

尚、指をフレツトより離したときの消音を行う
場合に用いられる上記OFFLEVの値は、一定
の値としてもよいし、直前のピーク値に一定の比
率を乗算した値としてもよい。また、上記実施例
では、各ゼロクロス点間におけるピツチを計測し
たが、最大ピーク点間とゼロクロス点間、最小ピ
ーク点間とゼロクロス点間、最大ピーク点間と最
小ピーク点間等、どのような周期を計測してもよ
く、このような場合、最大ピーク検出回路4又は
最小ピーク検出回路5からの信号を割り込み指令
信号INTとして用いればよい。その場合も全く
同じ結果を得ることができる。その他、例えばピ
ーク点の直前のゼロクロス点の検出によつて、上
記同様の処理を行つてもよい。その他、基準とな
る点のとり方は種々変更できる。
Note that the value of OFFLEV used to mute the sound when the finger is removed from the fret may be a constant value, or may be a value obtained by multiplying the previous peak value by a constant ratio. In addition, in the above example, the pitch between each zero cross point was measured, but what kind of pitch is measured between the maximum peak point and the zero cross point, between the minimum peak point and the zero cross point, between the maximum peak point and the minimum peak point, etc. The period may be measured, and in such a case, a signal from the maximum peak detection circuit 4 or the minimum peak detection circuit 5 may be used as the interrupt command signal INT. In that case, exactly the same result can be obtained. In addition, the same processing as described above may be performed, for example, by detecting a zero-crossing point immediately before a peak point. In addition, the method of determining the reference points can be changed in various ways.

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

更に、上記実施例においては、本発明を電子ギ
ターに適用したものであつたが、必ずしもそれに
限られるものではなく、第6図に示すように、音
の波形のピーク値を急激に下げて消音させること
を意図するものであれば、マイクロフオン等から
入力される音声信号あるいは電気的振動信号から
ピツチ抽出を行つて、原音声信号とは別の音響信
号を、対応するピツチもしくは音階周波数にて発
生するシステムであれば、どのような形態のもの
であつてもよい。具体的には、鍵盤を有するもの
例えば電子ピアノ、管楽器を電子化したもの、弦
楽器、例えばバイオリンや琴などを電子化したも
のにも同様に適用できる。
Further, in the above embodiment, the present invention is applied to an electronic guitar, but the present invention is not necessarily limited to this.As shown in FIG. If the intended purpose is to perform pitch extraction from the audio signal or electrical vibration signal input from a microphone, etc., an acoustic signal different from the original audio signal can be extracted at the corresponding pitch or scale frequency. Any type of system may be used as long as the system generates the information. Specifically, the invention can be similarly applied to instruments with keyboards, such as electronic pianos, electronic wind instruments, and electronic string instruments, such as violins and kotos.

[発明の効果] この発明は、以上詳述したように、入力波形の
最大ピーク値と最小ピーク値との双方が前回の最
大ピーク値と最小ピーク値とより所定値以上小さ
くなつていれば、消音を指示するようにしたか
ら、指をフレツトより離して消音する動作を確実
に行うことができ、フレツトを離す前の音と音高
の異なる音が発生してしまうこともなくなり、弦
楽器をはじめとする自然楽器により近い演奏を行
うことができるほか、フレツトより指を離した後
にもピツチ(基本周波数)抽出が無駄に行われて
しまうことがなくなる等の効果を奏する。
[Effects of the Invention] As described in detail above, the present invention provides that if both the maximum peak value and the minimum peak value of the input waveform are smaller than the previous maximum peak value and minimum peak value by a predetermined value or more, Since we now have a mute instruction, you can reliably mute the sound by removing your finger from the fret, and there will be no sound that is different in pitch from the sound before you release the fret. In addition to making it possible to perform a performance closer to that of a natural instrument, this also has the effect of eliminating pitch (fundamental frequency) extraction from being wasted even after the finger is removed from the fret.

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

第1図は、本発明を適用した一実施例である電
子楽器の入力制御装置の全体回路構成を示す図、
第2図は、第1図中の各部に表われる波形を示す
タイムチヤート図、第3図はCPUの割り込みル
ーチンのフローチヤートを示す図、第4図は
CPUのメインルーチンのフローチヤートを示す
図、第5図は発音開始時の動作を示すタイムチヤ
ート図であり、第6図は、フレツトより指を離す
操作による消音時の動作を示すタイムチヤート図
であり、第7図は、波形のピーク値に変動があつ
ても消音しない時の動作を示すタイムチヤート図
である。 1……入力端子、4……最大ピーク検出回路、
5……最小ピーク検出回路、6……ゼロクロス点
検出回路、7……カウンタ、9……音源回路、1
2……ラツチ、14,15……フリツプフロツ
プ、100……CPU、101……ワークメモリ、
P1〜P6……ピツチ抽出回路。
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.
Figure 2 is a time chart showing the waveforms appearing in each part of Figure 1, Figure 3 is a flowchart of the CPU interrupt routine, and Figure 4 is a time chart showing the waveforms appearing in each part of Figure 1.
Figure 5 is a time chart showing the flowchart of the main routine of the CPU, Figure 5 is a time chart showing the operation at the start of sound generation, and Figure 6 is a time chart showing the operation when muting by removing your finger from the fret. 7 is a time chart showing the operation when the sound is not muted even if there is a fluctuation in the peak value of the waveform. 1...Input terminal, 4...Maximum peak detection circuit,
5... Minimum peak detection circuit, 6... Zero cross point detection circuit, 7... Counter, 9... Sound source circuit, 1
2...Latch, 14, 15...Flip-flop, 100...CPU, 101...Work memory,
P1 to P6... Pitch extraction circuit.

Claims (1)

【特許請求の範囲】 1 入力波形信号の最大ピーク値と最小ピーク値
とを検出する検出手段と、 この検出手段により今回検出された最大ピーク
値と最小ピーク値との双方が、前回検出された最
大ピーク値と最小ピーク値より夫々所定値以上小
さくなつているか否かを判別する判別手段と、 この判別手段により小さくなつていると判別さ
れた場合に、上記入力波形信号に対応して発生し
ている楽音の消音を指示する消音指示手段と、 を有することを特徴とする電子楽器の入力制御装
置。
[Claims] 1. Detection means for detecting the maximum peak value and minimum peak value of an input waveform signal, and both the maximum peak value and minimum peak value detected this time by this detection means are the same as those detected previously. a determining means for determining whether or not the maximum peak value and the minimum peak value are smaller than a predetermined value, respectively; An input control device for an electronic musical instrument, comprising: a mute instructing means for instructing to mute a musical tone that is being played.
JP62076453A 1986-10-24 1987-03-31 Input controller for electronic musical instrument Granted JPS63243997A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62076453A JPS63243997A (en) 1987-03-31 1987-03-31 Input controller for electronic musical instrument
US07/478,759 US5018428A (en) 1986-10-24 1990-02-12 Electronic musical instrument in which musical tones are generated on the basis of pitches extracted from an input waveform signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62076453A JPS63243997A (en) 1987-03-31 1987-03-31 Input controller for electronic musical instrument

Publications (2)

Publication Number Publication Date
JPS63243997A JPS63243997A (en) 1988-10-11
JPH041358B2 true JPH041358B2 (en) 1992-01-10

Family

ID=13605568

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62076453A Granted JPS63243997A (en) 1986-10-24 1987-03-31 Input controller for electronic musical instrument

Country Status (1)

Country Link
JP (1) JPS63243997A (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56164294U (en) * 1980-05-12 1981-12-05

Also Published As

Publication number Publication date
JPS63243997A (en) 1988-10-11

Similar Documents

Publication Publication Date Title
US6881890B2 (en) Musical tone generating apparatus and method for generating musical tone on the basis of detection of pitch of input vibration signal
JP2712346B2 (en) Frequency control device
KR100189797B1 (en) Method for recognition of the start of a note in the case or percussion or plucked musical instrument
JP3653854B2 (en) Stringed electronic musical instrument
JP2532424B2 (en) Waveform signal input controller
JP4198046B2 (en) Electronic stringed instruments
JPH041358B2 (en)
JP2765578B2 (en) Waveform signal controller
JP2508044B2 (en) Electronic musical instrument input control device
JP2581068B2 (en) Waveform signal controller
JP2508692B2 (en) Input waveform signal controller
JP2605667B2 (en) Electronic musical instrument input control device
JP2792022B2 (en) Electronic musical instrument input control device
JPH0727512Y2 (en) Input control device for electronic musical instruments
JPH0431598B2 (en)
JPS63217398A (en) Input controller for electronic musical instrument
JPH0633515Y2 (en) Frequency control device for electronic stringed instruments
JPS63217397A (en) Input controller for electronic musical instrument
JPH0431599B2 (en)
JP2961675B2 (en) Electronic musical instrument
JPH03282592A (en) Automatic music player
JP2555553B2 (en) Input waveform signal controller
JPH0648556Y2 (en) Input control device for electronic musical instruments
JP2516070Y2 (en) Electronic musical instrument input control device
JPH083711B2 (en) Input waveform signal controller

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080110

Year of fee payment: 16