JPH11352967A - Sound effect adder - Google Patents

Sound effect adder

Info

Publication number
JPH11352967A
JPH11352967A JP10179600A JP17960098A JPH11352967A JP H11352967 A JPH11352967 A JP H11352967A JP 10179600 A JP10179600 A JP 10179600A JP 17960098 A JP17960098 A JP 17960098A JP H11352967 A JPH11352967 A JP H11352967A
Authority
JP
Japan
Prior art keywords
level
waveform
input
output
volume
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
JP10179600A
Other languages
Japanese (ja)
Inventor
Teruo Jinbo
輝雄 神保
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 JP10179600A priority Critical patent/JPH11352967A/en
Publication of JPH11352967A publication Critical patent/JPH11352967A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PROBLEM TO BE SOLVED: To enhance an SN ratio by outputting a compressed wave form to the next stage when it is smaller than a limit, and by supplying the limit to the next stage when it exceeds the limit. SOLUTION: A musical sound wave form W from a sound source is multiplied by an output level coefficient α to generate a wave form Wα, in a digital signal processor(DSP). When the wave form Wα is a threshold TH or less, both a threshold determining circuit 22 and a limit determining circuit 28 output select signals SEL1, SEL2 of '0', and a selector 30 selects the wave form Wαsupplied to an input terminal A to output it to the next stage D/A converter. On the other hand, when the waveform Wα exceeds the threshold TH to be the limit LT, the determining circuit 22 outputs the select signal SEL1 of '1', the determining circuit 28 outputs the select signal SEL2 of '0', and the selector 30 selects a wave form Wαβ+γ supplied to an input terminal B to output it to the next stage D/A converter.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、電子楽器などに用
いて好適な効果付加装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an effect adding device suitable for use in electronic musical instruments and the like.

【0002】[0002]

【従来の技術】従来より、入力される波形レベルが過大
な場合に、その波形レベルを抑えて出力波形歪みを回避
する、所謂リミッタ効果を付加する効果付加装置とし
て、例えば図13に図示する構成のものが知られてい
る。この図において、81は音源側(図示略)から供給
される楽音波形Wと、出力レベルレジスタ80にストア
される係数outとを乗算して、レベル設定された波形
W・outを出力する乗算器である。82は本装置の後
段に設けられるD/A変換器の変換ビット数(ダイナミ
ックレンジ幅)で決るリミットレベルと波形W・out
とを大小比較した結果に応じたセレクト信号SELを発
生するリミットレベル判定手段である。84は入力端A
に波形W・outが供給される一方、リミットレジスタ
83から読み出される固定的なリミット値が入力端Bに
供給され、上記セレクト信号SELに応じて入力端A,
Bのいずれかを選択して出力するセレクタである。
2. Description of the Related Art Conventionally, as an effect adding device for adding a so-called limiter effect to prevent an output waveform distortion by suppressing an input waveform level when the input waveform level is excessive, for example, a configuration shown in FIG. Are known. In this figure, a multiplier 81 multiplies a musical tone waveform W supplied from a sound source side (not shown) by a coefficient out stored in an output level register 80, and outputs a level-set waveform W · out. It is. Reference numeral 82 denotes a limit level determined by the number of conversion bits (dynamic range width) of a D / A converter provided at a subsequent stage of the apparatus, and a waveform W.out.
Is a limit level judging means for generating a select signal SEL according to the result of the comparison between the two. 84 is an input terminal A
Is supplied to the input terminal B, and a fixed limit value read from the limit register 83 is supplied to the input terminal B, and the input terminals A,
A selector that selects and outputs any one of B.

【0003】上記構成によれば、波形W・outがD/
A変換器の変換ビット数で決るリミットレベル以下であ
ると、セレクタ84の入力端A側に供給される波形W・
outが選択されてそのまま次段へ出力され、一方、波
形W・outがリミットレベルを超えた時には入力端B
側に供給される固定的なリミット値が次段に出力され、
このようにすることで図14に図示する入出力特性を実
現している。
According to the above configuration, the waveform W.out is D /
If it is below the limit level determined by the number of conversion bits of the A converter, the waveform W ·
out is selected and output as it is to the next stage. On the other hand, when the waveform Wout exceeds the limit level, the input terminal B
The fixed limit value supplied to the side is output to the next stage,
By doing so, the input / output characteristics shown in FIG. 14 are realized.

【0004】[0004]

【発明が解決しようとする課題】ところで、このような
入出力特性を持つ従来の効果付加装置では、頻繁にリミ
ッタ領域に入るような波形W・outがあると、リミッ
トされる毎に波形値が固定的なリミット値に置換される
為、本来の波形とは掛離れた楽音的に不自然な聞きづら
い雑音となる弊害がある。一方、そうした弊害を回避す
る為には、リミット値を高めに設定しておけば良い訳で
あるが、そうすると今度は、入力レベルが小さい波形、
例えば、単音をピアニシモで弾くような小さな音の場
合、次段のD/A変換器において十分なダイナミックレ
ンジを確保できず、結果としてSN比が低下する問題が
生じる。
In the conventional effect adding device having such input / output characteristics, if there is a waveform W.out that frequently enters the limiter area, the waveform value is changed every time the limit is reached. Since it is replaced with a fixed limit value, there is a problem that musically unnatural noise that is hard to hear is separated from the original waveform. On the other hand, in order to avoid such adverse effects, it is only necessary to set a higher limit value.
For example, in the case of a small sound in which a single sound is played by a pianissimo, a sufficient dynamic range cannot be secured in the next stage D / A converter, and as a result, there is a problem that the SN ratio is reduced.

【0005】そこで本発明は、このような事情に鑑みて
なされたもので、SN比の低下や波形歪みを防止するこ
とができる効果付加装置を提供することを目的としてい
る。
The present invention has been made in view of such circumstances, and an object of the present invention is to provide an effect adding device capable of preventing a decrease in an SN ratio and a waveform distortion.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、請求項1に記載の発明では、前段から供給される入
力波形のレベルが次段のD/A変換器の最大入力レベル
を超過する場合に、その入力波形のレベルを前記最大入
力レベルに相当するリミット値に置換して波形歪みを抑
止する効果付加装置において、前記入力波形が第1のレ
ベルを超えたか否かを判断し、第1のレベルより小さい
場合にはその入力波形をそのまま次段へ出力し、一方、
第1のレベルを超えた場合には当該入力波形を圧縮波形
に変換する第1のレベル判定手段と、この第1のレベル
判定手段によって変換された圧縮波形が前記リミット値
を超えたか否かを判断し、リミット値より小さい場合に
はその圧縮波形を次段へ出力し、一方、リミット値を超
えた場合には当該リミット値を次段に供給する第2のレ
ベル判定手段とを具備することを特徴とする。
In order to achieve the above object, according to the first aspect of the present invention, the level of the input waveform supplied from the preceding stage exceeds the maximum input level of the D / A converter of the following stage. In such a case, in the effect adding device that replaces the level of the input waveform with a limit value corresponding to the maximum input level and suppresses waveform distortion, it is determined whether the input waveform has exceeded a first level. If the level is smaller than 1, the input waveform is output to the next stage as it is.
First level determining means for converting the input waveform into a compressed waveform when the first level is exceeded, and determining whether the compressed waveform converted by the first level determining means has exceeded the limit value; A second level judging means for judging and outputting the compressed waveform to the next stage when the value is smaller than the limit value, and supplying the limit value to the next stage when the value exceeds the limit value. It is characterized by.

【0007】上記請求項1に従属する請求項2に記載の
発明によれば、前記第1のレベル判定手段は、入力波形
が第1のレベルを超えた場合、その入力波形に対して乗
算係数βを乗算した後に加算係数γを加算して圧縮波形
に変換することを特徴としている。
According to the second aspect of the present invention, when the input waveform exceeds the first level, the first level determining means multiplies the input waveform by a multiplication factor. After multiplying by β, an addition coefficient γ is added to convert to a compressed waveform.

【0008】また、好ましい態様として請求項3に記載
の発明によれば、前記第1のレベル判定手段は、入力波
形のレベルに応じて第1のレベルを異ならせることを特
徴とする請求項1記載の効果付加装置。
According to a preferred aspect of the present invention, the first level determining means changes the first level in accordance with the level of the input waveform. The effect adding device according to the above.

【0009】さらに、請求項4に記載の発明によれば、
前記第1のレベル判定手段は、音量出力を調整するボリ
ューム操作子の操作量に応じて第1のレベルを異ならせ
ることを特徴とする。
Further, according to the invention described in claim 4,
The first level determining means varies the first level according to the operation amount of a volume operator for adjusting a volume output.

【0010】加えて、請求項5に記載の発明によれば、
前記第1のレベル判定手段は、入力波形を圧縮波形に変
換する際に用いる乗算係数βおよび加算係数γを、当該
入力波形のレベルに応じて異ならせることを特徴とす
る。
[0010] In addition, according to the invention described in claim 5,
The first level determination unit is characterized in that a multiplication coefficient β and an addition coefficient γ used when converting an input waveform into a compressed waveform are changed according to the level of the input waveform.

【0011】本発明では、入力波形が第1のレベルより
小さければそのまま次段に出力され、第1のレベルを超
えると圧縮波形に変換されて、次段のD/A変換器の最
大入力レベルに相当するリミット値と大小比較され、リ
ミット値より小さければ圧縮波形が次段に出力され、リ
ミット値を超えると当該リミット値が次段に供給される
ようにしたので、第1のレベルを超えてリミット値に至
るコンプレッサ領域を備えることとなり、この為、従来
ではリミッタ領域に入るようなレベルの入力波形であっ
ても、このコンプレッサ領域にてそのレベルを圧縮させ
るから、波形歪みを改善でき、しかもリミット値をD/
A変換器の最大入力レベルに一致させるよう高めに設定
するから、レベルの小さな入力波形についても、次段の
D/A変換器において十分なダイナミックレンジを確保
でき、これ故、SN比の向上を図ることが可能になる。
According to the present invention, if the input waveform is smaller than the first level, it is output to the next stage as it is, and if it exceeds the first level, it is converted into a compressed waveform, and the maximum input level of the next stage D / A converter is converted. Is compared with the limit value, and if it is smaller than the limit value, the compressed waveform is output to the next stage. If the limit value is exceeded, the limit value is supplied to the next stage. Therefore, even if the input waveform has a level that falls within the limiter area in the past, the level is compressed in the compressor area, so that the waveform distortion can be improved. Moreover, the limit value is set to D /
Since the setting is made higher to match the maximum input level of the A converter, a sufficient dynamic range can be secured in the next stage D / A converter even for an input waveform having a small level, and therefore, the SN ratio can be improved. It becomes possible to plan.

【0012】[0012]

【発明の実施の形態】本発明による効果付加装置は、周
知の電子楽器の他、コンサートホールやスタジオの音響
効果を制御する音響制御装置などに適用され得る。以下
では、本発明の実施の一形態による電子楽器を実施例と
し、これについて図面を参照して説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The effect adding device according to the present invention can be applied to a sound control device for controlling sound effects in a concert hall or a studio, in addition to a well-known electronic musical instrument. Hereinafter, an electronic musical instrument according to an embodiment of the present invention will be described as an example, which will be described with reference to the drawings.

【0013】A.第1実施例 (1)全体構成 図1は、本発明の第1実施例による電子楽器の構成を示
すブロック図である。この図において、1は押離鍵操作
に応じたキーオン/キーオフ信号、キーコードおよび押
鍵速度(強度)に対応したベロシティ等の演奏情報を発
生する鍵盤である。2は操作パネルであり、パネルスイ
ッチ部2aおよび表示部2bから構成される。パネルス
イッチ部2aは、パネル面に配設される各種スイッチや
ボリューム操作子を備え、各スイッチ操作に対応したス
イッチ信号およびボリューム操作に対応した操作信号を
それぞれ発生する。表示部2bはLCDパネルや複数の
LED(発光素子)から構成され、LCDパネル側には
後述するCPU3から供給される表示制御信号に従って
各種の設定値や動作モードが表示され、一方、複数のL
EDは上記パネルスイッチ部2aの操作状態を表示す
る。
A. First Embodiment (1) Overall Configuration FIG. 1 is a block diagram showing a configuration of an electronic musical instrument according to a first embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a keyboard for generating performance information such as a key-on / key-off signal corresponding to a key press / release operation, a key code, and a velocity corresponding to a key pressing speed (strength). An operation panel 2 includes a panel switch unit 2a and a display unit 2b. The panel switch unit 2a includes various switches and a volume operator disposed on the panel surface, and generates a switch signal corresponding to each switch operation and an operation signal corresponding to the volume operation, respectively. The display unit 2b includes an LCD panel and a plurality of LEDs (light emitting elements). On the LCD panel side, various set values and operation modes are displayed according to a display control signal supplied from a CPU 3 described later.
The ED indicates the operation state of the panel switch unit 2a.

【0014】3は楽器各部を制御するCPUである。4
はCPU3にロードされる各種制御プログラムを記憶す
るROM(プログラムメモリ)である。5はCPU3の
ワークエリアとして用いられるRAM(ワークメモリ)
であり、各種のレジスタやフラグデータが一時記憶され
る。6は周知の波形メモリ読み出し方式によって構成さ
れ、時分割動作する複数の同時発音チャンネルを備える
音源である。この音源6では、鍵盤1から供給される演
奏情報に基づきCPU3が生成する楽音パラメータに従
って波形メモリ7から指定音色の波形データを読み出し
て楽音合成し、これを楽音波形Wとして次段のDSP8
に供給する。
Reference numeral 3 denotes a CPU for controlling each section of the musical instrument. 4
Is a ROM (program memory) for storing various control programs loaded into the CPU 3. 5 is a RAM (work memory) used as a work area of the CPU 3
And various registers and flag data are temporarily stored. Reference numeral 6 denotes a sound source which is constituted by a well-known waveform memory reading method and has a plurality of simultaneous sounding channels which operate in a time-division manner. The tone generator 6 reads out the waveform data of the designated timbre from the waveform memory 7 in accordance with the musical tone parameters generated by the CPU 3 based on the performance information supplied from the keyboard 1 and synthesizes the musical tone.
To supply.

【0015】8はCPU3の制御の下に、音源6から供
給される楽音波形Wについて効果付加するデジタル・シ
グナル・プロセッサ(以下、DSPと略記する)であ
り、その特徴的な構成については追って詳述する。9は
このDSP8から出力される効果付加された楽音波形W
をアナログ形式の楽音信号に変換するD/A変換器であ
る。10はD/A変換器9より出力される楽音信号につ
いて、ノイズ除去を目的としたフィルタリングや、フィ
ルタリングされた楽音信号をボリューム操作に応じて増
幅した後にスピーカから発音するサウンドシステムであ
る。
Reference numeral 8 denotes a digital signal processor (hereinafter abbreviated as DSP) for adding an effect to the tone waveform W supplied from the sound source 6 under the control of the CPU 3, and its characteristic configuration will be described later. Will be described. Reference numeral 9 denotes a tone waveform W added to the effect output from the DSP 8.
Is a D / A converter that converts the sound signal into an analog tone signal. Reference numeral 10 denotes a sound system for filtering a tone signal output from the D / A converter 9 for the purpose of removing noise, amplifying the filtered tone signal in accordance with a volume operation, and then emitting the tone signal from a speaker.

【0016】(2)DSP8の構成 次に、図2を参照してDSP8の構成について説明す
る。この図において、20は出力レベルレジスタであ
り、D/A変換器9のビット精度に対応させた出力レベ
ル係数αがCPU3によりストアされる。21は、音源
6から供給される楽音波形Wと上記出力レベルレジスタ
20から読み出される出力レベル係数αとを乗算して波
形Wαを発生する乗算器である。22は、スレッシュレ
ベルレジスタ23にストアされるスレッシュレベルTH
と波形Wαとを大小比較し、TH≦Wαなる場合に
「1」、それ以外は「0」のセレクト信号SEL1を発
生するスレッシュレベル判定回路である。なお、レジス
タ23にストアされるスレッシュレベルTHは、予め所
定の固定値としてセットしておく態様でも良いし、ある
いは楽音波形Wのレベルもしくはボリューム操作子の操
作量に応じて変化する値としてCPU3が算出してセッ
トする態様としても良い。
(2) Configuration of DSP 8 Next, the configuration of the DSP 8 will be described with reference to FIG. In this figure, reference numeral 20 denotes an output level register, in which an output level coefficient α corresponding to the bit precision of the D / A converter 9 is stored by the CPU 3. A multiplier 21 multiplies the musical tone waveform W supplied from the sound source 6 by the output level coefficient α read from the output level register 20 to generate a waveform Wα. 22 is a threshold level TH stored in a threshold level register 23
And a waveform Wα, and a threshold level determination circuit for generating a select signal SEL1 of “1” when TH ≦ Wα and “0” otherwise. The threshold level TH stored in the register 23 may be set as a predetermined fixed value in advance, or the threshold value TH may be changed by the CPU 3 according to the level of the musical tone waveform W or the operation amount of the volume control. It is good also as a mode which calculates and sets.

【0017】24は、波形Wαに対して、コンプレッサ
乗算係数レジスタ25から読み出されるコンプレッサ乗
算係数βを乗算して波形Wαβを発生する乗算器であ
る。なお、このコンプレッサ乗算係数βは0<β≦1な
る値をとるものであり、その値としては予め所定の固定
値として上記レジスタ25にセットする態様でも良い
し、楽音波形Wのレベルに応じて変化する値としてCP
U3が算出してセットする態様としても良い。26は、
上記乗算器24の出力に、コンプレッサ加算係数レジス
タ27から読み出されるコンプレッサ加算係数γを加算
して波形Wαβ+γを出力する加算器である。
A multiplier 24 multiplies the waveform Wα by a compressor multiplication coefficient β read from the compressor multiplication coefficient register 25 to generate a waveform Wαβ. The compressor multiplication coefficient β takes a value of 0 <β ≦ 1. The value may be set in the register 25 as a predetermined fixed value in advance, or may be set according to the level of the musical tone waveform W. CP as changing value
U3 may be calculated and set. 26 is
This is an adder that adds the compressor addition coefficient γ read from the compressor addition coefficient register 27 to the output of the multiplier 24 and outputs a waveform Wαβ + γ.

【0018】28は、上記加算器26から出力される波
形Wαβ+γと、後段のD/A変換器9(第1図参照)
の変換ビット数で決るリミットレベルLTとを大小比較
し、LT≦Wαβ+γなる場合に「1」、それ以外は
「0」のセレクト信号SEL2を発生するリミットレベ
ル判定回路である。30はセレクト信号SEL1,SE
L2に基づき、入力端A〜Cに供給される信号のいずれ
かを選択して次段へ出力するセレクタである。
Reference numeral 28 denotes a waveform Wαβ + γ output from the adder 26 and the D / A converter 9 at the subsequent stage (see FIG. 1).
Is a limit level judging circuit which compares the magnitude with a limit level LT determined by the number of converted bits, and generates a select signal SEL2 of “1” when LT ≦ Wαβ + γ, and a “0” otherwise. 30 is a select signal SEL1, SE
Based on L2, the selector selects one of the signals supplied to the input terminals A to C and outputs it to the next stage.

【0019】このセレクタ30では、セレクト信号SE
L1,SEL2が共に「0」の場合、つまり、波形Wα
がスレッシュレベルTH以下である時には入力端Aに供
給される波形Wαを選択して次段へ出力する。また、セ
レクト信号SEL1が「1」で、セレクト信号SEL2
が「0」の場合、すなわち、波形Wαがスレッシュレベ
ルTHを超え、かつ波形Wαβ+γがリミットレベルL
T以下である時には入力端Bに供給される波形Wαβ+
γを選択して次段へ出力する。さらに、セレクト信号S
EL1が「1」で、セレクト信号SEL2が「1」の場
合、すなわち、波形Wαβ+γがリミットレベルLTを
超えた時には入力端Cに供給されるリミット値LMTを
選択して次段へ出力する。なお、ここで言うリミット値
LMTとは、D/A変換器9の変換ビット数で決るリミ
ットレベルに対応する値であり、リミット値レジスタ2
9にセットされる固定値を指す。
In the selector 30, the select signal SE
When both L1 and SEL2 are “0”, that is, the waveform Wα
Is below the threshold level TH, the waveform Wα supplied to the input terminal A is selected and output to the next stage. When the select signal SEL1 is “1” and the select signal SEL2 is
Is “0”, that is, the waveform Wα exceeds the threshold level TH, and the waveform Wαβ + γ
T is equal to or less than T, the waveform Wαβ +
γ is selected and output to the next stage. Further, the select signal S
When EL1 is "1" and the select signal SEL2 is "1", that is, when the waveform Wαβ + γ exceeds the limit level LT, the limit value LMT supplied to the input terminal C is selected and output to the next stage. Here, the limit value LMT is a value corresponding to a limit level determined by the number of conversion bits of the D / A converter 9, and the limit value register 2
Points to a fixed value set to 9.

【0020】さて、上記構成によるDSP8では、音源
6から供給される楽音波形Wに対し、D/A変換器9の
ビット精度に対応させた出力レベル係数αを乗算して波
形Wαを生成する。そして、この波形Wαがスレッシュ
レベルTH以下である場合には、スレッシュレベル判定
回路22およびリミットレベル判定回路28は共に
「0」のセレクト信号SEL1,SEL2を出力するの
で、セレクタ30は入力端Aに供給される波形Wαを選
択して次段のD/A変換器9に出力する。一方、波形W
αがスレッシュレベルTHを超え、かつリミットレベル
LT以下の場合には、スレッシュレベル判定回路22が
「1」のセレクト信号SEL1を、リミットレベル判定
回路28が「0」のセレクト信号SEL2をそれぞれ出
力するので、セレクタ30は入力端Bに供給される波形
Wαβ+γを選択して次段のD/A変換器9に出力す
る。そして、波形WαがリミットレベルLTを超えた時
にはスレッシュレベル判定回路22およびリミットレベ
ル判定回路28が共に「1」のセレクト信号SEL1,
SEL2をそれぞれ出力するので、セレクタ30は入力
端Cに供給されるリミット値LMTを選択して次段のD
/A変換器9に出力する。
The DSP 8 configured as described above generates a waveform Wα by multiplying the tone waveform W supplied from the sound source 6 by an output level coefficient α corresponding to the bit precision of the D / A converter 9. When the waveform Wα is equal to or lower than the threshold level TH, the threshold level determination circuit 22 and the limit level determination circuit 28 both output select signals SEL1 and SEL2 of “0”. The supplied waveform Wα is selected and output to the D / A converter 9 at the next stage. On the other hand, the waveform W
When α exceeds the threshold level TH and is equal to or lower than the limit level LT, the threshold level determination circuit 22 outputs the select signal SEL1 of “1” and the limit level determination circuit 28 outputs the select signal SEL2 of “0”. Therefore, the selector 30 selects the waveform Wαβ + γ supplied to the input terminal B and outputs it to the D / A converter 9 at the next stage. When the waveform Wα exceeds the limit level LT, both the threshold level determination circuit 22 and the limit level determination circuit 28 select the select signals SEL1 and SEL1 of “1”.
Since the SEL2 is output, the selector 30 selects the limit value LMT supplied to the input terminal C and selects the limit value LMT at the next stage.
/ A converter 9.

【0021】つまり、このDSP8においては、図3に
図示した入出力特性から判るように、スレッシュレベル
TH迄は、D/A変換器9のビット精度に対応させた出
力レベル係数αが乗算された波形Wαを次段のD/A変
換器9に出力するが、スレッシュレベルTHを超えてリ
ミットレベルLTに至る範囲に入ると、この波形Wαを
波形Wαβ+γ(但し、0≦β<1)にレベル変換する
コンプレッサ領域となる為、従来ではリミッタ領域に入
るようなレベルの波形であっても、このコンプレッサ領
域にてそのレベルを圧縮させるから、波形歪みを改善す
ることが可能になっている。しかも、こうしたことによ
り、リミット値LMTをDAC最大入力に一致させるよ
う高めに設定できる為、例えば、単音をピアニシモで弾
くようなレベルの小さな波形についても、次段のD/A
変換器9において十分なダイナミックレンジを確保で
き、この結果、SN比の向上を図ることができる訳であ
る。
That is, in the DSP 8, as can be seen from the input / output characteristics shown in FIG. 3, the output level coefficient α corresponding to the bit precision of the D / A converter 9 is multiplied up to the threshold level TH. The waveform Wα is output to the D / A converter 9 at the next stage. When the waveform Wα exceeds the threshold level TH and reaches the limit level LT, the waveform Wα is changed to a waveform Wαβ + γ (where 0 ≦ β <1). In the compressor region to be converted, even if the waveform has a level which falls into the limiter region in the past, the level is compressed in the compressor region, so that the waveform distortion can be improved. In addition, since the limit value LMT can be set higher to match the maximum input of the DAC due to the above, for example, even for a waveform having a small level at which a single note is played by pianissimo, the D / A of the next stage is performed.
A sufficient dynamic range can be ensured in the converter 9, and as a result, the SN ratio can be improved.

【0022】なお、この実施例においては、上述したコ
ンプレッサ領域を固定的なものとして説明したが、これ
に限らず、DSP8に供給される楽音波形Wとボリュー
ム操作とに対応させてスレッシュレベルTHを変化させ
ることによって、コンプレッサ領域範囲を可変制御する
態様としても良い。このようにすれば、急激にレベル変
化する波形について十分なダイナミックレンジを確保で
きる上、波形歪みも極力抑えることが可能になる。ま
た、上述した実施例では、コンプレッサ領域における波
形の入出力関係を線形特性で規定したが、これに限定さ
れず、非線形的な特性でコンプレッサ領域における波形
の入出力関係を定義することも勿論可能である。
In this embodiment, the above-mentioned compressor region has been described as being fixed. However, the present invention is not limited to this, and the threshold level TH may be set in correspondence with the tone waveform W supplied to the DSP 8 and the volume operation. By changing the range, the compressor range may be variably controlled. In this way, a sufficient dynamic range can be secured for a waveform whose level rapidly changes, and waveform distortion can be suppressed as much as possible. Further, in the above-described embodiment, the input / output relationship of the waveform in the compressor region is defined by the linear characteristic. However, the present invention is not limited to this, and it is of course possible to define the input / output relationship of the waveform in the compressor region by nonlinear characteristics. It is.

【0023】B.第2実施例 (1)構成 次に、本発明による第2実施例の構成について図面を参
照して説明する。図4は第2実施例の構成を示すブロッ
ク図であり、上述した第1実施例と共通する各要素には
それぞれ同一の番号を付し、その説明を省略している。
この図に示す第2実施例が、上述の第1実施例と相違す
る点は、ボリューム操作位置を検出し、検出したボリュ
ーム操作位置に応じて、DSP8が音量に依存した人間
の聴感特性を補うようにコンプレッサ効果を付加するこ
とにあり、以下そうした構成について説明して行く。
B. 2. Second Embodiment (1) Configuration Next, a configuration of a second embodiment according to the present invention will be described with reference to the drawings. FIG. 4 is a block diagram showing the configuration of the second embodiment. Elements common to the first embodiment described above are denoted by the same reference numerals, and description thereof is omitted.
The difference between the second embodiment shown in this figure and the first embodiment is that the volume operation position is detected, and the DSP 8 compensates for the volume-dependent human auditory characteristics according to the detected volume operation position. Thus, the compressor effect is added, and such a configuration will be described below.

【0024】まず図4において、10aはD/A変換器
9から出力されるアナログ形式の楽音波形に対してノイ
ズ除去を目的としたフィルタリングを施すアナログフィ
ルタである。10bは音量出力レベルを調節するボリュ
ーム操作子を備えるボリューム回路である。10cは上
記ボリューム操作子の操作位置を検出するボリューム位
置検出回路である。ボリューム回路10bおよびボリュ
ーム位置検出回路10cは図5に図示する回路構成をな
している。
First, in FIG. 4, reference numeral 10a denotes an analog filter for filtering an analog musical tone waveform output from the D / A converter 9 for the purpose of removing noise. 10b is a volume circuit provided with a volume operator for adjusting the volume output level. A volume position detection circuit 10c detects the operation position of the volume operator. The volume circuit 10b and the volume position detection circuit 10c have a circuit configuration shown in FIG.

【0025】すなわち、図5に示す通り、ボリューム回
路10bには2連可変抵抗VR1,VR2が設けられて
おり、ボリューム操作に応じてこの2連可変抵抗VR
1,VR2の可動子側が摺動すると、一方の可変抵抗V
R1ではこれに応じてアナログフィルタ10aの出力を
レベル制御して次段のアンプ10dに供給する。これに
対して、他方の可変抵抗VR2では基準電圧Vrefを分
圧してボリューム位置検出回路10c側が備えるA/D
変換器10c−1に入力する。これにより、A/D変換
器10c−1は、ボリューム操作に対応して基準電圧V
refから分圧された電圧データDrefを発生する。そし
て、ボリューム位置検出回路10cではこの電圧データ
Drefをボリューム操作位置に変換してCPU3に供給
する。
That is, as shown in FIG. 5, the volume circuit 10b is provided with dual variable resistors VR1 and VR2.
1 and VR2 slide, the one variable resistor V
R1 controls the level of the output of the analog filter 10a in response to this and supplies the output to the next-stage amplifier 10d. On the other hand, the other variable resistor VR2 divides the reference voltage Vref to divide the A / D provided in the volume position detection circuit 10c.
Input to converter 10c-1. As a result, the A / D converter 10c-1 applies the reference voltage V
It generates voltage data Dref divided from ref. Then, the volume position detection circuit 10c converts the voltage data Dref into a volume operation position and supplies it to the CPU 3.

【0026】なお、電圧データDrefをボリューム操作
位置に変換する態様としては、例えば、ROM等を用い
て、予め電圧データDrefとボリューム操作位置とを対
応付けたデータテーブルを設けておき、A/D変換器1
0c−1から電圧データDrefが出力される毎に、この
電圧データDrefを読み出しアドレスとして、変換され
たボリューム操作位置をデータテーブルから読み出す態
様としても良いし、あるいはA/D変換器10c−1が
出力する電圧データDrefをそのままCPU3に入力さ
せ、CPU3にて電圧データDrefをボリューム操作位
置に変換するようにしても良い。
As a mode of converting the voltage data Dref into a volume operation position, for example, a data table in which the voltage data Dref is associated with the volume operation position is provided in advance using a ROM or the like, and the A / D Converter 1
Each time the voltage data Dref is output from 0c-1, the voltage data Dref may be used as a read address to read the converted volume operation position from the data table, or the A / D converter 10c-1 The voltage data Dref to be output may be directly input to the CPU 3 and the CPU 3 may convert the voltage data Dref into a volume operation position.

【0027】次に、以上のようにして検出されるボリュ
ーム操作位置に基づき、音量に依存した人間の聴感特性
を補うようにコンプレッサ効果を付加するDSP8の構
成について図6を参照して説明する。図6において、4
0は出力レベルレジスタであり、D/A変換器9のビッ
ト精度に対応させた出力レベル係数αがCPU3により
ストアされる。41は、音源6から供給される楽音波形
Wと上記出力レベルレジスタ40から読み出される出力
レベル係数αとを乗算して波形Wαを発生する乗算器で
ある。42は、スレッシュレベルレジスタ43にストア
されるスレッシュレベルTHと波形Wαとを大小比較
し、TH≦Wαなる場合に「1」、それ以外は「0」の
セレクト信号SELを発生するスレッシュレベル判定回
路である。レジスタ23にストアされるスレッシュレベ
ルTHは、ボリューム操作位置に応じて変化する値とし
てCPU3が算出してセットするようになっている。
Next, referring to FIG. 6, a description will be given of a configuration of the DSP 8 which adds a compressor effect based on the volume operation position detected as described above so as to supplement the human audibility characteristic depending on the volume. In FIG. 6, 4
0 is an output level register, and the CPU 3 stores an output level coefficient α corresponding to the bit precision of the D / A converter 9. A multiplier 41 multiplies the musical tone waveform W supplied from the sound source 6 by the output level coefficient α read from the output level register 40 to generate a waveform Wα. A threshold level determination circuit 42 compares the threshold level TH stored in the threshold level register 43 with the waveform Wα, and generates a select signal SEL of “1” if TH ≦ Wα, and “0” otherwise. It is. The CPU 3 calculates and sets the threshold level TH stored in the register 23 as a value that changes according to the volume operation position.

【0028】44は、波形Wαに対して、コンプレッサ
乗算係数レジスタ45から読み出されるコンプレッサ乗
算係数βを乗算して波形Wαβを発生する乗算器であ
る。コンプレッサ乗算係数βはボリューム操作位置に応
じて変化する値、つまり、音量に依存した人間の聴感特
性を補うよう、0≦β<1なる値域をとるものであり、
CPU3によりセットされる。46は加算器であり、上
記乗算器44の出力に、コンプレッサ加算係数レジスタ
47から読み出されるコンプレッサ加算係数γを加算し
て波形Wαβ+γを出力する。このコンプレッサ加算係
数γについても、上記コンプレッサ乗算係数βと同様、
ボリューム操作位置に応じてCPU3が算出してレジス
タセットするようになっている。48は、スレッシュレ
ベル判定回路42から供給されるセレクト信号SELが
「0」の時に入力端Aに供給される波形Wαを、セレク
ト信号SELが「1」の時に入力端Bに供給される波形
Wαβ+γをそれぞれ選択して次段のD/A変換器9に
出力するセレクタである。
A multiplier 44 generates a waveform Wαβ by multiplying the waveform Wα by a compressor multiplication coefficient β read from the compressor multiplication coefficient register 45. The compressor multiplication coefficient β takes a value range that varies according to the volume operation position, that is, a value range of 0 ≦ β <1 so as to compensate for the human auditory characteristics depending on the volume.
Set by CPU3. An adder 46 adds the compressor addition coefficient γ read from the compressor addition coefficient register 47 to the output of the multiplier 44 to output a waveform Wαβ + γ. As for the compressor addition coefficient γ, similarly to the compressor multiplication coefficient β,
The CPU 3 calculates and sets the register according to the volume operation position. Reference numeral 48 denotes a waveform Wα supplied to the input terminal A when the select signal SEL supplied from the threshold level determination circuit 42 is “0”, and a waveform Wαβ + γ supplied to the input terminal B when the select signal SEL is “1”. Are respectively selected and output to the D / A converter 9 at the next stage.

【0029】(2)動作 次に、図7〜図8を参照して第2実施例の動作について
説明する。まず、図示されていないメインルーチンを介
して図7に示すボリューム位置検出処理ルーチンが実行
されると、CPU3はステップSA1に処理を進め、前
述したボリューム位置検出回路10cよりボリューム操
作位置を取得する。なお、このステップSA1において
は、A/D変換器10c−1が出力する電圧データDre
fをそのまま取り込み、CPU3側でこの電圧データDr
efをボリューム操作位置に変換するようにしても良い。
次いで、ステップSA2に進むと、今回取得したボリュ
ーム操作位置が前回取得したものと同一であるか、つま
り、ボリューム操作がなされたかどうかを判断する。こ
こで、今回取得したボリューム操作位置が前回取得した
ものと同一であると、判断結果が「YES」となり、こ
の場合、ボリューム操作がなされていないので、何も処
理せずに本ルーチンを完了する。
(2) Operation Next, the operation of the second embodiment will be described with reference to FIGS. First, when the volume position detection processing routine shown in FIG. 7 is executed via a main routine (not shown), the CPU 3 advances the processing to step SA1, and acquires the volume operation position from the above-described volume position detection circuit 10c. In step SA1, the voltage data Dre output from the A / D converter 10c-1 is output.
f is taken as it is, and the voltage data Dr
ef may be converted to a volume operation position.
Next, in step SA2, it is determined whether the volume operation position acquired this time is the same as that acquired last time, that is, whether the volume operation has been performed. If the currently obtained volume operation position is the same as the previously obtained volume operation position, the determination result is "YES". In this case, since no volume operation has been performed, this routine is completed without performing any processing. .

【0030】一方、ボリューム操作がなされた場合に
は、上記ステップSA2の判断結果が「NO」となり、
ステップSA3に処理を進める。ステップSA3では、
今回取得したボリューム操作位置をRAM5の所定レジ
スタにセットし、続くステップSA4ではこのレジスタ
セットされたボリューム操作位置に基づき、上述したス
レッシュレベルTH、コンプレッサ乗算係数βおよびコ
ンプレッサ乗算係数γを生成し、それらをDSP8中の
対応するレジスタ43,45,47にそれぞれストアす
る。
On the other hand, if the volume operation has been performed, the result of the determination in step SA2 is "NO",
The process proceeds to Step SA3. In step SA3,
The volume operation position obtained this time is set in a predetermined register of the RAM 5. In the subsequent step SA4, the above-described threshold level TH, compressor multiplication coefficient β and compressor multiplication coefficient γ are generated based on the volume operation position set in the register. Is stored in the corresponding registers 43, 45, and 47 in the DSP 8, respectively.

【0031】なお、ボリューム操作位置に基づき、上述
したスレッシュレベルTH、コンプレッサ乗算係数βお
よびコンプレッサ乗算係数γを生成する手法としては、
例えば、図8(イ)に図示するように、各ボリューム操
作位置毎に、聴感特性を補うスレッシュレベルTH、コ
ンプレッサ乗算係数βおよびコンプレッサ乗算係数γを
予め実験的に求めてテーブル化しておく。このようにす
れば、同図(ロ)に示す通り、取得したボリューム操作
位置を読みだしアドレスとして、対応する各係数をテー
ブルから読み出すようにすれば、ボリューム操作位置に
応じた最適な聴感特性になるコンプレッサ効果が実現で
きる。つまり、図8(ロ)に示す一例の場合、ボリュー
ム(音量)が小さければ、スレッシュレベルTHを下げ
ておき、このスレッシュレベルTHを超える入力である
と、それをほぼ一定出力になるよう圧縮することによ
り、”小音量時にその中のさらに小さい音が聴き難くな
る”といった人間の聴感特性を補うコンプレッサ効果を
実現できる。そして、ボリューム(音量)が増加するに
連れてスレッシュレベルTHを上げつつ圧縮比率を下げ
ることで自然な聴感特性としている。
As a method for generating the above-described threshold level TH, compressor multiplication coefficient β and compressor multiplication coefficient γ based on the volume operation position,
For example, as shown in FIG. 8A, a threshold level TH, a compressor multiplication coefficient β, and a compressor multiplication coefficient γ for supplementing the audibility characteristics are obtained experimentally in advance for each volume operation position, and are tabulated. By doing so, as shown in FIG. 11B, by reading out the corresponding coefficients from the table with the obtained volume operation position as the read address, the optimum audibility characteristic according to the volume operation position can be obtained. Compressor effect can be realized. That is, in the case of the example shown in FIG. 8B, if the volume (volume) is low, the threshold level TH is lowered, and if the input exceeds the threshold level TH, the input is compressed so as to have a substantially constant output. This makes it possible to realize a compressor effect that supplements the human audibility characteristics, such as making it harder to hear a smaller sound in a low volume. Then, as the volume (volume) increases, the compression ratio is reduced while the threshold level TH is increased, thereby providing a natural audibility characteristic.

【0032】なお、この第2実施例では、DSP8に入
力される楽音波形Wのレベルにのみ着目して、人間の聴
感特性を補うコンプレッサ効果を付加するようにした
が、これに加えて楽音波形Wの周波数に依存した形で聴
感特性を補うような態様も可能である。つまり、人間の
聴感特性によれば、一定の音圧下(音量)の場合、低域
の周波数では小さく聞え、中域で最も大きく(良く)聞
え、さらに高域になると聞き難くなる傾向がある。そこ
で、こうした聴感特性に鑑みて、楽音波形Wにバンドパ
スフィルタリングを施し、各帯域別にレベル補正してユ
ーザー好みの聴感特性となるよう効果付加することも可
能である。また、このような技術は第2実施例にて示し
た電子楽器に限らず、聴覚が衰えた老齢者向けの補聴器
に適用することも考えられる。
In the second embodiment, a compressor effect for compensating for human hearing characteristics is added by focusing only on the level of the tone waveform W input to the DSP 8, but in addition to this, the tone waveform W is added. A mode in which the auditory characteristics are compensated in a form depending on the frequency of W is also possible. That is, according to the human auditory characteristics, at a certain sound pressure level (volume), the sound tends to be small at low frequencies, loudest (good) at mid frequencies, and difficult to hear at higher frequencies. In view of such audibility characteristics, it is also possible to perform bandpass filtering on the musical tone waveform W and perform level correction for each band to add an effect so that the audibility characteristics desired by the user are obtained. Further, such a technique is not limited to the electronic musical instrument shown in the second embodiment, and may be applied to a hearing aid for elderly people whose hearing has declined.

【0033】C.第3実施例 次に、本発明による第3実施例の構成について図面を参
照して説明する。図9は第3実施例の構成を示すブロッ
ク図であり、ここでは上述した第2実施例と共通する要
素には同一の番号を付し、その説明を省略している。こ
の図に示す第3実施例が、上述の第2実施例と相違する
点は、アンプ10dの出力を外部に供給するラインアウ
ト端子11と、この端子11にプラグ接続された場合に
オン状態に設定されるケーブル接続検出スイッチ11a
とを設け、ラインアウト端子11にプラグ接続されてケ
ーブル接続検出スイッチ11aがオン状態になった時に
はフラットに近い最大音量時の特性に設定し、一方、ケ
ーブル接続検出スイッチ11aがオフ状態時では上述の
第2実施例と同様、ボリューム操作位置に応じた最適な
聴感特性になるコンプレッサ効果を付加することにあ
る。つまり、第3実施例では、使用される音響環境に応
じて効果付加する態様を可変させることを特徴としてい
る。
C. Third Embodiment Next, a configuration of a third embodiment according to the present invention will be described with reference to the drawings. FIG. 9 is a block diagram showing the configuration of the third embodiment. Here, the same elements as those in the above-described second embodiment are denoted by the same reference numerals, and description thereof is omitted. The third embodiment shown in this figure is different from the above-described second embodiment in that a line-out terminal 11 for supplying the output of the amplifier 10d to the outside and an on-state when plugged into this terminal 11 Cable connection detection switch 11a to be set
When the cable connection detection switch 11a is plugged into the line-out terminal 11 and the cable connection detection switch 11a is turned on, the characteristic at the time of the maximum volume near flat is set. On the other hand, when the cable connection detection switch 11a is off, the above-described characteristics are set. As in the case of the second embodiment, the present invention is to add a compressor effect that provides an optimum audibility characteristic according to the volume operation position. That is, the third embodiment is characterized in that the manner in which the effect is added is varied according to the acoustic environment used.

【0034】以下、こうした特徴を有する第3実施例の
動作について図10〜図12を参照して説明する。 メインルーチンの動作 まず、本実施例に電源が投入されると、CPU3はRO
M4に記憶される所定の制御プログラムを自身にロード
した後、図10に示すメインルーチンを実行し、ステッ
プSB1に処理を進める。ステップSB1では、RAM
5に設けられるレジスタやフラグの他、音源6およびD
SP8に設けられる各種レジスタについて初期値セット
やゼロリセットを指示する初期化処理を行う。次いで、
ステップSB2では操作パネルに配設される各種スイッ
チ2の他、上述したケーブル接続検出スイッチ11aに
ついて個々のスイッチ状態を検出するスイッチ処理ルー
チンを実行する。
The operation of the third embodiment having such features will be described below with reference to FIGS. Operation of Main Routine First, when the power is turned on in this embodiment, the CPU 3
After loading the predetermined control program stored in M4 into itself, the main routine shown in FIG. 10 is executed, and the process proceeds to step SB1. In step SB1, the RAM
5, the sound source 6 and the D
Initialization processing for instructing initial value setting and zero reset is performed on various registers provided in SP8. Then
In step SB2, in addition to the various switches 2 arranged on the operation panel, a switch processing routine for detecting the individual switch states of the above-described cable connection detection switch 11a is executed.

【0035】そして、ステップSB3では、上記スイッ
チ処理ルーチンにてケーブル接続検出スイッチ11aが
オン状態にあると検出された場合に、DSP8に対して
フラットに近い最大音量時の特性を設定するよう指示
し、一方、オフ状態にあると検出された場合には上述し
た第2実施例と同様、DSP8に対してボリューム操作
位置に応じた最適な聴感特性になるコンプレッサ効果を
設定するよう指示する。この後、ステップSB4では、
押離鍵操作に応じた楽音を生成するよう指示したり、生
成された楽音について効果付加する等の各種楽音処理を
行った後、上述のステップSB2に処理を戻す。以後、
電源スイッチがオフされる迄、ステップSB2〜SB4
を繰り返す。
In step SB3, when it is detected in the switch processing routine that the cable connection detection switch 11a is on, the DSP 8 is instructed to set a nearly flat characteristic at the maximum volume. On the other hand, when it is detected that the compressor is in the off state, the CPU 8 instructs the DSP 8 to set a compressor effect that provides an optimum audibility characteristic according to the volume operation position, as in the second embodiment. Thereafter, in step SB4,
After performing various tone processing such as instructing generation of a tone according to a key press / release operation and adding an effect to the generated tone, the process returns to step SB2 described above. Since then
Until the power switch is turned off, steps SB2 to SB4
repeat.

【0036】スイッチ処理ルーチンの動作 上述したステップSB2を介して本ルーチンが実行され
ると、CPU3はステップSC1に処理を進め、各種ス
イッチを識別するスイッチ番号を初期化した後、最初の
スイッチ番号に対応したスイッチについてその状態を取
得する。続いて、ステップSC2では、全てのスイッチ
について状態取得し終えたか否かを判断し、取得し終え
た時には判断結果が「YES」となり、本ルーチンを完
了させるが、取得中である時には判断結果が「NO」と
なり、次のステップSC3に処理を進める。
Operation of Switch Processing Routine When this routine is executed through the above-described step SB2, the CPU 3 advances the processing to step SC1, initializes switch numbers for identifying various switches, and sets the first switch number to the first switch number. Get the status of the corresponding switch. Subsequently, in step SC2, it is determined whether or not the status acquisition has been completed for all the switches. When the status acquisition has been completed, the determination result is “YES”, and this routine is completed. "NO", and the process proceeds to the next Step SC3.

【0037】ステップSC3では、取得したスイッチ状
態がオン状態にあるか否かを判断する。ここで、オフ状
態であれば、判断結果が「NO」となり、ステップSC
4に処理を進め、オン中フラグONFおよびNEWオン
フラグNOFをいずれも「0」にセットして両フラグO
NF,NOFを下げる。なお、ここで言うオン中フラグ
ONFとはオン状態が持続されている時に「1」がセッ
トされるフラグを指し、NEWオンフラグNOFとは新
たにオン状態になった時に「1」がセットされるフラグ
を指す。
At step SC3, it is determined whether or not the obtained switch state is the ON state. Here, if it is in the off state, the determination result is “NO”, and step SC
4, the ON flag ONF and the NEW ON flag NOF are both set to "0" and both flags OF
Lower NF and NOF. The ON flag ONF mentioned here indicates a flag that is set to "1" when the ON state is maintained, and the NEW ON flag NOF is set to "1" when the ON state is newly turned on. Points to a flag.

【0038】一方、上記ステップSC3において、取得
したスイッチ状態がオン状態にあると、判断結果は「Y
ES」となり、次のステップSC5に進み、新たにオン
状態になったものか、あるいは継続してオン状態にある
のかを判断する。つまり、NEWオンフラグNOFが
「1」となっているかどうかを判断する。ここで、NE
WオンフラグNOFが「1」でない場合には、判断結果
が「NO」となり、この場合、ステップSC6に処理を
進め、新たにオン状態になった旨を表わすべく、オン中
フラグONFおよびNEWオンフラグNOFを共に
「1」にして両フラグを立てる。
On the other hand, if the obtained switch state is the ON state in step SC3, the judgment result is “Y
ES ", the flow advances to the next Step SC5, and it is determined whether the signal has been newly turned on or has been continuously turned on. That is, it is determined whether or not the NEW ON flag NOF is “1”. Where NE
If the W-on flag NOF is not "1", the determination result is "NO". In this case, the process proceeds to step SC6, where the on-state flag ONF and the new-on flag NOF are set so as to indicate that they are newly turned on. Are both set to "1" to set both flags.

【0039】これに対し、NEWオンフラグNOFが
「1」である場合、すなわち、継続してオン状態にある
と、ステップSC5の判断結果が「YES」となり、ス
テップSC7に処理を進め、オン状態が持続している旨
を表わすべく、オン中フラグONFを「1」にセット
し、NEWオンフラグNOFを「0」にセットする。こ
のようにして、検出したスイッチ状態を表わすようフラ
グ設定すると、CPU3はステップSC8に処理を進
め、次のスイッチについて状態取得する為、スイッチ番
号をインクリメントして歩進させた後、再びステップS
C2に処理を戻し、これ以後、上述した過程を繰り返し
て、歩進したスイッチ番号に対応するスイッチについて
その状態を順次取得して行く。
On the other hand, when the NEW ON flag NOF is "1", that is, when the ON state is continued, the determination result of step SC5 is "YES", the process proceeds to step SC7, and the ON state is set. The ON flag ONF is set to "1" and the NEW ON flag NOF is set to "0" to indicate that the flag is maintained. When the flag is set to indicate the detected switch state in this way, the CPU 3 advances the processing to step SC8, increments the switch number and steps up to obtain the state of the next switch, and then returns to step SC8.
The process returns to C2, and thereafter, the above-described process is repeated to sequentially acquire the state of the switch corresponding to the stepped switch number.

【0040】したがって、ラインアウト端子11に外部
接続ケーブルがプラグ接続されていない場合には、ケー
ブル接続検出スイッチ11aはオフ状態を維持するの
で、当該スイッチ11aに対応したオン中フラグONF
およびNEWオンフラグNOFは共に「0」となる。ま
た、ラインアウト端子11に外部接続ケーブルがプラグ
接続され、ケーブル接続検出スイッチ11aが新たにオ
ン状態になった時には、当該スイッチ11aに対応した
オン中フラグONFおよびNEWオンフラグNOFは共
に「1」になる。そして、ラインアウト端子11にプラ
グ接続された後は、ケーブル接続検出スイッチ11aの
オン状態が継続するから、オン中フラグONFが
「1」、NEWオンフラグNOFが「0」となる。
Therefore, when the external connection cable is not plugged into the line-out terminal 11, the cable connection detection switch 11a maintains the off state, and the on flag ONF corresponding to the switch 11a is maintained.
And the NEW ON flag NOF are both "0". When an external connection cable is plugged into the line out terminal 11 and the cable connection detection switch 11a is newly turned on, both the ON flag ONF and the NEW ON flag NOF corresponding to the switch 11a are set to "1". Become. After being plugged into the line-out terminal 11, the ON state of the cable connection detection switch 11a continues, so that the ON flag ONF is "1" and the NEW ON flag NOF is "0".

【0041】ボリューム位置検出処理ルーチンの動作 さて、上述したスイッチ処理ルーチンが完了すると、C
PU3はステップSB3(図10参照)を介して図12
に示すボリューム位置検出処理ルーチンを実行してステ
ップSD1に処理を進める。まず、ステップSD1で
は、ケーブル接続検出スイッチ11aに対応したNEW
オンフラグNOFが「1」、すなわち、ラインアウト端
子11に外部接続ケーブルが新たに接続された状態であ
るか否かを判断する。ここで、ラインアウト端子11に
外部接続ケーブルが新たに接続されると、上述したスイ
ッチ処理ルーチンにてNEWオンフラグNOFが「1」
にセットされるので、判断結果は「YES」となり、ス
テップSD2に処理を進める。
Operation of Volume Position Detection Processing Routine When the above switch processing routine is completed, C
PU3 performs the processing in FIG. 12 through step SB3 (see FIG. 10).
And executes the volume position detection processing routine shown in FIG. First, in step SD1, NEW corresponding to the cable connection detection switch 11a is set.
It is determined whether the on-flag NOF is “1”, that is, whether the external connection cable is newly connected to the line-out terminal 11 or not. Here, when the external connection cable is newly connected to the line-out terminal 11, the NEW ON flag NOF is set to "1" in the above-described switch processing routine.
, The determination result is “YES”, and the process proceeds to step SD2.

【0042】ステップSD2では、ボリューム操作位置
として、前述したA/D変換器10c−1の変化域以外
の所定値をRAM5の所定レジスタにストアする。な
お、A/D変換器10c−1の変化域以外の所定値をR
AM5の所定レジスタにストアするようにしたのは、ラ
インアウト端子11から外部接続ケーブルが外された時
に、その時点でA/D変換器10c−1が出力する電圧
データDrefをボリューム操作位置として用いる為であ
る。そして、ステップSD3に進むと、ラインアウト端
子11へのケーブル接続に対応させて、ボリューム操作
位置が最大時に相当する各係数、すなわち、上述したス
レッシュレベルTH、コンプレッサ乗算係数βおよびコ
ンプレッサ乗算係数γをDSP8中の対応するレジスタ
にそれぞれセットする。これにより、ラインアウト端子
11へのケーブル接続に応じて、DSP8ではフラット
に近い最大音量時の特性を設定することになる訳であ
る。
In step SD2, a predetermined value other than the change range of the A / D converter 10c-1 is stored in a predetermined register of the RAM 5 as the volume operation position. Note that a predetermined value other than the change range of the A / D converter 10c-1 is R
The reason why the data is stored in the predetermined register of the AM 5 is that when the external connection cable is disconnected from the line-out terminal 11, the voltage data Dref output from the A / D converter 10c-1 at that time is used as the volume operation position. That's why. Then, in step SD3, the coefficients corresponding to the maximum volume operation position, that is, the above-described threshold level TH, compressor multiplication coefficient β, and compressor multiplication coefficient γ are set in correspondence with the cable connection to the line-out terminal 11. These are set in the corresponding registers in the DSP 8, respectively. As a result, according to the connection of the cable to the line-out terminal 11, the DSP 8 sets the characteristic at the time of the maximum sound volume which is almost flat.

【0043】さて一方、NEWオンフラグNOFが
「1」でない場合、つまり、ラインアウト端子11に外
部接続ケーブルが接続されていない状況下では、上記ス
テップSD1の判断結果は「NO」となり、ステップS
D4に処理を進める。ステップSD4では、ケーブル接
続検出スイッチ11aに対応したオン中フラグONFが
「1」、すなわち、ラインアウト端子11に外部接続ケ
ーブルが接続された状態であるか否かを判断する。そし
て、外部接続ケーブルが接続された状態であると、オン
中フラグONFは「1」だから、判断結果が「YES」
となり、この場合、ケーブル接続された時点で既に上述
したステップSD2,SD3を介してフラットに近い最
大音量時の特性が設定済みとなっているので、何も処理
せずに本ルーチンを完了する。
On the other hand, if the NEW ON flag NOF is not "1", that is, if no external connection cable is connected to the line-out terminal 11, the result of the determination in step SD1 is "NO", and
The process proceeds to D4. In step SD4, it is determined whether the ON flag ONF corresponding to the cable connection detection switch 11a is "1", that is, whether the external connection cable is connected to the line-out terminal 11. When the external connection cable is connected, the ON flag ONF is “1”, and the determination result is “YES”.
In this case, when the cable is connected, the characteristic at the time of the maximum sound volume that is almost flat has already been set through steps SD2 and SD3 described above, so that this routine is completed without any processing.

【0044】これに対し、ラインアウト端子11に外部
接続ケーブルが接続されていない状態では、上記ステッ
プSD1,SD4の判断結果がいずれも「NO」とな
り、ステップSD5に処理を進める。ステップSD5で
は、A/D変換器10c−1が出力する電圧データDre
fに基づきボリューム操作位置を取得する。次いで、ス
テップSD6に進むと、CPU3は今回取得したボリュ
ーム操作位置が前回取得したものと同じであるかどう
か、つまり、ボリューム操作位置が変化したか否かを判
断する。ここで、ボリューム操作位置が変化していない
と、判断結果が「YES」となり、この場合、新たにス
レッシュレベルTH、コンプレッサ乗算係数βおよびコ
ンプレッサ乗算係数γをDSP8中の対応するレジスタ
にそれぞれセットする必要がないので、何も処理せずに
本ルーチンを完了させる。
On the other hand, when the external connection cable is not connected to the line-out terminal 11, the result of determination in steps SD1 and SD4 is "NO", and the process proceeds to step SD5. In step SD5, the voltage data Dre output from the A / D converter 10c-1 is output.
Get the volume operation position based on f. Next, when the process proceeds to step SD6, the CPU 3 determines whether the volume operation position acquired this time is the same as the volume operation position acquired last time, that is, whether the volume operation position has changed. If the volume operation position has not changed, the determination result is "YES". In this case, the threshold level TH, the compressor multiplication coefficient β and the compressor multiplication coefficient γ are newly set in the corresponding registers in the DSP 8, respectively. Since there is no need, this routine is completed without performing any processing.

【0045】一方、ボリューム操作位置が変化した場合
には、上記ステップSD6の判断結果が「NO」とな
り、次のステップSD7に処理を進め、今回取得したボ
リューム操作位置をRAM5の所定レジスタにストアす
る。そして、この後、ステップSD8に進み、RAM5
の所定レジスタにストアされた今回のボリューム操作位
置に応じたスレッシュレベルTH、コンプレッサ乗算係
数βおよびコンプレッサ乗算係数γをそれぞれ生成し、
生成した各係数をDSP8中の対応するレジスタにそれ
ぞれセットする。これにより、第2実施例と同様、ボリ
ューム操作位置に応じた最適な聴感特性になるコンプレ
ッサ効果が付加される。
On the other hand, if the volume operation position has changed, the result of the determination in step SD6 is "NO", the process proceeds to the next step SD7, and the volume operation position acquired this time is stored in a predetermined register of the RAM 5. . Then, thereafter, the process proceeds to step SD8, where the RAM 5
A threshold level TH, a compressor multiplication coefficient β, and a compressor multiplication coefficient γ corresponding to the current volume operation position stored in a predetermined register of
Each generated coefficient is set in a corresponding register in the DSP 8. Thus, as in the second embodiment, a compressor effect that provides optimum audibility characteristics according to the volume operation position is added.

【0046】以上のように、第3実施例によれば、ライ
ンアウト端子11にケーブル接続した時にはボリューム
操作位置が最大時に相当する各係数をDSP8にセット
してフラットに近い最大音量時の特性を設定し、ライン
アウト端子11にケーブル接続されていない時にはボリ
ューム操作位置に応じた最適な聴感特性になるコンプレ
ッサ効果を付加するので、使用される音響環境に応じて
効果付加する態様を可変させ得るようになっている。
As described above, according to the third embodiment, when the cable is connected to the line-out terminal 11, each coefficient corresponding to the maximum volume operation position is set in the DSP 8, and the characteristic at the time of the maximum volume close to flat is obtained. When the setting is made and the cable is not connected to the line-out terminal 11, a compressor effect that provides an optimal audibility characteristic according to the volume operation position is added, so that the manner in which the effect is added can be changed according to the acoustic environment used. It has become.

【0047】[0047]

【発明の効果】請求項1に記載の発明によれば、入力波
形が第1のレベルより小さければそのまま次段に出力さ
れ、第1のレベルを超えると圧縮波形に変換されて、次
段のD/A変換器の最大入力レベルに相当するリミット
値と大小比較される。そして、リミット値より小さけれ
ば圧縮波形が次段に出力され、リミット値を超えると当
該リミット値が次段に供給されるようにしたので、第1
のレベルを超えてリミット値に至るコンプレッサ領域を
備えることとなり、この為、従来ではリミッタ領域に入
るようなレベルの入力波形の場合でも、このコンプレッ
サ領域にてそのレベルを圧縮させるから、波形歪みを改
善でき、しかもリミット値をD/A変換器の最大入力レ
ベルに一致させるよう高めに設定するから、レベルの小
さな入力波形についても、次段のD/A変換器において
十分なダイナミックレンジを確保でき、これ故、SN比
の向上を図ることができる。請求項2に記載の発明によ
れば、前記第1のレベル判定手段は入力波形が第1のレ
ベルを超えた場合、その入力波形に対して乗算係数βを
乗算した後に加算係数γを加算して圧縮波形に変換する
ので、出力波形歪みを回避させることができる。請求項
3〜4に記載の発明によれば、入力波形のレベル若しく
は音量出力を調整するボリューム操作子の操作量に応じ
て第1のレベルを異ならせるので、急激にレベル変化す
る波形について十分なダイナミックレンジを確保できる
上、波形歪みも極力抑えることができる。請求項5に記
載の発明によれば、入力波形を圧縮波形に変換する際に
用いる乗算係数βおよび加算係数γを、当該入力波形の
レベルに応じて異ならせるので、各様かつ最適な圧縮波
形を生成し得る。
According to the first aspect of the present invention, if the input waveform is smaller than the first level, it is output to the next stage as it is, and if it exceeds the first level, it is converted to a compressed waveform and converted to a compressed waveform. The magnitude is compared with a limit value corresponding to the maximum input level of the D / A converter. If the compression value is smaller than the limit value, the compression waveform is output to the next stage. If the compression value exceeds the limit value, the limit value is supplied to the next stage.
Therefore, even if the input waveform has a level that falls into the limiter area in the past, the level is compressed in this compressor area. Since the limit value is set high so as to match the maximum input level of the D / A converter, a sufficient dynamic range can be secured in the next stage D / A converter even for an input waveform having a small level. Therefore, the SN ratio can be improved. According to the second aspect of the present invention, when the input waveform exceeds the first level, the first level determination means adds the addition coefficient γ after multiplying the input waveform by the multiplication coefficient β. Thus, the output waveform is converted into a compressed waveform, so that the output waveform distortion can be avoided. According to the third and fourth aspects of the present invention, the first level is made different according to the operation amount of the volume operator for adjusting the level of the input waveform or the volume output. The dynamic range can be secured, and the waveform distortion can be suppressed as much as possible. According to the invention described in claim 5, since the multiplication coefficient β and the addition coefficient γ used when converting the input waveform into the compressed waveform are made different depending on the level of the input waveform, various and optimal compressed waveforms are obtained. Can be generated.

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

【図1】本発明による第1実施例の全体構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing an overall configuration of a first embodiment according to the present invention.

【図2】第1実施例によるDSP8の構成を示すブロッ
ク図である。
FIG. 2 is a block diagram illustrating a configuration of a DSP 8 according to the first embodiment.

【図3】DSP8の入出力特性を示す図であるFIG. 3 is a diagram showing input / output characteristics of a DSP 8;

【図4】第2実施例の全体構成を示すブロック図であ
る。
FIG. 4 is a block diagram showing an overall configuration of a second embodiment.

【図5】ボリューム回路10bおよびボリューム位置検
出回路10cの構成を示すブロック図である。
FIG. 5 is a block diagram showing a configuration of a volume circuit 10b and a volume position detection circuit 10c.

【図6】第2実施例によるDSP8の構成を示すブロッ
ク図である。
FIG. 6 is a block diagram illustrating a configuration of a DSP 8 according to a second embodiment.

【図7】ボリューム位置検出処理ルーチンの動作を示す
フローチャートである。
FIG. 7 is a flowchart showing an operation of a volume position detection processing routine.

【図8】入出力特性を説明するための図である。FIG. 8 is a diagram for explaining input / output characteristics.

【図9】第3実施例の全体構成を示すブロック図であ
る。
FIG. 9 is a block diagram showing the overall configuration of the third embodiment.

【図10】メインルーチンの動作を示すフローチャート
である。
FIG. 10 is a flowchart showing an operation of a main routine.

【図11】スイッチ処理ルーチンの動作を示すフローチ
ャートである。
FIG. 11 is a flowchart illustrating an operation of a switch processing routine.

【図12】ボリューム位置検出処理ルーチンの動作を示
すフローチャートである。
FIG. 12 is a flowchart illustrating an operation of a volume position detection processing routine.

【図13】従来例を説明するための図である。FIG. 13 is a diagram for explaining a conventional example.

【図14】従来例を説明するための図である。FIG. 14 is a diagram for explaining a conventional example.

【符号の説明】[Explanation of symbols]

8 DSP 20 出力レベルレジスタ 21 乗算器 22 スレッシュレベル判定回路 23 スレッシュレベルレジスタ 24 乗算器 25 コンプレッサ乗算係数 26 加算器 27 コンプレッサ加算係数 28 リミットレベル判定回路 29 リミット値レジスタ 30 セレクタ 8 DSP 20 Output Level Register 21 Multiplier 22 Threshold Level Judgment Circuit 23 Threshold Level Register 24 Multiplier 25 Compressor Multiplication Coefficient 26 Adder 27 Compressor Addition Coefficient 28 Limit Level Judgment Circuit 29 Limit Value Register 30 Selector

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 前段から供給される入力波形のレベルが
次段のD/A変換器の最大入力レベルを超過する場合
に、その入力波形のレベルを前記最大入力レベルに相当
するリミット値に置換して波形歪みを抑止する効果付加
装置において、 前記入力波形が第1のレベルを超えたか否かを判断し、
第1のレベルより小さい場合にはその入力波形をそのま
ま次段へ出力し、一方、第1のレベルを超えた場合には
当該入力波形を圧縮波形に変換する第1のレベル判定手
段と、 この第1のレベル判定手段によって変換された圧縮波形
が前記リミット値を超えたか否かを判断し、リミット値
より小さい場合にはその圧縮波形を次段へ出力し、一
方、リミット値を超えた場合には当該リミット値を次段
に供給する第2のレベル判定手段とを具備することを特
徴とする効果付加装置。
When a level of an input waveform supplied from a preceding stage exceeds a maximum input level of a D / A converter of a next stage, the level of the input waveform is replaced with a limit value corresponding to the maximum input level. In the effect adding apparatus that suppresses waveform distortion, it is determined whether the input waveform has exceeded a first level,
If the input level is lower than the first level, the input waveform is output to the next stage as it is, while if the input level is higher than the first level, the input waveform is converted to a compressed waveform. It is determined whether or not the compressed waveform converted by the first level determining means has exceeded the limit value. If the compressed waveform is smaller than the limit value, the compressed waveform is output to the next stage. And a second level determining means for supplying the limit value to the next stage.
【請求項2】 前記第1のレベル判定手段は、入力波形
が第1のレベルを超えた場合、その入力波形に対して乗
算係数βを乗算した後に加算係数γを加算して圧縮波形
に変換することを特徴とする請求項1記載の効果付加装
置。
2. When the input waveform exceeds the first level, the first level determination means multiplies the input waveform by a multiplication factor β and adds an addition coefficient γ to convert the input waveform into a compressed waveform. The effect adding device according to claim 1, wherein
【請求項3】 前記第1のレベル判定手段は、入力波形
のレベルに応じて第1のレベルを異ならせることを特徴
とする請求項1記載の効果付加装置。
3. The effect adding apparatus according to claim 1, wherein said first level determining means changes the first level according to the level of the input waveform.
【請求項4】 前記第1のレベル判定手段は、音量出力
を調整するボリューム操作子の操作量に応じて第1のレ
ベルを異ならせることを特徴とする請求項1記載の効果
付加装置。
4. The effect adding apparatus according to claim 1, wherein said first level determining means changes the first level in accordance with an operation amount of a volume operator for adjusting a volume output.
【請求項5】 前記第1のレベル判定手段は、入力波形
を圧縮波形に変換する際に用いる乗算係数βおよび加算
係数γを、当該入力波形のレベルに応じて異ならせるこ
とを特徴とする請求項1記載の効果付加装置。
5. The apparatus according to claim 1, wherein the first level determination means changes a multiplication coefficient β and an addition coefficient γ used when converting the input waveform into a compressed waveform according to the level of the input waveform. Item 2. The effect adding device according to Item 1.
JP10179600A 1998-06-11 1998-06-11 Sound effect adder Pending JPH11352967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10179600A JPH11352967A (en) 1998-06-11 1998-06-11 Sound effect adder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10179600A JPH11352967A (en) 1998-06-11 1998-06-11 Sound effect adder

Publications (1)

Publication Number Publication Date
JPH11352967A true JPH11352967A (en) 1999-12-24

Family

ID=16068585

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10179600A Pending JPH11352967A (en) 1998-06-11 1998-06-11 Sound effect adder

Country Status (1)

Country Link
JP (1) JPH11352967A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7094965B2 (en) 2001-01-17 2006-08-22 Yamaha Corporation Waveform data analysis method and apparatus suitable for waveform expansion/compression control
JP2011008187A (en) * 2009-06-29 2011-01-13 Yamaha Corp Strike input circuit for electronic percussion instrument
JP2012104992A (en) * 2010-11-09 2012-05-31 Sony Corp Reproduction device, reproduction method, presentation device, and reproduction system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7094965B2 (en) 2001-01-17 2006-08-22 Yamaha Corporation Waveform data analysis method and apparatus suitable for waveform expansion/compression control
US7102068B2 (en) 2001-01-17 2006-09-05 Yamaha Corporation Waveform data analysis method and apparatus suitable for waveform expansion/compression control
JP2011008187A (en) * 2009-06-29 2011-01-13 Yamaha Corp Strike input circuit for electronic percussion instrument
JP2012104992A (en) * 2010-11-09 2012-05-31 Sony Corp Reproduction device, reproduction method, presentation device, and reproduction system

Similar Documents

Publication Publication Date Title
US8369538B2 (en) Effect adding method and effect adding apparatus
US5753845A (en) Karaoke apparatus creating vocal effect matching music piece
US20020126861A1 (en) Audio expander
US7947891B2 (en) Resonance tone generating apparatus and electronic musical instrument
US5963907A (en) Voice converter
KR980011002A (en) Voice signal processing device
JP3114587B2 (en) Karaoke amplifier
JPH11352967A (en) Sound effect adder
JP7351092B2 (en) Sound effect equipment and electronic musical instruments
JPH11352968A (en) Sound effect adder
JPH05206772A (en) Loudness controller
JP3037861B2 (en) Waveform forming device and electronic musical instrument using the output waveform
US5886278A (en) Apparatus for reducing change in timbre at each point where tone ranges are switched
US6127617A (en) Effector differently controlling harmonics and noises to improve sound field effect
JP2762890B2 (en) Music synthesizer
JP2002140072A (en) Electronic musical instrument and sound volume control method
JP2630699B2 (en) Electronic musical instrument
JP2606006B2 (en) Noise sound generator
JP3424193B2 (en) Volume compensator
US5998726A (en) Musical sound generating system with controlled tone
JP3778361B2 (en) Sound source device and electronic device equipped with sound source device
JP4468580B2 (en) Method and apparatus for level compensation for input signals
JP3117742B2 (en) Muting device for electronic musical instruments
JP2003036081A (en) Volume controlling device of electronic musical sound generating apparatus, and electronic musical sound generating apparatus
JPH08186495A (en) Digital mixer