JPH02181792A - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JPH02181792A
JPH02181792A JP64000959A JP95989A JPH02181792A JP H02181792 A JPH02181792 A JP H02181792A JP 64000959 A JP64000959 A JP 64000959A JP 95989 A JP95989 A JP 95989A JP H02181792 A JPH02181792 A JP H02181792A
Authority
JP
Japan
Prior art keywords
pitch
sound
key
instruction data
mode
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
JP64000959A
Other languages
Japanese (ja)
Inventor
Yasunao Abe
阿部 泰直
Masashi Tokunaga
昌司 徳永
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.)
Yamaha Corp
Original Assignee
Yamaha 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 Yamaha Corp filed Critical Yamaha Corp
Priority to JP64000959A priority Critical patent/JPH02181792A/en
Publication of JPH02181792A publication Critical patent/JPH02181792A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PURPOSE:To allow diversified performances by supplying pitch data to a rewriting wound source in such a manner as to successively increase or lower the frequency of the musical tone signals generated from sound sources by a pitch control means. CONSTITUTION:The pitch instruction data generated by a keyboard 2 are rewritten by a CPU 1 in such a manner that the instructed pitches thereof rise or fall as time passes by. A series of the pitch instruction data before and after such change are supplied to a sound source circuit 4. The automatic increase or decrease of the pitch of the musical tones to be generated with lapse of time is executed by this constitution. The diversified performances are thus possible.

Description

【発明の詳細な説明】 「産業上の利用分野」 この発明は、電子楽器に係り、詳しくは、押下鍵に対応
する音のピッチを自動的に上昇もしくは下降させること
ができる電子楽器に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an electronic musical instrument, and more particularly to an electronic musical instrument that can automatically raise or lower the pitch of a sound corresponding to a pressed key.

「従来の技術」 一般に、電子楽器においては、演奏効果を高めるために
、ビブラートやトレモロ等の種々の効果音の発生ができ
るように構成されている。
"Prior Art" Generally, electronic musical instruments are configured to be able to generate various sound effects such as vibrato and tremolo in order to enhance performance effects.

効果音のうち音のピッチを変化させるものとしては、ピ
ッチベンド効果やグライド効果と言われるものがある。
Sound effects that change the pitch of a sound include pitch bend effects and glide effects.

ここで、ピッチベンド効果は、演奏者が所定の操作子を
操作すると、これに応じてピッチが変化する効果であり
、また、グライド効果は、キーオン時において本来のキ
ーの音高より所定ピッチ低い音(あるいは所定ピッチ高
い音)から発音を開始し、以後ピッチが自動的に変化し
て所定の音高になる効果である。
Here, the pitch bend effect is an effect in which the pitch changes when the performer operates a predetermined controller, and the glide effect is an effect in which the pitch changes when the performer operates a predetermined controller, and the glide effect is a sound that is a predetermined pitch lower than the original pitch of the key when the key is on. This is an effect in which the sound is started at a predetermined pitch (or a predetermined pitch high note), and then the pitch changes automatically to reach the predetermined pitch.

[発明が解決しようとする課題] しかしながら、ピッチを制御によって多様な演奏を行お
うとすると、従来の電子楽器では未だ不十分であるとい
う問題があった。
[Problems to be Solved by the Invention] However, there is a problem in that conventional electronic musical instruments are still insufficient when trying to perform various performances by controlling pitch.

この発明は、上述した事情に鑑みてなされたもので、発
生すべき楽音のピッチを、時間の経過とともに自動的に
上昇、または下降させることができ、これにより、多様
な演奏を可能とする電子楽器を提供することを目的とし
ている。
This invention was made in view of the above-mentioned circumstances, and it is possible to automatically raise or lower the pitch of musical tones to be generated over time, thereby making it possible to automatically raise or lower the pitch of musical tones to be generated. The purpose is to provide musical instruments.

「課題を解決するための手段」 上記課題を解決するために、請求項(1)記載の発明に
あっては、発音すべき音の音高を指示する音高指示デー
タを発生する発音指示手段と、供給される音高指示デー
タに対応する周波数で楽音信号を発生する音源と、前記
発音指示手段が発生した音高指示データを時間の経過に
従ってその指示音高が上昇または下降するように書き換
え、この変化の前後にわたる一連の音高指示データを前
記音源に供給する音高制御手段とを具備している。
"Means for Solving the Problem" In order to solve the above problem, the invention according to claim (1) provides a pronunciation instruction means for generating pitch instruction data for instructing the pitch of a sound to be emitted. a sound source that generates a musical tone signal at a frequency corresponding to the supplied pitch instruction data; and a sound source that rewrites the pitch instruction data generated by the sound generation instruction means so that the instructed pitch increases or decreases as time passes. , pitch control means for supplying a series of pitch instruction data before and after this change to the sound source.

また、請求項(2)に記載の発明にあっては、前記音高
制御手段は、指示音高が上昇するように音高指示データ
の書き換えを行う第1のモードと、指示音高が下降する
ように音高指示データの書き換えを行う第2のモードと
、書き換えを行わずに前記発音指示手段が発生した音高
指示データをそのまま継続して前記音源に供給する第3
のモードとを有し、モード切換手段の指示によって前記
第1、第2、第3のいずれかのモードが設定されるよう
にしている。
Further, in the invention according to claim (2), the pitch control means has a first mode in which the pitch instruction data is rewritten so that the instructed pitch increases, and a first mode in which the instructed pitch decreases. a second mode in which the pitch instruction data is rewritten so that the pitch instruction data is rewritten, and a third mode in which the pitch instruction data generated by the sound generation instruction means is continued to be supplied to the sound source without being rewritten.
mode, and one of the first, second, and third modes is set according to an instruction from the mode switching means.

「作用」 音高制御手段によって音高データが書き換えられると、
これに応じて音源で発生される楽音信号の周波数が順次
上昇または下降する。
"Operation" When the pitch data is rewritten by the pitch control means,
Correspondingly, the frequency of the musical tone signal generated by the sound source increases or decreases sequentially.

また、請求項(2)に記載の発明にあっては、モード切
換手段によって第1〜第3のいずれかのモードが設定さ
れるため、演奏の態様に応じて任意のモードを選択する
ことができる。
Further, in the invention as set forth in claim (2), since any one of the first to third modes is set by the mode switching means, it is possible to select any mode depending on the mode of performance. can.

「実施例」 以下、図面を参照してこの発明の実施例について説明す
る。
"Embodiments" Hereinafter, embodiments of the present invention will be described with reference to the drawings.

第1図は、この発明の一実施例の構成を示すブロック図
である。図において、1はCPU (中央処理装置)で
あり、装置各部を制御する。2は鍵盤であり、多数のキ
ーから構成されている。そして、各キーのキーコードお
よびオン/オフ情報が、演奏状態に応じてCPU1に供
給されるようになっている。3は、CPUIに対して種
々の指示を与えるスイッチ等から構成されている操作部
であり、モードを切り換えるモードスイッチMSI、M
S2、MS3、スピード設定器SPおよびその他の図示
せぬスイッチ類が設けられている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, 1 is a CPU (central processing unit), which controls each part of the device. 2 is a keyboard, which is composed of a large number of keys. The key code and on/off information for each key are supplied to the CPU 1 according to the playing state. Reference numeral 3 denotes an operation unit consisting of switches and the like that give various instructions to the CPUI, including mode switches MSI and M for switching modes.
S2, MS3, speed setting device SP, and other switches (not shown) are provided.

ここで、モードスイッチMSl〜MS3によって設定さ
れるモードは以下の3種である。
Here, the modes set by the mode switches MS1 to MS3 are the following three types.

■あるキーを押すと、まずそのキーの音名に対応する周
波数で発音を行い、続いて時間の経過とともにピッチ(
周波数)を上昇させるgoing II)モード。
■When you press a certain key, it first produces a sound at the frequency corresponding to the note name of that key, and then, as time passes, the pitch (
going II) mode to increase the frequency).

■上記going uPモードとは逆に、時間の経過と
ともにピッチを下降させるgoing downモード
■Contrary to the above going up mode, the going down mode lowers the pitch over time.

■ピッチ変更を一切行わずに、押されたキーの音名に対
応する周波数で発音を行うノーマルモード。
■Normal mode that produces sound at the frequency corresponding to the note name of the pressed key without making any pitch changes.

以上の各モードは、それぞれモードスイッチMS2.M
S3.MS 1が押されると設定されるようになってい
る。
Each of the above modes is controlled by the mode switch MS2. M
S3. It is set when MS 1 is pressed.

スピード設定器SPは、going upモードおよび
going downモードにおけるピッチ変化のスピ
ードを設定するものであり、例えば、アブソリュートタ
イプのロータリーエンコーダが用いられる。すなわち、
ロータリーエンコーダの出力データが、スピードデータ
となるように構成される。また、スピード設定器SPの
操作ノブの周囲には、図示のように目盛りが付されてお
り、スピード設定操作が的確に行い得るようになってい
る。この目盛・りの単位は、セント/Sであり、単位時
間(1秒)当たり何セント上昇(あるいは下降)させる
かを示す。なお、100セントが半音に相当しており、
したがって、1オクターブは、1200セントとなる。
The speed setter SP sets the speed of pitch change in the going up mode and the going down mode, and uses, for example, an absolute type rotary encoder. That is,
The output data of the rotary encoder is configured to be speed data. Further, as shown in the figure, a scale is attached around the operating knob of the speed setting device SP, so that the speed setting operation can be performed accurately. The unit of this scale is cents/S, which indicates how many cents is raised (or lowered) per unit time (1 second). In addition, 100 cents corresponds to a semitone,
Therefore, one octave is 1200 cents.

次に、第1図に示す4は楽音信号を発生する音源回路で
あり、cho〜ch7の8つの発音チャンネルを有して
いる。したがって、この実施例における同時発音数は最
大8である。音源回路4の各発音チャンネルchQ−c
h7は、各々CPtJ1から供給されるFナンバに対応
した周波数で発音するようになっている。このFナンバ
は、発音すべき実際の周波数と比例関係を有するように
設定されているデータであり、発音周波数をfとすれば
f=kx(Fナンバ)となる(kは任意の定数)。また
、各発音チャンネルchQ〜ch7は、CPU1からキ
ーオン信号(押鍵を示す信号)が供給されると発音を開
始し、キーオフ信号(離鍵を示す信号)が供給されると
発音を終了するようになっている。音源4の各発音チャ
ンネルchO〜ch7が発生した楽音信号は、−D /
 Aコンバータ5によってアナログ信号に変換された後
にサウンドシステム6に供給され、ここで、実際の楽音
として発生される。
Next, numeral 4 shown in FIG. 1 is a sound source circuit that generates musical tone signals, and has eight sound generation channels cho to ch7. Therefore, the maximum number of simultaneous sounds in this embodiment is eight. Each sound generation channel chQ-c of the sound source circuit 4
h7 is designed to generate sound at a frequency corresponding to the F number supplied from CPtJ1. This F number is data set to have a proportional relationship with the actual frequency to be sounded, and if the sounding frequency is f, then f=kx (F number) (k is an arbitrary constant). Furthermore, each of the sound generation channels chQ to ch7 starts sounding when a key-on signal (a signal indicating a key press) is supplied from the CPU 1, and ends sounding when a key-off signal (a signal indicating a key release) is supplied. It has become. The musical sound signals generated by each sound generation channel chO to ch7 of the sound source 4 are -D/
After being converted into an analog signal by the A converter 5, it is supplied to the sound system 6, where it is generated as an actual musical tone.

次に、第1図に示すlOはCPUIで用いられるプログ
ラムが記憶されているROMであり、11はワーキング
エリアや種々のテーブルが設定されているRAMである
。ここで、RAMI l内に設定されるテーブルについ
て説明する。まず、第2図に示すテーブルは、キーコー
ドテーブルKCTであり、発音チャンネルchQ〜ch
7に対応した8つの番地より構成されている。各番地に
は、当該発音チャンネルのキーオンを示すキーオンフラ
グと、発音中のキーコードKCを示すキーコード情報と
が書き込まれている。牛−オンフラグが“1″のときは
、その番地のキーコードKCによって当該発音チャンネ
ルが発音中であることを示す。
Next, IO shown in FIG. 1 is a ROM in which programs used by the CPUI are stored, and 11 is a RAM in which a working area and various tables are set. Here, the table set in RAMI will be explained. First, the table shown in FIG. 2 is a key code table KCT, in which the sound generation channels chQ to ch
It consists of eight addresses corresponding to the number 7. At each address, a key-on flag indicating the key-on of the relevant sound generation channel and key code information indicating the key code KC that is currently sounding are written. When the cow-on flag is "1", the key code KC at that address indicates that the corresponding sound generation channel is currently generating sound.

したがって、キーコードテーブルKCTを調べることに
より、いずれの発音チャンネルが発音を行っているかを
知ることができる。次に、第3図に示すテーブルは、F
ナンバテーブルFNTであり、発音チャンネルchQ〜
ch7に対応した8つの番地より構成されている。各番
地には、発音中のFナンバが書き込まれるようになって
いる。以上がRAMII内に設けられるテーブルである
Therefore, by checking the key code table KCT, it is possible to know which sound generation channel is producing sound. Next, the table shown in FIG.
Number table FNT, pronunciation channel chQ~
It consists of eight addresses corresponding to ch7. The F number that is currently being sounded is written at each address. The above are the tables provided in RAMII.

次に、第1図に示す12は、タイマであり、一定時間毎
にcputに対し割込信号INTを供給するようになっ
ている。このタイマ12による割込周期は、CPUIに
よってプログラマブルになっている。
Next, 12 shown in FIG. 1 is a timer, which supplies an interrupt signal INT to cput at fixed time intervals. The interrupt period by this timer 12 is programmable by the CPU.

次に、上記構成によるこの実施例の動作について説明す
る。
Next, the operation of this embodiment with the above configuration will be explained.

始めに、メインルーチンにおける処理を第4図を参照し
て説明する。まず、ステップSPlにおいて、各種レジ
スタや定数のイニシャライズ処理が行われる。次に、キ
ーオン/キーオフ・ルーチンLUIに進み、ステップS
P2においてキーオンあるいはキーオフのイベントが検
出されると発音制御処理SP3が行われる。ここで、イ
ベントとは、キーの状態変化のことであり、キーがオフ
状態からオン状態に変化するキーオンイベントと、オン
状態からオフ状態に変化するキーオフイベントとがある
。上記ステップSP3の処理は、実際には2つの処理ル
ーチンによって行われるがこれについては後述する。
First, the processing in the main routine will be explained with reference to FIG. First, in step SP1, various registers and constants are initialized. Next, proceed to the key-on/key-off routine LUI, step S
When a key-on or key-off event is detected at P2, a sound production control process SP3 is performed. Here, an event refers to a change in the state of a key, and includes a key-on event in which a key changes from an off state to an on state, and a key-off event in which a key changes from an on state to an off state. The processing in step SP3 is actually performed by two processing routines, which will be described later.

キーオン/キーオフ・ルーチンLUIの処理の後には、
ファンクションスイッチオンイベント処理ルーチンLU
2へ進む。この処理ルーチン内においては、まず、ファ
ンクションキーのオンイベントの有無が判定され(ステ
ップ5p4)、「YESJの場合にはファンクションス
イッチ処理SP5に進む。なお、ファンクションスイッ
チには、前述したモードスイッチMS 1−M53、ス
ピード設定器SPおよびその他のスイッチ類(図示略)
が含まれる。また、ステップSP5の処理は、後述する
置数の処理ルーチンによって行われるようになっている
After processing the key-on/key-off routine LUI,
Function switch-on event processing routine LU
Proceed to step 2. In this processing routine, first, the presence or absence of a function key on event is determined (step 5p4), and if "YESJ", the process advances to function switch processing SP5.The function switch includes the mode switch MS1 described above. -M53, speed setting device SP and other switches (not shown)
is included. Further, the process at step SP5 is performed by a numeric value processing routine that will be described later.

このファンクションスイッチオンイベント処理L U 
’2の後は、再び、キーオン/キーオフ処理しUlに進
み、以後は上記2つの処理を繰り返す。
This function switch-on event processing L U
After '2, the key-on/key-off process is performed again and the process proceeds to Ul, and thereafter the above two processes are repeated.

次に、ファンクション処理SP5の内容である各ルーチ
ンについて説明する。
Next, each routine that is the content of the function processing SP5 will be explained.

まず、スイッチMS1が押されると、第5図に示すルー
チンが起動される。そして、ステップ5Palにおいて
すべての発音チャンネルchQ〜ch7の発音処理が停
止される。これは、モード変更があった場合は、発音制
御状態が変わるので、異なる制御態様の発音が残存しな
いよう、新たに選択されたモードの制御状態に統一を図
るためである。次に、ステップ5Pa2に移りモードレ
ジスタMDの内容を「O」にする。このモードレジスタ
MDは、RAMII内に設定されており、その内容が「
0」のときはノーマルモード、「1」のときはgoin
gu upモード、「2」のときはgoingdown
モードを各々示すようになっている。このステップ5P
a2の処理が終了するとメインルーチン(第4図参照)
にリターンする。
First, when switch MS1 is pressed, a routine shown in FIG. 5 is activated. Then, in step 5Pal, the sound generation processing of all sound generation channels chQ to ch7 is stopped. This is because when the mode is changed, the sound generation control state changes, so that the control state of the newly selected mode is unified so that the sound generation of different control modes does not remain. Next, the process moves to step 5Pa2 and the content of the mode register MD is set to "O". This mode register MD is set in RAMII, and its contents are “
0” is normal mode, “1” is goin
gu up mode, going down when "2"
Each mode is indicated. This step 5P
When the process of a2 is completed, the main routine (see Figure 4)
Return to.

モードスイッチMSlまたはMS2が押されると、第6
図または第7図に示すサブルーチンが起動され、これら
のサブルーチンの中で、全発音チャンネルchQ−ch
7の発音停止処理が行われるとともに(ステップ5Pb
l、5Pcl)、モードレジスタMDへ「1」または「
2」が書き込まれる。
When mode switch MSl or MS2 is pressed, the sixth
The subroutines shown in the figure or FIG.
7 is performed (step 5Pb).
l, 5Pcl), “1” or “
2" is written.

次に、ステップ設定器SPが操作されると、第8図に示
すサブルーチンが起動される。このサブルーチンにおい
ては、ステップ5Pdllこおいて、スピードデータS
Dh<RAMII内に設定されているレジスタSPDに
書き込まれる。次に、ステップ5Pd2に進み、Fナン
バ係数の算出処理が行われる。Fナンバ係数とは、ピッ
チ制御においてFナンバに乗ぜられる係数のことであり
、この係数の大小に応じてピッチ変化の速さが決定され
る。
Next, when the step setter SP is operated, a subroutine shown in FIG. 8 is activated. In this subroutine, in step 5Pdll, speed data S
Written to register SPD set in Dh<RAMII. Next, the process proceeds to step 5Pd2, where F-number coefficient calculation processing is performed. The F number coefficient is a coefficient multiplied by the F number in pitch control, and the speed of pitch change is determined depending on the magnitude of this coefficient.

そして、ステップ5Pd2における算出は次式に基づい
て行われる。
Then, the calculation in step 5Pd2 is performed based on the following equation.

(+Jpdl  +ri ) Fナンバ係数=2 上記式において、Tiは、タイマ12の割込周期である
。したがって、式中におけるレジスタSpdの内容と割
込周期Tiの乗算により、1回の割込においてピッチを
何セント変動させるかが算出される。そして、この算出
結果を1200セント(1オクタ一ブ分)で割ると、1
回の割込において何オクターブのピッチ変化となるかが
算出される。ここでオクターブとは、2倍の周波数比の
ことであるから、上記算出結果を2のべきにすれば、そ
の演算結果をFナンバに乗じることにより、割込時に設
定すべき新たなFナンバが求められることが判る。
(+Jpdl +ri) F number coefficient=2 In the above formula, Ti is the interrupt period of the timer 12. Therefore, by multiplying the contents of the register Spd by the interrupt period Ti in the formula, the number of cents to change the pitch in one interrupt is calculated. Then, dividing this calculation result by 1200 cents (one octave) is 1
It is calculated how many octaves the pitch changes in each interruption. Here, an octave refers to a frequency ratio of 2 times, so if the above calculation result is raised to a power of 2, the new F number to be set at the time of an interrupt can be determined by multiplying the calculation result by the F number. I understand what is required.

上述のようにして、Fナンバ係数が求められると、その
結果をレジスタFspdに書き込み、これにより、ステ
ップ5Pd2の処理を終了してメインルーチン(第4図
)にリターンする。
When the F number coefficient is determined as described above, the result is written into the register Fspd, thereby ending the process of step 5Pd2 and returning to the main routine (FIG. 4).

次に、キーオン/キーオフ処理LUIについて説明する
Next, the key-on/key-off processing LUI will be explained.

まず、牛−オンイベントが検出されると、第9図に示す
サブルーチンが起動される。このサブルーチンのステッ
プ5Pelにおいては、鍵盤2から供給されるキーコー
ドKCをキーバッファKEYBUF (RAMI l内
に設定されるバッファ)に取り込む。次に、ステップ5
Pe2移り、キーバッファKEYBUF内のキーコード
KCに対応するFナンバをFナンバ検索テーブル(図示
路)より求める。ここで、Fナンバ検索テーブルとは、
RAMIIあるいはROMl0に設定されているテーブ
ルであり、キーコードKCの音高と、これに対応するF
ナンバとが記憶されているテーブルである。そして、求
められたFナンバは、FナンババッファFNBUFに格
納される。次に、ステップ5Pe3に移り、発音チャン
ネルchQ〜ch7のうち発音処理を行っていないもの
、すなわち、空きチャンネルをサーチする。そして、空
いている発音チャンネルに対して、FナンババッファF
NBUF内のFナンバおよびキーオン信号を送出する(
ステップ5Pe4)。この結果、該当する発音チャンネ
ルがFナンバに対応する周波数の楽音信号を発生し、こ
の楽音信号をD/Aコンバータ5を介してサウンドシス
テム6に供給スる。したがって、この時点から、キーオ
ンイベントに係るキーの音高に対応する周波数で楽音が
発生される。
First, when a cow-on event is detected, a subroutine shown in FIG. 9 is activated. In step 5Pel of this subroutine, the key code KC supplied from the keyboard 2 is taken into the key buffer KEYBUF (buffer set in RAMI I). Next, step 5
Moving to Pe2, the F number corresponding to the key code KC in the key buffer KEYBUF is found from the F number search table (path shown). Here, what is the F number search table?
This is a table set in RAM II or ROM10, which shows the pitch of key code KC and the corresponding F.
This is a table in which numbers are stored. The obtained F number is then stored in the F number buffer FNBUF. Next, the process moves to step 5Pe3, in which a search is made for the sound generation channels chQ to ch7 that are not undergoing sound generation processing, that is, empty channels. Then, for the vacant sounding channel, the F number buffer F
Sends the F number and key-on signal in NBUF (
Step 5Pe4). As a result, the corresponding sound generation channel generates a musical tone signal with a frequency corresponding to the F number, and this musical tone signal is supplied to the sound system 6 via the D/A converter 5. Therefore, from this point on, a musical tone is generated at a frequency corresponding to the pitch of the key associated with the key-on event.

次に、ステップ5Pe5に移り、第3図に示すFナンバ
テーブルFNTの該当する発音チャンネル(今発音処理
を行ったチャンネル)の番地に、F−1−ンババッファ
FNBUF内のFナンバを書き込む。次いで、ステップ
5Pe5に移り、第2図に示すキーコードテーブルKC
Tの対応する番地のキーオンフラグを“l”にするとと
もに、その番地にキーコードバッファKCBUF内のキ
ーコードを書き込む。この処理が終了すると、メインル
ーチンにリターンする。
Next, the process moves to step 5Pe5, and the F number in the F-1 buffer FNBUF is written to the address of the corresponding sound generation channel (the channel on which sound generation processing has just been performed) in the F number table FNT shown in FIG. Next, the process moves to step 5Pe5, and the key code table KC shown in FIG.
The key-on flag of the corresponding address of T is set to "l" and the key code in the key code buffer KCBUF is written to that address. When this process is completed, the process returns to the main routine.

また、キーオフが検出されると、第10図に示すサブル
ーチンが起動される。そして、ステップ5Pflにおい
て鍵盤2から供給されるキーコードKCをキーコードバ
ッファKEYBUFに格納する。次に、ステップ5Pf
2に移り、キーコードテーブルKCT (第3図参照)
をサーチし、キーオンフラグが“1”となっている番地
にキーコードバッファKEYBUF内のキーコードKC
に一致しているキーコードがあるか否かを探す。そして
、一致するものがある場合には、音源回路4内の当該番
地に対応する発音チャンネルchにキーオフ信号を送出
する(ステップ5Pf3,5Pf4)。この処理により
、該当する発音チャンネルchの発音処理が停止する。
Further, when a key-off is detected, a subroutine shown in FIG. 10 is activated. Then, in step 5Pfl, the key code KC supplied from the keyboard 2 is stored in the key code buffer KEYBUF. Next, step 5Pf
Moving on to 2, key code table KCT (see Figure 3)
Search for the key code KC in the key code buffer KEYBUF at the address where the key-on flag is "1".
Finds whether there is a key code that matches. If there is a match, a key-off signal is sent to the sound generation channel ch corresponding to the address in the sound source circuit 4 (steps 5Pf3, 5Pf4). With this process, the sound generation process of the corresponding sound generation channel ch is stopped.

一方、一致するキーコードがない場合は、ステップ5P
f3の判定がrNOJ となってリターンする。
On the other hand, if there is no matching key code, step 5P
The determination of f3 is rNOJ and the process returns.

ステップ5Pf4の処理の後は、消音した発音チャンネ
ルchに対応するキーコードテーブルKCT内の番地の
キーオンフラグを“O″にする(ステップ5Pf5)。
After the processing in step 5Pf4, the key-on flag at the address in the key code table KCT corresponding to the muted sound generation channel ch is set to "O" (step 5Pf5).

そして、ステップ5Pf5の処理の後は、メインルーチ
ンへリターンする。
After the process of step 5Pf5, the process returns to the main routine.

なお、上述したステップ5Pf5と、ステップ5Pe5
の処理により、キーコードテーブルKCT内のキーオン
フラグの状態が、音源回路4内の発音チャンネルchQ
〜ch7の各発音の有無に対応するものとなる。
Note that the above-mentioned step 5Pf5 and step 5Pe5
As a result of the processing, the state of the key-on flag in the key code table KCT is changed to the state of the key-on flag in the tone generator circuit 4.
This corresponds to the presence or absence of each pronunciation of ~ch7.

次に、第1図に示すタイマ12から割込信号INTが出
力された場合の動作を説明する。
Next, the operation when the interrupt signal INT is output from the timer 12 shown in FIG. 1 will be described.

タイーマ12から割込信号INTが出力されると、第1
1図に示すサブ−チンが起動される。このサブルーチン
においては、まず、ステップSPglにおいて、モード
レジスタMDの内容が「0」。
When the interrupt signal INT is output from the timer 12, the first
The sub-chin shown in FIG. 1 is activated. In this subroutine, first, in step SPgl, the content of mode register MD is "0".

rlJ、r2Jのいずれであるかが判定され、「0」の
場合はリターンする。一方、モードレジスタMDの内容
がrNの場合はステップspg2においてレジスタCに
レジスタFspdの内容、すなわち、Fナンバ係数を書
き込む。また、モードレジスタMDの内容が「2」の場
合は、ステ、ブSPg3においてレジスタCにレジスタ
Fspd内のFナンバ係数の逆数を書き込む。
It is determined whether it is rlJ or r2J, and if it is "0", the process returns. On the other hand, if the content of the mode register MD is rN, the content of the register Fspd, that is, the F number coefficient, is written into the register C in step spg2. If the content of the mode register MD is "2", the reciprocal of the F number coefficient in the register Fspd is written in the register C in step SPg3.

そして、ステップSPg4においては、レジスタiをク
リアする。このレジスタiは、ステップSPg5〜SP
gllからなるループの循環数をカウントするレジスタ
である。次に、ステップSPg5においては、キーコー
ドテーブルKCTの発音チャンネルchiに対応する番
地のキーオンフラグが“1”か否かが判定される。この
判定結果がrYEsjの場合は、ステップs Pg6に
進み、FナンバテーブルFNT内の発音チャンネルch
iに対応するFナンバをレジスタFXに格納する。そし
て、レジスタFXの内容とレジスタCの内容を乗算し、
その結果をレジスタFXに格納する。この場合、レジス
タFXに格納される演算後のFナンバは、gotng 
upモードの場合は前回値より大きくなり、going
 downモードの場合は前回値より小さ(なる。次に
、ステップSPg8に移り、発音チャンネルchi内の
Fナンバを、レジスタFX内のFナンバに書き換える。
Then, in step SPg4, register i is cleared. This register i is stored in steps SPg5 to SPg5.
This register counts the number of cycles in the loop consisting of gll. Next, in step SPg5, it is determined whether the key-on flag at the address corresponding to the sound generation channel chi in the key code table KCT is "1". If the judgment result is rYEsj, proceed to step s Pg6, and select the sound generation channel ch in the F number table FNT.
Store the F number corresponding to i in register FX. Then, multiply the contents of register FX and the contents of register C,
The result is stored in register FX. In this case, the F number after the operation stored in the register FX is gotng
In the case of up mode, it becomes larger than the previous value, going
In the case of the down mode, it is smaller than the previous value.Next, the process moves to step SPg8, and the F number in the sound generation channel chi is rewritten to the F number in the register FX.

この結果、発音チャンネルchiの発音周波数が、書き
換えられたFナンバに応じて上昇、あるいは下降する。
As a result, the sounding frequency of the sounding channel chi rises or falls in accordance with the rewritten F number.

そして、ステップSPg9に進み、FナンバテーブルF
NTの発音チャンネルchiに対応する番地にレジスタ
FX内のFナンバを書き込む。この処理の後は、ステッ
プSPglOにおいてレジスタiの内容を1インクリメ
ントし、ステップSPgllの判定を行う。ステップS
Pgllの判定は、レジスタiの内容が8以上か否かの
判定であり、rNOJの場合は、再び、ステップSPg
5の処理を行う。以後は上記と同様にして、ステップS
Pgllの判定がrYEsJとなるまで、ステップSP
g5〜SPg9の処理を循環する。したがって、タイマ
12から割り込み信号が供給されると、発音チャンネル
chQ〜ch7の各々のFナンバがレジスタCの内容に
応じて増減する。
Then, the process advances to step SPg9, and the F number table F
Write the F number in the register FX to the address corresponding to the sound generation channel chi of the NT. After this processing, the contents of register i are incremented by 1 in step SPglO, and a determination is made in step SPgll. Step S
The determination of Pgll is to determine whether the contents of register i are 8 or more, and in the case of rNOJ, step SPg
Perform the process in step 5. From then on, do the same as above, step S
Step SP until the determination of Pgll becomes rYEsJ.
The processes from g5 to SPg9 are cycled. Therefore, when an interrupt signal is supplied from the timer 12, the F number of each of the sound generation channels chQ to ch7 increases or decreases according to the contents of the register C.

ただし、割り込み発生時において、発音を行っていない
発音チャンネルは、ステップSPg5の判定がrNOj
となってステップSPg5〜SPg9の処理が行われな
いため、Fナンバの書き換え処理は行われない。
However, when an interrupt occurs, the determination in step SPg5 is rNOj for the sounding channel that is not producing sound.
Therefore, the processing of steps SPg5 to SPg9 is not performed, and therefore the F number rewriting processing is not performed.

次に、ステップSPgllの判定がrYEsJとなると
メインルーチンにリターンし、次の割り込みタイミング
で再び第11図に示すサブルーチンが起動される。この
結果、割込発音時に発音を継続している発音チャンネル
にあっては、Fナンバが一定の割合で増加、あるいは減
少するため、発生音のピッチが順次、増加あるいは減少
する。
Next, when the determination at step SPgll is rYEsJ, the process returns to the main routine, and the subroutine shown in FIG. 11 is activated again at the next interrupt timing. As a result, in the sound generation channel that continues to generate sound during the interrupt sound generation, the F number increases or decreases at a constant rate, so that the pitch of the generated sound increases or decreases in sequence.

なお、上述した実施例においては、発生楽音の周波数が
直線的に上昇または下降したが、これに代えて所定の関
数(例えば2次関数や平方根)に従って上昇または下降
するように構成してもよい。
In the above-described embodiment, the frequency of the generated musical tone rises or falls linearly, but instead of this, it may be configured to rise or fall according to a predetermined function (for example, a quadratic function or a square root). .

また、キーオフが検出されると発音を停止するようにし
たが、キーオフ後あるいはダンパーペダルオフ後におい
ても、所定のデイレイ期間中は発音を継続し、かつ、音
高の上昇/下降制御も行うように構成することもできる
In addition, the sound generation is stopped when a key-off is detected, but even after the key-off or damper pedal is turned off, the sound continues for a predetermined delay period, and the pitch rise/fall control is also performed. It can also be configured as

また、キーオン後直ちに、音高の上昇/下降を行うよう
に制御したが、一定のデイレイ期間中は当初の指示音高
を維持し、その後において上昇/下降制御を行うように
してもよい。
Further, although the pitch is controlled to be raised/lowered immediately after key-on, the initially instructed pitch may be maintained during a certain delay period, and then the raised/lowered control may be performed.

さらに、実施例においては、音高の上昇および下降のい
ずれも行い得るように構成したが、いずれか一方のみを
行うように構成してもいよい。
Further, in the embodiment, although the pitch is configured to be able to raise and lower the pitch, it may be configured to perform only one of them.

「発明の効果」 以上説明したように、この発明によれば、発音すべき音
の音高を指示する音高指示データを発生する発音指示手
段と、供給される音高指示データに対応する周波数で楽
音信号を発生する音源と、前記発音指示手段が発生した
音高指示データを時間の経過に従ってその指示音高が上
昇または下降するように書き換え、この変化の前後にわ
たる一連の音高指示データを前記音源に供給する音高制
御手段とを具備したので、発生すべき楽音のピッチを、
時間の経過とともに自動的に上昇、または下降させるこ
とができ、これにより、多様な演奏が可能となる利点が
得られる。
"Effects of the Invention" As explained above, according to the present invention, there is provided a sound generation instruction means for generating pitch instruction data that indicates the pitch of a sound to be produced, and a frequency corresponding to the supplied pitch instruction data. A sound source that generates a musical tone signal and pitch instruction data generated by the sound generation instruction means are rewritten so that the instruction pitch increases or decreases as time passes, and a series of pitch instruction data before and after this change is generated. Since the pitch control means for supplying the sound source to the sound source is provided, the pitch of the musical sound to be generated can be adjusted by controlling the pitch of the musical sound to be generated.
It can be automatically raised or lowered over time, which has the advantage of allowing for a variety of musical performances.

また、指示音高が上昇するように音高指示データの書き
換えを行う第1のモードと、指示音高が下降するように
音高指示データの書き換えを行う第2のモードと、書き
換えを行わずに前記発音指示手段が発生した音高指示デ
ータをそのまま継続して前記音源に供給する第3のモー
ドとを有するように前記音高制御手段を構成し、モード
切換手段の指示によって前記第1、第2、第3のいずれ
かのモードが設定されるように構成すると、演奏者の好
みに応じた効果を選択することができるから、曲や演奏
中のイメージに応じた効果音とすることができる。
In addition, there is a first mode in which the pitch instruction data is rewritten so that the indicated pitch increases, a second mode in which the pitch instruction data is rewritten so that the indicated pitch falls, and a second mode in which the pitch instruction data is not rewritten. The pitch control means is configured to have a third mode in which the pitch instruction data generated by the sound generation instruction means is continuously supplied to the sound source, and the pitch control means is configured to have a third mode in which the pitch instruction data generated by the sound generation instruction means is continuously supplied to the sound source. If the configuration is configured so that either the second or third mode is set, the performer can select the effect according to his/her preference, so the sound effect can be set according to the song or the image being played. can.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の一実施例の構成を示すブロック図、
第2図は同実施例におけるキーコードテーブルを示す概
念図、第3図は同実施例におけるFナンバテーブルを示
す概念図、第4図は同実施例のメインルーチンを示すフ
ローチャート、第5図〜第7図は各々モードスイッチが
操作された場合に起動されるサブルーチンを示すフロー
チャート、第8図はスピード設定器が操作された場合に
起動されるサブルーチンを示すフローチャート、第9図
および第1O図は各々キーオンおよびキーオフ処理を示
すフローチャート、第11図はタイマによって割り込み
がかけられたときに起動されるフローチャートである。 1・・・・・・CPU(音高制御手段)、2・・・・・
・鍵盤(発音指示手段)、4・・・・・・音源回路、M
SI−MS3・・・・・・モードスイッチ(モード切換
手段)。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.
FIG. 2 is a conceptual diagram showing the key code table in the same embodiment, FIG. 3 is a conceptual diagram showing the F number table in the same embodiment, FIG. 4 is a flowchart showing the main routine of the same embodiment, and FIGS. Figure 7 is a flowchart showing the subroutines activated when each mode switch is operated, Figure 8 is a flowchart showing the subroutines activated when the speed setting device is operated, and Figures 9 and 1O are Flowcharts showing key-on and key-off processing, respectively. FIG. 11 is a flowchart activated when an interrupt is generated by a timer. 1... CPU (pitch control means), 2...
・Keyboard (pronunciation instruction means), 4... Sound source circuit, M
SI-MS3...Mode switch (mode switching means).

Claims (2)

【特許請求の範囲】[Claims] (1)発音すべき音の音高を指示する音高指示データを
発生する発音指示手段と、供給される音高指示データに
対応する周波数で楽音信号を発生する音源と、前記発音
指示手段が発生した音高指示データを時間の経過に従っ
てその指示音高が上昇または下降するように書き換え、
この変化の前後にわたる一連の音高指示データを前記音
源に供給する音高制御手段とを具備することを特徴とす
る電子楽器。
(1) A sound generation instruction means that generates pitch instruction data that indicates the pitch of a sound to be produced; a sound source that generates a musical tone signal at a frequency corresponding to the supplied pitch instruction data; The generated pitch instruction data is rewritten so that the instruction pitch increases or decreases as time passes,
An electronic musical instrument comprising pitch control means for supplying a series of pitch instruction data before and after this change to the sound source.
(2)前記音高制御手段は、指示音高が上昇するように
音高指示データの書き換えを行う第1のモードと、指示
音高が下降するように音高指示データの書き換えを行う
第2のモードと、書き換えを行わずに前記発音指示手段
が発生した音高指示データをそのまま継続して前記音源
に供給する第3のモードとを有し、モード切換手段の指
示によって前記第1、第2、第3のいずれかのモードが
設定されることを特徴とする請求項1記載の電子楽器。
(2) The pitch control means operates in a first mode in which the pitch instruction data is rewritten so that the instruction pitch increases, and in a second mode in which the pitch instruction data is rewritten so that the instruction pitch decreases. and a third mode in which the pitch instruction data generated by the sound generation instruction means continues to be supplied to the sound source without being rewritten, and the pitch instruction data generated by the sound generation instruction means is continuously supplied to the sound source, and the pitch instruction data generated by the sound generation instruction means is continuously supplied to the sound source. 2. The electronic musical instrument according to claim 1, wherein one of the second and third modes is set.
JP64000959A 1989-01-06 1989-01-06 Electronic musical instrument Pending JPH02181792A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP64000959A JPH02181792A (en) 1989-01-06 1989-01-06 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP64000959A JPH02181792A (en) 1989-01-06 1989-01-06 Electronic musical instrument

Publications (1)

Publication Number Publication Date
JPH02181792A true JPH02181792A (en) 1990-07-16

Family

ID=11488194

Family Applications (1)

Application Number Title Priority Date Filing Date
JP64000959A Pending JPH02181792A (en) 1989-01-06 1989-01-06 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JPH02181792A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS49129519A (en) * 1973-04-11 1974-12-11
JPS61176991A (en) * 1985-01-31 1986-08-08 ヤマハ株式会社 Electronic musical instrument

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS49129519A (en) * 1973-04-11 1974-12-11
JPS61176991A (en) * 1985-01-31 1986-08-08 ヤマハ株式会社 Electronic musical instrument

Similar Documents

Publication Publication Date Title
US7091410B2 (en) Apparatus and computer program for providing arpeggio patterns
US4294155A (en) Electronic musical instrument
EP2884485A1 (en) Device and method for pronunciation allocation
US5585586A (en) Tempo setting apparatus and parameter setting apparatus for electronic musical instrument
JPH02181792A (en) Electronic musical instrument
JPH07111629B2 (en) Electronic musical instrument
JP2611467B2 (en) Electronic keyboard instrument
JP3018357B2 (en) Electronic musical instrument
JPH0580754A (en) Electronic musical instrument
US20250299653A1 (en) Information processing apparatus, electronic musical instrument, and method
JP2513003B2 (en) Electronic musical instrument
JP3087753B2 (en) Electronic musical instrument
JP3226268B2 (en) Concert magic automatic performance device
JP2658629B2 (en) Electronic musical instrument
JPH04166895A (en) Electronic musical instrument
JP3282675B2 (en) Electronic musical instrument
JPH04118696A (en) Electronic musical instrument
JP3006136B2 (en) Electronic musical instrument
JP3147363B2 (en) Music signal generator
JP3082294B2 (en) Accompaniment sound signal forming device
JP5449963B2 (en) Automatic melody performance device and program for automatic melody performance function
JPH07104753A (en) Electronic musical instrument automatic tuning device
JP2972364B2 (en) Musical information processing apparatus and musical information processing method
JP4218566B2 (en) Musical sound control device and program
JPH01319794A (en) Electronic musical instrument