JP3106530B2 - Musical instrument for electronic musical instruments - Google Patents

Musical instrument for electronic musical instruments

Info

Publication number
JP3106530B2
JP3106530B2 JP03076234A JP7623491A JP3106530B2 JP 3106530 B2 JP3106530 B2 JP 3106530B2 JP 03076234 A JP03076234 A JP 03076234A JP 7623491 A JP7623491 A JP 7623491A JP 3106530 B2 JP3106530 B2 JP 3106530B2
Authority
JP
Japan
Prior art keywords
tone
data
amplitude
mixing
musical
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 - Fee Related
Application number
JP03076234A
Other languages
Japanese (ja)
Other versions
JPH04309998A (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 Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP03076234A priority Critical patent/JP3106530B2/en
Publication of JPH04309998A publication Critical patent/JPH04309998A/en
Application granted granted Critical
Publication of JP3106530B2 publication Critical patent/JP3106530B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、楽音の音程に関わらず
一定の速さで楽音データの演算・発生を行い、音程が必
ずしも同一でない複数の楽音を混合して出力する電子楽
器の楽音発生装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a musical tone generator for an electronic musical instrument which calculates and generates musical tone data at a constant speed irrespective of the musical tone pitch and mixes and outputs a plurality of musical tones whose pitches are not always the same. It concerns the device.

【0002】[0002]

【従来の技術】近年、楽音をアナログ/ディジタル変換
して得たデータを波形メモリに記憶させ、このデータを
読み出し、このデータにエンベロープ付加やフィルター
処理をディジタル的に演算することにより楽音を発生す
るいわゆるPCM(PulseCode Modula
tion)方式による楽音発生が行なわれるようになっ
てきている。
2. Description of the Related Art In recent years, a musical tone is generated by storing data obtained by converting a musical tone from analog to digital into a waveform memory, reading out the data, and digitally performing an envelope addition or a filtering process on the data. So-called PCM (PulseCode Modula)
) method is being generated.

【0003】以下に従来の楽音の音程に関わらず一定の
速さで楽音データの演算・発生を行ない、音程が必ずし
も同一でない複数の楽音を混合して出力する電子楽器の
楽音発生装置について説明する。
A conventional tone generator for an electronic musical instrument which calculates and generates musical tone data at a constant speed regardless of the pitch of musical tones and mixes and outputs a plurality of musical tones whose pitches are not always the same will be described below. .

【0004】図4は従来の電子楽器の楽音発生装置の構
成を示すものである。図4において、410は楽音デー
タ発生手段、420は楽音データ混合手段、421と4
22と423は楽音混合部、424はセレクタ、430
はディジタル−アナログ変換器(以下DACと略
す。)、441と442と443はサンプル・ホールド
回路(以下S/H回路と略す。)、451と452と4
53は低域通過フィルタ(以下LPFと略す。)、46
0は振幅調整手段、461と462と463は電圧制御
型増幅器(以下VCAと略す。)、470は振幅指定
部、480は混合指定部、490は音量設定操作子であ
る。
FIG. 4 shows a configuration of a conventional tone generator for an electronic musical instrument. In FIG. 4, reference numeral 410 denotes tone data generating means, 420 denotes tone data mixing means, and 421 and 4
Reference numerals 22 and 423 denote tone mixing units, 424 denotes a selector, and 430
Is a digital-analog converter (hereinafter abbreviated as DAC), 441, 442 and 443 are sample-hold circuits (hereinafter abbreviated as S / H circuits), 451, 452 and 4
53 is a low-pass filter (hereinafter abbreviated as LPF), 46
0 is an amplitude adjusting means, 461, 462, and 463 are voltage-controlled amplifiers (hereinafter abbreviated as VCA), 470 is an amplitude specifying section, 480 is a mixing specifying section, and 490 is a volume setting operator.

【0005】図5は、図4における楽音混合部(42
1、422、423とも同一である。)の構成を示すも
のである。図5において、501はセレクタ、502は
加算器、503はリセット付きラッチ、504はラッ
チ、505はシフタである。
FIG. 5 shows a tone mixing section (42) shown in FIG.
1, 422 and 423 are the same. FIG. In FIG. 5, reference numeral 501 denotes a selector, 502 denotes an adder, 503 denotes a latch with reset, 504 denotes a latch, and 505 denotes a shifter.

【0006】以上のように構成された電子楽器の楽音発
生装置について、図3の動作タイミング図(従来例も本
発明の実施例も動作タイミングは同じである。)に従っ
て、以下その動作について説明する。
The operation of the tone generator for an electronic musical instrument constructed as described above will be described below with reference to the operation timing chart of FIG. 3 (the operation timing is the same for both the conventional example and the embodiment of the present invention). .

【0007】楽音データ発生手段410は8音分の楽音
データ(データ長は16ビットで、その最大値は327
67)を発生し、楽音データ混合手段420は5音、2
音、1音分の楽音データをそれぞれ混合し、DAC43
0は入力データの最大値が32767(2の補数の16
ビットデータの最大値)である16ビットの分解能を有
するDACとする。
The tone data generator 410 generates tone data for eight tones (having a data length of 16 bits and a maximum value of 327).
67), and the musical sound data mixing means 420
Sound and sound data for one sound are mixed,
0 indicates that the maximum value of the input data is 32767 (2's complement 16
It is assumed that the DAC has a resolution of 16 bits which is the maximum value of the bit data.

【0008】まず、楽音データ発生手段410において
8音分の楽音データが時分割で発生され、楽音データW
i(W0〜W7)として出力される。ここでW0を第0
チャンネルの楽音データ、W1を第1チャンネルの楽音
データ、以下同様にして、W7を第7チャンネルの楽音
データと呼ぶことにする。
First, tone data for eight tones is generated in time division by the tone data generating means 410, and the tone data W
i (W0 to W7). Here, W0 is 0th
The channel tone data, W1 is called the first channel tone data, and similarly, W7 is called the seventh channel tone data.

【0009】次に、楽音混合部421、422、423
において、楽音データが混合される。混合指定部480
から出力される混合指定信号S1、S2、S3によって
混合されるチャンネルがそれぞれ指定される。すなわち
混合指定信号S1〜S3が1であるときのチャンネルの
楽音データが混合される。図3に示す例では、混合指定
信号S1は、時分割の楽音データWiがW0、W1、W
3、W4、W7の時に1であるので、楽音混合部421
において、第0、1、3、4、7チャンネルの計5音分
の楽音データが混合される。同様にして、楽音混合部4
22において、第2、5チャンネルの計2音分の楽音デ
ータが混合され、楽音混合部423において、第6チャ
ンネルの1音分の楽音データのみ混合される。
Next, the tone mixing units 421, 422, 423
In, music data is mixed. Mixed designation section 480
The channels to be mixed are specified by the mixing specifying signals S1, S2, and S3 output from. That is, the tone data of the channel when the mixing designation signals S1 to S3 are 1 are mixed. In the example shown in FIG. 3, the mixed designation signal S1 is such that the time-division tone data Wi is W0, W1, W
Since it is 1 at 3, W4, and W7, the tone mixing unit 421
, The tone data of a total of five tones of channels 0, 1, 3, 4, and 7 are mixed. Similarly, the tone mixing unit 4
At 22, the tone data of a total of two tones of the second and fifth channels are mixed, and the tone mixing unit 423 mixes only the tone data of one tone of the sixth channel.

【0010】この混合の動作をもう少し詳細に説明す
る。楽音混合部421、422、423における動作
は、混合指定信号がそれぞれS1、S2、S3であるこ
と以外は同じなので、楽音混合部421の場合について
説明する。
The mixing operation will be described in more detail. The operations of the tone mixing units 421, 422, and 423 are the same except that the mixing designation signals are S1, S2, and S3, respectively.

【0011】まず最初に、リセット信号R1が1とな
り、ラッチ503に記憶された累算値MW1が0にリセ
ットされる。セレクタ501は入力Sが0の時は、入力
Aの値(すなわち0)を出力し、入力Sが1の時は、入
力Bの値(すなわち楽音データWi)を出力する。セレ
クタ501の出力は加算器502の入力Bに入力され、
ラッチ503の出力(つまり累算値MW1)は加算器5
02の入力Aに入力される。よって、混合指定信号S1
が1の時は、楽音データWiと累算値MW1が加算さ
れ、混合指定信号S1が0の時は値0と累算値MW1が
加算される。加算された結果は、クロック信号CK1の
立ち上がりによって、ラッチ503に記憶される。こう
して、混合指定信号S1に応じて、第0チャンネルから
第7チャンネルまでの楽音データが累算、つまり混合さ
れる。楽音データの最大値は32767(データ長は1
6ビット)であり、5音分の楽音データを累算するので
累算値MW1の最大値は数学的に32767*5=16
3835(データ長は19ビット)となる。また、楽音
データ発生手段410から8音分の楽音データが発生さ
れるので、最大8音分まで混合可能であり、8音分の楽
音データを混合した時の最大値は数学的に32767*
8=262136(データ長は19ビット)となる。
First, the reset signal R1 becomes 1, and the accumulated value MW1 stored in the latch 503 is reset to 0. When the input S is 0, the selector 501 outputs the value of the input A (that is, 0). When the input S is 1, the selector 501 outputs the value of the input B (that is, the tone data Wi). The output of the selector 501 is input to the input B of the adder 502,
The output of the latch 503 (that is, the accumulated value MW1) is
02 is input to input A. Therefore, the mixing designation signal S1
Is 1, the tone data Wi and the accumulated value MW1 are added. When the mixed designation signal S1 is 0, the value 0 and the accumulated value MW1 are added. The result of the addition is stored in the latch 503 at the rise of the clock signal CK1. Thus, the tone data from the 0th channel to the 7th channel are accumulated, that is, mixed, in accordance with the mixing designation signal S1. The maximum value of the musical tone data is 32767 (the data length is 1
6 bits), and the musical tone data for 5 tones is accumulated, so the maximum value of the accumulated value MW1 is mathematically 32767 * 5 = 16
3835 (the data length is 19 bits). Further, since the musical sound data generating means 410 generates musical sound data for eight sounds, it is possible to mix up to eight musical sounds, and the maximum value when mixing musical sound data for eight sounds is 32767 *
8 = 262136 (data length is 19 bits).

【0012】第7チャンネルまでの累算が終了すると、
クロック信号CK2の立ち上がりによって、ラッチ50
3の出力である累算値MW1がラッチ504に記憶され
る。さらにシフタ505において左に3ビットだけシフ
トされ、混合データM1(データ長は16ビット)とし
て出力される。左へ3ビットだけシフトするのは、8音
分の楽音データを混合した時の最大値は数学的に327
67*8=262136となるので、最大値が3276
7のDAC430へ入力するためには、混合データを8
分の1にしなければならないからである。こうして楽音
混合部から混合データM1が出力される。
When the accumulation up to the seventh channel is completed,
The rising of the clock signal CK2 causes the latch 50
3 is stored in the latch 504. Further, the data is shifted leftward by 3 bits in the shifter 505, and is output as mixed data M1 (the data length is 16 bits). Shifting to the left by 3 bits means that the maximum value when mixing 8 tone data is mathematically 327
Since 67 * 8 = 262136, the maximum value is 3276
In order to input to the DAC 430 of FIG.
This is because it must be reduced to one part. Thus, the mixed data M1 is output from the musical sound mixing section.

【0013】楽音混合部422、423においても同様
に楽音データが混合される。それぞれ2音および1音し
か混合されないので、累算値MW2、MW3の最大値は
65534(データ長は17ビット)および32767
(データ長は16ビット)となる。しかしながら、1音
あたりの楽音データの振幅を楽音混合部421と同じに
しないと、DACにおいてアナログ楽音信号に変換した
とき、アナログ楽音信号の振幅が楽音出力毎に異なって
しまうので、楽音混合部422、423においてもシフ
タ505により混合データは左に3ビットだけシフトさ
れる。
The tone data are similarly mixed in the tone mixing units 422 and 423. Since only two notes and one note are mixed respectively, the maximum values of the accumulated values MW2 and MW3 are 65534 (the data length is 17 bits) and 32767.
(The data length is 16 bits). However, unless the amplitude of the musical tone data per tone is made the same as that of the musical tone mixing unit 421, the amplitude of the analog musical tone signal differs for each musical tone output when converted into an analog musical tone signal by the DAC. , 423, the mixed data is shifted to the left by 3 bits by the shifter 505.

【0014】混合データM1、M2、M3はセレクタ4
24に入力され、時分割でDAC430に混合楽音デー
タとして出力される。混合楽音データは、DAC430
においてアナログ楽音信号に変換され、サンプル・ホー
ルド信号SH1、SH2、SH3によって、それぞれS
/H回路441、442、443でサンプル・ホールド
される。サンプル・ホールドされた楽音信号は、LPF
451、452、453によって不要なサンプリングノ
イズを除去された後、VCA461、462、463に
おいて、各出力ごとの音量レベルが調整され、楽音出力
1、2、3として出力される。各出力ごとの音量レベル
は、音量設定操作子490での設定に基づいて振幅指定
部470によって制御される。
The mixed data M1, M2 and M3 are supplied to the selector 4
24, and output to the DAC 430 as mixed tone data in a time-division manner. The mixed tone data is DAC430
Is converted to an analog tone signal by the sample and hold signals SH1, SH2, SH3.
/ H circuits 441, 442, 443 sample and hold. The sampled and held tone signal is an LPF
After unnecessary sampling noise is removed by 451, 452, and 453, the volume level of each output is adjusted by the VCAs 461, 462, and 463, and output as tone outputs 1, 2, and 3. The volume level for each output is controlled by the amplitude specifying section 470 based on the settings on the volume setting operator 490.

【0015】このようにして、楽音データ発生手段41
0において時分割で発生される楽音データは、混合指定
部480の指定に基づいて楽音データ混合手段420に
おいて混合され、複数のアナログ信号の楽音出力を得る
ことができる。
In this way, the tone data generating means 41
The tone data generated in a time division manner at 0 is mixed by the tone data mixing means 420 based on the designation of the mixing designation section 480, and a tone output of a plurality of analog signals can be obtained.

【0016】DACへの入力の1音あたりの最大値は、
16ビットの楽音データをシフタ505において左に3
ビットだけシフトしているので、13ビットの楽音デー
タとなり、その最大値は4095となる。最大8音まで
混合できるので、4095*8=32760となり、D
ACの入力データの最大値32767以下となってい
る。
The maximum value of the input to the DAC per sound is:
The 16-bit tone data is shifted 3
Since the data is shifted by bits, the tone data becomes 13 bits, and its maximum value is 4095. Since up to eight sounds can be mixed, 4095 * 8 = 32760, and D
The maximum value of the AC input data is 32767 or less.

【0017】[0017]

【発明が解決しようとする課題】しかしながら上記の従
来の構成では、DACへ入力されるデータの1音あたり
の最大値が4095(データ長は13ビット)しかな
く、S/N比(信号と雑音の比率)が良くないという問
題点を有していた。また、1音しか混合しない場合で
も、DACへ入力される1音あたりの最大値を他と合わ
せるために小さくして、S/N比を悪化させるという問
題点を有していた。
However, in the above-described conventional configuration, the maximum value of data input to the DAC per sound is only 4095 (data length is 13 bits), and the S / N ratio (signal and noise) is small. Ratio) is not good. Further, even when only one sound is mixed, there is a problem that the maximum value per sound input to the DAC is reduced to match with the others, thereby deteriorating the S / N ratio.

【0018】本発明は上記の従来の問題点を解決するも
ので、S/N比の良い電子楽器の楽音発生装置を提供す
ることを目的とする。
An object of the present invention is to solve the above-mentioned conventional problems, and an object of the present invention is to provide a tone generator for an electronic musical instrument having a good S / N ratio.

【0019】[0019]

【課題を解決するための手段】この目的を達成するため
に本発明の電子楽器の楽音発生制御装置は、複数の楽音
データを発生する楽音データ発生手段と、前記楽音デー
タを複数のグループに混合することを指定する混合指定
手段と、混合後の楽音データの振幅ができるだけ大きく
なるように混合時の振幅を前記グループ毎に指定する振
幅指定手段と、前記混合指定手段から指定された楽音デ
ータを前記振幅指定手段から指定された振幅に基づいて
混合し混合楽音データとして出力する楽音データ混合手
段と、混合楽音データを基に生成された楽音信号の振幅
を混合時の振幅に応じて前記グループ毎に補正し前記グ
ループ間の音量バランスを調整する振幅調整手段とを有
している。
In order to achieve the above object, a musical sound generation control device for an electronic musical instrument according to the present invention comprises a musical sound data generating means for generating a plurality of musical sound data, and the musical sound data being mixed into a plurality of groups. Means to specify that the tone data after mixing should be as large as possible.
Amplitude designation means for designating the amplitude at the time of mixing for each group so that the tone data designated by the mixture designation means are mixed based on the amplitude designated by the amplitude designation means and output as mixed tone data. the grayed corrected for each of the groups according the musical sound data mixing means, the amplitude of the generated musical tone signal based on the mixed musical tone data to the amplitude at the time of mixing
Amplitude adjusting means for adjusting the volume balance between loops .

【0020】[0020]

【作用】この構成によって、有効な演算ビット長を大き
く取れることにより、演算誤差が少なくなり、デジタル
信号時にもアナログ信号に変換後も、ノイズの少ない楽
音信号を得ることができる。
With this configuration, the effective arithmetic bit length can be increased, thereby reducing the arithmetic error and obtaining a tone signal with less noise even when converting the digital signal to an analog signal.

【0021】[0021]

【実施例】(実施例1)以下本発明の一実施例につい
て、図面を参照しながら説明する。
(Embodiment 1) An embodiment of the present invention will be described below with reference to the drawings.

【0022】図1において、110は楽音データ発生手
段、120は楽音データ混合手段、121と122と1
23は楽音混合部、124はセレクタ、130はDA
C、141と142と143はS/H回路、151と1
52と153はLPF、160は振幅調整手段、161
と162と163はVCA、170は振幅指定部(振幅
指定手段に相当)、180は混合指定部(混合指定手段
に相当)、190は音量設定操作子である。
In FIG. 1, reference numeral 110 denotes tone data generating means, 120 denotes tone data mixing means, 121, 122 and 1
23 is a tone mixing section, 124 is a selector, 130 is DA
C, 141, 142 and 143 are S / H circuits, 151 and 1
52 and 153 are LPFs, 160 is an amplitude adjusting means, 161
, 162 and 163 are VCA, and 170 is an amplitude designation section (amplitude
Corresponds to the designating means), 180 is mixed designating unit (mixing specifying means
The equivalent), 190 is a volume setting operator.

【0023】図2は、図1における楽音混合部(12
1、122、123とも同一である。)の構成を示すも
のである。図2において、201はセレクタ、202は
加算器、203はリセット付きラッチ、204はラッ
チ、205は乗算器、206はオーバーフロー・アンダ
ーフロー検出器、207はセレクタである。
FIG. 2 is a diagram showing the tone mixing unit (12) shown in FIG.
1, 122 and 123 are the same. FIG. In FIG. 2, 201 is a selector, 202 is an adder, 203 is a latch with reset, 204 is a latch, 205 is a multiplier, 206 is an overflow / underflow detector, and 207 is a selector.

【0024】以上のように構成された電子楽器の楽音発
生装置について、図3の動作タイミング図(従来例も本
発明の実施例も動作タイミングは同じである。)に従っ
て、以下その動作について説明する。
The operation of the tone generator of the electronic musical instrument constructed as described above will now be described with reference to the operation timing chart of FIG. 3 (the operation timing is the same in both the conventional example and the embodiment of the present invention). .

【0025】楽音データ発生手段110は8音分の楽音
データ(データ長は16ビットで、その最大値は327
67)を発生し、楽音データ混合手段120は5音、2
音、1音分の楽音データをそれぞれ混合し、DAC13
0は入力データの最大値が32767(2の補数の16
ビットデータの最大値)である16ビットの分解能を有
するDACとする。
The musical sound data generating means 110 generates musical sound data for eight sounds (the data length is 16 bits and the maximum value is 327
67), and the musical sound data mixing means 120
Sound and sound data for one sound are mixed,
0 indicates that the maximum value of the input data is 32767 (2's complement 16
It is assumed that the DAC has a resolution of 16 bits which is the maximum value of the bit data.

【0026】まず、楽音データ発生手段110において
8音分の楽音データが時分割で発生され、楽音データW
i(W0〜W7)として出力される。ここでW0を第0
チャンネルの楽音データ、W1を第1チャンネルの楽音
データ、以下同様にして、W7を第7チャンネルの楽音
データと呼ぶことにする。
First, the musical sound data generating means 110 generates musical sound data for eight sounds in a time-division manner.
i (W0 to W7). Here, W0 is 0th
The channel tone data, W1 is called the first channel tone data, and similarly, W7 is called the seventh channel tone data.

【0027】次に、楽音混合部121、122、123
において、楽音データが混合される。混合指定部180
から出力される混合指定信号S1、S2、S3によって
混合されるチャンネルがそれぞれ指定される。すなわち
混合指定信号S1〜S3が1であるときのチャンネルの
楽音データが混合される。図3に示す例では、混合指定
信号S1は、時分割の楽音データWiがW0、W1、W
3、W4、W7の時に1であるので、楽音混合部121
において、第0、1、3、4、7チャンネルの計5音分
の楽音データが混合される。同様にして、楽音混合部1
22において、第2、5チャンネルの計2音分の楽音デ
ータが混合され、楽音混合部123において、第6チャ
ンネルの1音分の楽音データのみ混合される。
Next, the tone mixing sections 121, 122, 123
In, music data is mixed. Mixed designation section 180
The channels to be mixed are specified by the mixing specifying signals S1, S2, and S3 output from. That is, the tone data of the channel when the mixing designation signals S1 to S3 are 1 are mixed. In the example shown in FIG. 3, the mixed designation signal S1 is such that the time-division tone data Wi is W0, W1, W
Since it is 1 at 3, W4 and W7, the tone mixing unit 121
, The tone data of a total of five tones of channels 0, 1, 3, 4, and 7 are mixed. Similarly, the tone mixing unit 1
At 22, the tone data of a total of two tones of the second and fifth channels are mixed, and the tone mixing unit 123 mixes only one tone data of the sixth channel.

【0028】この混合の動作をもう少し詳細に説明す
る。楽音混合部121、122、123における動作
は、混合指定信号がそれぞれS1、S2、S3であるこ
と、および、振幅制御データがそれぞれG1、G2、G
3であること以外は同じなので、楽音混合部121の場
合について説明する。
The mixing operation will be described in more detail. The operation of the tone mixing units 121, 122, and 123 is such that the mixing designation signals are S1, S2, and S3, respectively, and the amplitude control data is G1, G2, and G, respectively.
Since it is the same except that it is 3, the case of the tone mixing unit 121 will be described.

【0029】まず最初に、リセット信号R1が1とな
り、ラッチ203に記憶された累算値MW1が0にリセ
ットされる。セレクタ201は入力Sが0の時は、入力
Aの値(すなわち0)を出力し、入力Sが1の時は、入
力Bの値(すなわち楽音データWi)を出力する。セレ
クタ201の出力は加算器202の入力Bに入力され、
ラッチ203の出力(つまり累算値MW1)は加算器2
02の入力Aに入力される。よって、混合指定信号S1
が1の時は、楽音データWiと累算値MW1が加算さ
れ、混合指定信号S1が0の時は値0と累算値MW1が
加算される。加算された結果は、クロック信号CK1の
立ち上がりによって、ラッチ203に記憶される。こう
して、混合指定信号S1に応じて、第0チャンネルから
第7チャンネルまでの楽音データが累算、つまり混合さ
れる。楽音データの最大値は32767(データ長は1
6ビット)であり、5音分の楽音データを累算するので
累算値MW1の最大値は数学的に32767*5=16
3835(データ長は19ビット)のデータとなる。
First, the reset signal R1 becomes 1, and the accumulated value MW1 stored in the latch 203 is reset to 0. When the input S is 0, the selector 201 outputs the value of the input A (ie, 0), and when the input S is 1, the selector 201 outputs the value of the input B (ie, the tone data Wi). The output of the selector 201 is input to the input B of the adder 202,
The output of the latch 203 (that is, the accumulated value MW1) is
02 is input to input A. Therefore, the mixing designation signal S1
Is 1, the tone data Wi and the accumulated value MW1 are added. When the mixed designation signal S1 is 0, the value 0 and the accumulated value MW1 are added. The result of the addition is stored in the latch 203 at the rise of the clock signal CK1. Thus, the tone data from the 0th channel to the 7th channel are accumulated, that is, mixed, in accordance with the mixing designation signal S1. The maximum value of the musical tone data is 32767 (the data length is 1
6 bits), and the musical tone data for 5 tones is accumulated, so the maximum value of the accumulated value MW1 is mathematically 32767 * 5 = 16
3835 (the data length is 19 bits).

【0030】第7チャンネルまでの累算が終了すると、
クロック信号CK2の立ち上がりによって、ラッチ20
3の出力である累算値MW1がラッチ204に記憶され
る。ラッチ204の出力は乗算器205に入力され、振
幅制御部170から出力される振幅制御データG1と乗
算される。振幅制御データG1が0.125に等しい場
合、従来例のシフタ505における3ビット左シフトと
等価になる。楽音混合部121では5音分の楽音データ
が混合されるので、振幅制御データG1を0.2まで大
きくしても乗算結果がオーバーフローしたりアンダーフ
ローしたりすることはない(つまり、16ビットの最大
値32767をこえることはない)。実際には、5音分
の楽音データがすべて最大値あるいは最小値(符号が負
の最大値)を同時に取ることはほとんどありえないの
で、振幅制御データG1を0.2より大きくしても実用
上問題ない。
When the accumulation up to the seventh channel is completed,
The rising edge of the clock signal CK2 causes the latch 20
3 is stored in the latch 204. The output of the latch 204 is input to the multiplier 205 and multiplied by the amplitude control data G1 output from the amplitude controller 170. When the amplitude control data G1 is equal to 0.125, it becomes equivalent to a 3-bit left shift in the conventional shifter 505. Since the tone mixing unit 121 mixes tone data of five tones, the multiplication result does not overflow or underflow even if the amplitude control data G1 is increased to 0.2 (that is, 16-bit data). The maximum value does not exceed 32767). In practice, it is almost impossible for all five tone data to take the maximum value or the minimum value (sign negative maximum value) at the same time. Therefore, even if the amplitude control data G1 is larger than 0.2, there is a practical problem. Absent.

【0031】また、ピアノのような減衰音の場合、楽音
の最初の立ち上がり部分では振幅が大きいがすぐに減衰
して振幅は小さくなるので、振幅制御データG1を0.
5程度まで大きくしても実用上問題ない。ただし、乗算
結果がオーバーフローまたはアンダーフローする可能性
は残されているので、オーバーフローまたはアンダーフ
ローによって大きなスパイクノイズを発生させないよう
にしたほうがよい。
In the case of an attenuated sound such as a piano, the amplitude is large at the first rising portion of the musical tone, but is attenuated immediately and the amplitude becomes small.
Even if it is increased to about 5, there is no practical problem. However, since there is a possibility that the multiplication result overflows or underflows, it is better not to generate a large spike noise due to the overflow or underflow.

【0032】すなわち、図2のように、オーバーフロー
・アンダーフロー検出器206とセレクタ207を設け
る。オーバーフロー・アンダーフロー検出器206が、
オーバーフローおよびアンダーフローどちらも検出しな
い場合は、セレクタ207は入力A、つまり乗算結果を
選択する。オーバーフローを検出した場合は、入力B、
つまり楽音最大値(32767)を選択し、アンダーフ
ローを検出した場合は、入力C、つまり楽音最小値(−
32768)を選択する。オーバーフローおよびアンダ
ーフローはほんの一瞬しか起こらないので、オーバーフ
ロー・アンダーフロー対策による混合楽音データの歪み
は、聴感上問題とならない。ただし、振幅制御データG
1を極端に大きく(1程度または1以上)にすれば、頻
繁にオーバーフローまたはアンダーフローが発生するの
で、混合楽音データの歪みが感知されるのは言うまでも
ない。
That is, as shown in FIG. 2, an overflow / underflow detector 206 and a selector 207 are provided. The overflow / underflow detector 206
When neither overflow nor underflow is detected, the selector 207 selects the input A, that is, the multiplication result. If an overflow is detected, input B,
That is, when the maximum tone value (32767) is selected and an underflow is detected, the input C, that is, the minimum tone value (-
32768) is selected. Since the overflow and the underflow occur only for a moment, the distortion of the mixed musical tone data due to the countermeasure for the overflow and the underflow does not cause a problem in hearing. However, the amplitude control data G
If 1 is made extremely large (approximately 1 or 1 or more), an overflow or an underflow frequently occurs, and it goes without saying that the distortion of the mixed musical tone data is sensed.

【0033】楽音混合部122では、2音分の楽音デー
タが混合されるので、振幅制御データG2を0.5にし
ても決してオーバーフローおよびアンダーフローは生じ
ない。2音分の楽音データが同時に最大値あるいは最小
値を取ることはあまりないので、ピアノのような減衰音
の場合、振幅制御データG2を0.7くらいまで大きく
しても実用上問題ない。
In the tone mixing section 122, two tone data are mixed, so that even if the amplitude control data G2 is set to 0.5, overflow and underflow never occur. Since tone data for two sounds rarely take the maximum value or the minimum value at the same time, in the case of an attenuated sound such as a piano, there is no practical problem even if the amplitude control data G2 is increased to about 0.7.

【0034】楽音混合部123では、1音分の楽音デー
タしか混合されないので、振幅制御データG3を1に設
定すればよい。
Since only one tone data is mixed in the tone mixing section 123, the amplitude control data G3 may be set to 1.

【0035】こうして、混合データM1、M2、M3
(データ長はともに16ビット)が出力される。振幅制
御データG1、G2、G3をそれぞれ0.5,0.7,
1に設定したとき、DACへ入力される1音あたりの最
大値は、混合データM1の場合は16384(データ長
は15ビット)に、混合データM2の場合は22937
(データ長は15.4ビット相当)に、M3の場合は3
2767(データ長は16ビット)になり、従来例の場
合よりも4〜8倍になっており、それだけ量子化ノイズ
が少なくなり、S/N比が良くなる。
Thus, the mixed data M1, M2, M3
(The data length is 16 bits each) is output. The amplitude control data G1, G2, G3 are respectively 0.5, 0.7,
When set to 1, the maximum value per tone input to the DAC is 16384 (data length is 15 bits) for mixed data M1, and 22937 for mixed data M2.
(Data length is equivalent to 15.4 bits) and 3 for M3
This is 2767 (the data length is 16 bits), which is 4 to 8 times that of the conventional example, so that the quantization noise is reduced and the S / N ratio is improved.

【0036】混合データM1、M2、M3はセレクタ1
24に入力され、時分割でDAC130に混合楽音デー
タとして出力される。混合楽音データは、DAC130
においてアナログ楽音信号に変換され、サンプル・ホー
ルド信号SH1、SH2、SH3によって、それぞれS
/H回路141、142、143でサンプル・ホールド
される。サンプル・ホールドされた楽音信号は、LPF
151、152、153によって不要なサンプリングノ
イズを除去された後、VCA161、162、163に
おいて、各出力ごとの音量レベルが調整され、楽音出力
1、2、3として出力される。各出力ごとの音量レベル
は、音量設定操作子490での設定と振幅制御データG
1〜3の両方に基づいて振幅指定部170によって制御
される。
The mixed data M1, M2 and M3 are stored in the selector 1
24, and output to the DAC 130 as mixed tone data in a time-division manner. The mixed tone data is stored in the DAC 130
Is converted to an analog tone signal by the sample and hold signals SH1, SH2, SH3.
/ H circuits 141, 142, 143 sample and hold. The sampled and held tone signal is an LPF
After unnecessary sampling noise is removed by 151, 152, and 153, the volume level of each output is adjusted in the VCAs 161, 162, and 163, and output as musical tone outputs 1, 2, and 3. The volume level of each output is set by the volume setting operator 490 and the amplitude control data G
It is controlled by the amplitude designation unit 170 based on both of the items 1-3.

【0037】つまり、楽音出力1、2、3の音量設定操
作子490での設定が同じ場合、VCA161、16
2、163での増幅率は、振幅制御データG1〜3の逆
数の比率で設定される。振幅制御データG1=0.5、
G2=0.7、G3=1とすると、VCA161、16
2、163の音量調整信号V1=2、V2=1.43、
V3=1とすればよい。楽音出力1、2、3の振幅を従
来例の場合と同じにするには、V1=0.25、V2=
0.18、V3=0.125とすればよい。(ただしV
CAでの増幅率は振幅制御信号の値と同じとする。)よ
って、DAC以降の原因によるノイズは、VCAにおい
て振幅を小さくする分だけ、従来例の場合よりも本実施
例のほうが低減され、さらにS/N比が向上する。
That is, if the settings of the tone output 1, 2, and 3 on the volume setting operator 490 are the same, the VCAs 161 and 16
The amplification factors at 2, 163 are set by the reciprocal ratios of the amplitude control data G1 to G3. Amplitude control data G1 = 0.5,
Assuming that G2 = 0.7 and G3 = 1, VCAs 161 and 16
2, 163 volume adjustment signals V1 = 2, V2 = 1.43,
V3 may be set to 1. To make the amplitudes of the musical tone outputs 1, 2, and 3 the same as in the conventional example, V1 = 0.25 and V2 =
It is sufficient to set 0.18 and V3 = 0.125. (However, V
The amplification factor in CA is the same as the value of the amplitude control signal. Therefore, the noise caused by the cause after the DAC is reduced in the present embodiment by the amount corresponding to the decrease in the amplitude in the VCA, and the S / N ratio is further improved as compared with the conventional example.

【0038】以上のように本実施例によれば、楽音デー
タを複数のグループに混合することを指定する混合指定
手段と、混合後の楽音データの振幅ができるだけ大きく
なるように混合時の振幅を前記グループ毎に指定する振
幅指定手段と、混合指定手段から指定された楽音データ
を振幅指定手段から指定された振幅に基づいて混合し混
合楽音データとして出力する楽音データ混合手段と、混
合された楽音に対してグループ毎に振幅を補正し前記グ
ループ間の音量バランスを調整する振幅調整手段とを設
けることにより、演算の途中段階ではグループ間の音量
バランスを無視して演算有効ビット長を増やして演算誤
差を少なくし、演算の終わりの段階にてグループ間の音
量バランスを正しく戻すべく振幅を上げた混合楽音デー
タの振幅を他のグループに対して相対的に元に戻すた
め、ノイズの少ない混合楽音信号を得ることができる。
As described above, according to the present embodiment, the mixing specifying means for specifying that the musical sound data is to be mixed into a plurality of groups, and the amplitude of the mixed musical sound data is as large as possible.
Amplitude specifying means for specifying the amplitude at the time of mixing for each of the groups so that the tone data specified by the mixing specifying means are mixed based on the amplitude specified by the amplitude specifying means and output as mixed tone data Mixing means for correcting the amplitude of the mixed musical tones for each group , and
By providing amplitude adjustment means for adjusting the volume balance between loops, the volume
Ignoring the balance and increasing the effective bit length
Reduce the difference, and sound between groups at the end of the calculation.
Mixed tone data with increased amplitude to properly restore volume balance
The amplitude of the data relative to the other groups
As a result, a mixed tone signal with less noise can be obtained.

【0039】[0039]

【0040】なお、本実施例において、楽音混合部を1
21、122、123の3組設けたが、楽音混合部1つ
だけを使って時分割演算してもよいことは言うまでもな
い。ただしこの場合でも累算値だけは3組ほど記憶しな
ければならない。
In this embodiment, the tone mixing section is set to 1
Although three sets 21, 122 and 123 are provided, it goes without saying that time-division calculation may be performed using only one tone mixing unit. However, even in this case, only three sets of accumulated values must be stored.

【0041】また、音量調整手段160においてVCA
を用いたが、アナログ信号の振幅を調整できるものであ
れば何を使用してもよいことは言うまでもない。
In the volume control means 160, VCA
However, it is needless to say that any device that can adjust the amplitude of the analog signal may be used.

【0042】また、楽音混合部において、ラッチ204
の出力である累算値に振幅制御データを乗算したが、乗
算器205を加算器202の入力の前段に設けて、楽音
データに振幅制御データを乗算した後、加算器202で
累算しても等価であることは言うまでもない。
In the tone mixing section, the latch 204
Is multiplied by the amplitude control data. The multiplier 205 is provided before the input of the adder 202, and the tone data is multiplied by the amplitude control data. It is needless to say that is also equivalent.

【0043】また、楽音データは、複数の楽音混合部の
いずれか1つにおいてのみ混合されたが、2つ以上の楽
音混合部において混合され、1つの楽音データが複数の
楽音出力に出力されてもよいことは言うまでもない。
Although the tone data is mixed in only one of the plurality of tone mixing units, it is mixed in two or more tone mixing units, and one tone data is output to a plurality of tone outputs. Needless to say, it is good.

【0044】[0044]

【発明の効果】以上のように本発明は、複数の楽音デー
タを発生する楽音データ発生手段と、前記楽音データを
複数のグループに混合することを指定する混合指定手段
と、混合後の楽音データの振幅ができるだけ大きくなる
ように混合時の振幅を前記グループ毎に指定する振幅指
定手段と、前記混合指定手段から指定された楽音データ
を前記振幅指定手段から指定された振幅に基づき混合し
混合楽音データとして出力する楽音データ混合手段と、
混合楽音データを基に生成された楽音信号の振幅を混合
時の振幅に応じて前記グループ毎に補正し前記グループ
間の音量バランスを調整する振幅調整手段とを設けるこ
とにより、演算の途中段階ではグループ間の音量バラン
スを無視して演算有効ビット長を増やして演算誤差を少
なくし、演算の終わりの段階にてグループ間の音量バラ
ンスを正しく戻すべく振幅を上げた混合楽音データの振
幅を元に戻すため、ノイズの少ない混合された楽音信号
を発生することができる優れた電子楽器の楽音発生装置
を実現できるものである。
As described above, according to the present invention, there are provided tone data generating means for generating a plurality of tone data, mixing designating means for designating that the tone data is to be mixed into a plurality of groups, and tone data after mixing. The amplitude of
Amplitude specifying means for specifying the amplitude at the time of mixing for each group as described above, and tone data for mixing the tone data specified by the mixing specifying means based on the amplitude specified by the amplitude specifying means and outputting as mixed tone data Mixing means;
The group is corrected for each of the groups according to the amplitude of the mixed musical tone data generated musical tone signal based on the amplitude during mixing
By providing amplitude adjustment means for adjusting the volume balance between groups , the volume balance between groups can be
Ignoring calculation errors and increasing the effective bit length
At the end of the calculation,
Of mixed tone data with increased amplitude to return the
Since the width is restored, an excellent tone generator for an electronic musical instrument that can generate a mixed tone signal with less noise can be realized.

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

【図1】本発明の実施例における電子楽器の楽音発生装
置の構成図
FIG. 1 is a configuration diagram of a musical sound generating device for an electronic musical instrument according to an embodiment of the present invention.

【図2】本発明の実施例における電子楽器の楽音発生装
置の楽音混合部の構成図
FIG. 2 is a configuration diagram of a tone mixing unit of the tone generator of the electronic musical instrument according to the embodiment of the present invention.

【図3】本発明の実施例および従来例における電子楽器
の楽音発生装置の動作タイミング図
FIG. 3 is an operation timing chart of a musical sound generator of an electronic musical instrument according to an embodiment of the present invention and a conventional example.

【図4】従来の電子楽器の楽音発生装置の構成図FIG. 4 is a block diagram of a conventional musical sound generator for an electronic musical instrument.

【図5】従来の電子楽器の楽音発生装置の楽音混合部の
構成図
FIG. 5 is a configuration diagram of a tone mixing unit of a conventional tone generator for an electronic musical instrument.

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

110 楽音データ発生手段 120 楽音データ混合手段 130 ディジタル−アナログ変換器 160 振幅調整手段 110 Musical Sound Data Generation Means 120 Musical Sound Data Mixing Means 130 Digital-to-Analog Converter 160 Amplitude Adjusting Means

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数の楽音データを発生する楽音データ
発生手段と、前記楽音データを複数のグループに混合す
ることを指定する混合指定手段と、混合後の楽音データ
の振幅ができるだけ大きくなるように混合時の振幅を前
記グループ毎に指定する振幅指定手段と、前記混合指定
手段から指定された楽音データを前記振幅指定手段から
指定された振幅に基づいて混合し混合楽音データとして
出力する楽音データ混合手段と、混合楽音データを基に
生成された楽音信号の振幅を混合時の振幅に応じて前記
グループ毎に補正し前記グループ間の音量バランスを調
整する振幅調整手段とを備えた電子楽器の楽音発生装
置。
1. A musical sound data generating means for generating a plurality of musical sound data, a mixing specifying means for specifying that the musical sound data is to be mixed into a plurality of groups, and the musical sound data after mixing
Amplitude specifying means for specifying the amplitude at the time of mixing for each of the groups so that the amplitude of the sound is as large as possible, and mixing and mixing the tone data specified by the mixing specifying means based on the amplitude specified by the amplitude specifying means. Tone data mixing means for outputting as tone data; and correcting the amplitude of the tone signal generated based on the mixed tone data for each of the groups according to the amplitude at the time of mixing to adjust the volume balance between the groups.
Musical tone generating apparatus for an electronic musical instrument provided with an amplitude adjustment means for settling.
【請求項2】 前記振幅指定手段は、混合する楽音デー
タの数や、持続系か減衰系かなどの楽音の形態に応じ
て、混合時の振幅を変化させることを特徴とする請求項
1記載の電子楽器の楽音発生装置。
2. The apparatus according to claim 1, wherein said amplitude designating means changes the amplitude at the time of mixing according to the number of musical sound data to be mixed and the form of musical sound such as continuous or attenuated. Musical instrument for electronic musical instruments.
【請求項3】 前記振幅調整手段は、混合楽音データを
アナログ信号に変換した後に、混合時の振幅に応じて振
幅を補正し、前記グループ間の音量バランスを調整する
ことを特徴とする請求項1記載の電子楽器の楽音発生装
置。
3. The amplitude adjusting means converts the mixed musical tone data into an analog signal, and then corrects the amplitude in accordance with the amplitude at the time of mixing to adjust the volume balance between the groups. The musical sound generator for an electronic musical instrument according to claim 1, wherein
JP03076234A 1991-04-09 1991-04-09 Musical instrument for electronic musical instruments Expired - Fee Related JP3106530B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03076234A JP3106530B2 (en) 1991-04-09 1991-04-09 Musical instrument for electronic musical instruments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03076234A JP3106530B2 (en) 1991-04-09 1991-04-09 Musical instrument for electronic musical instruments

Publications (2)

Publication Number Publication Date
JPH04309998A JPH04309998A (en) 1992-11-02
JP3106530B2 true JP3106530B2 (en) 2000-11-06

Family

ID=13599480

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03076234A Expired - Fee Related JP3106530B2 (en) 1991-04-09 1991-04-09 Musical instrument for electronic musical instruments

Country Status (1)

Country Link
JP (1) JP3106530B2 (en)

Also Published As

Publication number Publication date
JPH04309998A (en) 1992-11-02

Similar Documents

Publication Publication Date Title
KR100386549B1 (en) Sample rate converter
EP0218912B1 (en) Special effects device for an electronic musical instrument
JP3106530B2 (en) Musical instrument for electronic musical instruments
EP0675481B1 (en) Tone signal generator having a sound effect function
USRE33738E (en) Electronic musical instrument of waveform memory reading type
JPH02240697A (en) Device for changing speed for reading out waveform data
US6548749B2 (en) Electronic musical instrument and tone volume control method
JP3273885B2 (en) Digital phase modulator
CN115097897B (en) Staggered weaving output method of signal generator
JP2606006B2 (en) Noise sound generator
JP3539164B2 (en) Waveform generator
JP2778415B2 (en) Distortion effect device
JP5104522B2 (en) Waveform generator and waveform generation processing program
JP2683975B2 (en) Tone generator
JP3223555B2 (en) Waveform reading device
EP1394768B1 (en) Sound synthesiser
JPH066216A (en) Bit length extending device
JPH0710411Y2 (en) Signal generator
JPH05323970A (en) Musical sound generating device
JP3430578B2 (en) Electronic musical instrument sound generator
JPH0955662A (en) Signal delay device and signal delay method
JP2919984B2 (en) Tone signal waveform synthesizer
JP3097324B2 (en) Digital sound data output device
JP2625670B2 (en) Musical sound wave generator
JPH02108099A (en) Waveform interpolating device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees