JPH067331B2 - Automatic accompaniment device - Google Patents

Automatic accompaniment device

Info

Publication number
JPH067331B2
JPH067331B2 JP62333220A JP33322087A JPH067331B2 JP H067331 B2 JPH067331 B2 JP H067331B2 JP 62333220 A JP62333220 A JP 62333220A JP 33322087 A JP33322087 A JP 33322087A JP H067331 B2 JPH067331 B2 JP H067331B2
Authority
JP
Japan
Prior art keywords
register
key
chord
sound
data
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
JP62333220A
Other languages
Japanese (ja)
Other versions
JPH01177089A (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 JP62333220A priority Critical patent/JPH067331B2/en
Priority to US07/291,110 priority patent/US4939974A/en
Publication of JPH01177089A publication Critical patent/JPH01177089A/en
Publication of JPH067331B2 publication Critical patent/JPH067331B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】 「産業上の利用分野」 この発明は、自動伴奏の和音変更時にタイ表現を行うこ
とができる自動伴奏装置に関する。
TECHNICAL FIELD The present invention relates to an automatic accompaniment apparatus capable of performing Thai expression when changing a chord of an automatic accompaniment.

「従来の技術」 鍵盤の押鍵データに対応して和音による自動伴奏を行う
自動伴奏装置が開発されている(特公昭60−2335
5号等)。
"Prior Art" An automatic accompaniment device for performing automatic accompaniment with chords in response to key press data on a keyboard has been developed (Japanese Patent Publication No. 60-2335).
No. 5).

「発明が解決しようとする問題点」 ところで、人が実際に行う和音演奏においては、和音の
構成音の一部を変更する時には、変更する音に対応する
指のみを動かし、共通する構成音については押鍵したま
まの場合が多い。すなわち、共通構成音については、タ
イ表現にて演奏することが多い。
"Problems to be solved by the invention" By the way, in a chord performance that a person actually performs, when changing a part of a constituent sound of a chord, only a finger corresponding to the sound to be changed is moved, and a common constituent sound Is often pressed. That is, the common constituent sounds are often played in Thai expression.

しかしながら、従来の自動伴奏装置にあっては、和音変
化があった場合には全ての音が再発音されてしまい、よ
り自然な演奏効果を達成することが困難であった。
However, in the conventional automatic accompaniment apparatus, when the chord changes, all the sounds are re-generated, and it is difficult to achieve a more natural performance effect.

この発明は、上述した事情に鑑みてなされたもので、和
音変更時に構成音に共通なものがある場合はタイ表現が
可能な自動伴奏装置を提供することを目的としている。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an automatic accompaniment apparatus capable of performing Thai expression when there is a common constituent sound when a chord is changed.

「問題点を解決するための手段」 上記目的を達成するために、演奏すべき和音を指定する
和音指定手段と、クロック信号に基づく各演奏タイミン
グにおける和音の発生および和音のタイ表現発生を制御
するパターンデータを記憶する記憶手段と、クロック信
号に基づいて前記記憶手段から順次読み出されたパター
ンデータと前記和音指定手段で指定された和音とに基づ
いて和音の構成音を発生する楽音発生手段と、前記読み
出されたパターンデータが和音のタイ表現発生を指示し
ているとき、前記楽音発生手段において現在発生されて
いる和音の構成音のうち前記楽音発生手段において新た
に発生すべき和音の構成音と同一音高の音を検出して検
出した音についてはその発生をそのまま継続させる発音
制御手段とを具備している。
[Means for Solving Problems] In order to achieve the above object, a chord designating means for designating a chord to be played and a chord generation and a tie expression generation of the chord at each performance timing based on a clock signal are controlled. Storage means for storing pattern data; and tone generation means for generating chord constituent tones based on the pattern data sequentially read from the storage means based on a clock signal and the chords designated by the chord designating means. A structure of a chord to be newly generated in the musical tone generating means among the constituent sounds of the chord currently generated in the musical tone generating means when the read pattern data instructs generation of a tie expression of the chord. Sound generation control means for detecting a sound having the same pitch as the sound and continuing the generation of the detected sound is provided.

「作用」 前記パターンデータがタイ表現発生を指示した場合、和
音変更時において現在発生されている和音の構成音の中
に新たに発生される和音の構成音と同一音高の音がある
ことが検出されると、この音の発生はそのまま継続され
て新たな発音開始制御は行われない。このため、当該音
については、タイ表現による発音がなされる。
[Operation] When the pattern data instructs the generation of tie expression, there may be a note having the same pitch as the newly generated chord in the chords currently being generated when the chord is changed. When detected, the generation of this sound is continued as it is, and new sounding start control is not performed. Therefore, the sound is pronounced in Thai expression.

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

(1:実施例の構成) 第1図は、この発明の一実施例の構成を示すブロック図
である。
(1: Configuration of Embodiment) FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

第1図において、符号1は鍵盤ユニットであり、複数の
キーと、各キーのオン/オフ状態を検出するための複数
のキースイッチと、各キースイッチのキーコードをバス
ラインBに供給するインターフェイス回路とから構成さ
れている。ここで、第2図にキーとキーコードとの対応
関係を示す。第2図はキーコードを10進表示してあ
り、この図から判るように半音毎にキーコードの数値が
1変化するようになっており、C3音がキーコード「6
0」となっている。
In FIG. 1, reference numeral 1 is a keyboard unit, a plurality of keys, a plurality of key switches for detecting the on / off state of each key, and an interface for supplying a key code of each key switch to a bus line B. It is composed of a circuit. Here, FIG. 2 shows the correspondence between keys and key codes. FIG. 2 shows the key code in decimal notation, and as can be seen from this figure, the key code value changes by 1 for each semitone, and the C 3 note is the key code "6".
It is "0".

2は装置各部を制御するCPU(中央処理装置)、3は
CPU2のプログラムが記憶されたプログラムメモリ、
4は各種レジスタおよびフラグが設定されるワーキング
メモリである。なお、ワーキングメモリ4内の各レジス
タおよびフラグについては、後述する。
2 is a CPU (central processing unit) for controlling each part of the apparatus, 3 is a program memory in which the program of the CPU 2 is stored,
Reference numeral 4 is a working memory in which various registers and flags are set. The registers and flags in the working memory 4 will be described later.

次に、符号5は、リズム音および和音の伴奏者発生の際
に使用されるパターンデータRPDが記憶されたパター
ンメモリである。この場合パターンメモリ5には、予め
リズム種類(サンバ,スローロック等)およびコードタ
イプに対応した多数のパターンデータRPDが記憶され
ている。このパターンデータRPDのフォーマットを第
3図に示す。図示のように、パターンデータは、26バ
イトのデータにより構成されており、各バイトには相対
的なアドレス「−2」,「−1」,「0」,「1」,…
…「22」,「23」が設定されている。以下に各アド
レスのデータについて説明する。
Next, reference numeral 5 is a pattern memory in which pattern data RPD used when accompaniment of rhythm sounds and chords is generated is stored. In this case, the pattern memory 5 stores in advance a large number of pattern data RPD corresponding to the rhythm type (samba, slow rock, etc.) and chord type. The format of this pattern data RPD is shown in FIG. As shown in the figure, the pattern data is composed of 26-byte data, and each byte has a relative address "-2", "-1", "0", "1", ...
"22" and "23" are set. The data at each address will be described below.

アドレス「−2」:このアドレスには、第4図に示すテ
ーブル#0,#1……のいずれかを指定する8ビットの
テーブルセレクトデータTBLSELが記憶されてい
る。このテーブル#0,#1……はテーブルメモリ6に
記憶されている。
Address "-2": 8-bit table select data TBLSEL designating one of the tables # 0, # 1 ... Shown in FIG. 4 is stored at this address. The tables # 0, # 1 ... Are stored in the table memory 6.

アドレス「−1」:このアドレスには、和音伴奏におい
て本来同時発音すべき和音の構成音を微少時間ずらして
発音する際のずらし時間を指示するディレイタイムデー
タが記憶されている。このデータは、ギターのストロー
ク演奏のように、全体としては各弦がほぼ同時に鳴らさ
れるが実際には弦により微妙に発音タイミングがずれて
いる場合(6弦側が速く1弦側が遅い、あるいはその
逆)を再現するときなどに用いられる。
Address "-1": In this address, delay time data is stored which indicates a shift time when the constituent tones of a chord that should originally be played at the same time as the chord accompaniment are slightly shifted and sounded. This data shows that when the strings are played at the same time as a whole, such as when playing a guitar stroke, the actual timing is slightly deviated depending on the strings (6 string side is fast, 1 string side is slow, or vice versa). ) Is used when reproducing.

アドレス「0」〜「23」:これらの各アドレスには、
和音の音程態様およびキーオン態様を示す発音態様指示
データPDが第0番から第47番まで記憶されている。
このように48の発音態様指示データPD0〜PD47
記憶されているのは、この実施例において1小節(4拍
子)を48分割し、各分割タイミングにおいて発音制御
を行うようにしているからである。この発音態様指示デ
ータPDは、16進表示の(0)〜(F)で表され
る4ビットのデータであり、各発音タイミングに応じ4
ビット単位で順次使用される。ここで、その内容と指示
する発音態様の関係を第5図に示す。
Address "0" to "23": In each of these addresses,
Sound generation mode instruction data PD indicating the pitch mode and the key-on mode of chords are stored from No. 0 to No. 47.
In this way, 48 pronunciation mode instruction data PD 0 to PD 47 are stored because one bar (four beats) is divided into 48 in this embodiment, and the pronunciation control is performed at each division timing. Is. The pronunciation mode instruction data PD is 4-bit data represented by (0) H to (F) H in hexadecimal notation, and is 4 depending on each sounding timing.
Sequentially used bit by bit. Here, FIG. 5 shows the relationship between the content and the instructed pronunciation mode.

第5図において、「ノーマル」とは当該分割タイミング
において発音を行う通常のキーオン態様であり、「タイ
キーオン」とは当該分割タイミングにおける発音音符
(和音構成音)のいずれかがそれ以前の音符(和音構成
音)とタイ記号によりつながれていた場合(第17図参
照)には、当該音符については新たに発音をし直さず継
続して以前の音を伸ばす態様である。また、「ディレイ
キーオン」とは、前述のディレイタイムデータを用いる
演奏を行う態様である。図の上段横軸の数値は音程態様
番号TEBNOであり、第4図に示す各テーブル内にお
いて設定されている音程態様のいずれかを指示する。こ
こで、テーブル#0においては、TEBNO「0」がコ
ードタイプによって決まる通常の和音構成音の音程関係
を指示し、TEBNO「1」が9th(ナインス)の音
を含む和音構成音の音程関係を指示し、TEBNO
「2」が通常の和音構成音の各音を半音下げた音程関係
を指示する。また、テーブル#1においては、音程態様
番号TEBNO「0」が通常の和音構成音の音程関係
を、「1」が通常の和音構成音の各音を半音下げた音程
関係を指示する。このように、音程態様番号TEBNO
の値は、選択されるテーブルの番号により、その機能が
任意に設定される。
In FIG. 5, “Normal” is a normal key-on mode in which sound is generated at the division timing, and “Tie key-on” is a note (chord constituent note) at any of the division timings. In the case where the constituent note) and the tie mark are connected (see FIG. 17), the note is not re-produced newly, but the previous note is continuously extended. The "delay key on" is a mode in which a performance is performed using the delay time data described above. The numerical value on the upper horizontal axis of the figure is the pitch mode number TEBNO, and indicates any of the pitch modes set in each table shown in FIG. Here, in Table # 0, TEBNO “0” indicates the pitch relation of the normal chord constituent tones determined by the chord type, and TEBNO “1” indicates the pitch relation of the chord constituent tones including the 9th (nine) note. Instruct, TEBNO
“2” indicates a pitch relationship in which each of the notes of the normal chord is lowered by a semitone. In the table # 1, the pitch mode number TEBNO “0” indicates the pitch relation of the normal chord constituent tones, and the “1” indicates the pitch relation in which each tone of the normal chord constituent tones is lowered by a semitone. In this way, the pitch mode number TEBNO
As for the value of, its function is arbitrarily set by the number of the selected table.

また、第4図に示すコードタイプの記号は、汎用のコー
ドタイプ記号を用いており、例えば、Mはメジャー、m
はマイナー,susはサス、Augはオーグメント、d
imはディミニッシュ、数字はセブンスあるいはシック
スス等を示している。これらのコードタイプは、1〜D
の16進コードによって指定されるようになっている。
chは、発音チャンネルを示しており、この実施例にお
いてはch0〜ch2の3つのチャンネルによって複数
音による自動伴奏を行うようにしている。第4図の各発
音チャンネルchの欄に記載されている数値「0」〜
「255」(10進表示)はキーコードである。
The chord type symbol shown in FIG. 4 is a general chord type symbol. For example, M is major and m is m.
Is minor, sus is suspension, Aug is augment, d
Im indicates diminish, and numbers indicate Seventh or Sixth. These code types are 1-D
It is designed to be specified by the hexadecimal code.
Ch indicates a tone generation channel, and in this embodiment, three channels ch0 to ch2 are used to perform automatic accompaniment with a plurality of tones. Numerical value "0" described in the column of each sound generation channel ch in FIG.
“255” (decimal display) is a key code.

また、発音態様指示データPDの内容が(1)
(C)の場合は、上述のように音程態様番号TEBN
Oを指示するが、(0)ときはキーオフを指示し、ま
た、(F)のときは何もせず前の状態を保持すること
を指示する。なお、発音態様指示データPDの内容の
(D),(E)は本実施例では使用していない(第
5図参照)。
Further, the content of the pronunciation mode instruction data PD is (1) H ~
(C) In the case of H , the pitch mode number TEBN as described above
When it is (0) H, key-off is instructed, and when it is (F) H , nothing is done and the previous state is held. The contents (D) H and (E) H of the pronunciation mode instruction data PD are not used in this embodiment (see FIG. 5).

以上がパターン内の各データの機能であり、第3図に示
すフォーマットに従ったパターンデータがリズム種類お
よびコードタイプに対応して複数記憶されている。ま
た、アドレス「−2」「−1」は、パターンデータのヘ
ッダとなっている。
The above is the function of each data in the pattern, and a plurality of pattern data according to the format shown in FIG. 3 are stored corresponding to the rhythm type and the chord type. The addresses "-2" and "-1" are headers of pattern data.

次に、第1図における7は、テンポクロック発生器であ
り、自動演奏音のテンポの基となる一定周期のテンポク
ロックTPをCPU2へ出力する。このテンポクロック
TPによってCPU2に割込みがかかる。この場合、テ
ンポクロックTPの周期は、CPU2からバスラインB
を介して供給されるテンポデータTDに応じて決まる。
Next, 7 in FIG. 1 is a tempo clock generator, which outputs to the CPU 2 a tempo clock TP having a constant cycle which is the basis of the tempo of the automatic performance sound. The tempo clock TP interrupts the CPU 2. In this case, the cycle of the tempo clock TP is from the CPU 2 to the bus line B.
It is determined according to the tempo data TD supplied via.

8はタイマであり、一定周期のパルス信号をCPU2に
割り込み信号として供給する。このタイマ8は、ディレ
イタイムデータ(第3図参照)を用いる演奏において、
設定されたディレイタイムを経時するために用いられ
る。
Reference numeral 8 denotes a timer, which supplies a pulse signal having a constant cycle to the CPU 2 as an interrupt signal. This timer 8 is used for the performance using the delay time data (see FIG. 3).
It is used to elapse the set delay time.

10は、リズム選択スイッチ、リズムスタート/ストッ
プスイッチ、音色選択スイッチ、および各種効果選択ス
イッチ等から構成されているスイッチ群である。12
は、トーンジェネレータであり、鍵盤回路1の押鍵/離
鍵に従ってCPU2から発せられるキーオン/キーオフ
情報に基づいてプレーヤの鍵演奏に対応する楽音を発生
するとともに、パターンデータRPDに基づく伴奏和音
を発生する。また、トーンジェネレータ12は、パーカ
ッション系のリズム音源を有しており、選択されたリズ
ムに対応するリズム音を、テンポクロックTPに従って
発生するようになっている。
A switch group 10 is composed of a rhythm selection switch, a rhythm start / stop switch, a tone color selection switch, various effect selection switches, and the like. 12
Is a tone generator, which generates musical tones corresponding to the key performance of the player based on the key-on / key-off information issued from the CPU 2 according to the key press / release of the keyboard circuit 1, and also generates the accompaniment chord based on the pattern data RPD. To do. The tone generator 12 has a percussion-type rhythm sound source and generates a rhythm sound corresponding to the selected rhythm in accordance with the tempo clock TP.

ここで、上述したワーキングメモリ4内の各種レジスタ
およびフラグの主なものについて説明する。
Here, the main ones of the various registers and flags in the working memory 4 described above will be described.

フラグRUN:自動伴奏走行時に“1”、停止時に
“0”が書き込まれる。
Flag RUN: "1" is written during automatic accompaniment running, and "0" is written during stop.

レジスタCLK:テンポクロックTPのカウント数が書
き込まれるレジスタであり、各小節毎に「0」〜「4
7」の値がサイクリックに書き込まれる。
Register CLK: A register to which the count number of the tempo clock TP is written, and is "0" to "4" for each bar.
The value "7" is written cyclically.

レジスタDL1,DL2:チャンネルch1,ch2の
ディレイタイムを計時するレジスタであり、第3図に示
すディレイタイムデータを書き込まれる。ディレイ演奏
時においては、タイマ8がクロックを出力する毎に減算
され、このレジスタDL1,DL2の内容が0となった
ときに該当するチャンネルの発音が許可される。
Registers DL1, DL2: Registers for measuring the delay time of the channels ch1, ch2, and the delay time data shown in FIG. 3 is written therein. In the delay performance, the timer 8 subtracts each time the clock is output, and when the contents of the registers DL1 and DL2 become 0, the sound generation of the corresponding channel is permitted.

キーコードバッファKCBUF:押鍵されたキーのキー
コードが書き込まれるレジスタであり、複数設けられて
いる。
Key code buffer KCBUF: A register in which a key code of a depressed key is written, and a plurality of keys are provided.

レジスタCHD:和音情報が書き込まれるレジスタであ
り、CPU2が伴奏用鍵盤のキーコードからコードタイ
プと根音を検出するとコードタイプデータが上位4ビッ
トに、根音データが下位4ビットに各々書き込まれる。
根音データは「0」,「1」,……「11」のデータで
あり、C音、C#音、……B音に対応する。コードタイ
プデータは第4図に示すコードタイプに対応したデータ
であり、メジャーM、マイナスm、セブンス7th等に
応じた「1」〜「13」のデータである。
Register CHD: A register into which chord information is written. When the CPU 2 detects the chord type and root note from the key code of the accompaniment keyboard, the chord type data is written in the upper 4 bits and the root note data is written in the lower 4 bits.
The root sound data is data of “0”, “1”, ... “11”, and corresponds to C sound, C # sound, ... B sound. The chord type data is data corresponding to the chord type shown in FIG. 4, and is data of "1" to "13" corresponding to the major M, the minus m, the seventh 7th and the like.

レジスタTCHD:上記和音情報が一時記憶されるレジ
スタである。
Register TCHD: A register for temporarily storing the chord information.

レジスタROOT:上記根音データが一時記憶されるレ
ジスタである。
Register ROOT: A register in which the root note data is temporarily stored.

レジスタTYPE:コードタイプデータが記憶されるレ
ジスタである。
Register TYPE: A register that stores code type data.

レジスタCHK:CLK.MOD.12の演算値が記憶
されるレジスタである。ここで、CLK.MOD.12
とは、レジスタCLKの内容を12で割った商の余りを
いう。このCLK.MOD.12は、一拍内のタイミン
グを表現する。
Register CHK: CLK. MOD. This is a register that stores 12 calculated values. Here, CLK. MOD. 12
Is the remainder of the quotient obtained by dividing the contents of the register CLK by 12. This CLK. MOD. 12 represents the timing within one beat.

レジスタTBLSEL/R:テーブルセレクトデータ
(第3図参照)TBLSELが書き込まれるレジスタで
ある。
Register TBLSEL / R: A register into which table select data (see FIG. 3) TBLSEL is written.

レジスタDLYTM:ディレイタイムデータ(第3図参
照)が書き込まれるレジスタである。
Register DLYTM: A register into which delay time data (see FIG. 3) is written.

アドレスポインタPNT:第3図に示すパターンフォー
マットのアドレスを示すポインタである。
Address pointer PNT: A pointer indicating an address in the pattern format shown in FIG.

レジスタDTおよびNDT:各々発音態様指示データP
Dが書き込まれるレジスタであり、レジスタDTにはそ
の時点の発音態様指示データPDnが書き込まれ、レジ
スタNDTには次のタイミングの発音態様指示データP
n+1が書き込まれる。
Registers DT and NDT: Pronunciation mode instruction data P, respectively
D is a register into which the tone generation mode instruction data PD n at that time is written to the register DT, and the tone generation mode instruction data P at the next timing is written to the register NDT.
D n + 1 is written.

レジスタKEY0〜2:トーンジェネレータ12内の発音
チャンネルch0〜ch2に対応して設けられているキ
ーコードバッファである。このレジスタKEY0〜KE
2に書き込まれるキーコードによって発音チャンネル
ch0〜ch2が発音する音の音高が決定される。
Registers KEY 0 to 2 : Key code buffers provided corresponding to tone generation channels ch0 to ch2 in the tone generator 12. This register KEY 0 to KE
The pitch of the sound generated by the sound generation channels ch0 to ch2 is determined by the key code written in Y 2 .

レジスタOKEY0〜2:レジスタKEY0〜2の前回の値
が記憶されるレジスタである。
Registers OKEY 0-2 : Registers in which the previous values of the registers KEY 0-2 are stored.

フラグMODE:“0”のときはチャンネルchi(
i=1〜2)に新たにキーコードを書き込んでキーオンさせ
る通常のキーオンモードを指示する。また、“1”のと
きは、すでに発音状態にある発音チャンネルに対しキー
コードのみをすり替える発音処理(この処理の詳細は後
述)を指示する。
Flag MODE: When it is "0", the channel chi (
Instruct the normal key-on mode in which a new key code is written in i = 1 to 2 ) and the key is turned on. When the value is "1", a sounding process for switching only the key code to a sounding channel that is already in a sounding state (details of this process will be described later) is instructed.

レジスタRTKEY:レジスタROOT内の根音データ
の音域を変換したキーコードが書き込まれるレジスタで
ある。
Register RTKEY: A register into which a key code obtained by converting the range of the root note data in the register ROOT is written.

以上がワーキングメモリ内に設けられている主なレジス
タ、フラグ等である。
The above is the main registers and flags provided in the working memory.

(2:実施例の動作) 次に、上述した構成によるこの実施例の動作について説
明する。
(2: Operation of Embodiment) Next, the operation of this embodiment having the above-described configuration will be described.

この実施例の動作は、基本的にはリズムに応じて和音
(3音)を刻む自動伴奏である。また、この実施例にお
いては、キーオン態様により発音処理が異なるため、以
下に各キーオン態様毎に説明を行う。
The operation of this embodiment is basically an automatic accompaniment to chord a chord (three notes) according to the rhythm. Further, in this embodiment, since the sound generation processing differs depending on the key-on mode, each key-on mode will be described below.

A:ノーマル メインルーチン“MAIN” 第6図は、この実施例のメインルーチンを示すフロチャ
ートである。まず、電源が投入されると、イニシャル処
理としてワーキングメモリ4内の各種レジスタ、フラグ
(KCBUF、RUN、DL1、DL2等)はクリアさ
れ、その後においてステップSP2以降の処理に移る。
A: Normal Main Routine "MAIN" FIG. 6 is a flowchart showing the main routine of this embodiment. First, when the power is turned on, various registers and flags (KCBUF, RUN, DL1, DL2, etc.) in the working memory 4 are cleared as initial processing, and thereafter, the processing proceeds to step SP2 and thereafter.

ステップSP2においては、スイッチ群10内のスター
トスイッチにオンイベントがあったかどうかが判断され
る。ここで、イベントとはスイッチやキーの状態に変化
があったことをいい、オフからオンへ変化するオンイベ
ントと、オンからオフへ変化するオフイベントとがあ
る。ステップSP2において、スタートスイッチのオン
イベントが検出されると、ステップSP3においてフラ
グRUNの値を反転する。このステップSP2,SP3
の処理により、スタートスイッチが押される毎にフラグ
RUNの値が反転する。次に、ステップSP4におい
て、フラグRUNが“1”か否かが判定され、「NO」
であれば、自動伴奏走行の停止指示となるため、ステッ
プSP5に移って、トーンジェネレータ12のチャンネ
ルch0〜ch2をオフするとともに、リズム音(パー
カッション類)の発生も全てオフする。そして、ステッ
プSP4において「YES」と判定された場合は、自動
伴奏走行の開始が指示された場合であるから、ステップ
SP6に移り、レジスタCLK,DL1,DL2をクリ
アして自動伴奏の開始に備える。ステップSP5,SP
6の処理の後は、ステップSP7に移りリズム選択が変
更されたか否かが判断される。一方、ステップSP2の
判定が「NO」の場合、すなわち、スタートスイッチが
オンもしくはオフのままである場合は、ステップSP3
〜SP5の処理を行わず、ステップSP7に至る。ステ
ップSP7の判定が「YES」のときは、変更されたリ
ズム種類を示すデータに変更し(ステップSP8)、ス
テップSP9でフラグRUNが“1”かどうかが判定さ
れる。この判定が、「YES」のときは、自動伴奏走行
中にリズム種類が切換られた場合であるから、ステップ
SP10において、それ以前に選択されていたリズム種
類による伴奏の発音を停止し、新たに選択されたリズム
による伴奏に備え、その後にステップSP11において
キーイベントの有無の判定を行う。一方、ステップSP
9の判定が、「NO」の場合は、以前から継続して自動
伴奏が行われていない場合か、自動伴奏を停止すべくス
テップSP3においてフラグRUNをクリアした場合で
ある。したがって、すでにトーンジェネレータ12内の
チャンネルch0〜ch2の発音は停止されているか
ら、ステップSP10の処理を行わず、直ちにステップ
SP11の判定を行う。ステップSP11の判定は、C
PU2が鍵盤回路1から供給されるキーコードの変化を
みることによって行われる。キーイベントがない場合
は、ステップSP12に移り、スイッチ群10内の他の
スイッチの操作に応じて音色や音量の設定、変更等を行
い、再び、ステップSP2に戻って、上記処理を繰り返
し行う。
In step SP2, it is determined whether the start switch in the switch group 10 has an on event. Here, an event means that the state of a switch or a key has changed, and there are an on event that changes from off to on and an off event that changes from on to off. When the ON event of the start switch is detected in step SP2, the value of the flag RUN is inverted in step SP3. This step SP2, SP3
By the processing of, the value of the flag RUN is inverted every time the start switch is pressed. Next, in step SP4, it is determined whether or not the flag RUN is "1", and "NO"
If so, an instruction to stop the automatic accompaniment running is issued, and therefore, the process proceeds to step SP5 to turn off the channels ch0 to ch2 of the tone generator 12 and also turn off the generation of all rhythm sounds (percussion). If it is determined to be "YES" in step SP4, it means that the start of the automatic accompaniment running is instructed. Therefore, the process proceeds to step SP6 to clear the registers CLK, DL1 and DL2 to prepare for the start of the automatic accompaniment. . Step SP5, SP
After the process of 6, the process proceeds to step SP7, and it is determined whether or not the rhythm selection is changed. On the other hand, if the determination in step SP2 is "NO", that is, if the start switch remains on or off, step SP3
The processing proceeds to step SP7 without performing the processing of SP5. If the determination in step SP7 is "YES", the data is changed to data indicating the changed rhythm type (step SP8), and it is determined in step SP9 whether the flag RUN is "1". If this determination is "YES", it means that the rhythm type is switched during the automatic accompaniment running, so in step SP10, the pronunciation of the accompaniment by the rhythm type selected before that is stopped and a new one is newly generated. In preparation for accompaniment with the selected rhythm, the presence / absence of a key event is then determined in step SP11. On the other hand, step SP
If the determination of No. 9 is "NO", it means that the automatic accompaniment has not been performed continuously from before, or the flag RUN is cleared in step SP3 in order to stop the automatic accompaniment. Therefore, since the sound generation of the channels ch0 to ch2 in the tone generator 12 has already been stopped, the processing of step SP10 is not performed and the determination of step SP11 is immediately performed. The determination in step SP11 is C
This is performed by observing a change in the key code supplied from the keyboard circuit 1 by the PU2. If there is no key event, the process proceeds to step SP12 to set or change the tone color or volume according to the operation of the other switches in the switch group 10, and then returns to step SP2 to repeat the above process.

一方、キーイベントがあった場合は、サブルーチン“K
EY・EVT”に処理に移る。
On the other hand, if there is a key event, the subroutine "K
Move to EY / EVT ”.

サブルーチン“KEY・EVT” まず、ステップSPa1において、鍵盤回路1から発せ
られるキーコードを、キーコードバッファKCBUFに
書き込む。キーコードが複数発せられた場合は、所定の
割り当て処理にしたがって各キーコードバッファKCB
UFに割り当てる。そして、ステップSPa2に移り、
イベントのあったキーの発音処理を行う。この発音処理
は、トーンジェネレータ12のチャンネルch0〜ch
2とは別の発音チャンネルにより行われる。すなわち、
この発音はメロディ演奏等の和音演奏とは別の押鍵に応
じた直接的な発音処理である。次に、ステップSPa3
においては、キーコードバッファKCBUF内のキーコ
ードに基づきコードタイプおよび根音を検出し、これら
をレジスタTCHDに書き込む。そして、ステップSP
a4においてCLK.MOD.12の演算、すなわち、
レジスタCLKの内容を12で除して余りを求める演算
を行って、演算結果をレジスタCHKに書き込む。この
演算の結果は、前述のように1拍内におけるタイミング
を示す。ここで、レジスタCLKの内容は、自動伴奏ス
タート開始時にはリセットされて「0」であるが、テン
ポクロック発生器7からテンポクロックTPが発生され
る毎にサブルーチンCLK・ERQ(第12図参照)の
処理により1づつインクリメントされ、小節内のタイミ
ング(「0」〜「47」)を示す値となっている。ステ
ップSPa4の処理が終わると、ステップSPa5に移
りレジスタCHKの内容が1〜3か否かが判断される。
この判断は、キーイベントがあったタイミングが、拍の
最初から1/4のタイミング以内であるか否かの判断であ
る。この判定が「YES」の場合は、レジスタCHDに
レジスタTCHD内のデータが書き込まれる。このレジ
スタTCHD書き込まれたデータ(根音データ+コード
タイムデータ)は、以下の発音処理に用いられる。一
方、ステップSPa5の判定が「NO」の場合は、メイ
ンルーチン“MAIN”に戻り、次の拍の先頭タイミン
グにおいてレジスタCHDに書き込まれる(第12図ス
テップSPd4参照)。すなわち、キーイベントが拍の
先頭部分で生じた場合は、直ちにその変更された和音の
根音データ,コードタイプデータをレジスタCHDに書
き込んで自動伴奏の発音処理に用いるが、キーイベント
が拍の先頭部分以外で生じた場合は、次の拍の先頭タイ
ミングまで待ってから変更された和音の根音データ,コ
ードタイプデータをレジスタCHDに書き込む。これ
は、拍の途中で自動伴奏の和音が変化すると音楽的に不
自然となるので、それを回避するためである。
Subroutine "KEY-EVT" First, in step SPa1, the key code issued from the keyboard circuit 1 is written in the key code buffer KCBUF. When multiple key codes are issued, each key code buffer KCB is processed according to a predetermined allocation process.
Assign to UF. Then, the process proceeds to step SPa2,
Performs pronunciation processing for the key that has an event. This sound generation processing is performed by the channels ch0 to ch of the tone generator 12.
It is performed by a sounding channel other than 2. That is,
This pronunciation is a direct sounding process in response to a key depression, which is different from chord performance such as melody performance. Next, step SPa3
In (1), the chord type and root note are detected based on the key code in the key code buffer KCBUF, and these are written in the register TCHD. And step SP
CLK. MOD. 12 operations, that is,
The contents of the register CLK are divided by 12 to calculate the remainder, and the calculation result is written to the register CHK. The result of this calculation indicates the timing within one beat as described above. Here, the content of the register CLK is reset to "0" at the start of the automatic accompaniment start, but every time the tempo clock TP is generated from the tempo clock generator 7, the contents of the subroutine CLK.ERQ (see FIG. 12) are changed. The value is incremented by 1 by the processing and becomes a value indicating the timing (“0” to “47”) within the bar. When the process of step SPa4 is completed, the process proceeds to step SPa5 and it is determined whether the contents of the register CHK are 1 to 3.
This judgment is to judge whether the timing of the key event is within 1/4 of the timing of the beginning of the beat. If this determination is "YES", the data in the register TCHD is written in the register CHD. The data (root note data + chord time data) written in the register TCHD is used in the following tone generation processing. On the other hand, if the determination in step SPa5 is "NO", the process returns to the main routine "MAIN" and is written in the register CHD at the start timing of the next beat (see step SPd4 in FIG. 12). That is, when a key event occurs at the beginning of the beat, the changed root note data and chord type data of the chord are immediately written to the register CHD and used for the automatic accompaniment sounding process. When it occurs in a portion other than the portion, the root note data and chord type data of the changed chord are written in the register CHD after waiting until the beginning timing of the next beat. This is to avoid the fact that if the chord of the automatic accompaniment changes in the middle of a beat, it becomes unnatural musically.

ステップSPa6の処理が終わると、レジスタCHD内
の根音データおよびコードタイプデータをレジスタRO
OTおよびレジスタTYPEに各々書き込み(ステップ
SPa7、SPa8参照)、“サブルーチンPAT・C
HG”の処理に移る。
When the processing of step SPa6 is completed, the root note data and chord type data in the register CHD are registered in the register RO.
Write to OT and register TYPE respectively (see steps SPa7 and SPa8), and execute "subroutine PAT.C".
Move on to HG "processing.

“サブルーチンPAT・CHG” この処理は、キーイベントがあった場合において、それ
以前に行われていた自動伴奏と、新たなキーイベントに
基づく自動伴奏との整合をとるための処理である。
"Subroutine PAT / CHG" This process is a process for matching the automatic accompaniment performed before that with the automatic accompaniment based on the new key event when there is a key event.

まず、ステップSPb1において、選択されているリズ
ム種類と、レジスタTYPEの内容にもとづいて次に演
奏すべきパターンデータRPDを読出し、レジスタPA
Tに書き込む。そして、ステップSPb2においては、
読出したパターンデータRPDのアドレス「−2」にあ
るテーブルセレクトデータTBLSELおよびアドレス
「−1」にあるディレイタイムデータ(第3図参照)
を、各々レジスタTBLSEL.RおよびレジスタDL
YTMに書き込む。次に、ポインタPNTにレジスタC
LKの値、すなわち、その時点におけるクロックのカウ
ント値を書き込み(ステップSPb3)、PMT.MO
D.2の演算値「0」から否かが判断される(ステップ
SPb4)。この演算は、その時点のクロックカウント
値(CLKの値)が偶数か奇数かを調べる演算であり、
「0」となった場合が偶数である。そして、偶数の場合
は、ステップSPb5に進み、パターンデータRPDの
アドレス「PNT/2」の下位4ビットにある発音態様
指示データPDをレジスタDTに書き込む。また、ステ
ップSPb4における演算が奇数の場合は、ステップS
Pb6に進み、パターンデータRPDのアドレス「(P
NT−1)/2」の上位4ビットにある発音態様指示デ
ータPDをレジスタDTに書き込む。上述したステップ
SPb4〜SPb6の処理は、クロックカウント値と発
音態様指示データPDの番号とを合致させる処理であ
る。例えば、ポインタPNTに書き込まれるクロックカ
ウント値「1」のときは、アドレス「0」の上位4ビッ
トにある発音態様指示データPD1が選択され、また、
クロックカウント値が「46」のときはアドレス23の
下位4ビットにある発音態様指示データPD46が選択さ
れる(第3図参照)。上記処理において、クロックカウ
ント値に対応した発音態様指示データPDがレジスタD
Tに書き込まれると、ステップSPb7に移りレジスタ
DTの内容が(F)Hか否か、すなわち、「何もしな
い」を指示するものであるかどうかが判断される。この
判断が「YES」の場合は、ポインタPNTの値を1減
算し、ステップSPb9を介して再びステップSPb4
以降の処理を行う。この処理はレジスタDTの内容が
(F)H以外のものとなるまで続けられる。そして、
(F)H以外のデータが検出されると、ステップSPb
11に移りレジスタDTの内容が「0」かどうか、すな
わち、キーオフを指示するデータであるかどうかを判断
する。この判定が「YES」の場合は、レジスタKEY
0〜2の内容が「0」であればメインルーチン“MAI
N”(第6図参照)ヘリターンし、「0」でなければト
ーンジェネレータ12のチャンネルch0〜ch2を全
てキーオフするとともに(ステップSPb16,SPb
17)、レジスタKEY0〜2をクリアした後にリターン
する。
First, in step SPb1, the pattern data RPD to be played next is read based on the selected rhythm type and the contents of the register TYPE, and the register PA is read.
Write to T. Then, in step SPb2,
Table select data TBLSEL at the address "-2" of the read pattern data RPD and delay time data at the address "-1" (see FIG. 3)
Respectively in the registers TBLSEL. R and register DL
Write in YTM. Next, register C to the pointer PNT
The value of LK, that is, the count value of the clock at that time is written (step SPb3), and PMT. MO
D. It is determined whether or not the calculated value "0" of 2 is satisfied (step SPb4). This operation is an operation for checking whether the clock count value (CLK value) at that time is an even number or an odd number,
The case where it becomes "0" is an even number. If it is an even number, the process proceeds to step SPb5, and the tone generation mode instruction data PD in the lower 4 bits of the address "PNT / 2" of the pattern data RPD is written in the register DT. If the calculation in step SPb4 is an odd number, step S
Proceed to Pb6, and the address "(P
The tone generation mode instruction data PD in the upper 4 bits of "NT-1) / 2" is written in the register DT. The processing of steps SPb4 to SPb6 described above is processing for matching the clock count value with the number of the sound generation mode instruction data PD. For example, when the clock count value written in the pointer PNT is "1", the tone generation mode instruction data PD 1 in the upper 4 bits of the address "0" is selected, and
When the clock count value is "46" pronunciation mode instruction data PD 46 in the lower 4 bits of the address 23 is selected (see FIG. 3). In the above process, the tone generation mode instruction data PD corresponding to the clock count value is registered in the register D.
When it is written in T, it moves to step SPb7 and it is determined whether or not the content of the register DT is (F) H , that is, whether or not it indicates "do nothing". If the determination is “YES”, the value of the pointer PNT is decremented by 1, and the step SPb4 is executed again through the step SPb9.
Perform the following processing. This process is continued until the content of the register DT becomes something other than (F) H. And
(F) When data other than H is detected, step SPb
Then, the process proceeds to step 11, and it is judged whether the content of the register DT is "0", that is, whether the data is a key-off instruction data. If this determination is “YES”, the register KEY
If the contents of 0 to 2 are "0", the main routine "MAI
Return to N "(see FIG. 6) and if not" 0 ", key off all channels ch0 to ch2 of the tone generator 12 (steps SPb16, SPb).
17), returns after clearing the registers KEY 0-2 .

ここで、上述したステップSPb4〜SPb11および
ステップSPb15〜SPb17の一連の処理の意味に
ついて説明する。
Here, the meaning of the series of processes of steps SPb4 to SPb11 and steps SPb15 to SPb17 described above will be described.

いま、第9図(イ)に示すように、第3拍目の先頭タイ
ミングにおいて和音Cメジャから和音Fメジャへの変更
があったとする。この変更によって新たに読出された和
音Fメジャに対応するパターンデータRPDが譜面上で
第9図(ロ)に示されるものであったとする。この譜面
を発音態様指示データにすると例えば第10図に示すよ
うになる。ここで、第3拍目の先頭タイミングにおける
レジスタCLKの値は「24」であるから、ステップS
Pb3においてポインタPNTに書き込まれる値は「2
4」となる。そして、ステップSPb4→SPb5→S
Pb7の処理により、ステップSPb7においては発音
態様指示データPD24の値が(F)Hか否かが判断され
る。この場合は、(F)Hであるから判定は「YES」
となる。ところで、(F)Hの意味は「何もしない」で
あるから、それ以前にキーオンが指示されていればその
発音を継続し、キーオフが指示されていれば消音状態を
維持しなければならない。したがって、あるタイミング
における発音態様指示データPDが(F)Hである場合
には、新たにどのような発音制御をすべきか不明であ
る。このため、それ以前のタイミングの発音態様指示デ
ータPDであって(F)H以外のものをサーチする必要
がある。ステップSPb4〜SPb10の処理は、この
サーチを行う処理である。さて、上記例にあっては、発
音態様指示データPD24が(F)Hであるから、1つ前
の発音態様指示データPD23を調べると、(0)Hにな
っており、クロックカウント値「24」においては消音
を維持しなければならないことが判る。この消音の判断
は、ステップSPb11において「YES」となった場
合に対応する。
Now, assume that the chord C major is changed to the chord F major at the start timing of the third beat, as shown in FIG. It is assumed that the pattern data RPD corresponding to the chord F major newly read by this change is shown in FIG. 9B on the musical score. When this musical score is used as the pronunciation mode instruction data, it becomes as shown in FIG. 10, for example. Here, since the value of the register CLK at the start timing of the third beat is “24”, step S
The value written in the pointer PNT in Pb3 is "2.
4 ”. Then, steps SPb4 → SPb5 → S
By the processing of Pb7, it is determined in step SPb7 whether or not the value of the tone generation mode instruction data PD 24 is (F) H. In this case, it is (F) H , so the determination is “YES”.
Becomes By the way, since the meaning of (F) H is "do nothing", if the key-on is instructed before that, the sound generation must be continued, and if the key-off is instructed, the mute state must be maintained. Therefore, when the tone generation mode instruction data PD at a certain timing is (F) H, it is unknown what tone control should be newly performed. For this reason, it is necessary to search for the tone generation mode instruction data PD at the timing before that other than (F) H. The processing of steps SPb4 to SPb10 is processing for performing this search. In the above example, since the tone generation mode instruction data PD 24 is (F) H , the previous tone generation mode instruction data PD 23 is (0) H and the clock count value. At "24", it is understood that the mute must be maintained. This mute determination corresponds to "YES" in step SPb11.

ところで、キーイベントがある前の和音Cメジャの伴奏
時のパターンデータRPDが譜面上では第9図(ハ)の
ように表されるとする。この場合にあっては、同図に示
すようにクロックカウント値「23」で消音が指示され
ているから、この時点におけるレジスタKEY0〜2の内
容は、消音指示のためにすべて「0」となっている。す
なわち、クロックカウント値「24」における発音態様
が、変更前(同図(ハ))と変更後(同図(ロ))とで
同じである。このような場合には、ステップSPb15
の判定が「YES」となり、発音制御処理は行わずにそ
のままリターンする。
By the way, it is assumed that the pattern data RPD at the time of accompaniment of the chord C major before the key event is represented as shown in FIG. In this case, since the mute is instructed by the clock count value "23" as shown in the figure, the contents of the registers KEY 0 to 2 at this point are all "0" for the mute instruction. Has become. That is, the sound generation mode at the clock count value “24” is the same before the change ((c) in the figure) and after the change ((b) in the figure). In such a case, step SPb15
The determination is “YES”, and the sound generation control process is not performed and the process directly returns.

一方、キーイベントがある前の和音Cメジャの伴奏時の
パターンデータRPDが譜面上では第9図(ニ)のよう
に表されるとする。この場合にあっては、同図に示すよ
うに、クロックカウント値「23」では2拍目に発音し
た音を継続している必要がある。したがって、レジスタ
KEY0〜2には2拍目の発音に対応するキーコード(付
点4分音符のキーコード)が各々書き込まれている。し
かし、和音変更後のクロックカウント値「24」(3拍
目)にあっては消音の必要がある(同図(ロ)参照)。
そこで、このような場合にあっては、ステップSPb1
6に進んでトーンジェネレータ12の発音チャンネルc
h0〜2をキーオフして消音させ、さらに、レジスタK
EY0〜2をクリアしてからリターンする(ステップSP
b17)。
On the other hand, it is assumed that the pattern data RPD at the time of accompaniment of the chord C major before the key event is represented as shown in FIG. In this case, as shown in the figure, the clock count value "23" needs to continue the sound produced at the second beat. Therefore, key codes (key codes of dotted quarter notes) corresponding to the sound of the second beat are written in the registers KEY 0 to 2. However, it is necessary to mute the clock count value "24" (third beat) after changing the chord (see (b) of the same figure).
Therefore, in such a case, step SPb1
Proceed to step 6, and sound channel c of tone generator 12
Key off h0 ~ 2 to mute, and then register K
Return after clearing EY 0 to 2 (step SP
b17).

以上が、ステップSPb4〜SPb11およびステップ
SPb15〜SPb17の処理の意味である。
The above is the meaning of the processing in steps SPb4 to SPb11 and steps SPb15 to SPb17.

上記ステップSPb11〜SPb17の処理は、変更後
の当該タイミングにおいて消音が指示された場合の処理
であったが、逆に、発音が指示される場合もある。この
場合には、ステップSPb11〜SPb14の処理を行
う。この処理を以下に説明する。
Although the processing of steps SPb11 to SPb17 is the processing when the mute is instructed at the timing after the change, conversely, the sound may be instructed. In this case, the processing of steps SPb11 to SPb14 is performed. This process will be described below.

変更後のパターンデータにおける当該タイミングの発音
態様指示データPD24が(F)H、(0)H以外のとき、
および、当該タイミングから順次さかのぼって検出され
た発音態様指示データPD24が(0)H以外のときは、
変更後において発音が指示される場合である。この場合
にはステップSPb11の判定が「NO」となるから、
ステップSPb12の判定を行う。この判定は前述のス
テップSPb15の判定と同様の判定であり、「YE
S」の場合は、変更前のパターンデータにより当該タイ
ミングにおいて消音されている。また、「NO」の場合
には変更前のパターンデータにより当該タイミングで発
音がなされている。そして、ステップSPb12の判定
が「YES」のときはフラグMODEに“0”が書き込
まれ、「NO」のときはフラグMODEに“1”が書き
込まれる(ステップSPb13,14)。そして、この
処理の後にサブルーチン“PAT・KEY”の処理に移
る。発音処理は、このサブルーチンにおいて行われる。
When the tone generation mode instruction data PD 24 at the timing in the changed pattern data is other than (F) H and (0) H ,
And, when the tone generation mode instruction data PD 24 detected sequentially from the timing is other than (0) H ,
This is the case where the pronunciation is instructed after the change. In this case, the determination in step SPb11 is “NO”,
The determination in step SPb12 is performed. This determination is similar to the determination in step SPb15 described above, and "YE
In the case of "S", the sound is muted at the timing by the pattern data before the change. Further, in the case of "NO", the sound is produced at the timing according to the pattern data before the change. Then, if the determination in step SPb12 is "YES", "0" is written in the flag MODE, and if "NO", "1" is written in the flag MODE (steps SPb13, SPb). After this process, the process moves to the subroutine "PAT KEY". The tone generation process is performed in this subroutine.

サブルーチン“PAT・KEY(ノーマル)” このサブルーチンは、トーンジェネレータ12の発音チ
ャンネルch0〜2を制御するためのサブルーチンであ
る。但し、第5図に示すキーオン態様が「ノーマル」、
「タイキーオン」、「ディレイキーオン」の各場合にお
いて各々処理が異なるため、ここでは「ノーマル」の場
合について説明する。
Subroutine "PAT KEY (Normal)" This subroutine is a subroutine for controlling the tone generation channels ch0 to 2 of the tone generator 12. However, the key-on mode shown in FIG. 5 is "normal",
Since the processing is different in each of the cases of "tie key on" and "delay key on", the case of "normal" will be described here.

まず、第11図に示すステップSPc1において、(D
T−1).MOD.4の演算を行い、演算結果をレジス
タTBLNO.Rに書き込む。この演算は、発音態様指
示データPDの値を音程態様番号TBLNOに変換する
演算である(第5図参照)。次に、ステップSPc2に
おいては、発音態様指示データPDの値をキーオン態様
番号に変換する演算、すなわち、INT{(DT−1)
/4}を行い、その演算結果をレジスタKONTPに書
き込む。ステップSPc3においては、レジスタOKE
YiにレジスタKEYi(i=0〜2)の値を書き込
む。ステップSPc3の処理は、この時点でチャンネル
ch0〜2において発生されている前回のキーコード
を、同一番号のレジスタOKEYに書き込む処理であ
る。次に、ステップSPc4に移り、図示の演算によっ
て根音の音域をG3〜F#3に変更し、変更後の根音をレ
ジスタRTKEYに書き込む処理を行う。この処理例を
示す。今、レジスタROOT内の根音データがC音を示
す「0」の場合は、(ROOT+5).MOD.12の
演算を行うと「5」となり、これの「55」を加算する
と「60」となる。キーコード「60」は第2図に示す
ように、C3音のキーコードである。
First, in step SPc1 shown in FIG. 11, (D
T-1). MOD. 4 is performed, and the result of the operation is stored in the register TBLNO. Write to R. This calculation is a calculation for converting the value of the tone generation mode instruction data PD into the pitch mode number TBLNO (see FIG. 5). Next, in step SPc2, an operation for converting the value of the tone generation mode instruction data PD into a key-on mode number, that is, INT {(DT-1).
/ 4} and write the operation result to the register KONTP. In step SPc3, the register OK
The value of the register KEYi (i = 0 to 2) is written in Yi. The process of step SPc3 is a process of writing the previous key code generated in the channels ch0 to ch2 at this time into the register OKEY of the same number. Next, in step SPc4, the range of the root note is changed to G 3 to F # 3 by the calculation shown in the figure, and the changed root note is written in the register RTKEY. An example of this processing is shown. If the root note data in the register ROOT is “0” indicating the C note, (ROOT + 5). MOD. The calculation of 12 gives "5", and the addition of "55" gives "60". The key code "60" is the key code for the C 3 note, as shown in FIG.

次に、ステップSPc5においては、レジスタTBLS
EL.R(ステップSPb2でセット済み)内のセレク
ト番号に一致するテーブルを読出し、このテーブルにお
いてレジスタTBLNO.R内の音程態様番号TBLN
Oに対応するデータを読出す。そして、この読出したデ
ータの各チャンネルch0〜2に対応する数値をレジス
タRTKEYの値にそれぞれ加え、この加算結果をレジ
スタKEY0〜2に各々書き込む。今、レジスタRTKE
Yの内容がキーコード「60」であり、かつ、テーブル
が#0、音程態様番号TBLNOが0、コードタイプが
M(メジャー)であった場合は、第4図に示すように
4,7,12が各々60に加算される。したがって、レ
ジスタKEY0にはキーコード「64」が、レジスタK
EY1にはキーコード「67」、レジスタKEY2にはキ
ーコード「72」が各々書き込まれる。これらのキーコ
ード「64」,「67」,「72」は各々E3音、G
3音、C4音に対応する。
Next, in step SPc5, the register TBLS
EL. The table corresponding to the select number in R (already set in step SPb2) is read, and the register TBLNO. Pitch mode number TBLN in R
Read the data corresponding to O. Then, a numerical value corresponding to each channel ch0 to 2 of the read data is added to the value of the register RTKEY, and the addition result is written to the registers KEY 0 to 2 . Register RTKE now
When the content of Y is the key code “60”, the table is # 0, the pitch mode number TBLNO is 0, and the chord type is M (major), as shown in FIG. 12 is added to 60 each. Therefore, the key code “64” is stored in the register KEY 0.
The key code “67” is written in EY 1 , and the key code “72” is written in the register KEY 2 . These key codes “64”, “67” and “72” are E 3 note and G respectively
Corresponds to 3 tones and C 4 tones.

ステップSPc5の処理が終わると、ステップSPc6
に移りレジスタKONTPの内容が「0」,「1」,
「2」のいずれであるかが判断される。すなわち、キー
オン態様が「ノーマル」であるか、「ディレイキーオ
ン」であるか、「タイキーオン」であるかが判断され
る。
When the processing of step SPc5 ends, step SPc6
And the contents of the register KONTP are "0", "1",
It is determined which of the two is "2". That is, it is determined whether the key-on mode is "normal", "delay key-on", or "tie-key-on".

ここでは、「ノーマル」について説明するので、ステッ
プSPc7に進む。このステップSPc7においては、
レジスタMODEの内容が“1”か否かが判断され、
「NO」であればステップSPc5においてレジスタK
EY0〜2に書き込んだキーコードを、トーンジェネレー
タ12内の各発音チャンネルch0〜ch2に各々供給
し、当該キーコードの発音を行う(ステップSPc
8)。一方、レジスタMODEの内容が“1”であれ
ば、ステップSPc7の判断が「NO」となり、レジス
タKEY0〜2に書き込んだキーコードとトーンジェネレ
ータ12内の発音チャンネルch0〜ch2内のキーコ
ードとを入れ換えて発音を行う(ステップSPc9)。
このように、キーコードの入れ換えを行うのは、レジス
タMODEが“1”の場合は発音チャンネルch0〜c
h2がそれ以前に供給されたキーコードにより発音継続
している場合であるから(ステップSPb12,SPb
14参照)、途切れのない発音(スラー記号に対応する
発音)を行うために前のキーコードと新たなキーコード
との入れ換えを行う。
Here, since "normal" will be described, the process proceeds to step SPc7. In this step SPc7,
It is determined whether the content of the register MODE is "1",
If "NO", the register K in step SPc5
The key codes written in the EY 0 to 2 are supplied to the tone generation channels ch0 to ch2 in the tone generator 12, and the key codes are produced (step SPc).
8). On the other hand, if the content of the register MODE is "1", the determination at step SPc7 is "NO", and the key code written in the register KEY 0-2 and the key code in the tone generation channels ch0-ch2 in the tone generator 12 are determined. Are replaced to produce sound (step SPc9).
In this way, the key codes are exchanged because the tone generation channels ch0 to c when the register MODE is "1".
This is because h2 continues to be sounded by the key code supplied before that (steps SPb12 and SPb).
14), the previous key code is replaced with the new key code in order to produce a continuous pronunciation (pronunciation corresponding to the slur symbol).

ステップSPc8、SPc9のキーオン処理が終了する
とリターンする。リターン先は、このサブルーチンが
“PAT・CHG”(第8図)において呼ばれた場合
は、メインルーチンである。
When the key-on process of steps SPc8 and SPc9 is completed, the process returns. The return destination is the main routine when this subroutine is called in "PAT.CHG" (Fig. 8).

上述の動作説明は、自動伴奏中においてキーイベント
(和音変更)があった場合の発音処理であり、“MAI
N”→“KEY・EVT”→“PAT・CHG”→“P
AT・KEY”なるルーチンを経て、メインルーチン
“MAIN”にリターンする。なお、変更後のパターン
データの当該タイミングにおいて発音が指示されない場
合は、サブルーチン“PAT・CHG”において消音処
理(ステップSPb16)等を行った後にメインルーチ
ン“MAIN”にリターンする。
The above explanation of the operation is the sound generation process when there is a key event (chord change) during automatic accompaniment.
N ”→“ KEY / EVT ”→“ PAT / CHG ”→“ P ”
After returning to the main routine "MAIN" through the routine "AT.KEY", if the tone generation is not instructed at the timing of the changed pattern data, the mute processing (step SPb16) in the subroutine "PAT.CHG" etc. After performing, the process returns to the main routine "MAIN".

ところで、自動伴奏の通常の発音処理は、テンポクロッ
クTPに基づいて自動的に行われる処理である。この場
合の処理は、第12図に示すサブルーチン“CLK・I
RQ”および第13図に示すサブルーチン“PAT・R
EAD”によって行われる。以下に、これらについて説
明する。
By the way, the normal sounding process of the automatic accompaniment is a process automatically performed based on the tempo clock TP. The processing in this case is performed by the subroutine "CLK.I" shown in FIG.
RQ "and the subroutine" PAT-R "shown in FIG.
EAD ". These will be described below.

サブルーチン“CLK・IRQ” まず、第1図に示すテンポクロック発生器7からテンポ
クロックTPが発せられると、CPU2に割り込みがか
かり、この結果、処理がサブルーチン“CLK・IR
Q”に移る。そして、ステップSPd1においてフラグ
RUN“1”が否が判定され、〔NO」であればリター
ンし、「YES」であればステップSPd2に移る。ス
テップSPd2においては、レジスタCLKの値および
選択されているリズム種に応じて、リズム音発生処理
(パーカッション系の発音)が行われる。次に、ステッ
プSPd3に移り、レジスタCLKの内容を12で割っ
た余りが「0」か否かが判断される。この判断が「YE
S」の場合は、レジスタCLKの内容が拍の先頭タイミ
ング(0,12,24,36)を示している。このステップSPd
3の判定が「NO」のときは直ちにサブルーチン“PA
T・READ”の処理を行い、「YES」の場合にはレ
ジスタTCHDの内容をレジスタCHDに書き込んだ後
に上記サブルーチン“PAT・READ”に移る。ステ
ップSPd4の処理は、前述したステップSPd5の判
定が「NO」となって、レジスタCHKに書き込まれな
かったキーコードを、ここにおいて書き込むための処理
である。
Subroutine “CLK · IRQ” First, when the tempo clock TP is issued from the tempo clock generator 7 shown in FIG. 1, the CPU 2 is interrupted, and as a result, the process is executed by the subroutine “CLK · IRQ”.
Then, in step SPd1, it is determined whether or not the flag RUN "1" is "NO". If "NO", the process returns. If "YES", the process moves to step SPd2. In step SPd2, rhythm sound generation processing (percussion-based sound generation) is performed according to the value of the register CLK and the selected rhythm type. Next, in step SPd3, it is determined whether or not the remainder obtained by dividing the content of the register CLK by 12 is "0". This judgment is "YE
In the case of "S", the content of the register CLK indicates the start timing (0, 12, 24, 36) of the beat. This step SPd
When the judgment of 3 is "NO", the subroutine "PA
The process of "T.READ" is performed, and in the case of "YES", the contents of the register TCHD are written in the register CHD, and then the process proceeds to the above-mentioned subroutine "PAT.READ". The process of step SPd4 is a process for writing the key code, which has not been written in the register CHK, because the determination in step SPd5 described above is "NO".

サブルーチン“PAT・READ” まず、第13図に示すステップSPe1においては、リ
ズム種類とレジスタTYPE内のコードタイプデータに
基づき、演奏すべきパターンデータRPDが選択され、
レジスタPATに書き込まれる。そして、パターンデー
タRPDのアドレス「−2」、「−1」にあるテーブル
セレクトデータTBLSELおよびディレイタイムデー
タを、各々レジスタTBLSEL.RおよびレジスタD
LYTMに書き込む。次に、ステップSPe3において
は、レジスタCLKの内容が偶数か奇数かが判断され、
偶数であればステップSPe4に進み、レジスタDTお
よびNDTにパターンデータのアドレス「CLK/2」
の下位4ビットおよび上位4ビットにある発音態様指示
データPDnおよびPDn+1(nはレジスタCLKの内
容)を各々書き込む。また、レジスタCLKの内容が奇
数であればレジスタDTおよびNDTに、パターンデー
タのアドレス「(CLK−1)/2」の上位4ビットお
よびアドレス「(CLK+1)/2」の下位4ビットに
ある発音態様指示データPDnおよびPPDn+1が書き込
まれる(ステップSPe5)。このステップSPe4,
SPe5の処理により、レジスタDTにはその時点で処
理すべき発音態様指示データPDが書き込まれ、レジス
タNDTには次のタイミング(CLK+1)で処理すべ
き発音態様指示データPDが書き込まれる。例えば、レ
ジスタCLKの内容が「4」の場合は、第5図に示すア
ドレス「2」の発音態様指示データPD4,PD5がレジ
スタDT,NDTに書き込まれ、レジスタCLKの内容
が「5」の場合はアドレス「2」の発音態様指示データ
PD5と、アドレス「3」の発音態様指示データPD6
レジスタDT,NDTに書き込まれる。なお、ステップ
SPe5においてCLK+1の値が「48」となった場
合は、アドレス「0」の下位4ビットを書き込むように
なっている。
Subroutine "PAT.READ" First, in step SPe1 shown in FIG. 13, the pattern data RPD to be played is selected based on the rhythm type and the chord type data in the register TYPE.
Written to register PAT. Then, the table select data TBLSEL and the delay time data at the addresses "-2" and "-1" of the pattern data RPD are respectively registered in the register TBLSEL. R and register D
Write to LYTM. Next, in step SPe3, it is determined whether the content of the register CLK is even or odd,
If it is an even number, the process proceeds to step SPe4, and the pattern data address “CLK / 2” is stored in the registers DT and NDT.
The tone generation mode instruction data PD n and PD n + 1 (n is the content of the register CLK) in the lower 4 bits and the upper 4 bits of the are written respectively. If the content of the register CLK is odd, the pronunciations in the upper 4 bits of the address "(CLK-1) / 2" and the lower 4 bits of the address "(CLK + 1) / 2" of the pattern data are registered in the registers DT and NDT. The mode instruction data PD n and PPD n + 1 are written (step SPe5). This step SPe4
By the processing of SPe5, the tone generation mode instruction data PD to be processed at that time is written to the register DT, and the tone generation mode instruction data PD to be processed at the next timing (CLK + 1) is written to the register NDT. For example, if the content of the register CLK is "4", the fifth address shown in FIG. "2" sound mode instruction data PD 4 for, PD 5 is register DT, written in the NDT, the content of the register CLK is "5" for the sound mode instruction data PD 5 of address "2", sound mode instruction data PD 6 and register DT of address "3" is written in the NDT. When the value of CLK + 1 becomes "48" in step SPe5, the lower 4 bits of the address "0" are written.

次に、ステップSPe6においては、レジスタDTの内
容が(F)Hかどうか、すなわち、当該タイミングにお
いて処理すべき発音態様指示データPDが「何もしな
い」であるかどうかが判断される。この判定が「YE
S」の場合は、ステップSPe11に進み、レジスタN
DTの内容が(F)Hかどうか、すなわち、次に処理す
べき発音態様指示データPDが「何もしない」であるか
どうかが判断される。この判定が「YES」であればリ
ターンし、「NO」であればステップSPe12におい
てレジスタDL1の内容が「0」かどうか判断される。
レジスタDL1は、第6図に示すステップSP1のイニ
シャライズ処理によりクリアされているから、ステップ
SPe12の判定が「YES」となり、ステップSPe
15に進んでレジスタDL2の内容が「0」か否かが判
定される。このレジスタDL2もステップSP1におい
てリセットされているから、判定は「YES」となって
リターンする。このように、レジスタDTの内容が
(F)Hである場合には、ステップSPe6,SPe1
1を介し、あるいはさらにステップSPe12,SPe
15を介してサブルーチン“CLK・IRQ”のステッ
プSPd5にリターンする。ステップSPd5において
は、レジスタCLKの内容を1インクリメントする処理
が行われる。なお、ステップSPd5において図示の演
算を行っているのは、レジスタCLKの内容を「0」〜
「47」で循環させるためである。
Next, in step SPe6, it is determined whether the content of the register DT is (F) H , that is, whether the tone generation mode instruction data PD to be processed at the timing is “do nothing”. This judgment is "YE
In the case of "S", the process proceeds to step SPe11 to register N
It is determined whether or not the content of DT is (F) H , that is, whether or not the pronunciation mode instruction data PD to be processed next is “do nothing”. If this determination is "YES", the process returns. If "NO", it is determined in step SPe12 whether the content of the register DL1 is "0".
Since the register DL1 has been cleared by the initialization processing in step SP1 shown in FIG. 6, the determination in step SPe12 is “YES”, and step SPe
In step 15, it is determined whether the content of the register DL2 is "0". Since this register DL2 is also reset in step SP1, the determination is "YES" and the routine returns. In this way, when the content of the register DT is (F) H , steps SPe6 and SPe1
1 or further steps SPe12, SPe
The process returns via step 15 to step SPd5 of the subroutine "CLK.IRQ". In step SPd5, a process of incrementing the content of the register CLK by 1 is performed. Note that the calculation shown in step SPd5 is performed by changing the contents of the register CLK from "0" to
This is to circulate at “47”.

一方、第13図に示すステップSPe6において「N
O」となると、ステップSPe7に移り、レジスタDT
の内容が(0)Hであるか否かが判断される。この判断
が「YES」であれば、当該タイミングにおいてキーオ
フが指示されているから、トーンジェネレータ12の発
音チャンネルch0〜ch2をすべてキーオフさせ、ま
た、レジスタKEY0〜2をクリアする(ステップSPe
8,SPe9)。ステップSPe7において「NO」と
判断された場合は、ステップSPe10においてフラグ
MODEを“0”にした後サブルーチン“PAT・KE
Y”の処理に移る。
On the other hand, in step SPe6 shown in FIG.
When it becomes "O", the process proceeds to step SPe7 and the register DT
Is determined to be (0) H or not. If this determination is "YES", the key-off is instructed at the timing, so all tone generation channels ch0 to ch2 of the tone generator 12 are keyed off, and the registers KEY 0 to 2 are cleared (step SPe).
8, SPe9). If "NO" is determined in step SPe7, the flag MODE is set to "0" in step SPe10 and then the subroutine "PAT-KE" is set.
Move to the processing of "Y".

サブルーチン“PAT・KEY”の処理は、前述した通
りであり、キーオン態様がノーマルで、フラグMODE
が“0”の場合は、ステップSPc1〜SPc8の処理
による発音がなされる。この発音処理後においては、ス
テップSPe11にリターンする。キーオン態様がノー
マルの場合は、ステップSPe11もしくはステップS
Pe12 SPe15を経て第12図のステップSPd
5にリターンし、レジスタCLKをインクリメントス
る。
The processing of the subroutine "PAT-KEY" is as described above, the key-on mode is normal, and the flag MODE is set.
Is 0, sound is produced by the processing of steps SPc1 to SPc8. After this tone generation processing, the process returns to step SPe11. When the key-on mode is normal, step SPe11 or step S
Pe12 through SPe15 and step SPd in FIG.
The process returns to 5 and increments the register CLK.

以上の処理をテンポクロックTPが発せられる毎に行
う。以上がキーオン態様「ノーマル」の処理である。
The above processing is performed every time the tempo clock TP is issued. The above is the key-on mode “normal” processing.

B:ディレイキーオン 次に、ディレイキーオンの場合について説明する。B: Delay Key On Next, the case of delay key on will be described.

このディレイキーオンは、サブルーチン“PAT・KE
Y”、“PAT・READ”における処理内容が変わる
点と、サブルーチン“TIMER・IRQ”の処理が加
わる以外は前述のノーマルの場合と同様である。始め
に、サブルーチン“PAT・KEY”の処理について説
明する。
This delay key-on is a subroutine "PAT KE".
The procedure is the same as the normal case except that the processing contents of Y "and" PAT / READ "are changed and the processing of the subroutine" TIMER / IRQ "is added. First, the processing of the subroutine" PAT / KEY " explain.

サブルーチン“PAT・KEY”(ディレイキーオ
ン) まず、ステップSPc1からSPc6までは、ノーマル
の場合と同様であるが、ステップSPc6の判定により
ステップSPc10に移り、レジスタMODが“1”か
否かが判断される。この判定が「YES」の場合は、ス
テップSPc9に移り、チャンネルCh0〜ch2内に
キコードをレジスタKEY0〜2内のキコードにすり替え
て3つのキコードをすべて発音する。すなわち、ディレ
イキーオン処理を行わず、3音同時発音とする。これ
は、レジスタMODが“1”となるのは、和音変更のキ
ーイベントがあった場合において、変更前のパターンデ
ータによって発音が継続される場合であるから、新たな
キコードによってディレイキーオンを行うと音楽的に不
自然となるためである。
Subroutine "PAT KEY" (delay key ON) First, steps SPc1 to SPc6 are the same as in the normal case, but the determination in step SPc6 leads to step SPc10 to determine whether or not the register MOD is "1". It If this determination is "YES", the flow proceeds to step SPc9 and the chords in the channels Ch0 to ch2 are replaced with the chords in the registers KEY 0 to 2 to pronounce all three chords. That is, the delay key-on process is not performed, and three sounds are simultaneously sounded. This is because the register MOD becomes "1" when there is a key event for changing a chord and the tone generation is continued by the pattern data before the change, so if the delay key-on is performed by a new key code. This is because it becomes musically unnatural.

一方、ステップSPc10で「NO」と判定された場合
は、ステップSPb2あるいはステップSPe2におい
てレジスタDLYTMに書き込んだディレイタイムデー
タ(第5図参照)を、レジスタDL1に書き込み、ま
た、ディレイタイムデータを2倍してレジスタDL2に
書き込む。そして、ステップSPc12に移り、レジス
タKEY0内のキコードをチャンネルch0に供給してキ
ーオンする。すなわち、レジスタKEY0のキコード
(第4図に示すように和音を構成する音の最低音)はデ
ィレイキーオンせず直ちに発音する。ステップSPc1
2の処理が終わると、直ちにメインルーチン“MAI
N”にリターンするか、第13図のステップSPe11
→(SPc12,15)→第12図のSPd5を介して
メインルーチンにリターンする。前者は、サブルーチン
“PAT・CHG”において“PAT・KEY”がコー
ルされた場合であり、後者はサブルーチン“PAT・R
EAD”において“PAT・KEY”がコールされた場
合である。そして、メインルーチン“MAIN”を循環
中においてタイマ8からパルス信号IPが出力される
と、処理はサブルーチン“TIMER・IRQ”に移
る。この場合、パルス信号IPの周期はテンポクロック
TPより充分に短く設定されているため、通常は次のテ
ンポクロックTPが供給される前にサブルーチン“TI
MER・IRQ”の処理が行われる。
On the other hand, if "NO" is determined in step SPc10, the delay time data (see FIG. 5) written in the register DLYTM in step SPb2 or step SPe2 is written in the register DL1 and the delay time data is doubled. And write it to the register DL2. Then, the flow proceeds to step SPc12, to the key-on to supply Kikodo in register KEY 0 to channel ch 0. That is, the key code of the register KEY 0 (the lowest note of the notes forming the chord as shown in FIG. 4) is immediately sounded without the delay key-on. Step SPc1
Immediately after the processing of step 2, the main routine "MAI
Return to N "or step SPe11 in FIG.
→ (SPc12, 15) → Returns to the main routine via SPd5 in FIG. The former is the case where "PAT-KEY" is called in the subroutine "PAT-CHG", and the latter is the subroutine "PAT-R".
This is the case when "PAT.KEY" is called in "EAD." Then, when the pulse signal IP is output from the timer 8 while the main routine "MAIN" is circulating, the process proceeds to the subroutine "TIMER.IRQ". In this case, since the cycle of the pulse signal IP is set sufficiently shorter than the tempo clock TP, normally the subroutine "TI" is supplied before the next tempo clock TP is supplied.
MER / IRQ "processing is performed.

サブルーチン“TIMER・IRQ” まず、ステップSPf1においてフラグRUNの内容が
“1”か否かが判断され、「NO」であればメインルー
チン“MAIN”にリターンし、「YES」であればス
テップSPf2に進む。ステップSPf2ではレジスタ
DL1の内容が「0」でなければレジスタDL1の内容
が1減算される(ステップSPf3)。そして、減算後
のレジスタDL1の内容が「0」か否かが判断され(ス
テップSPf4)、「0」であればチャンネルch1に
レジスタKEY1内のキーコードを供給してキーオンす
る。ステップSPf4の判定が「NO」の場合は、ステ
ップSPf6に進む。
Subroutine "TIMER IRQ" First, in step SPf1, it is determined whether or not the content of the flag RUN is "1". If "NO", the process returns to the main routine "MAIN". If "YES", the process proceeds to step SPf2. move on. If the content of the register DL1 is not "0" at step SPf2, the content of the register DL1 is decremented by 1 (step SPf3). Then, it is determined whether or not the content of the register DL1 after the subtraction is "0" (step SPf4), and if it is "0", the key code in the register KEY 1 is supplied to the channel ch1 and the key is turned on. If the determination in step SPf4 is "NO", the process proceeds to step SPf6.

次に、ステップSPf6〜SPf9の処理は、上述した
SPf2〜SPf5までの処理と全く同様の処理をレジ
スタDL2について行う処理である。そして、ステップ
SPf9の処理が終わるとリターンし、再び、パルス信
号IPが供給された時点でこのサブルーチン“TIME
R・IRQ”に戻る。このように、パルス信号IPが供
給される毎にサブルーチン“TIMER・IRQ”の処
理が行われると、当初ディレイタイムデータが書き込ま
れていたレジスタDL1,DL2の内容がステップSP
f3,SPf7の処理により順次減算されていき、減算
結果が「0」となったときにおいてレジスタKEY1
KEY2内にキーコードが、チャンネルch1もしくは
チャネンルch2に供給されキーオンされる。すなわ
ち、チャンネルch1の発音はチャネンルch0よりデ
ィレイタイムデータ分だけ遅れ、また、レジスタDL2
の内容がレジスタDL1内容の2倍であることから(ス
テップSPc11参照)、チャネンルch2の発音はチ
ャネンルch1の発音よりさらにディレイタイムデータ
分だけ遅れる。図示すると第15図のようになる。
Next, the processing of steps SPf6 to SPf9 is processing for register DL2 that is exactly the same as the processing of SPf2 to SPf5 described above. Then, when the processing of step SPf9 is completed, the routine returns, and when the pulse signal IP is supplied again, this subroutine "TIME"
When the processing of the subroutine "TIMER.IRQ" is performed every time the pulse signal IP is supplied in this way, the contents of the registers DL1 and DL2 in which the delay time data was initially written are stepped. SP
Subsequent subtraction is performed by the processing of f3 and SPf7, and when the subtraction result becomes "0", the register KEY 1 ,
The key code in KEY 2 is supplied to the channel ch1 or the channel ch2 to be turned on. That is, the sound of the channel ch1 is delayed from the channel ch0 by the delay time data, and the register DL2
2 is twice the content of the register DL1 (see step SPc11), the pronunciation of the channel ch2 is delayed from the pronunciation of the channel ch1 by the delay time data. The illustration is as shown in FIG.

サブルーチン“PAT・READ”のステップSPe
13〜SPe17 ところで、曲のテンポが速い場合は、ディレイキーオン
処理を行うと、ディレイ処理されたキーコードの発音タ
イミングが後に発音されるべき次の音符よりも遅れるこ
とが生じる。例えば、第16図に示すように、最初の1
6分音符の和音についえディレイキーオン処理を行った
場合に、チャネンルch2の発音タイミングが、次の1
6分音符の発音タイミングt1より遅れる場合がある。
これは音楽的に不自然なため、かかる場合はディレイ処
理を中断し、チャネンルch2の発音タイミングをタイ
ミングt1の前にずらす処理を行うようにしている。
Step SPe of subroutine "PAT READ"
13 to SPe17 By the way, when the tempo of the music is fast, when the delay key-on process is performed, the sounding timing of the delayed key code may be delayed from the next note to be sounded later. For example, as shown in FIG. 16, the first 1
When the delay key-on processing is performed for the 6th note chord, the sounding timing of the channel ch2 is
It may be delayed from the sounding timing t 1 of the sixth note.
Since this is musically unnatural, in such a case, the delay process is interrupted and the sounding timing of the channel ch2 is shifted before the timing t 1 .

サブルーチン“PAT・READ”のステップSPe1
3〜SPe17の処理はこのための処理である。以下に
この処理について説明する。
Step SPe1 of subroutine "PAT READ"
The processing of 3 to SPe17 is for this purpose. This process will be described below.

今、ディレイキーオンの処理が終了してないうちに、次
のテンポクロックTPが発せられたとする。この結果、
処理はサブルーチン“CLK・IRQ”を介して“PA
T・READ”に至る。そして、ステップSPe1〜ス
テップSPe6を経てステップSPe11の判定が行わ
れる。この場合、次のテンポクロックTPのタイミング
において音発生を行う場合は、ステップSPe11の判
定が「NO」となるから。ステップSPe12に移り、
レジスタDL1の内容が「0」か否かが判断される。こ
の判定が「NO」であれば、発音チャンネルch1につ
いては未だディレイキーオン処理が行われていない場合
であるから、ステップSPe13おいてレジスタDL1
をクリアし、さらにチャンネルch1にレジスタKEY
1内にキーコードを供給して強制的にキーオンする(ス
テップSPe14)。一方、ステップSPe12の判定
が「YES」であれば、ステップSPe15においてレ
ジスタDL2の内容が「0」か否かが判断される。この
判断が「YES」であれば、チャンネルch1、ch2
の双方のディレイキーオン処理が終了しているため、ス
テップSPd5を介してメインルーチン“MAIN”へ
リターンする。また、ステップSP15で「NO」とな
った場合は、レジスタDL2をクリアしチャンネルch
2にレジスタKEY2内のキーコードを供給して強制的
にキーオンさせる。この処理の後は、ステップSPd5
を介してメインルーチン“MAIN”にリターンする。
Now, it is assumed that the next tempo clock TP is issued before the delay key-on process is completed. As a result,
The process is performed by "PA" via the subroutine "CLK / IRQ".
T.READ ”is reached. Then, the determination at step SPe11 is made through steps SPe1 to SPe6. In this case, when sound is generated at the timing of the next tempo clock TP, the determination at step SPe11 is" NO ". Because Move to step SPe12,
It is determined whether the content of the register DL1 is "0". If this determination is "NO", it means that the delay key-on processing has not been performed yet for the tone generation channel ch1, and therefore the register DL1 in step SPe13.
Clear, and register KEY to channel ch1
The key code is supplied in 1 and the key is forcibly turned on (step SPe14). On the other hand, if the determination in step SPe12 is "YES", it is determined in step SPe15 whether the content of the register DL2 is "0". If this determination is “YES”, channels ch1 and ch2
Since both of the delay key-on processings have been completed, the processing returns to the main routine "MAIN" through step SPd5. If "NO" in the step SP15, the register DL2 is cleared and the channel ch
2 is supplied with the key code in the register KEY2 to forcibly turn on the key. After this process, step SPd5
To return to the main routine "MAIN".

以上がディレイキーオンの処理である。The above is the delay key-on processing.

C:タイキーオン 次に、タイキーオンの処理について説明する。この場合
は、サブルーチン“PAT・KEY”の処理以外は、前
述たノーマルの処理と同様である。
C: Thai Key On Next, the process of Thai key on will be described. In this case, the processing is the same as the normal processing described above, except for the processing of the subroutine "PAT.KEY".

サブルーチン“PAT・KEY”のステップSPc1〜
SPc6までの処理は、ノーマルの場合と同様の処理と
なるが、ステップSPc6の判定において「1」とな
り、ステップSPc13に進む。ステップSPc13に
おいては、レジスタiをクリアし、さらに、ステップS
Pc14においてレジスタjをクリアする。そして、ス
テップSPc15に移りレジスタOKEYiとレジスタ
KEYiの内容が比較される。この処理は、ステップS
Pc3においてレジスタOKEYiに書き込んだ前回の
キーコードデータとステップSPc5においてレジスタ
KEYiに書き込んだ今回のキーコードデータとが一致
してうかどうかを判断する処理である。また、ステップ
SPc15においては、レシスタiとサジスタjの内容
が異なっているか否かも判定する。このステップSPc
15における最初の判断は、レジスタOKEY0とレジ
スタKEY0の内容比較となるが、i=jであるので判
定はNOとなり、ステップSPc17に移る。ステップ
SPc17においては、レジスタjの内容に1が加算さ
れ、ステップSPc18の処理に移る。ステップSPc
18は、レジスタjの値が「3」未満か否かを判定する
処理であり、ステップSPc17の加算処理が2回以下
のときは「YES」となり、再びステップSPc15に
移り比較処理を行う。ステップSPc15における2回
目の比較処理は、OKEY0=KEY1か否かの比較であ
る。この判断が「YES」であれば、レジスタKEYi
とレジスタKEYjの内容を入れ換える(ステップSP
c16)。すなわち、上記の場合においては、レジスタ
KEY0とレジスタKEY1の内容を入れ換える。以後同
様にしてレジスタjの内容をインクリメントし、再びス
テップSPc15の処理を行う。この処理の後にステッ
プSPc17の処理を行うと、ステップSPc1の判定
が「NO」となり、ステップSPc19においてレジス
タiの内容がインクリメントされる。次に、ステップS
Pc20に進み、レジスタiの内容が3未満か否かが判
断される。この判断はステップSPc19の処理が2回
以下のときは「YES」となるから、処理は再びステッ
プSPc14に戻る。すなわち、レジスタiの値を
「1」として、上記処理を繰り返す。以後同様にレジス
タiの値を2にして上記処理を行い、再度ステップSP
c20に至るとこの判定が「NO」となり、ステップS
Pc14〜ステップSPc20からなるループを抜け
る。
Step SPc1 of the subroutine "PAT KEY"
The processing up to SPc6 is the same as that in the normal case, but it is "1" in the determination of step SPc6, and the process proceeds to step SPc13. In step SPc13, the register i is cleared, and further, step S
The register j is cleared at Pc14. Then, in step SPc15, the contents of the register OKEYi and the register KEYi are compared. This process is step S
This is a process of determining whether or not the previous key code data written in the register OKEYi in Pc3 and the current key code data written in the register KEYi in step SPc5 match. In step SPc15, it is also determined whether or not the contents of the register i and the register j are different. This step SPc
The first determination in 15 is a comparison of the contents of the registers OKEY 0 and KEY 0. However, since i = j, the determination is NO, and the process proceeds to step SPc17. In step SPc17, 1 is added to the content of the register j, and the process proceeds to step SPc18. Step SPc
Reference numeral 18 is a process for determining whether or not the value of the register j is less than "3". If the addition process in step SPc17 is less than or equal to two, "YES" is returned, and the process proceeds to step SPc15 again to perform the comparison process. The second comparison processing in step SPc15 is a comparison of whether or not OKEY 0 = KEY 1 . If this determination is “YES”, the register KEYi
And the contents of the register KEYj are exchanged (step SP
c16). That is, in the above case, the contents of the register KEY 0 and the register KEY 1 are exchanged. Thereafter, similarly, the contents of the register j are incremented, and the processing of step SPc15 is performed again. If the process of step SPc17 is performed after this process, the determination at step SPc1 becomes "NO", and the content of the register i is incremented at step SPc19. Next, step S
The process proceeds to Pc20, and it is determined whether the content of the register i is less than 3. This determination is “YES” when the processing in step SPc19 is twice or less, so the processing returns to step SPc14 again. That is, the value of the register i is set to "1" and the above process is repeated. Thereafter, similarly, the value of the register i is set to 2 and the above processing is performed, and the step SP is performed again.
When it reaches c20, this determination becomes “NO”, and step S
The loop consisting of Pc14 to step SPc20 is exited.

このループの処理によってレジスタOKEYi=KEY
jとなった場合は、レジスタKEYiの内容とレジスタ
KEYjの内容が入れ換えられる。これにより、レジス
タKEYi(i=0〜2)内の次に発音すべきキーコードが、
現在発音されている発音チャンネルchiのキーコード
と同じ場合は、当該発音チャンネルと同一の番号のレジ
スタKEYiに入れ換えらえる。ただし、発音チャンネ
ルchiと同一のレジスタKEYiに初めから同じキー
コードが書き込まれている場合は、入れ換えの必要がな
いので、この処理は行われない。
By the processing of this loop, the register OKEYi = KEY
When it becomes j, the contents of the register KEYi and the contents of the register KEYj are exchanged. As a result, the key code to be pronounced next in the register KEYi (i = 0 to 2 ) is
If it is the same as the key code of the sounding channel chi currently being sounded, it is replaced with the register KEYi having the same number as the sounding channel. However, if the same key code is written in the register KEYi that is the same as the tone generation channel chi from the beginning, this process is not performed because there is no need for replacement.

例えば、第17図に示すように現在G3音,B3音,D4
音による和音(和音G)が奏せられており、レジスタO
KEY0,OKEY1,OKEY2に各々キーコード「6
7」,「71」,「74」は書き込まれているとする。
そして、次に発音すべき音がE3音,G3音,D4音(和
音C9th)でレジスタKEY0,KEY1,KEY2に各々
キーコード「64」,「67」,「74」が書き込まれ
ているとする。この場合には、KEY2=OKEY2、K
EY1=OKEY0であり、KEY0については一致する
ものがない。したがって、レジスタKEY2はそのまま
であるが、レジスタKEY1とKEY0の内容は入れ換え
らえる。対応関係を示すと以下のようになる。
For example, as shown in FIG. 17, the present G 3 sound, B 3 sound, D 4 sound
A chord (chord G) based on the sound is played, and the register O
Key code "6" is added to KEY 0 , OKEY 1 , and OKEY 2 , respectively.
It is assumed that "7", "71", and "74" have been written.
Then, the next tones to be pronounced are E 3 tone, G 3 tone and D 4 tone (chord C 9th ), and key codes “64”, “67” and “74” are respectively stored in the registers KEY 0 , KEY 1 and KEY 2. Is written. In this case, KEY 2 = OKEY 2 , K
EY 1 = OKEY 0 , and there is no match for KEY 0 . Therefore, the contents of the registers KEY 1 and KEY 0 can be exchanged, while the register KEY 2 remains unchanged. The correspondence is shown below.

次に、ステップSPc21においてレジスタiがクリア
されると、ステップSPc22においてレジスタOKE
YiとレジスタKEYiの同一番号のものの内容が等し
いかどうかが判定される。この判定結果が「NO」のと
きは、ステップSPc23に進みフラグMODEが
“1”か否かが判断され、「NO」であれば、現在発音
中に音がない場合であるから発音チャンネルchiにレ
ジスタKEYiのキーコードを供給してキーオン処理を
行う(ステップSPc24)。また、ステップSPc2
3の判定が「YES」の場合は、現在発音中の音がある
場合であるから、発音チャンネルchiのキーコードと
レジスタKEYiのキーコードを入れ換えて発音処理を
行う(ステップSPc25)。これらの処理の後はステ
ップSPc26においてレジスタiをインクリメント
し、ステップSPc27を介してステップSPc22に
移り上記動作を繰り返す。
Next, when the register i is cleared in step SPc21, the register OK is set in step SPc22.
It is determined whether the contents of Yi and the register KEYi having the same number are the same. If the result of this determination is "NO", the flow proceeds to step SPc23, where it is determined whether the flag MODE is "1", and if "NO", it means that there is no sound currently being sounded, so the sound generation channel chi is selected. The key code of the register KEYi is supplied to perform the key-on process (step SPc24). In addition, step SPc2
If the judgment of 3 is "YES", it means that there is a sound currently being sounded, and therefore the sound code is performed by exchanging the key code of the sound generation channel chi and the key code of the register KEYi (step SPc25). After these processes, the register i is incremented in step SPc26, the process proceeds to step SPc22 via step SPc27, and the above operation is repeated.

一方、ステップSPc22の判定が「YES」の場合
は、新たな発音処理(ステップSPc24,25)を行
わず、ステップSPc26,SPc27を介してステッ
プSPc22に至り、上記処理を繰り返す。このように
新たな発音処理が行われないと、発音チャンネルchi
は前回の音をそのまま継続して発し続ける。
On the other hand, if the determination in step SPc22 is "YES", the new sounding process (steps SPc24, 25) is not performed, and the process goes to step SPc22 via steps SPc26, SPc27 to repeat the above process. If new pronunciation processing is not performed in this way, the pronunciation channel chi
Keeps emitting the previous sound.

そして、ステップSPc22〜SPc26の処理が3回
行われると、ステップSPc27の判定が「NO」とな
ってリターンする。
Then, when the processing of steps SPc22 to SPc26 is performed three times, the determination at step SPc27 becomes "NO" and the process returns.

ここで、第1表に示した例において上記処理がおこなわ
れると、i=0とi=2のときにおいてOKEYi=K
EYiとなるので、発音チャンネルch0とch2につ
いては新たな発音処理が行われず、前回の音であるD4
音とG3音が継続して発せられる。また、発音チャンネ
ルch1については、ステップSPc24において新た
にE3音の発音が為される。この結果、第17図に示す
ように、D4音とG3音は、タイ記号によりつながれた音
符として発音される。
Here, if the above process is performed in the example shown in Table 1, OKEYi = K when i = 0 and i = 2.
Since the EYi, not performed a new sound processing for sound channel ch0 and ch2, D 4 is the last sound
Sound and G 3 sound are emitted continuously. Further, for the sound generation channel ch1, the sound E 3 is newly generated in step SPc24. As a result, as shown in FIG. 17, the D 4 note and the G 3 note are pronounced as notes connected by tie marks.

以上がタイキーオンの処理である。The above is the tie-key on processing.

D:総合的動作例 第18図は、パターンデータの一例である。そして、上
記パターンデータでて#0が選択され、かつ、コードタ
イプがCメジャーである場合の演奏例を第19図に示
す。この図に示すように、1拍目の先頭タイミング(C
LK=「0」)においては、発音態様指示データPD0
が(9)Hであるから、第5図に示すようにキーオン態
様がディレイキーオンで、音程態様番号TBLNOが
「0」である。したがって、演奏は第19図に示すよう
にE3音,G3音,C4音のディレイキーオンとなる。そ
して、レジスタCLKが「1」〜「10」となるタイミ
ングにおいては発音態様指示データPDが(F)Hであ
るから何もしない。レジスタCLKが「11」となるタ
イミングにおいては、発音態様指示データPDが(0)
Hとなるため、上記各音を消音する。この結果、第19
図に示すようにE3音,G3音,C4音が4分音符の長さ
で発音される。そして、レジスタCLKが「12」とな
るタイミングにおいては、発音態様指示データPDが
(1)Hであるからノーマルキーオンで音程態様番号T
BLNOが「0」が選択される。したがって、このタイ
ミングにおいては、E3音,G3音,C4音が発せられ
る。そして、レジスタCLKが「17」となるタイミン
グの発音態様指示データが(0)Hとなっているから上
記各音はこの時点で消音される。この結果、上記各音
は、8分音符の長さで発音される。次に、レジスタCL
Kが「18」となるタイミングの発音態様指示データP
Dは(A)Hであるから、ディレイキーオンで音程態様
番号TBLNOが「1」となる。この結果、C9thのコ
ードの発音となり(第4図参照)、E3音,G3音,D4
音が発音される。そして、レジスタCLKが「24」と
なるタイミングの発音態様指示データPDが(5)H
なっているから、第5図に示すようにキーオン態様がタ
イキーオンで音程態様番号TBLNOが「0」となる。
この結果、E3音,G3音,C4音の発音となり、かつ、
3音,G3音がタイ記号によりつながれた発音となる。
また、2拍目の最終タイミング(CLK=「23」)の
発音態様指示データPDが(0)Hとなっていないから
3拍目のC4音は消音を介さずに発音され(キーコード
入れ換えの発音)、スラー記号によってつながれた音の
発音となる。次に、レジスタCLKが「29」となるタ
イミングにおいては消音が指示され、以後4拍目の先頭
タイミングまで発音態様指示データPDが(F)Hとな
っている。これにより、第19図に示すように8分休符
が表現される。そして、4拍目の先頭タイミングと、4
拍目の1/2のタイミングにおいて発音態様指示データP
Dが(3)H,(1)Hとなっているので、♭E3音、♭
3音、♭C4音(=B3音)およびE3音,G3音,C4
がそれぞれ8分音符の長さで発音される。
D: Overall operation example FIG. 18 is an example of pattern data. FIG. 19 shows a performance example when # 0 is selected in the pattern data and the chord type is C major. As shown in this figure, the start timing (C
LK = “0”), the pronunciation mode instruction data PD 0
Is (9) H , the key-on mode is delay key-on and the pitch mode number TBLNO is “0” as shown in FIG. Thus, playing a delay key-on of the 19 E 3 sounds as shown in FIG, G 3 sounds, C 4 sounds. Then, at the timing when the register CLK becomes "1" to "10", nothing is done because the tone generation mode instruction data PD is (F) H. At the timing when the register CLK becomes “11”, the sound generation mode instruction data PD is (0).
Since it becomes H , the above sounds are muted. As a result,
E 3 sounds as shown in FIG, G 3 sounds, C 4 sound is pronounced by the length of a quarter note. Then, at the timing when the register CLK becomes “12”, the tone mode instruction data PD is (1) H , so that the tone mode number T is reached when the normal key is turned on.
BLNO is selected as "0". Therefore, at this timing, E 3 , G 3 , and C 4 tones are emitted. Then, since the sound generation mode instruction data at the timing when the register CLK becomes “17” is (0) H , the above sounds are muted at this point. As a result, each of the above notes is sounded at the length of an eighth note. Next, register CL
The pronunciation mode instruction data P at the timing when K becomes "18"
Since D is (A) H , the pitch mode number TBLNO becomes "1" when the delay key is turned on. As a result, the C 9th chord is produced (see Fig. 4), and the E 3 note, G 3 note, and D 4 note
The sound is pronounced. Since the tone generation mode instruction data PD at the timing when the register CLK becomes "24" is (5) H , the key-on mode is the tie key-on and the pitch mode number TBLNO is "0" as shown in FIG. .
As a result, E 3 sound, G 3 sound, C 4 sound are produced, and
The E 3 and G 3 sounds are connected by the Thai symbol.
Also, since the sounding mode instruction data PD at the final timing of the second beat (CLK = “23”) is not (0) H , the C 4 note of the 3rd beat is sounded without silencing (key code replacement). Pronunciation), the pronunciation of sounds connected by the slur symbol. Next, at the timing when the register CLK becomes "29", the mute is instructed, and thereafter, the sounding mode instruction data PD is (F) H until the leading timing of the fourth beat. As a result, eighth rests are expressed as shown in FIG. And the start timing of the 4th beat and 4
Pronunciation mode instruction data P at the timing of 1/2 of the beat
Since D is (3) H , (1) H , ♭ E 3 note, ♭
G 3 sounds, ♭ C 4 sound (= B 3 sound) and E 3 sound, G 3 sounds, C 4 sound is pronounced by the length of an eighth note, respectively.

(3:実施例の変形) 上記実施例は以下のように変形することが可能である。(3: Modification of Embodiment) The above embodiment can be modified as follows.

上述した実施例は、主に伴奏鍵盤の演奏について説明
したが、メロディ鍵盤を付加し、メロディ演奏を合わせ
て行うよう構成してもよい。
In the above-described embodiment, the performance of the accompaniment keyboard is mainly described, but a melody keyboard may be added to perform the melody performance together.

自動伴奏形態として、単独の和音演奏を示したが、ベ
ース音や自動アルペジオ演奏等の他のパートと組み合わ
せることも可能である。さらに、上記実施例では根音自
体の発音は行わなかったが、根音も合わせて発音するよ
うに構成してもよい。
As an automatic accompaniment form, a single chord performance is shown, but it is also possible to combine it with other parts such as a bass sound and an automatic arpeggio performance. Further, although the root note itself is not pronounced in the above-mentioned embodiment, the root note may be also pronounced.

ディレイキーオンにおいて、専用のタイマ8によって
ディレイ時間の計時を行ったが、デンポクロックTPを
用いてディレイ時間を計時してもよい。
In the delay key-on, the dedicated timer 8 measures the delay time, but the delay time may be measured using the depo clock TP.

テンポの分解能や拍子は、実施例においては「48」
および4/4拍子であったが、これに限定されず、他の任
意の分解能および拍子を設定すことも可能であり、ま
た、組み合わせて構成することも可能である。
The tempo resolution and time signature are “48” in the embodiment.
However, the resolution is not limited to this, and other arbitrary resolutions and time signatures can be set, and they can be configured in combination.

実施例においては、テーブルが複数設けられていた
が、これは1つでもよい。この場合は、テーブルセレク
トデータTBSELは不要となる。
Although a plurality of tables are provided in the embodiment, the number of tables may be one. In this case, the table select data TBSEL becomes unnecessary.

音程の変化は、実施例においては、発音態様指示デー
タPDによってテーブル内の音程態様番号TBLNOを
選択することによって行ったが、テーブルによらず演算
で行ってもよい。
In the embodiment, the change of the pitch is performed by selecting the pitch mode number TBLNO in the table according to the sound mode instruction data PD, but it may be calculated not depending on the table.

例えば、半音下げる変化(第5図の音程態様番号2)な
どは、機械的にキーコードの数値を1減算するような処
理を行えばよい。
For example, in the case of a semitone lowering change (pitch mode number 2 in FIG. 5) or the like, a process of mechanically subtracting 1 from the key code value may be performed.

「発明の効果」 以上説明したように、この発明によれば、パターンデー
タがタイ表現発生を指示した場合、和音変更時において
現在発生されている和音の構成音中に新たに発生される
和音の構成音と同一音高の音があることが検出される
と、この音の発生がそのまま維持されるので、自動伴奏
における任意の音符に対してタイ表現を自動的に付与す
ることができ、従来にない演奏効果を奏することができ
る。
[Effects of the Invention] As described above, according to the present invention, when the pattern data instructs the generation of a tie expression, a chord newly generated in the constituent tones of the chord currently generated at the time of changing the chord is generated. When it is detected that there is a note with the same pitch as the constituent note, the occurrence of this note is maintained as it is, so it is possible to automatically give a tie expression to any note in the automatic accompaniment. It is possible to produce performance effects that are not found in the world.

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

第1図はこの発明の一実施例の構成を示すブロック図、 第2図は同実施例で用いるキーコードとキーとの関係を
示す図、 第3図は同実施例におけるリズムパターンデータのフォ
ーマットを示す図、 第4図は自動伴奏の和音の音程を決定するテーブルの内
容を示す図、 第5図は発音態様指示データの機能を示す図、 第6図は同実施例のメインルーチンを示すフローチャー
ト、 第7図、第8図、第11図、第12図、第13図、第1
4図は各々同実施例のサブルーチンを示すフローチャー
ト、 第9図は自動伴奏中にキーイベントがあった場合の発音
処理を示すための図、 第10図は発音態様指示データの一例を示す図、 第15図はディレイキーオン処理を説明するためのタイ
ミング図、 第16図はディレイキーオン処理における禁止処理を示
すためのタイミグ図、 第17図はタイキーオン処理を説明するための楽譜、 第18図は総合動作例における発音態様指示データの一
例を示す図、 第19図は第18図に示す発音態様指示データを用いた
場合の演奏例を示す楽譜である。 1……鍵盤回路、2……CPU、3………プログラムメ
モリ、4……ワーキングメモリ、5……リズムパターン
メモリ、6……テーブルメモリ、7……テンポクロック
発生器、8……タイマ、12……トーンジェネレータ。
FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention, FIG. 2 is a view showing a relationship between key codes and keys used in the embodiment, and FIG. 3 is a format of rhythm pattern data in the embodiment. FIG. 4, FIG. 4 is a diagram showing the contents of a table for determining the pitch of the chord of the automatic accompaniment, FIG. 5 is a diagram showing the function of the pronunciation mode instruction data, and FIG. 6 is the main routine of the same embodiment. Flow chart, FIG. 7, FIG. 8, FIG. 11, FIG. 12, FIG. 13, FIG.
4 is a flow chart showing a subroutine of the same embodiment, FIG. 9 is a diagram showing a sounding process when there is a key event during automatic accompaniment, and FIG. 10 is a diagram showing an example of sounding mode instruction data, FIG. 15 is a timing chart for explaining the delay key-on processing, FIG. 16 is a timing chart for showing prohibition processing in the delay key-on processing, FIG. 17 is a musical score for explaining the tie-key on processing, and FIG. FIG. 19 is a diagram showing an example of the pronunciation mode instruction data in the operation example, and FIG. 19 is a musical score showing an example of performance when the pronunciation mode instruction data shown in FIG. 1 ... keyboard circuit, 2 ... CPU, 3 ......... program memory, 4 ... working memory, 5 ... rhythm pattern memory, 6 ... table memory, 7 ... tempo clock generator, 8 ... timer, 12 ... Tone generator.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】a.演奏すべき和音を指定する和音指定手
段と、 b.クロック信号に基づく各演奏タイミングにおける和
音の発生および和音のタイ表現発生を制御するパターン
データを記憶する記憶手段と、 c.クロック信号に基づいて前記記憶手段から順次読み
出されたパターンデータと前記和音指定手段で指定され
た和音とに基づいて和音の構成音を発生する楽音発生手
段と、 d.前記読み出されたパターンデータが和音のタイ表現
発生を指示しているとき、前記楽音発生手段において現
在発生されている和音の構成音のうち前記楽音発生手段
において新たに発生すべき和音の構成音と同一音高の音
を検出して検出した音についてはその発生をそのまま継
続させる発音制御手段と を具備していることを特徴とする自動伴奏装置。
1. A. Chord specifying means for specifying a chord to be played, b. Storage means for storing pattern data for controlling generation of chords and tie expression generation of chords at each performance timing based on the clock signal; c. Musical tone generating means for generating a constituent sound of a chord based on the pattern data sequentially read from the storage means based on a clock signal and the chord designated by the chord designating means; d. When the read pattern data indicates the generation of a tie expression of a chord, among the constituent sounds of the chord currently generated by the musical sound generating means, the constituent sound of the chord to be newly generated by the musical sound generating means. An automatic accompaniment device comprising: a sound generation control unit that detects a sound having the same pitch as that of the sound detection unit and continues the generation of the detected sound.
JP62333220A 1987-12-29 1987-12-29 Automatic accompaniment device Expired - Fee Related JPH067331B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62333220A JPH067331B2 (en) 1987-12-29 1987-12-29 Automatic accompaniment device
US07/291,110 US4939974A (en) 1987-12-29 1988-12-28 Automatic accompaniment apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62333220A JPH067331B2 (en) 1987-12-29 1987-12-29 Automatic accompaniment device

Publications (2)

Publication Number Publication Date
JPH01177089A JPH01177089A (en) 1989-07-13
JPH067331B2 true JPH067331B2 (en) 1994-01-26

Family

ID=18263659

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62333220A Expired - Fee Related JPH067331B2 (en) 1987-12-29 1987-12-29 Automatic accompaniment device

Country Status (1)

Country Link
JP (1) JPH067331B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2768233B2 (en) * 1993-08-26 1998-06-25 ヤマハ株式会社 Electronic musical instrument
KR0121126B1 (en) * 1994-06-09 1997-12-04 구자홍 Code change treating method in automatic accompaniment of electrophonic musical instrument

Also Published As

Publication number Publication date
JPH01177089A (en) 1989-07-13

Similar Documents

Publication Publication Date Title
JP2576700B2 (en) Automatic accompaniment device
JPS59220796A (en) electronic musical instruments
US4939974A (en) Automatic accompaniment apparatus
JP3099436B2 (en) Chord detection device and automatic accompaniment device
JPH0782325B2 (en) Motif playing device
JPH067331B2 (en) Automatic accompaniment device
JP2956867B2 (en) Automatic accompaniment device
JPH0727382B2 (en) Automatic accompaniment device
JPH0769698B2 (en) Automatic accompaniment device
JPH0664471B2 (en) Automatic accompaniment device
JP2714455B2 (en) Motif playing device and motif playing method
JP3296182B2 (en) Automatic accompaniment device
JP2705421B2 (en) Automatic accompaniment device
JP2988371B2 (en) Automatic accompaniment device
JP3082294B2 (en) Accompaniment sound signal forming device
JPH0769697B2 (en) Automatic accompaniment device
JP2619237B2 (en) Automatic accompaniment device for electronic musical instruments
JPS61292689A (en) Electronic musical instrument with automatic accompanying device
JP3289037B2 (en) Motif playing device and motif playing method
JP3055352B2 (en) Accompaniment pattern creation device
JPH0320794A (en) Mode decision device and electronic musical instrument using same
JPH05188961A (en) Automatic accompaniment device
JP3314079B2 (en) Motif playing device and motif playing method
JP3171436B2 (en) Automatic accompaniment device
JP2962546B2 (en) Motif playing device and motif playing method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees