JPS63167397A - Input controller for electronic musical instrument - Google Patents
Input controller for electronic musical instrumentInfo
- Publication number
- JPS63167397A JPS63167397A JP61314157A JP31415786A JPS63167397A JP S63167397 A JPS63167397 A JP S63167397A JP 61314157 A JP61314157 A JP 61314157A JP 31415786 A JP31415786 A JP 31415786A JP S63167397 A JPS63167397 A JP S63167397A
- Authority
- JP
- Japan
- Prior art keywords
- register
- pitch
- point
- cpu
- processing
- 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
Links
- 238000001514 detection method Methods 0.000 claims description 20
- 239000011295 pitch Substances 0.000 description 46
- 238000000034 method Methods 0.000 description 30
- 238000000605 extraction Methods 0.000 description 9
- 238000005259 measurement Methods 0.000 description 7
- 230000005236 sound signal Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 241001547070 Eriodes Species 0.000 description 1
- 238000005311 autocorrelation function Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000013256 coordination polymer Substances 0.000 description 1
- 238000013016 damping Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 238000005111 flow chemistry technique Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000004043 responsiveness Effects 0.000 description 1
Landscapes
- Electrophonic Musical Instruments (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[発明の技術分野]
この発明は電子ギターなどの電子楽器の入力制御装置に
関する。DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to an input control device for an electronic musical instrument such as an electronic guitar.
[発明の背景1
従来より、自然楽器の@奏操作によって発生する波形信
号から基本ピッチ周波数(以下単にピッチという)を抽
出し、電子回路で構成された音源装置を制御して1人工
的に楽音等の音響を得るようにしたものが種々開発され
ている。[Background of the Invention 1] Conventionally, a fundamental pitch frequency (hereinafter simply referred to as pitch) is extracted from a waveform signal generated by the playing operation of a natural musical instrument, and a sound source device composed of an electronic circuit is controlled to generate an artificial musical tone. A variety of devices have been developed to produce similar sounds.
この種の電子楽器では、入力波形信号のピッチを抽出し
てから音源装置に対し当該ピッチに対応する音階音を発
生するよう指示するのが一般的である。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.
ところで、この種の装置にあっては、音源袋ごに対して
頻繁にピッチを変更する音高変更指令を送出しても、音
源装置側はそれに追従できない。By the way, in this type of device, even if a pitch change command for frequently changing the pitch is sent to each sound source bag, the sound source device cannot follow the command.
特に、半音以下の音高を表わすピッチ情報に基づき発生
音の音高を決定するような場合は、音源装置の一回の音
高変更指令に対応して処理する処理時間は長くなり、前
回の指令に対する処理が完了していないにもかかわらず
、新たな指令が到来してしまうといったことになってい
た。In particular, when determining the pitch of a generated sound based on pitch information representing a pitch of a semitone or less, the processing time required to process a single pitch change command from the sound source device becomes long, and A new command would arrive even though the processing for the command had not been completed.
そこで、この種の問題が生じないように、音高を指定す
るピッチ情報の分解能を粗くして(極端な場合は、半音
を最小単位とする)処理を行うことが考えられていたが
、このような処理形態では、微妙な音高変化やビブラー
トなどが表現できないという問題がある。Therefore, in order to prevent this kind of problem from occurring, it has been considered to perform processing by coarsening the resolution of the pitch information that specifies the pitch (in extreme cases, the minimum unit is a semitone). This type of processing has the problem of not being able to express subtle changes in pitch or vibrato.
[発明の目的] この発明は上記事情に鑑みてなされたもので。[Purpose of the invention] This invention was made in view of the above circumstances.
音源装置に負担をかけないで、ピッチの分解能を上げて
音楽的に良好な被制御側の演奏形態をとることができる
ようにした電子楽器の入力装置を提供することを目的と
する。To provide an input device for an electronic musical instrument that can improve pitch resolution and provide a musically favorable performance form on a controlled side without putting a burden on a sound source device.
[発明の要点]
即ち、この発明は1発音開始指令または音高変更指令を
一度送出したら、計時手段にて所定時間を越えるまで、
新たな音高変更指令を送出しないようにすることにより
、各指令間の時間間隔を一定時間以上として、音源装置
側で各指令に従った処理動作が行えるようにしたことを
その要点とする。[Summary of the Invention] That is, in the present invention, once a sound generation start command or a pitch change command is sent, the clocking means waits until a predetermined time is exceeded.
The main point is that by not sending out new pitch change commands, the time interval between each command is set to be longer than a certain period of time, so that processing operations according to each command can be performed on the sound source device side.
従って、音源装置側は、音高変更指令が少なくとも所定
時間を隔てて送られるてくるので、無理なく処理が行え
、発生楽音のピッチの分解能は、処理速度に無関係に精
度を上げる(即ち細かくする)ことが回部となる。Therefore, since pitch change commands are sent to the sound source device at least at predetermined time intervals, processing can be performed without difficulty, and the resolution of the pitch of the generated musical tone can be improved (i.e., finer) regardless of the processing speed. ) becomes the turning point.
[実施例]
以下1本発明の一実施例について図面を参照して詳述す
る。[Example] Hereinafter, an example of the present invention will be described in detail with reference to the drawings.
回路構成
第1図は、同実施例の回路構成を示しており、本実施例
は、電子ギターに本発明を適用したものであり、6つの
入力端子lの信号は、電子ギターボディ上に張設された
6つの弦の夫々に設けられた、弦の振動を電気信号に変
換するピックアップからの信号である。Circuit configuration Figure 1 shows the circuit configuration of the same embodiment. In this embodiment, the present invention is applied to an electronic guitar, and the signals of the six input terminals l are spread over the electronic guitar body. These are signals from pickups installed on each of the six strings that convert the vibrations of the strings into electrical signals.
入力端子l・・・・・・からの波形信号は・ ピッチ抽
出回路P、−P6(図では第1弦のP、についてのみそ
の内部構成を示している。)内部の夫々のアンプ2・・
・・・・で増幅され、ローパスフィルタ(LPF)3・
・・・−・で高周波成分がカットされて基本波形が抽出
され、最大ピーク検出回路(MAX)4・・・・・・、
最小ピーク検出回路(MIN)5・旧・・及びゼロクロ
ス点検出回路(Zero)6・旧・・に与えられる。ロ
ーパスフィルタ3・・・・・・は、各弦の開放弦の振動
音周波数fの4倍の4fにカットオフ周波数が設定され
ている。これは、各弦の出力音の周波数が2オクタ一ブ
以内であることに基づくものである。最大ピーク検出回
路4・・・・・・では、波形信号の最大ピーク点が検出
され、その検出パルス信号の立上りで後段に接続されて
いるフリップフロップ14・・・・・・のQ出力がHi
ghレベルとなり、このフリップフロップ14・・・・
・・の出力とゼロクロス点検出回路6・・・・・・のイ
ンバータ30・・・・・・の友転出力とのアンド出力が
アンドゲート24・・・・・・を介して割り込み指令信
号lNTa+〜lNTa6としてCPU100に与えら
れ、同様に最小ピーク検出回路5・・・・・・でも、波
形信号の最小ピーク点が検出され、その検出パルス信号
の立上りで後段に接続されているフリップフロップ15
・・・・・・のQ出力がHighレベルとなす、このフ
リップフロップ15・・・・・・の出力とゼロクロス点
検出回路6・・・・・・の出力とのアンド出力がアンド
ゲート25・・・・・・を介して割り込み指令信号lN
Tb+〜lNTb6としてCPU100に与えられる。The waveform signals from the input terminal l... are sent to the respective amplifiers 2 in the pitch extraction circuits P and -P6 (the figure shows the internal configuration only for the first string P)...
It is amplified by ... and low pass filter (LPF) 3.
The high frequency component is cut off and the basic waveform is extracted by ・・・-・, and the maximum peak detection circuit (MAX) 4...
It is given to the minimum peak detection circuit (MIN) 5 (old) and the zero cross point detection circuit (Zero) 6 (old). The cutoff frequency of the low-pass filter 3 is set to 4f, which is four times the vibration sound frequency f of the open string of each string. This is based on the fact that the frequency of the output sound of each string is within two octaves. The maximum peak detection circuit 4... detects the maximum peak point of the waveform 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...
The AND output of the output of the zero-crossing point detection circuit 6 and the output of the inverter 30 of the zero-crossing point detection circuit 6 is sent to the interrupt command signal lNTa+ via the AND gate 24. The minimum peak point of the waveform signal is similarly detected by the minimum peak detection circuit 5, and at the rising edge of the detection pulse signal, the minimum peak point of the waveform signal is applied to the CPU 100 as ~lNTa6.
The Q output of . . . becomes High level, and the AND output of the output of this flip-flop 15 . Interrupt command signal lN via...
It is given to the CPU 100 as Tb+ to lNTb6.
即ち、最大ピーク点が検出されてフリップフロップ14
がHi ghレベルになっているときに、波形が正から
負へ横切ったときつまりゼロクロス点検出時に割り込み
指令信号lNTa1〜lNTa6がCPU100に与え
られ、逆に最小ピーク点が検出されてクリップロップ1
5がHighレベルになっているときに、波形が負から
正に変化したときつまりゼロクロス点検出時に割り込み
指令信号lNTb+〜lNTb6がCPU100に入力
する。That is, the maximum peak point is detected and the flip-flop 14
is at High level, when the waveform crosses from positive to negative, that is, when a zero cross point is detected, interrupt command signals lNTa1 to lNTa6 are given to the CPU 100, and conversely, when the minimum peak point is detected, the clip drop 1
5 is at a High level, when the waveform changes from negative to positive, that is, when a zero cross point is detected, interrupt command signals lNTb+ to lNTb6 are input to the CPU 100.
そして、CPU100は、これらの割り込み指令信号を
受付けた直後に、対応するフリップフロー2プ14・・
・・・・、15・・・・・・に対しクリア信号CLal
〜CL6b、CLb+−CLbbを発生してリセットす
る。従って、次に最大ピーク点あるいは最小ピーク点を
検出するまで何度ゼロクロス点を通過しても対応するフ
リップフロップ14・・・・・・、15・・・・・・は
リセット状態であるので、CPU100には割り込みが
かからないことになる。Immediately after receiving these interrupt command signals, the CPU 100 executes the corresponding flip flow 2 steps 14...
Clear signal CLal for ..., 15...
~CL6b, CLb+-CLbb are generated and reset. Therefore, no matter how many times the zero crossing point is passed until the next maximum peak point or minimum peak point is detected, the corresponding flip-flops 14, 15, . . . are in the reset state. This means that the CPU 100 will not be interrupted.
なお、第2図は、ピッチ抽出回路PI内の各部の信号波
形のタイムチャートを表わしており、図の■は、ローパ
スフィルタ3の出力、■は最大ピーク検出回路4の出力
、■は最小ピーク検出回路5の出力、■はゼロクロス点
検出回路6の出力である。In addition, FIG. 2 shows a time chart of signal waveforms at each part in the pitch extraction circuit PI. The output of the detection circuit 5 is the output of the zero-crossing point detection circuit 6.
そして、CPU100では、当該弦の振動出力により割
り込み指令信号XNTa1−INTa6もしくはlNT
b、〜lNTb6が与えられて、夫々の時間間隔の少な
くとも一方の時間間隔に従った音階音を発生するように
楽音指示を音源回路9に対し行う、尚、発音開始時にお
いては開放弦の音階音を発生開始してピッチ抽出の後で
正しい周波数に修正してもよい、この発音開始時の動作
については後述する。Then, in the CPU 100, an interrupt command signal XNTa1-INTa6 or lNT is generated based on the vibration output of the string.
b, ~lNTb6 are given, and a musical tone instruction is given to the sound source circuit 9 so as to generate a scale tone according to at least one of the respective time intervals. Note that at the start of sound generation, an open string tone is generated. The sound generation may be started and the frequency may be corrected after pitch extraction.The operation at the start of sound generation will be described later.
そして、上記時間間隔は、後述するようにカウンタ7と
、ワークメモリ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 the minimum peak point.
そして、発音開始後は、順次求まる時間間隔データに従
って、発生中の楽音の周波数を可変制御してゆく、なお
、音高変更指令は、タイマ8にて所定時間つまり音源回
路9でひとつの処理が完了する時間に相対する時間を計
測後、音源回路9へ与えられる。即ち、タイマ8はCP
U100から制御信号が供給されて、所定時間を計測後
、割り込み指令信号lNTcをCPU100へ与え、C
PU100はこの割り込み指令信号INTCにより所定
の割込処理を行う、その詳細は後述する。After the start of sound generation, the frequency of the musical tone being generated is variably controlled according to the time interval data determined sequentially.The pitch change command is issued by the timer 8 for a predetermined time, that is, by the sound source circuit 9. After measuring the time relative to the completion time, it is applied to the sound source circuit 9. That is, timer 8 is CP
A control signal is supplied from U100, and after measuring a predetermined time, an interrupt command signal lNTc is given to CPU100, and C
The PU 100 performs a predetermined interrupt process based on the interrupt command signal INTC, the details of which will be described later.
その結果音源回路9からは対応する周波数をもつ楽音信
号が生成され、サウンドシステムlOより放音出力され
る。As a result, a musical tone signal having a corresponding frequency is generated from the sound source circuit 9, and the sound signal is emitted from the sound system IO.
また、上記ローパスフィルタ3・・・・・・からの楽音
信号は、A/Dコンバータ11・・・・・・に与えられ
、その波形レベルに応じたデジタルデータに変換される
。Further, the musical tone signals from the low-pass filters 3 are given to the A/D converters 11 and converted into digital data according to their waveform levels.
そして、このA/Dコンバータ11・・・・・・の出力
はラッチ12にラッチされる。このラッチ12・・・・
・・に対するラッチ信号は、上記フリッププロップ14
・・・・・・、15・・・・・・の出力がオアゲー)1
3・・・・・・を介することで生成され、最大ピーク点
もしくは最小ピーク点を通過する都度ラッチ12・・・
・・・にはそのときの波形のレベルを示す信号が記憶さ
れる。また、このオアゲート13・・・・・・からのラ
ッチ信号L+=LbはCPU100にも与えられる。The outputs of the A/D converters 11 . . . are latched in the latch 12. This latch 12...
The latch signal for... is the flip-flop 14
......, 15...... output is or game) 1
3..., and each time the maximum peak point or minimum peak point is passed, the latch 12...
... stores a signal indicating the level of the waveform at that time. Further, the latch signal L+=Lb from the OR gates 13 . . . is also given to the CPU 100.
そして、ラッチ12・・・・・・出力はCPU100へ
与えられ、発音開始、停止、更には出力音の放音レベル
(音量)等の制御がこのデータに従ってなされる。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 (volume) of the output sound are performed in accordance with this data.
即ち、CPU100では、A/Dコンバータ11・・・
・・・より与えられる波形レベルを示すデータの絶対値
が、予め決められた一定値以上になった時には、楽音の
発音を開始させ、このデータが一定値以下になった時に
は、消音指示をして放音を終了させる。その動作の詳細
は後述するとおりである。That is, in the CPU 100, the A/D converter 11...
When the absolute value of the data indicating the waveform level given by ... exceeds a predetermined certain value, it starts producing musical tones, and when this data falls below a certain value, it issues a mute instruction. to end the sound emission. The details of the operation will be described later.
なお、第1図には、A/Dコンバータ11>(、ピッチ
抽出回路PI−P6に夫々独立に設けであるが、−個の
A/Dコンバータを時分割的に使用することも勿論可漁
である。Although the A/D converters 11>( and pitch extracting circuits PI-P6 are provided independently in FIG. 1), it is of course possible to use - A/D converters in a time-sharing manner. It is.
そして、音源回路9は時分割処理により少なくとも6チ
ヤンネルの楽音生成系が形成されている。The tone generator circuit 9 has at least six channels of musical tone generation system formed by time-division processing.
七
次に本実施例の動作について説明する。第3図はCPU
100の割り込み指令信号lNTa、INTb に対す
る割り込みルーチンのフローであり、第4図はCPU1
00の割り込み指令信号工NTcに対する−鳴り込みル
ーチンのフローであり、第5図はメインフローである。Seventh, the operation of this embodiment will be explained. Figure 3 shows the CPU
4 is a flowchart of an interrupt routine for interrupt command signals lNTa and INTb of CPU1
This is the flow of the ringing routine for the interrupt command signal engineer NTc of 00, and FIG. 5 is the main flow.
なお、この第3図乃至第5図はひとつの弦についての処
理しか示してないが、全ての弦の処理は全く同じなので
、CPU100が夫々の弦についての処理を時分割的に
実行すると考えれば良い。Although FIGS. 3 to 5 only show the processing for one string, the processing for all strings is exactly the same, so if we consider that the CPU 100 executes the processing for each string in a time-sharing manner, good.
さて、CPU100の具体的な動作の説明の前に、ワー
クメモリ101の中の主なレジスタについて説明する。Now, before explaining the specific operation of the CPU 100, the main registers in the work memory 101 will be explained.
5TEPレジスタは、0.l、2.3の4段階とり、弦
振動がなされる(第6図(a)もしくは第7図(a)参
照)につれて、第6図(b)あるいは第7図(b)に示
すようにその内容は変化する。この5TEPレジスタが
Oのときは、ノートオフ(消音)状態を表している。The 5TEP register is 0. 1, 2.3, and as the string vibrates (see Figure 6(a) or Figure 7(a)), as shown in Figure 6(b) or Figure 7(b). Its contents change. When this 5TEP register is O, it represents a note-off (mute) state.
5IGNレジスタは1周期計測のためのゼロクロス点が
最大ピーク(’MAX)点の次のゼロクロス点なのか、
最小ピーク(MIN)点の次のゼロクロス点なのかを示
すもので、lのとき前者、2のとき後者が入る。The 5IGN register determines whether the zero-crossing point for one cycle measurement is the next zero-crossing point after the maximum peak ('MAX) point.
This indicates whether it is the next zero-crossing point after the minimum peak (MIN) point; the former is entered when it is 1, and the latter is entered when it is 2.
REVER5Eレジスタは、上記5IGNレジスタで表
わされたゼロクロス点と反対側のピーク点経過後のゼロ
クロス点の到来による割り込み処理がなされたか否かを
チェックするデータを記憶するレジスタである。The REVER5E 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 opposite to the zero-crossing point represented by the 5IGN register.
Tレジスタは、入力波形の周期を計測するための特定点
のカウンタ7の値を記憶する。なお、カウンタ7は所定
のクロックでカウントするフリーランニング動作をして
いる。The T register stores the value of the counter 7 at a specific point for measuring the period of the input waveform. Note that the counter 7 performs a free running operation of counting at a predetermined clock.
AMP (i)レジスタは、D/Aコンバータ11から
ラッチ12にう7チされた最大もしくは最小ピーク値(
実際には絶対値)を記憶するレジスタで、AMP (1
)が最大ピーク用、AMP(2)が最小ピーク用のレジ
スタである。The AMP (i) register stores the maximum or minimum peak value (
Actually, it is a register that stores the absolute value), and is a register that stores AMP (1
) is the register for the maximum peak, and AMP(2) is the register for the minimum peak.
PERIODレジスタは、計測した周期をあられすデー
タが入力され、このレジスタの内容を基に、CPU10
0は、ピッチ抽出を行い最終的に音源回路9に対し周波
数制御を行うものである。Data representing the measured period is input to the PERIOD register, and based on the contents of this register, the CPU 10
0 performs pitch extraction and finally performs frequency control on the sound source circuit 9.
FLAGレジスタは、タイマ8で所定時間を計測したら
0となり、それ以前はlとなる制御用のレジスタである
。The FLAG register is a control register that becomes 0 when the timer 8 measures a predetermined time, and becomes 1 before that time.
また、P、P’レジスタは抽出されたピッチをあられす
周波数データ(半音以下の周波数レンジの値も表現して
いる)を記憶するピッチ記憶用のレジスタである。Further, the P and P' registers are pitch storage registers that store frequency data (also representing values in the frequency range of semitones or less) that represent the extracted pitch.
更に、後述するように本実施例は各種判断のために、3
つの定数(スレッシュホールドレベル)がCPU100
内に設定されている。Furthermore, as will be described later, this embodiment uses three methods for various judgments.
One constant (threshold level) is CPU100
is set within.
先ず最初のものは0NLEVIであり、第6図(a)、
第7図(a)に示すように、ノートオフの状態であり、
この0NLEVIの値よりも大きなピーク値が検出され
たとき、弦がピッキング等されたとして、周期測定のた
めの動作をCPUl00は実行開始する。The first one is 0NLEVI, Fig. 6(a),
As shown in FIG. 7(a), it is in a note-off state,
When a peak value larger than the value of 0NLEVI is detected, the CPU 100 assumes that a string has been picked, etc., and starts executing an operation for period measurement.
0NLEVIIは、ノートオン(発音中)状態であって
、前回の検出レベルと今回の検出レベルとの差がこの値
以上あれば、トレモロ奏法等による操作があったとして
、再度発音開始(リラティブオン、relative
on )処理を行うためのものである。0NLEVII is in the note-on state (sounding), and if the difference between the previous detection level and the current detection level is greater than this value, it is assumed that there has been an operation such as tremolo playing, and the sound starts again (relative on, relative
on ) processing.
0FFLEVは、第8図(a) に示してあルヨうに、
ノートオン(発音中)状態であって、この値以下のピー
ク値が検知されると、ノートオフ(消音)処理をする。0FFLEV is as shown in Figure 8(a).
If a peak value less than this value is detected in the note-on (sounding) state, note-off (silence) processing is performed.
さて、以上の説明から、以下に述べる割り込みルーチン
、メインルーチンの動作の理解は容易となろう。Now, 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
Ta 、 I N ThのCPU100への到来によ
って、第3図の割り込み処理を行う。Now, the zero cross point detection interrupt command signal I N which is the output of the AND gate 24 or the AND gate 25
When Ta and I N Th arrive at the CPU 100, the interrupt processing shown in FIG. 3 is performed.
即ち、割り込み指令信号I N T aの入力時には、
先ずステップP1の処理をし、CPU100内のaレジ
スタを1にし2割り込み指令信号lNTbの入力時には
、先ずステップP2の処理によって上記aレジスタに2
をセットする。That is, when the interrupt command signal I N T a is input,
First, the process of step P1 is performed, and the a register in the CPU 100 is set to 1. When the 2nd interrupt command signal lNTb is input, the a 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 subsequent step P4, the peak level data of the A/D converter 11 is read from the latch 12 and set in the b register in the CPU 100.
そして、ステップP5において、7リツプフロー、プ1
4もしくはフリッププロップ15をクリアする。Then, in step P5, 7 lip flows, 1 lip flow,
Clear 4 or Flip Plop 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.
また、割り込み指令信号INTCの到来時には、第4図
に示す割り込み処理を行う、即ちステップ51にて、F
LAGレジスタの内容を0とする。そしてこの割り込み
処理を終了する。Further, when the interrupt command signal INTC arrives, the interrupt processing shown in FIG. 4 is performed, that is, in step 51, F
Set the contents of the LAG register to 0. Then, this interrupt processing ends.
メインルーチン(第5図)では、ステップQ1にて、上
述したような割り込み処理によってワークメモリ101
にa′、b′、t′の内容(上記a、b、tと同じで前
回記録されたということでa′、b′、t′と示す、)
が書込まれているか否かジャッジし、何ら割り込み処理
はなされていないときはNoの判断をして、このステッ
プQ+を繰返し実行する。In the main routine (FIG. 5), in step Q1, 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 Q+ is repeatedly executed.
そして、上記ステップQ+ でYESの判断をすれば、
次のステップQ2に進んでその内容a′、b′、b′を
読出す0次にステップQ3において、前記AMP(a’
)レジスタに記憶しである、つまり同じ種類(最大/最
小)のピーク点のピーク値をCPU100内のCレジス
タに読出し、今回抽出したピーク値b′を上記AMP(
a′)レジスタに設定する。Then, if you make a YES decision in step Q+ above,
Proceed to the next step Q2 and read out the contents a', b', b'. Next, in step Q3, the AMP(a'
) register, that is, the peak value of the same type (maximum/minimum) peak point is read out to the C register in the CPU 100, and the peak value b' extracted this time is stored in the above AMP (
a') Set in register.
さて、次にステップQ4〜Q6において、5TEPレジ
スタの内容が夫々3,2.1であるか否かジャッジする
。いま、最初の状態であるとしたら、5TEPレジスタ
は0なので、ステップQs 、Qs 、Q6ともNOの
判断がされる。そして、次にステップQ7で、今回検知
したピーク値b′が0NLEVIより大か否かジャッジ
する。Next, in steps Q4 to Q6, it is determined whether the contents of the 5TEP register are 3 and 2.1, respectively. If this is the first state, the 5TEP register is 0, so the determination of NO is made in steps Qs, Qs, and Q6. Then, in step Q7, it is judged whether the peak value b' detected this time is greater than 0NLEVI.
もし、上記ピーク値b′が0NLEVIより小であれば
、まだ発音開始の処理をしないのでステップQ+へもど
る。仮に、第6図(a)、第7図(a)のように0NL
EVIより大きな入力が得られたとすると、ステップQ
1の判断はYESとなり、ステップQ8へ進む。If the peak value b' is smaller than 0NLEVI, the process returns to step Q+ since the process of starting sound generation is not yet performed. Suppose that 0NL as shown in Figures 6(a) and 7(a)
Assuming that an input greater than EVI is obtained, step Q
The determination in step 1 is YES, and the process advances to step Q8.
そしてステップQBで5TEPレジスタに1をセットし
、次にステップQ9でREVER3EレジスタにOをセ
ットし、続けてステップQ r oで、a’(つまり最
大ピーク点直後のゼロクロス点のとき1、最小ピーク点
直後のゼロクロス点のとき2)の値を5IGNレジスタ
に入力する。Then, in step QB, 1 is set in the 5TEP register, then in step Q9, O is set in the REVER3E register, and then in step Q r o, a' (that is, 1 at the zero cross point immediately after the maximum peak point, 1 at the minimum peak point, At the zero cross point immediately after the point, input the value of 2) to the 5IGN register.
そして、ステップQ++にて、t′の値をTレジスタに
セットする。その結果、a′の内容は5IGNレジスタ
に(いま5IGNはlとなる゛(第1O図(a)、第1
1図(a)のとき))、b’の内容はAMPレジスタに
、t′の内容はTレジスタにセットされたことになる。Then, in step Q++, the value of t' is set in the T register. As a result, the contents of a' are stored in the 5IGN register (now 5IGN becomes l) (Figure 1O(a),
1)), the contents of b' are set in the AMP register, and the contents of t' are set in the T register.
そして再びステップ9遍にもどる。Then return to step 9 again.
さて1以上の説明で第6図(a)、第7図(a)のゼロ
クロス点Zero1の直後のメインルーチンの処理を完
了することになる。Now, with the above explanation, the processing of the main routine immediately after the zero cross point Zero1 in FIGS. 6(a) and 7(a) will be completed.
さて、次に、ゼロクロス点Zero2の直後のメインル
ーチンでの処理を説明する。そのときは上記ステップQ
+−+Q2→Q3→Q4→Q5→Q6を実行し、このス
テップQ6にてYESの判断がされ、次にステップQ1
2にゆく。Now, next, the processing in the main routine immediately after the zero cross point Zero2 will be explained. In that case, step Q above
+-+Q2→Q3→Q4→Q5→Q6 is executed, YES is determined in this step Q6, and then step Q1
Go to 2.
いま、第6図(a)、第7図(L)のように波形が入力
時に正方向に変化したときは、5IGNレジスタはlで
あり、今回負方向のピークを経過してきているからaル
ジスタは2なので、NOの判断をする。尚、もし同じ極
性のピーク値直後のゼロクロス点到来時には、このステ
ップQ+2でYESの判断をして何ら続けて動作せずに
ステップQ+ へもどる。Now, when the waveform changes in the positive direction at the time of input as shown in Fig. 6 (a) and Fig. 7 (L), the 5IGN register is l, and since the negative peak has passed this time, the a register is is 2, so the decision is NO. Incidentally, if a zero cross point arrives immediately after the peak value of the same polarity, a YES determination is made in step Q+2 and the process returns to step Q+ without any further operation.
さ【、いまこのステップQ12ではNOのジャッジがさ
れてステップQI3へゆき、5TEPレジスタを2とす
る。(第6図(b)、第7図(b)参照)。Now, in this step Q12, the judgment is NO, and the process goes to step QI3, where the 5TEP register is set to 2. (See FIGS. 6(b) and 7(b)).
そしてステップQI3に続けてステップQ+4を実行し
、前回のピーク値(AMP (SIGN))と今回のピ
ーク値(b′)を比較する。いま、第6図(a)のよう
に前回の値XOが今回の値より小(xl >x6 )な
らば、YESとなり、今回の時刻L′を周期の計測開始
点とすべく(第6図(C)参照)ステップQI4からス
テップQ+o、Q + +を実行し、5IGNレジスタ
を2とすると共にtルジスタの内容をTレジスタへ転送
する。Then, following step QI3, step Q+4 is executed to compare the previous peak value (AMP (SIGN)) and the current peak value (b'). Now, as shown in Fig. 6 (a), if the previous value XO is smaller than the current value (xl > (See (C)) Execute steps Q+o and Q + + from step QI4, set the 5IGN register to 2, and transfer the contents of the t register to the T register.
逆に、前回のピーク値が今回のピーク値よりも大きけれ
ば、つまり第7図(a)のようにxH<XOならば、ス
テップQ14でNoのジャッジをしステップQ+sにて
REVER3Eレジスタを1とする。なお、5IGNレ
ジスタはいま前の偵lを保つことになる。従って、この
場合は前のゼロクロス点(Zerol)が周期計測の開
始点となっている(第7図(c)参照)。Conversely, if the previous peak value is larger than the current peak value, that is, if xH<XO as shown in FIG. do. Note that the 5IGN register will keep its previous value. Therefore, in this case, the previous zero crossing point (Zerol) is the starting point for period measurement (see FIG. 7(c)).
そして1次のゼロクロス点(Zero3)の通過後、は
じめてメインフローを実行するときは。When the main flow is executed for the first time after passing the first-order zero cross point (Zero3).
ステップQ5でYESのジャッジがされてステップQ
+ 6へ進む、今回a′はlであり、第6図の場合は、
5IGNが2. g47図の場合は5IGNが1なので
、第6図の場合にあっては、ステップQ16でNOのジ
ャッジがされて、ステップQ+sへゆきステップQ1へ
もどる。つまり、周期計測を開始し始めてからひとつ目
のピーク(振幅X2)を通過したことをCPU100は
認識する。YES judgment is made in step Q5 and step Q
+ Proceed to 6, this time a' is l, and in the case of Figure 6,
5IGN is 2. In the case of Fig. g47, 5IGN is 1, so in the case of Fig. 6, a negative judgment is made in step Q16, and the process goes to step Q+s and returns to step Q1. In other words, the CPU 100 recognizes that the first peak (amplitude X2) has been passed since the start of period measurement.
また第7図の場合にあっては、ステップQ + 6では
YESの判断がされて、ステップQ I 7へゆきRE
VER5Eレジスタが1か否かジッヤジする。もし1で
なければNoの判断をしステップQ1へもどるが、上述
したようにステップQ+sの実行によってこのレジスタ
は1となっており、ステップQ+7からステップQ+s
へゆき5TEPレジスタを3としく第7図(b)参照)
、続けてステップQ+9にて、tルジスタにある今回の
割り込みで受は付けたカウンタ7の値からTレジスタに
ある値つまりゼロクロス点Zeroの時刻を減算し、P
ERIODレジスタにストアする。In the case of FIG. 7, YES is determined at step Q + 6, and the process goes to step Q I 7 to RE.
Check whether the VER5E register is 1 or not. If it is not 1, it makes a No judgment and returns to step Q1, but as mentioned above, this register has become 1 by executing step Q+s, and from step Q+7 to step Q+s
Set the 5TEP register to 3 (see Figure 7(b))
Then, at step Q+9, subtract the value in the T register, that is, the time of zero cross point Zero, from the value of counter 7, which was accepted by the current interrupt, in the T register, and calculate P.
Store in ERIOD register.
つまり第7図(C)に示す大きさが一周期の長さとなり
、続くステップQzo−I?t’の内容をTレジスタに
転送して所たな周期計測の開始をする。In other words, the size shown in FIG. 7(C) is the length of one cycle, and the following step Qzo-I? The contents of t' are transferred to the T register and a certain period measurement is started.
モして統〈ステップQ40において、PERIODレジ
スタの内容に基づき発生すべき楽音の音高を算出し、そ
れを表わすピッチ周波数情報(あるいはそれを指定する
何らかの情報)をPルジスタへ記録させる。このピッチ
周波数情報は、オクターブや音階のほか、半音以下のピ
ッチを例えばセント単位で表現するようにすれば望まし
い。In step Q40, the pitch of the musical tone to be generated is calculated based on the contents of the PERIOD register, and pitch frequency information representing it (or some information specifying it) is recorded in the P register. This pitch frequency information is desirably expressed in units of cents, in addition to octaves and scales, as well as pitches below semitones.
そして続くステップQ21において、上述のPルジスタ
の内容をもってCPU100は音源回路9に発音指令を
出す、従ってこの時点から楽音の発生がなされる。続け
てステップQs+へゆきタイマ8に所定時間カウントす
るように制御して、タイマ8のスタートをし、続くステ
ップQ12でFLAGレジスタに1をセットする。Then, in the following step Q21, the CPU 100 issues a sound generation command to the tone generator circuit 9 based on the contents of the P register described above, so that musical tones are generated from this point onwards. Continuing to step Qs+, the timer 8 is controlled to count for a predetermined time, the timer 8 is started, and in the following step Q12, 1 is set in the FLAG register.
さて、上述した第6図の場合にあっては、再び次のゼロ
クロス点(Zero4)後のメインフローの処理で、ス
テップQ5からステップQ+6ヘジヤンプする。いま、
5IGNレジスタは2なので、ステップQ + bでは
YESの判断をし、続けて上記同様にステップQ+1+
Q+a−+Qu=Qzo1Qzo+Q2++Qi++Q
s2を実行し、今回は第6図(c)に示すゼロクロス点
Zero2からZerO4までを一周期としてCP U
10 ’Oは認識し、この長さに基づく周波数の楽音
を発音開始する(第6図(d)参照)。Now, in the case of FIG. 6 described above, in the main flow processing after the next zero cross point (Zero4), the process jumps from step Q5 to step Q+6 again. now,
Since the 5IGN register is 2, a YES decision is made in step Q+b, and then step Q+1+ is made in the same manner as above.
Q+a-+Qu=Qzo1Qzo+Q2++Qi++Q
s2 is executed, and this time, one period is from the zero cross point Zero2 to ZerO4 shown in FIG. 6(c).
10'O is recognized and a musical tone having a frequency based on this length is started to be produced (see FIG. 6(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.
そして、この発音開始処理の後、メインルーチンにおい
ては、ステップQ4からステップQ22へ進行し、今回
取り込んだピーク値であるb′の値が、第8図に示すよ
うに0FFLEVを越えているか否かジャッジする。After this sound generation start processing, the main routine proceeds from step Q4 to step Q22, and checks whether the value of b', which is the peak value captured this time, exceeds 0FFLEV as shown in FIG. judge.
いま、このレベルを越えておればステップQ23へ進み
、リラティブオン(relative on)の処理を
するのか否かジャッジするようにする。即ち具体的には
今回のピーク値(b′)が前のピーク値(C)より0N
LEV■だけ大きいか、つまり発音中に急激に抽出ピー
ク値が大きくなったか否かジャッジする。If this level is currently exceeded, the process proceeds to step Q23, where it is judged whether relative on processing is to be performed. That is, specifically, the current peak value (b') is 0N lower than the previous peak value (C).
It is judged whether the extracted peak value is large by LEV■, that is, whether the extracted peak value suddenly becomes large during sound generation.
通常弦を振動すれば、自然減衰を行うので、このステッ
プQ 23はNoの判断となるが、もしトレモロ奏法な
どによって、前の弦振動が減衰し終わらないうちに、再
び弦が操作されてることにより急激に抽出ピーク値が大
となり、その結果このステップQ23の判断がYESと
なることがある。Normally, if the string is vibrated, it will naturally attenuate, so the answer to step Q23 will be No. However, if the string is manipulated again before the previous string vibration has finished damping due to tremolo playing, etc. As a result, the extracted peak value may suddenly become large, and as a result, the determination in step Q23 may become YES.
その場合は、ステップQ23はYESのジャッジをしス
テップQ8ヘジャンプし、ステップQ9〜ステップQ目
を実行する。その結果、5TEPレジスタは1となり、
上述した発音開始時の動作と全く同じ動作をそれ以降実
行する。つまり、再びステップQ+6NQ20. Q4
0. Q21. Q41、Q42をその後実行して再発
音開始の処理をすることになる。In that case, step Q23 makes a YES judgment, jumps to step Q8, and executes step Q9 to step Q. As a result, the 5TEP register becomes 1,
From then on, exactly the same operation as that at the time of starting the sound generation described above is executed. That is, step Q+6NQ20 again. Q4
0. Q21. Q41 and Q42 are then executed to process the start of re-sounding.
さて1通常状態では上述した如くステップQ23に続け
てステップ92 sを行って、a′の内容と5IGNレ
ジスタの内容の一致比較をし、一致しなければQCsへ
進み次のゼロクロス点の割り込み処理にそなえ、一致す
れば、既に逆の特性をもったピーク(正/負のピーク)
を夫々通過してきたので、ステップQ25へ進み、RE
vER8Eレジスタが1か否かジャッジし、もしNOな
らば何ら処理をすることなくステップQ+へもどるが、
もしこのステップQ2SでYESの判断がなされたなら
ば、ステップQ25からステップQ26へ進み新たな周
期を求めるべくt’レジスタの内容からTレジスタの内
容を引いて、PERIODレジスタにセットする。Now, in the normal state 1, as described above, step Q23 is followed by step 92s to compare the contents of a' and the contents of the 5IGN register, and if they do not match, proceed to QCs and proceed to the next zero-crossing point interrupt processing. If they match, it is already a peak with opposite characteristics (positive/negative peak)
Since each has passed, proceed to step Q25 and RE
It judges whether the vER8E register is 1 or not, and if it is NO, it returns to step Q+ without any processing.
If YES is determined in step Q2S, the process proceeds from step Q25 to step Q26, and in order to obtain a new period, the contents of the T register are subtracted from the contents of the t' register and set in the PERIOD register.
そして、ステップ92Fにおいてtルジスタの内容をT
レジスタへ転送し、続くステップQ29にてREVER
5Eレジスタの内容を0として、次の周期計測を行うよ
うにする。Then, in step 92F, the contents of the t register are changed to T
Transfer to the register and then REVER in step Q29.
The contents of the 5E register are set to 0, and the next cycle measurement is performed.
続くステップQ43では、上述したFLAGレジスタが
Oか否かジャッジし、もしNOならばステップQ+ へ
もどり上述のようにしてPERIODレジスタに求めた
周期データに基づく音高変更処理は何ら行われない、し
かし、ステップQ41でYESのジャッジをしたら、つ
まり前回の発音開始処理や音高変更処理から所定時間タ
イマ8がカウントして、割り込み処理(第4図参照)を
行っておれば、新たに音源回路9へ周波数変更制御をす
るように指示しても、音源回路9はそれを受付けて適宜
処理することができる。In the following step Q43, it is determined whether the above-mentioned FLAG register is O or not, and if it is NO, the process returns to step Q+ and no pitch change processing is performed based on the periodic data obtained in the PERIOD register as described above, however. , if the judgment is YES in step Q41, that is, if the timer 8 has counted the predetermined time since the previous sound generation start processing or pitch change processing, and if the interrupt processing (see Fig. 4) is performed, the sound source circuit 9 is newly activated. Even if an instruction is given to perform frequency change control, the sound source circuit 9 can accept the instruction and process it appropriately.
従って、次にステップQaaへ進む、これはステップQ
a oと同じであるが、求まったピッチ周波数情報は
Pレジスタヘセットされる。ステップQ 45では、既
にPルジスタに記憶されている周波数情報と、今回求め
てPレジスタに記憶した周波数情報との一致比較をする
。Therefore, proceed to step Qaa next, which is step Q
Same as a o, but the determined pitch frequency information is set to the P register. In step Q45, the frequency information already stored in the P register is compared with the frequency information obtained this time and stored in the P register.
そして、−量検出がなされると周波数変更の必要はない
から、ステップQ45からステップQ+ へもどる、し
かし、不一致が検出されたら、ギタこの弦操作等によっ
て入力波形の周波数が変化したとみなし、それに追従し
て、出力楽音の周波数を変更するように以下の処理をC
PU100は行う。Then, if the - amount is detected, there is no need to change the frequency, so the process returns from step Q45 to step Q+. However, if a discrepancy is detected, it is assumed that the frequency of the input waveform has changed due to the guitar string operation, etc. Follow the steps below to change the frequency of the output musical tone.
The PU 100 does so.
即ち、ステップQ45にてNOが検知されると、ステッ
プQ28へゆき、Pレジスタにあるピッチ周波数情報等
を音源回路9へ転送するなどして、周波数変更処理をす
る。従って音源回路9においては、この与えられる情報
に基づきこれまで発生していた楽音の周波数を、新たに
指示された周波数に変更する。That is, if NO is detected in step Q45, the process goes to step Q28, where the pitch frequency information etc. in the P register is transferred to the sound source circuit 9, and a frequency change process is performed. Therefore, in the sound source circuit 9, the frequency of the musical tone that has been generated so far is changed to the newly specified frequency based on this provided information.
そして、ステップQ28へ続けて、CPU100は、P
レジスタをPルジスタへ移し、しかる後ステップQ s
+ 、 Q s 2 を実行して、次の周波数変更処
理にそなえる。Continuing to step Q28, the CPU 100 executes P
Move the register to the P register, then step Q s
+ and Q s 2 to prepare for the next frequency change process.
このようにして、本実施例にあっては、弦の振動周波数
の変化を時々刻々とらえて、それに応じた周波数制御を
リアルタイムで行うようになる。In this way, 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.
そして、上述したように、弦振動が減衰してきて、準8
図のようにピーク値が0FFLEVを下まわるようにな
ると、ステップQ22からステップQ30へゆき5TE
Pレジスタを0とし、続くステップQ3+にてノートオ
フ処理(消音処理)を行い、これまで発音していた楽音
を消音すべくCPU100は音源回路9へ指示するよう
になる。Then, as mentioned above, the string vibration is damped and the quasi-8
As shown in the figure, when the peak value falls below 0FFLEV, the process goes from step Q22 to step Q30 and 5TE
The P register is set to 0, and a note-off process (mute process) is performed in the subsequent step Q3+, so that the CPU 100 instructs the sound source circuit 9 to mute the musical tones that have been generated so far.
このような処理を本実施例は行うので、発音開始指令ま
たは音高変更指令を音源回路9へ与えた後、タイマ8か
ら所定時間つまり音源回路9での処理が完了するのに相
当する時間以上経過してから、新たな音高変更指令を音
源回路9へ与えるので、細かい音高の分解能をとっても
、CPU100と音源回路とのデータ授受に関する処理
速度に関係なく、十分処理可能となる。Since this embodiment performs such processing, after giving a sound generation start command or a pitch change command to the sound source circuit 9, the timer 8 indicates a predetermined time, that is, a time corresponding to the completion of the processing in the sound source circuit 9 or more. Since a new pitch change command is given to the sound source circuit 9 after the time has elapsed, even if the pitch resolution is fine, it can be processed sufficiently regardless of the processing speed regarding data exchange between the CPU 100 and the sound source circuit.
また、新たな発音開始、消音開始は、その検出がなされ
ると即時に、対応する処理をCPU100は行い、所定
の指示を音源回路9へ与えるので応答性がよい。Furthermore, when a new sound generation start or mute start is detected, the CPU 100 immediately performs the corresponding processing and gives a predetermined instruction to the sound source circuit 9, resulting in good responsiveness.
尚、上記実施例にあっては、各ピーク点直後のゼロクロ
ス点でCPU100が割り込み処理をして、発音開始、
周期計算、リラティブオン、消音開始等の処理を行うよ
うにしたが、各ピーク点検出時に直接これらの処理を行
ってもよい、その場合も全く同じ結果を得ることができ
る。その他。In the above embodiment, the CPU 100 performs interrupt processing at the zero cross point immediately after each peak point to start sound generation,
Processing such as cycle calculation, relative on, and start of muting is performed, but these processes may be performed directly at the time of detecting each peak point, and in that case, exactly the same result can be obtained. others.
例えばピーク点の直前のゼロクロス点の検出によって、
上記同様の処理を行ってもよい、その他、基準となる点
のとり方は種々変更できる。更には、ピッチ抽出の回路
方式は種々とれ1例えば波形の自己相関関数をとるなど
して求めてもよく、その他如何なるピッチ抽出方式をと
っても実現できる。For example, by detecting the zero crossing point just before the peak point,
Processing similar to the above may be performed, and the method of determining reference points can be changed in various ways. Furthermore, there are various circuit systems for pitch extraction. For example, the pitch extraction may be obtained by taking an autocorrelation function of a waveform, and any other pitch extraction method can be used.
また、上記実施例では、メインフローのなかで各処理を
実行するようにしたが、割り込み処理のなかで同様の処
理を実行するようにしてもよい。Further, in the above embodiment, each process is executed in the main flow, but similar processes may be executed in the interrupt process.
更に、上記実施例においては、本発明を電子ギターに適
用したも゛のであったが、必ずしもそれに限られるもの
でなく、マイクロフォン等から入力される音声信号ある
いは電気的振動信号か゛らピッチ抽出を行って、原音声
信号とは別の音響信号を、対応するピッチもしくは音階
周波数にて発生するシステムであれば、どのような形態
のものであってもよい、具体的には、Wllを有するも
の例えば電子ピアノ、管楽器を電子化したもの、弦楽器
、例えばバイオリンや琴などを電子化したものにも同様
に適用できる。Further, in the above embodiment, the present invention was applied to an electronic guitar, but the present invention is not necessarily limited to this, and pitch extraction may be performed from an audio signal or an electrical vibration signal input from a microphone or the like. , 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 having Wll, such as an electronic The present invention can be similarly applied to electronic pianos, wind instruments, and stringed instruments such as violins and kotos.
[発明の効果]
この発明は、以上詳述したように、発音開始指令または
音高変更指令を一度送山したら、計時手段にて所定時間
を越えるまで、所たな音高変更指令を送出しないように
したので、音高変更指令の送出頻度はおさえたままで、
周波数の分解ずtの高い電子楽器の入力制御装置を提供
できるという効果を奏する。[Effects of the Invention] As detailed above, in this invention, once a sound generation start command or a pitch change command is sent, no pitch change command is sent until a predetermined time is exceeded by the timing means. As a result, the frequency of pitch change commands can be kept low.
This has the effect of providing an input control device for an electronic musical instrument with high frequency resolution t.
図面は本発明の一実施例を示し、第1図は、同実施例の
回路構成を示す図、第2図は、第1図中の各部に表われ
る波形を示すタイムチャート図、第3図はCPUのゼロ
クロス点の割り込みルーチンのフローチャートを示す図
、第4図はCPHのタイマー割り込みルーチンのフロー
チャート図、第5図はCPUのメインルーチンのフロー
チャートを示す図、第6図、第7図は発音開始時の各部
の動作を示すタイムチャート図、第8図は、消音開始時
の動作を示すタイムチャート図である。
1・・・・・・入力端子、4・・・・・・最大ピーク検
出回路、5・・・・・・最小ピーク検出回路、6・・・
・・・ゼロクロス点検出回路、7・・・・・・カウンタ
、8・・・・−・タイマ、9・・・・・・音源回路、1
4.15・・・・・・フリップフロップ、100・・・
・・・CPU、101・・・・・・ワークメモリ、Pl
−P6・・・・・・ピッチ抽出回路。
特許出願人 カシオ計算機株式会社
第2図
第3図
30クロス「、パ【11込、171し、千ン第4FjA
ダ4マ、!・1・に々lレイン
(b)sTEP
第6図
<d)ft’* !4=ン7゛
V * rJA −
ra]]::。
第7図
第8図The drawings show an embodiment of the present invention; FIG. 1 is a diagram showing the circuit configuration of the embodiment; FIG. 2 is a time chart showing waveforms appearing at various parts in FIG. 1; and FIG. Figure 4 is a flowchart of the CPU zero-crossing point interrupt routine, Figure 4 is a flowchart of the CPH timer interrupt routine, Figure 5 is a flowchart of the CPU main routine, and Figures 6 and 7 are the flowcharts for the CPU's main routine. FIG. 8 is a time chart showing the operation of each part at the time of starting. FIG. 8 is a time chart showing the operation at the start of muting. 1...Input terminal, 4...Maximum peak detection circuit, 5...Minimum peak detection circuit, 6...
... Zero cross point detection circuit, 7 ... Counter, 8 ... - Timer, 9 ... Sound source circuit, 1
4.15...Flip-flop, 100...
...CPU, 101...Work memory, Pl
-P6...Pitch extraction circuit. Patent Applicant Casio Computer Co., Ltd. Figure 2 Figure 3 30 Cross ", Pa [11 included, 171, 1,000 th 4 FjA da 4 Ma,!・1・Ninil rain (b) sTEP Figure 6 <d )ft'* !4=n7゛
V * rJA −
ra]]::. Figure 7 Figure 8
Claims (1)
チ検出手段と、このピッチ検出手段にて検出された上記
基本ピッチ周波数に基づいて対応する音高の楽音を発生
するよう指示する指示手段を有する電子楽器の入力制御
装置において、上記指示手段が発音開始指令または音高
変更指令を与えてからその都度経過時間を測定する計時
手段と、 この計時手段で所定時間を計時した後に上記ピッチ検出
手段にて検出された基本ピッチ周波数に基づく新たな音
高変更指令を上記指示手段は与えるようにする手段と、 を具備したことを特徴とする電子楽器の入力制御装置。[Claims] Pitch detection means for detecting a fundamental pitch frequency from an input waveform signal, and instructions to generate a musical tone of a corresponding pitch based on the fundamental pitch frequency detected by the pitch detection means. In an input control device for an electronic musical instrument having an instruction means, the input control device includes a timer for measuring the elapsed time each time after the instruction means issues a sound generation start command or a pitch change command; An input control device for an electronic musical instrument, comprising: means for causing the instruction means to give a new pitch change command based on the fundamental pitch frequency detected by the pitch detection means;
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61314157A JP2532424B2 (en) | 1986-12-29 | 1986-12-29 | Waveform signal input 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 |
---|---|---|---|
JP61314157A JP2532424B2 (en) | 1986-12-29 | 1986-12-29 | Waveform signal input controller |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS63167397A true JPS63167397A (en) | 1988-07-11 |
JP2532424B2 JP2532424B2 (en) | 1996-09-11 |
Family
ID=18049923
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61314157A Expired - Lifetime JP2532424B2 (en) | 1986-10-24 | 1986-12-29 | Waveform signal input controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2532424B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011102978A (en) * | 2009-10-15 | 2011-05-26 | Yamaha Corp | Tone signal processing apparatus and program |
JP2015184379A (en) * | 2014-03-20 | 2015-10-22 | カシオ計算機株式会社 | Electronic stringed instrument, musical sound production method, and program |
JP2015184380A (en) * | 2014-03-20 | 2015-10-22 | カシオ計算機株式会社 | Electronic stringed instrument, musical sound generation method and program |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS55159495A (en) * | 1979-05-31 | 1980-12-11 | Nippon Musical Instruments Mfg | Musical sound input type electronic musical instrument |
-
1986
- 1986-12-29 JP JP61314157A patent/JP2532424B2/en not_active Expired - Lifetime
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS55159495A (en) * | 1979-05-31 | 1980-12-11 | Nippon Musical Instruments Mfg | Musical sound input type electronic musical instrument |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011102978A (en) * | 2009-10-15 | 2011-05-26 | Yamaha Corp | Tone signal processing apparatus and program |
JP2015184379A (en) * | 2014-03-20 | 2015-10-22 | カシオ計算機株式会社 | Electronic stringed instrument, musical sound production method, and program |
JP2015184380A (en) * | 2014-03-20 | 2015-10-22 | カシオ計算機株式会社 | Electronic stringed instrument, musical sound generation method and program |
Also Published As
Publication number | Publication date |
---|---|
JP2532424B2 (en) | 1996-09-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5014589A (en) | Control apparatus for electronic musical instrument for generating musical tone having tone pitch corresponding to input waveform signal | |
JPS59197090A (en) | Automatic performer | |
JPS63167397A (en) | Input controller for electronic musical instrument | |
JP2605667B2 (en) | Electronic musical instrument input control device | |
JP2581068B2 (en) | Waveform signal controller | |
JP2508044B2 (en) | Electronic musical instrument input control device | |
JP2792022B2 (en) | Electronic musical instrument input control device | |
JPS63136088A (en) | Input controller for electronic musical instrument | |
JP2765578B2 (en) | Waveform signal controller | |
JPS63217398A (en) | Musical tone control device | |
JP2508692B2 (en) | Input waveform signal controller | |
JPH0727512Y2 (en) | Input control device for electronic musical instruments | |
JPH041358B2 (en) | ||
JPS63141099A (en) | Input control device for electronic musical instruments | |
JPS63223790A (en) | Input waveform signal control device | |
JP2961675B2 (en) | Electronic musical instrument | |
JP2555553B2 (en) | Input waveform signal controller | |
JP2759149B2 (en) | Music control device | |
JPS63138397A (en) | Input controller for electronic musical instrument | |
JPS5935998U (en) | Vibrato device for electronic musical instruments | |
JPH0431598B2 (en) | ||
JPS63217397A (en) | Input control device for electronic musical instruments | |
JPH0836381A (en) | Electronic string instrument | |
JPH0434755B2 (en) | ||
JPH02219095A (en) | Input control device for electronic musical instruments |