JP2508035B2 - Input waveform signal controller - Google Patents

Input waveform signal controller

Info

Publication number
JP2508035B2
JP2508035B2 JP61282140A JP28214086A JP2508035B2 JP 2508035 B2 JP2508035 B2 JP 2508035B2 JP 61282140 A JP61282140 A JP 61282140A JP 28214086 A JP28214086 A JP 28214086A JP 2508035 B2 JP2508035 B2 JP 2508035B2
Authority
JP
Japan
Prior art keywords
pitch
signal
zero
waveform
input
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
JP61282140A
Other languages
Japanese (ja)
Other versions
JPS63136089A (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 JP61282140A priority Critical patent/JP2508035B2/en
Publication of JPS63136089A publication Critical patent/JPS63136089A/en
Priority to US07/478,759 priority patent/US5018428A/en
Application granted granted Critical
Publication of JP2508035B2 publication Critical patent/JP2508035B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】 [発明の技術分野] この発明は例えば電子ギター等における入力波形信号
制御装置に関する。
Description: TECHNICAL FIELD OF THE INVENTION The present invention relates to an input waveform signal control device in, for example, an electronic guitar.

[発明の背景] 従来より、自然楽器の演奏操作によって発生する波形
信号からピッチ(周波数)を抽出し、電子回路で構成さ
れた音源装置を制御して、人工的に楽音等の音響を得る
ようにしたものが種々開発されている。
BACKGROUND OF THE INVENTION Conventionally, a pitch (frequency) is extracted from a waveform signal generated by a performance operation of a natural musical instrument, and a sound source device composed of an electronic circuit is controlled to artificially obtain a sound such as a musical sound. Various types 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 a sound source device to generate a scale tone corresponding to the pitch. By the way, the pitch can be extracted only after the waveform is input for one cycle or more, and there is a problem that the response speed from the sound source device to the start of the generation of the musical tone is deteriorated.

特に、低音になればなるほど、波長が長くなるためピ
ッチ抽出には時間がかかるということになり問題が顕著
に現われることになる。
In particular, the lower the tone becomes, the longer the wavelength becomes, so that it takes more time to extract the pitch, and the problem becomes remarkable.

[発明の目的] この発明は、上記事情に鑑みてなされたもので、波形
信号が入力されてから実際に音響を発生するまでの時間
を短縮し、レスポンスを良好とするようにし、演奏時に
不自然さを感じさせないようにした入力波形信号制御装
置を提供することを目的とする。
[Object of the Invention] The present invention has been made in view of the above circumstances, and shortens the time from the input of a waveform signal to the actual generation of sound, to improve the response, and to improve the response during playing. It is an object of the present invention to provide an input waveform signal control device that does not give a feeling of naturalness.

[発明の要点] 即ち、この発明は、上記目的を達成すべく、入力波形
信号が与えられていることが検知されるとまず最初に所
定のピッチで音響信号を発生するよう発音指示すると共
に、ピッチ抽出手段にて上記波形信号のピッチが検知さ
れれば、しかる後、このピッチに上記音響信号のピッチ
を変更するようピッチ変更指示をするようにしたことを
その要点とする。
That is, according to the present invention, in order to achieve the above-mentioned object, when it is detected that an input waveform signal is given, a sounding instruction is first issued to generate an acoustic signal at a predetermined pitch, and When the pitch of the waveform signal is detected by the pitch extracting means, the point is that a pitch change instruction is given to change the pitch of the acoustic signal to this pitch.

例えば、電子ギターに本発明を適用する場合、上記所
定のピッチとしては当該弦のフレットが何ら操作されて
いないときのピッチ、つまり開放弦のピッチとすること
が適当であり、その他の楽器にあっては、最も基準とな
るピッチそして低音のピッチを選択することが望まし
い。
For example, in the case of applying the present invention to an electronic guitar, it is appropriate that the predetermined pitch is the pitch when the fret of the string is not operated, that is, the pitch of the open string, and it is suitable for other musical instruments. However, it is desirable to select the most standard pitch and bass pitch.

即ち、ピッチ抽出前には所定のピッチで音響信号を発
生開始し、ピッチ抽出後に、そのピッチに上記楽音を変
更した場合に、最初に出した楽音が人間によって周波数
が聞きわけられると、極めて不自然となるので、最初に
出力する音響信号は、1波長(1周期)未満のものとす
べきである。従って、低音の音響信号を先ず出力するこ
とが望ましい。
That is, when a sound signal is started to be generated at a predetermined pitch before pitch extraction, and the above-mentioned musical sound is changed to that pitch after pitch extraction, it is extremely unclear if the frequency of the first musical sound is perceived by humans. Since it becomes natural, the acoustic signal to be output first should be less than one wavelength (one cycle). Therefore, it is desirable to first output the bass sound signal.

この発明の特徴とするところは、以下の実施例の説明
からより明らかとなろう。
The features of the present invention will be more apparent from the following description of the embodiments.

[実施例] 以下、本発明の一実施例について図面を参照して詳述
する。
[Embodiment] An embodiment of the present invention will be described in detail below with reference to the drawings.

全体回路回成 第1図は、同実施例の全体回路構成を示しており、本
実施例は、電子ギターに本発明を適用したものであり、
6つの入力端子1の信号は、電子ギターボディ上に張設
された6つの弦の夫々に設けられた、弦の振動を電気信
号に変換するピックアップからの信号である。
Overall Circuit Regeneration FIG. 1 shows the overall circuit configuration of the same embodiment, and this embodiment applies the present invention to an electronic guitar.
The signals at the six input terminals 1 are signals from a pickup provided on each of the six strings stretched on the electronic guitar body and converting the vibration of the strings into an electric signal.

入力端子1……からの楽音信号は、夫々アンプ2……
で増幅され、ローパスフィルタ(LPF)3……で高周波
成分がカットされて基本波形が抽出され、最大ピーク検
出回路(MAX)4……、最小ピーク検出回路(MIN)5…
…及びゼロクロス点検出回路(Zero)6……に与えられ
る。ローパスフィルタ3……は、第2図に示すように、
各弦の開放弦の振動音周波数fの4倍の4fにカットオフ
周波数が設定されている。これは、各弦の出力音の周波
数が2オクターブ以内であることに基づくものである。
最大ピーク検出回路4……では、楽音信号の最大ピーク
点が検出され、その検出パルス信号の立上りで後段に接
続されているフリップフロップ14……のQ出力がHighレ
ベルとなり、このフリップフロップ14……の出力とゼロ
クロス点検出回路6……のインバータ30……の反転出力
とのアンド出力がアンドゲート24……を介して割り込み
指令信号INTa1〜INTa6としてCPU100に与えられ、同様に
最小ピーク検出回路5……でも、楽音信号の最小ピーク
点が検出され、その検出パルス信号の立上りで後段に接
続されているフリップフロップ15……のQ出力がHighレ
ベルとなり、このフリップフロップ15……の出力とゼロ
クロス点検出回路6……の出力とのアンド出力がアンド
ゲート25……を介して割り込み指令信号INTb1〜INTb6
してCPU100に与えられる。
The tone signals from the input terminals 1 ...
Is amplified, the high-frequency component is cut by the low-pass filter (LPF) 3 ... and the basic waveform is extracted, the maximum peak detection circuit (MAX) 4 ..., the minimum peak detection circuit (MIN) 5 ...
... and zero-cross point detection circuit (Zero) 6 ... As shown in FIG. 2, the low pass filter 3 ...
The cutoff frequency is set to 4f, which is four times the vibration sound frequency f of the open string of each string. This is based on the fact that the frequency of the output sound of each string is within two octaves.
The maximum peak detection circuit 4 ... Detects the maximum peak point of the musical tone signal, and the Q output of the flip-flops 14 ... The AND output of the output of ... and the inverted output of the inverter 30 of the zero-cross point detection circuit 6 is given to the CPU 100 as interrupt command signals INTa 1 to INTa 6 via the AND gate 24, and similarly the minimum peak. Also in the detection circuit 5 ..., the minimum peak point of the musical tone signal is detected, and the Q output of the flip-flop 15 ... Connected to the subsequent stage becomes the High level at the rising of the detection pulse signal, and the flip-flop 15 ... aND output between the outputs of the zero-crossing point detecting circuit 6 ... is given to the CPU100 as an interrupt command signal INTb 1 ~INTb 6 through the aND gates 25 .....

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

そして、CPU100は、これらの割込み信号を受付けた直
後に、対応するフリップフロップ14……、15……に対し
クリア信号CLa1〜CLa6、CLb1〜CLb6を発生してリセット
する。従って、次に最大ピーク点あるいは最小ピーク点
を検出するまで何度ゼロクロス点を通過しても対応する
フリップフロップ14……、15……はリセット状態である
ので、CPU100には割り込みがかからないことになる。
Then, CPU 100 is immediately accepted these interrupt signals, corresponding flip-flop 14 ..., 15 ... a clear signal CLa 1 ~CLa 6, CLb 1 ~CLb 6 occurred to reset. Therefore, no matter how many times the zero-cross point is detected until the next maximum peak point or minimum peak point is detected, the corresponding flip-flops 14..., 15. Become.

そして、CPU100では、詳細は後述するが、はじめて当
該弦の振動出力により割り込み指令信号INTa1〜INTa6
しくはINTb1〜INTb6が与えられると、その弦の開放弦の
振動に対するピッチの楽音を出力開始するよう周波数RO
M8や音源回路9へ指示する。
Then, in the CPU 100, as will be described in detail later, when an interrupt command signal INTa 1 to INTa 6 or INTb 1 to INTb 6 is given by the vibration output of the string for the first time, the pitch tone corresponding to the vibration of the open string of the string is output. Frequency RO to start
Instruct M8 and tone generator circuit 9.

そして、それ以降は、CPU100では、上記割り込み指令
信号のうち、最大ピーク点検出直後のゼロクロス点の割
り込み指令信号INTa1〜INTa6が与えられた時に、それ以
前に同様にして検出された最大ピーク点直後のゼロクロ
ス点時のカウンタ値との差が求められ、また最小ピーク
点検出直後のゼロクロス点の割り込み指令信号INTb1〜I
NTb6発生時にそれ以前に同様にして検出されたカウンタ
値との差が求められる。この両信号INT(INTa1〜INT
a6、INTb1〜INTb6)が与えられる都度カウンタ7のカウ
ント値は夫々対応する最大時メモリ101、最小時メモリ1
02に記憶される。
Then, after that, in the CPU 100, when the interrupt command signals INTa 1 to INTa 6 of the zero-cross point immediately after the detection of the maximum peak point among the interrupt command signals are given, the maximum peak detected in the same manner as before. The difference from the counter value at the zero-cross point immediately after the point is obtained, and the interrupt command signal INTb 1 to I at the zero-cross point immediately after the minimum peak point is detected.
When NTb 6 occurs, the difference from the previously detected counter value is similarly obtained. Both signals INT (INTa 1 ~ INT
Each time a 6 and INTb 1 to INTb 6 ) are given, the count value of the counter 7 corresponds to the maximum memory 101 and the minimum memory 1 respectively.
It is stored in 02.

この求められたカウンタ7のカウント値の差のタイム
カウントデータは、CPU100より周波数ROM8に送られて、
このカウントデータを1周期とする周波数を示す周波数
データが読み出され、音源回路9に送られて楽音信号が
生成され、サウンドシステム10より放音出力される。
The time count data of the obtained difference in the count values of the counter 7 is sent from the CPU 100 to the frequency ROM 8 and
Frequency data indicating a frequency having one cycle of this count data is read out, sent to the tone generator circuit 9 to generate a tone signal, and sound output from the sound system 10.

従って、先ず開放弦に対応するピッチの楽音が発生開
始し、ピッチが抽出されると、ピッチの変更をCPU100は
周波数ROM8へ指示することになる。
Therefore, first, when the musical tone of the pitch corresponding to the open string starts to be generated and the pitch is extracted, the CPU 100 instructs the frequency ROM 8 to change the pitch.

上記ローパスフィルタ3……からの6つの楽音信号
は、夫々トランスファゲートTを介してA/Dコンバータ1
1に与えられ、その波形レベルに応じたデジタルデータ
に変換されてCPU100に与えられる。CPU100ではA/Dコン
バータ11より与えられる波形レベルを示すデータの絶対
値が、予め決められた一定値以上になった時には、上述
したような所定ピッチの楽音の発音を開始させ、このデ
ータが上記一定値以下になった時には、消音指示をして
放音を終了させる。この波形レベルを示すデータは、CP
U100より上記音源回路9にも与えられて、楽音の放音レ
ベル(音量)が制御される。
The six tone signals from the low-pass filter 3 ... Are respectively transferred to the A / D converter 1 via the transfer gate T.
It is given to 1, converted into digital data according to the waveform level, and given to the CPU 100. In the CPU 100, when the absolute value of the data indicating the waveform level given from the A / D converter 11 becomes equal to or more than a predetermined constant value, the pronunciation of a musical tone of a predetermined pitch as described above is started, and this data is When the value falls below a certain value, a mute instruction is given to end sound emission. The data showing this waveform level is CP
The sound output level (volume) of the musical sound is controlled by being supplied to the sound source circuit 9 from U100.

上記トランスファゲートTには、タイミングの順次ず
れたチャンネルタイミング信号t1〜t6が夫々与えられ、
6つの楽音信号(6弦に対応する)の放音レベル制御が
タイムシェアに行われ、これに応じて、周波数ROM8、音
源回路9には時分割処理により6チャンネルの楽音生成
系が形成されている。
The transfer gate T is provided with channel timing signals t 1 to t 6 whose timings are sequentially shifted, respectively.
The sound emission level control of the 6 tone signals (corresponding to the 6 strings) is performed in a time-sharing manner, and in response to this, the frequency ROM 8 and the tone generator circuit 9 form a 6-channel tone generation system by time division processing. There is.

最大ピーク検出回路4、最小ピーク検出回路5、ゼロク
ロス点検出回路6の構成 第3図は、最大ピーク検出回路4の具体的構成を示す
もので、ローパスフィルタ3からの楽音信号は、オペア
ンプ4-1の+端子に入力され、オペアンプ4-1の出力端子
は、ダイオードD1のアノード側に接続され、ダイオード
D1のカソード側は並列に接続されたコンデンサC及び抵
抗R1を介して接地されるとともに、オペアンプ4-1の−
端子に接続され、オペアンプ4-1の出力は抵抗R2を介
し、アンプ4-2を介して、上記最大ピーク点検出の割り
込み指令信号INTa1〜INTa6として出力される。
Configuration of Maximum Peak Detecting Circuit 4, Minimum Peak Detecting Circuit 5, and Zero-Cross Point Detecting Circuit 6 FIG. 3 shows a specific configuration of the maximum peak detecting circuit 4, in which the tone signal from the low-pass filter 3 is an operational amplifier 4- It is input to the + terminal of 1, and the output terminal of the operational amplifier 4-1 is connected to the anode side of the diode D1.
The cathode side of D1 is grounded via a capacitor C and a resistor R1 which are connected in parallel, and the operational amplifier 4-1 has a −
Connected to the terminals, the output of the operational amplifier 4-1 is output as the interrupt command signals INTa 1 to INTa 6 for detecting the maximum peak point via the resistor R2 and the amplifier 4-2.

オペアンプ4-1の+端子に、第4図(a)のような波
形が与えられたとすると、コンデンサCは波形レベルが
上昇する時に充電され、波形レベルが下降する時には放
電され、第4図(b)のような波形がオペアンプ4-1の
−端子に入力され、波形レベルの上昇時のみ、+端子と
−端子の差分値が出力され、これが第4図(c)に示す
割り込み指令信号INTaとして出力される。この(c)に
示すパルス状信号の立下り地点で割り込み処理が開始さ
れる。
Assuming that the + terminal of the operational amplifier 4-1 is given a waveform as shown in FIG. 4 (a), the capacitor C is charged when the waveform level rises and discharged when the waveform level falls, and FIG. A waveform such as b) is input to the-terminal of operational amplifier 4-1 and the difference value between the + terminal and the-terminal is output only when the waveform level rises. This is the interrupt command signal INTa shown in Fig. 4 (c). Is output as. Interrupt processing is started at the falling point of the pulse signal shown in (c).

また、最大ピーク検出回路としては、第5図のように
することもできる。なお、第3図のそれと同一箇所には
同一符号を付す。即ち、第3図のダイオードD1とは逆の
向きに接続されたダイオードD2があり、また、オペアン
プ4-1の+端子には、オペアンプ4-3が接続され、入力信
号inはオペアンプ4-3の−端子に抵抗R4を介して与えら
れ、またこの−端子には、その出力が抵抗R3を介して帰
還している。この第5図の最大ピーク検出回路4′の動
作は、次に述べる最小ピーク検出回路5の動作とほぼ同
じで入力側に信号反転のためのオペアンプ4-3が接続さ
れているだけであるので省略する。
Further, the maximum peak detecting circuit may be as shown in FIG. The same parts as those in FIG. 3 are designated by the same reference numerals. That is, there is a diode D2 connected in the opposite direction to the diode D1 in FIG. 3, the operational amplifier 4-3 is connected to the + terminal of the operational amplifier 4-1, and the input signal in is the operational amplifier 4-3. Is supplied to the minus terminal of the resistor through the resistor R4, and the output is fed back to the minus terminal of the resistor through the resistor R3. The operation of the maximum peak detection circuit 4'in FIG. 5 is almost the same as the operation of the minimum peak detection circuit 5 described below, and only the operational amplifier 4-3 for signal inversion is connected to the input side. Omit it.

第6図は、最小ピーク検出回路5の具体的構成を示
し、この最小ピーク検出回路5は最大ピーク検出回路4
とほぼ同じであるが、ダイオードD2の向きが逆となって
おり、コンデンサCは、第4図(d)に示すような逆向
の充放電を繰り返し、第4図(e)に示すような割り込
み指令信号INTbが得られることになる。
FIG. 6 shows a specific configuration of the minimum peak detecting circuit 5, and this minimum peak detecting circuit 5 is a maximum peak detecting circuit 4.
However, the direction of the diode D2 is reversed, and the capacitor C repeatedly charges and discharges in the reverse direction as shown in FIG. 4 (d) to generate an interrupt as shown in FIG. 4 (e). The command signal INTb will be obtained.

また第7図は、ゼロクロス点検出回路6の具体的構成
を示し、オペアンプ6-1の、+端子にはローパスフィル
タ3からの楽音信号が与えられ、−端子にはグランドレ
ベルが接続され、このオペアンプ6-1の出力は抵抗R5、
アンプ6-2を介して出力する。従って、正レベルの入力
信号があるときは、アンプ6-2でHigh出力となり、負レ
ベルの入力信号があるときは、アンプ6-2でLow出力とな
る。つまりゼロクロス点を通過する都度その出力レベル
が反転する。
Further, FIG. 7 shows a specific configuration of the zero-cross point detection circuit 6, in which the tone signal from the low-pass filter 3 is given to the + terminal of the operational amplifier 6-1, and the ground level is connected to the-terminal. The output of operational amplifier 6-1 is resistor R5,
Output via amplifier 6-2. Therefore, when there is a positive level input signal, the amplifier 6-2 outputs High, and when there is a negative level input signal, the amplifier 6-2 outputs Low. That is, the output level is inverted every time the signal passes through the zero cross point.

動作 次に本実施例の動作について説明する。第8図はCPU1
00のメインフローであって、先ずステップA1で初期設定
を行った後、ステップA12で第1弦の出力であるA/Dコン
バータ11の値を読み込んで、波形がある一定レベルを越
えたが否かステップA13でジャッジし一定レベルとなら
ない限り、楽音のオフ処理をする(ステップA14、A1
5)。
Operation Next, the operation of this embodiment will be described. Figure 8 shows CPU1
In the main flow of 00, first, after initial setting in step A1, the value of the A / D converter 11 which is the output of the first string is read in step A12, and whether the waveform exceeds a certain level Or, if it is judged at step A13 and it does not reach a certain level, the tone is turned off (steps A14, A1).
Five).

同様に、第2弦から第6弦に対する処理(ステップA2
2〜A25、A32〜A35、A42〜A45、A52〜A55、A62〜A65
(尚、図には第1弦と第6弦とに対応する処理のほかは
省略してある。)を行う。いま例えば第1弦を操作し
て、第9図(a)に示すような一定レベルをこえる楽音
信号が、A/Dコンバータ11に入力されれば、ステップA13
からステップA16に進んで、第1弦の立上りフラグを1
とする。なお、まだ発音は開始しないので、ステップA1
4、A15を経て次の弦の処理をする。
Similarly, processing from the second string to the sixth string (step A2
2 to A25, A32 to A35, A42 to A45, A52 to A55, A62 to A65
(In the figure, the processes other than the processes corresponding to the first and sixth strings are omitted.). If, for example, the first string is operated and a tone signal exceeding a certain level as shown in FIG. 9 (a) is input to the A / D converter 11, step A13
To A16, set the rising flag of the 1st string to 1
And Note that pronunciation is not started yet, so step A1
4. Go through the A15 and process the next string.

勿論、他の弦が操作されたときもステップA23→A26→
A24→A25、A33→A36→A34→A35、A43→A46→A44→A45、
A53→A56→A54→A55、A63→A66→A64→A65を実行する。
Of course, when other strings are operated, steps A23 → A26 →
A24 → A25, A33 → A36 → A34 → A35, A43 → A46 → A44 → A45,
Execute A53 → A56 → A54 → A55, A63 → A66 → A64 → A65.

そして、後述するように最初の割り込み指令信号INTa
1〜INTa6あるいはINTb1〜INTb6のいずれか一方(即ち波
形が第9図(a)に示す如く立上るのであれば必ず最初
にCPU100に与えられるのは割り込み指令信号INTa1〜INT
a6であり、逆に立下る(0からマイナス方向へ波高値が
変化する)のであれば必ず最初にCPU100には割り込み指
令信号INTb1〜INTb6である)が与えられるまでは、上述
した処理をくり返す。
Then, as described later, the first interrupt command signal INTa
If either one of 1 to INTa 6 or INTb 1 to INTb 6 (that is, the waveform rises as shown in FIG. 9A), the interrupt command signal INTa 1 to INT is always given to the CPU 100 first .
is a 6, the (0 peak value is changed in the negative direction) falls reversed until the interrupt command signal INTb 1 ~INTb is 6) is applied to the CPU100 always initially if the at and above treated Repeat.

そして、上記最初の割り込み指令信号INT(INTa1〜IN
Ta6もしくはINTb1〜INTb6)が与えられるとその時点か
ら開放弦の周波数に対応する楽音の発生の指示がなさ
れ、それ以降ステップA13(A23、A33、A43、A53、A6
3)、ステップA14(A24、A34、A44、A54、A64)からス
テップA17(A27、A37、A47、A57、A67)へ進むようにな
り、しかる後ピッチ抽出されると、そのピッチによりス
テップA17では、周波数制御がなされる。
Then, the first interrupt command signal INT (INTa 1 to IN
When Ta 6 or INTb 1 to INTb 6 ) is given, an instruction to generate a musical tone corresponding to the frequency of the open string is given from that point, and after that step A13 (A23, A33, A43, A53, A6
3), from step A14 (A24, A34, A44, A54, A64) to step A17 (A27, A37, A47, A57, A67), the pitch is extracted, and then the pitch is extracted in step A17. , Frequency control is performed.

この開放弦のピッチあるいは抽出した本当のピッチの
楽音を発生するために、CPU100は制御信号を周波数ROM8
に与える。そして、入力波形信号が一定レベル以上であ
る限りステップA12→A13→A14→A17(他の弦についても
同じで、A22→A23→A24→A27、A32→A33→A34→A37、A4
2→A43→A44→A47、A52→A53→A54→A57、A62→A63→A6
4→A67)をくり返し行い、もし一定レベル以下になれ
ば、ステップA15(他の弦についても同じでA25、A35、A
45、A55、A65)を実行して消音開始する。
In order to generate the tone of the open string pitch or the extracted true pitch, the CPU 100 sends the control signal to the frequency ROM8.
Give to. And as long as the input waveform signal is above a certain level, steps A12 → A13 → A14 → A17 (same for other strings, A22 → A23 → A24 → A27, A32 → A33 → A34 → A37, A4
2 → A43 → A44 → A47, A52 → A53 → A54 → A57, A62 → A63 → A6
Repeat 4 → A67), and if it falls below a certain level, step A15 (same for other strings, A25, A35, A
45, A55, A65) to start muting.

さて、ある弦の弦操作がなされたときの動作を更に詳
述すると以下のようになる。即ち、弦操作によって楽音
波形が立上り、第9図(a)に示す最初の最大ピーク点
(図中MAX1)に波形レベルが達し、最大ピーク検出回路
4より第9図(b)に示すような信号が発生し、フリッ
プフロップ14がHighレベルとされる(同図(d)参
照)。そして、ゼロクロス点検出回路6からのゼロクロ
ス点検出出力が第9図(a)のZerolの点で反転する
(同図(c)参照)と、アンドゲート24よりCPU100に対
し割り込み指令信号INTa(INTa1〜INTa6)が与えられ、
CPU100は第10図の割り込み処理を開始する。まず、CPU1
00はステップB1でフリップフロップ14をリセットし、ま
たカウンタ7のカウント値を読み込み、波形が1波目か
否かつまり立上りフラグが1であるか否かを判断する
(ステップB2)。いま、楽音波形は立上ったばかりで、
1波目なので、(上記ステップA16(もしくはA26、A3
6、A46、A56、A66)参照)ステップB3に進み、開放弦の
音階での発音開始処理(第9図(f)、(g)参照)を
し、次にステップB4にて上記立上りフラグをクリアし、
更にステップB5に進んで制御フラグ「1」を立てて、最
大時メモリ101に上記ステップB1で読み出したカウンタ
7のカウント値をセットする。この制御フラグ「1」
は、最大ピーク点の次のゼロクロス点が既に検出された
ことを示すフラグであり、このフラグがクリアされてい
ると、最小ピーク点が検出されたことを示すことにな
る。なお、この制御フラグの機能は後述するとおりであ
る。
Now, the operation when the string operation of a certain string is further detailed will be as follows. That is, the musical tone waveform rises by the string operation, the waveform level reaches the first maximum peak point (MAX1 in the figure) shown in FIG. 9 (a), and the maximum peak detection circuit 4 causes the waveform as shown in FIG. 9 (b). A signal is generated, and the flip-flop 14 is set to the high level (see (d) in the figure). Then, when the zero-cross point detection output from the zero-cross point detection circuit 6 is inverted at the zero point of FIG. 9 (a) (see FIG. 9 (c)), the AND gate 24 sends an interrupt command signal INTa (INTa (INTa) to the CPU 100. 1 ~ INTa 6 ) is given,
The CPU 100 starts the interrupt processing shown in FIG. First, CPU1
00 resets the flip-flop 14 in step B1, reads the count value of the counter 7, and determines whether or not the waveform is the first wave, that is, whether or not the rising flag is 1 (step B2). The musical tone waveform has just started,
Since this is the first wave, (step A16 (or A26, A3 above)
6, A46, A56, A66)) Proceeding to step B3, tone generation processing for the open string scale (see FIGS. 9 (f) and (g)) is performed, and then the rising flag is set in step B4. Clear,
Further, the process proceeds to step B5, the control flag "1" is set, and the count value of the counter 7 read in step B1 is set in the maximum memory 101. This control flag "1"
Is a flag indicating that the zero-cross point next to the maximum peak point has already been detected. If this flag is cleared, it means that the minimum peak point has been detected. The function of this control flag is as described later.

さて、第9図(a)のような波形が入力された場合
は、続けてゼロクロス点Zero2、Zero3が検知される都
度、ゼロクロス点検出回路6からは同図(c)に示すよ
うに反転出力が得られる。
When a waveform as shown in Fig. 9 (a) is input, each time the zero-cross points Zero2 and Zero3 are continuously detected, the zero-cross point detection circuit 6 outputs an inverted output as shown in Fig. 9 (c). Is obtained.

しかしながら、フリップフロップ14の出力はリセット
されており(ステップB1にて)、何ら割り込み指令信号
INTaは発生しない。勿論フリップフロップ15もリセット
されたままであるから、割り込み指令信号INTbは発生し
ない。
However, the output of the flip-flop 14 has been reset (in step B1), and no interrupt command signal has been issued.
INTa does not occur. Of course, since the flip-flop 15 is still reset, the interrupt command signal INTb is not generated.

そして次に、第9図(a)のMIN1に示す最小ピーク点
に達すると、今度は最小ピーク検出回路5よりピーク検
出信号が出力し、フリップフロップ15がセットされる。
そして、次のゼロクロス点(Zero4)にて、ゼロクロス
点検出回路6出力は反転し、その結果アンドゲート25よ
りCPU100に対し割り込み指令信号INTbが与えられ、CPU1
00は第11図の割り込み処理を開始する。まず、CPU100は
ステップC1でフリップフロップ15をリセットし、更にカ
ウンタ7のカウント値を読み込み、波形が初めて立上る
(あるいは立下る)のか否か、即ち立上りフラグが1で
あるか否か判断する(ステップC2)。
Then, when the minimum peak point indicated by MIN1 in FIG. 9 (a) is reached, a peak detection signal is output from the minimum peak detection circuit 5 and the flip-flop 15 is set.
Then, at the next zero cross point (Zero4), the output of the zero cross point detection circuit 6 is inverted, and as a result, the interrupt command signal INTb is given to the CPU100 from the AND gate 25, and the CPU1
00 starts the interrupt processing shown in FIG. First, the CPU 100 resets the flip-flop 15 in step C1, reads the count value of the counter 7, and determines whether or not the waveform rises (or falls) for the first time, that is, whether or not the rising flag is 1 ( Step C2).

さて、いまの場合、波形が立上ることによって信号の
入力開始がなされているので、既に上述したステップB4
(第10図参照)にて上記立上りフラグはクリアされてお
り、このステップC2のジャッジ結果はNOとなる。
By the way, in this case, since the signal input is started by the rising of the waveform, the above-mentioned step B4
The rising flag is cleared in (see FIG. 10), and the result of judgment in step C2 is NO.

次にステップC6に進む。このステップC6ではCPU100内
の制御フラグが1か否かジャッジし、このフラグは第10
図のステップB5にていまの場合1とされているので、YE
Sの判断がなされてステップC7へ進む。
Then proceed to step C6. In this step C6, it is judged whether or not the control flag in the CPU 100 is 1, and this flag is set to the 10th value.
In step B5 of the figure, it is assumed to be 1 in this case, so YE
The determination of S is made and the process proceeds to step C7.

ステップC7では、現在発音中の音階が、上述したよう
に発音開始時の開放弦のものか否かジャッジし、いま第
9図(f)、(g)より明らかなようにゼロクロス点Ze
ro4の検出時は、開放弦の音階音を出力しているため、Y
ESの判定をして次にステップC5へ進む。このステップC5
では制御フラグを0にすると共に、今度は最小時メモリ
102に、上記ステップC1で読出したカウンタ7のカウン
ト値をセットする。
In step C7, it is judged whether or not the scale being currently sounded is that of the open string at the start of sounding as described above, and as is clear from FIGS. 9 (f) and 9 (g), the zero-cross point Ze
When ro4 is detected, the open string scale tone is output, so Y
After determining ES, the process proceeds to step C5. This step C5
Then set the control flag to 0 and this time, the minimum memory
In 102, the count value of the counter 7 read in step C1 is set.

なお、上記ステップC7の判断は、CUP100内に開放弦音
階音の発生開始時から、次の割り込み指令信号INTの到
来時(なお厳密には、波形が立上ったときは割り込み指
令信号INTa1〜INTa6、波形が立下ったときは割り込み指
令信号INTb1〜INTb6の次の到来時、第9図の例ではゼロ
クロス点Zero5のタイミング)まで、オンしそれ以外の
時間ではオフするフラグを設ければ達成できる。
Note that the determination in step C7 is made when the next interrupt command signal INT arrives from the start of generation of the open string scale in the CUP 100 (strictly speaking, when the waveform rises, the interrupt command signal INTa 1 ~ INTa 6 , when the waveform falls, the flag that turns on at the next arrival of interrupt command signals INTb 1 to INTb 6 , until the timing of zero cross point Zero5 in the example of Fig. 9) and turns off at other times It can be achieved if provided.

さて、第9図(a)の如き入力波形の場合次のMAX2と
して示す最大ピーク点に続くゼロクロス点(Zero5)に
到達すると、最大ピーク点直後のゼロクロス点検出の割
り込み指令信号INTaが与えられ(第9図(e)参照)、
CPU100はステップB1でフリップフロップ14をリセットす
ると共にカウンタ7のカウント値を読み込み、ステップ
B2で波形がもう1波目でないことを判断して、ステップ
B6で制御フラグが「0」か否か判断する。この制御フラ
グは、すぐ前の最小ピーク点MIN1の次のゼロクロス点
(Zero4)で「0」になっている(第11図のステップC5
参照)から、CPU100はステップB7に進みいまNOのジャッ
ジをし、次のステップB8で1周期前の最大ピーク点MAX1
の直後のゼロクロス点(Zero1)で最大時メモリ101にセ
ットしたタイムカウントデータを読み出して上記ステッ
プB1で読み出した今回のタイムカウントデータより減算
し、この結果データを得る。その結果、この第10図の割
込処理に続けて行われる第8図のステップA17(またはA
27、A37、A47、A57、A67)では、上記結果データを周波
数ROM8に与えて、ゼロクロス点(Zero1)からゼロクロ
ス点(Zreo5)までの時間長(つまり第9図(e)の
t1)を1周期とする周波数の楽音を放音するように制御
することになる。なお、割込処理中のステップB5では、
CPU100は制御フラグ「1」を立て、上記今回のタイムカ
ウントデータ値を最大時メモリ101にセットする。
In the case of the input waveform as shown in FIG. 9 (a), when the zero cross point (Zero5) following the maximum peak point shown as MAX2 is reached, the interrupt command signal INTa for detecting the zero cross point immediately after the maximum peak point is given ( FIG. 9 (e)),
The CPU 100 resets the flip-flop 14 in step B1, reads the count value of the counter 7, and
In B2, determine that the waveform is not the first wave, and then step
At B6, it is determined whether the control flag is "0". This control flag becomes "0" at the zero cross point (Zero4) next to the immediately preceding minimum peak point MIN1 (step C5 in FIG. 11).
Then, the CPU 100 proceeds to step B7 to judge NO, and at the next step B8, the maximum peak point MAX1 one cycle before
At the zero cross point (Zero1) immediately after, the time count data set in the maximum time memory 101 is read and subtracted from the current time count data read in step B1 to obtain this result data. As a result, step A17 (or A in FIG. 8 that follows the interrupt processing in FIG. 10 is performed.
27, A37, A47, A57, A67), the above result data is given to the frequency ROM8 and the time length from the zero cross point (Zero1) to the zero cross point (Zreo5) (that is, in FIG. 9 (e))
Control is performed so as to emit a musical sound having a frequency with t 1 ) as one cycle. In step B5 during the interrupt process,
The CPU 100 sets the control flag "1" and sets the current time count data value in the maximum memory 101.

このように、ステップC5、B6で最大ピーク点のすぐ次
のゼロクロス点が判別され、このゼロクロス転換だけの
時間(t1)が計測され、ステップB8で周期計算が行われ
てゆく。
In this way, the zero crossing point immediately following the maximum peak point is determined in steps C5 and B6, the time (t 1 ) only for this zero crossing change is measured, and the period calculation is performed in step B8.

同様にして、第9図(a)のゼロクロス点(Zero6、Z
ero7)は、無視されて最小値検出直後のゼロクロス点
(Zero8)の検出によって発生されるアンドゲート25か
らの割り込み指令信号INTbの入力に応じて、CPU100は、
第11図に示すフローの処理を行い今回は、前のゼロクロ
ス点(Zero4)から今回のゼロクロス点(Zero8)までの
時間間隔(t2)がピッチ抽出データとなる。なおこのと
き処理はステップC1→C2→C6→C7→C8→C5の順で行われ
る。
Similarly, the zero-cross point (Zero6, Z
ero7) is ignored and the CPU 100 receives the interrupt command signal INTb from the AND gate 25 generated by the detection of the zero-cross point (Zero8) immediately after the minimum value is detected.
After the processing of the flow shown in FIG. 11 is performed, the time interval (t 2 ) from the previous zero-cross point (Zero4) to the current zero-cross point (Zero8) becomes the pitch extraction data. At this time, the processing is performed in the order of steps C1 → C2 → C6 → C7 → C8 → C5.

従って、本実施例では、先ず当該弦の開放弦音階の楽
音を、最初の割込指令信号INT(立上り時INTa、立下り
時INTb)から発生し、次の同じ割込信号発生時以降では
最大値検出直後発生するゼロクロス点どおしの時間間隔
(t1:つまりZero1→Zero5)と、最小値検出直後発生す
るゼロクロス点どおしの時間間隔(t2:つまりZero4→ze
ro8)とを求めて、一周期に2回周波数変更の処理を行
う。従って、入力信号の発生に対応して即時に楽音を出
力でき、しかる後ピッチ抽出がなされば、そのピッチに
従って発音音階を決めてやることで入力信号の周波数変
化に応答できるようになっている。
Therefore, in this embodiment, first, the musical tone of the open string scale of the relevant string is generated from the first interrupt command signal INT (INTa at the time of rising, INTb at the time of falling), and the maximum is generated after the next same interrupt signal is generated. The time interval between the zero-cross points that occurs immediately after the value detection (t 1 : Zero 1 → Zero 5) and the time interval between the zero-cross points that occur immediately after the minimum value detection (t 2 : that is Zero 4 → ze
ro8) and the frequency change process is performed twice in one cycle. Therefore, a musical tone can be output immediately in response to the generation of an input signal, and if pitch extraction is then performed, the tone scale can be determined according to the pitch to respond to the frequency change of the input signal.

ところで、本実施例においては、上述した第10図、第
11図のフローの制御フラグの機能によって第12図に示す
ような波形が入力されても、図のゼロクロス点Zero12、
Zero14は、無視されることになる。
By the way, in the present embodiment, FIG.
Even if the waveform as shown in Fig. 12 is input by the function of the control flag in the flow in Fig. 11, the zero-cross point Zero12,
Zero14 will be ignored.

つまり、割り込み指令信号INTaとしてゼロクロスZero
12、Zero14に対応する信号が入ってきても、制御フラグ
は、ゼロクロス点Zero11、Zero13の到来時に1にセット
してあり(ステップB5)、従ってステップB6のジャッジ
はNOとなり、何ら周期計算を行なわないことになる。こ
のようにして、本実施例ではこのフラグによって最大値
検出後あるいは最小値検出後にゼロクロス点が連続して
複数回検出されてもそれを無視することで、倍音の影響
を更に取り除くことを可能としている。
That is, the zero-cross Zero is used as the interrupt command signal INTa.
Even if the signal corresponding to 12 and Zero14 comes in, the control flag is set to 1 when the zero cross points Zero11 and Zero13 arrive (step B5). Therefore, the judge at step B6 becomes NO, and no cycle calculation is performed. There will be no. In this way, in this embodiment, even if the zero-cross point is continuously detected a plurality of times after the maximum value or the minimum value is detected by this flag, it is ignored, thereby making it possible to further remove the influence of the overtone. There is.

なお、第8図のステップA17(A27、A37、A47、A57、A
67)での処理として前回の記憶されているタイムカウン
トデータと今回得たタイムカウントデータとの平均値を
とって出力したり、前回とのデータ差が大きい場合例え
ば20%以上の差があれば前回のものを出力するようにし
た場合は、周波数の安定性が図れる。また、最大ピーク
点直後のゼロクロス点検出に基づく周期計算と、最小ピ
ーク点直後のゼロクロス点検出に基づく周期計算とを、
楽音波形の始点が立上り波形であれば、それ以降は最大
ピーク点直後のゼロクロス点に基づく周期計算(つまり
t1のみを求める)を行い、楽音波形の始点が立下り波形
であれば、それ以降は最小ピーク点直後のゼロクロス点
に基づく周期計算(つまりt2のみを求める)を行うよう
に、選択的に実行するようにしてもよい。
In addition, step A17 (A27, A37, A47, A57, A in FIG. 8)
As the processing in 67), the average value of the previously stored time count data and the time count data obtained this time is taken and output, or if the data difference from the previous time is large, for example, if there is a difference of 20% or more, If the previous one is output, frequency stability can be achieved. Also, the period calculation based on the zero-cross point detection immediately after the maximum peak point, and the period calculation based on the zero-cross point detection immediately after the minimum peak point,
If the starting point of the tone waveform is a rising waveform, after that, the period calculation based on the zero-cross point immediately after the maximum peak point (that is,
Select only t 1 ), and if the starting point of the tone waveform is a falling waveform, after that, perform periodic calculation based on the zero-cross point immediately after the minimum peak point (that is, calculate only t 2 ). May be executed.

このように、本実施例にあっては、CPU1000が第8図
に示したステップA17(A27、A37、A47、A57、A67)の処
理として適当なものを実行でき、しかもこの処理の変更
はCPU100の外部回路の変更を行うことなく、単にCPU100
のプログラムの変更で行えるために汎用性が増し、イン
テリジェント化に適している。
As described above, in this embodiment, the CPU 1000 can execute an appropriate process as step A17 (A27, A37, A47, A57, A67) shown in FIG. Without changing the external circuit of CPU100
Since it can be done by changing the program, it is more versatile and suitable for intelligentization.

さて、上記実施例では、最大ピーク点検出直後のゼロ
クロス点間の時間間隔(t1)と、最小ピーク点検出直後
のゼロクロス点間の時間間隔(t2)との双方を求めるよ
うにしたが、上述したように必ずしも双方を算出する必
要はなく、仮に一方のみで回路構成をした場合は、第1
図に示した最大ピーク検出回路4、フリップフロップ1
4、アントゲート24、インバータ30の組か、最小ピーク
検出回路5、フリップフロップ15、アンドゲート25の組
の一方が不要となり回路の簡略化ができる。
In the above embodiment, both the time interval between the zero cross points immediately after the maximum peak point detection (t 1 ) and the time interval between the zero cross points immediately after the minimum peak point detection (t 2 ) are obtained. However, as described above, it is not always necessary to calculate both, and if the circuit configuration is configured with only one, the first
Maximum peak detection circuit 4 and flip-flop 1 shown in the figure
4, one of the set of the ant gate 24 and the inverter 30 or the set of the minimum peak detection circuit 5, the flip-flop 15 and the AND gate 25 is unnecessary and the circuit can be simplified.

なお、上記実施例では、第10図のステップB3あるいは
第11図のステップC3にて、発音弦の音階音を実際に発生
開始するようにCPU100は処理しているが、これらの割り
込み処理の完了後メインフローである第8図の一連の処
理の中で発音開始処理をするようにしてもよい。
In the above embodiment, the CPU 100 processes so as to actually start the generation of the scale tone of the sounded string in step B3 of FIG. 10 or step C3 of FIG. 11, but the completion of these interrupt processes. The tone generation start process may be performed in the series of processes of FIG. 8 which is the main flow afterward.

また、第10図のステップB8、第11図のステップC8にて
周期計算をし、この周期計算に基づく楽音周波数変更の
制御は第8図のメインフロー内のステップA17、A27、A3
7、A47、A57、A67で行っているが、逆にこの変更処理は
各割込み処理中に行うようにすることもできる。
Further, the period calculation is performed in step B8 of FIG. 10 and step C8 of FIG. 11, and the tone frequency change control based on this period calculation is performed in steps A17, A27, A3 in the main flow of FIG.
7, A47, A57, and A67 are performed, but conversely, this change processing can be performed during each interrupt processing.

いずれの場合も、割込み処理(第10図、第11図)のな
かで、発音開始処理、周波数変更処理をする方が入力信
号に対する応答性は良くなる。
In either case, the response to the input signal is better when the tone generation start process and the frequency change process are performed in the interrupt process (FIGS. 10 and 11).

また、上記実施例では、第9図(g)に示すように、
開放弦の音階音の最初の一波形が完了するまでに周波数
変更をすることで、演奏者が発音当初の出力音の周期性
(従ってその周波数つまりピッチ)を感じとる以前に、
実際の音階周波数にかえており、発音開始が早いタイミ
ングで行え、しかも発音開始時の音響の周波数も人間の
感覚では合っているように感じるようになるものであ
る。
In the above embodiment, as shown in FIG. 9 (g),
By changing the frequency until the first waveform of the open string scale is completed, before the performer feels the periodicity of the output sound at the beginning of the pronunciation (hence the frequency or pitch),
Instead of the actual scale frequency, the pronunciation can be started at an early timing, and the frequency of the sound at the beginning of the pronunciation can be felt to match the human sense.

そこで、更に応答速度を早くするために、第9図
(a)の最大値(MAX1)以前の弦振動の存在を検知した
とき、つまりA/Dコンバータ11が所定レベル以上の出力
をしたことをCPU100が検知し、立上りフラグ1とする処
理(第8図のステップA13A16、A23A26、A33A36、A43A4
6、A53A56、A63A66)時に開放弦音階音の発音開始指令
をCPU100は周波数ROM8、音源回路9へ与えてもよい。
Therefore, in order to further increase the response speed, when the presence of the string vibration before the maximum value (MAX1) in FIG. 9 (a) is detected, that is, the A / D converter 11 outputs at or above a predetermined level, Processing for detecting a rising flag 1 by the CPU 100 (steps A13A16, A23A26, A33A36, A43A4 in FIG. 8)
6, A53A56, A63A66), the CPU 100 may give a frequency start instruction for the open string scale to the frequency ROM 8 and the tone generator circuit 9.

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

即ち、そのような各種楽器等においては、ピッチ抽出
前には所定のピッチで楽音を発生開始し、ピッチ抽出後
に、そのピッチに上記楽音を変更した場合に、最初に出
した楽音が人間によって周波数が聞きわけられると、極
めて不自然となるので、最初に出力する楽音は、1波長
(1周期)未満のものとすべきである。従って、低音の
楽音を先ず出力することが望ましい。
That is, in such various musical instruments, when a musical tone is started to be generated at a predetermined pitch before the pitch is extracted and the musical tone is changed to that pitch after the pitch is extracted, the first musical tone is generated by a human. Is very unnatural, so the musical tone to be output first should be less than one wavelength (one cycle). Therefore, it is desirable to first output the low tone.

加えて、上記実施例では入力波形信号のピッチを検出
するのに連続する最大ピーク点の直後のゼロクロス点間
の時間間隔(t1)かまたは連続する最小ピーク点の直後
のゼロクロス点間の時間間隔(t2)かを検知し、この得
られる時間間隔を適宜処理してピッチ抽出を行うように
したが、それ以外、例えば単純なゼロクロス点間の時間
長からピッチを抽出する方式、波形の最大値をとる点ど
おしの時間長あるいは最小値をとる点どおしの時間長を
もとにピッチを抽出する方式であってもよく、更には、
波形の自己相関関数その他の関数を計算することで周期
性を判断しその結果ピッチを抽出する方式にしてもよ
い。
In addition, in the above embodiment, the time interval between the zero cross points immediately after the continuous maximum peak points (t 1 ) or the time between the zero cross points immediately after the continuous minimum peak points is used to detect the pitch of the input waveform signal. Although the interval (t 2 ) is detected and the obtained time interval is appropriately processed to perform pitch extraction, other than that, for example, a method of extracting the pitch from the time length between simple zero-cross points, the waveform It may be a method of extracting the pitch based on the time length of the point taking the maximum value or the time length of the point taking the minimum value.
A method may be used in which the periodicity is determined by calculating the waveform autocorrelation function and other functions and the pitch is extracted as a result.

その他各種のピッチ抽出方式が本発明においては採用
できる。
Various other pitch extraction methods can be adopted in the present invention.

[発明の効果] この発明は、以上詳述したように、入力波形信号が与
えられていることが検知されるとまず最初に所定のピッ
チで音響信号を発生するようにし、しかる後ピッチ抽出
がなされると、そのピッチに上記音響信号の周波数を変
更して発生するようにしたから、波形信号の入力から実
際に音響が発生するまでの応答速度を早くすることがで
き、演奏に好適である利点がある。
[Effects of the Invention] As described in detail above, according to the present invention, when it is detected that an input waveform signal is applied, an acoustic signal is first generated at a predetermined pitch, and then pitch extraction is performed. When this is done, the frequency of the acoustic signal is changed to the pitch so that it can be generated, so that the response speed from the input of the waveform signal to the actual generation of the sound can be increased, which is suitable for playing. There are advantages.

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

第1図は、本発明の一実施例の全体回路構成を示す図、
第2図は、第1図中のローパスフィルタのカットオフ周
波数を示す図、第3図は最大ピーク検出回路の構成図、
第4図は、最大ピーク検出回路と最小ピーク検出回路の
各部の動作波形を示す図、第5図は最大ピーク検出回路
の他の例を示す回路構成図、第6図は最小ピーク検出回
路の構成図、第7図はゼロクロス点検出回路の構成図、
第8図はCPUのメインフローチャートを示す図、第9図
は入力波形とそれに伴う各部の動作を示すタイムチャー
ト図、第10図は最大ピーク点直後のゼロクロス点検出時
の割り込み処理フローチャートを示す図、第11図は最小
ピーク点直後のゼロクロス点検出時の割り込み処理フロ
ーチャートを示す図、第12図は別の入力波形とそれに伴
う各部の動作を示すタイムチャート図である。 1……入力端子、4……最大ピーク検出回路、5……最
小ピーク検出回路、6……ゼロクロス点検出回路、7…
…カウンタ、8……周波数ROM、9……音源回路、10…
…サウンドシステム、14、15……フリップフロップ、10
0……CPU、101……最大時メモリ、102……最小時メモ
リ。
FIG. 1 is a diagram showing the overall circuit configuration of an embodiment of the present invention,
FIG. 2 is a diagram showing the cutoff frequency of the low-pass filter in FIG. 1, and FIG. 3 is a configuration diagram of the maximum peak detection circuit,
FIG. 4 is a diagram showing operation waveforms of respective parts of the maximum peak detection circuit and the minimum peak detection circuit, FIG. 5 is a circuit configuration diagram showing another example of the maximum peak detection circuit, and FIG. 6 is a diagram showing the minimum peak detection circuit. Configuration diagram, FIG. 7 is a configuration diagram of a zero-cross point detection circuit,
FIG. 8 is a diagram showing a main flow chart of the CPU, FIG. 9 is a time chart diagram showing an input waveform and the operation of each part accompanying it, and FIG. 10 is a diagram showing an interrupt processing flow chart at the time of detecting a zero-cross point immediately after the maximum peak point. FIG. 11 is a diagram showing a flow chart of interrupt processing at the time of detecting a zero-cross point immediately after the minimum peak point, and FIG. 12 is a time chart diagram showing another input waveform and the operation of each part accompanying it. 1 ... Input terminal, 4 ... Maximum peak detection circuit, 5 ... Minimum peak detection circuit, 6 ... Zero-cross point detection circuit, 7 ...
… Counter, 8… Frequency ROM, 9… Sound source circuit, 10…
… Sound system, 14, 15 …… Flip-flop, 10
0 …… CPU, 101 …… Maximum memory, 102 …… Minimum memory.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力波形信号のピッチを抽出するピッチ抽
出手段と、 上記入力波形信号が与えられているか否か検出する入力
有無判断手段と、 上記入力有無判断手段にて入力波形信号が存在している
と検知すると、最初に所定ピッチをもつ音響信号を発生
すべく発音指示をすると共に、上記ピッチ抽出手段にて
上記入力波形信号のピッチが抽出されるとこの抽出され
たピッチに上記音響信号のピッチを変更するようピッチ
変更指示をする指示手段と を具備したことを特徴とする入力波形信号制御装置。
1. A pitch extracting means for extracting a pitch of an input waveform signal, an input presence / absence determining means for detecting whether or not the input waveform signal is given, and an input waveform signal existing in the input presence / absence determining means. When the pitch extraction means extracts the pitch of the input waveform signal, the acoustic signal is first generated to generate an acoustic signal having a predetermined pitch, and the acoustic signal is set to the extracted pitch. And an instructing unit for instructing a pitch change so as to change the pitch of the input waveform signal control device.
【請求項2】上記指示手段が最初に発音指示をする音響
信号の前記所定ピッチは、弦楽器における解放弦のピッ
チであることを特徴とする特許請求の範囲第1項記載の
入力波形信号制御装置。
2. The input waveform signal control device according to claim 1, wherein the predetermined pitch of the acoustic signal for which the instructing means first issues a sounding instruction is a pitch of an open string in a stringed instrument. .
JP61282140A 1986-10-24 1986-11-28 Input waveform signal controller Expired - Lifetime JP2508035B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP61282140A JP2508035B2 (en) 1986-11-28 1986-11-28 Input waveform signal controller
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
JP61282140A JP2508035B2 (en) 1986-11-28 1986-11-28 Input waveform signal controller

Publications (2)

Publication Number Publication Date
JPS63136089A JPS63136089A (en) 1988-06-08
JP2508035B2 true JP2508035B2 (en) 1996-06-19

Family

ID=17648628

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61282140A Expired - Lifetime JP2508035B2 (en) 1986-10-24 1986-11-28 Input waveform signal controller

Country Status (1)

Country Link
JP (1) JP2508035B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006267342A (en) * 2005-03-23 2006-10-05 Roland Corp Musical sound controller and musical sound control program

Also Published As

Publication number Publication date
JPS63136089A (en) 1988-06-08

Similar Documents

Publication Publication Date Title
US5710387A (en) Method for recognition of the start of a note in the case of percussion or plucked musical instruments
JP2508035B2 (en) Input waveform signal controller
JP3279204B2 (en) Sound signal analyzer and performance information generator
JP2516070Y2 (en) Electronic musical instrument input control device
JP2555551B2 (en) Input waveform signal controller
JP3460408B2 (en) Music control device
JP3001353B2 (en) Automatic transcription device
JP2532424B2 (en) Waveform signal input controller
JP3346699B2 (en) Electronic musical instrument
JPH0261760B2 (en)
EP0264955B1 (en) Apparatus for determining the pitch of a substantially periodic input signal
JP2792022B2 (en) Electronic musical instrument input control device
JP2000259154A (en) Code judging device
JPH0648556Y2 (en) Input control device for electronic musical instruments
JP2653456B2 (en) Automatic music transcription method and device
JPS63136088A (en) Input controller for electronic musical instrument
JPH0431599B2 (en)
JP2581068B2 (en) Waveform signal controller
JP2526122Y2 (en) Electronic musical instrument
JPH0782320B2 (en) Music control device
JP2679042B2 (en) Input waveform signal controller
JPH083711B2 (en) Input waveform signal controller
JPH10187156A (en) Electronic stringed instrument capable of tapping harmonics execution
JP2508692B2 (en) Input waveform signal controller
JP2604406B2 (en) Automatic music transcription method and device