JPH06149246A - Musical sound generating device - Google Patents

Musical sound generating device

Info

Publication number
JPH06149246A
JPH06149246A JP4326234A JP32623492A JPH06149246A JP H06149246 A JPH06149246 A JP H06149246A JP 4326234 A JP4326234 A JP 4326234A JP 32623492 A JP32623492 A JP 32623492A JP H06149246 A JPH06149246 A JP H06149246A
Authority
JP
Japan
Prior art keywords
tone
data
musical
pedal
musical tone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4326234A
Other languages
Japanese (ja)
Inventor
Eiji Matsuda
英治 松田
Kazunori Matsuda
寿徳 松田
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.)
Kawai Musical Instrument Manufacturing Co Ltd
Original Assignee
Kawai Musical Instrument Manufacturing 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 Kawai Musical Instrument Manufacturing Co Ltd filed Critical Kawai Musical Instrument Manufacturing Co Ltd
Priority to JP4326234A priority Critical patent/JPH06149246A/en
Publication of JPH06149246A publication Critical patent/JPH06149246A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide the musical sound generating device which enables a musical performance with rich variation by making the timber when a damper pedal is stepped in different from the timbre when the damper pedal is not stepped in. CONSTITUTION:The musical sound generating device consists of a storage means 11 which stores plural musical sound waveform data, a 1st indicating means 17 which indicates sound generation, a 1st musical sound generating means which generates a 1st musical sound signal based on the specific musical sound waveform data in the storage means 11 according to the indication of the 1st indicating means 17, a 2nd indicating means 14 which indicates the addition of specific musical effects, a 2nd musical sound generating means which generates a 2nd musical sound signal different from the 1st musical sound signal based on the specific musical sound waveform data in the storage means or musical sound waveform data different from the specific musical sound waveform data according to the indication of the 2nd indicating means 14, and a composing means which composes a signal of the 2nd musical sound signal generated by the 2nd musical sound generating means and the 1st musical sound signal generated by the 1st musical sound generating means.

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 applied to an electronic musical instrument, and more particularly to a musical tone generator adapted to change a tone color depending on whether or not a pedal is depressed.

【0002】[0002]

【従来の技術】近年、例えばシンセサイザ、電子ピア
ノ、電子オルガン、シングルキーボード等の電子楽器が
開発され、広く普及されるに至っている。かかる電子楽
器は、例えば鍵盤や操作パネルを操作することにより生
成される楽音データを電子楽器内部に設けられた楽音発
生装置に与えることにより、楽音発生装置で楽音データ
に応じた楽音信号を発生し、これをスピーカで音響に変
換することにより楽音を発生する。
2. Description of the Related Art In recent years, electronic musical instruments such as synthesizers, electronic pianos, electronic organs, and single keyboards have been developed and have come into widespread use. Such an electronic musical instrument generates musical tone signals according to the musical tone data by the musical tone generating device by supplying musical tone data generated by operating a keyboard or an operation panel to a musical tone generating device provided inside the electronic musical instrument. , A musical sound is generated by converting this into sound by a speaker.

【0003】ところで、上記電子楽器には、所定の音楽
的な効果を発生させるために、例えばアコースティック
ピアノを模擬したペダルが設けられることが多い。かか
るペダルには、楽音が消音するまでの時間を制御するダ
ンパペダル、音量を下げて音色変化を起こさせることに
より音を柔らかくするソフトペダル、更に、押下したキ
ーに対応する楽音に対して上記ダンパペダルと同様の効
果を与えるソステヌートペダル等がある。
By the way, in order to generate a predetermined musical effect, the electronic musical instrument is often provided with a pedal simulating an acoustic piano, for example. Such pedals include a damper pedal that controls the time until the tone is muted, a soft pedal that softens the tone by lowering the volume to cause a tone change, and the damper pedal for the tone corresponding to the pressed key. There is a sostenuto pedal that gives a similar effect.

【0004】かかる各種ペダルのうち、ダンパペダルの
機能を電子楽器で実現する場合は、押下中のキーを離鍵
した際に行う離鍵処理で、波形メモリから読み出した楽
音波形に付加するエンベロープのリリース時間を長く設
定するという方法が採られている。これにより、発音さ
れている楽音が消音するまでの時間が長くなり、ダンパ
ペダル効果が得られるようになっている。
Among the various pedals, when the function of the damper pedal is realized by an electronic musical instrument, the release of the envelope to be added to the musical tone waveform read from the waveform memory is performed by the key release processing performed when the key being pressed is released. The method of setting the time longer is adopted. As a result, the time until the sounded tone is muted becomes longer, and the damper pedal effect can be obtained.

【0005】[0005]

【発明が解決しようとする課題】ところで、アコーステ
ィックピアノにおいてダンパペダルを踏んだ時は、打鍵
された音が消音するまでの時間が長くなることは勿論で
あるが、当該打鍵により発生する音がピアノ内部で反響
し、また、当該打鍵により発生する音が他の弦に影響を
与えること等により音色が微妙に変化することが知られ
ている。
By the way, when the damper pedal is depressed in an acoustic piano, it goes without saying that it takes a long time for the keystroked sound to disappear. It is known that the tone color changes subtly due to the fact that the sound produced by the keystroke affects other strings.

【0006】しかしながら、従来の電子楽器におけるダ
ンパペダル効果は、同一音色(同一の楽音波形)で単に
リリース時間を長くする処理を行って実現しているにす
ぎない。従って、電子楽器のダンパペダルを踏んでも音
色の変化に乏しく、変化に富んだ演奏をできないという
欠点があった。
However, the damper pedal effect in the conventional electronic musical instrument is realized only by the process of lengthening the release time with the same tone color (same tone waveform). Therefore, even if the damper pedal of the electronic musical instrument is depressed, the change in the tone color is scarce and there is a drawback that a variety of performances cannot be performed.

【0007】本発明は、かかる事情に鑑みてなされたも
ので、その目的は、ダンパペダルを踏んだときの音色
を、ダンパペダルを踏まないときの音色と異ならしめる
ことにより変化に富んだ演奏を可能にする楽音発生装置
を提供することにある。
The present invention has been made in view of the above circumstances, and an object thereof is to enable a variety of performances by making the tone color when the damper pedal is depressed different from the tone color when the damper pedal is not depressed. The present invention is to provide a musical tone generating device.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
に、請求項1に記載の発明の楽音発生装置は、複数の楽
音波形データを記憶する記憶手段と、発音すべきことを
指示する第1の指示手段と、該第1の指示手段の指示に
応じて前記記憶手段中の所定の楽音波形データに基づき
第1の楽音信号を生成する第1の楽音生成手段と、所定
の音楽効果を与えるべきことを指示する第2の指示手段
と、該第2の指示手段の指示に応じて前記記憶手段中の
前記所定の楽音波形データ又は前記所定の楽音波形デー
タと異なる楽音波形データに基づき前記第1の楽音信号
と異なる第2の楽音信号を生成する第2の楽音生成手段
と、該第2の楽音生成手段で生成された第2の楽音信号
と前記第1の楽音生成手段で生成された第1の楽音信号
とを合成する合成手段、とを具備したことを特徴とす
る。
In order to achieve the above object, a musical tone generating apparatus according to a first aspect of the invention has a storage means for storing a plurality of musical tone waveform data and a command for instructing what to sound. A first musical tone generating means for generating a first musical tone signal based on predetermined musical tone waveform data in the storage means in response to a command from the first instruction means; Second instruction means for instructing what should be given, and the predetermined tone waveform data in the storage means or tone waveform data different from the predetermined tone waveform data in the storage means according to the instruction of the second instruction means. Second tone generating means for generating a second tone signal different from the first tone signal, a second tone signal generated by the second tone generating means and the first tone generating means. Synthesis for synthesizing the first tone signal Stage, characterized by comprising the city.

【0009】また、同様の目的で、請求項2に記載の発
明の楽音発生装置は、複数の楽音波形データを記憶した
記憶手段と、発音すべきことを指示する第1の指示手段
と、該第1の指示手段の指示に応じて前記記憶手段中の
所定の楽音波形データに基づき第1の楽音信号を生成す
る第1の楽音生成手段と、所定の音楽効果を与えるべき
ことを指示する第2の指示手段と、該第2の指示手段の
指示に応じて前記記憶手段中の前記所定の楽音波形デー
タと異なる楽音波形データに基づき第2の楽音信号を生
成する第2の楽音生成手段と、該第2の楽音生成手段で
生成された第2の楽音信号と前記第1の楽音生成手段で
生成された第1の楽音信号とを合成する合成手段、とを
具備したことを特徴とする。
For the same purpose, the tone generating apparatus of the invention described in claim 2 has a storage means for storing a plurality of tone waveform data, a first instructing means for instructing to sound. A first tone generating means for generating a first tone signal based on predetermined tone waveform data in the storage means in response to an instruction from the first instructing means; and an instruction for giving a predetermined music effect. 2 instruction means, and 2nd tone generation means for generating a second tone signal based on tone waveform data different from the predetermined tone waveform data in the storage means in response to an instruction from the second instruction means. A synthesizing unit for synthesizing the second musical tone signal generated by the second musical tone generating unit and the first musical tone signal generated by the first musical tone generating unit. .

【0010】[0010]

【作用】請求項1に記載の発明においては、第1の指示
手段としての例えばキーボードで発音を指示すると共
に、第2の指示手段としての例えばダンパペダルにより
所定の音楽効果を与えるべき旨が指示された際に、キー
ボードの発音指示されたキーに対応する速度で上記記憶
手段から楽音波形データを読み出すことにより、当該キ
ーに対応する音高であって、リリース時間が長いエンベ
ロープが付加された第1の楽音信号を生成する。
According to the first aspect of the invention, the first instruction means, for example, the keyboard is used to instruct the sound generation, and the second instruction means, for example, the damper pedal is used to instruct that the predetermined music effect should be given. At this time, the musical tone waveform data is read from the storage means at a speed corresponding to the key instructed to sound by the keyboard, so that the envelope corresponding to the key and having a long release time is added. Generate the tone signal of.

【0011】一方、上記動作と並行して、キーボードの
発音指示されたキーに対応しない速度で、上記記憶手段
から上記と同一の楽音波形データを読み出すことによ
り、発音指示されたキーの音高とは異なる音高であっ
て、上記と同様のエンベロープが付加された第2の楽音
信号を生成する。
On the other hand, in parallel with the above operation, the same tone waveform data as the above is read out from the storage means at a speed not corresponding to the key instructed to sound on the keyboard, so that the pitch of the key instructed to sound is obtained. Generates a second tone signal having different pitches and the same envelope as above.

【0012】そして、上記第1の楽音信号と第2の楽音
信号とを例えば加算することにより合成して出力する。
この際、第2の楽音信号は、第1の楽音信号の音高に影
響を与えない程度に小さい信号とするのが好ましい。
Then, the first musical tone signal and the second musical tone signal are combined, for example, by adding and output.
At this time, it is preferable that the second musical tone signal is a signal small enough not to affect the pitch of the first musical tone signal.

【0013】これにより、第2の指示手段としての例え
ばダンパペダルを踏まないときは、第1の楽音信号に基
づいて従来と同様の楽音が発生されるが、ダンパペダル
を踏んだ時は、上記第1の楽音信号と第2の楽音信号と
が混合された楽音信号により、ダンパペダルを踏まない
時の音色とは異なった豊かな音色の楽音になるので、変
化に富んだ演奏が可能となる。
As a result, when the damper pedal as the second instructing means is not depressed, for example, the same musical tone as in the conventional case is generated based on the first musical tone signal, but when the damper pedal is depressed, the first musical tone is generated. The musical tone signal obtained by mixing the second musical tone signal and the second musical tone signal produces a rich musical tone different from the tone color when the damper pedal is not depressed, so that a variety of performances can be performed.

【0014】請求項2に記載の発明においては、第1の
楽音信号を生成する動作は上記請求項1に記載の発明と
同じであるが、第2の楽音信号を、上記第1の楽音信号
を生成するのに用いた楽音波形データと異なる音色の楽
音波形データを上記記憶手段から読み出して生成する。
In the invention described in claim 2, the operation of generating the first musical tone signal is the same as that in the invention described in claim 1, but the second musical tone signal is converted into the first musical tone signal. The tone waveform data of a tone color different from the tone waveform data used to generate the tone waveform is read from the storage means and generated.

【0015】この際、第2の楽音信号の音高は、発音指
示されたキーの音高に対応させても良いし、対応させな
くても良い。そして、上記と同様に、第2の楽音信号と
第2の楽音信号とを例えば加算することにより合成して
出力する。この場合も、第2の楽音信号は、第1の楽音
信号の音高に影響を与えない程度に小さい信号とするの
が好ましい。
At this time, the pitch of the second tone signal may or may not correspond to the pitch of the key instructed to sound. Then, similarly to the above, the second musical tone signal and the second musical tone signal are combined, for example, by adding and output. Also in this case, it is preferable that the second musical tone signal be a signal that is small enough not to affect the pitch of the first musical tone signal.

【0016】これにより、上記と同様に、例えばダンパ
ペダルを踏んだ時の音色は、ダンパペダルを踏まない時
の音色と異なった豊かな楽音となるという効果が得られ
る。
As a result, similar to the above, for example, the tone color when the damper pedal is depressed is a rich tone different from the tone color when the damper pedal is not depressed.

【0017】[0017]

【実施例】以下、本発明の楽音発生装置の実施例につき
図面を参照しながら詳細に説明する。なお、以下では、
ダンパペダルにより音色を変化させる機能に係る構成及
び動作を主体に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the musical tone generating apparatus of the present invention will be described in detail below with reference to the drawings. In the following,
The configuration and operation relating to the function of changing the timbre with the damper pedal will be mainly described.

【0018】図1は、本発明に係る楽音発生装置が適用
された電子楽器の概略構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic structure of an electronic musical instrument to which the musical sound generating apparatus according to the present invention is applied.

【0019】本電子楽器を構成する主要素である中央処
理装置(以下、「CPU」という)10、リードオンリ
メモリ(以下、「ROM」という)11、ランダムアク
セスメモリ(以下、「RAM」という)12、キースキ
ャン回路16及び音源(トーンジェネレータ)18は、
アドレスバス及びデータバスでなるシステムバス30を
介して相互に接続されている。
A central processing unit (hereinafter referred to as "CPU") 10, a read-only memory (hereinafter referred to as "ROM") 11, a random access memory (hereinafter referred to as "RAM"), which are main elements constituting the present electronic musical instrument. 12, the key scan circuit 16 and the sound source (tone generator) 18,
They are mutually connected via a system bus 30 composed of an address bus and a data bus.

【0020】CPU10は、ROM11に格納されてい
る制御プログラムに従って、当該電子楽器の全体を制御
するものである。例えば、CPU10は、キーボード1
7のキーの押下に伴って発音チャネルを割り当てるアサ
イナ処理、音源18に対するアクセス処理等を実行す
る。この発明の特徴に直接関係するダンパペダルの処理
の一部もこのCPU10により実現される。
The CPU 10 controls the entire electronic musical instrument according to a control program stored in the ROM 11. For example, the CPU 10 is the keyboard 1
When the 7 key is pressed, an assigner process for assigning a sound generation channel, an access process for the sound source 18, and the like are executed. The CPU 10 also realizes a part of the processing of the damper pedal that is directly related to the features of the present invention.

【0021】このCPU10には、更に専用線を介し
て、操作パネル13、ペダル14及びMIDIインタフ
ェース回路15が接続されている。これらの詳細につい
ては後述する。
An operation panel 13, a pedal 14 and a MIDI interface circuit 15 are further connected to the CPU 10 via a dedicated line. Details of these will be described later.

【0022】ROM11には、上述したCPU10を動
作させるための制御プログラムが記憶される他、CPU
10が各種処理に用いる種々の固定データが記憶されて
いる。また、このROM11は、各種音色に対応した楽
音波形データを記憶する記憶手段としても用いられる。
このROM11の記憶内容は、システムバス30を介し
てCPU10及び音源18によりアクセスされる。
The ROM 11 stores a control program for operating the CPU 10 described above, and also a CPU.
Various fixed data used by 10 for various processes are stored. The ROM 11 is also used as a storage means for storing musical tone waveform data corresponding to various tones.
The stored contents of the ROM 11 are accessed by the CPU 10 and the sound source 18 via the system bus 30.

【0023】即ち、CPU10は、システムバス30を
用いてROM11から制御プログラム(命令)を読み出
して解釈・実行すると共に、所定の固定データを読み出
して演算処理に使用する。また、音源18は、システム
バス30を用いてROM11から楽音波形データを読み
出し、デジタル楽音信号を生成する。
That is, the CPU 10 reads a control program (command) from the ROM 11 using the system bus 30 to interpret and execute it, and also reads predetermined fixed data to use for arithmetic processing. Further, the sound source 18 uses the system bus 30 to read musical tone waveform data from the ROM 11 and generate a digital musical tone signal.

【0024】RAM12は、制御プログラムの実行に必
要な種々のデータを一時記憶するものであり、例えばデ
ータバッファ、レジスタ、フラグ等の各領域が定義され
る。後述するキーボード17から取り込まれたキーデー
タ、ペダル14から取り込まれたペダルデータ、操作パ
ネル13から取り込まれたパネルスイッチデータ等もこ
のRAM12に一時的に記憶される。このRAM12の
記憶内容は、システムバス30を介してCPU10によ
りアクセスされる。
The RAM 12 temporarily stores various data necessary for executing the control program, and each area such as a data buffer, a register and a flag is defined. Key data fetched from the keyboard 17, which will be described later, pedal data fetched from the pedal 14, panel switch data fetched from the operation panel 13 and the like are also temporarily stored in the RAM 12. The stored contents of the RAM 12 are accessed by the CPU 10 via the system bus 30.

【0025】上記CPU10に接続される操作パネル1
3は、本電子楽器に各種動作を指示するスイッチ類、設
定すべき数値を入力する数値入力装置及び所定の情報を
表示する表示器(何れも図示しない)等から構成されて
いる。上記スイッチ類には、音色を切り換える音色切換
スイッチ、音量を変更するボリュームスイッチ、各種の
音楽効果を発揮させるための効果スイッチ等が含まれ
る。音色切換スイッチにより選択された音色は、音色番
号としてCPU10に送られる。
Operation panel 1 connected to the CPU 10
Reference numeral 3 is composed of switches for instructing the electronic musical instrument to perform various operations, a numerical input device for inputting numerical values to be set, and a display device (not shown) for displaying predetermined information. The switches include a tone color changeover switch for changing the tone color, a volume switch for changing the volume, an effect switch for producing various music effects, and the like. The timbre selected by the timbre changeover switch is sent to the CPU 10 as a timbre number.

【0026】また、数値入力装置は、電子楽器に設定す
べき各種パラメータを数値で入力するために使用される
ものであり、例えばダイヤルやテンキーで実現される。
表示器は、例えばLCDで構成されるものであり、CP
U10の制御により、各種メッセージや当該電子楽器の
状態を表示するために使用される。
The numerical value input device is used to input various parameters to be set in the electronic musical instrument by numerical values, and is realized by, for example, a dial or ten keys.
The display is composed of, for example, an LCD, and CP
It is used to display various messages and the state of the electronic musical instrument under the control of U10.

【0027】この操作パネル13は、図示しないパネル
スキャン回路を介してCPU10に接続される。パネル
スキャン回路は、上記操作パネル13の各スイッチのオ
ン/オフ状態をスキャンし、パネルスイッチデータとし
てCPU10に送出する。このパネルスイッチデータ
は、CPU10の制御の下、RAM12に記憶され、所
定のタイミングで参照されて各種処理のトリガーに使用
される。
The operation panel 13 is connected to the CPU 10 via a panel scan circuit (not shown). The panel scan circuit scans the on / off state of each switch of the operation panel 13 and sends it to the CPU 10 as panel switch data. The panel switch data is stored in the RAM 12 under the control of the CPU 10, is referred to at a predetermined timing, and is used as a trigger for various processes.

【0028】上記CPU10に接続されるペダル14
は、各種の音楽効果を発揮させるためのフットペダルで
ある。このペダル14には、本発明の特徴に直接関係す
る第2の指示手段としてのダンパペダルの他、ソフトペ
ダル、ソステヌートペダル等が含まれる。
A pedal 14 connected to the CPU 10
Is a foot pedal for producing various music effects. The pedal 14 includes a soft pedal, a sostenuto pedal, and the like, in addition to a damper pedal as a second instruction means directly related to the features of the present invention.

【0029】このペダル14は、図示しないペダルスキ
ャン回路を介してCPU10に接続される。ペダルスキ
ャン回路は、上記各ペダルのオン/オフ状態をスキャン
し、ペダルデータとしてCPU10に送出する。このペ
ダルデータは、CPU10の制御の下、RAM12に記
憶され、各ペダルに対応する音楽効果を発生させるため
に使用される。
The pedal 14 is connected to the CPU 10 via a pedal scan circuit (not shown). The pedal scan circuit scans the on / off state of each pedal and sends it to the CPU 10 as pedal data. The pedal data is stored in the RAM 12 under the control of the CPU 10 and is used to generate a music effect corresponding to each pedal.

【0030】上記CPU10に接続されるMIDIイン
タフェース15は、この電子楽器と外部装置との間のM
IDIデータの受け渡しを制御するものである。外部装
置としては、例えばMIDIデータを処理するパーソナ
ルコンピュータやシーケンサ等を挙げることができる。
The MIDI interface 15 connected to the CPU 10 is an M interface between the electronic musical instrument and an external device.
It controls the delivery of IDI data. The external device may be, for example, a personal computer or a sequencer that processes MIDI data.

【0031】キーボード17は第1の指示手段として用
いられるものであり、演奏者が楽音の音程を指示するキ
ー、及びこのキーに連動して開閉するキースイッチによ
り構成される。このキーボード17はキースキャン回路
16に接続される。
The keyboard 17 is used as the first instructing means, and is composed of a key for the player to instruct the pitch of a musical tone and a key switch that opens and closes in conjunction with this key. The keyboard 17 is connected to the key scan circuit 16.

【0032】キースキャン回路16は、キーボード17
のキースイッチの状態をスキャンし、キーのオン/オフ
状態を示すキーデータとして出力する。このキーデータ
は、システムバス30を介してCPU10に送られる。
そして、CPU10の制御の下にRAM12に記憶され
る。
The key scan circuit 16 includes a keyboard 17
The status of the key switch is scanned and output as key data indicating the on / off status of the key. This key data is sent to the CPU 10 via the system bus 30.
Then, it is stored in the RAM 12 under the control of the CPU 10.

【0033】このRAM12に記憶されたキーデータ
は、所定のタイミングでイベントのあったキーを示すキ
ーナンバ及びキーの押下の強さ(押下の速度)を示すタ
ッチデータに変換される。そして、キーナンバ及びタッ
チデータは、CPU10の制御により音源18に送ら
れ、キーオン/キーオフに伴う押鍵/離鍵処理等に用い
られる。
The key data stored in the RAM 12 is converted into a key number indicating a key having an event and touch data indicating a key pressing strength (pressing speed) at a predetermined timing. Then, the key number and the touch data are sent to the sound source 18 under the control of the CPU 10 and are used for key depression / key release processing accompanying key-on / key-off.

【0034】音源18は、楽音発生装置の主要部をなす
ものであり、例えば32個のオシレータを備えて構成さ
れる。音源18の各オシレータは、CPU10から送ら
れてきた楽音データ(音色番号に対応して作成される波
形アドレス、キーナンバに対応して作成される周波数デ
ータ、並びにタッチデータ及びペダルデータに基づいて
作成されるエンベロープデータ)に基づいて駆動され、
時分割でデジタル楽音信号を発生して外部に送出する。
この音源18の詳細については後述する。この音源18
で発生されたデジタル楽音信号は、D/A変換器19に
供給される。
The sound source 18 is a main part of the musical tone generator, and is composed of, for example, 32 oscillators. Each oscillator of the sound source 18 is created based on tone data (waveform address created corresponding to tone color number, frequency data created corresponding to key number, touch data and pedal data sent from the CPU 10. Driven based on the envelope data)
It generates a digital tone signal by time division and sends it to the outside.
Details of the sound source 18 will be described later. This sound source 18
The digital musical tone signal generated in (3) is supplied to the D / A converter 19.

【0035】D/A変換器19は、音源18から供給さ
れたデジタル楽音信号をアナログ楽音信号に変換するも
のである。このD/A変換器19が出力するアナログ楽
音信号は、増幅器20に送出される。
The D / A converter 19 converts the digital musical tone signal supplied from the sound source 18 into an analog musical tone signal. The analog tone signal output by the D / A converter 19 is sent to the amplifier 20.

【0036】増幅器20は、入力されたアナログ楽音信
号を所定の増幅率で増幅して出力する周知のものであ
る。この増幅器20で所定の増幅が行われたアナログ楽
音信号は、スピーカ21に供給される。
The amplifier 20 is a well-known amplifier which amplifies the input analog tone signal by a predetermined amplification factor and outputs it. The analog tone signal that has been amplified by the amplifier 20 is supplied to the speaker 21.

【0037】スピーカ21は、電気信号としてのアナロ
グ楽音信号を音響信号に変換する周知のものである。こ
のスピーカ21により、キーボード17のキーの押下に
対応した楽音に、ペダル14の押下に対応した音楽効果
が付加されて放音される。
The speaker 21 is a known one which converts an analog musical tone signal as an electric signal into an acoustic signal. The speaker 21 adds a musical effect corresponding to the depression of the pedal 14 to the musical tone corresponding to the depression of the key of the keyboard 17, and emits the sound.

【0038】次に、音源18の詳細につき、図2を参照
しながら説明する。音源18は、32個のオシレータで
構成されるが、図2では説明を簡単にするために第1及
び第2のオシレータのみを示している。
Next, details of the sound source 18 will be described with reference to FIG. Although the sound source 18 is composed of 32 oscillators, only the first and second oscillators are shown in FIG. 2 to simplify the description.

【0039】音源18は、記憶手段としての波形メモリ
40(ROM11の一部が充当される)、第1の楽音生
成手段としての第1のオシレータを構成する波形合成回
路41、エンベロープ発生器42及び乗算器43、第2
の楽音生成手段としての第2のオシレータを構成する波
形合成回路44、エンベロープ発生器45及び乗算器4
6、スイッチ47、並びに合成手段としての加算器48
から構成される。
The sound source 18 includes a waveform memory 40 (a part of the ROM 11 is allocated) as a storage means, a waveform synthesizing circuit 41 which constitutes a first oscillator as a first musical tone generating means, an envelope generator 42, and Multiplier 43, second
Waveform synthesizing circuit 44, envelope generator 45, and multiplier 4 which constitute the second oscillator as the musical tone generating means.
6, switch 47, and adder 48 as combining means
Composed of.

【0040】波形メモリ40は、上述したようにROM
11の一部で構成されるものであり、パルスコード変調
(PCM)された楽音波形データが記憶されている。こ
の波形メモリ40には、複数の音色を実現するべく、各
音色に対応した複数種類の楽音波形データが記憶されて
いる。
The waveform memory 40 is a ROM as described above.
11 is a part thereof, and stores tone waveform data that has been pulse code modulated (PCM). The waveform memory 40 stores a plurality of types of musical tone waveform data corresponding to each tone color in order to realize a plurality of tone colors.

【0041】第1の楽音生成手段の一部としての波形合
成回路41は、CPU10から送られてくる音色番号に
対応する波形メモリ40中の楽音波形データを選択し、
同じくCPU10から送られてくるキーナンバ(周波数
データ)に応じた速度で楽音波形データを読み出して乗
算器43の一方の入力に供給する。上記音色番号は、操
作パネル13の音色切換スイッチにより決定される。
The waveform synthesizing circuit 41 as a part of the first tone generating means selects tone waveform data in the waveform memory 40 corresponding to the tone color number sent from the CPU 10,
Similarly, the tone waveform data is read at a speed corresponding to the key number (frequency data) sent from the CPU 10 and supplied to one input of the multiplier 43. The tone color number is determined by a tone color changeover switch on the operation panel 13.

【0042】なお、上記波形メモリ40から読み出され
た楽音波形データに例えばデジタル制御フィルタ(DC
F)により所定のフィルタ処理を施して乗算器43の一
方の入力に供給するように構成しても良い。
The musical tone waveform data read from the waveform memory 40 is added to, for example, a digital control filter (DC
It may be configured such that a predetermined filtering process is performed according to F) and is supplied to one input of the multiplier 43.

【0043】エンベロープ発生器42は、CPU10か
ら送られてくるエンベロープデータに基づいてエンベロ
ープ信号を生成し、乗算器43の他方の入力に供給する
ものである。上記エンベロープデータは、周知のように
タッチデータやペダルデータに基づいて作成することが
できる。
The envelope generator 42 generates an envelope signal based on the envelope data sent from the CPU 10 and supplies it to the other input of the multiplier 43. The envelope data can be created based on touch data and pedal data as is well known.

【0044】乗算器43は、上記波形合成回路41の出
力とエンベロープ発生器42の出力とを乗算するもので
ある。これにより、エンベロープが付加されたデジタル
楽音信号が生成される。この乗算器43で生成されたデ
ジタル楽音信号は加算器48の一方の入力に供給され
る。
The multiplier 43 multiplies the output of the waveform synthesizing circuit 41 and the output of the envelope generator 42. As a result, a digital musical tone signal to which the envelope is added is generated. The digital tone signal generated by the multiplier 43 is supplied to one input of the adder 48.

【0045】第2の楽音生成手段の一部としての波形合
成回路44は、CPU10から送られてくる音色番号に
対応する波形メモリ40中の楽音波形データを選択し、
同じくCPU10から送られてくるキーナンバ(周波数
データ)に応じた速度で読み出して乗算器43の一方の
入力に供給する。
The waveform synthesizing circuit 44 as a part of the second musical tone generating means selects musical tone waveform data in the waveform memory 40 corresponding to the tone color number sent from the CPU 10,
Similarly, it is read at a speed corresponding to the key number (frequency data) sent from the CPU 10 and supplied to one input of the multiplier 43.

【0046】上記音色番号は、音色切換スイッチにより
選択されている音色とは別個の音色の楽音波形データを
指定するものであっても良い。かかる構成によれば、ダ
ンパペダルを踏んだ時に発音される音色の変化が大きく
なり、より豊かな楽音を得ることができる。
The tone color number may specify musical tone waveform data of a tone color different from the tone color selected by the tone color changeover switch. With such a configuration, the change in the tone color generated when the damper pedal is depressed becomes large, and a richer musical tone can be obtained.

【0047】なお、第1のオシレータと同様に、上記波
形メモリ40から読み出された楽音波形データに例えば
デジタル制御フィルタ(DCF)により所定のフィルタ
処理を施して乗算器43の一方の入力に供給するように
構成しても良いことは勿論である。
As in the case of the first oscillator, the tone waveform data read from the waveform memory 40 is subjected to predetermined filter processing by, for example, a digital control filter (DCF) and supplied to one input of the multiplier 43. Of course, it may be configured to do so.

【0048】エンベロープ発生器45は、CPU10か
ら送られてくるエンベロープデータに基づいてエンベロ
ープ信号を生成し、乗算器46の他方の入力に供給する
ものである。
The envelope generator 45 generates an envelope signal based on the envelope data sent from the CPU 10 and supplies it to the other input of the multiplier 46.

【0049】上記エンベロープデータとしては、上記エ
ンベロープ発生器42と同様にタッチデータやペダルデ
ータに基づいて作成したものを使用しても良いが、これ
らとは無関係な任意のデータを使用しても良い。エンベ
ロープ発生器45で生成されるエンベロープ信号のレベ
ルは、上記乗算器43が出力するデジタル楽音信号の音
高に影響を与えない程度の低レベルの信号である。
As the envelope data, data created on the basis of touch data or pedal data may be used similarly to the envelope generator 42, but any data unrelated to these may be used. . The level of the envelope signal generated by the envelope generator 45 is a low level signal that does not affect the pitch of the digital musical tone signal output from the multiplier 43.

【0050】乗算器46は、上記波形合成回路44の出
力とエンベロープ発生器45の出力とを乗算するもので
ある。これにより、エンベロープが付加されたデジタル
楽音信号が生成される。この乗算器46で生成されたデ
ジタル楽音信号はスイッチ47を介して加算器48の他
方の入力に供給される。
The multiplier 46 multiplies the output of the waveform synthesis circuit 44 and the output of the envelope generator 45. As a result, a digital musical tone signal to which the envelope is added is generated. The digital tone signal generated by the multiplier 46 is supplied to the other input of the adder 48 via the switch 47.

【0051】スイッチ47は、CPU10から供給され
るペダルオン/オフ情報に応じて開閉するスイッチであ
る。即ち、ダンパペダルが踏まれた時はオンに、ダンパ
ペダルが離されたときはオフになるように制御される。
このスイッチ47の出力は加算器48の他方の入力に供
給される。なお、このスイッチ47がオフにされた時
は、無意味な信号(加算器48にとってゼロ入力となる
信号)が出力される。
The switch 47 is a switch that opens and closes in accordance with pedal on / off information supplied from the CPU 10. That is, it is controlled so that it is turned on when the damper pedal is depressed and turned off when the damper pedal is released.
The output of the switch 47 is supplied to the other input of the adder 48. When the switch 47 is turned off, a meaningless signal (a signal that is a zero input to the adder 48) is output.

【0052】加算器48は、上記乗算器43から供給さ
れるデジタル楽音信号と乗算器46からスイッチ47を
介して供給されるデジタル楽音信号とを加算して出力す
るものである。この加算器48の出力が、音源18が出
力するデジタル楽音信号としてD/A変換器19に供給
される。
The adder 48 adds the digital musical tone signal supplied from the multiplier 43 and the digital musical tone signal supplied from the multiplier 46 through the switch 47, and outputs it. The output of the adder 48 is supplied to the D / A converter 19 as a digital musical tone signal output from the sound source 18.

【0053】次に、上記の構成において本実施例の動作
につき図3乃至図6に示したフローチャートを参照しな
がら詳細に説明する。なお、以下では、本発明に関係す
る部分のみを図面に示し、説明を加える。
Next, the operation of this embodiment having the above-mentioned structure will be described in detail with reference to the flow charts shown in FIGS. In the following, only the portions related to the present invention are shown in the drawings and will be described.

【0054】図3は、本発明に係る楽音発生装置の処理
を示すメインフローチャートであり、電源投入により起
動される。即ち、電源が投入されると、先ず、CPU1
0、RAM12、音源18等の初期化処理が行われる
(ステップS10)。この初期化処理では、CPU10
内部のレジスタやフラグのクリア処理、RAM12内に
定義された各種バッファ、レジスタ及びフラグ等に対す
る初期値設定処理、音源18に初期値を設定して不要な
音が発音されるのを防止する処理等が行われる。
FIG. 3 is a main flowchart showing the processing of the musical sound generating apparatus according to the present invention, which is started by turning on the power. That is, when the power is turned on, first, the CPU 1
0, the RAM 12, the sound source 18, etc. are initialized (step S10). In this initialization processing, the CPU 10
Clear processing of internal registers and flags, initial value setting processing for various buffers, registers and flags defined in the RAM 12, processing for setting initial values in the sound source 18 and preventing unnecessary sounds from being generated, etc. Is done.

【0055】次いで、パネルイベント処理が行われる
(ステップS11)。このパネルイベント処理では、先
ず、操作パネル13をスキャンすることにより、各スイ
ッチの設定状態を示すパネルスイッチデータを各スイッ
チに対応したビット列として取り込む。次いで、前回読
み込んだパネルスイッチデータと、今回読み込んだパネ
ルスイッチデータとを比較し、相違するビットが存在す
るか否かを調べる。
Next, panel event processing is performed (step S11). In this panel event process, first, the operation panel 13 is scanned to capture the panel switch data indicating the setting state of each switch as a bit string corresponding to each switch. Next, the panel switch data read last time and the panel switch data read this time are compared to check whether or not there is a different bit.

【0056】そして、相違するビットが存在する場合
に、スイッチイベントがあった旨を認識し、変化のあっ
たスイッチに対応するビットをオンにセットしたイベン
トマップを作成する。
Then, when there is a different bit, it is recognized that a switch event has occurred, and an event map in which the bit corresponding to the changed switch is set to ON is created.

【0057】操作パネル13のスイッチ操作に対応する
各種処理、例えば音色切換スイッチに対応する音色変更
処理や効果スイッチに対応する所定の音楽効果を付与す
る処理等は、このイベントマップを参照することにより
行われる。なお、各スイッチに対応する処理は、本発明
とは直接関係しないので説明は省略する。
By referring to this event map, various processes corresponding to the switch operation of the operation panel 13, for example, tone color changing process corresponding to the tone color changing switch, and a process of giving a predetermined music effect corresponding to the effect switch, etc. Done. Note that the processing corresponding to each switch is not directly related to the present invention, so description thereof will be omitted.

【0058】次いで、ペダルイベント処理が行われる
(ステップS12)。このペダルイベント処理では、先
ず、ペダル14をスキャンすることにより、各ペダル
(ダンパペダル、ソフトペダル、ソステヌートペダル)
の押下状態を示すペダルデータを各ペダルに対応したビ
ット列として取り込む。
Next, pedal event processing is performed (step S12). In this pedal event processing, first, by scanning the pedal 14, each pedal (damper pedal, soft pedal, sostenuto pedal) is scanned.
The pedal data indicating the pressed state of is acquired as a bit string corresponding to each pedal.

【0059】次いで、前回読み込んだペダルデータと、
今回読み込んだペダルデータとを比較し、相違するビッ
トが存在するか否かを調べる。そして、相違するビット
が存在する場合に、ペダルイベントがあった旨を認識
し、変化のあったペダルに対応するビットをオンにセッ
トしたイベントマップを作成する。
Next, the previously read pedal data,
The pedal data read this time is compared to check whether or not there is a different bit. Then, when there is a different bit, it is recognized that there is a pedal event, and an event map in which the bit corresponding to the changed pedal is set to ON is created.

【0060】そして、このイベントマップを参照するこ
とにより、図4及び図5に示すように、イベントのあっ
たペダルに対する処理が行われる。このペダルイベント
処理の詳細については後述する。
Then, by referring to this event map, as shown in FIGS. 4 and 5, the processing for the pedal having the event is performed. Details of this pedal event processing will be described later.

【0061】次いで、鍵盤イベント処理が行われる(ス
テップS13)。この鍵盤イベント処理では、先ず、キ
ースキャン回路16を介してキーボード17をスキャン
することにより、各キーの押下状態を示すキーデータを
各キーに対応したビット列として取り込む。
Next, keyboard event processing is performed (step S13). In this keyboard event process, first, the keyboard 17 is scanned through the key scan circuit 16 to capture key data indicating the pressed state of each key as a bit string corresponding to each key.

【0062】次いで、前回読み込んだキーデータと、今
回読み込んだキーデータとを比較し、相違するビットが
存在するか否かを調べる。そして、相違するビットが存
在する場合に、キーイベントがあった旨を認識し、変化
のあったキーに対応するビットをオンにセットしたイベ
ントマップを作成する。
Next, the key data read last time and the key data read this time are compared, and it is checked whether or not there is a different bit. Then, when there is a different bit, it is recognized that there is a key event, and an event map in which the bit corresponding to the changed key is set to ON is created.

【0063】そして、このイベントマップを参照するこ
とにより、図6に示すように、イベントのあったキーに
対する押鍵処理、離鍵処理が行われる。この鍵盤イベン
ト処理の詳細については後述する。
Then, by referring to this event map, as shown in FIG. 6, the key depression process and the key release process for the key having the event are performed. Details of this keyboard event processing will be described later.

【0064】この鍵盤イベント処理が終了するとステッ
プS11に戻り、再度同様の処理を繰り返す。上記ステ
ップS11〜S13の繰り返し実行の過程で、パネル操
作、キーボード操作或いはペダル操作に応じたイベント
が発生すると、そのイベントに対応する処理を行うこと
により電子楽器の各種機能が発揮される。
When this keyboard event process is completed, the process returns to step S11 and the same process is repeated. When an event corresponding to a panel operation, a keyboard operation, or a pedal operation occurs in the process of repeatedly executing steps S11 to S13, various functions of the electronic musical instrument are exhibited by performing a process corresponding to the event.

【0065】次に、ペダルイベント処理の詳細につき、
図4及び図5に示したフローチャートを参照しながら説
明する。
Next, regarding the details of the pedal event processing,
This will be described with reference to the flowcharts shown in FIGS. 4 and 5.

【0066】ペダルイベント処理では、上述したよう
に、先ずイベントマップが作成され、このイベントマッ
プを参照して各ペダルに対する処理を行うか否かが判断
される。
In the pedal event processing, as described above, an event map is first created, and it is determined by referring to this event map whether or not processing for each pedal is to be performed.

【0067】即ち、ペダルのイベントマップが作成され
たら、先ず、ダンパペダル処理が行われる(ステップS
20)。ダンパペダル処理では、図5のフローチャート
に示すように、先ずダンパペダルのオンイベントがあっ
たか否か、つまりダンパペダルが踏まれたか否かが調べ
られる(ステップS30)。これは、上述したペダルの
イベントマップを調べることにより行われる。
That is, when the pedal event map is created, first, damper pedal processing is performed (step S).
20). In the damper pedal process, as shown in the flowchart of FIG. 5, it is first checked whether or not there is an on event of the damper pedal, that is, whether or not the damper pedal is depressed (step S30). This is done by examining the pedal event map described above.

【0068】ここで、オンイベントがあったことが判断
されると、ダンパペダルフラグをセットし(ステップS
31)、その後、このダンパペダル処理ルーチンからリ
ターンする。ここで、ダンパペダルフラグとは、RAM
12に定義されるフラグであり、当該電子楽器のダンパ
ペダルが踏まれた状態にあるか否かを記憶するものであ
る。
When it is determined that there is an on event, the damper pedal flag is set (step S
31) and thereafter, the routine returns from this damper pedal processing routine. Here, the damper pedal flag is RAM
The flag is defined by 12 and stores whether or not the damper pedal of the electronic musical instrument is depressed.

【0069】上記ステップS30で、ダンパペダルのオ
ンイベントがなかったことが判断されると、ダンパペダ
ルのオフイベントがあったか否かが調べられる(ステッ
プS32)。これも上述したペダルのイベントマップを
調べることにより行われる。そして、ダンパペダルのオ
フイベントがなかったことが判断されると、何等の処理
をも行うことなく、このダンパペダル処理ルーチンから
リターンする。
When it is determined in step S30 that there is no damper pedal on-event, it is checked whether or not there is a damper pedal off-event (step S32). This is also done by examining the pedal event map described above. When it is determined that the damper pedal OFF event has not occurred, the routine returns from this damper pedal processing routine without performing any processing.

【0070】一方、ダンパペダルのオフイベントがあっ
たことが判断されると、ダンパペダルフラグをクリアす
る(ステップS33)。次いで、ダンパオフ処理が行わ
れ(ステップS34)、その後、このダンパペダル処理
ルーチンからリターンする。
On the other hand, when it is determined that the damper pedal off event has occurred, the damper pedal flag is cleared (step S33). Next, a damper off process is performed (step S34), and thereafter, the process returns from this damper pedal process routine.

【0071】上記ステップS34で行われるダンパオフ
処理は、ダンパペダルが踏まれることによって離鍵され
ても発音を継続している音を、ダンパペダルのオフに同
期して消音させる処理である。具体的には、CPU10
が音源18に所定のエンベロープデータを送ることによ
り、発音状態にある全ての音に対し、リリース時間を短
くしたエンベロープを付加して短時間で消音させる処理
である。
The damper-off process performed in step S34 is a process for muting a sound that continues to be sounded even when the damper pedal is depressed to release the key, in synchronization with the damper pedal being turned off. Specifically, the CPU 10
Is a process of sending predetermined envelope data to the sound source 18 to add an envelope with a short release time to all sounds in a sounding state to mute the sound in a short time.

【0072】上記のダンパペダル処理が終了すると、図
4のペダルイベント処理ルーチンに戻り、ソフトペダル
処理が行われる(ステップS21)。このソフトペダル
処理は、ペダル14中のソフトペダルが踏まれた際に、
例えばエンベロープを制御して音を小さくすると共に、
音色を変化させることにより音を柔らかくする処理であ
るが、本発明とは直接関係しないので詳細な説明は省略
する。
When the damper pedal process is completed, the process returns to the pedal event process routine of FIG. 4 and the soft pedal process is performed (step S21). This soft pedal processing is performed when the soft pedal in the pedal 14 is depressed.
For example, controlling the envelope to reduce the sound,
The processing is to soften the sound by changing the timbre, but since it is not directly related to the present invention, detailed description thereof will be omitted.

【0073】次いで、ソステヌートペダル処理が行われ
る(ステップS22)。このソステヌートペダル処理
は、ペダル14中のソステヌートペダルが踏まれた際
に、押下したキーに対応する楽音に対して上述したダン
パペダル処理と同様の処理を行うものであるが、これも
本発明とは直接関係しないので詳細な説明は省略する。
Next, sostenuto pedal processing is performed (step S22). This sostenuto pedal processing is, when the sostenuto pedal in the pedal 14 is stepped on, the same processing as the damper pedal processing described above for the musical sound corresponding to the pressed key, but this is also the present invention. Since it is not directly related, detailed description is omitted.

【0074】以上のペダルイベント処理が終了すると、
このペダルイベント処理ルーチンからリターンし、メイ
ンルーチンに戻る。
When the above pedal event processing is completed,
The process returns from this pedal event processing routine and returns to the main routine.

【0075】次に、鍵盤イベント処理の詳細につき、図
6に示したフローチャートを参照しながら説明する。
Next, the details of the keyboard event process will be described with reference to the flowchart shown in FIG.

【0076】鍵盤イベント処理では、上述したように、
先ずキーボードのイベントマップが作成され、このイベ
ントマップを参照して各キーに対する処理を行うか否か
が判断されることになる。
In the keyboard event processing, as described above,
First, an event map of the keyboard is created, and it is determined with reference to this event map whether or not to process each key.

【0077】鍵盤イベント処理では、先ず、キーのオン
イベントがあるか否かが調べられる(ステップS4
0)。このキーのオンイベントの有無は、上記イベント
マップを調べることにより行われる。そして、オンイベ
ントがあることが判断されると、楽音データが音源18
にセットされる(ステップS41)。
In the keyboard event processing, it is first checked whether or not there is a key on event (step S4).
0). Whether or not there is an on event for this key is determined by checking the above event map. When it is determined that there is an on-event, the musical sound data is generated by the sound source 18.
Is set (step S41).

【0078】具体的には、音源18中の1つのオシレー
タが所定のアルゴリズムにより選択され(以下、ここで
選択されたオシレータを「第1のオシレータ」とす
る)、この選択された第1のオシレータにCPU10か
ら楽音データが送られることになる。なお、オシレータ
の選択、即ち発音チャネルのアサイン処理は周知の技術
であるので説明は省略する。
Specifically, one oscillator in the sound source 18 is selected by a predetermined algorithm (hereinafter, the oscillator selected here is referred to as "first oscillator"), and the selected first oscillator is selected. The tone data is sent from the CPU 10. It should be noted that the selection of the oscillator, that is, the assigning process of the tone generation channel is a well-known technique, and therefore its explanation is omitted.

【0079】ここで、第1のオシレータにセットされる
楽音データは、上述したように、音色番号に対応して作
成される波形アドレス、キーナンバに対応して作成され
る周波数データ、及びタッチデータ及びペダルデータに
基づいて作成されるエンベロープデータ等である。な
お、スイッチ47を駆動するためのペダルオン/オフ情
報も同時に音源18に出力される。
Here, the tone data set in the first oscillator is, as described above, the waveform address created corresponding to the tone color number, the frequency data created corresponding to the key number, and the touch data. The envelope data is created based on the pedal data. The pedal on / off information for driving the switch 47 is also output to the sound source 18 at the same time.

【0080】波形アドレスは、操作パネル13の音色切
換スイッチ(図示しない)で指示された音色に対応する
楽音波形データが記憶されている波形メモリ40上のア
ドレスである。
The waveform address is an address on the waveform memory 40 in which musical tone waveform data corresponding to the tone color designated by the tone color changeover switch (not shown) of the operation panel 13 is stored.

【0081】周波数データは、キーボード17で指示さ
れたキーの音高に対応したデータであり、波形メモリ4
0から楽音波形データを読み出す速度を規定するもので
ある。即ち、発音する楽音の音高は、楽音波形データの
読み出し速度(周波数)により決定される。
The frequency data is data corresponding to the pitch of the key designated by the keyboard 17, and the waveform memory 4
It defines the speed of reading the tone waveform data from 0. That is, the pitch of the musical tone to be generated is determined by the reading speed (frequency) of the musical tone waveform data.

【0082】エンベロープデータは、タッチデータやダ
ンパペダルの状態に基づいて楽音波形に付加すべきエン
ベロープの形状を指定するものである。このエンベロー
プデータには、アタック、ディケイ等のデータが含ま
れ、それぞれ目標値データ及び速度データで構成され
る。
The envelope data specifies the shape of the envelope to be added to the tone waveform based on the touch data and the state of the damper pedal. This envelope data includes data such as attack and decay, and is composed of target value data and speed data, respectively.

【0083】上記波形アドレス及び周波数データは波形
合成回路41にセットされ、波形アドレスにより特定さ
れる波形メモリ40中の楽音波形データを、周波数デー
タに応じた速度で読み出すために使用される。
The waveform address and the frequency data are set in the waveform synthesizing circuit 41 and used to read the musical tone waveform data in the waveform memory 40 specified by the waveform address at a speed corresponding to the frequency data.

【0084】一方、エンベロープデータは、エンベロー
プ発生器42にセットされ、波形合成回路41で合成さ
れた楽音波形に付加するエンベロープを生成するために
使用される。
On the other hand, the envelope data is set in the envelope generator 42 and used to generate an envelope to be added to the tone waveform synthesized by the waveform synthesizer 41.

【0085】上記音源18への楽音データのセットが完
了すると、次に、ダンパペダルフラグがオンであるか否
かが調べられる(ステップS42)。そして、ダンパペ
ダルフラグがオン、つまりダンパペダルが踏まれた状態
にあることが判断されると、付加楽音データが音源18
にセットされる(ステップS43)。
When the setting of the musical sound data to the sound source 18 is completed, it is next checked whether or not the damper pedal flag is on (step S42). When the damper pedal flag is turned on, that is, when it is determined that the damper pedal is stepped on, the additional musical sound data is generated as the sound source 18
Is set to (step S43).

【0086】ここで使用されるオシレータは、上記ステ
ップS41で使用した第1のオシレータとは別個のオシ
レータ(以下、これを「第2のオシレータ」とする)で
ある。
The oscillator used here is an oscillator different from the first oscillator used in step S41 (hereinafter, referred to as "second oscillator").

【0087】第2のオシレータにセットされる付加楽音
データは、上記と同様に、波形アドレス、周波数デー
タ、エンベロープデータであるが、各データの値が異な
る。データの値に応じて種々の楽音効果が得られるが、
以下に2つの例を示す。
The additional tone data set in the second oscillator is the waveform address, the frequency data, and the envelope data as described above, but the values of the respective data are different. Various musical tone effects can be obtained according to the value of the data,
Two examples are given below.

【0088】第1のデータの例は、波形アドレスとして
は、上記ステップS41で波形合成回路41にセットし
たものと同じものを用いる。周波数データとしては、例
えば上記ステップS41で波形合成回路41にセットし
た周波数より小さい周波数値を有するデータを用いる。
In the example of the first data, the same waveform address as that set in the waveform synthesizing circuit 41 in step S41 is used. As the frequency data, for example, data having a frequency value smaller than the frequency set in the waveform synthesizing circuit 41 in step S41 is used.

【0089】これにより、この第2のオシレータでは、
キーボード17で指示されたキーの音高より低い音高の
楽音が、上記第1のオシレータの音色と同じ音色で発音
されることになる。例えば、ピアノの音色で演奏する場
合は、押下されたキーに対応する本来の音高の楽音に、
低音域の楽音が混じった楽音が発音されることになる。
Thus, in this second oscillator,
A musical tone with a pitch lower than the pitch of the key designated by the keyboard 17 is produced with the same tone color as that of the first oscillator. For example, when playing with a piano tone, the original pitch tone corresponding to the pressed key,
A musical sound in which low-pitched musical sounds are mixed is generated.

【0090】エンベロープデータとしては、タッチデー
タやダンパペダルの状態に基づいて決定される形状のデ
ータを用いることができる。但し、このエンベロープデ
ータは、上記第1のオシレータで生成されるエンベロー
プより十分低いレベルのエンベロープを生成するための
データである。第1のオシレータで生成される楽音の音
程に影響を与えない程度の楽音を混入させるためであ
る。
As the envelope data, touch data or data of a shape determined based on the state of the damper pedal can be used. However, this envelope data is data for generating an envelope of a level sufficiently lower than the envelope generated by the first oscillator. This is for mixing in a musical tone that does not affect the pitch of the musical tone generated by the first oscillator.

【0091】上記エンベロープデータのレベルの調整
は、エンベロープデータ中のアタック、ディケイ等の目
標値データを小さくすることにより実現される。
The adjustment of the envelope data level is realized by reducing the target value data such as attack and decay in the envelope data.

【0092】また、エンベロープデータとしては、タッ
チデータやダンパペダルの状態とは無関係に作成された
任意のデータを用いることもできる。このエンベロープ
データの値によって、種々の音楽効果を発生させること
ができる。
Further, as the envelope data, it is possible to use touch data or any data created regardless of the state of the damper pedal. Various music effects can be generated depending on the value of the envelope data.

【0093】第2のデータの例は、波形アドレスとし
て、上記ステップS41で波形合成回路41にセットし
たものと異なり、他の音色の楽音波形データを指定する
ものを用いる。周波数データとしては、任意の周波数値
を有するデータを用いる。
In the example of the second data, as the waveform address, different from the one set in the waveform synthesizing circuit 41 in the above step S41, the musical tone waveform data of another tone color is designated. Data having an arbitrary frequency value is used as the frequency data.

【0094】これにより、この第2のオシレータでは、
キーボード17で指示されたキーの音高や音色とは異な
る音高や音色の楽音が発音されることになる。例えば、
ピアノの音色で演奏する場合は、押下されたキーに対応
する本来の音高・音色の楽音に、他の音色が混じった楽
音が発音されることになる。
Thus, in this second oscillator,
A tone having a tone pitch and tone color different from the tone pitch and tone color of the key designated by the keyboard 17 is produced. For example,
When playing with a piano tone color, a tone tone in which other tone colors are mixed with the tone tone of the original pitch / tone color corresponding to the pressed key is generated.

【0095】エンベロープデータとしては、上記第1の
例と同様に、タッチデータやダンパペダルの状態に基づ
いて決定される形状のデータを用いる。この場合も、第
1のオシレータで生成されるエンベロープより十分低い
レベルのエンベロープを生成するようなデータが用いら
れる。
As the envelope data, similar to the first example, data of a shape determined based on the touch data or the state of the damper pedal is used. In this case as well, data is used that produces an envelope of a level sufficiently lower than the envelope produced by the first oscillator.

【0096】このようにして作成された楽音データのう
ち、上記波形アドレス及び周波数データは、波形合成回
路44にセットされ、波形アドレスにより特定される波
形メモリ40中の楽音波形データを、周波数データに応
じた速度で読み出すために使用される。
Of the tone data thus created, the waveform address and frequency data are set in the waveform synthesizing circuit 44, and the tone waveform data in the waveform memory 40 specified by the waveform address are converted into frequency data. It is used to read at a speed according to the speed.

【0097】一方、エンベロープデータは、エンベロー
プ発生器45にセットされ、波形合成回路44で合成さ
れた楽音波形に付加するエンベロープを生成するために
使用される。
On the other hand, the envelope data is set in the envelope generator 45 and used to generate an envelope to be added to the musical tone waveform synthesized by the waveform synthesis circuit 44.

【0098】上記ステップS42でダンパペダルフラグ
がオンでないことが判断された場合は、ステップS43
はスキップされる。
If it is determined in step S42 that the damper pedal flag is not on, step S43
Is skipped.

【0099】次いで、押鍵処理が行われる(ステップS
44)。押鍵処理は、上記ステップS41、S43で音
源18にセットされた楽音データに基づき第1、第2の
オシレータを動作させて楽音信号を生成する処理であ
る。
Next, a key depression process is performed (step S
44). The key depression process is a process of operating the first and second oscillators based on the musical tone data set in the sound source 18 in steps S41 and S43 to generate a musical tone signal.

【0100】即ち、第1のオシレータでは、波形合成回
路41で生成された楽音波形とエンベロープ発生器42
で生成されたエンベロープ信号とを乗算器43に与えて
乗算を行わせることによりエンベロープが付加された第
1の楽音信号を生成する。同時に、第2のオシレータで
は、波形合成回路44で生成された楽音波形とエンベロ
ープ発生器45で生成されたエンベロープ信号とを乗算
器46に与えて乗算を行わせることによりエンベロープ
が付加された第2の楽音信号を生成する。
That is, in the first oscillator, the musical tone waveform generated by the waveform synthesizing circuit 41 and the envelope generator 42 are
The envelope signal generated in step 1 is supplied to the multiplier 43 to perform multiplication, thereby generating the first tone signal to which the envelope is added. At the same time, in the second oscillator, the musical tone waveform generated by the waveform synthesizing circuit 44 and the envelope signal generated by the envelope generator 45 are applied to the multiplier 46 to perform multiplication, thereby adding the second envelope to which the envelope is added. Generate the tone signal of.

【0101】この際、ダンパペダルが踏まれていればス
イッチ47はオンとなるので、乗算器43の出力信号と
乗算器46の出力信号とは加算器48で加算され、ダン
パペダル効果を有するデジタル楽音信号が生成される。
このデジタル楽音信号がD/A変換器19に供給され、
発音に供されることになる。
At this time, since the switch 47 is turned on when the damper pedal is depressed, the output signal of the multiplier 43 and the output signal of the multiplier 46 are added by the adder 48, and the digital musical tone signal having the damper pedal effect is added. Is generated.
This digital tone signal is supplied to the D / A converter 19,
It will be used for pronunciation.

【0102】一方、ダンパペダルが踏まれていなけれ
ば、スイッチ47はオフになるので、第1のオシレータ
の乗算器43の出力のみが発音に供されることになり、
ダンパペダル効果を有しない通常の楽音が発音される。
On the other hand, if the damper pedal is not depressed, the switch 47 is turned off, so that only the output of the multiplier 43 of the first oscillator is used for sound generation.
A normal musical tone having no damper pedal effect is produced.

【0103】上記ステップS40でキーオンイベントが
ないことが判断されると、キーオフイベントがあるか否
かが調べられる(ステップS45)。ここで、キーオフ
イベントがないことが判断されると、何等の処理をも行
うことなく、この鍵盤イベント処理ルーチンからリター
ンする。
If it is determined in step S40 that there is no key-on event, it is checked whether or not there is a key-off event (step S45). If it is determined that there is no key-off event, the process returns from this keyboard event processing routine without performing any processing.

【0104】一方、キーオフイベントが有ることが判断
されると離鍵処理が行われる(ステップS46)。この
離鍵処理は、ダンパペダルが踏まれていない状態では、
キーボード17の離鍵されたキーに対応する発音を中止
する処理である。これは、発音中の楽音のエンベロープ
(リリース)の速度データを大きくすることにより実現
される。
On the other hand, if it is determined that there is a key-off event, key release processing is performed (step S46). This key release process is performed when the damper pedal is not depressed.
This is a process of canceling the pronunciation corresponding to the released key of the keyboard 17. This is realized by increasing the velocity data of the envelope (release) of the musical tone being sounded.

【0105】一方、ダンパペダルが踏まれている状態で
は、直ちに発音を中止する処理は行われない。従って、
ダンパペダルが踏まれた状態でキーが離されても、上述
した音色変更が加えられた楽音が発音され続け、本来の
ダンパペダルの機能が実現される。
On the other hand, when the damper pedal is depressed, the process of immediately stopping the sound generation is not performed. Therefore,
Even if the key is released while the damper pedal is stepped on, the above-described tone-changed musical tone continues to be produced, and the original function of the damper pedal is realized.

【0106】[0106]

【発明の効果】以上詳述したように、この発明によれ
ば、ダンパペダルを踏んだときの音色を、ダンパペダル
を踏まないときの音色と異ならしめることにより変化に
富んだ演奏を可能にする楽音発生装置を提供できる。
As described above in detail, according to the present invention, the tone generation when the damper pedal is stepped on is made different from the tone color when the damper pedal is not stepped to generate a musical tone that enables a variety of performances. A device can be provided.

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

【図1】本発明に係る楽音発生装置が適用された電子楽
器の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an electronic musical instrument to which a musical tone generating device according to the present invention is applied.

【図2】本発明に係る楽音発生装置の音源の実施例の構
成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of an embodiment of a sound source of a musical sound generating device according to the present invention.

【図3】本発明の動作を示すフローチャート(メインル
ーチン)である。
FIG. 3 is a flowchart (main routine) showing the operation of the present invention.

【図4】本発明の動作を示すフローチャート(ペダルイ
ベント処理ルーチン)である。
FIG. 4 is a flow chart (pedal event processing routine) showing the operation of the present invention.

【図5】本発明の動作を示すフローチャート(ダンパペ
ダル処理ルーチン)である。
FIG. 5 is a flowchart (damper pedal processing routine) showing the operation of the present invention.

【図6】本発明の動作を示すフローチャート(鍵盤イベ
ント処理ルーチン)である。
FIG. 6 is a flowchart (keyboard event processing routine) showing the operation of the present invention.

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

10 CPU 11 ROM 12 RAM 13 操作パネル 14 ペダル 15 MIDIインタフェース回路 16 キースキャン回路 17 キーボード 18 音源 19 D/A変換器 20 増幅器 21 スピーカ 40 波形メモリ 41、44 波形合成回路 42、45 エンベロープ発生器 43、46 乗算器 47 スイッチ 48 加算器 10 CPU 11 ROM 12 RAM 13 Operation Panel 14 Pedal 15 MIDI Interface Circuit 16 Key Scan Circuit 17 Keyboard 18 Sound Source 19 D / A Converter 20 Amplifier 21 Speaker 40 Waveform Memory 41, 44 Waveform Synthesis Circuit 42, 45 Envelope Generator 43, 46 Multiplier 47 Switch 48 Adder

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 楽音波形データを記憶した記憶手段と、 発音すべきことを指示する第1の指示手段と、 該第1の指示手段の指示に応じて前記記憶手段中の所定
の楽音波形データに基づき第1の楽音信号を生成する第
1の楽音生成手段と、 所定の音楽効果を与えるべきことを指示する第2の指示
手段と、 該第2の指示手段の指示に応じて前記記憶手段中の前記
所定の楽音波形データに基づき前記第1の楽音信号と異
なる第2の楽音信号を生成する第2の楽音生成手段と、 該第2の楽音生成手段で生成された第2の楽音信号と前
記第1の楽音生成手段で生成された第1の楽音信号とを
合成する合成手段、 とを具備したことを特徴とする楽音発生装置。
1. A storage means for storing musical tone waveform data, a first instruction means for instructing to sound, and predetermined musical tone waveform data in the storage means in response to an instruction from the first instruction means. A first tone generating means for generating a first tone signal based on the above, a second instructing means for instructing that a predetermined music effect should be given, and the storing means in response to an instruction of the second instructing means. Second musical tone generating means for generating a second musical tone signal different from the first musical tone signal based on the predetermined musical tone waveform data therein; and a second musical tone signal generated by the second musical tone generating means. And a synthesizing means for synthesizing the first musical sound signal generated by the first musical sound generating means.
【請求項2】 複数の楽音波形データを記憶した記憶手
段と、 発音すべきことを指示する第1の指示手段と、 該第1の指示手段の指示に応じて前記記憶手段中の所定
の楽音波形データに基づき第1の楽音信号を生成する第
1の楽音生成手段と、 所定の音楽効果を与えるべきことを指示する第2の指示
手段と、 該第2の指示手段の指示に応じて前記記憶手段中の前記
所定の楽音波形データと異なる楽音波形データに基づき
第2の楽音信号を生成する第2の楽音生成手段と、 該第2の楽音生成手段で生成された第2の楽音信号と前
記第1の楽音生成手段で生成された第1の楽音信号とを
合成する合成手段、 とを具備したことを特徴とする楽音発生装置。
2. A storage means for storing a plurality of musical tone waveform data, a first instruction means for instructing to sound, and a predetermined musical tone in the storage means in response to an instruction from the first instruction means. First musical sound generating means for generating a first musical sound signal based on waveform data, second instructing means for instructing that a predetermined music effect should be given, and said second instructing means for instructing the second musical means Second musical tone generating means for generating a second musical tone signal based on musical tone waveform data different from the predetermined musical tone waveform data in the storage means; and second musical tone signal generated by the second musical tone generating means. And a first sound signal generated by the first sound generation means, and a synthesis means for synthesizing the first music signal.
JP4326234A 1992-11-12 1992-11-12 Musical sound generating device Pending JPH06149246A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4326234A JPH06149246A (en) 1992-11-12 1992-11-12 Musical sound generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4326234A JPH06149246A (en) 1992-11-12 1992-11-12 Musical sound generating device

Publications (1)

Publication Number Publication Date
JPH06149246A true JPH06149246A (en) 1994-05-27

Family

ID=18185490

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4326234A Pending JPH06149246A (en) 1992-11-12 1992-11-12 Musical sound generating device

Country Status (1)

Country Link
JP (1) JPH06149246A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7977564B2 (en) 2008-07-24 2011-07-12 Yamaha Corporation Electronic keyboard musical instrument

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7977564B2 (en) 2008-07-24 2011-07-12 Yamaha Corporation Electronic keyboard musical instrument

Similar Documents

Publication Publication Date Title
JPH06259065A (en) Electronic musical instrument
JP3296518B2 (en) Electronic musical instrument
US5074183A (en) Musical-tone-signal-generating apparatus having mixed tone color designation states
JPH06195075A (en) Musical tone generating device
JPH06332449A (en) Singing voice reproducing device for electronic musical instrument
JPH06259064A (en) Electronic musical instrument
JP2698942B2 (en) Tone generator
JPH06149246A (en) Musical sound generating device
JP3439312B2 (en) Electronic musical instrument pitch controller
JP3933070B2 (en) Arpeggio generator and program
JP2003263160A (en) Musical sound signal generation device and musical sound signal generation program
JP2953217B2 (en) Electronic musical instrument
JPH06195077A (en) Musical tone generating device
JPH06242781A (en) Electronic musical instrument
JP3394626B2 (en) Electronic musical instrument
JP3424989B2 (en) Automatic accompaniment device for electronic musical instruments
JPH10319949A (en) Electronic musical instrument
JP3231896B2 (en) Electronic musical instrument
JP3231895B2 (en) Electronic musical instrument
JP2953937B2 (en) Electronic musical instrument volume control device
JPH06250650A (en) Electronic musical instrument
JPH08137473A (en) Expression pedal device of electronic musical instrument
JPH06161432A (en) Musical sound generating device
JPH11167381A (en) Musical tone controller
JP2019168515A (en) Electronic musical instrument, method, and program

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990126