JPH01262594A - Automatic musical performance device - Google Patents

Automatic musical performance device

Info

Publication number
JPH01262594A
JPH01262594A JP63092313A JP9231388A JPH01262594A JP H01262594 A JPH01262594 A JP H01262594A JP 63092313 A JP63092313 A JP 63092313A JP 9231388 A JP9231388 A JP 9231388A JP H01262594 A JPH01262594 A JP H01262594A
Authority
JP
Japan
Prior art keywords
data
performance
key
rhythm
bank
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.)
Granted
Application number
JP63092313A
Other languages
Japanese (ja)
Other versions
JP2643277B2 (en
Inventor
Junichi Mishima
順一 三島
Jun Sugiyama
純 杉山
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 JP63092313A priority Critical patent/JP2643277B2/en
Publication of JPH01262594A publication Critical patent/JPH01262594A/en
Application granted granted Critical
Publication of JP2643277B2 publication Critical patent/JP2643277B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

PURPOSE:To exactly and quickly search musical performance data of a desired part by providing a skip control means for updating an access address of a musical performance data memory by a prescribed section portion in accordance with an operation of an operating piece. CONSTITUTION:The title device is provided with operating pieces SW1-SW3 and a skip control means 70 for updating an access address of a musical performance data memory 62 by a prescribed section portion in accordance with an operation of this operating piece. In this state, in the course of an automatic musical performance, in case when a bank switch SWi of the case being different from a bank which is being used for a musical performance at that time point has been depressed, the automatic musical performance is executed from the head address of data in the bank which has been depressed newly, and in case when the bank switch SWi of the same number as that of the bank being in the course of the automatic musical performance has been depressed, a skip processing is executed. In such a way, a desired part of the musical performance data can be searched quickly.

Description

【発明の詳細な説明】 「産業上の利用分野」 この発明は、演奏データメモリに記憶されている演奏デ
ータに基づき楽音を発生する自動演奏装置に係り、特に
所望とする演奏データを早期にサーチする機能を備えた
自動演奏装置に関する。
Detailed Description of the Invention: "Industrial Application Field" The present invention relates to an automatic performance device that generates musical tones based on performance data stored in a performance data memory, and particularly relates to an automatic performance device that can quickly search for desired performance data. The present invention relates to an automatic performance device that has the function of

「従来の技術」 楽曲の進行にしたがった鍵盤演奏に関する演奏データを
演奏データメモリに記憶しておき、かつ、該記憶した演
奏データを順次読出して自動演奏を行う自動演奏装置が
開発されている。
``Prior Art'' An automatic performance device has been developed that stores performance data related to keyboard performance in accordance with the progression of a piece of music in a performance data memory, and sequentially reads out the stored performance data for automatic performance.

この種の自動演奏装置においては、記憶時の演奏にミス
プレイがあった場合など、記憶した演奏データの一部を
書き直す必要が生じる場合がある。
In this type of automatic performance device, it may be necessary to rewrite part of the stored performance data, such as when there is a misplay in the performance at the time of storage.

また、記憶した演奏データの一部のみを聞きたい場合ら
ある。これらの場合にあっては、当該演奏部分のデータ
を素早くサーチして涜出すことが必要である。
Furthermore, there may be cases in which the player wishes to listen to only part of the stored performance data. In these cases, it is necessary to quickly search and extract the data of the relevant performance part.

この要求のために従来開発されたしのには、例えば、特
開昭62−175796号に記載される装置がある。こ
の装置においては、演奏データを記憶したメモリの続出
方向と続出速度を制御することにより、所望の演奏デー
タのサーチを行っていた。具体的にはメモリ読出し用の
アドレスカウンタに供給するクロツクの速度を速くする
ことによりサーチ処理を行、っていた。
A device that has been developed to meet this requirement is, for example, a device described in Japanese Patent Application Laid-Open No. 175796/1983. In this device, desired performance data is searched for by controlling the direction and speed of successive output of the memory in which the performance data is stored. Specifically, the search process was performed by increasing the speed of the clock supplied to the memory read address counter.

また、曲の特定部分を読出す自動演奏装置としては、例
えば特公昭6O−2579J号に記載された装置がある
。この装置は、特定部分のアドレスを記憶するレジスタ
を設け、前記特定部分を読出ずときは前記レジスタ内の
アドレス値に基づいて読出し処理を行っていた。
Further, as an automatic performance device for reading a specific part of a piece of music, there is, for example, a device described in Japanese Patent Publication No. 6O-2579J. This device is provided with a register that stores the address of a specific portion, and when the specific portion is not read out, read processing is performed based on the address value in the register.

「発明が解決しようとする課題J しかしながら、上述したクロック信号を高速にしてデー
タサーチをする自動演奏装置にあっては、サーチか曲の
どの部分に達しているかの判断が困難であり、所望部分
を的確に素早くサーチすることが短しかった。また、特
定部分のアドレスを記憶するタイプのものにあっては、
当然にそれ以外の部分を任意に読出すということは不可
能であった。
``Problems to be Solved by the InventionJ'' However, in the automatic performance device that performs a data search by using a high-speed clock signal as described above, it is difficult to determine which part of the song has been reached, and it is difficult to find the desired part of the song. It was short to search accurately and quickly.Also, for the type that memorizes the address of a specific part,
Naturally, it was impossible to arbitrarily read out other parts.

この発明は、上述した事情に鑑みてなされたもので、所
望とする部分の演奏データを的確に素早くサーチするこ
とができる自動演奏装置を提供することを目的としてい
る。
The present invention has been made in view of the above-mentioned circumstances, and it is an object of the present invention to provide an automatic performance device that can accurately and quickly search for a desired portion of performance data.

「課題を解決するための手段」 この発明は、上記課題を解決するために、演奏データメ
モリ内の演奏データを順次続出して自動演奏を行う自動
演奏装置において、操作子と、この操作子の操作に対応
して前記演奏データメモリのアクセス番地を所定区間分
更新するスキップ制御手段を具備している。
``Means for Solving the Problems'' In order to solve the above problems, the present invention provides an automatic performance device that sequentially outputs performance data in a performance data memory to perform an automatic performance. A skip control means is provided for updating the access address of the performance data memory by a predetermined section in response to an operation.

「作用 」 操作子が操作されると、演奏データメモリのアクセス番
地が所定区間毎に更新され、演奏データのスキブプサー
ヂが行われる。この場合において、操作者はサーチが所
定区間毎にスキップして行イっれるので、どの部分をサ
ーチしているかを認識しつつ操作することができる。
``Function'' When the operator is operated, the access address of the performance data memory is updated every predetermined interval, and the performance data is skimmed. In this case, since the search is performed by skipping every predetermined section, the operator can perform the operation while recognizing which part is being searched.

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

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

図において、10は複数の鍵によって構成されている鍵
盤であり、h鍵の押鍵、離鍵は鍵スィッチ回路10aに
よって検出されろようになっている。20は種々の操作
を行うための各種操作子が配されている操作パネルであ
り、第2図にその外観を示す。図において、21a、2
1bは、各々オートリズムのスタートおよびスットブを
指示するリズムスタート操作子である。22.22・・
・・・・はマーチ、ワルツ等のリズム種類を選択するリ
ズム選択操作子であり、23a、23bは各々オートリ
ズムのテンポのアップおよびダウンを指示するアップ操
作子およびダウン操作子である。24aは自動演奏デー
タの記録開始を指示する自動演奏書込操作子であり、2
4bは記憶した自動演奏データによる演奏を指示する自
動演奏続出操作子である。27a 、27a・・・・・
・は楽音の音色を指示する音色操作子であり、27b 
、27b・・・・・・は各種の効果付与の指示を行う効
果操作子である。28は操作情況等を表示する表示器で
ある。SWt。
In the figure, reference numeral 10 denotes a keyboard composed of a plurality of keys, and key presses and release of the h key are detected by a key switch circuit 10a. Reference numeral 20 denotes an operation panel on which various operators for performing various operations are arranged, and its appearance is shown in FIG. In the figure, 21a, 2
Reference numeral 1b denotes a rhythm start operator for instructing the start and stop of the autorhythm, respectively. 22.22...
. . . are rhythm selection operators for selecting the type of rhythm such as march, waltz, etc., and 23a and 23b are up and down operators for instructing to increase and decrease the tempo of the autorhythm, respectively. 24a is an automatic performance writing operator for instructing the start of recording automatic performance data;
Reference numeral 4b denotes an automatic performance successive operator for instructing a performance based on stored automatic performance data. 27a, 27a...
・ is a timbre operator that instructs the timbre of a musical tone, and 27b
, 27b, . . . are effect operators for giving instructions for imparting various effects. Reference numeral 28 is a display device for displaying operation status and the like. SWt.

SW2.SW3は、各々演奏データメモリ62内のバン
クを指定するバンクスイッチである。この実施例におい
ては、演奏データがバンク毎に記憶されるようになって
おり、データ記憶時および続出時においては、バンクス
イッチS W 1− S W 3を用いて所望のバンク
を選択する。上記各操作子のオン/オフはスイッチ回路
20aによって検出されるようになっており、また、表
示器28への表示制御は表示制御回路20bによって行
われろようになっている。
SW2. SW3 is a bank switch for specifying a bank in the performance data memory 62, respectively. In this embodiment, performance data is stored in banks, and when storing data and when storing data, a desired bank is selected using bank switches SW1-SW3. The on/off state of each of the above-mentioned operators is detected by a switch circuit 20a, and display control on the display 28 is performed by a display control circuit 20b.

次に、60はデータ記憶回路であり、ROh・1で構成
されたリズムパターンメモリ61、RA〜1で構成され
た演奏データメモリ62およびR/’11 Mで構成さ
れたバッファレジスタ63から構成されている。リズム
パターンメモリ61には、打楽器音によるリズムパター
ンがリズム種類毎に!または2小節長に渡って記憶され
ている。
Next, 60 is a data storage circuit, which is composed of a rhythm pattern memory 61 made up of ROh.1, a performance data memory 62 made up of RA~1, and a buffer register 63 made up of R/'11M. ing. The rhythm pattern memory 61 has rhythm patterns based on percussion instrument sounds for each rhythm type! Or, it is memorized over a length of two measures.

演奏データメモリ62には、第3図(イ)〜(へ)に示
すフォーマットにより種々の自動演奏用データが記憶さ
れている。第3図(イ)〜(へ)に示すデータは各々8
ビツトのデータであり、以下の内容となっている。
The performance data memory 62 stores various automatic performance data in the format shown in FIGS. The data shown in Figure 3 (a) to (f) are each 8
This is bit data and has the following contents.

■第3図(イ)に示すデータは、タイミングデータであ
り、小節の開始タイミングからの経過時11■を示すデ
ータ’rrMoと識別マークとから411 Kされてい
る。
(2) The data shown in FIG. 3 (A) is timing data, which is 411K separated from the data 'rrMo indicating the elapsed time 11 (11) from the start timing of the bar and the identification mark.

■第3図(ロ)に示すデータは、押鍵データであり、押
鍵された鍵を示すキーコード■(Cと、イニシャルタッ
チを示すイニシャルタッチデータKTDと、識別マーク
とから構成されている。
■The data shown in FIG. 3 (b) is key press data, which is composed of a key code (C) indicating the pressed key, initial touch data KTD indicating the initial touch, and an identification mark. .

■第3図(ハ)に示すデータは、離鍵された鍵を示すキ
ーコードKCと識別マークとから構成されている。
(2) The data shown in FIG. 3(c) consists of a key code KC indicating the released key and an identification mark.

■第3図(ニ)に示すデータは、音色操作子27aによ
り指定された音色を示す音色データ、効果操作子27b
により指定された効果種類を示す効果データおよび識別
マークとから構成されている。
■The data shown in FIG. 3(d) is tone data indicating the tone specified by the tone color operator 27a, and effect operator 27b.
It consists of effect data indicating the type of effect specified by and an identification mark.

■第3図(ホ)に示すデータは、小節コードであり、小
節線のタイミングであることを示すデータと識別マーク
から構成されている。
(2) The data shown in FIG. 3 (E) is a measure code, and is composed of data indicating the timing of a measure line and an identification mark.

■第3図(へ)に示すデータは、終了コードであり、自
動演奏の終了タイミングであることを示すデータである
(2) The data shown in FIG. 3 (f) is an end code, and is data indicating that it is the end timing of automatic performance.

次に、バッファレジスタ63は、イベントデータを記憶
するレジスタである。イベントデータとは、キー(鍵)
および操作パネル20の谷操作Pの操作状態に変化があ
ったことを示すデータであり、キーや操作子がオンから
オフへ変化するオフイベントと、キーや操作子がオフか
らオンへ変化するオンイベントとかある。
Next, the buffer register 63 is a register that stores event data. Event data is a key
and data indicating that there has been a change in the operating state of the valley operation P on the operation panel 20, including an off event in which a key or control changes from on to off, and an on event in which a key or control changes from off to on. There are events.

リズム音信号発生回路51はシンバル、バスドラム等の
各種打楽器に対応した打楽器音信号を形成するしので、
マイクロコンピュータ70からバス30を介して供給さ
れるリズムパターンデータに応じて前記打楽器音信号を
形成出力する。鍵盤用楽音信号発生回路52及び自動演
奏用楽音信号発生回路53は各々ピアノ、バイオリン等
の楽器に対応した楽音信号を形成する複数の楽音信号形
成チャンネルを備えており、鍵盤用楽音信号発生回路5
2は鍵盤IOにおける押離鍵、音色操作子27aの操作
及び効果操作子27bの操作に応じて、マイクロコンピ
ュータ70からバス30を介してfA給される演奏デー
タに猜つく楽音信号を形成出力する。また、自動演奏用
楽音信号発生回路53はデータ記憶回路60に記憶され
ていて、マイクロコンピュータ70により読出され、バ
ス30を介して供給される自動演奏データに基づく楽音
信号を形成出力する。これらのリズム音信号発生回路5
1、#!盤用楽音信号発生回路52及び自動演奏用楽音
信号発生回路53からの楽音信号は混合されてアンプ5
,1に供給されろようになっている。
The rhythm sound signal generation circuit 51 forms percussion instrument sound signals corresponding to various percussion instruments such as cymbals and bass drums.
The percussion instrument sound signal is formed and output according to rhythm pattern data supplied from the microcomputer 70 via the bus 30. The musical tone signal generation circuit 52 for the keyboard and the musical tone signal generation circuit 53 for automatic performance each include a plurality of musical tone signal forming channels that form musical tone signals corresponding to musical instruments such as pianos and violins.
2 forms and outputs a musical tone signal that is based on the performance data fed from the microcomputer 70 via the bus 30 in accordance with the pressed and released keys on the keyboard IO, the operation of the tone control element 27a, and the operation of the effect control element 27b. . The automatic performance musical tone signal generation circuit 53 is stored in the data storage circuit 60, is read by the microcomputer 70, and forms and outputs a musical tone signal based on automatic performance data supplied via the bus 30. These rhythm sound signal generation circuits 5
1, #! The musical tone signals from the musical tone signal generation circuit 52 for the board and the musical tone signal generation circuit 53 for automatic performance are mixed and sent to the amplifier 5.
, 1.

アンプ54の出力はスピーカ55に接続されており、同
スピーカ55はアンプ54から供給される楽音信号に対
応した楽音を発音する。
The output of the amplifier 54 is connected to a speaker 55, and the speaker 55 produces a musical tone corresponding to the musical tone signal supplied from the amplifier 54.

第1図に示すマイクロコンピュータ70は、バス30に
各々接続されたプログラムメモリ71、CP(J72及
びワーキングメモリ73とからなる。
The microcomputer 70 shown in FIG. 1 consists of a program memory 71, a CP (J72) and a working memory 73, each connected to the bus 30.

プログラムメモリ71はROMで構成され、メインプロ
グラム、リズムインタラブドプログラム及びそれらのサ
ブプログラムを記憶している。CPU72は電源スィッ
チ(図示しない)の投入によりメインプログラムの実行
を開始するとと乙に、テンポ発振器40からのテンポク
ロツタ信号の到来時には前記メインプログラムの実行を
中断してリズムインタラブドプログラムを割込み実行す
る。
The program memory 71 is composed of a ROM, and stores a main program, rhythm interwoven programs, and subprograms thereof. When the CPU 72 starts executing the main program by turning on a power switch (not shown), when the tempo clock signal from the tempo oscillator 40 arrives, the CPU 72 interrupts the execution of the main program and executes the rhythm interwoven program.

ワーキングメモリ73はRAMで構成され、前記プログ
ラムの実行に必要な複数のデータ及びフラグを一時的に
記憶する。これらのデータ及びフラグのうち、主なもの
を列挙すると次の通りである。
The working memory 73 is composed of a RAM, and temporarily stores a plurality of data and flags necessary for executing the program. Among these data and flags, the main ones are listed below.

リズムランフラグRUN・・・オートリズムの動作状態
を表すフラグであり、′I°にて動作中を表し、かつ“
θ″にて停止中を表す。
Rhythm run flag RUN: A flag that indicates the operating state of the autorhythm, indicating that it is operating at 'I°, and
θ″ indicates stopping.

オートプレイライトフラグAPW・・・自動演奏の作動
状態を表すフラグであり、“l”にて自動演奏用データ
を演奏データメモリ62に書込み中(記録モード)であ
ることを表し、かつ“0“にて前′記記録モード中でな
いことを表す。
Auto play write flag APW: This flag represents the operating state of automatic performance, and “l” indicates that automatic performance data is being written to the performance data memory 62 (recording mode), and “0” indicates that the recording mode is not in progress.

オートプレイリードフラグAPR・・・自動演奏の作動
状態を表すフラグであり、1″にて自動演奏用データを
演突データメモリ62から続出し中(再生モード)であ
ることを表し、かつ“0”にて面記再生モート中でない
ことを表す。
Auto play lead flag APR: This is a flag that indicates the operating state of automatic performance, and when it is set to 1'', it indicates that automatic performance data is being continuously read out from the performance data memory 62 (playback mode), and when it is set to 0 ” indicates that the inscription playback mode is not in progress.

シンクロスタートフラグSST・・・演奏データ書込み
時において、演奏音の鍵盤操作とリズム音の同期をとる
ためのフラグ。
Synchro start flag SST: A flag for synchronizing the keyboard operation of the performance sound and the rhythm sound when writing performance data.

テンポカウント’r’ CN T・・・テンポ発振器4
0がテンポクロック信号を発生する毎に[−1」ずつ歩
進するカウント値であって、オートリズムの1小節内に
おける進行位置を示す。
Tempo count 'r' CN T...Tempo oscillator 4
0 is a count value that increments by [-1] each time a tempo clock signal is generated, and indicates the progress position within one measure of the autorhythm.

アドレスADR・・・演奏データメモリ62のアドレス
を表す。
Address ADR: represents the address of the performance data memory 62.

リードデータRDDT・・・演奏データメモリ62から
読出した0動演奏用データを表す。
Read data RDDT...Represents zero movement performance data read from the performance data memory 62.

リードタイミグデータRDTIM・・・演奏データメモ
リ62から読出した自動演奏用データ中、特にタイミン
グデータのみを表す。
Read timing data RDTIM: Out of the automatic performance data read from the performance data memory 62, particularly only the timing data is represented.

バンクデータB A N K・・・メモリ62のバンク
の番号を示すデータ。
Bank data BANK...Data indicating the bank number of the memory 62.

次に、上記のように構成した実施例の動作を、(1)鍵
盤10における押#lI鍵及び操作パネル20の操作に
応じて単に楽音を発生ずる通常演奏モード、<2>#!
盤10における押l!im及び操作パネル20の操作に
基づくデータを自動演奏用データとして演奏データメモ
リ62に吉込む自動演奏記録モード、(3)演奏データ
メモリ62内の自動演奏用データを読出して、該続出し
た自動演奏用データに基づき楽音を発生する自動演奏モ
ードと、(4)自動演奏モードにおいて演奏データを1
小節単位でスキップして読出ずスキップ処理とに分けて
、第4図乃至第11図のフローチャートを参照しながら
説明する。
Next, the operation of the embodiment configured as described above will be described as follows: (1) normal performance mode in which musical tones are simply generated in response to the pressed #lI key on the keyboard 10 and the operation of the operation panel 20; <2>#!
Press l on board 10! (3) an automatic performance recording mode in which data based on the operation of im and the operation panel 20 is stored in the performance data memory 62 as automatic performance data; (3) automatic performance data in the performance data memory 62 is read out and the subsequent automatic performance is (4) Automatic performance mode that generates musical tones based on the performance data.
The process will be explained separately by skipping in units of bars and skipping without reading, with reference to the flowcharts of FIGS. 4 to 11.

(1)通常演奏モード 電源スィッチ(図示しない)が投入されると、CPU7
2は第4図のステップ+00にてメインプログラムの実
行を開始し、ステップ101にてワーキングメモリ73
内の各レジスタをクリアする。
(1) Normal performance mode When the power switch (not shown) is turned on, the CPU 7
2 starts executing the main program at step +00 in FIG.
Clear each register within.

この初期設定後、CPU72はステップ+02にて鍵ス
イツチ回路10a内の各鍵スィッチ及び操作子スイッチ
回路2Oa内の凸操作子スイッチをスキャンすることに
より、鍵盤IOに関する押離鍵情報及び操作パネル20
に関する各操作子の操作情報をバス30を介して読込み
、ステップ103にて該読込んだ押M鍵情報及び操作情
報に基づきワーキングメモリ73との協働により鍵盤l
Oにおける押離鍵イベント又は操作パネル20におけろ
操作イベントのa無を検出する。今、鍵盤IOにおいて
いずれの鍵ら押離鍵されず、かつ操作パネル20におい
ていずれの操作子も操作されなければ、CPU72はス
テップ+03にて「NO」すなわちイベント無しと判定
して、プログラムをステップ102に戻し、ステップ1
02,103からなる循環処理を実行し続ける。
After this initial setting, the CPU 72 scans each key switch in the key switch circuit 10a and the convex operator switch in the operator switch circuit 2Oa in step +02 to obtain pressed/released key information regarding the keyboard IO and the operation panel 20.
The operation information of each operator related to is read via the bus 30, and in step 103, the keyboard l is
The absence of a key press/release event at O or an operation event at the operation panel 20 is detected. Now, if no key is pressed or released on the keyboard IO and no operator is operated on the operation panel 20, the CPU 72 determines "NO" in step +03, that is, there is no event, and steps the program. Return to 102, step 1
The circular process consisting of 02 and 103 continues to be executed.

また、鍵盤lOにおいていずれかの鍵が押M鍵され、又
は操作パネル20においていずれかの操作子が操作され
ると、CPU72は上記ステップ+03にてrY E 
S Jすなわちイベント有りと判定して、該イベントの
種類を判定するステップ104の処理に進める。
Further, when any key is pressed on the keyboard IO or any operator is operated on the operation panel 20, the CPU 72 performs rYE at step +03.
SJ, that is, it is determined that an event has occurred, and the process proceeds to step 104 in which the type of the event is determined.

イベントが鍵盤!Oの各鍵、音色操作子27a又は効果
操作子27bのいずれかについて検出されると、CPU
72はステップ105、すなわち、第5図に詳細に示す
鍵・音色イベントルーチンを実行する。この鍵・音色イ
ベントルーチンにおいては、ステップ200にてその実
行が開始され、ステップ200aにおいてシンクロスタ
ートフラグSTが“1°か否かを判断する。この場合、
判断結果はrNOJとなり、ステップ201へ進む。ス
テップ20+では、イベントのあった鍵及び操作子に関
する全てのイベントデータがバッファレジスタ63に書
込まれる。そして、ステップ202にてこれらの全ての
イベントデータはバス30を介して鍵盤用楽音信号発生
回路52に出力されろ。
Events are the key! When each key of O, tone controller 27a, or effect controller 27b is detected, the CPU
72 executes step 105, the key/timbre event routine shown in detail in FIG. In this key/timbre event routine, its execution is started in step 200, and in step 200a it is determined whether the synchro start flag ST is "1°". In this case,
The determination result is rNOJ, and the process advances to step 201. In step 20+, all event data regarding the key and operator in which the event occurred is written to the buffer register 63. Then, in step 202, all these event data are outputted to the keyboard tone signal generation circuit 52 via the bus 30.

鍵盤用楽音信号発生回路52はこれらのイベントデータ
を取込み記憶すると同時に、該データに基づき楽音信号
の発生を制御する。この場合、該イベントデータが鍵盤
10における押鍵に関するらのであれば、鍵盤用楽音信
号発生回路52は押鍵された鍵に対応した鍵音高周波数
の楽音信号の形成を開始して、該形成した楽音信号をア
ンプ54を介してスピーカ55に供給する。なお、この
場合、前述のイニシャル鍵タツチデータも同時に楽音信
号発生回路52に出力され、同発生回路52にて形成さ
れる楽音信号の音量等を制御するデータとしてIII用
される。その結果、鍵盤IOにて押鍵された鍵に対応し
た鍵音高周波数の楽音がイニシャル鍵タッチに応じた音
1で発音される。また、前記イベントデータが鍵盤10
におけるMm’に関するものであれば、鍵盤用楽音信号
発生回路52は#lI!された鍵に関する楽音信号の出
力を停止する。その結果、鍵盤10にて離鍵された鍵に
関する楽音が発音されなくなる。
The keyboard musical tone signal generation circuit 52 captures and stores these event data, and at the same time controls the generation of musical tone signals based on the data. In this case, if the event data is related to a key depression on the keyboard 10, the keyboard musical tone signal generation circuit 52 starts forming a musical tone signal with a high frequency of the key tone corresponding to the depressed key. The generated musical tone signal is supplied to a speaker 55 via an amplifier 54. In this case, the above-mentioned initial key touch data is also outputted to the musical tone signal generating circuit 52 at the same time, and is used as data for controlling the volume of the musical tone signal generated by the same generating circuit 52. As a result, a musical tone with a high frequency of the key tone corresponding to the key pressed on the keyboard IO is generated at tone 1 corresponding to the initial key touch. In addition, the event data is
If it is related to Mm' in #lI! The output of musical tone signals related to the selected key is stopped. As a result, musical tones associated with keys that are released on the keyboard 10 are no longer produced.

一方、上記のように鍵盤用楽音信号発生回路52に供給
されたイベントデータが音色操作子27aまたは効果操
作子27bに関するしのであれば、同発生回路52は、
該供給されたイベントデータに基づき、操作された操作
子に応じて楽音信号の音色又は楽音信号に対する効果付
与を制御する。
On the other hand, if the event data supplied to the keyboard musical tone signal generation circuit 52 is related to the tone color operator 27a or the effect operator 27b as described above, the same generation circuit 52
Based on the supplied event data, the timbre of the musical tone signal or the effect imparted to the musical tone signal is controlled in accordance with the operated operator.

その結果、発音されろ楽音の音色及び同楽音に対する効
果付与が音色操作子27a及び効果操作子27bの操作
に応じて制御されるようになる。
As a result, the timbre of the musical tone to be sounded and the effect imparted to the musical tone are controlled in accordance with the operations of the tone color operator 27a and the effect operator 27b.

上記ステップ202の処理後、CPU72はステップ2
03にてオートプレイライトフラブA PW力じ1°で
あるか否かを判定する。この場合、当該電子楽器のモー
ドは通fIt!奏モードであって同フラグAPWは“θ
″であるので、ステップ203にてrNOJと判定され
、プログラムはステップ204に進められる。CPU7
2はこのステップ204にてバッファレジスタ63内の
全てのイベントデータをクリアし、ステップ205にて
鍵・音色イベントルーチンの実行を終了して、プログラ
ムを第4図のステップ+02に戻す。
After the processing in step 202, the CPU 72 performs step 2.
At step 03, it is determined whether the autoplay light flub A PW force is 1°. In this case, the mode of the electronic musical instrument is T!It! In performance mode, the flag APW is “θ”.
'', it is determined in step 203 that it is rNOJ, and the program proceeds to step 204.CPU 7
2 clears all event data in the buffer register 63 in step 204, ends the execution of the key/timbre event routine in step 205, and returns the program to step +02 in FIG.

次に、リズム選択操作子22、アップ操作子23a及び
ダウン操作子23bのうちいずれかが操作された場合に
ついて説明する。この場合、CPU72は、ステップ+
03にてrYESJと判定してプログラムをステップ1
04に進め、ステップ104の判定処理によりステップ
106の処理を実行する。このステップ106の処理に
おいては、操作された操作子がリズム選択操作子22に
関するらのであれば、ワーキングメモリ73内のリズム
種類データが、操作された操作子に応じて更新される。
Next, a case where any one of the rhythm selection operator 22, the up operator 23a, and the down operator 23b is operated will be described. In this case, the CPU 72 performs step +
At 03, it is judged as rYESJ and the program goes to step 1.
The process advances to step 04, and the process of step 106 is executed by the determination process of step 104. In the process of step 106, if the operated operator is related to the rhythm selection operator 22, the rhythm type data in the working memory 73 is updated in accordance with the operated operator.

また、アップ操作子23a又はダウン操作子23bが操
作された場合には、ワーキングメモリ73内のテンポデ
ータが、前記操作子23a。
Further, when the up operator 23a or the down operator 23b is operated, the tempo data in the working memory 73 is the same as that of the operator 23a.

23bの操作に応じて更新されると同時に、該更新され
たデータがバス30を介してテンポ発振器40に供給さ
れ、同党12g40から出力されるテンポクロツタ信号
の周期が変化する。このように、リズム選択操作子22
、アップ操作子23a又はダウン操作子23bが操作さ
れた場合には、ステップ106の処理により、リズムl
lI類及びリズムテンポがffi前記操作子22.23
a、23bの操作に応じて指定される。そして、上記ス
テップ106の処理後、CPU72はプログラムを再び
ステップ102に戻し、ステップ102,103からな
る循環処理を続ける。
23b, the updated data is simultaneously supplied to the tempo oscillator 40 via the bus 30, and the period of the tempo clock signal output from the tempo oscillator 40 changes. In this way, the rhythm selection operator 22
, when the up operator 23a or the down operator 23b is operated, the rhythm l is
lI class and rhythm tempo are ffi said operators 22.23
It is specified according to the operations of a and 23b. After the process of step 106, the CPU 72 returns the program to step 102 again and continues the circular process consisting of steps 102 and 103.

また、リズムスタート操作子21aが操作されると、C
PU72はステップ+03にてI”Y E S Jと判
定してプログラムをステップ104に進め、ステップ1
04の判定処理によりステップ107の処理を実行する
。このステップ107の処理においては、リズムランフ
ラグRUNが“I“に設定されるとともに、テンポカウ
ントTCNTが「0」に初期設定される。このステップ
107の処理後、CPU72はステップ102に戻して
、ステップ102.103からなる循環処理を再び実行
し続ける。
Further, when the rhythm start operator 21a is operated, C
The PU72 determines I"Y E S J at step +03, advances the program to step 104, and executes step 1.
The process of step 107 is executed by the determination process of step 04. In the process of step 107, the rhythm run flag RUN is set to "I" and the tempo count TCNT is initialized to "0". After the processing in step 107, the CPU 72 returns to step 102 and continues to execute the circular processing consisting of steps 102 and 103 again.

一方、テンポ発振器40からテンポクロック信号が発生
されると、CPU72は前記プログラムの実行を中断し
て第6図のリズムインタラブドプログラムの実行をステ
ップ900から開始し、ステップ901にてリズムラン
フラグRUNが“l”であるか否かを判定する。この場
合、リズムランフラグRUNは前述のステップ107(
第4図)の処理により“■”に設定されているので、前
記ステップ90にの判定処理においてはrYESJと判
定され、プログラムはステップ902に進められる。
On the other hand, when the tempo clock signal is generated from the tempo oscillator 40, the CPU 72 interrupts the execution of the program and starts executing the rhythm interwoven program shown in FIG. 6 from step 900. It is determined whether or not is "l". In this case, the rhythm run flag RUN is set at step 107 (
Since it is set to "■" by the process in FIG. 4), rYESJ is determined in the determination process at step 90, and the program proceeds to step 902.

CP U 72は、ステップ902にて、リズムパター
ンメモリ6Iを参照し、上述したようにリズム選択操作
子22の操作により設定されたリズム種類データ及び上
記ステップ107(第4図)の処理により「0」に初期
設定されたテンポカウントTCN Tに梧づき同メモリ
61内に記憶されているリズムパターンデータを読出し
て、該続出しデータをバス30を介してリズム音信号発
生回路5Iに出力する。リズム音信号発生回路51は前
記供給されたリズムパターンデータにより指定された打
楽器音信号を形成し、該信号をアンプ54を介してスピ
ーカ55に供給する。その結果、スピーカ55からはリ
ズムパターンデータに従った打楽器音が発音される。
In step 902, the CPU 72 refers to the rhythm pattern memory 6I, and uses the rhythm type data set by the operation of the rhythm selection operator 22 as described above and the rhythm type data "0" by the processing in step 107 (FIG. 4). The rhythm pattern data stored in the memory 61 is read out based on the tempo count TCNT initially set to TCNT, and the successive data is outputted to the rhythm sound signal generation circuit 5I via the bus 30. The rhythm sound signal generation circuit 51 forms a percussion instrument sound signal specified by the supplied rhythm pattern data, and supplies the signal to the speaker 55 via the amplifier 54. As a result, the speaker 55 produces percussion instrument sounds according to the rhythm pattern data.

」1記ステップ902の処理後、CPU72はステップ
903にてオートプレイリードフラグA I)■1が“
1°であるか否かを判定する。かかる場合、当該電子楽
器は通常演奏モードに設定されていてオートプレイリー
ドフラグAPRは“0°であるので、ステップ903に
おいてはrNOJと判定され、プログラムはステップ9
04に進められる。CPtJ72はこのステップ904
にて演算TCNT=TCNT+1の実行によりテンポカ
ウントT CNTを「1」だけ歩進、すなわちrlJに
設定して、ステップ905にて該歩進したテンポカウン
トTCNTが小節のエンド値「48」を示すか否かを判
定する。(なお、この実施例では、1小節を48タイミ
ングに分割している。)今、テンポカウントTCNTは
「0」からrlJに変更された直後であって小節エンド
値「48」を示していないので、前記ステップ905の
判定処理においては1NO」と判定され、プログラムは
ステップ906に進められて、同ステップ906にてリ
ズムインタラブドプログラムの実行が終了される。なお
、上述のようにリズムスタート操作子21aの操作前で
あって、リズムランフラグRUNが“0”に設定されて
いる状轢でも、テンポ発振器40からテンポクロック信
号が発生された場合には、このリズムインクラブドプロ
グラムは実行されるが、かかる場合には上記ステップ9
01にて“0“に設定されているリズムランプラグRU
Nに基づき「NO」と判定されてプログラムは上記ステ
ップ902を経ないで上記ステップ906に進められる
ので、打楽器音が発音されることはない。
” After the processing in step 902, the CPU 72 determines in step 903 that the autoplay read flag A I)■1 is “
Determine whether or not the angle is 1°. In this case, since the electronic musical instrument is set to the normal performance mode and the autoplay lead flag APR is "0°," rNOJ is determined in step 903, and the program proceeds to step 9.
Proceed to 04. CPtJ72 performs this step 904
By executing the calculation TCNT=TCNT+1, the tempo count T CNT is incremented by "1", that is, it is set to rlJ, and in step 905, it is determined whether the incremented tempo count TCNT indicates the end value of the measure "48". Determine whether or not. (In this example, one bar is divided into 48 timings.) Now, the tempo count TCNT has just been changed from "0" to rlJ and does not indicate the bar end value "48". , in the determination process of step 905, the determination is 1NO, and the program proceeds to step 906, where the execution of the rhythm interwoven program is terminated. As described above, even before the rhythm start operator 21a is operated and the rhythm run flag RUN is set to "0", if the tempo clock signal is generated from the tempo oscillator 40, This rhythm included program is executed, but in such a case, step 9 above is performed.
Rhythm run plug RU set to “0” in 01
Since the determination is "NO" based on N, the program skips step 902 and proceeds to step 906, so no percussion instrument sound is produced.

第6図に示すリズムインタラブドプログラムの終了後、
CPU72は上記中断したプログラムの実行に移る。そ
して、テンポ発振器40からテンポクロック信号が発生
される毎に、リズムインクラブドプログラムの上記ステ
ップ900〜906の処理か実行されて、リズムパター
ンデータに基づく打楽器音(リズム音)の自動発音が制
御されるとと乙にテンポカウントTCNTが順次「1」
ずつ歩進される。このような動作中、リズムスタート操
作子21aの操作から1小節に対応した時間が経過する
と、リズムパターンデータメモリ61に記憶されている
1小節分のリズムパターンデータの読出しが終了すると
同時に、テンポカウントTCNTが小節エンドに対応し
た値「48」となる。
After completing the rhythm interwoven program shown in Figure 6,
The CPU 72 moves on to executing the interrupted program. Each time the tempo clock signal is generated from the tempo oscillator 40, the above steps 900 to 906 of the rhythm included program are executed to control the automatic sound generation of percussion instrument sounds (rhythm sounds) based on the rhythm pattern data. When it is done, the tempo count TCNT becomes "1" in order.
Step by step. During such an operation, when the time corresponding to one measure has elapsed since the operation of the rhythm start operator 21a, the reading of the rhythm pattern data for one measure stored in the rhythm pattern data memory 61 is completed, and at the same time, the tempo count is started. TCNT becomes the value "48" corresponding to the bar end.

このとき、CPU72は、上記ステップ905の判定処
理にて、前記テンポカウントTCNTに基づきrYES
コと判定し、頭出しサブルーチン5UBlのステップs
btへ進む。このステップSb+では、頭出しフラグH
E A Dが“1′か否かを判断する。そして、この場
合、判断結果はrNOJであり、したがって、頭出しサ
ブルーチンSUB+を出てステップ907へ進む。ステ
ップ907では、テンポカウンタTCNTをrQJに初
期設定して、プログラムをステップ908に進める。ス
テップ908においては、オートプレイライトフラグA
PW力じI’であるか否かが判定されるが、この場合、
当該電子楽器は通常演奏モードにあって同フラグAPW
は“0”であるので、CPU72は同ステップ908に
てrNOJと判定し、ステップ906にてこのリズムイ
ンクラブドプログラムの実行を終了する。これにより、
オートリズム演奏は再び小節の頭から実行されるように
なる。このようなオートリズム演奏により、演奏者は、
当該モードにおいて、所望の自動リズム演奏ととらに鍵
盤IOにおける演奏を行うことができろ。
At this time, the CPU 72 determines rYES based on the tempo count TCNT in the determination process of step 905.
Step s of cue subroutine 5UBl
Proceed to bt. In this step Sb+, the cueing flag H
It is determined whether E A D is "1" or not. In this case, the determination result is rNOJ, so the process exits the cue subroutine SUB+ and proceeds to step 907. In step 907, the tempo counter TCNT is set to rQJ. Initial settings are made and the program proceeds to step 908.In step 908, the autoplay write flag A is set.
It is determined whether the PW force is I', but in this case,
The electronic musical instrument is in normal performance mode and the same flag APW is displayed.
is "0", the CPU 72 determines rNOJ in step 908, and ends the execution of this rhythm included program in step 906. This results in
Autorhythm performance will begin again from the beginning of the measure. With this kind of autorhythm performance, the performer can
In this mode, it is possible to perform the desired automatic rhythm performance and also perform the performance on the keyboard IO.

かかる自動リズム演奏中、リズムストップ操作子21b
が操作されると、CPU72は、ステップ+03にてr
Y ES Jと判定し、ステップ104の判定処理によ
りプログラムをステップ+08に進め、ステップ+08
にて第7図に詳細に示すリズムストップルーチンを実行
する。このリズムストップルーチンにおいては、ステッ
プ300にてその実行が開始され、ステップ301にて
上述のように°1″に設定されているりズムランフラグ
RU Nに括づきrYEs、Jと判定され、ステップ3
02にて同フラグRU N力じ0“に設定変更される。
During such automatic rhythm performance, the rhythm stop operator 21b
When is operated, the CPU 72 at step +03
It is determined as YES J, and the program advances to step +08 through the determination process in step 104.
At this point, the rhythm stop routine shown in detail in FIG. 7 is executed. In this rhythm stop routine, its execution starts at step 300, and at step 301 it is determined that rYEs, J based on the rhythm run flag RUN set to 1'' as described above, and at step 3
At 02, the setting of the same flag RUN is changed to 0.

これにより、以降、テンポ発振器40からテンポクロッ
ク信号が出力されてリズムインクラブドプログラム(第
6図)が実行されても、上述したように打楽器音は発音
されず自動リズム演奏は停止する。上記ステップ302
の処理後、ステップ303.304にてオートプレイラ
イトフラグAPW及びオートプレイリードフラグAPR
が“1”であるか否かが判定されるが、この場合、当該
電子楽器は通常演奏モードにあって両フラグAPW、A
PRは共に“0”に設定されているので、前記両ステッ
プ303,304にて共にrNOJと判定され、ステッ
プ305にてこのリズムストップルーチンの実行が終了
される。なお、リズムストップ操作子21bが自動リズ
ムの停止中すなわちリズムランフラグRUNが0“であ
るときに操作されても、このリズムストップルーチンは
ステップ300から実行IJn始されるが、この場合、
ステップ301にて[NOコと判定され、ステップ30
5にて同ルーチンの処理が終了されるので、前記リズム
ストップ操作子21bの操作は当該電子楽器の動作に何
ら影響を及は゛さない。
As a result, even if the tempo clock signal is outputted from the tempo oscillator 40 and the rhythm included program (FIG. 6) is executed thereafter, no percussion instrument sound is produced as described above, and the automatic rhythm performance is stopped. Step 302 above
After processing, the auto play write flag APW and auto play read flag APR are set in steps 303 and 304.
is "1", but in this case, the electronic musical instrument is in the normal performance mode and both flags APW and A
Since PR is both set to "0", rNOJ is determined in both steps 303 and 304, and the execution of this rhythm stop routine is ended in step 305. Note that even if the rhythm stop operator 21b is operated while the automatic rhythm is stopped, that is, when the rhythm run flag RUN is 0'', this rhythm stop routine is started from step 300, but in this case,
At step 301, it is determined as NO, and at step 30
Since the processing of the routine ends at step 5, the operation of the rhythm stop operator 21b has no effect on the operation of the electronic musical instrument.

(2)自動演奏記録モード 次に、演奏データを演奏データメモリ62内に方き込む
自動演奏記録モードについて説明する。
(2) Automatic performance recording mode Next, the automatic performance recording mode in which performance data is transferred into the performance data memory 62 will be explained.

演奏データの記録を行う場合、演奏者は、まず、バンク
スイッチSWI〜SW3によってバンク(記憶領域)の
選択を行い、次いで、自動演奏書込み操作子24aを押
し、そして鍵盤IOおよび操作パネル20の各操作子を
使用して演奏を行う。
When recording performance data, the performer first selects a bank (storage area) using the bank switches SWI to SW3, then presses the automatic performance writing operator 24a, and then presses each of the keyboard IO and operation panel 20. Play using the controls.

バンクスイッチSWI〜SW3のいずれかが操作される
と、ステップ103(第4図)の判断結果かrYEsj
となり、ステップ104を介してステップ111へ進み
、バンクスイッチ処理およびスキップ処理が行なわれる
。第10図はこれらの処理を示しており、ステップ35
0でこのバンクスイッチ処理が開始され、ステップ35
1では、オートプレイリードフラグAPRが“1″か否
かが判断される。この場合、判断結果が「NO」となり
、ステップ352へ進む。ステップ352では、バンク
データB A N Kがi(i;操作されたバンクスイ
ッチの番号)に設定され、また、アドレスADr(がr
n i Jに設定される(niはバンクiの先頭アドレ
スである)。すなわち、演奏者がバンクスイッチSW1
を押した場合は、アドレスA D HとしてrnlJが
設定され、バンクスイッチSW2又はSW3を押した場
合はアドレスADHとしてrn2J又は「n3」が設定
されろ。そして、上記のステップ352の処理が終了す
ると、第4図のステップ102へ戻る。
When any of the bank switches SWI to SW3 is operated, the judgment result of step 103 (FIG. 4) or rYEsj
The process then proceeds to step 111 via step 104, where bank switch processing and skip processing are performed. FIG. 10 shows these processes, and step 35
This bank switch processing is started at step 35.
1, it is determined whether the autoplay read flag APR is "1" or not. In this case, the determination result is "NO" and the process advances to step 352. In step 352, the bank data B A N K is set to i (i: the number of the operated bank switch), and the address ADr (is the number of the operated bank switch).
n i J (ni is the start address of bank i). In other words, the performer presses the bank switch SW1.
When is pressed, rnlJ is set as address ADH, and when bank switch SW2 or SW3 is pressed, rn2J or "n3" is set as address ADH. When the processing in step 352 described above is completed, the process returns to step 102 in FIG. 4.

次に、演奏者によって自動演奏書込み操作子24aが押
されろと、ステップ103の判断結果が1−YESJと
なり、ステップ104を介してステップ109のオート
ブレイライトルーチンへ進む。第8図はこのオートプレ
イライトルーチンの流れ図であり、ステップ400でこ
のルーチンが開始され、ステップ402へ進むと、デー
タrlJからオートプレイライトフラグAPWが減算さ
れ、この減算結果がフラグAPWとしてセットされる。
Next, when the player presses the automatic performance writing operator 24a, the determination result in step 103 becomes 1-YESJ, and the process proceeds to step 109, the auto play write routine, via step 104. FIG. 8 is a flowchart of this auto play write routine. This routine is started at step 400, and when the routine proceeds to step 402, the auto play write flag APW is subtracted from the data rlJ, and the result of this subtraction is set as the flag APW. Ru.

すなわち、オートプレイライトフラグAPWが反転され
る。次にステップ403へ進むと、オートプレイライト
フラグAPWが■°か否かが判断される。そして、この
判断結果がrNo、、1の場合は、リターンする。一方
、ステップ403の判断結果がrYESJの場合はステ
ップ405では、オートプレイリードフラグAPRがリ
セットされ、また、シンクロスタートフラグSSTが“
1″にセットされる。そして、ステップ102へ戻る。
That is, the autoplay write flag APW is inverted. Next, in step 403, it is determined whether the auto play write flag APW is ■°. If the result of this judgment is rNo, 1, the process returns. On the other hand, if the determination result in step 403 is rYESJ, in step 405, the auto play read flag APR is reset, and the synchro start flag SST is set to "
1''. Then, the process returns to step 102.

このように、自動演奏書込み操作子24aが押されると
、いままでオートプレイライトフラグAF Wが“l”
(書込み可能状態)であった場合は、同フラグA P 
Wがリセットされ、書込み可能状態が終了する。一方、
いままでフラグAPWが“0”であった場合は、ステッ
プ405の各セットが行なわれ、庁込み可能状@となる
In this way, when the automatic performance write operator 24a is pressed, the automatic play write flag AF W is set to "l".
(Writable state), the same flag A P
W is reset and the writable state ends. on the other hand,
If the flag APW has been "0" so far, each set in step 405 is performed, and the state becomes available for office access.

次に、上述したフラグAPWが“l“の状態において、
演奏音が鍵盤IOおよび操作パネル2oの6操作子を使
用して演奏を行うと、その演奏状態を示す演奏データが
演奏データメモリ62の、バンクスイッチS W I 
−S W 3によって指定したバンクへ逐次3込まれる
Next, in the state where the flag APW mentioned above is "l",
When a performance sound is played using the keyboard IO and the six operators on the operation panel 2o, the performance data indicating the performance state is stored in the bank switch SW I of the performance data memory 62.
- Sequentially 3 is loaded into the specified bank by SW 3.

すなわち、演奏音が鍵盤10のキーを押すと、ステップ
103,104を介して鍵・音色イベントデータン(第
5図)へ進む。このルーチンでは、ステップ200aで
シンクロスタートフラグSS′rが“I゛か否かが判断
される。そして、この場合、判断結果がrY E S 
Jとなることから(第8図のステップ405参照)、ス
テップ200bへ進む。ステップ200bでは、シンク
ロスタートフラグSSTがリセット、リズムランフラグ
RUNがセットされ、また、テンポカウントTCNTが
クリアされる。次に、ステップ201,202の処理が
実行された後、ステップ203へ進み、この場合、ステ
ップ203の判断結果がrY E S Jとなることか
ら、ステップ206〜211からなる演奏データ書込み
ルーチンへ進む。
That is, when the performance sound presses a key on the keyboard 10, the process proceeds to the key/timbre event data (FIG. 5) via steps 103 and 104. In this routine, it is determined in step 200a whether or not the synchro start flag SS'r is "I".In this case, the determination result is rY E S
Since it becomes J (see step 405 in FIG. 8), the process advances to step 200b. At step 200b, the synchro start flag SST is reset, the rhythm run flag RUN is set, and the tempo count TCNT is cleared. Next, after the processes of steps 201 and 202 are executed, the process proceeds to step 203, and in this case, since the determination result of step 203 is rY E S J, the process proceeds to the performance data writing routine consisting of steps 206 to 211. .

この演奏データ言逃みルーチンにおいては、最初、ステ
ップ206にて演奏データメモリ62の記憶位置APM
(ADH)に演奏データとしてタイミングデータが記憶
される。このタイミングデータは、第3図に示すように
、識別マーク及び時間データTMMDからなり、識別マ
ークは該演奏データがタイミングデータであることを示
すコードに設定され、かつ時間データTrMDはテンポ
カウントTCNTが示す値に設定される。これにより、
時間データTIMDは小節の区切りからの時間に対応し
たタイミングを示すことになる。なお、この時点での時
間データTrMDは「0」である。
In this performance data omission routine, first, in step 206, the memory location APM of the performance data memory 62 is
Timing data is stored in (ADH) as performance data. As shown in FIG. 3, this timing data consists of an identification mark and time data TMMD, the identification mark is set to a code indicating that the performance data is timing data, and the time data TrMD is set to a tempo count TCNT. is set to the value shown. This results in
The time data TIMD indicates timing corresponding to the time from the bar break. Note that the time data TrMD at this point is "0".

次に、CPU72は、ステップ207におけるアドレス
歩道処理(ADH=ADl’?+1)後、ステップ20
8にて上記ステップ201の処理によりバッファレジス
タ63に記憶したイベントデータを1つだけ取出して、
該取出したイベントデータを演奏データとして演奏デー
タメモリ62の記憶位置ARM(ADR)に記憶する。
Next, after the address walkway processing (ADH=ADl'?+1) in step 207, the CPU 72 performs step 20
In step 8, only one event data stored in the buffer register 63 through the process of step 201 is retrieved, and
The extracted event data is stored as performance data in the storage location ARM (ADR) of the performance data memory 62.

すなわち、前記取出したイベントデータが鍵盤10にお
ける押鍵に関するものであれば、第3図(ロ)に示すよ
うな押鍵を表す識別マーク、押鍵された鍵を表すキーコ
ードKC及びイニシャル鍵タッチを表す鍵タブチデータ
KTDからなる押鍵データか演奏データとして記(へさ
れる。また、前記取出したイベントデータが鍵盤IOに
おけるM鍵に関するものであれば、第3図(ハ)に示す
ようなMI!を表す識別マーク及び離鍵された鍵を表す
キーコードKCからなる離鍵データが演奏データとして
記憶される。さらに、前記取出したイベントデータが音
色操作子27a又は効果操作子27bに関するらのであ
れば、第3図(ニ)に示すような音色・効果に関するデ
ータであることを示す識別マーク及び音色・効果名を表
す音色・効果名データからなる音色等データが演奏デー
タとして記憶される。
That is, if the retrieved event data relates to a key press on the keyboard 10, an identification mark representing the pressed key, a key code KC representing the pressed key, and an initial key touch as shown in FIG. It is recorded as key press data or performance data consisting of key tab data KTD representing the above.Furthermore, if the extracted event data is related to the M key on the keyboard IO, the event data as shown in FIG. 3(c) is recorded. Key release data consisting of an identification mark representing MI! and a key code KC representing the released key is stored as performance data.Furthermore, since the retrieved event data is related to the tone operator 27a or the effect operator 27b, If so, tone color data consisting of an identification mark indicating that the data is related to tone color/effect and tone color/effect name data representing the name of tone color/effect as shown in FIG. 3(d) is stored as performance data.

上記ステップ208の処理後、CPU72はステップ2
09にて前記演奏データメモリ62に転送記憶したイベ
ントデータをバッファレジスタ63からクリアし、ステ
ップ210にて同レジスタ63内にイベントデータが残
っているか否かを判定する。イベントデータが残ってい
れば前記ステップ2!0にてrY E S Jと判定さ
れ、CPU72は上記ステップ207〜209の処理を
再び実行して演奏データメモリ62の次の記憶位RA 
P M (ADr?+ 1)に上述のようにして演奏デ
ータを記録する。このようなステップ207〜209の
処理によりバッファレジスタ63内のイベントデータが
なくなると、CPU72はステップ210にて「NO」
と判定し、ステップ2+1にてアドレスADHを口」だ
け進歩させて、ステップ205の処理によってこの鍵・
音色イベントルーチンの実行を終了する。その結果、鍵
盤10における押Mta又は音色操作子27a1効果操
作子27bの操作があると、同時に操作された鍵又は操
作子に関する押鍵データ、離鍵データ又は音色等データ
がタイミングデータの後に記憶される。
After the processing in step 208, the CPU 72 performs step 2.
At step 09, the event data transferred and stored in the performance data memory 62 is cleared from the buffer register 63, and at step 210, it is determined whether or not any event data remains in the register 63. If the event data remains, it is determined in step 2!0 that the event data is rY E S J, and the CPU 72 executes the processes in steps 207 to 209 again to move to the next storage location RA in the performance data memory 62.
Performance data is recorded in P M (ADr?+1) as described above. When the event data in the buffer register 63 disappears due to the processing in steps 207 to 209, the CPU 72 returns "NO" in step 210.
It is determined that the key is
Ends execution of the tone event routine. As a result, when there is a press Mta on the keyboard 10 or an operation of the tone operator 27a1 or the effect operator 27b, key press data, key release data, or tone data related to the simultaneously operated keys or operators are stored after the timing data. Ru.

一方、ステップ200bの処理によってリズムランフラ
グRUNが“!”になると、以後、テンポクロツタ信号
が発生する毎に上述したリズムインタラブドプログラム
(第6図)の処理が実行されて、ステップ902の打楽
器音の発音制御によりオートリズム演奏か行われる。ま
た、かかる場合、時間経過に伴いオートリズム演奏の進
行が小節の区切りになると、CIンU 72は、ステッ
プ900〜906からなる処理中のステップ905にて
[YESJと判定し、ステップSblを介してステップ
907へ進み、ステップ907の処理によるテンポカウ
ントTCNTの初期設定後、ステップ908にて“l”
に設定されているオートプレイライトフラグAPWに基
づきrY E S Jと判定し、ステップ909にて演
奏データメモリ62の記憶位置AP〜1(ADH)に小
節コード(第3図参照)を書込み、ステップ910にて
AD11=ADR+ 1の演算の実行によりアドレスA
DHを「1」だけ歩進させて、ステップ906にてリズ
ムインクラブドプログラムの実行を終了する。これによ
り、オートリズム演奏ととらに、同演奏の進行に従って
小節の区切りタイミグ毎に、演奏データメモリ62に小
節線コードが書込まれていく。
On the other hand, when the rhythm run flag RUN becomes "!" through the process of step 200b, the process of the above-mentioned rhythm interwoven program (FIG. 6) is executed every time a tempo clock signal is generated, and the percussion instrument sound of step 902 is executed. Autorhythm performance is performed by controlling the sound produced by . Further, in such a case, when the progress of the autorhythm performance reaches a bar break as time passes, the CI U 72 determines [YESJ] in step 905 of the process consisting of steps 900 to 906, and performs the process via step Sbl. Then, the process proceeds to step 907, and after initializing the tempo count TCNT through the process of step 907, “l” is set in step 908.
It is determined that rY E S J based on the auto play write flag APW set in , and in step 909 a measure code (see FIG. 3) is written in storage locations AP to 1 (ADH) of the performance data memory 62. At 910, the address A is set by executing the operation AD11=ADR+1.
DH is incremented by "1" and the execution of the rhythm included program is ended in step 906. As a result, bar line codes are written into the performance data memory 62 at each bar break timing as the autorhythm performance progresses.

従って、上記の鍵・音色イベントルーヂンのステップ2
06〜210からなる処理及びリズムインタラブドプロ
グラムのステップ908,909の処理により、演奏デ
ータメモリ62内には、鍵盤10、音色操作子27a又
は効果操作子27bに関する演奏データがタイミングデ
ータを先頭に、同時に発生したイベントに関する分まと
めて記憶されるとともに、小節線のタイミング毎に小節
コードが記憶されるようになる。
Therefore, step 2 of the above key/timbre event routine.
Through the processing of steps 06 to 210 and steps 908 and 909 of the rhythm interwoven program, performance data regarding the keyboard 10, tone controller 27a, or effect controller 27b is stored in the performance data memory 62, with timing data at the beginning. Events that occur simultaneously are stored together, and bar codes are stored for each bar line timing.

次に、自動演奏記録モードを終了させるために、リズム
ストップ操作子21bが操作されると、CPU72は、
ステップ+03にて上記場合と同様rYESJと判定し
、ステップ+04の判定処理によりプログラムをステッ
プ+08に進め、ステップ+08にて第7図に示すリズ
ムストップル−チンを実行する。この場合ら、リズムス
トップルーチンの実行がステップ300から開始され、
ステップ301,302の処理によってリズムランフラ
グRU Nが“0°に設定されてオートリズム演奏が停
止制御されるが、この場合におけるオートプレイライト
フラグAPWは“I”に設定されているので、CPU7
2はステップ302の処理後のステップ303の判定処
理においてrYEsJと判定して、ステップ306へ進
む。ステップ306では、メモリ62の記憶位置APM
(ADR)に終Y:J−ドが古き込まれる。次いでステ
ップ307へ進むと、アドレスA I) f?が「0」
とされ、オートプレイライトフラグAPWがリセットさ
れ、書込みモードが終了する。次にステップ304へ進
ムと、オートプレイリードフラグAPRが“1”か否か
が判断され、この場合、判断結果がrNOJであること
から、ステップ305を介してステップI02へ戻る。
Next, when the rhythm stop operator 21b is operated to end the automatic performance recording mode, the CPU 72
At step +03, rYESJ is determined as in the above case, and the program is advanced to step +08 by the determination processing at step +04, and at step +08, the rhythm stop routine shown in FIG. 7 is executed. In this case, execution of the rhythm stop routine begins at step 300,
Through the processing in steps 301 and 302, the rhythm run flag RU N is set to "0°" and the auto-rhythm performance is controlled to stop. However, since the auto-play right flag APW in this case is set to "I", the CPU 7
2 is determined to be rYEsJ in the determination process of step 303 after the process of step 302, and the process proceeds to step 306. In step 306, the storage location APM of memory 62 is
The final Y:J-do is inserted into (ADR). Next, proceeding to step 307, address A I) f? is “0”
Then, the auto play write flag APW is reset and the write mode ends. Next, when the process advances to step 304, it is determined whether the autoplay read flag APR is "1" or not. In this case, since the determination result is rNOJ, the process returns to step I02 via step 305.

(3)自動演奏モード 次に、演奏データメモリ62内の演奏データを読み出し
、 この読み出した演奏データに基づいて自動演奏を行
う自動演奏モードについて説明する。
(3) Automatic performance mode Next, the automatic performance mode in which performance data in the performance data memory 62 is read out and automatic performance is performed based on the read performance data will be described.

まず、操作者がバンクスイッヂS W I −S W 
3を押すと、ステップ103(第4図)の判断結果かr
Y E S Jとなり、ステップ+04を介してステッ
プ111のバンクスイッチ処理(第10図)へ進む。
First, the operator selects the bank switch SW
When you press 3, the judgment result of step 103 (Fig. 4)
The result is Y E S J, and the process proceeds to step 111, the bank switch process (FIG. 10), via step +04.

このバンクスイッチ処理では、まず、ステップ350を
介してステップ351へ進み、オートプレイリードフラ
グAPRか“1°か否かが判断される。
In this bank switch process, the process first proceeds to step 351 via step 350, where it is determined whether the autoplay read flag APR is "1 degree."

この場合、判断結果がrNOJとなることから、ステッ
プ352へ進み、バンクデータBANKがI−i」に設
定され、また、アドレスADHがI”n i Jに設定
される。そして、ステップ+02へ戻る。
In this case, since the determination result is rNOJ, the process advances to step 352, where the bank data BANK is set to "I-i" and the address ADH is set to I"n i J. Then, the process returns to step +02. .

次に操作者が、自動演奏読出し操作子24bを押すと、
ステップ103,104を介してステップ110へ進み
、オートプレイリードルーチンが実行される。第9図は
、このオートプレイリードルーチンの流れ図である。こ
のルーチンは、ステップ450から開始され、ステップ
452へ進ム。
Next, when the operator presses the automatic performance reading operator 24b,
The process advances to step 110 via steps 103 and 104, and an autoplay read routine is executed. FIG. 9 is a flowchart of this autoplay read routine. The routine begins at step 450 and proceeds to step 452.

ステップ・152では、オートプレイリードフラグA 
P Rが反転される(第8図のステップ402参jjj
()、、次いでステップ453へ進むと、オートプレイ
リードフラグA I) Rが“1′か否かが判断される
。そして、この判断結果が「NO」の場合はリターンし
、自動演奏モードが終了する。一方、ステップ453の
判断結果か1−YESJの場合は、ステップ455へ進
む。ステップ455では、オートプレイライトフラグA
 P Wがリセットされ、リズムランフラグRUNがセ
ットされ、テンポカウンタT CN i’がクリアされ
、また、アドレスADR(この場合rn i Jニステ
ップ352参照)が示す記憶位置A P M内のデータ
が読み出され、リードタイミングデータRDTIMとし
て設定される。そして、ステップ102へ戻る。
In step 152, the autoplay read flag A
PR is inverted (see step 402 in FIG.
(), Next, when the process advances to step 453, it is determined whether the auto play lead flag A I) R is "1'." If the result of this determination is "NO", the process returns and the automatic play mode is set. finish. On the other hand, if the determination result in step 453 is 1-YESJ, the process advances to step 455. In step 455, the auto play write flag A
PW is reset, the rhythm run flag RUN is set, the tempo counter TCN i' is cleared, and the data in the memory location APM indicated by the address ADR (in this case, see step 352) is The data is read out and set as read timing data RDTIM. Then, the process returns to step 102.

しかして、上述したステップ455の処理が自動演奏を
行う上の学備的処理であり、このステラ、 プ455が
行われると、以後、テンポ発振器40から出力されるテ
ンポクロック信号に基づき、次の過程によって自動演奏
が行なわれる。
Therefore, the process of step 455 described above is an educational process for automatic performance, and once this step 455 is performed, the next step is performed based on the tempo clock signal output from the tempo oscillator 40. Automatic performance is performed by the process.

すなわち、テンポクロック信号が出力されると、CPU
72の処理が第6図のリズムインタラブド処理へ進む。
That is, when the tempo clock signal is output, the CPU
The process at step 72 proceeds to the rhythm interwoven process shown in FIG.

そして、この場合、ステップ901の判断結果がrY 
ES Jとなることから、ステップ902へ進み、リズ
ム音の発生が行なわれる。次に、ステップ903へ進み
、オートプレイリードフラグAPRが“I”か否かが判
断される。この場合、判断結果がrY E S Jとな
り、ステップ911の自動演奏データ読出しルーチンへ
進む。
In this case, the determination result in step 901 is rY
Since it becomes ES J, the process advances to step 902, where rhythm sound generation is performed. Next, the process advances to step 903, where it is determined whether the autoplay read flag APR is "I". In this case, the determination result is rY E S J, and the process advances to step 911, an automatic performance data reading routine.

第11図はこの自動演奏データ誘出しルーチンの流れ図
であり、ステップ950でこのルーチンが開始され、C
PU72はステップ951にて」二記ステップ455(
第9図)の処理により初期設定されたリードタイミング
データRDTIM又は後述するステップ959の処理に
より設定されるリードタイミングデータr(DT I 
Mがテンボカウン)TCNTに等しいか否かを判定する
。今、前記リードタイミングデータRDTIMとテンポ
カウントTCNTが等しくなければ、前記ステップ95
1においては「NO」と判定され、ステップ952にて
この自動演奏データ読出しルーチンの実行が終了される
。一方テンポカウントTCNTが上昇して前記リードタ
イミングデータRDTIMとテンポカウントT CN 
Tと等しくなると、CPU72は同ステップ95+にて
rY E S Jと判定し、ステップ953にてアドレ
スADRSを「1」だけ歩進させ、ステップ954にて
該歩進させたアドレスADRにより指定される演奏デー
タメモリ62の記憶位置A P M(A D H)に記
憶されている演奏データを読出して、該続出した演奏デ
ータをリードデータRD I) Tとして設定する。
FIG. 11 is a flowchart of this automatic performance data extraction routine, which starts at step 950 and
In step 951, the PU 72 executes "2nd step 455 (
The read timing data RDTIM initialized by the process in FIG. 9) or the read timing data r(DT I
It is determined whether M is equal to TCNT (tenbo count). Now, if the read timing data RDTIM and the tempo count TCNT are not equal, the step 95
1, the determination is "NO", and the execution of this automatic performance data reading routine is terminated at step 952. On the other hand, the tempo count TCNT increases and the read timing data RDTIM and the tempo count TCN
When it becomes equal to T, the CPU 72 determines rY E S J in the same step 95+, increments the address ADRS by "1" in step 953, and specifies the incremented address ADR in step 954. The performance data stored in the storage location APM(ADH) of the performance data memory 62 is read out, and the successive performance data is set as read data RD1)T.

次に、CPU72は、ステップ955〜957のh判定
処理により、前記リードデータRD D Tがタイミン
グデータ、終了コード、小節コード又はその他のデータ
(押鍵データ、離鍵データ、音色等データ)のいずれか
のデータであるかを判定4−る。今、前記リードデータ
RDDTがその他のデータ(押鍵データ、離鍵データ、
音色等データ)であれば、ステップ955〜957の各
判定処理にて全てrNOJと判定され、ステップ958
にて該リードデータRD D Tは自動演奏用楽音信号
発生回路53ヘバス30を介して出力される。自動演奏
用楽音信号発生回路53は倶れらの供給された押鍵デー
タ、離鍵データ又は音色等データに基づき楽音信号の形
成を制御して、該形成された楽音信号をアンプ54を介
してスピーカ55に出力し、スピーカ55が同楽音信号
に応じた楽音を発音する。これにより、演奏データメモ
リ62に記憶されている演奏データに基づき自動的に楽
音が発音されるようになる。
Next, the CPU 72 determines whether the read data RDDT is timing data, an end code, a measure code, or other data (key press data, key release data, timbre data, etc.) through the h determination process in steps 955 to 957. Determine whether the data is 4-. Now, the read data RDDT contains other data (key press data, key release data,
timbre, etc.), it is determined as rNOJ in each determination process of steps 955 to 957, and step 958
The read data RDDT is outputted to the automatic performance musical tone signal generation circuit 53 via the bus 30. The automatic performance musical tone signal generation circuit 53 controls the formation of a musical tone signal based on the supplied key press data, key release data, tone color data, etc., and outputs the formed musical tone signal via the amplifier 54. The signal is output to the speaker 55, and the speaker 55 generates a musical tone corresponding to the musical tone signal. As a result, musical tones are automatically generated based on the performance data stored in the performance data memory 62.

上記ステップ958の処理後、CPU72はプログラム
をステップ953に戻し、同ステップ953にてアドレ
スADHをrlJだけ歩進させ、ステップ954にて該
歩進させたアドレスADHにより指定される演奏データ
メモリ62内の記録位置APM(ADH)に記憶されて
いる演奏データをリードデータRDDTとして再び設定
し、さらに、このリードデータRDDTの種類をステッ
プ955〜957の処理により判定する。かかる場合、
リードデータRDDTが再び押鍵データ、雌鍵デ−タ、
音色等データであれば、再びステップ953の処理によ
り楽音の発生が制御される。このようにして、同一タイ
ミングに記憶されている全ての押鍵データ、Rf!鍵デ
ータ、音色等データが演奏データメモリ62から読出さ
れて、自動演奏楽音の発生が、I、+制御される。
After the processing in step 958, the CPU 72 returns the program to step 953, increments the address ADH by rlJ in the same step, and in step 954 stores the performance data memory 62 specified by the incremented address ADH. The performance data stored in the recording position APM (ADH) is set again as lead data RDDT, and the type of this lead data RDDT is determined by the processing in steps 955 to 957. In such case,
Read data RDDT is again key press data, female key data,
If it is data such as timbre, the generation of musical tones is controlled again by the process of step 953. In this way, all key press data stored at the same timing, Rf! Key data, tone color, and other data are read from the performance data memory 62, and the generation of automatically performed musical tones is controlled.

かかるステップ953〜958からなる括環処理中、上
記ステップ954にて設定したリードデータRD D 
Tがタイミングデータになると、CP【J72はステッ
プ955にてrY E S Jと判定し、ステップ95
9にて同す−ドデータRDDT内の時間データ’I’ 
I M DをリードタイミングデータRD T I M
として設定して、ステップ952にて該自動演奏データ
読出しルーチンの実行を終了する。
During the wrapping process consisting of steps 953 to 958, the read data RD set in step 954 is
When T becomes timing data, CP [J72 determines rY E S J in step 955, and in step 95
9, the time data 'I' in the same code data RDDT
Read IMD Timing data RD TIM
Then, in step 952, execution of the automatic performance data reading routine is ended.

その後、リズムインタラブドプログラムが実行される毎
に上記ステップ950〜952からなる処理が実行され
、萌記設定したリードタイミングデータRDTIMがテ
ンポカウントTCNTと等しくなると、CP U 72
は上記ステップ953〜958からなる上記処理を実行
して自動演奏楽音の発音を制御する。
Thereafter, the process consisting of steps 950 to 952 described above is executed every time the rhythm interwoven program is executed, and when the read timing data RDTIM set by Moe becomes equal to the tempo count TCNT, the CPU 72
executes the above-mentioned processing consisting of steps 953 to 958 to control the sound production of automatically played musical tones.

次に、ステップ954において設定したリードデータR
DDTか小節コードであった場合は、ステップ957の
判断結果がrY E S Jとなり、ステップ953へ
戻る。また、リードデータIi I) D Tが終了コ
ードであった場合は、ステップ956の判断結果がrY
 E S Jとなり、ステップ962へ進む。
Next, read data R set in step 954
If it is a DDT or a measure chord, the determination result in step 957 is rY E S J, and the process returns to step 953. In addition, if the read data Ii I) D T is an end code, the determination result at step 956 is rY
The result is E S J, and the process advances to step 962.

ステップ962では、オートプレイリードフラグA I
) flおよびリズムランフラグRU Nが共にリセッ
トされる。これにより、演奏データメモリ62内のバン
クniの演奏データに基づく自動演奏が終了すると共に
、自動リズム演奏ら終了する。
In step 962, the autoplay read flag A I
) fl and rhythm run flag RUN are both reset. As a result, the automatic performance based on the performance data of bank ni in the performance data memory 62 ends, and the automatic rhythm performance also ends.

(4)スキップ処理 上述の自動演奏モードにおいては、聞きたい部分を素早
くサーチするスキップ処理が行える。以下にこの処理に
ついて説明する。
(4) Skip Processing In the automatic performance mode described above, skip processing can be performed to quickly search for the part you want to hear. This process will be explained below.

スキップ処理は、自動演奏が行われているバンクの番号
と同一の番号のバンクスイッチ5Wi(i−I〜3)が
押されることにより起動される。
The skip process is activated by pressing the bank switch 5Wi (i-I to 3) having the same number as the bank in which automatic performance is being performed.

今、自動演奏中において、操作前によってバンクスイッ
チS W iが押されたとすると、ステップ+04から
ステップ11!、すなわち、第1θ図に示すバンクスイ
ッチ処理に進む。まず、ステップ350を介してステッ
プ351に至り、オートプレイリードフラグAPRが“
I”か否かが判断される。自動演奏中であれば、この判
定はrYES」となるから、処理はステップ353に進
み、押されたバンクスイッチの番号がバンクデータBA
 N Kの内容に一致するか否かが判定される。この判
定がrNolの場合は、現在自動演奏に用いられている
バンクとは違う番号のバンクスイッチか押された場合で
あり、ステップ354に移る。
Now, when the bank switch SW i is pressed before operation during automatic performance, from step +04 to step 11! That is, the process proceeds to the bank switch process shown in FIG. 1θ. First, step 351 is reached via step 350, and the autoplay read flag APR is set to “
If the automatic performance is in progress, the determination is ``rYES'', so the process proceeds to step 353, where the number of the pressed bank switch is set to bank data BA.
It is determined whether or not the content matches the contents of NK. If this determination is rNol, this means that a bank switch with a number different from the bank currently used for automatic performance has been pressed, and the process moves to step 354.

ステップ354においては、アドレスADHの値に折た
Iこ押されたバンクスイッチSWiに対応するバンクの
先頭番@n iを設定するとともに、データ[3ANK
の値を押されたバンクスイッチSWiの番号1とし、ま
た、テンポカウントTCNTをリセットして、記憶位2
APM(ADR)のデータをリードタイミングデータR
DTIMとする。
In step 354, the first number @n i of the bank corresponding to the pressed bank switch SWi is set to the value of the address ADH, and the data [3ANK
The value is set to number 1 of the pressed bank switch SWi, and the tempo count TCNT is reset to memory position 2.
Read timing data R of APM (ADR) data
DTIM.

この処理の後はリターンし、以後はテンポクロック信号
が供給される毎に、リズムインクラブド処理(第6図)
、自動演奏データ続出しルーチン(第1I図)を実行す
る。したがって、新たに押されたバンクスイッチSWi
の番号に対応するバンク内の演奏データに基づく自動演
奏が、当該バンクの先頭番地から行われる。
After this processing, the process returns, and from then on, each time the tempo clock signal is supplied, the rhythm inclination process (Fig. 6) is performed.
, executes the automatic performance data successive output routine (FIG. 1I). Therefore, the newly pressed bank switch SWi
Automatic performance based on the performance data in the bank corresponding to the number is performed from the first address of the bank.

一方、ステップ353においてr YESJと判定され
た場合は、ステップ355〜358からなるスキップ処
理を行う。まず、ステップ355においてアドレスAD
Rを歩進しくADR+1)、次にステップ356におい
て、アドレスADHのデータが小節線コードであるか否
かを判定する。
On the other hand, if r YESJ is determined in step 353, a skip process consisting of steps 355 to 358 is performed. First, in step 355, the address AD
Then, in step 356, it is determined whether the data at the address ADH is a bar line code.

この判定がr NOJの場合は再びステップ355.3
56を実行し、以後ステップ356において「YESJ
と判定されるまで、上記ループを繰り返す。
If this determination is r NOJ, step 355.3 again
56 is executed, and thereafter in step 356 "YESJ
The above loop is repeated until it is determined that

そして、ステップ356においてrYEsjとなると、
ステップ357に至って自動演奏用楽音信号発生回路5
3における全ての楽音信号の発生を停止(キーオ)処理
)させ、さらに、ステップ358に移ってテンポカウン
トTCNT、リードタイミングデータRD ′r I 
N1をクリアする。ステップ358の処理が終わるとリ
ターンし、以後はテンポクロック信号が出力される毎に
、リズムインタラブド処理(第6図)と自動演奏データ
読出しルーチン(第1I図)の処理を行う。したがって
、自動演奏の読出しデータが、次の小節線のタイミング
までスキップされる。
Then, when rYEsj is reached in step 356,
At step 357, the automatic performance musical tone signal generation circuit 5
The generation of all musical tone signals in step 3 is stopped (keo processing), and the process proceeds to step 358 where the tempo count TCNT and lead timing data RD'r I are set.
Clear N1. When the process of step 358 is completed, the process returns, and thereafter, the rhythm interwoven process (FIG. 6) and the automatic performance data reading routine (FIG. 1I) are performed every time the tempo clock signal is output. Therefore, the automatic performance read data is skipped to the timing of the next bar line.

また、自動演奏に用いられているバンクと同一番号のバ
ッファ〈ソチS W iが再度押されると、上記と同様
の処理か行われ、演奏データの読出しが、押さイまたタ
イミングの次の小節線のデータまで+Ii II’スキ
ップする。そして、読出したいデータが何小節先にある
かに応じた回数だけ、バンクスイツチS W iを押す
ことにより、当該小節の先頭タイミングから自動演奏を
行うことができる。
Also, if the buffer with the same number as the bank used for automatic performance (Sochi S Wi) is pressed again, the same process as above will be performed, and the performance data will be read out at the next bar line at the timing when the button is pressed again. Skip to +Ii II' data. Then, by pressing the bank switch S W i a number of times depending on how many measures ahead the data to be read is, automatic performance can be performed from the beginning timing of the measure.

以上のように、自動演奏中において、その時点て演奏に
使われているバンクと違う場合のバンクスイッチS W
 iが押された場合は、新たに押されたバンク内のデー
タの先頭番地から自動演奏が行、イつれ、また、自動演
奏中のバンクと同一番号のバンクスイッチS ’vV 
iが押された場合は、スキップ処理が行われる。
As mentioned above, during automatic performance, if the bank is different from the bank currently being used for the performance, the bank switch SW
When i is pressed, automatic performance starts from the first address of the data in the newly pressed bank.
If i is pressed, skip processing is performed.

以上がこの発明の第1の実施例の詳細である。The details of the first embodiment of this invention have been described above.

次に、この発明の第2の実施例について説明する。第1
2図は、第2の実施例におけるスキップ処理を示してい
る。なお、この実施例における各部の回路構成およびス
キップ処理以外の動作は前述した第1の実施例と同様で
ある。
Next, a second embodiment of the invention will be described. 1st
FIG. 2 shows skip processing in the second embodiment. Note that the circuit configuration of each part in this embodiment and the operation other than the skip processing are the same as those in the first embodiment described above.

第12図に示すスキップ処理は、第1O図に示すバンク
スイッチ処理におけるステップ353の判定がr YE
SJとなったとき1こ起動される。
In the skip process shown in FIG. 12, the determination at step 353 in the bank switch process shown in FIG.
When it becomes SJ, it is activated once.

まず、ステップSa Iを介してステップSa2に至り
、キーバッファKEYBUFをクリアする。
First, step Sa2 is reached via step SaI, and the key buffer KEYBUF is cleared.

このキーバッファKEYBUPは、後述するステップS
a5おいてキーオンイベントが記憶されるメモリであり
、ワーキングメモリ73内に設定される。次に、ステッ
プSa3に進んでアドレスを1歩進し、その後にステッ
プSa4に、おいて歩進後のアドレスにおける演奏デー
タメモリ62内のデータが押鍵データか否かを判定する
。この判定がr YESJのときは、ステップSa5に
進み、記(α位置APM(ADR)にある押鍵データを
キーバッファKEYI30Fに舛き込む。このステップ
Sa5を実行した後は、再びステップSa3、Sa 4
を実行する。ステップSa4において再度押鍵データが
検出された場合は、ステップSa 5/こおいて同押鍵
データをキーバッファKEYBUFにn3込む。
This key buffer KEYBUP is stored in step S, which will be described later.
This is the memory in which the key-on event is stored in a5, and is set in the working memory 73. Next, the process proceeds to step Sa3, where the address is incremented by one step, and then, in step Sa4, it is determined whether the data in the performance data memory 62 at the address after the increment is key press data. When this determination is r YESJ, the process proceeds to step Sa5, and the key press data at the α position APM (ADR) is stored in the key buffer KEYI30F. After executing this step Sa5, step Sa3 and Sa 4
Execute. If the key press data is detected again in step Sa4, the same key press data is stored n3 in the key buffer KEYBUF in step Sa5/.

一方、ステップSa4において、押鍵データが検出され
ない場合は、ステップSa6に進み、歩進したアドレス
における演奏データメモリ62内のデータがM鍵データ
か否かが判定される。#i鍵データである場合には、ス
テップSa7に進み、キーバッファK E Y B U
 I”内にステップSa6で検出されたM鍵データのキ
ーコードKCと同じキーコードKCの押鍵データがある
か否かが判断される。この判定が「NO」の場合は、ス
テップSa8に進み、記憶位置AMP(ADR)のM鍵
データを自動演奏用楽音信号発生回路53に出力する。
On the other hand, if no key press data is detected in step Sa4, the process proceeds to step Sa6, where it is determined whether the data in the performance data memory 62 at the incremented address is M key data. If the key data is #i, the process proceeds to step Sa7 and the key buffer KEYBU
It is determined whether or not there is key press data with the same key code KC as the key code KC of the M key data detected in step Sa6 in "I". If this determination is "NO", the process advances to step Sa8. , outputs the M key data at the storage location AMP (ADR) to the automatic performance musical tone signal generation circuit 53.

すなわち、キーオフ処理を行う。ステップSa8の処理
が行われるのは、自動演奏進行におけるバンクスイッチ
SWiか押された時の演奏タイミングより前にキーオン
された鍵があり、この鍵が次の小節線のタイミング前に
キーオフされた場合である。この場合は、当該キーの楽
音は発音中であるので、ステップSagの処理jこより
その発音を停止し、スキップ後に発音しないようにする
That is, key-off processing is performed. The process in step Sa8 is performed when there is a key that was keyed on before the performance timing when the bank switch SWi was pressed in automatic performance progression, and this key is keyed off before the timing of the next bar line. It is. In this case, since the musical tone of the relevant key is being generated, the tone generation is stopped from the process of step Sag, and the tone is not generated after the skip.

また、ステップSa7の判定において、r YESJと
なった場合は、ステップSa9に移り、キーバッファK
 E Y B U F内の当該同一キーコードの押鍵デ
ータをクリアする。すなわち、当該キーの押鍵データを
キーバッファKEYBUF’から消去する。
In addition, if r YESJ is determined in step Sa7, the process moves to step Sa9, and the key buffer K
Clear the key press data of the same key code in E Y B UF. That is, the key press data of the relevant key is deleted from the key buffer KEYBUF'.

ステップSa9の処理に至るのは、自動演奏進行におけ
るバンクスイッチS W iが押されたときの演奏タイ
ミングより後Iこキーオンし、次の小節線のタイミング
前にキーオフするキーがあった場合である。そして、ス
テップSa9およびステップSa8の処理後は、再びス
テップSa3に移って上記動作を行う。
The process of step Sa9 is reached when there is a key that is turned on after the performance timing when the bank switch S Wi is pressed in automatic performance progression, and turned off before the timing of the next bar line. . After the processing in steps Sa9 and Sa8, the process returns to step Sa3 and the above operations are performed.

また、ステップSa4およびステップSa6の双方にお
いて共に「NO」と判定された場合、すなわち、押鍵デ
ータもしくはM鍵データ以外のデータが検出された場合
は、ステップ5alOに至り小節線コードか否かが判定
される。この判定か「N01の場合は、ステップSa3
に戻る。以後は、ステップ5alOの判定がr YES
Jとなるまで、すなわち、小節線コードが検出されるま
で、ステップSa3〜Sa9の処理を適宜行う。
Furthermore, if the determination is "NO" in both step Sa4 and step Sa6, that is, if data other than key press data or M key data is detected, step 5alO is reached and it is determined whether or not it is a bar line code. It will be judged. If this judgment is "N01, step Sa3
Return to From then on, the determination in step 5alO is r YES.
Steps Sa3 to Sa9 are performed as appropriate until the bar line code is detected.

ステップ5alOの判定がr YESJとなると、ステ
ップ5allにおいてキーバッファKEYBUF内にあ
る全ての押鍵データを自動演奏用楽音信号発生回路53
に出力するとと乙に、テンポカウントTCN’T、リー
ドタイミングデータRDTI Mをクリアする。この処
理によって、小節線の+Fj後に渡って継続して発音さ
れるキーかあった場合Iこは、このキーの音がスキップ
した小節線のタイミングから一斉に発音される。
When the determination in step 5alO is r YESJ, in step 5all all key press data in the key buffer KEYBUF is transferred to the automatic performance musical tone signal generation circuit 53.
When it is output, the tempo count TCN'T and read timing data RDTIM are cleared. As a result of this processing, if there is a key that continues to be sounded after +Fj of the bar line, the sounds of this key will be sounded all at once from the timing of the skipped bar line.

なお、上記の実施例では、スキップ読出しの区切りを1
小節単位としたが、これに限らず、所定の1隻数小節単
位、半小節単位、1拍車位、!フレーズ単位等で行うよ
うにしてもよい。
Note that in the above embodiment, the skip reading interval is set to 1.
Although it is expressed in units of measures, it is not limited to this, but it can be specified in units of a certain number of measures, in units of half a measure, in units of one beat, etc. This may be done in units of phrases, etc.

また、上記実施例では、バンクスイッチがオンされるH
iこ1回のスキップ処理を行なうようにしたが、これに
代えて、スイッチがオンされている開所定周期で自動的
に繰返しスキップ処理を行なうようにしてらよい。
Further, in the above embodiment, the bank switch is turned on at H
Although the skip process is performed once every i times, instead of this, the skip process may be automatically and repeatedly performed at a predetermined opening period when the switch is turned on.

また、上記実施例では、演奏データメモリを複数(3[
!l)のバンクl二分割し、バンクスイッチによってス
キップ処理を指示するようにしたが、他の操作によって
指示することも可能であるし、また、別途に専用のスイ
ッチ等を設けてもよい。
In addition, in the above embodiment, a plurality of performance data memories (3[
! Although bank l is divided into two parts in l) and the skip processing is instructed by the bank switch, it is also possible to instruct the skip process by other operations, or a dedicated switch or the like may be provided separately.

「発明の効果」 以上説明したように、この発明によれば、演奏データメ
モリ内の演奏データを順次続出して自動演奏を行う自動
演奏装置において、操作子が操作されると、前記演奏デ
ータメモリのアクセス番地を所定区間おきに更新するス
キップ制御手段を1備したので、演奏データの所望の部
分を素早くサーチすることができる。
"Effects of the Invention" As explained above, according to the present invention, in an automatic performance device that performs automatic performance by successively inputting performance data in a performance data memory, when an operator is operated, the performance data is stored in the performance data memory. Since the present invention includes one skip control means for updating the access address of the music data at predetermined interval intervals, a desired portion of the performance data can be quickly searched.

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

第1図はこの発明の実施例の構成を示すブロック図、第
2図は同実施例における操作パネルの構成を示す図、第
3図は同実施例において使用されろデータおよびコード
を示す図、第4図〜第1!図は同実施例におけるCPU
72のプログラムを示す流れ図であり、第4図はメイン
ルーチンを示す流れ図、第5図は鍵・音色イベントルー
チンを示す流れ図、第6図はリズムインクラブド処理を
示す流れ図、第7図はリズムストップルーチンを示す流
れ図、第8図はオートプレイライトルーチンを示す流れ
図、第9図はオートプレイリードルーヂンを示す流れ図
、第10図はバンクスイッチ処理を示す流れ図、第11
図は自動演奏データ読出しルーチンを示す流れ図、第1
2図は第2の実施例におけるCPU72の処理の流れ図
である。 53・・・・・・自動演奏用楽音信号発生回路、62・
・・・・・演奏データメモリ、71・・・・・・プログ
ラムメモリ、72・・・・・・CPU、73・・・・・
・ワーキングメモリ。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a diagram showing the configuration of an operation panel in the same embodiment, and FIG. 3 is a diagram showing data and codes used in the same embodiment. Figure 4 ~ 1st! The figure shows the CPU in the same embodiment.
72 program, FIG. 4 is a flowchart showing the main routine, FIG. 5 is a flowchart showing the key/timbre event routine, FIG. 6 is a flowchart showing the rhythm included processing, and FIG. 7 is a flowchart showing the rhythm included process. FIG. 8 is a flow chart showing the auto play write routine; FIG. 9 is a flow chart showing the auto play read routine; FIG. 10 is a flow chart showing the bank switch process;
The figure is a flowchart showing the automatic performance data reading routine.
FIG. 2 is a flow chart of the processing of the CPU 72 in the second embodiment. 53... musical tone signal generation circuit for automatic performance, 62.
... Performance data memory, 71 ... Program memory, 72 ... CPU, 73 ...
・Working memory.

Claims (2)

【特許請求の範囲】[Claims] (1)演奏データメモリ内の演奏データを順次読出して
自動演奏を行う自動演奏装置において、操作子と、この
操作子の操作に対応して前記演奏データメモリのアクセ
ス番地を所定区間分更新するスキップ制御手段とを具備
することを特徴とする自動演奏装置。
(1) In an automatic performance device that performs automatic performance by sequentially reading out performance data in a performance data memory, a control and a skip for updating the access address of the performance data memory for a predetermined section in response to the operation of this control. An automatic performance device comprising a control means.
(2)前記所定区間は1拍、半小節、1小節、1フレー
ズのいずれかであることを特徴とする請求項第1記載の
自動演奏装置。
(2) The automatic performance device according to claim 1, wherein the predetermined section is one of one beat, half a bar, one bar, and one phrase.
JP63092313A 1988-04-14 1988-04-14 Automatic performance device Expired - Lifetime JP2643277B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63092313A JP2643277B2 (en) 1988-04-14 1988-04-14 Automatic performance device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63092313A JP2643277B2 (en) 1988-04-14 1988-04-14 Automatic performance device

Publications (2)

Publication Number Publication Date
JPH01262594A true JPH01262594A (en) 1989-10-19
JP2643277B2 JP2643277B2 (en) 1997-08-20

Family

ID=14050909

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63092313A Expired - Lifetime JP2643277B2 (en) 1988-04-14 1988-04-14 Automatic performance device

Country Status (1)

Country Link
JP (1) JP2643277B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0356997A (en) * 1989-07-26 1991-03-12 Brother Ind Ltd Musical performance recording and reproducing device
JPH0566776A (en) * 1991-09-04 1993-03-19 Kawai Musical Instr Mfg Co Ltd Automatic orchestration device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0356997A (en) * 1989-07-26 1991-03-12 Brother Ind Ltd Musical performance recording and reproducing device
JPH0566776A (en) * 1991-09-04 1993-03-19 Kawai Musical Instr Mfg Co Ltd Automatic orchestration device

Also Published As

Publication number Publication date
JP2643277B2 (en) 1997-08-20

Similar Documents

Publication Publication Date Title
JPH08305356A (en) Musical amusement system
JP3303576B2 (en) Automatic performance device
JP2560372B2 (en) Automatic playing device
JPH03192299A (en) Automatic accompaniment device
JP3358292B2 (en) Electronic musical instrument
JP2500528B2 (en) Electronic musical instrument
JP3286683B2 (en) Melody synthesis device and melody synthesis method
JP3484719B2 (en) Performance guide device with voice input function and performance guide method
JP3239411B2 (en) Electronic musical instrument with automatic performance function
JPH01262594A (en) Automatic musical performance device
JP3398554B2 (en) Automatic arpeggio playing device
JP2712954B2 (en) Electronic musical instrument
JPH07191668A (en) Electronic musical instrument
JP3887957B2 (en) Karaoke equipment
JP2570411B2 (en) Playing equipment
JPH1185153A (en) Playing device
JP3672178B2 (en) Musical amusement system
JP2536272B2 (en) Electronic musical instrument
JP3895139B2 (en) Automatic performance device
JP3620321B2 (en) Automatic accompaniment device
JP5449963B2 (en) Automatic melody performance device and program for automatic melody performance function
JP2518341B2 (en) Automatic playing device
JP3672179B2 (en) Musical amusement system
JP3120487B2 (en) Electronic musical instrument with automatic accompaniment function
JP3017902B2 (en) Automatic accompaniment device for electronic musical instruments

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term