JP2005128223A - Sound source device and electronic equipment equipped with sound source device - Google Patents

Sound source device and electronic equipment equipped with sound source device Download PDF

Info

Publication number
JP2005128223A
JP2005128223A JP2003363306A JP2003363306A JP2005128223A JP 2005128223 A JP2005128223 A JP 2005128223A JP 2003363306 A JP2003363306 A JP 2003363306A JP 2003363306 A JP2003363306 A JP 2003363306A JP 2005128223 A JP2005128223 A JP 2005128223A
Authority
JP
Japan
Prior art keywords
waveform
sound
data
musical
source device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2003363306A
Other languages
Japanese (ja)
Other versions
JP3778361B2 (en
Inventor
Yoshimune Komori
由宗 小森
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.)
Faith Inc
Original Assignee
Faith Inc
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 Faith Inc filed Critical Faith Inc
Priority to JP2003363306A priority Critical patent/JP3778361B2/en
Publication of JP2005128223A publication Critical patent/JP2005128223A/en
Application granted granted Critical
Publication of JP3778361B2 publication Critical patent/JP3778361B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To enable playing of musical sound data with an optimum sound volume even when the number of sound production of the musical sound data is smaller than the number of the sounds that can be produced with a sound source device. <P>SOLUTION: A CPU 31 disposed at the sound source device 3 reads the waveform data of the musical sounds out of a ROM 3 according to the kinds of the musical sounds of the musical sound data and sends the same to a waveform generator 35A of respectively corresponding sound production channels 35 to 37. The waveform signals outputted from the waveform generator 35A are multiplied by the sound volume of the musical sound data at a sound volume adjusting section 35B and are further converted to analog signals at a digital-to-analog conversion section 35C. The analog-converted waveform signals of the respective sound production channels 35 to 37 are synthesized at an analog adder section 38. The synthesized waveform synthesis signal is amplified at an amplifier section 39. The CPU 31 controls the amplifier section 39 so as to compensate the degradation in the output of the waveform synthesis signal generated by the existence of the sound production channels 35 to 37 which do not produce the sounds. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、楽音の波形信号を生成する複数の発音チャンネルと各波形信号を合成する波形合成部とを備えた音源装置に関するものである。   The present invention relates to a sound source device including a plurality of tone generation channels that generate a waveform signal of a musical sound and a waveform synthesis unit that synthesizes each waveform signal.

パーソナルコンピュータ、携帯電話機、ゲーム機器、電子楽器等の各種の機器は、例えば、MIDI仕様の演奏用データに基づいて3音、16音等を発音可能な音源装置を備えている。また、演奏データにも発音数が3音、16音等のものがある。製造当初から機器のROMまたはハードディスク等の記録媒体に記録されている演奏データの発音数は、一般的には音源装置の発音可能な発音数(つまり、発音チャンネルの個数)と等しい。それに対して、通信回線またはCD等の記録媒体を介して演奏データが機器にロードされて演奏される場合には、演奏データの発音数と音源の発音可能な発音数とが一致しないことがある。   Various devices such as a personal computer, a mobile phone, a game device, and an electronic musical instrument are provided with a sound source device that can generate three sounds, sixteen sounds, and the like based on MIDI performance data, for example. Also, there are performance data having pronunciation numbers of 3 sounds, 16 sounds, and the like. The number of pronunciations of performance data recorded on a recording medium such as a ROM or a hard disk of the device from the beginning of manufacture is generally equal to the number of pronunciations (that is, the number of tone generation channels) that can be generated by the tone generator. On the other hand, when performance data is loaded into a device via a communication line or a recording medium such as a CD and played, the number of pronunciations of the performance data may not match the number of pronunciations that can be generated by the sound source. .

また、本発明と直接関係するものではないが、複数の楽器音発生器を低周波用、中周波用および高周波用の楽器音発生器に分類し、各発音信号の音量を分類ごとに個別に増減し、さらに音量を増減された各発音信号を合成した後に周波数帯域ごとに出力レベルを増減する電子楽曲発生装置が知られている(例えば、特許文献1)。   Although not directly related to the present invention, a plurality of instrument sound generators are classified into low-frequency, medium-frequency and high-frequency instrument sound generators, and the volume of each sound generation signal is individually classified for each class. There has been known an electronic music generating device that increases and decreases output levels for each frequency band after synthesizing sound generation signals that are increased or decreased and further increased or decreased in volume (for example, Patent Document 1).

特開平8−297490号公報(段落0006〜段落0014)JP-A-8-297490 (paragraphs 0006 to 0014)

しかしながら、上記従来のものにおいては、音源装置は発音可能数に等しい発音数を有する演奏データを演奏するときに最適な音量が出力されるように構成されている。このため、演奏データの発音数が音源装置の発音可能数よりも少ない場合には、音源装置から出力される音量は最適な音量よりも小さくなってしまうという問題がある。   However, in the above conventional apparatus, the sound source device is configured to output an optimum volume when playing performance data having the number of pronunciations equal to the number of possible pronunciations. For this reason, when the number of pronunciations of performance data is less than the number of possible sound generations of the sound source device, there is a problem that the sound volume output from the sound source device is smaller than the optimum sound volume.

本発明は、上記問題点を解決するものであって、その課題とするところは、演奏データの発音数が音源装置の発音可能数よりも少ない場合であっても、その演奏を最適な音量で行うことのできる音源装置および当該音源装置を備えた電子機器を提供することにある。   The present invention solves the above-mentioned problems, and the problem is that even if the number of pronunciations of performance data is less than the number of possible sound generations of the sound source device, the performance is played at an optimal volume. It is an object to provide a sound source device that can be performed and an electronic device including the sound source device.

本発明では、少なくとも音程を含む楽音データを入力して所定の楽音の当該音程の波形信号を出力する複数の発音手段と、各波形信号を合成して波形合成信号を出力する波形合成手段とを備えた音源装置において、波形合成信号の出力を増幅させるための増幅手段と、この増幅手段を制御する制御手段とを設ける。そして、楽音データの同時発音数が発音手段の個数以下の個数である基準個数よりも少ない場合には、制御手段は、基準個数と同時発音数の差の数だけの発音しない発音手段が存在することによって生じる波形合成信号の出力の低下を補償するように前記増幅手段を制御する。   In the present invention, a plurality of sound generating means for inputting musical tone data including at least a pitch and outputting a waveform signal of the predetermined pitch for the pitch, and a waveform synthesizing means for synthesizing each waveform signal and outputting a waveform synthesized signal. In the sound source device provided, an amplifying means for amplifying the output of the waveform synthesis signal and a control means for controlling the amplifying means are provided. If the number of simultaneous sounds of the musical sound data is smaller than the reference number that is equal to or less than the number of sounding means, the control means includes sounding means that does not sound as many as the difference between the reference number and the simultaneous sounding number. The amplification means is controlled so as to compensate for a decrease in the output of the waveform synthesis signal caused by the above.

このようにすることで、発音手段の基準個数と楽音データの同時発音数の差の数だけの発音しない発音手段が存在することによって生じる波形合成信号の出力の低下が補償されるので、楽音データの同時発音数が発音手段の基準個数よりも少ない場合であっても音源装置の波形合成信号の出力は最適な値になる。つまり、楽音データが最適な音量で演奏される。ここで、発音手段の基準個数とは、この個数よりも少ない同時発音数の楽音データを当該音源装置で演奏すると、当該楽音データをその同時発音数と同じ個数の発音手段を備えた音源装置で演奏するときと比較して、音量の低下が聴覚的に認識される個数である。尚、波形合成信号の増幅は、例えば、各波形信号を増幅することによって、もしくは波形合成信号自体を増幅することによって、または各発音手段に入力されるデータであって、波形信号を生成するためのデータを増幅することによって行われる。   By doing so, the decrease in the output of the waveform composite signal caused by the existence of sound producing means that does not produce sound corresponding to the difference between the reference number of sound producing means and the simultaneous sound production number of the musical sound data is compensated. Even when the number of simultaneous sounds is smaller than the reference number of sound generating means, the output of the waveform synthesis signal of the sound source device becomes an optimum value. That is, the musical sound data is played at an optimal volume. Here, the reference number of sounding means is a sound source device having sounding means having the same number of sounding means as the number of simultaneous sounding sounds when musical sound data having a simultaneous sounding number smaller than this number is played on the sounding device. This is the number by which a decrease in volume is audibly recognized compared to when performing. Note that the waveform synthesis signal is amplified by, for example, amplifying each waveform signal, or by amplifying the waveform synthesis signal itself, or data input to each sound generation means to generate a waveform signal. This is done by amplifying the data.

また、本発明では、少なくとも音程を含む楽音データを入力して所定の楽音の当該音程の波形信号を出力する複数の発音手段と、各波形信号を合成して波形合成信号を出力する波形合成手段とを備えた音源装置において、波形合成信号の出力を増幅させるための増幅手段と、この増幅手段を制御する制御手段とを設ける。そして、楽音データの同時発音数が発音手段の個数以下の個数である基準個数よりも少ない場合には、制御手段は、波形合成信号の出力が、楽音データの同時発音数が基準個数と同じであるとしたときの波形合成信号の出力と等しくなるように前記増幅手段を制御する。   Further, in the present invention, a plurality of sound generating means for inputting musical tone data including at least a pitch and outputting a waveform signal of the pitch of a predetermined musical tone, and a waveform synthesizing unit for synthesizing each waveform signal and outputting a waveform synthesized signal Is provided with amplification means for amplifying the output of the waveform synthesis signal and control means for controlling the amplification means. When the number of simultaneous sound generations of the musical sound data is less than the reference number that is equal to or less than the number of sounding means, the control means outputs the waveform composite signal so that the number of simultaneous soundings of the musical sound data is the same as the reference number. The amplifying means is controlled so as to be equal to the output of the waveform synthesis signal when there is.

このようにすることで、楽音データの同時発音数が発音手段の基準個数よりも少ない場合であっても、波形合成信号の出力が、前記楽音データの同時発音数が前記基準個数と同じであるとしたときの波形合成信号の出力と等しくなるように制御されるので、楽音データが最適な音量で演奏される。   In this way, even if the number of simultaneous sound generations of the musical sound data is smaller than the reference number of the sound generation means, the output of the waveform synthesis signal is the same as the reference number of the simultaneous sound generation of the musical sound data. Therefore, the musical tone data is played at an optimal volume.

上記2つの発明の好ましい実施形態においては、制御手段による制御が行われないときと比較して、前記波形合成信号の出力が電力レベルで{(発音手段の基準個数)/(楽音データの同時発音数)}倍になるように制御手段は増幅手段を制御する。このようにすることで、楽音データの同時発音数が発音手段の基準個数よりも少ない場合であっても、楽音データが最適な音量で演奏される。   In a preferred embodiment of the above two inventions, the output of the waveform synthesis signal is {(reference number of sounding means) / (simultaneous sounding of musical sound data) at the power level as compared with the case where control by the control means is not performed. The control means controls the amplifying means so as to be multiplied by (number)}. In this way, even if the number of simultaneous sound generations of the musical sound data is less than the reference number of the sounding means, the musical sound data is played at an optimal volume.

さらに、本発明の電子機器は、上記発明の音源装置と、通信手段または記録媒体読み取り手段とを備えた電子機器であって、音源装置は通信手段または記録媒体読み取り手段から楽音データを受け取る。本発明の電子機器(冒頭に示したようなパーソナルコンピュータ、携帯電話機、ゲーム機器、電子楽器等)は、上記発明の音源装置を備えているので、上記と同様の作用効果を奏する。   Furthermore, an electronic device of the present invention is an electronic device including the sound source device of the present invention and a communication unit or a recording medium reading unit, and the sound source device receives musical sound data from the communication unit or the recording medium reading unit. Since the electronic device of the present invention (a personal computer, a mobile phone, a game device, an electronic musical instrument, etc. as shown at the beginning) includes the sound source device of the present invention, the same effects as described above can be obtained.

本発明によれば、楽音データの同時発音数が音源装置の発音手段の個数よりも少ない場合であっても、楽音データが最適な音量で演奏される。   According to the present invention, the musical sound data is played at an optimal volume even when the number of simultaneous sound generations of the musical sound data is smaller than the number of sounding means of the sound source device.

図1は、本発明に係る音源装置を備えた電子機器1のブロック図である。CPU11、ROM12、RAM13等がバスライン10を介して相互に接続される。CPU11は、ROM12に格納されたプログラムに従って電子機器1の動作を制御する。ROM12には制御データ等も格納されている。RAM13は、各種データ、各種制御データを記憶し、またCPU11の演算作業領域としても使用される。音源装置3はバスライン10を介して楽音データを受け取り、楽音データに従って楽音信号を生成し、サウンドシステム14に送る。サウンドシステム14は、増幅器、スピーカ等から構成され、操作部17の音量スイッチが操作されると増幅器の増幅率が変化し、スピーカから出力される音量が増減する。   FIG. 1 is a block diagram of an electronic device 1 including a sound source device according to the present invention. The CPU 11, ROM 12, RAM 13, etc. are connected to each other via the bus line 10. The CPU 11 controls the operation of the electronic device 1 according to a program stored in the ROM 12. The ROM 12 also stores control data and the like. The RAM 13 stores various data and various control data, and is also used as a calculation work area of the CPU 11. The tone generator 3 receives the tone data via the bus line 10, generates a tone signal according to the tone data, and sends it to the sound system 14. The sound system 14 includes an amplifier, a speaker, and the like. When the volume switch of the operation unit 17 is operated, the amplification factor of the amplifier changes, and the volume output from the speaker increases or decreases.

MIDIインタフェイス15は外部機器に対してMIDIデータを送受するためのインタフェイスである。MIDIインタフェイス15から受け取ったMIDIデータは、ハードディスク18、RAM13等に記録され、演奏されるときに音源装置3に送られる。この場合、CPU11によって部分的に加工されたMIDIデータを音源装置3に送るようにしてもよい。通信部16は、外部機器との間でMIDIデータを含む各種のデータまたはコマンドを送受する。例えば、インターネット上の音楽配信システムから通信部16により受信されたMIDIデータ等の楽音データは、ハードディスク18、RAM13等に記録され、演奏されるときに音源装置3に送られる。または、音源装置3のRAM33(図2)に直接送られる。上記のMIDIインタフェイス15および通信部16が本発明の通信手段に相当する。   The MIDI interface 15 is an interface for transmitting / receiving MIDI data to / from an external device. The MIDI data received from the MIDI interface 15 is recorded on the hard disk 18, the RAM 13, etc., and sent to the sound source device 3 when played. In this case, MIDI data partially processed by the CPU 11 may be sent to the sound source device 3. The communication unit 16 transmits / receives various data or commands including MIDI data to / from an external device. For example, musical tone data such as MIDI data received from the music distribution system on the Internet by the communication unit 16 is recorded in the hard disk 18, the RAM 13, etc., and sent to the sound source device 3 when played. Alternatively, it is sent directly to the RAM 33 (FIG. 2) of the sound source device 3. The MIDI interface 15 and the communication unit 16 described above correspond to the communication means of the present invention.

操作部17は、電子機器1の操作に使用される各種のキー等から構成され、電子機器1がパーソナルコンピュータであるときはキーボードであり、電子楽器であるときは、例えば、鍵盤であり、携帯電話機であるときは操作ボタンであり、ゲーム機器であるときはジョイスティック等である。
ハードディスク18には、各種のデータ、プログラムが記憶されている。例えば、電子機器1がパーソナルコンピュータであるときは、このプログラムがRAM13にロードされ、CPU11によって実行される。
ディスク駆動装置19は、フレキシブルディスク、DVD、CD等のリムーバブルディスク20に対してデータの読み書きを行う。ハードディスク18またはリムーバブルディスク20に記録されているMIDIデータ等の楽音データは、音源装置3に送られて演奏される。上記のハードディスク18内部の駆動機構およびディスク駆動装置19が本発明の記録媒体読み取り手段に相当する。
The operation unit 17 includes various keys used for operation of the electronic device 1. When the electronic device 1 is a personal computer, the operation unit 17 is a keyboard. When the electronic device 1 is an electronic musical instrument, for example, a keyboard is used. When it is a telephone, it is an operation button, and when it is a game machine, it is a joystick or the like.
Various data and programs are stored in the hard disk 18. For example, when the electronic device 1 is a personal computer, this program is loaded into the RAM 13 and executed by the CPU 11.
The disk drive device 19 reads / writes data from / to a removable disk 20 such as a flexible disk, DVD, or CD. Musical sound data such as MIDI data recorded on the hard disk 18 or the removable disk 20 is sent to the tone generator 3 for performance. The drive mechanism inside the hard disk 18 and the disk drive device 19 correspond to the recording medium reading means of the present invention.

図2は、本発明に係る音源装置3の第1の実施形態を示す図である。図3は、楽音データを示す図である。図2、図3を参照しつつ第1の実施形態について説明する。音源装置3は、CPU31、RAM33、ROM32、バスインタフェイス部34、第1〜第16発音チャンネル35〜37、アナログ加算部38、および増幅部39から構成される。各発音チャンネル35〜37は、波形生成部35A、音量調整部35B、およびD/A変換部35Cから構成される。図2および以下の図においては、第3〜第15発音チャンネルの図示は省略されている。CPU31等が接続されたバスライン30は、バスインタフェイス部34を介してバスライン10に接続されている。   FIG. 2 is a diagram showing a first embodiment of the sound source device 3 according to the present invention. FIG. 3 is a diagram showing musical sound data. The first embodiment will be described with reference to FIGS. The tone generator 3 includes a CPU 31, a RAM 33, a ROM 32, a bus interface unit 34, first to sixteenth sound generation channels 35 to 37, an analog addition unit 38, and an amplification unit 39. Each of the sound generation channels 35 to 37 includes a waveform generation unit 35A, a volume adjustment unit 35B, and a D / A conversion unit 35C. In FIG. 2 and the following drawings, the third to fifteenth sound generation channels are not shown. The bus line 30 to which the CPU 31 and the like are connected is connected to the bus line 10 via the bus interface unit 34.

CPU31は、ROM32に格納されているプログラムに従って音源装置3の動作を制御する。また、CPU31は内部にタイマー等の計時回路を備えており、これにより楽音データの発音のオン/オフの時間の管理および制御を行っている。本実施形態では図1に示されるCPU11とは別に音源装置3用のCPU31を設けているが、1つのCPUで電子機器1および音源装置3を制御するようにしてもよい。また、CPU31としては、汎用のマイクロコントローラまたはDSP(ディジタルシグナルプロセッサ)等を使用することができる。また、説明の都合上、演奏される楽音データは、いずれかのCPU11、31によって加工され、図3に示されるフォーマットになっているものとする。また、楽音データは、一時的にRAM33に格納され、順次そこから取り出されて演奏されるものとする。   The CPU 31 controls the operation of the sound source device 3 according to a program stored in the ROM 32. Further, the CPU 31 is provided with a timer circuit such as a timer, thereby managing and controlling the on / off time of the tone data generation. In the present embodiment, the CPU 31 for the sound source device 3 is provided in addition to the CPU 11 shown in FIG. 1, but the electronic device 1 and the sound source device 3 may be controlled by one CPU. Further, as the CPU 31, a general-purpose microcontroller or DSP (digital signal processor) can be used. For convenience of explanation, it is assumed that the musical sound data to be played is processed by one of the CPUs 11 and 31 and has the format shown in FIG. The musical tone data is temporarily stored in the RAM 33, and is sequentially taken out from it and played.

図3(a)はRAM33に格納されている楽音データを示す。ここでは、ヘッダーとn個の楽音データとから構成されている。ヘッダーは、楽音データの同時発音数、楽音データの個数、楽音データの合計サイズ等のデータを含む。楽音データの同時発音数とは、楽音データ製作者の意図した楽音データが使用する発音チャンネル35〜37の個数である。ここで、例えば、ピアノの「ドミソ」の和音を発音させる場合は、発音数を3として扱う。但し、同時発音数は、各発音チャンネル35〜37で実際に同時に発音される楽音の最大個数と厳密には一致しないこともある。また、楽音データが複数であることを明示する必要がある場合には、これを楽音データセットということとする。楽音データセットは、各発音チャンネル35〜37で発音されるピアノ等の各種楽音の一連の楽音データから構成される。   FIG. 3A shows musical tone data stored in the RAM 33. Here, it consists of a header and n pieces of musical tone data. The header includes data such as the number of simultaneous sounds of the musical tone data, the number of musical tone data, and the total size of the musical tone data. The simultaneous sound number of music data is the number of sound generation channels 35 to 37 used by the sound data intended by the music data producer. Here, for example, when a chord of a piano “Domiso” is generated, the number of pronunciations is handled as three. However, the number of simultaneous sounds may not exactly match the maximum number of musical sounds that are actually sounded simultaneously in each sound generation channel 35-37. When it is necessary to clearly indicate that there are a plurality of musical sound data, this is referred to as a musical sound data set. The musical tone data set is composed of a series of musical tone data of various musical tones such as a piano sounded by the respective sound generation channels 35 to 37.

図3(b)は個々の楽音データの内容を示す。開始時刻は、各楽音データの発音が開始される時刻を示す。ここでは、曲の最初に発音される楽音データの発音時刻を0秒とする。停止時刻は、各楽音データの発音が停止される時刻を示す。楽音種別は、各楽音データの楽音の種別、例えば、ピアノ、バイオリン等を示す。CPU31は、楽音種別ごとに発音チャンネル35〜37を割り当てる。但し、例えば、ピアノの「ドミソ」の和音が発音される場合は、3つの発音チャンネル35〜37が割り当てられることになる。音程はドレミ等の音の高さを示す。音量は音の大きさを示す。   FIG. 3B shows the contents of individual musical tone data. The start time indicates the time when the sound data of each musical tone data is started. Here, it is assumed that the sound generation time of the musical sound data generated at the beginning of the song is 0 seconds. The stop time indicates the time when the sound of each musical tone data is stopped. The musical tone type indicates the type of musical tone of each musical tone data, for example, piano, violin and the like. The CPU 31 assigns sound generation channels 35 to 37 for each musical tone type. However, for example, when a chord of a piano “Domiso” is sounded, three sound generation channels 35 to 37 are assigned. The pitch indicates the pitch of Doremi and other sounds. The volume indicates the loudness.

ROM32には、ピアノ等の各楽音の基準音程(例えば、中央の「ド」)の1周期分の波形データセットが格納されている。実際の楽音の波形は、例えば、ピアノの打鍵時の波形と、その後に継続して繰り返される波形とからなるが、本発明の直接的事項ではないので、上記の1周期分の波形データセットは繰り返し波形のみであるとして以下の説明を行う。1周期分の波形データセットは、例えば、44.1kHzでサンプリングされた一連の8ビットの波形データから構成される。従って、波形データの振幅は、−127〜+127(2の補数を使用する場合は、−128〜+127)の範囲の値となる。   The ROM 32 stores a waveform data set for one cycle of a reference pitch (for example, “d” at the center) of each musical tone such as a piano. The actual musical tone waveform is composed of, for example, a piano keystroke waveform and a waveform that is continuously repeated thereafter, but is not a direct matter of the present invention. The following description will be made assuming that only a repetitive waveform is present. The waveform data set for one period is composed of a series of 8-bit waveform data sampled at 44.1 kHz, for example. Therefore, the amplitude of the waveform data has a value in the range of −127 to +127 (in the case of using 2's complement, −128 to +127).

CPU31は楽音データを順番にRAM33から取り出し、その楽音種別ごとに発音チャンネル35〜37を割り当て、その楽音種別の波形データをROM32に格納された波形データセットから順番に取り出し、発音の開始時刻から停止時刻まで波形生成部35Aに供給する。この場合、発音される音程が上記の基準音程と異なるときは、波形データセットを時間軸において伸張(基準音程よりも低音のとき)または圧縮(高音のとき)したかのようにして波形データがROM32から取り出される。この点も本発明の直接的事項ではないので、詳細な説明は省略する。このように、波形データの取出しがCPU31によって実行されるので、波形生成部35Aは、8ビット並列のラッチ回路で構成され、8ビットの波形データを保持する。尚、CPU31の負荷を減らすために、波形生成部35Aに波形データを取り出すための専用回路を設けるようにしてもよい。   The CPU 31 sequentially extracts the musical sound data from the RAM 33, assigns sound generation channels 35 to 37 for each musical sound type, sequentially extracts the waveform data of the musical sound type from the waveform data set stored in the ROM 32, and stops from the start time of the sound generation. It supplies to the waveform generation part 35A until time. In this case, if the pitch to be generated is different from the above-mentioned reference pitch, the waveform data is displayed as if the waveform data set was expanded (when the pitch is lower than the reference pitch) or compressed (when the pitch is high) on the time axis. It is taken out from the ROM 32. Since this point is not a direct matter of the present invention, a detailed description is omitted. As described above, since the waveform data is extracted by the CPU 31, the waveform generation unit 35A is configured by an 8-bit parallel latch circuit and holds 8-bit waveform data. In order to reduce the load on the CPU 31, a dedicated circuit for extracting waveform data may be provided in the waveform generation unit 35A.

波形生成部35Aの出力は乗算器からなる音量調整部35Bに送られ、ここで波形生成部35Aから出力される波形信号にCPU31から供給される楽音データの音量(図3(b)参照)が乗算される。乗算器に代えて、波形データと音量との乗算をCPU31に行わせるようにしてもよい。この場合、ROM32から読み出された波形データに楽音データの音量を乗算し、その積を波形生成部35Aのラッチ回路にセットするようにすればよいので、ハードウエア的には音量調整部35Bは不要となる。   The output of the waveform generation unit 35A is sent to a volume adjustment unit 35B composed of a multiplier, where the volume of the musical sound data supplied from the CPU 31 to the waveform signal output from the waveform generation unit 35A (see FIG. 3B). Is multiplied. Instead of the multiplier, the CPU 31 may be caused to multiply the waveform data and the volume. In this case, since the waveform data read from the ROM 32 is multiplied by the volume of the musical tone data and the product is set in the latch circuit of the waveform generation unit 35A, the volume adjustment unit 35B is hardware-wise. It becomes unnecessary.

音量調整部35Bの出力である波形信号は、D/A変換器からなるD/A変換部35Cにおいてアナログの波形信号に変換される。アナログ変換された各発音チャンネル35〜37の波形信号は、演算増幅器(オペアンプ)等で構成されたアナログ加算部38で合成(加算)され、合成波形信号となる。この合成波形信号は増幅部39において増幅される。この増幅部39は、増幅率が可変であり、例えば、演算増幅器と電子式可変抵抗器群とで構成され、CPU31から送られてくる後述の音量補償係数によって入力信号を増幅する。つまり、増幅部39の出力信号の電力は、入力信号の電力に音量補償係数を乗算した値となる。   The waveform signal that is the output of the volume adjustment unit 35B is converted into an analog waveform signal by a D / A conversion unit 35C that is a D / A converter. The analog-converted waveform signals of the sound generation channels 35 to 37 are combined (added) by an analog adder 38 configured by an operational amplifier (op amp) or the like to become a combined waveform signal. This combined waveform signal is amplified by the amplifying unit 39. The amplification unit 39 has a variable amplification factor, and is composed of, for example, an operational amplifier and an electronic variable resistor group. The amplification unit 39 amplifies an input signal by a later-described volume compensation coefficient sent from the CPU 31. That is, the power of the output signal of the amplifying unit 39 is a value obtained by multiplying the power of the input signal by the volume compensation coefficient.

次に、音量補償について説明する。16個の発音チャンネル35〜37を備える音源装置3では、楽音データが16音用(同時発音数が16音)であるときに最適な音量が音源装置3から出力されるように各楽音の波形データの大きさ(振幅)が設定されている。そこで、楽音データが3音用(同時発音数が3音)である楽音データを演奏したときの音量が16音用の楽音データを演奏したときの音量と聴覚的に等しくなるように、波形合成信号が電力レベルで16/3倍になるように増幅部39で増幅される。   Next, volume compensation will be described. In the sound source device 3 having 16 sound generation channels 35 to 37, the waveform of each musical sound is set so that an optimal volume is output from the sound source device 3 when the musical sound data is for 16 sounds (simultaneous pronunciation is 16 sounds). The data size (amplitude) is set. Therefore, the waveform synthesis is performed so that the volume when the musical sound data is played for 3 sounds (simultaneous pronunciation is 3 sounds) and the volume when the musical sound data for 16 sounds is played is acoustically equal. The signal is amplified by the amplifying unit 39 so that the signal is 16/3 times the power level.

次に、上記の増幅の動作について説明する。各発音チャンネル35〜37の波形信号の電力をP1〜P16とすると、同時発音数が3音の楽音データの波形合成信号の電力、および同時発音数が16音の楽音データの波形合成信号の電力は、それぞれ下記の式(1)、(2)で表される。
P1+P2+P3 (1)
P1+P2+P3+・・・+P16 (2)
ここで、各発音チャンネル35〜37の波形信号が無相関であるとすると、式(2)に対する式(1)の比率は3/16になる。
Next, the amplification operation will be described. Assuming that the power of the waveform signal of each of the sound generation channels 35 to 37 is P1 to P16, the power of the waveform synthesis signal of the musical tone data having 3 simultaneous sounds and the power of the waveform synthesized signal of the music data having 16 simultaneous sounds. Are represented by the following formulas (1) and (2), respectively.
P1 + P2 + P3 (1)
P1 + P2 + P3 + ... + P16 (2)
Here, if the waveform signals of the sound generation channels 35 to 37 are uncorrelated, the ratio of the expression (1) to the expression (2) is 3/16.

以上のことから、楽音データが3音である場合の波形合成信号は、電力レベルで楽音データが16音である場合の波形合成信号の3/16倍である。従って、増幅部39で波形合成信号を電力レベルで16/3倍に増幅することにより、楽音データが3音である場合であっても楽音データが16音である場合の波形合成信号と略同じ大きさの音量を得ることができる。また、上記の増幅によって発音しない発音チャンネル35〜37が存在することによって生じる波形合成信号の出力の低下が補償されることになる。以下の説明では、基準個数が発音チャンネル35〜37の個数に等しいものとし、{(発音チャンネルの個数)/(楽音データの同時発音数)}を音量補償係数と呼ぶ。   From the above, the waveform synthesis signal when the musical tone data is 3 tones is 3/16 times the waveform synthesized signal when the musical tone data is 16 tones at the power level. Therefore, the amplification unit 39 amplifies the waveform synthesis signal 16/3 times at the power level, so that even if the tone data is 3 tones, it is substantially the same as the waveform synthesis signal when the tone data is 16 tones. A loud volume can be obtained. In addition, a decrease in the output of the waveform synthesis signal caused by the presence of the sound generation channels 35 to 37 that do not generate sound due to the amplification is compensated. In the following description, it is assumed that the reference number is equal to the number of sounding channels 35 to 37, and {(number of sounding channels) / (number of simultaneous sounding of musical sound data)} is referred to as a volume compensation coefficient.

次に、本音源装置3の動作について説明する。楽音データがRAM33に格納されると、CPU31は楽音データの演奏を開始する。まず、RAM33に演奏テーブルの領域を確保し、演奏テーブルを初期化する。図4は演奏テーブルを示す図である。図4(a)に示されるように、演奏テーブルには発音チャンネル35〜37ごとにデータが格納される。ここでは、第1〜第16発音チャンネル35〜37用のデータ領域が確保されている。   Next, the operation of the sound source device 3 will be described. When the musical sound data is stored in the RAM 33, the CPU 31 starts playing the musical sound data. First, a performance table area is secured in the RAM 33, and the performance table is initialized. FIG. 4 shows a performance table. As shown in FIG. 4A, data is stored in the performance table for each of the sound generation channels 35-37. Here, data areas for the first to sixteenth sound generation channels 35 to 37 are secured.

図4(b)は各発音チャンネル35〜37用のデータの詳細を示す。「発音状態」は、発音チャンネル35〜37が発音中であるか否かを示し、初期化処理により発音中ではないことを示す「OFF」が設定される。楽音データセット(図3参照)の先頭から楽音データが順次CPU31によって読み出され、開始時刻になった楽音データが演奏テーブルにセットされる。このとき、「発音状態」には発音中を示す「ON」が設定される。「停止時刻」、「音程」および「音量」には、楽音データ(図3(b)参照)の内容が設定される。「波形データ番号」は、当該音程の波形データセットの波形データの内で、これから読み出される波形データの番号を示す。ここには初期値として0が設定され、波形データがROM32から順番に取り出されるたびに1つずつ加算される。「波形データ個数」は、当該音程の波形データセットに含まれる波形データの個数である。   FIG. 4B shows the details of the data for the sound generation channels 35-37. “Sound generation state” indicates whether or not the sound generation channels 35 to 37 are sounding, and “OFF” indicating that sound generation is not being performed is set by the initialization process. The musical sound data is sequentially read from the head of the musical sound data set (see FIG. 3) by the CPU 31, and the musical sound data at the start time is set in the performance table. At this time, “ON” indicating that sound is being generated is set in the “sound generation state”. In the “stop time”, “pitch”, and “volume”, the contents of the musical sound data (see FIG. 3B) are set. “Waveform data number” indicates the number of waveform data to be read from the waveform data of the waveform data set of the pitch. Here, 0 is set as an initial value, and the waveform data is incremented by one each time the waveform data is taken out from the ROM 32 in order. “Number of waveform data” is the number of waveform data included in the waveform data set of the pitch.

演奏が開始されると、例えば、44.1kHzの周期のタイマー割り込みが発生し、プログラムが起動される。このプログラムにより発音処理が行われる。図5は第1の実施形態の発音処理を示すフローチャートである。フローチャートを参照しつつ発音処理の動作を説明する。   When the performance is started, for example, a timer interrupt with a period of 44.1 kHz is generated and the program is started. Sound generation processing is performed by this program. FIG. 5 is a flowchart showing the sound generation process of the first embodiment. The operation of the sound generation process will be described with reference to the flowchart.

プログラムが起動されると、RAM33に現在の発音チャンネル(フローチャートでは「発音CH」で示す)の番号を示す領域を確保し、そこに1を設定する(S1)。次に、現在の発音チャンネルがON状態であるか否かが判断され(S2)、ON状態でなければ(OFF状態)、S10に進む。ON状態であれば、現在の発音チャンネルが停止時刻に到達しているか否かが判断される(S3)。停止時刻に到達している場合は、現在の発音チャンネルの「発音状態」に「OFF」を設定して(S12)、S10に進む。停止時刻に到達していない場合は、現在の発音チャンネルで指定されている「音程」に合わせて波形データセット中の「波形データ番号」で指定される波形データをROM32から読み出す(S4)。この場合、上述のように、音程が基準音程と異なるときは、波形データセットを時間軸において伸張または圧縮したかのようにして波形データがROM32から取り出される。   When the program is started, an area indicating the number of the current sound generation channel (indicated by “pronunciation CH” in the flowchart) is secured in the RAM 33, and 1 is set therein (S1). Next, it is determined whether or not the current tone generation channel is in the ON state (S2). If it is not in the ON state (OFF state), the process proceeds to S10. If it is ON, it is determined whether or not the current tone generation channel has reached the stop time (S3). If the stop time has been reached, “OFF” is set in the “sound generation state” of the current sound channel (S12), and the process proceeds to S10. If the stop time has not been reached, the waveform data designated by the “waveform data number” in the waveform data set is read from the ROM 32 in accordance with the “pitch” designated by the current tone generation channel (S4). In this case, as described above, when the pitch is different from the reference pitch, the waveform data is fetched from the ROM 32 as if the waveform data set was expanded or compressed on the time axis.

次に、読み出された波形データに現在の発音チャンネルで指定されている「音量」を乗算し(S5)、その積を現在の発音チャンネルの並列ポートにセットする(S6)。次に、「波形データ番号」が「波形データ個数」と等しいか否かが判断される(S7)。等しい場合は、1周期分の波形データの読み出しが終了したことになるので「波形データ番号」に0を設定し(S8)、S10に進む。これにより、次回は波形データセットの最初の波形データが読み出される。等しくない場合は「波形データ番号」に1を加算し(S9)、S10に進む。   Next, the read waveform data is multiplied by the “volume” designated by the current tone generation channel (S5), and the product is set in the parallel port of the current tone generation channel (S6). Next, it is determined whether the “waveform data number” is equal to the “number of waveform data” (S7). If equal, it means that the reading of the waveform data for one cycle has been completed, so 0 is set in the “waveform data number” (S8), and the process proceeds to S10. Thereby, the first waveform data of the waveform data set is read next time. If they are not equal, 1 is added to the “waveform data number” (S9), and the process proceeds to S10.

S10では、現在の発音チャンネルの番号が16(最も番号の大きい発音チャンネル37の番号)であるか否かが判断され、16である場合は、全ての発音チャンネル35〜37に対する発音処理を完了したことになるので、呼び出し元に戻る。16ではない場合は、現在の発音チャンネルに1を加算して(S11)、S2に戻り、次の番号の発音チャンネルに対する発音処理が行われる。そして、発音処理が行われている間は、ヘッダー(図3参照)に含まれる同時発音数から上述の音量補償係数がCPU31によって算出され、その値によって増幅部39で波形合成信号が増幅される。これにより、楽音データが最適な音量で演奏されることになる。   In S10, it is determined whether or not the number of the current sound channel is 16 (number of the sound channel 37 with the highest number). If it is 16, sound generation processing for all sound channels 35 to 37 is completed. Return to the caller. If it is not 16, 1 is added to the current sound channel (S11), the process returns to S2, and sound generation processing is performed for the next sound channel. While the sound generation process is being performed, the CPU 31 calculates the above-described volume compensation coefficient from the number of simultaneous sounds included in the header (see FIG. 3), and the amplification unit 39 amplifies the waveform synthesis signal based on the calculated value. . As a result, the musical sound data is played at an optimal volume.

次に、図6に示される第1の実施形態の変形例について説明する。図2では各発音チャンネル35〜37の波形信号がD/A変換された後に、アナログ的に加算されて波形合成信号が生成されていたが、本変形例では各発音チャンネル35〜37の波形データ(波形信号)がデジタル加算部40でデジタル的に加算された後にD/A変換が行われる。デジタル加算部40は、デジタル加算回路によって実現することもできるが、本変形例ではソフトウエア的にデジタル加算部40を実現する場合について説明する。この場合、発音チャンネル35〜37ごとの8ビットの並列ポートは不要となり、代わりにCPU31によって波形データが加算された結果をセットする並列ポートがデジタル加算部40に設けられる。そして、この並列ポートの出力信号がD/A変換部41に送られる。但し、16個の波形データが加算されるので、この並列ポートのビット数は12ビットとなる。   Next, a modification of the first embodiment shown in FIG. 6 will be described. In FIG. 2, after the waveform signals of the sound generation channels 35 to 37 are D / A converted, they are added in an analog manner to generate a waveform synthesis signal. However, in this modification, the waveform data of the sound generation channels 35 to 37 is generated. After the (waveform signal) is digitally added by the digital adder 40, D / A conversion is performed. The digital adder 40 can be realized by a digital adder circuit, but in this modification, a case where the digital adder 40 is realized by software will be described. In this case, an 8-bit parallel port for each of the sound generation channels 35 to 37 is not necessary, and a parallel port for setting a result obtained by adding the waveform data by the CPU 31 is provided in the digital adder 40 instead. Then, the output signal of this parallel port is sent to the D / A converter 41. However, since 16 pieces of waveform data are added, the number of bits of this parallel port is 12 bits.

図7は、図6の実施形態の発音動作を示すフローチャートである。本フローチャートと図5のフローチャートとの相違点は、S21の前にS20が追加されたこと、S6の処理が変更されてS26になっていること、および呼び出し元に戻る前にS33が実行されることである。相違点について以下に説明する。S20では、各波形データの加算結果を格納するための加算領域に0を設定する。S26では、現在の発音チャンネルの波形データに「音量」を乗算した積を加算領域に加算する。つまり、各発音チャンネル35〜37の波形データの加算が行われ、加算結果が集計される。S33では、ON状態である各発音チャンネル35〜37の波形データに「音量」を乗算した積を加算集計した結果が加算領域に格納されているので、その内容をデジタル加算部40の並列ポートにセットする。そして、本変形例でも先の実施形態と同様に、発音処理が行われている間は音量補償係数がCPU31によって算出され、その値によって増幅部39で波形合成信号が増幅される。   FIG. 7 is a flowchart showing the sound generation operation of the embodiment of FIG. The difference between this flowchart and the flowchart of FIG. 5 is that S20 is added before S21, the process of S6 is changed to S26, and S33 is executed before returning to the caller. That is. The differences will be described below. In S20, 0 is set in the addition area for storing the addition result of each waveform data. In S26, the product obtained by multiplying the waveform data of the current tone generation channel by “volume” is added to the addition region. That is, the waveform data of the sound generation channels 35 to 37 are added, and the addition results are totaled. In S33, the result obtained by adding and summing the product obtained by multiplying the waveform data of each of the sound generation channels 35 to 37 in the ON state by the “volume” is stored in the addition region, so that the contents are stored in the parallel port of the digital adder 40. set. Also in this modified example, as in the previous embodiment, the sound volume compensation coefficient is calculated by the CPU 31 while the sound generation process is being performed, and the waveform synthesis signal is amplified by the amplification unit 39 based on the calculated value.

また、上記の変形例において、増幅部39で波形合成信号を増幅することに代えて、図7のS33において波形データの加算結果に対して更に音量補償係数を乗算し、その積をデジタル加算部40の並列ポートにセットするようにしてもよい。そして、この並列ポートにセットされた値がD/A変換され、音源装置3から出力される。   Further, in the above modification, instead of amplifying the waveform synthesis signal by the amplification unit 39, the addition result of the waveform data is further multiplied by a volume compensation coefficient in S33 of FIG. You may make it set to 40 parallel ports. The value set in the parallel port is D / A converted and output from the sound source device 3.

次に、図8を参照しつつ第2の実施形態について説明する。第1の実施形態では波形合成信号が増幅されていたが、本実施形態では各発音チャンネル35〜37の波形信号が増幅される。本実施形態では、各発音チャンネル35〜37の波形信号は、増幅部35Dにおいて音量補償係数によって増幅され、その後アナログ加算部38でアナログ的に加算される。増幅部35Dとしては図2の増幅部39と同様な構成のものを使用することができる。また、発音処理の動作も第1の実施形態におけるものと同様である。   Next, a second embodiment will be described with reference to FIG. In the first embodiment, the waveform synthesis signal is amplified, but in this embodiment, the waveform signals of the sound generation channels 35 to 37 are amplified. In the present embodiment, the waveform signals of the sound generation channels 35 to 37 are amplified by the volume compensation coefficient in the amplification unit 35D, and then added in an analog manner in the analog addition unit 38. As the amplifying unit 35D, the same configuration as that of the amplifying unit 39 of FIG. 2 can be used. The sound generation process is the same as that in the first embodiment.

次に、図9を参照しつつ第2の実施形態の変形例について説明する。先の第2の実施形態では波形信号がD/A変換された後に増幅されているが、本変形例では各発音チャンネル35〜37の波形信号が増幅部35Eでデジタル的に増幅された後にD/A変換される。増幅部35Eとしてデジタル乗算器を使用し、波形信号に対して音量補償係数を乗算するようにしてもよいが、ソフトウエア的に音量補償係数を乗算することもできる。この場合、音量調整部35Bにおける乗算もソフトウエア的に行うならば、ROM32から読み出された波形データに「音量」および音量補償係数を乗算した結果を保持する並列ポートを各発音チャンネル35〜37に1つずつ設けるだけでよい。また、発音処理の動作も第1の実施形態の図5のS5を「読み出された波形データに音量を乗算して、更に音量補償係数を乗算する」に変更したものとなる。第2の実施形態および第2の実施形態の変形例に示されるように、各発音チャンネル35〜37の波形信号を音量補償係数によって増幅するようにしても、波形合成信号を音量補償係数によって増幅する第1の実施形態と同様な作用効果を奏する。     Next, a modification of the second embodiment will be described with reference to FIG. In the second embodiment, the waveform signal is amplified after being D / A converted. In this modification, the waveform signal of each of the sound generation channels 35 to 37 is digitally amplified by the amplifying unit 35E and then D is amplified. / A conversion. A digital multiplier may be used as the amplifying unit 35E, and the waveform signal may be multiplied by a volume compensation coefficient. However, the volume compensation coefficient may be multiplied by software. In this case, if the multiplication in the volume adjustment unit 35B is also performed by software, parallel ports that hold the result obtained by multiplying the waveform data read from the ROM 32 by the “volume” and the volume compensation coefficient are set to the sound generation channels 35 to 37. It is only necessary to provide one at a time. Also, the sound generation processing operation is changed from S5 in FIG. 5 of the first embodiment to “multiply the read waveform data by the volume and further multiply the volume compensation coefficient”. As shown in the second embodiment and the modification of the second embodiment, even if the waveform signals of the sound generation channels 35 to 37 are amplified by the volume compensation coefficient, the waveform synthesis signal is amplified by the volume compensation coefficient. The same effects as the first embodiment are obtained.

次に、図10を参照しつつ第3の実施形態について説明する。第1の実施形態との相違点は、図2の波形生成部35Aに代えて波形補償生成部35Fが設けられていることである。波形補償生成部35Fにおいては、ROM32から読み出された波形データに音量補償係数が乗算され、その積が波形補償生成部35Fの並列ポートにセットされる。このため、第1、第2の実施形態の増幅部39,35D,35Eは不要となる。このように、ROM32から読み出された波形データに音量補償係数を乗算するようにしても、第1、第2の実施形態と同様な作用効果を奏する。また、第1の実施形態の変形例(図6)のように、各発音チャンネル35〜37の音量調整部35Bからの波形信号をデジタル的に加算した後にD/A変換するようにしてもよい。尚、本実施形態においては、波形補償生成部35Fが本発明の増幅手段に相当する。   Next, a third embodiment will be described with reference to FIG. The difference from the first embodiment is that a waveform compensation generator 35F is provided instead of the waveform generator 35A of FIG. In the waveform compensation generation unit 35F, the waveform data read from the ROM 32 is multiplied by a volume compensation coefficient, and the product is set in the parallel port of the waveform compensation generation unit 35F. For this reason, the amplification parts 39, 35D, and 35E of the first and second embodiments are not necessary. As described above, even when the waveform data read from the ROM 32 is multiplied by the volume compensation coefficient, the same effects as those of the first and second embodiments can be obtained. Further, as in the modified example of the first embodiment (FIG. 6), D / A conversion may be performed after digitally adding the waveform signals from the sound volume adjustment units 35B of the sound generation channels 35 to 37. . In the present embodiment, the waveform compensation generator 35F corresponds to the amplification means of the present invention.

以上述べた実施形態においては、楽音データの同時発音数が音源装置3の発音チャンネル35〜37の個数よりも少ない場合に増幅部39,35D,35E(または、波形補償生成部35F)において音量調整をする場合について説明した。この場合は、前述のように基準個数が発音チャンネル35〜37の個数と同じ(すなわち、16)となっている。それに対し、例えば、発音チャンネルの個数が64の音源装置で同時発音数が32音の楽音データを演奏しても聴覚的には音量の低下が感じられない。しかし、同時発音数が、例えば、16音よりも少なくなると音量の低下が感じられる。そこで、基準個数を発音チャンネルの個数よりも少ない個数(ここでは、16)に設定し、同時発音数が基準個数以上である場合は上述の音量の補償は行わず、同時発音数が基準個数よりも少ない場合に上述の音量補償をするようにしてもよい。すなわち、基準個数は発音チャンネルの個数以下の任意の値に設定することができる。   In the embodiment described above, the volume adjustment is performed in the amplifying units 39, 35D, and 35E (or the waveform compensation generating unit 35F) when the number of simultaneous sound generations of the musical sound data is smaller than the number of sound generation channels 35 to 37 of the sound source device 3. I explained the case of doing. In this case, as described above, the reference number is the same as the number of sound generation channels 35 to 37 (ie, 16). On the other hand, for example, even if musical tone data with 32 simultaneous sounds is played by a sound source device having 64 sound generation channels, a decrease in volume is not audibly felt. However, when the number of simultaneous pronunciations is less than 16 sounds, for example, a decrease in volume is felt. Therefore, the reference number is set to a number smaller than the number of sound generation channels (16 in this case), and if the number of simultaneous sound generations is greater than or equal to the reference number, the above-mentioned volume compensation is not performed, and the number of simultaneous sound generations is less than the reference number. If the number is too small, the above-described volume compensation may be performed. That is, the reference number can be set to an arbitrary value equal to or less than the number of sound generation channels.

また、以上述べた実施形態においては、コード化された演奏データの一例として図3に示される楽音データの発音処理について説明したが、他のフォーマットの楽音データについても本発明を実施することができる。さらに、上記実施形態では、音源装置3の構成についてもデジタル回路またはアナログ回路によって実現されるもの、およびハードウエアまたはソフトウエア(プログラム)によって実現されるものをそれぞれ示したが、適宜その構成・組み合わせを変更して本発明を実施することができる。尚、上記実施形態では、波形に関する情報をハードウエア的には波形信号と記し、ソフトウエア的には波形データと記しているが、両者は実質的に同じ意味である。   In the embodiment described above, the tone data generation process shown in FIG. 3 has been described as an example of the encoded performance data. However, the present invention can be applied to tone data in other formats. . Furthermore, in the above-described embodiment, the configuration of the sound source device 3 is also shown as being realized by a digital circuit or an analog circuit, and realized by hardware or software (program). The present invention can be implemented by changing the above. In the above-described embodiment, information relating to the waveform is described as a waveform signal in terms of hardware and waveform data in terms of software, but both have substantially the same meaning.

本発明に係る音源装置を備えた電子機器のブロック図である。It is a block diagram of the electronic device provided with the sound source device according to the present invention. 本発明に係る音源装置の第1の実施形態を示す図である。It is a figure which shows 1st Embodiment of the sound source device which concerns on this invention. 楽音データを示す図である。It is a figure which shows musical tone data. 演奏テーブルを示す図である。It is a figure which shows a performance table. 第1の実施形態の発音処理を示すフローチャートである。It is a flowchart which shows the sound generation process of 1st Embodiment. 第1の実施形態の変形例を示す図である。It is a figure which shows the modification of 1st Embodiment. 第1の実施形態の変形例の発音処理を示すフローチャートである。It is a flowchart which shows the sound generation process of the modification of 1st Embodiment. 第2の実施形態を示す図である。It is a figure which shows 2nd Embodiment. 第2の実施形態の変形例を示す図である。It is a figure which shows the modification of 2nd Embodiment. 第3の実施形態を示す図である。It is a figure which shows 3rd Embodiment.

符号の説明Explanation of symbols

1 電子機器
3 音源装置
15 MIDIインタフェイス(通信手段)
16 通信部(通信手段)
18 ハードディスク(記録媒体読み取り手段)
19 ディスク駆動装置(記録媒体読み取り手段)
31 CPU(制御手段)
32 ROM
33 RAM
35 第1発音チャンネル(発音手段)
36 第2発音チャンネル(発音手段)
37 第16発音チャンネル(発音手段)
35A 波形生成部
35F 波形補償生成部(増幅手段)
38 アナログ加算部(波形合成手段)
39、35D、35E 増幅部(増幅手段)
40 デジタル加算部(波形合成手段)
1 Electronic equipment 3 Sound generator 15 MIDI interface (communication means)
16 Communication part (communication means)
18 Hard disk (recording medium reading means)
19 Disk drive (recording medium reading means)
31 CPU (control means)
32 ROM
33 RAM
35 First sound channel (pronunciation means)
36 Second sound channel (pronunciation means)
37 16th sound channel
35A waveform generator 35F waveform compensation generator (amplifying means)
38 Analog adder (waveform synthesis means)
39, 35D, 35E Amplifying section (amplifying means)
40 Digital adder (waveform synthesis means)

Claims (4)

少なくとも音程を含む楽音データを入力して所定の楽音の当該音程の波形信号を出力する複数の発音手段と、各波形信号を合成して波形合成信号を出力する波形合成手段とを備えた音源装置において、
前記波形合成信号の出力を増幅させるための増幅手段と、この増幅手段を制御する制御手段とを設け、
前記楽音データの同時発音数が前記発音手段の個数以下の個数である基準個数よりも少ない場合には、前記制御手段は、前記基準個数と前記同時発音数の差の数だけの発音しない発音手段が存在することによって生じる前記波形合成信号の出力の低下を補償するように前記増幅手段を制御することを特徴とする音源装置。
A sound source device comprising a plurality of sounding means for inputting musical tone data including at least a pitch and outputting a waveform signal of the pitch of a predetermined musical tone, and a waveform synthesizing unit for synthesizing each waveform signal and outputting a waveform synthesized signal In
An amplifying means for amplifying the output of the waveform synthesis signal and a control means for controlling the amplifying means are provided,
When the number of simultaneous sounds of the musical sound data is less than a reference number that is equal to or less than the number of sounding means, the control means does not sound as much as the difference between the reference number and the simultaneous sounding number. A sound source device characterized by controlling the amplifying means so as to compensate for a decrease in the output of the waveform synthesis signal caused by the presence of.
少なくとも音程を含む楽音データを入力して所定の楽音の当該音程の波形信号を出力する複数の発音手段と、各波形信号を合成して波形合成信号を出力する波形合成手段とを備えた音源装置において、
前記波形合成信号の出力を増幅させるための増幅手段と、この増幅手段を制御する制御手段とを設け、
前記楽音データの同時発音数が前記発音手段の個数以下の個数である基準個数よりも少ない場合には、前記制御手段は、前記波形合成信号の出力が、前記楽音データの同時発音数が前記基準個数と同じであるとしたときの前記波形合成信号の出力と等しくなるように前記増幅手段を制御することを特徴とする音源装置。
A sound source device comprising a plurality of sounding means for inputting musical tone data including at least a pitch and outputting a waveform signal of the pitch of a predetermined musical tone, and a waveform synthesizing unit for synthesizing each waveform signal and outputting a waveform synthesized signal In
An amplifying means for amplifying the output of the waveform synthesis signal and a control means for controlling the amplifying means are provided,
When the number of simultaneous sounds of the musical sound data is less than a reference number that is equal to or less than the number of the sounding means, the control means outputs the waveform synthesis signal and the number of simultaneous soundings of the musical sound data is equal to the reference number. A sound source device characterized by controlling the amplification means so as to be equal to the output of the waveform synthesis signal when the number is the same.
請求項1または請求項2に記載の音源装置において、
前記制御手段による制御が行われないときと比較して、前記波形合成信号の出力が電力レベルで{(前記発音手段の基準個数)/(前記楽音データの同時発音数)}倍になるように前記制御手段は前記増幅手段を制御することを特徴とする音源装置。
The sound source device according to claim 1 or 2,
Compared with the case where the control by the control means is not performed, the output of the waveform synthesis signal is {(reference number of the sound generation means) / (number of simultaneous sound generation of the musical sound data)} times the power level. The sound source device characterized in that the control means controls the amplification means.
請求項1ないし請求項3のいずれかに記載の音源装置と、通信手段または記録媒体読み取り手段とを備えた電子機器であって、
前記音源装置は前記通信手段または記録媒体読み取り手段から前記楽音データを受け取ることを特徴とする電子機器。
An electronic apparatus comprising the sound source device according to any one of claims 1 to 3 and a communication unit or a recording medium reading unit,
The electronic device according to claim 1, wherein the tone generator receives the musical tone data from the communication unit or the recording medium reading unit.
JP2003363306A 2003-10-23 2003-10-23 Sound source device and electronic device equipped with sound source device Expired - Fee Related JP3778361B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003363306A JP3778361B2 (en) 2003-10-23 2003-10-23 Sound source device and electronic device equipped with sound source device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003363306A JP3778361B2 (en) 2003-10-23 2003-10-23 Sound source device and electronic device equipped with sound source device

Publications (2)

Publication Number Publication Date
JP2005128223A true JP2005128223A (en) 2005-05-19
JP3778361B2 JP3778361B2 (en) 2006-05-24

Family

ID=34642673

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003363306A Expired - Fee Related JP3778361B2 (en) 2003-10-23 2003-10-23 Sound source device and electronic device equipped with sound source device

Country Status (1)

Country Link
JP (1) JP3778361B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010256661A (en) * 2009-04-27 2010-11-11 Casio Computer Co Ltd Musical sound generating device and musical sound generating program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010256661A (en) * 2009-04-27 2010-11-11 Casio Computer Co Ltd Musical sound generating device and musical sound generating program

Also Published As

Publication number Publication date
JP3778361B2 (en) 2006-05-24

Similar Documents

Publication Publication Date Title
JPH08263077A (en) Karaoke device with voice converting function
JPH0816169A (en) Sound formation, sound formation device and sound formation controller
JPH0816181A (en) Effect addition device
JP4702392B2 (en) Resonant sound generator and electronic musical instrument
US11893968B2 (en) Electronic musical instrument, electronic keyboard musical instrument, and method of generating musical sound
JP3778361B2 (en) Sound source device and electronic device equipped with sound source device
JP4218624B2 (en) Musical sound data generation method and apparatus
JP2022006247A (en) Electronic musical instrument, accompaniment sound indication method, program, and accompaniment sound automatic generation device
JP6528752B2 (en) Tone reproduction apparatus, tone reproduction method, program and electronic musical instrument
JPH0566776A (en) Automatic orchestration device
US20230215407A1 (en) Electronic musical instrument, method of generating musical sound, and computer-readable storage medium
JP2007096691A (en) Apparatus for producing musical sound
JP3493838B2 (en) Electronic musical instrument
JP4168391B2 (en) Karaoke apparatus, voice processing method and program
JPH10171475A (en) Karaoke (accompaniment to recorded music) device
JPS62992A (en) Electronic musical instrument with touch response function
JP3556997B2 (en) Electronic music generator
JP2020154217A (en) Electronic musical instrument, control method of electronic musical instrument and program
JP3549689B2 (en) Method of creating musical tone waveform and generating musical tone in electronic musical instrument, and their devices
JP2001092450A (en) Method for generating/processing audio file
JPS6175398A (en) Singing sound generator
JP2022048661A (en) Electronic musical instrument, and musical sound generation method and program
JP2000330561A (en) Electronic keyboard musical instrument
JP5035388B2 (en) Resonant sound generator and electronic musical instrument
JPH07239683A (en) Amplifier device having musical instrument built in

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051011

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051014

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060124

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060126

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060222

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060222

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090310

Year of fee payment: 3

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120310

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees