Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0652473B2 - Autorhythm playing device - Google Patents
[go: Go Back, main page]

JPH0652473B2 - Autorhythm playing device - Google Patents

Autorhythm playing device

Info

Publication number
JPH0652473B2
JPH0652473B2 JP57111455A JP11145582A JPH0652473B2 JP H0652473 B2 JPH0652473 B2 JP H0652473B2 JP 57111455 A JP57111455 A JP 57111455A JP 11145582 A JP11145582 A JP 11145582A JP H0652473 B2 JPH0652473 B2 JP H0652473B2
Authority
JP
Japan
Prior art keywords
rhythm
pattern
timing
data
sound
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 - Lifetime
Application number
JP57111455A
Other languages
Japanese (ja)
Other versions
JPS593483A (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 JP57111455A priority Critical patent/JPH0652473B2/en
Publication of JPS593483A publication Critical patent/JPS593483A/en
Publication of JPH0652473B2 publication Critical patent/JPH0652473B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】 この発明は、オートリズムにブレークパターンを挿入し
てリズムの単調さを解消したオートリズム演奏装置に関
する。
The present invention relates to an autorhythm playing device in which a break pattern is inserted in an autorhythm to eliminate monotonous rhythm.

従来の例えば電子楽器等において、自動的にリズムを発
生するオートリズム演奏装置が用いられている。しか
し、このオートリズム演奏装置の発生するリズムはワン
パターンであり単調さを免れえなかった。この単調さを
解消する目的で4小節、8小節または16小節ごとに1
小節の間、リズムを変化させるオートリズムバリエーシ
ョンを挿入するオートリズム演奏装置も知られている
が、未だオートリズムの単調さを解消するに充分なもの
とは言えない。
2. Description of the Related Art In conventional electronic musical instruments and the like, an automatic rhythm playing device that automatically generates a rhythm is used. However, the rhythm generated by this auto rhythm playing device is one pattern, and it is unavoidable that it is monotonous. 1 every 4 bars, 8 bars or 16 bars to eliminate this monotony
An autorhythm playing device that inserts an autorhythm variation that changes the rhythm during a measure is also known, but it is still not sufficient to eliminate the monotony of autorhythm.

この発明は、上述の従来形における問題点に鑑みてなさ
れたもので、オートリズム演奏装置特にリズムパターン
が各リズム音の発音タイミングを示すデータを含み、こ
の発音タイミングと現タイミングが一致するかどうかを
チェックしつつ一致した場合にオートリズムの当該デー
タに対する発音を行なういわゆるイベント方式のパター
ンデータを用いたオートリズム演奏装置においてノーマ
ルリズムパターン(以下ノーマルパターンという)を進
行中、任意のタイミングでブレークパターンを挿入する
ことを可能にし、リズムの単調さを解消した、特にマイ
クロコンピュータシステムを応用したオートリズム演奏
装置に好適な技術を提供することを目的とする。
The present invention has been made in view of the above-mentioned problems in the conventional form, and an auto rhythm playing device, in particular, a rhythm pattern includes data indicating the sounding timing of each rhythm sound, and whether or not the sounding timing and the current timing match. If a normal rhythm pattern (hereinafter referred to as a normal pattern) is in progress in an autorhythm playing device that uses so-called event-type pattern data that produces a sound for the corresponding data of the autorhythm, the break pattern is generated at any timing. It is an object of the present invention to provide a technique suitable for an auto rhythm playing device that enables the insertion of a rhythm and eliminates monotonous rhythm, and particularly applies a microcomputer system.

この目的を達成するためにこの発明においては、テンポ
に応じた所定周期の信号を発生する周期信号発生手段
と、それぞれ各リズム音についてその発音タイミングを
示すタイミングデータと、該タイミングに発生すべきリ
ズム音を示す楽音データからなる演奏データを含む第1
パターンおよび第2パターンの少なくとも2種類のリズ
ムパターンが格納されたパターンメモリと、所定周期の
信号に基づいて現在のリズム演奏タイミングを管理する
タイミング管理手段と、この第1パターンおよび第2パ
ターンの一方のリズムパターンの中から前記タイミング
管理手段によって示される現在のリズム演奏タイミング
に対応する前記演奏データを検出する第1の検出手段で
あって、リズムパターン中における現在の読出しアドレ
スを示す第1のアドレス指定手段を有し、前記検出がな
されたときに読出しアドレスを更新するものと、この第
1パターンおよび第2パターンの他方のリズムパターン
の中から前記タイミング管理手段によって示される現在
のリズム演奏タイミングに対応する前記演奏データを検
出する第2の検出手段であって、リズムパターン中にお
ける現在の読出しアドレスを示す第2のアドレス指定手
段を有し、前記検出がなされたときに読出しアドレスを
更新するものと、前記第1パターンと第2パターンのど
ちらかを出力すべきかをリズム演奏の任意のタイミング
で選択指定する手段と、前記選択指定手段により指定さ
れたリズムパターンの楽音データを前記第1または第2
の検出手段の検出結果に基づき出力する読出手段と、こ
の読出手段の出力するリズムパターンに従ってリズム音
を形成するリズム音源とを具備したことを特徴とする。
In order to achieve this object, in the present invention, a periodic signal generating means for generating a signal of a predetermined period according to the tempo, timing data indicating the sounding timing of each rhythm sound, and a rhythm to be generated at the timing. First including performance data composed of musical sound data indicating a sound
A pattern memory in which at least two types of rhythm patterns, that is, a pattern and a second pattern, are stored, timing management means for managing the current rhythm performance timing based on a signal of a predetermined cycle, and one of the first pattern and the second pattern. First detecting means for detecting the performance data corresponding to the current rhythm performance timing indicated by the timing management means from among the rhythm patterns of the first address, the first address indicating a current read address in the rhythm pattern. The rhythm performance timing designated by the timing management means is selected from among the rhythm patterns of the other of the first pattern and the second pattern, which has a designating means and updates the read address when the detection is made. Second detection for detecting the corresponding performance data Which has a second addressing means for indicating the current read address in the rhythm pattern and updates the read address when the detection is made, and which one of the first pattern and the second pattern Means for selectively designating whether or not to be output at an arbitrary timing of the rhythm performance, and the musical tone data of the rhythm pattern designated by the selection designating means for the first or second
And a rhythm sound source for forming a rhythm sound according to the rhythm pattern output by the reading means.

これにより、イベント方式のパターンデータに対しても
パターンの切換えを効果的に行うことができる。すなわ
ち、イベント方式のパターンでは、例えば第1のパター
ンから第2のパターンへの切換えが指示された時点で第
2のパターンから現在発音すべきリズム音のパターンを
検出していたのでは発音が遅れてしまう。この発明によ
れば第1および第2の検出手段は一方のパターンを検出
しそれが実際の発音に用いられている場合にも、他方の
検出手段は同じように他方のパターンを検出しいわば空
送りをしている。従って、いつパターンの切換えが指示
されても即時に反応できるのである。
This makes it possible to effectively switch patterns even for event-based pattern data. That is, in the event-based pattern, for example, if the pattern of the rhythm sound to be currently pronounced is detected from the second pattern at the time when the switching from the first pattern to the second pattern is instructed, the pronunciation is delayed. Will end up. According to the present invention, even when the first and second detecting means detect one pattern and it is used for actual sounding, the other detecting means similarly detects the other pattern, that is, it is empty. I am sending. Therefore, it is possible to react immediately when the pattern switching is instructed.

なお、上記の「検出」とは、イベント方式において、リ
ズムパターンの中に含まれる各リズム音の発音タイミン
グと現タイミングが一致するかどうかをチェックし、こ
れが一致するイベントデータを探し出す処理をいう。
The above-mentioned "detection" refers to a process in the event method in which it is checked whether the sounding timing of each rhythm sound included in the rhythm pattern matches the current timing, and the event data that matches this is searched.

以下図面を用いてこの発明の実施例を説明する。Embodiments of the present invention will be described below with reference to the drawings.

(実施例の全体構成説明) 第1図はこの発明のオートリズム演奏装置を適用した電
子楽器の構成を示す。同図において、鍵盤1は図示しな
い上鍵盤(UK)、下鍵盤(LK)およびペダル鍵盤
(PK)等を備え、演奏者の押鍵操作に応じた鍵情報を
発生する。パネル10は楽音選択用操作子15とリズム部用
操作子とを備え、楽音選択およびリズム種類選択などの
操作子情報を発生する。制御部30はこれらの鍵盤1およ
びパネル10を走査して、発生した鍵情報および操作子情
報を取り込み、これらの情報に基づいて鍵盤音やリズム
音に関する各種のデータを鍵楽音インターフェースやリ
ズムインターフェース等のインターフェースを介して送
出する。鍵盤音発生回路65は制御部30からの鍵盤音に関
するデータを入力して複数(例えば10個)の時分割チ
ャンネルで鍵盤音データを形成し、これらのデータが時
分割多重化された鍵盤音信号を発生する。リズム音発生
回路70は、制御部30からのリズム音に関するデータを入
力して8個の時分割チャンネルごとに打楽器音信号を発
生し、これらの打楽器音信号が時分割多重化されたリズ
ム音信号を出力する。レジスタ85は鍵盤音信号およびリ
ズム音信号を入力し、このリズム音信号のうち中央スピ
ーカから発音する打楽器音信号と鍵盤音信号との全チャ
ンネル分のデータおよびリズム音信号の残部すなわち左
スピーカから発音する打楽器音信号の全チャンネル分の
データをそれぞれ演算し、音響的にミキシングした後、
それぞれ別個の並列データとして中央および左のサウン
ドシステムに出力する。レジスタ85からのこれら中央な
らびに左サウンドシステム用の並列データはそれぞれD
/A変換器91、増巾器92およびスピーカ93を含む中央サ
ウンドシステム90ならびにD/A変換器96、増巾器97お
よびスピーカ98を含む左サウンドシステム95を介して音
響信号に変換され発音される。
(Description of Overall Configuration of Embodiment) FIG. 1 shows the configuration of an electronic musical instrument to which the autorhythm playing device of the present invention is applied. In the figure, the keyboard 1 is provided with an upper keyboard (UK), a lower keyboard (LK), a pedal keyboard (PK), etc., which are not shown, and generates key information in accordance with a key depression operation by a performer. The panel 10 is provided with musical tone selection operators 15 and rhythm section operators, and generates operator information such as musical tone selection and rhythm type selection. The control unit 30 scans the keyboard 1 and the panel 10 and takes in the generated key information and operator information, and based on these information, various data relating to the keyboard sounds and rhythm sounds is supplied to the key tone interface, rhythm interface, etc. It is sent via the interface of. The keyboard sound generation circuit 65 inputs keyboard sound data from the control unit 30 to form keyboard sound data with a plurality of (for example, 10) time-division channels, and these data are time-division multiplexed keyboard sound signals. To occur. The rhythm sound generation circuit 70 inputs data on the rhythm sound from the control unit 30 and generates percussion instrument sound signals for each of the eight time division channels, and these percussion instrument sound signals are time division multiplexed. Is output. The register 85 inputs the keyboard sound signal and the rhythm sound signal, and outputs the data of all the channels of the percussion sound signal and the keyboard sound signal generated from the central speaker among the rhythm sound signals and the rest of the rhythm sound signal, that is, the left speaker. After calculating the data for all channels of the percussion instrument sound signal respectively and mixing them acoustically,
Output to the central and left sound systems as separate parallel data. The parallel data for these central and left sound systems from register 85 are respectively D
A sound signal is converted and sounded via a central sound system 90 including an A / A converter 91, an amplifier 92 and a speaker 93 and a left sound system 95 including a D / A converter 96, an amplifier 97 and a speaker 98. It

(各部の詳細説明) (1)リズム用操作子20 第2図はリズム用操作子20における各操作子の配列を示
す。同図において、ブレーク(フィルイン)スイッチ21
はノーマルパターンとバリエーションリズムパターン
(ブレークパターン)とを入れ替えるためのもので、バ
リエーション種類選択スイッチ22(22-1,22-2,22-3)
は、ブレークスイッチ21を押下したときノーマルパター
ンに代えて発生するブレークパターンをここでは3種類
のバリエーションパターンのうちから選択するものであ
る。演奏者がブレークスイッチ21を押下すると直ちにス
イッチ22で選択されているバリエーションパターンがブ
レークパターンとして切り替り、ブレークスイッチ21を
離すと小節内のリズム演奏が終了するともとのノーマル
パターンに復帰する。
(Detailed Description of Each Part) (1) Rhythm Operator 20 FIG. 2 shows the arrangement of each operator in the rhythm operator 20. In the figure, the break (fill-in) switch 21
Is for switching the normal pattern and the variation rhythm pattern (break pattern). Variation type selection switch 22 (22-1, 22-2, 22-3)
Is to select a break pattern generated in place of the normal pattern when the break switch 21 is pressed from among three types of variation patterns. As soon as the performer presses the break switch 21, the variation pattern selected by the switch 22 is switched to the break pattern, and when the break switch 21 is released, the original normal pattern is restored when the rhythm performance within the bar ends.

イントロスイッチ23はオートリズム開始後所定の小節数
の間リズムを序奏に切り替えるためのスイッチで、通常
オートリズム開始前のリズム停止中に押下する。
The intro switch 23 is a switch for switching the rhythm to the prelude for a predetermined number of measures after the start of the autorhythm, and is normally pressed while the rhythm is stopped before the start of the autorhythm.

オートブレークスイッチ24(24-1,24-2,24-3)は自動
的にブレークパターンを挿入するための小節周期を選択
するものである。このオートブレークの種類は4小節
(4bar )、8小節(8bar )および16小節(16ba
r )が設けられている。
The auto break switch 24 (24-1, 24-2, 24-3) automatically selects a bar cycle for inserting a break pattern. The types of this auto break are 4 bars (4 bar), 8 bars (8 bar) and 16 bars (16 ba).
r) is provided.

リズム選択スイッチ25(25-1,25-2,…)はマーチ、ワル
ツ、…、スイング等のリズム種類を選択するためのもの
である。
The rhythm selection switch 25 (25-1, 25-2, ...) Is for selecting a rhythm type such as march, waltz, ..., Swing.

スタート・ストップスイッチ26はオートリズムの発生を
開始または停止させるためのものである。
The start / stop switch 26 is for starting or stopping the generation of autorhythm.

バランス設定子27はドラム系音量とシンバル(ノイズ)
系音量との音量比を設定するためのものである。
Balance setter 27 has drum volume and cymbals (noise)
It is for setting the volume ratio with the system volume.

トータルボリウム28はリズム音の音量(鍵盤音とのミキ
シング比)を設定するためのものである。
The total volume 28 is for setting the volume of the rhythm sound (mixing ratio with the keyboard sound).

テンポ設定子29はオートリズムのテンポ設定用である。The tempo setter 29 is for setting the tempo of autorhythm.

これらのバランス設定子27、トータルボリウム28および
テンポ設定子29は多段のディジタルスイッチまたは両端
に電圧を印加した可変抵抗器とこの可変抵抗器の摺動端
子電圧をA/D変換するA/D変換器とを組み合せたも
の等を使用することができる。
These balance setter 27, total volume 28, and tempo setter 29 are multistage digital switches or variable resistors with voltage applied to both ends and A / D conversion for A / D converting the sliding terminal voltage of these variable resistors. A combination of a container and the like can be used.

(2)制御部30 第1図において、制御部30は、プログラムカウンタ(P
C)、Aレジスタ(A)、Xレジスタ(X)およびYレ
ジスタ(Y)等を有する中央処理装置(CPU)31、プ
ログラムメモリ32、ワーキングメモリ33、リズムパター
ンメモリ34、パターン先頭アドレスメモリ35、対数音量
メモリ36、バスライン37、キースイッチインターフェー
ス38、パネルインターフェース39、鍵楽音インターフェ
ース40、リズムインターフェース41、およびパネルデー
タインターフェース42を具備する。
(2) Control unit 30 In FIG. 1, the control unit 30 has a program counter (P
C), A register (A), X register (X), Y register (Y), etc., central processing unit (CPU) 31, program memory 32, working memory 33, rhythm pattern memory 34, pattern head address memory 35, A logarithmic volume memory 36, a bus line 37, a key switch interface 38, a panel interface 39, a key tone interface 40, a rhythm interface 41, and a panel data interface 42 are provided.

プログラムメモリ32は、リードオンリメモリ(ROM)
からなり、CPU31の制御プログラムが格納されてい
る。
The program memory 32 is a read only memory (ROM)
The control program of the CPU 31 is stored.

ワーキングメモリ33はランダムアクセスメモリ(RA
M)からなり、その一部にCPU31が制御プログラムを
実行する際に発生する各種データを一時格納するための
ワーキングエリアが設けられている。このワーキングエ
リアは第1表に示すようなレジスタまたはフラグ等で構
成される。なお、以下の説明においては各レジスタ等お
よびその内容は同一のラベル名で表わすものとする。例
えば拍数レジスタもその内容もいずれもHKPEとな
る。また、第1表において、テンポレジスタTEMP
O、トータル音量レジスタTOTLEVおよびリズム種
類レジスタRHYPTNにはそれぞれリズム用操作子20
のテンポ設定子29、トータルボリウム28およびリズム選
択スイッチ25の操作子情報が格納され、また、ドラム系
音量比レジスタRHDLEV、およびシンバル(ノイ
ズ)系音量比レジスタRHCLEVにはバランス設定子
27からの操作子情報が設定され、さらにバリエーショ
ン種類レジスタVARIにはバリエーション種類選択ス
イッチ22によって選択されたバリエーション種類が記憶
される。さらにオートブレークレジスタAUTBRKに
はオートブレークスイッチ24による4小節、8小節、お
よび16小節の選択に応じてそれぞれ3,7および15が
設定される。
The working memory 33 is a random access memory (RA
M) and a working area for temporarily storing various data generated when the CPU 31 executes the control program. This working area is composed of registers or flags as shown in Table 1. In the following description, each register and the like will be represented by the same label name. For example, both the beat count register and its contents are HKPE. Also, in Table 1, the tempo register TEMP
O, the total volume register TOTLEV, and the rhythm type register RHYPTN have rhythm operators 20 respectively.
The tempo setter 29, total volume 28, and operator information of the rhythm selection switch 25 are stored, and the drum set volume ratio register RHDLEV and the cymbal (noise) volume ratio register RHCLEV are operated from the balance setter 27. The child information is set, and the variation type selected by the variation type selection switch 22 is stored in the variation type register VARI. Further, 3, 7, and 15 are set in the automatic break register AUTOBRK in accordance with the selection of 4 bars, 8 bars, and 16 bars by the auto break switch 24, respectively.

表パターンROM先頭アドレスレジスタRHYROM1
は各1バイトのRHYROM1 とRHYROM1′との
計2バイトのメモリからなり、リズムパターン読出のた
めのアドレス指定、裏パターンROM先頭アドレスレジ
スタRHYROM2 との内容入れ替え等は1バイトずつ
順次処理する。なお、裏パターンROM先頭アドレスレ
ジスタRHYROM2 (RHYROM2,RHYROM
2′)およびイントロパターンROM先頭アドレスIN
TROM(INTROM,INTROM′)も同様に2
バイトのメモリの1バイトずつ順次処理する。
Table pattern ROM start address register RHYROM1
Is composed of a total of 2 bytes of memory, each of which is 1 byte RHYROM1 and RHYROM1 ', and address designation for reading the rhythm pattern, replacement of contents with the back pattern ROM head address register RHYROM2, etc. are processed one byte at a time. The back pattern ROM top address register RHYROM2 (RHYROM2, RHYROM
2 ') and intro pattern ROM start address IN
TROM (INTROM, INTROM ') is also 2
The byte memory is processed one byte at a time.

リズムパターンメモリ34はROMで構成され、第3図
(a )に示すように、マーチ、ワルツ、…等の各リズム
種類ごとに1個のノーマルパターンと、3個のバリエー
ションパターンと、1個のイントロパターンが格納され
ている。これらのパターンはそれぞれ第3図(b )の拡
大図に示すように、先頭アドレスにインストラメントグ
ループナンバIGNが、続いて1拍ごとにその拍内で発
音すべきリズム音に関するイベントデータEVTと16
進法表示で「OD」(以下「$OD」と記す)のデータ
からなる拍エンドデータBEが、さらにリズムパターン
の最後にはリターンデータ(1小節パターンの場合は小
節エンドデータ)RTN($OF)が格納されている。
ここでインストラメントグループナンバIGNとは、例
えばマーチ、タンゴ等13種類のリズム音を発生するため
のシンバル、マラカス等28種類の打楽器音の中からリズ
ム音発生回路70における音源形成チャンネル数と同数の
8種類の打楽器音を抽出して形成したグループで、この
インストラメントグループごとにグループを構成してい
る打楽器音を1つずつ前記音源形成チャンネルに割り当
てることにより、第1図の電子楽器においてはリズム種
類にかかわらず最大8種類の打楽器音からなるオートリ
ズムを発生することができる。因みに従来のオートリズ
ム演奏装置において同様のリズム種類およびリズム音を
発生させようとすれば28個の音源形成チャンネルを必要
とし、また8個の音源形成チャンネルで済まそうとすれ
ば1リズム音当りの打楽器音種類を減少させる等の処理
を施す必要がある。
The rhythm pattern memory 34 is composed of a ROM. As shown in FIG. 3 (a), one normal pattern, three variation patterns and one variation pattern for each rhythm type such as march, waltz, ... The intro pattern is stored. As shown in the enlarged view of FIG. 3 (b), each of these patterns has an instrument group number IGN at the start address, and then event data EVT and 16
The beat end data BE consisting of the data of “OD” (hereinafter referred to as “$ OD”) in the base notation, and the return data (bar end data in the case of one bar pattern) RTN ($ OF) at the end of the rhythm pattern. ) Is stored.
Here, the instrument group number IGN is equal to the number of sound source forming channels in the rhythm sound generation circuit 70 from 28 kinds of percussion instrument sounds such as cymbals and maracas for generating 13 kinds of rhythm sounds such as march and tango. A group formed by extracting eight types of percussion instrument sounds, and by assigning one percussion instrument sound constituting each of the instrument groups to the sound source forming channel, the electronic musical instrument of FIG. It is possible to generate an autorhythm consisting of up to eight types of percussion instrument sounds regardless of the type. Incidentally, in order to generate the same rhythm type and rhythm sound in the conventional auto rhythm playing device, 28 sound source forming channels are required, and if 8 sound source forming channels are used, one rhythm sound is generated. It is necessary to perform processing such as reducing the types of percussion instrument sounds.

第1図の電子楽器は1ビートすなわち1拍の1/12を単
位とするタイミングでリズムを発音するように構成され
ており、前記のリズムパターンメモリ34内のイベントデ
ータEVTもこのビートで示される拍内タイミング順に
格納されている。このイベントデータEVTは第3図
(c )に示すように、8ビットのメモリの2バイトを用
い、第1バイトの下位4ビット(第4〜1ビット)にイ
ベントの発生する拍内タイミングHTIMING、第7
〜5ビットに音源形成チャンネルナンバCHNO、第2
バイトの上位4ビット(第8〜5ビット)にその拍内タ
イミングHTIMINGで発生する打楽器音のピッチP
ITCH、第4ビットにサステインデータS/Lおよび
第3〜1ビットにその打楽器音の楽符上のレベルLEV
ELすなわちそのタイミングで発生する打楽器音のレベ
ルがff〜ppのいずれであるかのデータが格納されてい
る。拍エンドデータBEは拍と拍との境界を示し、リタ
ーンデータRTNはリズムパターンの最後尾(リズムが
1小節パターンであるときは小節エンド)を示す。ま
た、これらの拍エンドデータおよびリターンデータは直
前のイベントデータに示された拍内タイミング以後、そ
の拍内でのイベントはないことを示す。
The electronic musical instrument shown in FIG. 1 is configured to generate a rhythm at a timing of 1 beat, that is, 1/12 of 1 beat, and the event data EVT in the rhythm pattern memory 34 is also indicated by this beat. It is stored in the order of in-beat timing. As shown in FIG. 3 (c), this event data EVT uses 2 bytes of an 8-bit memory, and the low-order 4 bits (4th to 1st bit) of the 1st byte generate an intra-beat timing HTIMING, 7th
Sound source formation channel number CHNO in 5 bits, second
Pitch P of percussion instrument sound generated at the in-beat timing HTIMING in the upper 4 bits (8th to 5th bits) of the byte
ITCH, sustain data S / L in the 4th bit, and LEV on the musical note of the percussion instrument sound in the 3rd to 1st bits
EL, that is, data indicating whether the level of the percussion sound generated at that timing is ff to pp. The beat end data BE indicates the boundary between beats, and the return data RTN indicates the end of the rhythm pattern (the end of the measure when the rhythm is one measure pattern). The beat end data and the return data indicate that there is no event within the beat after the intra-beat timing indicated by the immediately preceding event data.

第1図の電子楽器においては、リズム選択スイッチ(第
2図)25によって選択されたリズム種類のノーマルパタ
ーンとさらにバリエーション種類選択スイッチ22によっ
て選択されたバリエーションパターンとをそれぞれワー
キングメモリ33内の表パターンメモリポインタRHPN
T1 と裏パターンメモリポインタRHPNT2 とで同一
タイミングのイベントを同一タイミングでサーチすると
もに、表パターンメモリポインタRHYPTN1 でサー
チした側のリズムパターンのイベントデータを読み出し
て出力する。そして通常はノーマルパターンを表パター
ンメモリポインタRHPNT1 で読み出し表パターンと
して出力するとともに、バリエーションパターンは裏パ
ターンとして裏パターンメモリポインタRHYPTN2
で同一タイミングにおけるイベントのサーチのみを行な
い空送りをする。ブレークスイッチ21が押下された後こ
のスイッチ21が解除された小節が終了するまではバリエ
ーションパターンとノーマルパターンとの表裏を入れ替
え、バリエーションパターンを表パターンメモリポイン
タRHYPTN1 で順次読み出してブレークパターンと
して出力し、ノーマルパターンは裏パターンメモリポイ
ンタRHYPTN2 により空送りする。
In the electronic musical instrument shown in FIG. 1, the normal pattern of the rhythm type selected by the rhythm selection switch (FIG. 2) 25 and the variation pattern selected by the variation type selection switch 22 are displayed in a table pattern in the working memory 33. Memory pointer RHPN
T1 and the back pattern memory pointer RHPNT2 search for events at the same timing at the same timing, and the front pattern memory pointer RHYPTN1 reads and outputs event data of the rhythm pattern on the searched side. Normally, the normal pattern is read out by the front pattern memory pointer RHPNT1 and is output as a front pattern, and the variation pattern is output as a back pattern, and a back pattern memory pointer RHYPTN2.
At the same timing, only the event search at the same timing is performed and the feed is performed in the air. After the break switch 21 is pressed, the front and back sides of the variation pattern and the normal pattern are switched until the measure in which the switch 21 is released is completed, and the variation pattern is sequentially read by the front pattern memory pointer RHYPTN1 and output as a break pattern. The normal pattern is fed by the back pattern memory pointer RHYPTN2.

なお、この実施例では、表パターンメモリポインタRH
YPTN1で指し示すパターンを常に発音し、裏パター
ンメモリポインタRHYPTN2で指し示すパターンを
常に空送りし、パターンの切換えの際には表パターンメ
モリポインタRHYPTN1の内容と裏パターンメモリ
ポインタRHYPTN2の内容とを交換することとして
いるが、切換えの方式としてはこれに限られない。例え
ば、パターンメモリポインタRHYPTN1は常にノー
マルパターンを指し示し、パターンメモリポインタRH
YPTN2は常にバリエーションパターンを指し示すと
いうようにポインタとパターンとの対応を固定してお
き、切換えの際にはポインタRHYPTN1/RHYP
TN2と発音/空送りとの対応関係を入換えるというよ
うにしてもよい。
In this embodiment, the table pattern memory pointer RH
The pattern indicated by YPTN1 is always sounded, the pattern indicated by the back pattern memory pointer RHYPTN2 is constantly fed, and when the pattern is switched, the contents of the front pattern memory pointer RHYPTN1 and the contents of the back pattern memory pointer RHYPTN2 are exchanged. However, the switching method is not limited to this. For example, the pattern memory pointer RHYPTN1 always indicates a normal pattern, and the pattern memory pointer RH
The correspondence between the pointer and the pattern is fixed such that YPTN2 always points to the variation pattern, and the pointers RHYPTN1 / RHYP are used when switching.
The correspondence relationship between TN2 and sounding / idle feed may be exchanged.

第1図において、パターン先頭アドレスメモリ35はリズ
ムパターンメモリ34に格納された各リズム種類のノーマ
ル、第1〜3バリエーション、イントロの各リズムパタ
ーンの先頭アドレスが格納されており、リズム種類レジ
スタの内容RHYPTNの入力によりこれらのパターン
先頭アドレスを出力する変換ROMである。このパター
ン先頭アドレスから読み出された先頭アドレスは、ノー
マルパターンの先頭アドレスをワーキングメモリ33内の
2バイト構成の表パターンメモリ先頭アドレスレジスタ
RHYROM1 に、また3種類のバリエーションパター
ンのうちバリエーション種類選択スイッチ22によって選
択されたバリエーションパターンの先頭アドレスを裏パ
ターンメモリ先頭アドレスレジスタRHYROM2 に、
イントロパターンの先頭アドレスをイントロパターンメ
モリ先頭アドレスレジスタINTROMにそれぞれ格納
する。
In FIG. 1, the pattern start address memory 35 stores the start addresses of the rhythm patterns of normal, first to third variations, and intro of each rhythm type stored in the rhythm pattern memory 34, and the contents of the rhythm type register. It is a conversion ROM that outputs these pattern start addresses in response to the input of RHYPTN. The start address read from this pattern start address is the start address of the normal pattern stored in the table pattern memory start address register RHYROM1 of 2 bytes in the working memory 33, and the variation type selection switch 22 of the three types of variation patterns. The start address of the variation pattern selected by is stored in the back pattern memory start address register RHYROM2,
The start address of the intro pattern is stored in the intro pattern memory start address register INTROM, respectively.

対数音量メモリ36はそれぞれトータル音量TOTLEV
およびドラム系音量比RHDLEVとノイズ系音量比R
HCLEVとを対数変換する変換ROMである。これら
の各音量および音量比は対数変換された後演算され、各
8ビットのノイズ系音量NLEVおよびドラム系音量D
LEVとしてパネルデータインターフェース42を介して
リズム音発生回路70に送出される。ここでノイズ系音量
NLEVはトータル音量TOTLEVとノイズ系音量比
RHCLEVとの積として得られるが、上述の対数音量
メモリ36において対数変換される結果、これらの対数値
の和として容易かつ速やかに演算することができる。
The logarithmic volume memory 36 has a total volume TOTLEV.
And drum system volume ratio RHDLEV and noise system volume ratio R
It is a conversion ROM that performs logarithmic conversion with HCLEV. These respective sound volumes and sound volume ratios are logarithmically converted and then calculated to obtain 8-bit noise sound volume NLEV and drum sound volume D.
The LEV is sent to the rhythm sound generation circuit 70 via the panel data interface 42. Here, the noise volume NLEV is obtained as a product of the total volume TOTLEV and the noise volume ratio RHCLEV, but as a result of logarithmic conversion in the logarithmic volume memory 36, the sum of these logarithmic values is easily and quickly calculated. be able to.

バスライン37はデータバス(DB)およびアドレスバス
(ADB)からなり、CPU31と各メモリ32〜36および
各インターフェース38〜42とを接続する。CPU31とこ
れらのメモリ32〜36およびインターフェース38〜42はこ
のバスライン37を介してデータの授受を行なう。
The bus line 37 includes a data bus (DB) and an address bus (ADB), and connects the CPU 31 to the memories 32 to 36 and the interfaces 38 to 42. The CPU 31, the memories 32 to 36, and the interfaces 38 to 42 exchange data via the bus line 37.

リズムインターフェース41はCPU31が出力するリズム
音源データを一時格納したり、CPU31からの指令によ
って格納しているデータをシリアルデータOPCIDA
Tに変換してリズム音発生回路70に転送したり、CPU
31からのリズムスタート信号を入力したときおよびその
後1ビートごとにCPU31にデータ転送処理を割込みで
行なわせるための割込信号RINTRPTを発生したり
する。
The rhythm interface 41 temporarily stores the rhythm sound source data output from the CPU 31, and stores the data stored in response to a command from the CPU 31 as serial data OPCIDA.
Converted to T and transferred to the rhythm sound generation circuit 70, CPU
When a rhythm start signal from 31 is input and thereafter every beat, an interrupt signal RINTRPT for causing the CPU 31 to perform data transfer processing by interruption is generated.

第4図にリズムインターフェース41の詳細ブロック図を
示す。同図において、デコーダ43は、CPU31(第1
図)がアドレスバスADBに送出するアドレス信号が、
テンポレジスタ44、リズム音源データレジスタ45、チャ
ンネルレジスタ46およびファンクションレジスタ47のい
ずれかであるとき、そのアドレス信号に応じて各レジス
タ44〜47にロード信号RHYDEC1〜4を送出する。
従ってCPU31がデータバスDBを介して送出するデー
タがCPU31がアドレスで指定するレジスタに格納され
る。
FIG. 4 shows a detailed block diagram of the rhythm interface 41. In the figure, the decoder 43 includes a CPU 31 (first
The address signal sent to the address bus ADB is
When any of the tempo register 44, the rhythm sound source data register 45, the channel register 46 and the function register 47, load signals RHYDEC1 to 4 are sent to the registers 44 to 47 according to the address signal.
Therefore, the data sent by the CPU 31 via the data bus DB is stored in the register designated by the address by the CPU 31.

テンポレジスタ44にはテンポデータレジスタTEMPO
の内容が変更される都度、新たなテンポデータTEMP
Oが格納され、テンポROM48はテンポレジスタ44の出
力するテンポデータTEMPOをカウンタ49のプリセッ
トデータPSDに変換する。カウンタ49はロード端子L
DすなわちOR回路50の出力が“1”のときプリセット
データPSDがプリセットされ、続いてクロック発生回
路51の出力する一定周波数のクロック信号φをカウント
し、オーバーフローしたときに出力端子Cに“1”を
出力する。この出力はOR回路50の一方の入力端子に入
力され、カウンタ49はオーバーフローするたびにプリセ
ットされる。すなわち、このカウンタ49はオーバーフロ
ー値をN、プリセット値をMとするとクロック信号φの
周波数を1/(N−M)に分周してテンポ設定子29(第
2図)に設定されたテンポの出力を発生する。なお、こ
のカウンタ49としてはプリセットした後クロック信号φ
をダウンカウントしてカウント値0で出力端子C
“1”を出力し、クロック信号φを1/Mに分周するも
のでもよく、また他の周知の可変分周形のカウンタでも
よい。OR回路50の他方の入力端子はファンクションレ
ジスタ47のスタート出力端子に接続されており、ファン
クションレジスタ47が後述するスタート信号START
を発生したときにもカウンタ49をプリセットする。この
OR回路の出力はさらに割込信号RINTRPTとして
CPU31に送出され、CPU31はカウンタ49がプリセッ
トされると同時に後述の割込処理動作を開始する。クロ
ック発生回路51の出力はOR回路52の一方の入力端子に
入力され、OR回路52の出力はクロック発生回路51のリ
セット端子に接続されているので、このクロック発生回
路51は出力を発生すると直ちにリセットされ、従って短
いパルス巾のクロック信号φを発生する。また、このO
R回路52の他方の入力端子には前記スタート信号STA
RTが入力され、従ってスタート信号発生時にはカウン
タ49がプリセットされるとともにクロック発生回路51も
リセットされる。
The tempo register 44 has a tempo data register TEMPO.
New tempo data TEMP whenever the contents of
O is stored, and the tempo ROM 48 converts the tempo data TEMPO output from the tempo register 44 into preset data PSD of the counter 49. Counter 49 is load terminal L
The output of the D i.e. OR circuit 50 is preset data PSD is preset at "1", followed by counting the clock signal φ of the constant frequency output of the clock generation circuit 51, the output terminal C 0 when overflow "1 Is output. This output is input to one input terminal of the OR circuit 50, and the counter 49 is preset each time it overflows. That is, when the overflow value is N and the preset value is M, the counter 49 divides the frequency of the clock signal φ into 1 / (N−M) and sets the tempo set to the tempo setter 29 (FIG. 2). Generate output. It should be noted that the counter 49 is preset to clock signal φ
May be down-counted to output "1" to the output terminal C 0 with a count value of 0 to divide the clock signal φ into 1 / M, or another well-known variable frequency division type counter. The other input terminal of the OR circuit 50 is connected to the start output terminal of the function register 47, and the function register 47 causes the start signal START described later.
The counter 49 is also preset when is generated. The output of the OR circuit is further sent to the CPU 31 as an interrupt signal RINTRPT, and the CPU 31 starts the interrupt processing operation described later at the same time as the counter 49 is preset. Since the output of the clock generation circuit 51 is input to one input terminal of the OR circuit 52 and the output of the OR circuit 52 is connected to the reset terminal of the clock generation circuit 51, the clock generation circuit 51 immediately generates an output. It is reset and thus produces a short pulse width clock signal φ. Also, this O
The start signal STA is applied to the other input terminal of the R circuit 52.
Since RT is input, the counter 49 is preset and the clock generation circuit 51 is reset when the start signal is generated.

CPU31(第1図)によってリズムパターンメモリ34か
ら読み出されたイベントデータEVTは、3ビットのレ
ベルLEVEL、1ビットのサスティンS/Lおよび4
ビットのピッチPITCHが8ビットのデータとしてリ
ズム音源データレジスタ45に格納され、チャンネルナン
バCHNOはチャンネルレジスタ46に一時格納される。
チャンネルカウンタ53はクロック信号φを分周して得ら
れるチャンネルタイミング信号Ch Tを0から7まで繰
り返しカウントし、比較器54はこのチャンネルカウンタ
53の出力とチャンネルレジスタ46の出力するチャンネル
ナンバCHNOとを比較して、これらが一致したときA
ND回路55を介してチャンネル合致信号CHEQを送出
する。フリップフロップ56はチャンネルレジスタ46のロ
ード信号RHYDEC3によってセットされ、前記チャ
ンネル合致信号CHEQによってリセットされるもの
で、チャンネル合致信号CHEQは比較器54の出力とフ
リップフロップ56のセット出力Qとの論理積として出力
することにより、チャンネルナンバCHNOをロードし
た後は1回に限りチャンネルタイミング信号Ch T前縁
の微分波形としてのチャンネル合致信号CHEQが出力
される。このチャンネル合致信号CHEQはセレクタ57
のSB端子に入力され、このチャンネル合致信号CHE
Qが発生したときのみ8ステージ8ビットのシフトレジ
スタ58にリズム音源データレジスタ45に格納されたレベ
ルLEVEL等のデータがロードされる。また、チャン
ネル合致信号CHEQはキーオン信号KONとして8ス
テージ1ビットのシフトレジスタ59に格納され、さらに
8ステージ1ビットのシフトレジスタ60にチャンネル合
致信号CHEQの反転信号“0”を入力してシフトレジ
スタ60の内容をクリアする。これらのシフトレジスタ5
8,59,60およびチャンネルカウンタ53はいずれも同一
のチャンネルタイミング信号Ch Tによって動作してい
るので、リズム音源データレジスタ45に格納されたデー
タはシフトレジスタ58〜60のチャンネルタイミングと同
期してチャンネルレジスタ46内にチャンネルナンバCH
NOに対応するチャンネルにロードされる。
The event data EVT read from the rhythm pattern memory 34 by the CPU 31 (FIG. 1) is a 3-bit level LEVEL, a 1-bit sustain S / L and a 4-bit level.
The bit pitch PITCH is stored in the rhythm sound source data register 45 as 8-bit data, and the channel number CHNO is temporarily stored in the channel register 46.
The channel counter 53 repeatedly counts the channel timing signal Ch T obtained by dividing the clock signal φ from 0 to 7, and the comparator 54 uses this channel counter.
53 output is compared with the channel number CHNO output from the channel register 46, and when they match, A
The channel matching signal CHEQ is transmitted via the ND circuit 55. The flip-flop 56 is set by the load signal RHYDEC3 of the channel register 46 and reset by the channel match signal CHEQ. The channel match signal CHEQ is a logical product of the output of the comparator 54 and the set output Q of the flip-flop 56. By outputting, the channel match signal CHEQ as the differential waveform of the leading edge of the channel timing signal Ch T is output only once after loading the channel number CHNO. This channel match signal CHEQ is the selector 57
Input to the SB terminal of this channel match signal CHE
Only when Q occurs, the 8-stage 8-bit shift register 58 is loaded with the data such as the level LEVEL stored in the rhythm sound source data register 45. Further, the channel match signal CHEQ is stored as a key-on signal KON in the 8-stage 1-bit shift register 59, and the inverted signal “0” of the channel match signal CHEQ is input to the 8-stage 1-bit shift register 60. Clear the contents of. These shift registers 5
Since all of 8, 59, 60 and the channel counter 53 are operated by the same channel timing signal Ch T, the data stored in the rhythm sound source data register 45 is synchronized with the channel timing of the shift registers 58-60. Channel number CH in register 46
The channel corresponding to NO is loaded.

ファンクションレジスタ47は、CPU31のアドレス指定
によりデコーダ43の出力RHYDEC4が“1”のとき
にCPU31からデータバスDBを介して送出されるデー
タを取り込む。このデータ値が$01のときは短い時間の
パルスのスタート信号STARTを送出した後スタート
出力を自動的にクリアする。また、データ値が$04また
は$20のときはそれぞれ8チャンネル分の全データがシ
リアルな出力として出力される時間バッファクリア信号
BUFCLR($04のとき)またはトランスファ信号T
RANS($20のとき)を出力し、後は自動的にクリア
する。データ値が$08および$10のときはそれぞれブレ
ークセット信号およびブレークリセット信号を出力す
る。なお、このブレークセット・リセット信号としては
例えばブレーク出力BREAK“1”が転送されたとき
セット、“0”が転送されたときリセットするようにし
てもよい。
The function register 47 takes in the data sent from the CPU 31 via the data bus DB when the output RHYDEC4 of the decoder 43 is "1" by the address designation of the CPU 31. When this data value is $ 01, the start output START is automatically cleared after the pulse start signal START of a short time is transmitted. When the data value is $ 04 or $ 20, all the data for 8 channels is output as serial output time buffer clear signal BUFCLR (when $ 04) or transfer signal T
Outputs RANS (when $ 20) and automatically clears the rest. When the data value is $ 08 and $ 10, the break set signal and break reset signal are output, respectively. The break set / reset signal may be set, for example, when the break output BREAK "1" is transferred and reset when "0" is transferred.

P/S変換器61にはそのパラレルデータ入力端子P1〜
P11に、シフトレジスタ58,59,60に8つのチャンネル
ごとに格納されたリズムデータがチャンネルタイミング
信号Ch Tと同期してチャンネルごとに順次入力してお
り、またロード端子LDにはチャンネルタイミング信号
Ch Tが入力している。そしてファンクションレジスタ
47がトランスファ信号TRANSを発生すると、このP
/S変換器61はチャンネルタイミング信号Ch Tが
“1”の区間にP1〜11のデータを1チャンネルづつ取
り込み、この取り込んだデータをチャンネルタイミング
信号Ch Tが“0”の区間にクロック信号φでシリアル
データOPCIDATに変換してリズム音発生回路70に
送出する。
The P / S converter 61 has its parallel data input terminals P1 to P1.
In P11, the rhythm data stored in the shift registers 58, 59, 60 for each of the eight channels is sequentially input for each channel in synchronization with the channel timing signal ChT, and the load terminal LD receives the channel timing signal Ch. T is typing. And the function register
When 47 generates the transfer signal TRANS, this P
The / S converter 61 takes in the data of P1 to 11 one by one in the section where the channel timing signal ChT is "1", and takes the taken-in data as the clock signal φ in the section where the channel timing signal ChT is "0". It is converted to serial data OPCIDAT and sent to the rhythm sound generation circuit 70.

第1図において、パネルデータインターフェース42は、
CPU31がトータルボリウム28およびバランス設定子27
からそれぞれ読み込んだトータル音量TOTLEVおよ
びドラム系音量比RHDLEV、ノイズ系音量比RHC
LEVをそれぞれ対数音量メモリ36で対数変換し、かつ
演算して得た各8ビットのノイズ系音量NLEVとドラ
ム系音量DLEVを16ビットのシリアルデータLVIN
Tに変換してリズム音発生回路70に送出するとともに、
イントロパターン発生時はイントロパターンROM先頭
アドレスレジスタINTROMによりリズムパターンメ
モリ34から読み出したインストラメントグループナンバ
IGNを、また、イントロ中でないときは表裏各パター
ンメモリ先頭アドレスレジスタRHYROM1 およびR
HYROM2 によってリズムパターンメモリ34から読み
出した表および裏パターン発生用の各インストラメント
ナンバIGNをシリアルデータPANCDDに変換して
リズム音発生回路70に送出する。
In FIG. 1, the panel data interface 42 is
CPU31 is total volume 28 and balance setter 27
Total volume TOTLEV, drum volume volume ratio RHDLEV, and noise volume volume ratio RHC read from
The LEV is logarithmically converted by the logarithmic volume memory 36, and each 8-bit noise volume NLEV and drum volume DLEV obtained by calculation are converted into 16-bit serial data LVIN.
Converted to T and sent to the rhythm sound generation circuit 70,
When the intro pattern is generated, the instrument group number IGN read from the rhythm pattern memory 34 by the intro pattern ROM top address register INTROM is used. When the intro is not in progress, each pattern memory top address register RHYROM1 and R
Each instrument number IGN for front and back pattern generation read from the rhythm pattern memory 34 by the HYROM2 is converted into serial data PANCDD and sent to the rhythm sound generation circuit 70.

(3)リズム音発生回路70 第5図はリズム音発生回路70の詳細ブロック図を示す。
このリズム音発生回路70はS/P変換器71、セレクタ7
2、8ステージ8ビットのシフトレジスタ73、S/P変
換ラッチ回路74、チャンネルカウンタ75、楽器ナンババ
ランスチャンネルROM76、リズム音信号発生回路77、
エンベロープジェネレータ78、S/P変換回路79、音量
セレクタ80、レベル制御回路81、スピーカセレクタ82お
よびP/S変換回路83を具備し、制御部30(第1図)の
リズムインターフェース41およびパネルデータインター
フェース42からシリアルに送出されるリズムに関するデ
ータOPCIDAT、LVINT、PANCDDを入力
し、8個の時分割チャンネルのそれぞれにおいて打楽器
音信号を発生し、この打楽器音を発音チャンネルごとに
時分割多重化してレジスタ85に送出する。
(3) Rhythm sound generation circuit 70 FIG. 5 is a detailed block diagram of the rhythm sound generation circuit 70.
The rhythm sound generating circuit 70 includes an S / P converter 71 and a selector 7
2, 8-stage 8-bit shift register 73, S / P conversion latch circuit 74, channel counter 75, musical instrument number balance channel ROM 76, rhythm sound signal generation circuit 77,
The envelope generator 78, the S / P conversion circuit 79, the volume selector 80, the level control circuit 81, the speaker selector 82 and the P / S conversion circuit 83 are provided, and the rhythm interface 41 and the panel data interface of the control unit 30 (FIG. 1) are provided. The rhythm data OPCIDAT, LVINT, and PANCDD transmitted from 42 are input, and percussion instrument sound signals are generated in each of the eight time division channels. The percussion instrument sounds are time-division multiplexed for each sound generation channel to register 85. Send to.

このリズム音発生回路70全体はクロック信号φABで駆
動され、8つのリズム音源形成チャンネルがこのクロッ
ク信号φABの1周期ごとに順次区切られるタイムスロ
ットごとに時分割で形成される。この8つのチャンネル
のそれぞれにインストラメントグループを構成する8種
類の打楽器が1つずつ割り当てられる。
The entire rhythm sound generation circuit 70 is driven by the clock signal φ AB , and eight rhythm sound source forming channels are formed in time division for each time slot which is sequentially divided for each cycle of the clock signal φ AB . One of eight types of percussion instruments forming an instrument group is assigned to each of the eight channels.

S/P変換器71は、リズムインターフェース41(第1
図)から転送されるシルアルデータOPCIDATをパ
ラレルデータに変換するとともに、内蔵するバッファー
メモリに8チャンネル分のパラレルデータを一時格納
し、チャンネルカウンタ75と同期して1チャンネル分ず
つ出力端子P11〜1に出力する。
The S / P converter 71 includes a rhythm interface 41 (first
The serial data OPCIDAT transferred from the figure) is converted into parallel data, the parallel data for 8 channels is temporarily stored in the built-in buffer memory, and it is synchronized with the channel counter 75 and is output to the output terminals P11 to 1 for each channel. Output.

セレクタ72は、通常セレクト端子SBが“0”であるか
ら入力端子Aに入力する信号を出力する。従ってシフト
レジスタ73は一旦入力した信号をクロック信号φAB
とに順次シフトして循環させながら記憶している。この
シフトレジスタ73は、S/P変換器71の出力端P2 にキ
ーオン信号KONが発生してセレクタ72のセレクト端子
SBが“1”のときS/P変換器71の出力端P11〜P4
に発生するリズム音源データが入力される。この場合、
送出側のリズムインターフェース41(第1図)とチャン
ネルを一致させるためには、例えばファンクションレジ
スタ47(第4図)のトランスファ信号をチャンネルカウ
ンタ53のチャンネル0に同期して発生させ、必らずチャ
ンネル0から順にチャンネル7までのデータを転送する
とともに、受入側のリズム発生回路70においてはS/P
変換器71の出力をチャンネルカウンタ75の出力するチャ
ンネル番号が0のところから順にチャンネルカウンタ75
の出力またはシステムクロック信号φABと同期して出
力させる。
The selector 72 normally outputs the signal input to the input terminal A because the select terminal SB is "0". Therefore, the shift register 73 sequentially shifts the input signal for each clock signal φ AB and memorizes it while circulating it. The shift register 73 has output terminals P11 to P4 of the S / P converter 71 when the key-on signal KON is generated at the output terminal P2 of the S / P converter 71 and the select terminal SB of the selector 72 is "1".
Rhythm sound source data generated at is input. in this case,
In order to match the channel with the rhythm interface 41 (FIG. 1) on the sending side, for example, the transfer signal of the function register 47 (FIG. 4) is generated in synchronization with the channel 0 of the channel counter 53, and the channel is inevitable. The data from 0 to channel 7 are transferred in sequence, and the rhythm generating circuit 70 on the receiving side transfers S / P data.
The channel counter 75 outputs the output of the converter 71 in order from the channel number 0 output by the channel counter 75.
Or the system clock signal φ AB is output.

S/P変換ラッチ回路74はパネルデータインターフェー
ス42(第1図)から転送される表、裏およびイントロ各
パターン発生用インストラメントグループナンバIGN
を含むシリアルデータPANCDDをパラレルデータに
変換するとともにこのパラレルデータを次にシリアルデ
ータPANCDDが入力するまでラッチする。またこの
S/P変換ラッチ回路74はリズムインターフェース41
(第1図)からS/P変換器71の出力端P3 を経て入力
されるブレークセット・リセット信号BREAKによっ
てセットおよびリセットされるブレークフラグBRKF
Gを有し、ブレークセット信号が入力してブレークフラ
グBRKFGがセットされると選択されているバリエー
ションパターンのインストラメントグループナンバIG
Nを出力し、ブレークリセット信号が入力してブレーク
フラグBRKFGがリセットされるとノーマルパターン
のインストラメントグループナンバIGNを出力する。
なお、イントロ中は1つのインストラメントグループナ
ンバIGNのみが入力されるので、これを出力する。
The S / P conversion latch circuit 74 is an instrument group number IGN for generating front, back and intro patterns, which is transferred from the panel data interface 42 (FIG. 1).
Is converted into parallel data and the parallel data is latched until the next serial data PANCDD is input. Further, the S / P conversion latch circuit 74 is used in the rhythm interface 41.
A break flag BRKF set and reset by a break set / reset signal BREAK input from the output terminal P3 of the S / P converter 71 from FIG.
Instrument group number IG of the variation pattern having the selected G and having the break set signal input and the break flag BRKFG set.
When N is output and the break reset signal is input and the break flag BRKFG is reset, the normal group instruction group number IGN is output.
Since only one instrument group number IGN is input during the introduction, this is output.

チャンネルカウンタ75はシステムクロック信号φAB
カンウントして0〜7のチャンネルナンバCHNOを出
力する。
The channel counter 75 counts the system clock signal φ AB and outputs a channel number CHNO of 0 to 7.

楽器ナンババランスチャンネルROM76は、インストラ
メントグループナンバIGNとチャンネルカウント値が
入力されると、5ビットのインストラメントナンバIN
Oすなわち楽器名と、この楽器がシンバル(ノイズ)系
とドラム系のいずれかであるかを示す1ビットの音源群
信号BALと、この楽器音を発音するスピーカが中央か
左かを示す1ビットの発音制御信号CHAとを発生する
変換ROMである。
When the instrument group number IGN and the channel count value are input, the instrument number balance channel ROM 76 inputs a 5-bit instrument number IN.
O, that is, the instrument name, a 1-bit sound source group signal BAL indicating whether this instrument is a cymbal (noise) type or a drum type, and 1 bit indicating whether the speaker that emits this instrument sound is the center or the left Is a conversion ROM for generating the tone generation control signal CHA.

リズム音信号発生回路77は楽器ナンババランスチャンネ
ルROM76の出力する5ビットのインストラメントナン
バINOおよびシフトレジスタ73の出力する4ビットの
ピッチデータPITCHに基づいて打楽器音波形を発生
する。このリズム音信号発生回路77としては公知の波形
メモリ方式または演算方式のものを用いることができ
る。波形メモリ方式の場合はインストラメントナンバI
NOとピッチデータPITCHでメモリのスタート・エ
ンドアドレスを指定する。演算方式の場合はピッチの決
定および音色を決定するための定数の設定をインストラ
メントナンダINOで行ない、ピッチデータPITCH
はピッチの若干の修正に用いる。
The rhythm sound signal generating circuit 77 generates a percussion instrument sound waveform based on the 5-bit instruction number INO output from the instrument number balance channel ROM 76 and the 4-bit pitch data PITCH output from the shift register 73. As the rhythm sound signal generation circuit 77, a well-known waveform memory type or arithmetic type can be used. Instrument number I for waveform memory method
The start and end addresses of the memory are designated by NO and pitch data PITCH. In the case of the calculation method, the pitch data and the constants for determining the timbre are set by the instrument nanda INO, and the pitch data PITCH is set.
Is used for slight correction of pitch.

エンベロープジェネレータ78は、S/P変換器71の出力
端P2 に発生するキーオン信号KONをアタックとして
楽器ナンババランスチャンネルROM76の出力するイン
ストラメントナンバINOおよびシフトレジスタ73から
のサスティング信号S/Lで定まる波形のエンベロープ
データEGを発生する。S/P変換器71の出力端P1 に
バッファクリア信号BUFCLRが発生したときは8チ
ャンネル全部のエンベロープデータEGに直ちに0にし
てリズム音をダンプする。
The envelope generator 78 is determined by the instrument number INO output from the instrument number balance channel ROM76 and the sustaining signal S / L from the shift register 73 using the key-on signal KON generated at the output terminal P2 of the S / P converter 71 as an attack. Waveform envelope data EG is generated. When the buffer clear signal BUFCLR is generated at the output terminal P1 of the S / P converter 71, the envelope data EG of all eight channels are immediately set to 0 to dump the rhythm sound.

S/P変換回路79はパネルデータインターフェース42の
出力するノイズ系音量NLEVおよびドラム系音量DL
EVからなるシリアルデータLVINTをパラレルデー
タに変換して一時記憶する。
The S / P conversion circuit 79 outputs the noise volume NLEV and the drum volume DL output from the panel data interface 42.
The serial data LVINT composed of EV is converted into parallel data and temporarily stored.

音量セレクタ80は楽器ナンババランスチャンネルROM
76の発生する音源群信号BALに従いノイズ系音量NL
EVまたはドラム系音量DLEVのいずれかを選択して
レベル制御回路81に送出する。
Volume selector 80 is instrument number balance channel ROM
Noise system volume NL according to the sound source group signal BAL generated by 76
Either EV or drum volume DLEV is selected and sent to the level control circuit 81.

レベル制御回路81は例えば乗算器よりなり、リズム音信
号発生回路77からの音源波形データ、音量セレクタ80か
らのノイズ系音量NLEVまたはドラム系音量DLE
V、シフトレジスタ73からのレベルデータLEVELお
よびエンベロープジェネレータ78からのエンベロープデ
ータEGをチャンネルごとに演算して時分割多重化した
打楽器音信号を発生する。
The level control circuit 81 is composed of, for example, a multiplier, and includes sound source waveform data from the rhythm sound signal generation circuit 77, noise volume NLEV or drum volume DLE from the volume selector 80.
V, the level data LEVEL from the shift register 73 and the envelope data EG from the envelope generator 78 are calculated for each channel to generate a time division multiplexed percussion sound signal.

スピーカセレクタ82は楽器ナンババランスチャンネルR
OM76の発生する発音制御信号CHAに基づき、レベル
制御回路81で発生した打楽器音信号をそれぞれ中央およ
び左スピーカ向けに振り分ける。
The speaker selector 82 is a musical instrument number balance channel R
Based on the tone generation control signal CHA generated by the OM 76, the percussion instrument sound signals generated by the level control circuit 81 are distributed to the center and left speakers, respectively.

P/S変換回路83は中央および左スピーカ向け打楽器音
信号をシリアルデータに変換して送出する。
The P / S conversion circuit 83 converts the percussion instrument sound signals for the center and left speakers into serial data and sends it out.

(第1図の電子楽器の動作説明) 次に第6〜13図のフローチャートを参照しながら第1
図の電子楽器の動作を特に制御部30について説明する。
第6図を参照して、この電子楽器に電源が投入される
と、CPU31はプログラムメモリ32に格納された制御プ
ログラムに従って動作を開始する(ステップ 100)。ス
テップ 101ではCPU31、ワーキングメモリ33およびリ
ズムインターフェース41等の各レジスタ、フラグ等をク
リアして回路全体をイニシャライズし、ステップ 102で
鍵盤1およびパネル10の各操作子を走査して変更のあっ
た操作子およびその操作子情報を検出する。この検出
は、例えば各操作子ごとの操作子情報と各レジスタTE
MPO、TOTLEV、RHDLEV、RHCLEV、
RHYPTN、VARI等に格納された前回の操作子情
報との排他的論理和が0でない場合を操作子情報変更す
なわちイベント有りとして検出することができる。な
お、このステップ 102ではリズムスタート・ストップス
イッチ24がスタートまたはストップ側に押圧された場合
にもその操作子情報を検出する。操作子情報としては例
えばトータルボリウム28およびバランス設定子27による
設定値をそれぞれディジタルデータ0〜15で表わし、こ
のデータをトータル音量レジスタTOTLEV、ドラム
系音量比レジスタRHDLEVおよびノイズ系音量比レ
ジスタRHCLEVに格納する。
(Explanation of Operation of Electronic Musical Instrument of FIG. 1) Next, referring to the flowcharts of FIGS.
The operation of the electronic musical instrument shown in the figure will be described particularly for the control unit 30.
Referring to FIG. 6, when the electronic musical instrument is powered on, CPU 31 starts operation according to the control program stored in program memory 32 (step 100). In step 101, the registers, flags, etc. of the CPU 31, working memory 33, rhythm interface 41, etc. are cleared to initialize the entire circuit, and in step 102, the operators of the keyboard 1 and panel 10 are scanned to change the operation. Detect child and its manipulator information. This detection is performed by, for example, operator information for each operator and each register TE.
MPO, TOTTLEV, RHDLEV, RHCLEV,
When the exclusive OR with the previous manipulator information stored in RHYPTN, VARI, etc. is not 0, it can be detected that the manipulator information has been changed, that is, there is an event. In step 102, the operator information is detected even when the rhythm start / stop switch 24 is pressed toward the start or stop side. As the operator information, for example, the set values by the total volume 28 and the balance setter 27 are represented by digital data 0 to 15, respectively, and this data is stored in the total volume register TOTLEV, the drum system volume ratio register RHDLEV, and the noise system volume ratio register RHCLEV. To do.

また、ブレークスイッチの操作に伴ってブレークチェン
ジフラグBCHNGFをセットする。
Further, the break change flag BCHNGF is set in accordance with the operation of the break switch.

ステップ 103ではステップ 102でイベントが検出された
か否かを判定し、イベントがなければステップ 102に戻
ってさらにイベントの検出を行ない、イベント有ならば
以降のステップおいて検出されたイベントの種類に応じ
た処理を行なう。
In step 103, it is determined whether or not an event is detected in step 102. If there is no event, the process returns to step 102 to detect another event. If there is an event, depending on the type of event detected in the subsequent steps. Perform processing.

ステップ 102で検出されたイベントが鍵の押下もしくは
解除または楽音選択用操作子15の押下による楽音変更で
あるときはステップ 110に進む。ステップ 110では、各
鍵データまたは楽音選択データを処理して鍵楽音に関す
るデータを作成し、鍵楽音インターフェース40に出力す
る。鍵楽音インターフェース40はこれらのデータをさら
に鍵盤音形成回路65に送出する。
If the event detected in step 102 is a tone change by pressing or releasing a key or pressing the tone selection operator 15, the process proceeds to step 110. In step 110, each key data or tone selection data is processed to create data relating to the key tone and output to the key tone interface 40. The keyboard sound interface 40 further sends these data to the keyboard sound forming circuit 65.

前記イベントがスタート・ストップスイッチ26によるス
タート指令であれば、ステップ 120でワーキングメモリ
33内のリズムランフラグRHYRUNを$80(最上位ビ
ットのみ1)にセットした後、ステップ 121でリズムテ
ンポを同期させる。これはリズムインターフェース41の
ファンクションレジスタ47(第4図)にデータ$01をロ
ードしてファンクションレジスタ47にスタート信号ST
ARTを発生させ、このスタート信号によってカウンタ
49およびテンポクロック発生器51をリセットすることに
より行なう。また、このスタート信号STARTの発生
によってリズムインターフェース41からCPU31に割り
込みがかかり、CPU31は後述するステップ 200以降の
割込処理RHIRQによりリズムインターフェース41お
よびパネルデータインターフェース42を介してリズム音
発生回路70にリズム音に関するシリアルデータOPCI
DATを送出する。
If the event is a start command from the start / stop switch 26, in step 120 the working memory
After setting the rhythm run flag RHYRUN in 33 to $ 80 (only the most significant bit is 1), the rhythm tempo is synchronized in step 121. This is to load the data $ 01 into the function register 47 (Fig. 4) of the rhythm interface 41 and start the start signal ST to the function register 47.
Generate an ART and use this start signal to counter
49 and tempo clock generator 51 by resetting. Further, the generation of the start signal START causes the rhythm interface 41 to interrupt the CPU 31, and the CPU 31 causes the rhythm sound generation circuit 70 to perform the rhythm sound generation circuit 70 through the rhythm interface 41 and the panel data interface 42 by the interrupt processing RHIRQ after step 200 described later. Sound serial data OPCI
Send DAT.

ステップ 102におけるイベントがスタート・ストップス
イッチ26によるリズムストップであるときは、ステップ
130でリズムインターフェース41のファンクションレジ
スタ47にデータ$04をロードしてバッファクリア信号B
UFCLRを発生させ、シフトレジスタ60(第4図)の
全ステージ(8チャンネル分)を“1”にした後、さら
にステップ 131でデータ転送命令を出力してこのバッフ
ァクリアを含むリズムデータOPCIDATをリズムイ
ンターフェース41からリズム音発生回路70に送出する。
リズム音発生回路70ではこのバッファクリア信号BUF
CLRによってエンベロープジェネレータ78をクリア
し、リズム音をダンプする。さらにステップ 132で第1
表に示すパターン変更フラグPCHNGF、リズムラン
フラグRHYRUN等のリズム関係レジスタ、フラグを
クリアする。
If the event in step 102 is a rhythm stop by the start / stop switch 26,
At 130, data $ 04 is loaded into the function register 47 of the rhythm interface 41 and the buffer clear signal B
After UFCLR is generated and all stages (8 channels) of the shift register 60 (Fig. 4) are set to "1", a data transfer command is further output in step 131 to output the rhythm data OPCIDAT including this buffer clear. It is sent from the interface 41 to the rhythm sound generation circuit 70.
In the rhythm sound generation circuit 70, this buffer clear signal BUF
The CLR clears the envelope generator 78 and dumps the rhythm sound. Further in step 132 the first
The rhythm-related registers and flags such as the pattern change flag PCHNGF and the rhythm run flag RHYRUN shown in the table are cleared.

ステップ 102におけるイベントがテンポ設定子29による
テンポ変更であるときは、ステップ 140でテンポデータ
TEMPOをリズムインターフェース41のテンポレジス
タ44(第4図)にロードする。このテンポレジスタ44に
格納されたテンポデータにより1ビートのピッチすなわ
ちリズムパターンを読み出すテンポが決定される。
If the event in step 102 is a tempo change by the tempo setter 29, the tempo data TEMPO is loaded into the tempo register 44 (FIG. 4) of the rhythm interface 41 in step 140. The tempo data stored in the tempo register 44 determines the pitch of one beat, that is, the tempo at which the rhythm pattern is read.

ステップ 102におけるイベントがトータルボリウム28に
よるリズム音量の変更であるときは、ステップ 150でパ
ネルレベルデータTOTLEVをパネルデータインター
フェース41に出力する。パネルデータインタフェース41
はこのパネルレベルデータTOTLEVをシリアルなリ
ズムレベルデータLVINTに変換してリズム音発生回
路70に出力する。
When the event in step 102 is a change in the rhythm volume by the total volume 28, the panel level data TOTLEV is output to the panel data interface 41 in step 150. Panel data interface 41
Converts the panel level data TOTLEV into serial rhythm level data LVINT and outputs it to the rhythm sound generation circuit 70.

ステップ 102におけるイベントがリズム選択スイッチ23
の押下によるリズム種類RHYPTNの変更であるとき
は、第7図に示すステップ 160以下のリズムセット処理
RHYSETを実行する。すなわち、ステップ 161でリ
ズムランフラグRHYRUNを検査してリズム進行中な
らばステップ 162でパターンチェンジフラグPCHNG
Fをセットした後、また、ステップ 161でリズムが進行
していなければステップ 162をスキップしてステップ 1
63に進む。ステップ 162でパターンチェンジフラグPC
HNGFをセットするのはリズム途中でリズム種類が変
ったとき前のリズム音をフォーシングダンプするため次
回の割込処理の際(ステップ 213参照)このパターン変
更フラグPCHNGFがセットされていればバッファク
リア信号BUFCLRをリズム音形成回路70に送出する
ためである。ステップ 163ではタイミングカウンタTI
MINGの内容を参照して拍数レジスタの拍数をタイミ
ングTIMINGが0〜11なら1に、12〜23なら2に、
24〜35なら3に、36〜47なら4にセットする。これは変
更後のリズムを変更前と同一のタイミングで継続させる
ためで、ステップ 167で同一拍数、同一拍内タイミング
のリズムパターンデータが格納されたアドレスにパター
ンポインタPHPNT1,2 をセットする際に用いる。ス
テップ 164では再度リズムランフラグRHYRUNを検
査しリズム進行中であればステップ 165で拍エンドフラ
グRHHEND1,2 をクリアする。これは拍エンドフラ
グRHHEND1,2 がセットされたままになっている
と、変更後のリズムが変更時のタイミング以降にイベン
トデータを有するときこれらのイベントデータの読取を
スキップしてしまうからである(ステップ 401参照)。
変更後のリズムにおいても変更時のタイミング以降にイ
ベントデータが存在しないときはリズムポインタRHP
NT1,2 をセットする際に拍エンドフラグRHHEND
1,2 をセットする。ステップ 164の判定がリズム停止中
のときはリズムストップ処理の際ステップ 132において
拍エンドフラグRHHEND1,2 は既にクリアされてい
るのでステップ 165をスキップしてステップ 166に進
む。
The event in step 102 is the rhythm selection switch 23.
When the rhythm type RHYPTN is changed by pressing the button, the rhythm set processing RHYSET of step 160 and subsequent steps shown in FIG. 7 is executed. That is, the rhythm run flag RHYRUN is checked in step 161 and if the rhythm is in progress, the pattern change flag PCHNG is detected in step 162.
After setting F, if the rhythm is not progressing in step 161, skip step 162 and skip step 1
Proceed to 63. Pattern change flag PC in step 162
The HNGF is set because the previous rhythm sound is forcing-dumped when the rhythm type changes in the middle of the rhythm. At the next interrupt processing (see step 213), if the pattern change flag PCHNGF is set, the buffer is cleared. This is because the signal BUFCLR is sent to the rhythm sound forming circuit 70. In step 163, the timing counter TI
Referring to the contents of MING, set the number of beats in the number of beats register to 1 if the timing TIMING is 0 to 11, and to 2 if it is 12 to 23,
Set to 3 for 24-35, and set to 4 for 36-47. This is because the changed rhythm is continued at the same timing as before the change, and when the pattern pointer PHPNT1,2 is set to the address where the rhythm pattern data of the same number of beats and the same beat timing is stored in step 167. To use. In step 164, the rhythm run flag RHYRUN is checked again, and if the rhythm is in progress, the beat end flag RHHEND1,2 is cleared in step 165. This is because if the beat end flags RHHEND1,2 remain set, when the changed rhythm has event data after the timing of the change, the reading of these event data is skipped ( See step 401).
Even in the changed rhythm, if no event data exists after the changed timing, the rhythm pointer RHP
Beat end flag RHHEND when setting NT1,2
Set 1,2. If the determination in step 164 indicates that the rhythm is stopped, the beat end flag RHHEND1,2 has already been cleared in step 132 during the rhythm stop processing, so step 165 is skipped and step 166 is proceeded to.

ステップ 166では、リズム種類レジスタの内容RHYP
TNで先頭パターンアドレスメモリ35をアドレスして選
択されたリズム種類のノーマルパターン、バリエーショ
ンパターンおよびイントロパターンの先頭アドレスを読
み出し、これらの先頭アドレスをそれぞれ表、裏および
イントロパターン先頭アドレスレジスタRHYROM1
、RHYROM2 およびINTROMに格納する。ス
テップ 167ではリズムパターンメモリ34を表および裏パ
ターンの先頭アドレスRHYROM1 およびRHYRO
M2 から順次読み出し、読み出された拍エンドの数およ
び拍内タイミングと拍数HKPEおよびタイミングTI
MINGとを比較して、それぞれ表パターンポインタR
HPNT1 および裏パターンポインタRHPNT2 をセ
ットする。ステップ 168ではリズムパターンメモリ34の
各先頭アドレスRHYROM1 およびRHYROM2 に
格納されたインストラメントグループナンバIGNを読
み出してパネルデータインターフェース41に出力する。
パネルデータインターフェース41はこれらの表パターン
および裏パターン用の、インストラメントグループナン
バIGNをシリアル信号PANCDDに変換してリズム
音発生回路70に送出する。
At step 166, the contents of the rhythm type register RHYP
The head address of the normal pattern, variation pattern and intro pattern of the selected rhythm type is read out by addressing the head pattern address memory 35 with TN, and these head addresses are read to the front, back and intro pattern head address register RHYROM1 respectively.
, RHYROM2 and INTROM. At step 167, the rhythm pattern memory 34 is loaded with the leading addresses RHYROM1 and RHYRO of the front and back patterns.
Sequentially read from M2, the number of read beat ends, the timing within the beat, the beat number HKPE, and the timing TI
The table pattern pointer R is compared with MING.
Set HPNT1 and back pattern pointer RHPNT2. In step 168, the instrument group numbers IGN stored in the respective head addresses RHYROM1 and RHYROM2 of the rhythm pattern memory 34 are read out and output to the panel data interface 41.
The panel data interface 41 converts the instrument group number IGN for these front and back patterns into a serial signal PANCDD and sends it to the rhythm sound generation circuit 70.

ステップ 169ではリズム種類RHYPTNが3拍子およ
び4拍子のいずれであるか判定し、4拍子であればステ
ップ 170で、3拍子であればステップ 171で最大テンポ
数レジスタTMPMAXにそれぞれ1小節内の最大タイ
ミング数である35および47を記憶させる。
In step 169, it is determined whether the rhythm type RHYPTN is 3 beats or 4 beats. If it is 4 beats, in step 170. If it is 3 beats, in step 171 the maximum tempo number register TMPMAX is set to the maximum timing within one bar, respectively. Remember the numbers 35 and 47.

ステップ 102におけるイベントがイントロスイッチ23の
押下であるときは第8図のイントロ処理INTRO180
を実行する。すなわち、ステップ 181でリズムランフラ
グRHYRUNを検査してリズムが進行中か否かを判定
し、リズム進行中であればイントロスイッチ23の押下は
無意味であるから、そのまま第6図ステップ 102のイベ
ント検出に戻る。ステップ 181の判定でリズム停止中で
あればイントロパターン先頭アドレスINTROMによ
りリズムパターンメモリ34の先頭アドレスを指定してそ
こに格納されているイントロ用のインストラメントグル
ープナンバIGNを読み出してパネルデータインターフ
ェース42を介してリズム音発生回路70に送出する。
When the event in step 102 is the depression of the intro switch 23, the intro process INTRO180 of FIG.
To execute. That is, in step 181, the rhythm run flag RHYRUN is checked to determine whether or not the rhythm is in progress. If the rhythm is in progress, pressing the intro switch 23 is meaningless. Therefore, the event of step 102 in FIG. Return to detection. If it is determined in step 181 that the rhythm is stopped, the start address of the rhythm pattern memory 34 is specified by the intro pattern start address INTROM, the intro instrument group number IGN stored therein is read, and the panel data interface 42 is set. It is sent to the rhythm sound generation circuit 70 via the.

ステップ 102でイベント検出後、イベントの種類ごとの
処理を終了すると、再びステップ 102に戻って新たなイ
ベントの検出を行なう。
After the event is detected in step 102, when the processing for each kind of event is completed, the process returns to step 102 to detect a new event.

前述したように第1図の電子楽器においてはスタート・
ストップスイッチ26をスタートにしたとき、およびカウ
ンタ48が設定されたテンポに従って1拍の1/12すなわ
ち1ビートをカウントしたときリズムインターフェース
41からCPU31に割込信号RINTPTが送出される。
従ってCPU31はリズムスタート時と以後の1ビートご
とに第9図の割込処理INTRPT200 を実行する。
As described above, in the electronic musical instrument shown in FIG.
When the stop switch 26 is started and when the counter 48 counts 1/12 of one beat, that is, one beat according to the set tempo, the rhythm interface
An interrupt signal RINTPT is sent from 41 to the CPU 31.
Therefore, the CPU 31 executes the interrupt processing INTRPT200 of FIG. 9 at the start of the rhythm and for each subsequent beat.

先ず、ステップ 201では割込処理終了後もとの状態に復
帰できるように各レジスタ、プログラムカウンタ等をセ
ーブし、続いて第10図に示すリズム音発生データ出力
処理RHIRQ210 を実行する。
First, at step 201, each register, program counter, etc. are saved so that the state can be returned to the original state after completion of the interrupt processing, and then the rhythm sound generation data output processing RHIRQ210 shown in FIG. 10 is executed.

第10図を参照して、ステップ 211でリズムランフラグ
RHYRUNを検査してリズムが進行中か否かを判定す
る。RHYRUN=0すなわちリズムが停止している場
合はリズム音データを出力する必要はないからステップ
290(第9図)で直ちに割り込みを解除し、もとの第6
〜8図のルーチンに復帰する。ステップ 211でリズムが
進行中ならばステップ 212でイントロフラグINTON
を検査し、イントロフラグINTONがセットされてい
ればステップ 250以下のイントロパターン読出処理を実
行する。イントロがセットされていないか、セットされ
ていたとしてもイントロパターンを終了してイントロフ
ラグINTONがリセットされている場合は次のステッ
プ 213に進む。ステップ 213ではパターンチェンジフラ
グPCHNGFを検査し、パターンチェンジフラグが立
っていればリズム変更またはノーマルパターンとバリエ
ーションパターンとの切り替え後最初のデータ出力であ
るからステップ 214でリズムインターフェース41にバッ
ファクリア信号BUFCLRを送出する。このバッファ
クリア信号は後述のステップ 225でリズム音発生回路70
に転送され、リズム音発生回路70ではエンベローブジェ
ネレータ78をクリアして前のリズム音をクリアする。次
いでステップ 215ではパターンチェンジフラグPCHN
GFをクリアして次のステップ 216に進む。ステップ 2
13の判定でリズム変更がなければステップ 214, 215を
スキップしてステップ 216に進む。ステップ 216では小
節アップフラグRDISPFを検査して前回の割込処理
で前小節が終了したか否か、すなわち、今、小節の頭で
あるか否かを判定する。小節アップフラグRDISPが
$FFすなわち小節の頭であれば第11図の交換サブル
ーチンCHANG300 を実行する。
Referring to FIG. 10, in step 211, the rhythm run flag RHYRUN is checked to determine whether or not the rhythm is in progress. If RHYRUN = 0, that is, if the rhythm is stopped, it is not necessary to output the rhythm sound data.
Immediately release the interrupt at 290 (Fig. 9),
~ Return to the routine of FIG. If the rhythm is in progress in step 211, the intro flag INTON in step 212.
Is checked, and if the intro flag INTON is set, the intro pattern reading process from step 250 is executed. If the intro is not set, or if the intro pattern is finished and the intro flag INTON is reset even if it is set, the process proceeds to the next step 213. In step 213, the pattern change flag PCHNGF is inspected. If the pattern change flag is set, the data output is the first after the rhythm change or the change between the normal pattern and the variation pattern. Therefore, in step 214, the buffer clear signal BUFCLR is sent to the rhythm interface 41. Send out. This buffer clear signal is sent to the rhythm sound generation circuit 70 in step 225 described later.
The rhythm sound generating circuit 70 clears the envelope generator 78 to clear the previous rhythm sound. Next, at step 215, the pattern change flag PCHN
Clear GF and proceed to the next step 216. Step two
If there is no rhythm change in the judgment in step 13, skip steps 214 and 215 and proceed to step 216. In step 216, the bar up flag RDISPF is checked to determine whether or not the previous bar has ended in the previous interrupt process, that is, whether or not it is the head of the bar. If the bar up flag RDISP is $ FF, that is, the head of the bar, the exchange subroutine CHANG300 of FIG. 11 is executed.

第11図を参照して、ステップ 301では小節数カウンタ
SYOCNTを歩進して小節アップの回数をカウントし
た後、ステップ 302でブレークフラグBRKONを検査
し、BRKON≠0すなわち前小節がブレークであった
ときはステップ 320に進み、BRKON=0すなわち前
小節がブレークでなければステップ 303に進む。
Referring to FIG. 11, in step 301, the bar number counter SYOCNT is stepped up to count the number of bar ups, and in step 302, the break flag BRKON is checked and BRKON ≠ 0, that is, the previous bar is a break. If so, the process proceeds to step 320, and BRKON = 0, that is, if the previous bar is not a break, the process proceeds to step 303.

ステップ 303ではオートブレークレジスタAUTBRK
を検査してオートブレークが設定されているか否かを判
定し、オートブレークが設定されていればステップ 304
で今小節は設定されたオートブレーク種類すなわちブレ
ーク周期(4,8,16bar )の整数倍の小節か否かを
判定する。この判定は、小節数カウンタSYOCNTの
下位4ビットとオートブレークレジスタAUTBRKの
下位4ビットとの論理積によって行なう。この論理積が
0のときは今小節をブレーク周期の整数倍小節目すなわ
ちバリエーション挿入小節と判定し、ステップ 311でブ
レークフラグBRKONをセットした後、ステップ 312
で表パターンメモリポインタRHPNT1 の内容と裏パ
ターンメモリポインタRHPNT2 の内容とを交換し、
ステップ 313で表パターンメモリ先頭アドレスレジスタ
RHYROM1 の内容と裏パターンメモリ先頭アドレス
レジスタRHYROM2 の内容とを交換する。このステ
ップ 312および 313の処理により前小節ではノーマルパ
ターンを表パターン、バリエーションパターンを裏パタ
ーンとして処理していたところ、今小節ではバリエーシ
ョンパターンをブレークパターンとして表側にノーマル
パターンを裏側に入れ替えて処理を行なう。次にステッ
プ 314でブレークフラグBRKONを再度検査し、今回
はステップ 311でブレークフラグBRKONはセットさ
れているのでステップ 315に進み、ファンクションレジ
スタ47(第4図)にデータ$08をロードしてブレークセ
ット信号を発生させる。このブレークセット信号はステ
ップ 225において他のデータとともにリズム音発生回路
70(第5図)に送出され、P/S変換ラッチ回路74のブ
レークフラグBRKFGをセットし、このためP/S変
換ラッチ回路74はブレークパターン発生用のインストラ
メントグループナンバIGNを送出する。
At step 303, the automatic break register AUTOBRK
Is checked to determine whether an auto break is set, and if an auto break is set, step 304
Then, it is determined whether or not the bar is a bar that is an integral multiple of the set auto-break type, that is, the break cycle (4, 8, 16 bar). This determination is made by the logical product of the lower 4 bits of the bar number counter SYOCNT and the lower 4 bits of the auto break register AUTOBRK. When this logical product is 0, it is judged that the present measure is an integral multiple measure of the break cycle, that is, a variation insertion measure, the break flag BRKON is set in step 311, and then step 312
Replace the contents of the front pattern memory pointer RHPNT1 and the contents of the back pattern memory pointer RHPNT2 with
At step 313, the contents of the front pattern memory start address register RHYROM1 and the contents of the back pattern memory start address register RHYROM2 are exchanged. By the processing of steps 312 and 313, the normal pattern was processed as the front pattern and the variation pattern as the back pattern in the previous measure, but in this measure, the variation pattern is replaced as the break pattern and the normal pattern is replaced as the front pattern and the normal pattern is processed as the back pattern. . Next, in step 314, the break flag BRKON is checked again. This time, in step 311, since the break flag BRKON is set, the process proceeds to step 315, the data $ 08 is loaded into the function register 47 (Fig. 4), and the break is set. Generate a signal. This break set signal is sent along with other data to the rhythm sound generation circuit in step 225.
70 (FIG. 5), the break flag BRKFG of the P / S conversion latch circuit 74 is set, so that the P / S conversion latch circuit 74 sends the instruction group number IGN for generating the break pattern.

ステップ 302の判定でBRKON≠0すなわち前小節は
ブレークであったときはステップ 320でブレークスイッ
チ21(第2図)を検査し、ブレークスイッチ21が押下さ
れていれば今小節も引き続いてブレークパターンを発生
するのであり、表ポインタRHPNT1 およびインスト
ラメントグループナンバIGN等は既にブレークパター
ン側にセットされているので、ステップ 321でブレーク
チェンジフラグBCHNGFをリセットした後もとのル
ーチン(第10図)に戻る。ステップ 320でブレークス
イッチ21(第2図)が解除されていたときは、ステップ
322でブレークチェンジフラグBCHNGFをクリア
し、ステップ 323でブレークフラグBRKONをリセッ
トした後、前述のステップ 312および 313で表ポインタ
RHPNT1 の内容と裏ポインタRHPNT1 の内容と
を交換し、ステップ 313でパターン先頭アドレスを表裏
入れ替えて表パターン等をノーマル側にセットした後、
ステップ 314でブレークフラグBRKONを再度検査す
る。今度の場合、ブレークフラグBRKONはステップ
323でリセットされているので、次にステップ 316に進
み、リズム音発生回路70(第5図)におけるインストラ
メントグループナンバIGNをノーマルパターン側に変
更するため、ファンクションレジスタ47(第4図)にブ
レークリセット用データ$10をロードした後、もとのル
ーチン(第10図)に戻る。
If BRKON ≠ 0, that is, the previous bar is a break in the judgment of step 302, the break switch 21 (FIG. 2) is inspected in step 320. If the break switch 21 is pressed, the bar continues to be broken pattern. Since the table pointer RHPNT1 and the instruction group number IGN have already been set to the break pattern side, the break change flag BCHNGF is reset in step 321, and the process returns to the original routine (FIG. 10). If break switch 21 (Fig. 2) was released in step 320,
After clearing the break change flag BCHNGF at 322 and resetting the break flag BRKON at step 323, the contents of the front pointer RHPNT1 and the contents of the back pointer RHPNT1 are exchanged at the above steps 312 and 313, and at the step 313 the pattern start address. After replacing the front and back and setting the front pattern etc. to the normal side,
In step 314, the break flag BRKON is checked again. In this case, the break flag BRKON is stepped.
Since it has been reset at 323, proceed to step 316, and break the function register 47 (Fig. 4) to change the instrument group number IGN in the rhythm sound generation circuit 70 (Fig. 5) to the normal pattern side. After loading the reset data $ 10, return to the original routine (Fig. 10).

ステップ 303でオートブレークが設定されていなかった
場合およびオートブレークが設定されていてもステップ
304で今小節がブレークパターン挿入小節でなかった場
合は、パターン交換をすることなく、そのままもとのル
ーチン(第10図)に戻る。
If auto-break is not set in step 303 and if auto-break is set
If the measure is not the break pattern insertion measure at 304, the process returns to the original routine (Fig. 10) without exchanging patterns.

第10図を参照して、交換サブルーチンCHANGを実
行した後、またはステップ 216で小節の頭でなかったと
きは、ステップ 220でブレークチェンジフラグBCHN
GFを検査する。BCHNGF≠0のときはブレークス
イッチ21が押下されたのであるから、ステップ 221でブ
レークチェンジフラグBCHNGFをリセットした後、
前記交換サブルーチンCHANGの一部を流用したCH
ANG1 ルーチン310 で表パターンをブレークパターン
に交換し、次いでステップ 223で表拍エンドフラグRH
HEND1 の内容と裏拍エンドフラグRHHEND2 の
内容とを交換する。表パターンをブレークパターンから
ノーマルパターンへの変更およびオートブレークにおけ
る表裏パターンの交換は必らず小節の切り換わり時に生
じるため拍エンドフラグRHHEND1 ,2 は必らずリ
セットされているので交換する必要はないが、フィルイ
ンによるノーマルパターンからブレークパターンへの変
更は如何なるタイミングでも起こり得るので、ステップ
223の処理が必要となる。
Referring to FIG. 10, after executing the exchange subroutine CHANG, or when it is not the beginning of the bar in step 216, the break change flag BCHN is found in step 220.
Examine GF. If BCHNGF ≠ 0, the break switch 21 was pressed, so after resetting the break change flag BCHNGF in step 221,
CH diverted from a part of the exchange subroutine CHANG
The ANG1 routine 310 replaces the table pattern with the break pattern, and then, in step 223, the table beat end flag RH.
The contents of HEND1 and the contents of the back beat end flag RHHEND2 are exchanged. The change of the table pattern from the break pattern to the normal pattern and the exchange of the front and back patterns in the automatic break are inevitably caused at the time of the bar switching, so the beat end flags RHHEND1 and 2 are inevitably reset, so it is not necessary to exchange them. However, since the change from the normal pattern to the break pattern by fill-in can occur at any time,
223 processes are required.

上述のCHANG1 サブルーチンを実行した後、および
ステップ 220においてブレークチェンジフラグBCHN
GFが0の場合は、続いてデータ出力サブルーチンRH
YCNV400 (第12図)を実行する。
After executing the CHANG1 subroutine described above, and at step 220, the break change flag BCHN.
If GF is 0, then the data output subroutine RH
Execute YCNV400 (Fig. 12).

第12図を参照して、ステップ 401では表拍エンドフラ
グRHHEND1 を検査し、拍エンドであれば以降拍オ
ーバーするまでの拍内タイミングTMPCNTに表パタ
ーンのイベントデータは存在しないからそのままもとの
ルーチン(第10図)に戻る。拍エンドでなければステ
ップ 402でリズムポインタRHYPNT1 の内容をYレ
ジスタにセットし、続いてステップ 403および 404で表
パターンメモリ先頭アドレスRHYROM1 Yレジスタ
の内容(すなわち表ポインタの内容RHPNT1 )との
和でリズムパターンメモリ34をアドレスして第3図(c
)の第1バイトのチャンネルデータCHNOおよび拍
内タイミングデータHTIMINGを読み出しAレジス
タおよびXレジスタに格納する。次にステップ 405でA
レジスタの内容と$OFとの論理積を求めAレジスタの
内容を下位4ビットの拍内タイミングデータHTIMI
NGだけ残し、ステップ 406でこの拍内タイミングHT
IMINGとテンポカウンタTMPCNTで示されるタ
イミングが一致するか否かを判定する。ステップ 406で
これらのタイミングが一致していればこのデータは現在
処理すべきタイミングTMPCNTのもので有効である
からステップ 407でポインタとしてのYレジスタの内容
を歩進させ、ステップ 408で第3図(c )のイベントデ
ータの第2バイトのピッチPITCHおよびレベルLE
VELデータを読み出してAレジスタに格納する。ステ
ップ 409ではAレジスタに格納されたピッチおよびレベ
ルデータをリズム音源データレジスタ45(第4図)に、
また、Xレジスタに格納されているチャンネルンバーC
HNOはチャンネルレジスタ46(第4図)に出力する。
Referring to FIG. 12, in step 401, the table beat end flag RHHEND1 is checked, and if it is the end of the beat, the event data of the table pattern does not exist in the in-beat timing TMPCNT until the beat is over. Return to (FIG. 10). If it is not the beat end, the contents of the rhythm pointer RHYPNT1 are set in the Y register in step 402, and then in steps 403 and 404, the rhythm is obtained by adding the contents of the table pattern memory start address RHYROM1 Y register (that is, the contents of the table pointer RHPNT1). Addressing the pattern memory 34, FIG.
) First-channel data CHNO and intra-beat timing data HTIMING are read out and stored in the A register and the X register. Next, in step 405, A
The logical product of the contents of the register and $ OF is calculated and the contents of the A register are set to the lower 4-bit intra-beat timing data HTIMI.
Only NG is left, and in step 406, the timing HT within this beat
It is determined whether or not the timings indicated by IMIN and tempo counter TMPCNT match. If these timings match in step 406, this data is valid at the timing TMPCNT to be processed now, so the content of the Y register as a pointer is incremented in step 407, and in step 408, FIG. c) Pitch of second byte of event data and level LE
The VEL data is read and stored in the A register. In step 409, the pitch and level data stored in the A register are stored in the rhythm sound source data register 45 (FIG. 4).
In addition, the channel number C stored in the X register
The HNO is output to the channel register 46 (Fig. 4).

ステップ 410ではさらに次のイベントデータEVTを読
み出すべく表ポインタとしてのYレジスタの内容をさら
に歩進する。ステップ 411〜 414ではステップ 403〜 4
06の手順を繰り返しステップ 407〜 414で現在のタイミ
ングTMPCNTと同一の拍内タイミングを有するイベ
ントデータを全て読み出す。ステップ 406または 414に
おいて同一拍内タイミングを有するイベントデータが存
在しないときは、ステップ 415に進み、ステップ 405ま
たは 413でAレジスタに残したタイミングデータが$0
D以上か否かすなわち拍エンドまたはリターンかを判定
する。拍内タイミングは必らず$0〜$Bであるので、
Aレジスタの内容Aが$0D以上になるのは拍エンドデ
ータBEかリターンデータRTNを読み取ったときであ
る。そこで上記判定でAレジスタ≧$ODのときは次に
ステップ 416でAレジスタ=$0Fが否かすなわちリタ
ーンかを判定し、Aレジスタ=$0Fすなわちリターン
であれば、ステップ 417でYレジスタをクリアし、拍エ
ンドであればステップ 417をスキップしてステップ 418
に進む。ステップ 418では表拍エンドフラグRHHEN
D1 をセットし、ステップ 419でYレジスタの内容を歩
進し、ステップ 420で表ポインタRHPNT1 にYレジ
スタの内容Yをセットしもとのルーチン(第10図ステ
ップ 225)に戻る。上記のステップ 417, 419および 4
20の処理によりリターンデータRTNが検出されたとき
表ポインタRHPNT1 は1にセットされ、また拍エン
ドデータBEが検出されたときは表ポインタRHPNT
1 はステップ 419において拍エンドデータBEが格納さ
れた番地の次の番地を示すこととなる。ステップ 415の
判定において拍内タイミングTMPCNTが$0Dより
小さく拍エンドまたはリターンでない場合はステップ 4
20に進み、表ポインタPHPNT1 にタイミングTMP
CNTと一致しない拍内タイミングを読み出したときの
番地がそのまま格納された後第10図のルーチンのステ
ップ 225に戻る。
In step 410, the contents of the Y register as the table pointer are further stepped to read the next event data EVT. Steps 403 to 4 in steps 411 to 414
The procedure of 06 is repeated, and in steps 407 to 414, all the event data having the same in-beat timing as the current timing TMPCNT is read. If there is no event data having the same beat timing in step 406 or 414, the process proceeds to step 415, and the timing data left in the A register in step 405 or 413 is $ 0.
It is determined whether or not it is D or more, that is, whether it is a beat end or a return. Since the timing within the beat is always $ 0 to $ B,
The content A of the A register becomes $ 0D or more when the beat end data BE or the return data RTN is read. Therefore, if A register ≥ $ OD in the above determination, it is then determined in step 416 whether A register = $ 0F, that is, return, and if A register = $ 0F, that is, return, the Y register is cleared in step 417. If the beat ends, skip step 417 and skip step 418.
Proceed to. In step 418, the front beat end flag RHHEN
D1 is set, the content of the Y register is incremented in step 419, the content Y of the Y register is set in the table pointer RHPNT1 in step 420, and the process returns to the original routine (step 225 in FIG. 10). Steps 417, 419 and 4 above
When the return data RTN is detected by the processing of 20, the table pointer RHPNT1 is set to 1, and when the beat end data BE is detected, the table pointer RHPNT is set.
1 indicates the address next to the address in which the beat end data BE is stored in step 419. If the in-beat timing TMPCNT is smaller than $ 0D and is not the end or return of the beat in the determination of step 415, step 4
Proceed to 20 and set the timing TMP to the table pointer PHPNT1.
The address at the time of reading out the in-beat timing that does not match CNT is stored as it is, and then the process returns to step 225 of the routine of FIG.

第10図を参照して、ステップ 225ではリズムインター
フェース41にデータ転送命令を送出する。これはファン
クションレジスタ47(第4図)をアドレスで指定して$
20をロードすることによって行なう。すると、ファン
クションレジスタ47が転送信号TRANSを出力し、こ
の信号がP/S変換器61に印加され、ステップ 409でリ
ズムインターフェース41に出力され、シフトレジスタ58
にチャンネルごとに格納されているピッチPITCH、
サスティンS/LおよびレベルLEVEL、シフトレジ
スタ59に格納されているキーオンデータKON、シフト
レジスタ60に格納されているバッファクリア信号BUF
CLRならびにファンクションレジスタ47の出力するブ
レークセット・リセット信号などがP/S変換器61で11
ビットのシリアルデータOPCIDATに変換されてリ
ズム音発生回路70(第5図)に送出される。
Referring to FIG. 10, in step 225, a data transfer command is sent to the rhythm interface 41. This is the function register 47 (Fig. 4) specified by address
Do this by loading 20. Then, the function register 47 outputs the transfer signal TRANS, this signal is applied to the P / S converter 61, is output to the rhythm interface 41 in step 409, and is transferred to the shift register 58.
The pitch PITCH stored for each channel in
Sustain S / L and level LEVEL, key-on data KON stored in shift register 59, buffer clear signal BUF stored in shift register 60
Break set / reset signals output from the CLR and the function register 47 are output by the P / S converter 61.
It is converted into bit serial data OPCIDAT and sent to the rhythm sound generating circuit 70 (FIG. 5).

ステップ 225の次は裏パターン進行サブルーチンRHY
PUP500 (第13図)の処理を実行する。第13図を
参照してステップ 501では裏拍エンドフラグRHHEN
D2 を検査し、拍エンドであれば以後拍オーバーするま
でのタイミングTMPCNTに裏パターンのイベントデ
ータは存在しないからそのままもとのルーチン(第10
図)に戻る。拍エンドでなければステップ 502でリズム
ポインタRHYPNT2 の内容をYレジスタにセット
し、続いてステップ 503および 504で裏パターン先頭ア
ドレスRHYROM2 とYレジスタの内容Y(すなわち
裏ポインタの内容RHYROM2 )との和でリズムパタ
ーンメモリ34をアドレスして第3図(c )の第1バイト
のチャンネルデータCHNOおよび拍内タイミングデー
タHTIMINGを読み出しAレジスタおよびXレジス
タに格納する。次にステップ 505でAレジスタの内容と
$OFとの論理積を求めAレジスタの内容を下位4ビッ
トの拍内タイミングデータだけ残し、ステップ 506でこ
の拍内タイミングとテンポカウンタTMPCNTで示さ
れるタイミングが一致するか否かを判定する。ステップ
506でこれらのタイミングが一致していれば現在のタイ
ミングTMPCNTで読み出すべきデータが存在してい
るのであるから、ステップ 507でポインタとしてのYレ
ジスタの内容に2を加える。ステップ 508〜 511ではス
テップ 503〜 506の手順を繰り返し、現在のタイミング
TMPCNTと同一の拍内タイミングを有するイベント
データを全て空送りする。ステップ 506または 511にお
いて現在と同一の拍内タイミングを有するイベントデー
タが存在しないときはステップ 512に進む。ステップ 5
12〜 517においてはステップ 415〜 420(第12図)に
おけると同様に、ステップ 505または 510でAレジスタ
に残したタイミングデータにより、次のイベントが発生
する拍内タイミングを判定し、裏ポインタRHHEND
2 を次のイベントを読み出しうるアドレスにセットした
後、もとのルーチン(第10図ステップ 230)に戻る。
Subsequent to step 225, the back pattern advance subroutine RHY
The process of PUP500 (Fig. 13) is executed. Referring to FIG. 13, in step 501, the back beat end flag RHHEN
If D2 is inspected and the end of the beat is detected, there is no back pattern event data in the timing TMPCNT until the end of the beat.
Return to Figure). If it is not the beat end, the content of the rhythm pointer RHYPNT2 is set in the Y register in step 502, and then in steps 503 and 504, the back pattern start address RHYROM2 and the content Y of the Y register (that is, the content of the back pointer RHYROM2) are added. The rhythm pattern memory 34 is addressed and the first byte of channel data CHNO and in-beat timing data HTIMING of FIG. 3 (c) are read out and stored in the A register and the X register. Next, in step 505, the logical product of the contents of the A register and $ OF is obtained, and the contents of the A register are left only for the in-beat timing data of the lower 4 bits. In step 506, this in-beat timing and the timing indicated by the tempo counter TMPCNT are It is determined whether they match. Step
If these timings match at 506, there is data to be read at the current timing TMPCNT, so at step 507 2 is added to the contents of the Y register as a pointer. In steps 508 to 511, the procedure of steps 503 to 506 is repeated, and all the event data having the same in-beat timing as the current timing TMPCNT are idle-fed. If there is no event data having the same in-beat timing as at present in step 506 or 511, the process proceeds to step 512. Step 5
In steps 12 to 517, as in steps 415 to 420 (FIG. 12), the timing data left in the A register in steps 505 or 510 is used to determine the in-beat timing at which the next event occurs, and the back pointer RHHEND is set.
After setting 2 to the address from which the next event can be read, the process returns to the original routine (step 230 in FIG. 10).

第10図を参照して、ステップ 230および 231では拍小
節アップフラグをリセットし、ステップ 232ではテンポ
カウンタTMPCNTを歩進してステップ 233でテンポ
カウンタの内容TMPCNTから拍オーバーか否かを判
定する。1拍内のタイミングは0〜11の12個である
からテンポカウンタの示すタイミングTMPCNTがオ
ーバーフローしたときは拍オーバーである。ステップ 2
33で拍オーバーと判定されると、次にステップ 234でタ
イミングカウンタTIMINGを歩進する。小節オーバ
ーのときは必らず拍オーバーであり、拍オーバーは小節
オーバーでもある可能性があるから、次にステップ 235
でステップ 233の拍オーバーは小節オーバーが否かをタ
イミングカウンタの内容TIMINGが最大タイミング
数TMPMAXに達したか否かで判定する。小節オーバ
ーであれば、ステップ 236で表、裏の拍エンドフラグR
HHEND 1および 2をリセットし、ステップ 237でタ
イミングカウンタTIMINGおよびテンポカウンタT
MPCNTをリセットし、さらにステップ238 で拍・小
節アップフラグRDISPFをディクリメントして内容
を小節アップを示す$FFにした(ディクリメントする
前はステップ 231でクリアされている)後、第9図のス
テップ 290に戻る。また拍オーバーではあるが、小節オ
ーバーでないときはステップ 240および 241で表拍エン
ドフラグRHHEND1 をリセットし、ステップ 242お
よび 243で裏拍エンドフラグRHHEND2 をリセット
し、ステップ 244で拍内タイミングカウンタTMPCN
Tをリセットし、ステップ 245で拍・小節アップフラグ
RDISPFをインクリメントして拍アップを示す$01
にセットした後、第9図のステップ 290に戻る。
Referring to FIG. 10, in steps 230 and 231, the beat measure up flag is reset, in step 232, the tempo counter TMPCNT is incremented, and in step 233, it is determined from the contents TMPCNT of the tempo counter whether the beat is over. Since there are 12 timings within one beat, 0 to 11, there are overbeats when the timing TMPCNT indicated by the tempo counter overflows. Step two
If it is determined at 33 that the beat is over, then at step 234, the timing counter TIMING is incremented. Since it is always a beat over when the measure is over, and the beat over may be also a measure over, so next step 235
Then, in step 233, the beat over is determined by whether or not the bar over is determined by whether or not the content TIMING of the timing counter reaches the maximum timing number TMPMAX. If the measure is over, in step 236 the front and back beat end flags R
HHEND 1 and 2 are reset, and at step 237, timing counter TIMING and tempo counter T
After resetting MPCNT and further decrementing the beat / measure up flag RDISPF in step 238 to set the contents to $ FF indicating the measure up (cleared in step 231 before decrementing), as shown in FIG. Return to step 290. If the beat is over but the measure is not over, the front beat end flag RHHEND1 is reset in steps 240 and 241, the back beat end flag RHHEND2 is reset in steps 242 and 243, and the in-beat timing counter TMPCN is reset in step 244.
T is reset, and in step 245, the beat / measure up flag RDISPF is incremented to indicate beat up $ 01.
Then, the process returns to step 290 in FIG.

ステップ 233の判定が拍オーバーでないときは、ステッ
プ246 でタイミングカウンタTIMINGをインクリメ
ントした後、第9図のステップ 290に戻る。
If the determination in step 233 is not overbeat, the timing counter TIMING is incremented in step 246, and then the process returns to step 290 in FIG.

ステップ 212の判定でイントロ開始またはイントロ中で
あればステップ 250で表パターンメモリ先頭アドレスレ
ジスタRHYROM1 の内容とイントロパターンメモリ
先頭アドレスレジスタINTROMの内容とを交換し、
ステップ 251で表ポインタRHYPNT1 の内容とイン
トロポインタINPNTの内容とを交換し、さらにステ
ップ 252で表拍エンドフラグRHHEND1 の内容とイ
ントロ拍エンドフラグINHENDの内容とを交換し、
イントロパターンの先頭アドレス、ポインタおよび拍エ
ンドフラグを表パターンにセットした後、前述のデータ
出力サブルーチンRHYCNV400 (第12図)を実行
してリズムパターンメモリ34のイントロパターンデータ
を読み出すとともにリズムインターフェース41(第4
図)に出力する。続いてステップ 255〜 257でイントロ
パターンを裏パターンに、かつノーマルパターンを表パ
ターンに入れ替えてステップ 212以前の状態に戻した
後、ステップ 258で前述のデータ出力サブルーチンRH
YCNV400 で読み出したイントロパターンデータをリ
ズム音発生回路70に転送する。続くステップ 259および
260では拍・小節アップフラグRDISPFをリセット
し、ステップ 261で拍内タイミングカウンタTMPCN
Tを歩進してステップ 262で拍内タイミングカウンタT
MPCNTの内容から拍オーバーか否かを判定する。拍
オーバーであれば、ステップ 263でタイミングカウンタ
TIMINGを歩進し、ステップ 264でタイミングカウ
ンタの内容TIMINGを検査する。TIMINGが最
大タイミング数TMPMAXに達していれば小節オーバ
ーであるからステップ 265でイントロ拍エンドフラグI
NHENDを検査する。INHEND=$OFすなわち
イントロパターンが終了していればステップ 266でイン
トロオンフラグINTONをリセットし、ステップ 267
で表および裏パターン先頭アドレスRHYROM1 およ
び 2でそれぞれノーマルおよびブレークパターン発生用
のインストラメントグループナンバIGNを読み出しパ
ネルデータインターフェース42(第1図)からシリアル
データPANCDDとしてリズム音発生回路70に送出し
た後、またステップ 265でINHEND≠$OFでイン
トロパターンが未だ終了していないときはステップ 266
および 267をスキップしてステップ 268でイントロ拍エ
ンドフラグINHENDをリセットし、ステップ268 に
ジャンプする。ステップ 237および 238では前述のよう
に小節内タイミングカウンタTIMINGおよび拍内タ
イミングカウンタTMPCNTをクリアし、かつ拍・小
節アップフラグRDISPFをディクリメントして$F
Fにセットした後、ステップ 290(第9図)に戻る。ス
テップ 264で拍オーバーではあるが小節オーバーでない
ときはステップ 270に進み、ステップ270 および 271で
イントロ拍エンドフラグINHENDをクリアしてステ
ップ244 にジャンプする。ステップ 244では拍内タイミ
ングカウンタTMPCNTをリセットし、ステップ 245
で拍・小節アップフラグRDISPFをインクリメント
して$01にセットした後、ステップ 290(第9図)に戻
る。ステップ 262で拍オーバーでないときはステップ 2
64にジャンプし、小節内タイミングカウンタTIMIN
Gを歩進した後ステップ 290(第9図)に戻る。
If it is determined in step 212 that the intro is started or during the intro, in step 250 the contents of the table pattern memory start address register RHYROM1 and the contents of the intro pattern memory start address register INTROM are exchanged,
In step 251, the contents of the table pointer RHYPNT1 and the intro pointer INPNT are exchanged, and in step 252, the contents of the front beat end flag RHHEND1 and the contents of the intro beat end flag INHEND are exchanged,
After setting the start address, pointer and beat end flag of the intro pattern to the table pattern, the above-mentioned data output subroutine RHYCNV400 (FIG. 12) is executed to read the intro pattern data of the rhythm pattern memory 34 and the rhythm interface 41 (first Four
Output). Subsequently, in steps 255 to 257, the intro pattern is replaced with the back pattern and the normal pattern is replaced with the front pattern to restore the state before step 212, and then in step 258, the above-mentioned data output subroutine RH is executed.
The intro pattern data read by the YCNV400 is transferred to the rhythm sound generating circuit 70. Following steps 259 and
In 260, the beat / measure up flag RDISPF is reset, and in step 261, the intra-beat timing counter TMPCN is reset.
Increment T, and in step 262, in-beat timing counter T
It is determined from the contents of MPCNT whether the beat is over. If the beat is over, the timing counter TIMING is incremented in step 263, and the content TIMING of the timing counter is checked in step 264. If TIMING has reached the maximum timing number TMPMAX, it means that the bar is over, so in step 265, the intro beat end flag I
Check NHEND. INHEND = $ OF, that is, if the intro pattern is completed, the intro-on flag INTON is reset in step 266, and step 267
After reading out the instruction group numbers IGN for generating normal and break patterns at the front and back pattern start addresses RHYROM1 and 2, respectively, and sending them from the panel data interface 42 (FIG. 1) to the rhythm sound generating circuit 70 as serial data PANCDD, If INHEND ≠ $ OF in step 265 and the intro pattern is not completed yet, step 266
And 267 are skipped, the intro beat end flag INHEND is reset in step 268, and the routine jumps to step 268. In steps 237 and 238, as described above, the intra-measure timing counter TIMING and the intra-beat timing counter TMPCNT are cleared, and the beat / measure up flag RDISPPF is decremented to $ F.
After setting to F, return to step 290 (Fig. 9). If the beat is over at step 264 but not over the measure, the routine proceeds to step 270, where the intro beat end flag INHEND is cleared at steps 270 and 271 and the routine jumps to step 244. In step 244, the in-beat timing counter TMPCNT is reset, and in step 245
The beat / measure up flag RDISPF is incremented and set to $ 01, and the process returns to step 290 (FIG. 9). If it is not overbeat in step 262, step 2
Jump to 64 and start timing bar TIMIN
After stepping through G, return to step 290 (Fig. 9).

第9図を参照して、リズム音発生データ出力処理RHI
RQ(第10図)のステップ 211、 238、 245および 2
46からリターンした後、ステップ 290ではこの割込処理
INTRPTを実行するために待避させていたプログラ
ムカウンタおよび各レジスタ等を復帰し、割込前の第6
〜8図の処理に戻る。
Referring to FIG. 9, rhythm sound generation data output processing RHI
Steps 211, 238, 245 and 2 of RQ (Fig. 10)
After returning from 46, in step 290, the program counter and each register, etc., which have been saved to execute the interrupt processing INTRPT, are restored, and the sixth interrupt before interrupt is executed.
~ Return to the process of FIG.

以上のようにこの発明によると、リズムパターンが各リ
ズム音の発音タイミングを示すデータを含みこの発音タ
イミングと現タイミングが一致するかどうかをチェック
しつつ一致した場合にオートリズムの当該データに対す
る発音を行なういわゆるイベント方式のパターンデータ
を用いたオートリズム演奏装置において、ノーマルパタ
ーンおよびブレークパターンとなるバリエーションパタ
ーンをそれぞれ表パターンおよび裏パターンとして常時
併進させ、演奏者によるブレークスイッチの押下によっ
て如何なるタイミングからも発音が遅れることなく直ち
にバリエーションを挿入することができるため、より変
化に富んだオートリズムを発生させることができる。
As described above, according to the present invention, the rhythm pattern includes data indicating the sounding timing of each rhythm sound, and if the sounding timing and the current timing are checked while checking whether or not they match, the pronunciation of the data of the autorhythm is generated. In an automatic rhythm playing device that uses so-called event-based pattern data, normal patterns and variation patterns that are break patterns are always translated as front and back patterns, respectively, and sound is generated at any timing by the player pressing the break switch. Since variations can be inserted immediately without delay, a more varied autorhythm can be generated.

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

第1図は、この発明の1実施例に係る電子楽器のブロッ
ク構成図、 第2図は、第1図の楽器のパネルのリズム部における各
操作子の配置図、 第3図は、第1図の楽器のリズムパターンメモリに格納
されたデータ構成図、 第4図は、第1図の楽器のリズムインターフェースの詳
細ブロック図、 第5図は、第1図の楽器のリズム音発生回路の詳細ブロ
ック図、 第6図は、第1図の電子楽器の動作を説明するためのフ
ローチャート、 第7図は、リズムセット処理のサブルーチンを示すフロ
ーチャート、 第8図は、イントロ処理のサブルーチンを示すフローチ
ャート、 第9図は、割込処理を示すフローチャート、 第10図(a )および(b )は、リズム音発生データ出
力処理のサブルーチンを示すフローチャート、 第11図は、ノーマル・ブレーク交換処理のサブルーチ
ンを示すフローチャート、 第12図は、データ出力処理のサブルーチンを示すフロ
ーチャート、 第13図は、裏パターン進行処理のサブルーチンを示す
フローチャートである。 21……ブレークスイッチ、 23……オートブレークスイッチ、 25……リズム選択スイッチ、 31:CPU、 33……ワーキングメモリ、 34……リズムパターンメモリ、 70……リズム音発生回路。
FIG. 1 is a block diagram of an electronic musical instrument according to an embodiment of the present invention, FIG. 2 is a layout diagram of respective operators in a rhythm section of a panel of the musical instrument of FIG. 1, and FIG. FIG. 4 is a block diagram of the data stored in the rhythm pattern memory of the musical instrument shown in FIG. 4, FIG. 4 is a detailed block diagram of the rhythm interface of the musical instrument shown in FIG. 1, and FIG. 5 is a detail of the rhythm sound generation circuit of the musical instrument shown in FIG. Block diagram, FIG. 6 is a flow chart for explaining the operation of the electronic musical instrument of FIG. 1, FIG. 7 is a flow chart showing a subroutine of rhythm set processing, FIG. 8 is a flow chart showing a subroutine of intro processing, FIG. 9 is a flowchart showing an interrupt process, FIGS. 10 (a) and (b) are a flowchart showing a subroutine of a rhythm sound generation data output process, and FIG. 11 is a normal blur. Flowchart illustrating a subroutine of click exchange, FIG. 12 is a flowchart showing a subroutine of the data output processing, Fig. 13 is a flowchart showing a subroutine of the back pattern development processing. 21 ... Break switch, 23 ... Auto break switch, 25 ... Rhythm selection switch, 31: CPU, 33 ... Working memory, 34 ... Rhythm pattern memory, 70 ... Rhythm sound generation circuit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】各リズム音の発音タイミングを示すタイミ
ングデータと、該タイミングに発生すべきリズム音を示
す楽音データからなる演奏データを複数組み合わせて構
成されるリズムパターンの該発音タイミングデータと現
在の演奏タイミングとが一致するかどうかをチェック
し、一致した場合に該楽音データに基づいた発音を行う
イベント方式のオートリズム演奏装置において、 テンポに応じた所定周期の信号を発生する周期信号発生
手段と、 それぞれ各リズム音についてその発音タイミングを示す
タイミングデータと、該タイミングに発生すべきリズム
音を示す楽音データからなる演奏データを含む第1パタ
ーンおよび第2パターンの少なくとも2種類のリズムパ
ターンが格納されたパターンメモリと、 所定周期の信号に基づいて現在のリズム演奏タイミング
を管理するタイミング管理手段と、 この第1パターンおよび第2パターンの一方のリズムパ
ターンの中から前記タイミング管理手段によって示され
る現在のリズム演奏タイミングに対応する前記演奏デー
タを検出する第1の検出手段であって、リズムパターン
中における現在の読出しアドレスを示す第1のアドレス
指定手段を有し、前記検出がなされたときに読出しアド
レスを更新するものと、 この第1パターンおよび第2パターンの他方のリズムパ
ターンの中から前記タイミング管理手段によって示され
る現在のリズム演奏タイミングに対応する前記演奏デー
タを検出する第2の検出手段であって、リズムパターン
中における現在の読出しアドレスを示す第2のアドレス
指定手段を有し、前記検出がなされたときに読出しアド
レスを更新するものと、 前記第1パターンと第2パターンのどちらを出力すべき
かをリズム演奏の任意のタイミングで選択指定する手段
と、 前記選択指定手段により指定されたリズムパターンの楽
音データを前記第1または第2の検出手段の検出結果に
基づき出力する読出手段と、 この読出手段の出力するリズムパターンに従ってリズム
音を形成するリズム音源と を具備したことを特徴とするオートリズム演奏装置。
1. The sounding timing data of a rhythm pattern formed by combining a plurality of performance data composed of timing data indicating the sounding timing of each rhythm sound and musical sound data indicating the rhythm sound to be generated at the timing and the current sounding timing data. In the event type auto rhythm playing device that checks whether the playing timings match and if they match, a periodic signal generating means for generating a signal of a predetermined period according to the tempo At least two types of rhythm patterns are stored for each rhythm sound, including timing data indicating the sounding timing and performance data composed of musical sound data indicating the rhythm sound to be generated at the timing. Pattern memory and the current signal based on a predetermined cycle Timing management means for managing the rhythm performance timing, and first performance data for detecting the performance data corresponding to the current rhythm performance timing indicated by the timing management means from one of the first and second rhythm patterns. And a first address designating means for indicating a current read address in the rhythm pattern, the read address being updated when the detection is made, and the first pattern and the second pattern. Second detecting means for detecting the performance data corresponding to the current rhythm performance timing indicated by the timing managing means from the other rhythm pattern of the second rhythm pattern, the second detecting means indicating a current read address in the rhythm pattern. When the detection is made, The unit for updating the read address, the unit for selectively designating which of the first pattern and the second pattern should be output at an arbitrary timing of the rhythm performance, and the tone data of the rhythm pattern designated by the selection designating unit. An automatic rhythm playing apparatus comprising: a reading unit that outputs based on a detection result of the first or second detecting unit; and a rhythm sound source that forms a rhythm sound according to a rhythm pattern output by the reading unit.
JP57111455A 1982-06-30 1982-06-30 Autorhythm playing device Expired - Lifetime JPH0652473B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57111455A JPH0652473B2 (en) 1982-06-30 1982-06-30 Autorhythm playing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57111455A JPH0652473B2 (en) 1982-06-30 1982-06-30 Autorhythm playing device

Publications (2)

Publication Number Publication Date
JPS593483A JPS593483A (en) 1984-01-10
JPH0652473B2 true JPH0652473B2 (en) 1994-07-06

Family

ID=14561656

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57111455A Expired - Lifetime JPH0652473B2 (en) 1982-06-30 1982-06-30 Autorhythm playing device

Country Status (1)

Country Link
JP (1) JPH0652473B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2848322B2 (en) * 1996-03-11 1999-01-20 ヤマハ株式会社 Automatic accompaniment device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6021400B2 (en) * 1978-10-19 1985-05-27 株式会社河合楽器製作所 electronic musical instruments

Also Published As

Publication number Publication date
JPS593483A (en) 1984-01-10

Similar Documents

Publication Publication Date Title
US5119710A (en) Musical tone generator
JPH0634169B2 (en) Electronic musical instrument with pronunciation assignment function
US4467690A (en) Automatic rhythm performance device
JPH079586B2 (en) Automatic musical instrument accompaniment device
JPH0584920B2 (en)
JPH0654434B2 (en) Automatic rhythm playing device
US5502275A (en) Automatic accompaniment apparatus implementing smooth transition to fill-in performance
US4905561A (en) Automatic accompanying apparatus for an electronic musical instrument
JPH0652473B2 (en) Autorhythm playing device
US4619176A (en) Automatic accompaniment apparatus for electronic musical instrument
US6777606B2 (en) Automatic accompanying apparatus of electronic musical instrument
KR930007833B1 (en) Electronic musical instrument
US5125314A (en) An electronic musical instrument having switches for designating musical tone control data
US5300726A (en) Electronic rhythm instrument with tone pitch and tone volume control
JPS593484A (en) Automatic rhythm performer
US4920849A (en) Automatic performance apparatus for an electronic musical instrument
JPS59131993A (en) Electronic musical instrument
JP2701177B2 (en) Tone generator
JP2869970B2 (en) Automatic rhythm playing device and method
JPH0153799B2 (en)
JPS593486A (en) Automatic rhythm performer
JPH055357B2 (en)
JP2002215147A (en) Automatic accompaniment apparatus and automatic accompaniment method for electronic musical instrument
JP3097382B2 (en) Chord detector
JP2619237B2 (en) Automatic accompaniment device for electronic musical instruments