JPH0876760A - Tempo speed controller of automatic playing device - Google Patents

Tempo speed controller of automatic playing device

Info

Publication number
JPH0876760A
JPH0876760A JP6230744A JP23074494A JPH0876760A JP H0876760 A JPH0876760 A JP H0876760A JP 6230744 A JP6230744 A JP 6230744A JP 23074494 A JP23074494 A JP 23074494A JP H0876760 A JPH0876760 A JP H0876760A
Authority
JP
Japan
Prior art keywords
tempo
speed
displacement
tempo speed
operator
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.)
Withdrawn
Application number
JP6230744A
Other languages
Japanese (ja)
Inventor
Tsutomu Saito
勉 齋藤
Kenichiro Hara
研一郎 原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kawai Musical Instrument Manufacturing Co Ltd
Original Assignee
Kawai Musical Instrument Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kawai Musical Instrument Manufacturing Co Ltd filed Critical Kawai Musical Instrument Manufacturing Co Ltd
Priority to JP6230744A priority Critical patent/JPH0876760A/en
Publication of JPH0876760A publication Critical patent/JPH0876760A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PURPOSE: To speedily set a musical performance to a target tempo speed irrelevantly to the current tempo speed by providing a varying means which varies the current tempo speed at a specific rate according to the displacement of a tempo operation element. CONSTITUTION: A CPU corresponds to the varying means and an operation continuation detecting means. When an up/down switch 133 which can be operated to both the plus and minus sides is operated, its plus or minus displacement is detected and the current tempo speed is varied at the specific rate according to the displacement. Then a center position as a nonoperation position is given and when a wheel 155 which can be operated in both the plus and minus directions is operated, its plus or minus displacement is detected, so that the current speed is varied at the specific rate according to the displacement quantity. Further, when the continuation of the operation is detected by operating the up/down switch 133 or wheel 155 for longer than a specific time, the current tempo speed is varied at the specific rate at specific intervals of time throughout the operation period.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、自動演奏装置における
録音又は再生時のテンポスピードを制御する自動演奏装
置のテンポスピード制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a tempo speed control device for an automatic performance device which controls the tempo speed during recording or reproduction in the automatic performance device.

【0002】[0002]

【従来の技術】従来、鍵盤や操作パネルの操作に応じて
発生された演奏情報をメモリに記憶(録音)し、また、
このメモリに記憶された演奏情報を読み出して再生する
自動演奏装置が知られている。かかる自動演奏装置で
は、通常、録音又は再生時のテンポスピードをマニュア
ル操作で変更できるようになっている。このようなテン
ポスピードの変更機能は、自動演奏装置に備えられたテ
ンポスピード制御装置によって行われている。テンポス
ピード制御装置は、例えばテンポスピードを規定するデ
ータ(以下、「テンポスピード値」という。)を記憶す
るテンポレジスタと、例えばアップダウンスイッチ又は
インクリメンタ等といったテンポスピードを変更するた
めのテンポ操作子とこのテンポ操作子の操作に応じてテ
ンポレジスタの内容を変更することによりテンポスピー
ドを変えるテンポスピード制御部とで構成されている。
2. Description of the Related Art Conventionally, performance information generated according to the operation of a keyboard or an operation panel is stored (recorded) in a memory, and
There is known an automatic performance device which reads out and reproduces the performance information stored in this memory. In such an automatic performance device, normally, the tempo speed at the time of recording or reproducing can be changed by manual operation. Such a tempo speed changing function is performed by the tempo speed control device provided in the automatic performance device. The tempo speed control device includes, for example, a tempo register that stores data that defines the tempo speed (hereinafter referred to as “tempo speed value”), and a tempo operator that changes the tempo speed, such as an up / down switch or an incrementer. And a tempo speed control unit that changes the tempo speed by changing the contents of the tempo register according to the operation of the tempo operator.

【0003】かかる従来のテンポスピード制御装置にお
いては、テンポ操作子が操作された回数、例えばアップ
ダウンスイッチが押された回数に応じて、現在のテンポ
スピード(以下、「現テンポスピード」という。)を規
定する現テンポスピード値が増減されて新しいテンポス
ピード(以下、「新テンポスピード」という。)が設定
される。今、テンポ操作子がN回操作されたとすると、
新テンポスピードを規定する新テンポスピード値は次式
で示される。 新テンポスピード値=現テンポスピード値±N・・・(1)
In such a conventional tempo speed control device, the current tempo speed (hereinafter referred to as "current tempo speed") is determined according to the number of times the tempo operator is operated, for example, the number of times the up / down switch is pressed. A new tempo speed (hereinafter referred to as "new tempo speed") is set by increasing or decreasing the current tempo speed value that defines Now, if the tempo operator is operated N times,
The new tempo speed value that defines the new tempo speed is expressed by the following equation. New tempo speed value = current tempo speed value ± N (1)

【0004】このような従来のテンポスピード制御装置
においては、テンポスピードを、例えばテンポ80から
テンポ60まで下げるためには、テンポ操作子を20回
操作すれば良い。しかし、例えばテンポ160からテン
ポ120まで下げるためには、テンポ操作子を40回も
操作する必要がある。即ち、現テンポスピードを3/4
まで下げたい場合に、現テンポスピード如何によって2
倍の操作量の違いが生じてしまうという問題があった。
In such a conventional tempo speed control device, in order to reduce the tempo speed from, for example, tempo 80 to tempo 60, the tempo operator may be operated 20 times. However, in order to lower the tempo from 160 to 120, it is necessary to operate the tempo operator 40 times. That is, the current tempo speed is 3/4
If you want to lower it to 2 depending on the current tempo speed
There was a problem that the difference in the amount of operation doubled.

【0005】また、テンポスピード変更の迅速化を図る
ために、1回のテンポ操作子の操作で変更される量を2
倍又は3倍以上にしたもの、即ち、上記(1)式の
「N」の代わりに「2N」を用いたもの、或いは「3
N」以上を用いたものも開発されている。しかしなが
ら、演奏者が所定の割合でテンポスピードを増減させよ
うとした場合に、現テンポスピード如何によってテンポ
操作子の操作量が大きく異なってしまうという問題は残
ったままであった。
Further, in order to speed up the tempo speed change, the amount of change by one operation of the tempo operator is set to 2
Double or triple or more, that is, the one using "2N" instead of "N" in the above formula (1), or "3".
Those using "N" or more have also been developed. However, when the performer tries to increase or decrease the tempo speed at a predetermined rate, there remains a problem that the operation amount of the tempo operator greatly differs depending on the current tempo speed.

【0006】一方、テンポ操作子が操作された状態が一
定時間(例えば、0.5秒)継続されると、以後はテン
ポ操作子が操作され続けている限り、テンポスピードが
所定時間間隔で自動的にインクリメント又はデクリメン
トされる機能(以下、「オートインクリメント機能」と
いう。)を有するテンポスピード制御装置も開発されて
いる。このオートインクリメント機能は、基本的には、
所定時間間隔毎に現テンポスピード値に一定値を加算又
は減算するものである。更に、このオートインクリメン
ト機能を変形したものとして、例えば、テンポ操作子を
操作し続けた時間に応じて徐々にインクリメント又はデ
クリメントする時間間隔を短くすることによりテンポス
ピード変更の迅速化を図ったテンポスピード制御装置も
開発されている。
On the other hand, if the tempo operator is continuously operated for a certain period of time (for example, 0.5 seconds), the tempo speed is automatically set at a predetermined time interval as long as the tempo operator is continuously operated. A tempo speed control device having a function of incrementally incrementing or decrementing (hereinafter referred to as "auto increment function") has also been developed. This auto increment function is basically
A constant value is added to or subtracted from the current tempo speed value at predetermined time intervals. Furthermore, as a modification of this auto-increment function, for example, the tempo speed can be changed rapidly by shortening the time interval for gradually incrementing or decrementing according to the time the tempo operator has been operating. Control devices have also been developed.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上述し
た従来のテンポスピード制御装置は、何れも現テンポス
ピードとは無関係なパラメータによってテンポスピード
を制御することにより、テンポスピード変更の簡単化・
迅速化を図ろうとするものである。
However, in the above-mentioned conventional tempo speed control devices, the tempo speed is controlled by a parameter that is irrelevant to the current tempo speed.
It is intended to speed up.

【0008】演奏者は、テンポスピードを変更するにあ
たり、例えば現テンポスピードを半分、又は3/4に落
としたい、或いは2倍又は4/3に上げたい等といった
具合に、所定割合でテンポスピードを変更したいという
要求を持っている。しかし、従来のテンポスピード制御
装置では、現テンポスピードとは無関係にテンポスピー
ドの変更処理が行われるので、同じ割合でテンポスピー
ドを増減させたい場合に現テンポスピード如何によって
操作子の操作回数が大きく異なってしまい、非常に使い
勝手に劣るという問題があった。
When changing the tempo speed, the performer wants to reduce the current tempo speed by half or 3/4, or by increasing it to double or 4/3, etc. I have a request to change. However, in the conventional tempo speed control device, the tempo speed change processing is performed regardless of the current tempo speed, so if you want to increase or decrease the tempo speed at the same rate, the number of operations of the operator will increase depending on the current tempo speed. There was a problem that it was different and very inconvenient.

【0009】本発明は、かかる事情に鑑みてなされたも
のであり、その目的は、現テンポスピードの如何に拘わ
らず目標のテンポスピードに素早く設定することのでき
る操作性に優れた自動演奏装置のテンポスピード制御装
置を提供することにある。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an automatic performance device having excellent operability capable of quickly setting a target tempo speed regardless of the current tempo speed. To provide a tempo speed control device.

【0010】[0010]

【課題を解決するための手段】上記第1の目的を達成す
るために、請求項1に記載の発明は、演奏情報を所定の
テンポスピードで記録し又は再生する自動演奏装置にお
いて、テンポスピードの変更を指示するテンポ操作子
と、該テンポ操作子が操作された場合の変位を検出する
変位検出手段と、該変位検出手段で検出された前記テン
ポ操作子の変位に応じて現在のテンポスピードを所定の
割合で変更する変更手段、とを有することを特徴とす
る。
In order to achieve the first object, the invention according to claim 1 is an automatic performance device for recording or reproducing performance information at a predetermined tempo speed. A tempo manipulator for instructing a change, a displacement detecting means for detecting a displacement when the tempo manipulator is operated, and a current tempo speed according to the displacement of the tempo manipulator detected by the displacement detecting means. Changing means for changing at a predetermined ratio.

【0011】また、同様の目的で、請求項2に記載の発
明は、前記テンポ操作子は正側と負側との双方向に操作
可能であり、前記変位検出手段は、該テンポ操作子の正
の変位又は負の変位を検出することを特徴とする。
For the same purpose, in the invention according to claim 2, the tempo operator can be operated bidirectionally between a positive side and a negative side, and the displacement detecting means is provided for the tempo operator. It is characterized by detecting a positive displacement or a negative displacement.

【0012】また、同様の目的で、請求項3に記載の発
明は、前記変更手段は、前記変位検出手段で検出された
前記テンポ操作子の変位に応じて現在のテンポスピード
値を所定の指数関数に従って変更することを特徴とす
る。
Further, for the same purpose, in the invention according to claim 3, the changing means sets the current tempo speed value to a predetermined index according to the displacement of the tempo operator detected by the displacement detecting means. It is characterized by changing according to a function.

【0013】また、同様の目的で、請求項4に記載の発
明は、前記テンポ操作子は特定の非操作位置を有し、該
非操作位置に対して正側及び負側の双方向に多段階の変
位量を出力し、前記変更手段は、前記変位検出手段で検
出された該テンポ操作子の変位量に応じて現在のテンポ
スピードを変更することを特徴とする。
Further, for the same purpose, in the invention according to claim 4, the tempo operator has a specific non-operating position, and multi-steps are performed in both positive and negative sides with respect to the non-operating position. Is output, and the changing unit changes the current tempo speed according to the amount of displacement of the tempo operator detected by the displacement detecting unit.

【0014】また、同様の目的で、請求項5に記載の発
明は、前記テンポ操作子が所定時間以上操作されている
場合に操作続行中であることを検出する操作続行検出手
段と、一定時間間隔でテンポ変更タイミングを発生する
タイミング発生手段、とを更に有し、前記変更手段は、
前記操作続行手段により操作続行中であることが検出さ
れている間は、前記タイミング発生手段で発生された各
テンポ変更タイミングにおいて、前記変位検出手段で検
出された前記テンポ操作子の変位に応じて現在のテンポ
スピードを所定の割合で変更することを特徴とする。
Further, for the same purpose, the invention according to claim 5 is an operation continuation detecting means for detecting that the operation is being continued when the tempo operator has been operated for a predetermined time or more, and a predetermined time. Timing changing means for generating tempo change timing at intervals, and the changing means,
While the operation continuation unit detects that the operation is being continued, at each tempo change timing generated by the timing generation unit, depending on the displacement of the tempo operator detected by the displacement detection unit. It is characterized by changing the current tempo speed at a predetermined rate.

【0015】また、同様の目的で、請求項6に記載の発
明は、演奏情報を所定のテンポスピードで記録し又は再
生する自動演奏装置において、テンポスピードの変更を
指示するテンポ操作子と、該テンポ操作子が操作された
場合の変位を検出する変位検出手段と、前記テンポ操作
子が所定時間以上操作されている場合に操作続行中であ
ることを検出する操作続行検出手段と、該操作続行検出
手段により操作続行中であることが検出されている間
は、テンポスピードに応じた時間間隔でテンポ変更タイ
ミングを発生するタイミング発生手段と、該タイミング
発生手段で発生された各テンポ変更タイミングにおい
て、前記変位検出手段で検出されたテンポ操作子の変位
に応じて現在のテンポスピードを所定の割合で変更する
変更手段、とを有することを特徴とする。
For the same purpose, the invention according to claim 6 is an automatic performance device for recording or reproducing performance information at a predetermined tempo speed, and a tempo operator for instructing a change of tempo speed, Displacement detecting means for detecting displacement when the tempo operator is operated, operation continuation detecting means for detecting that the tempo operator is continuing operation when the tempo operator has been operated for a predetermined time or more, and continuation of the operation While the detection means detects that the operation is being continued, the timing generation means for generating the tempo change timing at a time interval corresponding to the tempo speed, and the tempo change timing generated by the timing generation means, Changing means for changing the current tempo speed at a predetermined rate according to the displacement of the tempo operator detected by the displacement detecting means, And wherein the door.

【0016】また、同様の目的で、請求項7に記載の発
明は、前記タイミング発生手段を、テンポスピードに比
例して発生間隔が短く又は長くなるテンポ変更タイミン
グを発生するように構成したことを特徴とする。
For the same purpose, the invention according to claim 7 is configured such that the timing generating means is configured to generate a tempo change timing whose generation interval is shortened or lengthened in proportion to the tempo speed. Characterize.

【0017】更に、同様の目的で、請求項8に記載の発
明は、前記テンポ操作子は特定の非操作位置を有し、該
非操作位置に対して正側及び負側の双方向に多段階の変
位量を出力し、前記変更手段は、各テンポ変更タイミン
グにおいて、前記変位検出手段で検出されたテンポ操作
子の変位量に応じて現在のテンポスピードを変更するよ
うに構成したことを特徴とする。
Further, for the same purpose, in the invention according to claim 8, the tempo operator has a specific non-operating position, and there are multiple stages in both positive and negative sides with respect to the non-operating position. And the changing means is configured to change the current tempo speed according to the displacement amount of the tempo operator detected by the displacement detecting means at each tempo change timing. To do.

【0018】[0018]

【作用】請求項1に記載の発明においては、演奏情報を
所定のテンポスピードで記録し又は再生する自動演奏装
置において、テンポ操作子が操作されるとその変位が変
位検出手段で検出される。変更手段は、この変位検出手
段で検出された変位に応じて現在のテンポスピードを所
定の割合で変更する。
According to the first aspect of the invention, in the automatic performance device for recording or reproducing the performance information at a predetermined tempo speed, when the tempo operator is operated, its displacement is detected by the displacement detecting means. The changing means changes the current tempo speed at a predetermined rate according to the displacement detected by the displacement detecting means.

【0019】上記変更手段は、例えば下式に示す演算を
行うことにより新テンポスピード値を算出する。 新テンポスピード値=現テンポスピード値×(1.00±M)・・・(2) ここで、Mは予め定められる定数であり、例えば0≦M
≦1.00の値を用いることができる。
The changing means calculates the new tempo speed value, for example, by performing the calculation shown in the following equation. New tempo speed value = current tempo speed value × (1.00 ± M) (2) Here, M is a predetermined constant, for example, 0 ≦ M
Values of ≦ 1.00 can be used.

【0020】請求項2に記載の発明においては、テンポ
操作子として正側と負側との双方向に操作可能な操作子
が採用されている。テンポ操作子が操作されると正又は
負の変位が変位検出手段で検出される。変更手段は、こ
の検出された正又は負の変位に応じて現在のテンポスピ
ードを所定の割合で増加し又は減少する。
According to the second aspect of the invention, as the tempo operator, an operator that can be operated bidirectionally between the positive side and the negative side is adopted. When the tempo operator is operated, a positive or negative displacement is detected by the displacement detecting means. The changing means increases or decreases the current tempo speed at a predetermined rate according to the detected positive or negative displacement.

【0021】より具体的には、正の変位が検出された場
合は、上記(2)式の「±M」として「+M」が用いら
れ、負の変位が検出された場合は、上記(2)式のMと
して「−M」が用いられる。これにより、テンポ操作子
の操作に応じて、現テンポスピードを所定の割合で増加
又は減少の双方向に変化させることができるものとなっ
ている。
More specifically, when a positive displacement is detected, "+ M" is used as "± M" in the above formula (2), and when a negative displacement is detected, the above (2 "-M" is used as M in the equation). As a result, the current tempo speed can be bidirectionally increased or decreased at a predetermined rate according to the operation of the tempo operator.

【0022】請求項3に記載の発明においては、変更手
段は、変位検出手段でテンポ操作子の変位が検出される
度に現テンポスピード値を、上記(2)式で示されるよ
うな関数に従って変更する処理を繰り返す。これによ
り、テンポスピードは指数関数的に増減される。かかる
指数関数的なテンポスピードの変化は人の感覚に沿った
ものであり、テンポ変化に不自然さがなくなり操作性に
優れたものとなっている。
According to the third aspect of the invention, the changing means sets the current tempo speed value according to the function as shown in the equation (2) each time the displacement detecting means detects the displacement of the tempo operator. Repeat the process of changing. This causes the tempo speed to increase or decrease exponentially. Such an exponential change in tempo speed is in accordance with the human sense, and the tempo change is not unnatural, resulting in excellent operability.

【0023】なお、上記(2)式の演算により生じた小
数点以下の端数は、切上げ、切り捨て又は四捨五入等し
て新テンポスピード値を求めることができる。また、上
記(2)式の演算により生じた小数点以下の端数を、切
上げ、切り捨て又は四捨五入して得られる整数部分のみ
をテンポスピード値として採用し、小数点以下を含む演
算結果は次の演算のために残しておくように構成するこ
ともできる。
The fractional part after the decimal point generated by the calculation of the above equation (2) can be rounded up, rounded down or rounded down to obtain the new tempo speed value. Also, only the integer part obtained by rounding up, rounding down or rounding down the fractional part after the decimal point generated by the calculation of the above formula (2) is adopted as the tempo speed value, and the calculation result including the decimal point is for the next calculation. It can also be configured to remain.

【0024】上記(2)式におけるMの値としては、例
えば「0.02」程度の値が好ましい。M=0.02と
した場合、テンポスピードは、テンポ操作子が押下され
る度に以下のように変化する。なお、この例はテンポス
ピードの可変範囲の一部につき、上記(2)式に基づき
小数点以下を四捨五入して求めたものである。 No. テンポ No. テンポ No. テンポ No. テンポ No. テンポ No. テンポ 1:180 21:148 31:120 41:100 51:80 61:67 2:176 22:145 32:118 42: 98 52:78 62:66 3:172 23:142 33:116 43: 96 53:76 63:65 4:169 24:139 34:114 44: 94 54:74 64:64 5:166 25:136 35:112 45: 92 55:73 65:63 6:163 26:133 36:110 46: 90 56:72 66:62 7:160 27:130 37:108 47: 88 57:71 67:61 8:157 28:127 38:106 48: 86 58:70 68:60 9:154 29:124 39:104 49: 84 59:69 69:59 10:151 30:122 40:102 50: 82 60:68 70:58
The value of M in the above equation (2) is preferably about 0.02, for example. When M = 0.02, the tempo speed changes as follows each time the tempo operator is pressed. In this example, a part of the variable range of the tempo speed is obtained by rounding off the decimal point based on the equation (2). No. tempo No. tempo No. tempo No. tempo No. tempo No. tempo 1: 180 21: 148 31: 120 41: 100 51:80 61:67 2: 176 22: 145 32: 118 42: 98 52: 78 62:66 3: 172 23: 142 33: 116 43: 96 53:76 63:65 4: 169 24: 139 34: 114 44: 94 54:74 64:64 5: 166 25: 136 35: 112 45 : 92 55:73 65:63 6: 163 26: 133 36: 110 46:90 56:72 66:62 7: 160 27: 130 37: 108 47: 88 57:71 67:61 8: 1157 28: 127 38: 106 48:86 58:70 68:60 9: 154 29: 124 39: 104 49:84 59:69 69:59 10: 151 30: 122 40: 102 50:82 60:68 70:58

【0025】このように、現テンポスピードに所定の係
数「(1.00±M)」を乗じることにより新テンポス
ピードを算出されるので、現テンポスピードが大きけれ
ばテンポ操作子の1回の操作で変更されるテンポスピー
ドの割合は大きくなり、逆に、現テンポスピードが小さ
ければその割合は小さくなる。従って、現テンポスピー
ドがテンポ操作子を操作すべき回数に与える影響は小さ
くなり、目標テンポスピードに素早く近づけることがで
きる。
In this way, the new tempo speed is calculated by multiplying the current tempo speed by the predetermined coefficient "(1.00 ± M)". Therefore, if the current tempo speed is high, one operation of the tempo operator is performed. The proportion of the tempo speed changed with is large, and conversely, the proportion is small if the current tempo speed is small. Therefore, the influence of the current tempo speed on the number of times the tempo operator should be operated is reduced, and the target tempo speed can be quickly approached.

【0026】従来の技術の欄で示した例と比較すれば、
テンポ160をテンポ120に落とす(3/4にする)
場合は、パネル操作子の操作回数は24回となり、テン
ポ80をテンポ60に落とす(3/4にする)場合は、
パネル操作子の操作回数は17回となる。このように、
従来のテンポスピード制御装置では、パネル操作子の操
作回数に20回もの差があったが、本発明によれば、7
回の差で済む。
Compared with the example shown in the section of the prior art,
Drop tempo 160 to tempo 120 (set to 3/4)
In this case, the number of times the panel operator is operated is 24 times, and when the tempo 80 is reduced to tempo 60 (set to 3/4),
The number of operations of the panel operator is 17 times. in this way,
In the conventional tempo speed control device, there is a difference of 20 times in the number of operations of the panel operator, but according to the present invention,
You only need to make a difference.

【0027】なお、新テンポスピード値は、上記(2)
式等を用いた関数演算によらずに、予め記憶手段に現テ
ンポスピード値と新テンポスピード値とを対応させたテ
ーブルを格納しておき、このテーブルを参照して求める
ように構成することもできる。この構成によれば、関数
に表せないような複雑なテンポスピードの変化を実現す
ることができる。要は、現テンポスピードを加味して新
テンポスピード値を求めることができるような構成であ
れば良い。
The new tempo speed value is (2) above.
It is also possible to store a table in which the current tempo speed value and the new tempo speed value are associated with each other in advance in the storage means instead of performing a function operation using an expression or the like, and refer to this table to obtain the table. it can. With this configuration, it is possible to realize a complicated change in tempo speed that cannot be represented by a function. The point is that the configuration is such that the new tempo speed value can be obtained in consideration of the current tempo speed.

【0028】また、請求項4に記載の発明においては、
テンポ操作子として特定の非操作位置を有し、該非操作
位置に対して正側及び負側の双方向に多段階の変位量を
出力し得るもの、例えばモジュレーションホイール等に
用いられる操作子を採用している。そして、このテンポ
操作子から出力される変位量に応じた値が上記(2)式
におけるMの値として用られている。この際、テンポ操
作子は、非操作位置に対して正側に操作された場合は正
の変位量(「+M」)、負側に操作された場合は負の変
位量(「−M」)を出力する。変更手段は、変位検出手
段で検出されたテンポ操作子の変位量に応じて、例えば
上記(2)式に従って現在のテンポスピードを変更す
る。
Further, in the invention described in claim 4,
A tempo operator having a specific non-operation position and capable of outputting multi-stage displacement amounts in both positive and negative sides with respect to the non-operation position, for example, an operation element used for a modulation wheel or the like is adopted. are doing. Then, a value corresponding to the displacement amount output from the tempo operator is used as the value of M in the above equation (2). At this time, the tempo operator is a positive displacement amount (“+ M”) when operated to the positive side with respect to the non-operating position, and a negative displacement amount (“−M”) when operated to the negative side. Is output. The changing unit changes the current tempo speed in accordance with the displacement amount of the tempo operator detected by the displacement detecting unit, for example, according to the above equation (2).

【0029】かかる構成により、テンポ操作子の1回の
操作で現テンポスピードを大きく変化させることができ
る。例えば、テンポ操作子の操作により変位量として
「+0.10」なる値が出力されれば、テンポスピード
を10%上げることができる。同様に、変位量として
「−0.50」なる値が出力されたとすれば、テンポ操
作子の1回の操作でテンポスピードを半分にすることも
可能である。このように、本発明によれば、テンポ操作
子の操作量に応じて現テンポスピードを大きく変化させ
ることができ、迅速に目標テンポスピードに到達でき
る。
With this configuration, the current tempo speed can be greatly changed by one operation of the tempo operator. For example, if a value of “+0.10” is output as the displacement amount by operating the tempo operator, the tempo speed can be increased by 10%. Similarly, if a value of "-0.50" is output as the displacement amount, it is possible to halve the tempo speed with one operation of the tempo operator. As described above, according to the present invention, the current tempo speed can be greatly changed according to the operation amount of the tempo operator, and the target tempo speed can be reached quickly.

【0030】また、請求項5に記載の発明においては、
オートインクリメント機能が実現されている。即ち、テ
ンポ操作子が所定時間以上操作されることにより操作続
行中であることが検出されると、その操作続行中である
ことが検出されている間は、一定時間間隔で発生される
各テンポ変更タイミングにおいて、変位検出手段で検出
されたテンポ操作子の変位に応じて現在のテンポスピー
ドが所定の割合で変更される。
Further, in the invention described in claim 5,
The auto increment function is realized. That is, when it is detected that the tempo operator has been operated for a predetermined time or more and the operation is being continued, each tempo generated at a constant time interval is detected while the operation is being continued. At the change timing, the current tempo speed is changed at a predetermined rate according to the displacement of the tempo operator detected by the displacement detecting means.

【0031】このように、テンポ操作子を操作し続ける
ことにより自動的にテンポスピードを増加又は減少させ
ることができるので、テンポ設定操作が簡単且つ迅速に
なるという利点がある。しかも、現テンポスピードが大
きければ一定時間毎に更新されるテンポスピードの割合
は大きくなり、逆に、現テンポスピードが小さければそ
の割合は小さくなる。従って、現テンポスピードが、テ
ンポ操作子を操作し続けている時間に与える影響は小さ
くなり、人の感覚に沿ったテンポスピードの変化で目標
テンポスピードに素早く近づけることができる。
As described above, the tempo speed can be automatically increased or decreased by continuously operating the tempo operator, so that there is an advantage that the tempo setting operation becomes simple and quick. Moreover, if the current tempo speed is high, the proportion of tempo speeds updated at regular time intervals is large, and conversely, if the current tempo speed is small, the proportion is small. Therefore, the influence of the current tempo speed on the time during which the tempo operator continues to operate is reduced, and the tempo speed can be brought close to the target tempo speed by changing the tempo speed according to the human sense.

【0032】更に具体的に説明する。テンポ操作子とし
て、例えばホイールのような非操作位置に対して正側に
操作された場合は正の変位量(「+M」)、負側に操作
された場合は負の変位量(「−M」)を出力するものを
用いた場合について説明する。このテンポ操作子には、
その回転位置に対応して、例えば図2(B)に示される
ようなレートRが割り当てられている。そして、テンポ
操作子が操作されることにより選択されたレートRは、
上記(2)式のMの値として用いられる。このテンポ操
作子で所定のレートRが選択されてその状態が所定時間
(例えば0.5秒)が経過すると、以後は一定時間間
隔、例えば0.1秒毎に上記(2)式の演算が繰り返さ
れる。
A more specific description will be given. As a tempo operator, for example, a positive displacement amount (“+ M”) when operated to a positive side with respect to a non-operating position such as a wheel, and a negative displacement amount (“−M” when operated to a negative side). ]) Will be described. This tempo operator has
A rate R as shown in FIG. 2B, for example, is assigned corresponding to the rotational position. Then, the rate R selected by operating the tempo operator is
It is used as the value of M in the above equation (2). When a predetermined rate R is selected by this tempo operator and the state is kept for a predetermined time (for example, 0.5 seconds), the calculation of the above formula (2) is performed at regular time intervals, for example, every 0.1 second. Repeated.

【0033】例えば、テンポ操作子によりレートRとし
て「0.10」が選択された場合は、テンポスピードが
2倍になるまでにn秒かかるとすると、下式が成り立
つ。 (1.01)n=2・・・(3) よって、 n=log2/log1.01 =0.3010/(0.4321×10-2)=69.6 即ち、6.96秒後にテンポスピードは2倍になる。
For example, if "0.10" is selected as the rate R by the tempo operator, and if it takes n seconds to double the tempo speed, the following equation is established. (1.01) n = 2 (3) Therefore, n = log2 / log1.01 = 0.3010 / (0.4321 × 10 -2 ) = 69.6 That is, tempo speed after 6.96 seconds. Doubles.

【0034】同様に、テンポ操作子によりレートRとし
て「0.30」が選択された場合は、テンポスピードが
2倍になるまでにn秒かかるとすると、下式が成り立
つ。 (1.01)n=2・・・(4) よって、 n=log2/log1.03 =0.3010/(0.1283×10-1)=23.4 即ち、2.34秒後にテンポスピードは2倍になる。
Similarly, when "0.30" is selected as the rate R by the tempo operator, assuming that it takes n seconds to double the tempo speed, the following formula is established. (1.01) n = 2 (4) Therefore, n = log2 / log1.03 = 0.3010 / (0.1283 × 10 -1 ) = 23.4, that is, the tempo speed after 2.34 seconds. Doubles.

【0035】このように、テンポ操作子の操作量に応じ
て任意の時間をかけてテンポスピードを変更することが
できる。例えば、1小節でテンポスピードを半分にした
り、4小節ぐらいかけてテンポスピードを2倍にすると
いうような操作が可能である。なお、上記請求項1〜請
求項5に記載の発明においては、テンポスピードの更新
は±1刻みに行われない場合があり、かかる場合は所望
のテンポスピードに一致させることができない事態が発
生する。このようなケースに対応するために、テンポス
ピードを±1刻みで変更するテンポ操作子を別途設ける
か、又は特定のモードに設定した場合に上記テンポ操作
子が±1刻みで動作するように制御する構成を付加すれ
ば、より操作性に優れたテンポスピード制御装置を提供
することができる。
As described above, the tempo speed can be changed over an arbitrary time period according to the operation amount of the tempo operator. For example, operations such as halving the tempo speed in one measure or doubling the tempo speed in about four measures are possible. In the inventions described in claims 1 to 5, the tempo speed may not be updated in increments of ± 1, and in such a case, it may not be possible to match the desired tempo speed. . To cope with such a case, a tempo operator for changing the tempo speed in increments of ± 1 is provided separately, or the tempo operator is controlled to operate in increments of ± 1 when set to a specific mode. By adding the configuration described above, it is possible to provide a tempo speed control device having more excellent operability.

【0036】また、請求項6に記載の発明においては、
演奏情報を所定のテンポスピードで記録し又は再生する
自動演奏装置において、テンポ操作子が操作された場合
の変位を変位検出手段で検出し、テンポ操作子が所定時
間以上継続して操作されている間にテンポスピードに応
じた時間間隔で発生される各テンポ変更タイミングにお
いて、上記変位検出手段で検出されたテンポ操作子の変
位に応じて現在のテンポスピードが変更される。
According to the invention of claim 6,
In an automatic performance device that records or reproduces performance information at a predetermined tempo speed, the displacement detection means detects the displacement when the tempo operator is operated, and the tempo operator is continuously operated for a predetermined time or longer. At each tempo change timing generated at a time interval corresponding to the tempo speed, the current tempo speed is changed according to the displacement of the tempo operator detected by the displacement detecting means.

【0037】例えば、テンポ操作子が所定時間(例えば
0.5秒)以上押下され続けると、テンポ変更タイミン
グがその時点で設定されているテンポスピードに応じた
時間間隔で発生される。そして、各テンポ変更タイミン
グにおいては、上記変位検出手段で検出されたテンポ操
作子の変位に応じて現テンポスピードが自動的に変更さ
れる。この変更は、例えば上述した(1)式の演算によ
り実現することができる。この場合、テンポ操作子とし
て正側と負側との双方向に変位可能な操作子を用いれ
ば、±Mの値を得ることができ、現テンポスピードを増
加又は減少させることができる。
For example, if the tempo operator is kept pressed for a predetermined time (for example, 0.5 seconds), the tempo change timing is generated at a time interval corresponding to the tempo speed set at that time. Then, at each tempo change timing, the current tempo speed is automatically changed according to the displacement of the tempo operator detected by the displacement detecting means. This change can be realized, for example, by the calculation of the above-mentioned formula (1). In this case, if a manipulator that can be displaced in both the positive and negative directions is used as the tempo manipulator, a value of ± M can be obtained, and the current tempo speed can be increased or decreased.

【0038】このように、テンポ操作子を操作し続ける
ことにより自動的にテンポスピードを増加又は減少させ
ることができるので、テンポ設定操作が簡単になるとい
う利点がある。しかも、テンポスピードを変更するタイ
ミングはその時点で設定されているテンポスピードに応
じて決定されるので、現テンポスピードが大きければテ
ンポ変更タイミングの発生間隔が密になり、逆に、現テ
ンポスピードが小さければテンポ変更タイミングの発生
間隔が粗になる。従って、現テンポスピードが、テンポ
変更に要する時間に与える影響は小さくなる。
As described above, the tempo speed can be automatically increased or decreased by continuously operating the tempo operator, which has the advantage of simplifying the tempo setting operation. Moreover, the timing for changing the tempo speed is determined according to the tempo speed set at that time, so if the current tempo speed is large, the tempo change timing will occur at close intervals, and conversely, the current tempo speed will change. If it is small, the tempo change timing generation interval becomes coarse. Therefore, the influence of the current tempo speed on the time required for changing the tempo is small.

【0039】また、請求項7に記載の発明においては、
テンポスピードに比例してテンポ変更タイミングの発生
間隔が短く又は長くなるように制御される。これによ
り、現テンポスピードの如何に拘わらず略一定時間で目
標テンポスピードに近づけることができる。
Further, in the invention described in claim 7,
The tempo change timing is controlled to be short or long in proportion to the tempo speed. This makes it possible to approach the target tempo speed in a substantially constant time regardless of the current tempo speed.

【0040】更に、請求項8に記載の発明においては、
テンポ操作子として特定の非操作位置を有し、該非操作
位置に対して正側及び負側の双方向に多段階の変位量を
出力し得るもの、例えばモジュレーションホイール等に
用いられる操作子を採用している。そして、このテンポ
操作子から出力される変位量に応じた値が上記(1)式
におけるMの値として用られている。この際、テンポ操
作子は、非操作位置に対して正側に操作された場合は正
の変位量(「+M」)、負側に操作された場合は負の変
位量(「−M」)を出力する。変更手段は、変位検出手
段で検出されたテンポ操作子の変位量に応じて、例えば
上記(1)式に従って現在のテンポスピードを変更す
る。
Further, in the invention described in claim 8,
A tempo operator having a specific non-operation position and capable of outputting multi-stage displacement amounts in both positive and negative sides with respect to the non-operation position, for example, an operation element used for a modulation wheel or the like is adopted. are doing. Then, a value corresponding to the amount of displacement output from the tempo operator is used as the value of M in the above equation (1). At this time, the tempo operator is a positive displacement amount (“+ M”) when operated to the positive side with respect to the non-operating position, and a negative displacement amount (“−M”) when operated to the negative side. Is output. The changing means changes the current tempo speed in accordance with the displacement amount of the tempo operator detected by the displacement detecting means, for example, according to the above equation (1).

【0041】かかる構成により、上記(1)式による1
回の演算で変更されるテンポスピード量を任意に設定す
ることができ、目標テンポスピードに到達する時間を任
意に調整することができる。
With this configuration, 1 according to the above equation (1)
The amount of tempo speed changed by one calculation can be arbitrarily set, and the time to reach the target tempo speed can be arbitrarily adjusted.

【0042】[0042]

【実施例】以下、本発明の自動演奏装置のテンポスピー
ド制御装置の実施例につき、図面を参照しながら詳細に
説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of a tempo speed control device for an automatic performance device of the present invention will be described in detail below with reference to the drawings.

【0043】(実施例1)図1は、本発明の実施例1の
テンポスピード制御装置が適用された自動演奏装置の構
成を示すブロック図である。本テンポスピード制御装置
が適用された自動演奏装置は、中央処理装置(以下、
「CPU」という。)10、リードオンリメモリ(以
下、「ROM」という。)11、ランダムアクセスメモ
リ(以下、「RAM」という。)12、操作パネル1
3、楽音発生器14、タイマA16、タイマB20、M
IDIコントローラ17及びFDコントローラ18を有
し、これら各要素間はシステムバス30で相互に接続さ
れている。システムバス30は、例えばアドレス線、デ
ータ線及び制御信号線等で成り、上記各要素間で各種デ
ータを送受するために使用される。
(Embodiment 1) FIG. 1 is a block diagram showing the structure of an automatic performance device to which the tempo speed control device of embodiment 1 of the present invention is applied. The automatic performance device to which this tempo speed control device is applied is a central processing unit (hereinafter,
It is called "CPU". ) 10, read only memory (hereinafter referred to as "ROM") 11, random access memory (hereinafter referred to as "RAM") 12, operation panel 1
3, tone generator 14, timer A16, timer B20, M
It has an IDI controller 17 and an FD controller 18, and these elements are mutually connected by a system bus 30. The system bus 30 is composed of, for example, an address line, a data line, a control signal line, etc., and is used for transmitting and receiving various data between the above-mentioned respective elements.

【0044】CPU10は、変更手段、操作続行検出手
段に対応する。このCPU10は、ROM11に格納さ
れている制御プログラムに従って、本テンポスピード制
御装置が適用された電子楽器の全体を制御する。このC
PU10には、3つの割込信号入力端子INT1、IN
T2及びINT3が設けられている。割込信号入力端子
INT1にはMIDIコントローラ17から、割込信号
入力端子INT2にはタイマA16から、割込信号入力
端子INT3にはタイマB20からそれぞれ割込信号が
供給される。このCPU10の動作の詳細については後
述する。
The CPU 10 corresponds to changing means and operation continuation detecting means. The CPU 10 controls the entire electronic musical instrument to which the present tempo speed control device is applied according to a control program stored in the ROM 11. This C
The PU10 has three interrupt signal input terminals INT1 and IN.
T2 and INT3 are provided. An interrupt signal is supplied from the MIDI controller 17 to the interrupt signal input terminal INT1, from the timer A16 to the interrupt signal input terminal INT2, and from the timer B20 to the interrupt signal input terminal INT3. Details of the operation of the CPU 10 will be described later.

【0045】ROM11には、上述したCPU10を動
作させるための制御プログラム、CPU10が各種処理
に用いる種々の固定データ等が記憶されている。また、
このROM11には、例えば図15に示した変換テーブ
ルが格納されている(変換テーブルの詳細は後述す
る。)このROM11の内容はCPU10により読み出
される。即ち、CPU10は、ROM11から制御プロ
グラム(命令)を読み出して解釈・実行することにより
各種機能を発揮すると共に、所定の固定データを読み出
して各種処理に使用する。
The ROM 11 stores a control program for operating the CPU 10 described above, various fixed data used by the CPU 10 for various processes, and the like. Also,
The conversion table shown in FIG. 15, for example, is stored in the ROM 11 (details of the conversion table will be described later). The contents of the ROM 11 are read by the CPU 10. That is, the CPU 10 performs various functions by reading a control program (command) from the ROM 11 to interpret and execute the program, and reads predetermined fixed data for use in various processes.

【0046】RAM12は、CPU10が使用する種々
のデータを一時記憶する。このRAM12には、例えば
バッファ、レジスタ、カウンタ、フラグ等の各種領域が
定義されている。本実施例で使用する具体的なバッフ
ァ、レジスタ、カウンタ、フラグ等については、以下に
おいて出現する都度説明するが、ここでは、「受信バッ
ファ」及び「小節レジスタと拍レジスタ」について説明
しておく。
The RAM 12 temporarily stores various data used by the CPU 10. In the RAM 12, various areas such as a buffer, a register, a counter, and a flag are defined. Specific buffers, registers, counters, flags, and the like used in this embodiment will be described each time they appear below, but here, the "reception buffer" and "bar register and beat register" will be described.

【0047】受信バッファ 受信バッファは、後述するMIDIコントローラ17か
ら受信したMIDIデータを一時記憶するために使用さ
れる。この受信バッファは、例えば図14(A)に示さ
れるように、RAM12に定義されたカウンタCTR、
ポインタPTR及び記憶エリアとで構成され、CPU1
0の制御によりFIFO(ファーストイン−ファースト
アウト)メモリとして動作するようになっている。記憶
エリアは、例えば256個のエントリを有し、各エント
リにはMIDIデータが順次記憶される。
Reception Buffer The reception buffer is used to temporarily store MIDI data received from the MIDI controller 17 described later. This reception buffer is, for example, as shown in FIG. 14A, a counter CTR defined in the RAM 12,
The CPU 1 comprises a pointer PTR and a storage area.
With the control of 0, it operates as a FIFO (first-in-first-out) memory. The storage area has, for example, 256 entries, and MIDI data is sequentially stored in each entry.

【0048】カウンタCTRは受信したMIDIデータ
を書き込むべき記憶エリアの位置を指定する。このカウ
ンタCTRは、常に最後に書き込まれたMIDIデータ
の次のアドレスを指示するように制御される。このカウ
ンタCTRの初期値は「0」であり、MIDIデータが
書き込まれる度にインクリメントされ、その結果が最大
値TOPを越えた場合は最小値BTMに循環する。
The counter CTR designates the position of the storage area in which the received MIDI data should be written. This counter CTR is controlled so as to always indicate the next address of the last written MIDI data. The initial value of the counter CTR is "0", and is incremented every time MIDI data is written. If the result exceeds the maximum value TOP, the counter CTR circulates to the minimum value BTM.

【0049】ポインタPTRは記憶エリア中の、読み出
すべきMIDIデータの位置を指示する。このポインタ
PTRは、常に最後に読み出されたMIDIデータの次
のアドレス、つまり次に読み出すべきMIDIデータの
アドレスを指示するように制御される。このポインタP
TRの初期値は「0」であり、MIDIデータが読み込
まれる度にインクリメントされ、その結果が最大値TO
Pを越えた場合は最小値BTMに循環する。
The pointer PTR indicates the position of the MIDI data to be read in the storage area. The pointer PTR is always controlled so as to indicate the address next to the MIDI data read last, that is, the address of the MIDI data to be read next. This pointer P
The initial value of TR is "0" and is incremented every time MIDI data is read, and the result is the maximum value TO.
When P is exceeded, the value is circulated to the minimum value BTM.

【0050】この受信バッファは、カウンタCTRの内
容とポインタPTRの内容とが一致するときはエンプテ
ィであると判断される。なお、カウンタCTRをインク
リメントした結果、カウンタCTRの内容がポインタP
TRの内容に一致することとなる場合は受信バッファは
満杯であるのでMIDIデータの受信を抑止するように
制御される。カウンタCTRの内容とポインタPTRの
内容とが一致しない場合は、受信バッファにMIDIデ
ータが存在する旨が判断される。
This reception buffer is judged to be empty when the contents of the counter CTR and the contents of the pointer PTR match. As a result of incrementing the counter CTR, the content of the counter CTR is changed to the pointer P.
When the contents of TR are matched, the reception buffer is full, so that the reception of MIDI data is controlled. If the contents of the counter CTR and the contents of the pointer PTR do not match, it is determined that MIDI data exists in the reception buffer.

【0051】この受信バッファへのMIDIデータの書
込みは後述するMIDI−IN割込処理ルーチンにて行
われ、受信バッファからのMIDIデータの読み出しは
後述するMIDI−IN処理ルーチンで行われる。な
お、本実施例では受信バッファをRAM12内に形成
し、MIDIデータの書込み/読み出しの制御はCPU
10で行うように構成したが、これらの代わりに周知の
FIFOメモリ素子を用いて構成することもできる。
Writing of MIDI data to the receiving buffer is performed by a MIDI-IN interrupt processing routine described later, and reading of MIDI data from the receiving buffer is performed by a MIDI-IN processing routine described later. In the present embodiment, the reception buffer is formed in the RAM 12, and MIDI data writing / reading is controlled by the CPU.
Although it is configured so as to be performed in 10, it is also possible to use a well-known FIFO memory element instead of these.

【0052】小節レジスタと拍レジスタ 小節レジスタBRRは、小節の進行を計数するレジスタ
である。この小節レジスタBRRは、10進数4桁分に
相当する計数が可能である。また、拍レジスタBTRは
小節内の拍の進行を計数するレジスタである。この拍レ
ジスタBTRは、1ステップタイム毎にカウントアップ
される。本実施例では、1拍を48ステップの分解能と
する。従って、拍レジスタBTRは、4拍子の場合は4
拍、つまり192ステップを計数したらゼロにラウンド
する。この際、小節レジスタBRRはインクリメントさ
れるように制御される。
Bar Register and Beat Register The bar register BRR is a register for counting the progress of bars. This bar register BRR is capable of counting equivalent to four decimal digits. The beat register BTR is a register for counting the progress of beats within a bar. The beat register BTR is counted up every step time. In this embodiment, one beat has a resolution of 48 steps. Therefore, the beat register BTR is 4 when the beat is 4
After counting the beats, that is, 192 steps, round to zero. At this time, the bar register BRR is controlled to be incremented.

【0053】このRAM12には、上述したようなバッ
ファ、レジスタ等が定義されている他、自動演奏データ
(以下、「パターンデータ」という。)が格納されてい
る。パターンデータは、例えば2〜16小節程度の演奏
パターンを発生させるために使用される。このパターン
データは、例えば図14(B)に示されるような、ステ
ップタイム、ノートナンバ(キーコード)、ゲートタイ
ム及びベロシティといった4バイトのデータの集合で構
成されている。個々のパターンデータは、1つの音符に
対応している。ここに、ステップタイムは発音を開始す
る時刻を指定するものであり小節の先頭からのステップ
数で規定される。ノートナンバは音高を規定するために
使用される。ゲートタイムは発音時間を規定するために
使用される。ベロシティは発音の強さ(音量)を規定す
るために使用される。
The RAM 12 stores the above-mentioned buffers, registers, etc., and also stores automatic performance data (hereinafter referred to as "pattern data"). The pattern data is used to generate a performance pattern of, for example, 2 to 16 measures. The pattern data is composed of a 4-byte data set such as a step time, a note number (key code), a gate time, and a velocity as shown in FIG. Each pattern data corresponds to one note. Here, the step time specifies the time at which the sound generation starts, and is defined by the number of steps from the beginning of the bar. The note number is used to specify the pitch. The gate time is used to define the pronunciation time. Velocity is used to specify the strength (volume) of pronunciation.

【0054】図1の説明に戻る。操作パネル13には、
本テンポスピード制御装置と操作者とがコミュニケーシ
ョンするための各種スイッチ、表示器等が設けられてい
る。この操作パネル13の詳細については後述する。
Returning to the description of FIG. On the operation panel 13,
Various switches, a display and the like are provided for communication between the tempo speed control device and the operator. Details of the operation panel 13 will be described later.

【0055】楽音発生器14は、CPU10からシステ
ムバス30を介して送られてくるデータに基づいて楽音
信号を生成するものである。この楽音発生器14で生成
された楽音信号は、スピーカシステム15に送られる。
スピーカシステム15は、例えば増幅器、スピーカ等で
構成されており、楽音発生器14から送られてくる楽音
信号を音響信号に変換して放音する周知のものである。
The tone generator 14 generates a tone signal based on the data sent from the CPU 10 via the system bus 30. The musical tone signal generated by the musical tone generator 14 is sent to the speaker system 15.
The speaker system 15 is composed of, for example, an amplifier, a speaker and the like, and is a well-known system which converts a musical tone signal sent from the musical tone generator 14 into an acoustic signal and emits the acoustic signal.

【0056】タイマA16は、テンポに対応した時間間
隔で割込信号を発生する。この割込信号の発生間隔は、
CPU10からタイマA16にセットされるデータ(プ
リセット値)により決定される。このタイマA16で発
生された割込信号はCPU10の割込信号入力端子IN
T2に供給される。本実施例では、4分音符を1/48
の分解能(精度)で制御するものとしているので、4分
音符当たりに48回の割込信号が発生されることにな
る。
The timer A16 generates an interrupt signal at time intervals corresponding to the tempo. The interval of this interrupt signal is
It is determined by the data (preset value) set in the timer A16 from the CPU 10. The interrupt signal generated by the timer A16 is the interrupt signal input terminal IN of the CPU 10.
Supplied to T2. In this embodiment, the quarter note is 1/48
Since the control is performed with the resolution (accuracy) of, the interrupt signal is generated 48 times per quarter note.

【0057】タイマB20は、一定時間間隔(本実施例
では0.1秒間隔とする。)で割込信号を発生する。こ
の割込信号の発生間隔は、例えばハードウエア的に固定
されている。なお、割込信号の発生間隔は本実施例では
0.1秒して説明するが、これに限定されるものでなく
任意の値を用いることができる。このタイマB20で発
生された割込信号はCPU10の割込信号入力端子IN
T3に供給される。
The timer B20 generates an interrupt signal at a constant time interval (0.1 second interval in this embodiment). The generation interval of this interrupt signal is fixed by hardware, for example. In the present embodiment, the interval at which the interrupt signal is generated is 0.1 second, but the interval is not limited to this and any value can be used. The interrupt signal generated by the timer B20 is the interrupt signal input terminal IN of the CPU 10.
It is supplied to T3.

【0058】MIDIコントローラ17は、外部装置と
本テンポスピード制御装置が適用された自動演奏装置と
の間のMIDIデータの転送を制御する。このMIDI
コントローラ17の外部側に接続される外部装置として
は、例えばMIDIデータを処理することのできる電子
楽器、音源モジュール、コンピュータ、シーケンサ等が
挙げられる。MIDIコントローラ17は、外部装置か
らシリアルに送られてくるMIDIデータを受信し、こ
れが例えば1バイト分になった時点で割込信号を発生す
る。この割込信号は、CPU10の割込信号入力端子I
NT1に供給される。
The MIDI controller 17 controls the transfer of MIDI data between an external device and an automatic performance device to which the present tempo speed control device is applied. This MIDI
Examples of the external device connected to the outside of the controller 17 include an electronic musical instrument capable of processing MIDI data, a tone generator module, a computer, a sequencer, and the like. The MIDI controller 17 receives the MIDI data serially sent from the external device, and generates an interrupt signal when the MIDI data reaches one byte, for example. This interrupt signal is an interrupt signal input terminal I of the CPU 10.
Supplied to NT1.

【0059】FDコントローラ18は、フロッピーディ
スクドライブ装置19を制御するものである。フロッピ
ーディスクドライブ装置19に装着されるフロッピーデ
ィスクには、例えば、パターンデータが記憶されてい
る。そして、操作パネル13に設けられた所定のスイッ
チ(図示しない)を操作することにより、フロッピーデ
ィスクに記録されている上記パターンデータがFDコン
トローラ18を介してRAM12の所定領域にロードさ
れる。
The FD controller 18 controls the floppy disk drive device 19. The floppy disk mounted in the floppy disk drive device 19 stores, for example, pattern data. Then, by operating a predetermined switch (not shown) provided on the operation panel 13, the pattern data recorded on the floppy disk is loaded into a predetermined area of the RAM 12 via the FD controller 18.

【0060】図2(A)は本テンポスピード制御装置が
適用された自動演奏装置の操作パネル13の構成例を示
す図である。小節/拍表示器130は、例えば5桁の7
セグメントLED表示器で構成されている。この小節/
拍表示器130の上位4桁には、現在自動演奏されてい
る「小節」、つまり小節レジスタBRRの内容が表示さ
れ、下位1桁には現在自動演奏されている「拍」、つま
り拍レジスタBTRの内容に対応する拍(具体的には、
4拍子の場合は、拍レジスタBTRの内容を48で割っ
て得られる商に1を加えた値)が表示される。この小節
/拍表示器130の表示内容は、自動演奏の進行に伴っ
て順次更新される。
FIG. 2A is a diagram showing a configuration example of the operation panel 13 of the automatic performance device to which the present tempo speed control device is applied. The bar / beat display 130 is, for example, a 5-digit 7
It is composed of segment LED displays. This measure /
The upper four digits of the beat indicator 130 show the "bar" that is currently being automatically played, that is, the contents of the bar register BRR, and the lower one digit is the "beat" that is currently being played, that is, the beat register BTR. Beat corresponding to the content of (specifically,
In the case of 4 beats, a value obtained by adding 1 to the quotient obtained by dividing the contents of the beat register BTR by 48) is displayed. The display contents of the bar / beat display 130 are sequentially updated as the automatic performance progresses.

【0061】コード表示器131は、例えばLCD表示
器で構成されている。このコード表示器131には、後
述するメインルーチンのMIDI−IN処理(ステップ
S15)の中で行われるコード検出処理で検出されたコ
ード(コードルート及びコードタイプ)が表示される。
本実施例では、MIDIチャンネル1(MIDI−CH
1)により送られてきたMIDIデータをロワー鍵から
のデータとみなし、これに対してコード検出が行われる
ものとする。従って、このコード表示器131には、M
IDIチャンネル1から送られてきたMIDIデータに
基づいて検出されたコードが表示される。なお、コード
検出は、MIDIチャンネル1から送られてきた演奏デ
ータに限定されず、他の任意のMIDIチャンネル、或
いは複数のMIDIチャンネルから送られてきた演奏デ
ータを対象とするように構成しても良い。
The code display 131 is composed of, for example, an LCD display. The code display 131 displays the code (code root and code type) detected by the code detection processing performed in the MIDI-IN processing (step S15) of the main routine described later.
In this embodiment, MIDI channel 1 (MIDI-CH
It is assumed that the MIDI data sent in 1) is regarded as the data from the lower key, and code detection is performed on this. Therefore, the code display 131 has M
The code detected based on the MIDI data sent from IDI channel 1 is displayed. The chord detection is not limited to the performance data sent from the MIDI channel 1, but may be configured to target the performance data sent from any other MIDI channel or a plurality of MIDI channels. good.

【0062】テンポスピード表示器132は、例えば3
桁の7セグメントLED表示器で構成されている。この
テンポスピード表示器132には、現在設定されている
テンポスピードが表示される。現在設定されているテン
ポスピード値はRAM12に設けられたテンポレジスタ
に格納されている。
The tempo speed indicator 132 is, for example, 3
It consists of a 7-segment LED display unit. The tempo speed display 132 displays the currently set tempo speed. The currently set tempo speed value is stored in the tempo register provided in the RAM 12.

【0063】なお、小節/拍表示器130及びテンポス
ピード表示器132は、7セグメントのLED表示器で
構成したが、LCD表示器、CRT表示器、その他の種
々の表示器で構成することができる。同様に、コード表
示器131もLCD表示器に限定されず、CRT表示
器、その他の種々の表示器で構成することができる。
Although the bar / beat display 130 and the tempo speed display 132 are composed of 7-segment LED displays, they can be composed of LCD displays, CRT displays, and other various displays. . Similarly, the code display 131 is not limited to the LCD display, and can be configured with a CRT display or other various displays.

【0064】アップダウンスイッチ133はテンポ操作
子に対応するものであり、テンポを設定・変更するため
に使用される。このアップダウンスイッチ133は、ア
ップスイッチ133Aとダウンスイッチ133Bとで構
成されている。そして、アップスイッチ133Aが押さ
れる度に現テンポスピードが増加され、ダウンスイッチ
133Bが押される度に現テンポスピードが減少され
る。そして、このアップダウンスイッチ133でテンポ
スピードが変更されるとテンポレジスタの内容が変更さ
れると共に、変更後のテンポスピードがテンポスピード
表示器132に表示される。
The up / down switch 133 corresponds to a tempo operator and is used to set / change the tempo. The up / down switch 133 includes an up switch 133A and a down switch 133B. The current tempo speed is increased each time the up switch 133A is pressed, and the current tempo speed is decreased each time the down switch 133B is pressed. When the tempo speed is changed by the up / down switch 133, the contents of the tempo register are changed and the changed tempo speed is displayed on the tempo speed display 132.

【0065】ここで、アップダウンスイッチ133の押
下に伴うテンポスピードの変化について説明する。アッ
プスイッチ133A又はダウンスイッチ133Bの何れ
かが押され、そのイベントが検出されると、上述した
(2)式により新テンポスピード値が算出される。
(2)式におけるMとしては、上述したように、0≦M
≦1.00の範囲の定数を用いることができる。アップ
スイッチ133Aが押された場合はMとして「+M」が
採用され、ダウンスイッチ133Bが押された場合は
「−M」が採用される。一般に、Mとして「0.02」
程度の値を採用することができる。
The change in tempo speed due to the depression of the up / down switch 133 will be described. When either the up switch 133A or the down switch 133B is pressed and the event is detected, the new tempo speed value is calculated by the above equation (2).
As described above, M in the equation (2) is 0 ≦ M.
A constant in the range of ≦ 1.00 can be used. When the up switch 133A is pressed, "+ M" is adopted as M, and when the down switch 133B is pressed, "-M" is adopted. Generally, M is "0.02"
A value of the degree can be adopted.

【0066】なお、新テンポスピード値は、上述したよ
うな関数演算によらずに、予め記憶手段に現テンポスピ
ード値と新テンポスピード値との対応を記憶したテーブ
ルを格納しておき、このテーブルを参照して求めるよう
に構成することもできる。この場合、テーブルはROM
11に形成することができる。この構成によれば、関数
に表せないような複雑なテンポスピードの変化を実現す
ることができる。
As the new tempo speed value, a table in which the correspondence between the current tempo speed value and the new tempo speed value is stored in advance is stored in the storage means without using the function calculation as described above. It can also be configured to refer to. In this case, the table is ROM
11 can be formed. With this configuration, it is possible to realize a complicated change in tempo speed that cannot be represented by a function.

【0067】また、このアップダウンスイッチ133
は、オートインクリメント機能を実現するためにも使用
される。即ち、アップスイッチ133Aが所定時間(例
えば0.5秒)以上押下され続けるとテンポスピード値
が自動的にインクリメントされる。同様に、ダウンスイ
ッチ133Bが所定時間(例えば0.5秒)以上押下さ
れ続けるとテンポスピード値が自動的にデクリメントさ
れる。これらテンポスピード値のインクリメント又はデ
クリメントは、例えば0.1秒間隔でコールされる後述
するタイマB割込処理ルーチンで上記(2)式の演算が
行われることにより実現されている。
Also, the up / down switch 133
Is also used to implement the auto increment function. That is, if the up switch 133A is continuously pressed for a predetermined time (for example, 0.5 seconds) or more, the tempo speed value is automatically incremented. Similarly, if the down switch 133B is continuously pressed for a predetermined time (for example, 0.5 seconds) or more, the tempo speed value is automatically decremented. The increment or decrement of the tempo speed value is realized, for example, by performing the calculation of the above formula (2) in a timer B interrupt processing routine which will be described later and is called at intervals of 0.1 seconds.

【0068】ホイール155はテンポ操作子に対応する
ものであり、テンポを設定するために使用される。この
ホイール155としては、例えば、図2(B)に示すよ
うな通常の電子楽器でモジュレーションホイールとして
使用されている操作子と同じものを使用することができ
る。即ち、ホイール155は、演奏者の操作に応じて上
下方向に回転可能であり、操作されない状態では例えば
バネの作用により定位置(センター位置)に戻るように
構成されており、回転位置に応じて正又は負の多段階に
わたる値を出力する装置である。即ち、ホイール155
は、回転位置に応じた電圧を出力するポテンショメータ
ーで構成され、この電圧は図示しないA/D変換器でデ
ジタルデータに変換されてホイールデータとしてCPU
10に供給される。
The wheel 155 corresponds to the tempo operator and is used to set the tempo. As the wheel 155, for example, the same operator as that used as a modulation wheel in an ordinary electronic musical instrument as shown in FIG. 2B can be used. That is, the wheel 155 is rotatable in the vertical direction according to the operation of the player, and is configured to return to a fixed position (center position) by the action of a spring, for example, when not operated, and depending on the rotational position. It is a device that outputs a positive or negative multi-step value. That is, the wheel 155
Is composed of a potentiometer that outputs a voltage according to the rotational position, and this voltage is converted into digital data by an A / D converter (not shown) and is stored as wheel data in the CPU.
Supplied to 10.

【0069】ここで、ホイール155の操作に伴うテン
ポスピードの変化について説明する。このホイール15
5には、その回転位置に対応して、例えば図2(B)に
示されるようなレートRが割り当てられている。そし
て、ホイール155が操作されることにより選択された
レートRは、上記(2)式のMとして用いられる。この
ホイール155で所定のレートRが選択されると、上記
(2)式の演算が行われ、新テンポスピードに変更され
る。
The change in tempo speed associated with the operation of the wheel 155 will be described below. This wheel 15
A rate R as shown in FIG. 2B, for example, is assigned to 5 corresponding to the rotational position. Then, the rate R selected by operating the wheel 155 is used as M in the above equation (2). When a predetermined rate R is selected by the wheel 155, the calculation of the above formula (2) is performed and the new tempo speed is changed.

【0070】また、このホイール155は、オートイン
クリメント機能を実現するためにも使用される。即ち、
ホイール155が所定時間(例えば0.5秒)以上特定
位置に固定され続けるとテンポスピード値が自動的にイ
ンクリメント又はデクリメントされる。インクリメント
が行われるかデクリメントが行われるかは、ホイール1
55が何れの方向に回転されたかに従う。即ち、正のレ
ートRの位置に固定された場合はインクリメントが行わ
れ、負のレートRの位置に固定された場合はデクリメン
トが行われる。上記(2)式のMの値としては、このレ
ートRが使用される。上記テンポスピード値のインクリ
メント又はデクリメントは、例えば0.1秒間隔でコー
ルされる後述するタイマB割込処理ルーチンで上記
(2)式の演算が行われることにより実現されている。
The wheel 155 is also used to realize the auto increment function. That is,
The tempo speed value is automatically incremented or decremented when the wheel 155 is fixed at a specific position for a predetermined time (for example, 0.5 seconds) or longer. Wheel 1 determines whether to increment or decrement.
Depending on which direction 55 was rotated. That is, when the position is fixed at the positive rate R, the increment is performed, and when the position is fixed at the negative rate R, the decrement is performed. This rate R is used as the value of M in the above equation (2). The increment or decrement of the tempo speed value is realized, for example, by performing the calculation of the above formula (2) in a timer B interrupt processing routine which will be described later and is called at 0.1 second intervals.

【0071】操作パネル13の説明に戻る。図2(A)
において、ストップスイッチ134は、自動演奏を停止
させるために使用される。即ち、自動演奏中にストップ
スイッチ134が押されると自動演奏は停止される。プ
レイ/ポーズスイッチ135は、自動演奏を開始させ又
は一時停止させるために使用される。自動演奏の停止中
又はポーズ(一時停止)状態にあるときに、このプレイ
/ポーズスイッチ135が押されるとLED表示器14
3が点灯されて自動演奏が開始又は再開され、自動演奏
中に押されるとLED表示器143が消灯されてポーズ
状態になる。
Returning to the description of the operation panel 13. Figure 2 (A)
In, the stop switch 134 is used to stop the automatic performance. That is, when the stop switch 134 is pressed during the automatic performance, the automatic performance is stopped. The play / pause switch 135 is used to start or pause the automatic performance. When the play / pause switch 135 is pressed while the automatic performance is stopped or in the pause (pause) state, the LED display 14
3 is turned on to start or restart the automatic performance, and when pressed during the automatic performance, the LED display 143 is turned off and the pause state is set.

【0072】FFスイッチ136は、テンポスピードを
上げて再生するために使用される。即ち、自動演奏中に
FFスイッチ136が押されるとLED表示器144が
点灯されて高速再生が行われ、次に押されるとLED表
示器144が消灯されて元のテンポスピードに戻る。R
EWスイッチ137は、再生位置を戻すために使用され
る。即ち、このREWスイッチ137が押下されるとL
ED表示器145が点灯されて小節/拍数が減少(リワ
インド)する。このリワインド状態は小節/拍表示器1
30で確認することができる。リワインド状態で再度R
EWスイッチ137が押されるとLED表示器145が
消灯されて自動演奏の再生が再開される。
The FF switch 136 is used for increasing the tempo speed for reproduction. That is, when the FF switch 136 is pressed during the automatic performance, the LED display 144 is turned on to perform high-speed reproduction, and when the FF switch 136 is pressed next time, the LED display 144 is turned off and the original tempo speed is restored. R
The EW switch 137 is used to return the reproduction position. That is, when the REW switch 137 is pressed, L
The ED display 145 is turned on and the bar / beat rate decreases (rewinds). This rewind state is the measure / beat indicator 1
You can check at 30. R again in the rewind state
When the EW switch 137 is pressed, the LED indicator 145 is turned off and the reproduction of the automatic performance is restarted.

【0073】リピートスイッチ138は、曲を繰り返し
自動演奏させるために使用される。即ち、自動演奏を開
始させる前にこのリピートスイッチ138が押されると
LED表示器146が点灯され、曲の最後まで自動演奏
が行われると最初に戻って同じ曲の自動演奏が繰り返さ
れる。この状態で再度リピートスイッチ138が押され
るとLED表示器146が消灯されて自動演奏の繰り返
し再生状態は解除される。なお、このリピートスイッチ
138は、自動演奏中に所定の操作を行うことにより、
曲の特定区間を繰り返し再生するためにも使用されるが
ここでは説明は省略する。
The repeat switch 138 is used for automatically playing a song repeatedly. That is, when the repeat switch 138 is pressed before the automatic performance is started, the LED display 146 is turned on, and when the automatic performance is performed up to the end of the music, the operation returns to the beginning and the automatic performance of the same music is repeated. When the repeat switch 138 is pressed again in this state, the LED indicator 146 is turned off and the repeated playback state of the automatic performance is released. The repeat switch 138 is operated by performing a predetermined operation during automatic performance.
It is also used to repeatedly reproduce a specific section of a piece of music, but description thereof is omitted here.

【0074】パート1スイッチ139は、リズムパート
の発音を指示するために使用される。このパート1スイ
ッチ139が押されるとLED表示器147が点灯され
てリズムパートが発音され、次に押されるとLED表示
器147が消灯されてリズムパートの発音は停止され
る。同様に、パート2スイッチ140は、ベースパート
の発音を指示するために使用される。このパート2スイ
ッチ140が押されるとLED表示器148が点灯され
てベースパートが発音され、次に押されるとLED表示
器148が消灯されてベースパートの発音は停止され
る。
The part 1 switch 139 is used to instruct the pronunciation of the rhythm part. When the part 1 switch 139 is pressed, the LED indicator 147 is turned on and the rhythm part is sounded. When the part 1 switch 139 is pressed next, the LED indicator 147 is turned off and the sound of the rhythm part is stopped. Similarly, the part 2 switch 140 is used to instruct the pronunciation of the bass part. When the part 2 switch 140 is pressed, the LED indicator 148 is turned on to sound the base part, and when it is pressed next time, the LED indicator 148 is turned off and the sound of the base part is stopped.

【0075】同様に、パート3スイッチ141は、アカ
ンパニメントパート(例えばコードパート等)の発音を
指示するために使用される。このパート3スイッチ14
1が押されるとLED表示器149が点灯されてアカン
パニメントパートが発音され、次に押されるとLED表
示器149が消灯されてアカンパニメントパートの発音
が停止される。同様に、パート4スイッチ142は、メ
ロディパートを指示するために使用される。このパート
4スイッチ142が押されるとLED表示器150が点
灯されてメロディパートが発音され、次に押されるとL
ED表示器150が消灯されてメロディパートの発音が
停止される。
Similarly, the part 3 switch 141 is used to instruct the pronunciation of the accompaniment part (eg, chord part). This part 3 switch 14
When 1 is pressed, the LED indicator 149 is turned on and the accompaniment part is sounded, and when it is pressed next, the LED indicator 149 is turned off and the sound of the accompaniment part is stopped. Similarly, the part 4 switch 142 is used to indicate the melody part. When the part 4 switch 142 is pressed, the LED indicator 150 is turned on and the melody part is sounded.
The ED display 150 is turned off and the sound of the melody part is stopped.

【0076】上記各パートのうち、リズムパート、ベー
スパート及びアカンパニメントパートは1〜数小節程度
のパターンデータの繰り返し実行により発音されるもの
であり、メロディパートは、1曲分の全パターンデータ
が順次読み出されることにより発音されるものである。
Of the above parts, the rhythm part, the bass part, and the accompaniment part are sounded by repeatedly executing pattern data of about 1 to several measures, and the melody part is all pattern data for one song. Is read out in sequence and is sounded.

【0077】操作パネル13には、上記以外に複数の音
色の中から所望の音色を選択する音色選択操作子、音量
を調整する音量操作子、フロッピーディスクからのデー
タをRAM12にロードするための操作子等が設けられ
ているが、本発明とは直接関係しないので図示及び説明
は省略する。
On the operation panel 13, a tone color selection operator for selecting a desired tone color from a plurality of tone colors other than the above, a volume operator for adjusting the volume, and an operation for loading data from the floppy disk into the RAM 12. Although a child and the like are provided, they are not directly related to the present invention, and therefore illustration and description thereof are omitted.

【0078】上記のように構成される操作パネル13の
各スイッチ等の設定状態は次のようにしてCPU10に
読み込まれる。即ち、CPU10は操作パネル13に対
してスキャン指令を送出する。操作パネル13は、この
スキャン指令に応答して各スイッチのオン/オフを示す
信号及びホイール155の現在値を示す信号をCPU1
0に送る。CPU10は、受け取った信号からパネルデ
ータ(各スイッチのオン/オフを1ビットに対応させた
スイッチデータとホイール155の設定値を示すホイー
ルデータとで成る。)を生成する。このパネルデータ
は、CPU10の制御下でRAM12に格納され、パネ
ルイベントの有無を判断するために使用される(詳細は
後述)。
The setting states of the switches and the like of the operation panel 13 configured as described above are read by the CPU 10 as follows. That is, the CPU 10 sends a scan command to the operation panel 13. In response to the scan command, the operation panel 13 sends a signal indicating ON / OFF of each switch and a signal indicating the current value of the wheel 155 to the CPU 1.
Send to 0. The CPU 10 generates panel data (consisting of switch data in which ON / OFF of each switch corresponds to 1 bit and wheel data indicating a set value of the wheel 155) from the received signal. This panel data is stored in the RAM 12 under the control of the CPU 10 and is used to determine the presence / absence of a panel event (details will be described later).

【0079】次に、本発明のテンポスピード制御装置が
適用された自動演奏装置の実施例1の動作につき、図3
〜図9に示したフローチャートを参照しながら詳細に説
明する。
Next, the operation of the first embodiment of the automatic performance device to which the tempo speed control device of the present invention is applied is shown in FIG.
~ It will be described in detail with reference to the flowchart shown in FIG.

【0080】(1)メイン処理(図3) 図3は、本発明のテンポスピード制御装置が適用された
自動演奏装置の実施例のメインルーチンを示すフローチ
ャートであり、電源投入により起動される。電源が投入
されると、先ず、初期化処理が行われる(ステップS1
0)。この初期化処理では、CPU10の内部状態が初
期状態に設定されると共に、RAM12に定義されてい
るレジスタ、カウンタ或いはフラグ等に初期値が設定さ
れる。
(1) Main Processing (FIG. 3) FIG. 3 is a flow chart showing the main routine of the embodiment of the automatic performance device to which the tempo speed control device of the present invention is applied, which is started by turning on the power. When the power is turned on, first, initialization processing is performed (step S1).
0). In this initialization processing, the internal state of the CPU 10 is set to the initial state, and the initial values are set to the registers, counters, flags, etc. defined in the RAM 12.

【0081】この初期化処理が終了すると、次いでパネ
ルスイッチスキャン処理が行われる(ステップS1
1)。即ち、CPU10は操作パネル13に対してスキ
ャン指令を送出する。これにより、操作パネル13は、
既に説明したようにパネルデータを生成し、CPU10
に送る。CPU10は、このパネルデータ(以下、「新
パネルデータ」という。)をRAM12の所定領域に格
納する。次いで、前回のパネルスイッチスキャン処理で
読み込んで既にRAM12に記憶されているパネルデー
タ(以下、「旧パネルデータ」という。)と、上記新パ
ネルデータとを比較して相違するビットをオンにしたパ
ネルイベントマップを作成する。
When this initialization process is completed, a panel switch scan process is then performed (step S1).
1). That is, the CPU 10 sends a scan command to the operation panel 13. As a result, the operation panel 13
As described above, the panel data is generated, and the CPU 10
Send to The CPU 10 stores this panel data (hereinafter referred to as “new panel data”) in a predetermined area of the RAM 12. Next, the panel data (hereinafter referred to as “old panel data”) read in the previous panel switch scan processing and already stored in the RAM 12 is compared with the new panel data, and the panel in which the different bit is turned on is turned on. Create an event map.

【0082】次いで、イベントの有無が調べられる(ス
テップS12)。これは、上記パネルイベントマップを
参照することにより行われる。即ち、パネルイベントマ
ップ中にオンになっているビットが1つ以上存在するか
どうかが調べられ、1つも存在しなければイベントはな
かったものと、1つ以上存在すればイベントがあったも
のとそれぞれ判断される。このステップS12でイベン
トがあることが判断されるとパネル制御処理が行われ
(ステップS13)、そうでなければパネル制御処理は
スキップされる。このパネル制御処理の詳細については
後述する。
Then, the presence or absence of an event is checked (step S12). This is done by referring to the panel event map above. That is, it is checked whether or not there is at least one bit that is turned on in the panel event map, and if there is no bit, there is no event, and if there is at least one bit, there is an event. Each is judged. If it is determined in step S12 that there is an event, panel control processing is performed (step S13), and if not, panel control processing is skipped. Details of this panel control processing will be described later.

【0083】次いで、受信バッファに受信データ(MI
DIデータ)があるかどうかが調べられる(ステップS
14)。これは、上述したように、カウンタCTRの内
容とポインタPTRの内容とが一致するかどうかを調べ
ることにより行われる。ここで受信バッファに受信デー
タがあることが判断されるとMIDI−IN処理が行わ
れ(ステップS15)、そうでなければMIDI−IN
処理はスキップされる。
Then, the received data (MI
It is checked whether or not there is DI data (step S).
14). This is done by checking whether the contents of the counter CTR and the contents of the pointer PTR match as described above. If it is determined that there is received data in the receive buffer, MIDI-IN processing is performed (step S15), and if not, MIDI-IN is performed.
Processing is skipped.

【0084】MIDI−IN処理では、MIDIコント
ローラ17から入力されて受信バッファに格納されてい
るMIDIデータに対する処理が行われる。即ち、MI
DI−IN処理では、先ず、受信バッファから1つのM
IDIメッセージが取り出され、それに含まれるMID
Iチャンネル番号が「1」であるかどうか、つまりロワ
ー鍵のデータであるかどうかが調べられる。そして、チ
ャンネル番号が「1」でないことが判断されるとMID
Iデータに従って通常の発音処理が行われる。
In the MIDI-IN processing, processing is performed on the MIDI data input from the MIDI controller 17 and stored in the reception buffer. That is, MI
In the DI-IN process, first, one M
IDI message is retrieved and the MID contained in it
It is checked whether the I channel number is "1", that is, whether it is the data of the lower key. When it is determined that the channel number is not "1", the MID
Normal tone generation processing is performed according to the I data.

【0085】一方、チャンネル番号が「1」、つまりロ
ワー鍵のデータである旨が判断されるとコード検出処理
が行われ、コードタイプ及びコードルートが検出され
る。ここで検出されたコードタイプ及びコードルートは
コード表示器131に送られて表示される。そして、コ
ード検出処理により検出されたコードタイプ及びコード
ルートに従って、RAM12から読み出されたパターン
データが展開され、コード構成音の楽音データが作成さ
れる。この楽音データは楽音発生器14に送られる。楽
音発生器14では楽音信号が生成され、この楽音信号が
スピーカシステム15に供給されることにより自動演奏
音の発生が開始される。
On the other hand, when it is determined that the channel number is "1", that is, the data is the lower key data, the code detection processing is performed to detect the code type and the code root. The chord type and chord root detected here are sent to the chord indicator 131 and displayed. Then, the pattern data read from the RAM 12 is expanded in accordance with the chord type and chord root detected by the chord detection processing, and musical tone data of chord constituent tones are created. This tone data is sent to the tone generator 14. The tone generator 14 generates a tone signal, and the tone signal is supplied to the speaker system 15 to start the generation of an automatic performance tone.

【0086】次いで、パート1〜4読出処理が実行され
る(ステップS16)。この処理は、各パートのパター
ンデータをRAM12から読み出して楽音を再生する処
理である。このパート1〜4読出処理の概要は以下の通
りである。即ち、先ずパート1〜4のパターンデータが
順次RAM12から読み出される。そして、パターンデ
ータに含まれるステップタイムが調べられ、当該パター
ンデータは発音タイミングに至っているかどうかが調べ
られる。そして、発音タイミングに至っていることが判
断されると、そのパターンデータが上記で検出されてい
るコードに従って展開され、コード構成音の楽音データ
が生成される。この楽音データは、上記と同様に楽音発
生器14に送られる。楽音発生器14では楽音信号が生
成され、この楽音信号がスピーカシステム15に供給さ
れることにより自動演奏音の発生が開始される。
Then, the reading processing of parts 1 to 4 is executed (step S16). This process is a process of reproducing the musical sound by reading the pattern data of each part from the RAM 12. The outline of the read processing of parts 1 to 4 is as follows. That is, first, the pattern data of parts 1 to 4 are sequentially read from the RAM 12. Then, the step time included in the pattern data is checked, and it is checked whether or not the pattern data reaches the sound generation timing. Then, when it is determined that the tone generation timing is reached, the pattern data is developed according to the chord detected above, and the musical tone data of the chord composing tone is generated. This tone data is sent to the tone generator 14 as described above. The tone generator 14 generates a tone signal, and the tone signal is supplied to the speaker system 15 to start the generation of an automatic performance tone.

【0087】次いで、「その他の処理」が行われる(ス
テップS17)。この「その他の処理」では、フロッピ
ーディスクの制御、音色選択処理、ボリューム設定処理
等が行われるが、本発明とは直接関係しないので説明は
省略する。その後、ステップS11に戻り、以下同様の
処理が繰り返される。上記のステップS11〜S17の
繰り返し実行により、操作パネル13の操作やMIDI
データの受信に伴う各種処理が実行され、自動演奏装置
としての各種機能が実現される。
Then, "other processing" is performed (step S17). In this "other processing", floppy disk control, tone color selection processing, volume setting processing and the like are performed, but since they are not directly related to the present invention, description thereof will be omitted. Then, the process returns to step S11, and the same process is repeated thereafter. By repeating the above steps S11 to S17, the operation of the operation panel 13 and MIDI
Various processes associated with the reception of data are executed, and various functions as an automatic performance device are realized.

【0088】(2)MIDI−IN割込処理(図4) このMIDI−IN割込処理は、メインルーチンの処理
に割り込んで実行される。このMIDI−IN割込処理
では、MIDIコントローラ17で受信されたMIDI
データが受信バッファに格納される。MIDIコントロ
ーラ17は、外部装置からシリアルに送られてくるMI
DIデータが1バイト分になると割込信号を発生する。
この割込信号はCPU10の割込信号入力端子INT1
に供給される。これにより、CPU10は割込モードに
入り、本MIDI−IN割込処理ルーチンがコールされ
る。
(2) MIDI-IN interrupt processing (FIG. 4) This MIDI-IN interrupt processing is executed by interrupting the processing of the main routine. In this MIDI-IN interrupt processing, the MIDI received by the MIDI controller 17
The data is stored in the receive buffer. The MIDI controller 17 is an MI that is serially sent from an external device.
When the DI data reaches 1 byte, an interrupt signal is generated.
This interrupt signal is an interrupt signal input terminal INT1 of the CPU 10.
Is supplied to. As a result, the CPU 10 enters the interrupt mode, and this MIDI-IN interrupt processing routine is called.

【0089】MIDI−IN割込処理では、先ず、MI
DIコントローラ17からMIDIデータが読み込ま
れ、これが受信バッファのカウンタCTRで示される位
置に書き込まれる(ステップS20)。次いで、カウン
タCTRがインクリメントされ(ステップS21)、そ
の結果が記憶エリアの最大値TOPを越えたかどうかが
調べられる(ステップS22)。そして、最大値TOP
を越えていないことが判断されるとこのMIDI−IN
処理ルーチンからリターンしてメインルーチンの割り込
まれた位置に戻る。一方、上記ステップS22で最大値
TOPを越えたことが判断されると、カウンタCTRの
内容が最小値BTMに書き換えられ(ステップS2
3)、その後、このMIDI−IN処理ルーチンからリ
ターンしてメインルーチンの割り込まれた位置に戻る。
これにより、最大値TOPから最小値BTMへラウンド
する循環バッファの機能が実現されている。
In the MIDI-IN interrupt processing, first, MI
MIDI data is read from the DI controller 17 and written in the position indicated by the counter CTR of the reception buffer (step S20). Then, the counter CTR is incremented (step S21), and it is checked whether the result exceeds the maximum value TOP of the storage area (step S22). And the maximum value TOP
If the MIDI-IN is judged not to exceed
Return from the processing routine and return to the position interrupted by the main routine. On the other hand, when it is determined in step S22 that the maximum value TOP is exceeded, the contents of the counter CTR are rewritten to the minimum value BTM (step S2).
3) After that, the routine returns from this MIDI-IN processing routine and returns to the position interrupted by the main routine.
As a result, the function of a circular buffer that makes a round from the maximum value TOP to the minimum value BTM is realized.

【0090】なお、図中には示されていないが、カウン
タCTRをインクリメントした結果がポインタPTRの
値を越えることとなる場合は受信バッファは満杯である
ので、MIDIデータの取り込み処理は抑止される。
Although not shown in the figure, when the result of incrementing the counter CTR exceeds the value of the pointer PTR, the reception buffer is full, and therefore the MIDI data fetching process is suppressed. .

【0091】(3)パネル制御処理(図5) 次に、メインルーチンのステップS13で行われるパネ
ル制御処理の詳細について、図5のフローチャートを参
照しながら説明する。
(3) Panel Control Processing (FIG. 5) Next, details of the panel control processing performed in step S13 of the main routine will be described with reference to the flowchart of FIG.

【0092】このパネル制御処理ルーチンは、メインル
ーチンでパネルスイッチ等のイベントがあったことが判
断された場合にコールされる。パネル制御処理では、先
ずアップダウンスイッチ133のイベントがあるかどう
かが調べられる(ステップS30)。これは、パネルイ
ベントマップ中のアップスイッチ133A又はダウンス
イッチ133Bに対応するビットが「1」であるかどう
かを調べることにより行われる。ここでアップスイッチ
133A又はダウンスイッチ133Bのイベントがある
ことが判断されるとテンポスピード処理1が行われ(ス
テップS31)、そうでなければテンポスピード処理1
はスキップされる。このテンポスピード処理1の詳細に
ついては後述する。このステップS30の処理は変位検
出手段に対応するものである。
This panel control processing routine is called when it is determined in the main routine that an event such as a panel switch has occurred. In the panel control process, it is first checked whether or not there is an event of the up / down switch 133 (step S30). This is done by checking whether the bit corresponding to the up switch 133A or the down switch 133B in the panel event map is "1". If it is determined here that there is an event of the up switch 133A or the down switch 133B, tempo speed processing 1 is performed (step S31), and if not, tempo speed processing 1
Is skipped. Details of the tempo speed processing 1 will be described later. The process of step S30 corresponds to the displacement detecting means.

【0093】次いで、ホイール155のイベントがある
かどうかが調べられる(ステップS32)。即ち、新旧
両パネルデータ中のホイールデータが比較され、これら
が相違する場合にホイール155のイベントがあったこ
とが判断される。このステップS32でホイール155
のイベントがあったことが判断されるとテンポスピード
処理2が行われ(ステップS33)、そうでなければテ
ンポスピード処理2はスキップされる。このテンポスピ
ード処理2の詳細につても後述する。このステップS3
2の処理は変位検出手段に対応するものである。
Then, it is checked whether or not there is an event of the wheel 155 (step S32). That is, the wheel data in the old and new panel data is compared, and if they are different, it is determined that there is an event of the wheel 155. In this step S32, the wheel 155
If it is determined that there is an event, the tempo speed processing 2 is performed (step S33), and if not, the tempo speed processing 2 is skipped. Details of the tempo speed processing 2 will be described later. This step S3
The process 2 corresponds to the displacement detecting means.

【0094】次いで、ストップスイッチ134のイベン
トがあるかどうかが調べられる(ステップS34)。こ
れは、パネルイベントマップ中のストップスイッチ13
4に対応するビットが「1」であるかどうかを調べるこ
とにより行われる。ここでストップスイッチ134のイ
ベントがあることが判断されるとストップ処理が行われ
(ステップS35)、そうでなければストップ処理はス
キップされる。ストップ処理では、RAM12に定義さ
れている自動演奏フラグが「0」にクリアされる。これ
により、後述するタイマA割込処理(図8)において小
節レジスタBRR及び拍レジスタBTRの更新が抑止さ
れて自動演奏の進行が停止され、各パートの発音が停止
される。
Then, it is checked whether or not there is an event of the stop switch 134 (step S34). This is the stop switch 13 in the panel event map.
This is done by checking whether the bit corresponding to 4 is "1". If it is determined that there is an event of the stop switch 134, the stop process is performed (step S35), and if not, the stop process is skipped. In the stop processing, the automatic performance flag defined in the RAM 12 is cleared to "0". As a result, in the timer A interrupt process (FIG. 8) described later, updating of the bar register BRR and the beat register BTR is suppressed, the progress of the automatic performance is stopped, and the sound generation of each part is stopped.

【0095】次いで、プレイ/ポーズスイッチ135の
イベントがあるかどうかが調べられる(ステップS3
6)。これは、パネルイベントマップ中のプレイ/ポー
ズスイッチ135に対応するビットが「1」であるかど
うかを調べることにより行われる。ここでプレイ/ポー
ズスイッチ135のイベントがあることが判断されると
プレイ処理が行われ(ステップS37)、そうでなけれ
ばプレイ処理はスキップされる。プレイ処理では、上記
自動演奏フラグが「0」、つまり自動演奏停止中にプレ
イ/ポーズスイッチ135が押されたことが判断される
と自動演奏フラグが「1」にセットされると共に、LE
D表示器143が点灯される。これにより、後述するタ
イマA割込処理(図8)において小節レジスタBRR及
び拍レジスタBTRの更新が開始され、自動演奏が進行
される。逆に、自動演奏フラグが「1」、つまり自動演
奏中にプレイ/ポーズスイッチ135が押されたことが
判断されると自動演奏フラグが「0」にクリアされると
共に、LED表示器143が消灯される。これにより、
上記ストップスイッチ134が押された時と同様の処理
が行われて各パートの発音が停止される。
Then, it is checked whether or not there is an event of the play / pause switch 135 (step S3).
6). This is done by checking whether the bit corresponding to the play / pause switch 135 in the panel event map is "1". If it is determined that there is an event of the play / pause switch 135, the play process is performed (step S37), and if not, the play process is skipped. In the play process, when the automatic performance flag is "0", that is, when the play / pause switch 135 is pressed while the automatic performance is stopped, the automatic performance flag is set to "1" and LE is set.
The D display 143 is turned on. As a result, the bar register BRR and the beat register BTR are started to be updated in the timer A interrupt process (FIG. 8) described later, and the automatic performance is advanced. On the contrary, when the automatic performance flag is "1", that is, when it is determined that the play / pause switch 135 is pressed during the automatic performance, the automatic performance flag is cleared to "0" and the LED indicator 143 is turned off. To be done. This allows
The same processing as when the stop switch 134 is pressed is performed to stop the sound generation of each part.

【0096】次いで、FFスイッチ136のイベントが
あるかどうかが調べられる(ステップS38)。これ
は、パネルイベントマップ中のFFスイッチ136に対
応するビットが「1」であるかどうかを調べることによ
り行われる。ここでFFスイッチ136のイベントがあ
ることが判断されるとFF処理が行われ(ステップS3
9)、そうでなければFF処理はスキップされる。FF
処理では、RAM12に定義されたFFフラグが
「0」、つまり通常再生中にFFスイッチ136が押さ
れたことが判断されるとFFフラグが「1」にセットさ
れ、タイマA16に所定のデータがセットされると共
に、LED表示器144が点灯される。これにより、テ
ンポスピードが早くなって高速再生が行われる。逆に、
FFフラグが「1」、つまり高速再生中にFFスイッチ
136が押されたことが判断されるとFFフラグが
「0」にクリアされ、タイマA16に元のデータがリス
トアされると共に、LED表示器144が消灯される。
これにより、FFスイッチ136が押される前のテンポ
スピードに戻る。
Then, it is checked whether or not there is an event of the FF switch 136 (step S38). This is done by checking whether the bit corresponding to the FF switch 136 in the panel event map is "1". If it is determined that there is an event of the FF switch 136, FF processing is performed (step S3).
9), otherwise FF processing is skipped. FF
In the processing, when it is determined that the FF flag defined in the RAM 12 is "0", that is, the FF switch 136 is pressed during the normal reproduction, the FF flag is set to "1", and the predetermined data is stored in the timer A16. When set, the LED indicator 144 is turned on. As a result, the tempo speed is increased and high speed reproduction is performed. vice versa,
When the FF flag is "1", that is, when it is determined that the FF switch 136 is pressed during high-speed reproduction, the FF flag is cleared to "0", the original data is restored to the timer A16, and the LED display is displayed. 144 is turned off.
This returns to the tempo speed before the FF switch 136 was pressed.

【0097】次いで、REWスイッチ137のイベント
があるかどうかが調べられる(ステップS40)。これ
は、パネルイベントマップ中のREWスイッチ137に
対応するビットが「1」であるかどうかを調べることに
より行われる。ここでREWスイッチ137のイベント
があることが判断されるとREW処理が行われ(ステッ
プS41)、そうでなければREW処理はスキップされ
る。REW処理では、RAM12に定義されたREWフ
ラグが「0」、つまり通常再生中にREWスイッチ13
7が押されたことが判断されるとREWフラグが「1」
にセットされ、RAM12に定義された小節レジスタB
RR及び拍レジスタBTRが所定の速度でデクリメント
され、その結果が小節/拍表示器130に送られると共
に、LED表示器145が点灯される。これにより、小
節/拍表示器130の表示がデクリメントされながら自
動演奏のシーケンスが後退する。なお、このREW処理
中には発音は停止される。逆に、FFフラグが「1」、
つまり高速再生中にREWスイッチ137が押されたこ
とが判断されるとREWフラグが「0」にクリアされ、
LED表示器145が消灯される。これにより、減少さ
れた小節レジスタBRR及び拍レジスタBTRの位置か
ら自動演奏が再開される。
Then, it is checked whether there is an event of the REW switch 137 (step S40). This is done by checking whether the bit corresponding to the REW switch 137 in the panel event map is "1". If it is determined that there is an event of the REW switch 137, the REW processing is performed (step S41), and if not, the REW processing is skipped. In the REW process, the REW flag defined in the RAM 12 is “0”, that is, the REW switch 13 is set during the normal reproduction.
When it is determined that 7 is pressed, the REW flag is "1".
And the measure register B defined in the RAM 12
The RR and the beat register BTR are decremented at a predetermined speed, the result is sent to the bar / beat display 130, and the LED display 145 is turned on. As a result, the display of the bar / beat display 130 is decremented, and the automatic performance sequence is moved backward. Note that sound generation is stopped during this REW processing. Conversely, the FF flag is "1",
That is, when it is determined that the REW switch 137 is pressed during the high speed reproduction, the REW flag is cleared to “0”,
The LED indicator 145 is turned off. As a result, the automatic performance is restarted from the reduced positions of the bar register BRR and the beat register BTR.

【0098】次いで、リピートスイッチ138のイベン
トがあるかどうかが調べられる(ステップS42)。こ
れは、パネルイベントマップ中のリピートスイッチ13
8に対応するビットが「1」であるかどうかを調べるこ
とにより行われる。ここでリピートスイッチ138のイ
ベントがあることが判断されるとリピート処理が行われ
(ステップS43)、そうでなければリピート処理はス
キップされる。リピート処理では、RAM12に定義さ
れたリピートフラグが「0」であればリピートフラグが
「1」にセットされると共に、LED表示器146が点
灯される。逆に、リピートフラグが「1」であればリピ
ートフラグが「0」にクリアされ、LED表示器145
が消灯される。これにより、詳細は図示されていない
が、1曲分のパターンデータの読み出しが終了した場合
に、リピートフラグが「1」であれば自動演奏のシーケ
ンスは曲の先頭に戻り、同じ自動演奏が繰り返し実行さ
れる。一方、リピートフラグが「0」であれば自動演奏
は停止される。
Then, it is checked whether or not there is an event of the repeat switch 138 (step S42). This is the repeat switch 13 in the panel event map.
This is done by checking whether the bit corresponding to 8 is "1". If it is determined that there is an event of the repeat switch 138, the repeat process is performed (step S43), and if not, the repeat process is skipped. In the repeat process, if the repeat flag defined in the RAM 12 is “0”, the repeat flag is set to “1” and the LED indicator 146 is turned on. On the contrary, if the repeat flag is “1”, the repeat flag is cleared to “0” and the LED indicator 145
Is turned off. As a result, although not shown in detail, if the repeat flag is "1" when the reading of the pattern data for one music is completed, the automatic performance sequence returns to the beginning of the music and the same automatic performance is repeated. To be executed. On the other hand, if the repeat flag is "0", the automatic performance is stopped.

【0099】次いで、パートスイッチ139〜142の
イベントがあるかどうかが調べられる(ステップS4
4)。これは、パネルイベントマップ中のパートスイッ
チ139〜142に対応するビットが「1」であるかど
うかを調べることにより行われる。ここでパートスイッ
チ139〜142のイベントがあることが判断されると
パート1〜4切換処理が行われ(ステップS45)、そ
うでなければパート1〜4切換処理はスキップされる。
Then, it is checked whether or not there is an event of the part switches 139 to 142 (step S4).
4). This is done by checking whether the bits corresponding to the part switches 139 to 142 in the panel event map are "1". If it is determined that there is an event of the part switch 139 to 142, the part 1 to 4 switching process is performed (step S45), and if not, the part 1 to 4 switching process is skipped.

【0100】上記パート1〜4切換処理は、パートスイ
ッチ139〜142が押された時に、当該パートの発音
を開始し又は停止する処理である。本実施例のテンポス
ピード制御装置が適用された自動演奏装置では、パート
1〜4のパターンデータは常に読み出されており、読み
出されたパターンデータに基づいて発音が行われるかど
うかは、パートスイッチ139〜142がオンにされて
いるかどうかによって決定される。
The parts 1 to 4 switching process is a process of starting or stopping the sounding of the part when the part switch 139 to 142 is pressed. In the automatic performance device to which the tempo speed control device according to the present embodiment is applied, the pattern data of parts 1 to 4 are always read, and it is determined whether or not a sound is produced based on the read pattern data. It is determined by whether the switches 139 to 142 are turned on.

【0101】従って、このパート1〜4切換処理では、
RAM12から読み出されているパターンデータに基づ
いて作成された楽音データを楽音発生器14に送るかど
うかを制御する処理が行われる。例えばパートスイッチ
139がオンにされると、その旨がRAM12中のフラ
グで記憶され、これにより、上述したパート1〜4読出
処理ルーチンではRAM12から読み出されたリズムパ
ートのパターンデータに基づいて作成された楽音データ
が楽音発生器14に送出されるように制御される。これ
により、リズムパートの楽音が発生される。一方、パー
トスイッチ139がオフにされると、その旨がRAM1
2中のフラグで記憶され、これにより、上述したパート
1〜4読出処理ルーチンではRAM12から読み出され
たリズムパートのパターンデータに基づいて作成された
楽音データは楽音発生器14に送出されないように制御
される。従って、リズムパートの楽音の発生が停止され
る。ベースパート、アカンパニメントパート及びメロデ
ィパートについても同様の処理が行われる。以上のパネ
ル制御処理が終了すると、このパネル制御処理ルーチン
からリターンしてメインルーチンに戻る。
Therefore, in this part 1 to 4 switching process,
A process for controlling whether or not to send the musical tone data created based on the pattern data read from the RAM 12 to the musical tone generator 14 is performed. For example, when the part switch 139 is turned on, that effect is stored as a flag in the RAM 12, and thus the parts 1 to 4 reading processing routine described above is performed based on the pattern data of the rhythm part read from the RAM 12. The generated musical tone data is controlled so as to be sent to the musical tone generator 14. As a result, the musical sound of the rhythm part is generated. On the other hand, when the part switch 139 is turned off, the fact is notified to the RAM 1
Therefore, the musical tone data stored based on the pattern data of the rhythm part read from the RAM 12 in the above-described part 1 to 4 reading processing routine is not sent to the musical tone generator 14. Controlled. Therefore, the generation of the musical sound of the rhythm part is stopped. Similar processing is performed for the bass part, the accompaniment part, and the melody part. When the above panel control processing ends, the panel control processing routine returns and returns to the main routine.

【0102】(4)テンポスピード処理1(図6) 次に、パネル制御処理ルーチンのステップS31で実行
されるテンポスピード処理1の詳細について、図6のフ
ローチャートを参照しながら説明する。このテンポスピ
ード処理1では、アップダウンスイッチ133の操作に
応じてテンポスピードを変更する処理が行われる。この
テンポスピード処理1は変更手段に対応するものであ
る。
(4) Tempo Speed Processing 1 (FIG. 6) Next, details of the tempo speed processing 1 executed in step S31 of the panel control processing routine will be described with reference to the flowchart of FIG. In the tempo speed process 1, a process of changing the tempo speed according to the operation of the up / down switch 133 is performed. This tempo speed processing 1 corresponds to the changing means.

【0103】テンポスピード処理1では、先ず、アップ
ダウンスイッチ133、つまりアップスイッチ133A
又はダウンスイッチ133Bの何れかのオンイベントが
あったかどうかが調べられる(イベント50)。これ
は、新パネルデータ中のアップスイッチ133A又はダ
ウンスイッチ133Bの何れかに対応するビットが
「1」にセットされているかどうかを調べることにより
行われる。ここでオンイベントがあったことが判断され
ると、TMPONフラグが「1」にセットされる(ステ
ップS51)。TMPONフラグはRAM12に定義さ
れるフラグであり、アップスイッチ133A又はダウン
スイッチ133Bの何れかがオンにされ続けているかど
うかを記憶するものである。このTMPONフラグは、
後述するタイマB割込処理ルーチンで参照され、オート
インクリメント機能を実現するために使用される(詳細
は後述する)。
In the tempo speed process 1, first, the up / down switch 133, that is, the up switch 133A.
Alternatively, it is checked whether there is any on event of the down switch 133B (event 50). This is done by checking whether the bit corresponding to either the up switch 133A or the down switch 133B in the new panel data is set to "1". If it is determined that there is an on event, the TMPON flag is set to "1" (step S51). The TMPON flag is a flag defined in the RAM 12 and stores whether or not either the up switch 133A or the down switch 133B continues to be turned on. This TMPON flag is
It is referred to in the timer B interrupt processing routine described later and is used to realize the auto increment function (details will be described later).

【0104】次いで、カウンタTMPTIMがゼロにク
リアされる(ステップS52)。このカウンタTMPT
IMはRAM12に定義されるカウンタである。このカ
ウンタTMPTIMは、後述するタイマB割込処理ルー
チンで更新され、オートインクリメント機能におけるテ
ンポスピード値を更新する時間間隔を計数するために使
用される(詳細は後述する)。
Then, the counter TMPTIM is cleared to zero (step S52). This counter TMPT
IM is a counter defined in the RAM 12. This counter TMPTIM is updated in the timer B interrupt processing routine described later, and is used to count the time interval for updating the tempo speed value in the auto increment function (details will be described later).

【0105】次いで、上記ステップS50でオンイベン
トがあったスイッチはアップスイッチ133Aであるか
どうかが調べられ(ステップS53)、アップスイッチ
133Aのイベントであることが判断されるとレジスタ
TMPCNTに「+1」がセットされ(ステップS5
4)、そうでなければダウンスイッチ133Bのイベン
トであることが認識されてレジスタTMPCNTに「−
1」がセットされる(ステップS55)。ここで、レジ
スタTMPCNTはRAM12に定義されるレジスタで
あり、テンポスピード値を変更する際のレートRを指定
するために使用される。
Then, in step S50, it is checked whether or not the switch having the ON event is the up switch 133A (step S53). When it is determined that the event is the up switch 133A, "+1" is stored in the register TMPCNT. Is set (step S5
4) Otherwise, it is recognized that the event is the event of the down switch 133B, and the register TMPCNT indicates "-".
1 "is set (step S55). Here, the register TMPCNT is a register defined in the RAM 12 and is used to specify the rate R when changing the tempo speed value.

【0106】次に、レジスタTMPCNTの内容に応じ
てレートRが作成される(ステップS56)。レジスタ
TMPCNTの内容とレートRとの対応は、例えば図1
5に示す形式で変換テーブルとしてROM11に格納さ
れている。即ち、レジスタTMPCNTの内容が「+
1」の場合はレートRとして「1.01」が作成され、
レジスタTMPCNTの内容が「−1」の場合はレート
Rとして「0.99」が作成される。このレートRは、
次のステップS57において、新テンポスピードを算出
するために使用される。
Next, the rate R is created according to the contents of the register TMPCNT (step S56). The correspondence between the contents of the register TMPCNT and the rate R is shown in FIG.
It is stored in the ROM 11 as a conversion table in the format shown in FIG. That is, the content of the register TMPCNT is "+".
In the case of "1", "1.01" is created as the rate R,
When the content of the register TMPCNT is "-1", "0.99" is created as the rate R. This rate R is
In the next step S57, it is used to calculate the new tempo speed.

【0107】次いで、RAM12のテンポレジスタに格
納されている現テンポスピード値にレートRが乗算され
て新テンポスピード値が算出される(ステップS5
7)。次いで、算出された新テンポスピード値がテンポ
リミッタを通されることにより、テンポスピード値が
「30」から「300」の範囲に入るように調整される
(ステップS58)。テンポリミッタは例えばCPU1
0の処理により構成することができ、上記乗算の結果が
「30」以下になったら「30」に、また「300」以
上になったら「300」にそれぞれ調整される。
Next, the current tempo speed value stored in the tempo register of the RAM 12 is multiplied by the rate R to calculate the new tempo speed value (step S5).
7). Then, the calculated new tempo speed value is adjusted by the tempo limiter so that the tempo speed value falls within the range of "30" to "300" (step S58). The temp limiter is, for example, the CPU 1.
It can be configured by processing 0, and is adjusted to "30" when the result of the multiplication is "30" or less and "300" when the result is "300" or more.

【0108】次いで、タイマA16のプリセット値が更
新される(ステップS59)。即ち、新テンポスピード
となるような時間間隔で割込信号を発生させるためのデ
ータがタイマA16にセットされる。これにより、以後
はタイマA16から新テンポスピードに対応した時間間
隔で割込信号が発生され、後述するタイマA割込処理に
おいて残存ゲートタイムが更新される。これにより、残
存ゲートタイムを更新する時間が新テンポスピードに応
じて行われることになり、新テンポスピードに応じた自
動演奏が行われることになる。
Then, the preset value of the timer A16 is updated (step S59). That is, the data for generating the interrupt signal is set in the timer A16 at a time interval that provides the new tempo speed. Accordingly, thereafter, the interrupt signal is generated from the timer A16 at a time interval corresponding to the new tempo speed, and the remaining gate time is updated in the timer A interrupt process described later. As a result, the time for updating the remaining gate time is performed according to the new tempo speed, and the automatic performance according to the new tempo speed is performed.

【0109】次いで、新テンポスピード値がテンポスピ
ード表示器132に送られ、更新されたテンポスピード
値が表示される(ステップS60)。その後、このテン
ポスピード処理1ルーチンからリターンしてパネル制御
処理ルーチンに戻る。
Next, the new tempo speed value is sent to the tempo speed display 132 and the updated tempo speed value is displayed (step S60). Thereafter, the routine returns from the tempo speed processing 1 routine and returns to the panel control processing routine.

【0110】上記ステップS50で、アップダウンスイ
ッチ133、つまりアップスイッチ133A又はダウン
スイッチ133Bの何れかのオンイベントでないことが
判断されると、TMPONフラグは「0」にクリアされ
る(ステップS61)。これにより、アップスイッチ1
33A及びダウンスイッチ133Bの何れも押されてい
ないことが判断され、後述するタイマB割込処理ルーチ
ンにおけるオートインクリメント機能を実現するための
処理は行われない。その後、このテンポスピード処理1
ルーチンからリターンしてパネル制御処理ルーチンに戻
る。
When it is determined in step S50 that the up / down switch 133, that is, either the up switch 133A or the down switch 133B is not an on event, the TMPON flag is cleared to "0" (step S61). As a result, the up switch 1
It is determined that neither 33A nor the down switch 133B is pressed, and the processing for realizing the auto increment function in the timer B interrupt processing routine described later is not performed. After that, this tempo speed processing 1
The routine returns and returns to the panel control processing routine.

【0111】(5)テンポスピード処理2(図7) 次に、パネル制御処理ルーチンのステップS33で実行
されるテンポスピード処理2の詳細について、図7のフ
ローチャートを参照しながら説明する。このテンポスピ
ード処理2では、ホイール155の操作に応じてテンポ
スピードを変更する処理が行われる。このテンポスピー
ド処理2は変更手段に対応するものである。
(5) Tempo Speed Processing 2 (FIG. 7) Next, details of the tempo speed processing 2 executed in step S33 of the panel control processing routine will be described with reference to the flowchart of FIG. In the tempo speed process 2, a process of changing the tempo speed according to the operation of the wheel 155 is performed. This tempo speed processing 2 corresponds to the changing means.

【0112】テンポスピード処理2では、先ず、ホイー
ルデータがレジスタTMPCNTにセットされる(ステ
ップS70)。ホイールデータとしては、新パネルデー
タに含まれるホイールデータが使用され、例えば図15
に示されるように、「+10」〜「−10」までの値が
用いられる。次いで、レジスタTMPCNTの内容が
「0」であるかどうかが調べられる(ステップS7
1)。ここで、レジスタTMPCNTの内容が「0」で
ないことが判断されると、つまりホイール155がセン
ター位置から移動されたことが判断されると、TMPO
Nフラグが「1」にセットされる(ステップS72)。
これにより、後述するタイマB割込処理ルーチンでオー
トインクリメント機能を実現するための処理が行われる
(詳細は後述する)。
In the tempo speed process 2, first, wheel data is set in the register TMPCNT (step S70). As the wheel data, the wheel data included in the new panel data is used.
As shown in, values from "+10" to "-10" are used. Then, it is checked whether the content of the register TMPCNT is "0" (step S7).
1). Here, when it is determined that the content of the register TMPCNT is not "0", that is, when it is determined that the wheel 155 has been moved from the center position, the TMPO
The N flag is set to "1" (step S72).
As a result, the processing for realizing the auto-increment function is performed in the timer B interrupt processing routine described later (details will be described later).

【0113】次いで、カウンタTMPTIMがゼロにク
リアされる(ステップS73)。これにより、後述する
タイマB割込処理ルーチンでカウンタTMPTIMがゼ
ロからカウントを開始され、オートインクリメント機能
を実現するための時間の計数が開始される(詳細は後述
する)。
Then, the counter TMPTIM is cleared to zero (step S73). As a result, the counter TMPTIM starts counting from zero in the timer B interrupt processing routine, which will be described later, and starts counting the time for implementing the auto-increment function (details will be described later).

【0114】次いで、レジスタTMPCNTの内容に応
じてレートRが作成される(ステップS74)。レジス
タTMPCNTの内容とレートRとの対応は、例えば図
15に示す形式で変換テーブルとしてROM11に格納
されている。即ち、ホイール155の操作位置に応じて
レジスタTMPCNTにセットされた「+10」から
「−10」までの値に応じてレートR「1.10」〜
「0.90」(「1.00」を除く。)が作成される。
このレートRは、次のステップS75において、新テン
ポスピードを算出するために使用される。
Then, the rate R is created according to the contents of the register TMPCNT (step S74). The correspondence between the contents of the register TMPCNT and the rate R is stored in the ROM 11 as a conversion table in the format shown in FIG. 15, for example. That is, the rate R “1.10” to the value of “+10” to “−10” set in the register TMPCNT according to the operation position of the wheel 155.
"0.90" (excluding "1.00") is created.
This rate R is used to calculate the new tempo speed in the next step S75.

【0115】次いで、RAM12のテンポレジスタに格
納されている現テンポスピード値にレートRが乗算され
て新テンポスピード値が算出され(ステップS75)、
算出された新テンポスピード値がテンポリミッタを通さ
れ(ステップS76)、タイマA16のプリセット値が
更新され(ステップS77)、更新されたテンポスピー
ド値が表示される(ステップS78)。上記ステップS
75〜78の各処理は、上述したテンポスピード処理1
のステップS57〜60の処理と同じである。その後、
このテンポスピード処理2ルーチンからリターンしてパ
ネル制御処理ルーチンに戻る。
Next, the current tempo speed value stored in the tempo register of the RAM 12 is multiplied by the rate R to calculate a new tempo speed value (step S75).
The calculated new tempo speed value is passed through the tempo limiter (step S76), the preset value of the timer A16 is updated (step S77), and the updated tempo speed value is displayed (step S78). Step S above
Each processing of 75 to 78 is the tempo speed processing 1 described above.
This is the same as the processing of steps S57 to S60. afterwards,
The routine returns from this tempo speed processing 2 routine and returns to the panel control processing routine.

【0116】上記ステップS70で、レジスタTMPC
NTの内容が「0」であることが判断されると、つまり
ホイール155がセンター位置に戻されたことが判断さ
れると、TMPONフラグが「0」にクリアされる(ス
テップS79)。これにより、後述するタイマB割込処
理ルーチンでオートインクリメント機能を実現するため
の処理は行われない(詳細は後述する)。その後、この
テンポスピード処理2ルーチンからリターンしてパネル
制御処理ルーチンに戻る。
In step S70, the register TMPC
When it is determined that the content of NT is "0", that is, when the wheel 155 is returned to the center position, the TMPON flag is cleared to "0" (step S79). As a result, the processing for realizing the auto-increment function in the timer B interrupt processing routine described later is not performed (details will be described later). After that, the routine returns from this tempo speed processing 2 routine and returns to the panel control processing routine.

【0117】(6)タイマA割込処理(図8) 次にタイマA割込処理ルーチンについて説明する。この
タイマA割込処理ルーチンは、タイマA16から割込信
号がCPU10の割込信号入力端子INT2に供給され
ることにより起動される。従って、その時点で設定され
ているテンポにおける1ステップタイムに対応する時間
間隔で、換言すればテンポスピードに応じた時間間隔で
このタイマA割込処理ルーチンが起動されることにな
る。
(6) Timer A Interrupt Processing (FIG. 8) Next, the timer A interrupt processing routine will be described. This timer A interrupt processing routine is started by supplying an interrupt signal from the timer A16 to the interrupt signal input terminal INT2 of the CPU 10. Therefore, this timer A interrupt processing routine is started at a time interval corresponding to one step time at the tempo set at that time, in other words, at a time interval corresponding to the tempo speed.

【0118】タイマA割込処理では、先ず、自動演奏フ
ラグがオンになっているかどうかが調べられる(ステッ
プS80)。即ち、本テンポスピード制御装置が適用さ
れた自動演奏装置が自動演奏中であるかどうかが調べら
れる。ここで自動演奏フラグがオンであることが判断さ
れると、拍レジスタBTRの内容がインクリメントされ
(ステップS81)、その結果が「192」以上になっ
たかどうかが調べられる(ステップS82)。そして、
「192」以上になったことが判断されると、拍レジス
タBTRがゼロにクリアされ(ステップS83)、小節
レジスタBRRがインクリメントされる(ステップS8
4)。上記ステップS82で「192」以上でないこと
が判断されると、ステップS83及びS84の処理はス
キップされる。上記ステップS81〜S84の処理によ
り、1ステップタイム毎に小節レジスタBRRと拍レジ
スタBTRとが連結された状態でインクリメントされる
機能が実現されている。
In the timer A interrupt process, it is first checked whether or not the automatic performance flag is turned on (step S80). That is, it is checked whether or not the automatic performance device to which the present tempo speed control device is applied is performing automatic performance. If it is determined that the automatic performance flag is on, the content of the beat register BTR is incremented (step S81), and it is checked whether the result is "192" or more (step S82). And
When it is determined that the number is "192" or more, the beat register BTR is cleared to zero (step S83), and the bar register BRR is incremented (step S8).
4). If it is determined in step S82 that it is not "192" or more, the processes of steps S83 and S84 are skipped. The processing of steps S81 to S84 realizes the function of incrementing the bar register BRR and the beat register BTR for each step time in a linked state.

【0119】次いで、全パートのゲートタイムの更新が
行われる(ステップS85)。即ち、全パートの残存ゲ
ートタイムを記憶しているレジスタ群(RAM12に設
けられている。)に含まれる残存ゲートタイムが「0」
以外のものはデクリメントされる。そして、このデクリ
メントの結果、新たにゼロになった残存ゲートタイムが
あれば、その残存ゲートタイムに対応するキーコードに
対してキーオフ出力が行われ発音が停止される。
Then, the gate times of all parts are updated (step S85). That is, the remaining gate time included in the register group (provided in the RAM 12) storing the remaining gate time of all parts is “0”.
Anything other than is decremented. Then, as a result of this decrement, if there is a remaining gate time that has become zero, a key-off output is performed for the key code corresponding to the remaining gate time, and sounding is stopped.

【0120】上記ステップS80で自動演奏フラグがオ
ンでないことが判断されると、自動演奏中でないことが
認識され、全パートのゲートタイムの更新のみが行われ
る。その後、このタイマA割込処理ルーチンからリター
ンして割り込まれた位置に戻る。このように、テンポス
ピードに依存してコールされる本ルーチンにより残存ゲ
ートタイムをデクリメントすることにより、テンポスピ
ードに応じた発音の長さが決定されるようになってい
る。
If it is determined in step S80 that the automatic performance flag is not on, it is recognized that the automatic performance is not in progress, and only the gate times of all parts are updated. Then, the routine returns from the timer A interrupt processing routine to return to the interrupted position. Thus, by decrementing the remaining gate time by this routine which is called depending on the tempo speed, the length of sound generation according to the tempo speed is determined.

【0121】(7)タイマB割込処理(図9) 次にタイマB割込処理について図9に示したフローチャ
ートを参照しながら説明する。このタイマB割込処理で
はオートインクリメント機能が実現されている。オート
インクリメント機能は、アップダウンスイッチ133又
はホイール155の操作が開始されてから0.8秒経過
し、又は前回にテンポスピード値が更新されてから0.
8秒経過する毎に、現テンポスピード値をレートRに応
じて変更して新テンポスピード値とする処理を行うこと
により実現されている。なお、上記「0.8秒」という
値は一例であり、この値に限定されず任意の値を用いる
ことができる。
(7) Timer B Interrupt Process (FIG. 9) Next, the timer B interrupt process will be described with reference to the flowchart shown in FIG. In this timer B interrupt processing, the auto increment function is realized. The auto-increment function is 0.8 seconds after the operation of the up / down switch 133 or the wheel 155 is started or the tempo speed value is updated to 0.
This is realized by changing the current tempo speed value according to the rate R and setting the new tempo speed value every 8 seconds. The value of “0.8 seconds” is an example, and the value is not limited to this value and any value can be used.

【0122】このタイマB割込処理ルーチンは、タイマ
B20から割込信号がCPU10の割込信号入力端子I
NT3に供給されることにより起動される。従って、こ
のタイマB割込処理ルーチンは0.1秒間隔で起動され
る。
In this timer B interrupt processing routine, the interrupt signal from the timer B20 is the interrupt signal input terminal I of the CPU 10.
It is started by being supplied to NT3. Therefore, this timer B interrupt processing routine is started at 0.1 second intervals.

【0123】タイマB割込処理では、先ず、TMPON
フラグが「1」であるかどうかが調べられる(ステップ
S90)。ここでTMPONフラグが「1」でないこと
が判断されると、アップダウンスイッチ133は押され
ていないか又はホイール155は操作されていないこと
を認識し、ステップS91以下の処理は行わずにこのタ
イマB割込処理ルーチンからリターンして割り込まれた
位置に戻る。即ち、オートインクリメント機能は動作し
ない。
In the timer B interrupt processing, first, TMPON
It is checked whether the flag is "1" (step S90). If it is determined that the TMPON flag is not "1", it is recognized that the up / down switch 133 has not been pressed or the wheel 155 has not been operated, and this timer is skipped without performing the processing of step S91 and thereafter. Return from the B interrupt processing routine to return to the interrupted position. That is, the auto increment function does not operate.

【0124】一方、TMPONフラグが「1」であるこ
とが判断されると、アップダウンスイッチ133が押さ
れ続けているか又はホイール155は操作され続けてい
ることを認識し、ステップS91以下のオートインクリ
メント処理が行われる。即ち、先ずレジスタTMPTI
Mの内容がインクリメントされる(ステップS91)。
そして、レジスタTMPTIMの内容が「8」以上であ
るかどうかが調べられる(ステップS92)。ここで、
「8」以上でないことが判断されると、未だ0.8秒経
過しておらず新テンポスピード値の算出タイミングに至
っていないことが認識され、ステップS93以下の処理
は行わずにこのタイマB割込処理ルーチンからリターン
して割り込まれた位置に戻る。このステップS90〜S
92の処理は、本発明の操作続行検出手段及びタイミン
グ発生手段に対応する。
On the other hand, when it is determined that the TMPON flag is "1", it is recognized that the up / down switch 133 is continuously pressed or the wheel 155 is continuously operated, and the auto increment in step S91 and thereafter is performed. Processing is performed. That is, first, the register TMPTI
The content of M is incremented (step S91).
Then, it is checked whether or not the content of the register TMPTIM is "8" or more (step S92). here,
If it is determined that it is not "8" or more, it is recognized that 0.8 seconds has not elapsed yet and the timing for calculating the new tempo speed value has not yet been reached. Return from the interrupt processing routine to return to the interrupted position. This step S90-S
The processing of 92 corresponds to the operation continuation detecting means and the timing generating means of the present invention.

【0125】一方、「8」以上であることが判断される
と、アップダウンスイッチ133又はホイール155の
操作が開始されてから0.8秒経過し、又は前回にテン
ポスピード値が更新されてから0.8秒経過したことが
認識され、レジスタTMPTIMに「0」がセットされ
る(ステップS93)。これにより、0.8秒後に再
度、新テンポスピードの算出が行われるように設定され
る。
On the other hand, if it is determined that the value is "8" or more, 0.8 seconds have passed since the operation of the up / down switch 133 or the wheel 155 was started, or since the tempo speed value was updated last time. It is recognized that 0.8 seconds has elapsed, and "0" is set in the register TMPTIM (step S93). As a result, the new tempo speed is set to be calculated again after 0.8 seconds.

【0126】次いで、レジスタTMPCNTの内容に応
じてレートRが作成される(ステップS94)。この
際、アップスイッチ133Aが押し続けられることによ
りオートインクリメント機能が実現される場合は、レー
トRとして「1.01」が作成され、ダウンスイッチ1
33Bが押し続けられることによりオートインクリメン
ト機能が実現される場合は、レートRとして「0.9
9」が作成され、ホイール155が操作され続けること
によりオートインクリメント機能が実現される場合は、
ホイール155の操作位置に応じて、「1.10」〜
「0.90」(「1.00」を除く。)の何れかのレー
トRが作成される。
Then, the rate R is created according to the contents of the register TMPCNT (step S94). At this time, if the auto increment function is realized by continuously pressing the up switch 133A, "1.01" is created as the rate R, and the down switch 1
When the auto-increment function is realized by continuously pressing 33B, the rate R is set to "0.9.
9 ”is created and the auto increment function is realized by continuously operating the wheel 155,
Depending on the operation position of the wheel 155, "1.10" ~
Any rate R of "0.90" (excluding "1.00") is created.

【0127】次いで、RAM12のテンポレジスタに格
納されている現テンポスピード値にレートRが乗算され
て新テンポスピード値が算出され(ステップS95)、
算出された新テンポスピード値がテンポリミッタを通さ
れ(ステップS96)、タイマA16のプリセット値が
更新され(ステップS97)、更新されたテンポスピー
ド値が表示される(ステップS98)。上記ステップS
95〜98の各処理は、上述したテンポスピード処理1
のステップS57〜60の処理と同じである。その後、
このタイマB割込処理ルーチンからリターンして割り込
まれた位置に戻る。
Next, the current tempo speed value stored in the tempo register of the RAM 12 is multiplied by the rate R to calculate a new tempo speed value (step S95).
The calculated new tempo speed value is passed through the tempo limiter (step S96), the preset value of the timer A16 is updated (step S97), and the updated tempo speed value is displayed (step S98). Step S above
Each processing of 95 to 98 is the tempo speed processing 1 described above.
This is the same as the processing of steps S57 to S60. afterwards,
This timer B interrupt processing routine returns and returns to the interrupted position.

【0128】以上説明したように、本実施例1において
は、正側と負側との双方向に操作可能なアップダウンス
イッチ133が操作されるとその正又は負の変位が検出
され、その変位に応じて現テンポスピードが所定の割合
で変更される。より具体的には、正の変位が検出された
場合は、上記(2)式の「±M」として「+M」が用い
られ、負の変位が検出された場合は、上記(2)式のM
として「−M」が用いられ、現テンポスピードが所定の
割合で増加又は減少される。
As described above, in the first embodiment, when the up / down switch 133 which can be operated in both the positive side and the negative side is operated, its positive or negative displacement is detected, and the displacement is detected. The current tempo speed is changed at a predetermined rate according to. More specifically, when a positive displacement is detected, “+ M” is used as “± M” in the equation (2), and when a negative displacement is detected, the equation (2) is calculated. M
Is used to increase or decrease the current tempo speed at a predetermined rate.

【0129】上記(2)式に示されるように、現テンポ
スピードに所定の係数「(1.00±M)」を乗じるこ
とにより新テンポスピードが算出されるので、現テンポ
スピードが大きければテンポ操作子の1回の操作で変更
されるテンポスピードの割合は大きくなり、逆に、現テ
ンポスピードが小さければその割合は小さくなる。従っ
て、現テンポスピードがテンポ操作子を操作すべき回数
に与える影響は小さくなり、目標テンポスピードに素早
く近づけることができる。
As shown in the equation (2), the new tempo speed is calculated by multiplying the current tempo speed by a predetermined coefficient "(1.00 ± M)". The proportion of the tempo speed changed by one operation of the manipulator becomes large, and conversely, if the current tempo speed is small, the proportion becomes small. Therefore, the influence of the current tempo speed on the number of times the tempo operator should be operated is reduced, and the target tempo speed can be quickly approached.

【0130】また、アップダウンスイッチ133が操作
される度に現テンポスピード値が、上記(2)式で示さ
れるような関数に従って変更されるので、テンポスピー
ドは指数関数的に増減される。かかる指数関数的なテン
ポスピードの変化は人の感覚に沿ったものであり、テン
ポ変化に不自然さがなくなり操作性に優れたものとなっ
ている。
Also, each time the up / down switch 133 is operated, the current tempo speed value is changed according to the function shown in the above equation (2), so the tempo speed is exponentially increased or decreased. Such an exponential change in tempo speed is in accordance with the human sense, and the tempo change is not unnatural, resulting in excellent operability.

【0131】また、本実施例1においては、非操作位置
としてのセンター位置を有し、正側と負側との双方向に
操作可能なホイール155が操作されるとその正又は負
の変位量が検出され、その変位量に応じて現テンポスピ
ードが所定の割合で変更される。より具体的には、正の
変位量が検出された場合は、上記(2)式の「±M」と
して「+M」が用いられ、負の変位量が検出された場合
は、上記(2)式のMとして「−M」が用いられ、現テ
ンポスピードが上記変位量に応じた割合で増加又は減少
される。かかる構成により、ホイール155の1回の操
作で現テンポスピードを大きく変化させることができ、
迅速に目標テンポスピードに到達できる。
In the first embodiment, when the wheel 155 having the center position as the non-operating position and operable in both the positive side and the negative side is operated, its positive or negative displacement amount is changed. Is detected, and the current tempo speed is changed at a predetermined rate according to the displacement amount. More specifically, when a positive displacement amount is detected, “+ M” is used as “± M” in the above formula (2), and when a negative displacement amount is detected, the above (2) is used. "-M" is used as M in the expression, and the current tempo speed is increased or decreased at a rate according to the displacement amount. With this configuration, the current tempo speed can be greatly changed by one operation of the wheel 155,
The target tempo speed can be reached quickly.

【0132】また、本実施例1では、オートインクリメ
ント機能が実現されている。即ち、アップダウンスイッ
チ133又はホイール155が所定時間(例えば0.8
秒)以上操作され続けることにより操作続行中であるこ
とが検出されると、その操作続行中であることが検出さ
れている間は、例えば0.8秒毎に現テンポスピードが
所定の割合で変更される。
In addition, in the first embodiment, the auto increment function is realized. That is, the up / down switch 133 or the wheel 155 is operated for a predetermined time (for example, 0.8
If it is detected that the operation is being continued by continuing to operate for more than 2 seconds), the current tempo speed is maintained at a predetermined rate, for example, every 0.8 seconds while the operation is being detected. Be changed.

【0133】このように、アップダウンスイッチ133
又はホイール155を操作し続けることにより自動的に
テンポスピードを増加又は減少させることができるの
で、テンポ設定操作が簡単且つ迅速になるという利点が
ある。しかも、現テンポスピードが大きければ一定時間
毎に更新されるテンポスピードの割合は大きくなり、逆
に、現テンポスピードが小さければその割合は小さくな
る。従って、現テンポスピードが、テンポ操作子を操作
し続けている時間に与える影響は小さくなり、人の感覚
に沿ったテンポスピードの変化で目標テンポスピードに
素早く近づけることができる。
In this way, the up / down switch 133
Alternatively, since the tempo speed can be automatically increased or decreased by continuously operating the wheel 155, there is an advantage that the tempo setting operation becomes simple and quick. Moreover, if the current tempo speed is high, the proportion of tempo speeds updated at regular time intervals is large, and conversely, if the current tempo speed is small, the proportion is small. Therefore, the influence of the current tempo speed on the time during which the tempo operator continues to operate is reduced, and the tempo speed can be brought close to the target tempo speed by changing the tempo speed according to the human sense.

【0134】(実施例2)上記実施例1が、オートイン
クリメント機能を実現するに際し、現テンポスピードに
所定の係数を乗じることにより現テンポスピードをテン
ポ操作子の操作に応じて指数関数的に変化させて操作性
の向上を図ろうとするのに対し、この実施例2は、現テ
ンポスピードに所定の定数を加算することによりテンポ
スピードを変更するものであり、その加算の時間間隔を
テンポスピードに応じて変更することにより上記実施例
1と同様の効果を発揮させようとするものである。以
下、実施例1との相違点を中心に説明する。
(Embodiment 2) When the auto increment function is realized in Embodiment 1, the current tempo speed is exponentially changed according to the operation of the tempo operator by multiplying the current tempo speed by a predetermined coefficient. In the second embodiment, the tempo speed is changed by adding a predetermined constant to the current tempo speed, and the time interval of the addition is set to the tempo speed. By changing it accordingly, the same effect as that of the above-described first embodiment is to be exhibited. Hereinafter, differences from the first embodiment will be mainly described.

【0135】本発明の実施例2のテンポスピード制御装
置が適用された自動演奏装置としては、図1のブロック
図に示したものと同様のものが使用される。ただし、タ
イマB20は不要であり、従って、CPU10の割込信
号入力端子INT3も不要である。また、操作パネル1
3(図2)も実施例1で使用したものと同一のものが使
用される。
As the automatic performance device to which the tempo speed control device of the second embodiment of the present invention is applied, the same one as shown in the block diagram of FIG. 1 is used. However, the timer B20 is unnecessary, and therefore the interrupt signal input terminal INT3 of the CPU 10 is also unnecessary. In addition, the operation panel 1
3 (FIG. 2) is the same as that used in the first embodiment.

【0136】次に、本発明のテンポスピード制御装置が
適用された自動演奏装置の実施例2の動作につき、図1
0〜図13に示したフローチャートを参照しながら詳細
に説明する。なお、実施例1で使用したメイン処理(図
3)、MIDI−IN割込処理(図4)及びパネル制御
処理(図5)は、本実施例2でもそのまま使用される。
これらの説明は省略する。
Next, the operation of the second embodiment of the automatic performance device to which the tempo speed control device of the present invention is applied will be described with reference to FIG.
This will be described in detail with reference to the flowcharts shown in FIGS. The main process (FIG. 3), the MIDI-IN interrupt process (FIG. 4) and the panel control process (FIG. 5) used in the first embodiment are also used in the second embodiment as they are.
These explanations are omitted.

【0137】(1)テンポスピード処理1(図10) パネル制御処理ルーチンのステップS31で実行される
テンポスピード処理1の詳細について、図10のフロー
チャートを参照しながら説明する。このテンポスピード
処理1では、アップダウンスイッチ133の操作に応じ
てテンポスピードを変更する処理が行われる。このテン
ポスピード処理1は変更手段に対応するものである。
(1) Tempo Speed Processing 1 (FIG. 10) Details of the tempo speed processing 1 executed in step S31 of the panel control processing routine will be described with reference to the flowchart of FIG. In the tempo speed process 1, a process of changing the tempo speed according to the operation of the up / down switch 133 is performed. This tempo speed processing 1 corresponds to the changing means.

【0138】テンポスピード処理1では、先ず、アップ
ダウンスイッチ133のオンイベントがあったかどうか
が調べられ(イベント100)、オンイベントがあった
ことが判断されると、TMPONフラグが「1」にセッ
トされ(ステップS101)、次いで、カウンタTMP
TIMがゼロにクリアされる(ステップS102)。以
上の処理は図6におけるステップS50〜S52の処理
と同じである。
In the tempo speed process 1, first, it is checked whether or not there is an on event of the up / down switch 133 (event 100), and when it is judged that there is an on event, the TMPON flag is set to "1". (Step S101), then the counter TMP
TIM is cleared to zero (step S102). The above processing is the same as the processing of steps S50 to S52 in FIG.

【0139】次いで、上記ステップS50でオンイベン
トがあったスイッチはアップスイッチ133Aであるか
どうかが調べられ(ステップS103)、アップスイッ
チ133Aのイベントであることが判断されるとレジス
タAに「+1」がセットされ(ステップS104)、そ
うでなければダウンスイッチ133Bのイベントである
ことが認識されてレジスタAに「−1」がセットされる
(ステップS105)。ここで、レジスタAはRAM1
2に定義されるレジスタであり、テンポスピード値を変
更する際の加算値を記憶するために使用される。
Next, in step S50, it is checked whether or not the switch having the ON event is the up switch 133A (step S103). When it is determined that the event is the up switch 133A, "+1" is stored in the register A. Is set (step S104), otherwise it is recognized as an event of the down switch 133B and "-1" is set in the register A (step S105). Here, register A is RAM1
2 is a register defined by 2 and is used to store the added value when changing the tempo speed value.

【0140】次いで、RAM12のテンポレジスタに格
納されている現テンポスピード値に加算値Aが加算され
て新テンポスピード値が算出される(ステップS10
6)。次いで、算出された新テンポスピード値がテンポ
リミッタを通され(ステップS107)、タイマA16
のプリセット値が更新され(ステップS108)、新テ
ンポスピード値がテンポスピード表示器132に送られ
て更新されたテンポスピード値が表示される(ステップ
S109)。このステップS107〜S109の処理
は、図6におけるステップS58〜S60の処理と同じ
である。その後、このテンポスピード処理2ルーチンか
らリターンしてパネル制御処理ルーチンに戻る。
Next, the addition value A is added to the current tempo speed value stored in the tempo register of the RAM 12 to calculate the new tempo speed value (step S10).
6). Then, the calculated new tempo speed value is passed through the tempo limiter (step S107), and the timer A16
Is updated (step S108), the new tempo speed value is sent to the tempo speed indicator 132, and the updated tempo speed value is displayed (step S109). The processing of steps S107 to S109 is the same as the processing of steps S58 to S60 in FIG. After that, the routine returns from this tempo speed processing 2 routine and returns to the panel control processing routine.

【0141】上記ステップS100で、アップダウンス
イッチ133のオンイベントでないことが判断される
と、TMPONフラグは「0」にクリアされる(ステッ
プS109A)。これにより、アップスイッチ133A
及びダウンスイッチ133Bの何れも押されていないこ
とが判断され、後述するオートインク処理ルーチンにお
けるオートインクリメント機能を実現するための処理は
行われない。その後、このテンポスピード処理2ルーチ
ンからリターンしてパネル制御処理ルーチンに戻る。
If it is determined in step S100 that the up / down switch 133 is not the on event, the TMPON flag is cleared to "0" (step S109A). As a result, the up switch 133A
It is determined that neither the down switch 133B nor the down switch 133B is pressed, and the processing for realizing the auto increment function in the auto ink processing routine described later is not performed. After that, the routine returns from this tempo speed processing 2 routine and returns to the panel control processing routine.

【0142】このように、このテンポスピード処理1で
は、TMPONフラグがアップダウンスイッチ133の
操作に応じてセット又はクリアされる点を除けば、従来
のテンポスピード制御装置の機能と同一の機能が実現さ
れている。即ち、アップスイッチ133Aが押されると
テンポスピードが「+1」され、ダウンスイッチ133
Bが押されるとテンポスピードが[−1」される。
As described above, in the tempo speed processing 1, the same function as that of the conventional tempo speed control device is realized except that the TMPON flag is set or cleared in accordance with the operation of the up / down switch 133. Has been done. That is, when the up switch 133A is pressed, the tempo speed is incremented by “+1”, and the down switch 133 is pressed.
When B is pressed, the tempo speed is decremented by "-1".

【0143】(2)テンポスピード処理2(図11) 次に、パネル制御処理ルーチンのステップS33で実行
されるテンポスピード処理2の詳細について、図11の
フローチャートを参照しながら説明する。このテンポス
ピード処理2では、ホイール155の操作に応じてテン
ポスピードを変更する処理が行われる。このテンポスピ
ード処理2は変更手段に対応するものである。
(2) Tempo Speed Processing 2 (FIG. 11) Next, details of the tempo speed processing 2 executed in step S33 of the panel control processing routine will be described with reference to the flowchart of FIG. In the tempo speed process 2, a process of changing the tempo speed according to the operation of the wheel 155 is performed. This tempo speed processing 2 corresponds to the changing means.

【0144】テンポスピード処理2では、先ず、ホイー
ルデータがレジスタTMPCNTにセットされ(ステッ
プS110)、次いで、レジスタTMPCNTの内容が
「0」であるかどうかが調べられる(ステップS11
1)。ここで、レジスタTMPCNTの内容が「0」で
ないことが判断されるとTMPONフラグが「1」にセ
ットされ(ステップS72)、次いで、カウンタTMP
TIMがゼロにクリアされる(ステップS113)。以
上の処理は、図7におけるステップS70〜S73の処
理と同じである。
In the tempo speed processing 2, first, wheel data is set in the register TMPCNT (step S110), and then it is checked whether or not the content of the register TMPCNT is "0" (step S11).
1). When it is determined that the content of the register TMPCNT is not "0", the TMPON flag is set to "1" (step S72), and then the counter TMP is set.
TIM is cleared to zero (step S113). The above processing is the same as the processing of steps S70 to S73 in FIG.

【0145】次いで、レジスタTMPCNTの内容(ホ
イールデータ)に応じて加算値Aが作成される(ステッ
プS114)。この加算値Aは、次のステップS115
において、新テンポスピードを算出するために使用され
る。
Next, the additional value A is created according to the contents (wheel data) of the register TMPCNT (step S114). This added value A is used in the next step S115.
, Is used to calculate the new tempo speed.

【0146】次いで、RAM12のテンポレジスタに格
納されている現テンポスピード値に加算値Aが加算され
て新テンポスピード値が算出され(ステップS11
5)、算出された新テンポスピード値がテンポリミッタ
を通され(ステップS116)、タイマA16のプリセ
ット値が更新され(ステップS117)、更新されたテ
ンポスピード値が表示される(ステップS118)。上
記ステップS115〜S118の処理は、図10のステ
ップS106〜S109の処理と同じである。その後、
このテンポスピード処理2ルーチンからリターンしてパ
ネル制御処理ルーチンに戻る。
Next, the addition value A is added to the current tempo speed value stored in the tempo register of the RAM 12 to calculate the new tempo speed value (step S11).
5) The calculated new tempo speed value is passed through the tempo limiter (step S116), the preset value of the timer A16 is updated (step S117), and the updated tempo speed value is displayed (step S118). The processes of steps S115 to S118 are the same as the processes of steps S106 to S109 of FIG. afterwards,
The routine returns from this tempo speed processing 2 routine and returns to the panel control processing routine.

【0147】上記ステップS111で、レジスタTMP
CNTの内容が「0」であることが判断されると、つま
りホイール155がセンター位置に戻されたことが判断
されると、TMPONフラグが「0」にクリアされる
(ステップS119)。これにより、後述するオートイ
ンク処理ルーチンでオートインクリメント機能を実現す
るための処理は行われない(詳細は後述する)。その
後、このテンポスピード処理2ルーチンからリターンし
てパネル制御処理ルーチンに戻る。
In step S111, the register TMP
When it is determined that the content of CNT is "0", that is, when the wheel 155 is returned to the center position, the TMPON flag is cleared to "0" (step S119). As a result, the processing for realizing the auto increment function is not performed in the auto ink processing routine described later (details will be described later). After that, the routine returns from this tempo speed processing 2 routine and returns to the panel control processing routine.

【0148】このように、このテンポスピード処理2で
は、ホイール155の操作に応じてホイール155の変
位量(加算値A)が現テンポスピードに加算又は減算さ
れて新テンポスピードが算出される。従って、ホイール
155を大きく変位させることにより、現テンポスピー
ドを大きく変化させることができるものとなっている。
As described above, in the tempo speed processing 2, the new tempo speed is calculated by adding or subtracting the displacement amount (addition value A) of the wheel 155 in accordance with the operation of the wheel 155. Therefore, the current tempo speed can be greatly changed by largely displacing the wheel 155.

【0149】(3)タイマA割込処理(図12) 次にタイマA割込処理ルーチンについて説明する。この
タイマA割込処理ルーチンは、タイマA16から割込信
号がCPU10の割込信号入力端子INT2に供給され
ることにより起動される。従って、その時点で設定され
ているテンポにおける1ステップタイムに対応する時間
間隔で、換言すればテンポスピードに応じた時間間隔で
このタイマA割込処理ルーチンが起動されることにな
る。
(3) Timer A Interrupt Processing (FIG. 12) Next, the timer A interrupt processing routine will be described. This timer A interrupt processing routine is started by supplying an interrupt signal from the timer A16 to the interrupt signal input terminal INT2 of the CPU 10. Therefore, this timer A interrupt processing routine is started at a time interval corresponding to one step time at the tempo set at that time, in other words, at a time interval corresponding to the tempo speed.

【0150】このタイマA割込処理は、ステップS12
6のオートインク処理が行われることを除き、実施例1
のタイマA割込処理ルーチン(図8)の処理と同じ(ス
テップS80〜85は、それぞれステップS120〜1
25に対応している。)であるので説明は省略する。オ
ートインク処理(ステップS126)は、オートインク
リメント機能を実現するための処理である(詳細は後述
する)。その後、このタイマA割込処理ルーチンからリ
ターンして割り込まれた位置に戻る。このように、テン
ポスピードに依存してオートインク処理ルーチンがコー
ルされることにより、テンポスピードに応じた時間間隔
でテンポスピードの変更が行われることになる。
This timer A interrupt process is performed in step S12.
Example 1 except that the automatic ink treatment of No. 6 is performed
8 is the same as the timer A interrupt processing routine (FIG. 8) (steps S80 to 85 are steps S120 to 1 respectively).
It corresponds to 25. ), The description is omitted. The auto ink process (step S126) is a process for realizing the auto increment function (details will be described later). Then, the routine returns from the timer A interrupt processing routine to return to the interrupted position. In this way, by calling the auto ink processing routine depending on the tempo speed, the tempo speed is changed at a time interval according to the tempo speed.

【0151】(4)オートインク処理(図13) 次に、オートインク処理について図13に示したフロー
チャートを参照しながら説明する。このオートインク処
理ではオートインクリメント機能が実現されている。オ
ートインクリメント機能は、アップダウンスイッチ13
3又はホイール155の操作が開始されてから所定時間
経過し、又は前回にテンポスピード値が更新されてから
所定時間経過する毎に、現テンポスピード値を加算値A
に応じて変更して新テンポスピード値とする処理を行う
ことにより実現されている。
(4) Auto Ink Process (FIG. 13) Next, the auto ink process will be described with reference to the flow chart shown in FIG. In this auto ink process, the auto increment function is realized. The auto increment function has an up / down switch 13
3 or the current tempo speed value is added every time a predetermined time has elapsed since the operation of the wheel 155 was started or a predetermined time has elapsed since the tempo speed value was updated last time.
It is realized by performing a process for changing the value to a new tempo speed value.

【0152】このオートインク処理ルーチンは、タイマ
A割込処理ルーチンからコールされる。従って、このオ
ートインク処理ルーチンはテンポスピードに応じた時間
間隔で起動される。
This auto ink processing routine is called from the timer A interrupt processing routine. Therefore, this auto ink processing routine is started at time intervals according to the tempo speed.

【0153】オートインク処理では、先ず、TMPON
フラグが「1」であるかどうかが調べられ(ステップS
130)、TMPONフラグが「1」でないことが判断
されると、ステップS131以下の処理は行わずにこの
オートインク処理ルーチンからリターンしてタイマA割
込処理ルーチンに戻り、更にタイマA割込処理ルーチン
からもリターンして割り込まれた位置に戻る。即ち、オ
ートインクリメント機能は動作しない。
In the auto ink process, first, TMPON
It is checked whether the flag is "1" (step S
130), if it is determined that the TMPON flag is not "1", the process from step S131 is not performed and the process returns from this auto ink processing routine to the timer A interrupt processing routine. It also returns from the routine and returns to the interrupted position. That is, the auto increment function does not operate.

【0154】一方、TMPONフラグが「1」であるこ
とが判断されると、アップダウンスイッチ133が押さ
れ続けているか又はホイール155は操作され続けてい
ることを認識し、ステップS131以下のオートインク
リメント処理が行われる。即ち、先ずレジスタTMPT
IMの内容がインクリメントされる(ステップS13
1)。そして、レジスタTMPTIMの内容が「32」
以上であるかどうかが調べられる(ステップS13
2)。ここで、「32」以上でないことが判断される
と、未だテンポ更新タイミングに至っていないことが認
識され、ステップS133以下の処理は行わずにこのオ
ートインク処理ルーチンからリターンしてタイマA割込
処理ルーチンに戻り、更にタイマA割込処理ルーチンか
らもリターンして割り込まれた位置に戻る。このステッ
プS130〜S132の処理は、本発明の操作続行検出
手段及びタイミング発生手段に対応する。
On the other hand, when it is determined that the TMPON flag is "1", it is recognized that the up / down switch 133 is continuously pressed or the wheel 155 is continuously operated, and the automatic increment of step S131 and the subsequent steps is performed. Processing is performed. That is, first, the register TMPT
The content of IM is incremented (step S13)
1). Then, the content of the register TMPTIM is "32".
It is checked whether or not the above is satisfied (step S13).
2). If it is determined that the timing is not "32" or more, it is recognized that the tempo update timing has not yet come, and the processing in step S133 and subsequent steps is not performed and the process returns from this auto ink processing routine to return to the timer A interrupt processing. Returning to the routine, the timer A interrupt processing routine also returns to return to the interrupted position. The processes of steps S130 to S132 correspond to the operation continuation detecting means and the timing generating means of the present invention.

【0155】一方、「32」以上であることが判断され
ると、アップダウンスイッチ133又はホイール155
の操作が開始されてから所定時間経過し、又は前回にテ
ンポスピード値が更新されてから所定時間経過したこと
が認識され、レジスタTMPTIMに「0」がセットさ
れる(ステップS133)。これにより、上記所定時間
後に再度、新テンポスピードの算出が行われるように設
定される。
On the other hand, when it is determined that the value is "32" or more, the up / down switch 133 or the wheel 155.
It is recognized that a predetermined time has passed since the operation of (1) was started, or a predetermined time has passed since the tempo speed value was updated last time, and "0" is set in the register TMPTIM (step S133). Thus, the new tempo speed is set to be calculated again after the predetermined time.

【0156】次いで、レジスタTMPCNTの内容に応
じて加算値Aが作成される(ステップS94)。この
際、アップスイッチ133Aが押し続けられることによ
りオートインクリメント機能が実現される場合は、加算
値Aとして「+1」が作成され、ダウンスイッチ133
Bが押し続けられることによりオートインクリメント機
能が実現される場合は、加算値Aとして「−1」が作成
され、ホイール155が操作され続けることによりオー
トインクリメント機能が実現される場合は、ホイール1
55の操作位置に応じて、「−10」〜「+10」の何
れかの加算値Aが作成される。
Next, the added value A is created according to the contents of the register TMPCNT (step S94). At this time, when the auto increment function is realized by continuously pressing the up switch 133A, “+1” is created as the addition value A, and the down switch 133 is created.
When the auto increment function is realized by continuously pressing B, “−1” is created as the addition value A, and when the auto increment function is realized by continuously operating the wheel 155, the wheel 1 is
Depending on the operation position of 55, the added value A of any of "-10" to "+10" is created.

【0157】次いで、レジスタTMPCNTの内容(ホ
イールデータ)に応じて加算値Aが作成され(ステップ
S134)、次いで、RAM12のテンポレジスタに格
納されている現テンポスピード値に加算値Aが加算され
て新テンポスピード値が算出され(ステップS13
5)、算出された新テンポスピード値がテンポリミッタ
を通され(ステップS136)、タイマA16のプリセ
ット値が更新され(ステップS137)、更新されたテ
ンポスピード値が表示される(ステップS138)。上
記ステップS134〜S138の処理は、図11のステ
ップS114〜S118の処理と同じである。その後、
このオートインク処理ルーチンからリターンしてタイマ
A割込処理ルーチンに戻り、更にタイマA割込処理ルー
チンからもリターンして割り込まれた位置に戻る。
Next, the additional value A is created according to the contents (wheel data) of the register TMPCNT (step S134), and then the additional value A is added to the current tempo speed value stored in the tempo register of the RAM 12. A new tempo speed value is calculated (step S13
5) The calculated new tempo speed value is passed through the tempo limiter (step S136), the preset value of the timer A16 is updated (step S137), and the updated tempo speed value is displayed (step S138). The processes of steps S134 to S138 are the same as the processes of steps S114 to S118 of FIG. afterwards,
The routine returns from this auto ink processing routine to the timer A interrupt processing routine, and further returns from the timer A interrupt processing routine to return to the interrupted position.

【0158】なお、上記ステップS132における値
「32」は、テンポスピードの更新間隔を決定するため
に使用される値であり、「32」に限定されず任意の値
を用いることができる。
The value "32" in step S132 is a value used for determining the tempo speed update interval, and is not limited to "32" and any value can be used.

【0159】以上説明したように、本実施例2において
は、アップダウンスイッチ133又はホイール155が
操作された場合の変位(アップダウンスイッチ133の
場合は±1、ホイール155の場合は、−10〜+1
0)を検出し、アップダウンスイッチ133又はホイー
ル155が所定時間以上継続して操作されている間にテ
ンポスピードに応じた時間間隔で発生される各テンポ変
更タイミングにおいて、上記変位を加算又は減算するこ
とにより現テンポスピードが変更される。
As described above, in the second embodiment, the displacement when the up / down switch 133 or the wheel 155 is operated (± 1 in the case of the up / down switch 133, −10 in the case of the wheel 155). +1
0) is detected and the displacement is added or subtracted at each tempo change timing generated at time intervals according to the tempo speed while the up / down switch 133 or the wheel 155 is continuously operated for a predetermined time or longer. As a result, the current tempo speed is changed.

【0160】このように、テンポ操作子を操作し続ける
ことにより自動的にテンポスピードを増加又は減少させ
ることができるので、テンポ設定操作が簡単になるとい
う利点がある。しかも、テンポスピードを変更するタイ
ミングはその時点で設定されているテンポスピードに応
じて決定されるので、現テンポスピードが大きければテ
ンポ変更タイミングの発生間隔が密になり、逆に、現テ
ンポスピードが小さければテンポ変更タイミングの発生
間隔が粗になる。従って、現テンポスピードが、テンポ
変更に要する時間に与える影響は小さくなる。
As described above, the tempo speed can be automatically increased or decreased by continuously operating the tempo operator, which has the advantage of simplifying the tempo setting operation. Moreover, the timing for changing the tempo speed is determined according to the tempo speed set at that time, so if the current tempo speed is large, the tempo change timing will occur at close intervals, and conversely, the current tempo speed will change. If it is small, the tempo change timing generation interval becomes coarse. Therefore, the influence of the current tempo speed on the time required for changing the tempo is small.

【0161】また、テンポスピードに比例してテンポ変
更タイミングの発生間隔が短く又は長くなるように制御
すれば、現テンポスピードの如何に拘わらず略一定時間
で目標テンポスピードに近づけるように構成することが
できる。
Also, by controlling the generation interval of the tempo change timing to be short or long in proportion to the tempo speed, the tempo change timing may be configured to approach the target tempo speed in a substantially constant time regardless of the current tempo speed. You can

【0162】また、ホイール155を用いた場合は、こ
のホイール155から出力される変位量に応じた値が上
記(1)式におけるMの値として用られる。この際、ホ
イール155は、非操作位置(センター位置)に対して
正側に操作された場合は正の変位量(「+M」)、負側
に操作された場合は負の変位量(「−M」)を出力す
る。従って、上記(1)式による1回の演算で変更され
るテンポスピード量及びテンポスピードの増減を任意に
設定することができ、目標テンポスピードに到達する時
間を任意に調整することができる。
When the wheel 155 is used, a value corresponding to the amount of displacement output from the wheel 155 is used as the value of M in the above equation (1). At this time, the wheel 155 has a positive displacement amount (“+ M”) when operated to the positive side with respect to the non-operating position (center position), and a negative displacement amount (“−M”) when operated to the negative side. M ”) is output. Therefore, the tempo speed amount and increase / decrease of the tempo speed that are changed by one calculation according to the equation (1) can be arbitrarily set, and the time to reach the target tempo speed can be arbitrarily adjusted.

【0163】[0163]

【発明の効果】以上詳述したように、本発明によれば、
現テンポスピードの如何に拘わらず目標のテンポスピー
ドに素早く設定することのできる操作性に優れた自動演
奏装置のテンポスピード制御装置を提供することができ
る。
As described in detail above, according to the present invention,
It is possible to provide a tempo speed control device for an automatic performance device which is capable of quickly setting a target tempo speed regardless of the current tempo speed and has excellent operability.

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

【図1】本発明の実施例1及び実施例2に共通に使用さ
れる自動演奏装置のテンポスピード制御装置の構成を示
すブロック図である。
FIG. 1 is a block diagram showing a configuration of a tempo speed control device of an automatic performance device which is commonly used in Examples 1 and 2 of the present invention.

【図2】(A)は本発明の実施例1及び実施例2に共通
に使用されるに操作パネルの一例を示す図であり、
(B)はホイールの構成を示す図である。
FIG. 2A is a diagram showing an example of an operation panel commonly used in Embodiments 1 and 2 of the present invention,
(B) is a diagram showing a configuration of a wheel.

【図3】本発明の実施例1及び実施例2に共通に使用さ
れるメインルーチンを示すフローチャートである。
FIG. 3 is a flowchart showing a main routine commonly used in the first and second embodiments of the present invention.

【図4】本発明の実施例1及び実施例2に共通に使用さ
れるMIDI−IN割込処理ルーチンを示すフローチャ
ートである。
FIG. 4 is a flowchart showing a MIDI-IN interrupt processing routine commonly used in the first and second embodiments of the present invention.

【図5】本発明の実施例1及び実施例2に共通に使用さ
れるパネル制御処理ルーチンを示すフローチャートであ
る。
FIG. 5 is a flowchart showing a panel control processing routine commonly used in the first and second embodiments of the present invention.

【図6】本発明の実施例1に使用されるテンポスピード
処理1ルーチンを示すフローチャートである。
FIG. 6 is a flowchart showing a tempo speed processing 1 routine used in the first embodiment of the present invention.

【図7】本発明の実施例1に使用されるテンポスピード
処理2ルーチンを示すフローチャートである。
FIG. 7 is a flowchart showing a tempo speed processing 2 routine used in the first embodiment of the present invention.

【図8】本発明の実施例1に使用されるタイマA割込処
理ルーチンを示すフローチャートである。
FIG. 8 is a flowchart showing a timer A interrupt processing routine used in the first embodiment of the present invention.

【図9】本発明の実施例1に使用されるタイマB割込処
理ルーチンを示すフローチャートである。
FIG. 9 is a flowchart showing a timer B interrupt processing routine used in the first embodiment of the present invention.

【図10】本発明の実施例2に使用されるテンポスピー
ド処理1ルーチンを示すフローチャートである。
FIG. 10 is a flowchart showing a tempo speed processing 1 routine used in a second embodiment of the present invention.

【図11】本発明の実施例2に使用されるテンポスピー
ド処理2ルーチンを示すフローチャートである。
FIG. 11 is a flowchart showing a tempo speed processing 2 routine used in the second embodiment of the present invention.

【図12】本発明の実施例2に使用されるタイマA割込
処理ルーチンを示すフローチャートである。
FIG. 12 is a flowchart showing a timer A interrupt processing routine used in the second embodiment of the present invention.

【図13】本発明の実施例2に使用されるオートインク
処理ルーチンを示すフローチャートである。
FIG. 13 is a flowchart showing an auto ink processing routine used in Embodiment 2 of the present invention.

【図14】(A)本発明の実施例1及び実施例2に共通
に使用される受信バッファの構成を示す図であり、
(B)は本発明の実施例1及び実施例2に共通に使用さ
れるパターンデータの構成を示す図である。
FIG. 14A is a diagram showing a configuration of a reception buffer commonly used in the first and second embodiments of the present invention,
(B) is a diagram showing a configuration of pattern data commonly used in the first and second embodiments of the present invention.

【図15】本発明の実施例1に使用される変換テーブル
の一例を示す図である。
FIG. 15 is a diagram showing an example of a conversion table used in the first embodiment of the present invention.

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

10 CPU 11 ROM 12 RAM 13 操作パネル 14 楽音発生器 15 スピーカシステム 16 タイマA 17 MIDIコントローラ 18 FDコントローラ 19 フロッピーディスクドライブ装置 20 タイマB 30 システムバス 130 小節/拍表示器 131 コード表示器 132 テンポスピード表示器 133 アップダウンスイッチ 134 ストップスイッチ 135 プレイ/ポーズスイッチ 136 FFスイッチ 137 REWスイッチ 138 リピートスイッチ 139 パート1スイッチ 140 パート2スイッチ 141 パート3スイッチ 142 パート4スイッチ 143〜150 LED表示器 155 ホイール 10 CPU 11 ROM 12 RAM 13 Operation Panel 14 Musical Sound Generator 15 Speaker System 16 Timer A 17 MIDI Controller 18 FD Controller 19 Floppy Disk Drive Device 20 Timer B 30 System Bus 130 Bar / Beat Indicator 131 Code Display 132 Tempo Speed Display 133 Up / down switch 134 Stop switch 135 Play / pause switch 136 FF switch 137 REW switch 138 Repeat switch 139 Part 1 switch 140 Part 2 switch 141 Part 3 switch 142 Part 4 switch 143 to 150 LED indicator 155 wheel

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 演奏情報を所定のテンポスピードで記録
し又は再生する自動演奏装置において、 テンポスピードの変更を指示するテンポ操作子と、 該テンポ操作子が操作された場合の変位を検出する変位
検出手段と、 該変位検出手段で検出された前記テンポ操作子の変位に
応じて現在のテンポスピードを所定の割合で変更する変
更手段、 とを有することを特徴とする自動演奏装置のテンポスピ
ード制御装置。
1. An automatic performance device that records or reproduces performance information at a predetermined tempo speed, and a tempo operator for instructing a change in tempo speed, and a displacement for detecting displacement when the tempo operator is operated. A tempo speed control for an automatic performance device, comprising: a detecting means; and a changing means for changing a current tempo speed at a predetermined rate according to a displacement of the tempo operator detected by the displacement detecting means. apparatus.
【請求項2】 前記テンポ操作子は正側と負側との双方
向に操作可能であり、前記変位検出手段は、該テンポ操
作子の正の変位又は負の変位を検出することを特徴とす
る請求項1に記載の自動演奏装置のテンポスピード制御
装置。
2. The tempo operator can be operated bidirectionally between a positive side and a negative side, and the displacement detection means detects a positive displacement or a negative displacement of the tempo operator. The tempo speed control device for an automatic performance device according to claim 1.
【請求項3】 前記変更手段は、前記変位検出手段で検
出された前記テンポ操作子の変位に応じて現在のテンポ
スピードを所定の指数関数に従って変更することを特徴
とする請求項1に記載の自動演奏装置のテンポスピード
制御装置。
3. The changing means changes the current tempo speed according to a predetermined exponential function according to the displacement of the tempo operator detected by the displacement detecting means. Tempo speed controller for automatic performance equipment.
【請求項4】 前記テンポ操作子は特定の非操作位置を
有し、該非操作位置に対して正側及び負側の双方向に多
段階の変位量を出力し、前記変更手段は、前記変位検出
手段で検出された該テンポ操作子の変位量に応じて現在
のテンポスピードを変更することを特徴とする請求項1
に記載の自動演奏装置のテンポスピード制御装置。
4. The tempo operator has a specific non-operation position, and outputs a multi-step displacement amount in both positive and negative sides with respect to the non-operation position, and the changing means is configured to change the displacement. The present tempo speed is changed according to the amount of displacement of the tempo operator detected by the detecting means.
The tempo speed control device for the automatic performance device described in.
【請求項5】 前記テンポ操作子が所定時間以上操作さ
れている場合に操作続行中であることを検出する操作続
行検出手段と、 一定時間間隔でテンポ変更タイミングを発生するタイミ
ング発生手段、とを更に有し、 前記変更手段は、前記操作続行手段により操作続行中で
あることが検出されている間は、前記タイミング発生手
段で発生された各テンポ変更タイミングにおいて、前記
変位検出手段で検出された前記テンポ操作子の変位に応
じて現在のテンポスピードを所定の割合で変更すること
を特徴とする請求項1〜請求項4のいずれかに記載の自
動演奏装置のテンポスピード制御装置。
5. An operation continuation detecting means for detecting that the operation is being continued when the tempo operator has been operated for a predetermined time or more, and a timing generating means for generating tempo change timing at a constant time interval. Further, the changing means is detected by the displacement detecting means at each tempo change timing generated by the timing generating means while the operation continuing means detects that the operation is being continued. The tempo speed control device for an automatic performance device according to any one of claims 1 to 4, wherein the current tempo speed is changed at a predetermined rate according to the displacement of the tempo operator.
【請求項6】 演奏情報を所定のテンポスピードで記録
し又は再生する自動演奏装置において、 テンポスピードの変更を指示するテンポ操作子と、 該テンポ操作子が操作された場合の変位を検出する変位
検出手段と、 前記テンポ操作子が所定時間以上操作されている場合に
操作続行中であることを検出する操作続行検出手段と、 該操作続行検出手段により操作続行中であることが検出
されている間は、テンポスピードに応じた時間間隔でテ
ンポ変更タイミングを発生するタイミング発生手段と、 該タイミング発生手段で発生された各テンポ変更タイミ
ングにおいて、前記変位検出手段で検出されたテンポ操
作子の変位に応じて現在のテンポスピードを所定の割合
で変更する変更手段、 とを有することを特徴とする自動演奏装置のテンポスピ
ード制御装置。
6. An automatic performance device for recording or reproducing performance information at a predetermined tempo speed, and a tempo operator for instructing a change in tempo speed, and a displacement for detecting a displacement when the tempo operator is operated. Detection means, operation continuation detection means for detecting that the tempo operator has been operated for a predetermined time or more, and operation continuation detection means for detecting that the operation is being continued In the interval, the timing generation means for generating tempo change timing at a time interval according to the tempo speed and the displacement of the tempo operator detected by the displacement detection means at each tempo change timing generated by the timing generation means. The tempo speed of the automatic performance device according to the present invention. Control device.
【請求項7】 前記タイミング発生手段は、テンポスピ
ードに比例して発生間隔が短く又は長くなるテンポ変更
タイミングを発生することを特徴とする請求項5に記載
の自動演奏装置のテンポスピード制御装置。
7. The tempo speed control device for an automatic performance device according to claim 5, wherein the timing generation means generates a tempo change timing whose generation interval becomes shorter or longer in proportion to the tempo speed.
【請求項8】 前記テンポ操作子は特定の非操作位置を
有し、該非操作位置に対して正側及び負側の双方向に多
段階の変位量を出力し、前記変更手段は、各テンポ変更
タイミングにおいて、前記変位検出手段で検出されたテ
ンポ操作子の変位量に応じて現在のテンポスピードを変
更することを特徴とする請求項5に記載の自動演奏装置
のテンポスピード制御装置。
8. The tempo operator has a specific non-operation position, and outputs a multi-step displacement amount in both positive and negative sides with respect to the non-operation position, and the changing means changes each tempo. 6. The tempo speed control device for an automatic performance device according to claim 5, wherein the current tempo speed is changed in accordance with the amount of displacement of the tempo operator detected by the displacement detecting means at the change timing.
JP6230744A 1994-08-31 1994-08-31 Tempo speed controller of automatic playing device Withdrawn JPH0876760A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6230744A JPH0876760A (en) 1994-08-31 1994-08-31 Tempo speed controller of automatic playing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6230744A JPH0876760A (en) 1994-08-31 1994-08-31 Tempo speed controller of automatic playing device

Publications (1)

Publication Number Publication Date
JPH0876760A true JPH0876760A (en) 1996-03-22

Family

ID=16912619

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6230744A Withdrawn JPH0876760A (en) 1994-08-31 1994-08-31 Tempo speed controller of automatic playing device

Country Status (1)

Country Link
JP (1) JPH0876760A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007279490A (en) * 2006-04-10 2007-10-25 Kawai Musical Instr Mfg Co Ltd Electronic musical instrument
JP2009020539A (en) * 2008-10-27 2009-01-29 Yamaha Corp Automatic performance apparatus and program
JP2009217025A (en) * 2008-03-11 2009-09-24 Yamaha Corp Electronic musical instrument and program thereof
CN102198571A (en) * 2011-05-17 2011-09-28 安徽绿能技术研究院 High-strength high-toughness submerged arc welding flux
JP2015525895A (en) * 2012-06-29 2015-09-07 ノキア コーポレイション Audio signal analysis
JPWO2020217324A1 (en) * 2019-04-23 2020-10-29

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007279490A (en) * 2006-04-10 2007-10-25 Kawai Musical Instr Mfg Co Ltd Electronic musical instrument
JP2009217025A (en) * 2008-03-11 2009-09-24 Yamaha Corp Electronic musical instrument and program thereof
JP2009020539A (en) * 2008-10-27 2009-01-29 Yamaha Corp Automatic performance apparatus and program
CN102198571A (en) * 2011-05-17 2011-09-28 安徽绿能技术研究院 High-strength high-toughness submerged arc welding flux
JP2015525895A (en) * 2012-06-29 2015-09-07 ノキア コーポレイション Audio signal analysis
JPWO2020217324A1 (en) * 2019-04-23 2020-10-29
WO2020217324A1 (en) * 2019-04-23 2020-10-29 AlphaTheta株式会社 Electronic musical instrument and musical piece phrase generation program

Similar Documents

Publication Publication Date Title
JPH0876760A (en) Tempo speed controller of automatic playing device
US5308917A (en) Keyboard touch response setting apparatus
US5239124A (en) Iteration control system for an automatic playing apparatus
JP4134945B2 (en) Automatic performance device and program
JPH0876758A (en) Automatic accompaniment device
JP3625914B2 (en) Arpeggiator
US5508471A (en) Automatic performance apparatus for an electronic musical instrument
JP3609045B2 (en) Automatic performance device
JP3019755B2 (en) Music sound generation method and music sound generation device
JP2958487B2 (en) An electronic musical instrument with a click status notification function
JP3663873B2 (en) Sound channel controller
JP3171759B2 (en) Automatic performance device
JP3173704B2 (en) Automatic performance device
JP3630266B2 (en) Automatic accompaniment device
JPH036515B2 (en)
JP3902207B2 (en) Arpeggiator
JP3282675B2 (en) Electronic musical instrument
JP3385545B2 (en) Automatic performance device
JP3625913B2 (en) Arpeggiator
JP4229355B2 (en) Electronic musical instrument parameter setting device
JPH0863159A (en) Automatic player
JP3324881B2 (en) Automatic performance device
JPH10116077A (en) Device and method for controlling tempo of automatic playing device
JP3022022B2 (en) Automatic performance device
JP3385544B2 (en) Automatic performance device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20011106