JPH0827627B2 - Automatic playing device - Google Patents

Automatic playing device

Info

Publication number
JPH0827627B2
JPH0827627B2 JP63006414A JP641488A JPH0827627B2 JP H0827627 B2 JPH0827627 B2 JP H0827627B2 JP 63006414 A JP63006414 A JP 63006414A JP 641488 A JP641488 A JP 641488A JP H0827627 B2 JPH0827627 B2 JP H0827627B2
Authority
JP
Japan
Prior art keywords
rhythm
mode
data
bar
switch
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 - Lifetime
Application number
JP63006414A
Other languages
Japanese (ja)
Other versions
JPH01182891A (en
Inventor
幸裕 河口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP63006414A priority Critical patent/JPH0827627B2/en
Publication of JPH01182891A publication Critical patent/JPH01182891A/en
Publication of JPH0827627B2 publication Critical patent/JPH0827627B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

「産業上の利用分野」 この発明は、予めメモリに記憶された演奏データを読
み出して自動演奏を行う自動演奏装置に係り、特に、自
動演奏に先だって行なわれる演奏データの入力作業を円
滑に行うことができる自動演奏装置に関する。 「従来の技術」 一般に、自動演奏装置は、予め入力された1曲分の演
奏データをメモリ内に記憶しており、自動演奏が指示さ
れると、そのメモリから1曲分の演奏データを順次読み
出し、読み出した演奏データに基づいて楽音を発生する
ようになっている。 「発明が解決しようとする課題」 ところで、従来の自動演奏装置において、メモリ内に
演奏データを記憶する時(以下書込モードと称する。)
に複数の演奏パターンの演奏データ(以下パターンと称
する。)をユーザーが記録し、再生時(以下再生モード
と称する。)に記憶されたパターンを楽曲の進行に従っ
て順次読み出す場合、書込モードで書き込んだパターン
がどのような内容であったかを確認するためには、一旦
書込モードを抜け、再生モードにし、実際にパターンを
再生して確認していた。このため、書き込みと確認の都
度、書込モードと再生モードを切り換えなくてはなら
ず、確認の操作が煩わしいと共に、書き込みと確認の動
作の切り換えを即座に行うことができず、作業効率が悪
かった。 この発明は上述した事情に鑑みてなされたもので、書
込モードで書き込んだパターンの確認作業にともなう煩
わしさを解消すると共に、作業効率の改善を図ることが
できる自動演奏装置を提供することを目的としている。 「課題を解決するための手段」 この発明は、書込モードと再生モードのいずれかを指
定するモード指定手段と、楽曲の演奏情報を記憶するた
めの書き込み可能な記憶手段と、演奏情報を入力する入
力手段と、前記モード指定手段にて書込モードが指定さ
れているとき、前記入力手段によって入力された演奏情
報を前記記憶手段に書き込む書込手段と、確認指示操作
子と、前記モード指定手段にて書込モードが指定されて
いるとき、前記確認指示操作子の操作に応答して、前記
書込手段によって直前に演奏情報が書き込まれた所定の
区間に係る演奏情報に基づいて、該区間の自動演奏を行
い、該区間の自動演奏終了後は再び書込状態に復帰させ
る確認手段と、前記モード指定手段にて再生モードが指
定されているとき、前記記憶手段に記憶されている演奏
情報を楽曲の進行に従って順次読み出し、該読み出され
た演奏情報に基づいて自動演奏を行う演奏手段とを具備
することを特徴としている。 「作用」 上記の構成によれば、書込モード時に、確認指示操作
子を操作すると、該操作に応答して、確認手段が書込手
段によって直前に演奏情報が書き込まれた所定の区間に
係る演奏情報に基づいて該区間の自動演奏を行い、該区
間の自動演奏終了後は再び書込状態に復帰させるよう動
作する。すなわち、書込モード時に、書込モードから再
生モードへ切り換える操作を行わなくても、確認指示操
作子を操作することによって所定の区間の演奏情報、例
えば1小節分の演奏情報の確認を行うことができ、そし
て、確認が終了すると再び自動的に書込状態に復帰す
る。これにより、演奏情報の書き込みの確認作業を極め
て円滑かつ短時間に行うことが可能となる。 「実施例」 以下、図面を参照してこの発明の一実施例について説
明する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic performance device that reads out performance data stored in a memory in advance and performs automatic performance, and in particular, enables smooth performance of input operation of performance data prior to automatic performance. The present invention relates to an automatic performance device that can "Prior Art" In general, an automatic performance device stores performance data for one song that has been input in advance in a memory, and when an automatic performance is instructed, the performance data for one song is sequentially output from the memory. The musical tone is generated based on the read performance data. [Problems to be Solved by the Invention] By the way, when storing performance data in a memory in a conventional automatic musical instrument (hereinafter referred to as a writing mode).
When the user records performance data of a plurality of performance patterns (hereinafter referred to as a pattern), and when the patterns stored during reproduction (hereinafter referred to as a reproduction mode) are sequentially read out as the music progresses, the write mode is used. However, in order to confirm what the pattern was like, the write mode was temporarily exited, the reproduction mode was set, and the pattern was actually reproduced and confirmed. For this reason, it is necessary to switch between the write mode and the playback mode each time writing and checking are performed, and the checking operation is bothersome, and the writing and checking operations cannot be switched immediately, resulting in poor work efficiency. It was The present invention has been made in view of the above-described circumstances, and an object of the present invention is to provide an automatic performance device capable of eliminating the troublesomeness involved in the confirmation work of a pattern written in the writing mode and improving the work efficiency. Has an aim. "Means for Solving the Problem" The present invention relates to a mode designating means for designating either a writing mode or a reproduction mode, a writable storage means for storing performance information of a musical composition, and performance information input. Input means for writing, and a writing means for writing the performance information input by the input means in the storage means when the writing mode is designated by the mode designating means, a confirmation instruction operator, and the mode designation When the writing mode is designated by the means, in response to the operation of the confirmation instruction operator, based on the performance information related to the predetermined section in which the performance information is written immediately before by the writing means, Confirmation means for performing an automatic performance of a section and returning to the written state again after the automatic performance of the section is finished, and when the reproduction mode is designated by the mode designating means, it is stored in the storage means. It is characterized by further comprising: a performance means for sequentially reading out the performance information that is being played as the music progresses and performing an automatic performance based on the read performance information. [Operation] According to the above configuration, when the confirmation instruction manipulator is operated in the writing mode, in response to the operation, the confirmation means is related to the predetermined section in which the performance information is written immediately before by the writing means. The automatic performance of the section is performed based on the performance information, and after the automatic performance of the section is completed, the writing state is restored again. That is, in the writing mode, even if the operation for switching from the writing mode to the reproducing mode is not performed, the performance information of a predetermined section, for example, the performance information for one measure can be confirmed by operating the confirmation instruction operator. Then, when the confirmation is completed, the writing state is automatically restored again. As a result, it becomes possible to perform the confirmation work of writing the performance information extremely smoothly and in a short time. [Embodiment] An embodiment of the present invention will be described below with reference to the drawings.

【構成】【Constitution】

第1図は同実施例による自動演奏装置を適用した電子
楽器の構成を示すブロック図である。 この電子楽器は、基本的に2つの機能を有しており、
その第1は、通常の電子オルガンとしてのメロディー演
奏機能、すなわち、演奏者によって押鍵操作された鍵盤
に対応した楽音を発生する基本的な機能であり、その第
2は、自動リズム演奏機能、すなわち、予め演奏データ
として各種リズムパターンの種類を1小節毎に入力設定
しておくことにより、演奏者によるメロディー演奏に合
わせて自動的にリズム演奏を行う機能である。 この電子楽器は、鍵盤10および操作パネル20を備えて
いる。鍵盤10は楽音を指定する複数の鍵からなり、各鍵
の押離鍵は鍵スイッチ回路10a内に各鍵に対応して設け
た複数の鍵スイッチの開閉成により検出されるようにな
っており、この鍵スイッチ回路10aはバスラインBUSに接
続されている。 操作パネル20には、第2図に示すように、各種スイッ
チと、表示器が設けられており、これらの内、主要なも
のについて説明すれば、以下の通りである。 □リズムパターン選択スイッチRS1〜RS40…ロック、ポ
ップ、ファンク、16ビート、シャッフルなどのポップス
系、およびレゲエ、サンバ、タンゴ、ボサノバなどのラ
テン系の他に、ワルツ、マーチ、ツイスト、スイング、
ジャズなどを含む40種類のリズムパターンの中から任意
のリズムパターンを選択するスイッチであり、RS1〜RS
20は、曲番号1〜20の中から任意の番号を選択する曲番
号選択スイッチとしての機能も兼備している。 □ソングスイッチ21……通常のリズム演奏を行うパター
ンモードからソングモードへ、またはソングモードから
パターンモードへのモード切換を行うためのスイッチ。 □ライトスイッチ22……通常の読出モードから書込モー
ドへのモード切換を行うためのスイッチ。 □バーインクリメントスイッチ23……処理すべき小節番
号を指定するスイッチで、1回押すと現在処理中の小節
から次の小節へ進む。 □バーデクリメントスイッチ24……処理すべき小節番号
を指定するスイッチで、1回押すと現在処理中の小節か
ら一つ手前の小節へ戻る。 □クリアスイッチ25……現在処理中の曲の全ての小節に
対して各々設定されたのリズム種別コード(演奏デー
タ)を消去するためのスイッチ。 □テンポアップスイッチ26……楽音発生時のテンポを1
ステップ分増加させるためのスイッチ。 □テンポダウンスイッチ27……楽音発生時のテンポを1
ステップ分減少させるためのスイッチ。 □スタートスイッチ28……自動リズム演奏の開始を指示
するためのスイッチ。 □ストップ/コンティニュースイッチ29……自動リズム
演奏時においては演奏停止を指示し、演奏停止時におい
てはリズム演奏の再開を指示するためのスイッチ。 □パターンバリエーションスイッチPV1〜PV3……上記40
種類のリズムパターンの各々に対してバリエーション
(変化)を与えるためのスイッチで、3種類のバリエー
ションの内のいずれかを選択できる。 □フイルイン選択スイッチFA,FB……上記40種類のリズ
ムパターンの各々に対してフィルインのバリエーション
を与えるためのスイッチで、2種類のフィルインの内の
いずれかを選択できる。このフィルインとは、例えば、
1フレーズの最後の小節で、リズムの体裁を整えるため
に、変則的なリズムを付け加えることを意味する。 □LCD(液晶)表示器31……小節番号やリズムパターン
の種類名等を表示する。 □ソング用LED(発光ダイオード)32……ソングモード
時に点灯し、また自動リズム演奏時においては、各拍の
先頭タイミングでフラッシュ点灯する。 □パターン用LED(発光ダイオード)33……パターンモ
ード時に点灯し、自動リズム演奏時においては、各小節
の先頭タイミングでフラッシュ点灯する。 次に、再び第1図に戻り、操作子スイッチ回路20aは
上述した各種スイッチの出力をコード化してバスライン
BUSへ出力し、また、表示制御回路20bはLCD表示器31の
表示制御およびソング用LED32とパターン用LED33の点灯
制御を行う。 また、バスラインBUSには、テンポ発振器40、リズム
音信号発生回路51、鍵盤用楽音信号発生回路52、自動演
奏用楽音信号発生回路53、データ記憶回路60及びマイク
ロコンピュータ70が接続されている。テンポ発振器40
は、設定されたテンポに従ってリズムインタラプト信号
としてのテンポクロック信号をバスラインBUSを介して
マイクロコンピュータ70に出力する。リズム音信号発生
回路51はシンバル、バスドラ等の打楽器に対応した打楽
器音信号を形成する複数の打楽器音信号形成回路を有
し、マイクロコンピュータ70からバスラインBUSを介し
て供給されるリズムパターンデータに応じて前記打楽器
音信号を形成出力する。鍵盤用楽音信号発生回路52及び
自動演奏用楽音信号発生回路53は各々ピアノ、バイオリ
ン等の楽器に対応した楽音信号を形成する複数の楽音信
号形成チャンネルを備えており、鍵盤用楽音信号発生回
路52は鍵盤10における押離鍵、図示せぬ音色選択スイッ
チ等の操作に応じて、マイクロコンピュータ70からバス
ラインBUSを介して供給される演奏データに基づいて楽
音信号を形成出力する。また、自動演奏用楽音信号発生
回路53はデータ記憶回路60に記憶されていて、マイクロ
コンピュータ70により読出され、バスラインBUSを介し
て供給される自動演奏データに基づく楽音信号を形成出
力する。これらのリズム音信号発生回路51、鍵盤用楽音
信号発生回路52及び自動演奏用楽音信号発生回路53から
の楽音信号は混合されてアンプ54に供給されるようにな
っている。アンプ54の出力はスピーカ55に接続されてお
り、同スピーカ55によってアンプ54から供給された楽音
信号が楽音として発音される。 データ記憶回路60はバスラインBUSに各々接続された
リズムパターンデータメモリ61、演奏データメモリ62及
びバッファレジスタ63からなる。リズムパターンデータ
メモリ61はROMによって構成されており、リズム音信号
発生回路51における各打楽器音信号の形成出力を指示す
るリズムパターンデータを各リズム種類毎に1小節長に
渡って時系列的に記憶している。この場合、リズムパタ
ーンデータメモリ61には、ロック1,ロック2,ポップ1な
どの基本リズムパターンの40種類に、3種類のバリエー
ションと2種類のフィルインを加えた合計240(=40×
6)種類のリズムパターンデータが格納されている。こ
のリズムパターンデータメモリ61内に格納されている24
0種類のリズムパターンの各々には、第3図に示すよう
にリズム種別コードRHYCD(=1,2,3,…240)が割り当て
られている。このリズム種別コードRHYCDは、後述する
マイクロコンピュータ70のプログラムメモリ71内に格納
されたリズム種別コード参照テーブルRTを参照して求め
られるようになっており、また、このプログラムメモリ
71内には、リズム種別コードRHYCD(=1〜240)の各々
に対応したリズムパターンデータを、リズムパターンデ
ータメモリ61から順次読み出す際に必要となる読出アド
レスが各々格納されている。 演奏データメモリ62はRAMによって構成されており、
第4図に示すように各小節番号データBAR(=1〜256
0)をアドレスとして指定される2560個所の記憶位置SON
G(BAR)を有しており、これらの各記憶位置SONG(BA
R)にはリズム種別コードRHYCDが各々記憶され、これに
より、1曲に付き128小節で、20曲分、合計2560小節分
のリズム種別コードRHYCDが各々記憶されるようになっ
ている。 その他、演奏データメモリ62には、鍵盤10や音色選択
スイッチ(図示略)等を操作することによって入力され
た各種自動演奏用データも記憶されるが、その説明は省
略する。 マイクロコンピュータ70はバスラインBUSに各々接続
されたプログラムメモリ71、CPU72及びワーキングメモ
リ73とからなる。プログラムメモリ71はROMで構成さ
れ、メインプログラム(第5図参照)、そのサブルーチ
ンプログラム(第6図〜第14図参照)、およびリズムイ
ンタラプトプログラム(第15図参照)を記憶している。
CPU72は電源スイッチ(図示略)がオンとされた時点で
メインプログラムの実行を開始するとともに同プログラ
ムを電源スイッチがオフとされるまで繰返して実行し、
テンポ発振器40からのテンポクロック信号の到来時には
前記メインプログラムの処理を中断してリズムインタラ
プトプログラムを割込み処理する。ワーキングメモリ73
はRAMで構成され、前記プログラムの実行に必要な複数
のデータ及びフラグを一時的に記憶する。これらのデー
タ及びフラグのうち、主なものを列挙すると次の通りで
ある。 □パターンモードフラグPTN……このフラグPTNを“1"と
すると、リズムパターン選択スイッチRS1〜RS40で選択
されたリズムパターンを演奏する通常のパターンモード
となり、“0"とすると、予め演奏データとして入力され
た各種リズムパターンの種類に基づいて自動リズム演奏
を行うソングモードとなる。 □リズムランフラグRUN……このフラグRUNNを“1"とす
ると、自動リズム演奏を実行し、“0"とすると自動リズ
ム演奏を中止する。 □書込モードフラグWRT……ソングモード時において、
このフラグWRTを“1"とすると、演奏データメモリ62の
各記憶位置SONG(BAR)に対するリズム種別コードRHYCD
の書き込みが可能な書込モードとなる。 □ベリファイチェックモードフラグVCPLY……書込モー
ド時において、このフラグVCPLYを“1"とすると、その
直前に、演奏データメモリ62の各記憶位置SONG(BAR)
に書き込まれたリズム種別コードRHYCDに基づいて1小
節分のリズムパターンが演奏される。 □ストップリザーブフラグSTPRSV……自動リズム演奏時
においてこのフラグSTPRSVを“1"とすると、次の小節線
において自動リズム演奏が停止する。 □バリエーションフィルインフラグVARFIL……書込モー
ド時において、リズムパターン選択スイッチRS1〜RS40
が押された後、パターンバリエーションスイッチPV1〜P
V3もしくはフィルイン選択スイッチFA,FBが押されと、
このフラグVARFILが“1"となり、これに大応した処理が
なされる。 □テンポカウントデータTCNT……テンポ発振器40がテン
ポクロック信号を出力する毎にインクリメントされるデ
ータであり、「48」になると「0」にリセットされる。
すなわち、このテンポカウントデータTCNTは、「0」〜
「47」の間でテンポクロック信号を繰り返しカウントす
る。このテンポカウントデータTCNTが1小節の進行タイ
ミングを示しており、このデータTCNTが「48」(=0)
になると小節線のタイミングとなる。 □小節番号データBAR……現在、演奏データメモリ62の
各記憶位置SONG(BAR)の、第何小節目に対するリズム
種別コードRHYCDの書き込みまたは読み出し処理を行っ
ているのかを示すデータで、第4図に示すように、
「1」〜「2560」のいずれかの値となる。 □先頭小節番号データHEADBAR……現在処理中の曲の先
頭の小節番号を示すデータであり、第4図に示すよう
に、「1」,「129」,「257」,…,「1432」のいずれ
かの値をとる。 □リズムリザーブデータRHYRSV……リズムパターン選択
スイッチRS1〜RS40の操作に基づいて得られたリズム種
別コードRHYCDが一時的に設定されるデータ。 □リズム選択データRHYSEL……リズムパターン選択スイ
ッチRS1〜RS40の操作に基づいて得られたリズム種別コ
ードRHYCDが一時的に設定されるデータであり、このデ
ータRHYSELに対応したリズムパターンの種類名がLCD表
示器31によって表示される。
FIG. 1 is a block diagram showing the configuration of an electronic musical instrument to which the automatic musical instrument according to the embodiment is applied. This electronic musical instrument basically has two functions,
The first is a melody playing function as a normal electronic organ, that is, a basic function of generating a musical tone corresponding to a keyboard pressed by a player, and the second is an automatic rhythm playing function, That is, this is a function for automatically performing rhythm performance in accordance with the melody performance by the performer by inputting and setting the types of various rhythm patterns for each measure in advance as performance data. This electronic musical instrument includes a keyboard 10 and an operation panel 20. The keyboard 10 is composed of a plurality of keys that specify musical tones, and the pressing and releasing of each key is detected by opening and closing a plurality of key switches provided in the key switch circuit 10a corresponding to each key. The key switch circuit 10a is connected to the bus line BUS. As shown in FIG. 2, the operation panel 20 is provided with various switches and an indicator. Of these, the main ones will be described below. □ Rhythm pattern selection switch RS 1 to RS 40 … In addition to pops such as rock, pop, funk, 16 beat, shuffle, and Latin such as reggae, samba, tango, bossa nova, waltz, march, twist, swing,
Jazz a switch for selecting an arbitrary rhythm pattern from the 40 kinds of rhythm patterns, including, RS 1 to RS
20 also has a function as a song number selection switch for selecting an arbitrary number from song numbers 1 to 20. □ Song switch 21 …… Switch to switch from pattern mode for normal rhythm performance to song mode, or from song mode to pattern mode. □ Write switch 22 ... A switch for switching the mode from the normal read mode to the write mode. □ Bar increment switch 23 …… This switch specifies the bar number to be processed. When pressed once, it advances from the bar currently being processed to the next bar. □ Bar decrement switch 24 …… Switch that specifies the bar number to be processed. Press once to return from the bar currently being processed to the previous bar. □ Clear switch 25 …… A switch for deleting the rhythm type chords (performance data) that have been set for all measures of the song currently being processed. □ Tempo up switch 26 …… Sets the tempo when a musical tone is generated to 1
A switch to increase the number of steps. □ Tempo down switch 27 …… Sets the tempo when a musical sound is generated to 1
A switch to reduce by the amount of steps. □ Start switch 28 …… A switch for instructing the start of automatic rhythm performance. □ Stop / Continue switch 29 …… A switch for instructing to stop the performance during automatic rhythm performance, and for restarting the rhythm performance when the performance is stopped. □ Pattern variation switch PV 1 to PV 3 …… 40 above
A switch for giving a variation (change) to each of the rhythm patterns of different types can select one of the three variations. □ Fill-in selection switch FA, FB ... A switch for giving fill-in variations to each of the 40 types of rhythm patterns described above, and one of two types of fill-in can be selected. This fill-in is, for example,
In the last measure of a phrase, it means adding an irregular rhythm to adjust the appearance of the rhythm. □ LCD (liquid crystal) display 31 …… Displays the measure number and rhythm pattern type name. □ Song LED (light-emitting diode) 32 …… Lights up in song mode, and flashes at the beginning of each beat during automatic rhythm performance. □ Pattern LED (light emitting diode) 33 …… Lights up in pattern mode, and flashes at the beginning of each measure during automatic rhythm performance. Next, returning to FIG. 1 again, the operator switch circuit 20a encodes the outputs of the various switches described above into bus lines.
Further, the display control circuit 20b controls the display of the LCD display 31 and the lighting of the song LED 32 and the pattern LED 33. Further, a tempo oscillator 40, a rhythm sound signal generation circuit 51, a keyboard musical sound signal generation circuit 52, an automatic performance musical sound signal generation circuit 53, a data storage circuit 60 and a microcomputer 70 are connected to the bus line BUS. Tempo oscillator 40
Outputs a tempo clock signal as a rhythm interrupt signal to the microcomputer 70 via the bus line BUS according to the set tempo. The rhythm sound signal generation circuit 51 has a plurality of percussion sound signal forming circuits that form percussion sound signals corresponding to percussion instruments such as cymbals and bass dras, and converts the rhythm pattern data supplied from the microcomputer 70 via the bus line BUS. In response, the percussion instrument sound signal is formed and output. The keyboard tone signal generation circuit 52 and the automatic performance tone signal generation circuit 53 each have a plurality of tone signal formation channels for forming tone signals corresponding to musical instruments such as piano and violin. Generates and outputs a tone signal on the basis of performance data supplied from the microcomputer 70 via the bus line BUS in response to a key press on the keyboard 10 or an operation of a tone color selection switch (not shown). The automatic performance tone signal generation circuit 53 is stored in the data storage circuit 60, is read out by the microcomputer 70, and forms and outputs a tone signal based on the automatic performance data supplied via the bus line BUS. The tone signals from the rhythm tone signal generating circuit 51, the keyboard tone signal generating circuit 52 and the automatic performance tone signal generating circuit 53 are mixed and supplied to the amplifier 54. The output of the amplifier 54 is connected to a speaker 55, and the musical tone signal supplied from the amplifier 54 by the speaker 55 is sounded as a musical tone. The data storage circuit 60 comprises a rhythm pattern data memory 61, a performance data memory 62 and a buffer register 63 which are connected to the bus line BUS. The rhythm pattern data memory 61 is constituted by a ROM, and stores rhythm pattern data for instructing the formation and output of each percussion instrument sound signal in the rhythm sound signal generation circuit 51 in time series for each rhythm type over one bar length. are doing. In this case, the rhythm pattern data memory 61 has a total of 240 (= 40 × 40) of 40 types of basic rhythm patterns such as rock 1, rock 2 and pop 1, plus 3 types of variations and 2 types of fill-ins.
6) Kinds of rhythm pattern data are stored. 24 stored in this rhythm pattern data memory 61
A rhythm type code RHYCD (= 1, 2, 3, ... 240) is assigned to each of the 0 types of rhythm patterns, as shown in FIG. The rhythm type code RHYCD is obtained by referring to a rhythm type code reference table RT stored in a program memory 71 of the microcomputer 70, which will be described later.
In the 71, read addresses required for sequentially reading the rhythm pattern data corresponding to each of the rhythm type codes RHYCD (= 1 to 240) from the rhythm pattern data memory 61 are stored. The performance data memory 62 is composed of RAM,
As shown in FIG. 4, each bar number data BAR (= 1 to 256
2560 storage locations SON specified by (0) as an address
G (BAR) and each of these storage locations SONG (BA
R) stores each rhythm type code RHYCD, so that the rhythm type code RHYCD for 20 songs, totaling 2560 measures, is stored in 128 measures per song. In addition, the performance data memory 62 also stores various automatic performance data input by operating the keyboard 10 or tone color selection switches (not shown), but the description thereof is omitted. The microcomputer 70 includes a program memory 71, a CPU 72, and a working memory 73, which are connected to the bus line BUS. The program memory 71 is composed of a ROM, and stores a main program (see FIG. 5), its subroutine program (see FIGS. 6 to 14), and a rhythm interrupt program (see FIG. 15).
The CPU 72 starts executing the main program when the power switch (not shown) is turned on, and repeatedly executes the same program until the power switch is turned off.
When the tempo clock signal from the tempo oscillator 40 arrives, the processing of the main program is interrupted and the rhythm interrupt program is interrupted. Working memory 73
Is composed of RAM, and temporarily stores a plurality of data and flags necessary for executing the program. The main ones of these data and flags are listed below. □ Pattern mode flag PTN …… When this flag PTN is set to “1”, it becomes the normal pattern mode in which the rhythm pattern selected by the rhythm pattern selection switches RS 1 to RS 40 is played. The song mode is in which an automatic rhythm performance is performed based on the types of various rhythm patterns input as. □ Rhythm run flag RUN …… When this flag RUNN is “1”, the automatic rhythm performance is executed, and when it is “0”, the automatic rhythm performance is stopped. □ Writing mode flag WRT …… In the song mode,
When this flag WRT is set to "1", the rhythm type code RHYCD for each storage position SONG (BAR) of the performance data memory 62
It becomes the writing mode in which the writing is possible. □ Verify check mode flag VCPLY ... In the write mode, if this flag VCPLY is set to "1", immediately before that, each storage position SONG (BAR) of the performance data memory 62 is set.
A rhythm pattern for one measure is played based on the rhythm type code RHYCD written in. □ Stop reserve flag STPRSV …… When this flag STPRSV is set to “1” during automatic rhythm performance, the automatic rhythm performance will stop at the next bar line. □ Variation fill-in flag VARFIL …… Rhythm pattern selection switch RS 1 to RS 40 in write mode
After is pressed, the pattern variation switch PV 1 to P
When V 3 or the fill-in selection switches FA and FB are pressed,
This flag VARFIL becomes "1", and processing corresponding to this is performed. □ Tempo count data TCNT ... This data is incremented each time the tempo oscillator 40 outputs a tempo clock signal, and is reset to “0” when it reaches “48”.
That is, the tempo count data TCNT is “0” to
The tempo clock signal is repeatedly counted during “47”. This tempo count data TCNT indicates the progress timing of one bar, and this data TCNT is "48" (= 0).
Is the timing of the bar line. □ Measure number data BAR: Data indicating which rhythm type code RHYCD is currently being written to or read from each storage position SONG (BAR) of the performance data memory 62, as shown in FIG. As shown in
It is any value from "1" to "2560". □ Leading bar number data HEADBAR ... This is the data indicating the leading bar number of the song currently being processed. As shown in FIG. 4, it is of “1”, “129”, “257”, ..., “1432”. Takes one of the values. □ Rhythm reserve data RHYRSV …… Data in which the rhythm type code RHYCD obtained based on the operation of the rhythm pattern selection switches RS 1 to RS 40 is temporarily set. □ Rhythm selection data RHYSEL …… The data for temporarily setting the rhythm type code RHYCD obtained based on the operation of the rhythm pattern selection switches RS 1 to RS 40. The type name of the rhythm pattern corresponding to this data RHYSEL Is displayed on the LCD display 31.

【動作】【motion】

次に、上記構成による電子楽器の動作を第5図〜第15
図に示すフローチャートを参照して説明する。 まず、電子楽器としての基本的機能である演奏者によ
るメロディー演奏機能の動作について説明し、次いで、
本実施例の要旨であるところの自動リズム演奏機能の動
作について詳細に説明する。 (1)メロディー演奏機能 通常演奏モード時においては、この電子楽器が通常の
電子オルガンとして動作する。 すなわち、まず、電源スイッチ(図示略)がオンとさ
れると、CPU72は第5図に示すメインプログラムを実行
し、ステップ101においてワーキングメモリ73内の各種
レジスタやフラグ等をクリアし、もしくは初期値を設定
し、これによりマイクロコンピュータ70を初期状態に設
定する。この場合、パターンモードフラグPTNには“1"
が設定される。 この初期設定の後、CPU72はステップ102において鍵ス
イッチ回路10a内の各鍵スイッチ及び操作子スイッチ回
路20a内の各操作子スイッチをスキャンすることによ
り、鍵盤10に関する押離鍵情報、及び操作パネル20に関
する各種スイッチの操作情報をバスラインBUSを介して
読込み、次いでステップ103において、読込んだ押離鍵
情報及び操作情報に基づいて鍵盤10における押離鍵イベ
ント又は操作パネル20における操作イベントの有無を検
出する。 今、鍵盤10のいずれの鍵も押鍵されず、かつ操作パネ
ル20のいずれのスイッチも操作されなかった場合、CPU7
2はステップ103においてイベント無しと判定して、ステ
ップ102に戻り、これらステップ102,103からなる循環処
理を実行し続ける。 一方、鍵盤10のいずれかの鍵が押鍵され、もしくは操
作パネル20のいずれかのスイッチが操作されると、CPU7
2はステップ103においてイベント有りと判定して、次
の、イベントの種類を判定するステップ104へ進む。 ここで、演奏者によって鍵盤10の各鍵が押鍵され、も
しくは音色選択スイッチ(図示略)等が操作されると、
CPU72はステップ104からサブルーチン105に進み、第6
図に示す鍵・音色イベントルーチンを実行する。 この鍵・音色イベントルーチンにおいては、ステップ
201において操作された鍵および音色選択スイッチ等に
関する全てのイベントデータがワーキングメモリ73に設
けられたイベントバッファレジスタ内に一旦取り込まれ
る。次いで、ステップ202において全てのイベントデー
タがバスラインBUSを介して鍵盤用楽音信号発生回路52
に出力される。鍵盤用楽音信号発生回路52は、これらの
イベントデータを取り込んで記憶すると同時に、これら
イベントデータの基づいて楽音信号の発生を制御する。
この場合、イベントデータが鍵盤10の押鍵に関するもの
であると、鍵盤用楽音信号発生回路52は押鍵された鍵に
対応した音高の楽音信号を形成し、その楽音信号をアン
プ54を介してスピーカ55へ供給する。これにより、スピ
ーカ55から押鍵された鍵に対応した音高の楽音が発音さ
れる。また、前記イベントデータが鍵盤10の離鍵に関す
るものであると、鍵盤用楽音信号発生回路52は前述のよ
うにして今まで形成中であった離鍵された鍵に対応する
楽音信号の形成を停止し、これにより、スピーカ55から
楽音が発音されなくなる。 一方、鍵盤用楽音信号発生回路52に供給されたイベン
トデータが音色選択スイッチ等に関するものであると、
同発生回路52は、供給されたイベントデータに基づき、
操作されたスイッチに応じて発生楽音信号の音色等を制
御し、これにより、発音される楽音の音色等が変化す
る。 このようなステップ202の処理の後、CPU72はステップ
203へ進み、前記イベントバッファレジスタ内の全ての
イベントデータをクリアした後、鍵・音色イベントルー
チンの処理を終えて、第5図のステップ102に戻る。そ
して、CPU72は、再度上記ステップ102,103からなる循環
処理を繰り返し実行し、この循環処理中、鍵盤10におけ
る押離鍵または音色選択スイッチ等の操作があると、上
述したステップ104,105の処理により楽音の発生を制御
する。以上が、通常の通常演奏モード時における電子オ
ルガンとしての動作である。 (2)自動リズム演奏機能 さて、本実施例の要旨であるところの自動リズム演奏
機能に係る動作について説明する。 まず、CPU72が上述したメインプログラム(第5図)
のステップ102,103を循環処理している過程で、操作パ
ネル20の各種スイッチが操作されると、ステップ103か
らイベントの種類を判定するステップ104へ進み、この
ステップ104からイベントの種類の応じて、各種サブル
ーチン106〜114へ進み、第7図〜第14図に示す処理を実
行する。これら各種サブルーチン106〜114におけるCPU7
2の処理動作を以下に説明する。 テンポアップスイッチ26もしくはテンポダウンスイッ
チ27が押されると、サブルーチン106へ進み、ワーキン
グメモリ73内に記憶されている自動リズム演奏時のテン
ポを制御するテンポ制御データが更新されると同時に、
更新されたデータがバスラインBUSを介してテンポ発振
器40に供給され、同発振器40から出力されるテンポクロ
ック信号の周波数が修正された後、メインプログラムに
戻る。 リズムパターン選択スイッチRS1〜RS40のいずれかが
押されると、サブルーチン107へ進み、第7図に示す処
理を実行する。 まず、ステップ211において、パターンモードフラグP
TNが“1"、すなわちパターンモードであるか否かが判別
され、パターンモードフラグPTNが“1"であった場合
は、パターンモードと判断して、次にステップ212へ進
み、同フラグPTNが“0"であった場合は、ソングモード
と判断して、ステップ216へ進む。 ここで、パターンモードであった場合、ステップ212
においてリズムランフラグRUNが“1"であるか否かが判
別される。このリズムランフラグRUNが“1"であった場
合、次のステップ213へ進み、“0"であった場合、ステ
ップ214へ進む。ステップ213においては、ストップリザ
ーブフラグSTPRSVが“1"とされ、リズムリザーブデータ
RHYRSVとして、リズム種別コードRHYCDが設定される。
この場合、リズム種別コードRHYCDは、押されたリズム
パターン選択スイッチRS1〜RS40に対応する値i(=1
〜40)を、(i−1)×6なる式に代入して算出される
値をアドレスとし、第3図に示すリズム種別コード参照
テーブルRTを参照して得られる値である。すなわち、例
えば、リズムパターン選択スイッチRS1が押された場
合、i=1であるから、(i−1)×6=0であり、こ
の「0」をアドレスとして、参照テーブルRTからリズム
種別コードRHYCD=1が得られ、この値がリズムリザー
ブデータRHYRSVとして設定される。 次いで、ステップ214において、リズム選択データRHY
SELとして、上記と同じリズム種別コードRHYCDが設定さ
れる。そして、次のステップ215において、リズム選択
データRHYSELに設定されたリズム種別コードRHYCDに対
応したリズムパターンの種類名がLCD表示器31によって
表示される。例えば、リズムパターン選択スイッチRS1
が押され、「ROCK1」が指定された場合、リズム種別コ
ードRHYCD=1が、バスラインBUSを介して表示制御回路
20bへ供給され、この表示制御回路20bがLCD表示器31を
駆動して「ROCK1」と表示する。 一方、ソングモードであった場合は、上記ステップ21
1からステップ216へ進み、このステップ216おいて、書
込モードフラグWRTが“1"、すなわち書込モードである
か否かが判別され、書込モードフラグWRTが“1"であっ
た場合は、書込モードと判断してステップ217へ進み、
同フラグWRTが“0"であった場合は、読出モードである
と判断してステップ218へ進む。 そして、ステップ217においては、演奏データメモリ6
2の、小節番号データBARをアドレスとする記憶位置SONG
(BAR)に、リズムパターン選択スイッチRS1〜RS40の操
作に基づいて得られたリズム種別コードRHYCDが書き込
まれ、次いで、この記憶位置SONG(BAR)に書き込まれ
たリズム種別コードRHYCDがリズム選択データRHYSELと
して書き込まれた後、前述したステップ215へ進む。 また、ステップ218においては、リズムランフラグRUN
が“1"であるか否か判別され、“1"の場合は、ステップ
219へ進み、“0"の場合は、ステップ220へ進む。 ステップ219においては、ストップリザーブフラグSTP
RSVを“1"とし、リズムリザーブデータRHYRSVとして、
リズムパターン選択スイッチRS1〜RS40の操作に基づい
て得られたリズム種別コードRHYCDが設定された後、前
述したステップ215へ進む。 一方、ステップ220においては、先頭小節番号データH
EADBARとして、押されたリズムパターン選択スイッチRS
1〜RS20に対応する値i(=1〜20)を、(i−1)×1
28+1なる式に代入して算出される値を設定し、この先
頭小節番号データHEADBARの値を小節番号データBARとし
て設定した後、前述したステップ215へ進む。 そして、ステップ215の処理を実行した後、メインプ
ログラムに戻る。 パターンバリエーションスイッチPV1〜PV3またはフィ
ルイン選択スイッチFA,FBのいずれかが押されると、サ
ブルーチン108へ進み、第8図に示す処理を実行する。 まず、ステップ221において、パターンモードフラグP
TNが“1"、すなわちパターンモードであるか否かが判別
され、パターンモードフラグPTNが“1"であった場合
は、パターンモードと判断して、次のステップ222へ進
み、同フラグPTNが“0"であった場合は、ソングモード
と判断して、ステップ226へ進む。 ここで、パターンモードであった場合、ステップ222
においてリズムランフラグRUNが“1"であるか否かが判
別される。このリズムランフラグRUNが“1"であった場
合、次のステップ223へ進み、“0"であった場合、ステ
ップ224へ進む。ステップ223においては、バリエーショ
ンフィルインフラグVARFILが“1"とされる。 次いで、ステップ224において、元のリズム選択デー
タRHYSELに、押されたパターンバリエーションスイッチ
PV1〜PV3またはフィルイン選択スイッチFA,FBの対応し
た値nを加算した値が、新たなリズム選択データRHYSEL
として設定される。この場合、パターンバリエーション
スイッチPV1〜PV3に対応してn=1〜3が割り当てられ
ており、またフィルイン選択スイッチFA,FBに対応して
n=4,5が割り当てられている。そして、例えば、リズ
ムパターン選択スイッチRS1が押され、前述したサブル
ーチン107において、リズムリザーブデータRHYRSVとし
て「1」が設定されている場合に、パターンバリエーシ
ョンスイッチPV2が押されたとすると、n=2が入力さ
れたことになるので、新たなリズム選択データRHYSELと
しては、リズム選択コードRHYCD=3が設定される。次
いで、ステップ225において、リズム選択データRHYSEL
に設定されたリズム種別コードRHYCDに対応したリズム
パターンの種類名がLCD表示器31によって表示される。
例えば、リズムパターン選択スイッチRS1に続けてパタ
ーンバリエーションスイッチPV2が押され、「ROCK1のパ
ターンバリエーション2」が指定された場合、リズム種
別コードRHYCD=3が、バスラインBUSを介して表示制御
回路20bへ供給され、この表示制御回路20bがLCD表示器3
1を駆動して「ROCK1 VARI2」と表示する。 一方、ソングモードであった場合は、上記ステップ22
1からステップ226へ進み、このステップ226おいて、書
込モードフラグWRTが“1"、すなわち書込モードである
か否かが判別され、書込モードフラグWRTが“1"であっ
た場合は、書込モードと判断してステップ227へ進み、
同フラグWRTが“0"であった場合は、読出モードである
と判断してステップ228へ進む。 そして、ステップ227においては、演奏データメモリ6
2の、小節番号データBARをアドレスとする記憶位置SONG
(BAR)に書き込まれているリズム種別コードRHYCDに、
押されたパターンバリエーションスイッチPV1〜PV3また
はフィルイン選択スイッチFA,FBに対応した値nを加算
した値が、新たなリズム種別コードRHYCDとして設定さ
れ、次いで、この記憶位置SONG(BAR)に書き込まれた
リズム種別コードRHYCDがリズム選択データRHYSELとし
て書き込まれた後、前述したステップ225へ進む。 また、ステップ228においては、リズムランフラグRUN
が“1"であるか否か判別され、“1"の場合は、前述した
ステップ223へ進み、“0"の場合は、ステップ225へ進
む。 そして、ステップ225の処理を実行した後、メインプ
ログラムに戻る。 スタートスイッチ28が押されると、サブルーチン109
へ進み、第9図に示す処理を実行する。 まず、ステップ231において、パターン用LED33をフラ
ッシュ点灯させる。次いで、ステップ232において書込
モードフラグWRTが“1"か否かが判別され、同フラグWRT
が“1"(書込モード)の場合は、次のステップ234へ進
み、同フラグWRTが“0"(読出モード)の場合は、ステ
ップ236へ進む。 そして、書込モードの場合、ステップ234において、
ベリファイチェックモードフラグVCPLYが“1"とされ、
次のステップ235へ進む。このステップ235においては、
リズムランフラグRUNが“1"とされ、ソング用LED32を消
灯状態とし、テンポカウントデータTCNTが小節線のタイ
ミングに対応した値「0」に初期設定される。 一方、読出モードの場合、ステップ232からステップ2
36へ進み、このステップ236において、前述したサブル
ーチン107内のステップ220において設定された先頭小節
番号データHEADBARが、小節番号データBARとして設定さ
れ、その後、前述したステップ235へ進む。 そして、ステップ235の処理を実行した後、メインプ
ログラムに戻る。 ソングスイッチ21が押されると、サブルーチン110へ
進み、第10図に示す処理を実行する。 まず、ステップ241において、パターンモードフラグP
TNを反転する。すなわち、パターンモードフラグPTNが
“0"の場合、同フラグPTNが“1"とし、“1"の場合、
“0"とする。次いで、ステップ242において、ソング用L
ED32とパターン用LED33の点灯/消灯状態を反転させ
る。この場合、パターンモードフラグPTNが“0"の場
合、ソング用LED32が点灯、パターン用LED33が消灯し、
逆に、パターンモードフラグPTNが“1"の場合、パター
ン用LED33が点灯、ソング用LED32が消灯する。このステ
ップ242の処理を実行した後、メインプログラムに戻
る。 ライトスイッチ22が押されると、サブルーチン111へ
進み、第11図に示す処理を実行する。 ステップ251において、書込モードフラグWRTを反転し
た後、メインプログラムに戻る。 バーインクリメントスイッチ23もしくはバーデクリメ
ントスイッチ24が押されると、サブルーチン112へ進
み、第12図に示す処理を実行する。 まず、ステップ261において、バーインクリメントス
イッチ23と、バーデクリメントスイッチ24のどちらが押
されたかが判別され、バーインクリメントスイッチ23が
押された場合は、ステップ262へ進み、バーデクリメン
トスイッチ24が押された場合は、ステップ265へ進む。 ステップ262においては、小節番号データBARに「1」
が加算された後、次のステップ263へ進む。このステッ
プ263においては、小節番号データBAR=i×128+1と
なったか否か、すなわち、小節番号データBARが、現在
処理中の曲の最終小節(第128小節目)に相当する値
(i×128)より「1」だけ大となったか否かが判別さ
れる。そして、小節番号データBARが上記値(i×128)
以下の場合は、そのままステップ268へ進み、i×128+
1となった場合は、ステップ264へ進む。このステップ2
64においては、小節番号データBARから「1」が減算さ
れ、バーインクリメントスイッチ23の操作を無効とし、
これにより、常に小節番号データBARを現在処理中の曲
の最終小節に相当する値(i×128)以下に制限し、そ
の後、ステップ268へ進む。 一方、バーデクリメントスイッチ24が押され、ステッ
プ265へ進むと、小節番号データBARから「1」が減算さ
れた後、次のステップ266へ進む。このステップ266にお
いては、小節番号データBAR=(i−1)×128となった
か否か、すなわち、小節番号データBARが、現在処理中
の曲の先頭小節(第1小節目)に相当する値{(i−
1)×128+1}よりも「1」だけ小となったか否かが
判別される。そして、小節番号データBARが上記値
{(i−1)×128+1}以上の場合は、そのままステ
ップ268へ進み、(i−1)×128となった場合は、ステ
ップ267へ進む。このステップ267においては、小節番号
データBARに「1」が加算され、バーデクリメントスイ
ッチ24の操作を無効とし、これにより、常に小節番号デ
ータBARを現在処理中の曲の先頭小節に相当する値
{(i−1)×128}以上に制限し、その後、ステップ2
68へ進む。 そして、ステップ268においては、小節番号データBAR
から上記の値{(i−1)×128}を減算し、これによ
り、現在の小節番号データBARが各曲の第何小節目に相
当しているのか、すなわち、実際の小節番号を求め、そ
の小節番号(1〜128)をLCD表示器31によって表示す
る。 このステップ268の処理の後、メインプログラムへ戻
る。 ストップ/コンティニュースイッチ29が押されると、
サブルーチン113へ進み、第13図に示す処理を実行す
る。 まず、ステップ271において、リズムランフラグRUNが
“0"であるか否かが判別され、リズムランフラグRUNが
“0"の場合は、ステップ272においてリズムランフラグR
UNが“1"とされた後、メインプログラムへ戻る。一方、
リズムランフラグRUNが“1"の場合は、ステップ273にお
いて、ストップリザーブフラグSTPRSVが“1"とされた
後、メインプログラムへ戻る。 クリアスイッチ25が押されると、サブルーチン114へ
進み、第14図に示す処理を実行する。 ステップ281において、演奏データメモリ62内の各記
憶位置SONG(BAR)の内、(i−1)×128+1以上で、
i×128+1未満の小節番号データBARをアドレスとして
指定される各記憶位置SONG(BAR)の記憶内容を“0"と
し、すなわち、現在処理中の曲の全ての小節に対して各
々設定されたリズム種別コードRHYCDを消去した後、メ
インプログラムに戻る。 次に、CPU72が上述したメインプログラム(第5図)
のステップ102,103を循環処理している過程で、テンポ
発振器40がテンポクロック信号を発生すると、CPU72は
上述したメインプログラムおよびサブルーチン106〜114
の処理を中断して、第15図に示すリズムインタラプトプ
ログラムを開始する。以下、このリズムインタラプトプ
ログラムについて説明する。 まず、ステップ301において、リズムランフラグRUNが
“1"であるか否かが判別され、リズムランフラグRUNが
“0"であった場合は、メインプログラムに戻り、リズム
ランフラグRUNが“1"であった場合は、次のステップ302
へ進む。 このステップ302においては、リズム選択データRHYSE
Lとして設定されているリズム種別コードRHYCDと、テン
ポカウントデータTCNT(最初は「0」に初期設定されて
いる)とに基づいて、リズムパターンメモリ61からリズ
ムパターンデータを読み出し、この読み出したデータを
バスラインBUSを介してリズム音信号発生回路51へ供給
する。リズム音信号発生回路51は、供給されたリズムパ
ターンデータにより指定された打楽器音信号を形成し、
この信号をアンプ54を介してスピーカ55へ供給し、これ
により、スピーカ55からリズムパターンデータの応じた
打楽器音が発音される。 このステップ302による1小節の1/48に相当するリズ
ム音発生処理の後、ステップ303へ進み、ソング用LED32
をフラッシュ点灯させ、これにより、1小節の各拍の先
頭タイミングでソング用LED32がフラッシュ点灯する。 次いで、ステップ304において、テンポカウントデー
タTCNTに「1」を加算した後、ステップ305において、
テンポカウントデータTCNTが各小節の最終値、すなわち
「47」となったか否かが判別される。 そして、テンポカウントデータTCNTが「47」未満の場
合は、メインプログラムへ戻り、テンポ発振器40がテン
ポクロック信号を発生する毎に、上述したリズムインタ
ラプトプログラムのステップ301〜305の処理を繰り返し
実行する。以上のステップ301〜305の処理を48回繰り返
すことにより、1小節分のリズム音が演奏される。 一方、テンポカウントデータTCNTが「47」となると、
ステップ305から、次のステップ306へ進み、小節番号デ
ータBARに「1」を加算し、次いで、ステップ307におい
て、小節番号データBARから(i−1)×128を減算した
値、すなわち、以降処理する曲の小節番号を、LCD表示
器31によって表示する。次いで、ステップ308へ進み、
パターン用LED33をフラッシュ点灯させ、これにより、
各小節の先頭タイミングでパターン用LED33がフラッシ
ュ点灯する。 次いで、ステップ309において、ストップリザーブフ
ラグSTPRSVが“1"か否かが判別され、“1"の場合は、ス
テップ310においてストップリザーブフラグSTPRSVが
“0"とされ、リズム選択データRHYSELにリズムリザーブ
データRHYRSVが設定され、リズムランフラグRUNが“0"
とされた後、ステップ318へ進む。 一方、同フラグSTPRSVが“0"の場合は、ステップ311
において、ベリファイチェックモードフラグVCPLYが
“1"か否かが判別される。 そして、ベリファイチェックモードフラグVCPLYが
“1"の場合は、ステップ312において、リズムランフラ
グRUNと、ベリファイチェックモードフラグVCPLYが共
に、“0"とされた後、ステップ318へ進む。 また、同フラグVCPLYが“0"の場合は、ステップ313に
おいて、バリエーションフィルインフラグVARFILが“1"
か否かが判別される。 そして、バリエーションフィルインフラグVARFILが
“0"の場合は、次のステップ316へ進み、同フラグVARFI
L“1"の場合は、ステップ314において、同フラグVARFIL
が“0"とされ、次いで、ステップ315において、リズム
選択データRHYSELが、サブルーチン108において設定さ
れた値nを減算した値に更新された後、ステップ316へ
進む。 このステップ316においては、パターンモードフラグP
TNが“1"か否かが判別され、同フラグPTNが“1"の場合
は、次のステップ318へ進み、同フラグPTNが“0"の場合
は、ステップ317において、リズム選択データRHYSELと
して新たな小節番号データBARをアドレスとして指定さ
れる記憶位置SONG(BAR)内のリズム種別コードRHYCDが
設定され、その後、ステップ318へ進む。 そしてステップ318において、テンポカウントデータT
CNTに「0」が設定された後、メインプログラムへ戻
る。 次に、上述した各種スイッチを操作して自動リズム演
奏を行う際の一連の動作について、説明する。 まず、電源スイッチがオンとされ、CPU72が初期設定
された状態で、パターンモードフラグPTNには“1"が設
定されている。ここで、ソングスイッチ21が押されと、
サブルーチン110の処理(第10図)を実行し、パターン
モードフラグPTNが“0"とされ、ソングモードとなる。 次に、リズム選択スイッチRS1〜RS20のいずれかが押
され、曲番号が指定されると、サブルーチン107の処理
(第7図)を実行し、ステップ211→216→218→220の処
理により、指定された曲の先頭小節番号に対応した小節
番号データBARが設定される。 次に、ライトスイッチ22が押されると、サブルーチン
111の処理(第11図)を実行して書込モードフラグWRTが
“1"とされ、書込モードとなる。 次に、リズム選択スイッチRS1〜RS40のいずれかが押
され、リズムパターンの種類が選択されると、サブルー
チン107の処理(第7図)を実行し、ステップ211→216
→217の処理により、指定されたリズムパターンに対応
したリズム種別コードRHYCDが、演奏データメモリ62内
の、小節番号データBARをアドレスとする記憶位置SONG
(BAR)に書き込まれる。この場合、リズム選択スイッ
チRS1〜RS40に続けて、パターンバリエーション選択ス
イッチPV1〜PV3もしくはフィルイン選択スイッチFA,FB
が押されると、サブルーチン108の処理(第8図)を実
行し、そのステップ227により、記憶位置SONG(BAR)内
のデータが、スイッチPV1〜PV3,FA,FBに対応したリズム
種別コードRHYCDに書き替えられる。 次に、バーインクリメントスイッチ23が押されると、
サブルーチン112の処理(第12図)を実行し、小節番号
データBARが「1」だけインクリメントされ、逆にバー
デクリメントスイッチ24が押されると、小節番号データ
BARが「1」だけデクリメントされ、これにより、次に
処理すべき小節番号の指定がなされる。 以上のようにして、1曲分のリズムパターンの種類が
各小節毎に順次入力設定されるが、この入力作業の途中
で、例えば、第10小節目のリズムパターンの種類を入力
した時点で、この第10小節目に入力したリズムパターン
を確認する場合は、スタートスイッチ28を押せばよい。 このスタートスイッチ28が押されると、サブルーチン
109の処理(第9図)を実行し、ステップ231→232→234
→235の処理によって、ベリファイチェックモードフラ
グVCPLYは“1"、リズムランフラグRUNが“1"、テンポカ
ウントデータTCNTが「0」とされる。以降、第15図に示
すリズムインタラプトプログラムのステップ301→302→
303→304→305の処理を48回繰り返すことにより、第10
小節目に入力されたリズムパターンの種類に応じたリズ
ム音が演奏される。この場合、1小節の演奏を終えた時
点で、第15図に示すステップ305→306→307→308→309
→311と進み、このステップ311から、ステップ312に進
み、リズムランフラグRUNおよびベリファイチェックモ
ードフラグVCPLYが共に“0"とされるので、1小節分の
リズムパターンに対応するリズム音が、1回だけ自動的
に演奏される。 これにより、直前に入力したリズムパターンの種類
を、スタートスイッチ28を押すだけで、即座に確認する
ことができる。 なお、上述した実施例においては、演奏データとし
て、予めリズムパターンの種類の応じたデータを入力
し、このデータに基づいて自動リズム演奏を行う場合を
例に説明したが、予め鍵盤10や音色スイッチ等の操作情
報に基づく自動演奏用データを入力し、このデータに基
づいて自動メロディー演奏を行う電子楽器にも勿論適用
することができる。 「発明の効」 以上説明したように、この発明によれば、書込モード
時に、確認手段が確認指示操作子の操作に応答して、書
込手段によって直前に演奏情報が書き込まれた所定の区
間に係る演奏情報(パターン)に基づいて該区間の自動
演奏を行い、該区間の自動演奏終了後は再び書込状態に
復帰させるよう動作する。したがって、書込モードで書
き込んだパターンの確認作業にともなう煩わしい操作を
解消し、作業効率の改善を図ることができるという効果
を得ることができる。
 Next, the operation of the electronic musical instrument having the above configuration will be described with reference to FIGS.
This will be described with reference to the flowchart shown in the figure. First of all, the performer, who has the basic function of an electronic musical instrument,
I will explain the operation of the melody playing function, and then
The operation of the automatic rhythm playing function, which is the gist of the present embodiment
The work will be described in detail. (1) Melody performance function In the normal performance mode, this electronic musical instrument
Operates as an electronic organ. That is, first, the power switch (not shown) is turned on.
Then, the CPU 72 executes the main program shown in FIG.
Then, in step 101, various data in the working memory 73
Clear registers and flags, or set initial values
This resets the microcomputer 70 to its initial state.
Set. In this case, the pattern mode flag PTN is "1".
Is set. After this initialization, the CPU 72 proceeds to step 102
Each key switch and operator switch in the switch circuit 10a
By scanning each operator switch in path 20a
Key release information about the keyboard 10 and the operation panel 20.
Operate information of various switches via the bus line BUS
Read, and then in step 103, read and release key
Based on the information and the operation information, the key release event on the keyboard 10
Check whether there is an operation event on the control panel or the operation panel 20.
Put out. Now, none of the keys on the keyboard 10 are pressed and the operation panel
If none of the switches on the
2 determines that there is no event in step 103, and
Return to step 102 and the circulation process consisting of these steps 102 and 103.
Keep doing the reason. On the other hand, one of the keys on keyboard 10 has been pressed or operated.
When any switch on the control panel 20 is operated, the CPU7
2 determines that there is an event in step 103, and
In step 104, the type of event is determined. At this point, the performer presses each key on the keyboard 10,
Or, if a tone color selection switch (not shown) is operated,
The CPU 72 proceeds from step 104 to subroutine 105, and the sixth
The key / tone event routine shown in the figure is executed. In this key / tone event routine,
On the keys and tone selection switches etc. operated on 201
All event data related to
Once captured in the event buffer register
It Then, in step 202, all event days
Keyboard tone signal generation circuit 52 for the keyboard via the bus line BUS
Is output to The keyboard tone signal generation circuit 52
At the same time as capturing and storing event data, these
The generation of the tone signal is controlled based on the event data.
In this case, the event data is related to the key depression on the keyboard 10.
If so, the keyboard tone signal generation circuit 52
Create a tone signal of the corresponding pitch and cancel the tone signal.
It is supplied to the speaker 55 via the microphone 54. This allows
A tone with the pitch corresponding to the key pressed by the
Be done. Also, the event data relates to the key release of the keyboard 10.
That is, the keyboard tone signal generation circuit 52
In this way, it corresponds to the released key that was being formed until now
The formation of the tone signal is stopped, which causes the speaker 55 to
Musical sounds are no longer pronounced. On the other hand, the event supplied to the musical tone signal generation circuit 52 for the keyboard
Data is related to the tone color selection switch,
The generation circuit 52, based on the supplied event data,
The tone color of the generated tone signal is controlled according to the operated switch.
This changes the tone color of the tones that are produced.
It After such processing of step 202, the CPU 72
Go to 203, and
After clearing the event data, the key and tone event
After the processing of chin is completed, the process returns to step 102 in FIG. So
The CPU 72 then repeats the above steps 102 and 103.
Repeatedly execute the process, and keep the keyboard 10
Pressing and releasing the key or operating the tone selection switch
Control the generation of musical tones by the processing of steps 104 and 105 described above
I do. The above are the electronic options in the normal normal play mode.
It is an operation as Lugan. (2) Automatic rhythm performance function Now, the automatic rhythm performance which is the gist of this embodiment.
The operation related to the function will be described. First, the CPU 72 executes the above-mentioned main program (Fig. 5).
In the process of cyclically processing steps 102 and 103 of
When the various switches on the channel 20 are operated, step 103 or
To determine the type of event from step 104,
Depending on the type of event from step 104, various subs
Routine 106 to 114, and execute the processing shown in FIG. 7 to FIG.
To go. CPU7 in these various subroutines 106-114
The processing operation of No. 2 will be described below. Tempo up switch 26 or tempo down switch
When the chi 27 is pressed, the process proceeds to the subroutine 106 and the work
Tens for automatic rhythm performance stored in memory 73.
At the same time the tempo control data that controls the po is updated,
Updated data tempo oscillation via bus line BUS
The tempo clock supplied to the instrument 40 and output from the oscillator 40.
The main program after the frequency of the
Return. Rhythm pattern selection switch RS1~ RS40One of
When the button is pressed, the process proceeds to the subroutine 107 and the process shown in FIG.
Execute the process. First, in step 211, the pattern mode flag P
Determine whether TN is “1”, that is, whether it is pattern mode
And the pattern mode flag PTN is "1".
Determines that it is the pattern mode, and then proceeds to step 212.
If the flag PTN is "0", the song mode
And proceeds to step 216. Here, in the case of the pattern mode, step 212
It is determined whether or not the rhythm run flag RUN is "1".
Be separated. If this rhythm run flag RUN is "1"
If it is “0”, go to the next step 213.
Go to page 214. In step 213, stop resizing
The save flag STPRSV is set to “1” and the rhythm reserve data
The rhythm type code RHYCD is set as RHYRSV.
In this case, the rhythm type code RHYCD is the pressed rhythm.
Pattern selection switch RS1~ RS40Value i (= 1
It is calculated by substituting ~ 40) into the formula of (i-1) × 6.
Use the value as an address and refer to the rhythm type code shown in Fig. 3.
It is a value obtained by referring to the table RT. Ie the example
For example, rhythm pattern selection switch RS1When is pressed
In this case, since i = 1, (i−1) × 6 = 0,
Rhythm from the reference table RT using "0" of
The classification code RHYCD = 1 is obtained, and this value is the rhythm reserve.
It is set as BDATA RHYRSV. Next, in step 214, the rhythm selection data RHY
The same rhythm type code RHYCD as above is set as SEL.
Be done. Then, in the next step 215, rhythm selection
Corresponds to the rhythm type code RHYCD set in the data RHYSEL.
The type name of the corresponding rhythm pattern is displayed on the LCD display 31.
Is displayed. For example, rhythm pattern selection switch RS1
When is pressed and “ROCK1” is specified, the rhythm type
Mode RHYCD = 1, display control circuit via bus line BUS
20b, and this display control circuit 20b drives the LCD display 31.
Drive and display "ROCK1". On the other hand, if it is the song mode, the above step 21
From step 1 to step 216, in this step 216, write
Embedded mode flag WRT is "1", that is, write mode
It is determined whether the write mode flag WRT is “1”.
If it is, write mode is determined and the process proceeds to step 217.
When the flag WRT is "0", it means the read mode.
And proceeds to step 218. Then, in step 217, the performance data memory 6
Storage location SONG of 2 with bar number data BAR as address
(BAR), rhythm pattern selection switch RS1~ RS40Manipulation of
Rhythm type code RHYCD obtained based on the work is written
Rare, then written to this storage location SONG (BAR)
Rhythm type code RHYCD and rhythm selection data RHYSEL
Then, the process proceeds to step 215 described above. In step 218, the rhythm run flag RUN
Is determined to be "1", and if it is "1", the step
If it is “0”, the process proceeds to step 220. In step 219, the stop reserve flag STP
Set RSV to “1” and set rhythm reserve data RHYRSV to
Rhythm pattern selection switch RS1~ RS40Based on the operation of
After setting the rhythm type code RHYCD obtained by
Proceed to step 215 described above. On the other hand, in step 220, the first measure number data H
Rhythm pattern selection switch RS pressed as EADBAR
1~ RS20The value i (= 1 to 20) corresponding to (i-1) x 1
Set the value calculated by substituting into the formula 28 + 1, and then
The value of the head measure number data HEADBAR is used as the measure number data BAR.
After setting, the procedure proceeds to step 215 described above. Then, after executing the processing of step 215,
Return to the program. Pattern variation switch PV1~ PV3Or
When either of the run-in selection switches FA or FB is pressed, the
Proceed to Brutin 108 to execute the processing shown in FIG. First, in step 221, the pattern mode flag P
Determine whether TN is “1”, that is, whether it is pattern mode
And the pattern mode flag PTN is "1".
Determines that it is the pattern mode and proceeds to the next step 222.
If the flag PTN is "0", the song mode
Then, the process proceeds to step 226. Here, in the case of the pattern mode, step 222
It is determined whether or not the rhythm run flag RUN is "1".
Be separated. If this rhythm run flag RUN is "1"
If it is “0”, proceed to the next step 223.
Go to 224. In step 223, the variation
The fill-in flag VARFIL is set to "1". Then, in step 224, the original rhythm selection data
Pattern variation switch pressed on the RHYSEL
PV1~ PV3Or fill-in selection switch FA, FB
The new rhythm selection data RHYSEL
Is set as. In this case, the pattern variation
Switch PV1~ PV3N = 1 to 3 are assigned corresponding to
In addition, corresponding to the fill-in selection switch FA, FB
n = 4,5 is assigned. And, for example, Liz
Pattern selection switch RS1Is pressed and the suble
Routine 107 with rhythm reserve data RHYRSV
If "1" is set in the
Switch PV2If is pressed, n = 2 is input.
Because it was done with the new rhythm selection data RHYSEL
Then, the rhythm selection code RHYCD = 3 is set. Next
Then, in step 225, the rhythm selection data RHYSEL
Rhythm corresponding to the rhythm type code RHYCD set to
The type name of the pattern is displayed on the LCD display 31.
For example, rhythm pattern selection switch RS1Followed by Patta
PV variation switch PV2Is pressed and the “ROCK1
If "Turn Variation 2" is specified, the rhythm type
Another code RHYCD = 3, display control via bus line BUS
It is supplied to the circuit 20b, and this display control circuit 20b is supplied to the LCD display 3
Drive 1 and display "ROCK1 VARI2". On the other hand, if it is the song mode, the above step 22 is performed.
From 1 to step 226, in this step 226, write
Embedded mode flag WRT is "1", that is, write mode
It is determined whether the write mode flag WRT is “1”.
If it is determined that the writing mode is set, the process proceeds to step 227,
When the flag WRT is "0", it means the read mode.
And proceeds to step 228. Then, in step 227, the performance data memory 6
Storage location SONG of 2 with bar number data BAR as address
In the rhythm type code RHYCD written in (BAR),
Pressed pattern variation switch PV1~ PV3Also
Is the value n corresponding to the fill-in selection switches FA and FB
Value is set as a new rhythm type code RHYCD.
And then written to this storage location SONG (BAR)
The rhythm type code RHYCD is the rhythm selection data RHYSEL.
After being written, the process proceeds to step 225 described above. In step 228, the rhythm run flag RUN
Is determined to be "1", and if it is "1", then
Go to step 223. If "0", go to step 225.
Mu. Then, after executing the processing in step 225,
Return to the program. When the start switch 28 is pressed, the subroutine 109
Then, the processing shown in FIG. 9 is executed. First, in step 231, the pattern LED 33 is turned on.
Turn on. Then write in step 232
Whether or not the mode flag WRT is “1” is determined, and the same flag WRT
If is “1” (write mode), go to the next step 234.
However, if the flag WRT is "0" (read mode), the
Go to 236. Then, in the case of the writing mode, in step 234,
The verify check mode flag VCPLY is set to "1",
Proceed to next step 235. In this step 235,
The rhythm run flag RUN is set to “1” and the song LED 32 is turned off.
The light is on and the tempo count data TCNT is
It is initially set to a value "0" corresponding to minging. On the other hand, in the read mode, step 232 to step 2
Proceed to 36, and in step 236,
Leading bar set in step 220 in routine 107
The number data HEADBAR is set as the measure number data BAR.
After that, the process proceeds to step 235 described above. Then, after executing the processing of step 235,
Return to the program. When song switch 21 is pressed, go to subroutine 110
Then, the process shown in FIG. 10 is executed. First, in step 241, the pattern mode flag P
Invert TN. That is, the pattern mode flag PTN is
If it is "0", the flag PTN is "1". If it is "1",
Set to “0”. Then, in step 242, the song L
Reverse the on / off status of ED32 and pattern LED33.
It In this case, if the pattern mode flag PTN is "0".
When the song LED32 lights up, the pattern LED33 goes out,
Conversely, if the pattern mode flag PTN is "1", the pattern
LED 33 for song lights up, and LED 32 for song goes out. This station
After executing the process in step 242, return to the main program.
It When light switch 22 is pressed, go to subroutine 111
Then, the process shown in FIG. 11 is executed. At step 251, the write mode flag WRT is inverted.
Then go back to the main program. Bar increment switch 23 or bar decreme
Button 24 is pressed, the program proceeds to subroutine 112.
Then, the processing shown in FIG. 12 is executed. First, in step 261, the bar increment
Switch 23 or the decrement switch 24
Is determined, and the bar increment switch 23 is
If so, proceed to step 262 and complete the bar de climen.
If the switch 24 is pressed, the process proceeds to step 265. In step 262, "1" is added to the bar number data BAR.
After is added, the process proceeds to the next step 263. This step
In 263, bar number data BAR = i × 128 + 1
Or not, that is, the bar number data BAR is currently
A value corresponding to the last measure (bar 128) of the song being processed
It is determined whether or not it has become "1" greater than (i x 128).
Be done. And the bar number data BAR is the above value (i × 128)
In the following cases, proceed directly to step 268 and i × 128 +
If it becomes 1, the process proceeds to step 264. This step 2
In 64, "1" is subtracted from the bar number data BAR.
Operation of the bar increment switch 23 is disabled,
This ensures that the bar number data bar is always being processed.
The value is limited to the value (i × 128) or less corresponding to the last measure of
Then, proceed to step 268. Meanwhile, the bar decrement switch 24 is pressed and the step
When you proceed to page 265, "1" is subtracted from the bar number data BAR.
After that, go to the next step 266. In this step 266
The bar number data BAR = (i-1) × 128
Or not, that is, the bar number data BAR is currently being processed
Value corresponding to the first measure (first measure) of the song
1) × 128 + 1}, is it smaller than "1"?
To be determined. And the bar number data BAR is the above value
If {(i-1) x 128 + 1} or more, the
Proceed to step 268, and if (i-1) x 128, the step
Go to 267. In this step 267, measure number
"1" is added to the data BAR, and the bar decrement switch
The operation of switch 24 is disabled, so that the measure number
A value corresponding to the first bar of the song currently processing the data BAR
Limit to {(i-1) × 128} or more, then step 2
Continue to 68. Then, in step 268, bar number data BAR
Subtract the above value {(i-1) × 128} from
The current bar number data BAR is matched to the bar number of each song.
Is it correct, i.e. find the actual measure number and
The measure number (1 to 128) of is displayed on the LCD display 31.
It After the processing of step 268, return to the main program.
It When the stop / continue switch 29 is pressed,
Proceed to subroutine 113 to execute the processing shown in FIG.
It First, in step 271, the rhythm run flag RUN
Whether or not it is “0” is determined, and the rhythm run flag RUN is set.
If "0", in step 272 the rhythm run flag R
After UN is set to "1", return to the main program. on the other hand,
If the rhythm run flag RUN is “1”, go to step 273.
The stop reserve flag STPRSV was set to "1".
Then return to the main program. When the clear switch 25 is pressed, the subroutine 114 is executed.
Then, the process shown in FIG. 14 is executed. At step 281, each item in the performance data memory 62 is
Of the memory position SONG (BAR), (i-1) × 128 + 1 or more,
Measure number data BAR less than i × 128 + 1 as address
The memory content of each designated memory location SONG (BAR) is set to "0".
That is, for each measure in the song currently being processed
After erasing the set rhythm type code RHYCD,
Return to in-program. Next, the CPU 72 executes the above-mentioned main program (Fig. 5).
In the process of cyclically processing steps 102 and 103 of
When the oscillator 40 generates the tempo clock signal, the CPU 72
Main program and subroutines 106 to 114 described above
Interrupt the process of the rhythm interrupt program shown in Fig. 15.
Start the program. Below, this rhythm interrupt
The program will be described. First, in step 301, the rhythm run flag RUN
Whether it is “1” or not is determined, and the rhythm run flag RUN is set.
If it is “0”, return to the main program and
If the run flag RUN is "1", the next step 302
Go to. In this step 302, the rhythm selection data RHYSE
Rhythm type code RHYCD set as L
Pocount data TCNT (initially set to "0"
Rhythm pattern memory 61 based on the
System pattern data and read this data
Supply to rhythm sound signal generation circuit 51 via bus line BUS
I do. The rhythm sound signal generation circuit 51
Form a percussion instrument sound signal specified by turn data,
This signal is supplied to the speaker 55 via the amplifier 54,
According to the rhythm pattern data from the speaker 55.
A percussion sound is produced. Liz corresponding to 1/48 of one bar by this step 302
After the muzzle sound generation process, the process proceeds to step 303, and the song LED 32
Flashes the light, which causes the end of each beat of one measure
The song LED 32 flashes at the head timing. Then, in step 304, the tempo count day
After adding “1” to TCNT, in step 305,
Tempo count data TCNT is the final value of each measure, that is,
It is determined whether or not it becomes "47". If the tempo count data TCNT is less than "47",
If so, return to the main program and set the tempo oscillator 40
Each time the poclock signal is generated, the rhythm interface described above is generated.
Repeat steps 301 to 305 of the Rapt program
Run. Repeat the above steps 301-305 48 times
By doing so, the rhythm sound for one bar is played. On the other hand, when the tempo count data TCNT becomes "47",
Proceed from step 305 to the next step 306, where the measure number
Add "1" to the data bar and then go to step 307
And subtracted (i-1) × 128 from the bar number data BAR.
LCD display of the value, that is, the bar number of the song to be processed thereafter
It is displayed by the device 31. Then proceed to step 308,
Flash the pattern LED 33 by flash,
The pattern LED 33 flashes at the beginning of each measure.
Light up. Then, in step 309, the stop reserve
It is determined whether or not lag STPRSV is "1".
Stop reserve flag STPRSV
It is set to “0” and the rhythm reserve is stored in the rhythm selection data RHYSEL.
The data RHYRSV is set and the rhythm run flag RUN is “0”.
After that, the process proceeds to step 318. On the other hand, if the flag STPRSV is “0”, step 311
In the verification check mode flag VCPLY
It is determined whether it is "1". And the verify check mode flag VCPLY
If the value is “1”, the rhythm run flag is set in step 312.
RUN and verify check mode flag VCPLY
After being set to "0", the process proceeds to step 318. If the flag VCPLY is “0”, go to step 313.
The variation fill-in flag VARFIL is “1”.
It is determined whether or not. And the variation fill-in flag VARFIL
If it is "0", proceed to the next Step 316, and set the same flag VARFI.
If L is "1", in step 314, the flag VARFIL is set.
Is set to “0”, and then in step 315, the rhythm
The selection data RHYSEL is set in subroutine 108.
After the updated value n is subtracted, the process proceeds to step 316.
move on. In this step 316, the pattern mode flag P
If TN is "1" and if the flag PTN is "1"
Goes to the next step 318, and if the flag PTN is "0"
At step 317, the rhythm selection data RHYSEL
And specify the new bar number data BAR as an address.
The rhythm type code RHYCD in the stored location SONG (BAR) is
It is set, and then proceeds to step 318. Then, in step 318, the tempo count data T
Return to the main program after "0" is set in CNT.
It Next, operate the various switches described above to perform automatic rhythm performance.
A series of operations for playing will be described. First, the power switch is turned on and the CPU 72 is initialized.
In this state, the pattern mode flag PTN is set to "1".
It is fixed. Here, when the song switch 21 is pressed,
Execute the processing of subroutine 110 (Fig. 10) and
The mode flag PTN is set to "0", and the song mode is set. Next, rhythm selection switch RS1~ RS20Is pressed
When the song number is specified, the processing of subroutine 107 is performed.
(Fig. 7) is executed and steps 211 → 216 → 218 → 220 are processed.
By reason, the measure corresponding to the first measure number of the specified song
Number data BAR is set. Next, when the light switch 22 is pressed, the subroutine
By executing the processing of 111 (Fig. 11), the write mode flag WRT
The write mode is set to "1". Next, rhythm selection switch RS1~ RS40Is pressed
And the rhythm pattern type is selected.
Execute the processing of Chin 107 (Fig. 7), and step 211 → 216
→ Corresponds to the specified rhythm pattern by processing 217
The selected rhythm type code RHYCD is stored in the performance data memory 62.
Storage location SONG with the bar number data BAR as the address
Written in (BAR). In this case, the rhythm selection switch
Chi RS1~ RS40Followed by the pattern variation selection
Itch PV1~ PV3Or fill-in selection switch FA, FB
When is pressed, the processing of subroutine 108 (Fig. 8) is executed.
And in step 227, in storage location SONG (BAR)
Data of the switch PV1~ PV3, FA, FB corresponding to FB
It is rewritten to the type code RHYCD. Next, when the bar increment switch 23 is pressed,
Execute the processing of subroutine 112 (Fig. 12), and measure number
The data BAR is incremented by "1" and the bar
When the decrement switch 24 is pressed, the measure number data
The BAR is decremented by "1", so that
The measure number to be processed is specified. As described above, the types of rhythm patterns for one song
Input is set sequentially for each measure, but during this input work
Then, for example, enter the type of rhythm pattern at bar 10.
The rhythm pattern you entered at bar 10
To confirm, press the start switch 28. When this start switch 28 is pressed, the subroutine
The process of 109 (FIG. 9) is executed, and steps 231 → 232 → 234
→ By the processing of 235, the verification check mode flag
G VCPLY is “1”, rhythm run flag RUN is “1”, tempo
The count data TCNT is set to "0". After that, as shown in Figure 15.
Rhythm interrupt program steps 301 → 302 →
By repeating the process of 303 → 304 → 305 48 times,
A rhythm depending on the type of rhythm pattern input at the measure
A mud sound is played. In this case, when you finish playing one bar
In points, steps 305 → 306 → 307 → 308 → 309 shown in FIG.
→ Proceed to 311 and proceed from step 311 to step 312
Rhythm run flag RUN and verify check mode
Since both flag flags VCPLY are set to “0”,
Rhythm sound corresponding to rhythm pattern is automatically generated only once
To be played. This allows you to select the type of rhythm pattern you just entered.
, Just press the start switch 28 to check immediately
be able to. In the above-mentioned embodiment, the performance data is
Input data according to the type of rhythm pattern in advance.
If you want to perform automatic rhythm performance based on this data,
As explained in the example, the operating information of the keyboard 10
Enter the data for automatic performance based on the
Of course, it is also applicable to electronic musical instruments that perform automatic melody based on
can do. [Advantage of the Invention] As described above, according to the present invention, the write mode
Sometimes the confirmation means responds to the operation of the confirmation instruction operator and
The specified section in which the performance information was written immediately before by the inserting means.
Automatically for the section based on the performance information (pattern) related to
Performs a performance, and after the automatic performance of the section ends, enters the writing state again
It works to restore. Therefore, write in write mode.
Troublesome operations associated with checking the patterns
The effect that it can be solved and work efficiency can be improved
Can be obtained.

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

第1図はこの発明の一実施例による自動演奏装置を備え
た電子楽器の構成を示すブロック図、第2図は同電子楽
器の操作パネルの外観構成を示す平面図、第3図は同電
子楽器のプログラムメモリ内に格納されているリズム種
別コード参照テーブルを説明するための図、第4図は同
電子楽器の演奏データメモリの記憶フォーマットを説明
するための図、第5図〜第15図は同電子楽器の動作を説
明するためのフローチャートである。 RS1〜RS40…リズムパターン選択スイッチ(入力手
段)、21…ソングスイッチ、22…ライトスイッチ、23…
バーインクリメントスイッチ、24…バーデクリメントス
イッチ(以上23,24が区間指定手段)、28…スタートス
イッチ(確認用操作手段)、51…リズム音信号発生回
路、54…アンプ、55…スピーカ、(以上、51,54,55が楽
音発生手段)、61…リズムパターンデータメモリ、62…
演奏データメモリ(メモリ)、70…マイクロコンピュー
タ(書込手段、読出手段)。
FIG. 1 is a block diagram showing the configuration of an electronic musical instrument provided with an automatic musical instrument according to an embodiment of the present invention, FIG. 2 is a plan view showing the external configuration of an operation panel of the electronic musical instrument, and FIG. FIG. 4 is a diagram for explaining a rhythm type code reference table stored in a program memory of the musical instrument, FIG. 4 is a diagram for explaining a storage format of a performance data memory of the electronic musical instrument, and FIGS. 3 is a flow chart for explaining the operation of the electronic musical instrument. RS 1 to RS 40 ... Rhythm pattern selection switch (input means), 21 ... Song switch, 22 ... Light switch, 23 ...
Bar increment switch, 24 ... Bar decrement switch (above 23 and 24 are section designating means), 28 ... Start switch (operation means for confirmation), 51 ... Rhythm sound signal generating circuit, 54 ... Amplifier, 55 ... Speaker, (above, 51, 54 and 55 are musical sound generating means), 61 ... Rhythm pattern data memory, 62 ...
Performance data memory (memory), 70 ... Microcomputer (writing means, reading means).

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】書込モードと再生モードのいずれかを指定
するモード指定手段と、 楽曲の演奏情報を記憶するための書き込み可能な記憶手
段と、 演奏情報を入力する入力手段と、 前記モード指定手段にて書込モードが指定されていると
き、前記入力手段によって入力された演奏情報を前記記
憶手段に書き込む書込手段と、 確認指示操作子と、 前記モード指定手段にて書込モードが指定されていると
き、前記確認指示操作子の操作に応答して、前記書込手
段によって直前に演奏情報が書き込まれた所定の区間に
係る演奏情報に基づいて、該区間の自動演奏を行い、該
区間の自動演奏終了後は再び書込状態に復帰させる確認
手段と、 前記モード指定手段にて再生モードが指定されていると
き、前記記憶手段に記憶されている演奏情報を楽曲の進
行に従って順次読み出し、該読み出された演奏情報に基
づいて自動演奏を行う演奏手段と、 を具備してなる自動演奏装置。
1. A mode designating means for designating either a writing mode or a reproducing mode, a writable storage means for storing performance information of a musical composition, an input means for inputting performance information, and the mode designating. When the writing mode is designated by the means, the writing means for writing the performance information input by the input means to the storage means, the confirmation instruction operator, and the writing mode is designated by the mode designating means. In response to the operation of the confirmation instruction operator, an automatic performance of the section is performed based on the performance information related to the predetermined section in which the performance information is written immediately before by the writing unit. When the playback mode is designated by the mode designating means, the confirming means for returning to the written state again after the automatic performance of the section is finished, and the performance information stored in the storing means is used to advance the music. Sequentially reads out automatic performance device comprising comprising a playing means for performing an automatic performance, the based on the read performance information in accordance with.
JP63006414A 1988-01-14 1988-01-14 Automatic playing device Expired - Lifetime JPH0827627B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63006414A JPH0827627B2 (en) 1988-01-14 1988-01-14 Automatic playing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63006414A JPH0827627B2 (en) 1988-01-14 1988-01-14 Automatic playing device

Publications (2)

Publication Number Publication Date
JPH01182891A JPH01182891A (en) 1989-07-20
JPH0827627B2 true JPH0827627B2 (en) 1996-03-21

Family

ID=11637707

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63006414A Expired - Lifetime JPH0827627B2 (en) 1988-01-14 1988-01-14 Automatic playing device

Country Status (1)

Country Link
JP (1) JPH0827627B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9017586B2 (en) 2004-04-29 2015-04-28 The Procter & Gamble Company Polymeric structures and method for making same
US9340657B2 (en) 2003-06-06 2016-05-17 The Procter & Gamble Company Crosslinking systems for hydroxyl polymers

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6012398A (en) * 1983-06-30 1985-01-22 三菱電機株式会社 Control system of attitude of artificial satellite
JPS60111294A (en) * 1983-11-18 1985-06-17 三洋電機株式会社 Electronic musical instrument
JPS61256391A (en) * 1985-05-10 1986-11-13 ヤマハ株式会社 Automatic performer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9340657B2 (en) 2003-06-06 2016-05-17 The Procter & Gamble Company Crosslinking systems for hydroxyl polymers
US9017586B2 (en) 2004-04-29 2015-04-28 The Procter & Gamble Company Polymeric structures and method for making same

Also Published As

Publication number Publication date
JPH01182891A (en) 1989-07-20

Similar Documents

Publication Publication Date Title
JPS6157640B2 (en)
JP2500528B2 (en) Electronic musical instrument
JPH0125078B2 (en)
JP3398554B2 (en) Automatic arpeggio playing device
JPH0827627B2 (en) Automatic playing device
JP3649014B2 (en) Performance data file playback setting control device
JP3318944B2 (en) Automatic performance device
JP2625207B2 (en) Automatic performance device
JP2625800B2 (en) Automatic performance device
JP2643277B2 (en) Automatic performance device
JP2591308B2 (en) Automatic performance device
JP3555255B2 (en) Automatic accompaniment device
JPH10288987A (en) Electronic musical instrument and musical sound control data generating device
JPH0375875B2 (en)
JP2570783B2 (en) Automatic performance device
JP2518340B2 (en) Automatic playing device
JPH07101348B2 (en) Automatic playing device
JP2705421B2 (en) Automatic accompaniment device
JP2760398B2 (en) Automatic performance device
JP3120487B2 (en) Electronic musical instrument with automatic accompaniment function
JP2621371B2 (en) Automatic performance device
JP2674331B2 (en) Automatic accompaniment device
JP3758041B2 (en) Musical sound control data generator
JP3505292B2 (en) Arpeggiator
JPS61175689A (en) Automatic performer

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term