JPS63261391A - Input controller for electronic musical instrument - Google Patents

Input controller for electronic musical instrument

Info

Publication number
JPS63261391A
JPS63261391A JP62095443A JP9544387A JPS63261391A JP S63261391 A JPS63261391 A JP S63261391A JP 62095443 A JP62095443 A JP 62095443A JP 9544387 A JP9544387 A JP 9544387A JP S63261391 A JPS63261391 A JP S63261391A
Authority
JP
Japan
Prior art keywords
register
value
waveform
musical instrument
peak
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
JP62095443A
Other languages
Japanese (ja)
Other versions
JP2765578B2 (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 JP62095443A priority Critical patent/JP2765578B2/en
Publication of JPS63261391A publication Critical patent/JPS63261391A/en
Application granted granted Critical
Publication of JP2765578B2 publication Critical patent/JP2765578B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

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 particularly relates to an input control device for starting musical tones more accurately.

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

この種の電子楽器では、入力波形信号のピッチを抽出し
てから音源装置に対し当該ピッチに対応する音階音を発
生するよう指示するのが一般的である。
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
elativeon )処理を行い、音量や音色などを
変化することにより、実際の演奏操作に追従できるよう
にしたものを出願した(特願昭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 tremolo is performed, that is, when a musical tone is being produced by string vibration. 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 for a device that was able to follow the actual performance operations by performing elation) processing and changing the volume, tone, etc. (Japanese Patent Application No. 61-285985)
.

ところが、上記トレモロ奏法ではなく、通常の演奏時に
おける入力波形信号の立上り時には、波形が安定せず、
数回にわたって入力波形信号のレベルが急激に増大して
しまうことがある。
However, when the input waveform signal rises during normal performance, rather than the tremolo playing method described above, the waveform is not stable.
The level of the input waveform signal may increase rapidly several times.

例えば、入力波形の立上りは第7図(a)に示すように
なることがあるが、この場合、aOの波形の立上りで発
音開始がなされたにもかかわらず、すぐ後のa3の波形
でも前のa2の波形レベルより急激に大きくなっている
ため、ここで上述のりラティブオン(再発音)処理が行
われてしまい、ピッキング操作が1回であるにもかかわ
らず、づつけて複数回発音開始処理が行われてしまうと
いう問題があった。
For example, the rising edge of the input waveform may be as shown in Figure 7(a), but in this case, even though the sound generation is started at the rising edge of the aO waveform, even the a3 waveform that immediately follows it is not the same. Because the waveform level is suddenly higher than the waveform level of a2, the above-mentioned lative-on (re-sounding) process is performed, and even though the picking operation is only one time, the sounding start process is performed multiple times. There was a problem that this was done.

[発明の目的] この発IIは上記23<情に鑑みてなされたもので、ト
レモロ奏法に応じた再発音と通常の発音とを明確に区別
して、楽音の発音開始をより正確なものにすることので
きる電子楽器の入力装aを提供することを目的とする。
[Purpose of the Invention] This pronunciation II was made in consideration of the above-mentioned 23. It clearly distinguishes between repronunciation according to tremolo playing technique and normal pronunciation, and makes the start of pronunciation of musical tones more accurate. It is an object of the present invention to provide an input device a for an electronic musical instrument that is capable of performing the following functions.

[発明の要点] この目的を達成するため、本発明は、入力波形信号が所
定値以上になったことによって発音開始指令を与えて、
楽音を発生した後でも入力波形信号が急激に大きくなっ
たときには、再度発音開始指令を与えるようにするとと
もに、発音開始指令を与えてから所定期間内は、たとえ
入力波形信号が急激に大きくなっても、再度発音開始の
指示を行わないようにしたことを要点とするものである
[Summary of the Invention] In order to achieve this object, the present invention provides a sound generation start command when the input waveform signal exceeds a predetermined value,
If the input waveform signal suddenly increases even after a musical tone is generated, the sound generation start command is given again. The main point is that the instruction to start pronunciation is not given again.

[実施例」 以下、本発明を電子ギターに適応した一実施例について
図面を参照して詳述する。
[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.

本実施例では、以下に説明するとおり、ステップ5r−
5目、316〜321を実行するCPU100が指示手
段に、アンプ2、ローパスフィルタ3、最大ピーク検出
回路4、最小ピーク検出回路5、ゼロクロス点検出回路
6、A/Dコンバータ11、ラッチ12、オアゲート1
3.7リツプフロツプ14.15が検出手段に、ステッ
プ523・S8〜S++、Sob〜S月を実行するCP
U100が制御手段に、ステップS33、S34を実行
するCPU100が計測手段に、ステップS32を実行
するCPU100が禁止手段に夫々対応する。
In this embodiment, as explained below, step 5r-
Fifth, the CPU 100 that executes steps 316 to 321 uses an amplifier 2, a low-pass filter 3, a maximum peak detection circuit 4, a minimum peak detection circuit 5, a zero cross point detection circuit 6, an A/D converter 11, a latch 12, and an OR gate. 1
3.7 Lip-flop 14.15 is the detection means, and the CP executes step 523, S8 to S++, Sob to S month.
U100 corresponds to a control means, the CPU 100 that executes steps S33 and S34 corresponds to a measurement means, and the CPU 100 that executes step S32 corresponds to a prohibition means.

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

入力端子1・・・・・・からの楽音信号は、ピッチ抽出
回路Pi−P6(図では第1弦のPIについてのみその
内部構成を示している。)内部の夫々のアンプ2・・・
・・・で増幅され、ローパスフィルタ(LPF)3・・
・・・・で高周波成分がカットされて基本波形が抽出さ
れ、最大ピーク検出回路(MAX)4・・・・・・、最
小ピーク検出回路(MIN)5・・・・・・及びゼロク
ロス点検出回路(Zero)6・・・・・・に与えられ
る。ローパスフィルタ3・・・・・・は、各弦の開放弦
の振動音周波afの4倍の4fにカットオフ周波数が設
定されている。これは、各弦の出力音の周波数が2オク
タ一ブ以内であることに基づくものである。最大ピーク
検出回路4・・・・・・では、楽音信号の最大ピーク点
が検出され、その検出パルス信号の立上りで後段に接続
されているフリップフロップ14・・・・・・のQ出力
がHi ghレベルとなり、このフリップフロップ14
・・・・・・の出力とゼロクロス点検出回路6・・・・
・・のインバータ30・・・・・・の反転出力とのアン
ド出力がアンドゲート24・・・・・・を介して割り込
み指令信号lNTa+〜INTabとしてCPU100
に与えられ、同様に最小ピーク検出回路5・・・・・・
でも、楽音信号の最小ピーク点が検出され、その検出パ
ルス信号の立上りで後段に接続されているフリップフロ
ップ15・・・・・・のQ出力がHi ghレベルとな
り、このフリップフロップ15・・・・・・の出力とゼ
ロクロス点検出回路6・・・・・・の出力とのアンド出
力がアンドゲート25・・・・・・を介して割り込み指
令信号lNTb+〜lNTb6としてCPU100に与
えられる。
The musical tone signals from the input terminals 1, . . . 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 af 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 detection pulse signal, the Q output of the flip-flop 14 connected to the subsequent stage becomes Hi. gh 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 100 as the interrupt command signal lNTa+~INTab via the AND gate 24...
Similarly, the minimum peak detection circuit 5...
However, when the minimum peak point of the musical tone signal is detected, 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 this flip-flop 15... ... and the output of the zero-crossing point detection circuit 6... are given to the CPU 100 as interrupt command signals lNTb+ to lNTb6 via AND gates 25....

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

そして、CPU100は、これらの割り込み指令信号を
受付けた直後に、対応するフリップフロップ14・・・
・・・、15・・・・・・に対しクリア信号CLa+−
CLab、  CLb+−CLbbを発生してリセット
する。従って、次に最大ピーク点あるいは最小ピーク点
を検出するまで何度ゼロクロス点を通゛過しても対応す
るフリップフロップ14・・・・・・、15・・・・・
・はリセット状態であるので、CPU100には割り込
みがかからないことになる。
Immediately after receiving these interrupt command signals, the CPU 100 activates the corresponding flip-flops 14...
Clear signal CLa+- for ..., 15...
Generate and reset CLab, CLb+-CLbb. 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では、当該弦の振動出力により割
り込み指令信号lNTa+〜I N T’a bもしく
はlNTb+〜rNTbbが与えられて、夫々の時間間
隔の少なくとも一方の時間間隔に従った音階音を発生す
る。尚、発音開始時においては開放弦の音階音を発生開
始してピッチ抽出の後で正しい周波数に修正してもよい
、この発音開始時の動作については後述する。
Then, the CPU 100 receives an interrupt command signal lNTa+ to INT'ab or lNTb+ to rNTbb based on the vibration output of the string, and generates a scale tone according to at least one of the respective time intervals. Incidentally, at the time of starting 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 time of starting 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より音階を指定するデータを周波@ROM
8へ送出し、その結果対応する周波数を示す周波数デー
タが読み出され、音源回路9に送られて楽音信号が生成
され、サウンドシステムlOより放音出力される。
After the sound generation starts, the frequency of the musical tone being generated is variably controlled according to the time interval data determined sequentially.
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 as a sound from the sound system IO.

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

そして、このA/Dコンバータ11・・・・・・の出力
はラッチ12・・・・・・にラッチされる。このラッチ
12・・・・・・に対するラッチ信号は、上記フリップ
フロップ14・・・・・・、15・・・・・・の出力が
オアゲート13・・・・・・を介することで生成され、
最大ピーク点もしくは最小ピーク点を通過する都度ラッ
チ12・・・・・・にはそのときの波形のレベルを示す
信号が記憶される。また、このオアゲート13・・・・
・・からのラッチ信号Ll−L6は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 signals Ll-L6 from ... are also given to the CPU 100.

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

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

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

そして、周波数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.

なお、282図は、ピッチ抽出回路PI内の各部の信号
波形のタイムチャートを表わしており、図の■は、ロー
パスフィルタ3の出力、■は最大ピーク検出回路4の出
力、■は最小ピーク検出回路5の出力、■はゼロクロス
点検出回路6の出力、■は割り込み指令信号rNTa+
〜(NTab、■は割り込み指令信号lNTb+〜rN
Tb6である。
Furthermore, Figure 282 shows a time chart of the signal waveforms of each part in the pitch extraction circuit PI. Output of circuit 5, ■ is output of zero cross point detection circuit 6, ■ is interrupt command signal rNTa+
~(NTab, ■ is the interrupt command signal lNTb+~rN
It is Tb6.

暫−芸 次に本実施例の動作について説明する。第3図はcPU
looの割り込みルーチンのフローであり、第4図はメ
イン70−である。なお、このf53図及び第4図はひ
とつの弦についての処理しか示してないが、全ての弦の
処理は全く同じなので、CPU100が夫々の弦につい
ての処理を時分割的に実行すると考えれば良い。
The operation of this embodiment will now be explained. Figure 3 shows cPU
FIG. 4 shows the flow of the loop interrupt routine, and is the main 70-. Note that this f53 diagram and Figure 4 only show the processing for one string, but since the processing for all strings is exactly the same, it can be assumed that the CPU 100 executes the processing for each string in a time-sharing manner. .

ワークメモリ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,1.2.3の4段階をとり、
弦振動がなされる(第5図(a)もしくは第6図(a)
参照)につれて、第5図(b)あるいは第6図(b)に
示すようにその内容は変化する。この5TEPレジスタ
が0のときは、ノートオフ(消音)状態を表わしている
The 5TEP register has four stages: 0, 1.2.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 0, 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. 2, it is the latter.

REVERSEレジスタは、上記5IGNレジスタで表
わされたゼロクロス点と反対側のピーク点経過後のゼロ
クロス点の到来による割り込み処理がなされたか否かを
チェックするデータを記憶するレジスタであり、−周期
ごとのピッチ(基本周波数)抽出制御のチェックに用い
られる。
The REVERSE register is a register that stores data for checking whether 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 represented by the 5IGN register. Used to check pitch (fundamental frequency) extraction control.

Tレジスタは、入力波形の周期を計測するための特定点
のカウンタ7の値を記憶する。なお、カウンタ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 7-rerunning operation of counting at a predetermined clock.

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.
is the register for the maximum peak, and AMP(2) is the register for the minimum peak.

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

Wレジスタは、発音開始時点より一層期ごとに+1され
ていくレジスタで、rlOJになるまでは、入力波形信
号の前回のピークレベル値に対して今回のピークレベル
値が急激に大きくなっても再発音のための処理が行われ
ないように制御される。
The W register is a register that is incremented by 1 each period from the start of sound generation, and until rlOJ is reached, even if the current peak level value suddenly becomes larger than the previous peak level value of the input waveform signal, it will not be counted again. It is controlled so that processing for pronunciation is not 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.

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

0NLEVnは、ノートオン(発音中)状態であって、
前回の検出レベルと今回の検出レベルとの差がこの値以
上あれば、トレモロ奏法等による操作があったとして、
再度発音開始(リラティブオン、relatiマe o
n )処理を行うためのものである。
0NLEVn is a note-on (sounding) state,
If the difference between the previous detection level and the current detection level is greater than this value, it is assumed that there was an operation using tremolo playing, etc.
Start pronunciation again (relative on, relative ma e o
n) For 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図のRJり込み処
理を行う。
Interrupt Processing at Zero Crossing Point Now, when the interrupt command signals INTa and INTA, which are the outputs of the AND gates 24 and 25, arrive at the CPU 100, the RJ 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.

lゴニ乙江ユ メインルーチン(第4図)では、ステップSlにて、上
述したような割り込み処理によってワークメモリ101
にa’、b’、t′の内容(上記a、b、tと同じで前
回記録されたということでa′、b′、t′と示す、)
が書込まれているか否かジャッジし、何ら割り込み処理
はなされていないときはNoの判断をして、このステッ
プSIを繰返し実行する。
In the main routine (FIG. 4), in step Sl, 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, the judgment is No, and this step SI is repeatedly executed.

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

さて、次にステップS4〜S6において、5TEPレジ
スタの内容が夫々3.2.1であるか否かジャッジする
。いま、最初の状態であるとしたら、5TEPレジスタ
はOなので、ステップS4 、S5 、S6 ともNo
の判断がされる。そして、次にステップS7で、今回検
知したピーク値b′が0NLEVIより大か否かジャッ
ジする。
Next, in steps S4 to S6, it is determined whether the contents of the 5TEP registers are 3.2.1 or not. If this is the first state, the 5TEP register is O, so steps S4, S5, and S6 are all No.
A judgment will be made. Then, in step S7, it is determined whether the peak value b' detected this time is greater than 0NLEVI.

もし、上記ピーク値b′が0NLEVIより小であれば
、まだ発音開始の処理をしないのでステップS1へもど
る。仮に、第5図(a)、第6図(a)のように0NL
EVIより大きな入力が得られたとすると、ステップS
7の判断は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 7 is YES, and the process advances to step S8.

そしてステップS8で5TEPレジスタに1をセットし
、次にステップS9でREVER5EレジスタにOをセ
ットし、続けてステップ51Gで。
Then, in step S8, the 5TEP register is set to 1, then in step S9, the REVER5E register is set to O, and then in step 51G.

a’(つまり最大ピーク点直後のゼロクロス点のときl
、最小ピーク点直後のゼロクロス点のとき2)の値を5
IGNレジスタに入力する。
a' (that is, at the zero cross point immediately after the maximum peak point, l
, at the zero cross point immediately after the minimum peak point, set the value of 2) to 5
Input to IGN register.

そして、ステップS目にて、t′の値をTレジスタにセ
ットする。その結果、a′の内容は5IGNレジスタに
(第5図(a)、第6図(a〕の場合は5IGNはlと
なる)、b′の内容はAMPレジスタに、t′の内容は
Tレジスタにセットされたことになる。そして再びステ
ップS1にもどる。
Then, at step S, the value of t' is set in the T register. As a result, the contents of a' are stored in the 5IGN register (in the case of Figures 5(a) and 6(a), 5IGN becomes l), the contents of b' are stored in the AMP register, and the contents of t' are stored in the T This means that it has been set in the register. Then, the process returns to step S1 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
の判断がされ、次にステップ512にゆく。
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 512.

いま、第5図(a)、第6図(a)のように波形が入力
時に正方向に変化したときは、5IGNレジスタはlで
あり、今回負方向のピークを経過してきているからaル
ジスタは2なので、N。
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 l, and since the peak in the negative direction has passed this time, the a register is is 2, so N.

の判断をする。尚、もし同じ極性のピーク値直後のゼロ
クロス点到来時には、このステップSI2でYESの判
断をして何ら続けて動作せずにステップS1へもどる。
make a judgment. Incidentally, if a zero cross point arrives immediately after the peak value of the same polarity, a YES determination is made in step SI2 and the process returns to step S1 without any further operation.

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

そしてステップS+3に続けてステップ514を実行し
、前回のピーク値(AMP (S IGN))と今回の
ピーク値(b′)を比較する。いま、第5図(a)のよ
うに前回の値XOが今回の値より小(xl >Xo )
ならば、YESとなり、今回の時刻t′を周期の計JI
IBM始点とすべく(第5図(C)参照)ステップSL
4からステップ31G。
Then, following step S+3, step 514 is executed to compare the previous peak value (AMP (S IGN)) and the current peak value (b'). Now, as shown in Figure 5(a), the previous value XO is smaller than the current value (xl > Xo)
If so, the answer is YES, and the current time t' is the total period JI.
Step SL to make IBM the starting point (see Figure 5(C))
4 to step 31G.

Sl+を実行し、5IGNレジスタを2とすると共にt
ルジスタの内容をTレジスタへ転送する。
Execute Sl+, set the 5IGN register to 2, and set t
Transfer the contents of the register to the T register.

逆に、前回のピーク値が今回のピーク値よりも大きけれ
ば、つまり第6図(a)のようにX)<XOならば、ス
テップS目でNoのジャッジをしステップSI5にてR
EVER3Eレジスタを1とする。なお、5IGNレジ
スタはいま前の値lを保つことになる。従って、この場
合は前のゼロクロス点(Zerol)が周期計測の開始
点となっている(第6図(c)参照)。
Conversely, if the previous peak value is larger than the current peak value, that is, if X)<XO as shown in FIG.
Set the EVER3E register to 1. Note that the 5IGN register now maintains the previous value l. Therefore, in this case, the previous zero cross point (Zerol) is the starting point for period measurement (see FIG. 6(c)).

そして1次のゼロクロス点(Zero3)の通過後、は
じめてメインフローを実行するときは。
When the main flow is executed for the first time after passing the first-order zero cross point (Zero3).

ステップS5でYESのジャッジがされてステップ51
6へ進む、今回a′はlであり、第5図の場合は、5I
GNが2、第6UgJの場合は5IGNが1なので、第
5図の場合にあっては、ステップS16でNOのジャッ
ジがされて、ステップ515へゆきステップS1へもど
る。つまり、周期計測を開始し始めてからひとつ目のピ
ーク(振幅X2)を通過したことをCPU100は認識
する。
A YES judgment is made in step S5, and step 51
Proceed to 6. This time a' is l, and in the case of Figure 5, 5I
When GN is 2 and 6th UgJ, 5IGN is 1, so in the case of FIG. 5, a NO judgment is made in step S16, and the process goes to step 515 and returns to step S1. In other words, the CPU 100 recognizes that the first peak (amplitude X2) has been passed since the start of period measurement.

また第6図の場合にあっては、ステップ516ではYE
Sの判断がされて、ステップS+7へゆきREVERS
Eレジスタが1か否かジッヤジする。もしlでなければ
NOの判断をしステップS+ へもどるが、上述したよ
うノステップS+5の実行によってこのレジスタはlと
なっており、ステップSllからステップ518へゆき
5TEPレジスタを3としく第6U!!J(b)参照)
、続けてステップS19にて、tルジスタにある今回の
割り込みで受は付けたカウンタ7の値からTレジスタに
ある値つまりゼロクロス点Zerolの時刻を減算し、
PERIODレジスタにストアする。
In the case of FIG. 6, in step 516, Y
After the judgment of S is made, go to step S+7 and REVERS.
Check whether the E register is 1 or not. If it is not 1, a NO judgment is made and the process returns to step S+, but as described above, this register has become 1 by executing step S+5, and the process goes from step Sll to step 518 where the 5TEP register is set to 3 and the 6th U! ! (see J(b))
Then, in step S19, the value in the T register, that is, the time of the zero cross point Zero, is subtracted from the value of the counter 7, which is accepted by the current interrupt, in the T register.
Store in PERIOD register.

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

そしてステップS2Iにおいて、上述のPERIODレ
ジスタの内容をもってCPU100は周波@ROMB、
音源回路9に発音指令を出す、従ってこの時点から楽音
の発生がなされる。続いて。
Then, in step S2I, the CPU 100 uses the contents of the above-mentioned PERIOD register to set the frequency @ROMB,
A sound generation command is issued to the sound source circuit 9, and therefore musical sounds are generated from this point onwards. continue.

CPU100はステップS33でWレジスタの値をrl
J とする。
The CPU 100 sets the value of the W register to rl in step S33.
Let it be J.

さて、上述した第5図の場合にあっては、再び次のゼロ
クロス点(Zero4)少のメインフローの処理で、ス
テップS5からステップ316ヘジヤンブする。いま、
5IGNレジスタは2なので、ステップS16ではYE
Sの判断をし、続けて上記同様にステップ517→S1
8→319→S20→521→S33の発音開始処理を
実行し、今回は第5図(C)に示すゼロクロス点Zer
o2からZero4までを一周期としてCPU100は
認識し、この長さに基づく周波数の楽音を発音開始する
(第5図(d)参照)。
Now, in the case of FIG. 5 described above, in the main flow processing for the next zero cross point (Zero4), the process jumps from step S5 to step 316. now,
Since the 5IGN register is 2, the result is YE in step S16.
After determining S, proceed to step 517→S1 in the same manner as above.
The sound generation start process of 8→319→S20→521→S33 is executed, and this time, the zero cross point Zer shown in FIG. 5(C) is executed.
The CPU 100 recognizes the period from o2 to Zero4 as one cycle, and starts producing a musical tone with 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図に示すよ
うに0FFLEVを越えているか否かジャッジする。
After this sound generation start processing, the main routine proceeds from step S4 to step S22, and checks whether the value of b', which is the peak value acquired this time, exceeds 0FFLEV as shown in FIG. judge.

いま、このレベルを越えておればステップS32へ進み
、Wレジスタの値が「10」以上か否かシフヤシする。
If this level is currently exceeded, the process advances to step S32, where it is checked whether the value of the W register is greater than or equal to "10".

いま、Wレジスタの値は「1」になったところであるか
ら、ステップ324に飛び、a′の内容とIIGNレジ
スタの内容の一致比較をし、一致しなければS15へ進
み次のゼロクロス点の割り込み処理にそなえ、一致すれ
ば、既に逆の特性をもったピーク(正/負のピーク)を
夫々通過してきたので、ステップS25へ進み、REV
ER5Eレジスタが1か否かジャッジし、もしNoなら
ば何ら処理をすることなくステップSl へもどるが、
もしこのステップS25でYESの判断がなされたなら
ば、ステップ325からステップS26へ進み新たな周
期(ピッチ)を求めるべくtルジスタの内容からTレジ
スタの内容を引いて、PERIODレジスタにセットす
る。
Since the value of the W register has now become "1", the process jumps to step 324 and compares the contents of a' with the contents of the IIGN register. If they do not match, the process proceeds to S15 and interrupts at the next zero-crossing point. In preparation for processing, if they match, it means that peaks with opposite characteristics (positive/negative peaks) have already been passed, so the process advances to step S25 and the REV
It judges whether the ER5E register is 1 or not, and if it is No, it returns to step Sl without any processing.
If YES is determined in step S25, the process proceeds from step 325 to step S26, and in order to obtain a new period (pitch), the contents of the T register are subtracted from the contents of the t register and set in the PERIOD register.

そして、ステップS27においてtルジスタの内容をT
レジスタへ転送し、続くステップ328にて求まったP
ERIODレジスタの値を基に周波a(ピッチ)制御を
CPU100は周波数ROM8、音源回路9に対して行
う。
Then, in step S27, the contents of the t register are changed to T
P is transferred to the register and determined in the subsequent step 328.
The CPU 100 performs frequency a (pitch) control on the frequency ROM 8 and the tone generator circuit 9 based on the value of the ERIOD register.

つまり、本実施例にあっては、弦の振動周波数の変化を
時々刻々とらえて、それに応じた周波数制御をリアルタ
イムで行うようになる。
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.

そして、ステップ328からステップ529へ進んでR
EVER5Eレジスタの内容を0として次の周期計測を
行い、ステップS3aでWレジスタの値を+1して「2
」とする、以後、波形の一周期ごとにステップS26〜
S 29. S 34のピッチ抽出制御処理を行い、W
レジスタの値を順次+1してい〈。
Then, proceeding from step 328 to step 529, R
The next period measurement is performed with the contents of the EVER5E register set to 0, and the value of the W register is increased by 1 in step S3a to become "2.
”, and thereafter, for each period of the waveform, steps S26 to
S29. Perform the pitch extraction control process of S34, and
The value of the register is incremented by 1 in sequence.

そして、Wレジスタの値が゛「10」以上になると、C
PUIQOは、ステップS32がらステップS23へ進
み、リラティブオン(relative on)の処理
をするのか否かジャッジするようにする。即ち具体的に
は今回のピーク値(b′)が前のピーク値(C)より0
NLEVIIだけ大きいか、つまり発音中に急激に抽出
ピーク値が大きくなったが否かジャッジする。
Then, when the value of the W register becomes ``10'' or more, the C
The PUIQO proceeds from step S32 to step S23, and judges whether or not to perform relative on processing. That is, specifically, the current peak value (b') is 0 compared to the previous peak value (C).
It is judged whether the extracted peak value is large by NLEVII, that is, whether the extracted peak value suddenly becomes large during sound generation.

通常弦を振動すれば、自然減衰を行うので、このステッ
プS23はNoの判断となるが、もしトレモロ奏法など
によって、前の弦振動が減衰し終わらないうちに、再び
弦が操作されて、このステップS23の判断がYESと
なることがある。
Normally, if the string is vibrated, natural damping will occur, so the answer to step S23 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 S23 may be YES.

その場合は、ステップ52ffでYESのジャッジをし
ステップS8ヘジヤンプし、ステップS、〜ステップS
11の発音開始の準備処理を実行する。
In that case, make a YES judgment in step 52ff, jump to step S8, and step S to step S.
11, the preparation process for starting sound production is executed.

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

いま、1回のピッキング操作により、第7図(a)よう
な波形信号が入力されてきたものとすると、波形aQの
直後のゼロクロス点で、ステップ51〜S目のデータセ
ット処理、発音段階判別処理1発音開始の準備処理が行
われ1次の波形a1の直後のゼロクロス点で、ステップ
S16〜521、333の発音開始処理が行われ、以後
−周期ごとにステップS24〜S29. S34のピッ
チ抽出制御処理が行われていくことになる。このとき、
波形a3に示すように、波形が安定せず最初から4つ目
の波形のレベルが急激に大きくなり、一つ前の波形a2
に対し波形a3のレベルが0NLEVU以上に太きくな
った場合には、Wレジスタの値はまだ「2」であり、C
PU100はステップ532でWレジスタの値が「10
」以上になっていないので、ステップS23.58〜S
l+のりラテイプオンの処理は行われず、そのままステ
ップS24〜S29、S34のピッチ抽出制御処理が行
われていくことになる。
Now, suppose that a waveform signal as shown in FIG. 7(a) is input by one picking operation, and at the zero-crossing point immediately after waveform aQ, steps 51 to S-th data set processing and pronunciation stage determination are performed. Process 1 Preparation processing for starting sound generation is performed, and at the zero-crossing point immediately after the primary waveform a1, sound generation start processing in steps S16 to 521, 333 is performed, and thereafter, steps S24 to S29. The pitch extraction control process of S34 will be performed. At this time,
As shown in waveform a3, the waveform is unstable and the level of the fourth waveform from the beginning suddenly increases, and the level of the previous waveform a2
On the other hand, if the level of waveform a3 becomes thicker than 0NLEVU, the value of W register is still "2" and C
The PU 100 determines in step 532 that the value of the W register is "10".
”, so steps S23.58 to S
The l+glue tape-on processing is not performed, and the pitch extraction control processing of steps S24 to S29 and S34 is performed as it is.

こうして、ピッキング操作がなされて、波形の立上ると
きに、波形が安定せず、途中で波形のし・ベルが急激に
太きくなっても、再発音処理は行われず、ピッキング操
作が1回であるにもかかわらず、続けて複数回発音処理
が行われてしまうことがなくなる。
In this way, even if a picking operation is performed and the waveform is not stable when the waveform rises, and the waveform's trailing edge suddenly becomes thicker, the re-sounding process will not be performed and the picking operation will be performed only once. This prevents the sound generation process from being performed multiple times in a row even though there is a problem.

そして、上述したように、弦振動が減衰してきて、ピー
ク値が第8図に示すように、0FFLEVを下まわるよ
うになると、ステップ522かうステップ330へゆき
5TEPレジスタをOとし、統〈ステップSKIにてノ
ートオフ処理(消音処理)を行い、これまで発音してい
た楽音を消音すべく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 then instructs the sound source circuit 9 to perform a note-off process (mute process) and mute the musical tones that have been generated up to this point.

尚、再発音を行わない期間は、入力波形信号の周期の数
に基づく期間ではなく、タイムカウンタをCPU100
内に設けて、このタイムカウンタの一定時間のカウント
に基づくものとしてもよい、この場合、上記第4図のス
テップS34の処理は省略し、ステップS33でタイム
カウンタのリセット処理を行い、その後自動的に計数さ
せ、ステップS32でタイムカウント値が一定時間Ts
を越えたか否かのジャッジ処理を行うことになる。
Note that the period during which re-sounding is not performed is not based on the number of cycles of the input waveform signal, but when the time counter is
In this case, the process in step S34 in FIG. 4 above is omitted, the time counter is reset in step S33, and then automatically reset. , and in step S32, the time count value reaches a certain period of time Ts.
Judgment processing will be performed to determine whether or not the limit has been exceeded.

また、上記実施例のステップS32でNoと判断された
とJ、b′とCの値を同じにしてからステップs23へ
進行し、結果的にリラティブオンの処理を行わないよう
にしてもよい。
Furthermore, if it is determined No in step S32 of the above embodiment, the values of J, b', and C may be made the same, and then the process proceeds to step s23, so that the relative-on processing may not be performed as a result.

また、上記実施例では、ステップS23では、前のピー
ク値b′と今回のピーク値Cとの差で、波形が急激に変
化したのか否かジャッジするようにしたが、例えばb 
′、/c>S (Sは1以上の所定値)のように波高値
の比で、波形が急激に変化したのか否かジャッジするよ
うにしてもよい。
Furthermore, in the above embodiment, in step S23, it is judged whether or not the waveform has suddenly changed based on the difference between the previous peak value b' and the current peak value C.
', /c>S (S is a predetermined value of 1 or more), such as the ratio of peak values, may be used to judge whether or not the waveform has changed rapidly.

また、前回の波高値と今回の波高値との比較で波形が急
激に変化したか否かジャッジするようにしたが、前々回
と今回との波高値の比較で行うようにしてもよい。
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.

その他の条件検出によって、波高値が楽音の発生中に急
激に増大したことを検知するようにしてもよい。
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 sound generation, calculating period, turning on relative sound, 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 process as described above may be performed by detecting a zero-crossing point directly opposite the peak point.In addition, the method of determining the reference point can be changed in various ways.

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

更に、上記実施例においては、本発明を電子ギターに適
用したものであったが、必ずしもそれに限られるもので
なく、マイクロフォン等から入力される音声信号あるい
は電気的振動信号からピッチ抽出を行って、原音声信号
とは別の音響信号を、対応するピッチもしくは音階周波
数にて発生するシステムであれば、どのような形態のも
のであってもよい、具体的には、鍵盤を有するもの例え
ば電子ピアノ、管楽器を電子化したもの1弦楽器1例え
ばバイオリンや琴などを電子化したものにも同様に適用
できる。
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 different from the original 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 stringed instruments such as violins and kotos.

[発明の効果J この発明は、以上詳述したように、入力波形信号が所定
値以上になったことによって発音開始指令を与えて楽音
を発生した後でも入力波形信号が急激に大きくなったと
きには、再度発音開始指令を与えるようにするとともに
、発音開始指令を与えてから所定期間内は、たとえ入力
波形信号が急激に大きくなっても、再度発音開始の指示
を行わないようにしたから、発音操作がなされて、波形
の立上るときに、波形が安定せず、途中で波形のレベル
が急激に大きくなっても、再発音処理は行われず、ピッ
キング操作が1回であるにもかかわらず、続けて複数回
発音処理が行われてしまうことがなくなり、この結果、
トレモロ奏法に応じた再発音と通常の発音とを明確に区
別して、楽音の発音開始をより正確なものにすることが
できる等の効果を奏する。
[Effects of the Invention J] As described in detail above, the present invention provides that even after the input waveform signal exceeds a predetermined value and a sound generation start command is given to generate a musical tone, when the input waveform signal suddenly increases in size, , the sound generation start command is given again, and the sound generation start command is not given again within a predetermined period after the sound generation start command is given, even if the input waveform signal suddenly increases. Even if the waveform is not stabilized when the waveform rises after an operation is performed, and the waveform level suddenly increases midway through, re-sounding processing will not be performed, and even though the picking operation is only one time, This prevents pronunciation processing from being performed multiple times in a row, and as a result,
This provides effects such as clearly distinguishing between re-pronunciation according to the tremolo playing technique and normal pronunciation, making it possible to more accurately start producing musical tones.

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

第1図は、本発明を適応した一実施例である電子楽器の
入力制御装置の全体回路構成を示す図、第2図は、第1
図中の各部に表われる波形等を示すタイムチャート図、
第3図はCPUの割り込みルーチンのフローチャートを
示す図、第4図はCPUのメインルーチンのフローチャ
ートを示す図、第5図及び第6図は発音開始時の各部の
動作を示すタイムチャート図、第7図は発音開始時の入
力波形が安定しない例を示すタイムチャート図、第8図
は消音時の動作を示すタイムチャート図である。 l・・・・・・入力端子、4・・・・・・最大ピーク検
出回路、5・・・・・・最小ピーク検出回路、6・・・
・・・ゼロクロス点検出回路、7・・・・・・カウンタ
、9・・・・・・音源回路、12・・・・・・ラッチ、
14.15・・・・・・フリップフロップ、100・・
・・・・CPU、101・・・・・・ワークメモリ、P
l−P6・・・・・・ピッチ抽出回路。 特許出願人  カシオ計算機株式会社 ・::’1’−”(’i f2図 第3図 [Vltt矢1へ)か1し場ン (cr pW ’4ntl        pERlo
D。6.□、4..,7          GゴI!
第6図 狛もr詰妊鴫 χ0ンχ1/I1.zで 第8V
FIG. 1 is a diagram showing the overall circuit configuration of an input control device for an electronic musical instrument that is an embodiment of the present invention, 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 where the input waveform is unstable at the start of sound generation, and FIG. 8 is a time chart showing the operation when 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
l-P6...Pitch extraction circuit. Patent applicant: Casio Computer Co., Ltd.::'1'-"('i f2 Figure 3 [Vltt arrow 1]) or 1 place (cr pW '4ntl pERlo
D. 6. □, 4. .. ,7 G Go I!
Fig. 6 Koma also r packed χ0n χ1/I1. 8th V in z

Claims (3)

【特許請求の範囲】[Claims] (1)入力波形信号のピッチを抽出して、そのピッチに
基づく周波数をもつ楽音を発生する電子楽器において、 上記入力波形信号の波高値が所定値以上になったき楽音
の発音開始指令を与える指示手段と、上記入力波形信号
の波高値の変化を検出する検出手段と、 この検出手段にて、上記波高値が上記楽音の発生中に急
激に増大したことを検知したとき、再度発音開始指令を
与えるようにする制御手段と、上記指示手段の発音開始
指令より所定期間の計測を行う計測手段と、 この計測手段で計測される所定期間内においては、上記
制御手段の再発音開始指令を出力させないようにする禁
止手段と、 を具備したことを特徴とする電子楽器の入力制御装置。
(1) In an electronic musical instrument that extracts the pitch of an input waveform signal and generates a musical tone with a frequency based on that pitch, an instruction to issue a command to start producing a musical tone when the peak value of the input waveform signal exceeds a predetermined value. means, a detection means for detecting a change in the peak value of the input waveform signal; and when the detection means detects that the peak value has suddenly increased during the generation of the musical tone, it issues a sound generation start command again. a measuring means for measuring a predetermined period of time from the sound generation start command of the indicating means; and a measuring means for not outputting the re-sound start command of the control means within the predetermined period measured by the measuring means. An input control device for an electronic musical instrument, characterized in that the input control device comprises: a means for inhibiting the operation; and an input control device for an electronic musical instrument.
(2)上記計測手段は、入力波形信号の周期を所定数計
測することにより上記所定期間の計測を行うことを特徴
とする特許請求の範囲第1項に記載の電子楽器の入力制
御装置。
(2) The input control device for an electronic musical instrument according to claim 1, wherein the measuring means measures the predetermined period by measuring a predetermined number of cycles of the input waveform signal.
(3)上記計測手段は、予め定められた一定時間をタイ
ムカウントすることにより上記所定期間の計測を行うこ
とを特徴とする特許請求の範囲第1項に記載の電子楽器
の入力制御装置。
(3) The input control device for an electronic musical instrument according to claim 1, wherein the measuring means measures the predetermined period by counting a predetermined period of time.
JP62095443A 1987-04-20 1987-04-20 Waveform signal controller Expired - Lifetime JP2765578B2 (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
JPS63261391A true JPS63261391A (en) 1988-10-28
JP2765578B2 JP2765578B2 (en) 1998-06-18

Family

ID=14137834

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62095443A Expired - Lifetime JP2765578B2 (en) 1987-04-20 1987-04-20 Waveform signal controller

Country Status (1)

Country Link
JP (1) JP2765578B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51123133A (en) * 1975-04-18 1976-10-27 Matsushita Electric Ind Co Ltd Instrument tone conversion device
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
JPS51123133A (en) * 1975-04-18 1976-10-27 Matsushita Electric Ind Co Ltd Instrument tone conversion device
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
JP2765578B2 (en) 1998-06-18

Similar Documents

Publication Publication Date Title
JPH0196700A (en) Input controller for electronic musical instrument
US5710387A (en) Method for recognition of the start of a note in the case of percussion or plucked musical instruments
JPS63261391A (en) Input controller for electronic musical instrument
JP2532424B2 (en) Waveform signal input controller
JPS63136088A (en) Input controller for electronic musical instrument
JP2581068B2 (en) Waveform signal controller
JPS63243998A (en) Input controller for electronic musical instrument
JP2605667B2 (en) Electronic musical instrument input control device
JP2508044B2 (en) Electronic musical instrument input control device
JPH0727512Y2 (en) Input control device for electronic musical instruments
JP2508692B2 (en) Input waveform signal controller
JPS63217398A (en) Input controller for electronic musical instrument
JPH0431599B2 (en)
JPH041358B2 (en)
JPS63217397A (en) Input controller for electronic musical instrument
JPS63141099A (en) Input controller for electronic musical instrument
JPS63139399A (en) Input controller for electronic musical instrument
JPS63247796A (en) Input controller for electronic musical instrument
JPH0715031Y2 (en) Electronic stringed instrument
JPH083711B2 (en) Input waveform signal controller
JP2532233Y2 (en) Electronic string instrument
JP2555551B2 (en) Input waveform signal controller
JPH0648556Y2 (en) Input control device for electronic musical instruments
JP2626473B2 (en) Electronic musical instrument input control device
JPS63298397A (en) Input controller for electronic stringed instrument