JPS63106795A - Input controller for electronic musical instrument - Google Patents

Input controller for electronic musical instrument

Info

Publication number
JPS63106795A
JPS63106795A JP61253487A JP25348786A JPS63106795A JP S63106795 A JPS63106795 A JP S63106795A JP 61253487 A JP61253487 A JP 61253487A JP 25348786 A JP25348786 A JP 25348786A JP S63106795 A JPS63106795 A JP S63106795A
Authority
JP
Japan
Prior art keywords
peak point
maximum peak
time
minimum
frequency
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.)
Pending
Application number
JP61253487A
Other languages
Japanese (ja)
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 JP61253487A priority Critical patent/JPS63106795A/en
Priority to DE19873784830 priority patent/DE3784830T2/en
Priority to DE19873752185 priority patent/DE3752185T2/en
Priority to EP19870115594 priority patent/EP0264955B1/en
Priority to EP92105224A priority patent/EP0493374B1/en
Publication of JPS63106795A publication Critical patent/JPS63106795A/en
Priority to US07/478,759 priority patent/US5018428A/en
Priority to HK98104364A priority patent/HK1005348A1/en
Pending legal-status Critical Current

Links

Abstract

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

Description

【発明の詳細な説明】 [発明の技術分野J 本発明は電子楽器の入力側御装置に関するものである。[Detailed description of the invention] [Technical field of invention J The present invention relates to an input side control device for an electronic musical instrument.

[従来技術とその問題点] 近時、自然楽器の演奏操作に応じた楽器信号の周波数を
検出して、その周波数の楽音をデジタルデータ処理によ
り人工音を作成して放音することが考えられている。
[Prior art and its problems] Recently, it has been considered to detect the frequency of a musical instrument signal corresponding to the playing operation of a natural musical instrument, and to generate an artificial sound using digital data processing of the musical tone at that frequency and emit the sound. ing.

このような、楽音信号の周波数を検出するには、例えば
特公昭57−37074号、特公昭57−58672号
、特開昭55−55398号、実開昭55−15259
7号あるいは特開昭61−26090号の開示技術を利
用して、楽音信号の波形の最大ピーク点の検出をしてR
−Sフリップフロップを例えばセットし、最小ピーク点
の検出をして上記R−Sフリップフロップを例えばリセ
ットし、このR−Sフリップフロップから出力される矩
形波信号に従って、楽音の周期を決定するようにしてい
る。
In order to detect the frequency of such a musical tone signal, for example, Japanese Patent Publication No. 57-37074, Japanese Patent Publication No. 58672/1982, Japanese Patent Application Laid-open No. 55-55398, Japanese Utility Model Application No. 15259/1982
No. 7 or JP-A No. 61-26090, the maximum peak point of the waveform of the musical tone signal is detected and R
-S flip-flop is set, for example, the minimum peak point is detected, the R-S flip-flop is reset, and the period of the musical tone is determined according to the rectangular wave signal output from this R-S flip-flop. I have to.

しかしながら、このような従来技術では、必ず例えば最
大ピーク点どおしの時間間隔に従って周期の決定がなさ
れるために、信頼性が低下したりあるいは入力音の周波
数変化に対する応答速度がおそくなってしまったり、あ
るいはR−Sフリップフロップをもって構成している為
に、汎用性を欠くあるいはインテリジェント化が困難と
なるといった問題点がある。
However, in such conventional techniques, since the period is always determined according to the time interval between the maximum peak points, reliability may be reduced or the response speed to frequency changes of the input sound may be slow. Since it is constructed with a loose or R-S flip-flop, there are problems such as lack of versatility or difficulty in making it intelligent.

[発明の目的1 この発明は、上述した事情に鑑みてなされたもので、よ
り正確にかつスピーディに周波数情報を得ることができ
、汎用性をもった回路構成をとり得るようにした電子楽
器の入力制御装置を提供することにある。
[Objective of the Invention 1] This invention was made in view of the above-mentioned circumstances, and provides an electronic musical instrument that can obtain frequency information more accurately and quickly and has a versatile circuit configuration. An object of the present invention is to provide an input control device.

[発明の要点] この発明は上述した目的を達成するために、自然音の信
号の周波数を検出して、その周波数に対応する楽音をデ
ジタルデータ処理により人工音を作成して放音する電子
楽器であって、最大ピーク点のうち最小ピーク点の次の
最大ピーク点と、最小ピーク点のうち、最大ピーク点の
次の最小ピーク点とを判別手段で判別し、その結果に従
って時間計測手段にて、最大ピーク点間の時間と最小ピ
ーク点間の時間とを夫々計測し、各ピーク点間の時間に
応じて、適宜処理を行って周波数データを得るようにし
たことを要点とする。
[Summary of the Invention] In order to achieve the above-mentioned object, the present invention provides an electronic musical instrument that detects the frequency of a natural sound signal and generates an artificial sound by digital data processing the musical tone corresponding to the frequency. The determining means determines the maximum peak point next to the minimum peak point among the maximum peak points, and the minimum peak point next to the maximum peak point among the minimum peak points, and the time measuring means determines the maximum peak point next to the maximum peak point among the maximum peak points. The key point is that the time between the maximum peak points and the time between the minimum peak points are respectively measured, and appropriate processing is performed depending on the time between each peak point to obtain frequency data.

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

く概 略〉 本実施例では、最大ピーク検出回路4、最小ピーク検出
回路5が夫々最大ピーク検出手段、最小ピーク検出手段
に、CPU6のステップC5、B3又はステップB5、
C3が判別手段に、カウンタ7と最大時メモリ14と最
小時メモリ15が時間計測手段に、CPU6のステップ
A5と周波数ROMBが出力手段に夫々対応する0本実
施例において、最大ピーク点に達するごとに割り込み指
令信号I N T aがCPU6に与えられて、ステッ
プB5でフラグ「1」が立てられ、最小ピーク点に達す
るごとに割り込み指令信号lNTbが与えられて、ステ
ップC5でフラグが「0」にクリアされ、最小ピーク点
のすぐ次の最大ピーク点に達した時のみ、ステップB3
でタイムカウント値が求められ、最大ピーク点のすぐ次
の最小ピーク点に達した時のみ、ステップC3でやはり
タイムカウント値が求められ、これらのタイムカウント
値に従って得られる1周期分のタイムカウント値に基づ
いて周波数データが周波数ROM8より出力される。
Overview In this embodiment, the maximum peak detection circuit 4 and the minimum peak detection circuit 5 operate as maximum peak detection means and minimum peak detection means, respectively, and step C5, B3 or step B5 of the CPU 6.
In this embodiment, C3 corresponds to the determination means, the counter 7, the maximum time memory 14 and the minimum time memory 15 correspond to the time measurement means, and the step A5 of the CPU 6 and the frequency ROMB correspond to the output means. An interrupt command signal INTa is given to the CPU 6, a flag is set to "1" in step B5, and an interrupt command signal INTb is given every time the minimum peak point is reached, and the flag is set to "0" in step C5. Step B3 is cleared only when the maximum peak point immediately following the minimum peak point is reached.
The time count value is calculated in step C3, and only when the minimum peak point immediately following the maximum peak point is reached, the time count value is also calculated in step C3, and the time count value for one cycle obtained according to these time count values is Based on this, frequency data is output from the frequency ROM 8.

く構 成〉 会生皿粟璽虞 第1図は電子楽器の入力制御装置の全体回路構成を示す
もので、6つの入力端子1からは音声又は楽音の信号が
入力される。即ち、本実施例は、電子ギターに本発明を
適用したものであり、この信号は、電子機器上に張設さ
れた6つの弦の夫々に設けられた、弦の振動を電気信号
に変換するピックアップからの信号とすることができる
Figure 1 shows the overall circuit configuration of an input control device for an electronic musical instrument, and six input terminals 1 receive voice or musical tone signals. That is, in this embodiment, the present invention is applied to an electronic guitar, and this signal is obtained by converting the vibration of the strings provided on each of the six strings strung on the electronic device into an electric signal. It can be a signal from a pickup.

入力端子l・・・・・・からの楽音信号は、夫々アンプ
2・・・・・・で増幅され、ローパスフィルタ3・・・
・・・で高周波成分がカットされて基本波形が抽出され
、最大ピーク検出回路4・・・・・・及び最小ピーク検
出回路5・・・・・・に与えられる。ローパスフィルタ
3・・・・・・は、第5図に示すように、各弦の開放弦
の振動音周波数fの4倍の4fにカットオフ周波数が設
定されている。最大ピーク検出回路4・・・・・・では
、楽音信号の最大ピーク点が検出され、その検出パルス
信号が割り込み指令信号I N T al−I N T
 a 6としてCPU6に与えられ、最小ピーク検出回
路5・・・・・・でも、楽音信号の最小ピーク点が検出
され、その検出パルス信号が割り込み指令信号lNTb
+〜INTbbとしてCPU6に与えられる。
Musical tone signals from input terminals l are amplified by amplifiers 2 and then passed through low-pass filters 3 and 2, respectively.
. . . high frequency components are cut off, the basic waveform is extracted, and is provided to the maximum peak detection circuit 4 . . . and the minimum peak detection circuit 5 . As shown in FIG. 5, the cutoff frequency of the low-pass filter 3 is set to 4f, which is four times the vibration sound frequency f of the open string of each string. The maximum peak detection circuit 4 detects the maximum peak point of the musical tone signal, and the detected pulse signal is used as an interrupt command signal INTal-INT.
a 6, the minimum peak point of the musical tone signal is detected by the minimum peak detection circuit 5, and the detected pulse signal is sent to the CPU 6 as an interrupt command signal lNTb.
+~INTbb is given to the CPU 6.

CPU6では、上記割り込み指令信号のうち、最小ピー
ク点検出の割り込み指令信号lNTb+〜lNTb6の
すぐ後の最大ピーク点検出の割り込み指令信号I N 
’ral−y I N Ta6が与えられた時に、それ
以前に同様にして検出された最大ピーク点とのカウンタ
値の差が求められ、また最大ピーク点検出の割り込み指
令信号lNTa1〜lNTa6のすぐ後の最小ピーク点
検出の割り込み指令信号lNTb+〜lNTb6が与え
られた時に、それ以前に同様にして検出された最小ピー
ク点とのカウンタ値の差が求められる。この両信号IN
Tが与えられる都度カウンタ7のカウント値は夫々対応
する最大時メモリ14.最小時メモリ15に記憶される
In the CPU 6, among the above-mentioned interrupt command signals, an interrupt command signal I N for maximum peak point detection immediately following the minimum peak point detection interrupt command signal lNTb+ to lNTb6 is used.
When 'ral-y I N Ta6 is given, the difference in the counter value from the maximum peak point detected in the same way before is calculated, and immediately after the maximum peak point detection interrupt command signals lNTa1 to lNTa6. When the minimum peak point detection interrupt command signals lNTb+ to lNTb6 are given, the difference in the counter value from the previously detected minimum peak point is determined. Both signals IN
Each time T is given, the count value of the counter 7 is stored in the corresponding maximum memory 14. The minimum time is stored in the memory 15.

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

上記ローパスフィルタ3・旧・・からの6つの楽音信号
は、夫々トランスファゲートTを介してA/Dコンバー
タ11に与えられ、その波形レベルに応じたデジタルデ
ータに変換されてCPU6に与えられる。CPU6では
A/Dコンバータ11より与えられる波形レベルを示す
データの絶対fdが、予め決められた一定値以上になっ
た時には、カウンタ7の値より求めたデータを周波fi
ROM8に送り込んで放音を開始させ、このデータが上
記一定値以下になった時には1周波fiROM8へのデ
ータ送出を終らせて放音を終了させる。この波形レベル
を示すデータは、CPU5より上記音源回路9にも与え
られて、楽音の放音レベルが制御される。
The six musical tone signals from the low-pass filters 3 (old) are respectively applied to the A/D converter 11 via transfer gates T, converted into digital data according to their waveform levels, and applied to the CPU 6. When the absolute fd of the data indicating the waveform level given by the A/D converter 11 exceeds a predetermined constant value, the CPU 6 converts the data obtained from the value of the counter 7 into the frequency fi.
The data is sent to the ROM 8 to start sound emission, and when this data becomes less than the above-mentioned certain value, the data transmission to the one-frequency fiROM 8 is finished and the sound emission is ended. Data indicating this waveform level is also applied from the CPU 5 to the sound source circuit 9 to control the sound emission level of musical tones.

上記トランスフアゲ−)Tには、タイミングの順次ずれ
たチャンネルタイミング信号t、−t6が夫々与えられ
、6つの楽音信号の放音レベル制御がタイムシェアに行
われ、これに応じて1周波数ROM8、音源回路9にも
時分割処理により6チヤンネルの楽音生成系が形成され
ている。
Channel timing signals t and -t6 whose timings are sequentially shifted are respectively applied to the transfer game)T, and the sound emission level control of the six musical tone signals is performed in a time-share manner. A six-channel musical tone generation system is also formed in the tone generator circuit 9 by time-division processing.

最 ピーク検出回路4、最小ピーク検出回路いハ 第2図は、最大ピーク検出回路4の具体的構成を示すも
ので、ローパスフィルタ3からの楽音信号は、オペアン
プ12の子端子に入力され、オペアンプ12の出力端子
は、ダイオードDIの7ノード側に接続され、ダイオー
ドDIのカソード側は並列に接続されたコンデンサC及
び抵抗R1を介して接地されるとともに、オペアンプ1
2の一端子に接続され、オペアンプ12の出力は抵抗R
2を介し、アンプ13を介して、上記最大ピーク点検出
の割り込み指令信号lNTa+〜lNTa6として出力
される。
Maximum peak detection circuit 4, minimum peak detection circuit Fig. 2 shows the specific configuration of maximum peak detection circuit 4. The musical tone signal from low-pass filter 3 is input to the child terminal of operational amplifier 12, and The output terminal of No. 12 is connected to the Node 7 side of the diode DI, and the cathode side of the diode DI is grounded via the capacitor C and the resistor R1 connected in parallel, and the output terminal of the operational amplifier 1
The output of the operational amplifier 12 is connected to one terminal of the resistor R
2 and the amplifier 13 as the interrupt command signals lNTa+ to lNTa6 for detecting the maximum peak point.

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

第3図は、最小ピーク検出回路5の具体的構成を示し、
この最小ピーク検出回路5は最大ピーク検出回路4とほ
ぼ同じであるが、ダイオードD2の向さが逆となってお
り、コンデンサCは、第4図dに示すような逆向の充放
電を鰻り返し、第4図eに示すような割り込み指令信号
lNTbが得られることになる。
FIG. 3 shows a specific configuration of the minimum peak detection circuit 5,
This minimum peak detection circuit 5 is almost the same as the maximum peak detection circuit 4, but the direction of the diode D2 is reversed, and the capacitor C is charged and discharged in the opposite direction as shown in Fig. 4d. In return, an interrupt command signal lNTb as shown in FIG. 4e is obtained.

く勤 作〉 次に本実施例の動作について述べる。Written by Kujin Next, the operation of this embodiment will be described.

波形立上り時  ′ 電源が投入されると、CPU6は第6図のメインフロー
の処理を開始し、ステップAIで初期設定を行った後、
ステップA2でA/Dコンバータ11の値を読み込んで
、一定レベルとならない限り、楽音のオフ処理を続ける
(ステップA3、A4)、いま、弦の演奏操作があって
、第9図に示すような一定レベル以上の楽音信号がA/
Dコンバータ11に入力されれば(ステップA3)。
When the waveform rises ' When the power is turned on, the CPU 6 starts processing the main flow shown in Fig. 6, and after making initial settings in step AI,
In step A2, the value of the A/D converter 11 is read, and the musical tone is continued to be turned off unless it reaches a certain level (steps A3 and A4).Currently, there is a string playing operation, as shown in Figure 9. Musical sound signals above a certain level are A/
If it is input to the D converter 11 (step A3).

ステップA5に進んで周波数制御処理すなわちカウンタ
7からのデータを周波数ROMBに与える楽音放音処理
を行い、楽音信号レベルが一定レベル以上である限りこ
の放音処理を続ける(ステップA2.A3、A5)、こ
のカウンタ7のカウントデータは次述する割り込み処理
で設定される。
Proceeding to step A5, frequency control processing, that is, musical sound emitting processing that applies the data from the counter 7 to the frequency ROMB, is performed, and this sound emitting processing is continued as long as the musical sound signal level is above a certain level (steps A2, A3, A5). , the count data of this counter 7 is set in the interrupt processing described below.

最大ピーク点MAXl到゛時 次に、楽音波形の立上りから第9図MAXIに示す最初
の最大ピーク点に波形レベルが達したとすると、最大ピ
ーク検出回路4よりCPU6に最大ピーク点検出の割り
込み指令信号INTdが与えられ、CPU6は第7図の
割り込み処理を開始する。まず、CPU6はステップB
lでカウンタ7のカウント値を読み込み、波形が1波目
か否かを判断する(ステップB2)、いま、楽音波形は
立上ったばかりで、1波目なので、ステップB5に進ん
でフラグrlJを立てて、最大時メモリ14に上記ステ
ップBlで読み出したカウンタ7のカウント値をセット
する。このフラグ「1」は、最大ピーク点が検出された
ことを示すフラグであり、このフラグがクリアされてい
ると、最小ピーク点が検出されたことを示すことになる
When the maximum peak point MAXl is reached Next, suppose that the waveform level reaches the first maximum peak point shown in FIG. The signal INTd is applied, and the CPU 6 starts the interrupt processing shown in FIG. First, the CPU 6 performs step B
Read the count value of the counter 7 with l and judge whether the waveform is the first wave or not (step B2).Since the musical sound waveform has just started and is the first wave, proceed to step B5 and set the flag rlJ. and sets the count value of the counter 7 read in step Bl above in the maximum time memory 14. This flag "1" is a flag indicating that the maximum peak point has been detected, and when this flag is cleared, it indicates that the minimum peak point has been detected.

最 ピーク点MAXZ到゛ 。The highest peak point MAXZ has been reached.

続いて、第9図においてMAX2を示す2番目の最大ピ
ーク点に波形レベルが達したとすると。
Suppose then that the waveform level reaches the second maximum peak point indicating MAX2 in FIG.

最大ピーク検出回路4よりCPU5に再び最大ピーク点
検出の割り込み指令信号lNTaが与えられ、CPU6
は再度第7図の割り込み処理を開始する。まず、CPU
6はステップBlでカウンタ7のカウント値を読み込み
、波形が1波目か否か判断する(ステップB2)が、今
度はもう1波目ではないので、ステップB3に進んで、
フラグがrOJか否か判断する。フラグは上記1番目の
最大ピーク点MAX1でrlJになっているから、周波
数データを求める周期計算処理を行わず、処理をそのま
ま終える。
The maximum peak detection circuit 4 gives the CPU 5 again the maximum peak point detection interrupt command signal lNTa, and the CPU 6
starts the interrupt processing shown in FIG. 7 again. First, the CPU
6 reads the count value of the counter 7 in step Bl and determines whether the waveform is the first wave (step B2), but since it is not the first wave this time, proceed to step B3.
Determine whether the flag is rOJ. Since the flag is rlJ at the first maximum peak point MAX1, the process is finished without performing the cycle calculation process to obtain the frequency data.

こうして、最大ピーク点MAX1とMAX2との間のカ
ウントデータの差の値を1周期とする周波数データが誤
って求められてしまうことがなく、最大時メモリ14に
は最大ピーク点MAXIにおけるタイムカウント値がセ
ットされたままとなる。
In this way, frequency data whose one period is the value of the difference between the count data between the maximum peak points MAX1 and MAX2 is not erroneously obtained, and the time count value at the maximum peak point MAXI is stored in the maximum time memory 14. remains set.

最小ピーク点MIN到達時 次いで、第9図MINに示す最小ピーク点に達すると、
今度は最小ピーク検出回路5よりCPU6に最小ピーク
点検出の割り込み指令信号lNTbが与えられ、CPU
6はfjS8図の割り込み処理を開始する。まず、CP
U6はステップC1でカウンタ7のカラントイ1を読み
込み、波形が1波目か否か判断する(ステップC2)が
、最小ピーク点については1波目であるので、ステップ
C5に進んでフラグをクリアしてrQJとし、最小時メ
モリ15に上記ステップCIで読み出したカウンタ7の
カウント値をセットする。
When the minimum peak point MIN is reached, then when the minimum peak point shown in FIG. 9 MIN is reached,
This time, the minimum peak detection circuit 5 gives the CPU 6 an interrupt command signal lNTb for detecting the minimum peak point, and the CPU
6 starts the interrupt processing shown in the fjS8 diagram. First, C.P.
U6 reads karantoy 1 of the counter 7 in step C1 and determines whether the waveform is the first wave (step C2), but since the minimum peak point is the first wave, it proceeds to step C5 and clears the flag. Then, the count value of the counter 7 read out in step CI is set in the minimum time memory 15.

このステップC2、上記ステップB2の1波目か否かの
判断は、例えばA/Dコンバータ11からの波形レベル
データが一定以上となった時に、1波目フラグA、Bを
立て、最大ピーク点検出の割り込み指令信号lNTaが
与えられた時ステップB2の後ステップB5の前に、こ
の1波目フラグAをクリアし、最小ピーク点検出の割り
込み指令信号lNTbが与えられた時ステップC2の後
の前に、この1波目フラグBをクリアし、ステップB2
、C2で1波目フラグA、Bが立っているか否かを判断
することで達成される。
To determine whether or not this step C2 is the first wave in step B2, for example, when the waveform level data from the A/D converter 11 exceeds a certain level, first wave flags A and B are set and the maximum peak is checked. This first wave flag A is cleared after step B2 and before step B5 when the interrupt command signal lNTa for output is given, and after step C2 when the minimum peak point detection interrupt command signal lNTb is given. Before this, clear this first wave flag B and proceed to step B2.
, C2, by determining whether the first wave flags A and B are set.

最大ピーク点MAX1における周期計算そして、第9図
MAX1に示す最大ピーク点に達すると、最大ピーク検
出回路4よりCPU5に最大ピーク点検出の割り込み指
令信号I N T aが与えられ、CPU5はステップ
Blでカウンタ7のカウント値を読み込み、ステップB
2で波形がもう1波目でないことを判断して、ステップ
B3でフラグが「0」か否か判断する。フラグは、上記
すぐ前の最小ピーク点MINで「0」になっているから
、CPU6はステップB4に進み1周期前の最大ピーク
点MAX1で最大時メモリ14にセットしたタイムカウ
ントデータを読み出して上記ステップBlで読み出した
今回のタイムカウントデータより減算し、この結果デー
タを得る。その結果、上述のステップA5では、上記結
果データを周波数ROM8に与えて、MAXIから次の
MAXlまでの時間長を1周期とする周波数の楽音を放
音するように刊御することになる。上述の処理にひき続
いて、CPU6はフラグ「1」を立て、上記今回のタイ
ムカウントデータ値を最大時メモリ14にセットする(
ステップB5)。
Period calculation at the maximum peak point MAX1 Then, when the maximum peak point shown in FIG. Read the count value of counter 7 in step B.
At step B2, it is determined that the waveform is no longer the first wave, and at step B3, it is determined whether the flag is "0" or not. Since the flag is "0" at the minimum peak point MIN just before the above, the CPU 6 proceeds to step B4 and reads out the time count data set in the maximum time memory 14 at the maximum peak point MAX1 one cycle before. Subtraction is performed from the current time count data read in step Bl to obtain result data. As a result, in step A5 described above, the result data is given to the frequency ROM 8, and the frequency ROM 8 is controlled to emit a musical tone having a frequency whose one period is the time length from MAXI to the next MAX1. Following the above processing, the CPU 6 sets a flag "1" and sets the current time count data value in the maximum time memory 14 (
Step B5).

このように、ステップC5、B3で最小ピーク点のすぐ
次の最大ピーク点が判別され、この最大ピーク点間だけ
の時間が計測され、ステップB4で周期計算が行われて
いく。
In this way, the maximum peak point immediately following the minimum peak point is determined in steps C5 and B3, the time only between these maximum peak points is measured, and period calculation is performed in step B4.

こうして、最大ピーク点がMAXl、MAX2と2つあ
っても、正確にMAXlからMAXIまでの1周期のタ
イムカウント値に基づいて放音周波数が決定され、誤っ
てMAX2からMAXlまでの値に基づいてしまうこと
がない。
In this way, even if there are two maximum peak points, MAXl and MAX2, the sound emission frequency is determined accurately based on the time count value of one cycle from MAXl to MAXI, and is incorrectly determined based on the value from MAX2 to MAXl. There is no need to put it away.

i小ヱ:召シυ距り亙3]已11生肌川1次に、第9図
のMINに示す最小ピーク点に達すると、最小ピーク検
出回路5よりCPU6に最小ピーク点検出の割り込み指
令信号lNTbがかえられ、CPU6はステップCIで
カウンタ7のカウント値を読み込み、ステップC2で波
形がもう1波目でないことを判別して、ステップc3で
フラグがrlJか否か判断する。フラグは、上記最大ピ
ーク点MAX1でrlJになっているから、CPU6は
ステップC4に進み1周期の最小ピーク点MINで最小
時メモリ15にセットしたタイムカウントデータを読み
出して、上記ステップCIで読み出した今回のタイムカ
ウントデータより減算し、この結果データに従って、上
述したステップA5にて周波数ROM8から、MINか
らMINまでを1周期とする周波数の楽音を放音させる
よう周波数情報を読出す、上述したステップC4に続け
て、CPU6はフラグを「0」にクリアし、上記今回の
タイムカウントデータ値を最小時メモリ15にセットす
る(ステップC5)。
Next, when the minimum peak point shown at MIN in FIG. 9 is reached, the minimum peak detection circuit 5 issues an interrupt command to the CPU 6 to detect the minimum peak point. The signal lNTb is changed, the CPU 6 reads the count value of the counter 7 in step CI, determines in step C2 that the waveform is not the first wave, and determines whether the flag is rlJ in step c3. Since the flag is rlJ at the maximum peak point MAX1, the CPU 6 proceeds to step C4, reads out the time count data set in the minimum time memory 15 at the minimum peak point MIN of one cycle, and reads it at step CI. The above-mentioned step of subtracting from the current time count data and reading frequency information from the frequency ROM 8 in the above-mentioned step A5 so as to emit a musical tone with a frequency of 1 cycle from MIN to MIN according to this result data. Following C4, the CPU 6 clears the flag to "0" and sets the current time count data value in the minimum time memory 15 (step C5).

こうして、最小ピーク点MINについても、1周期分の
タイムカウント値を求めて周波数データを出力していく
ことができる。この最小ピーク点MINにおいて、ピー
ク点が複数続く場合でも。
In this way, even for the minimum peak point MIN, the time count value for one cycle can be determined and frequency data can be output. Even if multiple peak points continue at this minimum peak point MIN.

ステップB5.C3で最大ピーク点のすぐ次の最小ピー
ク点が判別され、この最小ピーク点間だけの時間が計測
され、ステップC4で正確な周期計算が行われていく。
Step B5. In step C3, the minimum peak point immediately following the maximum peak point is determined, the time only between these minimum peak points is measured, and accurate cycle calculation is performed in step C4.

このようにステップB4.C4で計算したタイムカウン
トデータに基づいてステップA5で周波数ROM8から
対応する周波数データを出力するようにし、その結果1
周期に2回周波数変更の処理をし、従って入力信号の周
波数変化に即座に応答できるようにした。そのほか、ス
テップA5での処理として前回のタイムカウントデータ
を記憶して、このデータとの平均値をとって出力したり
、前回とのデータ差が大きい場合例えば20%以上の差
があれば前回のものを出力するようにした場合は、周波
数の安定性が図れる。また、最大ピーク点に基づく周期
計算と、最小ピーク点に基づく周期計算とを、楽音波形
の始点が立上り波形であれば、最大ピーク点に基づく周
期計算を行い、楽音波形の始点が立下り波形であれば、
最小ピーク点に基づく周期計算を行うように1選択的に
実行するようにしてもよく、このとき、楽音波形の始点
でA/Dコンバータ11からのデータがプラス値であれ
ば第7図の処理を行い、マイナス値であれば第8図の処
理を行うことになる。
In this way, step B4. Based on the time count data calculated in C4, corresponding frequency data is output from the frequency ROM 8 in step A5, and as a result, 1
The frequency change process is performed twice per cycle, so that it can respond immediately to changes in the frequency of the input signal. In addition, as a process in step A5, the previous time count data is memorized and the average value with this data is taken and output, or if the data difference from the previous time is large, for example, 20% or more, the previous time count data is If it is configured to output something, frequency stability can be achieved. In addition, period calculations based on the maximum peak point and period calculations based on the minimum peak point are performed.If the starting point of the musical sound waveform is a rising waveform, periodic calculations are performed based on the maximum peak point, and if the starting point of the musical sound waveform is a falling waveform. If,
It may be possible to selectively perform cycle calculation based on the minimum peak point, and in this case, if the data from the A/D converter 11 is a positive value at the starting point of the musical waveform, the process shown in FIG. 7 is performed. If the value is negative, the process shown in FIG. 8 is performed.

このように1本実施例にあっては、CPU6が第6図に
示したステップA5の処理として適当なものを実行でき
、しかもこの処理の変更はCPU6の外部回路の変更を
行うことなく、単にCPU6のプログラムの変更で行え
るために汎用性が増し、インテリジェント化に適してい
る。
In this way, in this embodiment, the CPU 6 can execute an appropriate process as the process of step A5 shown in FIG. This can be done by changing the program of the CPU 6, increasing versatility and making it suitable for intelligent technology.

なお、上記実施例においては、本発明を電子ギターに適
用したものであったが、必ずしもそれに限られるもので
なく、マイクロホン等から入力される音声信号あるいは
電気的振動信号からピッチ抽出を行って、原音声信号と
は別の音響信号を。
In the above embodiment, the present invention is applied to an electronic guitar, but the present invention is not necessarily limited to this, and the present invention can be applied by extracting a pitch from an audio signal or an electrical vibration signal input from a microphone, etc. An acoustic signal different from the original audio signal.

対応するピッチもしくは音階周波数にて発生するシステ
ムであれば、どのような形態のものであってもよい、具
体的には、鍵盤を有するもの例えば電子ピアノ、管楽器
を電子化したもの1弦楽器、例えばバイオリンや琴など
を電子化したものにも同様に適用できる。
Any type of system may be used as long as it generates sound at a corresponding pitch or scale frequency.Specifically, a system with a keyboard, such as an electronic piano, an electronic wind instrument, or a single-string instrument, e.g. The same applies to electronic instruments such as violins and kotos.

[発明の効果] この発明は以上詳細に説明したように、自然音の信号の
周波数を検出して、その周波数に対応する楽音をデジタ
ルデータ処理により人工音を作成して放音する電子楽器
において、連続する最大ピーク点のうち、最小ピーク点
の次の最大ピーク点を抽出し、また連続する最小ピーク
点のうち。
[Effects of the Invention] As explained in detail above, the present invention provides an electronic musical instrument that detects the frequency of a natural sound signal and generates an artificial sound by digital data processing to generate a musical tone corresponding to the frequency. , among the consecutive maximum peak points, extract the maximum peak point next to the minimum peak point, and also among the consecutive minimum peak points.

最大ピーク点の次の最小ピーク点を抽出し、この抽出し
た最大ピーク点間の時間と最小ピーク点間の時間とを夫
々計測してこの得られる時間を適宜処理して周波数デー
タを得るようにしたから、より正確にかつスピーディに
周波数データを得ることができ、しかも汎用性をもった
回路構成をとり得るという効果を奏する。
Extract the minimum peak point next to the maximum peak point, measure the time between the extracted maximum peak points and the time between the minimum peak points, and process the obtained time appropriately to obtain frequency data. Therefore, it is possible to obtain frequency data more accurately and speedily, and it is possible to have a versatile circuit configuration.

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

第1図は、電子楽器の入力制御装置の全体回路図、第2
図及び第3図は最大ピーク検出回路4及び最小ピーク検
出回路5の回路図、第4図は第2図及び第3図の各ブロ
ックの信号波形を示す図、第5図はローパスフィルタ3
のカットオフ周波数を示す図、第6図はCPU6のメイ
ン処理のフローチャートの図、第7図及び第8図は最大
ピーク点MAX1間及び最小ピーク点MIN間のタイム
カウント値を求める処理のフローチャートの図、第9図
は入力される自然音の波形の一例とその場合のフラグ値
とを示す図である。 l・・・・・・入力端子、4・・・・・・最大ピーク検
出回路。 5・・・・・・最小ピーク検出回路、6・・・・・・C
PU。 7・・・・・・カウンタ、8・・・・・・周波数ROM
、9・・・・・・音源回路、10・・・・・・サウンド
システム、14・・・・・・最大時メモリ、15・・・
・・・最小時メモリ。 特許出願人  カシオ計算機株式会社 第2図 遊水ビーり1央を回じト 染11\ヒ・−グ隷工回!6 第4図 しへ1L 第6図 メイしフロー 第7図 最大ヒ1−グM!蕉MA′1.先灸を 叶つ等II+)’:x〜ノナタ&yl 第8図
Figure 1 is an overall circuit diagram of an input control device for an electronic musical instrument;
3 and 3 are circuit diagrams of the maximum peak detection circuit 4 and minimum peak detection circuit 5, FIG. 4 is a diagram showing signal waveforms of each block in FIGS. 2 and 3, and FIG.
6 is a flowchart of the main processing of the CPU 6, and FIGS. 7 and 8 are flowcharts of the process of calculating the time count value between the maximum peak point MAX1 and the minimum peak point MIN. FIG. 9 is a diagram showing an example of the waveform of an input natural sound and the flag value in that case. l...Input terminal, 4...Maximum peak detection circuit. 5...Minimum peak detection circuit, 6...C
P.U. 7... Counter, 8... Frequency ROM
, 9...Sound source circuit, 10...Sound system, 14...Maximum memory, 15...
...minimum memory. Patent applicant: Casio Computer Co., Ltd. Figure 2. 6 Figure 4 Shihe 1L Figure 6 Measuring Flow Figure 7 Maximum Hi 1-G M! Shō MA'1. Achieving moxibustion, etc. II+)': x ~ Nonata & yl Figure 8

Claims (1)

【特許請求の範囲】 音声又は楽器の信号の波形の最大ピーク点を検出する最
大ピーク検出手段と、 上記音声又は信号の波形の最小ピーク点を検出する最小
ピーク検出手段と、 上記最大ピーク点のうち、最小ピーク点の次の最大ピー
ク点と、上記最小ピーク点のうち、最大ピーク点の次の
最小ピーク点とを判別する判別手段と、 この判別手段で判別された最大ピーク点間の時間と最小
ピーク点間の時間とを夫々計測する時間計測手段と、 この時間計測手段で計測された各ピーク点間の時間に応
じて適宜処理を行って周波数データを出力する出力手段
と を有することを特徴とする電子楽器の入力制御装置。
[Claims] Maximum peak detection means for detecting the maximum peak point of the waveform of a voice or musical instrument signal; Minimum peak detection means for detecting the minimum peak point of the waveform of the voice or signal; A discriminating means for discriminating between the maximum peak point next to the minimum peak point and the minimum peak point next to the maximum peak point among the minimum peak points, and the time between the maximum peak points determined by this discriminating means. and a time measuring means for measuring the time between each peak point and the minimum peak point, and an output means for performing appropriate processing and outputting frequency data according to the time between each peak point measured by the time measuring means. An input control device for an electronic musical instrument.
JP61253487A 1986-10-24 1986-10-24 Input controller for electronic musical instrument Pending JPS63106795A (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP61253487A JPS63106795A (en) 1986-10-24 1986-10-24 Input controller for electronic musical instrument
DE19873784830 DE3784830T2 (en) 1986-10-24 1987-10-23 Device for determining the pitch of an essentially periodic input signal.
DE19873752185 DE3752185T2 (en) 1986-10-24 1987-10-23 Device for generating a musical tone signal according to an input waveform signal
EP19870115594 EP0264955B1 (en) 1986-10-24 1987-10-23 Apparatus for determining the pitch of a substantially periodic input signal
EP92105224A EP0493374B1 (en) 1986-10-24 1987-10-23 Apparatus for generating a musical tone signal in accordance with an input waveform signal
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
HK98104364A HK1005348A1 (en) 1986-10-24 1998-05-20 Apparatus for generating a musical tone signal in accordance with an input waveform signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61253487A JPS63106795A (en) 1986-10-24 1986-10-24 Input controller for electronic musical instrument

Publications (1)

Publication Number Publication Date
JPS63106795A true JPS63106795A (en) 1988-05-11

Family

ID=17252066

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61253487A Pending JPS63106795A (en) 1986-10-24 1986-10-24 Input controller for electronic musical instrument

Country Status (1)

Country Link
JP (1) JPS63106795A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6126098A (en) * 1984-07-16 1986-02-05 セイコーインスツルメンツ株式会社 Scale detector

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6126098A (en) * 1984-07-16 1986-02-05 セイコーインスツルメンツ株式会社 Scale detector

Similar Documents

Publication Publication Date Title
JPH09127937A (en) Musical sound parameter control device
KR100189797B1 (en) Method for recognition of the start of a note in the case or percussion or plucked musical instrument
JPS63106795A (en) Input controller for electronic musical instrument
JP2555551B2 (en) Input waveform signal controller
JPS63136088A (en) Input controller for electronic musical instrument
US5144876A (en) Electronic musical instrument capable of performing a tone control responsive to an after-touch operation
JP2532424B2 (en) Waveform signal input controller
JP2792022B2 (en) Electronic musical instrument input control device
JP2605668B2 (en) Electronic string instrument
JP3460408B2 (en) Music control device
JP2508035B2 (en) Input waveform signal controller
JP3092197B2 (en) Pitch extraction device
JP2765578B2 (en) Waveform signal controller
JP2555553B2 (en) Input waveform signal controller
JP2000181471A (en) Karaoke sing-along grading apparatus
JP2679042B2 (en) Input waveform signal controller
JP2516070Y2 (en) Electronic musical instrument input control device
JP3028041B2 (en) Music element extraction device
JP2614532B2 (en) Music data correction device
JPS6325697A (en) Electronic musical instrument
JP2605667B2 (en) Electronic musical instrument input control device
JPH0419590Y2 (en)
JPH0782320B2 (en) Music control device
JPH0648556Y2 (en) Input control device for electronic musical instruments
JP3635749B2 (en) Music generator