JP2722880B2 - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JP2722880B2
JP2722880B2 JP3220558A JP22055891A JP2722880B2 JP 2722880 B2 JP2722880 B2 JP 2722880B2 JP 3220558 A JP3220558 A JP 3220558A JP 22055891 A JP22055891 A JP 22055891A JP 2722880 B2 JP2722880 B2 JP 2722880B2
Authority
JP
Japan
Prior art keywords
volume
automatic accompaniment
value
accompaniment
register
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP3220558A
Other languages
Japanese (ja)
Other versions
JPH05100674A (en
Inventor
昭 戸塚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP3220558A priority Critical patent/JP2722880B2/en
Publication of JPH05100674A publication Critical patent/JPH05100674A/en
Application granted granted Critical
Publication of JP2722880B2 publication Critical patent/JP2722880B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は自動伴奏機能を有する
電子楽器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument having an automatic accompaniment function.

【0002】[0002]

【従来の技術】従来の自動伴奏機能を有する電子楽器に
おいては、自動伴奏をスタートさせた後、押鍵状態を検
出すると、自動伴奏の音量等を制御していた。すなわ
ち、伴奏音演奏時にメロディ演奏を行う場合には、伴奏
音が複数音からなりメロディ音が単音からなることが多
い。このような演奏状態では、楽音全体の中で伴奏音の
音量がメロディ音の音量に比べて相対的に大きくなり、
メロディ音が伴奏音にマスキングされてしまうといった
不都合があった。こうした不都合を解決するために、自
動伴奏機能を有する従来の電子楽器では、自動伴奏をス
タートさせた後、演奏操作を検出することで該自動伴奏
音の音量を下げ、演奏操作がなくなると該自動伴奏音の
音量を復帰させていた。
2. Description of the Related Art In a conventional electronic musical instrument having an automatic accompaniment function, when a key depression state is detected after the automatic accompaniment is started, the volume and the like of the automatic accompaniment are controlled. Sand
If a melody is played during the accompaniment sound, the accompaniment
The sound often consists of multiple sounds and the melody sound often consists of single sounds.
No. In such a performance state, the accompaniment sound
The volume is relatively large compared to the volume of the melody sound,
Melody sounds are masked by accompaniment sounds
There was an inconvenience. To solve these inconveniences,
Conventional electronic musical instruments with dynamic accompaniment function
After starting, the automatic accompaniment is detected by detecting the performance operation.
When the volume of the sound is lowered and the performance operation stops,
The volume was being restored.

【0003】[0003]

【発明が解決しようとする課題】ところで、上述した従
来の電子楽器においては、自動伴奏をスタートさせた
後、押鍵状態が検出されると、直ちに音量等が変化して
しまうため、押鍵状態が検出される前と後とでは、楽音
変化が急激であり、演奏者および聴衆に不自然な感じを
与えてしまうという欠点があった。この発明は、このよ
うな背景の下になされたもので、自動伴奏がスタートし
た後、押鍵状態が検出されても、楽音が急激に変化する
ことがない電子楽器を提供することを目的とする。
By the way, in the above-mentioned conventional electronic musical instrument, when the key depression state is detected after the automatic accompaniment is started, the volume or the like immediately changes. Before and after is detected, there is a disadvantage that the musical tone changes abruptly, giving an unnatural feeling to the player and the audience. The present invention has been made under such a background, and an object of the present invention is to provide an electronic musical instrument in which a musical tone does not suddenly change even if a key depression state is detected after automatic accompaniment starts. I do.

【0004】[0004]

【課題を解決するための手段】以上の課題を解決するた
めに、請求項1記載の発明は、鍵盤と、自動伴奏機能を
有する電子楽器において、前記鍵盤における鍵操作を検
出する鍵操作検出手段と、自動伴奏再生中に計時を行う
計時手段であって、前記鍵操作検出手段により鍵操作が
検出される度に計時を始めて該鍵操作検出時点からの経
過時間を計測する計時手段と、自動伴奏音の音量を制御
する音量制御手段とを備え、自動伴奏再生時に、前記鍵
操作検出手段により鍵操作開始が検出されると、該自動
伴奏再生中における前記自動伴奏音の音量を前記音量制
御手段により変更制御し、また、前記計時手段により
測される前記経過時間が所定時間に達すると、前記音量
制御手段は、前記変更制御されている自動伴奏音の音量
の復帰を開始するよう制御することを特徴としている。
また、請求項2記載の発明は、請求項1記載の発明にお
いて、前記自動伴奏機能は複数トラックの自動伴奏パタ
ーンを用いた伴奏機能を持ち、各トラック毎に前記所定
時間を設定する時間設定手段をさらに有し、前記音量制
御手段は各トラック毎に設定された前記所定時間に応じ
て前記自動伴奏音の音量の復帰を制御することを特徴と
している。また、請求項3記載の発明は、請求項1記載
の発明において、前記自動伴奏機能は複数トラックの自
動伴奏パターンを用いた伴奏機能を持ち、各トラック毎
に変更すべき音量値を設定する音量設定手段をさらに有
し、前記音量制御手段は各トラック毎に設定された前記
音量値に応じて前記自動伴奏音の音量の変更制御及び復
帰制御を行うことを特徴としている。
According to a first aspect of the present invention, there is provided a keyboard and an electronic musical instrument having an automatic accompaniment function, a key operation detecting means for detecting a key operation on the keyboard. Time during automatic accompaniment playback
A timekeeping means, a clock unit key operated by the key operation detecting means for measuring an elapsed time from said key operation detecting point start counting whenever those found, volume control means for controlling the volume of automatic accompaniment with the door, in the automatic accompaniment playback, the key operation detecting means by the key operation start is detected, changes control by said volume control means the volume of the automatic accompaniment tone in said automatic accompaniment playing, also, pre-Symbol total by the timing means
When the measured elapsed time reaches a predetermined time, the volume control means performs control so as to start restoring the volume of the automatic accompaniment sound under the change control.
According to a second aspect of the present invention, in the first aspect of the invention, the automatic accompaniment function has an accompaniment function using an automatic accompaniment pattern of a plurality of tracks, and the time setting means sets the predetermined time for each track. And the volume control means controls the return of the volume of the automatic accompaniment sound according to the predetermined time set for each track. According to a third aspect of the present invention, in the first aspect, the automatic accompaniment function has an accompaniment function using an automatic accompaniment pattern of a plurality of tracks, and sets a volume value to be changed for each track. There is further provided setting means, wherein the volume control means performs a change control and a return control of the volume of the automatic accompaniment sound according to the volume value set for each track.

【0005】[0005]

【作用】請求項1記載の発明によれば、自動伴奏再生中
において、鍵操作検出手段によって鍵操作が検出される
度に計時手段における計時が始められて、該鍵操作検出
時点からの経過時間が計測され、鍵操作開始が検出され
た時点で自動伴奏音の音量が変更制御され、上記経過時
間が所定時間に達した時点、すなわち,鍵操作が所定時
間検出されなかったときに、変更制御されている自動伴
奏音の音量の復帰が始まる。また、請求項2記載の発明
によれば、各トラック毎に設定される所定時間に応じ
て、複数トラックの自動伴奏パターンを用いた自動伴奏
音の音量の復帰が制御される。また、請求項3記載の発
明によれば、各トラック毎に設定される音量値に応じ
て、複数トラックの自動伴奏パターンを用いた自動伴奏
音の音量の変更制御と復帰制御が行われる。
According to the first aspect of the present invention, a key operation is detected by the key operation detecting means during automatic accompaniment playback.
Each time the timekeeping in the timekeeping means is started, the key operation detection
Is the elapsed time measurement from the time, the key operation start volume of automatic accompaniment tone is changed controlled when it is detected, the time which the elapsed time reaches a predetermined time, i.e., when the key operation is given
If no automatic accompaniment sound is changed, the volume of the automatic accompaniment sound is restored. According to the second aspect of the present invention, the restoration of the volume of the automatic accompaniment sound using the automatic accompaniment pattern of a plurality of tracks is controlled in accordance with the predetermined time set for each track. According to the third aspect of the present invention, the change control and the return control of the volume of the automatic accompaniment sound using the automatic accompaniment patterns of a plurality of tracks are performed according to the volume value set for each track.

【0006】[0006]

【実施例】まず、この発明の第1の実施例について説明
する。この実施例においては、図11に示すように、自
動伴奏中(図11(a))に鍵盤の右鍵域のキーが押鍵
されると(図11(b))、自動伴奏を直ちにミュート
し、右鍵域の最後のキーが押鍵されてから所定時間(た
とえば、2拍)経過後、所定のレート(たとえば、1/
16拍毎に1レベル)で自動伴奏を復帰させている。こ
れにより、自動伴奏がスタートした後、押鍵状態が検出
されても、楽音が急激に変化することはない。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First, a first embodiment of the present invention will be described. In this embodiment, as shown in FIG. 11, when a key in the right key range of the keyboard is pressed during automatic accompaniment (FIG. 11A), automatic accompaniment is immediately muted. After a predetermined time (for example, two beats) has elapsed since the last key in the right key range was pressed, a predetermined rate (for example, 1 /
Automatic accompaniment is restored at (one level every 16 beats). As a result, even after the automatic accompaniment starts, even if the key pressed state is detected, the musical tone does not suddenly change.

【0007】以下、図面を参照して、この発明の第1の
実施例について説明する。図1はこの発明の第1の実施
例による電子楽器の構成を示すブロック図であり、この
図において、1はマイクロコンピュータである。このマ
イクロコンピュータ1において、2は装置各部を制御す
るCPU(中央処理装置)、3はテンポクロックを発生
するテンポクロック発生回路であり、あらかじめ設定さ
れた時間が経過する毎(たとえば、1/16拍毎)に、
CPU1にインタラプトパルスを供給する。4はCPU
2において用いられる制御プログラムが記憶されたRO
Mからなるプログラムメモリである。
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a configuration of an electronic musical instrument according to a first embodiment of the present invention, in which 1 is a microcomputer. In this microcomputer 1, reference numeral 2 denotes a CPU (central processing unit) for controlling each unit of the apparatus, and reference numeral 3 denotes a tempo clock generation circuit for generating a tempo clock, each time a preset time elapses (for example, 1/16 beat). Every,
An interrupt pulse is supplied to CPU1. 4 is CPU
2 in which a control program used in 2 is stored
M is a program memory.

【0008】また、5はCPU2が各種の処理を行う際
に用いる各種レジスタやフラグ等が確保されたRAMか
らなるワーキングメモリである。このワーキングメモリ
5には、図2に示すテーブルがロックやワルツ等の自動
伴奏の種類であるスタイル毎に設けられている。図2に
おいて、TRKはトラックであり、トラック0〜5には
和音(コード)、トラック6にはベース音、トラック7
〜9には打楽器音(リズム音)がそれぞれ割り当てられ
ている。そして、各トラック毎に、ミュートレベルMT
LD、ミュートディレイMTDDおよびオフセットボリ
ュームOVLDがそれぞれ設定されている。ミュートレ
ベルMTLDは、右鍵域のキーの押鍵に応じたミュート
により下げる音量のレベルであり、FFH(FFHは16
進の数字を示す。以下、同様である。)は完全に音を出
さないことを意味している。ミュートディレイMTDD
は、右鍵域の最後のキーが押鍵されてからミュートを復
帰させるまでの拍数である。オフセットボリュームOV
LDは、音量のバランスであるボリュームのオフセット
値である。
Reference numeral 5 denotes a working memory comprising a RAM in which various registers and flags used when the CPU 2 performs various processes are secured. In the working memory 5, the table shown in FIG. 2 is provided for each style that is a type of automatic accompaniment such as rock and waltz. In FIG. 2, TRK is a track, chords (chords) on tracks 0-5, a bass sound on track 6, and a track 7
Percussion instrument sounds (rhythm sounds) are assigned to .about.9, respectively. Then, for each track, the mute level MT
LD, mute delay MTDD, and offset volume OVLD are respectively set. The mute level MTLD is a level of a sound volume to be lowered by mute according to the pressing of a key in the right key range, and FF H (FF H is 16
Indicates a hexadecimal number. Hereinafter, the same applies. ) Means no sound. Mute delay MTDD
Is the number of beats from when the last key in the right key range is pressed until the mute is restored. Offset volume OV
LD is a volume offset value that is a balance of volume.

【0009】さらに、6はROMからなる伴奏データメ
モリであり、各トラック毎に2小節分の伴奏パターンが
記憶されており、この伴奏パターンは、各タイミングで
発音するキーコード、リズムの種類および発音しないこ
とを示すデータFFH等から構成されている。7は複数
のキーからなる鍵盤であり、伴奏用の鍵域である左鍵域
7aと通常のメロディ等を弾く鍵域である右鍵域7bと
から構成されている。8は鍵盤7のキーが操作されたこ
とを検出してそのキーに対応したキー情報を出力する押
鍵検出回路である。
Reference numeral 6 denotes an accompaniment data memory composed of a ROM, in which accompaniment patterns for two measures are stored for each track, and the accompaniment patterns are key codes, rhythm types and pronunciations that are generated at each timing. It is composed of data FF H and the like indicating not to be performed. Reference numeral 7 denotes a keyboard composed of a plurality of keys, and includes a left key range 7a as a key range for accompaniment and a right key range 7b as a key range for playing a normal melody or the like. Reference numeral 8 denotes a key press detection circuit that detects that a key on the keyboard 7 has been operated and outputs key information corresponding to the key.

【0010】加えて、9は操作パネルであり、音量を制
御するマスタボリューム9a、自動伴奏スタートスイッ
チ9b、自動伴奏ストップスイッチ9c、スタイルスイ
ッチ9d等から構成されている。なお、各スイッチの機
能については後述する。10は操作パネル9の各スイッ
チが操作されたことを検出してそれぞれのスイッチに対
応した操作情報を出力するスイッチ操作検出回路であ
る。11はCPU2によって制御され、楽音信号を出力
する楽音信号形成回路、12は楽音信号形成回路11か
ら出力される楽音信号を増幅するアンプ、13はアンプ
12の出力信号を楽音に変換するスピーカである。
In addition, an operation panel 9 includes a master volume 9a for controlling the volume, an automatic accompaniment start switch 9b, an automatic accompaniment stop switch 9c, a style switch 9d, and the like. The function of each switch will be described later. Reference numeral 10 denotes a switch operation detection circuit that detects that each switch of the operation panel 9 has been operated and outputs operation information corresponding to each switch. Reference numeral 11 denotes a tone signal forming circuit which is controlled by the CPU 2 to output a tone signal, 12 denotes an amplifier for amplifying the tone signal output from the tone signal forming circuit 11, and 13 denotes a speaker which converts an output signal of the amplifier 12 into a tone. .

【0011】このような構成において、CPU2の動作
について図3〜図10のフローチャートに基づいて説明
する。図1の電子楽器に電源が投入されると、CPU2
は、まず、図3のメインルーチンのステップSA1の処
理へ進み、装置各部の初期設定を行う。この初期設定
は、楽音信号形成回路11への初期の音色の設定、ワー
キングメモリ5の各種レジスタのクリア等である。そし
て、CPU2は、ステップSA2へ進む。
In such a configuration, the operation of the CPU 2 will be described with reference to the flowcharts of FIGS. When power is applied to the electronic musical instrument of FIG.
First, the process proceeds to the process of step SA1 of the main routine in FIG. The initial setting includes setting of an initial tone color in the tone signal forming circuit 11, clearing various registers of the working memory 5, and the like. Then, the CPU 2 proceeds to step SA2.

【0012】ステップSA2では、キーイベントがある
か否か、すなわち、操作者により鍵盤7のいずれかのキ
ーが押鍵あるいは離鍵され、押鍵検出回路8がそのイベ
ントを検出したか否かを判断する。この判断結果が「Y
ES」の場合には、ステップSA3へ進む。
In step SA2, it is determined whether or not there is a key event, that is, whether or not any key on the keyboard 7 has been pressed or released by the operator, and whether or not the key pressing detection circuit 8 has detected the event. to decide. The result of this determination is “Y
In the case of "ES", the process proceeds to Step SA3.

【0013】ステップSA3では、鍵盤7のいずれかの
キーが押鍵あるいは離鍵された際に働くキーイベント処
理を行う。この処理のルーチンを図4に示す。このルー
チンにおいて、ステップSB1では、自動伴奏が演奏中
である場合に1にセットされるフラグRUNが1にセッ
トされているか否かを判断する。この判断結果が「YE
S」の場合、すなわち、フラグRUNが1にセットされ
ている場合には、ステップSB2へ進む。
At step SA3, a key event process which is performed when any key on the keyboard 7 is pressed or released. FIG. 4 shows a routine of this processing. In this routine, in step SB1, it is determined whether or not the flag RUN which is set to 1 when the automatic accompaniment is being performed is set to 1. The result of this determination is “YE
If "S", that is, if the flag RUN is set to 1, the process proceeds to step SB2.

【0014】ステップSB2では、イベントが検出され
たキーが右鍵域7bに存在するか否かを判断する。この
判断結果が「NO」の場合、すなわち、イベントが検出
されたキーが左鍵域7aに存在するには、ステップSB
3へ進む。ステップSB3では、和音を検出し、和音の
根音コードが格納されるレジスタRTに検出和音の根音
コードを格納するとともに、和音の種類コードが格納さ
れるレジスタTPに検出和音の種類コードを格納した
後、図3のメインルーチンへ戻り、ステップSA4へ進
む。
In step SB2, it is determined whether or not the key whose event has been detected exists in the right key range 7b. If the result of this determination is "NO", that is, if the key for which the event has been detected exists in the left key range 7a, the process proceeds to step SB
Proceed to 3. In step SB3, the chord is detected, the root code of the detected chord is stored in the register RT in which the root code of the chord is stored, and the type code of the detected chord is stored in the register TP in which the type code of the chord is stored. After that, the process returns to the main routine of FIG. 3 and proceeds to step SA4.

【0015】いっぽう、ステップSB2の判断結果が
「YES」の場合、すなわち、イベントが検出されたキ
ーが右鍵域7bに存在する場合には、ステップSB4へ
進む。また、ステップSB1の判断結果が「NO」の場
合、すなわち、自動伴奏が停止状態であり、フラグRU
Nが0にリセットされている場合にも、ステップSB4
へ進む。
On the other hand, if the decision result in the step SB2 is "YES", that is, if the key in which the event is detected exists in the right key range 7b, the process proceeds to a step SB4. If the determination result of step SB1 is "NO", that is, the automatic accompaniment is in the stopped state, and the flag RU
Even if N is reset to 0, step SB4
Proceed to.

【0016】ステップSB4では、検出されたイベント
がオンイベントであるか否かを判断する。この判断結果
が「NO」の場合には、ステップSB5へ進む。ステッ
プSB5では、該当するキーのキーオフ処理(消音処
理)を行なった後、図3のメインルーチンへ戻り、ステ
ップSA4へ進む。
At step SB4, it is determined whether or not the detected event is an ON event. If the result of this determination is "NO", the flow proceeds to step SB5. In step SB5, after performing a key-off process (mute process) of the corresponding key, the process returns to the main routine of FIG. 3 and proceeds to step SA4.

【0017】いっぽう、ステップSB4の判断結果が
「YES」の場合、すなわち、検出されたイベントがオ
ンイベントである場合には、ステップSB6へ進む。ス
テップSB6では、該当するキーのキーオン処理(発音
処理)を行なった後、ステップSB7へ進む。ステップ
SB7では、鍵盤7の右鍵域7bのいずれかのキーが押
鍵されてからの経過時間(拍数)をカウントするカウン
トレジスタCTの値を0にクリアした後、図3のメイン
ルーチンへ戻り、ステップSA4へ進む。
On the other hand, if the decision result in the step SB4 is "YES", that is, if the detected event is an ON event, the process proceeds to a step SB6. At step SB6, the key-on process (sound-producing process) of the corresponding key is performed, and then the process proceeds to step SB7. In step SB7, after clearing the value of the count register CT for counting the elapsed time (beat count) from pressing any key in the right key range 7b of the keyboard 7 to 0, the process returns to the main routine of FIG. Then, the process proceeds to Step SA4.

【0018】図3のメインルーチンにおいて、ステップ
SA4では、スイッチイベントがあるか否か、すなわ
ち、操作者が操作パネル9のいずれかのスイッチを操作
し、スイッチ操作検出回路10がそのイベントを検出し
たか否かを判断する。この判断結果が「NO」の場合に
は、ステップSA2へ戻る。いっぽう、ステップSA4
の判断結果が「YES」の場合、すなわち、スイッチイ
ベントがある場合には、ステップSA5へ進む。
In the main routine of FIG. 3, in step SA4, it is determined whether or not there is a switch event, that is, the operator operates any switch on the operation panel 9, and the switch operation detection circuit 10 detects the event. It is determined whether or not. If this determination is "NO", the flow returns to step SA2. Meanwhile, step SA4
Is "YES", that is, if there is a switch event, the process proceeds to Step SA5.

【0019】ステップSA5では、操作パネル9のいず
れかのスイッチが操作された際に働くスイッチイベント
処理を行う。この処理のルーチンを図5に示す。このル
ーチンにおいて、ステップSC1では、操作パネル9の
スタイルスイッチ9d、スタートスイッチ9b、ストッ
プスイッチ9cおよびマスタボリューム9aのどれが操
作されたかを判断する。そして、それぞれのスイッチに
応じて以下に示すステップSC2、SC5、SC7およ
びSC8のいずれかへ進む。まず、図1のスタイルスイ
ッチ9dが操作された場合には、ステップSC2へ進
む。
At step SA5, a switch event process which is performed when any switch on the operation panel 9 is operated is performed. FIG. 5 shows a routine of this processing. In this routine, in step SC1, it is determined which of the style switch 9d, the start switch 9b, the stop switch 9c and the master volume 9a of the operation panel 9 has been operated. Then, the process proceeds to one of the following steps SC2, SC5, SC7 and SC8 according to each switch. First, when the style switch 9d in FIG. 1 is operated, the process proceeds to step SC2.

【0020】ステップSC2では、操作者によって操作
されたスタイルスイッチ9dに対応したスタイル番号を
スタイル番号レジスタSTLNに格納した後、ステップ
SC3へ進む。ステップSC3では、現在の各トラック
(i=0〜9)のマスタボリュームの値を中心としたオ
フセット値が格納されるレジスタVOLV(i)に図2
に示すテーブルにあらかじめ設定されているオフセット
ボリュームOVLDの値を格納する。ここで、STLT
BLとは、スタイルのテーブルを意味し、STLNと
は、スタイル番号を意味している。そして、CPU2
は、ステップSC4へ進む。ステップSC4では、カウ
ントレジスタCTの値を0にクリアした後、図3のメイ
ンルーチンへ戻り、ステップSA2へ戻る。
In step SC2, the style number corresponding to the style switch 9d operated by the operator is stored in the style number register STLN, and the flow advances to step SC3. In step SC3, the register VOLV (i) storing the offset value centered on the master volume value of each current track (i = 0 to 9) is stored in FIG.
The value of the offset volume OVLD set in advance is stored in the table shown in FIG. Where STLT
BL means a style table, and STLN means a style number. And CPU2
Proceeds to step SC4. In step SC4, after the value of the count register CT is cleared to 0, the process returns to the main routine of FIG. 3 and returns to step SA2.

【0021】また、図1のスタートスイッチ9bが操作
された場合には、ステップSC5へ進む。ステップSC
5では、フラグRUNを1にセットした後、ステップS
C6へ進む。ステップSC6では、テンポクロックの値
が格納されるレジスタCLKの値を0にクリアするとと
もに、カウントレジスタCTの値を0にクリアした後、
図3のメインルーチンへ戻り、ステップSA2へ戻る。
If the start switch 9b shown in FIG. 1 has been operated, the operation proceeds to step SC5. Step SC
In step 5, after setting the flag RUN to 1, step S
Proceed to C6. In step SC6, the value of the register CLK in which the value of the tempo clock is stored is cleared to 0, and the value of the count register CT is cleared to 0.
The process returns to the main routine of FIG. 3 and returns to step SA2.

【0022】また、図1のストップスイッチ9cが操作
された場合には、ステップSC7へ進む。ステップSC
7では、フラグRUNを0にリセットした後、図3のメ
インルーチンへ戻り、ステップSA2へ戻る。
If the stop switch 9c in FIG. 1 has been operated, the operation proceeds to step SC7. Step SC
At 7, the flag RUN is reset to 0, and the process returns to the main routine of FIG. 3 and returns to step SA2.

【0023】また、図1のマスタボリューム9aが操作
された場合には、ステップSC8へ進む。以下に示すス
テップSC8〜SC10の処理を行うのは、次に示す理
由による。すなわち、レジスタVOLV(i)に逐次記
憶される値は、マスタボリューム9aの値を中心とした
オフセット値であるが、ミュートを行う場合には、音量
のレベルが0である必要があるため、この場合、レジス
タVOLV(i)にオフセット値としてマスタボリュー
ム9aの値に(−)の符号を付けたものを格納する。し
かし、操作者がマスタボリューム9aを操作する度にミ
ュートのためのオフセット値が変わってしまうので、ス
テップSC8〜SC10の処理においてマスタボリュー
ム9aの値を記憶しているのである。
If the master volume 9a in FIG. 1 has been operated, the operation proceeds to step SC8. The processing in steps SC8 to SC10 described below is performed for the following reason. That is, the value sequentially stored in the register VOLV (i) is an offset value centered on the value of the master volume 9a, but when muting is performed, the volume level needs to be 0. In this case, a value obtained by adding a sign (-) to the value of the master volume 9a is stored as an offset value in the register VOLV (i). However, since the offset value for mute changes each time the operator operates the master volume 9a, the value of the master volume 9a is stored in the processing of steps SC8 to SC10.

【0024】ステップSC8では、現在のマスタボリュ
ーム9aの値が格納されるレジスタVLMの値を過去の
マスタボリューム9aの値が格納されるレジスタOLD
に格納した後、ステップSC9へ進む。ステップSC9
では、操作者が今操作したマスタボリューム9aの値を
レジスタVLMに格納した後、ステップSC10へ進
む。
At step SC8, the value of the register VLM storing the current value of the master volume 9a is replaced with the value of the register OLD storing the value of the past master volume 9a.
After that, the process proceeds to Step SC9. Step SC9
Then, after the value of the master volume 9a operated by the operator is stored in the register VLM, the process proceeds to step SC10.

【0025】ステップSC10では、現在の各トラック
のマスタボリュームのオフセット値が格納されるレジス
タVOLV(k)にレジスタVLMに格納された値に
(−)の符号を付けたものを格納する。ここで、kは、
VOLV(k)=−OLDとなる値を意味している。こ
の処理を行うのは、ひとつ前の段階でミュートするため
に、レジスタVOLV(k)にレジスタVLMに格納さ
れた値に(−)の符号を付けたものが格納されている
と、今ミュートしても完全に消音されないからである。
そして、CPU2は、ステップSC11へ進む。ステッ
プSC11では、レジスタVLMの値を楽音信号形成回
路11へ出力した後、図3のメインルーチンへ戻り、ス
テップSA2へ戻る。
In step SC10, a register VOLV (k) in which the current master volume offset value of each track is stored is stored with a value (-) added to the value stored in the register VLM. Where k is
VOLV (k) = − OLD. This processing is performed because, in order to mute at the immediately preceding stage, if the value stored in the register VLM with the sign (-) added to the value stored in the register VOLV (k) is muted, However, it is not completely silenced.
Then, the CPU 2 proceeds to step SC11. In step SC11, after outputting the value of the register VLM to the tone signal forming circuit 11, the process returns to the main routine of FIG. 3 and returns to step SA2.

【0026】つぎに、CPU2のインタラプト処理につ
いて図6〜図10のフローチャートに基づいて説明す
る。このインタラプト処理は、図1のテンポクロック発
生回路3から1/16拍毎に供給されるインタラプトパ
ルスにより実行される。図6のステップSD1では、フ
ラグRUNが1にセットされているか否かを判断する。
この判断結果が「NO」の場合には、なにもせず、図3
のメインルーチンへ戻る。
Next, the interrupt processing of the CPU 2 will be described with reference to the flowcharts of FIGS. This interrupt processing is executed by an interrupt pulse supplied from the tempo clock generation circuit 3 of FIG. 1 every 1/16 beat. At step SD1 in FIG. 6, it is determined whether or not the flag RUN is set to 1.
If the result of this determination is “NO”, nothing is performed and FIG.
Return to the main routine.

【0027】いっぽう、ステップSD1の判断結果が
「YES」の場合、すなわち、フラグRUNが1にセッ
トされている場合には、ステップSD2へ進む。ステッ
プSD2では、トラック番号が格納されるレジスタTR
に和音トラックの中の先頭トラックを示す0を格納した
後、ステップSD3へ進む。ステップSD3では、各ト
ラックの再生を行う再生処理を行う。この再生処理の詳
細については後述する。そして、この再生処理が終了す
ると、CPU2は、ステップSD4へ進む。
On the other hand, if the decision result in the step SD1 is "YES", that is, if the flag RUN is set to 1, the process proceeds to a step SD2. At step SD2, a register TR in which the track number is stored
In the chord track, the process goes to step SD3. In step SD3, a reproduction process for reproducing each track is performed. The details of this reproduction processing will be described later. When the reproduction process ends, the CPU 2 proceeds to step SD4.

【0028】ステップSD4では、レジスタTRの値に
1をインクリメントした後、ステップSD5へ進む。ス
テップSD5では、レジスタTRの値が9以上であるか
否か、すなわち、すべてのトラックについて上述したス
テップSD3の処理が終了したか否かを判断する。この
判断結果が「NO」の場合には、ステップSD3へ戻
る。
At step SD4, the value of the register TR is incremented by 1, and then the process proceeds to step SD5. In step SD5, it is determined whether or not the value of the register TR is 9 or more, that is, whether or not the processing in step SD3 described above has been completed for all tracks. If this determination is "NO", the flow returns to step SD3.

【0029】いっぽう、ステップSD5の判断結果が
「YES」の場合、すなわち、レジスタTRの値が9以
上であり、すべてのトラックについて上述したステップ
SD3の処理が終了した場合には、ステップSD6へ進
む。ステップSD6では、レジスタCLKおよびCTの
値をインクリメントするカウント処理を行う。このカウ
ント処理の詳細については後述する。そして、このカウ
ント処理が終了すると、CPU2は、図3のメインルー
チンへ戻る。
On the other hand, if the decision result in the step SD5 is "YES", that is, if the value of the register TR is 9 or more and the processing in the step SD3 is completed for all the tracks, the process proceeds to a step SD6. . At Step SD6, a count process for incrementing the values of the registers CLK and CT is performed. Details of this counting process will be described later. Then, when this counting process ends, the CPU 2 returns to the main routine of FIG.

【0030】次に、CPU2の再生処理について図7〜
図9のフローチャートに基づいて説明する。CPU2の
処理が図6のステップSD3へ進むと、図7に示す再生
処理ルーチンが起動される。CPU2は、まず、ステッ
プSE1の処理へ進み、ミュートの音量のレベルを計算
するミュート処理を行う。この処理のルーチンを図8に
示す。このルーチンにおいて、ステップSF1では、カ
ウントレジスタCTの値が図2に示すスタイル番号ST
LNのスタイルテーブルSTLTBLのトラック番号T
RのミュートディレイMTDDの値以上であるか否かを
判断する。すなわち、ミュートを解除する時間に到達し
たか否かを判断する。この判断結果が「NO」の場合に
は、ステップSF2へ進む。
Next, the reproduction process of the CPU 2 will be described with reference to FIGS.
This will be described with reference to the flowchart of FIG. When the processing of the CPU 2 proceeds to step SD3 in FIG. 6, the reproduction processing routine shown in FIG. 7 is started. The CPU 2 first proceeds to the process of step SE1, and performs a mute process for calculating a mute volume level. FIG. 8 shows a routine of this processing. In this routine, in step SF1, the value of the count register CT is changed to the style number ST shown in FIG.
Track number T in LN style table STLTBL
It is determined whether or not the value is greater than or equal to the value of the mute delay MTDD of R. That is, it is determined whether or not the time to release the mute has been reached. If the result of this determination is "NO", the flow proceeds to step SF2.

【0031】ステップSF2では、スタイル番号STL
NのスタイルテーブルSTLTBLのトラック番号TR
のミュートレベルMTLDがFFHであるか否か、すな
わち、完全にミュートするのか単にレベルを下げるだけ
であるかを判断する。この判断結果が「NO」の場合に
は、ステップSF3へ進む。ステップSF3では、レジ
スタVOLV(TR)にレジスタVLMに格納された値
に(−)の符号を付けたものを格納した後、図7の再生
処理ルーチンへ戻り、ステップSE2へ進む。
At step SF2, the style number STL
Track number TR of style table STLTBL of N
Is determined as to whether or not the mute level MTLD is FF H, that is, whether to mute completely or simply lower the level. If this determination is "NO", the flow proceeds to step SF3. In step SF3, after storing the value stored in the register VLM with a sign (-) in the register VOLV (TR), the process returns to the reproduction processing routine of FIG. 7 and proceeds to step SE2.

【0032】いっぽう、ステップSF2の判断結果が
「YES」の場合、すなわち、スタイル番号STLNの
スタイルテーブルSTLTBLのトラック番号TRのミ
ュートレベルMTLDがFFHである場合には、ステッ
プSF4へ進む。ステップSF4では、レジスタVOL
V(TR)に、スタイル番号STLNのスタイルテーブ
ルSTLTBLのトラック番号TRのオフセットボリュ
ームOVLDの値とミュートレベルMTLDの値とを加
えたものを格納した後、図7の再生処理ルーチンへ戻
り、ステップSE2へ進む。
[0032] On the other hand, if the judgment result of step SF2 is "YES", that is, when the mute level MTLD track number TR style table STLTBL style number STLN is FF H, the process proceeds to step SF4. In step SF4, the register VOL
After adding the value of the offset volume OVLD and the value of the mute level MTLD of the track number TR of the style table STLTBL of the style number STLN to V (TR), the process returns to the reproduction processing routine of FIG. Proceed to.

【0033】また、ステップSF1の判断結果が「YE
S」の場合、すなわち、カウントレジスタCTの値が、
スタイル番号STLNのスタイルテーブルSTLTBL
のトラック番号TRのミュートディレイMTDDの値以
上である場合には、ステップSF5へ進む。ステップS
F5では、レジスタVOLV(TR)の値に1をインク
リメントした後、ステップSF6へ進む。
If the result of the determination in step SF1 is "YE
S ", that is, when the value of the count register CT is
Style table STLTBL of style number STLN
If it is equal to or greater than the value of the mute delay MTDD of the track number TR, the process proceeds to step SF5. Step S
In F5, after the value of the register VOLV (TR) is incremented by 1, the process proceeds to step SF6.

【0034】ステップSF6では、レジスタVOLV
(TR)の値が、スタイル番号STLNのスタイルテー
ブルSTLTBLのトラック番号TRのオフセットボリ
ュームOVLDの値以上であるか否かを判断する。この
判断結果が「NO」の場合には、なにもせず、図7の再
生処理ルーチンへ戻り、ステップSE2へ進む。いっぽ
う、ステップSF6の判断結果が「YES」の場合、す
なわち、レジスタVOLV(TR)の値が、スタイル番
号STLNのスタイルテーブルSTLTBLのトラック
番号TRのオフセットボリュームOVLDの値以上であ
る場合には、ステップSF7へ進む。ステップSF7で
は、レジスタVOLV(TR)に、スタイル番号STL
NのスタイルテーブルSTLTBLのトラック番号TR
のオフセットボリュームOVLDの値を格納した後、図
7の再生処理ルーチンへ戻り、ステップSE2へ進む。
At step SF6, the register VOLV
It is determined whether the value of (TR) is equal to or greater than the value of the offset volume OVLD of the track number TR in the style table STLTBL of the style number STLN. If the result of this determination is “NO”, the process returns to the reproduction process routine of FIG. 7 without doing anything, and proceeds to step SE2. On the other hand, if the decision result in the step SF6 is "YES", that is, if the value of the register VOLV (TR) is equal to or more than the value of the offset volume OVLD of the track number TR in the style table STLTBL of the style number STLN, Proceed to SF7. At step SF7, the style number STL is stored in the register VOLV (TR).
Track number TR of style table STLTBL of N
After storing the value of the offset volume OVLD, the process returns to the reproduction process routine of FIG. 7 and proceeds to step SE2.

【0035】図7のステップSE2では、スタイルレジ
スタSTLN、トラックレジスタTRおよびテンポクロ
ックレジスタCLKのそれぞれのレジスタに記憶された
データに基づいて伴奏データメモリ6から伴奏パターン
の各データを読み出してキーコードをレジスタKCに格
納した後、ステップSE3へ進む。ステップSE3で
は、レジスタKCに格納されたキーコードが発音しない
ことを示すデータFFHでないか否かを判断する。この
判断結果が「NO」の場合には、なにもせず、図6のイ
ンタラプト処理ルーチンへ戻り、ステップSD4へ進
む。いっぽう、ステップSE3の判断結果が「YES」
の場合、すなわち、レジスタKCに格納されたキーコー
ドが発音しないことを示すデータFFHでない場合に
は、ステップSE4へ進む。
In step SE2 of FIG. 7, each data of the accompaniment pattern is read out from the accompaniment data memory 6 based on the data stored in the style register STLN, the track register TR and the tempo clock register CLK, and the key code is set. After storing in the register KC, the process proceeds to step SE3. At step SE3, it is determined whether or not data FF H indicating that the key code stored in the register KC does not sound. If the result of this determination is "NO", the process returns to the interrupt processing routine of FIG. 6 without doing anything, and proceeds to step SD4. On the other hand, the determination result of step SE3 is “YES”
In other words, if the key code stored in the register KC is not the data FF H indicating that no sound is generated, the process proceeds to step SE4.

【0036】ステップSE4では、ノートデータ処理を
行う。この処理のルーチンを図9に示す。このルーチン
において、ステップSG1では、レジスタVOLV(T
R)にレジスタVLMに格納された値に(−)の符号を
付けたものが格納されていないか否かを判断する。この
判断結果が「NO」の場合には、なにもせず、図7の再
生処理ルーチンを経て図6のインタラプト処理ルーチン
へ戻り、ステップSD4へ進む。
At step SE4, note data processing is performed. FIG. 9 shows a routine of this processing. In this routine, in step SG1, the register VOLV (T
It is determined whether or not a value obtained by adding a sign (-) to the value stored in the register VLM is stored in R). If the result of this determination is "NO", nothing is done and the processing returns to the interrupt processing routine of FIG. 6 via the reproduction processing routine of FIG. 7, and proceeds to step SD4.

【0037】いっぽう、ステップSG1の判断結果が
「YES」の場合、すなわち、レジスタVOLV(T
R)にレジスタVLMに格納された値に(−)の符号を
付けたものが格納されていない場合には、ステップSG
2へ進む。ステップSG2では、レジスタTRの値が6
以下であるか否か、すなわち、トラックが和音あるいは
ベース音であるか否かを判断する。この判断結果が「Y
ES」の場合には、ステップSG3へ進む。
On the other hand, if the decision result in the step SG1 is "YES", that is, the register VOLV (T
If R) does not store the value stored in the register VLM with the sign of (-), the process proceeds to step SG.
Proceed to 2. At step SG2, the value of the register TR is 6
It is determined whether or not the following is true, that is, whether or not the track is a chord or a bass sound. The result of this determination is “Y
In the case of "ES", the process proceeds to Step SG3.

【0038】ステップSG3では、レジスタKCに格納
されたキーコードを図示せぬコード変換テーブルあるい
はベース変換テーブルを用いてレジスタRTに格納され
た和音の根音コードおよびレジスタTRに格納されたト
ラック番号により変換し、そのキーコードをレジスタK
Cに格納した後、ステップSG4へ進む。いっぽう、ス
テップSG2の判断結果が「NO」の場合、すなわち、
レジスタTRの値が6より大きく、トラックが打楽器音
である場合にも、ステップSG4へ進む。
At step SG3, the key code stored in the register KC is converted to the chord root code stored in the register RT and the track number stored in the register TR using a code conversion table or a base conversion table (not shown). Convert the key code to register K
After storing in C, the process proceeds to step SG4. On the other hand, when the determination result of step SG2 is “NO”, that is,
If the value of the register TR is larger than 6 and the track is a percussion instrument sound, the process proceeds to step SG4.

【0039】ステップSG4では、レジスタKC、VO
LV(TR)、KONおよびTRのそれぞれに格納され
た各データ、すなわち、キーコード、現在設定されたボ
リュームのオフセット値、キーオン信号およびトラック
番号を楽音信号形成回路11へ出力した後、図7の再生
処理ルーチンを経て図6のインタラプト処理ルーチンへ
戻り、ステップSD4へ進む。
At step SG4, the registers KC, VO
After outputting each data stored in each of the LV (TR), KON and TR, that is, the key code, the offset value of the currently set volume, the key-on signal and the track number to the tone signal forming circuit 11, FIG. After the reproduction process routine, the process returns to the interrupt process routine of FIG. 6 and proceeds to step SD4.

【0040】次に、CPU2のカウント処理について図
10のフローチャートに基づいて説明する。CPU2の
処理が図6のステップSD6へ進むと、図10に示すカ
ウント処理ルーチンが起動される。CPU2は、まず、
ステップSH1の処理へ進み、テンポクロックレジスタ
CLKの値に1をインクリメントした後、ステップSH
2へ進む。
Next, the counting process of the CPU 2 will be described with reference to the flowchart of FIG. When the processing of the CPU 2 proceeds to step SD6 in FIG. 6, a count processing routine shown in FIG. 10 is started. First, the CPU 2
Proceeding to step SH1, the value of the tempo clock register CLK is incremented by 1, and
Proceed to 2.

【0041】ステップSH2では、テンポクロックレジ
スタCLKの値が1パターン時間に等しいか否かを判断
する。この判断結果が「YES」の場合には、ステップ
SH3へ進む。ステップSH3では、テンポクロックレ
ジスタCLKを0にクリアした後、ステップSH4へ進
む。
In step SH2, it is determined whether or not the value of the tempo clock register CLK is equal to one pattern time. If the result of this determination is "YES", the flow proceeds to step SH3. In step SH3, after clearing the tempo clock register CLK to 0, the process proceeds to step SH4.

【0042】いっぽう、ステップSH2の判断結果が
「NO」の場合、すなわち、テンポクロックレジスタC
LKの値が1パターン時間に等しくない場合にも、ステ
ップSH4へ進む。ステップSH4では、テンポクロッ
クレジスタCLKの値を4で除算したあまりが0である
か否かを判断する。この判断結果が「NO」の場合に
は、なにもせず、図6のインタラプト処理ルーチンを経
てメインルーチンへ戻る。
On the other hand, if the decision result in the step SH2 is "NO", that is, if the tempo clock register C
If the value of LK is not equal to one pattern time, the process proceeds to step SH4. In step SH4, it is determined whether or not the value obtained by dividing the value of the tempo clock register CLK by 4 is 0. If the result of this determination is "NO", nothing is done and the program returns to the main routine via the interrupt processing routine of FIG.

【0043】いっぽう、ステップSH4の判断結果が
「YES」の場合、すなわち、テンポクロックレジスタ
CLKの値を4で除算したあまりが0である場合には、
ステップSH5へ進む。ステップSH5では、カウント
レジスタCTの値が定数BMAXに等しいか否かを判断す
る。この判断結果が「NO」の場合には、なにもせず、
図6のインタラプト処理ルーチンを経てメインルーチン
へ戻る。
On the other hand, when the result of the determination in step SH4 is "YES", that is, when the value obtained by dividing the value of the tempo clock register CLK by 4 is 0,
Proceed to step SH5. In step SH5, the value of the count register CT determines whether equal to a constant B MAX. If the result of this determination is "NO", nothing is done,
The program returns to the main routine via the interrupt processing routine shown in FIG.

【0044】いっぽう、ステップSH5の判断結果が
「YES」の場合、すなわち、カウントレジスタCTの
値が定数BMAXに等しい場合には、ステップSH6へ進
む。ステップSH6では、カウントレジスタCTの値に
1をインクリメントした後、図6のインタラプト処理ル
ーチンを経てメインルーチンへ戻る。以上説明したステ
ップSH4〜SH6の処理は、カウントレジスタCTの
値を1拍毎にカウントする処理である。
[0044] On the other hand, when the result of judgment in step SH5 is "YES", i.e., when the value of the count register CT is equal to a constant B MAX, the process proceeds to step SH6. In step SH6, the value of the count register CT is incremented by 1, and then the process returns to the main routine via the interrupt processing routine of FIG. The processing of steps SH4 to SH6 described above is processing for counting the value of the count register CT for each beat.

【0045】次に、この発明の第2の実施例について説
明する。この実施例においては、図12に示すように、
自動伴奏中(図12(a))に鍵盤の右鍵域のキーが押
鍵されると(図12(b))、自動伴奏を所定のレート
(たとえば、1/16拍毎に1レベル)でミュートし、
右鍵域の最後のキーが押鍵されてから所定時間(たとえ
ば、2拍)経過後、所定のレート(たとえば、1/16
拍毎に1レベル)で自動伴奏を復帰させている。これに
より、自動伴奏がスタートした後、押鍵状態が検出され
ても、楽音が急激に変化することはない。
Next, a second embodiment of the present invention will be described. In this embodiment, as shown in FIG.
When a key in the right key range of the keyboard is pressed during automatic accompaniment (FIG. 12A) (FIG. 12B), automatic accompaniment is performed at a predetermined rate (for example, one level every 1/16 beat). Mute,
After a predetermined time (for example, two beats) has elapsed since the last key in the right key range was pressed, a predetermined rate (for example, 1/16
Automatic accompaniment is restored at one level per beat). As a result, even after the automatic accompaniment starts, even if the key pressed state is detected, the musical tone does not suddenly change.

【0046】以下、図面を参照して、この発明の第2の
実施例について説明する。まず、電子楽器の構成につい
ては、第1の実施例と同様である。また、その動作につ
いても第1の実施例とほぼ同様であるので、この実施例
の特徴であるCPU2のミュート処理ルーチンについて
のみ説明する。CPU2の処理が図7のステップSE1
へ進むと、図13に示すミュート処理ルーチンが起動さ
れる。CPU2は、まず、ステップSF101へ進み、
カウントレジスタCTの値が図2に示すスタイル番号S
TLNのスタイルテーブルSTLTBLのトラック番号
TRのミュートディレイMTDDの値以上であるか否か
を判断する。すなわち、ミュートを解除する時間に到達
したか否かを判断する。この判断結果が「NO」の場合
には、ステップSF102へ進む。
Hereinafter, a second embodiment of the present invention will be described with reference to the drawings. First, the configuration of the electronic musical instrument is the same as that of the first embodiment. Since the operation is almost the same as that of the first embodiment, only the mute processing routine of the CPU 2 which is a feature of this embodiment will be described. The processing of the CPU 2 is performed in step SE1 of FIG.
When the process proceeds to, the mute processing routine shown in FIG. 13 is started. The CPU 2 first proceeds to step SF101,
The value of the count register CT is the style number S shown in FIG.
It is determined whether or not the value is equal to or greater than the value of the mute delay MTDD of the track number TR in the style table STLTBL of the TLN. That is, it is determined whether or not the time to release the mute has been reached. If this determination is "NO", the flow proceeds to step SF102.

【0047】ステップSF102では、スタイル番号S
TLNのスタイルテーブルSTLTBLのトラック番号
TRのミュートレベルMTLDがFFHであるか否か、
すなわち、完全にミュートするのか単にレベルを下げる
だけであるかを判断する。この判断結果が「NO」の場
合には、ステップSF103へ進む。ステップSF10
3では、ターゲットレジスタTGTにレジスタVLMに
格納された値に(−)の符号を付けたものを格納した
後、ステップSF105へ進む。
In step SF102, the style number S
Whether the mute level MTLD of the track number TR in the style table STLTBL of the TLN is FF H ,
That is, it is determined whether to completely mute or simply lower the level. If the result of this determination is “NO”, the flow proceeds to step SF103. Step SF10
In No. 3, after storing the value stored in the register VLM with a sign (-) in the target register TGT, the process proceeds to step SF105.

【0048】いっぽう、ステップSF102の判断結果
が「YES」の場合、すなわち、スタイル番号STLN
のスタイルテーブルSTLTBLのトラック番号TRの
ミュートレベルMTLDがFFHである場合には、ステ
ップSF104へ進む。ステップSF104では、ター
ゲットレジスタTGTに、スタイル番号STLNのスタ
イルテーブルSTLTBLのトラック番号TRのオフセ
ットボリュームOVLDの値とミュートレベルMTLD
の値とを加えたものを格納した後、ステップSF105
へ進む。
On the other hand, if the decision result in the step SF102 is "YES", that is, the style number STLN
If the mute level MTLD of the track number TR in the style table STLTBL is FF H , the process proceeds to step SF104. In step SF104, the value of the offset volume OVLD of the track number TR of the style table STLTBL of the style number STLN and the mute level MTLD are stored in the target register TGT.
After storing the value obtained by adding the value of
Proceed to.

【0049】ステップSF105では、レジスタVOL
V(TR)の値から1をディクリメントした後、ステッ
プSF106へ進む。ステップSF106では、レジス
タVOLV(TR)の値がターゲットレジスタTGTに
格納されている値より小さいか否かを判断する。この判
断結果が「NO」の場合には、なにもせず、図7の再生
処理ルーチンへ戻り、ステップSE2へ進む。
In step SF105, the register VOL
After decrementing 1 from the value of V (TR), the process proceeds to step SF106. In step SF106, it is determined whether or not the value of the register VOLV (TR) is smaller than the value stored in the target register TGT. If the result of this determination is “NO”, the process returns to the reproduction process routine of FIG. 7 without doing anything, and proceeds to step SE2.

【0050】いっぽう、ステップSF106の判断結果
が「YES」の場合、すなわち、レジスタVOLV(T
R)の値がターゲットレジスタTGTに格納されている
値より小さい場合には、ステップSF107へ進む。ス
テップSF107では、レジスタVOLV(TR)にタ
ーゲットレジスタTGTに格納されている値を格納した
後、図7の再生処理ルーチンへ戻り、ステップSE2へ
進む。
On the other hand, if the decision result in the step SF106 is "YES", that is, the register VOLV (T
If the value of R) is smaller than the value stored in the target register TGT, the process proceeds to Step SF107. In step SF107, after the value stored in the target register TGT is stored in the register VOLV (TR), the process returns to the reproduction processing routine of FIG. 7 and proceeds to step SE2.

【0051】また、ステップSF101の判断結果が
「YES」の場合、すなわち、カウントレジスタCTの
値が、スタイル番号STLNのスタイルテーブルSTL
TBLのトラック番号TRのミュートディレイMTDD
の値以上である場合には、ステップSF108へ進む。
ステップSF108では、レジスタVOLV(TR)の
値に1をインクリメントした後、ステップSF109へ
進む。
If the decision result in the step SF101 is "YES", that is, if the value of the count register CT is the style table STL of the style number STLN.
Mute delay MTDD of track number TR of TBL
If the value is equal to or more than the value, the process proceeds to step SF108.
In step SF108, the value of the register VOLV (TR) is incremented by 1, and the process proceeds to step SF109.

【0052】ステップSF109では、レジスタVOL
V(TR)の値が、スタイル番号STLNのスタイルテ
ーブルSTLTBLのトラック番号TRのオフセットボ
リュームOVLDの値以上であるか否かを判断する。こ
の判断結果が「NO」の場合には、なにもせず、図7の
再生処理ルーチンへ戻り、ステップSE2へ進む。いっ
ぽう、ステップSF109の判断結果が「YES」の場
合、すなわち、レジスタVOLV(TR)の値が、スタ
イル番号STLNのスタイルテーブルSTLTBLのト
ラック番号TRのオフセットボリュームOVLDの値以
上である場合には、ステップSF110へ進む。ステッ
プSF110では、レジスタVOLV(TR)に、スタ
イル番号STLNのスタイルテーブルSTLTBLのト
ラック番号TRのオフセットボリュームOVLDの値を
格納した後、図7の再生処理ルーチンへ戻り、ステップ
SE2へ進む。
In step SF109, the register VOL
It is determined whether or not the value of V (TR) is equal to or greater than the value of the offset volume OVLD of the track number TR in the style table STLTBL of the style number STLN. If the result of this determination is “NO”, the process returns to the reproduction process routine of FIG. 7 without doing anything, and proceeds to step SE2. On the other hand, if the decision result in the step SF109 is "YES", that is, if the value of the register VOLV (TR) is equal to or larger than the value of the offset volume OVLD of the track number TR in the style table STLTBL of the style number STLN, the step is performed. Proceed to SF110. In step SF110, the value of the offset volume OVLD of the track number TR of the style table STLTBL of the style number STLN is stored in the register VOLV (TR), and the process returns to the reproduction processing routine of FIG. 7 and proceeds to step SE2.

【0053】尚、上述した実施例においては、自動伴奏
中に鍵盤の右鍵域のキーが押鍵されると、自動伴奏を直
ちに、あるいは、所定のレートでミュートし、右鍵域の
最後のキーが押鍵されてから所定時間経過後、所定のレ
ートで自動伴奏を復帰させている例を示したが、右鍵域
の最後のキーが離鍵されてから所定時間経過後、所定の
レートで自動伴奏を復帰させてもよい。また、上述した
実施例においては、発音中の音に関しては音量制御しな
い例を示したが、発音中の音についても音量制御するよ
うにしてもよい。さらに、上述した実施例においては、
ミュートのフェードイン/フェードアウトを一定のレー
トで制御する例を示したが、一定時間でミュート/ミュ
ート復帰するようにしてもよい。
In the above-described embodiment, when a key in the right key range of the keyboard is pressed during automatic accompaniment, the automatic accompaniment is muted immediately or at a predetermined rate, and the last key in the right key range is depressed. An example is shown in which the automatic accompaniment is restored at a predetermined rate after a predetermined time has elapsed since the key was pressed, but after a predetermined time has elapsed since the last key in the right key range was released, the automatic accompaniment was resumed at a predetermined rate. May be restored. Further, in the above-described embodiment, an example in which the volume control is not performed for the sound being generated is described. However, the volume control may also be performed for the sound generated. Further, in the embodiment described above,
Although an example in which the mute fade-in / fade-out is controlled at a constant rate has been described, mute / mute return may be performed within a fixed time.

【0054】[0054]

【発明の効果】以上説明したように、この発明によれ
ば、自動伴奏再生中において、鍵操作開始が検出された
時点で自動伴奏音の音量が変更制御され、鍵操作が所定
時間検出されずに鍵操作検出時点からの経過時間が該所
定時間に達した時点で、自動伴奏音の音量の復帰が始ま
るので、自動伴奏がスタートした後、押鍵状態が検出さ
れても、自動伴奏が急激に変化せず、自然な流れになる
という効果がある。したがって、演奏者および聴衆に不
自然な感じを与えることがない。
As described above, according to the present invention, the start of key operation is detected during automatic accompaniment playback.
At this point, the volume of the automatic accompaniment sound is changed and the key operation is
The elapsed time from the key operation detection time without the time detection
When the fixed time is reached, the volume of the auto-accompaniment sound starts to return, so even if the key pressed state is detected after the auto-accompaniment starts, the auto-accompaniment does not change suddenly, and the flow becomes natural. effective. Therefore, it does not give an unnatural feeling to the player and the audience.

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

【図1】 この発明の第1および第2の実施例による電
子楽器の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an electronic musical instrument according to first and second embodiments of the present invention.

【図2】 図1のワーキングメモリ5に記憶されたスタ
イル毎のテーブルの構成の一例を示す図である。
FIG. 2 is a diagram showing an example of a configuration of a table for each style stored in a working memory 5 of FIG.

【図3】 この発明の第1および第2の実施例による電
子楽器のCPU2のメインルーチンの処理を表すフロー
チャートである。
FIG. 3 is a flowchart illustrating a process of a main routine of a CPU 2 of the electronic musical instrument according to the first and second embodiments of the present invention.

【図4】 この発明の第1および第2の実施例による電
子楽器のCPU2のキーイベント処理を表すフローチャ
ートである。
FIG. 4 is a flowchart showing a key event process of the CPU 2 of the electronic musical instrument according to the first and second embodiments of the present invention.

【図5】 この発明の第1および第2の実施例による電
子楽器のCPU2のスイッチイベント処理を表すフロー
チャートである。
FIG. 5 is a flowchart showing a switch event process of the CPU 2 of the electronic musical instrument according to the first and second embodiments of the present invention.

【図6】 この発明の第1および第2の実施例による電
子楽器のCPU2のインタラプト処理を表すフローチャ
ートである。
FIG. 6 is a flowchart showing an interrupt process of the CPU 2 of the electronic musical instrument according to the first and second embodiments of the present invention.

【図7】 この発明の第1および第2の実施例による電
子楽器のCPU2の再生処理を表すフローチャートであ
る。
FIG. 7 is a flowchart showing a reproduction process of the CPU 2 of the electronic musical instrument according to the first and second embodiments of the present invention.

【図8】 この発明の第1の実施例による電子楽器のC
PU2のミュート処理を表すフローチャートである。
FIG. 8 is a diagram showing a C of the electronic musical instrument according to the first embodiment of the present invention;
It is a flowchart showing the mute process of PU2.

【図9】 この発明の第1および第2の実施例による電
子楽器のCPU2のノートデータ処理を表すフローチャ
ートである。
FIG. 9 is a flowchart showing note data processing of the CPU 2 of the electronic musical instrument according to the first and second embodiments of the present invention.

【図10】 この発明の第1および第2の実施例による
電子楽器のCPU2のカウント処理を表すフローチャー
トである。
FIG. 10 is a flowchart illustrating a count process of a CPU 2 of the electronic musical instrument according to the first and second embodiments of the present invention.

【図11】 この発明の第1の実施例による自動伴奏の
ミュートの手法を説明するための図である。
FIG. 11 is a diagram for explaining a method of muting automatic accompaniment according to the first embodiment of the present invention.

【図12】 この発明の第2の実施例による自動伴奏の
ミュートの手法を説明するための図である。
FIG. 12 is a diagram for explaining a method of muting automatic accompaniment according to a second embodiment of the present invention.

【図13】 この発明の第2の実施例による電子楽器の
CPU2のミュート処理を表すフローチャートである。
FIG. 13 is a flowchart showing a mute process of the CPU 2 of the electronic musical instrument according to the second embodiment of the present invention.

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

1……マイクロコンピュータ、2……CPU、3……テ
ンポクロック発生回路、4……プログラムメモリ、5…
…ワーキングメモリ、6……伴奏データメモリ、7……
鍵盤、7a……左鍵域、7b……右鍵域、8……押鍵検
出回路、9……操作パネル、9a……マスタボリュー
ム、9b……スタートスイッチ、9c……ストップスイ
ッチ、9d……スタイルスイッチ、10……スイッチ操
作検出回路、11……楽音信号形成回路、12……アン
プ、13……スピーカ。
1 ... microcomputer, 2 ... CPU, 3 ... tempo clock generation circuit, 4 ... program memory, 5 ...
… Working memory, 6… accompaniment data memory, 7…
Keyboard 7a Left key range 7b Right key range 8 Key press detection circuit 9 Operation panel 9a Master volume 9b Start switch 9c Stop switch 9d Style switch, 10: switch operation detection circuit, 11: musical tone signal forming circuit, 12: amplifier, 13: speaker.

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 鍵盤と、自動伴奏機能を有する電子楽器
において、 前記鍵盤における鍵操作を検出する鍵操作検出手段と、 自動伴奏再生中に計時を行う計時手段であって、前記鍵
操作検出手段により鍵操作が検出される度に計時を始め
て該鍵操作検出時点からの経過時間を計測する計時手段
と、 自動伴奏音の音量を制御する音量制御手段とを備え、 自動伴奏再生時に、前記鍵操作検出手段により鍵操作開
始が検出されると、該自動伴奏再生中における前記自動
伴奏音の音量を前記音量制御手段により変更制御し、ま
、前記計時手段により計測される前記経過時間が所定
時間に達すると、前記音量制御手段は、前記変更制御さ
れている自動伴奏音の音量の復帰を開始するよう制御す
ることを特徴とする電子楽器。
1. An electronic musical instrument having a keyboard and an automatic accompaniment function, comprising: key operation detecting means for detecting a key operation on the keyboard; and time-measuring means for counting time during automatic accompaniment playback , wherein the key operation detecting means starts counting every time the key operation is discovered by
And a volume control means for controlling the volume of the automatic accompaniment sound. The key operation detection means detects the start of the key operation during the automatic accompaniment playback. When the volume of the automatic accompaniment tone in the automatic accompaniment playing change controlled by said volume control means, or <br/>, before SL when the elapsed time measured by the timer means reaches a predetermined time, the An electronic musical instrument, wherein the volume control means controls to start recovery of the volume of the automatic accompaniment sound under the change control.
【請求項2】 前記自動伴奏機能は複数トラックの自動
伴奏パターンを用いた伴奏機能を持ち、 各トラック毎に前記所定時間を設定する時間設定手段を
さらに有し、 前記音量制御手段は各トラック毎に設定された前記所定
時間に応じて前記自動伴奏音の音量の復帰を制御するこ
とを特徴とする請求項1記載の電子楽器。
2. The automatic accompaniment function includes an automatic multi-track accompaniment function.
A time setting means having an accompaniment function using an accompaniment pattern and setting the predetermined time for each track;
Further, the volume control means includes the predetermined volume set for each track.
Controlling the return of the volume of the automatic accompaniment sound according to time.
The electronic musical instrument according to claim 1, wherein:
【請求項3】 前記自動伴奏機能は複数トラックの自動
伴奏パターンを用いた伴奏機能を持ち、 各トラック毎に変更すべき音量値を設定する音量設定手
段をさらに有し、 前記音量制御手段は各トラック毎に設定された前記音量
値に応じて前記自動伴奏音の音量の変更制御及び復帰制
御を行うことを特徴とする請求項1記載の電子楽器。
3. The automatic accompaniment function includes a plurality of tracks.
A volume setting function that has an accompaniment function using an accompaniment pattern and sets the volume value to be changed for each track.
Further comprising a step, wherein the volume control means is configured to set the volume set for each track.
Change control and return control of the volume of the automatic accompaniment sound according to the value
The electronic musical instrument according to claim 1, wherein the electronic musical instrument is controlled.
JP3220558A 1991-08-30 1991-08-30 Electronic musical instrument Expired - Fee Related JP2722880B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3220558A JP2722880B2 (en) 1991-08-30 1991-08-30 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3220558A JP2722880B2 (en) 1991-08-30 1991-08-30 Electronic musical instrument

Publications (2)

Publication Number Publication Date
JPH05100674A JPH05100674A (en) 1993-04-23
JP2722880B2 true JP2722880B2 (en) 1998-03-09

Family

ID=16752877

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3220558A Expired - Fee Related JP2722880B2 (en) 1991-08-30 1991-08-30 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JP2722880B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4514055B2 (en) * 2006-04-28 2010-07-28 ローランド株式会社 Musical sound control device and musical sound control program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS521300Y2 (en) * 1971-10-18 1977-01-13
JPS5640595U (en) * 1979-09-06 1981-04-15
JPH0654433B2 (en) * 1985-02-08 1994-07-20 カシオ計算機株式会社 Electronic musical instrument
JPH0485390U (en) * 1990-11-30 1992-07-24

Also Published As

Publication number Publication date
JPH05100674A (en) 1993-04-23

Similar Documents

Publication Publication Date Title
US7429699B2 (en) Electronic musical instrument and recording medium that stores processing program for the electronic musical instrument
JP2623809B2 (en) Automatic key press indicating device
JP3239411B2 (en) Electronic musical instrument with automatic performance function
JP2722880B2 (en) Electronic musical instrument
JPH01179090A (en) Automatic playing device
JP2000330580A (en) Karaoke apparatus
JPH03242697A (en) Electronic musical instrument
JP3743993B2 (en) Code determination apparatus, code determination method, and medium recording code determination method
JP2500490B2 (en) Automatic accompaniment device
JP2738217B2 (en) Electronic musical instrument
JP3620321B2 (en) Automatic accompaniment device
JP3296202B2 (en) Performance operation instruction device
JP2526439B2 (en) Electronic musical instrument
JPH07152372A (en) Playing device
JP3120487B2 (en) Electronic musical instrument with automatic accompaniment function
JP3203734B2 (en) Performance support device
JP2694788B2 (en) Electronic musical instrument
JP2842440B2 (en) Automatic accompaniment device
JP3005911B2 (en) Performance control device
JP2961675B2 (en) Electronic musical instrument
JP3543161B2 (en) Code data output device
JP4090823B2 (en) Code detection device for electronic musical instrument, code detection method and program
JP2848092B2 (en) Automatic accompaniment device
JP3543159B2 (en) Automatic accompaniment device
JP2004045528A (en) Electronic musical instrument, automatic accompaniment method, computer program, and computer-readable recording medium

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19971028

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20071128

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20081128

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees