JP4117596B2 - Automatic performance device and automatic performance method - Google Patents

Automatic performance device and automatic performance method Download PDF

Info

Publication number
JP4117596B2
JP4117596B2 JP2001019759A JP2001019759A JP4117596B2 JP 4117596 B2 JP4117596 B2 JP 4117596B2 JP 2001019759 A JP2001019759 A JP 2001019759A JP 2001019759 A JP2001019759 A JP 2001019759A JP 4117596 B2 JP4117596 B2 JP 4117596B2
Authority
JP
Japan
Prior art keywords
pattern
accompaniment
area
recording
playback
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
JP2001019759A
Other languages
Japanese (ja)
Other versions
JP2002221964A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2001019759A priority Critical patent/JP4117596B2/en
Publication of JP2002221964A publication Critical patent/JP2002221964A/en
Application granted granted Critical
Publication of JP4117596B2 publication Critical patent/JP4117596B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、電子楽器に用いて好適な自動演奏装置および自動演奏方法に関する。
【0002】
【従来の技術】
従来より、パターンシーケンサと呼ばれる自動演奏装置が知られている。この種の装置は、例えば演奏操作に応じてリアルタイム入力される演奏情報、すなわち演奏すべき各音の音高や発音タイミング等を表すソングデータをメモリに記憶したり、その記憶したソングデータを指定テンポで再生して自動演奏する機能の他に、「ロック」、「ポップス」あるいは「ディスコ」等の各種伴奏スタイル毎の伴奏パターンデータをメモリに記憶しておき、ユーザーの選択操作に応じて選択された伴奏パターンに従って自動伴奏する機能を具備する。
【0003】
伴奏パターンは、曲を形成する各音の音高や発音タイミング等を表わす各種の伴奏エレメントを繋げて形成される。伴奏エレメントの種類としては、所定小節分の楽曲を表わすノーマルパターン、ノーマルパターンの序奏部に相当するイントロパターン、ノーマルパターンの途中に介挿されるノーマルフィルインパターン、ノーマルパターンのアレンジにより派生するバリエーションパターン、バリエーションパターンの途中に介挿されるバリエーションフィルインパターン、ノーマルパターン(あるいはバリエーションパターン)の終結部に付加されるエンディングパターンがある。
【0004】
【発明が解決しようとする課題】
さて、上述した従来の自動演奏装置では、ユーザーの演奏操作(鍵操作)によって伴奏エレメントを作成する機能を備えたものも実用化されている。そのような機能を用いて上述した各伴奏エレメントからなる伴奏パターンを形成する場合には、ある伴奏エレメントを作成したらそれをメモリ登録し、メモリ登録完了後に次の伴奏エレメントを作成して更にメモリ登録するといったように、各伴奏エレメントを個々独立して作成する態様となる。
【0005】
ところが、このように各伴奏エレメントを個々独立して作成する態様であると、必然的に「イントロパターン」から「エンディングパターン」に至る一連の音楽的な繋がりや、演奏上の乗りが寸断されてしまう為、ユーザーはイメージした通りの伴奏パターンを形成し難くなるという問題がある。
また、伴奏パターンを再生させる際にあっても、従来の自動演奏装置ではユーザーが各伴奏エレメントを順次指定して伴奏パターンの再生を進行させる態様となるが、かかる態様ではその操作が煩わしいという問題も生じている。
【0006】
そこで本発明は、このような事情に鑑みてなされたもので、ユーザーがイメージした通りの伴奏パターンを形成でき、しかも一連の伴奏エレメントを自動的に再生して伴奏パターンを進行させることができる自動演奏装置および自動演奏方法を提供することを目的としている。
【0007】
【課題を解決するための手段】
上記目的を達成するため、請求項1に記載の発明では、録音エリアおよび複数の伴奏エレメントが格納される再生エリアを備えるエレメント記憶手段と、録音指示に応じて、外部から入力される入力エレメントを前記エレメント記憶手段の録音エリアに収録し、その入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合する結合手段と、再生指示に応じて、前記エレメント記憶手段の再生エリアに格納される複数の伴奏エレメントを連続的に繰り返し再生し、その際に前記結合手段が入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合した場合には、現在再生中の伴奏エレメントが再生し終えた後、再生エリアに結合された録音エリアの入力エレメントを再生する再生手段とを具備することを特徴とする。
【0008】
請求項2に記載の発明では、複数種の伴奏パターンを記憶するパターン記憶手段と、このパターン記憶手段に記憶される複数種の伴奏パターンの内から何れかの伴奏パターンを選択するパターン選択手段と、録音エリアおよび再生エリアを備えるエレメント記憶手段と、前記パターン選択手段によって選択された伴奏パターンを形成する複数の伴奏エレメントを前記パターン記憶手段から読み出して前記エレメント記憶手段の再生エリアに転送する転送手段と、録音指示に応じて、外部から入力される入力エレメントを前記エレメント記憶手段の録音エリアに収録し、入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合する結合手段と、再生指示に応じて、前記エレメント記憶手段の再生エリアに記憶される複数の伴奏エレメントを連続的に繰り返し再生し、その際に前記結合手段が入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合した場合には、現在再生中の伴奏エレメントが再生し終えた後、再生エリアに結合された録音エリアの入力エレメントを再生する再生手段とを具備することを特徴とする。
【0009】
請求項3に記載の発明では、エレメント記憶手段の再生エリアに複数の伴奏エレメントを格納する格納過程と、録音指示に応じて、外部から入力される入力エレメントを前記エレメント記憶手段の録音エリアに収録し、その入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合する結合過程と、再生指示に応じて、前記エレメント記憶手段の再生エリアに格納される複数の伴奏エレメントを連続的に繰り返し再生し、その際に前記結合過程にて入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合した場合には、現在再生中の伴奏エレメントが再生し終えた後、再生エリアに結合された録音エリアの入力エレメントを再生する再生過程とを具備することを特徴とする。
【0010】
請求項4に記載の発明では、複数種の伴奏パターンを記憶するパターン記憶手段の内から何れかの伴奏パターンを選択するパターン選択過程と、このパターン選択過程で選択された伴奏パターンを形成する複数の伴奏エレメントを前記パターン記憶手段から読み出してエレメント記憶手段の再生エリアに転送する転送過程と、録音指示に応じて、外部から入力される入力エレメントを前記エレメント記憶手段の録音エリアに収録し、入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合する結合過程と、再生指示に応じて、前記エレメント記憶手段の再生エリアに記憶される複数の伴奏エレメントを連続的に繰り返し再生し、その際に前記結合過程にて入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合した場合には、現在再生中の伴奏エレメントが再生し終えた後、再生エリアに結合された録音エリアの入力エレメントを再生する再生過程とを具備することを特徴とする。
【0011】
本発明では、エレメント記憶手段の再生エリアに格納される複数の伴奏エレメントを連続的に繰り返し再生している際に、録音指示があると、外部から入力される入力エレメントをエレメント記憶手段の録音エリアに収録し、その入力エレメントを収録した録音エリアをエレメント記憶手段の再生エリアに結合する。そして、現在再生中の伴奏エレメントが再生し終えたら、再生エリアに結合された録音エリアの入力エレメントを再生する。
つまり、全ての伴奏エレメントを繋げた形で再生および録音し得るので、「イントロパターン」から「エンディングパターン」に至る一連の音楽的な繋がりや演奏上の乗りが寸断されることなく、ユーザーはイメージした通りの伴奏パターンを作成することが可能になる。しかも、複数の伴奏エレメントを連続的に繰り返し再生するから、各伴奏エレメントを順次指定してパターン再生を進行させるという従来の煩わしさを解消し得る。
【0012】
【発明の実施の形態】
本発明による自動演奏装置は、周知の電子楽器の他、パーソナルコンピュータを用いたDTM(デスク・トップ・ミュージック)等に適用され得る。以下では、本発明の実施の形態である自動演奏装置を実施例とし、これについて図面を参照して説明する。
【0013】
A.構成
図1は、本発明による実施例の構成を示すブロック図である。この図において、1は装置パネルに配設されるパネルスイッチ群であり、各スイッチ操作に対応するスイッチイベントを発生する。
ここで、図2を参照してパネルスイッチ群1に配設される主要なスイッチについて説明しておく。図2において、10はオールエレメントシリアルスイッチ(以下、AESスイッチと記す)である。このAESスイッチ10がオン操作された場合、イントロパターンからエンディングパターンまでの一連の伴奏エレメントの録音(記憶)あるいは再生が指示される。AESスイッチ10近傍には、LED10aが配設されており、AESスイッチ10のオン操作に応じて点灯される。
【0014】
11はスタート/ストップスイッチであり、ソングデータ/パターンデータの再生開始および再生停止を指示する。このスタート/ストップスイッチ11は、押下操作される毎にオン状態/オフ状態が交互に設定される所謂トグルスイッチとして機能し、再生開始を指示するオン状態にあると、当該スイッチ11近傍に配設されるLED11aが点灯駆動される。
【0015】
12〜15はそれぞれ伴奏エレメントを指定するスイッチ群である。イントロスイッチ12は、図示されていないパターン切換えスイッチの操作に応じて選択された伴奏パターン中の序奏部に相当するイントロパターンを指定する。ノーマル/フィルインスイッチ13は、選択された伴奏パターン中のノーマルパターンもしくはノーマルパターンの途中に介挿されるノーマルフィルインパターンのいずれかを指定する。
バリエーション/フィルインスイッチ14は、ノーマルパターンのアレンジにより派生するバリエーションパターンもしくはバリエーションパターンの途中に介挿されるバリエーションフィルインパターンのいずれかを指定する。エンディングスイッチ15は、ノーマルパターン(あるいはバリエーションパターン)の終結部に付加されるエンディングパターンを指定する。
【0016】
16はプリセットスイッチである。プリセットスイッチ16は、シーケンスエリアSE(後述する)に格納された伴奏パターンを、オリジナルパターンエリアOPE(後述する)に保存する際に操作される。プリセットスイッチ16近傍には、LED16aが配設されており、当該スイッチ16のオン操作に応じて点灯される。
17は押下操作される毎に交互にオン状態あるいはオフ状態のいずれかに設定されるソングスイッチである。ソングスイッチ17がオン状態に設定された場合、ソングデータの録音あるいは再生が指示される。ソングスイッチ17近傍には、LED17aが配設されており、当該スイッチ17がオン状態に設定された場合に点灯される。
【0017】
18は押下操作される毎に交互にオン状態あるいはオフ状態のいずれかに設定されるパターンスイッチである。パターンスイッチ18がオン状態に設定された場合、伴奏パターンの録音あるいは再生が指示される。パターンスイッチ18近傍には、LED18aが配設されており、当該スイッチ18がオン状態に設定された場合に点灯される。
また、ソングスイッチ17とパターンスイッチ18とは、一方がオン状態に設定されている時、他方がオフ状態に設定されるよう連携動作するものであり、例えば、ソングスイッチ17側がオン状態に設定されていると、パターンスイッチ18側はオフ状態に設定され、それに応じてLED17a,18aが点灯/消灯駆動されるようになっている。
【0018】
19はソングデータあるいは伴奏パターンデータを入力(録音)する際にオン操作される録音スイッチである。
なお、図示されていないパターン切換えスイッチとは、数値入力キーやカーソルキーから構成され、それらキー操作に応じて「ロック」、「ポップス」あるいは「ディスコ」等の各種伴奏スタイルの中から所望の伴奏パターンを選択するスイッチである。
【0019】
次に、再び図1を参照して実施例の構成について説明を進める。図1において、2は上述したパネルスイッチ群1の各スイッチ操作に対応して装置各部を制御するCPUであり、その特徴的な動作については後述する。また、このCPU2は、自動演奏や自動伴奏時の再生テンポを規定するテンポクロックを発生しており、このテンポクロックに同期して自動演奏あるいは自動伴奏を進行させるようになっている。3は上記CPU2にロードされる各種制御プログラムや各種音色の波形データ等を記憶するROMである。
【0020】
5はCPU2の演算に用いる各種レジスタ・フラグデータを一時記憶するワークエリアや入力/出力イベントを一時記憶する入力/出力バッファの他、ソングデータ/伴奏パターンデータを一時記憶するエリアを備えるRAMである。
ここで、図3〜図5を参照してRAM5に記憶される主要なデータについて説明する。図3において、OPEはオリジナリパターンエリアである。オリジナリパターンエリアエリアOPEには、図4に図示するように、複数の伴奏パターン(1)〜(N)が格納される。各伴奏パターン(1)〜(N)は、伴奏エレメント(0)〜(5)と、それら伴奏エレメント(0)〜(5)の読み出し開始アドレスSTART(0)〜(5)を表すヘッダHDとから形成される。
【0021】
伴奏エレメント(0)〜(5)とは、それぞれ前述した「イントロパターン(伴奏エレメント(0))」、「ノーマルパターン(伴奏エレメント(1))」、「ノーマルフィルインパターン(伴奏エレメント(2))」、「バリエーションパターン(伴奏エレメント(3))」、「バリエーションフィルインパターン(伴奏エレメント(4))」および「エンディングパターン(伴奏エレメント(5))」である。
【0022】
図3に示すWEは、CPU2の各種処理に用いるレジスタ・フラグデータを記憶するワークエリアであり、このエリアに格納されるレジスタ・フラグデータの内容については後述の動作説明で述べる。
シーケンスエリアSEは、図5に示すように、録音エリアRECおよび再生エリアREPから構成される。録音エリアRECおよび再生エリアREPは、所謂編集バッファとして用いられるものであり、録音エリアRECに録音(記録)される伴奏パターンデータ(もしくはソングデータ)は、再生時に再生エリアREPとマージされて読み出される。つまり、シーケンスエリアSEは便宜的に録音エリアRECおよび再生エリアREPに区分されているのであって、物理的に区別されたエリアではなく、録音されたデータを再生エリアREPにマージすることに特徴がある。
【0023】
再生エリアREPには、例えばパターン切換えスイッチの操作によりオリジナルパターンエリアOPEから選択される伴奏パターンデータ、すなわち伴奏パターンを形成する各伴奏エレメント(0)〜(5)と、それら伴奏エレメント(0)〜(5)の格納アドレスAD(0)〜(5)とが格納される。
そして、例えば伴奏エレメント(0)の一部パートを録音エリアRECに録音した場合、その録音エリアRECに録音した伴奏エレメント(0)の一部パートが再生エリアREPにマージされ、当該伴奏エレメント(0)を再生する際には、マージされた一部パートが再生されるようになっている。
【0024】
なお、各エレメント(0)〜(5)は、発音タイミングを表わすタイミングデータTIMEと、その発音内容を表わすイベントデータEVENTとが伴奏進行に対応した時系列のアドレス順に所定の音符長を最小単位とする分解能で記憶されており、これらはアドレスポインタADの歩進によって順次読み出されて再生される。
【0025】
次に、再び図1を参照して実施例の構成について説明する。図1において、5はLCDパネル等から構成される表示部であり、CPU2から供給される表示制御信号に応じて装置各部の動作状態や設定状態を画面表示する。6はソングデータや伴奏パターンデータを録音する際に用いられる鍵盤であり、押離鍵操作に応じた鍵イベントを発生する。
7は周知の波形メモリ読み出し方式により構成される音源である。この音源7は伴奏音源部および通常音源部とを備え、通常音源部では押離鍵操作に応じた鍵イベントもしくはシーケンスエリアSEから読み出されるソングデータに基づき、CPU2がROM3から指定音色の波形データを読み出して楽音合成し、これを演奏音として出力する。一方、伴奏音源部では指定テンポに同期してシーケンスエリアSE中の再生エリアREPから読み出される伴奏パターンデータに対応した伴奏音を発生する。
【0026】
B.実施例の動作
次に、図6〜図38を参照して実施例の動作について説明する。以下では、最初に、概略動作としてメインルーチンの動作について説明した後、このメインルーチンを構成する各種処理ルーチンの動作を説明する。
【0027】
(1)メインルーチンの動作
実施例に電源が投入されると、CPU2はROM3から所定の制御プログラムをロードし、図6に示すメインルーチンを実行してステップS1に処理を進め、RAM4に設けられる各種レジスタやフラグ類をリセットしたり、音源6に対して各種レジスタ・フラグを初期化するよう指示するイニシャライズを実行する。そして、イニシャライズが完了すると、CPU2は次のステップS2に処理を進め、パネルスイッチ群1のスイッチ操作に対応した各種スイッチ処理を行う。
【0028】
次いで、ステップS3では、鍵盤6の押離鍵操作に応じて発生する鍵イベント、もしくは図示されていないMIDIインタフェースを介して取り込むMIDIデータを、RAM4の入力バッファに取り込む入力処理を行う。続いて、ステップS4ではRAM4のオリジナルパターンエリアOPEの内から選択された伴奏パターンを再生するパターン再生処理を実行する。次に、ステップS5ではソングデータを録音/再生するソング録再処理を実行し、続くステップS6では伴奏エレメントをシーケンスエリアSEに録音(入力)したり、録音した伴奏エレメントを含んだ一連の伴奏パターンとして再生するシーケンスパターン録再処理を実行する。
【0029】
そして、ステップS7では、入力処理にてRAM4の入力バッファに取り込んだ鍵イベントあるいはMIDIデータを出力バッファを介して音源7に転送したり、ソングデータあるいは伴奏パターンデータの再生に応じて出力バッファにかきこまれるイベントを音源7に送出して楽音(演奏音/伴奏音)を発生させる出力処理を行う。この後、ステップS8に進み、例えばスイッチ操作に応じて装置の動作状態を表示部5に画面表示させる等の、その他の処理を実行した後、上記ステップS2に処理を戻し、以後、装置電源がオフされる迄、ステップS2〜S8を繰り返す。
【0030】
(2)スイッチ処理ルーチンの動作
次に、図7〜図26を参照してスイッチ処理ルーチンの動作について説明する。上述したステップS2を介して図7に示すスイッチ処理ルーチンが実行されると、操作されるスイッチに応じて、ステップSA1〜SA6のいずれかが実行される。以下、各スイッチ操作に対応した処理について述べて行く。
【0031】
▲1▼スタート/ストップスイッチ処理ルーチンの動作
スタート/ストップスイッチ11が操作されると、図7のステップSA1を介して図8に示すスタート/ストップスイッチ処理ルーチンを実行し、ステップSa1に処理を進め、フラグSTFを反転する。フラグSTFはその値が「1」の時に再生開始を表し、「0」の時に再生停止を表す。ステップSa2では、反転したフラグSTFが「1」、つまり、再生開始を表すオン状態に設定されているかどうかを判断する。ここで、再生停止を表すオフ状態(STF=0)であれば、判断結果は「NO」となり、何も処理せずに本ルーチンを完了させる。
【0032】
一方、再生開始を表すオン状態に設定されていれば、ソングスイッチ17、パターンスイッチ18および録音スイッチ19の設定状態に応じた処理を実行する。以下、「スイッチ17〜19がいずれもオフ設定されている場合」、「ソングスイッチ17がオン設定されている場合」、「録音スイッチ19がオン設定されている場合」、「パターンスイッチ18がオン設定されている場合」およびの各ケースについて動作説明する。
【0033】
(イ)スイッチ17〜19がいずれもオフ設定されている場合
この場合、録音フラグRF、スタートソングフラグSSFおよびスタートパターンフラグSPFはいずれも「0」なので、ステップSa3,Sa5およびSa7の判断結果はそれぞれ「NO」となり、ステップSa9を介して図9に示すパターン再生初期化処理ルーチンを実行する。
パターン再生初期化処理ルーチンが実行されると、CPU2は図9のステップSa9−1に処理を進め、伴奏パターンを読み出す為のアドレスポインタADにスタートアドレスSTART(n,1)をセットする。ここで、スタートアドレスSTART(n,1)とは、オリジナルパターンエリアOPEからパターン切換えスイッチの操作に応じて選択された伴奏パターンnの伴奏エレメント(1)、つまりノーマルパターンの先頭アドレスを指定するものである。次いで、ステップSa9−2では、そのアドレスポインタADに応じて読み出されるタイミングデータTIMEをレジスタTpにストアして本ルーチンを完了させる。
【0034】
(ロ)ソングスイッチ17がオン設定されている場合
この場合、スタートソングフラグSSFが「1」となるので、ステップSa5の判断結果が「YES」となり、ステップSa6を介して図10に示すソング再生初期化処理ルーチンを実行する。
ソング再生初期化処理ルーチンが実行されると、CPU2は図10のステップSa6−1に処理を進め、ソングデータを読み出す為のアドレスポインタADに開始アドレスをセットし、続くステップSa6−2では、そのアドレスポインタADに応じてシーケンスエリアSEから読み出される先頭データ、つまり、タイミングデータTIMEをレジスタTpにストアして本ルーチンを完了させる。
【0035】
(ハ)録音スイッチ19がオン設定されている場合
この場合、録音フラグRFが「1」となるので、ステップSa3の判断結果が「YES」となり、ステップSa4を介して図11に示す録音初期化処理ルーチンを実行する。
録音初期化処理ルーチンが実行されると、CPU2は図11のステップSa4−1に処理を進め、シーケンスエリアSE中の録音エリアRECにおける録音開始アドレスをレジスタRADにセットし、続くステップSa4−2では、録音時刻をカウントするレジスタTrをゼロリセットして本ルーチンを完了させる。
【0036】
(ニ)パターンスイッチ18がオン設定されている場合
この場合、スタートパターンフラグSPFが「1」となるので、ステップSa7の判断結果が「YES」となり、ステップSa8を介して図12に示すシーケンスパターン再生初期化処理ルーチンを実行する。
シーケンスパターン再生初期化処理ルーチンが実行されると、CPU2は図12のステップSa8−1に処理を進め、シーケンスエリアSEの再生エリアREPにおいて、伴奏エレメント(1)、つまりノーマルパターンの先頭アドレスを指定すべくAD(1)の内容をアドレスポインタADにストアし、続くステップSa8−2では、そのアドレスポインタADに応じて読み出されるタイミングデータTIMEをレジスタTpにストアして本ルーチンを完了させる。
【0037】
▲2▼シーケンススイッチ処理ルーチンの動作
シーケンススイッチとは、上述したソングスイッチ17、パターンスイッチ18および録音スイッチ19の総称である。これらスイッチ17〜19のいずかが操作されると、図7のステップSA2を介して図13に示すシーケンススイッチ処理ルーチンを実行し、ステップSb1〜Sb3を介して、操作されたスイッチ毎の処理を実行する。以下、ソングスイッチ17、パターンスイッチ18および録音スイッチ19がそれぞれ操作された時の処理について述べる。
【0038】
(イ)録音スイッチ処理ルーチンの動作
録音スイッチ19が操作されると、ステップSb1を介して図14に示す録音スイッチ処理ルーチンが実行され、CPU2はステップSb1−1に処理を進め、フラグSSFおよびフラグSPFのいずれかが「1」、つまり、ソングスイッチ17およびパターンスイッチ18のいずれかがオン状態に設定されているかどうかを判断する。いずれかがオン状態にあれば、判断結果は「YES」となり、ステップSb1−2に進み、録音フラグRFを「1」にセットして録音動作に入った旨を表す。
一方、ソングスイッチ17およびパターンスイッチ18のいずれもオフ状態に設定されていると、録音対象が指定されていないことになる為、この場合、ステップSb1−1の判断結果が「NO」となり、何も処理せずに本ルーチンを完了させる。
【0039】
(ロ)パターンスイッチ処理ルーチンの動作
パターンスイッチ18が操作されると、ステップSb2(図13参照)を介して図15に示すパターンスイッチ処理ルーチンが実行され、CPU2はステップSb2−1に処理を進め、スタートパターンフラグSPFを反転する。次いで、ステップSb2−2では、反転したスタートパターンフラグSPFが「1」、すなわち、パターンスイッチ18がオン設定されたかどうかを判断する。
ここで、反転したスタートパターンフラグSPFが「0」となり、パターンスイッチ18がオフ設定された状態であれば、判断結果は「NO」となり、ステップSb2−3に処理を進め、録音フラグRFをゼロリセットし、続くステップSb2−4にてパターンスイッチ18近傍に配設されるLED18aを消灯させてから本ルーチンを完了させる。
【0040】
一方、反転したスタートパターンフラグSPFが「1」となり、パターンスイッチ18がオン設定された状態になると、上記ステップSb2−2の判断結果は「YES」となり、ステップSb2−5に進み、スタートソングフラグSSFをゼロリセットし、続くステップSb2−6では、ソングスイッチ17近傍に配設されるLED17aを消灯する一方、パターンスイッチ18近傍に配設されるLED18aを点灯させる。
そして、ステップSb2−7では、オリジナルパターンエリアOPEからパターン切換えスイッチの操作に応じて選択された伴奏パターン(n)の伴奏エレメント(0)〜(5)を一まとめに、シーケンスエリアSEの再生エリアREPにコピーする。続いて、ステップSb2−8では、コピーした伴奏パターン(n)のヘッダ部HDを形成する各伴奏エレメント(0)〜(5)のスタートアドレスSTART(0)〜(5)を、シーケンスエリアSE内における読み出し開始アドレスAD(0)〜(5)にそれぞれ変換して本ルーチンを完了させる。
【0041】
(ハ)ソングスイッチ処理ルーチンの動作
ソングスイッチ17が操作されると、ステップSb3(図13参照)を介して図16に示すソングスイッチ処理ルーチンが実行され、CPU2はステップSb3−1に処理を進め、スタートソングフラグSSFを反転する。次いで、ステップSb3−2では、反転したスタートソングフラグSSFが「1」、すなわち、ソングスイッチ17がオン設定されたかどうかを判断する。
ここで、反転したスタートソングフラグSSFが「0」となり、ソングスイッチ17がオフ設定された状態であれば、判断結果は「NO」となり、ステップSb3−3に処理を進め、録音フラグRFをゼロリセットし、続くステップSb3−4にてソングスイッチ17近傍に配設されるLED17aを消灯させる。
【0042】
一方、反転したスタートソングフラグSSFが「1」となり、ソングスイッチ17がオン設定された状態になると、上記ステップSb3−2の判断結果は「YES」となり、ステップSb3−5に進む。ステップSb3−5では、スタートパターンフラグSPFをゼロリセットし、続くステップSb3−6では、ソングスイッチ17近傍に配設されるLED17aを点灯する一方、パターンスイッチ18近傍に配設されるLED18aを消灯して本ルーチンを完了させる。
【0043】
▲3▼エレメントスイッチ処理ルーチンの動作
エレメントスイッチとは、伴奏エレメントを指定するスイッチ12〜15およびオールエレメントシリアルスイッチ10の総称である。これらスイッチ10、12〜15のいずかが操作されると、図7のステップSA3を介して図17に示すエレメントスイッチ処理ルーチンを実行し、ステップSc1に処理を進める。ステップSc1では、スタートソングフラグSSFが「0」、すなわち、ソングスイッチ17がオフ設定された状態であるかどうかを判断する。ソングスイッチ17がオン設定された状態であれば、判断結果は「NO」となり、この場合、エレメントスイッチの操作は無効となる。
一方、ソングスイッチ17がオフ設定されていると、判断結果が「YES」となり、ステップSc2〜Sc6を介して、操作されたスイッチ種類に対応した処理を実行する。以下、イントロスイッチ12、ノーマル/フィルインスイッチ13、バリエーション/フィルインスイッチ14、エンディングスイッチ15およびAESスイッチ10がそれぞれ操作された時の処理について述べる。
【0044】
(イ)イントロスイッチ処理ルーチンの動作
イントロスイッチ12が操作されると、図18に示すイントロスイッチ処理ルーチンにおけるステップSc2−1の判断結果が「YES」となり、ステップSc2−2に処理を進める。ステップSb2−2では、スタートパターンフラグSPFが「1」、すなわち、パターンスイッチ18がオン設定されるシーケンスモード下であるかどうかを判断する。
ここで、シーケンスモード下でなければ、判断結果は「NO」となり、ステップSc2−3〜Sc2−7を実行し、オリジナルパターンエリアOPE中で選択された伴奏パターン(n)のイントロパターン(伴奏エレメント(0))を読み出す為の処理を行う。
【0045】
すなわち、まずステップSc2−3では、スタートアドレスSTART(n,0)をアドレスポインタADにストアする。次いで、ステップSc2−4では、そのアドレスポインタADに応じて、オリジナルパターンエリアOPE中で選択された伴奏パターン(n)のイントロパターン(伴奏エレメント(0))から読み出される先頭データ(タイミングデータTIME)をレジスタTpにセットする。そして、ステップSc2−5では、伴奏エレメントの種別を保持するレジスタELEMENTに、”イントロパターン”を表す「0」をセットした後、スタートフラグSTFを「1」にセットする。この後、ステップSc2−7にてフラグNF,VFを共に「1」をセットして本ルーチンを完了する。
【0046】
なお、フラグNFとは、ノーマル/フィルインスイッチ13がノーマルパターンを指定するか、あるいはノーマルフィルインパターンを指定するかを区別するフラグであり、フラグ値が「1」であると、ノーマル/フィルインスイッチ13の操作に応じてノーマルパターンを指定する設定になる。
また、フラグVFとは、バリエーション/フィルインスイッチ14がバリエーションパターンを指定するか、あるいはバリエーションフィルインパターンを指定するかを区別するフラグであり、フラグ値が「1」であると、ノーマル/フィルインスイッチ13の操作に応じてバリエーションパターンを指定する設定になる。
【0047】
さて一方、パターンスイッチ18がオン設定されるシーケンスモード下であると、上記ステップSc2−2の判断結果が「YES」となり、CPU2はステップSc2−8に処理を進める。ステップSc2−8では、スタートフラグSTFが「1」、つまり、再生開始されているかどうかを判断する。
ここで、スタートフラグSTFが「0」で再生停止中であれば、判断結果は「NO」となり、ステップSc2−9に進み、シーケンスエリアSE中の再生エリアREPにおけるイントロパターン(伴奏エレメント(0))の先頭アドレスAD(0)をポインタアドレスADにストアする。次いで、ステップSc2−10では、レジスタELEMENTに、”イントロパターン”を表す「0」をセットし、続くステップSc2−11では待機フラグTAIKIFに「1」をセットして待機状態に設定する。この後、ステップSc2−7を経てフラグNF,VFを共に「1」をセットして本ルーチンを完了する。
【0048】
これに対し、シーケンスモード下であって、しかもパターン再生が開始されていると、上記ステップSc2−8の判断結果は「YES」となり、ステップSc2−12に進み、シーケンスエリアSE中の再生エリアREPにおけるイントロパターン(伴奏エレメント(0))の先頭アドレスAD(0)を、待機アドレスを保持するレジスタTAIKIADにストアし、続くステップSc2−13では待機フラグTAIKIFに「1」をセットして待機状態に設定する。この後、待機状態にある伴奏エレメント種類を保持するレジスタTAIKIEに、”イントロパターン”を表す「0」をセットした後、ステップSc2−7を経てフラグNF,VFを共に「1」をセットして本ルーチンを完了する。
【0049】
(ロ)ノーマル/フィルインスイッチ処理ルーチンの動作
ノーマル/フィルインスイッチ13が操作されると、図19に示すノーマル/フィルインスイッチ処理ルーチンにおけるステップSc3−1の判断結果が「YES」となり、ステップSc3−2に処理を進める。ステップSc3−2では、フラグNFを反転すると共に、フラグVFに「1」をセットする。次いで、ステップSc3−3に進むと、スタートパターンフラグSPFが「1」、すなわち、パターンスイッチ18がオン設定されるシーケンスモード下であるかどうかを判断する。
【0050】
ここで、シーケンスモード下でなければ、判断結果は「NO」となり、図20に示すステップSc3−4〜Sc3−9を実行し、オリジナルパターンエリアOPE中で選択された伴奏パターン(n)のノーマルパターン(伴奏エレメント(1))あるいはノーマルフィルインパターン(伴奏エレメント(2))のいずれかを読み出す為の処理を行う。
【0051】
すなわち、ステップSc3−4では、フラグNFが「1」であるか否かを判断する。そして、フラグNFが「1」であれば、次のステップSc3−5に進み、オリジナルパターンエリアOPEで選択した伴奏パターン(n)中のノーマルパターン(伴奏エレメント(1))のスタートアドレスSTART(n,1)を、待機アドレスを保持するレジスタTAIKIADにストアする。続いて、ステップSc3−6では待機フラグTAIKIFに「1」をセットして待機状態に設定した後、ステップSc3−7に進み、待機状態にある伴奏エレメント種類を保持するレジスタTAIKIEに、”ノーマルパターン”を表す「1」をセットして本ルーチンを完了する。
【0052】
これに対し、フラグNFが「0」であると、上記ステップSc3−4の判断結果が「NO」となり、ステップSc3−8に進む。ステップSc3−8では、オリジナルパターンエリアOPEで選択した伴奏パターン(n)中のノーマルフィルインパターン(伴奏エレメント(2))のスタートアドレスSTART(n,2)をアドレスポインタADにストアする。次いで、ステップSc3−9では、伴奏エレメントの種別を保持するレジスタELEMENTに、”ノーマルフィルインパターン”を表す「2」をセットして本ルーチンを完了する。
【0053】
さて一方、パターンスイッチ18がオン設定されるシーケンスモード下であると、図19に示すステップSc3−3の判断結果が「YES」となり、CPU2はステップSc3−10に処理を進める。ステップSc3−10では、スタートフラグSTFが「1」、つまり、再生開始しているかどうかを判断する。ここで、再生停止であれば、判断結果は「NO」となり、ステップSc3−11に進み、フラグNFが「1」であるかどうかを判断する。以下、フラグNFが「1」,「0」の各場合の動作について述べる。
【0054】
<フラグNFが「1」の場合>
この場合、判断結果は「YES」となり、次のステップSc3−12に処理を進め、シーケンスエリアSE中の再生エリアREPにおけるノーマルパターン(伴奏エレメント(1))の先頭アドレスAD(1)をポインタアドレスADにストアする。次いで、ステップSc3−13では、レジスタELEMENTに、”ノーマルパターン”を表す「1」をセットしてから本ルーチンを完了する。
【0055】
<フラグNFが「0」の場合>
この場合、判断結果は「NO」となり、ステップSc3−14に進み、シーケンスエリアSE中の再生エリアREPにおけるノーマルフィルインパターン(伴奏エレメント(2))の先頭アドレスAD(2)をポインタアドレスADにストアした後、ステップSc3−15に進み、レジスタELEMENTに、”フィルインパターン”を表す「2」をセットしてから本ルーチンを完了する。
【0056】
これに対し、シーケンスモード下であって、しかもパターン再生が開始されていると、上記ステップSc3−10の判断結果は「YES」となり、ステップSc3−16に進み、フラグNFが「1」であるかどうかを判断する。以下、フラグNFが「1」,「0」の各場合の動作について述べる。
【0057】
<フラグNFが「1」の場合>
この場合、判断結果は「YES」となり、次のステップSc3−17に処理を進め、シーケンスエリアSE中の再生エリアREPにおけるノーマルパターン(伴奏エレメント(1))の先頭アドレスAD(1)を、待機アドレスを保持するレジスタTAIKIADにストアし、続くステップSc3−18では待機フラグTAIKIFに「1」をセットして待機状態に設定する。この後、ステップSc3−19に進み、待機状態にある伴奏エレメント種類を保持するレジスタTAIKIEに、”ノーマルパターン”を表す「1」をセットしてから本ルーチンを完了する。
【0058】
<フラグNFが「0」の場合>
この場合、判断結果は「NO」となり、ステップSc3−20に進み、シーケンスエリアSE中の再生エリアREPにおけるノーマルフィルインパターン(伴奏エレメント(2))の先頭アドレスAD(2)を、待機アドレスを保持するレジスタTAIKIADにストアし、続くステップSc3−21では待機フラグTAIKIFに「1」をセットして待機状態に設定する。この後、ステップSc3−22に進み、待機状態にある伴奏エレメント種類を保持するレジスタTAIKIEに、”ノーマルフィルインパターン”を表す「2」をセットしてから本ルーチンを完了する。
【0059】
(ハ)バリエーション/フィルインスイッチ処理ルーチンの動作
バリエーション/フィルインスイッチ14が操作されると、図21に示すバリエーション/フィルインスイッチ処理ルーチンにおけるステップSc4−1の判断結果が「YES」となり、ステップSc4−2に処理を進める。ステップSc4−2では、フラグVFを反転すると共に、フラグNFに「1」をセットする。次いで、ステップSc4−3に進むと、スタートパターンフラグSPFが「1」、すなわち、パターンスイッチ18がオン設定されるシーケンスモード下であるかどうかを判断する。
ここで、シーケンスモード下でなければ、判断結果は「NO」となり、図22に示すステップSc4−4〜Sc4−9を実行し、オリジナルパターンエリアOPE中で選択された伴奏パターン(n)のバリエーションパターン(伴奏エレメント(3))あるいはバリエーションフィルインパターン(伴奏エレメント(4))のいずれかを読み出す為の処理を行う。
【0060】
すなわち、ステップSc4−4では、フラグVFが「1」であるか否かを判断する。そして、フラグVFが「1」であれば、次のステップSc4−5に進み、オリジナルパターンエリアOPEで選択した伴奏パターン(n)中のバリエーションパターン(伴奏エレメント(3))のスタートアドレスSTART(n,3)を、待機アドレスを保持するレジスタTAIKIADにストアする。続いて、ステップSc4−6では待機フラグTAIKIFに「1」をセットして待機状態に設定した後、ステップSc4−7に進み、待機状態にある伴奏エレメント種類を保持するレジスタTAIKIEに、”バリエーションパターン”を表す「3」をセットして本ルーチンを完了する。
【0061】
これに対し、フラグVFが「0」であると、上記ステップSc4−4の判断結果が「NO」となり、ステップSc4−8に進む。ステップSc4−8では、オリジナルパターンエリアOPEで選択した伴奏パターン(n)中のバリエーションフィルインパターン(伴奏エレメント(4))のスタートアドレスSTART(n,4)をアドレスポインタADにストアする。次いで、ステップSc4−9では、伴奏エレメントの種別を保持するレジスタELEMENTに、”バリエーションフィルインパターン”を表す「4」をセットして本ルーチンを完了する。
【0062】
さて一方、パターンスイッチ18がオン設定されるシーケンスモード下であると、上記ステップSc4−3(図21参照)の判断結果が「YES」となり、CPU2はステップSc4−10に処理を進める。ステップSc4−10では、スタートフラグSTFが「1」、つまり、パターン再生が開始されているかどうかを判断する。ここで、パターン再生が停止していると、判断結果は「NO」となり、ステップSc4−11に進み、フラグVFが「1」であるかどうかを判断する。以下、フラグVFが「1」,「0」の各場合の動作について述べる。
【0063】
<フラグVFが「1」の場合>
この場合、判断結果は「YES」となり、次のステップSc4−12に処理を進め、シーケンスエリアSE中の再生エリアREPにおけるバリエーションパターン(伴奏エレメント(3))の先頭アドレスAD(3)をポインタアドレスADにストアする。次いで、ステップSc4−13では、レジスタELEMENTに、”バリエーションパターン”を表す「3」をセットしてから本ルーチンを完了する。
【0064】
<フラグVFが「0」の場合>
この場合、判断結果は「NO」となり、ステップSc4−14に進み、シーケンスエリアSE中の再生エリアREPにおけるバリエーションフィルインパターン(伴奏エレメント(4))の先頭アドレスAD(4)をポインタアドレスADにストアした後、ステップSc4−15に進み、レジスタELEMENTに、”バリエーションフィルインパターン”を表す「4」をセットしてから本ルーチンを完了する。
【0065】
これに対し、シーケンスモード下であって、しかもパターン再生が開始されていると、上記ステップSc4−10の判断結果は「YES」となり、ステップSc4−16に進み、フラグVFが「1」であるかどうかを判断する。以下、フラグVFが「1」,「0」の各場合の動作について述べる。
【0066】
<フラグVFが「1」の場合>
この場合、判断結果は「YES」となり、次のステップSc4−17に処理を進め、シーケンスエリアSE中の再生エリアREPにおけるバリエーションパターン(伴奏エレメント(3))の先頭アドレスAD(3)を、待機アドレスを保持するレジスタTAIKIADにストアし、続くステップSc4−18では待機フラグTAIKIFに「1」をセットして待機状態に設定する。この後、ステップSc4−19に進み、待機状態にある伴奏エレメント種類を保持するレジスタTAIKIEに、”バリエーションパターン”を表す「3」をセットしてから本ルーチンを完了する。
【0067】
<フラグVFが「0」の場合>
この場合、判断結果は「NO」となり、ステップSc4−20に進み、シーケンスエリアSE中の再生エリアREPにおけるバリエーションフィルインパターン(伴奏エレメント(4))の先頭アドレスAD(4)を、待機アドレスを保持するレジスタTAIKIADにストアし、続くステップSc4−21では待機フラグTAIKIFに「1」をセットして待機状態に設定する。この後、ステップSc4−22に進み、待機状態にある伴奏エレメント種類を保持するレジスタTAIKIEに、”バリエーションフィルインパターン”を表す「4」をセットしてから本ルーチンを完了する。
【0068】
(ニ)エンディングスイッチ処理ルーチンの動作
エンディングスイッチ15が操作されると、図23に示すエンディングスイッチ処理ルーチンにおけるステップSc5−1の判断結果が「YES」となり、ステップSc5−2に処理を進める。ステップSc5−2では、スタートパターンフラグSPFが「1」、すなわち、パターンスイッチ18がオン設定されるシーケンスモード下であるかどうかを判断する。
ここで、シーケンスモード下でなければ、判断結果は「NO」となり、ステップSc5−3〜Sc5−6を実行し、オリジナルパターンエリアOPE中で選択された伴奏パターン(n)のエンディングパターン(伴奏エレメント(5))を読み出す為の処理を行う。
【0069】
すなわち、ステップSc5−3では、オリジナルパターンエリアOPEで選択した伴奏パターン(n)中のエンディングパターン(伴奏エレメント(5))のスタートアドレスSTART(n,5)を、待機アドレスを保持するレジスタTAIKIADにストアする。続いて、ステップSc5−4では待機フラグTAIKIFに「1」をセットして待機状態に設定した後、ステップSc5−5に進み、待機状態にある伴奏エレメント種類を保持するレジスタTAIKIEに、”エンディングパターン”を表す「5」をセットする。この後、ステップSc5−6にてフラグNF,VFを共に「1」をセットしてから本ルーチンを完了する。
【0070】
さて一方、シーケンスモード下であると、上記ステップSc5−2の判断結果が「YES」となり、CPU2はステップSc5−7に処理を進める。ステップSc5−7では、スタートフラグSTFが「1」、つまり、パターン再生が開始されているかどうかを判断する。
ここで、パターン再生が停止していれば、判断結果は「NO」となり、ステップSc5−8に進み、シーケンスエリアSE中の再生エリアREPにおけるエンディングパターン(伴奏エレメント(5))の先頭アドレスAD(5)をポインタアドレスADにストアする。次いで、ステップSc5−9では、レジスタELEMENTに、”エンディングパターン”を表す「5」をセットする。この後、ステップSc5−6を経てフラグNF,VFを共に「1」をセットして本ルーチンを完了する。
【0071】
これに対し、シーケンスモード下であって、しかもパターン再生が開始されていると、上記ステップSc5−7の判断結果は「YES」となり、ステップSc5−10に進み、シーケンスエリアSE中の再生エリアREPにおけるエンディングパターン(伴奏エレメント(5))の先頭アドレスAD(5)を、待機アドレスを保持するレジスタTAIKIADにストアし、続くステップSc5−11では待機フラグTAIKIFに「1」をセットして待機状態に設定する。この後、待機状態にある伴奏エレメント種類を保持するレジスタTAIKIEに、”エンディングパターン”を表す「5」をセットした後、ステップSc5−6を経てフラグNF,VFを共に「1」をセットしてから本ルーチンを完了する。
【0072】
(ホ)オールエレメントシリアルスイッチ処理ルーチンの動作
AESスイッチ10が操作されると、図24に示すオールエレメントシリアルスイッチ処理ルーチンにおけるステップSc6−1の判断結果が「YES」となり、ステップSc6−2に処理を進める。ステップSc6−2では、スタートパターンフラグSPFが「1」、すなわち、パターンスイッチ18がオン設定されるシーケンスモード下であるかどうかを判断する。シーケンスモード下でなければ、判断結果は「NO」となり、何も処理せずに本ルーチンを完了させるが、シーケンスモード下であると、判断結果が「YES」となり、ステップSc6−3に処理を進める。
【0073】
ステップSc6−3では、スタートフラグSTFが「0」、つまり、再生停止しているかどうかを判断する。再生開始していれば、判断結果は「NO」となり、何も処理せずに本ルーチンを完了させる。
一方、再生停止していると、判断結果が「YES」となり、ステップSc6−4に処理を進め、シーケンスエリアSE中の再生エリアREPにおけるイントロパターン(伴奏エレメント(0))の先頭アドレスAD(0)を、ポインタアドレスADにストアすると共に、レジスタmをゼロリセットする。なお、このレジスタmとは、伴奏エレメントの種類を識別する値を保持するレジスタであり、後述するAESパターン再生処理にて参照される。
次に、ステップSc6−5では、レジスタELEMENTに、”イントロパターン”を表す「0」をセットし、続くステップSc6−6では、AESスイッチ10の操作に応じて、オールエレメントシリアルモード下に設定された旨を表すべくフラグAESを「1」にセットして本ルーチンを完了する。
【0074】
▲4▼パターン切換スイッチ処理ルーチンの動作
図7のステップSA4を介して図25に示すパターン切換スイッチ処理ルーチンが実行されるとCPU2は、ステップSd1に処理を進め、スタートフラグSTFが「0」、つまり、再生停止であるかどうかを判断する。再生開始していれば、判断結果は「NO」となり、何も処理せずに本ルーチンを完了させるが、再生停止していると、判断結果は「YES」となり、ステップSd2に処理を進め、パターン切換スイッチが操作されたかどうかを判断する。
そして、数値入力キーやカーソルキーから構成され、それらキー操作に応じて「ロック」、「ポップス」あるいは「ディスコ」等の各種伴奏スタイルの中から所望の伴奏パターンを選択するパターン切換えスイッチが操作されると、判断結果が「YES」となり、次のステップSd3に進み、そのスイッチ操作に応じて選択された伴奏パターン番号をレジスタnにストアして本ルーチンを完了させる。
【0075】
▲5▼プリセットスイッチ処理ルーチンの動作
図7のステップSA5を介して図26に示すプリセットスイッチ処理ルーチンが実行されると、CPU2はステップSe1に処理を進め、スタートパターンフラグSPFが「1」、すなわち、パターンスイッチ18がオン設定されるシーケンスモード下であるかどうかを判断する。シーケンスモード下でなければ、判断結果は「NO」となり、何も処理せずに本ルーチンを完了させる。
一方、シーケンスモード下であれば、判断結果が「YES」となり、次のステップSe2に進み、再生停止しているかどうかを判断する。再生が進行していれば、判断結果は「NO」となり、何も処理せずに本ルーチンを完了させるが、再生停止していると、判断結果は「YES」となり、ステップSe3に処理を進める。
【0076】
ステップSe3では、プリセットスイッチ16がオン操作されたかどうかを判断する。そして、オン操作されたならば、判断結果が「YES」となり、次のステップSe4に進み、シーケンスエリアSE中の再生エリアREPに格納される伴奏パターンの各伴奏エレメントを、オリジナルパターンエリアOPEのパターン(n)の伴奏エレメント(0)〜(5)としてストアする。次いで、ステップSe5では、再生エリアREPにおける各伴奏エレメントの先頭アドレスAD(0)〜(5)を、オリジナルパターンエリアOPEに格納したパターン(n)のヘッダHDとしてSTART(0)〜(5)に変換してオリジナルパターンエリアOPEにストアする。なお、先頭アドレスAD(0)〜(5)をSTART(0)〜(5)に変換するとは、具体的には各アドレス値に所定のオフセットを与える操作を指す。
【0077】
(3)入力処理ルーチンの動作
次に、図27を参照して入力処理ルーチンの動作について説明する。前述したステップS3(図6参照)を介して図27に示すスイッチ処理ルーチンが実行されると、CPU2はステップSB1に処理を進め、入力イベントの有無を判断し、鍵盤6の押離鍵操作に応じて発生する鍵イベントもしくは図示されていないMIDIインタフェースを介してMIDIデータが入力されると、その判断結果が「YES」となり、次のステップSB2に進み、入力されたイベントをRAM4の入力バッファにストアして本ルーチンを完了させる。
【0078】
(4)パターン再生処理ルーチンの動作
次に、図28〜図29を参照してパターン処理ルーチンの動作について説明する。前述したステップS4(図6参照)を介して図28に示すパターン処理ルーチンが実行されると、ステップSC1に処理を進め、スタートソングフラグSSFおよびスタートパターンフラグSPFが共に「0」であるか否か、つまり、シーケンスモードでないかどうかを判断する。シーケンスモード下であると、判断結果は「NO」となり、何も処理せずに本ルーチンを完了させる。
一方、シーケンスモード下でなければ、判断結果は「YES」となり、次のステップSC2に進み、スタートフラグSTFが「1」、つまり、再生開始しているかどうかを判断し、再生停止であれば、判断結果が「NO」となり、何も処理せずに本ルーチンを完了させる。
【0079】
これに対し、パターン再生が開始されていると、判断結果は「YES」となり、ステップSC3に進み、最小分解能時間が経過したか否か、つまり、図示されていないタイマ割込み処理にて生成されるタイマクロック1周期分(最小分解能時間)の時間が経過したかどうかを判断する。ここで、最小分解能時間が経過していなければ、判断結果は「NO」となり、一旦、本ルーチンを完了させる。これに対し、最小分解能時間が経過した場合には、判断結果が「YES」となり、ステップSC4に進み、レジスタTpに格納されるタイミングデータTIMEをデクリメントする。
【0080】
次いで、ステップSC5では、デクリメントされたレジスタTpの値が「0」、つまり、発音タイミングに達したかどうかを判断する。発音タイミングに達していなければ、判断結果は「NO」となり、一旦、本ルーチンを完了させる。
一方、発音タイミングに達した時には、判断結果が「YES」となり、ステップSC6に処理を進め、アドレスポインタADをインクリメントして歩進させる。続いて、ステップSC7では、アドレスポインタADに応じて、オリジナルパターンエリアOPE中で選択された伴奏パターンnの伴奏エレメントから読み出されるデータ種別を判定する。
【0081】
タイミングデータTIMEが読み出された場合には、ステップSC8に進み、その読み出したタイミングデータTIMEをレジスタTpにストアし、上述したステップSC5に処理を戻す。
イベントデータEVENTが読み出された場合には、ステップSC9に進み、その読み出したイベントデータEVENTをRAM4の出力バッファに転送し、上述したステップSC6に処理を戻す。
伴奏エレメント終端を表すENDデータが読み出された場合には、図29に示すステップSC10に処理を進める。
【0082】
ステップSC10では、待機フラグTAIKIFが「1」、すなわち、現在再生し終えた伴奏エレメントに続いて再生待ちとなっている伴奏エレメントがあるかどうかを判断する。再生待ちとなっている伴奏エレメントがあると、判断結果は「YES」となり、ステップSC11に進む。ステップSC11では、待機アドレスを保持するレジスタTAIKIADの内容を、アドレスポインタADにセットする。
続いて、ステップSC12では、そのアドレスポインタADにセットされた待機アドレスに応じて、待機中にある伴奏エレメントから読み出される先頭データ(タイミングデータTIME)をレジスタTpにストアする。そして、ステップSC13では、待機フラグTAIKIFをゼロリセットし、続くステップSC14では、待機状態にある伴奏エレメント種類を保持するレジスタTAIKIEの値をレジスタELEMENTにストアした後、上述したステップSC6(図28参照)に処理を戻す。これにより、待機していた伴奏エレメントが再生される。
【0083】
さて一方、再生待ちとなっている伴奏エレメントが無い場合には、上述したステップSC10の判断結果が「NO」となり、ステップSC15以降に処理を進める。ステップSC15以降では、現在再生し終えた伴奏エレメントの種類に応じた処理を行う。以下、再生し終えた伴奏エレメントが「イントロパターン」、「ノーマルパターン」、「バリエーションパターン」および「エンディングパターン」の場合について述べる。
【0084】
(イ)イントロパターンが終了した場合
この場合、ステップSC15の判断結果が「YES」となり、ステップSC16に進み、オリジナルパターンエリアOPEで選択された伴奏パターン(n)中のノーマルパターン(伴奏エレメント(1))のスタートアドレスSTART(n,1)をアドレスポインタADにストアする。続いて、ステップSC17では、そのアドレスポインタADに応じて伴奏エレメント(1)から読み出される先頭データ(タイミングデータTIME)をレジスタTpにストアする。次いで、ステップSC18では、伴奏エレメントの種別を保持するレジスタELEMENTに、”ノーマルパターン”を表す「1」をセットした後、前述のステップSC6に処理を戻す。
【0085】
(ロ)ノーマルパターンが終了した場合
この場合、ステップSC19の判断結果が「YES」となり、ステップSC20に進み、オリジナルパターンエリアOPEで選択された伴奏パターン(n)中のノーマルパターン(伴奏エレメント(1))のスタートアドレスSTART(n,1)をアドレスポインタADにストアした後、ステップSC21に進み、そのアドレスポインタADに応じて伴奏エレメント(1)から読み出される先頭データ(タイミングデータTIME)をレジスタTpにストアした後、前述のステップSC6に処理を戻す。このように、ノーマルパターンの場合、他の伴奏エレメントに切換えしない限り、繰り返し再生するようになっている。
【0086】
(ハ)バリエーションパターンが終了した場合
この場合、ステップSC22の判断結果が「YES」となり、ステップSC23に進み、オリジナルパターンエリアOPEで選択された伴奏パターン(n)中のバリエーションパターン(伴奏エレメント(3))のスタートアドレスSTART(n,3)をアドレスポインタADにストアした後、ステップSC24に進み、そのアドレスポインタADに応じて伴奏エレメント(3)から読み出される先頭データ(タイミングデータTIME)をレジスタTpにストアした後、前述のステップSC6に処理を戻す。このように、バリエーションパターンの場合も、他の伴奏エレメントに切換えしない限り、繰り返し再生するようになっている。
【0087】
(ニ)エンディングパターンが終了した場合
この場合、ステップSC25の判断結果が「YES」となり、ステップSC26に進み、スタートフラグSTFをゼロリセットして再生停止状態に設定し、続くステップSC27では、再生停止に伴い、音源7に伴奏音の全てを消音するよう指示して本ルーチンを完了させる。
【0088】
(5)ソング録再処理ルーチンの動作
次に、図30〜図32を参照してソング録再処理ルーチンの動作について説明する。前述したステップS5(図6参照)を介して図30に示すソング録再処理ルーチンが実行されると、CPU2はステップSD1に処理を進め、スタートソングフラグSSFが「1」であるか否か、つまり、ソングスイッチ17がオン設定されるシーケンスモード下にあるかどうかを判断する。シーケンスモード下でなければ、判断結果は「NO」となり、何も処理せずに本ルーチンを完了させる。
一方、シーケンスモード下であれば、判断結果は「YES」となり、次のステップSD2に進み、スタートフラグSTFが「1」、つまり、録音(もしくは再生)開始状態であるかどうかを判断し、停止状態であれば、判断結果が「NO」となり、何も処理せずに本ルーチンを完了させる。
【0089】
これに対し、開始状態にあると、判断結果は「YES」となり、ステップSD3に進み、録音フラグRFが「1」であるか否かを判断する。ここで、録音フラグRFが「0」であると、判断結果が「NO」となり、ステップSD4を介してソング再生処理(後述する)を実行する。一方、録音フラグRFが「1」であれば、判断結果は「YES」となり、ステップSD5を介してソング録音処理(後述する)を実行する。以下、ソング再生処理およびソング録音処理について説明する。
【0090】
▲1▼ソング再生処理ルーチンの動作
ソングスイッチ17をオン設定した後、スタート/ストップスイッチ11をオン操作して再生開始を指示すると、上述したステップSD4を介して図31に示すソング再生処理ルーチンが実行され、ステップSD4−1に処理を進める。ステップSD4−1では、図示されていないタイマ割込み処理にて生成されるタイマクロック1周期分(最小分解能時間)の時間が経過したかどうかを判断する。ここで、最小分解能時間が経過していなければ、判断結果は「NO」となり、一旦、本ルーチンを完了させる。
一方、最小分解能時間が経過した場合には、判断結果が「YES」となり、ステップSD4−2に進み、レジスタTpに格納されるタイミングデータTIMEをデクリメントする。
【0091】
次いで、ステップSD4−3では、デクリメントされたレジスタTpの値が「0」、つまり、発音タイミングに達したかどうかを判断する。発音タイミングに達していなければ、判断結果は「NO」となり、一旦、本ルーチンを完了させる。
一方、発音タイミングに達した時には、判断結果が「YES」となり、ステップSD4−4に処理を進め、アドレスポインタADをインクリメントして歩進させる。続いて、ステップSD4−5では、その歩進されたアドレスポインタADに応じて、シーケンスエリアSEから読み出されるソングデータの種別を判定する。
【0092】
読み出したソングデータがタイミングデータTIMEであると、ステップSD4−6に進み、その読み出したタイミングデータTIMEをレジスタTpにストアし、上述したステップSD4−3に処理を戻す。
読み出したソングデータがイベントデータEVENTであると、ステップSD4−7に進み、そのイベントデータEVENTをRAM4の出力バッファに転送し、上述したステップSD4−4に処理を戻す。
読み出したソングデータが曲の終わりを表すENDデータであると、ステップSD4−8に処理を進め、スタートフラグSTFをゼロリセットして再生停止状態に設定した後、ステップSD4−9に進み、音源7に対して全ての演奏音の消音を指示する。
【0093】
▲2▼ソング録音処理ルーチンの動作
ソングスイッチ17および録音スイッチ19をオン設定した後、スタート/ストップスイッチ11をオン操作して録音開始を指示すると、前述したステップSD5(図30参照)を介して図32に示すソング録音処理ルーチンが実行され、ステップSD5−1に処理を進める。ステップSD5−1では、図示されていないタイマ割込み処理にて生成されるタイマクロック1周期分(最小分解能時間)の時間が経過したかどうかを判断する。ここで、最小分解能時間が経過していなければ、判断結果は「NO」となり、一旦、本ルーチンを完了させる。
一方、最小分解能時間が経過した場合には、判断結果が「YES」となり、ステップSD5−2に進み、レジスタTrに格納される録音時刻データをインクリメントする。
【0094】
次いで、ステップSD5−3では、RAM4の入力バッファにイベントが格納されているか否かを判断する。入力バッファに鍵イベントやMIDIイベントが格納されていない場合には、録音対象が無いとして判断結果が「NO」となり、一旦、本ルーチンを完了させる。
これに対し、入力バッファにイベントが格納されていると、判断結果は「YES」となり、ステップSD5−4に進む。ステップSD5−4では、アドレスポインタADに応じて、レジスタTrに格納される録音時刻データをシーケンスエリアSEにストアする。次いで、ステップSD5−5では、アドレスポインタADをインクリメントして歩進させ、続くステップSD5−6では、歩進したアドレスポインタADに応じて、入力バッファ中のイベントをシーケンスエリアSEにストアする。そして、この後、ステップSD5−7に進み、再びアドレスポインタADをインクリメントして歩進させてから本ルーチンを完了させる。
【0095】
(6)シーケンスパターン録再処理ルーチンの動作
次に、図33〜図37を参照してシーケンスパターン録再処理ルーチンの動作について説明する。前述したステップS6(図6参照)を介して図33に示すシーケンスパターン録再処理ルーチンが実行されると、CPU2はステップSE1に処理を進め、スタートパターンフラグSPFが「1」であるか否か、つまり、パターンスイッチ18がオン設定されるシーケンスモード下にあるかどうかを判断する。シーケンスモード下でなければ、判断結果は「NO」となり、何も処理せずに本ルーチンを完了させる。
一方、シーケンスモード下であれば、判断結果は「YES」となり、次のステップSE2に進み、スタートフラグSTFが「1」、つまり、録音(もしくは再生)開始状態であるかどうかを判断し、停止状態であれば、判断結果が「NO」となり、何も処理せずに本ルーチンを完了させる。
【0096】
これに対し、開始状態にあると、判断結果は「YES」となり、ステップSE3に進み、フラグAESが「1」、つまり、AESスイッチ10の操作にてオールエレメントシリアルモードに設定されているかどうかを判断する。オールエレメントシリアルモードに設定されていれば、判断結果が「YES」となり、ステップSE4を介してAESパターン再生処理(後述する)を実行する。一方、オールエレメントシリアルモードに設定されていなければ、判断結果は「NO」となり、ステップSE5を介してシーケンスパターン録再処理(後述する)を実行する。以下、AESパターン再生処理およびシーケンスパターン録再処理について説明する。
【0097】
▲1▼シーケンスパターン録再処理ルーチンの動作
パターンスイッチ18をオン設定した後、スタート/ストップスイッチ11をオン操作して再生開始を指示すると、上述したステップSE5を介して図34に示すシーケンスパターン録再処理ルーチンが実行され、ステップSE5−1に処理を進める。ステップSE5−1では、図示されていないタイマ割込み処理にて生成されるタイマクロック1周期分(最小分解能時間)の時間が経過したかどうかを判断する。ここで、最小分解能時間が経過していなければ、判断結果は「NO」となり、一旦、本ルーチンを完了させる。
一方、最小分解能時間が経過した場合には、判断結果が「YES」となり、ステップSE5−2に進み、レジスタTpに格納されるタイミングデータTIMEをデクリメントする。次いで、ステップSE5−3では、デクリメントされたレジスタTpの値が「0」、つまり、発音タイミングに達したかどうかを判断する。以下、発音タイミングに達した場合の動作と発音タイミングに達していない場合の動作とに分けて説明を進める。
【0098】
(イ)発音タイミングに達していない場合
この場合、上記ステップSE5−3の判断結果が「NO」となり、ステップSE5−4に進み、録音フラグRFが「1」、つまり、シーケンスパターン再生中に録音スイッチ19が操作されたかどうかを判断する。録音スイッチ19が操作されなければ、判断結果は「NO」となり、何も処理せずに本ルーチンを完了させるが、録音スイッチ19が操作されると、判断結果が「YES」となり、ステップSE5−5を介して図35に示す録音処理を実行する。
【0099】
録音処理が実行されると、CPU2は図35のステップSf1に処理を進め、レジスタTrに格納される録音時刻データをインクリメントする。次いで、ステップSf2では、RAM4の入力バッファにイベントが格納されているか否かを判断する。入力バッファにイベントが格納されていない場合には、録音対象が無いとして判断結果が「NO」となり、本ルーチンを完了させる。
一方、入力バッファに録音すべきイベントが格納されていると、判断結果は「YES」となり、ステップSf3に進む。ステップSf3では、レジスタRADに格納される書込みアドレスをインクリメントして歩進させる。なお、この書込みアドレスとは、シーケンスエリアSE中の録音エリアRECにおける書込みアドレスを指すものであり、以後、レジスタRADの内容を書込みアドレスRADと記す。
【0100】
書込みアドレスRADを歩進すると、CPU2はステップSf4に処理を進め、その歩進した書込みアドレスRADに応じて、レジスタTrに格納される録音時刻データをシーケンスエリアSEの録音エリアRECにストアする。次いで、ステップSf5では、イベント間隔を計測する為にレジスタTrをゼロリセットする。そして、ステップSf6では、書込みアドレスRADを歩進し、続くステップSf7では、この歩進した書込みアドレスRADに応じて、入力バッファ中のイベントをシーケンスエリアSEの録音エリアRECにストアして本ルーチンを完了させる。
このように、シーケンスパターン再生中に録音スイッチ19が操作されると、発音タイミングを外れた空き時間に、入力イベントをシーケンスエリアSEの録音エリアRECに録音(記録)し得るようなっている。
【0101】
(ロ)発音タイミングに達した場合
一方、発音タイミングに達すると、上記ステップSE5−3(図34参照)の判断結果が「YES」となり、ステップSE5−6に処理を進め、アドレスポインタADをインクリメントして歩進させる。続いて、ステップSE5−7では、その歩進されたアドレスポインタADに応じて、シーケンスエリアSEの再生エリアREPから読み出されるパターンデータの種別を判定する。
【0102】
読み出したパターンデータがタイミングデータTIMEであると、ステップSE5−8に進み、その読み出したタイミングデータTIMEをレジスタTpにストアし、上述したステップSE5−3に処理を戻す。
読み出したパターンデータがイベントデータEVENTであると、ステップSE5−9に進み、そのイベントデータEVENTをRAM4の出力バッファに転送してから上述したステップSE5−6に処理を戻す。
読み出したパターンデータが伴奏エレメントの終端を表すENDデータであると、ステップSE5−10に処理を進め、録音フラグRFが「1」、つまり、シーケンスパターン再生中に録音スイッチ19が操作されたかどうかを判断する。
【0103】
録音スイッチ19が操作された場合には、判断結果が「YES」となり、ステップSE5−11に処理を進める。ステップSE5−11では、録音エリアREPに録音したパターンデータと、今再生し終えた伴奏エレメント(ELEMENT)のパターンデータとをマージしてから次のステップSE5−12に処理を進める。
【0104】
一方、録音スイッチ19が操作されていなければ、上記ステップSE5−10の判断結果が「NO」となり、ステップSE5−12に処理を進める。ステップSE5−12では、待機フラグTAIKIFが「1」であるか否かを判断する。待機フラグTAIKIFが「0」であれば、判断結果が「NO」となり、ステップSE5−13に進み、現在再生中にある伴奏エレメントの読み出しアドレスAD(ELEMENT)を、アドレスポインタADにセットした後、上述のステップSE5−7に処理を戻す。
【0105】
待機フラグTAIKIFが「1」であると、判断結果は「YES」となり、ステップSE5−14に処理を進め、待機フラグTAIKIFをゼロリセットし、続くステップSE5−15では、待機アドレスを保持するレジスタTAIKIADの内容を、アドレスポインタADにセットする。そして、ステップSE5−16では、待機状態にある伴奏エレメント種類を保持するレジスタTAIKIEの値を、レジスタELEMENTに格納して上述のステップSE−5に処理を戻す。つまり、シーケンスパターン再生では、再生エリアREPで選択される伴奏エレメントが繰り返し再生されるようになっている。
【0106】
▲2▼AESパターン再生処理ルーチンの動作
パターンスイッチ18およびAESスイッチ10をオン設定した後、スタート/ストップスイッチ11をオン操作して再生開始を指示すると、前述したステップSE4(図33参照)を介して図36に示すAESパターン録再処理ルーチンが実行され、ステップSE4−1に処理を進める。
ステップSE4−1では、図示されていないタイマ割込み処理にて生成されるタイマクロック1周期分(最小分解能時間)の時間が経過したかどうかを判断する。ここで、最小分解能時間が経過していなければ、判断結果は「NO」となり、一旦、本ルーチンを完了させる。
【0107】
一方、最小分解能時間が経過した場合には、判断結果が「YES」となり、ステップSE4−2に進み、レジスタTpに格納されるタイミングデータTIMEをデクリメントする。次いで、ステップSE4−3では、デクリメントされたレジスタTpの値が「0」、つまり、発音タイミングに達したかどうかを判断する。以下、発音タイミングに達した場合の動作と発音タイミングに達していない場合の動作とに分けて説明を進める。
【0108】
(イ)発音タイミングに達していない場合
この場合、上記ステップSE4−3の判断結果が「NO」となり、ステップSE5−4に進み、録音フラグRFが「1」、つまり、シーケンスパターン再生中に録音スイッチ19が操作されたかどうかを判断する。録音スイッチ19が操作されなければ、判断結果は「NO」となり、何も処理せずに本ルーチンを完了させるが、録音スイッチ19が操作されると、判断結果が「YES」となり、ステップSE4−5を介して図35に示す録音処理を実行する。
【0109】
録音処理が実行されると、CPU2は図35のステップSf1に処理を進め、レジスタTrに格納される録音時刻データをインクリメントする。次いで、ステップSf2では、RAM4の入力バッファにイベントが格納されているか否かを判断する。入力バッファにイベントが格納されていない場合には、録音対象が無いとして判断結果が「NO」となり、本ルーチンを完了させる。
一方、入力バッファに録音すべきイベントが格納されていると、判断結果は「YES」となり、ステップSf3に進む。ステップSf3では、レジスタRADに格納される書込みアドレスをインクリメントして歩進させる。なお、この書込みアドレスとは、シーケンスエリアSE中の録音エリアRECにおける書込みアドレスを指すものであり、以後、レジスタRADの内容を書込みアドレスRADと記す。
【0110】
書込みアドレスRADを歩進すると、CPU2はステップSf4に処理を進め、その歩進した書込みアドレスRADに応じて、レジスタTrに格納される録音時刻データをシーケンスエリアSEの録音エリアRECにストアする。次いで、ステップSf5では、イベント間隔を計測する為にレジスタTrをゼロリセットする。そして、ステップSf6では、書込みアドレスRADを歩進し、続くステップSf7では、この歩進した書込みアドレスRADに応じて、入力バッファ中のイベントをシーケンスエリアSEの録音エリアRECにストアして本ルーチンを完了させる。
このように、AESパターン再生中に録音スイッチ19が操作されると、発音タイミングを外れた空き時間に、入力イベントをシーケンスエリアSEの録音エリアRECに録音(記録)し得るようなっている。
【0111】
(ロ)発音タイミングに達した場合
一方、発音タイミングに達すると、上記ステップSE4−3(図36参照)の判断結果が「YES」となり、ステップSE4−6に処理を進め、アドレスポインタADをインクリメントして歩進させる。続いて、ステップSE4−7では、その歩進されたアドレスポインタADに応じて、シーケンスエリアSEの再生エリアREPから読み出されるパターン(伴奏エレメント)データの種別を判定する。
【0112】
読み出したパターンデータがタイミングデータTIMEであると、ステップSE4−8に進み、その読み出したタイミングデータTIMEをレジスタTpにストアし、上述したステップSE4−3に処理を戻す。
読み出したパターンデータがイベントデータEVENTであると、ステップSE4−9に進み、そのイベントデータEVENTをRAM4の出力バッファに転送してから上述したステップSE4−6に処理を戻す。
読み出したパターンデータが伴奏エレメントの終端を表すENDデータであると、図37に示すステップSE4−10に処理を進め、伴奏エレメントの種類を識別する値を保持するレジスタmの値をインクリメントして歩進させる。
【0113】
次いで、ステップSE4−11では、歩進したレジスタmの値が「6」に達したか、つまり、イントロパターンからエンディングパターンまでの一連の伴奏エレメントを連続的に再生し終えたかどうかを判断する。
ここで、一連の伴奏エレメントを連続的に再生し終えていなければ、判断結果は「NO」となり、後述するステップSE4−14に処理を進めるが、一連の伴奏エレメントを連続的に再生し終えると、判断結果が「YES」となり、ステップSE4−12に処理を進める。そして、ステップSE4−12では、録音エリアREPに録音したパターンデータと、今再生し終えた伴奏エレメント(ELEMENT)のパターンデータとをマージしてから次のステップSE4−13に処理を進める。
【0114】
ステップSE4−13では、レジスタmの値をゼロリセットし、続くステップSE4−14では、レジスタmの値をレジスタELEMENTにストアする。そして、ステップSE4−15では、現在再生中にある伴奏エレメントmの読み出しアドレスAD(m)を、アドレスポインタADにセットする。続いて、ステップSE4−16では、そのアドレスポインタADに応じて、シーケンスエリアSE中の再生エリアREPから読み出される伴奏エレメントmの先頭データ(タイミングデータ)をレジスタTpにセットした後、図36のステップSE4−3に処理を戻す。これにより、一連の伴奏エレメント(0)〜(5)が連続的にループ(繰り返し)再生されて行く。
【0115】
(7)出力処理ルーチンの動作
次に、図38を参照して出力処理ルーチンの動作について説明する。前述したステップS7(図6参照)を介して図38に示す出力処理ルーチンが実行されると、CPU2はステップSF1に処理を進め、RAM4の入力バッファにデータがあるかどうかを判断する。入力バッファにデータが無ければ、判断結果は「NO」となり、後述するステップSF3に処理を進めるが、入力バッファにデータがあると、判断結果が「YES」となり、次のステップSF2にて入力バッファに格納されている入力イベント(例えば鍵イベント等)を、RAM4の出力バッファに出力した後、ステップSF3に進み、入力バッファの内容をクリアする。これにより、前述した入力処理にて入力バッファに格納した入力イベントが出力バッファに転送される。
【0116】
次いで、ステップSF4では、出力バッファでのイベントの有無を判断し、イベントが無ければ、本ルーチンを完了させるが、上述したように、入力バッファから転送されてきたイベントや、ソングデータ/パターンデータ再生に応じて出力バッファにイベントが格納されると、判断結果が「YES」となり、次のステップSF5に処理を進め、出力バッファに格納されるイベントを音源7に送出する。これにより、音源7では、転送されてくるイベント内容に従い、押離鍵操作に応じた演奏音、ソングデータに対応した演奏音あるいはパターンデータに対応した伴奏音を発生する。そして、出力バッファのイベントを音源7へ送出し終えた後、ステップSF6に進み、出力バッファの内容をクリアして本ルーチンを完了させる。
【0117】
以上のように、本実施例によれば、パターン切換えスイッチの操作によってオリジナルパターンエリアOPE中で伴奏パターン(n)を選択しておいてパターンスイッチ18をオン設定すると、その選択した伴奏パターン(n)の各伴奏エレメント(0)〜(5)と、これら伴奏エレメント(0)〜(5)の格納アドレスAD(0)〜(5)とがひとまとめしてシーケンスエリアSEの再生エリアREPにコピーされる。
そして、AESスイッチ10をオン設定してからスタート/ストップスイッチ11をオン操作して再生開始を指示すると、再生エリアREPに格納した「イントロパターン」から「エンディングパターン」までの一連の伴奏エレメント(0)〜(5)が連続的にループ(繰り返し)再生されて行く。
【0118】
各伴奏エレメント(0)〜(5)が連続的にループ再生される過程で、例えばイントロパターンが再生されている時に、録音スイッチ19をオン操作してから演奏操作に応じた鍵イベントによる入力エレメントを録音エリアRECに録音すると、それが再生エリアREPにマージされ、このイントロパターンの再生が完了したら、イントロパターンに続いてそのマージされた入力エレメントを再生する。
つまり、全ての伴奏エレメントを繋げた形で再生および録音し得る為、パターン録音に際しては「イントロパターン」から「エンディングパターン」に至る一連の音楽的な繋がりや演奏上の乗りが寸断されることなく、ユーザーはイメージした通りの伴奏パターンを作成することが可能になる訳である。さらに、パターン再生に際しても、各伴奏エレメントを順次指定してパターン再生を進行させるという従来の煩わしさを解消し得るようになっている。
【0119】
【発明の効果】
請求項1,3に記載の発明によれば、エレメント記憶手段の再生エリアに格納される複数の伴奏エレメントを連続的に繰り返し再生している際に、録音指示があると、外部から入力される入力エレメントをエレメント記憶手段の録音エリアに収録し、その入力エレメントを収録した録音エリアをエレメント記憶手段の再生エリアに結合する。そして、現在再生中の伴奏エレメントが再生し終えたら、再生エリアに結合された録音エリアの入力エレメントを再生する。つまり、全ての伴奏エレメントを繋げた形で再生および録音し得るので、「イントロパターン」から「エンディングパターン」に至る一連の音楽的な繋がりや演奏上の乗りが寸断されることなく、ユーザーはイメージした通りの伴奏パターンを作成することができる。しかも、複数の伴奏エレメントを連続的に繰り返し再生するから、各伴奏エレメントを順次指定してパターン再生を進行させるという従来の煩わしさを解消することができる。
請求項2,4に記載の発明によれば、予め記憶される複数種の伴奏パターンの内から所望の伴奏パターンを選択し、その選択した伴奏パターンを形成する複数の伴奏エレメントに基づき、全ての伴奏エレメントを繋げた形で再生および録音し得る為、一連の伴奏エレメントの音楽的な繋がりや演奏上の乗りが寸断されることなく、ユーザーはイメージした通りの伴奏パターンを作成することができる。しかも、複数の伴奏エレメントを連続的に繰り返し再生するから、各伴奏エレメントを順次指定してパターン再生を進行させるという従来の煩わしさを解消することができる。
【図面の簡単な説明】
【図1】本発明による一実施例の構成を示すブロック図である。
【図2】パネルスイッチ群1に配設される主要スイッチの構成を示す図である。
【図3】RAM4のデータ構造を示すメモリマップである。
【図4】RAM4のデータ構造を示すメモリマップである。
【図5】RAM4のデータ構造を示すメモリマップである。
【図6】メインルーチンの動作を示すフローチャートである。
【図7】スイッチ処理ルーチンの動作を示すフローチャートである。
【図8】パターン再生初期化処理ルーチンの動作を示すフローチャートである。
【図9】ソング再生初期化処理ルーチンの動作を示すフローチャートである。
【図10】スタート/ストップスイッチ処理ルーチンの動作を示すフローチャートである。
【図11】録音初期化処理ルーチンの動作を示すフローチャートである。
【図12】シーケンスパターン初期化処理ルーチンの動作を示すフローチャートである。
【図13】シーケンススイッチ処理ルーチンの動作を示すフローチャートである。
【図14】録音スイッチ処理ルーチンの動作を示すフローチャートである。
【図15】パターンスイッチ処理ルーチンの動作を示すフローチャートである。
【図16】ソングスイッチ処理ルーチンの動作を示すフローチャートである。
【図17】エレメントスイッチ処理ルーチンの動作を示すフローチャートである。
【図18】イントロスイッチ処理ルーチンの動作を示すフローチャートである。
【図19】ノーマル/フィルインスイッチ処理ルーチンの動作を示すフローチャートである。
【図20】ノーマル/フィルインスイッチ処理ルーチンの動作を示すフローチャートである。
【図21】バリエーション/フィルインスイッチ処理ルーチンの動作を示すフローチャートである。
【図22】バリエーション/フィルインスイッチ処理ルーチンの動作を示すフローチャートである。
【図23】エンディングスイッチ処理ルーチンの動作を示すフローチャートである。
【図24】オールエレメントシリアルスイッチ処理ルーチンの動作を示すフローチャートである。
【図25】パターン切換スイッチ処理ルーチンの動作を示すフローチャートである。
【図26】プリセットスイッチ処理ルーチンの動作を示すフローチャートである。
【図27】入力処理ルーチンの動作を示すフローチャートである。
【図28】パターン再生処理ルーチンの動作を示すフローチャートである。
【図29】パターン再生処理ルーチンの動作を示すフローチャートである。
【図30】ソング録再処理ルーチンの動作を示すフローチャートである。
【図31】ソング再生処理ルーチンの動作を示すフローチャートである。
【図32】ソング録音処理ルーチンの動作を示すフローチャートである。
【図33】シーケンスパターン録再処理ルーチンの動作を示すフローチャートである。
【図34】シーケンスパターン録再処理ルーチンの動作を示すフローチャートである。
【図35】録音処理ルーチンの動作を示すフローチャートである。
【図36】AESパターン録再処理ルーチンの動作を示すフローチャートである。
【図37】AESパターン録再処理ルーチンの動作を示すフローチャートである。
【図38】出力処理ルーチンの動作を示すフローチャートである。
【符号の説明】
1 パネルスイッチ群
2 CPU
3 ROM
4 RAM
5 表示部
6 鍵盤
7 音源
10 オールエレメントシリアルスイッチ
11 スタート/ストップスイッチ
12 イントロスイッチ
13 ノーマル/フィルインスイッチ
14 バリエーション/フィルインスイッチ
15 エンディングスイッチ
16 プリセットスイッチ
17 ソングスイッチ
18 パターンスイッチ
19 録音スイッチ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an automatic performance apparatus and an automatic performance method suitable for use in an electronic musical instrument.
[0002]
[Prior art]
Conventionally, an automatic performance device called a pattern sequencer is known. This type of device stores, for example, performance data that is input in real time in response to a performance operation, that is, song data that indicates the pitch or sounding timing of each sound to be played, in memory, or designates the stored song data. In addition to the function to play at tempo and play automatically, accompaniment pattern data for various accompaniment styles such as "Rock", "Pops" or "Disco" is stored in memory and selected according to the user's selection operation The automatic accompaniment function is provided according to the accompaniment pattern.
[0003]
The accompaniment pattern is formed by connecting various accompaniment elements representing the pitches and the sounding timings of the sounds forming the music. The types of accompaniment elements include a normal pattern that represents music for a given measure, an intro pattern that corresponds to the introductory part of the normal pattern, a normal fill-in pattern that is inserted in the middle of the normal pattern, a variation pattern that is derived from the arrangement of the normal pattern, There are a variation fill-in pattern inserted in the middle of a variation pattern, and an ending pattern added to the end of a normal pattern (or variation pattern).
[0004]
[Problems to be solved by the invention]
Now, in the above-described conventional automatic performance device, a device having a function of creating an accompaniment element by a user's performance operation (key operation) has been put into practical use. When using the function to form an accompaniment pattern consisting of the accompaniment elements described above, create an accompaniment element, register it in memory, create the next accompaniment element after the memory registration is completed, and further register the memory Thus, each accompaniment element is created independently.
[0005]
However, in this way, each accompaniment element is created independently, which inevitably results in a series of musical connections from the “Intro pattern” to the “Ending pattern”, and the performance ride is cut off. Therefore, there is a problem that it becomes difficult for the user to form an accompaniment pattern as imagined.
In addition, even when accompaniment patterns are reproduced, the conventional automatic performance device has a mode in which the user designates each accompaniment element in sequence and advances the reproduction of the accompaniment pattern, but in this mode, the operation is troublesome. Has also occurred.
[0006]
Therefore, the present invention has been made in view of such circumstances, and can automatically form an accompaniment pattern as the user imagined, and can automatically reproduce a series of accompaniment elements to advance the accompaniment pattern. An object is to provide a performance device and an automatic performance method.
[0007]
[Means for Solving the Problems]
In order to achieve the above object, according to the first aspect of the present invention, there is provided an element storage means having a recording area and a reproduction area in which a plurality of accompaniment elements are stored, and an input element input from the outside in response to a recording instruction. Recording is performed in the recording area of the element storage means, and the recording area in which the input element is recorded is combined with the playback area of the element storage means, and is stored in the playback area of the element storage means in response to a playback instruction. When a plurality of accompaniment elements are continuously played back repeatedly, and the recording means in which the combining means records the input elements is connected to the playback area of the element storage means, the currently playing accompaniment element is played back. Playback means for playing back the input elements in the recording area combined with the playback area. Characterized in that it Bei.
[0008]
In the invention according to claim 2, pattern storage means for storing a plurality of types of accompaniment patterns, and pattern selection means for selecting any one of the plurality of types of accompaniment patterns stored in the pattern storage means, An element storage means having a recording area and a reproduction area; and a transfer means for reading out a plurality of accompaniment elements forming the accompaniment pattern selected by the pattern selection means from the pattern storage means and transferring them to the reproduction area of the element storage means In response to a recording instruction, an input element input from the outside is recorded in the recording area of the element storage means, and a recording means for recording the input element is combined with a playback area of the element storage means, and playback According to the instruction, it is stored in the reproduction area of the element storage means. When a number of accompaniment elements are repeatedly played back repeatedly, and the recording means in which the combining means records the input elements is connected to the playback area of the element storage means, the currently playing accompaniment element is played back. And reproduction means for reproducing the input element of the recording area coupled to the reproduction area after finishing.
[0009]
According to a third aspect of the present invention, a storage process for storing a plurality of accompaniment elements in the playback area of the element storage means, and an input element input from the outside according to a recording instruction is recorded in the recording area of the element storage means. And a combination process of combining the recording area containing the input element with the playback area of the element storage means, and a plurality of accompaniment elements stored in the playback area of the element storage means in succession according to a playback instruction. When the recording area in which the input element is recorded in the combining process is combined with the playback area of the element storage means at that time, the accompaniment element that is currently being played has finished playing, And a playback process for playing back the input elements of the combined recording area.
[0010]
In the invention according to claim 4, a pattern selection process for selecting any one of the accompaniment patterns from the pattern storage means for storing a plurality of types of accompaniment patterns, and a plurality of accompaniment patterns selected in the pattern selection process. The accompaniment element is read from the pattern storage means and transferred to the playback area of the element storage means, and in response to a recording instruction, an input element input from the outside is recorded in the recording area of the element storage means and input. In accordance with a combination process of combining a recording area containing elements to a reproduction area of the element storage means, and a reproduction instruction, a plurality of accompaniment elements stored in the reproduction area of the element storage means are repeatedly reproduced repeatedly. At that time, the recording area where the input element was recorded in the combining process is recorded as the element recording. When bound to play region means accompaniment elements currently playing after finished playing, characterized by comprising a reproduction step of reproducing the input element of the recording area which is coupled to the play area.
[0011]
In the present invention, when a plurality of accompaniment elements stored in the reproduction area of the element storage means are continuously and repeatedly reproduced, if there is a recording instruction, the input element input from the outside is changed to the recording area of the element storage means. The recording area in which the input element is recorded is combined with the playback area of the element storage means. When the accompaniment element that is currently being reproduced has been reproduced, the input element in the recording area coupled to the reproduction area is reproduced.
In other words, since all accompaniment elements can be played back and recorded in a connected form, the user can imagine without a series of musical connections and performance rides from “Intro Pattern” to “Ending Pattern”. It is possible to create an accompaniment pattern as described. In addition, since a plurality of accompaniment elements are reproduced repeatedly in succession, the conventional inconvenience of sequentially designating each accompaniment element and advancing pattern reproduction can be eliminated.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
The automatic performance device according to the present invention can be applied to DTM (desk top music) using a personal computer in addition to known electronic musical instruments. Hereinafter, an automatic performance apparatus according to an embodiment of the present invention will be described as an example, and this will be described with reference to the drawings.
[0013]
A. Constitution
FIG. 1 is a block diagram showing the configuration of an embodiment according to the present invention. In this figure, reference numeral 1 denotes a panel switch group disposed on the apparatus panel, which generates a switch event corresponding to each switch operation.
Here, main switches arranged in the panel switch group 1 will be described with reference to FIG. In FIG. 2, 10 is an all-element serial switch (hereinafter referred to as an AES switch). When the AES switch 10 is turned on, recording (storing) or reproduction of a series of accompaniment elements from the intro pattern to the ending pattern is instructed. An LED 10a is disposed in the vicinity of the AES switch 10 and is turned on when the AES switch 10 is turned on.
[0014]
Reference numeral 11 denotes a start / stop switch, which instructs to start and stop playback of song data / pattern data. The start / stop switch 11 functions as a so-called toggle switch in which an on state / off state is alternately set each time it is pressed, and is arranged in the vicinity of the switch 11 when in an on state instructing the start of reproduction. LED11a to be turned on is driven.
[0015]
Reference numerals 12 to 15 denote switch groups for designating accompaniment elements. The intro switch 12 designates an intro pattern corresponding to an introduction part in an accompaniment pattern selected in accordance with an operation of a pattern changeover switch (not shown). The normal / fill-in switch 13 designates either a normal pattern in the selected accompaniment pattern or a normal fill-in pattern inserted in the middle of the normal pattern.
The variation / fill-in switch 14 designates either a variation pattern derived from the normal pattern arrangement or a variation fill-in pattern inserted in the middle of the variation pattern. The ending switch 15 designates an ending pattern added to the end portion of the normal pattern (or variation pattern).
[0016]
Reference numeral 16 denotes a preset switch. The preset switch 16 is operated when an accompaniment pattern stored in a sequence area SE (described later) is stored in an original pattern area OPE (described later). An LED 16a is disposed in the vicinity of the preset switch 16, and is lit in response to an ON operation of the switch 16.
Reference numeral 17 denotes a song switch that is alternately set to either the on state or the off state each time it is pressed. When the song switch 17 is set to the on state, recording or reproduction of song data is instructed. An LED 17a is disposed in the vicinity of the song switch 17, and is lit when the switch 17 is set to an on state.
[0017]
Reference numeral 18 denotes a pattern switch that is alternately set to either an on state or an off state each time it is pressed. When the pattern switch 18 is set to the on state, recording or reproduction of the accompaniment pattern is instructed. An LED 18a is disposed in the vicinity of the pattern switch 18, and is lit when the switch 18 is set to an on state.
The song switch 17 and the pattern switch 18 operate in a coordinated manner so that when one is set to the on state, the other is set to the off state. For example, the song switch 17 side is set to the on state. If so, the pattern switch 18 side is set to the OFF state, and the LEDs 17a and 18a are driven to be turned on / off accordingly.
[0018]
A recording switch 19 is turned on when song data or accompaniment pattern data is input (recorded).
The pattern changeover switch (not shown) is composed of numeric input keys and cursor keys, and the desired accompaniment is selected from various accompaniment styles such as "Rock", "Pops" or "Disco" according to the key operation. A switch for selecting a pattern.
[0019]
Next, the configuration of the embodiment will be described with reference to FIG. 1 again. In FIG. 1, reference numeral 2 denotes a CPU that controls each part of the apparatus in response to each switch operation of the panel switch group 1 described above, and its characteristic operation will be described later. The CPU 2 generates a tempo clock that defines the playback tempo for automatic performance and automatic accompaniment, and advances the automatic performance or automatic accompaniment in synchronization with the tempo clock. A ROM 3 stores various control programs loaded on the CPU 2 and waveform data of various timbres.
[0020]
Reference numeral 5 denotes a RAM having a work area for temporarily storing various register / flag data used for the calculation of the CPU 2 and an input / output buffer for temporarily storing input / output events, as well as an area for temporarily storing song data / accompaniment pattern data. .
Here, main data stored in the RAM 5 will be described with reference to FIGS. In FIG. 3, OPE is an original pattern area. In the original pattern area area OPE, as shown in FIG. 4, a plurality of accompaniment patterns (1) to (N) are stored. Each accompaniment pattern (1) to (N) includes an accompaniment element (0) to (5) and a header HD representing the read start addresses START (0) to (5) of the accompaniment elements (0) to (5). Formed from.
[0021]
Accompaniment elements (0) to (5) are the above-mentioned “intro pattern (accompaniment element (0))”, “normal pattern (accompaniment element (1))”, “normal fill-in pattern (accompaniment element (2))”, respectively. "Variation pattern (accompaniment element (3))", "variation fill-in pattern (accompaniment element (4))" and "ending pattern (accompaniment element (5))".
[0022]
The WE shown in FIG. 3 is a work area for storing register / flag data used for various processes of the CPU 2, and the contents of the register / flag data stored in this area will be described in the operation description to be described later.
As shown in FIG. 5, the sequence area SE includes a recording area REC and a reproduction area REP. The recording area REC and the reproduction area REP are used as so-called editing buffers, and accompaniment pattern data (or song data) recorded (recorded) in the recording area REC is merged with the reproduction area REP and read out during reproduction. . That is, the sequence area SE is divided into a recording area REC and a reproduction area REP for convenience, and is characterized by merging recorded data into the reproduction area REP, not a physically distinguished area. is there.
[0023]
In the reproduction area REP, for example, accompaniment pattern data selected from the original pattern area OPE by operating the pattern changeover switch, that is, the accompaniment elements (0) to (5) forming the accompaniment pattern, and the accompaniment elements (0) to (0) The storage addresses AD (0) to (5) of (5) are stored.
For example, when a part of the accompaniment element (0) is recorded in the recording area REC, a part of the accompaniment element (0) recorded in the recording area REC is merged into the reproduction area REP, and the accompaniment element (0 ) Is reproduced, a part of the merged part is reproduced.
[0024]
Note that each element (0) to (5) has a predetermined unit of note length as a minimum unit in the order of time-series addresses corresponding to accompaniment progression, with timing data TIME representing the sounding timing and event data EVENT representing the sounding content. These are stored at a resolution that is sequentially read and reproduced by the increment of the address pointer AD.
[0025]
Next, the configuration of the embodiment will be described with reference to FIG. 1 again. In FIG. 1, reference numeral 5 denotes a display unit composed of an LCD panel or the like, which displays the operation state and setting state of each part of the apparatus in accordance with a display control signal supplied from the CPU 2. Reference numeral 6 denotes a keyboard used when recording song data and accompaniment pattern data, and generates a key event corresponding to a press / release key operation.
Reference numeral 7 denotes a sound source configured by a known waveform memory reading method. The tone generator 7 includes an accompaniment tone generator section and a normal tone generator section. In the normal tone generator section, the CPU 2 receives waveform data of a specified tone color from the ROM 3 based on the key event corresponding to the key release or song data read from the sequence area SE. Read out and synthesize music, and output this as performance sound. On the other hand, the accompaniment sound source section generates an accompaniment sound corresponding to the accompaniment pattern data read from the reproduction area REP in the sequence area SE in synchronization with the designated tempo.
[0026]
B. Operation of the embodiment
Next, the operation of the embodiment will be described with reference to FIGS. In the following, first, the operation of the main routine will be described as a schematic operation, and then the operations of various processing routines constituting the main routine will be described.
[0027]
(1) Main routine operation
When the power is turned on in the embodiment, the CPU 2 loads a predetermined control program from the ROM 3, executes the main routine shown in FIG. 6 and proceeds to step S1, and resets various registers and flags provided in the RAM 4. Or initialization for instructing the sound source 6 to initialize various registers and flags. When the initialization is completed, the CPU 2 proceeds to the next step S2, and performs various switch processes corresponding to the switch operation of the panel switch group 1.
[0028]
Next, in step S3, an input process is performed in which a key event generated in response to a key release operation on the keyboard 6 or MIDI data taken in via a MIDI interface (not shown) is taken into the input buffer of the RAM 4. Subsequently, in step S4, pattern reproduction processing for reproducing the accompaniment pattern selected from the original pattern area OPE of the RAM 4 is executed. Next, in step S5, a song recording / replaying process for recording / reproducing the song data is executed. In the following step S6, accompaniment elements are recorded (input) into the sequence area SE, or a series of accompaniment patterns including the recorded accompaniment elements. As a result, the sequence pattern recording / replaying process is executed.
[0029]
In step S7, the key event or MIDI data captured in the input buffer of the RAM 4 in the input process is transferred to the sound source 7 via the output buffer, or written to the output buffer in accordance with the reproduction of the song data or accompaniment pattern data. An output process is performed to generate a musical sound (performance sound / accompaniment sound) by sending the event to the sound source 7. Thereafter, the process proceeds to step S8, and after performing other processes such as displaying the operation state of the apparatus on the display unit 5 in response to the switch operation, the process returns to step S2, and thereafter the apparatus power supply is turned on. Steps S2 to S8 are repeated until turned off.
[0030]
(2) Operation of switch processing routine
Next, the operation of the switch processing routine will be described with reference to FIGS. When the switch processing routine shown in FIG. 7 is executed via step S2 described above, one of steps SA1 to SA6 is executed according to the operated switch. Hereinafter, processing corresponding to each switch operation will be described.
[0031]
(1) Start / stop switch processing routine operation
When the start / stop switch 11 is operated, the start / stop switch processing routine shown in FIG. 8 is executed via step SA1 in FIG. 7, the process proceeds to step Sa1, and the flag STF is inverted. The flag STF represents the start of reproduction when the value is “1”, and represents the stop of reproduction when the value is “0”. In step Sa2, it is determined whether or not the inverted flag STF is set to “1”, that is, an on state indicating the start of reproduction. Here, if it is in an off state (STF = 0) indicating reproduction stop, the determination result is “NO”, and this routine is completed without performing any processing.
[0032]
On the other hand, if it is set to the on state indicating the start of reproduction, processing corresponding to the set state of the song switch 17, the pattern switch 18 and the recording switch 19 is executed. Hereinafter, “when switches 17 to 19 are all set to OFF”, “when song switch 17 is set to ON”, “when recording switch 19 is set to ON”, and “pattern switch 18 is set to ON” The operation will be described for each case of “when set”.
[0033]
(A) When switches 17 to 19 are all set to OFF
In this case, since the recording flag RF, the start song flag SSF, and the start pattern flag SPF are all “0”, the judgment results in steps Sa3, Sa5, and Sa7 are “NO”, respectively, and the pattern shown in FIG. A playback initialization processing routine is executed.
When the pattern reproduction initialization process routine is executed, the CPU 2 advances the process to step Sa9-1 in FIG. 9, and sets the start address START (n, 1) in the address pointer AD for reading the accompaniment pattern. Here, the start address START (n, 1) designates the accompaniment element (1) of the accompaniment pattern n selected from the original pattern area OPE according to the operation of the pattern changeover switch, that is, the start address of the normal pattern. It is. Next, in step Sa9-2, the timing data TIME read according to the address pointer AD is stored in the register Tp, and this routine is completed.
[0034]
(B) When the song switch 17 is turned on
In this case, since the start song flag SSF is “1”, the determination result in step Sa5 is “YES”, and the song reproduction initialization process routine shown in FIG. 10 is executed via step Sa6.
When the song playback initialization process routine is executed, the CPU 2 proceeds to step Sa6-1 in FIG. 10, sets the start address in the address pointer AD for reading the song data, and in the subsequent step Sa6-2, The head data read from the sequence area SE according to the address pointer AD, that is, the timing data TIME is stored in the register Tp, and this routine is completed.
[0035]
(C) When the recording switch 19 is set to ON
In this case, since the recording flag RF is “1”, the determination result in step Sa3 is “YES”, and the recording initialization processing routine shown in FIG. 11 is executed via step Sa4.
When the recording initialization processing routine is executed, the CPU 2 proceeds to step Sa4-1 in FIG. 11, sets the recording start address in the recording area REC in the sequence area SE in the register RAD, and in the subsequent step Sa4-2. The register Tr for counting the recording time is reset to zero to complete this routine.
[0036]
(D) When the pattern switch 18 is turned on
In this case, since the start pattern flag SPF is “1”, the determination result in step Sa7 is “YES”, and the sequence pattern reproduction initialization processing routine shown in FIG. 12 is executed via step Sa8.
When the sequence pattern playback initialization processing routine is executed, the CPU 2 proceeds to step Sa8-1 in FIG. 12, and specifies the accompaniment element (1), that is, the head address of the normal pattern in the playback area REP of the sequence area SE. The content of AD (1) is stored in the address pointer AD as much as possible, and in the subsequent step Sa8-2, the timing data TIME read according to the address pointer AD is stored in the register Tp, and this routine is completed.
[0037]
(2) Sequence switch processing routine operation
The sequence switch is a general term for the above-described song switch 17, pattern switch 18, and recording switch 19. When any one of these switches 17 to 19 is operated, the sequence switch processing routine shown in FIG. 13 is executed via step SA2 of FIG. 7, and the processing for each operated switch is executed via steps Sb1 to Sb3. Execute. Hereinafter, processing when the song switch 17, the pattern switch 18, and the recording switch 19 are respectively operated will be described.
[0038]
(B) Operation of recording switch processing routine
When the recording switch 19 is operated, the recording switch processing routine shown in FIG. 14 is executed through step Sb1, and the CPU 2 advances the process to step Sb1-1, and either of the flag SSF and the flag SPF is “1”. That is, it is determined whether either the song switch 17 or the pattern switch 18 is set to the on state. If any of them is in the on state, the determination result is “YES”, and the process proceeds to step Sb1-2 to indicate that the recording flag RF is set to “1” and the recording operation is started.
On the other hand, if both the song switch 17 and the pattern switch 18 are set to the OFF state, the recording target is not specified. In this case, the determination result in step Sb1-1 is “NO”, and what This routine is completed without processing.
[0039]
(B) Operation of pattern switch processing routine
When the pattern switch 18 is operated, the pattern switch processing routine shown in FIG. 15 is executed via step Sb2 (see FIG. 13), and the CPU 2 proceeds to step Sb2-1 to invert the start pattern flag SPF. Next, in step Sb2-2, it is determined whether the inverted start pattern flag SPF is “1”, that is, whether the pattern switch 18 is set to ON.
Here, if the inverted start pattern flag SPF is “0” and the pattern switch 18 is in the off state, the determination result is “NO”, the process proceeds to step Sb2-3, and the recording flag RF is set to zero. In step Sb2-4, the LED 18a disposed in the vicinity of the pattern switch 18 is turned off, and then this routine is completed.
[0040]
On the other hand, when the inverted start pattern flag SPF becomes “1” and the pattern switch 18 is turned on, the determination result in step Sb2-2 becomes “YES”, and the process proceeds to step Sb2-5 to start the start song flag. In step Sb2-6, the SSF is reset to zero, and the LED 17a disposed near the song switch 17 is turned off, while the LED 18a disposed near the pattern switch 18 is turned on.
In step Sb2-7, the accompaniment elements (0) to (5) of the accompaniment pattern (n) selected from the original pattern area OPE according to the operation of the pattern changeover switch are grouped together to reproduce the reproduction area of the sequence area SE. Copy to REP. Subsequently, in step Sb2-8, start addresses START (0) to (5) of the accompaniment elements (0) to (5) forming the header part HD of the copied accompaniment pattern (n) are stored in the sequence area SE. Are converted into read start addresses AD (0) to (5), respectively, to complete this routine.
[0041]
(C) Operation of song switch processing routine
When the song switch 17 is operated, the song switch processing routine shown in FIG. 16 is executed via step Sb3 (see FIG. 13), and the CPU 2 proceeds to step Sb3-1 to invert the start song flag SSF. Next, in step Sb3-2, it is determined whether the inverted start song flag SSF is “1”, that is, whether the song switch 17 is set to ON.
If the inverted start song flag SSF is “0” and the song switch 17 is in the off state, the determination result is “NO”, the process proceeds to step Sb3-3, and the recording flag RF is set to zero. In step Sb3-4, the LED 17a disposed near the song switch 17 is turned off.
[0042]
On the other hand, when the inverted start song flag SSF becomes “1” and the song switch 17 is turned on, the determination result in step Sb3-2 becomes “YES”, and the process proceeds to step Sb3-5. In step Sb3-5, the start pattern flag SPF is reset to zero. In the subsequent step Sb3-6, the LED 17a disposed in the vicinity of the song switch 17 is turned on, while the LED 18a disposed in the vicinity of the pattern switch 18 is turned off. To complete this routine.
[0043]
(3) Operation of element switch processing routine
The element switch is a general term for the switches 12 to 15 and the all element serial switch 10 for designating accompaniment elements. When any one of these switches 10, 12 to 15 is operated, the element switch processing routine shown in FIG. 17 is executed via step SA3 in FIG. 7, and the process proceeds to step Sc1. In step Sc1, it is determined whether or not the start song flag SSF is “0”, that is, whether or not the song switch 17 is set to OFF. If the song switch 17 is turned on, the determination result is “NO”, and in this case, the operation of the element switch is invalid.
On the other hand, if the song switch 17 is set to OFF, the determination result is “YES”, and processing corresponding to the operated switch type is executed via steps Sc2 to Sc6. Hereinafter, processing when the intro switch 12, the normal / fill-in switch 13, the variation / fill-in switch 14, the ending switch 15 and the AES switch 10 are respectively operated will be described.
[0044]
(A) Operation of intro switch processing routine
When the intro switch 12 is operated, the determination result of step Sc2-1 in the intro switch process routine shown in FIG. 18 is “YES”, and the process proceeds to step Sc2-2. In step Sb2-2, it is determined whether or not the start pattern flag SPF is “1”, that is, the sequence mode is set to ON in the pattern switch 18.
Here, if not in the sequence mode, the determination result is “NO”, Steps Sc2-3 to Sc2-7 are executed, and the intro pattern (accompaniment element) of the accompaniment pattern (n) selected in the original pattern area OPE is executed. (0)) is read out.
[0045]
That is, first, in step Sc2-3, the start address START (n, 0) is stored in the address pointer AD. Next, in step Sc2-4, the head data (timing data TIME) read from the intro pattern (accompaniment element (0)) of the accompaniment pattern (n) selected in the original pattern area OPE according to the address pointer AD. Is set in the register Tp. In step Sc2-5, “0” representing “intro pattern” is set in the register ELEMENT holding the type of accompaniment element, and then the start flag STF is set to “1”. Thereafter, both flags NF and VF are set to “1” in step Sc2-7, and this routine is completed.
[0046]
The flag NF is a flag for distinguishing whether the normal / fill-in switch 13 designates a normal pattern or a normal fill-in pattern. When the flag value is “1”, the normal / fill-in switch 13 is designated. The normal pattern is set according to the operation.
The flag VF is a flag for distinguishing whether the variation / fill-in switch 14 designates a variation pattern or a variation fill-in pattern. When the flag value is “1”, the normal / fill-in switch 13 is designated. It is set to specify the variation pattern according to the operation.
[0047]
On the other hand, if it is under the sequence mode in which the pattern switch 18 is set to ON, the determination result in Step Sc2-2 is “YES”, and the CPU 2 advances the process to Step Sc2-8. In step Sc2-8, it is determined whether the start flag STF is “1”, that is, whether reproduction is started.
Here, if the start flag STF is “0” and the reproduction is stopped, the determination result is “NO”, the process proceeds to Step Sc2-9, and the intro pattern (accompaniment element (0)) in the reproduction area REP in the sequence area SE is performed. ) Is stored in the pointer address AD. Next, in step Sc2-10, “0” representing the “intro pattern” is set in the register ELEMENT, and in the subsequent step Sc2-11, “1” is set in the standby flag TAIKIF to set the standby state. Thereafter, through step Sc2-7, both the flags NF and VF are set to "1", and this routine is completed.
[0048]
On the other hand, if it is under the sequence mode and the pattern reproduction is started, the determination result in step Sc2-8 is “YES”, and the process proceeds to step Sc2-12 to reproduce the reproduction area REP in the sequence area SE. The start address AD (0) of the intro pattern (accompaniment element (0)) is stored in the register TAIKIAD holding the standby address, and in step Sc2-13, the standby flag TAIKIF is set to “1” to enter the standby state. Set. Thereafter, “0” representing “intro pattern” is set in the register TAIKIE holding the accompaniment element type in the standby state, and then both the flags NF and VF are set to “1” through step Sc2-7. Complete this routine.
[0049]
(B) Normal / fill-in switch routine operation
When the normal / fill-in switch 13 is operated, the determination result of step Sc3-1 in the normal / fill-in switch processing routine shown in FIG. 19 is “YES”, and the process proceeds to step Sc3-2. In step Sc3-2, the flag NF is inverted and “1” is set to the flag VF. Next, when the process proceeds to step Sc3-3, it is determined whether or not the start pattern flag SPF is “1”, that is, the sequence switch 18 is in the sequence mode in which the pattern switch 18 is set to ON.
[0050]
Here, if not in the sequence mode, the determination result is “NO”, and Steps Sc3-4 to Sc3-9 shown in FIG. 20 are executed, and the normal of the accompaniment pattern (n) selected in the original pattern area OPE A process for reading either the pattern (accompaniment element (1)) or the normal fill-in pattern (accompaniment element (2)) is performed.
[0051]
That is, in step Sc3-4, it is determined whether or not the flag NF is “1”. If the flag NF is “1”, the process proceeds to the next step Sc3-5, where the start address START (n) of the normal pattern (accompaniment element (1)) in the accompaniment pattern (n) selected in the original pattern area OPE. , 1) is stored in the register TAIKIAD that holds the standby address. Subsequently, in step Sc3-6, the standby flag TAIKIF is set to “1” and set to the standby state, and then the process proceeds to step Sc3-7, in which “normal pattern” is stored in the register TAIKIE holding the accompaniment element type in the standby state. "1" representing "" is set and this routine is completed.
[0052]
On the other hand, if the flag NF is “0”, the determination result in Step Sc3-4 is “NO”, and the flow proceeds to Step Sc3-8. In step Sc3-8, the start address START (n, 2) of the normal fill-in pattern (accompaniment element (2)) in the accompaniment pattern (n) selected in the original pattern area OPE is stored in the address pointer AD. Next, in step Sc3-9, "2" representing "normal fill-in pattern" is set in the register ELEMENT holding the accompaniment element type, and this routine is completed.
[0053]
On the other hand, if it is under the sequence mode in which the pattern switch 18 is set to ON, the determination result in step Sc3-3 shown in FIG. 19 is “YES”, and the CPU 2 advances the process to step Sc3-10. In Step Sc3-10, it is determined whether the start flag STF is “1”, that is, whether reproduction is started. If the reproduction is stopped, the determination result is “NO”, and the process proceeds to Step Sc3-11 to determine whether or not the flag NF is “1”. The operation when the flag NF is “1” and “0” will be described below.
[0054]
<When flag NF is “1”>
In this case, the determination result is “YES”, the process proceeds to the next step Sc3-12, and the head address AD (1) of the normal pattern (accompaniment element (1)) in the reproduction area REP in the sequence area SE is set as the pointer address. Store in AD. Next, in step Sc3-13, "1" representing "normal pattern" is set in the register ELEMENT, and then this routine is completed.
[0055]
<When flag NF is “0”>
In this case, the determination result is “NO”, the process proceeds to Step Sc3-14, and the start address AD (2) of the normal fill-in pattern (accompaniment element (2)) in the reproduction area REP in the sequence area SE is stored in the pointer address AD. Then, the process proceeds to step Sc3-15, where "2" representing "fill-in pattern" is set in the register ELEMENT, and then this routine is completed.
[0056]
On the other hand, if it is under the sequence mode and the pattern reproduction is started, the determination result in Step Sc3-10 is “YES”, the process proceeds to Step Sc3-16, and the flag NF is “1”. Determine whether or not. The operation when the flag NF is “1” and “0” will be described below.
[0057]
<When flag NF is “1”>
In this case, the determination result is “YES”, and the process proceeds to the next step Sc3-17 to wait for the start address AD (1) of the normal pattern (accompaniment element (1)) in the reproduction area REP in the sequence area SE. In the subsequent step Sc3-18, "1" is set to the standby flag TAIKIF to set the standby state. Thereafter, the process proceeds to step Sc3-19, where “1” representing “normal pattern” is set in the register TAIKIE holding the accompaniment element type in the standby state, and then this routine is completed.
[0058]
<When flag NF is “0”>
In this case, the determination result is “NO”, the process proceeds to step Sc3-20, and the start address AD (2) of the normal fill-in pattern (accompaniment element (2)) in the reproduction area REP in the sequence area SE is held as the standby address. In the subsequent step Sc3-21, the standby flag TAIKIF is set to "1" to set the standby state. Thereafter, the process proceeds to step Sc3-22, where “2” representing “normal fill-in pattern” is set in the register TAIKIE holding the accompaniment element type in the standby state, and then this routine is completed.
[0059]
(C) Variation / fill-in switch processing routine operation
When the variation / fill-in switch 14 is operated, the determination result in step Sc4-1 in the variation / fill-in switch processing routine shown in FIG. 21 is “YES”, and the process proceeds to step Sc4-2. In step Sc4-2, the flag VF is inverted and “1” is set to the flag NF. Next, when the process proceeds to Step Sc4-3, it is determined whether or not the start pattern flag SPF is “1”, that is, the sequence switch 18 is in the sequence mode in which the pattern switch 18 is turned on.
Here, if not in the sequence mode, the determination result is “NO”, and Steps Sc4-4 to Sc4-9 shown in FIG. 22 are executed to change the accompaniment pattern (n) selected in the original pattern area OPE. Processing for reading out either a pattern (accompaniment element (3)) or a variation fill-in pattern (accompaniment element (4)) is performed.
[0060]
That is, in step Sc4-4, it is determined whether or not the flag VF is “1”. If the flag VF is “1”, the process proceeds to the next step Sc4-5, where the start address START (n) of the variation pattern (accompaniment element (3)) in the accompaniment pattern (n) selected in the original pattern area OPE. , 3) is stored in the register TAIKIAD holding the standby address. Subsequently, in step Sc4-6, the standby flag TAIKIF is set to “1” to set to the standby state, and then the process proceeds to step Sc4-7, where the variation pattern is stored in the register TAIKIE holding the accompaniment element type in the standby state. "3" representing "is set and this routine is completed.
[0061]
On the other hand, if the flag VF is “0”, the determination result in Step Sc4-4 is “NO”, and the flow proceeds to Step Sc4-8. In step Sc4-8, the start address START (n, 4) of the variation fill-in pattern (accompaniment element (4)) in the accompaniment pattern (n) selected in the original pattern area OPE is stored in the address pointer AD. Next, in step Sc4-9, "4" representing "variation fill-in pattern" is set in the register ELEMENT holding the accompaniment element type, and this routine is completed.
[0062]
On the other hand, if it is under the sequence mode in which the pattern switch 18 is set to ON, the determination result in Step Sc4-3 (see FIG. 21) is “YES”, and the CPU 2 advances the process to Step Sc4-10. In Step Sc4-10, it is determined whether or not the start flag STF is “1”, that is, whether or not pattern reproduction is started. Here, if the pattern reproduction is stopped, the determination result is “NO”, and the process proceeds to Step Sc4-11 to determine whether or not the flag VF is “1”. The operation when the flag VF is “1” and “0” will be described below.
[0063]
<When flag VF is “1”>
In this case, the determination result is “YES”, the process proceeds to the next step Sc4-12, and the start address AD (3) of the variation pattern (accompaniment element (3)) in the reproduction area REP in the sequence area SE is set as the pointer address. Store in AD. Next, in step Sc4-13, "3" representing "variation pattern" is set in the register ELEMENT, and then this routine is completed.
[0064]
<When flag VF is “0”>
In this case, the determination result is “NO”, the process proceeds to Step Sc4-14, and the start address AD (4) of the variation fill-in pattern (accompaniment element (4)) in the reproduction area REP in the sequence area SE is stored in the pointer address AD. Then, the process proceeds to step Sc4-15, where "4" representing "variation fill-in pattern" is set in the register ELEMENT, and then this routine is completed.
[0065]
On the other hand, if it is in the sequence mode and the pattern reproduction is started, the determination result in Step Sc4-10 is “YES”, the process proceeds to Step Sc4-16, and the flag VF is “1”. Determine whether or not. The operation when the flag VF is “1” and “0” will be described below.
[0066]
<When flag VF is “1”>
In this case, the determination result is “YES”, the process proceeds to the next step Sc4-17, and the start address AD (3) of the variation pattern (accompaniment element (3)) in the reproduction area REP in the sequence area SE is waited for. In the subsequent step Sc4-18, "1" is set to the standby flag TAIKIF to set the standby state. Thereafter, the process proceeds to step Sc4-19, where “3” representing “variation pattern” is set in the register TAIKIE holding the accompaniment element type in the standby state, and then this routine is completed.
[0067]
<When flag VF is “0”>
In this case, the determination result is “NO”, the process proceeds to step Sc4-20, and the start address AD (4) of the variation fill-in pattern (accompaniment element (4)) in the reproduction area REP in the sequence area SE is held as the standby address. In the subsequent step Sc4-21, the standby flag TAIKIF is set to "1" to set the standby state. Thereafter, the process proceeds to step Sc4-22, where “4” representing “variation fill-in pattern” is set in the register TAIKIE holding the accompaniment element type in the standby state, and then this routine is completed.
[0068]
(D) Operation of ending switch processing routine
When the ending switch 15 is operated, the determination result of step Sc5-1 in the ending switch processing routine shown in FIG. 23 is “YES”, and the process proceeds to step Sc5-2. In Step Sc5-2, it is determined whether or not the start pattern flag SPF is “1”, that is, the sequence mode is set to ON in the sequence mode.
Here, if not in the sequence mode, the determination result is “NO”, and steps Sc5-3 to Sc5-6 are executed, and the ending pattern (accompaniment element) of the accompaniment pattern (n) selected in the original pattern area OPE (5)) is read out.
[0069]
That is, in step Sc5-3, the start address START (n, 5) of the ending pattern (accompaniment element (5)) in the accompaniment pattern (n) selected in the original pattern area OPE is stored in the register TAIKIAD holding the standby address. Store. Subsequently, in step Sc5-4, the standby flag TAIKIF is set to "1" and set to the standby state. Then, the process proceeds to step Sc5-5, and the register TAIKIE holding the accompaniment element type in the standby state is set to the "ending pattern". "5" representing "is set. Thereafter, both the flags NF and VF are set to “1” in step Sc5-6, and then this routine is completed.
[0070]
On the other hand, if it is under the sequence mode, the determination result in Step Sc5-2 is “YES”, and the CPU 2 advances the process to Step Sc5-7. In step Sc5-7, it is determined whether the start flag STF is “1”, that is, whether pattern reproduction has been started.
Here, if the pattern reproduction is stopped, the determination result is “NO”, and the process proceeds to Step Sc5-8 to proceed to Step Sc5-8, where the leading address AD ( 5) is stored in the pointer address AD. Next, in step Sc5-9, “5” representing the “ending pattern” is set in the register ELEMENT. Thereafter, both the flags NF and VF are set to “1” through step Sc5-6, and this routine is completed.
[0071]
On the other hand, if it is under the sequence mode and the pattern reproduction is started, the determination result in step Sc5-7 is “YES”, and the process proceeds to step Sc5-10 to reproduce the reproduction area REP in the sequence area SE. The start address AD (5) of the ending pattern (accompaniment element (5)) is stored in the register TAIKIAD that holds the standby address, and in step Sc5-11, the standby flag TAIKIF is set to “1” to enter the standby state. Set. Thereafter, “5” representing an “ending pattern” is set in the register TAIKIE holding the accompaniment element type in the standby state, and then the flags NF and VF are both set to “1” through step Sc5-6. To complete this routine.
[0072]
(E) Operation of all element serial switch processing routine
When the AES switch 10 is operated, the determination result of step Sc6-1 in the all-element serial switch processing routine shown in FIG. 24 is “YES”, and the process proceeds to step Sc6-2. In step Sc6-2, it is determined whether or not the start pattern flag SPF is “1”, that is, the sequence mode is set to ON in the sequence mode. If it is not under the sequence mode, the determination result is “NO”, and this routine is completed without performing any processing. However, if it is under the sequence mode, the determination result is “YES”, and the process proceeds to step Sc6-3. Proceed.
[0073]
In Step Sc6-3, it is determined whether or not the start flag STF is “0”, that is, whether or not playback is stopped. If reproduction has started, the determination result is “NO”, and this routine is completed without performing any processing.
On the other hand, if the reproduction is stopped, the determination result is “YES”, the process proceeds to step Sc6-4, and the start address AD (0) of the intro pattern (accompaniment element (0)) in the reproduction area REP in the sequence area SE is obtained. ) Is stored in the pointer address AD, and the register m is reset to zero. The register m is a register that holds a value for identifying the type of accompaniment element, and is referred to in an AES pattern reproduction process described later.
Next, in step Sc6-5, "0" representing the "intro pattern" is set in the register ELEMENT, and in the subsequent step Sc6-6, the all element serial mode is set according to the operation of the AES switch 10. The flag AES is set to “1” to indicate that the routine has been completed, and this routine is completed.
[0074]
(4) Operation of pattern changeover switch processing routine
When the pattern changeover switch processing routine shown in FIG. 25 is executed via step SA4 in FIG. 7, the CPU 2 advances the process to step Sd1, and determines whether the start flag STF is “0”, that is, whether playback is stopped. To do. If playback has started, the determination result is “NO”, and this routine is completed without performing any processing. However, if playback is stopped, the determination result is “YES”, and the process proceeds to step Sd2. It is determined whether or not the pattern changeover switch has been operated.
It consists of numeric input keys and cursor keys, and in response to these key operations, a pattern changeover switch for selecting a desired accompaniment pattern from various accompaniment styles such as "Rock", "Pops" or "Disco" is operated. Then, the determination result is “YES”, the process proceeds to the next step Sd3, the accompaniment pattern number selected in accordance with the switch operation is stored in the register n, and this routine is completed.
[0075]
(5) Preset switch processing routine operation
When the preset switch processing routine shown in FIG. 26 is executed via step SA5 in FIG. 7, the CPU 2 advances the process to step Se1, and the start pattern flag SPF is “1”, that is, the pattern switch 18 is set to ON. Determine whether you are in sequence mode. If it is not under the sequence mode, the determination result is “NO”, and this routine is completed without performing any processing.
On the other hand, if it is under the sequence mode, the determination result is “YES”, and the process proceeds to the next step Se2 to determine whether or not the reproduction is stopped. If the reproduction is in progress, the determination result is “NO”, and this routine is completed without performing any processing. If the reproduction is stopped, the determination result is “YES”, and the process proceeds to step Se3. .
[0076]
In step Se3, it is determined whether or not the preset switch 16 is turned on. If the ON operation is performed, the determination result is “YES”, and the process proceeds to the next Step Se4, where each accompaniment element of the accompaniment pattern stored in the reproduction area REP in the sequence area SE is replaced with the pattern of the original pattern area OPE. Store as accompaniment elements (0) to (5) of (n). Next, in step Se5, the start addresses AD (0) to (5) of each accompaniment element in the reproduction area REP are set to START (0) to (5) as the header HD of the pattern (n) stored in the original pattern area OPE. Convert and store in the original pattern area OPE. The conversion of the start addresses AD (0) to (5) into START (0) to (5) specifically refers to an operation for giving a predetermined offset to each address value.
[0077]
(3) Operation of input processing routine
Next, the operation of the input processing routine will be described with reference to FIG. When the switch processing routine shown in FIG. 27 is executed via step S3 (see FIG. 6) described above, the CPU 2 proceeds to step SB1, determines the presence / absence of an input event, and performs a key release operation on the keyboard 6. When MIDI data is input via a key event generated in response or a MIDI interface (not shown), the determination result is “YES”, the process proceeds to the next step SB2, and the input event is stored in the input buffer of the RAM 4. Store and complete this routine.
[0078]
(4) Operation of pattern reproduction processing routine
Next, the operation of the pattern processing routine will be described with reference to FIGS. When the pattern processing routine shown in FIG. 28 is executed via step S4 (see FIG. 6) described above, the process proceeds to step SC1, and whether or not both the start song flag SSF and the start pattern flag SPF are “0”. That is, whether it is not the sequence mode. If it is under the sequence mode, the determination result is “NO”, and this routine is completed without performing any processing.
On the other hand, if it is not under the sequence mode, the determination result is “YES”, and the process proceeds to the next step SC2, where it is determined whether the start flag STF is “1”, that is, whether or not the reproduction is started. The determination result is “NO”, and this routine is completed without performing any processing.
[0079]
On the other hand, if the pattern reproduction is started, the determination result is “YES”, the process proceeds to step SC3, whether or not the minimum resolution time has elapsed, that is, generated by a timer interrupt process (not shown). It is determined whether or not the time corresponding to one cycle of the timer clock (minimum resolution time) has elapsed. If the minimum resolution time has not elapsed, the determination result is “NO”, and this routine is once completed. On the other hand, if the minimum resolution time has elapsed, the determination result is “YES”, the process proceeds to step SC4, and the timing data TIME stored in the register Tp is decremented.
[0080]
Next, in step SC5, it is determined whether or not the value of the decremented register Tp is “0”, that is, whether the sound generation timing has been reached. If the sound generation timing has not been reached, the determination result is “NO”, and this routine is once completed.
On the other hand, when the sounding timing is reached, the determination result is “YES”, the process proceeds to step SC6, and the address pointer AD is incremented to be advanced. Subsequently, in step SC7, the data type read from the accompaniment element of the accompaniment pattern n selected in the original pattern area OPE is determined according to the address pointer AD.
[0081]
If the timing data TIME has been read, the process proceeds to step SC8, the read timing data TIME is stored in the register Tp, and the process returns to step SC5 described above.
If the event data EVENT has been read, the process proceeds to step SC9, the read event data EVENT is transferred to the output buffer of the RAM 4, and the process returns to step SC6 described above.
When the END data indicating the accompaniment element end is read, the process proceeds to step SC10 shown in FIG.
[0082]
In step SC10, it is determined whether or not the standby flag TAIKIF is “1”, that is, there is an accompaniment element waiting to be played following the accompaniment element that has been played back. If there is an accompaniment element waiting for reproduction, the determination result is “YES”, and the flow proceeds to step SC11. In step SC11, the contents of the register TAIKIAD holding the standby address are set in the address pointer AD.
Subsequently, in step SC12, in accordance with the standby address set in the address pointer AD, the head data (timing data TIME) read from the accompaniment element in standby is stored in the register Tp. In step SC13, the standby flag TAIKIF is reset to zero. In the subsequent step SC14, the value of the register TAIKIE holding the accompaniment element type in the standby state is stored in the register ELEMENT, and then the above-described step SC6 (see FIG. 28). Return processing to. As a result, the accompaniment element that has been waiting is reproduced.
[0083]
On the other hand, if there is no accompaniment element waiting for reproduction, the determination result in step SC10 is “NO”, and the process proceeds to step SC15 and subsequent steps. In step SC15 and subsequent steps, processing is performed according to the type of accompaniment element that has been reproduced. Hereinafter, a case where the accompaniment elements that have been reproduced are “intro pattern”, “normal pattern”, “variation pattern”, and “ending pattern” will be described.
[0084]
(B) When the intro pattern is completed
In this case, the determination result in step SC15 is “YES”, the process proceeds to step SC16, and the start address START (n, n) of the normal pattern (accompaniment element (1)) in the accompaniment pattern (n) selected in the original pattern area OPE. 1) is stored in the address pointer AD. Subsequently, in step SC17, the head data (timing data TIME) read from the accompaniment element (1) according to the address pointer AD is stored in the register Tp. Next, in step SC18, "1" representing "normal pattern" is set in the register ELEMENT holding the accompaniment element type, and then the process returns to step SC6.
[0085]
(B) When the normal pattern ends
In this case, the determination result in step SC19 is “YES”, the process proceeds to step SC20, and the start address START (n, n) of the normal pattern (accompaniment element (1)) in the accompaniment pattern (n) selected in the original pattern area OPE. After 1) is stored in the address pointer AD, the process proceeds to step SC21, and the head data (timing data TIME) read from the accompaniment element (1) according to the address pointer AD is stored in the register Tp, and then the above-described step SC6. Return processing to. As described above, in the case of a normal pattern, unless it is switched to another accompaniment element, it is reproduced repeatedly.
[0086]
(C) When the variation pattern ends
In this case, the determination result in step SC22 is “YES”, the process proceeds to step SC23, and the start address START (n, n) of the variation pattern (accompaniment element (3)) in the accompaniment pattern (n) selected in the original pattern area OPE. After 3) is stored in the address pointer AD, the process proceeds to step SC24, and the head data (timing data TIME) read from the accompaniment element (3) in accordance with the address pointer AD is stored in the register Tp, and then the above-described step SC6. Return processing to. As described above, even in the case of the variation pattern, the pattern is repeatedly reproduced unless switched to another accompaniment element.
[0087]
(D) When the ending pattern ends
In this case, the determination result in step SC25 is “YES”, the process proceeds to step SC26, the start flag STF is reset to zero and set to the reproduction stop state, and in step SC27, the accompaniment sound is transmitted to the sound source 7 along with the reproduction stop. Instruct to mute everything and complete this routine.
[0088]
(5) Operation of song recording reprocessing routine
Next, the operation of the song recording reprocessing routine will be described with reference to FIGS. When the song recording reprocessing routine shown in FIG. 30 is executed via the above-described step S5 (see FIG. 6), the CPU 2 advances the process to step SD1, and determines whether or not the start song flag SSF is “1”. That is, it is determined whether or not the song switch 17 is in a sequence mode in which it is set to ON. If it is not under the sequence mode, the determination result is “NO”, and this routine is completed without performing any processing.
On the other hand, if it is under the sequence mode, the determination result is “YES”, the process proceeds to the next step SD2, and it is determined whether or not the start flag STF is “1”, that is, the recording (or playback) start state, and stop. If it is, the determination result is “NO”, and this routine is completed without performing any processing.
[0089]
On the other hand, if it is in the start state, the determination result is “YES”, the process proceeds to step SD3, and it is determined whether or not the recording flag RF is “1”. Here, if the recording flag RF is “0”, the determination result is “NO”, and a song reproduction process (described later) is executed via step SD4. On the other hand, if the recording flag RF is “1”, the determination result is “YES”, and a song recording process (described later) is executed via step SD5. The song playback process and song recording process will be described below.
[0090]
(1) Operation of song playback processing routine
After the song switch 17 is turned on, when the start / stop switch 11 is turned on to start playback, the song playback processing routine shown in FIG. 31 is executed via step SD4 described above, and the process proceeds to step SD4-1. To proceed. In step SD4-1, it is determined whether or not a time corresponding to one cycle of the timer clock (minimum resolution time) generated in a timer interrupt process (not shown) has elapsed. If the minimum resolution time has not elapsed, the determination result is “NO”, and this routine is once completed.
On the other hand, if the minimum resolution time has elapsed, the determination result is “YES”, the process proceeds to step SD4-2, and the timing data TIME stored in the register Tp is decremented.
[0091]
Next, in step SD4-3, it is determined whether or not the value of the decremented register Tp is “0”, that is, whether the sound generation timing has been reached. If the sound generation timing has not been reached, the determination result is “NO”, and this routine is once completed.
On the other hand, when the sound generation timing is reached, the determination result is “YES”, the process proceeds to step SD4-4, and the address pointer AD is incremented to be advanced. Subsequently, in step SD4-5, the type of song data read from the sequence area SE is determined according to the incremented address pointer AD.
[0092]
If the read song data is the timing data TIME, the process proceeds to step SD4-6, the read timing data TIME is stored in the register Tp, and the process returns to step SD4-3 described above.
If the read song data is event data EVENT, the process proceeds to step SD4-7, the event data EVENT is transferred to the output buffer of the RAM 4, and the process returns to step SD4-4.
If the read song data is the END data indicating the end of the song, the process proceeds to step SD4-8, the start flag STF is reset to zero and set to the reproduction stop state, and then the process proceeds to step SD4-9. To mute all performance sounds.
[0093]
(2) Operation of song recording processing routine
After the song switch 17 and the recording switch 19 are set to ON, when the start / stop switch 11 is turned ON to start recording, the song recording processing routine shown in FIG. 32 is executed through the above-described step SD5 (see FIG. 30). Once executed, the process proceeds to step SD5-1. In step SD5-1, it is determined whether or not the time corresponding to one cycle of the timer clock (minimum resolution time) generated in the timer interrupt process (not shown) has elapsed. If the minimum resolution time has not elapsed, the determination result is “NO”, and this routine is once completed.
On the other hand, when the minimum resolution time has elapsed, the determination result is “YES”, the process proceeds to step SD5-2, and the recording time data stored in the register Tr is incremented.
[0094]
Next, in step SD5-3, it is determined whether or not an event is stored in the input buffer of the RAM 4. If no key event or MIDI event is stored in the input buffer, the determination result is “NO” because there is no recording target, and this routine is once completed.
On the other hand, if an event is stored in the input buffer, the determination result is “YES”, and the flow proceeds to step SD5-4. In step SD5-4, the recording time data stored in the register Tr is stored in the sequence area SE in accordance with the address pointer AD. Next, in step SD5-5, the address pointer AD is incremented and stepped, and in the subsequent step SD5-6, the event in the input buffer is stored in the sequence area SE according to the stepped address pointer AD. Thereafter, the process proceeds to step SD5-7, where the address pointer AD is incremented again and incremented, and then this routine is completed.
[0095]
(6) Sequence pattern recording / playback routine operation
Next, the operation of the sequence pattern recording / playback processing routine will be described with reference to FIGS. When the sequence pattern recording / playback processing routine shown in FIG. 33 is executed via step S6 (see FIG. 6) described above, the CPU 2 advances the process to step SE1, and determines whether or not the start pattern flag SPF is “1”. That is, it is determined whether or not the pattern switch 18 is in a sequence mode in which it is set to ON. If it is not under the sequence mode, the determination result is “NO”, and this routine is completed without performing any processing.
On the other hand, if it is under the sequence mode, the determination result is “YES”, and the process proceeds to the next step SE2, where it is determined whether or not the start flag STF is “1”, that is, the recording (or playback) start state. If it is, the determination result is “NO”, and this routine is completed without performing any processing.
[0096]
On the other hand, if it is in the start state, the determination result is “YES”, the process proceeds to step SE 3, the flag AES is “1”, that is, whether or not the all-element serial mode is set by operating the AES switch 10. to decide. If the all element serial mode is set, the determination result is “YES”, and an AES pattern reproduction process (described later) is executed via step SE4. On the other hand, if the all element serial mode is not set, the determination result is “NO”, and a sequence pattern recording / replaying process (described later) is executed via step SE5. Hereinafter, the AES pattern reproduction process and the sequence pattern recording / reproducing process will be described.
[0097]
(1) Sequence pattern recording / playback routine operation
After the pattern switch 18 is set to ON, when the start / stop switch 11 is turned ON to start playback, the sequence pattern recording / replaying routine shown in FIG. 34 is executed via step SE5 described above, and step SE5-1 is executed. Proceed with the process. In step SE5-1, it is determined whether one timer clock period (minimum resolution time) generated in a timer interrupt process (not shown) has elapsed. If the minimum resolution time has not elapsed, the determination result is “NO”, and this routine is once completed.
On the other hand, if the minimum resolution time has elapsed, the determination result is “YES”, the flow proceeds to step SE5-2, and the timing data TIME stored in the register Tp is decremented. Next, in step SE5-3, it is determined whether or not the value of the decremented register Tp is “0”, that is, whether the sound generation timing has been reached. Hereinafter, the description will be divided into an operation when the sounding timing is reached and an operation when the sounding timing is not reached.
[0098]
(B) When the pronunciation timing is not reached
In this case, the determination result at step SE5-3 is “NO”, and the process proceeds to step SE5-4 to determine whether the recording flag RF is “1”, that is, whether the recording switch 19 has been operated during the sequence pattern reproduction. . If the recording switch 19 is not operated, the determination result is “NO”, and this routine is completed without performing any processing. However, if the recording switch 19 is operated, the determination result is “YES”, and step SE5- The recording process shown in FIG.
[0099]
When the recording process is executed, the CPU 2 advances the process to step Sf1 in FIG. 35 and increments the recording time data stored in the register Tr. Next, in step Sf2, it is determined whether an event is stored in the input buffer of the RAM 4. If no event is stored in the input buffer, the determination result is “NO” because there is no recording target, and this routine is completed.
On the other hand, if an event to be recorded is stored in the input buffer, the determination result is “YES”, and the flow proceeds to step Sf3. In step Sf3, the write address stored in the register RAD is incremented and stepped. This write address indicates a write address in the recording area REC in the sequence area SE, and hereinafter, the contents of the register RAD are referred to as a write address RAD.
[0100]
When stepping on the write address RAD, the CPU 2 advances the process to step Sf4, and stores the recording time data stored in the register Tr in the recording area REC of the sequence area SE according to the stepped write address RAD. Next, in step Sf5, the register Tr is reset to zero in order to measure the event interval. In step Sf6, the write address RAD is incremented. In the subsequent step Sf7, the event in the input buffer is stored in the recording area REC of the sequence area SE in accordance with the incremented write address RAD. Complete.
In this way, when the recording switch 19 is operated during sequence pattern reproduction, the input event can be recorded (recorded) in the recording area REC of the sequence area SE in the idle time out of the sound generation timing.
[0101]
(B) When the pronunciation timing is reached
On the other hand, when the sound generation timing is reached, the determination result in step SE5-3 (see FIG. 34) is “YES”, the process proceeds to step SE5-6, and the address pointer AD is incremented and stepped. Subsequently, in step SE5-7, the type of pattern data read from the reproduction area REP of the sequence area SE is determined according to the incremented address pointer AD.
[0102]
If the read pattern data is the timing data TIME, the process proceeds to step SE5-8, the read timing data TIME is stored in the register Tp, and the process returns to step SE5-3 described above.
If the read pattern data is event data EVENT, the process proceeds to step SE5-9, the event data EVENT is transferred to the output buffer of the RAM 4, and the process returns to step SE5-6.
If the read pattern data is END data indicating the end of the accompaniment element, the process proceeds to step SE5-10, where the recording flag RF is “1”, that is, whether or not the recording switch 19 is operated during sequence pattern reproduction. to decide.
[0103]
If the recording switch 19 is operated, the determination result is “YES”, and the process proceeds to step SE5-11. In step SE5-11, the pattern data recorded in the recording area REP and the pattern data of the accompaniment element (ELEMENT) that has just been reproduced are merged, and then the process proceeds to the next step SE5-12.
[0104]
On the other hand, if the recording switch 19 is not operated, the judgment result at Step SE5-10 is “NO”, and the process proceeds to Step SE5-12. In step SE5-12, it is determined whether or not the standby flag TAIKIF is “1”. If the standby flag TAIKIF is “0”, the determination result is “NO”, and the process proceeds to step SE5-13, and after setting the read address AD (ELEMENT) of the accompaniment element currently being reproduced to the address pointer AD, The process returns to step SE5-7.
[0105]
If the wait flag TAIKIF is “1”, the determination result is “YES”, the process proceeds to step SE5-14, the wait flag TAIKIF is reset to zero, and in the subsequent step SE5-15, the register TAIKIAD that holds the wait address Is set in the address pointer AD. In step SE5-16, the value of the register TAIKIE holding the accompaniment element type in the standby state is stored in the register ELEMENT, and the process returns to step SE-5. That is, in the sequence pattern reproduction, the accompaniment element selected in the reproduction area REP is repeatedly reproduced.
[0106]
(2) Operation of AES pattern playback processing routine
After the pattern switch 18 and the AES switch 10 are turned on, when the start / stop switch 11 is turned on to start playback, the AES pattern recording / reproducing process shown in FIG. 36 is performed via the above-described step SE4 (see FIG. 33). The routine is executed, and the process proceeds to step SE4-1.
In step SE4-1, it is determined whether one timer clock period (minimum resolution time) generated in a timer interrupt process (not shown) has elapsed. If the minimum resolution time has not elapsed, the determination result is “NO”, and this routine is once completed.
[0107]
On the other hand, if the minimum resolution time has elapsed, the determination result is “YES”, the flow proceeds to step SE4-2, and the timing data TIME stored in the register Tp is decremented. Next, in step SE4-3, it is determined whether or not the value of the decremented register Tp is “0”, that is, whether the sound generation timing has been reached. Hereinafter, the description will be divided into an operation when the sounding timing is reached and an operation when the sounding timing is not reached.
[0108]
(B) When the pronunciation timing is not reached
In this case, the determination result in step SE4-3 is “NO”, and the process proceeds to step SE5-4, where it is determined whether the recording flag RF is “1”, that is, whether the recording switch 19 is operated during sequence pattern reproduction. . If the recording switch 19 is not operated, the determination result is “NO”, and this routine is completed without performing any processing. However, if the recording switch 19 is operated, the determination result is “YES”, and step SE4- The recording process shown in FIG.
[0109]
When the recording process is executed, the CPU 2 advances the process to step Sf1 in FIG. 35 and increments the recording time data stored in the register Tr. Next, in step Sf2, it is determined whether an event is stored in the input buffer of the RAM 4. If no event is stored in the input buffer, the determination result is “NO” because there is no recording target, and this routine is completed.
On the other hand, if an event to be recorded is stored in the input buffer, the determination result is “YES”, and the flow proceeds to step Sf3. In step Sf3, the write address stored in the register RAD is incremented and stepped. This write address indicates a write address in the recording area REC in the sequence area SE, and hereinafter, the contents of the register RAD are referred to as a write address RAD.
[0110]
When stepping on the write address RAD, the CPU 2 advances the process to step Sf4, and stores the recording time data stored in the register Tr in the recording area REC of the sequence area SE according to the stepped write address RAD. Next, in step Sf5, the register Tr is reset to zero in order to measure the event interval. In step Sf6, the write address RAD is incremented. In the subsequent step Sf7, the event in the input buffer is stored in the recording area REC of the sequence area SE in accordance with the incremented write address RAD. Complete.
As described above, when the recording switch 19 is operated during the AES pattern reproduction, the input event can be recorded (recorded) in the recording area REC of the sequence area SE in the idle time out of the sound generation timing.
[0111]
(B) When the pronunciation timing is reached
On the other hand, when the sounding timing is reached, the determination result in step SE4-3 (see FIG. 36) is “YES”, the process proceeds to step SE4-6, and the address pointer AD is incremented and stepped. Subsequently, in step SE4-7, the type of pattern (accompaniment element) data read from the reproduction area REP of the sequence area SE is determined according to the incremented address pointer AD.
[0112]
If the read pattern data is the timing data TIME, the process proceeds to step SE4-8, the read timing data TIME is stored in the register Tp, and the process returns to step SE4-3 described above.
If the read pattern data is event data EVENT, the process proceeds to step SE4-9, the event data EVENT is transferred to the output buffer of the RAM 4, and the process returns to step SE4-6.
If the read pattern data is END data indicating the end of the accompaniment element, the process proceeds to step SE4-10 shown in FIG. 37, and the value of the register m holding the value for identifying the type of the accompaniment element is incremented. Advance.
[0113]
Next, in step SE4-11, it is determined whether or not the value of the advanced register m has reached "6", that is, whether or not a series of accompaniment elements from the intro pattern to the ending pattern has been continuously reproduced.
Here, if the series of accompaniment elements has not been reproduced continuously, the determination result is “NO”, and the process proceeds to step SE4-14 described later. However, when the series of accompaniment elements has been reproduced continuously, The determination result is “YES”, and the process proceeds to step SE4-12. In step SE4-12, the pattern data recorded in the recording area REP and the pattern data of the accompaniment element (ELEMENT) that has just been reproduced are merged, and then the process proceeds to the next step SE4-13.
[0114]
In step SE4-13, the value of the register m is reset to zero, and in the subsequent step SE4-14, the value of the register m is stored in the register ELEMENT. In step SE4-15, the read address AD (m) of the accompaniment element m currently being reproduced is set in the address pointer AD. Subsequently, in step SE4-16, the head data (timing data) of the accompaniment element m read from the reproduction area REP in the sequence area SE is set in the register Tp according to the address pointer AD, and then the step of FIG. The process returns to SE4-3. As a result, a series of accompaniment elements (0) to (5) are continuously reproduced (repeated).
[0115]
(7) Operation of output processing routine
Next, the operation of the output processing routine will be described with reference to FIG. When the output processing routine shown in FIG. 38 is executed via step S7 (see FIG. 6) described above, the CPU 2 advances the process to step SF1, and determines whether there is data in the input buffer of the RAM 4. If there is no data in the input buffer, the determination result is “NO”, and the process proceeds to step SF3 to be described later. However, if there is data in the input buffer, the determination result is “YES”, and the input buffer is input in the next step SF2. Is output to the output buffer of the RAM 4, the process proceeds to step SF 3, and the contents of the input buffer are cleared. As a result, the input event stored in the input buffer in the input process described above is transferred to the output buffer.
[0116]
Next, in step SF4, it is determined whether or not there is an event in the output buffer. If there is no event, this routine is completed. As described above, the event transferred from the input buffer and the playback of song data / pattern data are performed. When the event is stored in the output buffer in response to this, the determination result is “YES”, the process proceeds to the next step SF5, and the event stored in the output buffer is sent to the sound source 7. As a result, the sound source 7 generates a performance sound corresponding to the pressed / released key operation, a performance sound corresponding to the song data, or an accompaniment sound corresponding to the pattern data in accordance with the transferred event contents. After the output buffer event has been sent to the sound source 7, the process proceeds to step SF6, where the contents of the output buffer are cleared and this routine is completed.
[0117]
As described above, according to the present embodiment, when the accompaniment pattern (n) is selected in the original pattern area OPE by operating the pattern changeover switch and the pattern switch 18 is turned on, the selected accompaniment pattern (n ) Accompaniment elements (0) to (5) and storage addresses AD (0) to (5) of these accompaniment elements (0) to (5) are collectively copied to the reproduction area REP of the sequence area SE. The
When the AES switch 10 is turned on and the start / stop switch 11 is turned on to start reproduction, a series of accompaniment elements (0 to 0) stored in the reproduction area REP from the “intro pattern” to the “ending pattern” are stored. ) To (5) are continuously reproduced in a loop (repeatedly).
[0118]
In the process in which each accompaniment element (0) to (5) is continuously played back in a loop, for example, when an intro pattern is played back, an input element by a key event corresponding to the performance operation after turning on the recording switch 19 Is recorded in the recording area REC, it is merged into the reproduction area REP, and when the reproduction of the intro pattern is completed, the merged input element is reproduced following the intro pattern.
In other words, since all accompaniment elements can be played and recorded in a connected form, a series of musical connections and performance rides from “intro pattern” to “ending pattern” are not interrupted when recording a pattern. Therefore, the user can create an accompaniment pattern as imagined. Furthermore, the conventional inconvenience of designating each accompaniment element sequentially and advancing the pattern reproduction can also be eliminated during pattern reproduction.
[0119]
【The invention's effect】
According to the first and third aspects of the present invention, when a plurality of accompaniment elements stored in the reproduction area of the element storage means are continuously reproduced, a recording instruction is input from the outside. The input element is recorded in the recording area of the element storage means, and the recording area in which the input element is recorded is coupled to the reproduction area of the element storage means. When the accompaniment element that is currently being reproduced has been reproduced, the input element in the recording area coupled to the reproduction area is reproduced. In other words, since all accompaniment elements can be played back and recorded in a connected form, the user can imagine without a series of musical connections and performance rides from “Intro Pattern” to “Ending Pattern”. You can create an accompaniment pattern as you did. In addition, since a plurality of accompaniment elements are continuously and repeatedly reproduced, it is possible to eliminate the conventional inconvenience of proceeding pattern reproduction by sequentially designating each accompaniment element.
According to the second and fourth aspects of the present invention, a desired accompaniment pattern is selected from a plurality of types of accompaniment patterns stored in advance, and all the accompaniment elements that form the selected accompaniment pattern are selected. Since the accompaniment elements can be played back and recorded in a connected form, the user can create an accompaniment pattern as imagined without breaking the musical connection or performance riding of a series of accompaniment elements. In addition, since a plurality of accompaniment elements are continuously and repeatedly reproduced, it is possible to eliminate the conventional inconvenience of proceeding pattern reproduction by sequentially designating each accompaniment element.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an embodiment according to the present invention.
FIG. 2 is a diagram showing a configuration of main switches arranged in the panel switch group 1;
FIG. 3 is a memory map showing a data structure of a RAM 4;
FIG. 4 is a memory map showing a data structure of a RAM 4;
FIG. 5 is a memory map showing a data structure of a RAM 4;
FIG. 6 is a flowchart showing an operation of a main routine.
FIG. 7 is a flowchart showing an operation of a switch processing routine.
FIG. 8 is a flowchart showing an operation of a pattern reproduction initialization process routine.
FIG. 9 is a flowchart showing the operation of a song playback initialization process routine.
FIG. 10 is a flowchart showing an operation of a start / stop switch processing routine.
FIG. 11 is a flowchart showing an operation of a recording initialization processing routine.
FIG. 12 is a flowchart showing an operation of a sequence pattern initialization process routine.
FIG. 13 is a flowchart showing an operation of a sequence switch processing routine.
FIG. 14 is a flowchart showing an operation of a recording switch processing routine.
FIG. 15 is a flowchart showing an operation of a pattern switch processing routine.
FIG. 16 is a flowchart showing the operation of a song switch processing routine.
FIG. 17 is a flowchart showing an operation of an element switch processing routine.
FIG. 18 is a flowchart showing an operation of an intro switch processing routine.
FIG. 19 is a flowchart showing an operation of a normal / fill-in switch processing routine.
FIG. 20 is a flowchart showing the operation of a normal / fill-in switch processing routine.
FIG. 21 is a flowchart showing an operation of a variation / fill-in switch processing routine.
FIG. 22 is a flowchart showing an operation of a variation / fill-in switch processing routine.
FIG. 23 is a flowchart showing an operation of an ending switch processing routine.
FIG. 24 is a flowchart showing the operation of an all-element serial switch processing routine.
FIG. 25 is a flowchart showing the operation of a pattern changeover switch processing routine.
FIG. 26 is a flowchart showing an operation of a preset switch processing routine.
FIG. 27 is a flowchart showing an operation of an input processing routine.
FIG. 28 is a flowchart showing an operation of a pattern reproduction processing routine.
FIG. 29 is a flowchart showing an operation of a pattern reproduction processing routine.
FIG. 30 is a flowchart showing the operation of a song recording reprocessing routine.
FIG. 31 is a flowchart showing the operation of a song playback processing routine.
FIG. 32 is a flowchart showing the operation of a song recording processing routine.
FIG. 33 is a flowchart showing an operation of a sequence pattern recording / replaying routine.
FIG. 34 is a flowchart showing the operation of a sequence pattern recording / replaying routine.
FIG. 35 is a flowchart showing an operation of a recording processing routine.
FIG. 36 is a flowchart showing the operation of an AES pattern recording / playback processing routine.
FIG. 37 is a flowchart showing an operation of an AES pattern recording / playback processing routine.
FIG. 38 is a flowchart showing an operation of an output processing routine.
[Explanation of symbols]
1 Panel switch group
2 CPU
3 ROM
4 RAM
5 display section
6 keyboard
7 Sound source
10 All element serial switch
11 Start / Stop switch
12 Intro switch
13 Normal / Fill-in switch
14 Variation / Fill-in switch
15 Ending switch
16 preset switches
17 Song switch
18 Pattern switch
19 Recording switch

Claims (4)

録音エリアおよび複数の伴奏エレメントが格納される再生エリアを備えるエレメント記憶手段と、
録音指示に応じて、外部から入力される入力エレメントを前記エレメント記憶手段の録音エリアに収録し、その入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合する結合手段と、
再生指示に応じて、前記エレメント記憶手段の再生エリアに格納される複数の伴奏エレメントを連続的に繰り返し再生し、その際に前記結合手段が入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合した場合には、現在再生中の伴奏エレメントが再生し終えた後、再生エリアに結合された録音エリアの入力エレメントを再生する再生手段と
を具備することを特徴とする自動演奏装置。
Element storage means comprising a recording area and a playback area in which a plurality of accompaniment elements are stored;
In accordance with a recording instruction, an input element input from the outside is recorded in the recording area of the element storage means, and a coupling means for coupling the recording area recording the input element to the reproduction area of the element storage means;
In response to a playback instruction, a plurality of accompaniment elements stored in the playback area of the element storage means are continuously played back repeatedly, and at this time, the recording means records the input area containing the input element and the playback of the element storage means An automatic performance apparatus comprising: a playback means for playing back an input element in a recording area joined to a playback area after the accompaniment element being played back has finished playing when the music is combined with the area.
複数種の伴奏パターンを記憶するパターン記憶手段と、
このパターン記憶手段に記憶される複数種の伴奏パターンの内から何れかの伴奏パターンを選択するパターン選択手段と、
録音エリアおよび再生エリアを備えるエレメント記憶手段と、
前記パターン選択手段によって選択された伴奏パターンを形成する複数の伴奏エレメントを前記パターン記憶手段から読み出して前記エレメント記憶手段の再生エリアに転送する転送手段と、
録音指示に応じて、外部から入力される入力エレメントを前記エレメント記憶手段の録音エリアに収録し、入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合する結合手段と、
再生指示に応じて、前記エレメント記憶手段の再生エリアに記憶される複数の伴奏エレメントを連続的に繰り返し再生し、その際に前記結合手段が入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合した場合には、現在再生中の伴奏エレメントが再生し終えた後、再生エリアに結合された録音エリアの入力エレメントを再生する再生手段と
を具備することを特徴とする自動演奏装置。
Pattern storage means for storing a plurality of types of accompaniment patterns;
Pattern selecting means for selecting any one of the accompaniment patterns from a plurality of types of accompaniment patterns stored in the pattern storage means;
Element storage means comprising a recording area and a playback area;
Transfer means for reading a plurality of accompaniment elements forming the accompaniment pattern selected by the pattern selection means from the pattern storage means and transferring them to the reproduction area of the element storage means;
In accordance with a recording instruction, an input element input from the outside is recorded in the recording area of the element storage means, and a coupling means for coupling the recording area recording the input element to the reproduction area of the element storage means;
In response to a playback instruction, a plurality of accompaniment elements stored in the playback area of the element storage means are continuously and repeatedly played back, and at this time, the recording means plays back the recording area in which the coupling element is recorded. An automatic performance apparatus comprising: a playback means for playing back an input element in a recording area joined to a playback area after the accompaniment element being played back has finished playing when the music is combined with the area.
エレメント記憶手段の再生エリアに複数の伴奏エレメントを格納する格納過程と、
録音指示に応じて、外部から入力される入力エレメントを前記エレメント記憶手段の録音エリアに収録し、その入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合する結合過程と、
再生指示に応じて、前記エレメント記憶手段の再生エリアに格納される複数の伴奏エレメントを連続的に繰り返し再生し、その際に前記結合過程にて入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合した場合には、現在再生中の伴奏エレメントが再生し終えた後、再生エリアに結合された録音エリアの入力エレメントを再生する再生過程と
を具備することを特徴とする自動演奏方法。
A storage process of storing a plurality of accompaniment elements in the playback area of the element storage means;
In accordance with a recording instruction, an input element input from the outside is recorded in the recording area of the element storage means, and a coupling process for coupling the recording area recording the input element to the reproduction area of the element storage means;
In response to a playback instruction, a plurality of accompaniment elements stored in the playback area of the element storage means are continuously played back repeatedly, and at this time, a recording area in which the input elements are recorded in the combining process is recorded in the element storage means. An automatic performance method comprising: a playback step of playing back an input element of a recording area connected to a playback area after the accompaniment element being played back has finished playing when the playback element is connected to the playback area .
複数種の伴奏パターンを記憶するパターン記憶手段の内から何れかの伴奏パターンを選択するパターン選択過程と、
このパターン選択過程で選択された伴奏パターンを形成する複数の伴奏エレメントを前記パターン記憶手段から読み出してエレメント記憶手段の再生エリアに転送する転送過程と、
録音指示に応じて、外部から入力される入力エレメントを前記エレメント記憶手段の録音エリアに収録し、入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合する結合過程と、
再生指示に応じて、前記エレメント記憶手段の再生エリアに記憶される複数の伴奏エレメントを連続的に繰り返し再生し、その際に前記結合過程にて入力エレメントを収録した録音エリアを前記エレメント記憶手段の再生エリアに結合した場合には、現在再生中の伴奏エレメントが再生し終えた後、再生エリアに結合された録音エリアの入力エレメントを再生する再生過程と
を具備することを特徴とする自動演奏方法。
A pattern selection process for selecting one of the accompaniment patterns from the pattern storage means for storing a plurality of types of accompaniment patterns;
A transfer process of reading a plurality of accompaniment elements forming the accompaniment pattern selected in the pattern selection process from the pattern storage means and transferring them to the reproduction area of the element storage means;
In accordance with a recording instruction, an input element input from the outside is recorded in the recording area of the element storage means, and a coupling process for coupling the recording area recording the input element to the reproduction area of the element storage means;
In response to a playback instruction, a plurality of accompaniment elements stored in the playback area of the element storage means are repeatedly played back repeatedly, and at this time, a recording area in which the input elements are recorded in the combining process is recorded in the element storage means. An automatic performance method comprising: a playback step of playing back an input element of a recording area connected to a playback area after the accompaniment element being played back has finished playing when the playback element is connected to the playback area .
JP2001019759A 2001-01-29 2001-01-29 Automatic performance device and automatic performance method Expired - Fee Related JP4117596B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001019759A JP4117596B2 (en) 2001-01-29 2001-01-29 Automatic performance device and automatic performance method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001019759A JP4117596B2 (en) 2001-01-29 2001-01-29 Automatic performance device and automatic performance method

Publications (2)

Publication Number Publication Date
JP2002221964A JP2002221964A (en) 2002-08-09
JP4117596B2 true JP4117596B2 (en) 2008-07-16

Family

ID=18885581

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001019759A Expired - Fee Related JP4117596B2 (en) 2001-01-29 2001-01-29 Automatic performance device and automatic performance method

Country Status (1)

Country Link
JP (1) JP4117596B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016071031A (en) * 2014-09-29 2016-05-09 ヤマハ株式会社 Performance recording playback device and method, and program

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5700351B2 (en) * 2009-11-24 2015-04-15 カシオ計算機株式会社 Automatic performance device and program
US11835943B2 (en) 2019-07-09 2023-12-05 Roland Corporation Recording/playback device and recording/playback method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016071031A (en) * 2014-09-29 2016-05-09 ヤマハ株式会社 Performance recording playback device and method, and program
CN106796777A (en) * 2014-09-29 2017-05-31 雅马哈株式会社 Playing information processing unit and method
US10354630B2 (en) 2014-09-29 2019-07-16 Yamaha Corporation Performance information processing device and method
CN106796777B (en) * 2014-09-29 2020-11-24 雅马哈株式会社 Performance information processing apparatus and method

Also Published As

Publication number Publication date
JP2002221964A (en) 2002-08-09

Similar Documents

Publication Publication Date Title
JP3632411B2 (en) Music signal generation method, music signal generation device, and medium recording program
JPH05108065A (en) Automatic performance device
CN104050952B (en) Music performance apparatus and playing method
JP2677146B2 (en) Automatic performance device
JP5700351B2 (en) Automatic performance device and program
JP4117596B2 (en) Automatic performance device and automatic performance method
JP2010139592A (en) Musical tone generating apparatus and musical tone generating program
JP3684774B2 (en) Performance instruction device and medium recording program
JP3832258B2 (en) Automatic performance device and automatic performance method
JP2003015636A (en) Musical note display device
JP2004341385A (en) Apparatus and program for musical performance recording and reproduction
JP2002221963A (en) Automatic player and automatic playing method
JP2002169547A (en) Automatic music player and automatic music playing method
JP3940999B2 (en) Performance device and performance method
JP3870964B2 (en) Music signal generation method, music signal generation device, and medium recording program
JP2842440B2 (en) Automatic accompaniment device
JP3887957B2 (en) Karaoke equipment
JP2531424B2 (en) Automatic accompaniment device
JP2003015637A (en) Musical note display device
JP3027898B2 (en) Automatic performance device
JP2848092B2 (en) Automatic accompaniment device
JP3632806B2 (en) Performance information storage device and medium on which performance information storage program is recorded
JP3744667B2 (en) Automatic accompaniment device and automatic accompaniment method
JPH1185153A (en) Playing device
JP2825030B2 (en) Electronic musical instrument

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061031

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080214

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080328

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080410

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4117596

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110502

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110502

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120502

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120502

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130502

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130502

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees