JP3392451B2 - Electronic musical instrument tone control device - Google Patents

Electronic musical instrument tone control device

Info

Publication number
JP3392451B2
JP3392451B2 JP03753793A JP3753793A JP3392451B2 JP 3392451 B2 JP3392451 B2 JP 3392451B2 JP 03753793 A JP03753793 A JP 03753793A JP 3753793 A JP3753793 A JP 3753793A JP 3392451 B2 JP3392451 B2 JP 3392451B2
Authority
JP
Japan
Prior art keywords
musical
musical tone
pitch
start instruction
parameter value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP03753793A
Other languages
Japanese (ja)
Other versions
JPH06230781A (en
Inventor
哲史 岸本
毅 坂田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Roland Corp
Original Assignee
Roland Corp
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 Roland Corp filed Critical Roland Corp
Priority to JP03753793A priority Critical patent/JP3392451B2/en
Publication of JPH06230781A publication Critical patent/JPH06230781A/en
Application granted granted Critical
Publication of JP3392451B2 publication Critical patent/JP3392451B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、電子楽器の楽音制御装
置に関し、さらに詳細には、複数の楽音生成手段により
同時に複数の楽音を生成することができる電子楽器の楽
音制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a musical tone control device for an electronic musical instrument, and more particularly to a musical tone control device for an electronic musical instrument which is capable of simultaneously producing a plurality of musical tones by a plurality of musical tone producing means.

【0002】[0002]

【従来の技術】従来より電子楽器の分野においては、ア
コースティック楽器における各種奏法によって得られる
効果を模擬することが行われており、こうした各種奏法
の模擬は、発音される楽音の音高(ピッチ)、音色、音
量などの各種楽音制御パラメータを適宜制御することに
より実現されている。
2. Description of the Related Art Conventionally, in the field of electronic musical instruments, the effects obtained by various playing methods of acoustic musical instruments have been simulated, and the simulation of these various playing methods is performed by the pitch (pitch) of a musical sound to be produced. It is realized by appropriately controlling various musical tone control parameters such as tone color and volume.

【0003】例えば、楽音の音高を直前の押鍵操作に対
応する音高から新たな押鍵操作に対応する音高へと、時
間経過にともなって滑らかに変化させるというような、
所謂、ポルタメント奏法により得られる効果(以下、ポ
ルタメント効果と称す。)を模擬することのできる鍵盤
部を備えた電子楽器の存在が広く知られている。
For example, the pitch of a musical tone is smoothly changed over time from a pitch corresponding to a previous key depression operation to a pitch corresponding to a new key depression operation.
It is widely known that there is an electronic musical instrument having a keyboard part that can simulate an effect obtained by a so-called portamento playing method (hereinafter referred to as a portamento effect).

【0004】また、楽音を生成するための複数の楽音生
成手段を備えていて、新たな押鍵操作による発音開始指
示に対応して、これら複数の楽音生成手段の中からいず
れかの楽音生成手段を選択し、選択した楽音生成手段に
新たな押鍵操作による発音開始指示を割り当てることに
より、同時に複数の楽音を生成可能な電子楽器も実現さ
れている。
Further, a plurality of musical tone generating means for generating musical tones are provided, and one of the plurality of musical tone generating means is selected from among the plurality of musical tone generating means in response to a sound generation start instruction by a new key depression operation. An electronic musical instrument capable of simultaneously generating a plurality of musical tones has been realized by selecting and assigning a tone generation start instruction by a new key depression operation to the selected musical tone generating means.

【0005】[0005]

【発明が解決しようとする課題】ところで、上記したよ
うなポルタメント効果を模擬する場合に、同時に単一の
楽音しか生成しない場合には、当該生成中の楽音の音高
を基準として、新たな押鍵操作に対応する音高へと、時
間経過にともなって楽音の音高を滑らかに変化させれば
よいため、音楽表現上不自然な感じを聴衆に与えるとい
う問題を生ずることはなかった。
By the way, in the case of simulating the above-mentioned portamento effect, if only a single musical tone is generated at the same time, a new push is made based on the pitch of the musical tone being generated. Since the pitch of the musical tone needs to be smoothly changed with the passage of time to the pitch corresponding to the key operation, there is no problem of giving an unnatural feeling to the audience in terms of musical expression.

【0006】しかしながら、上記した複数の楽音生成手
段により同時に複数の楽音を生成可能な電子楽器におい
てポルタメント効果を模擬する場合には、以下に説明す
るような問題点が指摘されていた。
However, when simulating the portamento effect in an electronic musical instrument capable of simultaneously producing a plurality of musical tones by the plurality of musical tone producing means described above, the following problems have been pointed out.

【0007】即ち、複数の楽音生成手段により同時に複
数の楽音を生成可能な電子楽器においては、新たな押鍵
操作に対応する楽音の発音開始時の音高、つまりポルタ
メント効果開始時の音高は、新たな押鍵操作に対応する
楽音の生成のために割り当てられる楽音生成手段の現在
の音高とされていた。
That is, in an electronic musical instrument capable of simultaneously producing a plurality of musical tones by a plurality of musical tone producing means, the tone pitch at the start of tone generation corresponding to a new key depression operation, that is, the tone pitch at the beginning of the portamento effect is , The current pitch of the musical tone generating means assigned for generating a musical tone corresponding to a new key depression operation.

【0008】ところが、新たな押鍵操作に対応する楽音
を生成する際において、新たな押鍵操作に対応する楽音
の生成をどの楽音生成手段に割り当てるかは、アサイナ
を用いてヒストリ・アサイン(時間的に最も古く楽音の
生成を開始した楽音生成手段を選択するなどのように、
楽音生成に関する履歴に基づいて楽音生成手段を選択す
る方法である。)やレベル・アサイン(楽音生成手段で
生成されている楽音のレベルを比較し、最もレベルの小
さい楽音を生成中の楽音生成手段を選択する方法であ
る。)などを行って決定されていた。このために、新た
な押鍵操作に対応する楽音の生成のために割り当てられ
る楽音生成手段が、必ずしも直前の押鍵操作に対応する
楽音の生成のために割り当てられた楽音生成手段と同じ
になるとは限らなかった。
However, when a musical tone corresponding to a new key pressing operation is generated, which musical tone generating means is to be assigned to generate a musical tone corresponding to a new key pressing operation is performed by using an assigner to perform history assignment (time For example, select the musical tone generation method that started generating the musical tone that is the oldest.
This is a method of selecting a tone generation means based on a history relating to tone generation. ) Or level assignment (a method of comparing the levels of the musical tones generated by the musical tone generating means and selecting the musical tone generating means that is generating the musical tone of the lowest level). Therefore, if the musical tone generating means assigned for generating a musical tone corresponding to a new key pressing operation is the same as the musical tone generating means assigned for generating a musical tone corresponding to the immediately preceding key pressing operation. Was not always.

【0009】従って、ポルタメント効果開始時の音高
は、直前の押鍵操作により生成された楽音の音高とは特
に関係のないものとなるので、ポルタメント効果開始時
の音高が音楽的に不自然になる恐れがあり、自然なポル
タメント効果を得ることができないという問題点が指摘
されていた。
Therefore, the pitch at the start of the portamento effect is not particularly related to the pitch of the musical tone generated by the key pressing operation immediately before, so that the pitch at the start of the portamento effect is not musical. It has been pointed out that there is a risk that it may become natural and that the natural portamento effect cannot be obtained.

【0010】本発明は、従来の技術の有するこのような
問題点に鑑みてなされたものであり、その目的とすると
ころは、複数の楽音生成手段により同時に複数の楽音を
生成する場合であっても、楽音制御パラメータを、直前
の発音開始指示に基づくパラメータ値と関連付けて制御
するようにして、音楽的に不自然な感じを与えることの
ないようにした電子楽器の楽音制御装置を提供しようと
するものである。
The present invention has been made in view of the above problems of the prior art, and its object is to generate a plurality of musical tones simultaneously by a plurality of musical tone generating means. Also, it is an object of the present invention to provide a musical tone control device for an electronic musical instrument in which a musical tone control parameter is controlled by associating it with a parameter value based on an immediately preceding pronunciation start instruction so as not to give an unnatural musical feeling. To do.

【0011】即ち、ポルタメント効果における音高のよ
うな楽音制御パラメータを、直前の発音開始指示により
指定されたパラメータ値(直前の発音開始指示による目
的のパラメータ値)、あるいは直前の発音開始指示によ
り指定されたパラメータ値へ変化する途中の現在のパラ
メータ値(直前の発音開始指示による目的のパラメータ
値への変化の途中のパラメータ値)を基準として制御す
るようにして、音楽的に不自然な感じを与えることのな
いようにした。
That is, a musical tone control parameter such as the pitch in the portamento effect is designated by a parameter value designated by the immediately preceding sounding start instruction (a target parameter value by the immediately preceding sounding start instruction) or by the immediately preceding sounding start instruction. The current parameter value in the process of changing to the specified parameter value (the parameter value in the process of changing to the target parameter value due to the immediately preceding sounding start instruction) is used as a reference to control the musical unnatural feeling. I tried not to give.

【0012】[0012]

【課題を解決するための手段】上記目的を達成するため
に、本発明のうち請求項1に記載の発明は、楽音の生成
がそれぞれ可能な複数の楽音生成手段を備え、発音開始
指示に対応して上記複数の楽音生成手段の中からいずれ
かの楽音生成手段を選択し、該発音開始指示に対応する
楽音生成手段によって、楽音制御パラメータのパラメー
タ値に基づいて楽音を生成する電子楽器の楽音制御装置
において、上記複数の楽音生成手段の各々の楽音生成の
ために読み出す現在のパラメータ値を記憶する第一の記
憶手段と、上記複数の楽音生成手段の各々で生成される
楽音の目的のパラメータ値を記憶する第二の記憶手段
と、新たな発音開始指示に対応して、上記第一の記憶手
段から、上記新たな発音開始指示の直前の発音開始指示
に対応する楽音生成手段で生成される楽音の現在のパラ
メータ値を読み出し、上記読み出したパラメータ値を、
上記新たな発音開始指示に対応する楽音生成手段で生成
される楽音の現在のパラメータ値として、上記第一の記
憶手段に記憶させる第一の記憶制御手段と、上記新たな
発音開始指示に対応して、上記新たな発音開始指示に基
づく楽音のパラメータ値を、上記新たな発音開始指示に
対応する楽音生成手段で生成される楽音の目的のパラメ
ータ値として、上記第二の記憶手段に記憶させる第二の
記憶制御手段と、上記第一の記憶手段に記憶された各楽
音生成手段に対応するパラメータ値を、上記第二の記憶
手段に記憶された各楽音生成手段に対応するパラメータ
値へ、時間経過にともなって徐々に近づける補間手段と
を有するようにした。
In order to achieve the above object, the invention according to claim 1 of the present invention is provided with a plurality of musical sound generating means capable of respectively generating musical sounds, and responds to a sounding start instruction. Then, any one of the plurality of musical tone generating means is selected, and the musical tone generating means corresponding to the sound generation start instruction causes the musical tone of the electronic musical instrument to generate a musical tone based on the parameter value of the musical tone control parameter. In the control device, the first storage means for storing the current parameter value read out for the tone generation of each of the plurality of tone generation means, and the target parameter of the tone generated by each of the plurality of tone generation means. In response to a second storage means for storing a value and a new sounding start instruction, a musical tone corresponding to the sounding start instruction immediately before the new sounding start instruction is generated from the first storage means. Reading the current parameter values of the musical tone to be generated by stages, the read parameter values,
Corresponding to the first pronunciation control instruction stored in the first storage means as the current parameter value of the musical sound generated by the musical tone generation means corresponding to the new pronunciation start instruction, and the new pronunciation start instruction. And storing the parameter value of the musical tone based on the new pronunciation start instruction in the second storage means as the target parameter value of the musical tone generated by the musical tone generation means corresponding to the new pronunciation start instruction. The second memory control means and the parameter values corresponding to the respective tone generating means stored in the first storing means are changed to the parameter values corresponding to the respective tone generating means stored in the second storing means by the time. It has an interpolating means for gradually approaching with progress.

【0013】また、本発明のうち請求項2に記載の発明
は、上記楽音制御パラメータが、楽音の音高を制御する
パラメータであるようにした。
In the invention according to claim 2 of the present invention, the musical tone control parameter is a parameter for controlling the pitch of a musical tone.

【0014】[0014]

【作用】本発明のうち請求項1に記載の発明によれば、
第一の記憶制御手段により、新たな発音開始指示に対応
して、上記第一の記憶手段から、該新たな発音開始指示
の直前の発音開始指示に対応する楽音生成手段で生成さ
れる楽音の現在のパラメータ値が読み出され、読み出さ
れたパラメータ値が、該新たな発音開始指示に対応する
楽音生成手段で生成される楽音の現在のパラメータ値と
して、第一の記憶手段に記憶される。
According to the invention described in claim 1 of the present invention,
In response to a new sounding start instruction by the first memory control means, the musical sound generated by the musical sound generating means corresponding to the sounding start instruction immediately before the new sounding start instruction is stored in the first memory means. The current parameter value is read, and the read parameter value is stored in the first storage means as the current parameter value of the musical sound generated by the musical sound generating means corresponding to the new sounding start instruction. .

【0015】また、第二の記憶制御手段により、該新た
な発音開始指示に基づく楽音のパラメータ値が、該新た
な発音開始指示に対応する楽音生成手段で生成される楽
音の目的のパラメータ値として、第二の記憶手段に記憶
される。
The second memory control means sets the parameter value of the musical tone based on the new sounding start instruction as the target parameter value of the musical tone generated by the musical sound generating means corresponding to the new sounding start instruction. , Stored in the second storage means.

【0016】さらに、補間手段によって、第一の記憶手
段に記憶された各楽音生成手段に対応するパラメータ値
が、第二の記憶手段に記憶された各楽音生成手段に対応
するパラメータ値へ、時間経過にともなって徐々に近づ
けられる。
Further, the parameter value corresponding to each musical tone generating means stored in the first storage means is changed to the parameter value corresponding to each musical tone generating means stored in the second storage means by the interpolating means. It can be gradually approached as time passes.

【0017】従って、該新たな発音開始指示に基づく楽
音の発音が、第一の記憶手段に記憶された該新たな発音
開始指示の直前の発音開始指示に対応する楽音生成手段
で生成される楽音の現在のパラメータ値により開始さ
れ、徐々に第二の記憶手段に記憶された該新たな発音開
始指示に対応する楽音生成手段で生成される楽音の目的
のパラメータ値に近づけられることになる。
Therefore, the tone generation of the musical tone based on the new tone generation instruction is generated by the tone generation unit corresponding to the tone generation instruction immediately before the new tone generation instruction stored in the first storage unit. Starting from the current parameter value of, and gradually approaching the target parameter value of the musical sound generated by the musical sound generating means corresponding to the new sound generation start instruction stored in the second storage means.

【0018】[0018]

【0019】[0019]

【0020】[0020]

【0021】また、本発明のうち請求項2に記載の発明
によれば、該新たな発音開始指示に基づき発音される楽
音の音高が、第一の記憶手段に記憶された該新たな発音
開始指示の直前の発音開始指示に対応する楽音生成手段
で生成される楽音の現在のパラメータ値により開始さ
れ、徐々に第二の記憶手段に記憶された該新たな発音開
始指示に対応する楽音生成手段で生成される楽音の目的
のパラメータ値に近づけられることになる。
According to the second aspect of the present invention, the pitch of the musical tone generated based on the new pronunciation start instruction is stored in the first storage means. A tone generation corresponding to the new sounding start instruction which is started by the current parameter value of the tone generated by the tone generating means corresponding to the sounding start instruction immediately before the start instruction and is gradually stored in the second storage means. The target parameter value of the musical sound generated by the means is brought closer to the target parameter value.

【0022】[0022]

【実施例】以下、図面に基づいて、本発明による電子楽
器の楽音制御装置を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A musical tone control apparatus for an electronic musical instrument according to the present invention will be described in detail below with reference to the drawings.

【0023】図1には、本発明の一実施例による電子楽
器の楽音制御装置を備えた電子楽器のブロック構成図が
示されている。
FIG. 1 is a block diagram of an electronic musical instrument having a musical tone control device for an electronic musical instrument according to an embodiment of the present invention.

【0024】この電子楽器は、その全体の動作を中央処
理装置(CPU)10を用いて制御するように構成され
ている。このCPU10には、後述するタイマ割り込み
処理を行うために、10msecの時間間隔でタイマ割
り込みをかけるためのタイマ12と、演奏者が押鍵操作
/離鍵操作により演奏を行うための鍵盤部14とが接続
されている。
The electronic musical instrument is constructed so that its entire operation is controlled by using a central processing unit (CPU) 10. The CPU 10 includes a timer 12 for issuing a timer interrupt at a time interval of 10 msec in order to perform a timer interrupt process to be described later, and a keyboard section 14 for a performer to perform a key press / release operation. Are connected.

【0025】さらに、CPU10には、バスを介して、
全体の動作のための所定のプログラムなどが格納された
リード・オンリ・メモリ(ROM)16と、後述するC
PU10によるプログラムの実行に必要な各種のバッフ
ァやレジスタなどが設定されたワーキング・エリアとし
てのランダム・アクセス・メモリ(RAM)18と、C
PU10の制御に基づいて鍵盤部14の押鍵/離鍵に対
応する楽音信号を生成/停止する楽音生成部20とが接
続されている。
Further, the CPU 10 is connected to the CPU 10 via a bus.
A read only memory (ROM) 16 in which a predetermined program for the whole operation is stored, and a C described later.
A random access memory (RAM) 18 as a working area in which various buffers and registers necessary for the execution of programs by the PU 10 are set, and C
The tone generator 20 is connected to the tone generator 20 that generates / stops the tone signal corresponding to the key depression / key release of the keyboard 14 under the control of the PU 10.

【0026】さらに、楽音生成部20には、デジタル/
アナログ(D/A)変換器やアンプなどから構成される
放音部22が接続されており、さらに放音部22には、
スピーカ24が接続されている。こうして、楽音生成部
20から出力された楽音信号が、放音部22およびスピ
ーカ24を介して楽音として空間に放音される。
Further, the musical sound generating section 20 has a digital / digital
A sound emitting unit 22 including an analog (D / A) converter and an amplifier is connected to the sound emitting unit 22.
The speaker 24 is connected. In this way, the musical sound signal output from the musical sound generating unit 20 is emitted to the space as a musical sound through the sound emitting unit 22 and the speaker 24.

【0027】上記した楽音生成部20は、楽音の特性を
制御する楽音制御パラメータ(ピッチ、音色、音量な
ど)に対応した楽音信号を生成するものであり、24チ
ャンネル分の発音チャンネル(ボイス)が設定されてい
て、同時に24個の楽音を発生できるものである。
The above-mentioned tone generation section 20 generates a tone signal corresponding to a tone control parameter (pitch, tone color, volume, etc.) for controlling the characteristics of the tone, and has 24 tone generation channels (voices). It is set and can generate 24 musical tones at the same time.

【0028】また、CPU10には、この電子楽器の楽
音制御装置によって付与されるポルタメント効果の種類
を選択するために、ポルタメント・モードの切り替え操
作を行う操作子として、ポルタメント・モード切り替え
スイッチ26が接続されている。ポルタメント・モード
切り替えスイッチ26は、「グランド」側と「+5V」
側とに切り替えられるように構成されている。
Also, a portamento mode changeover switch 26 is connected to the CPU 10 as an operator for switching the portamento mode in order to select the type of portamento effect provided by the musical tone control device of the electronic musical instrument. Has been done. Portamento mode changeover switch 26 is "ground" side and "+ 5V"
It is configured to be switched to the side.

【0029】そして、ポルタメント・モード切り替えス
イッチ26が「グランド」側に切り替えられたときに、
鍵盤部14の直前の押鍵に対応して選択されたボイスの
到達すべきピッチ(鍵盤部14の押鍵により指定される
キー・ナンバの音高に対応するピッチ)を、今回の押鍵
の開始ピッチとする「モード:0」が選択される。
When the portamento mode selector switch 26 is switched to the "ground" side,
The pitch that should be reached by the voice selected corresponding to the key press immediately before on the keyboard section 14 (the pitch corresponding to the pitch of the key number specified by the key press on the keyboard section 14) "Mode: 0" is selected as the starting pitch.

【0030】また、ポルタメント・モード切り替えスイ
ッチ26が「+5V」側に切り替えられたときに、鍵盤
部14の直前の押鍵に対応して選択されたボイスの現在
のピッチ(カレント・ピッチ)を、今回の押鍵の開始ピ
ッチとする「モード:1」が選択される。
When the portamento mode selector switch 26 is switched to the "+ 5V" side, the current pitch (current pitch) of the voice selected in response to the key pressing just before the keyboard section 14 is changed to “Mode: 1” is selected as the start pitch of this key depression.

【0031】RAM18には、CPU10がROM16
に記憶されたプログラムを実行する際に必要とされるバ
ッファやレジスタなどが設定されている。本発明の実施
に関連するバッファやレジスタなどには、以下に示すも
のがある。なお、以下の説明においては、各バッファや
レジスタの内容(データなど)は、特に断らない限り、
同一のラベル名で表すものとする。
In the RAM 18, the CPU 10 is in the ROM 16
The buffers and registers required for executing the program stored in are set. Some of the buffers and registers related to the implementation of the present invention are shown below. In the following description, the contents (data, etc.) of each buffer and register are unless otherwise specified.
They shall be represented by the same label name.

【0032】(1)LAST_VOICE 新たな押鍵の直前の押鍵によって選択されたボイスのボ
イス・ナンバ(本実施例では、24ボイス設定されてい
るため、ボイス・ナンバは「1」乃至「24」であ
る。)を記憶しておくバッファであり、電源投入時に
「0」に初期化される。なお、本実施例では、音色切り
換えやポルタメントを付加するか否かを選択することに
関しては説明を省略しているが、音色切り換えが行われ
た場合ならびにポルタメントを付加するように切り換え
た場合にも、「LAST_VOICE=0」としてもよ
い。
(1) LAST_VOICE Voice number of the voice selected by pressing the key immediately before the new key pressing (24 voices are set in this embodiment, so the voice numbers are "1" to "24"). Is stored in the buffer and is initialized to “0” when the power is turned on. In the present embodiment, description of the selection of whether to switch the tone color or to add portamento is omitted, but it is also performed when the tone color is switched and when the portamento is switched. , “LAST_VOICE = 0”.

【0033】(2)CUR_P 各ボイスのカレント・ピッチ(現在のピッチ)を記憶す
るバッファであり、ボイスと同じ数、即ち、24個設定
されている。
(2) CUR_P This is a buffer for storing the current pitch (current pitch) of each voice, and the same number as the voices, that is, 24 is set.

【0034】(3)DEST_P 各ボイスの到達すべきピッチ(鍵盤部14の押鍵により
指定されるキー・ナンバの音高に対応するピッチ)を記
憶するバッファであり、ボイスと同じ数、即ち、24個
設定されている。
(3) DEST_P This is a buffer for storing the pitch that each voice should reach (the pitch corresponding to the pitch of the key number designated by the key depression of the keyboard section 14), the same number as the voices, that is, 24 are set.

【0035】(4)RATE 各ボイスについて、後述する一回の割り込み処理でのピ
ッチの変化量を記憶するバッファであり、ボイスと同じ
数、即ち、24個設定されている。
(4) RATE This is a buffer for storing the amount of change in pitch in one interrupt process, which will be described later, for each voice, and is set to the same number as the voices, that is, 24 voices.

【0036】(5)TIME 図示しない操作子などにより、演奏者が任意に設定した
ポルタメント・タイム(ポルタメントの開始ピッチから
到達ピッチまでのなめらかなピッチ変化に要する時間)
を記憶するバッファである。
(5) TIME Portamento time arbitrarily set by the performer by an operator (not shown) (time required for smooth pitch change from start portamento pitch to arrival pitch)
Is a buffer for storing.

【0037】(6)SW ポルタメント・モード切り替えスイッチ26の操作によ
り設定されたポルタメント・モードを示すフラグであ
る。ポルタメント・モード切り替えスイッチ26が、
「グランド」側に切り替えられたときに「モード:0」
となり「0」をセットされ、「+5V」側に切り替えら
れたときに「モード:1」となり「1」をセットされ
る。
(6) SW This is a flag indicating the portamento mode set by operating the portamento mode changeover switch 26. Portamento mode switch 26
"Mode: 0" when switched to the "ground" side
Is set to "0", and when switched to the "+ 5V" side, "mode: 1" is set and "1" is set.

【0038】(7)V 押鍵により選択されたボイスのボイス・ナンバを記憶す
るレジスタである。
(7) V This register stores the voice number of the voice selected by key depression.

【0039】(8)V’ 直前の押鍵により選択されたボイスのボイス・ナンバを
記憶するレジスタである。
(8) V'A register for storing the voice number of the voice selected by pressing the key immediately before.

【0040】(9)SV 後述するタイマ割り込み処理において処理中のボイス・
ナンバを記憶するレジスタであり、タイマ割り込み処理
においてのみ用いられる。
(9) SV The voice that is being processed in the timer interrupt processing described later.
This is a register that stores a number and is used only in timer interrupt processing.

【0041】以上の構成において、図2および図3に示
すフローチャート、ならびに図4に示す動作例を参照し
ながら、本発明による電子楽器の楽音制御装置の作用に
ついて説明する。
The operation of the musical tone control apparatus for an electronic musical instrument according to the present invention will be described with reference to the flowcharts shown in FIGS. 2 and 3 and the operation example shown in FIG.

【0042】なお、この電子楽器の楽音制御装置は、鍵
盤部14の押鍵/離鍵の操作が検出されると、以下に説
明するように当該検出に対応した割り込み処理が実行さ
れる。また、10msecの時間間隔でCPU10に対
して割り込みがかけられ、タイマ割り込み処理が実行さ
れる。そして、こうした割り込み処理の実行を終了する
と、割り込み待ち状態になる。
When the musical tone control device for an electronic musical instrument detects a key depression / key release operation of the keyboard section 14, an interrupt process corresponding to the detection is executed as described below. Further, the CPU 10 is interrupted at time intervals of 10 msec, and the timer interrupt process is executed. Then, when the execution of such interrupt processing is completed, it enters an interrupt waiting state.

【0043】鍵盤部14の押鍵操作が行われると、鍵盤
部14からCPU10に対して割り込みがかけられ、押
鍵割り込み処理を行う押鍵割り込みルーチン(図2)が
実行される。
When a key depression operation is performed on the keyboard section 14, the keyboard section 14 interrupts the CPU 10, and a key depression interrupt routine (FIG. 2) for performing a key depression interruption process is executed.

【0044】押鍵割り込みルーチンが起動されると、ま
ず、ステップS202において、公知の技術に基づい
て、アサイナを用いてヒストリ・アサインやレベル・ア
サインなどにより、当該押鍵操作に基づいて発音可能な
ボイスが選択され、選択されたボイスのボイス・ナンバ
をVに書き込む。なお、選択されたボイスが発音中であ
った場合には、そのボイスの発音を急速に停止させる処
理を行う。
When the key-depression interrupt routine is activated, first, in step S202, sound can be generated based on the key-depression operation by history assign or level assign using an assigner based on a known technique. A voice is selected and the voice number of the selected voice is written to V. If the selected voice is being sounded, a process of rapidly stopping the sounding of that voice is performed.

【0045】ステップS202の処理を終了すると、ス
テップS204へ進み、当該押鍵操作を行われたキーの
キー・ナンバ(KEY#)をCPU10が検出して、当
該キー・ナンバに対応するピッチを計算する。こうして
計算されたピッチを、DEST_P[V]に記憶させ、
ステップS206へ進む。
When the process of step S202 is completed, the process proceeds to step S204, where the CPU 10 detects the key number (KEY #) of the key on which the key depression operation has been performed, and calculates the pitch corresponding to the key number. To do. The pitch thus calculated is stored in DEST_P [V],
It proceeds to step S206.

【0046】ステップS206では、LAST_VOI
CEが「0」であるか、否かが判断される。
In step S206, LAST_VOI
It is determined whether CE is "0".

【0047】まず、ステップS206の判断結果が肯定
(Y)、即ち、LAST_VOICEが「0」である場
合について説明する。この場合には、ステップS208
へ進む。このようにLAST_VOICEが「0」であ
る場合とは、当該押鍵割り込み処理以前に全く押鍵操作
が存在しない場合であり、当該押鍵割り込み処理を起動
させた押鍵操作は、電源投入時においてLAST_VO
ICEが「0」に初期化された後の最初の押鍵操作とい
うことになる。
First, the case where the determination result of step S206 is affirmative (Y), that is, LAST_VOICE is "0" will be described. In this case, step S208
Go to. As described above, the case where LAST_VOICE is “0” means that there is no key pressing operation before the key pressing interrupt processing, and the key pressing operation that started the key pressing interrupt processing is performed when the power is turned on. LAST_VO
This is the first key depression operation after the ICE is initialized to "0".

【0048】ステップS208では、ステップS204
においてDEST_P[V]に記憶させた値を、CUR
_P[V]に記憶させ、ステップS210へ進む。
In step S208, step S204
The value stored in DEST_P [V] at
_P [V], and the process proceeds to step S210.

【0049】ステップS210では、 (DEST_P[V]−CUR_P[V])/TIME の演算式を実行して、その演算結果をRATE[V]に
記憶する。こうして求められたRATE[V]が、後述
するタイマ割り込み処理において、ポルタメント効果を
付与するために音高を滑らかに変化させる際の変化の単
位として用いられることになる。
In step S210, the arithmetic expression of (DEST_P [V] -CUR_P [V]) / TIME is executed, and the arithmetic result is stored in RATE [V]. The RATE [V] thus obtained is used as a unit of change when the pitch is smoothly changed in order to give the portamento effect in the timer interrupt processing described later.

【0050】しかしながら、ステップS208から進ん
だ場合には、ステップS208において、DEST_P
[V]に記憶させた値をCUR_P[V]に記憶させて
いるので、 (DEST_P[V]−CUR_P[V])/TIME の演算の演算結果が「0」となり、「RATE[V]=
0」とされるので、実際にはポルタメント効果が付与さ
れないことになる。
However, in the case of proceeding from step S208, in step S208, DEST_P
Since the value stored in [V] is stored in CUR_P [V], the operation result of the operation of (DEST_P [V] −CUR_P [V]) / TIME becomes “0”, and “RATE [V] =
Since it is set to "0", the portamento effect is not actually given.

【0051】ステップS210の処理を終了すると、ス
テップS212へ進み、ボイスVをCUR_P[V]に
記憶されたピッチ(即ち、DEST_P[V]に記憶さ
せたピッチである。)で発音開始する。従って、発音開
始のピッチからDEST_P[V]に記憶させたピッチ
で、楽音が発音されることになる。
When the processing of step S210 is completed, the process proceeds to step S212, and the voice V is started to sound at the pitch stored in CUR_P [V] (that is, the pitch stored in DEST_P [V]). Therefore, the musical tone is sounded at the pitch stored in DEST_P [V] from the pitch at which the sound is generated.

【0052】ステップS212の処理を終了すると、ス
テップS214へ進み、Vに記憶させたボイス・ナンバ
をLAST_VOICEに書き込み、次の押鍵割り込み
処理の準備をした後に割り込み待ち状態になる。
When the processing of step S212 is completed, the process proceeds to step S214, the voice number stored in V is written in LAST_VOICE, and the interruption waiting state is prepared after preparation for the next key depression interruption processing.

【0053】次に、ステップS206の判断結果が否定
(N)、即ち、LAST_VOICEが「0」でない場
合(当該押鍵割り込み処理を起動させた押鍵操作以前
に、押鍵操作が存在した場合)について説明する。この
場合には、ステップS216へ進む。
Next, when the result of the determination in step S206 is negative (N), that is, when LAST_VOICE is not "0" (when there is a key depression operation before the key depression operation that activated the key depression interrupt processing). Will be described. In this case, the process proceeds to step S216.

【0054】ステップS216では、LAST_VOI
CEに記憶されていたボイス・ナンバをV’に書き込
む。
At step S216, LAST_VOI
The voice number stored in CE is written in V '.

【0055】ステップS216の処理を終了すると、ス
テップS218へ進み、SWに「1」がセットされてい
るか、否かが判断される。この判断結果が肯定、即ち、
「SW=1」(ポルタメント・モード切り替えスイッチ
26が「+5V」側に切り替えられていて、鍵盤部14
の直前の押鍵に対応して選択されたボイスのカレント・
ピッチを、今回の押鍵の開始ピッチとする「モード:
1」が選択されている。)の場合には、ステップS22
0へ進み、CUR_P[V’]の値をCUR_P[V]
に記憶させる。従って、この場合には、直前の押鍵によ
り選択されたボイスのカレント・ピッチを、当該押鍵割
り込み処理を起動した押鍵により選択されたボイスのカ
レント・ピッチとする。ステップS220の処理を終了
すると、ステップS210へ進む。
When the process of step S216 is completed, the process proceeds to step S218, and it is determined whether or not "1" is set in SW. This judgment result is affirmative, that is,
"SW = 1" (the portamento mode switch 26 is switched to the "+ 5V" side, and the keyboard section 14
The current voice of the voice selected in response to the keypress immediately before
"Mode: Set the pitch as the starting pitch for this key depression"
1 ”is selected. ), Step S22
Go to 0 and change the value of CUR_P [V '] to CUR_P [V]
To memorize. Therefore, in this case, the current pitch of the voice selected by the immediately preceding key depression is set to the current pitch of the voice selected by the key depression that activated the key depression interrupt processing. When the process of step S220 ends, the process proceeds to step S210.

【0056】一方、ステップS218の判断結果が否
定、即ち、「SW=0」(ポルタメント・モード切り替
えスイッチ26が「グランド」側に切り替えられてい
て、鍵盤部14の直前の押鍵に対応して選択されたボイ
スの到達すべきピッチを、今回の押鍵の開始ピッチとす
る「モード:0」が選択されている。)の場合には、ス
テップS222へ進み、DEST_P[V’]の値をC
UR_P[V]に記憶させる。従って、この場合には、
直前の押鍵により選択されたボイスの到達すべきピッチ
を、当該押鍵割り込み処理を起動した押鍵により選択さ
れたボイスのカレント・ピッチとする。ステップS22
2の処理を終了すると、ステップS210へ進む。
On the other hand, the determination result of step S218 is negative, that is, "SW = 0" (the portamento mode changeover switch 26 is switched to the "ground" side, and the key depression just before the keyboard portion 14 is performed. In the case of "mode: 0" in which the pitch to be reached by the selected voice is set as the start pitch of this key depression,) the process proceeds to step S222, and the value of DEST_P [V '] is set. C
Store in UR_P [V]. So in this case,
The pitch to be reached by the voice selected by the immediately preceding key depression is set as the current pitch of the voice selected by the key depression that activated the key depression interrupt processing. Step S22
When the process of 2 is completed, the process proceeds to step S210.

【0057】上記したようにステップS210では、 (DEST_P[V]−CUR_P[V])/TIME の演算式を実行して、その演算結果をRATE[V]に
記憶する。
As described above, in step S210, the operation expression of (DEST_P [V] -CUR_P [V]) / TIME is executed, and the operation result is stored in RATE [V].

【0058】ステップS210の処理を終了すると、ス
テップS212へ進み、ボイスVをCUR_P[V]に
記憶されたピッチで発音開始する。こうして、ポルタメ
ント効果を付与する楽音の発音開始のピッチが、直前の
押鍵で発音しているボイスのピッチを基準として決定さ
れることになる。
When the process of step S210 is completed, the process proceeds to step S212, and the voice V is started to sound at the pitch stored in CUR_P [V]. In this way, the pitch at which the tone generation of the musical sound to which the portamento effect is applied is started is determined with reference to the pitch of the voice generated by the immediately preceding key depression.

【0059】このとき、「モード:1」の場合には、
「CUR_P[V]=CUR_P[V’]」であるの
で、直前の押鍵で発音しているボイスのカレント・ピッ
チで、ポルタメント効果を付与する楽音が発音開始され
る。また、「モード:0」の場合には、「CUR_P
[V]=DEST_P[V’]」であるので、直前の押
鍵で発音しているボイスの到達すべきピッチで、ポルタ
メント効果を付与する楽音が発音開始される。
At this time, in the case of "mode: 1",
Since "CUR_P [V] = CUR_P [V ']", the musical tone to which the portamento effect is applied is started to be produced at the current pitch of the voice being produced by the immediately preceding key depression. Further, in the case of "mode: 0", "CUR_P
Since [V] = DEST_P [V ′] ”, the musical tone to which the portamento effect is applied is started to be produced at the pitch that the voice being produced by the immediately preceding key depression should reach.

【0060】ステップS212の処理を終了すると、ス
テップS214へ進み、Vに記憶させたボイス・ナンバ
をLAST_VOICEに書き込み、次の押鍵割り込み
処理の準備をした後に割り込み待ち状態になる。
When the process of step S212 is completed, the process proceeds to step S214, the voice number stored in V is written in LAST_VOICE, and the interrupt waiting state is prepared after preparation for the next key depression interrupt process.

【0061】以上の処理により、新たな押鍵時の発音開
始ピッチの設定(ステップS208、ステップS22
0、ステップS222)が行われることになる。
By the above processing, the tone generation start pitch for a new key depression is set (step S208, step S22).
0, step S222) is performed.

【0062】次に、実際にポルタメント効果を付与する
処理を行うタイマ割り込み処理について説明する。この
タイマ割り込み処理は、CPU10に10msecの時
間間隔でタイマ割り込みがかけられる度に起動するタイ
マ割り込みルーチン(図3)により実行される。
Next, a timer interrupt process for actually giving a portamento effect will be described. This timer interrupt processing is executed by a timer interrupt routine (FIG. 3) which is activated each time a timer interrupt is applied to the CPU 10 at a time interval of 10 msec.

【0063】このタイマ割り込みルーチンは、ボイス1
乃至ボイス24の全てのボイスについて処理するもので
あるため、ステップS302において、SVを初期化し
て「1」を記憶させ、ボイス1から処理を行う準備を
し、ステップS304へ進む。
This timer interrupt routine is used for voice 1
Since all the voices of the voices 24 to 24 are processed, in step S302, SV is initialized to store "1", and preparations for processing from voice 1 are made, and the process proceeds to step S304.

【0064】ステップS304では、CUR_P[S
V]がDEST_P[SV]と等しいか、否かを判断す
る。この判断結果が肯定、即ち、CUR_P[SV]と
DEST_P[SV]とが一致している場合(現在発音
しているピッチと到達すべきピッチとが一致しているこ
とになる。)には、ポルタメント効果を付与する必要が
ないので、ステップS306へジャンプして、SVを
「1」インクリメントしてステップS308へ進み、S
Vが「24」より大きいか否かを判断する。
In step S304, CUR_P [S
It is determined whether or not V] is equal to DEST_P [SV]. When the result of this determination is affirmative, that is, when CUR_P [SV] and DEST_P [SV] match (meaning that the pitch currently sounded and the pitch to be reached match). Since it is not necessary to add the portamento effect, the process jumps to step S306, SV is incremented by "1" and the process proceeds to step S308.
It is determined whether V is larger than "24".

【0065】ステップS308の判断結果が肯定、即
ち、SVが「24」より大きい場合には、ボイス1乃至
ボイス24の全てのボイスに対してタイマ割り込み処理
を行ったことになるため、タイマ割り込みを終了して割
り込み待ち状態になる。
If the result of the determination in step S308 is affirmative, that is, if SV is larger than "24", it means that the timer interrupt processing has been performed for all the voices 1 to 24, so that the timer interrupt is issued. It ends and enters the interrupt waiting state.

【0066】一方、ステップS308の判断結果が否
定、即ち、SVが「24」以下であった場合には、未だ
全てのボイスに対してタイマ割り込み処理が行われてい
ないので、タイマ割り込み処理が行われていない残りの
ボイスを処理するために、ステップS304へ戻り、処
理を繰り返すことになる。
On the other hand, if the result of the determination in step S308 is negative, that is, if SV is "24" or less, timer interrupt processing has not been performed on all voices, so timer interrupt processing is performed. In order to process the remaining unvoiced voices, the process returns to step S304 and the process is repeated.

【0067】上記したステップS304の判断結果が否
定、即ち、CUR_P[SV]とDEST_P[SV]
とが異なる場合(現在発音しているピッチが、到達すべ
きピッチまで至っていない。)には、ステップS310
へ進む。
The determination result of step S304 is negative, that is, CUR_P [SV] and DEST_P [SV].
Is different (the pitch being currently sounded has not reached the pitch to be reached), step S310.
Go to.

【0068】ステップS310では、CUR_P[S
V]にステップS210で求めたRATE[SV]を加
えたものを、新たにCUR_P[SV]として記憶す
る。このため、RATE[SV]分だけピッチを変化す
ることができることになる。
In step S310, CUR_P [S
V] plus RATE [SV] obtained in step S210 is newly stored as CUR_P [SV]. Therefore, the pitch can be changed by RATE [SV].

【0069】ステップS310の処理を終了すると、ス
テップS312へ進み、ステップS310で新たに記憶
されたCUR_P[SV]が、DEST_P[SV]を
通過したか、否かが判断される。この判断結果が肯定、
即ち、CUR_P[SV]がDEST_P[SV]を通
過した場合には、既にDEST_P[SV]にCUR_
P[SV]が到達したことになるので、DEST_P
[SV]をCUR_P[SV]に記憶させ、CUR_P
[SV]をDEST_P[SV]に一致させる。こうし
て、CUR_P[SV]が、DEST_P[SV]を越
えることを防止する。ステップS314の処理を終了す
ると、ステップS316へ進む。
When the processing of step S310 is completed, the process proceeds to step S312, and it is determined whether or not CUR_P [SV] newly stored in step S310 has passed DEST_P [SV]. This judgment result is affirmative,
That is, when CUR_P [SV] has passed DEST_P [SV], CUR_ has already been added to DEST_P [SV].
Since P [SV] has arrived, DEST_P
[SV] is stored in CUR_P [SV], and CUR_P
Match [SV] with DEST_P [SV]. In this way, CUR_P [SV] is prevented from exceeding DEST_P [SV]. When the process of step S314 ends, the process proceeds to step S316.

【0070】一方、ステップS312の判断結果が否
定、即ち、CUR_P[SV]がDEST_P[SV]
を通過していない場合にも、ステップS316へ進む。
On the other hand, the determination result of step S312 is negative, that is, CUR_P [SV] is DEST_P [SV].
Even when the vehicle has not passed through, the process proceeds to step S316.

【0071】ステップS316では、CUR_P[S
V]に従って、ボイスSVのピッチを変更させる。この
ため、発音中のボイスSVのピッチが、RATE[S
V]分だけ変化することになり、聴衆は楽音の音高の変
化を聴取できる。
In step S316, CUR_P [S
V], the pitch of the voice SV is changed. Therefore, the pitch of the voice SV being sounded is RATE [S
Therefore, the audience can hear the change in pitch of the musical tone.

【0072】ステップS316の処理を終了すると、ス
テップS306へ進み、上記した処理が行われる。
When the process of step S316 is completed, the process proceeds to step S306, and the above process is performed.

【0073】なお、離鍵の際の処理は、公知の技術を用
いて、離鍵されたキー・ナンバに対応する発音中のボイ
スで生成中の楽音信号を減衰すればよいものであるた
め、詳細な説明は省略する。
Since the processing at the time of key release may be performed by using a known technique, the musical tone signal being generated by the voice being sounded corresponding to the released key number may be attenuated. Detailed description is omitted.

【0074】図4には、押鍵にともなうピッチの変化図
が示されており、実線により「モード:1」の場合のピ
ッチの変化を表している。なお、「モード:0」の場合
は、一点鎖線により示した部分のみ「モード:1」の場
合のピッチの変化と異なり、他は同一である。
FIG. 4 shows a change diagram of the pitch with the key depression, and the solid line shows the change of the pitch in the case of "mode: 1". In the case of "mode: 0", only the portion indicated by the alternate long and short dash line is different from the change in pitch in the case of "mode: 1", and the other is the same.

【0075】まず、「モード:1」の場合について説明
する。この場合に電源投入後の最初の押鍵として、「ピ
ッチC4の押鍵」があると、到達すべきピッチ「C4」
から発音開始(ステップS202→ステップS204→
206→ステップS208→ステップS210→ステッ
プS212→ステップS214、ステップS302→ス
テップS304→ステップS306→ステップS30
8)されることになる。
First, the case of "mode: 1" will be described. In this case, if there is a "pitch C4 key depression" as the first key depression after the power is turned on, the pitch "C4" to be reached
To start pronunciation (step S202 → step S204 →
206 → step S208 → step S210 → step S212 → step S214, step S302 → step S304 → step S306 → step S30
8) will be done.

【0076】次に、「ピッチD4の押鍵」があると、現
在発音中のピッチから、ステップS210で求められた
RATEに従って、滑らかにピッチが変化し、ピッチ
「D4」へ到達する(ステップS202→ステップS2
04→ステップS206→ステップS216→ステップ
S218→ステップS220→ステップS210→ステ
ップS212→ステップS214、ステップS302乃
至ステップS316)。
Next, if there is a "pitch D4 key depression", the pitch is smoothly changed from the pitch being currently sounded according to the RATE obtained in step S210, and the pitch "D4" is reached (step S202). → Step S2
04 → step S206 → step S216 → step S218 → step S220 → step S210 → step S212 → step S214, steps S302 to S316).

【0077】さらに、「ピッチG4の押鍵」、「ピッチ
A3の押鍵」と進んだ場合には、「ピッチA3の押鍵」
が、直前の押鍵により到達すべきピッチ「G4」への変
化の途中であるが、上記と同様に現在発音中のピッチか
ら、ステップS210で求められたRATEに従って、
滑らかにピッチが変化し、ピッチ「A3」へ到達する。
以下、同様な処理が行われる。
Further, when the process proceeds to "key pressing of pitch G4" and "key pressing of pitch A3", "key pressing of pitch A3".
Is in the process of changing to the pitch “G4” that should be reached by the immediately preceding key depression, but similarly to the above, from the pitch currently being sounded, according to the RATE obtained in step S210,
The pitch changes smoothly and reaches the pitch "A3".
Hereinafter, similar processing is performed.

【0078】次に、「モード:0」の場合について、
「モード:1」と異なる点について説明すると、上記と
同様に電源投入後に「ピッチC4の押鍵」、「ピッチD
4の押鍵」、「ピッチG4の押鍵」と進み、さらに「ピ
ッチA3の押鍵」がある。このときに、「ピッチA3の
押鍵」が、直前の押鍵により到達すべきピッチ「G4」
への変化の途中であるが、「ピッチA3の押鍵」による
発音開始は、「ピッチG4の押鍵」による到達ピッチ
「G4」から開始される。そして、ステップS210で
求められたRATEに従って、滑らかにピッチが変化
し、ピッチ「A3」へ到達する(ステップS202→ス
テップS204→ステップS206→ステップS216
→ステップS218→ステップS222→ステップS2
10→ステップS212→ステップS214、ステップ
S302乃至ステップS316)。
Next, in the case of "mode: 0",
Explaining the points different from "mode: 1", "pitch C4 key depression" and "pitch D" after power-on in the same manner as above.
4 "and" pitch G4 "and then" pitch A3 ". At this time, the "pitch A3 key depression" is reached by the immediately preceding key depression "G4".
Although it is in the process of being changed to, the sound generation by the "pitch A3 key depression" is started from the arrival pitch "G4" by the "pitch G4 key depression". Then, the pitch smoothly changes according to the RATE obtained in step S210, and the pitch reaches “A3” (step S202 → step S204 → step S206 → step S216).
→ step S218 → step S222 → step S2
10 → step S212 → step S214, steps S302 to S316).

【0079】さらに、「ピッチG3の押鍵」があり、次
に「ピッチE3の押鍵」がある。このときに、「ピッチ
E3の押鍵」が、直前の押鍵により到達すべきピッチ
「G3」への変化の途中であるが、「ピッチE3の押
鍵」による発音開始は、「ピッチG3の押鍵」による到
達ピッチ「G3」から開始される。そして、ステップS
210で求められたRATEに従って、滑らかにピッチ
が変化し、ピッチ「E3」へ到達する(ステップS20
2→ステップS204→ステップS206→ステップS
216→ステップS218→ステップS222→ステッ
プS210→ステップS212→ステップS214、ス
テップS302乃至ステップS316)。
Further, there is a "key depression of pitch G3" and then a "key depression of pitch E3". At this time, the "pitch E3 key depression" is in the process of changing to the pitch "G3" which should be reached by the immediately preceding key depression. It starts from the arrival pitch "G3" by "key depression". And step S
The pitch changes smoothly according to the RATE obtained in step 210 and reaches the pitch "E3" (step S20).
2 → step S204 → step S206 → step S
216 → step S218 → step S222 → step S210 → step S212 → step S214, steps S302 to S316).

【0080】図5には、押鍵割り込み処理の他の実施例
による押鍵割り込みルーチンが示されており、図2に示
した押鍵割り込みルーチンと同様な処理内容には、同一
の符号を付して示すことにより詳細な説明は省略し、異
なる処理内容のみを説明する。
FIG. 5 shows a key-depression interrupt routine according to another embodiment of the key-depression interrupt process. The same processing contents as those of the key-depression interrupt routine shown in FIG. Therefore, detailed description will be omitted and only different processing contents will be described.

【0081】なお、この実施例のステップS202にお
いては、キー・ナンバ・テーブル(各キー・ナンバ毎
に、そのキー・ナンバの発音開始指示に対応して発音中
のボイス・ナンバを記憶するテーブル。)の新たに押鍵
操作されたキーのキー・ナンバ(KEY#)に対応する
記憶箇所に、ボイス・ナンバVを記憶する。このような
キー・ナンバとボイス・ナンバとの関係を示す情報を記
憶する処理は、通常のアサイン処理でも行われるもので
ある。
In step S202 of this embodiment, a key number table (a table for storing, for each key number, a voice number being sounded corresponding to a sounding start instruction of the key number). ), The voice number V is stored in the storage location corresponding to the key number (KEY #) of the newly pressed key. The process of storing the information indicating the relationship between the key number and the voice number is also performed in the normal assign process.

【0082】図5に示す押鍵割り込み処理においては、
図2のLAST_VOICEに代わるバッファとして、
LAST_KEYが設定されることになる。LAST_
KEYは、直前に押鍵されたキー・ナンバを記憶してお
くバッファであり、電源投入時に「−1」に初期化され
る。
In the key depression interrupt processing shown in FIG.
As a buffer that replaces LAST_VOICE in FIG.
LAST_KEY will be set. LAST_
KEY is a buffer that stores the key number that was pressed immediately before, and is initialized to "-1" when the power is turned on.

【0083】図5の押鍵割り込みルーチンが起動する
と、ステップS202→ステップS204と進み、ステ
ップS506において、LAST_KEYが「−1」で
あるか否かが判断される。この判断結果が肯定の場合に
は、図2の押鍵割り込みルーチンと同様に、ステップS
208→ステップS210→ステップS212と進む。
When the key depression interrupt routine of FIG. 5 is started, the process proceeds from step S202 to step S204, and in step S506, it is determined whether or not LAST_KEY is "-1". If the determination result is affirmative, as in the key depression interrupt routine of FIG.
The sequence proceeds from 208 → step S210 → step S212.

【0084】ステップS212の処理を終了すると、ス
テップS514へ進み、ボイスVのキー・ナンバをLA
ST_KEYに記憶させて処理を終了する。なお、キー
・ナンバとボイス・ナンバとの関連は、キー・ナンバ・
テーブルを参照することにより分かる。
When the processing of step S212 is completed, the flow proceeds to step S514, and the key number of voice V is set to LA.
The data is stored in ST_KEY and the process ends. The relationship between the key number and the voice number is the key number
You can find out by referring to the table.

【0085】一方、ステップS506の判断結果が否定
の場合には、ステップS516へ進み、LAST_KE
Yに記憶されたキー・ナンバに一致するキー・ナンバの
ボイスのボイス・ナンバをV’に記憶する。なお、キー
・ナンバとボイス・ナンバとの関連は、キー・ナンバ・
テーブルを参照することにより分かる。
On the other hand, if the decision result in the step S506 is negative, the process advances to a step S516, and LAST_KE.
The voice number of the voice of the key number matching the key number stored in Y is stored in V '. The relationship between the key number and the voice number is the key number
You can find out by referring to the table.

【0086】ステップS516の処理を終了すると、ス
テップS218→ステップS220(ステップS22
2)→ステップS210→ステップS212→ステップ
S514へ進み、ボイスVのキー・ナンバをLAST_
KEYに記憶させて処理を終了する。
When the processing of step S516 is completed, step S218 → step S220 (step S22
2)-> step S210-> step S212-> step S514, in which the key number of voice V is LAST_.
The data is stored in the KEY and the processing is ended.

【0087】上記のような処理を行っても、図2に関し
て説明したと同様なポルタメント効果を付与できる。
Even with the above processing, the same portamento effect as described with reference to FIG. 2 can be provided.

【0088】なお、上記実施例においては、自然なポル
タメント効果を得るために、楽音制御パラメータとして
音高(ピッチ)を制御した場合を説明したが、これに限
られることなしに、ポルタメント効果以外の他の効果を
実現するために、音色、音量などの他の楽音制御パラメ
ータを制御するようにしてもよい。
In the above embodiment, the pitch (pitch) is controlled as the musical tone control parameter in order to obtain a natural portamento effect, but the present invention is not limited to this, and other than the portamento effect. In order to realize other effects, other tone control parameters such as tone color and volume may be controlled.

【0089】また、ピッチ、音色、音量などの楽音制御
パラメータを択一的に制御するようにしてもよいし、同
時に複数の楽音制御パラメータを制御するようにしても
よい。
Further, tone control parameters such as pitch, tone color and volume may be selectively controlled, or a plurality of tone control parameters may be controlled simultaneously.

【0090】さらにまた、上記実施例において、ポルタ
メントを付加するか否かを選択できる操作子を設けるよ
うにしてもよい。この場合に、当該操作子によりポルタ
メントを付加しないようにした場合には、図2に示す押
鍵割り込みルーチンのステップS206の判断結果が肯
定の場合と同じ処理をすればよい。また、当該操作子に
よりポルタメントを付加する場合には、ポルタメント・
モード切り替え操作子26によりモードの選択を行えば
よい。
Furthermore, in the above embodiment, an operator may be provided which can select whether or not to add portamento. In this case, if portamento is not added by the operator, the same processing as that in the case where the determination result of step S206 of the key depression interrupt routine shown in FIG. 2 is affirmative may be performed. Also, when adding portamento with the operator,
The mode may be selected by the mode switching operator 26.

【0091】[0091]

【発明の効果】本発明は、以上説明したように構成され
ているので、以下に記載されるような効果を奏する。
Since the present invention is constructed as described above, it has the following effects.

【0092】楽音の生成がそれぞれ可能な複数の楽音生
成手段を備え、発音開始指示に対応して複数の楽音生成
手段の中からいずれかの楽音生成手段を選択し、該発音
開始指示に対応する楽音生成手段によって、楽音制御パ
ラメータのパラメータ値に基づいて楽音を生成する電子
楽器の楽音制御装置において、複数の楽音生成手段の各
々の楽音生成のために読み出す現在のパラメータ値を記
憶する第一の記憶手段と、複数の楽音生成手段の各々で
生成される楽音の目的のパラメータ値を記憶する第二の
記憶手段と、新たな発音開始指示に対応して、第一の記
憶手段から、新たな発音開始指示の直前の発音開始指示
に対応する楽音生成手段で生成される楽音の現在のパラ
メータ値を読み出し、読み出したパラメータ値を、新た
な発音開始指示に対応する楽音生成手段で生成される楽
音の現在のパラメータ値として、第一の記憶手段に記憶
させる第一の記憶制御手段と、新たな発音開始指示に対
応して、新たな発音開始指示に基づく楽音のパラメータ
値を、新たな発音開始指示に対応する楽音生成手段で生
成される楽音の目的のパラメータ値として、第二の記憶
手段に記憶させる第二の記憶制御手段と、第一の記憶手
段に記憶された各楽音生成手段に対応するパラメータ値
を、第二の記憶手段に記憶された各楽音生成手段に対応
するパラメータ値へ、時間経過にともなって徐々に近づ
ける補間手段とを有するようにしたため、第一の記憶制
御手段により、新たな発音開始指示に対応して、第一の
記憶手段から該新たな発音開始指示の直前の発音開始指
示に対応する楽音生成手段で生成される楽音の現在のパ
ラメータ値が読み出され、読み出されたパラメータ値
が、該新たな発音開始指示に対応する楽音生成手段で生
成される楽音の現在のパラメータ値として、第一の記憶
手段に記憶される。
A plurality of musical tone generating means capable of generating musical tones respectively are provided, and any musical tone generating means is selected from the plurality of musical tone generating means in response to the pronunciation start instruction, and the musical tone start instruction is responded to. In a musical tone control device of an electronic musical instrument for generating a musical tone based on a parameter value of a musical tone control parameter by a musical tone generating means, a first parameter value for reading a musical tone for each of the plurality of musical tone generating means is stored. A storage means, a second storage means for storing a target parameter value of the musical sound generated by each of the plurality of musical sound generation means, and a new storage means for storing a new sound generation start instruction in response to a new sounding start instruction. The current parameter value of the musical sound generated by the musical sound generation means corresponding to the sound generation start instruction immediately before the sound generation start instruction is read, and the read parameter value is used as a new sound generation start instruction. In response to a new sounding start instruction corresponding to the first storage control means to be stored in the first storage means and the new sounding start instruction as the current parameter value of the musical sound generated by the corresponding sound generating means. Second storage control means for storing the parameter value of the musical sound in the second storage means as the target parameter value of the musical sound generated by the musical sound generation means corresponding to the new sounding start instruction, and the first storage means And a parameter value corresponding to each musical tone generating means stored in the second storage means, and an interpolating means for gradually approaching the parameter value corresponding to each musical tone generating means stored in the second storage means over time. Therefore, in response to the new pronunciation start instruction by the first storage control means, the tone generation means corresponding to the pronunciation start instruction immediately before the new pronunciation start instruction is generated from the first storage means. The current parameter value of the musical tone is read out, and the read parameter value is stored in the first storage means as the current parameter value of the musical tone generated by the musical tone generating means corresponding to the new sounding start instruction. Remembered.

【0093】また、第二の記憶制御手段により、該新た
な発音開始指示に基づく楽音のパラメータ値が、該新た
な発音開始指示に対応する楽音生成手段で生成される楽
音の目的のパラメータ値として、第二の記憶手段に記憶
される。
Further, the second storage control means sets the parameter value of the musical tone based on the new sounding start instruction as the target parameter value of the musical tone generated by the musical sound generating means corresponding to the new sounding start instruction. , Stored in the second storage means.

【0094】さらに、補間手段によって、第一の記憶手
段に記憶された各楽音生成手段に対応するパラメータ値
が、第二の記憶手段に記憶された各楽音生成手段に対応
するパラメータ値へ、時間経過にともなって徐々に近づ
けられる。
Further, by the interpolating means, the parameter value corresponding to each tone generating means stored in the first storing means is changed to the parameter value corresponding to each tone generating means stored in the second storing means by the time. It can be gradually approached as time passes.

【0095】このため、該新たな発音開始指示に基づく
楽音の発音が、第一の記憶手段に記憶された該新たな発
音開始指示の直前の発音開始指示に対応する楽音生成手
段で生成される楽音の現在のパラメータ値により開始さ
れ、徐々に第二の記憶手段に記憶された該新たな発音開
始指示に対応する楽音生成手段で生成される楽音の目的
のパラメータ値に近づけられることになる。
Therefore, the pronunciation of the musical sound based on the new sounding start instruction is generated by the musical sound generating means corresponding to the sounding start instruction immediately before the new sounding start instruction stored in the first storage means. It starts with the current parameter value of the musical tone and gradually approaches the target parameter value of the musical tone generated by the musical tone generating means corresponding to the new sounding start instruction stored in the second storage means.

【0096】[0096]

【0097】[0097]

【0098】[0098]

【0099】また、上記楽音制御パラメータが、楽音の
音高を制御するパラメータであるようにしたため、該新
たな発音開始指示に基づき発音される楽音の音高が、第
一の記憶手段に記憶された該新たな発音開始指示の直前
の発音開始指示に対応する楽音生成手段で生成される楽
音の現在のパラメータ値により開始され、徐々に第二の
記憶手段に記憶された該新たな発音開始指示に対応する
楽音生成手段で生成される楽音の目的のパラメータ値に
近づけられることになる。
Since the tone control parameter is a parameter for controlling the tone pitch of the tone, the tone pitch of the tone sounded based on the new sounding start instruction is stored in the first storage means. The new sounding start instruction which is started by the current parameter value of the musical sound generated by the musical sound generating means corresponding to the sounding start instruction immediately before the new sounding start instruction and is gradually stored in the second storage means. To the target parameter value of the musical tone generated by the musical tone generating means corresponding to.

【0100】従って、本発明によれば、複数の楽音生成
手段により同時に複数の楽音を生成する場合であって
も、楽音制御パラメータ、例えば、楽音の音高を制御す
るパラメータを、直前の発音開始指示に基づくパラメー
タ値と関連付けて制御するようにしたもので、音楽的に
不自然な感じを与えることが防止される。
Therefore, according to the present invention, even when a plurality of musical tones are simultaneously generated by a plurality of musical tone generating means, a musical tone control parameter, for example, a parameter for controlling the pitch of the musical tone is set to the immediately preceding start of tone generation. The control is performed in association with the parameter value based on the instruction, and it is possible to prevent a musical unnatural feeling.

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

【図1】本発明の一実施例による電子楽器の楽音制御装
置を備えた電子楽器を示すブロック構成図である。
FIG. 1 is a block diagram showing an electronic musical instrument including a musical tone control device for an electronic musical instrument according to an embodiment of the present invention.

【図2】押鍵割り込みルーチンのフローチャートであ
る。
FIG. 2 is a flowchart of a key depression interrupt routine.

【図3】タイマ割り込みルーチンのフローチャートであ
る。
FIG. 3 is a flowchart of a timer interrupt routine.

【図4】ピッチの変化を示す説明図である。FIG. 4 is an explanatory diagram showing a change in pitch.

【図5】押鍵割り込み処理の他の実施例の押鍵割り込み
ルーチンのフローチャートである。
FIG. 5 is a flowchart of a key depression interrupt routine of another embodiment of key depression interruption processing.

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

10 CPU 12 タイマ 14 鍵盤部 16 ROM 18 RAM 20 楽音生成部 22 放音部 24 スピーカ 26 ポルタメント・モード切り替えスイッチ 10 CPU 12 timers 14 keyboard 16 ROM 18 RAM 20 Musical sound generator 22 Sound emitting part 24 speakers 26 Portamento mode switch

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G10H 1/00 - 7/12 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) G10H 1/00-7/12

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 楽音の生成がそれぞれ可能な複数の楽音
生成手段を備え、発音開始指示に対応して前記複数の楽
音生成手段の中からいずれかの楽音生成手段を選択し、
該発音開始指示に対応する楽音生成手段によって、楽音
制御パラメータのパラメータ値に基づいて楽音を生成す
る電子楽器の楽音制御装置において、 前記複数の楽音生成手段の各々の楽音生成のために読み
出す現在のパラメータ値を記憶する第一の記憶手段と、 前記複数の楽音生成手段の各々で生成される楽音の目的
のパラメータ値を記憶する第二の記憶手段と、 新たな発音開始指示に対応して、前記第一の記憶手段か
ら、前記新たな発音開始指示の直前の発音開始指示に対
応する楽音生成手段で生成される楽音の現在のパラメー
タ値を読み出し、前記読み出したパラメータ値を、前記
新たな発音開始指示に対応する楽音生成手段で生成され
る楽音の現在のパラメータ値として、前記第一の記憶手
段に記憶させる第一の記憶制御手段と、 前記新たな発音開始指示に対応して、前記新たな発音開
始指示に基づく楽音のパラメータ値を、前記新たな発音
開始指示に対応する楽音生成手段で生成される楽音の目
的のパラメータ値として、前記第二の記憶手段に記憶さ
せる第二の記憶制御手段と、 前記第一の記憶手段に記憶された各楽音生成手段に対応
するパラメータ値を、前記第二の記憶手段に記憶された
各楽音生成手段に対応するパラメータ値へ、時間経過に
ともなって徐々に近づける補間手段とを有することを特
徴とする電子楽器の楽音制御装置。
1. A plurality of musical tone generating means capable of respectively generating musical tones are provided, and any musical tone generating means is selected from the plurality of musical tone generating means in response to a sounding start instruction.
In a musical tone control device of an electronic musical instrument for generating a musical tone based on a parameter value of a musical tone control parameter by a musical tone generating means corresponding to the pronunciation start instruction, First storage means for storing a parameter value, second storage means for storing a target parameter value of a musical sound generated by each of the plurality of musical sound generating means, and corresponding to a new pronunciation start instruction, From the first storage means, the current parameter value of the musical sound generated by the musical sound generation means corresponding to the sound generation start instruction immediately before the new sound generation start instruction is read, and the read parameter value is used as the new sound generation. First storage control means for storing in the first storage means as a current parameter value of the musical sound generated by the musical sound generation means corresponding to the start instruction, In response to the new pronunciation start instruction, the parameter value of the musical tone based on the new pronunciation start instruction is set as the target parameter value of the musical tone generated by the musical tone generation means corresponding to the new pronunciation start instruction, Second memory control means to be stored in the second storage means, and parameter values corresponding to each musical sound generation means stored in the first storage means, to generate each musical tone stored in the second storage means. A musical tone control apparatus for an electronic musical instrument, comprising: an interpolating unit that gradually approaches a parameter value corresponding to the unit with the passage of time.
【請求項2】 前記楽音制御パラメータは、楽音の音高
を制御するパラメータであることを特徴とする請求項1
記載の電子楽器の楽音制御装置。
2. The musical tone control parameter is a parameter for controlling the pitch of a musical tone.
A musical tone control device for the electronic musical instrument described.
JP03753793A 1993-02-02 1993-02-02 Electronic musical instrument tone control device Expired - Fee Related JP3392451B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03753793A JP3392451B2 (en) 1993-02-02 1993-02-02 Electronic musical instrument tone control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03753793A JP3392451B2 (en) 1993-02-02 1993-02-02 Electronic musical instrument tone control device

Publications (2)

Publication Number Publication Date
JPH06230781A JPH06230781A (en) 1994-08-19
JP3392451B2 true JP3392451B2 (en) 2003-03-31

Family

ID=12500280

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03753793A Expired - Fee Related JP3392451B2 (en) 1993-02-02 1993-02-02 Electronic musical instrument tone control device

Country Status (1)

Country Link
JP (1) JP3392451B2 (en)

Also Published As

Publication number Publication date
JPH06230781A (en) 1994-08-19

Similar Documents

Publication Publication Date Title
US4448104A (en) Electronic apparatus having a tone generating function
JP2022179645A (en) Electronic musical instrument, sounding method of electronic musical instrument, and program
JP3266149B2 (en) Performance guide device
JP3358292B2 (en) Electronic musical instrument
JPH0916172A (en) Musical performance practice device
JP3392451B2 (en) Electronic musical instrument tone control device
JPH0968980A (en) Timbre controller for electronic keyboard musical instrument
JPH10149164A (en) Automatic arpeggio playing device
JP3312939B2 (en) Electronic musical instrument
JP2002221961A (en) Device for practicing musical performance
JP3347753B2 (en) Electronic musical instrument
JPH10198369A (en) Electronic musical instrument
JPH0749517Y2 (en) Automatic playing device
JP3285984B2 (en) Minus one playing device
JP3316866B2 (en) Music processing unit
JPH07191669A (en) Electronic musical instrument
JP3241832B2 (en) Music generator
JPH09244654A (en) Electronic musical instrument
JPH0926787A (en) Timbre control device
JP3046094B2 (en) Automatic accompaniment device
JPH0756564A (en) Performance data processor
JP4254697B2 (en) Electronic musical instruments
JP4306138B2 (en) Musical sound generator and musical sound generation processing program
JP2962077B2 (en) Electronic musical instrument
JPH0863159A (en) Automatic player

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20090124

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120124

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees