JP2591308B2 - Automatic performance device - Google Patents

Automatic performance device

Info

Publication number
JP2591308B2
JP2591308B2 JP2270747A JP27074790A JP2591308B2 JP 2591308 B2 JP2591308 B2 JP 2591308B2 JP 2270747 A JP2270747 A JP 2270747A JP 27074790 A JP27074790 A JP 27074790A JP 2591308 B2 JP2591308 B2 JP 2591308B2
Authority
JP
Japan
Prior art keywords
data
pattern
memory
read
reading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2270747A
Other languages
Japanese (ja)
Other versions
JPH04147192A (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 JP2270747A priority Critical patent/JP2591308B2/en
Publication of JPH04147192A publication Critical patent/JPH04147192A/en
Application granted granted Critical
Publication of JP2591308B2 publication Critical patent/JP2591308B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION 【産業上の利用分野】[Industrial applications]

この発明は、複数の演奏データからなり所定期間に渡
って楽音の発生を制御するパターンデータを予め複数組
用意しておき、これらのパターンデータの時間経過に従
った組み合わせに応じて楽音の発生を制御する自動演奏
装置に関する。
According to the present invention, a plurality of sets of pattern data consisting of a plurality of performance data and controlling generation of musical sounds over a predetermined period are prepared in advance, and generation of musical sounds is performed in accordance with a combination of these pattern data with time. The present invention relates to an automatic performance device to be controlled.

【従来技術】[Prior art]

従来、この種の装置は、複数の演奏データからなり所
定期間に渡って楽音信号の発生を制御する複数組のパタ
ーンデータを記憶したパターンメモリと、複数組のパタ
ーンデータを表す複数のパターン番号を所定の組合わせ
で時間経過に従って記憶したシーケンスメモリとを備
え、前記シーケンスメモリから時間経過に従ってパター
ン番号を順次読み出すとともに、同読み出したパターン
番号により指定されたパターンデータ内の複数の演奏デ
ータを前記パターンメモリから順次時間経過に従って読
み出して、同読み出した演奏データに応じて楽音信号の
発生を制御するようにしていた。
Conventionally, this type of apparatus stores a pattern memory that stores a plurality of sets of pattern data that is composed of a plurality of pieces of performance data and controls generation of a tone signal over a predetermined period, and stores a plurality of pattern numbers representing the plurality of sets of pattern data. A sequence memory stored in a predetermined combination as time elapses, sequentially reading pattern numbers from the sequence memory as time elapses, and reading a plurality of performance data in the pattern data designated by the read pattern number. The data is sequentially read out from the memory as time passes, and the generation of a tone signal is controlled in accordance with the read performance data.

【発明が解決しようとする課題】 しかし、上記従来の自動演奏装置にあっては、第4図
に示すような繰り返し記号付きの楽譜に対応して楽音の
発生を制御する場合、繰り返し部分のパターン番号であ
っても、シーケンスメモリ内に読み出されるべき順にパ
ターン番号を記憶させておく必要があり、同メモリの容
量が大きくなるという問題があった。特に、従来の自動
演奏装置にあっては、繰り返されるパターンが最後の部
分だけ異なっている場合における処理が不可能であり、
前記楽譜に対応した演奏データの記録及び再生に大きな
障害となっていた。 この発明は上記問題に対処するためになされたもの
で、その目的は、繰り返し記号付き、特に最後のパター
ンだけが異なる繰り返し信号付きの楽譜に対応した演奏
データの記録及び再生を簡易にした自動演奏装置を提供
することにある。
However, in the above-described conventional automatic performance apparatus, when controlling the generation of musical tones corresponding to a musical score with a repetition symbol as shown in FIG. Even for the numbers, it is necessary to store the pattern numbers in the sequence memory in the order in which they should be read, and there is a problem that the capacity of the memory is increased. In particular, in the case of a conventional automatic performance device, it is impossible to perform processing when the repeated pattern is different only in the last part.
This has been a major obstacle to recording and reproduction of performance data corresponding to the score. SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problem, and an object of the present invention is to provide an automatic performance apparatus that simplifies recording and reproduction of performance data corresponding to a musical score with a repetition symbol, especially a repetition signal having a different last pattern. It is to provide a device.

【課題を解決するための手段】[Means for Solving the Problems]

上記目的を達成するために、第1の発明(上記請求項
1に記載の発明)の構成上の特徴は、複数の演奏データ
からなり所定期間に渡って楽音信号の発生を制御する複
数組のパターンデータを記憶したパターンメモリと、複
数組のパターンデータをそれぞれ表す複数のパターン番
号を時間経過に従って記憶するとともに、同記憶パター
ン番号のうちで繰り返し読み出すべきパターン番号の区
間を表す区間データ、同繰り返しの回数を表す回数デー
タ、及び同繰り返しの際における最終パターン番号に代
えて読み出すべき差替えパターン番号からなる繰り返し
関係データを記憶したシーケンスメモリと、シーケンス
メモリ内に記憶されているデータを時間経過に従って順
次読み出す第1読出し手段と、第1読出し手段により読
み出されたデータのうちの繰り返し関係データに基づき
第1読出し手段を制御して、区間データにより指定され
る区間内のパターン番号を回数データに対応した回数だ
け繰り返し読み出すとともに、差替えパターン番号を繰
り返しの際における最終パターン番号に代えて読み出す
繰り返し読出し制御手段と、第1読出し手段により読み
出されたデータのうちのパターン番号に基づいてパター
ンメモリ内の一つのパターンデータを指定するとともに
同指定されたパターンデータ内の複数の演奏データを時
間経過に従って順次読み出す第2読出し手段と、読み出
した演奏データに応じた楽音信号を形成出力する楽音信
号形成手段とを備えたことにある。 また、第2の発明(上記請求項2に記載の発明)の構
成上の特徴は、前記第1の発明のシーケンスメモリを書
き込み可能なメモリで構成するとともに、同第1の発明
の構成の他に、複数組のパターンデータのうちの任意の
パターンデータを表すパターン番号をシーケンスメモリ
へ順次書き込む第1書込み手段と、シーケンスメモリに
記憶されている複数のパターン番号のうちで繰り返し読
み出すべきパターン番号の区間を表す区間データ、同繰
り返しの回数を表す回数データ、及び同繰り返しの際に
おける最終パターン番号に代えて読み出すべき差替えパ
ターン番号からなる繰り返し関係データをシーケンスメ
モリに書き込む第2書込み手段とを加えたものである。
In order to achieve the above object, a structural feature of the first invention (the invention described in the first aspect) is that a plurality of sets of a plurality of sets of performance data for controlling generation of a musical tone signal over a predetermined period are provided. A pattern memory that stores pattern data, a plurality of pattern numbers respectively representing a plurality of sets of pattern data are stored as time elapses, and section data representing a section of a pattern number to be repeatedly read out of the same storage pattern numbers; And a sequence memory that stores repetition-related data including a number-of-times data representing the number of times and a replacement pattern number to be read instead of the last pattern number in the case of the same repetition, and data stored in the sequence memory sequentially with time. First read means for reading, and data read by the first read means. The first reading unit is controlled based on the repetition relation data to repeatedly read the pattern number in the section specified by the section data by the number of times corresponding to the number-of-times data, and replace the replacement pattern number with the last pattern number in the repetition. A repetitive reading control means for reading in place, and a pattern data in a pattern memory based on a pattern number of data read by the first reading means, and a plurality of performances in the designated pattern data; There is provided a second reading means for sequentially reading out data as time passes, and a tone signal forming means for forming and outputting a tone signal according to the read performance data. The second embodiment (the second aspect of the present invention) is characterized in that the sequence memory according to the first aspect of the present invention is configured by a writable memory, A first writing means for sequentially writing a pattern number representing an arbitrary pattern data among a plurality of sets of pattern data to a sequence memory; and a pattern number to be repeatedly read among a plurality of pattern numbers stored in the sequence memory. Second writing means for writing, in a sequence memory, section data representing a section, number-of-times data representing the number of repetitions, and repetition-related data including replacement pattern numbers to be read in place of the last pattern number in the repetition, are added. Things.

【発明の作用及び効果】Actions and effects of the present invention

上記のように構成した第1の発明においては、第1読
出し手段がシーケンスメモリ内に記憶されているパター
ン番号を時間経過に従って順次読み出すとともに、第2
読出し手段が前記読み出したパターン番号に基づいてパ
ターンメモリ内の一つのパターンデータを指定するとと
もに、同指定されたパターンデータ内の複数の演奏デー
タを時間経過に従って順次読み出して、楽音信号形成手
段が前記読み出した演奏データに応じた楽音信号を形成
出力するので、複数の異なるパターンを時系列的に組み
合わせた演奏音が再生される。また、シーケンスメモリ
には、記憶パターン番号のうちの繰り返し読み出すべき
パターン番号の区間を表す区間データ、同繰り返しの回
数を表す回数データ、及び同繰り返しの際における最終
パターン番号に代えて読み出すべき差替パターン番号か
らなる繰り返し関係データが記憶されており、第1読出
し手段により前記繰り返し関係データが読み出された場
合には、繰り返し読出し制御手段が同繰り返し関係デー
タに基づき第1読出し手段を制御して、区間データによ
り指定される区間内のパターン番号を回数データに対応
した回数だけ繰り返し読み出すとともに、差替えパター
ン番号を繰り返しの際における最終パターン番号に代え
て読み出す。そして、このように区間データ、回数デー
タ及び差替えパターン番号に従って読み出されたパター
ン番号も第2読出し手段で前述のように利用され、同第
2読出し手段は同パターン番号に従ってパターンメモリ
内の演奏データを順次読み出し、楽音信号形成手段が前
記読み出した演奏データに応じて楽音信号を形成出力す
る。 その結果、第1の発明によれば、区間データ、回数デ
ータ及び差替えパターン番号からなる繰り返し関係デー
タを予めパターン番号と共にシーケンスメモリに記憶さ
せておくようにすれば、前記繰り返し関係データに従っ
たパターン番号の読み出しが可能になるとともに、これ
らのパターン番号に従ったパターンメモリ内の演奏デー
タの読み出し及び演奏データに従った楽音信号の再生が
可能となるので、シーケンスメモリの容量を小さくでき
るとともに、楽譜に対応させて記録したパターンデータ
の再生が可能となる。 また、上記のように構成した第2の発明においては、
第1書込み手段を用いてシーケンスメモリに複数組のパ
ターンデータのうちの任意のパターンデータを表すパタ
ーン番号を順次書き込むことができるとともに、第2の
書込み手段を用いて同シーケンスメモリに前述した区間
データ、回数データ及び差替えパターン番号からなる繰
り返し関係データを書き込むことができるので、繰り返
し関係データを含む複数のパターン番号を書き込んだシ
ーケンスメモリを作ることができる。そして、このよう
にしてシーケンスメモリに一連のパターン番号、区間デ
ータ、回数データ及び差替えパターン番号からなる繰り
返し関係データを書き込んだ後、前述した第1の発明の
ように、第1及び第2読出し手段により、繰り返し関係
データを用いた演奏データの再生ができる。 その結果、第2の発明によれば、繰り返し関係データ
を利用することにより小さな容量のシーケンスメモリに
演奏時間の長い曲に関するパターン番号を記憶させるこ
とが可能となるとともに、繰り返し番号付きの楽譜上の
演奏情報を楽譜通りにシーケンスメモリに記憶させるこ
とができるようになり、パターン番号の記録作業も楽に
なる。そして、これらの演奏情報を忠実に再生できる。
In the first invention configured as described above, the first reading means sequentially reads the pattern numbers stored in the sequence memory as time elapses, and
The reading means designates one pattern data in the pattern memory based on the read pattern number, and sequentially reads a plurality of performance data in the designated pattern data in accordance with the passage of time. Since a tone signal corresponding to the read performance data is formed and output, a performance sound in which a plurality of different patterns are combined in time series is reproduced. In the sequence memory, the section data indicating the section of the pattern number to be repeatedly read out of the stored pattern numbers, the count data indicating the number of times of the same repetition, and the replacement to be read instead of the last pattern number in the case of the same repetition The repetition relation data including the pattern number is stored, and when the repetition relation data is read by the first reading means, the repetition reading control means controls the first reading means based on the repetition relation data. The pattern number in the section specified by the section data is repeatedly read out the number of times corresponding to the number-of-times data, and the replacement pattern number is read out instead of the last pattern number in the repetition. The pattern number read in accordance with the section data, the number-of-times data and the replacement pattern number is also used by the second reading means as described above, and the second reading means uses the performance data in the pattern memory in accordance with the pattern number. Are sequentially read, and the tone signal forming means forms and outputs a tone signal according to the read performance data. As a result, according to the first aspect, if the repetition relation data including the section data, the number-of-times data, and the replacement pattern number is stored in advance in the sequence memory together with the pattern number, the pattern according to the repetition relation data is obtained. In addition to being able to read the numbers, it is also possible to read out the performance data in the pattern memory according to these pattern numbers and to reproduce the tone signals in accordance with the performance data. Can be reproduced. Further, in the second invention configured as described above,
A pattern number representing an arbitrary pattern data of a plurality of sets of pattern data can be sequentially written in the sequence memory by using the first writing means, and the above-described section data can be written into the sequence memory by using the second writing means. , The repetition relation data including the number-of-times data and the replacement pattern number can be written, so that a sequence memory in which a plurality of pattern numbers including the repetition relation data are written can be made. Then, after the repetition relation data including the series of pattern numbers, section data, number-of-times data, and replacement pattern numbers is written in the sequence memory in this manner, the first and second reading means are provided as in the first invention. Thus, the performance data can be reproduced using the repetition relation data. As a result, according to the second aspect of the present invention, it is possible to store a pattern number of a song having a long playing time in a small-capacity sequence memory by using the repetition relation data, The performance information can be stored in the sequence memory according to the musical score, and the work of recording the pattern numbers becomes easy. Then, such performance information can be faithfully reproduced.

【実施例】【Example】

以下、この発明の一実施例を図面を用いて説明する
と、第1図はこの発明に係るデータ書き込み装置付きの
自動演奏装置の外観を概略的に示している。 この自動演奏装置のパネル10には、ディスプレイ11が
設けられるとともに、押圧操作される各種操作子が設け
られている。パターンモード操作子12a、ソングモード
操作子12b、ユーティリティモード操作子12c及びボイス
モード操作子12dは、当該自動演奏装置の作動モードと
してのパターンモード、ソングモード、ユーティリティ
モード及びボイスモードをそれぞれ指示するものであ
る。レコード操作子12e及びエディット操作子12fは、前
記ソングモードにおけるパターンナンバレコード処理モ
ード及びエデット処理モードを指示するものである。ス
タート操作子12g及びストップ操作子12hは、前記ソング
モードにおける自動演奏の再生開始及び停止をそれぞれ
指示するものである。打楽器操作子群13a〜13jは、シン
バル、バスドラ、ハイハットなどの打楽器にそれぞれ対
応していて各打楽器音を指定するものである。テンキー
操作子群14a〜14jは「0」〜「9」の数字にそれぞれ対
応しており、各数字を入力するものである。アップ操作
子15a及びダウン操作子15bは後述するディスプレイ11に
おけるカーソルの位置を移動したり、データ値の増減を
指示するものである。エンタ操作子16は、前記テンキー
操作子群14a〜14j、アップ操作子15a及びダウン操作子1
5bにより入力及び変更された数値の確定を指示するもの
である。また、このパネル10には、自動演奏のテンポ及
び同演奏音の音量を決定するための回転式のテンポ操作
子17及び音量操作子18が設けられている。 次に、この自動演奏装置の電気回路構成について第2
図を用いて説明する。 この電子楽器は、前記各操作子12a〜12h,13a〜13j,14
a〜14j,15a,15b,16〜18のそれぞれ対応した複数のパネ
ルスイッチからなるパネルスイッチ回路21と、ディスプ
レイ11の表示状態を制御するディスプレイ制御回路22と
を備えており、これらの各回路21,22はインターフェー
ス21a,22aを介してバス23にそれぞれ接続されている。 バス23には、外部入出力回路24、楽音信号形成回路2
5、及びマイクロコンピュータ30も接続されている。 外部入出力回路24は、他の電子楽器、他の自動演奏装
置、他のコンピュータなどの外部装置からの各種データ
を取り込んだり、外部装置へ各種データを送出するもの
である。 楽音信号形成回路25は、バス23を介して供給されるデ
ータに応じてシンバル、バスドラ、ハイハットなどの打
楽器音を表すディジタル楽音信号を形成して出力するも
のである。楽音信号形成回路25の出力にはサウンドシス
テム26が接続されている。サウンドシステム26は、D/A
変換器、アンプ、スピーカなどからなり、楽音信号形成
回路25からのディジタル楽音信号をアナログ楽音信号に
変換するとともに同アナログ楽音信号に対応した楽音を
音響変換して出力するものである。 マイクロコンピュータ30は、バス23に接続されたプロ
グラムメモリ31、CPU32、ワーキングメモリ33及びデー
タメモリ34を備えている。 プログラムメモリ31はROMにより構成され、第5〜11
図に示すフローチャートに対応したプログラムを記憶し
ている。CPU32は前記各プログラムを実行するものであ
る。このCPU32にはタイマ回路35が接続されており、同
回路35は前記プログラムの実行により設定されるタイミ
ングでCPU32に対して割り込み指令信号を出力する。ワ
ーキングメモリ33はRAMにより構成され、前記プログラ
ムの実行に必要な各種データを一次的に記憶するもので
ある。 データメモリ34は、ROMにより構成されたパターンメ
モリ34a及びアドレステーブル34bを有するとともに、RA
Mにより構成されたパターンメモリ34c、アドレステーブ
ル34d及びシーケンスメモリ34eを有する。パターンメモ
リ34aには複数組のパターンデータが予め記憶されてお
り、各パターンデータは、第3A図に示すように、1小節
の長さに渡り時間経過に従って配列された複数の演奏デ
ータからなる。この演奏データは、打楽器名を表すイベ
ントデータEVENTと、打楽器音の発音時間間隔(イベン
トデータEVENTの読出し時間間隔)を表す時間データTIM
Eとからなる。また、パターンデータの最後にはパター
ンエンドPTENDが記憶されている。アドレステーブル34b
には、第3B図に示すように、前記複数組のパターンデー
タを表すパターン番号PTNNOと同パターンデータの先頭
のアドレス値を表す先頭アドレスSTADRとが対になって
記憶されている。パターンメモリ34cとアドレステーブ
ル34dには、前記パターンメモリ34aとアドレステーブル
34bと同種のデータが演奏者により書き込まれるように
なっている。シーケンスメモリ34eには、第3C図に示す
ようなシーケンスデータが書き込まれるようになってい
る。このシーケンスデータは、時間経過に従った一連の
パターン番号PTNNO、シーケンスエンドSEND、リピート
ビギンRBGN、リピートエンドREND、リピート回数RCNT及
び差替えパターン番号PTNNOからなる。リピートビギンR
BGNはパターンの繰り返し開始位置を表し、リピートエ
ンドRENDは同繰り返しの終点位置を表し、リピート回数
RCNTは繰り返し開始位置と終点位置とに挟まれたパター
ンの繰り返し回数を表し、差替えパターン番号PTNNOは
繰り返しの最後のパターンに代えて読出すべきパターン
データを表すもので、これらは繰り返し関係データを構
成する。 次に、上記のように構成した実施例の動作を説明す
る。 電源スイッチ(図示しない)が投入されると、CPU32
は第5図のステップ50にて「メインプログラム」の実行
を開始し、ステップ51にて初期設定処理を実行してワー
キングメモリ33及びパターンメモリ34c、アドレステー
ブル34d及びシーケンスメモリ34e内の各種データを初期
値に設定するとともに、楽音信号形成回路25を初期設定
する。 この初期設定後、CPU32は、ステップ52〜59からなる
循環処理を繰り返し実行する。 ステップ52においては、パネルスイッチ回路21からの
信号によりパターンモード操作子12a、ソングモード操
作子12b、ユーティリティモード操作子12c及びボイスモ
ード操作子12dのうちのいずれかの操作子が操作された
か否かが判定される。これらのモード操作子12a〜12dの
いずれも操作されなければ、前記ステップ52における
「NO」との判定の基に、プログラムはステップ54へ進め
られるが、同モード操作子12a〜12dのいずれかが操作さ
れると、前記ステップ52における「YES」との判定の基
に、ステップ53にてモードデータMODEが操作されたモー
ド操作子12a〜12dに対応した値に設定される。この場
合、パターンモード操作子12aが操作されればモードデ
ータMODEは「0」に設定され、ソングモード操作子12b
が操作されればモードデータMODEは「1」に設定され、
ユーティリティモード操作子12cが操作されればモード
データMODEは「2」に設定され、ボイスモード操作子12
dが操作されればモードデータMODEは「3」に設定され
る。 次に、ステップ54にてモードデータMODEの値に基づく
判定処理が実行されて、プログラムはステップ55〜58の
いずれかに進められる。 この場合、モードデータMODEが「0」であれば、ステ
ップ55の処理すなわち「パターンモード処理」が実行さ
れる。この「パターンモード処理」は、パターンメモリ
34cに複数の演奏データからなる各パターンデータを書
き込むとともに、アドレステーブル34dに同パターンデ
ータを表すパターン番号PTNNO及び同パターンデータの
先頭アドレスSTADRを書き込む処理である。 パターンデータの書き込みにおいては、打楽器操作子
群13a〜13jの操作によって同操作された操作子に対応し
た打楽器名を表すイベントデータEVENTがパターンメモ
リ34c内に時系列的に書き込まれるとともに、テンキー
操作子群14a〜14j、アップ及びダウン操作子15a,15b及
びエタン操作子16の操作により、イベントデータEVENT
とイベントデータEVENTとの間の必要箇所に時間データT
IMEが書き込まれる。この場合、前記打楽器操作子群13a
〜13jの操作時間間隔をタイマ回路35により計測して、
同計測時間を時間データTIMEとするようにしてもよい。
そして、入力した各時間データTIMEの合計値又は前記タ
イマ回路35による計測時間が1小節に対応した時間にな
った時点で、パターンデータの最後にパターンエンドPT
ENDが自動的に書き込まれる。 一方、パターン番号PTNNO及び先頭アドレスSTADRの書
き込みにおいては、パターン番号PTNNOがテンキー操作
子群14a〜14jにより指示されると、同指示された値と共
に前記パターンデータの先頭アドレス値が自動的にアド
レステーブル34d内に書き込まれる。なお、この場合、
パターン番号PTNNOは、アドレステーブル34bに予め記憶
されているものと異ならせる必要がある。このようなパ
ターンデータなどの作成により、パターンメモリ34a内
に予め記憶されているパターンデータに加えて、パター
ンメモリ34c内に任意のパターンデータが用意される。 また、モードデータMODEが「1」であれば、ステップ
56の処理すなわち「ソングモード処理」が実行される。
この「ソングモード処理」は、シーケンスメモリ34e
に、パターン番号PTNNO、シーケンスエンドSEND、リピ
ートビギンRBGN、リピートエンドREND、リピート回数RC
NT及び差替えパターン番号PTNNOからなるシーケンスデ
ータなどを書き込むとともに、これらの各データを時間
経過に従って自動的に読出して打楽器音演奏を自動再生
するモードである。なお、このモードは、この発明に直
接関係するので、詳しく後述する。 また、モードデータMODEが「2」であれば、ステップ
57の処理すなわち「ユーティリティモード処理」が実行
される。この「ユーティリティモード処理」は、外部入
出力回路24を介して、他の電子楽器、他の自動演奏装
置、他のコンピュータなどの外部装置とのデータの授受
を行うモードである。これにより、外部装置で形成した
パターンデータ、アドレステーブルデータ、シーケンス
データをパターンメモリ34c、アドレステーブル34d及び
シーケンスメモリ34eに入力したり、当該自動演奏装置
で作成してパターンメモリ34c、アドレステーブル34d、
シーケンスメモリ34e内に記憶されている各データ、及
びパターンメモリ34a、アドレステーブル34b内に予め記
憶されている前記各データが外部装置へ送出される。 また、モードデータMODEが「3」であれば、ステップ
58の処理すなわち「ボイスモード処理」が実行される。
この「ボイスモード処理」は、楽音信号形成回路25にて
形成される打楽器音信号の音色、音量エンベロープなど
を設定するモードであり、テンキー操作子群14a〜14j、
アップ及びダウン操作子15a,15b、エンタ操作子16など
の操作により、楽音制御パラメータが形成されて、楽音
信号形成回路25へ送出される。 このようなステップ55〜58の処理後、ステップ59にて
その他の処理がなされる。この処理においては、打楽器
操作子群13a〜13jの操作に応答して、同操作された操作
子に対応した打楽器音を発生するための制御データが楽
音信号形成回路25へ送出される。これにより、楽音信号
形成回路25は前記制御データに応じて打楽器音信号を形
成してサウンドシステム26へ供給し、同システム26から
前記打楽器音信号に対応した打楽器音が発音される。ま
た、このステップ59の処理においては、テンポ操作子17
及び音量操作子18の操作も検出され、テンポ操作子17に
より設定されているテンポに応じてタイマ回路35の割り
込み指令信号の発生周期が制御されるとともに、音量操
作子18により設定されている音量に応じて楽音信号形成
回路25から出力される打楽器音信号の音量が制御され
る。さらに、同ステップ59においては、ステップ53,55
〜59において、入力され又は設定されたデータに関する
表示制御データがディスプレイ制御回路22へ出力され
る。これにより、ディスプレイ11においては、前記デー
タ値などが表示される。 次に、前記ステップ56の「ソングモード処理」につい
て詳細に説明する。 この「ソングモード処理」は第6図に詳細に示されて
おり、その実行がステップ60にて開始され、レコード操
作子12e、エディット操作子12f及びスタート操作子12g
が操作されない限り、レコードフラグREC、エディット
フラグEDIT及びプレイフラグPLAYは“0"に初期設定され
ているので、ステップ61〜66にてそれぞれ「NO」と判定
されて、ステップ67にて「ソングモード処理」の実行を
終了する。 このような状態で、レコード操作子12eが操作される
と、ステップ64における「YES」との判定の基に、ステ
ップ68にてレコードフラグRECが“1"に設定されるとと
もにシーケンスデータポインタSDPがシーケンスメモリ3
4eの先頭アドレス値に設定される。このようなレコード
フラグREC及びシーケンスデータポインタSDPの設定後、
次のサイクルの「ソングモード処理」においては、ステ
ップ61にて「YES」と判定されるようになり、以降、ス
テップ71の「パターンナンバレコード処理」が実行され
るようになる。 この「パターンナンバレコード処理」の詳細は第7図
に示されており、同処理はステップ100にて開始され
る。ステップ101〜104においては、テンキー操作子群14
a〜14j、アップ及びダウン操作子15a,15b、エンタ操作
子16による入力操作に応じて、パターンメモリ34a,34c
に記憶されているパターンデータを表すパターン番号PT
NNOがシーケンスメモリ34eに順次書き込まれる。すなわ
ち、演奏者が、ディスプレイ11を見ながら、テンキー操
作子群14a〜14j、アップ及びダウン操作子15a,15bを用
いて一つのパターン番号PTNNOを指定すると、ステップ1
01にて前記指定されたパターン番号PTNNOがCPU32内に取
り込まれる。その後、演奏者がエンタ操作子16を操作す
ると、ステップ102における「YES」との判定の基に、ス
テップ103にて前記取り込んだパターン番号PTNNOがシー
ケンスデータポインタSDPにより指定されるシーケンス
メモリ34e内の記憶位置に書き込まれ(第3C図参照)、
ステップ104にてシーケンスデータポインタSDPが歩進す
る。 このようにして一連のパターン番号PTNNOをシーケン
スメモリ34eに書き込んだ後、演奏者がストップ操作子1
2hを操作すると、ステップ105における「YES」との判定
の基に、ステップ106にてシーケンスエンドSENDがシー
ケンスデータポインタSDPにより指定されるシーケンス
メモリ34e内の記憶位置に書き込まれ(第3C図参照)、
ステップ107にてレコードフラグRECが“0"に変更され
る。 このような処理の後、ステップ108にて「パターンナ
ンバレコード処理」の実行が終了し、この状態ではシー
ケンスメモリ34eに一連のパターン番号PTNNO及びシーケ
ンスエンドSENDが記憶されている。 ふたたび、第6図の「ソングモード処理」の説明に戻
ると、エデイット操作子12fが操作されると、ステップ6
5における「YES」との判定の基に、ステップ69にてエデ
ィットフラグEDITが“1"に設定される。このエディット
フラグEDITの設定後、次のサイクルの「ソングモード処
理」においては、ステップ62にて「YES」と判定される
ようになり、以降、ステップ72の「エディット処理」が
実行されるようになる。 この「エディット処理」の詳細は第8図に示されてお
り、同処理はステップ200にて開始され、ステップ201に
てリピートフラグREPTが“0"か否かが判定される。最
初、リピートフラグREPTは“0"に初期設定されているの
で、ステップ201にて「YES」と判定され、ステップ202
〜205において、テンキー操作子群14a〜14j、アップ及
びダウン操作子15a,15b、エンタ操作子16による入力操
作に応じて、シーケンスメモリ34eに記憶されている一
連のパターン番号PTNNO等からなるデータ中に、繰り返
されるべき区間の開始位置を表すリピートビギンRBGNが
挿入書き込みされる。すなわち、演奏者が、ディスプレ
イ11を見ながらテンキー操作子群14a〜14j、アップ及び
ダウン操作子15a,15bを用いて、繰り返し区間の開始位
置を指定すると、ステップ202にて前記指定された位置
を表すパターンデータポインタ値PTDPがCPU32内に取り
込まれる。その後、演奏者がエンタ操作子16を操作する
と、ステップ203における「YES」との判定の基に、ステ
ップ204にて前記パターンデータポインタ値PTDPにより
指定されるシーケンスメモリ34e内のパターン番号PTNN0
の前にリピートビギンRBGNが挿入書き込みされ(第3C図
及び第4図参照)、ステップ205にてリピートフラグREP
Tが“1"に設定されて、ステップ210にて「エディット処
理」の実行が終了する。なお、この挿入書き込みにあた
っては、リピートビギンRBGNが書き込まれた以降のシー
ケンスメモリ34e内のデータは全て一つずつ後方へシフ
トされる。 また、前記のようにして、リピートフラグREPTが“1"
に制定された後には、以降の「エディット処理」のステ
ップ201にて「NO」と判定され、ステップ206〜209にお
いて、テンキー操作子群14a〜14j、アップ及びダウン操
作子15a,15b、エンタ操作子16による入力操作に応じ
て、シーケンスメモリ34eに記憶されている一連のパタ
ーン番号PTNNO等のデータ中に、繰り返されるべき区間
の終了位置を表すリピートエンドREND、同繰り返しの回
数を表すリピート回数RCNT及び繰り返しの最後の差替え
パターンを表す差替えパターン番号PTNNOが挿入書き込
みされる。すなわち、演奏者が、ディスプレイ11を見な
がらテンキー操作子群14a〜14j、アップ及びダウン操作
子15a,15bを用いて、繰り返し区間の終了位置、リピー
ト回数RCNT及び差替えパターン番号PTNNOを指定する
と、ステップ206にて前記指定された位置に対応したパ
ターンデータポインタ値PTDP、リピート回数RCNT及び差
替えパターン番号PTNNOがCPU32内に取り込まれる。その
後、演奏者がエンタ操作子16を操作すると、ステップ20
7における「YES」との判定の基に、ステップ208にて前
記パターンデータポインタ値PTDPにより指定されるシー
ケンスメモリ34e内のパターン番号PTNNOの後にリピート
エンドREND、リピート回数RCNT及び差替えパターン番号
PTNNOが挿入書き込みされ(第3C図及び第4図参照)、
ステップ209にてリピートフラグREPT及びエディットフ
ラグEDITが“0"に初期設定される。なお、この挿入書き
込みにあたっては、リピートエンドRBEND、リピート回
数RCNT及び差替えパターン番号PTNNOが書き込まれた以
降のシーケンスメモリ34e内のデータは全て三つずつ後
方へシフトされる。 このような処理の後、ステップ210にて「エディット
処理」の実行が終了し、この状態では、一連のパターン
番号PTNNOとシーケンスエンドSENDが書き込まれたシー
ケンスメモリ34e内に、リピートビギンRBGN、リピート
エンドRBEND、リピート回数RCNT及び差替えパターン番
号PTNNOからなる繰り返し関係データが挿入されてい
る。なお、第4図に示された楽譜の場合、リピート回線
RCNTは「3」に設定される。 ふたたび、第6図の「ソングモード処理」の説明に戻
ると、スタート操作子12gが操作されると、ステップ66
における「YES」との判定の基に、ステップ70にてプレ
イフラグPLAYが“1"に設定され、シーケンスデータポイ
ンタSDPがシーケンスメモリ34eの先頭アドレス値に設定
され、かつシーケンスリードフラグSR、ファーストフラ
グFT及びラストフラグLTがそれぞれ“1",“1",“0"に初
期設定される。これらのフラグ及びポインタPLAY,SDP,S
R,FT,LTの設定後、次のサイクルの「ソングモード処
理」においては、ステップ63にて「YES」と判定される
ようになり、以降、ステップ73の「ソングプレイ処理」
が実行されるようになる。 この「ソングプレイ処理」の詳細は第9図に示されて
おり、同処理はステップ300にて開始され、ステップ301
にてシーケンスリードフラグSRが“1"か否かが判定され
る。この場合、シーケンスリードフラグSRは“1"に初期
設定されているので、ステップ301にて「YES」と判定さ
れ、ステップ302にて、シーケンスデータポインタSDP
(この場合、シーケンスメモリ34eの先頭アドレス値に
設定されている)により指定されるシーケンスメモリ34
e内の記憶データが読み出されてシーケンスデータSDAT
として設定される。次に、ステップ303にてシーケンス
データポインタSDPを「1」だけ歩進された後、ステッ
プ304にて前記シーケンスデータSDATがパターン番号PTN
NOであるか否かが判定される。 この場合、シーケンスメモリ34eから読出した前記デ
ータは、第3C図に示すように、パターン番号PTNNOであ
るので、前記ステップ304にて「YES」と判定され、ステ
ップ305にてシーケンスデータSDATがパターン名データP
TNとして設定され、ステップ306にてシーケンスリード
フラグSRが“0"に変更されて、ステップ307にて「パタ
ーンデータ読出し処理」が実行される。 「パターン読出し処理」においては、第10図に詳細に
示されているように、その実行がステップ350にて開始
され、ステップ351にて前記ステップ70(第6図)の処
理により“0"に設定されているラストフラグLTに基づい
て「NO」と判定され、プログラムはステップ356へ進め
られる。ステップ356においては、アドレステーブル34
b,34dが参照されてパターン名データPTN(パターン番号
PTNNO)に対応したパターンデータの先頭アドレスSTADR
が読み出されるとともに、パターンデータポインタPTDT
が前記先頭アドレスSTADR値に初期設定される。 このパターンデータポインタPTDTの初期設定後、ステ
ップ357にて、パターンメモリ34a,34c内に記憶されてい
るパターン名データPTNに対応したパターンデータ内の
演奏データであって、前記ポインタPTDTにより指定され
る演奏データが読出される。そして、この演奏データが
イベントデータEVENTであれば、同ステップ357にて「YE
S」との判定の基に、ステップ358にて同イベントデータ
EVENTが楽音信号形成回路25に出力されるとともに、ス
テップ359にてパターンデータポインタPTDTが「1」だ
け歩進されて、プログラムはステップ357に戻される。
このステップ357〜359の処理は、パターンメモリ34a,34
cから次々に読み出される演奏データがイベントデータE
VENTである限り続けられ、同読み出される演奏データが
時間データTIMEになった時点で、ステップ357にて「N
O」と判定されて、プログラムはステップ360へ進められ
る。なお、このとき、パターンデータポインタPTDPは演
奏データ中の時間データTIMEの記憶位置を示している。 楽音信号形成回路25は前記出力されたイベントデータ
EVENTにより指定される打楽器音に対応した打楽器音信
号を形成し、サウンドシステム26から同打楽器音信号に
対応した楽音が発音される。 ステップ360においてはテンポカウントデータTCが
「0」に初期設定され、ステップ361にて同データTCが
前記パターンデータポインタPTDPにより指定される時間
データTIMEに等しいか否かが判定される。この場合、テ
ンポカウントデータTCは「0」に初期設定された直後で
あって、同ステップ361にて「NO」と判定され、ステッ
プ369にて「パターンデータ読出し処理」の実行が終了
して、プログラムは「ソングプレイ処理」(第9図)の
ステップ308に戻される。ステップ308においては、スト
ップ操作子12hが操作されたか否かが判定され、同操作
子12hが操作されなければ、同ステップ308における「N
O」との判定の基に、ステップ310にて「ソングプレイ処
理」の実行が終了する。そして、プレイフラグPLAYが
“1"である限り、前述のようにして「パターンデータ読
出し処理」を含む「ソングプレイ処理」が繰り返し実行
される。 このような状態においては、タイマ回路35がテンポ操
作子17の操作に応じて設定された周期で割り込み命令信
号をCPU32へ出力する。これにより、CPU32は、この命令
信号の到来毎に、第11図のステップ400〜402からなる
「タイマインタラプトプログラム」を割り込み実行し
て、ステップ401の処理によりテンポカウントデータTC
を「1」ずつ増加させる。 ふたたび、「ソングプレイ処理」(第9図)が実行さ
れると、前述したステップ306の処理によりシーケンス
リードフラグSRは“0"に設定されているので、ステップ
301にて「NO」と判定され、プログラムは「パターンデ
ータ処理」(第10図)のステップ361へ直接進められ
る。 ステップ361においては、前述と同様にして、テンポ
カウントデータTCがパターンデータポインタPTDPにより
指定される時間データTIMEに等しいか否かが判定され、
テンポカウントデータTCが時間データTIMEに達するま
で、「NO」と判定されて、ステップ369にて「パターン
データ読出し処理」の実行が終了する。一方、このよう
な「ソングプレイ処理」の繰り返し実行中、前記イベン
トデータEVENTの読出しから時間が経過して、テンポカ
ウントデータTCが前記時間データTIMEに等しくなると、
ステップ361にて「YES」と判定され、ステップ362にて
パターンデータポインタPTDPが「1」だけ歩進され、プ
ログラムはステップ363〜365からなる処理へ進められ
る。このステップ363〜365からなる処理においては、前
述したステップ357〜359の処理と同様に、パターンメモ
リ34a,34cから読み出される演奏データが時間データTIM
Eになるまで、演奏データ(イベントデータEVENT)が読
み出され続けて楽音信号形成回路25へ出力される。そし
て、演奏データとして時間データTIMEが読み出された時
点で、ステップ363における「NO」との判定の基に、ス
テップ366にてテンポカウントデータTCが「0」に初期
設定される。そして、演奏データとしてパターンエンド
PTENDがパターンメモリ34a,34cから読み出されるまで、
ステップ367にて「NO」と判定されてステップ369にて
「パターンデータ読出し処理」の実行が終了する。この
ようにして、パターンメモリ34a,34cに記録されている
演奏データが時間経過に従って読み出されるとともに、
同演奏データに応じた打楽器音が発音される。 さらに時間が経過して、パターンメモリ34a,34cから
演奏データとしてパターンエンドPTENDが読み出される
と、ステップ367にて「YES」と判定され、ステップ368
にてシーケンスリードフラグSRが“1"に変更されて、ス
テップ369にて「パターンデータ読出し処理」の実行が
終了することになる。 そして、次に、「ソングプレイ処理」(第9図)がス
テップ300にて開始されると、この場合には、シーケン
スリードフラグSRは前記ステップ368(第10図)の処理
により“1"に設定されているので、ステップ301にて「Y
ES」と判定され、前記と同様に、ステップ302〜310の処
理が実行される。この場合、シーケンスデータポインタ
SDPは前回よりも「1」だけ大きな値に設定されてい
て、シーケンスメモリ34eからは次のシーケンスデータ
としてパターン番号PTNNOが読み出されるとともに、ス
テップ307においては前記と同じ「パターンデータ読出
し処理」が実行されるので、次のパターン番号PTNNOに
より指定されたパターンデータがパターンメモリ34a,34
cから読み出される。 このようにして、シーケンスメモリ34e内の各データ
が順次読み出され、ステップ302にて読み出されたシー
ケンスデータSDATがリピートビギンRBGN(第3C図参照)
になると、ステップ303におけるシーケンスデータポイ
ンタSDPの歩進後、ステップ304にて「NO」と判定される
とともに、ステップ311にて「YES」と判定されて、ステ
ップ312にてリピートスタートアドレスRSAがシーケンス
データポインタ値SDPに設定される。この場合、リピー
トスタートアドレスRSAはリピートギンRBGNの次のアド
レスを示すことになる。ステップ312の処理後、ステッ
プ308の処理を経て、ステップ310にて「ソングプレイ処
理」の実行が終了する。 次に、「ソングプレイ処理」の実行が開始されると、
前回の「ソングプレイ処理」のステップ303の処理によ
り、シーケンスデータポインタSDPはリピートビギンRBG
Nの次のパターン番号PTNNOを示しているので、前述した
ステップ302〜307の処理により、前記次のパターン番号
PTNNOにより指定されるパターンデータ中の演奏データ
が読出されて、同データに応じた打楽器音信号の発生が
制御される。このようにして、順次、シーケンスメモリ
34e内のデータが読み出され、同データがリピートエン
ドRENDになると、ステップ304,311にてそれぞれ「NO」
と判定されるとともに、ステップ313にて「YES」と判定
されて、ステップ314以降の処理が実行される。この場
合、ファーストフラグFTは“1"に設定されているので、
ステップ314にて「YES」と判定され、ステップ315にて
チェンジパターンアドレスCPAが現在のシーケンスデー
タポインタ値SDPから「2」を減算した値SDP−2に設定
される。この場合、チェンジパターンアドレスCPAは、
繰り返しの際における最終パターン番号PTNNOが記憶さ
れているアドレスを示すもので、この最終パターン番号
PTNNOは、第3C図に示すように、現在のシーケンスデー
タポインタ値SDP(リピートエンドRENDの次のアドレス
を示している)が示すアドレスの2つ前のアドレスに記
憶されているからである。 前記ステップ315の処理後、ステップ316にて、シーケ
ンスデータポインタSDPを歩進させながら、リピートエ
ンドRENDの次のリピート回数RCNT及びパターン番号PTNN
Oがシーケンスメモリ34eから読み出されて、回数カウン
トデータCNT及び差替えパターン各データCPTNとして設
定される。なお、この実施例においては、リピート回数
は「3」に設定されており、回数カウントデータCNTは
「3」である。次に、ステップ317にてファーストフラ
グFTが“0"に変更された後、プログラムはステップ318
以降へ進められる。 ステップ318においては、シーケンスデータポインタS
DPがリピートスタートアドレス値RSAに設定される。次
に、ステップ319にて回数カウントデータCNTから「1」
が減算され、ステップ320にて同データCNTが「0」であ
るか否かが判定される。この場合、回数カウントデータ
CNTは最初「3」に設定されたために、現時点では
「2」であり、前記ステップ320にて「NO」と判定さ
れ、ステップ308の処理を経て、ステップ310にて「ソン
グプレイ処理」の実行が終了する。 そして、ふたたび、「ソングプレイ処理」がステップ
300にて開始されると、シーケンスデータポインタSDPは
前記ステップ318の処理によりシーケンスメモリ34e内の
リピートビギンRBGNの次のアドレスを示しているので、
同アドレスに記憶されているパターン番号PTNNOがふた
たび読み出されるようになる。このようにして、シーケ
ンスメモリ34e内のデータが順次読み出され、同読み出
されたデータがリピートエンドRENDになると、ステップ
313にて「YES」と判定され、プログラムは前記場合と同
様にステップ314以降へ進められる。この場合、前回の
ステップ317の処理により、フアーストフラグFTは“0"
に設定されているので、ステップ314にて「NO」と判定
され、ステップ318にてシーケンスデータポインタSDPが
リピートスタートアドレス値RSAにふたたび設定される
とともに、ステップ319にて回数カウントデータCNTから
「1」が減算される。そして、ステップ320にて、ふた
たび、回数カウントデータCNTが「0」であるか否かが
判定されるが、シーケンスメモリ34e内のリピートビギ
ンRBGNとリピートエンドREND間のパターン番号PTNNOの
繰り返し読み出しがリピート回数RCNTすなわち3回に達
するまでは、回数カウントデータCNTは「0」にならな
い。これにより、前記区間のパターン番号PTNNOの読出
しは3回まで同様に行われ、3回目の終わりになると、
ステップ320にて「YES」すなわち回数カウントデータCN
Tが「0」と判定されて、ステップ321にてラストフラグ
LTが“1"に変更される。 このようにラストフラグLTが“1"に変更された後、す
なわち4回目の繰り返し読み出しが行われるようになる
と、「パターンデータ読出し処理」のステップ351にて
「YES」すなわちラストフラグLTが“1"であると判定さ
れて、ステップ352にてシーケンスデータポインタSDPが
チェンジパターンアドレスCPAに等しいか否かが判定さ
れる。この場合、チェンジパターンアドレスCPAは、前
記ステップ315(第9図)の処理により、リピートエン
ドRENDの前のアドレス値、すなわち繰り返し区間の最終
パターン番号PTNNOのアドレス値を示しているので(第3
C図参照)、シーケンスデータポインタSDPがこのアドレ
ス値を示すようになるまでは、ステップ352における「N
O」との判定の基に、プログラムはステップ356へ進めら
れ、前述と同様な処理が実行される。 一方、シーケンスデータポインタSDPがチェンジパタ
ーンアドレス値CPAに等しくなると、前記ステップ352に
て「YES」と判定され、ステップ353にてパターン名デー
タPTNが差替えパターン各データ値CPTNに設定される。
これにより、前述したステップ356以降の処理により、
差替えパターン各データCPTNに対応したパターンデータ
中の演奏データがパターンメモリ34a,34cから順次読出
されるようになる。 前記ステップ353の処理後、ステップ354にてシーケン
スデータポインタSDPに「3」が加算され、ステップ355
にてフアーストフラグFT及びラストフラグはLTが“1",
“0"にそれぞれ初期設定される。この場合、シーケンス
データポインタDSPに「3」を加算する理由は、同ポイ
ンタSDPは現在リピートエンドRENDに対応したアドレス
を指示しており、この指示位置がリピート回数RCNT及び
差替えパターン番号PTNNOを飛び越した次のパターン番
号PTNNOとなるようにするためである(第3C図参照)。
また、フアーストフラグFT及びラストフラグLTの初期設
定は、次のパターンデータの繰り返し読出しに対処する
ためである。 さらに、時間が経過して、シーケンスメモリ34eから
シーケンスエンドSENDが読み出されると、ステップ304,
311,313(第9図)にて、いずれも「NO」と判定され、
ステップ322にてプレイフラグPLAYが“0"に変更され
る。その結果、「ソングモード処理」(第6図)のステ
ップ63にて「NO」と判定されるようになり、以降ステッ
プ73の「ソングプレイ処理」が実行されなくなり、演奏
データの読出しに応じた打楽器音による自動演奏が停止
する。また、上記のような自動演奏中、ストップ操作子
12hが操作されると、「ソングプレイ処理」(第9図)
のステップ308にて「YES」と判定され、ステップ309に
てプレイフラグPLAYが“0"に変更される。これにより、
この場合も、前記自動演奏が停止する。 上記動作説明からも理解できるとおり、上記実施例に
よれば、「エディット処理」(第8図)によりリピート
ビギンRBGN、リピートエンドREND、リピート回数RCNT、
差替えパターン番号PTNNOからなる繰り返し関係データ
をシーケンスメモリ34e内に挿入書き込みした後、「ソ
ングプレイ処理」(第9図)により前記繰り返し関係デ
ータに基づく制御の基にパターン番号PTNNOを時間経過
に従って繰り返して読み出して、同パターン番号PTNNO
により指定されるパターンデータに応じて打楽器音信号
の発生が制御されるので、繰り返し記号付きの楽譜に記
載された演奏情報の記録再生が可能となるとともに、シ
ーケンスメモリ34eの容量を小さくすることができる。 なお、上記実施例を次のように変更しても、この発明
は実施できるものである。 (1)上記実施例においては、打楽器音のみを自動的に
発生するようにしたが、打楽器音に代え又は同打楽器音
に加えて、ピアノ、ギターなどの音高を有する楽音、及
び複数の異なる音高の楽音からなる和音を自動的に発生
できるようにしてもよい。この場合、各パターンデータ
中のイベントデータEVENTとして音高を表すデータ及び
和音を表すデータをパターンメモリ34aに記憶させてお
くか、同データをパターンメモリ34cに書き込むように
すればよい。さらに、この場合には、楽音信号形成回路
25として、前記音高を有する楽音信号及び和音信号を形
成出力できるものを用いる。 (2)上記実施例においては、パターンメモリ34a,34c
内の各パターンデータの長さを1小節に設定したが、こ
の長さは、例えば半小節、2小節など1小節以外の値に
設定してもよい。また、これらの長さの異なるパターン
データをパターンメモリ34a,34c内に混在させておいて
もよい。 (3)上記実施例の「エディット処理」においては、繰
り返し関係データの挿入のみを行うようにしたが、同処
理にて、パターン番号PTNNOの挿入、各データの削除な
どを行えるようにしてもよい。 (4)上記実施例においては、シーケンスメモリ34eを
1つのみRAMで構成するようにしたが、同メモリ34eをRA
Mで複数構成しておき、複数のシーケンスデータを作成
した後、同複数のシーケンスデータを選択的に再生でき
るようにしてもよい。この場合、外部入出力回路24に外
部記録装置を接続して、同記録装置とシーケンスメモリ
との間のデータ授受を自由に行えるようにすると便利で
ある。また、シーケンスメモリとしてROMで構成した標
準的なものを用意しておき、同シーケンスメモリに記憶
されているシーケンスデータを再生可能とするようにし
てもよい。 さらに、パターンメモリ34c及びアドレステーブル34d
についても、外部入出力回路24を介して外部記録装置と
データの授受を行うようにするとよい。 (5)上記実施例においては、繰り返しの際に最後のパ
ターンを1回のみ差替えパターンに変更できるようにし
たが、前記最後のパターンを同一の差替えパターンで2
回,3回と複数回変更できるようにしてもよい。また、前
記複数回変更される差替えパターンを異なるものに順次
切り換えていくようにしてもよい。この場合、前記差替
えパターンの変更回数、複数の差替えパターンをシーケ
ンスメモリ34eに記憶しておき、同回数及びパターンに
応じて同メモリ34e内のシーケンスデータの読出しを制
御すればよい。 (6)上記実施例においては、マイクロコンピュータの
プログラム処理による自動演奏装置の例を示したが、こ
の発明はコンピュータを利用しないハード回路によって
も実現できる。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
And FIG. 1 shows a data writing device with a data writing device according to the present invention.
1 schematically shows the appearance of an automatic performance device. A display 11 is provided on a panel 10 of the automatic musical instrument.
Provided with various controls to be pressed
Have been. Pattern mode controller 12a, song mode
Operator 12b, utility mode operator 12c and voice
The mode operator 12d determines the operation mode of the automatic performance device.
Pattern mode, song mode, utility
Mode and voice mode, respectively.
You. Record operator 12e and edit operator 12f
Pattern number record processing mode in song mode
And an edit processing mode. S
The start operator 12g and the stop operator 12h are
Start and stop of automatic performance playback in mode
Instruct. The percussion instrument groups 13a to 13j
Bar, bass drum, hi-hat and other percussion instruments
It responds and specifies each percussion instrument sound. Numeric keypad
The operator groups 14a to 14j correspond to the numbers "0" to "9", respectively.
It is necessary to input each number. Up operation
The operator 15a and the down operator 15b are connected to the display 11 described later.
To move the cursor position and increase or decrease the data value.
Instruct. The enter operator 16 is
Operator group 14a to 14j, up operator 15a and down operator 1
Instruction to confirm the numerical value entered and changed by 5b
It is. Also, this panel 10 shows the tempo and
And rotary tempo control to determine the volume of the performance sound
An operator 17 and a volume operator 18 are provided. Next, regarding the electric circuit configuration of this automatic performance device,
This will be described with reference to the drawings. This electronic musical instrument has the above-mentioned operators 12a to 12h, 13a to 13j, 14
a to 14j, 15a, 15b, 16 to 18
Panel switch circuit 21 consisting of
A display control circuit 22 for controlling the display state of the ray 11;
Each of these circuits 21 and 22 is an interface
It is connected to the bus 23 via the buses 21a and 22a, respectively. The bus 23 has an external input / output circuit 24, a tone signal forming circuit 2
5, and the microcomputer 30 are also connected. The external input / output circuit 24 is used for other electronic musical instruments and other automatic performance devices.
Data from external devices such as devices and other computers
That captures data and sends various data to external devices
It is. The tone signal forming circuit 25 receives data supplied through the bus 23.
Cymbals, bass drums, hi-hats, etc.
Form and output digital musical signals representing musical instrument sounds
It is. The output of the tone signal forming circuit 25
The system 26 is connected. Sound system 26 is D / A
Consists of converters, amplifiers, speakers, etc., forms musical sound signals
Converts digital tone signal from circuit 25 into analog tone signal
Convert and convert the tone corresponding to the analog tone signal
The sound is converted and output. The microcomputer 30 is connected to a processor connected to the bus 23.
Program memory 31, CPU 32, working memory 33 and data
Data memory 34. The program memory 31 is constituted by a ROM,
Store the program corresponding to the flowchart shown in the figure.
ing. The CPU 32 executes each of the programs.
You. A timer circuit 35 is connected to the CPU 32,
The circuit 35 has a timing set by executing the program.
An interrupt command signal is output to the CPU 32 by the switching. Wa
The working memory 33 is composed of a RAM, and
Is used to temporarily store various data required to execute the program.
is there. The data memory 34 has a pattern memory constituted by a ROM.
Having a memory 34a and an address table 34b,
Pattern memory 34c composed of M, address table
And a sequence memory 34e. Pattern memo
A plurality of sets of pattern data are stored in advance in the memory 34a.
Each pattern data contains one measure as shown in FIG. 3A.
Multiple performance data arranged over time over the length of
Data. This performance data is an event that represents the percussion instrument name.
Event data and the percussion sound interval (event
Data TIM representing the readout time interval of the event data EVENT)
Consists of E. Also, at the end of the pattern data,
End end PTEND is stored. Address table 34b
As shown in FIG. 3B, the plurality of sets of pattern data
Of the same pattern data as the pattern number PTNNO representing the data
The start address STADR representing the address value of
It is remembered. Pattern memory 34c and address table
The pattern memory 34a and the address table
The same data as 34b is now written by the performer
Has become. As shown in FIG.
Such sequence data is written
You. This sequence data is a series of data over time.
Pattern number PTNNO, sequence end SEND, repeat
Begin RBGN, repeat end REND, repeat count RCNT and
And the replacement pattern number PTNNO. Repeat Begin R
BGN indicates the repeat start position of the pattern,
REND indicates the end position of the same repeat, and the number of repeats
RCNT is a pattern sandwiched between the repeat start position and end position.
The replacement pattern number PTNNO is
Pattern to be read in place of the last pattern of repetition
These represent data, and these represent repeated relational data.
To achieve. Next, the operation of the embodiment configured as described above will be described.
You. When a power switch (not shown) is turned on, the CPU 32
Is the execution of the "main program" in step 50 of FIG.
Is started, and in step 51,
King memory 33 and pattern memory 34c, address table
Initialize various data in the table 34d and the sequence memory 34e.
Value and initial setting of the tone signal forming circuit 25
I do. After this initialization, the CPU 32 consists of steps 52 to 59
Repeat the cycle process. In step 52, the signal from the panel switch circuit 21
Signal mode control 12a, song mode control
Operator 12b, utility mode operator 12c and voice mode
One of the mode controllers 12d has been operated
Is determined. These mode controls 12a-12d
If none of them is operated, the process proceeds to step 52.
The program proceeds to step 54 based on the determination of “NO”.
However, one of the mode operators 12a to 12d is operated.
Is determined, the result of the determination of “YES” in step 52 is
The mode in which the mode data MODE was operated in step 53
Are set to the values corresponding to the mode operators 12a to 12d. This place
If the pattern mode operator 12a is operated,
Data MODE is set to "0" and the song mode
Is operated, the mode data MODE is set to "1",
Mode if the utility mode operator 12c is operated
The data MODE is set to "2" and the voice mode control 12
If d is operated, the mode data MODE is set to "3".
You. Next, in step 54, based on the value of the mode data MODE
The judgment process is executed, and the program proceeds to steps 55 to 58.
Proceed to either. In this case, if the mode data MODE is "0",
Step 55, that is, “pattern mode processing” is executed.
It is. This "pattern mode processing"
Write each pattern data consisting of multiple performance data to 34c.
At the same time, the same pattern
Data pattern number PTNNO and the pattern data
This is the process of writing the start address STADR. When writing pattern data, use the percussion
Corresponds to the controls operated by the operations of groups 13a to 13j
Event data EVENT that represents the percussion instrument name
Is written in chronological order in the 34c
Operator groups 14a to 14j, up and down operators 15a, 15b and
Event data EVENT
Time data T where necessary between the event data EVENT
IME is written. In this case, the percussion instrument group 13a
The operation time interval of ~ 13j is measured by the timer circuit 35,
The measurement time may be used as time data TIME.
Then, the total value of the input time data TIME or the
The measurement time by the imma circuit 35 becomes a time corresponding to one bar.
At the end of the pattern data, the pattern end PT
END is written automatically. On the other hand, writing of pattern number PTNNO and start address STADR
When writing, the pattern number PTNNO is operated with the numeric keypad.
When specified by the child groups 14a to 14j,
The head address value of the pattern data is automatically added to
It is written in the rest table 34d. In this case,
The pattern number PTNNO is stored in the address table 34b in advance.
Need to be different from what is being done. Such a pa
By creating turn data, etc., the pattern memory 34a
In addition to the pattern data stored in advance in the
Arbitrary pattern data is prepared in the memory 34c. If the mode data MODE is "1", the step
The process of 56, that is, the "song mode process" is executed.
This “song mode processing” is performed in the sequence memory 34e
Pattern number PTNNO, sequence end SEND,
Tobegin RBGN, repeat end REND, repeat count RC
Sequence data consisting of NT and replacement pattern number PTNNO
Data, etc.
Automatically reads percussion instrument performance and automatically plays percussion instrument sound
Mode. This mode is directly compatible with the present invention.
Since they are closely related, they will be described later in detail. If the mode data MODE is "2", the step
57 processing, that is, "Utility mode processing" is executed.
Is done. This “Utility mode processing”
Via the output circuit 24, other electronic musical instruments, other automatic performance devices
Exchange of data with external devices such as devices and other computers
Mode. Due to this, it was formed by an external device
Pattern data, address table data, sequence
The data is stored in the pattern memory 34c, the address table 34d and
Input to the sequence memory 34e or the automatic performance device
The pattern memory 34c, the address table 34d,
Each data stored in the sequence memory 34e, and
In the pattern memory 34a and the address table 34b.
The stored data is transmitted to an external device. If the mode data MODE is "3", the step
The process of 58, that is, the "voice mode process" is executed.
This "voice mode processing" is performed by the tone signal forming circuit 25.
Tone, volume envelope, etc. of the percussion sound signal formed
Is a mode for setting numeric keypad operators 14a to 14j,
Up and down controls 15a, 15b, enter controls 16, etc.
The tone control parameters are formed by the operation of
The signal is sent to the signal forming circuit 25. After the processing of steps 55 to 58, in step 59
Other processing is performed. In this process, the percussion instrument
In response to the operation of the operators 13a to 13j, the operation performed
Control data for generating percussion sounds corresponding to
The signal is sent to the sound signal forming circuit 25. Thereby, the tone signal
The forming circuit 25 forms a percussion instrument sound signal according to the control data.
And supply it to the sound system 26.
A percussion sound corresponding to the percussion sound signal is emitted. Ma
In the process of step 59, the tempo operator 17
And the operation of the volume control 18 is also detected, and the tempo
Timer circuit 35 according to the set tempo.
Control of the generation cycle of the
Tone signal formation in accordance with the volume set by the crook 18
The volume of the percussion sound signal output from the circuit 25 is controlled.
You. Further, in step 59, steps 53 and 55
~ 59 related to the data entered or set
The display control data is output to the display control circuit 22.
You. As a result, the data is displayed on the display 11.
Data values are displayed. Next, the "Song mode processing" in step 56 is described.
This will be described in detail. This "song mode process" is shown in detail in FIG.
Execution is started in step 60, and record operation is performed.
Control 12e, edit control 12f and start control 12g
Record flag REC, edit, unless is operated
The flag EDIT and the play flag PLAY are initialized to “0”.
Is determined as “NO” in steps 61 to 66
Then, in step 67, the “song mode process” is executed.
finish. In such a state, the record operator 12e is operated.
Based on the determination of “YES” in step 64,
When the record flag REC is set to “1” in step 68
The sequence data pointer SDP is
Set to the start address value of 4e. Records like this
After setting the flag REC and the sequence data pointer SDP,
In the “Song mode processing” of the next cycle,
In step 61, the result is determined to be "YES".
"Pattern number record processing" of step 71 is executed
Become so. The details of this "pattern number record processing" are shown in FIG.
The process is started in step 100.
You. In steps 101 to 104, the ten key operator group 14
a to 14j, up and down controls 15a, 15b, enter operation
The pattern memories 34a, 34c
Pattern number PT representing the pattern data stored in
NNO is sequentially written to the sequence memory 34e. Sand
The performer operates the numeric keypad while looking at the display 11.
Use the group of crops 14a to 14j and the up and down operators 15a and 15b
And specify one pattern number PTNNO, then step 1
At 01, the specified pattern number PTNNO is stored in CPU32.
Get stuck. Then, the player operates the enter control 16.
Then, based on the determination of “YES” in step 102,
In step 103, the pattern number PTNNO
Sequence specified by sequence data pointer SDP
Written to a memory location in memory 34e (see FIG. 3C),
In step 104, the sequence data pointer SDP advances.
You. In this way, a series of pattern numbers PTNNO are sequenced.
After writing to the memory 34e, the performer
Operation of 2h determines “YES” in step 105
The sequence end SEND in step 106
Sequence specified by sequence data pointer SDP
Written to a memory location in memory 34e (see FIG. 3C),
In step 107, the record flag REC is changed to "0"
You. After such processing, in step 108, the “pattern name
The execution of the member record process has been completed.
A series of pattern numbers PTNNO and sequence
END SEND is stored. Return to the description of “Song mode processing” in FIG. 6 again.
Then, when the edit operator 12f is operated, step 6
Based on the determination of “YES” in step 5,
Bit flag EDIT is set to "1". This edit
After setting the flag EDIT, the “Song mode processing”
Is determined to be “YES” in step 62
After that, the “edit processing” in step 72
Will be executed. The details of the "edit processing" are shown in FIG.
The process is started in step 200 and proceeds to step 201.
It is determined whether the repeat flag REPT is "0". Most
Initially, the repeat flag REPT is initially set to “0”.
In step 201, “YES” is determined, and step 202
Up to 205, the numeric keypad groups 14a to 14j
Input operation using the down and down operators 15a and 15b and the enter operator 16.
One of the data stored in the sequence memory 34e depends on the operation.
Repeated data in the data consisting of a series of pattern numbers PTNNO, etc.
Repeat Begin RBGN indicating the start position of the section to be
Inserted and written. That is, the player
Numeric keypad operator groups 14a to 14j
Using the down operators 15a and 15b, the starting position of the repetition section
When the position is specified, in step 202 the specified position
Is stored in the CPU 32.
Be included. After that, the player operates the enter operator 16
Based on the determination of “YES” in step 203,
In step 204, the pattern data pointer value PTDP is used.
Pattern number PTNN0 in the specified sequence memory 34e
Before the repeat begin RBGN is inserted and written (Fig. 3C
And FIG. 4), repeat flag REP at step 205
T is set to “1” and at step 210, the
The execution of the process ends. Note that this insertion
Means that after the repeat begin RBGN was written
All data in the case memory 34e is shifted backward one by one.
Is As described above, the repeat flag REPT is set to "1".
After it is enacted, the steps for subsequent “edit processing”
Is determined to be “NO” in step 201, and
And ten key operator groups 14a to 14j,
According to the input operation by the akusaku 15a, 15b and the enter operator 16
The series of patterns stored in the sequence memory 34e.
Segment to be repeated in the data such as PTNNO
Repeat end REND indicating the end position of
Number of repeat times RCNT and last replacement of number
Replacement pattern number PTNNO representing the pattern is inserted and written
Is seen. That is, the player looks at the display 11.
Rag / numeric keypad group 14a-14j, up / down operation
Using the slaves 15a and 15b, the end position of the
The number of times RCNT and the replacement pattern number PTNNO
And the password corresponding to the designated position in step 206.
Turn data pointer value PTDP, repeat count RCNT and difference
The replacement pattern number PTNNO is taken into the CPU 32. That
Later, when the player operates the enter operator 16, the step 20
Based on the determination of “YES” in step 7,
The pattern specified by the pattern data pointer value PTDP
Repeat after pattern number PTNNO in cans memory 34e
End REND, repeat count RCNT and replacement pattern number
PTNNO is inserted and written (see FIGS. 3C and 4),
In step 209, repeat flag REPT and edit flag
Lag EDIT is initialized to “0”. Note that this insert
Including, repeat end RBEND, repeat times
After the number RCNT and the replacement pattern number PTNNO are written
The data in the descending sequence memory 34e is all three
Is shifted toward After such processing, in step 210, "Edit
Execution of "processing" is completed, and in this state, a series of patterns
The sheet where the number PTNNO and the sequence end SEND are written
Within repeat memory 34e, repeat begin RBGN, repeat
End RBEND, repeat count RCNT and replacement pattern number
No. PTNNO has been inserted.
You. In the case of the score shown in FIG. 4, a repeat line
RCNT is set to "3". Return to the description of “Song mode processing” in FIG. 6 again.
Then, when the start operator 12g is operated, step 66
In step 70 based on the determination of "YES" in
Flag PLAY is set to “1” and the sequence data point
SDP is set to the start address value of sequence memory 34e
The sequence read flag SR and the first flag
FT and last flag LT are initially set to “1”, “1”, “0”, respectively.
Is set. These flags and pointers PLAY, SDP, S
After setting R, FT, and LT, select the “Song mode processing” in the next cycle.
Is determined to be “YES” in step 63
After that, the “song play process” in step 73
Will be executed. Details of this "song play process" are shown in FIG.
The process is started in step 300 and step 301
Determines whether the sequence read flag SR is "1" or not.
You. In this case, the sequence read flag SR is initialized to “1”.
Since it is set, it is determined as “YES” in step 301.
In step 302, the sequence data pointer SDP
(In this case, the start address value of the sequence memory 34e is
Sequence memory 34 specified by (set)
The stored data in e is read and the sequence data SDAT
Is set as Next, in step 303, the sequence
After the data pointer SDP is incremented by “1”, the step
In step 304, the sequence data SDAT is changed to the pattern number PTN
It is determined whether the answer is NO. In this case, the data read from the sequence memory 34e is read.
The data is a pattern number PTNNO as shown in FIG. 3C.
Therefore, “YES” is determined in step 304, and the
In step 305, the sequence data SDAT is changed to the pattern name data P
Set as TN, sequence read in step 306
The flag SR is changed to “0” and the
Region data reading process "is executed. The “pattern readout process” is described in detail in FIG.
As shown, its execution starts at step 350
Then, at step 351, the processing of step 70 (FIG. 6) is performed.
Based on the last flag LT set to “0”
And the program proceeds to step 356.
Can be In step 356, the address table 34
b, 34d are referred to and the pattern name data PTN (pattern number
PTNNO) Start address STADR of pattern data corresponding to
Is read and the pattern data pointer PTDT
Is initialized to the start address STADR value. After initial setting of this pattern data pointer PTDT,
In step 357, the data stored in the pattern memories 34a and 34c
Pattern data in the pattern data corresponding to the PTN
Performance data, designated by the pointer PTDT.
Is read out. And this performance data
If the event data is EVENT, the same
In step 358, the same event data
EVENT is output to the tone signal forming circuit 25 and
The pattern data pointer PTDT is "1" at step 359.
The program is returned to step 357.
The processing of steps 357 to 359 is performed in the pattern memories 34a and 34a.
The performance data sequentially read from c is the event data E
As long as it is VENT, the performance data read out is
When the time data becomes TIME, "N
O ", the program proceeds to step 360
You. At this time, the pattern data pointer PTDP
The storage position of the time data TIME in the performance data is shown. The tone signal forming circuit 25 outputs the output event data.
Percussion instrument sound corresponding to the percussion instrument sound specified by EVENT
Signal from the sound system 26 to the percussion sound signal
The corresponding tone is pronounced. In step 360, the tempo count data TC
Initially set to "0", the same data TC
Time specified by the pattern data pointer PTDP
It is determined whether or not the data is equal to TIME. In this case,
Immediately after the initial count data TC is initialized to "0"
Therefore, the determination at step 361 is “NO” and the
The execution of the "pattern data readout process" ends at step 369.
Then, the program uses the “song play process” (Fig. 9).
Returning to step 308. In step 308, the strike
It is determined whether or not the operator 12h has been operated.
If the child 12h is not operated, “N
O on the basis of the judgment of
The execution of the process ends. And the play flag PLAY
As long as it is “1”, “read pattern data”
"Song play process" including "out process" is repeatedly executed
Is done. In such a state, the timer circuit 35 operates the tempo.
Interrupt command signal at the cycle set in accordance with the operation of cutter 17
Output to CPU32. As a result, the CPU 32
Each time a signal arrives, it consists of steps 400 to 402 in FIG.
Execute the "Timer Interrupt Program" by interrupt
And the tempo count data TC
Is increased by “1”. The "Song Play Process" (Fig. 9) is executed again.
Then, the sequence is performed by the processing of step 306 described above.
Since the read flag SR is set to “0”, the step
301 is determined as "NO", and the program
Data processing ”(Fig. 10), directly to step 361.
You. In step 361, the tempo is
The count data TC is determined by the pattern data pointer PTDP.
It is determined whether it is equal to the specified time data TIME,
Until the tempo count data TC reaches the time data TIME.
Is determined to be "NO", and the
The execution of the "data readout process" ends. Meanwhile, like this
During the repeated execution of the “song play process”, the event
Time has elapsed since the readout of the
When the count data TC becomes equal to the time data TIME,
In step 361, “YES” is determined, and in step 362
The pattern data pointer PTDP is incremented by "1" and
The program proceeds to the process consisting of steps 363 to 365
You. In the process consisting of steps 363 to 365,
Similar to the processing of steps 357 to 359 described above,
The performance data read from the memories 34a and 34c is time data TIM.
Until E, performance data (event data EVENT) is read
The output is continued to be output to the tone signal forming circuit 25. Soshi
When time data TIME is read out as performance data
In this regard, based on the determination of “NO” in step 363,
Tempo count data TC is initialized to “0” at step 366
Is set. And pattern end as performance data
Until PTEND is read from pattern memories 34a and 34c,
It is determined as “NO” in step 367 and in step 369
The execution of the “pattern data read process” ends. this
Is stored in the pattern memories 34a and 34c
As performance data is read out over time,
A percussion sound corresponding to the performance data is generated. After more time has passed, the pattern memories 34a and 34c
Pattern end PTEND is read out as performance data
Is determined to be “YES” in Step 367, and Step 368
Changes the sequence read flag SR to “1”
At step 369, the execution of the "pattern data reading process"
Will end. Then, the “song play process” (FIG. 9) is executed.
Starting at Tep 300, in this case, the sequence
The sleed flag SR is determined in step 368 (FIG. 10).
Is set to "1" by the
ES ”, and the processing of steps 302 to 310 is performed in the same manner as described above.
Is executed. In this case, the sequence data pointer
SDP is set to a value larger by 1 than the previous time.
The next sequence data from the sequence memory 34e.
The pattern number PTNNO is read out as
In step 307, the same as “pattern data reading
Is executed, and the next pattern number PTNNO
Pattern data specified by the pattern memories 34a and 34
Read from c. Thus, each data in the sequence memory 34e is
Are sequentially read out, and the sheets read out in step 302 are read out.
Kensdata SDAT is a repeat beginner RBGN (see Fig. 3C)
Is reached, the sequence data point
After stepping through the SDP, "NO" is determined in step 304.
At the same time, a determination of “YES” is made in step 311 and the
Repeat start address RSA is sequenced in step 312
Set to data pointer value SDP. In this case, repeat
The start address RSA is the next address of the repeat gin RBGN.
Less. After step 312,
After the processing of step 308, at step 310
The execution of the process ends. Next, when the execution of the “song play process” starts,
According to the processing in step 303 of the previous “song play processing”
The sequence data pointer SDP is a repeat begin RBG
Since the pattern number PTNNO following N is shown,
By the processing of steps 302 to 307, the next pattern number
Performance data in the pattern data specified by PTNNO
Is read out, and a percussion sound signal is generated according to the data.
Controlled. In this way, the sequence memory
The data in 34e is read and the same data is
When it becomes REND, "NO" in steps 304 and 311 respectively
Is determined, and “YES” is determined in step 313.
Then, the processing after step 314 is executed. This place
In this case, since the first flag FT is set to “1”,
In step 314, “YES” is determined, and in step 315
Change pattern address CPA is the current sequence data
Set to the value SDP-2 obtained by subtracting “2” from the pointer value SDP
Is done. In this case, the change pattern address CPA is
The last pattern number PTNNO at the time of repetition is stored.
Address of the last pattern
PTNNO stores the current sequence data as shown in Figure 3C.
Pointer value SDP (address following repeat end REND
At the address immediately before the address indicated by
Because it is remembered. After the processing in step 315, in step 316
Repeat data while increasing the SDP
REND next pattern REND and pattern number PTNN
O is read from the sequence memory 34e and the
Data CNT and replacement pattern data CPTN
Is determined. In this embodiment, the number of repeats
Is set to “3”, and the count data CNT is
"3". Next, in step 317, the first flag
After the FT is changed to "0", the program proceeds to step 318.
Proceed to the following. In step 318, the sequence data pointer S
DP is set to the repeat start address value RSA. Next
In step 319, the count data CNT is set to "1".
Is subtracted, and at step 320, the data CNT is "0".
Is determined. In this case, the count data
At the moment, CNT was initially set to "3"
"2", and is determined to be "NO" in step 320.
After the processing of step 308,
The execution of the “play processing” ends. Then, again, "Song play processing" step
Starting at 300, the sequence data pointer SDP is
By the processing of the step 318, the sequence memory 34e
Since it indicates the next address of repeat begin RBGN,
The pattern number PTNNO stored at the same address is
It is read every time. In this way, the sequence
The data in the sense memory 34e is sequentially read, and
When the received data reaches the repeat end REND, the step
The determination at 313 is YES, and the program is the same as above.
The process proceeds to step 314 and subsequent steps. In this case,
By the processing in step 317, the first flag FT is set to “0”
Is determined as “NO” in step 314
In step 318, the sequence data pointer SDP is
Set to repeat start address value RSA again
At the same time, at step 319,
“1” is subtracted. Then, in step 320, the lid
Each time, it is determined whether the count data CNT is “0” or not.
Is determined, but the repeat
Pattern number PTNNO between repeat RBGN and repeat end REND
Repeated reading reaches the number of repeats RCNT, that is, 3 times
Until this, the count data CNT does not become “0”.
No. This allows reading of the pattern number PTNNO of the section.
The same is done up to three times, and at the end of the third time,
“YES” in step 320, that is, the count data CN
T is determined to be "0", and the last flag is determined in step 321.
LT is changed to “1”. After the last flag LT is thus changed to “1”,
That is, the fourth repetitive reading is performed.
And in step 351 of the "pattern data reading process"
"YES", that is, it is determined that the last flag LT is "1".
Then, in step 352, the sequence data pointer SDP is
Change Pattern Address CPA
It is. In this case, the change pattern address CPA is
By the processing in step 315 (FIG. 9), the repeat
Address value before REND, that is, the end of the repetition section
Since it indicates the address value of the pattern number PTNNO (3rd
C), the sequence data pointer SDP
Value until the value of the
The program proceeds to step 356 based on the determination of `` O ''.
Then, the same processing as described above is executed. On the other hand, the sequence data pointer SDP
When the address becomes equal to the
Is determined as “YES”, and the pattern name data is
The data PTN is set to each data value CPTN of the replacement pattern.
As a result, by the above-described processing after step 356,
Replacement pattern data Pattern data corresponding to CPTN
Performance data in the memory is sequentially read from pattern memories 34a and 34c
Will be done. After the processing of the step 353, the sequence
"3" is added to the data pointer SDP, and step 355 is performed.
In the first flag FT and the last flag, LT is “1”,
Initially set to “0”. In this case, the sequence
The reason for adding "3" to the data pointer DSP is
Is the address corresponding to the current repeat end REND
And the indicated position is the number of repeats RCNT and
The next pattern number that skipped the replacement pattern number PTNNO
No. PTNNO (see Fig. 3C).
Also, the initial setting of the first flag FT and the last flag LT
Is to deal with repeated reading of the next pattern data
That's why. Further, after a lapse of time, the sequence memory 34e
When the sequence end SEND is read, step 304,
At 311,313 (Fig. 9), both are determined to be "NO",
At step 322, the play flag PLAY is changed to “0”
You. As a result, the “Song mode processing” (FIG. 6)
Is determined to be `` NO '' in step 63, and
The “song play process” of step 73 is no longer executed,
Automatic performance stops with percussion sound according to data reading
I do. Also, during the automatic performance described above, the stop
When 12h is operated, "Song play processing" (Fig. 9)
Is determined to be “YES” in step 308 of
Then, the play flag PLAY is changed to “0”. This allows
Also in this case, the automatic performance stops. As can be understood from the above operation description,
According to the "edit processing" (Fig. 8), repeat
Begin RBGN, repeat end REND, repeat count RCNT,
Repetition related data consisting of replacement pattern number PTNNO
Is inserted into the sequence memory 34e and written.
9 (FIG. 9).
Pattern number PTNNO elapses based on data-based control
Repeatedly read according to the same pattern number PTNNO
Percussion sound signal according to the pattern data specified by
Can be recorded on music with repeated symbols.
The recorded performance information can be recorded and played back,
The capacity of the sequence memory 34e can be reduced. Even if the above embodiment is modified as follows, the present invention
Can be implemented. (1) In the above embodiment, only the percussion instrument sound is automatically generated.
Was generated, but instead of percussion sound or percussion sound
In addition to music with pitches such as pianos and guitars,
Automatically generate chords consisting of multiple tones with different pitches
You may be able to. In this case, each pattern data
Data representing pitch as event data EVENT in
The chord data is stored in the pattern memory 34a.
Or write the same data to pattern memory 34c
do it. Further, in this case, the tone signal forming circuit
As 25, a tone signal and a chord signal having the pitch are formed.
Use one that can produce and output. (2) In the above embodiment, the pattern memories 34a and 34c
The length of each pattern data in is set to 1 bar.
Is a value other than one bar, for example, half bar or two bars.
May be set. Also, these different length patterns
Mix data in pattern memories 34a and 34c
Is also good. (3) In the "edit processing" of the above embodiment,
Only inserts related data.
Insert pattern number PTNNO and delete each data
You may be able to do what. (4) In the above embodiment, the sequence memory 34e is
Although only one RAM is configured, the same memory 34e is
Create multiple sequence data by configuring multiple with M
After that, the same sequence data can be selectively played back.
You may make it. In this case, the external input / output circuit 24
Connect a recording device and the recording device and the sequence memory
It is convenient to be able to freely exchange data with
is there. In addition, a ROM configured as a sequence memory
Prepare a standard one and store it in the same sequence memory
Sequence data that can be played back.
You may. Further, the pattern memory 34c and the address table 34d
With an external recording device via the external input / output circuit 24.
It is good to exchange data. (5) In the above embodiment, the last pass
So that you can change your turn to a replacement pattern only once
However, the last pattern is replaced by the same replacement pattern.
The number of times may be changed several times, such as three times. Also before
The replacement pattern that is changed multiple times is changed sequentially
Switching may be performed. In this case, the replacement
Sequence of multiple replacement patterns
Stored in the memory 34e for the same number and pattern.
Reading of sequence data in the same memory 34e
You have to control. (6) In the above embodiment, the microcomputer
An example of an automatic performance device using program processing has been described.
Invention is based on a hardware circuit that does not use a computer.
Can also be realized.

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

第1図はこの発明の一実施例に係る自動演奏装置の外観
図、第2図は同自動演奏装置の電気回路構成図、第3A図
は第2図のパターンメモリ内のデータフォーマット図、
第3B図は第2図のアドレステーブル内のデータフォーマ
ット図、第3C図は第2図のシーケンスメモリ内のデータ
フォーマット図、第4図は繰り返し記号を記載した楽譜
例、第5図〜第11図は第2図のマイクロコンピュータに
て実行されるプログラムのフローチャートである。 符号の説明 12a……パターンモード操作子、12b……ソングモード操
作子、12e……レコード操作子、12f……エディット操作
子12f、12g……スタート操作子、12h……ストップ操作
子12h、13a〜13j……打楽器操作子群、14a〜14j……テ
ンキー操作子群、16……エンタ操作子、21……パネルス
イッチ回路、25……楽音信号形成回路、30……マイクロ
コンピュータ、34……データメモリ、34a,34c……パタ
ーンメモリ、34b,34d……アドレステーブル、34e……シ
ーケンスメモリ。
FIG. 1 is an external view of an automatic performance apparatus according to an embodiment of the present invention, FIG. 2 is an electric circuit configuration diagram of the automatic performance apparatus, FIG. 3A is a data format diagram in the pattern memory of FIG.
FIG. 3B is a data format diagram in the address table of FIG. 2, FIG. 3C is a data format diagram in the sequence memory of FIG. 2, FIG. FIG. 2 is a flowchart of a program executed by the microcomputer of FIG. Explanation of symbols 12a: Pattern mode operator, 12b: Song mode operator, 12e: Record operator, 12f ... Edit operator 12f, 12g ... Start operator, 12h ... Stop operator 12h, 13a ... 13j ... percussion instrument group, 14a-14j ... numeric keypad group, 16 ... enter operator, 21 ... panel switch circuit, 25 ... tone signal forming circuit, 30 ... microcomputer, 34 ... Data memory, 34a, 34c ... pattern memory, 34b, 34d ... address table, 34e ... sequence memory.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数の演奏データからなり所定期間に渡っ
て楽音信号の発生を制御する複数組のパターンデータを
記憶したパターンメモリと、 前記複数組のパターンデータをそれぞれ表す複数のパタ
ーン番号を時間経過に従って記憶するとともに、同記憶
パターン番号のうちで繰り返し読み出すべきパターン番
号の区間を表す区間データ、同繰り返しの回数を表す回
数データ、及び同繰り返しの際における最終パターン番
号に代えて読み出すべき差替えパターン番号からなる繰
り返し関係データを記憶したシーケンスメモリと、 前記シーケンスメモリ内に記憶されているデータを時間
経過に従って順次読み出す第1読出し手段と、 前記第1読出し手段により読み出されたデータのうちの
繰り返し関係データに基づき前記第1読出し手段を制御
して、前記区間データにより指定される区間内のパター
ン番号を前記回数データに対応した回数だけ繰り返し読
み出すとともに、前記差替えパターン番号を繰り返しの
際における最終パターン番号に代えて読み出す繰り返し
読出し制御手段と、 前記第1読出し手段により読み出されたデータのうちの
パターン番号に基づいて前記パターンメモリ内の一つの
パターンデータを指定するとともに同指定されたパター
ンデータ内の複数の演奏データを時間経過に従って順次
読み出す第2読出し手段と、 前記読み出した演奏データに応じた楽音信号を形成出力
する楽音信号形成手段と を備えたことを特徴とする自動演奏装置。
A pattern memory for storing a plurality of sets of pattern data for controlling generation of a musical tone signal over a predetermined period, comprising a plurality of pieces of performance data; Section data indicating a section of a pattern number to be repeatedly read out of the same storage pattern numbers, number-of-times data indicating the number of times of the same repetition, and a replacement pattern to be read instead of a final pattern number at the time of the same repetition. A sequence memory storing repetition-related data consisting of numbers, a first reading means for sequentially reading data stored in the sequence memory over time, and a repetition of the data read by the first reading means Controlling the first reading means based on relational data And repeatedly reading a pattern number in a section specified by the section data a number of times corresponding to the number-of-times data, and reading the replacement pattern number in place of the last pattern number in the repetition, One pattern data in the pattern memory is designated based on the pattern number of the data read by the first reading means, and a plurality of performance data in the designated pattern data are sequentially read out with time. (2) An automatic performance apparatus comprising: a reading means; and a tone signal forming means for forming and outputting a tone signal according to the read performance data.
【請求項2】複数の演奏データからなり所定期間に渡っ
て楽音信号の発生を制御する複数組のパターンデータを
記憶したパターンメモリと、 前記複数組のパターンデータをそれぞれ表す複数のパタ
ーン番号を書き込み可能なシーケンスメモリと、 前記複数組のパターンデータのうちの任意のパターンデ
ータを表すパターン番号を前記シーケンスメモリへ順次
書き込む第1書込み手段と、 前記シーケンスメモリに記憶されている複数組のパター
ン番号のうちで繰り返し読み出すべきパターン番号の区
間を表す区間データ、同繰り返しの回数を表す回数デー
タ、及び同繰り返しの際における最終パターン番号に代
えて読み出すべき差替えパターン番号からなる繰り返し
関係データを前記シーケンスメモリに書き込む第2書込
み手段と、 前記シーケンスメモリ内に記憶されているデータを時間
経過に従って順次読み出す第1読出し手段と、 前記第1読出し手段により読み出されたデータのうちの
繰り返し関係データに基づき前記第1読出し手段を制御
して、前記区間データにより指定される区間内のパター
ン番号を前記回数データに対応した回数だけ繰り返し読
み出すとともに、前記差替えパターン番号を繰り返しの
際における最終パターン番号に代えて読み出す繰り返し
読出し制御手段と、 前記第1読出し手段により読み出されたデータのうちの
パターン番号に基づいて前記パターンメモリ内の一つの
パターンデータを指定するとともに同指定されたパター
ンデータ内の複数の演奏データを時間経過に従って順次
読み出す第2読出し手段と、 前記読み出した演奏データに応じた楽音信号を形成出力
する楽音信号形成手段と を備えたことを特徴とする自動演奏装置。
2. A pattern memory which stores a plurality of sets of pattern data comprising a plurality of performance data and controls generation of musical tone signals over a predetermined period, and writes a plurality of pattern numbers respectively representing the plurality of sets of pattern data. A possible sequence memory, first writing means for sequentially writing pattern numbers representing arbitrary pattern data among the plurality of sets of pattern data to the sequence memory, and a plurality of sets of pattern numbers stored in the sequence memory. In the sequence memory, section data representing a section of a pattern number to be repeatedly read out, number-of-times data representing the number of times of the same repetition, and replacement pattern data including a replacement pattern number to be read instead of the last pattern number in the case of the same repetition are stored in the sequence memory. Second writing means for writing; First reading means for sequentially reading data stored in the case memory in accordance with the passage of time; and controlling the first reading means based on repetition-related data among the data read by the first reading means, A repetitive read control means for repeatedly reading a pattern number in a section specified by the section data by the number of times corresponding to the number-of-times data, and reading the replacement pattern number in place of the last pattern number in the repetition; Means for designating one pattern data in the pattern memory based on the pattern number of the data read by the means, and sequentially reading a plurality of performance data in the designated pattern data in accordance with the passage of time. And a musical tone corresponding to the read performance data. Automatic performance apparatus being characterized in that a tone signal forming means for forming and outputting a degree.
JP2270747A 1990-10-09 1990-10-09 Automatic performance device Expired - Fee Related JP2591308B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2270747A JP2591308B2 (en) 1990-10-09 1990-10-09 Automatic performance device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2270747A JP2591308B2 (en) 1990-10-09 1990-10-09 Automatic performance device

Publications (2)

Publication Number Publication Date
JPH04147192A JPH04147192A (en) 1992-05-20
JP2591308B2 true JP2591308B2 (en) 1997-03-19

Family

ID=17490415

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2270747A Expired - Fee Related JP2591308B2 (en) 1990-10-09 1990-10-09 Automatic performance device

Country Status (1)

Country Link
JP (1) JP2591308B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4239952B2 (en) 2004-11-09 2009-03-18 ヤマハ株式会社 Automatic accompaniment apparatus and program for realizing the control method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53107325A (en) * 1977-02-28 1978-09-19 Sharp Corp Electronic musical instruments
JPS5835598A (en) * 1981-08-26 1983-03-02 カシオ計算機株式会社 Electronic musical instrument
JPS63187295A (en) * 1987-01-29 1988-08-02 カシオ計算機株式会社 Automatic performer

Also Published As

Publication number Publication date
JPH04147192A (en) 1992-05-20

Similar Documents

Publication Publication Date Title
JPH05108065A (en) Automatic performance device
JPS6157640B2 (en)
JP2896716B2 (en) Automatic performance device
JP2591308B2 (en) Automatic performance device
JP3649014B2 (en) Performance data file playback setting control device
JP2522337B2 (en) Automatic playing device
JPH0631977B2 (en) Electronic musical instrument
JPH10288987A (en) Electronic musical instrument and musical sound control data generating device
JP2692539B2 (en) Automatic accompaniment device
JP2536272B2 (en) Electronic musical instrument
JP3446278B2 (en) Automatic performance device
JPH058638Y2 (en)
JP2576296B2 (en) Automatic accompaniment device for electronic musical instruments
JP3758041B2 (en) Musical sound control data generator
JP3142434B2 (en) Electronic musical instrument sequencer
JP2580872Y2 (en) Electronic musical instrument
JPH04257895A (en) Apparatus and method for code-step recording and automatic accompaniment system
JP2665854B2 (en) Automatic performance device
JP3518392B2 (en) Performance information setting device and computer-readable recording medium storing performance information setting program
JP2586227B2 (en) Electronic musical instrument
JP5200384B2 (en) Electronic musical instruments and programs
JP3303754B2 (en) Tone control data generation device, recording medium storing a program for generating tone control data, and tone control data generation method
JPH0827627B2 (en) Automatic playing device
JP3603711B2 (en) Automatic performance device
JPS636794Y2 (en)

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

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

Free format text: PAYMENT UNTIL: 20081219

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees