JP3237161B2 - Automatic performance device - Google Patents
Automatic performance deviceInfo
- Publication number
- JP3237161B2 JP3237161B2 JP00601592A JP601592A JP3237161B2 JP 3237161 B2 JP3237161 B2 JP 3237161B2 JP 00601592 A JP00601592 A JP 00601592A JP 601592 A JP601592 A JP 601592A JP 3237161 B2 JP3237161 B2 JP 3237161B2
- Authority
- JP
- Japan
- Prior art keywords
- channel
- event
- midi
- register
- performance data
- 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
Links
- 238000013500 data storage Methods 0.000 claims description 12
- 238000000034 method Methods 0.000 description 106
- 230000015572 biosynthetic process Effects 0.000 description 40
- 238000003786 synthesis reaction Methods 0.000 description 39
- RRLHMJHRFMHVNM-BQVXCWBNSA-N [(2s,3r,6r)-6-[5-[5-hydroxy-3-(4-hydroxyphenyl)-4-oxochromen-7-yl]oxypentoxy]-2-methyl-3,6-dihydro-2h-pyran-3-yl] acetate Chemical compound C1=C[C@@H](OC(C)=O)[C@H](C)O[C@H]1OCCCCCOC1=CC(O)=C2C(=O)C(C=3C=CC(O)=CC=3)=COC2=C1 RRLHMJHRFMHVNM-BQVXCWBNSA-N 0.000 description 19
- 230000006870 function Effects 0.000 description 11
- 230000003247 decreasing effect Effects 0.000 description 9
- 230000000694 effects Effects 0.000 description 7
- GDOPTJXRTPNYNR-UHFFFAOYSA-N methyl-cyclopentane Natural products CC1CCCC1 GDOPTJXRTPNYNR-UHFFFAOYSA-N 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 101000798769 Mus musculus Troponin C, skeletal muscle Proteins 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000002194 synthesizing effect Effects 0.000 description 3
- 125000002066 L-histidyl group Chemical group [H]N1C([H])=NC(C([H])([H])[C@](C(=O)[*])([H])N([H])[H])=C1[H] 0.000 description 2
- 229910017435 S2 In Inorganic materials 0.000 description 2
- 101100326509 Catharanthus roseus CYP76B6 gene Proteins 0.000 description 1
- 101100326510 Swertia mussotii CYP76B10 gene Proteins 0.000 description 1
- 230000000994 depressogenic effect Effects 0.000 description 1
- IIPNDONTVPDUFZ-UHFFFAOYSA-N ethyl 2-methyl-1-oxido-3,4-dihydropyrrol-1-ium-2-carboxylate Chemical compound CCOC(=O)C1(C)CCC=[N+]1[O-] IIPNDONTVPDUFZ-UHFFFAOYSA-N 0.000 description 1
- 230000030279 gene silencing Effects 0.000 description 1
Landscapes
- Electrophonic Musical Instruments (AREA)
Description
【0001】[0001]
【産業上の利用分野】この発明は演奏データの録音機能
および演奏データに基づく自動演奏機能を備えた自動演
奏装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic performance apparatus having a function of recording performance data and an automatic performance function based on performance data.
【0002】[0002]
【従来の技術】鍵盤等の演奏操作子の操作に応じて演奏
データを作成しRAM(ランダムアクセスメモリ)等の
記憶手段に逐次書き込む録音機能と、RAMに記憶され
た演奏データを逐次読み出し、読み出した演奏データに
従って自動演奏を行う再生機能とを共に備えた自動演奏
装置が知られている。2. Description of the Related Art A recording function for creating performance data according to the operation of performance operators such as a keyboard and sequentially writing the performance data in a storage means such as a RAM (random access memory), and sequentially reading and reading performance data stored in the RAM. There is known an automatic performance device having both a reproduction function of performing an automatic performance in accordance with such performance data.
【0003】[0003]
【発明が解決しようとする課題】ところで、上述した従
来の自動演奏装置によって演奏データを編集しようとす
る場合、演奏者は、RAM内に所望の曲の演奏データを
記録した後、RAM内の演奏データによって所望の自動
演奏が行われるかを確認し、所望の自動演奏が行われな
い場合にはRAM内における該当する演奏データを書き
直すという作業を繰り返さねばならず、効率的に演奏デ
ータを編集することができないという問題があった。こ
の発明は上述した事情に鑑みてなされたものであり、演
奏データに基づく自動演奏を行うのと同時に、演奏デー
タを更新することができる自動演奏装置を提供すること
を目的とする。When the performance data is to be edited by the above-mentioned conventional automatic performance device, the performer first records the performance data of the desired music in the RAM, and then performs the performance data in the RAM. It is necessary to confirm whether or not the desired automatic performance is performed by the data, and if the desired automatic performance is not performed, the operation of rewriting the corresponding performance data in the RAM must be repeated, and the performance data is efficiently edited. There was a problem that it was not possible. SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and has as its object to provide an automatic performance device that can perform an automatic performance based on performance data and update performance data at the same time.
【0004】[0004]
【課題を解決するための手段】この発明は上記の課題を
解決すべくなされたもので、少なくとも楽音の発音を制
御するノートイベントデータと、前記楽音の発生態様を
制御する制御データとを含む演奏データを記憶する演奏
データ記憶手段と、少なくとも楽音の発生を制御する操
作子および楽音の発生態様を制御する操作子を含む演奏
操作子を有し、前記楽音の発生を制御する操作子の操作
に応じてノートイベントデータを、前記楽音の発生態様
を制御する操作子の操作に応じて制御データを各々演奏
データとして出力する演奏手段と、前記演奏データ記憶
手段から前記演奏データを順次読み出す再生手段と、選
択手段と、前記選択手段によって第1の選択肢が選択さ
れた時、前記再生手段によって読み出される演奏データ
からノートイベントデータのみを抽出して出力し、前記
選択手段によって第2の選択肢が選択された時、前記再
生手段によって読み出される演奏データをそのまま出力
する抽出手段と、前記抽出手段の出力および前記演奏手
段によって出力される演奏データを逐次記憶するバッフ
ァ記憶手段と、前記バッファ記憶手段に記憶された演奏
データを前記演奏データ記憶手段に書き込む書込手段
と、前記バッファ記憶手段内のデータに従って楽音を形
成する楽音形成手段とを具備し、前記選択手段によって
第1の選択肢が選択された時、前記バッファ記憶手段
に、前記演奏データ記憶手段から読み出された演奏デー
タの内のノートイベントデータと、前記演奏手段によっ
て出力される演奏データが記憶され、前記演奏データ記
憶手段から読み出された演奏データの内の制御データは
記憶されないことを特徴としている。SUMMARY OF THE INVENTION The present invention has been made in order to solve the above-mentioned problems, and has a performance including at least note event data for controlling the generation of musical tones and control data for controlling the manner in which the musical tones are generated. A performance data storage means for storing data; and a performance operator including at least an operator for controlling the generation of musical tones and an operator for controlling the mode of generation of musical tones. Playing means for outputting control data as performance data in response to an operation of an operator for controlling the generation mode of the musical sound, and reproducing means for sequentially reading the performance data from the performance data storage means. a selection <br/>-option means, when the first option is selected by the selection means, Notoi from the performance data read by said reproducing means Extracting and outputting only the performance data read out by the selecting means, and when the second option is selected by the selecting means, outputting the performance data read out by the reproducing means as it is; Buffer storage means for sequentially storing output performance data; writing means for writing the performance data stored in the buffer storage means to the performance data storage means; and musical tones according to the data in the buffer storage means.
And a note event data in the performance data read out from the performance data storage means when the first option is selected by the selection means. Performance data output by the performance means is stored, and control data of the performance data read from the performance data storage means is not stored.
【0005】[0005]
【作用】上記構成によれば、演奏データ記憶手段から読
み出される演奏データおよび演奏操作子の操作による演
奏データが自動演奏の制御に使用されると共にバッファ
記憶手段に記憶される。そして、バッファ記憶手段に記
憶された演奏データによって演奏データ記憶手段の内容
が書き換えられる。According to the above arrangement, the performance data read from the performance data storage means and the performance data obtained by operating the performance operator are used for controlling the automatic performance and are stored in the buffer storage means. Then, the contents of the performance data storage means are rewritten by the performance data stored in the buffer storage means.
【0006】[0006]
【実施例】以下、図面を参照し、本発明の一実施例を説
明する。 <A>実施例の構成 図1はこの発明の一実施例による自動演奏装置の構成を
示すブロック図である。この自動演奏装置は下記機能を
有している。また、下記にも示すように、この自動演奏
装置において、演奏操作子の操作イベント、記憶手段か
ら読み出される演奏データ等はすべてMIDIイベント
に変換されて取り扱われる。 (a)演奏操作子の操作に応答しMIDIイベントを発
生するイベント発生機能 (b)記憶手段から演奏データを読み出し、MIDIイ
ベントとして出力する再生機能 (c)演奏操作子の操作によって生じるMIDIイベン
トおよび記憶手段から読み出されたMIDIイベントに
より演奏を行う自動演奏機能 (d)演奏操作子の操作によって生じるMIDIイベン
トおよび記憶手段から読み出されたMIDIイベントを
演奏データとして記憶手段に書き込む録音機能 (f)指定されたテンポでメトロノーム音を発生する機
能 また、この自動演奏装置は、上記機能(a)、(b)お
よび(d)に関し、下記の指定を行うことが可能であ
る。 (f)演奏操作子の操作によって発生するMIDIイベ
ントを割り当てるチャネル番号(以下、キーボードチャ
ネルと称する)の指定 (g)記憶手段から再生するMIDIイベントのチャネ
ル番号(以下、再生チャネルと称する)の指定 (h)記憶手段に演奏データとして録音するMIDIイ
ベントのチャネル番号(以下、録音チャネル)の指定An embodiment of the present invention will be described below with reference to the drawings. <A> Configuration of Embodiment FIG. 1 is a block diagram showing the configuration of an automatic performance device according to an embodiment of the present invention. This automatic performance device has the following functions. Further, as described below, in this automatic performance apparatus, all operation events of performance operators, performance data read from the storage means, and the like are converted into MIDI events and handled. (A) an event generating function for generating a MIDI event in response to an operation of a performance operator; (b) a reproduction function of reading performance data from a storage means and outputting it as a MIDI event; An automatic performance function for performing a performance based on a MIDI event read from the storage means. (D) A recording function for writing the MIDI event generated by the operation of the performance operator and the MIDI event read from the storage means as performance data to the storage means. ) Function for generating a metronome sound at a specified tempo In addition, this automatic performance device can perform the following specification for the functions (a), (b) and (d). (F) Designation of a channel number (hereinafter referred to as a keyboard channel) to which a MIDI event generated by operation of a performance operator is assigned (g) Designation of a channel number (hereinafter referred to as a reproduction channel) of a MIDI event to be reproduced from the storage means (H) Designation of a MIDI event channel number (hereinafter, recording channel) to be recorded as performance data in the storage means
【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に出力される。[0007] The components of the apparatus described below are used as means for realizing the above functions. In FIG. 1, reference numeral 1 denotes a keyboard as a performance operator. Reference numeral 2 denotes a key interface, which detects a key press / key release operation performed on each key of the keyboard 1, and outputs the key as a key event. Reference numeral 3 denotes a CPU (Central Processing Unit), which controls the entire apparatus including the functions (a) to (d). 4 is a ROM (Read Only Memory),
In addition to various control programs executed by the CPU 3, control information necessary for control is stored. Reference numeral 5 denotes a RAM, which is used as a storage area for control data used for control performed by the CPU 3. The specific storage area in the RAM 5 is used as a performance data memory area for storing performance data for 16 tracks and a buffer track area for 16 tracks used for editing the performance data. Reference numeral 6 denotes a MIDI interface, which transmits a MIDI event reproduced by the automatic performance device to an external device and receives a MIDI event supplied from the external device. Reference numeral 7 denotes an operation panel provided with various operators including a performance operator such as a tone color designation switch and a display. Reference numeral 8 denotes an operation panel interface, which detects an operation performed on each operator of the operation panel 7 and outputs the operation as a panel event.
The display of each display of the operation panel 7 is controlled in accordance with a command from the CPU 3. Reference numeral 9 denotes a tone synthesis circuit for synthesizing a tone signal, and reference numeral 10 denotes a sound system for generating a tone signal output from the tone synthesis circuit 9 as a tone. B
Reference numeral 1 denotes a MIDI event bus.
The I interface 6, the tone synthesis circuit 9 and the sound system 10 are interconnected and used as a communication path for exchanging MIDI events between these elements. A data bus B2 connects the key interface 2, the CPU 3, the ROM 4, the RAM 5, the operation panel interface 8, and the tone synthesis circuit 9 to each other, and is used as a communication path for data exchange between these elements. You. For example, key press information output from the key interface 2 is taken into the CPU 3 via the data bus B2, converted into MIDI data by the CPU 3, and then output to the musical tone synthesis circuit 9 via the MIDI event bus B1.
【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
Q16により表示される。51はダイヤルであり、ボリュ
ーム、音色等のパラメータの設定値を増減するための操
作子として使用される。BC1〜BC5はモード指定用ス
イッチであり、ダイヤル51の操作によって増減させる
パラメータを指定する操作子として使用される。ダイヤ
ル操作によって、いずれのパラメータが増減されるかは
LEDランプCS1〜CS5によって表示される。61は
音色、ボリューム等を表示する表示器である。62はイ
ンクリメントキー、63はデクリメントキーであり、ダ
イヤル51と同様、ボリューム、音色等のパラメータの
設定値を増減するための操作子として使用される。52
はダイヤル優先スイッチである。再生時、ダイヤル優先
スイッチ52がオン状態である場合、RAM5から読み
出される演奏データによるボリューム、音色等のパラメ
ータ制御が無効とされ、ダイヤル51の操作によるパラ
メータ制御が優先的に実行される。また、ダイヤル優先
スイッチ52がオフ状態である場合、RAM5から読み
出される演奏データによるパラメータ制御と、ダイヤル
51の操作によるパラメータ制御の両方が行われる。FIG. 2 is a plan view showing the operation panel 7.
In FIG. 2, reference numeral 21 denotes a display for displaying the currently set tone color number. 22 is a tone setting section,
The keypad includes a numeric keypad for inputting a tone number, an increment key for increasing / decreasing the input tone number, and a decrement key. 23 is a metronome switch for instructing generation of a metronome sound. When the metronome switch 23 is turned on, the LE
The D lamp 24 lights up. Reference numeral 31 denotes a display for displaying the currently set tempo. Numerals 32 and 33 are an increment key and a decrement key for instructing increase / decrease of the currently set tempo. Reference numeral 41 denotes a record switch, which is depressed when a recording start instruction and the above-described recording channel setting are performed. Reference numeral 42 denotes a start switch for instructing start of automatic performance, and reference numeral 43 denotes a stop switch for instructing stop of automatic performance. BM 1 to Bm 16 are each keyboard channel switch, used to set the above-described keyboard channel. Keyboard channel setting status is LED lamp LM
It is displayed by the 1 ~LM 16. BQ 1 to BM 16 are sequencer channel switches, respectively, which are used for setting the above-mentioned reproduction channel and recording channel. Setting state of the playback channels and recording channels LED lamp LQ 1 ~L
It is displayed by Q 16. Reference numeral 51 denotes a dial, which is used as an operator for increasing or decreasing the set values of parameters such as volume and tone. BC 1 to BC 5 are mode designation switches, and are used as operators for designating parameters to be increased or decreased by operating the dial 51. The dial operation, one of the parameters are increased or decreased is displayed by the LED lamps CS 1 to CS 5. Reference numeral 61 denotes a display for displaying a tone color, volume, and the like. Reference numeral 62 denotes an increment key, and reference numeral 63 denotes a decrement key. Like the dial 51, these keys are used as operators for increasing and decreasing the set values of parameters such as volume and tone. 52
Is a dial priority switch. At the time of reproduction, when the dial priority switch 52 is in the ON state, the parameter control such as volume and tone based on the performance data read from the RAM 5 is invalidated, and the parameter control by operating the dial 51 is preferentially executed. When the dial priority switch 52 is off, both the parameter control based on the performance data read from the RAM 5 and the parameter control based on the operation of the dial 51 are performed.
【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から読み出されるデュレーションデータが書き込
まれる。Next, control registers and flags configured using the storage area in the RAM 5 will be described below. Start flag START: This start flag STA
RT is set to “1” when the start switch 42 is pressed. 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
When the record switch 41 and the start switch 42 are pressed at the same time, “1” is set, and as a result,
Recording of a MIDI event is performed. MIDI buffer: This MIDI buffer stores MIDI events generated by factors such as playing a keyboard, receiving a MIDI signal from an external device, operating an operation panel, and reading performance data from a performance data memory area of the RAM 5. . Channel status register ST (k) (k = 1 to 2)
2): This channel status register ST (k) (k
= 1 to 22) stores information indicating the sounding states of the 22 sounding channels in the tone synthesis circuit 9. That is, if the sound channel k is an empty channel, ST
(K) = “0”, and when the sound channel k is in the note-on state, ST (k) = “1” and the sound channel k
Is in the note-off state, ST (k) = "2". Metronome flag MM: This metronome flag MM
Is set to "1", a metronome sound is emitted. Tempo register TEMPO: This tempo register TEM
A metronome sound is emitted every time the time corresponding to the content of the PO elapses. Metronome count register MCNT: This metronome count register MCNT is used as a timekeeping means for controlling the sounding timing of a metronome sound, and its contents are decremented each time an interrupt process is executed at a fixed time interval. You. Keyboard channel register KBSW (k) (k = 1 to
LAST) and channel number register LAST: keyboard channel register KBSW (k) (k = 1 to RAS)
T) is a variable-length register in which the number of the keyboard channel is stored. The number of keyboard channels stored in the keyboard channel register KBSW is stored in the channel number register LAST. Mode register MODE: This mode register MODE
Is written with information corresponding to the type of parameter to be set. Tone number register TC / SEL: The timbre number input by the timbre setting unit 22 is written in the timbre number register TC / SEL. Event register EV: The MIDI event extracted from the MIDI buffer is written in the event register EV. MIDI channel register MCH: The channel number of the MIDI event extracted from the MIDI buffer is written in the MIDI channel register MCH. Parameter setting register VALUE (i, j) (i = 1
-5, j = 1-16): Each parameter setting register VA
In LUE (i, j), each channel event applied to each tone generation channel j of the tone synthesis circuit 9 is stored. That is, VALUE (1, j) stores the channel pressure event applied to the sounding channel j, and
LUE (2, j) stores a program change event, VALUE (3, j) stores a PAN event for sound image position control, and VALUE (4, j) stores an event for reverberation effect control. Is stored and the VALU
E (5, j) stores an event for vibrato control. Velocity offset register VOFST (k) (k =
0 to 127): Velocity offset register VOFS
In T (k), a value of a velocity offset applied at the time of forming a tone of tone color number k is stored. Relative value register REL: This relative value register REL stores data representing the amount of change when the parameter is increased or decreased by operating the dial 51. Note code register NC: The note code included in the note-on event extracted from the event register EV is written in the note code register NC. Note velocity register NV: The note velocity included in the note-on event extracted from the event register EV is written in the note velocity register NV. Tone generation channel assignment register ACH: The tone generation channel assignment register ACH has a tone synthesis circuit 9 for generating a tone.
Is written. Note code register STNC (k) for each sounding channel
(K = 1 to 22): The note code register STNC (k) for each sounding channel stores note codes of musical tones sounded by the sounding channel k. MIDI channel register AMC (k) for each sounding channel
(K = 1 to 22): The channel number of the note-on event generated by the sound channel k is stored in the sound channel-specific MIDI channel register AMC (k). Record switch flag RECSW: This record switch flag RECSW holds “1” while the record switch 41 is pressed. Recording flag RSW (k) (k = 1 to 16): These recording flags RSW (k) (k = 1 to 16)
This flag stores a value indicating whether or not the channel k is a recording channel. When RSW (k) = "1", the MIDI channel k is a recording channel. Reproduction flags PSW (k) (k = 1 to 16): These reproduction flags PSW (k) (k = 1 to 16) are
This flag stores a value indicating whether or not the channel k is a reproduction channel. When PSW (k) = "1", the MIDI channel k is a reproduction channel. Reception flags RC (k) (k = 1 to 16): These reception flags RC (k) (k = 1 to 16) indicate whether or not to receive a MIDI event from an external device for each MIDI channel k. This is a flag that stores the indicated value. 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), during playback, duration data read from each track k in the performance data memory area is written.
【0010】<B>実施例の動作 <動作概要>図3はCPU3によって実行される主なル
ーチンと、これら各ルーチン間の関係を説明するもので
ある。また、図4〜図23はCPU3によって実行され
る各ルーチンの具体的処理内容を示すフローチャートで
あり、図4はメインルーチンのフローチャート、図6〜
図20はメインルーチンの実行に伴って実行される各ル
ーチンのフローチャート、図21〜23はCPU3によ
り割込処理として実行される各ルーチンのフローチャー
トである。なお、これら各ルーチンの具体的処理内容に
ついては次項<詳細な動作説明>において詳細に説明
し、以下では、図3を参照し、この自動演奏装置の動作
の概要を説明する。<B> Operation of the Embodiment <Outline of Operation> FIG. 3 illustrates main routines executed by the CPU 3 and the relationship between these routines. 4 to 23 are flowcharts showing specific processing contents of each routine executed by the CPU 3, FIG. 4 is a flowchart of a main routine, and FIGS.
FIG. 20 is a flowchart of each routine executed along with the execution of the main routine, and FIGS. 21 to 23 are flowcharts of each routine executed as an interrupt process by the CPU 3. The specific processing contents of each of these routines will be described in detail in the following section <detailed operation description>, and the outline of the operation of this automatic performance apparatus will be described below with reference to FIG.
【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に供給される。(1) Instrument mode (START = "0" R
EC = “0”) In this musical instrument mode, a performance based on an MID event generated by operation of a performance operator such as an operator on the keyboard 1 and the operation panel 7 and a MIDI event received from an external device are performed. A key event generated by operating the keyboard 1 is converted into a MIDI event by a key processing routine, and is stored in a MIDI buffer as a MIDI event corresponding to a keyboard channel. A panel event generated by an operator of the operation panel 7 is performed by a routine corresponding to each panel event such as an increment processing routine and a tone color setting processing routine.
M converted to event and corresponding to keyboard channel
It is stored in the MIDI buffer as an IDI event.
Further, MIDI events received from an external device are stored in a MIDI buffer by an external MIDI processing routine. The MIDI events stored in the MIDI buffer are sequentially fetched by a MIDI processing routine.
The note event in the IDI event is passed to the note event processing routine, and the channel event is passed to the channel event processing routine. The note event processing routine generates parameters based on the note event, and the channel event processing routine generates parameters for tone color setting, volume setting, and the like based on the channel event. Is done.
【0012】(2)再生モード(START=“1”、
REC=“0”) 一定時間が経過する毎に割込処理として再生処理ルーチ
ンが実行され、RAM5内の演奏データメモリエリアの
うち再生チャネルに対応したトラックから演奏データが
順次読み出され、再生チャネルに対応したMIDIイベ
ントとしてMIDIバッファに書き込まれる。また、鍵
盤演奏、操作パネル7の操作、外部装置からのMIDI
信号の受信等があった場合は、それらによって生じるM
IDIイベントもMIDIバッファに書き込まれる。そ
して、上記楽器モードの場合と同様、MIDIバッファ
からMIDIイベントが逐次読み出され、楽音合成回路
9の制御が行われる。(2) Reproduction mode (START = "1",
(REC = “0”) Every time a predetermined time elapses, a reproduction processing routine is executed as an interruption processing, and the performance data is sequentially read from the track corresponding to the reproduction channel in the performance data memory area in the RAM 5. Is written to the MIDI buffer as a MIDI event corresponding to. Also, keyboard performance, operation of the operation panel 7, MIDI from an external device, etc.
If a signal is received, the M
IDI events are also written to the MIDI buffer. Then, as in the case of the musical instrument mode, MIDI events are sequentially read from the MIDI buffer, and the tone synthesis circuit 9 is controlled.
【0013】(3)録音再生モード(START=
“1”、REC=“1”) MIDI処理ルーチンが実行されるのに伴って記録処理
ルーチンが実行される。これにより、MIDIバッファ
に蓄積されたMIDIイベントのうちチャネル番号が録
音チャネルと一致するものが選択され、RAM5内のバ
ッファトラックエリアのうち各録音チャネルに対応した
トラックに書き込まれる。バッファトラックエリアの内
容は、ストップスイッチの押下により、演奏データメモ
リエリアの各々対応するトラックに転送される。(3) Recording / playback mode (START =
“1”, REC = “1”) The recording processing routine is executed along with the execution of the MIDI processing routine. As a result, of the MIDI events stored in the MIDI buffer, the one whose channel number matches the recording channel is selected and written to the track corresponding to each recording channel in the buffer track area in the RAM 5. The contents of the buffer track area are transferred to the corresponding tracks in the performance data memory area by pressing the stop switch.
【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を繰り返す。<Detailed Description of Operation> When a power switch (not shown) of the automatic performance device is turned on, the CPU 3
Executes a main routine whose flow is shown in FIG. First, the process proceeds to step S401, where an initial value is written in the control data storage area in the RAM 5. Next, step S40
The program proceeds to step 2 to start a MIDI processing routine whose flow is shown in FIG. Then, in step S501, M
It is determined whether or not there is a MIDI event in the IDI buffer. If the result of this determination is "YES", then step S
Execute the processing after 502 and return to the main routine,
If "NO", the process returns to the main routine without performing any processing. Next, when the process returns to the main routine, the process proceeds to step S403, and an external MIDI processing routine whose flow is shown in FIG. 6 is started. 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. If the result of the determination is "YES", the processing after step S602 is executed and the process returns to the main routine, and if "NO", the process returns to the main routine without performing any processing. Next, when returning to the main routine, the process proceeds to step S404, and a key processing routine whose flow is shown in FIG. 7 is started. Then, in step S701, the output state of the key interface 2 is scanned. In step S702, it is determined whether a key event indicating that a key on the keyboard 1 has been operated is detected via the key interface 2. If the result of this determination is "YES", step S703 is executed and the process returns to the main routine; if "NO", step S703 is executed.
Without returning to the main routine. Next, when the process returns to the main routine, the process proceeds to step S405, where a sound channel process is executed. Although this sounding channel processing is not described in detail,
Among the tone generation channels of the tone synthesis circuit 9, the number k of the tone generation channel in which the level of the tone being sounded is below a predetermined value is detected, and the channel status register ST (k) corresponding to the detected tone generation channel is detected. Information "0" indicating an empty channel is written. Next, the process proceeds to step S406, where a panel processing routine whose flow is shown in FIG. 8 is started. Then, in step S801, the output state of the operation panel interface 8 is scanned. The process advances to step S802 to determine whether or not a panel event indicating that an operator on the operation panel 7 has been operated has been detected via the operation panel interface 8. If the determination is "YES", the flow proceeds to step S803 to execute a routine corresponding to the detected panel event, and returns to the main routine. If "NO", the flow returns to the main routine without step S803. Then, thereafter, the CPU 3 performs steps S402 to S4.
Repeat step 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は、この割込処理ルーチンを終了し中断していた
処理を再開する。The CPU 3 interrupts the processing being executed at that point of time every time a predetermined period elapses, and executes an interrupt processing routine shown in FIG. First, step S2101
Then, the information corresponding to the non-permission of the interrupt is written into the interrupt control flag so as not to accept another interrupt request. Next, the process proceeds to step S2102 to determine whether or not the content of the metronome flag MM is "1". If the result of this determination is "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
Is "NO", the process proceeds to step S2104 without executing step S2103. Next, step S
Proceeding to 2104, it is determined whether or not an automatic performance is being performed. If the automatic performance is being performed, the flow advances to step S2105 to execute the reproduction processing routine shown in FIG. 23, and then to step S2106. On the other hand, if the automatic performance is not being performed, the process proceeds to step S2106 without executing step S2105. Next, in step S2106, information corresponding to the interruption permission is written in the flag for interruption control. And C
The PU 3 ends this interrupt processing routine and resumes the interrupted processing.
【0016】(1)楽器モード 初期化処理(メインルーチンのステップS401)が実
行されると、スタートフラグSTART、レコードフラ
グRECに共に“0”が書き込まれ、この自動演奏装置
の動作モードは楽器モードとなる。以下、この自動演奏
装置の楽器モード時の動作を説明する。(1) Instrument mode When the initialization processing (step S401 of the main routine) is executed, "0" is written to both the start flag START and the record flag REC, and the operation mode of the automatic performance apparatus is set to the instrument mode. Becomes The operation of the automatic performance device in the musical instrument mode will be described below.
【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
を点灯させる。そして、パネル処理ルーチンを介してメ
インルーチンに戻る。Keyboard Channel Setting In this automatic performance device, key events detected from the keyboard 1 and panel events generated by operating the operation panel 7 are handled by being converted into MIDI events corresponding to the keyboard channels. When performing the keyboard, the player performs a keyboard channel designation switch BM 1
Press the switch corresponding to the desired channel number in BM 16 to set the keyboard channel. When an operation is performed on the keyboard channel designation switch,
A panel event corresponding to the operation is detected by the operation panel interface 8. As a result, when the process proceeds to step S802 of the panel processing routine via step S406 of the main routine, the determination result is “YE
S ”, and proceeds to step S803. Then, in step S803, a keyboard channel switch processing routine whose flow is shown in FIG. 9 is executed. First, the process proceeds to step S901, and it is determined whether or not another keyboard channel designation switch is pressed in addition to the currently pressed keyboard channel designation switch. 1 player
If you are pressed only pieces of the keyboard channel designated switch BM k determination result in step S901 is "NO"
It becomes proceeds to step S902, the turned off all the LED lamp LM 1 to L m 16 for the specified keyboard channel. Next, the process proceeds to step S903, where "1" is written to the channel number register LAST. Next, a register KBSW (LAST) (in this case, KBSW (i)) designated by the channel number register LAST among the keyboard channel designation registers KBSW (i) (i = 1 to NMAX).
(1)) to write the number k of the keyboard channel designated switch BM k which has been pressed. In this way, the channel number k is set as the keyboard channel number. Next, the process proceeds to step S906, where the LED lamp BM k corresponding to the set keyboard channel number k is set.
Lights up. Then, the process returns to the main routine via the panel processing routine.
【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ランプが点灯する。In this automatic performance apparatus, a plurality of MIDI channels can be set as keyboard channels. In this case, after the player presses the first keyboard channel designation switch, he / she presses the second keyboard channel designation switch before releasing his / her finger from the switch. In this case, by executing the keyboard channel switch processing routine as described above, first, the number of the keyboard channel corresponding to the first keyboard channel designation switch is set in the register KBSW.
Written to (1). Thereafter, when the process proceeds to the keyboard channel switch processing routine, the second keyboard channel designation switch is pressed down, so that the determination result in step S901 becomes “YES” and the step S901 is executed.
Proceeding to 904, the channel number register LAST is incremented. Then, the process proceeds to step S905, where the number of the second keyboard channel is set in the register KBSW (L
AST) (in this case, KBSW (2)). Then, among the LED lamps BM k (k = 1 to 16), each LED lamp corresponding to the contents of the registers KBSW (1) and KBSW (2) is turned on (step S80).
6) Return to the main routine via the panel processing routine. Further, when there is a channel number to be set as a keyboard channel, the player sequentially inputs a desired channel number by pressing a new keyboard channel designation switch before releasing the finger from the currently pressed keyboard channel designation switch. I do. As a result, the same processing as described above is repeated, and all keyboard channel numbers are written into the keyboard channel designation register KBSW (k) (k = 1 to LAST), and the LED lamps corresponding to those channel numbers are turned on. I do.
【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にフローを
示すチャネルイベント処理ルーチンを実行する。Tone Setting by Tone Setting Unit 22 When a player operates a ten-key or an increment / decrement key in the tone setting unit 22 to input a tone number, when a panel processing routine is started via a main routine, the corresponding step is executed. In S803, FIG.
A timbre setting switch processing routine whose flow is shown as 0 is executed. First, the flow proceeds to step S1001, the turns off the LED lamps corresponding to the content of the mode register MODE at that time of the LED lamp CS 1 to CS 5 for mode display. Next, the process proceeds to step S1002, where information "0" is written to the mode register MODE. Next, the process proceeds to step S1003, where the timbre number input by the timbre setting unit 22 is written to the timbre number register TC / SEL. Next, the process proceeds to step S1004, where the display 21 displays the contents of the tone color number register TC / SEL. Next, the process proceeds to step S1005, in which all the keyboard channels set at that time, that is, the keyboard channel register KBSW (k) (k = 1 to LAST)
, A program change event (tone color setting event) including the tone number set in the tone number register TC / SEL is created, and each is written to the MIDI buffer as an internal MIDI event. As a result, step S402 of the main routine
When the process proceeds to the MIDI processing routine via the step S501, the determination result in step S501 becomes "YES", and the
Proceed to 502. Then, from the MIDI buffer, the internal MI
The DI event is fetched and written to the event register EV, and the channel number of the fetched internal MIDI event is written to the MIDI channel register MCH.
Next, the process proceeds to step S503, where the event register EV
It is determined whether or not the event stored in is a note event. If the event written to the event register EV in step S502 is a program change event, the result of the determination in step S503 is "NO", and the flow advances to step S505. Then, a channel event processing routine whose flow is shown in FIG. 11 is executed.
【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」となり、メインルーチンに戻
る。First, the flow advances to step S1101 to write the mode number corresponding to the event set in the event register EV into the mode register MODE. If a program change event designating a tone number is set in the event register EV, “0” is written to the mode register MODE. Next, step S110
2 and the number set in the mode register MODE falls within the defined predetermined range (1 to 1 in this embodiment).
It is determined whether the number is 5). In this case, since the number “0” is out of the defined range, the determination result of step S1102 is “NO” and the
Proceed to 104. Then, the CPU 3 sends the MIDI event set in the event register EV, that is, in this case, the program change event created by executing the tone color setting routine to the tone synthesis circuit 9 via the MIDI event bus B1. Here, the tone synthesis circuit 9
Has a storage area for storing control parameters such as tone color and effect for each MIDI channel. The program change events received from the CPU 3 are sorted according to their MIDI channels and stored in the corresponding storage areas. When step S1104 of the channel event processing routine ends, the process returns to the MIDI processing routine and proceeds to step S506, where the content of the record flag REC is set to "1".
It is determined whether or not. In the case of the musical instrument mode, step S50
The determination result at 6 is "NO", and the process returns to the main routine.
【0021】キーボードチャネルが複数設定されている
場合、音色設定処理ルーチンが実行されることにより、
各キーボードチャネルに対応したプログラムチェンジイ
ベントがMIDIバッファに書き込まれる(音色設定処
理ルーチンのステップS1005)。MIDIバッファ
に書き込まれた各プログラムチェンジイベントは、その
後、MIDI処理ルーチンが実行される毎にイベントレ
ジスタEVに取り込まれ(ステップS502)、チャネ
ルイベント処理ルーチンが実行されることにより、楽音
合成回路9へと送られる(ステップS1104)。この
ようにして、すべてのキーボードチャネルについて、音
色設定部22によって入力された音色が設定される。When a plurality of keyboard channels are set, the timbre setting processing routine is executed,
A program change event corresponding to each keyboard channel is written in the MIDI buffer (step S1005 of the tone color setting processing routine). Each program change event written in the MIDI buffer is thereafter fetched into the event register EV every time the MIDI processing routine is executed (step S502), and the channel event processing routine is executed, whereby the tone change circuit 9 is sent to the tone synthesis circuit 9. Is sent (step S1104). In this way, the timbre input by the timbre setting unit 22 is set for all keyboard channels.
【0022】ダイヤル51による各種パラメータ設定 この自動演奏装置においては、ダイヤル51を操作する
ことにより、各MIDIチャネルに対して設定されるボ
リューム、音色番号、エフェクト等の制御パラメータの
数値を増減させることができる。以下、この動作につい
て説明する。In this automatic performance device, by operating the dial 51, the numerical values of control parameters such as volume, tone number, and effect set for each MIDI channel can be increased or decreased. it can. Hereinafter, this operation will be described.
【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に表示させ、パネル処理ル
ーチンを介してメインルーチンに戻る。A. Volume setting When performing volume setting by operating the dial 51,
The performer is, first, to the volume switch BC 2 in the ON state. As a result, when the CPU 3 proceeds to the panel processing routine via the main routine, the CPU 3 proceeds to step S80.
In 3, a volume switch processing routine whose flow is shown in FIG. 12 is executed. First, the flow proceeds to step S1201, turns off the LED lamps corresponding to the content of the mode register MODE at that time of the LED lamp CS 1 to CS 5 for mode display. Next, step S12
In step 02, information “1” corresponding to the volume setting mode is written to the mode register MODE. Next, the process proceeds to step S1203, where "0" is set in the relative value register REL.
Write. Next, the process proceeds to step S1204, and it is determined whether or not the content of the channel number register LAST is “1”. If the result of this determination is "YES", that is, if the number of keyboard channels is one, step S12
Go to 05. Then, the parameter setting 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. Then, the process returns to the main routine via the panel processing routine. On the other hand, if the determination result in step S1204 is “NO”,
That is, if a plurality of keyboard channels have been set, the process proceeds to step S1206, and the relative value register RE
The content "0" of L is displayed on the display 61, and the process returns to the main routine via the panel processing routine.
【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の内容は、設定されたすべ
てのキーボードチャネルについてのボリューム値の相対
変化分(この場合は増加分)を表わしている。Next, the player operates the dial 51 to set a desired volume. Here, when the player turns the dial 51 in the direction to increase the volume, the increment processing routine shown in FIG. 13 is executed in step S803 of the panel processing routine. First, the process proceeds to step S1301, where it is determined whether the content of the mode register MODE is "0". In this case, since the information “1” corresponding to the volume setting mode is set in the mode register MODE, the determination result in step S1301 is “NO” and the process proceeds to step S1302.
The content of the relative value register REL is incremented. Next, the flow advances to step S1303 to set an initial value "1" in the variable register i. Next, the process proceeds to step S1304, where the parameter setting register VALUE at that time is set.
In (i, j) (i = 1 to 5, j = 1 to 16), the mode number i is the mode register MODE (in this case, MODE
= “1”) and the channel number j is the keyboard channel KBSW (i) (in this case, KBSW (i)
Register VALUE (1, KBSW) corresponding to (1))
(1)) is incremented. Here, before the increment is performed, the register VALUE (1, KBSW) is set.
If the volume value set in (1)) is already the upper limit value of the volume, the volume value is not incremented. Next, the process proceeds to step S1305, in which the parameter setting register VALUE (1, KBSW
Using the volume value set in (1)), a channel pressure event (volume control event) of the MIDI channel specified by the first keyboard channel register KBSW (1) is created, and the internal MIDI
Write to the MIDI buffer as an event. Next, the process proceeds to step S1306, where the variable register i is incremented. Next, the process proceeds to step S1307, and it is determined whether the content of the variable register i (in this case, i = “2”) is larger than the content of the channel number register LAST. If the result of this determination is "YES", step S1308 is performed.
Proceed to. On the other hand, the determination result of step S1307 is "N
If "O", that is, if the content of the variable register i is equal to or less than the number of keyboard channels stored in the channel number register LAST, the process returns to step S1304, and the parameter setting register VALUE is set for the unprocessed second keyboard channel. The volume value stored in (1, KBSW (2)) is incremented (step S
1304), a channel pressure event corresponding to the second keyboard channel is created based on the new volume value, and held as an internal MIDI event (step S1305). Then, the variable register i is incremented (step S1306), and i> LAST
It is determined whether or not this is the case (step S1307). As described above, steps S1304 to S1307 are repeated until the determination result of step S1307 becomes "YES", the volume values are updated for all the set keyboard channels, and a channel pressure event based on the new volume value is created. Write to MIDI buffer. If the result of the determination in step S1307 is "YES" and the flow advances to step S1308, it is determined whether or not the number of keyboard channels stored in the channel number register LAST is one. If the result of this determination is "YES", the flow proceeds to step S1309 and the mode register MO
The contents of the parameter setting register VALUE (MODE, KBSW (1)) corresponding to the mode specified by the DE (in this case, the volume setting mode) and corresponding to the first keyboard channel KBSW (1) are displayed. 61 is displayed, and the process returns to the main routine via the panel processing routine. On the other hand, if the decision result in the step S1310 is "NO", that is, if the number of keyboard channels is "2" or more, the contents of the relative value register REL are displayed on the display 61, and the main processing is performed via the panel processing routine. Return to routine. In this case, the content of the relative value register REL displayed on the display 61 indicates the relative change (in this case, the increase) of the volume value for all the set keyboard channels.
【0025】一方、ダイヤル51がボリューム減少方向
に回動された場合は、パネル処理ルーチンを介してデク
リメント処理ルーチンが実行される。なお、このデクリ
メント処理ルーチンについてはフローチャートの図示を
省略した。デクリメント処理ルーチンが実行された場合
は、相対値レジスタRELがデクリメントされ(ステッ
プS1304相当)、設定されたすべてのキーボードチ
ャネルについてのボリューム値のデクリメント(ステッ
プS1304相当)、チャネルプレッシャイベントの作
成(ステップS1305相当)が行われる。そして、上
述したインクリメント処理ルーチンの場合と同様、ボリ
ューム値の絶対値(ステップS1309相当)あるいは
すべてのキーボードチャネルについてのボリューム値の
減少分RELが表示される(ステップS1310相
当)。On the other hand, when the dial 51 is turned in the direction of decreasing the volume, a decrement processing routine is executed via a panel processing routine. The flowchart of this decrement processing routine is omitted. When the decrement processing routine is executed, the relative value register REL is decremented (corresponding to step S1304), the volume values for all the set keyboard channels are decremented (corresponding to step S1304), and a channel pressure event is generated (step S1305). Equivalent) is performed. Then, as in the case of the above-described increment processing routine, the absolute value of the volume value (corresponding to step S1309) or the decrease REL of the volume value for all keyboard channels is displayed (corresponding to step 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に進む。そして、チャネ
ルイベント処理ルーチンを実行する。As described above, when the dial 51 is rotated, a channel pressure event is created and written into the MIDI buffer as an internal MIDI event. As a result, when the processing proceeds to the MIDI processing routine via the step S402 of the main routine, the result of the determination in the step S501 becomes "YES", and the step S5 is executed.
Go to 02. Then, from the MIDI buffer, the internal MID
The I event (in this case, the channel pressure event created in the increment processing routine or the decrement processing routine) is extracted and written to the event register EV, and the channel number of the extracted MIDI event is written to the MIDI channel register MCH. Next, the process proceeds to step S503 to determine whether or not the event stored in the event register EV is a note event. In this case, since the channel pressure event written in the event register EV is a channel event, the result of the determination in step S503 is “N
O ", and the process proceeds to step S505. Then, a channel event processing routine is executed.
【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」の場合はメインルーチンに戻る。First, in step S1101, the mode number corresponding to the event set in the event register EV, that is, the mode number "1" corresponding to the volume setting mode is written in the mode register MODE. Next, the process proceeds to step S1102, where 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”. In this case, since the mode number “1” is within the defined range, the determination result of step S1102 is “YES” and the process proceeds to step S1103. Then, of the MIDI events generated by causes other than the dial operation, such as an externally supplied MIDI event, a channel event of the type specified by the mode register MODE (when MODE = "1", a channel pressure event ) Is taken out and written into the register VALUE (MODE, MCH) as a channel event to be newly set. In step S1104, the channel pressure event held in the event register EV is sent to the tone synthesis circuit 9 via the MIDI event bus B1. As a result, the volume of the corresponding tone generation channel in the tone synthesis circuit 9 is set according to the supplied channel pressure event. When step S1104 of the channel event processing routine ends, the MIDI
Returning to the processing routine, the process proceeds to step S206, in which it is determined whether or not the content of the record flag REC is "1".
【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にお
けるすべてのキーボードチャネルに対応した発音チャネ
ルに対し、ダイヤル操作に応じたボリューム設定がなさ
れる。When a plurality of keyboard channels are set, turning the dial rotates all the keyboard channels KBSW (i) (i = 1 to LAST) to register VALUE (MODE, KBSW).
The contents of (i)) are incremented (step S1304 of the increment processing routine) or decremented, and the register VALUE (MODE, KBSW)
(I) The channel event (MODE =
If "1", the channel pressure event is MID
The data is written to the I buffer (step S1304 of the increment processing routine). The channel pressure event corresponding to each keyboard channel written in the MIDI buffer is thereafter fetched into the event register EV every time the MIDI processing routine is executed (step S502), and the channel event processing routine is executed. It is sent to the tone synthesis circuit 9 (step S1104). In this way, the volume setting according to the dial operation is performed for the tone generation channels corresponding to all the keyboard channels in the tone synthesis circuit 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に対するダイヤル操作に応じたパラメータ設定が行わ
れる。B. Other parameter settings performer by dialing, after pressing the switch corresponding to the desired parameters of the switch BC 2 -BC 4, by performing the dial operation, set the tone color number, other than the volume effect etc. Parameter It can be performed. In this case, the same processing as in the case of the volume setting described above is performed. That is, the player data "2" corresponding to the tone color set in the panel processing routine S803 is written in the mode register MODE is when the user presses the switch BC 2, when the user presses the switch BC 3 corresponding to sound image positioning data "3" is written in the mode register mODE, if the user presses the switch BC 4 data "4" corresponding to the setting of the reverb depth is written, when the user presses the switch BC 5 to set the vibrato depth The corresponding data "5" is written. Thereafter, when a dial operation is performed, all the keyboard channels KB
For SW (i) (i = 1 to LAST), the type of register VAL specified by the mode register MODE
The content of the UE (MODE, KBSW (i)) is incremented (step S130 of the increment processing routine)
4) Or decremented, register VALUE
The channel event stored in (MODE, KBSW (i)) is written to the MIDI buffer (step S1304 of the increment processing routine). And M
When the IDI processing routine is executed, the MIDI
The channel event written in the buffer is sent to the tone synthesis circuit 9 (step S1104), and parameters are set for the tone synthesis circuit 9 in accordance with the dial operation.
【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」である場合には、ダイヤル操作により、設定
中の音色番号に対応したベロシティオフセットの値が更
新される。C. When the dial is operated after the tone number is input by the tone color setting unit 22. In this case, MODE = “0” is set, the increment processing routine is started, and the determination result of step S1301 is “Yes”, and step S1321 is set. Proceed to. Then, the contents of the velocity offset register VOFST (TC / SEL) corresponding to the tone color number TC / SEL are 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 contents of the velocity offset register VOFST (TC / SEL) are displayed on the display 6
1 and returns to the main routine. Thus, MOD
If E = “0”, the value of the velocity offset corresponding to the tone color number being set is updated by the dial operation.
【0031】テンポ設定 演奏者がテンポ設定用のインクリメントキー32あるい
はデクリメントキー33を押下すると、これらのキーが
操作されたことを示すパネルイベントが操作パネルイン
ターフェイス8を介して検出される。この結果、CPU
3はパネル処理ルーチンのステップS802において、
図14にフローを示すテンポ設定ルーチンに進み、イン
クリメントキー32あるいはデクリメントキー33の操
作に応じてテンポレジスタTEMPO内のテンポデータ
を増減させ(ステップS1401)、テンポレジスタT
EMPOの内容を操作パネルインターフェイス8に送っ
て表示器31に表示させる(ステップS1402)。そ
して、テンポ設定ルーチンを終了し、パネル処理ルーチ
ンを介してメインルーチンに戻る。以後、新たにテンポ
レジスタTEMPOに書き込まれたテンポデータに基づ
いて、メトロノーム音の発生タイミングの制御が行われ
る。Tempo setting When the player presses the increment key 32 or decrement key 33 for tempo setting, a panel event indicating that these keys have been operated is detected via the operation panel interface 8. As a result, the CPU
3 in step S802 of the panel processing routine
The process proceeds to a tempo setting routine shown in FIG. 14, where the tempo data in the tempo register TEMPO is increased or decreased according to the operation of the increment key 32 or the decrement key 33 (step S1401).
The contents of the EMPO are sent to the operation panel interface 8 and displayed on the display 31 (step S1402). Then, the tempo setting routine ends, and the process returns to the main routine via the panel processing routine. Thereafter, based on the tempo data newly written to the tempo register TEMPO, the timing of the generation of the metronome sound is controlled.
【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に進み、ノートイベント処理ルーチン
を実行する。Operation in Keyboard Performance When a player presses any key on the keyboard 1, a key press event corresponding to that key is detected via the key interface 2. As a result, when the process proceeds to the key processing routine via step S404 of the main routine, the result of the determination in step S702 is “YES” and the process proceeds to step S703. Then, the note-on event corresponding to the key press event is sent to all the keyboard channels KBSW (i) (i = 1 to LA) set at that time.
ST) and writes them to the MIDI buffer as internal MIDI events. As a result, when the MIDI processing routine is started, the result of the determination in step S501 is "YES", and the flow proceeds to step S502.
Then, one of the internal MIDI events in the MIDI buffer is extracted and written into the event register EV, and the channel number of the extracted MIDI event is written into the MIDI channel register MCH. Next, the process proceeds to step S503 to determine whether or not the event stored in the event register EV is a note event. In this operation, the event is a note event,
Proceeding to step S504, a note event processing routine is executed.
【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チャネル番号に対応したものを用いて楽
音形成の制御を行う。FIG. 15 shows the flow of a note event processing routine. First, the process proceeds to step S1501 to write the note code in the note-on event stored in the event register EV into the note code register NC. Next, the flow advances to step S1502 to write the note velocity in the note-on event into the note velocity register NV. Next, the process proceeds to step S1503,
It is determined whether or not the event stored in the event register EV is a note-on 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), it is determined whether or not there is a register whose content is “0”, that is, whether or not there is an empty channel that is not sounding among all the sounding channels of the tone synthesis circuit 9. If the result of this determination is "YES", the flow proceeds to step S1505, in which any one of the available channels is written into the tone generation assignment register ACH. Next, the process proceeds to step S1506, where the tone generation assignment register AC
Channel status register ST corresponding to the contents of H
Information “1” indicating that the channel is a key being pressed is written to (ACH). Next, in step S1507, the contents of the note code register NC are written in the note code register STNC (ACH) for each sounding channel specified by the sounding assignment register ACH. Next, the process proceeds to step S1508, where the sound generation assignment channel register AC
The contents of the MIDI channel register MCH are written into the MIDI channel number register AMC (ACH) for each sounding channel designated by H. Next, step S1509
The CPU 3 proceeds to the above-described AC in the tone synthesis circuit 9.
For the sounding channel corresponding to H, the MIDI channel number stored in the MIDI channel register MCH, the note code stored in the note code register NC, the note velocity stored in the note velocity register NV, and a note-on instruction for sounding Send a signal. As a result, the tone generation channel ACH of the tone synthesis circuit 9 allows C
A tone corresponding to the note code and note velocity given from the PU 3 is formed and sounded. Here, the tone synthesizing circuit 9 stores control parameters such as tone color and volume for each MIDI channel as described above. Of these control parameters, the one corresponding to the MIDI channel number given from the CPU 3 is used. To control the formation of musical tones.
【0034】そして、ステップS1509が終了する
と、ノートイベント処理ルーチンを終了してMIDI処
理ルーチンに戻る。一方、空きチャネルが見つからず、
ステップS1504の判断結果が「NO」となった場合
はステップS1505〜S1509を実行しないでMI
DI処理ルーチンに戻り、そのステップS506におい
て、レコードフラグRECの内容が“1”か否かを判断
し、判断結果が「NO」の場合はメインルーチンに戻
る。When step S1509 ends, the note event processing routine ends, and the routine returns to the MIDI processing routine. On the other hand, if no free channels were found,
If the determination result of step S1504 is “NO”, MI is executed without executing steps S1505 to S1509.
Returning to the DI processing routine, in step S506, it is determined whether or not the content of the record flag REC is "1". If the determination result is "NO", the process returns to the main routine.
【0035】次に演奏者が鍵盤1における押下していた
鍵を離すと、その鍵に対応した離鍵イベントが鍵インタ
ーフェイス2を介して検出される。この結果、メインル
ーチンのステップS404から鍵処理ルーチンに進んだ
時、そのステップS702の判断結果が「YES」とな
って、前述の押鍵イベントの場合と同様、ステップS7
03、メイルーチンのステップS402、MIDI処理
ルーチンのステップS501、S502、S503を実
行してステップS504に進み、ノートイベント処理ル
ーチンを実行する。そして、イベントレジスタEVに格
納されたノートオフイベントのノートコードをノートコ
ードレジスタNCに書き込み(ステップS1501)、
同ノートオフイベントにおけるノートベロシティをノー
トベロシティレジスタNVに書き込む(ステップS15
02)。Next, when the player releases the pressed key on the keyboard 1, a key release event corresponding to the key is detected via the key interface 2. As a result, when proceeding to the key processing routine from step S404 of the main routine, the result of the determination in step S702 is "YES", and step S7 is performed in the same manner as in the case of the key press event described above.
03, Step S402 of the May routine, Steps S501, S502, and S503 of the MIDI processing routine are executed, and the process proceeds to Step S504 to execute the note event processing routine. Then, the note code of the note-off event stored in the event register EV is written into the note code register NC (step S1501),
The note velocity in the note-off event is written to the note velocity register NV (step 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を介してメインルーチンに戻る。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
The storage contents of NC (k) (k = 1 to 28) and the channel status register ST (k) (k = 1 to 28) are sequentially determined, and STNC (k) = NC and ST
(K) = whether there is a number k that satisfies (1), that is, a tone corresponding to the note code NC is being produced,
Further, it is determined whether or not there is a sounding channel in a note-on state. If the result of this determination is “YES”, the flow proceeds to step S 1511, where the tone channel number k found in step S 1510 is stored in the tone assignment register A.
Write to CH. Next, in step S1512, information "2" indicating that the key is being released but the key is released is written into the channel status register ST (ACH) specified by the tone generation assignment register ACH. Next, the flow advances to step S1513 to send note-off information NOFF to the sound channel specified by the sound assignment register ACH in the tone synthesis circuit 9. As a result, the mute processing is performed in the sounding channel ACH. Then, when step S1513 ends, the note event processing routine ends, and the processing returns to the MIDI processing routine.
On the other hand, if the decision result in the step S1510 is "NO", the process returns to the MIDI processing routine without executing the steps S1511 to S1513. Then, as in the case where the key is pressed, the process returns to the main routine via step S506 or further step 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の制御に使用さ
れる。Processing for an External MIDI Event M from an external device via the MIDI interface 6
When the IDI event is received, when the process proceeds to the external MIDI processing routine in step S403 of the main routine, the determination result in step S601 becomes “YES”, and the process proceeds to step S602. And the received MID
The channel number of the I event is stored in the channel number register MC.
Write to H. Next, the process proceeds to step S603, where the reception channel flag RC (MC
It is determined whether or not the content of H) is "1", that is, whether or not the received MIDI event is to be processed in this automatic performance device. The result of this determination is “YE
S ”, the process proceeds to step S604, and the received M
Write the IDI event to the MIDI buffer and return to the main routine. On the other hand, if the decision result in the step S603 is "NO", the process returns to the main routine without executing the step S604. The received MIDI event written to the MIDI buffer is read out from the MIDI buffer when the MIDI processing routine is executed, and is used for controlling the musical tone synthesizing circuit 9, similarly to the above-mentioned MIDI event generated by playing the keyboard or operating the operation panel. used.
【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が実行され、メトロノーム音が発
音される。Generation of a metronome sound When a player turns on a metronome sound instruction switch 23, an on event is detected via the operation panel interface 8. As a result, in step S803 of the panel processing routine, the metronome flag MM
The information "1" for instructing the generation of the metronome sound is written in the LED, and the LED lamp 24 is turned on. As a result, thereafter, when the interrupt processing routine is executed, the determination result of step S2102 becomes "YES" and the
Proceeding to 2103, a metronome processing routine whose flow is shown in FIG. 22 is executed. First, step S2
Go to 201, count register MCN for metronome
The contents of T are decremented by "1". Next, the process proceeds to step S2202, and it is determined whether or not the content of the metronome sound count register MCNT has become “0”, that is, whether or not it is time to generate a metronome sound. If the result of this determination is “Yes”, step S22
The process proceeds to 03, and in the case of “No”, returns to the interrupt processing routine. Next, in step S2203, the program change event for the metronome sound is set to the channel number "1".
Music synthesis circuit 9 as a MIDI event corresponding to "6"
Supply to Next, the flow advances to step S2204 to send the note-on information NON corresponding to the channel number "16" to the tone synthesis circuit 9. As a result, in the tone synthesis circuit 9,
A metronome sound is generated as a musical sound corresponding to the MIDI channel "16". Next, in step S2205, the contents of the parameter setting register VALUE (2, 16), that is, the tone number originally set to restore the tone color setting of the MIDI channel "16" to the tone synthesis circuit 9 as a program change event. send. By doing so, the MID in the tone synthesis circuit 9
The I channel "16" is not dedicated to the metronome, but can be used as a tone channel for other timbres and musical tones, like the other channels. Next, the process proceeds to step S2206,
Write the contents of the tempo register TEMPO to the metronome count register MCNT. Then, the process returns to the interrupt processing routine. The above operation is repeated every time a predetermined time elapses, and the count register for the metronome is decremented by "1". Then, the metronome processing routine is executed a number of times corresponding to the contents of the tempo register TEMPO, and every time MCNT = “0”, step S is executed.
Steps 2203 to S2206 are executed, and a metronome sound is generated.
【0039】(2)再生モード 再生チャネルの設定 RAM5内の演奏データメモリエリアからMIDIイベ
ントを再生して自動演奏を行うに際し、演奏者は再生チ
ャネルを設定する。レコードスイッチ41が押下されて
いない状態においてレコードスイッチフラグRECSW
の内容は“0”となっている。この状態においては、L
EDランプLQi(i=1〜16)のうち、再生チャネ
ルとして設定されているMIDIチャネルの番号に対応
したLEDランプが点灯する。演奏者は、LEDランプ
LQi(i=1〜16)の点灯状態により、どのMID
Iチャネルが再生チャネルとなっているかを確認する。(2) Playback Mode Setting of Playback Channel When playing a MIDI event from the performance data memory area in the RAM 5 and performing an automatic performance, the performer sets a playback channel. When the record switch 41 is not pressed, the record switch flag RECSW
Is "0". In this state, L
Among the ED lamps LQi (i = 1 to 16), the LED lamp corresponding to the MIDI channel number set as the reproduction channel is turned on. Depending on the lighting state of the LED lamps LQi (i = 1 to 16), the player can determine which MID
Check whether the I channel is a reproduction channel.
【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を点灯状態とし、パネル処理ル
ーチンを介してメインルーチンに戻る。When a MIDI channel which is not a reproduction channel is newly set as a reproduction channel, the performer selects a sequencer channel switch BMi (i = 1 to 1).
In 6), press the switch corresponding to the number of the channel to be set as the reproduction channel. When the ON event of the sequencer channel switch is detected via the operation panel interface 8, the CPU 3 executes the sequencer channel switch processing routine shown in FIG. 16 in step S803 of the panel processing routine. First, in step S1601, the number i of the pressed sequencer channel switch BMi is written to the variable register N. Next, the process proceeds to step S1602, and it is determined whether or not the content of the record switch flag RECSW is “0”. If the player has not pressed the record switch 41, RECSW = "0" (the reason will be described later), the result of the determination in step S1602 is "YES", and the flow advances to step S1603. Then, it is determined whether or not the content of the reproduction flag RSW (N) corresponding to the MIDI channel N is "1". If MIDI channel N is not set as a playback channel, RSW
(N) = “0”, the result of the determination in step S1603 is “NO”, and the flow advances to step S1604.
Then, “1” is written to the record flag RSW (N). Next, the process proceeds to step S1605, where the LED lamp L
Of the Qi (i = 1 to 16), the LED lamp LQN corresponding to the MIDI channel N is turned on, and the process returns to the main routine via the panel processing routine.
【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
QNを点灯状態とし、パネル処理ルーチンを介してメイ
ンルーチンに戻る。To exclude a MIDI channel set as a reproduction channel from the reproduction channels, the performer presses the sequencer channel switch BMi corresponding to the MIDI channel. Here, when the MIDI channel i is set as the reproduction channel, the PSW
(I) = “1”. In this case, when the sequencer channel switch processing routine is executed by pressing the sequencer channel switch BMi, 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), the LED lamp L corresponding to the MIDI channel N (= i)
The Q N and a lighting state, returns to the main routine via the panel processing routine.
【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を実行することな
く、パネル処理ルーチンを介してメインルーチンに戻
る。Automatic Performance When the reproduction channel setting is completed as described above, the performer presses the start switch 42. When the ON event of the start switch 42 is detected via the operation panel interface 8, the CPU 3 executes a start switch processing routine shown in FIG. 17 in step S803 of the panel processing routine. First,
In step S1701, it is determined whether the content of the record switch flag RECSW is “1”. If the player has not pressed the record switch 41, the determination result in step S1701 is "NO", and the flow advances to step S1702. Then, the start flag STA
It is determined whether or not the content of RT is “0”. If the result of this determination is "YES", the flow proceeds to step S1703 and "1" is written to the start flag START. Next, the flow advances to step S1704 to perform initialization processing for reproduction. By this initial setting processing, the first duration data is read from each track corresponding to the reproduction channel in the performance data memory area in the RAM 5, and the duration register DT corresponding to each reproduction channel i is read.
(I) is written. In this initial setting process, other various pointers necessary for reproduction are set. Then, the process returns to the main routine via the panel processing routine. If START = "1" when the start switch 42 is pressed, that is, if the start switch 42 is pressed during the automatic performance, step S of the start switch processing routine is executed.
When proceeding to 1702, the judgment result is "NO",
The process returns to the main routine via the panel processing routine without executing steps S1703 and 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に進む。When the start switch 42 is pressed, ST
When ART = “1”, the determination result of step S2104 becomes “Y” when the interrupt processing routine is executed thereafter.
ES ", and in step S2105, a reproduction processing routine whose flow is shown in FIG. 23 is executed. First, the process proceeds to step S2301, where "1" is initialized in the variable register i. Next, in step S2302, it is determined whether or not the content of the playback flag PSW (i) corresponding to the MIDI channel i is "1", that is, whether or not the MIDI channel i is a playback channel. If the result of this determination is "YES", the flow proceeds to step S2303 and
If “NO”, the process proceeds to step S2309.
【0044】次にステップS2303に進むと、MID
Iチャネルiに対応したデュレーションレジスタDT
(i)をデクリメントする。次にステップS2304に
進み、デュレーションレジスタDT(i)の内容が
「0」以下になったか否かを判断する。この判断結果が
「NO」である場合にはステップS2309に進む。こ
れに対し、ステップS2304の判断結果が「YES」
となった場合にはステップS2305に進み、MIDI
チャネルiに対応したイベントをRAM54内の該当す
る演奏データメモリエリアから読み出す。また、この次
に読み出すべきMIDIチャネルiのイベントのデュレ
ーションデータを演奏データメモリエリアから読み出
し、デュレーションレジスタDT(i)に書き込む。Next, in step S2303, the MID
Duration register DT corresponding to I channel i
(I) is decremented. Next, the flow advances to step S2304 to determine whether or not the content of the duration register DT (i) has become "0" or less. If the result of this determination is “NO”, the flow proceeds to step S2309. 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 the channel i is read from the corresponding performance data memory area in the RAM 54. Further, the duration data of the event of the MIDI channel i to be read next is read from the performance data memory area and written to the duration register DT (i).
【0045】次にステップS2306に進み、ダイヤル
優先フラグPRSWの内容が“1”であるか否かを判断
する。ここで、ダイヤル優先フラグPRSWは、ダイヤ
ル優先スイッチ52がオン状態とされた場合に“1”が
書き込まれ、オフ状態とされた場合に“0”が書き込ま
れる。また、PRSW=“1”である場合にはLED5
3および54のうちLED53のみが点灯状態とされ、
PRSW=“0”である場合にはLED54のみが点灯
状態とされる。これらのダイヤル優先スイッチ52の操
作に応答した処理は、パネル処理ルーチンのステップS
803において実行される。Next, the flow advances to step S2306 to determine whether or not the content of the dial priority flag PRSW is "1". Here, the dial priority flag PRSW is written with “1” when the dial priority switch 52 is turned on, and is written with “0” when the dial priority switch 52 is turned off. When PRSW = "1", LED5
Of the 3 and 54, only the LED 53 is turned on,
When PRSW = "0", only the LED 54 is turned on. The processing in response to the operation of the dial priority switch 52 is performed in step S of the panel processing routine.
This is executed at 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バッファに書き込
まれる。If the contents of the dial priority flag PRSW are "1", the result of the determination in step S2306 is "Y".
ES ”, and proceeds to step S2307. Then, it is determined whether or not the MIDI event read from the performance data memory area is a note-on event or a note-off event. If the result of this determination is "YES", the flow proceeds to step S2308, where the MIDI event read from the performance data memory area is written to the MIDI buffer as an internal MIDI event. Then, the process proceeds to step S2309. On the other hand, if the decision result in the step S2307 is “NO”, that is, if the MIDI event read from the performance data memory area is not a note event, the process proceeds to the step S2309 without executing the step S2308. As described above, when the content of the dial priority flag PRSW is "1", only the note events among the MIDI events reproduced from the performance data memory area are written in the MIDI buffer, and the channel events such as the channel pressure event and the program change event are performed. Channel events are not written to the MIDI buffer. On the other hand, when the dial operation is performed in the reproduction mode, the increment processing routine or the decrement processing routine is executed as described in detail in the description of the musical instrument mode, and a channel event is generated and written into the MIDI buffer. Also,
If a note event is generated by playing the keyboard, or a MIDI event is supplied from an external device,
Those MIDI events are written to the MIDI buffer.
【0047】MIDIバッファに書き込まれたMIDI
イベントは、その後、MIDI処理ルーチンが実行され
ることにより、イベントレジスタEVに取り込まれる
(ステップS502)。そして、イベントレジスタEV
に取り込まれたMIDIイベントがノートイベントであ
る場合にはノートイベント処理ルーチンが実行され、イ
ベントレジスタEVに取り込まれたノートイベントに対
応したパラメータが楽音合成回路9へと送られる(ステ
ップS1509あるいはS1513)。また、イベント
レジスタEVに取り込まれたMIDIイベントがチャネ
ルイベントである場合にはチャネルイベント処理ルーチ
ンが実行され、イベントレジスタEVに取り込まれたチ
ャネルイベントに対応したパラメータが楽音合成回路9
へと送られる(ステップS1104)。このようにPR
SW=“1”の場合には演奏データメモリエリアからの
再生イベントのうちノートイベントのみが楽音合成回路
9の制御に使用される。そして、楽音合成回路9のボリ
ューム制御、音色制御等はダイヤル操作等によって行わ
れ、演奏データメモリエリアから再生されるチャネルイ
ベントは無視される。MIDI written to MIDI buffer
The event is then fetched into the event register EV by executing the MIDI processing routine (step S502). And the event register EV
If the MIDI event fetched into the event register is a note event, a note event processing routine is executed, and a parameter corresponding to the note event fetched into the event register EV is sent to the tone synthesis circuit 9 (step S1509 or S1513). . If the MIDI event fetched into the event register EV is a channel event, a channel event processing routine is executed, and parameters corresponding to the channel event fetched into the event register EV are stored in the tone synthesis circuit 9.
(Step S1104). In this way PR
When SW = "1", only the note event among the reproduction events from the performance data memory area is used for controlling the tone synthesis circuit 9. The volume control, tone color control and the like of the tone synthesis circuit 9 are performed by dial operation or the like, and channel events reproduced from the performance data memory area are ignored.
【0048】一方、ダイヤル優先フラグPRSWの内容
が“0”であると、ステップS2306の判断結果が
「NO」となってステップS2308に進み、演奏デー
タメモリエリアから読み出したMIDIイベントをMI
DIバッファに書き込む。そして、ステップS2309
に進む。MIDIバッファに書き込まれたイベントは、
その後、MIDI処理ルーチンが実行されることによ
り、イベントレジスタEVに取り込まれる(ステップS
502)。そして、ノートイベント処理ルーチンあるい
はチャネルイベント処理ルーチンが実行されることによ
り、イベントレジスタEVに取り込まれたイベントに対
応したパラメータが楽音合成回路9へと送られる。この
ように、PRSW=“0”の場合には演奏データメモリ
エリアからの再生イベントされるすべてのMIDIイベ
ントが楽音合成回路9の制御に使用される。On the other hand, if the content of the dial priority flag PRSW is "0", the decision result in the step S2306 becomes "NO", and the process advances to the step S2308 to convert the MIDI event read from the performance data memory area into the MIDI event.
Write to DI buffer. Then, step S2309
Proceed to. The event written to the MIDI buffer is
Thereafter, by executing the MIDI processing routine, the event is taken into the event register EV (Step S).
502). Then, by executing the note event processing routine or the channel event processing routine, parameters corresponding to the event fetched into the event register EV are sent to the tone synthesis circuit 9. In this way, when PRSW = "0", all MIDI events reproduced from the performance data memory area are used for controlling the tone synthesis circuit 9.
【0049】次にステップS2309に進むと、変数レ
ジスタiをインクリメントする。次にステップS231
0に進み、i>16となったか否かを判断する。この判
断結果が「NO」の場合はステップS2032に戻り、
新たなMIDIチャネルiに関し上述と同様な処理を行
う。そして、ステップS2310の判断結果が「YE
S」となると、ステップS2311に進む。そして、す
べての再生チャネルについて、MIDIイベントの再生
が終了したか否かを判断する。この判断結果が「NO」
の場合は再生処理ルーチンを終了し、割込処理ルーチン
に戻る。そして、割込処理ルーチンが終了した後、割込
処理によって中断していた処理を再開する。以後、一定
時間が経過する毎に割込処理ルーチンが実行され、上述
と同様な処理が繰り返される。Next, at step S2309, the variable register i is incremented. Next, step S231
The process proceeds to 0, and it is determined whether or not i> 16. If this determination is "NO", the flow returns to step S2032,
The same processing as described above is performed for a new MIDI channel i. Then, the determination result of step S2310 is “YE
If "S" is reached, the process proceeds to step S2311. Then, it is determined whether or not the reproduction of the MIDI event has been completed for all the reproduction channels. If the result of this determination is "NO"
In the case of, the reproduction processing routine ends, and the processing returns to the interruption processing routine. Then, after the interruption processing routine ends, the processing interrupted by the interruption processing is resumed. Thereafter, each time a predetermined time elapses, an interrupt processing routine is executed, and the same processing as described above is repeated.
【0050】RAM5内の演奏データメモリエリアから
再生チャネルのMIDIイベントがすべて読み出される
と、割込処理ルーチンを介して再生処理ルーチンが実行
される際、ステップS2311の判断結果が「YES」
となる。この結果、ステップS2312に進み、スター
トフラグSTARTに“0”を書き込み、割込処理ルー
チンに戻る。以後、割込処理ルーチンが実行されたとし
ても、START=“0”であるため再生処理ルーチン
は実行されない。このようにして自動演奏が終了する。When all the MIDI events of the reproduction channel are read from the performance data memory area in the RAM 5, when the reproduction processing routine is executed via the interruption processing routine, the result of the determination in step S2311 is "YES".
Becomes As a result, the flow advances to step S2312 to write "0" in the start flag START, and returns to the interrupt processing routine. Thereafter, even if the interrupt processing routine is executed, the reproduction processing routine is not executed since START = "0". Thus, the automatic performance ends.
【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が実行されることなくストップス
イッチ処理ルーチンが終了する。When the player presses the stop switch 43 during or after the automatic performance, the ON event is detected. As a result, the CPU 3 executes the stop switch processing routine shown in FIG. 20 via the panel processing routine. First, proceed to step S2001,
It is determined whether or not the content of the start flag START is "1". If the result of this determination is “Yes”, that is, if an automatic performance is currently being performed, step S2
In step 002, “0” is written to the start flag START. Next, the process proceeds to step S2003, in which the tone generation channels in the tone generation state in the tone synthesis circuit 9, that is, the corresponding channel status registers ST
The note-off information NOFF is supplied to all sounding channels i in which the content of (i) is “1”. As a result, the tone synthesis circuit 9 performs a silencing process for all tones that were being sounded. 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 is “No”, and steps S2002 and S200
Then, the process proceeds to Step S2004 without executing Step 3. Next, in step S2004, it is determined whether or not the content of the record flag REC is "1". REC = "0"
In this case, the result of this determination is “No”, and the
The stop switch processing routine ends without performing steps 2004 to S2007.
【0052】(3)再生録音モード 再生録音モードにおいては、RAM5内の演奏データメ
モリエリア内のMIDIイベントの再生処理と、鍵盤演
奏あるいは操作パネルの操作によって生じるMIDIイ
ベントまたは外来のMIDIイベントのRAM5への録
音処理とが並行して実行される。この再生録音モードに
よる処理を実行する前に、演奏者は再生チャネルおよび
録音チャネルの設定を行う。再生チャネルの設定につい
ては既に説明したので、以下では録音チャネルの設定の
ための処理のみについて説明する。(3) Reproduction / Recording Mode In the reproduction / recording mode, the reproduction process of the MIDI event in the performance data memory area in the RAM 5 and the MIDI event generated by the keyboard performance or the operation of the operation panel or the external MIDI event to the RAM 5 are performed. Is performed in parallel with the recording process. Before executing the processing in the reproduction / recording mode, the performer sets the reproduction channel and the recording channel. Since the setting of the reproduction channel has already been described, only the process for setting the recording channel will be described below.
【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チャネルが録音チャネルと
なっているかを確認する。Setting of Recording Channel At the time of recording, the player first presses the record switch 41. As a result, the ON event of the record switch 41 is detected via the operation panel interface 8, and the CPU 3 proceeds to step S of the panel processing routine.
At 803, a record switch processing routine whose flow is shown in FIG. 18 is executed. First, step S1801
In, it is determined whether an ON event of the record switch 41 has been detected. In this case, step S180
The judgment result of step 1 becomes "Yes" and step S1802
To write "1" in the record switch flag RECSW. Next, the process proceeds to step S1803, where the record flag RSW corresponding to each channel at that time is
(I) The contents of (i = 1 to 16) are determined, and RSW (i)
All channel numbers i satisfying "1", that is, the numbers of the MIDI channels already set as recording channels at that time are detected. And L
The LED lamp corresponding to the detected channel number i among the ED lamps LQi (i = 1 to 16) is turned on. Then, the process returns to the main routine via the panel processing routine. The player confirms which MIDI channel is the recording channel by checking the lighting state of the LED lamps LQi (i = 1 to 16).
【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)によって録音チャネ
ルが表示され、押下されていない場合には再生チャネル
が表示されることとなる。When the player releases his / her finger from the record switch 41, an off event of the record switch 41 is detected via the operation panel interface 8, and the CPU 3
In step S803 of the panel processing routine, the record switch processing routine is executed again. in this case,
Since the off event of the record switch 41 is detected, the process proceeds to step S1805 via steps S1801 and S1804. Then, “0” is written to the record switch flag RECSW. Then step S
Proceeding to 1805, the contents of the reproduction flag PSW (i) (i = 1 to 16) corresponding to each channel at that time are determined, and all channel numbers i satisfying PSW (i) = "1", that is, The MIDI channel number set as the reproduction channel at that time is detected. Then, among the LED lamps LQi (i = 1 to 16), the LED lamp corresponding to the detected channel number i is turned on. Then, the process returns to the main routine via the panel processing routine. As a result of performing such processing, the content of the record switch flag RECSW becomes “1” only while the record switch 41 is pressed, and becomes “0” when the record switch 41 is not pressed. When the record switch 41 is pressed, L
The recording channel is displayed by the ED lamp LQi (i = 1 to 16), and when not pressed, the reproduction channel is displayed.
【0055】録音チャネルとして設定されたMIDIチ
ャネルを録音チャネルから除外したい場合、演奏者はレ
コードスイッチ41を押下した状態で、そのMIDIチ
ャネルに対応したシーケンサチャネルスイッチBMiを
押下する。この場合、シーケンサチャネルスイッチ処理
ルーチンが実行されると、ステップS1608まで進
み、その判断結果が「YES」となる。そして、レコー
ドフラグRSW(N)(=RSW(i))に“0”を書
き込み(ステップS1611)、LEDランプLQNを
消灯し(ステップS1611)、パネル処理ルーチンを
介してメインルーチンに戻る。以上のような処理が行わ
れることにより、演奏者が望むMIDIチャネルが録音
チャネルとして設定される。When it is desired to exclude a MIDI channel set as a recording channel from recording channels, the player presses the sequencer channel switch BMi corresponding to the MIDI channel while holding down the record switch 41. In this case, when the sequencer channel switch processing routine is executed, the process proceeds to step S1608, and the determination result is "YES". Then, the record flag RSW (N) writes "0" in (= RSW (i)) (step S1611), LED lamp turns off the LQ N (step S1611), returns to the main routine via the panel processing routine. By performing the above processing, the MIDI channel desired by the player is set as the recording channel.
【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を実行するこ
となく、パネル処理ルーチンを介してメインルーチンに
戻る。Automatic Performance and Recording When the setting of the reproduction channel and the recording channel is completed by the processing described above, the player switches 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". Further, when the ON event of the start switch 42 is detected via the operation panel interface 8, the CPU 3 executes a start switch processing routine whose flow is shown in FIG. 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 this determination is "YES", the flow proceeds to step S1706, and "1" is written to the start flag START and the record flag REC. Next, the process advances to step S1707 to perform initialization processing of various pointers and the like for recording. Then, the process returns to the main routine via the panel processing routine. When the record switch 41 is pressed, REC =
If it is "1", that is, if both the start switch 42 and the record switch 41 are pressed during the recording operation, the process proceeds to step S1705 of the start switch processing routine, and the determination result is "NO". And returns to the main routine via the panel processing routine without executing steps S1706 and 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
バッファから取り出され、各々に対応した楽音合成回路
の制御が実行される。When START = "1",
As in the case of the above-described reproduction mode, when the interruption processing routine is executed thereafter, the reproduction processing routine is executed in step S2105. Then, when the MIDI event corresponding to the reproduction channel is read from the performance data memory area of the RAM 5 by executing the reproduction processing routine (step S2305), the event is set to M.
The data is sequentially written to the IDI buffer. When a MIDI event occurs due to a keyboard operation or an operation of the operation panel, or when a MIDI event is received from an external device, the MIDI event is also transmitted to the MIDI device.
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
The MIDI event is extracted from the buffer and written into the event register EV, and the MIDI channel number of the MIDI event is stored in the channel number register M.
It is written to CH (step S502). Then, a note event processing routine (step S50) is performed based on the MIDI event captured in the event register EV.
4) Alternatively, a channel event processing routine (step S505) is executed, and parameters corresponding to the channel event taken into the event register EV are sent to the tone synthesis circuit 9. As described above, the MIDI event read out from the RAM 5 and the MIDI event generated by the keyboard operation or the operation of the operation panel, or the MIDI event supplied from the external device, are transmitted.
It is taken out of the buffer and the control of the tone synthesis circuit corresponding to each is executed.
【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処理ルーチン
が起動される毎に同様の処理が行われる。Next, when the flow advances to step S506, REC =
Since it is “1”, the judgment result is “Yes”,
In step S507, a recording processing routine whose flow is shown in FIG. 19 is executed. First, the process proceeds to step S1901 to determine whether the content of the record flag RSW (MCH) corresponding to the MIDI channel MCH is “1”, that is,
In the MIDI processing routine, it is determined whether or not the MIDI event extracted from the MIDI buffer and written in the event register EV is a MIDI event to be recorded. If the result of this determination is “Yes”, the flow proceeds to step S1902. Then, the elapsed time from when the MIDI event was written before that to the buffer track corresponding to the MIDI channel MCH in the RAM 5 until the present time is written as duration information, and the MIDI event in the event register EV is written as event information. . Then, the process returns to the main routine via the MIDI processing routine. Thereafter, the same processing is performed every time the MIDI processing routine is started.
【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以降の処理が
実行され、録音が終了する。When all the MIDI events of the reproduction channel are read from the performance data memory area in the RAM 5, step S2312 of the reproduction processing routine is executed as in the case of the above-described reproduction mode, and START =
It becomes "0" and the automatic performance ends. When the player presses the stop switch 43, a stop switch processing routine is executed, and the process proceeds to step S2004. If REC = “1”, step S
The judgment result of 2004 becomes "Yes" and the step S2
In step 004, “0” is written to the record flag REC. Next, proceeding to step S2006, note-off information and an end code are written to buffer tracks corresponding to all recording channels. In step S2007, the contents of the buffer tracks corresponding to the respective recording channels are written into the performance data memory areas corresponding to the respective MIDI channel numbers. Then, the stop switch processing routine ends, and the process returns to the main routine. Thereafter, MI
Even if any MIDI event is written to the DI buffer and the MIDI processing routine is executed, REC
= "0", the recording processing routine is not executed.
Thus, the recording ends. If the stop switch 43 is pressed before the automatic performance ends, steps S2002 and S20 of the stop switch processing routine are performed.
After step 03, the processing after step S2004 is executed, and the recording ends.
【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チ
ャネルに対応した演奏データメモリエリアの内容にマー
ジされる。As a result of the above processing being performed, the RAM
5, the contents of the performance data memory area are updated as follows. a. A performance data memory area corresponding to a MIDI channel set as a recording channel but not set as a reproduction channel. MIDI events that existed before recording in this performance data area are erased by recording. And during recording, keyboard 1
Alternatively, when a MIDI event is generated by operating the operation panel 7, or when a MIDI event is received from an external device, the MIDI event corresponding to the channel number is written to the performance data memory area. b. Performance data area corresponding to a MIDI channel set as a recording channel and a playback channel The content of the performance data area is a MIDI event newly generated during operation in the playback / recording mode with respect to the MIDI event stored before recording. Are updated to the contents obtained by merging the one corresponding to the MIDI channel number. More specifically, it is as follows. b1. When a keyboard channel that matches the recording channel is set If a keyboard performance is performed during recording, the contents of the performance data memory area corresponding to the keyboard channel will be changed to the contents stored in the keyboard before recording. Is a merged note event generated by Recording is performed with the dial priority flag PRSW being "1".
If the dial 51 is operated at that time, the channel event generated in response to the dial operation is written to the performance data memory area corresponding to the keyboard channel. In this case, the channel event in the performance data memory area corresponding to the keyboard channel before recording is deleted. On the other hand, dial priority flag PRSW
Is recorded with "0", and the dial 51
Is operated, the channel event generated in response to the dial operation is merged with the contents of the performance data memory area corresponding to the keyboard channel. b2. When a MIDI event matching the recording channel is received from an external device, the received MIDI event is merged with the contents of the performance data memory area corresponding to the corresponding MIDI channel.
【0061】[0061]
【発明の効果】以上説明したように、この発明によれ
ば、自動演奏を行いながら、所望の演奏データを追加す
ることができ、演奏データの編集効率が向上するという
効果が得られる。また、この発明によれば、記憶手段に
既に記憶されている演奏データとは異なる効果設定等で
得られる演奏データに基づくマージ記録をすることがで
きる効果が得られる。As described above, according to the present invention,
If, while automatic playing, it is possible to add the desired performance data, the effect is obtained that improves editing efficiency of performance data. Further, according to the present invention, there is obtained an effect that merge recording can be performed based on performance data obtained by setting effects different from performance data already stored in the storage means.
【図1】 この発明の一実施例による自動演奏装置の構
成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of an automatic performance device according to an embodiment of the present invention.
【図2】 同実施例の操作パネルを示す平面図である。FIG. 2 is a plan view showing an operation panel of the embodiment.
【図3】 同実施例において実行される各ルーチンおよ
びそれらの関係を説明する図である。FIG. 3 is a diagram for explaining routines executed in the embodiment and their relationships;
【図4】 同実施例の動作を説明するフローチャートで
ある。FIG. 4 is a flowchart illustrating the operation of the embodiment.
【図5】 同実施例の動作を説明するフローチャートで
ある。FIG. 5 is a flowchart illustrating the operation of the embodiment.
【図6】 同実施例の動作を説明するフローチャートで
ある。FIG. 6 is a flowchart illustrating the operation of the embodiment.
【図7】 同実施例の動作を説明するフローチャートで
ある。FIG. 7 is a flowchart illustrating the operation of the embodiment.
【図8】 同実施例の動作を説明するフローチャートで
ある。FIG. 8 is a flowchart illustrating the operation of the embodiment.
【図9】 同実施例の動作を説明するフローチャートで
ある。FIG. 9 is a flowchart illustrating the operation of the embodiment.
【図10】 同実施例の動作を説明するフローチャート
である。FIG. 10 is a flowchart illustrating the operation of the embodiment.
【図11】 同実施例の動作を説明するフローチャート
である。FIG. 11 is a flowchart illustrating the operation of the embodiment.
【図12】 同実施例の動作を説明するフローチャート
である。FIG. 12 is a flowchart illustrating the operation of the embodiment.
【図13】 同実施例の動作を説明するフローチャート
である。FIG. 13 is a flowchart illustrating the operation of the embodiment.
【図14】 同実施例の動作を説明するフローチャート
である。FIG. 14 is a flowchart illustrating the operation of the embodiment.
【図15】 同実施例の動作を説明するフローチャート
である。FIG. 15 is a flowchart illustrating the operation of the embodiment.
【図16】 同実施例の動作を説明するフローチャート
である。FIG. 16 is a flowchart illustrating the operation of the embodiment.
【図17】 同実施例の動作を説明するフローチャート
である。FIG. 17 is a flowchart illustrating the operation of the embodiment.
【図18】 同実施例の動作を説明するフローチャート
である。FIG. 18 is a flowchart illustrating the operation of the embodiment.
【図19】 同実施例の動作を説明するフローチャート
である。FIG. 19 is a flowchart illustrating the operation of the embodiment.
【図20】 同実施例の動作を説明するフローチャート
である。FIG. 20 is a flowchart illustrating the operation of the embodiment.
【図21】 同実施例の動作を説明するフローチャート
である。FIG. 21 is a flowchart illustrating the operation of the embodiment.
【図22】 同実施例の動作を説明するフローチャート
である。FIG. 22 is a flowchart illustrating the operation of the embodiment.
【図23】 同実施例の動作を説明するフローチャート
である。FIG. 23 is a flowchart illustrating the operation of the embodiment.
1……鍵盤、3……CPU、5……RAM、9……楽音
合成回路。1 ... keyboard, 3 ... CPU, 5 ... RAM, 9 ... tone synthesis circuit.
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G10H 1/00 101 - 102 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G10H 1/00 101-102
Claims (1)
イベントデータと、前記楽音の発生態様を制御する制御
データとを含む演奏データを記憶する演奏データ記憶手
段と、 少なくとも楽音の発生を制御する操作子および楽音の発
生態様を制御する操作子を含む演奏操作子を有し、前記
楽音の発生を制御する操作子の操作に応じてノートイベ
ントデータを、前記楽音の発生態様を制御する操作子の
操作に応じて制御データを各々演奏データとして出力す
る演奏手段と、 前記演奏データ記憶手段から前記演奏データを順次読み
出す再生手段と、 選 択手段と、 前記選択手段によって第1の選択肢が選択された時、前
記再生手段によって読み出される演奏データからノート
イベントデータのみを抽出して出力し、前記選択手段に
よって第2の選択肢が選択された時、前記再生手段によ
って読み出される演奏データをそのまま出力する抽出手
段と、 前記抽出手段の出力および前記演奏手段によって出力さ
れる演奏データを逐次記憶するバッファ記憶手段と、 前記バッファ記憶手段に記憶された演奏データを前記演
奏データ記憶手段に書き込む書込手段と、前記バッファ記憶手段内のデータに従って楽音を形成す
る楽音形成手段と、 を具備し、前記選択手段によって第1の選択肢が選択さ
れた時、前記バッファ記憶手段に、前記演奏データ記憶
手段から読み出された演奏データの内のノートイベント
データと、前記演奏手段によって出力される演奏データ
が記憶され、前記演奏データ記憶手段から読み出された
演奏データの内の制御データは記憶されないことを特徴
とする自動演奏装置。1. Performance data storage means for storing performance data including at least note event data for controlling the generation of musical tones and control data for controlling the generation mode of the musical tones, and an operator for controlling at least the generation of musical tones And a performance control including a control for controlling the generation of the musical tone, and operating the control for controlling the generation of the musical tone with the note event data according to the operation of the control for controlling the generation of the musical tone. and playing means for outputting control data respectively as performance data in accordance with a reproducing means for sequentially reading out the performance data from the performance data storage means, and selecting means, when the first option is selected by the selection means And extracting and outputting only note event data from the performance data read by the reproducing means, and selecting the second option by the selecting means. Is selected, the extracting means for directly outputting the performance data read by the reproducing means, the buffer storing means for sequentially storing the output of the extracting means and the performance data output by the playing means, and the buffer storing means Writing means for writing the performance data stored in the buffer into the performance data storage means, and forming a musical tone in accordance with the data in the buffer storage means.
Sound generating means , wherein when the first option is selected by the selecting means, note event data of the performance data read from the performance data storing means is stored in the buffer storing means; An automatic performance apparatus, wherein performance data output by the performance means is stored, and control data of the performance data read from the performance data storage means is not stored.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP00601592A JP3237161B2 (en) | 1992-01-16 | 1992-01-16 | Automatic performance device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP00601592A JP3237161B2 (en) | 1992-01-16 | 1992-01-16 | Automatic performance device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0651762A JPH0651762A (en) | 1994-02-25 |
| JP3237161B2 true JP3237161B2 (en) | 2001-12-10 |
Family
ID=11626881
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP00601592A Expired - Fee Related JP3237161B2 (en) | 1992-01-16 | 1992-01-16 | Automatic performance device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3237161B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3196681B2 (en) | 1997-03-13 | 2001-08-06 | ヤマハ株式会社 | Communication data temporary storage device |
| JP4792819B2 (en) * | 2005-06-03 | 2011-10-12 | ヤマハ株式会社 | Remote editing method and remote editing system |
-
1992
- 1992-01-16 JP JP00601592A patent/JP3237161B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0651762A (en) | 1994-02-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20080069383A1 (en) | Mixing apparatus for audio data, method of controlling the same, and mixing control program | |
| US20030177890A1 (en) | Audio system for reproducing plural parts of music in perfect ensemble | |
| US6403871B2 (en) | Tone generation method based on combination of wave parts and tone-generating-data recording method and apparatus | |
| JP2019168517A (en) | Electronic musical instrument, method, and program | |
| JP3838353B2 (en) | Musical sound generation apparatus and computer program for musical sound generation | |
| JP7131668B2 (en) | SOUND GENERATING DEVICE, ELECTRONIC INSTRUMENT, SOUND GENERATING METHOD, AND PROGRAM | |
| JP3237161B2 (en) | Automatic performance device | |
| US7323630B2 (en) | Automatic performance system | |
| US7358433B2 (en) | Automatic accompaniment apparatus and a storage device storing a program for operating the same | |
| JP3724410B2 (en) | Music editing apparatus for portable terminal and music editing program used for portable terminal | |
| JP2639271B2 (en) | Automatic performance device | |
| JP3438229B2 (en) | Electronic musical instrument | |
| US6535772B1 (en) | Waveform data generation method and apparatus capable of switching between real-time generation and non-real-time generation | |
| JP3724409B2 (en) | Music playback device in portable terminal and music playback program used in mobile terminal | |
| JP4211650B2 (en) | Accompaniment pattern generation apparatus and accompaniment pattern generation program | |
| JPH04141696A (en) | Musical sound playback device | |
| JP4787258B2 (en) | Tone storage device, tone storage method, computer program for storing tone | |
| JP4581965B2 (en) | Music material processing method and music material processing system | |
| JP2869574B2 (en) | Musical sound wave generator | |
| JP2007122634A (en) | Method and system for calculating charge for using musical material | |
| JP3669335B2 (en) | Automatic performance device | |
| JP3758041B2 (en) | Musical sound control data generator | |
| JP3121010B2 (en) | Electronic musical instrument controller | |
| JP6996148B2 (en) | Music generators, methods, programs, and electronic musical instruments | |
| JP4803043B2 (en) | Musical sound generating apparatus and program |
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: 20010904 |
|
| 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: 20071005 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081005 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091005 Year of fee payment: 8 |
|
| LAPS | Cancellation because of no payment of annual fees |