JP3438229B2 - Electronic musical instrument - Google Patents

Electronic musical instrument

Info

Publication number
JP3438229B2
JP3438229B2 JP00601092A JP601092A JP3438229B2 JP 3438229 B2 JP3438229 B2 JP 3438229B2 JP 00601092 A JP00601092 A JP 00601092A JP 601092 A JP601092 A JP 601092A JP 3438229 B2 JP3438229 B2 JP 3438229B2
Authority
JP
Japan
Prior art keywords
channel
midi
event
register
sound
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP00601092A
Other languages
Japanese (ja)
Other versions
JPH0695664A (en
Inventor
好成 寺田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP00601092A priority Critical patent/JP3438229B2/en
Publication of JPH0695664A publication Critical patent/JPH0695664A/en
Application granted granted Critical
Publication of JP3438229B2 publication Critical patent/JP3438229B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】この発明はメトロノーム音の発音
機能を備えた電子楽器に関する。 【0002】 【従来の技術】電子楽器間の楽音情報の情報通信の方式
としてMIDI通信方式がある。このMIDI通信方式
においては、16個の通信チャネルが用意されており、
各チャネルを介して独立にMIDIイベントの授受が行
われる。また、電子楽器の中には、MIDI通信により
外部から与えられるMIDIイベントに応答し、楽音を
形成する機能を備えたものや、電子楽器内部においてM
IDIイベントの授受を行い楽音形成の制御を行うよう
にしたものがある。この種の電子楽器によれば、各MI
DIチャネル毎に独立に楽音形成の制御を行うことがで
き、例えばチャネル毎に異なった音色の楽音を形成する
等、柔軟性に富んだ演奏を行うことができる。一方、演
奏によって発生する演奏データを録音する機能を備えた
電子楽器、あるいは演奏の練習を目的として使用される
電子楽器として、正確なテンポを演奏者に知らせるため
にメトロノーム音の発音機能を備えた電子楽器がある。
従来、こういったメトロノーム音発生機能を有する電子
楽器は、メトロノーム音専用の音源を設けるのではな
く、音源において他の楽音の形成に使用されていない発
音チャネルを用いてメトロノーム音を発音するように構
成していた。 【0003】 【発明が解決しようとする課題】さて、上述したMID
Iイベントを楽音形成の制御に使用する電子楽器におい
ては、特定のMIDIチャネルをメトロノーム音の発音
制御のためのチャネルとして使用することで、メトロノ
ーム音発生機能を実現することができる。しかし、この
ように特定のMIDIチャネルをメトロノーム音の発音
制御のために専用すると、演奏者が自由に使用すること
ができるMIDIチャネルの数が「15」に減ってしま
ういう問題があった。また、自動演奏機能を有する電子
楽器の場合、メトロノーム音用のMIDIチャネルと同
じチャネル番号のMIDIイベントを他の装置から受信
すると、メトロノーム音用のパラメータとは異なったパ
ラメータがメトロノーム音の形成に使用されてしまう恐
れがあるという問題があった。この発明は上述した事情
に鑑みてなされたものであり、MIDIチャネルの使用
状況に拘らず、メトロノーム音を正常に発生することが
できると共に、メトロノーム音を発生している場合にお
いても、すべてのMIDIチャネルを自由に使用するこ
とが可能な電子楽器を提供することを目的とする。 【0004】 【課題を解決するための手段】この発明は、複数の通信
チャネルに対応した楽音設定情報と発音指示情報を出力
する楽音情報出力手段と、前記複数の通信チャネルに対
応した楽音設定情報に基づいて楽音を形成する楽音形成
手段と一定時間が経過する毎に、前記複数の通信チャ
ネルのうちの特定の通信チャネルに対応したメトロノー
ム音形成のための楽音設定情報とメトロノーム音の発
音指示情報を前記楽音形成手段に出力し、該出力の後、
前記メトロノーム音形成のために前記楽音形成手段に設
定した楽音設定情報を前記メトロノーム音の発音前の状
態に戻すメトロノーム音発生手段とを具備することを特
徴としている。 【0005】 【作用】上記構成によれば、楽音形成手段に対し、メト
ロノーム音の発音時のみ特定の通信チャネルを介しメト
ロノーム音形成のための楽音情報が供給され、メトロノ
ーム音が発音される。その後、メトロノーム音形成のた
めの楽音情報が送られてくる前に送られてきた楽音情報
が再び楽音形成手段に送られ、楽音形成手段における楽
音情報の設定状態はメトロノーム音の発音前の設定状態
に戻る。 【0006】 【実施例】以下、図面を参照し、本発明の一実施例を説
明する。 <A>実施例の構成 図1はこの発明を自動演奏装置に適用した一実施例の構
成を示すブロック図である。この自動演奏装置は下記機
能を有している。また、下記にも示すように、この自動
演奏装置において、演奏操作子の操作イベント、記憶手
段から読み出される演奏データ等はすべてMIDIイベ
ントに変換されて取り扱われる。 (a)演奏操作子の操作に応答しMIDIイベントを発
生するイベント発生機能 (b)記憶手段から演奏データを読み出し、MIDIイ
ベントとして出力する再生機能 (c)演奏操作子の操作によって生じるMIDIイベン
トおよび記憶手段から読み出されたMIDIイベントに
より演奏を行う自動演奏機能 (d)演奏操作子の操作によって生じるMIDIイベン
トおよび記憶手段から読み出されたMIDIイベントを
演奏データとして記憶手段に書き込む録音機能 (f)指定されたテンポでメトロノーム音を発生する機
能 また、この自動演奏装置は、上記機能(a)、(b)お
よび(d)に関し、下記の指定を行うことが可能であ
る。 (f)演奏操作子の操作によって発生するMIDIイベ
ントを割り当てるチャネル番号(以下、キーボードチャ
ネルと称する)の指定 (g)記憶手段から再生するMIDIイベントのチャネ
ル番号(以下、再生チャネルと称する)の指定 (h)記憶手段に演奏データとして録音するMIDIイ
ベントのチャネル番号(以下、録音チャネル)の指定 【0007】以下説明する本装置の各構成要素は上記各
機能を実現するための手段として使用される。図1にお
いて、1は演奏操作子としての鍵盤である。また、2は
鍵インターフェイスであり、鍵盤1の各鍵に対してなさ
れる押鍵/離鍵操作を検知し、鍵イベントとして出力す
る。3はCPU(中央処理ユニット)であり、上記機能
(a)〜(d)に係る制御を含む装置全体の制御を行
う。また、4はROM(リードオンリメモリ)であり、
CPU3が実行する各種制御プログラムの他、制御に必
要な制御情報が記憶されている。また、5はRAMであ
り、CPU3が行う制御に使用される制御データの記憶
エリアとして使用される。また、RAM5内の特定の記
憶エリアは、16トラック分の演奏データを記憶するた
めの演奏データメモリエリアおよび演奏データの編集の
際に使用する16トラック分のバッファトラックエリア
として使用される。6はMIDIインターフェイスであ
り、この自動演奏装置において再生されるMIDIイベ
ントの外部装置への送信、および外部装置から供給され
るMIDIイベントの受信を行う。7は音色指定スイッ
チ等の演奏操作子を含む各種操作子および表示器が配備
された操作パネルである。8は操作パネルインターフェ
イスであり、操作パネル7の各操作子に対してなされる
操作を検知してパネルイベントとして出力すると共に、
CPU3からの指令に従って操作パネル7の各表示器の
表示制御を行う。また、9は楽音信号を合成する楽音合
成回路、10は楽音合成回路9によって出力された楽音
信号を楽音として発音するサウンドシステムである。B
1はMIDIイベント用バスであり、CPU3、MID
Iインターフェイス6、楽音合成回路9およびサウンド
システム10を相互に接続し、これら各要素間において
行われるMIDIイベントの授受のための通信経路とし
て使用される。B2はデータバスであり、鍵インターフ
ェイス2、CPU3、ROM4、RAM5、操作パネル
インターフェイス8および楽音合成回路9を相互に接続
し、これら各要素間において行われるデータの授受のた
めの通信経路として使用される。例えば鍵インターフェ
イス2から出力される押鍵情報はデータバスB2を介し
てCPU3に取り込まれ、CPU3によってMIDIデ
ータに変換された後、MIDIイベント用バスB1を介
し楽音合成回路9に出力される。 【0008】図2は操作パネル7を示す平面図である。
図2において、21は現在設定されている音色番号を表
示するための表示器である。22は音色設定部であり、
音色番号を入力するためのテンキーおよび入力された音
色番号を増減するためのインクリメントキー、デクリメ
ントキーからなる。23はメトロノーム音の発生を指示
するためのメトロノームスイッチである。メトロノーム
スイッチ23がオン状態とされるとその上部にあるLE
Dランプ24が点灯する。31は現在設定されているテ
ンポを表示するための表示器である。32および33は
現在設定されているテンポの増減を指示するためのイン
クリメントキーおよびデクリメントキーである。41は
レコードスイッチであり、録音開始の指示および上述の
録音チャネルの設定を行う際に押下される。42は自動
演奏の開始を指示するためのスタートスイッチ、43は
自動演奏の停止を指示するためのストップスイッチであ
る。BM1〜BM16は各々キーボードチャネルスイッチ
であり、上述のキーボードチャネルの設定に使用され
る。キーボードチャネルの設定状態はLEDランプLM
1〜LM16により表示される。BQ1〜BM16は各々シー
ケンサチャネルスイッチであり、上述の再生チャネルお
よび録音チャネルの設定に使用される。再生チャネルお
よび録音チャネルの設定状態はLEDランプLQ1〜L
16により表示される。51はダイヤルであり、ボリュ
ーム、音色等のパラメータの設定値を増減するための操
作子として使用される。BC1〜BC5はモード指定用ス
イッチであり、ダイヤル51の操作によって増減させる
パラメータを指定する操作子として使用される。ダイヤ
ル操作によって、いずれのパラメータが増減されるかは
LEDランプCS1〜CS5によって表示される。61は
音色、ボリューム等を表示する表示器である。62はイ
ンクリメントキー、63はデクリメントキーであり、ダ
イヤル51と同様、ボリューム、音色等のパラメータの
設定値を増減するための操作子として使用される。52
はダイヤル優先スイッチである。再生時、ダイヤル優先
スイッチ52がオン状態である場合、RAM5から読み
出される演奏データによるボリューム、音色等のパラメ
ータ制御が無効とされ、ダイヤル51の操作によるパラ
メータ制御が優先的に実行される。また、ダイヤル優先
スイッチ52がオフ状態である場合、RAM5から読み
出される演奏データによるパラメータ制御と、ダイヤル
51の操作によるパラメータ制御の両方が行われる。 【0009】次にRAM5内の記憶エリアを使用して構
成される制御用のレジスタおよびフラグ類を以下説明す
る。 スタートフラグSTART:このスタートフラグSTA
RTは、スタートスイッチ42が押下されることにより
“1”がセットされる。START=“1”となるとR
AM5の演奏データメモリエリアから演奏データが読み
出され、自動演奏が行われる。 レコードフラグREC:このレコードフラグRECは、
レコードスイッチ41とスタートスイッチ42が同時に
押下されることにより“1”がセットされ、この結果、
MIDIイベントの録音が行われる。 MIDIバッファ:このMIDIバッファには、鍵盤演
奏、外部装置からのMIDI信号の受信、操作パネルの
操作、RAM5の演奏データメモリエリアからの演奏デ
ータの読出等の要因によって生じたMIDIイベントが
蓄積される。 チャネルステータスレジスタST(k)(k=1〜2
2):このチャネルステータスレジスタST(k)(k
=1〜22)には、楽音合成回路9における22個の発
音チャネルの発音状態を示す情報が記憶される。すなわ
ち、発音チャネルkが空きチャネルである場合はST
(k)=「0」とされ、発音チャネルkがノートオン状
態の場合はST(k)=「1」とされ、発音チャネルk
がノートオフ状態になるとST(k)=「2」とされ
る。 メトロノームフラグMM:このメトロノームフラグMM
に“1”がセットされるとメトロノーム音が発音され
る。 テンポレジスタTEMPO:このテンポレジスタTEM
POの内容に対応した時間が経過する毎にメトロノーム
音が発音される。 メトロノーム用カウントレジスタMCNT:このメトロ
ノーム用カウントレジスタMCNTは、メトロノーム音
の発音タイミングを制御するための計時手段として使用
されものであり、一定時間間隔で割込処理が実行される
毎に内容がデクリメントされる。 キーボードチャネルレジスタKBSW(k)(k=1〜
LAST)およびチャネル数レジスタLAST:キーボ
ードチャネルレジスタKBSW(k)(k=1〜LAS
T)は可変長のレジスタであり、キーボードチャネルの
番号が記憶される。チャネル数レジスタLASTにはキ
ーボードチャネルレジスタKBSWに記憶されているキ
ーボードチャネルの個数が記憶される。 モードレジスタMODE:このモードレジスタMODE
には、設定を行うパラメータの種類に対応した情報が書
き込まれる。 音色番号レジスタTC・SEL:この音色番号レジスタ
TC・SELには、音色設定部22によって入力された
音色番号が書き込まれる。 イベントレジスタEV:このイベントレジスタEVに
は、MIDIバッファから取り出されたMIDIイベン
トが書き込まれる。 MIDIチャネルレジスタMCH:このMIDIチャネ
ルレジスタMCHには、MIDIバッファから取り出さ
れたMIDIイベントのチャネルの番号が書き込まれ
る。 パラメータ設定レジスタVALUE(i,j)(i=1
〜5,j=1〜16):各パラメータ設定レジスタVA
LUE(i,j)には、楽音合成回路9の各発音チャネ
ルjに適用される各チャネルイベントが記憶される。す
なわち、VALUE(1,j)には発音チャネルjに適
用されるチャネルプレッシャイベントが記憶され、VA
LUE(2,j)にはプログラムチャンジイベントが記
憶され、VALUE(3,j)には音像位置制御のため
のPANイベントが記憶され、VALUE(4,j)に
は残響効果制御のためのイベントが記憶され、VALU
E(5,j)にはビブラート制御のためのイベントが記
憶される。 ベロシティオフセットレジスタVOFST(k)(k=
0〜127):ベロシティオフセットレジスタVOFS
T(k)には、音色番号kの楽音の形成の際に適用され
るベロシティオフセットの値が記憶される。 相対値レジスタREL:この相対値レジスタRELに
は、ダイヤル51の操作によりパラメータの増減が行わ
れる場合の変化量を表すデータが記憶される。 ノートコードレジスタNC:このノートコードレジスタ
NCには、イベントレジスタEVから取り出されたノー
トオンイベントに含まれるノートコードが書き込まれ
る。 ノートベロシティレジスタNV:このノートベロシティ
レジスタNVには、イベントレジスタEVから取り出さ
れたノートオンイベントに含まれるノートベロシティが
書き込まれる。 発音チャネル割当レジスタACH:この発音チャネル割
当レジスタACHには、発音を行わせる楽音合成回路9
の発音チャネルの番号が書き込まれる。 発音チャネル別ノートコードレジスタSTNC(k)
(k=1〜22):発音チャネル別ノートコードレジス
タSTNC(k)には、発音チャネルkによって発音さ
れる楽音のノートコードが記憶される。 発音チャネル別MIDIチャネルレジスタAMC(k)
(k=1〜22):発音チャネル別MIDIチャネルレ
ジスタAMC(k)には、発音チャネルkによって発音
されるノートオンイベントのチャネル番号が記憶され
る。 レコードスイッチフラグRECSW:このレコードスイ
ッチフラグRECSWはレコードスイッチ41が押下さ
れている期間、“1”を保持する。 録音フラグRSW(k)(k=1〜16):これらの録
音フラグRSW(k)(k=1〜16)は、各MIDI
チャネルkが録音チャネルであるか否かを示す値を記憶
するフラグであり、RSW(k)=“1”である場合に
MIDIチャネルkは録音チャネルである。 再生フラグPSW(k)(k=1〜16):これらの再
生フラグPSW(k)(k=1〜16)は、各MIDI
チャネルkが再生チャネルであるか否かを示す値を記憶
するフラグであり、PSW(k)=“1”である場合に
MIDIチャネルkは再生チャネルである。 受信フラグRC(k)(k=1〜16):これらの受信
フラグRC(k)(k=1〜16)は、各MIDIチャ
ネルkについて外部装置からのMIDIイベントの受信
を行うか否かを示す値を記憶するフラグである。RC
(k)=“1”である場合、MIDIチャネルkのMI
DIイベントの受信が許可される。 デュレーションレジスタDT(k)(k=1〜16):
これらのデュレーションレジスタDT(k)(k=1〜
16)には、再生時、演奏データメモリエリアの各トラ
ックkから読み出されるデュレーションデータが書き込
まれる。 【0010】<B>実施例の動作 <動作概要>図3はCPU3によって実行される主なル
ーチンと、これら各ルーチン間の関係を説明するもので
ある。また、図4〜図23はCPU3によって実行され
る各ルーチンの具体的処理内容を示すフローチャートで
あり、図4はメインルーチンのフローチャート、図6〜
図20はメインルーチンの実行に伴って実行される各ル
ーチンのフローチャート、図21〜23はCPU3によ
り割込処理として実行される各ルーチンのフローチャー
トである。なお、これら各ルーチンの具体的処理内容に
ついては次項<詳細な動作説明>において詳細に説明
し、以下では、図3を参照し、この自動演奏装置の動作
の概要を説明する。 【0011】(1)楽器モード(START=“0”R
EC=“0”) この楽器モードにおいては、鍵盤1、操作パネル7上の
操作子等の演奏操作子の操作によって生じるMIDイベ
ント、および外部装置から受信したMIDIイベントに
基づく演奏が行われる。鍵盤1の操作によって生じる鍵
イベントは鍵処理ルーチンによってMIDIイベントに
変換され、キーボードチャネルに対応したMIDIイベ
ントとしてMIDIバッファに蓄積される。また、操作
パネル7の操作子によって発生するパネルイベントはイ
ンクリメント処理ルーチン、音色設定処理ルーチン等の
各パネルイベントに対応したルーチンによってMIDI
イベントに変換され、キーボードチャネルに対応したM
IDIイベントとしてMIDIバッファに蓄積される。
さらに外部装置から受信されるMIDIイベントは外部
MIDI処理ルーチンによりMIDIバッファに蓄積さ
れる。MIDIバッファに蓄積されたMIDIイベント
は、MIDI処理ルーチンによって逐次取り出され、M
IDIイベントにおけるノートイベントはノートイベン
ト処理ルーチンへ、チャネルイベントはチャネルイベン
ト処理ルーチンへ引き渡される。そして、ノートイベン
ト処理ルーチンにより、ノートイベントに基づくパラメ
ータが生成され、チャネルイベント処理ルーチンによ
り、チャネルイベントに基づき、音色設定、ボリューム
設定等のためのパラメータが発生され、各々、楽音合成
回路9に供給される。 【0012】(2)再生モード(START=“1”、
REC=“0”) 一定時間が経過する毎に割込処理として再生処理ルーチ
ンが実行され、RAM5内の演奏データメモリエリアの
うち再生チャネルに対応したトラックから演奏データが
順次読み出され、再生チャネルに対応したMIDIイベ
ントとしてMIDIバッファに書き込まれる。また、鍵
盤演奏、操作パネル7の操作、外部装置からのMIDI
信号の受信等があった場合は、それらによって生じるM
IDIイベントもMIDIバッファに書き込まれる。そ
して、上記楽器モードの場合と同様、MIDIバッファ
からMIDIイベントが逐次読み出され、楽音合成回路
9の制御が行われる。 【0013】(3)録音再生モード(START=
“1”、REC=“1”) MIDI処理ルーチンが実行されるのに伴って記録処理
ルーチンが実行される。これにより、MIDIバッファ
に蓄積されたMIDIイベントのうちチャネル番号が録
音チャネルと一致するものが選択され、RAM5内のバ
ッファトラックエリアのうち各録音チャネルに対応した
トラックに書き込まれる。バッファトラックエリアの内
容は、ストップスイッチの押下により、演奏データメモ
リエリアの各々対応するトラックに転送される。 【0014】<詳細な動作説明>この自動演奏装置の図
示しない電源スイッチがオン状態にされると、CPU3
は図4にフローを示すメインルーチンを実行する。ま
ず、ステップS401に進み、RAM5内の制御データ
の記憶エリアに初期値を書き込む。次にステップS40
2に進み、図5にフローを示すMIDI処理ルーチンを
開始する。そして、そのステップS501において、M
IDIバッファ内にMIDIイベントがあるか否かを判
断する。この判断結果が「YES」の場合はステップS
502以降の処理を実行してメインルーチンに戻り、
「NO」の場合は何も処理を行わずにメインルーチンに
戻る。次にメインルーチンに戻るとステップS403に
進み、図6にフローを示す外部MIDI処理ルーチンを
開始する。そして、そのステップS601において、M
IDIインターフェイス6を介して外部装置からのMI
DIイベントを受信したか否かを判断する。この判断結
果が「YES」の場合はステップS602以降の処理を
実行してメインルーチンに戻り、「NO」の場合は何も
処理を行わずにメインルーチンに戻る。次にメインルー
チンに戻るとステップS404に進み、図7にフローを
示す鍵処理ルーチンを開始する。そして、そのステップ
S701において、鍵インターフェイス2の出力状態を
走査する。次にステップS702に進み、鍵盤1の鍵が
操作されたことを示す鍵イベントが鍵インターフェイス
2を介して検出されたか否かを判断する。この判断結果
が「YES」の場合はステップS703を実行してメイ
ンルーチンに戻り、「NO」の場合はステップS703
を実行しないでメインルーチンに戻る。次にメインルー
チンに戻るとステップS405に進み、発音チャネル処
理を実行する。この発音チャネル処理は詳述しないが、
楽音合成回路9の各発音チャネルのうち発音中の楽音の
レベルが所定値以下になった発音チャネルの番号kを検
出し、この検出した発音チャネルに対応したチャネルス
テータスレジスタST(k)に対し、空きチャネルを意
味する情報「0」を書き込むものである。次にステップ
S406に進み、図8にフローを示すパネル処理ルーチ
ンを開始する。そして、そのステップS801におい
て、操作パネルインターフェイス8の出力状態を走査す
る。次にステップS802に進み、操作パネル7におけ
る操作子が操作されたことを示すパネルイベントが操作
パネルインターフェイス8を介して検出されたか否かを
判断する。この判断結果が「YES」の場合はステップ
S803に進んで検出されたパネルイベントに対応した
ルーチンを実行してメインルーチンに戻り、「NO」の
場合はステップS803を介さずにメインルーチンに戻
る。そして、以後、CPU3はステップS402〜S4
06を繰り返す。 【0015】CPU3は、一定期間が経過する毎に、そ
の時点において実行中の処理を中断し、図21に示す割
込処理ルーチンを実行する。まず、ステップS2101
に進み、他の割込要求を受け付けないように割込制御用
のフラグに割込不許可に対応した情報を書き込む。次に
ステップS2102に進み、メトロノームフラグMMの
内容が“1”であるか否かを判断する。この判断結果が
「YES」の場合は、ステップS2103に進んで図2
2にフローを示すメトロノーム処理ルーチンを実行し、
ステップS2104に進む。一方、ステップS2102
の判断結果が「NO」の場合はステップS2103を実
行しないでステップS2104に進む。次にステップS
2104に進み、自動演奏中か否かを判断する。そし
て、自動演奏中ならば、ステップS2105に進んで図
23にフローを示す再生処理ルーチンを実行し、ステッ
プS2106に進む。一方、自動演奏中でなければステ
ップS2105を実行しないでステップS2106に進
む。次にステップS2106に進むと、割込制御用のフ
ラグに割込許可に対応した情報を書き込む。そして、C
PU3は、この割込処理ルーチンを終了し中断していた
処理を再開する。 【0016】(1)楽器モード 初期化処理(メインルーチンのステップS401)が実
行されると、スタートフラグSTART、レコードフラ
グRECに共に“0”が書き込まれ、この自動演奏装置
の動作モードは楽器モードとなる。以下、この自動演奏
装置の楽器モード時の動作を説明する。 【0017】キーボードチャネル設定 この自動演奏装置において、鍵盤1から検出される鍵イ
ベントおよび操作パネル7の操作によって生じるパネル
イベントは、キーボードチャネルに対応したMIDIイ
ベントに変換されて取り扱われる。演奏者は、鍵盤演奏
を行うに際し、キーボードチャネル指定スイッチBM1
〜BM16における所望のチャネル番号に対応したスイッ
チを押下し、キーボードチャネルの設定を行う。キーボ
ードチャネル指定スイッチに対する操作が行われると、
その操作に対応したパネルイベントが操作パネルインタ
ーフェイス8によって検出される。この結果、メインル
ーチンのステップS406を介してパネル処理ルーチン
のステップS802に進んだ時、その判断結果が「YE
S」となってステップS803に進む。そして、ステッ
プS803において、図9にフローを示すキーボードチ
ャネルスイッチ処理ルーチンを実行する。まず、ステッ
プS901に進み、現在押下されているキーボードチャ
ネル指定スイッチの他に別のキーボードチャネル指定ス
イッチが押下されているか否かを判断する。演奏者が1
個のキーボードチャネル指定スイッチBMkのみを押下
している場合はステップS901の判断結果は「NO」
となってステップS902に進み、キーボードチャネル
指定用のLEDランプLM1〜LM16をすべて消灯す
る。次にステップS903に進み、チャネル数レジスタ
LASTに「1」を書き込む。次にキーボードチャネル
指定レジスタKBSW(i)(i=1〜NMAX)のう
ちチャネル数レジスタLASTによって指定されるレジ
スタKBSW(LAST)(この場合、KBSW
(1))に対し、押下されたキーボードチャネル指定ス
イッチBMkの番号kを書き込む。このようにして、チ
ャネル番号kがキーボードチャネルの番号として設定さ
れる。次いでステップS906に進み、設定されたキー
ボードチャネルの番号kに対応したLEDランプBMk
を点灯させる。そして、パネル処理ルーチンを介してメ
インルーチンに戻る。 【0018】また、この自動演奏装置においては複数の
MIDIチャネルをキーボードチャネルとして設定する
ことができる。この場合、演奏者は第1番目のキーボー
ドチャネル指定スイッチを押下した後、そのスイッチか
ら指を離す前に第2番目のキーボードチャネル指定スイ
ッチを押下する。この場合、上記の通りキーボードチャ
ネルスイッチ処理ルーチンが実行されることにより、ま
ず、第1番目のキーボードチャネル指定スイッチに対応
したキーボードチャネルの番号がレジスタKBSW
(1)に書き込まれる。その後、キーボードチャネルス
イッチ処理ルーチンに進んだ時に第2番目のキーボード
チャネル指定スイッチが押下されていることからステッ
プS901の判断結果が「YES」となってステップS
904に進み、チャネル数レジスタLASTをインクリ
メントする。そして、ステップS905に進み、第2番
目のキーボードチャネルの番号をレジスタKBSW(L
AST)(この場合、KBSW(2))に書き込む。そ
して、LEDランプBMk(k=1〜16)のうちレジ
スタKBSW(1)およびKBSW(2)の内容に対応
したを各LEDランプを点灯させ(ステップS80
6)、パネル処理ルーチンを介してメインルーチンに戻
る。さらにキーボードチャネルとして設定すべきチャネ
ル番号がある場合、演奏者は現在押下中のキーボードチ
ャネル指定スイッチから指を離す前に新たなキーボード
チャネル指定スイッチを押下するという方法により、所
望のチャネル番号を順次入力する。この結果、上述と同
様の処理が繰り返され、キーボードチャネル指定レジス
タKBSW(k)(k=1〜LAST)に対し、すべて
のキーボードチャネル番号が書き込まれ、それらのチャ
ネル番号に対応したLEDランプが点灯する。 【0019】音色設定部22による音色設定 演奏者が音色設定部22におけるテンキーあるいはイン
クリメント/デクリメントキーを操作して音色番号を入
力すると、メインルーチンを介してパネル処理ルーチン
が起動された時、そのステップS803において、図1
0にフローを示す音色設定スイッチ処理ルーチンが実行
される。まず、ステップS1001に進み、モード表示
用のLEDランプCS1〜CS5のうちその時点における
モードレジスタMODEの内容に対応したLEDランプ
を消灯させる。次いでステップS1002に進み、情報
「0」をモードレジスタMODEに書き込む。次にステ
ップS1003に進み、音色設定部22によって入力さ
れた音色番号を音色番号レジスタTC・SELに書き込
む。次いでステップS1004に進み、表示器21に音
色番号レジスタTC・SELの内容を表示させる。次に
ステップS1005に進み、その時点において設定され
たすべてのキーボードチャネル、すなわち、キーボード
チャネルレジスタKBSW(k)(k=1〜LAST)
に設定された各MIDIチャネルについて、音色番号レ
ジスタTC・SELに設定された音色番号を含むプログ
ラムチェンジイベント(音色設定イベント)作成し、各
々を内部MIDIイベントとしてMIDIバッファに書
き込む。この結果、メインルーチンのステップS402
を介してMIDI処理ルーチンに進んだ時、そのステッ
プS501の判断結果が「YES」となり、ステップS
502に進む。そして、MIDIバッファから内部MI
DIイベントを取り出し、イベントレジスタEVに書き
込むと共に、取り出した内部MIDIイベントのチャネ
ル番号をMIDIチャネルレジスタMCHに書き込む。
次いでステップS503に進み、イベントレジスタEV
に格納されたイベントがノートイベントか否かを判断す
る。ステップS502においてイベントレジスタEVに
書き込んだイベントがプログラムチェンジイベントであ
る場合、ステップS503の判断結果は「NO」となっ
てステップS505に進む。そして、図11にフローを
示すチャネルイベント処理ルーチンを実行する。 【0020】まず、ステップS1101に進み、イベン
トレジスタEVに設定されたイベントに対応したモード
番号をモードレジスタMODEに書き込む。イベントレ
ジスタEVには音色番号を指定するプログラムチェンジ
イベントが設定されている場合には、「0」がモードレ
ジスタMODEに書き込まれる。次にステップS110
2に進み、モードレジスタMODEに設定された番号
が、定義された所定範囲内(本実施例においては1〜
5)の番号であるか否かを判断する。この場合、番号
「0」はこの定義された範囲から外れるので、ステップ
S1102の判断結果は「NO」となってステップS1
104に進む。そして、CPU3は、イベントレジスタ
EVに設定されたMIDIイベント、すなわち、この場
合、音色設定ルーチンの実行によって作成されたプログ
ラムチェンジイベントをMIDIイベント用バスB1を
介して楽音合成回路9へ送る。ここで、楽音合成回路9
は、各MIDIチャネル毎に音色およびエフェクト等の
制御パラメータを記憶するための記憶エリアを有してい
る。CPU3から受信された各プログラムチェンジイベ
ントは、それらのMIDIチャネルに応じて振分けら
れ、各々対応する記憶エリアに格納される。そして、チ
ャネルイベント処理ルーチンのステップS1104が終
了すると、MIDI処理ルーチンに戻ってそのステップ
S506に進み、レコードフラグRECの内容が“1”
か否かを判断する。楽器モードの場合、ステップS50
6の判断結果は「NO」となり、メインルーチンに戻
る。 【0021】キーボードチャネルが複数設定されている
場合、音色設定処理ルーチンが実行されることにより、
各キーボードチャネルに対応したプログラムチェンジイ
ベントがMIDIバッファに書き込まれる(音色設定処
理ルーチンのステップS1005)。MIDIバッファ
に書き込まれた各プログラムチェンジイベントは、その
後、MIDI処理ルーチンが実行される毎にイベントレ
ジスタEVに取り込まれ(ステップS502)、チャネ
ルイベント処理ルーチンが実行されることにより、楽音
合成回路9へと送られる(ステップS1104)。この
ようにして、すべてのキーボードチャネルについて、音
色設定部22によって入力された音色が設定される。 【0022】ダイヤル51による各種パラメータ設定 この自動演奏装置においては、ダイヤル51を操作する
ことにより、各MIDIチャネルに対して設定されるボ
リューム、音色番号、エフェクト等の制御パラメータの
数値を増減させることができる。以下、この動作につい
て説明する。 【0023】a.ボリューム設定 ダイヤル51の操作によるボリューム設定を行う場合、
演奏者は、まず、ボリュームスイッチBC2をオン状態
にする。この結果、CPU3は、メインルーチンを介し
てパネル処理ルーチンに進んだ時、そのステップS80
3において、図12にフローを示すボリュームスイッチ
処理ルーチンを実行する。まず、ステップS1201に
進み、モード表示用のLEDランプCS1〜CS5のうち
その時点におけるモードレジスタMODEの内容に対応
したLEDランプを消灯させる。次いでステップS12
02に進み、ボリューム設定モードに対応した情報
「1」をモードレジスタMODEに書き込む。次にステ
ップS1203に進み、相対値レジスタRELに「0」
を書き込む。次いでステップS1204に進み、チャネ
ル数レジスタLASTの内容が「1」か否かを判断す
る。この判断結果が「YES」の場合、すなわち、キー
ボードチャネルの数が1である場合は、ステップS12
05に進む。そして、その時点におけるパラメータ設定
レジスタVALUE(i、j)(i=1〜5,j=1〜
16)のうち、モード番号iが「1」に対応し、かつ、
チャネル番号jが第1番目のキーボードチャネルKBS
W(1)に対応したレジスタVALUE(1、KBSW
(1))の内容を表示器61に表示させる。そして、パ
ネル処理ルーチンを介してメインルーチンに戻る。一
方、ステップS1204の判断結果が「NO」の場合、
すなわち、キーボードチャネルが複数設定されている場
合は、ステップS1206に進み、相対値レジスタRE
Lの内容「0」を表示器61に表示させ、パネル処理ル
ーチンを介してメインルーチンに戻る。 【0024】次に演奏者は所望のボリュームを設定すべ
くダイヤル51を操作する。ここで、演奏者がダイヤル
51をボリュームを増加させる方向に回した場合は、パ
ネル処理ルーチンのステップS803において図13に
示すインクリメント処理ルーチンを実行する。まず、ス
テップS1301に進み、モードレジスタMODEの内
容が「0」か否かを判断する。この場合、モードレジス
タMODEにはボリューム設定モードに対応した情報
「1」が設定されているため、ステップS1301の判
断結果は「NO」となってステップS1302に進み、
相対値レジスタRELの内容をインクリメントする。次
にステップS1303に進んで変数レジスタiに初期値
「1」を設定する。次にステップS1304に進み、そ
の時点におけるパラメータ設定レジスタVALUE
(i、j)(i=1〜5,j=1〜16)のうちモード
番号iがモードレジスタMODE(この場合、MODE
=「1」)に対応し、かつ、チャネル番号jがキーボー
ドチャネルKBSW(i)(この場合、KBSW
(1))に対応したレジスタVALUE(1、KBSW
(1))をインクリメントする。ここで、インクリメン
トがなされる前にレジスタVALUE(1、KBSW
(1))に設定されたボリューム値が既にボリュームの
上限値となっている場合にはボリューム値のインクリメ
ントは行われない。次にステップS1305に進み、パ
ラメータ設定レジスタVALUE(1、KBSW
(1))に設定されたボリューム値を用いて第1番目の
キーボードチャネルレジスタKBSW(1)によって指
定されるMIDIチャネルのチャネルプレッシャイベン
ト(ボリューム制御イベント)を作成し、内部MIDI
イベントとしてMIDIバッファに書き込む。次にステ
ップS1306に進み、変数レジスタiをインクリメン
トする。次いでステップS1307に進み、変数レジス
タiの内容(この場合、i=「2」)がチャネル数レジ
スタLASTの内容より大きいか否かを判断する。この
判断結果が「YES」である場合はステップS1308
に進む。一方、ステップS1307の判断結果が「N
O」の場合、すなわち、変数レジスタiの内容がチャネ
ル数レジスタLASTに格納されたキーボードチャネル
の数以下である場合はステップS1304に戻り、未処
理の第2番目のキーボードチャネルについて、パラメー
タ設定レジスタVALUE(1、KBSW(2))に格
納されたボリューム値をインクリメントし(ステップS
1304)、新たなボリューム値に基づいて第2番目の
キーボードチャネルに対応したチャネルプレッシャイベ
ントを作成して内部MIDIイベントとして保持する
(ステップS1305)。そして、変数レジスタiをイ
ンクリメントし(ステップS1306)、i>LAST
か否かを判断する(ステップS1307)。このように
ステップS1307の判断結果が「YES」となるまで
ステップS1304〜S1307を繰り返し、設定され
たすべてのキーボードチャネルについてボリューム値を
更新すると共に新たなボリューム値に基づいたチャネル
プレッシャイベントを作成し、MIDIバッファに書き
込む。ステップS1307の判断結果が「YES」とな
ってステップS1308に進むと、チャネル数レジスタ
LASTに格納されたキーボードチャネルの数が1であ
るか否かを判断する。この判断結果が「YES」である
場合はステップS1309に進み、モードレジスタMO
DEによって指定されるモード(この場合はボリューム
設定モード)に対応し、かつ、第1番目のキーボードチ
ャネルKBSW(1)に対応したパラメータ設定レジス
タVALUE(MODE、KBSW(1))の内容を表
示器61に表示させ、パネル処理ルーチンを介してメイ
ンルーチンに戻る。一方、ステップS1310の判断結
果が「NO」の場合、すなわち、キーボードチャネルの
数が「2」以上である場合は相対値レジスタRELの内
容を表示器61に表示させ、パネル処理ルーチンを介し
てメインルーチンに戻る。この場合、表示器61に表示
される相対値レジスタRELの内容は、設定されたすべ
てのキーボードチャネルについてのボリューム値の相対
変化分(この場合は増加分)を表わしている。 【0025】一方、ダイヤル51がボリューム減少方向
に回動された場合は、パネル処理ルーチンを介してデク
リメント処理ルーチンが実行される。なお、このデクリ
メント処理ルーチンについてはフローチャートの図示を
省略した。デクリメント処理ルーチンが実行された場合
は、相対値レジスタRELがデクリメントされ(ステッ
プS1304相当)、設定されたすべてのキーボードチ
ャネルについてのボリューム値のデクリメント(ステッ
プS1304相当)、チャネルプレッシャイベントの作
成(ステップS1305相当)が行われる。そして、上
述したインクリメント処理ルーチンの場合と同様、ボリ
ューム値の絶対値(ステップS1309相当)あるいは
すべてのキーボードチャネルについてのボリューム値の
減少分RELが表示される(ステップS1310相
当)。 【0026】以上のように、ダイヤル51が回動される
ことによりチャネルプレッシャイベントが作成され、内
部MIDIイベントとしてMIDIバッファに書き込ま
れる。この結果、メインルーチンのステップS402を
介してMIDI処理ルーチンに進んだ時、そのステップ
S501の判断結果が「YES」となり、ステップS5
02に進む。そして、MIDIバッファから内部MID
Iイベント(この場合、インクリメント処理ルーチンあ
るいはデクリメント処理ルーチンにおいて作成されたチ
ャネルプレッシャイベント)を取り出してイベントレジ
スタEVに書き込むと共に、取り出したMIDIイベン
トのチャネル番号をMIDIチャネルレジスタMCHに
書き込む。次いでステップS503に進み、イベントレ
ジスタEVに格納されたイベントがノートイベントか否
かを判断する。この場合、イベントレジスタEVに書き
込まれたチャネルプレッシャイベントはチャネルイベン
トであることからステップS503の判断結果は「N
O」となり、ステップS505に進む。そして、チャネ
ルイベント処理ルーチンを実行する。 【0027】まず、ステップS1101に進み、イベン
トレジスタEVに設定されたイベントに対応したモード
番号、すなわち、ボリューム設定モードに対応したモー
ド番号「1」をモードレジスタMODEに書き込む。次
にステップS1102に進み、モードレジスタMODE
に設定されたモード番号が、定義された所定範囲「1」
〜「5」以内の番号であるか否かを判断する。この場
合、モード番号「1」はこの定義された範囲内であるの
で、ステップS1102の判断結果は「YES」となっ
てステップS1103に進む。そして、外部から供給さ
れるMIDIイベント等のようにダイヤル操作以外の原
因によって生じたMIDIイベントのうち、モードレジ
スタMODEによって指定される種類のチャネルイベン
ト(MODE=「1」である場合はチャネルプレッシャ
イベント)を取り出し、新たに設定すべきチャネルイベ
ントとしてレジスタVALUE(MODE、MCH)へ
書き込む。次にステップS1104に進み、イベントレ
ジスタEVに保持されたチャネルプレッシャイベントを
MIDIイベント用バスB1を介して楽音合成回路9へ
送る。この結果、供給されたチャネルプレッシャイベン
トに従って楽音合成回路9における該当する発音チャネ
ルの音量が設定される。そして、チャネルイベント処理
ルーチンのステップS1104が終了すると、MIDI
処理ルーチンに戻ってそのステップS206に進み、レ
コードフラグRECの内容が“1”か否かを判断し、判
断結果が「NO」の場合はメインルーチンに戻る。 【0028】キーボードチャネルが複数設定されている
場合、ダイヤルが回動されることにより、すべてのキー
ボードチャネルKBSW(i)(i=1〜LAST)に
ついて、レジスタVALUE(MODE、KBSW
(i))の内容がインクリメント(インクリメント処理
ルーチンのステップS1304)あるいはデクリメント
され、レジスタVALUE(MODE、KBSW
(i))に記憶されたチャネルイベント(MODE=
「1」の場合はチャネルプレッシャイベント)がMID
Iバッファに書き込まれる(インクリメント処理ルーチ
ンのステップS1304)。MIDIバッファに書き込
まれた各キーボードチャネルに対応したチャネルプレッ
シャイベントは、その後、MIDI処理ルーチンが実行
される毎にイベントレジスタEVに取り込まれ(ステッ
プS502)、チャネルイベント処理ルーチンが実行さ
れることにより、楽音合成回路9へと送られる(ステッ
プS1104)。このようにして、楽音合成回路9にお
けるすべてのキーボードチャネルに対応した発音チャネ
ルに対し、ダイヤル操作に応じたボリューム設定がなさ
れる。 【0029】b.ダイヤル操作による他のパラメータ設
定 演奏者は、スイッチBC2〜BC4のうち所望のパラメー
タに対応したスイッチを押下した後、ダイヤル操作を行
うことにより、音色番号、エフェクト等のボリューム以
外のパラメータの設定を行うことができる。この場合
も、上述したボリューム設定の場合と同様な処理が行わ
れる。すなわち、演奏者がスイッチBC2を押下した場
合にはパネル処理ルーチンS803において音色設定に
対応したデータ「2」がモードレジスタMODEに書き
込まれ、スイッチBC3を押下した場合は音像位置設定
に対応したデータ「3」がモードレジスタMODEに書
き込まれ、スイッチBC4を押下した場合はリバーブの
深度の設定に対応したデータ「4」が書き込まれ、スイ
ッチBC5を押下した場合はビブラートの深度の設定に
対応したデータ「5」が書き込まれる。その後、ダイヤ
ル操作が行われると、すべてのキーボードチャネルKB
SW(i)(i=1〜LAST)について、モードレジ
スタMODEによって指定される種類のレジスタVAL
UE(MODE、KBSW(i))の内容がインクリメ
ント(インクリメント処理ルーチンのステップS130
4)あるいはデクリメントされ、レジスタVALUE
(MODE、KBSW(i))に記憶されたチャネルイ
ベントがMIDIバッファに書き込まれる(インクリメ
ント処理ルーチンのステップS1304)。そして、M
IDI処理ルーチンが実行されることにより、MIDI
バッファに書き込まれたチャネルイベントが楽音合成回
路9へと送られ(ステップS1104)、楽音合成回路
9に対するダイヤル操作に応じたパラメータ設定が行わ
れる。 【0030】c.音色設定部22により音色番号が入力
された後、ダイヤル操作された場合 この場合、MODE=「0」となってインクリメント処
理ルーチンが開始され、ステップS1301の判断結果
が「Yes」となってステップS1321へ進む。そし
て、音色番号TC・SELに対応したベロシティオフセ
ットレジスタVOFST(TC・SEL)の内容が12
7より小さいか否かを判断する。この判断結果が「Ye
s」の場合はベロシティオフセットレジスタVOFST
(TC・SEL)をインクリメントし(ステップS13
22)、ステップS1323に進む。また、ステップS
1321の判断結果が「No」の場合はステップS13
22を実行することなくステップS1323へ進む。次
にステップS1323へ進むと、ベロシティオフセット
レジスタVOFST(TC・SEL)の内容を表示器6
1に表示し、メインルーチンへ戻る。このようにMOD
E=「0」である場合には、ダイヤル操作により、設定
中の音色番号に対応したベロシティオフセットの値が更
新される。 【0031】テンポ設定 演奏者がテンポ設定用のインクリメントキー32あるい
はデクリメントキー33を押下すると、これらのキーが
操作されたことを示すパネルイベントが操作パネルイン
ターフェイス8を介して検出される。この結果、CPU
3はパネル処理ルーチンのステップS802において、
図14にフローを示すテンポ設定ルーチンに進み、イン
クリメントキー32あるいはデクリメントキー33の操
作に応じてテンポレジスタTEMPO内のテンポデータ
を増減させ(ステップS1401)、テンポレジスタT
EMPOの内容を操作パネルインターフェイス8に送っ
て表示器31に表示させる(ステップS1402)。そ
して、テンポ設定ルーチンを終了し、パネル処理ルーチ
ンを介してメインルーチンに戻る。以後、新たにテンポ
レジスタTEMPOに書き込まれたテンポデータに基づ
いて、メトロノーム音の発生タイミングの制御が行われ
る。 【0032】鍵盤演奏における動作 演奏者が鍵盤1におけるいずれかの鍵を押下すると、そ
の鍵に対応した押鍵イベントが鍵インターフェイス2を
介して検出される。この結果、メインルーチンのステッ
プS404を介して鍵処理ルーチンに進んだ時、そのス
テップS702の判断結果が「YES」となってステッ
プS703に進む。そして、押鍵イベントに対応したノ
ートオンイベントを、その時点において設定されたすべ
てのキーボードチャネルKBSW(i)(i=1〜LA
ST)について作成し、各々内部MIDIイベントとし
てMIDIバッファに書き込む。この結果、MIDI処
理ルーチンが起動された時、そのステップS501の判
断結果が「YES」となってステップS502に進む。
そして、MIDIバッファ内の内部MIDIイベントの
うち1つを取り出してイベントレジスタEVに書き込む
と共に、取り出したMIDIイベントのチャネル番号を
MIDIチャネルレジスタMCHに書き込む。次いでス
テップS503に進み、イベントレジスタEVに格納さ
れたイベントがノートイベントか否かを判断する。この
動作においてイベントとはノートイベントであるので、
ステップS504に進み、ノートイベント処理ルーチン
を実行する。 【0033】図15にノートイベント処理ルーチンのフ
ローを示す。まず、ステップS1501に進み、イベン
トレジスタEVに格納されたノートオンイベントにおけ
るノートコードをノートコードレジスタNCに書き込
む。次にステップS1502に進み、同ノートオンイベ
ントにおけるノートベロシティをノートベロシティレジ
スタNVに書き込む。次にステップS1503に進み、
イベントレジスタEVに格納されているのがノートオン
イベントか否かを判断する。この場合、ステップS15
03の判断結果は「YES」となってステップS150
4に進み、チャネルステータスレジスタST(k)(k
=1〜28)のうち、内容が「0」であるレジスタがあ
るか否か、すなわち、楽音合成回路9の全発音チャネル
のうち発音を行っていない空きチャネルがあるか否かを
判断する。この判断結果が「YES」の場合はステップ
S1505に進み、空きチャネルのうちいずれか1つの
チャネル番号を発音割当レジスタACHに書き込む。次
いでステップS1506に進み、発音割当レジスタAC
Hの内容に対応したチャネルステータスレジスタST
(ACH)に対し、押鍵中のチャネルであることを示す
情報「1」を書き込む。次いでステップS1507に進
み、発音割当レジスタACHによって指定される発音チ
ャネル別ノートコードレジスタSTNC(ACH)にノ
ートコードレジスタNCの内容を書き込む。次いでステ
ップS1508に進み、発音割当チャネルレジスタAC
Hによって指定される発音チャネル別MIDIチャネル
番号レジスタAMC(ACH)にMIDIチャネルレジ
スタMCHの内容を書き込む。次にステップS1509
に進み、CPU3は楽音合成回路9における前述のAC
Hに対応した発音チャネルに対し、MIDIチャネルレ
ジスタMCHに格納されたMIDIチャネル番号、ノー
トコードレジスタNCに格納されたノートコード、ノー
トベロシティレジスタNVに格納されたノートベロシテ
ィ、および発音を指示するノートオン信号を送る。この
結果、楽音合成回路9の発音チャネルACHにより、C
PU3から与えられたノートコードおよびノートベロシ
ティに対応した楽音が形成され発音される。ここで、楽
音合成回路9は、前述したように各MIDIチャネル毎
に音色およびボリューム等の制御パラメータを記憶して
おり、これらの制御パラメータのうちCPU3から与え
られたMIDIチャネル番号に対応したものを用いて楽
音形成の制御を行う。 【0034】そして、ステップS1509が終了する
と、ノートイベント処理ルーチンを終了してMIDI処
理ルーチンに戻る。一方、空きチャネルが見つからず、
ステップS1504の判断結果が「NO」となった場合
はステップS1505〜S1509を実行しないでMI
DI処理ルーチンに戻り、そのステップS506におい
て、レコードフラグRECの内容が“1”か否かを判断
し、判断結果が「NO」の場合はメインルーチンに戻
る。 【0035】次に演奏者が鍵盤1における押下していた
鍵を離すと、その鍵に対応した離鍵イベントが鍵インタ
ーフェイス2を介して検出される。この結果、メインル
ーチンのステップS404から鍵処理ルーチンに進んだ
時、そのステップS702の判断結果が「YES」とな
って、前述の押鍵イベントの場合と同様、ステップS7
03、メイルーチンのステップS402、MIDI処理
ルーチンのステップS501、S502、S503を実
行してステップS504に進み、ノートイベント処理ル
ーチンを実行する。そして、イベントレジスタEVに格
納されたノートオフイベントのノートコードをノートコ
ードレジスタNCに書き込み(ステップS1501)、
同ノートオフイベントにおけるノートベロシティをノー
トベロシティレジスタNVに書き込む(ステップS15
02)。 【0036】ノートオフイベントの場合は、ステップS
1503の判断結果は「NO」となってステップS15
10に進み、発音チャネル別ノートコードレジスタST
NC(k)(k=1〜28)およびチャネルステータス
レジスタST(k)(k=1〜28)の各記憶内容を順
次判定し、STNC(k)=NCであり、かつ、ST
(k)=(1)を満足する番号kがあるか否か、すなわ
ち、ノートコードNCに対応した楽音を発音中であり、
かつ、ノートオン状態にある発音チャネルがあるか否か
を判断する。この判断結果が「YES」の場合はステッ
プS1511に進み、ステップS1510において見つ
け出された発音チャネルの番号kを発音割当レジスタA
CHに書き込む。次いでステップS1512に進み、発
音割当レジスタACHによって指定されるチャネルステ
ータスレジスタST(ACH)に発音中ではあるが離鍵
されていることを表す情報「2」を書き込む。次いでス
テップS1513に進み、楽音合成回路9における発音
割当レジスタACHによって指定される発音チャネルに
対し、ノートオフ情報NOFFを送る。これにより、発
音チャネルACHにおいて消音処理が行われる。そし
て、ステップS1513が終了すると、ノートイベント
処理ルーチンを終了してMIDI処理ルーチンに戻る。
一方、ステップS1510の判断結果が「NO」となっ
た場合はステップS1511〜S1513を実行しない
でMIDI処理ルーチンに戻る。そして、上述した押鍵
が行われた場合と同様、ステップS506あるいはさら
にステップS507を介してメインルーチンに戻る。 【0037】外来MIDIイベントに対する処理 MIDIインターフェイス6を介して外部装置からのM
IDIイベントを受信すると、メインルーチンのステッ
プS403において外部MIDI処理ルーチンに進んだ
時、そのステップS601の判断結果が「YES」とな
り、ステップS602に進む。そして、受信したMID
Iイベントのチャネル番号をチャネル番号レジスタMC
Hへ書き込む。次にステップS603に進み、チャネル
番号MCHに対応した受信チャネルフラグRC(MC
H)の内容が“1”であるか否か、すなわち、受信した
MIDIイベントがこの自動演奏装置において処理すべ
きものであるか否かを判断する。この判断結果が「YE
S」である場合はステップS604に進み、受信したM
IDIイベントをMIDIバッファに書き込み、メイン
ルーチンに戻る。一方、ステップS603の判断結果が
「NO」である場合はステップS604を実行しないで
メインルーチンに戻る。MIDIバッファに書き込まれ
た受信MIDIイベントは、上述した鍵盤演奏あるいは
操作パネルの操作によって生じたMIDIイベントと同
様、MIDI処理ルーチンが実行された時にMIDIバ
ッファから読み出され、楽音合成回路9の制御に使用さ
れる。 【0038】メトロノーム音の発生 演奏者がメトロノーム音指示スイッチ23をオン状態と
すると、そのオンイベントが操作パネルインタフェイス
8を介して検出される。この結果、パネル処理ルーチン
のステップS803において、メトロノームフラグMM
にメトロノーム音の発生を指示する情報“1”が書き込
まれると共にLEDランプ24が点灯される。この結
果、以後、割込処理ルーチンを実行した場合にステップ
S2102の判断結果が「YES」となってステップS
2103に進み、図22にフローを示すメトロノーム処
理ルーチンを実行することとなる。まず、ステップS2
201に進み、メトロノーム用カウントレジスタMCN
Tの内容を「1」だけデクリメントする。次にステップ
S2202に進み、メトロノーム音用カウントレジスタ
MCNTの内容が「0」となったか否か、すなわち、メ
トロノーム音の発生タイミングとなったか否かを判断す
る。この判断結果が「Yes」の場合はステップS22
03に進み、「No」の場合は割込処理ルーチンに戻
る。次にステップS2203に進むと、メトロノーム音
用のプログラムチェンジイベントをチャネル番号「1
6」に対応したMIDIイベントとして楽音合成回路9
へ供給する。次にステップS2204に進み、チャネル
番号「16」に対応したノートオン情報NONを楽音合
成回路9へ送る。この結果、楽音合成回路9において、
MIDIチャネル「16」に対応した楽音としてメトロ
ノーム音が発音される。次いでステップS2205に進
み、パラメータ設定レジスタVALUE(2、16)の
内容、すなわち、MIDIチャネル「16」の音色設定
を元に戻すべく当初設定されたいた音色番号をプログラ
ムチェンジイベントとして楽音合成回路9に送る。この
ようにしたことにより、楽音合成回路9におけるMID
Iチャネル「16」をメトロノーム専用にせず、他のチ
ャネルと同様に、他の音色、楽音の発音チャネルとして
用いることができる。次にステップS2206に進み、
メトロノーム用カウントレジスタMCNTにテンポレジ
スタTEMPOの内容を書き込む。そして、割込処理ル
ーチンに戻る。以上の動作が一定時間が経過する毎に繰
り返され、メトロノーム用カウントレジスタが「1」ず
つデクリメントされる。そして、メトロノーム処理ルー
チンがテンポレジスタTEMPOの内容に相当する回数
だけ実行され、MCNT=「0」となる毎にステップS
2203〜S2206が実行され、メトロノーム音が発
音される。 【0039】(2)再生モード 再生チャネルの設定 RAM5内の演奏データメモリエリアからMIDIイベ
ントを再生して自動演奏を行うに際し、演奏者は再生チ
ャネルを設定する。レコードスイッチ41が押下されて
いない状態においてレコードスイッチフラグRECSW
の内容は“0”となっている。この状態においては、L
EDランプLQi(i=1〜16)のうち、再生チャネ
ルとして設定されているMIDIチャネルの番号に対応
したLEDランプが点灯する。演奏者は、LEDランプ
LQi(i=1〜16)の点灯状態により、どのMID
Iチャネルが再生チャネルとなっているかを確認する。 【0040】再生チャネルとなっていないMIDIチャ
ネルを新たに再生チャネルとして設定する場合、演奏者
は、シーケンサチャネルスイッチBMi(i=1〜1
6)のうち再生チャネルとしたいチャネルの番号に対応
したスイッチを押下する。このシーケンサチャネルスイ
ッチのオンイベントが操作パネルインターフェイス8を
介して検出されると、CPU3は、パネル処理ルーチン
のステップS803において図16にフローを示すシー
ケンサチャネルスイッチ処理ルーチンを実行する。ま
ず、ステップS1601において、押下されたシーケン
サチャネルスイッチBMiの番号iを変数レジスタNに
書き込む。次いでステップS1602に進み、レコード
スイッチフラグRECSWの内容が“0”であるか否か
を判断する。演奏者がレコードスイッチ41を押下して
いない場合はRECSW=“0”となっており(理由は
後述)、ステップS1602の判断結果が「YES」と
なってステップS1603に進む。そして、MIDIチ
ャネルNに対応した再生フラグRSW(N)の内容が
“1”であるか否かを判断する。MIDIチャネルNが
再生チャネルとして設定されていない場合にはRSW
(N)=“0”となっており、ステップS1603の判
断結果が「NO」となってステップS1604に進む。
そして、レコードフラグRSW(N)に“1”を書き込
む。次いでステップS1605に進み、LEDランプL
Qi(i=1〜16)のうちMIDIチャネルNに対応
したLEDランプLQNを点灯状態とし、パネル処理ル
ーチンを介してメインルーチンに戻る。 【0041】再生チャネルとして設定されたMIDIチ
ャネルを再生チャネルから除外したい場合、演奏者はそ
のMIDIチャネルに対応したシーケンサチャネルスイ
ッチBMiを押下する。ここで、MIDIチャネルiが
再生チャネルとして設定されている場合には、PSW
(i)=“1”となっている。この場合、シーケンサチ
ャネルスイッチBMiの押下によってシーケンサチャネ
ルスイッチ処理ルーチンが実行されると、ステップS1
603の判断結果が「NO」となり、ステップS160
7に進む。そして、再生フラグPSW(N)(=PSW
(i))に“0”を書き込む。次いでステップS160
8に進み、LEDランプLQi(i=1〜16)のうち
MIDIチャネルN(=i)に対応したLEDランプL
Nを点灯状態とし、パネル処理ルーチンを介してメイ
ンルーチンに戻る。 【0042】自動演奏 以上のようにして再生チャネルの設定が終了すると、演
奏者はスタートスイッチ42を押下する。このスタート
スイッチ42のオンイベントが操作パネルインターフェ
イス8を介して検出されると、CPU3は、パネル処理
ルーチンのステップS803において図17にフローを
示すスタートスイッチ処理ルーチンを実行する。まず、
ステップS1701において、レコードスイッチフラグ
RECSWの内容が“1”であるか否かを判断する。演
奏者がレコードスイッチ41を押下していない場合には
ステップS1701の判断結果は「NO」となってステ
ップS1702に進む。そして、スタートフラグSTA
RTの内容が“0”であるか否かを判断する。この判断
結果が「YES」である場合、ステップS1703に進
み、スタートフラグSTARTに“1”を書き込む。次
にステップS1704に進み、再生のための初期設定処
理を行う。この初期設定処理により、RAM5内の演奏
デーテメモリエリアの再生チャネルに対応した各トラッ
クから最初のデュレーションデータが読み出され、各再
生チャネルiに対応したデュレーションレジスタDT
(i)に書き込まれる。また、この初期設定処理におい
ては、再生に必要なその他の各種ポインタの設定が行わ
れる。そして、パネル処理ルーチンを介しメインルーチ
ンに戻る。なお、スタートスイッチ42が押下された時
点においてSTART=“1”となっていた場合、すな
わち、自動演奏中にスタートスイッチ42が押下された
場合には、スタートスイッチ処理ルーチンのステップS
1702に進んだ時、その判断結果が「NO」となり、
ステップS1703およびS1704を実行することな
く、パネル処理ルーチンを介してメインルーチンに戻
る。 【0043】スタートスイッチ42の押下によってST
ART=“1”とされると、以後、割込処理ルーチンが
実行された場合にステップS2104の判断結果が「Y
ES」となり、ステップS2105において図23にフ
ローを示す再生処理ルーチンが実行される。まず、ステ
ップS2301に進み、変数レジスタiに「1」を初期
設定する。次にステップS2302に進み、MIDIチ
ャネルiに対応した再生フラグPSW(i)の内容が
“1”であるか否か、すなわち、MIDIチャネルiが
再生チャネルであるか否かを判断する。この判断結果が
「YES」である場合はステップS2303に進み、
「NO」である場合はステップS2309に進む。 【0044】次にステップS2303に進むと、MID
Iチャネルiに対応したデュレーションレジスタDT
(i)をデクリメントする。次にステップS2304に
進み、デュレーションレジスタDT(i)の内容が
「0」以下になったか否かを判断する。この判断結果が
「NO」である場合にはステップS2309に進む。こ
れに対し、ステップS2304の判断結果が「YES」
となった場合にはステップS2305に進み、MIDI
チャネルiに対応したイベントをRAM54内の該当す
る演奏データメモリエリアから読み出す。また、この次
に読み出すべきMIDIチャネルiのイベントのデュレ
ーションデータを演奏データメモリエリアから読み出
し、デュレーションレジスタDT(i)に書き込む。 【0045】次にステップS2306に進み、ダイヤル
優先フラグPRSWの内容が“1”であるか否かを判断
する。ここで、ダイヤル優先フラグPRSWは、ダイヤ
ル優先スイッチ52がオン状態とされた場合に“1”が
書き込まれ、オフ状態とされた場合に“0”が書き込ま
れる。また、PRSW=“1”である場合にはLED5
3および54のうちLED53のみが点灯状態とされ、
PRSW=“0”である場合にはLED54のみが点灯
状態とされる。これらのダイヤル優先スイッチ52の操
作に応答した処理は、パネル処理ルーチンのステップS
803において実行される。 【0046】ダイヤル優先フラグPRSWの内容が
“1”であると、ステップS2306の判断結果は「Y
ES」となり、ステップS2307に進む。そして、演
奏データメモリエリアから読み出したMIDIイベント
がノートオンイベントあるいはノートオフイベントであ
るか否かを判断する。この判断結果が「YES」の場合
はステップS2308に進み、演奏データメモリエリア
から読み出したMIDIイベントを内部MIDIイベン
トとしてMIDIバッファに書き込む。そして、ステッ
プS2309に進む。一方、ステップS2307の判断
結果が「NO」である場合、すなわち、演奏データメモ
リエリアから読み出したMIDIイベントがノートイベ
ントでない場合はステップS2308を実行することな
くステップS2309に進む。このように、ダイヤル優
先フラグPRSWの内容が“1”である場合には演奏デ
ータメモリエリアから再生されるMIDIイベントのう
ちノートイベントのみがMIDIバッファに書き込ま
れ、チャネルプレッシャイベント、プログラムチェンジ
イベント等のチャネルイベントはMIDIバッファに書
き込まれない。他方、再生モードにおいて、ダイヤル操
作が行われると、上述した楽器モードの説明において詳
述したように、インクリメント処理ルーチンあるいはデ
クリメント処理ルーチンが実行され、チャネルイベント
が生成されてMIDIバッファに書き込まれる。また、
鍵盤演奏によりノートイベントが生じた場合、あるいは
外部装置からMIDIイベントが供給された場合には、
それらのMIDIイベントがMIDIバッファに書き込
まれる。 【0047】MIDIバッファに書き込まれたMIDI
イベントは、その後、MIDI処理ルーチンが実行され
ることにより、イベントレジスタEVに取り込まれる
(ステップS502)。そして、イベントレジスタEV
に取り込まれたMIDIイベントがノートイベントであ
る場合にはノートイベント処理ルーチンが実行され、イ
ベントレジスタEVに取り込まれたノートイベントに対
応したパラメータが楽音合成回路9へと送られる(ステ
ップS1509あるいはS1513)。また、イベント
レジスタEVに取り込まれたMIDIイベントがチャネ
ルイベントである場合にはチャネルイベント処理ルーチ
ンが実行され、イベントレジスタEVに取り込まれたチ
ャネルイベントに対応したパラメータが楽音合成回路9
へと送られる(ステップS1104)。このようにPR
SW=“1”の場合には演奏データメモリエリアからの
再生イベントのうちノートイベントのみが楽音合成回路
9の制御に使用される。そして、楽音合成回路9のボリ
ューム制御、音色制御等はダイヤル操作等によって行わ
れ、演奏データメモリエリアから再生されるチャネルイ
ベントは無視される。 【0048】一方、ダイヤル優先フラグPRSWの内容
が“0”であると、ステップS2306の判断結果が
「NO」となってステップS2308に進み、演奏デー
タメモリエリアから読み出したMIDIイベントをMI
DIバッファに書き込む。そして、ステップS2309
に進む。MIDIバッファに書き込まれたイベントは、
その後、MIDI処理ルーチンが実行されることによ
り、イベントレジスタEVに取り込まれる(ステップS
502)。そして、ノートイベント処理ルーチンあるい
はチャネルイベント処理ルーチンが実行されることによ
り、イベントレジスタEVに取り込まれたイベントに対
応したパラメータが楽音合成回路9へと送られる。この
ように、PRSW=“0”の場合には演奏データメモリ
エリアからの再生イベントされるすべてのMIDIイベ
ントが楽音合成回路9の制御に使用される。 【0049】次にステップS2309に進むと、変数レ
ジスタiをインクリメントする。次にステップS231
0に進み、i>16となったか否かを判断する。この判
断結果が「NO」の場合はステップS2032に戻り、
新たなMIDIチャネルiに関し上述と同様な処理を行
う。そして、ステップS2310の判断結果が「YE
S」となると、ステップS2311に進む。そして、す
べての再生チャネルについて、MIDIイベントの再生
が終了したか否かを判断する。この判断結果が「NO」
の場合は再生処理ルーチンを終了し、割込処理ルーチン
に戻る。そして、割込処理ルーチンが終了した後、割込
処理によって中断していた処理を再開する。以後、一定
時間が経過する毎に割込処理ルーチンが実行され、上述
と同様な処理が繰り返される。 【0050】RAM5内の演奏データメモリエリアから
再生チャネルのMIDIイベントがすべて読み出される
と、割込処理ルーチンを介して再生処理ルーチンが実行
される際、ステップS2311の判断結果が「YES」
となる。この結果、ステップS2312に進み、スター
トフラグSTARTに“0”を書き込み、割込処理ルー
チンに戻る。以後、割込処理ルーチンが実行されたとし
ても、START=“0”であるため再生処理ルーチン
は実行されない。このようにして自動演奏が終了する。 【0051】自動演奏中あるいは自動演奏終了後に演奏
者がストップスイッチ43を押下すると、そのオンイベ
ントが検出される。この結果、CPU3は、パネル処理
ルーチンを介し、図20に示すストップスイッチ処理ル
ーチンを実行する。まず、ステップS2001に進み、
スタートフラグSTARTの内容が“1”であるか否か
を判断する。この判断結果が「Yes」の場合、すなわ
ち、現在、自動演奏を行っている場合にはステップS2
002に進み、スタートフラグSTARTに“0”を書
き込む。次にステップS2003に進み、楽音合成回路
9における現在発音状態にある発音チャネル、すなわ
ち、各々に対応したチャネルステータスレジスタST
(i)の内容が「1」となっているすべての発音チャネ
ルiに対し、ノートオフ情報NOFFを供給する。この
結果、楽音合成回路9において発音中であったすべての
楽音の消音処理が行われる。そして、ステップS200
4に進む。一方、自動演奏終了後にストップスイッチ4
3が押下された場合にはステップS2001の判断結果
が「No」となり、ステップS2002およびS200
3を実行することなくステップS2004に進む。次に
ステップS2004に進むと、レコードフラグRECの
内容が“1”であるか否かを判断する。REC=“0”
の場合は、この判断結果が「No」となり、ステップS
2004〜S2007が実行されることなくストップス
イッチ処理ルーチンが終了する。 【0052】(3)再生録音モード 再生録音モードにおいては、RAM5内の演奏データメ
モリエリア内のMIDIイベントの再生処理と、鍵盤演
奏あるいは操作パネルの操作によって生じるMIDIイ
ベントまたは外来のMIDIイベントのRAM5への録
音処理とが並行して実行される。この再生録音モードに
よる処理を実行する前に、演奏者は再生チャネルおよび
録音チャネルの設定を行う。再生チャネルの設定につい
ては既に説明したので、以下では録音チャネルの設定の
ための処理のみについて説明する。 【0053】録音チャネルの設定 録音を行うに際し、演奏者は、まず、レコードスイッチ
41を押下する。この結果、レコードスイッチ41のオ
ンイベントが操作パネルインターフェイス8を介して検
出され、CPU3は、パネル処理ルーチンのステップS
803において、図18にフローを示すレコードスイッ
チ処理ルーチンを実行する。まず、ステップS1801
において、レコードスイッチ41のオンイベントが検出
されたか否かを判断する。この場合、ステップS180
1の判断結果が「Yes」となってステップS1802
に進み、レコードスイッチフラグRECSWに“1”を
書き込む。次いでステップS1803に進み、その時点
における各チャネルに対応したレコードフラグRSW
(i)(i=1〜16)の内容を判定し、RSW(i)
=“1”を満足するすべてのチャネル番号i、すなわ
ち、その時点において既に録音チャネルとして設定され
ているMIDIチャネルの番号を検出する。そして、L
EDランプLQi(i=1〜16)のうち検出したチャ
ネル番号iに対応したLEDランプを点灯する。そし
て、パネル処理ルーチンを介してメインルーチンに戻
る。演奏者はLEDランプLQi(i=1〜16)の点
灯状態により、どのMIDIチャネルが録音チャネルと
なっているかを確認する。 【0054】演奏者がレコードスイッチ41から指を離
すと、レコードスイッチ41のオフイベントが操作パネ
ルインターフェイス8を介して検出され、CPU3は、
パネル処理ルーチンのステップS803において、再び
レコードスイッチ処理ルーチンを実行する。この場合、
レコードスイッチ41のオフイベントが検出されたた
め、ステップS1801、ステップS1804を経てス
テップS1805に進む。そして、レコードスイッチフ
ラグRECSWに“0”を書き込む。次いでステップS
1805に進み、その時点における各チャネルに対応し
た再生フラグPSW(i)(i=1〜16)の内容を判
定し、PSW(i)=“1”を満足するすべてのチャネ
ル番号i、すなわち、その時点において再生チャネルと
して設定されているMIDIチャネルの番号を検出す
る。そして、LEDランプLQi(i=1〜16)のう
ち検出したチャネル番号iに対応したLEDランプを点
灯する。そして、パネル処理ルーチンを介してメインル
ーチンに戻る。このような処理が行われる結果、レコー
ドスイッチフラグRECSWの内容は、レコードスイッ
チ41が押下されている期間のみ“1”、レコードスイ
ッチ41が押下されていない場合は“0”となる。ま
た、レコードスイッチ41が押下されている場合にはL
EDランプLQi(i=1〜16)によって録音チャネ
ルが表示され、押下されていない場合には再生チャネル
が表示されることとなる。 【0055】録音チャネルとして設定されたMIDIチ
ャネルを録音チャネルから除外したい場合、演奏者はレ
コードスイッチ41を押下した状態で、そのMIDIチ
ャネルに対応したシーケンサチャネルスイッチBMiを
押下する。この場合、シーケンサチャネルスイッチ処理
ルーチンが実行されると、ステップS1608まで進
み、その判断結果が「YES」となる。そして、レコー
ドフラグRSW(N)(=RSW(i))に“0”を書
き込み(ステップS1611)、LEDランプLQN
消灯し(ステップS1611)、パネル処理ルーチンを
介してメインルーチンに戻る。以上のような処理が行わ
れることにより、演奏者が望むMIDIチャネルが録音
チャネルとして設定される。 【0056】自動演奏および録音 以上のような処理により再生チャネルおよび録音チャネ
ルの設定が終了すると、演奏者はレコードスイッチ41
とスタートスイッチ42とを共に押下する。この結果、
レコードスイッチ41が押下されたことにより、REC
SW=“1”とされる。また、スタートスイッチ42の
オンイベントが操作パネルインターフェイス8を介して
検出されることにより、CPU3は、図17にフローを
示すスタートスイッチ処理ルーチンを実行する。この場
合、RECSW=“1”であるため、ステップS170
1の判断結果が「Yes」となり、ステップS1705
に進む。そして、レコードフラグRECの内容が“0”
であるか否かを判断する。この判断結果が「YES」で
ある場合、ステップS1706に進み、スタートフラグ
STARTおよびレコードフラグRECに“1”を書き
込む。次にステップS1707に進み、録音のための各
種ポインタ等の初期設定処理を行う。そして、パネル処
理ルーチンを介しメインルーチンに戻る。なお、レコー
ドスイッチ41が押下された時点においてREC=
“1”となっていた場合、すなわち、録音動作中にスタ
ートスイッチ42とレコードスイッチ41が共に押下さ
れた場合には、スタートスイッチ処理ルーチンのステッ
プS1705に進んだ時、その判断結果が「NO」とな
り、ステップS1706およびS1707を実行するこ
となく、パネル処理ルーチンを介してメインルーチンに
戻る。 【0057】START=“1”となったことにより、
上述した再生モードの場合と同様、以後、割込処理ルー
チンが実行された場合にそのステップS2105におい
て再生処理ルーチンが実行される。そして、再生処理ル
ーチンの実行により、RAM5の演奏データメモリエリ
アから再生チャネルに対応したMIDIイベントが読み
出されると(ステップS2305)、そのイベントはM
IDIバッファに順次書き込まれる。また、鍵盤操作あ
るいは操作パネルの操作によってMIDIイベントが発
生した場合、または外部装置からMIDIイベントが取
り込まれた場合には、それらのMIDIイベントもMI
DIバッファに順次書き込まれる。このようにしてMI
DIバッファにMIDIイベントが書き込まれる結果、
MIDI処理ルーチンが実行された場合にステップS5
01の判断結果が「Yes」となる。そして、MIDI
バッファからMIDIイベントが取り出されてイベント
レジスタEVに書き込まれると共にそのMIDIイベン
トのMIDIチャネルの番号がチャネル番号レジスタM
CHに書き込まれ(ステップS502)。そして、イベ
ントレジスタEVに取り込まれたMIDIイベントに基
づいてノートイベント処理ルーチン(ステップS50
4)あるいはチャネルイベント処理ルーチン(ステップ
S505)が実行され、イベントレジスタEVに取り込
まれたチャネルイベントに対応したパラメータが楽音合
成回路9へと送られる。このように、RAM5から読み
出されたMIDIイベントと共に、鍵盤操作あるいは操
作パネルの操作によって生じたMIDIイベント、また
は外部装置から供給されたMIDIイベントがMIDI
バッファから取り出され、各々に対応した楽音合成回路
の制御が実行される。 【0058】次にステップS506に進むと、REC=
“1”であるため、その判断結果が「Yes」となり、
ステップS507において図19にフローを示す記録処
理ルーチンが実行される。まず、ステップS1901に
進み、MIDIチャネルMCHに対応したレコードフラ
グRSW(MCH)の内容が“1”か否か、すなわち、
MIDI処理ルーチンにおいてMIDIバッファから取
り出してイベントレジスタEVに書き込んだMIDIイ
ベントが録音すべきMIDIイベントであるか否かを判
断する。この判断結果が「Yes」である場合はステッ
プS1902に進む。そして、RAM5内のMIDIチ
ャネルMCHに対応したバッファトラックに対し、それ
以前にMIDIイベントを書き込んでから現在に至るま
での経過時間をデュレーション情報として書き込み、イ
ベントレジスタEV内のMIDIイベントをイベント情
報として書き込む。そして、MIDI処理ルーチンを介
しメインルーチンに戻る。以後、MIDI処理ルーチン
が起動される毎に同様の処理が行われる。 【0059】RAM5内の演奏データメモリエリアから
再生チャネルのMIDIイベントがすべて読み出される
と、上述した再生モードの場合と同様、再生処理ルーチ
ンのステップS2312が実行され、START=
“0”となり、自動演奏が終了する。また、演奏者がス
トップスイッチ43を押下すると、ストップスイッチ処
理ルーチンが実行され、そのステップS2004まで進
む。そして、REC=“1”である場合は、ステップS
2004の判断結果が「Yes」となってステップS2
004に進み、レコードフラグRECに“0”を書き込
む。次にステップS2006に進み、すべての録音チャ
ネルに対応したバッファトラックに対し、ノートオフ情
報と終了コードを書き込む。次にステップS2007に
進み、各録音チャネルに対応したバッファトラックの内
容を各々MIDIチャネル番号の対応した演奏データメ
モリエリアに書き込む。そして、ストップスイッチ処理
ルーチンを終了し、メインルーチンに戻る。以後、MI
DIバッファに何等かのMIDIイベントが書き込まれ
てMIDI処理ルーチンが実行されたとしても、REC
=“0”であるため記録処理ルーチンは実行されない。
このようにして録音が終了する。自動演奏が終了する前
にストップスイッチ43が押下された場合はストップス
イッチ処理ルーチンのステップS2002およびS20
03が実行された後、ステップS2004以降の処理が
実行され、録音が終了する。 【0060】以上のような処理が行われる結果、RAM
5内の演奏データメモリエリアの内容が下記のように更
新される。 a.録音チャネルとして設定されているが再生チャネル
として設定されていないMIDIチャネルに対応した演
奏データメモリエリア この演奏データエリアに録音前にあったMIDIイベン
トは録音によって消去される。そして、録音中、鍵盤1
あるいは操作パネル7の操作によるMIDIイベントが
生じた場合、または外部装置からMIDIイベントを受
信した場合には、これらのMIDIイベントのうちチャ
ネル番号の対応するものが当該演奏データメモリエリア
に書き込まれる。 b.録音チャネルおよび再生チャネルとして設定された
MIDIチャネルに対応した演奏データエリア この演奏データエリアの内容は、録音前に記憶されてい
たMIDIイベントに対し、再生録音モードによる動作
中に新たに発生したMIDIイベントのうちMIDIチ
ャネルの番号の対応したものをマージした内容に更新さ
れる。さらに詳述すると、次のようになる。 b1.録音チャネルと一致するキーボードチャネルが設
定されている場合 録音中、鍵盤演奏が行われると、当該キーボードチャネ
ルに対応した演奏データメモリエリアの内容は、録音前
に記憶されていた内容に対し、鍵盤演奏によって生じた
ノートイベントをマージしたものとなる。また、ダイヤ
ル優先フラグPRSWが“1”の状態で録音が行われ、
その際にダイヤル51が操作された場合は、ダイヤル操
作に応じて発生されたチャネルイベントが当該キーボー
ドチャネルに対応した演奏データメモリエリアに書き込
まれる。この場合、録音前に当該キーボードチャネルに
対応した演奏データメモリエリアにあったチャネルイベ
ントは消去される。一方、ダイヤル優先フラグPRSW
が“0”の状態で録音が行われ、その際にダイヤル51
が操作された場合は、ダイヤル操作に応じて発生された
チャネルイベントが当該キーボードチャネルに対応した
演奏データメモリエリアの内容にマージされる。 b2.録音チャネルと一致するMIDIイベントを外部
装置から受信した場合 この受信したMIDIイベントは、該当するMIDIチ
ャネルに対応した演奏データメモリエリアの内容にマー
ジされる。 【0061】 【発明の効果】以上説明したように、この発明によれ
ば、複数の通信チャネルを介して独立に楽音情報を出力
する楽音情報出力手段と、前記複数のチャネルを介して
入力される楽音情報に基づいて楽音を形成する楽音形成
手段と、前記楽音情報出力手段によって出力される楽音
情報のうち特定の通信チャネルを介して出力される楽音
情報を記憶する記憶手段と、一定時間が経過する毎にメ
トロノーム音形成のための楽音情報とメトロノーム音の
発音指示を前記特定の通信チャネルを介して出力し、そ
の後、前記記憶手段に記憶された楽音情報を前記特定の
通信チャネルを介して出力する前記メトロノーム音発生
手段とを設けたので、自由に使用可能な通信チャネルの
数を減少させることなく、正常にメトロノーム音を発生
することができるという効果が得られる。
DETAILED DESCRIPTION OF THE INVENTION [0001] This invention relates to the production of metronome sounds.
The present invention relates to an electronic musical instrument having a function. [0002] 2. Description of the Related Art A method of information communication of musical sound information between electronic musical instruments
There is a MIDI communication system. This MIDI communication system
Has 16 communication channels,
MIDI events are sent and received independently via each channel.
Will be Some electronic musical instruments use MIDI communication.
In response to MIDI events given from outside,
With the function of forming, or M inside the electronic musical instrument
Send and receive IDI events and control music formation
There is something that I did. According to this kind of electronic musical instrument, each MI
It is possible to control tone formation independently for each DI channel.
For example, tones of different timbres are formed for each channel
For example, it is possible to perform a performance with high flexibility. On the other hand,
Equipped with a function to record performance data generated by playing
Used for practicing electronic musical instruments or playing
As an electronic musical instrument, to inform the performer of the correct tempo
There is an electronic musical instrument having a metronome sound function.
Conventionally, an electronic device with such a metronome sound generating function
The instrument should not have a dedicated sound source for the metronome sound.
Source that is not used to form other tones in the sound source
Use the sound channel to produce a metronome sound.
Had been done. [0003] The above-described MID
Electronic musical instruments using I-events to control musical tone formation
To play a metronome sound on a specific MIDI channel
By using it as a channel for control,
A sound generation function can be realized. But this
Metronome sound on a specific MIDI channel
Dedicated for control, the player is free to use
MIDI channels have been reduced to "15"
There was such a problem. In addition, an electronic device with an automatic performance function
For instruments, it is the same as the MIDI channel for the metronome sound.
MIDI event with the same channel number from another device
Then, parameters different from those for the metronome sound
Parameters are used to form metronome sounds
There was a problem that there is. The present invention is based on the situation described above.
And the use of MIDI channels.
Regardless of the situation, the metronome sound can be generated normally
And a metronome sound
Use all MIDI channels freely.
It is an object of the present invention to provide an electronic musical instrument capable of: [0004] SUMMARY OF THE INVENTION The present invention provides a method for transmitting a plurality of communications.
channelCorresponding toMusical soundConfigurationinformationAnd pronunciation instruction informationOutput
Music information output means,communicationchannelTo
RespondedMusical soundConfigurationTone formation that forms a tone based on information
Means,Every time a certain time elapses, The plurality of communication channels
Corresponding to a specific communication channelMetronome
Musical sound for mu sound formationConfigurationInformation andTheEmit metronome sound
Sound instructionsInformation to the tone generatorOutput,The outputAfter,
In order to form the metronome sound, the musical tone forming means is provided.
The set tone setting information before the metronome sound
Return to stateA metronome sound generating means.
It is a sign. [0005] According to the above arrangement, the musical sound forming means is provided with a
Only when a lonome sound is generated,
Tone information for lonome sound formation is supplied, and
A sound is produced. After that, the metronome sound formation
Tone information that was sent before the tone information was sent
Is again sent to the tone generating means,
The sound information is set before the metronome sound is generated
Return to [0006] An embodiment of the present invention will be described below with reference to the drawings.
I will tell. <A> Configuration of Example FIG. 1 shows the structure of an embodiment in which the present invention is applied to an automatic performance apparatus.
It is a block diagram showing composition. This automatic performance device is
Has ability. Also, as shown below,
In a performance device, operation events of performance operators, memory
All performance data read from the stage is MIDI events.
Is converted to an event and handled. (A) Generate a MIDI event in response to the operation of the performance operator
Event generation function (B) The performance data is read from the storage means, and the MIDI data is read out.
Regeneration function to output as vent (C) MIDI event generated by operation of performance operator
MIDI events read from the
Automatic performance function to perform more (D) MIDI event generated by operation of performance operator
MIDI events read from the
Recording function to write to the storage means as performance data (F) A machine that generates a metronome sound at a specified tempo
Noh Further, this automatic performance device has the above functions (a), (b) and
Regarding (d) and (d), it is possible to specify
You. (F) MIDI event generated by operation of performance operator
Channel number to assign the channel
Designation) (G) Channel of MIDI event reproduced from storage means
Of the playback channel number (hereinafter referred to as playback channel) (H) MIDI data recorded as performance data in storage means
Designation of vent channel number (hereinafter, recording channel) The components of the apparatus described below are
Used as a means to implement a function. Figure 1
1 is a keyboard as a performance operator. Also, 2
This is a key interface that is not provided for each key on the keyboard 1.
Key press / key release operation is detected and output as a key event
You. Reference numeral 3 denotes a CPU (Central Processing Unit) which has the above functions
Control of the entire apparatus including the control according to (a) to (d) is performed.
U. 4 is a ROM (Read Only Memory),
In addition to the various control programs executed by the CPU 3,
Necessary control information is stored. 5 is a RAM.
Storage of control data used for control performed by the CPU 3
Used as an area. Also, a specific note in the RAM 5
The storage area is used to store performance data for 16 tracks.
Performance data memory area and editing of performance data
Buffer track area for 16 tracks used when
Used as 6 is a MIDI interface
MIDI events played by this automatic performance device
To the external device, and supplied from the external device.
Receive the MIDI event. 7 is a tone designation switch
Various controls and indicators, including performance controls such as switches
Operation panel. 8 is the operation panel interface
Chair, and is made for each operator on the operation panel 7.
When an operation is detected and output as a panel event,
Each display on the operation panel 7 is
Perform display control. Reference numeral 9 denotes a tone synthesis for synthesizing a tone signal.
The synthesis circuit 10 is a tone output by the tone synthesis circuit 9.
This is a sound system that produces signals as musical sounds. B
Reference numeral 1 denotes a MIDI event bus.
I interface 6, tone synthesis circuit 9, and sound
Interconnecting the system 10 and between each of these elements
A communication path for sending and receiving MIDI events
Used. B2 is a data bus, and a key interface
Case 2, CPU3, ROM4, RAM5, operation panel
Interface 8 and tone synthesis circuit 9 interconnected
Data exchange between these elements.
Used as a communication path for communication. For example, key interface
Key press information output from the chair 2 is transmitted via the data bus B2.
CPU 3 reads the MIDI data.
After being converted into data, the MIDI event bus B1
It is output to the tone synthesis circuit 9. FIG. 2 is a plan view showing the operation panel 7.
In FIG. 2, reference numeral 21 denotes a currently set tone number.
It is an indicator for showing. 22 is a tone setting section,
Numeric keypad for inputting tone numbers and input sound
Increment key to increase / decrease color number, decrement
It is made of soft keys. 23 instructs metronome sound generation
Is a metronome switch for metronome
When the switch 23 is turned on, the LE above the switch 23 is turned on.
The D lamp 24 lights up. 31 is the currently set text.
It is a display for displaying the stamp. 32 and 33 are
This is an input to instruct the currently set tempo to increase or decrease.
A decrement key and a decrement key. 41 is
Record switch
Pressed to set the recording channel. 42 is automatic
Start switch 43 for instructing the start of performance
This is a stop switch for instructing to stop automatic performance.
You. BM1~ BM16Is the keyboard channel switch
Is used to set the keyboard channel described above.
You. Keyboard channel setting status is LED lamp LM
1~ LM16Is displayed. BQ1~ BM16Is each sea
This is a channel switch that controls the playback channel and
Used for setting the recording channel. Play channel
The setting status of the recording channel is LED lamp LQ1~ L
Q16Is displayed. 51 is a dial, a volume
To increase or decrease the set values of parameters such as
Used as a sapling. BC1~ BCFiveIs the mode
It is a switch, which is increased or decreased by operating the dial 51
Used as a control to specify parameters. Diamond
Which parameter is increased or decreased by
LED lamp CS1~ CSFiveDisplayed by 61 is
This is a display for displaying a tone color, volume, and the like. 62 is a
Increment key 63 is a decrement key.
As with the earphone 51, parameters such as volume and tone
Used as a control to increase or decrease the set value. 52
Is a dial priority switch. During playback, dial priority
When the switch 52 is on, the data is read from the RAM 5.
Parameters such as volume and tone depending on the performance data output
Data control is invalidated, and the parameter
Meter control is executed with priority. Also, dial priority
When the switch 52 is off, the data is read from the RAM 5.
Parameter control based on performance data output and dial
Both parameter control by the operation of 51 is performed. Next, using the storage area in the RAM 5,
The control registers and flags that are formed are described below.
You. Start flag START: This start flag STA
RT is set when the start switch 42 is pressed.
“1” is set. When START = "1", R
Performance data is read from the performance data memory area of AM5
And an automatic performance is performed. Record flag REC: This record flag REC is
Record switch 41 and start switch 42
When pressed, “1” is set, and as a result,
Recording of a MIDI event is performed. MIDI buffer: This MIDI buffer contains keyboard performances.
Playing, receiving MIDI signals from external devices,
Operation, performance data from the performance data memory area of the RAM 5
MIDI events caused by factors such as data reading
Stored. Channel status register ST (k) (k = 1 to 2)
2): This channel status register ST (k) (k
= 1 to 22) include 22 utterances in the tone synthesis circuit 9.
Information indicating the sounding state of the sound channel is stored. Sand
If the sound channel k is an empty channel, ST
(K) = “0”, and the sound channel k is in the note-on state
In the case of the state, ST (k) = “1”, and the sound channel k
Is in the note-off state, ST (k) is set to "2".
You. Metronome flag MM: This metronome flag MM
Is set to “1”, a metronome sound is emitted
You. Tempo register TEMPO: This tempo register TEM
Metronome every time the time corresponding to the content of PO elapses
The sound is pronounced. Metronome Count Register MCNT: This Metro
The gnome count register MCNT has a metronome sound.
Used as a timing means to control the sounding timing of the sound
Interrupt processing is executed at regular time intervals.
The contents are decremented each time. Keyboard channel register KBSW (k) (k = 1 to
LAST) and channel number register LAST: keyboard
Load channel register KBSW (k) (k = 1 to LAS
T) is a variable-length register for the keyboard channel.
The number is stored. The key is stored in the channel number register LAST.
Key stored in the board channel register KBSW
The number of board channels is stored. Mode register MODE: This mode register MODE
Contains information corresponding to the type of parameter to be set.
I will be absorbed. Tone number register TC / SEL: This tone number register
TC / SEL is input by the tone color setting unit 22.
The tone number is written. Event register EV: In this event register EV
Is the MIDI event retrieved from the MIDI buffer
Is written. MIDI channel register MCH: This MIDI channel
The register MCH contains the data extracted from the MIDI buffer.
Channel number of the MIDI event
You. Parameter setting register VALUE (i, j) (i = 1
-5, j = 1-16): Each parameter setting register VA
LUE (i, j) contains each tone generation channel of the tone synthesis circuit 9.
Each channel event that applies to channel j is stored. You
That is, VALUE (1, j) is suitable for the sound channel j.
The channel pressure event used is stored and VA
LUE (2, j) contains the program change event
Remember, VALUE (3, j) is for sound image position control
PAN event is stored and stored in VALUE (4, j).
The event for reverberation effect control is stored, and the VALU
E (5, j) contains an event for vibrato control.
Remembered. Velocity offset register VOFST (k) (k =
0 to 127): Velocity offset register VOFS
T (k) is applied at the time of forming a tone of tone number k.
Is stored. Relative value register REL: This relative value register REL
Indicates that the parameter is increased or decreased by operating the dial 51.
In this case, data representing the amount of change in the case of the change is stored. Note code register NC: This note code register
The NC that has been retrieved from the event register EV
Note code included in the event
You. Note velocity register NV: This note velocity
The register NV contains the information taken from the event register EV.
Note velocity included in the selected note-on event
Written. Sounding channel assignment register ACH: This sounding channel assignment
The register ACH includes a tone synthesis circuit 9 for generating a sound.
Is written. Note code register STNC (k) for each sounding channel
(K = 1 to 22): Note code register for each sounding channel
STNC (k) has a sound generated by a sound channel k.
The note code of the musical tone to be played is stored. MIDI channel register AMC (k) for each sounding channel
(K = 1 to 22): MIDI channel level for each sounding channel
Produced by the prosthesis channel k
Note-on event channel number
You. Record switch flag RECSW: This record switch
Switch RECSW is pressed when the record switch 41 is pressed.
During this period, “1” is held. Recording flag RSW (k) (k = 1 to 16): These recordings
The sound flag RSW (k) (k = 1 to 16) corresponds to each MIDI
Stores a value indicating whether channel k is a recording channel
This flag is used when RSW (k) = "1".
MIDI channel k is a recording channel. Reproduction flag PSW (k) (k = 1 to 16):
The raw flag PSW (k) (k = 1 to 16) corresponds to each MIDI
Stores a value indicating whether channel k is a playback channel
Flag when PSW (k) = "1".
MIDI channel k is a reproduction channel. Reception flag RC (k) (k = 1 to 16): reception of these
The flag RC (k) (k = 1 to 16) indicates that each MIDI channel
Receiving MIDI event from external device for channel k
Is a flag for storing a value indicating whether or not to perform. RC
If (k) = "1", the MI of the MIDI channel k
The reception of the DI event is permitted. Duration register DT (k) (k = 1 to 16):
These duration registers DT (k) (k = 1 to
16) shows each track in the performance data memory area during reproduction.
Writes duration data read from
I will. <B> Operation of the embodiment <Overview of Operation> FIG.
And the relationship between these routines.
is there. 4 to 23 are executed by the CPU 3.
Is a flowchart showing the specific processing contents of each routine.
FIG. 4 is a flowchart of a main routine, and FIGS.
FIG. 20 shows each of the routines executed along with the execution of the main routine.
The flow chart of the routine, FIGS.
Flowchart of each routine executed as interrupt processing
It is. Note that the specific processing contents of each of these routines
This will be described in detail in the next section <Detailed operation description>.
In the following, with reference to FIG.
Will be described. (1) Instrument mode (START = "0" R
EC = "0") In this musical instrument mode, the keyboard 1 and the operation panel 7
MID event generated by the operation of a performance operator such as an operator
And MIDI events received from external devices
The performance based on this is performed. Key generated by operation of keyboard 1
Event is converted to MIDI event by key processing routine
MIDI events that are converted and correspond to keyboard channels
And stored in the MIDI buffer. Also, operation
Panel events generated by the controls on panel 7 are
Increment processing routine, tone setting routine, etc.
MIDI by routine corresponding to each panel event
M converted to event and corresponding to keyboard channel
It is stored in the MIDI buffer as an IDI event.
MIDI events received from external devices are
Stored in MIDI buffer by MIDI processing routine
It is. MIDI events stored in the MIDI buffer
Are sequentially retrieved by a MIDI processing routine, and M
Note events in IDI events are note events
Channel event to the event processing routine
Is passed to the port processing routine. And note event
Parameters based on note events
Data is generated, and the channel event processing routine
Timbre, volume based on channel events
Parameters for setting etc. are generated, and each tone synthesis
It is supplied to the circuit 9. (2) Reproduction mode (START = "1",
REC = "0") Playback routine as interrupt processing every time a certain time elapses
Is executed, and the performance data memory area in the RAM 5 is
Performance data from the track corresponding to the playback channel
MIDI events that are read out sequentially and correspond to the playback channel
Is written to the MIDI buffer as an event. Also the key
Board performance, operation of operation panel 7, MIDI from external device
If a signal is received, the M
IDI events are also written to the MIDI buffer. So
Then, as in the case of the musical instrument mode, the MIDI buffer
MIDI events are sequentially read from the
9 is performed. (3) Recording / playback mode (START =
“1”, REC = “1”) Recording processing as the MIDI processing routine is executed
The routine is executed. This allows the MIDI buffer
Channel number of MIDI events stored in
The one that matches the sound channel is selected and the buffer in RAM 5 is selected.
Buffer track area corresponding to each recording channel
Written to the track. In the buffer track area
By pressing the stop switch, the performance data memo is displayed.
Each of the rear areas is transferred to a corresponding track. <Detailed Description of Operation> FIG.
When a power switch (not shown) is turned on, the CPU 3
Executes a main routine whose flow is shown in FIG. Ma
The process proceeds to step S401, and the control data in the RAM 5
Write the initial value to the storage area of. Next, step S40
2. The MIDI processing routine whose flow is shown in FIG.
Start. Then, in step S501, M
Determines whether there is a MIDI event in the IDI buffer.
Refuse. If the result of this determination is "YES", then step S
Execute the processing after 502 and return to the main routine,
In the case of "NO", the process is not performed and the main routine is executed.
Return. Next, when returning to the main routine, the process proceeds to step S403.
Proceeding to the external MIDI processing routine shown in FIG.
Start. Then, in step S601, M
MI from an external device via the IDI interface 6
It is determined whether a DI event has been received. This decision
If the result is "YES", the processing after step S602 is performed.
Execute and return to the main routine. If “NO”, nothing
Return to the main routine without performing any processing. Next, the main rule
When returning to the chin, the process proceeds to step S404, and the flow shown in FIG.
The key processing routine shown starts. And that step
In S701, the output state of the key interface 2 is changed.
Scan. Next, proceeding to step S702, the key of the keyboard 1 is
A key event indicating that an operation has been performed is sent to the key interface.
It is determined whether or not it has been detected through (2). This judgment result
Is “YES”, execute step S703 to execute
When the determination is "NO", the process returns to step S703.
Without returning to the main routine. Next, the main rule
When the process returns to step S405, the process proceeds to step S405, and
Execute the process. Although this sounding channel processing is not described in detail,
Of the tone generation channels 9 of the tone synthesis circuit 9,
The number k of the sound channel whose level has dropped below the predetermined value is detected.
The channel tone corresponding to the detected sound channel.
For the status register ST (k), an empty channel
Information "0" to be tasted is written. Next step
Proceeding to S406, the panel processing routine shown in the flowchart of FIG.
Start. Then, in step S801,
To scan the output state of the operation panel interface 8.
You. Next, the process proceeds to step S802, where the operation panel 7
A panel event indicating that a controller has been operated
Whether or not it has been detected through the panel interface 8
to decide. If this determination is "YES", step
Proceed to step S803 to respond to the detected panel event.
Execute the routine and return to the main routine,
In this case, the process returns to the main routine without going through step S803.
You. Then, thereafter, the CPU 3 performs steps S402 to S4.
Repeat step 06. [0015] The CPU 3 executes the process every time a predetermined period elapses.
The processing being executed at the time point is interrupted, and the processing shown in FIG.
Execute the load processing routine. First, step S2101
For interrupt control so that other interrupt requests are not accepted.
The information corresponding to the interrupt rejection is written in the flag. next
Proceeding to step S2102, the metronome flag MM is
It is determined whether or not the content is “1”. The result of this judgment
In the case of “YES”, the flow proceeds to step S2103 and FIG.
2 executes a metronome processing routine showing a flow,
Proceed to step S2104. On the other hand, step S2102
If the judgment result is "NO", step S2103 is executed.
Proceed to step S2104 without executing. Next, step S
Proceeding to 2104, it is determined whether or not an automatic performance is being performed. Soshi
If the automatic performance is being performed, the process proceeds to step S2105 and
23, the reproduction process routine shown in FIG.
Proceed to step S2106. On the other hand, if it is not during automatic performance,
Proceed to step S2106 without executing step S2105.
No. Next, when the flow advances to step S2106, the interrupt control flag is set.
Write the information corresponding to the interrupt permission to the lag. And C
PU3 has completed and interrupted this interrupt processing routine.
Resume processing. (1) Instrument mode The initialization process (step S401 of the main routine) is executed.
If the start flag START and the record flag are
"0" is written to both the REC and the automatic performance device.
Is the musical instrument mode. Below, this automatic performance
The operation of the apparatus in the musical instrument mode will be described. [0017] Keyboard channel setting In this automatic performance device, the key I detected from the keyboard 1
Panel generated by operation of vent and operation panel 7
Events are MIDI events corresponding to keyboard channels.
Converted to vents and handled. Performer plays the keyboard
, The keyboard channel designation switch BM1
~ BM16Switch corresponding to the desired channel number in
Key to set the keyboard channel. Keybo
When an operation is performed on the load channel designation switch,
A panel event corresponding to the operation is sent to the operation panel interface.
Detected by the face 8. As a result,
Panel processing routine via routine S406
When the process proceeds to step S802, the judgment result is “YE
S ”, and proceeds to step S803. And step
In step S803, the keyboard switch shown in FIG.
Execute the channel switch processing routine. First,
Proceed to step S901, and press the keyboard key that is currently pressed.
In addition to the channel designation switch, another keyboard channel designation switch
It is determined whether or not the switch is pressed. 1 player
Keyboard channel designation switches BMkPress only
If yes, the determination result of step S901 is “NO”
And the process proceeds to step S902, where the keyboard channel
LED lamp LM for designation1~ LM16Turn off all
You. Next, proceeding to step S903, the channel number register
Write "1" to LAST. Then keyboard channel
Specify register KBSW (i) (i = 1 to NMAX)
The register specified by the channel number register LAST
Star KBSW (LAST) (in this case, KBSW
In response to (1)), the pressed keyboard channel designation switch
Itch BMkWrite the number k of In this way,
Channel number k is set as the keyboard channel number.
It is. Next, the process proceeds to step S906, where the set key is set.
LED lamp BM corresponding to board channel number kk
Lights up. Then, through the panel processing routine,
Return to in-routine. In this automatic performance apparatus, a plurality of
Set MIDI channel as keyboard channel
be able to. In this case, the performer is the first keyboard
After pressing the channel designation switch,
Before releasing your finger from the second keyboard channel designation switch.
Press the switch. In this case, the keyboard
By executing the switch processing routine,
Corresponding to the first keyboard channel designation switch
The number of the keyboard channel is registered in the KBSW register.
Written to (1). Then, Keyboard Channels
The second keyboard when entering the switch routine
Since the channel designation switch is pressed,
Step S901 results in "YES" and the
Proceeds to 904 and increments the channel number register LAST.
Ment. Then, the process proceeds to step S905, where the second
Register KBSW (L
AST) (in this case, KBSW (2)). So
And LED lamp BMkCash register for (k = 1-16)
Compatible with the contents of star KBSW (1) and KBSW (2)
Then, each LED lamp is turned on (step S80).
6) Return to the main routine via the panel processing routine
You. Channels that should be set as keyboard channels
If there is a keyboard number, the performer
A new keyboard before releasing your finger from the channel designation switch
By pressing the channel designation switch,
Enter the desired channel number sequentially. As a result, the same
Is repeated, and the keyboard channel designation register
For all KBSW (k) (k = 1 to LAST)
Keyboard channel numbers are written
The LED lamp corresponding to the cell number lights up. Tone setting by tone setting section 22 The player can use the numeric keypad or the
Operate the increment / decrement keys to enter the tone number.
Pressing the panel processing routine through the main routine
Is activated, in step S803, FIG.
Executes the tone color setting switch processing routine whose flow is shown as 0
Is done. First, the process proceeds to step S1001, and the mode is displayed.
LED lamp CS for1~ CSFiveAt that time
LED lamp corresponding to the contents of the mode register MODE
Turn off the light. Next, the process proceeds to step S1002, where the information
Write "0" to the mode register MODE. Next,
Proceeding to step S1003, the
Writes the selected tone number to the tone number register TC / SEL
No. Next, the process proceeds to step S1004, and the sound is displayed on the display 21.
The contents of the color number register TC / SEL are displayed. next
Proceed to step S1005 to set
All keyboard channels, ie the keyboard
Channel register KBSW (k) (k = 1 to LAST)
For each MIDI channel set to
A program including the tone number set in the register TC / SEL
Create a ram change event (tone setting event)
To the MIDI buffer as internal MIDI events
Get in. As a result, step S402 of the main routine
When the processing proceeds to the MIDI processing routine via
Step S501 results in "YES", and the
Proceed to 502. Then, from the MIDI buffer, the internal MI
Extract DI event and write to event register EV
And the channel of the internal MIDI event
Write the file number to the MIDI channel register MCH.
Next, the process proceeds to step S503, where the event register EV
Whether the event stored in the event is a note event
You. In step S502, the event register EV
The written event is a program change event
In this case, the determination result of step S503 is “NO”.
To step S505. And the flow is shown in FIG.
Executes the indicated channel event processing routine. First, the flow advances to step S1101, and the event
Mode corresponding to the event set in the register EV
Write the number to the mode register MODE. Event
Program change to specify the tone number in the register EV
If an event has been set, “0” is
It is written to the register MODE. Next, step S110
Go to 2 and set the number in the mode register MODE
Are within a defined predetermined range (1 to 1 in the present embodiment).
It is determined whether the number is 5). In this case, the number
Since "0" is out of this defined range,
The result of the determination in S1102 is "NO", and the
Proceed to 104. Then, the CPU 3 sets the event register
MIDI event set in EV, that is,
The program created by executing the tone setting routine.
Lamb change event on MIDI event bus B1
The tone signal is sent to the tone synthesis circuit 9 via the CPU. Here, the tone synthesis circuit 9
Indicates the tone and effects for each MIDI channel.
Has a storage area for storing control parameters
You. Each program change event received from CPU3
Are allocated according to their MIDI channels.
And stored in the corresponding storage areas. And j
Step S1104 of the channel event processing routine ends.
When it is completed, it returns to the MIDI processing routine and
Proceeding to S506, the content of the record flag REC is "1"
It is determined whether or not. In the case of the musical instrument mode, step S50
The determination result in 6 is "NO" and the process returns to the main routine.
You. A plurality of keyboard channels are set
In this case, by executing the tone setting routine,
Program change corresponding to each keyboard channel
The vent is written to the MIDI buffer (tone setting processing
Step S1005 of the management routine). MIDI buffer
Each program change event written to
Then, every time the MIDI processing routine is executed, an event
It is taken into the register EV (step S502), and the channel
Music event processing routine is executed,
The data is sent to the synthesis circuit 9 (step S1104). this
So that for all keyboard channels, the sound
The tone color input by the color setting unit 22 is set. Various parameter setting by dial 51 In this automatic performance device, the dial 51 is operated.
By doing so, the buttons set for each MIDI channel
Control parameters such as volume, tone number, and effects
The value can be increased or decreased. The following describes this operation.
Will be explained. A. Volume setting When performing volume setting by operating the dial 51,
The performer first sets the volume switch BCTwoON state
To As a result, the CPU 3 executes the processing via the main routine.
When the process proceeds to the panel processing routine,
3. Volume switch showing the flow in FIG.
Execute the processing routine. First, in step S1201
LED lamp CS for mode display1~ CSFiveOut of
Corresponds to the contents of the mode register MODE at that time
The turned off LED lamp is turned off. Next, step S12
02, information corresponding to the volume setting mode
Write "1" to the mode register MODE. Next,
Proceeding to step S1203, "0" is set in the relative value register REL.
Write. Next, the process proceeds to step S1204, where the channel
It is determined whether or not the content of the number register LAST is "1".
You. If the result of this determination is "YES",
If the number of board channels is 1, step S12
Go to 05. And the parameter settings at that time
Register VALUE (i, j) (i = 1 to 5, j = 1 to
16), the mode number i corresponds to “1”, and
Channel number j is the first keyboard channel KBS
Register VALUE (1, KBSW corresponding to W (1)
The contents of (1)) are displayed on the display 61. And pa
The process returns to the main routine via the tunnel processing routine. one
On the other hand, if the determination result of step S1204 is “NO”,
In other words, if multiple keyboard channels are set,
If not, the process proceeds to step S1206, where the relative value register RE
The content “0” of L is displayed on the display 61 and the panel processing
Return to the main routine via the routine. Next, the player should set the desired volume.
The dial 51 is operated. Here, the performer dials
When turning 51 in the direction to increase the volume,
In FIG. 13 in step S803 of the
The shown increment processing routine is executed. First,
Proceeding to step S1301, the contents of the mode register MODE
It is determined whether the content is “0”. In this case, the mode register
Data corresponding to the volume setting mode
Since “1” is set, the determination in step S1301 is made.
The determination result is “NO” and the process proceeds to step S1302.
The content of the relative value register REL is incremented. Next
In step S1303, the initial value is stored in the variable register i.
Set “1”. Next, the process proceeds to step S1304,
Parameter setting register VALUE at the time of
Mode of (i, j) (i = 1 to 5, j = 1 to 16)
The number i is stored in the mode register MODE (in this case, MODE
= “1”) and the channel number j is the keyboard
Channel KBSW (i) (in this case, KBSW
Register VALUE (1, KBSW) corresponding to (1))
(1)) is incremented. Where the increment
Register value (1, KBSW)
(1)) The volume value set in
If the upper limit is reached, the volume value
No action is taken. Next, proceeding to step S1305,
Parameter setting register VALUE (1, KBSW
Using the volume value set in (1)), the first
The finger is specified by the keyboard channel register KBSW (1).
The channel pressure event of the defined MIDI channel
(Volume control event), and the internal MIDI
Write to the MIDI buffer as an event. Next,
Proceeding to step S1306, the variable register i is incremented.
To Next, the process proceeds to step S1307, where the variable
The content of data i (in this case, i = “2”) is the channel number register
It is determined whether or not it is larger than the contents of the LAST. this
If the determination is "YES", step S1308 is performed.
Proceed to. On the other hand, the determination result of step S1307 is "N
O ", that is, the content of the variable register i is
Keyboard channel stored in the number register LAST
If not, the process returns to step S1304, and the
Parameters for the second keyboard channel
Data setting register VALUE (1, KBSW (2))
The stored volume value is incremented (step S
1304), based on the new volume value,
Channel pressure for keyboard channels
Create an event and keep it as an internal MIDI event
(Step S1305). Then, the variable register i is
Increment (step S1306), i> LAST
It is determined whether or not this is the case (step S1307). in this way
Until the determination result of step S1307 becomes "YES"
Steps S1304 to S1307 are repeated to set
Volume values for all keyboard channels
Channels updated and based on new volume values
Create pressure event and write to MIDI buffer
Put in. The result of the determination in step S1307 is "YES".
When the process proceeds to step S1308, the channel number register
If the number of keyboard channels stored in LAST is one,
It is determined whether or not. The result of this determination is "YES"
In this case, the process proceeds to step S1309, and the mode register MO
The mode specified by the DE (in this case, volume
Setting mode) and the first keyboard key
Parameter setting registry corresponding to channel KBSW (1)
Display the contents of VALUE (MODE, KBSW (1))
Display on the display 61, and through the panel processing routine,
Return to routine. On the other hand, the result of determination in step S1310 is
If the result is "NO", that is,
If the number is “2” or more, the value in the relative value register REL is used.
The contents are displayed on the display unit 61, and through the panel processing routine.
To return to the main routine. In this case, it is displayed on the display 61.
The contents of the relative value register REL are
Relative volume values for all keyboard channels
The change (in this case, the increase) is shown. On the other hand, the dial 51 is in the direction of decreasing the volume.
Is rotated through the panel processing routine.
A reset processing routine is executed. In addition, this decre
The flowchart of the processing routine
Omitted. When the decrement processing routine is executed
Indicates that the relative value register REL is decremented (step
(Equivalent to step S1304), all set keyboard keys
Decrement volume value for channel (step
S1304), a channel pressure event
(Corresponding to step S1305). And on
As in the case of the increment processing routine described above, the volume
Absolute value of the volume value (corresponding to step S1309) or
Volume values for all keyboard channels
The decrease REL is displayed (step S1310 phase).
This). As described above, the dial 51 is rotated.
This creates a channel pressure event,
Write to the MIDI buffer as a partial MIDI event
It is. As a result, step S402 of the main routine is
Step to the MIDI processing routine via
The result of the determination in S501 is “YES”, and the step S5
Go to 02. Then, from the MIDI buffer, the internal MID
I event (in this case, increment processing routine
Or the channel created in the decrementing routine.
Event pressure)
MIDI event written and taken out to the Star EV
Channel number of MIDI channel register MCH
Write. Next, the process proceeds to step S503, where the event
Whether the event stored in the register EV is a note event
Judge. In this case, write to the event register EV
A channel pressure event is
Therefore, the determination result of step S503 is “N
O ", and the process proceeds to step S505. And channel
Execute the event processing routine. First, the process proceeds to step S1101, and the event
Mode corresponding to the event set in the register EV
Number, that is, the mode corresponding to the volume setting mode.
Write the mode number "1" to the mode register MODE. Next
In step S1102, the mode register MODE
Is set to the defined predetermined range "1"
It is determined whether or not the number is within the range of “5”. This place
If the mode number “1” is within this defined range,
The result of the determination in step S1102 is "YES".
Then, the process proceeds to step S1103. And externally supplied
Source other than dial operation, such as MIDI events
Of the MIDI events
Channel events of the type specified by the star MODE
(MODE is "1", channel pressure
Event) to take out and set a new channel event
To register VALUE (MODE, MCH)
Write. Next, the process proceeds to step S1104, where the event
The channel pressure event held in the register EV
To the tone synthesis circuit 9 via the MIDI event bus B1
send. As a result, the supplied channel pressure event
The corresponding pronunciation channel in the tone synthesis circuit 9 according to the
Is set. And channel event processing
When step S1104 of the routine ends, the MIDI
Returning to the processing routine, the process proceeds to step S206,
It is determined whether or not the content of the code flag REC is "1".
If the determination is "NO", the process returns to the main routine. Multiple keyboard channels are set
If the dial is turned, all keys
For board channel KBSW (i) (i = 1 to LAST)
About register VALUE (MODE, KBSW
The contents of (i) are incremented (increment processing)
Step S1304 in the routine) or decrement
And register VALUE (MODE, KBSW
(I) The channel event (MODE =
If "1", the channel pressure event is MID
Written to the I buffer (increment processing routine
Step S1304). Write to MIDI buffer
Channel press for each keyboard channel
The Sha event is then executed by the MIDI processing routine.
Each time the event register EV is loaded (step
(Step S502), the channel event processing routine is executed.
Is transmitted to the tone synthesis circuit 9 (step
S1104). In this way, the tone synthesis circuit 9
Pronunciation channels for all keyboard channels
The volume setting according to the dial operation.
It is. B. Other parameter settings by dial operation
Set The player uses the switch BCTwo~ BCFourDesired parameter
Dial switch after pressing the switch corresponding to the
The volume of the tone number, effects, etc.
Outside parameters can be set. in this case
Performs the same processing as the volume setting described above.
It is. That is, when the player sets the switch BCTwoWhen is pressed
In the panel processing routine S803,
Corresponding data "2" is written to mode register MODE.
Switch BCThreePress to set sound image position
Is written to the mode register MODE.
Switch BCFourIf you press
Data “4” corresponding to the depth setting is written, and
Switch BCFivePress to set the vibrato depth
The corresponding data "5" is written. Then diamond
When the keyboard operation is performed, all the keyboard channels KB
SW (i) (i = 1 to LAST)
Register VAL of the type specified by the star MODE
The contents of UE (MODE, KBSW (i)) are incremented
(Step S130 of the increment processing routine)
4) Or decremented, register VALUE
(MODE, KBSW (i))
Vent is written to the MIDI buffer (increment
Step S1304 of the event processing routine). And M
When the IDI processing routine is executed, the MIDI
The channel event written to the buffer
Route 9 (step S1104), the tone synthesis circuit
Parameter setting according to dial operation for 9
It is. C. Input tone number by tone setting section 22
Dial operation is performed after In this case, MODE = “0” and the increment processing is performed.
Processing routine is started, and the determination result of step S1301 is entered.
Becomes “Yes”, and proceeds to step S1321. Soshi
Velocity offset corresponding to tone number TC / SEL
Bit register VOST (TC / SEL) is 12
It is determined whether it is smaller than 7. The result of this determination is "Ye
s ", the velocity offset register VOFST
(TC · SEL) is incremented (step S13)
22), and proceed to step S1323. Step S
If the determination result of 1321 is “No”, step S13
The process proceeds to step S1323 without executing step S22. Next
In step S1323, the velocity offset
Display contents of register VOST (TC / SEL)
1 and returns to the main routine. Thus, MOD
If E = “0”, set by dial operation
The velocity offset value corresponding to the middle tone number is updated.
Be renewed. [0031] Tempo setting If the performer uses the increment key 32 for tempo setting
Presses the decrement key 33, these keys
A panel event indicating that an operation has been performed
It is detected via the interface 8. As a result, the CPU
3 in step S802 of the panel processing routine
Proceed to a tempo setting routine whose flow is shown in FIG.
Operation of the increment key 32 or the decrement key 33
Tempo data in tempo register TEMPO according to work
(Step S1401), and the tempo register T
Send the contents of EMPO to the operation panel interface 8
Is displayed on the display 31 (step S1402). So
To exit the tempo setting routine and return to the panel processing routine.
Return to the main routine via the After that, a new tempo
Based on the tempo data written to the register TEMPO
Control of the metronome sound generation timing
You. Operation in Keyboard Performance When the player presses any key on the keyboard 1, the key is pressed.
Key press event corresponding to the key
Is detected through. As a result, the main routine
When the process proceeds to the key processing routine through step S404,
When the determination result of step S702 is “YES”,
The process proceeds to step S703. The key corresponding to the key press event
Event on all currently set events.
Keyboard channels KBSW (i) (i = 1 to LA)
ST), and make each one an internal MIDI event.
To write to the MIDI buffer. As a result, the MIDI processing
When the processing routine is started, the judgment in step S501 is made.
The disconnection result becomes “YES” and the process proceeds to step S502.
And the internal MIDI event in the MIDI buffer.
Take out one of them and write it to the event register EV
Along with the channel number of the MIDI event
Write to MIDI channel register MCH. Then
Proceeding to step S503, the data is stored in the event register EV.
It is determined whether the received event is a note event. this
In operation, an event is a note event,
Proceeding to step S504, the note event processing routine
Execute FIG. 15 shows a flowchart of the note event processing routine.
Indicates low. First, the process proceeds to step S1501, and the event
In the note-on event stored in the register EV
Write note code to note code register NC
No. Next, the process proceeds to step S1502, where the note-on event is performed.
Note velocity at the note velocity
Write to the star NV. Next, the process proceeds to step S1503,
Note on is stored in event register EV
Determine whether the event is an event. In this case, step S15
03 is "YES", and the result of step S150 is "YES".
4 and the channel status register ST (k) (k
= 1 to 28), there is a register whose content is "0".
Or not, that is, all tone generation channels of the tone synthesis circuit 9
Whether there is an empty channel that is not sounding
to decide. If this determination is "YES", step
Proceed to S1505 and select one of the available channels.
Write the channel number to the tone generation assignment register ACH. Next
In step S1506, the sound generation assignment register AC
Channel status register ST corresponding to the contents of H
Indicates to (ACH) that the channel is being pressed.
Write information "1". Next, proceed to step S1507.
The sound generation channel specified by the sound generation assignment register ACH
The note code register for each channel STNC (ACH)
Write the contents of the port code register NC. Next,
Proceeding to step S1508, the sound generation assignment channel register AC
MIDI channel for each sound channel specified by H
MIDI channel register in number register AMC (ACH)
Write the contents of the star MCH. Next, step S1509
The CPU 3 proceeds to the above-described AC in the tone synthesis circuit 9.
MIDI channel level for the sound channel corresponding to H
MIDI channel number stored in the
Note code stored in the
Note velocity stored in velocity register NV
And a note-on signal instructing sounding. this
As a result, the tone generation channel ACH of the tone synthesis circuit 9 makes C
Note code and note velocity given from PU3
A musical tone corresponding to the tee is formed and pronounced. Where
As described above, the sound synthesis circuit 9 is provided for each MIDI channel.
To store control parameters such as tone and volume
Of these control parameters from CPU3.
Using the one corresponding to the specified MIDI channel number.
Controls sound formation. Then, step S1509 ends.
And ends the note event processing routine and
Return to the logical routine. On the other hand, if no free channels were found,
When the result of the determination in step S1504 is "NO"
Without executing steps S1505 to S1509
Returning to the DI processing routine, in step S506
To determine whether the content of the record flag REC is "1"
Return to the main routine if the determination result is "NO".
You. Next, the player has pressed down on the keyboard 1.
When a key is released, a key release event corresponding to the key is released to the key interface.
Detected through the face 2. As a result,
From step S404 of the routine to the key processing routine
At this time, the determination result of step S702 is “YES”.
Therefore, as in the case of the above-mentioned key pressing event, step S7
03, step S402 of the May routine, MIDI processing
Perform steps S501, S502, and S503 of the routine.
And proceeds to step S504, where the note event processing
Execute the routine. Then, the event register EV
The note code of the received note-off event
(Step S1501).
No note velocity at the note-off event
Write to the velocity register NV (step S15
02). In the case of a note-off event, step S
The result of the determination in 1503 is “NO” and the step S15
Proceeding to step 10, note code register ST for each sounding channel
NC (k) (k = 1 to 28) and channel status
The contents of the registers ST (k) (k = 1 to 28) are sequentially stored.
Next, it is determined that STNC (k) = NC, and
(K) = whether there is a number k that satisfies (1), that is,
The tone corresponding to the note code NC is being generated.
Whether there is a note-on sound channel
Judge. If the result of this determination is “YES”,
Proceed to step S1511 and find in step S1510.
The generated sound channel number k is set in the sound generation register A
Write to CH. Next, the process proceeds to step S1512,
Channel status specified by the sound allocation register ACH
Key is released while the status register ST (ACH) is sounding
Information "2" indicating that the operation has been performed is written. Then
Proceeding to step S1513, sound generation in the tone synthesis circuit 9 is performed.
To the sound channel specified by the assignment register ACH
On the other hand, note-off information NOFF is sent. This allows
A mute process is performed on the sound channel ACH. Soshi
When step S1513 ends, a note event
The processing routine ends and returns to the MIDI processing routine.
On the other hand, the determination result of step S1510 is “NO”.
Do not execute steps S1511 to S1513
Returns to the MIDI processing routine. And the key press mentioned above
Step S506 or the same as in the case where
Then, the process returns to the main routine via step S507. Processing for an external MIDI event M from an external device via the MIDI interface 6
When an IDI event is received, the main routine is stopped.
Proceeded to the external MIDI processing routine in step S403.
At this time, the result of the determination in step S601 is “YES”.
Then, the process proceeds to step S602. And the received MID
Set the channel number of the I event to the channel number register MC
Write to H. Next, proceeding to step S603, the channel
Reception channel flag RC (MC
H) is “1” or not, that is,
MIDI events must be processed by this automatic performance device.
It is determined whether it is a kimono or not. The result of this determination is “YE
S ”, the process proceeds to step S604, and the received M
Write IDI event to MIDI buffer
Return to routine. On the other hand, the determination result of step S603 is
If “NO”, do not execute step S604
Return to the main routine. Written to the MIDI buffer
The received MIDI event is the above-mentioned keyboard performance or
Same as the MIDI event generated by operating the operation panel
When the MIDI processing routine is executed, the MIDI
Read from the buffer and used to control the tone synthesis circuit 9.
It is. Generation of metronome sound The player turns on the metronome sound indication switch 23.
Then, the on event is sent to the operation panel interface
8 is detected. As a result, the panel processing routine
In step S803, the metronome flag MM
Information "1" indicating the metronome sound is written to
And the LED lamp 24 is turned on. This result
As a result, when the interrupt processing routine is executed
The result of determination in S2102 is "YES" and
Proceeding to 2103, the metronome processing shown in FIG.
The logical routine is executed. First, step S2
Go to 201, count register MCN for metronome
The contents of T are decremented by "1". Next step
Proceeding to S2202, the metronome sound count register
Whether the content of MCNT is “0”,
Judge whether or not it is time to generate a tronome sound
You. If the result of this determination is “Yes”, step S22
03, returning to the interrupt processing routine if "No"
You. Next, proceeding to step S2203, the metronome sound
Program change event for channel number "1"
Music synthesis circuit 9 as a MIDI event corresponding to "6"
Supply to Next, the process proceeds to step S2204, where the channel
Note-on information NON corresponding to the number "16"
It is sent to the circuit 9. As a result, in the tone synthesis circuit 9,
Metro as a tone corresponding to MIDI channel "16"
A gnome sound is emitted. Next, proceed to step S2205.
Of the parameter setting register VALUE (2, 16)
Contents, ie, tone setting of MIDI channel "16"
The tone number that was originally set to restore
It is sent to the tone synthesis circuit 9 as a music change event. this
As a result, the MID in the tone synthesis circuit 9
Do not dedicate I-channel “16” to the metronome,
Like other channels, as a sound channel for other tones and musical sounds
Can be used. Next, the process proceeds to step S2206,
Tempo register in metronome count register MCNT
Write the contents of the start TEMPO. And the interrupt processing
Return to the routine. The above operation is repeated every certain time.
The metronome count register is not "1"
Is decremented by one. And the metronome processing loop
Number of times the chin corresponds to the contents of the tempo register TEMPO
Is executed, and every time MCNT = "0", step S is executed.
Steps 2203 to S2206 are executed, and a metronome sound is emitted.
Be sounded. (2) Reproduction mode Setting the playback channel MIDI events from the performance data memory area in the RAM 5
When performing the automatic performance by playing the
Set the channel. Record switch 41 is pressed
Record switch flag RECSW
Is "0". In this state, L
Of the ED lamps LQi (i = 1 to 16), the reproduction channel
MIDI channel number set as default
The turned on LED lamp lights up. The player is an LED lamp
Depending on the lighting state of LQi (i = 1 to 16),
Check whether the I channel is a reproduction channel. MIDI channel that is not a playback channel
When setting a new channel as a playback channel,
Is a sequencer channel switch BMi (i = 1 to 1)
6) Corresponds to the number of the channel you want to be the playback channel
Press the switch. This sequencer channel switch
Switch on event triggers the operation panel interface 8.
If detected via the CPU 3, the CPU 3 executes a panel processing routine.
In step S803 of FIG.
Execute the channel switch processing routine. Ma
First, in step S1601, the sequence pressed
The number i of the subchannel switch BMi is stored in the variable register N.
Write. Next, the process proceeds to step S1602, where the record
Whether the content of the switch flag RECSW is “0”
Judge. The player presses the record switch 41
If not, RECSW = "0" (the reason is
(Described later), and the determination result of step S1602 is “YES”.
It proceeds to step S1603. And MIDI Chi
The content of the reproduction flag RSW (N) corresponding to channel N is
It is determined whether it is "1". MIDI channel N
RSW if not set as playback channel
(N) = “0”, and the determination in step S1603
The disconnection result is “NO” and the process proceeds to step S1604.
Then, "1" is written to the record flag RSW (N).
No. Next, the process proceeds to step S1605, where the LED lamp L
Corresponds to MIDI channel N in Qi (i = 1 to 16)
LED lamp LQNTo the lighting state, and
Return to the main routine via the routine. MIDI channel set as a playback channel
If you want to remove a channel from the playback channel, the performer
Sequencer channel switch corresponding to MIDI channel
Switch BMi is pressed. Here, MIDI channel i is
If set as a playback channel, PSW
(I) = “1”. In this case,
The sequence switch is pressed by pressing the channel switch BMi.
When the switch processing routine is executed, step S1 is executed.
The determination result of Step 603 is “NO”, and Step S160
Go to 7. Then, the reproduction flag PSW (N) (= PSW)
Write (0) to (i)). Next, step S160
8 and among the LED lamps LQi (i = 1 to 16)
LED lamp L corresponding to MIDI channel N (= i)
QNIs turned on, and the main
Return to routine. Automatic performance After setting the playback channel as described above,
The player presses the start switch 42. This start
The ON event of the switch 42 is
When detected through the chair 8, the CPU 3
FIG. 17 shows a flow chart of the routine in step S803.
The shown start switch processing routine is executed. First,
In step S1701, the record switch flag
It is determined whether or not the content of the RECSW is “1”. Performance
If the player has not pressed the record switch 41
The determination result of step S1701 is “NO” and the
Proceed to step S1702. Then, the start flag STA
It is determined whether or not the content of RT is “0”. This judgment
If the result is "YES", the flow advances to step S1703.
Then, "1" is written to the start flag START. Next
In step S1704, the initial setting process for reproduction is performed.
Work. By this initial setting processing, the performance in the RAM 5
Each track corresponding to the playback channel in the data memory area
The first duration data is read from the
Duration register DT corresponding to raw channel i
(I) is written. Also, in this initial setting process,
Setting of various other pointers necessary for playback
It is. Then, through the panel processing routine, the main routine
Return to When the start switch 42 is pressed
If START = “1” at the point,
That is, the start switch 42 is pressed during the automatic performance.
In this case, step S of the start switch processing routine
When proceeding to 1702, the judgment result is "NO",
Do not execute steps S1703 and S1704.
Return to the main routine via the panel processing routine
You. When the start switch 42 is pressed, ST
When ART is set to "1", the interrupt processing routine is thereafter executed.
If executed, the determination result of step S2104 becomes “Y
ES ”in FIG. 23 in step S2105.
A reproduction processing routine indicating low is executed. First,
Proceed to step S2301 to initialize “1” to the variable register i.
Set. Next, the process proceeds to step S2302, where the MIDI
The content of the reproduction flag PSW (i) corresponding to channel i is
Whether or not the MIDI channel i is “1”;
It is determined whether the channel is a reproduction channel. The result of this judgment
If “YES”, the process proceeds to step S2303,
If “NO”, the process proceeds to step S2309. Next, in step S2303, the MID
Duration register DT corresponding to I channel i
(I) is decremented. Next, in step S2304
Advances, and the content of the duration register DT (i) becomes
It is determined whether or not it has become “0” or less. The result of this judgment
If “NO”, the process proceeds to step S2309. This
On the other hand, the determination result of step S2304 is "YES".
If it becomes, the process proceeds to step S2305,
The event corresponding to channel i is stored in RAM 54
From the performance data memory area. Also,
Of event of MIDI channel i to be read to
Data from the performance data memory area
Then, the data is written to the duration register DT (i). Next, the flow advances to step S2306 to dial
Judge whether the content of the priority flag PRSW is "1"
I do. Here, the dial priority flag PRSW is
When the priority switch 52 is turned on, “1” is output.
When written and turned off, "0" is written
It is. When PRSW = "1", LED5
Of the 3 and 54, only the LED 53 is turned on,
When PRSW = "0", only LED 54 is lit
State. Operation of these dial priority switches 52
The processing in response to the operation is performed in step S of the panel processing routine.
This is executed at 803. The contents of the dial priority flag PRSW are
If “1”, the result of the determination in step S2306 is “Y
ES ”, and proceeds to step S2307. And the performance
MIDI event read from performance data memory area
Is a note-on or note-off event
It is determined whether or not. When the result of this determination is "YES"
Goes to step S2308, where the performance data memory area
The MIDI event read from the internal MIDI event
To the MIDI buffer. And step
Proceed to step S2309. On the other hand, the determination in step S2307
If the result is "NO", that is,
MIDI event read from the rear area
If not, step S2308 should not be executed.
Then, the process proceeds to step S2309. Thus, the dial
If the content of the previous flag PRSW is "1", the performance
MIDI events played from the data memory area
Only note events are written to the MIDI buffer
Channel pressure event, program change
Channel events such as events are written to the MIDI buffer.
I can't get in. On the other hand, in playback mode, dial operation
Once the operation has been performed, the details of the instrument mode
As described above, the increment processing routine or data
The increment processing routine is executed and the channel event
Is generated and written to the MIDI buffer. Also,
When a note event is generated by playing the keyboard, or
When a MIDI event is supplied from an external device,
Those MIDI events are written to the MIDI buffer
I will. MIDI written to MIDI buffer
The event is then executed by the MIDI processing routine.
Is taken into the event register EV.
(Step S502). And the event register EV
MIDI events captured in the
Note event processing routine is executed
In response to a note event taken into the vent register EV
The corresponding parameters are sent to the tone synthesis circuit 9 (step
Step S1509 or S1513). Also events
The MIDI event captured in the register EV
Channel event processing routine if the event is
Is executed and the channel taken into the event register EV is executed.
The parameter corresponding to the channel event is a tone synthesis circuit 9.
(Step S1104). In this way PR
If SW = "1", the performance data memory area
Only the note event among the playback events is a tone synthesis circuit
9 is used for control. Then, the voice synthesis circuit 9
Time control, tone control, etc. are performed by dial operation etc.
Channel data played from the performance data memory area.
Vents are ignored. On the other hand, the contents of the dial priority flag PRSW
Is “0”, the result of the determination in step S2306 is
“NO” will proceed to step S2308, where the performance data
The MIDI event read from the data memory area
Write to DI buffer. Then, step S2309
Proceed to. The event written to the MIDI buffer is
After that, the MIDI processing routine is executed.
Is taken into the event register EV (step S
502). And a note event processing routine or
Is caused by the execution of the channel event processing routine.
Responds to the event captured in the event register EV.
The corresponding parameters are sent to the tone synthesis circuit 9. this
Thus, when PRSW = "0", the performance data memory
All MIDI events that are played from the area
Is used for controlling the tone synthesis circuit 9. Next, in step S2309, the variable
The register i is incremented. Next, step S231
The process proceeds to 0, and it is determined whether or not i> 16. This size
If the disconnection result is “NO”, the process returns to step S2032,
Perform the same processing as above for the new MIDI channel i.
U. Then, the determination result of step S2310 is “YE
If "S" is reached, the process proceeds to step S2311. And
Play MIDI events for all playback channels
It is determined whether or not has been completed. If the result of this determination is "NO"
In the case of, the reproduction processing routine ends, and the interruption processing routine
Return to After the interrupt processing routine is completed,
Restart the process that was interrupted by the process. Since then
The interrupt processing routine is executed every time the time elapses, and
Is repeated. From the performance data memory area in the RAM 5
All MIDI events of the playback channel are read
And the playback processing routine is executed via the interrupt processing routine
Is performed, the determination result of step S2311 is “YES”.
Becomes As a result, the process proceeds to step S2312 and the star
Write “0” to the start flag START
Return to Chin. Thereafter, if the interrupt processing routine is executed
However, since START = "0", the reproduction processing routine
Is not executed. Thus, the automatic performance ends. Performing during or after automatic performance
When the user presses the stop switch 43, the
Event is detected. As a result, the CPU 3
The stop switch processing routine shown in FIG.
Execute the routine. First, proceed to step S2001,
Whether the content of the start flag START is "1"
Judge. If the result of this determination is “Yes”,
If an automatic performance is currently being performed, step S2
002, and write “0” to the start flag START.
Get in. Next, proceeding to step S2003, the tone synthesis circuit
The currently sounding channel in 9
The channel status register ST corresponding to each
All pronunciation channels for which the content of (i) is "1"
The note-off information NOFF is supplied to the i. this
As a result, all the sounds being produced in the tone synthesis circuit 9 are generated.
A tone silencing process is performed. Then, step S200
Proceed to 4. On the other hand, the stop switch 4
If No. 3 is pressed, the determination result of step S2001
Becomes “No”, and steps S2002 and S200
Then, the process proceeds to Step S2004 without executing Step 3. next
In step S2004, the record flag REC is set.
It is determined whether or not the content is “1”. REC = "0"
In this case, the result of this determination is “No”, and the
Stops without executing steps 2004 to S2007
The switch processing routine ends. (3) Playback recording mode In the playback / recording mode, the performance data
Playback processing of MIDI events in the memory area and keyboard performance
MIDI sound caused by playing or operating the operation panel
Recording of events or foreign MIDI events in RAM5
The sound processing is performed in parallel. In this playback recording mode
Before performing any further processing, the performer
Set the recording channel. Playback channel settings
Has already been explained.
Only the processing for the above will be described. Setting of recording channel When recording, the player first switches to a record switch.
Press 41. As a result, the record switch 41 is turned off.
Event is detected via the operation panel interface 8.
Is issued, and the CPU 3 executes step S of the panel processing routine.
At 803, the record switch shown in FIG.
Execute the switch processing routine. First, step S1801
, An ON event of the record switch 41 is detected
It is determined whether or not it has been performed. In this case, step S180
The judgment result of step 1 becomes "Yes" and step S1802
And set the record switch flag RECSW to “1”.
Write. Next, the process proceeds to step S1803, at which point
Flag RSW corresponding to each channel in
(I) The contents of (i = 1 to 16) are determined, and RSW (i)
= All channel numbers i that satisfy "1", i.e.
At that point, it has already been set as a recording channel.
Detects the number of the MIDI channel being used. And L
The detected channel of the ED lamp LQi (i = 1 to 16)
The LED lamp corresponding to the cell number i is turned on. Soshi
To return to the main routine via the panel processing routine.
You. The performer is the point of the LED lamp LQi (i = 1 to 16)
Depending on the lighting status, which MIDI channel is the recording channel
Check if it is. The player releases his / her finger from the record switch 41.
Then, the off event of the record switch 41 is
CPU 3 detects through the interface 8
In step S803 of the panel processing routine,
Execute the record switch processing routine. in this case,
Record switch 41 off event detected
First, after steps S1801 and S1804,
Proceed to step S1805. And record switch
Write "0" to the lag RECSW. Then step S
Proceed to 1805, corresponding to each channel at that time.
The reproduction flag PSW (i) (i = 1 to 16) is determined.
And all channels satisfying PSW (i) = "1"
I, that is, the playback channel at that time
Of the MIDI channel number set as
You. Then, the LED lamp LQi (i = 1 to 16)
The LED lamp corresponding to the detected channel number i.
Light up. Then, the main routine is executed via the panel processing routine.
Return to the routine. As a result of such processing being performed,
The contents of the switch flag RECSW are
"1" only during the period when switch 41 is pressed, record switch
When the switch 41 is not pressed, the value is “0”. Ma
If the record switch 41 is pressed, L
Recording channel by ED lamp LQi (i = 1 to 16)
Is displayed, and if not pressed, the playback channel
Will be displayed. MIDI channel set as recording channel
If you want to exclude a channel from a recording channel, the performer
With the code switch 41 pressed, press the MIDI
The sequencer channel switch BMi corresponding to the channel
Press. In this case, the sequencer channel switch processing
When the routine is executed, the process proceeds to step S1608.
In this case, the determination result is “YES”. And record
Write “0” to the de-flag RSW (N) (= RSW (i)).
(Step S1611), LED lamp LQNTo
The light is turned off (step S1611), and the panel processing routine is executed.
And returns to the main routine. The above processing is performed
The MIDI channel desired by the performer is recorded
Set as a channel. Automatic performance and recording With the above processing, the playback channel and recording channel
When the setting of the record is completed, the player switches to the record switch 41.
And the start switch 42 are both pressed. As a result,
When the record switch 41 is pressed, REC
SW = "1". Also, the start switch 42
On event is sent via the operation panel interface 8
Upon detection, the CPU 3 sets the flow in FIG.
The shown start switch processing routine is executed. This place
In this case, since RECSW = "1", step S170
The determination result of step 1 is “Yes”, and step S1705 is performed.
Proceed to. Then, the content of the record flag REC is "0".
Is determined. If the result of this determination is "YES"
If there is, the process proceeds to step S1706 and the start flag
Write “1” to START and record flag REC
Put in. Next, the process proceeds to step S1707, where each
An initial setting process for a seed pointer and the like is performed. And the panel
The process returns to the main routine via the control routine. In addition, record
When the switch 41 is pressed, the REC =
If it is “1”, that is, during recording,
Both the switch 42 and the record switch 41 are pressed.
The start switch processing routine.
When the process proceeds to step S1705, the determination result is “NO”.
And execute steps S1706 and S1707.
To the main routine via the panel processing routine
Return. When START = "1",
As in the case of the playback mode described above, the interrupt processing
If the chin is executed, the process proceeds to step S2105.
Thus, a reproduction processing routine is executed. And the playback processing
The performance data memory area of the RAM 5
A MIDI event corresponding to the playback channel is read from
When the event is issued (step S2305), the event is M
The data is sequentially written to the IDI buffer. In addition, keyboard operation
Or a MIDI event is generated by operating the operation panel.
MIDI event from the
If these MIDI events are
The data is sequentially written to the DI buffer. Thus, MI
As a result of writing the MIDI event to the DI buffer,
When the MIDI processing routine has been executed, step S5 is executed.
The judgment result of “01” is “Yes”. And MIDI
MIDI event is fetched from buffer and event
It is written to the register EV and the MIDI event
The MIDI channel number of the
It is written to CH (step S502). And Ive
Based on the MIDI event captured in the event register EV.
The note event processing routine (step S50)
4) Or channel event processing routine (step
S505) is executed, and is taken into the event register EV.
Parameter corresponding to the channel event
It is sent to the forming circuit 9. Thus, reading from the RAM 5
Keyboard operation or operation with the MIDI event
MIDI events generated by operating the panel,
Indicates that the MIDI event supplied from the external device is MIDI
Music synthesis circuits extracted from the buffers and corresponding to each
Is performed. Next, when the flow advances to step S506, REC =
Since it is “1”, the judgment result is “Yes”,
In step S507, the recording process shown in FIG.
The logical routine is executed. First, in step S1901
Proceed to the record flag corresponding to the MIDI channel MCH.
Whether the content of the RSW (MCH) is “1”,
Retrieve from MIDI buffer in MIDI processing routine
MIDI data written out and written to the event register EV
Determine if the event is a MIDI event to be recorded
Refuse. If the result of this determination is “Yes”,
The process proceeds to step S1902. And the MIDI chip in RAM5
For the buffer track corresponding to the channel MCH,
From writing MIDI events before to the present
Write the elapsed time at
The MIDI event in the vent register EV is
Write as information. Then, through the MIDI processing routine,
Then, the process returns to the main routine. After that, MIDI processing routine
A similar process is performed every time is started. From the performance data memory area in the RAM 5
All MIDI events of the playback channel are read
And the playback processing routine as in the case of the playback mode described above.
Step S2312 is executed, and START =
It becomes "0" and the automatic performance ends. Also, the performer
When the top switch 43 is pressed, the stop switch
The processing routine is executed, and the process proceeds to step S2004.
No. If REC = “1”, step S
The judgment result of 2004 becomes "Yes" and the step S2
Proceed to 004 and write “0” to record flag REC
No. Next, the process proceeds to step S2006, where all recording channels are recorded.
Note-off information for the buffer track corresponding to the
Report and exit code. Next, in step S2007
Go to the buffer track corresponding to each recording channel.
The performance data corresponding to each MIDI channel number
Write to the memory area. And stop switch processing
Ends the routine and returns to the main routine. Thereafter, MI
Some MIDI event is written to DI buffer
Even if the MIDI processing routine is executed,
= "0", the recording processing routine is not executed.
Thus, the recording ends. Before the automatic performance ends
When the stop switch 43 is pressed,
Steps S2002 and S20 of the switch processing routine
03 is executed, the processing after step S2004 is performed.
It is executed and the recording ends. As a result of the above processing being performed, the RAM
The contents of the performance data memory area in 5 are updated as follows.
Be renewed. a. Playback channel set as recording channel
Performance corresponding to MIDI channels not set as
Performance data memory area MIDI event before recording in this performance data area
Event is erased by recording. And during recording, keyboard 1
Alternatively, the MIDI event by operating the operation panel 7
Occurs, or receives a MIDI event from an external device.
If you receive a MIDI message,
The performance number memory area corresponds to the
Is written to. b. Set as recording and playback channels
Performance data area corresponding to MIDI channel The contents of this performance data area are stored before recording.
Operation in playback / recording mode for MIDI events
MIDI events among MIDI events newly occurred
The corresponding number of the channel is updated to the merged content.
It is. More specifically, it is as follows. b1. A keyboard channel that matches the recording channel is set.
If specified If a keyboard performance is performed during recording, the keyboard channel
The contents of the performance data memory area corresponding to the
Generated by playing the keyboard against the contents stored in
Merges note events. Also, diamond
Recording with the priority flag PRSW being "1",
If the dial 51 is operated at that time, the dial operation is performed.
The channel event generated according to the operation is
Write to the performance data memory area corresponding to the play channel
I will. In this case, connect to the keyboard channel before recording.
Channel events in the corresponding performance data memory area
Event is deleted. On the other hand, dial priority flag PRSW
Is recorded in the state of "0".
Is operated in response to a dial operation.
The channel event corresponds to the keyboard channel
It is merged with the contents of the performance data memory area. b2. External MIDI events matching the recording channel
When received from device The received MIDI event is the corresponding MIDI channel.
Mark the contents of the performance data memory area corresponding to the channel.
Will be [0061] As described above, according to the present invention,
Output sound information independently via multiple communication channels
Music information output means, and the plurality of channels
Tone formation that forms a tone based on input tone information
Means and a tone output by the tone information output means
Musical sound output via a specific communication channel among information
Storage means for storing information; and
Tone information and metronome sound for tronome sound formation
A pronunciation instruction is output through the specific communication channel, and the
After that, the tone information stored in the storage means is stored in the specific
Generating the metronome sound output via a communication channel
And means for freely available communication channels.
Generates a metronome sound normally without reducing the number
The effect is obtained.

【図面の簡単な説明】 【図1】 この発明を自動演奏装置に適用した一実施例
の構成を示すブロック図である。 【図2】 同実施例の操作パネルを示す平面図である。 【図3】 同実施例において実行される各ルーチンおよ
びそれらの関係を説明する図である。 【図4】 同実施例の動作を説明するフローチャートで
ある。 【図5】 同実施例の動作を説明するフローチャートで
ある。 【図6】 同実施例の動作を説明するフローチャートで
ある。 【図7】 同実施例の動作を説明するフローチャートで
ある。 【図8】 同実施例の動作を説明するフローチャートで
ある。 【図9】 同実施例の動作を説明するフローチャートで
ある。 【図10】 同実施例の動作を説明するフローチャート
である。 【図11】 同実施例の動作を説明するフローチャート
である。 【図12】 同実施例の動作を説明するフローチャート
である。 【図13】 同実施例の動作を説明するフローチャート
である。 【図14】 同実施例の動作を説明するフローチャート
である。 【図15】 同実施例の動作を説明するフローチャート
である。 【図16】 同実施例の動作を説明するフローチャート
である。 【図17】 同実施例の動作を説明するフローチャート
である。 【図18】 同実施例の動作を説明するフローチャート
である。 【図19】 同実施例の動作を説明するフローチャート
である。 【図20】 同実施例の動作を説明するフローチャート
である。 【図21】 同実施例の動作を説明するフローチャート
である。 【図22】 同実施例の動作を説明するフローチャート
である。 【図23】 同実施例の動作を説明するフローチャート
である。 【符号の説明】 1……鍵盤、3……CPU、5……RAM、9……楽音
合成回路。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing a configuration of an embodiment in which the present invention is applied to an automatic performance device. FIG. 2 is a plan view showing an operation panel of the embodiment. FIG. 3 is a diagram for explaining routines executed in the embodiment and their relationships; FIG. 4 is a flowchart illustrating the operation of the embodiment. FIG. 5 is a flowchart illustrating the operation of the embodiment. FIG. 6 is a flowchart illustrating the operation of the embodiment. FIG. 7 is a flowchart illustrating the operation of the embodiment. FIG. 8 is a flowchart illustrating the operation of the embodiment. FIG. 9 is a flowchart illustrating the operation of the embodiment. FIG. 10 is a flowchart illustrating the operation of the embodiment. FIG. 11 is a flowchart illustrating the operation of the embodiment. FIG. 12 is a flowchart illustrating the operation of the embodiment. FIG. 13 is a flowchart illustrating the operation of the embodiment. FIG. 14 is a flowchart illustrating the operation of the embodiment. FIG. 15 is a flowchart illustrating the operation of the embodiment. FIG. 16 is a flowchart illustrating the operation of the embodiment. FIG. 17 is a flowchart illustrating the operation of the embodiment. FIG. 18 is a flowchart illustrating the operation of the embodiment. FIG. 19 is a flowchart illustrating the operation of the embodiment. FIG. 20 is a flowchart illustrating the operation of the embodiment. FIG. 21 is a flowchart illustrating the operation of the embodiment. FIG. 22 is a flowchart illustrating the operation of the embodiment. FIG. 23 is a flowchart illustrating the operation of the embodiment. [Description of Signs] 1... Keyboard, 3... CPU, 5... RAM, 9.

Claims (1)

(57)【特許請求の範囲】 【請求項1】 複数の通信チャネルに対応した楽音設定
情報と発音指示情報を出力する楽音情報出力手段と、 前記複数の通信チャネルに対応した楽音設定情報に基づ
いて楽音を形成する楽音形成手段と 一定時間が経過する毎に、前記複数の通信チャネルのう
ちの特定の通信チャネルに対応したメトロノーム音形成
のための楽音設定情報とメトロノーム音の発音指示
報を前記楽音形成手段に出力し、該出力の後、前記メト
ロノーム音形成のために前記楽音形成手段に設定した楽
音設定情報を前記メトロノーム音の発音前の状態に戻す
メトロノーム音発生手段とを具備することを特徴とする
電子楽器。
(57) [Claims] 1. A plurality of communication channels.Corresponding toMusical soundConfiguration
informationAnd pronunciation instruction informationMusic information output means for outputting The pluralitycommunicationchannelCorresponding toMusical soundConfigurationBased on information
Means for forming musical sounds, Every time a certain time elapses, The plurality of communication channels
For specific communication channelsMetronome sound formation
Music forConfigurationInformation andTheInstruct metronome soundEmotion
Information to the tone generatorOutput,The outputAfter,Said met
The musical tone set in the musical tone forming means for forming a lonome sound.
Returns the sound setting information to the state before the metronome sound was generated
And a metronome sound generating means.
Electronic musical instruments.
JP00601092A 1992-01-16 1992-01-16 Electronic musical instrument Expired - Fee Related JP3438229B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00601092A JP3438229B2 (en) 1992-01-16 1992-01-16 Electronic musical instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00601092A JP3438229B2 (en) 1992-01-16 1992-01-16 Electronic musical instrument

Publications (2)

Publication Number Publication Date
JPH0695664A JPH0695664A (en) 1994-04-08
JP3438229B2 true JP3438229B2 (en) 2003-08-18

Family

ID=11626749

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00601092A Expired - Fee Related JP3438229B2 (en) 1992-01-16 1992-01-16 Electronic musical instrument

Country Status (1)

Country Link
JP (1) JP3438229B2 (en)

Also Published As

Publication number Publication date
JPH0695664A (en) 1994-04-08

Similar Documents

Publication Publication Date Title
US20080069383A1 (en) Mixing apparatus for audio data, method of controlling the same, and mixing control program
JP2004264501A (en) Keyboard musical instrument
JP3551086B2 (en) Musical sound synthesizer and method
JP3533972B2 (en) Electronic musical instrument setting control device
US8373055B2 (en) Apparatus, method and computer program for switching musical tone output
EP3550555B1 (en) Electronic musical instrument, method, and storage medium
US7358433B2 (en) Automatic accompaniment apparatus and a storage device storing a program for operating the same
JP3438229B2 (en) Electronic musical instrument
JPH0469396B2 (en)
JP3724410B2 (en) Music editing apparatus for portable terminal and music editing program used for portable terminal
JP4787258B2 (en) Tone storage device, tone storage method, computer program for storing tone
US6535772B1 (en) Waveform data generation method and apparatus capable of switching between real-time generation and non-real-time generation
JP3237161B2 (en) Automatic performance device
JP2639271B2 (en) Automatic performance device
US6274798B1 (en) Apparatus for and method of setting correspondence between performance parts and tracks
JP3005986B2 (en) Automatic accompaniment device
JP3057704B2 (en) Electronic musical instrument
JPH06195071A (en) Part information recording device
JP2962761B2 (en) Electronic musical instrument
JP3988812B2 (en) Automatic performance controller
JPH09244654A (en) Electronic musical instrument
JP2607413B2 (en) Automatic performance device
JP4205563B2 (en) Performance device, performance method, and computer program for performance
JPH10171475A (en) Karaoke (accompaniment to recorded music) device
JP2000122672A (en) Karaoke (sing-along music) device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030513

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20080613

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090613

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees