JPH0456897A - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JPH0456897A
JPH0456897A JP2164892A JP16489290A JPH0456897A JP H0456897 A JPH0456897 A JP H0456897A JP 2164892 A JP2164892 A JP 2164892A JP 16489290 A JP16489290 A JP 16489290A JP H0456897 A JPH0456897 A JP H0456897A
Authority
JP
Japan
Prior art keywords
peak value
value
peak
change
values
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
JP2164892A
Other languages
Japanese (ja)
Inventor
Yukitake Nishihara
西原 幸毅
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.)
Roland Corp
Original Assignee
Roland Corp
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 Roland Corp filed Critical Roland Corp
Priority to JP2164892A priority Critical patent/JPH0456897A/en
Publication of JPH0456897A publication Critical patent/JPH0456897A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PURPOSE:To accurately apply a pronunciation instruction or a muting instruction by generating the pronunciation instruction when the absolute value of a peak value is more than a previously determined 1st threshold and a changing state is changed to a previously determined 2nd threshold or more. CONSTITUTION:When a peak detecting means 2 successively detects peak values and a change detecting means 4 successively detects the changing states of respective peak values, e.g. the rate of changes of respective peak values, the changing states are inputted to a pronunciation instructing means 6. On the other hand, an input signal is also inputted to the means 6, which outputs a pronunciation instruction only when the changing state, i.e. the rate of change, exceeds the previously determined 2nd threshold in the state of the peak value more than the 1st threshold. Thereby, even if a noise is superposed to the peak value or the peak value is changed by the change of a higher harmonic phase, a pronunciation instruction can be accurately applied.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、電子楽器に関し、特に入力された波形信号に
応して音源部を制御するものに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an electronic musical instrument, and particularly to one that controls a sound source section in response to an input waveform signal.

[従来の技術] 上記のような電子楽器としては例えばキターシンセサイ
ザーがあり、これては波形信号か発生したとき楽音を発
生するように音源部を制御し、波形信号か減衰したとき
消音するように音源部を制御し、また波形信号にエンベ
ロープに応して音源部から発生する楽音信号のエンベロ
ープを制御する必要かある。
[Prior Art] As an example of the above-mentioned electronic musical instrument, there is a kitar synthesizer, which controls a sound source section to generate a musical tone when a waveform signal is generated, and mutes the sound when the waveform signal is attenuated. It is necessary to control the sound source section and also control the envelope of the musical tone signal generated from the sound source section in accordance with the envelope of the waveform signal.

従来、発音指示を与えるための技術には、波形信号の正
のピーク値と負のピーク値を順次検出し、これらか共に
所定の閾値を超えたときに発音指示を与えるものく特開
平1−100598号公報)や、波形信号のレベルか正
負いずれかにおいて所定値以上になったとき、例えば正
側て所定値以上になったとすると、正側ての隣接するピ
ーク値間の時間間隔を測定し、この時間間隔に対応する
周波数の楽音の発生を指示するもの(特開昭63−24
3998号公報)かある。また消音指示を与える技術と
しては、入力波形信号の正のピーク値と負のピーク値と
を検出し、これらか共に所定値以上小さくなったときに
消音指示を与えるものや(特開昭63−243997号
公報)や、入力波形信号か所定レベル以下である状態か
予め定めた時間以上継続したときに消音指示を与えるも
のかある(特開平1−100597号公報)。またエン
ベロープを検出する技術としては、入力波形信号の立上
り時の最大ピーク値を求め、それ以後に発生するピーク
値を順次求め、このピーク値が求められるごとに、前回
のピーク値との平均値を求め、この平均値と最大ピーク
値との比を順次演算するが、上記ピーク値が求められる
ごとに、これと最大値ピーク値との比を求めるものかあ
る(特開平2−7096号公報)。
Conventionally, techniques for giving a sound generation instruction include sequentially detecting positive peak values and negative peak values of a waveform signal, and giving a sound generation instruction when both of them exceed a predetermined threshold. 100598), or when either the positive or negative level of the waveform signal exceeds a predetermined value, for example, if the positive side exceeds the predetermined value, the time interval between adjacent peak values on the positive side is measured. , which instructs the generation of a musical tone with a frequency corresponding to this time interval (Japanese Patent Laid-Open No. 63-24
No. 3998). Furthermore, as a technique for giving a mute instruction, there is a technique that detects the positive peak value and negative peak value of an input waveform signal, and gives a mute instruction when both of them are smaller than a predetermined value (Japanese Patent Application Laid-Open No. 63-1989-1). No. 243997), and others that give a mute instruction when the input waveform signal remains below a predetermined level for a predetermined period of time (Japanese Patent Laid-Open No. 100597/1999). In addition, the technique for detecting the envelope is to find the maximum peak value at the rising edge of the input waveform signal, sequentially find the peak values that occur after that, and each time this peak value is found, the average value with the previous peak value is calculated. is calculated, and the ratio between this average value and the maximum peak value is sequentially calculated. However, each time the above peak value is calculated, the ratio between this value and the maximum peak value is calculated (Japanese Patent Application Laid-Open No. 2-7096 ).

[発明か解決しようとする課題] しかし、上記の発音指示や消音指示技術ては、入力波形
信号の高調波成分の位相の変化に伴なう波高値の変動や
、入力波形信号にノイズか重畳されることによる波高値
の変動により、正確に発音指示や消音指示を与えること
かてきないという問題点かあった。また、上記のエンベ
ロープ検出技術ては、複雑な演算を必要とするので、処
理時間か長くなるという問題点かあった。
[Problem to be solved by the invention] However, the above-mentioned sound generation instruction and mute instruction techniques do not cause fluctuations in the peak value due to changes in the phase of harmonic components of the input waveform signal, or noise or noise superimposed on the input waveform signal. There was a problem in that it was not possible to accurately give instructions to produce sound or mute the sound due to fluctuations in the peak value caused by the noise. Further, the above-mentioned envelope detection technique requires complicated calculations, so there is a problem in that the processing time becomes long.

本発明は、上記の各問題点を解決した電子楽器を提供す
ることを目的とする。
An object of the present invention is to provide an electronic musical instrument that solves each of the above-mentioned problems.

[課題を解決するための手段] 第1乃至第3の発明は、第1図に示すように、入力信号
のピーク値を順次検出するピーク値検出手段2と、上記
ピーク値が検出されるごとにそのピーク値と前回に検出
されたピーク値との変化状態を検出する変化検出手段4
とを、共通に有している。
[Means for Solving the Problem] As shown in FIG. change detection means 4 for detecting a state of change between the peak value and the previously detected peak value;
They have these in common.

第1の発明は、ピーク値の絶対値が予め定めた第1の閾
値以上であって上記変化状態か予め定めた第2の閾値以
上に変化したとき発音指示を発生する発音指示手段6を
備えている。
The first invention includes a sound generation instruction means 6 that generates a sound generation instruction when the absolute value of the peak value is equal to or higher than a predetermined first threshold value and the above-mentioned change state changes to a predetermined second threshold value or higher. ing.

第2の発明は、順次検出された各変化状態か上記入力信
号の減衰傾向を示しているとき消音指示を発生する消音
指示手段8を、備えている。
The second invention includes a mute instruction means 8 which generates a mute instruction when each successively detected change state indicates a tendency of attenuation of the input signal.

第3の発明は、今回検出されたピーク値が前回検出され
たピーク値よりも増加していることを上記変化状態か表
わしているとき、今回のピーク値を上記入力信号のエン
ベロープ情報として出力し、今回検出されたピーク値が
前回検出されたピーク値よりも減少していることを上記
変化状態か表わしているとき、前回のピーク値を上記エ
ンベロープ情報として出力するエンベロープ情報発生手
段IOを有している。
The third invention is to output the current peak value as envelope information of the input signal when the change state indicates that the peak value detected this time is greater than the peak value detected last time. , comprising an envelope information generating means IO for outputting the previous peak value as the envelope information when the change state indicates that the currently detected peak value is smaller than the previously detected peak value. ing.

[作用] 第1の発明によれば、ピーク検出手段2か第4図に示す
ように順次ピーク値を検出し、変化検出手段4か順次各
ピーク値の変化状態、例えば各ピーク値の変化率を検出
する。この変化状態は発音指示手段6に入力される。−
万人力信号も発音指示手段に入力され、発音指示手段l
Oは、第4図に点線て示すような第1の閾値以上にピー
ク値がなっている状態において、変化状態、例えば変化
率か予め定めた第2の閾値以上になったとき、発音指示
を行なう。
[Operation] According to the first invention, the peak detection means 2 sequentially detects the peak values as shown in FIG. 4, and the change detection means 4 sequentially detects the state of change of each peak value, for example, the rate of change of each peak value. Detect. This changing state is input to the sound generation instruction means 6. −
The universal signal is also input to the pronunciation instruction means, and the pronunciation instruction means l
O issues a pronunciation instruction when the change state, for example, the rate of change, exceeds a predetermined second threshold in a state where the peak value is above the first threshold as shown by the dotted line in FIG. Let's do it.

第2の発明ては、第6図に示すように各ピーク値がピー
ク検出手段2によって順次検出され、この各ピーク値の
変化状態か変化検出手段4によって検出され、消音指示
手段8に供給される。消音指示手段8は、この変化状態
か入力信号の減少傾向を表わしているとき、消音指示を
行なう。
In the second invention, each peak value is sequentially detected by the peak detection means 2 as shown in FIG. Ru. The mute instruction means 8 issues a mute instruction when this change state indicates a decreasing tendency of the input signal.

第3の発明ては、第5図(a)に示すようにピーク値が
順次検出され、これら各ピーク値の変化状態か変化検出
手段4によって検出され、エンベロープ情報発生手段1
0に供給される。このエンベロープ情報発生手段10は
、例えば第5図のh103(−23)とh102(−1
7)とのように、今回のピーク値h103の方か前回の
ピーク値h102よりも大きければ、同図(c)に示す
ように今回のピーク値h103を今回のエンベロープ情
報として出力し、同図のh104(=19)と前回のピ
ーク値h103(=23)とのように、今回のピーク値
h104の方か前回のピーク値h103よりも小さいと
、同図(C)に示すように前回のピーク値を今回のピー
ク値とする。
In the third invention, peak values are sequentially detected as shown in FIG.
0. This envelope information generating means 10 generates, for example, h103(-23) and h102(-1) in FIG.
7), if the current peak value h103 is larger than the previous peak value h102, the current peak value h103 is output as the current envelope information as shown in FIG. h104 (=19) and the previous peak value h103 (=23), if the current peak value h104 is smaller than the previous peak value h103, as shown in the same figure (C), the previous peak value The peak value is set as the current peak value.

[実施例] 第2図において、21は入力アンプて、例えばギターシ
ンセサイザーの弦を弾くことによって発生した入力波形
信号または、マイクロホンから入力された入力波形信号
を増幅するものて、例えばオペアンプによって構成され
ている。この入力アンプ21の出力は、ローパスフィル
タ22に供給され、入力波形信号の高調波成分か除去さ
れる。即ちローパスフィルタ22の出力には、入力波形
信号の基本波か生じる。この入力波形信号の基本波は、
ゼロクロスコンバータ23に入力され、このコンバータ
23は、この基本波のゼロクロスポイントを検出するご
とにゼロクロスデータをマイクロコンピュータ28の外
部タイマ端子28aに供給する。
[Embodiment] In FIG. 2, reference numeral 21 denotes an input amplifier, which amplifies an input waveform signal generated by, for example, plucking the strings of a guitar synthesizer or an input waveform signal input from a microphone, and is constituted by, for example, an operational amplifier. ing. The output of this input amplifier 21 is supplied to a low-pass filter 22, where harmonic components of the input waveform signal are removed. That is, the fundamental wave of the input waveform signal is generated at the output of the low-pass filter 22. The fundamental wave of this input waveform signal is
The data is input to the zero-cross converter 23, and the converter 23 supplies zero-cross data to the external timer terminal 28a of the microcomputer 28 every time the zero-cross point of the fundamental wave is detected.

一方、入力波形信号の基本波は、整流回路25にも供給
され、その正極性の部分か整流回路25によって半波整
流される。また、入力波形信号の基本波はインバータ2
4を介して整流回路26に供給され、その正極性の部分
(元の基本波の負極性の部分)か半波整流される。これ
ら整流回路25.26の出力は、加算器33て加算され
る。従って、この加算器33の出力は、入力波形信号を
全波整流したものに相出する。この加算器33の出力は
、ピークホールド回路27に供給され、このピークホー
ルド回路27の出力はマイクロコンピュータ28のA/
Dコンバータ入力端子28cに供給されている。また、
このピークホールド回路27は、ホールトしたピーク値
をリセットするためのピークホールドリセット入力端子
27aを有し、これはマイクロコンピュータ28のピー
クホールドリセット出力端子28bに接続されている。
On the other hand, the fundamental wave of the input waveform signal is also supplied to the rectifier circuit 25, and its positive polarity portion is half-wave rectified by the rectifier circuit 25. In addition, the fundamental wave of the input waveform signal is
4 to the rectifier circuit 26, and its positive polarity portion (negative polarity portion of the original fundamental wave) is subjected to half-wave rectification. The outputs of these rectifying circuits 25 and 26 are added by an adder 33. Therefore, the output of this adder 33 is a full-wave rectified version of the input waveform signal. The output of this adder 33 is supplied to a peak hold circuit 27, and the output of this peak hold circuit 27 is
It is supplied to the D converter input terminal 28c. Also,
This peak hold circuit 27 has a peak hold reset input terminal 27a for resetting the held peak value, and this is connected to a peak hold reset output terminal 28b of the microcomputer 28.

マイクロコンピュータ28は、中央処理装置、ワーキン
クメモリ、A/Dコンバータ等を含むものて、外部タイ
マー入力端子28aにゼロクロスデータか入力されるご
とに、ピークホールドリセット出力端子28bにリセッ
ト信号を出力する。従って、ピークホールド回路27 
 は、入力波形信号の基本波がゼロクロスするごとにリ
セットされるのて、各入力波形信号の基本波の半周期ご
とにピーク値をホールトする。そして、これらピーク値
はマイクロコンピュータ28内のA/Dコンバータに、
よって順次ディジタル化され、ディジタルピーク情報h
(i)とされる。
The microcomputer 28 includes a central processing unit, a working memory, an A/D converter, etc., and outputs a reset signal to a peak hold reset output terminal 28b every time zero cross data is input to an external timer input terminal 28a. . Therefore, the peak hold circuit 27
is reset every time the fundamental wave of the input waveform signal crosses zero, and holds the peak value every half period of the fundamental wave of each input waveform signal. Then, these peak values are sent to the A/D converter in the microcomputer 28.
Therefore, it is sequentially digitized and digital peak information h
(i).

マイクロコンピュータ28は、これらディジタルピーク
情報h(i)を後述するように処理して、発音指示(ゲ
ートオン)信号、消音指示(ケートオフ信号及びエンベ
ロープ情報をMIDI信号としてMIDI出力端子28
dから出力する。このMIDI信号はMIDI出力回路
29を介して図示していない音源部に供給される。
The microcomputer 28 processes the digital peak information h(i) as described later, and outputs a sound generation instruction (gate on) signal, a mute instruction (gate off signal) and envelope information as MIDI signals to the MIDI output terminal 28.
Output from d. This MIDI signal is supplied to a sound source section (not shown) via a MIDI output circuit 29.

30はMIDI入力回路で、図示していない他の電子楽
器からのMIDI信号を受けて、これをマイクロコンピ
ュータ28に供給する。マイクロコンピュータ28は、
この供給されたMIDI信号をMIDI出力回路29を
介して音源部に供給する。32は操作子群て、ゲートオ
ン、ゲートオフ、エンベロープ情報以外の情報てあって
音源部に供給すべきパラメータ情報を操作子情報入力端
子28gを介してマイクロコンピュータ28に設定する
ためのものて、この設定されたパラメータ情報もマイク
ロコンピュータ28からMIDI信号としてMIDI出
力回路29を介して音源部に供給される。31は表示回
路て、操作子群32によって設定された情報等をマイク
ロコンピュータ28の表示情報出力端子28fから受け
て表示する。
A MIDI input circuit 30 receives MIDI signals from other electronic musical instruments (not shown) and supplies them to the microcomputer 28. The microcomputer 28 is
The supplied MIDI signal is supplied to the sound source section via the MIDI output circuit 29. Reference numeral 32 denotes a group of operators, which is used to set parameter information to be supplied to the sound source unit in the microcomputer 28 via the operator information input terminal 28g, including information other than gate-on, gate-off, and envelope information. The parameter information thus obtained is also supplied as a MIDI signal from the microcomputer 28 to the sound source section via the MIDI output circuit 29. A display circuit 31 receives information set by the operator group 32 from a display information output terminal 28f of the microcomputer 28 and displays it.

次にマイクロコンピュータ28かディジタルピーク情報
h(i)をどのように処理して、ゲートオン信号、ゲー
トオフ信号及びエンベロープ情報を発生するかについて
説明するが、その前にこの処理に使用するためにワーキ
ングメモリ内に設定した各種レジスタについて第3図を
参照しなから説明する。レジスタHIは、ディジタルピ
ーク情報h(i)か入力されたときに、これを記憶する
レジスタで、レジスタHNは、レジスタHIにディジタ
ルピーク情報h(i)か記憶されるときに、それまてレ
ジスタHIに記憶されていたディジタルピーク情報、即
ちh(i−1)を記憶するレジスタである。レジスタ)
IMは、レジスタH1,HMの記憶値のうちいずれか値
の大きいものを記憶するレジスタである。レジスタRI
は、ケートオン信号を発生するか否か決定するのに利用
するために、レジスタH1、HM、HNの記憶値を元に
後述するようにして算出したディジタルピーク情報の変
化係数を記憶するレジスタである。レジスタHLは、ケ
ートオン信号を発生するか否か決定するために、第4図
に点線て示すようにディジタルピーク情報h(i)と比
較される閾値H(Iim)を記憶しているレジスタであ
る。レジスタRLは、ゲートオン信号を発生するか否か
決定するために、レジスタRIに記憶されている変化係
数と比較される閾値R(Iis)を記憶しているレジス
タである。レジスタSIは、ゲートオフ信号を発生する
か否かを決定するのに利用するために、上記変化係数の
積算値を記憶するレジスタである。レジスタSLは、ゲ
ートオフ信号を発生するか否か決定するために、レジス
タSHの記憶値と比較される閾値S (Ii■)を記憶
しているレジスタである。
Next, we will explain how the microcomputer 28 processes the digital peak information h(i) to generate gate-on signals, gate-off signals, and envelope information. The various registers set in the memory will be explained with reference to FIG. Register HI is a register that stores digital peak information h(i) when it is input, and register HN is a register that stores digital peak information h(i) when it is stored in register HI. This register stores digital peak information stored in HI, that is, h(i-1). register)
IM is a register that stores the larger of the values stored in registers H1 and HM. register RI
is a register that stores a change coefficient of digital peak information calculated as described later based on the values stored in registers H1, HM, and HN, in order to be used to determine whether or not to generate a gate-on signal. . The register HL is a register that stores a threshold value H(Iim) that is compared with the digital peak information h(i), as shown by the dotted line in FIG. 4, in order to determine whether or not to generate a gate-on signal. . Register RL is a register that stores a threshold value R (Iis) that is compared with the variation coefficient stored in register RI to determine whether or not to generate a gate-on signal. Register SI is a register that stores the integrated value of the change coefficients for use in determining whether or not to generate a gate-off signal. The register SL is a register that stores a threshold value S (Ii) which is compared with the value stored in the register SH to determine whether or not to generate a gate-off signal.

これらレジスタを使用した処理は、ゼロクロスコンバー
タ23かゼロクロスデータを発生することによって第7
図に示すインターラブドルーチンか読出されることによ
って行なわれる。即ち、このインターラブドルーチンて
は、まず現在ケートオン中であるか判断しくステップS
l)、その答かNoであるとゲートオン検出処理を行な
い(ステップ゛S2)、このインターラブドルーチンを
終了する。またステップSlの答かYESであると、エ
ンベロープ検出処理を行ない(ステ゛ツブS3)、さら
にゲートオフ検出処理を行ない(ステ・ンブS4)、こ
のインターラブドルーチンを終了する。
Processing using these registers is carried out by the zero-cross converter 23 or by generating zero-cross data.
This is performed by reading the interwoven routine shown in the figure. That is, in this interwoven routine, first, step S is performed to determine whether or not Kate is currently on.
l), and if the answer is No, gate-on detection processing is performed (step S2), and this interlaced routine is ended. If the answer to step Sl is YES, envelope detection processing is performed (step S3), gate-off detection processing is performed (step S4), and this interwoven routine is ended.

ゲートオン検出処理ては、第8図に示すように、まずレ
ジスタHIの記憶値、即ちディジタルピーク情報h(i
−1)かレジスタHNに転送される(ステップS5)。
In the gate-on detection process, as shown in FIG.
-1) is transferred to register HN (step S5).

そして、ゼロクロスデータの発生に応してリセットされ
たことによって、新たに入力波形信号のピーク値をホー
ルトしているピークホールド回路27のピーク値を、デ
ィジタル化したディジタルピーク情報h(i)かレジス
タHIに記憶される(ステップS6)、次にレジスタH
1、HMの記憶値が比較され(ステップS7)、レジス
タHNの記憶値がレジスタHIの記憶値よりも大きいか
等しいとレジスタHNの記憶値がレジスタHMに転送さ
れ(ステップS8)、レジスタHIの記憶値がレジスタ
HNの記憶値よりも大きいと、レジスタH1の記憶値が
レジスタHMに転送される(ステップS9)。ステップ
S8.9ての転送は後述する変化係数の算出の事前準備
である。
Then, the peak value of the peak hold circuit 27, which is newly holding the peak value of the input waveform signal by being reset in response to the generation of zero cross data, is digitized into digital peak information h(i) or a register. HI (step S6), then register H
1. The stored values of HM are compared (step S7), and if the stored value of register HN is greater than or equal to the stored value of register HI, the stored value of register HN is transferred to register HM (step S8), and the stored value of register HI is If the stored value is larger than the stored value in register HN, the stored value in register H1 is transferred to register HM (step S9). The transfer in step S8.9 is a preliminary preparation for calculation of a change coefficient, which will be described later.

そして、レジスタHIの記憶値がレジスタHLに記憶さ
れている閾値)1(Iim)よりも大きいか判断しくス
テップ510)、その答かNOであると、このルーチン
を終了する。従って、例えば第4図に示すような入力波
形信号の場合、点線で示す閾値H(lit)よりもピー
ク値はh13まて大きくならないのて、少なくともh1
3まではゲートオン処理は行なわれない。なお、第4図
ては閾値H(Iim)は20としである。
Then, it is determined whether the value stored in the register HI is greater than the threshold value 1 (Iim) stored in the register HL (step 510), and if the answer is NO, this routine is ended. Therefore, for example, in the case of an input waveform signal as shown in FIG.
Gate-on processing is not performed until 3. In addition, in FIG. 4, the threshold value H (Iim) is set to 20.

次にステップSIOの答かYESとなったとき、即ち第
4図でいえばh13のピーク値をディジタル化したディ
ジタルど−ク情報h(1:l)か供給されたとき、変化
係数R(i)の算出か行なわれる(ステップ5ll)。
Next, when the answer to step SIO is YES, that is, when digital information h(1:l) obtained by digitizing the peak value of h13 in FIG. 4 is supplied, the change coefficient R(i ) is calculated (step 5ll).

この算出は、 R(i)= (HI−HN) /HM によって行なわれる。即ち、今回入力されたディジタル
ピーク情報h(i)と前回入力されたディジタルピーク
情報h(i−1)との差を、h(i)とh(i−1)の
うちいずれか値の大きい方で除算したものて、ディジタ
ルピーク情報の変化の程度を示している。
This calculation is performed by R(i)=(HI-HN)/HM. That is, the difference between the digital peak information h(i) input this time and the digital peak information h(i-1) input last time is determined by calculating the difference between h(i) and h(i-1), whichever is the larger value. The value obtained by dividing the value by 1 indicates the degree of change in the digital peak information.

そして、係数R(i)かレジスタRTに記憶されている
閾値R(lie)よりも大きいか判断する(ステップS
 12)。この答かNoであると、このルーチンを終了
し、この答かYESであるとゲートオン処理を行ない、
ゲートオン信号を発生する(ステップ513)。従って
、第4図の場合、閾値R(I is)を0.25とする
と、h13におけるR(i)は(25−20)/25=
0.2であり、閾値R(Iim)よりも小さいのてゲー
トオン処理は行なわれないが、h14におけるR(1)
は(35−25)/35=0.28であり、閾値R(I
im)よりも大きいのてゲートオン処理か行なわれる。
Then, it is determined whether the coefficient R(i) is larger than the threshold value R(lie) stored in the register RT (step S
12). If the answer is No, this routine is terminated, and if the answer is YES, gate-on processing is performed,
A gate-on signal is generated (step 513). Therefore, in the case of FIG. 4, if the threshold value R(I is) is 0.25, R(i) at h13 is (25-20)/25=
0.2, which is smaller than the threshold R(Iim), so gate-on processing is not performed, but R(1) at h14
is (35-25)/35=0.28, and the threshold R(I
im), gate-on processing is performed.

エンベロープ検出処理は、第9図に示すように行なわれ
、第8図におけるステ・ンプS5.6.7.8.9と同
一のステップS5a、6a、7a、 8a、 9aにお
いてレジスタHIの記憶値のレジスタHNへの転送、新
たなディジタルピーク情報h(i)のレジスタHIへの
記憶、レジスタH1,HNのうち値の大きいもののレジ
スタHMへの転送か行なわれる。そして、このレジスタ
HMの記憶値をエンベロープ情報として処理しくステッ
プ514)、このルーチンを終了する。従って、例えば
第5図(a)に示すような入力波形信号の場合、各ピー
ク値をエンベロープ情報とした場合、同図(b)に示す
ように非常に変化の大きいものとなるが、このエンベロ
ープ検出処理によれば、同図(C)に示すように滑らか
なエンベロープ情報か得られる。即ち、同図に示すよう
にピーク値がhlol(−12)、h102(−17)
、 h103(−23)、h104(−19)・・・・
・の場合、hlol、h102、h103てはピーク値
は前回のピーク値よりも大きいのて、エンベロープ情報
としては、同図(c)に示すようにhlol、h102
、h103のピーク値がそのまま使用されているが、h
104のピーク値は前回のピーク値h103よりも小さ
いのて、エンベロープ情報としてh104を使用せずに
、前回のピーク値h103をそのまま使用している。以
下、同様に処理か行なわれているので、滑らかなエンベ
ロープ情報か得られる。
The envelope detection process is performed as shown in FIG. 9, and in steps S5a, 6a, 7a, 8a, and 9a, which are the same as step S5.6.7.8.9 in FIG. is transferred to register HN, new digital peak information h(i) is stored in register HI, and the one with a larger value among registers H1 and HN is transferred to register HM. Then, the value stored in the register HM is processed as envelope information (step 514), and this routine ends. Therefore, for example, in the case of an input waveform signal as shown in Figure 5(a), if each peak value is used as envelope information, it will have a very large change as shown in Figure 5(b), but this envelope According to the detection process, smooth envelope information can be obtained as shown in FIG. That is, as shown in the figure, the peak values are hlol (-12) and h102 (-17).
, h103(-23), h104(-19)...
In the case of ・, the peak values of hlol, h102, and h103 are larger than the previous peak values, so the envelope information is hlol, h102, as shown in the same figure (c).
, the peak value of h103 is used as is, but h
Since the peak value of 104 is smaller than the previous peak value h103, the previous peak value h103 is used as it is without using h104 as the envelope information. Since similar processing is performed thereafter, smooth envelope information can be obtained.

ゲートオフ検出処理は、第10図に示すように行なわれ
、第8図に示したステップS5.6.7゜8.9と同一
のステップS5b、6b、7b、8b、9bを実行して
、レジスタH1の記憶値のレジスタHNへの転送、新た
なディジタルピーク情報h(i)のレジスタHIへの記
憶、レジスタH1,HNのうち値の大きいもののレジス
タHMへの転送を行なう。
The gate-off detection process is performed as shown in FIG. 10, and steps S5b, 6b, 7b, 8b, and 9b, which are the same as steps S5, 6, 7, and 8.9 shown in FIG. The stored value of H1 is transferred to register HN, new digital peak information h(i) is stored in register HI, and the one with a larger value among registers H1 and HN is transferred to register HM.

そして、今回のピーク値が前回のピーク値に等しいか小
さい場合、即ちレジスタHMにレジスタHNの記憶値が
転送された場合には、ステップS8bに続いて、第8図
のステップSllと同一のステップ5llbを実行して
変化係数R(i)を算出する。
If the current peak value is equal to or smaller than the previous peak value, that is, if the stored value of the register HN is transferred to the register HM, then step S8b is followed by the same step as step Sll in FIG. 5llb is executed to calculate the change coefficient R(i).

たたし、この場合、変化係数R(i)は全て負の値とな
る。次に、このR(i)を用いて、減衰積算係数5(i
)を下式に基いて算出する(ステップ515)。
However, in this case, the change coefficients R(i) are all negative values. Next, using this R(i), attenuation integration coefficient 5(i
) is calculated based on the following formula (step 515).

5(i)= drx 5(i−1) −R(i)ここて
、drは、もし全く同し値のティシタルピク情報か続い
た場合、R(i)の値が0となり、5(i)の値が変動
せず、誤動作する可能性かあるのて、これを防止するた
めものて、その値は実験的に定められ、例えば0.88
乃至0.99の範囲内の値とすることかできる。
5(i) = drx 5(i-1) -R(i) Here, dr is, if the same value of national pic information continues, the value of R(i) becomes 0, and 5(i) To prevent this, the value is determined experimentally, for example, 0.88.
The value can be within the range of 0.99 to 0.99.

また、今回のピーク値が前回のピーク値より大きい場合
、即ちレジスタHMにレジスタHlの記憶値が転送され
た場合、ステップS9bに続いて、5(i)の値をOと
する(ステ・ンブ516)。これは、今回のピーク値が
前回のピーク値より大きいということは、入力波形信号
か増加傾向を示しており、これを5(i)として累積す
ると、速やかにゲートオフを検出てきなくなるので、5
(i)は入力波形信号か減衰傾向を示しているときのみ
算出するようにするためである。
Further, if the current peak value is larger than the previous peak value, that is, if the stored value of the register Hl is transferred to the register HM, the value of 5(i) is set to O following step S9b. 516). This is because the fact that the current peak value is larger than the previous peak value indicates that the input waveform signal is increasing, and if this is accumulated as 5(i), gate-off will not be detected promptly.
This is because (i) is calculated only when the input waveform signal shows an attenuation tendency.

これらステップ316または15に続いて、5(i)が
レジスタSLに設定されている閾値5(Ii■)よりも
大きいか判断する(ステップ517)。この答かNOで
あると、このルーチンを終了し、この答かYESである
と、ゲートオフ処理を行なって、ゲートオフ信号を発生
する(ステップ518)。
Following these steps 316 or 15, it is determined whether 5(i) is larger than the threshold value 5(Ii) set in the register SL (step 517). If the answer is NO, this routine ends; if the answer is YES, gate-off processing is performed and a gate-off signal is generated (step 518).

例えば第6図に示すような入力波形信号であり、drを
0.97に、閾値5(lie)を1.5に設定した場合
、各ピーク値h201.202・・・・・・を同図に示
した値とすると、h202(−61)は、前回のピーク
値h201(=SS)よりも大きくなっているので、5
(i)はOとされ、h20:](=57)において変化
係数R(i)は−0,0656[−(57−61)/6
11となり、5(i)は0.0656となる。
For example, if the input waveform signal is as shown in Fig. 6, and the dr is set to 0.97 and the threshold value 5 (lie) is set to 1.5, each peak value h201, 202, etc. Assuming the value shown in , h202 (-61) is larger than the previous peak value h201 (=SS), so 5
(i) is O, and the change coefficient R(i) at h20: ] (=57) is -0,0656 [-(57-61)/6
11, and 5(i) becomes 0.0656.

h204(−57)において変化係数R(i)はOであ
り、前回の5(i)の値0.0656に0.97を乗算
した値0.0636からOか減算され、5(i)は0.
0636となる。以下同様にして5(i)か順次演算さ
れ、この例てはh214(−5)のときに5(i)か閾
値S(Iim)である1、5を超えて、ゲートオフ信号
か発生される。
At h204(-57), the change coefficient R(i) is O, and O is subtracted from the value 0.0636 obtained by multiplying the previous 5(i) value 0.0656 by 0.97, and 5(i) is 0.
It becomes 0636. Thereafter, 5(i) is calculated sequentially in the same way, and in this example, when h214(-5), 5(i) exceeds the threshold S(Iim) of 1,5, and a gate off signal is generated. .

以上のようにして、この実施例ではゲートオン信号、ゲ
ートオフ信号、エンベロープ情報か発生し、これらか音
源部に供給されて、ゲートオン信号によって楽音の発音
か開始され、エンベロープ情報によって発音された楽音
のエンベロープか制御され、ゲートオフ信号によって楽
音の消音か行なわれる。
As described above, in this embodiment, a gate-on signal, a gate-off signal, and envelope information are generated, and these are supplied to the sound source section, and the sound generation of musical tones is started by the gate-on signal, and the envelope information of the generated musical tones is generated by the envelope information. is controlled, and the tone is muted by the gate-off signal.

上記の実施例ては、ケートオンや、ケートオフの検出処
理に変化係数R(i)を用いたが、これに替えて、レジ
スタHNに記憶されている前回のピーク値とレジスタH
1に記憶されている今回のピーク値との比を算出して用
いてもよい。無論、この場合、ゲートオン検出処理ては
算出した比と閾値R(li璽)との比較を行ない、ゲー
トオフ検出処理ては算出した比を積算し、この積算値を
閾値5(lie)と比較する。この場合、上記実施例と
同様に今回のピーク値が前回のピーク値より大きくなっ
た場合、積算値を0としてもよいし、この積算値にdr
を乗算してもよい。また、ゲートオフの検出の場合、レ
ジスタHIに記憶されている今回のピーク値と、レジス
タHNに記憶されている前回のピーク値とを比較し、今
回のピーク値が小さければ、別途に設けたカウンタのカ
ウント値をまたけ進めるように構成し、そのカウント値
が予め設定した値になったとき、ゲートオフ信号を発生
するようにしてもよい。この場合も上記の実施例と同様
に今回のピーク値が前回のピーク値より大きくなると、
カウンタをリセットしてもよい。
In the above embodiment, the change coefficient R(i) is used in the detection process of Kate-on and Kate-off, but instead of this, the previous peak value stored in the register HN and the register H
1 may be calculated and used. Of course, in this case, in the gate-on detection process, the calculated ratio is compared with the threshold R (li), and in the gate-off detection process, the calculated ratio is integrated, and this integrated value is compared with the threshold 5 (li). . In this case, if the current peak value is larger than the previous peak value, as in the above embodiment, the integrated value may be set to 0, or this integrated value may be
may be multiplied by In addition, in the case of gate-off detection, the current peak value stored in register HI is compared with the previous peak value stored in register HN, and if the current peak value is small, a separately provided counter is The gate-off signal may be generated when the count value reaches a preset value. In this case, as in the above example, if the current peak value is larger than the previous peak value,
You may also reset the counter.

[発明の効果] 以上のように、本発明のうち請求項1乃至3記載の発明
によれば、ピーク値の絶対値が予め定めた閾値よりも大
きく、かつ今回のピーク値と前回のピーク値との変化状
態か所定の閾値以上に変化している場合に発音指示を発
生するように構成しているのて、ピーク値にノイズか重
畳されていたり、高調波の位相の変化によってピーク値
が変化したりしても、正確に発音指示を与えることがて
きる。
[Effects of the Invention] As described above, according to the invention according to claims 1 to 3 of the present invention, the absolute value of the peak value is larger than the predetermined threshold, and the current peak value and the previous peak value are different from each other. Since the configuration is configured to generate a sound generation instruction when the change state or the change exceeds a predetermined threshold value, it is possible that noise is superimposed on the peak value or that the peak value is changed due to a change in the phase of the harmonic. Even if the pronunciation changes, it is possible to give accurate pronunciation instructions.

また請求項4乃至7記載の発明によれば、ピーク値の変
化状態か入力波形信号か減少傾向を呈しているときに、
消音指示を与えるので、やはり確実に消音指示を与える
ことかてきる。
Further, according to the invention described in claims 4 to 7, when the peak value is changing or the input waveform signal is showing a decreasing tendency,
Since a mute instruction is given, it is possible to reliably give a mute instruction.

また請求項8記載の発明によれば、今回のピーり値が前
回のピーク値よりも大きいとき、今回のピーク値をエン
ベロープ情報として出力し、今回のピーク値が前回のピ
ーク値よりも小さいときには前回のピーク値を今回のエ
ンベロープ情報として出力しているので、複雑な関数計
算か不要であり、迅速にエンベロープ情報を出力てきる
上に、滑らかなエンベロープ情報を出力することかでき
る。
According to the invention as set forth in claim 8, when the current peak value is larger than the previous peak value, the current peak value is output as envelope information, and when the current peak value is smaller than the previous peak value, the current peak value is output as envelope information. Since the previous peak value is output as the current envelope information, there is no need for complicated function calculations, and envelope information can be output quickly and smooth envelope information.

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

第1図は本発明による電子楽器のフロック図、第2図は
本発明の一実施例のブロック図、第3図は同実施例て使
用するマイクロコンピュータのワーキンクメモリの一部
を示す図、第4図は同実施例てのゲートオン検出時のア
ナログ波形データを示す図、第5図は同実施例でのエン
ベロープカーブ検出時のアナログ波形データを示す図、
第6図は同実施例てのゲートオフ検出時のアナログ波形
データを示す図、第7図は同実施例のインターラブドル
ーチンを示すフローチャート、第8図はゲートオン検出
処理ルーチンのフローチャート、第9図はエンベロープ
検出処理ルーチンのフローチャート、第10図はゲート
オフ検出処理ルーチンのフローチャートである。 2・・・・ピーク検出手段、4・・・・変化検出手段、
6・・・・発音指示手段、8・・・・消音指示手段、1
o・・・・エンベロープ情報発生手段。 特許出願人 ローランド株式会社 代  理  人  清  水   哲  ほか2多電 
1  図 vJ21] 第 3!l] 第 第10
FIG. 1 is a block diagram of an electronic musical instrument according to the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, and FIG. 3 is a diagram showing a part of the working memory of a microcomputer used in the embodiment. FIG. 4 is a diagram showing analog waveform data at the time of gate-on detection in the same embodiment, and FIG. 5 is a diagram showing analog waveform data at the time of envelope curve detection in the same embodiment.
FIG. 6 is a diagram showing analog waveform data at the time of gate-off detection in the same embodiment, FIG. 7 is a flowchart showing the interwoven routine of the same embodiment, FIG. 8 is a flowchart of the gate-on detection processing routine, and FIG. FIG. 10 is a flowchart of the envelope detection processing routine. FIG. 10 is a flowchart of the gate-off detection processing routine. 2...Peak detection means, 4...Change detection means,
6... Pronunciation instruction means, 8... Mute instruction means, 1
o...Envelope information generation means. Patent applicant: Roland Co., Ltd. Representative: Tetsu Shimizu, and 2 others
1 Figure vJ21] 3rd! l] No. 10

Claims (8)

【特許請求の範囲】[Claims] (1)入力信号のピーク値を順次検出するピーク値検出
手段と、上記ピーク値が検出されるごとにそのピーク値
と前回に検出されたピーク値との変化状態を検出する変
化検出手段と、上記ピーク値の絶対値が予め定めた第1
の閾値以上であって上記変化状態が第2の閾値以上に変
化したとき発音指示を発生する発音指示手段とを、具備
する電子楽器。
(1) peak value detection means for sequentially detecting peak values of an input signal; change detection means for detecting a change state between the peak value and the previously detected peak value each time the peak value is detected; The absolute value of the above peak value is the predetermined first
and a sound generation instruction means for generating a sound generation instruction when the change state changes to a second threshold value or more.
(2)請求項1記載の電子楽器において、上記変化検出
手段が、前回と今回のピーク値のそれぞれの絶対値の差
を、前回と今回のピーク値の絶対値のうち大きいもので
除算して変化率を算出するものであることを特徴とする
電子楽器。
(2) In the electronic musical instrument according to claim 1, the change detection means divides the difference between the absolute values of the previous and current peak values by the larger of the absolute values of the previous and current peak values. An electronic musical instrument characterized by calculating a rate of change.
(3)請求項1記載の電子楽器において、上記変化検出
手段が、前回と今回のピーク値の絶対値の比を算出する
ものであることを特徴とする電子楽器。
(3) The electronic musical instrument according to claim 1, wherein the change detection means calculates a ratio of the absolute values of the previous and current peak values.
(4)入力信号のピーク値を順次検出するピーク値検出
手段と、上記ピーク値が検出されるごとにそのピーク値
と前回に検出されたピーク値との変化状態を検出する変
化検出手段と、上記順次検出された各変化状態が上記入
力信号の減衰傾向を示しているとき消音指示を発生する
消音指示手段とを、具備する電子楽器。
(4) peak value detection means for sequentially detecting peak values of an input signal; and change detection means for detecting a state of change between the peak value and the previously detected peak value each time the peak value is detected; an electronic musical instrument comprising mute instruction means for generating a mute instruction when each of the sequentially detected change states indicates a tendency of attenuation of the input signal.
(5)請求項4記載の電子楽器において、上記変化検出
手段が、前回と今回のピーク値のそれぞれの絶対値の差
を、前回と今回のピーク値の絶対値のうち大きいもので
除算して、変化率を算出するものであり、上記消音指示
手段が、上記変化率を積算する手段と、その積算備が予
め定めた閾値以上になったときに消音指示を発生する比
較手段とを、具備することを特徴とする電子楽器。
(5) In the electronic musical instrument according to claim 4, the change detection means divides the difference between the absolute values of the previous and current peak values by the larger one of the absolute values of the previous and current peak values. , the muffling instruction means includes means for accumulating the change rate, and comparison means for generating a muffling instruction when the accumulating capacity exceeds a predetermined threshold. An electronic musical instrument characterized by:
(6)請求項4記載の電子楽器において、上記変化検出
手段が、前回と今回のピーク値のそれぞれの絶対値の比
を算出する手段であり、上記消音指示手段が、上記比を
積算する手段と、その積算値が予め定めた閾値以上のと
きに発音指示を与える比較手段とを、具備することを特
徴とする電子楽器。
(6) The electronic musical instrument according to claim 4, wherein the change detection means is means for calculating a ratio of the absolute values of the previous and current peak values, and the mute instruction means is means for integrating the ratios. 1. An electronic musical instrument comprising: and a comparison means for giving a sound generation instruction when the integrated value is greater than or equal to a predetermined threshold.
(7)請求項4記載の電子楽器において、上記変化検出
手段が、前回のピーク値の絶対値より今回のピーク値の
絶対値が小さいときに出力信号を生じる比較手段からな
り、上記消音指示手段が上記出力の発生回数を計数し、
その計数値が所定値に達したときに消音指示を発生する
手段からなることを特徴とする電子楽器。
(7) The electronic musical instrument according to claim 4, wherein the change detecting means comprises a comparing means for generating an output signal when the absolute value of the current peak value is smaller than the absolute value of the previous peak value, and the muting instructing means counts the number of occurrences of the above output,
An electronic musical instrument comprising means for generating a mute instruction when the counted value reaches a predetermined value.
(8)入力信号のピーク値を順次検出するピーク値検出
手段と、上記ピーク値が検出されるごとにそのピーク値
と前回に検出されたピーク値との変化状態を検出する変
化検出手段と、今回検出されたピーク値が前回検出され
たピーク値よりも増加していることを上記変化状態が表
わしているとき今回のピーク値を上記入力信号のエンベ
ロープ情報として出力し、今回検出されたピーク値が前
回検出されたピーク値よりも減少していることを上記変
化状態が表わしているとき前回のピーク値を上記エンベ
ロープ情報として出力するエンベロープ情報発生手段と
を、具備する電子楽器。
(8) peak value detection means for sequentially detecting peak values of the input signal; and change detection means for detecting a change state between the peak value and the previously detected peak value each time the peak value is detected; When the above change state indicates that the currently detected peak value has increased compared to the previously detected peak value, the current peak value is output as the envelope information of the input signal, and the currently detected peak value is envelope information generating means for outputting the previous peak value as the envelope information when the change state indicates that the peak value has decreased from the previously detected peak value.
JP2164892A 1990-06-22 1990-06-22 Electronic musical instrument Pending JPH0456897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2164892A JPH0456897A (en) 1990-06-22 1990-06-22 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2164892A JPH0456897A (en) 1990-06-22 1990-06-22 Electronic musical instrument

Publications (1)

Publication Number Publication Date
JPH0456897A true JPH0456897A (en) 1992-02-24

Family

ID=15801860

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2164892A Pending JPH0456897A (en) 1990-06-22 1990-06-22 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JPH0456897A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH096340A (en) * 1995-01-12 1997-01-10 Blue Chip Music Gmbh Method and apparatus for recognition of start and end of sound

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH096340A (en) * 1995-01-12 1997-01-10 Blue Chip Music Gmbh Method and apparatus for recognition of start and end of sound

Similar Documents

Publication Publication Date Title
US7113606B2 (en) Adjustable harmonic distortion detector and method for using the same
US6370255B1 (en) Loudness-controlled processing of acoustic signals
US5367120A (en) Musical tone signal forming device for a stringed musical instrument
WO2015166981A1 (en) Pitch information generation device, pitch information generation method, program, and computer-readable recording medium
JPH0456897A (en) Electronic musical instrument
JPS63234699A (en) Sound field correcting device
US7254245B2 (en) Circuit and method for adaptation of hearing device microphones
JPH05160653A (en) Automatic gain controller
JP2002055681A (en) Nonlinear distortion adding device
RU2279758C2 (en) Adaptive equalizer
JPH07110687A (en) Pitch information detecting device
JPH055760Y2 (en)
JPH0895567A (en) Harmonic adding device
JP3791743B2 (en) Calibration method for peak / peak voltage measuring device and peak / peak voltage measuring device using this calibration method
JP4177492B2 (en) Audio signal mixer
JP3342740B2 (en) Speech recognition device used in noisy environment
US20210249028A1 (en) Method and an audio processing unit for detecting a tone
JP3687097B2 (en) Acoustic signal distortion device
JP3713289B2 (en) Digital signal processing method
JPH10198355A (en) Frequency detector
JPH0415404B2 (en)
JPS59131329A (en) Digital type automatic blood pressure measuring apparatus
JP2962066B2 (en) Voice analyzer
JP3134587B2 (en) Effect adding device and effect adding method
JP3358275B2 (en) Silencer