JP3217591B2 - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JP3217591B2
JP3217591B2 JP13377494A JP13377494A JP3217591B2 JP 3217591 B2 JP3217591 B2 JP 3217591B2 JP 13377494 A JP13377494 A JP 13377494A JP 13377494 A JP13377494 A JP 13377494A JP 3217591 B2 JP3217591 B2 JP 3217591B2
Authority
JP
Japan
Prior art keywords
arranger
composer
flag
processing routine
performance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP13377494A
Other languages
Japanese (ja)
Other versions
JPH07319463A (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.)
Roland Corp
Original Assignee
Roland 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 Roland Corp filed Critical Roland Corp
Priority to JP13377494A priority Critical patent/JP3217591B2/en
Publication of JPH07319463A publication Critical patent/JPH07319463A/en
Application granted granted Critical
Publication of JP3217591B2 publication Critical patent/JP3217591B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、電子楽器に関し、さら
に詳細には、自動演奏機能と自動伴奏機能となどのよう
に、複数の演奏機能を合わせ持つ電子楽器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic musical instrument, and more particularly, to an electronic musical instrument having a plurality of performance functions such as an automatic performance function and an automatic accompaniment function.

【0002】[0002]

【従来の技術】従来より、複数の演奏データを記憶し、
記憶した複数の演奏データの中から所望の演奏データを
選択し、選択した演奏データを読み出し再生して音源へ
出力し、当該演奏データに基づき楽音を生成して演奏を
行わせる自動演奏装置が知られていた。
2. Description of the Related Art Conventionally, a plurality of performance data are stored,
An automatic performance device that selects desired performance data from a plurality of stored performance data, reads and reproduces the selected performance data, outputs it to a sound source, and generates a musical tone based on the performance data to perform a performance. Had been.

【0003】また、所定の小節数の複数の伴奏パターン
よりなる演奏データを記憶し、記憶した複数の伴奏パタ
ーンよりなる演奏データの中から所望の伴奏パターンの
演奏データを選択し、選択した伴奏パターンの演奏デー
タを繰り返し読み出し再生して音源へ出力し、当該伴奏
パターンの演奏データに基づき楽音を生成して伴奏を行
わせる自動伴奏装置が知られていた。
Also, performance data composed of a plurality of accompaniment patterns having a predetermined number of measures is stored, and performance data of a desired accompaniment pattern is selected from the stored performance data composed of a plurality of accompaniment patterns. There has been known an automatic accompaniment apparatus that repeatedly reads and reproduces the performance data of the musical accompaniment, outputs the reproduced data to a sound source, and generates a musical tone based on the performance data of the accompaniment pattern to perform the accompaniment.

【0004】さらには、こうした自動演奏装置と自動伴
奏装置とを一体化したような、自動演奏機能と自動伴奏
機能とを合わせ持つ電子楽器も提案されていた。
Further, there has been proposed an electronic musical instrument having an automatic performance function and an automatic accompaniment function in which such an automatic performance apparatus and an automatic accompaniment apparatus are integrated.

【0005】ところで、上記した自動演奏機能と自動伴
奏機能とを合わせ持つ電子楽器は、これら自動演奏機能
と自動伴奏機能との動作(演奏データの再生)の開始を
指示するための共通のスタート・スイッチとして、単一
のスタート・スイッチを備えるとともに、これら自動演
奏機能と自動伴奏機能との動作の終了を指示するための
共通のストップ・スイッチとして、単一のストップ・ス
イッチを備えるものであった。
An electronic musical instrument having both the automatic performance function and the automatic accompaniment function described above has a common start command for instructing the start of the operation (reproduction of performance data) of the automatic performance function and the automatic accompaniment function. A single start switch was provided as a switch, and a single stop switch was provided as a common stop switch for instructing termination of the operations of the automatic performance function and the automatic accompaniment function. .

【0006】このため、単一のスタート・スイッチを操
作するだけで、自動演奏機能と自動伴奏機能との動作を
同時に開始させることができ、単一のストップ・スイッ
チを操作するだけで、自動演奏機能と自動伴奏機能との
動作を同時に停止させることができるものであった。
[0006] Therefore, the operation of the automatic performance function and the automatic accompaniment function can be started at the same time only by operating a single start switch, and the automatic performance can be started only by operating a single stop switch. The function and the automatic accompaniment function can be stopped simultaneously.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記し
たような従来の自動演奏機能と自動伴奏機能とを合わせ
持つ電子楽器にあっては、スタート・スイッチに関して
は、自動演奏機能と自動伴奏機能との動作を同時に開始
させる両者に共通の単一のスタート・スイッチを備える
のみであって、自動演奏機能の動作の開始を指示するス
タート・スイッチと自動伴奏機能の動作の開始を指示す
るスタート・スイッチとをそれぞれ備えているものでは
なかった。
However, in the conventional electronic musical instrument having both the automatic performance function and the automatic accompaniment function as described above, the start switch is not provided with the automatic performance function and the automatic accompaniment function. A start switch instructing the start of the operation of the automatic performance function and a start switch instructing the start of the operation of the automatic accompaniment function are provided only with a single start switch common to both of them for simultaneously starting the operation. Was not equipped with each.

【0008】また、ストップ・スイッチに関しても、自
動演奏機能と自動伴奏機能との動作を同時に停止させる
両者に共通の単一のストップ・スイッチを備えるのみで
あって、自動演奏機能の動作の停止を指示するストップ
・スイッチと自動伴奏機能の動作の停止を指示するスト
ップ・スイッチとをそれぞれ備えてはいなかった。
In addition, the stop switch only has a single stop switch common to both the automatic performance function and the automatic accompaniment function for simultaneously stopping the operation of the automatic performance function and the automatic accompaniment function. There is no separate stop switch for instructing and a stop switch for instructing to stop the operation of the automatic accompaniment function.

【0009】このため、自動演奏機能の動作中に自動伴
奏機能の動作を停止させたり、自動演奏機能の動作のみ
開始させ、その後に自動伴奏機能の動作を開始させたり
するなどのように、自動演奏機能と自動伴奏機能との動
作開始と動作停止とを、自動演奏機能と自動伴奏機能と
の間でそれぞれ独立して個別的に制御することができ
ず、変化のある演奏を行うことができないという問題点
があった。
For this reason, the automatic accompaniment function may be stopped during the automatic performance function, or only the automatic performance function may be started, and then the automatic accompaniment function may be started. The start and stop of the operation of the performance function and the automatic accompaniment function cannot be independently and individually controlled between the automatic performance function and the automatic accompaniment function, and a change in performance cannot be performed. There was a problem.

【0010】本発明は、従来の技術の有するこのような
問題点に鑑みてなされたものであり、その目的とすると
ころは、自動演奏装置と自動伴奏装置とを一体化して、
自動演奏機能と自動伴奏機能とを合わせ持つなどのよう
に、複数の演奏機能を合わせ持つ電子楽器における操作
性の向上にあり、例えば、自動演奏機能と自動伴奏機能
との動作開始と動作停止とを、自動演奏機能と自動伴奏
機能との間でそれぞれ独立して個別的に制御することが
できようにして、変化に富んだ演奏を行うことができる
ようにした電子楽器を提供することを目的とする。
The present invention has been made in view of the above-mentioned problems of the prior art, and has as its object to integrate an automatic performance device and an automatic accompaniment device,
The operability of an electronic musical instrument having a combination of multiple performance functions, such as having an automatic performance function and an automatic accompaniment function, is improved. To provide an electronic musical instrument capable of performing a variety of performances by independently controlling the automatic performance function and the automatic accompaniment function independently of each other. And

【0011】[0011]

【課題を解決するための手段】上記目的を達成するため
に、本発明による電子楽器は、第一の演奏データに基づ
き演奏を行う第一の演奏手段と、第二の演奏データに基
づき上記第一の演奏手段と同時に演奏を行う第二の演奏
手段と、上記第一の演奏手段が演奏を終了したとき、上
記第二の演奏手段が第二の演奏データ中の所定の演奏デ
ータ以外の演奏データを演奏している場合は、同時に上
記第二の演奏手段を停止し、上記所定の演奏データの演
奏をしている場合には、第二の演奏データの終了まで演
奏を行うように制御する制御手段とを有するようにした
ものである。
In order to achieve the above object, an electronic musical instrument according to the present invention comprises a first performance means for performing a performance based on first performance data and a second performance means based on a second performance data. A second performance means for performing simultaneously with the first performance means; and, when the first performance means finishes the performance, the second performance means performs a performance other than the predetermined performance data in the second performance data. If the data is being played, the second performance means is stopped at the same time, and if the predetermined performance data is being played, control is performed so that the performance is performed until the end of the second performance data. Control means.

【0012】[0012]

【0013】[0013]

【0014】[0014]

【0015】[0015]

【0016】[0016]

【0017】[0017]

【0018】[0018]

【0019】[0019]

【0020】[0020]

【作用】上記した発明によれば、第一の演奏手段が演奏
を終了したとき、第二の演奏手段が第二の演奏データ中
の所定の演奏データ以外の演奏データを演奏している場
合には、制御手段は、同時に上記第二の演奏手段を停止
させるが、所定の演奏データの演奏をしている場合に
は、制御手段は、第二の演奏データの終了まで演奏を行
うように制御する。
According to the invention described above, when the first performance means finishes playing, the second performance means plays performance data other than the predetermined performance data in the second performance data. The control means stops the second performance means at the same time, but when playing predetermined performance data, the control means controls the performance until the end of the second performance data. I do.

【0021】従って、例えば、第一の演奏手段を自動演
奏機能を実現する自動演奏手段とし、また第二の演奏手
段を自動伴奏機能を実現する自動伴奏手段とし、所定の
演奏データをエンディング・パターンの演奏データとし
た場合には、自動演奏手段が演奏データを全て演奏し終
えると、自動伴奏手段は通常のパターンの演奏データを
演奏中であるならば即座に停止し、エンディング・パタ
ーンの演奏データを演奏中であるならば、エンディング
・パターンの演奏データの演奏が終了するまで停止しな
い。
Therefore, for example, the first performance means is an automatic performance means for realizing an automatic performance function, the second performance means is an automatic accompaniment means for realizing an automatic accompaniment function, and predetermined performance data is stored in an ending pattern. When the automatic performance means finishes playing all the performance data, the automatic accompaniment means stops immediately if the performance data of the normal pattern is being played, and the performance data of the ending pattern. Is being played, it does not stop until the performance of the performance data of the ending pattern ends.

【0022】これによって、自動伴奏手段が先に演奏を
終了しても、自動伴奏手段がエンディング・パターンの
演奏データを演奏中である場合には、自動伴奏手段は必
ずエンディング・パターンの演奏データの終わりまで演
奏することができるようになり、エンディング・パター
ンによる演奏が途中で途切れてしまうことが防止できる
ので、違和感のない演奏を行うことができる。
With this, even if the automatic accompaniment means finishes the performance first, if the automatic accompaniment means is playing the performance data of the ending pattern, the automatic accompaniment means always performs the playback of the performance data of the ending pattern. Since it is possible to perform to the end, it is possible to prevent the performance by the ending pattern from being interrupted in the middle, so that it is possible to perform without discomfort.

【0023】[0023]

【0024】[0024]

【0025】[0025]

【0026】[0026]

【0027】[0027]

【実施例】以下、図面を参照しながら、本発明による電
子楽器の実施例を詳細に説明することとする。
Embodiments of an electronic musical instrument according to the present invention will be described below in detail with reference to the drawings.

【0028】図1には、本発明の一実施例による電子楽
器のブロック構成図が示されているが、この電子楽器
は、バス10を介して接続されているCPU12と、R
OM14と、RAM16と、鍵盤18と、音源20と、
操作子群22と、タイマー24とを有して構成されてい
る。
FIG. 1 is a block diagram showing an electronic musical instrument according to an embodiment of the present invention. The electronic musical instrument comprises a CPU 12 connected via a bus 10,
OM 14, RAM 16, keyboard 18, sound source 20,
It is configured to include an operator group 22 and a timer 24.

【0029】この電子楽器は、その全体の動作の制御を
CPU12を用いて制御するように構成されている。C
PU12は、ROM14に記憶されたプログラム(な
お、本発明に関するソフトウェアについては、フローチ
ャートを参照しながら後に詳述する。)を実行する中央
処理装置と、当該プログラムを実行する際に必要な各種
レジスタやバッファなどを含むワーキング・メモリとし
ての書き込み可能メモリとなどにより構成されている。
そして、当該プログラムを実行することにより、操作子
群22を構成する後述する各種操作子の操作状態の読み
込み、RAM16へのソング・データ(「ソング・デー
タ」とは、本実施例においては、楽曲の演奏データを意
味する。)の書き込み、RAM16からのソング・デー
タやスタイル・データ(「スタイル・データ」とは、本
実施例においては、楽曲のエンディングにおける伴奏パ
ターンを示すデータたるエンディグ・データを含む伴奏
パターンの演奏データ(伴奏パターン・データ)を意味
する。)の読み出しなどを行い、鍵盤18ならびに操作
子群22の操作やソング・データならびにスタイル・デ
ータに基づき生成される楽音情報を音源20へ供給する
とともに、音源20を制御して楽音を発生させる処理な
どを行う。
This electronic musical instrument is configured to control the entire operation using the CPU 12. C
The PU 12 includes a central processing unit that executes a program (software related to the present invention will be described later in detail with reference to flowcharts) stored in a ROM 14, various registers necessary for executing the program, and the like. It comprises a writable memory as a working memory including a buffer and the like.
By executing the program, the operation state of various operators, which will be described later, constituting the operator group 22 is read, and the song data to the RAM 16 (“song data” refers to the music data in the present embodiment). , And song data and style data from the RAM 16 ("style data" in this embodiment is ending data, which is data indicating an accompaniment pattern in the ending of a music piece). Read out the performance data of the included accompaniment pattern (meaning the accompaniment pattern data), etc., and operate the keyboard 18 and the operator group 22 and transmit the tone information generated based on the song data and style data to the tone generator 20 And a process for controlling the sound source 20 to generate a musical tone.

【0030】然るに、RAM16には、ソング・データ
を記憶しておくソング・データ・メモリと、エンディン
グ・データを含むスタイル・データを記憶しておくスタ
イル・データ・メモリとが設定されている。
The RAM 16 is provided with a song data memory for storing song data and a style data memory for storing style data including ending data.

【0031】また、CPU12は、内部において実行さ
れる処理を電子楽器の機能的に分類した場合には、上記
したプログラムに基づいてRAM16からソング・デー
タを読み出して音源20へ供給するなどの自動演奏装置
としての機能の動作を実行するコンポーザー12aと、
上記したプログラムに基づいてRAM16からスタイル
・データを繰り返し読み出して音源20へ供給するなど
の自動伴奏装置としての機能の動作を実行するアレンジ
ャー12bと、上記したプログラムに基づいてコンポー
ザー12aとアレンジャー12bとに対して各種制御を
行うためのティック・イベント・マネージャー12cと
により構成される。
When the processing executed in the CPU 12 is categorized according to the function of the electronic musical instrument, the CPU 12 reads out song data from the RAM 16 and supplies it to the tone generator 20 based on the above-mentioned program. A composer 12a that performs an operation of a function as a device;
An arranger 12b that performs the function of an automatic accompaniment device such as repeatedly reading style data from the RAM 16 based on the above-described program and supplying the style data to the tone generator 20, and a composer 12a and an arranger 12b based on the above-described program. And a tick event manager 12c for performing various controls.

【0032】ここにおいて、CPU12に対して時間情
報を与えるタイマー24について説明すると、タイマー
24からCPU12に対して与えられる時間情報とし
て、コンポーザー12aによる自動演奏やアレンジャー
12bによる自動伴奏のテンポを制御するテンポ情報
や、CPU12の処理時間を制御するマスター・クロッ
クなどを発生する。
Here, the timer 24 for giving time information to the CPU 12 will be described. As the time information given from the timer 24 to the CPU 12, the tempo for controlling the tempo of the automatic performance by the composer 12a and the automatic accompaniment by the arranger 12b is described. It generates information, a master clock for controlling the processing time of the CPU 12, and the like.

【0033】然るに、ティック・イベント・マネージャ
ー12cは、タイマー24から出力されるテンポ情報に
従って、コンポーザー12aに対して、ソング・データ
の読み出しならびに書き込みを指示する制御信号を発生
する。
The tick event manager 12c generates a control signal for instructing the composer 12a to read and write song data in accordance with the tempo information output from the timer 24.

【0034】コンポーザー12aが、ティック・イベン
ト・マネージャー12cからのソング・データの書き込
みを指示する制御信号を受信すると、ソング・データの
書き込み処理を行う。このソング・データの書き込み処
理は、公知の技術であるため詳細な説明は省略するが、
鍵盤18で操作された鍵に対応する音高、音色、音長な
らびに各種の制御情報を、ティック・イベント・マネー
ジャー12cからの制御信号(テンポ情報に対応してい
る)に従い、操作されたタイミングを表す時間情報とと
もに順次RAM16のソング・データ・メモリに記憶し
ていく。そして、全てのソング・データを記憶した時点
で、ソング・データの終了を示すデータたる「EOD」
を記憶する。
When the composer 12a receives a control signal instructing writing of song data from the tick event manager 12c, it performs song data writing processing. Since the song data writing process is a known technique, a detailed description thereof will be omitted.
The pitch, timbre, tone length and various control information corresponding to the key operated on the keyboard 18 are determined based on a control signal (corresponding to tempo information) from the tick event manager 12c. The time information is sequentially stored in the song data memory of the RAM 16 together with the time information. When all the song data has been stored, the data "EOD" indicating the end of the song data is stored.
Is stored.

【0035】また、コンポーザー12aが、ティック・
イベント・マネージャー12cからのソング・データの
読み出しを指示する制御信号を受信すると、ソング・デ
ータの読み出し処理を行う。このソング・データの読み
出し処理も、公知の技術であるため詳細な説明は省略す
るが、RAM16のソング・データ・メモリに記憶され
ているソング・データを、ティック・イベント・マネー
ジャー12cからの制御信号と操作されたタイミングを
表す時間情報とを順次比較し、鍵盤18で操作された鍵
に対応する音高、音色、音長ならびに各種の制御情報を
読み出し、これらの情報を音源20へ送出する。そし
て、全てのソング・データを読み出した場合には、ソン
グ・データの終了を示す「EOD」を検出することによ
って、コンポーザー12aはその動作を停止する。
The composer 12a has a tick
Upon receiving a control signal instructing the reading of song data from the event manager 12c, a song data reading process is performed. This song data readout process is also a known technique, so a detailed description thereof will be omitted. However, the song data stored in the song data memory of the RAM 16 is transferred to a control signal from the tick event manager 12c. And the time information indicating the operation timing are sequentially compared, and the pitch, timbre, tone length and various control information corresponding to the key operated on the keyboard 18 are read out, and these information are transmitted to the sound source 20. When all the song data has been read, the composer 12a stops its operation by detecting "EOD" indicating the end of the song data.

【0036】さらに、ティック・イベント・マネージャ
ー12cは、タイマー24から出力されるテンポ情報に
従って、アレンジャー12bに対して、スタイル・デー
タの読み出しを指示する制御信号を発生する。
Further, the tick event manager 12c generates a control signal for instructing the arranger 12b to read style data in accordance with the tempo information output from the timer 24.

【0037】アレンジャー12bが、ティック・イベン
ト・マネージャー12cからのスタイル・データの読み
出しを指示する制御信号を受信すると、スタイル・デー
タの読み出し処理を行う。このスタイル・データの読み
出し処理も、公知の技術であるため詳細な説明は省略す
るが、鍵盤18で操作された鍵に対応するコード・ネー
ムとルート音とを検出し、さらに操作子群22の後述す
るスタイル選択ボタン22i(伴奏を行うリズムや伴奏
形態を選択することができる。)によって選択されたス
タイルのスタイル・データの音高を変換し、ティック・
イベント・マネージャー12cの制御信号に従い、順次
音高、音色、音長ならびに各種の制御情報を読み出し、
これらの情報を音源20へ送出する。そして、操作子2
2の後述するアレンジャー・エンディング・ボタン22
fが操作された場合には、上記と同様にしてエンディン
グ・データを読み出した後に、アレンジャー12bはそ
の動作を停止する。
When the arranger 12b receives a control signal for instructing reading of style data from the tick event manager 12c, the style data is read out. The reading of the style data is also a well-known technique, and therefore detailed description is omitted. However, the chord name and the root sound corresponding to the key operated on the keyboard 18 are detected, and The pitch of the style data of the style selected by the style selection button 22i (which allows the user to select the rhythm and accompaniment style for accompaniment), which will be described later, is converted to a tick.
According to the control signal of the event manager 12c, the pitch, timbre, tone length and various control information are sequentially read out,
These pieces of information are transmitted to the sound source 20. And the operation element 2
2 Arranger ending button 22 described later
When f is operated, the ending data is read out in the same manner as described above, and then the arranger 12b stops its operation.

【0038】また、ティック・イベント・マネージャー
12cは、フローチャートを参照しながら後に詳述する
ように、コンポーザー12aとアレンジャー12bとの
演奏開始ならびに演奏停止の同期をとるように制御す
る。
The tick event manager 12c controls the composer 12a and the arranger 12b to synchronize the start and stop of the performance, as will be described later in detail with reference to a flowchart.

【0039】なお、音源は、上記のようにしてコンポー
ザー12aとアレンジャー12bとから送出された音
高、音色、音長ならびに各種の制御情報に従い、楽音を
発生させる。
The sound source generates a musical tone in accordance with the pitch, timbre, duration and various control information sent from the composer 12a and the arranger 12b as described above.

【0040】操作子群22は、ソング・データならびに
スタイル・データの選択や設定を行うスイッチ群(図示
せず)や、楽音に関する種々のパラメータや全体の音量
を入力するスイッチ群(図示せず)の他に、本発明の実
施に関連する操作子としては、コンポーザー・スタート
・ボタン22aと、コンポーザー・ストップ・ボタン2
2bと、コンポーザー録音ボタン22cと、アレンジャ
ー・スタート・ボタン22dと、アレンジャー・ストッ
プ・ボタン22eと、アレンジャー・エンディング・ボ
タン22fと、タイミング選択ボタン22gと、タイミ
ング設定ボタン22hと、スタイル選択ボタン22iと
が設定されており、各操作子の状態はCPU12に読み
込まれる。
The control group 22 includes switches (not shown) for selecting and setting song data and style data, and switches (not shown) for inputting various parameters relating to musical sounds and the overall volume. In addition, the composer start button 22a and the composer stop button 2
2b, a composer recording button 22c, an arranger start button 22d, an arranger stop button 22e, an arranger ending button 22f, a timing selection button 22g, a timing setting button 22h, and a style selection button 22i. Is set, and the state of each operation element is read by the CPU 12.

【0041】コンポーザー・スタート・ボタン22a
は、コンポーザー12aに演奏開始の指示を与えるため
のボタンであり、コンポーザー・ストップ・ボタン22
bは、コンポーザー12aに演奏停止の指示を与えるた
めのボタンであり、コンポーザー録音ボタン22cは、
コンポーザー12aでソング・データの記憶の開始の指
示を与えるためのボタンである。
Composer start button 22a
Is a button for giving an instruction to start playing to the composer 12a, and a composer stop button 22
b is a button for giving an instruction to stop playing to the composer 12a, and the composer recording button 22c is
A button for giving an instruction to start storing song data in the composer 12a.

【0042】アレンジャー・スタート・ボタン22d
は、アレンジャー12bに演奏開始の指示を与えるため
のボタンであり、アレンジャー・ストップ・ボタン22
eは、アレンジャー12bに演奏停止の指示を与えるた
めのボタンであり、アレンジャー・エンディング・ボタ
ン22fは、アレンジャー12bによる演奏をエンディ
ング・パターンに切り替える指示を与えるためのボタン
である。
Arranger start button 22d
Is a button for giving an instruction to start a performance to the arranger 12b, and an arranger stop button 22
"e" is a button for giving an instruction to stop the performance to the arranger 12b, and the arranger ending button 22f is a button for giving an instruction to switch the performance by the arranger 12b to the ending pattern.

【0043】タイミング選択ボタン22gは、フローチ
ャートを参照しながら後に詳述する処理において、コン
ポーザー12aとアレンジャー12bとが同期する第1
のタイミングや、ソング・データにアレンジャー・スタ
ート情報を記憶する第2のタイミングを選択するための
ボタンであり、タイミング選択ボタン22gを操作する
毎に、上記した第1のタイミングと第2のタイミングと
を交互に選択できるようになっている。
The timing selection button 22g is a first button for synchronizing the composer 12a and the arranger 12b in a process described later in detail with reference to a flowchart.
And a second timing for storing the arranger start information in the song data. Each time the timing selection button 22g is operated, the first timing and the second timing are switched. Can be selected alternately.

【0044】タイミング設定ボタン22hは、上記した
第1のタイミングと第2のタイミングとを拍、小節、デ
ィビジョンの3つのタイミングから設定するためのボタ
ンであり、タイミング設定ボタン22hを操作する毎
に、拍、小節、ディビジョン(数小節からなるスタイル
のパターン・データの区切れ)が順次選択できるように
なっている。
The timing setting button 22h is a button for setting the first timing and the second timing from the three timings of beat, bar, and division. Each time the timing setting button 22h is operated, Beats, measures, and divisions (divisions of pattern data in a style consisting of several measures) can be sequentially selected.

【0045】スタイル選択ボタン22iは、スタイル・
データを選択するためのボタンであり、これにより伴奏
を行うリズムや伴奏形態を選択することができる。
The style selection button 22i is
This button is used to select data, and allows the user to select a rhythm and an accompaniment form for performing accompaniment.

【0046】次に、CPU12のワーキング・メモリと
しての書き込み可能メモリに設定されるフラグやカウン
タの中で、本発明の実施に関連するフラグやカウンタを
説明する。
Next, among the flags and counters set in the writable memory as the working memory of the CPU 12, the flags and counters related to the embodiment of the present invention will be described.

【0047】(1)コンポーザー・スタート・フラグ コンポーザー12aの動作状態を表し、「0」で停止中
を表し、「1」でソング・データの再生中(実行中)を
表す。
(1) Composer start flag Indicates the operating state of the composer 12a. "0" indicates that the composer is stopped, and "1" indicates that the song data is being reproduced (executing).

【0048】(2)アレンジャー・スタート・フラグ アレンジャー12bの動作状態を表し、「0」で停止中
を表し、「1」でスタイル・データの再生中(実行中)
を表す。
(2) Arranger start flag Indicates the operating state of the arranger 12b. "0" indicates stop, and "1" indicates that style data is being reproduced (executing).
Represents

【0049】(3)アレンジャー・スタート準備フラグ アレンジャー12bの演奏開始が指示された時点で
「1」にセットされ、実際にアレンジャー12bがスタ
ートした時点で「0」にクリアされる。
(3) Arranger start preparation flag This flag is set to "1" when the start of the performance of the arranger 12b is instructed, and cleared to "0" when the arranger 12b actually starts.

【0050】(4)アレンジャー・エンディング・フラ
グ アレンジャー12bが、エンディング・データ再生中に
「1」にセットされる。
(4) Arranger Ending Flag The arranger 12b is set to "1" during ending data reproduction.

【0051】(5)コンポーザー録音フラグ コンポーザー12aが、ソング・データを録音中に
「1」にセットされる。
(5) Composer recording flag The composer 12a is set to "1" while recording song data.

【0052】(6)ティック・イベント・カウンタ タイマー24からCPU12へ出力される割り込み信号
によるインタラプトの度に起動される後述するタイマー
・インタラプト処理(図8)において「1」カウント・
アップされ、後述するティック・イベント処理(図9)
を行っていないティック・イベントの数を示す。
(6) Tick event counter In a timer interrupt process (FIG. 8) described later, which is started each time an interrupt is generated by an interrupt signal output from the timer 24 to the CPU 12, "1" count is counted.
Tick event processing to be described later (Fig. 9)
Indicates the number of tick events that have not performed

【0053】ここにおいて、ティックとは、ソング・デ
ータおよびスタイル・データの時間的な最小単位であ
り、「1ティック」は、「四分音符の120分の1」の
時間間隔に相当する。
Here, a tick is a minimum unit of time of song data and style data, and "1 tick" corresponds to a time interval of "1 / 120th of a quarter note".

【0054】また、ティック・イベントとは、再生テン
ポによって決定される一定時間間隔毎に、コンポーザー
12aならびにアレンジャー12bに対し、1ティック
分のデータの読み出しを指示するイベントである。そし
て、コンポーザー12aならびにアレンジャー12bは
1ティック分のデータを読み出すと、データの読み出し
アドレスを、次のティックのデータが記憶されているア
ドレスに更新する。
The tick event is an event that instructs the composer 12a and the arranger 12b to read one tick of data at regular time intervals determined by the reproduction tempo. When the composer 12a and the arranger 12b read the data for one tick, the data read address is updated to the address where the data of the next tick is stored.

【0055】(7)ディビジョン内ティック・カウンタ ティック・イベントが1つ処理される度に「1」カウン
ト・アップされ、カウンタの値がディビジョン(数小節
からなるスタイルのパターン・データの区切れ)のティ
ック数に等しくなると「0」に初期化される。つまり、
現在のティックがディビジョン内の何番目にあたるかを
表し、ディビジョンの先頭を検出するために用いられ
る。
(7) Tick counter in division Each time one tick event is processed, "1" is counted up, and the value of the counter becomes the division (division of style pattern data of several measures). When it becomes equal to the number of ticks, it is initialized to "0". That is,
Indicates the number of the current tick in the division and is used to find the beginning of the division.

【0056】なお、図16には、上記したディビジョ
ン、小節およびティックの関係が示されており、上記し
たように複数の小節によりディビジョンが構成され、各
小節には、四分音符の120分の1の時間間隔で複数の
ティックが存在する。
FIG. 16 shows the relationship between the above-mentioned divisions, measures and ticks. The division is composed of a plurality of measures as described above, and each measure has a 120th of a quarter note. There are multiple ticks in one time interval.

【0057】以上の構成において、フローチャートを参
照しながら、上記した本発明による電子楽器の作用およ
び動作について説明する。
The operation and operation of the above-described electronic musical instrument according to the present invention in the above configuration will be described with reference to flowcharts.

【0058】図2には、メイン・ルーチンのフローチャ
ートが示されている。この電子楽器に電源が投入される
とメイン・ルーチンが起動されて、ステップS202に
おいて、フラグやカウンタなどの初期化を行う。
FIG. 2 shows a flowchart of the main routine. When power is supplied to the electronic musical instrument, a main routine is started, and in step S202, flags and counters are initialized.

【0059】この初期化においては、フラグおよびカウ
ンタを以下に示す値にセットする。 ・コンポーザー・スタート・フラグ : 0 ・コンポーザー録音フラグ : 0 ・コンポーザー録音準備フラグ : 0 ・アレンジャー・スタート・フラグ : 0 ・アレンジャー・スタート準備フラグ : 0 ・アレンジャー・エンディング・フラグ : 0 ・ティック・イベント・カウンタ : 0 ・ディビジョン内ティック・カウンタ : 0
In this initialization, the flag and the counter are set to the following values. -Composer start flag: 0-Composer recording flag: 0-Composer recording preparation flag: 0-Arranger start flag: 0-Arranger start preparation flag: 0-Arranger ending flag: 0-Tick event Counter: 0 ・ Tick in division counter: 0

【0060】ステップS202における初期化が終了す
ると、このメイン・ルーチンのサブ・ルーチンとして、
スイッチ操作処理(ステップS204)とチェック・イ
ベント処理(ステップS206)とのルーチンを、電源
が遮断されるまで繰り返し行う。
When the initialization in step S202 is completed, as a subroutine of this main routine,
The routine of the switch operation process (step S204) and the check event process (step S206) is repeated until the power is turned off.

【0061】図3には、ステップS204のスイッチ操
作処理ルーチンが示されており、まずステップS302
において、コンポーザー・スタート・ボタン22aが操
作されたか否かを判断する。
FIG. 3 shows a switch operation processing routine of step S204.
In, it is determined whether or not the composer start button 22a has been operated.

【0062】ステップS302の判断結果が肯定
(Y)、即ち、コンポーザー・スタート・ボタン22a
が操作された場合には、ステップS304へ進み、サブ
・ルーチンとしてコンポーザー・スタート処理のルーチ
ンを実行し、ステップS306へ進む。
If the decision result in the step S302 is affirmative (Y), that is, the composer start button 22a
Is operated, the process proceeds to step S304, executes a composer start process routine as a subroutine, and proceeds to step S306.

【0063】一方、ステップS302の判断結果が否定
(N)、即ち、コンポーザー・スタート・ボタン22a
が操作されていない場合には、何らの処理も行うことな
くステップS306へ進む。
On the other hand, if the decision result in the step S302 is negative (N), that is, the composer start button 22a
If is not operated, the process proceeds to step S306 without performing any processing.

【0064】ステップS306では、コンポーザー・ス
トップ・ボタン22bが操作されたか否かを判断する。
In step S306, it is determined whether or not the composer stop button 22b has been operated.

【0065】ステップS306の判断結果が肯定、即
ち、コンポーザー・ストップ・ボタン22bが操作され
た場合には、ステップS308へ進み、サブ・ルーチン
としてコンポーザー・ストップ処理のルーチンを実行
し、ステップS310へ進む。
If the decision result in the step S306 is affirmative, that is, if the composer stop button 22b is operated, the process proceeds to a step S308, where a composer stop process routine is executed as a subroutine, and the process proceeds to a step S310. .

【0066】一方、ステップS306の判断結果が否
定、即ち、コンポーザー・ストップ・ボタン22bが操
作されていない場合には、何らの処理も行うことなくス
テップS310へ進む。
On the other hand, if the decision result in the step S306 is negative, that is, if the composer stop button 22b is not operated, the process proceeds to the step S310 without performing any processing.

【0067】ステップS310では、アレンジャー・ス
タート・ボタン22dが操作されたか否かを判断する。
In step S310, it is determined whether or not the arranger start button 22d has been operated.

【0068】ステップS310の判断結果が肯定、即
ち、アレンジャー・スタート・ボタン22dが操作され
た場合には、ステップS312へ進み、サブ・ルーチン
としてアレンジャー・スタート処理のルーチンを実行
し、ステップS314へ進む。
If the result of the determination in step S310 is affirmative, that is, if the arranger start button 22d has been operated, the flow advances to step S312 to execute an arranger start processing routine as a subroutine, and the flow advances to step S314. .

【0069】一方、ステップS310の判断結果が否
定、即ち、アレンジャー・スタート・ボタン22dが操
作されていない場合には、何らの処理も行うことなくス
テップS314へ進む。
On the other hand, if the decision result in the step S310 is negative, that is, if the arranger start button 22d is not operated, the process proceeds to the step S314 without performing any processing.

【0070】ステップS314では、アレンジャー・ス
トップ・ボタン22eが操作されたか否かを判断する。
In step S314, it is determined whether or not the arranger stop button 22e has been operated.

【0071】ステップS314の判断結果が肯定、即
ち、アレンジャー・ストップ・ボタン22eが操作され
た場合には、ステップS316へ進み、サブ・ルーチン
としてアレンジャー・ストップ処理のルーチンを実行
し、ステップS318へ進む。
If the result of the determination in step S314 is affirmative, that is, if the arranger stop button 22e has been operated, the flow advances to step S316 to execute an arranger stop processing routine as a subroutine, and the flow advances to step S318. .

【0072】一方、ステップS314の判断結果が否
定、即ち、アレンジャー・ストップ・ボタン22eが操
作されていない場合には、何らの処理も行うことなくス
テップS318へ進む。
On the other hand, if the decision result in the step S314 is negative, that is, if the arranger stop button 22e is not operated, the process proceeds to the step S318 without performing any processing.

【0073】ステップS318では、アレンジャー・エ
ンディング・ボタン22fが操作されたか否かを判断す
る。
In step S318, it is determined whether or not the arranger ending button 22f has been operated.

【0074】ステップS318の判断結果が肯定、即
ち、アレンジャー・エンディング・ボタン22fが操作
された場合には、ステップS320へ進み、サブ・ルー
チンとしてアレンジャー・エンディング処理のルーチン
を実行し、ステップS322へ進む。
If the result of the determination in step S318 is affirmative, that is, if the arranger ending button 22f has been operated, the flow proceeds to step S320, executes the arranger ending processing routine as a subroutine, and proceeds to step S322. .

【0075】一方、ステップS318の判断結果が否
定、即ち、アレンジャー・エンディング・ボタン22f
が操作されていない場合には、何らの処理も行うことな
くステップS322へ進む。
On the other hand, if the decision result in the step S318 is negative, that is, the arranger ending button 22f
If has not been operated, the process proceeds to step S322 without performing any processing.

【0076】ステップS322では、コンポーザー録音
ボタン22cが操作されたか否かを判断する。
In step S322, it is determined whether or not the composer recording button 22c has been operated.

【0077】ステップS322の判断結果が肯定、即
ち、コンポーザー録音ボタン22cが操作された場合に
は、ステップS324へ進み、サブ・ルーチンとしてコ
ンポーザー録音準備処理のルーチンを実行し、ステップ
S326へ進む。
If the result of the determination in step S322 is affirmative, that is, if the composer recording button 22c has been operated, the flow advances to step S324, where a composer recording preparation processing routine is executed as a subroutine, and the flow advances to step S326.

【0078】一方、ステップS322の判断結果が否
定、即ち、コンポーザー録音ボタン22cが操作されて
いない場合には、何らの処理も行うことなくステップS
326へ進む。
On the other hand, if the decision result in the step S322 is negative, that is, if the composer recording button 22c is not operated, the step S322 is performed without performing any processing.
Proceed to 326.

【0079】ステップS326では、上記各ステップに
おいて操作の有無の判断対象としたコンポーザー・スタ
ート・ボタン22a、コンポーザー・ストップ・ボタン
22b、アレンジャー・スタート・ボタン22d、アレ
ンジャー・ストップ・ボタン22e、アレンジャー・エ
ンディング・ボタン22fおよびコンポーザー録音ボタ
ン22c以外のその他の操作子が操作されたか否かを判
断する。
In step S326, the composer start button 22a, composer stop button 22b, arranger start button 22d, arranger stop button 22e, arranger ending which are the targets of the operation determination in the above steps. -It is determined whether or not another operation element other than the button 22f and the composer recording button 22c has been operated.

【0080】ステップS326の判断結果が肯定、即
ち、上記したその他の操作子が操作された場合には、ス
テップS328へ進み、操作されたその他の操作子に応
じた処理を実行する。
If the decision result in the step S326 is affirmative, that is, if the above-mentioned other operation element is operated, the process proceeds to a step S328 to execute a process according to the operated other operation element.

【0081】そして、ステップS328の処理を終了す
ると、スイッチ操作処理ルーチンを終了してメイン・ル
ーチンへリターンする。
When the processing in step S328 is completed, the switch operation processing routine is completed, and the process returns to the main routine.

【0082】一方、ステップS326の判断結果が否
定、即ち、上記したその他の操作子が操作されていない
場合には、何らの処理も行うことなくスイッチ操作処理
ルーチンを終了してメイン・ルーチンへリターンする。
On the other hand, if the decision result in the step S326 is negative, that is, if the above-mentioned other operation elements are not operated, the switch operation processing routine is terminated without performing any processing and the processing returns to the main routine. I do.

【0083】次に、図4に示すフローチャートを参照し
ながら、ステップS304におけるコンポーザー・スタ
ート処理ルーチンを詳細に説明する。
Next, the composer start processing routine in step S304 will be described in detail with reference to the flowchart shown in FIG.

【0084】即ち、コンポーザー・スタート・ボタン2
2aを操作すると、図4に示すコンポーザー・スタート
処理ルーチンが起動されるものであり、このコンポーザ
ー・スタート処理ルーチンにおいては、まずステップS
402において、コンポーザー・スタート・フラグが
「0」であるか否かを判断する。
That is, the composer start button 2
By operating the button 2a, the composer start processing routine shown in FIG. 4 is started.
At 402, it is determined whether the composer start flag is "0".

【0085】ステップS402の判断結果が否定、即
ち、コンポーザー・スタート・フラグが「1」である場
合には、既にコンポーザー12aが実行中であるという
ことなので、何らの処理も行うことなくコンポーザー・
スタート処理ルーチンを終了してスイッチ操作処理ルー
チンへリターンする。
If the result of the determination in step S402 is negative, that is, if the composer start flag is "1", it means that the composer 12a is already being executed, so that the composer 12a is being executed without any processing.
The start processing routine is ended, and the process returns to the switch operation processing routine.

【0086】一方、ステップS402の判断結果が肯
定、即ち、コンポーザー・スタート・フラグが「0」で
ある場合には、ステップS404へ進み、コンポーザー
・スタート・フラグに「1」をセットするとともに、テ
ィック・イベント・カウンタおよびディビジョン内ティ
ック・カウンタを「0」に初期化する。
On the other hand, if the decision result in the step S402 is affirmative, that is, if the composer start flag is "0", the process proceeds to a step S404, where the composer start flag is set to "1" and the tick is set. -Initialize the event counter and the tick counter within the division to "0".

【0087】ステップS404の処理を終了すると、ス
テップS406へ進み、コンポーザー録音準備フラグが
「1」であるか否かを判断する。
When the processing in step S404 is completed, the flow advances to step S406 to determine whether or not the composer recording preparation flag is "1".

【0088】ステップS406の判断結果が否定、即
ち、コンポーザー録音準備フラグが「0」である場合に
は、既にコンポーザー12aが録音準備中ではないとい
うことなので、何らの処理も行うことなくコンポーザー
・スタート処理ルーチンを終了してスイッチ操作処理ル
ーチンへリターンする。
If the result of the determination in step S406 is negative, that is, if the composer recording preparation flag is "0", it means that the composer 12a is not already preparing for recording, so that the composer start without any processing is performed. The processing routine ends, and the process returns to the switch operation processing routine.

【0089】一方、ステップS406の判断結果が肯
定、即ち、コンポーザー録音準備フラグが「0」である
場合には、ステップS408へ進み、コンポーザー録音
フラグに「1」をセットするとともに、コンポーザー録
音準備フラグを「0」に初期化する。
On the other hand, if the decision result in the step S406 is affirmative, that is, if the composer recording preparation flag is "0", the process proceeds to a step S408, where the composer recording flag is set to "1", and the composer recording preparation flag is set. Is initialized to “0”.

【0090】そして、ステップS408の処理を終了す
ると、コンポーザー・スタート処理ルーチンを終了して
スイッチ操作処理ルーチンへリターンする。。
When the processing in step S408 is completed, the composer start processing routine is terminated and the processing returns to the switch operation processing routine. .

【0091】次に、図5に示すフローチャートを参照し
ながら、ステップS308におけるコンポーザー・スト
ップ処理ルーチンを詳細に説明する。
Next, the composer stop processing routine in step S308 will be described in detail with reference to the flowchart shown in FIG.

【0092】即ち、コンポーザー・ストップ・ボタン2
2bを操作すると、図5に示すコンポーザー・ストップ
処理ルーチンが起動されるものであり、このコンポーザ
ー・ストップ処理ルーチンにおいては、まずステップS
502において、コンポーザー・スタート・フラグが
「1」であるか否かを判断する。
That is, the composer stop button 2
By operating the button 2b, a composer stop processing routine shown in FIG. 5 is started. In this composer stop processing routine, first, step S
At 502, it is determined whether the composer start flag is "1".

【0093】ステップS502の判断結果が肯定、即
ち、コンポーザー・スタート・フラグが「1」である場
合には、既にコンポーザー12aが実行中であるという
ことなので、ステップS504へ進み、コンポーザー・
スタート・フラグを「0」にする。
If the result of the determination in step S502 is affirmative, that is, if the composer start flag is "1", it means that the composer 12a is already being executed.
Set the start flag to "0".

【0094】ステップS504の処理を終了すると、ス
テップS506へ進み、コンポーザー録音フラグが
「1」であるか否かを判断する。
When the processing in step S504 is completed, the flow advances to step S506 to determine whether or not the composer recording flag is "1".

【0095】ステップS506の判断結果が肯定、即
ち、コンポーザー録音フラグが「1」である場合には、
既にコンポーザー12aが録音中であるということなの
で、ステップS508へ進み、コンポーザー録音フラグ
を「0」にする。
If the judgment result in the step S506 is affirmative, that is, if the composer recording flag is "1",
Since the composer 12a is already recording, the flow advances to step S508 to set the composer recording flag to "0".

【0096】ステップS508の処理を終了した場合、
およびステップS506の判断結果が否定、即ち、コン
ポーザー録音フラグが「0」である場合には、ステップ
S510へ進み、アレンジャー・スタート・フラグが
「1」であるか否かを判断する。
When the processing in step S508 is completed,
If the result of the determination in step S506 is negative, that is, if the composer recording flag is "0", the flow advances to step S510 to determine whether or not the arranger start flag is "1".

【0097】ステップS510の判断結果が肯定、即
ち、アレンジャー・スタート・フラグが「1」である場
合には、既にアレンジャー12bが実行中であるという
ことなので、ステップS512へ進み、アレンジャー・
スタート・フラグを「0」にする。
If the result of the determination in step S510 is affirmative, that is, if the arranger start flag is "1", it means that the arranger 12b is already being executed, so the flow proceeds to step S512 and the arranger.
Set the start flag to "0".

【0098】そして、ステップS512の処理を終了す
ると、コンポーザー・ストップ処理ルーチンを終了して
スイッチ操作処理ルーチンへリターンする。
When the processing in step S512 is completed, the composer stop processing routine is completed and the process returns to the switch operation processing routine.

【0099】一方、ステップS510の判断結果が否
定、即ち、アレンジャー・スタート・フラグが「0」で
ある場合には、何らの処理も行うことなくコンポーザー
・ストップ処理ルーチンを終了して、スイッチ操作処理
ルーチンへリターンする。
On the other hand, if the decision result in the step S510 is negative, that is, if the arranger start flag is "0", the composer stop processing routine is terminated without performing any processing, and the switch operation processing is terminated. Return to routine.

【0100】また、ステップS502の判断結果が否
定、即ち、コンポーザー・スタート・フラグが「0」で
ある場合には、ステップS514へ進み、コンポーザー
録音準備フラグが「1」であるか否かを判断する。
If the result of the determination in step S502 is negative, that is, if the composer start flag is "0", the flow advances to step S514 to determine whether or not the composer recording preparation flag is "1". I do.

【0101】ステップS514の判断結果が肯定、即
ち、コンポーザー録音準備フラグが「1」である場合に
は、既にコンポーザー12aが録音準備中であるという
ことなので、ステップS516へ進み、コンポーザー録
音準備フラグを「0」に初期化する。
If the result of the determination in step S514 is affirmative, that is, if the composer recording preparation flag is "1", it means that the composer 12a is already preparing for recording, so the flow advances to step S516 to set the composer recording preparation flag. Initialize to "0".

【0102】そして、ステップS516の処理を終了す
ると、コンポーザー・ストップ処理ルーチンを終了して
スイッチ操作処理ルーチンへリターンする。
Then, when the processing in step S516 is completed, the composer stop processing routine is terminated and the process returns to the switch operation processing routine.

【0103】一方、ステップS514の判断結果が否
定、即ち、コンポーザー録音準備フラグが「0」である
場合には、何らの処理も行うことなくコンポーザー・ス
トップ処理ルーチンを終了して、スイッチ操作処理ルー
チンへリターンする。
On the other hand, if the decision result in the step S514 is negative, that is, if the composer recording preparation flag is "0", the composer stop processing routine is terminated without performing any processing, and the switch operation processing routine is terminated. Return to

【0104】次に、図6に示すフローチャートを参照し
ながら、ステップS312におけるアレンジャー・スタ
ート処理ルーチンを詳細に説明する。
Next, the arranger start processing routine in step S312 will be described in detail with reference to the flowchart shown in FIG.

【0105】即ち、アレンジャー・スタート・ボタン2
2dを操作すると、図6に示すアレンジャー・スタート
処理ルーチンが起動されるものであり、このアレンジャ
ー・スタート処理ルーチンにおいては、まずステップ6
02において、アレンジャー・スタート・フラグが
「0」であるか否かを判断する。
That is, the arranger start button 2
By operating 2d, an arranger start processing routine shown in FIG. 6 is started. In this arranger start processing routine, first, in step 6
At 02, it is determined whether or not the arranger start flag is "0".

【0106】ステップS602の判断結果が否定、即
ち、アレンジャー・スタート・フラグが「1」である場
合には、既にアレンジャー12bは実行中であるという
ことなので、何らの処理も行うことなくアレンジャー・
スタート処理ルーチンを終了して、スイッチ操作処理ル
ーチンへリターンする。
If the result of the determination in step S602 is negative, that is, if the arranger start flag is "1", it means that the arranger 12b is already being executed, so that the arranger 12b is not executed and no processing is performed.
The start processing routine ends, and the process returns to the switch operation processing routine.

【0107】一方、ステップS602の判断結果が肯
定、即ち、アレンジャー・スタート・フラグが「0」で
ある場合には、ステップS604へ進み、コンポーザー
・スタート・フラグが「0」であるか否かを判断する。
On the other hand, if the decision result in the step S602 is affirmative, that is, if the arranger start flag is "0", the flow advances to a step S604 to determine whether or not the composer start flag is "0". to decide.

【0108】ステップS604の判断結果が肯定、即
ち、コンポーザー・スタート・フラグが「0」である場
合には、コンポーザー12aは停止中であるということ
なので、ステップS606へ進み、アレンジャー・スタ
ート・フラグに「1」をセットするとともに、ティック
・イベント・カウンタおよびディビジョン内ティック・
カウンタを「0」に初期化する。
If the result of the determination in step S604 is affirmative, that is, if the composer start flag is "0", it means that the composer 12a is in the stopped state, so the process proceeds to step S606, where the arranger start flag is set. Set "1" and set the tick event counter and tick in division.
Initialize the counter to “0”.

【0109】そして、ステップS606の処理を終了す
ると、アレンジャー・スタート処理ルーチンを終了し
て、スイッチ操作処理ルーチンへリターンする。
Then, when the processing of step S606 is completed, the arranger start processing routine is completed, and the process returns to the switch operation processing routine.

【0110】一方、ステップS604の判断結果が否
定、即ち、コンポーザー・スタート・フラグが「1」で
ある場合には、既にコンポーザー12aが実行中である
ということなので、ステップS608へ進み、アレンジ
ャー・スタート準備フラグに「1」をセットする。この
とき、アレンジャー・スタート・フラグには、「1」を
セットしない。
On the other hand, if the decision result in the step S604 is negative, that is, if the composer start flag is "1", it means that the composer 12a is already being executed, so the flow proceeds to the step S608 and the arranger start Set the preparation flag to “1”. At this time, "1" is not set to the arranger start flag.

【0111】そして、ステップS608の処理を終了す
ると、アレンジャー・スタート処理ルーチンを終了し
て、スイッチ操作処理ルーチンへリターンする。
When the processing in step S608 is completed, the arranger start processing routine is ended, and the process returns to the switch operation processing routine.

【0112】次に、図7に示すフローチャートを参照し
ながら、ステップS312におけるアレンジャー・スト
ップ処理ルーチンを詳細に説明する。
Next, the arranger stop processing routine in step S312 will be described in detail with reference to the flowchart shown in FIG.

【0113】即ち、アレンジャー・ストップ・ボタン2
2eを操作すると、図7に示すアレンジャー・ストップ
処理ルーチンが起動されるものであり、このアレンジャ
ー・ストップ処理ルーチンにおいては、まずステップ7
02において、アレンジャー・スタート・フラグが
「1」であるか否かを判断する。
That is, the arranger stop button 2
By operating 2e, an arranger stop processing routine shown in FIG. 7 is started. In the arranger stop processing routine, first, step 7 is executed.
At 02, it is determined whether or not the arranger start flag is "1".

【0114】ステップS702の判断結果が肯定、即
ち、アレンジャー・スタート・フラグが「1」である場
合には、既にアレンジャー12bが実行中であるという
ことなので、ステップS704へ進み、アレンジャー・
スタート・フラグを「0」に初期化する。
If the result of the determination in step S702 is affirmative, that is, if the arranger start flag is "1", it means that the arranger 12b is already being executed.
Initialize the start flag to "0".

【0115】そして、ステップS704の処理を終了す
ると、アレンジャー・ストップ処理ルーチンを終了し
て、スイッチ操作処理ルーチンへリターンする。
When the processing in step S704 is completed, the arranger stop processing routine is ended, and the process returns to the switch operation processing routine.

【0116】一方、ステップS702の判断結果が否
定、即ち、アレンジャー・スタート・フラグが「0」で
ある場合には、何らの処理も行うことなくアレンジャー
・ストップ処理を終了し、スイッチ操作処理ルーチンへ
リターンする。
On the other hand, if the result of the determination in step S702 is negative, that is, if the arranger start flag is "0", the arranger stop processing is terminated without performing any processing, and the flow returns to the switch operation processing routine. To return.

【0117】次に、図8に示すフローチャートを参照し
ながら、ステップS320におけるアレンジャー・エン
ディング処理ルーチンを詳細に説明する。
Next, the arranger / ending processing routine in step S320 will be described in detail with reference to the flowchart shown in FIG.

【0118】即ち、アレンジャー・エンディング・ボタ
ン22fを操作すると、図8に示すアレンジャー・エン
ディング処理ルーチンが起動されるものであり、このア
レンジャー・エンディング処理ルーチンにおいては、ま
ずステップ802において、アレンジャー・エンディン
グ・フラグが「0」であるか否かを判断する。
That is, when the arranger ending button 22f is operated, the arranger ending processing routine shown in FIG. 8 is started. In the arranger ending processing routine, first, in step 802, the arranger ending processing routine is executed. It is determined whether the flag is “0”.

【0119】ステップS802の判断結果が否定、即
ち、アレンジャー・エンディング・フラグが「1」であ
る場合には、既にエンディング・データの再生中である
ということなので、何らの処理も行うことなくアレンジ
ャー・エンディング処理ルーチンを終了し、スイッチ操
作処理ルーチンへリターンする。
If the result of the determination in step S802 is negative, that is, if the arranger ending flag is "1", it means that the ending data is already being reproduced, so that the arranger ending is performed without any processing. The ending processing routine ends, and the process returns to the switch operation processing routine.

【0120】一方、ステップS802の判断結果が肯
定、即ち、アレンジャー・エンディング・フラグが
「0」である場合には、ステップS804へ進み、アレ
ンジャー・スタート・フラグが「1」であるか否かにつ
いて判断する。
On the other hand, if the decision result in the step S802 is affirmative, that is, if the arranger ending flag is "0", the flow advances to a step S804 to determine whether or not the arranger start flag is "1". to decide.

【0121】ステップS804の判断結果が否定、即
ち、アレンジャー・スタート・フラグが「0」である場
合には、アレンジャー12bが実行中ではないというこ
となので、エンディング・データを再生する必要もな
い。このため、何らの処理も行うことなくアレンジャー
・エンディング処理ルーチンを終了し、スイッチ操作処
理ルーチンへリターンする。
If the result of the determination in step S804 is negative, that is, if the arranger start flag is "0", it means that the arranger 12b is not being executed, and there is no need to reproduce the ending data. Therefore, the arranger / ending processing routine ends without performing any processing, and returns to the switch operation processing routine.

【0122】一方、ステップS804の判断結果が肯
定、即ち、アレンジャー・スタート・フラグが「1」で
ある場合には、ステップS806へ進み、アレンジャー
・エンディング・フラグに「1」をセットする。
On the other hand, if the decision result in the step S804 is affirmative, that is, if the arranger start flag is "1", the flow advances to a step S806 to set the arranger ending flag to "1".

【0123】そして、ステップS806の処理を終了す
ると、アレンジャー・エンディング処理ルーチンを終了
してスイッチ操作処理ルーチンへリターンする。
When the processing in step S806 is completed, the arranger / ending processing routine is terminated and the processing returns to the switch operation processing routine.

【0124】次に、図9に示すフローチャートを参照し
ながら、ステップS324におけるコンポーザー録音準
備処理ルーチンを詳細に説明する。
Next, the composer recording preparation processing routine in step S324 will be described in detail with reference to the flowchart shown in FIG.

【0125】即ち、コンポーザー録音ボタン22cを操
作すると、図9に示すコンポーザー録音準備処理ルーチ
ンが起動されるものであり、このコンポーザー録音準備
処理ルーチンにおいては、まずステップ902におい
て、コンポーザー・スタート・フラグが「0」であるか
否かを判断する。
That is, when the composer recording button 22c is operated, the composer recording preparation processing routine shown in FIG. 9 is started. In this composer recording preparation processing routine, first, in step 902, the composer start flag is set. It is determined whether it is "0".

【0126】ステップS902の判断結果が否定、即
ち、コンポーザー・スタート・フラグが「1」である場
合には、コンポーザー12aは既に実行中であるので、
何らの処理も行うことなくコンポーザー録音準備処理ル
ーチンを終了し、スイッチ操作処理ルーチンへリターン
する。
If the decision result in the step S902 is negative, that is, if the composer start flag is "1", the composer 12a has already been executed.
The composer recording preparation processing routine ends without performing any processing, and returns to the switch operation processing routine.

【0127】一方、ステップS902の判断結果が肯
定、即ち、コンポーザー・スタート・フラグが「0」で
ある場合には、ステップS904へ進み、アレンジャー
・スタート・フラグが「0」であるか否かを判断する。
On the other hand, if the decision result in the step S902 is affirmative, that is, if the composer start flag is "0", the flow advances to a step S904 to check whether or not the arranger start flag is "0". to decide.

【0128】ステップS904の判断結果が否定、即
ち、アレンジャー・スタート・フラグが「1」である場
合には、アレンジャー12bが実行中であるということ
なので、ステップS906へ進み、アレンジャー・スタ
ート・フラグを「0」にする。つまり、アレンジャー1
2bを停止することになる。そして、ステップS906
の処理を終了すると、ステップS908へ進む。
If the result of the determination in step S904 is negative, that is, if the arranger start flag is "1", it means that the arranger 12b is being executed, and the flow advances to step S906 to set the arranger start flag. Set to "0". In other words, Arranger 1
2b will be stopped. Then, Step S906
When the processing of is completed, the process proceeds to step S908.

【0129】一方、ステップS904の判断結果が肯
定、即ち、アレンジャー・スタート・フラグが「0」で
ある場合には、何らの処理も行うことなくステップS9
08へ進む。
On the other hand, if the decision result in the step S904 is affirmative, that is, if the arranger start flag is "0", the process proceeds to the step S9 without performing any processing.
Proceed to 08.

【0130】ステップS908では、コンポーザー録音
準備フラグが「0」であるか否かを判断する。
In step S908, it is determined whether or not the composer recording preparation flag is "0".

【0131】ステップS908の判断結果が肯定、即
ち、コンポーザー録音準備フラグが「0」である場合に
は、ステップS910へ進み、コンポーザー録音準備フ
ラグに「1」をセットする。
If the determination result in step S908 is affirmative, that is, if the composer recording preparation flag is "0", the flow advances to step S910 to set "1" in the composer recording preparation flag.

【0132】ステップS910の処理を終了すると、コ
ンポーザー録音準備処理ルーチンを終了して、スイッチ
操作処理ルーチンへリターンする。
When the processing of step S910 is completed, the composer recording preparation processing routine is terminated, and the process returns to the switch operation processing routine.

【0133】一方、ステップS908の判断結果が否
定、即ち、コンポーザー録音準備フラグが「1」である
場合には、何らの処理も行うことなくコンポーザー録音
準備処理ルーチンを終了して、スイッチ操作処理ルーチ
ンへリターンする。
On the other hand, if the decision result in the step S908 is negative, that is, if the composer recording preparation flag is "1", the composer recording preparation processing routine is terminated without performing any processing, and the switch operation processing routine is terminated. Return to

【0134】次に、図10に示すフローチャートを参照
しながら、ステップS328におけるその他の操作子に
関する処理のルーチンの一つとして、タイミング選択ボ
タン22gが操作された場合に起動されるタイミング選
択処理ルーチンを詳細に説明する。
Next, with reference to the flowchart shown in FIG. 10, as one of the processing routines relating to the other operators in step S328, a timing selection processing routine started when the timing selection button 22g is operated is described. This will be described in detail.

【0135】即ち、タイミング選択ボタン22gを操作
すると、図10に示すタイミング選択処理ルーチンが起
動されるものであり、このタイミング選択処理ルーチン
においては、まずステップ1002において、現在選択
されているタイミング・レジスタがタイミング・レジス
タ1であるか否かを判断する。
That is, when the timing selection button 22g is operated, the timing selection processing routine shown in FIG. 10 is started. In this timing selection processing routine, first, in step 1002, the currently selected timing register is selected. Is the timing register 1?

【0136】ステップS1002の判断結果が肯定、即
ち、現在選択されているタイミング・レジスタがタイミ
ング・レジスタ1である場合には、ステップS1004
へ進み、タイミング・レジスタとしてタイミング・レジ
スタ2を選択し直す。具体的には、タイミング・レジス
タを指定するアドレスを変更することになる。
If the decision result in the step S1002 is affirmative, that is, if the currently selected timing register is the timing register 1, the step S1004
Then, the timing register 2 is selected again as the timing register. Specifically, the address for specifying the timing register is changed.

【0137】そして、ステップS1004の処理を終了
すると、タイミング選択処理ルーチンを終了してスイッ
チ操作処理ルーチンへリターンする。
When the processing in step S1004 ends, the timing selection processing routine ends, and the process returns to the switch operation processing routine.

【0138】一方、ステップS1002の判断結果が否
定、即ち、現在選択されているタイミング・レジスタは
タイミング・レジスタ1ではなくてタイミング・レジス
タ2であるので、ステップS1006へ進み、タイミン
グ・レジスタとしてタイミング・レジスタ1を選択し直
す。具体的には、タイミング・レジスタを指定するアド
レスを変更する。
On the other hand, since the result of the determination in step S1002 is negative, that is, the currently selected timing register is not the timing register 1 but the timing register 2, the flow advances to step S1006 to set the timing register as the timing register. Select register 1 again. Specifically, the address specifying the timing register is changed.

【0139】そして、ステップS1006の処理を終了
すると、タイミング選択処理ルーチンを終了してスイッ
チ操作処理ルーチンへリターンする。
When the processing in step S1006 ends, the timing selection processing routine ends, and the process returns to the switch operation processing routine.

【0140】なお、本電子楽器においては、このように
必ずタイミング・レジスタ1かタイミング・レジスタ2
かの、いずれかのタイミング・レジスタが選択されてい
る。
In this electronic musical instrument, the timing register 1 or the timing register 2
One of the timing registers is selected.

【0141】次に、図11に示すフローチャートを参照
しながら、ステップS328におけるその他の操作子に
関する処理のルーチンの一つとして、タイミング設定ボ
タン22hが操作された場合に起動されるタイミング設
定処理ルーチンを詳細に説明する。
Next, with reference to the flowchart shown in FIG. 11, as one of the processing routines relating to the other operators in step S328, a timing setting processing routine started when the timing setting button 22h is operated is described. This will be described in detail.

【0142】即ち、タイミング設定ボタン22hを操作
すると、図11に示すタイミング設定処理ルーチンが起
動されるものであり、このタイミング設定処理ルーチン
においては、まずステップ1102において、現在選択
されているタイミングが拍に対するタイミングであるか
否かを判断する。
That is, when the timing setting button 22h is operated, the timing setting processing routine shown in FIG. 11 is started. In this timing setting processing routine, first, in step 1102, the currently selected timing is set to the beat. It is determined whether or not it is the timing for.

【0143】ステップS1102の判断結果が肯定、即
ち、現在選択されているタイミングが拍に対するタイミ
ングである場合には、ステップS1104へ進み、タイ
ミングを小節に対応するタイミングに設定し直す。具体
的には、タイミング・レジスタ1ならびにタイミング・
レジスタ2の中から上記したタイミング選択処理ルーチ
ンにおいて選択されている方のタイミング・レジスタ
へ、小節に対応するティック数を書き込むものである。
If the decision result in the step S1102 is affirmative, that is, if the currently selected timing is a timing for a beat, the process advances to a step S1104 to reset the timing to a timing corresponding to a bar. Specifically, the timing register 1 and the timing register
The number of ticks corresponding to the bar is written from the register 2 to the timing register selected in the above-described timing selection processing routine.

【0144】ステップS1104の処理を終了すると、
タイミング設定処理ルーチンを終了してスイッチ操作処
理ルーチンへリターンする。
When the processing in step S1104 ends,
The timing setting processing routine ends, and the process returns to the switch operation processing routine.

【0145】一方、ステップS1102の判断結果が否
定、即ち、現在選択されているタイミングが拍に対する
タイミングでない場合には、ステップS1106へ進
み、現在選択されているタイミングが小節に対するタイ
ミングであるか否かを判断する。
On the other hand, if the decision result in the step S1102 is negative, that is, if the currently selected timing is not a timing for a beat, the process proceeds to a step S1106 to determine whether or not the currently selected timing is a timing for a bar. Judge.

【0146】ステップS1106の判断結果が肯定、即
ち、現在選択されているタイミングが小節に対するタイ
ミングである場合には、ステップS1108へ進み、タ
イミングをディビジョンに対応するタイミングに設定し
直す。具体的には、タイミング・レジスタ1ならびにタ
イミング・レジスタ2の中から上記したタイミング選択
処理ルーチンにおいて選択されている方のタイミング・
レジスタへ、ディビジョンに対応するティック数を書き
込むものである。
[0146] If the decision result in the step S1106 is affirmative, that is, if the currently selected timing is a timing for a bar, the flow advances to a step S1108 to reset the timing to a timing corresponding to the division. More specifically, the timing register which is selected from the timing register 1 and the timing register 2 in the timing selection processing routine described above.
The number of ticks corresponding to the division is written in the register.

【0147】ステップS1108の処理を終了すると、
タイミング設定処理ルーチンを終了してスイッチ操作処
理ルーチンへリターンする。
When the processing in step S1108 ends,
The timing setting processing routine ends, and the process returns to the switch operation processing routine.

【0148】一方、ステップS1106の判断結果が否
定、即ち、現在選択されているタイミングが小節に対す
るタイミングでない場合には、現在設定されているタイ
ミングはディビジョンであるので、ステップS1110
へ進み、タイミングを拍に対応するタイミングに設定し
直す。具体的には、タイミング・レジスタ1ならびにタ
イミング・レジスタ2の中から上記したタイミング選択
処理ルーチンにおいて選択されている方のタイミング・
レジスタへ、拍に対応するティック数を書き込むもので
ある。
On the other hand, if the decision result in the step S1106 is negative, that is, if the currently selected timing is not the timing for the bar, the currently set timing is the division, so the step S1110 is executed.
Proceed to and reset the timing to the timing corresponding to the beat. More specifically, the timing register which is selected from the timing register 1 and the timing register 2 in the timing selection processing routine described above.
The number of ticks corresponding to the beat is written in the register.

【0149】ステップS1110の処理を終了すると、
タイミング設定処理ルーチンを終了してスイッチ操作処
理ルーチンへリターンする。
When the processing in step S1110 ends,
The timing setting processing routine ends, and the process returns to the switch operation processing routine.

【0150】なお、本電子楽器においては、このように
必ずいずれかのタイミングがタイミング・レジスタに記
憶されている。
In this electronic musical instrument, one of the timings is always stored in the timing register.

【0151】図12には、ステップS206のティック
・イベント処理ルーチンが示されており、まずステップ
S1202において、ティック・イベント・カウンタの
値が正であるか否かを判断する。ここにおいて、ティッ
ク・イベント・カウンタは、タイマー24からCPU1
2に出力される所定時間毎(例えば、テンポを100と
した場合には、「100×1/120」(分)であ
る。)の割り込み信号によって、メイン・ルーチンの割
り込みルーチンとして所定時間毎に起動される図13に
示すタイマー・インタラプト処理ルーチンにおいて、
「1」づつインクリメントされる。
FIG. 12 shows a tick event processing routine in step S206. First, in step S1202, it is determined whether or not the value of the tick event counter is positive. Here, the tick event counter is determined by the timer 24 from the CPU 1
2 at predetermined time intervals (for example, when the tempo is set to 100, it is “100 × 1/120” (minutes)). In the activated timer interrupt processing routine shown in FIG.
It is incremented by "1".

【0152】即ち、CPU12がタイマー24からの割
り込み信号を受信すると、図13のフローチャート示す
タイマー・インタラプト処理ルーチンが起動され、ステ
ップS1302において、ティック・イベント・カウン
タが「1」だけインクリメントされる。
That is, when the CPU 12 receives the interrupt signal from the timer 24, the timer interrupt processing routine shown in the flowchart of FIG. 13 is started, and in step S1302, the tick event counter is incremented by "1".

【0153】そして、ステップS1302の処理を終了
すると、タイマー・インタラプト処理ルーチンを終了し
てメイン・ルーチンにリターンする。
When the processing in step S1302 ends, the timer interrupt processing routine ends, and the process returns to the main routine.

【0154】上記したステップS1202の判断結果が
肯定、即ち、ティック・イベント・カウンタの値が正の
間はステップS1204以降の処理へ進み、ステップS
1204以降の処理を繰り返すことになるが、ステップ
S1202の判断結果が否定、即ち、ティック・イベン
ト・カウンタの値が0または負になると、ティック・イ
ベント処理を終了してメイン・ルーチンへリターンす
る。
If the result of the determination in step S1202 is positive, that is, while the value of the tick event counter is positive, the process proceeds to step S1204 and the subsequent steps.
The processing after step 1204 is repeated, but if the result of the determination in step S1202 is negative, that is, if the value of the tick event counter becomes 0 or negative, the tick event processing ends and returns to the main routine.

【0155】ステップS1204では、ディビジョン内
ティック・カウンタの値が、タイミング・レジスタ1に
記憶されたティック数と一致するか否かを判断する。
In the step S1204, it is determined whether or not the value of the tick counter in the division matches the number of ticks stored in the timing register 1.

【0156】ステップS1204の判断結果が肯定、即
ち、ディビジョン内ティック・カウンタの値とタイミン
グ・レジスタ1に記憶されたティック数とが一致する場
合であって、つまり設定されたタイミングであることが
検出された場合には、ステップS1206へ進み、アレ
ンジャー・スタート準備フラグに「1」がセットされて
いるか否かを判断する。
It is detected that the judgment result of step S1204 is affirmative, that is, the case where the value of the tick counter in the division matches the number of ticks stored in the timing register 1, that is, the set timing. If so, the flow advances to step S1206 to determine whether or not the arranger start preparation flag is set to "1".

【0157】ステップS1206の判断結果が肯定、即
ち、アレンジャー・スタート準備フラグに「1」がセッ
トされている場合には、ステップS1208へ進み、ア
レンジャー・スタート・フラグに「1」をセットすると
ともに、アレンジャー・スタート準備フラグを「0」に
する。そして、ステップS1208の処理を終了する
と、ステップS1210へ進む。
If the decision result in the step S1206 is affirmative, that is, if the arranger start preparation flag is set to "1", the flow advances to a step S1208 to set the arranger start flag to "1". Set the arranger start preparation flag to "0". When the process in step S1208 ends, the process advances to step S1210.

【0158】一方、ステップS1204の判断結果が否
定、ディビジョン内ティック・カウンタの値とタイミン
グ・レジスタ1に記憶されたティック数とが異なる場合
であって、つまり設定されたタイミングではない場合に
は、何らの処理をすることなくステップS1210へ進
む。
On the other hand, if the decision result in the step S1204 is negative, that is, if the value of the tick counter in the division and the number of ticks stored in the timing register 1 are different, that is, if it is not the set timing, The process proceeds to step S1210 without performing any processing.

【0159】さらに、ステップS1206の判断結果が
否定、アレンジャー・スタート準備フラグが「0」であ
る場合にも、何らの処理をすることなくステップS12
10へ進む。
Further, even if the result of the determination in step S1206 is negative and the arranger start preparation flag is "0", step S12 is performed without any processing.
Proceed to 10.

【0160】ステップS1210では、アレンジャー・
スタート・フラグが「1」であるか否かを判断する。
In step S1210, the arranger
It is determined whether or not the start flag is "1".

【0161】ステップS1210の判断結果が肯定、即
ち、アレンジャー・スタート・フラグが「1」である場
合には、ステップS1212へ進み、ディビジョン内テ
ィック・カウンタの値が、タイミング・レジスタ2に記
憶されたティック数と一致するか否かを判断する。
If the determination result in step S1210 is affirmative, that is, if the arranger start flag is "1", the flow advances to step S1212 to store the value of the tick counter in the division in the timing register 2. It is determined whether or not the number of ticks matches.

【0162】ステップS1212の判断結果が肯定、即
ち、ディビジョン内ティック・カウンタの値とタイミン
グ・レジスタ2に記憶されたティック数とが一致する場
合であって、つまり設定されたタイミングであることが
検出された場合には、ステップS1214へ進み、コン
ポーザー録音フラグに「1」がセットされているか否か
を判断する。
It is detected that the judgment result of step S1212 is affirmative, that is, the case where the value of the tick counter in the division matches the number of ticks stored in the timing register 2, that is, the set timing. If so, the process advances to step S1214 to determine whether the composer recording flag is set to "1".

【0163】ステップS1214の判断結果が肯定、即
ち、コンポーザー録音フラグに「1」がセットされてい
る場合には、ステップS1216へ進み、アレンジャー
・スタート情報をソング・データに記憶する。なお、こ
のステップS1216の処理に関しては、後述する動作
例においてより詳細に説明する。そして、ステップS1
216の処理を終了すると、ステップS1218へ進
む。
If the decision result in the step S1214 is affirmative, that is, if the composer recording flag is set to "1", the flow advances to a step S1216 to store the arranger start information in the song data. The processing in step S1216 will be described in more detail in an operation example described later. Then, step S1
Upon completion of the process in step S216, the process advances to step S1218.

【0164】一方、ステップS1212の判断結果が否
定、即ち、ディビジョン内ティック・カウンタの値とタ
イミング・レジスタ2に記憶されたティック数とが異な
る場合であって、つまり設定されたタイミングではない
場合には、何らの処理をすることなくステップS121
8へ進む。
On the other hand, if the result of the determination in step S1212 is negative, that is, if the value of the tick counter in the division is different from the number of ticks stored in the timing register 2, that is, if the timing is not the set timing, Is performed in step S121 without performing any processing.
Proceed to 8.

【0165】さらに、ステップS1214の判断結果が
否定、コンポーザー録音フラグが「0」である場合に
も、何らの処理をすることなくステップS1218へ進
む。
Further, if the judgment result in step S1214 is negative and the composer recording flag is "0", the flow advances to step S1218 without performing any processing.

【0166】ステップS1218では、ステップS12
10の判断処理においてアレンジャー・スタート・フラ
グが「1」(アレンジャー12bが実行中であることを
示す。)とされているので、ティック・イベント処理ル
ーチンのサブ・ルーチンとして後述するアレンジャー再
生処理のルーチンを実行する。そして、ステップS12
18の処理を終了すると、ステップS1220へ進む。
In step S1218, step S12
Since the arranger start flag is set to "1" (indicating that the arranger 12b is being executed) in the judgment processing of No. 10, an arranger reproduction processing routine, which will be described later, is a subroutine of the tick event processing routine. Execute Then, step S12
Upon completion of the process at S18, the process proceeds to Step S1220.

【0167】一方、ステップS1210の判断結果が否
定、即ち、アレンジャー・スタート・フラグが「0」で
ある場合には、何らの処理をすることなくステップS1
220へ進む。
On the other hand, if the decision result in the step S1210 is negative, that is, if the arranger start flag is “0”, the step S110 is performed without any processing.
Proceed to 220.

【0168】ステップS1220では、コンポーザー・
スタート・フラグが「1」であるか否かが判断される。
At step S1220, the composer
It is determined whether the start flag is "1".

【0169】ステップS1220の判断結果が肯定、即
ち、コンポーザー・スタート・フラグが「1」である場
合には、コンポーザー12aが実行中であるということ
なので、ステップS1222へ進み、ティック・イベン
ト処理ルーチンのサブ・ルーチンとして後述するコンポ
ーザー再生処理のルーチンを実行する。そして、ステッ
プS1222の処理を終了すると、ステップS1224
へ進む。
If the result of the determination in step S1220 is affirmative, that is, if the composer start flag is "1", it means that the composer 12a is being executed, so the flow advances to step S1222 to execute the tick event processing routine. As a sub-routine, a composer reproduction process routine to be described later is executed. Then, when the process of step S1222 is completed, step S1224
Proceed to.

【0170】一方、ステップS1220の判断結果が否
定、即ち、コンポーザー・スタート・フラグが「0」で
ある場合には、何らの処理をすることなくステップS1
224へ進む。
On the other hand, if the decision result in the step S1220 is negative, that is, if the composer start flag is “0”, the step S120 is executed without any processing.
Proceed to 224.

【0171】ステップS1224では、ディビジョン内
ティックカウンタを「1」カウント・アップし、その後
にステップS1226へ進む。
In step S1224, the tick counter in the division is counted up by "1", and thereafter, the flow advances to step S1226.

【0172】そして、ステップS1226では、ティッ
ク・イベント・カウンタを「1」カウント・ダウンし
て、その後にステップS1202へ戻り、ティック・イ
ベントカウンタの値が正の間は、上記したステップS1
202乃至ステップS1226によって構成されるルー
プの処理を繰り返す。
Then, in step S1226, the tick event counter is counted down by "1", and thereafter, the flow returns to step S1202, and while the value of the tick event counter is positive, the above-described step S1 is executed.
The processing of the loop constituted by steps 202 to S1226 is repeated.

【0173】次に、図14に示すフローチャートを参照
しながら、ステップS1218におけるアレンジャー再
生処理ルーチンを詳細に説明する。
Next, the arranger reproduction processing routine in step S1218 will be described in detail with reference to the flowchart shown in FIG.

【0174】このアレンジャー再生処理ルーチンにおい
ては、まずステップS1402において、アレンジャー
・エンディング・フラグが「0」であるか否かを判断す
る。
In the arranger reproduction processing routine, first, in step S1402, it is determined whether or not the arranger ending flag is “0”.

【0175】ステップS1402の判断結果が肯定、即
ち、アレンジャー・エンディング・フラグが「0」であ
る場合には、ステップS1404へ進み、通常パターン
の再生処理を行う。即ち、通常パターンのスタイル・デ
ータを音源20へ送出して、音源20により当該スタイ
ル・データに基づいて伴奏が行われる。
If the decision result in the step S1402 is affirmative, that is, if the arranger ending flag is "0", the flow advances to a step S1404 to perform a normal pattern reproducing process. That is, the style data of the normal pattern is sent to the sound source 20, and the accompaniment is performed by the sound source 20 based on the style data.

【0176】一方、ステップS1402の判断結果が否
定、即ち、アレンジャー・エンディング・フラグが
「1」である場合には、ステップS1406へ進み、エ
ンディング・パターンの再生処理を行う。即ち、エンデ
ィング・パターンのスタイル・データたるエンディング
・データを音源20へ送出して、音源20により当該エ
ンディング・データに基づいて伴奏が行われる。
On the other hand, if the decision result in the step S1402 is negative, that is, if the arranger ending flag is "1", the flow advances to a step S1406 to perform an ending pattern reproducing process. That is, the ending data, which is the style data of the ending pattern, is transmitted to the sound source 20, and the accompaniment is performed by the sound source 20 based on the ending data.

【0177】ステップS1404あるいはステップS1
406の処理の次には、ステップS1408において、
ディビジョン内ティック・カウンタの値が、ディビジョ
ンのティック数に一致するか否かを判断する。
Step S1404 or step S1
Subsequent to the process of 406, in step S1408,
It is determined whether or not the value of the tick counter in the division matches the number of ticks of the division.

【0178】ステップS1408の判断結果が肯定、即
ち、ディビジョン内ティック・カウンタの値とディビジ
ョンのティック数とが一致すれば、つまりディビジョン
の区切りであることが検出されれば、ステップS141
0へ進み、アレンジャー・エンディング・フラグが
「1」であるか否かを判断する。
If the decision result in the step S1408 is affirmative, that is, if the value of the tick counter in the division matches the number of ticks of the division, that is, if it is detected that it is a division of the division, step S141 is performed.
The process proceeds to 0, and it is determined whether the arranger ending flag is “1”.

【0179】ステップS1410の判断結果が肯定、即
ち、アレンジャー・エンディング・フラグが「1」であ
る場合には、エンディング・パターン再生中にディビジ
ョンの区切りが検出された、つまりエンディング・パタ
ーンの終わりまで再生したということになるので、ステ
ップS1412へ進み、アレンジャー・スタート・フラ
グおよびアレンジャー・エンディング・フラグをともに
「0」にして、ティック・イベント処理ルーチンにリタ
ーンする。
If the decision result in the step S1410 is affirmative, that is, if the arranger ending flag is “1”, a division break is detected during the ending pattern reproduction, that is, reproduction is performed until the end of the ending pattern. Therefore, the flow advances to step S1412 to set both the arranger start flag and the arranger ending flag to "0", and returns to the tick event processing routine.

【0180】ここにおいて、アレンジャー・スタート・
フラグおよびアレンジャー・エンディング・フラグがと
もに「0」になるので、アレンジャー12bは停止され
る。
Here, Arranger Start
Since both the flag and the arranger ending flag become "0", the arranger 12b is stopped.

【0181】一方、ステップS1408の判断結果が否
定、即ち、ディビジョン内ティック・カウンタの値とデ
ィビジョンのティック数とが異なる場合には、何らの処
理も行うことなくティック・イベント処理ルーチンにリ
ターンする。
On the other hand, if the decision result in the step S1408 is negative, that is, if the value of the tick counter in the division is different from the number of ticks of the division, the process returns to the tick event processing routine without performing any processing.

【0182】また、ステップS1410の判断結果が否
定、即ち、アレンジャー・エンディング・フラグが
「0」である場合にも、何らの処理も行うことなくティ
ック・イベント処理ルーチンにリターンする。
If the result of the determination in step S1410 is negative, that is, if the arranger ending flag is "0", the process returns to the tick event processing routine without performing any processing.

【0183】次に、図15に示すフローチャートを参照
しながら、ステップS1222におけるコンポーザー再
生処理ルーチンを詳細に説明する。
Next, the composer reproduction processing routine in step S1222 will be described in detail with reference to the flowchart shown in FIG.

【0184】このコンポーザー再生処理ルーチンにおい
ては、まずステップS1502においてソング・データ
を読み出す。
In this composer reproduction processing routine, first, in step S1502, song data is read.

【0185】次に、ステップS1504において、ステ
ップS1502で読み出されたソング・データが、ソン
グ・データの終わりを表すデータたるEODであるか否
かを判断する。
Next, in step S1504, it is determined whether or not the song data read in step S1502 is EOD, which is data indicating the end of the song data.

【0186】ステップS1504の判断結果が肯定、即
ち、ステップS1502で読み出されたソング・データ
がEODである場合には、ステップS1506へ進み、
コンポーザー・スタート・フラグを「0」にする。
If the judgment result in the step S1504 is affirmative, that is, if the song data read in the step S1502 is EOD, the flow advances to a step S1506.
Set the composer start flag to "0".

【0187】ステップS1506の処理を終了すると、
ステップS1508へ進み、アレンジャー・スタート・
フラグが「1」であるか否かを判断する。
When the processing in step S1506 ends,
Proceed to step S1508, and arranger start
It is determined whether the flag is “1”.

【0188】ステップS1508の判断結果が肯定、即
ち、アレンジャー・スタート・フラグが「1」である場
合には、ステップS1510へ進み、アレンジャー・エ
ンディング・フラグが「0」であるか否かを判断する。
If the result of the determination in step S1508 is affirmative, that is, if the arranger start flag is "1", the flow advances to step S1510 to determine whether or not the arranger ending flag is "0". .

【0189】ステップS1510の判断結果が肯定、即
ち、アレンジャー・エンディング・フラグが「0」であ
る場合には、アレンジャー12bは通常パターンを再生
中であるということなので、ステップS1512へ進
み、アレンジャー・スタート・フラグを「0」にした後
に、コンポーザー再生処理ルーチンを終了してティック
・イベント処理ルーチンへリターンする。
If the decision result in the step S1510 is affirmative, that is, if the arranger ending flag is "0", it means that the arranger 12b is reproducing the normal pattern, so the flow advances to the step S1512 to start the arranger start. After setting the flag to "0", the composer reproduction processing routine is terminated and the process returns to the tick event processing routine.

【0190】一方、ステップS1508の判断結果が否
定、即ち、アレンジャー・スタート・フラグが「0」の
場合には、何らの処理も行うことなくコンポーザー再生
処理ルーチンを終了して、ティック・イベント処理ルー
チンへリターンする。
On the other hand, if the decision result in the step S1508 is negative, that is, if the arranger start flag is "0", the composer reproduction processing routine is terminated without performing any processing, and the tick event processing routine is terminated. Return to

【0191】また、ステップS1510の判断結果が否
定、即ち、アレンジャー・エンディング・フラグが
「1」である場合には、アレンジャー12bはエンディ
ング・パターンを再生中であるということなので、何ら
の処理も行うことなくコンポーザー再生処理ルーチンを
終了して、ティック・イベント処理ルーチンへリターン
する。
If the result of the determination in step S1510 is negative, that is, if the arranger ending flag is "1", it means that the ending pattern is being reproduced by the arranger 12b, so that no processing is performed. The composer reproduction processing routine ends without returning to the tick event processing routine.

【0192】また、ステップS1504の判断結果が否
定、即ち、ステップS1502で読み出されたソング・
データがEODでない場合には、ステップS1514へ
進み、ステップS1502で読み出されたソング・デー
タがアレンジャー・スタート情報であるか否かを判断す
る。
[0192] The result of the determination in step S1504 is negative, that is, the song read out in step S1502.
If the data is not EOD, the process advances to step S1514 to determine whether the song data read in step S1502 is arranger start information.

【0193】ステップS1514の判断結果が肯定、即
ち、ステップS1502で読み出されたソング・データ
がアレンジャー・スタート情報である場合には、ステッ
プS1516へ進み、アレンジャー・スタート・フラグ
が「0」であるか否かを判断する。
[0193] If the decision result in the step S1514 is affirmative, that is, if the song data read out in the step S1502 is arranger start information, the flow advances to step S1516, and the arranger start flag is "0". It is determined whether or not.

【0194】ステップS1516の判断結果が肯定、即
ち、アレンジャー・スタート・フラグが「0」である場
合には、アレンジャー12bは停止中であるということ
なので、ステップS1518へ進み、アレンジャー・ス
タート・フラグを「1」にした後に、コンポーザー再生
処理ルーチンを終了してティック・イベント処理ルーチ
ンへリターンする。
If the decision result in the step S1516 is affirmative, that is, if the arranger start flag is "0", it means that the arranger 12b is in the stopped state, and the flow advances to the step S1518 to set the arranger start flag. After setting the value to "1", the composer reproduction processing routine is terminated and the process returns to the tick event processing routine.

【0195】一方、ステップS1516の判断結果が否
定、即ち、アレンジャー・スタート・フラグが「1」で
ある場合には、アレンジャー12bは既に実行中である
ということなので、何らの処理も行うことなくコンポー
ザー再生処理ルーチンを終了して、ティック・イベント
処理ルーチンへリターンする。
On the other hand, if the decision result in the step S1516 is negative, that is, if the arranger start flag is "1", it means that the arranger 12b is already being executed, so that the composer is executed without any processing. The reproduction processing routine ends, and the process returns to the tick event processing routine.

【0196】また、ステップS1514の判断結果が否
定、即ち、ステップS1502で読み出されたソング・
データがアレンジャー・スタート情報でない場合(な
お、この場合には、読み出されたソング・データはEO
Dでもない。)には、ステップS1520へ進み、当該
読み出したソング・データを音源20へ送出した後に、
コンポーザー再生処理ルーチンを終了してティック・イ
ベント処理ルーチンへリターンする。
If the result of the determination in step S1514 is negative, ie, the song read out in step S1502,
If the data is not arranger start information (in this case, the read song data is EO
Not a D. ), The process proceeds to step S1520, and after the read song data is transmitted to the sound source 20,
The composer reproduction processing routine ends, and the process returns to the tick event processing routine.

【0197】以下に、本発明の動作例を説明することと
するが、まず「同期スタート処理」に関して説明する。
Hereinafter, an operation example of the present invention will be described. First, the "synchronous start process" will be described.

【0198】本電子楽器においては、コンポーザー12
aがソング・データの再生中において、アレンジャー・
スタート・ボタン22dによってアレンジャー12bの
再生開始が指示されると、アレンジャー12bはコンポ
ーザー12aの演奏中の特定のタイミングに同期してス
タートするものであり、この際の処理を同期スタート処
理と称しており、以下において、同期スタート処理の操
作手順と動作とを順次説明する。
In the present electronic musical instrument, the composer 12
a during the playback of song data,
When the start of the playback of the arranger 12b is instructed by the start button 22d, the arranger 12b starts in synchronization with a specific timing during the performance of the composer 12a, and the process at this time is called a synchronous start process. Hereinafter, the operation procedure and operation of the synchronous start process will be sequentially described.

【0199】まず、電源投入後の第1の操作として、コ
ンポーザー・スタート・ボタン22aを操作すると、メ
イン・ルーチンのステップS204、スイッチ操作処理
ルーチンのステップS302→ステップS304の処理
により、コンポーザー・スタート処理ルーチン(図4)
を実行される。
First, when the composer start button 22a is operated as the first operation after the power is turned on, the composer start processing is performed by the processing of step S204 of the main routine and steps S302 → S304 of the switch operation processing routine. Routine (Fig. 4)
Is executed.

【0200】コンポーザー・スタート処理ルーチンにお
いては、コンポーザー・スタート・フラグを検出し(ス
テップS402)、このコンポーザー・スタート・フラ
グが初期化(ステップS202)により「0」となって
いるので、コンポーザー・スタート・フラグを「1」に
するとともに、ティック・イベント・カウンタおよびデ
ィビジョン内ティック・カウンタを「0」に初期化する
(ステップS404)。
In the composer start processing routine, the composer start flag is detected (step S402), and since this composer start flag is initialized to "0" (step S202), the composer start flag is set. Set the flag to “1” and initialize the tick event counter and the tick counter in division to “0” (step S404).

【0201】初期化(ステップS202)によりコンポ
ーザー録音準備フラグは「0」となっているので、以降
の処理は行わずにコンポーザー・スタート処理ルーチン
は終了する。
Since the composer recording preparation flag has been set to "0" by the initialization (step S202), the composer start processing routine ends without performing the subsequent processing.

【0202】そして、その後に何らのスイッチ操作が行
われなければ、ティック・イベント処理ルーチン(図1
2)が行われる(ステップS204→ステップS20
6)。
If no switch operation is performed thereafter, a tick event processing routine (FIG. 1)
2) is performed (Step S204 → Step S20)
6).

【0203】ティック・イベント処理ルーチンにおいて
は、初期化(ステップS404)によりディビジョン内
ティック・カウンタの値は「0」とされているので、デ
ィビジョン内ティック・カウンタの値とタイミング・レ
ジスタ1のティック数とが一致しないとともに(ステッ
プS1204)、初期化(ステップS202)によりア
レンジャー・スタート・フラグは「0」となっているの
で、次の段階の処理(ステップS1220)へ進む。
In the tick event processing routine, the value of the tick counter in the division is set to "0" by initialization (step S404), so that the value of the tick counter in the division and the number of ticks in the timing register 1 are set. Does not match (step S1204), and since the arranger start flag has been set to "0" by initialization (step S202), the process proceeds to the next stage (step S1220).

【0204】次の段階(ステップS1220)では、コ
ンポーザー・スタート・フラグを検出するが、この時点
ではステップS404においてコンポーザー・スタート
・フラグは「1」になっているので、コンポーザー再生
処理ルーチン(図15)を実行し(ステップS122
2)、ソング・データが音源に送出されて(ステップS
1520)、音源20によってソング・データに基づく
演奏を行う。
At the next stage (step S1220), the composer start flag is detected. At this point, since the composer start flag is "1" at step S404, the composer reproduction processing routine (FIG. 15) ) (Step S122)
2) The song data is transmitted to the sound source (step S
1520), the tone generator 20 performs a performance based on the song data.

【0205】次に、第2の操作として、アレンジャー・
スタート・ボタン22dを操作すると、メイン・ルーチ
ンのステップS204、スイッチ操作処理ルーチンのス
テップS310→ステップS312の処理により、アレ
ンジャー・スタート処理ルーチン(図6)が実行される
ことになる。
Next, as a second operation, the arranger
When the start button 22d is operated, the arranger start processing routine (FIG. 6) is executed by the processing of step S204 of the main routine and step S310 → step S312 of the switch operation processing routine.

【0206】アレンジャー・スタート処理ルーチンにお
いては、アレンジャー・スタート・フラグを検出し(ス
テップS602)、このアレンジャー・スタート・フラ
グが初期化(ステップS202)により「0」となって
いるので、コンポーザー・スタート・フラグを検出する
(ステップS604)。
In the arranger start processing routine, the arranger start flag is detected (step S602), and since the arranger start flag is initialized to "0" (step S202), the composer start is performed. Detect a flag (step S604).

【0207】上記した第1の操作により、コンポーザー
・スタート・フラグは「1」になっているので、アレン
ジャー・スタート準備フラグを「1」にセットして(ス
テップS608)、アレンジャー・スタート処理ルーチ
ンを終了する。
Since the composer start flag has been set to "1" by the above-described first operation, the arranger start preparation flag is set to "1" (step S608), and the arranger start processing routine is executed. finish.

【0208】従って、この時点では、アレンジャー・ス
タート・フラグは「1」になっていない。
Therefore, at this point, the arranger start flag has not become "1".

【0209】そして、その後に何らのスイッチ操作が行
われなければ、ティック・イベント処理ルーチン(図1
2)が行われる(ステップS204→ステップS20
6)。
If no switch operation is performed thereafter, a tick event processing routine (FIG. 1)
2) is performed (Step S204 → Step S20)
6).

【0210】ティック・イベント処理ルーチンが実行さ
れる時点においては、コンポーザー・スタート・フラグ
は「1」に、アレンジャー・スタート・フラグは「0」
に、アレンジャー・スタート準備・フラグは「1」にな
っているので、ティック・イベント処理ルーチンにおい
ては、タイミング・レジスタ1に記憶されたタイミング
が検出されるまでは、コンポーザーの再生のみが行われ
(ステップS1222)、記憶されたタイミングが検出
されると、アレンジャー・スタート・フラグは「1」
に、アレンジャー・スタート準備フラグは「0」になる
(ステップS1206→ステップS1208)。
At the time when the tick event processing routine is executed, the composer start flag is set to "1" and the arranger start flag is set to "0".
Since the arranger start preparation flag is "1", in the tick event processing routine, only the composer is reproduced until the timing stored in the timing register 1 is detected ( In step S1222), when the stored timing is detected, the arranger start flag is set to "1".
Then, the arranger start preparation flag becomes “0” (step S1206 → step S1208).

【0211】従って、次の段階(ステップS1210)
では、アレンジャー・スタート・フラグが「1」になっ
ているので、アレンジャー再生処理ルーチンが実行され
ることになり(ステップS1210→ステップS121
8)、スタイル・データが音源に送出されて、音源20
によってスタイル・データに基づく伴奏が行われる。
Therefore, the next step (step S1210)
Since the arranger start flag is "1", the arranger reproduction processing routine is executed (step S1210 → step S121).
8) The style data is transmitted to the sound source,
Performs an accompaniment based on the style data.

【0212】このようにして、タイミング・レジスタ1
に記憶されたタイミングが検出されるまでは、コンポー
ザー12aのみが再生され、タイミング・レジスタ1に
記憶されたタイミングが検出されると、アレンジャー1
2bの再生が行われる。
Thus, the timing register 1
Until the timing stored in the timing register 1 is detected, only the composer 12a is reproduced, and when the timing stored in the timing register 1 is detected, the composer 12a is reproduced.
2b is reproduced.

【0213】従って、本電子楽器においては、コンポー
ザー12aがソング・データの再生中において、アレン
ジャー・スタート・ボタン22dによってアレンジャー
12bの再生開始が指示されると、アレンジャー12b
はコンポーザー12aの演奏中の特定のタイミングに同
期してスタートする、同期スタート処理が行われる。
Therefore, in this electronic musical instrument, when the composer 12a instructs the reproduction start of the arranger 12b by the arranger start button 22d while the song data is being reproduced, the arranger 12b
Performs a synchronous start process that starts in synchronization with a specific timing during performance of the composer 12a.

【0214】次に、コンポーザー12aの演奏ならびに
アレンジャー12bの伴奏を終了させる、エンディング
処理の操作手順と動作とを順次説明する。
Next, an operation procedure and an operation of an ending process for ending the performance of the composer 12a and the accompaniment of the arranger 12b will be sequentially described.

【0215】まず、上記した第1の操作および第2の操
作に引き続く第3の操作として、a・エンディング・ボ
タン22fを操作すると、メイン・ルーチンのステップ
S204、スイッチ操作処理ルーチンのステップS31
8→ステップS320の処理により、アレンジャー・エ
ンディング処理ルーチン(図8)が実行される。
First, when the a-ending button 22f is operated as a third operation following the above-described first operation and second operation, step S204 of the main routine and step S31 of the switch operation processing routine are performed.
8 → By the process of step S320, an arranger / ending process routine (FIG. 8) is executed.

【0216】アレンジャー・エンディング処理ルーチン
においては、アレンジャー・エンディング・フラグを検
出し(ステップS802)、アレンジャー・エンディン
グ・フラグが「0」である(ステップS202)ので、
アレンジャー・スタート・フラグを検出し、さらに、ア
レンジャー・スタート・フラグはステップS1208に
おいて「1」になっているので、アレンジャー・エンデ
ィング・フラグを「1」にする(ステップS804→ス
テップS806)。
In the arranger ending processing routine, the arranger ending flag is detected (step S802), and since the arranger ending flag is "0" (step S202),
An arranger start flag is detected, and since the arranger start flag is "1" in step S1208, the arranger ending flag is set to "1" (step S804 → step S806).

【0217】そして、その後に何らのスイッチ操作が行
われなければ、ティック・イベント処理ルーチン(図1
2)が行われる(ステップS204→ステップS20
6)。
If no switch operation is performed thereafter, a tick event processing routine (FIG. 1)
2) is performed (Step S204 → Step S20)
6).

【0218】ティック・イベント処理ルーチンが実行さ
れる時点においては、既にアレンジャー・スタート・フ
ラグが「1」になっているので、アレンジャー再生処理
ルーチン(図14)が実行される。
At the time when the tick event processing routine is executed, since the arranger start flag is already "1", the arranger reproduction processing routine (FIG. 14) is executed.

【0219】アレンジャー再生処理ルーチンにおいて
は、アレンジャー・エンディング・フラグを検出し(ス
テップS1402)、アレンジャー・エンディング・フ
ラグは「1」であるのでエンディング・パターン再生処
理(ステップS1406)を行う。
In the arranger reproduction processing routine, an arranger ending flag is detected (step S1402), and since the arranger ending flag is "1", an ending pattern reproduction processing (step S1406) is performed.

【0220】そして、ディビジョン内ティック・カウン
タの値が、ディビジョンのティック数に一致すれば、つ
まりディビジョンの区切れであることが検出されれば、
アレンジャー・エンディング・フラグを検出し(ステッ
プS1408→ステップS1410)、アレンジャー・
エンディング・フラグは「1」であるので、エンディン
グ・パターン再生中にディビジョンの区切れが検出され
た、即ち、エンディング・パターンの終わりまで再生し
たということなので、アレンジャー・スタート・フラグ
およびアレンジャー・エンディング・フラグをともに
「0」にして、アレンジャー12bを停止する(ステッ
プS1412)。
If the value of the tick counter in the division matches the number of division ticks, that is, if it is detected that the division is a division,
An arranger ending flag is detected (step S1408 → step S1410), and the arranger ending flag is detected.
Since the ending flag is "1", the division of the division was detected during the reproduction of the ending pattern, that is, since the ending pattern was reproduced to the end, the arranger start flag and the arranger ending The flags are both set to "0", and the arranger 12b is stopped (step S1412).

【0221】一方、コンポーザー再生処理ルーチン(図
15)においては、ソング・データを読み出し(ステッ
プS1502)、ステップS1502で読み出したソン
グ・データがEODであれば、コンポーザー・スタート
・フラグを「0」にする(ステップS1504→ステッ
プS1506)。
On the other hand, in the composer reproduction processing routine (FIG. 15), the song data is read (step S1502), and if the song data read in step S1502 is EOD, the composer start flag is set to "0". (Step S1504 → Step S1506).

【0222】それから、アレンジャー・スタート・フラ
グを検出し(ステップS1508)、アレンジャー・ス
タート・フラグが「1」であれば、アレンジャー・エン
ディング・フラグを検出し(ステップS1510)、ア
レンジャー・エンディング・フラグが「1」であれば、
アレンジャー12bはエンディング・パターンを再生中
であるということなので、以降の処理を何も行わないで
コンポーザー再生処理ルーチンを終了する。
Then, an arranger start flag is detected (step S1508). If the arranger start flag is "1", an arranger ending flag is detected (step S1510), and the arranger ending flag is set. If "1",
Since the arranger 12b is reproducing the ending pattern, the composer reproduction processing routine ends without performing any subsequent processing.

【0223】即ち、もしアレンジャー12bがエンディ
ング・パターンの再生を終了する前に、コンポーザーが
EODを読み出した場合には、アレンジャー・スタート
・フラグが「1」であり、アレンジャー・エンディング
・フラグが「1」になっているので、アレンジャー・ス
タート・フラグは「0」にされない。つまり、アレンジ
ャー12bが停止されることはない。
That is, if the composer reads EOD before the arranger 12b finishes reproducing the ending pattern, the arranger start flag is "1" and the arranger ending flag is "1". , The arranger start flag is not set to "0". That is, the arranger 12b is not stopped.

【0224】その後に、アレンジャー12bのエンディ
ング・パターンの終了を検出した時点で、アレンジャー
・スタート・フラグは「0」にされる。つまり、この時
点でアレンジャー12bは停止する。
Thereafter, when the end of the ending pattern of the arranger 12b is detected, the arranger start flag is set to "0". That is, at this point, the arranger 12b stops.

【0225】このようにして、アレンジャー12bがエ
ンディング・パターンの再生を終了する前に、コンポー
ザー12aがEODを読み出した場合には、エンディン
グ・パターンの再生を終了するまでアレンジャー12b
は停止されず、その後にアレンジャー12bのエンディ
ング・パターンの終了を検出した時点で、アレンジャー
12bは停止する。
As described above, if the composer 12a reads the EOD before the end of the ending pattern, the composer 12a reads the EOD before the ending of the ending pattern.
Is not stopped, and when the end of the ending pattern of the arranger 12b is detected thereafter, the arranger 12b stops.

【0226】従って、上記した実施例によれば、コンポ
ーザー12aの再生中に、アレンジャー・スタート・ボ
タン22dの操作によってアレンジャー12bの再生開
始が指示されると、アレンジャー12bはコンポーザー
12aの演奏中の特定のタイミング(小節の先頭や小節
中の特定の拍頭など)に同期して再生を開始するように
なる。
Therefore, according to the above-described embodiment, if the start of the play of the arranger 12b is instructed by operating the arranger start button 22d during the play of the composer 12a, the arranger 12b specifies the play of the composer 12a. (The beginning of a bar or a specific beat in a bar) starts playback.

【0227】即ち、コンポーザー12aとアレンジャー
12bとが、所望のタイミングで同期して再生される。
That is, the composer 12a and the arranger 12b are reproduced synchronously at a desired timing.

【0228】また、コンポーザー12aがソング・デー
タを全て再生し終えると、アレンジャー12bは通常パ
ターンを演奏中であるならば即座に停止し、エンディン
グ・パターン演奏中であるならば、エンディング・パタ
ーンが終了するまで停止しない。
When the composer 12a finishes reproducing all the song data, the arranger 12b stops immediately if the normal pattern is being played, and ends if the ending pattern is being played. Do not stop until you do.

【0229】即ち、コンポーザー12aの再生が先に終
了しても、アレンジャー12bは必ずエンディング・パ
ターンの終わりまで再生される。
That is, even if the playback of the composer 12a ends first, the arranger 12b is always played back to the end of the ending pattern.

【0230】次に、他の実施例として、予めソング・デ
ータ中にアレンジャー・スタート情報を特定のタイミン
グ毎に記憶しておき、コンポーザー12aが再生中にコ
ンポーザー・ストップ・ボタン22bによってコンポー
ザー12aの停止が指示されると、コンポーザー12a
およびアレンジャー12bは即座に停止するが、再びコ
ンポーザー12aの再生を開始したとき、コンポーザー
12aの再生開始の後にあらわれるアレンジャー・スタ
ート情報によって、アレンジャーが自動的に再生を再開
させるという実施例に関して説明する。
Next, as another embodiment, arranger start information is previously stored in the song data at each specific timing, and the composer 12a is stopped by the composer stop button 22b during reproduction by the composer 12a. Is instructed, the composer 12a
The following describes an embodiment in which the arranger 12b stops immediately, but when the composer 12a starts reproducing again, the arranger automatically restarts the reproduction by the arranger start information that appears after the composer 12a starts reproducing.

【0231】この実施例においては、コンポーザー・ス
タート・ボタン22aの操作によるコンポーザー12a
の再生開始の指示の後に、あらためてアレンジャー・ス
タート・ボタン22dを操作しなくても、アレンジャー
・スタート情報が記憶されているタイミングで、自動的
にアレンジャー12bがスタートするため、煩雑な操作
が解消されて操作性が向上するという効果を得ることが
できる。
In this embodiment, the composer 12a is operated by operating the composer start button 22a.
Since the arranger 12b starts automatically at the timing when the arranger start information is stored, without having to operate the arranger start button 22d again after the instruction to start the reproduction, the complicated operation is eliminated. Thus, the effect that the operability is improved can be obtained.

【0232】以下に、上記したように、アレンジャー1
2bが停止したとき、予めソング・データ中にアレンジ
ャー・スタート情報を記憶しておくことによって、アレ
ンジャー12bを再度自動的にスタートさせる場合の操
作と動作とに関して順次説明する。
In the following, as described above, Arranger 1
The operation and the operation when the arranger 12b is automatically started again by storing the arranger start information in the song data when the 2b is stopped will be sequentially described.

【0233】まず、ソング・データにアレンジャー・ス
タート情報を記憶させるときの操作および動作に関して
説明する。
First, the operation and operation when storing arranger start information in song data will be described.

【0234】第1の操作として、コンポーザー録音ボタ
ン22cを操作すると、メイン・ルーチンのステップS
204、スイッチ操作処理ルーチンのステップS322
→ステップS324の処理により、コンポーザー録音準
備処理ルーチン(図9)が実行される。
As a first operation, when the composer recording button 22c is operated, step S of the main routine is executed.
204, Step S322 of the switch operation processing routine
→ By the processing of step S324, a composer recording preparation processing routine (FIG. 9) is executed.

【0235】コンポーザー録音準備処理ルーチンにおい
ては、コンポーザー・スタート・フラグを検出し(ステ
ップS902)、このコンポーザー・スタート・フラグ
が初期化(ステップS202)により「0」となってい
るので、アレンジャー・スタート・フラグを検出する
(ステップS904)。このアレンジャー・スタート・
フラグは初期化(ステップS202)により「0」とな
っているので、何らの処理を行うことなくステップS9
08へ進む。
In the composer recording preparation routine, the composer start flag is detected (step S902), and since the composer start flag is initialized to "0" (step S202), the arranger start is performed. -A flag is detected (step S904). This arranger start
Since the flag has been set to "0" by the initialization (step S202), the process proceeds to step S9 without performing any processing.
Proceed to 08.

【0236】次に、コンポーザー録音準備フラグを検出
し(ステップS908)、このコンポーザー録音準備フ
ラグは「0」である(ステップS202)ので「1」に
する(ステップS910)。
Next, a composer recording preparation flag is detected (step S908), and since this composer recording preparation flag is "0" (step S202), it is set to "1" (step S910).

【0237】次に、第2の操作として、コンポーザー・
スタート・ボタン22aを操作すると、メイン・ルーチ
ンのステップS204、スイッチ操作処理ルーチンのス
テップS302→ステップS304の処理により、コン
ポーザー・スタート処理ルーチン(図4)が実行され
る。
Next, as a second operation, the composer
When the start button 22a is operated, the composer start processing routine (FIG. 4) is executed by the processing of step S204 of the main routine and steps S302 → S304 of the switch operation processing routine.

【0238】コンポーザー・スタート処理においては、
コンポーザー・スタート・フラグが「0」であるので、
コンポーザー・スタート・フラグを「1」にするととも
にティック・イベント・カウンタおよびディビジョン内
ティック・カウンタを「0」に初期化した後に(ステッ
プS402→ステップS404)、コンポーザー録音準
備フラグを検出し(ステップS406)、コンポーザー
録音準備フラグが「1」であるので、コンポーザー録音
フラグを「1」にするとともにコンポーザー録音準備フ
ラグを「0」にする(ステップS408)。
In the composer start process,
Since the composer start flag is "0",
After setting the composer start flag to “1” and initializing the tick event counter and the tick counter in division to “0” (step S402 → step S404), the composer recording preparation flag is detected (step S406). Since the composer recording preparation flag is "1", the composer recording flag is set to "1" and the composer recording preparation flag is set to "0" (step S408).

【0239】さらに、第3の操作として、アレンジャー
・スタート・ボタン22dを操作すると、メイン・ルー
チンのステップS204、スイッチ操作処理ルーチンの
ステップS310→ステップS312の処理により、ア
レンジャー・スタート処理ルーチン(図6)が実行され
る。
Further, as the third operation, when the arranger start button 22d is operated, the arranger start processing routine (FIG. 6) is executed by the processing of step S204 of the main routine and steps S310 → S312 of the switch operation processing routine. ) Is executed.

【0240】アレンジャー・スタート処理ルーチンにお
いては、まずアレンジャー・スタート・フラグを検出す
る(ステップS602)。アレンジャー・スタート・フ
ラグは「0」に初期化されているので(ステップS20
2)、コンポーザー・スタート・フラグを検出する(ス
テップS604)。
In the arranger start processing routine, first, an arranger start flag is detected (step S602). Since the arranger start flag has been initialized to "0" (step S20)
2), a composer start flag is detected (step S604).

【0241】この時点においては、第2の操作子の操作
によりコンポーザー・スタート・フラグは「1」になっ
ているので、アレンジャー・スタート準備フラグを
「1」にする(ステップS608)。
At this point, since the composer start flag is set to "1" by the operation of the second operator, the arranger start preparation flag is set to "1" (step S608).

【0242】そして、その後に何らのスイッチ操作も行
われなければ、ティック・イベント処理ルーチン(図1
2)が行われる(ステップS204→ステップS20
6)。
If no switch operation is performed thereafter, a tick event processing routine (FIG. 1)
2) is performed (Step S204 → Step S20)
6).

【0243】ティック・イベント処理ルーチンにおいて
は、ディビジョン内のティック・カウンタがタイミング
・レジスタ1のティック数に一致したとき、この時点で
はアレンジャー・スタート準備フラグが「1」となって
いるので、アレンジャー・スタート・フラグを「1」に
するとともに、アレンジャー・スタート準備フラグを
「0」にする(ステップS1204→ステップS120
6→ステップS1208)。
In the tick event processing routine, when the tick counter in the division matches the number of ticks in the timing register 1, the arranger start preparation flag is set to "1" at this point. The start flag is set to “1” and the arranger start preparation flag is set to “0” (step S1204 → step S120)
6 → Step S1208).

【0244】それから、アレンジャー・スタート・フラ
グを検出することになる(ステップS1210)。ここ
において、ステップS1208においてアレンジャー・
スタート・フラグが「1」となっているので、ディビジ
ョン内のティック・カウンタがタイミング・レジスタ2
のティック数に一致したとき、コンポーザー録音フラグ
を検出する(ステップS1212→ステップS121
4)。
Then, an arranger start flag is detected (step S1210). Here, in step S1208, the arranger
Since the start flag is “1”, the tick counter in the division reads the timing register 2
, The composer recording flag is detected (step S1212 → step S121).
4).

【0245】ここでは、ステップS408においてコン
ポーザー録音フラグは「1」となっているので、アレン
ジャー・スタート情報をソング・データに記憶し(ステ
ップS1216)、アレンジャー再生処理ルーチン(図
14)を実行する(ステップS1218)。
Here, since the composer recording flag is "1" in step S408, the arranger start information is stored in the song data (step S1216), and the arranger reproduction processing routine (FIG. 14) is executed (FIG. 14). Step S1218).

【0246】次に、コンポーザー・スタート・フラグを
検出するが(ステップS1220)、ここではステップ
S404においてコンポーザー・スタート・フラグは
「1」となっているので、コンポーザー再生処理ルーチ
ン(図15)が実行される(ステップS1222)。
Next, a composer start flag is detected (step S1220). Since the composer start flag is "1" in step S404, the composer reproduction processing routine (FIG. 15) is executed. Is performed (step S1222).

【0247】その後は、上記のようにしてアレンジャー
再生処理ルーチンとコンポーザー再生処理ルーチンが、
繰り返し実行される。
Thereafter, the arranger reproduction processing routine and the composer reproduction processing routine are executed as described above.
It is executed repeatedly.

【0248】そして、ティック・イベント処理ルーチン
において、ディビジョン内のティック・カウンタがタイ
ミング・レジスタ2のティック数に一致したことが検出
されると、ここではコンポーザー録音フラグが「1」で
あるので、アレンジャー・スタート情報をソング・デー
タに記憶する(ステップS1212→ステップS121
4→ステップS1216)。このようにして、アレンジ
ャー・スタート情報が、タイミング・レジスタ2のティ
ック数毎にソング・データに記憶される。
When the tick event processing routine detects that the tick counter in the division matches the number of ticks in the timing register 2, the composer recording flag is "1". Store start information in song data (step S1212 → step S121)
4 → Step S1216). In this way, the arranger start information is stored in the song data for each number of ticks in the timing register 2.

【0249】さらに、第4の操作として、コンポーザー
・ストップ・ボタン22bを操作すると、メイン・ルー
チンのステップS204、スイッチ操作処理ルーチンの
ステップS306→ステップS308の処理により、コ
ンポーザー・ストップ処理ルーチン(図5)が実行され
る。
Further, as a fourth operation, when the composer stop button 22b is operated, the composer stop processing routine (FIG. 5) is executed by the processing of step S204 of the main routine and steps S306 → S308 of the switch operation processing routine. ) Is executed.

【0250】コンポーザー・ストップ処理ルーチンにお
いては、まずコンポーザー・スタート・フラグを検出し
(ステップS502)、コンポーザー・スタート・フラ
グが「1」である、つまり、コンポーザー12aは実行
中であるので、これを「0」にしてコンポーザー12a
を停止する(ステップS504)。
In the composer stop processing routine, first, a composer start flag is detected (step S502). Since the composer start flag is "1", that is, the composer 12a is executing, Composer 12a with "0"
Is stopped (step S504).

【0251】次に、コンポーザー録音フラグを検出し
(ステップS506)、コンポーザー録音フラグが
「1」である、つまり、コンポーザー12aは録音中で
あるので、コンポーザー録音フラグを「0」にして録音
を停止し(ステップS508)、それからアレンジャー
・スタート・フラグの検出へと進む(ステップS51
0)。
Next, the composer recording flag is detected (step S506). Since the composer recording flag is "1", that is, the composer 12a is recording, the recording is stopped by setting the composer recording flag to "0". (Step S508), and then proceeds to detection of the arranger start flag (step S51).
0).

【0252】アレンジャー・スタート・フラグを検出し
(ステップS510)、アレンジャー・スタート・フラ
グが「1」である、つまり、アレンジャー12bは実行
中であるということなので、アレンジャー・スタート・
フラグを「0」にしてアレンジャー12bを停止し(ス
テップS512)、コンポーザー・ストップ処理ルーチ
ンを終了する。
The arranger start flag is detected (step S510). Since the arranger start flag is "1", that is, the arranger 12b is being executed, the arranger start flag is detected.
The flag is set to "0" to stop the arranger 12b (step S512), and the composer stop processing routine ends.

【0253】以上のようにして、録音動作は完了する。The recording operation is completed as described above.

【0254】次に、こうして録音されたソング・データ
を再生する際の操作および動作について、以下に説明す
る。
Next, the operation and operation for reproducing the song data thus recorded will be described below.

【0255】まず、第1の操作として、コンポーザー・
スタート・ボタン22aを操作すると、メイン・ルーチ
ンのステップS204、スイッチ操作処理ルーチンのス
テップS302→ステップS304の処理により、コン
ポーザー・スタート処理ルーチン(図4)が実行され
る。
First, as a first operation, a composer
When the start button 22a is operated, the composer start processing routine (FIG. 4) is executed by the processing of step S204 of the main routine and steps S302 → S304 of the switch operation processing routine.

【0256】コンポーザー・スタート処理においては、
コンポーザー・スタート・フラグを「1」にするととも
にティック・イベント・カウンタおよびディビジョン内
ティック・カウンタを「0」に初期化する(ステップS
402→ステップS404)。
In the composer start processing,
The composer start flag is set to "1", and the tick event counter and the tick counter in the division are initialized to "0" (step S).
402 → Step S404).

【0257】そして、その後に何らのスイッチ操作も行
われなければ、ティック・イベント処理ルーチン(図1
2)が行われる(ステップS204→ステップS20
6)。
If no switch operation is performed thereafter, a tick event processing routine (FIG. 1)
2) is performed (Step S204 → Step S20)
6).

【0258】ティック・イベント処理ルーチンにおいて
は、コンポーザー・スタート・フラグが「1」であるの
で、コンポーザー再生処理ルーチン(図15)が実行さ
れる(ステップS1220→ステップS1222)。
Since the composer start flag is "1" in the tick event processing routine, the composer reproduction processing routine (FIG. 15) is executed (step S1220 → step S1222).

【0259】コンポーザー再生処理ルーチンにおいて
は、ソング・データを読み出し(ステップS150
2)、そのデータがアレンジャー・スタート情報であれ
ば(ステップS1514)、アレンジャー・スタート・
フラグを検出し(ステップS1516)、これが「0」
であるのでアレンジャー12bは停止中であるというこ
となので、アレンジャー・スタート・フラグを「1」に
する(ステップS1518)。
In the composer reproduction processing routine, the song data is read out (step S150).
2) If the data is arranger start information (step S1514), the arranger start
A flag is detected (step S1516), and this is set to "0".
Therefore, since the arranger 12b is stopped, the arranger start flag is set to "1" (step S1518).

【0260】即ち、ソング・データには、タイミング・
レジスタ2のタイミング毎にアレンジャー・スタート情
報が繰り返し記録されているので、コンポーザー12a
の再生が始まってアレンジャー・スタート情報を読み出
すと、アレンジャー12bがスタートする。
That is, the song data includes a timing
Since the arranger start information is repeatedly recorded for each timing of the register 2, the composer 12a
When the reproduction of the file starts and the arranger start information is read, the arranger 12b starts.

【0261】あるいは、ソング・データに記憶されたア
レンジャー・スタート情報を読み出す前にアレンジャー
・スタート・ボタン22dを操作した場合には、上記し
た実施例で説明したタイミングで、アレンジャー12b
がスタートする。
Alternatively, if the arranger start button 22d is operated before reading the arranger start information stored in the song data, the arranger 12b is operated at the timing described in the above embodiment.
Starts.

【0262】次に、第2の操作として、コンポーザー・
ストップ・ボタン22bを操作すると、メイン・ルーチ
ンのステップS204、スイッチ操作処理ルーチンのス
テップS306→ステップS308の処理により、コン
ポーザー・ストップ処理ルーチン(図5)が実行され
る。
Next, as a second operation, the composer
When the stop button 22b is operated, the composer stop processing routine (FIG. 5) is executed by the processing of step S204 of the main routine and steps S306 → S308 of the switch operation processing routine.

【0263】コンポーザー・ストップ処理においては、
コンポーザー・スタート・フラグが「0」にされるとと
もに(ステップS506)、アレンジャー・スタート・
フラグが「0」にされ(ステップS512)、コンポー
ザー12aおよびアレンジャー12bが停止する。
In the composer stop processing,
The composer start flag is set to “0” (step S506), and the arranger start flag is set.
The flag is set to "0" (step S512), and the composer 12a and the arranger 12b stop.

【0264】さらに、第3の操作として、コンポーザー
・スタート・ボタン22aを操作すると、メイン・ルー
チンのステップS204、スイッチ操作処理ルーチンの
ステップS302→ステップS304の処理により、再
びコンポーザー・スタート処理ルーチン(図4)が実行
され、上記と同様にしてソング・データが読み出される
(ステップS1502)。
Further, as a third operation, when the composer start button 22a is operated, the composer start processing routine (FIG. 10) is executed again by the processing of step S204 of the main routine and steps S302 → S304 of the switch operation processing routine. 4) is executed, and the song data is read out in the same manner as described above (step S1502).

【0265】このときソング・データは、先ほど読み出
した次のデータから読み出す。ここで、ソング・データ
にはアレンジャー・スタート情報が、タイミング・レジ
スタ2のタイミング毎に繰り返し録音されているので、
次のタイミング・レジスタ2のタイミングまでくると、
アレンジャー・スタート情報を読み出してアレンジャー
12bがスタートする。
At this time, the song data is read from the next data read earlier. Here, the arranger start information is repeatedly recorded in the song data at each timing of the timing register 2.
When it comes to the timing of the next timing register 2,
The arranger 12b starts by reading the arranger start information.

【0266】このようにして、アレンジャー12bが停
止したとき、タイミング・レジスタ2のタイミング毎に
自動的にスタートする。
In this way, when the arranger 12b stops, it automatically starts at each timing of the timing register 2.

【0267】[0267]

【発明の効果】本発明は、以上説明したように構成され
ているので、以下に記載されるような効果を奏する。
Since the present invention is configured as described above, it has the following effects.

【0268】[0268]

【0269】[0269]

【0270】第一の演奏データに基づき演奏を行う第一
の演奏手段と、第二の演奏データに基づき上記第一の演
奏手段と同時に演奏を行う第二の演奏手段と、上記第一
の演奏手段が演奏を終了したとき、上記第二の演奏手段
が第二の演奏データ中の所定の演奏データ以外の演奏デ
ータを演奏している場合は、同時に上記第二の演奏手段
を停止し、上記所定の演奏データの演奏をしている場合
には、第二の演奏データの終了まで演奏を行うように制
御する制御手段とを有するようにしたため、第一の演奏
手段が演奏を終了したとき、第二の演奏手段が第二の演
奏データ中の所定の演奏データ以外の演奏データを演奏
している場合には、制御手段は、同時に上記第二の演奏
手段を停止させるが、所定の演奏データの演奏をしてい
る場合には、制御手段は、第二の演奏データの終了まで
演奏を行うように制御することになり、エンディング・
パターンによる演奏などが途中で途切れてしまうことが
防止できるので、違和感をなくすことができる。
First performance means for performing performance based on first performance data, second performance means for performing simultaneously with the first performance means based on second performance data, and first performance means When the means has finished playing, if the second performance means is playing performance data other than the predetermined performance data in the second performance data, the second performance means is simultaneously stopped, and When the performance of the predetermined performance data is being performed, the control unit controls the performance to continue until the end of the second performance data. When the second performance means is playing performance data other than the predetermined performance data in the second performance data, the control means simultaneously stops the second performance means, Control when playing Stage, will be controlled so as to perform the play until the end of the second performance data, Ending
Since it is possible to prevent the performance by the pattern from being interrupted in the middle, it is possible to eliminate a sense of incongruity.

【0271】[0271]

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

【図1】本発明による電子楽器の一実施例を示すブロッ
ク構成図である。
FIG. 1 is a block diagram showing an embodiment of an electronic musical instrument according to the present invention.

【図2】メイン・ルーチンを示すフローチャートであ
る。
FIG. 2 is a flowchart showing a main routine.

【図3】スイッチ操作処理ルーチンを示すフローチャー
トである。
FIG. 3 is a flowchart illustrating a switch operation processing routine.

【図4】コンポーザー・スタート処理ルーチンを示すフ
ローチャートである。
FIG. 4 is a flowchart showing a composer start processing routine.

【図5】コンポーザー・ストップ処理ルーチンを示すフ
ローチャートである。
FIG. 5 is a flowchart showing a composer stop processing routine.

【図6】アレンジャー・スタート処理ルーチンを示すフ
ローチャートである。
FIG. 6 is a flowchart showing an arranger start processing routine.

【図7】アレンジャー・ストップ処理ルーチンを示すフ
ローチャートである。
FIG. 7 is a flowchart showing an arranger stop processing routine.

【図8】アレンジャー・エンディング処理ルーチンを示
すフローチャートである。
FIG. 8 is a flowchart showing an arranger / ending processing routine.

【図9】コンポーザー録音準備処理ルーチンを示すフロ
ーチャートである。
FIG. 9 is a flowchart illustrating a composer recording preparation processing routine.

【図10】タイミング選択処理ルーチンを示すフローチ
ャートである。
FIG. 10 is a flowchart illustrating a timing selection processing routine.

【図11】タイミング設定処理ルーチンを示すフローチ
ャートである。
FIG. 11 is a flowchart illustrating a timing setting processing routine.

【図12】ティック・イベント処理ルーチンを示すフロ
ーチャートである。
FIG. 12 is a flowchart showing a tick event processing routine.

【図13】タイマー・インタラプト処理ルーチンを示す
フローチャートである。
FIG. 13 is a flowchart showing a timer interrupt processing routine.

【図14】アレンジャー再生処理ルーチンを示すフロー
チャートである。
FIG. 14 is a flowchart showing an arranger reproduction processing routine.

【図15】コンポーザー再生処理ルーチンを示すフロー
チャートである。
FIG. 15 is a flowchart illustrating a composer reproduction processing routine.

【図16】ティックと小節とディビジョンとの関係を示
す説明図である。
FIG. 16 is an explanatory diagram showing the relationship between ticks, measures, and divisions.

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

10 バス 12 CPU 14 ROM 16 RAM 18 鍵盤 20 音源 22 操作子群 24 タイマー 10 Bus 12 CPU 14 ROM 16 RAM 18 Keyboard 20 Sound Source 22 Operator Group 24 Timer

フロントページの続き (56)参考文献 特開 平6−274163(JP,A) 特開 平1−227195(JP,A) (58)調査した分野(Int.Cl.7,DB名) G10H 1/00 101 - 102 G10H 1/36 - 1/42 Continuation of the front page (56) References JP-A-6-274163 (JP, A) JP-A-1-227195 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G10H 1 / 00 101-102 G10H 1/36-1/42

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 第一の演奏データに基づき演奏を行う第
一の演奏手段と、 第二の演奏データに基づき前記第一の演奏手段と同時に
演奏を行う第二の演奏手段と、 前記第一の演奏手段が演奏を終了したとき、前記第二の
演奏手段が第二の演奏データ中の所定の演奏データ以外
の演奏データを演奏している場合は、同時に前記第二の
演奏手段を停止し、前記所定の演奏データの演奏をして
いる場合には、第二の演奏データの終了まで演奏を行う
ように制御する制御手段とを有する電子楽器。
A first performance means for performing based on first performance data; a second performance means performing simultaneously with the first performance means based on second performance data; When the second performance means is playing performance data other than the predetermined performance data in the second performance data when the performance means has finished performing, the second performance means is simultaneously stopped. An electronic musical instrument having control means for controlling to perform until the end of the second performance data when the predetermined performance data is being played.
JP13377494A 1994-05-24 1994-05-24 Electronic musical instrument Expired - Fee Related JP3217591B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13377494A JP3217591B2 (en) 1994-05-24 1994-05-24 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13377494A JP3217591B2 (en) 1994-05-24 1994-05-24 Electronic musical instrument

Publications (2)

Publication Number Publication Date
JPH07319463A JPH07319463A (en) 1995-12-08
JP3217591B2 true JP3217591B2 (en) 2001-10-09

Family

ID=15112667

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13377494A Expired - Fee Related JP3217591B2 (en) 1994-05-24 1994-05-24 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JP3217591B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102225937B1 (en) * 2019-07-01 2021-03-10 세메스 주식회사 Apparatus for transporting substrate and system for treating substrate with the apparatus

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4120978B2 (en) * 2001-02-27 2008-07-16 ヤマハ株式会社 Electronic musical instrument bus system
JP3922280B2 (en) * 2004-09-30 2007-05-30 セイコーエプソン株式会社 Wiring pattern forming method and device manufacturing method
JP2011227286A (en) * 2010-04-20 2011-11-10 Tomy Co Ltd Electronic musical instrument toy

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102225937B1 (en) * 2019-07-01 2021-03-10 세메스 주식회사 Apparatus for transporting substrate and system for treating substrate with the apparatus

Also Published As

Publication number Publication date
JPH07319463A (en) 1995-12-08

Similar Documents

Publication Publication Date Title
JP2927229B2 (en) Medley playing equipment
JP2616274B2 (en) Automatic performance device
JP2500528B2 (en) Electronic musical instrument
JP3217591B2 (en) Electronic musical instrument
JP3239411B2 (en) Electronic musical instrument with automatic performance function
JP3724410B2 (en) Music editing apparatus for portable terminal and music editing program used for portable terminal
JPH08115084A (en) Automatic playing device
KR101113367B1 (en) Game system and computer program
JP3724409B2 (en) Music playback device in portable terminal and music playback program used in mobile terminal
JP2000194375A (en) Waveform reproducing device
JP3261929B2 (en) Automatic accompaniment device
JP2002169547A (en) Automatic music player and automatic music playing method
JPH0413192A (en) Electronic musical instrument
JP2669295B2 (en) Automatic performance device and recording medium for performance information
JPH0724000B2 (en) Automatic rhythm playing device
JP3887957B2 (en) Karaoke equipment
JP2565066B2 (en) Automatic accompaniment device
JPH05232938A (en) Automatic playing device
JP4062193B2 (en) Automatic accompaniment playback position detection device, automatic accompaniment device, automatic accompaniment playback position detection program, and automatic accompaniment control program
JP2705421B2 (en) Automatic accompaniment device
JP3407375B2 (en) Automatic arrangement device
JP2692539B2 (en) Automatic accompaniment device
JP3327188B2 (en) Chord progression creation support device and recording medium recording chord progression creation support program
JPH08202357A (en) Electronic instrument
JP2002132257A (en) Method of reproducing midi musical piece data

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20100803

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees