JP2606501B2 - Electronic musical instrument with automatic performance function - Google Patents

Electronic musical instrument with automatic performance function

Info

Publication number
JP2606501B2
JP2606501B2 JP3267577A JP26757791A JP2606501B2 JP 2606501 B2 JP2606501 B2 JP 2606501B2 JP 3267577 A JP3267577 A JP 3267577A JP 26757791 A JP26757791 A JP 26757791A JP 2606501 B2 JP2606501 B2 JP 2606501B2
Authority
JP
Japan
Prior art keywords
information
performance
metronome
time
mode
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
JP3267577A
Other languages
Japanese (ja)
Other versions
JPH05108067A (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 JP3267577A priority Critical patent/JP2606501B2/en
Publication of JPH05108067A publication Critical patent/JPH05108067A/en
Application granted granted Critical
Publication of JP2606501B2 publication Critical patent/JP2606501B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、メトロノームやオート
リズムなどによって演奏の歩調をとることができる機能
を備えるとともに演奏情報を記録してこの演奏情報に基
づいて自動演奏を行なえるようにした自動演奏機能付電
子楽器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic performance which has a function of taking a step of performance by metronome, auto rhythm and the like, and records performance information so that an automatic performance can be performed based on the performance information. The present invention relates to an electronic musical instrument with a performance function.

【0002】[0002]

【従来の技術】従来、この種の電子楽器において、例え
ばメトロノームやオートリズムの音を発生させ、これに
歩調に合わせて鍵盤等により演奏情報を入力し、この入
力した演奏情報を再生して自動演奏を行なうようにした
ものがある。また、演奏の熟練者においては演奏記録時
に、メトロノーム等に頼らずに自分の好みのテンポで演
奏することがあり、メトロノーム等をオフにして演奏情
報を記録することもできる。
2. Description of the Related Art Conventionally, in this type of electronic musical instrument, for example, a metronome or an auto rhythm sound is generated, and performance information is inputted by a keyboard or the like in accordance with the pace. Some are designed to perform. In addition, a skilled musician may perform at his / her favorite tempo without relying on the metronome or the like at the time of performance recording, and can record performance information with the metronome or the like turned off.

【0003】しかしながら、従来の電子楽器では、メト
ロノーム等を使用しないで演奏記録を行なった場合で
も、この演奏情報を再生して自動演奏を行なうときに、
メトロノームの発音可能なタイミングを自動演奏のタイ
ミングに合わせるようにしている。このため、再生中に
メトロノームをオンにする操作を行なっても、メトロノ
ーム音が直ぐに発音されないことがあり、操作感覚が不
自然であった。
However, in a conventional electronic musical instrument, even when a performance is recorded without using a metronome or the like, when performing the automatic performance by reproducing the performance information,
The metronome sounding timing is adjusted to the timing of automatic performance. For this reason, even if the operation of turning on the metronome during playback is performed, the metronome sound may not be immediately generated, and the operation feeling is unnatural.

【0004】[0004]

【発明が解決しようとする課題】本発明は、メトロノー
ム等を発音できるとともに演奏情報を記録して再生でき
る自動演奏機能付電子楽器において、演奏情報の再生時
におけるメトロノーム等のタイミングを演奏情報を記録
したときの状態に応じて適正なものとすることを課題と
する。
SUMMARY OF THE INVENTION The present invention relates to an electronic musical instrument with an automatic performance function capable of generating a metronome or the like and recording and reproducing performance information, and records the timing of the metronome and the like when the performance information is reproduced. It is an object to make it appropriate according to the state at the time of doing.

【0005】[0005]

【課題を解決するための手段】上記の課題を解決するた
めになした本発明の自動演奏機能付電子楽器は、演奏の
小節線と拍との拍子を示す拍子情報を出力する拍子情報
出力手段と、前記拍子情報を出力するモードと拍子情報
を出力しないモードとを選択する選択手段と、演奏情報
の入力により、該入力時に拍子情報を出力するモードま
たは拍子情報を出力しないモードの何れのモードが選択
されていたかを示すモード選択情報を、入力される演奏
情報とともに記録する演奏情報記録手段と、上記演奏情
報記録手段で記録された演奏情報を再生する再生手段
と、上記再生手段で演奏情報を再生するとともに拍子情
報を出力するとき、該演奏情報に対応する前記モード選
択情報が拍子情報を出力するモードが選択されていたこ
とを示すときは、拍子情報をその出力を待って演春情報
の出力タイミングに同期させて出力るとともに、該モー
ド撰択情報が拍子情報を出力しないモードが選択されて
いたことを示すときは、拍子情報を直ちに出力する制御
手段と、を備えることを特徴とする。
According to the present invention, there is provided an electronic musical instrument with an automatic performance function for solving the above-mentioned problems. The time information output means outputs time signature information indicating a time signature between a measure bar and a beat. Selecting means for selecting a mode in which the time information is output and a mode in which the time information is not output; and a mode in which the time information is output or the mode in which the time information is not output at the time of the input by the input of the performance information. Performance information recording means for recording mode selection information indicating whether or not the performance information has been selected, together with performance information to be inputted, reproduction means for reproducing the performance information recorded by the performance information recording means, and performance information by the reproduction means. Play and beat
Information is output, the mode selection corresponding to the performance information is output.
Selection mode is set to output time signature information.
To show the time signature information, wait for its output,
Output in synchronization with the output timing of
The mode where the selection information does not output the time signature is selected.
And control means for immediately outputting time signature information when indicating that there has been a touch .

【0006】[0006]

【作用】本発明の自動演奏機能付電子楽器において、メ
トロノームやオートリズムなど、演奏の小節線と拍との
拍子を示す拍子情報は拍子情報出力手段によって出力さ
れ、この拍子情報を出力するか出力しないかは選択手段
によって選択できるようになっている。また、鍵盤など
から入力される演奏情報は演奏情報記録手段により記録
され、この演奏情報の入力時に、拍子情報を出力するモ
ードまたは拍子情報を出力しないモードの何れかのモー
ドが選択されていたかを示すモード選択情報が演奏情報
とともに記録される。そして、制御手段は、再生手段で
演奏情報を再生するとともに拍子情報を出力するとき、
演奏情報に対応する前記モード選択情報が拍子情報を出
力するモードが選択されていたことを示すときは、拍子
情報をその出力を待って演奏情報の出力タイミングに同
期させて出力るとともに、該モード選択情報が拍子情報
を出力しないモードが選択されていたことを示すとき
は、拍子情報を直ちに出力する。
In the electronic musical instrument with an automatic performance function of the present invention, time information indicating a time signature between a measure bar line and a beat, such as a metronome and an auto rhythm, is output by time information output means, and the time information is output or output. Whether or not to do so can be selected by selection means. Performance information input from a keyboard or the like is recorded by performance information recording means. At the time of input of the performance information, it is determined whether a mode for outputting time signature information or a mode for not outputting time signature information has been selected. The indicated mode selection information is recorded together with the performance information. Then, the control means, when reproducing the performance information and outputting the time signature information by the reproducing means ,
The mode selection information corresponding to the performance information outputs time signature information.
To indicate that the force mode was selected,
Wait for the output to be synchronized with the performance information output timing.
Output, and the mode selection information is time signature information.
To indicate that the mode that does not output is selected
Outputs the time signature information immediately.

【0007】[0007]

【実施例】図1は本発明実施例の自動伴奏機能付電子楽
器のブロック図、図2は同電子楽器のパネル面の要部を
示す図であり、この電子楽器はCPU1によって制御さ
れ、鍵盤2とパネルスイッチ3の操作により、通常モー
ドによる鍵盤演奏と演奏情報の記録および自動演奏が行
なわれる。
FIG. 1 is a block diagram of an electronic musical instrument with an automatic accompaniment function according to an embodiment of the present invention, and FIG. 2 is a view showing a main part of a panel surface of the electronic musical instrument. By the operation of 2 and the panel switch 3, keyboard performance in the normal mode, recording of performance information, and automatic performance are performed.

【0008】押鍵検出回路2aは、鍵盤2におけるキー
イベントを検出し、キーイベントのあった鍵に対応する
キーコードやイニシャルタッチなどの押鍵情報を押鍵ま
たは離鍵を示すキーオン信号とともに発生する。また、
スイッチ検出回路3aは、パネルスイッチ3におけるス
イッチ操作のイベントを検出して検出されたスイッチに
対応する信号を発生し、これら押鍵検出回路2aとスイ
ッチ検出回路3aからの情報はバス4を介してCPU1
に取り込まれる。
A key press detection circuit 2a detects a key event on the keyboard 2 and generates key code information such as a key code and an initial touch corresponding to the key having the key event, together with a key-on signal indicating a key press or a key release. I do. Also,
The switch detection circuit 3a detects a switch operation event on the panel switch 3 and generates a signal corresponding to the detected switch. The information from the key press detection circuit 2a and the switch detection circuit 3a is transmitted via the bus 4. CPU1
It is taken in.

【0009】パネルスイッチ3は、図2に示したよう
に、鍵盤2における演奏情報を記録する記録モードとこ
の記録モードを解除するためのRECスイッチ31、こ
の記録モードの状態を示すLED31a、記録した演奏
を再生する再生モードとこの再生モードを解除するため
のPLAYスイッチ32、この再生モードの状態を示す
LED32a、メトロノーム音を発生するモードとメト
ロノーム音を発生しないモードを切り換えるためのME
TRONOMEスイッチ(以後、METスイッチとい
う。)33、2拍子、4拍子などの拍子を設定するため
のBEATスイッチ34を備えている。
As shown in FIG. 2, the panel switch 3 includes a recording mode for recording performance information on the keyboard 2, a REC switch 31 for canceling the recording mode, an LED 31a indicating the state of the recording mode, and recording. A PLAY switch 32 for releasing the playback mode and a PLAY switch 32 for releasing the playback mode, an LED 32a indicating the state of the playback mode, and an ME for switching between a mode for generating a metronome sound and a mode for not generating a metronome sound.
A TRONOME switch (hereinafter referred to as a MET switch) 33 is provided with a BEAT switch 34 for setting beats such as two beats and four beats.

【0010】なお、この電子楽器の電源をオンにしたと
きは、メトロノームの拍子は4拍子に設定されるが、B
EATスイッチ34を一回押す毎に5拍子→6拍子→1
拍子→2拍子→3拍子→4拍子のように巡回的に更新さ
れ、次に示したように、小節頭の拍の位置では「ピ」と
いう発音を行い、その他の拍の位置では「ポ」という発
音を行なう。 1拍子: ピ ピ ピ ピ ピ ピ … 2拍子: ピ ポ ピ ポ ピ ポ … 3拍子: ピ ポ ポ ピ ポ ポ ピ ポ … 4拍子: ピ ポ ポ ポ ピ ポ ポ ポ ピ ポ … 5拍子: ピ ポ ポ ポ ポ ピ ポ ポ ポ ポ ピ ポ … 6拍子: ピ ポ ポ ポ ポ ポ ピ ポ ポ ポ ポ ポ ピ ポ …
When the power of the electronic musical instrument is turned on, the beat of the metronome is set to 4 beats.
Every time the EAT switch 34 is pressed once, 5 beats → 6 beats → 1
It is updated cyclically in the following order: time signature → 2 time → 3 time → 4 time. As shown below, the beat at the beginning of the bar is pronounced “pi”, and the position of other beats is “po”. Is pronounced. 1 beat: 2 beats: 2 beats: 3 beats: 3 beats: 4 beats: 4 beats: 4 beats: 4 beats: 5 beats: Pop-po-po-po-po-po-po-po-po ...

【0011】また、後述の制御動作で説明するように、
演奏情報を記録するときには、RECスイッチ31を押
して鍵盤2で演奏を開始すると自動的に記録される。こ
のとき、RECスイッチ31を押して鍵盤2による初キ
ーオンがあるまでは記録モードのシンクロスタート待機
状態となってLED31aが点滅し、演奏を始めるとL
ED31aは点灯状態になる。そして、演奏を終了して
RECスイッチ31を押すと記録モードが解除され、L
ED31aが消灯される。
Further, as described in the control operation described later,
When recording the performance information, the performance is automatically recorded when the REC switch 31 is pressed and the performance is started on the keyboard 2. At this time, until the REC switch 31 is depressed and the first key-on by the keyboard 2 is performed, a synchro start standby state of the recording mode is established, and the LED 31a blinks.
The ED 31a is turned on. When the REC switch 31 is pressed after finishing the performance, the recording mode is released, and
The ED 31a is turned off.

【0012】図1において、タイマ回路5はCPU1に
よって設定されるタイミングでテンポクロック割込み信
号を発生し、CPU1はこのタイマ回路5からのテンポ
クロック割込み信号を記録モードと再生モードのテンポ
クロックとして取り込み、割込み処理によって演奏情報
の記録と自動演奏の制御を行なう。なお、この実施例で
は、1拍(4分音符1個)をテンポクロック24個に対
応させている。
In FIG. 1, a timer circuit 5 generates a tempo clock interrupt signal at a timing set by the CPU 1, and the CPU 1 captures the tempo clock interrupt signal from the timer circuit 5 as a tempo clock in a recording mode and a reproducing mode. Recording of performance information and control of automatic performance are performed by interrupt processing. In this embodiment, one beat (one quarter note) corresponds to 24 tempo clocks.

【0013】音源回路6は、CPU1からバス4を介し
て入力される押鍵情報に基づいてディジタル楽音信号を
発生し、この音源回路6からのディジタル楽音信号はD
/Aコンバータ7でアナログ信号に変換され、サウンド
システム8により楽音が発生される。
The tone generator 6 generates a digital tone signal based on key press information input from the CPU 1 via the bus 4, and the digital tone signal from the tone generator 6 is
The signal is converted into an analog signal by the / A converter 7, and a tone is generated by the sound system 8.

【0014】ROM9には、図4〜図13にフローチャ
ートを示した制御プログラムが記憶されており、後述説
明するように、CPU1は、この制御プログラムに基づ
いてRAM10に設定した各種レジスタやフラグを使用
しながら制御を行なう。また、このとき記録モードで鍵
盤から入力される演奏情報はRAM10に記録し、再生
モードのときはRAM10に記録された演奏情報を読み
出して自動演奏を行なう。
The ROM 9 stores a control program whose flow chart is shown in FIGS. 4 to 13. As will be described later, the CPU 1 uses various registers and flags set in the RAM 10 based on the control program. While controlling. At this time, the performance information inputted from the keyboard in the recording mode is recorded in the RAM 10, and in the reproduction mode, the performance information recorded in the RAM 10 is read out to perform the automatic performance.

【0015】図3は実施例における演奏情報の記録フォ
ーマットを示す図であり、演奏情報は、ヘッダと演奏デ
ータで構成されている。ヘッダには、現在設定されてい
るテンポと拍子、メトロノームを発生しながら演奏の記
録を行なったか否かを示すメトロノームオン/オフフラ
グ、メトロノームを発生しながら演奏の記録を行なった
場合(メトロノームオン)の演奏開始時の小節頭からの
時間間隔を示すタイミングデータ(STIME)等のデ
ータが含まれている。
FIG. 3 is a diagram showing a recording format of performance information in the embodiment. The performance information includes a header and performance data. The header contains the currently set tempo and time signature, a metronome on / off flag that indicates whether or not the performance was recorded while generating the metronome, and the performance when the performance was recorded while generating the metronome (metronome on). Data such as timing data (STIME) indicating a time interval from the beginning of the measure at the start of the performance is included.

【0016】また、演奏データは、鍵盤2におけるキー
オン/キーオフのイベントに対応するイベントデータと
各イベントの時間間隔を示すデュレーションデータおよ
び演奏の終了を示すエンドデータで構成されており、イ
ベントデータは、キーオンイベントのときはキーオン、
ノートナンバおよびベロシティ(イニシャルタッチ情
報)の各情報が記録され、キーオフのときはキーオフお
よびノートナンバの各情報が記録される。また、エンド
データとしては、例えばノートナンバとして使用されな
いコードなど所定のデータが用いられる。
The performance data is composed of event data corresponding to key-on / key-off events on the keyboard 2, duration data indicating a time interval of each event, and end data indicating the end of the performance. Key-on at key-on event,
Each information of note number and velocity (initial touch information) is recorded, and at the time of key-off, each information of key-off and note number is recorded. In addition, predetermined data such as a code not used as a note number is used as the end data.

【0017】図4は制御プログラムのメインルーチン、
図5〜図13は各サブルーチンおよび割込み処理ルーチ
ンを示すフローチャートでり、各フローチャートに基づ
いて動作を説明する。
FIG. 4 shows a main routine of the control program.
5 to 13 are flowcharts showing subroutines and interrupt processing routines, and the operation will be described based on the flowcharts.

【0018】なお、以下の説明および各フローチャート
において、制御に用いられる各レジスタおよびフラグを
以下のラベルで表記し、各レジスタおよびフラグとそれ
らの内容は特に断らない限り同一のラベルで表す。 「REC」:記録モードの状態を示すフラグ 「WAIT」:シンクロスタート待機の状態を示すフラ
グ 「METON」:メトロノームのオン/オフを示すフラ
グ 「PLAY」:再生モードの状態を示すフラグ 「METREC」:メトロノームオンで記録したか否か
を示すフラグ 「STIME」:演奏開始のタイミングデータを格納す
るレジスタ 「TIME」:タイミングデータおよび各イベント間の
デュレーションデータのクロック数をカウントするレジ
スタ 「MTIME」:1拍分のクロックをカウントするレジ
スタ 「DUR」:デュレーションデータのレジスタ 「BEAT」:設定された拍子数を記憶するレジスタ 「BEATN」:拍子数をカウントするレジスタ
In the following description and each flowchart, each register and flag used for control are represented by the following labels, and each register and flag and their contents are represented by the same label unless otherwise specified. “REC”: Flag indicating recording mode state “WAIT”: Flag indicating standby state of synchro start “METON”: Flag indicating ON / OFF of metronome “PLAY”: Flag indicating reproduction mode state “METREC”: Flag indicating whether or not recording was performed by metronome ON "STIME": a register for storing timing data of performance start "TIME": a register for counting the number of clocks of timing data and duration data between events "MTIME": one beat "DUR": register for duration data "BEAT": register for storing the set number of beats "BEATN": register for counting the number of beats

【0019】先ず、電源が投入されると、CPU1は図
4のメインルーチンの処理を開始し、ステップS10
で、各フラグのリセットや各種レジスタのセットアップ
などのイニシャライズを行なう。次に、ステップS20
で図10および図11の押鍵処理を行い、ステップS3
0で図5のパネルスイッチ処理を行なう。そしてステッ
プS40でその他の処理を行なって、ステップS20以
降の処理を繰り返す。
First, when the power is turned on, the CPU 1 starts the processing of the main routine of FIG.
Then, initialization such as resetting of each flag and setup of various registers is performed. Next, step S20
To perform the key pressing process of FIGS. 10 and 11 and step S3
At 0, the panel switch processing of FIG. 5 is performed. Then, other processing is performed in step S40, and the processing from step S20 is repeated.

【0020】先ず、パネルスイッチ3についての処理か
ら説明する。図5のパネルスイッチ処理では、ステップ
S11でスイッチオンのイベントがあたか否かを判定
し、オンイベントがなければそのままメインルーチンに
復帰し、オンイベントがあれば、ステップS12でオン
イベントのあったスイッチに応じて、図6〜図9の、R
ECスイッチ処理、BEATスイッチ処理、METRO
NOMEスイッチ処理およびPLAYスイッチ処理をそ
れぞれ行なって、メインルーチンに復帰する。
First, the process for the panel switch 3 will be described. In the panel switch process of FIG. 5, it is determined whether or not a switch-on event has occurred in step S11. If there is no on-event, the process returns to the main routine. If there is an on-event, there is an on-event in step S12. Depending on the switch, R in FIGS.
EC switch processing, BEAT switch processing, METRO
After performing the name switch process and the PLAY switch process, the process returns to the main routine.

【0021】(RECスイッチ処理)RECスイッチ3
1が操作される毎に図6のRECスイッチ処理が開始さ
れ、ステップS21でフラグREC=1か否かを判定す
る。ここで、REC=1であれば記録モードでRECス
イッチ31が操作されたことから演奏終了と判定し、ス
テップS22でエンドデータをRAM10の演奏データ
に書き込み、ステップS23でフラグRECを“0”に
リセットするとともにLED31aを消灯して、メイン
ルーチンに復帰する。
(REC switch processing) REC switch 3
The REC switch process of FIG. 6 is started each time the user operates 1 and it is determined in step S21 whether or not the flag REC = 1. Here, if REC = 1, it is determined that the performance has ended because the REC switch 31 has been operated in the recording mode, the end data is written into the performance data in the RAM 10 in step S22, and the flag REC is set to "0" in step S23. At the same time as the reset, the LED 31a is turned off, and the process returns to the main routine.

【0022】ステップS21でREC=1でなければ
(REC=1)、ステップS24でフラグWAIT=1
であるか否かを判定し、WAIT=1であればシンクロ
スタート待機状態での解除指定と判定してステップS2
5でフラグWAITを“0”にリセットするとともにL
ED31aを消灯し、メインルーチンに復帰する。
If REC = 1 is not set in step S21 (REC = 1), flag WAIT = 1 is set in step S24.
Is determined, and if WAIT = 1, it is determined that the release is designated in the synchro start standby state, and step S2 is performed.
5 to reset the flag WAIT to "0" and
The ED 31a is turned off, and the process returns to the main routine.

【0023】また、ステップS24でWAIT=1でな
ければ(WAIT=0)、通常状態でのRECスイッチ
31の操作と判定し、ステップS26で、フラグWAI
Tを“1”にセットするとともにLED31aを点滅状
態にしてシンクロスタート待機状態にし、メインルーチ
ンに復帰する。
If it is not WAIT = 1 (WAIT = 0) in step S24, it is determined that the REC switch 31 is operated in the normal state, and in step S26, the flag WAI is set.
T is set to "1", the LED 31a is turned on and off, and a synchro start standby state is set, and the process returns to the main routine.

【0024】(BEATスイッチ処理)拍子は初期設定
では4拍子に設定されているが、BEATスイッチ34
が操作される毎に図7のBEATスイッチ処理が開始さ
れ、ステップS31でBEAT=6であるか否かを判定
し、BEAT=6であればBEATを“1”にセットし
てメインルーチンに復帰する。
(BEAT switch processing) Although the time signature is initially set to 4 beats, the BEAT switch 34
Every time is operated, the BEAT switch processing of FIG. 7 is started, and it is determined whether or not BEAT = 6 in step S31. If BEAT = 6, BEAT is set to "1" and the process returns to the main routine. I do.

【0025】また、ステップS31でBEAT=6でな
ければステップS33でBEATを“1”だけインクリ
メントしてメインルーチンに復帰する。これにより、B
EATの値は、“4”から、“5”、“6”、“1”、
“2”、“3”、“4”と巡回的に更新され、前記のよ
うに拍子が更新される。
If BEAT is not equal to 6 in step S31, BEAT is incremented by "1" in step S33, and the process returns to the main routine. Thereby, B
The value of EAT is changed from “4” to “5”, “6”, “1”,
"2", "3", "4" are updated cyclically, and the time signature is updated as described above.

【0026】(METRONOMEスイッチ処理)ME
Tスイッチ33が操作されると図8のMETRONOM
Eスイッチ処理が開始され、ステップS41でフラグM
ETON=0であるか否かを判定し、METON=0で
なければ(METON=1)、メトロノームの発音状態
からの解除指定であると判定し、ステップS42でフラ
グMETONを“0”にリセットしてメインルーチンに
復帰する。
(METRONOME switch processing) ME
When the T switch 33 is operated, the METRONOM of FIG.
The E switch processing is started, and in step S41, the flag M
It is determined whether ETON = 0 or not. If METON = 0 (METON = 1), it is determined that the metronome is to be released from the sound emitting state, and the flag METON is reset to “0” in step S42. To return to the main routine.

【0027】また、ステップS41でMETON=0で
あれば、ステップS43でPLAY=1であるか否かを
判定し、PLAY=1でなければ(PLAY=0)、ス
テップS44で、設定されている拍子の数BEATをレ
ジスタBEATNにセットするとともにレジスタMTI
MEの値を“23”にセットする。そして、ステップS
46でフラグMETONを“1”にセットしてメインル
ーチンに復帰する。
If METON = 0 in step S41, it is determined in step S43 whether PLAY = 1 or not. If PLAY = 1 is not set (PLAY = 0), the setting is made in step S44. The number of beats BEAT is set in the register BEATN and the register MTI is set.
The value of ME is set to "23". And step S
At 46, the flag METON is set to "1" and the process returns to the main routine.

【0028】また、ステップS43でPLAY=1であ
れば、ステップS45でフラグMETREC=1である
か否かを判定し、METREC=1でなければ(MET
REC=0)、ステップS44以降の処理を行い、ME
TREC=1であればステップS46でフラグMETO
Nを“1”にセットしてメインルーチンに復帰する。な
お、フラグMETRECは、後述説明するように、再生
モードになったときに予めRAM10の演奏情報のヘッ
ダから読み出されたものである。
If PLAY = 1 in step S43, it is determined in step S45 whether or not the flag METREC = 1.
REC = 0), the processing after step S44 is performed, and ME
If TREC = 1, the flag METO is set in step S46.
N is set to "1" and the process returns to the main routine. The flag METREC is read in advance from the header of the performance information in the RAM 10 when the reproduction mode is set, as described later.

【0029】以上の処理により、フラグMETON=1
となるとメトロノームの発音状態となり、METON=
0となるとメトロノームの消音状態となる。また、再生
モードでない場合(PLAY=0)と、再生モードでも
メトロノームオンとして記録されていない場合(MET
REC=0)は、設定されている拍子の数BEATがB
EATNにセットされ、かつ、MTIMEの値が“2
3”になることにより、後述説明するように、タイマイ
ンタラプト処理が起動されたときに直ぐにメトロノーム
音が発生するようになる。
By the above processing, the flag METON = 1
Then, the metronome sounds and METON =
When it reaches 0, the metronome is in the mute state. Also, when the playback mode is not the playback mode (PLAY = 0), and when the playback mode is not recorded as metronome on (MET
REC = 0) means that the set beat number BEAT is B
EATN is set and the value of MTIME is “2”.
By setting to 3 ", as described later, a metronome sound is immediately generated when the timer interrupt processing is started.

【0030】(PLAYスイッチ処理)PLAYスイッ
チ32が操作されると図9のPLAYスイッチ処理が開
始され、ステップS51でフラグPLAY=0であるか
否かの判定が行なわれ、PLAY=0でなければ(PL
AY=1)再生モードの解除指定であると判定して、ス
テップS52でフラグPLAYを“0”にリセットする
とともにLED32aを消灯してメインルーチンに復帰
する。
(PLAY switch processing) When the PLAY switch 32 is operated, the PLAY switch processing shown in FIG. 9 is started, and in step S51, it is determined whether or not the flag PLAY = 0, and if not, the PLAY = 0. (PL
AY = 1) It is determined that the reproduction mode is to be canceled, and the flag PLAY is reset to "0" in step S52, the LED 32a is turned off, and the process returns to the main routine.

【0031】また、ステップS51でPLAY=0であ
れば再生モードの指定であると判定して、ステップS5
3でフラグPLAYを“1”にセットするとともにLE
D32aを点灯し、ステップS54でRAM10から演
奏情報のヘッダを読み出してフラグMETRECやタイ
ミングデータSTIME等の各種の値を設定する。
If PLAY = 0 in step S51, it is determined that the reproduction mode is designated, and step S5 is executed.
3 sets the flag PLAY to "1" and sets LE
D32a is turned on, and the header of the performance information is read from the RAM 10 in step S54, and various values such as the flag METREC and the timing data STIME are set.

【0032】次に、ステップS55でフラグMETRE
C=1であるか否かを判定し、METREC=1でなけ
れば(METREC=0)、ステップS504でレジス
タDURに“0”をセットしてステップS505でレジ
スタTIMEに“0”をセットしてメインルーチンに復
帰する。
Next, in step S55, the flag METRE is set.
It is determined whether or not C = 1, and if METREC = 1 is not satisfied (METREC = 0), “0” is set in the register DUR in step S504, and “0” is set in the register TIME in step S505. Return to the main routine.

【0033】またステップS55でMETREC=1で
あれば、ステップS56でフラグMETON=1である
か否かを判定し、METON=1でなければ、ステップ
S57で、STIMEを24で除算したときの整数部の
値をレジスタBEATNにセットし、ステップS58
で、STIMEを24で除算したときの余りをレジスタ
MTIMEにセットする。
If METREC = 1 in step S55, it is determined in step S56 whether or not the flag METON = 1. If not, an integer obtained by dividing STIME by 24 is determined in step S57. Is set in the register BEATN, and in step S58
Then, the remainder obtained by dividing STIME by 24 is set in the register MTIME.

【0034】ステップS58の処理が終わると、ステッ
プS59でレジスタDURに“0”をセットし、ステッ
プS505でレジスタTIMEに“0”をセットしてメ
インルーチンに復帰する。
When the process in step S58 is completed, "0" is set in the register DUR in step S59, "0" is set in the register TIME in step S505, and the process returns to the main routine.

【0035】一方、ステップS56でMETON=1で
あれば、ステップS501で次式(1)の値をレジスタ
DURにセットしてステップS502の判定を行なう。 STIME−(MTIME+BEATN×24) …(1) ここで、上式(1)について説明する。図14はテンポ
クロックにより内部カウントしている拍の位置と演奏情
報の記録開始位置との関係を説明する図であり、例えば
図示のように4拍子で記録開始が3拍目と4拍目の間で
あったとすると、タイミングデータSTIMEは小節頭
から2拍分のクロック(24×2)と記録開始時のレジ
スタMTIMEの値(図のMTIMEa)の加算値とな
る。
On the other hand, if METON = 1 in step S56, the value of the following equation (1) is set in the register DUR in step S501, and the determination in step S502 is performed. STIME− (MTIME + BEATN × 24) (1) Here, the above equation (1) will be described. FIG. 14 is a diagram for explaining the relationship between the position of the beat internally counted by the tempo clock and the recording start position of the performance information. For example, as shown in FIG. If the time is between, the timing data STIME is the sum of the clock (24 × 2) for two beats from the beginning of the measure and the value of the register MTIME at the start of recording (MTIMEa in the figure).

【0036】いま、PLAYスイッチ32を操作して再
生モードになったときが1小節を基準にして記録開始よ
り前に相当するタイミングであったとすると、前式
(1)におけるMTIMEは、図のMTIMEbとな
る。
Assuming that the operation of the PLAY switch 32 to enter the reproduction mode is a timing corresponding to one bar before the start of recording, the MTIME in the above equation (1) becomes MTIMEb in the figure. Becomes

【0037】そこで、前式(1)により、現在再生モー
ドになったときから記録開始時点までのクロック数の差
分をDURとして求め、メトロノームオンで再生すると
きの演奏開始のタイミングをこのDURの値に応じて制
御する。
Therefore, the difference between the number of clocks from the time when the current reproduction mode is set to the start of recording is calculated as DUR according to the above equation (1), and the timing of the performance start when reproducing with the metronome on is determined by the value of this DUR. Control according to.

【0038】図9のステップS502では、DURが負
の値であるか否かを判定し、負の値でなければステップ
S505でレジスタTIMEに“0”をセットしてメイ
ンルーチンに復帰し、負の値であれば、ステップS50
3でDURに1小節分のクロック数(24×BEAT、
4拍子の場合は“96”)を加算してレジスタDURに
格納し、ステップS505でレジスタTIMEに“0”
をセットしてメインルーチンに復帰する。
In step S502 of FIG. 9, it is determined whether or not DUR is a negative value. If not, the value of the register TIME is set to "0" in step S505 to return to the main routine. If the value is
The clock number for one measure (24 × BEAT,
In the case of quadruple, "96") is added and stored in the register DUR, and "0" is added to the register TIME in step S505.
And returns to the main routine.

【0039】上記のステップS502およびステップS
503の処理は、PLAYスイッチ32を操作したタイ
ミングが1小節内で記録開始時点より後になった場合の
処理であり、この場合には次の小節の記憶開始時点から
演奏が始まる。なお、このような演奏開始は、メトロノ
ームオンで再生モードに入った場合である。
The above steps S502 and S
The process 503 is a process when the PLAY switch 32 is operated after the start of recording within one bar. In this case, the performance starts from the start of storage of the next bar. Such performance starts when the reproduction mode is entered with the metronome on.

【0040】以上の処理により、PLAY=1となると
再生モードになり、PLAY=0となると通常モードに
なる。また、再生モードになったときに、メトロノーム
オフで記録されている場合(METREC=0)とメト
ロノームオンで記録されていても再生時にメトロノーム
オフであった場合(METREC=1,METON=
0)は、常にDUR=0とされ、かつ、TIME=0に
セットされることから、後述のタイマインタラプト処理
が起動されたときに直ぐに演奏が開始されるようにな
る。
With the above processing, the reproduction mode is set when PLAY = 1, and the normal mode is set when PLAY = 0. Further, when the playback mode is set, the recording is performed with the metronome off (METREC = 0), and the recording is performed with the metronome off even if the recording is performed with the metronome on (METREC = 1, METON = 1).
0) is always set to DUR = 0 and TIME = 0, so that the performance starts immediately when a timer interrupt process described later is started.

【0041】さらに、メトロノームオンで記録されてい
て再生時にメトロノームオンであった場合(METRE
C=1,METON=1)は、上式(1)および図14
について説明したように、記録時のメトロノームに合っ
たタイミングで演奏が開始されるようになる。
Further, when the recording is performed with the metronome on and the metronome is on during reproduction (METRE
C = 1, METON = 1) is obtained by using the above equation (1) and FIG.
As described above, the performance starts at a timing that matches the metronome at the time of recording.

【0042】図10の押鍵処理において、ステップS6
1でキーオンイベントの有無を判定し、キーオンイベン
トがなければ図11のステップS604に進み、キーオ
ンイベントがあればステップS62において発音処理を
行なってステップS63でフラグREC=0であるか否
かを判定する。
In the key pressing process of FIG. 10, step S6
If there is no key-on event, the flow advances to step S604 in FIG. 11. If there is a key-on event, sound generation processing is performed in step S62, and whether or not the flag REC = 0 is determined in step S63. I do.

【0043】ステップS63で、REC=0でなければ
(REC=1)、演奏情報の記録中の処理としてステッ
プS601に進み、REC=0であればステップS64
でフラグWAIT=1であるか否かを判定し、WAIT
=1でなければ(WAIT=0)、通常モードであると
判定して図11のステップS604に進む。
In step S63, if REC is not 0 (REC = 1), the process proceeds to step S601 as a process during recording of performance information, and if REC = 0, step S64.
To determine whether or not the flag WAIT = 1,
If = 1 (WAIT = 0), it is determined that the mode is the normal mode, and the process proceeds to step S604 in FIG.

【0044】ステップS64でWAIT=1であればシ
ンクロスタート待機中のキーオンであるので記録開始と
判定し、ステップS65でWAITを“0”にリセッ
ト、RECを“1”にセットしてLED31aを点灯状
態にし、ステップS66で、現在のテンポ、拍子(BE
AT)等を演奏情報のヘッダに書き込む。
If WAIT = 1 in step S64, it is determined that the recording is to be started because the key is in standby for a synchro start, and in step S65, WAIT is reset to "0", REC is set to "1", and the LED 31a is turned on. State, and in step S66, the current tempo and beat (BE)
AT) is written in the header of the performance information.

【0045】次に、ステップS67でフラグMETON
=1であるかいなかを判定し、METON=1でなけれ
ば、ヘッダにメトロノームオフのフラグ(METRE
C)とタイミングデータSTIME=0を書き込んでス
テップS602に進む。また、METON=1であれ
ば、ヘッダにメトロノームオンのフラグ(METRE
C)とタイミングデータSTIME=TIMEを書き込
む。なお、TIMEの値は、後述のタイマインタラプト
処理において、シンクロスタート待機状態のときに小節
線になったときに常に“0”にリセットされ、上記の最
初のキーオンがあるまでの小節内のクロック数をカウン
トしたものとなっている。
Next, at step S67, the flag METON is set.
= 1, and if METON = 1 is not set, a metronome-off flag (METRE
C) and the timing data STIME = 0 are written, and the process proceeds to step S602. If METON = 1, the header of the metronome on (METRE
C) and the timing data STIME = TIME are written. Note that the value of TIME is always reset to “0” when a bar line is reached in the synchronization start standby state in a timer interrupt process described later, and the number of clocks in the bar until the first key-on is performed. Has been counted.

【0046】上記のステップS68またはステップS6
9の処理が終了するとステップS602でキーオンのイ
ベントデータとして、キーオン、ノートナンバおよびベ
ロシティを演奏データに書き込み、ステップS603で
TIMEを“0”にリセットして図11のステップS6
04に進む。
The above step S68 or step S6
When the process of No. 9 is completed, key-on, note number and velocity are written in the performance data as key-on event data in step S602, and TIME is reset to "0" in step S603, and the process proceeds to step S6 in FIG.
Go to 04.

【0047】ここで、ステップS65の処理によりRE
Cが“1”にセットされることとステップS63の判定
処理を行なうことにより、ステップS65以降は最初の
キーオンに対して処理され、かつ、この最初のキーオン
によりステップS603でTIMEが“0”にリセット
される。
Here, the RE in step S65
By setting C to "1" and performing the determination processing in step S63, the processing from step S65 is performed for the first key-on, and the TIME is set to "0" in step S603 by this first key-on. Reset.

【0048】したがって、演奏情報の記録開始後はステ
ップS601の処理が行なわれ、このステップS601
において、TIMEの値は前のキーイベントからの時間
間隔となり、このTIMEの値がデュレーションデータ
として演奏データに書き込まれる。そして、ステップS
602でそのときのイベントデータが書き込まれ、ステ
ップS603以降の図11のステップS604に進む。
Therefore, after the start of the recording of the performance information, the process of step S601 is performed.
In, the value of TIME is a time interval from the previous key event, and the value of TIME is written to the performance data as duration data. And step S
At 602, the event data at that time is written, and the process proceeds to step S604 in FIG. 11 after step S603.

【0049】図11のステップS604では、キーオフ
イベントの有無を判定し、キーオフイベントがなければ
メインルーチンに復帰し、キーオフイベントがあればス
テップS605で消音処理を行なってステップS606
でREC=1であるか否かを判定する。
In step S604 of FIG. 11, it is determined whether or not there is a key-off event. If there is no key-off event, the process returns to the main routine. If there is a key-off event, mute processing is performed in step S605 and step S606 is performed.
It is determined whether or not REC = 1.

【0050】ステップS606でREC=1でなければ
そのままメインルーチンに復帰し、REC=1であれば
記録状態と判定し、ステップS607でTIMEの値を
デュレーションデータとして、また、ステップS609
でキーオフ、ノートナンバをイベントデータとしてそれ
ぞれ演奏データに書き込み、ステップS610でTIM
Eを“0”にリセットしてメインルーチンに復帰する。
If REC = 1 is not set in step S606, the process returns to the main routine. If REC = 1, the recording state is determined. In step S607, the value of TIME is set as the duration data.
To write the key-off and note number to the performance data as event data, respectively.
E is reset to "0" and the process returns to the main routine.

【0051】一方、タイマ回路5は設定されているテン
ポに応じた所定の間隔でタイミングクロック割込み信号
を出力し、図12および図13のタイマインタラプト処
理が行なわれる。なお、このテンポは初期設定値が決め
られており、図示しない操作子の操作により自由に設定
できるようになっている。
On the other hand, the timer circuit 5 outputs a timing clock interrupt signal at predetermined intervals according to the set tempo, and the timer interrupt processing of FIGS. 12 and 13 is performed. The tempo is set to an initial set value, and can be freely set by operating an operation member (not shown).

【0052】図12のタイマインタラプト処理が開始さ
れると、ステップS71でMTIME=23であるか否
かを判定し、MTIME=23でなければステップS7
03でMTIMEを“1”だけインクリメントして図1
3のステップS704に進み、MTIME=23であれ
ば拍のタイミングであると判定し、ステップS72でB
EATN=BEATであるか否かを判定する。
When the timer interrupt processing of FIG. 12 is started, it is determined in step S71 whether or not MTIME = 23.
03, the MTIME is incremented by “1” and FIG.
In step S704 of M3, if MTIME = 23, it is determined that it is a beat timing, and in step S72, B is determined.
It is determined whether or not EATN = BEAT.

【0053】ステップS72で、BEATN=BEAT
であればすなわち小節線のタイミングであれば、ステッ
プS73でフラグMETON=1であるか否かを判定
し、METON=1であればメトロノームオンであるの
でステップS74で「ピ」のメトロノーム音の発音を指
示し、ステップS75でBEATNを“0”にリセット
する。また、METON=1であればメトロノームオフ
であるので発音指示をしないでステップS75でBEA
TNを“0”にリセットする。
In step S72, BEATN = BEAT
If it is the bar timing, it is determined in step S73 whether or not the flag METON = 1. If METON = 1, the metronome is on, so the metronome sound of "P" is generated in step S74. And BEATN is reset to "0" in step S75. If METON = 1, the metronome is off, so no beacon is issued and BEA in step S75 is not executed.
TN is reset to “0”.

【0054】次に、ステップS76で「PLAY=0か
つREC=0」の条件が満足されるか否かを判定し、こ
の条件が満足されなければステップS703でMTIM
Eを“0”にリセットして図13のステップS704に
進み、条件が満足されれば、ステップS77でTIME
を“0”にリセットするとともにステップS703でM
TIMEを“0”にリセットして図13のステップS7
04に進む。なお、このステップS702の処理によ
り、MTIMEは1拍についてのクロックをカウントす
る。
Next, at step S76, it is determined whether or not the condition of "PLAY = 0 and REC = 0" is satisfied. If this condition is not satisfied, at step S703 MTIM is determined.
E is reset to "0", and the flow advances to step S704 in FIG. 13. If the condition is satisfied, TIME is determined in step S77.
Is reset to “0”, and M is set in step S703.
TIME is reset to "0" and step S7 in FIG.
Go to 04. By the processing in step S702, the MTIME counts the clock for one beat.

【0055】なお、この実施例におけるレジスタTIM
Eは、演奏情報の記録開始後と再生モードのとき以外
は、小節単位のクロックカウンタとして使用され、記録
開始後と再生モードのときは各イベント間のデュレーシ
ョンをカウントするカウンタとして使用されている。こ
のため、ステップS76の判定を行い、小節単位のクロ
ックカウンタとして使用するときだけ小節線のタイミン
グで“0”にリセットされるようにしている。
Note that the register TIM in this embodiment is
E is used as a clock counter in measure units after the start of recording of performance information and in the playback mode, and is used as a counter for counting the duration between events after the start of recording and in the playback mode. For this reason, the determination in step S76 is made so that it is reset to "0" at the bar line timing only when the clock counter is used as a bar counter.

【0056】したがって、前記図10の押鍵処理におけ
るステップS69について説明したように、最初のキー
オンがあったときのTIMEの値を、演奏開始時の小節
線からのタイミングデータとして用いることができる。
Therefore, as described in step S69 in the key pressing process of FIG. 10, the value of TIME at the time of the first key-on can be used as timing data from the bar at the start of the performance.

【0057】一方、図12のステップS72において、
BEATN=BEATでなかた場合すなわち小節線のタ
イミングではなくて拍のタイミングであった場合は、ス
テップS78でフラグMETON=1であるか否かを判
定し、METON=1であればメトロノームオンである
のでステップS79で「ポ」のメトロノーム音の発音を
指示してステップS701の処理を行ない、METON
=1であればメトロノームオフであるので発音指示をし
ないでステップS701の処理を行なう。
On the other hand, in step S72 of FIG.
If BEATN = BEAT is not satisfied, that is, if it is not the bar timing but the beat timing, it is determined in step S78 whether or not the flag METON = 1. In step S79, an instruction to generate a metronome sound of "Po" is issued, and the processing in step S701 is performed.
If = 1, the metronome is off, and the process of step S701 is performed without issuing a sounding instruction.

【0058】ステップS701では、BEATNを
“1”だけインクリメントして拍をカウントし、ステッ
プS702でMTIMEを“0”にリセットして図13
のステップS704に進む。
In step S701, BEATN is incremented by "1" and the number of beats is counted. In step S702, MTIME is reset to "0" and FIG.
Go to step S704.

【0059】図13のステップS704では、フラグP
LAY=1であるか否かを判定し、PLAY=1でなけ
ればステップS705でTIMEを“1”だけインクリ
メントしてメインルーチンに復帰し、PLAY=1であ
れば再生モードであるのでステップS706でTIME
=DURであるか否かを判定し、TIME=DURでな
ければステップS705に進み、TIME=DURであ
ればステップS707に進む。
In step S704 of FIG.
It is determined whether or not LAY = 1. If PLAY = 1 is not set, TIME is incremented by "1" in step S705, and the process returns to the main routine. If PLAY = 1, the reproduction mode is set, so that the reproduction mode is set. TIME
= DUR, the process proceeds to step S705 unless TIME = DUR, and proceeds to step S707 if TIME = DUR.

【0060】ここで、前記図9のPLAYスイッチ処理
で説明したように、PLAYスイッチ32を操作して再
生モードに入ったときにDURの値は“0”またはPL
AYスイッチ32を操作した時点から録音開始時点まで
の時間間隔の値に設定されている。また、TIMEの値
は、図9のステップS505によりリセットされてい
る。
Here, as described in the PLAY switch processing of FIG. 9, when the PLAY switch 32 is operated to enter the reproduction mode, the value of DUR becomes "0" or PL.
It is set to the value of the time interval from the time when the AY switch 32 is operated to the time when the recording is started. Further, the value of TIME has been reset in step S505 in FIG.

【0061】したがって、ステップS706において、
DURの値が“0”のときはステップS707以降の処
理により直ぐに自動演奏の発音が行なわれ、DURの値
が“0”でないときは、ステップS705でTIMEを
更新しながら録音開始時点になってステップS707以
降の処理により自動演奏の発音が開始される。
Therefore, in step S706,
If the value of DUR is "0", the sound of the automatic performance is immediately generated by the processing after step S707. If the value of DUR is not "0", the recording start time is reached while updating the TIME in step S705. The sounding of the automatic performance is started by the processing after step S707.

【0062】ステップS707ではRAM10から演奏
データを読み出し、ステップS708で読み出したデー
タがエンドデータか否かを判定する。エンドデータでな
ければステップS709でイベントデータを音源回路6
に出力し、ステップS710で演奏データの次のデュレ
ーションデータを読み出してレジスタDURに格納し、
ステップS711でTIMEを“0”にリセットしてメ
インルーチンに復帰する。
In step S707, performance data is read from the RAM 10, and it is determined whether the data read in step S708 is end data. If it is not the end data, the event data is sent to the tone generator 6 in step S709.
And the next duration data of the performance data is read out in step S710 and stored in the register DUR.
In step S711, TIME is reset to "0" and the process returns to the main routine.

【0063】なお、このステップS711の処理によ
り、レジスタTIMEは演奏データにおけるイベント間
の時間間隔をカウントするようになり、ステップS71
0でのDURの格納とステップS706の判定により、
以後のイベントデータが記録時と同じタイミングで出力
されて自動演奏が行なわれる。
By the process of step S711, the register TIME counts the time interval between events in the performance data, and the process proceeds to step S71.
By storing the DUR at 0 and determining in step S706,
Subsequent event data is output at the same timing as during recording, and an automatic performance is performed.

【0064】また、ステップS708でエンドデータで
あれば、ステップS712でPLAYを“0”にリセッ
トするとともにLED32aを消灯して再生モードを解
除しメインルーチンに復帰する。
If the data is end data in step S708, the PLAY is reset to "0" in step S712, the LED 32a is turned off, the reproduction mode is released, and the process returns to the main routine.

【0065】以上の各処理により、メトロノームのオン
/オフの選択と、このメトロノームの選択状態に応じた
演奏情報の記録と再生が行なわれ、例えば図15〜図1
9に示したような動作が実現される。
By the above-described processing, selection of ON / OFF of the metronome and recording and reproduction of performance information according to the selected state of the metronome are performed.
The operation as shown in FIG. 9 is realized.

【0066】図15はメトロノームオフの状態で演奏情
報を記録する場合の動作の一例を説明する図であり、R
ECスイッチ31を操作するとシンクロスタート待機状
態になり、鍵盤2の操作により演奏を開始すると演奏情
報が記録される。そして演奏を終了し、RECスイッチ
31を操作するとエンドデータが記録されて動作が終了
する。
FIG. 15 is a diagram for explaining an example of the operation when recording performance information with the metronome off.
When the EC switch 31 is operated, a synchro start standby state is set. When a performance is started by operating the keyboard 2, performance information is recorded. When the performance ends and the REC switch 31 is operated, end data is recorded and the operation ends.

【0067】図16はメトロノームオンの状態で演奏情
報を記録する場合の動作の一例を説明する図であり、M
ETスイッチ33を操作するとレジスタTIMEに設定
される小節線のタイミングで直ぐに「ピ」のメトロノー
ム音が発音され、その後、拍の位置で「ポ」のメトロノ
ーム音が発音される。この状態でRECスイッチ31を
操作するとシンクロスタート待機状態になり、演奏を開
始するとこの演奏開始前の小節線のタイミングから最初
のキーオンまでのタイミングデータSTIMEが記録さ
れ、メトロノーム音を発音しながら演奏情報が記録され
る。そして演奏終了によるRECスイッチ31を操作す
るとエンドデータが記録される。
FIG. 16 is a diagram for explaining an example of the operation when recording performance information with the metronome on.
When the ET switch 33 is operated, the metronome sound "P" is immediately generated at the bar line timing set in the register TIME, and then the metronome sound "P" is generated at the beat position. When the REC switch 31 is operated in this state, the apparatus enters a synchro start standby state. When the performance is started, timing data STIME from the bar line timing before the performance is started to the first key-on is recorded, and the performance information is generated while generating the metronome sound. Is recorded. When the REC switch 31 is operated by the end of the performance, end data is recorded.

【0068】図17は図15で説明したようにメトロノ
ームオフの状態で記録した演奏情報をメトロノームオン
の状態で再生する場合の再生動作の一例を説明する図で
あり、METスイッチ33を操作すると直ぐに「ピ」の
メトロノーム音が発音され、これに続いて拍の位置で
「ポ」のメトロノーム音が発音される。この状態でPL
AYスイッチ32を操作すると、メトロノームとは関係
なくPLAYスイッチ32の操作により直ぐに自動演奏
が開始される。
FIG. 17 is a view for explaining an example of a reproducing operation in the case where the performance information recorded with the metronome off as described with reference to FIG. 15 is reproduced with the metronome on, and immediately after the MET switch 33 is operated. The metronome sound of "P" is pronounced, followed by the metronome sound of "Po" at the beat position. In this state, PL
When the AY switch 32 is operated, the automatic performance starts immediately by operating the PLAY switch 32 regardless of the metronome.

【0069】また、自動演奏中にMETスイッチ33を
操作してメトロノームをオフ状態にするとメトロノーム
音は消音され、さらにMETスイッチ33を操作すると
この操作した時点を小節線としてメトロノーム音が発音
される。そして、エンドデータの検出により自動的に演
奏が停止する。
When the metronome is turned off by operating the MET switch 33 during the automatic performance, the metronome sound is muted, and when the MET switch 33 is operated, the metronome sound is generated as a bar line at the time of the operation. Then, the performance stops automatically upon detection of the end data.

【0070】図18は、図16で説明したようにメトロ
ノームオンの状態で記録した演奏情報をメトロノームオ
ンの状態で再生する場合の再生動作の一例を説明する図
であり、METスイッチ33を操作すると直ぐにメトロ
ノーム音が発音される。この状態でPLAYスイッチ3
2を操作しても、この操作のタイミングが記録時の演奏
開始のタイミング一致しなかぎり直ぐには演奏が開
始されず、メトロノームが刻むタイミングを基準にし、
現在のタイミングが演奏開始時のタイミングになったと
きに自動演奏が開始される。
FIG. 18 is a view for explaining an example of a reproducing operation in the case where the performance information recorded with the metronome on as described with reference to FIG. 16 is reproduced with the metronome on, when the MET switch 33 is operated. A metronome sound is immediately emitted. In this state, the PLAY switch 3
Be engineered 2, the timing of the operation does not start playing immediately unless not match with the timing of the performance starts at the time of recording, based on the timing of the metronome ticks,
Automatic performance is started when the current timing becomes the timing at the start of performance.

【0071】図19は、上記同様にメトロノームオンの
状態で記録した演奏情報を最初メトロノームオフの状態
で再生した場合の再生動作の一例を説明する図であり、
PLAYスイッチ32を操作すると直ぐに自動演奏が開
始され、この演奏の途中でMETスイッチ33を操作す
ると、この操作時にはメトロノーム音が直ぐには発音さ
れず、演奏情報の記録時におけるメトロノームと同期し
てメトロノーム音が発音されるようになる。
FIG. 19 is a view for explaining an example of a reproducing operation in the case where the performance information recorded with the metronome on in the same manner as described above is first reproduced with the metronome off.
When the PLAY switch 32 is operated, the automatic performance is started immediately. When the MET switch 33 is operated during the performance, the metronome sound is not immediately generated at this operation, but is synchronized with the metronome at the time of recording the performance information. Will be pronounced.

【0072】このように、メトロノームのオン状態で記
録した演奏情報については、メトロノームのオン状態で
再生すると再生時のメトロノームに同期して記録時と同
じタイミングで自動演奏を開始することができる。な
お、この実施例ではメトロノームのオフ状態で再生した
ときには自動演奏を直ぐに開始することができる。した
がって、PLAYスイッチ32を操作したときに無音状
態が暫く続くようなこともない。
As described above, when the performance information recorded with the metronome turned on is played back with the metronome turned on, automatic performance can be started at the same timing as when recording, in synchronization with the metronome during playback. In this embodiment, when the reproduction is performed with the metronome turned off, the automatic performance can be started immediately. Therefore, when the PLAY switch 32 is operated, the silent state does not continue for a while.

【0073】また、メトロノームのオフ状態で記録した
演奏情報については、演奏の途中でMETスイッチ33
を操作すると、演奏に関係なく所望の位置でただちにメ
トロノーム音を発音させることができる。したがって、
演奏者の所望のタイミングでメトロノーム音を挿入する
ことができる。
The performance information recorded with the metronome in the off state is output during the performance by the MET switch 33.
By operating, the metronome sound can be immediately generated at a desired position regardless of the performance. Therefore,
A metronome sound can be inserted at a timing desired by the player.

【0074】なお、上記の実施例では、図10の押鍵処
理のステップS69において小節線からの時間間隔(T
IME)をタイミングデータとしてそのまま記録するよ
うにしているが、この時間間隔TIMEが、例えば4拍
子の場合95に近い値(93、94等)になるなど小節
線の前で小節線に近いタイミングとなった場合には、タ
イミングデータを“0”に丸め込むような処理を行なっ
てもよい。
In the above embodiment, the time interval (T) from the bar line is determined in step S69 of the key pressing process in FIG.
IME) is recorded as it is as timing data, but the time interval TIME becomes a value close to 95 (93, 94, etc.) in the case of four beats, for example. If this happens, a process of rounding the timing data to “0” may be performed.

【0075】また、メトロノームなどは、音を発音する
ものに限らず、LEDなどを点灯させるようなものでも
よい。
The metronome or the like is not limited to one that emits sound, and may be one that turns on an LED or the like.

【0076】上記の実施例ではメトロノームを用いた場
合について説明したが、オートリズムを発生する場合で
も同様に実施することができる。すなわち、オートリズ
ムの場合も小節線のタイミングを検出しながら発音が行
なわれるので、この小節線のタイミングから演奏情報の
最初のイベントデータまでの時間間隔をタイミングデー
タSTIMEとして設定すればよい。
In the above embodiment, the case where a metronome is used has been described. However, the present invention can be similarly applied to a case where an auto rhythm is generated. That is, even in the case of the auto rhythm, since the sound is generated while detecting the timing of the bar line, the time interval from the timing of the bar line to the first event data of the performance information may be set as the timing data STIME.

【0077】また、演奏情報とメトロノーム等の同期の
とりかたは、上記実施例に限らず他の方法でもよい。例
えば、演奏情報の記録時に、演奏データ中に小節線のデ
ータを記録しておき、再生時に、この小節線のデータに
基づいて演奏とメトロノーム等を同期させるようにして
もよい。
The method of synchronizing the performance information with the metronome is not limited to the above embodiment, but may be other methods. For example, barcode data may be recorded in the performance data when the performance information is recorded, and the performance and the metronome may be synchronized based on the barline data during playback.

【発明の効果】以上説明したように本発明によれば、メ
トロノームやオートリズムなどの拍子情報によって演奏
の歩調をとることができ、かつ、演奏情報を記録してこ
の演奏情報に基づいて自動演奏を行なえるようにした自
動演奏機能付電子楽器において、演奏情報の記録時に、
拍子情報を出力するモードまたは拍子情報を出力しない
モードの何れのモードが選択されていたかを示すフラグ
等のモード選択情報を、演奏情報とともに記録し、演奏
情報の再生時に拍子情報を出力するとき、モード選情報
に基づいて、記録時に拍子情報を出力するモードであっ
たときは、拍子情報をその出力を待って演奏情報の出力
タイミングに同期させて出力するとともに、拍子情報を
出力しないモードであったときには、拍子情報を直ちに
再生するようにしたので、演奏情報の再生時におけるメ
トロノーム等のタイミングを演奏情報を記録したときの
状態に応じて適正なものとすることができる。
As described above, according to the present invention, the performance can be paced by time information such as metronome and auto rhythm, and the performance information can be recorded and the automatic performance can be performed based on the performance information. In an electronic musical instrument with an automatic performance function that can perform
When mode selection information such as a flag indicating which mode of the time signature information output mode or the time signature information output mode is selected is recorded together with the performance information, and the time signature information is output when the performance information is reproduced , Mode selection information
Output time signature information during recording based on
Output the performance information after waiting for its output.
Output in synchronization with the timing and time signature information
When the mode is not output, the time signature information is
Since the reproduction is performed, the timing of the metronome or the like at the time of reproducing the performance information can be made appropriate according to the state when the performance information is recorded.

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

【図1】本発明実施例の自動演奏機能付電子楽器のブロ
ック図である。
FIG. 1 is a block diagram of an electronic musical instrument with an automatic performance function according to an embodiment of the present invention.

【図2】実施例におけるパネルスイッチの要部を示す図
である。
FIG. 2 is a diagram illustrating a main part of a panel switch according to the embodiment.

【図3】実施例における演奏情報の記録フォーマットを
示す図である。
FIG. 3 is a diagram showing a recording format of performance information in the embodiment.

【図4】実施例におけるメインルーチンのフローチャー
トである。
FIG. 4 is a flowchart of a main routine in the embodiment.

【図5】実施例におけるパネルスイッチ処理のフローチ
ャートである。
FIG. 5 is a flowchart of a panel switch process in the embodiment.

【図6】実施例におけるRECスイッチ処理のフローチ
ャートである。
FIG. 6 is a flowchart of a REC switch process in the embodiment.

【図7】実施例におけるBEATスイッチ処理のフロー
チャートである。
FIG. 7 is a flowchart of a BEAT switch process in the embodiment.

【図8】実施例におけるMETRONOMEスイッチ処
理のフローチャートである。
FIG. 8 is a flowchart of a METRONOME switch process in the embodiment.

【図9】実施例におけるPLAYスイッチ処理のフロー
チャートである。
FIG. 9 is a flowchart of a PLAY switch process in the embodiment.

【図10】実施例における押鍵処理のフローチャートの
一部である。
FIG. 10 is a part of a flowchart of a key pressing process in the embodiment.

【図11】実施例における押鍵処理のフローチャートの
一部である。
FIG. 11 is a part of a flowchart of a key pressing process in the embodiment.

【図12】実施例におけるタイマインタラプト処理のフ
ローチャートの一部である。
FIG. 12 is a part of a flowchart of a timer interrupt process in the embodiment.

【図13】実施例におけるタイマインタラプト処理のフ
ローチャートの一部である。
FIG. 13 is a part of a flowchart of a timer interrupt process in the embodiment.

【図14】実施例におけるテンポクロックにより内部カ
ウントしている拍の位置と演奏情報の記録開始位置との
関係を説明する図である。
FIG. 14 is a diagram illustrating the relationship between the position of a beat internally counted by a tempo clock and the recording start position of performance information in the embodiment.

【図15】実施例におけるメトロノームオフの状態で演
奏情報を記録する場合の動作の一例を説明する図であ
る。
FIG. 15 is a diagram illustrating an example of an operation when recording performance information with the metronome off in the embodiment.

【図16】実施例におけるメトロノームオンの状態で演
奏情報を記録する場合の動作の一例を説明する図であ
る。
FIG. 16 is a diagram illustrating an example of an operation in a case where performance information is recorded with the metronome on in the embodiment.

【図17】実施例におけるメトロノームオフの状態で記
録した演奏情報をメトロノームオンの状態で再生する場
合の再生動作の一例を説明する図である。
FIG. 17 is a diagram illustrating an example of a reproducing operation in a case where performance information recorded with the metronome off in the embodiment is reproduced with the metronome on.

【図18】実施例におけるメトロノームオンの状態で記
録した演奏情報をメトロノームオンの状態で再生する場
合の再生動作の一例を説明する図である。
FIG. 18 is a diagram illustrating an example of a reproducing operation in the case where performance information recorded with the metronome on in the embodiment is reproduced with the metronome on.

【図19】実施例におけるメトロノームオンの状態で記
録した演奏情報をメトロノームオフの状態で再生した場
合の再生動作の一例を説明する図である。
FIG. 19 is a diagram illustrating an example of a reproducing operation when performance information recorded with the metronome on in the embodiment is reproduced with the metronome off.

【符号の説明】[Explanation of symbols]

1…CPU、2…鍵盤、3…パネルスイッチ、5…タイ
マ回路、6…音源回路、9…ROM、10…RAM、3
1…RECスイッチ、32…PLAYスイッチ、33…
METスイッチ、34…BEATスイッチ。
DESCRIPTION OF SYMBOLS 1 ... CPU, 2 ... keyboard, 3 ... panel switch, 5 ... timer circuit, 6 ... tone generator circuit, 9 ... ROM, 10 ... RAM, 3
1 REC switch, 32 PLAY switch, 33…
MET switch, 34 ... BEAT switch.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 演奏の小節線と拍との拍子を示す拍子情
報を出力する拍子情報出力手段と、 前記拍子情報を出力するモードと拍子情報を出力しない
モードとを選択する選択手段と、 演奏情報の入力により、該入力時に拍子情報を出力する
モードまたは拍子情報を出力しないモードの何れのモー
ドが選択されていたかを示すモード選択情報を、入力さ
れる演奏情報とともに記録する演奏情報記録手段と、 上記演奏情報記録手段で記録された演奏情報を再生する
再生手段と、 上記再生手段で演奏情報を再生するとともに拍子情報を
出力するとき、該演奏情報に対応する前記モード選択情
報が拍子情報を出力するモードが選択されていたことを
示すときは、拍子情報をその出力を待って演奏情報の出
力タイミングに同期させて出力るとともに、該モード選
択情報が拍子情報を出力しないモードが選択されていた
ことを示すときは、拍子情報を直ちに出力する制御手段
と、を備えることを特徴とする自動演奏機能付電子楽
器。
1. A time signature information output means for outputting time signature information indicating a time signature of a measure bar and a beat; a selection means for selecting a mode for outputting the time signature information and a mode for not outputting the time signature information; Performance information recording means for recording, together with the input performance information, mode selection information indicating which of a mode for outputting time signature information and a mode for not outputting time signature information at the time of inputting the information; Reproducing means for reproducing the performance information recorded by the performance information recording means; and reproducing the performance information by the reproducing means and outputting time signature information, the mode selection information corresponding to the performance information.
That the mode that outputs the time signature information was selected.
When this is indicated, the time signature information is output and the performance information is output.
Output in synchronization with the
Mode in which selection information does not output time signature information was selected
Electronic musical instrument with an automatic performance function, comprising: control means for immediately outputting time signature information .
JP3267577A 1991-10-16 1991-10-16 Electronic musical instrument with automatic performance function Expired - Fee Related JP2606501B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3267577A JP2606501B2 (en) 1991-10-16 1991-10-16 Electronic musical instrument with automatic performance function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3267577A JP2606501B2 (en) 1991-10-16 1991-10-16 Electronic musical instrument with automatic performance function

Publications (2)

Publication Number Publication Date
JPH05108067A JPH05108067A (en) 1993-04-30
JP2606501B2 true JP2606501B2 (en) 1997-05-07

Family

ID=17446715

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3267577A Expired - Fee Related JP2606501B2 (en) 1991-10-16 1991-10-16 Electronic musical instrument with automatic performance function

Country Status (1)

Country Link
JP (1) JP2606501B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4665473B2 (en) * 2004-09-28 2011-04-06 ヤマハ株式会社 Motion expression device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57108895A (en) * 1980-12-25 1982-07-07 Casio Computer Co Ltd Synchro-starting devide in electronic musical instrument

Also Published As

Publication number Publication date
JPH05108067A (en) 1993-04-30

Similar Documents

Publication Publication Date Title
US4694724A (en) Synchronizing signal generator for musical instrument
US4630518A (en) Electronic musical instrument
JP2658463B2 (en) Automatic performance device
JPH0827628B2 (en) Automatic playing device
JP3239411B2 (en) Electronic musical instrument with automatic performance function
JP2606501B2 (en) Electronic musical instrument with automatic performance function
JPH0259474B2 (en)
JP2606500B2 (en) Electronic musical instrument with automatic performance function
JP2005274851A (en) Electronic music system and computer program applied to the same system
JPH1031495A (en) Karaoke device
JPH0640270B2 (en) Chord progression memory playback device
JPS6344228B2 (en)
JP3346187B2 (en) Performance data editing device and medium storing performance data editing program
JP2556170B2 (en) Automatic performance recorder
JP2692539B2 (en) Automatic accompaniment device
JPH0436398B2 (en)
JPH02304599A (en) Electronic musical instrument
JP2003208166A (en) Musical sound reproducing/recording apparatus, recording apparatus, and recording method
JP3120487B2 (en) Electronic musical instrument with automatic accompaniment function
JPH0511753A (en) Automatic music player device
JP2616072B2 (en) Music data processor
JPH0562355B2 (en)
JP3213081B2 (en) Automatic performance device
JPH0155471B2 (en)
JP2596111B2 (en) Automatic performance device

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19961217

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: 20080213

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20090213

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees