JPH07109555B2 - Performance information input device and performance device - Google Patents
Performance information input device and performance deviceInfo
- Publication number
- JPH07109555B2 JPH07109555B2 JP1264743A JP26474389A JPH07109555B2 JP H07109555 B2 JPH07109555 B2 JP H07109555B2 JP 1264743 A JP1264743 A JP 1264743A JP 26474389 A JP26474389 A JP 26474389A JP H07109555 B2 JPH07109555 B2 JP H07109555B2
- Authority
- JP
- Japan
- Prior art keywords
- performance
- data
- value
- information
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Electrophonic Musical Instruments (AREA)
Description
【発明の詳細な説明】 [産業上の利用分野] この発明は、自動演奏用の演奏情報入力装置及び演奏装
置に関し、特に演奏情報をサーチする技術に関するもの
である。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a performance information input device for automatic performance and a performance device, and more particularly to a technique for searching performance information.
[発明の概要] この発明は、リピート区間を指示する記号情報を含む自
動演奏用の演奏情報をメモリに記憶させておき、所望の
記号情報を指定して該記号情報と一致する記号情報をメ
モリ中からサーチし、サーチされた記号情報の記憶位置
から情報書込み又は自動演奏を行なうようにしたもので
ある。SUMMARY OF THE INVENTION In the present invention, performance information for automatic performance including symbol information indicating a repeat section is stored in a memory, desired symbol information is designated, and symbol information matching the symbol information is stored in the memory. A search is performed from the inside, and information writing or automatic performance is performed from the storage position of the searched symbol information.
[従来の技術] 従来、サーチ機能を有する自動演奏装置としては、例え
ば特開平1−180596号公報に示されるように全演奏時間
に対する所望の演奏進行位置の時間的な割合(例えば1/
10,1/20等)を指定し、その割合に対応した記憶位置に
ジャンプ(高速移動)するようにしたもの、あるいは例
えば特開昭62−175796号公報に示されるようにストップ
指令が与えられるまで聴取可能な速度で演奏データを読
出して演奏音をモニタするもの等が知られている。[Prior Art] Conventionally, as an automatic performance device having a search function, as shown in, for example, Japanese Patent Application Laid-Open No. 1-180596, the time ratio of a desired performance position to the total performance time (for example, 1 /
(10, 1/20, etc.) and jump (high speed movement) to a storage position corresponding to the ratio, or a stop command is given as shown in, for example, Japanese Patent Laid-Open No. 62-175796. It is known that performance data is read at a audible speed to monitor performance sounds.
[発明が解決しようとする課題] 上記した従来技術のうち、指定割合に対応した記憶位置
にジャンプするものにあっては、ジャンプ先へ迅速に移
動できるものの、ジャンプ先のデータがいかなるデータ
であるか予め知ることができず、データを主体としたサ
ーチを行なうことができない。[Problems to be Solved by the Invention] Among the above-mentioned conventional techniques, in the one that jumps to a storage position corresponding to a specified ratio, although the data can be quickly moved to the jump destination, the data of the jump destination is any data. It is impossible to know in advance, and it is not possible to perform a search mainly on data.
また、聴取可能な速度で演奏データを読出すものにあっ
ては、操作者はデータ読出しに伴う演奏音を聴きながら
所望の演奏音のタイミングでストップ指令を与えること
で所望の演奏データをサーチ可能であるが、手続的な煩
雑さを免れない。その上、読出速度が聴取可能な程度に
低く制限されるため、迅速性に欠け、特にアドレス的に
遠方のデータを探すには相当の時間を要する。Further, in the case of reading performance data at an audible speed, the operator can search for the desired performance data by giving a stop command at the timing of the desired performance sound while listening to the performance sound accompanying the data read. However, procedural complexity is inevitable. Moreover, since the read speed is limited to an audible level, it is not swift, and it takes a considerable time to search for data that is distant in terms of address.
この発明の目的は、所望の演奏情報に関して簡単且つ迅
速に情報修正又は演奏開始を行なえるようにすることに
ある。An object of the present invention is to make it possible to easily and quickly modify information or start playing the desired performance information.
[課題を解決するための手段] この発明に係る演奏情報入力装置は、 記憶手段と、 リピート区間を指示する記号情報を含む自動演奏用の演
奏情報を楽曲進行に従って前記記憶手段に書込む書込手
段と、 前記記憶手段に書込まれた記号情報のうちサーチすべき
記号情報を指定する情報指定手段と、 前記記憶手段から演奏情報を読出して前記情報指定手段
で指定された記号情報と比較することにより該記号情報
と一致する記号情報をサーチするサーチ手段とを備え、 前記書込手段では、前記サーチ手段でサーチされた記号
情報の記憶位置から演奏情報の書込みを行なうようにし
たことを特徴とするものである。[Means for Solving the Problem] A performance information input device according to the present invention is: writing means for writing performance information for automatic performance, which includes storage means and symbol information indicating a repeat section, in the storage means in accordance with the progression of music. Means, information designating means for designating the symbol information to be searched among the symbol information written in the storing means, and playing information read from the storing means and compared with the symbol information designated by the information designating means. The writing means writes the performance information from the storage location of the symbol information searched by the searching means. It is what
また、この発明に係る演奏装置は、 リピート区間を指示する記号情報を含む自動演奏用の演
奏情報を記憶した記憶手段と、 前記記憶手段に記憶された記号情報のうちサーチすべき
記号情報を指定する情報指定手段と、 前記記憶手段から演奏情報を読出して前記情報指定手段
で指定された記号情報と比較することにより該記号情報
と一致する記号情報をサーチするサーチ手段と、 このサーチ手段でサーチされた記号情報の記憶位置から
前記記憶手段の演奏情報に従って自動演奏を行なう演奏
手段と を備えたものである。Further, the performance device according to the present invention specifies storage means for storing performance information for automatic performance including symbol information indicating a repeat section, and symbol information to be searched among the symbol information stored in the storage means. Information designating means, a search means for searching the symbol information matching the symbol information by reading the performance information from the storage means and comparing it with the symbol information designated by the information designating means; And a performance means for automatically performing a performance from the storage position of the stored symbol information according to the performance information of the storage means.
[作用] 上記した演奏情報入力装置によれば、所望の記号情報を
指定して該記号情報に一致する記号情報をサーチした
後、サーチされた記号情報の記憶位置から演奏情報の書
込みを行なうことができる。従って、所望の演奏情報の
修正を簡単且つ迅速に行なうことができる。[Operation] According to the performance information input device described above, after designating desired symbol information to search for symbol information matching the symbol information, the performance information is written from the storage position of the searched symbol information. You can Therefore, desired performance information can be corrected easily and quickly.
また、上記した演奏装置によれば、所望の記号情報を指
定して該記号情報に一致する記号情報をサーチした後、
サーチされた記号情報の記憶位置から自動演奏を開始さ
せることができる。従って、所望の演奏情報からの演奏
開始を簡単且つ迅速に行なうことができる。Further, according to the above-described performance device, after designating desired symbol information and searching for symbol information matching the symbol information,
The automatic performance can be started from the storage position of the searched symbol information. Therefore, the performance can be started easily and quickly from the desired performance information.
[実施例] 第1図は、この発明を自動演奏装置に適用した一実施例
を示すもので、この自動演奏装置は、演奏情報入力、自
動演奏、演奏情報サーチ等がマイクロコンピュータによ
って制御されるようになっている。[Embodiment] FIG. 1 shows an embodiment in which the present invention is applied to an automatic performance device. In this automatic performance device, performance information input, automatic performance, performance information search, etc. are controlled by a microcomputer. It is like this.
自動演奏装置の構成(第1図) データバス10には、中央処理装置(CPU)12、プログラ
ムメモリ14、レジスタ群16、ソングメモリ18、パターン
メモリ20、テンポクロック発生器22、スイッチ群24、表
示器26、トーンジェネレータ(TG)28等が接続されてい
る。Structure of automatic performance device (FIG. 1) The data bus 10 includes a central processing unit (CPU) 12, a program memory 14, a register group 16, a song memory 18, a pattern memory 20, a tempo clock generator 22, a switch group 24, A display 26, a tone generator (TG) 28, etc. are connected.
CPU12は、メモリ14にストアされたプログラムに従って
各種処理を実行するもので、これらの処理については第
7図乃至第15図を参照して後述する。The CPU 12 executes various processes in accordance with the programs stored in the memory 14, and these processes will be described later with reference to FIGS. 7 to 15.
レジスタ群16は、CPU12による各種処理に際して使用さ
れる多数のレジスタを含むもので、これらのレジスタの
うち、この発明の実施に関係するものについては後述す
る。The register group 16 includes a large number of registers used in various processes by the CPU 12, and among these registers, those related to the implementation of the present invention will be described later.
ソングメモリ18は、アドレス毎に8ビットのデータを記
憶可能なもので、そのデータフォーマットは一例として
第2図に示すようになっている。第2図において、SGP
はソングアドレスポインタであり、このポインタSGPで
示されるアドレスのデータSONG(SGP)としては、
(A)に示すようなパターンナンバデータ、(B)に示
すようなリピート区間始まり記号データ、(C)に示す
ようなリピート区間終り記号データ、(D)に示すよう
なソングエンドコードデータ等がある。The song memory 18 can store 8-bit data for each address, and its data format is as shown in FIG. 2 as an example. In Figure 2, SGP
Is a song address pointer, and as the data SONG (SGP) of the address indicated by this pointer SGP,
Pattern number data as shown in (A), repeat section start symbol data as shown in (B), repeat section end symbol data as shown in (C), song end code data as shown in (D), etc. is there.
(A)のパターンナンバデータは、最上位ビット(MS
B)が1であり、下位7ビットで01〜99のいずれかのパ
ターンナンバを表わす。パターンナンバは、例えば1小
節分の演奏内容を表わす演奏パターン毎に予め定められ
ている。The pattern number data of (A) is the most significant bit (MS
B) is 1, and the lower 7 bits represent any of the pattern numbers 01 to 99. The pattern number is predetermined for each performance pattern representing the performance content for one measure, for example.
(B)のリピート区間始まり記号データは、上位2ビッ
トをいずれも1とし且つ下位6ビットをいずれも0とす
ることによってリピート区間の始まりを表わすもので、
そのデータ内容は、16進表記で「COH」に相当する。The repeat section start symbol data in (B) represents the start of the repeat section by setting the upper 2 bits to 1 and the lower 6 bits to 0.
The data content corresponds to "CO H " in hexadecimal notation.
(C)のリピート区間終り記号データは、上位2ビット
が1と0でリピート区間の終りを表わし、下位6ビット
で01〜63のいずれかの繰返回数を表わす。In the repeat section end symbol data in (C), the upper 2 bits represent the end of the repeat section with 1s and 0s, and the lower 6 bits represent the number of repetitions of 01 to 63.
(D)のソングエンドコードデータは、8ビットのいず
れも1とすることによって曲の終りを表わすもので、そ
のデータ内容は、16進表記で「FFH」に相当する。Song end code data (D) is intended to represent the end of a song by a 1 none of the 8-bit, the data content corresponds to "FF H" in hexadecimal notation.
書込モードにおいて、メモリ18は、一例を第4図に示す
ように所望の楽曲進行に従って(A)〜(C)のような
データを順次に記憶させ、最後に(D)のデータを記憶
させる。そして、プレイモードでは、メモリ18からパタ
ーンナンバデータを読出すたびに該パターンナンバデー
タの示すパターンナンバに対応した演奏パターンをメモ
リ20にて指定し、該演奏パターンを構成するデータを順
次に読出すことにより例えば1小節分の自動演奏を行な
い、その1小節の演奏が終るとメモリ18から次のデータ
を読出す。このとき読出されたデータがパターンナンバ
データであれば前回と同様にして自動演奏を行なうが、
リピート区間終り記号データであればそれ以前に読出さ
れていたリピート区間始まり記号データに対応するアド
レスまで戻って該リピート区間終り記号データの示す繰
返回数だけ自動演奏を繰返す。In the writing mode, the memory 18 sequentially stores data such as (A) to (C) according to a desired music progression as shown in FIG. 4, and finally stores data (D). . Then, in the play mode, every time the pattern number data is read from the memory 18, the performance pattern corresponding to the pattern number indicated by the pattern number data is designated in the memory 20, and the data constituting the performance pattern is sequentially read. Thus, for example, an automatic performance for one bar is performed, and when the performance for one bar is completed, the next data is read from the memory 18. If the data read at this time is pattern number data, the automatic performance is performed in the same manner as the last time.
If it is the repeat section end symbol data, it returns to the address corresponding to the previously read repeat section start symbol data, and repeats the automatic performance by the number of repetitions indicated by the repeat section end symbol data.
パターンメモリ20は、第3図に例示するようにパターン
ナンバ01〜99に対応したパターン記憶部20(01)〜20
(99)を有するもので、各パターン記憶部には例えば1
小節分の演奏パターンが記憶されている。代表としてパ
ターン記憶部20(01)について述べると、この記憶部に
は、パターンアドレスポインタPTPの示すアドレスの進
行に従って3バイトのイベントデータが順次に記憶さ
れ、最後に1バイトのパターンエンドコードデータPEND
が記憶される。The pattern memory 20 includes pattern storage units 20 (01) to 20 corresponding to pattern numbers 01 to 99 as illustrated in FIG.
(99), and each pattern storage unit has, for example, 1
Performance patterns for each measure are stored. As a representative, the pattern storage unit 20 (01) will be described. In this storage unit, 3-byte event data is sequentially stored as the address indicated by the pattern address pointer PTP progresses, and finally 1-byte pattern end code data PEND is stored.
Is memorized.
各イベントデータにおいて、第1バイトはオン/オフ識
別子(キーオン/オフデータ)、第2バイトはキーコー
ドデータ、第3バイトはタイミングデータである。オン
/オフ識別子は、1ならばキーオンイベントを表わし、
0ならばキーオフイベントを表わす。キーコードデータ
は、発音又は消音すべき楽音の音高に対応したキーコー
ドを表わす。タイミングデータは、1小節内における0
〜31のいずれかのタイミング値を表わす。In each event data, the first byte is an on / off identifier (key on / off data), the second byte is key code data, and the third byte is timing data. If the on / off identifier is 1, it represents a key-on event,
A value of 0 indicates a key-off event. The key code data represents a key code corresponding to the pitch of a musical sound to be sounded or muted. Timing data is 0 within 1 bar
Represents any of the timing values of ~ 31.
テンポクロック発生器22は、与えられたテンポに従って
テンポクロック信号TCLを発生するもので、この信号TCL
はCPU12に割込み命令として供給され、第10図のルーチ
ンを開始するために使用される。The tempo clock generator 22 generates the tempo clock signal TCL according to the given tempo.
Is supplied to CPU 12 as an interrupt instruction and is used to start the routine of FIG.
スイッチ群24は、各種の制御スイッチを含むもので、こ
の発明の実施に関係するものを列挙すると次の通りであ
る。The switch group 24 includes various kinds of control switches, and those relevant to the implementation of the present invention are listed below.
(1)モードスイッチS1…これは、書込モード又はプレ
イモードを指定するためのものである。(1) Mode switch S1 ... This is for designating a writing mode or a play mode.
(2)スタート/ストップ(ST/SP)スイッチS2…これ
は書込モード又はプレイモードに関しスタート又はスト
ップを指令するためのものである。(2) Start / stop (ST / SP) switch S2 ... This is for instructing start or stop in the write mode or play mode.
(3)インクリメント(INC)スイッチS3及びデクリメ
ント(DEC)スイッチS4…これらのスイッチは、前述し
たアドレスポインタSGPの値を変更制御するためのもの
で、SGP値はスイッチS3の操作のたびに1ずつ増加し、
スイッチS4の操作のたびに1ずつ減少する。(3) Increment (INC) switch S3 and decrement (DEC) switch S4 ... These switches are for changing and controlling the value of the address pointer SGP described above, and the SGP value is set to 1 each time the switch S3 is operated. Increased,
It is decremented by 1 each time the switch S4 is operated.
(4)パターン(PAT)指定許容スイッチS5…これは、
パターンナンバの指定を可能にするためのものである。(4) Pattern (PAT) designation allowance switch S5 ... This is
This is for enabling the designation of the pattern number.
(5)テンキーS6…これらのキーは、0〜9の数字を個
別的に指定可能なもので、スイッチS5によりパターンナ
ンバ指定が可能になったときパターンナンバを指定する
のに用いられると共に、後述のスイッチS8によりリピー
ト区間の終りが指定された際に繰返回数を指定するのに
用いられる。(5) Numeric keypad S6 ... These keys can individually specify the numbers 0 to 9 and are used to specify the pattern number when the pattern number can be specified by the switch S5, and will be described later. The switch S8 is used to specify the number of repetitions when the end of the repeat section is specified.
(6)リピート区間指定スイッチS7及びS8…これらのス
イッチのうち、S7はリピート区間の始まりを指定するた
めのものであり、S8はリピート区間の終りを指定するた
めのものである。(6) Repeat section designating switches S7 and S8 ... Of these switches, S7 is for designating the beginning of the repeat section, and S8 is for designating the end of the repeat section.
(7)実行(EXE)スイッチS9…これは、書込み又は読
出しの実行、あるいはサーチの実行等を指令するための
ものである。(7) Execution (EXE) switch S9 ... This is for instructing execution of writing or reading or execution of search.
(8)サーチ方向指定スイッチS10…これは、アドレス
値増大方向(右向き矢印)又はアドレス値減少方向(左
向き矢印)のいずれかのサーチ方向を指定するためのも
のである。(8) Search direction designating switch S10 ... This is for designating a search direction which is either an address value increasing direction (rightward arrow) or an address value decreasing direction (leftward arrow).
(9)サーチスイッチS11…これは、サーチモードを指
定するためのもので、サーチモードの指定は、書込モー
ド又はプレイモードのいずれにおいても可能である。従
って、書込モードにおいて所望の演奏情報をサーチして
その演奏情報を修正したり、プレイモードにおいて所望
の演奏情報をサーチしてその演奏情報から演奏開始した
りすることができる。(9) Search switch S11 ... This is for designating the search mode, and the designation of the search mode is possible in either the write mode or the play mode. Therefore, it is possible to search for desired performance information in the write mode and correct the performance information, or to search for desired performance information in the play mode and start performance from that performance information.
表示器26は、スイッチ群24を設けたスイッチパネルに設
けられたもので、4つの表示部A〜Dを有する。The display 26 is provided on the switch panel provided with the switch group 24, and has four display parts A to D.
表示部Aには、アドレスポインタSGPの値が表示され、
その表示値は、スイッチS3又はS4によりそれぞれ増加又
は減少可能である。The value of the address pointer SGP is displayed on the display unit A,
The displayed value can be increased or decreased by the switch S3 or S4, respectively.
表示部Bには、スイッチS5によりパターン指定を可能に
したときはテンキー6で指定されるパターンナンバが表
示され、スイッチS7によりリピート区間の始まりを指定
したときはリピート区間始まり記号が表示され、スイッ
チS8によりリピート区間の終りを指定したときはリピー
ト区間終り記号とテンキーS6で指定される繰返回数とが
表示される。The display section B displays the pattern number designated by the numeric keypad 6 when the pattern can be designated by the switch S5, and the repeat section start symbol is displayed when the start of the repeat section is designated by the switch S7. When the end of the repeat section is designated by S8, the repeat section end symbol and the number of repeats designated by the numeric keypad S6 are displayed.
表示部Cには、スイッチS11によりサーチモードを指定
したとき「サーチ」の文字が表示される。The characters "Search" are displayed on the display section C when the search mode is designated by the switch S11.
表示部Dには、スイッチS10で指定されるサーチ方向が
「F」又は「B」の文字で表示される。ここで、「F」
及び「B」はそれぞれアドレス値増大方向及びアドレス
値減少方向に対応する。On the display section D, the search direction designated by the switch S10 is displayed by the letters "F" or "B". Where "F"
And "B" correspond to the address value increasing direction and the address value decreasing direction, respectively.
TG28は、メモリ20から読出されたキーデータ(キーオン
/オフデータ及びキーコードデータ)に応じて楽音信号
形成が制御されるもので、TG28で形成された楽音信号
は、サウンドシステム30に供給され、音響に変換され
る。The TG28 controls the tone signal formation in accordance with the key data (key on / off data and key code data) read from the memory 20, and the tone signal formed by the TG28 is supplied to the sound system 30. Converted to sound.
演奏進行の一例(第4図) 第4図は、メモリ18での演奏データ記憶の一例を示すと
共にこのような記憶データに基づく演奏進行状況を示し
たものである。Example of Performance Progression (FIG. 4) FIG. 4 shows an example of performance data storage in the memory 18 and shows a performance progress situation based on such storage data.
メモリ18において、SGPで示されるアドレス1〜16のう
ち、アドレス1〜15には、図示のようにパターンナンバ
データ、リピート区間始まり記号データ、リピート区間
終り記号データが記憶され、アドレス16には、ソングエ
ンドコードデータ「FFH」が記憶されている。リピート
区間終り記号データの直下で括弧内に示す数字は繰返回
数を示す。なお、メモリ18には、図示のように番号順に
パターンナンバデータを記憶させる必要はなく、パター
ンの組み合せ方は使用者の自由である。In the memory 18, among the addresses 1 to 16 indicated by SGP, at the addresses 1 to 15, the pattern number data, the repeat section start symbol data, and the repeat section end symbol data are stored as shown in the figure. Song end code data “FF H ” is stored. The number in parentheses immediately below the symbol data at the end of the repeat section indicates the number of repetitions. Note that it is not necessary to store the pattern number data in the memory 18 in the numerical order as shown in the figure, and the user can freely combine the patterns.
第4図のようにメモリ18に演奏データを記憶させた場
合、プレイモードでは、演奏パターン1、2…5の順に
演奏が行なわれ、アドレス8のリピート区間終りデータ
を読出すとアドレス5に戻って演奏パターン4、5の演
奏を2回繰返す。そして、演奏パターン6を演奏する
と、アドレス3に戻って演奏パターン3、4、5を演奏
し、再び演奏パターン4、5の演奏を2回繰返す。続い
て、演奏パターン6、7、8を演奏してからアドレス14
のリピート区間終り記号を読出すと、アドレス12に戻っ
て演奏パターン8の演奏を3回繰返す。この後、演奏パ
ターン9を演奏し、その演奏が終るとアドレス16のソン
グエンドコードデータ「FFH」を読出して演奏終了とな
る。When the performance data is stored in the memory 18 as shown in FIG. 4, in the play mode, the performances are performed in the order of performance patterns 1, 2, ... 5, When the data at the end of the repeat section of the address 8 is read, the performance is returned to the address 5. Repeat performance patterns 4 and 5 twice. When the performance pattern 6 is played, the program returns to the address 3 to play the performance patterns 3, 4 and 5, and the performances of the performance patterns 4 and 5 are repeated twice. Next, play performance patterns 6, 7, and 8 and then
When the end symbol of the repeat section is read, the program returns to address 12 and the performance of performance pattern 8 is repeated three times. After that, the performance pattern 9 is played, and when the performance ends, the song end code data "FF H " at address 16 is read and the performance ends.
第4図において、丸印を付した数字は、リピート区間の
始まり又は終り記号データの読出タイミングを番号順に
示すものであり、第5図及び第6図に引用されている。In FIG. 4, circled numbers indicate the read timing of the start or end symbol data of the repeat section in numerical order, and are cited in FIGS. 5 and 6.
レジスタ内容の変化(第5図) 第5図は、第4図に関して述べたような演奏進行を可能
にするために使用されるレジスタJPNO及びJPCNTの内容
変化を示すものである。Changes in Register Contents (FIG. 5) FIG. 5 shows changes in the contents of the registers JPNO and JPCNT used for enabling the performance progression as described with reference to FIG.
第5図において、JPNOは、リピートの戻り先のアドレス
ナンバがセットされるアドレスナンバレジスタ、JPCNT
は、リピート区間の演奏回数をカウントするための演奏
回数カウンタ、JPPは、レジスタJPNO及びJPCNTに共通の
レジスタアドレスポインタである。In FIG. 5, JPNO is an address number register, JPCNT, in which the address number of the return destination of the repeat is set.
Is a performance counter for counting the number of performances in the repeat section, and JPP is a register address pointer common to the registers JPNO and JPCNT.
第4図の演奏進行において、タイミング1でメモリアド
レス3のリピート区間始まり記号データを読出すと、JP
NOにはJPPの示すアドレス1にアドレスナンバ3が、JPC
NTにはJPPの示すアドレス1に0がセットされる。そし
て、JPPの値が1アップされる。次に、タイミング2で
メモリアドレス5のリピート区間始まり記号データを読
出すと、JPNOにはJPPの示すアドレス2にアドレスナン
バ5がセットされ、JPCNTにはJPPの示すアドレス2に0
がセットされる。そして、JPPの値が1アップされる。
このようにして、JPPはリピートの戻り先のアドレスナ
ンバをセットしたレジスタアドレスの次のレジスタアド
レスを指示する。換言すると、JPPの示すレジスタアド
レスの1つ前のレジスタアドレスにセットされているメ
モリアドレスがリピートの戻り先ということになる。In the performance progress of FIG. 4, when the repeat section start symbol data of the memory address 3 is read at the timing 1, JP
For NO, the address 1 indicated by JPP has the address number 3 and JPC
Address 0 indicated by JPP is set to 0 in NT. Then, the JPP value is incremented by 1. Next, at timing 2, when the repeat section start symbol data of the memory address 5 is read, the address number 5 is set to the address 2 indicated by JPP in JPNO and the address 2 indicated by JPP is set to 0 in JPCNT.
Is set. Then, the JPP value is incremented by 1.
In this way, the JPP indicates the register address next to the register address in which the address number of the repeat return destination is set. In other words, the memory address set in the register address immediately before the register address indicated by JPP is the return destination of the repeat.
次に、タイミング3でメモリアドレス8のリピート区間
終り記号データを読出すと、リピート区間の演奏パター
ン4、5の演奏が1回終ったので、JPCNTにおいてJPP−
1のアドレスのカウント値を1アップする。そして、JP
NOにおいてJPP−1のアドレスにセットしてある戻り先
アドレス5に戻ってその次のメモリアドレス6から演奏
パターン4、5を演奏する。この後、タイミング4で再
びメモリアドレス8のデータが読出されるので、前回同
様にしてJPCNTのカウント値を1から2にアップする。
そして、再び演奏パターン4、5を演奏してからタイミ
ング5でメモリアドレス8のデータを読出すと、このデ
ータの示す繰返回数2とJPCNTのカウント値2とが一致
するので、所要のリピート回数に達したことになり、JP
Pの値を1ダウンする。この結果、次の戻り先はレジス
タアドレス1にセットされているメモリアドレス3とな
る。Next, when the repeat section end symbol data of the memory address 8 is read at the timing 3, the performance of the repeat section performance patterns 4 and 5 is completed once.
The count value of the address 1 is incremented by 1. And JP
In NO, the program returns to the return address 5 set at the address of JPP-1 and plays the performance patterns 4 and 5 from the memory address 6 next to the return address. After that, since the data of the memory address 8 is read again at the timing 4, the count value of JPCNT is increased from 1 to 2 similarly to the previous time.
Then, when the performance patterns 4 and 5 are played again and the data at the memory address 8 is read at the timing 5, the repeat count 2 indicated by this data and the count value 2 of the JPCNT match, so that the required repeat count. Reached JP,
Decrement the value of P by 1. As a result, the next return destination is the memory address 3 set in the register address 1.
次に、演奏パターン6を演奏してからタイミング6でメ
モリアドレス10のリピート区間終り記号データを読出す
と、JPPの指示に基づいてメモリアドレス3に戻り、そ
の次のメモリアドレス4から演奏パターン3、4、5を
演奏する。このとき、演奏パターン3を演奏した後タイ
ミング7でリピート区間始まり記号データが読出される
ので、JPNOにおいてJPPの示すアドレス2にメモリアド
レス5がセットされると共にJPCNTにおいてJPPの示すア
ドレス2に0がセットされ、さらにJPPの値が1アップ
される。Next, after the performance pattern 6 is played, the repeat interval end symbol data of the memory address 10 is read at the timing 6, the memory address 3 is returned according to the instruction of the JPP, and the performance pattern 3 from the next memory address 4 is read. Play 4, 5 At this time, since the repeat section start symbol data is read at the timing 7 after the performance pattern 3 is played, the memory address 5 is set to the address 2 indicated by the JPP in JPNO, and 0 is set to the address 2 indicated by the JPP in JPCNT. It is set and the value of JPP is incremented by 1.
この後、タイミング8以降の動作は、上記動作から容易
に類推できるので、説明を省略する。After that, the operation after the timing 8 can be easily inferred from the above operation, and thus the description thereof will be omitted.
リピート階層の変化(第6図) 第6図は、上記のような演奏進行に伴うリピート階層の
変化を示すものである。ここで、リピート階層とは、あ
るリピート区間内に他のリピート区間が存在するような
場合にJPPの値変化をわかり易く説明するために導入さ
れた概念であり、あるリピート区間に対しその中の他の
リピート区間は階層レベルが1だけ高いと想定するもの
である。このような想定によれば、リピート区間に入る
たびに階層レベルは1だけ上昇し、リピート区間から脱
するたびに階層レベルは1だけ低下すると考えられ、こ
のような階層レベルの変化に対応してJPPの値が制御さ
れる。Change of Repeat Hierarchy (FIG. 6) FIG. 6 shows a change of the repeat hierarchy as the performance progresses as described above. Here, the repeat hierarchy is a concept introduced in order to explain the change in the value of JPP in an easy-to-understand manner when there is another repeat section within a certain repeat section. The repeat section is assumed to have a hierarchical level higher by one. According to such an assumption, it is considered that the hierarchy level is increased by 1 each time the repeat section is entered, and the hierarchy level is decreased by 1 each time the repeat section is exited. The value of JPP is controlled.
すなわち、タイミング1では、JPNOにおいてJPPの示す
アドレスJPNO(1)にメモリアドレス3がセットされ
る。そして、JPPの値は、階層レベルの0から1への変
化に対応して1から2に変化する。That is, at timing 1, the memory address 3 is set in the address JPNO (1) indicated by the JPP in the JPNO. Then, the value of JPP changes from 1 to 2 in response to the change of the hierarchical level from 0 to 1.
次に、タイミング2では、JPNOにおいてJPPの示すアド
レスJPNO(2)にメモリアドレス5がセットされると共
にJPPの値が階層レベルの1から2への変化に対応して
2から3に変化する。Next, at timing 2, the memory address 5 is set in the address JPNO (2) indicated by JPP in JPNO, and the value of JPP changes from 2 to 3 in response to the change from 1 to 2 in the hierarchical level.
この後、タイミング3では、JPCNTにおいてJPP−1のア
ドレスJPCNT(2)のカウント値が1アップされる。そ
して、メモリアドレス5に戻り、演奏パターン4、5の
演奏を2回繰返すと、階層レベルは2から1に変化する
ので、この変化に対応してJPPの値は3から2に変化す
る(第5図のタイミング5参照)。Thereafter, at timing 3, the count value of the address JPCNT (2) of JPP-1 is incremented by 1 in JPCNT. Then, when returning to the memory address 5 and repeating the performances of the performance patterns 4 and 5 twice, the hierarchical level changes from 2 to 1, and accordingly, the value of the JPP changes from 3 to 2 (corresponding to this change). (See timing 5 in FIG. 5).
次に、演奏パターン6を演奏してからタイミング6にな
ると、JPCNTにおいてJPP−1のアドレスJPCNT(1)の
カウント値が1アップされる。そして、第5図で述べた
ようにして演奏パターン3、4、5を演奏すると、タイ
ミング7で階層レベルは1から2に変化し、これに対応
してJPPの値は2から3になる。この後、演奏パターン
4、5の演奏を2回繰返すと、階層レベルは2から1に
変化し、これに対応してJPPの値は3から2になる(第
5図のタイミング10参照)。続いて、演奏パターン6を
演奏してから第5図のタイミング11になると、階層レベ
ルは1から0に変化し、これに対応してJPPの値は2か
ら1に変化する。Next, at the timing 6 after playing the performance pattern 6, the count value of the address JPCNT (1) of JPP-1 is incremented by 1 in JPCNT. When the performance patterns 3, 4, and 5 are played as described in FIG. 5, the hierarchy level changes from 1 to 2 at timing 7, and the value of JPP changes from 2 to 3 correspondingly. After that, when the performances of the performance patterns 4 and 5 are repeated twice, the hierarchical level changes from 2 to 1, and the value of the JPP correspondingly changes from 3 to 2 (see timing 10 in FIG. 5). Then, at the timing 11 in FIG. 5 after playing the performance pattern 6, the hierarchical level changes from 1 to 0, and the value of the JPP changes from 2 to 1 correspondingly.
第3図乃至第6図に関して上述したようなJPPの値制御
並びにJPNO及びJPCNTの値制御はプレイモード時のみな
らず、サーチモード時又はスイッチS3,S4の操作時にも
行なわれることがある(後述の第13図のルーチン参
照)。The JPP value control and the JPNO and JPCNT value control as described above with reference to FIGS. 3 to 6 may be performed not only in the play mode but also in the search mode or when the switches S3 and S4 are operated (described later). See the routine in FIG. 13).
レジスタ群16 レジスタ群16に属するレジスタのうち、この発明の実施
に関係するものを列挙すると、次の通りである。Register Group 16 Of the registers belonging to the register group 16, those relevant to the implementation of the present invention are listed below.
(1)アドレスナンバレジスタJPNO…これは、メモリ18
におけるリピートの戻り先のアドレスナンバがセットさ
れるものである。(1) Address number register JPNO ... This is the memory 18
The address number of the return destination of the repeat is set.
(2)演奏回数カウンタJPCNT…これは、リピート区間
の演奏回数をカウントするためのものである。(2) Performance counter JPCNT ... This is for counting the number of performances in the repeat section.
(3)レジスタアドレスポインタJPP…これは、JPNO及
びJPCNTに共通のレジスタアドレスを指定するためのも
のである。(3) Register address pointer JPP ... This is for designating a register address common to JPNO and JPCNT.
(4)ソングアドレスポインタSGP…これは、メモリ18
のアドレスを指定するためのものである。(4) Song address pointer SGP ... This is memory 18
For specifying the address of.
(5)パターンアドレスポインタPTP…これは、メモリ2
0のアドレスを指定するためのものである。(5) Pattern address pointer PTP ... This is memory 2
It is used to specify an address of 0.
(6)ランフラグRUN…これは、1ビットのレジスタで
あり、1ならば自動演奏が進行中であることを表わし、
0ならば自動演奏が停止中であることを表わす。(6) Run flag RUN ... This is a 1-bit register, and if 1 indicates that automatic performance is in progress,
A value of 0 indicates that the automatic performance is stopped.
(7)モードフラグREC…これは、1ビットのレジスタ
であり、1ならば書込モードを表わし、0ならばプレイ
モードを表わす。(7) Mode flag REC ... This is a 1-bit register, where 1 represents the write mode and 0 represents the play mode.
(8)テンポクロックカウンタCLK…これは、テンポク
ロック信号TCLをカウントするためのもので、1小節内
で0〜31のカウント値をとり、32になるタイミングで0
にリセットされる。(8) Tempo clock counter CLK ... This is for counting the tempo clock signal TCL. It takes a count value of 0 to 31 within one bar and becomes 0 at the timing of 32.
Is reset to.
(9)演奏データレジスタDT…これは、メモリ18に書込
むべきデータ又はメモリ18から読出したデータがストア
されるものである。(9) Performance data register DT This stores the data to be written in the memory 18 or the data read from the memory 18.
(10)サーチ対象レジスタREF…これは、サーチすべき
データ(例えばパターンナンバデータ、リピート区間始
まり記号データ、リピート区間終り記号データ等)がス
トアされるものである。(10) Search target register REF ... This stores the data to be searched (for example, pattern number data, repeat section start symbol data, repeat section end symbol data, etc.).
(11)サーチ方向レジスタFB…これは、1又は−1がセ
ットされるレジスタであり、1ならばサーチ方向として
アドレス値増大方向を表わし、−1ならばサーチ方向と
してアドレス値減少方向を表わす。(11) Search direction register FB ... This is a register in which 1 or -1 is set, where 1 indicates the address value increasing direction as the search direction, and -1 indicates the address value decreasing direction as the search direction.
(12)旧サーチ方向レジスタOFB…これは、SGPの値が1
つ変化するたびにその変化の直前のFBの値がセットされ
るものである。(12) Old search direction register OFB ... The value of SGP is 1
Each time it changes, the FB value immediately before the change is set.
(13)パターンナンバレジスタPTNO…これは、メモリ18
からDTにパターンナンバデータが読出されたとき、DTの
パターンナンバデータがセットされるものである。メモ
リ20から読出すべき演奏パターンは、PTNOのパターンナ
ンバデータに基づいて指定される。(13) Pattern number register PTNO ... This is the memory 18
When the pattern number data is read from to DT, the pattern number data of DT is set. The performance pattern to be read from the memory 20 is designated based on the pattern number data of PTNO.
メインルーチン(第7図) 第7図は、メインルーチンの処理の流れを示すもので、
このルーチンは電源オン等に応じてスタートする。Main Routine (FIG. 7) FIG. 7 shows the flow of processing of the main routine.
This routine starts when the power is turned on.
まず、ステップ40では、初期設定処理を行ない、例えば
RUN、REC、CLK等にはいずれも0をセットする。そし
て、ステップ42に移る。First, in step 40, initial setting processing is performed, for example,
Set 0 for RUN, REC, CLK, etc. Then, the process proceeds to step 42.
ステップ42では、ST/SPスイッチS2にオンイベントあり
か判定し、あり(Y)ならばステップ44に移り、RUNの
値から1を差引いたものをRUNにセットする。この結
果、RUNの値は、1であったときは0に、0であったと
きは1にというように反転される。In step 42, it is determined whether or not the ST / SP switch S2 has an ON event. If YES (Y), the process proceeds to step 44, and the value obtained by subtracting 1 from the RUN value is set in RUN. As a result, the value of RUN is inverted to 0 when it is 1, to 1 when it is 0, and so on.
次に、ステップ46では、RUNの値が1か判定し、この判
定結果が肯定的(Y)であれば自動演奏を開始すべくス
テップ48に移る。ステップ48では、SGP及びJPPにいずれ
も1をセットする。そして、ステップ50に移り、第9図
について後述するようにソング読込みのサブルーチンを
実行する。このソング読込みのサブルーチンでは、メモ
リ18においてSGPの示すアドレス1からデータが読出さ
れる。Next, at step 46, it is judged whether the value of RUN is 1, and if this judgment result is affirmative (Y), the routine proceeds to step 48 to start the automatic performance. At step 48, 1 is set to both SGP and JPP. Then, the routine proceeds to step 50, where a song reading subroutine is executed as described later with reference to FIG. In this song reading subroutine, data is read from the memory 18 at the address 1 indicated by the SGP.
ステップ46の判定結果が否定的(N)であったときは、
自動演奏を停止すべくステップ52に移り、TG28の発音オ
ールオフ処理を行なう。この発音オールオフ処理は、発
音中のすべての楽音を消滅させる処理である。If the determination result of step 46 is negative (N),
In order to stop the automatic performance, the process proceeds to step 52, and the tone generation all-off process of TG28 is performed. This pronunciation all-off process is a process for eliminating all the musical tones being generated.
ステップ42の判定結果が否定的(N)であったとき、あ
るいはステップ50又は52の処理が終ったときは、ステッ
プ54に移り、RUNの値が1か(自動演奏進行中か)判定
する。この判定結果が肯定的(Y)であればステップ78
に移り、その他の処理(例えば音色、音量、テンポ等の
設定処理、表示処理など)を実行する。そして、ステッ
プ42に戻り、それ以降の処理を上記したと同様に繰返
す。この結果、自動演奏が進行するが、演奏処理は第10
図のクロック割込みルーチンに従って行なわれる。When the determination result of step 42 is negative (N), or when the processing of step 50 or 52 is completed, it moves to step 54 and it is determined whether the value of RUN is 1 (whether the automatic performance is in progress). If the determination result is affirmative (Y), step 78.
Then, other processing (for example, setting processing of tone color, volume, tempo, etc., display processing, etc.) is executed. Then, the process returns to step 42, and the subsequent processes are repeated as described above. As a result, the automatic performance proceeds, but the performance process is
This is performed according to the clock interrupt routine shown in the figure.
ステップ54の判定結果が否定的(N)であったときは、
自動演奏が停止中であったことになり、ステップ56に移
る。ステップ56では、サーチスイッチS11にオンイベン
トありか判定し、あり(Y)ならばステップ58で第14図
について後述するようにサーチモードのサブルーチンを
実行する。If the determination result of step 54 is negative (N),
Since the automatic performance has been stopped, the process moves to step 56. In step 56, it is determined whether or not there is an on event in the search switch S11. If yes (Y), a search mode subroutine is executed in step 58 as will be described later with reference to FIG.
ステップ56の判定結果が否定的(N)であったとき又は
ステップ58の処理が終ったときは、ステップ60に移り、
INCスイッチS3にオンイベントありか判定する。この判
定結果が肯定的(Y)であればステップ62に移り、第11
図について後述するようにINCオンのサブルーチンを実
行する。When the determination result of step 56 is negative (N) or when the process of step 58 ends, the process moves to step 60,
It is determined whether the INC switch S3 has an on event. If the determination result is affirmative (Y), the process proceeds to step 62 and the eleventh
The INC ON subroutine is executed as described later in the figure.
ステップ60の判定結果が否定的(N)であったとき又は
ステップ62の処理が終ったときは、ステップ64に移り、
DECスイッチS4にオンイベントありか判定する。この判
定結果が肯定的(Y)であればステップ66に移り、第12
図について後述するようにDECオンのサブルーチンを実
行する。When the determination result of step 60 is negative (N) or when the process of step 62 ends, the process moves to step 64,
It is determined whether the DEC switch S4 has an on event. If the determination result is affirmative (Y), the process proceeds to step 66 and the twelfth
The DEC ON subroutine is executed as described later in the figure.
ステップ56〜66の処理によれば、自動演奏の停止中にお
いてサーチモードを指定して所望の演奏データをサーチ
したり、スイッチS3、S4を操作して所望の演奏データを
選択したりすることができる。According to the processes of steps 56 to 66, it is possible to specify a search mode to search for desired performance data while the automatic performance is stopped, or to operate switches S3 and S4 to select the desired performance data. it can.
ステップ64の判定結果が否定的(N)であったとき又は
ステップ66の処理が終ったときは、ステップ68に移る。
ステップ68では、EXEスイッチS9にオンイベントありか
判定し、あり(Y)ならばステップ70に移る。When the determination result of step 64 is negative (N) or when the process of step 66 is completed, the process proceeds to step 68.
In step 68, it is determined whether or not the EXE switch S9 has an on event, and if there is (Y), the process proceeds to step 70.
ステップ70では、メモリ20においてPTNOで示されるパタ
ーン記憶部の先頭アドレスをPTPにセットする。そし
て、ステップ72でRUNに1をセットする。PTNOには、ス
テップ58,62又は66にてサーチ又は選択に係るパターン
ナンバデータがセットされているので、スイッチS9をオ
ンすることによりサーチ又は選択に係るパターンナンバ
データから自動演奏を開始させることができる。In step 70, the head address of the pattern storage section indicated by PTNO in the memory 20 is set in PTP. Then, in step 72, RUN is set to 1. Since the pattern number data relating to the search or selection is set in PTNO in step 58, 62 or 66, it is possible to start the automatic performance from the pattern number data relating to the search or selection by turning on the switch S9. it can.
ステップ68の判定結果が否定的(N)であったとき又は
ステップ72の処理が終ったときは、ステップ74に移り、
モードスイッチS1にオンイベントありか判定する。この
判定結果が否定的(N)であれば、上記したと同様にス
テップ78を経てステップ42に戻り、それ以降の処理を繰
返す。When the determination result of step 68 is negative (N) or when the process of step 72 ends, the process moves to step 74,
It is determined whether the mode switch S1 has an on event. If the result of this determination is negative (N), the process returns to step 42 through step 78 in the same manner as described above, and the subsequent processing is repeated.
自動演奏の停止中にモードスイッチS1をオンしたとき
は、ステップ74の判定結果が肯定的(Y)となり、ステ
ップ80に移る。ステップ80では、RECに1をセット(書
込モードへ変更)する。この結果、自動演奏の進行は停
止される。この後、ステップ82でTG28の発音オールオフ
処理を行なってから第8図の書込みモードのルーチンに
移る。When the mode switch S1 is turned on while the automatic performance is stopped, the determination result of step 74 becomes affirmative (Y), and the routine proceeds to step 80. In step 80, 1 is set in REC (change to write mode). As a result, the progress of automatic performance is stopped. After that, the tone generation all-off process of the TG 28 is performed in step 82, and then the process shifts to the write mode routine of FIG.
書込モードのルーチン(第8図) 第8図は、書込モードのルーチンを示すもので、ステッ
プ90では、SGP、JPP、OFBにいずれも1をセットし、DT
には0をセットする。そして、ステップ92に移る。Write Mode Routine (FIG. 8) FIG. 8 shows the write mode routine. In step 90, SGP, JPP, and OFB are all set to 1, and DT is set.
Is set to 0. Then, the process proceeds to step 92.
ステップ92では、PAT指定許容スイッチS5にオンイベン
トありか判定し、この判定結果が肯定的(Y)であれば
ステップ94に移る。ステップ94では、テンキーS6による
2桁の数字(パターンナンバ)の入力を待つ。そして、
ステップ96に移り、入力された2桁の数字を示すパター
ンナンバデータをDTにセットする。In step 92, it is determined whether or not there is an on event in the PAT designation permission switch S5, and if the determination result is affirmative (Y), the process proceeds to step 94. In step 94, the input of a two-digit number (pattern number) by the ten keys S6 is waited for. And
In step 96, the pattern number data indicating the input two-digit number is set in DT.
ステップ92の判定結果が否定的(N)であったとき又は
ステップ96の処理が終ったときは、ステップ98に移る。
ステップ98では、リピート区間指定スイッチS7にオンイ
ベントありか判定する。この判定結果が肯定的(Y)で
あればステップ100に移り、リピート区間始まり記号デ
ータ(COH)をDTにセットする。When the determination result of step 92 is negative (N), or when the processing of step 96 ends, the process proceeds to step 98.
In step 98, it is determined whether the repeat section designating switch S7 has an on event. If the determination result is affirmative (Y), the process proceeds to step 100, and the repeat section start symbol data (CO H ) is set in DT.
ステップ98の判定結果が否定的(N)であったとき又は
ステップ100の処理が終ったときは、ステップ102に移
り、リピート区間指定スイッチS8にオンイベントありか
判定する。この判定結果が肯定的(Y)であればステッ
プ104に移り、テンキーS6による2桁の数字(繰返回
数)の入力を待つ。この場合、入力可能な最大値は63に
制限する。そして、ステップ106では、入力値を示す8
ビットのデータと16進表記で80Hのデータ(MSBのみ1で
他は0のデータ)とを加えたもの、すなわちリピート区
間終り記号データをDTにセットする。When the determination result of step 98 is negative (N) or when the processing of step 100 is completed, the process proceeds to step 102, and it is determined whether the repeat section designating switch S8 has an on event. If the result of this determination is affirmative (Y), the routine proceeds to step 104, and waits for the input of a two-digit number (the number of repetitions) with the ten keys S6. In this case, the maximum value that can be entered is limited to 63. Then, in step 106, 8 indicating the input value
The bit data and the data of 80 H in hexadecimal notation (data of 1 for MSB and 0 for others), that is, repeat interval end symbol data is set in DT.
ステップ102の判定結果が否定的(N)であったとき又
はステップ106の処理が終ったときは、ステップ108に移
り、EXEスイッチS9にオンイベントありか判定する。こ
の判定結果が肯定的(Y)であればステップ110に移
り、メモリ18においてSGPの示すアドレスSONG(SGP)に
DTのデータを書込む。そして、ステップ112でSGPの値を
1アップする。When the determination result of step 102 is negative (N) or when the process of step 106 is completed, the process proceeds to step 108, and it is determined whether the EXE switch S9 has an on event. If this determination result is affirmative (Y), the process proceeds to step 110, and the address SONG (SGP) indicated by SGP in the memory 18 is set.
Write the DT data. Then, in step 112, the SGP value is incremented by 1.
上記したステップ92〜112の処理によれば、パターンナ
ンバ、リピート区間始まり記号又はリピート区間終り記
号(リピート回数も含む)を指定してはEXEスイッチS9
をオンすることによりメモリ18に所望の演奏データを書
込むことができる。According to the above steps 92 to 112, the EXE switch S9 is used to specify the pattern number, the repeat section start symbol or the repeat section end symbol (including the repeat count).
By turning on, desired performance data can be written in the memory 18.
ステップ108の判定結果が否定的(N)であったとき又
はステップ112の処理が終ったときは、ステップ114に移
る。ステップ114,116,118,120,122,124は、第7図で述
べたステップ56,58,60,62,64,66とそれぞれ同様のもの
であり、詳細な説明を省略する。ステップ114〜124の処
理によれば、書込モードの際にサーチモードを指定して
所望の演奏データをサーチしたり、スイッチS3、S4を操
作して所望の演奏データを選択したりすることができ
る。When the determination result of step 108 is negative (N) or when the process of step 112 is completed, the process proceeds to step 114. Steps 114, 116, 118, 120, 122, 124 are the same as steps 56, 58, 60, 62, 64, 66 described in FIG. 7, and detailed description thereof will be omitted. According to the processing of steps 114 to 124, it is possible to specify a search mode in the writing mode to search for desired performance data, or to operate switches S3 and S4 to select desired performance data. it can.
ステップ122の判定結果が否定的(N)であったとき又
はステップ124の処理が終ったときは、ステップ126に移
り、モードスイッチS1にオンイベントありか判定する。
この判定結果が否定的(N)であればステップ128でそ
の他の処理(例えば表示処理)を実行してからステップ
92に戻り、それ以降の処理を上記したと同様に繰返す。
ステップ116,120,124では、サーチ又は選択に係るデー
タがDTにセットされているので、ステップ92に戻った後
スイッチS5〜S8を用いてDT内のデータを修正してからEX
EスイッチS9をオンすることによりメモリ18内の所望の
データを書換えることができる。When the determination result of step 122 is negative (N) or when the process of step 124 is completed, the process proceeds to step 126, and it is determined whether the mode switch S1 has an on event.
If the determination result is negative (N), other processing (for example, display processing) is executed in step 128, and then step
Returning to 92, the subsequent processing is repeated as described above.
In steps 116, 120, and 124, since the data related to the search or selection is set in the DT, after returning to step 92, the data in the DT is corrected using the switches S5 to S8 and then EX.
By turning on the E switch S9, desired data in the memory 18 can be rewritten.
上記のようにして書込モードの処理が行なわれていると
きに、モードスイッチS1をオンすると、ステップ126の
判定結果が肯定的(Y)となり、ステップ130に移る。
ステップ130では、メモリ18においてSGPの示すアドレス
SONG(SGP)のソングエンドコードデータ(FFH)を書込
む。そして、第7図のプレイモードのルーチンに移る。When the mode switch S1 is turned on while the writing mode process is being performed as described above, the determination result of step 126 becomes affirmative (Y), and the routine proceeds to step 130.
In step 130, the address indicated by SGP in the memory 18
Writes song end code data (FF H) the Book of SONG (SGP). Then, the routine proceeds to the play mode routine shown in FIG.
第7図において、ステップ132では、REC及びDTにいずれ
も0をセットすると共に、SGP、JPP及びOFBにいずれも
1をセットする。そして、ステップ42に移り、それ以降
の処理はすべて前述のメインルーチンと同様に実行す
る。In step 132 in FIG. 7, both REC and DT are set to 0, and SGP, JPP, and OFB are set to 1. Then, the process proceeds to step 42, and the subsequent processes are all executed in the same manner as the above-mentioned main routine.
ソング読込みのサブルーチン(第9図) 第9図は、ソング読込みのサブルーチンを示すもので、
ステップ140では、メモリ18においてSGPの示すアドレス
SONG(SGP)のデータを読出してDTにセットする。そし
て、ステップ142に移る。Song reading subroutine (Fig. 9) Fig. 9 shows a song reading subroutine.
In step 140, the address indicated by SGP in memory 18
Read SONG (SGP) data and set in DT. Then, the process proceeds to step 142.
ステップ142では、DTの値が01〜99のいずれかか(パタ
ーンナンバか)判定する。この判定結果が肯定的(Y)
であればステップ144に移り、SGPの値を1アップすると
共に、DTのパターンナンバデータをPTNOにセットする。
そして、ステップ146に移る。In step 142, it is determined whether the value of DT is 01 to 99 (pattern number). This judgment result is positive (Y)
If so, the process proceeds to step 144, the SGP value is incremented by 1, and the DT pattern number data is set in PTNO.
Then, the process proceeds to step 146.
ステップ146では、メモリ20においてPTNOで示されるパ
ターン記憶部の先頭アドレスをPTPにセットする。この
後、元のルーチン(第7図又は第10図のルーチン)にリ
ターンする。なお、第9図乃至第15図において、「RE
T」はリターンを表わす。In step 146, the head address of the pattern storage section indicated by PTNO in the memory 20 is set in PTP. After this, the process returns to the original routine (the routine of FIG. 7 or 10). In addition, in FIG. 9 to FIG.
"T" represents a return.
ステップ142の判定結果が否定的(N)であったとき
は、ステップ148に移り、DTの値がCOHか(リピート区間
始まり記号か)判定する。この判定結果が肯定的(Y)
であれば、ステップ150に移り、JPNOにおいてJPPの示す
アドレスJPNO(JPP)にSGPの値(リピートの戻り先とな
るメモリアドレス)をセットすると共に、JPCNTにおい
てJPPの示すアドレスJPCNT(JPP)に0をセットする。
そして、ステップ152に移る。When the determination result of step 142 is negative (N), the process proceeds to step 148, and it is determined whether the value of DT is CO H (whether it is a repeat section start symbol). This judgment result is positive (Y)
If so, the process proceeds to step 150, where the SJP value (memory address to which the repeat returns) is set to the address JPNO (JPP) indicated by JPP in JPNO, and the address JPCNT (JPP) indicated by JPP is set to 0 in JPCNT. Set.
Then, the process proceeds to step 152.
ステップ152では、リピート階層レベルの上昇に伴いJPP
の値を1アップすると共に、SGPの値を1アップする。
ステップ150及び152の処理は、第5図において例えばタ
イミング1又は2等の動作に対応する。In step 152, as the repeat hierarchy level increases, the JPP
The value of is increased by 1 and the value of SGP is also increased by 1.
The processing of steps 150 and 152 corresponds to the operation of timing 1 or 2 in FIG. 5, for example.
ステップ152の後は、ステップ140に戻り、それ以降の処
理を上記したと同様に繰返す。このとき、パターンナン
バデータがDTに読出されれば、ステップ144,146を経て
元のルーチンにリターンする。After step 152, the process returns to step 140, and the subsequent processes are repeated as described above. At this time, if the pattern number data is read to DT, the process returns to the original routine through steps 144 and 146.
ステップ148の判定結果が否定的(N)であったとき
は、ステップ154に移り、DTの上位2ビットが“10"か
(リピート区間終り記号か)判定する。この判定結果が
肯定的(Y)であればステップ156に移り、JPCNTにおい
てJPP−1のアドレスJPCNT(JPP−1)のカウント値とD
Tの下位6ビットの値とが等しいか(所望の繰返回数に
達したか)判定する。この判定結果が肯定的(Y)であ
ればステップ158に移る。If the determination result in step 148 is negative (N), the process moves to step 154, and it is determined whether the upper 2 bits of DT are "10" (whether the repeat section end symbol). If the result of this determination is affirmative (Y), the routine proceeds to step 156, where the count value of the address JPCNT (JPP-1) of JPP-1 and D
It is determined whether the value of the lower 6 bits of T is equal (whether the desired number of repetitions has been reached). If this determination result is affirmative (Y), the process proceeds to step 158.
ステップ158では、リピート階層レベルの降下に伴いJPP
の値を1ダウンすると共に、SGPの値を1アップする。
ステップ156及び158の処理は、第5図において例えばタ
イミング5の動作に対応する。ステップ158の後ステッ
プ140に戻り、パターンナンバデータが読出されればス
テップ144,146を経て元のルーチンにリターンする。In step 158, as the repeat hierarchy level descends, JPP
The value of is decreased by 1 and the value of SGP is increased by 1.
The processing of steps 156 and 158 corresponds to, for example, the operation at timing 5 in FIG. After step 158, the process returns to step 140, and if the pattern number data is read, the process returns to the original routine through steps 144 and 146.
ステップ156の判定結果が否定的(N)であったとき
は、ステップ160に移り、JPCNT(JPP−1)のカウント
値を1アップする。そして、ステップ162に移り、JPNO
においてJPP−1のアドレスJPNO(JPP−1)のメモリア
ドレスに1を加えたもの(リピートの戻り先の次のメモ
リアドレス)をSGPにセットする。ステップ160及び162
の処理は、第5図において例えばタイミング3又は4等
の動作に対応する。ステップ162の後は、ステップ140に
戻り、パターンナンバデータが読出されれば、ステップ
144,146を経て元のルーチンにリターンする。If the determination result of step 156 is negative (N), the process proceeds to step 160, and the count value of JPCNT (JPP-1) is incremented by 1. Then, move to step 162, JPNO
At 1, the address of JPP-1 JPNO (JPP-1) plus 1 (the memory address next to the repeat return destination) is set in the SGP. Steps 160 and 162
5 corresponds to the operation of timing 3 or 4 in FIG. After step 162, return to step 140, and if the pattern number data is read,
It returns to the original routine through 144,146.
ステップ154の判定結果が否定的(N)であったとき
は、ステップ164に移り、DTの値がFFHか(ソングエンド
コードか)判定する。この判定結果が否定的(N)であ
ればステップ166でSGPの値を1アップしてステップ140
に戻る。また、ステップ164の判定結果が肯定的(Y)
であればステップ168でRUNに0をセットして元のルーチ
ンにリターンする。この結果、自動演奏は停止となる。If the determination result in step 154 is negative (N), the process moves to step 164 and it is determined whether the value of DT is FF H (song end code). If the determination result is negative (N), the value of SGP is incremented by 1 in step 166 and step 140
Return to. Further, the determination result of step 164 is positive (Y).
If so, RUN is set to 0 in step 168 and the process returns to the original routine. As a result, the automatic performance is stopped.
クロック割込みルーチン(第10図) 第10図は、クロック割込みルーチンを示すもので、この
ルーチンはテンポクロック信号TCLの各クロックパルス
毎にスタートする。Clock Interrupt Routine (FIG. 10) FIG. 10 shows the clock interrupt routine, which starts at each clock pulse of the tempo clock signal TCL.
まず、ステップ170では、RECの値が0(プレイモード)
で且つRUNの値が1(自動演奏進行中)か判定する。こ
の判定結果が否定的(N)であれば第7図のルーチンに
リターンする。First, in step 170, the REC value is 0 (play mode).
And the RUN value is 1 (automatic performance is in progress). If the determination result is negative (N), the process returns to the routine of FIG.
ステップ170の判定結果が肯定的(Y)であったとき
は、ステップ172に移り、メモリ20においてPTPで示され
るイベントデータのタイミング値がCLKの値と等しいか
(読出すべきタイミングか)判定する。この判定結果が
否定的(N)であれば、ステップ188に移り、CLKの値を
1アップする。そして、ステップ190に移り、CLKの値が
32か判定し、この判定結果が肯定的(Y)であればステ
ップ192でCLKに0をセットする。If the determination result of step 170 is affirmative (Y), the process proceeds to step 172, and it is determined whether the timing value of the event data indicated by PTP in the memory 20 is equal to the value of CLK (whether the timing should be read). . If the determination result is negative (N), the process proceeds to step 188 and the value of CLK is incremented by 1. Then, in step 190, the value of CLK is
If 32 is judged, and this judgment result is affirmative (Y), 0 is set to CLK in step 192.
ステップ190の判定結果が否定的(N)であったとき又
はステップ192の処理が終ったときは、第7図のルーチ
ンにリターンする。When the determination result of step 190 is negative (N) or when the process of step 192 ends, the routine returns to the routine of FIG.
ステップ172の判定結果が肯定的(Y)であったとき
は、ステップ174に移り、PTPで示されるイベントデータ
の第1及び第2バイトのキーデータをメモリ20から読出
す。そして、ステップ176に移り、読出されたキーデー
タに応じてTG28の発音又は消音制御を行なう。すなわ
ち、読出キーデータがキーオンを指示していれば該キー
データ中のキーコードに対応した音高を有する楽音信号
を発生開始させ、読出キーデータがキーオフを指示して
いれば該キーデータ中のキーコードに対応した音高を有
する楽音信号を減衰開始させる。If the determination result of step 172 is affirmative (Y), the process proceeds to step 174, and the key data of the first and second bytes of the event data indicated by PTP is read from the memory 20. Then, the process proceeds to step 176, and the tone generation or mute control of the TG 28 is performed according to the read key data. That is, if the read key data indicates key-on, a tone signal having a pitch corresponding to the key code in the key data is started to be generated. Attenuation of a musical tone signal having a pitch corresponding to the key code is started.
次に、ステップ178では、PTPの値を3アップする。この
結果、PTPは、次のイベントデータを指示するようにな
る。この後、ステップ180に移る。Next, in step 178, the value of PTP is increased by 3. As a result, PTP comes to instruct the next event data. After this, the process proceeds to step 180.
ステップ180では、PTPの示すデータがパターンエンドコ
ードデータPENDか判定する。この判定結果が否定的
(N)であれば、ステップ188に移り、それ以降の処理
を上記したと同様に実行してから第7図のルーチンにリ
ターンする。In step 180, it is determined whether the data indicated by PTP is pattern end code data PEND. If the determination result is negative (N), the process proceeds to step 188, the subsequent processes are executed in the same manner as described above, and then the process returns to the routine of FIG.
ステップ180の判定結果が肯定的(Y)であったとき
は、ステップ182に移り、SGPの値を1アップする。そし
て、ステップ184に移り、第9図に関して前述したよう
にソング読込みのサブルーチンを実行する。第9図のル
ーチンでは、ステップ182でSGPの値を1アップしたの
で、SGPの示す新たなアドレスの演奏データがメモリ18
から読出される。If the determination result of step 180 is affirmative (Y), the process proceeds to step 182, and the SGP value is incremented by 1. Then, the routine proceeds to step 184, where the song reading subroutine is executed as described above with reference to FIG. In the routine of FIG. 9, since the SGP value is incremented by 1 in step 182, the performance data at the new address indicated by SGP is stored in the memory 18.
Read from.
ステップ184の後は、ステップ186でCLKに0をセットし
てから第7図のルーチンにリターンする。After step 184, CLK is set to 0 in step 186, and then the process returns to the routine of FIG.
INCオン及びDECオンのサブルーチン(第11図及び第12
図) 第11図は、INCオンのサブルーチンを示すもので、ステ
ップ200では、FBに1(アドレス値増大方向に対応)を
セットする。そして、ステップ202に移り、第13図につ
いて後述するようにポインタ移動のサブルーチンを実行
する。この後は、元のルーチン(第7図、第8図又は第
14図のルーチン)にリターンする。INC ON and DEC ON subroutines (Figs. 11 and 12
(FIG. 11) FIG. 11 shows a subroutine for turning on the INC. In step 200, FB is set to 1 (corresponding to the increasing address value). Then, the routine proceeds to step 202, where a pointer movement subroutine is executed as will be described later with reference to FIG. After this, the original routine (FIG. 7, FIG. 8 or FIG.
Return to the routine shown in Fig. 14).
第12図は、DECオンのサブルーチンを示すもので、ステ
ップ210では、FBに−1(アドレス値減少方向に対応)
をセットする。そして、ステップ212に移り、第13図の
ポインタ移動のサブルーチンを実行する。この後は、元
のルーチン(第7図、第8図又は第14図のルーチン)に
リターンする。Fig. 12 shows the DEC ON subroutine, and in step 210, -1 is added to FB (corresponding to decreasing address value).
Set. Then, the routine proceeds to step 212, where the pointer moving subroutine of FIG. 13 is executed. After this, the process returns to the original routine (the routine of FIG. 7, FIG. 8 or FIG. 14).
ポインタ移動のサブルーチン(第13図) 第13図は、ポインタ移動のサブルーチンを示すもので、
ステップ220では、FBの値が1で且つSONG(SGP)のデー
タ値がFFHか(アドレス値増大方向で且つソングエンド
コードか)、又はFBの値が−1で且つSGPの値が1か
(アドレス値減少方向で且つメモリ18の先頭アドレス
か)判定する。この判定結果が否定的(N)であれば、
ステップ222に移る。Pointer movement subroutine (Fig. 13) Fig. 13 shows the pointer movement subroutine.
At step 220, whether the FB value is 1 and the SONG (SGP) data value is FF H (in the direction of increasing address value and song end code), or whether the FB value is -1 and the SGP value is 1 (Whether the address value is decreasing and the start address of the memory 18). If this determination result is negative (N),
Move to step 222.
ステップ222では、DTの値がCOHで且つOFB及びFBのいず
れの値も−1か(アドレス値減少方向に移動してきてリ
ピート区間始まり記号に遭遇か)判定する。この判定結
果が肯定的(Y)であればステップ224に移り、リピー
ト階層レベルの降下に伴いJPPの値を1ダウンする。In step 222, it is determined whether the value of DT is CO H and the values of OFB and FB are both −1 (whether the repeat interval start symbol is encountered by moving in the address value decreasing direction). If the result of this determination is affirmative (Y), the routine moves to step 224, and the value of JPP is decremented by 1 as the repeat hierarchy level drops.
ステップ222の判定結果が否定的(N)であったとき
は、ステップ226に移り、DTのデータの上位2ビットが
“10"で且つOFB及びFBのいずれの値も+1か(アドレス
値増大方向に移動してきてリピート区間終り記号に遭遇
か)判定する。この判定結果が肯定的(Y)であればス
テップ224でJPPの値を1ダウンする。If the determination result of step 222 is negative (N), the process moves to step 226, and the upper 2 bits of the DT data are “10” and both OFB and FB are +1 (in the direction of increasing the address value). To the end of the repeat section) to determine. If this determination result is affirmative (Y), the value of JPP is decremented by 1 in step 224.
ステップ226の判定結果が否定的(N)であったとき
は、ステップ228に移り、DTのデータの上位2ビットが
“10"で且つOFB及びFBのいずれの値も−1か(アドレス
値減少方向に移動してきてリピート区間終り記号に遭遇
か)判定する。この判定結果が肯定的(Y)であればス
テップ230に移り、リピート階層レベルの上昇に伴いJPP
の値を1アップする。If the determination result in step 226 is negative (N), the process moves to step 228, and the upper 2 bits of the DT data are “10” and both OFB and FB are −1 (decrease address value). It moves in the direction, and it judges whether it encounters the end symbol of the repeat section. If the determination result is affirmative (Y), the process moves to step 230, and the JPP increases as the repeat hierarchy level increases.
Increase the value of by 1.
ステップ228の判定結果が否定的(N)であったとき
は、ステップ232に移り、DTの値がCOHで且つOFB及びFB
のいずれの値も+1か(アドレス値増大方向に移動して
きてリピート区間始まり記号に遭遇か)判定する。この
判定結果が肯定的(Y)であればステップ234に移り、
第9図のステップ150と同様にしてJPNO(SGP)にSGPの
値(リピートの戻り先のメモリアドレス)をセットする
と共にJPCNT(SGP)に0をセットする。そして、ステッ
プ230でJPPの値を1アップする。If the determination result in step 228 is negative (N), the process moves to step 232, where the value of DT is CO H and OFB and FB.
Is +1 (whether the repeat interval start symbol is encountered by moving in the address value increasing direction). If the determination result is affirmative (Y), the process moves to step 234,
Similar to step 150 in FIG. 9, the SGP value (memory address of the repeat return destination) is set in JPNO (SGP), and 0 is set in JPCNT (SGP). Then, in step 230, the JPP value is incremented by 1.
ステップ232の判定結果が否定的(N)であったとき、
あるいはステップ224又は230の処理が終ったときは、ス
テップ236に移り、SGPの値とFBの値とを加えたものをSG
Pにセットすると共にOFBにFBの値をセットする。この場
合、FBの値が+1であればSGPの値は1アップされ、FB
の値が−1であればSGPの値は1ダウンされる。すなわ
ち、メモリ18に関してSGPの示すアドレスが1つだけ変
更される。When the determination result of step 232 is negative (N),
Alternatively, when the process of step 224 or 230 is completed, the process proceeds to step 236, and the sum of the SGP value and the FB value is added to SG.
Set it to P and set the value of FB to OFB. In this case, if the FB value is +1 then the SGP value is incremented by 1
If the value of -1 is -1, the value of SGP is decreased by 1. That is, only one address indicated by SGP in the memory 18 is changed.
ステップ220の判定結果が肯定的(Y)であったとき又
はステップ236の処理が終ったときは、ステップ238に移
り、SONG(SGP)のデータを読出してDTにセットする。
このときDTにセットされるのは、ステップ220でSONG(S
GP)=FFHのときはFFHのデータ(ソングエンドコード)
であり、ステップ220でSGP=1のときはSONG(1)のデ
ータであり、ステップ236を経由したときはステップ236
で設定された新たなアドレスのデータである。ステップ
238の後は、ステップ240に移る。When the determination result of step 220 is affirmative (Y) or when the process of step 236 ends, the process moves to step 238, the data of SONG (SGP) is read and set in DT.
At this time, what is set in DT is SONG (S
When GP) = FF H , FF H data (song end code)
If SGP = 1 in step 220, it is SONG (1) data, and if it goes through step 236, it is step 236.
It is the data of the new address set in. Step
After 238, the process proceeds to step 240.
ステップ240では、DTの値が01〜99のいずれかか(パタ
ーンナンバか)判定する。この判定結果が肯定的(Y)
であればステップ242に移り、DTのパターンナンバデー
タをPTNOにセットする。In step 240, it is determined whether the DT value is 01 to 99 (pattern number). This judgment result is positive (Y)
If so, the process proceeds to step 242, and the pattern number data of DT is set in PTNO.
ステップ240の判定結果が否定的(N)であったとき又
はステップ242の処理が終ったときは、元のルーチン
(第11図、第12図又は第15図のルーチン)にリターンす
る。When the determination result of step 240 is negative (N) or when the process of step 242 ends, the process returns to the original routine (the routine of FIG. 11, FIG. 12 or FIG. 15).
サーチモードのサブルーチン(第14図) 第14図は、サーチモードのサブルーチンを示すもので、
ステップ250では、PAT指定許容スイッチS5にオンイベン
トありか判定し、この判定結果が肯定的(Y)であれば
ステップ252に移る。ステップ252では、テンキーS6によ
る2桁の数字(パターンナンバ)の入力を待つ。そし
て、ステップ254に移り、入力された2桁の数字を示す
パターンナンバデータをREFにセットする。Search mode subroutine (Fig. 14) Fig. 14 shows the search mode subroutine.
In step 250, it is determined whether or not there is an on event in the PAT designation permission switch S5, and if the determination result is affirmative (Y), the process proceeds to step 252. In step 252, the input of a two-digit number (pattern number) by the ten keys S6 is waited for. Then, the process proceeds to step 254, and the pattern number data indicating the inputted two-digit number is set in REF.
ステップ250の判定結果が否定的(N)であったとき又
はステップ254の処理が終ったときは、ステップ256に移
る。ステップ256では、リピート区間指定スイッチS7に
オンイベントありか判定する。この判定結果が肯定的
(Y)であればステップ258に移り、リピート区間始ま
り記号データ(COH)をREFにセットする。When the determination result of step 250 is negative (N) or when the process of step 254 ends, the process proceeds to step 256. In step 256, it is determined whether the repeat section designating switch S7 has an on event. If the result of this judgment is affirmative (Y), the routine proceeds to step 258, where the repeat section start symbol data (CO H ) is set to REF.
ステップ256の判定結果が否定的(N)であったとき又
はステップ258の処理が終ったときは、ステップ260に移
り、リピート区間指定スイッチS8にオンイベントありか
判定する。この判定結果が肯定的(Y)であればステッ
プ262に移り、16進表記で80Hのリピート区間終り記号デ
ータをREFにセットする。この場合、繰返回数は考慮さ
れていない。When the determination result of step 256 is negative (N) or when the process of step 258 ends, the process proceeds to step 260, and it is determined whether the repeat section designating switch S8 has an on event. If this determination result is affirmative (Y), the process proceeds to step 262, and the repeat section end symbol data of 80 H in hexadecimal notation is set in REF. In this case, the number of repetitions is not considered.
ステップ260の判定結果が否定的(N)であったとき又
はステップ262の処理が終ったときは、ステップ264に移
り、EXEスイッチS9にオンイベントありか判定する。こ
の判定結果が肯定的(Y)であればステップ266に移
り、第15図について後述するようにサーチ実行のサブル
ーチンを実行する。When the determination result of step 260 is negative (N) or when the process of step 262 ends, the process proceeds to step 264, and it is determined whether the EXE switch S9 has an on event. If the result of this determination is affirmative (Y), the routine proceeds to step 266, where a search execution subroutine is executed as described later with reference to FIG.
スイッチ264の判定結果が否定的(N)であったとき又
はステップ266の処理が終ったときは、ステップ268に移
り、サーチ方向指定スイッチS10にオンイベントありか
判定する。この判定結果が肯定的(Y)であればステッ
プ270に移る。ステップ270では、FBの値に付された符号
を反転する。すなわち、FBの値が+1であったときは、
FBに−1をセットし、FBの値が−1であったときは、FB
に+1をセットする。この結果、スイッチS10をオンす
るたびにサーチ方向が反転することになる。When the determination result of the switch 264 is negative (N) or when the process of step 266 is completed, the process proceeds to step 268 and it is determined whether the search direction designating switch S10 has an on event. If the determination result is affirmative (Y), the process proceeds to step 270. In step 270, the sign given to the value of FB is inverted. That is, when the value of FB is +1
If -1 is set in FB and the value of FB is -1, FB
Set +1 to. As a result, the search direction is reversed every time the switch S10 is turned on.
上記したステップ250〜270の処理によれば、パターンナ
ンバ、リピート区間始まり記号又はリピート区間終り記
号とサーチ方向とを指定してはEXEスイッチS9をオンす
ることにより所望の演奏データを高速でサーチすること
ができる。According to the processing of steps 250 to 270 described above, the desired performance data is searched at high speed by turning on the EXE switch S9 by designating the pattern number, the repeat section start symbol or the repeat section end symbol and the search direction. be able to.
ステップ268の判定結果が否定的(N)であったとき又
はステップ270の処理が終ったときは、ステップ272に移
る。ステップ272,274,276,278は、第7図で述べたステ
ップ60,62,64,66とそれぞれ同様のものであり、詳細な
説明を省略する。ステップ272〜278の処理によれば、サ
ーチモードの際にスイッチS3、S4を操作して所望の演奏
データを選択することができ、特にステップ266でサー
チした演奏データの近傍の演奏データを選択するのに好
都合である。When the determination result of step 268 is negative (N) or when the process of step 270 is completed, the process proceeds to step 272. Steps 272, 274, 276, and 278 are similar to steps 60, 62, 64, and 66 described in FIG. 7, and detailed description thereof will be omitted. According to the processing of steps 272 to 278, the desired performance data can be selected by operating the switches S3 and S4 in the search mode, and particularly, the performance data near the performance data searched in step 266 is selected. It is convenient for
ステップ276の判定結果が否定的(N)であったとき又
はステップ278の処理が終ったときは、ステップ280に移
り、ST/SPスイッチS2にオンイベントありか判定する。
この判定結果が否定的(N)であればステップ282に移
り、その他の処理(例えば表示処理)を行なう。この後
は、ステップ250に戻り、それ以降の処理を上記したと
同様に繰返す。When the determination result of step 276 is negative (N) or when the process of step 278 ends, the process proceeds to step 280, and it is determined whether the ST / SP switch S2 has an on event.
If the determination result is negative (N), the process proceeds to step 282 and other processing (for example, display processing) is performed. After that, the process returns to step 250, and the subsequent processes are repeated as described above.
ステップ280の判定結果が肯定的(Y)であったとき
は、元のルーチン(第7図又は第8図のルーチン)にリ
ターンする。すなわち、サーチモードからプレイモード
又は書込モードに戻りたいときは、スイッチS2をオンす
ればよい。If the determination result of step 280 is affirmative (Y), the process returns to the original routine (the routine of FIG. 7 or 8). That is, when it is desired to return from the search mode to the play mode or the write mode, the switch S2 may be turned on.
サーチ実行のサブルーチン(第15図) 第15図は、サーチ実行のサブルーチンを示すもので、ス
テップ290では、前述した第13図のポインタ移動のサブ
ルーチンを実行する。そして、ステップ292に移る。Search Execution Subroutine (FIG. 15) FIG. 15 shows a search execution subroutine. In step 290, the pointer movement subroutine shown in FIG. 13 is executed. Then, the process proceeds to step 292.
ステップ292では、REFの値とDTの値とが等しく且つREF
のデータの最上位ビットが“0"か(REF及びDTのデータ
がパターンナンバデータであってパターンナンバ一致
か)判定する。いま、REF及びDTのデータはいずれもパ
ターンナンバデータであるが、パターンナンバが一致し
ないものとすると、ステップ292の判定結果が否定的
(N)となり、ステップ294〜298を介してステップ290
に戻る。そして、ステップ290以降の処理をパターンナ
ンバが一致するまで繰返す。In step 292, the value of REF and the value of DT are equal and REF
Whether the most significant bit of the data of "0" is "0" (whether the data of REF and DT is pattern number data and the pattern number matches) is determined. Now, the data of REF and DT are both pattern number data, but if the pattern numbers do not match, the determination result of step 292 is negative (N), and steps 290 to 290 via steps 294 to 298.
Return to. Then, the processing from step 290 is repeated until the pattern numbers match.
パターンナンバが一致すると、ステップ292の判定結果
が肯定的(Y)となり、第14図のルーチンにリターンす
る。この結果、所望のパターンナンバを示すパターンナ
ンバデータがサーチされたことになる。If the pattern numbers match, the determination result of step 292 becomes affirmative (Y), and the process returns to the routine of FIG. As a result, the pattern number data indicating the desired pattern number is searched.
ステップ292の判定結果が否定的(N)となるのは、上
記のようにパターンナンバが不一致であるか又はREFの
データがパターンナンバデータでない場合である。この
ような場合には、ステップ294に移り、REFの値とDTの値
とが等しく且つREFの上位2ビットが“11"か(リピート
区間始まり記号か)判定する。The determination result of step 292 is negative (N) when the pattern numbers do not match or the REF data is not the pattern number data as described above. In such a case, the process proceeds to step 294, and it is determined whether the value of REF is equal to the value of DT and the upper 2 bits of REF are "11" (whether it is a repeat section start symbol).
いま、REFのデータがリピート区間始まり記号データで
あるが、DTのデータがリピート区間始まり記号データで
ないものとすると、ステップ294の判定結果は否定的
(N)となり、ステップ296,298を介してステップ290に
戻る。そして、ステップ290以降の処理をDTにリピート
区間始まり記号がセットされるまで繰返す。Now, assuming that the REF data is the repeat section start symbol data, but the DT data is not the repeat section start symbol data, the determination result of step 294 is negative (N), and the procedure advances to step 290 via steps 296 and 298. Return. Then, the processing from step 290 is repeated until the repeat interval start symbol is set in DT.
DTにリピート区間始まり記号がセットされると、ステッ
プ294の判定結果が肯定的(Y)となり、第14図のルー
チンにリターンする。この結果、リピート区間始まり記
号がサーチされたことになる。When the repeat section start symbol is set in DT, the determination result of step 294 becomes affirmative (Y), and the process returns to the routine of FIG. As a result, the repeat section start symbol is searched.
ステップ294の判定結果が否定的(N)となるのは、上
記のようにREFのデータがリピート区間始まり記号デー
タであってDTのデータがそれ以外のデータである場合又
はREFのデータがリピート区間始まり記号でない場合で
ある。このような場合には、ステップ296に移り、REFの
上位2ビット及びDTの上位2ビットがいずれも“10"か
(リピート区間終り記号か)判定する。The determination result of step 294 is negative (N) when the REF data is the repeat section start symbol data and the DT data is other data as described above, or when the REF data is the repeat section. This is the case when it is not the beginning symbol. In such a case, the process proceeds to step 296, and it is determined whether the upper 2 bits of REF and the upper 2 bits of DT are both "10" (a repeat section end symbol).
いま、REFのデータがリピート区間終り記号データであ
るが、DTのデータがリピート区間終り記号データでない
ものとすると、ステップ296の判定結果は否定的(N)
となり、ステップ298を介してステップ290に戻る。そし
て、ステップ290以降の処理をDTにリピート区間終り記
号データがセットされるまで繰返す。Now, if the REF data is the repeat section end symbol data, but the DT data is not the repeat section end symbol data, the determination result of step 296 is negative (N).
Then, the process returns to step 290 via step 298. Then, the processing from step 290 is repeated until the repeat interval end symbol data is set in DT.
DTにリピート区間終り記号データがセットされると、ス
テップ296の判定結果が肯定的(Y)となり、第14図の
ルーチンにリターンする。この結果、リピート区間終り
記号がサーチされたことになる。When the repeat interval end symbol data is set in DT, the determination result of step 296 becomes affirmative (Y), and the process returns to the routine of FIG. As a result, the repeat section end symbol is searched.
ステップ296の判定結果が否定的(N)となるのは、上
記のようにREFのデータがリピート区間終り記号データ
であってDTのデータがそれ以外のデータである場合又は
REFのデータがリピート区間終り記号データでない場合
である。このような場合には、ステップ298に移る。The determination result of step 296 is negative (N) when the REF data is the repeat section end symbol data and the DT data is other data as described above, or
This is the case where the REF data is not the repeat interval end symbol data. In such a case, the process proceeds to step 298.
ステップ298では、DTの値がFFHか(ソングエンドコード
か)判定する。この判定結果が肯定的(Y)であったと
きは、演奏データ配列の末尾までサーチしてもREFの示
すサーチ対象が存在しなかったか又はサーチ開始時にDT
にFFHがセットされていたことになり、第14図のルーチ
ンにリターンする。In step 298, whether the value of DT is FF H (or song end code) it determines. If the result of this judgment is affirmative (Y), whether or not the search target indicated by REF does not exist even if the end of the performance data array is searched, or DT
Since FF H has been set to, the routine returns to the routine shown in FIG.
なお、ステップ298の判定結果が否定的(N)となるの
は、ステップ292〜296のいずれの判定結果も否定的
(N)であり且つDTにはFFH以外のデータがセットされ
ていた場合である。The determination result of step 298 is negative (N) when all the determination results of steps 292 to 296 are negative (N) and data other than FF H is set in DT. Is.
変形例 この発明は、上記実施例に限定されるものではなく、種
々の改変形態で実施可能なものである。例えば、次のよ
うな変更が可能である。Modifications The present invention is not limited to the above embodiments, but can be implemented in various modified forms. For example, the following changes are possible.
(1)パターンデータを書換えるようにしてもよい。(1) The pattern data may be rewritten.
(2)データフォーマットは、実施例のものに限らず、
公知のものを用いてもよい。(2) The data format is not limited to that of the embodiment,
You may use a well-known thing.
(3)リピート記号の処理は、実施例のものに限らず、
対をなすリピート記号をサーチして処理するようにして
もよい。(3) The processing of the repeat symbol is not limited to that of the embodiment,
Paired repeat symbols may be searched and processed.
(4)リピート区間終り記号のサーチにおいては、繰返
回数を考慮してサーチを行なうようにしてもよい。(4) In the search of the repeat section end symbol, the search may be performed in consideration of the number of repetitions.
(5)サーチモードの処理は、書込モード又はプレイモ
ードのいずれか一方でのみ行なうようにしてもよい。(5) The processing in the search mode may be performed only in either the write mode or the play mode.
[発明の効果] 以上のように、この発明によれば、所望のリピート区間
を指示する記号情報を指定してそれに一致する記号情報
をメモリ中からサーチするようにしたので、所望の演奏
情報に関して簡単且つ迅速に情報修正又は演奏開始を行
なえる効果が得られるものである。その上、リピート区
間を指示する記号情報は、一種の演奏情報であるため、
演奏情報以外にサーチ専用の情報を記憶するのに比べて
メモリの利用効率が向上すると共に処理が簡単となる効
果もある。[Effects of the Invention] As described above, according to the present invention, the symbol information designating a desired repeat section is designated and the symbol information matching the symbol information is searched from the memory. It is possible to obtain the effect that the information can be corrected or the performance can be started easily and quickly. Moreover, since the symbol information that indicates the repeat section is a kind of performance information,
Compared with storing the information dedicated to the search in addition to the performance information, the memory utilization efficiency is improved and the processing is simplified.
第1図は、この発明の一実施例による自動演奏装置の構
成を示すブロック図、 第2図は、ソングメモリ18のデータフォーマットを示す
図、 第3図は、パターンメモリ20のデータフォーマットを示
す図、 第4図は、演奏進行の一例を示す図、 第5図は、第4図の演奏進行に伴うレジスタJPNO及びJP
CNTの内容変化を示す図、 第6図は、第4図の演奏進行に伴うリピート階層の変化
を示す図、 第7図は、メインルーチンを示すフローチャート、 第8図は、書込モードのルーチンを示すフローチャー
ト、 第9図は、ソング読込みサブルーチンを示すフローチャ
ート、 第10図は、クロック割込みルーチンを示すフローチャー
ト、 第11図及び第12図は、それぞれINCオン及びDECオンのサ
ブルーチンを示すフローチャート、 第13図は、ポインタ移動のサブルーチンを示すフローチ
ャート、 第14図は、サーチモードのサブルーチンを示すフローチ
ャート、 第15図は、サーチ実行のサブルーチンを示すフローチャ
ートである。 10…データバス、12…中央処理装置、14…プログラムメ
モリ、16…レジスタ群、18…ソングメモリ、20…パター
ンメモリ、22…テンポクロック発生器、24…スイッチ
群、26…表示器、28…トーンジェネレータ、30…サウン
ドシステム。FIG. 1 is a block diagram showing the configuration of an automatic performance device according to an embodiment of the present invention, FIG. 2 is a diagram showing a data format of a song memory 18, and FIG. 3 is a data format of a pattern memory 20. 4 and 5 are diagrams showing an example of performance progress, and FIG. 5 is a register JPNO and JP associated with the performance progress of FIG.
FIG. 6 is a diagram showing changes in the contents of the CNT, FIG. 6 is a diagram showing changes in the repeat hierarchy as the performance of FIG. 4 progresses, FIG. 7 is a flowchart showing a main routine, and FIG. 8 is a write mode routine. 9 is a flowchart showing a song reading subroutine, FIG. 10 is a flowchart showing a clock interrupt routine, and FIGS. 11 and 12 are flowcharts showing subroutines of INC ON and DEC ON, respectively. 13 is a flowchart showing a pointer movement subroutine, FIG. 14 is a flowchart showing a search mode subroutine, and FIG. 15 is a flowchart showing a search execution subroutine. 10 ... Data bus, 12 ... Central processing unit, 14 ... Program memory, 16 ... Register group, 18 ... Song memory, 20 ... Pattern memory, 22 ... Tempo clock generator, 24 ... Switch group, 26 ... Display unit, 28 ... Tone generator, 30… Sound system.
Claims (2)
用の演奏情報を楽曲進行に従って前記記憶手段に書込む
書込手段と、 (c)前記記憶手段に書込まれた記号情報のうちサーチ
すべき記号情報を指定する情報指定手段と、 (d)前記記憶手段から演奏情報を読出して前記情報指
定手段で指定された記号情報と比較することにより該記
号情報と一致する記号情報をサーチするサーチ手段とを
備え、 前記書込手段では、前記サーチ手段でサーチされた記号
情報の記憶位置から演奏情報の書込みを行なうようにし
たことを特徴とする演奏情報入力装置。1. A storage means; (b) a writing means for writing performance information for automatic performance including symbol information indicating a repeat section in the storage means in accordance with the progress of a music piece; and (c) the storage. Information designating means for designating the symbol information to be searched among the symbol information written in the means, and (d) reading the performance information from the storage means and comparing it with the symbol information designated by the information designating means. Search means for searching the symbol information matching the symbol information, wherein the writing means writes the performance information from a storage position of the symbol information searched by the searching means. Performance information input device.
含む自動演奏用の演奏情報を記憶した記憶手段と、 (b)前記記憶手段に記憶された記号情報のうちサーチ
すべき記号情報を指定する情報指定手段と、 (c)前記記憶手段から演奏情報を読出して前記情報指
定手段で指定された記号情報と比較することにより該記
号情報と一致する記号情報をサーチするサーチ手段と、 (d)このサーチ手段でサーチされた記号情報の記憶位
置から前記記憶手段の演奏情報に従って自動演奏を行な
う演奏手段と を備えた演奏装置。2. A storage means for storing performance information for automatic performance including symbol information indicating a repeat section, and (b) symbol information to be searched out of the symbol information stored in the storage means. (C) search means for searching the symbol information that matches the symbol information by reading the performance information from the storage means and comparing it with the symbol information designated by the information designating means; d) a performance device which performs automatic performance from the storage position of the symbol information searched by the search device in accordance with the performance information of the storage device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1264743A JPH07109555B2 (en) | 1989-10-11 | 1989-10-11 | Performance information input device and performance device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1264743A JPH07109555B2 (en) | 1989-10-11 | 1989-10-11 | Performance information input device and performance device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03126087A JPH03126087A (en) | 1991-05-29 |
| JPH07109555B2 true JPH07109555B2 (en) | 1995-11-22 |
Family
ID=17407562
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1264743A Expired - Fee Related JPH07109555B2 (en) | 1989-10-11 | 1989-10-11 | Performance information input device and performance device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07109555B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06130946A (en) * | 1992-10-19 | 1994-05-13 | Kawai Musical Instr Mfg Co Ltd | Performance information search device |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS58220189A (en) * | 1982-06-16 | 1983-12-21 | ヤマハ株式会社 | Automatic performer |
| JPS63159898A (en) * | 1986-12-24 | 1988-07-02 | 株式会社東芝 | Music information reproducer |
| JP2745142B2 (en) * | 1989-02-20 | 1998-04-28 | ローランド株式会社 | Automatic performance device |
-
1989
- 1989-10-11 JP JP1264743A patent/JPH07109555B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH03126087A (en) | 1991-05-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5386081A (en) | Automatic performance device capable of successive performance of plural music pieces | |
| US4981066A (en) | Electronic musical instrument capable of editing chord performance style | |
| JPS6157640B2 (en) | ||
| JPH04274498A (en) | Automatic player | |
| US5009145A (en) | Automatic performance apparatus having automatic synchronizing function | |
| JPH0823746B2 (en) | Automatic tone generator | |
| JPH04234090A (en) | Electronic musical instrument | |
| JPH07109555B2 (en) | Performance information input device and performance device | |
| JPH02131292A (en) | Automatic playing device | |
| JPH028898A (en) | Automatic accompaniment device | |
| JP3555255B2 (en) | Automatic accompaniment device | |
| JP2625207B2 (en) | Automatic performance device | |
| JP2000221967A (en) | Setting control device for electronic musical instrument or the like | |
| JPH04274297A (en) | automatic performance device | |
| JP2705421B2 (en) | Automatic accompaniment device | |
| JPH06337674A (en) | Electronic musical instrument automatic performance device | |
| JP2843852B2 (en) | Sound module | |
| JP2513308B2 (en) | Electronic musical instrument | |
| JPH075875A (en) | Automatic player | |
| JP3116557B2 (en) | Electronic musical instrument tone control device | |
| JP2705695B2 (en) | Automatic performance device | |
| JPH04257895A (en) | Apparatus and method for code-step recording and automatic accompaniment system | |
| JPH03198094A (en) | Automatic accompaniment pattern data generator | |
| JP2638262B2 (en) | Automatic performance device | |
| JP3263966B2 (en) | Electronic musical instrument with automatic performance function |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |