Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0634168B2 - Electronic musical instrument - Google Patents
[go: Go Back, main page]

JPH0634168B2 - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JPH0634168B2
JPH0634168B2 JP60264042A JP26404285A JPH0634168B2 JP H0634168 B2 JPH0634168 B2 JP H0634168B2 JP 60264042 A JP60264042 A JP 60264042A JP 26404285 A JP26404285 A JP 26404285A JP H0634168 B2 JPH0634168 B2 JP H0634168B2
Authority
JP
Japan
Prior art keywords
output
signal
dac
waveform
envelope
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP60264042A
Other languages
Japanese (ja)
Other versions
JPS62124596A (en
Inventor
哲彦 金秋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP60264042A priority Critical patent/JPH0634168B2/en
Publication of JPS62124596A publication Critical patent/JPS62124596A/en
Publication of JPH0634168B2 publication Critical patent/JPH0634168B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は電子楽器に係わり、特にデジタル的に楽音を発
生する電子楽器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument, and more particularly to an electronic musical instrument that digitally generates a musical sound.

従来の技術 近年電子楽器はデジタル的に楽音を発生するものが多く
なっている。このような電子楽器が特開昭58−887
90号公報に示されている。第3図にブロック図を示
し、その説明を行う。波形発生器1がノート・オクター
ブ情報に基づいて周期的な波形データを発生している。
エンベロープ発生器2は押鍵情報に基づいてエンベロー
プ信号を発生する。ここで、エンベロープ信号は、予め
メモリに入力されたエンベロープ波形を押鍵によって立
上り部より順次読みだし出力する。乗算器3が波形発生
器1の発生する波形データとエンベロープ発生器2の発
生するエンベロープ信号との乗算を行い、デジタル・ア
ナログコンバータ(以下DACと称す。)9にてアナロ
グ信号に変換され楽音信号として出力する。
2. Description of the Related Art In recent years, many electronic musical instruments digitally generate musical tones. Such an electronic musical instrument is disclosed in Japanese Patent Laid-Open No. 58-887.
No. 90 publication. A block diagram is shown in FIG. 3 and will be described. The waveform generator 1 generates periodic waveform data based on the note octave information.
The envelope generator 2 generates an envelope signal based on the key depression information. Here, as the envelope signal, the envelope waveform previously input to the memory is sequentially read from the rising portion by the key depression and is output. The multiplier 3 multiplies the waveform data generated by the waveform generator 1 and the envelope signal generated by the envelope generator 2, and the tone signal is converted into an analog signal by a digital-analog converter (hereinafter referred to as DAC) 9. Output as.

発明が解決しようとする問題点 発生する楽音のダイナミックレンジは最終的に出力する
信号(楽音信号)のビット数によって決定されるが、上
記の構成ではどれだけ出力のビット数を増やしてもその
後段に接続されたDACのビット精度によって決ってし
まう。即ち、DACのビット数を楽音信号のビット数に
合わせて増やしてもDACのビット精度によってダイナ
ミックレンジが決ってしまう。そこでDACのビット精
度を高くすれば高ダイナミックレンジが得られるが、1
音当たり100dB以上も必要な楽器において100dB、
即ち、17ビット程度のビット精度を有するDACが必
要となり、コスト的に大変高くなるという難点がある。
Problems to be Solved by the Invention The dynamic range of the generated musical sound is determined by the number of bits of the signal (musical sound signal) that is finally output. With the above configuration, however much the number of output bits is increased, It depends on the bit precision of the DAC connected to. That is, even if the number of bits of the DAC is increased according to the number of bits of the musical tone signal, the dynamic range is determined by the bit precision of the DAC. Therefore, a high dynamic range can be obtained by increasing the bit precision of the DAC.
100 dB for musical instruments that require more than 100 dB per sound,
That is, a DAC having a bit precision of about 17 bits is required, and there is a drawback that the cost becomes very high.

本発明は上記した問題点に鑑み、低いビット精度のDA
Cであっても、広いダイナミックレンジの楽音を発生さ
せることができる電子楽器を提供することを目的とす
る。
In view of the above problems, the present invention is a DA with low bit precision.
An object of the present invention is to provide an electronic musical instrument that can generate musical tones with a wide dynamic range even with C.

問題点を解決するための手段 上記問題点を解決するために本発明の電子楽器は、2値
論理信号による波形を発生する波形発生器と、鍵の押圧
に応じてエンベロープ信号を発生するエンベロープ発生
器と、前記波形と前記エンベロープ信号との乗算を行う
乗算器と、前記乗算器の出力に対し、前記エンベロープ
信号に基づいてオフセットを与える手段と、前記オフセ
ットを与える手段による出力をアナログ信号に変換する
デジタル・アナログコンバータと、前記オフセットを、
前記デジタル・アナログコンバータの出力とから取り除
く手段を有するようにしたものである。
Means for Solving the Problems In order to solve the above problems, the electronic musical instrument of the present invention has a waveform generator that generates a waveform based on a binary logic signal, and an envelope generator that generates an envelope signal in response to a key press. , A multiplier for multiplying the waveform by the envelope signal, a means for giving an offset to the output of the multiplier based on the envelope signal, and an output by the means for giving an offset to an analog signal Digital-to-analog converter and the offset,
It has means for removing it from the output of the digital-analog converter.

作用 本発明は上記した構成によって、エンベロープ信号の減
衰に伴い、オフセットが与えられることにより、DAC
に対して与えられる上位側のビットを固定し、下位側の
ビットのみを変化させるようにしたので、上位側のビッ
トによる誤差の影響が出力に現れない。故に低いビット
精度のDACであっても広いダイナミックレンジの楽音
を発生させることができる。
Effect The present invention has the above-described configuration, which provides the DAC with an offset as the envelope signal is attenuated.
Since the upper bits given to the above are fixed and only the lower bits are changed, the influence of the error due to the upper bits does not appear in the output. Therefore, even a DAC with a low bit precision can generate a musical sound with a wide dynamic range.

実施例 以下図面に基づき本発明の一実施例についての説明を行
う。
Embodiment An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明による電子楽器の一実施例を示すもので
ある。第1図において、1は波形発生器であり、デジタ
ルデータによる波形を発生している。2はエンベロープ
発生器であり、押鍵情報に応じたエンベロープ信号を発
生する。3は乗算器であり入力される2種類の信号の乗
算を行う。4は加算器であり、乗算器3の出力とインバ
ータ5によって反転されたエンベロープ信号の乗算を行
う。6,7はDACである。8はアナログミキサであ
り、DAC6,DAC7が出力する2系列のアナログ信
号のミクシングを行う。
FIG. 1 shows an embodiment of an electronic musical instrument according to the present invention. In FIG. 1, reference numeral 1 is a waveform generator, which generates a waveform based on digital data. Reference numeral 2 denotes an envelope generator, which generates an envelope signal according to key depression information. A multiplier 3 multiplies two types of input signals. An adder 4 multiplies the output of the multiplier 3 and the envelope signal inverted by the inverter 5. Reference numerals 6 and 7 are DACs. An analog mixer 8 mixes the two series of analog signals output from the DAC 6 and the DAC 7.

次に第1図に示す電子楽器の動作説明を行う。波形発生
器1がここでは周期的な波形を発生している(第2図
(a))。エンベロープ発生器2が押鍵情報に応じてエン
ベロープ信号を発生している(第2図(b))。このエン
ベロープ信号は一方は乗算器3へ、他方はインバータ5
へ与えられている。乗算器3は波形とエンベロープ信号
の乗算を行い出力する(第2図(c))。一方、インバー
タ5は、エンベロープ信号を反転し(第2図(d))、こ
の値をオフセットとして加算器4及びDAC7に入力す
る。加算器4が乗算器3の出力とインバータ5の出力で
あるオフセットの加算を行い出力する(第2図(e))。
次いでDAC6が加算器4の出力をアナログ量に変換す
る。ちょうどこの信号は、いわゆるペデスタルを持った
楽音信号となっている。
Next, the operation of the electronic musical instrument shown in FIG. 1 will be described. The waveform generator 1 here generates a periodic waveform (see FIG. 2).
(a)). The envelope generator 2 generates an envelope signal according to the key depression information (Fig. 2 (b)). One of the envelope signals is to the multiplier 3 and the other is to the inverter 5.
Is given to. The multiplier 3 multiplies the waveform and the envelope signal and outputs the result (FIG. 2 (c)). On the other hand, the inverter 5 inverts the envelope signal (FIG. 2 (d)) and inputs this value as an offset to the adder 4 and the DAC 7. The adder 4 adds the output of the multiplier 3 and the offset of the inverter 5 and outputs the result (FIG. 2 (e)).
The DAC 6 then converts the output of the adder 4 into an analog quantity. This signal is just a musical tone signal with a so-called pedestal.

このようにすると、波形が徐々に減衰していくにつれて
上位ビットからデータが固定されるため、ビット精度が
それほど高くなくともDAC6より出力される信号の音
量は徐々に小さくなり、広いダイナミックレンジを得る
ことができる。このことを簡単に説明すると次のように
なる。即ち: DACの出力はその各ビットにおけるビット精度をδ
としてつぎのように表せる。
In this way, since the data is fixed from the upper bits as the waveform gradually attenuates, the volume of the signal output from the DAC 6 gradually decreases even if the bit precision is not so high, and a wide dynamic range is obtained. be able to. A brief explanation of this is as follows. That is: The DAC output has a bit precision of δ n for each bit.
Can be expressed as

但し、b:DACビットmに対する入力 N:DACのビット数 故に、仮にDACの入力が“0”(零)を中心としたも
のであるとすると、通常DACのMSB(最上位ビッ
ト)入力は反転されているのでその入力は“01……
1”(10進における−1)と“10……0”(同0)
の間を往復することになる。この2値を(1)式に代入す
ると、 ここで、仮に12ビットのDACで8ビット精度であっ
たとすると、 −1/512<δ<1/512 であるので、(入力=−1の時のDAC出力)>(入力
=0の時のDAC出力)という場合が出てくる。しか
し、オフセットが与えてある場合は、DAC入力の上位
ビットが固定されるので、入力の大小関係と出力の大小
関係の逆転は起こらず、DACのビット数に応じたダイ
ナミックレンジの出力が得られるものである。
However, b m : input for DAC bit m N: number of bits of DAC Therefore, assuming that the input of DAC is centered on “0” (zero), normally the MSB (most significant bit) input of DAC is The input is “01 ……
1 ”(-1 in decimal) and“ 10 ... 0 ”(0 in the same)
It will be going back and forth between. Substituting these two values into equation (1), Here, if it is assumed that a 12-bit DAC has 8-bit precision, then −1/512 <δ n <1/512, so (DAC output when input = −1)> (when input = 0 The DAC output) comes out. However, when an offset is given, the upper bits of the DAC input are fixed, so that the magnitude relationship of the input and the magnitude relationship of the output is not reversed, and the output of the dynamic range according to the number of bits of the DAC is obtained. It is a thing.

一方、DAC7は第2図(d)に示されるところのインバ
ータ5の出力をアナログ量に変換して出力している。故
に、アナログミキサ8の出力は第2図(f)に示すところ
の信号となり、ペデスタルのない楽音信号が得られる。
このように構成することにより、低いビット精度のDA
Cを用いて高ダイナミックレンジの楽音信号を得ること
が出来る。
On the other hand, the DAC 7 converts the output of the inverter 5 shown in FIG. 2 (d) into an analog amount and outputs it. Therefore, the output of the analog mixer 8 becomes the signal shown in FIG. 2 (f), and a tone signal without a pedestal can be obtained.
With this configuration, DA with low bit precision
It is possible to obtain a tone signal having a high dynamic range by using C.

なお、本実施例においては、ただ単にエンベロープ信号
を反転したものを乗算器3の出力(第2図(c))に加え
るようにしたが、エンベロープ信号を反転したものをビ
ットシフト等によりレベルを小さくしたものを用いても
よいことは言うまでもない。
In this embodiment, the inverted envelope signal is simply added to the output of the multiplier 3 (FIG. 2 (c)). However, the inverted envelope signal is changed in level by bit shift or the like. It goes without saying that a reduced size may be used.

発明の効果 以上のように本発明は、2値論理信号による波形を発生
する波形発生器と、鍵の押圧に応じてエンベロープ信号
を発生するエンベロープ発生器と、前記波形と前記エン
ベロープ信号との乗算を行う乗算器と、前記乗算器の出
力に対し、前記エンベロープ信号に基づいてオフセット
を与える手段と、前記オフセットを与える手段による出
力をアナログ信号に変換するデジタル・アナログコンバ
ータと、前記オフセットを、前記デジタル・アナログコ
ンバータの出力から取り除く手段とを有することによ
り、低いビット精度のDACを用いて高ダイナミックレ
ンジの楽音を得ることが出来る。特に、R−2Rの抵抗
ラダーを用いてD/A変換を行う場合、低精度の抵抗を
ラダー状に接続するだけでよいのでローコストで高ダイ
ナミックレンジの楽音信号を得ることが出来る。
EFFECTS OF THE INVENTION As described above, according to the present invention, a waveform generator that generates a waveform based on a binary logic signal, an envelope generator that generates an envelope signal in response to a key press, and a multiplication of the waveform and the envelope signal. And a means for giving an offset to the output of the multiplier based on the envelope signal, a digital-analog converter for converting the output by the means for giving an offset into an analog signal, and the offset, By having means for removing from the output of the digital-analog converter, it is possible to obtain a tone with a high dynamic range using a DAC with low bit precision. In particular, when performing D / A conversion using an R-2R resistance ladder, it is only necessary to connect low-precision resistors in a ladder shape, so that a musical tone signal with a high dynamic range can be obtained at low cost.

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

第1図は本発明の一実施例における電子楽器の構成を示
すブロック図、第2図は第1図における各ブロックの出
力波形を表す波形図、第3図は従来例における電子楽器
を示すブロック図である。 1……波形発生器、2……エンベロープ発生器、3……
乗算器、4……加算器、6,7……DAC、8……アナ
ログミキサ。
FIG. 1 is a block diagram showing a configuration of an electronic musical instrument according to an embodiment of the present invention, FIG. 2 is a waveform diagram showing an output waveform of each block in FIG. 1, and FIG. 3 is a block showing an electronic musical instrument in a conventional example. It is a figure. 1 ... Waveform generator, 2 ... Envelope generator, 3 ...
Multiplier, 4 ... Adder, 6, 7 ... DAC, 8 ... Analog mixer.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】2値論理信号による波形を発生する波形発
生器と、 鍵の押圧に応じてエンベロープ信号を発生するエンベロ
ープ発生器と、 前記波形と前記エンベロープ信号との乗算を行なう乗算
器と、 前記乗算器の出力に対し、前記エンベロープ信号に基づ
いてオフセットを与える手段と、 前記オフセットを与える手段による出力をアナログ信号
に変換するデジタル・アナログコンバータと、 前記オフセットを、前記デジタル・アナログコンバータ
の出力から取り除く手段とを有することを特徴とする電
子楽器。
1. A waveform generator for generating a waveform based on a binary logic signal, an envelope generator for generating an envelope signal in response to a key press, and a multiplier for multiplying the waveform and the envelope signal. Means for giving an offset to the output of the multiplier based on the envelope signal; a digital-analog converter for converting the output of the means for giving an offset into an analog signal; and an output of the digital-analog converter for the offset. An electronic musical instrument characterized by having means for removing from the electronic musical instrument.
JP60264042A 1985-11-25 1985-11-25 Electronic musical instrument Expired - Lifetime JPH0634168B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60264042A JPH0634168B2 (en) 1985-11-25 1985-11-25 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60264042A JPH0634168B2 (en) 1985-11-25 1985-11-25 Electronic musical instrument

Publications (2)

Publication Number Publication Date
JPS62124596A JPS62124596A (en) 1987-06-05
JPH0634168B2 true JPH0634168B2 (en) 1994-05-02

Family

ID=17397741

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60264042A Expired - Lifetime JPH0634168B2 (en) 1985-11-25 1985-11-25 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JPH0634168B2 (en)

Also Published As

Publication number Publication date
JPS62124596A (en) 1987-06-05

Similar Documents

Publication Publication Date Title
JP2573850B2 (en) Analog-to-digital converter
JPH08505026A (en) Apparatus and method for generating an analog output signal from a digital input word
US4437377A (en) Digital electronic musical instrument
US4653374A (en) Electronic musical instrument with a bender provided separately from performance keys
KR950003287B1 (en) Method and circuit for eliminating major bit transition error at the bipolar zero point in a digital to analog converter
JPH0469455B2 (en)
JPH0634168B2 (en) Electronic musical instrument
JPH02240697A (en) Waveform data readout speed changing device
USRE31648E (en) System for generating tone source waveshapes
JPH043556B2 (en)
JPH0713800B2 (en) Electronic musical instrument
JPH0227813A (en) A/d converter
JPH0231399B2 (en)
JPS6161680B2 (en)
JPH0964745A (en) Optional waveform generator
JP3044846B2 (en) D / A converter
JP2512270B2 (en) Envelope control device
JPH0697831A (en) D/a converter
JPH0467199B2 (en)
JPH04115626A (en) Digital/analog converter device
JPH045195B2 (en)
JPH07123214B2 (en) D / A converter
JPH08256061A (en) D / A converter
JPH0258638B2 (en)
JP2968847B2 (en) Noise generator